@okam/stack-ui 1.2.0 → 1.4.0

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.
Files changed (79) hide show
  1. package/{ArrowDown-1712d1b6.js → ArrowDown-54a4e9d3.js} +1 -1
  2. package/{ArrowDown-d43b4162.mjs → ArrowDown-62233deb.mjs} +1 -1
  3. package/{ArrowLeft-f409a840.mjs → ArrowLeft-8c14983f.mjs} +1 -1
  4. package/{ArrowLeft-d3f05521.js → ArrowLeft-ff99e568.js} +1 -1
  5. package/{BrandArrowRight-76384dc5.js → BrandArrowRight-bd396c15.js} +1 -1
  6. package/{BrandArrowRight-49e7e990.mjs → BrandArrowRight-d65c2e5f.mjs} +1 -1
  7. package/{Check-b462d3c7.mjs → Check-205d66a1.mjs} +1 -1
  8. package/{Check-177d024b.js → Check-d5164285.js} +1 -1
  9. package/{ChevronLeft-feef9450.js → ChevronLeft-b0b7cef2.js} +1 -1
  10. package/{ChevronLeft-b7dca00a.mjs → ChevronLeft-db9daad1.mjs} +1 -1
  11. package/{ChevronRight-a4782201.mjs → ChevronRight-3b61d181.mjs} +1 -1
  12. package/{ChevronRight-3a5571da.js → ChevronRight-9d8a2e81.js} +1 -1
  13. package/{CloseBtn-30ee2e13.mjs → CloseBtn-d74d901f.mjs} +1 -1
  14. package/{CloseBtn-3a0ca7e1.js → CloseBtn-e82b3c51.js} +1 -1
  15. package/{Facebook-6591414e.js → Facebook-dc270a7a.js} +1 -1
  16. package/{Facebook-4f8b3a0f.mjs → Facebook-e98c9059.mjs} +1 -1
  17. package/{FacebookColored-347fa465.mjs → FacebookColored-d57ea14a.mjs} +1 -1
  18. package/{FacebookColored-69bc09dc.js → FacebookColored-dfff8ee5.js} +1 -1
  19. package/{Globe-46988aa4.js → Globe-0fcd693d.js} +1 -1
  20. package/{Globe-6bd5fb0a.mjs → Globe-9142e00c.mjs} +1 -1
  21. package/{Instagram-2c7a4948.js → Instagram-716baeb0.js} +1 -1
  22. package/{Instagram-e7ae9f7d.mjs → Instagram-a3a39b40.mjs} +1 -1
  23. package/{InstagramColored-16d3ed77.js → InstagramColored-0134fb49.js} +1 -1
  24. package/{InstagramColored-bd066f21.mjs → InstagramColored-88fda38c.mjs} +1 -1
  25. package/{Link-c8a14eea.js → Link-53ca53dc.js} +1 -1
  26. package/{Link-433cedc8.mjs → Link-6ea3ed2d.mjs} +1 -1
  27. package/{Mail-b28672fa.mjs → Mail-91c52ad0.mjs} +1 -1
  28. package/{Mail-e9297805.js → Mail-cfe23bd7.js} +1 -1
  29. package/{Plus-8726d28e.js → Plus-03ca4a42.js} +1 -1
  30. package/{Plus-b65f9426.mjs → Plus-8bcb07ed.mjs} +1 -1
  31. package/{Share-2518b2a3.mjs → Share-732d8ba5.mjs} +1 -1
  32. package/{Share-6ca93f65.js → Share-a788142f.js} +1 -1
  33. package/{Twitter-731298fb.mjs → Twitter-137e96a6.mjs} +1 -1
  34. package/{Twitter-6498fa22.js → Twitter-6888ab44.js} +1 -1
  35. package/{TwitterColored-51ba5c2e.js → TwitterColored-0f1274ef.js} +1 -1
  36. package/{TwitterColored-d981c380.mjs → TwitterColored-3deaff15.mjs} +1 -1
  37. package/{Upload-a85a4b6a.mjs → Upload-aee8d238.mjs} +1 -1
  38. package/{Upload-302cba06.js → Upload-ea10c854.js} +1 -1
  39. package/{YouTube-4385e2aa.mjs → YouTube-3199edbb.mjs} +1 -1
  40. package/{YouTube-4cbcbfc5.js → YouTube-fc32e491.js} +1 -1
  41. package/{YouTubeColored-9154987c.mjs → YouTubeColored-71f6fbd4.mjs} +1 -1
  42. package/{YouTubeColored-877e6612.js → YouTubeColored-8a760e28.js} +1 -1
  43. package/components/Box/index.d.ts +5 -0
  44. package/components/Box/interface.d.ts +11 -0
  45. package/components/Calendar/components/CalendarCell.d.ts +3 -0
  46. package/components/Calendar/components/CalendarGrid.d.ts +3 -0
  47. package/components/Calendar/index.d.ts +3 -0
  48. package/components/Calendar/interface.d.ts +32 -0
  49. package/components/Date/index.d.ts +3 -0
  50. package/components/Date/interface.d.ts +6 -0
  51. package/components/Dialog/index.d.ts +2 -0
  52. package/components/Dialog/interface.d.ts +6 -0
  53. package/components/Lightbox/interface.d.ts +1 -0
  54. package/components/fields/Checkbox/Checkbox.interface.d.ts +24 -0
  55. package/components/fields/Checkbox/index.d.ts +3 -0
  56. package/components/fields/DatePicker/components/CalendarPopover.d.ts +2 -0
  57. package/components/fields/DatePicker/components/DateField.d.ts +4 -0
  58. package/components/fields/DatePicker/index.d.ts +3 -0
  59. package/components/fields/DatePicker/interface.d.ts +37 -0
  60. package/components/fields/Select/Select.d.ts +4 -0
  61. package/components/fields/Select/Select.interface.d.ts +17 -0
  62. package/components/fields/Select/components/Listbox.d.ts +4 -0
  63. package/components/fields/Select/components/Listbox.interface.d.ts +12 -0
  64. package/components/fields/Select/components/Popover.d.ts +3 -0
  65. package/components/fields/Select/components/Popover.interface.d.ts +12 -0
  66. package/components/fields/TextArea/index.d.ts +3 -0
  67. package/components/fields/TextArea/interface.d.ts +17 -0
  68. package/components/fields/TextInputField/index.d.ts +4 -0
  69. package/components/fields/TextInputField/interface.d.ts +23 -0
  70. package/index-7f55f097.js +30 -0
  71. package/index-b32341b0.mjs +17648 -0
  72. package/index.d.ts +9 -0
  73. package/index.js +1 -1
  74. package/index.mjs +31 -20
  75. package/package.json +1 -1
  76. package/providers/Theme/hooks.d.ts +1 -1
  77. package/providers/Theme/interface.d.ts +1 -1
  78. package/index-95c4948b.js +0 -3
  79. package/index-dbc3a715.mjs +0 -5828
package/index.d.ts CHANGED
@@ -8,6 +8,15 @@ export { default as Popover } from './components/Popover';
8
8
  export { default as WysiwygBlock } from './components/WysiwygBlock';
9
9
  export { default as ArrowRight } from './components/icons/ArrowRight';
10
10
  export { default as Icon } from './components/Icon';
11
+ export { default as Date } from './components/Date';
12
+ export { default as Select, ReactHookFormSelect } from './components/fields/Select/Select';
13
+ export { default as Checkbox } from './components/fields/Checkbox';
14
+ export { default as TextArea } from './components/fields/TextArea';
15
+ export { default as TextInputField, ReactHookFormInput } from './components/fields/TextInputField';
16
+ export { default as DatePicker } from './components/fields/DatePicker';
17
+ export { default as Box } from './components/Box';
18
+ export { default as Calendar } from './components/Calendar';
19
+ export { default as Modal } from './components/Modal';
11
20
  export { useTheme, ThemeContextProvider } from './providers/Theme';
12
21
  export { makeTheme, createThemeProvider } from './providers/Theme';
