@equisoft/design-elements-react 9.9.7-snapshot.20251103154252 → 9.9.7-snapshot.20251110012959
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/bundle.js +2 -2
- package/package.json +5 -5
package/dist/bundle.js
CHANGED
|
@@ -809,7 +809,7 @@
|
|
|
809
809
|
}
|
|
810
810
|
`,v=(0,d.default)(c.Avatar)`
|
|
811
811
|
margin-right: ${({avatarOnly:e})=>e?0:"var(--spacing-1x)"};
|
|
812
|
-
`;function g(e){return e.find(e=>!e.disabled)}t.UserProfile=({ariaLabel:e,buttonAriaLabel:t,className:n,defaultOpen:a=!1,id:r,inverted:i=!0,tag:o,onMenuVisibilityChanged:d,options:c,userEmail:p,username:b,variant:y="avatar-only"})=>{const{t:w}=(0,s.useTranslation)("user-profile"),{isMobile:M}=(0,m.useDeviceContext)(),E=g(c),C=(0,u.useRef)(null),k=M||"avatar-only"===y;return(0,l.jsx)(h,Object.assign({ariaLabel:e||w("ariaLabel"),buttonAriaLabel:t,className:n,"data-testid":"user-profile",defaultOpen:a,dropdownMenuWidth:"auto",hasCaret:!k,id:r,icon:(0,l.jsx)(v,{avatarOnly:k,username:b}),inverted:i,tag:o,isMobile:M},k?{}:{label:b},{onMenuVisibilityChanged:d,firstItemRef:C,render:e=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.GroupItem,{id:"user-label",children:(0,l.jsx)(f.LabelItem,{label:b,description:p})}),(0,l.jsx)(f.GroupItem,{id:"user-actions",children:c.map(t=>(0,l.jsx)(f.NavItem,{"data-testid":`action-${t.value}`,ref:E===t?C:void 0,value:t.value,href:t.href,label:t.label,isHtmlLink:t.isHtmlLink,isExternalLink:t.isExternalLink,lozenge:t.lozenge,disabled:t.disabled,target:t.target,onClick:t.disabled?void 0:n=>{var a;null===(a=t.onClick)||void 0===a||a.call(t,n),e()}},t.value))})]})}))};try{t.getFirstFocusableItem.displayName="getFirstFocusableItem",t.getFirstFocusableItem.__docgenInfo={description:"",displayName:"getFirstFocusableItem",props:{length:{defaultValue:null,description:"Gets or sets the length of the array. This is a number one higher than the highest index in the array.",name:"length",required:!0,type:{name:"number"}},toString:{defaultValue:null,description:"Returns a string representation of an array.",name:"toString",required:!1,type:{name:"() => string"}},toLocaleString:{defaultValue:null,description:"Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.",name:"toLocaleString",required:!1,type:{name:"{ (): string; (locales: string | string[], options?: (NumberFormatOptions & DateTimeFormatOptions)): string; }"}},pop:{defaultValue:null,description:"Removes the last element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"pop",required:!0,type:{name:"() => NavItemProps | undefined"}},push:{defaultValue:null,description:"Appends new elements to the end of an array, and returns the new length of the array.\n@param items New elements to add to the array.",name:"push",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},concat:{defaultValue:null,description:"Combines two or more arrays.\nThis method returns a new array without modifying any existing arrays.\n@param items Additional arrays and/or items to add to the end of the array.\n@param items Additional arrays and/or items to add to the end of the array.",name:"concat",required:!0,type:{name:"{ (...items: ConcatArray<NavItemProps>[]): NavItemProps[]; (...items: (NavItemProps | ConcatArray<NavItemProps>)[]): NavItemProps[]; }"}},join:{defaultValue:null,description:"Adds all the elements of an array into a string, separated by the specified separator string.\n@param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.",name:"join",required:!0,type:{name:"(separator?: string | undefined) => string"}},reverse:{defaultValue:null,description:"Reverses the elements in an array in place.\nThis method mutates the array and returns a reference to the same array.",name:"reverse",required:!0,type:{name:"() => NavItemProps[]"}},shift:{defaultValue:null,description:"Removes the first element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"shift",required:!0,type:{name:"() => NavItemProps | undefined"}},slice:{defaultValue:null,description:"Returns a copy of a section of an array.\nFor both start and end, a negative index can be used to indicate an offset from the end of the array.\nFor example, -2 refers to the second to last element of the array.\n@param start The beginning index of the specified portion of the array.\nIf start is undefined, then the slice begins at index 0.\n@param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\nIf end is undefined, then the slice extends to the end of the array.",name:"slice",required:!0,type:{name:"(start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},sort:{defaultValue:null,description:"Sorts an array in place.\nThis method mutates the array and returns a reference to the same array.\n@param compareFn Function used to determine the order of the elements. It is expected to return\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\nvalue otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.\n```ts\n[11,2,22,1].sort((a, b) => a - b)\n```",name:"sort",required:!0,type:{name:"(compareFn?: ((a: NavItemProps, b: NavItemProps) => number) | undefined) => NavItemProps[]"}},splice:{defaultValue:null,description:"Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove. Omitting this argument will remove all elements from the start\nparamater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type\nthat cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.\n@returns An array containing the elements that were deleted.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove. If value of this argument is either a negative number, zero,\nundefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and\nnot remove any elements.\n@param items Elements to insert into the array in place of the deleted elements.\n@returns An array containing the elements that were deleted.",name:"splice",required:!0,type:{name:"{ (start: number, deleteCount?: number | undefined): NavItemProps[]; (start: number, deleteCount: number, ...items: NavItemProps[]): NavItemProps[]; }"}},unshift:{defaultValue:null,description:"Inserts new elements at the start of an array, and returns the new length of the array.\n@param items Elements to insert at the start of the array.",name:"unshift",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},indexOf:{defaultValue:null,description:"Returns the index of the first occurrence of a value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",name:"indexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},lastIndexOf:{defaultValue:null,description:"Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.",name:"lastIndexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},every:{defaultValue:null,description:"Determines whether all the members of an array satisfy the specified test.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"every",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): boolean; }"}},some:{defaultValue:null,description:"Determines whether the specified callback function returns true for any element of an array.\n@param predicate A function that accepts up to three arguments. The some method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value true, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"some",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any) => boolean"}},forEach:{defaultValue:null,description:"Performs the specified action for each element in an array.\n@param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"forEach",required:!0,type:{name:"(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => void, thisArg?: any) => void"}},map:{defaultValue:null,description:"Calls a defined callback function on each element of an array, and returns an array that contains the results.\n@param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"map",required:!0,type:{name:"<U>(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => U, thisArg?: any) => U[]"}},filter:{defaultValue:null,description:"Returns the elements of an array that meet the condition specified in a callback function.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.",name:"filter",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): NavItemProps[]; }"}},reduce:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduce",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},reduceRight:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduceRight",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},find:{defaultValue:null,description:"Returns the value of the first element in the array where predicate is true, and undefined\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found, find\nimmediately returns that element value. Otherwise, find returns undefined.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"find",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => value is S, thisArg?: any): S | undefined; (predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any): NavItemProps | undefined; }"}},findIndex:{defaultValue:null,description:"Returns the index of the first element in the array where predicate is true, and -1\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found,\nfindIndex immediately returns that element index. Otherwise, findIndex returns -1.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"findIndex",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any) => number"}},fill:{defaultValue:null,description:"Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n@param value value to fill array section with\n@param start index to start filling the array at. If start is negative, it is treated as\nlength+start where length is the length of the array.\n@param end index to stop filling the array at. If end is negative, it is treated as\nlength+end.",name:"fill",required:!0,type:{name:"(value: NavItemProps, start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},copyWithin:{defaultValue:null,description:"Returns the this object after copying a section of the array identified by start and end\nto the same array starting at position target\n@param target If target is negative, it is treated as length+target where length is the\nlength of the array.\n@param start If start is negative, it is treated as length+start. If end is negative, it\nis treated as length+end.\n@param end If not specified, length of the this object is used as its default value.",name:"copyWithin",required:!0,type:{name:"(target: number, start: number, end?: number | undefined) => NavItemProps[]"}},entries:{defaultValue:null,description:"Returns an iterable of key, value pairs for every entry in the array",name:"entries",required:!0,type:{name:"() => ArrayIterator<[number, NavItemProps]>"}},keys:{defaultValue:null,description:"Returns an iterable of keys in the array",name:"keys",required:!0,type:{name:"() => ArrayIterator<number>"}},values:{defaultValue:null,description:"Returns an iterable of values in the array",name:"values",required:!0,type:{name:"() => ArrayIterator<NavItemProps>"}},includes:{defaultValue:null,description:"Determines whether an array includes a certain element, returning true or false as appropriate.\n@param searchElement The element to search for.\n@param fromIndex The position in this array at which to begin searching for searchElement.",name:"includes",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => boolean"}},flatMap:{defaultValue:null,description:"Calls a defined callback function on each element of an array. Then, flattens the result into\na new array.\nThis is identical to a map followed by flat with depth 1.\n@param callback A function that accepts up to three arguments. The flatMap method calls the\ncallback function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callback function. If\nthisArg is omitted, undefined is used as the this value.",name:"flatMap",required:!0,type:{name:"<U, This = undefined>(callback: (this: This, value: NavItemProps, index: number, array: NavItemProps[]) => U | readonly U[], thisArg?: This | undefined) => U[]"}},flat:{defaultValue:null,description:"Returns a new array with all sub-array elements concatenated into it recursively up to the\nspecified depth.\n@param depth The maximum recursion depth",name:"flat",required:!0,type:{name:"<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]"}},"__@iterator@63629":{defaultValue:null,description:"Iterator",name:"__@iterator@63629",required:!0,type:{name:"() => ArrayIterator<NavItemProps>"}},"__@unscopables@65195":{defaultValue:null,description:"Is an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement.",name:"__@unscopables@65195",required:!0,type:{name:"{ [x: number]: boolean | undefined; length?: boolean | undefined; toString?: boolean | undefined; toLocaleString?: boolean | undefined; pop?: boolean | undefined; push?: boolean | undefined; ... 28 more ...; readonly [Symbol.unscopables]?: boolean | undefined; }"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#getFirstFocusableItem"]={docgenInfo:t.getFirstFocusableItem.__docgenInfo,name:"getFirstFocusableItem",path:"src/components/user-profile/user-profile.tsx#getFirstFocusableItem"})}catch(e){}try{t.UserProfile.displayName="UserProfile",t.UserProfile.__docgenInfo={description:"",displayName:"UserProfile",props:{ariaLabel:{defaultValue:{value:"'User menu'"},description:"Sets nav's description",name:"ariaLabel",required:!1,type:{name:"string"}},buttonAriaLabel:{defaultValue:null,description:"",name:"buttonAriaLabel",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultOpen:{defaultValue:{value:!1},description:"Sets menu open by default",name:"defaultOpen",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},inverted:{defaultValue:{value:!0},description:"",name:"inverted",required:!1,type:{name:"boolean"}},tag:{defaultValue:null,description:"Set wrapper element tag",name:"tag",required:!1,type:{name:"enum",value:[{value:'"div"'},{value:'"nav"'}]}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"NavItemProps[]"}},username:{defaultValue:null,description:"",name:"username",required:!0,type:{name:"string"}},userEmail:{defaultValue:null,description:"",name:"userEmail",required:!1,type:{name:"string"}},onMenuVisibilityChanged:{defaultValue:null,description:"",name:"onMenuVisibilityChanged",required:!1,type:{name:"((isOpen: boolean) => void)"}},variant:{defaultValue:{value:"avatar-only"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"avatar-only"'},{value:'"full-name"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#UserProfile"]={docgenInfo:t.UserProfile.__docgenInfo,name:"UserProfile",path:"src/components/user-profile/user-profile.tsx#UserProfile"})}catch(e){}},17412:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavItem=t.LabelItem=t.ItemContent=t.GroupItem=t.ExternalItem=void 0;var a=n(41895);Object.defineProperty(t,"ExternalItem",{enumerable:!0,get:function(){return a.ExternalItem}});var r=n(29817);Object.defineProperty(t,"GroupItem",{enumerable:!0,get:function(){return r.GroupItem}});var i=n(55179);Object.defineProperty(t,"ItemContent",{enumerable:!0,get:function(){return i.ItemContent}});var o=n(38060);Object.defineProperty(t,"LabelItem",{enumerable:!0,get:function(){return o.LabelItem}});var l=n(5859);Object.defineProperty(t,"NavItem",{enumerable:!0,get:function(){return l.NavItem}})},17419:(e,t,n)=>{"use strict";t.isSameISOWeek=function(e,t,n){return(0,a.isSameWeek)(e,t,{...n,weekStartsOn:1})};var a=n(624)},17448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var a,r,i=n(39155);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o.apply(null,arguments)}const l=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,className:"copy_svg__feather copy_svg__feather-copy",viewBox:"0 0 24 24"},e),a||(a=i.createElement("rect",{width:13,height:13,x:9,y:9,rx:2,ry:2})),r||(r=i.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})))}},17461:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Accordion=t.StyledAccordionGroup=void 0;const r=n(31085),i=n(39155),o=a(n(88694)),l=n(66642),u=n(28353);t.StyledAccordionGroup=o.default.div`
|
|
812
|
+
`;function g(e){return e.find(e=>!e.disabled)}t.UserProfile=({ariaLabel:e,buttonAriaLabel:t,className:n,defaultOpen:a=!1,id:r,inverted:i=!0,tag:o,onMenuVisibilityChanged:d,options:c,userEmail:p,username:b,variant:y="avatar-only"})=>{const{t:w}=(0,s.useTranslation)("user-profile"),{isMobile:M}=(0,m.useDeviceContext)(),E=g(c),C=(0,u.useRef)(null),k=M||"avatar-only"===y;return(0,l.jsx)(h,Object.assign({ariaLabel:e||w("ariaLabel"),buttonAriaLabel:t,className:n,"data-testid":"user-profile",defaultOpen:a,dropdownMenuWidth:"auto",hasCaret:!k,id:r,icon:(0,l.jsx)(v,{avatarOnly:k,username:b}),inverted:i,tag:o,isMobile:M},k?{}:{label:b},{onMenuVisibilityChanged:d,firstItemRef:C,render:e=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.GroupItem,{id:"user-label",children:(0,l.jsx)(f.LabelItem,{label:b,description:p})}),(0,l.jsx)(f.GroupItem,{id:"user-actions",children:c.map(t=>(0,l.jsx)(f.NavItem,{"data-testid":`action-${t.value}`,ref:E===t?C:void 0,value:t.value,href:t.href,label:t.label,isHtmlLink:t.isHtmlLink,isExternalLink:t.isExternalLink,lozenge:t.lozenge,disabled:t.disabled,target:t.target,onClick:t.disabled?void 0:n=>{var a;null===(a=t.onClick)||void 0===a||a.call(t,n),e()}},t.value))})]})}))};try{t.getFirstFocusableItem.displayName="getFirstFocusableItem",t.getFirstFocusableItem.__docgenInfo={description:"",displayName:"getFirstFocusableItem",props:{length:{defaultValue:null,description:"Gets or sets the length of the array. This is a number one higher than the highest index in the array.",name:"length",required:!0,type:{name:"number"}},toString:{defaultValue:null,description:"Returns a string representation of an array.",name:"toString",required:!1,type:{name:"() => string"}},toLocaleString:{defaultValue:null,description:"Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.",name:"toLocaleString",required:!1,type:{name:"{ (): string; (locales: string | string[], options?: (NumberFormatOptions & DateTimeFormatOptions)): string; }"}},pop:{defaultValue:null,description:"Removes the last element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"pop",required:!0,type:{name:"() => NavItemProps | undefined"}},push:{defaultValue:null,description:"Appends new elements to the end of an array, and returns the new length of the array.\n@param items New elements to add to the array.",name:"push",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},concat:{defaultValue:null,description:"Combines two or more arrays.\nThis method returns a new array without modifying any existing arrays.\n@param items Additional arrays and/or items to add to the end of the array.\n@param items Additional arrays and/or items to add to the end of the array.",name:"concat",required:!0,type:{name:"{ (...items: ConcatArray<NavItemProps>[]): NavItemProps[]; (...items: (NavItemProps | ConcatArray<NavItemProps>)[]): NavItemProps[]; }"}},join:{defaultValue:null,description:"Adds all the elements of an array into a string, separated by the specified separator string.\n@param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.",name:"join",required:!0,type:{name:"(separator?: string | undefined) => string"}},reverse:{defaultValue:null,description:"Reverses the elements in an array in place.\nThis method mutates the array and returns a reference to the same array.",name:"reverse",required:!0,type:{name:"() => NavItemProps[]"}},shift:{defaultValue:null,description:"Removes the first element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"shift",required:!0,type:{name:"() => NavItemProps | undefined"}},slice:{defaultValue:null,description:"Returns a copy of a section of an array.\nFor both start and end, a negative index can be used to indicate an offset from the end of the array.\nFor example, -2 refers to the second to last element of the array.\n@param start The beginning index of the specified portion of the array.\nIf start is undefined, then the slice begins at index 0.\n@param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\nIf end is undefined, then the slice extends to the end of the array.",name:"slice",required:!0,type:{name:"(start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},sort:{defaultValue:null,description:"Sorts an array in place.\nThis method mutates the array and returns a reference to the same array.\n@param compareFn Function used to determine the order of the elements. It is expected to return\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\nvalue otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.\n```ts\n[11,2,22,1].sort((a, b) => a - b)\n```",name:"sort",required:!0,type:{name:"(compareFn?: ((a: NavItemProps, b: NavItemProps) => number) | undefined) => NavItemProps[]"}},splice:{defaultValue:null,description:"Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove. Omitting this argument will remove all elements from the start\nparamater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type\nthat cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.\n@returns An array containing the elements that were deleted.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove. If value of this argument is either a negative number, zero,\nundefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and\nnot remove any elements.\n@param items Elements to insert into the array in place of the deleted elements.\n@returns An array containing the elements that were deleted.",name:"splice",required:!0,type:{name:"{ (start: number, deleteCount?: number | undefined): NavItemProps[]; (start: number, deleteCount: number, ...items: NavItemProps[]): NavItemProps[]; }"}},unshift:{defaultValue:null,description:"Inserts new elements at the start of an array, and returns the new length of the array.\n@param items Elements to insert at the start of the array.",name:"unshift",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},indexOf:{defaultValue:null,description:"Returns the index of the first occurrence of a value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",name:"indexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},lastIndexOf:{defaultValue:null,description:"Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.",name:"lastIndexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},every:{defaultValue:null,description:"Determines whether all the members of an array satisfy the specified test.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"every",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): boolean; }"}},some:{defaultValue:null,description:"Determines whether the specified callback function returns true for any element of an array.\n@param predicate A function that accepts up to three arguments. The some method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value true, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"some",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any) => boolean"}},forEach:{defaultValue:null,description:"Performs the specified action for each element in an array.\n@param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"forEach",required:!0,type:{name:"(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => void, thisArg?: any) => void"}},map:{defaultValue:null,description:"Calls a defined callback function on each element of an array, and returns an array that contains the results.\n@param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"map",required:!0,type:{name:"<U>(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => U, thisArg?: any) => U[]"}},filter:{defaultValue:null,description:"Returns the elements of an array that meet the condition specified in a callback function.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.",name:"filter",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): NavItemProps[]; }"}},reduce:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduce",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},reduceRight:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduceRight",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},find:{defaultValue:null,description:"Returns the value of the first element in the array where predicate is true, and undefined\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found, find\nimmediately returns that element value. Otherwise, find returns undefined.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"find",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => value is S, thisArg?: any): S | undefined; (predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any): NavItemProps | undefined; }"}},findIndex:{defaultValue:null,description:"Returns the index of the first element in the array where predicate is true, and -1\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found,\nfindIndex immediately returns that element index. Otherwise, findIndex returns -1.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"findIndex",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any) => number"}},fill:{defaultValue:null,description:"Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n@param value value to fill array section with\n@param start index to start filling the array at. If start is negative, it is treated as\nlength+start where length is the length of the array.\n@param end index to stop filling the array at. If end is negative, it is treated as\nlength+end.",name:"fill",required:!0,type:{name:"(value: NavItemProps, start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},copyWithin:{defaultValue:null,description:"Returns the this object after copying a section of the array identified by start and end\nto the same array starting at position target\n@param target If target is negative, it is treated as length+target where length is the\nlength of the array.\n@param start If start is negative, it is treated as length+start. If end is negative, it\nis treated as length+end.\n@param end If not specified, length of the this object is used as its default value.",name:"copyWithin",required:!0,type:{name:"(target: number, start: number, end?: number | undefined) => NavItemProps[]"}},entries:{defaultValue:null,description:"Returns an iterable of key, value pairs for every entry in the array",name:"entries",required:!0,type:{name:"() => ArrayIterator<[number, NavItemProps]>"}},keys:{defaultValue:null,description:"Returns an iterable of keys in the array",name:"keys",required:!0,type:{name:"() => ArrayIterator<number>"}},values:{defaultValue:null,description:"Returns an iterable of values in the array",name:"values",required:!0,type:{name:"() => ArrayIterator<NavItemProps>"}},includes:{defaultValue:null,description:"Determines whether an array includes a certain element, returning true or false as appropriate.\n@param searchElement The element to search for.\n@param fromIndex The position in this array at which to begin searching for searchElement.",name:"includes",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => boolean"}},flatMap:{defaultValue:null,description:"Calls a defined callback function on each element of an array. Then, flattens the result into\na new array.\nThis is identical to a map followed by flat with depth 1.\n@param callback A function that accepts up to three arguments. The flatMap method calls the\ncallback function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callback function. If\nthisArg is omitted, undefined is used as the this value.",name:"flatMap",required:!0,type:{name:"<U, This = undefined>(callback: (this: This, value: NavItemProps, index: number, array: NavItemProps[]) => U | readonly U[], thisArg?: This | undefined) => U[]"}},flat:{defaultValue:null,description:"Returns a new array with all sub-array elements concatenated into it recursively up to the\nspecified depth.\n@param depth The maximum recursion depth",name:"flat",required:!0,type:{name:"<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]"}},"__@iterator@63629":{defaultValue:null,description:"Iterator",name:"__@iterator@63629",required:!0,type:{name:"() => ArrayIterator<NavItemProps>"}},"__@unscopables@65205":{defaultValue:null,description:"Is an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement.",name:"__@unscopables@65205",required:!0,type:{name:"{ [x: number]: boolean | undefined; length?: boolean | undefined; toString?: boolean | undefined; toLocaleString?: boolean | undefined; pop?: boolean | undefined; push?: boolean | undefined; ... 28 more ...; readonly [Symbol.unscopables]?: boolean | undefined; }"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#getFirstFocusableItem"]={docgenInfo:t.getFirstFocusableItem.__docgenInfo,name:"getFirstFocusableItem",path:"src/components/user-profile/user-profile.tsx#getFirstFocusableItem"})}catch(e){}try{t.UserProfile.displayName="UserProfile",t.UserProfile.__docgenInfo={description:"",displayName:"UserProfile",props:{ariaLabel:{defaultValue:{value:"'User menu'"},description:"Sets nav's description",name:"ariaLabel",required:!1,type:{name:"string"}},buttonAriaLabel:{defaultValue:null,description:"",name:"buttonAriaLabel",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultOpen:{defaultValue:{value:!1},description:"Sets menu open by default",name:"defaultOpen",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},inverted:{defaultValue:{value:!0},description:"",name:"inverted",required:!1,type:{name:"boolean"}},tag:{defaultValue:null,description:"Set wrapper element tag",name:"tag",required:!1,type:{name:"enum",value:[{value:'"div"'},{value:'"nav"'}]}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"NavItemProps[]"}},username:{defaultValue:null,description:"",name:"username",required:!0,type:{name:"string"}},userEmail:{defaultValue:null,description:"",name:"userEmail",required:!1,type:{name:"string"}},onMenuVisibilityChanged:{defaultValue:null,description:"",name:"onMenuVisibilityChanged",required:!1,type:{name:"((isOpen: boolean) => void)"}},variant:{defaultValue:{value:"avatar-only"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"avatar-only"'},{value:'"full-name"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#UserProfile"]={docgenInfo:t.UserProfile.__docgenInfo,name:"UserProfile",path:"src/components/user-profile/user-profile.tsx#UserProfile"})}catch(e){}},17412:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavItem=t.LabelItem=t.ItemContent=t.GroupItem=t.ExternalItem=void 0;var a=n(41895);Object.defineProperty(t,"ExternalItem",{enumerable:!0,get:function(){return a.ExternalItem}});var r=n(29817);Object.defineProperty(t,"GroupItem",{enumerable:!0,get:function(){return r.GroupItem}});var i=n(55179);Object.defineProperty(t,"ItemContent",{enumerable:!0,get:function(){return i.ItemContent}});var o=n(38060);Object.defineProperty(t,"LabelItem",{enumerable:!0,get:function(){return o.LabelItem}});var l=n(5859);Object.defineProperty(t,"NavItem",{enumerable:!0,get:function(){return l.NavItem}})},17419:(e,t,n)=>{"use strict";t.isSameISOWeek=function(e,t,n){return(0,a.isSameWeek)(e,t,{...n,weekStartsOn:1})};var a=n(624)},17448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var a,r,i=n(39155);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o.apply(null,arguments)}const l=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,className:"copy_svg__feather copy_svg__feather-copy",viewBox:"0 0 24 24"},e),a||(a=i.createElement("rect",{width:13,height:13,x:9,y:9,rx:2,ry:2})),r||(r=i.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})))}},17461:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Accordion=t.StyledAccordionGroup=void 0;const r=n(31085),i=n(39155),o=a(n(88694)),l=n(66642),u=n(28353);t.StyledAccordionGroup=o.default.div`
|
|
813
813
|
display: flex;
|
|
814
814
|
flex-direction: column;
|
|
815
815
|
justify-content: flex-start;
|
|
@@ -1252,7 +1252,7 @@
|
|
|
1252
1252
|
`,s=i.default.span`
|
|
1253
1253
|
line-height: 1.25rem;
|
|
1254
1254
|
position: relative;
|
|
1255
|
-
`;t.PasswordRule=({label:e,isValid:t,isEmpty:n})=>{const{t:a}=(0,o.useTranslation)("common");let i=null;return n||(i=t?(0,r.jsx)(d,{"aria-hidden":"true",focusable:!1,name:"check",size:"16"}):(0,r.jsx)(d,{"aria-label":`${a("error")},`,focusable:!0,name:"alertOctagon",role:"img",size:"16"})),(0,r.jsxs)(u,{isEmpty:n,isSuccess:t,children:[i,(0,r.jsx)(s,{children:e})]})};try{t.PasswordRule.displayName="PasswordRule",t.PasswordRule.__docgenInfo={description:"",displayName:"PasswordRule",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},isEmpty:{defaultValue:null,description:"",name:"isEmpty",required:!0,type:{name:"boolean"}},isValid:{defaultValue:null,description:"",name:"isValid",required:!0,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/password-creation-input/password-rule.tsx#PasswordRule"]={docgenInfo:t.PasswordRule.__docgenInfo,name:"PasswordRule",path:"src/components/password-creation-input/password-rule.tsx#PasswordRule"})}catch(e){}},27265:(e,t)=>{"use strict";t.formatRelative=void 0;const n={lastWeek:"'గత' eeee p",yesterday:"'నిన్న' p",today:"'ఈ రోజు' p",tomorrow:"'రేపు' p",nextWeek:"'తదుపరి' eeee p",other:"P"};t.formatRelative=(e,t,a,r)=>n[e]},27400:(e,t,n)=>{"use strict";t.yearsToQuarters=function(e){return Math.trunc(e*a.quartersInYear)};var a=n(98613)},27574:(e,t,n)=>{"use strict";t.getQuarter=function(e,t){const n=(0,a.toDate)(e,t?.in);return Math.trunc(n.getMonth()/3)+1};var a=n(24429)},27625:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Composite:()=>Ze,CompositeItem:()=>et,FloatingArrow:()=>ot,FloatingDelayGroup:()=>kt,FloatingFocusManager:()=>tn,FloatingList:()=>Ae,FloatingNode:()=>pt,FloatingOverlay:()=>on,FloatingPortal:()=>Ut,FloatingTree:()=>ft,NextFloatingDelayGroup:()=>Ht,arrow:()=>Oe,autoPlacement:()=>Se,autoUpdate:()=>we.ll,computePosition:()=>we.rD,detectOverflow:()=>we.__,flip:()=>Le,getOverflowAncestors:()=>i.v9,hide:()=>Pe,inline:()=>De,inner:()=>jn,limitShift:()=>Ve,offset:()=>He,platform:()=>we.iD,safePolygon:()=>zn,shift:()=>Te,size:()=>qe,useClick:()=>dn,useClientPoint:()=>cn,useDelayGroup:()=>_t,useDelayGroupContext:()=>Ct,useDismiss:()=>hn,useFloating:()=>gn,useFloatingNodeId:()=>mt,useFloatingParentNodeId:()=>st,useFloatingPortalNode:()=>$t,useFloatingRootContext:()=>vn,useFloatingTree:()=>ct,useFocus:()=>yn,useHover:()=>wt,useId:()=>it,useInnerOffset:()=>In,useInteractions:()=>Mn,useListItem:()=>Fe,useListNavigation:()=>Tn,useMergeRefs:()=>Re,useNextDelayGroup:()=>Tt,useRole:()=>Ln,useTransitionStatus:()=>Pn,useTransitionStyles:()=>Dn,useTypeahead:()=>On});var a=n(39155),r=n.t(a,2),i=n(1860),o=n(22166),l=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),u="undefined"==typeof Element,d=u?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!u&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},c=function e(t,n){var a;void 0===n&&(n=!0);var r=null==t||null===(a=t.getAttribute)||void 0===a?void 0:a.call(t,"inert");return""===r||"true"===r||n&&t&&e(t.parentNode)},m=function(e,t,n){if(c(e))return[];var a=Array.prototype.slice.apply(e.querySelectorAll(l));return t&&d.call(e,l)&&a.unshift(e),a.filter(n)},p=function e(t,n,a){for(var r=[],i=Array.from(t);i.length;){var o=i.shift();if(!c(o,!1))if("SLOT"===o.tagName){var u=o.assignedElements(),s=e(u.length?u:o.children,!0,a);a.flatten?r.push.apply(r,s):r.push({scopeParent:o,candidates:s})}else{d.call(o,l)&&a.filter(o)&&(n||!t.includes(o))&&r.push(o);var m=o.shadowRoot||"function"==typeof a.getShadowRoot&&a.getShadowRoot(o),p=!c(m,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(o));if(m&&p){var f=e(!0===m?o.children:m.children,!0,a);a.flatten?r.push.apply(r,f):r.push({scopeParent:o,candidates:f})}else i.unshift.apply(i,o.children)}}return r},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},h=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!f(e)?0:e.tabIndex},v=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},g=function(e){return"INPUT"===e.tagName},b=function(e){var t=e.getBoundingClientRect(),n=t.width,a=t.height;return 0===n&&0===a},y=function(e,t){return!(t.disabled||c(t)||function(e){return g(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,a=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var r=d.call(e,"details>summary:first-of-type")?e.parentElement:e;if(d.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return b(e)}else{if("function"==typeof a){for(var i=e;e;){var o=e.parentElement,l=s(e);if(o&&!o.shadowRoot&&!0===a(o))return b(e);e=e.assignedSlot?e.assignedSlot:o||l===e.ownerDocument?o:l.host}e=i}if(function(e){var t,n,a,r,i=e&&s(e),o=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=o)&&void 0!==n&&null!==(a=n.ownerDocument)&&void 0!==a&&a.contains(o)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!l&&o;){var u,d,c;l=!(null===(d=o=null===(u=i=s(o))||void 0===u?void 0:u.host)||void 0===d||null===(c=d.ownerDocument)||void 0===c||!c.contains(o))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var a=t.children.item(n);if("LEGEND"===a.tagName)return!!d.call(t,"fieldset[disabled] *")||!a.contains(e)}return!0}t=t.parentElement}return!1}(t))},w=function(e,t){return!(function(e){return function(e){return g(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),a=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=a(window.CSS.escape(e.name));else try{t=a(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)}(t)||h(t)<0||!y(e,t))},M=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},E=function e(t){var n=[],a=[];return t.forEach(function(t,r){var i=!!t.scopeParent,o=i?t.scopeParent:t,l=function(e,t){var n=h(e);return n<0&&t&&!f(e)?0:n}(o,i),u=i?e(t.candidates):o;0===l?i?n.push.apply(n,u):n.push(o):a.push({documentOrder:r,tabIndex:l,item:t,isScope:i,content:u})}),a.sort(v).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},C=function(e,t){var n;return n=(t=t||{}).getShadowRoot?p([e],t.includeContainer,{filter:w.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:M}):m(e,t.includeContainer,w.bind(null,t)),E(n)},k=function(e,t){return(t=t||{}).getShadowRoot?p([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):m(e,t.includeContainer,y.bind(null,t))},_=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==d.call(e,l)&&w(t,e)};function x(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function H(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function T(){return/apple/i.test(navigator.vendor)}function V(){const e=/android/i;return e.test(x())||e.test(H())}function L(){return H().includes("jsdom/")}const q="data-floating-ui-focusable",S="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",P="ArrowLeft",D="ArrowRight",O="ArrowUp",R="ArrowDown";function j(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function I(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function A(e){return"composedPath"in e?e.composedPath()[0]:e.target}function F(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function z(e){return(null==e?void 0:e.ownerDocument)||document}function W(e){return(0,i.sb)(e)&&e.matches(S)}function N(e){return!!e&&"combobox"===e.getAttribute("role")&&W(e)}function B(e){return e?e.hasAttribute(q)?e:e.querySelector("["+q+"]")||e:null}function $(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var a;return e.parentId===t&&(!n||(null==(a=e.context)?void 0:a.open))}).flatMap(t=>[t,...$(e,t.id,n)])}function U(e,t){var n;let a=[],r=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;r;){const t=e.find(e=>e.id===r);r=null==t?void 0:t.parentId,t&&(a=a.concat(t))}return a}function K(e){e.preventDefault(),e.stopPropagation()}function Y(e){return!(0!==e.mozInputSource||!e.isTrusted)||(V()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function G(e){return!L()&&(!V()&&0===e.width&&0===e.height||V()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function X(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var J="undefined"!=typeof document?a.useLayoutEffect:function(){};function Q(e){const t=a.useRef(e);return J(()=>{t.current=e}),t}const Z={...r}.useInsertionEffect||(e=>e());function ee(e){const t=a.useRef(()=>{});return Z(()=>{t.current=e}),a.useCallback(function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return null==t.current?void 0:t.current(...n)},[])}function te(e,t,n){return Math.floor(e/t)!==n}function ne(e,t){return t<0||t>=e.current.length}function ae(e,t){return ie(e,{disabledIndices:t})}function re(e,t){return ie(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function ie(e,t){let{startingIndex:n=-1,decrement:a=!1,disabledIndices:r,amount:i=1}=void 0===t?{}:t,o=n;do{o+=a?-i:i}while(o>=0&&o<=e.current.length-1&&se(e,o,r));return o}function oe(e,t){let{event:n,orientation:a,loop:r,rtl:i,cols:l,disabledIndices:u,minIndex:d,maxIndex:s,prevIndex:c,stopEvent:m=!1}=t,p=c;if(n.key===O){if(m&&K(n),-1===c)p=s;else if(p=ie(e,{startingIndex:p,amount:l,decrement:!0,disabledIndices:u}),r&&(c-l<d||p<0)){const e=c%l,t=s%l,n=s-(t-e);p=t===e?s:t>e?n:n-l}ne(e,p)&&(p=c)}if(n.key===R&&(m&&K(n),-1===c?p=d:(p=ie(e,{startingIndex:c,amount:l,disabledIndices:u}),r&&c+l>s&&(p=ie(e,{startingIndex:c%l-l,amount:l,disabledIndices:u}))),ne(e,p)&&(p=c)),"both"===a){const t=(0,o.RI)(c/l);n.key===(i?P:D)&&(m&&K(n),c%l!==l-1?(p=ie(e,{startingIndex:c,disabledIndices:u}),r&&te(p,l,t)&&(p=ie(e,{startingIndex:c-c%l-1,disabledIndices:u}))):r&&(p=ie(e,{startingIndex:c-c%l-1,disabledIndices:u})),te(p,l,t)&&(p=c)),n.key===(i?D:P)&&(m&&K(n),c%l!==0?(p=ie(e,{startingIndex:c,decrement:!0,disabledIndices:u}),r&&te(p,l,t)&&(p=ie(e,{startingIndex:c+(l-c%l),decrement:!0,disabledIndices:u}))):r&&(p=ie(e,{startingIndex:c+(l-c%l),decrement:!0,disabledIndices:u})),te(p,l,t)&&(p=c));const a=(0,o.RI)(s/l)===t;ne(e,p)&&(p=r&&a?n.key===(i?D:P)?s:ie(e,{startingIndex:c-c%l-1,disabledIndices:u}):c)}return p}function le(e,t,n){const a=[];let r=0;return e.forEach((e,i)=>{let{width:o,height:l}=e,u=!1;for(n&&(r=0);!u;){const e=[];for(let n=0;n<o;n++)for(let a=0;a<l;a++)e.push(r+n+a*t);r%t+o<=t&&e.every(e=>null==a[e])?(e.forEach(e=>{a[e]=i}),u=!0):r++}}),[...a]}function ue(e,t,n,a,r){if(-1===e)return-1;const i=n.indexOf(e),o=t[e];switch(r){case"tl":return i;case"tr":return o?i+o.width-1:i;case"bl":return o?i+(o.height-1)*a:i;case"br":return n.lastIndexOf(e)}}function de(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function se(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);const a=e.current[t];return null==a||a.hasAttribute("disabled")||"true"===a.getAttribute("aria-disabled")}const ce=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function me(e,t){const n=C(e,ce()),a=n.length;if(0===a)return;const r=j(z(e)),i=n.indexOf(r);return n[-1===i?1===t?0:a-1:i+t]}function pe(e){return me(z(e).body,1)||e}function fe(e){return me(z(e).body,-1)||e}function he(e,t){const n=t||e.currentTarget,a=e.relatedTarget;return!a||!I(n,a)}function ve(e){C(e,ce()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function ge(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}var be=n(31085),ye=n(69514),we=n(18684),Me="undefined"!=typeof document?a.useLayoutEffect:function(){};function Ee(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,a,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;0!==a--;)if(!Ee(e[a],t[a]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;0!==a--;)if(!{}.hasOwnProperty.call(t,r[a]))return!1;for(a=n;0!==a--;){const n=r[a];if(!("_owner"===n&&e.$$typeof||Ee(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Ce(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ke(e,t){const n=Ce(e);return Math.round(t*n)/n}function _e(e){const t=a.useRef(e);return Me(()=>{t.current=e}),t}const xe=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:a}="function"==typeof e?e(t):e;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?(0,we.UE)({element:n.current,padding:a}).fn(t):{}:n?(0,we.UE)({element:n,padding:a}).fn(t):{};var r}}),He=(e,t)=>({...(0,we.cY)(e),options:[e,t]}),Te=(e,t)=>({...(0,we.BN)(e),options:[e,t]}),Ve=(e,t)=>({...(0,we.ER)(e),options:[e,t]}),Le=(e,t)=>({...(0,we.UU)(e),options:[e,t]}),qe=(e,t)=>({...(0,we.Ej)(e),options:[e,t]}),Se=(e,t)=>({...(0,we.RK)(e),options:[e,t]}),Pe=(e,t)=>({...(0,we.jD)(e),options:[e,t]}),De=(e,t)=>({...(0,we.mG)(e),options:[e,t]}),Oe=(e,t)=>({...xe(e),options:[e,t]});function Re(e){const t=a.useRef(void 0),n=a.useCallback(t=>{const n=e.map(e=>{if(null!=e){if("function"==typeof e){const n=e,a=n(t);return"function"==typeof a?a:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return a.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function je(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const Ie=a.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Ae(e){const{children:t,elementsRef:n,labelsRef:r}=e,[i,o]=a.useState(()=>new Set),l=a.useCallback(e=>{o(t=>new Set(t).add(e))},[]),u=a.useCallback(e=>{o(t=>{const n=new Set(t);return n.delete(e),n})},[]),d=a.useMemo(()=>{const e=new Map;return Array.from(i.keys()).sort(je).forEach((t,n)=>{e.set(t,n)}),e},[i]);return(0,be.jsx)(Ie.Provider,{value:a.useMemo(()=>({register:l,unregister:u,map:d,elementsRef:n,labelsRef:r}),[l,u,d,n,r]),children:t})}function Fe(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:r,map:i,elementsRef:o,labelsRef:l}=a.useContext(Ie),[u,d]=a.useState(null),s=a.useRef(null),c=a.useCallback(e=>{if(s.current=e,null!==u&&(o.current[u]=e,l)){var n;const a=void 0!==t;l.current[u]=a?t:null!=(n=null==e?void 0:e.textContent)?n:null}},[u,o,l,t]);return J(()=>{const e=s.current;if(e)return n(e),()=>{r(e)}},[n,r]),J(()=>{const e=s.current?i.get(s.current):null;null!=e&&d(e)},[i]),a.useMemo(()=>({ref:c,index:null==u?-1:u}),[u,c])}const ze="data-floating-ui-focusable",We="active",Ne="selected",Be="ArrowLeft",$e="ArrowRight",Ue="ArrowUp",Ke="ArrowDown";function Ye(e,t){return"function"==typeof e?e(t):e?a.cloneElement(e,t):(0,be.jsx)("div",{...t})}const Ge=a.createContext({activeIndex:0,onNavigate:()=>{}}),Xe=[Be,$e],Je=[Ue,Ke],Qe=[...Xe,...Je],Ze=a.forwardRef(function(e,t){const{render:n,orientation:r="both",loop:i=!0,rtl:o=!1,cols:l=1,disabledIndices:u,activeIndex:d,onNavigate:s,itemSizes:c,dense:m=!1,...p}=e,[f,h]=a.useState(0),v=null!=d?d:f,g=ee(null!=s?s:h),b=a.useRef([]),y=n&&"function"!=typeof n?n.props:{},w=a.useMemo(()=>({activeIndex:v,onNavigate:g}),[v,g]),M=l>1,E={...p,...y,ref:t,"aria-orientation":"both"===r?void 0:r,onKeyDown(e){null==p.onKeyDown||p.onKeyDown(e),null==y.onKeyDown||y.onKeyDown(e),function(e){if(!Qe.includes(e.key))return;let t=v;const n=ae(b,u),a=re(b,u),d=o?Be:$e,s=o?$e:Be;if(M){const s=c||Array.from({length:b.current.length},()=>({width:1,height:1})),p=le(s,l,m),f=p.findIndex(e=>null!=e&&!se(b,e,u)),h=p.reduce((e,t,n)=>null==t||se(b,t,u)?e:n,-1),g=p[oe({current:p.map(e=>e?b.current[e]:null)},{event:e,orientation:r,loop:i,rtl:o,cols:l,disabledIndices:de([...("function"!=typeof u?u:null)||b.current.map((e,t)=>se(b,t,u)?t:void 0),void 0],p),minIndex:f,maxIndex:h,prevIndex:ue(v>a?n:v,s,p,l,e.key===Ke?"bl":e.key===d?"tr":"tl")})];null!=g&&(t=g)}const p={horizontal:[d],vertical:[Ke],both:[d,Ke]}[r],f={horizontal:[s],vertical:[Ue],both:[s,Ue]}[r],h=M?Qe:{horizontal:Xe,vertical:Je,both:Qe}[r];var y;t===v&&[...p,...f].includes(e.key)&&(t=i&&t===a&&p.includes(e.key)?n:i&&t===n&&f.includes(e.key)?a:ie(b,{startingIndex:t,decrement:f.includes(e.key),disabledIndices:u})),t===v||ne(b,t)||(e.stopPropagation(),h.includes(e.key)&&e.preventDefault(),g(t),null==(y=b.current[t])||y.focus())}(e)}};return(0,be.jsx)(Ge.Provider,{value:w,children:(0,be.jsx)(Ae,{elementsRef:b,children:Ye(n,E)})})}),et=a.forwardRef(function(e,t){const{render:n,...r}=e,i=n&&"function"!=typeof n?n.props:{},{activeIndex:o,onNavigate:l}=a.useContext(Ge),{ref:u,index:d}=Fe(),s=Re([u,t,i.ref]),c=o===d;return Ye(n,{...r,...i,ref:s,tabIndex:c?0:-1,"data-active":c?"":void 0,onFocus(e){null==r.onFocus||r.onFocus(e),null==i.onFocus||i.onFocus(e),l(d)}})}),tt={...a};let nt=!1,at=0;const rt=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+at++,it=tt.useId||function(){const[e,t]=a.useState(()=>nt?rt():void 0);return J(()=>{null==e&&t(rt())},[]),a.useEffect(()=>{nt=!0},[]),e},ot=a.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:l}},width:u=14,height:d=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:m,stroke:p,d:f,style:{transform:h,...v}={},...g}=e,b=it(),[y,w]=a.useState(!1);if(J(()=>{r&&"rtl"===(0,i.L9)(r).direction&&w(!0)},[r]),!r)return null;const[M,E]=n.split("-"),C="top"===M||"bottom"===M;let k=m;(C&&null!=l&&l.x||!C&&null!=l&&l.y)&&(k=null);const _=2*c,x=_/2,H=u/2*(s/-8+1),T=d/2*s/4,V=!!f,L=k&&"end"===E?"bottom":"top";let q=k&&"end"===E?"right":"left";k&&y&&(q="end"===E?"left":"right");const S=null!=(null==o?void 0:o.x)?k||o.x:"",P=null!=(null==o?void 0:o.y)?k||o.y:"",D=f||"M0,0 H"+u+" L"+(u-H)+","+(d-T)+" Q"+u/2+","+d+" "+H+","+(d-T)+" Z",O={top:V?"rotate(180deg)":"",left:V?"rotate(90deg)":"rotate(-90deg)",bottom:V?"":"rotate(180deg)",right:V?"rotate(-90deg)":"rotate(90deg)"}[M];return(0,be.jsxs)("svg",{...g,"aria-hidden":!0,ref:t,width:V?u:u+_,height:u,viewBox:"0 0 "+u+" "+(d>u?d:u),style:{position:"absolute",pointerEvents:"none",[q]:S,[L]:P,[M]:C||V?"100%":"calc(100% - "+_/2+"px)",transform:[O,h].filter(e=>!!e).join(" "),...v},children:[_>0&&(0,be.jsx)("path",{clipPath:"url(#"+b+")",fill:"none",stroke:p,strokeWidth:_+(f?0:1),d:D}),(0,be.jsx)("path",{stroke:_&&!f?g.fill:"none",d:D}),(0,be.jsx)("clipPath",{id:b,children:(0,be.jsx)("rect",{x:-x,y:x*(V?-1:1),width:u+_,height:u})})]})});function lt(){const e=new Map;return{emit(t,n){var a;null==(a=e.get(t))||a.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var a;null==(a=e.get(t))||a.delete(n)}}}const ut=a.createContext(null),dt=a.createContext(null),st=()=>{var e;return(null==(e=a.useContext(ut))?void 0:e.id)||null},ct=()=>a.useContext(dt);function mt(e){const t=it(),n=ct(),a=st(),r=e||a;return J(()=>{if(!t)return;const e={id:t,parentId:r};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}},[n,t,r]),t}function pt(e){const{children:t,id:n}=e,r=st();return(0,be.jsx)(ut.Provider,{value:a.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function ft(e){const{children:t}=e,n=a.useRef([]),r=a.useCallback(e=>{n.current=[...n.current,e]},[]),i=a.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),[o]=a.useState(()=>lt());return(0,be.jsx)(dt.Provider,{value:a.useMemo(()=>({nodesRef:n,addNode:r,removeNode:i,events:o}),[r,i,o]),children:t})}function ht(e){return"data-floating-ui-"+e}function vt(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const gt=ht("safe-polygon");function bt(e,t,n){if(n&&!X(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function yt(e){return"function"==typeof e?e():e}function wt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:l,elements:u}=e,{enabled:d=!0,delay:s=0,handleClose:c=null,mouseOnly:m=!1,restMs:p=0,move:f=!0}=t,h=ct(),v=st(),g=Q(c),b=Q(s),y=Q(n),w=Q(p),M=a.useRef(),E=a.useRef(-1),C=a.useRef(),k=a.useRef(-1),_=a.useRef(!0),x=a.useRef(!1),H=a.useRef(()=>{}),T=a.useRef(!1),V=ee(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});a.useEffect(()=>{if(d)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(vt(E),vt(k),_.current=!0,T.current=!1)}},[d,l]),a.useEffect(()=>{if(!d)return;if(!g.current)return;if(!n)return;function e(e){V()&&r(!1,e,"hover")}const t=z(u.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[u.floating,n,r,d,g,V]);const L=a.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const a=bt(b.current,"close",M.current);a&&!C.current?(vt(E),E.current=window.setTimeout(()=>r(!1,e,n),a)):t&&(vt(E),r(!1,e,n))},[b,r]),q=ee(()=>{H.current(),C.current=void 0}),S=ee(()=>{if(x.current){const e=z(u.floating).body;e.style.pointerEvents="",e.removeAttribute(gt),x.current=!1}}),P=ee(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));a.useEffect(()=>{if(d&&(0,i.vq)(u.domReference)){const r=u.domReference,i=u.floating;return n&&r.addEventListener("mouseleave",a),f&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",a),i.addEventListener("mouseenter",l),i.addEventListener("mouseleave",s)),()=>{n&&r.removeEventListener("mouseleave",a),f&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",a),i.removeEventListener("mouseenter",l),i.removeEventListener("mouseleave",s))}}function e(e){if(vt(E),_.current=!1,m&&!X(M.current)||yt(w.current)>0&&!bt(b.current,"open"))return;const t=bt(b.current,"open",M.current);t?E.current=window.setTimeout(()=>{y.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(P())return void S();H.current();const t=z(u.floating);if(vt(k),T.current=!1,g.current&&o.current.floatingContext){n||vt(E),C.current=g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){S(),q(),P()||L(e,!0,"safe-polygon")}});const a=C.current;return t.addEventListener("mousemove",a),void(H.current=()=>{t.removeEventListener("mousemove",a)})}("touch"!==M.current||!I(u.floating,e.relatedTarget))&&L(e)}function a(e){P()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){S(),q(),P()||L(e)}})(e))}function l(){vt(E)}function s(e){P()||L(e,!1)}},[u,d,e,m,f,L,q,S,r,n,y,h,b,g,o,P,w]),J(()=>{var e;if(d&&n&&null!=(e=g.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&V()){x.current=!0;const e=u.floating;if((0,i.vq)(u.domReference)&&e){var t;const n=z(u.floating).body;n.setAttribute(gt,"");const a=u.domReference,r=null==h||null==(t=h.nodesRef.current.find(e=>e.id===v))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),n.style.pointerEvents="none",a.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",a.style.pointerEvents="",e.style.pointerEvents=""}}}},[d,n,v,u,h,g,V]),J(()=>{n||(M.current=void 0,T.current=!1,q(),S())},[n,q,S]),a.useEffect(()=>()=>{q(),vt(E),vt(k),S()},[d,u.domReference,q,S]);const D=a.useMemo(()=>{function e(e){M.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function a(){_.current||y.current||r(!0,t,"hover")}m&&!X(M.current)||n||0===yt(w.current)||T.current&&e.movementX**2+e.movementY**2<2||(vt(k),"touch"===M.current?a():(T.current=!0,k.current=window.setTimeout(a,yt(w.current))))}}},[m,r,n,y,w]);return a.useMemo(()=>d?{reference:D}:{},[d,D])}const Mt=()=>{},Et=a.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Mt,setState:Mt,isInstantPhase:!1}),Ct=()=>a.useContext(Et);function kt(e){const{children:t,delay:n,timeoutMs:r=0}=e,[i,o]=a.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),l=a.useRef(null),u=a.useCallback(e=>{o({currentId:e})},[]);return J(()=>{i.currentId?null===l.current?l.current=i.currentId:i.isInstantPhase||o({isInstantPhase:!0}):(i.isInstantPhase&&o({isInstantPhase:!1}),l.current=null)},[i.currentId,i.isInstantPhase]),(0,be.jsx)(Et.Provider,{value:a.useMemo(()=>({...i,setState:o,setCurrentId:u}),[i,u]),children:t})}function _t(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,floatingId:r}=e,{id:i,enabled:o=!0}=t,l=null!=i?i:r,u=Ct(),{currentId:d,setCurrentId:s,initialDelay:c,setState:m,timeoutMs:p}=u;return J(()=>{o&&d&&(m({delay:{open:1,close:bt(c,"close")}}),d!==l&&a(!1))},[o,l,a,m,d,c]),J(()=>{function e(){a(!1),m({delay:c,currentId:null})}if(o&&d&&!n&&d===l){if(p){const t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,m,d,l,a,c,p]),J(()=>{o&&s!==Mt&&n&&s(l)},[o,n,s,l]),u}const xt=a.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeoutIdRef:{current:-1},currentIdRef:{current:null},currentContextRef:{current:null}});function Ht(e){const{children:t,delay:n,timeoutMs:r=0}=e,i=a.useRef(n),o=a.useRef(n),l=a.useRef(null),u=a.useRef(null),d=a.useRef(-1);return(0,be.jsx)(xt.Provider,{value:a.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:o,currentIdRef:l,timeoutMs:r,currentContextRef:u,timeoutIdRef:d}),[r]),children:t})}function Tt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:i}=e,{enabled:o=!0}=t,l=a.useContext(xt),{currentIdRef:u,delayRef:d,timeoutMs:s,initialDelayRef:c,currentContextRef:m,hasProvider:p,timeoutIdRef:f}=l,[h,v]=a.useState(!1);return J(()=>{function e(){var e;v(!1),null==(e=m.current)||e.setIsInstantPhase(!1),u.current=null,m.current=null,d.current=c.current}if(o&&u.current&&!n&&u.current===i){if(v(!1),s)return f.current=window.setTimeout(e,s),()=>{clearTimeout(f.current)};e()}},[o,n,i,u,d,s,c,m,f]),J(()=>{if(!o)return;if(!n)return;const e=m.current,t=u.current;m.current={onOpenChange:r,setIsInstantPhase:v},u.current=i,d.current={open:0,close:bt(c.current,"close")},null!==t&&t!==i?(vt(f),v(!0),null==e||e.setIsInstantPhase(!0),null==e||e.onOpenChange(!1)):(v(!1),null==e||e.setIsInstantPhase(!1))},[o,n,i,r,u,d,s,c,m,f]),J(()=>()=>{m.current=null},[m]),a.useMemo(()=>({hasProvider:p,delayRef:d,isInstantPhase:h}),[p,d,h])}let Vt=0;function Lt(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:a=!0,sync:r=!1}=t;a&&cancelAnimationFrame(Vt);const i=()=>null==e?void 0:e.focus({preventScroll:n});r?i():Vt=requestAnimationFrame(i)}function qt(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}const St={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Pt(e){return"inert"===e?St.inert:"aria-hidden"===e?St["aria-hidden"]:St.none}let Dt=new WeakSet,Ot={},Rt=0;const jt=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,It=e=>e&&(e.host||It(e.parentNode)),At=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=It(t);return e.contains(n)?n:null}).filter(e=>null!=e);function Ft(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=(r=e[0],(null==r?void 0:r.ownerDocument)||document).body;var r;return function(e,t,n,a){const r="data-floating-ui-inert",o=a?"inert":n?"aria-hidden":null,l=At(t,e),u=new Set,d=new Set(l),s=[];Ot[r]||(Ot[r]=new WeakMap);const c=Ot[r];return l.forEach(function e(t){t&&!u.has(t)&&(u.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!d.has(t)&&[].forEach.call(t.children,t=>{if("script"!==(0,i.mq)(t))if(u.has(t))e(t);else{const e=o?t.getAttribute(o):null,n=null!==e&&"false"!==e,a=Pt(o),i=(a.get(t)||0)+1,l=(c.get(t)||0)+1;a.set(t,i),c.set(t,l),s.push(t),1===i&&n&&Dt.add(t),1===l&&t.setAttribute(r,""),!n&&o&&t.setAttribute(o,"inert"===o?"":"true")}})}(t),u.clear(),Rt++,()=>{s.forEach(e=>{const t=Pt(o),n=(t.get(e)||0)-1,a=(c.get(e)||0)-1;t.set(e,n),c.set(e,a),n||(!Dt.has(e)&&o&&e.removeAttribute(o),Dt.delete(e)),a||e.removeAttribute(r)}),Rt--,Rt||(St.inert=new WeakMap,St["aria-hidden"]=new WeakMap,St.none=new WeakMap,Dt=new WeakSet,Ot={})}}(e.concat(Array.from(a.querySelectorAll('[aria-live],[role="status"],output'))),a,t,n)}const zt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Wt=a.forwardRef(function(e,t){const[n,r]=a.useState();J(()=>{T()&&r("button")},[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[ht("focus-guard")]:"",style:zt};return(0,be.jsx)("span",{...e,...i})}),Nt=a.createContext(null),Bt=ht("portal");function $t(e){void 0===e&&(e={});const{id:t,root:n}=e,r=it(),o=Kt(),[l,u]=a.useState(null),d=a.useRef(null);return J(()=>()=>{null==l||l.remove(),queueMicrotask(()=>{d.current=null})},[l]),J(()=>{if(!r)return;if(d.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Bt,""),e.appendChild(n),d.current=n,u(n)},[t,r]),J(()=>{if(null===n)return;if(!r)return;if(d.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!(0,i.Ll)(e)&&(e=e.current),e=e||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,e.appendChild(a));const l=document.createElement("div");l.id=r,l.setAttribute(Bt,""),e=a||e,e.appendChild(l),d.current=l,u(l)},[t,n,r,o]),l}function Ut(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,o=$t({id:n,root:r}),[l,u]=a.useState(null),d=a.useRef(null),s=a.useRef(null),c=a.useRef(null),m=a.useRef(null),p=null==l?void 0:l.modal,f=null==l?void 0:l.open,h=!!l&&!l.modal&&l.open&&i&&!(!r&&!o);return a.useEffect(()=>{if(o&&i&&!p)return o.addEventListener("focusin",e,!0),o.addEventListener("focusout",e,!0),()=>{o.removeEventListener("focusin",e,!0),o.removeEventListener("focusout",e,!0)};function e(e){o&&he(e)&&("focusin"===e.type?ge:ve)(o)}},[o,i,p]),a.useEffect(()=>{o&&(f||ge(o))},[f,o]),(0,be.jsxs)(Nt.Provider,{value:a.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:d,afterOutsideRef:s,beforeInsideRef:c,afterInsideRef:m,portalNode:o,setFocusManagerState:u}),[i,o]),children:[h&&o&&(0,be.jsx)(Wt,{"data-type":"outside",ref:d,onFocus:e=>{if(he(e,o)){var t;null==(t=c.current)||t.focus()}else{const e=fe(l?l.domReference:null);null==e||e.focus()}}}),h&&o&&(0,be.jsx)("span",{"aria-owns":o.id,style:zt}),o&&ye.createPortal(t,o),h&&o&&(0,be.jsx)(Wt,{"data-type":"outside",ref:s,onFocus:e=>{if(he(e,o)){var t;null==(t=m.current)||t.focus()}else{const t=pe(l?l.domReference:null);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Kt=()=>a.useContext(Nt);function Yt(e){return a.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}const Gt=20;let Xt=[];function Jt(){Xt=Xt.filter(e=>e.isConnected)}function Qt(){return Jt(),Xt[Xt.length-1]}function Zt(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const a=ce(),r=k(e,a).filter(e=>{const t=e.getAttribute("data-tabindex")||"";return _(e,a)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),i=e.getAttribute("tabindex");t.current.includes("floating")||0===r.length?"0"!==i&&e.setAttribute("tabindex","0"):("-1"!==i||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const en=a.forwardRef(function(e,t){return(0,be.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:zt})});function tn(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:l=!0,initialFocus:u=0,returnFocus:d=!0,restoreFocus:s=!1,modal:c=!0,visuallyHiddenDismiss:m=!1,closeOnFocusOut:p=!0,outsideElementsInert:f=!1,getInsideElements:h=()=>[]}=e,{open:v,onOpenChange:g,events:b,dataRef:y,elements:{domReference:w,floating:M}}=t,E=ee(()=>{var e;return null==(e=y.current.floatingContext)?void 0:e.nodeId}),k=ee(h),x="number"==typeof u&&u<0,H=N(w)&&x,T=jt(),V=!T||l,L=!V||T&&f,q=Q(o),S=Q(u),P=Q(d),D=ct(),O=Kt(),R=a.useRef(null),F=a.useRef(null),W=a.useRef(!1),X=a.useRef(!1),Z=a.useRef(-1),te=a.useRef(-1),ne=null!=O,ae=B(M),re=ee(function(e){return void 0===e&&(e=ae),e?C(e,ce()):[]}),ie=ee(e=>{const t=re(e);return q.current.map(e=>w&&"reference"===e?w:ae&&"floating"===e?ae:t).filter(Boolean).flat()});a.useEffect(()=>{if(r)return;if(!c)return;function e(e){if("Tab"===e.key){I(ae,j(z(ae)))&&0===re().length&&!H&&K(e);const t=ie(),n=A(e);"reference"===q.current[0]&&n===w&&(K(e),e.shiftKey?Lt(t[t.length-1]):Lt(t[1])),"floating"===q.current[1]&&n===ae&&e.shiftKey&&(K(e),Lt(t[0]))}}const t=z(ae);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,w,ae,c,q,H,re,ie]),a.useEffect(()=>{if(!r&&M)return M.addEventListener("focusin",e),()=>{M.removeEventListener("focusin",e)};function e(e){const t=A(e),n=re().indexOf(t);-1!==n&&(Z.current=n)}},[r,M,re]),a.useEffect(()=>{if(r)return;if(!p)return;function e(){X.current=!0,setTimeout(()=>{X.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,a=A(e);queueMicrotask(()=>{const r=E(),o=!(I(w,t)||I(M,t)||I(t,M)||I(null==O?void 0:O.portalNode,t)||null!=t&&t.hasAttribute(ht("focus-guard"))||D&&($(D.nodesRef.current,r).find(e=>{var n,a;return I(null==(n=e.context)?void 0:n.elements.floating,t)||I(null==(a=e.context)?void 0:a.elements.domReference,t)})||U(D.nodesRef.current,r).find(e=>{var n,a,r;return[null==(n=e.context)?void 0:n.elements.floating,B(null==(a=e.context)?void 0:a.elements.floating)].includes(t)||(null==(r=e.context)?void 0:r.elements.domReference)===t})));if(n===w&&ae&&Zt(ae,q),s&&n!==w&&(null==a||!a.isConnected)&&j(z(ae))===z(ae).body){(0,i.sb)(ae)&&ae.focus();const e=Z.current,t=re(),n=t[e]||t[t.length-1]||ae;(0,i.sb)(n)&&n.focus()}y.current.insideReactTree?y.current.insideReactTree=!1:!H&&c||!t||!o||X.current||t===Qt()||(W.current=!0,g(!1,e,"focus-out"))})}const n=Boolean(!D&&O);function a(){vt(te),y.current.insideReactTree=!0,te.current=window.setTimeout(()=>{y.current.insideReactTree=!1})}return M&&(0,i.sb)(w)?(w.addEventListener("focusout",t),w.addEventListener("pointerdown",e),M.addEventListener("focusout",t),n&&M.addEventListener("focusout",a,!0),()=>{w.removeEventListener("focusout",t),w.removeEventListener("pointerdown",e),M.removeEventListener("focusout",t),n&&M.removeEventListener("focusout",a,!0)}):void 0},[r,w,M,ae,c,D,O,g,p,s,re,H,E,q,y]);const oe=a.useRef(null),le=a.useRef(null),ue=Yt([oe,null==O?void 0:O.beforeInsideRef]),de=Yt([le,null==O?void 0:O.afterInsideRef]);function se(e){return!r&&m&&c?(0,be.jsx)(en,{ref:"start"===e?R:F,onClick:e=>g(!1,e.nativeEvent),children:"string"==typeof m?m:"Dismiss"}):null}a.useEffect(()=>{var e,t;if(r)return;if(!M)return;const n=Array.from((null==O||null==(e=O.portalNode)?void 0:e.querySelectorAll("["+ht("portal")+"]"))||[]),a=null==(t=(D?U(D.nodesRef.current,E()):[]).find(e=>{var t;return N((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,i=[M,a,...n,...k(),R.current,F.current,oe.current,le.current,null==O?void 0:O.beforeOutsideRef.current,null==O?void 0:O.afterOutsideRef.current,q.current.includes("reference")||H?w:null].filter(e=>null!=e),o=c||H?Ft(i,!L,L):Ft(i);return()=>{o()}},[r,w,M,c,q,O,H,V,L,D,E,k]),J(()=>{if(r||!(0,i.sb)(ae))return;const e=j(z(ae));queueMicrotask(()=>{const t=ie(ae),n=S.current,a=("number"==typeof n?t[n]:n.current)||ae,r=I(ae,e);x||r||!v||Lt(a,{preventScroll:a===ae})})},[r,v,ae,x,ie,S]),J(()=>{if(r||!ae)return;const e=z(ae);var t;function n(e){let{reason:t,event:n,nested:a}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(W.current=!0),"outside-press"===t)if(a)W.current=!1;else if(Y(n)||G(n))W.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),W.current=!e}}t=j(e),Jt(),t&&"body"!==(0,i.mq)(t)&&(Xt.push(t),Xt.length>Gt&&(Xt=Xt.slice(-20))),b.on("openchange",n);const a=e.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,zt),ne&&w&&w.insertAdjacentElement("afterend",a),()=>{b.off("openchange",n);const t=j(e),r=I(M,t)||D&&$(D.nodesRef.current,E(),!1).some(e=>{var n;return I(null==(n=e.context)?void 0:n.elements.floating,t)}),o=function(){if("boolean"==typeof P.current){const e=w||Qt();return e&&e.isConnected?e:a}return P.current.current||a}();queueMicrotask(()=>{const n=function(e){const t=ce();return _(e,t)?e:C(e,t)[0]||e}(o);P.current&&!W.current&&(0,i.sb)(n)&&(n===t||t===e.body||r)&&n.focus({preventScroll:!0}),a.remove()})}},[r,M,ae,P,y,b,D,ne,w,E]),a.useEffect(()=>(queueMicrotask(()=>{W.current=!1}),()=>{queueMicrotask(Jt)}),[r]),J(()=>{if(!r&&O)return O.setFocusManagerState({modal:c,closeOnFocusOut:p,open:v,onOpenChange:g,domReference:w}),()=>{O.setFocusManagerState(null)}},[r,O,c,v,g,p,w]),J(()=>{r||ae&&Zt(ae,q)},[r,ae,q]);const me=!r&&V&&(!c||!H)&&(ne||c);return(0,be.jsxs)(be.Fragment,{children:[me&&(0,be.jsx)(Wt,{"data-type":"inside",ref:ue,onFocus:e=>{if(c){const e=ie();Lt("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=O&&O.preserveTabOrder&&O.portalNode)if(W.current=!1,he(e,O.portalNode)){const e=pe(w);null==e||e.focus()}else{var t;null==(t=O.beforeOutsideRef.current)||t.focus()}}}),!H&&se("start"),n,se("end"),me&&(0,be.jsx)(Wt,{"data-type":"inside",ref:de,onFocus:e=>{if(c)Lt(ie()[0]);else if(null!=O&&O.preserveTabOrder&&O.portalNode)if(p&&(W.current=!0),he(e,O.portalNode)){const e=fe(w);null==e||e.focus()}else{var t;null==(t=O.afterOutsideRef.current)||t.focus()}}})]})}let nn=0;const an="--floating-ui-scrollbar-width";let rn=()=>{};const on=a.forwardRef(function(e,t){const{lockScroll:n=!1,...a}=e;return J(()=>{if(n)return nn++,1===nn&&(rn=function(){const e=x(),t=/iP(hone|ad|od)|iOS/.test(e)||"MacIntel"===e&&navigator.maxTouchPoints>1,n=document.body.style,a=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,i=n.left?parseFloat(n.left):window.scrollX,o=n.top?parseFloat(n.top):window.scrollY;if(n.overflow="hidden",n.setProperty(an,r+"px"),r&&(n[a]=r+"px"),t){var l,u;const e=(null==(l=window.visualViewport)?void 0:l.offsetLeft)||0,t=(null==(u=window.visualViewport)?void 0:u.offsetTop)||0;Object.assign(n,{position:"fixed",top:-(o-Math.floor(t))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(n,{overflow:"",[a]:""}),n.removeProperty(an),t&&(Object.assign(n,{position:"",top:"",left:"",right:""}),window.scrollTo(i,o))}}()),()=>{nn--,0===nn&&rn()}},[n]),(0,be.jsx)("div",{ref:t,...a,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...a.style}})});function ln(e){return(0,i.sb)(e.target)&&"BUTTON"===e.target.tagName}function un(e){return W(e)}function dn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:l}}=e,{enabled:u=!0,event:d="click",toggle:s=!0,ignoreMouse:c=!1,keyboardHandlers:m=!0,stickIfOpen:p=!0}=t,f=a.useRef(),h=a.useRef(!1),v=a.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==d&&(X(t,!0)&&c||(!n||!s||o.current.openEvent&&p&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===d&&f.current?f.current=void 0:X(t,!0)&&c||(!n||!s||o.current.openEvent&&p&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!m||ln(e)||(" "!==e.key||un(l)||(e.preventDefault(),h.current=!0),function(e){return(0,i.sb)(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!m||ln(e)||un(l)||" "===e.key&&h.current&&(h.current=!1,r(!n||!s,e.nativeEvent,"click"))}}),[o,l,d,c,m,r,n,p,s]);return a.useMemo(()=>u?{reference:v}:{},[u,v])}function sn(e){return null!=e&&null!=e.clientX}function cn(e,t){void 0===t&&(t={});const{open:n,dataRef:r,elements:{floating:o,domReference:l},refs:u}=e,{enabled:d=!0,axis:s="both",x:c=null,y:m=null}=t,p=a.useRef(!1),f=a.useRef(null),[h,v]=a.useState(),[g,b]=a.useState([]),y=ee((e,t)=>{p.current||r.current.openEvent&&!sn(r.current.openEvent)||u.setPositionReference(function(e,t){let n=null,a=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){var i;const o=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},l="x"===t.axis||"both"===t.axis,u="y"===t.axis||"both"===t.axis,d=["mouseenter","mousemove"].includes((null==(i=t.dataRef.current.openEvent)?void 0:i.type)||"")&&"touch"!==t.pointerType;let s=o.width,c=o.height,m=o.x,p=o.y;return null==n&&t.x&&l&&(n=o.x-t.x),null==a&&t.y&&u&&(a=o.y-t.y),m-=n||0,p-=a||0,s=0,c=0,!r||d?(s="y"===t.axis?o.width:0,c="x"===t.axis?o.height:0,m=l&&null!=t.x?t.x:m,p=u&&null!=t.y?t.y:p):r&&!d&&(c="x"===t.axis?o.height:c,s="y"===t.axis?o.width:s),r=!0,{width:s,height:c,x:m,y:p,top:p,right:m+s,bottom:p+c,left:m}}}}(l,{x:e,y:t,axis:s,dataRef:r,pointerType:h}))}),w=ee(e=>{null==c&&null==m&&(n?f.current||b([]):y(e.clientX,e.clientY))}),M=X(h)?o:n,E=a.useCallback(()=>{if(!M||!d||null!=c||null!=m)return;const e=(0,i.zk)(o);function t(n){const a=A(n);I(o,a)?(e.removeEventListener("mousemove",t),f.current=null):y(n.clientX,n.clientY)}if(!r.current.openEvent||sn(r.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),f.current=null};return f.current=n,n}u.setPositionReference(l)},[M,d,c,m,o,r,u,l,y]);a.useEffect(()=>E(),[E,g]),a.useEffect(()=>{d&&!o&&(p.current=!1)},[d,o]),a.useEffect(()=>{!d&&n&&(p.current=!0)},[d,n]),J(()=>{!d||null==c&&null==m||(p.current=!1,y(c,m))},[d,c,m,y]);const C=a.useMemo(()=>{function e(e){let{pointerType:t}=e;v(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:w,onMouseEnter:w}},[w]);return a.useMemo(()=>d?{reference:C}:{},[d,C])}const mn={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},pn={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},fn=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function hn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:l}=e,{enabled:u=!0,escapeKey:d=!0,outsidePress:s=!0,outsidePressEvent:c="pointerdown",referencePress:m=!1,referencePressEvent:p="pointerdown",ancestorScroll:f=!1,bubbles:h,capture:v}=t,g=ct(),b=ee("function"==typeof s?s:()=>!1),y="function"==typeof s?b:s,w=a.useRef(!1),{escapeKey:M,outsidePress:E}=fn(h),{escapeKey:C,outsidePress:k}=fn(v),_=a.useRef(!1),x=ee(e=>{var t;if(!n||!u||!d||"Escape"!==e.key)return;if(_.current)return;const a=null==(t=l.current.floatingContext)?void 0:t.nodeId,i=g?$(g.nodesRef.current,a):[];if(!M&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),H=ee(e=>{var t;const n=()=>{var t;x(e),null==(t=A(e))||t.removeEventListener("keydown",n)};null==(t=A(e))||t.addEventListener("keydown",n)}),T=ee(e=>{var t;const n=l.current.insideReactTree;l.current.insideReactTree=!1;const a=w.current;if(w.current=!1,"click"===c&&a)return;if(n)return;if("function"==typeof y&&!y(e))return;const u=A(e),d="["+ht("inert")+"]",s=z(o.floating).querySelectorAll(d);let m=(0,i.vq)(u)?u:null;for(;m&&!(0,i.eu)(m);){const e=(0,i.$4)(m);if((0,i.eu)(e)||!(0,i.vq)(e))break;m=e}if(s.length&&(0,i.vq)(u)&&!u.matches("html,body")&&!I(u,o.floating)&&Array.from(s).every(e=>!I(m,e)))return;if((0,i.sb)(u)&&q){const t=(0,i.eu)(u),n=(0,i.L9)(u),a=/auto|scroll/,r=t||a.test(n.overflowX),o=t||a.test(n.overflowY),l=r&&u.clientWidth>0&&u.scrollWidth>u.clientWidth,d=o&&u.clientHeight>0&&u.scrollHeight>u.clientHeight,s="rtl"===n.direction,c=d&&(s?e.offsetX<=u.offsetWidth-u.clientWidth:e.offsetX>u.clientWidth),m=l&&e.offsetY>u.clientHeight;if(c||m)return}const p=null==(t=l.current.floatingContext)?void 0:t.nodeId,f=g&&$(g.nodesRef.current,p).some(t=>{var n;return F(e,null==(n=t.context)?void 0:n.elements.floating)});if(F(e,o.floating)||F(e,o.domReference)||f)return;const h=g?$(g.nodesRef.current,p):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),V=ee(e=>{var t;const n=()=>{var t;T(e),null==(t=A(e))||t.removeEventListener(c,n)};null==(t=A(e))||t.addEventListener(c,n)});a.useEffect(()=>{if(!n||!u)return;l.current.__escapeKeyBubbles=M,l.current.__outsidePressBubbles=E;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function a(){window.clearTimeout(e),_.current=!0}function s(){e=window.setTimeout(()=>{_.current=!1},(0,i.Tc)()?5:0)}const m=z(o.floating);d&&(m.addEventListener("keydown",C?H:x,C),m.addEventListener("compositionstart",a),m.addEventListener("compositionend",s)),y&&m.addEventListener(c,k?V:T,k);let p=[];return f&&((0,i.vq)(o.domReference)&&(p=(0,i.v9)(o.domReference)),(0,i.vq)(o.floating)&&(p=p.concat((0,i.v9)(o.floating))),!(0,i.vq)(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat((0,i.v9)(o.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=m.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{d&&(m.removeEventListener("keydown",C?H:x,C),m.removeEventListener("compositionstart",a),m.removeEventListener("compositionend",s)),y&&m.removeEventListener(c,k?V:T,k),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[l,o,d,y,c,n,r,f,u,M,E,x,C,H,T,k,V]),a.useEffect(()=>{l.current.insideReactTree=!1},[l,y,c]);const L=a.useMemo(()=>({onKeyDown:x,...m&&{[mn[p]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==p&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[x,r,m,p]),q=a.useMemo(()=>({onKeyDown:x,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[pn[c]]:()=>{l.current.insideReactTree=!0}}),[x,c,l]);return a.useMemo(()=>u?{reference:L,floating:q}:{},[u,L,q])}function vn(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=it(),o=a.useRef({}),[l]=a.useState(()=>lt()),u=null!=st(),[d,s]=a.useState(r.reference),c=ee((e,t,a)=>{o.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:a,nested:u}),null==n||n(e,t,a)}),m=a.useMemo(()=>({setPositionReference:s}),[]),p=a.useMemo(()=>({reference:d||r.reference||null,floating:r.floating||null,domReference:r.reference}),[d,r.reference,r.floating]);return a.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:p,events:l,floatingId:i,refs:m}),[t,c,p,l,i,m])}function gn(e){void 0===e&&(e={});const{nodeId:t}=e,n=vn({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[l,u]=a.useState(null),[d,s]=a.useState(null),c=(null==o?void 0:o.domReference)||l,m=a.useRef(null),p=ct();J(()=>{c&&(m.current=c)},[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:u=!0,whileElementsMounted:d,open:s}=e,[c,m]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=a.useState(r);Ee(p,r)||f(r);const[h,v]=a.useState(null),[g,b]=a.useState(null),y=a.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),w=a.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),M=o||h,E=l||g,C=a.useRef(null),k=a.useRef(null),_=a.useRef(c),x=null!=d,H=_e(d),T=_e(i),V=_e(s),L=a.useCallback(()=>{if(!C.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),(0,we.rD)(C.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==V.current};q.current&&!Ee(_.current,t)&&(_.current=t,ye.flushSync(()=>{m(t)}))})},[p,t,n,T,V]);Me(()=>{!1===s&&_.current.isPositioned&&(_.current.isPositioned=!1,m(e=>({...e,isPositioned:!1})))},[s]);const q=a.useRef(!1);Me(()=>(q.current=!0,()=>{q.current=!1}),[]),Me(()=>{if(M&&(C.current=M),E&&(k.current=E),M&&E){if(H.current)return H.current(M,E,L);L()}},[M,E,L,H,x]);const S=a.useMemo(()=>({reference:C,floating:k,setReference:y,setFloating:w}),[y,w]),P=a.useMemo(()=>({reference:M,floating:E}),[M,E]),D=a.useMemo(()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=ke(P.floating,c.x),a=ke(P.floating,c.y);return u?{...e,transform:"translate("+t+"px, "+a+"px)",...Ce(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:a}},[n,u,P.floating,c.x,c.y]);return a.useMemo(()=>({...c,update:L,refs:S,elements:P,floatingStyles:D}),[c,L,S,P,D])}({...e,elements:{...o,...d&&{reference:d}}}),h=a.useCallback(e=>{const t=(0,i.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),v=a.useCallback(e=>{((0,i.vq)(e)||null===e)&&(m.current=e,u(e)),((0,i.vq)(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!(0,i.vq)(e))&&f.refs.setReference(e)},[f.refs]),g=a.useMemo(()=>({...f.refs,setReference:v,setPositionReference:h,domReference:m}),[f.refs,v,h]),b=a.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),y=a.useMemo(()=>({...f,...r,refs:g,elements:b,nodeId:t}),[f,g,b,t,r]);return J(()=>{r.dataRef.current.floatingContext=y;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),a.useMemo(()=>({...f,context:y,refs:g,elements:b}),[f,g,b,y])}function bn(){return x().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&T()}function yn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:l,elements:u}=e,{enabled:d=!0,visibleOnly:s=!0}=t,c=a.useRef(!1),m=a.useRef(-1),p=a.useRef(!0);a.useEffect(()=>{if(!d)return;const e=(0,i.zk)(u.domReference);function t(){!n&&(0,i.sb)(u.domReference)&&u.domReference===j(z(u.domReference))&&(c.current=!0)}function a(){p.current=!0}function r(){p.current=!1}return e.addEventListener("blur",t),bn()&&(e.addEventListener("keydown",a,!0),e.addEventListener("pointerdown",r,!0)),()=>{e.removeEventListener("blur",t),bn()&&(e.removeEventListener("keydown",a,!0),e.removeEventListener("pointerdown",r,!0))}},[u.domReference,n,d]),a.useEffect(()=>{if(d)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(c.current=!0)}},[o,d]),a.useEffect(()=>()=>{vt(m)},[]);const f=a.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=A(e.nativeEvent);if(s&&(0,i.vq)(t))if(bn()&&!e.relatedTarget){if(!p.current&&!W(t))return}else if(!function(e){if(!e||L())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,a=(0,i.vq)(t)&&t.hasAttribute(ht("focus-guard"))&&"outside"===t.getAttribute("data-type");m.current=window.setTimeout(()=>{var e;const i=j(u.domReference?u.domReference.ownerDocument:document);(t||i!==u.domReference)&&(I(null==(e=l.current.floatingContext)?void 0:e.refs.floating.current,i)||I(u.domReference,i)||a||r(!1,n,"focus"))})}}),[l,u.domReference,r,s]);return a.useMemo(()=>d?{reference:f}:{},[d,f])}function wn(e,t,n){const a=new Map,r="item"===n;let i=e;if(r&&e){const{[We]:t,[Ne]:n,...a}=e;i=a}return{..."floating"===n&&{tabIndex:-1,[ze]:""},...i,...t.map(t=>{const a=t?t[n]:null;return"function"==typeof a?e?a(e):null:a}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var o;r&&[We,Ne].includes(n)||(0===n.indexOf("on")?(a.has(n)||a.set(n,[]),"function"==typeof i&&(null==(o=a.get(n))||o.push(i),e[n]=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return null==(e=a.get(n))?void 0:e.map(e=>e(...r)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function Mn(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),i=a.useCallback(t=>wn(t,e,"reference"),t),o=a.useCallback(t=>wn(t,e,"floating"),n),l=a.useCallback(t=>wn(t,e,"item"),r);return a.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:l}),[i,o,l])}const En="Escape";function Cn(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function kn(e,t){return Cn(t,e===Ue||e===Ke,e===Be||e===$e)}function _n(e,t,n){return Cn(t,e===Ke,n?e===Be:e===$e)||"Enter"===e||" "===e||""===e}function xn(e,t,n){return Cn(t,n?e===Be:e===$e,e===Ke)}function Hn(e,t,n,a){return"both"===t||"horizontal"===t&&a&&a>1?e===En:Cn(t,n?e===$e:e===Be,e===Ue)}function Tn(e,t){const{open:n,onOpenChange:r,elements:o,floatingId:l}=e,{listRef:u,activeIndex:d,onNavigate:s=()=>{},enabled:c=!0,selectedIndex:m=null,allowEscape:p=!1,loop:f=!1,nested:h=!1,rtl:v=!1,virtual:g=!1,focusItemOnOpen:b="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:w=!0,disabledIndices:M,orientation:E="vertical",parentOrientation:C,cols:k=1,scrollItemIntoView:_=!0,virtualItemRef:x,itemSizes:H,dense:T=!1}=t,V=Q(B(o.floating)),L=st(),q=ct();J(()=>{e.dataRef.current.orientation=E},[e,E]);const S=ee(()=>{s(-1===O.current?null:O.current)}),P=N(o.domReference),D=a.useRef(b),O=a.useRef(null!=m?m:-1),R=a.useRef(null),A=a.useRef(!0),F=a.useRef(S),W=a.useRef(!!o.floating),U=a.useRef(n),X=a.useRef(!1),Z=a.useRef(!1),te=Q(M),ce=Q(n),me=Q(_),pe=Q(m),[fe,he]=a.useState(),[ve,ge]=a.useState(),be=ee(()=>{function e(e){var t;g?(null!=(t=e.id)&&t.endsWith("-fui-option")&&(e.id=l+"-"+Math.random().toString(16).slice(2,10)),he(e.id),null==q||q.events.emit("virtualfocus",e),x&&(x.current=e)):Lt(e,{sync:X.current,preventScroll:!0})}const t=u.current[O.current],n=Z.current;t&&e(t),(X.current?e=>e():requestAnimationFrame)(()=>{const a=u.current[O.current]||t;if(!a)return;t||e(a);const r=me.current;r&&we&&(n||!A.current)&&(null==a.scrollIntoView||a.scrollIntoView("boolean"==typeof r?{block:"nearest",inline:"nearest"}:r))})});J(()=>{c&&(n&&o.floating?D.current&&null!=m&&(Z.current=!0,O.current=m,S()):W.current&&(O.current=-1,F.current()))},[c,n,o.floating,m,S]),J(()=>{if(c&&n&&o.floating)if(null==d){if(X.current=!1,null!=pe.current)return;if(W.current&&(O.current=-1,be()),(!U.current||!W.current)&&D.current&&(null!=R.current||!0===D.current&&null==R.current)){let e=0;const t=()=>{null==u.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(O.current=null==R.current||_n(R.current,E,v)||h?ae(u,te.current):re(u,te.current),R.current=null,S())};t()}}else ne(u,d)||(O.current=d,be(),Z.current=!1)},[c,n,o.floating,d,pe,h,u,E,v,S,be,te]),J(()=>{var e;if(!c||o.floating||!q||g||!W.current)return;const t=q.nodesRef.current,n=null==(e=t.find(e=>e.id===L))||null==(e=e.context)?void 0:e.elements.floating,a=j(z(o.floating)),r=t.some(e=>e.context&&I(e.context.elements.floating,a));n&&!r&&A.current&&n.focus({preventScroll:!0})},[c,o.floating,q,L,g]),J(()=>{if(c&&q&&g&&!L)return q.events.on("virtualfocus",e),()=>{q.events.off("virtualfocus",e)};function e(e){ge(e.id),x&&(x.current=e)}},[c,q,g,L,x]),J(()=>{F.current=S,U.current=n,W.current=!!o.floating}),J(()=>{n||(R.current=null,D.current=b)},[n,b]);const ye=null!=d,we=a.useMemo(()=>{function e(e){if(!ce.current)return;const t=u.current.indexOf(e);-1!==t&&O.current!==t&&(O.current=t,S())}return{onFocus(t){let{currentTarget:n}=t;X.current=!0,e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},onMouseMove(t){let{currentTarget:n}=t;X.current=!0,Z.current=!1,y&&e(n)},onPointerLeave(e){let{pointerType:t}=e;var n;A.current&&"touch"!==t&&(X.current=!0,y&&(O.current=-1,S(),g||null==(n=V.current)||n.focus({preventScroll:!0})))}}},[ce,V,y,u,S,g]),Me=a.useCallback(()=>{var e;return null!=C?C:null==q||null==(e=q.nodesRef.current.find(e=>e.id===L))||null==(e=e.context)||null==(e=e.dataRef)?void 0:e.current.orientation},[L,q,C]),Ee=ee(e=>{if(A.current=!1,X.current=!0,229===e.which)return;if(!ce.current&&e.currentTarget===V.current)return;if(h&&Hn(e.key,E,v,k))return kn(e.key,Me())||K(e),r(!1,e.nativeEvent,"list-navigation"),void((0,i.sb)(o.domReference)&&(g?null==q||q.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=O.current,a=ae(u,M),l=re(u,M);if(P||("Home"===e.key&&(K(e),O.current=a,S()),"End"===e.key&&(K(e),O.current=l,S())),k>1){const t=H||Array.from({length:u.current.length},()=>({width:1,height:1})),n=le(t,k,T),r=n.findIndex(e=>null!=e&&!se(u,e,M)),i=n.reduce((e,t,n)=>null==t||se(u,t,M)?e:n,-1),o=n[oe({current:n.map(e=>null!=e?u.current[e]:null)},{event:e,orientation:E,loop:f,rtl:v,cols:k,disabledIndices:de([...("function"!=typeof M?M:null)||u.current.map((e,t)=>se(u,t,M)?t:void 0),void 0],n),minIndex:r,maxIndex:i,prevIndex:ue(O.current>l?a:O.current,t,n,k,e.key===Ke?"bl":e.key===(v?Be:$e)?"tr":"tl"),stopEvent:!0})];if(null!=o&&(O.current=o,S()),"both"===E)return}if(kn(e.key,E)){if(K(e),n&&!g&&j(e.currentTarget.ownerDocument)===e.currentTarget)return O.current=_n(e.key,E,v)?a:l,void S();_n(e.key,E,v)?O.current=f?t>=l?p&&t!==u.current.length?-1:a:ie(u,{startingIndex:t,disabledIndices:M}):Math.min(l,ie(u,{startingIndex:t,disabledIndices:M})):O.current=f?t<=a?p&&-1!==t?u.current.length:l:ie(u,{startingIndex:t,decrement:!0,disabledIndices:M}):Math.max(a,ie(u,{startingIndex:t,decrement:!0,disabledIndices:M})),ne(u,O.current)&&(O.current=-1),S()}}),Ce=a.useMemo(()=>g&&n&&ye&&{"aria-activedescendant":ve||fe},[g,n,ye,ve,fe]),ke=a.useMemo(()=>({"aria-orientation":"both"===E?void 0:E,...P?{}:Ce,onKeyDown:Ee,onPointerMove(){A.current=!0}}),[Ce,Ee,E,P]),_e=a.useMemo(()=>{function e(e){"auto"===b&&Y(e.nativeEvent)&&(D.current=!0)}function t(e){D.current=b,"auto"===b&&G(e.nativeEvent)&&(D.current=!0)}return{...Ce,onKeyDown(e){A.current=!1;const t=e.key.startsWith("Arrow"),a=["Home","End"].includes(e.key),i=t||a,o=xn(e.key,E,v),l=Hn(e.key,E,v,k),d=xn(e.key,Me(),v),s=kn(e.key,E),c=(h?d:s)||"Enter"===e.key||""===e.key.trim();if(g&&n){const t=null==q?void 0:q.nodesRef.current.find(e=>null==e.parentId),n=q&&t?function(e,t){let n,a=-1;return function t(r,i){i>a&&(n=r,a=i),$(e,r).forEach(e=>{t(e.id,i+1)})}(t,0),e.find(e=>e.id===n)}(q.nodesRef.current,t.id):null;if(i&&n&&x){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(o||l){var p,f;const a=(null==(p=n.context)?void 0:p.elements.domReference)===e.currentTarget,r=l&&!a?null==(f=n.context)?void 0:f.elements.domReference:o?u.current.find(e=>(null==e?void 0:e.id)===fe):null;r&&(K(e),r.dispatchEvent(t),ge(void 0))}var b;if((s||a)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return K(e),void(null==(b=n.context.elements.domReference)||b.dispatchEvent(t))}return Ee(e)}if(n||w||!t){if(c){const t=kn(e.key,Me());R.current=h&&t?null:e.key}h?d&&(K(e),n?(O.current=ae(u,te.current),S()):r(!0,e.nativeEvent,"list-navigation")):s&&(null!=m&&(O.current=m),K(e),!n&&w?r(!0,e.nativeEvent,"list-navigation"):Ee(e),n&&S())}},onFocus(){n&&!g&&(O.current=-1,S())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[fe,Ce,k,Ee,te,b,u,h,S,r,n,w,E,Me,v,m,q,g,x]);return a.useMemo(()=>c?{reference:_e,floating:ke,item:we}:{},[c,_e,ke,we])}const Vn=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ln(e,t){var n,r;void 0===t&&(t={});const{open:i,elements:o,floatingId:l}=e,{enabled:u=!0,role:d="dialog"}=t,s=it(),c=(null==(n=o.domReference)?void 0:n.id)||s,m=a.useMemo(()=>{var e;return(null==(e=B(o.floating))?void 0:e.id)||l},[o.floating,l]),p=null!=(r=Vn.get(d))?r:d,f=null!=st(),h=a.useMemo(()=>"tooltip"===p||"label"===d?{["aria-"+("label"===d?"labelledby":"describedby")]:i?m:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===p?"dialog":p,"aria-controls":i?m:void 0,..."listbox"===p&&{role:"combobox"},..."menu"===p&&{id:c},..."menu"===p&&f&&{role:"menuitem"},..."select"===d&&{"aria-autocomplete":"none"},..."combobox"===d&&{"aria-autocomplete":"list"}},[p,m,f,i,c,d]),v=a.useMemo(()=>{const e={id:m,...p&&{role:p}};return"tooltip"===p||"label"===d?e:{...e,..."menu"===p&&{"aria-labelledby":c}}},[p,m,c,d]),g=a.useCallback(e=>{let{active:t,selected:n}=e;const a={role:"option",...t&&{id:m+"-fui-option"}};switch(d){case"select":case"combobox":return{...a,"aria-selected":n}}return{}},[m,d]);return a.useMemo(()=>u?{reference:h,floating:v,item:g}:{},[u,h,v,g])}const qn=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function Sn(e,t){return"function"==typeof e?e(t):e}function Pn(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=("number"==typeof i?i:i.close)||0,[l,u]=a.useState("unmounted"),d=function(e,t){const[n,r]=a.useState(e);return e&&!n&&r(!0),a.useEffect(()=>{if(!e&&n){const e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,o);return d||"close"!==l||u("unmounted"),J(()=>{if(r){if(n){u("initial");const e=requestAnimationFrame(()=>{ye.flushSync(()=>{u("open")})});return()=>{cancelAnimationFrame(e)}}u("close")}},[n,r]),{isMounted:d,status:l}}function Dn(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:l=250}=t,u=e.placement,d=u.split("-")[0],s=a.useMemo(()=>({side:d,placement:u}),[d,u]),c="number"==typeof l,m=(c?l:l.open)||0,p=(c?l:l.close)||0,[f,h]=a.useState(()=>({...Sn(o,s),...Sn(n,s)})),{isMounted:v,status:g}=Pn(e,{duration:l}),b=Q(n),y=Q(r),w=Q(i),M=Q(o);return J(()=>{const e=Sn(b.current,s),t=Sn(w.current,s),n=Sn(M.current,s),a=Sn(y.current,s)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===g&&h(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===g&&h({transitionProperty:Object.keys(a).map(qn).join(","),transitionDuration:m+"ms",...n,...a}),"close"===g){const a=t||e;h({transitionProperty:Object.keys(a).map(qn).join(","),transitionDuration:p+"ms",...n,...a})}},[p,w,b,y,M,m,g,s]),{isMounted:v,styles:f}}function On(e,t){var n;const{open:r,dataRef:i}=e,{listRef:o,activeIndex:l,onMatch:u,onTypingChange:d,enabled:s=!0,findMatch:c=null,resetMs:m=750,ignoreKeys:p=[],selectedIndex:f=null}=t,h=a.useRef(-1),v=a.useRef(""),g=a.useRef(null!=(n=null!=f?f:l)?n:-1),b=a.useRef(null),y=ee(u),w=ee(d),M=Q(c),E=Q(p);J(()=>{r&&(vt(h),b.current=null,v.current="")},[r]),J(()=>{var e;r&&""===v.current&&(g.current=null!=(e=null!=f?f:l)?e:-1)},[r,f,l]);const C=ee(e=>{e?i.current.typing||(i.current.typing=e,w(e)):i.current.typing&&(i.current.typing=e,w(e))}),k=ee(e=>{function t(e,t,n){const a=M.current?M.current(t,n):t.find(e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())));return a?e.indexOf(a):-1}const n=o.current;if(v.current.length>0&&" "!==v.current[0]&&(-1===t(n,n,v.current)?C(!1):" "===e.key&&K(e)),null==n||E.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(K(e),C(!0)),n.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&v.current===e.key&&(v.current="",g.current=b.current),v.current+=e.key,vt(h),h.current=window.setTimeout(()=>{v.current="",g.current=b.current,C(!1)},m);const a=g.current,i=t(n,[...n.slice((a||0)+1),...n.slice(0,(a||0)+1)],v.current);-1!==i?(y(i),b.current=i):" "!==e.key&&(v.current="",C(!1))}),_=a.useMemo(()=>({onKeyDown:k}),[k]),x=a.useMemo(()=>({onKeyDown:k,onKeyUp(e){" "===e.key&&C(!1)}}),[k,C]);return a.useMemo(()=>s?{reference:_,floating:x}:{},[s,_,x])}function Rn(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const jn=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:a,onFallbackChange:r,offset:i=0,index:l=0,minItemsVisible:u=4,referenceOverflowThreshold:d=0,scrollRef:s,...c}=(0,o._3)(e,t),{rects:m,elements:{floating:p}}=t,f=n.current[l],h=(null==s?void 0:s.current)||p,v=p.clientTop||h.clientTop,g=0!==p.clientTop,b=0!==h.clientTop,y=p===h;if(!f)return{};const w={...t,...await He(-f.offsetTop-p.clientTop-m.reference.height/2-f.offsetHeight/2-i).fn(t)},M=await(0,we.__)(Rn(w,h.scrollHeight+v+p.clientTop),c),E=await(0,we.__)(w,{...c,elementContext:"reference"}),C=(0,o.T9)(0,M.top),k=w.y+C,_=(h.scrollHeight>h.clientHeight?e=>e:o.LI)((0,o.T9)(0,h.scrollHeight+(g&&y||b?2*v:0)-C-(0,o.T9)(0,M.bottom)));if(h.style.maxHeight=_+"px",h.scrollTop=C,r){const e=h.offsetHeight<f.offsetHeight*(0,o.jk)(u,n.current.length)-1||E.top>=-d||E.bottom>=-d;ye.flushSync(()=>r(e))}return a&&(a.current=await(0,we.__)(Rn({...w,y:k},h.offsetHeight+v+p.clientTop),c)),{y:k}}});function In(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:l,onChange:u}=t,d=ee(u),s=a.useRef(!1),c=a.useRef(null),m=a.useRef(null);a.useEffect(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,a=o.current.top>=-.5,r=o.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,l=n<0?-1:1,u=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!a&&n>0||!r&&n<0?(e.preventDefault(),ye.flushSync(()=>{d(e=>e+Math[u](n,i*l))})):/firefox/i.test(H())&&(t.scrollTop+=n))}const t=(null==l?void 0:l.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame(()=>{c.current=t.scrollTop,null!=o.current&&(m.current={...o.current})}),()=>{c.current=null,m.current=null,t.removeEventListener("wheel",e)}):void 0},[i,n,r.floating,o,l,d]);const p=a.useMemo(()=>({onKeyDown(){s.current=!0},onWheel(){s.current=!1},onPointerMove(){s.current=!1},onScroll(){const e=(null==l?void 0:l.current)||r.floating;if(o.current&&e&&s.current){if(null!==c.current){const t=e.scrollTop-c.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&ye.flushSync(()=>d(e=>e+t))}requestAnimationFrame(()=>{c.current=e.scrollTop})}}}),[r.floating,d,o,l]);return a.useMemo(()=>i?{floating:p}:{},[i,p])}function An(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var a;return e.parentId===t&&(!n||(null==(a=e.context)?void 0:a.open))}).flatMap(t=>[t,...An(e,t.id,n)])}function Fn(e,t){const[n,a]=e;let r=!1;const i=t.length;for(let e=0,o=i-1;e<i;o=e++){const[i,l]=t[e]||[0,0],[u,d]=t[o]||[0,0];l>=a!=d>=a&&n<=(u-i)*(a-l)/(d-l)+i&&(r=!r)}return r}function zn(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:a=!0}=e,r={current:-1};let o=!1,l=null,u=null,d="undefined"!=typeof performance?performance.now():0;const s=e=>{let{x:n,y:s,placement:c,elements:m,onClose:p,nodeId:f,tree:h}=e;return function(e){function v(){vt(r),p()}if(vt(r),!m.domReference||!m.floating||null==c||null==n||null==s)return;const{clientX:g,clientY:b}=e,y=[g,b],w=function(e){return"composedPath"in e?e.composedPath()[0]:e.target}(e),M="mouseleave"===e.type,E=qt(m.floating,w),C=qt(m.domReference,w),k=m.domReference.getBoundingClientRect(),_=m.floating.getBoundingClientRect(),x=c.split("-")[0],H=n>_.right-_.width/2,T=s>_.bottom-_.height/2,V=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,k),L=_.width>k.width,q=_.height>k.height,S=(L?k:_).left,P=(L?k:_).right,D=(q?k:_).top,O=(q?k:_).bottom;if(E&&(o=!0,!M))return;if(C&&(o=!1),C&&!M)return void(o=!0);if(M&&(0,i.vq)(e.relatedTarget)&&qt(m.floating,e.relatedTarget))return;if(h&&An(h.nodesRef.current,f).length)return;if("top"===x&&s>=k.bottom-1||"bottom"===x&&s<=k.top+1||"left"===x&&n>=k.right-1||"right"===x&&n<=k.left+1)return v();let R=[];switch(x){case"top":R=[[S,k.top+1],[S,_.bottom-1],[P,_.bottom-1],[P,k.top+1]];break;case"bottom":R=[[S,_.top+1],[S,k.bottom-1],[P,k.bottom-1],[P,_.top+1]];break;case"left":R=[[_.right-1,O],[_.right-1,D],[k.left+1,D],[k.left+1,O]];break;case"right":R=[[k.right-1,O],[k.right-1,D],[_.left+1,D],[_.left+1,O]]}if(!Fn([g,b],R)){if(o&&!V)return v();if(!M&&a){const t=function(e,t){const n=performance.now(),a=n-d;if(null===l||null===u||0===a)return l=e,u=t,d=n,null;const r=e-l,i=t-u,o=Math.sqrt(r*r+i*i);return l=e,u=t,d=n,o/a}(e.clientX,e.clientY);if(null!==t&&t<.1)return v()}Fn([g,b],function(e){let[n,a]=e;switch(x){case"top":return[[L?n+t/2:H?n+4*t:n-4*t,a+t+1],[L?n-t/2:H?n+4*t:n-4*t,a+t+1],[_.left,H||L?_.bottom-t:_.top],[_.right,H?L?_.bottom-t:_.top:_.bottom-t]];case"bottom":return[[L?n+t/2:H?n+4*t:n-4*t,a-t],[L?n-t/2:H?n+4*t:n-4*t,a-t],[_.left,H||L?_.top+t:_.bottom],[_.right,H?L?_.top+t:_.bottom:_.top+t]];case"left":{const e=[n+t+1,q?a+t/2:T?a+4*t:a-4*t],r=[n+t+1,q?a-t/2:T?a+4*t:a-4*t];return[[T||q?_.right-t:_.left,_.top],[T?q?_.right-t:_.left:_.right-t,_.bottom],e,r]}case"right":return[[n-t,q?a+t/2:T?a+4*t:a-4*t],[n-t,q?a-t/2:T?a+4*t:a-4*t],[T||q?_.left+t:_.right,_.top],[T?q?_.left+t:_.right:_.left+t,_.bottom]]}}([n,s]))?!o&&a&&(r.current=window.setTimeout(v,40)):v()}}};return s.__options={blockPointerEvents:n},s}},27746:(e,t,n)=>{"use strict";t.set=function(e,t,n){let o=(0,i.toDate)(e,n?.in);return isNaN(+o)?(0,a.constructFrom)(n?.in||e,NaN):(null!=t.year&&o.setFullYear(t.year),null!=t.month&&(o=(0,r.setMonth)(o,t.month)),null!=t.date&&o.setDate(t.date),null!=t.hours&&o.setHours(t.hours),null!=t.minutes&&o.setMinutes(t.minutes),null!=t.seconds&&o.setSeconds(t.seconds),null!=t.milliseconds&&o.setMilliseconds(t.milliseconds),o)};var a=n(4497),r=n(57984),i=n(24429)},27749:(e,t,n)=>{"use strict";t.match=void 0;var a=n(78741),r=n(58869);t.match={ordinalNumber:(0,r.buildMatchPatternFn)({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},defaultParseWidth:"any"})}},27857:(e,t,n)=>{"use strict";t.beTarask=void 0;var a=n(51243),r=n(23076),i=n(93830),o=n(94094),l=n(95898);t.beTarask={code:"be-tarask",formatDistance:a.formatDistance,formatLong:r.formatLong,formatRelative:i.formatRelative,localize:o.localize,match:l.match,options:{weekStartsOn:1,firstWeekContainsDate:1}}},27874:(e,t,n)=>{"use strict";t.match=void 0;var a=n(78741),r=n(58869);t.match={ordinalNumber:(0,r.buildMatchPatternFn)({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:"any"})}},27883:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentedControl=void 0;var a=n(80385);Object.defineProperty(t,"SegmentedControl",{enumerable:!0,get:function(){return a.SegmentedControl}})},27887:(e,t,n)=>{"use strict";t.formatLong=void 0;var a=n(52121);t.formatLong={date:(0,a.buildFormatLongFn)({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.buildFormatLongFn)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.buildFormatLongFn)({formats:{full:"{{date}} 'को' {{time}}",long:"{{date}} 'को' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})}},27938:(e,t)=>{"use strict";t.formatRelative=void 0;const n={lastWeek:"eeee 'la semaine dernière à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'la semaine prochaine à' p",other:"P"};t.formatRelative=(e,t,a,r)=>n[e]},28019:(e,t,n)=>{"use strict";t.startOfHour=function(e,t){const n=(0,a.toDate)(e,t?.in);return n.setMinutes(0,0,0),n};var a=n(24429)},28061:(e,t)=>{"use strict";t.formatRelative=void 0;const n={lastWeek:"eeee 'שעבר בשעה' p",yesterday:"'אתמול בשעה' p",today:"'היום בשעה' p",tomorrow:"'מחר בשעה' p",nextWeek:"eeee 'בשעה' p",other:"P"};t.formatRelative=(e,t,a,r)=>n[e]},28135:(e,t,n)=>{"use strict";t.formatLong=void 0;var a=n(52121);t.formatLong={date:(0,a.buildFormatLongFn)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.buildFormatLongFn)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.buildFormatLongFn)({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})}},28141:(e,t,n)=>{"use strict";t.localize=void 0;var a=n(91151);t.localize={ordinalNumber:(e,t)=>Number(e)+".",era:(0,a.buildLocalizeFn)({values:{narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus előtt","időszámításunk szerint"]},defaultWidth:"wide"}),quarter:(0,a.buildLocalizeFn)({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. n.év","2. n.év","3. n.év","4. n.év"],wide:["1. negyedév","2. negyedév","3. negyedév","4. negyedév"]},defaultWidth:"wide",argumentCallback:e=>e-1,formattingValues:{narrow:["I.","II.","III.","IV."],abbreviated:["I. n.év","II. n.év","III. n.év","IV. n.év"],wide:["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"]},defaultFormattingWidth:"wide"}),month:(0,a.buildLocalizeFn)({values:{narrow:["J","F","M","Á","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],wide:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},defaultWidth:"wide"}),day:(0,a.buildLocalizeFn)({values:{narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},defaultWidth:"wide"}),dayPeriod:(0,a.buildLocalizeFn)({values:{narrow:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},abbreviated:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},wide:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"délután",evening:"este",night:"éjjel"}},defaultWidth:"wide"})}},28200:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var a,r=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i.apply(null,arguments)}const o=function(e){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,className:"maximize-2_svg__feather maximize-2_svg__feather-maximize-2",viewBox:"0 0 24 24"},e),a||(a=r.createElement("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})))}},28353:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionItem=void 0;const r=n(31085),i=a(n(88694)),o=n(77506),l=n(56818),u=n(42885),d=n(21652),s=n(35346),c=i.default.div`
|
|
1255
|
+
`;t.PasswordRule=({label:e,isValid:t,isEmpty:n})=>{const{t:a}=(0,o.useTranslation)("common");let i=null;return n||(i=t?(0,r.jsx)(d,{"aria-hidden":"true",focusable:!1,name:"check",size:"16"}):(0,r.jsx)(d,{"aria-label":`${a("error")},`,focusable:!0,name:"alertOctagon",role:"img",size:"16"})),(0,r.jsxs)(u,{isEmpty:n,isSuccess:t,children:[i,(0,r.jsx)(s,{children:e})]})};try{t.PasswordRule.displayName="PasswordRule",t.PasswordRule.__docgenInfo={description:"",displayName:"PasswordRule",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},isEmpty:{defaultValue:null,description:"",name:"isEmpty",required:!0,type:{name:"boolean"}},isValid:{defaultValue:null,description:"",name:"isValid",required:!0,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/password-creation-input/password-rule.tsx#PasswordRule"]={docgenInfo:t.PasswordRule.__docgenInfo,name:"PasswordRule",path:"src/components/password-creation-input/password-rule.tsx#PasswordRule"})}catch(e){}},27265:(e,t)=>{"use strict";t.formatRelative=void 0;const n={lastWeek:"'గత' eeee p",yesterday:"'నిన్న' p",today:"'ఈ రోజు' p",tomorrow:"'రేపు' p",nextWeek:"'తదుపరి' eeee p",other:"P"};t.formatRelative=(e,t,a,r)=>n[e]},27400:(e,t,n)=>{"use strict";t.yearsToQuarters=function(e){return Math.trunc(e*a.quartersInYear)};var a=n(98613)},27574:(e,t,n)=>{"use strict";t.getQuarter=function(e,t){const n=(0,a.toDate)(e,t?.in);return Math.trunc(n.getMonth()/3)+1};var a=n(24429)},27625:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Composite:()=>Ze,CompositeItem:()=>et,FloatingArrow:()=>ot,FloatingDelayGroup:()=>kt,FloatingFocusManager:()=>tn,FloatingList:()=>Ae,FloatingNode:()=>pt,FloatingOverlay:()=>on,FloatingPortal:()=>Ut,FloatingTree:()=>ft,NextFloatingDelayGroup:()=>Ht,arrow:()=>Oe,autoPlacement:()=>Se,autoUpdate:()=>we.ll,computePosition:()=>we.rD,detectOverflow:()=>we.__,flip:()=>Le,getOverflowAncestors:()=>i.v9,hide:()=>Pe,inline:()=>De,inner:()=>jn,limitShift:()=>Ve,offset:()=>He,platform:()=>we.iD,safePolygon:()=>zn,shift:()=>Te,size:()=>qe,useClick:()=>dn,useClientPoint:()=>cn,useDelayGroup:()=>_t,useDelayGroupContext:()=>Ct,useDismiss:()=>hn,useFloating:()=>gn,useFloatingNodeId:()=>mt,useFloatingParentNodeId:()=>st,useFloatingPortalNode:()=>$t,useFloatingRootContext:()=>vn,useFloatingTree:()=>ct,useFocus:()=>yn,useHover:()=>wt,useId:()=>it,useInnerOffset:()=>In,useInteractions:()=>Mn,useListItem:()=>Fe,useListNavigation:()=>Tn,useMergeRefs:()=>Re,useNextDelayGroup:()=>Tt,useRole:()=>Ln,useTransitionStatus:()=>Pn,useTransitionStyles:()=>Dn,useTypeahead:()=>On});var a=n(39155),r=n.t(a,2),i=n(1860),o=n(22166),l=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),u="undefined"==typeof Element,d=u?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!u&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},c=function(e,t){var n;void 0===t&&(t=!0);var a=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===a||"true"===a||t&&e&&c(e.parentNode)},m=function(e,t,n){if(c(e))return[];var a=Array.prototype.slice.apply(e.querySelectorAll(l));return t&&d.call(e,l)&&a.unshift(e),a.filter(n)},p=function(e,t,n){for(var a=[],r=Array.from(e);r.length;){var i=r.shift();if(!c(i,!1))if("SLOT"===i.tagName){var o=i.assignedElements(),u=o.length?o:i.children,s=p(u,!0,n);n.flatten?a.push.apply(a,s):a.push({scopeParent:i,candidates:s})}else{d.call(i,l)&&n.filter(i)&&(t||!e.includes(i))&&a.push(i);var m=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),f=!c(m,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(m&&f){var h=p(!0===m?i.children:m.children,!0,n);n.flatten?a.push.apply(a,h):a.push({scopeParent:i,candidates:h})}else r.unshift.apply(r,i.children)}}return a},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},h=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!f(e)?0:e.tabIndex},v=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},g=function(e){return"INPUT"===e.tagName},b=function(e){var t=e.getBoundingClientRect(),n=t.width,a=t.height;return 0===n&&0===a},y=function(e,t){return!(t.disabled||c(t)||function(e){return g(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,a=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var r=d.call(e,"details>summary:first-of-type")?e.parentElement:e;if(d.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return b(e)}else{if("function"==typeof a){for(var i=e;e;){var o=e.parentElement,l=s(e);if(o&&!o.shadowRoot&&!0===a(o))return b(e);e=e.assignedSlot?e.assignedSlot:o||l===e.ownerDocument?o:l.host}e=i}if(function(e){var t,n,a,r,i=e&&s(e),o=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=o)&&void 0!==n&&null!==(a=n.ownerDocument)&&void 0!==a&&a.contains(o)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!l&&o;){var u,d,c;l=!(null===(d=o=null===(u=i=s(o))||void 0===u?void 0:u.host)||void 0===d||null===(c=d.ownerDocument)||void 0===c||!c.contains(o))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var a=t.children.item(n);if("LEGEND"===a.tagName)return!!d.call(t,"fieldset[disabled] *")||!a.contains(e)}return!0}t=t.parentElement}return!1}(t))},w=function(e,t){return!(function(e){return function(e){return g(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),a=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=a(window.CSS.escape(e.name));else try{t=a(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)}(t)||h(t)<0||!y(e,t))},M=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},E=function(e){var t=[],n=[];return e.forEach(function(e,a){var r=!!e.scopeParent,i=r?e.scopeParent:e,o=function(e,t){var n=h(e);return n<0&&t&&!f(e)?0:n}(i,r),l=r?E(e.candidates):i;0===o?r?t.push.apply(t,l):t.push(i):n.push({documentOrder:a,tabIndex:o,item:e,isScope:r,content:l})}),n.sort(v).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},C=function(e,t){var n;return n=(t=t||{}).getShadowRoot?p([e],t.includeContainer,{filter:w.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:M}):m(e,t.includeContainer,w.bind(null,t)),E(n)},k=function(e,t){return(t=t||{}).getShadowRoot?p([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):m(e,t.includeContainer,y.bind(null,t))},_=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==d.call(e,l)&&w(t,e)};function x(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function H(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function T(){return/apple/i.test(navigator.vendor)}function V(){const e=/android/i;return e.test(x())||e.test(H())}function L(){return H().includes("jsdom/")}const q="data-floating-ui-focusable",S="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",P="ArrowLeft",D="ArrowRight",O="ArrowUp",R="ArrowDown";function j(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function I(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function A(e){return"composedPath"in e?e.composedPath()[0]:e.target}function F(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function z(e){return(null==e?void 0:e.ownerDocument)||document}function W(e){return(0,i.sb)(e)&&e.matches(S)}function N(e){return!!e&&"combobox"===e.getAttribute("role")&&W(e)}function B(e){return e?e.hasAttribute(q)?e:e.querySelector("["+q+"]")||e:null}function $(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var a;return e.parentId===t&&(!n||(null==(a=e.context)?void 0:a.open))}).flatMap(t=>[t,...$(e,t.id,n)])}function U(e,t){var n;let a=[],r=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;r;){const t=e.find(e=>e.id===r);r=null==t?void 0:t.parentId,t&&(a=a.concat(t))}return a}function K(e){e.preventDefault(),e.stopPropagation()}function Y(e){return!(0!==e.mozInputSource||!e.isTrusted)||(V()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function G(e){return!L()&&(!V()&&0===e.width&&0===e.height||V()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function X(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var J="undefined"!=typeof document?a.useLayoutEffect:function(){};function Q(e){const t=a.useRef(e);return J(()=>{t.current=e}),t}const Z={...r}.useInsertionEffect||(e=>e());function ee(e){const t=a.useRef(()=>{});return Z(()=>{t.current=e}),a.useCallback(function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return null==t.current?void 0:t.current(...n)},[])}function te(e,t,n){return Math.floor(e/t)!==n}function ne(e,t){return t<0||t>=e.current.length}function ae(e,t){return ie(e,{disabledIndices:t})}function re(e,t){return ie(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function ie(e,t){let{startingIndex:n=-1,decrement:a=!1,disabledIndices:r,amount:i=1}=void 0===t?{}:t,o=n;do{o+=a?-i:i}while(o>=0&&o<=e.current.length-1&&se(e,o,r));return o}function oe(e,t){let{event:n,orientation:a,loop:r,rtl:i,cols:l,disabledIndices:u,minIndex:d,maxIndex:s,prevIndex:c,stopEvent:m=!1}=t,p=c;if(n.key===O){if(m&&K(n),-1===c)p=s;else if(p=ie(e,{startingIndex:p,amount:l,decrement:!0,disabledIndices:u}),r&&(c-l<d||p<0)){const e=c%l,t=s%l,n=s-(t-e);p=t===e?s:t>e?n:n-l}ne(e,p)&&(p=c)}if(n.key===R&&(m&&K(n),-1===c?p=d:(p=ie(e,{startingIndex:c,amount:l,disabledIndices:u}),r&&c+l>s&&(p=ie(e,{startingIndex:c%l-l,amount:l,disabledIndices:u}))),ne(e,p)&&(p=c)),"both"===a){const t=(0,o.RI)(c/l);n.key===(i?P:D)&&(m&&K(n),c%l!==l-1?(p=ie(e,{startingIndex:c,disabledIndices:u}),r&&te(p,l,t)&&(p=ie(e,{startingIndex:c-c%l-1,disabledIndices:u}))):r&&(p=ie(e,{startingIndex:c-c%l-1,disabledIndices:u})),te(p,l,t)&&(p=c)),n.key===(i?D:P)&&(m&&K(n),c%l!==0?(p=ie(e,{startingIndex:c,decrement:!0,disabledIndices:u}),r&&te(p,l,t)&&(p=ie(e,{startingIndex:c+(l-c%l),decrement:!0,disabledIndices:u}))):r&&(p=ie(e,{startingIndex:c+(l-c%l),decrement:!0,disabledIndices:u})),te(p,l,t)&&(p=c));const a=(0,o.RI)(s/l)===t;ne(e,p)&&(p=r&&a?n.key===(i?D:P)?s:ie(e,{startingIndex:c-c%l-1,disabledIndices:u}):c)}return p}function le(e,t,n){const a=[];let r=0;return e.forEach((e,i)=>{let{width:o,height:l}=e,u=!1;for(n&&(r=0);!u;){const e=[];for(let n=0;n<o;n++)for(let a=0;a<l;a++)e.push(r+n+a*t);r%t+o<=t&&e.every(e=>null==a[e])?(e.forEach(e=>{a[e]=i}),u=!0):r++}}),[...a]}function ue(e,t,n,a,r){if(-1===e)return-1;const i=n.indexOf(e),o=t[e];switch(r){case"tl":return i;case"tr":return o?i+o.width-1:i;case"bl":return o?i+(o.height-1)*a:i;case"br":return n.lastIndexOf(e)}}function de(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function se(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);const a=e.current[t];return null==a||a.hasAttribute("disabled")||"true"===a.getAttribute("aria-disabled")}const ce=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function me(e,t){const n=C(e,ce()),a=n.length;if(0===a)return;const r=j(z(e)),i=n.indexOf(r);return n[-1===i?1===t?0:a-1:i+t]}function pe(e){return me(z(e).body,1)||e}function fe(e){return me(z(e).body,-1)||e}function he(e,t){const n=t||e.currentTarget,a=e.relatedTarget;return!a||!I(n,a)}function ve(e){C(e,ce()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function ge(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}var be=n(31085),ye=n(69514),we=n(18684),Me="undefined"!=typeof document?a.useLayoutEffect:function(){};function Ee(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,a,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;0!==a--;)if(!Ee(e[a],t[a]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;0!==a--;)if(!{}.hasOwnProperty.call(t,r[a]))return!1;for(a=n;0!==a--;){const n=r[a];if(!("_owner"===n&&e.$$typeof||Ee(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Ce(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ke(e,t){const n=Ce(e);return Math.round(t*n)/n}function _e(e){const t=a.useRef(e);return Me(()=>{t.current=e}),t}const xe=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:a}="function"==typeof e?e(t):e;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?(0,we.UE)({element:n.current,padding:a}).fn(t):{}:n?(0,we.UE)({element:n,padding:a}).fn(t):{};var r}}),He=(e,t)=>({...(0,we.cY)(e),options:[e,t]}),Te=(e,t)=>({...(0,we.BN)(e),options:[e,t]}),Ve=(e,t)=>({...(0,we.ER)(e),options:[e,t]}),Le=(e,t)=>({...(0,we.UU)(e),options:[e,t]}),qe=(e,t)=>({...(0,we.Ej)(e),options:[e,t]}),Se=(e,t)=>({...(0,we.RK)(e),options:[e,t]}),Pe=(e,t)=>({...(0,we.jD)(e),options:[e,t]}),De=(e,t)=>({...(0,we.mG)(e),options:[e,t]}),Oe=(e,t)=>({...xe(e),options:[e,t]});function Re(e){const t=a.useRef(void 0),n=a.useCallback(t=>{const n=e.map(e=>{if(null!=e){if("function"==typeof e){const n=e,a=n(t);return"function"==typeof a?a:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return a.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function je(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const Ie=a.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Ae(e){const{children:t,elementsRef:n,labelsRef:r}=e,[i,o]=a.useState(()=>new Set),l=a.useCallback(e=>{o(t=>new Set(t).add(e))},[]),u=a.useCallback(e=>{o(t=>{const n=new Set(t);return n.delete(e),n})},[]),d=a.useMemo(()=>{const e=new Map;return Array.from(i.keys()).sort(je).forEach((t,n)=>{e.set(t,n)}),e},[i]);return(0,be.jsx)(Ie.Provider,{value:a.useMemo(()=>({register:l,unregister:u,map:d,elementsRef:n,labelsRef:r}),[l,u,d,n,r]),children:t})}function Fe(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:r,map:i,elementsRef:o,labelsRef:l}=a.useContext(Ie),[u,d]=a.useState(null),s=a.useRef(null),c=a.useCallback(e=>{if(s.current=e,null!==u&&(o.current[u]=e,l)){var n;const a=void 0!==t;l.current[u]=a?t:null!=(n=null==e?void 0:e.textContent)?n:null}},[u,o,l,t]);return J(()=>{const e=s.current;if(e)return n(e),()=>{r(e)}},[n,r]),J(()=>{const e=s.current?i.get(s.current):null;null!=e&&d(e)},[i]),a.useMemo(()=>({ref:c,index:null==u?-1:u}),[u,c])}const ze="data-floating-ui-focusable",We="active",Ne="selected",Be="ArrowLeft",$e="ArrowRight",Ue="ArrowUp",Ke="ArrowDown";function Ye(e,t){return"function"==typeof e?e(t):e?a.cloneElement(e,t):(0,be.jsx)("div",{...t})}const Ge=a.createContext({activeIndex:0,onNavigate:()=>{}}),Xe=[Be,$e],Je=[Ue,Ke],Qe=[...Xe,...Je],Ze=a.forwardRef(function(e,t){const{render:n,orientation:r="both",loop:i=!0,rtl:o=!1,cols:l=1,disabledIndices:u,activeIndex:d,onNavigate:s,itemSizes:c,dense:m=!1,...p}=e,[f,h]=a.useState(0),v=null!=d?d:f,g=ee(null!=s?s:h),b=a.useRef([]),y=n&&"function"!=typeof n?n.props:{},w=a.useMemo(()=>({activeIndex:v,onNavigate:g}),[v,g]),M=l>1,E={...p,...y,ref:t,"aria-orientation":"both"===r?void 0:r,onKeyDown(e){null==p.onKeyDown||p.onKeyDown(e),null==y.onKeyDown||y.onKeyDown(e),function(e){if(!Qe.includes(e.key))return;let t=v;const n=ae(b,u),a=re(b,u),d=o?Be:$e,s=o?$e:Be;if(M){const s=c||Array.from({length:b.current.length},()=>({width:1,height:1})),p=le(s,l,m),f=p.findIndex(e=>null!=e&&!se(b,e,u)),h=p.reduce((e,t,n)=>null==t||se(b,t,u)?e:n,-1),g=p[oe({current:p.map(e=>e?b.current[e]:null)},{event:e,orientation:r,loop:i,rtl:o,cols:l,disabledIndices:de([...("function"!=typeof u?u:null)||b.current.map((e,t)=>se(b,t,u)?t:void 0),void 0],p),minIndex:f,maxIndex:h,prevIndex:ue(v>a?n:v,s,p,l,e.key===Ke?"bl":e.key===d?"tr":"tl")})];null!=g&&(t=g)}const p={horizontal:[d],vertical:[Ke],both:[d,Ke]}[r],f={horizontal:[s],vertical:[Ue],both:[s,Ue]}[r],h=M?Qe:{horizontal:Xe,vertical:Je,both:Qe}[r];var y;t===v&&[...p,...f].includes(e.key)&&(t=i&&t===a&&p.includes(e.key)?n:i&&t===n&&f.includes(e.key)?a:ie(b,{startingIndex:t,decrement:f.includes(e.key),disabledIndices:u})),t===v||ne(b,t)||(e.stopPropagation(),h.includes(e.key)&&e.preventDefault(),g(t),null==(y=b.current[t])||y.focus())}(e)}};return(0,be.jsx)(Ge.Provider,{value:w,children:(0,be.jsx)(Ae,{elementsRef:b,children:Ye(n,E)})})}),et=a.forwardRef(function(e,t){const{render:n,...r}=e,i=n&&"function"!=typeof n?n.props:{},{activeIndex:o,onNavigate:l}=a.useContext(Ge),{ref:u,index:d}=Fe(),s=Re([u,t,i.ref]),c=o===d;return Ye(n,{...r,...i,ref:s,tabIndex:c?0:-1,"data-active":c?"":void 0,onFocus(e){null==r.onFocus||r.onFocus(e),null==i.onFocus||i.onFocus(e),l(d)}})}),tt={...a};let nt=!1,at=0;const rt=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+at++,it=tt.useId||function(){const[e,t]=a.useState(()=>nt?rt():void 0);return J(()=>{null==e&&t(rt())},[]),a.useEffect(()=>{nt=!0},[]),e},ot=a.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:l}},width:u=14,height:d=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:m,stroke:p,d:f,style:{transform:h,...v}={},...g}=e,b=it(),[y,w]=a.useState(!1);if(J(()=>{r&&"rtl"===(0,i.L9)(r).direction&&w(!0)},[r]),!r)return null;const[M,E]=n.split("-"),C="top"===M||"bottom"===M;let k=m;(C&&null!=l&&l.x||!C&&null!=l&&l.y)&&(k=null);const _=2*c,x=_/2,H=u/2*(s/-8+1),T=d/2*s/4,V=!!f,L=k&&"end"===E?"bottom":"top";let q=k&&"end"===E?"right":"left";k&&y&&(q="end"===E?"left":"right");const S=null!=(null==o?void 0:o.x)?k||o.x:"",P=null!=(null==o?void 0:o.y)?k||o.y:"",D=f||"M0,0 H"+u+" L"+(u-H)+","+(d-T)+" Q"+u/2+","+d+" "+H+","+(d-T)+" Z",O={top:V?"rotate(180deg)":"",left:V?"rotate(90deg)":"rotate(-90deg)",bottom:V?"":"rotate(180deg)",right:V?"rotate(-90deg)":"rotate(90deg)"}[M];return(0,be.jsxs)("svg",{...g,"aria-hidden":!0,ref:t,width:V?u:u+_,height:u,viewBox:"0 0 "+u+" "+(d>u?d:u),style:{position:"absolute",pointerEvents:"none",[q]:S,[L]:P,[M]:C||V?"100%":"calc(100% - "+_/2+"px)",transform:[O,h].filter(e=>!!e).join(" "),...v},children:[_>0&&(0,be.jsx)("path",{clipPath:"url(#"+b+")",fill:"none",stroke:p,strokeWidth:_+(f?0:1),d:D}),(0,be.jsx)("path",{stroke:_&&!f?g.fill:"none",d:D}),(0,be.jsx)("clipPath",{id:b,children:(0,be.jsx)("rect",{x:-x,y:x*(V?-1:1),width:u+_,height:u})})]})});function lt(){const e=new Map;return{emit(t,n){var a;null==(a=e.get(t))||a.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var a;null==(a=e.get(t))||a.delete(n)}}}const ut=a.createContext(null),dt=a.createContext(null),st=()=>{var e;return(null==(e=a.useContext(ut))?void 0:e.id)||null},ct=()=>a.useContext(dt);function mt(e){const t=it(),n=ct(),a=st(),r=e||a;return J(()=>{if(!t)return;const e={id:t,parentId:r};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}},[n,t,r]),t}function pt(e){const{children:t,id:n}=e,r=st();return(0,be.jsx)(ut.Provider,{value:a.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function ft(e){const{children:t}=e,n=a.useRef([]),r=a.useCallback(e=>{n.current=[...n.current,e]},[]),i=a.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),[o]=a.useState(()=>lt());return(0,be.jsx)(dt.Provider,{value:a.useMemo(()=>({nodesRef:n,addNode:r,removeNode:i,events:o}),[r,i,o]),children:t})}function ht(e){return"data-floating-ui-"+e}function vt(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const gt=ht("safe-polygon");function bt(e,t,n){if(n&&!X(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function yt(e){return"function"==typeof e?e():e}function wt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:l,elements:u}=e,{enabled:d=!0,delay:s=0,handleClose:c=null,mouseOnly:m=!1,restMs:p=0,move:f=!0}=t,h=ct(),v=st(),g=Q(c),b=Q(s),y=Q(n),w=Q(p),M=a.useRef(),E=a.useRef(-1),C=a.useRef(),k=a.useRef(-1),_=a.useRef(!0),x=a.useRef(!1),H=a.useRef(()=>{}),T=a.useRef(!1),V=ee(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});a.useEffect(()=>{if(d)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(vt(E),vt(k),_.current=!0,T.current=!1)}},[d,l]),a.useEffect(()=>{if(!d)return;if(!g.current)return;if(!n)return;function e(e){V()&&r(!1,e,"hover")}const t=z(u.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[u.floating,n,r,d,g,V]);const L=a.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const a=bt(b.current,"close",M.current);a&&!C.current?(vt(E),E.current=window.setTimeout(()=>r(!1,e,n),a)):t&&(vt(E),r(!1,e,n))},[b,r]),q=ee(()=>{H.current(),C.current=void 0}),S=ee(()=>{if(x.current){const e=z(u.floating).body;e.style.pointerEvents="",e.removeAttribute(gt),x.current=!1}}),P=ee(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));a.useEffect(()=>{if(d&&(0,i.vq)(u.domReference)){const r=u.domReference,i=u.floating;return n&&r.addEventListener("mouseleave",a),f&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",a),i.addEventListener("mouseenter",l),i.addEventListener("mouseleave",s)),()=>{n&&r.removeEventListener("mouseleave",a),f&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",a),i.removeEventListener("mouseenter",l),i.removeEventListener("mouseleave",s))}}function e(e){if(vt(E),_.current=!1,m&&!X(M.current)||yt(w.current)>0&&!bt(b.current,"open"))return;const t=bt(b.current,"open",M.current);t?E.current=window.setTimeout(()=>{y.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(P())return void S();H.current();const t=z(u.floating);if(vt(k),T.current=!1,g.current&&o.current.floatingContext){n||vt(E),C.current=g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){S(),q(),P()||L(e,!0,"safe-polygon")}});const a=C.current;return t.addEventListener("mousemove",a),void(H.current=()=>{t.removeEventListener("mousemove",a)})}("touch"!==M.current||!I(u.floating,e.relatedTarget))&&L(e)}function a(e){P()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){S(),q(),P()||L(e)}})(e))}function l(){vt(E)}function s(e){P()||L(e,!1)}},[u,d,e,m,f,L,q,S,r,n,y,h,b,g,o,P,w]),J(()=>{var e;if(d&&n&&null!=(e=g.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&V()){x.current=!0;const e=u.floating;if((0,i.vq)(u.domReference)&&e){var t;const n=z(u.floating).body;n.setAttribute(gt,"");const a=u.domReference,r=null==h||null==(t=h.nodesRef.current.find(e=>e.id===v))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),n.style.pointerEvents="none",a.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",a.style.pointerEvents="",e.style.pointerEvents=""}}}},[d,n,v,u,h,g,V]),J(()=>{n||(M.current=void 0,T.current=!1,q(),S())},[n,q,S]),a.useEffect(()=>()=>{q(),vt(E),vt(k),S()},[d,u.domReference,q,S]);const D=a.useMemo(()=>{function e(e){M.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function a(){_.current||y.current||r(!0,t,"hover")}m&&!X(M.current)||n||0===yt(w.current)||T.current&&e.movementX**2+e.movementY**2<2||(vt(k),"touch"===M.current?a():(T.current=!0,k.current=window.setTimeout(a,yt(w.current))))}}},[m,r,n,y,w]);return a.useMemo(()=>d?{reference:D}:{},[d,D])}const Mt=()=>{},Et=a.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Mt,setState:Mt,isInstantPhase:!1}),Ct=()=>a.useContext(Et);function kt(e){const{children:t,delay:n,timeoutMs:r=0}=e,[i,o]=a.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),l=a.useRef(null),u=a.useCallback(e=>{o({currentId:e})},[]);return J(()=>{i.currentId?null===l.current?l.current=i.currentId:i.isInstantPhase||o({isInstantPhase:!0}):(i.isInstantPhase&&o({isInstantPhase:!1}),l.current=null)},[i.currentId,i.isInstantPhase]),(0,be.jsx)(Et.Provider,{value:a.useMemo(()=>({...i,setState:o,setCurrentId:u}),[i,u]),children:t})}function _t(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,floatingId:r}=e,{id:i,enabled:o=!0}=t,l=null!=i?i:r,u=Ct(),{currentId:d,setCurrentId:s,initialDelay:c,setState:m,timeoutMs:p}=u;return J(()=>{o&&d&&(m({delay:{open:1,close:bt(c,"close")}}),d!==l&&a(!1))},[o,l,a,m,d,c]),J(()=>{function e(){a(!1),m({delay:c,currentId:null})}if(o&&d&&!n&&d===l){if(p){const t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,m,d,l,a,c,p]),J(()=>{o&&s!==Mt&&n&&s(l)},[o,n,s,l]),u}const xt=a.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeoutIdRef:{current:-1},currentIdRef:{current:null},currentContextRef:{current:null}});function Ht(e){const{children:t,delay:n,timeoutMs:r=0}=e,i=a.useRef(n),o=a.useRef(n),l=a.useRef(null),u=a.useRef(null),d=a.useRef(-1);return(0,be.jsx)(xt.Provider,{value:a.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:o,currentIdRef:l,timeoutMs:r,currentContextRef:u,timeoutIdRef:d}),[r]),children:t})}function Tt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:i}=e,{enabled:o=!0}=t,l=a.useContext(xt),{currentIdRef:u,delayRef:d,timeoutMs:s,initialDelayRef:c,currentContextRef:m,hasProvider:p,timeoutIdRef:f}=l,[h,v]=a.useState(!1);return J(()=>{function e(){var e;v(!1),null==(e=m.current)||e.setIsInstantPhase(!1),u.current=null,m.current=null,d.current=c.current}if(o&&u.current&&!n&&u.current===i){if(v(!1),s)return f.current=window.setTimeout(e,s),()=>{clearTimeout(f.current)};e()}},[o,n,i,u,d,s,c,m,f]),J(()=>{if(!o)return;if(!n)return;const e=m.current,t=u.current;m.current={onOpenChange:r,setIsInstantPhase:v},u.current=i,d.current={open:0,close:bt(c.current,"close")},null!==t&&t!==i?(vt(f),v(!0),null==e||e.setIsInstantPhase(!0),null==e||e.onOpenChange(!1)):(v(!1),null==e||e.setIsInstantPhase(!1))},[o,n,i,r,u,d,s,c,m,f]),J(()=>()=>{m.current=null},[m]),a.useMemo(()=>({hasProvider:p,delayRef:d,isInstantPhase:h}),[p,d,h])}let Vt=0;function Lt(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:a=!0,sync:r=!1}=t;a&&cancelAnimationFrame(Vt);const i=()=>null==e?void 0:e.focus({preventScroll:n});r?i():Vt=requestAnimationFrame(i)}function qt(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}const St={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Pt(e){return"inert"===e?St.inert:"aria-hidden"===e?St["aria-hidden"]:St.none}let Dt=new WeakSet,Ot={},Rt=0;const jt=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,It=e=>e&&(e.host||It(e.parentNode)),At=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=It(t);return e.contains(n)?n:null}).filter(e=>null!=e);function Ft(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=(r=e[0],(null==r?void 0:r.ownerDocument)||document).body;var r;return function(e,t,n,a){const r="data-floating-ui-inert",o=a?"inert":n?"aria-hidden":null,l=At(t,e),u=new Set,d=new Set(l),s=[];Ot[r]||(Ot[r]=new WeakMap);const c=Ot[r];return l.forEach(function e(t){t&&!u.has(t)&&(u.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!d.has(t)&&[].forEach.call(t.children,t=>{if("script"!==(0,i.mq)(t))if(u.has(t))e(t);else{const e=o?t.getAttribute(o):null,n=null!==e&&"false"!==e,a=Pt(o),i=(a.get(t)||0)+1,l=(c.get(t)||0)+1;a.set(t,i),c.set(t,l),s.push(t),1===i&&n&&Dt.add(t),1===l&&t.setAttribute(r,""),!n&&o&&t.setAttribute(o,"inert"===o?"":"true")}})}(t),u.clear(),Rt++,()=>{s.forEach(e=>{const t=Pt(o),n=(t.get(e)||0)-1,a=(c.get(e)||0)-1;t.set(e,n),c.set(e,a),n||(!Dt.has(e)&&o&&e.removeAttribute(o),Dt.delete(e)),a||e.removeAttribute(r)}),Rt--,Rt||(St.inert=new WeakMap,St["aria-hidden"]=new WeakMap,St.none=new WeakMap,Dt=new WeakSet,Ot={})}}(e.concat(Array.from(a.querySelectorAll('[aria-live],[role="status"],output'))),a,t,n)}const zt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Wt=a.forwardRef(function(e,t){const[n,r]=a.useState();J(()=>{T()&&r("button")},[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[ht("focus-guard")]:"",style:zt};return(0,be.jsx)("span",{...e,...i})}),Nt=a.createContext(null),Bt=ht("portal");function $t(e){void 0===e&&(e={});const{id:t,root:n}=e,r=it(),o=Kt(),[l,u]=a.useState(null),d=a.useRef(null);return J(()=>()=>{null==l||l.remove(),queueMicrotask(()=>{d.current=null})},[l]),J(()=>{if(!r)return;if(d.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Bt,""),e.appendChild(n),d.current=n,u(n)},[t,r]),J(()=>{if(null===n)return;if(!r)return;if(d.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!(0,i.Ll)(e)&&(e=e.current),e=e||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,e.appendChild(a));const l=document.createElement("div");l.id=r,l.setAttribute(Bt,""),e=a||e,e.appendChild(l),d.current=l,u(l)},[t,n,r,o]),l}function Ut(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,o=$t({id:n,root:r}),[l,u]=a.useState(null),d=a.useRef(null),s=a.useRef(null),c=a.useRef(null),m=a.useRef(null),p=null==l?void 0:l.modal,f=null==l?void 0:l.open,h=!!l&&!l.modal&&l.open&&i&&!(!r&&!o);return a.useEffect(()=>{if(o&&i&&!p)return o.addEventListener("focusin",e,!0),o.addEventListener("focusout",e,!0),()=>{o.removeEventListener("focusin",e,!0),o.removeEventListener("focusout",e,!0)};function e(e){o&&he(e)&&("focusin"===e.type?ge:ve)(o)}},[o,i,p]),a.useEffect(()=>{o&&(f||ge(o))},[f,o]),(0,be.jsxs)(Nt.Provider,{value:a.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:d,afterOutsideRef:s,beforeInsideRef:c,afterInsideRef:m,portalNode:o,setFocusManagerState:u}),[i,o]),children:[h&&o&&(0,be.jsx)(Wt,{"data-type":"outside",ref:d,onFocus:e=>{if(he(e,o)){var t;null==(t=c.current)||t.focus()}else{const e=fe(l?l.domReference:null);null==e||e.focus()}}}),h&&o&&(0,be.jsx)("span",{"aria-owns":o.id,style:zt}),o&&ye.createPortal(t,o),h&&o&&(0,be.jsx)(Wt,{"data-type":"outside",ref:s,onFocus:e=>{if(he(e,o)){var t;null==(t=m.current)||t.focus()}else{const t=pe(l?l.domReference:null);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Kt=()=>a.useContext(Nt);function Yt(e){return a.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}const Gt=20;let Xt=[];function Jt(){Xt=Xt.filter(e=>e.isConnected)}function Qt(){return Jt(),Xt[Xt.length-1]}function Zt(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const a=ce(),r=k(e,a).filter(e=>{const t=e.getAttribute("data-tabindex")||"";return _(e,a)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),i=e.getAttribute("tabindex");t.current.includes("floating")||0===r.length?"0"!==i&&e.setAttribute("tabindex","0"):("-1"!==i||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const en=a.forwardRef(function(e,t){return(0,be.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:zt})});function tn(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:l=!0,initialFocus:u=0,returnFocus:d=!0,restoreFocus:s=!1,modal:c=!0,visuallyHiddenDismiss:m=!1,closeOnFocusOut:p=!0,outsideElementsInert:f=!1,getInsideElements:h=()=>[]}=e,{open:v,onOpenChange:g,events:b,dataRef:y,elements:{domReference:w,floating:M}}=t,E=ee(()=>{var e;return null==(e=y.current.floatingContext)?void 0:e.nodeId}),k=ee(h),x="number"==typeof u&&u<0,H=N(w)&&x,T=jt(),V=!T||l,L=!V||T&&f,q=Q(o),S=Q(u),P=Q(d),D=ct(),O=Kt(),R=a.useRef(null),F=a.useRef(null),W=a.useRef(!1),X=a.useRef(!1),Z=a.useRef(-1),te=a.useRef(-1),ne=null!=O,ae=B(M),re=ee(function(e){return void 0===e&&(e=ae),e?C(e,ce()):[]}),ie=ee(e=>{const t=re(e);return q.current.map(e=>w&&"reference"===e?w:ae&&"floating"===e?ae:t).filter(Boolean).flat()});a.useEffect(()=>{if(r)return;if(!c)return;function e(e){if("Tab"===e.key){I(ae,j(z(ae)))&&0===re().length&&!H&&K(e);const t=ie(),n=A(e);"reference"===q.current[0]&&n===w&&(K(e),e.shiftKey?Lt(t[t.length-1]):Lt(t[1])),"floating"===q.current[1]&&n===ae&&e.shiftKey&&(K(e),Lt(t[0]))}}const t=z(ae);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,w,ae,c,q,H,re,ie]),a.useEffect(()=>{if(!r&&M)return M.addEventListener("focusin",e),()=>{M.removeEventListener("focusin",e)};function e(e){const t=A(e),n=re().indexOf(t);-1!==n&&(Z.current=n)}},[r,M,re]),a.useEffect(()=>{if(r)return;if(!p)return;function e(){X.current=!0,setTimeout(()=>{X.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,a=A(e);queueMicrotask(()=>{const r=E(),o=!(I(w,t)||I(M,t)||I(t,M)||I(null==O?void 0:O.portalNode,t)||null!=t&&t.hasAttribute(ht("focus-guard"))||D&&($(D.nodesRef.current,r).find(e=>{var n,a;return I(null==(n=e.context)?void 0:n.elements.floating,t)||I(null==(a=e.context)?void 0:a.elements.domReference,t)})||U(D.nodesRef.current,r).find(e=>{var n,a,r;return[null==(n=e.context)?void 0:n.elements.floating,B(null==(a=e.context)?void 0:a.elements.floating)].includes(t)||(null==(r=e.context)?void 0:r.elements.domReference)===t})));if(n===w&&ae&&Zt(ae,q),s&&n!==w&&(null==a||!a.isConnected)&&j(z(ae))===z(ae).body){(0,i.sb)(ae)&&ae.focus();const e=Z.current,t=re(),n=t[e]||t[t.length-1]||ae;(0,i.sb)(n)&&n.focus()}y.current.insideReactTree?y.current.insideReactTree=!1:!H&&c||!t||!o||X.current||t===Qt()||(W.current=!0,g(!1,e,"focus-out"))})}const n=Boolean(!D&&O);function a(){vt(te),y.current.insideReactTree=!0,te.current=window.setTimeout(()=>{y.current.insideReactTree=!1})}return M&&(0,i.sb)(w)?(w.addEventListener("focusout",t),w.addEventListener("pointerdown",e),M.addEventListener("focusout",t),n&&M.addEventListener("focusout",a,!0),()=>{w.removeEventListener("focusout",t),w.removeEventListener("pointerdown",e),M.removeEventListener("focusout",t),n&&M.removeEventListener("focusout",a,!0)}):void 0},[r,w,M,ae,c,D,O,g,p,s,re,H,E,q,y]);const oe=a.useRef(null),le=a.useRef(null),ue=Yt([oe,null==O?void 0:O.beforeInsideRef]),de=Yt([le,null==O?void 0:O.afterInsideRef]);function se(e){return!r&&m&&c?(0,be.jsx)(en,{ref:"start"===e?R:F,onClick:e=>g(!1,e.nativeEvent),children:"string"==typeof m?m:"Dismiss"}):null}a.useEffect(()=>{var e,t;if(r)return;if(!M)return;const n=Array.from((null==O||null==(e=O.portalNode)?void 0:e.querySelectorAll("["+ht("portal")+"]"))||[]),a=null==(t=(D?U(D.nodesRef.current,E()):[]).find(e=>{var t;return N((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,i=[M,a,...n,...k(),R.current,F.current,oe.current,le.current,null==O?void 0:O.beforeOutsideRef.current,null==O?void 0:O.afterOutsideRef.current,q.current.includes("reference")||H?w:null].filter(e=>null!=e),o=c||H?Ft(i,!L,L):Ft(i);return()=>{o()}},[r,w,M,c,q,O,H,V,L,D,E,k]),J(()=>{if(r||!(0,i.sb)(ae))return;const e=j(z(ae));queueMicrotask(()=>{const t=ie(ae),n=S.current,a=("number"==typeof n?t[n]:n.current)||ae,r=I(ae,e);x||r||!v||Lt(a,{preventScroll:a===ae})})},[r,v,ae,x,ie,S]),J(()=>{if(r||!ae)return;const e=z(ae);var t;function n(e){let{reason:t,event:n,nested:a}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(W.current=!0),"outside-press"===t)if(a)W.current=!1;else if(Y(n)||G(n))W.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),W.current=!e}}t=j(e),Jt(),t&&"body"!==(0,i.mq)(t)&&(Xt.push(t),Xt.length>Gt&&(Xt=Xt.slice(-20))),b.on("openchange",n);const a=e.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,zt),ne&&w&&w.insertAdjacentElement("afterend",a),()=>{b.off("openchange",n);const t=j(e),r=I(M,t)||D&&$(D.nodesRef.current,E(),!1).some(e=>{var n;return I(null==(n=e.context)?void 0:n.elements.floating,t)}),o=function(){if("boolean"==typeof P.current){const e=w||Qt();return e&&e.isConnected?e:a}return P.current.current||a}();queueMicrotask(()=>{const n=function(e){const t=ce();return _(e,t)?e:C(e,t)[0]||e}(o);P.current&&!W.current&&(0,i.sb)(n)&&(n===t||t===e.body||r)&&n.focus({preventScroll:!0}),a.remove()})}},[r,M,ae,P,y,b,D,ne,w,E]),a.useEffect(()=>(queueMicrotask(()=>{W.current=!1}),()=>{queueMicrotask(Jt)}),[r]),J(()=>{if(!r&&O)return O.setFocusManagerState({modal:c,closeOnFocusOut:p,open:v,onOpenChange:g,domReference:w}),()=>{O.setFocusManagerState(null)}},[r,O,c,v,g,p,w]),J(()=>{r||ae&&Zt(ae,q)},[r,ae,q]);const me=!r&&V&&(!c||!H)&&(ne||c);return(0,be.jsxs)(be.Fragment,{children:[me&&(0,be.jsx)(Wt,{"data-type":"inside",ref:ue,onFocus:e=>{if(c){const e=ie();Lt("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=O&&O.preserveTabOrder&&O.portalNode)if(W.current=!1,he(e,O.portalNode)){const e=pe(w);null==e||e.focus()}else{var t;null==(t=O.beforeOutsideRef.current)||t.focus()}}}),!H&&se("start"),n,se("end"),me&&(0,be.jsx)(Wt,{"data-type":"inside",ref:de,onFocus:e=>{if(c)Lt(ie()[0]);else if(null!=O&&O.preserveTabOrder&&O.portalNode)if(p&&(W.current=!0),he(e,O.portalNode)){const e=fe(w);null==e||e.focus()}else{var t;null==(t=O.afterOutsideRef.current)||t.focus()}}})]})}let nn=0;const an="--floating-ui-scrollbar-width";let rn=()=>{};const on=a.forwardRef(function(e,t){const{lockScroll:n=!1,...a}=e;return J(()=>{if(n)return nn++,1===nn&&(rn=function(){const e=x(),t=/iP(hone|ad|od)|iOS/.test(e)||"MacIntel"===e&&navigator.maxTouchPoints>1,n=document.body.style,a=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,i=n.left?parseFloat(n.left):window.scrollX,o=n.top?parseFloat(n.top):window.scrollY;if(n.overflow="hidden",n.setProperty(an,r+"px"),r&&(n[a]=r+"px"),t){var l,u;const e=(null==(l=window.visualViewport)?void 0:l.offsetLeft)||0,t=(null==(u=window.visualViewport)?void 0:u.offsetTop)||0;Object.assign(n,{position:"fixed",top:-(o-Math.floor(t))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(n,{overflow:"",[a]:""}),n.removeProperty(an),t&&(Object.assign(n,{position:"",top:"",left:"",right:""}),window.scrollTo(i,o))}}()),()=>{nn--,0===nn&&rn()}},[n]),(0,be.jsx)("div",{ref:t,...a,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...a.style}})});function ln(e){return(0,i.sb)(e.target)&&"BUTTON"===e.target.tagName}function un(e){return W(e)}function dn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:l}}=e,{enabled:u=!0,event:d="click",toggle:s=!0,ignoreMouse:c=!1,keyboardHandlers:m=!0,stickIfOpen:p=!0}=t,f=a.useRef(),h=a.useRef(!1),v=a.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==d&&(X(t,!0)&&c||(!n||!s||o.current.openEvent&&p&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===d&&f.current?f.current=void 0:X(t,!0)&&c||(!n||!s||o.current.openEvent&&p&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!m||ln(e)||(" "!==e.key||un(l)||(e.preventDefault(),h.current=!0),function(e){return(0,i.sb)(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!m||ln(e)||un(l)||" "===e.key&&h.current&&(h.current=!1,r(!n||!s,e.nativeEvent,"click"))}}),[o,l,d,c,m,r,n,p,s]);return a.useMemo(()=>u?{reference:v}:{},[u,v])}function sn(e){return null!=e&&null!=e.clientX}function cn(e,t){void 0===t&&(t={});const{open:n,dataRef:r,elements:{floating:o,domReference:l},refs:u}=e,{enabled:d=!0,axis:s="both",x:c=null,y:m=null}=t,p=a.useRef(!1),f=a.useRef(null),[h,v]=a.useState(),[g,b]=a.useState([]),y=ee((e,t)=>{p.current||r.current.openEvent&&!sn(r.current.openEvent)||u.setPositionReference(function(e,t){let n=null,a=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){var i;const o=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},l="x"===t.axis||"both"===t.axis,u="y"===t.axis||"both"===t.axis,d=["mouseenter","mousemove"].includes((null==(i=t.dataRef.current.openEvent)?void 0:i.type)||"")&&"touch"!==t.pointerType;let s=o.width,c=o.height,m=o.x,p=o.y;return null==n&&t.x&&l&&(n=o.x-t.x),null==a&&t.y&&u&&(a=o.y-t.y),m-=n||0,p-=a||0,s=0,c=0,!r||d?(s="y"===t.axis?o.width:0,c="x"===t.axis?o.height:0,m=l&&null!=t.x?t.x:m,p=u&&null!=t.y?t.y:p):r&&!d&&(c="x"===t.axis?o.height:c,s="y"===t.axis?o.width:s),r=!0,{width:s,height:c,x:m,y:p,top:p,right:m+s,bottom:p+c,left:m}}}}(l,{x:e,y:t,axis:s,dataRef:r,pointerType:h}))}),w=ee(e=>{null==c&&null==m&&(n?f.current||b([]):y(e.clientX,e.clientY))}),M=X(h)?o:n,E=a.useCallback(()=>{if(!M||!d||null!=c||null!=m)return;const e=(0,i.zk)(o);function t(n){const a=A(n);I(o,a)?(e.removeEventListener("mousemove",t),f.current=null):y(n.clientX,n.clientY)}if(!r.current.openEvent||sn(r.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),f.current=null};return f.current=n,n}u.setPositionReference(l)},[M,d,c,m,o,r,u,l,y]);a.useEffect(()=>E(),[E,g]),a.useEffect(()=>{d&&!o&&(p.current=!1)},[d,o]),a.useEffect(()=>{!d&&n&&(p.current=!0)},[d,n]),J(()=>{!d||null==c&&null==m||(p.current=!1,y(c,m))},[d,c,m,y]);const C=a.useMemo(()=>{function e(e){let{pointerType:t}=e;v(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:w,onMouseEnter:w}},[w]);return a.useMemo(()=>d?{reference:C}:{},[d,C])}const mn={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},pn={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},fn=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function hn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:l}=e,{enabled:u=!0,escapeKey:d=!0,outsidePress:s=!0,outsidePressEvent:c="pointerdown",referencePress:m=!1,referencePressEvent:p="pointerdown",ancestorScroll:f=!1,bubbles:h,capture:v}=t,g=ct(),b=ee("function"==typeof s?s:()=>!1),y="function"==typeof s?b:s,w=a.useRef(!1),{escapeKey:M,outsidePress:E}=fn(h),{escapeKey:C,outsidePress:k}=fn(v),_=a.useRef(!1),x=ee(e=>{var t;if(!n||!u||!d||"Escape"!==e.key)return;if(_.current)return;const a=null==(t=l.current.floatingContext)?void 0:t.nodeId,i=g?$(g.nodesRef.current,a):[];if(!M&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),H=ee(e=>{var t;const n=()=>{var t;x(e),null==(t=A(e))||t.removeEventListener("keydown",n)};null==(t=A(e))||t.addEventListener("keydown",n)}),T=ee(e=>{var t;const n=l.current.insideReactTree;l.current.insideReactTree=!1;const a=w.current;if(w.current=!1,"click"===c&&a)return;if(n)return;if("function"==typeof y&&!y(e))return;const u=A(e),d="["+ht("inert")+"]",s=z(o.floating).querySelectorAll(d);let m=(0,i.vq)(u)?u:null;for(;m&&!(0,i.eu)(m);){const e=(0,i.$4)(m);if((0,i.eu)(e)||!(0,i.vq)(e))break;m=e}if(s.length&&(0,i.vq)(u)&&!u.matches("html,body")&&!I(u,o.floating)&&Array.from(s).every(e=>!I(m,e)))return;if((0,i.sb)(u)&&q){const t=(0,i.eu)(u),n=(0,i.L9)(u),a=/auto|scroll/,r=t||a.test(n.overflowX),o=t||a.test(n.overflowY),l=r&&u.clientWidth>0&&u.scrollWidth>u.clientWidth,d=o&&u.clientHeight>0&&u.scrollHeight>u.clientHeight,s="rtl"===n.direction,c=d&&(s?e.offsetX<=u.offsetWidth-u.clientWidth:e.offsetX>u.clientWidth),m=l&&e.offsetY>u.clientHeight;if(c||m)return}const p=null==(t=l.current.floatingContext)?void 0:t.nodeId,f=g&&$(g.nodesRef.current,p).some(t=>{var n;return F(e,null==(n=t.context)?void 0:n.elements.floating)});if(F(e,o.floating)||F(e,o.domReference)||f)return;const h=g?$(g.nodesRef.current,p):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),V=ee(e=>{var t;const n=()=>{var t;T(e),null==(t=A(e))||t.removeEventListener(c,n)};null==(t=A(e))||t.addEventListener(c,n)});a.useEffect(()=>{if(!n||!u)return;l.current.__escapeKeyBubbles=M,l.current.__outsidePressBubbles=E;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function a(){window.clearTimeout(e),_.current=!0}function s(){e=window.setTimeout(()=>{_.current=!1},(0,i.Tc)()?5:0)}const m=z(o.floating);d&&(m.addEventListener("keydown",C?H:x,C),m.addEventListener("compositionstart",a),m.addEventListener("compositionend",s)),y&&m.addEventListener(c,k?V:T,k);let p=[];return f&&((0,i.vq)(o.domReference)&&(p=(0,i.v9)(o.domReference)),(0,i.vq)(o.floating)&&(p=p.concat((0,i.v9)(o.floating))),!(0,i.vq)(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat((0,i.v9)(o.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=m.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{d&&(m.removeEventListener("keydown",C?H:x,C),m.removeEventListener("compositionstart",a),m.removeEventListener("compositionend",s)),y&&m.removeEventListener(c,k?V:T,k),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[l,o,d,y,c,n,r,f,u,M,E,x,C,H,T,k,V]),a.useEffect(()=>{l.current.insideReactTree=!1},[l,y,c]);const L=a.useMemo(()=>({onKeyDown:x,...m&&{[mn[p]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==p&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[x,r,m,p]),q=a.useMemo(()=>({onKeyDown:x,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[pn[c]]:()=>{l.current.insideReactTree=!0}}),[x,c,l]);return a.useMemo(()=>u?{reference:L,floating:q}:{},[u,L,q])}function vn(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=it(),o=a.useRef({}),[l]=a.useState(()=>lt()),u=null!=st(),[d,s]=a.useState(r.reference),c=ee((e,t,a)=>{o.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:a,nested:u}),null==n||n(e,t,a)}),m=a.useMemo(()=>({setPositionReference:s}),[]),p=a.useMemo(()=>({reference:d||r.reference||null,floating:r.floating||null,domReference:r.reference}),[d,r.reference,r.floating]);return a.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:p,events:l,floatingId:i,refs:m}),[t,c,p,l,i,m])}function gn(e){void 0===e&&(e={});const{nodeId:t}=e,n=vn({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[l,u]=a.useState(null),[d,s]=a.useState(null),c=(null==o?void 0:o.domReference)||l,m=a.useRef(null),p=ct();J(()=>{c&&(m.current=c)},[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:u=!0,whileElementsMounted:d,open:s}=e,[c,m]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=a.useState(r);Ee(p,r)||f(r);const[h,v]=a.useState(null),[g,b]=a.useState(null),y=a.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),w=a.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),M=o||h,E=l||g,C=a.useRef(null),k=a.useRef(null),_=a.useRef(c),x=null!=d,H=_e(d),T=_e(i),V=_e(s),L=a.useCallback(()=>{if(!C.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),(0,we.rD)(C.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==V.current};q.current&&!Ee(_.current,t)&&(_.current=t,ye.flushSync(()=>{m(t)}))})},[p,t,n,T,V]);Me(()=>{!1===s&&_.current.isPositioned&&(_.current.isPositioned=!1,m(e=>({...e,isPositioned:!1})))},[s]);const q=a.useRef(!1);Me(()=>(q.current=!0,()=>{q.current=!1}),[]),Me(()=>{if(M&&(C.current=M),E&&(k.current=E),M&&E){if(H.current)return H.current(M,E,L);L()}},[M,E,L,H,x]);const S=a.useMemo(()=>({reference:C,floating:k,setReference:y,setFloating:w}),[y,w]),P=a.useMemo(()=>({reference:M,floating:E}),[M,E]),D=a.useMemo(()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=ke(P.floating,c.x),a=ke(P.floating,c.y);return u?{...e,transform:"translate("+t+"px, "+a+"px)",...Ce(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:a}},[n,u,P.floating,c.x,c.y]);return a.useMemo(()=>({...c,update:L,refs:S,elements:P,floatingStyles:D}),[c,L,S,P,D])}({...e,elements:{...o,...d&&{reference:d}}}),h=a.useCallback(e=>{const t=(0,i.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),v=a.useCallback(e=>{((0,i.vq)(e)||null===e)&&(m.current=e,u(e)),((0,i.vq)(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!(0,i.vq)(e))&&f.refs.setReference(e)},[f.refs]),g=a.useMemo(()=>({...f.refs,setReference:v,setPositionReference:h,domReference:m}),[f.refs,v,h]),b=a.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),y=a.useMemo(()=>({...f,...r,refs:g,elements:b,nodeId:t}),[f,g,b,t,r]);return J(()=>{r.dataRef.current.floatingContext=y;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),a.useMemo(()=>({...f,context:y,refs:g,elements:b}),[f,g,b,y])}function bn(){return x().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&T()}function yn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:l,elements:u}=e,{enabled:d=!0,visibleOnly:s=!0}=t,c=a.useRef(!1),m=a.useRef(-1),p=a.useRef(!0);a.useEffect(()=>{if(!d)return;const e=(0,i.zk)(u.domReference);function t(){!n&&(0,i.sb)(u.domReference)&&u.domReference===j(z(u.domReference))&&(c.current=!0)}function a(){p.current=!0}function r(){p.current=!1}return e.addEventListener("blur",t),bn()&&(e.addEventListener("keydown",a,!0),e.addEventListener("pointerdown",r,!0)),()=>{e.removeEventListener("blur",t),bn()&&(e.removeEventListener("keydown",a,!0),e.removeEventListener("pointerdown",r,!0))}},[u.domReference,n,d]),a.useEffect(()=>{if(d)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(c.current=!0)}},[o,d]),a.useEffect(()=>()=>{vt(m)},[]);const f=a.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=A(e.nativeEvent);if(s&&(0,i.vq)(t))if(bn()&&!e.relatedTarget){if(!p.current&&!W(t))return}else if(!function(e){if(!e||L())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,a=(0,i.vq)(t)&&t.hasAttribute(ht("focus-guard"))&&"outside"===t.getAttribute("data-type");m.current=window.setTimeout(()=>{var e;const i=j(u.domReference?u.domReference.ownerDocument:document);(t||i!==u.domReference)&&(I(null==(e=l.current.floatingContext)?void 0:e.refs.floating.current,i)||I(u.domReference,i)||a||r(!1,n,"focus"))})}}),[l,u.domReference,r,s]);return a.useMemo(()=>d?{reference:f}:{},[d,f])}function wn(e,t,n){const a=new Map,r="item"===n;let i=e;if(r&&e){const{[We]:t,[Ne]:n,...a}=e;i=a}return{..."floating"===n&&{tabIndex:-1,[ze]:""},...i,...t.map(t=>{const a=t?t[n]:null;return"function"==typeof a?e?a(e):null:a}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var o;r&&[We,Ne].includes(n)||(0===n.indexOf("on")?(a.has(n)||a.set(n,[]),"function"==typeof i&&(null==(o=a.get(n))||o.push(i),e[n]=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return null==(e=a.get(n))?void 0:e.map(e=>e(...r)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function Mn(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),i=a.useCallback(t=>wn(t,e,"reference"),t),o=a.useCallback(t=>wn(t,e,"floating"),n),l=a.useCallback(t=>wn(t,e,"item"),r);return a.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:l}),[i,o,l])}const En="Escape";function Cn(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function kn(e,t){return Cn(t,e===Ue||e===Ke,e===Be||e===$e)}function _n(e,t,n){return Cn(t,e===Ke,n?e===Be:e===$e)||"Enter"===e||" "===e||""===e}function xn(e,t,n){return Cn(t,n?e===Be:e===$e,e===Ke)}function Hn(e,t,n,a){return"both"===t||"horizontal"===t&&a&&a>1?e===En:Cn(t,n?e===$e:e===Be,e===Ue)}function Tn(e,t){const{open:n,onOpenChange:r,elements:o,floatingId:l}=e,{listRef:u,activeIndex:d,onNavigate:s=()=>{},enabled:c=!0,selectedIndex:m=null,allowEscape:p=!1,loop:f=!1,nested:h=!1,rtl:v=!1,virtual:g=!1,focusItemOnOpen:b="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:w=!0,disabledIndices:M,orientation:E="vertical",parentOrientation:C,cols:k=1,scrollItemIntoView:_=!0,virtualItemRef:x,itemSizes:H,dense:T=!1}=t,V=Q(B(o.floating)),L=st(),q=ct();J(()=>{e.dataRef.current.orientation=E},[e,E]);const S=ee(()=>{s(-1===O.current?null:O.current)}),P=N(o.domReference),D=a.useRef(b),O=a.useRef(null!=m?m:-1),R=a.useRef(null),A=a.useRef(!0),F=a.useRef(S),W=a.useRef(!!o.floating),U=a.useRef(n),X=a.useRef(!1),Z=a.useRef(!1),te=Q(M),ce=Q(n),me=Q(_),pe=Q(m),[fe,he]=a.useState(),[ve,ge]=a.useState(),be=ee(()=>{function e(e){var t;g?(null!=(t=e.id)&&t.endsWith("-fui-option")&&(e.id=l+"-"+Math.random().toString(16).slice(2,10)),he(e.id),null==q||q.events.emit("virtualfocus",e),x&&(x.current=e)):Lt(e,{sync:X.current,preventScroll:!0})}const t=u.current[O.current],n=Z.current;t&&e(t),(X.current?e=>e():requestAnimationFrame)(()=>{const a=u.current[O.current]||t;if(!a)return;t||e(a);const r=me.current;r&&we&&(n||!A.current)&&(null==a.scrollIntoView||a.scrollIntoView("boolean"==typeof r?{block:"nearest",inline:"nearest"}:r))})});J(()=>{c&&(n&&o.floating?D.current&&null!=m&&(Z.current=!0,O.current=m,S()):W.current&&(O.current=-1,F.current()))},[c,n,o.floating,m,S]),J(()=>{if(c&&n&&o.floating)if(null==d){if(X.current=!1,null!=pe.current)return;if(W.current&&(O.current=-1,be()),(!U.current||!W.current)&&D.current&&(null!=R.current||!0===D.current&&null==R.current)){let e=0;const t=()=>{null==u.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(O.current=null==R.current||_n(R.current,E,v)||h?ae(u,te.current):re(u,te.current),R.current=null,S())};t()}}else ne(u,d)||(O.current=d,be(),Z.current=!1)},[c,n,o.floating,d,pe,h,u,E,v,S,be,te]),J(()=>{var e;if(!c||o.floating||!q||g||!W.current)return;const t=q.nodesRef.current,n=null==(e=t.find(e=>e.id===L))||null==(e=e.context)?void 0:e.elements.floating,a=j(z(o.floating)),r=t.some(e=>e.context&&I(e.context.elements.floating,a));n&&!r&&A.current&&n.focus({preventScroll:!0})},[c,o.floating,q,L,g]),J(()=>{if(c&&q&&g&&!L)return q.events.on("virtualfocus",e),()=>{q.events.off("virtualfocus",e)};function e(e){ge(e.id),x&&(x.current=e)}},[c,q,g,L,x]),J(()=>{F.current=S,U.current=n,W.current=!!o.floating}),J(()=>{n||(R.current=null,D.current=b)},[n,b]);const ye=null!=d,we=a.useMemo(()=>{function e(e){if(!ce.current)return;const t=u.current.indexOf(e);-1!==t&&O.current!==t&&(O.current=t,S())}return{onFocus(t){let{currentTarget:n}=t;X.current=!0,e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},onMouseMove(t){let{currentTarget:n}=t;X.current=!0,Z.current=!1,y&&e(n)},onPointerLeave(e){let{pointerType:t}=e;var n;A.current&&"touch"!==t&&(X.current=!0,y&&(O.current=-1,S(),g||null==(n=V.current)||n.focus({preventScroll:!0})))}}},[ce,V,y,u,S,g]),Me=a.useCallback(()=>{var e;return null!=C?C:null==q||null==(e=q.nodesRef.current.find(e=>e.id===L))||null==(e=e.context)||null==(e=e.dataRef)?void 0:e.current.orientation},[L,q,C]),Ee=ee(e=>{if(A.current=!1,X.current=!0,229===e.which)return;if(!ce.current&&e.currentTarget===V.current)return;if(h&&Hn(e.key,E,v,k))return kn(e.key,Me())||K(e),r(!1,e.nativeEvent,"list-navigation"),void((0,i.sb)(o.domReference)&&(g?null==q||q.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=O.current,a=ae(u,M),l=re(u,M);if(P||("Home"===e.key&&(K(e),O.current=a,S()),"End"===e.key&&(K(e),O.current=l,S())),k>1){const t=H||Array.from({length:u.current.length},()=>({width:1,height:1})),n=le(t,k,T),r=n.findIndex(e=>null!=e&&!se(u,e,M)),i=n.reduce((e,t,n)=>null==t||se(u,t,M)?e:n,-1),o=n[oe({current:n.map(e=>null!=e?u.current[e]:null)},{event:e,orientation:E,loop:f,rtl:v,cols:k,disabledIndices:de([...("function"!=typeof M?M:null)||u.current.map((e,t)=>se(u,t,M)?t:void 0),void 0],n),minIndex:r,maxIndex:i,prevIndex:ue(O.current>l?a:O.current,t,n,k,e.key===Ke?"bl":e.key===(v?Be:$e)?"tr":"tl"),stopEvent:!0})];if(null!=o&&(O.current=o,S()),"both"===E)return}if(kn(e.key,E)){if(K(e),n&&!g&&j(e.currentTarget.ownerDocument)===e.currentTarget)return O.current=_n(e.key,E,v)?a:l,void S();_n(e.key,E,v)?O.current=f?t>=l?p&&t!==u.current.length?-1:a:ie(u,{startingIndex:t,disabledIndices:M}):Math.min(l,ie(u,{startingIndex:t,disabledIndices:M})):O.current=f?t<=a?p&&-1!==t?u.current.length:l:ie(u,{startingIndex:t,decrement:!0,disabledIndices:M}):Math.max(a,ie(u,{startingIndex:t,decrement:!0,disabledIndices:M})),ne(u,O.current)&&(O.current=-1),S()}}),Ce=a.useMemo(()=>g&&n&&ye&&{"aria-activedescendant":ve||fe},[g,n,ye,ve,fe]),ke=a.useMemo(()=>({"aria-orientation":"both"===E?void 0:E,...P?{}:Ce,onKeyDown:Ee,onPointerMove(){A.current=!0}}),[Ce,Ee,E,P]),_e=a.useMemo(()=>{function e(e){"auto"===b&&Y(e.nativeEvent)&&(D.current=!0)}function t(e){D.current=b,"auto"===b&&G(e.nativeEvent)&&(D.current=!0)}return{...Ce,onKeyDown(e){A.current=!1;const t=e.key.startsWith("Arrow"),a=["Home","End"].includes(e.key),i=t||a,o=xn(e.key,E,v),l=Hn(e.key,E,v,k),d=xn(e.key,Me(),v),s=kn(e.key,E),c=(h?d:s)||"Enter"===e.key||""===e.key.trim();if(g&&n){const t=null==q?void 0:q.nodesRef.current.find(e=>null==e.parentId),n=q&&t?function(e,t){let n,a=-1;return function t(r,i){i>a&&(n=r,a=i),$(e,r).forEach(e=>{t(e.id,i+1)})}(t,0),e.find(e=>e.id===n)}(q.nodesRef.current,t.id):null;if(i&&n&&x){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(o||l){var p,f;const a=(null==(p=n.context)?void 0:p.elements.domReference)===e.currentTarget,r=l&&!a?null==(f=n.context)?void 0:f.elements.domReference:o?u.current.find(e=>(null==e?void 0:e.id)===fe):null;r&&(K(e),r.dispatchEvent(t),ge(void 0))}var b;if((s||a)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return K(e),void(null==(b=n.context.elements.domReference)||b.dispatchEvent(t))}return Ee(e)}if(n||w||!t){if(c){const t=kn(e.key,Me());R.current=h&&t?null:e.key}h?d&&(K(e),n?(O.current=ae(u,te.current),S()):r(!0,e.nativeEvent,"list-navigation")):s&&(null!=m&&(O.current=m),K(e),!n&&w?r(!0,e.nativeEvent,"list-navigation"):Ee(e),n&&S())}},onFocus(){n&&!g&&(O.current=-1,S())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[fe,Ce,k,Ee,te,b,u,h,S,r,n,w,E,Me,v,m,q,g,x]);return a.useMemo(()=>c?{reference:_e,floating:ke,item:we}:{},[c,_e,ke,we])}const Vn=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ln(e,t){var n,r;void 0===t&&(t={});const{open:i,elements:o,floatingId:l}=e,{enabled:u=!0,role:d="dialog"}=t,s=it(),c=(null==(n=o.domReference)?void 0:n.id)||s,m=a.useMemo(()=>{var e;return(null==(e=B(o.floating))?void 0:e.id)||l},[o.floating,l]),p=null!=(r=Vn.get(d))?r:d,f=null!=st(),h=a.useMemo(()=>"tooltip"===p||"label"===d?{["aria-"+("label"===d?"labelledby":"describedby")]:i?m:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===p?"dialog":p,"aria-controls":i?m:void 0,..."listbox"===p&&{role:"combobox"},..."menu"===p&&{id:c},..."menu"===p&&f&&{role:"menuitem"},..."select"===d&&{"aria-autocomplete":"none"},..."combobox"===d&&{"aria-autocomplete":"list"}},[p,m,f,i,c,d]),v=a.useMemo(()=>{const e={id:m,...p&&{role:p}};return"tooltip"===p||"label"===d?e:{...e,..."menu"===p&&{"aria-labelledby":c}}},[p,m,c,d]),g=a.useCallback(e=>{let{active:t,selected:n}=e;const a={role:"option",...t&&{id:m+"-fui-option"}};switch(d){case"select":case"combobox":return{...a,"aria-selected":n}}return{}},[m,d]);return a.useMemo(()=>u?{reference:h,floating:v,item:g}:{},[u,h,v,g])}const qn=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function Sn(e,t){return"function"==typeof e?e(t):e}function Pn(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=("number"==typeof i?i:i.close)||0,[l,u]=a.useState("unmounted"),d=function(e,t){const[n,r]=a.useState(e);return e&&!n&&r(!0),a.useEffect(()=>{if(!e&&n){const e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,o);return d||"close"!==l||u("unmounted"),J(()=>{if(r){if(n){u("initial");const e=requestAnimationFrame(()=>{ye.flushSync(()=>{u("open")})});return()=>{cancelAnimationFrame(e)}}u("close")}},[n,r]),{isMounted:d,status:l}}function Dn(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:l=250}=t,u=e.placement,d=u.split("-")[0],s=a.useMemo(()=>({side:d,placement:u}),[d,u]),c="number"==typeof l,m=(c?l:l.open)||0,p=(c?l:l.close)||0,[f,h]=a.useState(()=>({...Sn(o,s),...Sn(n,s)})),{isMounted:v,status:g}=Pn(e,{duration:l}),b=Q(n),y=Q(r),w=Q(i),M=Q(o);return J(()=>{const e=Sn(b.current,s),t=Sn(w.current,s),n=Sn(M.current,s),a=Sn(y.current,s)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===g&&h(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===g&&h({transitionProperty:Object.keys(a).map(qn).join(","),transitionDuration:m+"ms",...n,...a}),"close"===g){const a=t||e;h({transitionProperty:Object.keys(a).map(qn).join(","),transitionDuration:p+"ms",...n,...a})}},[p,w,b,y,M,m,g,s]),{isMounted:v,styles:f}}function On(e,t){var n;const{open:r,dataRef:i}=e,{listRef:o,activeIndex:l,onMatch:u,onTypingChange:d,enabled:s=!0,findMatch:c=null,resetMs:m=750,ignoreKeys:p=[],selectedIndex:f=null}=t,h=a.useRef(-1),v=a.useRef(""),g=a.useRef(null!=(n=null!=f?f:l)?n:-1),b=a.useRef(null),y=ee(u),w=ee(d),M=Q(c),E=Q(p);J(()=>{r&&(vt(h),b.current=null,v.current="")},[r]),J(()=>{var e;r&&""===v.current&&(g.current=null!=(e=null!=f?f:l)?e:-1)},[r,f,l]);const C=ee(e=>{e?i.current.typing||(i.current.typing=e,w(e)):i.current.typing&&(i.current.typing=e,w(e))}),k=ee(e=>{function t(e,t,n){const a=M.current?M.current(t,n):t.find(e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())));return a?e.indexOf(a):-1}const n=o.current;if(v.current.length>0&&" "!==v.current[0]&&(-1===t(n,n,v.current)?C(!1):" "===e.key&&K(e)),null==n||E.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(K(e),C(!0)),n.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&v.current===e.key&&(v.current="",g.current=b.current),v.current+=e.key,vt(h),h.current=window.setTimeout(()=>{v.current="",g.current=b.current,C(!1)},m);const a=g.current,i=t(n,[...n.slice((a||0)+1),...n.slice(0,(a||0)+1)],v.current);-1!==i?(y(i),b.current=i):" "!==e.key&&(v.current="",C(!1))}),_=a.useMemo(()=>({onKeyDown:k}),[k]),x=a.useMemo(()=>({onKeyDown:k,onKeyUp(e){" "===e.key&&C(!1)}}),[k,C]);return a.useMemo(()=>s?{reference:_,floating:x}:{},[s,_,x])}function Rn(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const jn=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:a,onFallbackChange:r,offset:i=0,index:l=0,minItemsVisible:u=4,referenceOverflowThreshold:d=0,scrollRef:s,...c}=(0,o._3)(e,t),{rects:m,elements:{floating:p}}=t,f=n.current[l],h=(null==s?void 0:s.current)||p,v=p.clientTop||h.clientTop,g=0!==p.clientTop,b=0!==h.clientTop,y=p===h;if(!f)return{};const w={...t,...await He(-f.offsetTop-p.clientTop-m.reference.height/2-f.offsetHeight/2-i).fn(t)},M=await(0,we.__)(Rn(w,h.scrollHeight+v+p.clientTop),c),E=await(0,we.__)(w,{...c,elementContext:"reference"}),C=(0,o.T9)(0,M.top),k=w.y+C,_=(h.scrollHeight>h.clientHeight?e=>e:o.LI)((0,o.T9)(0,h.scrollHeight+(g&&y||b?2*v:0)-C-(0,o.T9)(0,M.bottom)));if(h.style.maxHeight=_+"px",h.scrollTop=C,r){const e=h.offsetHeight<f.offsetHeight*(0,o.jk)(u,n.current.length)-1||E.top>=-d||E.bottom>=-d;ye.flushSync(()=>r(e))}return a&&(a.current=await(0,we.__)(Rn({...w,y:k},h.offsetHeight+v+p.clientTop),c)),{y:k}}});function In(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:l,onChange:u}=t,d=ee(u),s=a.useRef(!1),c=a.useRef(null),m=a.useRef(null);a.useEffect(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,a=o.current.top>=-.5,r=o.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,l=n<0?-1:1,u=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!a&&n>0||!r&&n<0?(e.preventDefault(),ye.flushSync(()=>{d(e=>e+Math[u](n,i*l))})):/firefox/i.test(H())&&(t.scrollTop+=n))}const t=(null==l?void 0:l.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame(()=>{c.current=t.scrollTop,null!=o.current&&(m.current={...o.current})}),()=>{c.current=null,m.current=null,t.removeEventListener("wheel",e)}):void 0},[i,n,r.floating,o,l,d]);const p=a.useMemo(()=>({onKeyDown(){s.current=!0},onWheel(){s.current=!1},onPointerMove(){s.current=!1},onScroll(){const e=(null==l?void 0:l.current)||r.floating;if(o.current&&e&&s.current){if(null!==c.current){const t=e.scrollTop-c.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&ye.flushSync(()=>d(e=>e+t))}requestAnimationFrame(()=>{c.current=e.scrollTop})}}}),[r.floating,d,o,l]);return a.useMemo(()=>i?{floating:p}:{},[i,p])}function An(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var a;return e.parentId===t&&(!n||(null==(a=e.context)?void 0:a.open))}).flatMap(t=>[t,...An(e,t.id,n)])}function Fn(e,t){const[n,a]=e;let r=!1;const i=t.length;for(let e=0,o=i-1;e<i;o=e++){const[i,l]=t[e]||[0,0],[u,d]=t[o]||[0,0];l>=a!=d>=a&&n<=(u-i)*(a-l)/(d-l)+i&&(r=!r)}return r}function zn(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:a=!0}=e,r={current:-1};let o=!1,l=null,u=null,d="undefined"!=typeof performance?performance.now():0;const s=e=>{let{x:n,y:s,placement:c,elements:m,onClose:p,nodeId:f,tree:h}=e;return function(e){function v(){vt(r),p()}if(vt(r),!m.domReference||!m.floating||null==c||null==n||null==s)return;const{clientX:g,clientY:b}=e,y=[g,b],w=function(e){return"composedPath"in e?e.composedPath()[0]:e.target}(e),M="mouseleave"===e.type,E=qt(m.floating,w),C=qt(m.domReference,w),k=m.domReference.getBoundingClientRect(),_=m.floating.getBoundingClientRect(),x=c.split("-")[0],H=n>_.right-_.width/2,T=s>_.bottom-_.height/2,V=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,k),L=_.width>k.width,q=_.height>k.height,S=(L?k:_).left,P=(L?k:_).right,D=(q?k:_).top,O=(q?k:_).bottom;if(E&&(o=!0,!M))return;if(C&&(o=!1),C&&!M)return void(o=!0);if(M&&(0,i.vq)(e.relatedTarget)&&qt(m.floating,e.relatedTarget))return;if(h&&An(h.nodesRef.current,f).length)return;if("top"===x&&s>=k.bottom-1||"bottom"===x&&s<=k.top+1||"left"===x&&n>=k.right-1||"right"===x&&n<=k.left+1)return v();let R=[];switch(x){case"top":R=[[S,k.top+1],[S,_.bottom-1],[P,_.bottom-1],[P,k.top+1]];break;case"bottom":R=[[S,_.top+1],[S,k.bottom-1],[P,k.bottom-1],[P,_.top+1]];break;case"left":R=[[_.right-1,O],[_.right-1,D],[k.left+1,D],[k.left+1,O]];break;case"right":R=[[k.right-1,O],[k.right-1,D],[_.left+1,D],[_.left+1,O]]}if(!Fn([g,b],R)){if(o&&!V)return v();if(!M&&a){const t=function(e,t){const n=performance.now(),a=n-d;if(null===l||null===u||0===a)return l=e,u=t,d=n,null;const r=e-l,i=t-u,o=Math.sqrt(r*r+i*i);return l=e,u=t,d=n,o/a}(e.clientX,e.clientY);if(null!==t&&t<.1)return v()}Fn([g,b],function(e){let[n,a]=e;switch(x){case"top":return[[L?n+t/2:H?n+4*t:n-4*t,a+t+1],[L?n-t/2:H?n+4*t:n-4*t,a+t+1],[_.left,H||L?_.bottom-t:_.top],[_.right,H?L?_.bottom-t:_.top:_.bottom-t]];case"bottom":return[[L?n+t/2:H?n+4*t:n-4*t,a-t],[L?n-t/2:H?n+4*t:n-4*t,a-t],[_.left,H||L?_.top+t:_.bottom],[_.right,H?L?_.top+t:_.bottom:_.top+t]];case"left":{const e=[n+t+1,q?a+t/2:T?a+4*t:a-4*t],r=[n+t+1,q?a-t/2:T?a+4*t:a-4*t];return[[T||q?_.right-t:_.left,_.top],[T?q?_.right-t:_.left:_.right-t,_.bottom],e,r]}case"right":return[[n-t,q?a+t/2:T?a+4*t:a-4*t],[n-t,q?a-t/2:T?a+4*t:a-4*t],[T||q?_.left+t:_.right,_.top],[T?q?_.left+t:_.right:_.left+t,_.bottom]]}}([n,s]))?!o&&a&&(r.current=window.setTimeout(v,40)):v()}}};return s.__options={blockPointerEvents:n},s}},27746:(e,t,n)=>{"use strict";t.set=function(e,t,n){let o=(0,i.toDate)(e,n?.in);return isNaN(+o)?(0,a.constructFrom)(n?.in||e,NaN):(null!=t.year&&o.setFullYear(t.year),null!=t.month&&(o=(0,r.setMonth)(o,t.month)),null!=t.date&&o.setDate(t.date),null!=t.hours&&o.setHours(t.hours),null!=t.minutes&&o.setMinutes(t.minutes),null!=t.seconds&&o.setSeconds(t.seconds),null!=t.milliseconds&&o.setMilliseconds(t.milliseconds),o)};var a=n(4497),r=n(57984),i=n(24429)},27749:(e,t,n)=>{"use strict";t.match=void 0;var a=n(78741),r=n(58869);t.match={ordinalNumber:(0,r.buildMatchPatternFn)({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},defaultParseWidth:"any"})}},27857:(e,t,n)=>{"use strict";t.beTarask=void 0;var a=n(51243),r=n(23076),i=n(93830),o=n(94094),l=n(95898);t.beTarask={code:"be-tarask",formatDistance:a.formatDistance,formatLong:r.formatLong,formatRelative:i.formatRelative,localize:o.localize,match:l.match,options:{weekStartsOn:1,firstWeekContainsDate:1}}},27874:(e,t,n)=>{"use strict";t.match=void 0;var a=n(78741),r=n(58869);t.match={ordinalNumber:(0,r.buildMatchPatternFn)({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:"any"})}},27883:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentedControl=void 0;var a=n(80385);Object.defineProperty(t,"SegmentedControl",{enumerable:!0,get:function(){return a.SegmentedControl}})},27887:(e,t,n)=>{"use strict";t.formatLong=void 0;var a=n(52121);t.formatLong={date:(0,a.buildFormatLongFn)({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.buildFormatLongFn)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.buildFormatLongFn)({formats:{full:"{{date}} 'को' {{time}}",long:"{{date}} 'को' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})}},27938:(e,t)=>{"use strict";t.formatRelative=void 0;const n={lastWeek:"eeee 'la semaine dernière à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'la semaine prochaine à' p",other:"P"};t.formatRelative=(e,t,a,r)=>n[e]},28019:(e,t,n)=>{"use strict";t.startOfHour=function(e,t){const n=(0,a.toDate)(e,t?.in);return n.setMinutes(0,0,0),n};var a=n(24429)},28061:(e,t)=>{"use strict";t.formatRelative=void 0;const n={lastWeek:"eeee 'שעבר בשעה' p",yesterday:"'אתמול בשעה' p",today:"'היום בשעה' p",tomorrow:"'מחר בשעה' p",nextWeek:"eeee 'בשעה' p",other:"P"};t.formatRelative=(e,t,a,r)=>n[e]},28135:(e,t,n)=>{"use strict";t.formatLong=void 0;var a=n(52121);t.formatLong={date:(0,a.buildFormatLongFn)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.buildFormatLongFn)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.buildFormatLongFn)({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})}},28141:(e,t,n)=>{"use strict";t.localize=void 0;var a=n(91151);t.localize={ordinalNumber:(e,t)=>Number(e)+".",era:(0,a.buildLocalizeFn)({values:{narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus előtt","időszámításunk szerint"]},defaultWidth:"wide"}),quarter:(0,a.buildLocalizeFn)({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. n.év","2. n.év","3. n.év","4. n.év"],wide:["1. negyedév","2. negyedév","3. negyedév","4. negyedév"]},defaultWidth:"wide",argumentCallback:e=>e-1,formattingValues:{narrow:["I.","II.","III.","IV."],abbreviated:["I. n.év","II. n.év","III. n.év","IV. n.év"],wide:["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"]},defaultFormattingWidth:"wide"}),month:(0,a.buildLocalizeFn)({values:{narrow:["J","F","M","Á","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],wide:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},defaultWidth:"wide"}),day:(0,a.buildLocalizeFn)({values:{narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},defaultWidth:"wide"}),dayPeriod:(0,a.buildLocalizeFn)({values:{narrow:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},abbreviated:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},wide:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"délután",evening:"este",night:"éjjel"}},defaultWidth:"wide"})}},28200:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var a,r=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i.apply(null,arguments)}const o=function(e){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,className:"maximize-2_svg__feather maximize-2_svg__feather-maximize-2",viewBox:"0 0 24 24"},e),a||(a=r.createElement("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})))}},28353:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionItem=void 0;const r=n(31085),i=a(n(88694)),o=n(77506),l=n(56818),u=n(42885),d=n(21652),s=n(35346),c=i.default.div`
|
|
1256
1256
|
&:not(:first-child) {
|
|
1257
1257
|
margin-top: var(--spacing-1x);
|
|
1258
1258
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equisoft/design-elements-react",
|
|
3
|
-
"version": "9.9.7-snapshot.
|
|
3
|
+
"version": "9.9.7-snapshot.20251110012959",
|
|
4
4
|
"description": "React implementation of the Equisoft design system.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"main": "dist/bundle.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@microsoft/eslint-formatter-sarif": "3.1.0",
|
|
60
60
|
"@stylistic/eslint-plugin": "5.5.0",
|
|
61
61
|
"@svgr/webpack": "8.1.0",
|
|
62
|
-
"@swc/core": "1.
|
|
62
|
+
"@swc/core": "1.15.1",
|
|
63
63
|
"@swc/jest": "0.2.39",
|
|
64
64
|
"@testing-library/dom": "10.4.1",
|
|
65
65
|
"@testing-library/jest-dom": "6.9.1",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"@types/react-dom": "18.3.7",
|
|
73
73
|
"@types/react-modal": "3.16.3",
|
|
74
74
|
"@types/styled-components": "5.1.35",
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "8.46.
|
|
76
|
-
"@typescript-eslint/parser": "8.46.
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "8.46.3",
|
|
76
|
+
"@typescript-eslint/parser": "8.46.3",
|
|
77
77
|
"cross-env": "10.1.0",
|
|
78
78
|
"css-loader": "7.1.2",
|
|
79
79
|
"eslint": "8.57.1",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"eslint-plugin-react": "7.37.5",
|
|
85
85
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
86
86
|
"expect": "30.2.0",
|
|
87
|
-
"i18next": "25.6.
|
|
87
|
+
"i18next": "25.6.1",
|
|
88
88
|
"jest": "30.2.0",
|
|
89
89
|
"jest-environment-jsdom": "30.2.0",
|
|
90
90
|
"jest-junit": "16.0.0",
|