13
22
  export { default as useThemeContext } from './providers/Theme/hooks';
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-95c4948b.js");require("react/jsx-runtime");require("react");require("react-dom");exports.Accordion=e.Accordion;exports.ArrowRight=e.ArrowRight;exports.Button=e.Button;exports.Icon=e.IconDispatcher;exports.Lightbox=e.Lightbox;exports.Popover=e.PopoverButton;exports.ShareButton=e.ShareButton;exports.SidePanel=e.index;exports.ThemeContextProvider=e.ThemeContextProvider;exports.Typography=e.Typography;exports.WysiwygBlock=e.WysiwygBlock;exports.createThemeProvider=e.createThemeProvider;exports.generateUtmTags=e.generateUtmTags;exports.makeTheme=e.makeTheme;exports.useFacebookShareUrl=e.useFacebookShareUrl;exports.useMailToShareUrl=e.useMailToShareUrl;exports.useTheme=e.useTheme;exports.useThemeContext=e.useThemeContext;exports.useTwitterShareUrl=e.useTwitterShareUrl;exports.useWindow=e.useWindow;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-7f55f097.js");require("react/jsx-runtime");require("react");require("react-dom");exports.Accordion=e.Accordion;exports.ArrowRight=e.ArrowRight;exports.Box=e.Box;exports.Button=e.Button;exports.Calendar=e.Calendar;exports.Checkbox=e.Checkbox;exports.Date=e.DateComponent;exports.DatePicker=e.DatePicker;exports.Icon=e.IconDispatcher;exports.Lightbox=e.Lightbox;exports.Modal=e.Modal;exports.Popover=e.PopoverButton;exports.ReactHookFormInput=e.ReactHookFormInput;exports.ReactHookFormSelect=e.ReactHookFormSelect;exports.Select=e.Select;exports.ShareButton=e.ShareButton;exports.SidePanel=e.index;exports.TextArea=e.TextArea;exports.TextInputField=e.TextInputField;exports.ThemeContextProvider=e.ThemeContextProvider;exports.Typography=e.Typography;exports.WysiwygBlock=e.WysiwygBlock;exports.createThemeProvider=e.createThemeProvider;exports.generateUtmTags=e.generateUtmTags;exports.makeTheme=e.makeTheme;exports.useFacebookShareUrl=e.useFacebookShareUrl;exports.useMailToShareUrl=e.useMailToShareUrl;exports.useTheme=e.useTheme;exports.useThemeContext=e.useThemeContext;exports.useTwitterShareUrl=e.useTwitterShareUrl;exports.useWindow=e.useWindow;
package/index.mjs CHANGED
@@ -1,26 +1,37 @@
1
- import { A as t, b as h, B as i, I as m, L as T, P as n, S as u, a as c, c as g, T as p, W as d, d as l, g as S, m as P, h as k, j as w, u as x, e as y, k as B, f as U } from "./index-dbc3a715.mjs";
1
+ import { A as t, b as i, h, B as m, j as c, C as n, D as l, g as T, I as u, L as p, M as d, P as k, f as x, R as S, c as g, S as P, a as B, d as C, e as b, k as w, T as y, W as A, l as F, o as I, m as R, q as U, r as v, u as D, n as M, s as W, p as f } from "./index-b32341b0.mjs";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  export {
6
6
  t as Accordion,
7
- h as ArrowRight,
8
- i as Button,
9
- m as Icon,
10
- T as Lightbox,
11
- n as Popover,
12
- u as ShareButton,
13
- c as SidePanel,
14
- g as ThemeContextProvider,
15
- p as Typography,
16
- d as WysiwygBlock,
17
- l as createThemeProvider,
18
- S as generateUtmTags,
19
- P as makeTheme,
20
- k as useFacebookShareUrl,
21
- w as useMailToShareUrl,
22
- x as useTheme,
23
- y as useThemeContext,
24
- B as useTwitterShareUrl,
25
- U as useWindow
7
+ i as ArrowRight,
8
+ h as Box,
9
+ m as Button,
10
+ c as Calendar,
11
+ n as Checkbox,
12
+ l as Date,
13
+ T as DatePicker,
14
+ u as Icon,
15
+ p as Lightbox,
16
+ d as Modal,
17
+ k as Popover,
18
+ x as ReactHookFormInput,
19
+ S as ReactHookFormSelect,
20
+ g as Select,
21
+ P as ShareButton,
22
+ B as SidePanel,
23
+ C as TextArea,
24
+ b as TextInputField,
25
+ w as ThemeContextProvider,
26
+ y as Typography,
27
+ A as WysiwygBlock,
28
+ F as createThemeProvider,
29
+ I as generateUtmTags,
30
+ R as makeTheme,
31
+ U as useFacebookShareUrl,
32
+ v as useMailToShareUrl,
33
+ D as useTheme,
34
+ M as useThemeContext,
35
+ W as useTwitterShareUrl,
36
+ f as useWindow
26
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okam/stack-ui",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "license": "MIT",
@@ -1,3 +1,3 @@
1
1
  import type { TCustomTheme, TToken } from './interface';
2
- declare const useThemeContext: (func?: string | null, props?: TToken, customTheme?: TCustomTheme) => any;
2
+ declare const useThemeContext: (func?: string | null, props?: TToken, customTheme?: TCustomTheme) => string | undefined;
3
3
  export default useThemeContext;
@@ -5,7 +5,7 @@ export type TFunc = (props: TToken) => TStyleValue[] | string;
5
5
  export type TThemeRecord = Record<string, TFunc>;
6
6
  export type TTheme = Record<string, TFunc | TThemeRecord>;
7
7
  export type TStyle = Record<string, TStyleValue>;
8
- export type TCustomTheme = TStyleValue[] | null | undefined;
8
+ export type TCustomTheme = TStyleValue | null | undefined;
9
9
  export type TStyleCollection = Record<string, TStyle>;
10
10
  export type TDefaultTheme = {
11
11
  typography: (props: TToken) => TStyleValue[] | string;
package/index-95c4948b.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";const I=require("react/jsx-runtime"),h=require("react"),Ts=require("react-dom");function pl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const an=pl(h),hl=(e,t,n=null)=>{const r=t.split(/[\.\[\]]/g);let i=e;for(const o of r){if(i===null||i===void 0)return n;o.trim()!==""&&(i=i[o])}return i===void 0?n:i},ml=e=>e;function gl(){const e=h.createContext(void 0);function t(){const n=h.useContext(e);return n===void 0?null:n}return[t,e.Provider]}const vl={typography:()=>""},[xs,bl]=gl();function ws({children:e,brandTheme:t=vl}){const n=h.useMemo(()=>({brandTheme:t}),[t]);return I.jsx(bl,{value:n,children:e})}const yl=e=>({children:n})=>I.jsx(ws,{brandTheme:e,children:n}),ye=(e,t={},n=null)=>{const r=xs();if(r!=null&&e!=null){const{brandTheme:i}=r,o=hl(i,e);if(typeof o=="function")return o?.(t)}return n},Es=({as:e="span",themeName:t="typography",tokens:n,customTheme:r,children:i,...o})=>{const s=ye(t,n,r);return I.jsx(e,{...o,className:s,children:i})};h.forwardRef((e,t)=>{const{as:n="span",tokens:r,themeName:i="typography",customTheme:o,children:s,...l}=e,u=ye(i,r,o);return I.jsx(n,{...l,ref:t,className:u,children:s})});function $l(e,t,n){let[r,i]=h.useState(e||t),o=h.useRef(e!==void 0),s=e!==void 0;h.useEffect(()=>{let f=o.current;f!==s&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s},[s]);let l=s?e:r,u=h.useCallback((f,...m)=>{let $=(g,...x)=>{n&&(Object.is(l,g)||n(g,...x)),s||(l=g)};typeof f=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((x,...v)=>{let P=f(s?l:x,...v);return $(P,...m),s?x:P})):(s||i(f),$(f,...m))},[s,l,n]);return[l,u]}function Mi(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const Ji={prefix:String(Math.round(Math.random()*1e10)),current:0,isSSR:!1},eo=h.createContext(Ji);let Tl=!!(typeof window<"u"&&window.document&&window.document.createElement),xi=new WeakMap;function xl(e=!1){let t=h.useContext(eo),n=h.useRef(null);if(n.current===null&&!e){var r,i;let o=(r=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||r===void 0||(i=r.ReactCurrentOwner)===null||i===void 0?void 0:i.current;if(o){let s=xi.get(o);s==null?xi.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==s.state&&(t.current=s.id,xi.delete(o))}n.current=++t.current}return n.current}function wl(e){let t=h.useContext(eo);t===Ji&&!Tl&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=xl(!!e);return e||`react-aria${t.prefix}-${n}`}function El(e){let t=h.useId(),[n]=h.useState(to()),r=n?"react-aria":`react-aria${Ji.prefix}`;return e||`${r}-${t}`}const Pl=typeof h.useId=="function"?El:wl;function _l(){return!1}function Sl(){return!0}function Al(e){return()=>{}}function to(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(Al,_l,Sl):h.useContext(eo).isSSR}function Ps(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ps(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Cl(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ps(e))&&(r&&(r+=" "),r+=t);return r}const ve=typeof window<"u"?h.useLayoutEffect:()=>{};function Ol(e){let[t,n]=h.useState(e),r=h.useRef(t),i=h.useRef(null),o=h.useCallback(()=>{let l=i.current.next();for(;!l.done&&r.current===l.value;)l=i.current.next();if(l.done){i.current=null;return}n(l.value),r.current=l.value},[n,r,i]);ve(()=>{i.current&&o()});let s=h.useCallback(l=>{i.current=l(r.current),o()},[o,i,r]);return[t,s]}let Sr=new Map;function no(e){let[t,n]=h.useState(e),r=h.useRef(null),i=Pl(t),o=h.useCallback(s=>{r.current=s},[]);return Sr.set(i,o),ve(()=>{let s=i;return()=>{Sr.delete(s)}},[i]),h.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),i}function Rl(e,t){if(e===t)return e;let n=Sr.get(e);if(n)return n(t),t;let r=Sr.get(t);return r?(r(e),e):t}function Ll(e=[]){let t=no(),[n,r]=Ol(t),i=h.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return ve(i,[t,i,...e]),n}function Ml(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function Ye(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],s=r[i];typeof o=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Ml(o,s):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?t[i]=Cl(o,s):i==="id"&&o&&s?t.id=Rl(o,s):t[i]=s!==void 0?s:o}}return t}const Il=new Set(["id"]),Nl=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),kl=/^(data-.*)$/;function ro(e,t={}){let{labelable:n,propNames:r}=t,i={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Il.has(o)||n&&Nl.has(o)||r?.has(o)||kl.test(o))&&(i[o]=e[o]);return i}function rn(e){if(Dl())e.focus({preventScroll:!0});else{let t=Fl(e);e.focus(),jl(t)}}let vr=null;function Dl(){if(vr==null){vr=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return vr=!0,!0}})}catch{}}return vr}function Fl(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function jl(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}let nn=new Map,Ii=new Set;function Ao(){if(typeof window>"u")return;let e=n=>{let r=nn.get(n.target);r||(r=new Set,nn.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{let r=nn.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),nn.delete(n.target)),nn.size===0)){for(let i of Ii)i();Ii.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Ao():document.addEventListener("DOMContentLoaded",Ao));function _s(e){requestAnimationFrame(()=>{nn.size===0?e():Ii.add(e)})}function Ul(){let e=h.useRef(new Map),t=h.useCallback((i,o,s,l)=>{let u=l?.once?(...f)=>{e.current.delete(s),s(...f)}:s;e.current.set(s,{type:o,eventTarget:i,fn:u,options:l}),i.addEventListener(o,s,l)},[]),n=h.useCallback((i,o,s,l)=>{var u;let f=((u=e.current.get(s))===null||u===void 0?void 0:u.fn)||s;i.removeEventListener(o,f,l),e.current.delete(s)},[]),r=h.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return h.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Hl(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=no(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function zl(){return typeof window.ResizeObserver<"u"}function Bl(e){const{ref:t,onResize:n}=e;h.useEffect(()=>{let r=t?.current;if(r)if(zl()){const i=new window.ResizeObserver(o=>{o.length&&n()});return i.observe(r),()=>{r&&i.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function Ss(e,t){ve(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function Vl(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function io(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function As(){return io(/^Mac/i)}function Kl(){return io(/^iPhone/i)}function Wl(){return io(/^iPad/i)||As()&&navigator.maxTouchPoints>1}function Cs(){return Kl()||Wl()}function Gl(){return Vl(/Android/i)}function $t(e){const t=h.useRef(null);return ve(()=>{t.current=e},[e]),h.useCallback((...n)=>{const r=t.current;return r(...n)},[])}function Ni(e){return e.mozInputSource===0&&e.isTrusted?!0:Gl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function ql(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}let on="default",ki="",Er=new WeakMap;function Co(e){Cs()?(on==="default"&&(ki=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),on="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(Er.set(e,e.style.userSelect),e.style.userSelect="none")}function br(e){if(Cs()){if(on!=="disabled")return;on="restoring",setTimeout(()=>{_s(()=>{on==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=ki||""),ki="",on="default")})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Er.has(e)){let t=Er.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Er.delete(e)}}const Os=h.createContext(null);Os.displayName="PressResponderContext";function Ql(e){let t=h.useContext(Os);if(t){let{register:n,...r}=t;e=Ye(r,e),n()}return Ss(t,e.ref),e}function Rs(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:m,ref:$,...g}=Ql(e),[x,v]=h.useState(!1),P=h.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:S,removeAllGlobalListeners:O}=Ul(),L=$t((p,F)=>{let Q=P.current;s||Q.didFirePressStart||(r&&r({type:"pressstart",pointerType:F,target:p.currentTarget,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey}),n&&n(!0),Q.didFirePressStart=!0,v(!0))}),D=$t((p,F,Q=!0)=>{let N=P.current;N.didFirePressStart&&(N.ignoreClickAfterPress=!0,N.didFirePressStart=!1,i&&i({type:"pressend",pointerType:F,target:p.currentTarget,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey}),n&&n(!1),v(!1),t&&Q&&!s&&t({type:"press",pointerType:F,target:p.currentTarget,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey}))}),k=$t((p,F)=>{s||o&&o({type:"pressup",pointerType:F,target:p.currentTarget,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey})}),H=$t(p=>{let F=P.current;F.isPressed&&(F.isOverTarget&&D(lt(F.target,p),F.pointerType,!1),F.isPressed=!1,F.isOverTarget=!1,F.activePointerId=null,F.pointerType=null,O(),m||br(F.target))}),X=$t(p=>{f&&H(p)}),ee=h.useMemo(()=>{let p=P.current,F={onKeyDown(N){wi(N.nativeEvent,N.currentTarget)&&N.currentTarget.contains(N.target)?(Ro(N.target,N.key)&&N.preventDefault(),N.stopPropagation(),!p.isPressed&&!N.repeat&&(p.target=N.currentTarget,p.isPressed=!0,L(N,"keyboard"),S(document,"keyup",Q,!1))):N.key==="Enter"&&Di(N.currentTarget)&&N.stopPropagation()},onKeyUp(N){wi(N.nativeEvent,N.currentTarget)&&!N.repeat&&N.currentTarget.contains(N.target)&&k(lt(p.target,N),"keyboard")},onClick(N){N&&!N.currentTarget.contains(N.target)||N&&N.button===0&&(N.stopPropagation(),s&&N.preventDefault(),!p.ignoreClickAfterPress&&!p.ignoreEmulatedMouseEvents&&(p.pointerType==="virtual"||Ni(N.nativeEvent))&&(!s&&!u&&rn(N.currentTarget),L(N,"virtual"),k(N,"virtual"),D(N,"virtual")),p.ignoreEmulatedMouseEvents=!1,p.ignoreClickAfterPress=!1)}},Q=N=>{if(p.isPressed&&wi(N,p.target)){Ro(N.target,N.key)&&N.preventDefault(),N.stopPropagation(),p.isPressed=!1;let ne=N.target;D(lt(p.target,N),"keyboard",p.target.contains(ne)),O(),p.target instanceof HTMLElement&&p.target.contains(ne)&&(Di(p.target)||p.target.getAttribute("role")==="link")&&p.target.click()}};if(typeof PointerEvent<"u"){F.onPointerDown=T=>{if(!(T.button!==0||!T.currentTarget.contains(T.target))){if(ql(T.nativeEvent)){p.pointerType="virtual";return}Ei(T.currentTarget)&&T.preventDefault(),p.pointerType=T.pointerType,T.stopPropagation(),p.isPressed||(p.isPressed=!0,p.isOverTarget=!0,p.activePointerId=T.pointerId,p.target=T.currentTarget,!s&&!u&&rn(T.currentTarget),m||Co(p.target),L(T,p.pointerType),S(document,"pointermove",N,!1),S(document,"pointerup",ne,!1),S(document,"pointercancel",w,!1))}},F.onMouseDown=T=>{T.currentTarget.contains(T.target)&&T.button===0&&(Ei(T.currentTarget)&&T.preventDefault(),T.stopPropagation())},F.onPointerUp=T=>{!T.currentTarget.contains(T.target)||p.pointerType==="virtual"||T.button===0&&Zt(T,T.currentTarget)&&k(T,p.pointerType||T.pointerType)};let N=T=>{T.pointerId===p.activePointerId&&(Zt(T,p.target)?p.isOverTarget||(p.isOverTarget=!0,L(lt(p.target,T),p.pointerType)):p.isOverTarget&&(p.isOverTarget=!1,D(lt(p.target,T),p.pointerType,!1),X(T)))},ne=T=>{T.pointerId===p.activePointerId&&p.isPressed&&T.button===0&&(Zt(T,p.target)?D(lt(p.target,T),p.pointerType):p.isOverTarget&&D(lt(p.target,T),p.pointerType,!1),p.isPressed=!1,p.isOverTarget=!1,p.activePointerId=null,p.pointerType=null,O(),m||br(p.target))},w=T=>{H(T)};F.onDragStart=T=>{T.currentTarget.contains(T.target)&&H(T)}}else{F.onMouseDown=w=>{w.button!==0||!w.currentTarget.contains(w.target)||(Ei(w.currentTarget)&&w.preventDefault(),w.stopPropagation(),!p.ignoreEmulatedMouseEvents&&(p.isPressed=!0,p.isOverTarget=!0,p.target=w.currentTarget,p.pointerType=Ni(w.nativeEvent)?"virtual":"mouse",!s&&!u&&rn(w.currentTarget),L(w,p.pointerType),S(document,"mouseup",N,!1)))},F.onMouseEnter=w=>{w.currentTarget.contains(w.target)&&(w.stopPropagation(),p.isPressed&&!p.ignoreEmulatedMouseEvents&&(p.isOverTarget=!0,L(w,p.pointerType)))},F.onMouseLeave=w=>{w.currentTarget.contains(w.target)&&(w.stopPropagation(),p.isPressed&&!p.ignoreEmulatedMouseEvents&&(p.isOverTarget=!1,D(w,p.pointerType,!1),X(w)))},F.onMouseUp=w=>{w.currentTarget.contains(w.target)&&!p.ignoreEmulatedMouseEvents&&w.button===0&&k(w,p.pointerType)};let N=w=>{if(w.button===0){if(p.isPressed=!1,O(),p.ignoreEmulatedMouseEvents){p.ignoreEmulatedMouseEvents=!1;return}Zt(w,p.target)?D(lt(p.target,w),p.pointerType):p.isOverTarget&&D(lt(p.target,w),p.pointerType,!1),p.isOverTarget=!1}};F.onTouchStart=w=>{if(!w.currentTarget.contains(w.target))return;w.stopPropagation();let T=Xl(w.nativeEvent);T&&(p.activePointerId=T.identifier,p.ignoreEmulatedMouseEvents=!0,p.isOverTarget=!0,p.isPressed=!0,p.target=w.currentTarget,p.pointerType="touch",!s&&!u&&rn(w.currentTarget),m||Co(p.target),L(w,p.pointerType),S(window,"scroll",ne,!0))},F.onTouchMove=w=>{if(!w.currentTarget.contains(w.target)||(w.stopPropagation(),!p.isPressed))return;let T=Oo(w.nativeEvent,p.activePointerId);T&&Zt(T,w.currentTarget)?p.isOverTarget||(p.isOverTarget=!0,L(w,p.pointerType)):p.isOverTarget&&(p.isOverTarget=!1,D(w,p.pointerType,!1),X(w))},F.onTouchEnd=w=>{if(!w.currentTarget.contains(w.target)||(w.stopPropagation(),!p.isPressed))return;let T=Oo(w.nativeEvent,p.activePointerId);T&&Zt(T,w.currentTarget)?(k(w,p.pointerType),D(w,p.pointerType)):p.isOverTarget&&D(w,p.pointerType,!1),p.isPressed=!1,p.activePointerId=null,p.isOverTarget=!1,p.ignoreEmulatedMouseEvents=!0,m||br(p.target),O()},F.onTouchCancel=w=>{w.currentTarget.contains(w.target)&&(w.stopPropagation(),p.isPressed&&H(w))};let ne=w=>{p.isPressed&&w.target.contains(p.target)&&H({currentTarget:p.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};F.onDragStart=w=>{w.currentTarget.contains(w.target)&&H(w)}}return F},[S,s,u,O,m,H,X,D,L,k]);return h.useEffect(()=>()=>{m||br(P.current.target)},[m]),{isPressed:l||x,pressProps:Ye(g,ee)}}function Di(e){return e.tagName==="A"&&e.hasAttribute("href")}function wi(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof HTMLInputElement&&!Ls(i,n)||i instanceof HTMLTextAreaElement||i.isContentEditable)&&(!Di(i)||o==="button"&&n!=="Enter")&&!(o==="link"&&n!=="Enter")}function Xl(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Oo(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function lt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Yl(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function Zl(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Zt(e,t){let n=t.getBoundingClientRect(),r=Yl(e);return Zl(n,r)}function Ei(e){return!(e instanceof HTMLElement)||!e.draggable}function Ro(e,t){return e instanceof HTMLInputElement?!Ls(e,t):e instanceof HTMLButtonElement?e.type!=="submit":!0}const Jl=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ls(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Jl.has(e.type)}class eu{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Ms(e){let t=h.useRef({isFocused:!1,observer:null});ve(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=$t(r=>{e?.(r)});return h.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{t.current.isFocused=!1,i.disabled&&n(new eu("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){t.current.observer.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function tu(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=h.useCallback(u=>{if(u.target===u.currentTarget)return r&&r(u),i&&i(!1),!0},[r,i]),s=Ms(o),l=h.useCallback(u=>{u.target===u.currentTarget&&document.activeElement===u.target&&(n&&n(u),i&&i(!0),s(u))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?l:void 0,onBlur:!t&&(r||i)?o:void 0}}}let Qn=null,nu=new Set,Lo=!1,Dt=!1,Fi=!1;function oo(e,t){for(let n of nu)n(e,t)}function ru(e){return!(e.metaKey||!As()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Mo(e){Dt=!0,ru(e)&&(Qn="keyboard",oo("keyboard",e))}function Jt(e){Qn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Dt=!0,oo("pointer",e))}function iu(e){Ni(e)&&(Dt=!0,Qn="virtual")}function ou(e){e.target===window||e.target===document||(!Dt&&!Fi&&(Qn="virtual",oo("virtual",e)),Dt=!1,Fi=!1)}function su(){Dt=!1,Fi=!0}function Io(){if(typeof window>"u"||Lo)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Dt=!0,e.apply(this,arguments)},document.addEventListener("keydown",Mo,!0),document.addEventListener("keyup",Mo,!0),document.addEventListener("click",iu,!0),window.addEventListener("focus",ou,!0),window.addEventListener("blur",su,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Jt,!0),document.addEventListener("pointermove",Jt,!0),document.addEventListener("pointerup",Jt,!0)):(document.addEventListener("mousedown",Jt,!0),document.addEventListener("mousemove",Jt,!0),document.addEventListener("mouseup",Jt,!0)),Lo=!0}typeof document<"u"&&(document.readyState!=="loading"?Io():document.addEventListener("DOMContentLoaded",Io));function au(){return Qn}function Is(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=h.useRef({isFocusWithin:!1}),s=h.useCallback(f=>{o.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(f),i&&i(!1))},[n,i,o]),l=Ms(s),u=h.useCallback(f=>{!o.current.isFocusWithin&&document.activeElement===f.target&&(r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,l(f))},[r,i,l]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:u,onBlur:s}}}function lu(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=h.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=$t(u=>{n&&yr(u,t)&&(i&&i(u),o.current.isPointerDown=!0)}),l=$t(u=>{n&&n(u)});h.useEffect(()=>{let u=o.current;if(!r)if(typeof PointerEvent<"u"){let f=m=>{u.isPointerDown&&yr(m,t)&&l(m),u.isPointerDown=!1};return document.addEventListener("pointerdown",s,!0),document.addEventListener("pointerup",f,!0),()=>{document.removeEventListener("pointerdown",s,!0),document.removeEventListener("pointerup",f,!0)}}else{let f=$=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&yr($,t)&&l($),u.isPointerDown=!1},m=$=>{u.ignoreEmulatedMouseEvents=!0,u.isPointerDown&&yr($,t)&&l($),u.isPointerDown=!1};return document.addEventListener("mousedown",s,!0),document.addEventListener("mouseup",f,!0),document.addEventListener("touchstart",s,!0),document.addEventListener("touchend",m,!0),()=>{document.removeEventListener("mousedown",s,!0),document.removeEventListener("mouseup",f,!0),document.removeEventListener("touchstart",s,!0),document.removeEventListener("touchend",m,!0)}}},[t,r,s,l])}function yr(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function No(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function uu(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:No(e.onKeyDown),onKeyUp:No(e.onKeyUp)}}}function Ar(e){if(au()==="virtual"){let t=document.activeElement;_s(()=>{document.activeElement===t&&document.contains(e)&&rn(e)})}else rn(e)}function cu(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:o,visibility:s}=i(e);r=o!=="none"&&s!=="hidden"&&s!=="collapse"}return r}function fu(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Ns(e,t){return e.nodeName!=="#comment"&&cu(e)&&fu(e,t)&&(!e.parentElement||Ns(e.parentElement,e))}const ko=h.createContext(null);let le=null;function ks(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=h.useRef(),s=h.useRef(),l=h.useRef([]),{parentNode:u}=h.useContext(ko)||{},f=h.useMemo(()=>new ji({scopeRef:l}),[l]);ve(()=>{let g=u||ce.root;if(ce.getTreeNode(g.scopeRef)&&le&&!Or(le,g.scopeRef)){let x=ce.getTreeNode(le);x&&(g=x)}g.addChild(f),ce.addNode(f)},[f,u]),ve(()=>{let g=ce.getTreeNode(l);g.contain=n},[n]),ve(()=>{let g=o.current.nextSibling,x=[];for(;g&&g!==s.current;)x.push(g),g=g.nextSibling;l.current=x},[t]),bu(l,r,n),mu(l,n),$u(l,r,n),vu(l,i),h.useEffect(()=>{if(l){let g=document.activeElement,x=null;if(xe(g,l.current)){for(let v of ce.traverse())xe(g,v.scopeRef.current)&&(x=v);x===ce.getTreeNode(l)&&(le=x.scopeRef)}return()=>{let v=ce.getTreeNode(l).parent.scopeRef;(l===le||Or(l,le))&&(!v||ce.getTreeNode(v))&&(le=v),ce.removeTreeNode(l)}}},[l]);let m=h.useMemo(()=>du(l),[]),$=h.useMemo(()=>({focusManager:m,parentNode:f}),[f,m]);return h.createElement(ko.Provider,{value:$},h.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,h.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function du(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:s}=t,l=r||document.activeElement,u=n[0].previousElementSibling,f=Tt(kt(n),{tabbable:i,accept:s},n);f.currentNode=xe(l,n)?l:u;let m=f.nextNode();return!m&&o&&(f.currentNode=u,m=f.nextNode()),m&&ft(m,!0),m},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:s}=t,l=r||document.activeElement,u=n[n.length-1].nextElementSibling,f=Tt(kt(n),{tabbable:i,accept:s},n);f.currentNode=xe(l,n)?l:u;let m=f.previousNode();return!m&&o&&(f.currentNode=u,m=f.previousNode()),m&&ft(m,!0),m},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Tt(kt(n),{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let s=o.nextNode();return s&&ft(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Tt(kt(n),{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let s=o.previousNode();return s&&ft(s,!0),s}}}const so=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],pu=so.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";so.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const hu=so.join(':not([hidden]):not([tabindex="-1"]),');function kt(e){return e[0].parentElement}function In(e){let t=ce.getTreeNode(le);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function mu(e,t){let n=h.useRef(),r=h.useRef(null);ve(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=null);return}let o=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!In(e))return;let f=document.activeElement,m=e.current;if(!xe(f,m))return;let $=Tt(kt(m),{tabbable:!0},m);$.currentNode=f;let g=u.shiftKey?$.previousNode():$.nextNode();g||($.currentNode=u.shiftKey?m[m.length-1].nextElementSibling:m[0].previousElementSibling,g=u.shiftKey?$.previousNode():$.nextNode()),u.preventDefault(),g&&ft(g,!0)},s=u=>{(!le||Or(le,e))&&xe(u.target,e.current)?(le=e,n.current=u.target):In(e)&&!Cr(u.target,e)?n.current?n.current.focus():le&&Rr(le.current):In(e)&&(n.current=u.target)},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{In(e)&&!Cr(document.activeElement,e)&&(le=e,document.body.contains(u.target)?(n.current=u.target,n.current.focus()):le&&Rr(le.current))})};return document.addEventListener("keydown",o,!1),document.addEventListener("focusin",s,!1),i.forEach(u=>u.addEventListener("focusin",s,!1)),i.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{document.removeEventListener("keydown",o,!1),document.removeEventListener("focusin",s,!1),i.forEach(u=>u.removeEventListener("focusin",s,!1)),i.forEach(u=>u.removeEventListener("focusout",l,!1))}},[e,t]),ve(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Ds(e){return Cr(e)}function xe(e,t){return t.some(n=>n.contains(e))}function Cr(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ce.traverse(ce.getTreeNode(t)))if(xe(e,n.current))return!0;return!1}function gu(e){return Cr(e,le)}function Or(e,t){var n;let r=(n=ce.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function ft(e,t=!1){if(e!=null&&!t)try{Ar(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Rr(e,t=!0){let n=e[0].previousElementSibling,r=Tt(kt(e),{tabbable:t},e);r.currentNode=n;let i=r.nextNode();t&&!i&&(r=Tt(kt(e),{tabbable:!1},e),r.currentNode=n,i=r.nextNode()),ft(i)}function vu(e,t){const n=h.useRef(t);h.useEffect(()=>{n.current&&(le=e,xe(document.activeElement,le.current)||Rr(e.current)),n.current=!1},[e])}function bu(e,t,n){ve(()=>{if(t||n)return;let r=e.current,i=o=>{let s=o.target;xe(s,e.current)?le=e:Ds(s)||(le=null)};return document.addEventListener("focusin",i,!1),r.forEach(o=>o.addEventListener("focusin",i,!1)),()=>{document.removeEventListener("focusin",i,!1),r.forEach(o=>o.removeEventListener("focusin",i,!1))}},[e,t,n])}function yu(e){let t=ce.getTreeNode(le);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function $u(e,t,n){const r=h.useRef(typeof document<"u"?document.activeElement:null);ve(()=>{let i=e.current;if(!t||n)return;let o=()=>{(!le||Or(le,e))&&xe(document.activeElement,e.current)&&(le=e)};return document.addEventListener("focusin",o,!1),i.forEach(s=>s.addEventListener("focusin",o,!1)),()=>{document.removeEventListener("focusin",o,!1),i.forEach(s=>s.removeEventListener("focusin",o,!1))}},[e,n]),ve(()=>{if(!t)return;ce.getTreeNode(e).nodeToRestore=r.current;let i=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!In(e))return;let s=document.activeElement;if(!xe(s,e.current))return;let l=ce.getTreeNode(e).nodeToRestore,u=Tt(document.body,{tabbable:!0});u.currentNode=s;let f=o.shiftKey?u.previousNode():u.nextNode();if((!document.body.contains(l)||l===document.body)&&(l=null,ce.getTreeNode(e).nodeToRestore=null),(!f||!xe(f,e.current))&&l){u.currentNode=l;do f=o.shiftKey?u.previousNode():u.nextNode();while(xe(f,e.current));o.preventDefault(),o.stopPropagation(),f?ft(f,!0):Ds(l)?ft(l,!0):s.blur()}};return n||document.addEventListener("keydown",i,!0),()=>{n||document.removeEventListener("keydown",i,!0);let o=ce.getTreeNode(e).nodeToRestore;if(t&&o&&(xe(document.activeElement,e.current)||document.activeElement===document.body&&yu(e))){let s=ce.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let l=s.getTreeNode(e);for(;l;){if(l.nodeToRestore&&document.body.contains(l.nodeToRestore)){ft(l.nodeToRestore);return}l=l.parent}for(l=s.getTreeNode(e);l;){if(l.scopeRef&&ce.getTreeNode(l.scopeRef)){Rr(l.scopeRef.current,!0);return}l=l.parent}}})}}},[e,t,n])}function Tt(e,t,n){let r=t?.tabbable?hu:pu,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&Ns(o)&&(!n||xe(o,n))&&(!t?.accept||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(i.currentNode=t.from),i}class ao{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null),o=new ji({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t),r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef.current&&xe(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r.removeChild(n),i.size>0&&i.forEach(o=>r.addChild(o)),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new ao;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent.scopeRef,n.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new ji({scopeRef:null}),this.fastMap.set(null,this.root)}}class ji{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let ce=new ao,Tu=h.createContext(null);function xu(e){let t=h.useContext(Tu)||{};Ss(t,e);let{ref:n,...r}=t;return r}function Fs(e,t){let{focusProps:n}=tu(e),{keyboardProps:r}=uu(e),i=Ye(n,r),o=xu(t),s=e.isDisabled?{}:o,l=h.useRef(e.autoFocus);return h.useEffect(()=>{l.current&&t.current&&Ar(t.current),l.current=!1},[t]),{focusableProps:Ye({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function wu(e,t){let{elementType:n="a",onPress:r,onPressStart:i,onPressEnd:o,onClick:s,isDisabled:l,...u}=e,f={};n!=="a"&&(f={role:"link",tabIndex:l?void 0:0});let{focusableProps:m}=Fs(e,t),{pressProps:$,isPressed:g}=Rs({onPress:r,onPressStart:i,onPressEnd:o,isDisabled:l,ref:t}),x=ro(u,{labelable:!0}),v=Ye(m,$);return{isPressed:g,linkProps:Ye(x,{...v,...f,"aria-disabled":l||void 0,"aria-current":e["aria-current"],onClick:P=>{var S;(S=$.onClick)===null||S===void 0||S.call($,P),s&&(s(P),console.warn("onClick is deprecated, please use onPress"))}})}}class Eu{getStringForLocale(t,n){let r=this.strings[n];r||(r=Pu(n,this.strings,this.defaultLocale),this.strings[n]=r);let i=r[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function Pu(e,t,n="en-US"){if(t[e])return t[e];let r=_u(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function _u(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Do=new Map,Fo=new Map;class Su{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,s=Do.get(o);s||(s=new Intl.PluralRules(this.locale,{type:r}),Do.set(o,s));let l=s.select(t);return i=n[l]||n.other,typeof i=="function"?i():i}number(t){let n=Fo.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Fo.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const Au=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Cu=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Ou(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize().script;return Au.has(n)}let t=e.split("-")[0];return Cu.has(t)}function js(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Ou(e)?"rtl":"ltr"}}let Ui=js(),Nn=new Set;function jo(){Ui=js();for(let e of Nn)e(Ui)}function Ru(){let e=to(),[t,n]=h.useState(Ui);return h.useEffect(()=>(Nn.size===0&&window.addEventListener("languagechange",jo),Nn.add(n),()=>{Nn.delete(n),Nn.size===0&&window.removeEventListener("languagechange",jo)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Lu=h.createContext(null);function Us(){let e=Ru();return h.useContext(Lu)||e}const Uo=new WeakMap;function Mu(e){let t=Uo.get(e);return t||(t=new Eu(e),Uo.set(e,t)),t}function Iu(e){let{locale:t}=Us(),n=h.useMemo(()=>Mu(e),[e]);return h.useMemo(()=>new Su(t,n),[t,n])}function Hi(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:f,onClick:m,href:$,target:g,rel:x,type:v="button"}=e,P;n==="button"?P={type:v,disabled:r}:P={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:$,target:n==="a"?g:void 0,type:n==="input"?v:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?x:void 0};let{pressProps:S,isPressed:O}=Rs({onPressStart:o,onPressEnd:s,onPressChange:l,onPress:i,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:L}=Fs(e,t);f&&(L.tabIndex=r?-1:L.tabIndex);let D=Ye(L,S,ro(e,{labelable:!0}));return{isPressed:O,buttonProps:Ye(P,D,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:k=>{m&&(m(k),console.warn("onClick is deprecated, please use onPress"))}})}}const Ho={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Nu(e={}){let{style:t,isFocusable:n}=e,[r,i]=h.useState(!1),{focusWithinProps:o}=Is({isDisabled:!n,onFocusWithinChange:l=>i(l)}),s=h.useMemo(()=>r?t:t?{...Ho,...t}:Ho,[r]);return{visuallyHiddenProps:{...o,style:s}}}function ku(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:s}=Nu(e);return h.createElement(n,Ye(o,s),t)}function Du(e){return e&&e.__esModule?e.default:e}const zo={top:"top",bottom:"top",left:"left",right:"left"},Lr={top:"bottom",bottom:"top",left:"right",right:"left"},Fu={top:"left",left:"top"},zi={top:"height",left:"width"},ju={width:"totalWidth",height:"totalHeight"},$r={};let en=typeof window<"u"&&window.visualViewport;function Uu(e){let t=0,n=0,r=0,i=0,o=0,s=0,l={};if(e.tagName==="BODY"){let m=document.documentElement;r=m.clientWidth,i=m.clientHeight;var u;t=(u=en?.width)!==null&&u!==void 0?u:r;var f;n=(f=en?.height)!==null&&f!==void 0?f:i,l.top=m.scrollTop||e.scrollTop,l.left=m.scrollLeft||e.scrollLeft}else({width:t,height:n,top:o,left:s}=ln(e)),l.top=e.scrollTop,l.left=e.scrollLeft,r=t,i=n;return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:l,top:o,left:s}}function Hu(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Bo(e,t,n,r,i){let o=r.scroll[e],s=r[zi[e]],l=t-i-o,u=t+i-o+n;return l<0?-l:u>s?Math.max(s-u,-l):0}function zu(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Vo(e){if($r[e])return $r[e];let[t,n]=e.split(" "),r=zo[t]||"right",i=Fu[r];zo[n]||(n="center");let o=zi[r],s=zi[i];return $r[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:s},$r[e]}function Pi(e,t,n,r,i,o,s,l,u,f){let{placement:m,crossPlacement:$,axis:g,crossAxis:x,size:v,crossSize:P}=r,S={};S[x]=e[x],$==="center"?S[x]+=(e[P]-n[P])/2:$!==x&&(S[x]+=e[P]-n[P]),S[x]+=o;const O=e[x]-n[P]+u+f,L=e[x]+e[P]-u-f;if(S[x]=Mi(S[x],O,L),m===g){const D=l?s[v]:t[ju[v]];S[Lr[g]]=Math.floor(D-e[g]+i)}else S[g]=Math.floor(e[g]+e[v]+i);return S}function Bu(e,t,n,r,i,o){return e.top!=null?Math.max(0,t.height+t.top+t.scroll.top-(n.top+e.top)-(i.top+i.bottom+o)):Math.max(0,r.top+n.top-(t.top+t.scroll.top)-(i.top+i.bottom+o))}function Ko(e,t,n,r,i,o){let{placement:s,axis:l,size:u}=o;return s===l?Math.max(0,n[l]-e[l]-e.scroll[l]+t[l]-r[l]-r[Lr[l]]-i):Math.max(0,e[u]+e[l]+e.scroll[l]-t[l]-n[l]-n[u]-r[l]-r[Lr[l]]-i)}function Vu(e,t,n,r,i,o,s,l,u,f,m,$,g,x,v){let P=Vo(e),{size:S,crossAxis:O,crossSize:L,placement:D,crossPlacement:k}=P,H=Pi(t,l,n,P,f,m,u,$,x,v),X=f,ee=Ko(l,u,t,i,o+f,P);if(s&&r[S]>ee){let se=Vo(`${Lr[D]} ${k}`),Z=Pi(t,l,n,se,f,m,u,$,x,v);Ko(l,u,t,i,o+f,se)>ee&&(P=se,H=Z,X=f)}let p=Bo(O,H[O],n[L],l,o);H[O]+=p;let F=Bu(H,l,u,t,i,o);g&&g<F&&(F=g),n.height=Math.min(n.height,F),H=Pi(t,l,n,P,X,m,u,$,x,v),p=Bo(O,H[O],n[L],l,o),H[O]+=p;let Q={},N=t[O]+.5*t[L]-n[O];const ne=x/2+v,w=n[L]-x/2-v,T=t[O]-n[O]+x/2,V=t[O]+t[L]-n[O]-x/2,Y=Mi(N,T,V);return Q[O]=Mi(Y,ne,w),{position:H,maxHeight:F,arrowOffsetLeft:Q.left,arrowOffsetTop:Q.top,placement:P.placement}}function Ku(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:s,boundaryElement:l,offset:u,crossOffset:f,maxHeight:m,arrowSize:$,arrowBoundaryOffset:g=0}=e,x=r instanceof HTMLElement?Wu(r):document.documentElement,v=x===document.documentElement;const P=window.getComputedStyle(x).position;let S=!!P&&P!=="static",O=v?ln(n):Wo(n,x);if(!v){let{marginTop:ee,marginLeft:p}=window.getComputedStyle(n);O.top+=parseInt(ee,10)||0,O.left+=parseInt(p,10)||0}let L=ln(r),D=zu(r);L.width+=D.left+D.right,L.height+=D.top+D.bottom;let k=Hu(i),H=Uu(l),X=l.tagName==="BODY"?ln(x):Wo(x,l);return Vu(t,O,L,k,D,o,s,H,X,u,f,S,m,$,g)}function ln(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:s,clientTop:l,clientLeft:u}=document.documentElement;return{top:t+o-l,left:n+s-u,width:r,height:i}}function Wo(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:o,width:s,height:l}=e.getBoundingClientRect();r={top:i,left:o,width:s,height:l}}else{r=ln(e);let i=ln(t),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function Wu(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Go(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Go(t);)t=t.parentElement;return t||document.documentElement}function Go(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Hs=new WeakMap;function Gu(e){let{triggerRef:t,isOpen:n,onClose:r}=e;h.useEffect(()=>{if(!n||r===null)return;let i=o=>{let s=o.target;if(!t.current||s instanceof Node&&!s.contains(t.current))return;let l=r||Hs.get(t.current);l&&l()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let De=typeof window<"u"&&window.visualViewport;function qu(e){let{direction:t}=Us(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:s="bottom",containerPadding:l=12,shouldFlip:u=!0,boundaryElement:f=typeof document<"u"?document.body:null,offset:m=0,crossOffset:$=0,shouldUpdatePosition:g=!0,isOpen:x=!0,onClose:v,maxHeight:P,arrowBoundaryOffset:S=0}=e,[O,L]=h.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),D=[g,s,i.current,r.current,o.current,l,u,f,m,$,x,t,P,S,n],k=h.useCallback(()=>{if(g===!1||!x||!i.current||!r.current||!o.current||!f)return;let ee=Ku({placement:Xu(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current,padding:l,shouldFlip:u,boundaryElement:f,offset:m,crossOffset:$,maxHeight:P,arrowSize:n,arrowBoundaryOffset:S});Object.keys(ee.position).forEach(p=>i.current.style[p]=ee.position[p]+"px"),i.current.style.maxHeight=ee.maxHeight!=null?ee.maxHeight+"px":void 0,L(ee)},D);ve(k,D),Qu(k),Bl({ref:i,onResize:k});let H=h.useRef(!1);ve(()=>{let ee,p=()=>{H.current=!0,clearTimeout(ee),ee=setTimeout(()=>{H.current=!1},500),k()};return De?.addEventListener("resize",p),De?.addEventListener("scroll",p),()=>{De?.removeEventListener("resize",p),De?.removeEventListener("scroll",p)}},[k]);let X=h.useCallback(()=>{H.current||v()},[v,H]);return Gu({triggerRef:r,isOpen:x,onClose:v&&X}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...O.position,maxHeight:O.maxHeight}},placement:O.placement,arrowProps:{style:{left:O.arrowOffsetLeft,top:O.arrowOffsetTop}},updatePosition:k}}function Qu(e){ve(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Xu(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const ut=[];function zs(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:l}=e;h.useEffect(()=>(i&&ut.push(t),()=>{let v=ut.indexOf(t);v>=0&&ut.splice(v,1)}),[i,t]);let u=()=>{ut[ut.length-1]===t&&n&&n()},f=v=>{(!l||l(v.target))&&ut[ut.length-1]===t&&(v.stopPropagation(),v.preventDefault())},m=v=>{(!l||l(v.target))&&(ut[ut.length-1]===t&&(v.stopPropagation(),v.preventDefault()),u())},$=v=>{v.key==="Escape"&&!s&&(v.stopPropagation(),v.preventDefault(),u())};lu({ref:t,onInteractOutside:o?m:null,onInteractOutsideStart:f});let{focusWithinProps:g}=Is({isDisabled:!r,onBlurWithin:v=>{v.relatedTarget&&gu(v.relatedTarget)||(!l||l(v.relatedTarget))&&n()}}),x=v=>{v.target===v.currentTarget&&v.preventDefault()};return{overlayProps:{onKeyDown:$,...g},underlayProps:{onPointerDown:x}}}function Yu(e,t,n){let{type:r}=e,{isOpen:i}=t;h.useEffect(()=>{n&&n.current&&Hs.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let s=no();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?s:null,onPress:t.toggle},overlayProps:{id:s}}}const Mr=h.createContext(null);function Zu(e){let{children:t}=e,n=h.useContext(Mr),[r,i]=h.useState(0),o=h.useMemo(()=>({parent:n,modalCount:r,addModal(){i(s=>s+1),n&&n.addModal()},removeModal(){i(s=>s-1),n&&n.removeModal()}}),[n,r]);return h.createElement(Mr.Provider,{value:o},t)}function Ju(){let e=h.useContext(Mr);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function ec(e){let{modalProviderProps:t}=Ju();return h.createElement("div",{"data-overlay-container":!0,...e,...t})}function tc(e){return h.createElement(Zu,null,h.createElement(ec,e))}function Bs(e){let t=to(),{portalContainer:n=t?null:document.body,...r}=e;if(h.useEffect(()=>{if(n?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let i=h.createElement(tc,r);return Ts.createPortal(i,n)}function Vs(e){let t=h.useContext(Mr);if(!t)throw new Error("Modal is not contained within a provider");return h.useEffect(()=>{if(!(e?.isDisabled||!t||!t.parent))return t.parent.addModal(),()=>{t&&t.parent&&t.parent.removeModal()}},[t,t.parent,e?.isDisabled]),{modalProps:{"data-ismodal":!e?.isDisabled}}}var Ks={},Ws={};Ws={dismiss:"تجاهل"};var Gs={};Gs={dismiss:"Отхвърляне"};var qs={};qs={dismiss:"Odstranit"};var Qs={};Qs={dismiss:"Luk"};var Xs={};Xs={dismiss:"Schließen"};var Ys={};Ys={dismiss:"Απόρριψη"};var Zs={};Zs={dismiss:"Dismiss"};var Js={};Js={dismiss:"Descartar"};var ea={};ea={dismiss:"Lõpeta"};var ta={};ta={dismiss:"Hylkää"};var na={};na={dismiss:"Rejeter"};var ra={};ra={dismiss:"התעלם"};var ia={};ia={dismiss:"Odbaci"};var oa={};oa={dismiss:"Elutasítás"};var sa={};sa={dismiss:"Ignora"};var aa={};aa={dismiss:"閉じる"};var la={};la={dismiss:"무시"};var ua={};ua={dismiss:"Atmesti"};var ca={};ca={dismiss:"Nerādīt"};var fa={};fa={dismiss:"Lukk"};var da={};da={dismiss:"Negeren"};var pa={};pa={dismiss:"Zignoruj"};var ha={};ha={dismiss:"Descartar"};var ma={};ma={dismiss:"Dispensar"};var ga={};ga={dismiss:"Revocare"};var va={};va={dismiss:"Пропустить"};var ba={};ba={dismiss:"Zrušiť"};var ya={};ya={dismiss:"Opusti"};var $a={};$a={dismiss:"Odbaci"};var Ta={};Ta={dismiss:"Avvisa"};var xa={};xa={dismiss:"Kapat"};var wa={};wa={dismiss:"Скасувати"};var Ea={};Ea={dismiss:"取消"};var Pa={};Pa={dismiss:"關閉"};Ks={"ar-AE":Ws,"bg-BG":Gs,"cs-CZ":qs,"da-DK":Qs,"de-DE":Xs,"el-GR":Ys,"en-US":Zs,"es-ES":Js,"et-EE":ea,"fi-FI":ta,"fr-FR":na,"he-IL":ra,"hr-HR":ia,"hu-HU":oa,"it-IT":sa,"ja-JP":aa,"ko-KR":la,"lt-LT":ua,"lv-LV":ca,"nb-NO":fa,"nl-NL":da,"pl-PL":pa,"pt-BR":ha,"pt-PT":ma,"ro-RO":ga,"ru-RU":va,"sk-SK":ba,"sl-SI":ya,"sr-SP":$a,"sv-SE":Ta,"tr-TR":xa,"uk-UA":wa,"zh-CN":Ea,"zh-TW":Pa};function nc(e){let{onDismiss:t,...n}=e,r=Iu(Du(Ks)),i=Hl(n,r.format("dismiss")),o=()=>{t&&t()};return h.createElement(ku,null,h.createElement("button",{...i,tabIndex:-1,onClick:o}))}const rc=h.createContext(null);function ic(){let e=h.useContext(rc),t=e?.setContain;ve(()=>{t?.(!0)},[t])}function _a(e,t){let{role:n="dialog"}=e,r=Ll();r=e["aria-label"]?void 0:r;let i=h.useRef(!1);return h.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Ar(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current.blur(),Ar(t.current),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),ic(),{dialogProps:{...ro(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}const Sa=h.forwardRef((e,t)=>{const{as:n="a",handlePress:r,children:i,as:o,customTheme:s,tokens:l,themeName:u="button",...f}=e,m=t,{linkProps:$}=wu({...e,elementType:o?.toString(),onPress:r},t??m),g=ye(u,l,s);return I.jsx(n,{ref:m,...$,...f,className:g,children:i})}),Aa=h.forwardRef((e,t)=>{const{as:n="button",handlePress:r,children:i,as:o,customTheme:s,tokens:l,themeName:u="button",...f}=e,m=t,{buttonProps:$}=Hi({...e,elementType:o,onPress:r},t??m),g=ye(u,l,s);return I.jsx(n,{ref:m,...$,...f,className:g,children:i})}),Ca=h.forwardRef((e,t)=>{const{as:n}=e;return n==="a"?I.jsx(Sa,{ref:t,...e}):I.jsx(Aa,{ref:t,...e})}),oc=e=>{const{as:t}=e,n=h.useRef(null);return t==="a"?I.jsx(Sa,{ref:n,...e}):I.jsx(Aa,{ref:n,...e})},zr=h.memo(oc),sc=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((r,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t)))})},ac=e=>I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...e}),Oa=h.memo(ac),lc=Object.freeze(Object.defineProperty({__proto__:null,default:Oa},Symbol.toStringTag,{value:"Module"})),uc=e=>{const{icon:t,...n}=e,r=h.useMemo(()=>h.lazy(()=>sc(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>require("./ArrowDown-1712d1b6.js")),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>require("./ArrowLeft-d3f05521.js")),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>ud),"../icons/BrandArrowRight.tsx":()=>Promise.resolve().then(()=>require("./BrandArrowRight-76384dc5.js")),"../icons/Check.tsx":()=>Promise.resolve().then(()=>require("./Check-177d024b.js")),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>require("./ChevronLeft-feef9450.js")),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>require("./ChevronRight-3a5571da.js")),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>require("./CloseBtn-3a0ca7e1.js")),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>require("./Facebook-6591414e.js")),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>require("./FacebookColored-69bc09dc.js")),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>require("./Globe-46988aa4.js")),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>lc),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>require("./Instagram-2c7a4948.js")),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>require("./InstagramColored-16d3ed77.js")),"../icons/Link.tsx":()=>Promise.resolve().then(()=>require("./Link-c8a14eea.js")),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>require("./Mail-e9297805.js")),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>require("./Plus-8726d28e.js")),"../icons/Share.tsx":()=>Promise.resolve().then(()=>require("./Share-6ca93f65.js")),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>require("./Twitter-6498fa22.js")),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>require("./TwitterColored-51ba5c2e.js")),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>require("./Upload-302cba06.js")),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>require("./YouTube-4cbcbfc5.js")),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>require("./YouTubeColored-877e6612.js"))}),`../icons/${t||"ArrowRight"}.tsx`)),[t]);return I.jsx(h.Suspense,{fallback:I.jsx(Oa,{className:"overflow-visible pointer-events-none"}),children:I.jsx(r,{...n,className:"overflow-visible pointer-events-none",...e})})},Xn=e=>{const{icon:t,as:n="span",tokens:r,customTheme:i,themeName:o="icon",children:s,...l}=e,u=ye(o,r,i);return typeof t!="string"?I.jsxs(n,{...l,className:u,children:[s,t]}):typeof window>"u"?null:I.jsxs(n,{className:u,children:[s,I.jsx(uc,{icon:t,...l})]})},cc=e=>{const{customTheme:t,themeName:n="accordion",id:r,tokens:i,title:o,ariaLabel:s,onClick:l,icon:u,children:f}=e,[m,$]=h.useState(!1),g=ye(`${n}.container`,{...i,isOpen:m},t),x=ye(`${n}.title`,{...i,isOpen:m},t),v=ye(`${n}.icon`,{...i,isOpen:m},t),P=ye(`${n}.region`,{...i,isOpen:m},t),S=ye(`${n}.content`,{...i,isOpen:m},t);return I.jsxs("div",{className:g,id:`accordion-control-${r}`,"aria-label":s,"aria-expanded":m,"aria-controls":`accordion-content-${r}`,children:[I.jsxs(zr,{themeName:`${n}.button`,tokens:{...i,isOpen:m},handlePress:()=>{$(!m),l?.(m)},as:"button",id:`accordion-control-${r}`,"aria-label":s,children:[I.jsx("div",{className:x,children:o}),I.jsx("div",{className:v,children:I.jsx(Xn,{icon:u??"ArrowDown"})})]}),I.jsx("div",{className:P,role:"region",id:`accordion-content-${r}`,"aria-labelledby":`accordion-control-${r}`,children:I.jsx("section",{className:S,children:f})})]})},fc=e=>{const{sharingLinksList:t,id:n,isOpen:r,onShare:i,themeName:o="shareButton",tokens:s,customTheme:l}=e,u=ye(`${o}.linksList`,{...s,isOpen:r},l);return I.jsx("div",{className:u,id:n,role:"listbox",children:t?.map(f=>{const{ariaLabel:m,onClick:$,href:g,icon:x,key:v}=f;return I.jsx(zr,{themeName:`${o}.link`,tokens:{...s,isOpen:r},as:"a",handlePress:()=>{i?.(v),$?.(v)},"aria-label":m,target:"_blank",rel:"noopener noreferrer",href:g,role:"option",children:I.jsx(Xn,{themeName:`${o}.linkIcons`,icon:x})},v)})})},dc=e=>{const{ariaLabel:t,icon:n,id:r,sharingLinksList:i,onShare:o,customTheme:s,themeName:l="shareButton",tokens:u,...f}=e,[m,$]=h.useState(!1),g=ye(`${l}.container`,u,s),x=()=>{$(!m)};return I.jsxs("div",{className:g,children:[I.jsx(zr,{themeName:`${l}.button`,tokens:{...u,isOpen:m},"aria-label":t,"aria-haspopup":"listbox","aria-expanded":m?"true":"false","aria-controls":"share-buttons",handlePress:x,...f,children:I.jsx(Xn,{themeName:`${l}.icon`,icon:n??"Share"})}),I.jsx(fc,{id:r,sharingLinksList:i,onShare:o,isOpen:m,themeName:l,customTheme:s,tokens:u})]})};var Fn=globalThis&&globalThis.__assign||function(){return Fn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Fn.apply(this,arguments)},pc=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},qo=!1,Ra=h.forwardRef(function(e,t){var n=e.style,r=pc(e,["style"]),i=hc();!qo&&n?.height&&(qo=!0,console.warn("<Div100vh /> overrides the height property of the style prop"));var o=Fn(Fn({},n),{height:i?i+"px":"100vh"});return h.createElement("div",Fn({ref:t,style:o},r))});Ra.displayName="Div100vh";function hc(){var e=h.useState(Qo),t=e[0],n=e[1],r=mc();return h.useEffect(function(){if(!r)return;function i(){var o=Qo();n(o)}return window.addEventListener("resize",i),function(){return window.removeEventListener("resize",i)}},[r]),r?t:null}function Qo(){return La()?window.innerHeight:null}function mc(){var e=h.useState(!1),t=e[0],n=e[1];return h.useEffect(function(){La()&&n(!0)},[]),t}function La(){return typeof window<"u"&&typeof document<"u"}function gc(){const e=h.createContext(void 0);function t(){const n=h.useContext(e);if(n===void 0)throw new Error("useCtx must be inside a Provider");return n}return[t,e.Provider]}function Ma(e){let[t,n]=$l(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=h.useCallback(()=>{n(!0)},[n]),i=h.useCallback(()=>{n(!1)},[n]),o=h.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}const vc=(e,t,n)=>{const r=Ma({defaultOpen:e,onOpenChange:m=>t?.(m)}),i=h.useRef(null),o=h.useRef(null);h.useEffect(()=>{if(e){r.open();return}r.close()},[e]);const s=()=>{r.open()},l=()=>{r.close(),n?.()},{buttonProps:u}=Hi({elementType:"div",onPress:s},i),{buttonProps:f}=Hi({onPress:l},o);return{state:r,openButtonProps:u,closeButtonProps:f,handleOpen:s,handleClose:l,openButtonRef:i,closeButtonRef:o}},[bc,pd]=gc();let lo=Zn();const W=e=>Yn(e,lo);let uo=Zn();W.write=e=>Yn(e,uo);let Br=Zn();W.onStart=e=>Yn(e,Br);let co=Zn();W.onFrame=e=>Yn(e,co);let fo=Zn();W.onFinish=e=>Yn(e,fo);let un=[];W.setTimeout=(e,t)=>{let n=W.now()+t,r=()=>{let o=un.findIndex(s=>s.cancel==r);~o&&un.splice(o,1),wt-=~o?1:0},i={time:n,handler:e,cancel:r};return un.splice(Ia(n),0,i),wt+=1,Na(),i};let Ia=e=>~(~un.findIndex(t=>t.time>e)||~un.length);W.cancel=e=>{Br.delete(e),co.delete(e),fo.delete(e),lo.delete(e),uo.delete(e)};W.sync=e=>{Bi=!0,W.batchedUpdates(e),Bi=!1};W.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,W.onStart(n)}return r.handler=e,r.cancel=()=>{Br.delete(n),t=null},r};let po=typeof window<"u"?window.requestAnimationFrame:()=>{};W.use=e=>po=e;W.now=typeof performance<"u"?()=>performance.now():Date.now;W.batchedUpdates=e=>e();W.catch=console.error;W.frameLoop="always";W.advance=()=>{W.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Da()};let xt=-1,wt=0,Bi=!1;function Yn(e,t){Bi?(t.delete(e),e(0)):(t.add(e),Na())}function Na(){xt<0&&(xt=0,W.frameLoop!=="demand"&&po(ka))}function yc(){xt=-1}function ka(){~xt&&(po(ka),W.batchedUpdates(Da))}function Da(){let e=xt;xt=W.now();let t=Ia(xt);if(t&&(Fa(un.splice(0,t),n=>n.handler()),wt-=t),!wt){yc();return}Br.flush(),lo.flush(e?Math.min(64,xt-e):16.667),co.flush(),uo.flush(),fo.flush()}function Zn(){let e=new Set,t=e;return{add(n){wt+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return wt-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,wt-=t.size,Fa(t,r=>r(n)&&e.add(r)),wt+=e.size,t=e)}}}function Fa(e,t){e.forEach(n=>{try{t(n)}catch(r){W.catch(r)}})}function Vi(){}const $c=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),_={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function ct(e,t){if(_.arr(e)){if(!_.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const q=(e,t)=>e.forEach(t);function Ze(e,t,n){if(_.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const Pe=e=>_.und(e)?[]:_.arr(e)?e:[e];function jn(e,t){if(e.size){const n=Array.from(e);e.clear(),q(n,t)}}const kn=(e,...t)=>jn(e,n=>n(...t)),ho=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let mo,ja,Et=null,Ua=!1,go=Vi;const Tc=e=>{e.to&&(ja=e.to),e.now&&(W.now=e.now),e.colors!==void 0&&(Et=e.colors),e.skipAnimation!=null&&(Ua=e.skipAnimation),e.createStringInterpolator&&(mo=e.createStringInterpolator),e.requestAnimationFrame&&W.use(e.requestAnimationFrame),e.batchedUpdates&&(W.batchedUpdates=e.batchedUpdates),e.willAdvance&&(go=e.willAdvance),e.frameLoop&&(W.frameLoop=e.frameLoop)};var Je=Object.freeze({__proto__:null,get createStringInterpolator(){return mo},get to(){return ja},get colors(){return Et},get skipAnimation(){return Ua},get willAdvance(){return go},assign:Tc});const Un=new Set;let je=[],_i=[],Ir=0;const Vr={get idle(){return!Un.size&&!je.length},start(e){Ir>e.priority?(Un.add(e),W.onStart(xc)):(Ha(e),W(Ki))},advance:Ki,sort(e){if(Ir)W.onFrame(()=>Vr.sort(e));else{const t=je.indexOf(e);~t&&(je.splice(t,1),za(e))}},clear(){je=[],Un.clear()}};function xc(){Un.forEach(Ha),Un.clear(),W(Ki)}function Ha(e){je.includes(e)||za(e)}function za(e){je.splice(wc(je,t=>t.priority>e.priority),0,e)}function Ki(e){const t=_i;for(let n=0;n<je.length;n++){const r=je[n];Ir=r.priority,r.idle||(go(r),r.advance(e),r.idle||t.push(r))}return Ir=0,_i=je,_i.length=0,je=t,je.length>0}function wc(e,t){const n=e.findIndex(t);return n<0?e.length:n}const Ec=(e,t,n)=>Math.min(Math.max(n,e),t),Pc={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ve="[-+]?\\d*\\.?\\d+",Nr=Ve+"%";function Kr(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const _c=new RegExp("rgb"+Kr(Ve,Ve,Ve)),Sc=new RegExp("rgba"+Kr(Ve,Ve,Ve,Ve)),Ac=new RegExp("hsl"+Kr(Ve,Nr,Nr)),Cc=new RegExp("hsla"+Kr(Ve,Nr,Nr,Ve)),Oc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Rc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Lc=/^#([0-9a-fA-F]{6})$/,Mc=/^#([0-9a-fA-F]{8})$/;function Ic(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Lc.exec(e))?parseInt(t[1]+"ff",16)>>>0:Et&&Et[e]!==void 0?Et[e]:(t=_c.exec(e))?(tn(t[1])<<24|tn(t[2])<<16|tn(t[3])<<8|255)>>>0:(t=Sc.exec(e))?(tn(t[1])<<24|tn(t[2])<<16|tn(t[3])<<8|Zo(t[4]))>>>0:(t=Oc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Mc.exec(e))?parseInt(t[1],16)>>>0:(t=Rc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ac.exec(e))?(Xo(Yo(t[1]),Tr(t[2]),Tr(t[3]))|255)>>>0:(t=Cc.exec(e))?(Xo(Yo(t[1]),Tr(t[2]),Tr(t[3]))|Zo(t[4]))>>>0:null}function Si(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Xo(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Si(i,r,e+1/3),s=Si(i,r,e),l=Si(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(l*255)<<8}function tn(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Yo(e){return(parseFloat(e)%360+360)%360/360}function Zo(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Tr(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Jo(e){let t=Ic(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}const Bn=(e,t,n)=>{if(_.fun(e))return e;if(_.arr(e))return Bn({range:e,output:t,extrapolate:n});if(_.str(e.output[0]))return mo(e);const r=e,i=r.output,o=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(f=>f);return f=>{const m=kc(f,o);return Nc(f,o[m],o[m+1],i[m],i[m+1],u,s,l,r.map)}};function Nc(e,t,n,r,i,o,s,l,u){let f=u?u(e):e;if(f<t){if(s==="identity")return f;s==="clamp"&&(f=t)}if(f>n){if(l==="identity")return f;l==="clamp"&&(f=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?f=-f:n===1/0?f=f-t:f=(f-t)/(n-t),f=o(f),r===-1/0?f=-f:i===1/0?f=f+r:f=f*(i-r)+r,f)}function kc(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}const Dc=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return Ec(0,1,i/e)},kr=1.70158,xr=kr*1.525,es=kr+1,ts=2*Math.PI/3,ns=2*Math.PI/4.5,wr=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Fc={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>es*e*e*e-kr*e*e,easeOutBack:e=>1+es*Math.pow(e-1,3)+kr*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((xr+1)*2*e-xr)/2:(Math.pow(2*e-2,2)*((xr+1)*(e*2-2)+xr)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*ts),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*ts)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ns))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ns)/2+1,easeInBounce:e=>1-wr(1-e),easeOutBounce:wr,easeInOutBounce:e=>e<.5?(1-wr(1-2*e))/2:(1+wr(2*e-1))/2,steps:Dc};function Wi(){return Wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wi.apply(this,arguments)}const fn=Symbol.for("FluidValue.get"),Ft=Symbol.for("FluidValue.observers"),Fe=e=>!!(e&&e[fn]),Ce=e=>e&&e[fn]?e[fn]():e,rs=e=>e[Ft]||null;function jc(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Vn(e,t){let n=e[Ft];n&&n.forEach(r=>{jc(r,t)})}class Ba{constructor(t){if(this[fn]=void 0,this[Ft]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");Uc(this,t)}}const Uc=(e,t)=>Va(e,fn,t);function pn(e,t){if(e[fn]){let n=e[Ft];n||Va(e,Ft,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Kn(e,t){let n=e[Ft];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ft]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const Va=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Pr=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Hc=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,is=new RegExp(`(${Pr.source})(%|[a-z]+)`,"i"),zc=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Wr=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ka=e=>{const[t,n]=Bc(e);if(!t||ho())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&Wr.test(n))return Ka(n);if(n)return n}return e},Bc=e=>{const t=Wr.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let Ai;const Vc=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Wa=e=>{Ai||(Ai=Et?new RegExp(`(${Object.keys(Et).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Ce(o).replace(Wr,Ka).replace(Hc,Jo).replace(Ai,Jo)),n=t.map(o=>o.match(Pr).map(Number)),i=n[0].map((o,s)=>n.map(l=>{if(!(s in l))throw Error('The arity of each "output" value must be equal');return l[s]})).map(o=>Bn(Wi({},e,{output:o})));return o=>{var s;const l=!is.test(t[0])&&((s=t.find(f=>is.test(f)))==null?void 0:s.replace(Pr,""));let u=0;return t[0].replace(Pr,()=>`${i[u++](o)}${l||""}`).replace(zc,Vc)}},vo="react-spring: ",Ga=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${vo}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Kc=Ga(console.warn);function Wc(){Kc(`${vo}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const Gc=Ga(console.warn);function qc(){Gc(`${vo}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Gr(e){return _.str(e)&&(e[0]=="#"||/\d/.test(e)||!ho()&&Wr.test(e)||e in(Et||{}))}const sn=ho()?h.useEffect:h.useLayoutEffect,Qc=()=>{const e=h.useRef(!1);return sn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function qa(){const e=h.useState()[1],t=Qc();return()=>{t.current&&e(Math.random())}}function Xc(e,t){const[n]=h.useState(()=>({inputs:t,result:e()})),r=h.useRef(),i=r.current;let o=i;return o?t&&o.inputs&&Yc(t,o.inputs)||(o={inputs:t,result:e()}):o=n,h.useEffect(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function Yc(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const Qa=e=>h.useEffect(e,Zc),Zc=[];function Jc(e){const t=h.useRef();return h.useEffect(()=>{t.current=e}),t.current}const Wn=Symbol.for("Animated:node"),ef=e=>!!e&&e[Wn]===e,Xe=e=>e&&e[Wn],bo=(e,t)=>$c(e,Wn,t),qr=e=>e&&e[Wn]&&e[Wn].getPayload();class Xa{constructor(){this.payload=void 0,bo(this,this)}getPayload(){return this.payload||[]}}class hn extends Xa{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,_.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new hn(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return _.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,_.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class dn extends hn{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=Bn({output:[t,t]})}static create(t){return new dn(t)}getValue(){let t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(_.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Bn({output:[this.getValue(),t]})),this._value=0,super.reset()}}const Dr={dependencies:null};class Qr extends Xa{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const n={};return Ze(this.source,(r,i)=>{ef(r)?n[i]=r.getValue(t):Fe(r)?n[i]=Ce(r):t||(n[i]=r)}),n}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&q(this.payload,t=>t.reset())}_makePayload(t){if(t){const n=new Set;return Ze(t,this._addToPayload,n),Array.from(n)}}_addToPayload(t){Dr.dependencies&&Fe(t)&&Dr.dependencies.add(t);const n=qr(t);n&&q(n,r=>this.add(r))}}class yo extends Qr{constructor(t){super(t)}static create(t){return new yo(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,i)=>r.setValue(t[i])).some(Boolean):(super.setValue(t.map(tf)),!0)}}function tf(e){return(Gr(e)?dn:hn).create(e)}function Gi(e){const t=Xe(e);return t?t.constructor:_.arr(e)?yo:Gr(e)?dn:hn}function Fr(){return Fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fr.apply(this,arguments)}const os=(e,t)=>{const n=!_.fun(e)||e.prototype&&e.prototype.isReactComponent;return h.forwardRef((r,i)=>{const o=h.useRef(null),s=n&&h.useCallback(v=>{o.current=of(i,v)},[i]),[l,u]=rf(r,t),f=qa(),m=()=>{const v=o.current;if(n&&!v)return;(v?t.applyAnimatedValues(v,l.getValue(!0)):!1)===!1&&f()},$=new nf(m,u),g=h.useRef();sn(()=>(g.current=$,q(u,v=>pn(v,$)),()=>{g.current&&(q(g.current.deps,v=>Kn(v,g.current)),W.cancel(g.current.update))})),h.useEffect(m,[]),Qa(()=>()=>{const v=g.current;q(v.deps,P=>Kn(P,v))});const x=t.getComponentProps(l.getValue());return an.createElement(e,Fr({},x,{ref:s}))})};class nf{constructor(t,n){this.update=t,this.deps=n}eventObserved(t){t.type=="change"&&W.write(this.update)}}function rf(e,t){const n=new Set;return Dr.dependencies=n,e.style&&(e=Fr({},e,{style:t.createAnimatedStyle(e.style)})),e=new Qr(e),Dr.dependencies=null,[e,n]}function of(e,t){return e&&(_.fun(e)?e(t):e.current=t),t}const ss=Symbol.for("AnimatedComponent"),sf=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Qr(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=s=>{const l=as(s)||"Anonymous";return _.str(s)?s=o[s]||(o[s]=os(s,i)):s=s[ss]||(s[ss]=os(s,i)),s.displayName=`Animated(${l})`,s};return Ze(e,(s,l)=>{_.arr(e)&&(l=as(s)),o[l]=o(s)}),{animated:o}},as=e=>_.str(e)?e:e&&_.str(e.displayName)?e.displayName:_.fun(e)&&e.name||null;function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fe.apply(this,arguments)}function Oe(e,...t){return _.fun(e)?e(...t):e}const Hn=(e,t)=>e===!0||!!(t&&e&&(_.fun(e)?e(t):Pe(e).includes(t))),Ya=(e,t)=>_.obj(e)?t&&e[t]:e,Za=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,af=e=>e,$o=(e,t=af)=>{let n=lf;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const o=t(e[i],i);_.und(o)||(r[i]=o)}return r},lf=["config","onProps","onStart","onChange","onPause","onResume","onRest"],uf={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function cf(e){const t={};let n=0;if(Ze(e,(r,i)=>{uf[i]||(t[i]=r,n++)}),n)return t}function To(e){const t=cf(e);if(t){const n={to:t};return Ze(e,(r,i)=>i in t||(n[i]=r)),n}return fe({},e)}function Gn(e){return e=Ce(e),_.arr(e)?e.map(Gn):Gr(e)?Je.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function ff(e){for(const t in e)return!0;return!1}function qi(e){return _.fun(e)||_.arr(e)&&_.obj(e[0])}function ls(e,t){var n;(n=e.ref)==null||n.delete(e),t?.delete(e)}function df(e,t){if(t&&e.ref!==t){var n;(n=e.ref)==null||n.delete(e),t.add(e),e.ref=t}}const xo={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Qi=fe({},xo.default,{mass:1,damping:1,easing:Fc.linear,clamp:!1});class pf{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,Qi)}}function hf(e,t,n){n&&(n=fe({},n),us(n,t),t=fe({},n,t)),us(e,t),Object.assign(e,t);for(const s in Qi)e[s]==null&&(e[s]=Qi[s]);let{mass:r,frequency:i,damping:o}=e;return _.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i),e}function us(e,t){if(!_.und(t.decay))e.duration=void 0;else{const n=!_.und(t.tension)||!_.und(t.friction);(n||!_.und(t.frequency)||!_.und(t.damping)||!_.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}const cs=[];class mf{constructor(){this.changed=!1,this.values=cs,this.toValues=null,this.fromValues=cs,this.to=void 0,this.from=void 0,this.config=new pf,this.immediate=!1}}function Ja(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((s,l)=>{var u;let f,m,$=Hn((u=n.cancel)!=null?u:r?.cancel,t);if($)v();else{_.und(n.pause)||(i.paused=Hn(n.pause,t));let P=r?.pause;P!==!0&&(P=i.paused||Hn(P,t)),f=Oe(n.delay||0,t),P?(i.resumeQueue.add(x),o.pause()):(o.resume(),x())}function g(){i.resumeQueue.add(x),i.timeouts.delete(m),m.cancel(),f=m.time-W.now()}function x(){f>0&&!Je.skipAnimation?(i.delayed=!0,m=W.setTimeout(v,f),i.pauseQueue.add(g),i.timeouts.add(m)):v()}function v(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(g),i.timeouts.delete(m),e<=(i.cancelId||0)&&($=!0);try{o.start(fe({},n,{callId:e,cancel:$}),s)}catch(P){l(P)}}})}const wo=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?cn(e.get()):t.every(n=>n.noop)?el(e.get()):Be(e.get(),t.every(n=>n.finished)),el=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Be=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),cn=e=>({value:e,cancelled:!0,finished:!1});function tl(e,t,n,r){const{callId:i,parentId:o,onRest:s}=t,{asyncTo:l,promise:u}=n;return!o&&e===l&&!t.reset?u:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const f=$o(t,(S,O)=>O==="onRest"?void 0:S);let m,$;const g=new Promise((S,O)=>(m=S,$=O)),x=S=>{const O=i<=(n.cancelId||0)&&cn(r)||i!==n.asyncId&&Be(r,!1);if(O)throw S.result=O,$(S),S},v=(S,O)=>{const L=new fs,D=new ds;return(async()=>{if(Je.skipAnimation)throw qn(n),D.result=Be(r,!1),$(D),D;x(L);const k=_.obj(S)?fe({},S):fe({},O,{to:S});k.parentId=i,Ze(f,(X,ee)=>{_.und(k[ee])&&(k[ee]=X)});const H=await r.start(k);return x(L),n.paused&&await new Promise(X=>{n.resumeQueue.add(X)}),H})()};let P;if(Je.skipAnimation)return qn(n),Be(r,!1);try{let S;_.arr(e)?S=(async O=>{for(const L of O)await v(L)})(e):S=Promise.resolve(e(v,r.stop.bind(r))),await Promise.all([S.then(m),g]),P=Be(r.get(),!0,!1)}catch(S){if(S instanceof fs)P=S.result;else if(S instanceof ds)P=S.result;else throw S}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?l:void 0,n.promise=o?u:void 0)}return _.fun(s)&&W.batchedUpdates(()=>{s(P,r,r.item)}),P})()}function qn(e,t){jn(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class fs extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class ds extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Xi=e=>e instanceof Eo;let gf=1;class Eo extends Ba{constructor(...t){super(...t),this.id=gf++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Xe(this);return t&&t.getValue()}to(...t){return Je.to(this,t)}interpolate(...t){return Wc(),Je.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,n=!1){Vn(this,{type:"change",parent:this,value:t,idle:n})}_onPriorityChange(t){this.idle||Vr.sort(this),Vn(this,{type:"priority",parent:this,priority:t})}}const jt=Symbol.for("SpringPhase"),nl=1,Yi=2,Zi=4,Ci=e=>(e[jt]&nl)>0,yt=e=>(e[jt]&Yi)>0,Rn=e=>(e[jt]&Zi)>0,ps=(e,t)=>t?e[jt]|=Yi|nl:e[jt]&=~Yi,hs=(e,t)=>t?e[jt]|=Zi:e[jt]&=~Zi;class vf extends Eo{constructor(t,n){if(super(),this.key=void 0,this.animation=new mf,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!_.und(t)||!_.und(n)){const r=_.obj(t)?fe({},t):fe({},n,{from:t});_.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(yt(this)||this._state.asyncTo)||Rn(this)}get goal(){return Ce(this.animation.to)}get velocity(){const t=Xe(this);return t instanceof hn?t.lastVelocity||0:t.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return Ci(this)}get isAnimating(){return yt(this)}get isPaused(){return Rn(this)}get isDelayed(){return this._state.delayed}advance(t){let n=!0,r=!1;const i=this.animation;let{config:o,toValues:s}=i;const l=qr(i.to);!l&&Fe(i.to)&&(s=Pe(Ce(i.to))),i.values.forEach((m,$)=>{if(m.done)return;const g=m.constructor==dn?1:l?l[$].lastPosition:s[$];let x=i.immediate,v=g;if(!x){if(v=m.lastPosition,o.tension<=0){m.done=!0;return}let P=m.elapsedTime+=t;const S=i.fromValues[$],O=m.v0!=null?m.v0:m.v0=_.arr(o.velocity)?o.velocity[$]:o.velocity;let L;const D=o.precision||(S==g?.005:Math.min(1,Math.abs(g-S)*.001));if(_.und(o.duration))if(o.decay){const k=o.decay===!0?.998:o.decay,H=Math.exp(-(1-k)*P);v=S+O/(1-k)*(1-H),x=Math.abs(m.lastPosition-v)<=D,L=O*H}else{L=m.lastVelocity==null?O:m.lastVelocity;const k=o.restVelocity||D/10,H=o.clamp?0:o.bounce,X=!_.und(H),ee=S==g?m.v0>0:S<g;let p,F=!1;const Q=1,N=Math.ceil(t/Q);for(let ne=0;ne<N&&(p=Math.abs(L)>k,!(!p&&(x=Math.abs(g-v)<=D,x)));++ne){X&&(F=v==g||v>g==ee,F&&(L=-L*H,v=g));const w=-o.tension*1e-6*(v-g),T=-o.friction*.001*L,V=(w+T)/o.mass;L=L+V*Q,v=v+L*Q}}else{let k=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,m.durationProgress>0&&(m.elapsedTime=o.duration*m.durationProgress,P=m.elapsedTime+=t)),k=(o.progress||0)+P/this._memoizedDuration,k=k>1?1:k<0?0:k,m.durationProgress=k),v=S+o.easing(k)*(g-S),L=(v-m.lastPosition)/t,x=k==1}m.lastVelocity=L,Number.isNaN(v)&&(console.warn("Got NaN while animating:",this),x=!0)}l&&!l[$].done&&(x=!1),x?m.done=!0:n=!1,m.setValue(v,o.round)&&(r=!0)});const u=Xe(this),f=u.getValue();if(n){const m=Ce(i.to);(f!==m||r)&&!o.decay?(u.setValue(m),this._onChange(m)):r&&o.decay&&this._onChange(f),this._stop()}else r&&this._onChange(f)}set(t){return W.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(yt(this)){const{to:t,config:n}=this.animation;W.batchedUpdates(()=>{this._onStart(),n.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,n){let r;return _.und(t)?(r=this.queue||[],this.queue=[]):r=[_.obj(t)?t:fe({},n,{to:t})],Promise.all(r.map(i=>this._update(i))).then(i=>wo(this,i))}stop(t){const{to:n}=this.animation;return this._focus(this.get()),qn(this._state,t&&this._lastCallId),W.batchedUpdates(()=>this._stop(n,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const n=this.key||"";let{to:r,from:i}=t;r=_.obj(r)?r[n]:r,(r==null||qi(r))&&(r=void 0),i=_.obj(i)?i[n]:i,i==null&&(i=void 0);const o={to:r,from:i};return Ci(this)||(t.reverse&&([r,i]=[i,r]),i=Ce(i),_.und(i)?Xe(this)||this._set(r):this._set(i)),o}_update(t,n){let r=fe({},t);const{key:i,defaultProps:o}=this;r.default&&Object.assign(o,$o(r,(u,f)=>/^on/.test(f)?Ya(u,i):u)),gs(this,r,"onProps"),Mn(this,"onProps",r,this);const s=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const l=this._state;return Ja(++this._lastCallId,{key:i,props:r,defaultProps:o,state:l,actions:{pause:()=>{Rn(this)||(hs(this,!0),kn(l.pauseQueue),Mn(this,"onPause",Be(this,Ln(this,this.animation.to)),this))},resume:()=>{Rn(this)&&(hs(this,!1),yt(this)&&this._resume(),kn(l.resumeQueue),Mn(this,"onResume",Be(this,Ln(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(u=>{if(r.loop&&u.finished&&!(n&&u.noop)){const f=rl(r);if(f)return this._update(f,!0)}return u})}_merge(t,n,r){if(n.cancel)return this.stop(!0),r(cn(this));const i=!_.und(t.to),o=!_.und(t.from);if(i||o)if(n.callId>this._lastToId)this._lastToId=n.callId;else return r(cn(this));const{key:s,defaultProps:l,animation:u}=this,{to:f,from:m}=u;let{to:$=f,from:g=m}=t;o&&!i&&(!n.default||_.und($))&&($=g),n.reverse&&([$,g]=[g,$]);const x=!ct(g,m);x&&(u.from=g),g=Ce(g);const v=!ct($,f);v&&this._focus($);const P=qi(n.to),{config:S}=u,{decay:O,velocity:L}=S;(i||o)&&(S.velocity=0),n.config&&!P&&hf(S,Oe(n.config,s),n.config!==l.config?Oe(l.config,s):void 0);let D=Xe(this);if(!D||_.und($))return r(Be(this,!0));const k=_.und(n.reset)?o&&!n.default:!_.und(g)&&Hn(n.reset,s),H=k?g:this.get(),X=Gn($),ee=_.num(X)||_.arr(X)||Gr(X),p=!P&&(!ee||Hn(l.immediate||n.immediate,s));if(v){const ne=Gi($);if(ne!==D.constructor)if(p)D=this._set(X);else throw Error(`Cannot animate between ${D.constructor.name} and ${ne.name}, as the "to" prop suggests`)}const F=D.constructor;let Q=Fe($),N=!1;if(!Q){const ne=k||!Ci(this)&&x;(v||ne)&&(N=ct(Gn(H),X),Q=!N),(!ct(u.immediate,p)&&!p||!ct(S.decay,O)||!ct(S.velocity,L))&&(Q=!0)}if(N&&yt(this)&&(u.changed&&!k?Q=!0:Q||this._stop(f)),!P&&((Q||Fe(f))&&(u.values=D.getPayload(),u.toValues=Fe($)?null:F==dn?[1]:Pe(X)),u.immediate!=p&&(u.immediate=p,!p&&!k&&this._set(f)),Q)){const{onRest:ne}=u;q(bf,T=>gs(this,n,T));const w=Be(this,Ln(this,f));kn(this._pendingCalls,w),this._pendingCalls.add(r),u.changed&&W.batchedUpdates(()=>{u.changed=!k,ne?.(w,this),k?Oe(l.onRest,w):u.onStart==null||u.onStart(w,this)})}k&&this._set(H),P?r(tl(n.to,n,this._state,this)):Q?this._start():yt(this)&&!v?this._pendingCalls.add(r):r(el(H))}_focus(t){const n=this.animation;t!==n.to&&(rs(this)&&this._detach(),n.to=t,rs(this)&&this._attach())}_attach(){let t=0;const{to:n}=this.animation;Fe(n)&&(pn(n,this),Xi(n)&&(t=n.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;Fe(t)&&Kn(t,this)}_set(t,n=!0){const r=Ce(t);if(!_.und(r)){const i=Xe(this);if(!i||!ct(r,i.getValue())){const o=Gi(r);!i||i.constructor!=o?bo(this,o.create(r)):i.setValue(r),i&&W.batchedUpdates(()=>{this._onChange(r,n)})}}return Xe(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,Mn(this,"onStart",Be(this,Ln(this,t.to)),this))}_onChange(t,n){n||(this._onStart(),Oe(this.animation.onChange,t,this)),Oe(this.defaultProps.onChange,t,this),super._onChange(t,n)}_start(){const t=this.animation;Xe(this).reset(Ce(t.to)),t.immediate||(t.fromValues=t.values.map(n=>n.lastPosition)),yt(this)||(ps(this,!0),Rn(this)||this._resume())}_resume(){Je.skipAnimation?this.finish():Vr.start(this)}_stop(t,n){if(yt(this)){ps(this,!1);const r=this.animation;q(r.values,o=>{o.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Vn(this,{type:"idle",parent:this});const i=n?cn(this.get()):Be(this.get(),Ln(this,t??r.to));kn(this._pendingCalls,i),r.changed&&(r.changed=!1,Mn(this,"onRest",i,this))}}}function Ln(e,t){const n=Gn(t),r=Gn(e.get());return ct(r,n)}function rl(e,t=e.loop,n=e.to){let r=Oe(t);if(r){const i=r!==!0&&To(r),o=(i||e).reverse,s=!i||i.reset;return jr(fe({},e,{loop:t,default:!1,pause:void 0,to:!o||qi(n)?n:void 0,from:s?e.from:void 0,reset:s},i))}}function jr(e){const{to:t,from:n}=e=To(e),r=new Set;return _.obj(t)&&ms(t,r),_.obj(n)&&ms(n,r),e.keys=r.size?Array.from(r):null,e}function ms(e,t){Ze(e,(n,r)=>n!=null&&t.add(r))}const bf=["onStart","onRest","onChange","onPause","onResume"];function gs(e,t,n){e.animation[n]=t[n]!==Za(t,n)?Ya(t[n],e.key):void 0}function Mn(e,t,...n){var r,i,o,s;(r=(i=e.animation)[t])==null||r.call(i,...n),(o=(s=e.defaultProps)[t])==null||o.call(s,...n)}const yf=["onStart","onChange","onRest"];let $f=1;class Tf{constructor(t,n){this.id=$f++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),t&&this.start(fe({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((n,r)=>t[r]=n.get()),t}set(t){for(const n in t){const r=t[n];_.und(r)||this.springs[n].set(r)}}update(t){return t&&this.queue.push(jr(t)),this}start(t){let{queue:n}=this;return t?n=Pe(t).map(jr):this.queue=[],this._flush?this._flush(this,n):(al(this,n),xf(this,n))}stop(t,n){if(t!==!!t&&(n=t),n){const r=this.springs;q(Pe(n),i=>r[i].stop(!!t))}else qn(this._state,this._lastAsyncId),this.each(r=>r.stop(!!t));return this}pause(t){if(_.und(t))this.start({pause:!0});else{const n=this.springs;q(Pe(t),r=>n[r].pause())}return this}resume(t){if(_.und(t))this.start({pause:!1});else{const n=this.springs;q(Pe(t),r=>n[r].resume())}return this}each(t){Ze(this.springs,t)}_onFrame(){const{onStart:t,onChange:n,onRest:r}=this._events,i=this._active.size>0,o=this._changed.size>0;(i&&!this._started||o&&!this._started)&&(this._started=!0,jn(t,([u,f])=>{f.value=this.get(),u(f,this,this._item)}));const s=!i&&this._started,l=o||s&&r.size?this.get():null;o&&n.size&&jn(n,([u,f])=>{f.value=l,u(f,this,this._item)}),s&&(this._started=!1,jn(r,([u,f])=>{f.value=l,u(f,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;W.onFrame(this._onFrame)}}function xf(e,t){return Promise.all(t.map(n=>il(e,n))).then(n=>wo(e,n))}async function il(e,t,n){const{keys:r,to:i,from:o,loop:s,onRest:l,onResolve:u}=t,f=_.obj(t.default)&&t.default;s&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const m=_.arr(i)||_.fun(i)?i:void 0;m?(t.to=void 0,t.onRest=void 0,f&&(f.onRest=void 0)):q(yf,P=>{const S=t[P];if(_.fun(S)){const O=e._events[P];t[P]=({finished:L,cancelled:D})=>{const k=O.get(S);k?(L||(k.finished=!1),D&&(k.cancelled=!0)):O.set(S,{value:null,finished:L||!1,cancelled:D||!1})},f&&(f[P]=t[P])}});const $=e._state;t.pause===!$.paused?($.paused=t.pause,kn(t.pause?$.pauseQueue:$.resumeQueue)):$.paused&&(t.pause=!0);const g=(r||Object.keys(e.springs)).map(P=>e.springs[P].start(t)),x=t.cancel===!0||Za(t,"cancel")===!0;(m||x&&$.asyncId)&&g.push(Ja(++e._lastAsyncId,{props:t,state:$,actions:{pause:Vi,resume:Vi,start(P,S){x?(qn($,e._lastAsyncId),S(cn(e))):(P.onRest=l,S(tl(m,P,$,e)))}}})),$.paused&&await new Promise(P=>{$.resumeQueue.add(P)});const v=wo(e,await Promise.all(g));if(s&&v.finished&&!(n&&v.noop)){const P=rl(t,s,i);if(P)return al(e,[P]),il(e,P,!0)}return u&&W.batchedUpdates(()=>u(v,e,e.item)),v}function wf(e,t){const n=fe({},e.springs);return t&&q(Pe(t),r=>{_.und(r.keys)&&(r=jr(r)),_.obj(r.to)||(r=fe({},r,{to:void 0})),sl(n,r,i=>ol(i))}),Ef(e,n),n}function Ef(e,t){Ze(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,pn(n,e))})}function ol(e,t){const n=new vf;return n.key=e,t&&pn(n,t),n}function sl(e,t,n){t.keys&&q(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function al(e,t){q(t,n=>{sl(e.springs,n,r=>ol(r,e))})}function Pf(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const _f=["children"],Xr=e=>{let{children:t}=e,n=Pf(e,_f);const r=h.useContext(Ur),i=n.pause||!!r.pause,o=n.immediate||!!r.immediate;n=Xc(()=>({pause:i,immediate:o}),[i,o]);const{Provider:s}=Ur;return an.createElement(s,{value:n},t)},Ur=Sf(Xr,{});Xr.Provider=Ur.Provider;Xr.Consumer=Ur.Consumer;function Sf(e,t){return Object.assign(e,an.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}const Af=()=>{const e=[],t=function(i){qc();const o=[];return q(e,(s,l)=>{if(_.und(i))o.push(s.start());else{const u=n(i,s,l);u&&o.push(s.start(u))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return q(e,r=>r.pause(...arguments)),this},t.resume=function(){return q(e,r=>r.resume(...arguments)),this},t.set=function(r){q(e,i=>i.set(r))},t.start=function(r){const i=[];return q(e,(o,s)=>{if(_.und(r))i.push(o.start());else{const l=this._getProps(r,o,s);l&&i.push(o.start(l))}}),i},t.stop=function(){return q(e,r=>r.stop(...arguments)),this},t.update=function(r){return q(e,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(i,o,s){return _.fun(i)?i(s,o):i};return t._getProps=n,t};let Ee;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(Ee||(Ee={}));function Po(e,t,n){const r=_.fun(t)&&t,{reset:i,sort:o,trail:s=0,expires:l=!0,exitBeforeEnter:u=!1,onDestroyed:f,ref:m,config:$}=r?r():t,g=h.useMemo(()=>r||arguments.length==3?Af():void 0,[]),x=Pe(e),v=[],P=h.useRef(null),S=i?null:P.current;sn(()=>{P.current=v}),Qa(()=>(q(v,T=>{g?.add(T.ctrl),T.ctrl.ref=g}),()=>{q(P.current,T=>{T.expired&&clearTimeout(T.expirationId),ls(T.ctrl,g),T.ctrl.stop(!0)})}));const O=Of(x,r?r():t,S),L=i&&P.current||[];sn(()=>q(L,({ctrl:T,item:V,key:Y})=>{ls(T,g),Oe(f,V,Y)}));const D=[];if(S&&q(S,(T,V)=>{T.expired?(clearTimeout(T.expirationId),L.push(T)):(V=D[V]=O.indexOf(T.key),~V&&(v[V]=T))}),q(x,(T,V)=>{v[V]||(v[V]={key:O[V],item:T,phase:Ee.MOUNT,ctrl:new Tf},v[V].ctrl.item=T)}),D.length){let T=-1;const{leave:V}=r?r():t;q(D,(Y,se)=>{const Z=S[se];~Y?(T=v.indexOf(Z),v[T]=fe({},Z,{item:x[Y]})):V&&v.splice(++T,0,Z)})}_.fun(o)&&v.sort((T,V)=>o(T.item,V.item));let k=-s;const H=qa(),X=$o(t),ee=new Map,p=h.useRef(new Map),F=h.useRef(!1);q(v,(T,V)=>{const Y=T.key,se=T.phase,Z=r?r():t;let me,j,Ue=Oe(Z.delay||0,Y);if(se==Ee.MOUNT)me=Z.enter,j=Ee.ENTER;else{const G=O.indexOf(Y)<0;if(se!=Ee.LEAVE)if(G)me=Z.leave,j=Ee.LEAVE;else if(me=Z.update)j=Ee.UPDATE;else return;else if(!G)me=Z.enter,j=Ee.ENTER;else return}if(me=Oe(me,T.item,V),me=_.obj(me)?To(me):{to:me},!me.config){const G=$||X.config;me.config=Oe(G,T.item,V,j)}k+=s;const _e=fe({},X,{delay:Ue+k,ref:m,immediate:Z.immediate,reset:!1},me);if(j==Ee.ENTER&&_.und(_e.from)){const G=r?r():t,Ke=_.und(G.initial)||S?G.from:G.initial;_e.from=Oe(Ke,T.item,V)}const{onResolve:Ut}=_e;_e.onResolve=G=>{Oe(Ut,G);const Ke=P.current,Se=Ke.find($e=>$e.key===Y);if(Se&&!(G.cancelled&&Se.phase!=Ee.UPDATE)&&Se.ctrl.idle){const $e=Ke.every(Re=>Re.ctrl.idle);if(Se.phase==Ee.LEAVE){const Re=Oe(l,Se.item);if(Re!==!1){const et=Re===!0?0:Re;if(Se.expired=!0,!$e&&et>0){et<=2147483647&&(Se.expirationId=setTimeout(H,et));return}}}$e&&Ke.some(Re=>Re.expired)&&(p.current.delete(Se),u&&(F.current=!0),H())}};const dt=wf(T.ctrl,_e);j===Ee.LEAVE&&u?p.current.set(T,{phase:j,springs:dt,payload:_e}):ee.set(T,{phase:j,springs:dt,payload:_e})});const Q=h.useContext(Xr),N=Jc(Q),ne=Q!==N&&ff(Q);sn(()=>{ne&&q(v,T=>{T.ctrl.start({default:Q})})},[Q]),q(ee,(T,V)=>{if(p.current.size){const Y=v.findIndex(se=>se.key===V.key);v.splice(Y,1)}}),sn(()=>{q(p.current.size?p.current:ee,({phase:T,payload:V},Y)=>{const{ctrl:se}=Y;Y.phase=T,g?.add(se),ne&&T==Ee.ENTER&&se.start({default:Q}),V&&(df(se,V.ref),(se.ref||g)&&!F.current?se.update(V):(se.start(V),F.current&&(F.current=!1)))})},i?void 0:n);const w=T=>an.createElement(an.Fragment,null,v.map((V,Y)=>{const{springs:se}=ee.get(V)||V.ctrl,Z=T(fe({},se),V.item,V,Y);return Z&&Z.type?an.createElement(Z.type,fe({},Z.props,{key:_.str(V.key)||_.num(V.key)?V.key:V.ctrl.id,ref:Z.ref})):Z}));return g?[w,g]:w}let Cf=1;function Of(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(o=>{const s=r&&r.find(l=>l.item===o&&l.phase!==Ee.LEAVE&&!i.has(l));return s?(i.add(s),s.key):Cf++})}return _.und(n)?e:_.fun(n)?e.map(n):Pe(n)}class Rf extends Eo{constructor(t,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=Bn(...n);const r=this._get(),i=Gi(r);bo(this,i.create(r))}advance(t){const n=this._get(),r=this.get();ct(n,r)||(Xe(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&vs(this._active)&&Oi(this)}_get(){const t=_.arr(this.source)?this.source.map(Ce):Pe(Ce(this.source));return this.calc(...t)}_start(){this.idle&&!vs(this._active)&&(this.idle=!1,q(qr(this),t=>{t.done=!1}),Je.skipAnimation?(W.batchedUpdates(()=>this.advance()),Oi(this)):Vr.start(this))}_attach(){let t=1;q(Pe(this.source),n=>{Fe(n)&&pn(n,this),Xi(n)&&(n.idle||this._active.add(n),t=Math.max(t,n.priority+1))}),this.priority=t,this._start()}_detach(){q(Pe(this.source),t=>{Fe(t)&&Kn(t,this)}),this._active.clear(),Oi(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=Pe(this.source).reduce((n,r)=>Math.max(n,(Xi(r)?r.priority:0)+1),0))}}function Lf(e){return e.idle!==!1}function vs(e){return!e.size||Array.from(e).every(Lf)}function Oi(e){e.idle||(e.idle=!0,q(qr(e),t=>{t.done=!0}),Vn(e,{type:"idle",parent:e}))}Je.assign({createStringInterpolator:Wa,to:(e,t)=>new Rf(e,t)});function _o(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Mf=["style","children","scrollTop","scrollLeft","viewBox"],ll=/^--/;function If(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!ll.test(e)&&!(zn.hasOwnProperty(e)&&zn[e])?t+"px":(""+t).trim()}const bs={};function Nf(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",r=t,{style:i,children:o,scrollTop:s,scrollLeft:l,viewBox:u}=r,f=_o(r,Mf),m=Object.values(f),$=Object.keys(f).map(g=>n||e.hasAttribute(g)?g:bs[g]||(bs[g]=g.replace(/([A-Z])/g,x=>"-"+x.toLowerCase())));o!==void 0&&(e.textContent=o);for(let g in i)if(i.hasOwnProperty(g)){const x=If(g,i[g]);ll.test(g)?e.style.setProperty(g,x):e.style[g]=x}$.forEach((g,x)=>{e.setAttribute(g,m[x])}),s!==void 0&&(e.scrollTop=s),l!==void 0&&(e.scrollLeft=l),u!==void 0&&e.setAttribute("viewBox",u)}let zn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const kf=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Df=["Webkit","Ms","Moz","O"];zn=Object.keys(zn).reduce((e,t)=>(Df.forEach(n=>e[kf(n,t)]=e[t]),e),zn);const Ff=["x","y","z"],jf=/^(matrix|translate|scale|rotate|skew)/,Uf=/^(translate)/,Hf=/^(rotate|skew)/,Ri=(e,t)=>_.num(e)&&e!==0?e+t:e,_r=(e,t)=>_.arr(e)?e.every(n=>_r(n,t)):_.num(e)?e===t:parseFloat(e)===t;class zf extends Qr{constructor(t){let{x:n,y:r,z:i}=t,o=_o(t,Ff);const s=[],l=[];(n||r||i)&&(s.push([n||0,r||0,i||0]),l.push(u=>[`translate3d(${u.map(f=>Ri(f,"px")).join(",")})`,_r(u,0)])),Ze(o,(u,f)=>{if(f==="transform")s.push([u||""]),l.push(m=>[m,m===""]);else if(jf.test(f)){if(delete o[f],_.und(u))return;const m=Uf.test(f)?"px":Hf.test(f)?"deg":"";s.push(Pe(u)),l.push(f==="rotate3d"?([$,g,x,v])=>[`rotate3d(${$},${g},${x},${Ri(v,m)})`,_r(v,0)]:$=>[`${f}(${$.map(g=>Ri(g,m)).join(",")})`,_r($,f.startsWith("scale")?1:0)])}}),s.length&&(o.transform=new Bf(s,l)),super(o)}}class Bf extends Ba{constructor(t,n){super(),this._value=null,this.inputs=t,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let t="",n=!0;return q(this.inputs,(r,i)=>{const o=Ce(r[0]),[s,l]=this.transforms[i](_.arr(o)?o:r.map(Ce));t+=" "+s,n=n&&l}),n?"none":t}observerAdded(t){t==1&&q(this.inputs,n=>q(n,r=>Fe(r)&&pn(r,this)))}observerRemoved(t){t==0&&q(this.inputs,n=>q(n,r=>Fe(r)&&Kn(r,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Vn(this,t)}}const Vf=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Kf=["scrollTop","scrollLeft"];Je.assign({batchedUpdates:Ts.unstable_batchedUpdates,createStringInterpolator:Wa,colors:Pc});const Wf=sf(Vf,{applyAnimatedValues:Nf,createAnimatedStyle:e=>new zf(e),getComponentProps:e=>_o(e,Kf)}),So=Wf.animated,Gf=({isVisible:e,children:t})=>Po(e,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((r,i)=>i&&I.jsx(So.div,{style:r,children:t})),qf="fixed",Qf=({isVisible:e,children:t})=>Po(e,{from:{opacity:0,position:qf,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1},leave:{opacity:0},config:xo.stiff})((r,i)=>i&&I.jsx(So.div,{style:r,children:t})),Xf="fixed",Yf=({isVisible:e,children:t})=>Po(e,{from:{opacity:0,scale:.75,position:Xf,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1,scale:1},leave:{opacity:0,scale:.75},config:xo.stiff})((r,i)=>i&&I.jsx(So.div,{style:r,children:t})),Zf=e=>{const{children:t}=e,n=h.useRef(null),{overlayProps:r,underlayProps:i}=zs(e,n),{modalProps:o}=Vs(),{dialogProps:s}=_a(e,n);return I.jsx("div",{...i,children:I.jsx(ks,{contain:!0,restoreFocus:!0,autoFocus:!0,children:I.jsx("div",{...r,...s,...o,ref:n,children:t})})})},ul=e=>{const[t,n]=h.useState(!1),{children:r,state:i,onCloseCallBack:o,transitionComponent:s=Yf}=e,l=h.useCallback(()=>{i.close(),o?.()},[i.close,o]);return h.useEffect(()=>{!i.isOpen&&t||n(!0)},[i.isOpen]),t?I.jsx(Bs,{children:I.jsx(s,{isVisible:i.isOpen,children:I.jsx(Zf,{isOpen:i.isOpen,onClose:l,isDismissable:!0,children:r})})}):null},Jf=e=>{const{children:t,closeBtnRender:n,themeName:r="sidePanel",tokens:i,customTheme:o}=e,s=ye(`${r}.wrapper`,i,o),l=ye(`${r}.container`,i,o),u=ye(`${r}.innerContainer`,i,o),{overlayState:f}=bc();return I.jsx(ul,{state:f,transitionComponent:Qf,children:I.jsxs(Ra,{className:s,children:[n&&n(),I.jsx(Gf,{isVisible:f.isOpen,children:I.jsx("div",{className:l,children:I.jsx("div",{className:u,children:t})})})]})})},ed=h.memo(Jf),td=e=>{const{children:t,thumbnailContent:n,isOpen:r,onOpenCallBack:i,onCloseCallBack:o,themeName:s="lightBox",tokens:l,customTheme:u}=e,{state:f,openButtonRef:m,openButtonProps:$,closeButtonProps:g,closeButtonRef:x}=vc(r,i,o),v=ye(`${s}.container`,l,u);return I.jsxs("div",{children:[I.jsxs("div",{ref:m,...$,...r?{tabIndex:-1}:{},children:[I.jsx("span",{className:"sr-only",children:"Open Dialog"}),n]}),I.jsx(ul,{onCloseCallBack:o,state:f,children:I.jsxs("div",{children:[I.jsx(Ca,{themeName:`${s}.closeBtn`,type:"button",...g,ref:x,children:I.jsx(Xn,{icon:"CloseBtn"})}),I.jsx("div",{className:v,children:t})]})})]})},nd=h.forwardRef((e,t)=>{const{isOpen:n,onClose:r,children:i,style:o}=e,{overlayProps:s}=zs({isOpen:n,onClose:r,shouldCloseOnBlur:!1,isDismissable:!1},t),{modalProps:l}=Vs(),{dialogProps:u}=_a({},t);return I.jsx(ks,{contain:!0,restoreFocus:!0,children:I.jsxs("div",{...Ye(s,l,u),ref:t,style:{background:"white",color:"black",padding:30,...o},children:[i,I.jsx(nc,{onDismiss:r})]})})});function rd({children:e,buttonProps:t,placement:n="right",offset:r=5}){const i=Ma({}),o=h.useRef(null),s=h.useRef(null),{triggerProps:l,overlayProps:u}=Yu({type:"dialog"},i,o),{overlayProps:f}=qu({targetRef:o,overlayRef:s,placement:n,offset:r,isOpen:i.isOpen}),{onPress:m,...$}=l;return I.jsxs(I.Fragment,{children:[I.jsx(Ca,{handlePress:m,...t,...$,ref:o,children:"Open Popover"}),i.isOpen&&I.jsx(Bs,{children:I.jsx(nd,{...u,...f,ref:s,isOpen:i.isOpen,onClose:i.close,children:e})})]})}var Dn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Li={exports:{}};/*! @license DOMPurify 2.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.5/LICENSE */var ys;function $s(){return ys||(ys=1,function(e,t){(function(n,r){e.exports=r()})(Dn,function(){function n(C){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},n(C)}function r(C,R){return r=Object.setPrototypeOf||function(z,ae){return z.__proto__=ae,z},r(C,R)}function i(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function o(C,R,U){return i()?o=Reflect.construct:o=function(ae,Le,He){var Me=[null];Me.push.apply(Me,Le);var We=Function.bind.apply(ae,Me),pt=new We;return He&&r(pt,He.prototype),pt},o.apply(null,arguments)}function s(C){return l(C)||u(C)||f(C)||$()}function l(C){if(Array.isArray(C))return m(C)}function u(C){if(typeof Symbol<"u"&&C[Symbol.iterator]!=null||C["@@iterator"]!=null)return Array.from(C)}function f(C,R){if(C){if(typeof C=="string")return m(C,R);var U=Object.prototype.toString.call(C).slice(8,-1);if(U==="Object"&&C.constructor&&(U=C.constructor.name),U==="Map"||U==="Set")return Array.from(C);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return m(C,R)}}function m(C,R){(R==null||R>C.length)&&(R=C.length);for(var U=0,z=new Array(R);U<R;U++)z[U]=C[U];return z}function $(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=Object.hasOwnProperty,x=Object.setPrototypeOf,v=Object.isFrozen,P=Object.getPrototypeOf,S=Object.getOwnPropertyDescriptor,O=Object.freeze,L=Object.seal,D=Object.create,k=typeof Reflect<"u"&&Reflect,H=k.apply,X=k.construct;H||(H=function(R,U,z){return R.apply(U,z)}),O||(O=function(R){return R}),L||(L=function(R){return R}),X||(X=function(R,U){return o(R,s(U))});var ee=Z(Array.prototype.forEach),p=Z(Array.prototype.pop),F=Z(Array.prototype.push),Q=Z(String.prototype.toLowerCase),N=Z(String.prototype.toString),ne=Z(String.prototype.match),w=Z(String.prototype.replace),T=Z(String.prototype.indexOf),V=Z(String.prototype.trim),Y=Z(RegExp.prototype.test),se=me(TypeError);function Z(C){return function(R){for(var U=arguments.length,z=new Array(U>1?U-1:0),ae=1;ae<U;ae++)z[ae-1]=arguments[ae];return H(C,R,z)}}function me(C){return function(){for(var R=arguments.length,U=new Array(R),z=0;z<R;z++)U[z]=arguments[z];return X(C,U)}}function j(C,R,U){U=U||Q,x&&x(C,null);for(var z=R.length;z--;){var ae=R[z];if(typeof ae=="string"){var Le=U(ae);Le!==ae&&(v(R)||(R[z]=Le),ae=Le)}C[ae]=!0}return C}function Ue(C){var R=D(null),U;for(U in C)H(g,C,[U])===!0&&(R[U]=C[U]);return R}function _e(C,R){for(;C!==null;){var U=S(C,R);if(U){if(U.get)return Z(U.get);if(typeof U.value=="function")return Z(U.value)}C=P(C)}function z(ae){return console.warn("fallback value for",ae),null}return z}var Ut=O(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),dt=O(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),G=O(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ke=O(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Se=O(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),$e=O(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Re=O(["#text"]),et=O(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Ht=O(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),zt=O(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Pt=O(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Jn=L(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Jr=L(/<%[\w\W]*|[\w\W]*%>/gm),ei=L(/\${[\w\W]*}/gm),ti=L(/^data-[\-\w.\u00B7-\uFFFF]/),ni=L(/^aria-[\-\w]+$/),ri=L(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ii=L(/^(?:\w+script|data):/i),oi=L(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),si=L(/^html$/i),ai=function(){return typeof window>"u"?null:window},li=function(R,U){if(n(R)!=="object"||typeof R.createPolicy!="function")return null;var z=null,ae="data-tt-policy-suffix";U.currentScript&&U.currentScript.hasAttribute(ae)&&(z=U.currentScript.getAttribute(ae));var Le="dompurify"+(z?"#"+z:"");try{return R.createPolicy(Le,{createHTML:function(Me){return Me},createScriptURL:function(Me){return Me}})}catch{return console.warn("TrustedTypes policy "+Le+" could not be created."),null}};function er(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ai(),R=function(c){return er(c)};if(R.version="2.4.5",R.removed=[],!C||!C.document||C.document.nodeType!==9)return R.isSupported=!1,R;var U=C.document,z=C.document,ae=C.DocumentFragment,Le=C.HTMLTemplateElement,He=C.Node,Me=C.Element,We=C.NodeFilter,pt=C.NamedNodeMap,tr=pt===void 0?C.NamedNodeMap||C.MozNamedAttrMap:pt,ci=C.HTMLFormElement,tt=C.DOMParser,_t=C.trustedTypes,Bt=Me.prototype,fi=_e(Bt,"cloneNode"),mn=_e(Bt,"nextSibling"),St=_e(Bt,"childNodes"),At=_e(Bt,"parentNode");if(typeof Le=="function"){var Ct=z.createElement("template");Ct.content&&Ct.content.ownerDocument&&(z=Ct.content.ownerDocument)}var we=li(_t,U),nt=we?we.createHTML(""):"",Vt=z,gn=Vt.implementation,di=Vt.createNodeIterator,pi=Vt.createDocumentFragment,hi=Vt.getElementsByTagName,nr=U.importNode,Kt={};try{Kt=Ue(z).documentMode?z.documentMode:{}}catch{}var ge={};R.isSupported=typeof At=="function"&&gn&&typeof gn.createHTMLDocument<"u"&&Kt!==9;var vn=Jn,bn=Jr,yn=ei,mi=ti,gi=ni,ze=ii,rr=oi,$n=ri,de=null,ir=j({},[].concat(s(Ut),s(dt),s(G),s(Se),s(Re))),pe=null,Ge=j({},[].concat(s(et),s(Ht),s(zt),s(Pt))),ue=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ot=null,Tn=null,or=!0,xn=!0,Rt=!1,sr=!0,ht=!1,Te=!1,wn=!1,En=!1,mt=!1,Wt=!1,Gt=!1,ar=!0,Lt=!1,vi="user-content-",rt=!0,gt=!1,it={},vt=null,lr=j({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ur=null,cr=j({},["audio","video","img","source","image","track"]),qt=null,fr=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qt="http://www.w3.org/1998/Math/MathML",Mt="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml",Ie=Ae,Pn=!1,_n=null,qe=j({},[Qt,Mt,Ae],N),ot,bi=["application/xhtml+xml","text/html"],yi="text/html",he,bt=null,st=z.createElement("form"),Sn=function(c){return c instanceof RegExp||c instanceof Function},An=function(c){bt&&bt===c||((!c||n(c)!=="object")&&(c={}),c=Ue(c),ot=bi.indexOf(c.PARSER_MEDIA_TYPE)===-1?ot=yi:ot=c.PARSER_MEDIA_TYPE,he=ot==="application/xhtml+xml"?N:Q,de="ALLOWED_TAGS"in c?j({},c.ALLOWED_TAGS,he):ir,pe="ALLOWED_ATTR"in c?j({},c.ALLOWED_ATTR,he):Ge,_n="ALLOWED_NAMESPACES"in c?j({},c.ALLOWED_NAMESPACES,N):qe,qt="ADD_URI_SAFE_ATTR"in c?j(Ue(fr),c.ADD_URI_SAFE_ATTR,he):fr,ur="ADD_DATA_URI_TAGS"in c?j(Ue(cr),c.ADD_DATA_URI_TAGS,he):cr,vt="FORBID_CONTENTS"in c?j({},c.FORBID_CONTENTS,he):lr,Ot="FORBID_TAGS"in c?j({},c.FORBID_TAGS,he):{},Tn="FORBID_ATTR"in c?j({},c.FORBID_ATTR,he):{},it="USE_PROFILES"in c?c.USE_PROFILES:!1,or=c.ALLOW_ARIA_ATTR!==!1,xn=c.ALLOW_DATA_ATTR!==!1,Rt=c.ALLOW_UNKNOWN_PROTOCOLS||!1,sr=c.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ht=c.SAFE_FOR_TEMPLATES||!1,Te=c.WHOLE_DOCUMENT||!1,mt=c.RETURN_DOM||!1,Wt=c.RETURN_DOM_FRAGMENT||!1,Gt=c.RETURN_TRUSTED_TYPE||!1,En=c.FORCE_BODY||!1,ar=c.SANITIZE_DOM!==!1,Lt=c.SANITIZE_NAMED_PROPS||!1,rt=c.KEEP_CONTENT!==!1,gt=c.IN_PLACE||!1,$n=c.ALLOWED_URI_REGEXP||$n,Ie=c.NAMESPACE||Ae,ue=c.CUSTOM_ELEMENT_HANDLING||{},c.CUSTOM_ELEMENT_HANDLING&&Sn(c.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ue.tagNameCheck=c.CUSTOM_ELEMENT_HANDLING.tagNameCheck),c.CUSTOM_ELEMENT_HANDLING&&Sn(c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ue.attributeNameCheck=c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),c.CUSTOM_ELEMENT_HANDLING&&typeof c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ue.allowCustomizedBuiltInElements=c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ht&&(xn=!1),Wt&&(mt=!0),it&&(de=j({},s(Re)),pe=[],it.html===!0&&(j(de,Ut),j(pe,et)),it.svg===!0&&(j(de,dt),j(pe,Ht),j(pe,Pt)),it.svgFilters===!0&&(j(de,G),j(pe,Ht),j(pe,Pt)),it.mathMl===!0&&(j(de,Se),j(pe,zt),j(pe,Pt))),c.ADD_TAGS&&(de===ir&&(de=Ue(de)),j(de,c.ADD_TAGS,he)),c.ADD_ATTR&&(pe===Ge&&(pe=Ue(pe)),j(pe,c.ADD_ATTR,he)),c.ADD_URI_SAFE_ATTR&&j(qt,c.ADD_URI_SAFE_ATTR,he),c.FORBID_CONTENTS&&(vt===lr&&(vt=Ue(vt)),j(vt,c.FORBID_CONTENTS,he)),rt&&(de["#text"]=!0),Te&&j(de,["html","head","body"]),de.table&&(j(de,["tbody"]),delete Ot.tbody),O&&O(c),bt=c)},It=j({},["mi","mo","mn","ms","mtext"]),dr=j({},["foreignobject","desc","title","annotation-xml"]),Cn=j({},["title","style","font","a","script"]),Xt=j({},dt);j(Xt,G),j(Xt,Ke);var Yt=j({},Se);j(Yt,$e);var pr=function(c){var y=At(c);(!y||!y.tagName)&&(y={namespaceURI:Ie,tagName:"template"});var E=Q(c.tagName),B=Q(y.tagName);return _n[c.namespaceURI]?c.namespaceURI===Mt?y.namespaceURI===Ae?E==="svg":y.namespaceURI===Qt?E==="svg"&&(B==="annotation-xml"||It[B]):!!Xt[E]:c.namespaceURI===Qt?y.namespaceURI===Ae?E==="math":y.namespaceURI===Mt?E==="math"&&dr[B]:!!Yt[E]:c.namespaceURI===Ae?y.namespaceURI===Mt&&!dr[B]||y.namespaceURI===Qt&&!It[B]?!1:!Yt[E]&&(Cn[E]||!Xt[E]):!!(ot==="application/xhtml+xml"&&_n[c.namespaceURI]):!1},ke=function(c){F(R.removed,{element:c});try{c.parentNode.removeChild(c)}catch{try{c.outerHTML=nt}catch{c.remove()}}},at=function(c,y){try{F(R.removed,{attribute:y.getAttributeNode(c),from:y})}catch{F(R.removed,{attribute:null,from:y})}if(y.removeAttribute(c),c==="is"&&!pe[c])if(mt||Wt)try{ke(y)}catch{}else try{y.setAttribute(c,"")}catch{}},On=function(c){var y,E;if(En)c="<remove></remove>"+c;else{var B=ne(c,/^[\r\n\t ]+/);E=B&&B[0]}ot==="application/xhtml+xml"&&Ie===Ae&&(c='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+c+"</body></html>");var oe=we?we.createHTML(c):c;if(Ie===Ae)try{y=new tt().parseFromString(oe,ot)}catch{}if(!y||!y.documentElement){y=gn.createDocument(Ie,"template",null);try{y.documentElement.innerHTML=Pn?nt:oe}catch{}}var J=y.body||y.documentElement;return c&&E&&J.insertBefore(z.createTextNode(E),J.childNodes[0]||null),Ie===Ae?hi.call(y,Te?"html":"body")[0]:Te?y.documentElement:J},hr=function(c){return di.call(c.ownerDocument||c,c,We.SHOW_ELEMENT|We.SHOW_COMMENT|We.SHOW_TEXT,null,!1)},$i=function(c){return c instanceof ci&&(typeof c.nodeName!="string"||typeof c.textContent!="string"||typeof c.removeChild!="function"||!(c.attributes instanceof tr)||typeof c.removeAttribute!="function"||typeof c.setAttribute!="function"||typeof c.namespaceURI!="string"||typeof c.insertBefore!="function"||typeof c.hasChildNodes!="function")},Nt=function(c){return n(He)==="object"?c instanceof He:c&&n(c)==="object"&&typeof c.nodeType=="number"&&typeof c.nodeName=="string"},a=function(c,y,E){ge[c]&&ee(ge[c],function(B){B.call(R,y,E,bt)})},d=function(c){var y;if(a("beforeSanitizeElements",c,null),$i(c)||Y(/[\u0080-\uFFFF]/,c.nodeName))return ke(c),!0;var E=he(c.nodeName);if(a("uponSanitizeElement",c,{tagName:E,allowedTags:de}),c.hasChildNodes()&&!Nt(c.firstElementChild)&&(!Nt(c.content)||!Nt(c.content.firstElementChild))&&Y(/<[/\w]/g,c.innerHTML)&&Y(/<[/\w]/g,c.textContent)||E==="select"&&Y(/<template/i,c.innerHTML))return ke(c),!0;if(!de[E]||Ot[E]){if(!Ot[E]&&M(E)&&(ue.tagNameCheck instanceof RegExp&&Y(ue.tagNameCheck,E)||ue.tagNameCheck instanceof Function&&ue.tagNameCheck(E)))return!1;if(rt&&!vt[E]){var B=At(c)||c.parentNode,oe=St(c)||c.childNodes;if(oe&&B)for(var J=oe.length,te=J-1;te>=0;--te)B.insertBefore(fi(oe[te],!0),mn(c))}return ke(c),!0}return c instanceof Me&&!pr(c)||(E==="noscript"||E==="noembed")&&Y(/<\/no(script|embed)/i,c.innerHTML)?(ke(c),!0):(ht&&c.nodeType===3&&(y=c.textContent,y=w(y,vn," "),y=w(y,bn," "),y=w(y,yn," "),c.textContent!==y&&(F(R.removed,{element:c.cloneNode()}),c.textContent=y)),a("afterSanitizeElements",c,null),!1)},b=function(c,y,E){if(ar&&(y==="id"||y==="name")&&(E in z||E in st))return!1;if(!(xn&&!Tn[y]&&Y(mi,y))){if(!(or&&Y(gi,y))){if(!pe[y]||Tn[y]){if(!(M(c)&&(ue.tagNameCheck instanceof RegExp&&Y(ue.tagNameCheck,c)||ue.tagNameCheck instanceof Function&&ue.tagNameCheck(c))&&(ue.attributeNameCheck instanceof RegExp&&Y(ue.attributeNameCheck,y)||ue.attributeNameCheck instanceof Function&&ue.attributeNameCheck(y))||y==="is"&&ue.allowCustomizedBuiltInElements&&(ue.tagNameCheck instanceof RegExp&&Y(ue.tagNameCheck,E)||ue.tagNameCheck instanceof Function&&ue.tagNameCheck(E))))return!1}else if(!qt[y]){if(!Y($n,w(E,rr,""))){if(!((y==="src"||y==="xlink:href"||y==="href")&&c!=="script"&&T(E,"data:")===0&&ur[c])){if(!(Rt&&!Y(ze,w(E,rr,"")))){if(E)return!1}}}}}}return!0},M=function(c){return c.indexOf("-")>0},re=function(c){var y,E,B,oe;a("beforeSanitizeAttributes",c,null);var J=c.attributes;if(J){var te={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};for(oe=J.length;oe--;){y=J[oe];var be=y,ie=be.name,Ne=be.namespaceURI;if(E=ie==="value"?y.value:V(y.value),B=he(ie),te.attrName=B,te.attrValue=E,te.keepAttr=!0,te.forceKeepAttr=void 0,a("uponSanitizeAttribute",c,te),E=te.attrValue,!te.forceKeepAttr&&(at(ie,c),!!te.keepAttr)){if(!sr&&Y(/\/>/i,E)){at(ie,c);continue}ht&&(E=w(E,vn," "),E=w(E,bn," "),E=w(E,yn," "));var Qe=he(c.nodeName);if(b(Qe,B,E)){if(Lt&&(B==="id"||B==="name")&&(at(ie,c),E=vi+E),we&&n(_t)==="object"&&typeof _t.getAttributeType=="function"&&!Ne)switch(_t.getAttributeType(Qe,B)){case"TrustedHTML":E=we.createHTML(E);break;case"TrustedScriptURL":E=we.createScriptURL(E);break}try{Ne?c.setAttributeNS(Ne,ie,E):c.setAttribute(ie,E),p(R.removed)}catch{}}}}a("afterSanitizeAttributes",c,null)}},K=function A(c){var y,E=hr(c);for(a("beforeSanitizeShadowDOM",c,null);y=E.nextNode();)a("uponSanitizeShadowNode",y,null),!d(y)&&(y.content instanceof ae&&A(y.content),re(y));a("afterSanitizeShadowDOM",c,null)};return R.sanitize=function(A){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y,E,B,oe,J;if(Pn=!A,Pn&&(A="<!-->"),typeof A!="string"&&!Nt(A)){if(typeof A.toString!="function")throw se("toString is not a function");if(A=A.toString(),typeof A!="string")throw se("dirty is not a string, aborting")}if(!R.isSupported){if(n(C.toStaticHTML)==="object"||typeof C.toStaticHTML=="function"){if(typeof A=="string")return C.toStaticHTML(A);if(Nt(A))return C.toStaticHTML(A.outerHTML)}return A}if(wn||An(c),R.removed=[],typeof A=="string"&&(gt=!1),gt){if(A.nodeName){var te=he(A.nodeName);if(!de[te]||Ot[te])throw se("root node is forbidden and cannot be sanitized in-place")}}else if(A instanceof He)y=On("<!---->"),E=y.ownerDocument.importNode(A,!0),E.nodeType===1&&E.nodeName==="BODY"||E.nodeName==="HTML"?y=E:y.appendChild(E);else{if(!mt&&!ht&&!Te&&A.indexOf("<")===-1)return we&&Gt?we.createHTML(A):A;if(y=On(A),!y)return mt?null:Gt?nt:""}y&&En&&ke(y.firstChild);for(var be=hr(gt?A:y);B=be.nextNode();)B.nodeType===3&&B===oe||d(B)||(B.content instanceof ae&&K(B.content),re(B),oe=B);if(oe=null,gt)return A;if(mt){if(Wt)for(J=pi.call(y.ownerDocument);y.firstChild;)J.appendChild(y.firstChild);else J=y;return(pe.shadowroot||pe.shadowrootmod)&&(J=nr.call(U,J,!0)),J}var ie=Te?y.outerHTML:y.innerHTML;return Te&&de["!doctype"]&&y.ownerDocument&&y.ownerDocument.doctype&&y.ownerDocument.doctype.name&&Y(si,y.ownerDocument.doctype.name)&&(ie="<!DOCTYPE "+y.ownerDocument.doctype.name+`>
3
- `+ie),ht&&(ie=w(ie,vn," "),ie=w(ie,bn," "),ie=w(ie,yn," ")),we&&Gt?we.createHTML(ie):ie},R.setConfig=function(A){An(A),wn=!0},R.clearConfig=function(){bt=null,wn=!1},R.isValidAttribute=function(A,c,y){bt||An({});var E=he(A),B=he(c);return b(E,B,y)},R.addHook=function(A,c){typeof c=="function"&&(ge[A]=ge[A]||[],F(ge[A],c))},R.removeHook=function(A){if(ge[A])return p(ge[A])},R.removeHooks=function(A){ge[A]&&(ge[A]=[])},R.removeAllHooks=function(){ge={}},R}var ui=er();return ui})}(Li)),Li.exports}var id=window.DOMPurify||(window.DOMPurify=$s().default||$s());const od=cl(id),sd=({content:e,themeName:t="wysiwyg",...n})=>I.jsx(Es,{...n,themeName:t,dangerouslySetInnerHTML:{__html:od.sanitize(e,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling"]})}});var Hr={exports:{}};Hr.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,l="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",m="[object Boolean]",$="[object Date]",g="[object Error]",x="[object Function]",v="[object GeneratorFunction]",P="[object Map]",S="[object Number]",O="[object Null]",L="[object Object]",D="[object Promise]",k="[object Proxy]",H="[object RegExp]",X="[object Set]",ee="[object String]",p="[object Symbol]",F="[object Undefined]",Q="[object WeakMap]",N="[object ArrayBuffer]",ne="[object DataView]",w="[object Float32Array]",T="[object Float64Array]",V="[object Int8Array]",Y="[object Int16Array]",se="[object Int32Array]",Z="[object Uint8Array]",me="[object Uint8ClampedArray]",j="[object Uint16Array]",Ue="[object Uint32Array]",_e=/[\\^$.*+?()[\]{}|]/g,Ut=/^\[object .+?Constructor\]$/,dt=/^(?:0|[1-9]\d*)$/,G={};G[w]=G[T]=G[V]=G[Y]=G[se]=G[Z]=G[me]=G[j]=G[Ue]=!0,G[l]=G[u]=G[N]=G[m]=G[ne]=G[$]=G[g]=G[x]=G[P]=G[S]=G[L]=G[H]=G[X]=G[ee]=G[Q]=!1;var Ke=typeof Dn=="object"&&Dn&&Dn.Object===Object&&Dn,Se=typeof self=="object"&&self&&self.Object===Object&&self,$e=Ke||Se||Function("return this")(),Re=t&&!t.nodeType&&t,et=Re&&!0&&e&&!e.nodeType&&e,Ht=et&&et.exports===Re,zt=Ht&&Ke.process,Pt=function(){try{return zt&&zt.binding&&zt.binding("util")}catch{}}(),Jn=Pt&&Pt.isTypedArray;function Jr(a,d){for(var b=-1,M=a==null?0:a.length,re=0,K=[];++b<M;){var A=a[b];d(A,b,a)&&(K[re++]=A)}return K}function ei(a,d){for(var b=-1,M=d.length,re=a.length;++b<M;)a[re+b]=d[b];return a}function ti(a,d){for(var b=-1,M=a==null?0:a.length;++b<M;)if(d(a[b],b,a))return!0;return!1}function ni(a,d){for(var b=-1,M=Array(a);++b<a;)M[b]=d(b);return M}function ri(a){return function(d){return a(d)}}function ii(a,d){return a.has(d)}function oi(a,d){return a?.[d]}function si(a){var d=-1,b=Array(a.size);return a.forEach(function(M,re){b[++d]=[re,M]}),b}function ai(a,d){return function(b){return a(d(b))}}function li(a){var d=-1,b=Array(a.size);return a.forEach(function(M){b[++d]=M}),b}var er=Array.prototype,ui=Function.prototype,C=Object.prototype,R=$e["__core-js_shared__"],U=ui.toString,z=C.hasOwnProperty,ae=function(){var a=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Le=C.toString,He=RegExp("^"+U.call(z).replace(_e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=Ht?$e.Buffer:void 0,We=$e.Symbol,pt=$e.Uint8Array,tr=C.propertyIsEnumerable,ci=er.splice,tt=We?We.toStringTag:void 0,_t=Object.getOwnPropertySymbols,Bt=Me?Me.isBuffer:void 0,fi=ai(Object.keys,Object),mn=Ie($e,"DataView"),St=Ie($e,"Map"),At=Ie($e,"Promise"),Ct=Ie($e,"Set"),we=Ie($e,"WeakMap"),nt=Ie(Object,"create"),Vt=st(mn),gn=st(St),di=st(At),pi=st(Ct),hi=st(we),nr=We?We.prototype:void 0,Kt=nr?nr.valueOf:void 0;function ge(a){var d=-1,b=a==null?0:a.length;for(this.clear();++d<b;){var M=a[d];this.set(M[0],M[1])}}function vn(){this.__data__=nt?nt(null):{},this.size=0}function bn(a){var d=this.has(a)&&delete this.__data__[a];return this.size-=d?1:0,d}function yn(a){var d=this.__data__;if(nt){var b=d[a];return b===r?void 0:b}return z.call(d,a)?d[a]:void 0}function mi(a){var d=this.__data__;return nt?d[a]!==void 0:z.call(d,a)}function gi(a,d){var b=this.__data__;return this.size+=this.has(a)?0:1,b[a]=nt&&d===void 0?r:d,this}ge.prototype.clear=vn,ge.prototype.delete=bn,ge.prototype.get=yn,ge.prototype.has=mi,ge.prototype.set=gi;function ze(a){var d=-1,b=a==null?0:a.length;for(this.clear();++d<b;){var M=a[d];this.set(M[0],M[1])}}function rr(){this.__data__=[],this.size=0}function $n(a){var d=this.__data__,b=Lt(d,a);if(b<0)return!1;var M=d.length-1;return b==M?d.pop():ci.call(d,b,1),--this.size,!0}function de(a){var d=this.__data__,b=Lt(d,a);return b<0?void 0:d[b][1]}function ir(a){return Lt(this.__data__,a)>-1}function pe(a,d){var b=this.__data__,M=Lt(b,a);return M<0?(++this.size,b.push([a,d])):b[M][1]=d,this}ze.prototype.clear=rr,ze.prototype.delete=$n,ze.prototype.get=de,ze.prototype.has=ir,ze.prototype.set=pe;function Ge(a){var d=-1,b=a==null?0:a.length;for(this.clear();++d<b;){var M=a[d];this.set(M[0],M[1])}}function ue(){this.size=0,this.__data__={hash:new ge,map:new(St||ze),string:new ge}}function Ot(a){var d=Ae(this,a).delete(a);return this.size-=d?1:0,d}function Tn(a){return Ae(this,a).get(a)}function or(a){return Ae(this,a).has(a)}function xn(a,d){var b=Ae(this,a),M=b.size;return b.set(a,d),this.size+=b.size==M?0:1,this}Ge.prototype.clear=ue,Ge.prototype.delete=Ot,Ge.prototype.get=Tn,Ge.prototype.has=or,Ge.prototype.set=xn;function Rt(a){var d=-1,b=a==null?0:a.length;for(this.__data__=new Ge;++d<b;)this.add(a[d])}function sr(a){return this.__data__.set(a,r),this}function ht(a){return this.__data__.has(a)}Rt.prototype.add=Rt.prototype.push=sr,Rt.prototype.has=ht;function Te(a){var d=this.__data__=new ze(a);this.size=d.size}function wn(){this.__data__=new ze,this.size=0}function En(a){var d=this.__data__,b=d.delete(a);return this.size=d.size,b}function mt(a){return this.__data__.get(a)}function Wt(a){return this.__data__.has(a)}function Gt(a,d){var b=this.__data__;if(b instanceof ze){var M=b.__data__;if(!St||M.length<n-1)return M.push([a,d]),this.size=++b.size,this;b=this.__data__=new Ge(M)}return b.set(a,d),this.size=b.size,this}Te.prototype.clear=wn,Te.prototype.delete=En,Te.prototype.get=mt,Te.prototype.has=Wt,Te.prototype.set=Gt;function ar(a,d){var b=It(a),M=!b&&An(a),re=!b&&!M&&Cn(a),K=!b&&!M&&!re&&On(a),A=b||M||re||K,c=A?ni(a.length,String):[],y=c.length;for(var E in a)(d||z.call(a,E))&&!(A&&(E=="length"||re&&(E=="offset"||E=="parent")||K&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||ot(E,y)))&&c.push(E);return c}function Lt(a,d){for(var b=a.length;b--;)if(Sn(a[b][0],d))return b;return-1}function vi(a,d,b){var M=d(a);return It(a)?M:ei(M,b(a))}function rt(a){return a==null?a===void 0?F:O:tt&&tt in Object(a)?Pn(a):bt(a)}function gt(a){return at(a)&&rt(a)==l}function it(a,d,b,M,re){return a===d?!0:a==null||d==null||!at(a)&&!at(d)?a!==a&&d!==d:vt(a,d,b,M,it,re)}function vt(a,d,b,M,re,K){var A=It(a),c=It(d),y=A?u:qe(a),E=c?u:qe(d);y=y==l?L:y,E=E==l?L:E;var B=y==L,oe=E==L,J=y==E;if(J&&Cn(a)){if(!Cn(d))return!1;A=!0,B=!1}if(J&&!B)return K||(K=new Te),A||On(a)?qt(a,d,b,M,re,K):fr(a,d,y,b,M,re,K);if(!(b&i)){var te=B&&z.call(a,"__wrapped__"),be=oe&&z.call(d,"__wrapped__");if(te||be){var ie=te?a.value():a,Ne=be?d.value():d;return K||(K=new Te),re(ie,Ne,b,M,K)}}return J?(K||(K=new Te),Qt(a,d,b,M,re,K)):!1}function lr(a){if(!ke(a)||yi(a))return!1;var d=Yt(a)?He:Ut;return d.test(st(a))}function ur(a){return at(a)&&pr(a.length)&&!!G[rt(a)]}function cr(a){if(!he(a))return fi(a);var d=[];for(var b in Object(a))z.call(a,b)&&b!="constructor"&&d.push(b);return d}function qt(a,d,b,M,re,K){var A=b&i,c=a.length,y=d.length;if(c!=y&&!(A&&y>c))return!1;var E=K.get(a);if(E&&K.get(d))return E==d;var B=-1,oe=!0,J=b&o?new Rt:void 0;for(K.set(a,d),K.set(d,a);++B<c;){var te=a[B],be=d[B];if(M)var ie=A?M(be,te,B,d,a,K):M(te,be,B,a,d,K);if(ie!==void 0){if(ie)continue;oe=!1;break}if(J){if(!ti(d,function(Ne,Qe){if(!ii(J,Qe)&&(te===Ne||re(te,Ne,b,M,K)))return J.push(Qe)})){oe=!1;break}}else if(!(te===be||re(te,be,b,M,K))){oe=!1;break}}return K.delete(a),K.delete(d),oe}function fr(a,d,b,M,re,K,A){switch(b){case ne:if(a.byteLength!=d.byteLength||a.byteOffset!=d.byteOffset)return!1;a=a.buffer,d=d.buffer;case N:return!(a.byteLength!=d.byteLength||!K(new pt(a),new pt(d)));case m:case $:case S:return Sn(+a,+d);case g:return a.name==d.name&&a.message==d.message;case H:case ee:return a==d+"";case P:var c=si;case X:var y=M&i;if(c||(c=li),a.size!=d.size&&!y)return!1;var E=A.get(a);if(E)return E==d;M|=o,A.set(a,d);var B=qt(c(a),c(d),M,re,K,A);return A.delete(a),B;case p:if(Kt)return Kt.call(a)==Kt.call(d)}return!1}function Qt(a,d,b,M,re,K){var A=b&i,c=Mt(a),y=c.length,E=Mt(d),B=E.length;if(y!=B&&!A)return!1;for(var oe=y;oe--;){var J=c[oe];if(!(A?J in d:z.call(d,J)))return!1}var te=K.get(a);if(te&&K.get(d))return te==d;var be=!0;K.set(a,d),K.set(d,a);for(var ie=A;++oe<y;){J=c[oe];var Ne=a[J],Qe=d[J];if(M)var Ti=A?M(Qe,Ne,J,d,a,K):M(Ne,Qe,J,a,d,K);if(!(Ti===void 0?Ne===Qe||re(Ne,Qe,b,M,K):Ti)){be=!1;break}ie||(ie=J=="constructor")}if(be&&!ie){var mr=a.constructor,gr=d.constructor;mr!=gr&&"constructor"in a&&"constructor"in d&&!(typeof mr=="function"&&mr instanceof mr&&typeof gr=="function"&&gr instanceof gr)&&(be=!1)}return K.delete(a),K.delete(d),be}function Mt(a){return vi(a,hr,_n)}function Ae(a,d){var b=a.__data__;return bi(d)?b[typeof d=="string"?"string":"hash"]:b.map}function Ie(a,d){var b=oi(a,d);return lr(b)?b:void 0}function Pn(a){var d=z.call(a,tt),b=a[tt];try{a[tt]=void 0;var M=!0}catch{}var re=Le.call(a);return M&&(d?a[tt]=b:delete a[tt]),re}var _n=_t?function(a){return a==null?[]:(a=Object(a),Jr(_t(a),function(d){return tr.call(a,d)}))}:$i,qe=rt;(mn&&qe(new mn(new ArrayBuffer(1)))!=ne||St&&qe(new St)!=P||At&&qe(At.resolve())!=D||Ct&&qe(new Ct)!=X||we&&qe(new we)!=Q)&&(qe=function(a){var d=rt(a),b=d==L?a.constructor:void 0,M=b?st(b):"";if(M)switch(M){case Vt:return ne;case gn:return P;case di:return D;case pi:return X;case hi:return Q}return d});function ot(a,d){return d=d??s,!!d&&(typeof a=="number"||dt.test(a))&&a>-1&&a%1==0&&a<d}function bi(a){var d=typeof a;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?a!=="__proto__":a===null}function yi(a){return!!ae&&ae in a}function he(a){var d=a&&a.constructor,b=typeof d=="function"&&d.prototype||C;return a===b}function bt(a){return Le.call(a)}function st(a){if(a!=null){try{return U.call(a)}catch{}try{return a+""}catch{}}return""}function Sn(a,d){return a===d||a!==a&&d!==d}var An=gt(function(){return arguments}())?gt:function(a){return at(a)&&z.call(a,"callee")&&!tr.call(a,"callee")},It=Array.isArray;function dr(a){return a!=null&&pr(a.length)&&!Yt(a)}var Cn=Bt||Nt;function Xt(a,d){return it(a,d)}function Yt(a){if(!ke(a))return!1;var d=rt(a);return d==x||d==v||d==f||d==k}function pr(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=s}function ke(a){var d=typeof a;return a!=null&&(d=="object"||d=="function")}function at(a){return a!=null&&typeof a=="object"}var On=Jn?ri(Jn):ur;function hr(a){return dr(a)?ar(a):cr(a)}function $i(){return[]}function Nt(){return!1}e.exports=Xt})(Hr,Hr.exports);var ad=Hr.exports;const fl=cl(ad),ld=e=>I.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:[I.jsx("g",{children:I.jsx("path",{d:"M23.92 12.38a1 1 0 0 0 0-.76 1 1 0 0 0-.21-.33l-8-8a1.003 1.003 0 1 0-1.42 1.42l6.3 6.29H1a1 1 0 1 0 0 2h19.59l-6.3 6.29a1 1 0 0 0 0 1.42 1.002 1.002 0 0 0 1.42 0l8-8c.091-.095.162-.207.21-.33Z"})}),I.jsx("defs",{children:I.jsx("clipPath",{children:I.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),dl=h.memo(ld,fl),ud=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),Yr=(e,t,n="sharing_tool")=>`?utm_source=${e}&utm_medium=${t}&utm_campaign=${n}`,Zr=()=>{const[e,t]=h.useState(),[n,r]=h.useState();return h.useEffect(()=>{t(window.location.href),r(window.document.title)},[]),{windowLocation:e,windowTitle:n}},cd=(e,t,n)=>{const{windowLocation:r,windowTitle:i}=Zr(),o=n??r,s=Yr(e,t);return`https://www.facebook.com/sharer.php?u=${`${o}${s}`}&t=${i}`},fd=(e,t,n)=>{const{windowLocation:r,windowTitle:i}=Zr(),o=n??r,s=Yr(e,t),l=`${o}${s}`;return`mailto:?to=&body=${i}%20${l}`},dd=(e,t,n)=>{const{windowLocation:r}=Zr(),i=n??r,o=Yr(e,t);return`https://twitter.com/intent/tweet?text=${`${i}${o}`}`};exports.Accordion=cc;exports.ArrowRight=dl;exports.Button=zr;exports.IconDispatcher=Xn;exports.Lightbox=td;exports.PopoverButton=rd;exports.ShareButton=dc;exports.ThemeContextProvider=ws;exports.Typography=Es;exports.WysiwygBlock=sd;exports.createThemeProvider=yl;exports.generateUtmTags=Yr;exports.index=ed;exports.isEqual=fl;exports.makeTheme=ml;exports.useFacebookShareUrl=cd;exports.useMailToShareUrl=fd;exports.useTheme=xs;exports.useThemeContext=ye;exports.useTwitterShareUrl=dd;exports.useWindow=Zr;