@foris/avocado-suite 1.9.0 → 1.10.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.
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var z3;function S4(){if(z3)return Lo;z3=1;var e=v,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var u,d={},f=null,p=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)r.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:f,ref:p,props:d,_owner:i.current}}return Lo.Fragment=n,Lo.jsx=a,Lo.jsxs=a,Lo}var W3;function T4(){return W3||(W3=1,xc.exports=S4()),xc.exports}var y=T4();const M4={mode:"light"},D4={},Y3=e=>{let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const p=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(h=>h(t,p))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(D4?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,i,l);return l},L4=e=>e?Y3(e):Y3;var kc={exports:{}},Sc={},Tc={exports:{}},Mc={};/**
9
+ */var z3;function S7(){if(z3)return Lo;z3=1;var e=v,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var d,u={},f=null,p=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(p=l.ref);for(d in l)r.call(l,d)&&!o.hasOwnProperty(d)&&(u[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)u[d]===void 0&&(u[d]=l[d]);return{$$typeof:t,type:s,key:f,ref:p,props:u,_owner:i.current}}return Lo.Fragment=n,Lo.jsx=a,Lo.jsxs=a,Lo}var W3;function T7(){return W3||(W3=1,xc.exports=S7()),xc.exports}var y=T7();const M7={mode:"light"},D7={},Y3=e=>{let t;const n=new Set,r=(d,u)=>{const f=typeof d=="function"?d(t):d;if(!Object.is(f,t)){const p=t;t=u??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(h=>h(t,p))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(D7?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,i,l);return l},L7=e=>e?Y3(e):Y3;var kc={exports:{}},Sc={},Tc={exports:{}},Mc={};/**
10
10
  * @license React
11
11
  * use-sync-external-store-shim.production.min.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var U3;function P4(){if(U3)return Mc;U3=1;var e=v;function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function s(d,f){var p=f(),h=r({inst:{value:p,getSnapshot:f}}),g=h[0].inst,_=h[1];return o(function(){g.value=p,g.getSnapshot=f,l(g)&&_({inst:g})},[d,p,f]),i(function(){return l(g)&&_({inst:g}),d(function(){l(g)&&_({inst:g})})},[d]),a(p),p}function l(d){var f=d.getSnapshot;d=d.value;try{var p=f();return!n(d,p)}catch{return!0}}function c(d,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Mc.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Mc}var Z3;function E4(){return Z3||(Z3=1,Tc.exports=P4()),Tc.exports}/**
17
+ */var U3;function P7(){if(U3)return Mc;U3=1;var e=v;function t(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function s(u,f){var p=f(),h=r({inst:{value:p,getSnapshot:f}}),g=h[0].inst,_=h[1];return o(function(){g.value=p,g.getSnapshot=f,l(g)&&_({inst:g})},[u,p,f]),i(function(){return l(g)&&_({inst:g}),u(function(){l(g)&&_({inst:g})})},[u]),a(p),p}function l(u){var f=u.getSnapshot;u=u.value;try{var p=f();return!n(u,p)}catch{return!0}}function c(u,f){return f()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Mc.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Mc}var Z3;function E7(){return Z3||(Z3=1,Tc.exports=P7()),Tc.exports}/**
18
18
  * @license React
19
19
  * use-sync-external-store-shim/with-selector.production.min.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var q3;function I4(){if(q3)return Sc;q3=1;var e=v,t=E4();function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return Sc.useSyncExternalStoreWithSelector=function(c,u,d,f,p){var h=o(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=s(function(){function m(k){if(!b){if(b=!0,C=k,k=f(k),p!==void 0&&g.hasValue){var S=g.value;if(p(S,k))return x=S}return x=k}if(S=x,r(C,k))return S;var M=f(k);return p!==void 0&&p(S,M)?S:(C=k,x=M)}var b=!1,C,x,w=d===void 0?null:d;return[function(){return m(u())},w===null?void 0:function(){return m(w())}]},[u,d,f,p]);var _=i(c,h[0],h[1]);return a(function(){g.hasValue=!0,g.value=_},[_]),l(_),_},Sc}var G3;function O4(){return G3||(G3=1,kc.exports=I4()),kc.exports}var A4=O4();const N4=En(A4),K3={},{useDebugValue:R4}=v,{useSyncExternalStoreWithSelector:j4}=N4;let Q3=!1;const F4=e=>e;function V4(e,t=F4,n){(K3?"production":void 0)!=="production"&&n&&!Q3&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Q3=!0);const r=j4(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return R4(r),r}const X3=e=>{(K3?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?L4(e):e,n=(r,i)=>V4(t,r,i);return Object.assign(n,t),n},J3=e=>e?X3(e):X3,Zr=J3(()=>{var e;return{theme:{mode:((e=window==null?void 0:window.localStorage)==null?void 0:e.getItem("avocado-theme"))==="dark"?"dark":"light"}}}),ef=e=>{var n,r,i,o;(e||Zr.getState().theme.mode)==="dark"?(r=(n=document==null?void 0:document.body)==null?void 0:n.classList)==null||r.add("avocado-dark-theme"):(o=(i=document==null?void 0:document.body)==null?void 0:i.classList)==null||o.remove("avocado-dark-theme")},Dc=(e,t=!1,n=!1)=>{ef(e),Zr.setState({theme:{mode:e}}),t&&(window!=null&&window.localStorage)&&window.localStorage.setItem("avocado-theme",e),n&&window.dispatchEvent(new CustomEvent("avocado-theme-mode-changed",{detail:e}))},B4=Object.freeze(Object.defineProperty({__proto__:null,setThemeMode:Dc,toggleBodyTheme:ef,useThemeStore:Zr},Symbol.toStringTag,{value:"Module"}));v.createContext(void 0);const H4=({children:e,theme:t=M4})=>{const n=Zr(r=>r.theme.mode);return v.useEffect(()=>{(t==null?void 0:t.mode)!==n&&Dc(t==null?void 0:t.mode)},[t]),y.jsx(y.Fragment,{children:e})},Po=J3(()=>{var n,r;let e="en";const t=(n=window==null?void 0:window.localStorage)==null?void 0:n.getItem("avocado-locale");if(t==="en"||t==="es")e=t;else{const i=(r=navigator==null?void 0:navigator.language)==null?void 0:r.split("-")[0];(i==="en"||i==="es")&&(e=i)}return{locale:e,locales:[{value:"en",label:"English (US)"},{value:"es",label:"Español (MX)"}]}}),tf=(e,t=!0,n=!1)=>{Po.setState({locale:e}),t&&(window!=null&&window.localStorage)&&window.localStorage.setItem("avocado-locale",e),n&&window.dispatchEvent(new CustomEvent("avocado-locale-changed",{detail:e}))},$4=Object.freeze(Object.defineProperty({__proto__:null,setLocale:tf,useLocaleStore:Po},Symbol.toStringTag,{value:"Module"}));var nf={exports:{}},Eo={};/**
25
+ */var q3;function I7(){if(q3)return Sc;q3=1;var e=v,t=E7();function n(c,d){return c===d&&(c!==0||1/c===1/d)||c!==c&&d!==d}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return Sc.useSyncExternalStoreWithSelector=function(c,d,u,f,p){var h=o(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=s(function(){function m(k){if(!b){if(b=!0,C=k,k=f(k),p!==void 0&&g.hasValue){var S=g.value;if(p(S,k))return x=S}return x=k}if(S=x,r(C,k))return S;var M=f(k);return p!==void 0&&p(S,M)?S:(C=k,x=M)}var b=!1,C,x,w=u===void 0?null:u;return[function(){return m(d())},w===null?void 0:function(){return m(w())}]},[d,u,f,p]);var _=i(c,h[0],h[1]);return a(function(){g.hasValue=!0,g.value=_},[_]),l(_),_},Sc}var G3;function O7(){return G3||(G3=1,kc.exports=I7()),kc.exports}var A7=O7();const N7=En(A7),K3={},{useDebugValue:R7}=v,{useSyncExternalStoreWithSelector:j7}=N7;let Q3=!1;const F7=e=>e;function V7(e,t=F7,n){(K3?"production":void 0)!=="production"&&n&&!Q3&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Q3=!0);const r=j7(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return R7(r),r}const X3=e=>{(K3?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?L7(e):e,n=(r,i)=>V7(t,r,i);return Object.assign(n,t),n},J3=e=>e?X3(e):X3,Zr=J3(()=>{var e;return{theme:{mode:((e=window==null?void 0:window.localStorage)==null?void 0:e.getItem("avocado-theme"))==="dark"?"dark":"light"}}}),ef=e=>{var n,r,i,o;(e||Zr.getState().theme.mode)==="dark"?(r=(n=document==null?void 0:document.body)==null?void 0:n.classList)==null||r.add("avocado-dark-theme"):(o=(i=document==null?void 0:document.body)==null?void 0:i.classList)==null||o.remove("avocado-dark-theme")},Dc=(e,t=!1,n=!1)=>{ef(e),Zr.setState({theme:{mode:e}}),t&&(window!=null&&window.localStorage)&&window.localStorage.setItem("avocado-theme",e),n&&window.dispatchEvent(new CustomEvent("avocado-theme-mode-changed",{detail:e}))},B7=Object.freeze(Object.defineProperty({__proto__:null,setThemeMode:Dc,toggleBodyTheme:ef,useThemeStore:Zr},Symbol.toStringTag,{value:"Module"}));v.createContext(void 0);const H7=({children:e,theme:t=M7})=>{const n=Zr(r=>r.theme.mode);return v.useEffect(()=>{(t==null?void 0:t.mode)!==n&&Dc(t==null?void 0:t.mode)},[t]),y.jsx(y.Fragment,{children:e})},Po=J3(()=>{var n,r;let e="en";const t=(n=window==null?void 0:window.localStorage)==null?void 0:n.getItem("avocado-locale");if(t==="en"||t==="es")e=t;else{const i=(r=navigator==null?void 0:navigator.language)==null?void 0:r.split("-")[0];(i==="en"||i==="es")&&(e=i)}return{locale:e,locales:[{value:"en",label:"English (US)"},{value:"es",label:"Español (MX)"}]}}),tf=(e,t=!0,n=!1)=>{Po.setState({locale:e}),t&&(window!=null&&window.localStorage)&&window.localStorage.setItem("avocado-locale",e),n&&window.dispatchEvent(new CustomEvent("avocado-locale-changed",{detail:e}))},$7=Object.freeze(Object.defineProperty({__proto__:null,setLocale:tf,useLocaleStore:Po},Symbol.toStringTag,{value:"Module"}));var nf={exports:{}},Eo={};/**
26
26
  * @license React
27
27
  * react-jsx-runtime.production.min.js
28
28
  *
@@ -30,56 +30,56 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var rf;function z4(){if(rf)return Eo;rf=1;var e=v,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var u,d={},f=null,p=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)r.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:f,ref:p,props:d,_owner:i.current}}return Eo.Fragment=n,Eo.jsx=a,Eo.jsxs=a,Eo}var of;function W4(){return of||(of=1,nf.exports=z4()),nf.exports}var Y4=W4(),af=(e=>(e[e.sm=12]="sm",e[e.md=16]="md",e[e.lg=24]="lg",e[e.xl=32]="xl",e))(af||{}),sf=(e=>(e.neutral70="neutral-70",e.gray_100="gray-100",e.gray_90="gray-90",e.gray_85="gray-85",e.gray_80="gray-80",e.gray_70="gray-70",e.gray_50="gray-50",e.gray_30="gray-30",e.gray_10="gray-10",e.gray_05="gray-05",e.gray_00="gray-00",e.gray_100_60="gray-100-60",e.gray_100_50="gray-100-50",e.gray_100_30="gray-100-30",e.gray_100_20="gray-100-20",e.gray_100_10="gray-100-10",e.gray_100_05="gray-100-05",e.gray_100_00="gray-100-00",e.gray_90_70="gray-90-70",e.gray_90_50="gray-90-50",e.gray_90_40="gray-90-40",e.gray_90_30="gray-90-30",e.gray_90_20="gray-90-20",e.gray_90_10="gray-90-10",e.gray_90_05="gray-90-05",e.gray_90_02="gray-90-02",e.gray_90_00="gray-90-00",e.gray_80_20="gray-80-20",e.gray_80_10="gray-80-10",e.gray_30_20="gray-30-20",e.gray_30_15="gray-30-15",e.gray_30_10="gray-30-10",e.gray_30_00="gray-30-00",e.brand_90="brand-90",e.brand_80="brand-80",e.brand_70="brand-70",e.brand_60="brand-60",e.brand_50="brand-50",e.brand_40="brand-40",e.brand_30="brand-30",e.brand_20="brand-20",e.brand_10="brand-10",e.blue_10="blue-10",e.blue_50="blue-50",e.blue_60="blue-60",e.blue_50_10="blue-50-10",e.blue_50_20="blue-50-20",e.blue_50_70="blue-50-70",e.red_10="red-10",e.red_50="red-50",e.red_60="red-60",e.red_50_10="red-50-10",e.red_50_20="red-50-20",e.red_50_70="red-50-70",e.green_10="green-10",e.green_50="green-50",e.green_60="green-60",e.green_50_10="green-50-10",e.green_50_20="green-50-20",e.green_50_70="green-50-70",e.yellow_10="yellow-10",e.yellow_50="yellow-50",e.yellow_60="yellow-60",e.yellow_50_10="yellow-50-10",e.yellow_50_20="yellow-50-20",e.yellow_50_40="yellow-50-40",e.yellow_50_70="yellow-50-70",e.neutral_90="neutral-90",e.neutral_85="neutral-85",e.neutral_80="neutral-80",e.neutral_70="neutral-70",e.neutral_50="neutral-50",e.neutral_30="neutral-30",e.neutral_10="neutral-10",e.neutral_05="neutral-05",e.neutral_00="neutral-00",e.primary_90="primary-90",e.primary_80="primary-80",e.primary_70="primary-70",e.primary_60="primary-60",e.primary_50="primary-50",e.primary_40="primary-40",e.primary_30="primary-30",e.primary_20="primary-20",e.primary_10="primary-10",e.info_10="info-10",e.info_50="info-50",e.info_60="info-60",e.info_opacity="info-opacity",e.info_border="info-border",e.error_10="error-10",e.error_50="error-50",e.error_60="error-60",e.error_opacity="error-opacity",e.error_border="error-border",e.success_10="success-10",e.success_50="success-50",e.success_60="success-60",e.success_opacity="success-opacity",e.success_border="success-border",e.warning_10="warning-10",e.warning_50="warning-50",e.warning_60="warning-60",e.warning_opacity="warning-opacity",e.warning_border="warning-border",e.palette_1_10="palette-1-10",e.palette_1_50="palette-1-50",e.palette_1_50_20="palette-1-50-20",e.palette_1_80="palette-1-80",e.palette_2_10="palette-2-10",e.palette_2_50="palette-2-50",e.palette_2_50_20="palette-2-50-20",e.palette_2_80="palette-2-80",e.palette_3_10="palette-3-10",e.palette_3_50="palette-3-50",e.palette_3_50_20="palette-3-50-20",e.palette_3_80="palette-3-80",e.palette_4_10="palette-4-10",e.palette_4_50="palette-4-50",e.palette_4_50_20="palette-4-50-20",e.palette_4_80="palette-4-80",e.palette_5_10="palette-5-10",e.palette_5_50="palette-5-50",e.palette_5_80="palette-5-80",e.palette_6_10="palette-6-10",e.palette_6_50="palette-6-50",e.palette_6_50_20="palette-6-50-20",e.palette_6_80="palette-6-80",e.palette_7_10="palette-7-10",e.palette_7_50="palette-7-50",e.palette_7_80="palette-7-80",e.palette_8_10="palette-8-10",e.palette_8_50="palette-8-50",e.palette_8_80="palette-8-80",e.palette_9_10="palette-9-10",e.palette_9_50="palette-9-50",e.palette_9_80="palette-9-80",e.palette_10_10="palette-10-10",e.palette_10_50="palette-10-50",e.palette_10_80="palette-10-80",e.palette_11_10="palette-11-10",e.palette_11_50="palette-11-50",e.palette_11_80="palette-11-80",e.palette_12_10="palette-12-10",e.palette_12_50="palette-12-50",e.palette_12_80="palette-12-80",e.palette_13_10="palette-13-10",e.palette_13_50="palette-13-50",e.palette_13_80="palette-13-80",e.palette_14_10="palette-14-10",e.palette_14_50="palette-14-50",e.palette_14_80="palette-14-80",e.palette_15_10="palette-15-10",e.palette_15_50="palette-15-50",e.palette_15_80="palette-15-80",e.palette_16_10="palette-16-10",e.palette_16_50="palette-16-50",e.palette_16_80="palette-16-80",e.palette_17_10="palette-17-10",e.palette_17_50="palette-17-50",e.palette_17_80="palette-17-80",e.palette_18_10="palette-18-10",e.palette_18_50="palette-18-50",e.palette_18_80="palette-18-80",e))(sf||{});const U4=`
33
+ */var rf;function z7(){if(rf)return Eo;rf=1;var e=v,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var d,u={},f=null,p=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(p=l.ref);for(d in l)r.call(l,d)&&!o.hasOwnProperty(d)&&(u[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)u[d]===void 0&&(u[d]=l[d]);return{$$typeof:t,type:s,key:f,ref:p,props:u,_owner:i.current}}return Eo.Fragment=n,Eo.jsx=a,Eo.jsxs=a,Eo}var of;function W7(){return of||(of=1,nf.exports=z7()),nf.exports}var Y7=W7(),af=(e=>(e[e.sm=12]="sm",e[e.md=16]="md",e[e.lg=24]="lg",e[e.xl=32]="xl",e))(af||{}),sf=(e=>(e.neutral70="neutral-70",e.gray_100="gray-100",e.gray_90="gray-90",e.gray_85="gray-85",e.gray_80="gray-80",e.gray_70="gray-70",e.gray_50="gray-50",e.gray_30="gray-30",e.gray_10="gray-10",e.gray_05="gray-05",e.gray_00="gray-00",e.gray_100_60="gray-100-60",e.gray_100_50="gray-100-50",e.gray_100_30="gray-100-30",e.gray_100_20="gray-100-20",e.gray_100_10="gray-100-10",e.gray_100_05="gray-100-05",e.gray_100_00="gray-100-00",e.gray_90_70="gray-90-70",e.gray_90_50="gray-90-50",e.gray_90_40="gray-90-40",e.gray_90_30="gray-90-30",e.gray_90_20="gray-90-20",e.gray_90_10="gray-90-10",e.gray_90_05="gray-90-05",e.gray_90_02="gray-90-02",e.gray_90_00="gray-90-00",e.gray_80_20="gray-80-20",e.gray_80_10="gray-80-10",e.gray_30_20="gray-30-20",e.gray_30_15="gray-30-15",e.gray_30_10="gray-30-10",e.gray_30_00="gray-30-00",e.brand_90="brand-90",e.brand_80="brand-80",e.brand_70="brand-70",e.brand_60="brand-60",e.brand_50="brand-50",e.brand_40="brand-40",e.brand_30="brand-30",e.brand_20="brand-20",e.brand_10="brand-10",e.blue_10="blue-10",e.blue_50="blue-50",e.blue_60="blue-60",e.blue_50_10="blue-50-10",e.blue_50_20="blue-50-20",e.blue_50_70="blue-50-70",e.red_10="red-10",e.red_50="red-50",e.red_60="red-60",e.red_50_10="red-50-10",e.red_50_20="red-50-20",e.red_50_70="red-50-70",e.green_10="green-10",e.green_50="green-50",e.green_60="green-60",e.green_50_10="green-50-10",e.green_50_20="green-50-20",e.green_50_70="green-50-70",e.yellow_10="yellow-10",e.yellow_50="yellow-50",e.yellow_60="yellow-60",e.yellow_50_10="yellow-50-10",e.yellow_50_20="yellow-50-20",e.yellow_50_40="yellow-50-40",e.yellow_50_70="yellow-50-70",e.neutral_90="neutral-90",e.neutral_85="neutral-85",e.neutral_80="neutral-80",e.neutral_70="neutral-70",e.neutral_50="neutral-50",e.neutral_30="neutral-30",e.neutral_10="neutral-10",e.neutral_05="neutral-05",e.neutral_00="neutral-00",e.primary_90="primary-90",e.primary_80="primary-80",e.primary_70="primary-70",e.primary_60="primary-60",e.primary_50="primary-50",e.primary_40="primary-40",e.primary_30="primary-30",e.primary_20="primary-20",e.primary_10="primary-10",e.info_10="info-10",e.info_50="info-50",e.info_60="info-60",e.info_opacity="info-opacity",e.info_border="info-border",e.error_10="error-10",e.error_50="error-50",e.error_60="error-60",e.error_opacity="error-opacity",e.error_border="error-border",e.success_10="success-10",e.success_50="success-50",e.success_60="success-60",e.success_opacity="success-opacity",e.success_border="success-border",e.warning_10="warning-10",e.warning_50="warning-50",e.warning_60="warning-60",e.warning_opacity="warning-opacity",e.warning_border="warning-border",e.palette_1_10="palette-1-10",e.palette_1_50="palette-1-50",e.palette_1_50_20="palette-1-50-20",e.palette_1_80="palette-1-80",e.palette_2_10="palette-2-10",e.palette_2_50="palette-2-50",e.palette_2_50_20="palette-2-50-20",e.palette_2_80="palette-2-80",e.palette_3_10="palette-3-10",e.palette_3_50="palette-3-50",e.palette_3_50_20="palette-3-50-20",e.palette_3_80="palette-3-80",e.palette_4_10="palette-4-10",e.palette_4_50="palette-4-50",e.palette_4_50_20="palette-4-50-20",e.palette_4_80="palette-4-80",e.palette_5_10="palette-5-10",e.palette_5_50="palette-5-50",e.palette_5_80="palette-5-80",e.palette_6_10="palette-6-10",e.palette_6_50="palette-6-50",e.palette_6_50_20="palette-6-50-20",e.palette_6_80="palette-6-80",e.palette_7_10="palette-7-10",e.palette_7_50="palette-7-50",e.palette_7_80="palette-7-80",e.palette_8_10="palette-8-10",e.palette_8_50="palette-8-50",e.palette_8_80="palette-8-80",e.palette_9_10="palette-9-10",e.palette_9_50="palette-9-50",e.palette_9_80="palette-9-80",e.palette_10_10="palette-10-10",e.palette_10_50="palette-10-50",e.palette_10_80="palette-10-80",e.palette_11_10="palette-11-10",e.palette_11_50="palette-11-50",e.palette_11_80="palette-11-80",e.palette_12_10="palette-12-10",e.palette_12_50="palette-12-50",e.palette_12_80="palette-12-80",e.palette_13_10="palette-13-10",e.palette_13_50="palette-13-50",e.palette_13_80="palette-13-80",e.palette_14_10="palette-14-10",e.palette_14_50="palette-14-50",e.palette_14_80="palette-14-80",e.palette_15_10="palette-15-10",e.palette_15_50="palette-15-50",e.palette_15_80="palette-15-80",e.palette_16_10="palette-16-10",e.palette_16_50="palette-16-50",e.palette_16_80="palette-16-80",e.palette_17_10="palette-17-10",e.palette_17_50="palette-17-50",e.palette_17_80="palette-17-80",e.palette_18_10="palette-18-10",e.palette_18_50="palette-18-50",e.palette_18_80="palette-18-80",e))(sf||{});const U7=`
34
34
  <path
35
35
  fill-rule="evenodd"
36
36
  clip-rule="evenodd"
37
37
  d="M8.66683 3.33329C8.66683 2.9651 8.36835 2.66663 8.00016 2.66663C7.63197 2.66663 7.3335 2.9651 7.3335 3.33329V11.057L3.80506 7.52854C3.54471 7.2682 3.1226 7.2682 2.86225 7.52854C2.6019 7.78889 2.6019 8.211 2.86225 8.47135L7.51977 13.1289C7.64106 13.2549 7.81145 13.3333 8.00016 13.3333C8.07123 13.3333 8.1397 13.3222 8.20393 13.3016C8.30188 13.2703 8.39401 13.2157 8.47173 13.138L13.1384 8.47135C13.3987 8.211 13.3987 7.78889 13.1384 7.52854C12.878 7.2682 12.4559 7.2682 12.1956 7.52854L8.66683 11.0573V3.33329Z"
38
38
  fill="#1B1C1D"
39
39
  />
40
- `,Z4=`
40
+ `,Z7=`
41
41
  <path
42
42
  fill-rule="evenodd"
43
43
  clip-rule="evenodd"
44
44
  d="M8.19158 2.69451C8.13095 2.67637 8.06669 2.66663 8.00016 2.66663C7.8116 2.66663 7.64131 2.74491 7.52005 2.87076L2.86225 7.52855C2.6019 7.7889 2.6019 8.21101 2.86225 8.47136C3.1226 8.73171 3.54471 8.73171 3.80506 8.47136L7.3335 4.94293V12.6666C7.3335 13.0348 7.63197 13.3333 8.00016 13.3333C8.36835 13.3333 8.66683 13.0348 8.66683 12.6666V4.94261L12.1956 8.47136C12.4559 8.73171 12.878 8.73171 13.1384 8.47136C13.3987 8.21101 13.3987 7.7889 13.1384 7.52855L8.47173 2.86189C8.39075 2.78091 8.29412 2.72512 8.19158 2.69451Z"
45
45
  fill="#1B1C1D"
46
46
  />
47
- `,q4=`
47
+ `,q7=`
48
48
  <path
49
49
  fill-rule="evenodd"
50
50
  clip-rule="evenodd"
51
51
  d="M3.52876 5.52864C3.78911 5.26829 4.21122 5.26829 4.47157 5.52864L8.00016 9.05723L11.5288 5.52864C11.7891 5.26829 12.2112 5.26829 12.4716 5.52864C12.7319 5.78899 12.7319 6.2111 12.4716 6.47145L8.47157 10.4714C8.21122 10.7318 7.78911 10.7318 7.52876 10.4714L3.52876 6.47145C3.26841 6.2111 3.26841 5.78899 3.52876 5.52864Z"
52
52
  fill="#1B1C1D"
53
53
  />
54
- `,G4=`
54
+ `,G7=`
55
55
  <path
56
56
  fill-rule="evenodd"
57
57
  clip-rule="evenodd"
58
58
  d="M10.4716 3.52864C10.7319 3.78899 10.7319 4.2111 10.4716 4.47145L6.94297 8.00004L10.4716 11.5286C10.7319 11.789 10.7319 12.2111 10.4716 12.4714C10.2112 12.7318 9.78911 12.7318 9.52876 12.4714L5.52876 8.47145C5.26841 8.2111 5.26841 7.78899 5.52876 7.52864L9.52876 3.52864C9.78911 3.26829 10.2112 3.26829 10.4716 3.52864Z"
59
59
  fill="#1B1C1D"
60
60
  />
61
- `,K4=`
61
+ `,K7=`
62
62
  <path
63
63
  fill-rule="evenodd"
64
64
  clip-rule="evenodd"
65
65
  d="M5.52876 3.52864C5.78911 3.26829 6.21122 3.26829 6.47157 3.52864L10.4716 7.52864C10.7319 7.78899 10.7319 8.2111 10.4716 8.47145L6.47157 12.4714C6.21122 12.7318 5.78911 12.7318 5.52876 12.4714C5.26841 12.2111 5.26841 11.789 5.52876 11.5286L9.05735 8.00004L5.52876 4.47145C5.26841 4.2111 5.26841 3.78899 5.52876 3.52864Z"
66
66
  fill="#1B1C1D"
67
67
  />
68
- `,Q4=`
68
+ `,Q7=`
69
69
  <path
70
70
  fill-rule="evenodd"
71
71
  clip-rule="evenodd"
72
72
  d="M7.80441 5.13807C8.06476 4.87772 8.06476 4.45561 7.80441 4.19526C7.54406 3.93491 7.12195 3.93491 6.8616 4.19526L3.52827 7.5286C3.26792 7.78895 3.26792 8.21105 3.52827 8.4714L6.8616 11.8047C7.12195 12.0651 7.54406 12.0651 7.80441 11.8047C8.06476 11.5444 8.06476 11.1223 7.80441 10.8619L4.94248 8L7.80441 5.13807ZM12.4712 5.13807C12.7315 4.87772 12.7315 4.45561 12.4712 4.19526C12.2108 3.93491 11.7887 3.93491 11.5284 4.19526L8.19502 7.5286C7.93467 7.78895 7.93467 8.21105 8.19502 8.4714L11.5284 11.8047C11.7887 12.0651 12.2108 12.0651 12.4712 11.8047C12.7315 11.5444 12.7315 11.1223 12.4712 10.8619L9.60923 8L12.4712 5.13807Z"
73
73
  fill="#1B1C1D"
74
74
  />
75
- `,X4=`
75
+ `,X7=`
76
76
  <path
77
77
  fill-rule="evenodd"
78
78
  clip-rule="evenodd"
79
79
  d="M4.47108 4.19526C4.21073 3.93491 3.78862 3.93491 3.52827 4.19526C3.26792 4.45561 3.26792 4.87772 3.52827 5.13807L6.3902 8L3.52827 10.8619C3.26792 11.1223 3.26792 11.5444 3.52827 11.8047C3.78862 12.0651 4.21073 12.0651 4.47108 11.8047L7.80441 8.4714C8.06476 8.21105 8.06476 7.78895 7.80441 7.5286L4.47108 4.19526ZM9.13783 4.19526C8.87748 3.93491 8.45537 3.93491 8.19502 4.19526C7.93467 4.45561 7.93467 4.87772 8.19502 5.13807L11.0569 8L8.19502 10.8619C7.93467 11.1223 7.93467 11.5444 8.19502 11.8047C8.45537 12.0651 8.87748 12.0651 9.13783 11.8047L12.4712 8.4714C12.7315 8.21105 12.7315 7.78895 12.4712 7.5286L9.13783 4.19526Z"
80
80
  fill="#1B1C1D"
81
81
  />
82
- `,J4=`
82
+ `,J7=`
83
83
  <path
84
84
  fill-rule="evenodd"
85
85
  clip-rule="evenodd"
@@ -89,7 +89,7 @@ fill="#1B1C1D"
89
89
  `,e8=`
90
90
  <path fill-rule="evenodd" clip-rule="evenodd" d="M6.4714 2.19526C6.73175 2.45561 6.73175 2.87772 6.4714 3.13807L3.60948 6L6.4714 8.86193C6.73175 9.12228 6.73175 9.54439 6.4714 9.80474C6.21105 10.0651 5.78895 10.0651 5.5286 9.80474L2.19526 6.4714C1.93491 6.21105 1.93491 5.78895 2.19526 5.5286L5.5286 2.19526C5.78895 1.93491 6.21105 1.93491 6.4714 2.19526Z" fill="white"/>
91
91
  <path fill-rule="evenodd" clip-rule="evenodd" d="M2 6C2 5.63181 2.29848 5.33333 2.66667 5.33333H10.6667C11.5507 5.33333 12.3986 5.68452 13.0237 6.30964C13.6488 6.93476 14 7.78261 14 8.66667V13.3333C14 13.7015 13.7015 14 13.3333 14C12.9651 14 12.6667 13.7015 12.6667 13.3333V8.66667C12.6667 8.13623 12.456 7.62752 12.0809 7.25245C11.7058 6.87738 11.1971 6.66667 10.6667 6.66667H2.66667C2.29848 6.66667 2 6.36819 2 6Z" fill="white"/>
92
- `,t8={"arrow-down":U4,"arrow-up":Z4,"chevron-down":q4,"chevron-left":G4,"chevron-right":K4,"chevrons-left":Q4,"chevrons-right":X4,"chevron-up":J4,"corner-up-left":e8},n8=`
92
+ `,t8={"arrow-down":U7,"arrow-up":Z7,"chevron-down":q7,"chevron-left":G7,"chevron-right":K7,"chevrons-left":Q7,"chevrons-right":X7,"chevron-up":J7,"corner-up-left":e8},n8=`
93
93
  <path fill-rule="evenodd" clip-rule="evenodd" d="M7.01874 1.52206C7.31826 1.35342 7.6562 1.26483 7.99993 1.26483C8.34367 1.26483 8.6816 1.35342 8.98113 1.52206C9.28065 1.69069 9.53166 1.93368 9.70993 2.22758L9.71185 2.23074L15.364 11.6666C15.5386 11.969 15.631 12.3119 15.6319 12.6611C15.6329 13.0104 15.5424 13.3538 15.3695 13.6571C15.1966 13.9605 14.9472 14.2134 14.6462 14.3905C14.3452 14.5676 14.0031 14.6628 13.6539 14.6666L13.6466 14.6667L2.34594 14.6667C1.99674 14.6628 1.65463 14.5676 1.35365 14.3905C1.05266 14.2134 0.803301 13.9605 0.630365 13.6571C0.45743 13.3538 0.36695 13.0104 0.367928 12.6611C0.368906 12.3119 0.461307 11.969 0.635939 11.6666L0.641281 11.6574L6.28992 2.22757C6.46819 1.93368 6.71921 1.69069 7.01874 1.52206ZM7.99993 2.59816C7.88535 2.59816 7.77271 2.6277 7.67287 2.68391C7.57347 2.73987 7.49011 2.82039 7.43073 2.91777L7.42993 2.91908L1.78839 12.3372C1.7316 12.4371 1.70158 12.5499 1.70126 12.6649C1.70093 12.7813 1.73109 12.8957 1.78874 12.9969C1.84638 13.098 1.9295 13.1823 2.02983 13.2413C2.12929 13.2998 2.24222 13.3315 2.35757 13.3333H13.6423C13.7576 13.3315 13.8706 13.2998 13.97 13.2413C14.0704 13.1823 14.1535 13.098 14.2111 12.9969C14.2688 12.8957 14.2989 12.7813 14.2986 12.6649C14.2983 12.55 14.2683 12.4371 14.2115 12.3372L8.56993 2.91908L8.56913 2.91777C8.50976 2.82039 8.42639 2.73987 8.327 2.68391C8.22716 2.6277 8.11451 2.59816 7.99993 2.59816ZM7.99992 5.33331C8.36811 5.33331 8.66658 5.63179 8.66658 5.99998V8.66665C8.66658 9.03484 8.36811 9.33331 7.99992 9.33331C7.63173 9.33331 7.33325 9.03484 7.33325 8.66665V5.99998C7.33325 5.63179 7.63173 5.33331 7.99992 5.33331ZM7.99992 10.6667C7.63173 10.6667 7.33325 10.9652 7.33325 11.3334C7.33325 11.7015 7.63173 12 7.99992 12H8.00659C8.37477 12 8.67325 11.7015 8.67325 11.3334C8.67325 10.9652 8.37477 10.6667 8.00659 10.6667H7.99992Z" fill="#1B1C1D"/>
94
94
  `,r8=`
95
95
  <path fill-rule="evenodd" clip-rule="evenodd" d="M7.01898 1.52206C7.31851 1.35342 7.65644 1.26483 8.00018 1.26483C8.34391 1.26483 8.68185 1.35342 8.98137 1.52206C9.2809 1.69069 9.53191 1.93368 9.71018 2.22758L9.7121 2.23074L15.3642 11.6666C15.5389 11.969 15.6312 12.3119 15.6322 12.6611C15.6332 13.0104 15.5427 13.3538 15.3697 13.6571C15.1968 13.9605 14.9474 14.2134 14.6465 14.3905C14.3455 14.5676 14.0034 14.6628 13.6542 14.6666L13.6468 14.6667L2.34618 14.6667C1.99698 14.6628 1.65487 14.5676 1.35389 14.3905C1.05291 14.2134 0.803545 13.9605 0.630609 13.6571C0.457674 13.3538 0.367194 13.0104 0.368172 12.6611C0.36915 12.3119 0.461551 11.969 0.636183 11.6666L0.641525 11.6574L6.28827 2.23075L6.29018 2.22758C6.46845 1.93368 6.71946 1.69069 7.01898 1.52206ZM8.00016 5.33331C8.36835 5.33331 8.66683 5.63179 8.66683 5.99998V8.66665C8.66683 9.03484 8.36835 9.33331 8.00016 9.33331C7.63197 9.33331 7.3335 9.03484 7.3335 8.66665V5.99998C7.3335 5.63179 7.63197 5.33331 8.00016 5.33331ZM8.00016 10.6667C7.63197 10.6667 7.3335 10.9652 7.3335 11.3334C7.3335 11.7015 7.63197 12 8.00016 12H8.00683C8.37502 12 8.6735 11.7015 8.6735 11.3334C8.6735 10.9652 8.37502 10.6667 8.00683 10.6667H8.00016Z" fill="#000"/>
@@ -752,55 +752,55 @@ clipRule="evenodd"
752
752
  </linearGradient>
753
753
  </defs>
754
754
  </g>
755
- `,X_={branch:a_,"branch-gradient":s_,dots:d_,"circle-active":l_,"circle-dots":c_,"circle-dots-fill":u_,"circle-help":f_,"circle-help-fill":p_,plus:g_,"circle-plus":y_,"circle-plus-gradient":b_,"circle-plus-fill":v_,import:K_,"import-gradient":Q_,minus:h_,"circle-minus":m_,"circle-minus-fill":__,copy:C_,close:w_,download:x_,edit:k_,filter:S_,grip:q_,link:M_,"link-horizontal":D_,"external-link":T_,list:L_,loading:P_,login:E_,logout:I_,menu:O_,refresh:A_,"circle-refresh":N_,"circle-refresh-fill":R_,search:j_,settings:F_,"settings-gradient":V_,"settings-columns":B_,"settings-columns-gradient":H_,trash:$_,"turn-on":z_,"turn-on-fill":W_,upload:Y_,module:U_,"circle-migrate":Z_,sparkles:cf,"sparkles-fill":cf,"brush-cleaning":G_},J_={...t8,...h8,...o_,...X_},ie=({size:e="md",className:t,name:n,filled:r,gradient:i,color:o=sf.neutral_70})=>{const a=(()=>{let c=n;return i?c=n+"-gradient":r&&(c=n+"-fill"),J_[c]})();if(!a)return console.warn(`Icon ${n} not found`),null;const s=af[e],l=o&&!i?a.replace(/fill="[^"]*"/g,`fill="var(--color-${o})"`):a;return Y4.jsx("svg",{"data-testid":"icon-test-id",className:t,dangerouslySetInnerHTML:{__html:l},height:s,width:s,fill:"none",viewBox:"0 0 16 16"})},ct=()=>({theme:Zr(t=>t.theme)});var Lc={exports:{}};/*!
755
+ `,X_={branch:a_,"branch-gradient":s_,dots:d_,"circle-active":l_,"circle-dots":c_,"circle-dots-fill":u_,"circle-help":f_,"circle-help-fill":p_,plus:g_,"circle-plus":y_,"circle-plus-gradient":b_,"circle-plus-fill":v_,import:K_,"import-gradient":Q_,minus:h_,"circle-minus":m_,"circle-minus-fill":__,copy:C_,close:w_,download:x_,edit:k_,filter:S_,grip:q_,link:M_,"link-horizontal":D_,"external-link":T_,list:L_,loading:P_,login:E_,logout:I_,menu:O_,refresh:A_,"circle-refresh":N_,"circle-refresh-fill":R_,search:j_,settings:F_,"settings-gradient":V_,"settings-columns":B_,"settings-columns-gradient":H_,trash:$_,"turn-on":z_,"turn-on-fill":W_,upload:Y_,module:U_,"circle-migrate":Z_,sparkles:cf,"sparkles-fill":cf,"brush-cleaning":G_},J_={...t8,...h8,...o_,...X_},ie=({size:e="md",className:t,name:n,filled:r,gradient:i,color:o=sf.neutral_70})=>{const a=(()=>{let c=n;return i?c=n+"-gradient":r&&(c=n+"-fill"),J_[c]})();if(!a)return console.warn(`Icon ${n} not found`),null;const s=af[e],l=o&&!i?a.replace(/fill="[^"]*"/g,`fill="var(--color-${o})"`):a;return Y7.jsx("svg",{"data-testid":"icon-test-id",className:t,dangerouslySetInnerHTML:{__html:l},height:s,width:s,fill:"none",viewBox:"0 0 16 16"})},ct=()=>({theme:Zr(t=>t.theme)});var Lc={exports:{}};/*!
756
756
  Copyright (c) 2018 Jed Watson.
757
757
  Licensed under the MIT License (MIT), see
758
758
  http://jedwatson.github.io/classnames
759
- */var uf;function eg(){return uf||(uf=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Lc)),Lc.exports}var tg=eg();const E=En(tg),ts={text:"_text_1jicm_1",text__lg:"_text__lg_1jicm_1",text__md:"_text__md_1jicm_8",text__sm:"_text__sm_1jicm_15",text__xs:"_text__xs_1jicm_22",text__medium:"_text__medium_1jicm_29",text__darkMode:"_text__darkMode_1jicm_32"},je=({children:e,className:t,darkMode:n,type:r="md",weight:i="regular"})=>y.jsx("p",{className:E(ts.text,ts[`text__${r}`],n&&ts.text__darkMode,i==="medium"&&ts.text__medium,t&&t),children:e});je.prototype={avocado:"Text"};const rn={heading:"_heading_1qyoa_1",heading__1:"_heading__1_1qyoa_1",heading__2:"_heading__2_1qyoa_8",heading__3:"_heading__3_1qyoa_15",heading__4:"_heading__4_1qyoa_22",heading__darkMode:"_heading__darkMode_1qyoa_29"},yt=e=>{const{children:t,className:n,darkMode:r,type:i}=e;switch(i){case"h1":return y.jsx("h1",{className:E(rn.heading,rn.heading__1,r&&rn.heading__darkMode,n&&n),children:t});case"h2":return y.jsx("h2",{className:E(rn.heading,rn.heading__2,r&&rn.heading__darkMode,n&&n),children:t});case"h3":return y.jsx("h3",{className:E(rn.heading,rn.heading__3,r&&rn.heading__darkMode,n&&n),children:t});case"h4":return y.jsx("h4",{className:E(rn.heading,rn.heading__4,r&&rn.heading__darkMode,n&&n),children:t});default:return null}};yt.prototype={avocado:"Heading"};const qr={componentCheck:"_componentCheck_c0e1g_1",componentCheck__disabled:"_componentCheck__disabled_c0e1g_1",label:"_label_c0e1g_1",componentCheck__darkMode:"_componentCheck__darkMode_c0e1g_4",label_checkbox:"_label_checkbox_c0e1g_9",label_left:"_label_left_c0e1g_33",label_right:"_label_right_c0e1g_37"},ns=({classNameCheckbox:e="",disabled:t=!1,labelLeft:n="",labelRight:r="",...i})=>{const{className:o,ref:a}=i,s=n&&typeof n=="string",l=r&&typeof r=="string",{theme:c}=ct();return y.jsx("div",{className:E(qr.componentCheck,t&&qr.componentCheck__disabled,"container_row","row_align__end",o&&o,(c==null?void 0:c.mode)==="dark"&&qr.componentCheck__darkMode),children:y.jsxs("label",{className:qr.label,children:[s?y.jsx("span",{className:qr.label_left,children:n}):y.jsx(y.Fragment,{children:n}),y.jsx("input",{...i,className:E(qr.label_checkbox,e&&e),type:"checkbox",disabled:t,ref:a}),l?y.jsx("span",{className:qr.label_right,children:r}):y.jsx(y.Fragment,{children:r})]})})},Tt={accordion:"_accordion_7804t_1",accordion__isOpen:"_accordion__isOpen_7804t_12",accordion_head:"_accordion_head_7804t_16",btnToggle_headIcon:"_btnToggle_headIcon_7804t_19",accordion__disabled:"_accordion__disabled_7804t_22",btnToggle:"_btnToggle_7804t_19",content:"_content_7804t_29",content_description:"_content_description_7804t_29",content_title:"_content_title_7804t_32",accordion__darkMode:"_accordion__darkMode_7804t_35",accordion__neutral:"_accordion__neutral_7804t_47",accordion__success:"_accordion__success_7804t_50",accordion__warning:"_accordion__warning_7804t_53",accordion__error:"_accordion__error_7804t_56",checkbox:"_checkbox_7804t_74",actionContent:"_actionContent_7804t_100",accordion_content:"_accordion_content_7804t_105",accordion_content__notShow:"_accordion_content__notShow_7804t_109"},ng=({actionContent:e,children:t,className:n,customContent:r,description:i,disabled:o,hasCheckbox:a,hasIcon:s,neutralIcon:l,opened:c=!1,title:u,type:d,checkboxChecked:f,onChanceCheckbox:p})=>{const[h,g]=v.useState(c),[_,m]=v.useState(!h),{theme:b}=ct(),C={neutral:l||{name:"file",color:"neutral-70"},success:{name:"circle-check",color:"success-50",filled:!0},warning:{name:"alert-triangle",color:"warning-50",filled:!0},error:{name:"circle-cross",color:"error-50",filled:!0}},x=()=>{o||g(!h)};return v.useEffect(()=>{h&&m(!1)},[h]),y.jsxs("article",{className:E(Tt.accordion,h&&Tt.accordion__isOpen,(b==null?void 0:b.mode)==="dark"&&Tt.accordion__darkMode,d&&Tt[`accordion__${d}`],o&&Tt.accordion__disabled,n&&n),onTransitionEnd:()=>{h||m(!0)},children:[y.jsxs("div",{className:Tt.accordion_head,onClick:x,role:"button",children:[a&&y.jsx(ns,{disabled:o,className:Tt.checkbox,checked:f,onClick:w=>w.stopPropagation(),onChange:p}),y.jsx("div",{className:Tt.btnToggle,onTransitionEnd:w=>{w.stopPropagation()},children:y.jsx(ie,{className:Tt.btnToggle_headIcon,name:"chevron-down",size:"lg",color:o?"neutral-30":"neutral-70"})}),s&&y.jsx(ie,{size:"md",...C==null?void 0:C[d||""]}),y.jsxs("div",{className:Tt.content,children:[y.jsx(yt,{type:"h3",className:Tt.content_title,children:u}),i&&y.jsx(je,{className:Tt.content_description,children:i}),r&&y.jsx("div",{children:r})]}),e&&y.jsx("div",{className:Tt.actionContent,onClick:w=>w.stopPropagation(),children:e})]}),y.jsx("div",{className:E(Tt.accordion_content,_&&Tt.accordion_content__notShow),children:t})]})},df={box:"_box_qzg60_1",box__darkMode:"_box__darkMode_qzg60_11"},rg=({className:e,children:t,darkMode:n=!1})=>y.jsx("section",{className:E(df.box,e&&e,n&&df.box__darkMode),children:t}),mn={breadcrumbs:"_breadcrumbs_1x8rf_1",breadcrumbs_list:"_breadcrumbs_list_1x8rf_4",breadcrumbItem:"_breadcrumbItem_1x8rf_11",breadcrumbItem_label:"_breadcrumbItem_label_1x8rf_15",breadcrumbItem_separator:"_breadcrumbItem_separator_1x8rf_29",breadcrumbItem__active:"_breadcrumbItem__active_1x8rf_35",labelIcon:"_labelIcon_1x8rf_38",breadcrumbs__darkMode:"_breadcrumbs__darkMode_1x8rf_48"},Pc=e=>{const{className:t,darkMode:n,items:r}=e,[i,o]=v.useState(window.innerWidth<=992),a=(s,l)=>{var f;const c=y.jsxs(y.Fragment,{children:[i&&y.jsx(ie,{className:mn.labelIcon,"aria-hidden":"true",name:"chevron-left",size:"md"}),s==null?void 0:s.title]});let u={href:s.path};if(l===r.length-1&&(u["aria-current"]="page",u.href=void 0),s!=null&&s.component){const p={...s==null?void 0:s.component};return p.props={...(f=s==null?void 0:s.component)==null?void 0:f.props,...u,className:mn.breadcrumbItem_label,children:c},p}else return y.jsx("a",{className:mn.breadcrumbItem_label,...u,children:c})};return v.useEffect(()=>{const s=()=>{o(window.innerWidth<=992)};return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),y.jsx("nav",{"aria-label":"breadcrumb",className:E(mn.breadcrumbs,t&&t,n&&mn.breadcrumbs__darkMode),children:y.jsx("ol",{className:mn.breadcrumbs_list,children:r==null?void 0:r.map((s,l)=>y.jsxs(v.Fragment,{children:[(!i||i&&l==(r==null?void 0:r.length)-2)&&y.jsx("li",{className:E(mn.breadcrumbItem,!i&&l==(r==null?void 0:r.length)-1&&mn.breadcrumbItem__active,i&&l==(r==null?void 0:r.length)-2&&mn.breadcrumbItem__active),children:a(s,l)},`breadcrumbItem-${l}`),!i&&l<(r==null?void 0:r.length)-1&&y.jsx("li",{"aria-hidden":"true",className:mn.breadcrumbItem,children:y.jsx(ie,{className:mn.breadcrumbItem_separator,name:"chevron-right",size:"sm"})},`breadcrumbItemChevron-${l}`)]},`breadcrumbFragment-${l}`))})})};Pc.prototype={avocado:"Breadcrumbs"};const ir={button:"_button_1n5tj_1",button__loading:"_button__loading_1n5tj_21",button_icon:"_button_icon_1n5tj_33",button_loadingIcon:"_button_loadingIcon_1n5tj_39",button__sm:"_button__sm_1n5tj_46",button__secondary:"_button__secondary_1n5tj_51",button__darkMode:"_button__darkMode_1n5tj_66",button__forceLightMode:"_button__forceLightMode_1n5tj_77",button__ghost:"_button__ghost_1n5tj_90",button__danger:"_button__danger_1n5tj_105"},Gr=({children:e,className:t,forceLightMode:n=!1,loading:r=!1,leftIcon:i,rightIcon:o,variant:a="primary",type:s="button",size:l="md",...c})=>{const{theme:u}=ct();return y.jsxs("button",{className:E(ir.button,t&&t,a&&ir[`button__${a}`],l&&ir[`button__${l}`],(u==null?void 0:u.mode)==="dark"&&!n&&ir.button__darkMode,n&&ir.button__forceLightMode,r&&ir.button__loading),type:s,...c,children:[i&&y.jsx(ie,{className:ir.button_icon,name:i,size:"md"}),e,o&&y.jsx(ie,{className:ir.button_icon,name:o,size:"md"}),r&&y.jsx(ie,{className:ir.button_loadingIcon,name:"loading",size:"md"})]})};Gr.prototype={avocado:"Button"};const Kr={card:"_card_1fcgs_1",card_aside:"_card_aside_1fcgs_10",card_aside__color1:"_card_aside__color1_1fcgs_22",card_aside__color2:"_card_aside__color2_1fcgs_25",card_aside__color3:"_card_aside__color3_1fcgs_28",card_aside__color4:"_card_aside__color4_1fcgs_31",card_aside__color5:"_card_aside__color5_1fcgs_34",card_aside__color6:"_card_aside__color6_1fcgs_37",card_aside__color7:"_card_aside__color7_1fcgs_40",card_aside__color8:"_card_aside__color8_1fcgs_43",card_aside__color9:"_card_aside__color9_1fcgs_46",card_aside__color10:"_card_aside__color10_1fcgs_49",card_aside__color11:"_card_aside__color11_1fcgs_52",card_aside__color12:"_card_aside__color12_1fcgs_55",card_aside__color13:"_card_aside__color13_1fcgs_58",card_aside__color14:"_card_aside__color14_1fcgs_61",card_aside__color15:"_card_aside__color15_1fcgs_64",card_aside__color16:"_card_aside__color16_1fcgs_67",card_aside__color17:"_card_aside__color17_1fcgs_70",card_aside__color18:"_card_aside__color18_1fcgs_73",card_content:"_card_content_1fcgs_76",card__clickable:"_card__clickable_1fcgs_80",card__disabled:"_card__disabled_1fcgs_87",card__darkMode:"_card__darkMode_1fcgs_96"},ig=({children:e,className:t="",classNameAside:n="",classNameContent:r="",disabled:i=!1,colorId:o,...a})=>{const{onClick:s}=a,{theme:l}=ct();return y.jsxs("section",{className:E(Kr.card,s&&!i&&Kr.card__clickable,i&&Kr.card__disabled,(l==null?void 0:l.mode)==="dark"&&Kr.card__darkMode,t&&t),onClick:s&&s,...a,children:[y.jsx("aside",{className:E(Kr.card_aside,n&&n,o&&Kr[`card_aside__color${o}`])}),y.jsx("div",{className:E(Kr.card_content,r&&r),children:e})]})},wr=e=>{const{icon:t,variant:n="primary",type:r="button",size:i="md",className:o="",disabled:a=!1,forceLightMode:s=!1,loading:l=!1,...c}=e,u=["roundButton",o&&o,l&&"roundButton__loading",i&&`roundButton__${i}`],d={sm:"md",md:"lg"};return y.jsx(Gr,{className:E(...u),disabled:a,forceLightMode:s,variant:n,loading:l,type:r,...c,children:y.jsx(ie,{className:"roundButton_icon",name:l?"loading":t,size:d[i]})})};wr.prototype={avocado:"RoundButton"};const dt={cardAccordion:"_cardAccordion_7ayra_1",cardAccordion_header:"_cardAccordion_header_7ayra_7",cardAccordion__isOpen:"_cardAccordion__isOpen_7ayra_10",cardAccordion_body:"_cardAccordion_body_7ayra_10",headerTop_btnToggle:"_headerTop_btnToggle_7ayra_16",cardAccordion__expressive:"_cardAccordion__expressive_7ayra_24",cardAccordion__condensed:"_cardAccordion__condensed_7ayra_33",headerTop:"_headerTop_7ayra_16",headerTop_actionContent:"_headerTop_actionContent_7ayra_39",bodyInner_content:"_bodyInner_content_7ayra_44",cardAccordion__disabled:"_cardAccordion__disabled_7ayra_47",headerTop_mainContent:"_headerTop_mainContent_7ayra_58",title:"_title_7ayra_58",description:"_description_7ayra_92",headerTop_menuContent:"_headerTop_menuContent_7ayra_106",bodyInner:"_bodyInner_7ayra_44",cardAccordion_body__settled:"_cardAccordion_body__settled_7ayra_131"},og=["a[href]","button","input","label","select","summary","textarea","[contenteditable]",'[role="button"]','[role="checkbox"]','[role="link"]','[role="menuitem"]','[role="switch"]','[role="tab"]',"[tabindex]"].join(", "),ag=({actionContent:e,ariaLabel:t,children:n,className:r,density:i="expanded",description:o,disabled:a,iconGradient:s,iconName:l,iconSize:c="lg",menuContent:u,onToggle:d,opened:f=!1,title:p,type:h="default"})=>{const g=v.useId(),_=`${g}-toggle`,[m,b]=v.useState(f),C=typeof p=="string",x=d?f:m,w=n!=null&&n!==!1,[k,S]=v.useState(x);!x&&k&&S(!1);const M=()=>{a||(d?d(!x):b(O=>!O))},P=O=>{const V=O.target.closest(og);V&&O.currentTarget.contains(V)||M()},T=O=>{var V;O.key!=="Escape"||!x||a||(O.stopPropagation(),M(),(V=document.getElementById(_))==null||V.focus())},I=O=>{!x||O.target!==O.currentTarget||O.propertyName!=="grid-template-rows"||S(!0)};return y.jsxs("article",{"aria-label":t,className:E(dt.cardAccordion,x&&dt.cardAccordion__isOpen,a&&dt.cardAccordion__disabled,h==="expressive"&&dt.cardAccordion__expressive,i==="condensed"&&dt.cardAccordion__condensed,r),children:[y.jsx("div",{className:dt.cardAccordion_header,onClick:P,children:y.jsxs("div",{className:dt.headerTop,children:[l&&y.jsx(ie,{size:c,name:l,disabled:a,gradient:s,color:a?"neutral-50":"neutral-70"}),y.jsxs("div",{className:dt.headerTop_mainContent,children:[C?y.jsx(yt,{type:"h3",className:dt.title,children:p}):y.jsx("div",{className:dt.title,children:p}),o&&y.jsx(je,{className:dt.description,children:o})]}),e&&y.jsx("div",{className:dt.headerTop_actionContent,children:e}),u&&y.jsx("div",{className:dt.headerTop_menuContent,children:u}),y.jsx(wr,{"aria-controls":w?g:void 0,"aria-expanded":x,"aria-label":"Toggle card",className:dt.headerTop_btnToggle,disabled:a,icon:"chevron-up",id:_,onClick:M,variant:"ghost"})]})}),w&&y.jsx("div",{className:E(dt.cardAccordion_body,k&&dt.cardAccordion_body__settled),id:g,onKeyDown:T,onTransitionEnd:I,children:y.jsx("div",{className:dt.bodyInner,children:y.jsx("div",{className:dt.bodyInner_content,children:n})})})]})},on={cardNotification:"_cardNotification_15nvn_1",cardNotification_mainRow:"_cardNotification_mainRow_15nvn_10",iconState:"_iconState_15nvn_15",mainInfo:"_mainInfo_15nvn_18",closeButton:"_closeButton_15nvn_26",cardNotification__error:"_cardNotification__error_15nvn_30",cardNotification__outlined:"_cardNotification__outlined_15nvn_33",mainInfo_title:"_mainInfo_title_15nvn_36",cardNotification__warning:"_cardNotification__warning_15nvn_39",cardNotification__info:"_cardNotification__info_15nvn_48",cardNotification__success:"_cardNotification__success_15nvn_57",cardNotification__neutral:"_cardNotification__neutral_15nvn_66",mainInfo_description:"_mainInfo_description_15nvn_75"},sg={error:{name:"circle-cross",color:"red-50"},warning:{name:"alert-triangle",color:"warning-50"},info:{name:"circle-info",color:"blue-50"},success:{name:"circle-check",color:"green-50"}},ff=({state:e="error",outlined:t,title:n,children:r,className:i,dismissible:o=!1,extraContent:a,icon:s})=>{const[l,c]=v.useState(!0),u=[on.cardNotification,e&&(on==null?void 0:on[`cardNotification__${e}`]),t&&on.cardNotification__outlined,i&&i],d=sg[e],f=s??(d==null?void 0:d.name),p=(d==null?void 0:d.color)??"neutral-70",h=_=>typeof _=="string";return(_=>{let m=!1,b=!1;return v.Children.forEach(_,C=>{h(C)&&(b=!0),v.isValidElement(C)&&(m=!0)}),m&&b})(r)&&console.error("CardNotification component does not support mixed children, please use only string or ReactNode"),l?y.jsxs("article",{className:E(...u),children:[y.jsxs("section",{className:on.cardNotification_mainRow,children:[f&&y.jsx(ie,{className:on.iconState,name:f,color:p,filled:!s||s===(d==null?void 0:d.name)}),y.jsxs("div",{className:on.mainInfo,children:[n&&y.jsx(yt,{type:"h3",className:on.mainInfo_title,children:n}),h(r)&&y.jsx(je,{type:"sm",className:on.mainInfo_description,children:r}),v.isValidElement(r)&&y.jsx("div",{className:on.mainInfo_description,children:r})]}),o&&y.jsx("button",{className:on.closeButton,onClick:()=>c(!1),children:y.jsx(ie,{name:"close"})})]}),a&&a]}):null};ff.prototype={avocado:"CardNotification"};const Ec={pill:"_pill_twyo2_1",pill__outlined:"_pill__outlined_twyo2_15",pill_icon:"_pill_icon_twyo2_19"},Ic=({children:e,className:t="",icon:n,iconFilled:r=!1,color:i="neutral-10",textColor:o="neutral-80",iconColor:a="neutral-80",outlined:s=!1})=>{const l=E(Ec.pill,t&&t,s&&Ec.pill__outlined),c={"--pill-color":`var(--color-${i})`,"--pill-text-color":`var(--color-${o})`};return y.jsxs("div",{className:l,style:c,children:[!!n&&y.jsx(ie,{className:Ec.pill_icon,filled:r,name:n,color:a,size:"sm"}),e]})},lg={neutral:{name:"circle",color:"neutral-30"},success:{name:"circle-check",color:"success-50"},informative:{name:"circle-info",color:"info-50"},warning:{name:"alert-triangle",color:"warning-50"},negative:{name:"circle-cross",color:"error-50"}},cg={neutral:{color:"neutral-10",textColor:"neutral-80"},success:{color:"success-10",textColor:"success-60"},informative:{color:"info-10",textColor:"info-60"},warning:{color:"warning-10",textColor:"warning-60"},negative:{color:"error-10",textColor:"error-60"}},_n={dataCard:"_dataCard_1pihs_1",dataCard_header:"_dataCard_header_1pihs_9",headerDetails:"_headerDetails_1pihs_14",headerDetails_muted:"_headerDetails_muted_1pihs_21",dataCard_header__pill:"_dataCard_header__pill_1pihs_24",dataCard_content:"_dataCard_content_1pihs_31",dataCard__interactive:"_dataCard__interactive_1pihs_35",dataCard__showBorder:"_dataCard__showBorder_1pihs_62",dataCard__neutral:"_dataCard__neutral_1pihs_65",dataCard__success:"_dataCard__success_1pihs_68",dataCard__informative:"_dataCard__informative_1pihs_71",dataCard__warning:"_dataCard__warning_1pihs_74",dataCard__negative:"_dataCard__negative_1pihs_77",dataCard__palette1:"_dataCard__palette1_1pihs_80",dataCard__palette2:"_dataCard__palette2_1pihs_83",dataCard__palette3:"_dataCard__palette3_1pihs_86",dataCard__palette4:"_dataCard__palette4_1pihs_89",dataCard__palette5:"_dataCard__palette5_1pihs_92",dataCard__palette6:"_dataCard__palette6_1pihs_95",dataCard__palette7:"_dataCard__palette7_1pihs_98",dataCard__palette8:"_dataCard__palette8_1pihs_101",dataCard__palette9:"_dataCard__palette9_1pihs_104",dataCard__palette10:"_dataCard__palette10_1pihs_107",dataCard__palette11:"_dataCard__palette11_1pihs_110",dataCard__palette12:"_dataCard__palette12_1pihs_113",dataCard__palette13:"_dataCard__palette13_1pihs_116",dataCard__palette14:"_dataCard__palette14_1pihs_119",dataCard__palette15:"_dataCard__palette15_1pihs_122",dataCard__palette16:"_dataCard__palette16_1pihs_125",dataCard__palette17:"_dataCard__palette17_1pihs_128",dataCard__darkMode:"_dataCard__darkMode_1pihs_131"},ug=({headerStyle:e,status:t,disabled:n,icon:r,pillLabel:i})=>{if(e==="pill"){if(!i)return null;const{color:a,textColor:s}=cg[t];return y.jsx(Ic,{color:a,textColor:s,children:i})}if(e==="icon")return r?y.jsx("span",{"aria-hidden":"true",children:y.jsx(ie,{size:"lg",name:r,color:n?"neutral-30":"neutral-70"})}):null;if(!r&&t==="neutral")return null;const o=lg[t];return y.jsx("span",{"aria-hidden":"true",children:y.jsx(ie,{size:"lg",name:r??o.name,color:n?"neutral-30":o.color,filled:!r||r===o.name})})},dg=({headerStyle:e,status:t,title:n,descriptionTop:r,descriptionBottom:i,disabled:o,icon:a,pillLabel:s})=>{const l=o?_n.headerDetails_muted:void 0;return y.jsxs("div",{className:E(_n.dataCard_header,e==="pill"&&_n.dataCard_header__pill),children:[y.jsx(ug,{headerStyle:e,status:t,disabled:o,icon:a,pillLabel:s}),(r||n||i)&&y.jsxs("div",{className:_n.headerDetails,children:[r&&y.jsx(je,{className:l,children:r}),n&&y.jsx(yt,{type:"h2",className:l,children:n}),i&&y.jsx(je,{className:l,children:i})]})]})},fg=e=>{const{status:t="neutral",headerStyle:n="basic",title:r,ariaLabel:i,descriptionTop:o,descriptionBottom:a,showBorder:s=!1,borderColor:l,icon:c,pillLabel:u,children:d,className:f,onClick:p,disabled:h}=e,{theme:g}=ct(),_=p!==void 0;_&&!r&&!i&&console.warn("[DataCard] An interactive card needs `title` or `ariaLabel`: without one it renders a button with no accessible name.");const m=E(f,_n.dataCard,_n[`dataCard__${t}`],(s||l)&&_n.dataCard__showBorder,l&&_n[`dataCard__palette${l}`],_&&_n.dataCard__interactive,(g==null?void 0:g.mode)==="dark"&&_n.dataCard__darkMode),b=y.jsx(dg,{headerStyle:n,status:t,title:r,descriptionTop:o,descriptionBottom:a,disabled:h,icon:c,pillLabel:u}),C=d?y.jsx("div",{className:_n.dataCard_content,children:d}):null;return _?y.jsxs("button",{type:"button",className:m,onClick:p,disabled:h,"aria-label":r?void 0:i,children:[b,C]}):y.jsxs("article",{className:m,children:[b,C]})},or={dataCard:"_dataCard_31qnu_1",dataCard_topContent:"_dataCard_topContent_31qnu_11",dataCard_header:"_dataCard_header_31qnu_15",headerDetails:"_headerDetails_31qnu_19",dataCard_content:"_dataCard_content_31qnu_24",dataCard__neutral:"_dataCard__neutral_31qnu_28",dataCard__hasTopBar:"_dataCard__hasTopBar_31qnu_28",dataCard__info:"_dataCard__info_31qnu_31",dataCard__success:"_dataCard__success_31qnu_34",dataCard__warning:"_dataCard__warning_31qnu_37",dataCard__error:"_dataCard__error_31qnu_40",dataCard__palette_1_50:"_dataCard__palette_1_50_31qnu_43",dataCard__palette_2_50:"_dataCard__palette_2_50_31qnu_46",dataCard__palette_3_50:"_dataCard__palette_3_50_31qnu_49",dataCard__palette_4_50:"_dataCard__palette_4_50_31qnu_52",dataCard__palette_5_50:"_dataCard__palette_5_50_31qnu_55",dataCard__palette_6_50:"_dataCard__palette_6_50_31qnu_58",dataCard__palette_7_50:"_dataCard__palette_7_50_31qnu_61",dataCard__palette_8_50:"_dataCard__palette_8_50_31qnu_64",dataCard__palette_9_50:"_dataCard__palette_9_50_31qnu_67",dataCard__palette_10_50:"_dataCard__palette_10_50_31qnu_70",dataCard__palette_11_50:"_dataCard__palette_11_50_31qnu_73",dataCard__palette_12_50:"_dataCard__palette_12_50_31qnu_76",dataCard__palette_13_50:"_dataCard__palette_13_50_31qnu_79",dataCard__palette_14_50:"_dataCard__palette_14_50_31qnu_82",dataCard__palette_15_50:"_dataCard__palette_15_50_31qnu_85",dataCard__palette_16_50:"_dataCard__palette_16_50_31qnu_88",dataCard__palette_17_50:"_dataCard__palette_17_50_31qnu_91",dataCard__palette_18_50:"_dataCard__palette_18_50_31qnu_94",dataCard__darkMode:"_dataCard__darkMode_31qnu_100"},pg=({children:e,className:t,description:n,hasTopBar:r=!1,icon:i,title:o,variant:a,topContent:s,headerStatusColor:l})=>{const{theme:c}=ct(),u={neutral:{name:i,color:"neutral-30",filled:i==="circle"},success:{name:i,color:"success-50",filled:i==="circle-check"},warning:{name:i,color:"warning-50",filled:i==="alert-triangle"},error:{name:i,color:"error-50",filled:i==="circle-cross"},info:{name:i,color:"info-50",filled:i==="circle-info"}};return y.jsxs("article",{className:E(t&&t,or.dataCard,or[`dataCard__${a}`],or[`dataCard__${l}`],r&&or.dataCard__hasTopBar,(c==null?void 0:c.mode)==="dark"&&or.dataCard__darkMode),children:[s&&y.jsx("div",{className:or.dataCard_topContent,children:s}),y.jsxs("div",{className:or.dataCard_header,children:[y.jsx(ie,{size:"lg",...u==null?void 0:u[a]}),y.jsxs("div",{className:or.headerDetails,children:[y.jsx(yt,{type:"h2",children:o}),n&&y.jsx(je,{children:n})]})]}),e&&y.jsx("div",{className:or.dataCard_content,children:e})]})},hg=e=>e.version==="v2"?y.jsx(fg,{...e}):y.jsx(pg,{...e}),Qr={dataTableAction:"_dataTableAction_1j9ry_1",dataTableAction__left:"_dataTableAction__left_1j9ry_17",dataTableAction__right:"_dataTableAction__right_1j9ry_20",dataTableAction__disabled:"_dataTableAction__disabled_1j9ry_26",dataTableAction_icon:"_dataTableAction_icon_1j9ry_31",dataTableActionDimensions:"_dataTableActionDimensions_1j9ry_36",dataTableActionsGroup:"_dataTableActionsGroup_1j9ry_41"},Io=e=>{const{classname:t,disabled:n=!1,hide:r=!1,icon:i="circle-check",iconSize:o="lg",position:a,type:s="primary",onClick:l,children:c}=e;return r?y.jsx("div",{className:E(Qr.dataTableActionDimensions,t&&(t==null?void 0:t.aside))}):y.jsx("aside",{"data-testid":"table-action-aside",className:E(Qr.dataTableAction,Qr[`dataTableAction__${a}`],n&&Qr.dataTableAction__disabled,(t==null?void 0:t.aside)&&(t==null?void 0:t.aside)),onClick:()=>l&&l(),children:c||y.jsx(ie,{name:i,size:o,className:E(Qr.dataTableAction_icon,!n&&Qr[`dataTableAction_icon__${s}`],(t==null?void 0:t.icon)&&(t==null?void 0:t.icon))})})};Io.prototype={avocado:"DataTableAction"};const pf=e=>{const{children:t}=e;return y.jsx(y.Fragment,{children:t})};pf.prototype={avocado:"DataTableSubActions"};const rs=e=>{var t,n,r,i,o;return{maxWidth:((t=e==null?void 0:e.styles)==null?void 0:t.maxWidth)||"auto",minWidth:((n=e==null?void 0:e.styles)==null?void 0:n.minWidth)||"0px",padding:((r=e==null?void 0:e.styles)==null?void 0:r.padding)||"auto",textAlign:((i=e==null?void 0:e.styles)==null?void 0:i.textAlign)||"left",width:((o=e==null?void 0:e.styles)==null?void 0:o.width)||"150px"}},Oc=(e,t)=>{var l,c,u;const r=window.innerWidth<=991.98,{responsive:i,...o}=e;let a=null,s=null;return r&&(i!=null&&i.mobile)?(a=rs(i==null?void 0:i.mobile),s=((l=i==null?void 0:i.mobile)==null?void 0:l.position)||t):!r&&(i!=null&&i.desktop)?(a=rs(i==null?void 0:i.desktop),s=((c=i==null?void 0:i.desktop)==null?void 0:c.position)||t):i!=null&&i.allDevices?(a=rs(i==null?void 0:i.allDevices),s=((u=i==null?void 0:i.allDevices)==null?void 0:u.position)||t):(a=rs(),s=t),{position:s,styles:a,...o}},is=e=>{var t;if(typeof(e==null?void 0:e.type)=="function"){const n=(t=e==null?void 0:e.type)==null?void 0:t.prototype.avocado;return n&&(n==="DataTableAction"||n==="DataTableSubActions")?e:!1}},hf=e=>{var t;if(typeof(e==null?void 0:e.type)=="function"){const n=(t=e==null?void 0:e.type)==null?void 0:t.prototype.avocado;return n&&n==="DataTableActionsGroup"?e:!1}},Ac=e=>{const{children:t,className:n}=e,r=[];return t&&(Array.isArray(t)?t.forEach(i=>{is(i)&&r.push({isChild:!0,component:i})}):is(t)&&r.push({isChild:!0,component:t})),y.jsx("section",{className:E(Qr.dataTableActionsGroup,n&&n),children:r==null?void 0:r.map(i=>i.component)})};Ac.prototype={avocado:"DataTableActionsGroup"};const oe={dataTableRow:"_dataTableRow_i3o7r_1",dataTableRow__regular:"_dataTableRow__regular_i3o7r_10",dataTableRow_mainContent:"_dataTableRow_mainContent_i3o7r_15",cellsContent_grouped:"_cellsContent_grouped_i3o7r_19",dataTableRow_subContent:"_dataTableRow_subContent_i3o7r_22",actionContent:"_actionContent_i3o7r_27",actionContent__hideLeft:"_actionContent__hideLeft_i3o7r_30",cellsContent:"_cellsContent_i3o7r_19",cell:"_cell_i3o7r_19",cell_label:"_cell_label_i3o7r_64",accordionActions:"_accordionActions_i3o7r_67",buttonChevron:"_buttonChevron_i3o7r_70",buttonChevron_icon:"_buttonChevron_icon_i3o7r_78",buttonChevron_icon__open:"_buttonChevron_icon__open_i3o7r_82",buttonChevron__component:"_buttonChevron__component_i3o7r_85",openOverlay:"_openOverlay_i3o7r_88",tooltipWrapper:"_tooltipWrapper_i3o7r_91",tooltip__top:"_tooltip__top_i3o7r_97",tooltip__bottom:"_tooltip__bottom_i3o7r_100",tooltip:"_tooltip_i3o7r_91",dataTableRow_overlayContent:"_dataTableRow_overlayContent_i3o7r_119",dataTableRow_subContent__open:"_dataTableRow_subContent__open_i3o7r_130",dataTableRow__accordion:"_dataTableRow__accordion_i3o7r_140",dataTableRow__simple:"_dataTableRow__simple_i3o7r_140",dataTableRow__open:"_dataTableRow__open_i3o7r_151",dataTableRow__dark:"_dataTableRow__dark_i3o7r_157",cellsContent__row:"_cellsContent__row_i3o7r_220",cellsContent__withChevron:"_cellsContent__withChevron_i3o7r_235",cellsContent__rightActionsWithChevron:"_cellsContent__rightActionsWithChevron_i3o7r_238",closeOverlay:"_closeOverlay_i3o7r_256",closeOverlay_icon:"_closeOverlay_icon_i3o7r_268",optionsOverlay:"_optionsOverlay_i3o7r_271",optionsOverlay_item:"_optionsOverlay_item_i3o7r_276",icon:"_icon_i3o7r_297",dataTableRow__showOverlay:"_dataTableRow__showOverlay_i3o7r_301"},Nc=e=>{const{columns:t,data:n,isMobile:r=!1,leftActions:i,rightActions:o}=e,[a,s]=v.useState(!1),l=v.useRef(null),[c,u]=v.useState(),[d,f]=v.useState("top"),p=_=>{const m=_==null?void 0:_.renderComponent(n),b=m==null?void 0:m.props.children,C=[];return b==null||b.forEach(x=>{is(x)&&C.push(x)}),y.jsx("section",{className:oe.optionsOverlay,children:C==null?void 0:C.map((x,w)=>{var k,S;return y.jsxs("div",{className:oe.optionsOverlay_item,onClick:()=>{var M,P;return((M=x==null?void 0:x.props)==null?void 0:M.onClick)&&((P=x==null?void 0:x.props)==null?void 0:P.onClick())},children:[y.jsx(ie,{className:oe.icon,name:(k=x==null?void 0:x.props)==null?void 0:k.icon,size:"lg"}),y.jsx("p",{children:(S=x==null?void 0:x.props)==null?void 0:S.label})]},`action-${w}`)})})},h=_=>{const m=_==null?void 0:_.renderComponent(n);return hf(m)?y.jsxs("div",{className:oe.dataTableRow_overlayContent,children:[y.jsx("aside",{className:oe.closeOverlay,onClick:()=>{s(!1)},children:y.jsx(ie,{className:oe.closeOverlay_icon,name:"circle-cross",filled:!0,size:"lg"})}),p(o)]}):null},g=(_,m="left")=>{var C;const b=_==null?void 0:_.renderComponent(n);return is(b)?y.jsx(Io,{position:m,classname:{aside:E(oe.actionContent,(_==null?void 0:_.visibility)===!1&&m==="left"&&oe.actionContent__hideLeft,(C=b==null?void 0:b.props.classname)==null?void 0:C.aside)},...b==null?void 0:b.props}):hf(b)?r&&(_!=null&&_.groupedOnMobile)?y.jsx(Io,{classname:{icon:oe.openOverlay},icon:"circle-dots",position:"right",onClick:()=>{s(!0)}}):y.jsx(Ac,{className:E(oe.actionContent,b==null?void 0:b.props.className),...b==null?void 0:b.props,children:b==null?void 0:b.props.children}):null};return v.useEffect(()=>{if(c){const _=l.current.getBoundingClientRect(),m=_.y,b=_.height,C=m-b>0;f(C?"top":"bottom")}},[l.current]),y.jsxs("div",{className:E(oe.dataTableRow,oe.dataTableRow__regular,a&&oe.dataTableRow__showOverlay),children:[y.jsxs("div",{className:oe.dataTableRow_mainContent,children:[i&&g(i),y.jsx("ul",{className:E(oe.cellsContent,(n==null?void 0:n.disabled)&&oe.cellsContent__disabled),children:t==null?void 0:t.map((_,m)=>y.jsx("li",{className:oe.cellsContent_grouped,style:_.length===1&&!r?_[0].styles:void 0,children:_==null?void 0:_.map((b,C)=>y.jsxs("div",{className:oe.cell,onMouseEnter:()=>{u(b==null?void 0:b.accessor)},onMouseLeave:()=>u(""),ref:l,children:[y.jsx("label",{className:oe.cell_label,children:b==null?void 0:b.header}),c===(b==null?void 0:b.accessor)&&(b==null?void 0:b.tooltip)&&y.jsx("div",{className:E(oe.tooltipWrapper,d&&oe[`tooltip__${d}`]),children:y.jsx("span",{className:E(oe.tooltip),children:b!=null&&b.renderCell?b==null?void 0:b.renderCell(n):n[b==null?void 0:b.accessor]})}),b!=null&&b.renderCell?b==null?void 0:b.renderCell(n):n[b==null?void 0:b.accessor]]},`cell-${C}`))},`groupedData-${m}`))}),o&&g(o,"right")]}),r&&h(o)]})};Nc.prototype={avocado:"DataTableRow"};const an={dataTableHeader:"_dataTableHeader_1tb9v_1",dataTableHeader_action:"_dataTableHeader_action_1tb9v_6",dataTableHeader_action__hideLeft:"_dataTableHeader_action__hideLeft_1tb9v_15",dataTableHeader_mainList:"_dataTableHeader_mainList_1tb9v_21",listItem:"_listItem_1tb9v_28",listItemChevron:"_listItemChevron_1tb9v_39",dataTableHeaderMobile:"_dataTableHeaderMobile_1tb9v_45"},Rc=e=>{const{className:t,columns:n,contentType:r="regular",isMobile:i,leftActions:o,rightActions:a,styleBody:s}=e;let l=i?an.dataTableHeaderMobile:an.dataTableHeader;return l=r==="accordion"&&s==="inheritance"?an.dataTableHeader:l,y.jsxs("section",{className:E(l,t&&t,an==null?void 0:an[`dataTableHeader__${r}`]),children:[o&&y.jsx("div",{className:E(an.dataTableHeader_action,o.visibility===!1&&an.dataTableHeader_action__hideLeft),children:o==null?void 0:o.header}),y.jsxs("ul",{className:E(an.dataTableHeader_mainList),children:[n==null?void 0:n.map((c,u)=>y.jsx("li",{className:E(an.listItem),style:Oc(c,u).styles,children:c==null?void 0:c.header},`header-column-${u}`)),r==="accordion"&&y.jsx("li",{className:E(an.listItemChevron)})]}),a&&y.jsx("div",{className:E(an.dataTableHeader_action),children:a==null?void 0:a.header})]})};Rc.prototype={avocado:"DataTableHeader"};const mf=e=>{var _;const{columns:t,data:n,isMobile:r=!1,keyBody:i="",renderBody:o,styleBody:a,rightActions:s}=e,{theme:l}=ct(),[c,u]=v.useState(!1),d=r&&a==="custom",f=a==="inheritance"?!!n[i]:!0,p=m=>{const b=[],C=o?o(m):[];C==null||C.forEach((w,k)=>{const S=Oc(w,k);(b[S.position]=b[S.position]||[]).push(S)});const x=b==null?void 0:b.map((w,k)=>y.jsx("li",{className:oe.cellsContent_grouped,style:w.length===1&&!d?w[0].styles:null,children:w==null?void 0:w.map((S,M)=>y.jsx("div",{className:oe.cell,children:S!=null&&S.renderCell?S==null?void 0:S.renderCell(n):n[S==null?void 0:S.accessor]},`cell-sub-${M}`))},`subColumn-${k}`));return x.length>0&&a==="inheritance"&&x.push(y.jsx("li",{className:E(oe.buttonChevron)})),x},h=()=>y.jsx(Io,{classname:{aside:E(oe.buttonChevron,oe.buttonChevron__component),icon:E(oe.buttonChevron_icon,c&&oe.buttonChevron_icon__open)},icon:"chevron-down",position:"right",onClick:()=>f&&u(!c)}),g=()=>s?y.jsxs("section",{className:oe.accordionActions,children:[s&&(s==null?void 0:s.renderComponent(n)),h()]}):h();return y.jsxs("div",{className:E(oe.dataTableRow,oe.dataTableRow__accordion,a!=="custom"&&oe.dataTableRow__simple,c&&oe.dataTableRow__open,(l==null?void 0:l.mode)==="dark"&&oe.dataTableRow__dark),children:[y.jsxs("div",{className:oe.dataTableRow_mainContent,children:[y.jsx("ul",{className:E(oe.cellsContent,oe.cellsContent__withChevron,a==="custom"&&s&&oe.cellsContent__rightActionsWithChevron,!d&&oe.cellsContent__row),children:t==null?void 0:t.map((m,b)=>y.jsx("li",{className:oe.cellsContent_grouped,style:m.length===1&&!d?m[0].styles:null,children:m==null?void 0:m.map((C,x)=>y.jsxs("div",{className:oe.cell,style:C.styles,children:[d&&y.jsx("label",{className:oe.cell_label,children:C==null?void 0:C.header}),C!=null&&C.renderCell?C==null?void 0:C.renderCell(n):n[C==null?void 0:C.accessor]]},`cell-main-${x}`))},`groupedData-main-${b}`))}),a==="inheritance"?y.jsx("div",{className:E(oe.buttonChevron),onClick:()=>f&&u(!c),children:f&&y.jsx(ie,{className:E(oe.buttonChevron_icon,c&&oe.buttonChevron_icon__open),name:"chevron-down",size:"md"})}):g()]}),y.jsxs("div",{className:E(oe.dataTableRow_subContent,c&&oe.dataTableRow_subContent__open),children:[a==="inheritance"&&((_=n[i])==null?void 0:_.map((m,b)=>y.jsx("ul",{className:E(oe.cellsContent,oe.cellsContent__withChevron,!d&&oe.cellsContent__row),children:p(m)},`subRow-${b}`))),a==="custom"&&y.jsx("ul",{className:E(oe.cellsContent),children:o&&o(n)})]})]})};mf.prototype={avocado:"DataTableRowAccordion"};const Xr={dataTableContent:"_dataTableContent_1mrjm_1",dataTableContent__regular:"_dataTableContent__regular_1mrjm_4",dataTableContent__dark:"_dataTableContent__dark_1mrjm_9"},_f=e=>{const{className:t,classNameHeader:n,columns:r,data:i,leftActions:o,rightActions:a,contentType:s="regular",keyBody:l,styleBody:c="inheritance",renderBody:u}=e,{theme:d}=ct(),f=window.innerWidth<=991.98,p=[];return r==null||r.forEach((h,g)=>{const _=Oc(h,g);(p[_.position]=p[_.position]||[]).push(_)}),y.jsxs("section",{className:E(Xr.dataTableContent,t&&t,Xr==null?void 0:Xr[`dataTableContent__${s}`],Xr==null?void 0:Xr[`dataTableContent__${d.mode}`]),children:[y.jsx(Rc,{className:n&&n,columns:r,contentType:s,isMobile:f,leftActions:o,rightActions:a,styleBody:c}),i==null?void 0:i.map((h,g)=>s==="accordion"?y.jsx(mf,{columns:p,data:h,isMobile:f,keyBody:l,renderBody:_=>u&&u(_),styleBody:c,rightActions:a},`row-accordion-${g}`):y.jsx(Nc,{columns:p,data:h,isMobile:f,leftActions:o,rightActions:a},g))]})};_f.prototype={avocado:"DataTableContent"};const mg={Action:Io,SubActions:pf,ActionsGroup:Ac,Content:_f,Header:Rc,Row:Nc};function gf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=gf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ft(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=gf(e))&&(r&&(r+=" "),r+=t);return r}function _g(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jc(e,t)}function jc(e,t){return jc=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},jc(e,t)}function gg(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}function yf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yg(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function bg(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&yg(e,t,n))return!0;e=e.parentNode||e.host}return e}function vg(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var Cg=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function wg(e){return e===void 0&&(e=0),function(){return++e}}var xg=wg(),Fc,os={},Vc={},kg=["touchstart","touchmove"],Sg="ignore-react-onclickoutside";function bf(e,t){var n={},r=kg.indexOf(t)!==-1;return r&&Fc&&(n.passive=!e.props.preventDefault),n}function as(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=(function(o){_g(a,o);function a(l){var c;return c=o.call(this,l)||this,c.__outsideClickHandler=function(u){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(u);return}var d=c.getInstance();if(typeof d.props.handleClickOutside=="function"){d.props.handleClickOutside(u);return}if(typeof d.handleClickOutside=="function"){d.handleClickOutside(u);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var u=c.getInstance();return typeof u.setClickOutsideRef=="function"?u.setClickOutsideRef():St.findDOMNode(u)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||Vc[c._uid])){typeof Fc>"u"&&(Fc=Cg()),Vc[c._uid]=!0;var u=c.props.eventTypes;u.forEach||(u=[u]),os[c._uid]=function(d){if(c.componentNode!==null&&!(c.initTimeStamp>d.timeStamp)&&(c.props.preventDefault&&d.preventDefault(),c.props.stopPropagation&&d.stopPropagation(),!(c.props.excludeScrollbar&&vg(d)))){var f=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;bg(f,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(d)}},u.forEach(function(d){document.addEventListener(d,os[c._uid],bf(yf(c),d))})}},c.disableOnClickOutside=function(){delete Vc[c._uid];var u=os[c._uid];if(u&&typeof document<"u"){var d=c.props.eventTypes;d.forEach||(d=[d]),d.forEach(function(f){return document.removeEventListener(f,u,bf(yf(c),f))}),delete os[c._uid]}},c.getRef=function(u){return c.instanceRef=u},c._uid=xg(),c.initTimeStamp=performance.now(),c}var s=a.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},s.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var c=this.props;c.excludeScrollbar;var u=gg(c,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?u.ref=this.getRef:u.wrappedRef=this.getRef,u.disableOnClickOutside=this.disableOnClickOutside,u.enableOnClickOutside=this.enableOnClickOutside,v.createElement(e,u)},a})(v.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:Sg,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}function X(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Oe(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function xr(e,t){const n=X(e);return isNaN(t)?Oe(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Bc(e,t){const n=+X(e);return Oe(e,n+t)}const vf=6048e5,Tg=864e5,ss=6e4,ls=36e5,Mg=1e3;function Dg(e,t){return Bc(e,t*ls)}function Hc(e,t){return Bc(e,t*ss)}function gn(e,t){const n=X(e);if(isNaN(t))return Oe(e,NaN);if(!t)return n;const r=n.getDate(),i=Oe(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const o=i.getDate();return r>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function $c(e,t){const n=t*3;return gn(e,n)}function Lg(e,t){return Bc(e,t*1e3)}function cs(e,t){const n=t*7;return xr(e,n)}function ar(e,t){return gn(e,t*12)}function Jr(e){const t=X(e);return t.setHours(0,0,0,0),t}function us(e){const t=X(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Oo(e,t){const n=Jr(e),r=Jr(t),i=+n-us(n),o=+r-us(r);return Math.round((i-o)/Tg)}function ds(e,t){const n=X(e),r=X(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function ei(e){const t=X(e);return Math.trunc(t.getMonth()/3)+1}function fs(e,t){const n=X(e),r=X(t),i=n.getFullYear()-r.getFullYear(),o=ei(n)-ei(r);return i*4+o}function ps(e,t){const n=X(e),r=X(t);return n.getFullYear()-r.getFullYear()}function Cf(e){const t=X(e);return t.setHours(23,59,59,999),t}function Pg(e){const t=X(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}let Eg={};function ti(){return Eg}function Ig(e,t){var s,l;const n=ti(),r=n.weekStartsOn??((l=(s=n.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??0,i=X(e),o=i.getDay(),a=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}function wf(e){const t=X(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}const Og={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ag=(e,t,n)=>{let r;const i=Og[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function zc(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ng={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Rg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jg={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fg={date:zc({formats:Ng,defaultWidth:"full"}),time:zc({formats:Rg,defaultWidth:"full"}),dateTime:zc({formats:jg,defaultWidth:"full"})},Vg={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Bg=(e,t,n,r)=>Vg[e];function Ao(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Hg={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$g={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zg={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Wg={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Yg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ug={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Zg={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Ao({values:Hg,defaultWidth:"wide"}),quarter:Ao({values:$g,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ao({values:zg,defaultWidth:"wide"}),day:Ao({values:Wg,defaultWidth:"wide"}),dayPeriod:Ao({values:Yg,defaultWidth:"wide",formattingValues:Ug,defaultFormattingWidth:"wide"})};function No(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Gg(s,d=>d.test(a)):qg(s,d=>d.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}function qg(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Gg(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Kg(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const Qg=/^(\d+)(th|st|nd|rd)?/i,Xg=/\d+/i,Jg={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ey={any:[/^b/i,/^(a|c)/i]},ty={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ny={any:[/1/i,/2/i,/3/i,/4/i]},ry={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},iy={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},oy={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ay={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},sy={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ly={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cy={ordinalNumber:Kg({matchPattern:Qg,parsePattern:Xg,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:Jg,defaultMatchWidth:"wide",parsePatterns:ey,defaultParseWidth:"any"}),quarter:No({matchPatterns:ty,defaultMatchWidth:"wide",parsePatterns:ny,defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:ry,defaultMatchWidth:"wide",parsePatterns:iy,defaultParseWidth:"any"}),day:No({matchPatterns:oy,defaultMatchWidth:"wide",parsePatterns:ay,defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:sy,defaultMatchWidth:"any",parsePatterns:ly,defaultParseWidth:"any"})},xf={code:"en-US",formatDistance:Ag,formatLong:Fg,formatRelative:Bg,localize:Zg,match:cy,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hs(e){const t=X(e),n=Oe(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function uy(e){const t=X(e);return Oo(t,hs(t))+1}function sr(e,t){var s,l,c,u;const n=ti(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=X(e),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Ei(e){return sr(e,{weekStartsOn:1})}function kf(e){const t=X(e),n=t.getFullYear(),r=Oe(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Ei(r),o=Oe(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=Ei(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function dy(e){const t=kf(e),n=Oe(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ei(n)}function Wc(e){const t=X(e),n=+Ei(t)-+dy(t);return Math.round(n/vf)+1}function Yc(e,t){var u,d,f,p;const n=X(e),r=n.getFullYear(),i=ti(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(f=i.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=Oe(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=sr(a,t),l=Oe(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=sr(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function fy(e,t){var s,l,c,u;const n=ti(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,i=Yc(e,t),o=Oe(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),sr(o,t)}function Sf(e,t){const n=X(e),r=+sr(n,t)-+fy(n,t);return Math.round(r/vf)+1}function Ae(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const kr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ae(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ae(n+1,2)},d(e,t){return Ae(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ae(e.getHours()%12||12,t.length)},H(e,t){return Ae(e.getHours(),t.length)},m(e,t){return Ae(e.getMinutes(),t.length)},s(e,t){return Ae(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Ae(i,t.length)}},Ii={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Tf={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return kr.y(e,t)},Y:function(e,t,n,r){const i=Yc(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Ae(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ae(o,t.length)},R:function(e,t){const n=kf(e);return Ae(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ae(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ae(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ae(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return kr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ae(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Sf(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ae(i,t.length)},I:function(e,t,n){const r=Wc(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ae(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):kr.d(e,t)},D:function(e,t,n){const r=uy(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ae(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ae(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ae(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Ae(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Ii.noon:r===0?i=Ii.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Ii.evening:r>=12?i=Ii.afternoon:r>=4?i=Ii.morning:i=Ii.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return kr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):kr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ae(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ae(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):kr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):kr.s(e,t)},S:function(e,t){return kr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Df(r);case"XXXX":case"XX":return ni(r);case"XXXXX":case"XXX":default:return ni(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Df(r);case"xxxx":case"xx":return ni(r);case"xxxxx":case"xxx":default:return ni(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mf(r,":");case"OOOO":default:return"GMT"+ni(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mf(r,":");case"zzzz":default:return"GMT"+ni(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Ae(r,t.length)},T:function(e,t,n){const r=e.getTime();return Ae(r,t.length)}};function Mf(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Ae(o,2)}function Df(e,t){return e%60===0?(e>0?"-":"+")+Ae(Math.abs(e)/60,2):ni(e,t)}function ni(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Ae(Math.trunc(r/60),2),o=Ae(r%60,2);return n+i+t+o}const Lf=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Pf=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ms={p:Pf,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Lf(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Lf(r,t)).replace("{{time}}",Pf(i,t))}},py=/^D+$/,hy=/^Y+$/,my=["D","DD","YY","YYYY"];function Ef(e){return py.test(e)}function If(e){return hy.test(e)}function Uc(e,t,n){const r=_y(e,t,n);if(console.warn(r),my.includes(e))throw new RangeError(r)}function _y(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function lr(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function _s(e){if(!lr(e)&&typeof e!="number")return!1;const t=X(e);return!isNaN(Number(t))}const gy=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yy=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,by=/^'([^]*?)'?$/,vy=/''/g,Cy=/[a-zA-Z]/;function Of(e,t,n){var u,d,f,p,h,g,_,m;const r=ti(),i=(n==null?void 0:n.locale)??r.locale??xf,o=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((g=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((m=(_=r.locale)==null?void 0:_.options)==null?void 0:m.weekStartsOn)??0,s=X(e);if(!_s(s))throw new RangeError("Invalid time value");let l=t.match(yy).map(b=>{const C=b[0];if(C==="p"||C==="P"){const x=ms[C];return x(b,i.formatLong)}return b}).join("").match(gy).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const C=b[0];if(C==="'")return{isToken:!1,value:wy(b)};if(Tf[C])return{isToken:!0,value:b};if(C.match(Cy))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:b}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(b=>{if(!b.isToken)return b.value;const C=b.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&If(C)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Ef(C))&&Uc(C,t,String(e));const x=Tf[C[0]];return x(s,C,i.localize,c)}).join("")}function wy(e){const t=e.match(by);return t?t[1].replace(vy,"'"):e}function Af(e){return X(e).getDate()}function xy(e){return X(e).getDay()}function In(e){return X(e).getHours()}function On(e){return X(e).getMinutes()}function Mt(e){return X(e).getMonth()}function cr(e){return X(e).getSeconds()}function Zc(e){return X(e).getTime()}function pe(e){return X(e).getFullYear()}function Sr(e,t){const n=X(e),r=X(t);return n.getTime()>r.getTime()}function ri(e,t){const n=X(e),r=X(t);return+n<+r}function ky(e,t){const n=X(e),r=X(t);return+n==+r}function Sy(e,t){const n=Jr(e),r=Jr(t);return+n==+r}function Ty(e,t){const n=X(e),r=X(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function qc(e){const t=X(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function My(e,t){const n=qc(e),r=qc(t);return+n==+r}function Dy(e,t){const n=X(e),r=X(t);return n.getFullYear()===r.getFullYear()}function Ro(e,t){const n=+X(e),[r,i]=[+X(t.start),+X(t.end)].sort((o,a)=>o-a);return n>=r&&n<=i}function Nf(e){let t;return e.forEach(function(n){const r=X(n);(t===void 0||t<r||isNaN(Number(r)))&&(t=r)}),t||new Date(NaN)}function Rf(e){let t;return e.forEach(n=>{const r=X(n);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function Ly(){return Object.assign({},ti())}function Py(e,t){const n=t instanceof Date?Oe(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}const Ey=10;class jf{constructor(){Q(this,"subPriority",0)}validate(t,n){return!0}}class Iy extends jf{constructor(t,n,r,i,o){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=i,o&&(this.subPriority=o)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class Oy extends jf{constructor(){super(...arguments);Q(this,"priority",Ey);Q(this,"subPriority",-1)}set(n,r){return r.timestampIsSet?n:Oe(n,Py(n,Date))}}class Se{run(t,n,r,i){const o=this.parse(t,n,r,i);return o?{setter:new Iy(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(t,n,r){return!0}}class Ay extends Se{constructor(){super(...arguments);Q(this,"priority",140);Q(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,i){switch(r){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,r,i){return r.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}const et={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},An={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function tt(e,t){return e&&{value:t(e.value),rest:e.rest}}function Ze(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Nn(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*ls+o*ss+a*Mg),rest:t.slice(n[0].length)}}function Ff(e){return Ze(et.anyDigitsSigned,e)}function Ge(e,t){switch(e){case 1:return Ze(et.singleDigit,t);case 2:return Ze(et.twoDigits,t);case 3:return Ze(et.threeDigits,t);case 4:return Ze(et.fourDigits,t);default:return Ze(new RegExp("^\\d{1,"+e+"}"),t)}}function gs(e,t){switch(e){case 1:return Ze(et.singleDigitSigned,t);case 2:return Ze(et.twoDigitsSigned,t);case 3:return Ze(et.threeDigitsSigned,t);case 4:return Ze(et.fourDigitsSigned,t);default:return Ze(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Gc(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Vf(e,t){const n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const o=r+50,a=Math.trunc(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return n?i:1-i}function Bf(e){return e%400===0||e%4===0&&e%100!==0}class Ny extends Se{constructor(){super(...arguments);Q(this,"priority",130);Q(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,i){const o=a=>({year:a,isTwoDigitYear:r==="yy"});switch(r){case"y":return tt(Ge(4,n),o);case"yo":return tt(i.ordinalNumber(n,{unit:"year"}),o);default:return tt(Ge(r.length,n),o)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i){const o=n.getFullYear();if(i.isTwoDigitYear){const s=Vf(i.year,o);return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}const a=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}}class Ry extends Se{constructor(){super(...arguments);Q(this,"priority",130);Q(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,i){const o=a=>({year:a,isTwoDigitYear:r==="YY"});switch(r){case"Y":return tt(Ge(4,n),o);case"Yo":return tt(i.ordinalNumber(n,{unit:"year"}),o);default:return tt(Ge(r.length,n),o)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i,o){const a=Yc(n,o);if(i.isTwoDigitYear){const l=Vf(i.year,a);return n.setFullYear(l,0,o.firstWeekContainsDate),n.setHours(0,0,0,0),sr(n,o)}const s=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(s,0,o.firstWeekContainsDate),n.setHours(0,0,0,0),sr(n,o)}}class jy extends Se{constructor(){super(...arguments);Q(this,"priority",130);Q(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return gs(r==="R"?4:r.length,n)}set(n,r,i){const o=Oe(n,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),Ei(o)}}class Fy extends Se{constructor(){super(...arguments);Q(this,"priority",130);Q(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return gs(r==="u"?4:r.length,n)}set(n,r,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}class Vy extends Se{constructor(){super(...arguments);Q(this,"priority",120);Q(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"Q":case"QQ":return Ge(r.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class By extends Se{constructor(){super(...arguments);Q(this,"priority",120);Q(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"q":case"qq":return Ge(r.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class Hy extends Se{constructor(){super(...arguments);Q(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);Q(this,"priority",110)}parse(n,r,i){const o=a=>a-1;switch(r){case"M":return tt(Ze(et.month,n),o);case"MM":return tt(Ge(2,n),o);case"Mo":return tt(i.ordinalNumber(n,{unit:"month"}),o);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}class $y extends Se{constructor(){super(...arguments);Q(this,"priority",110);Q(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,i){const o=a=>a-1;switch(r){case"L":return tt(Ze(et.month,n),o);case"LL":return tt(Ge(2,n),o);case"Lo":return tt(i.ordinalNumber(n,{unit:"month"}),o);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}function zy(e,t,n){const r=X(e),i=Sf(r,n)-t;return r.setDate(r.getDate()-i*7),r}class Wy extends Se{constructor(){super(...arguments);Q(this,"priority",100);Q(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,i){switch(r){case"w":return Ze(et.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return Ge(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i,o){return sr(zy(n,i,o),o)}}function Yy(e,t){const n=X(e),r=Wc(n)-t;return n.setDate(n.getDate()-r*7),n}class Uy extends Se{constructor(){super(...arguments);Q(this,"priority",100);Q(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,i){switch(r){case"I":return Ze(et.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return Ge(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i){return Ei(Yy(n,i))}}const Zy=[31,28,31,30,31,30,31,31,30,31,30,31],qy=[31,29,31,30,31,30,31,31,30,31,30,31];class Gy extends Se{constructor(){super(...arguments);Q(this,"priority",90);Q(this,"subPriority",1);Q(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"d":return Ze(et.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return Ge(r.length,n)}}validate(n,r){const i=n.getFullYear(),o=Bf(i),a=n.getMonth();return o?r>=1&&r<=qy[a]:r>=1&&r<=Zy[a]}set(n,r,i){return n.setDate(i),n.setHours(0,0,0,0),n}}class Ky extends Se{constructor(){super(...arguments);Q(this,"priority",90);Q(this,"subpriority",1);Q(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,i){switch(r){case"D":case"DD":return Ze(et.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return Ge(r.length,n)}}validate(n,r){const i=n.getFullYear();return Bf(i)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}}function Kc(e,t,n){var d,f,p,h;const r=ti(),i=(n==null?void 0:n.weekStartsOn)??((f=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??r.weekStartsOn??((h=(p=r.locale)==null?void 0:p.options)==null?void 0:h.weekStartsOn)??0,o=X(e),a=o.getDay(),l=(t%7+7)%7,c=7-i,u=t<0||t>6?t-(a+c)%7:(l+c)%7-(a+c)%7;return xr(o,u)}class Qy extends Se{constructor(){super(...arguments);Q(this,"priority",90);Q(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,o){return n=Kc(n,i,o),n.setHours(0,0,0,0),n}}class Xy extends Se{constructor(){super(...arguments);Q(this,"priority",90);Q(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,i,o){const a=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return tt(Ge(r.length,n),a);case"eo":return tt(i.ordinalNumber(n,{unit:"day"}),a);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,o){return n=Kc(n,i,o),n.setHours(0,0,0,0),n}}class Jy extends Se{constructor(){super(...arguments);Q(this,"priority",90);Q(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,i,o){const a=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return tt(Ge(r.length,n),a);case"co":return tt(i.ordinalNumber(n,{unit:"day"}),a);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,o){return n=Kc(n,i,o),n.setHours(0,0,0,0),n}}function eb(e){let n=X(e).getDay();return n===0&&(n=7),n}function tb(e,t){const n=X(e),r=eb(n),i=t-r;return xr(n,i)}class nb extends Se{constructor(){super(...arguments);Q(this,"priority",90);Q(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,i){const o=a=>a===0?7:a;switch(r){case"i":case"ii":return Ge(r.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return tt(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),o);case"iiiii":return tt(i.day(n,{width:"narrow",context:"formatting"}),o);case"iiiiii":return tt(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),o);case"iiii":default:return tt(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),o)}}validate(n,r){return r>=1&&r<=7}set(n,r,i){return n=tb(n,i),n.setHours(0,0,0,0),n}}class rb extends Se{constructor(){super(...arguments);Q(this,"priority",80);Q(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,i){switch(r){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(Gc(i),0,0,0),n}}class ib extends Se{constructor(){super(...arguments);Q(this,"priority",80);Q(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,i){switch(r){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(Gc(i),0,0,0),n}}class ob extends Se{constructor(){super(...arguments);Q(this,"priority",80);Q(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,i){switch(r){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(Gc(i),0,0,0),n}}class ab extends Se{constructor(){super(...arguments);Q(this,"priority",70);Q(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,i){switch(r){case"h":return Ze(et.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return Ge(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,i){const o=n.getHours()>=12;return o&&i<12?n.setHours(i+12,0,0,0):!o&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}}class sb extends Se{constructor(){super(...arguments);Q(this,"priority",70);Q(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,i){switch(r){case"H":return Ze(et.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return Ge(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,i){return n.setHours(i,0,0,0),n}}class lb extends Se{constructor(){super(...arguments);Q(this,"priority",70);Q(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,i){switch(r){case"K":return Ze(et.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return Ge(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}}class cb extends Se{constructor(){super(...arguments);Q(this,"priority",70);Q(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,i){switch(r){case"k":return Ze(et.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return Ge(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,i){const o=i<=24?i%24:i;return n.setHours(o,0,0,0),n}}class ub extends Se{constructor(){super(...arguments);Q(this,"priority",60);Q(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"m":return Ze(et.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return Ge(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setMinutes(i,0,0),n}}class db extends Se{constructor(){super(...arguments);Q(this,"priority",50);Q(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"s":return Ze(et.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return Ge(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setSeconds(i,0),n}}class fb extends Se{constructor(){super(...arguments);Q(this,"priority",30);Q(this,"incompatibleTokens",["t","T"])}parse(n,r){const i=o=>Math.trunc(o*Math.pow(10,-r.length+3));return tt(Ge(r.length,n),i)}set(n,r,i){return n.setMilliseconds(i),n}}class pb extends Se{constructor(){super(...arguments);Q(this,"priority",10);Q(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return Nn(An.basicOptionalMinutes,n);case"XX":return Nn(An.basic,n);case"XXXX":return Nn(An.basicOptionalSeconds,n);case"XXXXX":return Nn(An.extendedOptionalSeconds,n);case"XXX":default:return Nn(An.extended,n)}}set(n,r,i){return r.timestampIsSet?n:Oe(n,n.getTime()-us(n)-i)}}class hb extends Se{constructor(){super(...arguments);Q(this,"priority",10);Q(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return Nn(An.basicOptionalMinutes,n);case"xx":return Nn(An.basic,n);case"xxxx":return Nn(An.basicOptionalSeconds,n);case"xxxxx":return Nn(An.extendedOptionalSeconds,n);case"xxx":default:return Nn(An.extended,n)}}set(n,r,i){return r.timestampIsSet?n:Oe(n,n.getTime()-us(n)-i)}}class mb extends Se{constructor(){super(...arguments);Q(this,"priority",40);Q(this,"incompatibleTokens","*")}parse(n){return Ff(n)}set(n,r,i){return[Oe(n,i*1e3),{timestampIsSet:!0}]}}class _b extends Se{constructor(){super(...arguments);Q(this,"priority",20);Q(this,"incompatibleTokens","*")}parse(n){return Ff(n)}set(n,r,i){return[Oe(n,i),{timestampIsSet:!0}]}}const gb={G:new Ay,y:new Ny,Y:new Ry,R:new jy,u:new Fy,Q:new Vy,q:new By,M:new Hy,L:new $y,w:new Wy,I:new Uy,d:new Gy,D:new Ky,E:new Qy,e:new Xy,c:new Jy,i:new nb,a:new rb,b:new ib,B:new ob,h:new ab,H:new sb,K:new lb,k:new cb,m:new ub,s:new db,S:new fb,X:new pb,x:new hb,t:new mb,T:new _b},yb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vb=/^'([^]*?)'?$/,Cb=/''/g,wb=/\S/,xb=/[a-zA-Z]/;function Qc(e,t,n,r){var g,_,m,b,C,x,w,k;const i=Ly(),o=(r==null?void 0:r.locale)??i.locale??xf,a=(r==null?void 0:r.firstWeekContainsDate)??((_=(g=r==null?void 0:r.locale)==null?void 0:g.options)==null?void 0:_.firstWeekContainsDate)??i.firstWeekContainsDate??((b=(m=i.locale)==null?void 0:m.options)==null?void 0:b.firstWeekContainsDate)??1,s=(r==null?void 0:r.weekStartsOn)??((x=(C=r==null?void 0:r.locale)==null?void 0:C.options)==null?void 0:x.weekStartsOn)??i.weekStartsOn??((k=(w=i.locale)==null?void 0:w.options)==null?void 0:k.weekStartsOn)??0;if(t==="")return e===""?X(n):Oe(n,NaN);const l={firstWeekContainsDate:a,weekStartsOn:s,locale:o},c=[new Oy],u=t.match(bb).map(S=>{const M=S[0];if(M in ms){const P=ms[M];return P(S,o.formatLong)}return S}).join("").match(yb),d=[];for(let S of u){!(r!=null&&r.useAdditionalWeekYearTokens)&&If(S)&&Uc(S,t,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Ef(S)&&Uc(S,t,e);const M=S[0],P=gb[M];if(P){const{incompatibleTokens:T}=P;if(Array.isArray(T)){const O=d.find(V=>T.includes(V.token)||V.token===M);if(O)throw new RangeError(`The format string mustn't contain \`${O.fullToken}\` and \`${S}\` at the same time`)}else if(P.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${S}\` and any other token at the same time`);d.push({token:M,fullToken:S});const I=P.run(e,S,o.match,l);if(!I)return Oe(n,NaN);c.push(I.setter),e=I.rest}else{if(M.match(xb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");if(S==="''"?S="'":M==="'"&&(S=kb(S)),e.indexOf(S)===0)e=e.slice(S.length);else return Oe(n,NaN)}}if(e.length>0&&wb.test(e))return Oe(n,NaN);const f=c.map(S=>S.priority).sort((S,M)=>M-S).filter((S,M,P)=>P.indexOf(S)===M).map(S=>c.filter(M=>M.priority===S).sort((M,P)=>P.subPriority-M.subPriority)).map(S=>S[0]);let p=X(n);if(isNaN(p.getTime()))return Oe(n,NaN);const h={};for(const S of f){if(!S.validate(p,l))return Oe(n,NaN);const M=S.set(p,h,l);Array.isArray(M)?(p=M[0],Object.assign(h,M[1])):p=M}return Oe(n,p)}function kb(e){return e.match(vb)[1].replace(Cb,"'")}function Sb(e,t){const r=Lb(e);let i;if(r.date){const l=Pb(r.date,2);i=Eb(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const o=i.getTime();let a=0,s;if(r.time&&(a=Ib(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=Ob(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(o+a),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(o+a+s)}const ys={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Tb=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Mb=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Db=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Lb(e){const t={},n=e.split(ys.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ys.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ys.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=ys.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Pb(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Eb(e,t){if(t===null)return new Date(NaN);const n=e.match(Tb);if(!n)return new Date(NaN);const r=!!n[4],i=jo(n[1]),o=jo(n[2])-1,a=jo(n[3]),s=jo(n[4]),l=jo(n[5])-1;if(r)return Fb(t,s,l)?Ab(t,s,l):new Date(NaN);{const c=new Date(0);return!Rb(t,o,a)||!jb(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}}function jo(e){return e?parseInt(e):1}function Ib(e){const t=e.match(Mb);if(!t)return NaN;const n=Xc(t[1]),r=Xc(t[2]),i=Xc(t[3]);return Vb(n,r,i)?n*ls+r*ss+i*1e3:NaN}function Xc(e){return e&&parseFloat(e.replace(",","."))||0}function Ob(e){if(e==="Z")return 0;const t=e.match(Db);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Bb(r,i)?n*(r*ls+i*ss):NaN}function Ab(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const Nb=[31,null,31,30,31,30,31,31,30,31,30,31];function Hf(e){return e%400===0||e%4===0&&e%100!==0}function Rb(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Nb[t]||(Hf(e)?29:28))}function jb(e,t){return t>=1&&t<=(Hf(e)?366:365)}function Fb(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Vb(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Bb(e,t){return t>=0&&t<=59}function Hb(e){const t=X(e),n=t.getFullYear(),r=t.getMonth(),i=Oe(e,0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Zt(e,t){const n=X(e),r=n.getFullYear(),i=n.getDate(),o=Oe(e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);const a=Hb(o);return n.setMonth(t,Math.min(i,a)),n}function $b(e,t){let n=X(e);return isNaN(+n)?Oe(e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Zt(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}function bs(e,t){const n=X(e);return n.setHours(t),n}function vs(e,t){const n=X(e);return n.setMinutes(t),n}function Oi(e,t){const n=X(e),r=Math.trunc(n.getMonth()/3)+1,i=t-r;return Zt(n,n.getMonth()+i*3)}function Cs(e,t){const n=X(e);return n.setSeconds(t),n}function Rn(e,t){const n=X(e);return isNaN(+n)?Oe(e,NaN):(n.setFullYear(t),n)}function $f(e){const t=X(e);return t.setDate(1),t.setHours(0,0,0,0),t}function zb(e,t){return xr(e,-1)}function Ai(e,t){return gn(e,-t)}function zf(e,t){return $c(e,-1)}function Wf(e,t){return cs(e,-1)}function Ni(e,t){return ar(e,-t)}function ws(){return typeof window<"u"}function Ri(e){return Yf(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jn(e){var t;return(t=(Yf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yf(e){return ws()?e instanceof Node||e instanceof qt(e).Node:!1}function Dt(e){return ws()?e instanceof Element||e instanceof qt(e).Element:!1}function ur(e){return ws()?e instanceof HTMLElement||e instanceof qt(e).HTMLElement:!1}function Uf(e){return!ws()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot}function Fo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=sn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function Wb(e){return/^(table|td|th)$/.test(Ri(e))}function xs(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Yb=/transform|translate|scale|rotate|perspective|filter/,Ub=/paint|layout|strict|content/,ii=e=>!!e&&e!=="none";let Jc;function eu(e){const t=Dt(e)?sn(e):e;return ii(t.transform)||ii(t.translate)||ii(t.scale)||ii(t.rotate)||ii(t.perspective)||!tu()&&(ii(t.backdropFilter)||ii(t.filter))||Yb.test(t.willChange||"")||Ub.test(t.contain||"")}function Zb(e){let t=Tr(e);for(;ur(t)&&!ji(t);){if(eu(t))return t;if(xs(t))return null;t=Tr(t)}return null}function tu(){return Jc==null&&(Jc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Jc}function ji(e){return/^(html|body|#document)$/.test(Ri(e))}function sn(e){return qt(e).getComputedStyle(e)}function ks(e){return Dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Tr(e){if(Ri(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Uf(e)&&e.host||jn(e);return Uf(t)?t.host:t}function Zf(e){const t=Tr(e);return ji(t)?e.ownerDocument?e.ownerDocument.body:e.body:ur(t)&&Fo(t)?t:Zf(t)}function Vo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Zf(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=qt(i);if(o){const s=nu(a);return t.concat(a,a.visualViewport||[],Fo(i)?i:[],s&&n?Vo(s):[])}else return t.concat(i,Vo(i,[],n))}function nu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Fi=Math.min,oi=Math.max,Ss=Math.round,Ts=Math.floor,Fn=e=>({x:e,y:e}),qb={left:"right",right:"left",bottom:"top",top:"bottom"};function Gb(e,t,n){return oi(e,Fi(t,n))}function Ms(e,t){return typeof e=="function"?e(t):e}function Vi(e){return e.split("-")[0]}function Bo(e){return e.split("-")[1]}function Kb(e){return e==="x"?"y":"x"}function ru(e){return e==="y"?"height":"width"}function ai(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function iu(e){return Kb(ai(e))}function Qb(e,t,n){n===void 0&&(n=!1);const r=Bo(e),i=iu(e),o=ru(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Ds(a)),[a,Ds(a)]}function Xb(e){const t=Ds(e);return[ou(e),t,ou(t)]}function ou(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const qf=["left","right"],Gf=["right","left"],Jb=["top","bottom"],ev=["bottom","top"];function tv(e,t,n){switch(e){case"top":case"bottom":return n?t?Gf:qf:t?qf:Gf;case"left":case"right":return t?Jb:ev;default:return[]}}function nv(e,t,n,r){const i=Bo(e);let o=tv(Vi(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(ou)))),o}function Ds(e){const t=Vi(e);return qb[t]+e.slice(t.length)}function rv(e){return{top:0,right:0,bottom:0,left:0,...e}}function Kf(e){return typeof e!="number"?rv(e):{top:e,right:e,bottom:e,left:e}}function Ls(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Qf(e,t,n){let{reference:r,floating:i}=e;const o=ai(t),a=iu(t),s=ru(a),l=Vi(t),c=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-i.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Bo(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1);break}return p}async function iv(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ms(t,e),h=Kf(p),_=s[f?d==="floating"?"reference":"floating":d],m=Ls(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(_)))==null||n?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),b=d==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),x=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},w=Ls(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:C,strategy:l}):b);return{top:(m.top-w.top+h.top)/x.y,bottom:(w.bottom-m.bottom+h.bottom)/x.y,left:(m.left-w.left+h.left)/x.x,right:(w.right-m.right+h.right)/x.x}}const ov=50,av=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:iv},l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Qf(c,r,l),f=r,p=0;const h={};for(let g=0;g<o.length;g++){const _=o[g];if(!_)continue;const{name:m,fn:b}=_,{x:C,y:x,data:w,reset:k}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=C??u,d=x??d,h[m]={...h[m],...w},k&&p<ov&&(p++,typeof k=="object"&&(k.placement&&(f=k.placement),k.rects&&(c=k.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:u,y:d}=Qf(c,f,l)),g=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:h}},sv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Ms(e,t)||{};if(c==null)return{};const d=Kf(u),f={x:n,y:r},p=iu(i),h=ru(p),g=await a.getDimensions(c),_=p==="y",m=_?"top":"left",b=_?"bottom":"right",C=_?"clientHeight":"clientWidth",x=o.reference[h]+o.reference[p]-f[p]-o.floating[h],w=f[p]-o.reference[p],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let S=k?k[C]:0;(!S||!await(a.isElement==null?void 0:a.isElement(k)))&&(S=s.floating[C]||o.floating[h]);const M=x/2-w/2,P=S/2-g[h]/2-1,T=Fi(d[m],P),I=Fi(d[b],P),O=T,V=S-g[h]-I,N=S/2-g[h]/2+M,A=Gb(O,N,V),j=!l.arrow&&Bo(i)!=null&&N!==A&&o.reference[h]/2-(N<O?T:I)-g[h]/2<0,Y=j?N<O?N-O:N-V:0;return{[p]:f[p]+Y,data:{[p]:A,centerOffset:N-A-Y,...j&&{alignmentOffset:Y}},reset:j}}}),lv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,..._}=Ms(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const m=Vi(i),b=ai(s),C=Vi(s)===s,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=f||(C||!g?[Ds(s)]:Xb(s)),k=h!=="none";!f&&k&&w.push(...nv(s,g,h,x));const S=[s,...w],M=await l.detectOverflow(t,_),P=[];let T=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&P.push(M[m]),d){const N=Qb(i,a,x);P.push(M[N[0]],M[N[1]])}if(T=[...T,{placement:i,overflows:P}],!P.every(N=>N<=0)){var I,O;const N=(((I=o.flip)==null?void 0:I.index)||0)+1,A=S[N];if(A&&(!(d==="alignment"?b!==ai(A):!1)||T.every(H=>ai(H.placement)===b?H.overflows[0]>0:!0)))return{data:{index:N,overflows:T},reset:{placement:A}};let j=(O=T.filter(Y=>Y.overflows[0]<=0).sort((Y,H)=>Y.overflows[1]-H.overflows[1])[0])==null?void 0:O.placement;if(!j)switch(p){case"bestFit":{var V;const Y=(V=T.filter(H=>{if(k){const G=ai(H.placement);return G===b||G==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(G=>G>0).reduce((G,D)=>G+D,0)]).sort((H,G)=>H[1]-G[1])[0])==null?void 0:V[0];Y&&(j=Y);break}case"initialPlacement":j=s;break}if(i!==j)return{reset:{placement:j}}}return{}}}},cv=new Set(["left","top"]);async function uv(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Vi(n),s=Bo(n),l=ai(n)==="y",c=cv.has(a)?-1:1,u=o&&l?-1:1,d=Ms(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const dv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await uv(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}};function Xf(e){const t=sn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ur(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Ss(n)!==o||Ss(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function au(e){return Dt(e)?e:e.contextElement}function Bi(e){const t=au(e);if(!ur(t))return Fn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Xf(t);let a=(o?Ss(n.width):n.width)/r,s=(o?Ss(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const fv=Fn(0);function Jf(e){const t=qt(e);return!tu()||!t.visualViewport?fv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pv(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==qt(e)?!1:t}function si(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=au(e);let a=Fn(1);t&&(r?Dt(r)&&(a=Bi(r)):a=Bi(e));const s=pv(o,n,r)?Jf(o):Fn(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const f=qt(o),p=r&&Dt(r)?qt(r):r;let h=f,g=nu(h);for(;g&&r&&p!==h;){const _=Bi(g),m=g.getBoundingClientRect(),b=sn(g),C=m.left+(g.clientLeft+parseFloat(b.paddingLeft))*_.x,x=m.top+(g.clientTop+parseFloat(b.paddingTop))*_.y;l*=_.x,c*=_.y,u*=_.x,d*=_.y,l+=C,c+=x,h=qt(g),g=nu(h)}}return Ls({width:u,height:d,x:l,y:c})}function Ps(e,t){const n=ks(e).scrollLeft;return t?t.left+n:si(jn(e)).left+n}function e0(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ps(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function hv(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=jn(r),s=t?xs(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Fn(1);const u=Fn(0),d=ur(r);if((d||!d&&!o)&&((Ri(r)!=="body"||Fo(a))&&(l=ks(r)),d)){const p=si(r);c=Bi(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=a&&!d&&!o?e0(a,l):Fn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function mv(e){return Array.from(e.getClientRects())}function _v(e){const t=jn(e),n=ks(e),r=e.ownerDocument.body,i=oi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=oi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ps(e);const s=-n.scrollTop;return sn(r).direction==="rtl"&&(a+=oi(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}const t0=25;function gv(e,t){const n=qt(e),r=jn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const u=tu();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const c=Ps(r);if(c<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(r.clientWidth-d.clientWidth-p);h<=t0&&(o-=h)}else c<=t0&&(o+=c);return{width:o,height:a,x:s,y:l}}function yv(e,t){const n=si(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=ur(e)?Bi(e):Fn(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:a,height:s,x:l,y:c}}function n0(e,t,n){let r;if(t==="viewport")r=gv(e,n);else if(t==="document")r=_v(jn(e));else if(Dt(t))r=yv(t,n);else{const i=Jf(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ls(r)}function r0(e,t){const n=Tr(e);return n===t||!Dt(n)||ji(n)?!1:sn(n).position==="fixed"||r0(n,t)}function bv(e,t){const n=t.get(e);if(n)return n;let r=Vo(e,[],!1).filter(s=>Dt(s)&&Ri(s)!=="body"),i=null;const o=sn(e).position==="fixed";let a=o?Tr(e):e;for(;Dt(a)&&!ji(a);){const s=sn(a),l=eu(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Fo(a)&&!l&&r0(e,a))?r=r.filter(u=>u!==a):i=s,a=Tr(a)}return t.set(e,r),r}function vv(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?xs(t)?[]:bv(t,this._c):[].concat(n),r],s=n0(t,a[0],i);let l=s.top,c=s.right,u=s.bottom,d=s.left;for(let f=1;f<a.length;f++){const p=n0(t,a[f],i);l=oi(p.top,l),c=Fi(p.right,c),u=Fi(p.bottom,u),d=oi(p.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Cv(e){const{width:t,height:n}=Xf(e);return{width:t,height:n}}function wv(e,t,n){const r=ur(t),i=jn(t),o=n==="fixed",a=si(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Fn(0);function c(){l.x=Ps(i)}if(r||!r&&!o)if((Ri(t)!=="body"||Fo(i))&&(s=ks(t)),r){const p=si(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&c();o&&!r&&i&&c();const u=i&&!r&&!o?e0(i,s):Fn(0),d=a.left+s.scrollLeft-l.x-u.x,f=a.top+s.scrollTop-l.y-u.y;return{x:d,y:f,width:a.width,height:a.height}}function su(e){return sn(e).position==="static"}function i0(e,t){if(!ur(e)||sn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return jn(e)===n&&(n=n.ownerDocument.body),n}function o0(e,t){const n=qt(e);if(xs(e))return n;if(!ur(e)){let i=Tr(e);for(;i&&!ji(i);){if(Dt(i)&&!su(i))return i;i=Tr(i)}return n}let r=i0(e,t);for(;r&&Wb(r)&&su(r);)r=i0(r,t);return r&&ji(r)&&su(r)&&!eu(r)?n:r||Zb(e)||n}const xv=async function(e){const t=this.getOffsetParent||o0,n=this.getDimensions,r=await n(e.floating);return{reference:wv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function kv(e){return sn(e).direction==="rtl"}const Sv={convertOffsetParentRelativeRectToViewportRelativeRect:hv,getDocumentElement:jn,getClippingRect:vv,getOffsetParent:o0,getElementRects:xv,getClientRects:mv,getDimensions:Cv,getScale:Bi,isElement:Dt,isRTL:kv};function a0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Tv(e,t){let n=null,r;const i=jn(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const h=Ts(d),g=Ts(i.clientWidth-(u+f)),_=Ts(i.clientHeight-(d+p)),m=Ts(u),C={rootMargin:-h+"px "+-g+"px "+-_+"px "+-m+"px",threshold:oi(0,Fi(1,l))||1};let x=!0;function w(k){const S=k[0].intersectionRatio;if(S!==l){if(!x)return a();S?a(!1,S):r=setTimeout(()=>{a(!1,1e-7)},1e3)}S===1&&!a0(c,e.getBoundingClientRect())&&a(),x=!1}try{n=new IntersectionObserver(w,{...C,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,C)}n.observe(e)}return a(!0),o}function s0(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=au(e),u=i||o?[...c?Vo(c):[],...t?Vo(t):[]]:[];u.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),o&&m.addEventListener("resize",n)});const d=c&&s?Tv(c,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(m=>{let[b]=m;b&&b.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),n()}),c&&!l&&p.observe(c),t&&p.observe(t));let h,g=l?si(e):null;l&&_();function _(){const m=si(e);g&&!a0(g,m)&&n(),g=m,h=requestAnimationFrame(_)}return n(),()=>{var m;u.forEach(b=>{i&&b.removeEventListener("scroll",n),o&&b.removeEventListener("resize",n)}),d==null||d(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const Mv=dv,Dv=lv,l0=sv,Lv=(e,t,n)=>{const r=new Map,i={platform:Sv,...n},o={...i.platform,_c:r};return av(e,t,{...i,platform:o})};var Pv=typeof document<"u",Ev=function(){},Es=Pv?v.useLayoutEffect:Ev;function Is(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Is(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Is(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function c0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u0(e,t){const n=c0(e);return Math.round(t*n)/n}function lu(e){const t=R.useRef(e);return Es(()=>{t.current=e}),t}function Iv(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=R.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=R.useState(r);Is(f,r)||p(r);const[h,g]=R.useState(null),[_,m]=R.useState(null),b=R.useCallback(H=>{H!==k.current&&(k.current=H,g(H))},[]),C=R.useCallback(H=>{H!==S.current&&(S.current=H,m(H))},[]),x=o||h,w=a||_,k=R.useRef(null),S=R.useRef(null),M=R.useRef(u),P=l!=null,T=lu(l),I=lu(i),O=lu(c),V=R.useCallback(()=>{if(!k.current||!S.current)return;const H={placement:t,strategy:n,middleware:f};I.current&&(H.platform=I.current),Lv(k.current,S.current,H).then(G=>{const D={...G,isPositioned:O.current!==!1};N.current&&!Is(M.current,D)&&(M.current=D,es.flushSync(()=>{d(D)}))})},[f,t,n,I,O]);Es(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[c]);const N=R.useRef(!1);Es(()=>(N.current=!0,()=>{N.current=!1}),[]),Es(()=>{if(x&&(k.current=x),w&&(S.current=w),x&&w){if(T.current)return T.current(x,w,V);V()}},[x,w,V,T,P]);const A=R.useMemo(()=>({reference:k,floating:S,setReference:b,setFloating:C}),[b,C]),j=R.useMemo(()=>({reference:x,floating:w}),[x,w]),Y=R.useMemo(()=>{const H={position:n,left:0,top:0};if(!j.floating)return H;const G=u0(j.floating,u.x),D=u0(j.floating,u.y);return s?{...H,transform:"translate("+G+"px, "+D+"px)",...c0(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:D}},[n,s,j.floating,u.x,u.y]);return R.useMemo(()=>({...u,update:V,refs:A,elements:j,floatingStyles:Y}),[u,V,A,j,Y])}const Ov=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?l0({element:r.current,padding:i}).fn(n):{}:r?l0({element:r,padding:i}).fn(n):{}}}},Av=(e,t)=>{const n=Mv(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nv=(e,t)=>{const n=Dv(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rv=(e,t)=>{const n=Ov(e);return{name:n.name,fn:n.fn,options:[e,t]}},d0={...R},jv=d0.useInsertionEffect||(e=>e());function Fv(e){const t=R.useRef(()=>{});return jv(()=>{t.current=e}),R.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Os=typeof document<"u"?v.useLayoutEffect:v.useEffect;function cu(){return cu=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},cu.apply(this,arguments)}let f0=!1,Vv=0;const p0=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Vv++;function Bv(){const[e,t]=R.useState(()=>f0?p0():void 0);return Os(()=>{e==null&&t(p0())},[]),R.useEffect(()=>{f0=!0},[]),e}const h0=d0.useId||Bv,Hv=R.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:o,shift:a}},width:s=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:f,d:p,style:{transform:h,...g}={},..._}=t,m=h0(),[b,C]=R.useState(!1);if(Os(()=>{if(!i)return;sn(i).direction==="rtl"&&C(!0)},[i]),!i)return null;const[x,w]=r.split("-"),k=x==="top"||x==="bottom";let S=d;(k&&a!=null&&a.x||!k&&a!=null&&a.y)&&(S=null);const M=u*2,P=M/2,T=s/2*(c/-8+1),I=l/2*c/4,O=!!p,V=S&&w==="end"?"bottom":"top";let N=S&&w==="end"?"right":"left";S&&b&&(N=w==="end"?"left":"right");const A=(o==null?void 0:o.x)!=null?S||o.x:"",j=(o==null?void 0:o.y)!=null?S||o.y:"",Y=p||"M0,0"+(" H"+s)+(" L"+(s-T)+","+(l-I))+(" Q"+s/2+","+l+" "+T+","+(l-I))+" Z",H={top:O?"rotate(180deg)":"",left:O?"rotate(90deg)":"rotate(-90deg)",bottom:O?"":"rotate(180deg)",right:O?"rotate(-90deg)":"rotate(90deg)"}[x];return R.createElement("svg",cu({},_,{"aria-hidden":!0,ref:n,width:O?s:s+M,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[N]:A,[V]:j,[x]:k||O?"100%":"calc(100% - "+M/2+"px)",transform:[H,h].filter(G=>!!G).join(" "),...g}}),M>0&&R.createElement("path",{clipPath:"url(#"+m+")",fill:"none",stroke:f,strokeWidth:M+(p?0:1),d:Y}),R.createElement("path",{stroke:M&&!p?_.fill:"none",d:Y}),R.createElement("clipPath",{id:m},R.createElement("rect",{x:-P,y:P*(O?-1:1),width:s+M,height:s})))});function $v(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const zv=R.createContext(null),Wv=R.createContext(null),Yv=()=>{var e;return((e=R.useContext(zv))==null?void 0:e.id)||null},Uv=()=>R.useContext(Wv);function Zv(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=h0(),o=R.useRef({}),[a]=R.useState(()=>$v()),s=Yv()!=null,[l,c]=R.useState(r.reference),u=Fv((p,h,g)=>{o.current.openEvent=p?h:void 0,a.emit("openchange",{open:p,event:h,reason:g,nested:s}),n==null||n(p,h,g)}),d=R.useMemo(()=>({setPositionReference:c}),[]),f=R.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return R.useMemo(()=>({dataRef:o,open:t,onOpenChange:u,elements:f,events:a,floatingId:i,refs:d}),[t,u,f,a,i,d])}function qv(e){e===void 0&&(e={});const{nodeId:t}=e,n=Zv({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=R.useState(null),[s,l]=R.useState(null),u=(i==null?void 0:i.domReference)||o,d=R.useRef(null),f=Uv();Os(()=>{u&&(d.current=u)},[u]);const p=Iv({...e,elements:{...i,...s&&{reference:s}}}),h=R.useCallback(C=>{const x=Dt(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;l(x),p.refs.setReference(x)},[p.refs]),g=R.useCallback(C=>{(Dt(C)||C===null)&&(d.current=C,a(C)),(Dt(p.refs.reference.current)||p.refs.reference.current===null||C!==null&&!Dt(C))&&p.refs.setReference(C)},[p.refs]),_=R.useMemo(()=>({...p.refs,setReference:g,setPositionReference:h,domReference:d}),[p.refs,g,h]),m=R.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),b=R.useMemo(()=>({...p,...r,refs:_,elements:m,nodeId:t}),[p,_,m,t,r]);return Os(()=>{r.dataRef.current.floatingContext=b;const C=f==null?void 0:f.nodesRef.current.find(x=>x.id===t);C&&(C.context=b)}),R.useMemo(()=>({...p,context:b,refs:_,elements:m}),[p,_,m,b])}/*!
759
+ */var uf;function eg(){return uf||(uf=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Lc)),Lc.exports}var tg=eg();const E=En(tg),ts={text:"_text_1jicm_1",text__lg:"_text__lg_1jicm_1",text__md:"_text__md_1jicm_8",text__sm:"_text__sm_1jicm_15",text__xs:"_text__xs_1jicm_22",text__medium:"_text__medium_1jicm_29",text__darkMode:"_text__darkMode_1jicm_32"},je=({children:e,className:t,darkMode:n,type:r="md",weight:i="regular"})=>y.jsx("p",{className:E(ts.text,ts[`text__${r}`],n&&ts.text__darkMode,i==="medium"&&ts.text__medium,t&&t),children:e});je.prototype={avocado:"Text"};const rn={heading:"_heading_1qyoa_1",heading__1:"_heading__1_1qyoa_1",heading__2:"_heading__2_1qyoa_8",heading__3:"_heading__3_1qyoa_15",heading__4:"_heading__4_1qyoa_22",heading__darkMode:"_heading__darkMode_1qyoa_29"},yt=e=>{const{children:t,className:n,darkMode:r,type:i}=e;switch(i){case"h1":return y.jsx("h1",{className:E(rn.heading,rn.heading__1,r&&rn.heading__darkMode,n&&n),children:t});case"h2":return y.jsx("h2",{className:E(rn.heading,rn.heading__2,r&&rn.heading__darkMode,n&&n),children:t});case"h3":return y.jsx("h3",{className:E(rn.heading,rn.heading__3,r&&rn.heading__darkMode,n&&n),children:t});case"h4":return y.jsx("h4",{className:E(rn.heading,rn.heading__4,r&&rn.heading__darkMode,n&&n),children:t});default:return null}};yt.prototype={avocado:"Heading"};const qr={componentCheck:"_componentCheck_c0e1g_1",componentCheck__disabled:"_componentCheck__disabled_c0e1g_1",label:"_label_c0e1g_1",componentCheck__darkMode:"_componentCheck__darkMode_c0e1g_4",label_checkbox:"_label_checkbox_c0e1g_9",label_left:"_label_left_c0e1g_33",label_right:"_label_right_c0e1g_37"},ns=({classNameCheckbox:e="",disabled:t=!1,labelLeft:n="",labelRight:r="",...i})=>{const{className:o,ref:a}=i,s=n&&typeof n=="string",l=r&&typeof r=="string",{theme:c}=ct();return y.jsx("div",{className:E(qr.componentCheck,t&&qr.componentCheck__disabled,"container_row","row_align__end",o&&o,(c==null?void 0:c.mode)==="dark"&&qr.componentCheck__darkMode),children:y.jsxs("label",{className:qr.label,children:[s?y.jsx("span",{className:qr.label_left,children:n}):y.jsx(y.Fragment,{children:n}),y.jsx("input",{...i,className:E(qr.label_checkbox,e&&e),type:"checkbox",disabled:t,ref:a}),l?y.jsx("span",{className:qr.label_right,children:r}):y.jsx(y.Fragment,{children:r})]})})},Tt={accordion:"_accordion_7804t_1",accordion__isOpen:"_accordion__isOpen_7804t_12",accordion_head:"_accordion_head_7804t_16",btnToggle_headIcon:"_btnToggle_headIcon_7804t_19",accordion__disabled:"_accordion__disabled_7804t_22",btnToggle:"_btnToggle_7804t_19",content:"_content_7804t_29",content_description:"_content_description_7804t_29",content_title:"_content_title_7804t_32",accordion__darkMode:"_accordion__darkMode_7804t_35",accordion__neutral:"_accordion__neutral_7804t_47",accordion__success:"_accordion__success_7804t_50",accordion__warning:"_accordion__warning_7804t_53",accordion__error:"_accordion__error_7804t_56",checkbox:"_checkbox_7804t_74",actionContent:"_actionContent_7804t_100",accordion_content:"_accordion_content_7804t_105",accordion_content__notShow:"_accordion_content__notShow_7804t_109"},ng=({actionContent:e,children:t,className:n,customContent:r,description:i,disabled:o,hasCheckbox:a,hasIcon:s,neutralIcon:l,opened:c=!1,title:d,type:u,checkboxChecked:f,onChanceCheckbox:p})=>{const[h,g]=v.useState(c),[_,m]=v.useState(!h),{theme:b}=ct(),C={neutral:l||{name:"file",color:"neutral-70"},success:{name:"circle-check",color:"success-50",filled:!0},warning:{name:"alert-triangle",color:"warning-50",filled:!0},error:{name:"circle-cross",color:"error-50",filled:!0}},x=()=>{o||g(!h)};return v.useEffect(()=>{h&&m(!1)},[h]),y.jsxs("article",{className:E(Tt.accordion,h&&Tt.accordion__isOpen,(b==null?void 0:b.mode)==="dark"&&Tt.accordion__darkMode,u&&Tt[`accordion__${u}`],o&&Tt.accordion__disabled,n&&n),onTransitionEnd:()=>{h||m(!0)},children:[y.jsxs("div",{className:Tt.accordion_head,onClick:x,role:"button",children:[a&&y.jsx(ns,{disabled:o,className:Tt.checkbox,checked:f,onClick:w=>w.stopPropagation(),onChange:p}),y.jsx("div",{className:Tt.btnToggle,onTransitionEnd:w=>{w.stopPropagation()},children:y.jsx(ie,{className:Tt.btnToggle_headIcon,name:"chevron-down",size:"lg",color:o?"neutral-30":"neutral-70"})}),s&&y.jsx(ie,{size:"md",...C==null?void 0:C[u||""]}),y.jsxs("div",{className:Tt.content,children:[y.jsx(yt,{type:"h3",className:Tt.content_title,children:d}),i&&y.jsx(je,{className:Tt.content_description,children:i}),r&&y.jsx("div",{children:r})]}),e&&y.jsx("div",{className:Tt.actionContent,onClick:w=>w.stopPropagation(),children:e})]}),y.jsx("div",{className:E(Tt.accordion_content,_&&Tt.accordion_content__notShow),children:t})]})},df={box:"_box_qzg60_1",box__darkMode:"_box__darkMode_qzg60_11"},rg=({className:e,children:t,darkMode:n=!1})=>y.jsx("section",{className:E(df.box,e&&e,n&&df.box__darkMode),children:t}),mn={breadcrumbs:"_breadcrumbs_1x8rf_1",breadcrumbs_list:"_breadcrumbs_list_1x8rf_4",breadcrumbItem:"_breadcrumbItem_1x8rf_11",breadcrumbItem_label:"_breadcrumbItem_label_1x8rf_15",breadcrumbItem_separator:"_breadcrumbItem_separator_1x8rf_29",breadcrumbItem__active:"_breadcrumbItem__active_1x8rf_35",labelIcon:"_labelIcon_1x8rf_38",breadcrumbs__darkMode:"_breadcrumbs__darkMode_1x8rf_48"},Pc=e=>{const{className:t,darkMode:n,items:r}=e,[i,o]=v.useState(window.innerWidth<=992),a=(s,l)=>{var f;const c=y.jsxs(y.Fragment,{children:[i&&y.jsx(ie,{className:mn.labelIcon,"aria-hidden":"true",name:"chevron-left",size:"md"}),s==null?void 0:s.title]});let d={href:s.path};if(l===r.length-1&&(d["aria-current"]="page",d.href=void 0),s!=null&&s.component){const p={...s==null?void 0:s.component};return p.props={...(f=s==null?void 0:s.component)==null?void 0:f.props,...d,className:mn.breadcrumbItem_label,children:c},p}else return y.jsx("a",{className:mn.breadcrumbItem_label,...d,children:c})};return v.useEffect(()=>{const s=()=>{o(window.innerWidth<=992)};return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),y.jsx("nav",{"aria-label":"breadcrumb",className:E(mn.breadcrumbs,t&&t,n&&mn.breadcrumbs__darkMode),children:y.jsx("ol",{className:mn.breadcrumbs_list,children:r==null?void 0:r.map((s,l)=>y.jsxs(v.Fragment,{children:[(!i||i&&l==(r==null?void 0:r.length)-2)&&y.jsx("li",{className:E(mn.breadcrumbItem,!i&&l==(r==null?void 0:r.length)-1&&mn.breadcrumbItem__active,i&&l==(r==null?void 0:r.length)-2&&mn.breadcrumbItem__active),children:a(s,l)},`breadcrumbItem-${l}`),!i&&l<(r==null?void 0:r.length)-1&&y.jsx("li",{"aria-hidden":"true",className:mn.breadcrumbItem,children:y.jsx(ie,{className:mn.breadcrumbItem_separator,name:"chevron-right",size:"sm"})},`breadcrumbItemChevron-${l}`)]},`breadcrumbFragment-${l}`))})})};Pc.prototype={avocado:"Breadcrumbs"};const ir={button:"_button_1n5tj_1",button__loading:"_button__loading_1n5tj_21",button_icon:"_button_icon_1n5tj_33",button_loadingIcon:"_button_loadingIcon_1n5tj_39",button__sm:"_button__sm_1n5tj_46",button__secondary:"_button__secondary_1n5tj_51",button__darkMode:"_button__darkMode_1n5tj_66",button__forceLightMode:"_button__forceLightMode_1n5tj_77",button__ghost:"_button__ghost_1n5tj_90",button__danger:"_button__danger_1n5tj_105"},Gr=({children:e,className:t,forceLightMode:n=!1,loading:r=!1,leftIcon:i,rightIcon:o,variant:a="primary",type:s="button",size:l="md",...c})=>{const{theme:d}=ct();return y.jsxs("button",{className:E(ir.button,t&&t,a&&ir[`button__${a}`],l&&ir[`button__${l}`],(d==null?void 0:d.mode)==="dark"&&!n&&ir.button__darkMode,n&&ir.button__forceLightMode,r&&ir.button__loading),type:s,...c,children:[i&&y.jsx(ie,{className:ir.button_icon,name:i,size:"md"}),e,o&&y.jsx(ie,{className:ir.button_icon,name:o,size:"md"}),r&&y.jsx(ie,{className:ir.button_loadingIcon,name:"loading",size:"md"})]})};Gr.prototype={avocado:"Button"};const Kr={card:"_card_1fcgs_1",card_aside:"_card_aside_1fcgs_10",card_aside__color1:"_card_aside__color1_1fcgs_22",card_aside__color2:"_card_aside__color2_1fcgs_25",card_aside__color3:"_card_aside__color3_1fcgs_28",card_aside__color4:"_card_aside__color4_1fcgs_31",card_aside__color5:"_card_aside__color5_1fcgs_34",card_aside__color6:"_card_aside__color6_1fcgs_37",card_aside__color7:"_card_aside__color7_1fcgs_40",card_aside__color8:"_card_aside__color8_1fcgs_43",card_aside__color9:"_card_aside__color9_1fcgs_46",card_aside__color10:"_card_aside__color10_1fcgs_49",card_aside__color11:"_card_aside__color11_1fcgs_52",card_aside__color12:"_card_aside__color12_1fcgs_55",card_aside__color13:"_card_aside__color13_1fcgs_58",card_aside__color14:"_card_aside__color14_1fcgs_61",card_aside__color15:"_card_aside__color15_1fcgs_64",card_aside__color16:"_card_aside__color16_1fcgs_67",card_aside__color17:"_card_aside__color17_1fcgs_70",card_aside__color18:"_card_aside__color18_1fcgs_73",card_content:"_card_content_1fcgs_76",card__clickable:"_card__clickable_1fcgs_80",card__disabled:"_card__disabled_1fcgs_87",card__darkMode:"_card__darkMode_1fcgs_96"},ig=({children:e,className:t="",classNameAside:n="",classNameContent:r="",disabled:i=!1,colorId:o,...a})=>{const{onClick:s}=a,{theme:l}=ct();return y.jsxs("section",{className:E(Kr.card,s&&!i&&Kr.card__clickable,i&&Kr.card__disabled,(l==null?void 0:l.mode)==="dark"&&Kr.card__darkMode,t&&t),onClick:s&&s,...a,children:[y.jsx("aside",{className:E(Kr.card_aside,n&&n,o&&Kr[`card_aside__color${o}`])}),y.jsx("div",{className:E(Kr.card_content,r&&r),children:e})]})},wr=e=>{const{icon:t,variant:n="primary",type:r="button",size:i="md",className:o="",disabled:a=!1,forceLightMode:s=!1,loading:l=!1,...c}=e,d=["roundButton",o&&o,l&&"roundButton__loading",i&&`roundButton__${i}`],u={sm:"md",md:"lg"};return y.jsx(Gr,{className:E(...d),disabled:a,forceLightMode:s,variant:n,loading:l,type:r,...c,children:y.jsx(ie,{className:"roundButton_icon",name:l?"loading":t,size:u[i]})})};wr.prototype={avocado:"RoundButton"};const dt={cardAccordion:"_cardAccordion_7ayra_1",cardAccordion_header:"_cardAccordion_header_7ayra_7",cardAccordion__isOpen:"_cardAccordion__isOpen_7ayra_10",cardAccordion_body:"_cardAccordion_body_7ayra_10",headerTop_btnToggle:"_headerTop_btnToggle_7ayra_16",cardAccordion__expressive:"_cardAccordion__expressive_7ayra_24",cardAccordion__condensed:"_cardAccordion__condensed_7ayra_33",headerTop:"_headerTop_7ayra_16",headerTop_actionContent:"_headerTop_actionContent_7ayra_39",bodyInner_content:"_bodyInner_content_7ayra_44",cardAccordion__disabled:"_cardAccordion__disabled_7ayra_47",headerTop_mainContent:"_headerTop_mainContent_7ayra_58",title:"_title_7ayra_58",description:"_description_7ayra_92",headerTop_menuContent:"_headerTop_menuContent_7ayra_106",bodyInner:"_bodyInner_7ayra_44",cardAccordion_body__settled:"_cardAccordion_body__settled_7ayra_131"},og=["a[href]","button","input","label","select","summary","textarea","[contenteditable]",'[role="button"]','[role="checkbox"]','[role="link"]','[role="menuitem"]','[role="switch"]','[role="tab"]',"[tabindex]"].join(", "),ag=({actionContent:e,ariaLabel:t,children:n,className:r,density:i="expanded",description:o,disabled:a,iconGradient:s,iconName:l,iconSize:c="lg",menuContent:d,onToggle:u,opened:f=!1,title:p,type:h="default"})=>{const g=v.useId(),_=`${g}-toggle`,[m,b]=v.useState(f),C=typeof p=="string",x=u?f:m,w=n!=null&&n!==!1,[k,S]=v.useState(x);!x&&k&&S(!1);const M=()=>{a||(u?u(!x):b(O=>!O))},P=O=>{const V=O.target.closest(og);V&&O.currentTarget.contains(V)||M()},T=O=>{var V;O.key!=="Escape"||!x||a||(O.stopPropagation(),M(),(V=document.getElementById(_))==null||V.focus())},I=O=>{!x||O.target!==O.currentTarget||O.propertyName!=="grid-template-rows"||S(!0)};return y.jsxs("article",{"aria-label":t,className:E(dt.cardAccordion,x&&dt.cardAccordion__isOpen,a&&dt.cardAccordion__disabled,h==="expressive"&&dt.cardAccordion__expressive,i==="condensed"&&dt.cardAccordion__condensed,r),children:[y.jsx("div",{className:dt.cardAccordion_header,onClick:P,children:y.jsxs("div",{className:dt.headerTop,children:[l&&y.jsx(ie,{size:c,name:l,disabled:a,gradient:s,color:a?"neutral-50":"neutral-70"}),y.jsxs("div",{className:dt.headerTop_mainContent,children:[C?y.jsx(yt,{type:"h3",className:dt.title,children:p}):y.jsx("div",{className:dt.title,children:p}),o&&y.jsx(je,{className:dt.description,children:o})]}),e&&y.jsx("div",{className:dt.headerTop_actionContent,children:e}),d&&y.jsx("div",{className:dt.headerTop_menuContent,children:d}),y.jsx(wr,{"aria-controls":w?g:void 0,"aria-expanded":x,"aria-label":"Toggle card",className:dt.headerTop_btnToggle,disabled:a,icon:"chevron-up",id:_,onClick:M,variant:"ghost"})]})}),w&&y.jsx("div",{className:E(dt.cardAccordion_body,k&&dt.cardAccordion_body__settled),id:g,onKeyDown:T,onTransitionEnd:I,children:y.jsx("div",{className:dt.bodyInner,children:y.jsx("div",{className:dt.bodyInner_content,children:n})})})]})},on={cardNotification:"_cardNotification_15nvn_1",cardNotification_mainRow:"_cardNotification_mainRow_15nvn_10",iconState:"_iconState_15nvn_15",mainInfo:"_mainInfo_15nvn_18",closeButton:"_closeButton_15nvn_26",cardNotification__error:"_cardNotification__error_15nvn_30",cardNotification__outlined:"_cardNotification__outlined_15nvn_33",mainInfo_title:"_mainInfo_title_15nvn_36",cardNotification__warning:"_cardNotification__warning_15nvn_39",cardNotification__info:"_cardNotification__info_15nvn_48",cardNotification__success:"_cardNotification__success_15nvn_57",cardNotification__neutral:"_cardNotification__neutral_15nvn_66",mainInfo_description:"_mainInfo_description_15nvn_75"},sg={error:{name:"circle-cross",color:"red-50"},warning:{name:"alert-triangle",color:"warning-50"},info:{name:"circle-info",color:"blue-50"},success:{name:"circle-check",color:"green-50"}},ff=({state:e="error",outlined:t,title:n,children:r,className:i,dismissible:o=!1,extraContent:a,icon:s})=>{const[l,c]=v.useState(!0),d=[on.cardNotification,e&&(on==null?void 0:on[`cardNotification__${e}`]),t&&on.cardNotification__outlined,i&&i],u=sg[e],f=s??(u==null?void 0:u.name),p=(u==null?void 0:u.color)??"neutral-70",h=_=>typeof _=="string";return(_=>{let m=!1,b=!1;return v.Children.forEach(_,C=>{h(C)&&(b=!0),v.isValidElement(C)&&(m=!0)}),m&&b})(r)&&console.error("CardNotification component does not support mixed children, please use only string or ReactNode"),l?y.jsxs("article",{className:E(...d),children:[y.jsxs("section",{className:on.cardNotification_mainRow,children:[f&&y.jsx(ie,{className:on.iconState,name:f,color:p,filled:!s||s===(u==null?void 0:u.name)}),y.jsxs("div",{className:on.mainInfo,children:[n&&y.jsx(yt,{type:"h3",className:on.mainInfo_title,children:n}),h(r)&&y.jsx(je,{type:"sm",className:on.mainInfo_description,children:r}),v.isValidElement(r)&&y.jsx("div",{className:on.mainInfo_description,children:r})]}),o&&y.jsx("button",{className:on.closeButton,onClick:()=>c(!1),children:y.jsx(ie,{name:"close"})})]}),a&&a]}):null};ff.prototype={avocado:"CardNotification"};const Ec={pill:"_pill_twyo2_1",pill__outlined:"_pill__outlined_twyo2_15",pill_icon:"_pill_icon_twyo2_19"},Ic=({children:e,className:t="",icon:n,iconFilled:r=!1,color:i="neutral-10",textColor:o="neutral-80",iconColor:a="neutral-80",outlined:s=!1})=>{const l=E(Ec.pill,t&&t,s&&Ec.pill__outlined),c={"--pill-color":`var(--color-${i})`,"--pill-text-color":`var(--color-${o})`};return y.jsxs("div",{className:l,style:c,children:[!!n&&y.jsx(ie,{className:Ec.pill_icon,filled:r,name:n,color:a,size:"sm"}),e]})},lg={neutral:{name:"circle",color:"neutral-30"},success:{name:"circle-check",color:"success-50"},informative:{name:"circle-info",color:"info-50"},warning:{name:"alert-triangle",color:"warning-50"},negative:{name:"circle-cross",color:"error-50"}},cg={neutral:{color:"neutral-10",textColor:"neutral-80"},success:{color:"success-10",textColor:"success-60"},informative:{color:"info-10",textColor:"info-60"},warning:{color:"warning-10",textColor:"warning-60"},negative:{color:"error-10",textColor:"error-60"}},_n={dataCard:"_dataCard_1pihs_1",dataCard_header:"_dataCard_header_1pihs_9",headerDetails:"_headerDetails_1pihs_14",headerDetails_muted:"_headerDetails_muted_1pihs_21",dataCard_header__pill:"_dataCard_header__pill_1pihs_24",dataCard_content:"_dataCard_content_1pihs_31",dataCard__interactive:"_dataCard__interactive_1pihs_35",dataCard__showBorder:"_dataCard__showBorder_1pihs_62",dataCard__neutral:"_dataCard__neutral_1pihs_65",dataCard__success:"_dataCard__success_1pihs_68",dataCard__informative:"_dataCard__informative_1pihs_71",dataCard__warning:"_dataCard__warning_1pihs_74",dataCard__negative:"_dataCard__negative_1pihs_77",dataCard__palette1:"_dataCard__palette1_1pihs_80",dataCard__palette2:"_dataCard__palette2_1pihs_83",dataCard__palette3:"_dataCard__palette3_1pihs_86",dataCard__palette4:"_dataCard__palette4_1pihs_89",dataCard__palette5:"_dataCard__palette5_1pihs_92",dataCard__palette6:"_dataCard__palette6_1pihs_95",dataCard__palette7:"_dataCard__palette7_1pihs_98",dataCard__palette8:"_dataCard__palette8_1pihs_101",dataCard__palette9:"_dataCard__palette9_1pihs_104",dataCard__palette10:"_dataCard__palette10_1pihs_107",dataCard__palette11:"_dataCard__palette11_1pihs_110",dataCard__palette12:"_dataCard__palette12_1pihs_113",dataCard__palette13:"_dataCard__palette13_1pihs_116",dataCard__palette14:"_dataCard__palette14_1pihs_119",dataCard__palette15:"_dataCard__palette15_1pihs_122",dataCard__palette16:"_dataCard__palette16_1pihs_125",dataCard__palette17:"_dataCard__palette17_1pihs_128",dataCard__darkMode:"_dataCard__darkMode_1pihs_131"},ug=({headerStyle:e,status:t,disabled:n,icon:r,pillLabel:i})=>{if(e==="pill"){if(!i)return null;const{color:a,textColor:s}=cg[t];return y.jsx(Ic,{color:a,textColor:s,children:i})}if(e==="icon")return r?y.jsx("span",{"aria-hidden":"true",children:y.jsx(ie,{size:"lg",name:r,color:n?"neutral-30":"neutral-70"})}):null;if(!r&&t==="neutral")return null;const o=lg[t];return y.jsx("span",{"aria-hidden":"true",children:y.jsx(ie,{size:"lg",name:r??o.name,color:n?"neutral-30":o.color,filled:!r||r===o.name})})},dg=({headerStyle:e,status:t,title:n,descriptionTop:r,descriptionBottom:i,disabled:o,icon:a,pillLabel:s})=>{const l=o?_n.headerDetails_muted:void 0;return y.jsxs("div",{className:E(_n.dataCard_header,e==="pill"&&_n.dataCard_header__pill),children:[y.jsx(ug,{headerStyle:e,status:t,disabled:o,icon:a,pillLabel:s}),(r||n||i)&&y.jsxs("div",{className:_n.headerDetails,children:[r&&y.jsx(je,{className:l,children:r}),n&&y.jsx(yt,{type:"h2",className:l,children:n}),i&&y.jsx(je,{className:l,children:i})]})]})},fg=e=>{const{status:t="neutral",headerStyle:n="basic",title:r,ariaLabel:i,descriptionTop:o,descriptionBottom:a,showBorder:s=!1,borderColor:l,icon:c,pillLabel:d,children:u,className:f,onClick:p,disabled:h}=e,{theme:g}=ct(),_=p!==void 0;_&&!r&&!i&&console.warn("[DataCard] An interactive card needs `title` or `ariaLabel`: without one it renders a button with no accessible name.");const m=E(f,_n.dataCard,_n[`dataCard__${t}`],(s||l)&&_n.dataCard__showBorder,l&&_n[`dataCard__palette${l}`],_&&_n.dataCard__interactive,(g==null?void 0:g.mode)==="dark"&&_n.dataCard__darkMode),b=y.jsx(dg,{headerStyle:n,status:t,title:r,descriptionTop:o,descriptionBottom:a,disabled:h,icon:c,pillLabel:d}),C=u?y.jsx("div",{className:_n.dataCard_content,children:u}):null;return _?y.jsxs("button",{type:"button",className:m,onClick:p,disabled:h,"aria-label":r?void 0:i,children:[b,C]}):y.jsxs("article",{className:m,children:[b,C]})},or={dataCard:"_dataCard_31qnu_1",dataCard_topContent:"_dataCard_topContent_31qnu_11",dataCard_header:"_dataCard_header_31qnu_15",headerDetails:"_headerDetails_31qnu_19",dataCard_content:"_dataCard_content_31qnu_24",dataCard__neutral:"_dataCard__neutral_31qnu_28",dataCard__hasTopBar:"_dataCard__hasTopBar_31qnu_28",dataCard__info:"_dataCard__info_31qnu_31",dataCard__success:"_dataCard__success_31qnu_34",dataCard__warning:"_dataCard__warning_31qnu_37",dataCard__error:"_dataCard__error_31qnu_40",dataCard__palette_1_50:"_dataCard__palette_1_50_31qnu_43",dataCard__palette_2_50:"_dataCard__palette_2_50_31qnu_46",dataCard__palette_3_50:"_dataCard__palette_3_50_31qnu_49",dataCard__palette_4_50:"_dataCard__palette_4_50_31qnu_52",dataCard__palette_5_50:"_dataCard__palette_5_50_31qnu_55",dataCard__palette_6_50:"_dataCard__palette_6_50_31qnu_58",dataCard__palette_7_50:"_dataCard__palette_7_50_31qnu_61",dataCard__palette_8_50:"_dataCard__palette_8_50_31qnu_64",dataCard__palette_9_50:"_dataCard__palette_9_50_31qnu_67",dataCard__palette_10_50:"_dataCard__palette_10_50_31qnu_70",dataCard__palette_11_50:"_dataCard__palette_11_50_31qnu_73",dataCard__palette_12_50:"_dataCard__palette_12_50_31qnu_76",dataCard__palette_13_50:"_dataCard__palette_13_50_31qnu_79",dataCard__palette_14_50:"_dataCard__palette_14_50_31qnu_82",dataCard__palette_15_50:"_dataCard__palette_15_50_31qnu_85",dataCard__palette_16_50:"_dataCard__palette_16_50_31qnu_88",dataCard__palette_17_50:"_dataCard__palette_17_50_31qnu_91",dataCard__palette_18_50:"_dataCard__palette_18_50_31qnu_94",dataCard__darkMode:"_dataCard__darkMode_31qnu_100"},pg=({children:e,className:t,description:n,hasTopBar:r=!1,icon:i,title:o,variant:a,topContent:s,headerStatusColor:l})=>{const{theme:c}=ct(),d={neutral:{name:i,color:"neutral-30",filled:i==="circle"},success:{name:i,color:"success-50",filled:i==="circle-check"},warning:{name:i,color:"warning-50",filled:i==="alert-triangle"},error:{name:i,color:"error-50",filled:i==="circle-cross"},info:{name:i,color:"info-50",filled:i==="circle-info"}};return y.jsxs("article",{className:E(t&&t,or.dataCard,or[`dataCard__${a}`],or[`dataCard__${l}`],r&&or.dataCard__hasTopBar,(c==null?void 0:c.mode)==="dark"&&or.dataCard__darkMode),children:[s&&y.jsx("div",{className:or.dataCard_topContent,children:s}),y.jsxs("div",{className:or.dataCard_header,children:[y.jsx(ie,{size:"lg",...d==null?void 0:d[a]}),y.jsxs("div",{className:or.headerDetails,children:[y.jsx(yt,{type:"h2",children:o}),n&&y.jsx(je,{children:n})]})]}),e&&y.jsx("div",{className:or.dataCard_content,children:e})]})},hg=e=>e.version==="v2"?y.jsx(fg,{...e}):y.jsx(pg,{...e}),Qr={dataTableAction:"_dataTableAction_1j9ry_1",dataTableAction__left:"_dataTableAction__left_1j9ry_17",dataTableAction__right:"_dataTableAction__right_1j9ry_20",dataTableAction__disabled:"_dataTableAction__disabled_1j9ry_26",dataTableAction_icon:"_dataTableAction_icon_1j9ry_31",dataTableActionDimensions:"_dataTableActionDimensions_1j9ry_36",dataTableActionsGroup:"_dataTableActionsGroup_1j9ry_41"},Io=e=>{const{classname:t,disabled:n=!1,hide:r=!1,icon:i="circle-check",iconSize:o="lg",position:a,type:s="primary",onClick:l,children:c}=e;return r?y.jsx("div",{className:E(Qr.dataTableActionDimensions,t&&(t==null?void 0:t.aside))}):y.jsx("aside",{"data-testid":"table-action-aside",className:E(Qr.dataTableAction,Qr[`dataTableAction__${a}`],n&&Qr.dataTableAction__disabled,(t==null?void 0:t.aside)&&(t==null?void 0:t.aside)),onClick:()=>l&&l(),children:c||y.jsx(ie,{name:i,size:o,className:E(Qr.dataTableAction_icon,!n&&Qr[`dataTableAction_icon__${s}`],(t==null?void 0:t.icon)&&(t==null?void 0:t.icon))})})};Io.prototype={avocado:"DataTableAction"};const pf=e=>{const{children:t}=e;return y.jsx(y.Fragment,{children:t})};pf.prototype={avocado:"DataTableSubActions"};const rs=e=>{var t,n,r,i,o;return{maxWidth:((t=e==null?void 0:e.styles)==null?void 0:t.maxWidth)||"auto",minWidth:((n=e==null?void 0:e.styles)==null?void 0:n.minWidth)||"0px",padding:((r=e==null?void 0:e.styles)==null?void 0:r.padding)||"auto",textAlign:((i=e==null?void 0:e.styles)==null?void 0:i.textAlign)||"left",width:((o=e==null?void 0:e.styles)==null?void 0:o.width)||"150px"}},Oc=(e,t)=>{var l,c,d;const r=window.innerWidth<=991.98,{responsive:i,...o}=e;let a=null,s=null;return r&&(i!=null&&i.mobile)?(a=rs(i==null?void 0:i.mobile),s=((l=i==null?void 0:i.mobile)==null?void 0:l.position)||t):!r&&(i!=null&&i.desktop)?(a=rs(i==null?void 0:i.desktop),s=((c=i==null?void 0:i.desktop)==null?void 0:c.position)||t):i!=null&&i.allDevices?(a=rs(i==null?void 0:i.allDevices),s=((d=i==null?void 0:i.allDevices)==null?void 0:d.position)||t):(a=rs(),s=t),{position:s,styles:a,...o}},is=e=>{var t;if(typeof(e==null?void 0:e.type)=="function"){const n=(t=e==null?void 0:e.type)==null?void 0:t.prototype.avocado;return n&&(n==="DataTableAction"||n==="DataTableSubActions")?e:!1}},hf=e=>{var t;if(typeof(e==null?void 0:e.type)=="function"){const n=(t=e==null?void 0:e.type)==null?void 0:t.prototype.avocado;return n&&n==="DataTableActionsGroup"?e:!1}},Ac=e=>{const{children:t,className:n}=e,r=[];return t&&(Array.isArray(t)?t.forEach(i=>{is(i)&&r.push({isChild:!0,component:i})}):is(t)&&r.push({isChild:!0,component:t})),y.jsx("section",{className:E(Qr.dataTableActionsGroup,n&&n),children:r==null?void 0:r.map(i=>i.component)})};Ac.prototype={avocado:"DataTableActionsGroup"};const oe={dataTableRow:"_dataTableRow_i3o7r_1",dataTableRow__regular:"_dataTableRow__regular_i3o7r_10",dataTableRow_mainContent:"_dataTableRow_mainContent_i3o7r_15",cellsContent_grouped:"_cellsContent_grouped_i3o7r_19",dataTableRow_subContent:"_dataTableRow_subContent_i3o7r_22",actionContent:"_actionContent_i3o7r_27",actionContent__hideLeft:"_actionContent__hideLeft_i3o7r_30",cellsContent:"_cellsContent_i3o7r_19",cell:"_cell_i3o7r_19",cell_label:"_cell_label_i3o7r_64",accordionActions:"_accordionActions_i3o7r_67",buttonChevron:"_buttonChevron_i3o7r_70",buttonChevron_icon:"_buttonChevron_icon_i3o7r_78",buttonChevron_icon__open:"_buttonChevron_icon__open_i3o7r_82",buttonChevron__component:"_buttonChevron__component_i3o7r_85",openOverlay:"_openOverlay_i3o7r_88",tooltipWrapper:"_tooltipWrapper_i3o7r_91",tooltip__top:"_tooltip__top_i3o7r_97",tooltip__bottom:"_tooltip__bottom_i3o7r_100",tooltip:"_tooltip_i3o7r_91",dataTableRow_overlayContent:"_dataTableRow_overlayContent_i3o7r_119",dataTableRow_subContent__open:"_dataTableRow_subContent__open_i3o7r_130",dataTableRow__accordion:"_dataTableRow__accordion_i3o7r_140",dataTableRow__simple:"_dataTableRow__simple_i3o7r_140",dataTableRow__open:"_dataTableRow__open_i3o7r_151",dataTableRow__dark:"_dataTableRow__dark_i3o7r_157",cellsContent__row:"_cellsContent__row_i3o7r_220",cellsContent__withChevron:"_cellsContent__withChevron_i3o7r_235",cellsContent__rightActionsWithChevron:"_cellsContent__rightActionsWithChevron_i3o7r_238",closeOverlay:"_closeOverlay_i3o7r_256",closeOverlay_icon:"_closeOverlay_icon_i3o7r_268",optionsOverlay:"_optionsOverlay_i3o7r_271",optionsOverlay_item:"_optionsOverlay_item_i3o7r_276",icon:"_icon_i3o7r_297",dataTableRow__showOverlay:"_dataTableRow__showOverlay_i3o7r_301"},Nc=e=>{const{columns:t,data:n,isMobile:r=!1,leftActions:i,rightActions:o}=e,[a,s]=v.useState(!1),l=v.useRef(null),[c,d]=v.useState(),[u,f]=v.useState("top"),p=_=>{const m=_==null?void 0:_.renderComponent(n),b=m==null?void 0:m.props.children,C=[];return b==null||b.forEach(x=>{is(x)&&C.push(x)}),y.jsx("section",{className:oe.optionsOverlay,children:C==null?void 0:C.map((x,w)=>{var k,S;return y.jsxs("div",{className:oe.optionsOverlay_item,onClick:()=>{var M,P;return((M=x==null?void 0:x.props)==null?void 0:M.onClick)&&((P=x==null?void 0:x.props)==null?void 0:P.onClick())},children:[y.jsx(ie,{className:oe.icon,name:(k=x==null?void 0:x.props)==null?void 0:k.icon,size:"lg"}),y.jsx("p",{children:(S=x==null?void 0:x.props)==null?void 0:S.label})]},`action-${w}`)})})},h=_=>{const m=_==null?void 0:_.renderComponent(n);return hf(m)?y.jsxs("div",{className:oe.dataTableRow_overlayContent,children:[y.jsx("aside",{className:oe.closeOverlay,onClick:()=>{s(!1)},children:y.jsx(ie,{className:oe.closeOverlay_icon,name:"circle-cross",filled:!0,size:"lg"})}),p(o)]}):null},g=(_,m="left")=>{var C;const b=_==null?void 0:_.renderComponent(n);return is(b)?y.jsx(Io,{position:m,classname:{aside:E(oe.actionContent,(_==null?void 0:_.visibility)===!1&&m==="left"&&oe.actionContent__hideLeft,(C=b==null?void 0:b.props.classname)==null?void 0:C.aside)},...b==null?void 0:b.props}):hf(b)?r&&(_!=null&&_.groupedOnMobile)?y.jsx(Io,{classname:{icon:oe.openOverlay},icon:"circle-dots",position:"right",onClick:()=>{s(!0)}}):y.jsx(Ac,{className:E(oe.actionContent,b==null?void 0:b.props.className),...b==null?void 0:b.props,children:b==null?void 0:b.props.children}):null};return v.useEffect(()=>{if(c){const _=l.current.getBoundingClientRect(),m=_.y,b=_.height,C=m-b>0;f(C?"top":"bottom")}},[l.current]),y.jsxs("div",{className:E(oe.dataTableRow,oe.dataTableRow__regular,a&&oe.dataTableRow__showOverlay),children:[y.jsxs("div",{className:oe.dataTableRow_mainContent,children:[i&&g(i),y.jsx("ul",{className:E(oe.cellsContent,(n==null?void 0:n.disabled)&&oe.cellsContent__disabled),children:t==null?void 0:t.map((_,m)=>y.jsx("li",{className:oe.cellsContent_grouped,style:_.length===1&&!r?_[0].styles:void 0,children:_==null?void 0:_.map((b,C)=>y.jsxs("div",{className:oe.cell,onMouseEnter:()=>{d(b==null?void 0:b.accessor)},onMouseLeave:()=>d(""),ref:l,children:[y.jsx("label",{className:oe.cell_label,children:b==null?void 0:b.header}),c===(b==null?void 0:b.accessor)&&(b==null?void 0:b.tooltip)&&y.jsx("div",{className:E(oe.tooltipWrapper,u&&oe[`tooltip__${u}`]),children:y.jsx("span",{className:E(oe.tooltip),children:b!=null&&b.renderCell?b==null?void 0:b.renderCell(n):n[b==null?void 0:b.accessor]})}),b!=null&&b.renderCell?b==null?void 0:b.renderCell(n):n[b==null?void 0:b.accessor]]},`cell-${C}`))},`groupedData-${m}`))}),o&&g(o,"right")]}),r&&h(o)]})};Nc.prototype={avocado:"DataTableRow"};const an={dataTableHeader:"_dataTableHeader_1tb9v_1",dataTableHeader_action:"_dataTableHeader_action_1tb9v_6",dataTableHeader_action__hideLeft:"_dataTableHeader_action__hideLeft_1tb9v_15",dataTableHeader_mainList:"_dataTableHeader_mainList_1tb9v_21",listItem:"_listItem_1tb9v_28",listItemChevron:"_listItemChevron_1tb9v_39",dataTableHeaderMobile:"_dataTableHeaderMobile_1tb9v_45"},Rc=e=>{const{className:t,columns:n,contentType:r="regular",isMobile:i,leftActions:o,rightActions:a,styleBody:s}=e;let l=i?an.dataTableHeaderMobile:an.dataTableHeader;return l=r==="accordion"&&s==="inheritance"?an.dataTableHeader:l,y.jsxs("section",{className:E(l,t&&t,an==null?void 0:an[`dataTableHeader__${r}`]),children:[o&&y.jsx("div",{className:E(an.dataTableHeader_action,o.visibility===!1&&an.dataTableHeader_action__hideLeft),children:o==null?void 0:o.header}),y.jsxs("ul",{className:E(an.dataTableHeader_mainList),children:[n==null?void 0:n.map((c,d)=>y.jsx("li",{className:E(an.listItem),style:Oc(c,d).styles,children:c==null?void 0:c.header},`header-column-${d}`)),r==="accordion"&&y.jsx("li",{className:E(an.listItemChevron)})]}),a&&y.jsx("div",{className:E(an.dataTableHeader_action),children:a==null?void 0:a.header})]})};Rc.prototype={avocado:"DataTableHeader"};const mf=e=>{var _;const{columns:t,data:n,isMobile:r=!1,keyBody:i="",renderBody:o,styleBody:a,rightActions:s}=e,{theme:l}=ct(),[c,d]=v.useState(!1),u=r&&a==="custom",f=a==="inheritance"?!!n[i]:!0,p=m=>{const b=[],C=o?o(m):[];C==null||C.forEach((w,k)=>{const S=Oc(w,k);(b[S.position]=b[S.position]||[]).push(S)});const x=b==null?void 0:b.map((w,k)=>y.jsx("li",{className:oe.cellsContent_grouped,style:w.length===1&&!u?w[0].styles:null,children:w==null?void 0:w.map((S,M)=>y.jsx("div",{className:oe.cell,children:S!=null&&S.renderCell?S==null?void 0:S.renderCell(n):n[S==null?void 0:S.accessor]},`cell-sub-${M}`))},`subColumn-${k}`));return x.length>0&&a==="inheritance"&&x.push(y.jsx("li",{className:E(oe.buttonChevron)})),x},h=()=>y.jsx(Io,{classname:{aside:E(oe.buttonChevron,oe.buttonChevron__component),icon:E(oe.buttonChevron_icon,c&&oe.buttonChevron_icon__open)},icon:"chevron-down",position:"right",onClick:()=>f&&d(!c)}),g=()=>s?y.jsxs("section",{className:oe.accordionActions,children:[s&&(s==null?void 0:s.renderComponent(n)),h()]}):h();return y.jsxs("div",{className:E(oe.dataTableRow,oe.dataTableRow__accordion,a!=="custom"&&oe.dataTableRow__simple,c&&oe.dataTableRow__open,(l==null?void 0:l.mode)==="dark"&&oe.dataTableRow__dark),children:[y.jsxs("div",{className:oe.dataTableRow_mainContent,children:[y.jsx("ul",{className:E(oe.cellsContent,oe.cellsContent__withChevron,a==="custom"&&s&&oe.cellsContent__rightActionsWithChevron,!u&&oe.cellsContent__row),children:t==null?void 0:t.map((m,b)=>y.jsx("li",{className:oe.cellsContent_grouped,style:m.length===1&&!u?m[0].styles:null,children:m==null?void 0:m.map((C,x)=>y.jsxs("div",{className:oe.cell,style:C.styles,children:[u&&y.jsx("label",{className:oe.cell_label,children:C==null?void 0:C.header}),C!=null&&C.renderCell?C==null?void 0:C.renderCell(n):n[C==null?void 0:C.accessor]]},`cell-main-${x}`))},`groupedData-main-${b}`))}),a==="inheritance"?y.jsx("div",{className:E(oe.buttonChevron),onClick:()=>f&&d(!c),children:f&&y.jsx(ie,{className:E(oe.buttonChevron_icon,c&&oe.buttonChevron_icon__open),name:"chevron-down",size:"md"})}):g()]}),y.jsxs("div",{className:E(oe.dataTableRow_subContent,c&&oe.dataTableRow_subContent__open),children:[a==="inheritance"&&((_=n[i])==null?void 0:_.map((m,b)=>y.jsx("ul",{className:E(oe.cellsContent,oe.cellsContent__withChevron,!u&&oe.cellsContent__row),children:p(m)},`subRow-${b}`))),a==="custom"&&y.jsx("ul",{className:E(oe.cellsContent),children:o&&o(n)})]})]})};mf.prototype={avocado:"DataTableRowAccordion"};const Xr={dataTableContent:"_dataTableContent_1mrjm_1",dataTableContent__regular:"_dataTableContent__regular_1mrjm_4",dataTableContent__dark:"_dataTableContent__dark_1mrjm_9"},_f=e=>{const{className:t,classNameHeader:n,columns:r,data:i,leftActions:o,rightActions:a,contentType:s="regular",keyBody:l,styleBody:c="inheritance",renderBody:d}=e,{theme:u}=ct(),f=window.innerWidth<=991.98,p=[];return r==null||r.forEach((h,g)=>{const _=Oc(h,g);(p[_.position]=p[_.position]||[]).push(_)}),y.jsxs("section",{className:E(Xr.dataTableContent,t&&t,Xr==null?void 0:Xr[`dataTableContent__${s}`],Xr==null?void 0:Xr[`dataTableContent__${u.mode}`]),children:[y.jsx(Rc,{className:n&&n,columns:r,contentType:s,isMobile:f,leftActions:o,rightActions:a,styleBody:c}),i==null?void 0:i.map((h,g)=>s==="accordion"?y.jsx(mf,{columns:p,data:h,isMobile:f,keyBody:l,renderBody:_=>d&&d(_),styleBody:c,rightActions:a},`row-accordion-${g}`):y.jsx(Nc,{columns:p,data:h,isMobile:f,leftActions:o,rightActions:a},g))]})};_f.prototype={avocado:"DataTableContent"};const mg={Action:Io,SubActions:pf,ActionsGroup:Ac,Content:_f,Header:Rc,Row:Nc};function gf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=gf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ft(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=gf(e))&&(r&&(r+=" "),r+=t);return r}function _g(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jc(e,t)}function jc(e,t){return jc=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},jc(e,t)}function gg(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}function yf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yg(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function bg(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&yg(e,t,n))return!0;e=e.parentNode||e.host}return e}function vg(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var Cg=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function wg(e){return e===void 0&&(e=0),function(){return++e}}var xg=wg(),Fc,os={},Vc={},kg=["touchstart","touchmove"],Sg="ignore-react-onclickoutside";function bf(e,t){var n={},r=kg.indexOf(t)!==-1;return r&&Fc&&(n.passive=!e.props.preventDefault),n}function as(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=(function(o){_g(a,o);function a(l){var c;return c=o.call(this,l)||this,c.__outsideClickHandler=function(d){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(d);return}var u=c.getInstance();if(typeof u.props.handleClickOutside=="function"){u.props.handleClickOutside(d);return}if(typeof u.handleClickOutside=="function"){u.handleClickOutside(d);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var d=c.getInstance();return typeof d.setClickOutsideRef=="function"?d.setClickOutsideRef():St.findDOMNode(d)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||Vc[c._uid])){typeof Fc>"u"&&(Fc=Cg()),Vc[c._uid]=!0;var d=c.props.eventTypes;d.forEach||(d=[d]),os[c._uid]=function(u){if(c.componentNode!==null&&!(c.initTimeStamp>u.timeStamp)&&(c.props.preventDefault&&u.preventDefault(),c.props.stopPropagation&&u.stopPropagation(),!(c.props.excludeScrollbar&&vg(u)))){var f=u.composed&&u.composedPath&&u.composedPath().shift()||u.target;bg(f,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(u)}},d.forEach(function(u){document.addEventListener(u,os[c._uid],bf(yf(c),u))})}},c.disableOnClickOutside=function(){delete Vc[c._uid];var d=os[c._uid];if(d&&typeof document<"u"){var u=c.props.eventTypes;u.forEach||(u=[u]),u.forEach(function(f){return document.removeEventListener(f,d,bf(yf(c),f))}),delete os[c._uid]}},c.getRef=function(d){return c.instanceRef=d},c._uid=xg(),c.initTimeStamp=performance.now(),c}var s=a.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},s.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var c=this.props;c.excludeScrollbar;var d=gg(c,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?d.ref=this.getRef:d.wrappedRef=this.getRef,d.disableOnClickOutside=this.disableOnClickOutside,d.enableOnClickOutside=this.enableOnClickOutside,v.createElement(e,d)},a})(v.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:Sg,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}function X(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Oe(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function xr(e,t){const n=X(e);return isNaN(t)?Oe(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Bc(e,t){const n=+X(e);return Oe(e,n+t)}const vf=6048e5,Tg=864e5,ss=6e4,ls=36e5,Mg=1e3;function Dg(e,t){return Bc(e,t*ls)}function Hc(e,t){return Bc(e,t*ss)}function gn(e,t){const n=X(e);if(isNaN(t))return Oe(e,NaN);if(!t)return n;const r=n.getDate(),i=Oe(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const o=i.getDate();return r>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function $c(e,t){const n=t*3;return gn(e,n)}function Lg(e,t){return Bc(e,t*1e3)}function cs(e,t){const n=t*7;return xr(e,n)}function ar(e,t){return gn(e,t*12)}function Jr(e){const t=X(e);return t.setHours(0,0,0,0),t}function us(e){const t=X(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Oo(e,t){const n=Jr(e),r=Jr(t),i=+n-us(n),o=+r-us(r);return Math.round((i-o)/Tg)}function ds(e,t){const n=X(e),r=X(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function ei(e){const t=X(e);return Math.trunc(t.getMonth()/3)+1}function fs(e,t){const n=X(e),r=X(t),i=n.getFullYear()-r.getFullYear(),o=ei(n)-ei(r);return i*4+o}function ps(e,t){const n=X(e),r=X(t);return n.getFullYear()-r.getFullYear()}function Cf(e){const t=X(e);return t.setHours(23,59,59,999),t}function Pg(e){const t=X(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}let Eg={};function ti(){return Eg}function Ig(e,t){var s,l;const n=ti(),r=n.weekStartsOn??((l=(s=n.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??0,i=X(e),o=i.getDay(),a=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}function wf(e){const t=X(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}const Og={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ag=(e,t,n)=>{let r;const i=Og[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function zc(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ng={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Rg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jg={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fg={date:zc({formats:Ng,defaultWidth:"full"}),time:zc({formats:Rg,defaultWidth:"full"}),dateTime:zc({formats:jg,defaultWidth:"full"})},Vg={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Bg=(e,t,n,r)=>Vg[e];function Ao(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Hg={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$g={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zg={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Wg={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Yg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ug={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Zg={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Ao({values:Hg,defaultWidth:"wide"}),quarter:Ao({values:$g,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ao({values:zg,defaultWidth:"wide"}),day:Ao({values:Wg,defaultWidth:"wide"}),dayPeriod:Ao({values:Yg,defaultWidth:"wide",formattingValues:Ug,defaultFormattingWidth:"wide"})};function No(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Gg(s,u=>u.test(a)):qg(s,u=>u.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const d=t.slice(a.length);return{value:c,rest:d}}}function qg(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Gg(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Kg(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const Qg=/^(\d+)(th|st|nd|rd)?/i,Xg=/\d+/i,Jg={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ey={any:[/^b/i,/^(a|c)/i]},ty={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ny={any:[/1/i,/2/i,/3/i,/4/i]},ry={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},iy={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},oy={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ay={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},sy={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ly={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cy={ordinalNumber:Kg({matchPattern:Qg,parsePattern:Xg,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:Jg,defaultMatchWidth:"wide",parsePatterns:ey,defaultParseWidth:"any"}),quarter:No({matchPatterns:ty,defaultMatchWidth:"wide",parsePatterns:ny,defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:ry,defaultMatchWidth:"wide",parsePatterns:iy,defaultParseWidth:"any"}),day:No({matchPatterns:oy,defaultMatchWidth:"wide",parsePatterns:ay,defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:sy,defaultMatchWidth:"any",parsePatterns:ly,defaultParseWidth:"any"})},xf={code:"en-US",formatDistance:Ag,formatLong:Fg,formatRelative:Bg,localize:Zg,match:cy,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hs(e){const t=X(e),n=Oe(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function uy(e){const t=X(e);return Oo(t,hs(t))+1}function sr(e,t){var s,l,c,d;const n=ti(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,i=X(e),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Ei(e){return sr(e,{weekStartsOn:1})}function kf(e){const t=X(e),n=t.getFullYear(),r=Oe(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Ei(r),o=Oe(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=Ei(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function dy(e){const t=kf(e),n=Oe(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ei(n)}function Wc(e){const t=X(e),n=+Ei(t)-+dy(t);return Math.round(n/vf)+1}function Yc(e,t){var d,u,f,p;const n=X(e),r=n.getFullYear(),i=ti(),o=(t==null?void 0:t.firstWeekContainsDate)??((u=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(f=i.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=Oe(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=sr(a,t),l=Oe(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=sr(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function fy(e,t){var s,l,c,d;const n=ti(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,i=Yc(e,t),o=Oe(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),sr(o,t)}function Sf(e,t){const n=X(e),r=+sr(n,t)-+fy(n,t);return Math.round(r/vf)+1}function Ae(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const kr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ae(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ae(n+1,2)},d(e,t){return Ae(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ae(e.getHours()%12||12,t.length)},H(e,t){return Ae(e.getHours(),t.length)},m(e,t){return Ae(e.getMinutes(),t.length)},s(e,t){return Ae(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Ae(i,t.length)}},Ii={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Tf={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return kr.y(e,t)},Y:function(e,t,n,r){const i=Yc(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Ae(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ae(o,t.length)},R:function(e,t){const n=kf(e);return Ae(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ae(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ae(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ae(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return kr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ae(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Sf(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ae(i,t.length)},I:function(e,t,n){const r=Wc(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ae(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):kr.d(e,t)},D:function(e,t,n){const r=uy(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ae(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ae(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ae(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Ae(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Ii.noon:r===0?i=Ii.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Ii.evening:r>=12?i=Ii.afternoon:r>=4?i=Ii.morning:i=Ii.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return kr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):kr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ae(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ae(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):kr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):kr.s(e,t)},S:function(e,t){return kr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Df(r);case"XXXX":case"XX":return ni(r);case"XXXXX":case"XXX":default:return ni(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Df(r);case"xxxx":case"xx":return ni(r);case"xxxxx":case"xxx":default:return ni(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mf(r,":");case"OOOO":default:return"GMT"+ni(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mf(r,":");case"zzzz":default:return"GMT"+ni(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Ae(r,t.length)},T:function(e,t,n){const r=e.getTime();return Ae(r,t.length)}};function Mf(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Ae(o,2)}function Df(e,t){return e%60===0?(e>0?"-":"+")+Ae(Math.abs(e)/60,2):ni(e,t)}function ni(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Ae(Math.trunc(r/60),2),o=Ae(r%60,2);return n+i+t+o}const Lf=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Pf=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ms={p:Pf,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Lf(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Lf(r,t)).replace("{{time}}",Pf(i,t))}},py=/^D+$/,hy=/^Y+$/,my=["D","DD","YY","YYYY"];function Ef(e){return py.test(e)}function If(e){return hy.test(e)}function Uc(e,t,n){const r=_y(e,t,n);if(console.warn(r),my.includes(e))throw new RangeError(r)}function _y(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function lr(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function _s(e){if(!lr(e)&&typeof e!="number")return!1;const t=X(e);return!isNaN(Number(t))}const gy=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yy=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,by=/^'([^]*?)'?$/,vy=/''/g,Cy=/[a-zA-Z]/;function Of(e,t,n){var d,u,f,p,h,g,_,m;const r=ti(),i=(n==null?void 0:n.locale)??r.locale??xf,o=(n==null?void 0:n.firstWeekContainsDate)??((u=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((g=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((m=(_=r.locale)==null?void 0:_.options)==null?void 0:m.weekStartsOn)??0,s=X(e);if(!_s(s))throw new RangeError("Invalid time value");let l=t.match(yy).map(b=>{const C=b[0];if(C==="p"||C==="P"){const x=ms[C];return x(b,i.formatLong)}return b}).join("").match(gy).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const C=b[0];if(C==="'")return{isToken:!1,value:wy(b)};if(Tf[C])return{isToken:!0,value:b};if(C.match(Cy))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:b}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(b=>{if(!b.isToken)return b.value;const C=b.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&If(C)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Ef(C))&&Uc(C,t,String(e));const x=Tf[C[0]];return x(s,C,i.localize,c)}).join("")}function wy(e){const t=e.match(by);return t?t[1].replace(vy,"'"):e}function Af(e){return X(e).getDate()}function xy(e){return X(e).getDay()}function In(e){return X(e).getHours()}function On(e){return X(e).getMinutes()}function Mt(e){return X(e).getMonth()}function cr(e){return X(e).getSeconds()}function Zc(e){return X(e).getTime()}function pe(e){return X(e).getFullYear()}function Sr(e,t){const n=X(e),r=X(t);return n.getTime()>r.getTime()}function ri(e,t){const n=X(e),r=X(t);return+n<+r}function ky(e,t){const n=X(e),r=X(t);return+n==+r}function Sy(e,t){const n=Jr(e),r=Jr(t);return+n==+r}function Ty(e,t){const n=X(e),r=X(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function qc(e){const t=X(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function My(e,t){const n=qc(e),r=qc(t);return+n==+r}function Dy(e,t){const n=X(e),r=X(t);return n.getFullYear()===r.getFullYear()}function Ro(e,t){const n=+X(e),[r,i]=[+X(t.start),+X(t.end)].sort((o,a)=>o-a);return n>=r&&n<=i}function Nf(e){let t;return e.forEach(function(n){const r=X(n);(t===void 0||t<r||isNaN(Number(r)))&&(t=r)}),t||new Date(NaN)}function Rf(e){let t;return e.forEach(n=>{const r=X(n);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function Ly(){return Object.assign({},ti())}function Py(e,t){const n=t instanceof Date?Oe(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}const Ey=10;class jf{constructor(){Q(this,"subPriority",0)}validate(t,n){return!0}}class Iy extends jf{constructor(t,n,r,i,o){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=i,o&&(this.subPriority=o)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class Oy extends jf{constructor(){super(...arguments);Q(this,"priority",Ey);Q(this,"subPriority",-1)}set(n,r){return r.timestampIsSet?n:Oe(n,Py(n,Date))}}class Se{run(t,n,r,i){const o=this.parse(t,n,r,i);return o?{setter:new Iy(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(t,n,r){return!0}}class Ay extends Se{constructor(){super(...arguments);Q(this,"priority",140);Q(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,i){switch(r){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,r,i){return r.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}const et={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},An={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function tt(e,t){return e&&{value:t(e.value),rest:e.rest}}function Ze(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Nn(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*ls+o*ss+a*Mg),rest:t.slice(n[0].length)}}function Ff(e){return Ze(et.anyDigitsSigned,e)}function Ge(e,t){switch(e){case 1:return Ze(et.singleDigit,t);case 2:return Ze(et.twoDigits,t);case 3:return Ze(et.threeDigits,t);case 4:return Ze(et.fourDigits,t);default:return Ze(new RegExp("^\\d{1,"+e+"}"),t)}}function gs(e,t){switch(e){case 1:return Ze(et.singleDigitSigned,t);case 2:return Ze(et.twoDigitsSigned,t);case 3:return Ze(et.threeDigitsSigned,t);case 4:return Ze(et.fourDigitsSigned,t);default:return Ze(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Gc(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Vf(e,t){const n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const o=r+50,a=Math.trunc(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return n?i:1-i}function Bf(e){return e%400===0||e%4===0&&e%100!==0}class Ny extends Se{constructor(){super(...arguments);Q(this,"priority",130);Q(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,i){const o=a=>({year:a,isTwoDigitYear:r==="yy"});switch(r){case"y":return tt(Ge(4,n),o);case"yo":return tt(i.ordinalNumber(n,{unit:"year"}),o);default:return tt(Ge(r.length,n),o)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i){const o=n.getFullYear();if(i.isTwoDigitYear){const s=Vf(i.year,o);return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}const a=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}}class Ry extends Se{constructor(){super(...arguments);Q(this,"priority",130);Q(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,i){const o=a=>({year:a,isTwoDigitYear:r==="YY"});switch(r){case"Y":return tt(Ge(4,n),o);case"Yo":return tt(i.ordinalNumber(n,{unit:"year"}),o);default:return tt(Ge(r.length,n),o)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i,o){const a=Yc(n,o);if(i.isTwoDigitYear){const l=Vf(i.year,a);return n.setFullYear(l,0,o.firstWeekContainsDate),n.setHours(0,0,0,0),sr(n,o)}const s=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(s,0,o.firstWeekContainsDate),n.setHours(0,0,0,0),sr(n,o)}}class jy extends Se{constructor(){super(...arguments);Q(this,"priority",130);Q(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return gs(r==="R"?4:r.length,n)}set(n,r,i){const o=Oe(n,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),Ei(o)}}class Fy extends Se{constructor(){super(...arguments);Q(this,"priority",130);Q(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return gs(r==="u"?4:r.length,n)}set(n,r,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}class Vy extends Se{constructor(){super(...arguments);Q(this,"priority",120);Q(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"Q":case"QQ":return Ge(r.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class By extends Se{constructor(){super(...arguments);Q(this,"priority",120);Q(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"q":case"qq":return Ge(r.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class Hy extends Se{constructor(){super(...arguments);Q(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);Q(this,"priority",110)}parse(n,r,i){const o=a=>a-1;switch(r){case"M":return tt(Ze(et.month,n),o);case"MM":return tt(Ge(2,n),o);case"Mo":return tt(i.ordinalNumber(n,{unit:"month"}),o);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}class $y extends Se{constructor(){super(...arguments);Q(this,"priority",110);Q(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,i){const o=a=>a-1;switch(r){case"L":return tt(Ze(et.month,n),o);case"LL":return tt(Ge(2,n),o);case"Lo":return tt(i.ordinalNumber(n,{unit:"month"}),o);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}function zy(e,t,n){const r=X(e),i=Sf(r,n)-t;return r.setDate(r.getDate()-i*7),r}class Wy extends Se{constructor(){super(...arguments);Q(this,"priority",100);Q(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,i){switch(r){case"w":return Ze(et.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return Ge(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i,o){return sr(zy(n,i,o),o)}}function Yy(e,t){const n=X(e),r=Wc(n)-t;return n.setDate(n.getDate()-r*7),n}class Uy extends Se{constructor(){super(...arguments);Q(this,"priority",100);Q(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,i){switch(r){case"I":return Ze(et.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return Ge(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i){return Ei(Yy(n,i))}}const Zy=[31,28,31,30,31,30,31,31,30,31,30,31],qy=[31,29,31,30,31,30,31,31,30,31,30,31];class Gy extends Se{constructor(){super(...arguments);Q(this,"priority",90);Q(this,"subPriority",1);Q(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"d":return Ze(et.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return Ge(r.length,n)}}validate(n,r){const i=n.getFullYear(),o=Bf(i),a=n.getMonth();return o?r>=1&&r<=qy[a]:r>=1&&r<=Zy[a]}set(n,r,i){return n.setDate(i),n.setHours(0,0,0,0),n}}class Ky extends Se{constructor(){super(...arguments);Q(this,"priority",90);Q(this,"subpriority",1);Q(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,i){switch(r){case"D":case"DD":return Ze(et.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return Ge(r.length,n)}}validate(n,r){const i=n.getFullYear();return Bf(i)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}}function Kc(e,t,n){var u,f,p,h;const r=ti(),i=(n==null?void 0:n.weekStartsOn)??((f=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??r.weekStartsOn??((h=(p=r.locale)==null?void 0:p.options)==null?void 0:h.weekStartsOn)??0,o=X(e),a=o.getDay(),l=(t%7+7)%7,c=7-i,d=t<0||t>6?t-(a+c)%7:(l+c)%7-(a+c)%7;return xr(o,d)}class Qy extends Se{constructor(){super(...arguments);Q(this,"priority",90);Q(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,o){return n=Kc(n,i,o),n.setHours(0,0,0,0),n}}class Xy extends Se{constructor(){super(...arguments);Q(this,"priority",90);Q(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,i,o){const a=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return tt(Ge(r.length,n),a);case"eo":return tt(i.ordinalNumber(n,{unit:"day"}),a);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,o){return n=Kc(n,i,o),n.setHours(0,0,0,0),n}}class Jy extends Se{constructor(){super(...arguments);Q(this,"priority",90);Q(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,i,o){const a=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return tt(Ge(r.length,n),a);case"co":return tt(i.ordinalNumber(n,{unit:"day"}),a);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,o){return n=Kc(n,i,o),n.setHours(0,0,0,0),n}}function eb(e){let n=X(e).getDay();return n===0&&(n=7),n}function tb(e,t){const n=X(e),r=eb(n),i=t-r;return xr(n,i)}class nb extends Se{constructor(){super(...arguments);Q(this,"priority",90);Q(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,i){const o=a=>a===0?7:a;switch(r){case"i":case"ii":return Ge(r.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return tt(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),o);case"iiiii":return tt(i.day(n,{width:"narrow",context:"formatting"}),o);case"iiiiii":return tt(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),o);case"iiii":default:return tt(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),o)}}validate(n,r){return r>=1&&r<=7}set(n,r,i){return n=tb(n,i),n.setHours(0,0,0,0),n}}class rb extends Se{constructor(){super(...arguments);Q(this,"priority",80);Q(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,i){switch(r){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(Gc(i),0,0,0),n}}class ib extends Se{constructor(){super(...arguments);Q(this,"priority",80);Q(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,i){switch(r){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(Gc(i),0,0,0),n}}class ob extends Se{constructor(){super(...arguments);Q(this,"priority",80);Q(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,i){switch(r){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(Gc(i),0,0,0),n}}class ab extends Se{constructor(){super(...arguments);Q(this,"priority",70);Q(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,i){switch(r){case"h":return Ze(et.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return Ge(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,i){const o=n.getHours()>=12;return o&&i<12?n.setHours(i+12,0,0,0):!o&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}}class sb extends Se{constructor(){super(...arguments);Q(this,"priority",70);Q(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,i){switch(r){case"H":return Ze(et.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return Ge(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,i){return n.setHours(i,0,0,0),n}}class lb extends Se{constructor(){super(...arguments);Q(this,"priority",70);Q(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,i){switch(r){case"K":return Ze(et.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return Ge(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}}class cb extends Se{constructor(){super(...arguments);Q(this,"priority",70);Q(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,i){switch(r){case"k":return Ze(et.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return Ge(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,i){const o=i<=24?i%24:i;return n.setHours(o,0,0,0),n}}class ub extends Se{constructor(){super(...arguments);Q(this,"priority",60);Q(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"m":return Ze(et.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return Ge(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setMinutes(i,0,0),n}}class db extends Se{constructor(){super(...arguments);Q(this,"priority",50);Q(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"s":return Ze(et.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return Ge(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setSeconds(i,0),n}}class fb extends Se{constructor(){super(...arguments);Q(this,"priority",30);Q(this,"incompatibleTokens",["t","T"])}parse(n,r){const i=o=>Math.trunc(o*Math.pow(10,-r.length+3));return tt(Ge(r.length,n),i)}set(n,r,i){return n.setMilliseconds(i),n}}class pb extends Se{constructor(){super(...arguments);Q(this,"priority",10);Q(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return Nn(An.basicOptionalMinutes,n);case"XX":return Nn(An.basic,n);case"XXXX":return Nn(An.basicOptionalSeconds,n);case"XXXXX":return Nn(An.extendedOptionalSeconds,n);case"XXX":default:return Nn(An.extended,n)}}set(n,r,i){return r.timestampIsSet?n:Oe(n,n.getTime()-us(n)-i)}}class hb extends Se{constructor(){super(...arguments);Q(this,"priority",10);Q(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return Nn(An.basicOptionalMinutes,n);case"xx":return Nn(An.basic,n);case"xxxx":return Nn(An.basicOptionalSeconds,n);case"xxxxx":return Nn(An.extendedOptionalSeconds,n);case"xxx":default:return Nn(An.extended,n)}}set(n,r,i){return r.timestampIsSet?n:Oe(n,n.getTime()-us(n)-i)}}class mb extends Se{constructor(){super(...arguments);Q(this,"priority",40);Q(this,"incompatibleTokens","*")}parse(n){return Ff(n)}set(n,r,i){return[Oe(n,i*1e3),{timestampIsSet:!0}]}}class _b extends Se{constructor(){super(...arguments);Q(this,"priority",20);Q(this,"incompatibleTokens","*")}parse(n){return Ff(n)}set(n,r,i){return[Oe(n,i),{timestampIsSet:!0}]}}const gb={G:new Ay,y:new Ny,Y:new Ry,R:new jy,u:new Fy,Q:new Vy,q:new By,M:new Hy,L:new $y,w:new Wy,I:new Uy,d:new Gy,D:new Ky,E:new Qy,e:new Xy,c:new Jy,i:new nb,a:new rb,b:new ib,B:new ob,h:new ab,H:new sb,K:new lb,k:new cb,m:new ub,s:new db,S:new fb,X:new pb,x:new hb,t:new mb,T:new _b},yb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vb=/^'([^]*?)'?$/,Cb=/''/g,wb=/\S/,xb=/[a-zA-Z]/;function Qc(e,t,n,r){var g,_,m,b,C,x,w,k;const i=Ly(),o=(r==null?void 0:r.locale)??i.locale??xf,a=(r==null?void 0:r.firstWeekContainsDate)??((_=(g=r==null?void 0:r.locale)==null?void 0:g.options)==null?void 0:_.firstWeekContainsDate)??i.firstWeekContainsDate??((b=(m=i.locale)==null?void 0:m.options)==null?void 0:b.firstWeekContainsDate)??1,s=(r==null?void 0:r.weekStartsOn)??((x=(C=r==null?void 0:r.locale)==null?void 0:C.options)==null?void 0:x.weekStartsOn)??i.weekStartsOn??((k=(w=i.locale)==null?void 0:w.options)==null?void 0:k.weekStartsOn)??0;if(t==="")return e===""?X(n):Oe(n,NaN);const l={firstWeekContainsDate:a,weekStartsOn:s,locale:o},c=[new Oy],d=t.match(bb).map(S=>{const M=S[0];if(M in ms){const P=ms[M];return P(S,o.formatLong)}return S}).join("").match(yb),u=[];for(let S of d){!(r!=null&&r.useAdditionalWeekYearTokens)&&If(S)&&Uc(S,t,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Ef(S)&&Uc(S,t,e);const M=S[0],P=gb[M];if(P){const{incompatibleTokens:T}=P;if(Array.isArray(T)){const O=u.find(V=>T.includes(V.token)||V.token===M);if(O)throw new RangeError(`The format string mustn't contain \`${O.fullToken}\` and \`${S}\` at the same time`)}else if(P.incompatibleTokens==="*"&&u.length>0)throw new RangeError(`The format string mustn't contain \`${S}\` and any other token at the same time`);u.push({token:M,fullToken:S});const I=P.run(e,S,o.match,l);if(!I)return Oe(n,NaN);c.push(I.setter),e=I.rest}else{if(M.match(xb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");if(S==="''"?S="'":M==="'"&&(S=kb(S)),e.indexOf(S)===0)e=e.slice(S.length);else return Oe(n,NaN)}}if(e.length>0&&wb.test(e))return Oe(n,NaN);const f=c.map(S=>S.priority).sort((S,M)=>M-S).filter((S,M,P)=>P.indexOf(S)===M).map(S=>c.filter(M=>M.priority===S).sort((M,P)=>P.subPriority-M.subPriority)).map(S=>S[0]);let p=X(n);if(isNaN(p.getTime()))return Oe(n,NaN);const h={};for(const S of f){if(!S.validate(p,l))return Oe(n,NaN);const M=S.set(p,h,l);Array.isArray(M)?(p=M[0],Object.assign(h,M[1])):p=M}return Oe(n,p)}function kb(e){return e.match(vb)[1].replace(Cb,"'")}function Sb(e,t){const r=Lb(e);let i;if(r.date){const l=Pb(r.date,2);i=Eb(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const o=i.getTime();let a=0,s;if(r.time&&(a=Ib(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=Ob(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(o+a),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(o+a+s)}const ys={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Tb=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Mb=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Db=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Lb(e){const t={},n=e.split(ys.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ys.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ys.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=ys.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Pb(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Eb(e,t){if(t===null)return new Date(NaN);const n=e.match(Tb);if(!n)return new Date(NaN);const r=!!n[4],i=jo(n[1]),o=jo(n[2])-1,a=jo(n[3]),s=jo(n[4]),l=jo(n[5])-1;if(r)return Fb(t,s,l)?Ab(t,s,l):new Date(NaN);{const c=new Date(0);return!Rb(t,o,a)||!jb(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}}function jo(e){return e?parseInt(e):1}function Ib(e){const t=e.match(Mb);if(!t)return NaN;const n=Xc(t[1]),r=Xc(t[2]),i=Xc(t[3]);return Vb(n,r,i)?n*ls+r*ss+i*1e3:NaN}function Xc(e){return e&&parseFloat(e.replace(",","."))||0}function Ob(e){if(e==="Z")return 0;const t=e.match(Db);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Bb(r,i)?n*(r*ls+i*ss):NaN}function Ab(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const Nb=[31,null,31,30,31,30,31,31,30,31,30,31];function Hf(e){return e%400===0||e%4===0&&e%100!==0}function Rb(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Nb[t]||(Hf(e)?29:28))}function jb(e,t){return t>=1&&t<=(Hf(e)?366:365)}function Fb(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Vb(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Bb(e,t){return t>=0&&t<=59}function Hb(e){const t=X(e),n=t.getFullYear(),r=t.getMonth(),i=Oe(e,0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Zt(e,t){const n=X(e),r=n.getFullYear(),i=n.getDate(),o=Oe(e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);const a=Hb(o);return n.setMonth(t,Math.min(i,a)),n}function $b(e,t){let n=X(e);return isNaN(+n)?Oe(e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Zt(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}function bs(e,t){const n=X(e);return n.setHours(t),n}function vs(e,t){const n=X(e);return n.setMinutes(t),n}function Oi(e,t){const n=X(e),r=Math.trunc(n.getMonth()/3)+1,i=t-r;return Zt(n,n.getMonth()+i*3)}function Cs(e,t){const n=X(e);return n.setSeconds(t),n}function Rn(e,t){const n=X(e);return isNaN(+n)?Oe(e,NaN):(n.setFullYear(t),n)}function $f(e){const t=X(e);return t.setDate(1),t.setHours(0,0,0,0),t}function zb(e,t){return xr(e,-1)}function Ai(e,t){return gn(e,-t)}function zf(e,t){return $c(e,-1)}function Wf(e,t){return cs(e,-1)}function Ni(e,t){return ar(e,-t)}function ws(){return typeof window<"u"}function Ri(e){return Yf(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jn(e){var t;return(t=(Yf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yf(e){return ws()?e instanceof Node||e instanceof qt(e).Node:!1}function Dt(e){return ws()?e instanceof Element||e instanceof qt(e).Element:!1}function ur(e){return ws()?e instanceof HTMLElement||e instanceof qt(e).HTMLElement:!1}function Uf(e){return!ws()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot}function Fo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=sn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function Wb(e){return/^(table|td|th)$/.test(Ri(e))}function xs(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Yb=/transform|translate|scale|rotate|perspective|filter/,Ub=/paint|layout|strict|content/,ii=e=>!!e&&e!=="none";let Jc;function eu(e){const t=Dt(e)?sn(e):e;return ii(t.transform)||ii(t.translate)||ii(t.scale)||ii(t.rotate)||ii(t.perspective)||!tu()&&(ii(t.backdropFilter)||ii(t.filter))||Yb.test(t.willChange||"")||Ub.test(t.contain||"")}function Zb(e){let t=Tr(e);for(;ur(t)&&!ji(t);){if(eu(t))return t;if(xs(t))return null;t=Tr(t)}return null}function tu(){return Jc==null&&(Jc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Jc}function ji(e){return/^(html|body|#document)$/.test(Ri(e))}function sn(e){return qt(e).getComputedStyle(e)}function ks(e){return Dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Tr(e){if(Ri(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Uf(e)&&e.host||jn(e);return Uf(t)?t.host:t}function Zf(e){const t=Tr(e);return ji(t)?e.ownerDocument?e.ownerDocument.body:e.body:ur(t)&&Fo(t)?t:Zf(t)}function Vo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Zf(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=qt(i);if(o){const s=nu(a);return t.concat(a,a.visualViewport||[],Fo(i)?i:[],s&&n?Vo(s):[])}else return t.concat(i,Vo(i,[],n))}function nu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Fi=Math.min,oi=Math.max,Ss=Math.round,Ts=Math.floor,Fn=e=>({x:e,y:e}),qb={left:"right",right:"left",bottom:"top",top:"bottom"};function Gb(e,t,n){return oi(e,Fi(t,n))}function Ms(e,t){return typeof e=="function"?e(t):e}function Vi(e){return e.split("-")[0]}function Bo(e){return e.split("-")[1]}function Kb(e){return e==="x"?"y":"x"}function ru(e){return e==="y"?"height":"width"}function ai(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function iu(e){return Kb(ai(e))}function Qb(e,t,n){n===void 0&&(n=!1);const r=Bo(e),i=iu(e),o=ru(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Ds(a)),[a,Ds(a)]}function Xb(e){const t=Ds(e);return[ou(e),t,ou(t)]}function ou(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const qf=["left","right"],Gf=["right","left"],Jb=["top","bottom"],ev=["bottom","top"];function tv(e,t,n){switch(e){case"top":case"bottom":return n?t?Gf:qf:t?qf:Gf;case"left":case"right":return t?Jb:ev;default:return[]}}function nv(e,t,n,r){const i=Bo(e);let o=tv(Vi(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(ou)))),o}function Ds(e){const t=Vi(e);return qb[t]+e.slice(t.length)}function rv(e){return{top:0,right:0,bottom:0,left:0,...e}}function Kf(e){return typeof e!="number"?rv(e):{top:e,right:e,bottom:e,left:e}}function Ls(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Qf(e,t,n){let{reference:r,floating:i}=e;const o=ai(t),a=iu(t),s=ru(a),l=Vi(t),c=o==="y",d=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:d,y:r.y-i.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-i.width,y:u};break;default:p={x:r.x,y:r.y}}switch(Bo(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1);break}return p}async function iv(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:p=0}=Ms(t,e),h=Kf(p),_=s[f?u==="floating"?"reference":"floating":u],m=Ls(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(_)))==null||n?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),b=u==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),x=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},w=Ls(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:C,strategy:l}):b);return{top:(m.top-w.top+h.top)/x.y,bottom:(w.bottom-m.bottom+h.bottom)/x.y,left:(m.left-w.left+h.left)/x.x,right:(w.right-m.right+h.right)/x.x}}const ov=50,av=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:iv},l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=Qf(c,r,l),f=r,p=0;const h={};for(let g=0;g<o.length;g++){const _=o[g];if(!_)continue;const{name:m,fn:b}=_,{x:C,y:x,data:w,reset:k}=await b({x:d,y:u,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});d=C??d,u=x??u,h[m]={...h[m],...w},k&&p<ov&&(p++,typeof k=="object"&&(k.placement&&(f=k.placement),k.rects&&(c=k.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:d,y:u}=Qf(c,f,l)),g=-1)}return{x:d,y:u,placement:f,strategy:i,middlewareData:h}},sv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=Ms(e,t)||{};if(c==null)return{};const u=Kf(d),f={x:n,y:r},p=iu(i),h=ru(p),g=await a.getDimensions(c),_=p==="y",m=_?"top":"left",b=_?"bottom":"right",C=_?"clientHeight":"clientWidth",x=o.reference[h]+o.reference[p]-f[p]-o.floating[h],w=f[p]-o.reference[p],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let S=k?k[C]:0;(!S||!await(a.isElement==null?void 0:a.isElement(k)))&&(S=s.floating[C]||o.floating[h]);const M=x/2-w/2,P=S/2-g[h]/2-1,T=Fi(u[m],P),I=Fi(u[b],P),O=T,V=S-g[h]-I,N=S/2-g[h]/2+M,A=Gb(O,N,V),j=!l.arrow&&Bo(i)!=null&&N!==A&&o.reference[h]/2-(N<O?T:I)-g[h]/2<0,Y=j?N<O?N-O:N-V:0;return{[p]:f[p]+Y,data:{[p]:A,centerOffset:N-A-Y,...j&&{alignmentOffset:Y}},reset:j}}}),lv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,..._}=Ms(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const m=Vi(i),b=ai(s),C=Vi(s)===s,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=f||(C||!g?[Ds(s)]:Xb(s)),k=h!=="none";!f&&k&&w.push(...nv(s,g,h,x));const S=[s,...w],M=await l.detectOverflow(t,_),P=[];let T=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&P.push(M[m]),u){const N=Qb(i,a,x);P.push(M[N[0]],M[N[1]])}if(T=[...T,{placement:i,overflows:P}],!P.every(N=>N<=0)){var I,O;const N=(((I=o.flip)==null?void 0:I.index)||0)+1,A=S[N];if(A&&(!(u==="alignment"?b!==ai(A):!1)||T.every(H=>ai(H.placement)===b?H.overflows[0]>0:!0)))return{data:{index:N,overflows:T},reset:{placement:A}};let j=(O=T.filter(Y=>Y.overflows[0]<=0).sort((Y,H)=>Y.overflows[1]-H.overflows[1])[0])==null?void 0:O.placement;if(!j)switch(p){case"bestFit":{var V;const Y=(V=T.filter(H=>{if(k){const G=ai(H.placement);return G===b||G==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(G=>G>0).reduce((G,D)=>G+D,0)]).sort((H,G)=>H[1]-G[1])[0])==null?void 0:V[0];Y&&(j=Y);break}case"initialPlacement":j=s;break}if(i!==j)return{reset:{placement:j}}}return{}}}},cv=new Set(["left","top"]);async function uv(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Vi(n),s=Bo(n),l=ai(n)==="y",c=cv.has(a)?-1:1,d=o&&l?-1:1,u=Ms(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*d,y:f*c}:{x:f*c,y:p*d}}const dv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await uv(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}};function Xf(e){const t=sn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ur(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Ss(n)!==o||Ss(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function au(e){return Dt(e)?e:e.contextElement}function Bi(e){const t=au(e);if(!ur(t))return Fn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Xf(t);let a=(o?Ss(n.width):n.width)/r,s=(o?Ss(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const fv=Fn(0);function Jf(e){const t=qt(e);return!tu()||!t.visualViewport?fv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pv(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==qt(e)?!1:t}function si(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=au(e);let a=Fn(1);t&&(r?Dt(r)&&(a=Bi(r)):a=Bi(e));const s=pv(o,n,r)?Jf(o):Fn(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(o){const f=qt(o),p=r&&Dt(r)?qt(r):r;let h=f,g=nu(h);for(;g&&r&&p!==h;){const _=Bi(g),m=g.getBoundingClientRect(),b=sn(g),C=m.left+(g.clientLeft+parseFloat(b.paddingLeft))*_.x,x=m.top+(g.clientTop+parseFloat(b.paddingTop))*_.y;l*=_.x,c*=_.y,d*=_.x,u*=_.y,l+=C,c+=x,h=qt(g),g=nu(h)}}return Ls({width:d,height:u,x:l,y:c})}function Ps(e,t){const n=ks(e).scrollLeft;return t?t.left+n:si(jn(e)).left+n}function e0(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ps(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function hv(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=jn(r),s=t?xs(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Fn(1);const d=Fn(0),u=ur(r);if((u||!u&&!o)&&((Ri(r)!=="body"||Fo(a))&&(l=ks(r)),u)){const p=si(r);c=Bi(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const f=a&&!u&&!o?e0(a,l):Fn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-l.scrollTop*c.y+d.y+f.y}}function mv(e){return Array.from(e.getClientRects())}function _v(e){const t=jn(e),n=ks(e),r=e.ownerDocument.body,i=oi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=oi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ps(e);const s=-n.scrollTop;return sn(r).direction==="rtl"&&(a+=oi(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}const t0=25;function gv(e,t){const n=qt(e),r=jn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const d=tu();(!d||d&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const c=Ps(r);if(c<=0){const d=r.ownerDocument,u=d.body,f=getComputedStyle(u),p=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(r.clientWidth-u.clientWidth-p);h<=t0&&(o-=h)}else c<=t0&&(o+=c);return{width:o,height:a,x:s,y:l}}function yv(e,t){const n=si(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=ur(e)?Bi(e):Fn(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:a,height:s,x:l,y:c}}function n0(e,t,n){let r;if(t==="viewport")r=gv(e,n);else if(t==="document")r=_v(jn(e));else if(Dt(t))r=yv(t,n);else{const i=Jf(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ls(r)}function r0(e,t){const n=Tr(e);return n===t||!Dt(n)||ji(n)?!1:sn(n).position==="fixed"||r0(n,t)}function bv(e,t){const n=t.get(e);if(n)return n;let r=Vo(e,[],!1).filter(s=>Dt(s)&&Ri(s)!=="body"),i=null;const o=sn(e).position==="fixed";let a=o?Tr(e):e;for(;Dt(a)&&!ji(a);){const s=sn(a),l=eu(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Fo(a)&&!l&&r0(e,a))?r=r.filter(d=>d!==a):i=s,a=Tr(a)}return t.set(e,r),r}function vv(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?xs(t)?[]:bv(t,this._c):[].concat(n),r],s=n0(t,a[0],i);let l=s.top,c=s.right,d=s.bottom,u=s.left;for(let f=1;f<a.length;f++){const p=n0(t,a[f],i);l=oi(p.top,l),c=Fi(p.right,c),d=Fi(p.bottom,d),u=oi(p.left,u)}return{width:c-u,height:d-l,x:u,y:l}}function Cv(e){const{width:t,height:n}=Xf(e);return{width:t,height:n}}function wv(e,t,n){const r=ur(t),i=jn(t),o=n==="fixed",a=si(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Fn(0);function c(){l.x=Ps(i)}if(r||!r&&!o)if((Ri(t)!=="body"||Fo(i))&&(s=ks(t)),r){const p=si(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&c();o&&!r&&i&&c();const d=i&&!r&&!o?e0(i,s):Fn(0),u=a.left+s.scrollLeft-l.x-d.x,f=a.top+s.scrollTop-l.y-d.y;return{x:u,y:f,width:a.width,height:a.height}}function su(e){return sn(e).position==="static"}function i0(e,t){if(!ur(e)||sn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return jn(e)===n&&(n=n.ownerDocument.body),n}function o0(e,t){const n=qt(e);if(xs(e))return n;if(!ur(e)){let i=Tr(e);for(;i&&!ji(i);){if(Dt(i)&&!su(i))return i;i=Tr(i)}return n}let r=i0(e,t);for(;r&&Wb(r)&&su(r);)r=i0(r,t);return r&&ji(r)&&su(r)&&!eu(r)?n:r||Zb(e)||n}const xv=async function(e){const t=this.getOffsetParent||o0,n=this.getDimensions,r=await n(e.floating);return{reference:wv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function kv(e){return sn(e).direction==="rtl"}const Sv={convertOffsetParentRelativeRectToViewportRelativeRect:hv,getDocumentElement:jn,getClippingRect:vv,getOffsetParent:o0,getElementRects:xv,getClientRects:mv,getDimensions:Cv,getScale:Bi,isElement:Dt,isRTL:kv};function a0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Tv(e,t){let n=null,r;const i=jn(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:d,top:u,width:f,height:p}=c;if(s||t(),!f||!p)return;const h=Ts(u),g=Ts(i.clientWidth-(d+f)),_=Ts(i.clientHeight-(u+p)),m=Ts(d),C={rootMargin:-h+"px "+-g+"px "+-_+"px "+-m+"px",threshold:oi(0,Fi(1,l))||1};let x=!0;function w(k){const S=k[0].intersectionRatio;if(S!==l){if(!x)return a();S?a(!1,S):r=setTimeout(()=>{a(!1,1e-7)},1e3)}S===1&&!a0(c,e.getBoundingClientRect())&&a(),x=!1}try{n=new IntersectionObserver(w,{...C,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,C)}n.observe(e)}return a(!0),o}function s0(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=au(e),d=i||o?[...c?Vo(c):[],...t?Vo(t):[]]:[];d.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),o&&m.addEventListener("resize",n)});const u=c&&s?Tv(c,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(m=>{let[b]=m;b&&b.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),n()}),c&&!l&&p.observe(c),t&&p.observe(t));let h,g=l?si(e):null;l&&_();function _(){const m=si(e);g&&!a0(g,m)&&n(),g=m,h=requestAnimationFrame(_)}return n(),()=>{var m;d.forEach(b=>{i&&b.removeEventListener("scroll",n),o&&b.removeEventListener("resize",n)}),u==null||u(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const Mv=dv,Dv=lv,l0=sv,Lv=(e,t,n)=>{const r=new Map,i={platform:Sv,...n},o={...i.platform,_c:r};return av(e,t,{...i,platform:o})};var Pv=typeof document<"u",Ev=function(){},Es=Pv?v.useLayoutEffect:Ev;function Is(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Is(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Is(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function c0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u0(e,t){const n=c0(e);return Math.round(t*n)/n}function lu(e){const t=R.useRef(e);return Es(()=>{t.current=e}),t}function Iv(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[d,u]=R.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=R.useState(r);Is(f,r)||p(r);const[h,g]=R.useState(null),[_,m]=R.useState(null),b=R.useCallback(H=>{H!==k.current&&(k.current=H,g(H))},[]),C=R.useCallback(H=>{H!==S.current&&(S.current=H,m(H))},[]),x=o||h,w=a||_,k=R.useRef(null),S=R.useRef(null),M=R.useRef(d),P=l!=null,T=lu(l),I=lu(i),O=lu(c),V=R.useCallback(()=>{if(!k.current||!S.current)return;const H={placement:t,strategy:n,middleware:f};I.current&&(H.platform=I.current),Lv(k.current,S.current,H).then(G=>{const D={...G,isPositioned:O.current!==!1};N.current&&!Is(M.current,D)&&(M.current=D,es.flushSync(()=>{u(D)}))})},[f,t,n,I,O]);Es(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(H=>({...H,isPositioned:!1})))},[c]);const N=R.useRef(!1);Es(()=>(N.current=!0,()=>{N.current=!1}),[]),Es(()=>{if(x&&(k.current=x),w&&(S.current=w),x&&w){if(T.current)return T.current(x,w,V);V()}},[x,w,V,T,P]);const A=R.useMemo(()=>({reference:k,floating:S,setReference:b,setFloating:C}),[b,C]),j=R.useMemo(()=>({reference:x,floating:w}),[x,w]),Y=R.useMemo(()=>{const H={position:n,left:0,top:0};if(!j.floating)return H;const G=u0(j.floating,d.x),D=u0(j.floating,d.y);return s?{...H,transform:"translate("+G+"px, "+D+"px)",...c0(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:D}},[n,s,j.floating,d.x,d.y]);return R.useMemo(()=>({...d,update:V,refs:A,elements:j,floatingStyles:Y}),[d,V,A,j,Y])}const Ov=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?l0({element:r.current,padding:i}).fn(n):{}:r?l0({element:r,padding:i}).fn(n):{}}}},Av=(e,t)=>{const n=Mv(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nv=(e,t)=>{const n=Dv(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rv=(e,t)=>{const n=Ov(e);return{name:n.name,fn:n.fn,options:[e,t]}},d0={...R},jv=d0.useInsertionEffect||(e=>e());function Fv(e){const t=R.useRef(()=>{});return jv(()=>{t.current=e}),R.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Os=typeof document<"u"?v.useLayoutEffect:v.useEffect;function cu(){return cu=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},cu.apply(this,arguments)}let f0=!1,Vv=0;const p0=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Vv++;function Bv(){const[e,t]=R.useState(()=>f0?p0():void 0);return Os(()=>{e==null&&t(p0())},[]),R.useEffect(()=>{f0=!0},[]),e}const h0=d0.useId||Bv,Hv=R.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:o,shift:a}},width:s=14,height:l=7,tipRadius:c=0,strokeWidth:d=0,staticOffset:u,stroke:f,d:p,style:{transform:h,...g}={},..._}=t,m=h0(),[b,C]=R.useState(!1);if(Os(()=>{if(!i)return;sn(i).direction==="rtl"&&C(!0)},[i]),!i)return null;const[x,w]=r.split("-"),k=x==="top"||x==="bottom";let S=u;(k&&a!=null&&a.x||!k&&a!=null&&a.y)&&(S=null);const M=d*2,P=M/2,T=s/2*(c/-8+1),I=l/2*c/4,O=!!p,V=S&&w==="end"?"bottom":"top";let N=S&&w==="end"?"right":"left";S&&b&&(N=w==="end"?"left":"right");const A=(o==null?void 0:o.x)!=null?S||o.x:"",j=(o==null?void 0:o.y)!=null?S||o.y:"",Y=p||"M0,0"+(" H"+s)+(" L"+(s-T)+","+(l-I))+(" Q"+s/2+","+l+" "+T+","+(l-I))+" Z",H={top:O?"rotate(180deg)":"",left:O?"rotate(90deg)":"rotate(-90deg)",bottom:O?"":"rotate(180deg)",right:O?"rotate(-90deg)":"rotate(90deg)"}[x];return R.createElement("svg",cu({},_,{"aria-hidden":!0,ref:n,width:O?s:s+M,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[N]:A,[V]:j,[x]:k||O?"100%":"calc(100% - "+M/2+"px)",transform:[H,h].filter(G=>!!G).join(" "),...g}}),M>0&&R.createElement("path",{clipPath:"url(#"+m+")",fill:"none",stroke:f,strokeWidth:M+(p?0:1),d:Y}),R.createElement("path",{stroke:M&&!p?_.fill:"none",d:Y}),R.createElement("clipPath",{id:m},R.createElement("rect",{x:-P,y:P*(O?-1:1),width:s+M,height:s})))});function $v(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const zv=R.createContext(null),Wv=R.createContext(null),Yv=()=>{var e;return((e=R.useContext(zv))==null?void 0:e.id)||null},Uv=()=>R.useContext(Wv);function Zv(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=h0(),o=R.useRef({}),[a]=R.useState(()=>$v()),s=Yv()!=null,[l,c]=R.useState(r.reference),d=Fv((p,h,g)=>{o.current.openEvent=p?h:void 0,a.emit("openchange",{open:p,event:h,reason:g,nested:s}),n==null||n(p,h,g)}),u=R.useMemo(()=>({setPositionReference:c}),[]),f=R.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return R.useMemo(()=>({dataRef:o,open:t,onOpenChange:d,elements:f,events:a,floatingId:i,refs:u}),[t,d,f,a,i,u])}function qv(e){e===void 0&&(e={});const{nodeId:t}=e,n=Zv({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=R.useState(null),[s,l]=R.useState(null),d=(i==null?void 0:i.domReference)||o,u=R.useRef(null),f=Uv();Os(()=>{d&&(u.current=d)},[d]);const p=Iv({...e,elements:{...i,...s&&{reference:s}}}),h=R.useCallback(C=>{const x=Dt(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;l(x),p.refs.setReference(x)},[p.refs]),g=R.useCallback(C=>{(Dt(C)||C===null)&&(u.current=C,a(C)),(Dt(p.refs.reference.current)||p.refs.reference.current===null||C!==null&&!Dt(C))&&p.refs.setReference(C)},[p.refs]),_=R.useMemo(()=>({...p.refs,setReference:g,setPositionReference:h,domReference:u}),[p.refs,g,h]),m=R.useMemo(()=>({...p.elements,domReference:d}),[p.elements,d]),b=R.useMemo(()=>({...p,...r,refs:_,elements:m,nodeId:t}),[p,_,m,t,r]);return Os(()=>{r.dataRef.current.floatingContext=b;const C=f==null?void 0:f.nodesRef.current.find(x=>x.id===t);C&&(C.context=b)}),R.useMemo(()=>({...p,context:b,refs:_,elements:m}),[p,_,m,b])}/*!
760
760
  react-datepicker v7.3.0
761
761
  https://github.com/Hacker0x01/react-datepicker
762
762
  Released under the MIT License.
763
- */var uu=function(t,n){return uu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},uu(t,n)};function pt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");uu(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ke=function(){return ke=Object.assign||function(n){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},ke.apply(this,arguments)};function Vn(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Gv=function(e){var t=e.showTimeSelectOnly,n=t===void 0?!1:t,r=e.showTime,i=r===void 0?!1:r,o=e.className,a=e.children,s=n?"Choose Time":"Choose Date".concat(i?" and Time":"");return v.createElement("div",{className:o,role:"dialog","aria-label":s,"aria-modal":"true"},a)},q;(function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"})(q||(q={}));function m0(){var e=typeof window<"u"?window:globalThis;return e}var Ho=12,Kv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Ne(e){if(e==null)return new Date;var t=typeof e=="string"?Sb(e):X(e);return dr(t)?t:new Date}function Qv(e,t,n,r,i){var o,a=null,s=ci(n)||ci(Wo()),l=!0;if(Array.isArray(t))return t.forEach(function(u){var d=Qc(e,u,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});r&&(l=dr(d,i)&&e===$e(d,u,n)),dr(d,i)&&l&&(a=d)}),a;if(a=Qc(e,t,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),r)l=dr(a)&&e===$e(a,t,n);else if(!dr(a)){var c=((o=t.match(Kv))!==null&&o!==void 0?o:[]).map(function(u){var d=u[0];if(d==="p"||d==="P"){var f=ms[d];return s?f(u,s.formatLong):d}return u}).join("");e.length>0&&(a=Qc(e,c.slice(0,e.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),dr(a)||(a=new Date(e))}return dr(a)&&l?a:null}function dr(e,t){return _s(e)&&!ri(e,t??new Date("1/1/1800"))}function $e(e,t,n){if(n==="en")return Of(e,t,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?ci(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Wo()&&ci(Wo())&&(r=ci(Wo())),Of(e,t,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function ln(e,t){var n=t.dateFormat,r=t.locale,i=Array.isArray(n)&&n.length>0?n[0]:n;return e&&$e(e,i,r)||""}function Xv(e,t,n){if(!e)return"";var r=ln(e,n),i=t?ln(t,n):"";return"".concat(r," - ").concat(i)}function Jv(e,t){if(!(e!=null&&e.length))return"";var n=e[0]?ln(e[0],t):"";if(e.length===1)return n;if(e.length===2&&e[1]){var r=ln(e[1],t);return"".concat(n,", ").concat(r)}var i=e.length-1;return"".concat(n," (+").concat(i,")")}function du(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,a=t.second,s=a===void 0?0:a;return bs(vs(Cs(e,s),o),r)}function eC(e){return Wc(e)}function tC(e,t){return $e(e,"ddd",t)}function As(e){return Jr(e)}function Mr(e,t,n){var r=ci(t||Wo());return sr(e,{locale:r,weekStartsOn:n})}function Dr(e){return $f(e)}function $o(e){return hs(e)}function _0(e){return qc(e)}function g0(){return Jr(Ne())}function y0(e){return Cf(e)}function nC(e){return Ig(e)}function Bn(e,t){return e&&t?Dy(e,t):!e&&!t}function Lt(e,t){return e&&t?Ty(e,t):!e&&!t}function Ns(e,t){return e&&t?My(e,t):!e&&!t}function ye(e,t){return e&&t?Sy(e,t):!e&&!t}function li(e,t){return e&&t?ky(e,t):!e&&!t}function zo(e,t,n){var r,i=Jr(t),o=Cf(n);try{r=Ro(e,{start:i,end:o})}catch{r=!1}return r}function Wo(){var e=m0();return e.__localeId__}function ci(e){if(typeof e=="string"){var t=m0();return t.__localeData__?t.__localeData__[e]:void 0}else return e}function rC(e,t,n){return t($e(e,"EEEE",n))}function iC(e,t){return $e(e,"EEEEEE",t)}function oC(e,t){return $e(e,"EEE",t)}function fu(e,t){return $e(Zt(Ne(),e),"LLLL",t)}function b0(e,t){return $e(Zt(Ne(),e),"LLL",t)}function aC(e,t){return $e(Oi(Ne(),e),"QQQ",t)}function Lr(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.excludeDateIntervals,s=n.includeDates,l=n.includeDateIntervals,c=n.filterDate;return Yo(e,{minDate:r,maxDate:i})||o&&o.some(function(u){var d;return u instanceof Date?ye(e,u):ye(e,(d=u.date)!==null&&d!==void 0?d:new Date)})||a&&a.some(function(u){var d=u.start,f=u.end;return Ro(e,{start:d,end:f})})||s&&!s.some(function(u){return ye(e,u)})||l&&!l.some(function(u){var d=u.start,f=u.end;return Ro(e,{start:d,end:f})})||c&&!c(Ne(e))||!1}function pu(e,t){var n=t===void 0?{}:t,r=n.excludeDates,i=n.excludeDateIntervals;return i&&i.length>0?i.some(function(o){var a=o.start,s=o.end;return Ro(e,{start:a,end:s})}):r&&r.some(function(o){var a;return o instanceof Date?ye(e,o):ye(e,(a=o.date)!==null&&a!==void 0?a:new Date)})||!1}function v0(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate;return Yo(e,{minDate:r?$f(r):void 0,maxDate:i?Pg(i):void 0})||(o==null?void 0:o.some(function(l){return Lt(e,l instanceof Date?l:l.date)}))||a&&!a.some(function(l){return Lt(e,l)})||s&&!s(Ne(e))||!1}function Rs(e,t,n,r){var i=pe(e),o=Mt(e),a=pe(t),s=Mt(t),l=pe(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:!1}function sC(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates;return Yo(e,{minDate:r,maxDate:i})||o&&o.some(function(s){return Lt(s instanceof Date?s:s.date,e)})||a&&!a.some(function(s){return Lt(s,e)})||!1}function hu(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate;return Yo(e,{minDate:r,maxDate:i})||(o==null?void 0:o.some(function(l){return Ns(e,l instanceof Date?l:l.date)}))||a&&!a.some(function(l){return Ns(e,l)})||s&&!s(Ne(e))||!1}function js(e,t,n){if(!t||!n||!_s(t)||!_s(n))return!1;var r=pe(t),i=pe(n);return r<=e&&i>=e}function mu(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate,l=new Date(e,0,1);return Yo(l,{minDate:r?hs(r):void 0,maxDate:i?wf(i):void 0})||(o==null?void 0:o.some(function(c){return Bn(l,c instanceof Date?c:c.date)}))||a&&!a.some(function(c){return Bn(l,c)})||s&&!s(Ne(l))||!1}function Fs(e,t,n,r){var i=pe(e),o=ei(e),a=pe(t),s=ei(t),l=pe(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:!1}function Yo(e,t){var n,r=t===void 0?{}:t,i=r.minDate,o=r.maxDate;return(n=i&&Oo(e,i)<0||o&&Oo(e,o)>0)!==null&&n!==void 0?n:!1}function C0(e,t){return t.some(function(n){return In(n)===In(e)&&On(n)===On(e)&&cr(n)===cr(e)})}function w0(e,t){var n=t===void 0?{}:t,r=n.excludeTimes,i=n.includeTimes,o=n.filterTime;return r&&C0(e,r)||i&&!C0(e,i)||o&&!o(e)||!1}function x0(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i=Ne();i=bs(i,In(e)),i=vs(i,On(e)),i=Cs(i,cr(e));var o=Ne();o=bs(o,In(n)),o=vs(o,On(n)),o=Cs(o,cr(n));var a=Ne();a=bs(a,In(r)),a=vs(a,On(r)),a=Cs(a,cr(r));var s;try{s=!Ro(i,{start:o,end:a})}catch{s=!1}return s}function k0(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.includeDates,o=Ai(e,1);return r&&ds(r,o)>0||i&&i.every(function(a){return ds(a,o)>0})||!1}function S0(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.includeDates,o=gn(e,1);return r&&ds(o,r)>0||i&&i.every(function(a){return ds(o,a)>0})||!1}function lC(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.includeDates,o=hs(e),a=zf(o);return r&&fs(r,a)>0||i&&i.every(function(s){return fs(s,a)>0})||!1}function cC(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.includeDates,o=wf(e),a=$c(o,1);return r&&fs(a,r)>0||i&&i.every(function(s){return fs(a,s)>0})||!1}function T0(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.includeDates,o=Ni(e,1);return r&&ps(r,o)>0||i&&i.every(function(a){return ps(a,o)>0})||!1}function uC(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.yearItemNumber,o=i===void 0?Ho:i,a=$o(Ni(e,o)),s=Pr(a,o).endPeriod,l=r&&pe(r);return l&&l>s||!1}function M0(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.includeDates,o=ar(e,1);return r&&ps(o,r)>0||i&&i.every(function(a){return ps(o,a)>0})||!1}function dC(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.yearItemNumber,o=i===void 0?Ho:i,a=ar(e,o),s=Pr(a,o).startPeriod,l=r&&pe(r);return l&&l<s||!1}function D0(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return Oo(i,t)>=0});return Rf(r)}else return n?Rf(n):t}function L0(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return Oo(i,t)<=0});return Nf(r)}else return n?Nf(n):t}function P0(e,t){var n;e===void 0&&(e=[]),t===void 0&&(t="react-datepicker__day--highlighted");for(var r=new Map,i=0,o=e.length;i<o;i++){var a=e[i];if(lr(a)){var s=$e(a,"MM.dd.yyyy"),l=r.get(s)||[];l.includes(t)||(l.push(t),r.set(s,l))}else if(typeof a=="object"){var c=Object.keys(a),u=(n=c[0])!==null&&n!==void 0?n:"",d=a[u];if(typeof u=="string"&&Array.isArray(d))for(var f=0,p=d.length;f<p;f++){var h=d[f];if(h){var s=$e(h,"MM.dd.yyyy"),l=r.get(s)||[];l.includes(u)||(l.push(u),r.set(s,l))}}}}return r}function fC(e,t){return e.length!==t.length?!1:e.every(function(n,r){return n===t[r]})}function pC(e,t){e===void 0&&(e=[]),t===void 0&&(t="react-datepicker__day--holidays");var n=new Map;return e.forEach(function(r){var i=r.date,o=r.holidayName;if(lr(i)){var a=$e(i,"MM.dd.yyyy"),s=n.get(a)||{className:"",holidayNames:[]};if(!("className"in s&&s.className===t&&fC(s.holidayNames,[o]))){s.className=t;var l=s.holidayNames;s.holidayNames=l?Vn(Vn([],l,!0),[o],!1):[o],n.set(a,s)}}}),n}function hC(e,t,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=e,c=i[s];c&&(l=Dg(l,In(c)),l=Hc(l,On(c)),l=Lg(l,cr(c)));var u=Hc(e,(n+1)*r);Sr(l,t)&&ri(l,u)&&c!=null&&a.push(c)}return a}function E0(e){return e<10?"0".concat(e):"".concat(e)}function Pr(e,t){t===void 0&&(t=Ho);var n=Math.ceil(pe(e)/t)*t,r=n-(t-1);return{startPeriod:r,endPeriod:n}}function mC(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+n-+t)/36e5)}function I0(e){var t=e.getSeconds(),n=e.getMilliseconds();return X(e.getTime()-t*1e3-n)}function _C(e,t){return I0(e).getTime()===I0(t).getTime()}function O0(e){if(!lr(e))throw new Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function A0(e,t){if(!lr(e)||!lr(t))throw new Error("Invalid date received");var n=O0(e),r=O0(t);return ri(n,r)}function N0(e){return e.key===q.Space}var gC=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;return r.onTimeChange=function(i){var o,a;r.setState({time:i});var s=r.props.date,l=s instanceof Date&&!isNaN(+s),c=l?s:new Date;if(i!=null&&i.includes(":")){var u=i.split(":"),d=u[0],f=u[1];c.setHours(Number(d)),c.setMinutes(Number(f))}(a=(o=r.props).onChange)===null||a===void 0||a.call(o,c)},r.renderTimeInput=function(){var i=r.state.time,o=r.props,a=o.date,s=o.timeString,l=o.customTimeInput;return l?v.cloneElement(l,{date:a,value:i,onChange:r.onTimeChange}):v.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:i,onChange:function(c){r.onTimeChange(c.target.value||s)}})},r.state={time:r.props.timeString},r}return t.getDerivedStateFromProps=function(n,r){return n.timeString!==r.time?{time:n.timeString}:null},t.prototype.render=function(){return v.createElement("div",{className:"react-datepicker__input-time-container"},v.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),v.createElement("div",{className:"react-datepicker-time__input-container"},v.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},t})(v.Component),yC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.dayEl=v.createRef(),n.handleClick=function(r){!n.isDisabled()&&n.props.onClick&&n.props.onClick(r)},n.handleMouseEnter=function(r){!n.isDisabled()&&n.props.onMouseEnter&&n.props.onMouseEnter(r)},n.handleOnKeyDown=function(r){var i,o,a=r.key;a===q.Space&&(r.preventDefault(),r.key=q.Enter),(o=(i=n.props).handleOnKeyDown)===null||o===void 0||o.call(i,r)},n.isSameDay=function(r){return ye(n.props.day,r)},n.isKeyboardSelected=function(){var r;if(n.props.disabledKeyboardNavigation)return!1;var i=n.props.selectsMultiple?(r=n.props.selectedDates)===null||r===void 0?void 0:r.some(function(a){return n.isSameDayOrWeek(a)}):n.isSameDayOrWeek(n.props.selected),o=n.props.preSelection&&n.isDisabled(n.props.preSelection);return!i&&n.isSameDayOrWeek(n.props.preSelection)&&!o},n.isDisabled=function(r){return r===void 0&&(r=n.props.day),Lr(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(){return pu(n.props.day,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.isStartOfWeek=function(){return ye(n.props.day,Mr(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameWeek=function(r){return n.props.showWeekPicker&&ye(r,Mr(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameDayOrWeek=function(r){return n.isSameDay(r)||n.isSameWeek(r)},n.getHighLightedClass=function(){var r=n.props,i=r.day,o=r.highlightDates;if(!o)return!1;var a=$e(i,"MM.dd.yyyy");return o.get(a)},n.getHolidaysClass=function(){var r,i=n.props,o=i.day,a=i.holidays;if(!a)return[void 0];var s=$e(o,"MM.dd.yyyy");return a.has(s)?[(r=a.get(s))===null||r===void 0?void 0:r.className]:[void 0]},n.isInRange=function(){var r=n.props,i=r.day,o=r.startDate,a=r.endDate;return!o||!a?!1:zo(i,o,a)},n.isInSelectingRange=function(){var r,i=n.props,o=i.day,a=i.selectsStart,s=i.selectsEnd,l=i.selectsRange,c=i.selectsDisabledDaysInRange,u=i.startDate,d=i.endDate,f=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return!(a||s||l)||!f||!c&&n.isDisabled()?!1:a&&d&&(ri(f,d)||li(f,d))?zo(o,f,d):s&&u&&(Sr(f,u)||li(f,u))||l&&u&&!d&&(Sr(f,u)||li(f,u))?zo(o,u,f):!1},n.isSelectingRangeStart=function(){var r;if(!n.isInSelectingRange())return!1;var i=n.props,o=i.day,a=i.startDate,s=i.selectsStart,l=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return s?ye(o,l):ye(o,a)},n.isSelectingRangeEnd=function(){var r;if(!n.isInSelectingRange())return!1;var i=n.props,o=i.day,a=i.endDate,s=i.selectsEnd,l=i.selectsRange,c=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return s||l?ye(o,c):ye(o,a)},n.isRangeStart=function(){var r=n.props,i=r.day,o=r.startDate,a=r.endDate;return!o||!a?!1:ye(o,i)},n.isRangeEnd=function(){var r=n.props,i=r.day,o=r.startDate,a=r.endDate;return!o||!a?!1:ye(a,i)},n.isWeekend=function(){var r=xy(n.props.day);return r===0||r===6},n.isAfterMonth=function(){return n.props.month!==void 0&&(n.props.month+1)%12===Mt(n.props.day)},n.isBeforeMonth=function(){return n.props.month!==void 0&&(Mt(n.props.day)+1)%12===n.props.month},n.isCurrentDay=function(){return n.isSameDay(Ne())},n.isSelected=function(){var r;return n.props.selectsMultiple?(r=n.props.selectedDates)===null||r===void 0?void 0:r.some(function(i){return n.isSameDayOrWeek(i)}):n.isSameDayOrWeek(n.props.selected)},n.getClassNames=function(r){var i=n.props.dayClassName?n.props.dayClassName(r):void 0;return ft("react-datepicker__day",i,"react-datepicker__day--"+tC(n.props.day),{"react-datepicker__day--disabled":n.isDisabled(),"react-datepicker__day--excluded":n.isExcluded(),"react-datepicker__day--selected":n.isSelected(),"react-datepicker__day--keyboard-selected":n.isKeyboardSelected(),"react-datepicker__day--range-start":n.isRangeStart(),"react-datepicker__day--range-end":n.isRangeEnd(),"react-datepicker__day--in-range":n.isInRange(),"react-datepicker__day--in-selecting-range":n.isInSelectingRange(),"react-datepicker__day--selecting-range-start":n.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":n.isSelectingRangeEnd(),"react-datepicker__day--today":n.isCurrentDay(),"react-datepicker__day--weekend":n.isWeekend(),"react-datepicker__day--outside-month":n.isAfterMonth()||n.isBeforeMonth()},n.getHighLightedClass(),n.getHolidaysClass())},n.getAriaLabel=function(){var r=n.props,i=r.day,o=r.ariaLabelPrefixWhenEnabled,a=o===void 0?"Choose":o,s=r.ariaLabelPrefixWhenDisabled,l=s===void 0?"Not available":s,c=n.isDisabled()||n.isExcluded()?l:a;return"".concat(c," ").concat($e(i,"PPPP",n.props.locale))},n.getTitle=function(){var r=n.props,i=r.day,o=r.holidays,a=o===void 0?new Map:o,s=r.excludeDates,l=$e(i,"MM.dd.yyyy"),c=[];return a.has(l)&&c.push.apply(c,a.get(l).holidayNames),n.isExcluded()&&c.push(s==null?void 0:s.filter(function(u){return u instanceof Date?ye(u,i):ye(u==null?void 0:u.date,i)}).map(function(u){if(!(u instanceof Date))return u==null?void 0:u.message})),c.join(", ")},n.getTabIndex=function(){var r=n.props.selected,i=n.props.preSelection,o=!(n.props.showWeekPicker&&(n.props.showWeekNumber||!n.isStartOfWeek()))&&(n.isKeyboardSelected()||n.isSameDay(r)&&ye(i,r))?0:-1;return o},n.handleFocusDay=function(){var r;n.shouldFocusDay()&&((r=n.dayEl.current)===null||r===void 0||r.focus({preventScroll:!0}))},n.renderDayContents=function(){return n.props.monthShowsDuplicateDaysEnd&&n.isAfterMonth()||n.props.monthShowsDuplicateDaysStart&&n.isBeforeMonth()?null:n.props.renderDayContents?n.props.renderDayContents(Af(n.props.day),n.props.day):Af(n.props.day)},n.render=function(){return v.createElement("div",{ref:n.dayEl,className:n.getClassNames(n.props.day),onKeyDown:n.handleOnKeyDown,onClick:n.handleClick,onMouseEnter:n.props.usePointerEvent?void 0:n.handleMouseEnter,onPointerEnter:n.props.usePointerEvent?n.handleMouseEnter:void 0,tabIndex:n.getTabIndex(),"aria-label":n.getAriaLabel(),role:"option",title:n.getTitle(),"aria-disabled":n.isDisabled(),"aria-current":n.isCurrentDay()?"date":void 0,"aria-selected":n.isSelected()||n.isInRange()},n.renderDayContents(),n.getTitle()!==""&&v.createElement("span",{className:"overlay"},n.getTitle()))},n}return t.prototype.componentDidMount=function(){this.handleFocusDay()},t.prototype.componentDidUpdate=function(){this.handleFocusDay()},t.prototype.shouldFocusDay=function(){var n=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(n=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(n=!1),this.isDayActiveElement()&&(n=!0),this.isDuplicateDay()&&(n=!1)),n},t.prototype.isDayActiveElement=function(){var n,r,i;return((r=(n=this.props.containerRef)===null||n===void 0?void 0:n.current)===null||r===void 0?void 0:r.contains(document.activeElement))&&((i=document.activeElement)===null||i===void 0?void 0:i.classList.contains("react-datepicker__day"))},t.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},t})(v.Component),bC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.weekNumberEl=v.createRef(),n.handleClick=function(r){n.props.onClick&&n.props.onClick(r)},n.handleOnKeyDown=function(r){var i,o,a=r.key;a===q.Space&&(r.preventDefault(),r.key=q.Enter),(o=(i=n.props).handleOnKeyDown)===null||o===void 0||o.call(i,r)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!ye(n.props.date,n.props.selected)&&ye(n.props.date,n.props.preSelection)},n.getTabIndex=function(){return n.props.showWeekPicker&&n.props.showWeekNumber&&(n.isKeyboardSelected()||ye(n.props.date,n.props.selected)&&ye(n.props.preSelection,n.props.selected))?0:-1},n.handleFocusWeekNumber=function(r){var i=!1;n.getTabIndex()===0&&!(r!=null&&r.isInputFocused)&&ye(n.props.date,n.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(i=!0),n.props.inline&&!n.props.shouldFocusDayInline&&(i=!1),n.props.containerRef&&n.props.containerRef.current&&n.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(i=!0)),i&&n.weekNumberEl.current&&n.weekNumberEl.current.focus({preventScroll:!0})},n}return Object.defineProperty(t,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},t.prototype.componentDidUpdate=function(n){this.handleFocusWeekNumber(n)},t.prototype.render=function(){var n=this.props,r=n.weekNumber,i=n.ariaLabelPrefix,o=i===void 0?t.defaultProps.ariaLabelPrefix:i,a=n.onClick,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!a,"react-datepicker__week-number--selected":!!a&&ye(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return v.createElement("div",{ref:this.weekNumberEl,className:ft(s),"aria-label":"".concat(o," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},r)},t})(v.Component),vC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.isDisabled=function(r){return Lr(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.handleDayClick=function(r,i){n.props.onDayClick&&n.props.onDayClick(r,i)},n.handleDayMouseEnter=function(r){n.props.onDayMouseEnter&&n.props.onDayMouseEnter(r)},n.handleWeekClick=function(r,i,o){for(var a,s,l,c=new Date(r),u=0;u<7;u++){var d=new Date(r);d.setDate(d.getDate()+u);var f=!n.isDisabled(d);if(f){c=d;break}}typeof n.props.onWeekSelect=="function"&&n.props.onWeekSelect(c,i,o),n.props.showWeekPicker&&n.handleDayClick(c,o),((a=n.props.shouldCloseOnSelect)!==null&&a!==void 0?a:t.defaultProps.shouldCloseOnSelect)&&((l=(s=n.props).setOpen)===null||l===void 0||l.call(s,!1))},n.formatWeekNumber=function(r){return n.props.formatWeekNumber?n.props.formatWeekNumber(r):eC(r)},n.renderDays=function(){var r=n.startOfWeek(),i=[],o=n.formatWeekNumber(r);if(n.props.showWeekNumber){var a=n.props.onWeekSelect||n.props.showWeekPicker?n.handleWeekClick.bind(n,r,o):void 0;i.push(v.createElement(bC,ke({key:"W"},t.defaultProps,n.props,{weekNumber:o,date:r,onClick:a})))}return i.concat([0,1,2,3,4,5,6].map(function(s){var l=xr(r,s);return v.createElement(yC,ke({},t.defaultProps,n.props,{ariaLabelPrefixWhenEnabled:n.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:n.props.disabledDayAriaLabelPrefix,key:l.valueOf(),day:l,onClick:n.handleDayClick.bind(n,l),onMouseEnter:n.handleDayMouseEnter.bind(n,l)}))}))},n.startOfWeek=function(){return Mr(n.props.day,n.props.locale,n.props.calendarStartDay)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!ye(n.startOfWeek(),n.props.selected)&&ye(n.startOfWeek(),n.props.preSelection)},n}return Object.defineProperty(t,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n={"react-datepicker__week":!0,"react-datepicker__week--selected":ye(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return v.createElement("div",{className:ft(n)},this.renderDays())},t})(v.Component),Uo,CC=6,Hi={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},_u=(Uo={},Uo[Hi.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},Uo[Hi.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},Uo[Hi.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},Uo),Vs=1;function R0(e,t){return e?Hi.FOUR_COLUMNS:t?Hi.TWO_COLUMNS:Hi.THREE_COLUMNS}var wC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.MONTH_REFS=Vn([],Array(12),!0).map(function(){return v.createRef()}),n.QUARTER_REFS=Vn([],Array(4),!0).map(function(){return v.createRef()}),n.isDisabled=function(r){return Lr(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(r){return pu(r,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.handleDayClick=function(r,i){var o,a;(a=(o=n.props).onDayClick)===null||a===void 0||a.call(o,r,i,n.props.orderInDisplay)},n.handleDayMouseEnter=function(r){var i,o;(o=(i=n.props).onDayMouseEnter)===null||o===void 0||o.call(i,r)},n.handleMouseLeave=function(){var r,i;(i=(r=n.props).onMouseLeave)===null||i===void 0||i.call(r)},n.isRangeStartMonth=function(r){var i=n.props,o=i.day,a=i.startDate,s=i.endDate;return!a||!s?!1:Lt(Zt(o,r),a)},n.isRangeStartQuarter=function(r){var i=n.props,o=i.day,a=i.startDate,s=i.endDate;return!a||!s?!1:Ns(Oi(o,r),a)},n.isRangeEndMonth=function(r){var i=n.props,o=i.day,a=i.startDate,s=i.endDate;return!a||!s?!1:Lt(Zt(o,r),s)},n.isRangeEndQuarter=function(r){var i=n.props,o=i.day,a=i.startDate,s=i.endDate;return!a||!s?!1:Ns(Oi(o,r),s)},n.isInSelectingRangeMonth=function(r){var i,o=n.props,a=o.day,s=o.selectsStart,l=o.selectsEnd,c=o.selectsRange,u=o.startDate,d=o.endDate,f=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return!(s||l||c)||!f?!1:s&&d?Rs(f,d,r,a):l&&u||c&&u&&!d?Rs(u,f,r,a):!1},n.isSelectingMonthRangeStart=function(r){var i;if(!n.isInSelectingRangeMonth(r))return!1;var o=n.props,a=o.day,s=o.startDate,l=o.selectsStart,c=Zt(a,r),u=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return l?Lt(c,u):Lt(c,s)},n.isSelectingMonthRangeEnd=function(r){var i;if(!n.isInSelectingRangeMonth(r))return!1;var o=n.props,a=o.day,s=o.endDate,l=o.selectsEnd,c=o.selectsRange,u=Zt(a,r),d=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return l||c?Lt(u,d):Lt(u,s)},n.isInSelectingRangeQuarter=function(r){var i,o=n.props,a=o.day,s=o.selectsStart,l=o.selectsEnd,c=o.selectsRange,u=o.startDate,d=o.endDate,f=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return!(s||l||c)||!f?!1:s&&d?Fs(f,d,r,a):l&&u||c&&u&&!d?Fs(u,f,r,a):!1},n.isWeekInMonth=function(r){var i=n.props.day,o=xr(r,6);return Lt(r,i)||Lt(o,i)},n.isCurrentMonth=function(r,i){return pe(r)===pe(Ne())&&i===Mt(Ne())},n.isCurrentQuarter=function(r,i){return pe(r)===pe(Ne())&&i===ei(Ne())},n.isSelectedMonth=function(r,i,o){return Mt(o)===i&&pe(r)===pe(o)},n.isSelectMonthInList=function(r,i,o){return o.some(function(a){return n.isSelectedMonth(r,i,a)})},n.isSelectedQuarter=function(r,i,o){return ei(r)===i&&pe(r)===pe(o)},n.renderWeeks=function(){for(var r=[],i=n.props.fixedHeight,o=0,a=!1,s=Mr(Dr(n.props.day),n.props.locale,n.props.calendarStartDay),l=function(h){return n.props.showWeekPicker?Mr(h,n.props.locale,n.props.calendarStartDay):n.props.preSelection},c=function(h){return n.props.showWeekPicker?Mr(h,n.props.locale,n.props.calendarStartDay):n.props.selected},u=n.props.selected?c(n.props.selected):void 0,d=n.props.preSelection?l(n.props.preSelection):void 0;r.push(v.createElement(vC,ke({},n.props,{ariaLabelPrefix:n.props.weekAriaLabelPrefix,key:o,day:s,month:Mt(n.props.day),onDayClick:n.handleDayClick,onDayMouseEnter:n.handleDayMouseEnter,selected:u,preSelection:d,showWeekNumber:n.props.showWeekNumbers}))),!a;){o++,s=cs(s,1);var f=i&&o>=CC,p=!i&&!n.isWeekInMonth(s);if(f||p)if(n.props.peekNextMonth)a=!0;else break}return r},n.onMonthClick=function(r,i){var o=n.isMonthDisabledForLabelDate(i),a=o.isDisabled,s=o.labelDate;a||n.handleDayClick(Dr(s),r)},n.onMonthMouseEnter=function(r){var i=n.isMonthDisabledForLabelDate(r),o=i.isDisabled,a=i.labelDate;o||n.handleDayMouseEnter(Dr(a))},n.handleMonthNavigation=function(r,i){var o,a,s,l;(a=(o=n.props).setPreSelection)===null||a===void 0||a.call(o,i),(l=(s=n.MONTH_REFS[r])===null||s===void 0?void 0:s.current)===null||l===void 0||l.focus()},n.handleKeyboardNavigation=function(r,i,o){var a,s=n.props,l=s.selected,c=s.preSelection,u=s.setPreSelection,d=s.minDate,f=s.maxDate,p=s.showFourColumnMonthYearPicker,h=s.showTwoColumnMonthYearPicker;if(c){var g=R0(p,h),_=n.getVerticalOffset(g),m=(a=_u[g])===null||a===void 0?void 0:a.grid,b=function(S,M,P){var T,I,O=M,V=P;switch(S){case q.ArrowRight:O=gn(M,Vs),V=P===11?0:P+Vs;break;case q.ArrowLeft:O=Ai(M,Vs),V=P===0?11:P-Vs;break;case q.ArrowUp:O=Ai(M,_),V=!((T=m==null?void 0:m[0])===null||T===void 0)&&T.includes(P)?P+12-_:P-_;break;case q.ArrowDown:O=gn(M,_),V=!((I=m==null?void 0:m[m.length-1])===null||I===void 0)&&I.includes(P)?P-12+_:P+_;break}return{newCalculatedDate:O,newCalculatedMonth:V}},C=function(S,M,P){for(var T=40,I=S,O=!1,V=0,N=b(I,M,P),A=N.newCalculatedDate,j=N.newCalculatedMonth;!O;){if(V>=T){A=M,j=P;break}if(d&&A<d){I=q.ArrowRight;var Y=b(I,A,j);A=Y.newCalculatedDate,j=Y.newCalculatedMonth}if(f&&A>f){I=q.ArrowLeft;var Y=b(I,A,j);A=Y.newCalculatedDate,j=Y.newCalculatedMonth}if(sC(A,n.props)){var Y=b(I,A,j);A=Y.newCalculatedDate,j=Y.newCalculatedMonth}else O=!0;V++}return{newCalculatedDate:A,newCalculatedMonth:j}};if(i===q.Enter){n.isMonthDisabled(o)||(n.onMonthClick(r,o),u==null||u(l));return}var x=C(i,c,o),w=x.newCalculatedDate,k=x.newCalculatedMonth;switch(i){case q.ArrowRight:case q.ArrowLeft:case q.ArrowUp:case q.ArrowDown:n.handleMonthNavigation(k,w);break}}},n.getVerticalOffset=function(r){var i,o;return(o=(i=_u[r])===null||i===void 0?void 0:i.verticalNavigationOffset)!==null&&o!==void 0?o:0},n.onMonthKeyDown=function(r,i){var o=n.props,a=o.disabledKeyboardNavigation,s=o.handleOnMonthKeyDown,l=r.key;l!==q.Tab&&r.preventDefault(),a||n.handleKeyboardNavigation(r,l,i),s&&s(r)},n.onQuarterClick=function(r,i){var o=Oi(n.props.day,i);hu(o,n.props)||n.handleDayClick(_0(o),r)},n.onQuarterMouseEnter=function(r){var i=Oi(n.props.day,r);hu(i,n.props)||n.handleDayMouseEnter(_0(i))},n.handleQuarterNavigation=function(r,i){var o,a,s,l;n.isDisabled(i)||n.isExcluded(i)||((a=(o=n.props).setPreSelection)===null||a===void 0||a.call(o,i),(l=(s=n.QUARTER_REFS[r-1])===null||s===void 0?void 0:s.current)===null||l===void 0||l.focus())},n.onQuarterKeyDown=function(r,i){var o,a,s=r.key;if(!n.props.disabledKeyboardNavigation)switch(s){case q.Enter:n.onQuarterClick(r,i),(a=(o=n.props).setPreSelection)===null||a===void 0||a.call(o,n.props.selected);break;case q.ArrowRight:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===4?1:i+1,$c(n.props.preSelection,1));break;case q.ArrowLeft:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===1?4:i-1,zf(n.props.preSelection));break}},n.isMonthDisabledForLabelDate=function(r){var i,o=n.props,a=o.day,s=o.minDate,l=o.maxDate,c=o.excludeDates,u=o.includeDates,d=Zt(a,r);return{isDisabled:(i=(s||l||c||u)&&v0(d,n.props))!==null&&i!==void 0?i:!1,labelDate:d}},n.isMonthDisabled=function(r){var i=n.isMonthDisabledForLabelDate(r).isDisabled;return i},n.getMonthClassNames=function(r){var i=n.props,o=i.day,a=i.startDate,s=i.endDate,l=i.preSelection,c=i.monthClassName,u=c?c(Zt(o,r)):void 0,d=n.getSelection();return ft("react-datepicker__month-text","react-datepicker__month-".concat(r),u,{"react-datepicker__month-text--disabled":n.isMonthDisabled(r),"react-datepicker__month-text--selected":d?n.isSelectMonthInList(o,r,d):void 0,"react-datepicker__month-text--keyboard-selected":!n.props.disabledKeyboardNavigation&&l&&n.isSelectedMonth(o,r,l)&&!n.isMonthDisabled(r),"react-datepicker__month-text--in-selecting-range":n.isInSelectingRangeMonth(r),"react-datepicker__month-text--in-range":a&&s?Rs(a,s,r,o):void 0,"react-datepicker__month-text--range-start":n.isRangeStartMonth(r),"react-datepicker__month-text--range-end":n.isRangeEndMonth(r),"react-datepicker__month-text--selecting-range-start":n.isSelectingMonthRangeStart(r),"react-datepicker__month-text--selecting-range-end":n.isSelectingMonthRangeEnd(r),"react-datepicker__month-text--today":n.isCurrentMonth(o,r)})},n.getTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=Mt(n.props.preSelection),o=!n.props.disabledKeyboardNavigation&&r===i?"0":"-1";return o},n.getQuarterTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=ei(n.props.preSelection),o=!n.props.disabledKeyboardNavigation&&r===i?"0":"-1";return o},n.getAriaLabel=function(r){var i=n.props,o=i.chooseDayAriaLabelPrefix,a=o===void 0?"Choose":o,s=i.disabledDayAriaLabelPrefix,l=s===void 0?"Not available":s,c=i.day,u=i.locale,d=Zt(c,r),f=n.isDisabled(d)||n.isExcluded(d)?l:a;return"".concat(f," ").concat($e(d,"MMMM yyyy",u))},n.getQuarterClassNames=function(r){var i=n.props,o=i.day,a=i.startDate,s=i.endDate,l=i.selected,c=i.minDate,u=i.maxDate,d=i.excludeDates,f=i.includeDates,p=i.filterDate,h=i.preSelection,g=i.disabledKeyboardNavigation,_=(c||u||d||f||p)&&hu(Oi(o,r),n.props);return ft("react-datepicker__quarter-text","react-datepicker__quarter-".concat(r),{"react-datepicker__quarter-text--disabled":_,"react-datepicker__quarter-text--selected":l?n.isSelectedQuarter(o,r,l):void 0,"react-datepicker__quarter-text--keyboard-selected":!g&&h&&n.isSelectedQuarter(o,r,h)&&!_,"react-datepicker__quarter-text--in-selecting-range":n.isInSelectingRangeQuarter(r),"react-datepicker__quarter-text--in-range":a&&s?Fs(a,s,r,o):void 0,"react-datepicker__quarter-text--range-start":n.isRangeStartQuarter(r),"react-datepicker__quarter-text--range-end":n.isRangeEndQuarter(r)})},n.getMonthContent=function(r){var i=n.props,o=i.showFullMonthYearPicker,a=i.renderMonthContent,s=i.locale,l=i.day,c=b0(r,s),u=fu(r,s);return a?a(r,c,u,l):o?u:c},n.getQuarterContent=function(r){var i,o=n.props,a=o.renderQuarterContent,s=o.locale,l=aC(r,s);return(i=a==null?void 0:a(r,l))!==null&&i!==void 0?i:l},n.renderMonths=function(){var r,i=n.props,o=i.showTwoColumnMonthYearPicker,a=i.showFourColumnMonthYearPicker,s=i.day,l=i.selected,c=(r=_u[R0(a,o)])===null||r===void 0?void 0:r.grid;return c==null?void 0:c.map(function(u,d){return v.createElement("div",{className:"react-datepicker__month-wrapper",key:d},u.map(function(f,p){return v.createElement("div",{ref:n.MONTH_REFS[f],key:p,onClick:function(h){n.onMonthClick(h,f)},onKeyDown:function(h){N0(h)&&(h.preventDefault(),h.key=q.Enter),n.onMonthKeyDown(h,f)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onMonthMouseEnter(f)},onPointerEnter:n.props.usePointerEvent?function(){return n.onMonthMouseEnter(f)}:void 0,tabIndex:Number(n.getTabIndex(f)),className:n.getMonthClassNames(f),"aria-disabled":n.isMonthDisabled(f),role:"option","aria-label":n.getAriaLabel(f),"aria-current":n.isCurrentMonth(s,f)?"date":void 0,"aria-selected":l?n.isSelectedMonth(s,f,l):void 0},n.getMonthContent(f))}))})},n.renderQuarters=function(){var r=n.props,i=r.day,o=r.selected,a=[1,2,3,4];return v.createElement("div",{className:"react-datepicker__quarter-wrapper"},a.map(function(s,l){return v.createElement("div",{key:l,ref:n.QUARTER_REFS[l],role:"option",onClick:function(c){n.onQuarterClick(c,s)},onKeyDown:function(c){n.onQuarterKeyDown(c,s)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onQuarterMouseEnter(s)},onPointerEnter:n.props.usePointerEvent?function(){return n.onQuarterMouseEnter(s)}:void 0,className:n.getQuarterClassNames(s),"aria-selected":o?n.isSelectedQuarter(i,s,o):void 0,tabIndex:Number(n.getQuarterTabIndex(s)),"aria-current":n.isCurrentQuarter(i,s)?"date":void 0},n.getQuarterContent(s))}))},n.getClassNames=function(){var r=n.props,i=r.selectingDate,o=r.selectsStart,a=r.selectsEnd,s=r.showMonthYearPicker,l=r.showQuarterYearPicker,c=r.showWeekPicker;return ft("react-datepicker__month",{"react-datepicker__month--selecting-range":i&&(o||a)},{"react-datepicker__monthPicker":s},{"react-datepicker__quarterPicker":l},{"react-datepicker__weekPicker":c})},n}return t.prototype.getSelection=function(){var n=this.props,r=n.selected,i=n.selectedDates,o=n.selectsMultiple;if(o)return i;if(r)return[r]},t.prototype.render=function(){var n=this.props,r=n.showMonthYearPicker,i=n.showQuarterYearPicker,o=n.day,a=n.ariaLabelPrefix,s=a===void 0?"Month ":a,l=s?s.trim()+" ":"";return v.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(l).concat($e(o,"MMMM, yyyy",this.props.locale)),role:"listbox"},r?this.renderMonths():i?this.renderQuarters():this.renderWeeks())},t})(v.Component),xC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.isSelectedMonth=function(r){return n.props.month===r},n.renderOptions=function(){return n.props.monthNames.map(function(r,i){return v.createElement("div",{className:n.isSelectedMonth(i)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:r,onClick:n.onChange.bind(n,i),"aria-selected":n.isSelectedMonth(i)?"true":void 0},n.isSelectedMonth(i)?v.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",r)})},n.onChange=function(r){return n.props.onChange(r)},n.handleClickOutside=function(){return n.props.onCancel()},n}return t.prototype.render=function(){return v.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())},t})(v.Component),kC=as(xC),SC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(r){return r.map(function(i,o){return v.createElement("option",{key:i,value:o},i)})},n.renderSelectMode=function(r){return v.createElement("select",{value:n.props.month,className:"react-datepicker__month-select",onChange:function(i){return n.onChange(parseInt(i.target.value))}},n.renderSelectOptions(r))},n.renderReadView=function(r,i){return v.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:n.toggleDropdown},v.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),v.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},i[n.props.month]))},n.renderDropdown=function(r){return v.createElement(kC,ke({key:"dropdown"},n.props,{monthNames:r,onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(r){var i=n.state.dropdownVisible,o=[n.renderReadView(!i,r)];return i&&o.unshift(n.renderDropdown(r)),o},n.onChange=function(r){n.toggleDropdown(),r!==n.props.month&&n.props.onChange(r)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return t.prototype.render=function(){var n=this,r=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(o){return b0(o,n.props.locale)}:function(o){return fu(o,n.props.locale)}),i;switch(this.props.dropdownMode){case"scroll":i=this.renderScrollMode(r);break;case"select":i=this.renderSelectMode(r);break}return v.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},i)},t})(v.Component);function TC(e,t){for(var n=[],r=Dr(e),i=Dr(t);!Sr(r,i);)n.push(Ne(r)),r=gn(r,1);return n}var MC=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;return r.renderOptions=function(){return r.state.monthYearsList.map(function(i){var o=Zc(i),a=Bn(r.props.date,i)&&Lt(r.props.date,i);return v.createElement("div",{className:a?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:o,onClick:r.onChange.bind(r,o),"aria-selected":a?"true":void 0},a?v.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",$e(i,r.props.dateFormat,r.props.locale))})},r.onChange=function(i){return r.props.onChange(i)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:TC(r.props.minDate,r.props.maxDate)},r}return t.prototype.render=function(){var n=ft({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return v.createElement("div",{className:n},this.renderOptions())},t})(v.Component),DC=as(MC),LC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=Dr(n.props.minDate),i=Dr(n.props.maxDate),o=[];!Sr(r,i);){var a=Zc(r);o.push(v.createElement("option",{key:a,value:a},$e(r,n.props.dateFormat,n.props.locale))),r=gn(r,1)}return o},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return v.createElement("select",{value:Zc(Dr(n.props.date)),className:"react-datepicker__month-year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){var i=$e(n.props.date,n.props.dateFormat,n.props.locale);return v.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:n.toggleDropdown},v.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),v.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},i))},n.renderDropdown=function(){return v.createElement(DC,ke({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown();var i=Ne(r);Bn(n.props.date,i)&&Lt(n.props.date,i)||n.props.onChange(i)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return t.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return v.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},n)},t})(v.Component),PC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var r,i,o;n.list&&(n.list.scrollTop=(o=n.centerLi&&t.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-((i=(r=n.header)===null||r===void 0?void 0:r.clientHeight)!==null&&i!==void 0?i:0):n.list.clientHeight,n.centerLi))!==null&&o!==void 0?o:0)})},n.handleClick=function(r){var i,o;(n.props.minTime||n.props.maxTime)&&x0(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&w0(r,n.props)||(o=(i=n.props).onChange)===null||o===void 0||o.call(i,r)},n.isSelectedTime=function(r){return n.props.selected&&_C(n.props.selected,r)},n.isDisabledTime=function(r){return(n.props.minTime||n.props.maxTime)&&x0(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&w0(r,n.props)},n.liClasses=function(r){var i,o=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(r):void 0];return n.isSelectedTime(r)&&o.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(r)&&o.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(In(r)*3600+On(r)*60+cr(r))%(((i=n.props.intervals)!==null&&i!==void 0?i:t.defaultProps.intervals)*60)!==0&&o.push("react-datepicker__time-list-item--injected"),o.join(" ")},n.handleOnKeyDown=function(r,i){var o,a;r.key===q.Space&&(r.preventDefault(),r.key=q.Enter),(r.key===q.ArrowUp||r.key===q.ArrowLeft)&&r.target instanceof HTMLElement&&r.target.previousSibling&&(r.preventDefault(),r.target.previousSibling instanceof HTMLElement&&r.target.previousSibling.focus()),(r.key===q.ArrowDown||r.key===q.ArrowRight)&&r.target instanceof HTMLElement&&r.target.nextSibling&&(r.preventDefault(),r.target.nextSibling instanceof HTMLElement&&r.target.nextSibling.focus()),r.key===q.Enter&&n.handleClick(i),(a=(o=n.props).handleOnKeyDown)===null||a===void 0||a.call(o,r)},n.renderTimes=function(){for(var r,i=[],o=n.props.format?n.props.format:"p",a=(r=n.props.intervals)!==null&&r!==void 0?r:t.defaultProps.intervals,s=n.props.selected||n.props.openToDate||Ne(),l=As(s),c=n.props.injectTimes&&n.props.injectTimes.sort(function(_,m){return _.getTime()-m.getTime()}),u=60*mC(s),d=u/a,f=0;f<d;f++){var p=Hc(l,f*a);if(i.push(p),c){var h=hC(l,p,f,a,c);i=i.concat(h)}}var g=i.reduce(function(_,m){return m.getTime()<=s.getTime()?m:_},i[0]);return i.map(function(_){return v.createElement("li",{key:_.valueOf(),onClick:n.handleClick.bind(n,_),className:n.liClasses(_),ref:function(m){_===g&&(n.centerLi=m)},onKeyDown:function(m){n.handleOnKeyDown(m,_)},tabIndex:_===g?0:-1,role:"option","aria-selected":n.isSelectedTime(_)?"true":void 0,"aria-disabled":n.isDisabledTime(_)?"true":void 0},$e(_,o,n.props.locale))})},n}return Object.defineProperty(t,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time"}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},t.prototype.render=function(){var n=this,r,i=this.state.height;return v.createElement("div",{className:"react-datepicker__time-container ".concat(((r=this.props.todayButton)!==null&&r!==void 0?r:t.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},v.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(o){n.header=o}},v.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),v.createElement("div",{className:"react-datepicker__time"},v.createElement("div",{className:"react-datepicker__time-box"},v.createElement("ul",{className:"react-datepicker__time-list",ref:function(o){n.list=o},style:i?{height:i}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},t.calcCenterPosition=function(n,r){return r.offsetTop-(n/2-r.clientHeight/2)},t})(v.Component),j0=3,EC=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;return r.YEAR_REFS=Vn([],Array(r.props.yearItemNumber),!0).map(function(){return v.createRef()}),r.isDisabled=function(i){return Lr(i,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(i){return pu(i,{excludeDates:r.props.excludeDates})},r.selectingDate=function(){var i;return(i=r.props.selectingDate)!==null&&i!==void 0?i:r.props.preSelection},r.updateFocusOnPaginate=function(i){var o=function(){var a,s;(s=(a=r.YEAR_REFS[i])===null||a===void 0?void 0:a.current)===null||s===void 0||s.focus()};window.requestAnimationFrame(o)},r.handleYearClick=function(i,o){r.props.onDayClick&&r.props.onDayClick(i,o)},r.handleYearNavigation=function(i,o){var a,s,l,c,u=r.props,d=u.date,f=u.yearItemNumber;if(!(d===void 0||f===void 0)){var p=Pr(d,f).startPeriod;r.isDisabled(o)||r.isExcluded(o)||((s=(a=r.props).setPreSelection)===null||s===void 0||s.call(a,o),i-p<0?r.updateFocusOnPaginate(f-(p-i)):i-p>=f?r.updateFocusOnPaginate(Math.abs(f-(i-p))):(c=(l=r.YEAR_REFS[i-p])===null||l===void 0?void 0:l.current)===null||c===void 0||c.focus())}},r.isSameDay=function(i,o){return ye(i,o)},r.isCurrentYear=function(i){return i===pe(Ne())},r.isRangeStart=function(i){return r.props.startDate&&r.props.endDate&&Bn(Rn(Ne(),i),r.props.startDate)},r.isRangeEnd=function(i){return r.props.startDate&&r.props.endDate&&Bn(Rn(Ne(),i),r.props.endDate)},r.isInRange=function(i){return js(i,r.props.startDate,r.props.endDate)},r.isInSelectingRange=function(i){var o=r.props,a=o.selectsStart,s=o.selectsEnd,l=o.selectsRange,c=o.startDate,u=o.endDate;return!(a||s||l)||!r.selectingDate()?!1:a&&u?js(i,r.selectingDate(),u):s&&c||l&&c&&!u?js(i,c,r.selectingDate()):!1},r.isSelectingRangeStart=function(i){var o;if(!r.isInSelectingRange(i))return!1;var a=r.props,s=a.startDate,l=a.selectsStart,c=Rn(Ne(),i);return l?Bn(c,(o=r.selectingDate())!==null&&o!==void 0?o:null):Bn(c,s??null)},r.isSelectingRangeEnd=function(i){var o;if(!r.isInSelectingRange(i))return!1;var a=r.props,s=a.endDate,l=a.selectsEnd,c=a.selectsRange,u=Rn(Ne(),i);return l||c?Bn(u,(o=r.selectingDate())!==null&&o!==void 0?o:null):Bn(u,s??null)},r.isKeyboardSelected=function(i){if(!(r.props.date===void 0||r.props.selected==null||r.props.preSelection==null)){var o=r.props,a=o.minDate,s=o.maxDate,l=o.excludeDates,c=o.includeDates,u=o.filterDate,d=$o(Rn(r.props.date,i)),f=(a||s||l||c||u)&&mu(i,r.props);return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!ye(d,$o(r.props.selected))&&ye(d,$o(r.props.preSelection))&&!f}},r.onYearClick=function(i,o){var a=r.props.date;a!==void 0&&r.handleYearClick($o(Rn(a,o)),i)},r.onYearKeyDown=function(i,o){var a,s,l=i.key,c=r.props,u=c.date,d=c.yearItemNumber,f=c.handleOnKeyDown;if(l!==q.Tab&&i.preventDefault(),!r.props.disabledKeyboardNavigation)switch(l){case q.Enter:if(r.props.selected==null)break;r.onYearClick(i,o),(s=(a=r.props).setPreSelection)===null||s===void 0||s.call(a,r.props.selected);break;case q.ArrowRight:if(r.props.preSelection==null)break;r.handleYearNavigation(o+1,ar(r.props.preSelection,1));break;case q.ArrowLeft:if(r.props.preSelection==null)break;r.handleYearNavigation(o-1,Ni(r.props.preSelection,1));break;case q.ArrowUp:{if(u===void 0||d===void 0||r.props.preSelection==null)break;var p=Pr(u,d).startPeriod,h=j0,g=o-h;if(g<p){var _=d%h;o>=p&&o<p+_?h=_:h+=_,g=o-h}r.handleYearNavigation(g,Ni(r.props.preSelection,h));break}case q.ArrowDown:{if(u===void 0||d===void 0||r.props.preSelection==null)break;var m=Pr(u,d).endPeriod,h=j0,g=o+h;if(g>m){var _=d%h;o<=m&&o>m-_?h=_:h+=_,g=o+h}r.handleYearNavigation(g,ar(r.props.preSelection,h));break}}f&&f(i)},r.getYearClassNames=function(i){var o=r.props,a=o.date,s=o.minDate,l=o.maxDate,c=o.selected,u=o.excludeDates,d=o.includeDates,f=o.filterDate,p=o.yearClassName;return ft("react-datepicker__year-text","react-datepicker__year-".concat(i),a?p==null?void 0:p(Rn(a,i)):void 0,{"react-datepicker__year-text--selected":c?i===pe(c):void 0,"react-datepicker__year-text--disabled":(s||l||u||d||f)&&mu(i,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(i),"react-datepicker__year-text--range-start":r.isRangeStart(i),"react-datepicker__year-text--range-end":r.isRangeEnd(i),"react-datepicker__year-text--in-range":r.isInRange(i),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(i),"react-datepicker__year-text--today":r.isCurrentYear(i)})},r.getYearTabIndex=function(i){if(r.props.disabledKeyboardNavigation||r.props.preSelection==null)return"-1";var o=pe(r.props.preSelection);return i===o?"0":"-1"},r.getYearContainerClassNames=function(){var i=r.props,o=i.selectingDate,a=i.selectsStart,s=i.selectsEnd,l=i.selectsRange;return ft("react-datepicker__year",{"react-datepicker__year--selecting-range":o&&(a||s||l)})},r.getYearContent=function(i){return r.props.renderYearContent?r.props.renderYearContent(i):i},r}return t.prototype.render=function(){var n=this,r=[],i=this.props,o=i.date,a=i.yearItemNumber,s=i.onYearMouseEnter,l=i.onYearMouseLeave;if(o===void 0)return null;for(var c=Pr(o,a),u=c.startPeriod,d=c.endPeriod,f=function(g){r.push(v.createElement("div",{ref:p.YEAR_REFS[g-u],onClick:function(_){n.onYearClick(_,g)},onKeyDown:function(_){N0(_)&&(_.preventDefault(),_.key=q.Enter),n.onYearKeyDown(_,g)},tabIndex:Number(p.getYearTabIndex(g)),className:p.getYearClassNames(g),onMouseEnter:p.props.usePointerEvent?void 0:function(_){return s(_,g)},onPointerEnter:p.props.usePointerEvent?function(_){return s(_,g)}:void 0,onMouseLeave:p.props.usePointerEvent?void 0:function(_){return l(_,g)},onPointerLeave:p.props.usePointerEvent?function(_){return l(_,g)}:void 0,key:g,"aria-current":p.isCurrentYear(g)?"date":void 0},p.getYearContent(g)))},p=this,h=u;h<=d;h++)f(h);return v.createElement("div",{className:this.getYearContainerClassNames()},v.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},r))},t})(v.Component);function IC(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=pe(n)<=a),r&&s&&(s=pe(r)>=a),s&&i.push(a)}return i}var OC=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;r.renderOptions=function(){var s=r.props.year,l=r.state.yearsList.map(function(d){return v.createElement("div",{className:s===d?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:d,onClick:r.onChange.bind(r,d),"aria-selected":s===d?"true":void 0},s===d?v.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",d)}),c=r.props.minDate?pe(r.props.minDate):null,u=r.props.maxDate?pe(r.props.maxDate):null;return(!u||!r.state.yearsList.find(function(d){return d===u}))&&l.unshift(v.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},v.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!c||!r.state.yearsList.find(function(d){return d===c}))&&l.push(v.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},v.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),l},r.onChange=function(s){r.props.onChange(s)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(s){var l=r.state.yearsList.map(function(c){return c+s});r.setState({yearsList:l})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var i=n.yearDropdownItemNumber,o=n.scrollableYearDropdown,a=i||(o?10:5);return r.state={yearsList:IC(r.props.year,a,r.props.minDate,r.props.maxDate)},r.dropdownRef=v.createRef(),r}return t.prototype.componentDidMount=function(){var n=this.dropdownRef.current;if(n){var r=n.children?Array.from(n.children):null,i=r?r.find(function(o){return o.ariaSelected}):null;n.scrollTop=i&&i instanceof HTMLElement?i.offsetTop+(i.clientHeight-n.clientHeight)/2:(n.scrollHeight-n.clientHeight)/2}},t.prototype.render=function(){var n=ft({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return v.createElement("div",{className:n,ref:this.dropdownRef},this.renderOptions())},t})(v.Component),AC=as(OC),NC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=n.props.minDate?pe(n.props.minDate):1900,i=n.props.maxDate?pe(n.props.maxDate):2100,o=[],a=r;a<=i;a++)o.push(v.createElement("option",{key:a,value:a},a));return o},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return v.createElement("select",{value:n.props.year,className:"react-datepicker__year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){return v.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(i){return n.toggleDropdown(i)}},v.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),v.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},n.props.year))},n.renderDropdown=function(){return v.createElement(AC,ke({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown(),r!==n.props.year&&n.props.onChange(r)},n.toggleDropdown=function(r){n.setState({dropdownVisible:!n.state.dropdownVisible},function(){n.props.adjustDateOnChange&&n.handleYearChange(n.props.date,r)})},n.handleYearChange=function(r,i){n.onSelect(r,i),n.setOpen()},n.onSelect=function(r,i){n.props.onSelect&&n.props.onSelect(r,i)},n.setOpen=function(){n.props.setOpen&&n.props.setOpen(!0)},n}return t.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return v.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},n)},t})(v.Component),RC=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],jC=function(e){var t=(e.className||"").split(/\s+/);return RC.some(function(n){return t.indexOf(n)>=0})},FC=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;return r.monthContainer=void 0,r.handleClickOutside=function(i){r.props.onClickOutside(i)},r.setClickOutsideRef=function(){return r.containerRef.current},r.handleDropdownFocus=function(i){var o,a;jC(i.target)&&((a=(o=r.props).onDropdownFocus)===null||a===void 0||a.call(o,i))},r.getDateInView=function(){var i=r.props,o=i.preSelection,a=i.selected,s=i.openToDate,l=D0(r.props),c=L0(r.props),u=Ne(),d=s||a||o;return d||(l&&ri(u,l)?l:c&&Sr(u,c)?c:u)},r.increaseMonth=function(){r.setState(function(i){var o=i.date;return{date:gn(o,1)}},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState(function(i){var o=i.date;return{date:Ai(o,1)}},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(i,o,a){r.props.onSelect(i,o,a),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleDayMouseEnter=function(i){r.setState({selectingDate:i}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(i)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:void 0}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearMouseEnter=function(i,o){r.setState({selectingDate:Rn(Ne(),o)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(i,o)},r.handleYearMouseLeave=function(i,o){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(i,o)},r.handleYearChange=function(i){r.props.onYearChange&&(r.props.onYearChange(i),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(i),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleMonthChange=function(i){r.handleCustomMonthChange(i),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(i),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleCustomMonthChange=function(i){r.props.onMonthChange&&(r.props.onMonthChange(i),r.setState({isRenderAriaLiveMessage:!0}))},r.handleMonthYearChange=function(i){r.handleYearChange(i),r.handleMonthChange(i)},r.changeYear=function(i){r.setState(function(o){var a=o.date;return{date:Rn(a,Number(i))}},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(i){r.setState(function(o){var a=o.date;return{date:Zt(a,Number(i))}},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(i){r.setState(function(o){var a=o.date;return{date:Rn(Zt(a,Mt(i)),pe(i))}},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(i){i===void 0&&(i=r.state.date);var o=Mr(i,r.props.locale,r.props.calendarStartDay),a=[];return r.props.showWeekNumbers&&a.push(v.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(s){var l=xr(o,s),c=r.formatWeekday(l,r.props.locale),u=r.props.weekDayClassName?r.props.weekDayClassName(l):void 0;return v.createElement("div",{key:s,"aria-label":$e(l,"EEEE",r.props.locale),className:ft("react-datepicker__day-name",u)},c)}))},r.formatWeekday=function(i,o){return r.props.formatWeekDay?rC(i,r.props.formatWeekDay,o):r.props.useWeekdaysShort?oC(i,o):iC(i,o)},r.decreaseYear=function(){r.setState(function(i){var o,a=i.date;return{date:Ni(a,r.props.showYearPicker?(o=r.props.yearItemNumber)!==null&&o!==void 0?o:t.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.clearSelectingDate=function(){r.setState({selectingDate:void 0})},r.renderPreviousButton=function(){var i;if(!r.props.renderCustomHeader){var o;switch(!0){case r.props.showMonthYearPicker:o=T0(r.state.date,r.props);break;case r.props.showYearPicker:o=uC(r.state.date,r.props);break;case r.props.showQuarterYearPicker:o=lC(r.state.date,r.props);break;default:o=k0(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:t.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&o||r.props.showTimeSelectOnly)){var a=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],s=["react-datepicker__navigation","react-datepicker__navigation--previous"],l=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(l=r.decreaseYear),o&&r.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--previous--disabled"),l=void 0);var c=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,u=r.props,d=u.previousMonthButtonLabel,f=d===void 0?t.defaultProps.previousMonthButtonLabel:d,p=u.previousYearButtonLabel,h=p===void 0?t.defaultProps.previousYearButtonLabel:p,g=r.props,_=g.previousMonthAriaLabel,m=_===void 0?typeof f=="string"?f:"Previous Month":_,b=g.previousYearAriaLabel,C=b===void 0?typeof h=="string"?h:"Previous Year":b;return v.createElement("button",{type:"button",className:s.join(" "),onClick:l,onKeyDown:r.props.handleOnKeyDown,"aria-label":c?C:m},v.createElement("span",{className:a.join(" ")},c?h:f))}}},r.increaseYear=function(){r.setState(function(i){var o,a=i.date;return{date:ar(a,r.props.showYearPicker?(o=r.props.yearItemNumber)!==null&&o!==void 0?o:t.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){var i;if(!r.props.renderCustomHeader){var o;switch(!0){case r.props.showMonthYearPicker:o=M0(r.state.date,r.props);break;case r.props.showYearPicker:o=dC(r.state.date,r.props);break;case r.props.showQuarterYearPicker:o=cC(r.state.date,r.props);break;default:o=S0(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:t.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&o||r.props.showTimeSelectOnly)){var a=["react-datepicker__navigation","react-datepicker__navigation--next"],s=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];r.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var l=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(l=r.increaseYear),o&&r.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),l=void 0);var c=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,u=r.props,d=u.nextMonthButtonLabel,f=d===void 0?t.defaultProps.nextMonthButtonLabel:d,p=u.nextYearButtonLabel,h=p===void 0?t.defaultProps.nextYearButtonLabel:p,g=r.props,_=g.nextMonthAriaLabel,m=_===void 0?typeof f=="string"?f:"Next Month":_,b=g.nextYearAriaLabel,C=b===void 0?typeof h=="string"?h:"Next Year":b;return v.createElement("button",{type:"button",className:a.join(" "),onClick:l,onKeyDown:r.props.handleOnKeyDown,"aria-label":c?C:m},v.createElement("span",{className:s.join(" ")},c?h:f))}}},r.renderCurrentMonth=function(i){i===void 0&&(i=r.state.date);var o=["react-datepicker__current-month"];return r.props.showYearDropdown&&o.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&o.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&o.push("react-datepicker__current-month--hasMonthYearDropdown"),v.createElement("h2",{className:o.join(" ")},$e(i,r.props.dateFormat,r.props.locale))},r.renderYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showYearDropdown||i))return v.createElement(NC,ke({},t.defaultProps,r.props,{date:r.state.date,onChange:r.changeYear,year:pe(r.state.date)}))},r.renderMonthDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthDropdown||i))return v.createElement(SC,ke({},t.defaultProps,r.props,{month:Mt(r.state.date),onChange:r.changeMonth}))},r.renderMonthYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthYearDropdown||i))return v.createElement(LC,ke({},t.defaultProps,r.props,{date:r.state.date,onChange:r.changeMonthYear}))},r.handleTodayButtonClick=function(i){r.props.onSelect(g0(),i),r.props.setPreSelection&&r.props.setPreSelection(g0())},r.renderTodayButton=function(){if(!(!r.props.todayButton||r.props.showTimeSelectOnly))return v.createElement("div",{className:"react-datepicker__today-button",onClick:r.handleTodayButtonClick},r.props.todayButton)},r.renderDefaultHeader=function(i){var o=i.monthDate,a=i.i;return v.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(o),v.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(a!==0),r.renderMonthYearDropdown(a!==0),r.renderYearDropdown(a!==0)),v.createElement("div",{className:"react-datepicker__day-names"},r.header(o)))},r.renderCustomHeader=function(i){var o,a,s=i.monthDate,l=i.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var c=k0(r.state.date,r.props),u=S0(r.state.date,r.props),d=T0(r.state.date,r.props),f=M0(r.state.date,r.props),p=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return v.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},(a=(o=r.props).renderCustomHeader)===null||a===void 0?void 0:a.call(o,ke(ke({},r.state),{customHeaderCount:l,monthDate:s,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:c,nextMonthButtonDisabled:u,prevYearButtonDisabled:d,nextYearButtonDisabled:f})),p&&v.createElement("div",{className:"react-datepicker__day-names"},r.header(s)))},r.renderYearHeader=function(i){var o=i.monthDate,a=r.props,s=a.showYearPicker,l=a.yearItemNumber,c=l===void 0?t.defaultProps.yearItemNumber:l,u=Pr(o,c),d=u.startPeriod,f=u.endPeriod;return v.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(d," - ").concat(f):pe(o))},r.renderHeader=function(i){var o=i.monthDate,a=i.i,s=a===void 0?0:a,l={monthDate:o,i:s};switch(!0){case r.props.renderCustomHeader!==void 0:return r.renderCustomHeader(l);case(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker):return r.renderYearHeader(l);default:return r.renderDefaultHeader(l)}},r.renderMonths=function(){var i,o;if(!(r.props.showTimeSelectOnly||r.props.showYearPicker)){for(var a=[],s=(i=r.props.monthsShown)!==null&&i!==void 0?i:t.defaultProps.monthsShown,l=r.props.showPreviousMonths?s-1:0,c=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?ar(r.state.date,l):Ai(r.state.date,l),u=(o=r.props.monthSelectedIn)!==null&&o!==void 0?o:l,d=0;d<s;++d){var f=d-u+l,p=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?ar(c,f):gn(c,f),h="month-".concat(d),g=d<s-1,_=d>0;a.push(v.createElement("div",{key:h,ref:function(m){r.monthContainer=m??void 0},className:"react-datepicker__month-container"},r.renderHeader({monthDate:p,i:d}),v.createElement(wC,ke({},t.defaultProps,r.props,{ariaLabelPrefix:r.props.monthAriaLabelPrefix,day:p,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,handleOnMonthKeyDown:r.props.handleOnKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,orderInDisplay:d,selectingDate:r.state.selectingDate,monthShowsDuplicateDaysEnd:g,monthShowsDuplicateDaysStart:_}))))}return a}},r.renderYears=function(){if(!r.props.showTimeSelectOnly&&r.props.showYearPicker)return v.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),v.createElement(EC,ke({},t.defaultProps,r.props,{selectingDate:r.state.selectingDate,date:r.state.date,onDayClick:r.handleDayClick,clearSelectingDate:r.clearSelectingDate,onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave})))},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return v.createElement(PC,ke({},t.defaultProps,r.props,{onChange:r.props.onTimeChange,format:r.props.timeFormat,intervals:r.props.timeIntervals,monthRef:r.state.monthContainer}))},r.renderInputTimeSection=function(){var i=r.props.selected?new Date(r.props.selected):void 0,o=i&&dr(i)&&!!r.props.selected,a=o?"".concat(E0(i.getHours()),":").concat(E0(i.getMinutes())):"";if(r.props.showTimeInput)return v.createElement(gC,ke({},t.defaultProps,r.props,{date:i,timeString:a,onChange:r.props.onTimeChange}))},r.renderAriaLiveRegion=function(){var i,o=Pr(r.state.date,(i=r.props.yearItemNumber)!==null&&i!==void 0?i:t.defaultProps.yearItemNumber),a=o.startPeriod,s=o.endPeriod,l;return r.props.showYearPicker?l="".concat(a," - ").concat(s):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?l=pe(r.state.date):l="".concat(fu(Mt(r.state.date),r.props.locale)," ").concat(pe(r.state.date)),v.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&l)},r.renderChildren=function(){if(r.props.children)return v.createElement("div",{className:"react-datepicker__children-container"},r.props.children)},r.containerRef=v.createRef(),r.state={date:r.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},r}return Object.defineProperty(t,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:Ho}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var n=this;this.props.showTimeSelect&&(this.assignMonthContainer=(function(){n.setState({monthContainer:n.monthContainer})})())},t.prototype.componentDidUpdate=function(n){var r=this;if(this.props.preSelection&&(!ye(this.props.preSelection,n.preSelection)||this.props.monthSelectedIn!==n.monthSelectedIn)){var i=!Lt(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&r.handleCustomMonthChange(r.state.date)})}else this.props.openToDate&&!ye(this.props.openToDate,n.openToDate)&&this.setState({date:this.props.openToDate})},t.prototype.render=function(){var n=this.props.container||Gv;return v.createElement("div",{style:{display:"contents"},ref:this.containerRef},v.createElement(n,{className:ft("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},t})(v.Component),VC=function(e){var t=e.icon,n=e.className,r=n===void 0?"":n,i=e.onClick,o="react-datepicker__calendar-icon";return typeof t=="string"?v.createElement("i",{className:"".concat(o," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:i}):v.isValidElement(t)?v.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(o," ").concat(r),onClick:function(a){typeof t.props.onClick=="function"&&t.props.onClick(a),typeof i=="function"&&i(a)}}):v.createElement("svg",{className:"".concat(o," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},v.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},F0=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;return r.portalRoot=null,r.el=document.createElement("div"),r}return t.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},t.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},t.prototype.render=function(){return St.createPortal(this.props.children,this.el)},t})(v.Component),BC="[tabindex], a, button, input, select, textarea",HC=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&e.tabIndex!==-1},V0=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;return r.getTabChildren=function(){var i;return Array.prototype.slice.call((i=r.tabLoopRef.current)===null||i===void 0?void 0:i.querySelectorAll(BC),1,-1).filter(HC)},r.handleFocusStart=function(){var i=r.getTabChildren();i&&i.length>1&&i[i.length-1].focus()},r.handleFocusEnd=function(){var i=r.getTabChildren();i&&i.length>1&&i[0].focus()},r.tabLoopRef=v.createRef(),r}return t.prototype.render=function(){var n;return((n=this.props.enableTabLoop)!==null&&n!==void 0?n:t.defaultProps.enableTabLoop)?v.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},v.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,v.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},t.defaultProps={enableTabLoop:!0},t})(v.Component);function $C(e){var t=function(n){var r,i=typeof n.hidePopper=="boolean"?n.hidePopper:!0,o=v.useRef(null),a=qv(ke({open:!i,whileElementsMounted:s0,placement:n.popperPlacement,middleware:Vn([Nv({padding:15}),Av(10),Rv({element:o})],(r=n.popperModifiers)!==null&&r!==void 0?r:[],!0)},n.popperProps)),s=ke(ke({},n),{hidePopper:i,popperProps:ke(ke({},a),{arrowRef:o})});return v.createElement(e,ke({},s))};return t}var zC=(function(e){pt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this.props,r=n.className,i=n.wrapperClassName,o=n.hidePopper,a=o===void 0?t.defaultProps.hidePopper:o,s=n.popperComponent,l=n.targetComponent,c=n.enableTabLoop,u=n.popperOnKeyDown,d=n.portalId,f=n.portalHost,p=n.popperProps,h=n.showArrow,g=void 0;if(!a){var _=ft("react-datepicker-popper",r);g=v.createElement(V0,{enableTabLoop:c},v.createElement("div",{ref:p.refs.setFloating,style:p.floatingStyles,className:_,"data-placement":p.placement,onKeyDown:u},s,h&&v.createElement(Hv,{ref:p.arrowRef,context:p.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(g=v.createElement(this.props.popperContainer,{},g)),d&&!a&&(g=v.createElement(F0,{portalId:d,portalHost:f},g));var m=ft("react-datepicker-wrapper",i);return v.createElement(v.Fragment,null,v.createElement("div",{ref:p.refs.setReference,className:m},l),g)},t})(v.Component),WC=$C(zC),B0="react-datepicker-ignore-onclickoutside",YC=as(FC);function UC(e,t){return e&&t?Mt(e)!==Mt(t)||pe(e)!==pe(t):e!==t}var gu="Date input not valid.",ZC=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:Ne()},r.modifyHolidays=function(){var i;return(i=r.props.holidays)===null||i===void 0?void 0:i.reduce(function(o,a){var s=new Date(a.date);return dr(s)?Vn(Vn([],o,!0),[ke(ke({},a),{date:s})],!1):o},[])},r.calcInitialState=function(){var i,o=r.getPreSelection(),a=D0(r.props),s=L0(r.props),l=a&&ri(o,As(a))?a:s&&Sr(o,y0(s))?s:o;return{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(i=r.props.selectsRange?r.props.startDate:r.props.selected)!==null&&i!==void 0?i:l,highlightDates:P0(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.resetHiddenStatus=function(){r.setState(ke(ke({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(ke(ke({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})},r.setBlur=function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()},r.setOpen=function(i,o){o===void 0&&(o=!1),r.setState({open:i,preSelection:i&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:yu},function(){i||r.setState(function(a){return{focused:o?a.focused:!1}},function(){!o&&r.setBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return lr(r.state.preSelection)},r.isCalendarOpen=function(){return r.props.open===void 0?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(i){var o,a,s=r.state.wasHidden,l=s?r.state.open:!0;s&&r.resetHiddenStatus(),!r.state.preventFocus&&l&&((a=(o=r.props).onFocus)===null||a===void 0||a.call(o,i),!r.props.preventOpenOnFocus&&!r.props.readOnly&&r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(i){var o,a;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&((a=(o=r.props).onBlur)===null||a===void 0||a.call(o,i)),r.setState({focused:!1})},r.handleCalendarClickOutside=function(i){var o,a;r.props.inline||r.setOpen(!1),(a=(o=r.props).onClickOutside)===null||a===void 0||a.call(o,i),r.props.withPortal&&i.preventDefault()},r.handleChange=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=i[0];if(!(r.props.onChangeRaw&&(r.props.onChangeRaw.apply(r,i),!a||typeof a.isDefaultPrevented!="function"||a.isDefaultPrevented()))){r.setState({inputValue:(a==null?void 0:a.target)instanceof HTMLInputElement?a.target.value:null,lastPreSelectChange:qC});var s=r.props,l=s.dateFormat,c=l===void 0?t.defaultProps.dateFormat:l,u=s.strictParsing,d=u===void 0?t.defaultProps.strictParsing:u,f=Qv((a==null?void 0:a.target)instanceof HTMLInputElement?a.target.value:"",c,r.props.locale,d,r.props.minDate);r.props.showTimeSelectOnly&&r.props.selected&&f&&!ye(f,r.props.selected)&&(f=$b(r.props.selected,{hours:In(f),minutes:On(f),seconds:cr(f)})),(f||!((a==null?void 0:a.target)instanceof HTMLInputElement)||!(a!=null&&a.target.value))&&r.setSelected(f,a,!0)}},r.handleSelect=function(i,o,a){if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(o),r.setSelected(i,o,!1,a),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(i);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var s=r.props,l=s.startDate,c=s.endDate;l&&!c&&(r.props.swapRange||!A0(i,l))&&r.setOpen(!1)}},r.setSelected=function(i,o,a,s){var l,c=i;if(r.props.showYearPicker){if(c!==null&&mu(pe(c),r.props))return}else if(r.props.showMonthYearPicker){if(c!==null&&v0(c,r.props))return}else if(c!==null&&Lr(c,r.props))return;var u=r.props,d=u.onChange,f=u.selectsRange,p=u.startDate,h=u.endDate,g=u.selectsMultiple,_=u.selectedDates,m=u.minTime,b=u.swapRange;if(!li(r.props.selected,c)||r.props.allowSameDay||f||g)if(c!==null&&(r.props.selected&&(!a||!r.props.showTimeSelect&&!r.props.showTimeSelectOnly&&!r.props.showTimeInput)&&(c=du(c,{hour:In(r.props.selected),minute:On(r.props.selected),second:cr(r.props.selected)})),!a&&(r.props.showTimeSelect||r.props.showTimeSelectOnly)&&m&&(c=du(c,{hour:m.getHours(),minute:m.getMinutes(),second:m.getSeconds()})),r.props.inline||r.setState({preSelection:c}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:s})),f){var C=!p&&!h,x=p&&!h,w=p&&h;C?d?d([c,null],o):t.defaultProps.onChange:x&&(c===null?d?d([null,null],o):t.defaultProps.onChange:A0(c,p)?b?d?d([c,p],o):t.defaultProps.onChange:d?d([c,null],o):t.defaultProps.onChange:d?d([p,c],o):t.defaultProps.onChange),w&&(d?d([c,null],o):t.defaultProps.onChange)}else if(g){if(c!==null)if(!(_!=null&&_.length))d?d([c],o):t.defaultProps.onChange;else{var k=_.some(function(P){return ye(P,c)});if(k){var S=_.filter(function(P){return!ye(P,c)});d?d(S,o):t.defaultProps.onChange}else d?d(Vn(Vn([],_,!0),[c],!1),o):t.defaultProps.onChange}}else d?d(c,o):t.defaultProps.onChange;if(!a){var M=(l=r.props.onSelect)!==null&&l!==void 0?l:t.defaultProps.onSelect;M(c,o),r.setState({inputValue:null})}},r.setPreSelection=function(i){var o=lr(r.props.minDate),a=lr(r.props.maxDate),s=!0;if(i){var l=As(i);if(o&&a)s=zo(i,r.props.minDate,r.props.maxDate);else if(o){var c=As(r.props.minDate);s=Sr(i,c)||li(l,c)}else if(a){var u=y0(r.props.maxDate);s=ri(i,u)||li(l,u)}}s&&r.setState({preSelection:i})},r.toggleCalendar=function(){r.setOpen(!r.state.open)},r.handleTimeChange=function(i){var o;if(!(r.props.selectsRange||r.props.selectsMultiple)){var a=r.props.selected?r.props.selected:r.getPreSelection(),s=r.props.selected?i:du(a,{hour:In(i),minute:On(i)});r.setState({preSelection:s});var l=(o=r.props.onChange)!==null&&o!==void 0?o:t.defaultProps.onChange;l(s),r.props.shouldCloseOnSelect&&!r.props.showTimeInput&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}},r.onInputClick=function(){var i,o;!r.props.disabled&&!r.props.readOnly&&r.setOpen(!0),(o=(i=r.props).onInputClick)===null||o===void 0||o.call(i)},r.onInputKeyDown=function(i){var o,a,s,l,c;(a=(o=r.props).onKeyDown)===null||a===void 0||a.call(o,i);var u=i.key;if(!r.state.open&&!r.props.inline&&!r.props.preventOpenOnFocus){(u===q.ArrowDown||u===q.ArrowUp||u===q.Enter)&&r.onInputClick();return}if(r.state.open){if(u===q.ArrowDown||u===q.ArrowUp){i.preventDefault();var d=r.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':r.props.showFullMonthYearPicker||r.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',f=((s=r.calendar)===null||s===void 0?void 0:s.componentNode)instanceof Element&&r.calendar.componentNode.querySelector(d);f instanceof HTMLElement&&f.focus({preventScroll:!0});return}var p=Ne(r.state.preSelection);u===q.Enter?(i.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===yu?(r.handleSelect(p,i),!r.props.shouldCloseOnSelect&&r.setPreSelection(p)):r.setOpen(!1)):u===q.Escape?(i.preventDefault(),r.sendFocusBackToInput(),r.setOpen(!1)):u===q.Tab&&r.setOpen(!1),r.inputOk()||(c=(l=r.props).onInputError)===null||c===void 0||c.call(l,{code:1,msg:gu})}},r.onPortalKeyDown=function(i){var o=i.key;o===q.Escape&&(i.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))},r.onDayKeyDown=function(i){var o,a,s,l,c=r.props,u=c.minDate,d=c.maxDate,f=c.disabledKeyboardNavigation,p=c.showWeekPicker,h=c.shouldCloseOnSelect,g=c.locale,_=c.calendarStartDay,m=c.adjustDateOnChange,b=c.inline;if((a=(o=r.props).onKeyDown)===null||a===void 0||a.call(o,i),!f){var C=i.key,x=i.shiftKey,w=Ne(r.state.preSelection),k=function(V,N){var A=N;switch(V){case q.ArrowRight:A=p?cs(N,1):xr(N,1);break;case q.ArrowLeft:A=p?Wf(N):zb(N);break;case q.ArrowUp:A=Wf(N);break;case q.ArrowDown:A=cs(N,1);break;case q.PageUp:A=x?Ni(N,1):Ai(N,1);break;case q.PageDown:A=x?ar(N,1):gn(N,1);break;case q.Home:A=Mr(N,g,_);break;case q.End:A=nC(N);break}return A},S=function(V,N){for(var A=40,j=V,Y=!1,H=0,G=k(V,N);!Y;){if(H>=A){G=N;break}u&&G<u&&(j=q.ArrowRight,G=Lr(u,r.props)?k(j,G):u),d&&G>d&&(j=q.ArrowLeft,G=Lr(d,r.props)?k(j,G):d),Lr(G,r.props)?((j===q.PageUp||j===q.Home)&&(j=q.ArrowRight),(j===q.PageDown||j===q.End)&&(j=q.ArrowLeft),G=k(j,G)):Y=!0,H++}return G};if(C===q.Enter){i.preventDefault(),r.handleSelect(w,i),!h&&r.setPreSelection(w);return}else if(C===q.Escape){i.preventDefault(),r.setOpen(!1),r.inputOk()||(l=(s=r.props).onInputError)===null||l===void 0||l.call(s,{code:1,msg:gu});return}var M=null;switch(C){case q.ArrowLeft:case q.ArrowRight:case q.ArrowUp:case q.ArrowDown:case q.PageUp:case q.PageDown:case q.Home:case q.End:M=S(C,w);break}if(!M){r.props.onInputError&&r.props.onInputError({code:1,msg:gu});return}if(i.preventDefault(),r.setState({lastPreSelectChange:yu}),m&&r.setSelected(M),r.setPreSelection(M),b){var P=Mt(w),T=Mt(M),I=pe(w),O=pe(M);P!==T||I!==O?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}},r.onPopperKeyDown=function(i){var o=i.key;o===q.Escape&&(i.preventDefault(),r.sendFocusBackToInput())},r.onClearClick=function(i){i&&i.preventDefault&&i.preventDefault(),r.sendFocusBackToInput();var o=r.props,a=o.selectsRange,s=o.onChange;a?s?s([null,null],i):t.defaultProps.onChange():s?s(null,i):t.defaultProps.onChange(),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(i){typeof r.props.closeOnScroll=="boolean"&&r.props.closeOnScroll?(i.target===document||i.target===document.documentElement||i.target===document.body)&&r.setOpen(!1):typeof r.props.closeOnScroll=="function"&&r.props.closeOnScroll(i)&&r.setOpen(!1)},r.renderCalendar=function(){var i,o;return!r.props.inline&&!r.isCalendarOpen()?null:v.createElement(YC,ke({ref:function(a){r.calendar=a}},r.props,r.state,{setOpen:r.setOpen,dateFormat:(i=r.props.dateFormatCalendar)!==null&&i!==void 0?i:t.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:pC(r.modifyHolidays()),outsideClickIgnoreClass:B0,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:(o=r.props.dropdownMode)!==null&&o!==void 0?o:t.defaultProps.dropdownMode}),r.props.children)},r.renderAriaLiveRegion=function(){var i=r.props,o=i.dateFormat,a=o===void 0?t.defaultProps.dateFormat:o,s=i.locale,l=r.props.showTimeInput||r.props.showTimeSelect,c=l?"PPPPp":"PPPP",u;return r.props.selectsRange?u="Selected start date: ".concat(ln(r.props.startDate,{dateFormat:c,locale:s}),". ").concat(r.props.endDate?"End date: "+ln(r.props.endDate,{dateFormat:c,locale:s}):""):r.props.showTimeSelectOnly?u="Selected time: ".concat(ln(r.props.selected,{dateFormat:a,locale:s})):r.props.showYearPicker?u="Selected year: ".concat(ln(r.props.selected,{dateFormat:"yyyy",locale:s})):r.props.showMonthYearPicker?u="Selected month: ".concat(ln(r.props.selected,{dateFormat:"MMMM yyyy",locale:s})):r.props.showQuarterYearPicker?u="Selected quarter: ".concat(ln(r.props.selected,{dateFormat:"yyyy, QQQ",locale:s})):u="Selected date: ".concat(ln(r.props.selected,{dateFormat:c,locale:s})),v.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},u)},r.renderDateInput=function(){var i,o,a,s=ft(r.props.className,(i={},i[B0]=r.state.open,i)),l=r.props.customInput||v.createElement("input",{type:"text"}),c=r.props.customInputRef||"ref",u=r.props,d=u.dateFormat,f=d===void 0?t.defaultProps.dateFormat:d,p=u.locale,h=typeof r.props.value=="string"?r.props.value:typeof r.state.inputValue=="string"?r.state.inputValue:r.props.selectsRange?Xv(r.props.startDate,r.props.endDate,{dateFormat:f,locale:p}):r.props.selectsMultiple?Jv((a=r.props.selectedDates)!==null&&a!==void 0?a:[],{dateFormat:f,locale:p}):ln(r.props.selected,{dateFormat:f,locale:p});return v.cloneElement(l,(o={},o[c]=function(g){r.input=g},o.value=h,o.onBlur=r.handleBlur,o.onChange=r.handleChange,o.onClick=r.onInputClick,o.onFocus=r.handleFocus,o.onKeyDown=r.onInputKeyDown,o.id=r.props.id,o.name=r.props.name,o.form=r.props.form,o.autoFocus=r.props.autoFocus,o.placeholder=r.props.placeholderText,o.disabled=r.props.disabled,o.autoComplete=r.props.autoComplete,o.className=ft(l.props.className,s),o.title=r.props.title,o.readOnly=r.props.readOnly,o.required=r.props.required,o.tabIndex=r.props.tabIndex,o["aria-describedby"]=r.props.ariaDescribedBy,o["aria-invalid"]=r.props.ariaInvalid,o["aria-labelledby"]=r.props.ariaLabelledBy,o["aria-required"]=r.props.ariaRequired,o))},r.renderClearButton=function(){var i=r.props,o=i.isClearable,a=i.disabled,s=i.selected,l=i.startDate,c=i.endDate,u=i.clearButtonTitle,d=i.clearButtonClassName,f=d===void 0?"":d,p=i.ariaLabelClose,h=p===void 0?"Close":p,g=i.selectedDates;return o&&(s!=null||l!=null||c!=null||g!=null&&g.length)?v.createElement("button",{type:"button",className:ft("react-datepicker__close-icon",f,{"react-datepicker__close-icon--disabled":a}),disabled:a,"aria-label":h,onClick:r.onClearClick,title:u,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return Object.defineProperty(t,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Ho,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},t.prototype.componentDidUpdate=function(n,r){var i,o,a,s;n.inline&&UC(n.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&n.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),n.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:P0(this.props.highlightDates)}),!r.focused&&!li(n.selected,this.props.selected)&&this.setState({inputValue:null}),r.open!==this.state.open&&(r.open===!1&&this.state.open===!0&&((o=(i=this.props).onCalendarOpen)===null||o===void 0||o.call(i)),r.open===!0&&this.state.open===!1&&((s=(a=this.props).onCalendarClose)===null||s===void 0||s.call(a)))},t.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},t.prototype.renderInputContainer=function(){var n=this.props,r=n.showIcon,i=n.icon,o=n.calendarIconClassname,a=n.calendarIconClassName,s=n.toggleCalendarOnIconClick,l=this.state.open;return o&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),v.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&v.createElement(VC,ke({icon:i,className:ft(a,!a&&o,l&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},t.prototype.render=function(){var n=this.renderCalendar();if(this.props.inline)return n;if(this.props.withPortal){var r=this.state.open?v.createElement(V0,{enableTabLoop:this.props.enableTabLoop},v.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},n)):null;return this.state.open&&this.props.portalId&&(r=v.createElement(F0,ke({portalId:this.props.portalId},this.props),r)),v.createElement("div",null,this.renderInputContainer(),r)}return v.createElement(WC,ke({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:n,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},t})(v.Component),qC="input",yu="navigate";const $i={cntDatePicker:"_cntDatePicker_kphj_1",cntDatePicker_label:"_cntDatePicker_label_kphj_5",cntDatePicker_errorContent:"_cntDatePicker_errorContent_kphj_10",label:"_label_kphj_16",cntDatePicker_field:"_cntDatePicker_field_kphj_19",cntDatePicker__error:"_cntDatePicker__error_kphj_53"},GC=({disabled:e=!1,error:t="",isClearable:n=!1,label:r="",selectedDate:i,...o})=>{const{className:a,placeholder:s,minDate:l,maxDate:c,disabledNavigation:u,autoCloseOnSelect:d,excludeDates:f,includeDates:p,locale:h,calendarProps:g,onChange:_}=o,[m,b]=v.useState(i??null),C=v.useRef(),{theme:x}=ct();return y.jsxs("div",{className:E($i.cntDatePicker,t&&$i.cntDatePicker__error,a&&a),children:[r&&y.jsx(je,{type:"sm",className:$i.cntDatePicker_label,children:r}),y.jsx(ZC,{...g,wrapperClassName:E(x.mode==="dark"&&"react-datepicker-wrapper__dark"),calendarClassName:E(x.mode==="dark"&&"react-datepicker__dark"),ref:C,className:$i.cntDatePicker_field,selected:m,disabled:e,dateFormat:"yyyy/MM/dd",onChange:w=>{b(w),_==null||_(w)},isClearable:n,placeholderText:s,minDate:l,maxDate:c,showDisabledMonthNavigation:u,shouldCloseOnSelect:d,excludeDates:f,includeDates:p,locale:h,nextMonthButtonLabel:"",previousMonthButtonLabel:"",popperPlacement:"bottom-start"}),t&&y.jsxs("div",{className:$i.cntDatePicker_errorContent,children:[y.jsx(ie,{name:"circle-cross",size:"sm",filled:!0,color:"error-50"}),y.jsx(je,{type:"sm",className:$i.label,children:t})]})]})},bu={divider:"_divider_6zaq8_1",divider__vertical:"_divider__vertical_6zaq8_6",divider__disabled:"_divider__disabled_6zaq8_10"},H0=({className:e,disabled:t=!1,vertical:n=!1})=>y.jsx("div",{className:E(bu.divider,t&&bu.divider__disabled,n&&bu.divider__vertical,e&&e)});H0.prototype={avocado:"Divider"};const Bs={donutContent:"_donutContent_s0hs2_1",donutContent_chart:"_donutContent_chart_s0hs2_6",donutChartTotal:"_donutChartTotal_s0hs2_6",donutChartSection_1:"_donutChartSection_1_s0hs2_10",donutChartSection_2:"_donutChartSection_2_s0hs2_16",donutChartSection_3:"_donutChartSection_3_s0hs2_22",donutChartSection_4:"_donutChartSection_4_s0hs2_28"},$0=({className:e,data:t,height:n="300px",width:r="300px"})=>{const o=100/(t==null?void 0:t.reduce((p,h)=>p+(h==null?void 0:h.percentage),0)),a=50,s=50,l=40,c=45,u=2*Math.PI*l,d=-90;let f=0;return t.forEach(p=>{const h=o*p.percentage;p.itemRatio=h,p.angle=f*360/100+d,p.offset=u-u*h/100,p.filled=f,f+=h}),y.jsx("div",{className:E(Bs.donutContent,e&&e),style:{width:r,height:n},children:y.jsxs("svg",{className:Bs.donutContent_chart,height:n,width:r,viewBox:"0 0 100 100",children:[y.jsx("circle",{className:Bs.donutChartTotal,cx:a,cy:s,r:c}),t.map((p,h)=>y.jsxs("circle",{className:Bs[`donutChartSection_${h+1}`],cx:a,cy:s,r:l,strokeDasharray:u,strokeDashoffset:p.offset,transform:`rotate(${p.angle} ${a} ${s})`,children:[y.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:`${d} ${a} ${s}`,to:`${p.angle} ${a} ${s}`,dur:"1s"}),y.jsxs("title",{children:[p==null?void 0:p.name,": ",p==null?void 0:p.value]})]},h))]})})};$0.prototype={avocado:"Donut"};const Hs={donutLabels:"_donutLabels_6awpr_1",donutLabels_item:"_donutLabels_item_6awpr_6",donutLabels_item__1:"_donutLabels_item__1_6awpr_23",donutLabels_item__2:"_donutLabels_item__2_6awpr_27",donutLabels_item__3:"_donutLabels_item__3_6awpr_30",donutLabels_item__4:"_donutLabels_item__4_6awpr_33"},z0=({className:e,data:t})=>{const n=t.reduce((r,i)=>r+(i==null?void 0:i.value),0);return y.jsxs("section",{className:E(Hs.donutLabels,e&&e),children:[t==null?void 0:t.map((r,i)=>y.jsx("div",{className:E(Hs.donutLabels_item,Hs[`donutLabels_item__${i+1}`]),children:y.jsx("span",{children:r==null?void 0:r.value})},`donut-label-${i}`)),y.jsx("div",{className:Hs.donutLabels_item,children:y.jsx("span",{children:n})})]})};z0.prototype={avocado:"DonutLabels"};const zi={donutLegend:"_donutLegend_1vjiv_1",donutLegend_item:"_donutLegend_item_1vjiv_6",itemBox:"_itemBox_1vjiv_16",donutLegend_item__1:"_donutLegend_item__1_1vjiv_22",donutLegend_item__2:"_donutLegend_item__2_1vjiv_25",donutLegend_item__3:"_donutLegend_item__3_1vjiv_28",donutLegend_item__4:"_donutLegend_item__4_1vjiv_31"},W0=({className:e,data:t,totalLabel:n="Total",showTotal:r=!0})=>y.jsxs("section",{className:E(zi.donutLegend,e&&e),children:[r&&y.jsxs("div",{className:E(zi.donutLegend_item),children:[y.jsx("div",{className:zi.itemBox})," ",n]}),t==null?void 0:t.map((i,o)=>y.jsxs("div",{className:E(zi.donutLegend_item,zi[`donutLegend_item__${o+1}`]),children:[y.jsx("div",{className:zi.itemBox}),i==null?void 0:i.name]},`donut-legend-${o}`))]});W0.prototype={avocado:"DonutLegend"};const Zo=({ref:e,shouldIgnore:t,onClickOutside:n})=>{let r=!1;const i=l=>{e!=null&&e.current&&!(e!=null&&e.current.contains(l.target))&&!t&&(n==null||n())},o=()=>{document.addEventListener("mousedown",i)},a=()=>{document.removeEventListener("mousedown",i),r=!1},s=()=>{if(!r){o(),r=!0;return}a(),o()};v.useEffect(()=>{if(t){a();return}return s(),()=>{a()}},[e,t])},Er={dropdown:"_dropdown_iow1b_21",dropdown_button:"_dropdown_button_iow1b_25",chevronIcon:"_chevronIcon_iow1b_32",dropdown_button__ghost:"_dropdown_button__ghost_iow1b_35",dropdown_menu:"_dropdown_menu_iow1b_42",fadeInScale:"_fadeInScale_iow1b_1",menuItem:"_menuItem_iow1b_54",dropdownButton_menu__top:"_dropdownButton_menu__top_iow1b_77",dropdownButton_menu__bottom:"_dropdownButton_menu__bottom_iow1b_81",dropdown_menu__close:"_dropdown_menu__close_iow1b_85",fadeOutScale:"_fadeOutScale_iow1b_1"},Y0=({children:e,className:t,disabled:n,items:r,variant:i="primary"})=>{const[o,a]=v.useState(!1),[s,l]=v.useState(!1),[c,u]=v.useState("bottom"),d=v.useRef(null),f=()=>{if(!d.current)return;const m=d.current.getBoundingClientRect(),b=window.innerHeight-(m.y+m.height),C=m.y;u(C>b?"top":"bottom")};Zo({ref:d,onClickOutside:()=>h(!1)}),v.useEffect(()=>{f();const m=()=>f();window.addEventListener("resize",m),window.addEventListener("scroll",m);const b=C=>{d.current&&!d.current.contains(C.target)&&h(!1)};return document.addEventListener("mousedown",b),()=>{window.removeEventListener("resize",m),window.removeEventListener("scroll",m),document.removeEventListener("mousedown",b)}},[]);const p=()=>{s&&(l(!1),a(!1))},h=m=>{if(!m)return l(!0);a(!0),l(!1)},g={secondary:n?"neutral-50":"neutral-70",ghost:n?"neutral-50":"neutral-70"},_=n?"neutral-50":"gray-00";return y.jsxs("section",{className:E(Er.dropdown,t&&t),ref:d,children:[y.jsxs(Gr,{className:E(Er.dropdown_button,i==="ghost"&&Er.dropdown_button__ghost),disabled:n,variant:i,onClick:()=>h(!o),children:[e,y.jsx(ie,{color:g[i]||_,className:Er.chevronIcon,name:"chevron-down"})]}),!n&&o&&y.jsx("ul",{onAnimationEnd:p,className:E(Er.dropdown_menu,Er[`dropdownButton_menu__${c}`],s&&Er.dropdown_menu__close),children:r==null?void 0:r.map((m,b)=>y.jsx("li",{className:Er.menuItem,onClick:()=>{m.onClick(),h(!1)},children:m==null?void 0:m.label},`dropdown-menu-item-${b}`))})]})};Y0.prototype={avocado:"DropdownButton"};const fr={link:"_link_1tmxa_1",link__disabled:"_link__disabled_1tmxa_11",link_content:"_link_content_1tmxa_11",link_iconLeft:"_link_iconLeft_1tmxa_27",link_iconRight:"_link_iconRight_1tmxa_34",link__inverse:"_link__inverse_1tmxa_48",link__colored:"_link__colored_1tmxa_64",link__sm:"_link__sm_1tmxa_77",link__darkMode:"_link__darkMode_1tmxa_80"},U0=({children:e,className:t,disabled:n=!1,iconLeft:r,iconRight:i,inverse:o,size:a="md",colored:s=!1,onClick:l,...c})=>{const{theme:u}=ct();return y.jsxs("a",{...c,className:E(fr.link,n&&fr.link__disabled,o&&fr.link__inverse,a==="sm"&&fr.link__sm,s===!0&&fr.link__colored,(u==null?void 0:u.mode)==="dark"&&fr.link__darkMode,t&&t),onClick:()=>{n||l&&l()},tabIndex:n?-1:0,children:[r&&y.jsx(ie,{name:r,size:a,className:fr.link_iconLeft}),y.jsx("span",{className:fr.link_content,children:e}),i&&y.jsx(ie,{name:i,size:a,className:fr.link_iconRight})]})};U0.prototype={avocado:"Link"};const Z0={spinnerSvg:"_spinnerSvg_1i15l_1"},KC=({size:e="lg"})=>y.jsx(y.Fragment,{children:e==="lg"?y.jsxs("svg",{width:"104",height:"104",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Z0.spinnerSvg,children:[y.jsx("path",{d:"M100 52a48 48 0 1 1-96.001 0A48 48 0 0 1 100 52Z",stroke:"var(--color-primary-30)",strokeWidth:"8"}),y.jsx("path",{d:"M100 52a48 48 0 0 1-33.167 45.65",stroke:"var(--color-primary-50)",strokeWidth:"8",strokeLinecap:"round"})]}):y.jsxs("svg",{width:"36",height:"36",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Z0.spinnerSvg,children:[y.jsx("circle",{opacity:".5",cx:"18",cy:"18",r:"16",stroke:"var(--color-primary-30)",strokeWidth:"4"}),y.jsx("path",{d:"M18 34C9.163 34 2 26.837 2 18",stroke:"var(--color-primary-50)",strokeWidth:"4"})]})}),Wi={cntLoading:"_cntLoading_1suxv_1",cntLoading__inline:"_cntLoading__inline_1suxv_16",cntLoading_content:"_cntLoading_content_1suxv_20",title:"_title_1suxv_28",description:"_description_1suxv_31",cntLoading__darkMode:"_cntLoading__darkMode_1suxv_34"},QC=({className:e,description:t,title:n,size:r,inline:i})=>{const{theme:{mode:o}}=ct();return y.jsxs("section",{className:E(Wi.cntLoading,o==="dark"&&Wi.cntLoading__darkMode,i&&Wi.cntLoading__inline,e&&e),children:[y.jsx(KC,{size:r}),y.jsxs("div",{className:Wi.cntLoading_content,children:[n&&y.jsx(yt,{className:Wi.title,type:"h1",darkMode:!0,children:n}),t&&y.jsx(je,{className:Wi.description,darkMode:!0,type:"lg",weight:"medium",children:t})]})]})},Hn={menu:"_menu_1uv1z_21",menu_list:"_menu_list_1uv1z_27",fadeInScale:"_fadeInScale_1uv1z_1",menu_list__left:"_menu_list__left_1uv1z_39",menu_list__right:"_menu_list__right_1uv1z_42",menu_list__close:"_menu_list__close_1uv1z_45",fadeOutScale:"_fadeOutScale_1uv1z_1",listItem:"_listItem_1uv1z_48",listItem_icon:"_listItem_icon_1uv1z_79",menu__small:"_menu__small_1uv1z_85"},vu=({className:e="",closeOnClick:t=!1,disabled:n=!1,forceLightMode:r=!1,items:i=[],listOrigin:o="left",size:a="md",variant:s="secondary",onVisibleChange:l,triggerLabel:c})=>{const[u,d]=v.useState(!1),[f,p]=v.useState(!1),h=v.useRef(null);Zo({ref:h,onClickOutside(){_(!1)}});const g=()=>{f&&(p(!1),d(!1))},_=m=>{if(!m)return p(!0);d(!0),p(!1)};return v.useEffect(()=>{l==null||l(u)},[u]),y.jsxs("div",{ref:h,className:E(Hn.menu,a==="sm"&&Hn.menu__small,e&&e),children:[y.jsx(wr,{className:Hn.menu_trigger,"data-testid":"menu-trigger","aria-label":c,disabled:n,forceLightMode:r,icon:"dots",onClick:()=>{n||_(!u)},size:a,variant:s}),u&&y.jsx("div",{onAnimationEnd:g,"data-testid":"menu-list",className:E(Hn.menu_list,Hn==null?void 0:Hn[`menu_list__${o}`],f&&Hn.menu_list__close),children:i==null?void 0:i.map((m,b)=>y.jsxs("button",{className:Hn.listItem,onClick:C=>{var x;(x=m==null?void 0:m.onClick)==null||x.call(m,C),t&&_(!1)},children:[!!(m!=null&&m.icon)&&y.jsx(ie,{"data-testid":"menu-item-icon",className:Hn.listItem_icon,name:m.icon,size:"md"}),m==null?void 0:m.label]},b))})]})};vu.prototype={avocado:"Menu"};const Ft={modal__bodyOpen:"_modal__bodyOpen_f8vdo_1",modal:"_modal_f8vdo_1",modal__dark:"_modal__dark_f8vdo_15",modal_overlay:"_modal_overlay_f8vdo_15",modal__isOpen:"_modal__isOpen_f8vdo_18",fadeInOverlay:"_fadeInOverlay_f8vdo_1",content:"_content_f8vdo_21",modalEnter:"_modalEnter_f8vdo_1",modal__isClosing:"_modal__isClosing_f8vdo_24",fadeOutOverlay:"_fadeOutOverlay_f8vdo_1",modalLeave:"_modalLeave_f8vdo_1",modal__danger:"_modal__danger_f8vdo_30",modal__warning:"_modal__warning_f8vdo_33",modal__palette_1_50:"_modal__palette_1_50_f8vdo_36",modal__palette_2_50:"_modal__palette_2_50_f8vdo_39",modal__palette_3_50:"_modal__palette_3_50_f8vdo_42",modal__palette_4_50:"_modal__palette_4_50_f8vdo_45",modal__palette_5_50:"_modal__palette_5_50_f8vdo_48",modal__palette_6_50:"_modal__palette_6_50_f8vdo_51",modal__palette_7_50:"_modal__palette_7_50_f8vdo_54",modal__palette_8_50:"_modal__palette_8_50_f8vdo_57",modal__palette_9_50:"_modal__palette_9_50_f8vdo_60",modal__palette_10_50:"_modal__palette_10_50_f8vdo_63",modal__palette_11_50:"_modal__palette_11_50_f8vdo_66",modal__palette_12_50:"_modal__palette_12_50_f8vdo_69",modal__palette_13_50:"_modal__palette_13_50_f8vdo_72",modal__palette_14_50:"_modal__palette_14_50_f8vdo_75",modal__palette_15_50:"_modal__palette_15_50_f8vdo_78",modal__palette_16_50:"_modal__palette_16_50_f8vdo_81",modal__palette_17_50:"_modal__palette_17_50_f8vdo_84",modal__palette_18_50:"_modal__palette_18_50_f8vdo_87",modal_dialog:"_modal_dialog_f8vdo_100",content_header:"_content_header_f8vdo_120",content_header__bordered:"_content_header__bordered_f8vdo_127",closeBtn:"_closeBtn_f8vdo_131",content_body:"_content_body_f8vdo_139",content_footer:"_content_footer_f8vdo_142"},q0=e=>{const t=Ft.modal__bodyOpen;if(e){document.body.classList.add(t);return}document.body.classList.remove(t)},XC=({open:e,disableOverlayClick:t=!1,className:n,header:r,headerStatusColor:i,children:o,actions:a,onClose:s,headerBordered:l=!1})=>{const c=v.useRef(null),[u,d]=v.useState(e),[f,p]=v.useState(!1),{theme:h}=ct(),g=()=>{p(!0),s==null||s()},_=()=>{p(!1),d(!1)};Zo({ref:c,onClickOutside:()=>!t&&g()}),v.useEffect(()=>(e?(p(!1),d(!0)):!f&&u&&g(),q0(e),()=>{q0(!1)}),[e]);const m=[Ft.modal,n,u&&Ft.modal__isOpen,i&&Ft[`modal__${i}`],f&&Ft.modal__isClosing,h.mode==="dark"&&Ft.modal__dark];return u?y.jsxs("div",{className:E(...m),children:[y.jsx("div",{className:Ft.modal_overlay}),y.jsx("div",{className:Ft.modal_dialog,children:y.jsxs("div",{ref:c,className:Ft.content,onAnimationEndCapture:()=>f&&_(),children:[y.jsxs("header",{className:E(Ft.content_header,l&&Ft.content_header__bordered),children:[typeof r=="string"?y.jsx(yt,{type:"h2",children:r}):r,y.jsx("button",{type:"button",className:Ft.closeBtn,onClick:g,children:y.jsx(ie,{name:"close",color:"neutral-70"})})]}),o&&y.jsx("main",{className:Ft.content_body,children:o}),a&&y.jsx("footer",{className:Ft.content_footer,children:a})]})})]}):null},Gt={paginator:"_paginator_ccz8i_1",paginator__mobile:"_paginator__mobile_ccz8i_1",paginator_rowsPerPage:"_paginator_rowsPerPage_ccz8i_9",select:"_select_ccz8i_15",navPager:"_navPager_ccz8i_19",navPager_button:"_navPager_button_ccz8i_24",navPager_button__active:"_navPager_button__active_ccz8i_73",navPager_button__block:"_navPager_button__block_ccz8i_78",navPager_pageLabel:"_navPager_pageLabel_ccz8i_86",navPager_arrowRight:"_navPager_arrowRight_ccz8i_94"},ui=e=>{const{className:t,disabled:n,icon:r,onClick:i}=e;return y.jsx("button",{"data-testid":"pager-arrow",className:E(Gt.navPager_button,t&&t),onClick:()=>i(),disabled:n,children:y.jsx(ie,{name:r,color:n?"neutral-30":"neutral-70"})})};ui.prototype={avocado:"ArrowPager"};const JC=({page:e,hasNextPage:t,classname:n,onChange:r,onPageChange:i})=>{const o=a=>{a!==e&&a!==0&&(i==null||i(a),r==null||r(a))};return!t&&e<=1?null:y.jsx("section",{"data-testid":"pager-global","aria-label":"Pagination",className:E(Gt.paginator,n==null?void 0:n.global,"container_row","row__center"),children:y.jsxs("nav",{"data-testid":"pager-nav",className:E(Gt.navPager,n==null?void 0:n.nav),children:[y.jsx(ui,{icon:"chevron-left","aria-label":"Previous page",disabled:e===1,onClick:()=>o(e-1),className:n==null?void 0:n.arrow}),y.jsx(je,{type:"sm",weight:"medium",className:Gt.navPager_pageLabel,children:e}),y.jsx(ui,{icon:"chevron-right","aria-label":"Next page",disabled:!t,onClick:()=>o(e+1),className:E(n==null?void 0:n.arrow,Gt.navPager_arrowRight)})]})})},G0=e=>{const{className:t,disabled:n,page:r,currentPage:i,onClick:o,ellipsisAsNumber:a}=e;return y.jsx("button",{"data-testid":"pager-button","aria-label":r===a?"ellipsis":`Page ${r}`,disabled:n,className:E(Gt.navPager_button,i===r&&Gt.navPager_button__active,r===a&&Gt.navPager_button__block,t&&t),onClick:o,children:r!==a?r.toString():"..."})};G0.prototype={avocado:"ButtonPager"};function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function ew(e,t){if(di(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(di(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function K0(e){var t=ew(e,"string");return di(t)=="symbol"?t:t+""}function qo(e,t,n){return(t=K0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q0(Object(n),!0).forEach(function(r){qo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tw(e){if(Array.isArray(e))return e}function nw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function Cu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function X0(e,t){if(e){if(typeof e=="string")return Cu(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cu(e,t):void 0}}function rw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
764
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pr(e,t){return tw(e)||nw(e,t)||X0(e,t)||rw()}function iw(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function hr(e,t){if(e==null)return{};var n,r,i=iw(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ow=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function aw(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,a=o===void 0?null:o,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,h=hr(e,ow),g=v.useState(s!==void 0?s:n),_=pr(g,2),m=_[0],b=_[1],C=v.useState(l!==void 0?l:i),x=pr(C,2),w=x[0],k=x[1],S=v.useState(p!==void 0?p:a),M=pr(S,2),P=M[0],T=M[1],I=v.useCallback(function(H,G){typeof c=="function"&&c(H,G),T(H)},[c]),O=v.useCallback(function(H,G){var D;typeof u=="function"&&(D=u(H,G)),b(D!==void 0?D:H)},[u]),V=v.useCallback(function(){typeof f=="function"&&f(),k(!0)},[f]),N=v.useCallback(function(){typeof d=="function"&&d(),k(!1)},[d]),A=s!==void 0?s:m,j=l!==void 0?l:w,Y=p!==void 0?p:P;return ae(ae({},h),{},{inputValue:A,menuIsOpen:j,onChange:I,onInputChange:O,onMenuClose:N,onMenuOpen:V,value:Y})}function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},le.apply(null,arguments)}function sw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K0(r.key),r)}}function lw(e,t,n){return t&&J0(e.prototype,t),n&&J0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wu(e,t){return wu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wu(e,t)}function cw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wu(e,t)}function $s(e){return $s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$s(e)}function ep(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ep=function(){return!!e})()}function uw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dw(e,t){if(t&&(di(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uw(e)}function fw(e){var t=ep();return function(){var n,r=$s(e);if(t){var i=$s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return dw(this,n)}}function pw(e){if(Array.isArray(e))return Cu(e)}function hw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mw(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
765
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xu(e){return pw(e)||hw(e)||X0(e)||mw()}function _w(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function gw(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var yw=(function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(gw(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=_w(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),bt="-ms-",zs="-moz-",Te="-webkit-",tp="comm",ku="rule",Su="decl",bw="@import",np="@keyframes",vw="@layer",Cw=Math.abs,Ws=String.fromCharCode,ww=Object.assign;function xw(e,t){return mt(e,0)^45?(((t<<2^mt(e,0))<<2^mt(e,1))<<2^mt(e,2))<<2^mt(e,3):0}function rp(e){return e.trim()}function kw(e,t){return(e=t.exec(e))?e[0]:e}function Me(e,t,n){return e.replace(t,n)}function Tu(e,t){return e.indexOf(t)}function mt(e,t){return e.charCodeAt(t)|0}function Go(e,t,n){return e.slice(t,n)}function $n(e){return e.length}function Mu(e){return e.length}function Ys(e,t){return t.push(e),e}function Sw(e,t){return e.map(t).join("")}var Us=1,Yi=1,ip=0,Vt=0,ot=0,Ui="";function Zs(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Us,column:Yi,length:a,return:""}}function Ko(e,t){return ww(Zs("",null,null,"",null,null,0),e,{length:-e.length},t)}function Tw(){return ot}function Mw(){return ot=Vt>0?mt(Ui,--Vt):0,Yi--,ot===10&&(Yi=1,Us--),ot}function Kt(){return ot=Vt<ip?mt(Ui,Vt++):0,Yi++,ot===10&&(Yi=1,Us++),ot}function zn(){return mt(Ui,Vt)}function qs(){return Vt}function Qo(e,t){return Go(Ui,e,t)}function Xo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function op(e){return Us=Yi=1,ip=$n(Ui=e),Vt=0,[]}function ap(e){return Ui="",e}function Gs(e){return rp(Qo(Vt-1,Du(e===91?e+2:e===40?e+1:e)))}function Dw(e){for(;(ot=zn())&&ot<33;)Kt();return Xo(e)>2||Xo(ot)>3?"":" "}function Lw(e,t){for(;--t&&Kt()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return Qo(e,qs()+(t<6&&zn()==32&&Kt()==32))}function Du(e){for(;Kt();)switch(ot){case e:return Vt;case 34:case 39:e!==34&&e!==39&&Du(ot);break;case 40:e===41&&Du(e);break;case 92:Kt();break}return Vt}function Pw(e,t){for(;Kt()&&e+ot!==57;)if(e+ot===84&&zn()===47)break;return"/*"+Qo(t,Vt-1)+"*"+Ws(e===47?e:Kt())}function Ew(e){for(;!Xo(zn());)Kt();return Qo(e,Vt)}function Iw(e){return ap(Ks("",null,null,null,[""],e=op(e),0,[0],e))}function Ks(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,_=1,m=1,b=0,C="",x=i,w=o,k=r,S=C;_;)switch(h=b,b=Kt()){case 40:if(h!=108&&mt(S,d-1)==58){Tu(S+=Me(Gs(b),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:S+=Gs(b);break;case 9:case 10:case 13:case 32:S+=Dw(h);break;case 92:S+=Lw(qs()-1,7);continue;case 47:switch(zn()){case 42:case 47:Ys(Ow(Pw(Kt(),qs()),t,n),l);break;default:S+="/"}break;case 123*g:s[c++]=$n(S)*m;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+u:m==-1&&(S=Me(S,/\f/g,"")),p>0&&$n(S)-d&&Ys(p>32?lp(S+";",r,n,d-1):lp(Me(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Ys(k=sp(S,t,n,c,u,i,s,C,x=[],w=[],d),o),b===123)if(u===0)Ks(S,t,k,k,x,o,d,s,w);else switch(f===99&&mt(S,3)===110?100:f){case 100:case 108:case 109:case 115:Ks(e,k,k,r&&Ys(sp(e,k,k,0,0,i,s,C,i,x=[],d),w),i,w,d,s,r?x:w);break;default:Ks(S,k,k,k,[""],w,0,s,w)}}c=u=p=0,g=m=1,C=S="",d=a;break;case 58:d=1+$n(S),p=h;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&Mw()==125)continue}switch(S+=Ws(b),b*g){case 38:m=u>0?1:(S+="\f",-1);break;case 44:s[c++]=($n(S)-1)*m,m=1;break;case 64:zn()===45&&(S+=Gs(Kt())),f=zn(),u=d=$n(C=S+=Ew(qs())),b++;break;case 45:h===45&&$n(S)==2&&(g=0)}}return o}function sp(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=i===0?o:[""],p=Mu(f),h=0,g=0,_=0;h<r;++h)for(var m=0,b=Go(e,d+1,d=Cw(g=a[h])),C=e;m<p;++m)(C=rp(g>0?f[m]+" "+b:Me(b,/&\f/g,f[m])))&&(l[_++]=C);return Zs(e,t,n,i===0?ku:s,l,c,u)}function Ow(e,t,n){return Zs(e,t,n,tp,Ws(Tw()),Go(e,2,-2),0)}function lp(e,t,n,r){return Zs(e,t,n,Su,Go(e,0,r),Go(e,r+1,-1),r)}function Zi(e,t){for(var n="",r=Mu(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Aw(e,t,n,r){switch(e.type){case vw:if(e.children.length)break;case bw:case Su:return e.return=e.return||e.value;case tp:return"";case np:return e.return=e.value+"{"+Zi(e.children,r)+"}";case ku:e.value=e.props.join(",")}return $n(n=Zi(e.children,r))?e.return=e.value+"{"+n+"}":""}function Nw(e){var t=Mu(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function Rw(e){return function(t){t.root||(t=t.return)&&e(t)}}function jw(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Fw=function(t,n,r){for(var i=0,o=0;i=o,o=zn(),i===38&&o===12&&(n[r]=1),!Xo(o);)Kt();return Qo(t,Vt)},Vw=function(t,n){var r=-1,i=44;do switch(Xo(i)){case 0:i===38&&zn()===12&&(n[r]=1),t[r]+=Fw(Vt-1,n,r);break;case 2:t[r]+=Gs(i);break;case 4:if(i===44){t[++r]=zn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ws(i)}while(i=Kt());return t},Bw=function(t,n){return ap(Vw(op(t),n))},cp=new WeakMap,Hw=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!cp.get(r))&&!i){cp.set(t,!0);for(var o=[],a=Bw(n,o),s=r.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=o[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},$w=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function up(e,t){switch(xw(e,t)){case 5103:return Te+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Te+e+zs+e+bt+e+e;case 6828:case 4268:return Te+e+bt+e+e;case 6165:return Te+e+bt+"flex-"+e+e;case 5187:return Te+e+Me(e,/(\w+).+(:[^]+)/,Te+"box-$1$2"+bt+"flex-$1$2")+e;case 5443:return Te+e+bt+"flex-item-"+Me(e,/flex-|-self/,"")+e;case 4675:return Te+e+bt+"flex-line-pack"+Me(e,/align-content|flex-|-self/,"")+e;case 5548:return Te+e+bt+Me(e,"shrink","negative")+e;case 5292:return Te+e+bt+Me(e,"basis","preferred-size")+e;case 6060:return Te+"box-"+Me(e,"-grow","")+Te+e+bt+Me(e,"grow","positive")+e;case 4554:return Te+Me(e,/([^-])(transform)/g,"$1"+Te+"$2")+e;case 6187:return Me(Me(Me(e,/(zoom-|grab)/,Te+"$1"),/(image-set)/,Te+"$1"),e,"")+e;case 5495:case 3959:return Me(e,/(image-set\([^]*)/,Te+"$1$`$1");case 4968:return Me(Me(e,/(.+:)(flex-)?(.*)/,Te+"box-pack:$3"+bt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Te+e+e;case 4095:case 3583:case 4068:case 2532:return Me(e,/(.+)-inline(.+)/,Te+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if($n(e)-1-t>6)switch(mt(e,t+1)){case 109:if(mt(e,t+4)!==45)break;case 102:return Me(e,/(.+:)(.+)-([^]+)/,"$1"+Te+"$2-$3$1"+zs+(mt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Tu(e,"stretch")?up(Me(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(mt(e,t+1)!==115)break;case 6444:switch(mt(e,$n(e)-3-(~Tu(e,"!important")&&10))){case 107:return Me(e,":",":"+Te)+e;case 101:return Me(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Te+(mt(e,14)===45?"inline-":"")+"box$3$1"+Te+"$2$3$1"+bt+"$2box$3")+e}break;case 5936:switch(mt(e,t+11)){case 114:return Te+e+bt+Me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Te+e+bt+Me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Te+e+bt+Me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Te+e+bt+e+e}return e}var zw=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Su:t.return=up(t.value,t.length);break;case np:return Zi([Ko(t,{value:Me(t.value,"@","@"+Te)})],i);case ku:if(t.length)return Sw(t.props,function(o){switch(kw(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zi([Ko(t,{props:[Me(o,/:(read-\w+)/,":"+zs+"$1")]})],i);case"::placeholder":return Zi([Ko(t,{props:[Me(o,/:(plac\w+)/,":"+Te+"input-$1")]}),Ko(t,{props:[Me(o,/:(plac\w+)/,":"+zs+"$1")]}),Ko(t,{props:[Me(o,/:(plac\w+)/,bt+"input-$1")]})],i)}return""})}},Ww=[zw],Yw=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var _=g.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||Ww,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var _=g.getAttribute("data-emotion").split(" "),m=1;m<_.length;m++)o[_[m]]=!0;s.push(g)});var l,c=[Hw,$w];{var u,d=[Aw,Rw(function(g){u.insert(g)})],f=Nw(c.concat(i,d)),p=function(_){return Zi(Iw(_),f)};l=function(_,m,b,C){u=b,p(_?_+"{"+m.styles+"}":m.styles),C&&(h.inserted[m.name]=!0)}}var h={key:n,sheet:new yw({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return h.sheet.hydrate(s),h},Lu={exports:{}},Pe={};/** @license React v16.13.1
763
+ */var uu=function(t,n){return uu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},uu(t,n)};function pt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");uu(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ke=function(){return ke=Object.assign||function(n){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},ke.apply(this,arguments)};function Vn(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Gv=function(e){var t=e.showTimeSelectOnly,n=t===void 0?!1:t,r=e.showTime,i=r===void 0?!1:r,o=e.className,a=e.children,s=n?"Choose Time":"Choose Date".concat(i?" and Time":"");return v.createElement("div",{className:o,role:"dialog","aria-label":s,"aria-modal":"true"},a)},q;(function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"})(q||(q={}));function m0(){var e=typeof window<"u"?window:globalThis;return e}var Ho=12,Kv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Ne(e){if(e==null)return new Date;var t=typeof e=="string"?Sb(e):X(e);return dr(t)?t:new Date}function Qv(e,t,n,r,i){var o,a=null,s=ci(n)||ci(Wo()),l=!0;if(Array.isArray(t))return t.forEach(function(d){var u=Qc(e,d,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});r&&(l=dr(u,i)&&e===$e(u,d,n)),dr(u,i)&&l&&(a=u)}),a;if(a=Qc(e,t,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),r)l=dr(a)&&e===$e(a,t,n);else if(!dr(a)){var c=((o=t.match(Kv))!==null&&o!==void 0?o:[]).map(function(d){var u=d[0];if(u==="p"||u==="P"){var f=ms[u];return s?f(d,s.formatLong):u}return d}).join("");e.length>0&&(a=Qc(e,c.slice(0,e.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),dr(a)||(a=new Date(e))}return dr(a)&&l?a:null}function dr(e,t){return _s(e)&&!ri(e,t??new Date("1/1/1800"))}function $e(e,t,n){if(n==="en")return Of(e,t,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?ci(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Wo()&&ci(Wo())&&(r=ci(Wo())),Of(e,t,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function ln(e,t){var n=t.dateFormat,r=t.locale,i=Array.isArray(n)&&n.length>0?n[0]:n;return e&&$e(e,i,r)||""}function Xv(e,t,n){if(!e)return"";var r=ln(e,n),i=t?ln(t,n):"";return"".concat(r," - ").concat(i)}function Jv(e,t){if(!(e!=null&&e.length))return"";var n=e[0]?ln(e[0],t):"";if(e.length===1)return n;if(e.length===2&&e[1]){var r=ln(e[1],t);return"".concat(n,", ").concat(r)}var i=e.length-1;return"".concat(n," (+").concat(i,")")}function du(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,a=t.second,s=a===void 0?0:a;return bs(vs(Cs(e,s),o),r)}function eC(e){return Wc(e)}function tC(e,t){return $e(e,"ddd",t)}function As(e){return Jr(e)}function Mr(e,t,n){var r=ci(t||Wo());return sr(e,{locale:r,weekStartsOn:n})}function Dr(e){return $f(e)}function $o(e){return hs(e)}function _0(e){return qc(e)}function g0(){return Jr(Ne())}function y0(e){return Cf(e)}function nC(e){return Ig(e)}function Bn(e,t){return e&&t?Dy(e,t):!e&&!t}function Lt(e,t){return e&&t?Ty(e,t):!e&&!t}function Ns(e,t){return e&&t?My(e,t):!e&&!t}function ye(e,t){return e&&t?Sy(e,t):!e&&!t}function li(e,t){return e&&t?ky(e,t):!e&&!t}function zo(e,t,n){var r,i=Jr(t),o=Cf(n);try{r=Ro(e,{start:i,end:o})}catch{r=!1}return r}function Wo(){var e=m0();return e.__localeId__}function ci(e){if(typeof e=="string"){var t=m0();return t.__localeData__?t.__localeData__[e]:void 0}else return e}function rC(e,t,n){return t($e(e,"EEEE",n))}function iC(e,t){return $e(e,"EEEEEE",t)}function oC(e,t){return $e(e,"EEE",t)}function fu(e,t){return $e(Zt(Ne(),e),"LLLL",t)}function b0(e,t){return $e(Zt(Ne(),e),"LLL",t)}function aC(e,t){return $e(Oi(Ne(),e),"QQQ",t)}function Lr(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.excludeDateIntervals,s=n.includeDates,l=n.includeDateIntervals,c=n.filterDate;return Yo(e,{minDate:r,maxDate:i})||o&&o.some(function(d){var u;return d instanceof Date?ye(e,d):ye(e,(u=d.date)!==null&&u!==void 0?u:new Date)})||a&&a.some(function(d){var u=d.start,f=d.end;return Ro(e,{start:u,end:f})})||s&&!s.some(function(d){return ye(e,d)})||l&&!l.some(function(d){var u=d.start,f=d.end;return Ro(e,{start:u,end:f})})||c&&!c(Ne(e))||!1}function pu(e,t){var n=t===void 0?{}:t,r=n.excludeDates,i=n.excludeDateIntervals;return i&&i.length>0?i.some(function(o){var a=o.start,s=o.end;return Ro(e,{start:a,end:s})}):r&&r.some(function(o){var a;return o instanceof Date?ye(e,o):ye(e,(a=o.date)!==null&&a!==void 0?a:new Date)})||!1}function v0(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate;return Yo(e,{minDate:r?$f(r):void 0,maxDate:i?Pg(i):void 0})||(o==null?void 0:o.some(function(l){return Lt(e,l instanceof Date?l:l.date)}))||a&&!a.some(function(l){return Lt(e,l)})||s&&!s(Ne(e))||!1}function Rs(e,t,n,r){var i=pe(e),o=Mt(e),a=pe(t),s=Mt(t),l=pe(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:!1}function sC(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates;return Yo(e,{minDate:r,maxDate:i})||o&&o.some(function(s){return Lt(s instanceof Date?s:s.date,e)})||a&&!a.some(function(s){return Lt(s,e)})||!1}function hu(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate;return Yo(e,{minDate:r,maxDate:i})||(o==null?void 0:o.some(function(l){return Ns(e,l instanceof Date?l:l.date)}))||a&&!a.some(function(l){return Ns(e,l)})||s&&!s(Ne(e))||!1}function js(e,t,n){if(!t||!n||!_s(t)||!_s(n))return!1;var r=pe(t),i=pe(n);return r<=e&&i>=e}function mu(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate,l=new Date(e,0,1);return Yo(l,{minDate:r?hs(r):void 0,maxDate:i?wf(i):void 0})||(o==null?void 0:o.some(function(c){return Bn(l,c instanceof Date?c:c.date)}))||a&&!a.some(function(c){return Bn(l,c)})||s&&!s(Ne(l))||!1}function Fs(e,t,n,r){var i=pe(e),o=ei(e),a=pe(t),s=ei(t),l=pe(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:!1}function Yo(e,t){var n,r=t===void 0?{}:t,i=r.minDate,o=r.maxDate;return(n=i&&Oo(e,i)<0||o&&Oo(e,o)>0)!==null&&n!==void 0?n:!1}function C0(e,t){return t.some(function(n){return In(n)===In(e)&&On(n)===On(e)&&cr(n)===cr(e)})}function w0(e,t){var n=t===void 0?{}:t,r=n.excludeTimes,i=n.includeTimes,o=n.filterTime;return r&&C0(e,r)||i&&!C0(e,i)||o&&!o(e)||!1}function x0(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i=Ne();i=bs(i,In(e)),i=vs(i,On(e)),i=Cs(i,cr(e));var o=Ne();o=bs(o,In(n)),o=vs(o,On(n)),o=Cs(o,cr(n));var a=Ne();a=bs(a,In(r)),a=vs(a,On(r)),a=Cs(a,cr(r));var s;try{s=!Ro(i,{start:o,end:a})}catch{s=!1}return s}function k0(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.includeDates,o=Ai(e,1);return r&&ds(r,o)>0||i&&i.every(function(a){return ds(a,o)>0})||!1}function S0(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.includeDates,o=gn(e,1);return r&&ds(o,r)>0||i&&i.every(function(a){return ds(o,a)>0})||!1}function lC(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.includeDates,o=hs(e),a=zf(o);return r&&fs(r,a)>0||i&&i.every(function(s){return fs(s,a)>0})||!1}function cC(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.includeDates,o=wf(e),a=$c(o,1);return r&&fs(a,r)>0||i&&i.every(function(s){return fs(a,s)>0})||!1}function T0(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.includeDates,o=Ni(e,1);return r&&ps(r,o)>0||i&&i.every(function(a){return ps(a,o)>0})||!1}function uC(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.yearItemNumber,o=i===void 0?Ho:i,a=$o(Ni(e,o)),s=Pr(a,o).endPeriod,l=r&&pe(r);return l&&l>s||!1}function M0(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.includeDates,o=ar(e,1);return r&&ps(o,r)>0||i&&i.every(function(a){return ps(o,a)>0})||!1}function dC(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.yearItemNumber,o=i===void 0?Ho:i,a=ar(e,o),s=Pr(a,o).startPeriod,l=r&&pe(r);return l&&l<s||!1}function D0(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return Oo(i,t)>=0});return Rf(r)}else return n?Rf(n):t}function L0(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return Oo(i,t)<=0});return Nf(r)}else return n?Nf(n):t}function P0(e,t){var n;e===void 0&&(e=[]),t===void 0&&(t="react-datepicker__day--highlighted");for(var r=new Map,i=0,o=e.length;i<o;i++){var a=e[i];if(lr(a)){var s=$e(a,"MM.dd.yyyy"),l=r.get(s)||[];l.includes(t)||(l.push(t),r.set(s,l))}else if(typeof a=="object"){var c=Object.keys(a),d=(n=c[0])!==null&&n!==void 0?n:"",u=a[d];if(typeof d=="string"&&Array.isArray(u))for(var f=0,p=u.length;f<p;f++){var h=u[f];if(h){var s=$e(h,"MM.dd.yyyy"),l=r.get(s)||[];l.includes(d)||(l.push(d),r.set(s,l))}}}}return r}function fC(e,t){return e.length!==t.length?!1:e.every(function(n,r){return n===t[r]})}function pC(e,t){e===void 0&&(e=[]),t===void 0&&(t="react-datepicker__day--holidays");var n=new Map;return e.forEach(function(r){var i=r.date,o=r.holidayName;if(lr(i)){var a=$e(i,"MM.dd.yyyy"),s=n.get(a)||{className:"",holidayNames:[]};if(!("className"in s&&s.className===t&&fC(s.holidayNames,[o]))){s.className=t;var l=s.holidayNames;s.holidayNames=l?Vn(Vn([],l,!0),[o],!1):[o],n.set(a,s)}}}),n}function hC(e,t,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=e,c=i[s];c&&(l=Dg(l,In(c)),l=Hc(l,On(c)),l=Lg(l,cr(c)));var d=Hc(e,(n+1)*r);Sr(l,t)&&ri(l,d)&&c!=null&&a.push(c)}return a}function E0(e){return e<10?"0".concat(e):"".concat(e)}function Pr(e,t){t===void 0&&(t=Ho);var n=Math.ceil(pe(e)/t)*t,r=n-(t-1);return{startPeriod:r,endPeriod:n}}function mC(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+n-+t)/36e5)}function I0(e){var t=e.getSeconds(),n=e.getMilliseconds();return X(e.getTime()-t*1e3-n)}function _C(e,t){return I0(e).getTime()===I0(t).getTime()}function O0(e){if(!lr(e))throw new Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function A0(e,t){if(!lr(e)||!lr(t))throw new Error("Invalid date received");var n=O0(e),r=O0(t);return ri(n,r)}function N0(e){return e.key===q.Space}var gC=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;return r.onTimeChange=function(i){var o,a;r.setState({time:i});var s=r.props.date,l=s instanceof Date&&!isNaN(+s),c=l?s:new Date;if(i!=null&&i.includes(":")){var d=i.split(":"),u=d[0],f=d[1];c.setHours(Number(u)),c.setMinutes(Number(f))}(a=(o=r.props).onChange)===null||a===void 0||a.call(o,c)},r.renderTimeInput=function(){var i=r.state.time,o=r.props,a=o.date,s=o.timeString,l=o.customTimeInput;return l?v.cloneElement(l,{date:a,value:i,onChange:r.onTimeChange}):v.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:i,onChange:function(c){r.onTimeChange(c.target.value||s)}})},r.state={time:r.props.timeString},r}return t.getDerivedStateFromProps=function(n,r){return n.timeString!==r.time?{time:n.timeString}:null},t.prototype.render=function(){return v.createElement("div",{className:"react-datepicker__input-time-container"},v.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),v.createElement("div",{className:"react-datepicker-time__input-container"},v.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},t})(v.Component),yC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.dayEl=v.createRef(),n.handleClick=function(r){!n.isDisabled()&&n.props.onClick&&n.props.onClick(r)},n.handleMouseEnter=function(r){!n.isDisabled()&&n.props.onMouseEnter&&n.props.onMouseEnter(r)},n.handleOnKeyDown=function(r){var i,o,a=r.key;a===q.Space&&(r.preventDefault(),r.key=q.Enter),(o=(i=n.props).handleOnKeyDown)===null||o===void 0||o.call(i,r)},n.isSameDay=function(r){return ye(n.props.day,r)},n.isKeyboardSelected=function(){var r;if(n.props.disabledKeyboardNavigation)return!1;var i=n.props.selectsMultiple?(r=n.props.selectedDates)===null||r===void 0?void 0:r.some(function(a){return n.isSameDayOrWeek(a)}):n.isSameDayOrWeek(n.props.selected),o=n.props.preSelection&&n.isDisabled(n.props.preSelection);return!i&&n.isSameDayOrWeek(n.props.preSelection)&&!o},n.isDisabled=function(r){return r===void 0&&(r=n.props.day),Lr(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(){return pu(n.props.day,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.isStartOfWeek=function(){return ye(n.props.day,Mr(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameWeek=function(r){return n.props.showWeekPicker&&ye(r,Mr(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameDayOrWeek=function(r){return n.isSameDay(r)||n.isSameWeek(r)},n.getHighLightedClass=function(){var r=n.props,i=r.day,o=r.highlightDates;if(!o)return!1;var a=$e(i,"MM.dd.yyyy");return o.get(a)},n.getHolidaysClass=function(){var r,i=n.props,o=i.day,a=i.holidays;if(!a)return[void 0];var s=$e(o,"MM.dd.yyyy");return a.has(s)?[(r=a.get(s))===null||r===void 0?void 0:r.className]:[void 0]},n.isInRange=function(){var r=n.props,i=r.day,o=r.startDate,a=r.endDate;return!o||!a?!1:zo(i,o,a)},n.isInSelectingRange=function(){var r,i=n.props,o=i.day,a=i.selectsStart,s=i.selectsEnd,l=i.selectsRange,c=i.selectsDisabledDaysInRange,d=i.startDate,u=i.endDate,f=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return!(a||s||l)||!f||!c&&n.isDisabled()?!1:a&&u&&(ri(f,u)||li(f,u))?zo(o,f,u):s&&d&&(Sr(f,d)||li(f,d))||l&&d&&!u&&(Sr(f,d)||li(f,d))?zo(o,d,f):!1},n.isSelectingRangeStart=function(){var r;if(!n.isInSelectingRange())return!1;var i=n.props,o=i.day,a=i.startDate,s=i.selectsStart,l=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return s?ye(o,l):ye(o,a)},n.isSelectingRangeEnd=function(){var r;if(!n.isInSelectingRange())return!1;var i=n.props,o=i.day,a=i.endDate,s=i.selectsEnd,l=i.selectsRange,c=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return s||l?ye(o,c):ye(o,a)},n.isRangeStart=function(){var r=n.props,i=r.day,o=r.startDate,a=r.endDate;return!o||!a?!1:ye(o,i)},n.isRangeEnd=function(){var r=n.props,i=r.day,o=r.startDate,a=r.endDate;return!o||!a?!1:ye(a,i)},n.isWeekend=function(){var r=xy(n.props.day);return r===0||r===6},n.isAfterMonth=function(){return n.props.month!==void 0&&(n.props.month+1)%12===Mt(n.props.day)},n.isBeforeMonth=function(){return n.props.month!==void 0&&(Mt(n.props.day)+1)%12===n.props.month},n.isCurrentDay=function(){return n.isSameDay(Ne())},n.isSelected=function(){var r;return n.props.selectsMultiple?(r=n.props.selectedDates)===null||r===void 0?void 0:r.some(function(i){return n.isSameDayOrWeek(i)}):n.isSameDayOrWeek(n.props.selected)},n.getClassNames=function(r){var i=n.props.dayClassName?n.props.dayClassName(r):void 0;return ft("react-datepicker__day",i,"react-datepicker__day--"+tC(n.props.day),{"react-datepicker__day--disabled":n.isDisabled(),"react-datepicker__day--excluded":n.isExcluded(),"react-datepicker__day--selected":n.isSelected(),"react-datepicker__day--keyboard-selected":n.isKeyboardSelected(),"react-datepicker__day--range-start":n.isRangeStart(),"react-datepicker__day--range-end":n.isRangeEnd(),"react-datepicker__day--in-range":n.isInRange(),"react-datepicker__day--in-selecting-range":n.isInSelectingRange(),"react-datepicker__day--selecting-range-start":n.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":n.isSelectingRangeEnd(),"react-datepicker__day--today":n.isCurrentDay(),"react-datepicker__day--weekend":n.isWeekend(),"react-datepicker__day--outside-month":n.isAfterMonth()||n.isBeforeMonth()},n.getHighLightedClass(),n.getHolidaysClass())},n.getAriaLabel=function(){var r=n.props,i=r.day,o=r.ariaLabelPrefixWhenEnabled,a=o===void 0?"Choose":o,s=r.ariaLabelPrefixWhenDisabled,l=s===void 0?"Not available":s,c=n.isDisabled()||n.isExcluded()?l:a;return"".concat(c," ").concat($e(i,"PPPP",n.props.locale))},n.getTitle=function(){var r=n.props,i=r.day,o=r.holidays,a=o===void 0?new Map:o,s=r.excludeDates,l=$e(i,"MM.dd.yyyy"),c=[];return a.has(l)&&c.push.apply(c,a.get(l).holidayNames),n.isExcluded()&&c.push(s==null?void 0:s.filter(function(d){return d instanceof Date?ye(d,i):ye(d==null?void 0:d.date,i)}).map(function(d){if(!(d instanceof Date))return d==null?void 0:d.message})),c.join(", ")},n.getTabIndex=function(){var r=n.props.selected,i=n.props.preSelection,o=!(n.props.showWeekPicker&&(n.props.showWeekNumber||!n.isStartOfWeek()))&&(n.isKeyboardSelected()||n.isSameDay(r)&&ye(i,r))?0:-1;return o},n.handleFocusDay=function(){var r;n.shouldFocusDay()&&((r=n.dayEl.current)===null||r===void 0||r.focus({preventScroll:!0}))},n.renderDayContents=function(){return n.props.monthShowsDuplicateDaysEnd&&n.isAfterMonth()||n.props.monthShowsDuplicateDaysStart&&n.isBeforeMonth()?null:n.props.renderDayContents?n.props.renderDayContents(Af(n.props.day),n.props.day):Af(n.props.day)},n.render=function(){return v.createElement("div",{ref:n.dayEl,className:n.getClassNames(n.props.day),onKeyDown:n.handleOnKeyDown,onClick:n.handleClick,onMouseEnter:n.props.usePointerEvent?void 0:n.handleMouseEnter,onPointerEnter:n.props.usePointerEvent?n.handleMouseEnter:void 0,tabIndex:n.getTabIndex(),"aria-label":n.getAriaLabel(),role:"option",title:n.getTitle(),"aria-disabled":n.isDisabled(),"aria-current":n.isCurrentDay()?"date":void 0,"aria-selected":n.isSelected()||n.isInRange()},n.renderDayContents(),n.getTitle()!==""&&v.createElement("span",{className:"overlay"},n.getTitle()))},n}return t.prototype.componentDidMount=function(){this.handleFocusDay()},t.prototype.componentDidUpdate=function(){this.handleFocusDay()},t.prototype.shouldFocusDay=function(){var n=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(n=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(n=!1),this.isDayActiveElement()&&(n=!0),this.isDuplicateDay()&&(n=!1)),n},t.prototype.isDayActiveElement=function(){var n,r,i;return((r=(n=this.props.containerRef)===null||n===void 0?void 0:n.current)===null||r===void 0?void 0:r.contains(document.activeElement))&&((i=document.activeElement)===null||i===void 0?void 0:i.classList.contains("react-datepicker__day"))},t.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},t})(v.Component),bC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.weekNumberEl=v.createRef(),n.handleClick=function(r){n.props.onClick&&n.props.onClick(r)},n.handleOnKeyDown=function(r){var i,o,a=r.key;a===q.Space&&(r.preventDefault(),r.key=q.Enter),(o=(i=n.props).handleOnKeyDown)===null||o===void 0||o.call(i,r)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!ye(n.props.date,n.props.selected)&&ye(n.props.date,n.props.preSelection)},n.getTabIndex=function(){return n.props.showWeekPicker&&n.props.showWeekNumber&&(n.isKeyboardSelected()||ye(n.props.date,n.props.selected)&&ye(n.props.preSelection,n.props.selected))?0:-1},n.handleFocusWeekNumber=function(r){var i=!1;n.getTabIndex()===0&&!(r!=null&&r.isInputFocused)&&ye(n.props.date,n.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(i=!0),n.props.inline&&!n.props.shouldFocusDayInline&&(i=!1),n.props.containerRef&&n.props.containerRef.current&&n.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(i=!0)),i&&n.weekNumberEl.current&&n.weekNumberEl.current.focus({preventScroll:!0})},n}return Object.defineProperty(t,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},t.prototype.componentDidUpdate=function(n){this.handleFocusWeekNumber(n)},t.prototype.render=function(){var n=this.props,r=n.weekNumber,i=n.ariaLabelPrefix,o=i===void 0?t.defaultProps.ariaLabelPrefix:i,a=n.onClick,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!a,"react-datepicker__week-number--selected":!!a&&ye(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return v.createElement("div",{ref:this.weekNumberEl,className:ft(s),"aria-label":"".concat(o," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},r)},t})(v.Component),vC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.isDisabled=function(r){return Lr(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.handleDayClick=function(r,i){n.props.onDayClick&&n.props.onDayClick(r,i)},n.handleDayMouseEnter=function(r){n.props.onDayMouseEnter&&n.props.onDayMouseEnter(r)},n.handleWeekClick=function(r,i,o){for(var a,s,l,c=new Date(r),d=0;d<7;d++){var u=new Date(r);u.setDate(u.getDate()+d);var f=!n.isDisabled(u);if(f){c=u;break}}typeof n.props.onWeekSelect=="function"&&n.props.onWeekSelect(c,i,o),n.props.showWeekPicker&&n.handleDayClick(c,o),((a=n.props.shouldCloseOnSelect)!==null&&a!==void 0?a:t.defaultProps.shouldCloseOnSelect)&&((l=(s=n.props).setOpen)===null||l===void 0||l.call(s,!1))},n.formatWeekNumber=function(r){return n.props.formatWeekNumber?n.props.formatWeekNumber(r):eC(r)},n.renderDays=function(){var r=n.startOfWeek(),i=[],o=n.formatWeekNumber(r);if(n.props.showWeekNumber){var a=n.props.onWeekSelect||n.props.showWeekPicker?n.handleWeekClick.bind(n,r,o):void 0;i.push(v.createElement(bC,ke({key:"W"},t.defaultProps,n.props,{weekNumber:o,date:r,onClick:a})))}return i.concat([0,1,2,3,4,5,6].map(function(s){var l=xr(r,s);return v.createElement(yC,ke({},t.defaultProps,n.props,{ariaLabelPrefixWhenEnabled:n.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:n.props.disabledDayAriaLabelPrefix,key:l.valueOf(),day:l,onClick:n.handleDayClick.bind(n,l),onMouseEnter:n.handleDayMouseEnter.bind(n,l)}))}))},n.startOfWeek=function(){return Mr(n.props.day,n.props.locale,n.props.calendarStartDay)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!ye(n.startOfWeek(),n.props.selected)&&ye(n.startOfWeek(),n.props.preSelection)},n}return Object.defineProperty(t,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n={"react-datepicker__week":!0,"react-datepicker__week--selected":ye(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return v.createElement("div",{className:ft(n)},this.renderDays())},t})(v.Component),Uo,CC=6,Hi={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},_u=(Uo={},Uo[Hi.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},Uo[Hi.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},Uo[Hi.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},Uo),Vs=1;function R0(e,t){return e?Hi.FOUR_COLUMNS:t?Hi.TWO_COLUMNS:Hi.THREE_COLUMNS}var wC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.MONTH_REFS=Vn([],Array(12),!0).map(function(){return v.createRef()}),n.QUARTER_REFS=Vn([],Array(4),!0).map(function(){return v.createRef()}),n.isDisabled=function(r){return Lr(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(r){return pu(r,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.handleDayClick=function(r,i){var o,a;(a=(o=n.props).onDayClick)===null||a===void 0||a.call(o,r,i,n.props.orderInDisplay)},n.handleDayMouseEnter=function(r){var i,o;(o=(i=n.props).onDayMouseEnter)===null||o===void 0||o.call(i,r)},n.handleMouseLeave=function(){var r,i;(i=(r=n.props).onMouseLeave)===null||i===void 0||i.call(r)},n.isRangeStartMonth=function(r){var i=n.props,o=i.day,a=i.startDate,s=i.endDate;return!a||!s?!1:Lt(Zt(o,r),a)},n.isRangeStartQuarter=function(r){var i=n.props,o=i.day,a=i.startDate,s=i.endDate;return!a||!s?!1:Ns(Oi(o,r),a)},n.isRangeEndMonth=function(r){var i=n.props,o=i.day,a=i.startDate,s=i.endDate;return!a||!s?!1:Lt(Zt(o,r),s)},n.isRangeEndQuarter=function(r){var i=n.props,o=i.day,a=i.startDate,s=i.endDate;return!a||!s?!1:Ns(Oi(o,r),s)},n.isInSelectingRangeMonth=function(r){var i,o=n.props,a=o.day,s=o.selectsStart,l=o.selectsEnd,c=o.selectsRange,d=o.startDate,u=o.endDate,f=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return!(s||l||c)||!f?!1:s&&u?Rs(f,u,r,a):l&&d||c&&d&&!u?Rs(d,f,r,a):!1},n.isSelectingMonthRangeStart=function(r){var i;if(!n.isInSelectingRangeMonth(r))return!1;var o=n.props,a=o.day,s=o.startDate,l=o.selectsStart,c=Zt(a,r),d=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return l?Lt(c,d):Lt(c,s)},n.isSelectingMonthRangeEnd=function(r){var i;if(!n.isInSelectingRangeMonth(r))return!1;var o=n.props,a=o.day,s=o.endDate,l=o.selectsEnd,c=o.selectsRange,d=Zt(a,r),u=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return l||c?Lt(d,u):Lt(d,s)},n.isInSelectingRangeQuarter=function(r){var i,o=n.props,a=o.day,s=o.selectsStart,l=o.selectsEnd,c=o.selectsRange,d=o.startDate,u=o.endDate,f=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return!(s||l||c)||!f?!1:s&&u?Fs(f,u,r,a):l&&d||c&&d&&!u?Fs(d,f,r,a):!1},n.isWeekInMonth=function(r){var i=n.props.day,o=xr(r,6);return Lt(r,i)||Lt(o,i)},n.isCurrentMonth=function(r,i){return pe(r)===pe(Ne())&&i===Mt(Ne())},n.isCurrentQuarter=function(r,i){return pe(r)===pe(Ne())&&i===ei(Ne())},n.isSelectedMonth=function(r,i,o){return Mt(o)===i&&pe(r)===pe(o)},n.isSelectMonthInList=function(r,i,o){return o.some(function(a){return n.isSelectedMonth(r,i,a)})},n.isSelectedQuarter=function(r,i,o){return ei(r)===i&&pe(r)===pe(o)},n.renderWeeks=function(){for(var r=[],i=n.props.fixedHeight,o=0,a=!1,s=Mr(Dr(n.props.day),n.props.locale,n.props.calendarStartDay),l=function(h){return n.props.showWeekPicker?Mr(h,n.props.locale,n.props.calendarStartDay):n.props.preSelection},c=function(h){return n.props.showWeekPicker?Mr(h,n.props.locale,n.props.calendarStartDay):n.props.selected},d=n.props.selected?c(n.props.selected):void 0,u=n.props.preSelection?l(n.props.preSelection):void 0;r.push(v.createElement(vC,ke({},n.props,{ariaLabelPrefix:n.props.weekAriaLabelPrefix,key:o,day:s,month:Mt(n.props.day),onDayClick:n.handleDayClick,onDayMouseEnter:n.handleDayMouseEnter,selected:d,preSelection:u,showWeekNumber:n.props.showWeekNumbers}))),!a;){o++,s=cs(s,1);var f=i&&o>=CC,p=!i&&!n.isWeekInMonth(s);if(f||p)if(n.props.peekNextMonth)a=!0;else break}return r},n.onMonthClick=function(r,i){var o=n.isMonthDisabledForLabelDate(i),a=o.isDisabled,s=o.labelDate;a||n.handleDayClick(Dr(s),r)},n.onMonthMouseEnter=function(r){var i=n.isMonthDisabledForLabelDate(r),o=i.isDisabled,a=i.labelDate;o||n.handleDayMouseEnter(Dr(a))},n.handleMonthNavigation=function(r,i){var o,a,s,l;(a=(o=n.props).setPreSelection)===null||a===void 0||a.call(o,i),(l=(s=n.MONTH_REFS[r])===null||s===void 0?void 0:s.current)===null||l===void 0||l.focus()},n.handleKeyboardNavigation=function(r,i,o){var a,s=n.props,l=s.selected,c=s.preSelection,d=s.setPreSelection,u=s.minDate,f=s.maxDate,p=s.showFourColumnMonthYearPicker,h=s.showTwoColumnMonthYearPicker;if(c){var g=R0(p,h),_=n.getVerticalOffset(g),m=(a=_u[g])===null||a===void 0?void 0:a.grid,b=function(S,M,P){var T,I,O=M,V=P;switch(S){case q.ArrowRight:O=gn(M,Vs),V=P===11?0:P+Vs;break;case q.ArrowLeft:O=Ai(M,Vs),V=P===0?11:P-Vs;break;case q.ArrowUp:O=Ai(M,_),V=!((T=m==null?void 0:m[0])===null||T===void 0)&&T.includes(P)?P+12-_:P-_;break;case q.ArrowDown:O=gn(M,_),V=!((I=m==null?void 0:m[m.length-1])===null||I===void 0)&&I.includes(P)?P-12+_:P+_;break}return{newCalculatedDate:O,newCalculatedMonth:V}},C=function(S,M,P){for(var T=40,I=S,O=!1,V=0,N=b(I,M,P),A=N.newCalculatedDate,j=N.newCalculatedMonth;!O;){if(V>=T){A=M,j=P;break}if(u&&A<u){I=q.ArrowRight;var Y=b(I,A,j);A=Y.newCalculatedDate,j=Y.newCalculatedMonth}if(f&&A>f){I=q.ArrowLeft;var Y=b(I,A,j);A=Y.newCalculatedDate,j=Y.newCalculatedMonth}if(sC(A,n.props)){var Y=b(I,A,j);A=Y.newCalculatedDate,j=Y.newCalculatedMonth}else O=!0;V++}return{newCalculatedDate:A,newCalculatedMonth:j}};if(i===q.Enter){n.isMonthDisabled(o)||(n.onMonthClick(r,o),d==null||d(l));return}var x=C(i,c,o),w=x.newCalculatedDate,k=x.newCalculatedMonth;switch(i){case q.ArrowRight:case q.ArrowLeft:case q.ArrowUp:case q.ArrowDown:n.handleMonthNavigation(k,w);break}}},n.getVerticalOffset=function(r){var i,o;return(o=(i=_u[r])===null||i===void 0?void 0:i.verticalNavigationOffset)!==null&&o!==void 0?o:0},n.onMonthKeyDown=function(r,i){var o=n.props,a=o.disabledKeyboardNavigation,s=o.handleOnMonthKeyDown,l=r.key;l!==q.Tab&&r.preventDefault(),a||n.handleKeyboardNavigation(r,l,i),s&&s(r)},n.onQuarterClick=function(r,i){var o=Oi(n.props.day,i);hu(o,n.props)||n.handleDayClick(_0(o),r)},n.onQuarterMouseEnter=function(r){var i=Oi(n.props.day,r);hu(i,n.props)||n.handleDayMouseEnter(_0(i))},n.handleQuarterNavigation=function(r,i){var o,a,s,l;n.isDisabled(i)||n.isExcluded(i)||((a=(o=n.props).setPreSelection)===null||a===void 0||a.call(o,i),(l=(s=n.QUARTER_REFS[r-1])===null||s===void 0?void 0:s.current)===null||l===void 0||l.focus())},n.onQuarterKeyDown=function(r,i){var o,a,s=r.key;if(!n.props.disabledKeyboardNavigation)switch(s){case q.Enter:n.onQuarterClick(r,i),(a=(o=n.props).setPreSelection)===null||a===void 0||a.call(o,n.props.selected);break;case q.ArrowRight:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===4?1:i+1,$c(n.props.preSelection,1));break;case q.ArrowLeft:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===1?4:i-1,zf(n.props.preSelection));break}},n.isMonthDisabledForLabelDate=function(r){var i,o=n.props,a=o.day,s=o.minDate,l=o.maxDate,c=o.excludeDates,d=o.includeDates,u=Zt(a,r);return{isDisabled:(i=(s||l||c||d)&&v0(u,n.props))!==null&&i!==void 0?i:!1,labelDate:u}},n.isMonthDisabled=function(r){var i=n.isMonthDisabledForLabelDate(r).isDisabled;return i},n.getMonthClassNames=function(r){var i=n.props,o=i.day,a=i.startDate,s=i.endDate,l=i.preSelection,c=i.monthClassName,d=c?c(Zt(o,r)):void 0,u=n.getSelection();return ft("react-datepicker__month-text","react-datepicker__month-".concat(r),d,{"react-datepicker__month-text--disabled":n.isMonthDisabled(r),"react-datepicker__month-text--selected":u?n.isSelectMonthInList(o,r,u):void 0,"react-datepicker__month-text--keyboard-selected":!n.props.disabledKeyboardNavigation&&l&&n.isSelectedMonth(o,r,l)&&!n.isMonthDisabled(r),"react-datepicker__month-text--in-selecting-range":n.isInSelectingRangeMonth(r),"react-datepicker__month-text--in-range":a&&s?Rs(a,s,r,o):void 0,"react-datepicker__month-text--range-start":n.isRangeStartMonth(r),"react-datepicker__month-text--range-end":n.isRangeEndMonth(r),"react-datepicker__month-text--selecting-range-start":n.isSelectingMonthRangeStart(r),"react-datepicker__month-text--selecting-range-end":n.isSelectingMonthRangeEnd(r),"react-datepicker__month-text--today":n.isCurrentMonth(o,r)})},n.getTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=Mt(n.props.preSelection),o=!n.props.disabledKeyboardNavigation&&r===i?"0":"-1";return o},n.getQuarterTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=ei(n.props.preSelection),o=!n.props.disabledKeyboardNavigation&&r===i?"0":"-1";return o},n.getAriaLabel=function(r){var i=n.props,o=i.chooseDayAriaLabelPrefix,a=o===void 0?"Choose":o,s=i.disabledDayAriaLabelPrefix,l=s===void 0?"Not available":s,c=i.day,d=i.locale,u=Zt(c,r),f=n.isDisabled(u)||n.isExcluded(u)?l:a;return"".concat(f," ").concat($e(u,"MMMM yyyy",d))},n.getQuarterClassNames=function(r){var i=n.props,o=i.day,a=i.startDate,s=i.endDate,l=i.selected,c=i.minDate,d=i.maxDate,u=i.excludeDates,f=i.includeDates,p=i.filterDate,h=i.preSelection,g=i.disabledKeyboardNavigation,_=(c||d||u||f||p)&&hu(Oi(o,r),n.props);return ft("react-datepicker__quarter-text","react-datepicker__quarter-".concat(r),{"react-datepicker__quarter-text--disabled":_,"react-datepicker__quarter-text--selected":l?n.isSelectedQuarter(o,r,l):void 0,"react-datepicker__quarter-text--keyboard-selected":!g&&h&&n.isSelectedQuarter(o,r,h)&&!_,"react-datepicker__quarter-text--in-selecting-range":n.isInSelectingRangeQuarter(r),"react-datepicker__quarter-text--in-range":a&&s?Fs(a,s,r,o):void 0,"react-datepicker__quarter-text--range-start":n.isRangeStartQuarter(r),"react-datepicker__quarter-text--range-end":n.isRangeEndQuarter(r)})},n.getMonthContent=function(r){var i=n.props,o=i.showFullMonthYearPicker,a=i.renderMonthContent,s=i.locale,l=i.day,c=b0(r,s),d=fu(r,s);return a?a(r,c,d,l):o?d:c},n.getQuarterContent=function(r){var i,o=n.props,a=o.renderQuarterContent,s=o.locale,l=aC(r,s);return(i=a==null?void 0:a(r,l))!==null&&i!==void 0?i:l},n.renderMonths=function(){var r,i=n.props,o=i.showTwoColumnMonthYearPicker,a=i.showFourColumnMonthYearPicker,s=i.day,l=i.selected,c=(r=_u[R0(a,o)])===null||r===void 0?void 0:r.grid;return c==null?void 0:c.map(function(d,u){return v.createElement("div",{className:"react-datepicker__month-wrapper",key:u},d.map(function(f,p){return v.createElement("div",{ref:n.MONTH_REFS[f],key:p,onClick:function(h){n.onMonthClick(h,f)},onKeyDown:function(h){N0(h)&&(h.preventDefault(),h.key=q.Enter),n.onMonthKeyDown(h,f)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onMonthMouseEnter(f)},onPointerEnter:n.props.usePointerEvent?function(){return n.onMonthMouseEnter(f)}:void 0,tabIndex:Number(n.getTabIndex(f)),className:n.getMonthClassNames(f),"aria-disabled":n.isMonthDisabled(f),role:"option","aria-label":n.getAriaLabel(f),"aria-current":n.isCurrentMonth(s,f)?"date":void 0,"aria-selected":l?n.isSelectedMonth(s,f,l):void 0},n.getMonthContent(f))}))})},n.renderQuarters=function(){var r=n.props,i=r.day,o=r.selected,a=[1,2,3,4];return v.createElement("div",{className:"react-datepicker__quarter-wrapper"},a.map(function(s,l){return v.createElement("div",{key:l,ref:n.QUARTER_REFS[l],role:"option",onClick:function(c){n.onQuarterClick(c,s)},onKeyDown:function(c){n.onQuarterKeyDown(c,s)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onQuarterMouseEnter(s)},onPointerEnter:n.props.usePointerEvent?function(){return n.onQuarterMouseEnter(s)}:void 0,className:n.getQuarterClassNames(s),"aria-selected":o?n.isSelectedQuarter(i,s,o):void 0,tabIndex:Number(n.getQuarterTabIndex(s)),"aria-current":n.isCurrentQuarter(i,s)?"date":void 0},n.getQuarterContent(s))}))},n.getClassNames=function(){var r=n.props,i=r.selectingDate,o=r.selectsStart,a=r.selectsEnd,s=r.showMonthYearPicker,l=r.showQuarterYearPicker,c=r.showWeekPicker;return ft("react-datepicker__month",{"react-datepicker__month--selecting-range":i&&(o||a)},{"react-datepicker__monthPicker":s},{"react-datepicker__quarterPicker":l},{"react-datepicker__weekPicker":c})},n}return t.prototype.getSelection=function(){var n=this.props,r=n.selected,i=n.selectedDates,o=n.selectsMultiple;if(o)return i;if(r)return[r]},t.prototype.render=function(){var n=this.props,r=n.showMonthYearPicker,i=n.showQuarterYearPicker,o=n.day,a=n.ariaLabelPrefix,s=a===void 0?"Month ":a,l=s?s.trim()+" ":"";return v.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(l).concat($e(o,"MMMM, yyyy",this.props.locale)),role:"listbox"},r?this.renderMonths():i?this.renderQuarters():this.renderWeeks())},t})(v.Component),xC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.isSelectedMonth=function(r){return n.props.month===r},n.renderOptions=function(){return n.props.monthNames.map(function(r,i){return v.createElement("div",{className:n.isSelectedMonth(i)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:r,onClick:n.onChange.bind(n,i),"aria-selected":n.isSelectedMonth(i)?"true":void 0},n.isSelectedMonth(i)?v.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",r)})},n.onChange=function(r){return n.props.onChange(r)},n.handleClickOutside=function(){return n.props.onCancel()},n}return t.prototype.render=function(){return v.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())},t})(v.Component),kC=as(xC),SC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(r){return r.map(function(i,o){return v.createElement("option",{key:i,value:o},i)})},n.renderSelectMode=function(r){return v.createElement("select",{value:n.props.month,className:"react-datepicker__month-select",onChange:function(i){return n.onChange(parseInt(i.target.value))}},n.renderSelectOptions(r))},n.renderReadView=function(r,i){return v.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:n.toggleDropdown},v.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),v.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},i[n.props.month]))},n.renderDropdown=function(r){return v.createElement(kC,ke({key:"dropdown"},n.props,{monthNames:r,onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(r){var i=n.state.dropdownVisible,o=[n.renderReadView(!i,r)];return i&&o.unshift(n.renderDropdown(r)),o},n.onChange=function(r){n.toggleDropdown(),r!==n.props.month&&n.props.onChange(r)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return t.prototype.render=function(){var n=this,r=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(o){return b0(o,n.props.locale)}:function(o){return fu(o,n.props.locale)}),i;switch(this.props.dropdownMode){case"scroll":i=this.renderScrollMode(r);break;case"select":i=this.renderSelectMode(r);break}return v.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},i)},t})(v.Component);function TC(e,t){for(var n=[],r=Dr(e),i=Dr(t);!Sr(r,i);)n.push(Ne(r)),r=gn(r,1);return n}var MC=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;return r.renderOptions=function(){return r.state.monthYearsList.map(function(i){var o=Zc(i),a=Bn(r.props.date,i)&&Lt(r.props.date,i);return v.createElement("div",{className:a?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:o,onClick:r.onChange.bind(r,o),"aria-selected":a?"true":void 0},a?v.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",$e(i,r.props.dateFormat,r.props.locale))})},r.onChange=function(i){return r.props.onChange(i)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:TC(r.props.minDate,r.props.maxDate)},r}return t.prototype.render=function(){var n=ft({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return v.createElement("div",{className:n},this.renderOptions())},t})(v.Component),DC=as(MC),LC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=Dr(n.props.minDate),i=Dr(n.props.maxDate),o=[];!Sr(r,i);){var a=Zc(r);o.push(v.createElement("option",{key:a,value:a},$e(r,n.props.dateFormat,n.props.locale))),r=gn(r,1)}return o},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return v.createElement("select",{value:Zc(Dr(n.props.date)),className:"react-datepicker__month-year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){var i=$e(n.props.date,n.props.dateFormat,n.props.locale);return v.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:n.toggleDropdown},v.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),v.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},i))},n.renderDropdown=function(){return v.createElement(DC,ke({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown();var i=Ne(r);Bn(n.props.date,i)&&Lt(n.props.date,i)||n.props.onChange(i)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return t.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return v.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},n)},t})(v.Component),PC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var r,i,o;n.list&&(n.list.scrollTop=(o=n.centerLi&&t.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-((i=(r=n.header)===null||r===void 0?void 0:r.clientHeight)!==null&&i!==void 0?i:0):n.list.clientHeight,n.centerLi))!==null&&o!==void 0?o:0)})},n.handleClick=function(r){var i,o;(n.props.minTime||n.props.maxTime)&&x0(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&w0(r,n.props)||(o=(i=n.props).onChange)===null||o===void 0||o.call(i,r)},n.isSelectedTime=function(r){return n.props.selected&&_C(n.props.selected,r)},n.isDisabledTime=function(r){return(n.props.minTime||n.props.maxTime)&&x0(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&w0(r,n.props)},n.liClasses=function(r){var i,o=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(r):void 0];return n.isSelectedTime(r)&&o.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(r)&&o.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(In(r)*3600+On(r)*60+cr(r))%(((i=n.props.intervals)!==null&&i!==void 0?i:t.defaultProps.intervals)*60)!==0&&o.push("react-datepicker__time-list-item--injected"),o.join(" ")},n.handleOnKeyDown=function(r,i){var o,a;r.key===q.Space&&(r.preventDefault(),r.key=q.Enter),(r.key===q.ArrowUp||r.key===q.ArrowLeft)&&r.target instanceof HTMLElement&&r.target.previousSibling&&(r.preventDefault(),r.target.previousSibling instanceof HTMLElement&&r.target.previousSibling.focus()),(r.key===q.ArrowDown||r.key===q.ArrowRight)&&r.target instanceof HTMLElement&&r.target.nextSibling&&(r.preventDefault(),r.target.nextSibling instanceof HTMLElement&&r.target.nextSibling.focus()),r.key===q.Enter&&n.handleClick(i),(a=(o=n.props).handleOnKeyDown)===null||a===void 0||a.call(o,r)},n.renderTimes=function(){for(var r,i=[],o=n.props.format?n.props.format:"p",a=(r=n.props.intervals)!==null&&r!==void 0?r:t.defaultProps.intervals,s=n.props.selected||n.props.openToDate||Ne(),l=As(s),c=n.props.injectTimes&&n.props.injectTimes.sort(function(_,m){return _.getTime()-m.getTime()}),d=60*mC(s),u=d/a,f=0;f<u;f++){var p=Hc(l,f*a);if(i.push(p),c){var h=hC(l,p,f,a,c);i=i.concat(h)}}var g=i.reduce(function(_,m){return m.getTime()<=s.getTime()?m:_},i[0]);return i.map(function(_){return v.createElement("li",{key:_.valueOf(),onClick:n.handleClick.bind(n,_),className:n.liClasses(_),ref:function(m){_===g&&(n.centerLi=m)},onKeyDown:function(m){n.handleOnKeyDown(m,_)},tabIndex:_===g?0:-1,role:"option","aria-selected":n.isSelectedTime(_)?"true":void 0,"aria-disabled":n.isDisabledTime(_)?"true":void 0},$e(_,o,n.props.locale))})},n}return Object.defineProperty(t,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time"}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},t.prototype.render=function(){var n=this,r,i=this.state.height;return v.createElement("div",{className:"react-datepicker__time-container ".concat(((r=this.props.todayButton)!==null&&r!==void 0?r:t.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},v.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(o){n.header=o}},v.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),v.createElement("div",{className:"react-datepicker__time"},v.createElement("div",{className:"react-datepicker__time-box"},v.createElement("ul",{className:"react-datepicker__time-list",ref:function(o){n.list=o},style:i?{height:i}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},t.calcCenterPosition=function(n,r){return r.offsetTop-(n/2-r.clientHeight/2)},t})(v.Component),j0=3,EC=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;return r.YEAR_REFS=Vn([],Array(r.props.yearItemNumber),!0).map(function(){return v.createRef()}),r.isDisabled=function(i){return Lr(i,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(i){return pu(i,{excludeDates:r.props.excludeDates})},r.selectingDate=function(){var i;return(i=r.props.selectingDate)!==null&&i!==void 0?i:r.props.preSelection},r.updateFocusOnPaginate=function(i){var o=function(){var a,s;(s=(a=r.YEAR_REFS[i])===null||a===void 0?void 0:a.current)===null||s===void 0||s.focus()};window.requestAnimationFrame(o)},r.handleYearClick=function(i,o){r.props.onDayClick&&r.props.onDayClick(i,o)},r.handleYearNavigation=function(i,o){var a,s,l,c,d=r.props,u=d.date,f=d.yearItemNumber;if(!(u===void 0||f===void 0)){var p=Pr(u,f).startPeriod;r.isDisabled(o)||r.isExcluded(o)||((s=(a=r.props).setPreSelection)===null||s===void 0||s.call(a,o),i-p<0?r.updateFocusOnPaginate(f-(p-i)):i-p>=f?r.updateFocusOnPaginate(Math.abs(f-(i-p))):(c=(l=r.YEAR_REFS[i-p])===null||l===void 0?void 0:l.current)===null||c===void 0||c.focus())}},r.isSameDay=function(i,o){return ye(i,o)},r.isCurrentYear=function(i){return i===pe(Ne())},r.isRangeStart=function(i){return r.props.startDate&&r.props.endDate&&Bn(Rn(Ne(),i),r.props.startDate)},r.isRangeEnd=function(i){return r.props.startDate&&r.props.endDate&&Bn(Rn(Ne(),i),r.props.endDate)},r.isInRange=function(i){return js(i,r.props.startDate,r.props.endDate)},r.isInSelectingRange=function(i){var o=r.props,a=o.selectsStart,s=o.selectsEnd,l=o.selectsRange,c=o.startDate,d=o.endDate;return!(a||s||l)||!r.selectingDate()?!1:a&&d?js(i,r.selectingDate(),d):s&&c||l&&c&&!d?js(i,c,r.selectingDate()):!1},r.isSelectingRangeStart=function(i){var o;if(!r.isInSelectingRange(i))return!1;var a=r.props,s=a.startDate,l=a.selectsStart,c=Rn(Ne(),i);return l?Bn(c,(o=r.selectingDate())!==null&&o!==void 0?o:null):Bn(c,s??null)},r.isSelectingRangeEnd=function(i){var o;if(!r.isInSelectingRange(i))return!1;var a=r.props,s=a.endDate,l=a.selectsEnd,c=a.selectsRange,d=Rn(Ne(),i);return l||c?Bn(d,(o=r.selectingDate())!==null&&o!==void 0?o:null):Bn(d,s??null)},r.isKeyboardSelected=function(i){if(!(r.props.date===void 0||r.props.selected==null||r.props.preSelection==null)){var o=r.props,a=o.minDate,s=o.maxDate,l=o.excludeDates,c=o.includeDates,d=o.filterDate,u=$o(Rn(r.props.date,i)),f=(a||s||l||c||d)&&mu(i,r.props);return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!ye(u,$o(r.props.selected))&&ye(u,$o(r.props.preSelection))&&!f}},r.onYearClick=function(i,o){var a=r.props.date;a!==void 0&&r.handleYearClick($o(Rn(a,o)),i)},r.onYearKeyDown=function(i,o){var a,s,l=i.key,c=r.props,d=c.date,u=c.yearItemNumber,f=c.handleOnKeyDown;if(l!==q.Tab&&i.preventDefault(),!r.props.disabledKeyboardNavigation)switch(l){case q.Enter:if(r.props.selected==null)break;r.onYearClick(i,o),(s=(a=r.props).setPreSelection)===null||s===void 0||s.call(a,r.props.selected);break;case q.ArrowRight:if(r.props.preSelection==null)break;r.handleYearNavigation(o+1,ar(r.props.preSelection,1));break;case q.ArrowLeft:if(r.props.preSelection==null)break;r.handleYearNavigation(o-1,Ni(r.props.preSelection,1));break;case q.ArrowUp:{if(d===void 0||u===void 0||r.props.preSelection==null)break;var p=Pr(d,u).startPeriod,h=j0,g=o-h;if(g<p){var _=u%h;o>=p&&o<p+_?h=_:h+=_,g=o-h}r.handleYearNavigation(g,Ni(r.props.preSelection,h));break}case q.ArrowDown:{if(d===void 0||u===void 0||r.props.preSelection==null)break;var m=Pr(d,u).endPeriod,h=j0,g=o+h;if(g>m){var _=u%h;o<=m&&o>m-_?h=_:h+=_,g=o+h}r.handleYearNavigation(g,ar(r.props.preSelection,h));break}}f&&f(i)},r.getYearClassNames=function(i){var o=r.props,a=o.date,s=o.minDate,l=o.maxDate,c=o.selected,d=o.excludeDates,u=o.includeDates,f=o.filterDate,p=o.yearClassName;return ft("react-datepicker__year-text","react-datepicker__year-".concat(i),a?p==null?void 0:p(Rn(a,i)):void 0,{"react-datepicker__year-text--selected":c?i===pe(c):void 0,"react-datepicker__year-text--disabled":(s||l||d||u||f)&&mu(i,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(i),"react-datepicker__year-text--range-start":r.isRangeStart(i),"react-datepicker__year-text--range-end":r.isRangeEnd(i),"react-datepicker__year-text--in-range":r.isInRange(i),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(i),"react-datepicker__year-text--today":r.isCurrentYear(i)})},r.getYearTabIndex=function(i){if(r.props.disabledKeyboardNavigation||r.props.preSelection==null)return"-1";var o=pe(r.props.preSelection);return i===o?"0":"-1"},r.getYearContainerClassNames=function(){var i=r.props,o=i.selectingDate,a=i.selectsStart,s=i.selectsEnd,l=i.selectsRange;return ft("react-datepicker__year",{"react-datepicker__year--selecting-range":o&&(a||s||l)})},r.getYearContent=function(i){return r.props.renderYearContent?r.props.renderYearContent(i):i},r}return t.prototype.render=function(){var n=this,r=[],i=this.props,o=i.date,a=i.yearItemNumber,s=i.onYearMouseEnter,l=i.onYearMouseLeave;if(o===void 0)return null;for(var c=Pr(o,a),d=c.startPeriod,u=c.endPeriod,f=function(g){r.push(v.createElement("div",{ref:p.YEAR_REFS[g-d],onClick:function(_){n.onYearClick(_,g)},onKeyDown:function(_){N0(_)&&(_.preventDefault(),_.key=q.Enter),n.onYearKeyDown(_,g)},tabIndex:Number(p.getYearTabIndex(g)),className:p.getYearClassNames(g),onMouseEnter:p.props.usePointerEvent?void 0:function(_){return s(_,g)},onPointerEnter:p.props.usePointerEvent?function(_){return s(_,g)}:void 0,onMouseLeave:p.props.usePointerEvent?void 0:function(_){return l(_,g)},onPointerLeave:p.props.usePointerEvent?function(_){return l(_,g)}:void 0,key:g,"aria-current":p.isCurrentYear(g)?"date":void 0},p.getYearContent(g)))},p=this,h=d;h<=u;h++)f(h);return v.createElement("div",{className:this.getYearContainerClassNames()},v.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},r))},t})(v.Component);function IC(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=pe(n)<=a),r&&s&&(s=pe(r)>=a),s&&i.push(a)}return i}var OC=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;r.renderOptions=function(){var s=r.props.year,l=r.state.yearsList.map(function(u){return v.createElement("div",{className:s===u?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:u,onClick:r.onChange.bind(r,u),"aria-selected":s===u?"true":void 0},s===u?v.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",u)}),c=r.props.minDate?pe(r.props.minDate):null,d=r.props.maxDate?pe(r.props.maxDate):null;return(!d||!r.state.yearsList.find(function(u){return u===d}))&&l.unshift(v.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},v.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!c||!r.state.yearsList.find(function(u){return u===c}))&&l.push(v.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},v.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),l},r.onChange=function(s){r.props.onChange(s)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(s){var l=r.state.yearsList.map(function(c){return c+s});r.setState({yearsList:l})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var i=n.yearDropdownItemNumber,o=n.scrollableYearDropdown,a=i||(o?10:5);return r.state={yearsList:IC(r.props.year,a,r.props.minDate,r.props.maxDate)},r.dropdownRef=v.createRef(),r}return t.prototype.componentDidMount=function(){var n=this.dropdownRef.current;if(n){var r=n.children?Array.from(n.children):null,i=r?r.find(function(o){return o.ariaSelected}):null;n.scrollTop=i&&i instanceof HTMLElement?i.offsetTop+(i.clientHeight-n.clientHeight)/2:(n.scrollHeight-n.clientHeight)/2}},t.prototype.render=function(){var n=ft({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return v.createElement("div",{className:n,ref:this.dropdownRef},this.renderOptions())},t})(v.Component),AC=as(OC),NC=(function(e){pt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=n.props.minDate?pe(n.props.minDate):1900,i=n.props.maxDate?pe(n.props.maxDate):2100,o=[],a=r;a<=i;a++)o.push(v.createElement("option",{key:a,value:a},a));return o},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return v.createElement("select",{value:n.props.year,className:"react-datepicker__year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){return v.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(i){return n.toggleDropdown(i)}},v.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),v.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},n.props.year))},n.renderDropdown=function(){return v.createElement(AC,ke({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown(),r!==n.props.year&&n.props.onChange(r)},n.toggleDropdown=function(r){n.setState({dropdownVisible:!n.state.dropdownVisible},function(){n.props.adjustDateOnChange&&n.handleYearChange(n.props.date,r)})},n.handleYearChange=function(r,i){n.onSelect(r,i),n.setOpen()},n.onSelect=function(r,i){n.props.onSelect&&n.props.onSelect(r,i)},n.setOpen=function(){n.props.setOpen&&n.props.setOpen(!0)},n}return t.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return v.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},n)},t})(v.Component),RC=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],jC=function(e){var t=(e.className||"").split(/\s+/);return RC.some(function(n){return t.indexOf(n)>=0})},FC=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;return r.monthContainer=void 0,r.handleClickOutside=function(i){r.props.onClickOutside(i)},r.setClickOutsideRef=function(){return r.containerRef.current},r.handleDropdownFocus=function(i){var o,a;jC(i.target)&&((a=(o=r.props).onDropdownFocus)===null||a===void 0||a.call(o,i))},r.getDateInView=function(){var i=r.props,o=i.preSelection,a=i.selected,s=i.openToDate,l=D0(r.props),c=L0(r.props),d=Ne(),u=s||a||o;return u||(l&&ri(d,l)?l:c&&Sr(d,c)?c:d)},r.increaseMonth=function(){r.setState(function(i){var o=i.date;return{date:gn(o,1)}},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState(function(i){var o=i.date;return{date:Ai(o,1)}},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(i,o,a){r.props.onSelect(i,o,a),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleDayMouseEnter=function(i){r.setState({selectingDate:i}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(i)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:void 0}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearMouseEnter=function(i,o){r.setState({selectingDate:Rn(Ne(),o)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(i,o)},r.handleYearMouseLeave=function(i,o){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(i,o)},r.handleYearChange=function(i){r.props.onYearChange&&(r.props.onYearChange(i),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(i),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleMonthChange=function(i){r.handleCustomMonthChange(i),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(i),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleCustomMonthChange=function(i){r.props.onMonthChange&&(r.props.onMonthChange(i),r.setState({isRenderAriaLiveMessage:!0}))},r.handleMonthYearChange=function(i){r.handleYearChange(i),r.handleMonthChange(i)},r.changeYear=function(i){r.setState(function(o){var a=o.date;return{date:Rn(a,Number(i))}},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(i){r.setState(function(o){var a=o.date;return{date:Zt(a,Number(i))}},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(i){r.setState(function(o){var a=o.date;return{date:Rn(Zt(a,Mt(i)),pe(i))}},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(i){i===void 0&&(i=r.state.date);var o=Mr(i,r.props.locale,r.props.calendarStartDay),a=[];return r.props.showWeekNumbers&&a.push(v.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(s){var l=xr(o,s),c=r.formatWeekday(l,r.props.locale),d=r.props.weekDayClassName?r.props.weekDayClassName(l):void 0;return v.createElement("div",{key:s,"aria-label":$e(l,"EEEE",r.props.locale),className:ft("react-datepicker__day-name",d)},c)}))},r.formatWeekday=function(i,o){return r.props.formatWeekDay?rC(i,r.props.formatWeekDay,o):r.props.useWeekdaysShort?oC(i,o):iC(i,o)},r.decreaseYear=function(){r.setState(function(i){var o,a=i.date;return{date:Ni(a,r.props.showYearPicker?(o=r.props.yearItemNumber)!==null&&o!==void 0?o:t.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.clearSelectingDate=function(){r.setState({selectingDate:void 0})},r.renderPreviousButton=function(){var i;if(!r.props.renderCustomHeader){var o;switch(!0){case r.props.showMonthYearPicker:o=T0(r.state.date,r.props);break;case r.props.showYearPicker:o=uC(r.state.date,r.props);break;case r.props.showQuarterYearPicker:o=lC(r.state.date,r.props);break;default:o=k0(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:t.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&o||r.props.showTimeSelectOnly)){var a=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],s=["react-datepicker__navigation","react-datepicker__navigation--previous"],l=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(l=r.decreaseYear),o&&r.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--previous--disabled"),l=void 0);var c=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,d=r.props,u=d.previousMonthButtonLabel,f=u===void 0?t.defaultProps.previousMonthButtonLabel:u,p=d.previousYearButtonLabel,h=p===void 0?t.defaultProps.previousYearButtonLabel:p,g=r.props,_=g.previousMonthAriaLabel,m=_===void 0?typeof f=="string"?f:"Previous Month":_,b=g.previousYearAriaLabel,C=b===void 0?typeof h=="string"?h:"Previous Year":b;return v.createElement("button",{type:"button",className:s.join(" "),onClick:l,onKeyDown:r.props.handleOnKeyDown,"aria-label":c?C:m},v.createElement("span",{className:a.join(" ")},c?h:f))}}},r.increaseYear=function(){r.setState(function(i){var o,a=i.date;return{date:ar(a,r.props.showYearPicker?(o=r.props.yearItemNumber)!==null&&o!==void 0?o:t.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){var i;if(!r.props.renderCustomHeader){var o;switch(!0){case r.props.showMonthYearPicker:o=M0(r.state.date,r.props);break;case r.props.showYearPicker:o=dC(r.state.date,r.props);break;case r.props.showQuarterYearPicker:o=cC(r.state.date,r.props);break;default:o=S0(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:t.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&o||r.props.showTimeSelectOnly)){var a=["react-datepicker__navigation","react-datepicker__navigation--next"],s=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];r.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var l=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(l=r.increaseYear),o&&r.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),l=void 0);var c=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,d=r.props,u=d.nextMonthButtonLabel,f=u===void 0?t.defaultProps.nextMonthButtonLabel:u,p=d.nextYearButtonLabel,h=p===void 0?t.defaultProps.nextYearButtonLabel:p,g=r.props,_=g.nextMonthAriaLabel,m=_===void 0?typeof f=="string"?f:"Next Month":_,b=g.nextYearAriaLabel,C=b===void 0?typeof h=="string"?h:"Next Year":b;return v.createElement("button",{type:"button",className:a.join(" "),onClick:l,onKeyDown:r.props.handleOnKeyDown,"aria-label":c?C:m},v.createElement("span",{className:s.join(" ")},c?h:f))}}},r.renderCurrentMonth=function(i){i===void 0&&(i=r.state.date);var o=["react-datepicker__current-month"];return r.props.showYearDropdown&&o.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&o.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&o.push("react-datepicker__current-month--hasMonthYearDropdown"),v.createElement("h2",{className:o.join(" ")},$e(i,r.props.dateFormat,r.props.locale))},r.renderYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showYearDropdown||i))return v.createElement(NC,ke({},t.defaultProps,r.props,{date:r.state.date,onChange:r.changeYear,year:pe(r.state.date)}))},r.renderMonthDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthDropdown||i))return v.createElement(SC,ke({},t.defaultProps,r.props,{month:Mt(r.state.date),onChange:r.changeMonth}))},r.renderMonthYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthYearDropdown||i))return v.createElement(LC,ke({},t.defaultProps,r.props,{date:r.state.date,onChange:r.changeMonthYear}))},r.handleTodayButtonClick=function(i){r.props.onSelect(g0(),i),r.props.setPreSelection&&r.props.setPreSelection(g0())},r.renderTodayButton=function(){if(!(!r.props.todayButton||r.props.showTimeSelectOnly))return v.createElement("div",{className:"react-datepicker__today-button",onClick:r.handleTodayButtonClick},r.props.todayButton)},r.renderDefaultHeader=function(i){var o=i.monthDate,a=i.i;return v.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(o),v.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(a!==0),r.renderMonthYearDropdown(a!==0),r.renderYearDropdown(a!==0)),v.createElement("div",{className:"react-datepicker__day-names"},r.header(o)))},r.renderCustomHeader=function(i){var o,a,s=i.monthDate,l=i.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var c=k0(r.state.date,r.props),d=S0(r.state.date,r.props),u=T0(r.state.date,r.props),f=M0(r.state.date,r.props),p=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return v.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},(a=(o=r.props).renderCustomHeader)===null||a===void 0?void 0:a.call(o,ke(ke({},r.state),{customHeaderCount:l,monthDate:s,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:c,nextMonthButtonDisabled:d,prevYearButtonDisabled:u,nextYearButtonDisabled:f})),p&&v.createElement("div",{className:"react-datepicker__day-names"},r.header(s)))},r.renderYearHeader=function(i){var o=i.monthDate,a=r.props,s=a.showYearPicker,l=a.yearItemNumber,c=l===void 0?t.defaultProps.yearItemNumber:l,d=Pr(o,c),u=d.startPeriod,f=d.endPeriod;return v.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(u," - ").concat(f):pe(o))},r.renderHeader=function(i){var o=i.monthDate,a=i.i,s=a===void 0?0:a,l={monthDate:o,i:s};switch(!0){case r.props.renderCustomHeader!==void 0:return r.renderCustomHeader(l);case(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker):return r.renderYearHeader(l);default:return r.renderDefaultHeader(l)}},r.renderMonths=function(){var i,o;if(!(r.props.showTimeSelectOnly||r.props.showYearPicker)){for(var a=[],s=(i=r.props.monthsShown)!==null&&i!==void 0?i:t.defaultProps.monthsShown,l=r.props.showPreviousMonths?s-1:0,c=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?ar(r.state.date,l):Ai(r.state.date,l),d=(o=r.props.monthSelectedIn)!==null&&o!==void 0?o:l,u=0;u<s;++u){var f=u-d+l,p=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?ar(c,f):gn(c,f),h="month-".concat(u),g=u<s-1,_=u>0;a.push(v.createElement("div",{key:h,ref:function(m){r.monthContainer=m??void 0},className:"react-datepicker__month-container"},r.renderHeader({monthDate:p,i:u}),v.createElement(wC,ke({},t.defaultProps,r.props,{ariaLabelPrefix:r.props.monthAriaLabelPrefix,day:p,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,handleOnMonthKeyDown:r.props.handleOnKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,orderInDisplay:u,selectingDate:r.state.selectingDate,monthShowsDuplicateDaysEnd:g,monthShowsDuplicateDaysStart:_}))))}return a}},r.renderYears=function(){if(!r.props.showTimeSelectOnly&&r.props.showYearPicker)return v.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),v.createElement(EC,ke({},t.defaultProps,r.props,{selectingDate:r.state.selectingDate,date:r.state.date,onDayClick:r.handleDayClick,clearSelectingDate:r.clearSelectingDate,onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave})))},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return v.createElement(PC,ke({},t.defaultProps,r.props,{onChange:r.props.onTimeChange,format:r.props.timeFormat,intervals:r.props.timeIntervals,monthRef:r.state.monthContainer}))},r.renderInputTimeSection=function(){var i=r.props.selected?new Date(r.props.selected):void 0,o=i&&dr(i)&&!!r.props.selected,a=o?"".concat(E0(i.getHours()),":").concat(E0(i.getMinutes())):"";if(r.props.showTimeInput)return v.createElement(gC,ke({},t.defaultProps,r.props,{date:i,timeString:a,onChange:r.props.onTimeChange}))},r.renderAriaLiveRegion=function(){var i,o=Pr(r.state.date,(i=r.props.yearItemNumber)!==null&&i!==void 0?i:t.defaultProps.yearItemNumber),a=o.startPeriod,s=o.endPeriod,l;return r.props.showYearPicker?l="".concat(a," - ").concat(s):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?l=pe(r.state.date):l="".concat(fu(Mt(r.state.date),r.props.locale)," ").concat(pe(r.state.date)),v.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&l)},r.renderChildren=function(){if(r.props.children)return v.createElement("div",{className:"react-datepicker__children-container"},r.props.children)},r.containerRef=v.createRef(),r.state={date:r.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},r}return Object.defineProperty(t,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:Ho}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var n=this;this.props.showTimeSelect&&(this.assignMonthContainer=(function(){n.setState({monthContainer:n.monthContainer})})())},t.prototype.componentDidUpdate=function(n){var r=this;if(this.props.preSelection&&(!ye(this.props.preSelection,n.preSelection)||this.props.monthSelectedIn!==n.monthSelectedIn)){var i=!Lt(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&r.handleCustomMonthChange(r.state.date)})}else this.props.openToDate&&!ye(this.props.openToDate,n.openToDate)&&this.setState({date:this.props.openToDate})},t.prototype.render=function(){var n=this.props.container||Gv;return v.createElement("div",{style:{display:"contents"},ref:this.containerRef},v.createElement(n,{className:ft("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},t})(v.Component),VC=function(e){var t=e.icon,n=e.className,r=n===void 0?"":n,i=e.onClick,o="react-datepicker__calendar-icon";return typeof t=="string"?v.createElement("i",{className:"".concat(o," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:i}):v.isValidElement(t)?v.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(o," ").concat(r),onClick:function(a){typeof t.props.onClick=="function"&&t.props.onClick(a),typeof i=="function"&&i(a)}}):v.createElement("svg",{className:"".concat(o," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},v.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},F0=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;return r.portalRoot=null,r.el=document.createElement("div"),r}return t.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},t.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},t.prototype.render=function(){return St.createPortal(this.props.children,this.el)},t})(v.Component),BC="[tabindex], a, button, input, select, textarea",HC=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&e.tabIndex!==-1},V0=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;return r.getTabChildren=function(){var i;return Array.prototype.slice.call((i=r.tabLoopRef.current)===null||i===void 0?void 0:i.querySelectorAll(BC),1,-1).filter(HC)},r.handleFocusStart=function(){var i=r.getTabChildren();i&&i.length>1&&i[i.length-1].focus()},r.handleFocusEnd=function(){var i=r.getTabChildren();i&&i.length>1&&i[0].focus()},r.tabLoopRef=v.createRef(),r}return t.prototype.render=function(){var n;return((n=this.props.enableTabLoop)!==null&&n!==void 0?n:t.defaultProps.enableTabLoop)?v.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},v.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,v.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},t.defaultProps={enableTabLoop:!0},t})(v.Component);function $C(e){var t=function(n){var r,i=typeof n.hidePopper=="boolean"?n.hidePopper:!0,o=v.useRef(null),a=qv(ke({open:!i,whileElementsMounted:s0,placement:n.popperPlacement,middleware:Vn([Nv({padding:15}),Av(10),Rv({element:o})],(r=n.popperModifiers)!==null&&r!==void 0?r:[],!0)},n.popperProps)),s=ke(ke({},n),{hidePopper:i,popperProps:ke(ke({},a),{arrowRef:o})});return v.createElement(e,ke({},s))};return t}var zC=(function(e){pt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this.props,r=n.className,i=n.wrapperClassName,o=n.hidePopper,a=o===void 0?t.defaultProps.hidePopper:o,s=n.popperComponent,l=n.targetComponent,c=n.enableTabLoop,d=n.popperOnKeyDown,u=n.portalId,f=n.portalHost,p=n.popperProps,h=n.showArrow,g=void 0;if(!a){var _=ft("react-datepicker-popper",r);g=v.createElement(V0,{enableTabLoop:c},v.createElement("div",{ref:p.refs.setFloating,style:p.floatingStyles,className:_,"data-placement":p.placement,onKeyDown:d},s,h&&v.createElement(Hv,{ref:p.arrowRef,context:p.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(g=v.createElement(this.props.popperContainer,{},g)),u&&!a&&(g=v.createElement(F0,{portalId:u,portalHost:f},g));var m=ft("react-datepicker-wrapper",i);return v.createElement(v.Fragment,null,v.createElement("div",{ref:p.refs.setReference,className:m},l),g)},t})(v.Component),WC=$C(zC),B0="react-datepicker-ignore-onclickoutside",YC=as(FC);function UC(e,t){return e&&t?Mt(e)!==Mt(t)||pe(e)!==pe(t):e!==t}var gu="Date input not valid.",ZC=(function(e){pt(t,e);function t(n){var r=e.call(this,n)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:Ne()},r.modifyHolidays=function(){var i;return(i=r.props.holidays)===null||i===void 0?void 0:i.reduce(function(o,a){var s=new Date(a.date);return dr(s)?Vn(Vn([],o,!0),[ke(ke({},a),{date:s})],!1):o},[])},r.calcInitialState=function(){var i,o=r.getPreSelection(),a=D0(r.props),s=L0(r.props),l=a&&ri(o,As(a))?a:s&&Sr(o,y0(s))?s:o;return{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(i=r.props.selectsRange?r.props.startDate:r.props.selected)!==null&&i!==void 0?i:l,highlightDates:P0(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.resetHiddenStatus=function(){r.setState(ke(ke({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(ke(ke({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})},r.setBlur=function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()},r.setOpen=function(i,o){o===void 0&&(o=!1),r.setState({open:i,preSelection:i&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:yu},function(){i||r.setState(function(a){return{focused:o?a.focused:!1}},function(){!o&&r.setBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return lr(r.state.preSelection)},r.isCalendarOpen=function(){return r.props.open===void 0?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(i){var o,a,s=r.state.wasHidden,l=s?r.state.open:!0;s&&r.resetHiddenStatus(),!r.state.preventFocus&&l&&((a=(o=r.props).onFocus)===null||a===void 0||a.call(o,i),!r.props.preventOpenOnFocus&&!r.props.readOnly&&r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(i){var o,a;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&((a=(o=r.props).onBlur)===null||a===void 0||a.call(o,i)),r.setState({focused:!1})},r.handleCalendarClickOutside=function(i){var o,a;r.props.inline||r.setOpen(!1),(a=(o=r.props).onClickOutside)===null||a===void 0||a.call(o,i),r.props.withPortal&&i.preventDefault()},r.handleChange=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=i[0];if(!(r.props.onChangeRaw&&(r.props.onChangeRaw.apply(r,i),!a||typeof a.isDefaultPrevented!="function"||a.isDefaultPrevented()))){r.setState({inputValue:(a==null?void 0:a.target)instanceof HTMLInputElement?a.target.value:null,lastPreSelectChange:qC});var s=r.props,l=s.dateFormat,c=l===void 0?t.defaultProps.dateFormat:l,d=s.strictParsing,u=d===void 0?t.defaultProps.strictParsing:d,f=Qv((a==null?void 0:a.target)instanceof HTMLInputElement?a.target.value:"",c,r.props.locale,u,r.props.minDate);r.props.showTimeSelectOnly&&r.props.selected&&f&&!ye(f,r.props.selected)&&(f=$b(r.props.selected,{hours:In(f),minutes:On(f),seconds:cr(f)})),(f||!((a==null?void 0:a.target)instanceof HTMLInputElement)||!(a!=null&&a.target.value))&&r.setSelected(f,a,!0)}},r.handleSelect=function(i,o,a){if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(o),r.setSelected(i,o,!1,a),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(i);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var s=r.props,l=s.startDate,c=s.endDate;l&&!c&&(r.props.swapRange||!A0(i,l))&&r.setOpen(!1)}},r.setSelected=function(i,o,a,s){var l,c=i;if(r.props.showYearPicker){if(c!==null&&mu(pe(c),r.props))return}else if(r.props.showMonthYearPicker){if(c!==null&&v0(c,r.props))return}else if(c!==null&&Lr(c,r.props))return;var d=r.props,u=d.onChange,f=d.selectsRange,p=d.startDate,h=d.endDate,g=d.selectsMultiple,_=d.selectedDates,m=d.minTime,b=d.swapRange;if(!li(r.props.selected,c)||r.props.allowSameDay||f||g)if(c!==null&&(r.props.selected&&(!a||!r.props.showTimeSelect&&!r.props.showTimeSelectOnly&&!r.props.showTimeInput)&&(c=du(c,{hour:In(r.props.selected),minute:On(r.props.selected),second:cr(r.props.selected)})),!a&&(r.props.showTimeSelect||r.props.showTimeSelectOnly)&&m&&(c=du(c,{hour:m.getHours(),minute:m.getMinutes(),second:m.getSeconds()})),r.props.inline||r.setState({preSelection:c}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:s})),f){var C=!p&&!h,x=p&&!h,w=p&&h;C?u?u([c,null],o):t.defaultProps.onChange:x&&(c===null?u?u([null,null],o):t.defaultProps.onChange:A0(c,p)?b?u?u([c,p],o):t.defaultProps.onChange:u?u([c,null],o):t.defaultProps.onChange:u?u([p,c],o):t.defaultProps.onChange),w&&(u?u([c,null],o):t.defaultProps.onChange)}else if(g){if(c!==null)if(!(_!=null&&_.length))u?u([c],o):t.defaultProps.onChange;else{var k=_.some(function(P){return ye(P,c)});if(k){var S=_.filter(function(P){return!ye(P,c)});u?u(S,o):t.defaultProps.onChange}else u?u(Vn(Vn([],_,!0),[c],!1),o):t.defaultProps.onChange}}else u?u(c,o):t.defaultProps.onChange;if(!a){var M=(l=r.props.onSelect)!==null&&l!==void 0?l:t.defaultProps.onSelect;M(c,o),r.setState({inputValue:null})}},r.setPreSelection=function(i){var o=lr(r.props.minDate),a=lr(r.props.maxDate),s=!0;if(i){var l=As(i);if(o&&a)s=zo(i,r.props.minDate,r.props.maxDate);else if(o){var c=As(r.props.minDate);s=Sr(i,c)||li(l,c)}else if(a){var d=y0(r.props.maxDate);s=ri(i,d)||li(l,d)}}s&&r.setState({preSelection:i})},r.toggleCalendar=function(){r.setOpen(!r.state.open)},r.handleTimeChange=function(i){var o;if(!(r.props.selectsRange||r.props.selectsMultiple)){var a=r.props.selected?r.props.selected:r.getPreSelection(),s=r.props.selected?i:du(a,{hour:In(i),minute:On(i)});r.setState({preSelection:s});var l=(o=r.props.onChange)!==null&&o!==void 0?o:t.defaultProps.onChange;l(s),r.props.shouldCloseOnSelect&&!r.props.showTimeInput&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}},r.onInputClick=function(){var i,o;!r.props.disabled&&!r.props.readOnly&&r.setOpen(!0),(o=(i=r.props).onInputClick)===null||o===void 0||o.call(i)},r.onInputKeyDown=function(i){var o,a,s,l,c;(a=(o=r.props).onKeyDown)===null||a===void 0||a.call(o,i);var d=i.key;if(!r.state.open&&!r.props.inline&&!r.props.preventOpenOnFocus){(d===q.ArrowDown||d===q.ArrowUp||d===q.Enter)&&r.onInputClick();return}if(r.state.open){if(d===q.ArrowDown||d===q.ArrowUp){i.preventDefault();var u=r.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':r.props.showFullMonthYearPicker||r.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',f=((s=r.calendar)===null||s===void 0?void 0:s.componentNode)instanceof Element&&r.calendar.componentNode.querySelector(u);f instanceof HTMLElement&&f.focus({preventScroll:!0});return}var p=Ne(r.state.preSelection);d===q.Enter?(i.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===yu?(r.handleSelect(p,i),!r.props.shouldCloseOnSelect&&r.setPreSelection(p)):r.setOpen(!1)):d===q.Escape?(i.preventDefault(),r.sendFocusBackToInput(),r.setOpen(!1)):d===q.Tab&&r.setOpen(!1),r.inputOk()||(c=(l=r.props).onInputError)===null||c===void 0||c.call(l,{code:1,msg:gu})}},r.onPortalKeyDown=function(i){var o=i.key;o===q.Escape&&(i.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))},r.onDayKeyDown=function(i){var o,a,s,l,c=r.props,d=c.minDate,u=c.maxDate,f=c.disabledKeyboardNavigation,p=c.showWeekPicker,h=c.shouldCloseOnSelect,g=c.locale,_=c.calendarStartDay,m=c.adjustDateOnChange,b=c.inline;if((a=(o=r.props).onKeyDown)===null||a===void 0||a.call(o,i),!f){var C=i.key,x=i.shiftKey,w=Ne(r.state.preSelection),k=function(V,N){var A=N;switch(V){case q.ArrowRight:A=p?cs(N,1):xr(N,1);break;case q.ArrowLeft:A=p?Wf(N):zb(N);break;case q.ArrowUp:A=Wf(N);break;case q.ArrowDown:A=cs(N,1);break;case q.PageUp:A=x?Ni(N,1):Ai(N,1);break;case q.PageDown:A=x?ar(N,1):gn(N,1);break;case q.Home:A=Mr(N,g,_);break;case q.End:A=nC(N);break}return A},S=function(V,N){for(var A=40,j=V,Y=!1,H=0,G=k(V,N);!Y;){if(H>=A){G=N;break}d&&G<d&&(j=q.ArrowRight,G=Lr(d,r.props)?k(j,G):d),u&&G>u&&(j=q.ArrowLeft,G=Lr(u,r.props)?k(j,G):u),Lr(G,r.props)?((j===q.PageUp||j===q.Home)&&(j=q.ArrowRight),(j===q.PageDown||j===q.End)&&(j=q.ArrowLeft),G=k(j,G)):Y=!0,H++}return G};if(C===q.Enter){i.preventDefault(),r.handleSelect(w,i),!h&&r.setPreSelection(w);return}else if(C===q.Escape){i.preventDefault(),r.setOpen(!1),r.inputOk()||(l=(s=r.props).onInputError)===null||l===void 0||l.call(s,{code:1,msg:gu});return}var M=null;switch(C){case q.ArrowLeft:case q.ArrowRight:case q.ArrowUp:case q.ArrowDown:case q.PageUp:case q.PageDown:case q.Home:case q.End:M=S(C,w);break}if(!M){r.props.onInputError&&r.props.onInputError({code:1,msg:gu});return}if(i.preventDefault(),r.setState({lastPreSelectChange:yu}),m&&r.setSelected(M),r.setPreSelection(M),b){var P=Mt(w),T=Mt(M),I=pe(w),O=pe(M);P!==T||I!==O?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}},r.onPopperKeyDown=function(i){var o=i.key;o===q.Escape&&(i.preventDefault(),r.sendFocusBackToInput())},r.onClearClick=function(i){i&&i.preventDefault&&i.preventDefault(),r.sendFocusBackToInput();var o=r.props,a=o.selectsRange,s=o.onChange;a?s?s([null,null],i):t.defaultProps.onChange():s?s(null,i):t.defaultProps.onChange(),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(i){typeof r.props.closeOnScroll=="boolean"&&r.props.closeOnScroll?(i.target===document||i.target===document.documentElement||i.target===document.body)&&r.setOpen(!1):typeof r.props.closeOnScroll=="function"&&r.props.closeOnScroll(i)&&r.setOpen(!1)},r.renderCalendar=function(){var i,o;return!r.props.inline&&!r.isCalendarOpen()?null:v.createElement(YC,ke({ref:function(a){r.calendar=a}},r.props,r.state,{setOpen:r.setOpen,dateFormat:(i=r.props.dateFormatCalendar)!==null&&i!==void 0?i:t.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:pC(r.modifyHolidays()),outsideClickIgnoreClass:B0,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:(o=r.props.dropdownMode)!==null&&o!==void 0?o:t.defaultProps.dropdownMode}),r.props.children)},r.renderAriaLiveRegion=function(){var i=r.props,o=i.dateFormat,a=o===void 0?t.defaultProps.dateFormat:o,s=i.locale,l=r.props.showTimeInput||r.props.showTimeSelect,c=l?"PPPPp":"PPPP",d;return r.props.selectsRange?d="Selected start date: ".concat(ln(r.props.startDate,{dateFormat:c,locale:s}),". ").concat(r.props.endDate?"End date: "+ln(r.props.endDate,{dateFormat:c,locale:s}):""):r.props.showTimeSelectOnly?d="Selected time: ".concat(ln(r.props.selected,{dateFormat:a,locale:s})):r.props.showYearPicker?d="Selected year: ".concat(ln(r.props.selected,{dateFormat:"yyyy",locale:s})):r.props.showMonthYearPicker?d="Selected month: ".concat(ln(r.props.selected,{dateFormat:"MMMM yyyy",locale:s})):r.props.showQuarterYearPicker?d="Selected quarter: ".concat(ln(r.props.selected,{dateFormat:"yyyy, QQQ",locale:s})):d="Selected date: ".concat(ln(r.props.selected,{dateFormat:c,locale:s})),v.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},d)},r.renderDateInput=function(){var i,o,a,s=ft(r.props.className,(i={},i[B0]=r.state.open,i)),l=r.props.customInput||v.createElement("input",{type:"text"}),c=r.props.customInputRef||"ref",d=r.props,u=d.dateFormat,f=u===void 0?t.defaultProps.dateFormat:u,p=d.locale,h=typeof r.props.value=="string"?r.props.value:typeof r.state.inputValue=="string"?r.state.inputValue:r.props.selectsRange?Xv(r.props.startDate,r.props.endDate,{dateFormat:f,locale:p}):r.props.selectsMultiple?Jv((a=r.props.selectedDates)!==null&&a!==void 0?a:[],{dateFormat:f,locale:p}):ln(r.props.selected,{dateFormat:f,locale:p});return v.cloneElement(l,(o={},o[c]=function(g){r.input=g},o.value=h,o.onBlur=r.handleBlur,o.onChange=r.handleChange,o.onClick=r.onInputClick,o.onFocus=r.handleFocus,o.onKeyDown=r.onInputKeyDown,o.id=r.props.id,o.name=r.props.name,o.form=r.props.form,o.autoFocus=r.props.autoFocus,o.placeholder=r.props.placeholderText,o.disabled=r.props.disabled,o.autoComplete=r.props.autoComplete,o.className=ft(l.props.className,s),o.title=r.props.title,o.readOnly=r.props.readOnly,o.required=r.props.required,o.tabIndex=r.props.tabIndex,o["aria-describedby"]=r.props.ariaDescribedBy,o["aria-invalid"]=r.props.ariaInvalid,o["aria-labelledby"]=r.props.ariaLabelledBy,o["aria-required"]=r.props.ariaRequired,o))},r.renderClearButton=function(){var i=r.props,o=i.isClearable,a=i.disabled,s=i.selected,l=i.startDate,c=i.endDate,d=i.clearButtonTitle,u=i.clearButtonClassName,f=u===void 0?"":u,p=i.ariaLabelClose,h=p===void 0?"Close":p,g=i.selectedDates;return o&&(s!=null||l!=null||c!=null||g!=null&&g.length)?v.createElement("button",{type:"button",className:ft("react-datepicker__close-icon",f,{"react-datepicker__close-icon--disabled":a}),disabled:a,"aria-label":h,onClick:r.onClearClick,title:d,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return Object.defineProperty(t,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Ho,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},t.prototype.componentDidUpdate=function(n,r){var i,o,a,s;n.inline&&UC(n.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&n.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),n.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:P0(this.props.highlightDates)}),!r.focused&&!li(n.selected,this.props.selected)&&this.setState({inputValue:null}),r.open!==this.state.open&&(r.open===!1&&this.state.open===!0&&((o=(i=this.props).onCalendarOpen)===null||o===void 0||o.call(i)),r.open===!0&&this.state.open===!1&&((s=(a=this.props).onCalendarClose)===null||s===void 0||s.call(a)))},t.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},t.prototype.renderInputContainer=function(){var n=this.props,r=n.showIcon,i=n.icon,o=n.calendarIconClassname,a=n.calendarIconClassName,s=n.toggleCalendarOnIconClick,l=this.state.open;return o&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),v.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&v.createElement(VC,ke({icon:i,className:ft(a,!a&&o,l&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},t.prototype.render=function(){var n=this.renderCalendar();if(this.props.inline)return n;if(this.props.withPortal){var r=this.state.open?v.createElement(V0,{enableTabLoop:this.props.enableTabLoop},v.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},n)):null;return this.state.open&&this.props.portalId&&(r=v.createElement(F0,ke({portalId:this.props.portalId},this.props),r)),v.createElement("div",null,this.renderInputContainer(),r)}return v.createElement(WC,ke({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:n,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},t})(v.Component),qC="input",yu="navigate";const $i={cntDatePicker:"_cntDatePicker_kphj_1",cntDatePicker_label:"_cntDatePicker_label_kphj_5",cntDatePicker_errorContent:"_cntDatePicker_errorContent_kphj_10",label:"_label_kphj_16",cntDatePicker_field:"_cntDatePicker_field_kphj_19",cntDatePicker__error:"_cntDatePicker__error_kphj_53"},GC=({disabled:e=!1,error:t="",isClearable:n=!1,label:r="",selectedDate:i,...o})=>{const{className:a,placeholder:s,minDate:l,maxDate:c,disabledNavigation:d,autoCloseOnSelect:u,excludeDates:f,includeDates:p,locale:h,calendarProps:g,onChange:_}=o,[m,b]=v.useState(i??null),C=v.useRef(),{theme:x}=ct();return y.jsxs("div",{className:E($i.cntDatePicker,t&&$i.cntDatePicker__error,a&&a),children:[r&&y.jsx(je,{type:"sm",className:$i.cntDatePicker_label,children:r}),y.jsx(ZC,{...g,wrapperClassName:E(x.mode==="dark"&&"react-datepicker-wrapper__dark"),calendarClassName:E(x.mode==="dark"&&"react-datepicker__dark"),ref:C,className:$i.cntDatePicker_field,selected:m,disabled:e,dateFormat:"yyyy/MM/dd",onChange:w=>{b(w),_==null||_(w)},isClearable:n,placeholderText:s,minDate:l,maxDate:c,showDisabledMonthNavigation:d,shouldCloseOnSelect:u,excludeDates:f,includeDates:p,locale:h,nextMonthButtonLabel:"",previousMonthButtonLabel:"",popperPlacement:"bottom-start"}),t&&y.jsxs("div",{className:$i.cntDatePicker_errorContent,children:[y.jsx(ie,{name:"circle-cross",size:"sm",filled:!0,color:"error-50"}),y.jsx(je,{type:"sm",className:$i.label,children:t})]})]})},bu={divider:"_divider_6zaq8_1",divider__vertical:"_divider__vertical_6zaq8_6",divider__disabled:"_divider__disabled_6zaq8_10"},H0=({className:e,disabled:t=!1,vertical:n=!1})=>y.jsx("div",{className:E(bu.divider,t&&bu.divider__disabled,n&&bu.divider__vertical,e&&e)});H0.prototype={avocado:"Divider"};const Bs={donutContent:"_donutContent_s0hs2_1",donutContent_chart:"_donutContent_chart_s0hs2_6",donutChartTotal:"_donutChartTotal_s0hs2_6",donutChartSection_1:"_donutChartSection_1_s0hs2_10",donutChartSection_2:"_donutChartSection_2_s0hs2_16",donutChartSection_3:"_donutChartSection_3_s0hs2_22",donutChartSection_4:"_donutChartSection_4_s0hs2_28"},$0=({className:e,data:t,height:n="300px",width:r="300px"})=>{const o=100/(t==null?void 0:t.reduce((p,h)=>p+(h==null?void 0:h.percentage),0)),a=50,s=50,l=40,c=45,d=2*Math.PI*l,u=-90;let f=0;return t.forEach(p=>{const h=o*p.percentage;p.itemRatio=h,p.angle=f*360/100+u,p.offset=d-d*h/100,p.filled=f,f+=h}),y.jsx("div",{className:E(Bs.donutContent,e&&e),style:{width:r,height:n},children:y.jsxs("svg",{className:Bs.donutContent_chart,height:n,width:r,viewBox:"0 0 100 100",children:[y.jsx("circle",{className:Bs.donutChartTotal,cx:a,cy:s,r:c}),t.map((p,h)=>y.jsxs("circle",{className:Bs[`donutChartSection_${h+1}`],cx:a,cy:s,r:l,strokeDasharray:d,strokeDashoffset:p.offset,transform:`rotate(${p.angle} ${a} ${s})`,children:[y.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:`${u} ${a} ${s}`,to:`${p.angle} ${a} ${s}`,dur:"1s"}),y.jsxs("title",{children:[p==null?void 0:p.name,": ",p==null?void 0:p.value]})]},h))]})})};$0.prototype={avocado:"Donut"};const Hs={donutLabels:"_donutLabels_6awpr_1",donutLabels_item:"_donutLabels_item_6awpr_6",donutLabels_item__1:"_donutLabels_item__1_6awpr_23",donutLabels_item__2:"_donutLabels_item__2_6awpr_27",donutLabels_item__3:"_donutLabels_item__3_6awpr_30",donutLabels_item__4:"_donutLabels_item__4_6awpr_33"},z0=({className:e,data:t})=>{const n=t.reduce((r,i)=>r+(i==null?void 0:i.value),0);return y.jsxs("section",{className:E(Hs.donutLabels,e&&e),children:[t==null?void 0:t.map((r,i)=>y.jsx("div",{className:E(Hs.donutLabels_item,Hs[`donutLabels_item__${i+1}`]),children:y.jsx("span",{children:r==null?void 0:r.value})},`donut-label-${i}`)),y.jsx("div",{className:Hs.donutLabels_item,children:y.jsx("span",{children:n})})]})};z0.prototype={avocado:"DonutLabels"};const zi={donutLegend:"_donutLegend_1vjiv_1",donutLegend_item:"_donutLegend_item_1vjiv_6",itemBox:"_itemBox_1vjiv_16",donutLegend_item__1:"_donutLegend_item__1_1vjiv_22",donutLegend_item__2:"_donutLegend_item__2_1vjiv_25",donutLegend_item__3:"_donutLegend_item__3_1vjiv_28",donutLegend_item__4:"_donutLegend_item__4_1vjiv_31"},W0=({className:e,data:t,totalLabel:n="Total",showTotal:r=!0})=>y.jsxs("section",{className:E(zi.donutLegend,e&&e),children:[r&&y.jsxs("div",{className:E(zi.donutLegend_item),children:[y.jsx("div",{className:zi.itemBox})," ",n]}),t==null?void 0:t.map((i,o)=>y.jsxs("div",{className:E(zi.donutLegend_item,zi[`donutLegend_item__${o+1}`]),children:[y.jsx("div",{className:zi.itemBox}),i==null?void 0:i.name]},`donut-legend-${o}`))]});W0.prototype={avocado:"DonutLegend"};const Zo=({ref:e,shouldIgnore:t,onClickOutside:n})=>{let r=!1;const i=l=>{e!=null&&e.current&&!(e!=null&&e.current.contains(l.target))&&!t&&(n==null||n())},o=()=>{document.addEventListener("mousedown",i)},a=()=>{document.removeEventListener("mousedown",i),r=!1},s=()=>{if(!r){o(),r=!0;return}a(),o()};v.useEffect(()=>{if(t){a();return}return s(),()=>{a()}},[e,t])},Er={dropdown:"_dropdown_iow1b_21",dropdown_button:"_dropdown_button_iow1b_25",chevronIcon:"_chevronIcon_iow1b_32",dropdown_button__ghost:"_dropdown_button__ghost_iow1b_35",dropdown_menu:"_dropdown_menu_iow1b_42",fadeInScale:"_fadeInScale_iow1b_1",menuItem:"_menuItem_iow1b_54",dropdownButton_menu__top:"_dropdownButton_menu__top_iow1b_77",dropdownButton_menu__bottom:"_dropdownButton_menu__bottom_iow1b_81",dropdown_menu__close:"_dropdown_menu__close_iow1b_85",fadeOutScale:"_fadeOutScale_iow1b_1"},Y0=({children:e,className:t,disabled:n,items:r,variant:i="primary"})=>{const[o,a]=v.useState(!1),[s,l]=v.useState(!1),[c,d]=v.useState("bottom"),u=v.useRef(null),f=()=>{if(!u.current)return;const m=u.current.getBoundingClientRect(),b=window.innerHeight-(m.y+m.height),C=m.y;d(C>b?"top":"bottom")};Zo({ref:u,onClickOutside:()=>h(!1)}),v.useEffect(()=>{f();const m=()=>f();window.addEventListener("resize",m),window.addEventListener("scroll",m);const b=C=>{u.current&&!u.current.contains(C.target)&&h(!1)};return document.addEventListener("mousedown",b),()=>{window.removeEventListener("resize",m),window.removeEventListener("scroll",m),document.removeEventListener("mousedown",b)}},[]);const p=()=>{s&&(l(!1),a(!1))},h=m=>{if(!m)return l(!0);a(!0),l(!1)},g={secondary:n?"neutral-50":"neutral-70",ghost:n?"neutral-50":"neutral-70"},_=n?"neutral-50":"gray-00";return y.jsxs("section",{className:E(Er.dropdown,t&&t),ref:u,children:[y.jsxs(Gr,{className:E(Er.dropdown_button,i==="ghost"&&Er.dropdown_button__ghost),disabled:n,variant:i,onClick:()=>h(!o),children:[e,y.jsx(ie,{color:g[i]||_,className:Er.chevronIcon,name:"chevron-down"})]}),!n&&o&&y.jsx("ul",{onAnimationEnd:p,className:E(Er.dropdown_menu,Er[`dropdownButton_menu__${c}`],s&&Er.dropdown_menu__close),children:r==null?void 0:r.map((m,b)=>y.jsx("li",{className:Er.menuItem,onClick:()=>{m.onClick(),h(!1)},children:m==null?void 0:m.label},`dropdown-menu-item-${b}`))})]})};Y0.prototype={avocado:"DropdownButton"};const fr={link:"_link_1tmxa_1",link__disabled:"_link__disabled_1tmxa_11",link_content:"_link_content_1tmxa_11",link_iconLeft:"_link_iconLeft_1tmxa_27",link_iconRight:"_link_iconRight_1tmxa_34",link__inverse:"_link__inverse_1tmxa_48",link__colored:"_link__colored_1tmxa_64",link__sm:"_link__sm_1tmxa_77",link__darkMode:"_link__darkMode_1tmxa_80"},U0=({children:e,className:t,disabled:n=!1,iconLeft:r,iconRight:i,inverse:o,size:a="md",colored:s=!1,onClick:l,...c})=>{const{theme:d}=ct();return y.jsxs("a",{...c,className:E(fr.link,n&&fr.link__disabled,o&&fr.link__inverse,a==="sm"&&fr.link__sm,s===!0&&fr.link__colored,(d==null?void 0:d.mode)==="dark"&&fr.link__darkMode,t&&t),onClick:()=>{n||l&&l()},tabIndex:n?-1:0,children:[r&&y.jsx(ie,{name:r,size:a,className:fr.link_iconLeft}),y.jsx("span",{className:fr.link_content,children:e}),i&&y.jsx(ie,{name:i,size:a,className:fr.link_iconRight})]})};U0.prototype={avocado:"Link"};const Z0={spinnerSvg:"_spinnerSvg_1i15l_1"},KC=({size:e="lg"})=>y.jsx(y.Fragment,{children:e==="lg"?y.jsxs("svg",{width:"104",height:"104",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Z0.spinnerSvg,children:[y.jsx("path",{d:"M100 52a48 48 0 1 1-96.001 0A48 48 0 0 1 100 52Z",stroke:"var(--color-primary-30)",strokeWidth:"8"}),y.jsx("path",{d:"M100 52a48 48 0 0 1-33.167 45.65",stroke:"var(--color-primary-50)",strokeWidth:"8",strokeLinecap:"round"})]}):y.jsxs("svg",{width:"36",height:"36",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Z0.spinnerSvg,children:[y.jsx("circle",{opacity:".5",cx:"18",cy:"18",r:"16",stroke:"var(--color-primary-30)",strokeWidth:"4"}),y.jsx("path",{d:"M18 34C9.163 34 2 26.837 2 18",stroke:"var(--color-primary-50)",strokeWidth:"4"})]})}),Wi={cntLoading:"_cntLoading_1suxv_1",cntLoading__inline:"_cntLoading__inline_1suxv_16",cntLoading_content:"_cntLoading_content_1suxv_20",title:"_title_1suxv_28",description:"_description_1suxv_31",cntLoading__darkMode:"_cntLoading__darkMode_1suxv_34"},QC=({className:e,description:t,title:n,size:r,inline:i})=>{const{theme:{mode:o}}=ct();return y.jsxs("section",{className:E(Wi.cntLoading,o==="dark"&&Wi.cntLoading__darkMode,i&&Wi.cntLoading__inline,e&&e),children:[y.jsx(KC,{size:r}),y.jsxs("div",{className:Wi.cntLoading_content,children:[n&&y.jsx(yt,{className:Wi.title,type:"h1",darkMode:!0,children:n}),t&&y.jsx(je,{className:Wi.description,darkMode:!0,type:"lg",weight:"medium",children:t})]})]})},Hn={menu:"_menu_1uv1z_21",menu_list:"_menu_list_1uv1z_27",fadeInScale:"_fadeInScale_1uv1z_1",menu_list__left:"_menu_list__left_1uv1z_39",menu_list__right:"_menu_list__right_1uv1z_42",menu_list__close:"_menu_list__close_1uv1z_45",fadeOutScale:"_fadeOutScale_1uv1z_1",listItem:"_listItem_1uv1z_48",listItem_icon:"_listItem_icon_1uv1z_79",menu__small:"_menu__small_1uv1z_85"},vu=({className:e="",closeOnClick:t=!1,disabled:n=!1,forceLightMode:r=!1,items:i=[],listOrigin:o="left",size:a="md",variant:s="secondary",onVisibleChange:l,triggerLabel:c})=>{const[d,u]=v.useState(!1),[f,p]=v.useState(!1),h=v.useRef(null);Zo({ref:h,onClickOutside(){_(!1)}});const g=()=>{f&&(p(!1),u(!1))},_=m=>{if(!m)return p(!0);u(!0),p(!1)};return v.useEffect(()=>{l==null||l(d)},[d]),y.jsxs("div",{ref:h,className:E(Hn.menu,a==="sm"&&Hn.menu__small,e&&e),children:[y.jsx(wr,{className:Hn.menu_trigger,"data-testid":"menu-trigger","aria-label":c,disabled:n,forceLightMode:r,icon:"dots",onClick:()=>{n||_(!d)},size:a,variant:s}),d&&y.jsx("div",{onAnimationEnd:g,"data-testid":"menu-list",className:E(Hn.menu_list,Hn==null?void 0:Hn[`menu_list__${o}`],f&&Hn.menu_list__close),children:i==null?void 0:i.map((m,b)=>y.jsxs("button",{className:Hn.listItem,onClick:C=>{var x;(x=m==null?void 0:m.onClick)==null||x.call(m,C),t&&_(!1)},children:[!!(m!=null&&m.icon)&&y.jsx(ie,{"data-testid":"menu-item-icon",className:Hn.listItem_icon,name:m.icon,size:"md"}),m==null?void 0:m.label]},b))})]})};vu.prototype={avocado:"Menu"};const Vt={modal__bodyOpen:"_modal__bodyOpen_f8vdo_1",modal:"_modal_f8vdo_1",modal__dark:"_modal__dark_f8vdo_15",modal_overlay:"_modal_overlay_f8vdo_15",modal__isOpen:"_modal__isOpen_f8vdo_18",fadeInOverlay:"_fadeInOverlay_f8vdo_1",content:"_content_f8vdo_21",modalEnter:"_modalEnter_f8vdo_1",modal__isClosing:"_modal__isClosing_f8vdo_24",fadeOutOverlay:"_fadeOutOverlay_f8vdo_1",modalLeave:"_modalLeave_f8vdo_1",modal__danger:"_modal__danger_f8vdo_30",modal__warning:"_modal__warning_f8vdo_33",modal__palette_1_50:"_modal__palette_1_50_f8vdo_36",modal__palette_2_50:"_modal__palette_2_50_f8vdo_39",modal__palette_3_50:"_modal__palette_3_50_f8vdo_42",modal__palette_4_50:"_modal__palette_4_50_f8vdo_45",modal__palette_5_50:"_modal__palette_5_50_f8vdo_48",modal__palette_6_50:"_modal__palette_6_50_f8vdo_51",modal__palette_7_50:"_modal__palette_7_50_f8vdo_54",modal__palette_8_50:"_modal__palette_8_50_f8vdo_57",modal__palette_9_50:"_modal__palette_9_50_f8vdo_60",modal__palette_10_50:"_modal__palette_10_50_f8vdo_63",modal__palette_11_50:"_modal__palette_11_50_f8vdo_66",modal__palette_12_50:"_modal__palette_12_50_f8vdo_69",modal__palette_13_50:"_modal__palette_13_50_f8vdo_72",modal__palette_14_50:"_modal__palette_14_50_f8vdo_75",modal__palette_15_50:"_modal__palette_15_50_f8vdo_78",modal__palette_16_50:"_modal__palette_16_50_f8vdo_81",modal__palette_17_50:"_modal__palette_17_50_f8vdo_84",modal__palette_18_50:"_modal__palette_18_50_f8vdo_87",modal_dialog:"_modal_dialog_f8vdo_100",content_header:"_content_header_f8vdo_120",content_header__bordered:"_content_header__bordered_f8vdo_127",closeBtn:"_closeBtn_f8vdo_131",content_body:"_content_body_f8vdo_139",content_footer:"_content_footer_f8vdo_142"},q0=e=>{const t=Vt.modal__bodyOpen;if(e){document.body.classList.add(t);return}document.body.classList.remove(t)},XC=({open:e,disableOverlayClick:t=!1,className:n,header:r,headerStatusColor:i,children:o,actions:a,onClose:s,headerBordered:l=!1})=>{const c=v.useRef(null),[d,u]=v.useState(e),[f,p]=v.useState(!1),{theme:h}=ct(),g=()=>{p(!0),s==null||s()},_=()=>{p(!1),u(!1)};Zo({ref:c,onClickOutside:()=>!t&&g()}),v.useEffect(()=>(e?(p(!1),u(!0)):!f&&d&&g(),q0(e),()=>{q0(!1)}),[e]);const m=[Vt.modal,n,d&&Vt.modal__isOpen,i&&Vt[`modal__${i}`],f&&Vt.modal__isClosing,h.mode==="dark"&&Vt.modal__dark];return d?y.jsxs("div",{className:E(...m),children:[y.jsx("div",{className:Vt.modal_overlay}),y.jsx("div",{className:Vt.modal_dialog,children:y.jsxs("div",{ref:c,className:Vt.content,onAnimationEndCapture:()=>f&&_(),children:[y.jsxs("header",{className:E(Vt.content_header,l&&Vt.content_header__bordered),children:[typeof r=="string"?y.jsx(yt,{type:"h2",children:r}):r,y.jsx("button",{type:"button",className:Vt.closeBtn,onClick:g,children:y.jsx(ie,{name:"close",color:"neutral-70"})})]}),o&&y.jsx("main",{className:Vt.content_body,children:o}),a&&y.jsx("footer",{className:Vt.content_footer,children:a})]})})]}):null},Gt={paginator:"_paginator_ccz8i_1",paginator__mobile:"_paginator__mobile_ccz8i_1",paginator_rowsPerPage:"_paginator_rowsPerPage_ccz8i_9",select:"_select_ccz8i_15",navPager:"_navPager_ccz8i_19",navPager_button:"_navPager_button_ccz8i_24",navPager_button__active:"_navPager_button__active_ccz8i_73",navPager_button__block:"_navPager_button__block_ccz8i_78",navPager_pageLabel:"_navPager_pageLabel_ccz8i_86",navPager_arrowRight:"_navPager_arrowRight_ccz8i_94"},ui=e=>{const{className:t,disabled:n,icon:r,onClick:i}=e;return y.jsx("button",{"data-testid":"pager-arrow",className:E(Gt.navPager_button,t&&t),onClick:()=>i(),disabled:n,children:y.jsx(ie,{name:r,color:n?"neutral-30":"neutral-70"})})};ui.prototype={avocado:"ArrowPager"};const JC=({page:e,hasNextPage:t,classname:n,onChange:r,onPageChange:i})=>{const o=a=>{a!==e&&a!==0&&(i==null||i(a),r==null||r(a))};return!t&&e<=1?null:y.jsx("section",{"data-testid":"pager-global","aria-label":"Pagination",className:E(Gt.paginator,n==null?void 0:n.global,"container_row","row__center"),children:y.jsxs("nav",{"data-testid":"pager-nav",className:E(Gt.navPager,n==null?void 0:n.nav),children:[y.jsx(ui,{icon:"chevron-left","aria-label":"Previous page",disabled:e===1,onClick:()=>o(e-1),className:n==null?void 0:n.arrow}),y.jsx(je,{type:"sm",weight:"medium",className:Gt.navPager_pageLabel,children:e}),y.jsx(ui,{icon:"chevron-right","aria-label":"Next page",disabled:!t,onClick:()=>o(e+1),className:E(n==null?void 0:n.arrow,Gt.navPager_arrowRight)})]})})},G0=e=>{const{className:t,disabled:n,page:r,currentPage:i,onClick:o,ellipsisAsNumber:a}=e;return y.jsx("button",{"data-testid":"pager-button","aria-label":r===a?"ellipsis":`Page ${r}`,disabled:n,className:E(Gt.navPager_button,i===r&&Gt.navPager_button__active,r===a&&Gt.navPager_button__block,t&&t),onClick:o,children:r!==a?r.toString():"..."})};G0.prototype={avocado:"ButtonPager"};function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function ew(e,t){if(di(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(di(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function K0(e){var t=ew(e,"string");return di(t)=="symbol"?t:t+""}function qo(e,t,n){return(t=K0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q0(Object(n),!0).forEach(function(r){qo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tw(e){if(Array.isArray(e))return e}function nw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function Cu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function X0(e,t){if(e){if(typeof e=="string")return Cu(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cu(e,t):void 0}}function rw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
764
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pr(e,t){return tw(e)||nw(e,t)||X0(e,t)||rw()}function iw(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function hr(e,t){if(e==null)return{};var n,r,i=iw(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ow=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function aw(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,a=o===void 0?null:o,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,d=e.onInputChange,u=e.onMenuClose,f=e.onMenuOpen,p=e.value,h=hr(e,ow),g=v.useState(s!==void 0?s:n),_=pr(g,2),m=_[0],b=_[1],C=v.useState(l!==void 0?l:i),x=pr(C,2),w=x[0],k=x[1],S=v.useState(p!==void 0?p:a),M=pr(S,2),P=M[0],T=M[1],I=v.useCallback(function(H,G){typeof c=="function"&&c(H,G),T(H)},[c]),O=v.useCallback(function(H,G){var D;typeof d=="function"&&(D=d(H,G)),b(D!==void 0?D:H)},[d]),V=v.useCallback(function(){typeof f=="function"&&f(),k(!0)},[f]),N=v.useCallback(function(){typeof u=="function"&&u(),k(!1)},[u]),A=s!==void 0?s:m,j=l!==void 0?l:w,Y=p!==void 0?p:P;return ae(ae({},h),{},{inputValue:A,menuIsOpen:j,onChange:I,onInputChange:O,onMenuClose:N,onMenuOpen:V,value:Y})}function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},le.apply(null,arguments)}function sw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K0(r.key),r)}}function lw(e,t,n){return t&&J0(e.prototype,t),n&&J0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wu(e,t){return wu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wu(e,t)}function cw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wu(e,t)}function $s(e){return $s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$s(e)}function ep(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ep=function(){return!!e})()}function uw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dw(e,t){if(t&&(di(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uw(e)}function fw(e){var t=ep();return function(){var n,r=$s(e);if(t){var i=$s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return dw(this,n)}}function pw(e){if(Array.isArray(e))return Cu(e)}function hw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mw(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
765
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xu(e){return pw(e)||hw(e)||X0(e)||mw()}function _w(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function gw(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var yw=(function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(gw(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=_w(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),bt="-ms-",zs="-moz-",Te="-webkit-",tp="comm",ku="rule",Su="decl",bw="@import",np="@keyframes",vw="@layer",Cw=Math.abs,Ws=String.fromCharCode,ww=Object.assign;function xw(e,t){return mt(e,0)^45?(((t<<2^mt(e,0))<<2^mt(e,1))<<2^mt(e,2))<<2^mt(e,3):0}function rp(e){return e.trim()}function kw(e,t){return(e=t.exec(e))?e[0]:e}function Me(e,t,n){return e.replace(t,n)}function Tu(e,t){return e.indexOf(t)}function mt(e,t){return e.charCodeAt(t)|0}function Go(e,t,n){return e.slice(t,n)}function $n(e){return e.length}function Mu(e){return e.length}function Ys(e,t){return t.push(e),e}function Sw(e,t){return e.map(t).join("")}var Us=1,Yi=1,ip=0,Bt=0,ot=0,Ui="";function Zs(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Us,column:Yi,length:a,return:""}}function Ko(e,t){return ww(Zs("",null,null,"",null,null,0),e,{length:-e.length},t)}function Tw(){return ot}function Mw(){return ot=Bt>0?mt(Ui,--Bt):0,Yi--,ot===10&&(Yi=1,Us--),ot}function Kt(){return ot=Bt<ip?mt(Ui,Bt++):0,Yi++,ot===10&&(Yi=1,Us++),ot}function zn(){return mt(Ui,Bt)}function qs(){return Bt}function Qo(e,t){return Go(Ui,e,t)}function Xo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function op(e){return Us=Yi=1,ip=$n(Ui=e),Bt=0,[]}function ap(e){return Ui="",e}function Gs(e){return rp(Qo(Bt-1,Du(e===91?e+2:e===40?e+1:e)))}function Dw(e){for(;(ot=zn())&&ot<33;)Kt();return Xo(e)>2||Xo(ot)>3?"":" "}function Lw(e,t){for(;--t&&Kt()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return Qo(e,qs()+(t<6&&zn()==32&&Kt()==32))}function Du(e){for(;Kt();)switch(ot){case e:return Bt;case 34:case 39:e!==34&&e!==39&&Du(ot);break;case 40:e===41&&Du(e);break;case 92:Kt();break}return Bt}function Pw(e,t){for(;Kt()&&e+ot!==57;)if(e+ot===84&&zn()===47)break;return"/*"+Qo(t,Bt-1)+"*"+Ws(e===47?e:Kt())}function Ew(e){for(;!Xo(zn());)Kt();return Qo(e,Bt)}function Iw(e){return ap(Ks("",null,null,null,[""],e=op(e),0,[0],e))}function Ks(e,t,n,r,i,o,a,s,l){for(var c=0,d=0,u=a,f=0,p=0,h=0,g=1,_=1,m=1,b=0,C="",x=i,w=o,k=r,S=C;_;)switch(h=b,b=Kt()){case 40:if(h!=108&&mt(S,u-1)==58){Tu(S+=Me(Gs(b),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:S+=Gs(b);break;case 9:case 10:case 13:case 32:S+=Dw(h);break;case 92:S+=Lw(qs()-1,7);continue;case 47:switch(zn()){case 42:case 47:Ys(Ow(Pw(Kt(),qs()),t,n),l);break;default:S+="/"}break;case 123*g:s[c++]=$n(S)*m;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:m==-1&&(S=Me(S,/\f/g,"")),p>0&&$n(S)-u&&Ys(p>32?lp(S+";",r,n,u-1):lp(Me(S," ","")+";",r,n,u-2),l);break;case 59:S+=";";default:if(Ys(k=sp(S,t,n,c,d,i,s,C,x=[],w=[],u),o),b===123)if(d===0)Ks(S,t,k,k,x,o,u,s,w);else switch(f===99&&mt(S,3)===110?100:f){case 100:case 108:case 109:case 115:Ks(e,k,k,r&&Ys(sp(e,k,k,0,0,i,s,C,i,x=[],u),w),i,w,u,s,r?x:w);break;default:Ks(S,k,k,k,[""],w,0,s,w)}}c=d=p=0,g=m=1,C=S="",u=a;break;case 58:u=1+$n(S),p=h;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&Mw()==125)continue}switch(S+=Ws(b),b*g){case 38:m=d>0?1:(S+="\f",-1);break;case 44:s[c++]=($n(S)-1)*m,m=1;break;case 64:zn()===45&&(S+=Gs(Kt())),f=zn(),d=u=$n(C=S+=Ew(qs())),b++;break;case 45:h===45&&$n(S)==2&&(g=0)}}return o}function sp(e,t,n,r,i,o,a,s,l,c,d){for(var u=i-1,f=i===0?o:[""],p=Mu(f),h=0,g=0,_=0;h<r;++h)for(var m=0,b=Go(e,u+1,u=Cw(g=a[h])),C=e;m<p;++m)(C=rp(g>0?f[m]+" "+b:Me(b,/&\f/g,f[m])))&&(l[_++]=C);return Zs(e,t,n,i===0?ku:s,l,c,d)}function Ow(e,t,n){return Zs(e,t,n,tp,Ws(Tw()),Go(e,2,-2),0)}function lp(e,t,n,r){return Zs(e,t,n,Su,Go(e,0,r),Go(e,r+1,-1),r)}function Zi(e,t){for(var n="",r=Mu(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Aw(e,t,n,r){switch(e.type){case vw:if(e.children.length)break;case bw:case Su:return e.return=e.return||e.value;case tp:return"";case np:return e.return=e.value+"{"+Zi(e.children,r)+"}";case ku:e.value=e.props.join(",")}return $n(n=Zi(e.children,r))?e.return=e.value+"{"+n+"}":""}function Nw(e){var t=Mu(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function Rw(e){return function(t){t.root||(t=t.return)&&e(t)}}function jw(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Fw=function(t,n,r){for(var i=0,o=0;i=o,o=zn(),i===38&&o===12&&(n[r]=1),!Xo(o);)Kt();return Qo(t,Bt)},Vw=function(t,n){var r=-1,i=44;do switch(Xo(i)){case 0:i===38&&zn()===12&&(n[r]=1),t[r]+=Fw(Bt-1,n,r);break;case 2:t[r]+=Gs(i);break;case 4:if(i===44){t[++r]=zn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ws(i)}while(i=Kt());return t},Bw=function(t,n){return ap(Vw(op(t),n))},cp=new WeakMap,Hw=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!cp.get(r))&&!i){cp.set(t,!0);for(var o=[],a=Bw(n,o),s=r.props,l=0,c=0;l<a.length;l++)for(var d=0;d<s.length;d++,c++)t.props[c]=o[l]?a[l].replace(/&\f/g,s[d]):s[d]+" "+a[l]}}},$w=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function up(e,t){switch(xw(e,t)){case 5103:return Te+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Te+e+zs+e+bt+e+e;case 6828:case 4268:return Te+e+bt+e+e;case 6165:return Te+e+bt+"flex-"+e+e;case 5187:return Te+e+Me(e,/(\w+).+(:[^]+)/,Te+"box-$1$2"+bt+"flex-$1$2")+e;case 5443:return Te+e+bt+"flex-item-"+Me(e,/flex-|-self/,"")+e;case 4675:return Te+e+bt+"flex-line-pack"+Me(e,/align-content|flex-|-self/,"")+e;case 5548:return Te+e+bt+Me(e,"shrink","negative")+e;case 5292:return Te+e+bt+Me(e,"basis","preferred-size")+e;case 6060:return Te+"box-"+Me(e,"-grow","")+Te+e+bt+Me(e,"grow","positive")+e;case 4554:return Te+Me(e,/([^-])(transform)/g,"$1"+Te+"$2")+e;case 6187:return Me(Me(Me(e,/(zoom-|grab)/,Te+"$1"),/(image-set)/,Te+"$1"),e,"")+e;case 5495:case 3959:return Me(e,/(image-set\([^]*)/,Te+"$1$`$1");case 4968:return Me(Me(e,/(.+:)(flex-)?(.*)/,Te+"box-pack:$3"+bt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Te+e+e;case 4095:case 3583:case 4068:case 2532:return Me(e,/(.+)-inline(.+)/,Te+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if($n(e)-1-t>6)switch(mt(e,t+1)){case 109:if(mt(e,t+4)!==45)break;case 102:return Me(e,/(.+:)(.+)-([^]+)/,"$1"+Te+"$2-$3$1"+zs+(mt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Tu(e,"stretch")?up(Me(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(mt(e,t+1)!==115)break;case 6444:switch(mt(e,$n(e)-3-(~Tu(e,"!important")&&10))){case 107:return Me(e,":",":"+Te)+e;case 101:return Me(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Te+(mt(e,14)===45?"inline-":"")+"box$3$1"+Te+"$2$3$1"+bt+"$2box$3")+e}break;case 5936:switch(mt(e,t+11)){case 114:return Te+e+bt+Me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Te+e+bt+Me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Te+e+bt+Me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Te+e+bt+e+e}return e}var zw=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Su:t.return=up(t.value,t.length);break;case np:return Zi([Ko(t,{value:Me(t.value,"@","@"+Te)})],i);case ku:if(t.length)return Sw(t.props,function(o){switch(kw(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zi([Ko(t,{props:[Me(o,/:(read-\w+)/,":"+zs+"$1")]})],i);case"::placeholder":return Zi([Ko(t,{props:[Me(o,/:(plac\w+)/,":"+Te+"input-$1")]}),Ko(t,{props:[Me(o,/:(plac\w+)/,":"+zs+"$1")]}),Ko(t,{props:[Me(o,/:(plac\w+)/,bt+"input-$1")]})],i)}return""})}},Ww=[zw],Yw=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var _=g.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||Ww,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var _=g.getAttribute("data-emotion").split(" "),m=1;m<_.length;m++)o[_[m]]=!0;s.push(g)});var l,c=[Hw,$w];{var d,u=[Aw,Rw(function(g){d.insert(g)})],f=Nw(c.concat(i,u)),p=function(_){return Zi(Iw(_),f)};l=function(_,m,b,C){d=b,p(_?_+"{"+m.styles+"}":m.styles),C&&(h.inserted[m.name]=!0)}}var h={key:n,sheet:new yw({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return h.sheet.hydrate(s),h},Lu={exports:{}},Pe={};/** @license React v16.13.1
766
766
  * react-is.production.min.js
767
767
  *
768
768
  * Copyright (c) Facebook, Inc. and its affiliates.
769
769
  *
770
770
  * This source code is licensed under the MIT license found in the
771
771
  * LICENSE file in the root directory of this source tree.
772
- */var dp;function Uw(){if(dp)return Pe;dp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function C(w){if(typeof w=="object"&&w!==null){var k=w.$$typeof;switch(k){case t:switch(w=w.type,w){case l:case c:case r:case o:case i:case d:return w;default:switch(w=w&&w.$$typeof,w){case s:case u:case h:case p:case a:return w;default:return k}}case n:return k}}}function x(w){return C(w)===c}return Pe.AsyncMode=l,Pe.ConcurrentMode=c,Pe.ContextConsumer=s,Pe.ContextProvider=a,Pe.Element=t,Pe.ForwardRef=u,Pe.Fragment=r,Pe.Lazy=h,Pe.Memo=p,Pe.Portal=n,Pe.Profiler=o,Pe.StrictMode=i,Pe.Suspense=d,Pe.isAsyncMode=function(w){return x(w)||C(w)===l},Pe.isConcurrentMode=x,Pe.isContextConsumer=function(w){return C(w)===s},Pe.isContextProvider=function(w){return C(w)===a},Pe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Pe.isForwardRef=function(w){return C(w)===u},Pe.isFragment=function(w){return C(w)===r},Pe.isLazy=function(w){return C(w)===h},Pe.isMemo=function(w){return C(w)===p},Pe.isPortal=function(w){return C(w)===n},Pe.isProfiler=function(w){return C(w)===o},Pe.isStrictMode=function(w){return C(w)===i},Pe.isSuspense=function(w){return C(w)===d},Pe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===o||w===i||w===d||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===h||w.$$typeof===p||w.$$typeof===a||w.$$typeof===s||w.$$typeof===u||w.$$typeof===_||w.$$typeof===m||w.$$typeof===b||w.$$typeof===g)},Pe.typeOf=C,Pe}var fp;function Zw(){return fp||(fp=1,Lu.exports=Uw()),Lu.exports}var Pu,pp;function qw(){if(pp)return Pu;pp=1;var e=Zw(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function a(h){return e.isMemo(h)?i:o[h.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function p(h,g,_){if(typeof g!="string"){if(f){var m=d(g);m&&m!==f&&p(h,m,_)}var b=l(g);c&&(b=b.concat(c(g)));for(var C=a(h),x=a(g),w=0;w<b.length;++w){var k=b[w];if(!n[k]&&!(_&&_[k])&&!(x&&x[k])&&!(C&&C[k])){var S=u(g,k);try{s(h,k,S)}catch{}}}}return h}return Pu=p,Pu}qw();var Gw=!0;function Kw(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var hp=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Gw===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Qw=function(t,n,r){hp(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Xw(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Jw={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ex=/[A-Z]|^ms/g,tx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mp=function(t){return t.charCodeAt(1)===45},_p=function(t){return t!=null&&typeof t!="boolean"},Eu=jw(function(e){return mp(e)?e:e.replace(ex,"-$&").toLowerCase()}),gp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(tx,function(r,i,o){return Wn={name:i,styles:o,next:Wn},i})}return Jw[t]!==1&&!mp(t)&&typeof n=="number"&&n!==0?n+"px":n};function Jo(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Wn={name:i.name,styles:i.styles,next:Wn},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Wn={name:a.name,styles:a.styles,next:Wn},a=a.next;var s=o.styles+";";return s}return nx(e,t,n)}case"function":{if(e!==void 0){var l=Wn,c=n(e);return Wn=l,Jo(e,t,c)}break}}var u=n;return u}function nx(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Jo(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;_p(s)&&(r+=Eu(o)+":"+gp(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var l=0;l<a.length;l++)_p(a[l])&&(r+=Eu(o)+":"+gp(o,a[l])+";");else{var c=Jo(e,t,a);switch(o){case"animation":case"animationName":{r+=Eu(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var yp=/label:\s*([^\s;{]+)\s*(;|$)/g,Wn;function bp(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Wn=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Jo(n,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Jo(n,t,e[s]),r){var l=o;i+=l[s]}yp.lastIndex=0;for(var c="",u;(u=yp.exec(i))!==null;)c+="-"+u[1];var d=Xw(i)+c;return{name:d,styles:i,next:Wn}}var rx=function(t){return t()},ix=R.useInsertionEffect?R.useInsertionEffect:!1,ox=ix||rx,vp=R.createContext(typeof HTMLElement<"u"?Yw({key:"css"}):null);vp.Provider;var ax=function(t){return v.forwardRef(function(n,r){var i=v.useContext(vp);return t(n,i,r)})},sx=R.createContext({}),Iu={}.hasOwnProperty,Ou="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lx=function(t,n){var r={};for(var i in n)Iu.call(n,i)&&(r[i]=n[i]);return r[Ou]=t,r},cx=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return hp(n,r,i),ox(function(){return Qw(n,r,i)}),null},ux=ax(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Ou],o=[r],a="";typeof e.className=="string"?a=Kw(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=bp(o,void 0,R.useContext(sx));a+=t.key+"-"+s.name;var l={};for(var c in e)Iu.call(e,c)&&c!=="css"&&c!==Ou&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),R.createElement(R.Fragment,null,R.createElement(cx,{cache:t,serialized:s,isStringTag:typeof i=="string"}),R.createElement(i,l))}),dx=ux,re=function(t,n){var r=arguments;if(n==null||!Iu.call(n,"css"))return R.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=dx,o[1]=lx(t,n);for(var a=2;a<i;a++)o[a]=r[a];return R.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(re||(re={}));function Au(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bp(t)}function fx(){var e=Au.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function px(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Nu=v.useLayoutEffect,hx=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Qs=function(){};function mx(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function _x(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(mx(e,a)));return o.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Cp=function(t){return Sx(t)?t.filter(Boolean):di(t)==="object"&&t!==null?[t]:[]},wp=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=hr(t,hx);return ae({},n)},Ke=function(t,n,r){var i=t.cx,o=t.getStyles,a=t.getClassNames,s=t.className;return{css:o(n,t),className:i(r??{},a(n,t),s)}};function Xs(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function gx(e){return Xs(e)?window.innerHeight:e.clientHeight}function xp(e){return Xs(e)?window.pageYOffset:e.scrollTop}function Js(e,t){if(Xs(e)){window.scrollTo(0,t);return}e.scrollTop=t}function yx(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function bx(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function el(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Qs,i=xp(e),o=t-i,a=10,s=0;function l(){s+=a;var c=bx(s,i,o,n);Js(e,c),s<n?window.requestAnimationFrame(l):r(e)}l()}function kp(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Js(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Js(e,Math.max(t.offsetTop-i,0))}function vx(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Sp(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Cx(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Tp=!1,wx={get passive(){return Tp=!0}},tl=typeof window<"u"?window:{};tl.addEventListener&&tl.removeEventListener&&(tl.addEventListener("p",Qs,wx),tl.removeEventListener("p",Qs,!1));var xx=Tp;function kx(e){return e!=null}function Sx(e){return Array.isArray(e)}function nl(e,t,n){return e?t:n}function tq(e){return e}function nq(e){return e}var Tx=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Object.entries(t).filter(function(a){var s=pr(a,1),l=s[0];return!r.includes(l)});return o.reduce(function(a,s){var l=pr(s,2),c=l[0],u=l[1];return a[c]=u,a},{})},Mx=["children","innerProps"],Dx=["children","innerProps"];function Lx(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=yx(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,g=f.top,_=n.offsetParent.getBoundingClientRect(),m=_.top,b=a?window.innerHeight:gx(l),C=xp(l),x=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),k=m-w,S=b-g,M=k+C,P=d-C-g,T=p-b+C+x,I=C+g-w,O=160;switch(i){case"auto":case"bottom":if(S>=h)return{placement:"bottom",maxHeight:t};if(P>=h&&!a)return o&&el(l,T,O),{placement:"bottom",maxHeight:t};if(!a&&P>=r||a&&S>=r){o&&el(l,T,O);var V=a?S-x:P-x;return{placement:"bottom",maxHeight:V}}if(i==="auto"||a){var N=t,A=a?k:M;return A>=r&&(N=Math.min(A-x-s,t)),{placement:"top",maxHeight:N}}if(i==="bottom")return o&&Js(l,T),{placement:"bottom",maxHeight:t};break;case"top":if(k>=h)return{placement:"top",maxHeight:t};if(M>=h&&!a)return o&&el(l,I,O),{placement:"top",maxHeight:t};if(!a&&M>=r||a&&k>=r){var j=t;return(!a&&M>=r||a&&k>=r)&&(j=a?k-w:M-w),o&&el(l,I,O),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}function Px(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Mp=function(t){return t==="auto"?"bottom":t},Ex=function(t,n){var r,i=t.placement,o=t.theme,a=o.borderRadius,s=o.spacing,l=o.colors;return ae((r={label:"menu"},qo(r,Px(i),"100%"),qo(r,"position","absolute"),qo(r,"width","100%"),qo(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},Dp=v.createContext(null),Ix=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=v.useContext(Dp)||{},u=c.setPortalPlacement,d=v.useRef(null),f=v.useState(i),p=pr(f,2),h=p[0],g=p[1],_=v.useState(null),m=pr(_,2),b=m[0],C=m[1],x=l.spacing.controlHeight;return Nu(function(){var w=d.current;if(w){var k=a==="fixed",S=s&&!k,M=Lx({maxHeight:i,menuEl:w,minHeight:r,placement:o,shouldScroll:S,isFixedPosition:k,controlHeight:x});g(M.maxHeight),C(M.placement),u==null||u(M.placement)}},[i,o,a,s,r,u,x]),n({ref:d,placerProps:ae(ae({},t),{},{placement:b||Mp(o),maxHeight:h})})},Ox=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return re("div",le({},Ke(t,"menu",{menu:!0}),{ref:r},i),n)},Ax=Ox,Nx=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return ae({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},Rx=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return re("div",le({},Ke(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},Lp=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return ae({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},jx=Lp,Fx=Lp,Vx=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=hr(t,Mx);return re("div",le({},Ke(ae(ae({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},Bx=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=hr(t,Dx);return re("div",le({},Ke(ae(ae({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},Hx=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},$x=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=v.useRef(null),c=v.useRef(null),u=v.useState(Mp(a)),d=pr(u,2),f=d[0],p=d[1],h=v.useMemo(function(){return{setPortalPlacement:p}},[]),g=v.useState(null),_=pr(g,2),m=_[0],b=_[1],C=v.useCallback(function(){if(i){var S=vx(i),M=s==="fixed"?0:window.pageYOffset,P=S[f]+M;(P!==(m==null?void 0:m.offset)||S.left!==(m==null?void 0:m.rect.left)||S.width!==(m==null?void 0:m.rect.width))&&b({offset:P,rect:S})}},[i,s,f,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);Nu(function(){C()},[C]);var x=v.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),i&&l.current&&(c.current=s0(i,l.current,C,{elementResize:"ResizeObserver"in window}))},[i,C]);Nu(function(){x()},[x]);var w=v.useCallback(function(S){l.current=S,x()},[x]);if(!n&&s!=="fixed"||!m)return null;var k=re("div",le({ref:w},Ke(ae(ae({},t),{},{offset:m.offset,position:s,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),r);return re(Dp.Provider,{value:h},n?St.createPortal(k,n):k)},zx=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Wx=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return re("div",le({},Ke(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},Yx=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return ae({alignItems:"center",display:i&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Ux=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return re("div",le({},Ke(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},Zx=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},qx=function(t){var n=t.children,r=t.innerProps;return re("div",le({},Ke(t,"indicatorsContainer",{indicators:!0}),r),n)},Pp,Gx=["size"],Kx=["innerProps","isRtl","size"],Qx={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ep=function(t){var n=t.size,r=hr(t,Gx);return re("svg",le({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Qx},r))},Ru=function(t){return re(Ep,le({size:20},t),re("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ip=function(t){return re(Ep,le({size:20},t),re("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Op=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return ae({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},Xx=Op,Jx=function(t){var n=t.children,r=t.innerProps;return re("div",le({},Ke(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||re(Ip,null))},ek=Op,tk=function(t){var n=t.children,r=t.innerProps;return re("div",le({},Ke(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||re(Ru,null))},nk=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return ae({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},rk=function(t){var n=t.innerProps;return re("span",le({},n,Ke(t,"indicatorSeparator",{"indicator-separator":!0})))},ik=fx(Pp||(Pp=px([`
772
+ */var dp;function Uw(){if(dp)return Pe;dp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function C(w){if(typeof w=="object"&&w!==null){var k=w.$$typeof;switch(k){case t:switch(w=w.type,w){case l:case c:case r:case o:case i:case u:return w;default:switch(w=w&&w.$$typeof,w){case s:case d:case h:case p:case a:return w;default:return k}}case n:return k}}}function x(w){return C(w)===c}return Pe.AsyncMode=l,Pe.ConcurrentMode=c,Pe.ContextConsumer=s,Pe.ContextProvider=a,Pe.Element=t,Pe.ForwardRef=d,Pe.Fragment=r,Pe.Lazy=h,Pe.Memo=p,Pe.Portal=n,Pe.Profiler=o,Pe.StrictMode=i,Pe.Suspense=u,Pe.isAsyncMode=function(w){return x(w)||C(w)===l},Pe.isConcurrentMode=x,Pe.isContextConsumer=function(w){return C(w)===s},Pe.isContextProvider=function(w){return C(w)===a},Pe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Pe.isForwardRef=function(w){return C(w)===d},Pe.isFragment=function(w){return C(w)===r},Pe.isLazy=function(w){return C(w)===h},Pe.isMemo=function(w){return C(w)===p},Pe.isPortal=function(w){return C(w)===n},Pe.isProfiler=function(w){return C(w)===o},Pe.isStrictMode=function(w){return C(w)===i},Pe.isSuspense=function(w){return C(w)===u},Pe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===o||w===i||w===u||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===h||w.$$typeof===p||w.$$typeof===a||w.$$typeof===s||w.$$typeof===d||w.$$typeof===_||w.$$typeof===m||w.$$typeof===b||w.$$typeof===g)},Pe.typeOf=C,Pe}var fp;function Zw(){return fp||(fp=1,Lu.exports=Uw()),Lu.exports}var Pu,pp;function qw(){if(pp)return Pu;pp=1;var e=Zw(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function a(h){return e.isMemo(h)?i:o[h.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,f=Object.prototype;function p(h,g,_){if(typeof g!="string"){if(f){var m=u(g);m&&m!==f&&p(h,m,_)}var b=l(g);c&&(b=b.concat(c(g)));for(var C=a(h),x=a(g),w=0;w<b.length;++w){var k=b[w];if(!n[k]&&!(_&&_[k])&&!(x&&x[k])&&!(C&&C[k])){var S=d(g,k);try{s(h,k,S)}catch{}}}}return h}return Pu=p,Pu}qw();var Gw=!0;function Kw(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var hp=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Gw===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Qw=function(t,n,r){hp(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Xw(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Jw={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ex=/[A-Z]|^ms/g,tx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mp=function(t){return t.charCodeAt(1)===45},_p=function(t){return t!=null&&typeof t!="boolean"},Eu=jw(function(e){return mp(e)?e:e.replace(ex,"-$&").toLowerCase()}),gp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(tx,function(r,i,o){return Wn={name:i,styles:o,next:Wn},i})}return Jw[t]!==1&&!mp(t)&&typeof n=="number"&&n!==0?n+"px":n};function Jo(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Wn={name:i.name,styles:i.styles,next:Wn},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Wn={name:a.name,styles:a.styles,next:Wn},a=a.next;var s=o.styles+";";return s}return nx(e,t,n)}case"function":{if(e!==void 0){var l=Wn,c=n(e);return Wn=l,Jo(e,t,c)}break}}var d=n;return d}function nx(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Jo(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;_p(s)&&(r+=Eu(o)+":"+gp(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var l=0;l<a.length;l++)_p(a[l])&&(r+=Eu(o)+":"+gp(o,a[l])+";");else{var c=Jo(e,t,a);switch(o){case"animation":case"animationName":{r+=Eu(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var yp=/label:\s*([^\s;{]+)\s*(;|$)/g,Wn;function bp(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Wn=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Jo(n,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Jo(n,t,e[s]),r){var l=o;i+=l[s]}yp.lastIndex=0;for(var c="",d;(d=yp.exec(i))!==null;)c+="-"+d[1];var u=Xw(i)+c;return{name:u,styles:i,next:Wn}}var rx=function(t){return t()},ix=R.useInsertionEffect?R.useInsertionEffect:!1,ox=ix||rx,vp=R.createContext(typeof HTMLElement<"u"?Yw({key:"css"}):null);vp.Provider;var ax=function(t){return v.forwardRef(function(n,r){var i=v.useContext(vp);return t(n,i,r)})},sx=R.createContext({}),Iu={}.hasOwnProperty,Ou="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lx=function(t,n){var r={};for(var i in n)Iu.call(n,i)&&(r[i]=n[i]);return r[Ou]=t,r},cx=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return hp(n,r,i),ox(function(){return Qw(n,r,i)}),null},ux=ax(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Ou],o=[r],a="";typeof e.className=="string"?a=Kw(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=bp(o,void 0,R.useContext(sx));a+=t.key+"-"+s.name;var l={};for(var c in e)Iu.call(e,c)&&c!=="css"&&c!==Ou&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),R.createElement(R.Fragment,null,R.createElement(cx,{cache:t,serialized:s,isStringTag:typeof i=="string"}),R.createElement(i,l))}),dx=ux,re=function(t,n){var r=arguments;if(n==null||!Iu.call(n,"css"))return R.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=dx,o[1]=lx(t,n);for(var a=2;a<i;a++)o[a]=r[a];return R.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(re||(re={}));function Au(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bp(t)}function fx(){var e=Au.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function px(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Nu=v.useLayoutEffect,hx=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Qs=function(){};function mx(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function _x(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(mx(e,a)));return o.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Cp=function(t){return Sx(t)?t.filter(Boolean):di(t)==="object"&&t!==null?[t]:[]},wp=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=hr(t,hx);return ae({},n)},Ke=function(t,n,r){var i=t.cx,o=t.getStyles,a=t.getClassNames,s=t.className;return{css:o(n,t),className:i(r??{},a(n,t),s)}};function Xs(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function gx(e){return Xs(e)?window.innerHeight:e.clientHeight}function xp(e){return Xs(e)?window.pageYOffset:e.scrollTop}function Js(e,t){if(Xs(e)){window.scrollTo(0,t);return}e.scrollTop=t}function yx(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function bx(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function el(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Qs,i=xp(e),o=t-i,a=10,s=0;function l(){s+=a;var c=bx(s,i,o,n);Js(e,c),s<n?window.requestAnimationFrame(l):r(e)}l()}function kp(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Js(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Js(e,Math.max(t.offsetTop-i,0))}function vx(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Sp(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Cx(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Tp=!1,wx={get passive(){return Tp=!0}},tl=typeof window<"u"?window:{};tl.addEventListener&&tl.removeEventListener&&(tl.addEventListener("p",Qs,wx),tl.removeEventListener("p",Qs,!1));var xx=Tp;function kx(e){return e!=null}function Sx(e){return Array.isArray(e)}function nl(e,t,n){return e?t:n}function tq(e){return e}function nq(e){return e}var Tx=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Object.entries(t).filter(function(a){var s=pr(a,1),l=s[0];return!r.includes(l)});return o.reduce(function(a,s){var l=pr(s,2),c=l[0],d=l[1];return a[c]=d,a},{})},Mx=["children","innerProps"],Dx=["children","innerProps"];function Lx(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=yx(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var d=l.getBoundingClientRect(),u=d.height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,g=f.top,_=n.offsetParent.getBoundingClientRect(),m=_.top,b=a?window.innerHeight:gx(l),C=xp(l),x=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),k=m-w,S=b-g,M=k+C,P=u-C-g,T=p-b+C+x,I=C+g-w,O=160;switch(i){case"auto":case"bottom":if(S>=h)return{placement:"bottom",maxHeight:t};if(P>=h&&!a)return o&&el(l,T,O),{placement:"bottom",maxHeight:t};if(!a&&P>=r||a&&S>=r){o&&el(l,T,O);var V=a?S-x:P-x;return{placement:"bottom",maxHeight:V}}if(i==="auto"||a){var N=t,A=a?k:M;return A>=r&&(N=Math.min(A-x-s,t)),{placement:"top",maxHeight:N}}if(i==="bottom")return o&&Js(l,T),{placement:"bottom",maxHeight:t};break;case"top":if(k>=h)return{placement:"top",maxHeight:t};if(M>=h&&!a)return o&&el(l,I,O),{placement:"top",maxHeight:t};if(!a&&M>=r||a&&k>=r){var j=t;return(!a&&M>=r||a&&k>=r)&&(j=a?k-w:M-w),o&&el(l,I,O),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}function Px(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Mp=function(t){return t==="auto"?"bottom":t},Ex=function(t,n){var r,i=t.placement,o=t.theme,a=o.borderRadius,s=o.spacing,l=o.colors;return ae((r={label:"menu"},qo(r,Px(i),"100%"),qo(r,"position","absolute"),qo(r,"width","100%"),qo(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},Dp=v.createContext(null),Ix=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=v.useContext(Dp)||{},d=c.setPortalPlacement,u=v.useRef(null),f=v.useState(i),p=pr(f,2),h=p[0],g=p[1],_=v.useState(null),m=pr(_,2),b=m[0],C=m[1],x=l.spacing.controlHeight;return Nu(function(){var w=u.current;if(w){var k=a==="fixed",S=s&&!k,M=Lx({maxHeight:i,menuEl:w,minHeight:r,placement:o,shouldScroll:S,isFixedPosition:k,controlHeight:x});g(M.maxHeight),C(M.placement),d==null||d(M.placement)}},[i,o,a,s,r,d,x]),n({ref:u,placerProps:ae(ae({},t),{},{placement:b||Mp(o),maxHeight:h})})},Ox=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return re("div",le({},Ke(t,"menu",{menu:!0}),{ref:r},i),n)},Ax=Ox,Nx=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return ae({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},Rx=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return re("div",le({},Ke(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},Lp=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return ae({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},jx=Lp,Fx=Lp,Vx=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=hr(t,Mx);return re("div",le({},Ke(ae(ae({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},Bx=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=hr(t,Dx);return re("div",le({},Ke(ae(ae({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},Hx=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},$x=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=v.useRef(null),c=v.useRef(null),d=v.useState(Mp(a)),u=pr(d,2),f=u[0],p=u[1],h=v.useMemo(function(){return{setPortalPlacement:p}},[]),g=v.useState(null),_=pr(g,2),m=_[0],b=_[1],C=v.useCallback(function(){if(i){var S=vx(i),M=s==="fixed"?0:window.pageYOffset,P=S[f]+M;(P!==(m==null?void 0:m.offset)||S.left!==(m==null?void 0:m.rect.left)||S.width!==(m==null?void 0:m.rect.width))&&b({offset:P,rect:S})}},[i,s,f,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);Nu(function(){C()},[C]);var x=v.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),i&&l.current&&(c.current=s0(i,l.current,C,{elementResize:"ResizeObserver"in window}))},[i,C]);Nu(function(){x()},[x]);var w=v.useCallback(function(S){l.current=S,x()},[x]);if(!n&&s!=="fixed"||!m)return null;var k=re("div",le({ref:w},Ke(ae(ae({},t),{},{offset:m.offset,position:s,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),r);return re(Dp.Provider,{value:h},n?St.createPortal(k,n):k)},zx=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Wx=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return re("div",le({},Ke(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},Yx=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return ae({alignItems:"center",display:i&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Ux=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return re("div",le({},Ke(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},Zx=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},qx=function(t){var n=t.children,r=t.innerProps;return re("div",le({},Ke(t,"indicatorsContainer",{indicators:!0}),r),n)},Pp,Gx=["size"],Kx=["innerProps","isRtl","size"],Qx={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ep=function(t){var n=t.size,r=hr(t,Gx);return re("svg",le({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Qx},r))},Ru=function(t){return re(Ep,le({size:20},t),re("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ip=function(t){return re(Ep,le({size:20},t),re("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Op=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return ae({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},Xx=Op,Jx=function(t){var n=t.children,r=t.innerProps;return re("div",le({},Ke(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||re(Ip,null))},ek=Op,tk=function(t){var n=t.children,r=t.innerProps;return re("div",le({},Ke(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||re(Ru,null))},nk=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return ae({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},rk=function(t){var n=t.innerProps;return re("span",le({},n,Ke(t,"indicatorSeparator",{"indicator-separator":!0})))},ik=fx(Pp||(Pp=px([`
773
773
  0%, 80%, 100% { opacity: 0; }
774
774
  40% { opacity: 1; }
775
- `]))),ok=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,s=o.spacing.baseUnit;return ae({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},ju=function(t){var n=t.delay,r=t.offset;return re("span",{css:Au({animation:"".concat(ik," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ak=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=hr(t,Kx);return re("div",le({},Ke(ae(ae({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),re(ju,{delay:0,offset:r}),re(ju,{delay:160,offset:!0}),re(ju,{delay:320,offset:!r}))},sk=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,s=o.borderRadius,l=o.spacing;return ae({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},lk=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return re("div",le({ref:o},Ke(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},ck=lk,uk=["data"],dk=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},fk=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,c=t.label,u=t.theme,d=t.selectProps;return re("div",le({},Ke(t,"group",{group:!0}),l),re(a,le({},s,{selectProps:d,theme:u,getStyles:i,getClassNames:o,cx:r}),c),re("div",null,n))},pk=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return ae({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},hk=function(t){var n=wp(t);n.data;var r=hr(n,uk);return re("div",le({},Ke(t,"groupHeading",{"group-heading":!0}),r))},mk=fk,_k=["innerRef","isDisabled","isHidden","inputClassName"],gk=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,s=o.colors;return ae(ae({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},yk),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},Ap={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},yk={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ae({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ap)},bk=function(t){return ae({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Ap)},vk=function(t){var n=t.cx,r=t.value,i=wp(t),o=i.innerRef,a=i.isDisabled,s=i.isHidden,l=i.inputClassName,c=hr(i,_k);return re("div",le({},Ke(t,"input",{"input-container":!0}),{"data-value":r||""}),re("input",le({className:n({input:!0},l),ref:o,style:bk(s),disabled:a},c)))},Ck=vk,wk=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return ae({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},xk=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return ae({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},kk=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,s=t.isFocused;return ae({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Np=function(t){var n=t.children,r=t.innerProps;return re("div",r,n)},Sk=Np,Tk=Np;function Mk(e){var t=e.children,n=e.innerProps;return re("div",le({role:"button"},n),t||re(Ru,{size:14}))}var Dk=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,c=r.Container,u=r.Label,d=r.Remove;return re(c,{data:i,innerProps:ae(ae({},Ke(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},re(u,{data:i,innerProps:ae({},Ke(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),re(d,{data:i,innerProps:ae(ae({},Ke(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},Lk=Dk,Pk=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return ae({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},Ek=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,s=t.innerProps;return re("div",le({},Ke(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},s),n)},Ik=Ek,Ok=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return ae({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Ak=function(t){var n=t.children,r=t.innerProps;return re("div",le({},Ke(t,"placeholder",{placeholder:!0}),r),n)},Nk=Ak,Rk=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return ae({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},jk=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return re("div",le({},Ke(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},Fk=jk,rl={ClearIndicator:tk,Control:ck,DropdownIndicator:Jx,DownChevron:Ip,CrossIcon:Ru,Group:mk,GroupHeading:hk,IndicatorsContainer:qx,IndicatorSeparator:rk,Input:Ck,LoadingIndicator:ak,Menu:Ax,MenuList:Rx,MenuPortal:$x,LoadingMessage:Bx,NoOptionsMessage:Vx,MultiValue:Lk,MultiValueContainer:Sk,MultiValueLabel:Tk,MultiValueRemove:Mk,Option:Ik,Placeholder:Nk,SelectContainer:Wx,SingleValue:Fk,ValueContainer:Ux},Vk=function(t){return ae(ae({},rl),t.components)},Rp=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Bk(e,t){return!!(e===t||Rp(e)&&Rp(t))}function Hk(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Bk(e[n],t[n]))return!1;return!0}function $k(e,t){t===void 0&&(t=Hk);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var a=e.apply(this,i);return n={lastResult:a,lastArgs:i,lastThis:this},a}return r.clear=function(){n=null},r}for(var zk={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Wk=function(t){return re("span",le({css:zk},t))},jp=Wk,Yk={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,o=t.context,a=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,o=t.labels,a=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,s=t.selectValue,l=t.isDisabled,c=t.isSelected,u=t.isAppleDevice,d=function(g,_){return g&&g.length?"".concat(g.indexOf(_)+1," of ").concat(g.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(d(s,r),".");if(n==="menu"&&u){var f=l?" disabled":"",p="".concat(c?" selected":"").concat(f);return"".concat(a).concat(p,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},Uk=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,h=l.isMulti,g=l.isOptionDisabled,_=l.isSearchable,m=l.menuIsOpen,b=l.options,C=l.screenReaderStatus,x=l.tabSelectsValue,w=l.isLoading,k=l["aria-label"],S=l["aria-live"],M=v.useMemo(function(){return ae(ae({},Yk),d||{})},[d]),P=v.useMemo(function(){var A="";if(n&&M.onChange){var j=n.option,Y=n.options,H=n.removedValue,G=n.removedValues,D=n.value,Ce=function(we){return Array.isArray(we)?null:we},he=H||j||Ce(D),L=he?f(he):"",De=Y||G||void 0,Je=De?De.map(f):[],ge=ae({isDisabled:he&&g(he,s),label:L,labels:Je},n);A=M.onChange(ge)}return A},[n,M,g,s,f]),T=v.useMemo(function(){var A="",j=r||i,Y=!!(r&&s&&s.includes(r));if(j&&M.onFocus){var H={focused:j,label:f(j),isDisabled:g(j,s),isSelected:Y,options:o,context:j===r?"menu":"value",selectValue:s,isAppleDevice:u};A=M.onFocus(H)}return A},[r,i,f,g,M,o,s,u]),I=v.useMemo(function(){var A="";if(m&&b.length&&!w&&M.onFilter){var j=C({count:o.length});A=M.onFilter({inputValue:p,resultsMessage:j})}return A},[o,p,m,M,b,C,w]),O=(n==null?void 0:n.action)==="initial-input-focus",V=v.useMemo(function(){var A="";if(M.guidance){var j=i?"value":m?"menu":"input";A=M.guidance({"aria-label":k,context:j,isDisabled:r&&g(r,s),isMulti:h,isSearchable:_,tabSelectsValue:x,isInitialFocus:O})}return A},[k,r,i,h,g,_,m,M,s,x,O]),N=re(v.Fragment,null,re("span",{id:"aria-selection"},P),re("span",{id:"aria-focused"},T),re("span",{id:"aria-results"},I),re("span",{id:"aria-guidance"},V));return re(v.Fragment,null,re(jp,{id:c},O&&N),re(jp,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!O&&N))},Zk=Uk,Fu=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],qk=new RegExp("["+Fu.map(function(e){return e.letters}).join("")+"]","g"),Fp={},Vu=0;Vu<Fu.length;Vu++)for(var Bu=Fu[Vu],Hu=0;Hu<Bu.letters.length;Hu++)Fp[Bu.letters[Hu]]=Bu.base;var Vp=function(t){return t.replace(qk,function(n){return Fp[n]})},Gk=$k(Vp),Bp=function(t){return t.replace(/^\s+|\s+$/g,"")},Kk=function(t){return"".concat(t.label," ").concat(t.value)},Qk=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=ae({ignoreCase:!0,ignoreAccents:!0,stringify:Kk,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,a=i.ignoreAccents,s=i.stringify,l=i.trim,c=i.matchFrom,u=l?Bp(r):r,d=l?Bp(s(n)):s(n);return o&&(u=u.toLowerCase(),d=d.toLowerCase()),a&&(u=Gk(u),d=Vp(d)),c==="start"?d.substr(0,u.length)===u:d.indexOf(u)>-1}},Xk=["innerRef"];function Jk(e){var t=e.innerRef,n=hr(e,Xk),r=Tx(n,"onExited","in","enter","exit","appear");return re("input",le({ref:t},r,{css:Au({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var eS=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function tS(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=v.useRef(!1),s=v.useRef(!1),l=v.useRef(0),c=v.useRef(null),u=v.useCallback(function(_,m){if(c.current!==null){var b=c.current,C=b.scrollTop,x=b.scrollHeight,w=b.clientHeight,k=c.current,S=m>0,M=x-w-C,P=!1;M>m&&a.current&&(r&&r(_),a.current=!1),S&&s.current&&(o&&o(_),s.current=!1),S&&m>M?(n&&!a.current&&n(_),k.scrollTop=x,P=!0,a.current=!0):!S&&-m>C&&(i&&!s.current&&i(_),k.scrollTop=0,P=!0,s.current=!0),P&&eS(_)}},[n,r,i,o]),d=v.useCallback(function(_){u(_,_.deltaY)},[u]),f=v.useCallback(function(_){l.current=_.changedTouches[0].clientY},[]),p=v.useCallback(function(_){var m=l.current-_.changedTouches[0].clientY;u(_,m)},[u]),h=v.useCallback(function(_){if(_){var m=xx?{passive:!1}:!1;_.addEventListener("wheel",d,m),_.addEventListener("touchstart",f,m),_.addEventListener("touchmove",p,m)}},[p,f,d]),g=v.useCallback(function(_){_&&(_.removeEventListener("wheel",d,!1),_.removeEventListener("touchstart",f,!1),_.removeEventListener("touchmove",p,!1))},[p,f,d]);return v.useEffect(function(){if(t){var _=c.current;return h(_),function(){g(_)}}},[t,h,g]),function(_){c.current=_}}var Hp=["boxSizing","height","overflow","paddingRight","position"],$p={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function zp(e){e.preventDefault()}function Wp(e){e.stopPropagation()}function Yp(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Up(){return"ontouchstart"in window||navigator.maxTouchPoints}var Zp=!!(typeof window<"u"&&window.document&&window.document.createElement),ea=0,qi={capture:!1,passive:!1};function nS(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=v.useRef({}),o=v.useRef(null),a=v.useCallback(function(l){if(Zp){var c=document.body,u=c&&c.style;if(r&&Hp.forEach(function(h){var g=u&&u[h];i.current[h]=g}),r&&ea<1){var d=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys($p).forEach(function(h){var g=$p[h];u&&(u[h]=g)}),u&&(u.paddingRight="".concat(p,"px"))}c&&Up()&&(c.addEventListener("touchmove",zp,qi),l&&(l.addEventListener("touchstart",Yp,qi),l.addEventListener("touchmove",Wp,qi))),ea+=1}},[r]),s=v.useCallback(function(l){if(Zp){var c=document.body,u=c&&c.style;ea=Math.max(ea-1,0),r&&ea<1&&Hp.forEach(function(d){var f=i.current[d];u&&(u[d]=f)}),c&&Up()&&(c.removeEventListener("touchmove",zp,qi),l&&(l.removeEventListener("touchstart",Yp,qi),l.removeEventListener("touchmove",Wp,qi)))}},[r]);return v.useEffect(function(){if(t){var l=o.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){o.current=l}}var rS=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},iS={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function oS(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=tS({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),u=nS({isEnabled:n}),d=function(p){c(p),u(p)};return re(v.Fragment,null,n&&re("div",{onClick:rS,css:iS}),t(d))}var aS={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},sS=function(t){var n=t.name,r=t.onFocus;return re("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:aS,value:"",onChange:function(){}})},lS=sS;function $u(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 cS(){return $u(/^iPhone/i)}function qp(){return $u(/^Mac/i)}function uS(){return $u(/^iPad/i)||qp()&&navigator.maxTouchPoints>1}function dS(){return cS()||uS()}function fS(){return qp()||dS()}var pS=function(t){return t.label},hS=function(t){return t.label},mS=function(t){return t.value},_S=function(t){return!!t.isDisabled},gS={clearIndicator:ek,container:zx,control:sk,dropdownIndicator:Xx,group:dk,groupHeading:pk,indicatorsContainer:Zx,indicatorSeparator:nk,input:gk,loadingIndicator:ok,loadingMessage:Fx,menu:Ex,menuList:Nx,menuPortal:Hx,multiValue:wk,multiValueLabel:xk,multiValueRemove:kk,noOptionsMessage:jx,option:Pk,placeholder:Ok,singleValue:Rk,valueContainer:Yx},yS={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},bS=4,Gp=4,vS=38,CS=Gp*2,wS={baseUnit:Gp,controlHeight:vS,menuGutter:CS},zu={borderRadius:bS,colors:yS,spacing:wS},xS={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Sp(),captureMenuScroll:!Sp(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Qk(),formatGroupLabel:pS,getOptionLabel:hS,getOptionValue:mS,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:_S,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Cx(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Kp(e,t,n,r){var i=t6(e,t,n),o=n6(e,t,n),a=e6(e,t),s=ol(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function il(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,s){return Kp(e,a,t,s)}).filter(function(a){return Jp(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Kp(e,n,t,r);return Jp(e,o)?o:void 0}).filter(kx)}function Qp(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,xu(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Xp(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,xu(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function kS(e,t){return Qp(il(e,t))}function Jp(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!i6(e)||!o)&&r6(e,{label:a,value:s,data:i},r)}function SS(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i<t.length)return t[i]}return null}function TS(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Wu=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},e6=function(t,n){return t.getOptionLabel(n)},ol=function(t,n){return t.getOptionValue(n)};function t6(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function n6(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=ol(e,t);return n.some(function(i){return ol(e,i)===r})}function r6(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var i6=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},MS=1,o6=(function(e){cw(n,e);var t=fw(n);function n(r){var i;if(sw(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=fS(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,c){var u=i.props,d=u.onChange,f=u.name;c.name=f,i.ariaOnChange(l,c),d(l,c)},i.setValue=function(l,c,u){var d=i.props,f=d.closeMenuOnSelect,p=d.isMulti,h=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:h}),f&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:c,option:u})},i.selectOption=function(l){var c=i.props,u=c.blurInputOnSelect,d=c.isMulti,f=c.name,p=i.state.selectValue,h=d&&i.isOptionSelected(l,p),g=i.isOptionDisabled(l,p);if(h){var _=i.getOptionValue(l);i.setValue(p.filter(function(m){return i.getOptionValue(m)!==_}),"deselect-option",l)}else if(!g)d?i.setValue([].concat(xu(p),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:f});return}u&&i.blurInput()},i.removeValue=function(l){var c=i.props.isMulti,u=i.state.selectValue,d=i.getOptionValue(l),f=u.filter(function(h){return i.getOptionValue(h)!==d}),p=nl(c,f,f[0]||null);i.onChange(p,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(nl(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,c=i.state.selectValue,u=c[c.length-1],d=c.slice(0,c.length-1),f=nl(l,d,d[0]||null);i.onChange(f,{action:"pop-value",removedValue:u})},i.getFocusedOptionId=function(l){return Wu(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return Xp(il(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return _x.apply(void 0,[i.props.classNamePrefix].concat(c))},i.getOptionLabel=function(l){return e6(i.props,l)},i.getOptionValue=function(l){return ol(i.props,l)},i.getStyles=function(l,c){var u=i.props.unstyled,d=gS[l](c,u);d.boxSizing="border-box";var f=i.props.styles[l];return f?f(d,c):d},i.getClassNames=function(l,c){var u,d;return(u=(d=i.props.classNames)[l])===null||u===void 0?void 0:u.call(d,c)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return Vk(i.props)},i.buildCategorizedOptions=function(){return il(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Qp(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,c){i.setState({ariaSelection:ae({value:l},c)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():c&&i.openMenu("first"):(c&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var c=i.props,u=c.isMulti,d=c.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!u}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Xs(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(i.initialTouchX=u.clientX,i.initialTouchY=u.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var d=Math.abs(u.clientX-i.initialTouchX),f=Math.abs(u.clientY-i.initialTouchY),p=5;i.userIsDragging=d>p||f>p}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var c=i.props.inputValue,u=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(u,{action:"input-change",prevInputValue:c}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var c=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:c}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var c=i.getFocusableOptions(),u=c.indexOf(l);i.setState({focusedOption:l,focusedOptionId:u>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return i6(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var c=i.props,u=c.isMulti,d=c.backspaceRemovesValue,f=c.escapeClearsValue,p=c.inputValue,h=c.isClearable,g=c.isDisabled,_=c.menuIsOpen,m=c.onKeyDown,b=c.tabSelectsValue,C=c.openMenuOnFocus,x=i.state,w=x.focusedOption,k=x.focusedValue,S=x.selectValue;if(!g&&!(typeof m=="function"&&(m(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||p)return;i.focusValue("previous");break;case"ArrowRight":if(!u||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(k)i.removeValue(k);else{if(!d)return;u?i.popValue():h&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!_||!b||!w||C&&i.isOptionSelected(w,S))return;i.selectOption(w);break;case"Enter":if(l.keyCode===229)break;if(_){if(!w||i.isComposing)return;i.selectOption(w);break}return;case"Escape":_?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):h&&f&&i.clearValue();break;case" ":if(p)return;if(!_){i.openMenu("first");break}if(!w)return;i.selectOption(w);break;case"ArrowUp":_?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":_?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!_)return;i.focusOption("pageup");break;case"PageDown":if(!_)return;i.focusOption("pagedown");break;case"Home":if(!_)return;i.focusOption("first");break;case"End":if(!_)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++MS),i.state.selectValue=Cp(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),s=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[s],i.state.focusedOptionId=Wu(o,a[s])}return i}return lw(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&kp(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,s=o.menuIsOpen,l=this.state.isFocused;(l&&!a&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(kp(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,s=a.selectValue,l=a.isFocused,c=this.buildFocusableOptions(),u=i==="first"?0:c.length-1;if(!this.props.isMulti){var d=c.indexOf(s[0]);d>-1&&(u=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[u],focusedOptionId:this.getFocusedOptionId(c[u])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,s=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var c=a.length-1,u=-1;if(a.length){switch(i){case"previous":l===0?u=0:l===-1?u=c:u=l-1;break;case"next":l>-1&&l<c&&(u=l+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:a[u]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,c=s.indexOf(a);a||(c=-1),i==="up"?l=c>0?c-1:s.length-1:i==="down"?l=(c+1)%s.length:i==="pageup"?(l=c-o,l<0&&(l=0)):i==="pagedown"?(l=c+o,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(zu):ae(ae({},zu),this.props.theme):zu})},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,c=this.selectOption,u=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,h=d.options,g=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:s,getValue:l,hasValue:g,isMulti:f,isRtl:p,options:h,selectOption:c,selectProps:d,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return t6(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return n6(this.props,i,o)}},{key:"filterOption",value:function(i,o){return r6(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,s=i.inputId,l=i.inputValue,c=i.tabIndex,u=i.form,d=i.menuIsOpen,f=i.required,p=this.getComponents(),h=p.Input,g=this.state,_=g.inputIsHidden,m=g.ariaSelection,b=this.commonProps,C=s||this.getElementId("input"),x=ae(ae(ae({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(m==null?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?R.createElement(h,le({},b,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:o,isHidden:_,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:l},x)):R.createElement(Jk,le({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Qs,onFocus:this.onInputFocus,disabled:o,tabIndex:c,inputMode:"none",form:u,value:""},x))})},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,s=o.MultiValueContainer,l=o.MultiValueLabel,c=o.MultiValueRemove,u=o.SingleValue,d=o.Placeholder,f=this.commonProps,p=this.props,h=p.controlShouldRenderValue,g=p.isDisabled,_=p.isMulti,m=p.inputValue,b=p.placeholder,C=this.state,x=C.selectValue,w=C.focusedValue,k=C.isFocused;if(!this.hasValue()||!h)return m?null:R.createElement(d,le({},f,{key:"placeholder",isDisabled:g,isFocused:k,innerProps:{id:this.getElementId("placeholder")}}),b);if(_)return x.map(function(M,P){var T=M===w,I="".concat(i.getOptionLabel(M),"-").concat(i.getOptionValue(M));return R.createElement(a,le({},f,{components:{Container:s,Label:l,Remove:c},isFocused:T,isDisabled:g,key:I,index:P,removeProps:{onClick:function(){return i.removeValue(M)},onTouchEnd:function(){return i.removeValue(M)},onMouseDown:function(V){V.preventDefault()}},data:M}),i.formatOptionLabel(M,"value"))});if(m)return null;var S=x[0];return R.createElement(u,le({},f,{data:S,isDisabled:g}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,u=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||c)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(o,le({},a,{innerProps:d,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,u=this.state.isFocused;if(!o||!c)return null;var d={"aria-hidden":"true"};return R.createElement(o,le({},a,{innerProps:d,isDisabled:l,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var s=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return R.createElement(a,le({},s,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(o,le({},a,{innerProps:c,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,s=o.GroupHeading,l=o.Menu,c=o.MenuList,u=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,p=o.Option,h=this.commonProps,g=this.state.focusedOption,_=this.props,m=_.captureMenuScroll,b=_.inputValue,C=_.isLoading,x=_.loadingMessage,w=_.minMenuHeight,k=_.maxMenuHeight,S=_.menuIsOpen,M=_.menuPlacement,P=_.menuPosition,T=_.menuPortalTarget,I=_.menuShouldBlockScroll,O=_.menuShouldScrollIntoView,V=_.noOptionsMessage,N=_.onMenuScrollToTop,A=_.onMenuScrollToBottom;if(!S)return null;var j=function(L,De){var Je=L.type,ge=L.data,Re=L.isDisabled,we=L.isSelected,rt=L.label,it=L.value,Le=g===ge,ne=Re?void 0:function(){return i.onOptionHover(ge)},Ie=Re?void 0:function(){return i.selectOption(ge)},We="".concat(i.getElementId("option"),"-").concat(De),lt={id:We,onClick:Ie,onMouseMove:ne,onMouseOver:ne,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:we};return R.createElement(p,le({},h,{innerProps:lt,data:ge,isDisabled:Re,isSelected:we,key:We,label:rt,type:Je,value:it,isFocused:Le,innerRef:Le?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(L.data,"menu"))},Y;if(this.hasOptions())Y=this.getCategorizedOptions().map(function(he){if(he.type==="group"){var L=he.data,De=he.options,Je=he.index,ge="".concat(i.getElementId("group"),"-").concat(Je),Re="".concat(ge,"-heading");return R.createElement(a,le({},h,{key:ge,data:L,options:De,Heading:s,headingProps:{id:Re,data:he.data},label:i.formatGroupLabel(he.data)}),he.options.map(function(we){return j(we,"".concat(Je,"-").concat(we.index))}))}else if(he.type==="option")return j(he,"".concat(he.index))});else if(C){var H=x({inputValue:b});if(H===null)return null;Y=R.createElement(d,h,H)}else{var G=V({inputValue:b});if(G===null)return null;Y=R.createElement(f,h,G)}var D={minMenuHeight:w,maxMenuHeight:k,menuPlacement:M,menuPosition:P,menuShouldScrollIntoView:O},Ce=R.createElement(Ix,le({},h,D),function(he){var L=he.ref,De=he.placerProps,Je=De.placement,ge=De.maxHeight;return R.createElement(l,le({},h,D,{innerRef:L,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:C,placement:Je}),R.createElement(oS,{captureEnabled:m,onTopArrive:N,onBottomArrive:A,lockEnabled:I},function(Re){return R.createElement(c,le({},h,{innerRef:function(rt){i.getMenuListRef(rt),Re(rt)},innerProps:{role:"listbox","aria-multiselectable":h.isMulti,id:i.getElementId("listbox")},isLoading:C,maxHeight:ge,focusedOption:g}),Y)}))});return T||P==="fixed"?R.createElement(u,le({},h,{appendTo:T,controlElement:this.controlRef,menuPlacement:M,menuPosition:P}),Ce):Ce}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,s=o.isDisabled,l=o.isMulti,c=o.name,u=o.required,d=this.state.selectValue;if(u&&!this.hasValue()&&!s)return R.createElement(lS,{name:c,onFocus:this.onValueInputFocus});if(!(!c||s))if(l)if(a){var f=d.map(function(g){return i.getOptionValue(g)}).join(a);return R.createElement("input",{name:c,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(g,_){return R.createElement("input",{key:"i-".concat(_),name:c,type:"hidden",value:i.getOptionValue(g)})}):R.createElement("input",{name:c,type:"hidden",value:""});return R.createElement("div",null,p)}else{var h=d[0]?this.getOptionValue(d[0]):"";return R.createElement("input",{name:c,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,s=o.focusedOption,l=o.focusedValue,c=o.isFocused,u=o.selectValue,d=this.getFocusableOptions();return R.createElement(Zk,le({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:c,selectValue:u,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,c=this.props,u=c.className,d=c.id,f=c.isDisabled,p=c.menuIsOpen,h=this.state.isFocused,g=this.commonProps=this.getCommonProps();return R.createElement(s,le({},g,{className:u,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:h}),this.renderLiveRegion(),R.createElement(o,le({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:h,menuIsOpen:p}),R.createElement(l,le({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),R.createElement(a,le({},g,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,c=o.ariaSelection,u=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,p=i.options,h=i.value,g=i.menuIsOpen,_=i.inputValue,m=i.isMulti,b=Cp(h),C={};if(a&&(h!==a.value||p!==a.options||g!==a.menuIsOpen||_!==a.inputValue)){var x=g?kS(i,b):[],w=g?Xp(il(i,b),"".concat(f,"-option")):[],k=s?SS(o,b):null,S=TS(o,x),M=Wu(w,S);C={selectValue:b,focusedOption:S,focusedOptionId:M,focusableOptionsWithIds:w,focusedValue:k,clearFocusValueOnUpdate:!1}}var P=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},T=c,I=u&&d;return u&&!I&&(T={value:nl(m,b,b[0]||null),options:b,action:"initial-input-focus"},I=!d),(c==null?void 0:c.action)==="initial-input-focus"&&(T=null),ae(ae(ae({},C),P),{},{prevProps:i,ariaSelection:T,prevWasFocused:I})}}]),n})(v.Component);o6.defaultProps=xS;var DS=v.forwardRef(function(e,t){var n=aw(e);return R.createElement(o6,le({ref:t},n))}),a6=DS;const s6=e=>y.jsx(rl.ClearIndicator,{...e,children:y.jsx(ie,{name:"close"})}),l6=e=>{var t;return y.jsx(rl.DropdownIndicator,{...e,children:y.jsx(ie,{className:E("buttonDropdownIndicator",((t=e==null?void 0:e.selectProps)==null?void 0:t.menuIsOpen)&&"buttonDropdownIndicator__open"),name:"chevron-down"})})},c6=e=>{const{message:t}=e;return y.jsxs("div",{className:"errorIndicator",children:[y.jsx(ie,{name:"circle-cross",size:"sm",color:"error-50"}),y.jsx("p",{className:"errorIndicator_message",children:t})]})},u6=({id:e})=>{const[t]=v.useState(()=>e||"select_"+Math.random().toFixed(5).slice(2));return{uniqueId:t,handleCloseSelect:()=>{const r=document.querySelector(`#${t} .reactSelect__menu`),i=r==null?void 0:r.parentElement,o=r==null?void 0:r.cloneNode(!0);o&&(o.classList.add("reactSelect__menu--closed"),o.addEventListener("animationend",()=>{i==null||i.removeChild(o),o.removeEventListener("animationend",()=>{})}),i==null||i.appendChild(o))}}},d6=({className:e="",disabled:t=!1,error:n="",label:r="",placeholder:i="",...o})=>{const{options:a,value:s,onChange:l,onInputChange:c}=o,u=n&&typeof n=="string",{uniqueId:d,handleCloseSelect:f}=u6({id:o==null?void 0:o.id});return y.jsxs("div",{className:E("select",n&&"select__error",e&&e),children:[r&&y.jsx("label",{className:"select_label",children:r}),y.jsx(a6,{...o,id:d,className:"reactSelect",classNamePrefix:"reactSelect",isDisabled:t,components:{ClearIndicator:s6,DropdownIndicator:l6},onMenuClose:f,options:a,placeholder:i,value:s&&s,onChange:p=>l&&l(p),onInputChange:p=>c&&c(p)}),u&&y.jsx(c6,{message:n})]})},LS=5,PS=9,ES=(e,t,n)=>{const r=n?3:7;return e<=r?"LEFT_LEANED":e>t-r?"RIGHT_LEANED":"BALANCED"},IS=(e,t,n)=>t?[1,2,3,n,e]:[1,2,3,4,5,6,7,n,e],OS=(e,t,n,r)=>n?[1,r,e,r,t]:[1,r,e-2,e-1,e,e+1,e+2,r,t],AS=(e,t,n)=>t?[1,n,e-2,e-1,e]:[1,n,e-6,e-5,e-4,e-3,e-2,e-1,e],f6=(e,t,n)=>{const r=window.innerWidth<=991.98;if(t<=(r?LS:PS))return Array.from({length:t},(o,a)=>a+1);switch(ES(e,t,r)){case"LEFT_LEANED":return IS(t,r,n);case"BALANCED":return OS(e,t,r,n);case"RIGHT_LEANED":return AS(t,r,n);default:throw new Error("Unknown pager type")}},NS=e=>{const{page:t,size:n=10,total:r,totalPages:i,classname:o,onChange:a,onPageChange:s,onRowsPerPageChange:l,showRowsPerPage:c=!1,labelRowsPerPage:u="Filas por página:",pageSizeOptions:d=[5,10]}=e;r!=null&&i!=null&&console.error("You shouldn't use `total` and `totalPages` at the same time. Prefer `totalPages`.");const f=-1,[p,h]=v.useState(n),g=i??Math.ceil(r/p),[_,m]=v.useState(f6(t,g,f)),[b,C]=v.useState(window.innerWidth<=992),x=P=>{m(f6(P,g,f))};v.useEffect(()=>{const P=()=>{C(window.innerWidth<=992),x(t)};return window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)},[t,g]);const w=P=>{P!==t&&P!==0&&(s==null||s(P),a==null||a(P),x(P))},k=P=>{h(P==null?void 0:P.value),l==null||l(P)},S=v.useMemo(()=>d.map(P=>({label:P.toString(),value:P})),[d]),M=v.useMemo(()=>S.find(P=>P.value===p),[p,S]);return g===1?null:y.jsxs("section",{"data-testid":"pager-global","aria-label":"Pagination",className:E(Gt.paginator,b&&c&&Gt.paginator__mobile,o==null?void 0:o.global,"container_row","row__center"),children:[c&&y.jsxs("div",{className:Gt.paginator_rowsPerPage,children:[!b&&y.jsx(je,{type:"sm",weight:"medium",children:u}),y.jsx(d6,{className:Gt.select,options:S,value:M,onChange:k})]}),y.jsxs("nav",{"data-testid":"pager-nav",className:E(Gt.navPager,o==null?void 0:o.nav),children:[y.jsx(ui,{icon:"chevrons-left","aria-label":"First page",disabled:t===1,onClick:()=>w(1),className:o==null?void 0:o.arrow}),y.jsx(ui,{icon:"chevron-left","aria-label":"Previous page",disabled:t===1,onClick:()=>w(t-1),className:o==null?void 0:o.arrow}),_.map((P,T)=>y.jsx(G0,{className:o==null?void 0:o.button,ellipsisAsNumber:f,page:P,currentPage:t,onClick:()=>w(P)},`${P}-${T}`)),y.jsx(ui,{icon:"chevron-right","aria-label":"Next page",disabled:t===g,onClick:()=>w(t+1),className:o==null?void 0:o.arrow}),y.jsx(ui,{icon:"chevrons-right","aria-label":"Last page",disabled:t===g,onClick:()=>w(g),className:o==null?void 0:o.arrow})]})]})},RS=e=>e.variant==="cursor",p6=e=>RS(e)?y.jsx(JC,{...e}):y.jsx(NS,{...e});p6.prototype={avocado:"Pager"};function rq(){}function iq(){}function jS(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const FS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,BS={};function h6(e,t){return(BS.jsx?VS:FS).test(e)}const HS=/[ \t\n\f\r]/g;function $S(e){return typeof e=="object"?e.type==="text"?m6(e.value):!1:m6(e)}function m6(e){return e.replace(HS,"")===""}class ta{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ta.prototype.normal={},ta.prototype.property={},ta.prototype.space=void 0;function _6(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new ta(n,r,t)}function Yu(e){return e.toLowerCase()}class Bt{constructor(t,n){this.attribute=n,this.property=t}}Bt.prototype.attribute="",Bt.prototype.booleanish=!1,Bt.prototype.boolean=!1,Bt.prototype.commaOrSpaceSeparated=!1,Bt.prototype.commaSeparated=!1,Bt.prototype.defined=!1,Bt.prototype.mustUseProperty=!1,Bt.prototype.number=!1,Bt.prototype.overloadedBoolean=!1,Bt.prototype.property="",Bt.prototype.spaceSeparated=!1,Bt.prototype.space=void 0;let zS=0;const de=fi(),at=fi(),Uu=fi(),$=fi(),Be=fi(),Gi=fi(),Qt=fi();function fi(){return 2**++zS}const Zu=Object.freeze(Object.defineProperty({__proto__:null,boolean:de,booleanish:at,commaOrSpaceSeparated:Qt,commaSeparated:Gi,number:$,overloadedBoolean:Uu,spaceSeparated:Be},Symbol.toStringTag,{value:"Module"})),qu=Object.keys(Zu);class Gu extends Bt{constructor(t,n,r,i){let o=-1;if(super(t,n),g6(this,"space",i),typeof r=="number")for(;++o<qu.length;){const a=qu[o];g6(this,qu[o],(r&Zu[a])===Zu[a])}}}Gu.prototype.defined=!0;function g6(e,t,n){n&&(e[t]=n)}function Ki(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Gu(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Yu(r)]=r,n[Yu(o.attribute)]=r}return new ta(t,n,e.space)}const y6=Ki({properties:{ariaActiveDescendant:null,ariaAtomic:at,ariaAutoComplete:null,ariaBusy:at,ariaChecked:at,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:Be,ariaCurrent:null,ariaDescribedBy:Be,ariaDetails:null,ariaDisabled:at,ariaDropEffect:Be,ariaErrorMessage:null,ariaExpanded:at,ariaFlowTo:Be,ariaGrabbed:at,ariaHasPopup:null,ariaHidden:at,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Be,ariaLevel:$,ariaLive:null,ariaModal:at,ariaMultiLine:at,ariaMultiSelectable:at,ariaOrientation:null,ariaOwns:Be,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:at,ariaReadOnly:at,ariaRelevant:null,ariaRequired:at,ariaRoleDescription:Be,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:at,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function b6(e,t){return t in e?e[t]:t}function v6(e,t){return b6(e,t.toLowerCase())}const WS=Ki({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gi,acceptCharset:Be,accessKey:Be,action:null,allow:null,allowFullScreen:de,allowPaymentRequest:de,allowUserMedia:de,alt:null,as:null,async:de,autoCapitalize:null,autoComplete:Be,autoFocus:de,autoPlay:de,blocking:Be,capture:null,charSet:null,checked:de,cite:null,className:Be,cols:$,colSpan:null,content:null,contentEditable:at,controls:de,controlsList:Be,coords:$|Gi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:de,defer:de,dir:null,dirName:null,disabled:de,download:Uu,draggable:at,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:de,formTarget:null,headers:Be,height:$,hidden:Uu,high:$,href:null,hrefLang:null,htmlFor:Be,httpEquiv:Be,id:null,imageSizes:null,imageSrcSet:null,inert:de,inputMode:null,integrity:null,is:null,isMap:de,itemId:null,itemProp:Be,itemRef:Be,itemScope:de,itemType:Be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:de,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:de,muted:de,name:null,nonce:null,noModule:de,noValidate:de,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:de,optimum:$,pattern:null,ping:Be,placeholder:null,playsInline:de,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:de,referrerPolicy:null,rel:Be,required:de,reversed:de,rows:$,rowSpan:$,sandbox:Be,scope:null,scoped:de,seamless:de,selected:de,shadowRootClonable:de,shadowRootDelegatesFocus:de,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:at,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:de,useMap:null,value:at,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Be,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:de,declare:de,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:de,noHref:de,noShade:de,noWrap:de,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:at,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:de,disableRemotePlayback:de,prefix:null,property:null,results:$,security:null,unselectable:null},space:"html",transform:v6}),YS=Ki({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Qt,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:Be,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:de,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Gi,g2:Gi,glyphName:Gi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:Qt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qt,rev:Qt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qt,requiredFeatures:Qt,requiredFonts:Qt,requiredFormats:Qt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:Qt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qt,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:b6}),C6=Ki({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),w6=Ki({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:v6}),x6=Ki({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),US={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ZS=/[A-Z]/g,k6=/-[a-z]/g,qS=/^data[-\w.:]+$/i;function GS(e,t){const n=Yu(t);let r=t,i=Bt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&qS.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(k6,QS);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!k6.test(o)){let a=o.replace(ZS,KS);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Gu}return new i(r,t)}function KS(e){return"-"+e.toLowerCase()}function QS(e){return e.charAt(1).toUpperCase()}const XS=_6([y6,WS,C6,w6,x6],"html"),Ku=_6([y6,YS,C6,w6,x6],"svg");function JS(e){return e.join(" ").trim()}var Qi={},Qu,S6;function eT(){if(S6)return Qu;S6=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
776
- `,c="/",u="*",d="",f="comment",p="declaration";function h(_,m){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];m=m||{};var b=1,C=1;function x(N){var A=N.match(t);A&&(b+=A.length);var j=N.lastIndexOf(l);C=~j?N.length-j:C+N.length}function w(){var N={line:b,column:C};return function(A){return A.position=new k(N),P(),A}}function k(N){this.start=N,this.end={line:b,column:C},this.source=m.source}k.prototype.content=_;function S(N){var A=new Error(m.source+":"+b+":"+C+": "+N);if(A.reason=N,A.filename=m.source,A.line=b,A.column=C,A.source=_,!m.silent)throw A}function M(N){var A=N.exec(_);if(A){var j=A[0];return x(j),_=_.slice(j.length),A}}function P(){M(n)}function T(N){var A;for(N=N||[];A=I();)A!==!1&&N.push(A);return N}function I(){var N=w();if(!(c!=_.charAt(0)||u!=_.charAt(1))){for(var A=2;d!=_.charAt(A)&&(u!=_.charAt(A)||c!=_.charAt(A+1));)++A;if(A+=2,d===_.charAt(A-1))return S("End of comment missing");var j=_.slice(2,A-2);return C+=2,x(j),_=_.slice(A),C+=2,N({type:f,comment:j})}}function O(){var N=w(),A=M(r);if(A){if(I(),!M(i))return S("property missing ':'");var j=M(o),Y=N({type:p,property:g(A[0].replace(e,d)),value:j?g(j[0].replace(e,d)):d});return M(a),Y}}function V(){var N=[];T(N);for(var A;A=O();)A!==!1&&(N.push(A),T(N));return N}return P(),V()}function g(_){return _?_.replace(s,d):d}return Qu=h,Qu}var T6;function tT(){if(T6)return Qi;T6=1;var e=Qi&&Qi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=n;const t=e(eT());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const a=(0,t.default)(r),s=typeof i=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:c,value:u}=l;s?i(c,u,l):u&&(o=o||{},o[c]=u)}),o}return Qi}var na={},M6;function nT(){if(M6)return na;M6=1,Object.defineProperty(na,"__esModule",{value:!0}),na.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(c){return!c||n.test(c)||e.test(c)},a=function(c,u){return u.toUpperCase()},s=function(c,u){return"".concat(u,"-")},l=function(c,u){return u===void 0&&(u={}),o(c)?c:(c=c.toLowerCase(),u.reactCompat?c=c.replace(i,s):c=c.replace(r,s),c.replace(t,a))};return na.camelCase=l,na}var ra,D6;function rT(){if(D6)return ra;D6=1;var e=ra&&ra.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(tT()),n=nT();function r(i,o){var a={};return!i||typeof i!="string"||(0,t.default)(i,function(s,l){s&&l&&(a[(0,n.camelCase)(s,o)]=l)}),a}return r.default=r,ra=r,ra}var iT=rT();const oT=En(iT),L6=P6("end"),Xu=P6("start");function P6(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function aT(e){const t=Xu(e),n=L6(e);if(t&&n)return{start:t,end:n}}function ia(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?E6(e.position):"start"in e||"end"in e?E6(e):"line"in e||"column"in e?Ju(e):""}function Ju(e){return I6(e&&e.line)+":"+I6(e&&e.column)}function E6(e){return Ju(e&&e.start)+"-"+Ju(e&&e.end)}function I6(e){return e&&typeof e=="number"?e:1}class vt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=ia(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}vt.prototype.file="",vt.prototype.name="",vt.prototype.reason="",vt.prototype.message="",vt.prototype.stack="",vt.prototype.column=void 0,vt.prototype.line=void 0,vt.prototype.ancestors=void 0,vt.prototype.cause=void 0,vt.prototype.fatal=void 0,vt.prototype.place=void 0,vt.prototype.ruleId=void 0,vt.prototype.source=void 0;const e1={}.hasOwnProperty,sT=new Map,lT=/[A-Z]/g,cT=new Set(["table","tbody","thead","tfoot","tr"]),uT=new Set(["td","th"]),O6="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function dT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=bT(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=yT(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Ku:XS,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=A6(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function A6(e,t,n){if(t.type==="element")return fT(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return pT(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return mT(e,t,n);if(t.type==="mdxjsEsm")return hT(e,t);if(t.type==="root")return _T(e,t,n);if(t.type==="text")return gT(e,t)}function fT(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ku,e.schema=i),e.ancestors.push(t);const o=R6(e,t.tagName,!1),a=vT(e,t);let s=n1(e,t);return cT.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!$S(l):!0})),N6(e,a,o,t),t1(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function pT(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}oa(e,t.position)}function hT(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);oa(e,t.position)}function mT(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Ku,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:R6(e,t.name,!0),a=CT(e,t),s=n1(e,t);return N6(e,a,o,t),t1(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function _T(e,t,n){const r={};return t1(r,n1(e,t)),e.create(t,e.Fragment,r,n)}function gT(e,t){return t.value}function N6(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function t1(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function yT(e,t,n){return r;function r(i,o,a,s){const c=Array.isArray(a.children)?n:t;return s?c(o,a,s):c(o,a)}}function bT(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=Xu(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function vT(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&e1.call(t.properties,i)){const o=wT(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&uT.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function CT(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else oa(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else oa(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function n1(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:sT;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const c=i.get(l)||0;a=l+"-"+c,i.set(l,c+1)}}const s=A6(e,o,a);s!==void 0&&n.push(s)}return n}function wT(e,t,n){const r=GS(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?jS(n):JS(n)),r.property==="style"){let i=typeof n=="object"?n:xT(e,String(n));return e.stylePropertyNameCase==="css"&&(i=kT(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?US[r.property]||r.property:r.attribute,n]}}function xT(e,t){try{return oT(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new vt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=O6+"#cannot-parse-style-attribute",i}}function R6(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const s=h6(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=a}else r=h6(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return e1.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);oa(e)}function oa(e,t){const n=new vt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=O6+"#cannot-handle-mdx-estrees-without-createevaluater",n}function kT(e){const t={};let n;for(n in e)e1.call(e,n)&&(t[ST(n)]=e[n]);return t}function ST(e){let t=e.replace(lT,TT);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function TT(e){return"-"+e.toLowerCase()}const r1={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},MT={};function i1(e,t){const n=MT,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return j6(e,r,i)}function j6(e,t,n){if(DT(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return F6(e.children,t,n)}return Array.isArray(e)?F6(e,t,n):""}function F6(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=j6(e[i],t,n);return r.join("")}function DT(e){return!!(e&&typeof e=="object")}const V6=document.createElement("i");function o1(e){const t="&"+e+";";V6.innerHTML=t;const n=V6.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Xt(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function cn(e,t){return e.length>0?(Xt(e,e.length,0,t),e):t}const B6={}.hasOwnProperty;function H6(e){const t={};let n=-1;for(;++n<e.length;)LT(t,e[n]);return t}function LT(e,t){let n;for(n in t){const i=(B6.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){B6.call(i,a)||(i[a]=[]);const s=o[a];PT(i[a],Array.isArray(s)?s:s?[s]:[])}}}function PT(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Xt(e,0,0,r)}function $6(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function yn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Pt=Ir(/[A-Za-z]/),Ct=Ir(/[\dA-Za-z]/),ET=Ir(/[#-'*+\--9=?A-Z^-~]/);function al(e){return e!==null&&(e<32||e===127)}const a1=Ir(/\d/),IT=Ir(/[\dA-Fa-f]/),OT=Ir(/[!-/:-@[-`{-~]/);function se(e){return e!==null&&e<-2}function Fe(e){return e!==null&&(e<0||e===32)}function me(e){return e===-2||e===-1||e===32}const sl=Ir(new RegExp("\\p{P}|\\p{S}","u")),pi=Ir(/\s/);function Ir(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Xi(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&Ct(e.charCodeAt(n+1))&&Ct(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function be(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return me(l)?(e.enter(n),s(l)):t(l)}function s(l){return me(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const AT={tokenize:NT};function NT(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),be(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return se(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const RT={tokenize:jT},z6={tokenize:FT};function jT(e){const t=this,n=[];let r=0,i,o,a;return s;function s(C){if(r<n.length){const x=n[r];return t.containerState=x[1],e.attempt(x[0].continuation,l,c)(C)}return c(C)}function l(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const x=t.events.length;let w=x,k;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){k=t.events[w][1].end;break}m(r);let S=x;for(;S<t.events.length;)t.events[S][1].end={...k},S++;return Xt(t.events,w+1,0,t.events.slice(x)),t.events.length=S,c(C)}return s(C)}function c(C){if(r===n.length){if(!i)return f(C);if(i.currentConstruct&&i.currentConstruct.concrete)return h(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(z6,u,d)(C)}function u(C){return i&&b(),m(r),f(C)}function d(C){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,h(C)}function f(C){return t.containerState={},e.attempt(z6,p,h)(C)}function p(C){return r++,n.push([t.currentConstruct,t.containerState]),f(C)}function h(C){if(C===null){i&&b(),m(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),g(C)}function g(C){if(C===null){_(e.exit("chunkFlow"),!0),m(0),e.consume(C);return}return se(C)?(e.consume(C),_(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(C),g)}function _(C,x){const w=t.sliceStream(C);if(x&&w.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(w),t.parser.lazy[C.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<a&&(!i.events[k][1].end||i.events[k][1].end.offset>a))return;const S=t.events.length;let M=S,P,T;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(P){T=t.events[M][1].end;break}P=!0}for(m(r),k=S;k<t.events.length;)t.events[k][1].end={...T},k++;Xt(t.events,M+1,0,t.events.slice(S)),t.events.length=k}}function m(C){let x=n.length;for(;x-- >C;){const w=n[x];t.containerState=w[1],w[0].exit.call(t,e)}n.length=C}function b(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function FT(e,t,n){return be(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ji(e){if(e===null||Fe(e)||pi(e))return 1;if(sl(e))return 2}function ll(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const s1={name:"attention",resolveAll:VT,tokenize:BT};function VT(e,t){let n=-1,r,i,o,a,s,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},f={...e[n][1].start};W6(d,-l),W6(f,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=cn(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=cn(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=cn(c,ll(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=cn(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=cn(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Xt(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function BT(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ji(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),u=Ji(l),d=!u||u===2&&i||n.includes(l),f=!i||i===2&&u||n.includes(r);return c._open=!!(o===42?d:d&&(i||!f)),c._close=!!(o===42?f:f&&(u||!d)),t(l)}}function W6(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const HT={name:"autolink",tokenize:$T};function $T(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return Pt(p)?(e.consume(p),a):p===64?n(p):c(p)}function a(p){return p===43||p===45||p===46||Ct(p)?(r=1,s(p)):c(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||Ct(p))&&r++<32?(e.consume(p),s):(r=0,c(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||al(p)?n(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),u):ET(p)?(e.consume(p),c):n(p)}function u(p){return Ct(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Ct(p))&&r++<63){const h=p===45?f:d;return e.consume(p),h}return n(p)}}const aa={partial:!0,tokenize:zT};function zT(e,t,n){return r;function r(o){return me(o)?be(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||se(o)?t(o):n(o)}}const Y6={continuation:{tokenize:YT},exit:UT,name:"blockQuote",tokenize:WT};function WT(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return me(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function YT(e,t,n){const r=this;return i;function i(a){return me(a)?be(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(Y6,t,n)(a)}}function UT(e){e.exit("blockQuote")}const U6={name:"characterEscape",tokenize:ZT};function ZT(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return OT(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Z6={name:"characterReference",tokenize:qT};function qT(e,t,n){const r=this;let i=0,o,a;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=Ct,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=IT,u):(e.enter("characterReferenceValue"),o=7,a=a1,u(d))}function u(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return a===Ct&&!o1(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(d)&&i++<o?(e.consume(d),u):n(d)}}const q6={partial:!0,tokenize:KT},G6={concrete:!0,name:"codeFenced",tokenize:GT};function GT(e,t,n){const r=this,i={partial:!0,tokenize:w};let o=0,a=0,s;return l;function l(k){return c(k)}function c(k){const S=r.events[r.events.length-1];return o=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,s=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(k)}function u(k){return k===s?(a++,e.consume(k),u):a<3?n(k):(e.exit("codeFencedFenceSequence"),me(k)?be(e,d,"whitespace")(k):d(k))}function d(k){return k===null||se(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(q6,g,x)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===null||se(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(k)):me(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),be(e,p,"whitespace")(k)):k===96&&k===s?n(k):(e.consume(k),f)}function p(k){return k===null||se(k)?d(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(k))}function h(k){return k===null||se(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(k)):k===96&&k===s?n(k):(e.consume(k),h)}function g(k){return e.attempt(i,x,_)(k)}function _(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),m}function m(k){return o>0&&me(k)?be(e,b,"linePrefix",o+1)(k):b(k)}function b(k){return k===null||se(k)?e.check(q6,g,x)(k):(e.enter("codeFlowValue"),C(k))}function C(k){return k===null||se(k)?(e.exit("codeFlowValue"),b(k)):(e.consume(k),C)}function x(k){return e.exit("codeFenced"),t(k)}function w(k,S,M){let P=0;return T;function T(A){return k.enter("lineEnding"),k.consume(A),k.exit("lineEnding"),I}function I(A){return k.enter("codeFencedFence"),me(A)?be(k,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):O(A)}function O(A){return A===s?(k.enter("codeFencedFenceSequence"),V(A)):M(A)}function V(A){return A===s?(P++,k.consume(A),V):P>=a?(k.exit("codeFencedFenceSequence"),me(A)?be(k,N,"whitespace")(A):N(A)):M(A)}function N(A){return A===null||se(A)?(k.exit("codeFencedFence"),S(A)):M(A)}}}function KT(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const l1={name:"codeIndented",tokenize:XT},QT={partial:!0,tokenize:JT};function XT(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),be(e,o,"linePrefix",5)(c)}function o(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):se(c)?e.attempt(QT,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||se(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function JT(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):se(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):be(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):se(a)?i(a):n(a)}}const eM={name:"codeText",previous:nM,resolve:tM,tokenize:rM};function tM(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function nM(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function rM(e,t,n){let r=0,i,o;return a;function a(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(o=e.enter("codeTextSequence"),i=0,u(d)):se(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||se(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",c(d))}}class iM{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&sa(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),sa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),sa(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);sa(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);sa(this.left,n.reverse())}}}function sa(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function K6(e){const t={};let n=-1,r,i,o,a,s,l,c;const u=new iM(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,oM(u,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=u.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return Xt(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function oM(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],c={};let u,d,f=-1,p=n,h=0,g=0;const _=[g];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(g=f+1,_.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):_.pop(),f=_.length;f--;){const m=s.slice(_[f],_[f+1]),b=o.pop();l.push([b,b+m.length-1]),e.splice(b,2,m)}for(l.reverse(),f=-1;++f<l.length;)c[h+l[f][0]]=h+l[f][1],h+=l[f][1]-l[f][0]-1;return c}const aM={resolve:lM,tokenize:cM},sM={partial:!0,tokenize:uM};function lM(e){return K6(e),e}function cM(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):se(s)?e.check(sM,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function uM(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),be(e,o,"linePrefix")}function o(a){if(a===null||se(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Q6(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(m){return m===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(m),e.exit(o),f):m===null||m===32||m===41||al(m)?n(m):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(m))}function f(m){return m===62?(e.enter(o),e.consume(m),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===62?(e.exit("chunkString"),e.exit(s),f(m)):m===null||m===60||se(m)?n(m):(e.consume(m),m===92?h:p)}function h(m){return m===60||m===62||m===92?(e.consume(m),p):p(m)}function g(m){return!u&&(m===null||m===41||Fe(m))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(m)):u<c&&m===40?(e.consume(m),u++,g):m===41?(e.consume(m),u--,g):m===null||m===32||m===40||al(m)?n(m):(e.consume(m),m===92?_:g)}function _(m){return m===40||m===41||m===92?(e.consume(m),g):g(m)}}function X6(e,t,n,r,i,o){const a=this;let s=0,l;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),u}function u(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):se(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||se(p)||s++>999?(e.exit("chunkString"),u(p)):(e.consume(p),l||(l=!me(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function J6(e,t,n,r,i,o){let a;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),a=f===40?41:f,l):n(f)}function l(f){return f===a?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),c(f))}function c(f){return f===a?(e.exit(o),l(a)):f===null?n(f):se(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),be(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===a||f===null||se(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?d:u)}function d(f){return f===a||f===92?(e.consume(f),u):u(f)}}function la(e,t){let n;return r;function r(i){return se(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):me(i)?be(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const dM={name:"definition",tokenize:pM},fM={partial:!0,tokenize:hM};function pM(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),a(p)}function a(p){return X6.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=yn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return Fe(p)?la(e,c)(p):c(p)}function c(p){return Q6(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(fM,d,d)(p)}function d(p){return me(p)?be(e,f,"whitespace")(p):f(p)}function f(p){return p===null||se(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function hM(e,t,n){return r;function r(s){return Fe(s)?la(e,i)(s):n(s)}function i(s){return J6(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return me(s)?be(e,a,"whitespace")(s):a(s)}function a(s){return s===null||se(s)?t(s):n(s)}}const mM={name:"hardBreakEscape",tokenize:_M};function _M(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return se(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const gM={name:"headingAtx",resolve:yM,tokenize:bM};function yM(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Xt(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function bM(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),o(u)}function o(u){return e.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&r++<6?(e.consume(u),a):u===null||Fe(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||se(u)?(e.exit("atxHeading"),t(u)):me(u)?be(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Fe(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const vM=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],eh=["pre","script","style","textarea"],CM={concrete:!0,name:"htmlFlow",resolveTo:kM,tokenize:SM},wM={partial:!0,tokenize:MM},xM={partial:!0,tokenize:TM};function kM(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function SM(e,t,n){const r=this;let i,o,a,s,l;return c;function c(L){return u(L)}function u(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),d}function d(L){return L===33?(e.consume(L),f):L===47?(e.consume(L),o=!0,g):L===63?(e.consume(L),i=3,r.interrupt?t:D):Pt(L)?(e.consume(L),a=String.fromCharCode(L),_):n(L)}function f(L){return L===45?(e.consume(L),i=2,p):L===91?(e.consume(L),i=5,s=0,h):Pt(L)?(e.consume(L),i=4,r.interrupt?t:D):n(L)}function p(L){return L===45?(e.consume(L),r.interrupt?t:D):n(L)}function h(L){const De="CDATA[";return L===De.charCodeAt(s++)?(e.consume(L),s===De.length?r.interrupt?t:O:h):n(L)}function g(L){return Pt(L)?(e.consume(L),a=String.fromCharCode(L),_):n(L)}function _(L){if(L===null||L===47||L===62||Fe(L)){const De=L===47,Je=a.toLowerCase();return!De&&!o&&eh.includes(Je)?(i=1,r.interrupt?t(L):O(L)):vM.includes(a.toLowerCase())?(i=6,De?(e.consume(L),m):r.interrupt?t(L):O(L)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):o?b(L):C(L))}return L===45||Ct(L)?(e.consume(L),a+=String.fromCharCode(L),_):n(L)}function m(L){return L===62?(e.consume(L),r.interrupt?t:O):n(L)}function b(L){return me(L)?(e.consume(L),b):T(L)}function C(L){return L===47?(e.consume(L),T):L===58||L===95||Pt(L)?(e.consume(L),x):me(L)?(e.consume(L),C):T(L)}function x(L){return L===45||L===46||L===58||L===95||Ct(L)?(e.consume(L),x):w(L)}function w(L){return L===61?(e.consume(L),k):me(L)?(e.consume(L),w):C(L)}function k(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),l=L,S):me(L)?(e.consume(L),k):M(L)}function S(L){return L===l?(e.consume(L),l=null,P):L===null||se(L)?n(L):(e.consume(L),S)}function M(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||Fe(L)?w(L):(e.consume(L),M)}function P(L){return L===47||L===62||me(L)?C(L):n(L)}function T(L){return L===62?(e.consume(L),I):n(L)}function I(L){return L===null||se(L)?O(L):me(L)?(e.consume(L),I):n(L)}function O(L){return L===45&&i===2?(e.consume(L),j):L===60&&i===1?(e.consume(L),Y):L===62&&i===4?(e.consume(L),Ce):L===63&&i===3?(e.consume(L),D):L===93&&i===5?(e.consume(L),G):se(L)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(wM,he,V)(L)):L===null||se(L)?(e.exit("htmlFlowData"),V(L)):(e.consume(L),O)}function V(L){return e.check(xM,N,he)(L)}function N(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),A}function A(L){return L===null||se(L)?V(L):(e.enter("htmlFlowData"),O(L))}function j(L){return L===45?(e.consume(L),D):O(L)}function Y(L){return L===47?(e.consume(L),a="",H):O(L)}function H(L){if(L===62){const De=a.toLowerCase();return eh.includes(De)?(e.consume(L),Ce):O(L)}return Pt(L)&&a.length<8?(e.consume(L),a+=String.fromCharCode(L),H):O(L)}function G(L){return L===93?(e.consume(L),D):O(L)}function D(L){return L===62?(e.consume(L),Ce):L===45&&i===2?(e.consume(L),D):O(L)}function Ce(L){return L===null||se(L)?(e.exit("htmlFlowData"),he(L)):(e.consume(L),Ce)}function he(L){return e.exit("htmlFlow"),t(L)}}function TM(e,t,n){const r=this;return i;function i(a){return se(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function MM(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(aa,t,n)}}const DM={name:"htmlText",tokenize:LM};function LM(e,t,n){const r=this;let i,o,a;return s;function s(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),l}function l(D){return D===33?(e.consume(D),c):D===47?(e.consume(D),w):D===63?(e.consume(D),C):Pt(D)?(e.consume(D),M):n(D)}function c(D){return D===45?(e.consume(D),u):D===91?(e.consume(D),o=0,h):Pt(D)?(e.consume(D),b):n(D)}function u(D){return D===45?(e.consume(D),p):n(D)}function d(D){return D===null?n(D):D===45?(e.consume(D),f):se(D)?(a=d,Y(D)):(e.consume(D),d)}function f(D){return D===45?(e.consume(D),p):d(D)}function p(D){return D===62?j(D):D===45?f(D):d(D)}function h(D){const Ce="CDATA[";return D===Ce.charCodeAt(o++)?(e.consume(D),o===Ce.length?g:h):n(D)}function g(D){return D===null?n(D):D===93?(e.consume(D),_):se(D)?(a=g,Y(D)):(e.consume(D),g)}function _(D){return D===93?(e.consume(D),m):g(D)}function m(D){return D===62?j(D):D===93?(e.consume(D),m):g(D)}function b(D){return D===null||D===62?j(D):se(D)?(a=b,Y(D)):(e.consume(D),b)}function C(D){return D===null?n(D):D===63?(e.consume(D),x):se(D)?(a=C,Y(D)):(e.consume(D),C)}function x(D){return D===62?j(D):C(D)}function w(D){return Pt(D)?(e.consume(D),k):n(D)}function k(D){return D===45||Ct(D)?(e.consume(D),k):S(D)}function S(D){return se(D)?(a=S,Y(D)):me(D)?(e.consume(D),S):j(D)}function M(D){return D===45||Ct(D)?(e.consume(D),M):D===47||D===62||Fe(D)?P(D):n(D)}function P(D){return D===47?(e.consume(D),j):D===58||D===95||Pt(D)?(e.consume(D),T):se(D)?(a=P,Y(D)):me(D)?(e.consume(D),P):j(D)}function T(D){return D===45||D===46||D===58||D===95||Ct(D)?(e.consume(D),T):I(D)}function I(D){return D===61?(e.consume(D),O):se(D)?(a=I,Y(D)):me(D)?(e.consume(D),I):P(D)}function O(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),i=D,V):se(D)?(a=O,Y(D)):me(D)?(e.consume(D),O):(e.consume(D),N)}function V(D){return D===i?(e.consume(D),i=void 0,A):D===null?n(D):se(D)?(a=V,Y(D)):(e.consume(D),V)}function N(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||Fe(D)?P(D):(e.consume(D),N)}function A(D){return D===47||D===62||Fe(D)?P(D):n(D)}function j(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function Y(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),H}function H(D){return me(D)?be(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):G(D)}function G(D){return e.enter("htmlTextData"),a(D)}}const c1={name:"labelEnd",resolveAll:OM,resolveTo:AM,tokenize:NM},PM={tokenize:RM},EM={tokenize:jM},IM={tokenize:FM};function OM(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Xt(e,0,e.length,n),e}function AM(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=cn(s,e.slice(o+1,o+r+3)),s=cn(s,[["enter",u,t]]),s=cn(s,ll(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=cn(s,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),s=cn(s,e.slice(a+1)),s=cn(s,[["exit",l,t]]),Xt(e,o,e.length,s),e}function NM(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(f){return o?o._inactive?d(f):(a=r.parser.defined.includes(yn(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(PM,u,a?u:d)(f):f===91?e.attempt(EM,u,a?c:d)(f):a?u(f):d(f)}function c(f){return e.attempt(IM,u,d)(f)}function u(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}function RM(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Fe(d)?la(e,o)(d):o(d)}function o(d){return d===41?u(d):Q6(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return Fe(d)?la(e,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?J6(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return Fe(d)?la(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function jM(e,t,n){const r=this;return i;function i(s){return X6.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(yn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function FM(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const VM={name:"labelStartImage",resolveAll:c1.resolveAll,tokenize:BM};function BM(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const HM={name:"labelStartLink",resolveAll:c1.resolveAll,tokenize:$M};function $M(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const u1={name:"lineEnding",tokenize:zM};function zM(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),be(e,t,"linePrefix")}}const cl={name:"thematicBreak",tokenize:WM};function WM(e,t,n){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||se(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),me(c)?be(e,s,"whitespace")(c):s(c))}}const Ht={continuation:{tokenize:qM},exit:KM,name:"list",tokenize:ZM},YM={partial:!0,tokenize:QM},UM={partial:!0,tokenize:GM};function ZM(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:a1(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(cl,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return a1(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(aa,r.interrupt?n:u,e.attempt(YM,f,d))}function u(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return me(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function qM(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(aa,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,be(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!me(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(UM,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,be(e,e.attempt(Ht,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function GM(e,t,n){const r=this;return be(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function KM(e){e.exit(this.containerState.type)}function QM(e,t,n){const r=this;return be(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!me(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const th={name:"setextUnderline",resolveTo:XM,tokenize:JM};function XM(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function JM(e,t,n){const r=this;let i;return o;function o(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),me(c)?be(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||se(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const eD={tokenize:tD};function tD(e){const t=this,n=e.attempt(aa,r,e.attempt(this.parser.constructs.flowInitial,i,be(e,e.attempt(this.parser.constructs.flow,i,e.attempt(aM,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const nD={resolveAll:rh()},rD=nh("string"),iD=nh("text");function nh(e){return{resolveAll:rh(e==="text"?oD:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(u){return c(u)?o(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),o(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=i[u];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function rh(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function oD(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const aD=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:dM},disable:{null:[]},document:{42:Ht,43:Ht,45:Ht,48:Ht,49:Ht,50:Ht,51:Ht,52:Ht,53:Ht,54:Ht,55:Ht,56:Ht,57:Ht,62:Y6},flow:{35:gM,42:cl,45:[th,cl],60:CM,61:th,95:cl,96:G6,126:G6},flowInitial:{[-2]:l1,[-1]:l1,32:l1},insideSpan:{null:[s1,nD]},string:{38:Z6,92:U6},text:{[-5]:u1,[-4]:u1,[-3]:u1,33:VM,38:Z6,42:s1,60:[HT,DM],91:HM,92:[mM,U6],93:c1,95:s1,96:eM}},Symbol.toStringTag,{value:"Module"}));function sD(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[];const l={attempt:S(w),check:S(k),consume:b,enter:C,exit:x,interrupt:S(k,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:h,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(I){return a=cn(a,I),_(),a[a.length-1]!==null?[]:(M(t,0),c.events=ll(o,c.events,c),c.events)}function f(I,O){return cD(p(I),O)}function p(I){return lD(a,I)}function h(){const{_bufferIndex:I,_index:O,line:V,column:N,offset:A}=r;return{_bufferIndex:I,_index:O,line:V,column:N,offset:A}}function g(I){i[I.line]=I.column,T()}function _(){let I;for(;r._index<a.length;){const O=a[r._index];if(typeof O=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<O.length;)m(O.charCodeAt(r._bufferIndex));else m(O)}}function m(I){u=u(I)}function b(I){se(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,T()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=I}function C(I,O){const V=O||{};return V.type=I,V.start=h(),c.events.push(["enter",V,c]),s.push(V),V}function x(I){const O=s.pop();return O.end=h(),c.events.push(["exit",O,c]),O}function w(I,O){M(I,O.from)}function k(I,O){O.restore()}function S(I,O){return V;function V(N,A,j){let Y,H,G,D;return Array.isArray(N)?he(N):"tokenize"in N?he([N]):Ce(N);function Ce(ge){return Re;function Re(we){const rt=we!==null&&ge[we],it=we!==null&&ge.null,Le=[...Array.isArray(rt)?rt:rt?[rt]:[],...Array.isArray(it)?it:it?[it]:[]];return he(Le)(we)}}function he(ge){return Y=ge,H=0,ge.length===0?j:L(ge[H])}function L(ge){return Re;function Re(we){return D=P(),G=ge,ge.partial||(c.currentConstruct=ge),ge.name&&c.parser.constructs.disable.null.includes(ge.name)?Je():ge.tokenize.call(O?Object.assign(Object.create(c),O):c,l,De,Je)(we)}}function De(ge){return I(G,D),A}function Je(ge){return D.restore(),++H<Y.length?L(Y[H]):j}}}function M(I,O){I.resolveAll&&!o.includes(I)&&o.push(I),I.resolve&&Xt(c.events,O,c.events.length-O,I.resolve(c.events.slice(O),c)),I.resolveTo&&(c.events=I.resolveTo(c.events,c))}function P(){const I=h(),O=c.previous,V=c.currentConstruct,N=c.events.length,A=Array.from(s);return{from:N,restore:j};function j(){r=I,c.previous=O,c.currentConstruct=V,c.events.length=N,s=A,T()}}function T(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function lD(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function cD(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
775
+ `]))),ok=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,s=o.spacing.baseUnit;return ae({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},ju=function(t){var n=t.delay,r=t.offset;return re("span",{css:Au({animation:"".concat(ik," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ak=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=hr(t,Kx);return re("div",le({},Ke(ae(ae({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),re(ju,{delay:0,offset:r}),re(ju,{delay:160,offset:!0}),re(ju,{delay:320,offset:!r}))},sk=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,s=o.borderRadius,l=o.spacing;return ae({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},lk=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return re("div",le({ref:o},Ke(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},ck=lk,uk=["data"],dk=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},fk=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,c=t.label,d=t.theme,u=t.selectProps;return re("div",le({},Ke(t,"group",{group:!0}),l),re(a,le({},s,{selectProps:u,theme:d,getStyles:i,getClassNames:o,cx:r}),c),re("div",null,n))},pk=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return ae({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},hk=function(t){var n=wp(t);n.data;var r=hr(n,uk);return re("div",le({},Ke(t,"groupHeading",{"group-heading":!0}),r))},mk=fk,_k=["innerRef","isDisabled","isHidden","inputClassName"],gk=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,s=o.colors;return ae(ae({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},yk),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},Ap={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},yk={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ae({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ap)},bk=function(t){return ae({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Ap)},vk=function(t){var n=t.cx,r=t.value,i=wp(t),o=i.innerRef,a=i.isDisabled,s=i.isHidden,l=i.inputClassName,c=hr(i,_k);return re("div",le({},Ke(t,"input",{"input-container":!0}),{"data-value":r||""}),re("input",le({className:n({input:!0},l),ref:o,style:bk(s),disabled:a},c)))},Ck=vk,wk=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return ae({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},xk=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return ae({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},kk=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,s=t.isFocused;return ae({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Np=function(t){var n=t.children,r=t.innerProps;return re("div",r,n)},Sk=Np,Tk=Np;function Mk(e){var t=e.children,n=e.innerProps;return re("div",le({role:"button"},n),t||re(Ru,{size:14}))}var Dk=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,c=r.Container,d=r.Label,u=r.Remove;return re(c,{data:i,innerProps:ae(ae({},Ke(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},re(d,{data:i,innerProps:ae({},Ke(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),re(u,{data:i,innerProps:ae(ae({},Ke(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},Lk=Dk,Pk=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return ae({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},Ek=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,s=t.innerProps;return re("div",le({},Ke(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},s),n)},Ik=Ek,Ok=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return ae({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Ak=function(t){var n=t.children,r=t.innerProps;return re("div",le({},Ke(t,"placeholder",{placeholder:!0}),r),n)},Nk=Ak,Rk=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return ae({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},jk=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return re("div",le({},Ke(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},Fk=jk,rl={ClearIndicator:tk,Control:ck,DropdownIndicator:Jx,DownChevron:Ip,CrossIcon:Ru,Group:mk,GroupHeading:hk,IndicatorsContainer:qx,IndicatorSeparator:rk,Input:Ck,LoadingIndicator:ak,Menu:Ax,MenuList:Rx,MenuPortal:$x,LoadingMessage:Bx,NoOptionsMessage:Vx,MultiValue:Lk,MultiValueContainer:Sk,MultiValueLabel:Tk,MultiValueRemove:Mk,Option:Ik,Placeholder:Nk,SelectContainer:Wx,SingleValue:Fk,ValueContainer:Ux},Vk=function(t){return ae(ae({},rl),t.components)},Rp=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Bk(e,t){return!!(e===t||Rp(e)&&Rp(t))}function Hk(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Bk(e[n],t[n]))return!1;return!0}function $k(e,t){t===void 0&&(t=Hk);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var a=e.apply(this,i);return n={lastResult:a,lastArgs:i,lastThis:this},a}return r.clear=function(){n=null},r}for(var zk={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Wk=function(t){return re("span",le({css:zk},t))},jp=Wk,Yk={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,o=t.context,a=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,o=t.labels,a=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,s=t.selectValue,l=t.isDisabled,c=t.isSelected,d=t.isAppleDevice,u=function(g,_){return g&&g.length?"".concat(g.indexOf(_)+1," of ").concat(g.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(u(s,r),".");if(n==="menu"&&d){var f=l?" disabled":"",p="".concat(c?" selected":"").concat(f);return"".concat(a).concat(p,", ").concat(u(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},Uk=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,d=t.isAppleDevice,u=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,h=l.isMulti,g=l.isOptionDisabled,_=l.isSearchable,m=l.menuIsOpen,b=l.options,C=l.screenReaderStatus,x=l.tabSelectsValue,w=l.isLoading,k=l["aria-label"],S=l["aria-live"],M=v.useMemo(function(){return ae(ae({},Yk),u||{})},[u]),P=v.useMemo(function(){var A="";if(n&&M.onChange){var j=n.option,Y=n.options,H=n.removedValue,G=n.removedValues,D=n.value,Ce=function(we){return Array.isArray(we)?null:we},he=H||j||Ce(D),L=he?f(he):"",De=Y||G||void 0,Je=De?De.map(f):[],ge=ae({isDisabled:he&&g(he,s),label:L,labels:Je},n);A=M.onChange(ge)}return A},[n,M,g,s,f]),T=v.useMemo(function(){var A="",j=r||i,Y=!!(r&&s&&s.includes(r));if(j&&M.onFocus){var H={focused:j,label:f(j),isDisabled:g(j,s),isSelected:Y,options:o,context:j===r?"menu":"value",selectValue:s,isAppleDevice:d};A=M.onFocus(H)}return A},[r,i,f,g,M,o,s,d]),I=v.useMemo(function(){var A="";if(m&&b.length&&!w&&M.onFilter){var j=C({count:o.length});A=M.onFilter({inputValue:p,resultsMessage:j})}return A},[o,p,m,M,b,C,w]),O=(n==null?void 0:n.action)==="initial-input-focus",V=v.useMemo(function(){var A="";if(M.guidance){var j=i?"value":m?"menu":"input";A=M.guidance({"aria-label":k,context:j,isDisabled:r&&g(r,s),isMulti:h,isSearchable:_,tabSelectsValue:x,isInitialFocus:O})}return A},[k,r,i,h,g,_,m,M,s,x,O]),N=re(v.Fragment,null,re("span",{id:"aria-selection"},P),re("span",{id:"aria-focused"},T),re("span",{id:"aria-results"},I),re("span",{id:"aria-guidance"},V));return re(v.Fragment,null,re(jp,{id:c},O&&N),re(jp,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!O&&N))},Zk=Uk,Fu=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],qk=new RegExp("["+Fu.map(function(e){return e.letters}).join("")+"]","g"),Fp={},Vu=0;Vu<Fu.length;Vu++)for(var Bu=Fu[Vu],Hu=0;Hu<Bu.letters.length;Hu++)Fp[Bu.letters[Hu]]=Bu.base;var Vp=function(t){return t.replace(qk,function(n){return Fp[n]})},Gk=$k(Vp),Bp=function(t){return t.replace(/^\s+|\s+$/g,"")},Kk=function(t){return"".concat(t.label," ").concat(t.value)},Qk=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=ae({ignoreCase:!0,ignoreAccents:!0,stringify:Kk,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,a=i.ignoreAccents,s=i.stringify,l=i.trim,c=i.matchFrom,d=l?Bp(r):r,u=l?Bp(s(n)):s(n);return o&&(d=d.toLowerCase(),u=u.toLowerCase()),a&&(d=Gk(d),u=Vp(u)),c==="start"?u.substr(0,d.length)===d:u.indexOf(d)>-1}},Xk=["innerRef"];function Jk(e){var t=e.innerRef,n=hr(e,Xk),r=Tx(n,"onExited","in","enter","exit","appear");return re("input",le({ref:t},r,{css:Au({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var eS=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function tS(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=v.useRef(!1),s=v.useRef(!1),l=v.useRef(0),c=v.useRef(null),d=v.useCallback(function(_,m){if(c.current!==null){var b=c.current,C=b.scrollTop,x=b.scrollHeight,w=b.clientHeight,k=c.current,S=m>0,M=x-w-C,P=!1;M>m&&a.current&&(r&&r(_),a.current=!1),S&&s.current&&(o&&o(_),s.current=!1),S&&m>M?(n&&!a.current&&n(_),k.scrollTop=x,P=!0,a.current=!0):!S&&-m>C&&(i&&!s.current&&i(_),k.scrollTop=0,P=!0,s.current=!0),P&&eS(_)}},[n,r,i,o]),u=v.useCallback(function(_){d(_,_.deltaY)},[d]),f=v.useCallback(function(_){l.current=_.changedTouches[0].clientY},[]),p=v.useCallback(function(_){var m=l.current-_.changedTouches[0].clientY;d(_,m)},[d]),h=v.useCallback(function(_){if(_){var m=xx?{passive:!1}:!1;_.addEventListener("wheel",u,m),_.addEventListener("touchstart",f,m),_.addEventListener("touchmove",p,m)}},[p,f,u]),g=v.useCallback(function(_){_&&(_.removeEventListener("wheel",u,!1),_.removeEventListener("touchstart",f,!1),_.removeEventListener("touchmove",p,!1))},[p,f,u]);return v.useEffect(function(){if(t){var _=c.current;return h(_),function(){g(_)}}},[t,h,g]),function(_){c.current=_}}var Hp=["boxSizing","height","overflow","paddingRight","position"],$p={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function zp(e){e.preventDefault()}function Wp(e){e.stopPropagation()}function Yp(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Up(){return"ontouchstart"in window||navigator.maxTouchPoints}var Zp=!!(typeof window<"u"&&window.document&&window.document.createElement),ea=0,qi={capture:!1,passive:!1};function nS(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=v.useRef({}),o=v.useRef(null),a=v.useCallback(function(l){if(Zp){var c=document.body,d=c&&c.style;if(r&&Hp.forEach(function(h){var g=d&&d[h];i.current[h]=g}),r&&ea<1){var u=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+u||0;Object.keys($p).forEach(function(h){var g=$p[h];d&&(d[h]=g)}),d&&(d.paddingRight="".concat(p,"px"))}c&&Up()&&(c.addEventListener("touchmove",zp,qi),l&&(l.addEventListener("touchstart",Yp,qi),l.addEventListener("touchmove",Wp,qi))),ea+=1}},[r]),s=v.useCallback(function(l){if(Zp){var c=document.body,d=c&&c.style;ea=Math.max(ea-1,0),r&&ea<1&&Hp.forEach(function(u){var f=i.current[u];d&&(d[u]=f)}),c&&Up()&&(c.removeEventListener("touchmove",zp,qi),l&&(l.removeEventListener("touchstart",Yp,qi),l.removeEventListener("touchmove",Wp,qi)))}},[r]);return v.useEffect(function(){if(t){var l=o.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){o.current=l}}var rS=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},iS={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function oS(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=tS({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),d=nS({isEnabled:n}),u=function(p){c(p),d(p)};return re(v.Fragment,null,n&&re("div",{onClick:rS,css:iS}),t(u))}var aS={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},sS=function(t){var n=t.name,r=t.onFocus;return re("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:aS,value:"",onChange:function(){}})},lS=sS;function $u(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 cS(){return $u(/^iPhone/i)}function qp(){return $u(/^Mac/i)}function uS(){return $u(/^iPad/i)||qp()&&navigator.maxTouchPoints>1}function dS(){return cS()||uS()}function fS(){return qp()||dS()}var pS=function(t){return t.label},hS=function(t){return t.label},mS=function(t){return t.value},_S=function(t){return!!t.isDisabled},gS={clearIndicator:ek,container:zx,control:sk,dropdownIndicator:Xx,group:dk,groupHeading:pk,indicatorsContainer:Zx,indicatorSeparator:nk,input:gk,loadingIndicator:ok,loadingMessage:Fx,menu:Ex,menuList:Nx,menuPortal:Hx,multiValue:wk,multiValueLabel:xk,multiValueRemove:kk,noOptionsMessage:jx,option:Pk,placeholder:Ok,singleValue:Rk,valueContainer:Yx},yS={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},bS=4,Gp=4,vS=38,CS=Gp*2,wS={baseUnit:Gp,controlHeight:vS,menuGutter:CS},zu={borderRadius:bS,colors:yS,spacing:wS},xS={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Sp(),captureMenuScroll:!Sp(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Qk(),formatGroupLabel:pS,getOptionLabel:hS,getOptionValue:mS,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:_S,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Cx(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Kp(e,t,n,r){var i=t6(e,t,n),o=n6(e,t,n),a=e6(e,t),s=ol(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function il(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,s){return Kp(e,a,t,s)}).filter(function(a){return Jp(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Kp(e,n,t,r);return Jp(e,o)?o:void 0}).filter(kx)}function Qp(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,xu(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Xp(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,xu(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function kS(e,t){return Qp(il(e,t))}function Jp(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!i6(e)||!o)&&r6(e,{label:a,value:s,data:i},r)}function SS(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i<t.length)return t[i]}return null}function TS(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Wu=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},e6=function(t,n){return t.getOptionLabel(n)},ol=function(t,n){return t.getOptionValue(n)};function t6(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function n6(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=ol(e,t);return n.some(function(i){return ol(e,i)===r})}function r6(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var i6=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},MS=1,o6=(function(e){cw(n,e);var t=fw(n);function n(r){var i;if(sw(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=fS(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,c){var d=i.props,u=d.onChange,f=d.name;c.name=f,i.ariaOnChange(l,c),u(l,c)},i.setValue=function(l,c,d){var u=i.props,f=u.closeMenuOnSelect,p=u.isMulti,h=u.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:h}),f&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:c,option:d})},i.selectOption=function(l){var c=i.props,d=c.blurInputOnSelect,u=c.isMulti,f=c.name,p=i.state.selectValue,h=u&&i.isOptionSelected(l,p),g=i.isOptionDisabled(l,p);if(h){var _=i.getOptionValue(l);i.setValue(p.filter(function(m){return i.getOptionValue(m)!==_}),"deselect-option",l)}else if(!g)u?i.setValue([].concat(xu(p),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:f});return}d&&i.blurInput()},i.removeValue=function(l){var c=i.props.isMulti,d=i.state.selectValue,u=i.getOptionValue(l),f=d.filter(function(h){return i.getOptionValue(h)!==u}),p=nl(c,f,f[0]||null);i.onChange(p,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(nl(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,c=i.state.selectValue,d=c[c.length-1],u=c.slice(0,c.length-1),f=nl(l,u,u[0]||null);i.onChange(f,{action:"pop-value",removedValue:d})},i.getFocusedOptionId=function(l){return Wu(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return Xp(il(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return _x.apply(void 0,[i.props.classNamePrefix].concat(c))},i.getOptionLabel=function(l){return e6(i.props,l)},i.getOptionValue=function(l){return ol(i.props,l)},i.getStyles=function(l,c){var d=i.props.unstyled,u=gS[l](c,d);u.boxSizing="border-box";var f=i.props.styles[l];return f?f(u,c):u},i.getClassNames=function(l,c){var d,u;return(d=(u=i.props.classNames)[l])===null||d===void 0?void 0:d.call(u,c)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return Vk(i.props)},i.buildCategorizedOptions=function(){return il(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Qp(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,c){i.setState({ariaSelection:ae({value:l},c)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():c&&i.openMenu("first"):(c&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var c=i.props,d=c.isMulti,u=c.menuIsOpen;i.focusInput(),u?(i.setState({inputIsHiddenAfterUpdate:!d}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Xs(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var c=l.touches,d=c&&c.item(0);d&&(i.initialTouchX=d.clientX,i.initialTouchY=d.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var c=l.touches,d=c&&c.item(0);if(d){var u=Math.abs(d.clientX-i.initialTouchX),f=Math.abs(d.clientY-i.initialTouchY),p=5;i.userIsDragging=u>p||f>p}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var c=i.props.inputValue,d=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(d,{action:"input-change",prevInputValue:c}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var c=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:c}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var c=i.getFocusableOptions(),d=c.indexOf(l);i.setState({focusedOption:l,focusedOptionId:d>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return i6(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var c=i.props,d=c.isMulti,u=c.backspaceRemovesValue,f=c.escapeClearsValue,p=c.inputValue,h=c.isClearable,g=c.isDisabled,_=c.menuIsOpen,m=c.onKeyDown,b=c.tabSelectsValue,C=c.openMenuOnFocus,x=i.state,w=x.focusedOption,k=x.focusedValue,S=x.selectValue;if(!g&&!(typeof m=="function"&&(m(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!d||p)return;i.focusValue("previous");break;case"ArrowRight":if(!d||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(k)i.removeValue(k);else{if(!u)return;d?i.popValue():h&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!_||!b||!w||C&&i.isOptionSelected(w,S))return;i.selectOption(w);break;case"Enter":if(l.keyCode===229)break;if(_){if(!w||i.isComposing)return;i.selectOption(w);break}return;case"Escape":_?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):h&&f&&i.clearValue();break;case" ":if(p)return;if(!_){i.openMenu("first");break}if(!w)return;i.selectOption(w);break;case"ArrowUp":_?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":_?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!_)return;i.focusOption("pageup");break;case"PageDown":if(!_)return;i.focusOption("pagedown");break;case"Home":if(!_)return;i.focusOption("first");break;case"End":if(!_)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++MS),i.state.selectValue=Cp(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),s=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[s],i.state.focusedOptionId=Wu(o,a[s])}return i}return lw(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&kp(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,s=o.menuIsOpen,l=this.state.isFocused;(l&&!a&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(kp(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,s=a.selectValue,l=a.isFocused,c=this.buildFocusableOptions(),d=i==="first"?0:c.length-1;if(!this.props.isMulti){var u=c.indexOf(s[0]);u>-1&&(d=u)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[d],focusedOptionId:this.getFocusedOptionId(c[d])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,s=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var c=a.length-1,d=-1;if(a.length){switch(i){case"previous":l===0?d=0:l===-1?d=c:d=l-1;break;case"next":l>-1&&l<c&&(d=l+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:a[d]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,c=s.indexOf(a);a||(c=-1),i==="up"?l=c>0?c-1:s.length-1:i==="down"?l=(c+1)%s.length:i==="pageup"?(l=c-o,l<0&&(l=0)):i==="pagedown"?(l=c+o,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(zu):ae(ae({},zu),this.props.theme):zu})},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,c=this.selectOption,d=this.setValue,u=this.props,f=u.isMulti,p=u.isRtl,h=u.options,g=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:s,getValue:l,hasValue:g,isMulti:f,isRtl:p,options:h,selectOption:c,selectProps:u,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return t6(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return n6(this.props,i,o)}},{key:"filterOption",value:function(i,o){return r6(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,s=i.inputId,l=i.inputValue,c=i.tabIndex,d=i.form,u=i.menuIsOpen,f=i.required,p=this.getComponents(),h=p.Input,g=this.state,_=g.inputIsHidden,m=g.ariaSelection,b=this.commonProps,C=s||this.getElementId("input"),x=ae(ae(ae({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(m==null?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?R.createElement(h,le({},b,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:o,isHidden:_,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:d,type:"text",value:l},x)):R.createElement(Jk,le({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Qs,onFocus:this.onInputFocus,disabled:o,tabIndex:c,inputMode:"none",form:d,value:""},x))})},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,s=o.MultiValueContainer,l=o.MultiValueLabel,c=o.MultiValueRemove,d=o.SingleValue,u=o.Placeholder,f=this.commonProps,p=this.props,h=p.controlShouldRenderValue,g=p.isDisabled,_=p.isMulti,m=p.inputValue,b=p.placeholder,C=this.state,x=C.selectValue,w=C.focusedValue,k=C.isFocused;if(!this.hasValue()||!h)return m?null:R.createElement(u,le({},f,{key:"placeholder",isDisabled:g,isFocused:k,innerProps:{id:this.getElementId("placeholder")}}),b);if(_)return x.map(function(M,P){var T=M===w,I="".concat(i.getOptionLabel(M),"-").concat(i.getOptionValue(M));return R.createElement(a,le({},f,{components:{Container:s,Label:l,Remove:c},isFocused:T,isDisabled:g,key:I,index:P,removeProps:{onClick:function(){return i.removeValue(M)},onTouchEnd:function(){return i.removeValue(M)},onMouseDown:function(V){V.preventDefault()}},data:M}),i.formatOptionLabel(M,"value"))});if(m)return null;var S=x[0];return R.createElement(d,le({},f,{data:S,isDisabled:g}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,d=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||c)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(o,le({},a,{innerProps:u,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,d=this.state.isFocused;if(!o||!c)return null;var u={"aria-hidden":"true"};return R.createElement(o,le({},a,{innerProps:u,isDisabled:l,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var s=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return R.createElement(a,le({},s,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(o,le({},a,{innerProps:c,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,s=o.GroupHeading,l=o.Menu,c=o.MenuList,d=o.MenuPortal,u=o.LoadingMessage,f=o.NoOptionsMessage,p=o.Option,h=this.commonProps,g=this.state.focusedOption,_=this.props,m=_.captureMenuScroll,b=_.inputValue,C=_.isLoading,x=_.loadingMessage,w=_.minMenuHeight,k=_.maxMenuHeight,S=_.menuIsOpen,M=_.menuPlacement,P=_.menuPosition,T=_.menuPortalTarget,I=_.menuShouldBlockScroll,O=_.menuShouldScrollIntoView,V=_.noOptionsMessage,N=_.onMenuScrollToTop,A=_.onMenuScrollToBottom;if(!S)return null;var j=function(L,De){var Je=L.type,ge=L.data,Re=L.isDisabled,we=L.isSelected,rt=L.label,it=L.value,Le=g===ge,ne=Re?void 0:function(){return i.onOptionHover(ge)},Ie=Re?void 0:function(){return i.selectOption(ge)},We="".concat(i.getElementId("option"),"-").concat(De),lt={id:We,onClick:Ie,onMouseMove:ne,onMouseOver:ne,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:we};return R.createElement(p,le({},h,{innerProps:lt,data:ge,isDisabled:Re,isSelected:we,key:We,label:rt,type:Je,value:it,isFocused:Le,innerRef:Le?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(L.data,"menu"))},Y;if(this.hasOptions())Y=this.getCategorizedOptions().map(function(he){if(he.type==="group"){var L=he.data,De=he.options,Je=he.index,ge="".concat(i.getElementId("group"),"-").concat(Je),Re="".concat(ge,"-heading");return R.createElement(a,le({},h,{key:ge,data:L,options:De,Heading:s,headingProps:{id:Re,data:he.data},label:i.formatGroupLabel(he.data)}),he.options.map(function(we){return j(we,"".concat(Je,"-").concat(we.index))}))}else if(he.type==="option")return j(he,"".concat(he.index))});else if(C){var H=x({inputValue:b});if(H===null)return null;Y=R.createElement(u,h,H)}else{var G=V({inputValue:b});if(G===null)return null;Y=R.createElement(f,h,G)}var D={minMenuHeight:w,maxMenuHeight:k,menuPlacement:M,menuPosition:P,menuShouldScrollIntoView:O},Ce=R.createElement(Ix,le({},h,D),function(he){var L=he.ref,De=he.placerProps,Je=De.placement,ge=De.maxHeight;return R.createElement(l,le({},h,D,{innerRef:L,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:C,placement:Je}),R.createElement(oS,{captureEnabled:m,onTopArrive:N,onBottomArrive:A,lockEnabled:I},function(Re){return R.createElement(c,le({},h,{innerRef:function(rt){i.getMenuListRef(rt),Re(rt)},innerProps:{role:"listbox","aria-multiselectable":h.isMulti,id:i.getElementId("listbox")},isLoading:C,maxHeight:ge,focusedOption:g}),Y)}))});return T||P==="fixed"?R.createElement(d,le({},h,{appendTo:T,controlElement:this.controlRef,menuPlacement:M,menuPosition:P}),Ce):Ce}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,s=o.isDisabled,l=o.isMulti,c=o.name,d=o.required,u=this.state.selectValue;if(d&&!this.hasValue()&&!s)return R.createElement(lS,{name:c,onFocus:this.onValueInputFocus});if(!(!c||s))if(l)if(a){var f=u.map(function(g){return i.getOptionValue(g)}).join(a);return R.createElement("input",{name:c,type:"hidden",value:f})}else{var p=u.length>0?u.map(function(g,_){return R.createElement("input",{key:"i-".concat(_),name:c,type:"hidden",value:i.getOptionValue(g)})}):R.createElement("input",{name:c,type:"hidden",value:""});return R.createElement("div",null,p)}else{var h=u[0]?this.getOptionValue(u[0]):"";return R.createElement("input",{name:c,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,s=o.focusedOption,l=o.focusedValue,c=o.isFocused,d=o.selectValue,u=this.getFocusableOptions();return R.createElement(Zk,le({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:c,selectValue:d,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,c=this.props,d=c.className,u=c.id,f=c.isDisabled,p=c.menuIsOpen,h=this.state.isFocused,g=this.commonProps=this.getCommonProps();return R.createElement(s,le({},g,{className:d,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:h}),this.renderLiveRegion(),R.createElement(o,le({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:h,menuIsOpen:p}),R.createElement(l,le({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),R.createElement(a,le({},g,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,c=o.ariaSelection,d=o.isFocused,u=o.prevWasFocused,f=o.instancePrefix,p=i.options,h=i.value,g=i.menuIsOpen,_=i.inputValue,m=i.isMulti,b=Cp(h),C={};if(a&&(h!==a.value||p!==a.options||g!==a.menuIsOpen||_!==a.inputValue)){var x=g?kS(i,b):[],w=g?Xp(il(i,b),"".concat(f,"-option")):[],k=s?SS(o,b):null,S=TS(o,x),M=Wu(w,S);C={selectValue:b,focusedOption:S,focusedOptionId:M,focusableOptionsWithIds:w,focusedValue:k,clearFocusValueOnUpdate:!1}}var P=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},T=c,I=d&&u;return d&&!I&&(T={value:nl(m,b,b[0]||null),options:b,action:"initial-input-focus"},I=!u),(c==null?void 0:c.action)==="initial-input-focus"&&(T=null),ae(ae(ae({},C),P),{},{prevProps:i,ariaSelection:T,prevWasFocused:I})}}]),n})(v.Component);o6.defaultProps=xS;var DS=v.forwardRef(function(e,t){var n=aw(e);return R.createElement(o6,le({ref:t},n))}),a6=DS;const s6=e=>y.jsx(rl.ClearIndicator,{...e,children:y.jsx(ie,{name:"close"})}),l6=e=>{var t;return y.jsx(rl.DropdownIndicator,{...e,children:y.jsx(ie,{className:E("buttonDropdownIndicator",((t=e==null?void 0:e.selectProps)==null?void 0:t.menuIsOpen)&&"buttonDropdownIndicator__open"),name:"chevron-down"})})},c6=e=>{const{message:t}=e;return y.jsxs("div",{className:"errorIndicator",children:[y.jsx(ie,{name:"circle-cross",size:"sm",color:"error-50"}),y.jsx("p",{className:"errorIndicator_message",children:t})]})},u6=({id:e})=>{const[t]=v.useState(()=>e||"select_"+Math.random().toFixed(5).slice(2));return{uniqueId:t,handleCloseSelect:()=>{const r=document.querySelector(`#${t} .reactSelect__menu`),i=r==null?void 0:r.parentElement,o=r==null?void 0:r.cloneNode(!0);o&&(o.classList.add("reactSelect__menu--closed"),o.addEventListener("animationend",()=>{i==null||i.removeChild(o),o.removeEventListener("animationend",()=>{})}),i==null||i.appendChild(o))}}},d6=({className:e="",disabled:t=!1,error:n="",label:r="",placeholder:i="",...o})=>{const{options:a,value:s,onChange:l,onInputChange:c}=o,d=n&&typeof n=="string",{uniqueId:u,handleCloseSelect:f}=u6({id:o==null?void 0:o.id});return y.jsxs("div",{className:E("select",n&&"select__error",e&&e),children:[r&&y.jsx("label",{className:"select_label",children:r}),y.jsx(a6,{...o,id:u,className:"reactSelect",classNamePrefix:"reactSelect",isDisabled:t,components:{ClearIndicator:s6,DropdownIndicator:l6},onMenuClose:f,options:a,placeholder:i,value:s&&s,onChange:p=>l&&l(p),onInputChange:p=>c&&c(p)}),d&&y.jsx(c6,{message:n})]})},LS=5,PS=9,ES=(e,t,n)=>{const r=n?3:7;return e<=r?"LEFT_LEANED":e>t-r?"RIGHT_LEANED":"BALANCED"},IS=(e,t,n)=>t?[1,2,3,n,e]:[1,2,3,4,5,6,7,n,e],OS=(e,t,n,r)=>n?[1,r,e,r,t]:[1,r,e-2,e-1,e,e+1,e+2,r,t],AS=(e,t,n)=>t?[1,n,e-2,e-1,e]:[1,n,e-6,e-5,e-4,e-3,e-2,e-1,e],f6=(e,t,n)=>{const r=window.innerWidth<=991.98;if(t<=(r?LS:PS))return Array.from({length:t},(o,a)=>a+1);switch(ES(e,t,r)){case"LEFT_LEANED":return IS(t,r,n);case"BALANCED":return OS(e,t,r,n);case"RIGHT_LEANED":return AS(t,r,n);default:throw new Error("Unknown pager type")}},NS=e=>{const{page:t,size:n=10,total:r,totalPages:i,classname:o,onChange:a,onPageChange:s,onRowsPerPageChange:l,showRowsPerPage:c=!1,labelRowsPerPage:d="Filas por página:",pageSizeOptions:u=[5,10]}=e;r!=null&&i!=null&&console.error("You shouldn't use `total` and `totalPages` at the same time. Prefer `totalPages`.");const f=-1,[p,h]=v.useState(n);v.useEffect(()=>{h(n)},[n]);const g=i??Math.ceil((r??0)/p),[_,m]=v.useState(f6(t,g,f)),[b,C]=v.useState(window.innerWidth<=992),x=P=>{m(f6(P,g,f))};v.useEffect(()=>{const P=()=>{C(window.innerWidth<=992),x(t)};return window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)},[t,g]);const w=P=>{P!==t&&P!==0&&(s==null||s(P),a==null||a(P),x(P))},k=P=>{h(P==null?void 0:P.value),l==null||l(P)},S=v.useMemo(()=>u.map(P=>({label:P.toString(),value:P})),[u]),M=v.useMemo(()=>S.find(P=>P.value===p),[p,S]);return g===1&&!c?null:y.jsxs("section",{"data-testid":"pager-global","aria-label":"Pagination",className:E(Gt.paginator,b&&c&&Gt.paginator__mobile,o==null?void 0:o.global,"container_row","row__center"),children:[c&&y.jsxs("div",{className:Gt.paginator_rowsPerPage,children:[!b&&y.jsx(je,{type:"sm",weight:"medium",children:d}),y.jsx(d6,{className:Gt.select,options:S,value:M,onChange:k})]}),y.jsxs("nav",{"data-testid":"pager-nav",className:E(Gt.navPager,o==null?void 0:o.nav),children:[y.jsx(ui,{icon:"chevrons-left","aria-label":"First page",disabled:t===1,onClick:()=>w(1),className:o==null?void 0:o.arrow}),y.jsx(ui,{icon:"chevron-left","aria-label":"Previous page",disabled:t===1,onClick:()=>w(t-1),className:o==null?void 0:o.arrow}),_.map((P,T)=>y.jsx(G0,{className:o==null?void 0:o.button,ellipsisAsNumber:f,page:P,currentPage:t,onClick:()=>w(P)},`${P}-${T}`)),y.jsx(ui,{icon:"chevron-right","aria-label":"Next page",disabled:t===g,onClick:()=>w(t+1),className:o==null?void 0:o.arrow}),y.jsx(ui,{icon:"chevrons-right","aria-label":"Last page",disabled:t===g,onClick:()=>w(g),className:o==null?void 0:o.arrow})]})]})},RS=e=>e.variant==="cursor",p6=e=>RS(e)?y.jsx(JC,{...e}):y.jsx(NS,{...e});p6.prototype={avocado:"Pager"};function rq(){}function iq(){}function jS(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const FS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,BS={};function h6(e,t){return(BS.jsx?VS:FS).test(e)}const HS=/[ \t\n\f\r]/g;function $S(e){return typeof e=="object"?e.type==="text"?m6(e.value):!1:m6(e)}function m6(e){return e.replace(HS,"")===""}class ta{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ta.prototype.normal={},ta.prototype.property={},ta.prototype.space=void 0;function _6(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new ta(n,r,t)}function Yu(e){return e.toLowerCase()}class Ht{constructor(t,n){this.attribute=n,this.property=t}}Ht.prototype.attribute="",Ht.prototype.booleanish=!1,Ht.prototype.boolean=!1,Ht.prototype.commaOrSpaceSeparated=!1,Ht.prototype.commaSeparated=!1,Ht.prototype.defined=!1,Ht.prototype.mustUseProperty=!1,Ht.prototype.number=!1,Ht.prototype.overloadedBoolean=!1,Ht.prototype.property="",Ht.prototype.spaceSeparated=!1,Ht.prototype.space=void 0;let zS=0;const de=fi(),at=fi(),Uu=fi(),$=fi(),Be=fi(),Gi=fi(),Qt=fi();function fi(){return 2**++zS}const Zu=Object.freeze(Object.defineProperty({__proto__:null,boolean:de,booleanish:at,commaOrSpaceSeparated:Qt,commaSeparated:Gi,number:$,overloadedBoolean:Uu,spaceSeparated:Be},Symbol.toStringTag,{value:"Module"})),qu=Object.keys(Zu);class Gu extends Ht{constructor(t,n,r,i){let o=-1;if(super(t,n),g6(this,"space",i),typeof r=="number")for(;++o<qu.length;){const a=qu[o];g6(this,qu[o],(r&Zu[a])===Zu[a])}}}Gu.prototype.defined=!0;function g6(e,t,n){n&&(e[t]=n)}function Ki(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Gu(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Yu(r)]=r,n[Yu(o.attribute)]=r}return new ta(t,n,e.space)}const y6=Ki({properties:{ariaActiveDescendant:null,ariaAtomic:at,ariaAutoComplete:null,ariaBusy:at,ariaChecked:at,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:Be,ariaCurrent:null,ariaDescribedBy:Be,ariaDetails:null,ariaDisabled:at,ariaDropEffect:Be,ariaErrorMessage:null,ariaExpanded:at,ariaFlowTo:Be,ariaGrabbed:at,ariaHasPopup:null,ariaHidden:at,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Be,ariaLevel:$,ariaLive:null,ariaModal:at,ariaMultiLine:at,ariaMultiSelectable:at,ariaOrientation:null,ariaOwns:Be,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:at,ariaReadOnly:at,ariaRelevant:null,ariaRequired:at,ariaRoleDescription:Be,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:at,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function b6(e,t){return t in e?e[t]:t}function v6(e,t){return b6(e,t.toLowerCase())}const WS=Ki({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gi,acceptCharset:Be,accessKey:Be,action:null,allow:null,allowFullScreen:de,allowPaymentRequest:de,allowUserMedia:de,alt:null,as:null,async:de,autoCapitalize:null,autoComplete:Be,autoFocus:de,autoPlay:de,blocking:Be,capture:null,charSet:null,checked:de,cite:null,className:Be,cols:$,colSpan:null,content:null,contentEditable:at,controls:de,controlsList:Be,coords:$|Gi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:de,defer:de,dir:null,dirName:null,disabled:de,download:Uu,draggable:at,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:de,formTarget:null,headers:Be,height:$,hidden:Uu,high:$,href:null,hrefLang:null,htmlFor:Be,httpEquiv:Be,id:null,imageSizes:null,imageSrcSet:null,inert:de,inputMode:null,integrity:null,is:null,isMap:de,itemId:null,itemProp:Be,itemRef:Be,itemScope:de,itemType:Be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:de,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:de,muted:de,name:null,nonce:null,noModule:de,noValidate:de,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:de,optimum:$,pattern:null,ping:Be,placeholder:null,playsInline:de,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:de,referrerPolicy:null,rel:Be,required:de,reversed:de,rows:$,rowSpan:$,sandbox:Be,scope:null,scoped:de,seamless:de,selected:de,shadowRootClonable:de,shadowRootDelegatesFocus:de,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:at,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:de,useMap:null,value:at,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Be,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:de,declare:de,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:de,noHref:de,noShade:de,noWrap:de,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:at,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:de,disableRemotePlayback:de,prefix:null,property:null,results:$,security:null,unselectable:null},space:"html",transform:v6}),YS=Ki({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Qt,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:Be,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:de,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Gi,g2:Gi,glyphName:Gi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:Qt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qt,rev:Qt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qt,requiredFeatures:Qt,requiredFonts:Qt,requiredFormats:Qt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:Qt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qt,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:b6}),C6=Ki({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),w6=Ki({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:v6}),x6=Ki({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),US={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ZS=/[A-Z]/g,k6=/-[a-z]/g,qS=/^data[-\w.:]+$/i;function GS(e,t){const n=Yu(t);let r=t,i=Ht;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&qS.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(k6,QS);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!k6.test(o)){let a=o.replace(ZS,KS);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Gu}return new i(r,t)}function KS(e){return"-"+e.toLowerCase()}function QS(e){return e.charAt(1).toUpperCase()}const XS=_6([y6,WS,C6,w6,x6],"html"),Ku=_6([y6,YS,C6,w6,x6],"svg");function JS(e){return e.join(" ").trim()}var Qi={},Qu,S6;function eT(){if(S6)return Qu;S6=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
776
+ `,c="/",d="*",u="",f="comment",p="declaration";function h(_,m){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];m=m||{};var b=1,C=1;function x(N){var A=N.match(t);A&&(b+=A.length);var j=N.lastIndexOf(l);C=~j?N.length-j:C+N.length}function w(){var N={line:b,column:C};return function(A){return A.position=new k(N),P(),A}}function k(N){this.start=N,this.end={line:b,column:C},this.source=m.source}k.prototype.content=_;function S(N){var A=new Error(m.source+":"+b+":"+C+": "+N);if(A.reason=N,A.filename=m.source,A.line=b,A.column=C,A.source=_,!m.silent)throw A}function M(N){var A=N.exec(_);if(A){var j=A[0];return x(j),_=_.slice(j.length),A}}function P(){M(n)}function T(N){var A;for(N=N||[];A=I();)A!==!1&&N.push(A);return N}function I(){var N=w();if(!(c!=_.charAt(0)||d!=_.charAt(1))){for(var A=2;u!=_.charAt(A)&&(d!=_.charAt(A)||c!=_.charAt(A+1));)++A;if(A+=2,u===_.charAt(A-1))return S("End of comment missing");var j=_.slice(2,A-2);return C+=2,x(j),_=_.slice(A),C+=2,N({type:f,comment:j})}}function O(){var N=w(),A=M(r);if(A){if(I(),!M(i))return S("property missing ':'");var j=M(o),Y=N({type:p,property:g(A[0].replace(e,u)),value:j?g(j[0].replace(e,u)):u});return M(a),Y}}function V(){var N=[];T(N);for(var A;A=O();)A!==!1&&(N.push(A),T(N));return N}return P(),V()}function g(_){return _?_.replace(s,u):u}return Qu=h,Qu}var T6;function tT(){if(T6)return Qi;T6=1;var e=Qi&&Qi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=n;const t=e(eT());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const a=(0,t.default)(r),s=typeof i=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:c,value:d}=l;s?i(c,d,l):d&&(o=o||{},o[c]=d)}),o}return Qi}var na={},M6;function nT(){if(M6)return na;M6=1,Object.defineProperty(na,"__esModule",{value:!0}),na.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(c){return!c||n.test(c)||e.test(c)},a=function(c,d){return d.toUpperCase()},s=function(c,d){return"".concat(d,"-")},l=function(c,d){return d===void 0&&(d={}),o(c)?c:(c=c.toLowerCase(),d.reactCompat?c=c.replace(i,s):c=c.replace(r,s),c.replace(t,a))};return na.camelCase=l,na}var ra,D6;function rT(){if(D6)return ra;D6=1;var e=ra&&ra.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(tT()),n=nT();function r(i,o){var a={};return!i||typeof i!="string"||(0,t.default)(i,function(s,l){s&&l&&(a[(0,n.camelCase)(s,o)]=l)}),a}return r.default=r,ra=r,ra}var iT=rT();const oT=En(iT),L6=P6("end"),Xu=P6("start");function P6(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function aT(e){const t=Xu(e),n=L6(e);if(t&&n)return{start:t,end:n}}function ia(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?E6(e.position):"start"in e||"end"in e?E6(e):"line"in e||"column"in e?Ju(e):""}function Ju(e){return I6(e&&e.line)+":"+I6(e&&e.column)}function E6(e){return Ju(e&&e.start)+"-"+Ju(e&&e.end)}function I6(e){return e&&typeof e=="number"?e:1}class vt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=ia(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}vt.prototype.file="",vt.prototype.name="",vt.prototype.reason="",vt.prototype.message="",vt.prototype.stack="",vt.prototype.column=void 0,vt.prototype.line=void 0,vt.prototype.ancestors=void 0,vt.prototype.cause=void 0,vt.prototype.fatal=void 0,vt.prototype.place=void 0,vt.prototype.ruleId=void 0,vt.prototype.source=void 0;const e1={}.hasOwnProperty,sT=new Map,lT=/[A-Z]/g,cT=new Set(["table","tbody","thead","tfoot","tr"]),uT=new Set(["td","th"]),O6="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function dT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=bT(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=yT(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Ku:XS,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=A6(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function A6(e,t,n){if(t.type==="element")return fT(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return pT(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return mT(e,t,n);if(t.type==="mdxjsEsm")return hT(e,t);if(t.type==="root")return _T(e,t,n);if(t.type==="text")return gT(e,t)}function fT(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ku,e.schema=i),e.ancestors.push(t);const o=R6(e,t.tagName,!1),a=vT(e,t);let s=n1(e,t);return cT.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!$S(l):!0})),N6(e,a,o,t),t1(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function pT(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}oa(e,t.position)}function hT(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);oa(e,t.position)}function mT(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Ku,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:R6(e,t.name,!0),a=CT(e,t),s=n1(e,t);return N6(e,a,o,t),t1(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function _T(e,t,n){const r={};return t1(r,n1(e,t)),e.create(t,e.Fragment,r,n)}function gT(e,t){return t.value}function N6(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function t1(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function yT(e,t,n){return r;function r(i,o,a,s){const c=Array.isArray(a.children)?n:t;return s?c(o,a,s):c(o,a)}}function bT(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=Xu(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function vT(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&e1.call(t.properties,i)){const o=wT(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&uT.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function CT(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else oa(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else oa(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function n1(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:sT;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const c=i.get(l)||0;a=l+"-"+c,i.set(l,c+1)}}const s=A6(e,o,a);s!==void 0&&n.push(s)}return n}function wT(e,t,n){const r=GS(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?jS(n):JS(n)),r.property==="style"){let i=typeof n=="object"?n:xT(e,String(n));return e.stylePropertyNameCase==="css"&&(i=kT(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?US[r.property]||r.property:r.attribute,n]}}function xT(e,t){try{return oT(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new vt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=O6+"#cannot-parse-style-attribute",i}}function R6(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const s=h6(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=a}else r=h6(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return e1.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);oa(e)}function oa(e,t){const n=new vt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=O6+"#cannot-handle-mdx-estrees-without-createevaluater",n}function kT(e){const t={};let n;for(n in e)e1.call(e,n)&&(t[ST(n)]=e[n]);return t}function ST(e){let t=e.replace(lT,TT);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function TT(e){return"-"+e.toLowerCase()}const r1={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},MT={};function i1(e,t){const n=MT,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return j6(e,r,i)}function j6(e,t,n){if(DT(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return F6(e.children,t,n)}return Array.isArray(e)?F6(e,t,n):""}function F6(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=j6(e[i],t,n);return r.join("")}function DT(e){return!!(e&&typeof e=="object")}const V6=document.createElement("i");function o1(e){const t="&"+e+";";V6.innerHTML=t;const n=V6.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Xt(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function cn(e,t){return e.length>0?(Xt(e,e.length,0,t),e):t}const B6={}.hasOwnProperty;function H6(e){const t={};let n=-1;for(;++n<e.length;)LT(t,e[n]);return t}function LT(e,t){let n;for(n in t){const i=(B6.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){B6.call(i,a)||(i[a]=[]);const s=o[a];PT(i[a],Array.isArray(s)?s:s?[s]:[])}}}function PT(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Xt(e,0,0,r)}function $6(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function yn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Pt=Ir(/[A-Za-z]/),Ct=Ir(/[\dA-Za-z]/),ET=Ir(/[#-'*+\--9=?A-Z^-~]/);function al(e){return e!==null&&(e<32||e===127)}const a1=Ir(/\d/),IT=Ir(/[\dA-Fa-f]/),OT=Ir(/[!-/:-@[-`{-~]/);function se(e){return e!==null&&e<-2}function Fe(e){return e!==null&&(e<0||e===32)}function me(e){return e===-2||e===-1||e===32}const sl=Ir(new RegExp("\\p{P}|\\p{S}","u")),pi=Ir(/\s/);function Ir(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Xi(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&Ct(e.charCodeAt(n+1))&&Ct(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function be(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return me(l)?(e.enter(n),s(l)):t(l)}function s(l){return me(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const AT={tokenize:NT};function NT(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),be(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return se(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const RT={tokenize:jT},z6={tokenize:FT};function jT(e){const t=this,n=[];let r=0,i,o,a;return s;function s(C){if(r<n.length){const x=n[r];return t.containerState=x[1],e.attempt(x[0].continuation,l,c)(C)}return c(C)}function l(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const x=t.events.length;let w=x,k;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){k=t.events[w][1].end;break}m(r);let S=x;for(;S<t.events.length;)t.events[S][1].end={...k},S++;return Xt(t.events,w+1,0,t.events.slice(x)),t.events.length=S,c(C)}return s(C)}function c(C){if(r===n.length){if(!i)return f(C);if(i.currentConstruct&&i.currentConstruct.concrete)return h(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(z6,d,u)(C)}function d(C){return i&&b(),m(r),f(C)}function u(C){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,h(C)}function f(C){return t.containerState={},e.attempt(z6,p,h)(C)}function p(C){return r++,n.push([t.currentConstruct,t.containerState]),f(C)}function h(C){if(C===null){i&&b(),m(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),g(C)}function g(C){if(C===null){_(e.exit("chunkFlow"),!0),m(0),e.consume(C);return}return se(C)?(e.consume(C),_(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(C),g)}function _(C,x){const w=t.sliceStream(C);if(x&&w.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(w),t.parser.lazy[C.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<a&&(!i.events[k][1].end||i.events[k][1].end.offset>a))return;const S=t.events.length;let M=S,P,T;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(P){T=t.events[M][1].end;break}P=!0}for(m(r),k=S;k<t.events.length;)t.events[k][1].end={...T},k++;Xt(t.events,M+1,0,t.events.slice(S)),t.events.length=k}}function m(C){let x=n.length;for(;x-- >C;){const w=n[x];t.containerState=w[1],w[0].exit.call(t,e)}n.length=C}function b(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function FT(e,t,n){return be(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ji(e){if(e===null||Fe(e)||pi(e))return 1;if(sl(e))return 2}function ll(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const s1={name:"attention",resolveAll:VT,tokenize:BT};function VT(e,t){let n=-1,r,i,o,a,s,l,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const u={...e[r][1].end},f={...e[n][1].start};W6(u,-l),W6(f,l),a={type:l>1?"strongSequence":"emphasisSequence",start:u,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=cn(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=cn(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=cn(c,ll(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=cn(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=cn(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Xt(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function BT(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ji(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),d=Ji(l),u=!d||d===2&&i||n.includes(l),f=!i||i===2&&d||n.includes(r);return c._open=!!(o===42?u:u&&(i||!f)),c._close=!!(o===42?f:f&&(d||!u)),t(l)}}function W6(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const HT={name:"autolink",tokenize:$T};function $T(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return Pt(p)?(e.consume(p),a):p===64?n(p):c(p)}function a(p){return p===43||p===45||p===46||Ct(p)?(r=1,s(p)):c(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||Ct(p))&&r++<32?(e.consume(p),s):(r=0,c(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||al(p)?n(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),d):ET(p)?(e.consume(p),c):n(p)}function d(p){return Ct(p)?u(p):n(p)}function u(p){return p===46?(e.consume(p),r=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Ct(p))&&r++<63){const h=p===45?f:u;return e.consume(p),h}return n(p)}}const aa={partial:!0,tokenize:zT};function zT(e,t,n){return r;function r(o){return me(o)?be(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||se(o)?t(o):n(o)}}const Y6={continuation:{tokenize:YT},exit:UT,name:"blockQuote",tokenize:WT};function WT(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return me(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function YT(e,t,n){const r=this;return i;function i(a){return me(a)?be(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(Y6,t,n)(a)}}function UT(e){e.exit("blockQuote")}const U6={name:"characterEscape",tokenize:ZT};function ZT(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return OT(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Z6={name:"characterReference",tokenize:qT};function qT(e,t,n){const r=this;let i=0,o,a;return s;function s(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),l}function l(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=Ct,d(u))}function c(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=IT,d):(e.enter("characterReferenceValue"),o=7,a=a1,d(u))}function d(u){if(u===59&&i){const f=e.exit("characterReferenceValue");return a===Ct&&!o1(r.sliceSerialize(f))?n(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(u)&&i++<o?(e.consume(u),d):n(u)}}const q6={partial:!0,tokenize:KT},G6={concrete:!0,name:"codeFenced",tokenize:GT};function GT(e,t,n){const r=this,i={partial:!0,tokenize:w};let o=0,a=0,s;return l;function l(k){return c(k)}function c(k){const S=r.events[r.events.length-1];return o=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,s=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(k)}function d(k){return k===s?(a++,e.consume(k),d):a<3?n(k):(e.exit("codeFencedFenceSequence"),me(k)?be(e,u,"whitespace")(k):u(k))}function u(k){return k===null||se(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(q6,g,x)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===null||se(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(k)):me(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),be(e,p,"whitespace")(k)):k===96&&k===s?n(k):(e.consume(k),f)}function p(k){return k===null||se(k)?u(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(k))}function h(k){return k===null||se(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(k)):k===96&&k===s?n(k):(e.consume(k),h)}function g(k){return e.attempt(i,x,_)(k)}function _(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),m}function m(k){return o>0&&me(k)?be(e,b,"linePrefix",o+1)(k):b(k)}function b(k){return k===null||se(k)?e.check(q6,g,x)(k):(e.enter("codeFlowValue"),C(k))}function C(k){return k===null||se(k)?(e.exit("codeFlowValue"),b(k)):(e.consume(k),C)}function x(k){return e.exit("codeFenced"),t(k)}function w(k,S,M){let P=0;return T;function T(A){return k.enter("lineEnding"),k.consume(A),k.exit("lineEnding"),I}function I(A){return k.enter("codeFencedFence"),me(A)?be(k,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):O(A)}function O(A){return A===s?(k.enter("codeFencedFenceSequence"),V(A)):M(A)}function V(A){return A===s?(P++,k.consume(A),V):P>=a?(k.exit("codeFencedFenceSequence"),me(A)?be(k,N,"whitespace")(A):N(A)):M(A)}function N(A){return A===null||se(A)?(k.exit("codeFencedFence"),S(A)):M(A)}}}function KT(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const l1={name:"codeIndented",tokenize:XT},QT={partial:!0,tokenize:JT};function XT(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),be(e,o,"linePrefix",5)(c)}function o(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):se(c)?e.attempt(QT,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||se(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function JT(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):se(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):be(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):se(a)?i(a):n(a)}}const eM={name:"codeText",previous:nM,resolve:tM,tokenize:rM};function tM(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function nM(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function rM(e,t,n){let r=0,i,o;return a;function a(u){return e.enter("codeText"),e.enter("codeTextSequence"),s(u)}function s(u){return u===96?(e.consume(u),r++,s):(e.exit("codeTextSequence"),l(u))}function l(u){return u===null?n(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),l):u===96?(o=e.enter("codeTextSequence"),i=0,d(u)):se(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(u))}function c(u){return u===null||u===32||u===96||se(u)?(e.exit("codeTextData"),l(u)):(e.consume(u),c)}function d(u){return u===96?(e.consume(u),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(u)):(o.type="codeTextData",c(u))}}class iM{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&sa(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),sa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),sa(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);sa(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);sa(this.left,n.reverse())}}}function sa(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function K6(e){const t={};let n=-1,r,i,o,a,s,l,c;const d=new iM(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,oM(d,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=d.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},s=d.slice(i,n),s.unshift(r),d.splice(i,n-i+1,s))}}return Xt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function oM(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],c={};let d,u,f=-1,p=n,h=0,g=0;const _=[g];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),u&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),u=p,p=p.next}for(p=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(g=f+1,_.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):_.pop(),f=_.length;f--;){const m=s.slice(_[f],_[f+1]),b=o.pop();l.push([b,b+m.length-1]),e.splice(b,2,m)}for(l.reverse(),f=-1;++f<l.length;)c[h+l[f][0]]=h+l[f][1],h+=l[f][1]-l[f][0]-1;return c}const aM={resolve:lM,tokenize:cM},sM={partial:!0,tokenize:uM};function lM(e){return K6(e),e}function cM(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):se(s)?e.check(sM,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function uM(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),be(e,o,"linePrefix")}function o(a){if(a===null||se(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Q6(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let d=0;return u;function u(m){return m===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(m),e.exit(o),f):m===null||m===32||m===41||al(m)?n(m):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(m))}function f(m){return m===62?(e.enter(o),e.consume(m),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===62?(e.exit("chunkString"),e.exit(s),f(m)):m===null||m===60||se(m)?n(m):(e.consume(m),m===92?h:p)}function h(m){return m===60||m===62||m===92?(e.consume(m),p):p(m)}function g(m){return!d&&(m===null||m===41||Fe(m))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(m)):d<c&&m===40?(e.consume(m),d++,g):m===41?(e.consume(m),d--,g):m===null||m===32||m===40||al(m)?n(m):(e.consume(m),m===92?_:g)}function _(m){return m===40||m===41||m===92?(e.consume(m),g):g(m)}}function X6(e,t,n,r,i,o){const a=this;let s=0,l;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),d}function d(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):se(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===null||p===91||p===93||se(p)||s++>999?(e.exit("chunkString"),d(p)):(e.consume(p),l||(l=!me(p)),p===92?f:u)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,u):u(p)}}function J6(e,t,n,r,i,o){let a;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),a=f===40?41:f,l):n(f)}function l(f){return f===a?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),c(f))}function c(f){return f===a?(e.exit(o),l(a)):f===null?n(f):se(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),be(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===a||f===null||se(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?u:d)}function u(f){return f===a||f===92?(e.consume(f),d):d(f)}}function la(e,t){let n;return r;function r(i){return se(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):me(i)?be(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const dM={name:"definition",tokenize:pM},fM={partial:!0,tokenize:hM};function pM(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),a(p)}function a(p){return X6.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=yn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return Fe(p)?la(e,c)(p):c(p)}function c(p){return Q6(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(fM,u,u)(p)}function u(p){return me(p)?be(e,f,"whitespace")(p):f(p)}function f(p){return p===null||se(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function hM(e,t,n){return r;function r(s){return Fe(s)?la(e,i)(s):n(s)}function i(s){return J6(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return me(s)?be(e,a,"whitespace")(s):a(s)}function a(s){return s===null||se(s)?t(s):n(s)}}const mM={name:"hardBreakEscape",tokenize:_M};function _M(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return se(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const gM={name:"headingAtx",resolve:yM,tokenize:bM};function yM(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Xt(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function bM(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),o(d)}function o(d){return e.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&r++<6?(e.consume(d),a):d===null||Fe(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||se(d)?(e.exit("atxHeading"),t(d)):me(d)?be(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||Fe(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}const vM=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],eh=["pre","script","style","textarea"],CM={concrete:!0,name:"htmlFlow",resolveTo:kM,tokenize:SM},wM={partial:!0,tokenize:MM},xM={partial:!0,tokenize:TM};function kM(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function SM(e,t,n){const r=this;let i,o,a,s,l;return c;function c(L){return d(L)}function d(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),u}function u(L){return L===33?(e.consume(L),f):L===47?(e.consume(L),o=!0,g):L===63?(e.consume(L),i=3,r.interrupt?t:D):Pt(L)?(e.consume(L),a=String.fromCharCode(L),_):n(L)}function f(L){return L===45?(e.consume(L),i=2,p):L===91?(e.consume(L),i=5,s=0,h):Pt(L)?(e.consume(L),i=4,r.interrupt?t:D):n(L)}function p(L){return L===45?(e.consume(L),r.interrupt?t:D):n(L)}function h(L){const De="CDATA[";return L===De.charCodeAt(s++)?(e.consume(L),s===De.length?r.interrupt?t:O:h):n(L)}function g(L){return Pt(L)?(e.consume(L),a=String.fromCharCode(L),_):n(L)}function _(L){if(L===null||L===47||L===62||Fe(L)){const De=L===47,Je=a.toLowerCase();return!De&&!o&&eh.includes(Je)?(i=1,r.interrupt?t(L):O(L)):vM.includes(a.toLowerCase())?(i=6,De?(e.consume(L),m):r.interrupt?t(L):O(L)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):o?b(L):C(L))}return L===45||Ct(L)?(e.consume(L),a+=String.fromCharCode(L),_):n(L)}function m(L){return L===62?(e.consume(L),r.interrupt?t:O):n(L)}function b(L){return me(L)?(e.consume(L),b):T(L)}function C(L){return L===47?(e.consume(L),T):L===58||L===95||Pt(L)?(e.consume(L),x):me(L)?(e.consume(L),C):T(L)}function x(L){return L===45||L===46||L===58||L===95||Ct(L)?(e.consume(L),x):w(L)}function w(L){return L===61?(e.consume(L),k):me(L)?(e.consume(L),w):C(L)}function k(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),l=L,S):me(L)?(e.consume(L),k):M(L)}function S(L){return L===l?(e.consume(L),l=null,P):L===null||se(L)?n(L):(e.consume(L),S)}function M(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||Fe(L)?w(L):(e.consume(L),M)}function P(L){return L===47||L===62||me(L)?C(L):n(L)}function T(L){return L===62?(e.consume(L),I):n(L)}function I(L){return L===null||se(L)?O(L):me(L)?(e.consume(L),I):n(L)}function O(L){return L===45&&i===2?(e.consume(L),j):L===60&&i===1?(e.consume(L),Y):L===62&&i===4?(e.consume(L),Ce):L===63&&i===3?(e.consume(L),D):L===93&&i===5?(e.consume(L),G):se(L)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(wM,he,V)(L)):L===null||se(L)?(e.exit("htmlFlowData"),V(L)):(e.consume(L),O)}function V(L){return e.check(xM,N,he)(L)}function N(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),A}function A(L){return L===null||se(L)?V(L):(e.enter("htmlFlowData"),O(L))}function j(L){return L===45?(e.consume(L),D):O(L)}function Y(L){return L===47?(e.consume(L),a="",H):O(L)}function H(L){if(L===62){const De=a.toLowerCase();return eh.includes(De)?(e.consume(L),Ce):O(L)}return Pt(L)&&a.length<8?(e.consume(L),a+=String.fromCharCode(L),H):O(L)}function G(L){return L===93?(e.consume(L),D):O(L)}function D(L){return L===62?(e.consume(L),Ce):L===45&&i===2?(e.consume(L),D):O(L)}function Ce(L){return L===null||se(L)?(e.exit("htmlFlowData"),he(L)):(e.consume(L),Ce)}function he(L){return e.exit("htmlFlow"),t(L)}}function TM(e,t,n){const r=this;return i;function i(a){return se(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function MM(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(aa,t,n)}}const DM={name:"htmlText",tokenize:LM};function LM(e,t,n){const r=this;let i,o,a;return s;function s(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),l}function l(D){return D===33?(e.consume(D),c):D===47?(e.consume(D),w):D===63?(e.consume(D),C):Pt(D)?(e.consume(D),M):n(D)}function c(D){return D===45?(e.consume(D),d):D===91?(e.consume(D),o=0,h):Pt(D)?(e.consume(D),b):n(D)}function d(D){return D===45?(e.consume(D),p):n(D)}function u(D){return D===null?n(D):D===45?(e.consume(D),f):se(D)?(a=u,Y(D)):(e.consume(D),u)}function f(D){return D===45?(e.consume(D),p):u(D)}function p(D){return D===62?j(D):D===45?f(D):u(D)}function h(D){const Ce="CDATA[";return D===Ce.charCodeAt(o++)?(e.consume(D),o===Ce.length?g:h):n(D)}function g(D){return D===null?n(D):D===93?(e.consume(D),_):se(D)?(a=g,Y(D)):(e.consume(D),g)}function _(D){return D===93?(e.consume(D),m):g(D)}function m(D){return D===62?j(D):D===93?(e.consume(D),m):g(D)}function b(D){return D===null||D===62?j(D):se(D)?(a=b,Y(D)):(e.consume(D),b)}function C(D){return D===null?n(D):D===63?(e.consume(D),x):se(D)?(a=C,Y(D)):(e.consume(D),C)}function x(D){return D===62?j(D):C(D)}function w(D){return Pt(D)?(e.consume(D),k):n(D)}function k(D){return D===45||Ct(D)?(e.consume(D),k):S(D)}function S(D){return se(D)?(a=S,Y(D)):me(D)?(e.consume(D),S):j(D)}function M(D){return D===45||Ct(D)?(e.consume(D),M):D===47||D===62||Fe(D)?P(D):n(D)}function P(D){return D===47?(e.consume(D),j):D===58||D===95||Pt(D)?(e.consume(D),T):se(D)?(a=P,Y(D)):me(D)?(e.consume(D),P):j(D)}function T(D){return D===45||D===46||D===58||D===95||Ct(D)?(e.consume(D),T):I(D)}function I(D){return D===61?(e.consume(D),O):se(D)?(a=I,Y(D)):me(D)?(e.consume(D),I):P(D)}function O(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),i=D,V):se(D)?(a=O,Y(D)):me(D)?(e.consume(D),O):(e.consume(D),N)}function V(D){return D===i?(e.consume(D),i=void 0,A):D===null?n(D):se(D)?(a=V,Y(D)):(e.consume(D),V)}function N(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||Fe(D)?P(D):(e.consume(D),N)}function A(D){return D===47||D===62||Fe(D)?P(D):n(D)}function j(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function Y(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),H}function H(D){return me(D)?be(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):G(D)}function G(D){return e.enter("htmlTextData"),a(D)}}const c1={name:"labelEnd",resolveAll:OM,resolveTo:AM,tokenize:NM},PM={tokenize:RM},EM={tokenize:jM},IM={tokenize:FM};function OM(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Xt(e,0,e.length,n),e}function AM(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},d={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=cn(s,e.slice(o+1,o+r+3)),s=cn(s,[["enter",d,t]]),s=cn(s,ll(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=cn(s,[["exit",d,t],e[a-2],e[a-1],["exit",c,t]]),s=cn(s,e.slice(a+1)),s=cn(s,[["exit",l,t]]),Xt(e,o,e.length,s),e}function NM(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(f){return o?o._inactive?u(f):(a=r.parser.defined.includes(yn(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(PM,d,a?d:u)(f):f===91?e.attempt(EM,d,a?c:u)(f):a?d(f):u(f)}function c(f){return e.attempt(IM,d,u)(f)}function d(f){return t(f)}function u(f){return o._balanced=!0,n(f)}}function RM(e,t,n){return r;function r(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),i}function i(u){return Fe(u)?la(e,o)(u):o(u)}function o(u){return u===41?d(u):Q6(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function a(u){return Fe(u)?la(e,l)(u):d(u)}function s(u){return n(u)}function l(u){return u===34||u===39||u===40?J6(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):d(u)}function c(u){return Fe(u)?la(e,d)(u):d(u)}function d(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):n(u)}}function jM(e,t,n){const r=this;return i;function i(s){return X6.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(yn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function FM(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const VM={name:"labelStartImage",resolveAll:c1.resolveAll,tokenize:BM};function BM(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const HM={name:"labelStartLink",resolveAll:c1.resolveAll,tokenize:$M};function $M(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const u1={name:"lineEnding",tokenize:zM};function zM(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),be(e,t,"linePrefix")}}const cl={name:"thematicBreak",tokenize:WM};function WM(e,t,n){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||se(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),me(c)?be(e,s,"whitespace")(c):s(c))}}const $t={continuation:{tokenize:qM},exit:KM,name:"list",tokenize:ZM},YM={partial:!0,tokenize:QM},UM={partial:!0,tokenize:GM};function ZM(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:a1(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(cl,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return a1(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(aa,r.interrupt?n:d,e.attempt(YM,f,u))}function d(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function u(p){return me(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function qM(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(aa,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,be(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!me(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(UM,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,be(e,e.attempt($t,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function GM(e,t,n){const r=this;return be(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function KM(e){e.exit(this.containerState.type)}function QM(e,t,n){const r=this;return be(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!me(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const th={name:"setextUnderline",resolveTo:XM,tokenize:JM};function XM(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function JM(e,t,n){const r=this;let i;return o;function o(c){let d=r.events.length,u;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){u=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),me(c)?be(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||se(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const eD={tokenize:tD};function tD(e){const t=this,n=e.attempt(aa,r,e.attempt(this.parser.constructs.flowInitial,i,be(e,e.attempt(this.parser.constructs.flow,i,e.attempt(aM,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const nD={resolveAll:rh()},rD=nh("string"),iD=nh("text");function nh(e){return{resolveAll:rh(e==="text"?oD:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(d){return c(d)?o(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return c(d)?(n.exit("data"),o(d)):(n.consume(d),l)}function c(d){if(d===null)return!0;const u=i[d];let f=-1;if(u)for(;++f<u.length;){const p=u[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function rh(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function oD(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const aD=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:dM},disable:{null:[]},document:{42:$t,43:$t,45:$t,48:$t,49:$t,50:$t,51:$t,52:$t,53:$t,54:$t,55:$t,56:$t,57:$t,62:Y6},flow:{35:gM,42:cl,45:[th,cl],60:CM,61:th,95:cl,96:G6,126:G6},flowInitial:{[-2]:l1,[-1]:l1,32:l1},insideSpan:{null:[s1,nD]},string:{38:Z6,92:U6},text:{[-5]:u1,[-4]:u1,[-3]:u1,33:VM,38:Z6,42:s1,60:[HT,DM],91:HM,92:[mM,U6],93:c1,95:s1,96:eM}},Symbol.toStringTag,{value:"Module"}));function sD(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[];const l={attempt:S(w),check:S(k),consume:b,enter:C,exit:x,interrupt:S(k,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:h,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:u};let d=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function u(I){return a=cn(a,I),_(),a[a.length-1]!==null?[]:(M(t,0),c.events=ll(o,c.events,c),c.events)}function f(I,O){return cD(p(I),O)}function p(I){return lD(a,I)}function h(){const{_bufferIndex:I,_index:O,line:V,column:N,offset:A}=r;return{_bufferIndex:I,_index:O,line:V,column:N,offset:A}}function g(I){i[I.line]=I.column,T()}function _(){let I;for(;r._index<a.length;){const O=a[r._index];if(typeof O=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<O.length;)m(O.charCodeAt(r._bufferIndex));else m(O)}}function m(I){d=d(I)}function b(I){se(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,T()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=I}function C(I,O){const V=O||{};return V.type=I,V.start=h(),c.events.push(["enter",V,c]),s.push(V),V}function x(I){const O=s.pop();return O.end=h(),c.events.push(["exit",O,c]),O}function w(I,O){M(I,O.from)}function k(I,O){O.restore()}function S(I,O){return V;function V(N,A,j){let Y,H,G,D;return Array.isArray(N)?he(N):"tokenize"in N?he([N]):Ce(N);function Ce(ge){return Re;function Re(we){const rt=we!==null&&ge[we],it=we!==null&&ge.null,Le=[...Array.isArray(rt)?rt:rt?[rt]:[],...Array.isArray(it)?it:it?[it]:[]];return he(Le)(we)}}function he(ge){return Y=ge,H=0,ge.length===0?j:L(ge[H])}function L(ge){return Re;function Re(we){return D=P(),G=ge,ge.partial||(c.currentConstruct=ge),ge.name&&c.parser.constructs.disable.null.includes(ge.name)?Je():ge.tokenize.call(O?Object.assign(Object.create(c),O):c,l,De,Je)(we)}}function De(ge){return I(G,D),A}function Je(ge){return D.restore(),++H<Y.length?L(Y[H]):j}}}function M(I,O){I.resolveAll&&!o.includes(I)&&o.push(I),I.resolve&&Xt(c.events,O,c.events.length-O,I.resolve(c.events.slice(O),c)),I.resolveTo&&(c.events=I.resolveTo(c.events,c))}function P(){const I=h(),O=c.previous,V=c.currentConstruct,N=c.events.length,A=Array.from(s);return{from:N,restore:j};function j(){r=I,c.previous=O,c.currentConstruct=V,c.events.length=N,s=A,T()}}function T(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function lD(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function cD(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
777
777
  `;break}case-3:{a=`\r
778
- `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function uD(e){const r={constructs:H6([aD,...(e||{}).extensions||[]]),content:i(AT),defined:[],document:i(RT),flow:i(eD),lazy:{},string:i(rD),text:i(iD)};return r;function i(o){return a;function a(s){return sD(r,o,s)}}}function dD(e){for(;!K6(e););return e}const ih=/[\0\t\n\r]/g;function fD(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let c,u,d,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(ih.lastIndex=d,c=ih.exec(o),f=c&&c.index!==void 0?c.index:o.length,p=o.charCodeAt(f),!c){t=o.slice(d);break}if(p===10&&d===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<f&&(l.push(o.slice(d,f)),e+=f-d),p){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const pD=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hD(e){return e.replace(pD,mD)}function mD(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return $6(n.slice(o?2:1),o?16:10)}return o1(n)||e}const oh={}.hasOwnProperty;function _D(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),gD(n)(dD(uD(n).document().write(fD()(e,t,!0))))}function gD(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Dn),autolinkProtocol:P,autolinkEmail:P,atxHeading:o(lt),blockQuote:o(it),characterEscape:P,characterReference:P,codeFenced:o(Le),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(Le,a),codeText:o(ne,a),codeTextData:P,data:P,codeFlowValue:P,definition:o(Ie),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(We),hardBreakEscape:o(nn),hardBreakTrailing:o(nn),htmlFlow:o(hn,a),htmlFlowData:P,htmlText:o(hn,a),htmlTextData:P,image:o(Cr),label:a,link:o(Dn),listItem:o(Di),listItemValue:f,listOrdered:o(rr,d),listUnordered:o(rr),paragraph:o(Xa),reference:L,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(lt),strong:o(Ja),thematicBreak:o(wc)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:rt,autolinkProtocol:we,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:Je,characterReferenceMarkerNumeric:Je,characterReferenceValue:ge,characterReference:Re,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:T,codeIndented:l(m),codeText:l(A),codeTextData:T,data:T,definition:l(),definitionDestinationString:x,definitionLabelString:b,definitionTitleString:C,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(V),htmlFlowData:T,htmlText:l(N),htmlTextData:T,image:l(Y),label:G,labelText:H,lineEnding:I,link:l(j),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:De,resourceDestinationString:D,resourceTitleString:Ce,resource:he,setextHeading:l(M),setextHeadingLineSequence:S,setextHeadingText:k,strong:l(),thematicBreak:l()}};ah(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(F){let W={type:"root",children:[]};const ce={stack:[W],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:u,data:n},fe=[];let xe=-1;for(;++xe<F.length;)if(F[xe][1].type==="listOrdered"||F[xe][1].type==="listUnordered")if(F[xe][0]==="enter")fe.push(xe);else{const Rt=fe.pop();xe=i(F,Rt,xe)}for(xe=-1;++xe<F.length;){const Rt=t[F[xe][0]];oh.call(Rt,F[xe][1].type)&&Rt[F[xe][1].type].call(Object.assign({sliceSerialize:F[xe][2].sliceSerialize},ce),F[xe][1])}if(ce.tokenStack.length>0){const Rt=ce.tokenStack[ce.tokenStack.length-1];(Rt[1]||sh).call(ce,void 0,Rt[0])}for(W.position={start:Or(F.length>0?F[0][1].start:{line:1,column:1,offset:0}),end:Or(F.length>0?F[F.length-2][1].end:{line:1,column:1,offset:0})},xe=-1;++xe<t.transforms.length;)W=t.transforms[xe](W)||W;return W}function i(F,W,ce){let fe=W-1,xe=-1,Rt=!1,Ln,Ut,Li,Pi;for(;++fe<=ce;){const jt=F[fe];switch(jt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{jt[0]==="enter"?xe++:xe--,Pi=void 0;break}case"lineEndingBlank":{jt[0]==="enter"&&(Ln&&!Pi&&!xe&&!Li&&(Li=fe),Pi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pi=void 0}if(!xe&&jt[0]==="enter"&&jt[1].type==="listItemPrefix"||xe===-1&&jt[0]==="exit"&&(jt[1].type==="listUnordered"||jt[1].type==="listOrdered")){if(Ln){let Ur=fe;for(Ut=void 0;Ur--;){const Pn=F[Ur];if(Pn[1].type==="lineEnding"||Pn[1].type==="lineEndingBlank"){if(Pn[0]==="exit")continue;Ut&&(F[Ut][1].type="lineEndingBlank",Rt=!0),Pn[1].type="lineEnding",Ut=Ur}else if(!(Pn[1].type==="linePrefix"||Pn[1].type==="blockQuotePrefix"||Pn[1].type==="blockQuotePrefixWhitespace"||Pn[1].type==="blockQuoteMarker"||Pn[1].type==="listItemIndent"))break}Li&&(!Ut||Li<Ut)&&(Ln._spread=!0),Ln.end=Object.assign({},Ut?F[Ut][1].start:jt[1].end),F.splice(Ut||fe,0,["exit",Ln,jt[2]]),fe++,ce++}if(jt[1].type==="listItemPrefix"){const Ur={type:"listItem",_spread:!1,start:Object.assign({},jt[1].start),end:void 0};Ln=Ur,F.splice(fe,0,["enter",Ur,jt[2]]),fe++,ce++,Li=void 0,Pi=!0}}}return F[W][1]._spread=Rt,ce}function o(F,W){return ce;function ce(fe){s.call(this,F(fe),fe),W&&W.call(this,fe)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(F,W,ce){this.stack[this.stack.length-1].children.push(F),this.stack.push(F),this.tokenStack.push([W,ce||void 0]),F.position={start:Or(W.start),end:void 0}}function l(F){return W;function W(ce){F&&F.call(this,ce),c.call(this,ce)}}function c(F,W){const ce=this.stack.pop(),fe=this.tokenStack.pop();if(fe)fe[0].type!==F.type&&(W?W.call(this,F,fe[0]):(fe[1]||sh).call(this,F,fe[0]));else throw new Error("Cannot close `"+F.type+"` ("+ia({start:F.start,end:F.end})+"): it’s not open");ce.position.end=Or(F.end)}function u(){return i1(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(F){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(F),10),this.data.expectingFirstListItemValue=void 0}}function p(){const F=this.resume(),W=this.stack[this.stack.length-1];W.lang=F}function h(){const F=this.resume(),W=this.stack[this.stack.length-1];W.meta=F}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const F=this.resume(),W=this.stack[this.stack.length-1];W.value=F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const F=this.resume(),W=this.stack[this.stack.length-1];W.value=F.replace(/(\r?\n|\r)$/g,"")}function b(F){const W=this.resume(),ce=this.stack[this.stack.length-1];ce.label=W,ce.identifier=yn(this.sliceSerialize(F)).toLowerCase()}function C(){const F=this.resume(),W=this.stack[this.stack.length-1];W.title=F}function x(){const F=this.resume(),W=this.stack[this.stack.length-1];W.url=F}function w(F){const W=this.stack[this.stack.length-1];if(!W.depth){const ce=this.sliceSerialize(F).length;W.depth=ce}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function S(F){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(F).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function P(F){const ce=this.stack[this.stack.length-1].children;let fe=ce[ce.length-1];(!fe||fe.type!=="text")&&(fe=Cc(),fe.position={start:Or(F.start),end:void 0},ce.push(fe)),this.stack.push(fe)}function T(F){const W=this.stack.pop();W.value+=this.sliceSerialize(F),W.position.end=Or(F.end)}function I(F){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ce=W.children[W.children.length-1];ce.position.end=Or(F.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(W.type)&&(P.call(this,F),T.call(this,F))}function O(){this.data.atHardBreak=!0}function V(){const F=this.resume(),W=this.stack[this.stack.length-1];W.value=F}function N(){const F=this.resume(),W=this.stack[this.stack.length-1];W.value=F}function A(){const F=this.resume(),W=this.stack[this.stack.length-1];W.value=F}function j(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=W,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function Y(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=W,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function H(F){const W=this.sliceSerialize(F),ce=this.stack[this.stack.length-2];ce.label=hD(W),ce.identifier=yn(W).toLowerCase()}function G(){const F=this.stack[this.stack.length-1],W=this.resume(),ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,ce.type==="link"){const fe=F.children;ce.children=fe}else ce.alt=W}function D(){const F=this.resume(),W=this.stack[this.stack.length-1];W.url=F}function Ce(){const F=this.resume(),W=this.stack[this.stack.length-1];W.title=F}function he(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function De(F){const W=this.resume(),ce=this.stack[this.stack.length-1];ce.label=W,ce.identifier=yn(this.sliceSerialize(F)).toLowerCase(),this.data.referenceType="full"}function Je(F){this.data.characterReferenceType=F.type}function ge(F){const W=this.sliceSerialize(F),ce=this.data.characterReferenceType;let fe;ce?(fe=$6(W,ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):fe=o1(W);const xe=this.stack[this.stack.length-1];xe.value+=fe}function Re(F){const W=this.stack.pop();W.position.end=Or(F.end)}function we(F){T.call(this,F);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(F)}function rt(F){T.call(this,F);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(F)}function it(){return{type:"blockquote",children:[]}}function Le(){return{type:"code",lang:null,meta:null,value:""}}function ne(){return{type:"inlineCode",value:""}}function Ie(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function We(){return{type:"emphasis",children:[]}}function lt(){return{type:"heading",depth:0,children:[]}}function nn(){return{type:"break"}}function hn(){return{type:"html",value:""}}function Cr(){return{type:"image",title:null,url:"",alt:null}}function Dn(){return{type:"link",title:null,url:"",children:[]}}function rr(F){return{type:"list",ordered:F.type==="listOrdered",start:null,spread:F._spread,children:[]}}function Di(F){return{type:"listItem",spread:F._spread,checked:null,children:[]}}function Xa(){return{type:"paragraph",children:[]}}function Ja(){return{type:"strong",children:[]}}function Cc(){return{type:"text",value:""}}function wc(){return{type:"thematicBreak"}}}function Or(e){return{line:e.line,column:e.column,offset:e.offset}}function ah(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ah(e,r):yD(e,r)}}function yD(e,t){let n;for(n in t)if(oh.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function sh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ia({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ia({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ia({start:t.start,end:t.end})+") is still open")}function bD(e){const t=this;t.parser=n;function n(r){return _D(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function vD(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function CD(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
778
+ `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function uD(e){const r={constructs:H6([aD,...(e||{}).extensions||[]]),content:i(AT),defined:[],document:i(RT),flow:i(eD),lazy:{},string:i(rD),text:i(iD)};return r;function i(o){return a;function a(s){return sD(r,o,s)}}}function dD(e){for(;!K6(e););return e}const ih=/[\0\t\n\r]/g;function fD(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let c,d,u,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),u=0,t="",n&&(o.charCodeAt(0)===65279&&u++,n=void 0);u<o.length;){if(ih.lastIndex=u,c=ih.exec(o),f=c&&c.index!==void 0?c.index:o.length,p=o.charCodeAt(f),!c){t=o.slice(u);break}if(p===10&&u===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),u<f&&(l.push(o.slice(u,f)),e+=f-u),p){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}u=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const pD=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hD(e){return e.replace(pD,mD)}function mD(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return $6(n.slice(o?2:1),o?16:10)}return o1(n)||e}const oh={}.hasOwnProperty;function _D(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),gD(n)(dD(uD(n).document().write(fD()(e,t,!0))))}function gD(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Dn),autolinkProtocol:P,autolinkEmail:P,atxHeading:o(lt),blockQuote:o(it),characterEscape:P,characterReference:P,codeFenced:o(Le),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(Le,a),codeText:o(ne,a),codeTextData:P,data:P,codeFlowValue:P,definition:o(Ie),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(We),hardBreakEscape:o(nn),hardBreakTrailing:o(nn),htmlFlow:o(hn,a),htmlFlowData:P,htmlText:o(hn,a),htmlTextData:P,image:o(Cr),label:a,link:o(Dn),listItem:o(Di),listItemValue:f,listOrdered:o(rr,u),listUnordered:o(rr),paragraph:o(Xa),reference:L,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(lt),strong:o(Ja),thematicBreak:o(wc)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:rt,autolinkProtocol:we,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:Je,characterReferenceMarkerNumeric:Je,characterReferenceValue:ge,characterReference:Re,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:T,codeIndented:l(m),codeText:l(A),codeTextData:T,data:T,definition:l(),definitionDestinationString:x,definitionLabelString:b,definitionTitleString:C,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(V),htmlFlowData:T,htmlText:l(N),htmlTextData:T,image:l(Y),label:G,labelText:H,lineEnding:I,link:l(j),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:De,resourceDestinationString:D,resourceTitleString:Ce,resource:he,setextHeading:l(M),setextHeadingLineSequence:S,setextHeadingText:k,strong:l(),thematicBreak:l()}};ah(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(F){let W={type:"root",children:[]};const ce={stack:[W],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:d,data:n},fe=[];let xe=-1;for(;++xe<F.length;)if(F[xe][1].type==="listOrdered"||F[xe][1].type==="listUnordered")if(F[xe][0]==="enter")fe.push(xe);else{const jt=fe.pop();xe=i(F,jt,xe)}for(xe=-1;++xe<F.length;){const jt=t[F[xe][0]];oh.call(jt,F[xe][1].type)&&jt[F[xe][1].type].call(Object.assign({sliceSerialize:F[xe][2].sliceSerialize},ce),F[xe][1])}if(ce.tokenStack.length>0){const jt=ce.tokenStack[ce.tokenStack.length-1];(jt[1]||sh).call(ce,void 0,jt[0])}for(W.position={start:Or(F.length>0?F[0][1].start:{line:1,column:1,offset:0}),end:Or(F.length>0?F[F.length-2][1].end:{line:1,column:1,offset:0})},xe=-1;++xe<t.transforms.length;)W=t.transforms[xe](W)||W;return W}function i(F,W,ce){let fe=W-1,xe=-1,jt=!1,Ln,Ut,Li,Pi;for(;++fe<=ce;){const Ft=F[fe];switch(Ft[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ft[0]==="enter"?xe++:xe--,Pi=void 0;break}case"lineEndingBlank":{Ft[0]==="enter"&&(Ln&&!Pi&&!xe&&!Li&&(Li=fe),Pi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pi=void 0}if(!xe&&Ft[0]==="enter"&&Ft[1].type==="listItemPrefix"||xe===-1&&Ft[0]==="exit"&&(Ft[1].type==="listUnordered"||Ft[1].type==="listOrdered")){if(Ln){let Ur=fe;for(Ut=void 0;Ur--;){const Pn=F[Ur];if(Pn[1].type==="lineEnding"||Pn[1].type==="lineEndingBlank"){if(Pn[0]==="exit")continue;Ut&&(F[Ut][1].type="lineEndingBlank",jt=!0),Pn[1].type="lineEnding",Ut=Ur}else if(!(Pn[1].type==="linePrefix"||Pn[1].type==="blockQuotePrefix"||Pn[1].type==="blockQuotePrefixWhitespace"||Pn[1].type==="blockQuoteMarker"||Pn[1].type==="listItemIndent"))break}Li&&(!Ut||Li<Ut)&&(Ln._spread=!0),Ln.end=Object.assign({},Ut?F[Ut][1].start:Ft[1].end),F.splice(Ut||fe,0,["exit",Ln,Ft[2]]),fe++,ce++}if(Ft[1].type==="listItemPrefix"){const Ur={type:"listItem",_spread:!1,start:Object.assign({},Ft[1].start),end:void 0};Ln=Ur,F.splice(fe,0,["enter",Ur,Ft[2]]),fe++,ce++,Li=void 0,Pi=!0}}}return F[W][1]._spread=jt,ce}function o(F,W){return ce;function ce(fe){s.call(this,F(fe),fe),W&&W.call(this,fe)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(F,W,ce){this.stack[this.stack.length-1].children.push(F),this.stack.push(F),this.tokenStack.push([W,ce||void 0]),F.position={start:Or(W.start),end:void 0}}function l(F){return W;function W(ce){F&&F.call(this,ce),c.call(this,ce)}}function c(F,W){const ce=this.stack.pop(),fe=this.tokenStack.pop();if(fe)fe[0].type!==F.type&&(W?W.call(this,F,fe[0]):(fe[1]||sh).call(this,F,fe[0]));else throw new Error("Cannot close `"+F.type+"` ("+ia({start:F.start,end:F.end})+"): it’s not open");ce.position.end=Or(F.end)}function d(){return i1(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function f(F){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(F),10),this.data.expectingFirstListItemValue=void 0}}function p(){const F=this.resume(),W=this.stack[this.stack.length-1];W.lang=F}function h(){const F=this.resume(),W=this.stack[this.stack.length-1];W.meta=F}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const F=this.resume(),W=this.stack[this.stack.length-1];W.value=F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const F=this.resume(),W=this.stack[this.stack.length-1];W.value=F.replace(/(\r?\n|\r)$/g,"")}function b(F){const W=this.resume(),ce=this.stack[this.stack.length-1];ce.label=W,ce.identifier=yn(this.sliceSerialize(F)).toLowerCase()}function C(){const F=this.resume(),W=this.stack[this.stack.length-1];W.title=F}function x(){const F=this.resume(),W=this.stack[this.stack.length-1];W.url=F}function w(F){const W=this.stack[this.stack.length-1];if(!W.depth){const ce=this.sliceSerialize(F).length;W.depth=ce}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function S(F){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(F).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function P(F){const ce=this.stack[this.stack.length-1].children;let fe=ce[ce.length-1];(!fe||fe.type!=="text")&&(fe=Cc(),fe.position={start:Or(F.start),end:void 0},ce.push(fe)),this.stack.push(fe)}function T(F){const W=this.stack.pop();W.value+=this.sliceSerialize(F),W.position.end=Or(F.end)}function I(F){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ce=W.children[W.children.length-1];ce.position.end=Or(F.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(W.type)&&(P.call(this,F),T.call(this,F))}function O(){this.data.atHardBreak=!0}function V(){const F=this.resume(),W=this.stack[this.stack.length-1];W.value=F}function N(){const F=this.resume(),W=this.stack[this.stack.length-1];W.value=F}function A(){const F=this.resume(),W=this.stack[this.stack.length-1];W.value=F}function j(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=W,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function Y(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=W,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function H(F){const W=this.sliceSerialize(F),ce=this.stack[this.stack.length-2];ce.label=hD(W),ce.identifier=yn(W).toLowerCase()}function G(){const F=this.stack[this.stack.length-1],W=this.resume(),ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,ce.type==="link"){const fe=F.children;ce.children=fe}else ce.alt=W}function D(){const F=this.resume(),W=this.stack[this.stack.length-1];W.url=F}function Ce(){const F=this.resume(),W=this.stack[this.stack.length-1];W.title=F}function he(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function De(F){const W=this.resume(),ce=this.stack[this.stack.length-1];ce.label=W,ce.identifier=yn(this.sliceSerialize(F)).toLowerCase(),this.data.referenceType="full"}function Je(F){this.data.characterReferenceType=F.type}function ge(F){const W=this.sliceSerialize(F),ce=this.data.characterReferenceType;let fe;ce?(fe=$6(W,ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):fe=o1(W);const xe=this.stack[this.stack.length-1];xe.value+=fe}function Re(F){const W=this.stack.pop();W.position.end=Or(F.end)}function we(F){T.call(this,F);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(F)}function rt(F){T.call(this,F);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(F)}function it(){return{type:"blockquote",children:[]}}function Le(){return{type:"code",lang:null,meta:null,value:""}}function ne(){return{type:"inlineCode",value:""}}function Ie(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function We(){return{type:"emphasis",children:[]}}function lt(){return{type:"heading",depth:0,children:[]}}function nn(){return{type:"break"}}function hn(){return{type:"html",value:""}}function Cr(){return{type:"image",title:null,url:"",alt:null}}function Dn(){return{type:"link",title:null,url:"",children:[]}}function rr(F){return{type:"list",ordered:F.type==="listOrdered",start:null,spread:F._spread,children:[]}}function Di(F){return{type:"listItem",spread:F._spread,checked:null,children:[]}}function Xa(){return{type:"paragraph",children:[]}}function Ja(){return{type:"strong",children:[]}}function Cc(){return{type:"text",value:""}}function wc(){return{type:"thematicBreak"}}}function Or(e){return{line:e.line,column:e.column,offset:e.offset}}function ah(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ah(e,r):yD(e,r)}}function yD(e,t){let n;for(n in t)if(oh.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function sh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ia({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ia({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ia({start:t.start,end:t.end})+") is still open")}function bD(e){const t=this;t.parser=n;function n(r){return _D(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function vD(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function CD(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
779
779
  `}]}function wD(e,t){const n=t.value?t.value+`
780
- `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function xD(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kD(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function SD(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Xi(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function TD(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function MD(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function lh(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function DD(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lh(e,t);const i={src:Xi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function LD(e,t){const n={src:Xi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function PD(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ED(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lh(e,t);const i={href:Xi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function ID(e,t){const n={href:Xi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function OD(e,t,n){const r=e.all(t),i=n?AD(n):ch(t),o={},a=[];if(typeof t.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const u=r[s];(i||s!==0||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
781
- `}),u.type==="element"&&u.tagName==="p"&&!i?a.push(...u.children):a.push(u)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
782
- `});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)}function AD(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ch(n[r])}return t}function ch(e){const t=e.spread;return t??e.children.length>1}function ND(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function RD(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jD(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function FD(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function VD(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Xu(t.children[1]),l=L6(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function BD(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const c=[];for(;++l<s;){const d=t.children[l],f={},p=a?a[l]:void 0;p&&(f.align=p);let h={type:"element",tagName:o,properties:f,children:[]};d&&(h.children=e.all(d),e.patch(d,h),h=e.applyData(d,h)),c.push(h)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)}function HD(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const uh=9,dh=32;function $D(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(fh(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(fh(t.slice(i),i>0,!1)),o.join("")}function fh(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===uh||o===dh;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===uh||o===dh;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function zD(e,t){const n={type:"text",value:$D(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function WD(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const YD={blockquote:vD,break:CD,code:wD,delete:xD,emphasis:kD,footnoteReference:SD,heading:TD,html:MD,imageReference:DD,image:LD,inlineCode:PD,linkReference:ED,link:ID,listItem:OD,list:ND,paragraph:RD,root:jD,strong:FD,table:VD,tableCell:HD,tableRow:BD,text:zD,thematicBreak:WD,toml:ul,yaml:ul,definition:ul,footnoteDefinition:ul};function ul(){}const ph=-1,dl=0,fl=1,pl=2,d1=3,f1=4,p1=5,h1=6,hh=7,mh=8,_h=typeof self=="object"?self:globalThis,UD=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case dl:case ph:return n(a,i);case fl:{const s=n([],i);for(const l of a)s.push(r(l));return s}case pl:{const s=n({},i);for(const[l,c]of a)s[r(l)]=r(c);return s}case d1:return n(new Date(a),i);case f1:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case p1:{const s=n(new Map,i);for(const[l,c]of a)s.set(r(l),r(c));return s}case h1:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case hh:{const{name:s,message:l}=a;return n(new _h[s](l),i)}case mh:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new _h[o](a),i)};return r},gh=e=>UD(new Map,e)(0),eo="",{toString:ZD}={},{keys:qD}=Object,ca=e=>{const t=typeof e;if(t!=="object"||!e)return[dl,t];const n=ZD.call(e).slice(8,-1);switch(n){case"Array":return[fl,eo];case"Object":return[pl,eo];case"Date":return[d1,eo];case"RegExp":return[f1,eo];case"Map":return[p1,eo];case"Set":return[h1,eo]}return n.includes("Array")?[fl,n]:n.includes("Error")?[hh,n]:[pl,n]},hl=([e,t])=>e===dl&&(t==="function"||t==="symbol"),GD=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=ca(a);switch(s){case dl:{let u=a;switch(l){case"bigint":s=mh,u=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return i([ph],a)}return i([s,u],a)}case fl:{if(l)return i([l,[...a]],a);const u=[],d=i([s,u],a);for(const f of a)u.push(o(f));return d}case pl:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const u=[],d=i([s,u],a);for(const f of qD(a))(e||!hl(ca(a[f])))&&u.push([o(f),o(a[f])]);return d}case d1:return i([s,a.toISOString()],a);case f1:{const{source:u,flags:d}=a;return i([s,{source:u,flags:d}],a)}case p1:{const u=[],d=i([s,u],a);for(const[f,p]of a)(e||!(hl(ca(f))||hl(ca(p))))&&u.push([o(f),o(p)]);return d}case h1:{const u=[],d=i([s,u],a);for(const f of a)(e||!hl(ca(f)))&&u.push(o(f));return d}}const{message:c}=a;return i([s,{name:l,message:c}],a)};return o},yh=(e,{json:t,lossy:n}={})=>{const r=[];return GD(!(t||n),!!t,new Map,r)(e),r},ml=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?gh(yh(e,t)):structuredClone(e):(e,t)=>gh(yh(e,t));function KD(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function QD(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function XD(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||KD,r=e.options.footnoteBackLabel||QD,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const u=e.all(c),d=String(c.identifier).toUpperCase(),f=Xi(d.toLowerCase());let p=0;const h=[],g=e.footnoteCounts.get(d);for(;g!==void 0&&++p<=g;){h.length>0&&h.push({type:"text",value:" "});let b=typeof n=="string"?n:n(l,p);typeof b=="string"&&(b={type:"text",value:b}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const _=u[u.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const b=_.children[_.children.length-1];b&&b.type==="text"?b.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...h)}else u.push(...h);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(u,!0)};e.patch(c,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ml(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
780
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function xD(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kD(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function SD(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Xi(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function TD(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function MD(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function lh(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function DD(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lh(e,t);const i={src:Xi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function LD(e,t){const n={src:Xi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function PD(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ED(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lh(e,t);const i={href:Xi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function ID(e,t){const n={href:Xi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function OD(e,t,n){const r=e.all(t),i=n?AD(n):ch(t),o={},a=[];if(typeof t.checked=="boolean"){const d=r[0];let u;d&&d.type==="element"&&d.tagName==="p"?u=d:(u={type:"element",tagName:"p",properties:{},children:[]},r.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(i||s!==0||d.type!=="element"||d.tagName!=="p")&&a.push({type:"text",value:`
781
+ `}),d.type==="element"&&d.tagName==="p"&&!i?a.push(...d.children):a.push(d)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
782
+ `});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)}function AD(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ch(n[r])}return t}function ch(e){const t=e.spread;return t??e.children.length>1}function ND(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function RD(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jD(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function FD(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function VD(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Xu(t.children[1]),l=L6(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function BD(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const c=[];for(;++l<s;){const u=t.children[l],f={},p=a?a[l]:void 0;p&&(f.align=p);let h={type:"element",tagName:o,properties:f,children:[]};u&&(h.children=e.all(u),e.patch(u,h),h=e.applyData(u,h)),c.push(h)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,d),e.applyData(t,d)}function HD(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const uh=9,dh=32;function $D(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(fh(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(fh(t.slice(i),i>0,!1)),o.join("")}function fh(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===uh||o===dh;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===uh||o===dh;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function zD(e,t){const n={type:"text",value:$D(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function WD(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const YD={blockquote:vD,break:CD,code:wD,delete:xD,emphasis:kD,footnoteReference:SD,heading:TD,html:MD,imageReference:DD,image:LD,inlineCode:PD,linkReference:ED,link:ID,listItem:OD,list:ND,paragraph:RD,root:jD,strong:FD,table:VD,tableCell:HD,tableRow:BD,text:zD,thematicBreak:WD,toml:ul,yaml:ul,definition:ul,footnoteDefinition:ul};function ul(){}const ph=-1,dl=0,fl=1,pl=2,d1=3,f1=4,p1=5,h1=6,hh=7,mh=8,_h=typeof self=="object"?self:globalThis,UD=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case dl:case ph:return n(a,i);case fl:{const s=n([],i);for(const l of a)s.push(r(l));return s}case pl:{const s=n({},i);for(const[l,c]of a)s[r(l)]=r(c);return s}case d1:return n(new Date(a),i);case f1:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case p1:{const s=n(new Map,i);for(const[l,c]of a)s.set(r(l),r(c));return s}case h1:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case hh:{const{name:s,message:l}=a;return n(new _h[s](l),i)}case mh:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new _h[o](a),i)};return r},gh=e=>UD(new Map,e)(0),eo="",{toString:ZD}={},{keys:qD}=Object,ca=e=>{const t=typeof e;if(t!=="object"||!e)return[dl,t];const n=ZD.call(e).slice(8,-1);switch(n){case"Array":return[fl,eo];case"Object":return[pl,eo];case"Date":return[d1,eo];case"RegExp":return[f1,eo];case"Map":return[p1,eo];case"Set":return[h1,eo]}return n.includes("Array")?[fl,n]:n.includes("Error")?[hh,n]:[pl,n]},hl=([e,t])=>e===dl&&(t==="function"||t==="symbol"),GD=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=ca(a);switch(s){case dl:{let d=a;switch(l){case"bigint":s=mh,d=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([ph],a)}return i([s,d],a)}case fl:{if(l)return i([l,[...a]],a);const d=[],u=i([s,d],a);for(const f of a)d.push(o(f));return u}case pl:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const d=[],u=i([s,d],a);for(const f of qD(a))(e||!hl(ca(a[f])))&&d.push([o(f),o(a[f])]);return u}case d1:return i([s,a.toISOString()],a);case f1:{const{source:d,flags:u}=a;return i([s,{source:d,flags:u}],a)}case p1:{const d=[],u=i([s,d],a);for(const[f,p]of a)(e||!(hl(ca(f))||hl(ca(p))))&&d.push([o(f),o(p)]);return u}case h1:{const d=[],u=i([s,d],a);for(const f of a)(e||!hl(ca(f)))&&d.push(o(f));return u}}const{message:c}=a;return i([s,{name:l,message:c}],a)};return o},yh=(e,{json:t,lossy:n}={})=>{const r=[];return GD(!(t||n),!!t,new Map,r)(e),r},ml=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?gh(yh(e,t)):structuredClone(e):(e,t)=>gh(yh(e,t));function KD(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function QD(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function XD(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||KD,r=e.options.footnoteBackLabel||QD,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const d=e.all(c),u=String(c.identifier).toUpperCase(),f=Xi(u.toLowerCase());let p=0;const h=[],g=e.footnoteCounts.get(u);for(;g!==void 0&&++p<=g;){h.length>0&&h.push({type:"text",value:" "});let b=typeof n=="string"?n:n(l,p);typeof b=="string"&&(b={type:"text",value:b}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const _=d[d.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const b=_.children[_.children.length-1];b&&b.type==="text"?b.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...h)}else d.push(...h);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(d,!0)};e.patch(c,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ml(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
783
783
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
784
- `}]}}const _l=(function(e){if(e==null)return nL;if(typeof e=="function")return gl(e);if(typeof e=="object")return Array.isArray(e)?JD(e):eL(e);if(typeof e=="string")return tL(e);throw new Error("Expected function, string, or object as test")});function JD(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=_l(e[n]);return gl(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function eL(e){const t=e;return gl(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function tL(e){return gl(t);function t(n){return n&&n.type===e}}function gl(e){return t;function t(n,r,i){return!!(rL(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function nL(){return!0}function rL(e){return e!==null&&typeof e=="object"&&"type"in e}function hq(e){return e}const bh=[],iL=!0,m1=!1,oL="skip";function vh(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=_l(i),a=r?-1:1;s(e,void 0,[])();function s(l,c,u){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=bh,h,g,_;if((!t||o(l,c,u[u.length-1]||void 0))&&(p=aL(n(l,u)),p[0]===m1))return p;if("children"in l&&l.children){const m=l;if(m.children&&p[0]!==oL)for(g=(r?m.children.length:-1)+a,_=u.concat(m);g>-1&&g<m.children.length;){const b=m.children[g];if(h=s(b,g,_)(),h[0]===m1)return h;g=typeof h[1]=="number"?h[1]:g+a}}return p}}}function aL(e){return Array.isArray(e)?e:typeof e=="number"?[iL,e]:e==null?bh:[e]}function _1(e,t,n,r){let i,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,i=n):(o=t,a=n,i=r),vh(e,o,s,i);function s(l,c){const u=c[c.length-1],d=u?u.children.indexOf(l):void 0;return a(l,d,u)}}const g1={}.hasOwnProperty,sL={};function lL(e,t){const n=t||sL,r=new Map,i=new Map,o=new Map,a={...YD,...n.handlers},s={all:c,applyData:uL,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:l,options:n,patch:cL,wrap:fL};return _1(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const d=u.type==="definition"?r:i,f=String(u.identifier).toUpperCase();d.has(f)||d.set(f,u)}}),s;function l(u,d){const f=u.type,p=s.handlers[f];if(g1.call(s.handlers,f)&&p)return p(s,u,d);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in u){const{children:g,..._}=u,m=ml(_);return m.children=s.all(u),m}return ml(u)}return(s.options.unknownHandler||dL)(s,u,d)}function c(u){const d=[];if("children"in u){const f=u.children;let p=-1;for(;++p<f.length;){const h=s.one(f[p],u);if(h){if(p&&f[p-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=Ch(h.value)),!Array.isArray(h)&&h.type==="element")){const g=h.children[0];g&&g.type==="text"&&(g.value=Ch(g.value))}Array.isArray(h)?d.push(...h):d.push(h)}}}return d}}function cL(e,t){e.position&&(t.position=aT(e))}function uL(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&o&&Object.assign(n.properties,ml(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function dL(e,t){const n=t.data||{},r="value"in t&&!(g1.call(n,"hProperties")||g1.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function fL(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
784
+ `}]}}const _l=(function(e){if(e==null)return nL;if(typeof e=="function")return gl(e);if(typeof e=="object")return Array.isArray(e)?JD(e):eL(e);if(typeof e=="string")return tL(e);throw new Error("Expected function, string, or object as test")});function JD(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=_l(e[n]);return gl(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function eL(e){const t=e;return gl(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function tL(e){return gl(t);function t(n){return n&&n.type===e}}function gl(e){return t;function t(n,r,i){return!!(rL(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function nL(){return!0}function rL(e){return e!==null&&typeof e=="object"&&"type"in e}function hq(e){return e}const bh=[],iL=!0,m1=!1,oL="skip";function vh(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=_l(i),a=r?-1:1;s(e,void 0,[])();function s(l,c,d){const u=l&&typeof l=="object"?l:{};if(typeof u.type=="string"){const p=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=bh,h,g,_;if((!t||o(l,c,d[d.length-1]||void 0))&&(p=aL(n(l,d)),p[0]===m1))return p;if("children"in l&&l.children){const m=l;if(m.children&&p[0]!==oL)for(g=(r?m.children.length:-1)+a,_=d.concat(m);g>-1&&g<m.children.length;){const b=m.children[g];if(h=s(b,g,_)(),h[0]===m1)return h;g=typeof h[1]=="number"?h[1]:g+a}}return p}}}function aL(e){return Array.isArray(e)?e:typeof e=="number"?[iL,e]:e==null?bh:[e]}function _1(e,t,n,r){let i,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,i=n):(o=t,a=n,i=r),vh(e,o,s,i);function s(l,c){const d=c[c.length-1],u=d?d.children.indexOf(l):void 0;return a(l,u,d)}}const g1={}.hasOwnProperty,sL={};function lL(e,t){const n=t||sL,r=new Map,i=new Map,o=new Map,a={...YD,...n.handlers},s={all:c,applyData:uL,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:l,options:n,patch:cL,wrap:fL};return _1(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const u=d.type==="definition"?r:i,f=String(d.identifier).toUpperCase();u.has(f)||u.set(f,d)}}),s;function l(d,u){const f=d.type,p=s.handlers[f];if(g1.call(s.handlers,f)&&p)return p(s,d,u);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in d){const{children:g,..._}=d,m=ml(_);return m.children=s.all(d),m}return ml(d)}return(s.options.unknownHandler||dL)(s,d,u)}function c(d){const u=[];if("children"in d){const f=d.children;let p=-1;for(;++p<f.length;){const h=s.one(f[p],d);if(h){if(p&&f[p-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=Ch(h.value)),!Array.isArray(h)&&h.type==="element")){const g=h.children[0];g&&g.type==="text"&&(g.value=Ch(g.value))}Array.isArray(h)?u.push(...h):u.push(h)}}}return u}}function cL(e,t){e.position&&(t.position=aT(e))}function uL(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&o&&Object.assign(n.properties,ml(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function dL(e,t){const n=t.data||{},r="value"in t&&!(g1.call(n,"hProperties")||g1.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function fL(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
785
785
  `});++r<e.length;)r&&n.push({type:"text",value:`
786
786
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
787
787
  `}),n}function Ch(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function wh(e,t){const n=lL(e,t),r=n.one(e,void 0),i=XD(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
788
- `},i),o}function pL(e,t){return e&&"run"in e?async function(n,r){const i=wh(n,{file:r,...t});await e.run(i,r)}:function(n,r){return wh(n,{file:r,...e||t})}}function xh(e){if(e)throw e}var y1,kh;function hL(){if(kh)return y1;kh=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},o=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var u=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!u&&!d)return!1;var f;for(f in c);return typeof f>"u"||e.call(c,f)},a=function(c,u){n&&u.name==="__proto__"?n(c,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):c[u.name]=u.newValue},s=function(c,u){if(u==="__proto__")if(e.call(c,u)){if(r)return r(c,u).value}else return;return c[u]};return y1=function l(){var c,u,d,f,p,h,g=arguments[0],_=1,m=arguments.length,b=!1;for(typeof g=="boolean"&&(b=g,g=arguments[1]||{},_=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});_<m;++_)if(c=arguments[_],c!=null)for(u in c)d=s(g,u),f=s(c,u),g!==f&&(b&&f&&(o(f)||(p=i(f)))?(p?(p=!1,h=d&&i(d)?d:[]):h=d&&o(d)?d:{},a(g,{name:u,newValue:l(b,h,f)})):typeof f<"u"&&a(g,{name:u,newValue:f}));return g},y1}var mL=hL();const b1=En(mL);function v1(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _L(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...c){const u=e[++o];let d=-1;if(l){a(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,u?gL(u,s)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function gL(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const Yn={basename:yL,dirname:bL,extname:vL,join:CL,sep:"/"};function yL(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ua(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function bL(e){if(ua(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function vL(e){ua(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function CL(...e){let t=-1,n;for(;++t<e.length;)ua(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":wL(n)}function wL(e){ua(e);const t=e.codePointAt(0)===47;let n=xL(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function xL(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.codePointAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function ua(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const kL={cwd:SL};function SL(){return"/"}function C1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function TL(e){if(typeof e=="string")e=new URL(e);else if(!C1(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return ML(e)}function ML(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const w1=["history","path","basename","stem","extname","dirname"];class Sh{constructor(t){let n;t?C1(t)?n={path:t}:typeof t=="string"||DL(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":kL.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<w1.length;){const o=w1[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)w1.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Yn.basename(this.path):void 0}set basename(t){k1(t,"basename"),x1(t,"basename"),this.path=Yn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Yn.dirname(this.path):void 0}set dirname(t){Th(this.basename,"dirname"),this.path=Yn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Yn.extname(this.path):void 0}set extname(t){if(x1(t,"extname"),Th(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Yn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){C1(t)&&(t=TL(t)),k1(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Yn.basename(this.path,this.extname):void 0}set stem(t){k1(t,"stem"),x1(t,"stem"),this.path=Yn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new vt(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function x1(e,t){if(e&&e.includes(Yn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Yn.sep+"`")}function k1(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Th(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function DL(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const LL=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),PL={}.hasOwnProperty;class S1 extends LL{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=_L()}copy(){const t=new S1;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(b1(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(D1("data",this.frozen),this.namespace[t]=n,this):PL.call(this.namespace,t)&&this.namespace[t]||void 0:t?(D1("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=yl(t),r=this.parser||this.Parser;return T1("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),T1("process",this.parser||this.Parser),M1("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){const s=yl(t),l=r.parse(s);r.run(l,s,function(u,d,f){if(u||!d||!f)return c(u);const p=d,h=r.stringify(p,f);OL(h)?f.value=h:f.result=h,c(u,f)});function c(u,d){u||!d?a(u):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),T1("processSync",this.parser||this.Parser),M1("processSync",this.compiler||this.Compiler),this.process(t,i),Dh("processSync","process",n),r;function i(o,a){n=!0,xh(o),r=a}}run(t,n,r){Mh(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,s){const l=yl(n);i.run(t,l,c);function c(u,d,f){const p=d||t;u?s(u):a?a(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Dh("runSync","run",r),i;function o(a,s){xh(a),i=s,r=!0}}stringify(t,n){this.freeze();const r=yl(n),i=this.compiler||this.Compiler;return M1("stringify",i),Mh(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(D1("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...d]=c;l(u,d)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(i.settings=b1(!0,i.settings,c.settings))}function s(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const d=c[u];o(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===c){f=d;break}if(f===-1)r.push([c,...u]);else if(u.length>0){let[p,...h]=u;const g=r[f][1];v1(g)&&v1(p)&&(p=b1(!0,g,p)),r[f]=[c,p,...h]}}}}const EL=new S1().freeze();function T1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function M1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function D1(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Mh(e){if(!v1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Dh(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yl(e){return IL(e)?e:new Sh(e)}function IL(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function OL(e){return typeof e=="string"||AL(e)}function AL(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const NL="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Lh=[],Ph={allowDangerousHtml:!0},RL=/^(https?|ircs?|mailto|xmpp)$/i,jL=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function FL(e){const t=VL(e),n=BL(e);return HL(t.runSync(t.parse(n),n),e)}function VL(e){const t=e.rehypePlugins||Lh,n=e.remarkPlugins||Lh,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ph}:Ph;return EL().use(bD).use(n).use(pL,r).use(t)}function BL(e){const t=e.children||"",n=new Sh;return typeof t=="string"&&(n.value=t),n}function HL(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||$L;for(const u of jL)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+NL+u.id,void 0);return _1(e,c),dT(e,{Fragment:y.Fragment,components:i,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function c(u,d,f){if(u.type==="raw"&&f&&typeof d=="number")return a?f.children.splice(d,1):f.children[d]={type:"text",value:u.value},d;if(u.type==="element"){let p;for(p in r1)if(Object.hasOwn(r1,p)&&Object.hasOwn(u.properties,p)){const h=u.properties[p],g=r1[p];(g===null||g.includes(u.tagName))&&(u.properties[p]=l(String(h||""),p,u))}}if(u.type==="element"){let p=n?!n.includes(u.tagName):o?o.includes(u.tagName):!1;if(!p&&r&&typeof d=="number"&&(p=!r(u,d,f)),p&&f&&typeof d=="number")return s&&u.children?f.children.splice(d,1,...u.children):f.children.splice(d,1),d}}}function $L(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||RL.test(e.slice(0,t))?e:""}function Eh(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function zL(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function WL(e,t,n){const i=_l((n||{}).ignore||[]),o=YL(t);let a=-1;for(;++a<o.length;)vh(e,"text",s);function s(c,u){let d=-1,f;for(;++d<u.length;){const p=u[d],h=f?f.children:void 0;if(i(p,h?h.indexOf(p):void 0,f))return;f=p}if(f)return l(c,u)}function l(c,u){const d=u[u.length-1],f=o[a][0],p=o[a][1];let h=0;const _=d.children.indexOf(c);let m=!1,b=[];f.lastIndex=0;let C=f.exec(c.value);for(;C;){const x=C.index,w={index:C.index,input:C.input,stack:[...u,c]};let k=p(...C,w);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?f.lastIndex=x+1:(h!==x&&b.push({type:"text",value:c.value.slice(h,x)}),Array.isArray(k)?b.push(...k):k&&b.push(k),h=x+C[0].length,m=!0),!f.global)break;C=f.exec(c.value)}return m?(h<c.value.length&&b.push({type:"text",value:c.value.slice(h)}),d.children.splice(_,1,...b)):b=[c],_+b.length}}function YL(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([UL(i[0]),ZL(i[1])])}return t}function UL(e){return typeof e=="string"?new RegExp(zL(e),"g"):e}function ZL(e){return typeof e=="function"?e:function(){return e}}const L1="phrasing",P1=["autolink","link","image","label"];function qL(){return{transforms:[tP],enter:{literalAutolink:KL,literalAutolinkEmail:E1,literalAutolinkHttp:E1,literalAutolinkWww:E1},exit:{literalAutolink:eP,literalAutolinkEmail:JL,literalAutolinkHttp:QL,literalAutolinkWww:XL}}}function GL(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:L1,notInConstruct:P1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:L1,notInConstruct:P1},{character:":",before:"[ps]",after:"\\/",inConstruct:L1,notInConstruct:P1}]}}function KL(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function E1(e){this.config.enter.autolinkProtocol.call(this,e)}function QL(e){this.config.exit.autolinkProtocol.call(this,e)}function XL(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function JL(e){this.config.exit.autolinkEmail.call(this,e)}function eP(e){this.exit(e)}function tP(e){WL(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,nP],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),rP]],{ignore:["link","linkReference"]})}function nP(e,t,n,r,i){let o="";if(!Ih(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!iP(n)))return!1;const a=oP(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function rP(e,t,n,r){return!Ih(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function iP(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function oP(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Eh(e,"(");let o=Eh(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function Ih(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||pi(n)||sl(n))&&(!t||n!==47)}Oh.peek=hP;function aP(){this.buffer()}function sP(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function lP(){this.buffer()}function cP(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function uP(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function dP(e){this.exit(e)}function fP(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function pP(e){this.exit(e)}function hP(){return"["}function Oh(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),a(),o+=i.move("]"),o}function mP(){return{enter:{gfmFootnoteCallString:aP,gfmFootnoteCall:sP,gfmFootnoteDefinitionLabelString:lP,gfmFootnoteDefinition:cP},exit:{gfmFootnoteCallString:uP,gfmFootnoteCall:dP,gfmFootnoteDefinitionLabelString:fP,gfmFootnoteDefinition:pP}}}function _P(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Oh},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,a){const s=o.createTracker(a);let l=s.move("[^");const c=o.enter("footnoteDefinition"),u=o.enter("label");return l+=s.move(o.safe(o.associationId(r),{before:l,after:"]"})),u(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
789
- `:" ")+o.indentLines(o.containerFlow(r,s.current()),t?Ah:gP))),c(),l}}function gP(e,t,n){return t===0?e:Ah(e,t,n)}function Ah(e,t,n){return(n?"":" ")+e}const yP=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Nh.peek=xP;function bP(){return{canContainEols:["delete"],enter:{strikethrough:CP},exit:{strikethrough:wP}}}function vP(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:yP}],handlers:{delete:Nh}}}function CP(e){this.enter({type:"delete",children:[]},e)}function wP(e){this.exit(e)}function Nh(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function xP(){return"~"}function kP(e){return e.length}function SP(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||kP,o=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const g=[],_=[];let m=-1;for(e[u].length>c&&(c=e[u].length);++m<e[u].length;){const b=TP(e[u][m]);if(n.alignDelimiters!==!1){const C=i(b);_[m]=C,(l[m]===void 0||C>l[m])&&(l[m]=C)}g.push(b)}a[u]=g,s[u]=_}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)o[d]=Rh(r[d]);else{const g=Rh(r);for(;++d<c;)o[d]=g}d=-1;const f=[],p=[];for(;++d<c;){const g=o[d];let _="",m="";g===99?(_=":",m=":"):g===108?_=":":g===114&&(m=":");let b=n.alignDelimiters===!1?1:Math.max(1,l[d]-_.length-m.length);const C=_+"-".repeat(b)+m;n.alignDelimiters!==!1&&(b=_.length+b+m.length,b>l[d]&&(l[d]=b),p[d]=b),f[d]=C}a.splice(1,0,f),s.splice(1,0,p),u=-1;const h=[];for(;++u<a.length;){const g=a[u],_=s[u];d=-1;const m=[];for(;++d<c;){const b=g[d]||"";let C="",x="";if(n.alignDelimiters!==!1){const w=l[d]-(_[d]||0),k=o[d];k===114?C=" ".repeat(w):k===99?w%2?(C=" ".repeat(w/2+.5),x=" ".repeat(w/2-.5)):(C=" ".repeat(w/2),x=C):x=" ".repeat(w)}n.delimiterStart!==!1&&!d&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&b==="")&&(n.delimiterStart!==!1||d)&&m.push(" "),n.alignDelimiters!==!1&&m.push(C),m.push(b),n.alignDelimiters!==!1&&m.push(x),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&m.push("|")}h.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return h.join(`
788
+ `},i),o}function pL(e,t){return e&&"run"in e?async function(n,r){const i=wh(n,{file:r,...t});await e.run(i,r)}:function(n,r){return wh(n,{file:r,...e||t})}}function xh(e){if(e)throw e}var y1,kh;function hL(){if(kh)return y1;kh=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},o=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var d=e.call(c,"constructor"),u=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!d&&!u)return!1;var f;for(f in c);return typeof f>"u"||e.call(c,f)},a=function(c,d){n&&d.name==="__proto__"?n(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},s=function(c,d){if(d==="__proto__")if(e.call(c,d)){if(r)return r(c,d).value}else return;return c[d]};return y1=function l(){var c,d,u,f,p,h,g=arguments[0],_=1,m=arguments.length,b=!1;for(typeof g=="boolean"&&(b=g,g=arguments[1]||{},_=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});_<m;++_)if(c=arguments[_],c!=null)for(d in c)u=s(g,d),f=s(c,d),g!==f&&(b&&f&&(o(f)||(p=i(f)))?(p?(p=!1,h=u&&i(u)?u:[]):h=u&&o(u)?u:{},a(g,{name:d,newValue:l(b,h,f)})):typeof f<"u"&&a(g,{name:d,newValue:f}));return g},y1}var mL=hL();const b1=En(mL);function v1(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _L(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...c){const d=e[++o];let u=-1;if(l){a(l);return}for(;++u<i.length;)(c[u]===null||c[u]===void 0)&&(c[u]=i[u]);i=c,d?gL(d,s)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function gL(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(c){const d=c;if(s&&n)throw d;return i(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const Yn={basename:yL,dirname:bL,extname:vL,join:CL,sep:"/"};function yL(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ua(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function bL(e){if(ua(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function vL(e){ua(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function CL(...e){let t=-1,n;for(;++t<e.length;)ua(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":wL(n)}function wL(e){ua(e);const t=e.codePointAt(0)===47;let n=xL(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function xL(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.codePointAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function ua(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const kL={cwd:SL};function SL(){return"/"}function C1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function TL(e){if(typeof e=="string")e=new URL(e);else if(!C1(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return ML(e)}function ML(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const w1=["history","path","basename","stem","extname","dirname"];class Sh{constructor(t){let n;t?C1(t)?n={path:t}:typeof t=="string"||DL(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":kL.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<w1.length;){const o=w1[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)w1.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Yn.basename(this.path):void 0}set basename(t){k1(t,"basename"),x1(t,"basename"),this.path=Yn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Yn.dirname(this.path):void 0}set dirname(t){Th(this.basename,"dirname"),this.path=Yn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Yn.extname(this.path):void 0}set extname(t){if(x1(t,"extname"),Th(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Yn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){C1(t)&&(t=TL(t)),k1(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Yn.basename(this.path,this.extname):void 0}set stem(t){k1(t,"stem"),x1(t,"stem"),this.path=Yn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new vt(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function x1(e,t){if(e&&e.includes(Yn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Yn.sep+"`")}function k1(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Th(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function DL(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const LL=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),PL={}.hasOwnProperty;class S1 extends LL{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=_L()}copy(){const t=new S1;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(b1(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(D1("data",this.frozen),this.namespace[t]=n,this):PL.call(this.namespace,t)&&this.namespace[t]||void 0:t?(D1("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=yl(t),r=this.parser||this.Parser;return T1("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),T1("process",this.parser||this.Parser),M1("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){const s=yl(t),l=r.parse(s);r.run(l,s,function(d,u,f){if(d||!u||!f)return c(d);const p=u,h=r.stringify(p,f);OL(h)?f.value=h:f.result=h,c(d,f)});function c(d,u){d||!u?a(d):o?o(u):n(void 0,u)}}}processSync(t){let n=!1,r;return this.freeze(),T1("processSync",this.parser||this.Parser),M1("processSync",this.compiler||this.Compiler),this.process(t,i),Dh("processSync","process",n),r;function i(o,a){n=!0,xh(o),r=a}}run(t,n,r){Mh(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,s){const l=yl(n);i.run(t,l,c);function c(d,u,f){const p=u||t;d?s(d):a?a(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Dh("runSync","run",r),i;function o(a,s){xh(a),i=s,r=!0}}stringify(t,n){this.freeze();const r=yl(n),i=this.compiler||this.Compiler;return M1("stringify",i),Mh(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(D1("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...u]=c;l(d,u)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(i.settings=b1(!0,i.settings,c.settings))}function s(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const u=c[d];o(u)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,d){let u=-1,f=-1;for(;++u<r.length;)if(r[u][0]===c){f=u;break}if(f===-1)r.push([c,...d]);else if(d.length>0){let[p,...h]=d;const g=r[f][1];v1(g)&&v1(p)&&(p=b1(!0,g,p)),r[f]=[c,p,...h]}}}}const EL=new S1().freeze();function T1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function M1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function D1(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Mh(e){if(!v1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Dh(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yl(e){return IL(e)?e:new Sh(e)}function IL(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function OL(e){return typeof e=="string"||AL(e)}function AL(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const NL="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Lh=[],Ph={allowDangerousHtml:!0},RL=/^(https?|ircs?|mailto|xmpp)$/i,jL=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function FL(e){const t=VL(e),n=BL(e);return HL(t.runSync(t.parse(n),n),e)}function VL(e){const t=e.rehypePlugins||Lh,n=e.remarkPlugins||Lh,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ph}:Ph;return EL().use(bD).use(n).use(pL,r).use(t)}function BL(e){const t=e.children||"",n=new Sh;return typeof t=="string"&&(n.value=t),n}function HL(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||$L;for(const d of jL)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+NL+d.id,void 0);return _1(e,c),dT(e,{Fragment:y.Fragment,components:i,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function c(d,u,f){if(d.type==="raw"&&f&&typeof u=="number")return a?f.children.splice(u,1):f.children[u]={type:"text",value:d.value},u;if(d.type==="element"){let p;for(p in r1)if(Object.hasOwn(r1,p)&&Object.hasOwn(d.properties,p)){const h=d.properties[p],g=r1[p];(g===null||g.includes(d.tagName))&&(d.properties[p]=l(String(h||""),p,d))}}if(d.type==="element"){let p=n?!n.includes(d.tagName):o?o.includes(d.tagName):!1;if(!p&&r&&typeof u=="number"&&(p=!r(d,u,f)),p&&f&&typeof u=="number")return s&&d.children?f.children.splice(u,1,...d.children):f.children.splice(u,1),u}}}function $L(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||RL.test(e.slice(0,t))?e:""}function Eh(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function zL(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function WL(e,t,n){const i=_l((n||{}).ignore||[]),o=YL(t);let a=-1;for(;++a<o.length;)vh(e,"text",s);function s(c,d){let u=-1,f;for(;++u<d.length;){const p=d[u],h=f?f.children:void 0;if(i(p,h?h.indexOf(p):void 0,f))return;f=p}if(f)return l(c,d)}function l(c,d){const u=d[d.length-1],f=o[a][0],p=o[a][1];let h=0;const _=u.children.indexOf(c);let m=!1,b=[];f.lastIndex=0;let C=f.exec(c.value);for(;C;){const x=C.index,w={index:C.index,input:C.input,stack:[...d,c]};let k=p(...C,w);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?f.lastIndex=x+1:(h!==x&&b.push({type:"text",value:c.value.slice(h,x)}),Array.isArray(k)?b.push(...k):k&&b.push(k),h=x+C[0].length,m=!0),!f.global)break;C=f.exec(c.value)}return m?(h<c.value.length&&b.push({type:"text",value:c.value.slice(h)}),u.children.splice(_,1,...b)):b=[c],_+b.length}}function YL(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([UL(i[0]),ZL(i[1])])}return t}function UL(e){return typeof e=="string"?new RegExp(zL(e),"g"):e}function ZL(e){return typeof e=="function"?e:function(){return e}}const L1="phrasing",P1=["autolink","link","image","label"];function qL(){return{transforms:[tP],enter:{literalAutolink:KL,literalAutolinkEmail:E1,literalAutolinkHttp:E1,literalAutolinkWww:E1},exit:{literalAutolink:eP,literalAutolinkEmail:JL,literalAutolinkHttp:QL,literalAutolinkWww:XL}}}function GL(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:L1,notInConstruct:P1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:L1,notInConstruct:P1},{character:":",before:"[ps]",after:"\\/",inConstruct:L1,notInConstruct:P1}]}}function KL(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function E1(e){this.config.enter.autolinkProtocol.call(this,e)}function QL(e){this.config.exit.autolinkProtocol.call(this,e)}function XL(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function JL(e){this.config.exit.autolinkEmail.call(this,e)}function eP(e){this.exit(e)}function tP(e){WL(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,nP],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),rP]],{ignore:["link","linkReference"]})}function nP(e,t,n,r,i){let o="";if(!Ih(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!iP(n)))return!1;const a=oP(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function rP(e,t,n,r){return!Ih(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function iP(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function oP(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Eh(e,"(");let o=Eh(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function Ih(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||pi(n)||sl(n))&&(!t||n!==47)}Oh.peek=hP;function aP(){this.buffer()}function sP(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function lP(){this.buffer()}function cP(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function uP(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function dP(e){this.exit(e)}function fP(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function pP(e){this.exit(e)}function hP(){return"["}function Oh(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),a(),o+=i.move("]"),o}function mP(){return{enter:{gfmFootnoteCallString:aP,gfmFootnoteCall:sP,gfmFootnoteDefinitionLabelString:lP,gfmFootnoteDefinition:cP},exit:{gfmFootnoteCallString:uP,gfmFootnoteCall:dP,gfmFootnoteDefinitionLabelString:fP,gfmFootnoteDefinition:pP}}}function _P(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Oh},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,a){const s=o.createTracker(a);let l=s.move("[^");const c=o.enter("footnoteDefinition"),d=o.enter("label");return l+=s.move(o.safe(o.associationId(r),{before:l,after:"]"})),d(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
789
+ `:" ")+o.indentLines(o.containerFlow(r,s.current()),t?Ah:gP))),c(),l}}function gP(e,t,n){return t===0?e:Ah(e,t,n)}function Ah(e,t,n){return(n?"":" ")+e}const yP=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Nh.peek=xP;function bP(){return{canContainEols:["delete"],enter:{strikethrough:CP},exit:{strikethrough:wP}}}function vP(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:yP}],handlers:{delete:Nh}}}function CP(e){this.enter({type:"delete",children:[]},e)}function wP(e){this.exit(e)}function Nh(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function xP(){return"~"}function kP(e){return e.length}function SP(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||kP,o=[],a=[],s=[],l=[];let c=0,d=-1;for(;++d<e.length;){const g=[],_=[];let m=-1;for(e[d].length>c&&(c=e[d].length);++m<e[d].length;){const b=TP(e[d][m]);if(n.alignDelimiters!==!1){const C=i(b);_[m]=C,(l[m]===void 0||C>l[m])&&(l[m]=C)}g.push(b)}a[d]=g,s[d]=_}let u=-1;if(typeof r=="object"&&"length"in r)for(;++u<c;)o[u]=Rh(r[u]);else{const g=Rh(r);for(;++u<c;)o[u]=g}u=-1;const f=[],p=[];for(;++u<c;){const g=o[u];let _="",m="";g===99?(_=":",m=":"):g===108?_=":":g===114&&(m=":");let b=n.alignDelimiters===!1?1:Math.max(1,l[u]-_.length-m.length);const C=_+"-".repeat(b)+m;n.alignDelimiters!==!1&&(b=_.length+b+m.length,b>l[u]&&(l[u]=b),p[u]=b),f[u]=C}a.splice(1,0,f),s.splice(1,0,p),d=-1;const h=[];for(;++d<a.length;){const g=a[d],_=s[d];u=-1;const m=[];for(;++u<c;){const b=g[u]||"";let C="",x="";if(n.alignDelimiters!==!1){const w=l[u]-(_[u]||0),k=o[u];k===114?C=" ".repeat(w):k===99?w%2?(C=" ".repeat(w/2+.5),x=" ".repeat(w/2-.5)):(C=" ".repeat(w/2),x=C):x=" ".repeat(w)}n.delimiterStart!==!1&&!u&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&b==="")&&(n.delimiterStart!==!1||u)&&m.push(" "),n.alignDelimiters!==!1&&m.push(C),m.push(b),n.alignDelimiters!==!1&&m.push(x),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||u!==c-1)&&m.push("|")}h.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return h.join(`
790
790
  `)}function TP(e){return e==null?"":String(e)}function Rh(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function MP(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),DP);return i(),a}function DP(e,t,n){return">"+(n?"":" ")+e}function LP(e,t){return jh(e,t.inConstruct,!0)&&!jh(e,t.notInConstruct,!1)}function jh(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Fh(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
791
791
  `&&LP(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
792
- `}function PP(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function EP(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function IP(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function OP(e,t,n,r){const i=IP(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(EP(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(o,AP);return d(),f}const s=n.createTracker(r),l=i.repeat(Math.max(PP(o,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const d=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:`
793
- `,encode:["`"],...s.current()})),d()}return u+=s.move(`
794
- `),o&&(u+=s.move(o+`
795
- `)),u+=s.move(l),c(),u}function AP(e,t,n){return(n?"":" ")+e}function I1(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function NP(e,t,n,r){const i=I1(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":`
796
- `,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),a(),c}function RP(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function da(e){return"&#x"+e.toString(16).toUpperCase()+";"}function bl(e,t,n){const r=Ji(e),i=Ji(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Vh.peek=jP;function Vh(e,t,n,r){const i=RP(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=bl(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=da(c)+l.slice(1));const d=l.charCodeAt(l.length-1),f=bl(r.after.charCodeAt(0),d,i);f.inside&&(l=l.slice(0,-1)+da(d));const p=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+p}function jP(e,t,n){return n.options.emphasis||"*"}function FP(e,t){let n=!1;return _1(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,m1}),!!((!e.depth||e.depth<3)&&i1(e)&&(t.options.setext||n))}function VP(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(FP(e,n)){const u=n.enter("headingSetext"),d=n.enter("phrasing"),f=n.containerPhrasing(e,{...o.current(),before:`
792
+ `}function PP(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function EP(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function IP(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function OP(e,t,n,r){const i=IP(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(EP(e,n)){const u=n.enter("codeIndented"),f=n.indentLines(o,AP);return u(),f}const s=n.createTracker(r),l=i.repeat(Math.max(PP(o,i)+1,3)),c=n.enter("codeFenced");let d=s.move(l);if(e.lang){const u=n.enter(`codeFencedLang${a}`);d+=s.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),u()}if(e.lang&&e.meta){const u=n.enter(`codeFencedMeta${a}`);d+=s.move(" "),d+=s.move(n.safe(e.meta,{before:d,after:`
793
+ `,encode:["`"],...s.current()})),u()}return d+=s.move(`
794
+ `),o&&(d+=s.move(o+`
795
+ `)),d+=s.move(l),c(),d}function AP(e,t,n){return(n?"":" ")+e}function I1(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function NP(e,t,n,r){const i=I1(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":`
796
+ `,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),a(),c}function RP(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function da(e){return"&#x"+e.toString(16).toUpperCase()+";"}function bl(e,t,n){const r=Ji(e),i=Ji(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Vh.peek=jP;function Vh(e,t,n,r){const i=RP(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),d=bl(r.before.charCodeAt(r.before.length-1),c,i);d.inside&&(l=da(c)+l.slice(1));const u=l.charCodeAt(l.length-1),f=bl(r.after.charCodeAt(0),u,i);f.inside&&(l=l.slice(0,-1)+da(u));const p=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+l+p}function jP(e,t,n){return n.options.emphasis||"*"}function FP(e,t){let n=!1;return _1(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,m1}),!!((!e.depth||e.depth<3)&&i1(e)&&(t.options.setext||n))}function VP(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(FP(e,n)){const d=n.enter("headingSetext"),u=n.enter("phrasing"),f=n.containerPhrasing(e,{...o.current(),before:`
797
797
  `,after:`
798
- `});return d(),u(),f+`
798
+ `});return u(),d(),f+`
799
799
  `+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
800
800
  `))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
801
- `,...o.current()});return/^[\t ]/.test(c)&&(c=da(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c}Bh.peek=BP;function Bh(e){return e.value||""}function BP(){return"<"}Hh.peek=HP;function Hh(e,t,n,r){const i=I1(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function HP(){return"!"}$h.peek=$P;function $h(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),i==="full"||!c||c!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function $P(){return"!"}zh.peek=zP;function zh(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const a=n.unsafe[o],s=n.compilePattern(a);let l;if(a.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function zP(){return"`"}function Wh(e,t){const n=i1(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Yh.peek=WP;function Yh(e,t,n,r){const i=I1(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(Wh(e,n)){const u=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=u,d}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),s(),c}function WP(e,t,n){return Wh(e,n)?"<":"["}Uh.peek=YP;function Uh(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),i==="full"||!c||c!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function YP(){return"["}function O1(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function UP(e){const t=O1(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function ZP(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Zh(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function qP(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?ZP(n):O1(n);const s=e.ordered?a==="."?")":".":UP(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Zh(n)===a&&u){let d=-1;for(;++d<e.children.length;){const f=e.children[d];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),c}function GP(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function KP(e,t,n,r){const i=GP(n);let o=n.bulletCurrent||O1(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,f,p){return f?(p?"":" ".repeat(a))+d:(p?o:o+" ".repeat(a-o.length))+d}}function QP(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const XP=_l(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function JP(e,t,n,r){return(e.children.some(function(a){return XP(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function eE(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}qh.peek=tE;function qh(e,t,n,r){const i=eE(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=bl(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=da(c)+l.slice(1));const d=l.charCodeAt(l.length-1),f=bl(r.after.charCodeAt(0),d,i);f.inside&&(l=l.slice(0,-1)+da(d));const p=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+p}function tE(e,t,n){return n.options.strong||"*"}function nE(e,t,n,r){return n.safe(e.value,r)}function rE(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function iE(e,t,n){const r=(Zh(n)+(n.options.ruleSpaces?" ":"")).repeat(rE(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Gh={blockquote:MP,break:Fh,code:OP,definition:NP,emphasis:Vh,hardBreak:Fh,heading:VP,html:Bh,image:Hh,imageReference:$h,inlineCode:zh,link:Yh,linkReference:Uh,list:qP,listItem:KP,paragraph:QP,root:JP,strong:qh,text:nE,thematicBreak:iE};function oE(){return{enter:{table:aE,tableData:Kh,tableHeader:Kh,tableRow:lE},exit:{codeText:cE,table:sE,tableData:A1,tableHeader:A1,tableRow:A1}}}function aE(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function sE(e){this.exit(e),this.data.inTable=void 0}function lE(e){this.enter({type:"tableRow",children:[]},e)}function A1(e){this.exit(e)}function Kh(e){this.enter({type:"tableCell",children:[]},e)}function cE(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,uE));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function uE(e,t){return t==="|"?t:e}function dE(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
802
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:a,tableCell:l,tableRow:s}};function a(p,h,g,_){return c(u(p,g,_),p.align)}function s(p,h,g,_){const m=d(p,g,_),b=c([m]);return b.slice(0,b.indexOf(`
803
- `))}function l(p,h,g,_){const m=g.enter("tableCell"),b=g.enter("phrasing"),C=g.containerPhrasing(p,{..._,before:o,after:o});return b(),m(),C}function c(p,h){return SP(p,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function u(p,h,g){const _=p.children;let m=-1;const b=[],C=h.enter("table");for(;++m<_.length;)b[m]=d(_[m],h,g);return C(),b}function d(p,h,g){const _=p.children;let m=-1;const b=[],C=h.enter("tableRow");for(;++m<_.length;)b[m]=l(_[m],p,h,g);return C(),b}function f(p,h,g){let _=Gh.inlineCode(p,h,g);return g.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function fE(){return{exit:{taskListCheckValueChecked:Qh,taskListCheckValueUnchecked:Qh,paragraph:hE}}}function pE(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:mE}}}function Qh(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function hE(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o<i.length;){const s=i[o];if(s.type==="paragraph"){a=s;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function mE(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=Gh.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+a}}function _E(){return[qL(),mP(),bP(),oE(),fE()]}function gE(e){return{extensions:[GL(),_P(e),vP(),dE(e),pE()]}}const yE={tokenize:kE,partial:!0},Xh={tokenize:SE,partial:!0},Jh={tokenize:TE,partial:!0},e2={tokenize:ME,partial:!0},bE={tokenize:DE,partial:!0},t2={name:"wwwAutolink",tokenize:wE,previous:r2},n2={name:"protocolAutolink",tokenize:xE,previous:i2},mr={name:"emailAutolink",tokenize:CE,previous:o2},Un={};function vE(){return{text:Un}}let hi=48;for(;hi<123;)Un[hi]=mr,hi++,hi===58?hi=65:hi===91&&(hi=97);Un[43]=mr,Un[45]=mr,Un[46]=mr,Un[95]=mr,Un[72]=[mr,n2],Un[104]=[mr,n2],Un[87]=[mr,t2],Un[119]=[mr,t2];function CE(e,t,n){const r=this;let i,o;return a;function a(d){return!N1(d)||!o2.call(r,r.previous)||R1(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return N1(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(bE,u,c)(d):d===45||d===95||Ct(d)?(o=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),i=!0,l}function u(d){return o&&i&&Pt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function wE(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!r2.call(r,r.previous)||R1(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(yE,e.attempt(Xh,e.attempt(Jh,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function xE(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&i2.call(r,r.previous)&&!R1(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Pt(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),o?c:(o=!0,l)):n(d)}function c(d){return d===null||al(d)||Fe(d)||pi(d)||sl(d)?n(d):e.attempt(Xh,e.attempt(Jh,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function kE(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function SE(e,t,n){let r,i,o;return a;function a(c){return c===46||c===95?e.check(e2,l,s)(c):c===null||Fe(c)||pi(c)||c!==45&&sl(c)?l(c):(o=!0,e.consume(c),a)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),a}function l(c){return i||r||!o?n(c):t(c)}}function TE(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(e2,t,o)(a):a===null||Fe(a)||pi(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function ME(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),o):s===93?(e.consume(s),i):s===60||s===null||Fe(s)||pi(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Fe(s)||pi(s)?t(s):r(s)}function o(s){return Pt(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):Pt(s)?(e.consume(s),a):n(s)}}function DE(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Ct(o)?n(o):t(o)}}function r2(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Fe(e)}function i2(e){return!Pt(e)}function o2(e){return!(e===47||N1(e))}function N1(e){return e===43||e===45||e===46||e===95||Ct(e)}function R1(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const LE={tokenize:jE,partial:!0};function PE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:AE,continuation:{tokenize:NE},exit:RE}},text:{91:{name:"gfmFootnoteCall",tokenize:OE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:EE,resolveTo:IE}}}}function EE(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const c=yn(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function IE(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function OE(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(o>999||d===93&&!a||d===null||d===91||Fe(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(yn(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Fe(d)||(a=!0),o++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),o++,c):c(d)}}function AE(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(h)}function u(h){if(a>999||h===93&&!s||h===null||h===91||Fe(h))return n(h);if(h===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return o=yn(r.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Fe(h)||(s=!0),a++,e.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,u):u(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),be(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function NE(e,t,n){return e.check(aa,t,e.attempt(LE,t,n))}function RE(e){e.exit("gfmFootnoteDefinition")}function jE(e,t,n){const r=this;return be(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function FE(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let c=l;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[l][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[l][1].end)},d={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[l][1].start)},f=[["enter",u,s],["enter",a[c][1],s],["exit",a[c][1],s],["enter",d,s]],p=s.parser.constructs.insideSpan.null;p&&Xt(f,f.length,0,ll(p,a.slice(c+1,l),s)),Xt(f,f.length,0,[["exit",d,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",u,s]]),Xt(a,c-1,l-c+3,f),l=c+f.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const c=this.previous,u=this.events;let d=0;return f;function f(h){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(h):(a.enter("strikethroughSequenceTemporary"),p(h))}function p(h){const g=Ji(c);if(h===126)return d>1?l(h):(a.consume(h),d++,p);if(d<2&&!n)return l(h);const _=a.exit("strikethroughSequenceTemporary"),m=Ji(h);return _._open=!m||m===2&&!!g,_._close=!g||g===2&&!!m,s(h)}}}class VE{constructor(){this.map=[]}add(t,n,r){BE(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function BE(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function HE(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function $E(){return{flow:{null:{name:"table",tokenize:zE,resolveAll:WE}}}}function zE(e,t,n){const r=this;let i=0,o=0,a;return s;function s(T){let I=r.events.length-1;for(;I>-1;){const N=r.events[I][1].type;if(N==="lineEnding"||N==="linePrefix")I--;else break}const O=I>-1?r.events[I][1].type:null,V=O==="tableHead"||O==="tableRow"?k:l;return V===k&&r.parser.lazy[r.now().line]?n(T):V(T)}function l(T){return e.enter("tableHead"),e.enter("tableRow"),c(T)}function c(T){return T===124||(a=!0,o+=1),u(T)}function u(T){return T===null?n(T):se(T)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),p):n(T):me(T)?be(e,u,"whitespace")(T):(o+=1,a&&(a=!1,i+=1),T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),a=!0,u):(e.enter("data"),d(T)))}function d(T){return T===null||T===124||Fe(T)?(e.exit("data"),u(T)):(e.consume(T),T===92?f:d)}function f(T){return T===92||T===124?(e.consume(T),d):d(T)}function p(T){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(T):(e.enter("tableDelimiterRow"),a=!1,me(T)?be(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):h(T))}function h(T){return T===45||T===58?_(T):T===124?(a=!0,e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),g):w(T)}function g(T){return me(T)?be(e,_,"whitespace")(T):_(T)}function _(T){return T===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),m):T===45?(o+=1,m(T)):T===null||se(T)?x(T):w(T)}function m(T){return T===45?(e.enter("tableDelimiterFiller"),b(T)):w(T)}function b(T){return T===45?(e.consume(T),b):T===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(T))}function C(T){return me(T)?be(e,x,"whitespace")(T):x(T)}function x(T){return T===124?h(T):T===null||se(T)?!a||i!==o?w(T):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(T)):w(T)}function w(T){return n(T)}function k(T){return e.enter("tableRow"),S(T)}function S(T){return T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),S):T===null||se(T)?(e.exit("tableRow"),t(T)):me(T)?be(e,S,"whitespace")(T):(e.enter("data"),M(T))}function M(T){return T===null||T===124||Fe(T)?(e.exit("data"),S(T)):(e.consume(T),T===92?P:M)}function P(T){return T===92||T===124?(e.consume(T),M):M(T)}}function WE(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,c,u,d;const f=new VE;for(;++n<e.length;){const p=e[n],h=p[1];p[0]==="enter"?h.type==="tableHead"?(s=!1,l!==0&&(a2(f,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",c,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",u,t]])),i=h.type==="tableDelimiterRow"?2:u?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],d=vl(f,t,o,i,void 0,d),o=[0,0,0,0]),a[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],d=vl(f,t,o,i,void 0,d)),o=a,a=[o[1],n,0,0])):h.type==="tableHead"?(s=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,o[1]!==0?(a[0]=a[1],d=vl(f,t,o,i,n,d)):a[1]!==0&&(d=vl(f,t,a,i,n,d)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&a2(f,t,l,c,u),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=HE(t.events,n))}return e}function vl(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},to(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=to(t.events,n[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const c=to(t.events,n[2]),u=to(t.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const f=t.events[n[2]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,g=n[3]-n[2]-1;e.add(h,g,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},to(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function a2(e,t,n,r,i){const o=[],a=to(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function to(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const YE={name:"tasklistCheck",tokenize:ZE};function UE(){return{text:{91:YE}}}function ZE(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return Fe(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return se(l)?t(l):me(l)?e.check({tokenize:qE},t,n)(l):n(l)}}function qE(e,t,n){return be(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function GE(e){return H6([vE(),PE(),FE(e),$E(),UE()])}const KE={};function QE(e){const t=this,n=e||KE,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(GE(n)),o.push(_E()),a.push(gE(n))}const s2={previewerWrapper:"_previewerWrapper_63w01_1",previewerWrapper_tableScroll:"_previewerWrapper_tableScroll_63w01_178"},XE=[QE],JE={table:({node:e,...t})=>y.jsx("div",{className:s2.previewerWrapper_tableScroll,children:y.jsx("table",{...t})})},eI=({children:e,className:t})=>y.jsx("div",{className:E(s2.previewerWrapper,t),children:y.jsx(FL,{remarkPlugins:XE,components:JE,children:e})}),_r={containerCube:"_containerCube_nmno7_1",cube:"_cube_nmno7_11",cube_side:"_cube_side_nmno7_18",cube_side__front:"_cube_side__front_nmno7_23",bgColorSideFront:"_bgColorSideFront_nmno7_1",cube_side__left:"_cube_side__left_nmno7_41",bgColorSideLeft:"_bgColorSideLeft_nmno7_1",cube_side__top:"_cube_side__top_nmno7_59",bgColorSideTop:"_bgColorSideTop_nmno7_1",cube__1:"_cube__1_nmno7_78",cubeAnimation1:"_cubeAnimation1_nmno7_1",bounceInShadow:"_bounceInShadow_nmno7_1",cube__2:"_cube__2_nmno7_94",cubeAnimation2:"_cubeAnimation2_nmno7_1",cube__3:"_cube__3_nmno7_110",cubeAnimation3:"_cubeAnimation3_nmno7_1",cube__4:"_cube__4_nmno7_126",cubeAnimation4:"_cubeAnimation4_nmno7_1",cube__5:"_cube__5_nmno7_142",cubeAnimation5:"_cubeAnimation5_nmno7_1",cube__6:"_cube__6_nmno7_158",cubeAnimation6:"_cubeAnimation6_nmno7_1",cube__7:"_cube__7_nmno7_174",cubeAnimation7:"_cubeAnimation7_nmno7_1",cube__8:"_cube__8_nmno7_190",cubeAnimation8:"_cubeAnimation8_nmno7_1",cube__9:"_cube__9_nmno7_206",cubeAnimation9:"_cubeAnimation9_nmno7_1",cube__10:"_cube__10_nmno7_222",cubeAnimation10:"_cubeAnimation10_nmno7_1",cube__11:"_cube__11_nmno7_226",cubeAnimation11:"_cubeAnimation11_nmno7_1",cube__12:"_cube__12_nmno7_230",cubeAnimation12:"_cubeAnimation12_nmno7_1",cube__13:"_cube__13_nmno7_234",cubeAnimation13:"_cubeAnimation13_nmno7_1",cube__15:"_cube__15_nmno7_238",cubeAnimation15:"_cubeAnimation15_nmno7_1",cube__16:"_cube__16_nmno7_242",cubeAnimation16:"_cubeAnimation16_nmno7_1",cube__17:"_cube__17_nmno7_246",cubeAnimation17:"_cubeAnimation17_nmno7_1",cube__18:"_cube__18_nmno7_250",cubeAnimation18:"_cubeAnimation18_nmno7_1",cube__19:"_cube__19_nmno7_254",cubeAnimation19:"_cubeAnimation19_nmno7_1",cube__20:"_cube__20_nmno7_258",cubeAnimation20:"_cubeAnimation20_nmno7_1",cube__21:"_cube__21_nmno7_262",cubeAnimation21:"_cubeAnimation21_nmno7_1",cube__22:"_cube__22_nmno7_266",cubeAnimation22:"_cubeAnimation22_nmno7_1",cube__23:"_cube__23_nmno7_270",cubeAnimation23:"_cubeAnimation23_nmno7_1",cube__24:"_cube__24_nmno7_274",cubeAnimation24:"_cubeAnimation24_nmno7_1",cube__25:"_cube__25_nmno7_278",cubeAnimation25:"_cubeAnimation25_nmno7_1",cube__26:"_cube__26_nmno7_282",cubeAnimation26:"_cubeAnimation26_nmno7_1",cube__27:"_cube__27_nmno7_286",cubeAnimation27:"_cubeAnimation27_nmno7_1"},l2=()=>y.jsx("section",{className:_r.containerCube,children:[...Array(27)].map((e,t)=>{let n=t+1;return y.jsxs("section",{className:E(_r.cube,_r[`cube__${n}`]),children:[y.jsx("div",{className:E(_r.cube_side,_r.cube_side__front)}),y.jsx("div",{className:E(_r.cube_side,_r.cube_side__left)}),y.jsx("div",{className:E(_r.cube_side,_r.cube_side__top)})]},t)})});l2.prototype={avocado:"Processing"};const $t={progressBar:"_progressBar_uhxs9_1",progressBar_item:"_progressBar_item_uhxs9_9",section:"_section_uhxs9_9",tooltipRemainingPercent_content:"_tooltipRemainingPercent_content_uhxs9_12",section__done:"_section__done_uhxs9_24",section__inProgress:"_section__inProgress_uhxs9_27",progressBar__notStarted:"_progressBar__notStarted_uhxs9_38",tooltipInProgress:"_tooltipInProgress_uhxs9_42",tooltipDone:"_tooltipDone_uhxs9_47",tooltipRemainingPercent:"_tooltipRemainingPercent_uhxs9_12",tooltipRemainingPercent__notStarted:"_tooltipRemainingPercent__notStarted_uhxs9_61"},gr={tooltip:"_tooltip_1hsfi_1",tooltip_content:"_tooltip_content_1hsfi_5",tooltip_content__show:"_tooltip_content__show_1hsfi_22",arrow:"_arrow_1hsfi_26",arrow_shadow:"_arrow_shadow_1hsfi_29",arrow_triangle:"_arrow_triangle_1hsfi_36",tooltip_content__top:"_tooltip_content__top_1hsfi_41",tooltip_content__topLeft:"_tooltip_content__topLeft_1hsfi_41",tooltip_content__topRight:"_tooltip_content__topRight_1hsfi_41",tooltip_content__bottom:"_tooltip_content__bottom_1hsfi_76",tooltip_content__bottomLeft:"_tooltip_content__bottomLeft_1hsfi_76",tooltip_content__bottomRight:"_tooltip_content__bottomRight_1hsfi_76",tooltip_content__right:"_tooltip_content__right_1hsfi_111",tooltip_content__left:"_tooltip_content__left_1hsfi_129",tooltip__darkMode:"_tooltip__darkMode_1hsfi_147",tooltip__regular:"_tooltip__regular_1hsfi_150"},fa=({children:e,className:t,label:n,placement:r="top",visible:i=null,notShowArrow:o=!1})=>{const{theme:a}=ct();return y.jsxs("div",{className:E(gr.tooltip,(a==null?void 0:a.mode)==="dark"&&gr.tooltip__darkMode,i==null&&gr.tooltip__regular,t&&t),children:[e,y.jsxs("span",{className:E(gr.tooltip_content,gr[`tooltip_content__${r}`],i&&gr.tooltip_content__show),children:[n,!o&&y.jsxs("div",{className:gr.arrow,children:[y.jsx("div",{className:gr.arrow_shadow}),y.jsx("div",{className:gr.arrow_triangle})]})]})]})},tI=({total:e,done:t,inProgress:n,className:r})=>{const[i,o]=v.useState(!1),a={doneSection:t??0,inProgressSection:n??0},s=a.doneSection===0&&a.inProgressSection===0,l=d=>`${(d*100/e).toFixed(0)}%`,c={"--done-width":l(a.doneSection),"--in-progress-width":l(a.inProgressSection)},u=l(e-a.doneSection-a.inProgressSection);return v.useEffect(()=>{a.doneSection+a.inProgressSection<e&&o(!0)}),y.jsxs("div",{style:c,role:"progressbar",className:E($t.progressBar,s&&$t.progressBar__notStarted,r&&r),children:[t&&y.jsx(fa,{label:`${l(t)}`,placement:"top",className:E($t.progressBar_item,$t.tooltipDone),children:y.jsx("div",{"data-testid":"done-section",className:E($t.section,$t.section__done)})}),n&&y.jsx(fa,{placement:"top",label:`${l(n)}`,className:E($t.progressBar_item,$t.tooltipInProgress),children:y.jsx("div",{"data-testid":"in-progress-section",className:E($t.section,$t.section__inProgress)})}),i&&y.jsx(fa,{placement:"top",className:E($t.progressBar_item,$t.tooltipRemainingPercent,s&&$t.tooltipRemainingPercent__notStarted),label:`${u}`,visible:!1,children:y.jsx("div",{className:$t.tooltipRemainingPercent_content})})]})},Ar={radio:"_radio_9b2ek_1",label:"_label_9b2ek_5",label_left:"_label_left_9b2ek_15",label_right:"_label_right_9b2ek_18",label_radio:"_label_radio_9b2ek_21",label_button:"_label_button_9b2ek_27",label__disabled:"_label__disabled_9b2ek_75",radio__darkMode:"_radio__darkMode_9b2ek_78"},c2=({classNameRadioButton:e="",labelLeft:t="",labelRight:n="",disabled:r=!1,...i})=>{const{className:o,ref:a}=i,s=!!t&&typeof n=="string",l=!!n&&typeof n=="string";t&&n&&console.warn("Use `label` or `labelLeft`, not both.");const{theme:c}=ct();return y.jsx("div",{className:E(Ar.radio,"container_row","row_align__end",o&&o,(c==null?void 0:c.mode)==="dark"&&Ar.radio__darkMode),children:y.jsxs("label",{className:E(Ar.label,r&&Ar.label__disabled),children:[s?y.jsx("span",{className:Ar.label_left,children:t}):y.jsx(y.Fragment,{children:t}),y.jsx("input",{...i,className:E(Ar.label_radio,e&&e),type:"radio",disabled:r,ref:a}),y.jsx("span",{className:Ar.label_button}),l?y.jsx("span",{className:Ar.label_right,children:n}):y.jsx(y.Fragment,{children:n})]})})};function nI(){var e=v.useRef(!1);return v.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var u2=Symbol("useLazyRef empty value"),rI=e=>{const t=v.useRef(u2);return t.current===u2&&(t.current=e()),t},iI=setTimeout;function oI(e,t){var n=t.useCachedSetTimeout?iI:setTimeout;return new Promise((function(r){n(r,e)}))}function aI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.useCachedSetTimeout,r=oI(e,{useCachedSetTimeout:n});function i(o){return r.then((function(){return o}))}return i.then=function(){return r.then.apply(r,arguments)},i.catch=Promise.resolve().catch,i}var Cl={},d2;function sI(){if(d2)return Cl;d2=1,Object.defineProperty(Cl,"__esModule",{value:!0});function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(i.length===2)return n(i[0],i[1])||null;var a=i.slice(1).reduce(function(s,l){return n(s,l)},i[0]);return a||null}Cl.default=e;var t=new WeakMap;function n(i,o){if(i&&o){var a=t.get(i)||new WeakMap;t.set(i,a);var s=a.get(o)||(function(l){r(i,l),r(o,l)});return a.set(o,s),s}return i||o}function r(i,o){typeof i=="function"?i(o):i.current=o}return Cl}var lI=sI();const cI=En(lI);var f2=e=>({isFirstLoad:!0,options:[],hasMore:!0,isLoading:!1,additional:e.additional}),uI=({options:e,defaultOptions:t,additional:n,defaultAdditional:r})=>{const i=t===!0?null:t instanceof Array?t:e;return i?{"":{isFirstLoad:!1,isLoading:!1,options:i,hasMore:!0,additional:r||n}}:{}},dI=10,fI=(e,t,n)=>e-t-dI<n,pI=(e,t)=>[...e,...t],p2='[react-select-async-paginate] response of "loadOptions" should be an object with "options" prop, which contains array of options.',hI=e=>{if(!e)return!1;const{options:t,hasMore:n}=e;return!(!Array.isArray(t)||typeof n!="boolean"&&typeof n<"u")},mI=e=>{if(!hI(e))throw console.error(p2,"Received:",e),new Error(p2);return!0},_I=async(e,t,n,r,i,o)=>{const a=t.current.inputValue,s=!n.current[a],l=s?f2(t.current):n.current[a];if(l.isLoading||!l.hasMore)return;if(i(d=>({...d,[a]:{...l,isLoading:!0}})),r>0&&e==="input-change"){await aI(r);const d=t.current.inputValue;if(a!==d){i(f=>{if(s){const{[a]:p,...h}=f;return h}return{...f,[a]:{...l,isLoading:!1}}});return}}let c,u=!1;try{const{loadOptions:d}=t.current;c=await d(a,l.options,l.additional)}catch{u=!0}if(u){i(d=>({...d,[a]:{...l,isLoading:!1}}));return}if(mI(c)){const{options:d,hasMore:f}=c,p=c.hasOwnProperty("additional")?c.additional:l.additional;i(h=>({...h,[a]:{...l,options:o(l.options,d,p),hasMore:!!f,isLoading:!1,isFirstLoad:!1,additional:p}}))}},h2=e=>e+1,gI=(e,t=[])=>{const{defaultOptions:n,loadOptionsOnMenuOpen:r=!0,debounceTimeout:i=0,inputValue:o,menuIsOpen:a,filterOption:s=null,reduceOptions:l=pI,shouldLoadMore:c=fI}=e,u=nI(),d=v.useRef(!0),f=v.useRef(e);f.current=e;const p=v.useState(0)[1],h=rI(()=>uI(e)),g=v.useCallback(b=>{_I(b,f,h,i,C=>{h.current=C(h.current),u.current&&p(h2)},l)},[i]),_=v.useCallback(()=>{const b=f.current.inputValue;h.current[b]&&g("menu-scroll")},[g]);v.useEffect(()=>{d.current?d.current=!1:(h.current={},p(h2)),n===!0&&g("autoload")},t),v.useEffect(()=>{a&&!h.current[o]&&g("input-change")},[o]),v.useEffect(()=>{a&&!h.current[""]&&r&&g("menu-toggle")},[a]);const m=h.current[o]||f2(e);return{handleScrolledToBottom:_,shouldLoadMore:c,filterOption:s,isLoading:m.isLoading,isFirstLoad:m.isFirstLoad,options:m.options}},yI=(e,t=[])=>{const{inputValue:n,menuIsOpen:r,defaultInputValue:i,defaultMenuIsOpen:o,onInputChange:a,onMenuClose:s,onMenuOpen:l}=e,[c,u]=v.useState(i||""),[d,f]=v.useState(!!o),p=typeof n=="string"?n:c,h=typeof r=="boolean"?r:d,g=v.useCallback((C,x)=>{a&&a(C,x),u(C)},[a]),_=v.useCallback(()=>{s&&s(),f(!1)},[s]),m=v.useCallback(()=>{l&&l(),f(!0)},[l]);return{...gI({...e,inputValue:p,menuIsOpen:h},t),inputValue:p,menuIsOpen:h,onInputChange:g,onMenuClose:_,onMenuOpen:m}},bI=300;function vI(e){function t(n){const{selectProps:r,innerRef:i}=n,{handleScrolledToBottom:o,shouldLoadMore:a}=r,s=v.useRef(),l=v.useRef(null),c=v.useCallback(()=>{const f=l.current;if(!f)return!1;const{scrollTop:p,scrollHeight:h,clientHeight:g}=f;return a(h,g,p)},[a]),u=v.useCallback(()=>{c()&&o&&o()},[c,o]),d=v.useCallback(()=>{u(),s.current=setTimeout(d,bI)},[u]);return v.useEffect(()=>(d(),()=>{s.current&&clearTimeout(s.current)}),[]),y.jsx(e,{...n,innerRef:cI(i,l)})}return t}var CI=vI(rl.MenuList),wI=e=>v.useMemo(()=>({MenuList:CI,...e}),[e]),xI=[],kI={};function SI(e){function t(n){const{components:r=kI,selectRef:i=void 0,isLoading:o,cacheUniqs:a=xI,...s}=n,l=yI(s,a),c=wI(r),u=typeof o=="boolean"?o:l.isLoading;return y.jsx(e,{...n,...l,isLoading:u,components:c,ref:i})}return t}var TI=SI(a6);const MI=({className:e="",disabled:t=!1,error:n="",label:r="",placeholder:i="",...o})=>{const{loadOptions:a,value:s,onChange:l}=o,c=n&&typeof n=="string",{uniqueId:u,handleCloseSelect:d}=u6({id:o==null?void 0:o.id});return y.jsxs("div",{className:E("select",n&&"select__error",e&&e),children:[r&&y.jsx("label",{className:"select_label",children:r}),y.jsx(TI,{...o,id:u,className:"reactSelect",classNamePrefix:"reactSelect",isDisabled:t,components:{ClearIndicator:s6,DropdownIndicator:l6},onMenuClose:d,loadOptions:a,value:s,onChange:l,placeholder:i}),c&&y.jsx(c6,{message:n})]})},DI={skeletonBase:"_skeletonBase_1yydk_1"},wl=({width:e="100%",height:t="100px",radius:n="8px",maxWidth:r="unset",className:i})=>{const o={width:e,height:t,maxWidth:r,borderRadius:n};return y.jsx("div",{style:o,className:E(DI.skeletonBase,i&&i)})},LI=({size:e,className:t})=>y.jsx(wl,{className:E(t&&t),height:e,width:e,radius:"100%"}),mi={stepper:"_stepper_1fjf8_1",stepper_content:"_stepper_content_1fjf8_4",step:"_step_1fjf8_1",step_label:"_step_label_1fjf8_19",step__active:"_step__active_1fjf8_31",stepper__darkMode:"_stepper__darkMode_1fjf8_37"},PI=e=>{const{className:t,items:n,itemActive:r,darkMode:i}=e,o=E(mi.stepper_content,t&&t),{theme:a}=ct();return y.jsx("section",{className:E(mi.stepper,(a==null?void 0:a.mode)==="dark"&&mi.stepper__darkMode,i&&mi.stepper__darkMode),children:y.jsx("div",{className:o,children:n.map((s,l)=>y.jsx("div",{className:E(mi.step,l<=r&&mi.step__active),children:y.jsx("span",{className:mi.step_label,children:s})},l))})})},Nr={switchComponent:"_switchComponent_c2vpp_1",switchComponent_input:"_switchComponent_input_c2vpp_5",inputCircle:"_inputCircle_c2vpp_16",switchComponent_input__checked:"_switchComponent_input__checked_c2vpp_26",switchComponent_input__disabled:"_switchComponent_input__disabled_c2vpp_32",inputCircle_icon:"_inputCircle_icon_c2vpp_48",switchComponent_label:"_switchComponent_label_c2vpp_52"},EI=({checked:e,className:t,disabled:n,label:r,onChange:i})=>{const o=()=>{i(!e)};return y.jsxs("section",{className:E(Nr.switchComponent,t&&t),children:[y.jsx("div",{className:E(Nr.switchComponent_input,e&&Nr.switchComponent_input__checked,n&&Nr.switchComponent_input__disabled),onClick:o,children:y.jsx("div",{className:Nr.inputCircle,children:e?y.jsx(ie,{name:"check",size:"sm",className:Nr.inputCircle_icon,color:n?"neutral-50":"neutral-70"}):y.jsx(ie,{name:"close",size:"sm",className:Nr.inputCircle_icon,color:n?"neutral-30":"neutral-70"})})}),r&&y.jsx("span",{className:Nr.switchComponent_label,children:r})]})},no={tabs:"_tabs_165ur_1",tabs_tabList:"_tabs_tabList_165ur_4",item:"_item_165ur_19",tabList_item__active:"_tabList_item__active_165ur_53",tabs_content:"_tabs_content_165ur_67",tabs__darkMode:"_tabs__darkMode_165ur_70"},m2=({className:e,activeIndex:t=0,items:n,onClick:r})=>{const[i,o]=v.useState(t),{theme:a}=ct();return v.useEffect(()=>{t!==i&&o(t)},[t]),y.jsxs("section",{className:E(no.tabs,a.mode==="dark"&&no.tabs__darkMode,e&&e),children:[y.jsx("div",{className:no.tabs_tabList,role:"tablist",children:n==null?void 0:n.map((s,l)=>y.jsx("button",{className:E(no.item,i===l&&no.tabList_item__active),disabled:s==null?void 0:s.disabled,role:"tab",onClick:()=>{s!=null&&s.disabled||(r&&r(l),o(l))},children:s==null?void 0:s.label},`tabs-nav-item-${l}`))}),y.jsx("div",{className:E(i<(n==null?void 0:n.length)&&no.tabs_content),children:n==null?void 0:n.map((s,l)=>y.jsx("div",{hidden:i!==l,role:"tabpanel",children:i===l&&(s==null?void 0:s.children)},`tabs-content-item-${l}`))})]})};m2.prototype={avocado:"Tabs"};const Rr={tag:"_tag_xgxyp_1",tag__filled:"_tag__filled_xgxyp_13",tag__active:"_tag__active_xgxyp_17",tag_content:"_tag_content_xgxyp_21",tag_icon:"_tag_icon_xgxyp_24",iconSvg:"_iconSvg_xgxyp_24",tag__outlined:"_tag__outlined_xgxyp_27",tag__disabled:"_tag__disabled_xgxyp_37"},j1={Outlined:"outlined",Filled:"filled"},II=e=>{const t={[j1.Outlined]:Rr.tag__outlined,[j1.Filled]:Rr.tag__filled};return(t==null?void 0:t[e])??""},OI=e=>{const{type:t=j1.Filled,disabled:n=!1,className:r="",active:i=!1,children:o,icon:a,onClick:s,onIconClick:l}=e,c=[Rr.tag,r&&r,t&&II(t),n&&Rr.tag__disabled,i&&Rr.tag__active];return y.jsxs("div",{className:E(...c),children:[y.jsx("button",{className:Rr.tag_content,onClick:s,children:o}),!!a&&y.jsx("button",{className:Rr.tag_icon,onClick:l,children:y.jsx(ie,{className:Rr.iconSvg,size:"md",name:a,color:"neutral-70"})})]})},F1=({status:e,size:t="md"})=>{const n={error:"circle-cross",warning:"alert-triangle",blocked:"circle-info",unsaved:"refresh"},r={error:!0,warning:!0,unsaved:!0},i={error:"error-50",warning:"warning-50",unsaved:"info-50"};return y.jsx(ie,{size:t,name:n[e],filled:r[e],color:i[e]})},Zn={textField:"_textField_1kcsd_1",textField_label:"_textField_label_1kcsd_4",textField_content:"_textField_content_1kcsd_12",input:"_input_1kcsd_17",input_field:"_input_field_1kcsd_27",input_clearButton:"_input_clearButton_1kcsd_40",input__withIcon:"_input__withIcon_1kcsd_59",textField_content__error:"_textField_content__error_1kcsd_62",textField_content__warning:"_textField_content__warning_1kcsd_65",textField_content__blocked:"_textField_content__blocked_1kcsd_68",textField_content__unsaved:"_textField_content__unsaved_1kcsd_71",textField_helperText:"_textField_helperText_1kcsd_74",textField__darkMode:"_textField__darkMode_1kcsd_84"},_2=({className:e,allowClear:t=!1,label:n,status:r,statusDisplay:i="inline",statusText:o="",icon:a,...s})=>{const{theme:l}=ct(),[c,u]=v.useState(s.value||""),d=()=>{u("")},f=p=>{const h=p.currentTarget.value;u(h),s.onChange&&s.onChange(p)};return y.jsxs("section",{className:E(Zn.textField,e&&e,(l==null?void 0:l.mode)==="dark"&&Zn.textField__darkMode),children:[n&&y.jsx("label",{htmlFor:s.id,className:Zn.textField_label,children:n}),y.jsxs("div",{className:E(Zn.textField_content,r&&Zn[`textField_content__${r}`]),children:[y.jsxs("span",{className:E(Zn.input,a&&Zn.input__withIcon),children:[a&&y.jsx(ie,{name:a,color:s!=null&&s.disabled?"neutral-50":"neutral-70"}),y.jsx("input",{className:Zn.input_field,value:c,onChange:p=>{f(p)},...s}),t&&y.jsx("button",{className:Zn.input_clearButton,onClick:d,children:y.jsx(ie,{name:"close",size:"sm"})})]}),r&&i==="icon"&&y.jsx(F1,{status:r})]}),r&&i==="inline"&&y.jsxs("span",{className:Zn.textField_helperText,children:[y.jsx(F1,{size:"sm",status:r}),o]})]})};_2.prototype={avocado:"TextField"};const qn={textarea:"_textarea_atysc_1",textarea_label:"_textarea_label_atysc_7",textareaLabel:"_textareaLabel_atysc_10",textareaLabel_counter:"_textareaLabel_counter_atysc_16",textarea_content:"_textarea_content_atysc_22",textareaField:"_textareaField_atysc_26",textarea_content__error:"_textarea_content__error_atysc_53",textarea_helperText:"_textarea_helperText_atysc_56",textarea__darkMode:"_textarea__darkMode_atysc_65"},AI=250,g2=({className:e,label:t,maxLength:n=AI,isError:r,errorText:i="",value:o,...a})=>{const{theme:s}=ct(),[l,c]=v.useState(o||""),u=d=>{const f=d.currentTarget.value;c(f),a.onChange&&a.onChange(d)};return v.useEffect(()=>{o!==void 0&&c(o)},[o]),y.jsxs("section",{className:E(qn.textarea,e&&e,(s==null?void 0:s.mode)==="dark"&&qn.textarea__darkMode),children:[t&&y.jsx("label",{htmlFor:a.id,className:qn.textarea_label,children:y.jsxs(je,{className:qn.textareaLabel,type:"sm",children:[t,y.jsx("span",{className:qn.textareaLabel_counter,children:y.jsxs("span",{className:qn.textareaCounter,children:[String(l).length||0," / ",n]})})]})}),y.jsx("div",{className:E(qn.textarea_content,r&&qn.textarea_content__error),children:y.jsx("textarea",{className:qn.textareaField,maxLength:n,value:l,onChange:u,...a})}),r&&i&&y.jsxs("span",{className:qn.textarea_helperText,children:[y.jsx(F1,{size:"sm",status:"error"}),i]})]})};g2.prototype={avocado:"Textarea"};const V1=e=>{var r,i,o;let t=(r=e==null?void 0:e.hours)==null?void 0:r.value,n=(i=e==null?void 0:e.minutes)==null?void 0:i.value;return(t<0||t>=24)&&(console.error(`[AVOCADO-SUITE]: Valor de horas ${t} inválido. Debe ser un número entre 0 y 23`),t=0),(n<0||n>=60)&&(console.error(`[AVOCADO-SUITE]: Valor de minutos ${n} inválido. Debe ser un número entre 0 y 59`),n=0),{days:(o=e==null?void 0:e.days)==null?void 0:o.value,hours:t,minutes:n}},B1=e=>{const t=V1(e),n=t.days*1440,r=t.hours*60;return n+r+t.minutes},y2=e=>{const t=V1(e);let n={days0:"0",days1:"0",daysBack0:"0",daysBack1:"0",hours0:"0",hours1:"0",hoursBack0:"0",hoursBack1:"0",minutes0:"0",minutes1:"0",minutesBack0:"0",minutesBack1:"0"};const r=t.days.toString();t.days>=10?(n.days0=r[0],n.days1=r[1],n.daysBack0=r[0],n.daysBack1=r[1]):(n.days1=r[0],n.daysBack1=r[0]);const i=t.hours.toString();t.hours>=10?(n.hours0=i[0],n.hours1=i[1],n.hoursBack0=i[0],n.hoursBack1=i[1]):(n.hours1=i[0],n.hoursBack1=i[0]);const o=t.minutes.toString();return t.minutes>=10?(n.minutes0=o[0],n.minutes1=o[1],n.minutesBack0=o[0],n.minutesBack1=o[1]):(n.minutes1=o[0],n.minutesBack1=o[0]),n},He={timer:"_timer_jc3uz_1",timer_blocTime:"_timer_blocTime_jc3uz_4",numbers:"_numbers_jc3uz_12",numbers_value:"_numbers_value_jc3uz_17",numbers_value__disabled:"_numbers_value__disabled_jc3uz_23",title:"_title_jc3uz_26",title__disabled:"_title__disabled_jc3uz_40",timer__darkMode:"_timer__darkMode_jc3uz_43"},NI=({className:e,milliSecondsInterval:t=6e4,startCountDown:n=!0,time:r,onFinish:i})=>{const[o,a]=v.useState(r),[s,l]=v.useState(y2(r)),[c,u]=v.useState(0),d=(_,m)=>{l(b=>({...b,[`${_}Back0`]:m[0],[`${_}Back1`]:m[1],[`${_}0`]:m[0],[`${_}1`]:m[1]}))},f=(_,m)=>{const b=_.toString(),C=s[`${m}0`]+s[`${m}1`];_>=10?C!=b&&d(m,b):C!=b&&d(m,`0${b}`)},p=(_,m)=>{const b=setInterval(()=>{m>0?(_.minutes--,_.hours>=0&&_.minutes<0&&(_.minutes=59,_.hours--),_.days>=0&&_.hours<0&&(_.hours=23,_.days--),f(_.days,"days"),f(_.hours,"hours"),f(_.minutes,"minutes"),m--,m===0&&i&&i()):clearInterval(b)},t);u(Number(b))},h=_=>_==="days"&&s.days0==="0"&&s.days1==="0"||_==="hours"&&s.days0==="0"&&s.days1==="0"&&s.hours0==="0"&&s.hours1==="0"||_==="minutes"&&s.days0==="0"&&s.days1==="0"&&s.hours0==="0"&&s.hours1==="0"&&s.minutes0==="0"&&s.minutes1==="0";v.useEffect(()=>{if(B1(r)!==B1(o)&&(clearInterval(c),a(r),l(y2(r))),n){const _=B1(r);p(V1(r),_)}},[r]);const{theme:g}=ct();return y.jsxs("section",{className:E(He.timer,(g==null?void 0:g.mode)==="dark"&&He.timer__darkMode,e&&e),children:[y.jsxs("div",{className:E(He.timer_blocTime),children:[y.jsxs("div",{className:E(He.numbers),children:[y.jsx("span",{className:E(He.numbers_value,h("days")&&He.numbers_value__disabled),children:s.days0}),y.jsx("span",{className:E(He.numbers_value,h("days")&&He.numbers_value__disabled),children:s.days1})]}),y.jsx("div",{className:E(He.title,h("days")&&He.title__disabled),children:r.days.label})]}),y.jsxs("div",{className:E(He.timer_blocTime),children:[y.jsxs("div",{className:E(He.numbers),children:[y.jsx("span",{className:E(He.numbers_value,h("hours")&&He.numbers_value__disabled),children:s.hours0}),y.jsx("span",{className:E(He.numbers_value,h("hours")&&He.numbers_value__disabled),children:s.hours1})]}),y.jsx("div",{className:E(He.title,h("hours")&&He.title__disabled),children:r.hours.label})]}),y.jsxs("div",{className:E(He.timer_blocTime),children:[y.jsxs("div",{className:E(He.numbers),children:[y.jsx("span",{className:E(He.numbers_value,h("minutes")&&He.numbers_value__disabled),children:s.minutes0}),y.jsx("span",{className:E(He.numbers_value,h("minutes")&&He.numbers_value__disabled),children:s.minutes1})]}),y.jsx("div",{className:E(He.title,h("minutes")&&He.title__disabled),children:r.minutes.label})]})]})};function b2(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=b2(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function jr(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=b2(e))&&(r&&(r+=" "),r+=t);return r}function pa(e){return typeof e=="number"&&!isNaN(e)}function ha(e){return typeof e=="boolean"}function _i(e){return typeof e=="string"}function zt(e){return typeof e=="function"}function xl(e){return _i(e)||zt(e)?e:null}function H1(e){return e===0||e}function $1(e){return v.isValidElement(e)||_i(e)||zt(e)||pa(e)}const v2={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},yr={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function RI(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition="all "+n+"ms",requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function kl(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(a){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:f}=a;const p=r?t+"--"+l:t,h=r?n+"--"+l:n,g=v.useRef(),_=v.useRef(0);function m(C){if(C.target!==d.current)return;const x=d.current;x.dispatchEvent(new Event("d")),x.removeEventListener("animationend",m),x.removeEventListener("animationcancel",m),_.current===0&&C.type!=="animationcancel"&&(x.className=g.current)}function b(){const C=d.current;C.removeEventListener("animationend",b),i?RI(C,u,o):u()}return v.useLayoutEffect(()=>{(function(){const C=d.current;g.current=C.className,C.className+=" "+p,C.addEventListener("animationend",m),C.addEventListener("animationcancel",m)})()},[]),v.useEffect(()=>{f||(c?b():(function(){_.current=1;const C=d.current;C.className+=" "+h,C.addEventListener("animationend",b)})())},[f]),v.createElement(v.Fragment,null,s)}}function C2(e,t){return{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}const un={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},Sl=e=>{let{theme:t,type:n,...r}=e;return v.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":"var(--toastify-icon-color-"+n+")",...r})},z1={info:function(e){return v.createElement(Sl,{...e},v.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return v.createElement(Sl,{...e},v.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return v.createElement(Sl,{...e},v.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return v.createElement(Sl,{...e},v.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return v.createElement("div",{className:"Toastify__spinner"})}};function jI(e){const[,t]=v.useReducer(p=>p+1,0),[n,r]=v.useState([]),i=v.useRef(null),o=v.useRef(new Map).current,a=p=>n.indexOf(p)!==-1,s=v.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:a,getToast:p=>o.get(p)}).current;function l(p){let{containerId:h}=p;const{limit:g}=s.props;!g||h&&s.containerId!==h||(s.count-=s.queue.length,s.queue=[])}function c(p){r(h=>H1(p)?h.filter(g=>g!==p):[])}function u(){const{toastContent:p,toastProps:h,staleId:g}=s.queue.shift();f(p,h,g)}function d(p,h){let{delay:g,staleId:_,...m}=h;if(!$1(p)||(function(O){return!i.current||s.props.enableMultiContainer&&O.containerId!==s.props.containerId||o.has(O.toastId)&&O.updateId==null})(m))return;const{toastId:b,updateId:C,data:x}=m,{props:w}=s,k=()=>c(b),S=C==null;S&&s.count++;const M={toastId:b,updateId:C,data:x,containerId:m.containerId,isLoading:m.isLoading,theme:m.theme||w.theme,icon:m.icon!=null?m.icon:w.icon,isIn:!1,key:m.key||s.toastKey++,type:m.type,closeToast:k,closeButton:m.closeButton,rtl:w.rtl,position:m.position||w.position,transition:m.transition||w.transition,className:xl(m.className||w.toastClassName),bodyClassName:xl(m.bodyClassName||w.bodyClassName),style:m.style||w.toastStyle,bodyStyle:m.bodyStyle||w.bodyStyle,onClick:m.onClick||w.onClick,pauseOnHover:ha(m.pauseOnHover)?m.pauseOnHover:w.pauseOnHover,pauseOnFocusLoss:ha(m.pauseOnFocusLoss)?m.pauseOnFocusLoss:w.pauseOnFocusLoss,draggable:ha(m.draggable)?m.draggable:w.draggable,draggablePercent:m.draggablePercent||w.draggablePercent,draggableDirection:m.draggableDirection||w.draggableDirection,closeOnClick:ha(m.closeOnClick)?m.closeOnClick:w.closeOnClick,progressClassName:xl(m.progressClassName||w.progressClassName),progressStyle:m.progressStyle||w.progressStyle,autoClose:!m.isLoading&&(P=m.autoClose,T=w.autoClose,P===!1||pa(P)&&P>0?P:T),hideProgressBar:ha(m.hideProgressBar)?m.hideProgressBar:w.hideProgressBar,progress:m.progress,role:m.role||w.role,deleteToast(){const O=C2(o.get(b),"removed");o.delete(b),un.emit(4,O);const V=s.queue.length;if(s.count=H1(b)?s.count-1:s.count-s.displayedToast,s.count<0&&(s.count=0),V>0){const N=H1(b)?1:s.props.limit;if(V===1||N===1)s.displayedToast++,u();else{const A=N>V?V:N;s.displayedToast=A;for(let j=0;j<A;j++)u()}}else t()}};var P,T;M.iconOut=(function(O){let{theme:V,type:N,isLoading:A,icon:j}=O,Y=null;const H={theme:V,type:N};return j===!1||(zt(j)?Y=j(H):v.isValidElement(j)?Y=v.cloneElement(j,H):_i(j)||pa(j)?Y=j:A?Y=z1.spinner():(G=>G in z1)(N)&&(Y=z1[N](H))),Y})(M),zt(m.onOpen)&&(M.onOpen=m.onOpen),zt(m.onClose)&&(M.onClose=m.onClose),M.closeButton=w.closeButton,m.closeButton===!1||$1(m.closeButton)?M.closeButton=m.closeButton:m.closeButton===!0&&(M.closeButton=!$1(w.closeButton)||w.closeButton);let I=p;v.isValidElement(p)&&!_i(p.type)?I=v.cloneElement(p,{closeToast:k,toastProps:M,data:x}):zt(p)&&(I=p({closeToast:k,toastProps:M,data:x})),w.limit&&w.limit>0&&s.count>w.limit&&S?s.queue.push({toastContent:I,toastProps:M,staleId:_}):pa(g)?setTimeout(()=>{f(I,M,_)},g):f(I,M,_)}function f(p,h,g){const{toastId:_}=h;g&&o.delete(g);const m={content:p,props:h};o.set(_,m),r(b=>[...b,_].filter(C=>C!==g)),un.emit(4,C2(m,m.props.updateId==null?"added":"updated"))}return v.useEffect(()=>(s.containerId=e.containerId,un.cancelEmit(3).on(0,d).on(1,p=>i.current&&c(p)).on(5,l).emit(2,s),()=>un.emit(3,s)),[]),v.useEffect(()=>{s.props=e,s.isToastActive=a,s.displayedToast=n.length}),{getToastToRender:function(p){const h=new Map,g=Array.from(o.values());return e.newestOnTop&&g.reverse(),g.forEach(_=>{const{position:m}=_.props;h.has(m)||h.set(m,[]),h.get(m).push(_)}),Array.from(h,_=>p(_[0],_[1]))},containerRef:i,isToastActive:a}}function w2(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function x2(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function FI(e){const[t,n]=v.useState(!1),[r,i]=v.useState(!1),o=v.useRef(null),a=v.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,s=v.useRef(e),{autoClose:l,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:f}=e;function p(x){if(e.draggable){a.didMove=!1,document.addEventListener("mousemove",m),document.addEventListener("mouseup",b),document.addEventListener("touchmove",m),document.addEventListener("touchend",b);const w=o.current;a.canCloseOnClick=!0,a.canDrag=!0,a.boundingRect=w.getBoundingClientRect(),w.style.transition="",a.x=w2(x.nativeEvent),a.y=x2(x.nativeEvent),e.draggableDirection==="x"?(a.start=a.x,a.removalDistance=w.offsetWidth*(e.draggablePercent/100)):(a.start=a.y,a.removalDistance=w.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function h(){if(a.boundingRect){const{top:x,bottom:w,left:k,right:S}=a.boundingRect;e.pauseOnHover&&a.x>=k&&a.x<=S&&a.y>=x&&a.y<=w?_():g()}}function g(){n(!0)}function _(){n(!1)}function m(x){const w=o.current;a.canDrag&&w&&(a.didMove=!0,t&&_(),a.x=w2(x),a.y=x2(x),a.delta=e.draggableDirection==="x"?a.x-a.start:a.y-a.start,a.start!==a.x&&(a.canCloseOnClick=!1),w.style.transform="translate"+e.draggableDirection+"("+a.delta+"px)",w.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function b(){document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",m),document.removeEventListener("touchend",b);const x=o.current;if(a.canDrag&&a.didMove&&x){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),void e.closeToast();x.style.transition="transform 0.2s, opacity 0.2s",x.style.transform="translate"+e.draggableDirection+"(0)",x.style.opacity="1"}}v.useEffect(()=>{s.current=e}),v.useEffect(()=>(o.current&&o.current.addEventListener("d",g,{once:!0}),zt(e.onOpen)&&e.onOpen(v.isValidElement(e.children)&&e.children.props),()=>{const x=s.current;zt(x.onClose)&&x.onClose(v.isValidElement(x.children)&&x.children.props)}),[]),v.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||_(),window.addEventListener("focus",g),window.addEventListener("blur",_)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",g),window.removeEventListener("blur",_))}),[e.pauseOnFocusLoss]);const C={onMouseDown:p,onTouchStart:p,onMouseUp:h,onTouchEnd:h};return l&&c&&(C.onMouseEnter=_,C.onMouseLeave=g),f&&(C.onClick=x=>{d&&d(x),a.canCloseOnClick&&u()}),{playToast:g,pauseToast:_,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:C}}function k2(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return v.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:i=>{i.stopPropagation(),t(i)},"aria-label":r},v.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},v.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function S2(e){let{delay:t,isRunning:n,closeToast:r,type:i,hide:o,className:a,style:s,controlledProgress:l,progress:c,rtl:u,isIn:d,theme:f}=e;const p={...s,animationDuration:t+"ms",animationPlayState:n?"running":"paused",opacity:o?0:1};l&&(p.transform="scaleX("+c+")");const h=jr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+f,"Toastify__progress-bar--"+i,{"Toastify__progress-bar--rtl":u}),g=zt(a)?a({rtl:u,type:i,defaultClassName:h}):jr(h,a);return v.createElement("div",{role:"progressbar","aria-hidden":o?"true":"false","aria-label":"notification timer",className:g,style:p,[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{d&&r()}})}S2.defaultProps={type:yr.DEFAULT,hide:!1};const VI=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=FI(e),{closeButton:o,children:a,autoClose:s,onClick:l,type:c,hideProgressBar:u,closeToast:d,transition:f,position:p,className:h,style:g,bodyClassName:_,bodyStyle:m,progressClassName:b,progressStyle:C,updateId:x,role:w,progress:k,rtl:S,toastId:M,deleteToast:P,isIn:T,isLoading:I,iconOut:O,theme:V}=e,N=jr("Toastify__toast","Toastify__toast-theme--"+V,"Toastify__toast--"+c,{"Toastify__toast--rtl":S}),A=zt(h)?h({rtl:S,position:p,type:c,defaultClassName:N}):jr(N,h),j=!!k,Y={closeToast:d,type:c,theme:V};let H=null;return o===!1||(H=zt(o)?o(Y):v.isValidElement(o)?v.cloneElement(o,Y):k2(Y)),v.createElement(f,{isIn:T,done:P,position:p,preventExitTransition:n,nodeRef:r},v.createElement("div",{id:M,onClick:l,className:A,...i,style:g,ref:r},v.createElement("div",{...T&&{role:w},className:zt(_)?_({type:c}):jr("Toastify__toast-body",_),style:m},O!=null&&v.createElement("div",{className:jr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!I})},O),v.createElement("div",null,a)),H,(s||j)&&v.createElement(S2,{...x&&!j?{key:"pb-"+x}:{},rtl:S,theme:V,delay:s,isRunning:t,isIn:T,closeToast:d,hide:u,type:c,style:C,className:b,controlledProgress:j,progress:k})))},BI=kl({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),HI=kl({enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0});kl({enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"}),kl({enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"});const W1=v.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=jI(e),{className:o,style:a,rtl:s,containerId:l}=e;function c(u){const d=jr("Toastify__toast-container","Toastify__toast-container--"+u,{"Toastify__toast-container--rtl":s});return zt(o)?o({position:u,rtl:s,defaultClassName:d}):jr(d,xl(o))}return v.useEffect(()=>{t&&(t.current=r.current)},[]),v.createElement("div",{ref:r,className:"Toastify",id:l},n((u,d)=>{const f=d.length?{...a}:{...a,pointerEvents:"none"};return v.createElement("div",{className:c(u),style:f,key:"container-"+u},d.map((p,h)=>{let{content:g,props:_}=p;return v.createElement(VI,{..._,isIn:i(_.toastId),style:{..._.style,"--nth":h+1,"--len":d.length},key:"toast-"+_.key},g)}))}))});W1.displayName="ToastContainer",W1.defaultProps={position:v2.TOP_RIGHT,transition:BI,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:k2,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Y1,ro=new Map,U1=[];function T2(){return Math.random().toString(36).substring(2,9)}function $I(e){return e&&(_i(e.toastId)||pa(e.toastId))?e.toastId:T2()}function ma(e,t){return ro.size>0?un.emit(0,e,t):U1.push({content:e,options:t}),t.toastId}function Tl(e,t){return{...t,type:t&&t.type||e,toastId:$I(t)}}function Ml(e){return(t,n)=>ma(t,Tl(e,n))}function Ye(e,t){return ma(e,Tl(yr.DEFAULT,t))}Ye.loading=(e,t)=>ma(e,Tl(yr.DEFAULT,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ye.promise=function(e,t,n){let r,{pending:i,error:o,success:a}=t;i&&(r=_i(i)?Ye.loading(i,n):Ye.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null,delay:100},l=(u,d,f)=>{if(d==null)return void Ye.dismiss(r);const p={type:u,...s,...n,data:f},h=_i(d)?{render:d}:d;return r?Ye.update(r,{...p,...h}):Ye(h.render,{...p,...h}),f},c=zt(e)?e():e;return c.then(u=>l("success",a,u)).catch(u=>l("error",o,u)),c},Ye.success=Ml(yr.SUCCESS),Ye.info=Ml(yr.INFO),Ye.error=Ml(yr.ERROR),Ye.warning=Ml(yr.WARNING),Ye.warn=Ye.warning,Ye.dark=(e,t)=>ma(e,Tl(yr.DEFAULT,{theme:"dark",...t})),Ye.dismiss=e=>un.emit(1,e),Ye.clearWaitingQueue=function(e){return e===void 0&&(e={}),un.emit(5,e)},Ye.isActive=e=>{let t=!1;return ro.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},Ye.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=(function(r,i){let{containerId:o}=i;const a=ro.get(o||Y1);return a?a.getToast(r):null})(e,t);if(n){const{props:r,content:i}=n,o={...r,...t,toastId:t.toastId||e,updateId:T2()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,ma(a,o)}},0)},Ye.done=e=>{Ye.update(e,{progress:1})},Ye.onChange=e=>(un.on(4,e),()=>{un.off(4,e)}),Ye.POSITION=v2,Ye.TYPE=yr,un.on(2,e=>{Y1=e.containerId||e,ro.set(Y1,e),U1.forEach(t=>{un.emit(0,t.content,t.options)}),U1=[]}).on(3,e=>{ro.delete(e.containerId||e),ro.size===0&&un.off(0).off(1).off(5)});const M2=()=>{const[e,t]=v.useState(window.innerWidth<=992),n=({closeToast:r})=>y.jsx("button",{className:"closeToast",onClick:r,children:y.jsx(ie,{name:"close",color:"gray-00"})});return v.useEffect(()=>{const r=()=>{t(window.innerWidth<=992)};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),y.jsx(W1,{autoClose:!1,className:"toaster",toastClassName:"toaster_item",bodyClassName:"bodyToast",closeButton:n,icon:!1,transition:HI,position:e?"bottom-right":"top-right"})};M2.prototype={avocado:"Toaster"};const _a=()=>{const[e,t]=v.useState(!1);return v.useEffect(()=>{const n=window.matchMedia("(max-width: 992px)");t(n.matches);const r=i=>t(i.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),{isMobile:e}},D2=({row:e,selectorType:t,isDisabled:n,isSelected:r,onSelect:i})=>t?t==="checkbox"?y.jsx(ns,{disabled:n,checked:r,onChange:o=>{var a;return i==null?void 0:i((a=o==null?void 0:o.target)==null?void 0:a.checked,e)}}):y.jsx(c2,{disabled:n,checked:r,onChange:o=>{var a;return i==null?void 0:i((a=o==null?void 0:o.target)==null?void 0:a.checked,e)}}):null,io={tableActionItem:"_tableActionItem_gekem_1",tableActionItem__mobile:"_tableActionItem__mobile_gekem_7",tableActionItem__clickable:"_tableActionItem__clickable_gekem_10",tableActionItem__disabledItem:"_tableActionItem__disabledItem_gekem_17",tableActionItem__disabledRow:"_tableActionItem__disabledRow_gekem_21",tableActionItem_button:"_tableActionItem_button_gekem_24"},L2=({action:e,row:t,isDisabled:n,isMobile:r})=>{var i,o,a;return y.jsxs("div",{className:E(io.tableActionItem,!!(e!=null&&e.onClick)&&io.tableActionItem__clickable,!!((i=e==null?void 0:e.isDisabled)!=null&&i.call(e,t))&&io.tableActionItem__disabledItem,n&&io.tableActionItem__disabledRow,r&&io.tableActionItem__mobile),children:[!!(e!=null&&e.icon)&&y.jsx("button",{className:io.tableActionItem_button,disabled:n||((o=e==null?void 0:e.isDisabled)==null?void 0:o.call(e,t)),onClick:()=>{var s;return!n&&((s=e==null?void 0:e.onClick)==null?void 0:s.call(e,t))},children:y.jsx(ie,{name:(a=e==null?void 0:e.icon)==null?void 0:a.call(e,t),color:"neutral-70"})}),!(e!=null&&e.icon)&&(e!=null&&e.renderContent)?e==null?void 0:e.renderContent(t,!!n):null]})},Qe={bodyRow:"_bodyRow_1il29_1",bodyRow_column:"_bodyRow_column_1il29_1",bodyRow__selected:"_bodyRow__selected_1il29_10",bodyRow__disabled:"_bodyRow__disabled_1il29_13",columnContent:"_columnContent_1il29_19",bodyRow__adaptable:"_bodyRow__adaptable_1il29_23",columnContent_text:"_columnContent_text_1il29_23",bodyRow__relaxed:"_bodyRow__relaxed_1il29_27",actions_item:"_actions_item_1il29_28",bodyRow_column__select:"_bodyRow_column__select_1il29_29",actions:"_actions_1il29_28",bodyRow__condensed:"_bodyRow__condensed_1il29_38",bodyRow_column__actions:"_bodyRow_column__actions_1il29_67",actions_item__expand:"_actions_item__expand_1il29_77",actions_item__open:"_actions_item__open_1il29_84",actionButton:"_actionButton_1il29_87",actionButton__clickable:"_actionButton__clickable_1il29_91",actionButton__disabled:"_actionButton__disabled_1il29_97",bodyExpandedRow_content:"_bodyExpandedRow_content_1il29_102"},zI=({row:e,columns:t=[],rightActions:n,isDisabled:r,isSelectorDisabled:i,isSelected:o,selectorType:a,variant:s="regular",isTextAdaptable:l,onRowSelect:c,renderCustomContent:u})=>{const[d,f]=v.useState(!1);return y.jsxs(y.Fragment,{children:[y.jsxs("tr",{className:E(Qe.bodyRow,Qe==null?void 0:Qe[`bodyRow__${s}`],l&&Qe.bodyRow__adaptable,o&&Qe.bodyRow__selected,r&&Qe.bodyRow__disabled),children:[!!a&&y.jsx("td",{className:E(Qe.bodyRow_column,Qe.bodyRow_column__select),children:y.jsx("div",{className:Qe.columnContent,children:y.jsx(D2,{row:e,selectorType:a,isDisabled:r||i,isSelected:o,onSelect:c})})}),t.map((p,h)=>{var g,_,m;return y.jsx("td",{className:E(Qe.bodyRow_column,(g=p==null?void 0:p.desktopOptions)==null?void 0:g.bodyCellClassName),style:(_=p==null?void 0:p.desktopOptions)==null?void 0:_.bodyCellStyles,children:y.jsx("div",{className:Qe.columnContent,children:p!=null&&p.renderCell?(m=p==null?void 0:p.renderCell)==null?void 0:m.call(p,e):!!(p!=null&&p.accessor)&&y.jsx(je,{className:Qe.columnContent_text,children:String(e[p==null?void 0:p.accessor]??"")})})},`column-${h}-${p==null?void 0:p.key}`)}),(!!u||!!(n!=null&&n.length))&&y.jsx("td",{className:E(Qe.bodyRow_column,Qe.bodyRow_column__actions),children:y.jsxs("div",{className:E(Qe.columnContent,Qe.actions),children:[n==null?void 0:n.map((p,h)=>!(p!=null&&p.shouldRender)||p!=null&&p.shouldRender(e)?y.jsx(L2,{action:p,row:e,isDisabled:r},h):null),!!u&&y.jsx(wr,{className:E(Qe.actions_item,Qe.actions_item__expand,d&&Qe.actions_item__open),icon:"chevron-down",variant:"ghost",size:"sm",disabled:r,onClick:()=>f(!d)})]})})]}),d&&!!u&&y.jsx("tr",{className:Qe.bodyExpandedRow,children:y.jsx("td",{className:Qe.bodyExpandedRow_content,colSpan:6,children:u(e)})})]})},Wt={tableDesktopHead:"_tableDesktopHead_1wp11_1",tableDesktopHead__relaxed:"_tableDesktopHead__relaxed_1wp11_1",headRow_column:"_headRow_column_1wp11_1",headRow_column__select:"_headRow_column__select_1wp11_2",tableDesktopHead__condensed:"_tableDesktopHead__condensed_1wp11_6",headRow:"_headRow_1wp11_1",columnContent:"_columnContent_1wp11_23",columnContent_text:"_columnContent_text_1wp11_29",columnContent_sortButton:"_columnContent_sortButton_1wp11_32",sortIcon:"_sortIcon_1wp11_38",sortIcon__asc:"_sortIcon__asc_1wp11_41"},WI=({rowOptions:e,columns:t,variant:n="regular",initialSort:r,hasActions:i,isSelectorDisabled:o,onSortChange:a})=>{const[s,l]=v.useState({column:(r==null?void 0:r.column)||null,direction:(r==null?void 0:r.direction)||null}),c=u=>{if(!u)return;const d=(s==null?void 0:s.column)===u,f={column:u,direction:d&&s.direction==="asc"?"desc":"asc"};l(f),a==null||a(f)};return y.jsx("thead",{className:E(Wt.tableDesktopHead,Wt==null?void 0:Wt[`tableDesktopHead__${n}`]),children:y.jsxs("tr",{className:Wt.headRow,children:[!!(e!=null&&e.selectorType)&&y.jsx("th",{className:E(Wt.headRow_column,Wt.headRow_column__select),children:(e==null?void 0:e.selectorType)==="checkbox"&&y.jsx(ns,{disabled:o,checked:e==null?void 0:e.isAllSelected,onChange:u=>{var d,f;return(f=e==null?void 0:e.onSelectAll)==null?void 0:f.call(e,(d=u==null?void 0:u.target)==null?void 0:d.checked)}})}),t==null?void 0:t.map((u,d)=>{var f,p;return y.jsx("th",{className:E(Wt.headRow_column,(f=u==null?void 0:u.desktopOptions)==null?void 0:f.headCellClassName),style:(p=u==null?void 0:u.desktopOptions)==null?void 0:p.headCellStyles,children:y.jsxs("div",{className:Wt.columnContent,children:[(u==null?void 0:u.isSortable)&&y.jsx("button",{"aria-label":"sort",className:Wt.columnContent_sortButton,onClick:()=>(u==null?void 0:u.isSortable)&&c(u==null?void 0:u.key),children:y.jsx(ie,{className:E(Wt.sortIcon,(u==null?void 0:u.key)&&(s==null?void 0:s.direction)==="asc"&&(s==null?void 0:s.column)===(u==null?void 0:u.key)&&Wt.sortIcon__asc),name:"arrow-down",color:"neutral-70"})}),typeof(u==null?void 0:u.header)=="string"?y.jsx(yt,{className:Wt.columnContent_text,type:"h4",children:u==null?void 0:u.header}):u==null?void 0:u.header]})},`head-column-${d}-${u==null?void 0:u.key}`)}),(!!(e!=null&&e.renderCustomContent)||!!i)&&y.jsx("th",{className:Wt.headRow_column})]})})},P2={tableDesktop:"_tableDesktop_2qx8i_1",tableDesktop_component:"_tableDesktop_component_2qx8i_23"},YI=({className:e,data:t=[],columns:n=[],rightActions:r=[],rowOptions:i,desktopVariant:o="regular",initialSort:a,onSortChange:s})=>y.jsx("div",{className:P2.tableDesktop,children:y.jsxs("table",{className:E(P2.tableDesktop_component,e&&e),children:[y.jsx(WI,{columns:n,rowOptions:i,variant:o,initialSort:a,isSelectorDisabled:i==null?void 0:i.isHeadSelectorDisabled,hasActions:!!r.length,onSortChange:s}),y.jsx("tbody",{children:t.map((l,c)=>{var u,d,f;return y.jsx(zI,{row:l,columns:n,rightActions:r,variant:o,selectorType:i==null?void 0:i.selectorType,isSelected:(u=i==null?void 0:i.isSelected)==null?void 0:u.call(i,l),isDisabled:(d=i==null?void 0:i.isDisabled)==null?void 0:d.call(i,l),isSelectorDisabled:(f=i==null?void 0:i.isSelectorDisabled)==null?void 0:f.call(i,l),isTextAdaptable:i==null?void 0:i.isTextAdaptable,renderCustomContent:i==null?void 0:i.renderCustomContent,onRowSelect:i==null?void 0:i.onRowSelect},`row-${c}`)})})]})}),nt={tableMobileRow:"_tableMobileRow_1l1v1_1",tableMobileRow__selected:"_tableMobileRow__selected_1l1v1_5",tableMobileRow__disabled:"_tableMobileRow__disabled_1l1v1_8",tableMobileRow_head:"_tableMobileRow_head_1l1v1_11",headSelect:"_headSelect_1l1v1_21",headActions:"_headActions_1l1v1_25",tableMobileRow_body:"_tableMobileRow_body_1l1v1_41",bodyContentTrigger:"_bodyContentTrigger_1l1v1_44",bodyContentTrigger__fullWidth:"_bodyContentTrigger__fullWidth_1l1v1_50",bodyContentTrigger_button:"_bodyContentTrigger_button_1l1v1_53",bodyContentTrigger_button__open:"_bodyContentTrigger_button__open_1l1v1_62",bodyContentTrigger_button__disabled:"_bodyContentTrigger_button__disabled_1l1v1_65",bodyColumn:"_bodyColumn_1l1v1_68",bodyColumn__custom:"_bodyColumn__custom_1l1v1_74",bodyColumn_title:"_bodyColumn_title_1l1v1_77",bodyColumn_text:"_bodyColumn_text_1l1v1_77",bodyContent:"_bodyContent_1l1v1_44",bodyContent__alwaysVisible:"_bodyContent__alwaysVisible_1l1v1_97",bodyContent_separator:"_bodyContent_separator_1l1v1_101"},E2=({column:e,row:t})=>e?y.jsxs(y.Fragment,{children:[y.jsx(je,{className:nt.bodyColumn_title,type:"sm",weight:"medium",children:e==null?void 0:e.header}),e!=null&&e.renderCell?e==null?void 0:e.renderCell(t):y.jsx(je,{className:nt.bodyColumn_text,type:"sm",children:e!=null&&e.accessor?String((t==null?void 0:t[e==null?void 0:e.accessor])??""):""})]}):null,UI=({columns:e=[],row:t,isDisabled:n,isSelectorDisabled:r,isSelected:i,selectorType:o,actions:a=[],onRowSelect:s,renderCustomContent:l,collapsible:c=!1})=>{var g,_;const[u,d]=v.useState(!1),f=c?u:!0,p=v.useMemo(()=>{const m=[...e];return{first:m.shift(),columns:m}},[e]),h=v.useMemo(()=>a==null?void 0:a.some(m=>!(m!=null&&m.shouldRender)||(m==null?void 0:m.shouldRender(t))),[a,t]);return y.jsxs("div",{className:E(nt.tableMobileRow,n&&nt.tableMobileRow__disabled,i&&nt.tableMobileRow__selected),children:[(!!o||h)&&y.jsxs("div",{className:nt.tableMobileRow_head,children:[y.jsx("div",{className:nt.headSelect,children:y.jsx(D2,{row:t,selectorType:o,isDisabled:n||r,isSelected:i,onSelect:s})}),y.jsx("div",{className:nt.headActions,children:a==null?void 0:a.map((m,b)=>!(m!=null&&m.shouldRender)||m!=null&&m.shouldRender(t)?y.jsx(L2,{action:m,row:t,isDisabled:n,isMobile:!0},b):null)})]}),y.jsxs("div",{className:nt.tableMobileRow_body,children:[y.jsxs("div",{className:E(nt.bodyContentTrigger,!c&&nt.bodyContentTrigger__fullWidth),children:[y.jsx("div",{className:nt.bodyColumn,children:E2({column:p.first,row:t})}),c&&y.jsx("button",{disabled:n,className:E(nt.bodyContentTrigger_button,u&&nt.bodyContentTrigger_button__open,n&&nt.bodyContentTrigger_button__disabled),onClick:()=>!n&&d(!u),children:y.jsx(ie,{name:"chevron-down",size:"lg"})})]}),y.jsxs("div",{className:E(nt.bodyContent,!c&&nt.bodyContent__alwaysVisible),style:c?{maxHeight:f?`${(Math.floor(((g=p==null?void 0:p.columns)==null?void 0:g.length)/2)+1)*100}px`:0}:void 0,children:[y.jsx("div",{className:nt.bodyContent_separator}),(_=p==null?void 0:p.columns)==null?void 0:_.map((m,b)=>y.jsx("div",{className:nt.bodyColumn,children:E2({column:m,row:t})},b)),!!l&&y.jsx("div",{className:E(nt.bodyColumn,nt.bodyColumn__custom),children:l(t)})]})]})]})},ZI={tableMobile:"_tableMobile_1iao8_1"},qI=({className:e,data:t=[],columns:n=[],rightActions:r,rowOptions:i,mobileCollapsible:o=!1})=>y.jsx("div",{className:E(ZI.tableMobile,e&&e),children:t==null?void 0:t.map((a,s)=>{var l,c,u;return y.jsx(UI,{row:a,columns:n,actions:r,isDisabled:(l=i==null?void 0:i.isDisabled)==null?void 0:l.call(i,a),isSelected:(c=i==null?void 0:i.isSelected)==null?void 0:c.call(i,a),isSelectorDisabled:(u=i==null?void 0:i.isSelectorDisabled)==null?void 0:u.call(i,a),selectorType:i==null?void 0:i.selectorType,onRowSelect:i==null?void 0:i.onRowSelect,renderCustomContent:i==null?void 0:i.renderCustomContent,collapsible:o},s)})}),GI=({notResponsive:e=!1,...t})=>{const{isMobile:n}=_a(),r=n&&!e?qI:YI;return y.jsx(r,{...t})},Z1={weeklyItem:"_weeklyItem_paxim_1",weeklyItem__selected:"_weeklyItem__selected_paxim_18",weeklyItem__disabled:"_weeklyItem__disabled_paxim_23"},KI=(e,t=7)=>{const r=Math.ceil((e+1)/t)<=1?"bottom":"top";return e%t<=3?`${r}Left`:`${r}Right`},QI=({className:e,index:t=0,label:n,isDisabled:r,isSelected:i,tooltipLabel:o,onClick:a})=>{const{isMobile:s}=_a();return y.jsx(fa,{visible:o?void 0:!1,label:o,placement:KI(t,s?7:8),children:y.jsx("button",{className:E(Z1.weeklyItem,e&&e,i&&Z1.weeklyItem__selected,r&&Z1.weeklyItem__disabled),onClick:a,children:n})})},XI={weekly:"_weekly_1shnp_1"},I2=({weeklyItems:e=[],className:t})=>y.jsx("div",{className:E(XI.weekly,t&&t),children:e.map((n,r)=>y.jsx(QI,{index:r,...n},n.id??`item-${r}`))}),JI=e=>{const[t,n]=v.useState(!0),[r,i]=v.useState(!0),o=v.useCallback(()=>{e&&e.scrollPrev()},[e]),a=v.useCallback(()=>{e&&e.scrollNext()},[e]),s=v.useCallback(l=>{n(!l.canScrollPrev()),i(!l.canScrollNext())},[]);return v.useEffect(()=>{e&&(s(e),e.on("reInit",s).on("select",s))},[e,s]),{prevBtnDisabled:t,nextBtnDisabled:r,onPrevButtonClick:o,onNextButtonClick:a}},O2=e=>{const[t,n]=v.useState(0),[r,i]=v.useState([]),o=v.useCallback(l=>{var c;e&&((c=e==null?void 0:e.scrollTo)==null||c.call(e,l))},[e]),a=v.useCallback(l=>{var c;i((c=l==null?void 0:l.scrollSnapList)==null?void 0:c.call(l))},[]),s=v.useCallback(l=>{var c;n((c=l==null?void 0:l.selectedScrollSnap)==null?void 0:c.call(l))},[]);return v.useEffect(()=>{e&&(a(e),s(e),e.on("reInit",a).on("reInit",s).on("select",s))},[e,a,s]),{selectedIndex:t,scrollSnaps:r,onDotButtonClick:o}};function eO(e){return Object.prototype.toString.call(e)==="[object Object]"}function A2(e){return eO(e)||Array.isArray(e)}function tO(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function q1(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const i=JSON.stringify(Object.keys(e.breakpoints||{})),o=JSON.stringify(Object.keys(t.breakpoints||{}));return i!==o?!1:n.every(a=>{const s=e[a],l=t[a];return typeof s=="function"?`${s}`==`${l}`:!A2(s)||!A2(l)?s===l:q1(s,l)})}function N2(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function nO(e,t){if(e.length!==t.length)return!1;const n=N2(e),r=N2(t);return n.every((i,o)=>{const a=r[o];return q1(i,a)})}function G1(e){return typeof e=="number"}function K1(e){return typeof e=="string"}function Dl(e){return typeof e=="boolean"}function R2(e){return Object.prototype.toString.call(e)==="[object Object]"}function qe(e){return Math.abs(e)}function Q1(e){return Math.sign(e)}function ga(e,t){return qe(e-t)}function rO(e,t){if(e===0||t===0||qe(e)<=qe(t))return 0;const n=ga(qe(e),qe(t));return qe(n/e)}function iO(e){return Math.round(e*100)/100}function ya(e){return va(e).map(Number)}function bn(e){return e[ba(e)]}function ba(e){return Math.max(0,e.length-1)}function X1(e,t){return t===ba(e)}function j2(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function va(e){return Object.keys(e)}function F2(e,t){return[e,t].reduce((n,r)=>(va(r).forEach(i=>{const o=n[i],a=r[i],s=R2(o)&&R2(a);n[i]=s?F2(o,a):a}),n),{})}function J1(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function oO(e,t){const n={start:r,center:i,end:o};function r(){return 0}function i(l){return o(l)/2}function o(l){return t-l}function a(l,c){return K1(e)?n[e](l):e(t,l,c)}return{measure:a}}function Ca(){let e=[];function t(i,o,a,s={passive:!0}){let l;if("addEventListener"in i)i.addEventListener(o,a,s),l=()=>i.removeEventListener(o,a,s);else{const c=i;c.addListener(a),l=()=>c.removeListener(a)}return e.push(l),r}function n(){e=e.filter(i=>i())}const r={add:t,clear:n};return r}function aO(e,t,n,r){const i=Ca(),o=1e3/60;let a=null,s=0,l=0;function c(){i.add(e,"visibilitychange",()=>{e.hidden&&h()})}function u(){p(),i.clear()}function d(_){if(!l)return;a||(a=_,n(),n());const m=_-a;for(a=_,s+=m;s>=o;)n(),s-=o;const b=s/o;r(b),l&&(l=t.requestAnimationFrame(d))}function f(){l||(l=t.requestAnimationFrame(d))}function p(){t.cancelAnimationFrame(l),a=null,s=0,l=0}function h(){a=null,s=0}return{init:c,destroy:u,start:f,stop:p,update:n,render:r}}function sO(e,t){const n=t==="rtl",r=e==="y",i=r?"y":"x",o=r?"x":"y",a=!r&&n?-1:1,s=u(),l=d();function c(h){const{height:g,width:_}=h;return r?g:_}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function f(h){return h*a}return{scroll:i,cross:o,startEdge:s,endEdge:l,measureSize:c,direction:f}}function gi(e=0,t=0){const n=qe(e-t);function r(c){return c<e}function i(c){return c>t}function o(c){return r(c)||i(c)}function a(c){return o(c)?r(c)?e:t:c}function s(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:a,reachedAny:o,reachedMax:i,reachedMin:r,removeOffset:s}}function V2(e,t,n){const{constrain:r}=gi(0,e),i=e+1;let o=a(t);function a(f){return n?qe((i+f)%i):r(f)}function s(){return o}function l(f){return o=a(f),d}function c(f){return u().set(s()+f)}function u(){return V2(e,s(),n)}const d={get:s,set:l,add:c,clone:u};return d}function lO(e,t,n,r,i,o,a,s,l,c,u,d,f,p,h,g,_,m,b){const{cross:C,direction:x}=e,w=["INPUT","SELECT","TEXTAREA"],k={passive:!1},S=Ca(),M=Ca(),P=gi(50,225).constrain(p.measure(20)),T={mouse:300,touch:400},I={mouse:500,touch:600},O=h?43:25;let V=!1,N=0,A=0,j=!1,Y=!1,H=!1,G=!1;function D(ne){if(!b)return;function Ie(lt){(Dl(b)||b(ne,lt))&&ge(lt)}const We=t;S.add(We,"dragstart",lt=>lt.preventDefault(),k).add(We,"touchmove",()=>{},k).add(We,"touchend",()=>{}).add(We,"touchstart",Ie).add(We,"mousedown",Ie).add(We,"touchcancel",we).add(We,"contextmenu",we).add(We,"click",rt,!0)}function Ce(){S.clear(),M.clear()}function he(){const ne=G?n:t;M.add(ne,"touchmove",Re,k).add(ne,"touchend",we).add(ne,"mousemove",Re,k).add(ne,"mouseup",we)}function L(ne){const Ie=ne.nodeName||"";return w.includes(Ie)}function De(){return(h?I:T)[G?"mouse":"touch"]}function Je(ne,Ie){const We=d.add(Q1(ne)*-1),lt=u.byDistance(ne,!h).distance;return h||qe(ne)<P?lt:_&&Ie?lt*.5:u.byIndex(We.get(),0).distance}function ge(ne){const Ie=J1(ne,r);G=Ie,H=h&&Ie&&!ne.buttons&&V,V=ga(i.get(),a.get())>=2,!(Ie&&ne.button!==0)&&(L(ne.target)||(j=!0,o.pointerDown(ne),c.useFriction(0).useDuration(0),i.set(a),he(),N=o.readPoint(ne),A=o.readPoint(ne,C),f.emit("pointerDown")))}function Re(ne){if(!J1(ne,r)&&ne.touches.length>=2)return we(ne);const We=o.readPoint(ne),lt=o.readPoint(ne,C),nn=ga(We,N),hn=ga(lt,A);if(!Y&&!G&&(!ne.cancelable||(Y=nn>hn,!Y)))return we(ne);const Cr=o.pointerMove(ne);nn>g&&(H=!0),c.useFriction(.3).useDuration(.75),s.start(),i.add(x(Cr)),ne.preventDefault()}function we(ne){const We=u.byDistance(0,!1).index!==d.get(),lt=o.pointerUp(ne)*De(),nn=Je(x(lt),We),hn=rO(lt,nn),Cr=O-10*hn,Dn=m+hn/50;Y=!1,j=!1,M.clear(),c.useDuration(Cr).useFriction(Dn),l.distance(nn,!h),G=!1,f.emit("pointerUp")}function rt(ne){H&&(ne.stopPropagation(),ne.preventDefault(),H=!1)}function it(){return j}return{init:D,destroy:Ce,pointerDown:it}}function cO(e,t){let r,i;function o(d){return d.timeStamp}function a(d,f){const h=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(J1(d,t)?d:d.touches[0])[h]}function s(d){return r=d,i=d,a(d)}function l(d){const f=a(d)-a(i),p=o(d)-o(r)>170;return i=d,p&&(r=d),f}function c(d){if(!r||!i)return 0;const f=a(i)-a(r),p=o(d)-o(r),h=o(d)-o(i)>170,g=f/p;return p&&!h&&qe(g)>.1?g:0}return{pointerDown:s,pointerMove:l,pointerUp:c,readPoint:a}}function uO(){function e(n){const{offsetTop:r,offsetLeft:i,offsetWidth:o,offsetHeight:a}=n;return{top:r,right:i+o,bottom:r+a,left:i,width:o,height:a}}return{measure:e}}function dO(e){function t(r){return e*(r/100)}return{measure:t}}function fO(e,t,n,r,i,o,a){const s=[e].concat(r);let l,c,u=[],d=!1;function f(_){return i.measureSize(a.measure(_))}function p(_){if(!o)return;c=f(e),u=r.map(f);function m(b){for(const C of b){if(d)return;const x=C.target===e,w=r.indexOf(C.target),k=x?c:u[w],S=f(x?e:r[w]);if(qe(S-k)>=.5){_.reInit(),t.emit("resize");break}}}l=new ResizeObserver(b=>{(Dl(o)||o(_,b))&&m(b)}),n.requestAnimationFrame(()=>{s.forEach(b=>l.observe(b))})}function h(){d=!0,l&&l.disconnect()}return{init:p,destroy:h}}function pO(e,t,n,r,i,o){let a=0,s=0,l=i,c=o,u=e.get(),d=0;function f(){const k=r.get()-e.get(),S=!l;let M=0;return S?(a=0,n.set(r),e.set(r),M=k):(n.set(e),a+=k/l,a*=c,u+=a,e.add(a),M=u-d),s=Q1(M),d=u,w}function p(){const k=r.get()-t.get();return qe(k)<.001}function h(){return l}function g(){return s}function _(){return a}function m(){return C(i)}function b(){return x(o)}function C(k){return l=k,w}function x(k){return c=k,w}const w={direction:g,duration:h,velocity:_,seek:f,settled:p,useBaseFriction:b,useBaseDuration:m,useFriction:x,useDuration:C};return w}function hO(e,t,n,r,i){const o=i.measure(10),a=i.measure(50),s=gi(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(p){if(!c())return;const h=e.reachedMin(t.get())?"min":"max",g=qe(e[h]-t.get()),_=n.get()-t.get(),m=s.constrain(g/a);n.subtract(_*m),!p&&qe(_)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(p){l=!p}return{shouldConstrain:c,constrain:u,toggleActive:d}}function mO(e,t,n,r,i){const o=gi(-t+e,0),a=d(),s=u(),l=f();function c(h,g){return ga(h,g)<=1}function u(){const h=a[0],g=bn(a),_=a.lastIndexOf(h),m=a.indexOf(g)+1;return gi(_,m)}function d(){return n.map((h,g)=>{const{min:_,max:m}=o,b=o.constrain(h),C=!g,x=X1(n,g);return C?m:x||c(_,b)?_:c(m,b)?m:b}).map(h=>parseFloat(h.toFixed(3)))}function f(){if(t<=e+i)return[o.max];if(r==="keepSnaps")return a;const{min:h,max:g}=s;return a.slice(h,g)}return{snapsContained:l,scrollContainLimit:s}}function _O(e,t,n){const r=t[0],i=n?r-e:bn(t);return{limit:gi(i,r)}}function gO(e,t,n,r){const o=t.min+.1,a=t.max+.1,{reachedMin:s,reachedMax:l}=gi(o,a);function c(f){return f===1?l(n.get()):f===-1?s(n.get()):!1}function u(f){if(!c(f))return;const p=e*(f*-1);r.forEach(h=>h.add(p))}return{loop:u}}function yO(e){const{max:t,length:n}=e;function r(o){const a=o-t;return n?a/-n:0}return{get:r}}function bO(e,t,n,r,i){const{startEdge:o,endEdge:a}=e,{groupSlides:s}=i,l=d().map(t.measure),c=f(),u=p();function d(){return s(r).map(g=>bn(g)[a]-g[0][o]).map(qe)}function f(){return r.map(g=>n[o]-g[o]).map(g=>-qe(g))}function p(){return s(c).map(g=>g[0]).map((g,_)=>g+l[_])}return{snaps:c,snapsAligned:u}}function vO(e,t,n,r,i,o){const{groupSlides:a}=i,{min:s,max:l}=r,c=u();function u(){const f=a(o),p=!e||t==="keepSnaps";return n.length===1?[o]:p?f:f.slice(s,l).map((h,g,_)=>{const m=!g,b=X1(_,g);if(m){const C=bn(_[0])+1;return j2(C)}if(b){const C=ba(o)-bn(_)[0]+1;return j2(C,bn(_)[0])}return h})}return{slideRegistry:c}}function CO(e,t,n,r,i){const{reachedAny:o,removeOffset:a,constrain:s}=r;function l(h){return h.concat().sort((g,_)=>qe(g)-qe(_))[0]}function c(h){const g=e?a(h):s(h),_=t.map((b,C)=>({diff:u(b-g,0),index:C})).sort((b,C)=>qe(b.diff)-qe(C.diff)),{index:m}=_[0];return{index:m,distance:g}}function u(h,g){const _=[h,h+n,h-n];if(!e)return h;if(!g)return l(_);const m=_.filter(b=>Q1(b)===g);return m.length?l(m):bn(_)-n}function d(h,g){const _=t[h]-i.get(),m=u(_,g);return{index:h,distance:m}}function f(h,g){const _=i.get()+h,{index:m,distance:b}=c(_),C=!e&&o(_);if(!g||C)return{index:m,distance:h};const x=t[m]-b,w=h+u(x,0);return{index:m,distance:w}}return{byDistance:f,byIndex:d,shortcut:u}}function wO(e,t,n,r,i,o,a){function s(d){const f=d.distance,p=d.index!==t.get();o.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(n.set(t.get()),t.set(d.index),a.emit("select"))}function l(d,f){const p=i.byDistance(d,f);s(p)}function c(d,f){const p=t.clone().set(d),h=i.byIndex(p.get(),f);s(h)}return{distance:l,index:c}}function xO(e,t,n,r,i,o,a,s){const l={passive:!0,capture:!0};let c=0;function u(p){if(!s)return;function h(g){if(new Date().getTime()-c>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(C=>C.includes(g));G1(b)&&(i.useDuration(0),r.index(b,0),a.emit("slideFocus"))}o.add(document,"keydown",d,!1),t.forEach((g,_)=>{o.add(g,"focus",m=>{(Dl(s)||s(p,m))&&h(_)},l)})}function d(p){p.code==="Tab"&&(c=new Date().getTime())}return{init:u}}function wa(e){let t=e;function n(){return t}function r(l){t=a(l)}function i(l){t+=a(l)}function o(l){t-=a(l)}function a(l){return G1(l)?l:l.get()}return{get:n,set:r,add:i,subtract:o}}function B2(e,t){const n=e.scroll==="x"?a:s,r=t.style;let i=null,o=!1;function a(f){return`translate3d(${f}px,0px,0px)`}function s(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(o)return;const p=iO(e.direction(f));p!==i&&(r.transform=n(p),i=p)}function c(f){o=!f}function u(){o||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function kO(e,t,n,r,i,o,a,s,l){const u=ya(i),d=ya(i).reverse(),f=m().concat(b());function p(S,M){return S.reduce((P,T)=>P-i[T],M)}function h(S,M){return S.reduce((P,T)=>p(P,M)>0?P.concat([T]):P,[])}function g(S){return o.map((M,P)=>({start:M-r[P]+.5+S,end:M+t-.5+S}))}function _(S,M,P){const T=g(M);return S.map(I=>{const O=P?0:-n,V=P?n:0,N=P?"end":"start",A=T[I][N];return{index:I,loopPoint:A,slideLocation:wa(-1),translate:B2(e,l[I]),target:()=>s.get()>A?O:V}})}function m(){const S=a[0],M=h(d,S);return _(M,n,!1)}function b(){const S=t-a[0]-1,M=h(u,S);return _(M,-n,!0)}function C(){return f.every(({index:S})=>{const M=u.filter(P=>P!==S);return p(M,t)<=.1})}function x(){f.forEach(S=>{const{target:M,translate:P,slideLocation:T}=S,I=M();I!==T.get()&&(P.to(I),T.set(I))})}function w(){f.forEach(S=>S.translate.clear())}return{canLoop:C,clear:w,loop:x,loopPoints:f}}function SO(e,t,n){let r,i=!1;function o(l){if(!n)return;function c(u){for(const d of u)if(d.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{i||(Dl(n)||n(l,u))&&c(u)}),r.observe(e,{childList:!0})}function a(){r&&r.disconnect(),i=!0}return{init:o,destroy:a}}function TO(e,t,n,r){const i={};let o=null,a=null,s,l=!1;function c(){s=new IntersectionObserver(h=>{l||(h.forEach(g=>{const _=t.indexOf(g.target);i[_]=g}),o=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(h=>s.observe(h))}function u(){s&&s.disconnect(),l=!0}function d(h){return va(i).reduce((g,_)=>{const m=parseInt(_),{isIntersecting:b}=i[m];return(h&&b||!h&&!b)&&g.push(m),g},[])}function f(h=!0){if(h&&o)return o;if(!h&&a)return a;const g=d(h);return h&&(o=g),h||(a=g),g}return{init:c,destroy:u,get:f}}function MO(e,t,n,r,i,o){const{measureSize:a,startEdge:s,endEdge:l}=e,c=n[0]&&i,u=h(),d=g(),f=n.map(a),p=_();function h(){if(!c)return 0;const b=n[0];return qe(t[s]-b[s])}function g(){if(!c)return 0;const b=o.getComputedStyle(bn(r));return parseFloat(b.getPropertyValue(`margin-${l}`))}function _(){return n.map((b,C,x)=>{const w=!C,k=X1(x,C);return w?f[C]+u:k?f[C]+d:x[C+1][s]-b[s]}).map(qe)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function DO(e,t,n,r,i,o,a,s,l){const{startEdge:c,endEdge:u,direction:d}=e,f=G1(n);function p(m,b){return ya(m).filter(C=>C%b===0).map(C=>m.slice(C,C+b))}function h(m){return m.length?ya(m).reduce((b,C,x)=>{const w=bn(b)||0,k=w===0,S=C===ba(m),M=i[c]-o[w][c],P=i[c]-o[C][u],T=!r&&k?d(a):0,I=!r&&S?d(s):0,O=qe(P-I-(M+T));return x&&O>t+l&&b.push(C),S&&b.push(m.length),b},[]).map((b,C,x)=>{const w=Math.max(x[C-1]||0);return m.slice(w,b)}):[]}function g(m){return f?p(m,n):h(m)}return{groupSlides:g}}function LO(e,t,n,r,i,o,a){const{align:s,axis:l,direction:c,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:h,inViewThreshold:g,slidesToScroll:_,skipSnaps:m,containScroll:b,watchResize:C,watchSlides:x,watchDrag:w,watchFocus:k}=o,S=2,M=uO(),P=M.measure(t),T=n.map(M.measure),I=sO(l,c),O=I.measureSize(P),V=dO(O),N=oO(s,O),A=!d&&!!b,j=d||!!b,{slideSizes:Y,slideSizesWithGaps:H,startGap:G,endGap:D}=MO(I,P,T,n,j,i),Ce=DO(I,O,_,d,P,T,G,D,S),{snaps:he,snapsAligned:L}=bO(I,N,P,T,Ce),De=-bn(he)+bn(H),{snapsContained:Je,scrollContainLimit:ge}=mO(O,De,L,b,S),Re=A?Je:L,{limit:we}=_O(De,Re,d),rt=V2(ba(Re),u,d),it=rt.clone(),Le=ya(n),ne=({dragHandler:xe,scrollBody:Rt,scrollBounds:Ln,options:{loop:Ut}})=>{Ut||Ln.constrain(xe.pointerDown()),Rt.seek()},Ie=({scrollBody:xe,translate:Rt,location:Ln,offsetLocation:Ut,previousLocation:Li,scrollLooper:Pi,slideLooper:jt,dragHandler:Ur,animation:Pn,eventHandler:b4,scrollBounds:LH,options:{loop:v4}},C4)=>{const w4=xe.settled(),PH=!LH.shouldConstrain(),x4=v4?w4:w4&&PH,k4=x4&&!Ur.pointerDown();k4&&Pn.stop();const EH=Ln.get()*C4+Li.get()*(1-C4);Ut.set(EH),v4&&(Pi.loop(xe.direction()),jt.loop()),Rt.to(Ut.get()),k4&&b4.emit("settle"),x4||b4.emit("scroll")},We=aO(r,i,()=>ne(fe),xe=>Ie(fe,xe)),lt=.68,nn=Re[rt.get()],hn=wa(nn),Cr=wa(nn),Dn=wa(nn),rr=wa(nn),Di=pO(hn,Dn,Cr,rr,f,lt),Xa=CO(d,Re,De,we,rr),Ja=wO(We,rt,it,Di,Xa,rr,a),Cc=yO(we),wc=Ca(),F=TO(t,n,a,g),{slideRegistry:W}=vO(A,b,Re,ge,Ce,Le),ce=xO(e,n,W,Ja,Di,wc,a,k),fe={ownerDocument:r,ownerWindow:i,eventHandler:a,containerRect:P,slideRects:T,animation:We,axis:I,dragHandler:lO(I,e,r,i,rr,cO(I,i),hn,We,Ja,Di,Xa,rt,a,V,p,h,m,lt,w),eventStore:wc,percentOfView:V,index:rt,indexPrevious:it,limit:we,location:hn,offsetLocation:Dn,previousLocation:Cr,options:o,resizeHandler:fO(t,a,i,n,I,C,M),scrollBody:Di,scrollBounds:hO(we,Dn,rr,Di,V),scrollLooper:gO(De,we,Dn,[hn,Dn,Cr,rr]),scrollProgress:Cc,scrollSnapList:Re.map(Cc.get),scrollSnaps:Re,scrollTarget:Xa,scrollTo:Ja,slideLooper:kO(I,O,De,Y,H,he,Re,Dn,n),slideFocus:ce,slidesHandler:SO(t,a,x),slidesInView:F,slideIndexes:Le,slideRegistry:W,slidesToScroll:Ce,target:rr,translate:B2(I,t)};return fe}function PO(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function i(c){return r(c).forEach(u=>u(t,c)),l}function o(c,u){return e[c]=r(c).concat([u]),l}function a(c,u){return e[c]=r(c).filter(d=>d!==u),l}function s(){e={}}const l={init:n,emit:i,off:a,on:o,clear:s};return l}const EO={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function IO(e){function t(o,a){return F2(o,a||{})}function n(o){const a=o.breakpoints||{},s=va(a).filter(l=>e.matchMedia(l).matches).map(l=>a[l]).reduce((l,c)=>t(l,c),{});return t(o,s)}function r(o){return o.map(a=>va(a.breakpoints||{})).reduce((a,s)=>a.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function OO(e){let t=[];function n(o,a){return t=a.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(o,e)),a.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){t=t.filter(o=>o.destroy())}return{init:n,destroy:r}}function Ll(e,t,n){const r=e.ownerDocument,i=r.defaultView,o=IO(i),a=OO(o),s=Ca(),l=PO(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=o,{on:f,off:p,emit:h}=l,g=I;let _=!1,m,b=c(EO,Ll.globalOptions),C=c(b),x=[],w,k,S;function M(){const{container:Le,slides:ne}=C;k=(K1(Le)?e.querySelector(Le):Le)||e.children[0];const We=K1(ne)?k.querySelectorAll(ne):ne;S=[].slice.call(We||k.children)}function P(Le){const ne=LO(e,k,S,r,i,Le,l);if(Le.loop&&!ne.slideLooper.canLoop()){const Ie=Object.assign({},Le,{loop:!1});return P(Ie)}return ne}function T(Le,ne){_||(b=c(b,Le),C=u(b),x=ne||x,M(),m=P(C),d([b,...x.map(({options:Ie})=>Ie)]).forEach(Ie=>s.add(Ie,"change",I)),C.active&&(m.translate.to(m.location.get()),m.animation.init(),m.slidesInView.init(),m.slideFocus.init(it),m.eventHandler.init(it),m.resizeHandler.init(it),m.slidesHandler.init(it),m.options.loop&&m.slideLooper.loop(),k.offsetParent&&S.length&&m.dragHandler.init(it),w=a.init(it,x)))}function I(Le,ne){const Ie=Ce();O(),T(c({startIndex:Ie},Le),ne),l.emit("reInit")}function O(){m.dragHandler.destroy(),m.eventStore.clear(),m.translate.clear(),m.slideLooper.clear(),m.resizeHandler.destroy(),m.slidesHandler.destroy(),m.slidesInView.destroy(),m.animation.destroy(),a.destroy(),s.clear()}function V(){_||(_=!0,s.clear(),O(),l.emit("destroy"),l.clear())}function N(Le,ne,Ie){!C.active||_||(m.scrollBody.useBaseFriction().useDuration(ne===!0?0:C.duration),m.scrollTo.index(Le,Ie||0))}function A(Le){const ne=m.index.add(1).get();N(ne,Le,-1)}function j(Le){const ne=m.index.add(-1).get();N(ne,Le,1)}function Y(){return m.index.add(1).get()!==Ce()}function H(){return m.index.add(-1).get()!==Ce()}function G(){return m.scrollSnapList}function D(){return m.scrollProgress.get(m.offsetLocation.get())}function Ce(){return m.index.get()}function he(){return m.indexPrevious.get()}function L(){return m.slidesInView.get()}function De(){return m.slidesInView.get(!1)}function Je(){return w}function ge(){return m}function Re(){return e}function we(){return k}function rt(){return S}const it={canScrollNext:Y,canScrollPrev:H,containerNode:we,internalEngine:ge,destroy:V,off:p,on:f,emit:h,plugins:Je,previousScrollSnap:he,reInit:g,rootNode:Re,scrollNext:A,scrollPrev:j,scrollProgress:D,scrollSnapList:G,scrollTo:N,selectedScrollSnap:Ce,slideNodes:rt,slidesInView:L,slidesNotInView:De};return T(t,n),setTimeout(()=>l.emit("init"),0),it}Ll.globalOptions=void 0;function Pl(e={},t=[]){const n=v.useRef(e),r=v.useRef(t),[i,o]=v.useState(),[a,s]=v.useState(),l=v.useCallback(()=>{i&&i.reInit(n.current,r.current)},[i]);return v.useEffect(()=>{q1(n.current,e)||(n.current=e,l())},[e,l]),v.useEffect(()=>{nO(r.current,t)||(r.current=t,l())},[t,l]),v.useEffect(()=>{if(tO()&&a){Ll.globalOptions=Pl.globalOptions;const c=Ll(a,n.current,r.current);return o(c),()=>c.destroy()}else o(void 0)},[a,o]),[s,i]}Pl.globalOptions=void 0;const Jt={weeklyGroup:"_weeklyGroup_1et9i_1",weeklyGroup_header:"_weeklyGroup_header_1et9i_6",headerTitle:"_headerTitle_1et9i_13",headerActions:"_headerActions_1et9i_19",headerActions_label:"_headerActions_label_1et9i_25",headerActions_button:"_headerActions_button_1et9i_30",weeklyGroup_viewport:"_weeklyGroup_viewport_1et9i_44",weeklyCarousel:"_weeklyCarousel_1et9i_48",weeklyCarousel_slide:"_weeklyCarousel_slide_1et9i_53",weeklyGroup_dots:"_weeklyGroup_dots_1et9i_59",dotButton:"_dotButton_1et9i_66",dotButton__selected:"_dotButton__selected_1et9i_73"},AO=({groups:e=[],showDots:t=!0,headerTitle:n,className:r,carouselOptions:i,renderHeaderActionsLabel:o})=>{const[a,s]=Pl(i),{selectedIndex:l,scrollSnaps:c,onDotButtonClick:u}=O2(s),{prevBtnDisabled:d,nextBtnDisabled:f,onPrevButtonClick:p,onNextButtonClick:h}=JI(s),g=v.useCallback(()=>{var m;if(!s)return;const _=s.selectedScrollSnap();return o?o==null?void 0:o(_):((m=e==null?void 0:e[_])==null?void 0:m.label)??_+1},[s]);return e.length?y.jsxs("section",{className:E(Jt.weeklyGroup,r&&r),children:[y.jsxs("div",{className:Jt.weeklyGroup_header,children:[!!n&&y.jsx("h3",{className:Jt.headerTitle,children:n}),y.jsxs("div",{className:Jt.headerActions,children:[y.jsx("button",{className:Jt.headerActions_button,onClick:p,disabled:d,children:y.jsx(ie,{name:"chevron-left"})}),y.jsx("span",{className:Jt.headerActions_label,children:g()}),y.jsx("button",{className:Jt.headerActions_button,onClick:h,disabled:f,children:y.jsx(ie,{name:"chevron-right"})})]})]}),y.jsx("div",{className:Jt.weeklyGroup_viewport,ref:a,children:y.jsx("div",{className:Jt.weeklyCarousel,children:e.map(({items:_},m)=>y.jsx("div",{className:Jt.weeklyCarousel_slide,children:y.jsx(I2,{weeklyItems:_})},m))})}),t&&y.jsx("div",{className:Jt.weeklyGroup_dots,children:c.map((_,m)=>y.jsx("button",{onClick:()=>u(m),className:E(Jt.dotButton,m===l&&Jt.dotButton__selected)},m))})]}):null},wt={drawer:"_drawer_17mkt_2",drawer__leftOrigin:"_drawer__leftOrigin_17mkt_10",drawer_content:"_drawer_content_17mkt_10",drawer__closing:"_drawer__closing_17mkt_16",drawer_backdrop:"_drawer_backdrop_17mkt_19",drawer_content_fit:"_drawer_content_fit_17mkt_48",drawer_content__expanded:"_drawer_content__expanded_17mkt_54",drawerHeader_main:"_drawerHeader_main_17mkt_57",headerTitle:"_headerTitle_17mkt_67",headerControls:"_headerControls_17mkt_72",headerControls_close:"_headerControls_close_17mkt_77",body:"_body_17mkt_86",body_noPadding:"_body_noPadding_17mkt_93",footer:"_footer_17mkt_96",drawer__show:"_drawer__show_17mkt_103"},H2=({isOpen:e,children:t,title:n,footer:r,header:i,headerExtra:o,closeOnOverlayClick:a=!1,heightGap:s=50,origin:l="right",className:c,contentClassName:u,bodyPadding:d=!0,contentWidth:f="default",isExpanded:p=!1,onClose:h})=>{const[g,_]=v.useState(e),[m,b]=v.useState(e),[C,x]=v.useState(!1),w=v.useRef(null),k=v.useRef(!1),S=v.useCallback(()=>{w.current&&(clearTimeout(w.current),w.current=null),k.current=!1},[]),M=v.useCallback(()=>{S(),_(!0),x(!1),k.current=!0,w.current=setTimeout(()=>{b(!0),k.current=!1},30)},[]),P=v.useCallback(()=>{C||!m||k.current||(S(),x(!0),b(!1))},[C,m]),T=v.useCallback(V=>{V===m&&!C&&!k.current||(V?M():P())},[P,m,C,k]),I=v.useCallback(()=>{C&&!m&&(x(!1),_(!1),h==null||h())},[C,m,h]);if(v.useEffect(()=>{k.current||T(e)},[e]),v.useEffect(()=>()=>{S()},[]),!g)return null;const O=!!n||!!i||!!o;return y.jsxs("section",{className:E(wt.drawer,wt[`drawer__${l}Origin`],c,m&&wt.drawer__show,C&&wt.drawer__closing),style:{top:`${s}px`},children:[y.jsx("div",{className:wt.drawer_backdrop,role:"button","aria-label":"Drawer backdrop",onClick:V=>{V==null||V.stopPropagation(),a&&P()}}),y.jsxs("div",{className:E(wt.drawer_content,f==="fit"&&wt.drawer_content_fit,p&&wt.drawer_content__expanded,u),"aria-label":"Drawer content",onTransitionEnd:()=>C&&!m&&I(),children:[O&&y.jsxs("header",{className:wt.drawerHeader,children:[y.jsxs("div",{className:wt.drawerHeader_main,children:[y.jsx("div",{className:wt.headerTitle,children:n}),y.jsxs("div",{className:wt.headerControls,children:[i,y.jsx(wr,{className:wt.headerControls_close,icon:"close",variant:"ghost",onClick:P})]})]}),o&&o]}),y.jsx("section",{className:E(wt.body,!d&&wt.body_noPadding),children:t}),r&&y.jsx("footer",{className:wt.footer,children:r})]})]})},Et={banner:"_banner_yvm7l_1",banner_slides:"_banner_slides_yvm7l_9",banner_slide:"_banner_slide_yvm7l_9",banner_item:"_banner_item_yvm7l_19",banner_item__clickable:"_banner_item__clickable_yvm7l_26",banner_itemContent:"_banner_itemContent_yvm7l_29",banner_accentTitle:"_banner_accentTitle_yvm7l_36",banner_title:"_banner_title_yvm7l_39",banner_prevButton:"_banner_prevButton_yvm7l_43",banner_nextButton:"_banner_nextButton_yvm7l_43",banner_dots:"_banner_dots_yvm7l_66",banner_dotButton:"_banner_dotButton_yvm7l_78",banner_dotButton__selected:"_banner_dotButton__selected_yvm7l_85"},$2=({children:e})=>{const{isMobile:t}=_a();return y.jsx(yt,{className:Et.banner_accentTitle,type:t?"h4":"h3",children:e})},z2=({children:e})=>{const{isMobile:t}=_a();return y.jsx(yt,{className:Et.banner_title,type:t?"h3":"h2",children:e})},W2=({className:e,title:t,accentTitle:n,rightContent:r,onClick:i})=>y.jsxs("div",{className:E(Et.banner_item,i&&Et.banner_item__clickable,e),role:i?"button":void 0,onClick:i,children:[y.jsxs("div",{className:Et.banner_itemContent,children:[!!n&&y.jsx($2,{children:n}),!!t&&y.jsx(z2,{children:t})]}),!!r&&y.jsx("div",{className:Et.banner_itemRightContent,children:r})]}),NO={Wrapper:({className:e,items:t=[]})=>{const[n,r]=Pl({active:(t==null?void 0:t.length)>1}),[i,o]=v.useState(!0),[a,s]=v.useState(!0),{selectedIndex:l,scrollSnaps:c,onDotButtonClick:u}=O2(r),d=(t==null?void 0:t.length)>1,f=v.useCallback(()=>{!r||!d||r.scrollPrev()},[r,d]),p=v.useCallback(()=>{!r||!d||r.scrollNext()},[r,d]),h=v.useCallback(g=>{o(!g.canScrollPrev()),s(!g.canScrollNext())},[]);return v.useEffect(()=>{!r||!d||(h(r),r.on("reInit",h).on("select",h))},[r,h,d]),y.jsxs("div",{className:E(Et.banner,e),children:[d&&y.jsx(wr,{className:Et.banner_prevButton,icon:"chevron-left",variant:"ghost",onClick:f,disabled:i}),y.jsx("div",{className:Et.banner_content,ref:n,children:y.jsx("div",{className:Et.banner_slides,children:t==null?void 0:t.map((g,_)=>y.jsx("div",{className:Et.banner_slide,children:"content"in g?g.content:y.jsx(W2,{...g})},_))})}),d&&y.jsx(wr,{className:Et.banner_nextButton,icon:"chevron-right",variant:"ghost",onClick:p,disabled:a}),d&&y.jsx("div",{className:Et.banner_dots,children:c.map((g,_)=>y.jsx("button",{onClick:()=>u(_),className:E(Et.banner_dotButton,_===l&&Et.banner_dotButton__selected)},_))})]})},Item:W2,Title:z2,AccentTitle:$2},xa={beacon:"_beacon_97rla_1",beaconIcon_largeCircle:"_beaconIcon_largeCircle_97rla_18",beaconIcon_middleCircle:"_beaconIcon_middleCircle_97rla_19",beaconIcon_mainCircle:"_beaconIcon_mainCircle_97rla_24",beaconIcon:"_beaconIcon_97rla_18"},ed=v.forwardRef(function({label:t,className:n,...r},i){const o=v.useId();return y.jsx("button",{...r,ref:i,type:"button","aria-label":t,className:E(xa.beacon,n),children:y.jsxs("svg",{"aria-hidden":!0,className:xa.beaconIcon,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[y.jsxs("g",{clipPath:`url(#${o})`,children:[y.jsx("circle",{className:xa.beaconIcon_largeCircle,cx:"8",cy:"8",r:"8"}),y.jsx("circle",{className:xa.beaconIcon_middleCircle,cx:"8",cy:"8",r:"5"}),y.jsx("circle",{className:xa.beaconIcon_mainCircle,cx:"8",cy:"8",r:"3"})]}),y.jsx("defs",{children:y.jsx("clipPath",{id:o,children:y.jsx("rect",{width:"16",height:"16"})})})]})})});ed.prototype={avocado:"Beacon"};function Y2(e){return t=>typeof t===e}var RO=Y2("function"),jO=e=>e===null,U2=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",Z2=e=>!FO(e)&&!jO(e)&&(RO(e)||typeof e=="object"),FO=Y2("undefined");function VO(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!It(e[r],t[r]))return!1;return!0}function BO(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function HO(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!It(n[1],t.get(n[0])))return!1;return!0}function $O(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function It(e,t){if(e===t)return!0;if(e&&Z2(e)&&t&&Z2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return VO(e,t);if(e instanceof Map&&t instanceof Map)return HO(e,t);if(e instanceof Set&&t instanceof Set)return $O(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return BO(e,t);if(U2(e)&&U2(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!It(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var zO=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],WO=["bigint","boolean","null","number","string","symbol","undefined"];function El(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(YO(t))return t}function vn(e){return t=>El(t)===e}function YO(e){return zO.includes(e)}function oo(e){return t=>typeof t===e}function UO(e){return WO.includes(e)}var ZO=["innerHTML","ownerDocument","style","attributes","nodeValue"];function K(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(K.array(e))return"Array";if(K.plainFunction(e))return"Function";const t=El(e);return t||"Object"}K.array=Array.isArray,K.arrayOf=(e,t)=>!K.array(e)&&!K.function(t)?!1:e.every(n=>t(n)),K.asyncGeneratorFunction=e=>El(e)==="AsyncGeneratorFunction",K.asyncFunction=vn("AsyncFunction"),K.bigint=oo("bigint"),K.boolean=e=>e===!0||e===!1,K.date=vn("Date"),K.defined=e=>!K.undefined(e),K.domElement=e=>K.object(e)&&!K.plainObject(e)&&e.nodeType===1&&K.string(e.nodeName)&&ZO.every(t=>t in e),K.empty=e=>K.string(e)&&e.length===0||K.array(e)&&e.length===0||K.object(e)&&!K.map(e)&&!K.set(e)&&Object.keys(e).length===0||K.set(e)&&e.size===0||K.map(e)&&e.size===0,K.error=vn("Error"),K.function=oo("function"),K.generator=e=>K.iterable(e)&&K.function(e.next)&&K.function(e.throw),K.generatorFunction=vn("GeneratorFunction"),K.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype,K.iterable=e=>!K.nullOrUndefined(e)&&K.function(e[Symbol.iterator]),K.map=vn("Map"),K.nan=e=>Number.isNaN(e),K.null=e=>e===null,K.nullOrUndefined=e=>K.null(e)||K.undefined(e),K.number=e=>oo("number")(e)&&!K.nan(e),K.numericString=e=>K.string(e)&&e.length>0&&!Number.isNaN(Number(e)),K.object=e=>!K.nullOrUndefined(e)&&(K.function(e)||typeof e=="object"),K.oneOf=(e,t)=>K.array(e)?e.indexOf(t)>-1:!1,K.plainFunction=vn("Function"),K.plainObject=e=>{if(El(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})},K.primitive=e=>K.null(e)||UO(typeof e),K.promise=vn("Promise"),K.propertyOf=(e,t,n)=>{if(!K.object(e)||!t)return!1;const r=e[t];return K.function(n)?n(r):K.defined(r)},K.regexp=vn("RegExp"),K.set=vn("Set"),K.string=oo("string"),K.symbol=oo("symbol"),K.undefined=oo("undefined"),K.weakMap=vn("WeakMap"),K.weakSet=vn("WeakSet");var J=K;function qO(...e){return e.every(t=>J.string(t)||J.array(t)||J.plainObject(t))}function GO(e,t,n){return J2(e,t)?[e,t].every(J.array)?!e.some(X2(n))&&t.some(X2(n)):[e,t].every(J.plainObject)?!Object.entries(e).some(Q2(n))&&Object.entries(t).some(Q2(n)):t===n:!1}function q2(e,t,n){const{actual:r,key:i,previous:o,type:a}=n,s=Gn(e,i),l=Gn(t,i);let c=[s,l].every(J.number)&&(a==="increased"?s<l:s>l);return J.undefined(r)||(c=c&&l===r),J.undefined(o)||(c=c&&s===o),c}function G2(e,t,n){const{key:r,type:i,value:o}=n,a=Gn(e,r),s=Gn(t,r),l=i==="added"?a:s,c=i==="added"?s:a;if(!J.nullOrUndefined(o)){if(J.defined(l)){if(J.array(l)||J.plainObject(l))return GO(l,c,o)}else return It(c,o);return!1}return[a,s].every(J.array)?!c.every(td(l)):[a,s].every(J.plainObject)?KO(Object.keys(l),Object.keys(c)):![a,s].every(u=>J.primitive(u)&&J.defined(u))&&(i==="added"?!J.defined(a)&&J.defined(s):J.defined(a)&&!J.defined(s))}function K2(e,t,{key:n}={}){let r=Gn(e,n),i=Gn(t,n);if(!J2(r,i))throw new TypeError("Inputs have different types");if(!qO(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(J.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function Q2(e){return([t,n])=>J.array(e)?It(e,n)||e.some(r=>It(r,n)||J.array(n)&&td(n)(r)):J.plainObject(e)&&e[t]?!!e[t]&&It(e[t],n):It(e,n)}function KO(e,t){return t.some(n=>!e.includes(n))}function X2(e){return t=>J.array(e)?e.some(n=>It(n,t)||J.array(t)&&td(t)(n)):It(e,t)}function ka(e,t){return J.array(e)?e.some(n=>It(n,t)):It(e,t)}function td(e){return t=>e.some(n=>It(n,t))}function J2(...e){return e.every(J.array)||e.every(J.number)||e.every(J.plainObject)||e.every(J.string)}function Gn(e,t){return J.plainObject(e)||J.array(e)?J.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):J.number(t)?e[t]:e:e}function Il(e,t){if([e,t].some(J.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(u=>J.plainObject(u)||J.array(u)))throw new Error("Expected plain objects or array");return{added:(u,d)=>{try{return G2(e,t,{key:u,type:"added",value:d})}catch{return!1}},changed:(u,d,f)=>{try{const p=Gn(e,u),h=Gn(t,u),g=J.defined(d),_=J.defined(f);if(g||_){const m=_?ka(f,p):!ka(d,p),b=ka(d,h);return m&&b}return[p,h].every(J.array)||[p,h].every(J.plainObject)?!It(p,h):p!==h}catch{return!1}},changedFrom:(u,d,f)=>{if(!J.defined(u))return!1;try{const p=Gn(e,u),h=Gn(t,u),g=J.defined(f);return ka(d,p)&&(g?ka(f,h):!g)}catch{return!1}},decreased:(u,d,f)=>{if(!J.defined(u))return!1;try{return q2(e,t,{key:u,actual:d,previous:f,type:"decreased"})}catch{return!1}},emptied:u=>{try{const[d,f]=K2(e,t,{key:u});return!!d.length&&!f.length}catch{return!1}},filled:u=>{try{const[d,f]=K2(e,t,{key:u});return!d.length&&!!f.length}catch{return!1}},increased:(u,d,f)=>{if(!J.defined(u))return!1;try{return q2(e,t,{key:u,actual:d,previous:f,type:"increased"})}catch{return!1}},removed:(u,d)=>{try{return G2(e,t,{key:u,type:"removed",value:d})}catch{return!1}}}}var nd,e5;function QO(){if(e5)return nd;e5=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;nd={left:i("scrollLeft"),top:i("scrollTop")};function i(s){return function(c,u,d,f){d=d||{},typeof d=="function"&&(f=d,d={}),typeof f!="function"&&(f=a);var p=r(),h=c[s],g=d.ease||o,_=isNaN(d.duration)?350:+d.duration,m=!1;return h===u?f(e,c[s]):requestAnimationFrame(C),b;function b(){m=!0}function C(x){if(m)return f(t,c[s]);var w=r(),k=n(1,(w-p)/_),S=g(k);c[s]=S*(u-h)+h,k<1?requestAnimationFrame(C):requestAnimationFrame(function(){f(null,c[s])})}}}function o(s){return .5*(1-Math.cos(Math.PI*s))}function a(){}return nd}var XO=QO();const JO=En(XO);var Ol={exports:{}},eA=Ol.exports,t5;function tA(){return t5||(t5=1,(function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(eA,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})})(Ol)),Ol.exports}var nA=tA();const n5=En(nA);var rd,r5;function rA(){if(r5)return rd;r5=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,rd=n,rd}var iA=rA();const i5=En(iA);var id,o5;function oA(){if(o5)return id;o5=1;var e=function(b){return t(b)&&!n(b)};function t(m){return!!m&&typeof m=="object"}function n(m){var b=Object.prototype.toString.call(m);return b==="[object RegExp]"||b==="[object Date]"||o(m)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(m){return m.$$typeof===i}function a(m){return Array.isArray(m)?[]:{}}function s(m,b){return b.clone!==!1&&b.isMergeableObject(m)?g(a(m),m,b):m}function l(m,b,C){return m.concat(b).map(function(x){return s(x,C)})}function c(m,b){if(!b.customMerge)return g;var C=b.customMerge(m);return typeof C=="function"?C:g}function u(m){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(m).filter(function(b){return Object.propertyIsEnumerable.call(m,b)}):[]}function d(m){return Object.keys(m).concat(u(m))}function f(m,b){try{return b in m}catch{return!1}}function p(m,b){return f(m,b)&&!(Object.hasOwnProperty.call(m,b)&&Object.propertyIsEnumerable.call(m,b))}function h(m,b,C){var x={};return C.isMergeableObject(m)&&d(m).forEach(function(w){x[w]=s(m[w],C)}),d(b).forEach(function(w){p(m,w)||(f(m,w)&&C.isMergeableObject(b[w])?x[w]=c(w,C)(m[w],b[w],C):x[w]=s(b[w],C))}),x}function g(m,b,C){C=C||{},C.arrayMerge=C.arrayMerge||l,C.isMergeableObject=C.isMergeableObject||e,C.cloneUnlessOtherwiseSpecified=s;var x=Array.isArray(b),w=Array.isArray(m),k=x===w;return k?x?C.arrayMerge(m,b,C):h(m,b,C):s(b,C)}g.all=function(b,C){if(!Array.isArray(b))throw new Error("first argument should be an array");return b.reduce(function(x,w){return g(x,w,C)},{})};var _=g;return id=_,id}var aA=oA();const Cn=En(aA);var od={exports:{}},ad,a5;function sA(){if(a5)return ad;a5=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ad=e,ad}var sd,s5;function lA(){if(s5)return sd;s5=1;var e=sA();function t(){}function n(){}return n.resetWarningCache=t,sd=function(){function r(a,s,l,c,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},sd}var l5;function cA(){return l5||(l5=1,od.exports=lA()()),od.exports}var uA=cA();const z=En(uA);/**!
801
+ `,...o.current()});return/^[\t ]/.test(c)&&(c=da(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c}Bh.peek=BP;function Bh(e){return e.value||""}function BP(){return"<"}Hh.peek=HP;function Hh(e,t,n,r){const i=I1(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function HP(){return"!"}$h.peek=$P;function $h(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const d=n.stack;n.stack=[],a=n.enter("reference");const u=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=d,o(),i==="full"||!c||c!==u?l+=s.move(u+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function $P(){return"!"}zh.peek=zP;function zh(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const a=n.unsafe[o],s=n.compilePattern(a);let l;if(a.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function zP(){return"`"}function Wh(e,t){const n=i1(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Yh.peek=WP;function Yh(e,t,n,r){const i=I1(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(Wh(e,n)){const d=n.stack;n.stack=[],s=n.enter("autolink");let u=a.move("<");return u+=a.move(n.containerPhrasing(e,{before:u,after:">",...a.current()})),u+=a.move(">"),s(),n.stack=d,u}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),s(),c}function WP(e,t,n){return Wh(e,n)?"<":"["}Uh.peek=YP;function Uh(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const d=n.stack;n.stack=[],a=n.enter("reference");const u=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=d,o(),i==="full"||!c||c!==u?l+=s.move(u+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function YP(){return"["}function O1(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function UP(e){const t=O1(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function ZP(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Zh(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function qP(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?ZP(n):O1(n);const s=e.ordered?a==="."?")":".":UP(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Zh(n)===a&&d){let u=-1;for(;++u<e.children.length;){const f=e.children[u];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),c}function GP(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function KP(e,t,n,r){const i=GP(n);let o=n.bulletCurrent||O1(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),d);return l(),c;function d(u,f,p){return f?(p?"":" ".repeat(a))+u:(p?o:o+" ".repeat(a-o.length))+u}}function QP(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const XP=_l(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function JP(e,t,n,r){return(e.children.some(function(a){return XP(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function eE(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}qh.peek=tE;function qh(e,t,n,r){const i=eE(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),d=bl(r.before.charCodeAt(r.before.length-1),c,i);d.inside&&(l=da(c)+l.slice(1));const u=l.charCodeAt(l.length-1),f=bl(r.after.charCodeAt(0),u,i);f.inside&&(l=l.slice(0,-1)+da(u));const p=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+l+p}function tE(e,t,n){return n.options.strong||"*"}function nE(e,t,n,r){return n.safe(e.value,r)}function rE(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function iE(e,t,n){const r=(Zh(n)+(n.options.ruleSpaces?" ":"")).repeat(rE(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Gh={blockquote:MP,break:Fh,code:OP,definition:NP,emphasis:Vh,hardBreak:Fh,heading:VP,html:Bh,image:Hh,imageReference:$h,inlineCode:zh,link:Yh,linkReference:Uh,list:qP,listItem:KP,paragraph:QP,root:JP,strong:qh,text:nE,thematicBreak:iE};function oE(){return{enter:{table:aE,tableData:Kh,tableHeader:Kh,tableRow:lE},exit:{codeText:cE,table:sE,tableData:A1,tableHeader:A1,tableRow:A1}}}function aE(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function sE(e){this.exit(e),this.data.inTable=void 0}function lE(e){this.enter({type:"tableRow",children:[]},e)}function A1(e){this.exit(e)}function Kh(e){this.enter({type:"tableCell",children:[]},e)}function cE(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,uE));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function uE(e,t){return t==="|"?t:e}function dE(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
802
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:a,tableCell:l,tableRow:s}};function a(p,h,g,_){return c(d(p,g,_),p.align)}function s(p,h,g,_){const m=u(p,g,_),b=c([m]);return b.slice(0,b.indexOf(`
803
+ `))}function l(p,h,g,_){const m=g.enter("tableCell"),b=g.enter("phrasing"),C=g.containerPhrasing(p,{..._,before:o,after:o});return b(),m(),C}function c(p,h){return SP(p,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function d(p,h,g){const _=p.children;let m=-1;const b=[],C=h.enter("table");for(;++m<_.length;)b[m]=u(_[m],h,g);return C(),b}function u(p,h,g){const _=p.children;let m=-1;const b=[],C=h.enter("tableRow");for(;++m<_.length;)b[m]=l(_[m],p,h,g);return C(),b}function f(p,h,g){let _=Gh.inlineCode(p,h,g);return g.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function fE(){return{exit:{taskListCheckValueChecked:Qh,taskListCheckValueUnchecked:Qh,paragraph:hE}}}function pE(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:mE}}}function Qh(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function hE(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o<i.length;){const s=i[o];if(s.type==="paragraph"){a=s;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function mE(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=Gh.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(d){return d+a}}function _E(){return[qL(),mP(),bP(),oE(),fE()]}function gE(e){return{extensions:[GL(),_P(e),vP(),dE(e),pE()]}}const yE={tokenize:kE,partial:!0},Xh={tokenize:SE,partial:!0},Jh={tokenize:TE,partial:!0},e2={tokenize:ME,partial:!0},bE={tokenize:DE,partial:!0},t2={name:"wwwAutolink",tokenize:wE,previous:r2},n2={name:"protocolAutolink",tokenize:xE,previous:i2},mr={name:"emailAutolink",tokenize:CE,previous:o2},Un={};function vE(){return{text:Un}}let hi=48;for(;hi<123;)Un[hi]=mr,hi++,hi===58?hi=65:hi===91&&(hi=97);Un[43]=mr,Un[45]=mr,Un[46]=mr,Un[95]=mr,Un[72]=[mr,n2],Un[104]=[mr,n2],Un[87]=[mr,t2],Un[119]=[mr,t2];function CE(e,t,n){const r=this;let i,o;return a;function a(u){return!N1(u)||!o2.call(r,r.previous)||R1(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(u))}function s(u){return N1(u)?(e.consume(u),s):u===64?(e.consume(u),l):n(u)}function l(u){return u===46?e.check(bE,d,c)(u):u===45||u===95||Ct(u)?(o=!0,e.consume(u),l):d(u)}function c(u){return e.consume(u),i=!0,l}function d(u){return o&&i&&Pt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(u)):n(u)}}function wE(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!r2.call(r,r.previous)||R1(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(yE,e.attempt(Xh,e.attempt(Jh,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function xE(e,t,n){const r=this;let i="",o=!1;return a;function a(u){return(u===72||u===104)&&i2.call(r,r.previous)&&!R1(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(u),e.consume(u),s):n(u)}function s(u){if(Pt(u)&&i.length<5)return i+=String.fromCodePoint(u),e.consume(u),s;if(u===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(u),l}return n(u)}function l(u){return u===47?(e.consume(u),o?c:(o=!0,l)):n(u)}function c(u){return u===null||al(u)||Fe(u)||pi(u)||sl(u)?n(u):e.attempt(Xh,e.attempt(Jh,d),n)(u)}function d(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(u)}}function kE(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function SE(e,t,n){let r,i,o;return a;function a(c){return c===46||c===95?e.check(e2,l,s)(c):c===null||Fe(c)||pi(c)||c!==45&&sl(c)?l(c):(o=!0,e.consume(c),a)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),a}function l(c){return i||r||!o?n(c):t(c)}}function TE(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(e2,t,o)(a):a===null||Fe(a)||pi(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function ME(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),o):s===93?(e.consume(s),i):s===60||s===null||Fe(s)||pi(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Fe(s)||pi(s)?t(s):r(s)}function o(s){return Pt(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):Pt(s)?(e.consume(s),a):n(s)}}function DE(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Ct(o)?n(o):t(o)}}function r2(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Fe(e)}function i2(e){return!Pt(e)}function o2(e){return!(e===47||N1(e))}function N1(e){return e===43||e===45||e===46||e===95||Ct(e)}function R1(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const LE={tokenize:jE,partial:!0};function PE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:AE,continuation:{tokenize:NE},exit:RE}},text:{91:{name:"gfmFootnoteCall",tokenize:OE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:EE,resolveTo:IE}}}}function EE(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const c=yn(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function IE(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function OE(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),l}function l(u){return u!==94?n(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(o>999||u===93&&!a||u===null||u===91||Fe(u))return n(u);if(u===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(yn(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return Fe(u)||(a=!0),o++,e.consume(u),u===92?d:c}function d(u){return u===91||u===92||u===93?(e.consume(u),o++,c):c(u)}}function AE(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(h)}function d(h){if(a>999||h===93&&!s||h===null||h===91||Fe(h))return n(h);if(h===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return o=yn(r.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Fe(h)||(s=!0),a++,e.consume(h),h===92?u:d}function u(h){return h===91||h===92||h===93?(e.consume(h),a++,d):d(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),be(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function NE(e,t,n){return e.check(aa,t,e.attempt(LE,t,n))}function RE(e){e.exit("gfmFootnoteDefinition")}function jE(e,t,n){const r=this;return be(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function FE(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let c=l;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[l][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[l][1].end)},u={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[l][1].start)},f=[["enter",d,s],["enter",a[c][1],s],["exit",a[c][1],s],["enter",u,s]],p=s.parser.constructs.insideSpan.null;p&&Xt(f,f.length,0,ll(p,a.slice(c+1,l),s)),Xt(f,f.length,0,[["exit",u,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",d,s]]),Xt(a,c-1,l-c+3,f),l=c+f.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const c=this.previous,d=this.events;let u=0;return f;function f(h){return c===126&&d[d.length-1][1].type!=="characterEscape"?l(h):(a.enter("strikethroughSequenceTemporary"),p(h))}function p(h){const g=Ji(c);if(h===126)return u>1?l(h):(a.consume(h),u++,p);if(u<2&&!n)return l(h);const _=a.exit("strikethroughSequenceTemporary"),m=Ji(h);return _._open=!m||m===2&&!!g,_._close=!g||g===2&&!!m,s(h)}}}class VE{constructor(){this.map=[]}add(t,n,r){BE(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function BE(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function HE(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function $E(){return{flow:{null:{name:"table",tokenize:zE,resolveAll:WE}}}}function zE(e,t,n){const r=this;let i=0,o=0,a;return s;function s(T){let I=r.events.length-1;for(;I>-1;){const N=r.events[I][1].type;if(N==="lineEnding"||N==="linePrefix")I--;else break}const O=I>-1?r.events[I][1].type:null,V=O==="tableHead"||O==="tableRow"?k:l;return V===k&&r.parser.lazy[r.now().line]?n(T):V(T)}function l(T){return e.enter("tableHead"),e.enter("tableRow"),c(T)}function c(T){return T===124||(a=!0,o+=1),d(T)}function d(T){return T===null?n(T):se(T)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),p):n(T):me(T)?be(e,d,"whitespace")(T):(o+=1,a&&(a=!1,i+=1),T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),a=!0,d):(e.enter("data"),u(T)))}function u(T){return T===null||T===124||Fe(T)?(e.exit("data"),d(T)):(e.consume(T),T===92?f:u)}function f(T){return T===92||T===124?(e.consume(T),u):u(T)}function p(T){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(T):(e.enter("tableDelimiterRow"),a=!1,me(T)?be(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):h(T))}function h(T){return T===45||T===58?_(T):T===124?(a=!0,e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),g):w(T)}function g(T){return me(T)?be(e,_,"whitespace")(T):_(T)}function _(T){return T===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),m):T===45?(o+=1,m(T)):T===null||se(T)?x(T):w(T)}function m(T){return T===45?(e.enter("tableDelimiterFiller"),b(T)):w(T)}function b(T){return T===45?(e.consume(T),b):T===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(T))}function C(T){return me(T)?be(e,x,"whitespace")(T):x(T)}function x(T){return T===124?h(T):T===null||se(T)?!a||i!==o?w(T):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(T)):w(T)}function w(T){return n(T)}function k(T){return e.enter("tableRow"),S(T)}function S(T){return T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),S):T===null||se(T)?(e.exit("tableRow"),t(T)):me(T)?be(e,S,"whitespace")(T):(e.enter("data"),M(T))}function M(T){return T===null||T===124||Fe(T)?(e.exit("data"),S(T)):(e.consume(T),T===92?P:M)}function P(T){return T===92||T===124?(e.consume(T),M):M(T)}}function WE(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,c,d,u;const f=new VE;for(;++n<e.length;){const p=e[n],h=p[1];p[0]==="enter"?h.type==="tableHead"?(s=!1,l!==0&&(a2(f,t,l,c,d),d=void 0,l=0),c={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",c,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,u=void 0,o=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",d,t]])),i=h.type==="tableDelimiterRow"?2:d?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],u=vl(f,t,o,i,void 0,u),o=[0,0,0,0]),a[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],u=vl(f,t,o,i,void 0,u)),o=a,a=[o[1],n,0,0])):h.type==="tableHead"?(s=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,o[1]!==0?(a[0]=a[1],u=vl(f,t,o,i,n,u)):a[1]!==0&&(u=vl(f,t,a,i,n,u)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&a2(f,t,l,c,d),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=HE(t.events,n))}return e}function vl(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},to(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=to(t.events,n[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const c=to(t.events,n[2]),d=to(t.events,n[3]),u={type:s,start:Object.assign({},c),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",u,t]]),r!==2){const f=t.events[n[2]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,g=n[3]-n[2]-1;e.add(h,g,[])}}e.add(n[3]+1,0,[["exit",u,t]])}return i!==void 0&&(o.end=Object.assign({},to(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function a2(e,t,n,r,i){const o=[],a=to(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function to(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const YE={name:"tasklistCheck",tokenize:ZE};function UE(){return{text:{91:YE}}}function ZE(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return Fe(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return se(l)?t(l):me(l)?e.check({tokenize:qE},t,n)(l):n(l)}}function qE(e,t,n){return be(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function GE(e){return H6([vE(),PE(),FE(e),$E(),UE()])}const KE={};function QE(e){const t=this,n=e||KE,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(GE(n)),o.push(_E()),a.push(gE(n))}const s2={previewerWrapper:"_previewerWrapper_63w01_1",previewerWrapper_tableScroll:"_previewerWrapper_tableScroll_63w01_178"},XE=[QE],JE={table:({node:e,...t})=>y.jsx("div",{className:s2.previewerWrapper_tableScroll,children:y.jsx("table",{...t})})},eI=({children:e,className:t})=>y.jsx("div",{className:E(s2.previewerWrapper,t),children:y.jsx(FL,{remarkPlugins:XE,components:JE,children:e})}),_r={containerCube:"_containerCube_nmno7_1",cube:"_cube_nmno7_11",cube_side:"_cube_side_nmno7_18",cube_side__front:"_cube_side__front_nmno7_23",bgColorSideFront:"_bgColorSideFront_nmno7_1",cube_side__left:"_cube_side__left_nmno7_41",bgColorSideLeft:"_bgColorSideLeft_nmno7_1",cube_side__top:"_cube_side__top_nmno7_59",bgColorSideTop:"_bgColorSideTop_nmno7_1",cube__1:"_cube__1_nmno7_78",cubeAnimation1:"_cubeAnimation1_nmno7_1",bounceInShadow:"_bounceInShadow_nmno7_1",cube__2:"_cube__2_nmno7_94",cubeAnimation2:"_cubeAnimation2_nmno7_1",cube__3:"_cube__3_nmno7_110",cubeAnimation3:"_cubeAnimation3_nmno7_1",cube__4:"_cube__4_nmno7_126",cubeAnimation4:"_cubeAnimation4_nmno7_1",cube__5:"_cube__5_nmno7_142",cubeAnimation5:"_cubeAnimation5_nmno7_1",cube__6:"_cube__6_nmno7_158",cubeAnimation6:"_cubeAnimation6_nmno7_1",cube__7:"_cube__7_nmno7_174",cubeAnimation7:"_cubeAnimation7_nmno7_1",cube__8:"_cube__8_nmno7_190",cubeAnimation8:"_cubeAnimation8_nmno7_1",cube__9:"_cube__9_nmno7_206",cubeAnimation9:"_cubeAnimation9_nmno7_1",cube__10:"_cube__10_nmno7_222",cubeAnimation10:"_cubeAnimation10_nmno7_1",cube__11:"_cube__11_nmno7_226",cubeAnimation11:"_cubeAnimation11_nmno7_1",cube__12:"_cube__12_nmno7_230",cubeAnimation12:"_cubeAnimation12_nmno7_1",cube__13:"_cube__13_nmno7_234",cubeAnimation13:"_cubeAnimation13_nmno7_1",cube__15:"_cube__15_nmno7_238",cubeAnimation15:"_cubeAnimation15_nmno7_1",cube__16:"_cube__16_nmno7_242",cubeAnimation16:"_cubeAnimation16_nmno7_1",cube__17:"_cube__17_nmno7_246",cubeAnimation17:"_cubeAnimation17_nmno7_1",cube__18:"_cube__18_nmno7_250",cubeAnimation18:"_cubeAnimation18_nmno7_1",cube__19:"_cube__19_nmno7_254",cubeAnimation19:"_cubeAnimation19_nmno7_1",cube__20:"_cube__20_nmno7_258",cubeAnimation20:"_cubeAnimation20_nmno7_1",cube__21:"_cube__21_nmno7_262",cubeAnimation21:"_cubeAnimation21_nmno7_1",cube__22:"_cube__22_nmno7_266",cubeAnimation22:"_cubeAnimation22_nmno7_1",cube__23:"_cube__23_nmno7_270",cubeAnimation23:"_cubeAnimation23_nmno7_1",cube__24:"_cube__24_nmno7_274",cubeAnimation24:"_cubeAnimation24_nmno7_1",cube__25:"_cube__25_nmno7_278",cubeAnimation25:"_cubeAnimation25_nmno7_1",cube__26:"_cube__26_nmno7_282",cubeAnimation26:"_cubeAnimation26_nmno7_1",cube__27:"_cube__27_nmno7_286",cubeAnimation27:"_cubeAnimation27_nmno7_1"},l2=()=>y.jsx("section",{className:_r.containerCube,children:[...Array(27)].map((e,t)=>{let n=t+1;return y.jsxs("section",{className:E(_r.cube,_r[`cube__${n}`]),children:[y.jsx("div",{className:E(_r.cube_side,_r.cube_side__front)}),y.jsx("div",{className:E(_r.cube_side,_r.cube_side__left)}),y.jsx("div",{className:E(_r.cube_side,_r.cube_side__top)})]},t)})});l2.prototype={avocado:"Processing"};const zt={progressBar:"_progressBar_uhxs9_1",progressBar_item:"_progressBar_item_uhxs9_9",section:"_section_uhxs9_9",tooltipRemainingPercent_content:"_tooltipRemainingPercent_content_uhxs9_12",section__done:"_section__done_uhxs9_24",section__inProgress:"_section__inProgress_uhxs9_27",progressBar__notStarted:"_progressBar__notStarted_uhxs9_38",tooltipInProgress:"_tooltipInProgress_uhxs9_42",tooltipDone:"_tooltipDone_uhxs9_47",tooltipRemainingPercent:"_tooltipRemainingPercent_uhxs9_12",tooltipRemainingPercent__notStarted:"_tooltipRemainingPercent__notStarted_uhxs9_61"},gr={tooltip:"_tooltip_1hsfi_1",tooltip_content:"_tooltip_content_1hsfi_5",tooltip_content__show:"_tooltip_content__show_1hsfi_22",arrow:"_arrow_1hsfi_26",arrow_shadow:"_arrow_shadow_1hsfi_29",arrow_triangle:"_arrow_triangle_1hsfi_36",tooltip_content__top:"_tooltip_content__top_1hsfi_41",tooltip_content__topLeft:"_tooltip_content__topLeft_1hsfi_41",tooltip_content__topRight:"_tooltip_content__topRight_1hsfi_41",tooltip_content__bottom:"_tooltip_content__bottom_1hsfi_76",tooltip_content__bottomLeft:"_tooltip_content__bottomLeft_1hsfi_76",tooltip_content__bottomRight:"_tooltip_content__bottomRight_1hsfi_76",tooltip_content__right:"_tooltip_content__right_1hsfi_111",tooltip_content__left:"_tooltip_content__left_1hsfi_129",tooltip__darkMode:"_tooltip__darkMode_1hsfi_147",tooltip__regular:"_tooltip__regular_1hsfi_150"},fa=({children:e,className:t,label:n,placement:r="top",visible:i=null,notShowArrow:o=!1})=>{const{theme:a}=ct();return y.jsxs("div",{className:E(gr.tooltip,(a==null?void 0:a.mode)==="dark"&&gr.tooltip__darkMode,i==null&&gr.tooltip__regular,t&&t),children:[e,y.jsxs("span",{className:E(gr.tooltip_content,gr[`tooltip_content__${r}`],i&&gr.tooltip_content__show),children:[n,!o&&y.jsxs("div",{className:gr.arrow,children:[y.jsx("div",{className:gr.arrow_shadow}),y.jsx("div",{className:gr.arrow_triangle})]})]})]})},tI=({total:e,done:t,inProgress:n,className:r})=>{const[i,o]=v.useState(!1),a={doneSection:t??0,inProgressSection:n??0},s=a.doneSection===0&&a.inProgressSection===0,l=u=>`${(u*100/e).toFixed(0)}%`,c={"--done-width":l(a.doneSection),"--in-progress-width":l(a.inProgressSection)},d=l(e-a.doneSection-a.inProgressSection);return v.useEffect(()=>{a.doneSection+a.inProgressSection<e&&o(!0)}),y.jsxs("div",{style:c,role:"progressbar",className:E(zt.progressBar,s&&zt.progressBar__notStarted,r&&r),children:[t&&y.jsx(fa,{label:`${l(t)}`,placement:"top",className:E(zt.progressBar_item,zt.tooltipDone),children:y.jsx("div",{"data-testid":"done-section",className:E(zt.section,zt.section__done)})}),n&&y.jsx(fa,{placement:"top",label:`${l(n)}`,className:E(zt.progressBar_item,zt.tooltipInProgress),children:y.jsx("div",{"data-testid":"in-progress-section",className:E(zt.section,zt.section__inProgress)})}),i&&y.jsx(fa,{placement:"top",className:E(zt.progressBar_item,zt.tooltipRemainingPercent,s&&zt.tooltipRemainingPercent__notStarted),label:`${d}`,visible:!1,children:y.jsx("div",{className:zt.tooltipRemainingPercent_content})})]})},Ar={radio:"_radio_9b2ek_1",label:"_label_9b2ek_5",label_left:"_label_left_9b2ek_15",label_right:"_label_right_9b2ek_18",label_radio:"_label_radio_9b2ek_21",label_button:"_label_button_9b2ek_27",label__disabled:"_label__disabled_9b2ek_75",radio__darkMode:"_radio__darkMode_9b2ek_78"},c2=({classNameRadioButton:e="",labelLeft:t="",labelRight:n="",disabled:r=!1,...i})=>{const{className:o,ref:a}=i,s=!!t&&typeof n=="string",l=!!n&&typeof n=="string";t&&n&&console.warn("Use `label` or `labelLeft`, not both.");const{theme:c}=ct();return y.jsx("div",{className:E(Ar.radio,"container_row","row_align__end",o&&o,(c==null?void 0:c.mode)==="dark"&&Ar.radio__darkMode),children:y.jsxs("label",{className:E(Ar.label,r&&Ar.label__disabled),children:[s?y.jsx("span",{className:Ar.label_left,children:t}):y.jsx(y.Fragment,{children:t}),y.jsx("input",{...i,className:E(Ar.label_radio,e&&e),type:"radio",disabled:r,ref:a}),y.jsx("span",{className:Ar.label_button}),l?y.jsx("span",{className:Ar.label_right,children:n}):y.jsx(y.Fragment,{children:n})]})})};function nI(){var e=v.useRef(!1);return v.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var u2=Symbol("useLazyRef empty value"),rI=e=>{const t=v.useRef(u2);return t.current===u2&&(t.current=e()),t},iI=setTimeout;function oI(e,t){var n=t.useCachedSetTimeout?iI:setTimeout;return new Promise((function(r){n(r,e)}))}function aI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.useCachedSetTimeout,r=oI(e,{useCachedSetTimeout:n});function i(o){return r.then((function(){return o}))}return i.then=function(){return r.then.apply(r,arguments)},i.catch=Promise.resolve().catch,i}var Cl={},d2;function sI(){if(d2)return Cl;d2=1,Object.defineProperty(Cl,"__esModule",{value:!0});function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(i.length===2)return n(i[0],i[1])||null;var a=i.slice(1).reduce(function(s,l){return n(s,l)},i[0]);return a||null}Cl.default=e;var t=new WeakMap;function n(i,o){if(i&&o){var a=t.get(i)||new WeakMap;t.set(i,a);var s=a.get(o)||(function(l){r(i,l),r(o,l)});return a.set(o,s),s}return i||o}function r(i,o){typeof i=="function"?i(o):i.current=o}return Cl}var lI=sI();const cI=En(lI);var f2=e=>({isFirstLoad:!0,options:[],hasMore:!0,isLoading:!1,additional:e.additional}),uI=({options:e,defaultOptions:t,additional:n,defaultAdditional:r})=>{const i=t===!0?null:t instanceof Array?t:e;return i?{"":{isFirstLoad:!1,isLoading:!1,options:i,hasMore:!0,additional:r||n}}:{}},dI=10,fI=(e,t,n)=>e-t-dI<n,pI=(e,t)=>[...e,...t],p2='[react-select-async-paginate] response of "loadOptions" should be an object with "options" prop, which contains array of options.',hI=e=>{if(!e)return!1;const{options:t,hasMore:n}=e;return!(!Array.isArray(t)||typeof n!="boolean"&&typeof n<"u")},mI=e=>{if(!hI(e))throw console.error(p2,"Received:",e),new Error(p2);return!0},_I=async(e,t,n,r,i,o)=>{const a=t.current.inputValue,s=!n.current[a],l=s?f2(t.current):n.current[a];if(l.isLoading||!l.hasMore)return;if(i(u=>({...u,[a]:{...l,isLoading:!0}})),r>0&&e==="input-change"){await aI(r);const u=t.current.inputValue;if(a!==u){i(f=>{if(s){const{[a]:p,...h}=f;return h}return{...f,[a]:{...l,isLoading:!1}}});return}}let c,d=!1;try{const{loadOptions:u}=t.current;c=await u(a,l.options,l.additional)}catch{d=!0}if(d){i(u=>({...u,[a]:{...l,isLoading:!1}}));return}if(mI(c)){const{options:u,hasMore:f}=c,p=c.hasOwnProperty("additional")?c.additional:l.additional;i(h=>({...h,[a]:{...l,options:o(l.options,u,p),hasMore:!!f,isLoading:!1,isFirstLoad:!1,additional:p}}))}},h2=e=>e+1,gI=(e,t=[])=>{const{defaultOptions:n,loadOptionsOnMenuOpen:r=!0,debounceTimeout:i=0,inputValue:o,menuIsOpen:a,filterOption:s=null,reduceOptions:l=pI,shouldLoadMore:c=fI}=e,d=nI(),u=v.useRef(!0),f=v.useRef(e);f.current=e;const p=v.useState(0)[1],h=rI(()=>uI(e)),g=v.useCallback(b=>{_I(b,f,h,i,C=>{h.current=C(h.current),d.current&&p(h2)},l)},[i]),_=v.useCallback(()=>{const b=f.current.inputValue;h.current[b]&&g("menu-scroll")},[g]);v.useEffect(()=>{u.current?u.current=!1:(h.current={},p(h2)),n===!0&&g("autoload")},t),v.useEffect(()=>{a&&!h.current[o]&&g("input-change")},[o]),v.useEffect(()=>{a&&!h.current[""]&&r&&g("menu-toggle")},[a]);const m=h.current[o]||f2(e);return{handleScrolledToBottom:_,shouldLoadMore:c,filterOption:s,isLoading:m.isLoading,isFirstLoad:m.isFirstLoad,options:m.options}},yI=(e,t=[])=>{const{inputValue:n,menuIsOpen:r,defaultInputValue:i,defaultMenuIsOpen:o,onInputChange:a,onMenuClose:s,onMenuOpen:l}=e,[c,d]=v.useState(i||""),[u,f]=v.useState(!!o),p=typeof n=="string"?n:c,h=typeof r=="boolean"?r:u,g=v.useCallback((C,x)=>{a&&a(C,x),d(C)},[a]),_=v.useCallback(()=>{s&&s(),f(!1)},[s]),m=v.useCallback(()=>{l&&l(),f(!0)},[l]);return{...gI({...e,inputValue:p,menuIsOpen:h},t),inputValue:p,menuIsOpen:h,onInputChange:g,onMenuClose:_,onMenuOpen:m}},bI=300;function vI(e){function t(n){const{selectProps:r,innerRef:i}=n,{handleScrolledToBottom:o,shouldLoadMore:a}=r,s=v.useRef(),l=v.useRef(null),c=v.useCallback(()=>{const f=l.current;if(!f)return!1;const{scrollTop:p,scrollHeight:h,clientHeight:g}=f;return a(h,g,p)},[a]),d=v.useCallback(()=>{c()&&o&&o()},[c,o]),u=v.useCallback(()=>{d(),s.current=setTimeout(u,bI)},[d]);return v.useEffect(()=>(u(),()=>{s.current&&clearTimeout(s.current)}),[]),y.jsx(e,{...n,innerRef:cI(i,l)})}return t}var CI=vI(rl.MenuList),wI=e=>v.useMemo(()=>({MenuList:CI,...e}),[e]),xI=[],kI={};function SI(e){function t(n){const{components:r=kI,selectRef:i=void 0,isLoading:o,cacheUniqs:a=xI,...s}=n,l=yI(s,a),c=wI(r),d=typeof o=="boolean"?o:l.isLoading;return y.jsx(e,{...n,...l,isLoading:d,components:c,ref:i})}return t}var TI=SI(a6);const MI=({className:e="",disabled:t=!1,error:n="",label:r="",placeholder:i="",...o})=>{const{loadOptions:a,value:s,onChange:l}=o,c=n&&typeof n=="string",{uniqueId:d,handleCloseSelect:u}=u6({id:o==null?void 0:o.id});return y.jsxs("div",{className:E("select",n&&"select__error",e&&e),children:[r&&y.jsx("label",{className:"select_label",children:r}),y.jsx(TI,{...o,id:d,className:"reactSelect",classNamePrefix:"reactSelect",isDisabled:t,components:{ClearIndicator:s6,DropdownIndicator:l6},onMenuClose:u,loadOptions:a,value:s,onChange:l,placeholder:i}),c&&y.jsx(c6,{message:n})]})},DI={skeletonBase:"_skeletonBase_1yydk_1"},wl=({width:e="100%",height:t="100px",radius:n="8px",maxWidth:r="unset",className:i})=>{const o={width:e,height:t,maxWidth:r,borderRadius:n};return y.jsx("div",{style:o,className:E(DI.skeletonBase,i&&i)})},LI=({size:e,className:t})=>y.jsx(wl,{className:E(t&&t),height:e,width:e,radius:"100%"}),mi={stepper:"_stepper_1fjf8_1",stepper_content:"_stepper_content_1fjf8_4",step:"_step_1fjf8_1",step_label:"_step_label_1fjf8_19",step__active:"_step__active_1fjf8_31",stepper__darkMode:"_stepper__darkMode_1fjf8_37"},PI=e=>{const{className:t,items:n,itemActive:r,darkMode:i}=e,o=E(mi.stepper_content,t&&t),{theme:a}=ct();return y.jsx("section",{className:E(mi.stepper,(a==null?void 0:a.mode)==="dark"&&mi.stepper__darkMode,i&&mi.stepper__darkMode),children:y.jsx("div",{className:o,children:n.map((s,l)=>y.jsx("div",{className:E(mi.step,l<=r&&mi.step__active),children:y.jsx("span",{className:mi.step_label,children:s})},l))})})},Nr={switchComponent:"_switchComponent_c2vpp_1",switchComponent_input:"_switchComponent_input_c2vpp_5",inputCircle:"_inputCircle_c2vpp_16",switchComponent_input__checked:"_switchComponent_input__checked_c2vpp_26",switchComponent_input__disabled:"_switchComponent_input__disabled_c2vpp_32",inputCircle_icon:"_inputCircle_icon_c2vpp_48",switchComponent_label:"_switchComponent_label_c2vpp_52"},EI=({checked:e,className:t,disabled:n,label:r,onChange:i})=>{const o=()=>{i(!e)};return y.jsxs("section",{className:E(Nr.switchComponent,t&&t),children:[y.jsx("div",{className:E(Nr.switchComponent_input,e&&Nr.switchComponent_input__checked,n&&Nr.switchComponent_input__disabled),onClick:o,children:y.jsx("div",{className:Nr.inputCircle,children:e?y.jsx(ie,{name:"check",size:"sm",className:Nr.inputCircle_icon,color:n?"neutral-50":"neutral-70"}):y.jsx(ie,{name:"close",size:"sm",className:Nr.inputCircle_icon,color:n?"neutral-30":"neutral-70"})})}),r&&y.jsx("span",{className:Nr.switchComponent_label,children:r})]})},no={tabs:"_tabs_165ur_1",tabs_tabList:"_tabs_tabList_165ur_4",item:"_item_165ur_19",tabList_item__active:"_tabList_item__active_165ur_53",tabs_content:"_tabs_content_165ur_67",tabs__darkMode:"_tabs__darkMode_165ur_70"},m2=({className:e,activeIndex:t=0,items:n,onClick:r})=>{const[i,o]=v.useState(t),{theme:a}=ct();return v.useEffect(()=>{t!==i&&o(t)},[t]),y.jsxs("section",{className:E(no.tabs,a.mode==="dark"&&no.tabs__darkMode,e&&e),children:[y.jsx("div",{className:no.tabs_tabList,role:"tablist",children:n==null?void 0:n.map((s,l)=>y.jsx("button",{className:E(no.item,i===l&&no.tabList_item__active),disabled:s==null?void 0:s.disabled,role:"tab",onClick:()=>{s!=null&&s.disabled||(r&&r(l),o(l))},children:s==null?void 0:s.label},`tabs-nav-item-${l}`))}),y.jsx("div",{className:E(i<(n==null?void 0:n.length)&&no.tabs_content),children:n==null?void 0:n.map((s,l)=>y.jsx("div",{hidden:i!==l,role:"tabpanel",children:i===l&&(s==null?void 0:s.children)},`tabs-content-item-${l}`))})]})};m2.prototype={avocado:"Tabs"};const Rr={tag:"_tag_xgxyp_1",tag__filled:"_tag__filled_xgxyp_13",tag__active:"_tag__active_xgxyp_17",tag_content:"_tag_content_xgxyp_21",tag_icon:"_tag_icon_xgxyp_24",iconSvg:"_iconSvg_xgxyp_24",tag__outlined:"_tag__outlined_xgxyp_27",tag__disabled:"_tag__disabled_xgxyp_37"},j1={Outlined:"outlined",Filled:"filled"},II=e=>{const t={[j1.Outlined]:Rr.tag__outlined,[j1.Filled]:Rr.tag__filled};return(t==null?void 0:t[e])??""},OI=e=>{const{type:t=j1.Filled,disabled:n=!1,className:r="",active:i=!1,children:o,icon:a,onClick:s,onIconClick:l}=e,c=[Rr.tag,r&&r,t&&II(t),n&&Rr.tag__disabled,i&&Rr.tag__active];return y.jsxs("div",{className:E(...c),children:[y.jsx("button",{className:Rr.tag_content,onClick:s,children:o}),!!a&&y.jsx("button",{className:Rr.tag_icon,onClick:l,children:y.jsx(ie,{className:Rr.iconSvg,size:"md",name:a,color:"neutral-70"})})]})},F1=({status:e,size:t="md"})=>{const n={error:"circle-cross",warning:"alert-triangle",blocked:"circle-info",unsaved:"refresh"},r={error:!0,warning:!0,unsaved:!0},i={error:"error-50",warning:"warning-50",unsaved:"info-50"};return y.jsx(ie,{size:t,name:n[e],filled:r[e],color:i[e]})},Zn={textField:"_textField_1kcsd_1",textField_label:"_textField_label_1kcsd_4",textField_content:"_textField_content_1kcsd_12",input:"_input_1kcsd_17",input_field:"_input_field_1kcsd_27",input_clearButton:"_input_clearButton_1kcsd_40",input__withIcon:"_input__withIcon_1kcsd_59",textField_content__error:"_textField_content__error_1kcsd_62",textField_content__warning:"_textField_content__warning_1kcsd_65",textField_content__blocked:"_textField_content__blocked_1kcsd_68",textField_content__unsaved:"_textField_content__unsaved_1kcsd_71",textField_helperText:"_textField_helperText_1kcsd_74",textField__darkMode:"_textField__darkMode_1kcsd_84"},_2=({className:e,allowClear:t=!1,label:n,status:r,statusDisplay:i="inline",statusText:o="",icon:a,...s})=>{const{theme:l}=ct(),[c,d]=v.useState(s.value||""),u=()=>{d("")},f=p=>{const h=p.currentTarget.value;d(h),s.onChange&&s.onChange(p)};return y.jsxs("section",{className:E(Zn.textField,e&&e,(l==null?void 0:l.mode)==="dark"&&Zn.textField__darkMode),children:[n&&y.jsx("label",{htmlFor:s.id,className:Zn.textField_label,children:n}),y.jsxs("div",{className:E(Zn.textField_content,r&&Zn[`textField_content__${r}`]),children:[y.jsxs("span",{className:E(Zn.input,a&&Zn.input__withIcon),children:[a&&y.jsx(ie,{name:a,color:s!=null&&s.disabled?"neutral-50":"neutral-70"}),y.jsx("input",{className:Zn.input_field,value:c,onChange:p=>{f(p)},...s}),t&&y.jsx("button",{className:Zn.input_clearButton,onClick:u,children:y.jsx(ie,{name:"close",size:"sm"})})]}),r&&i==="icon"&&y.jsx(F1,{status:r})]}),r&&i==="inline"&&y.jsxs("span",{className:Zn.textField_helperText,children:[y.jsx(F1,{size:"sm",status:r}),o]})]})};_2.prototype={avocado:"TextField"};const qn={textarea:"_textarea_atysc_1",textarea_label:"_textarea_label_atysc_7",textareaLabel:"_textareaLabel_atysc_10",textareaLabel_counter:"_textareaLabel_counter_atysc_16",textarea_content:"_textarea_content_atysc_22",textareaField:"_textareaField_atysc_26",textarea_content__error:"_textarea_content__error_atysc_53",textarea_helperText:"_textarea_helperText_atysc_56",textarea__darkMode:"_textarea__darkMode_atysc_65"},AI=250,g2=({className:e,label:t,maxLength:n=AI,isError:r,errorText:i="",value:o,...a})=>{const{theme:s}=ct(),[l,c]=v.useState(o||""),d=u=>{const f=u.currentTarget.value;c(f),a.onChange&&a.onChange(u)};return v.useEffect(()=>{o!==void 0&&c(o)},[o]),y.jsxs("section",{className:E(qn.textarea,e&&e,(s==null?void 0:s.mode)==="dark"&&qn.textarea__darkMode),children:[t&&y.jsx("label",{htmlFor:a.id,className:qn.textarea_label,children:y.jsxs(je,{className:qn.textareaLabel,type:"sm",children:[t,y.jsx("span",{className:qn.textareaLabel_counter,children:y.jsxs("span",{className:qn.textareaCounter,children:[String(l).length||0," / ",n]})})]})}),y.jsx("div",{className:E(qn.textarea_content,r&&qn.textarea_content__error),children:y.jsx("textarea",{className:qn.textareaField,maxLength:n,value:l,onChange:d,...a})}),r&&i&&y.jsxs("span",{className:qn.textarea_helperText,children:[y.jsx(F1,{size:"sm",status:"error"}),i]})]})};g2.prototype={avocado:"Textarea"};const V1=e=>{var r,i,o;let t=(r=e==null?void 0:e.hours)==null?void 0:r.value,n=(i=e==null?void 0:e.minutes)==null?void 0:i.value;return(t<0||t>=24)&&(console.error(`[AVOCADO-SUITE]: Valor de horas ${t} inválido. Debe ser un número entre 0 y 23`),t=0),(n<0||n>=60)&&(console.error(`[AVOCADO-SUITE]: Valor de minutos ${n} inválido. Debe ser un número entre 0 y 59`),n=0),{days:(o=e==null?void 0:e.days)==null?void 0:o.value,hours:t,minutes:n}},B1=e=>{const t=V1(e),n=t.days*1440,r=t.hours*60;return n+r+t.minutes},y2=e=>{const t=V1(e);let n={days0:"0",days1:"0",daysBack0:"0",daysBack1:"0",hours0:"0",hours1:"0",hoursBack0:"0",hoursBack1:"0",minutes0:"0",minutes1:"0",minutesBack0:"0",minutesBack1:"0"};const r=t.days.toString();t.days>=10?(n.days0=r[0],n.days1=r[1],n.daysBack0=r[0],n.daysBack1=r[1]):(n.days1=r[0],n.daysBack1=r[0]);const i=t.hours.toString();t.hours>=10?(n.hours0=i[0],n.hours1=i[1],n.hoursBack0=i[0],n.hoursBack1=i[1]):(n.hours1=i[0],n.hoursBack1=i[0]);const o=t.minutes.toString();return t.minutes>=10?(n.minutes0=o[0],n.minutes1=o[1],n.minutesBack0=o[0],n.minutesBack1=o[1]):(n.minutes1=o[0],n.minutesBack1=o[0]),n},He={timer:"_timer_jc3uz_1",timer_blocTime:"_timer_blocTime_jc3uz_4",numbers:"_numbers_jc3uz_12",numbers_value:"_numbers_value_jc3uz_17",numbers_value__disabled:"_numbers_value__disabled_jc3uz_23",title:"_title_jc3uz_26",title__disabled:"_title__disabled_jc3uz_40",timer__darkMode:"_timer__darkMode_jc3uz_43"},NI=({className:e,milliSecondsInterval:t=6e4,startCountDown:n=!0,time:r,onFinish:i})=>{const[o,a]=v.useState(r),[s,l]=v.useState(y2(r)),[c,d]=v.useState(0),u=(_,m)=>{l(b=>({...b,[`${_}Back0`]:m[0],[`${_}Back1`]:m[1],[`${_}0`]:m[0],[`${_}1`]:m[1]}))},f=(_,m)=>{const b=_.toString(),C=s[`${m}0`]+s[`${m}1`];_>=10?C!=b&&u(m,b):C!=b&&u(m,`0${b}`)},p=(_,m)=>{const b=setInterval(()=>{m>0?(_.minutes--,_.hours>=0&&_.minutes<0&&(_.minutes=59,_.hours--),_.days>=0&&_.hours<0&&(_.hours=23,_.days--),f(_.days,"days"),f(_.hours,"hours"),f(_.minutes,"minutes"),m--,m===0&&i&&i()):clearInterval(b)},t);d(Number(b))},h=_=>_==="days"&&s.days0==="0"&&s.days1==="0"||_==="hours"&&s.days0==="0"&&s.days1==="0"&&s.hours0==="0"&&s.hours1==="0"||_==="minutes"&&s.days0==="0"&&s.days1==="0"&&s.hours0==="0"&&s.hours1==="0"&&s.minutes0==="0"&&s.minutes1==="0";v.useEffect(()=>{if(B1(r)!==B1(o)&&(clearInterval(c),a(r),l(y2(r))),n){const _=B1(r);p(V1(r),_)}},[r]);const{theme:g}=ct();return y.jsxs("section",{className:E(He.timer,(g==null?void 0:g.mode)==="dark"&&He.timer__darkMode,e&&e),children:[y.jsxs("div",{className:E(He.timer_blocTime),children:[y.jsxs("div",{className:E(He.numbers),children:[y.jsx("span",{className:E(He.numbers_value,h("days")&&He.numbers_value__disabled),children:s.days0}),y.jsx("span",{className:E(He.numbers_value,h("days")&&He.numbers_value__disabled),children:s.days1})]}),y.jsx("div",{className:E(He.title,h("days")&&He.title__disabled),children:r.days.label})]}),y.jsxs("div",{className:E(He.timer_blocTime),children:[y.jsxs("div",{className:E(He.numbers),children:[y.jsx("span",{className:E(He.numbers_value,h("hours")&&He.numbers_value__disabled),children:s.hours0}),y.jsx("span",{className:E(He.numbers_value,h("hours")&&He.numbers_value__disabled),children:s.hours1})]}),y.jsx("div",{className:E(He.title,h("hours")&&He.title__disabled),children:r.hours.label})]}),y.jsxs("div",{className:E(He.timer_blocTime),children:[y.jsxs("div",{className:E(He.numbers),children:[y.jsx("span",{className:E(He.numbers_value,h("minutes")&&He.numbers_value__disabled),children:s.minutes0}),y.jsx("span",{className:E(He.numbers_value,h("minutes")&&He.numbers_value__disabled),children:s.minutes1})]}),y.jsx("div",{className:E(He.title,h("minutes")&&He.title__disabled),children:r.minutes.label})]})]})};function b2(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=b2(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function jr(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=b2(e))&&(r&&(r+=" "),r+=t);return r}function pa(e){return typeof e=="number"&&!isNaN(e)}function ha(e){return typeof e=="boolean"}function _i(e){return typeof e=="string"}function Wt(e){return typeof e=="function"}function xl(e){return _i(e)||Wt(e)?e:null}function H1(e){return e===0||e}function $1(e){return v.isValidElement(e)||_i(e)||Wt(e)||pa(e)}const v2={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},yr={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function RI(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition="all "+n+"ms",requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function kl(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(a){let{children:s,position:l,preventExitTransition:c,done:d,nodeRef:u,isIn:f}=a;const p=r?t+"--"+l:t,h=r?n+"--"+l:n,g=v.useRef(),_=v.useRef(0);function m(C){if(C.target!==u.current)return;const x=u.current;x.dispatchEvent(new Event("d")),x.removeEventListener("animationend",m),x.removeEventListener("animationcancel",m),_.current===0&&C.type!=="animationcancel"&&(x.className=g.current)}function b(){const C=u.current;C.removeEventListener("animationend",b),i?RI(C,d,o):d()}return v.useLayoutEffect(()=>{(function(){const C=u.current;g.current=C.className,C.className+=" "+p,C.addEventListener("animationend",m),C.addEventListener("animationcancel",m)})()},[]),v.useEffect(()=>{f||(c?b():(function(){_.current=1;const C=u.current;C.className+=" "+h,C.addEventListener("animationend",b)})())},[f]),v.createElement(v.Fragment,null,s)}}function C2(e,t){return{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}const un={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},Sl=e=>{let{theme:t,type:n,...r}=e;return v.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":"var(--toastify-icon-color-"+n+")",...r})},z1={info:function(e){return v.createElement(Sl,{...e},v.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return v.createElement(Sl,{...e},v.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return v.createElement(Sl,{...e},v.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return v.createElement(Sl,{...e},v.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return v.createElement("div",{className:"Toastify__spinner"})}};function jI(e){const[,t]=v.useReducer(p=>p+1,0),[n,r]=v.useState([]),i=v.useRef(null),o=v.useRef(new Map).current,a=p=>n.indexOf(p)!==-1,s=v.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:a,getToast:p=>o.get(p)}).current;function l(p){let{containerId:h}=p;const{limit:g}=s.props;!g||h&&s.containerId!==h||(s.count-=s.queue.length,s.queue=[])}function c(p){r(h=>H1(p)?h.filter(g=>g!==p):[])}function d(){const{toastContent:p,toastProps:h,staleId:g}=s.queue.shift();f(p,h,g)}function u(p,h){let{delay:g,staleId:_,...m}=h;if(!$1(p)||(function(O){return!i.current||s.props.enableMultiContainer&&O.containerId!==s.props.containerId||o.has(O.toastId)&&O.updateId==null})(m))return;const{toastId:b,updateId:C,data:x}=m,{props:w}=s,k=()=>c(b),S=C==null;S&&s.count++;const M={toastId:b,updateId:C,data:x,containerId:m.containerId,isLoading:m.isLoading,theme:m.theme||w.theme,icon:m.icon!=null?m.icon:w.icon,isIn:!1,key:m.key||s.toastKey++,type:m.type,closeToast:k,closeButton:m.closeButton,rtl:w.rtl,position:m.position||w.position,transition:m.transition||w.transition,className:xl(m.className||w.toastClassName),bodyClassName:xl(m.bodyClassName||w.bodyClassName),style:m.style||w.toastStyle,bodyStyle:m.bodyStyle||w.bodyStyle,onClick:m.onClick||w.onClick,pauseOnHover:ha(m.pauseOnHover)?m.pauseOnHover:w.pauseOnHover,pauseOnFocusLoss:ha(m.pauseOnFocusLoss)?m.pauseOnFocusLoss:w.pauseOnFocusLoss,draggable:ha(m.draggable)?m.draggable:w.draggable,draggablePercent:m.draggablePercent||w.draggablePercent,draggableDirection:m.draggableDirection||w.draggableDirection,closeOnClick:ha(m.closeOnClick)?m.closeOnClick:w.closeOnClick,progressClassName:xl(m.progressClassName||w.progressClassName),progressStyle:m.progressStyle||w.progressStyle,autoClose:!m.isLoading&&(P=m.autoClose,T=w.autoClose,P===!1||pa(P)&&P>0?P:T),hideProgressBar:ha(m.hideProgressBar)?m.hideProgressBar:w.hideProgressBar,progress:m.progress,role:m.role||w.role,deleteToast(){const O=C2(o.get(b),"removed");o.delete(b),un.emit(4,O);const V=s.queue.length;if(s.count=H1(b)?s.count-1:s.count-s.displayedToast,s.count<0&&(s.count=0),V>0){const N=H1(b)?1:s.props.limit;if(V===1||N===1)s.displayedToast++,d();else{const A=N>V?V:N;s.displayedToast=A;for(let j=0;j<A;j++)d()}}else t()}};var P,T;M.iconOut=(function(O){let{theme:V,type:N,isLoading:A,icon:j}=O,Y=null;const H={theme:V,type:N};return j===!1||(Wt(j)?Y=j(H):v.isValidElement(j)?Y=v.cloneElement(j,H):_i(j)||pa(j)?Y=j:A?Y=z1.spinner():(G=>G in z1)(N)&&(Y=z1[N](H))),Y})(M),Wt(m.onOpen)&&(M.onOpen=m.onOpen),Wt(m.onClose)&&(M.onClose=m.onClose),M.closeButton=w.closeButton,m.closeButton===!1||$1(m.closeButton)?M.closeButton=m.closeButton:m.closeButton===!0&&(M.closeButton=!$1(w.closeButton)||w.closeButton);let I=p;v.isValidElement(p)&&!_i(p.type)?I=v.cloneElement(p,{closeToast:k,toastProps:M,data:x}):Wt(p)&&(I=p({closeToast:k,toastProps:M,data:x})),w.limit&&w.limit>0&&s.count>w.limit&&S?s.queue.push({toastContent:I,toastProps:M,staleId:_}):pa(g)?setTimeout(()=>{f(I,M,_)},g):f(I,M,_)}function f(p,h,g){const{toastId:_}=h;g&&o.delete(g);const m={content:p,props:h};o.set(_,m),r(b=>[...b,_].filter(C=>C!==g)),un.emit(4,C2(m,m.props.updateId==null?"added":"updated"))}return v.useEffect(()=>(s.containerId=e.containerId,un.cancelEmit(3).on(0,u).on(1,p=>i.current&&c(p)).on(5,l).emit(2,s),()=>un.emit(3,s)),[]),v.useEffect(()=>{s.props=e,s.isToastActive=a,s.displayedToast=n.length}),{getToastToRender:function(p){const h=new Map,g=Array.from(o.values());return e.newestOnTop&&g.reverse(),g.forEach(_=>{const{position:m}=_.props;h.has(m)||h.set(m,[]),h.get(m).push(_)}),Array.from(h,_=>p(_[0],_[1]))},containerRef:i,isToastActive:a}}function w2(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function x2(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function FI(e){const[t,n]=v.useState(!1),[r,i]=v.useState(!1),o=v.useRef(null),a=v.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,s=v.useRef(e),{autoClose:l,pauseOnHover:c,closeToast:d,onClick:u,closeOnClick:f}=e;function p(x){if(e.draggable){a.didMove=!1,document.addEventListener("mousemove",m),document.addEventListener("mouseup",b),document.addEventListener("touchmove",m),document.addEventListener("touchend",b);const w=o.current;a.canCloseOnClick=!0,a.canDrag=!0,a.boundingRect=w.getBoundingClientRect(),w.style.transition="",a.x=w2(x.nativeEvent),a.y=x2(x.nativeEvent),e.draggableDirection==="x"?(a.start=a.x,a.removalDistance=w.offsetWidth*(e.draggablePercent/100)):(a.start=a.y,a.removalDistance=w.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function h(){if(a.boundingRect){const{top:x,bottom:w,left:k,right:S}=a.boundingRect;e.pauseOnHover&&a.x>=k&&a.x<=S&&a.y>=x&&a.y<=w?_():g()}}function g(){n(!0)}function _(){n(!1)}function m(x){const w=o.current;a.canDrag&&w&&(a.didMove=!0,t&&_(),a.x=w2(x),a.y=x2(x),a.delta=e.draggableDirection==="x"?a.x-a.start:a.y-a.start,a.start!==a.x&&(a.canCloseOnClick=!1),w.style.transform="translate"+e.draggableDirection+"("+a.delta+"px)",w.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function b(){document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",m),document.removeEventListener("touchend",b);const x=o.current;if(a.canDrag&&a.didMove&&x){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),void e.closeToast();x.style.transition="transform 0.2s, opacity 0.2s",x.style.transform="translate"+e.draggableDirection+"(0)",x.style.opacity="1"}}v.useEffect(()=>{s.current=e}),v.useEffect(()=>(o.current&&o.current.addEventListener("d",g,{once:!0}),Wt(e.onOpen)&&e.onOpen(v.isValidElement(e.children)&&e.children.props),()=>{const x=s.current;Wt(x.onClose)&&x.onClose(v.isValidElement(x.children)&&x.children.props)}),[]),v.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||_(),window.addEventListener("focus",g),window.addEventListener("blur",_)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",g),window.removeEventListener("blur",_))}),[e.pauseOnFocusLoss]);const C={onMouseDown:p,onTouchStart:p,onMouseUp:h,onTouchEnd:h};return l&&c&&(C.onMouseEnter=_,C.onMouseLeave=g),f&&(C.onClick=x=>{u&&u(x),a.canCloseOnClick&&d()}),{playToast:g,pauseToast:_,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:C}}function k2(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return v.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:i=>{i.stopPropagation(),t(i)},"aria-label":r},v.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},v.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function S2(e){let{delay:t,isRunning:n,closeToast:r,type:i,hide:o,className:a,style:s,controlledProgress:l,progress:c,rtl:d,isIn:u,theme:f}=e;const p={...s,animationDuration:t+"ms",animationPlayState:n?"running":"paused",opacity:o?0:1};l&&(p.transform="scaleX("+c+")");const h=jr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+f,"Toastify__progress-bar--"+i,{"Toastify__progress-bar--rtl":d}),g=Wt(a)?a({rtl:d,type:i,defaultClassName:h}):jr(h,a);return v.createElement("div",{role:"progressbar","aria-hidden":o?"true":"false","aria-label":"notification timer",className:g,style:p,[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{u&&r()}})}S2.defaultProps={type:yr.DEFAULT,hide:!1};const VI=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=FI(e),{closeButton:o,children:a,autoClose:s,onClick:l,type:c,hideProgressBar:d,closeToast:u,transition:f,position:p,className:h,style:g,bodyClassName:_,bodyStyle:m,progressClassName:b,progressStyle:C,updateId:x,role:w,progress:k,rtl:S,toastId:M,deleteToast:P,isIn:T,isLoading:I,iconOut:O,theme:V}=e,N=jr("Toastify__toast","Toastify__toast-theme--"+V,"Toastify__toast--"+c,{"Toastify__toast--rtl":S}),A=Wt(h)?h({rtl:S,position:p,type:c,defaultClassName:N}):jr(N,h),j=!!k,Y={closeToast:u,type:c,theme:V};let H=null;return o===!1||(H=Wt(o)?o(Y):v.isValidElement(o)?v.cloneElement(o,Y):k2(Y)),v.createElement(f,{isIn:T,done:P,position:p,preventExitTransition:n,nodeRef:r},v.createElement("div",{id:M,onClick:l,className:A,...i,style:g,ref:r},v.createElement("div",{...T&&{role:w},className:Wt(_)?_({type:c}):jr("Toastify__toast-body",_),style:m},O!=null&&v.createElement("div",{className:jr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!I})},O),v.createElement("div",null,a)),H,(s||j)&&v.createElement(S2,{...x&&!j?{key:"pb-"+x}:{},rtl:S,theme:V,delay:s,isRunning:t,isIn:T,closeToast:u,hide:d,type:c,style:C,className:b,controlledProgress:j,progress:k})))},BI=kl({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),HI=kl({enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0});kl({enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"}),kl({enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"});const W1=v.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=jI(e),{className:o,style:a,rtl:s,containerId:l}=e;function c(d){const u=jr("Toastify__toast-container","Toastify__toast-container--"+d,{"Toastify__toast-container--rtl":s});return Wt(o)?o({position:d,rtl:s,defaultClassName:u}):jr(u,xl(o))}return v.useEffect(()=>{t&&(t.current=r.current)},[]),v.createElement("div",{ref:r,className:"Toastify",id:l},n((d,u)=>{const f=u.length?{...a}:{...a,pointerEvents:"none"};return v.createElement("div",{className:c(d),style:f,key:"container-"+d},u.map((p,h)=>{let{content:g,props:_}=p;return v.createElement(VI,{..._,isIn:i(_.toastId),style:{..._.style,"--nth":h+1,"--len":u.length},key:"toast-"+_.key},g)}))}))});W1.displayName="ToastContainer",W1.defaultProps={position:v2.TOP_RIGHT,transition:BI,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:k2,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Y1,ro=new Map,U1=[];function T2(){return Math.random().toString(36).substring(2,9)}function $I(e){return e&&(_i(e.toastId)||pa(e.toastId))?e.toastId:T2()}function ma(e,t){return ro.size>0?un.emit(0,e,t):U1.push({content:e,options:t}),t.toastId}function Tl(e,t){return{...t,type:t&&t.type||e,toastId:$I(t)}}function Ml(e){return(t,n)=>ma(t,Tl(e,n))}function Ye(e,t){return ma(e,Tl(yr.DEFAULT,t))}Ye.loading=(e,t)=>ma(e,Tl(yr.DEFAULT,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ye.promise=function(e,t,n){let r,{pending:i,error:o,success:a}=t;i&&(r=_i(i)?Ye.loading(i,n):Ye.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null,delay:100},l=(d,u,f)=>{if(u==null)return void Ye.dismiss(r);const p={type:d,...s,...n,data:f},h=_i(u)?{render:u}:u;return r?Ye.update(r,{...p,...h}):Ye(h.render,{...p,...h}),f},c=Wt(e)?e():e;return c.then(d=>l("success",a,d)).catch(d=>l("error",o,d)),c},Ye.success=Ml(yr.SUCCESS),Ye.info=Ml(yr.INFO),Ye.error=Ml(yr.ERROR),Ye.warning=Ml(yr.WARNING),Ye.warn=Ye.warning,Ye.dark=(e,t)=>ma(e,Tl(yr.DEFAULT,{theme:"dark",...t})),Ye.dismiss=e=>un.emit(1,e),Ye.clearWaitingQueue=function(e){return e===void 0&&(e={}),un.emit(5,e)},Ye.isActive=e=>{let t=!1;return ro.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},Ye.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=(function(r,i){let{containerId:o}=i;const a=ro.get(o||Y1);return a?a.getToast(r):null})(e,t);if(n){const{props:r,content:i}=n,o={...r,...t,toastId:t.toastId||e,updateId:T2()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,ma(a,o)}},0)},Ye.done=e=>{Ye.update(e,{progress:1})},Ye.onChange=e=>(un.on(4,e),()=>{un.off(4,e)}),Ye.POSITION=v2,Ye.TYPE=yr,un.on(2,e=>{Y1=e.containerId||e,ro.set(Y1,e),U1.forEach(t=>{un.emit(0,t.content,t.options)}),U1=[]}).on(3,e=>{ro.delete(e.containerId||e),ro.size===0&&un.off(0).off(1).off(5)});const M2=()=>{const[e,t]=v.useState(window.innerWidth<=992),n=({closeToast:r})=>y.jsx("button",{className:"closeToast",onClick:r,children:y.jsx(ie,{name:"close",color:"gray-00"})});return v.useEffect(()=>{const r=()=>{t(window.innerWidth<=992)};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),y.jsx(W1,{autoClose:!1,className:"toaster",toastClassName:"toaster_item",bodyClassName:"bodyToast",closeButton:n,icon:!1,transition:HI,position:e?"bottom-right":"top-right"})};M2.prototype={avocado:"Toaster"};const _a=()=>{const[e,t]=v.useState(!1);return v.useEffect(()=>{const n=window.matchMedia("(max-width: 992px)");t(n.matches);const r=i=>t(i.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),{isMobile:e}},D2=({row:e,selectorType:t,isDisabled:n,isSelected:r,onSelect:i})=>t?t==="checkbox"?y.jsx(ns,{disabled:n,checked:r,onChange:o=>{var a;return i==null?void 0:i((a=o==null?void 0:o.target)==null?void 0:a.checked,e)}}):y.jsx(c2,{disabled:n,checked:r,onChange:o=>{var a;return i==null?void 0:i((a=o==null?void 0:o.target)==null?void 0:a.checked,e)}}):null,io={tableActionItem:"_tableActionItem_gekem_1",tableActionItem__mobile:"_tableActionItem__mobile_gekem_7",tableActionItem__clickable:"_tableActionItem__clickable_gekem_10",tableActionItem__disabledItem:"_tableActionItem__disabledItem_gekem_17",tableActionItem__disabledRow:"_tableActionItem__disabledRow_gekem_21",tableActionItem_button:"_tableActionItem_button_gekem_24"},L2=({action:e,row:t,isDisabled:n,isMobile:r})=>{var i,o,a;return y.jsxs("div",{className:E(io.tableActionItem,!!(e!=null&&e.onClick)&&io.tableActionItem__clickable,!!((i=e==null?void 0:e.isDisabled)!=null&&i.call(e,t))&&io.tableActionItem__disabledItem,n&&io.tableActionItem__disabledRow,r&&io.tableActionItem__mobile),children:[!!(e!=null&&e.icon)&&y.jsx("button",{className:io.tableActionItem_button,disabled:n||((o=e==null?void 0:e.isDisabled)==null?void 0:o.call(e,t)),onClick:()=>{var s;return!n&&((s=e==null?void 0:e.onClick)==null?void 0:s.call(e,t))},children:y.jsx(ie,{name:(a=e==null?void 0:e.icon)==null?void 0:a.call(e,t),color:"neutral-70"})}),!(e!=null&&e.icon)&&(e!=null&&e.renderContent)?e==null?void 0:e.renderContent(t,!!n):null]})},Qe={bodyRow:"_bodyRow_1il29_1",bodyRow_column:"_bodyRow_column_1il29_1",bodyRow__selected:"_bodyRow__selected_1il29_10",bodyRow__disabled:"_bodyRow__disabled_1il29_13",columnContent:"_columnContent_1il29_19",bodyRow__adaptable:"_bodyRow__adaptable_1il29_23",columnContent_text:"_columnContent_text_1il29_23",bodyRow__relaxed:"_bodyRow__relaxed_1il29_27",actions_item:"_actions_item_1il29_28",bodyRow_column__select:"_bodyRow_column__select_1il29_29",actions:"_actions_1il29_28",bodyRow__condensed:"_bodyRow__condensed_1il29_38",bodyRow_column__actions:"_bodyRow_column__actions_1il29_67",actions_item__expand:"_actions_item__expand_1il29_77",actions_item__open:"_actions_item__open_1il29_84",actionButton:"_actionButton_1il29_87",actionButton__clickable:"_actionButton__clickable_1il29_91",actionButton__disabled:"_actionButton__disabled_1il29_97",bodyExpandedRow_content:"_bodyExpandedRow_content_1il29_102"},zI=({row:e,columns:t=[],rightActions:n,isDisabled:r,isSelectorDisabled:i,isSelected:o,selectorType:a,variant:s="regular",isTextAdaptable:l,onRowSelect:c,renderCustomContent:d})=>{const[u,f]=v.useState(!1);return y.jsxs(y.Fragment,{children:[y.jsxs("tr",{className:E(Qe.bodyRow,Qe==null?void 0:Qe[`bodyRow__${s}`],l&&Qe.bodyRow__adaptable,o&&Qe.bodyRow__selected,r&&Qe.bodyRow__disabled),children:[!!a&&y.jsx("td",{className:E(Qe.bodyRow_column,Qe.bodyRow_column__select),children:y.jsx("div",{className:Qe.columnContent,children:y.jsx(D2,{row:e,selectorType:a,isDisabled:r||i,isSelected:o,onSelect:c})})}),t.map((p,h)=>{var g,_,m;return y.jsx("td",{className:E(Qe.bodyRow_column,(g=p==null?void 0:p.desktopOptions)==null?void 0:g.bodyCellClassName),style:(_=p==null?void 0:p.desktopOptions)==null?void 0:_.bodyCellStyles,children:y.jsx("div",{className:Qe.columnContent,children:p!=null&&p.renderCell?(m=p==null?void 0:p.renderCell)==null?void 0:m.call(p,e):!!(p!=null&&p.accessor)&&y.jsx(je,{className:Qe.columnContent_text,children:String(e[p==null?void 0:p.accessor]??"")})})},`column-${h}-${p==null?void 0:p.key}`)}),(!!d||!!(n!=null&&n.length))&&y.jsx("td",{className:E(Qe.bodyRow_column,Qe.bodyRow_column__actions),children:y.jsxs("div",{className:E(Qe.columnContent,Qe.actions),children:[n==null?void 0:n.map((p,h)=>!(p!=null&&p.shouldRender)||p!=null&&p.shouldRender(e)?y.jsx(L2,{action:p,row:e,isDisabled:r},h):null),!!d&&y.jsx(wr,{className:E(Qe.actions_item,Qe.actions_item__expand,u&&Qe.actions_item__open),icon:"chevron-down",variant:"ghost",size:"sm",disabled:r,onClick:()=>f(!u)})]})})]}),u&&!!d&&y.jsx("tr",{className:Qe.bodyExpandedRow,children:y.jsx("td",{className:Qe.bodyExpandedRow_content,colSpan:6,children:d(e)})})]})},Et={tableDesktopHead:"_tableDesktopHead_1iubz_1",tableDesktopHead__sticky:"_tableDesktopHead__sticky_1iubz_1",headRow_column:"_headRow_column_1iubz_1",tableDesktopHead__relaxed:"_tableDesktopHead__relaxed_1iubz_6",headRow_column__select:"_headRow_column__select_1iubz_7",tableDesktopHead__condensed:"_tableDesktopHead__condensed_1iubz_11",columnContent:"_columnContent_1iubz_26",columnContent_text:"_columnContent_text_1iubz_32",columnContent_sortButton:"_columnContent_sortButton_1iubz_35",sortIcon:"_sortIcon_1iubz_41",sortIcon__asc:"_sortIcon__asc_1iubz_44"},WI=({rowOptions:e,columns:t,variant:n="regular",initialSort:r,hasActions:i,isSelectorDisabled:o,stickyHeader:a=!1,onSortChange:s})=>{const[l,c]=v.useState({column:(r==null?void 0:r.column)||null,direction:(r==null?void 0:r.direction)||null}),d=u=>{if(!u)return;const f=(l==null?void 0:l.column)===u,p={column:u,direction:f&&l.direction==="asc"?"desc":"asc"};c(p),s==null||s(p)};return y.jsx("thead",{className:E(Et.tableDesktopHead,Et==null?void 0:Et[`tableDesktopHead__${n}`],a&&Et.tableDesktopHead__sticky),"data-testid":"table-desktop-head",children:y.jsxs("tr",{className:Et.headRow,children:[!!(e!=null&&e.selectorType)&&y.jsx("th",{className:E(Et.headRow_column,Et.headRow_column__select),children:(e==null?void 0:e.selectorType)==="checkbox"&&y.jsx(ns,{disabled:o,checked:e==null?void 0:e.isAllSelected,onChange:u=>{var f,p;return(p=e==null?void 0:e.onSelectAll)==null?void 0:p.call(e,(f=u==null?void 0:u.target)==null?void 0:f.checked)}})}),t==null?void 0:t.map((u,f)=>{var p,h;return y.jsx("th",{className:E(Et.headRow_column,(p=u==null?void 0:u.desktopOptions)==null?void 0:p.headCellClassName),style:(h=u==null?void 0:u.desktopOptions)==null?void 0:h.headCellStyles,children:y.jsxs("div",{className:Et.columnContent,children:[(u==null?void 0:u.isSortable)&&y.jsx("button",{"aria-label":"sort",className:Et.columnContent_sortButton,onClick:()=>(u==null?void 0:u.isSortable)&&d(u==null?void 0:u.key),children:y.jsx(ie,{className:E(Et.sortIcon,(u==null?void 0:u.key)&&(l==null?void 0:l.direction)==="asc"&&(l==null?void 0:l.column)===(u==null?void 0:u.key)&&Et.sortIcon__asc),name:"arrow-down",color:"neutral-70"})}),typeof(u==null?void 0:u.header)=="string"?y.jsx(yt,{className:Et.columnContent_text,type:"h4",children:u==null?void 0:u.header}):u==null?void 0:u.header]})},`head-column-${f}-${u==null?void 0:u.key}`)}),(!!(e!=null&&e.renderCustomContent)||!!i)&&y.jsx("th",{className:Et.headRow_column})]})})},P2={tableDesktop:"_tableDesktop_2qx8i_1",tableDesktop_component:"_tableDesktop_component_2qx8i_23"},YI=({className:e,data:t=[],columns:n=[],rightActions:r=[],rowOptions:i,desktopVariant:o="regular",initialSort:a,onSortChange:s,maxHeight:l,stickyHeader:c=!1})=>y.jsx("div",{className:P2.tableDesktop,"data-testid":"table-desktop",style:l!=null?{maxHeight:l}:void 0,children:y.jsxs("table",{className:E(P2.tableDesktop_component,e&&e),children:[y.jsx(WI,{columns:n,rowOptions:i,variant:o,initialSort:a,isSelectorDisabled:i==null?void 0:i.isHeadSelectorDisabled,hasActions:!!r.length,stickyHeader:c,onSortChange:s}),y.jsx("tbody",{children:t.map((d,u)=>{var f,p,h;return y.jsx(zI,{row:d,columns:n,rightActions:r,variant:o,selectorType:i==null?void 0:i.selectorType,isSelected:(f=i==null?void 0:i.isSelected)==null?void 0:f.call(i,d),isDisabled:(p=i==null?void 0:i.isDisabled)==null?void 0:p.call(i,d),isSelectorDisabled:(h=i==null?void 0:i.isSelectorDisabled)==null?void 0:h.call(i,d),isTextAdaptable:i==null?void 0:i.isTextAdaptable,renderCustomContent:i==null?void 0:i.renderCustomContent,onRowSelect:i==null?void 0:i.onRowSelect},`row-${u}`)})})]})}),nt={tableMobileRow:"_tableMobileRow_1l1v1_1",tableMobileRow__selected:"_tableMobileRow__selected_1l1v1_5",tableMobileRow__disabled:"_tableMobileRow__disabled_1l1v1_8",tableMobileRow_head:"_tableMobileRow_head_1l1v1_11",headSelect:"_headSelect_1l1v1_21",headActions:"_headActions_1l1v1_25",tableMobileRow_body:"_tableMobileRow_body_1l1v1_41",bodyContentTrigger:"_bodyContentTrigger_1l1v1_44",bodyContentTrigger__fullWidth:"_bodyContentTrigger__fullWidth_1l1v1_50",bodyContentTrigger_button:"_bodyContentTrigger_button_1l1v1_53",bodyContentTrigger_button__open:"_bodyContentTrigger_button__open_1l1v1_62",bodyContentTrigger_button__disabled:"_bodyContentTrigger_button__disabled_1l1v1_65",bodyColumn:"_bodyColumn_1l1v1_68",bodyColumn__custom:"_bodyColumn__custom_1l1v1_74",bodyColumn_title:"_bodyColumn_title_1l1v1_77",bodyColumn_text:"_bodyColumn_text_1l1v1_77",bodyContent:"_bodyContent_1l1v1_44",bodyContent__alwaysVisible:"_bodyContent__alwaysVisible_1l1v1_97",bodyContent_separator:"_bodyContent_separator_1l1v1_101"},E2=({column:e,row:t})=>e?y.jsxs(y.Fragment,{children:[y.jsx(je,{className:nt.bodyColumn_title,type:"sm",weight:"medium",children:e==null?void 0:e.header}),e!=null&&e.renderCell?e==null?void 0:e.renderCell(t):y.jsx(je,{className:nt.bodyColumn_text,type:"sm",children:e!=null&&e.accessor?String((t==null?void 0:t[e==null?void 0:e.accessor])??""):""})]}):null,UI=({columns:e=[],row:t,isDisabled:n,isSelectorDisabled:r,isSelected:i,selectorType:o,actions:a=[],onRowSelect:s,renderCustomContent:l,collapsible:c=!1})=>{var g,_;const[d,u]=v.useState(!1),f=c?d:!0,p=v.useMemo(()=>{const m=[...e];return{first:m.shift(),columns:m}},[e]),h=v.useMemo(()=>a==null?void 0:a.some(m=>!(m!=null&&m.shouldRender)||(m==null?void 0:m.shouldRender(t))),[a,t]);return y.jsxs("div",{className:E(nt.tableMobileRow,n&&nt.tableMobileRow__disabled,i&&nt.tableMobileRow__selected),children:[(!!o||h)&&y.jsxs("div",{className:nt.tableMobileRow_head,children:[y.jsx("div",{className:nt.headSelect,children:y.jsx(D2,{row:t,selectorType:o,isDisabled:n||r,isSelected:i,onSelect:s})}),y.jsx("div",{className:nt.headActions,children:a==null?void 0:a.map((m,b)=>!(m!=null&&m.shouldRender)||m!=null&&m.shouldRender(t)?y.jsx(L2,{action:m,row:t,isDisabled:n,isMobile:!0},b):null)})]}),y.jsxs("div",{className:nt.tableMobileRow_body,children:[y.jsxs("div",{className:E(nt.bodyContentTrigger,!c&&nt.bodyContentTrigger__fullWidth),children:[y.jsx("div",{className:nt.bodyColumn,children:E2({column:p.first,row:t})}),c&&y.jsx("button",{disabled:n,className:E(nt.bodyContentTrigger_button,d&&nt.bodyContentTrigger_button__open,n&&nt.bodyContentTrigger_button__disabled),onClick:()=>!n&&u(!d),children:y.jsx(ie,{name:"chevron-down",size:"lg"})})]}),y.jsxs("div",{className:E(nt.bodyContent,!c&&nt.bodyContent__alwaysVisible),style:c?{maxHeight:f?`${(Math.floor(((g=p==null?void 0:p.columns)==null?void 0:g.length)/2)+1)*100}px`:0}:void 0,children:[y.jsx("div",{className:nt.bodyContent_separator}),(_=p==null?void 0:p.columns)==null?void 0:_.map((m,b)=>y.jsx("div",{className:nt.bodyColumn,children:E2({column:m,row:t})},b)),!!l&&y.jsx("div",{className:E(nt.bodyColumn,nt.bodyColumn__custom),children:l(t)})]})]})]})},ZI={tableMobile:"_tableMobile_1iao8_1"},qI=({className:e,data:t=[],columns:n=[],rightActions:r,rowOptions:i,mobileCollapsible:o=!1})=>y.jsx("div",{className:E(ZI.tableMobile,e&&e),children:t==null?void 0:t.map((a,s)=>{var l,c,d;return y.jsx(UI,{row:a,columns:n,actions:r,isDisabled:(l=i==null?void 0:i.isDisabled)==null?void 0:l.call(i,a),isSelected:(c=i==null?void 0:i.isSelected)==null?void 0:c.call(i,a),isSelectorDisabled:(d=i==null?void 0:i.isSelectorDisabled)==null?void 0:d.call(i,a),selectorType:i==null?void 0:i.selectorType,onRowSelect:i==null?void 0:i.onRowSelect,renderCustomContent:i==null?void 0:i.renderCustomContent,collapsible:o},s)})}),GI=({notResponsive:e=!1,...t})=>{const{isMobile:n}=_a(),r=n&&!e?qI:YI;return y.jsx(r,{...t})},Z1={weeklyItem:"_weeklyItem_paxim_1",weeklyItem__selected:"_weeklyItem__selected_paxim_18",weeklyItem__disabled:"_weeklyItem__disabled_paxim_23"},KI=(e,t=7)=>{const r=Math.ceil((e+1)/t)<=1?"bottom":"top";return e%t<=3?`${r}Left`:`${r}Right`},QI=({className:e,index:t=0,label:n,isDisabled:r,isSelected:i,tooltipLabel:o,onClick:a})=>{const{isMobile:s}=_a();return y.jsx(fa,{visible:o?void 0:!1,label:o,placement:KI(t,s?7:8),children:y.jsx("button",{className:E(Z1.weeklyItem,e&&e,i&&Z1.weeklyItem__selected,r&&Z1.weeklyItem__disabled),onClick:a,children:n})})},XI={weekly:"_weekly_1shnp_1"},I2=({weeklyItems:e=[],className:t})=>y.jsx("div",{className:E(XI.weekly,t&&t),children:e.map((n,r)=>y.jsx(QI,{index:r,...n},n.id??`item-${r}`))}),JI=e=>{const[t,n]=v.useState(!0),[r,i]=v.useState(!0),o=v.useCallback(()=>{e&&e.scrollPrev()},[e]),a=v.useCallback(()=>{e&&e.scrollNext()},[e]),s=v.useCallback(l=>{n(!l.canScrollPrev()),i(!l.canScrollNext())},[]);return v.useEffect(()=>{e&&(s(e),e.on("reInit",s).on("select",s))},[e,s]),{prevBtnDisabled:t,nextBtnDisabled:r,onPrevButtonClick:o,onNextButtonClick:a}},O2=e=>{const[t,n]=v.useState(0),[r,i]=v.useState([]),o=v.useCallback(l=>{var c;e&&((c=e==null?void 0:e.scrollTo)==null||c.call(e,l))},[e]),a=v.useCallback(l=>{var c;i((c=l==null?void 0:l.scrollSnapList)==null?void 0:c.call(l))},[]),s=v.useCallback(l=>{var c;n((c=l==null?void 0:l.selectedScrollSnap)==null?void 0:c.call(l))},[]);return v.useEffect(()=>{e&&(a(e),s(e),e.on("reInit",a).on("reInit",s).on("select",s))},[e,a,s]),{selectedIndex:t,scrollSnaps:r,onDotButtonClick:o}};function eO(e){return Object.prototype.toString.call(e)==="[object Object]"}function A2(e){return eO(e)||Array.isArray(e)}function tO(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function q1(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const i=JSON.stringify(Object.keys(e.breakpoints||{})),o=JSON.stringify(Object.keys(t.breakpoints||{}));return i!==o?!1:n.every(a=>{const s=e[a],l=t[a];return typeof s=="function"?`${s}`==`${l}`:!A2(s)||!A2(l)?s===l:q1(s,l)})}function N2(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function nO(e,t){if(e.length!==t.length)return!1;const n=N2(e),r=N2(t);return n.every((i,o)=>{const a=r[o];return q1(i,a)})}function G1(e){return typeof e=="number"}function K1(e){return typeof e=="string"}function Dl(e){return typeof e=="boolean"}function R2(e){return Object.prototype.toString.call(e)==="[object Object]"}function qe(e){return Math.abs(e)}function Q1(e){return Math.sign(e)}function ga(e,t){return qe(e-t)}function rO(e,t){if(e===0||t===0||qe(e)<=qe(t))return 0;const n=ga(qe(e),qe(t));return qe(n/e)}function iO(e){return Math.round(e*100)/100}function ya(e){return va(e).map(Number)}function bn(e){return e[ba(e)]}function ba(e){return Math.max(0,e.length-1)}function X1(e,t){return t===ba(e)}function j2(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function va(e){return Object.keys(e)}function F2(e,t){return[e,t].reduce((n,r)=>(va(r).forEach(i=>{const o=n[i],a=r[i],s=R2(o)&&R2(a);n[i]=s?F2(o,a):a}),n),{})}function J1(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function oO(e,t){const n={start:r,center:i,end:o};function r(){return 0}function i(l){return o(l)/2}function o(l){return t-l}function a(l,c){return K1(e)?n[e](l):e(t,l,c)}return{measure:a}}function Ca(){let e=[];function t(i,o,a,s={passive:!0}){let l;if("addEventListener"in i)i.addEventListener(o,a,s),l=()=>i.removeEventListener(o,a,s);else{const c=i;c.addListener(a),l=()=>c.removeListener(a)}return e.push(l),r}function n(){e=e.filter(i=>i())}const r={add:t,clear:n};return r}function aO(e,t,n,r){const i=Ca(),o=1e3/60;let a=null,s=0,l=0;function c(){i.add(e,"visibilitychange",()=>{e.hidden&&h()})}function d(){p(),i.clear()}function u(_){if(!l)return;a||(a=_,n(),n());const m=_-a;for(a=_,s+=m;s>=o;)n(),s-=o;const b=s/o;r(b),l&&(l=t.requestAnimationFrame(u))}function f(){l||(l=t.requestAnimationFrame(u))}function p(){t.cancelAnimationFrame(l),a=null,s=0,l=0}function h(){a=null,s=0}return{init:c,destroy:d,start:f,stop:p,update:n,render:r}}function sO(e,t){const n=t==="rtl",r=e==="y",i=r?"y":"x",o=r?"x":"y",a=!r&&n?-1:1,s=d(),l=u();function c(h){const{height:g,width:_}=h;return r?g:_}function d(){return r?"top":n?"right":"left"}function u(){return r?"bottom":n?"left":"right"}function f(h){return h*a}return{scroll:i,cross:o,startEdge:s,endEdge:l,measureSize:c,direction:f}}function gi(e=0,t=0){const n=qe(e-t);function r(c){return c<e}function i(c){return c>t}function o(c){return r(c)||i(c)}function a(c){return o(c)?r(c)?e:t:c}function s(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:a,reachedAny:o,reachedMax:i,reachedMin:r,removeOffset:s}}function V2(e,t,n){const{constrain:r}=gi(0,e),i=e+1;let o=a(t);function a(f){return n?qe((i+f)%i):r(f)}function s(){return o}function l(f){return o=a(f),u}function c(f){return d().set(s()+f)}function d(){return V2(e,s(),n)}const u={get:s,set:l,add:c,clone:d};return u}function lO(e,t,n,r,i,o,a,s,l,c,d,u,f,p,h,g,_,m,b){const{cross:C,direction:x}=e,w=["INPUT","SELECT","TEXTAREA"],k={passive:!1},S=Ca(),M=Ca(),P=gi(50,225).constrain(p.measure(20)),T={mouse:300,touch:400},I={mouse:500,touch:600},O=h?43:25;let V=!1,N=0,A=0,j=!1,Y=!1,H=!1,G=!1;function D(ne){if(!b)return;function Ie(lt){(Dl(b)||b(ne,lt))&&ge(lt)}const We=t;S.add(We,"dragstart",lt=>lt.preventDefault(),k).add(We,"touchmove",()=>{},k).add(We,"touchend",()=>{}).add(We,"touchstart",Ie).add(We,"mousedown",Ie).add(We,"touchcancel",we).add(We,"contextmenu",we).add(We,"click",rt,!0)}function Ce(){S.clear(),M.clear()}function he(){const ne=G?n:t;M.add(ne,"touchmove",Re,k).add(ne,"touchend",we).add(ne,"mousemove",Re,k).add(ne,"mouseup",we)}function L(ne){const Ie=ne.nodeName||"";return w.includes(Ie)}function De(){return(h?I:T)[G?"mouse":"touch"]}function Je(ne,Ie){const We=u.add(Q1(ne)*-1),lt=d.byDistance(ne,!h).distance;return h||qe(ne)<P?lt:_&&Ie?lt*.5:d.byIndex(We.get(),0).distance}function ge(ne){const Ie=J1(ne,r);G=Ie,H=h&&Ie&&!ne.buttons&&V,V=ga(i.get(),a.get())>=2,!(Ie&&ne.button!==0)&&(L(ne.target)||(j=!0,o.pointerDown(ne),c.useFriction(0).useDuration(0),i.set(a),he(),N=o.readPoint(ne),A=o.readPoint(ne,C),f.emit("pointerDown")))}function Re(ne){if(!J1(ne,r)&&ne.touches.length>=2)return we(ne);const We=o.readPoint(ne),lt=o.readPoint(ne,C),nn=ga(We,N),hn=ga(lt,A);if(!Y&&!G&&(!ne.cancelable||(Y=nn>hn,!Y)))return we(ne);const Cr=o.pointerMove(ne);nn>g&&(H=!0),c.useFriction(.3).useDuration(.75),s.start(),i.add(x(Cr)),ne.preventDefault()}function we(ne){const We=d.byDistance(0,!1).index!==u.get(),lt=o.pointerUp(ne)*De(),nn=Je(x(lt),We),hn=rO(lt,nn),Cr=O-10*hn,Dn=m+hn/50;Y=!1,j=!1,M.clear(),c.useDuration(Cr).useFriction(Dn),l.distance(nn,!h),G=!1,f.emit("pointerUp")}function rt(ne){H&&(ne.stopPropagation(),ne.preventDefault(),H=!1)}function it(){return j}return{init:D,destroy:Ce,pointerDown:it}}function cO(e,t){let r,i;function o(u){return u.timeStamp}function a(u,f){const h=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(J1(u,t)?u:u.touches[0])[h]}function s(u){return r=u,i=u,a(u)}function l(u){const f=a(u)-a(i),p=o(u)-o(r)>170;return i=u,p&&(r=u),f}function c(u){if(!r||!i)return 0;const f=a(i)-a(r),p=o(u)-o(r),h=o(u)-o(i)>170,g=f/p;return p&&!h&&qe(g)>.1?g:0}return{pointerDown:s,pointerMove:l,pointerUp:c,readPoint:a}}function uO(){function e(n){const{offsetTop:r,offsetLeft:i,offsetWidth:o,offsetHeight:a}=n;return{top:r,right:i+o,bottom:r+a,left:i,width:o,height:a}}return{measure:e}}function dO(e){function t(r){return e*(r/100)}return{measure:t}}function fO(e,t,n,r,i,o,a){const s=[e].concat(r);let l,c,d=[],u=!1;function f(_){return i.measureSize(a.measure(_))}function p(_){if(!o)return;c=f(e),d=r.map(f);function m(b){for(const C of b){if(u)return;const x=C.target===e,w=r.indexOf(C.target),k=x?c:d[w],S=f(x?e:r[w]);if(qe(S-k)>=.5){_.reInit(),t.emit("resize");break}}}l=new ResizeObserver(b=>{(Dl(o)||o(_,b))&&m(b)}),n.requestAnimationFrame(()=>{s.forEach(b=>l.observe(b))})}function h(){u=!0,l&&l.disconnect()}return{init:p,destroy:h}}function pO(e,t,n,r,i,o){let a=0,s=0,l=i,c=o,d=e.get(),u=0;function f(){const k=r.get()-e.get(),S=!l;let M=0;return S?(a=0,n.set(r),e.set(r),M=k):(n.set(e),a+=k/l,a*=c,d+=a,e.add(a),M=d-u),s=Q1(M),u=d,w}function p(){const k=r.get()-t.get();return qe(k)<.001}function h(){return l}function g(){return s}function _(){return a}function m(){return C(i)}function b(){return x(o)}function C(k){return l=k,w}function x(k){return c=k,w}const w={direction:g,duration:h,velocity:_,seek:f,settled:p,useBaseFriction:b,useBaseDuration:m,useFriction:x,useDuration:C};return w}function hO(e,t,n,r,i){const o=i.measure(10),a=i.measure(50),s=gi(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function d(p){if(!c())return;const h=e.reachedMin(t.get())?"min":"max",g=qe(e[h]-t.get()),_=n.get()-t.get(),m=s.constrain(g/a);n.subtract(_*m),!p&&qe(_)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function u(p){l=!p}return{shouldConstrain:c,constrain:d,toggleActive:u}}function mO(e,t,n,r,i){const o=gi(-t+e,0),a=u(),s=d(),l=f();function c(h,g){return ga(h,g)<=1}function d(){const h=a[0],g=bn(a),_=a.lastIndexOf(h),m=a.indexOf(g)+1;return gi(_,m)}function u(){return n.map((h,g)=>{const{min:_,max:m}=o,b=o.constrain(h),C=!g,x=X1(n,g);return C?m:x||c(_,b)?_:c(m,b)?m:b}).map(h=>parseFloat(h.toFixed(3)))}function f(){if(t<=e+i)return[o.max];if(r==="keepSnaps")return a;const{min:h,max:g}=s;return a.slice(h,g)}return{snapsContained:l,scrollContainLimit:s}}function _O(e,t,n){const r=t[0],i=n?r-e:bn(t);return{limit:gi(i,r)}}function gO(e,t,n,r){const o=t.min+.1,a=t.max+.1,{reachedMin:s,reachedMax:l}=gi(o,a);function c(f){return f===1?l(n.get()):f===-1?s(n.get()):!1}function d(f){if(!c(f))return;const p=e*(f*-1);r.forEach(h=>h.add(p))}return{loop:d}}function yO(e){const{max:t,length:n}=e;function r(o){const a=o-t;return n?a/-n:0}return{get:r}}function bO(e,t,n,r,i){const{startEdge:o,endEdge:a}=e,{groupSlides:s}=i,l=u().map(t.measure),c=f(),d=p();function u(){return s(r).map(g=>bn(g)[a]-g[0][o]).map(qe)}function f(){return r.map(g=>n[o]-g[o]).map(g=>-qe(g))}function p(){return s(c).map(g=>g[0]).map((g,_)=>g+l[_])}return{snaps:c,snapsAligned:d}}function vO(e,t,n,r,i,o){const{groupSlides:a}=i,{min:s,max:l}=r,c=d();function d(){const f=a(o),p=!e||t==="keepSnaps";return n.length===1?[o]:p?f:f.slice(s,l).map((h,g,_)=>{const m=!g,b=X1(_,g);if(m){const C=bn(_[0])+1;return j2(C)}if(b){const C=ba(o)-bn(_)[0]+1;return j2(C,bn(_)[0])}return h})}return{slideRegistry:c}}function CO(e,t,n,r,i){const{reachedAny:o,removeOffset:a,constrain:s}=r;function l(h){return h.concat().sort((g,_)=>qe(g)-qe(_))[0]}function c(h){const g=e?a(h):s(h),_=t.map((b,C)=>({diff:d(b-g,0),index:C})).sort((b,C)=>qe(b.diff)-qe(C.diff)),{index:m}=_[0];return{index:m,distance:g}}function d(h,g){const _=[h,h+n,h-n];if(!e)return h;if(!g)return l(_);const m=_.filter(b=>Q1(b)===g);return m.length?l(m):bn(_)-n}function u(h,g){const _=t[h]-i.get(),m=d(_,g);return{index:h,distance:m}}function f(h,g){const _=i.get()+h,{index:m,distance:b}=c(_),C=!e&&o(_);if(!g||C)return{index:m,distance:h};const x=t[m]-b,w=h+d(x,0);return{index:m,distance:w}}return{byDistance:f,byIndex:u,shortcut:d}}function wO(e,t,n,r,i,o,a){function s(u){const f=u.distance,p=u.index!==t.get();o.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(n.set(t.get()),t.set(u.index),a.emit("select"))}function l(u,f){const p=i.byDistance(u,f);s(p)}function c(u,f){const p=t.clone().set(u),h=i.byIndex(p.get(),f);s(h)}return{distance:l,index:c}}function xO(e,t,n,r,i,o,a,s){const l={passive:!0,capture:!0};let c=0;function d(p){if(!s)return;function h(g){if(new Date().getTime()-c>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(C=>C.includes(g));G1(b)&&(i.useDuration(0),r.index(b,0),a.emit("slideFocus"))}o.add(document,"keydown",u,!1),t.forEach((g,_)=>{o.add(g,"focus",m=>{(Dl(s)||s(p,m))&&h(_)},l)})}function u(p){p.code==="Tab"&&(c=new Date().getTime())}return{init:d}}function wa(e){let t=e;function n(){return t}function r(l){t=a(l)}function i(l){t+=a(l)}function o(l){t-=a(l)}function a(l){return G1(l)?l:l.get()}return{get:n,set:r,add:i,subtract:o}}function B2(e,t){const n=e.scroll==="x"?a:s,r=t.style;let i=null,o=!1;function a(f){return`translate3d(${f}px,0px,0px)`}function s(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(o)return;const p=iO(e.direction(f));p!==i&&(r.transform=n(p),i=p)}function c(f){o=!f}function d(){o||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:d,to:l,toggleActive:c}}function kO(e,t,n,r,i,o,a,s,l){const d=ya(i),u=ya(i).reverse(),f=m().concat(b());function p(S,M){return S.reduce((P,T)=>P-i[T],M)}function h(S,M){return S.reduce((P,T)=>p(P,M)>0?P.concat([T]):P,[])}function g(S){return o.map((M,P)=>({start:M-r[P]+.5+S,end:M+t-.5+S}))}function _(S,M,P){const T=g(M);return S.map(I=>{const O=P?0:-n,V=P?n:0,N=P?"end":"start",A=T[I][N];return{index:I,loopPoint:A,slideLocation:wa(-1),translate:B2(e,l[I]),target:()=>s.get()>A?O:V}})}function m(){const S=a[0],M=h(u,S);return _(M,n,!1)}function b(){const S=t-a[0]-1,M=h(d,S);return _(M,-n,!0)}function C(){return f.every(({index:S})=>{const M=d.filter(P=>P!==S);return p(M,t)<=.1})}function x(){f.forEach(S=>{const{target:M,translate:P,slideLocation:T}=S,I=M();I!==T.get()&&(P.to(I),T.set(I))})}function w(){f.forEach(S=>S.translate.clear())}return{canLoop:C,clear:w,loop:x,loopPoints:f}}function SO(e,t,n){let r,i=!1;function o(l){if(!n)return;function c(d){for(const u of d)if(u.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{i||(Dl(n)||n(l,d))&&c(d)}),r.observe(e,{childList:!0})}function a(){r&&r.disconnect(),i=!0}return{init:o,destroy:a}}function TO(e,t,n,r){const i={};let o=null,a=null,s,l=!1;function c(){s=new IntersectionObserver(h=>{l||(h.forEach(g=>{const _=t.indexOf(g.target);i[_]=g}),o=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(h=>s.observe(h))}function d(){s&&s.disconnect(),l=!0}function u(h){return va(i).reduce((g,_)=>{const m=parseInt(_),{isIntersecting:b}=i[m];return(h&&b||!h&&!b)&&g.push(m),g},[])}function f(h=!0){if(h&&o)return o;if(!h&&a)return a;const g=u(h);return h&&(o=g),h||(a=g),g}return{init:c,destroy:d,get:f}}function MO(e,t,n,r,i,o){const{measureSize:a,startEdge:s,endEdge:l}=e,c=n[0]&&i,d=h(),u=g(),f=n.map(a),p=_();function h(){if(!c)return 0;const b=n[0];return qe(t[s]-b[s])}function g(){if(!c)return 0;const b=o.getComputedStyle(bn(r));return parseFloat(b.getPropertyValue(`margin-${l}`))}function _(){return n.map((b,C,x)=>{const w=!C,k=X1(x,C);return w?f[C]+d:k?f[C]+u:x[C+1][s]-b[s]}).map(qe)}return{slideSizes:f,slideSizesWithGaps:p,startGap:d,endGap:u}}function DO(e,t,n,r,i,o,a,s,l){const{startEdge:c,endEdge:d,direction:u}=e,f=G1(n);function p(m,b){return ya(m).filter(C=>C%b===0).map(C=>m.slice(C,C+b))}function h(m){return m.length?ya(m).reduce((b,C,x)=>{const w=bn(b)||0,k=w===0,S=C===ba(m),M=i[c]-o[w][c],P=i[c]-o[C][d],T=!r&&k?u(a):0,I=!r&&S?u(s):0,O=qe(P-I-(M+T));return x&&O>t+l&&b.push(C),S&&b.push(m.length),b},[]).map((b,C,x)=>{const w=Math.max(x[C-1]||0);return m.slice(w,b)}):[]}function g(m){return f?p(m,n):h(m)}return{groupSlides:g}}function LO(e,t,n,r,i,o,a){const{align:s,axis:l,direction:c,startIndex:d,loop:u,duration:f,dragFree:p,dragThreshold:h,inViewThreshold:g,slidesToScroll:_,skipSnaps:m,containScroll:b,watchResize:C,watchSlides:x,watchDrag:w,watchFocus:k}=o,S=2,M=uO(),P=M.measure(t),T=n.map(M.measure),I=sO(l,c),O=I.measureSize(P),V=dO(O),N=oO(s,O),A=!u&&!!b,j=u||!!b,{slideSizes:Y,slideSizesWithGaps:H,startGap:G,endGap:D}=MO(I,P,T,n,j,i),Ce=DO(I,O,_,u,P,T,G,D,S),{snaps:he,snapsAligned:L}=bO(I,N,P,T,Ce),De=-bn(he)+bn(H),{snapsContained:Je,scrollContainLimit:ge}=mO(O,De,L,b,S),Re=A?Je:L,{limit:we}=_O(De,Re,u),rt=V2(ba(Re),d,u),it=rt.clone(),Le=ya(n),ne=({dragHandler:xe,scrollBody:jt,scrollBounds:Ln,options:{loop:Ut}})=>{Ut||Ln.constrain(xe.pointerDown()),jt.seek()},Ie=({scrollBody:xe,translate:jt,location:Ln,offsetLocation:Ut,previousLocation:Li,scrollLooper:Pi,slideLooper:Ft,dragHandler:Ur,animation:Pn,eventHandler:b7,scrollBounds:LH,options:{loop:v7}},C7)=>{const w7=xe.settled(),PH=!LH.shouldConstrain(),x7=v7?w7:w7&&PH,k7=x7&&!Ur.pointerDown();k7&&Pn.stop();const EH=Ln.get()*C7+Li.get()*(1-C7);Ut.set(EH),v7&&(Pi.loop(xe.direction()),Ft.loop()),jt.to(Ut.get()),k7&&b7.emit("settle"),x7||b7.emit("scroll")},We=aO(r,i,()=>ne(fe),xe=>Ie(fe,xe)),lt=.68,nn=Re[rt.get()],hn=wa(nn),Cr=wa(nn),Dn=wa(nn),rr=wa(nn),Di=pO(hn,Dn,Cr,rr,f,lt),Xa=CO(u,Re,De,we,rr),Ja=wO(We,rt,it,Di,Xa,rr,a),Cc=yO(we),wc=Ca(),F=TO(t,n,a,g),{slideRegistry:W}=vO(A,b,Re,ge,Ce,Le),ce=xO(e,n,W,Ja,Di,wc,a,k),fe={ownerDocument:r,ownerWindow:i,eventHandler:a,containerRect:P,slideRects:T,animation:We,axis:I,dragHandler:lO(I,e,r,i,rr,cO(I,i),hn,We,Ja,Di,Xa,rt,a,V,p,h,m,lt,w),eventStore:wc,percentOfView:V,index:rt,indexPrevious:it,limit:we,location:hn,offsetLocation:Dn,previousLocation:Cr,options:o,resizeHandler:fO(t,a,i,n,I,C,M),scrollBody:Di,scrollBounds:hO(we,Dn,rr,Di,V),scrollLooper:gO(De,we,Dn,[hn,Dn,Cr,rr]),scrollProgress:Cc,scrollSnapList:Re.map(Cc.get),scrollSnaps:Re,scrollTarget:Xa,scrollTo:Ja,slideLooper:kO(I,O,De,Y,H,he,Re,Dn,n),slideFocus:ce,slidesHandler:SO(t,a,x),slidesInView:F,slideIndexes:Le,slideRegistry:W,slidesToScroll:Ce,target:rr,translate:B2(I,t)};return fe}function PO(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function i(c){return r(c).forEach(d=>d(t,c)),l}function o(c,d){return e[c]=r(c).concat([d]),l}function a(c,d){return e[c]=r(c).filter(u=>u!==d),l}function s(){e={}}const l={init:n,emit:i,off:a,on:o,clear:s};return l}const EO={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function IO(e){function t(o,a){return F2(o,a||{})}function n(o){const a=o.breakpoints||{},s=va(a).filter(l=>e.matchMedia(l).matches).map(l=>a[l]).reduce((l,c)=>t(l,c),{});return t(o,s)}function r(o){return o.map(a=>va(a.breakpoints||{})).reduce((a,s)=>a.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function OO(e){let t=[];function n(o,a){return t=a.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(o,e)),a.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){t=t.filter(o=>o.destroy())}return{init:n,destroy:r}}function Ll(e,t,n){const r=e.ownerDocument,i=r.defaultView,o=IO(i),a=OO(o),s=Ca(),l=PO(),{mergeOptions:c,optionsAtMedia:d,optionsMediaQueries:u}=o,{on:f,off:p,emit:h}=l,g=I;let _=!1,m,b=c(EO,Ll.globalOptions),C=c(b),x=[],w,k,S;function M(){const{container:Le,slides:ne}=C;k=(K1(Le)?e.querySelector(Le):Le)||e.children[0];const We=K1(ne)?k.querySelectorAll(ne):ne;S=[].slice.call(We||k.children)}function P(Le){const ne=LO(e,k,S,r,i,Le,l);if(Le.loop&&!ne.slideLooper.canLoop()){const Ie=Object.assign({},Le,{loop:!1});return P(Ie)}return ne}function T(Le,ne){_||(b=c(b,Le),C=d(b),x=ne||x,M(),m=P(C),u([b,...x.map(({options:Ie})=>Ie)]).forEach(Ie=>s.add(Ie,"change",I)),C.active&&(m.translate.to(m.location.get()),m.animation.init(),m.slidesInView.init(),m.slideFocus.init(it),m.eventHandler.init(it),m.resizeHandler.init(it),m.slidesHandler.init(it),m.options.loop&&m.slideLooper.loop(),k.offsetParent&&S.length&&m.dragHandler.init(it),w=a.init(it,x)))}function I(Le,ne){const Ie=Ce();O(),T(c({startIndex:Ie},Le),ne),l.emit("reInit")}function O(){m.dragHandler.destroy(),m.eventStore.clear(),m.translate.clear(),m.slideLooper.clear(),m.resizeHandler.destroy(),m.slidesHandler.destroy(),m.slidesInView.destroy(),m.animation.destroy(),a.destroy(),s.clear()}function V(){_||(_=!0,s.clear(),O(),l.emit("destroy"),l.clear())}function N(Le,ne,Ie){!C.active||_||(m.scrollBody.useBaseFriction().useDuration(ne===!0?0:C.duration),m.scrollTo.index(Le,Ie||0))}function A(Le){const ne=m.index.add(1).get();N(ne,Le,-1)}function j(Le){const ne=m.index.add(-1).get();N(ne,Le,1)}function Y(){return m.index.add(1).get()!==Ce()}function H(){return m.index.add(-1).get()!==Ce()}function G(){return m.scrollSnapList}function D(){return m.scrollProgress.get(m.offsetLocation.get())}function Ce(){return m.index.get()}function he(){return m.indexPrevious.get()}function L(){return m.slidesInView.get()}function De(){return m.slidesInView.get(!1)}function Je(){return w}function ge(){return m}function Re(){return e}function we(){return k}function rt(){return S}const it={canScrollNext:Y,canScrollPrev:H,containerNode:we,internalEngine:ge,destroy:V,off:p,on:f,emit:h,plugins:Je,previousScrollSnap:he,reInit:g,rootNode:Re,scrollNext:A,scrollPrev:j,scrollProgress:D,scrollSnapList:G,scrollTo:N,selectedScrollSnap:Ce,slideNodes:rt,slidesInView:L,slidesNotInView:De};return T(t,n),setTimeout(()=>l.emit("init"),0),it}Ll.globalOptions=void 0;function Pl(e={},t=[]){const n=v.useRef(e),r=v.useRef(t),[i,o]=v.useState(),[a,s]=v.useState(),l=v.useCallback(()=>{i&&i.reInit(n.current,r.current)},[i]);return v.useEffect(()=>{q1(n.current,e)||(n.current=e,l())},[e,l]),v.useEffect(()=>{nO(r.current,t)||(r.current=t,l())},[t,l]),v.useEffect(()=>{if(tO()&&a){Ll.globalOptions=Pl.globalOptions;const c=Ll(a,n.current,r.current);return o(c),()=>c.destroy()}else o(void 0)},[a,o]),[s,i]}Pl.globalOptions=void 0;const Jt={weeklyGroup:"_weeklyGroup_1et9i_1",weeklyGroup_header:"_weeklyGroup_header_1et9i_6",headerTitle:"_headerTitle_1et9i_13",headerActions:"_headerActions_1et9i_19",headerActions_label:"_headerActions_label_1et9i_25",headerActions_button:"_headerActions_button_1et9i_30",weeklyGroup_viewport:"_weeklyGroup_viewport_1et9i_44",weeklyCarousel:"_weeklyCarousel_1et9i_48",weeklyCarousel_slide:"_weeklyCarousel_slide_1et9i_53",weeklyGroup_dots:"_weeklyGroup_dots_1et9i_59",dotButton:"_dotButton_1et9i_66",dotButton__selected:"_dotButton__selected_1et9i_73"},AO=({groups:e=[],showDots:t=!0,headerTitle:n,className:r,carouselOptions:i,renderHeaderActionsLabel:o})=>{const[a,s]=Pl(i),{selectedIndex:l,scrollSnaps:c,onDotButtonClick:d}=O2(s),{prevBtnDisabled:u,nextBtnDisabled:f,onPrevButtonClick:p,onNextButtonClick:h}=JI(s),g=v.useCallback(()=>{var m;if(!s)return;const _=s.selectedScrollSnap();return o?o==null?void 0:o(_):((m=e==null?void 0:e[_])==null?void 0:m.label)??_+1},[s]);return e.length?y.jsxs("section",{className:E(Jt.weeklyGroup,r&&r),children:[y.jsxs("div",{className:Jt.weeklyGroup_header,children:[!!n&&y.jsx("h3",{className:Jt.headerTitle,children:n}),y.jsxs("div",{className:Jt.headerActions,children:[y.jsx("button",{className:Jt.headerActions_button,onClick:p,disabled:u,children:y.jsx(ie,{name:"chevron-left"})}),y.jsx("span",{className:Jt.headerActions_label,children:g()}),y.jsx("button",{className:Jt.headerActions_button,onClick:h,disabled:f,children:y.jsx(ie,{name:"chevron-right"})})]})]}),y.jsx("div",{className:Jt.weeklyGroup_viewport,ref:a,children:y.jsx("div",{className:Jt.weeklyCarousel,children:e.map(({items:_},m)=>y.jsx("div",{className:Jt.weeklyCarousel_slide,children:y.jsx(I2,{weeklyItems:_})},m))})}),t&&y.jsx("div",{className:Jt.weeklyGroup_dots,children:c.map((_,m)=>y.jsx("button",{onClick:()=>d(m),className:E(Jt.dotButton,m===l&&Jt.dotButton__selected)},m))})]}):null},wt={drawer:"_drawer_17mkt_2",drawer__leftOrigin:"_drawer__leftOrigin_17mkt_10",drawer_content:"_drawer_content_17mkt_10",drawer__closing:"_drawer__closing_17mkt_16",drawer_backdrop:"_drawer_backdrop_17mkt_19",drawer_content_fit:"_drawer_content_fit_17mkt_48",drawer_content__expanded:"_drawer_content__expanded_17mkt_54",drawerHeader_main:"_drawerHeader_main_17mkt_57",headerTitle:"_headerTitle_17mkt_67",headerControls:"_headerControls_17mkt_72",headerControls_close:"_headerControls_close_17mkt_77",body:"_body_17mkt_86",body_noPadding:"_body_noPadding_17mkt_93",footer:"_footer_17mkt_96",drawer__show:"_drawer__show_17mkt_103"},H2=({isOpen:e,children:t,title:n,footer:r,header:i,headerExtra:o,closeOnOverlayClick:a=!1,heightGap:s=50,origin:l="right",className:c,contentClassName:d,bodyPadding:u=!0,contentWidth:f="default",isExpanded:p=!1,onClose:h})=>{const[g,_]=v.useState(e),[m,b]=v.useState(e),[C,x]=v.useState(!1),w=v.useRef(null),k=v.useRef(!1),S=v.useCallback(()=>{w.current&&(clearTimeout(w.current),w.current=null),k.current=!1},[]),M=v.useCallback(()=>{S(),_(!0),x(!1),k.current=!0,w.current=setTimeout(()=>{b(!0),k.current=!1},30)},[]),P=v.useCallback(()=>{C||!m||k.current||(S(),x(!0),b(!1))},[C,m]),T=v.useCallback(V=>{V===m&&!C&&!k.current||(V?M():P())},[P,m,C,k]),I=v.useCallback(()=>{C&&!m&&(x(!1),_(!1),h==null||h())},[C,m,h]);if(v.useEffect(()=>{k.current||T(e)},[e]),v.useEffect(()=>()=>{S()},[]),!g)return null;const O=!!n||!!i||!!o;return y.jsxs("section",{className:E(wt.drawer,wt[`drawer__${l}Origin`],c,m&&wt.drawer__show,C&&wt.drawer__closing),style:{top:`${s}px`},children:[y.jsx("div",{className:wt.drawer_backdrop,role:"button","aria-label":"Drawer backdrop",onClick:V=>{V==null||V.stopPropagation(),a&&P()}}),y.jsxs("div",{className:E(wt.drawer_content,f==="fit"&&wt.drawer_content_fit,p&&wt.drawer_content__expanded,d),"aria-label":"Drawer content",onTransitionEnd:()=>C&&!m&&I(),children:[O&&y.jsxs("header",{className:wt.drawerHeader,children:[y.jsxs("div",{className:wt.drawerHeader_main,children:[y.jsx("div",{className:wt.headerTitle,children:n}),y.jsxs("div",{className:wt.headerControls,children:[i,y.jsx(wr,{className:wt.headerControls_close,icon:"close",variant:"ghost",onClick:P})]})]}),o&&o]}),y.jsx("section",{className:E(wt.body,!u&&wt.body_noPadding),children:t}),r&&y.jsx("footer",{className:wt.footer,children:r})]})]})},It={banner:"_banner_yvm7l_1",banner_slides:"_banner_slides_yvm7l_9",banner_slide:"_banner_slide_yvm7l_9",banner_item:"_banner_item_yvm7l_19",banner_item__clickable:"_banner_item__clickable_yvm7l_26",banner_itemContent:"_banner_itemContent_yvm7l_29",banner_accentTitle:"_banner_accentTitle_yvm7l_36",banner_title:"_banner_title_yvm7l_39",banner_prevButton:"_banner_prevButton_yvm7l_43",banner_nextButton:"_banner_nextButton_yvm7l_43",banner_dots:"_banner_dots_yvm7l_66",banner_dotButton:"_banner_dotButton_yvm7l_78",banner_dotButton__selected:"_banner_dotButton__selected_yvm7l_85"},$2=({children:e})=>{const{isMobile:t}=_a();return y.jsx(yt,{className:It.banner_accentTitle,type:t?"h4":"h3",children:e})},z2=({children:e})=>{const{isMobile:t}=_a();return y.jsx(yt,{className:It.banner_title,type:t?"h3":"h2",children:e})},W2=({className:e,title:t,accentTitle:n,rightContent:r,onClick:i})=>y.jsxs("div",{className:E(It.banner_item,i&&It.banner_item__clickable,e),role:i?"button":void 0,onClick:i,children:[y.jsxs("div",{className:It.banner_itemContent,children:[!!n&&y.jsx($2,{children:n}),!!t&&y.jsx(z2,{children:t})]}),!!r&&y.jsx("div",{className:It.banner_itemRightContent,children:r})]}),NO={Wrapper:({className:e,items:t=[]})=>{const[n,r]=Pl({active:(t==null?void 0:t.length)>1}),[i,o]=v.useState(!0),[a,s]=v.useState(!0),{selectedIndex:l,scrollSnaps:c,onDotButtonClick:d}=O2(r),u=(t==null?void 0:t.length)>1,f=v.useCallback(()=>{!r||!u||r.scrollPrev()},[r,u]),p=v.useCallback(()=>{!r||!u||r.scrollNext()},[r,u]),h=v.useCallback(g=>{o(!g.canScrollPrev()),s(!g.canScrollNext())},[]);return v.useEffect(()=>{!r||!u||(h(r),r.on("reInit",h).on("select",h))},[r,h,u]),y.jsxs("div",{className:E(It.banner,e),children:[u&&y.jsx(wr,{className:It.banner_prevButton,icon:"chevron-left",variant:"ghost",onClick:f,disabled:i}),y.jsx("div",{className:It.banner_content,ref:n,children:y.jsx("div",{className:It.banner_slides,children:t==null?void 0:t.map((g,_)=>y.jsx("div",{className:It.banner_slide,children:"content"in g?g.content:y.jsx(W2,{...g})},_))})}),u&&y.jsx(wr,{className:It.banner_nextButton,icon:"chevron-right",variant:"ghost",onClick:p,disabled:a}),u&&y.jsx("div",{className:It.banner_dots,children:c.map((g,_)=>y.jsx("button",{onClick:()=>d(_),className:E(It.banner_dotButton,_===l&&It.banner_dotButton__selected)},_))})]})},Item:W2,Title:z2,AccentTitle:$2},xa={beacon:"_beacon_97rla_1",beaconIcon_largeCircle:"_beaconIcon_largeCircle_97rla_18",beaconIcon_middleCircle:"_beaconIcon_middleCircle_97rla_19",beaconIcon_mainCircle:"_beaconIcon_mainCircle_97rla_24",beaconIcon:"_beaconIcon_97rla_18"},ed=v.forwardRef(function({label:t,className:n,...r},i){const o=v.useId();return y.jsx("button",{...r,ref:i,type:"button","aria-label":t,className:E(xa.beacon,n),children:y.jsxs("svg",{"aria-hidden":!0,className:xa.beaconIcon,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[y.jsxs("g",{clipPath:`url(#${o})`,children:[y.jsx("circle",{className:xa.beaconIcon_largeCircle,cx:"8",cy:"8",r:"8"}),y.jsx("circle",{className:xa.beaconIcon_middleCircle,cx:"8",cy:"8",r:"5"}),y.jsx("circle",{className:xa.beaconIcon_mainCircle,cx:"8",cy:"8",r:"3"})]}),y.jsx("defs",{children:y.jsx("clipPath",{id:o,children:y.jsx("rect",{width:"16",height:"16"})})})]})})});ed.prototype={avocado:"Beacon"};function Y2(e){return t=>typeof t===e}var RO=Y2("function"),jO=e=>e===null,U2=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",Z2=e=>!FO(e)&&!jO(e)&&(RO(e)||typeof e=="object"),FO=Y2("undefined");function VO(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Ot(e[r],t[r]))return!1;return!0}function BO(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function HO(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!Ot(n[1],t.get(n[0])))return!1;return!0}function $O(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function Ot(e,t){if(e===t)return!0;if(e&&Z2(e)&&t&&Z2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return VO(e,t);if(e instanceof Map&&t instanceof Map)return HO(e,t);if(e instanceof Set&&t instanceof Set)return $O(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return BO(e,t);if(U2(e)&&U2(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!Ot(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var zO=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],WO=["bigint","boolean","null","number","string","symbol","undefined"];function El(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(YO(t))return t}function vn(e){return t=>El(t)===e}function YO(e){return zO.includes(e)}function oo(e){return t=>typeof t===e}function UO(e){return WO.includes(e)}var ZO=["innerHTML","ownerDocument","style","attributes","nodeValue"];function K(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(K.array(e))return"Array";if(K.plainFunction(e))return"Function";const t=El(e);return t||"Object"}K.array=Array.isArray,K.arrayOf=(e,t)=>!K.array(e)&&!K.function(t)?!1:e.every(n=>t(n)),K.asyncGeneratorFunction=e=>El(e)==="AsyncGeneratorFunction",K.asyncFunction=vn("AsyncFunction"),K.bigint=oo("bigint"),K.boolean=e=>e===!0||e===!1,K.date=vn("Date"),K.defined=e=>!K.undefined(e),K.domElement=e=>K.object(e)&&!K.plainObject(e)&&e.nodeType===1&&K.string(e.nodeName)&&ZO.every(t=>t in e),K.empty=e=>K.string(e)&&e.length===0||K.array(e)&&e.length===0||K.object(e)&&!K.map(e)&&!K.set(e)&&Object.keys(e).length===0||K.set(e)&&e.size===0||K.map(e)&&e.size===0,K.error=vn("Error"),K.function=oo("function"),K.generator=e=>K.iterable(e)&&K.function(e.next)&&K.function(e.throw),K.generatorFunction=vn("GeneratorFunction"),K.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype,K.iterable=e=>!K.nullOrUndefined(e)&&K.function(e[Symbol.iterator]),K.map=vn("Map"),K.nan=e=>Number.isNaN(e),K.null=e=>e===null,K.nullOrUndefined=e=>K.null(e)||K.undefined(e),K.number=e=>oo("number")(e)&&!K.nan(e),K.numericString=e=>K.string(e)&&e.length>0&&!Number.isNaN(Number(e)),K.object=e=>!K.nullOrUndefined(e)&&(K.function(e)||typeof e=="object"),K.oneOf=(e,t)=>K.array(e)?e.indexOf(t)>-1:!1,K.plainFunction=vn("Function"),K.plainObject=e=>{if(El(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})},K.primitive=e=>K.null(e)||UO(typeof e),K.promise=vn("Promise"),K.propertyOf=(e,t,n)=>{if(!K.object(e)||!t)return!1;const r=e[t];return K.function(n)?n(r):K.defined(r)},K.regexp=vn("RegExp"),K.set=vn("Set"),K.string=oo("string"),K.symbol=oo("symbol"),K.undefined=oo("undefined"),K.weakMap=vn("WeakMap"),K.weakSet=vn("WeakSet");var J=K;function qO(...e){return e.every(t=>J.string(t)||J.array(t)||J.plainObject(t))}function GO(e,t,n){return J2(e,t)?[e,t].every(J.array)?!e.some(X2(n))&&t.some(X2(n)):[e,t].every(J.plainObject)?!Object.entries(e).some(Q2(n))&&Object.entries(t).some(Q2(n)):t===n:!1}function q2(e,t,n){const{actual:r,key:i,previous:o,type:a}=n,s=Gn(e,i),l=Gn(t,i);let c=[s,l].every(J.number)&&(a==="increased"?s<l:s>l);return J.undefined(r)||(c=c&&l===r),J.undefined(o)||(c=c&&s===o),c}function G2(e,t,n){const{key:r,type:i,value:o}=n,a=Gn(e,r),s=Gn(t,r),l=i==="added"?a:s,c=i==="added"?s:a;if(!J.nullOrUndefined(o)){if(J.defined(l)){if(J.array(l)||J.plainObject(l))return GO(l,c,o)}else return Ot(c,o);return!1}return[a,s].every(J.array)?!c.every(td(l)):[a,s].every(J.plainObject)?KO(Object.keys(l),Object.keys(c)):![a,s].every(d=>J.primitive(d)&&J.defined(d))&&(i==="added"?!J.defined(a)&&J.defined(s):J.defined(a)&&!J.defined(s))}function K2(e,t,{key:n}={}){let r=Gn(e,n),i=Gn(t,n);if(!J2(r,i))throw new TypeError("Inputs have different types");if(!qO(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(J.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function Q2(e){return([t,n])=>J.array(e)?Ot(e,n)||e.some(r=>Ot(r,n)||J.array(n)&&td(n)(r)):J.plainObject(e)&&e[t]?!!e[t]&&Ot(e[t],n):Ot(e,n)}function KO(e,t){return t.some(n=>!e.includes(n))}function X2(e){return t=>J.array(e)?e.some(n=>Ot(n,t)||J.array(t)&&td(t)(n)):Ot(e,t)}function ka(e,t){return J.array(e)?e.some(n=>Ot(n,t)):Ot(e,t)}function td(e){return t=>e.some(n=>Ot(n,t))}function J2(...e){return e.every(J.array)||e.every(J.number)||e.every(J.plainObject)||e.every(J.string)}function Gn(e,t){return J.plainObject(e)||J.array(e)?J.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):J.number(t)?e[t]:e:e}function Il(e,t){if([e,t].some(J.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(d=>J.plainObject(d)||J.array(d)))throw new Error("Expected plain objects or array");return{added:(d,u)=>{try{return G2(e,t,{key:d,type:"added",value:u})}catch{return!1}},changed:(d,u,f)=>{try{const p=Gn(e,d),h=Gn(t,d),g=J.defined(u),_=J.defined(f);if(g||_){const m=_?ka(f,p):!ka(u,p),b=ka(u,h);return m&&b}return[p,h].every(J.array)||[p,h].every(J.plainObject)?!Ot(p,h):p!==h}catch{return!1}},changedFrom:(d,u,f)=>{if(!J.defined(d))return!1;try{const p=Gn(e,d),h=Gn(t,d),g=J.defined(f);return ka(u,p)&&(g?ka(f,h):!g)}catch{return!1}},decreased:(d,u,f)=>{if(!J.defined(d))return!1;try{return q2(e,t,{key:d,actual:u,previous:f,type:"decreased"})}catch{return!1}},emptied:d=>{try{const[u,f]=K2(e,t,{key:d});return!!u.length&&!f.length}catch{return!1}},filled:d=>{try{const[u,f]=K2(e,t,{key:d});return!u.length&&!!f.length}catch{return!1}},increased:(d,u,f)=>{if(!J.defined(d))return!1;try{return q2(e,t,{key:d,actual:u,previous:f,type:"increased"})}catch{return!1}},removed:(d,u)=>{try{return G2(e,t,{key:d,type:"removed",value:u})}catch{return!1}}}}var nd,e5;function QO(){if(e5)return nd;e5=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;nd={left:i("scrollLeft"),top:i("scrollTop")};function i(s){return function(c,d,u,f){u=u||{},typeof u=="function"&&(f=u,u={}),typeof f!="function"&&(f=a);var p=r(),h=c[s],g=u.ease||o,_=isNaN(u.duration)?350:+u.duration,m=!1;return h===d?f(e,c[s]):requestAnimationFrame(C),b;function b(){m=!0}function C(x){if(m)return f(t,c[s]);var w=r(),k=n(1,(w-p)/_),S=g(k);c[s]=S*(d-h)+h,k<1?requestAnimationFrame(C):requestAnimationFrame(function(){f(null,c[s])})}}}function o(s){return .5*(1-Math.cos(Math.PI*s))}function a(){}return nd}var XO=QO();const JO=En(XO);var Ol={exports:{}},eA=Ol.exports,t5;function tA(){return t5||(t5=1,(function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(eA,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})})(Ol)),Ol.exports}var nA=tA();const n5=En(nA);var rd,r5;function rA(){if(r5)return rd;r5=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,rd=n,rd}var iA=rA();const i5=En(iA);var id,o5;function oA(){if(o5)return id;o5=1;var e=function(b){return t(b)&&!n(b)};function t(m){return!!m&&typeof m=="object"}function n(m){var b=Object.prototype.toString.call(m);return b==="[object RegExp]"||b==="[object Date]"||o(m)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(m){return m.$$typeof===i}function a(m){return Array.isArray(m)?[]:{}}function s(m,b){return b.clone!==!1&&b.isMergeableObject(m)?g(a(m),m,b):m}function l(m,b,C){return m.concat(b).map(function(x){return s(x,C)})}function c(m,b){if(!b.customMerge)return g;var C=b.customMerge(m);return typeof C=="function"?C:g}function d(m){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(m).filter(function(b){return Object.propertyIsEnumerable.call(m,b)}):[]}function u(m){return Object.keys(m).concat(d(m))}function f(m,b){try{return b in m}catch{return!1}}function p(m,b){return f(m,b)&&!(Object.hasOwnProperty.call(m,b)&&Object.propertyIsEnumerable.call(m,b))}function h(m,b,C){var x={};return C.isMergeableObject(m)&&u(m).forEach(function(w){x[w]=s(m[w],C)}),u(b).forEach(function(w){p(m,w)||(f(m,w)&&C.isMergeableObject(b[w])?x[w]=c(w,C)(m[w],b[w],C):x[w]=s(b[w],C))}),x}function g(m,b,C){C=C||{},C.arrayMerge=C.arrayMerge||l,C.isMergeableObject=C.isMergeableObject||e,C.cloneUnlessOtherwiseSpecified=s;var x=Array.isArray(b),w=Array.isArray(m),k=x===w;return k?x?C.arrayMerge(m,b,C):h(m,b,C):s(b,C)}g.all=function(b,C){if(!Array.isArray(b))throw new Error("first argument should be an array");return b.reduce(function(x,w){return g(x,w,C)},{})};var _=g;return id=_,id}var aA=oA();const Cn=En(aA);var od={exports:{}},ad,a5;function sA(){if(a5)return ad;a5=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ad=e,ad}var sd,s5;function lA(){if(s5)return sd;s5=1;var e=sA();function t(){}function n(){}return n.resetWarningCache=t,sd=function(){function r(a,s,l,c,d,u){if(u!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},sd}var l5;function cA(){return l5||(l5=1,od.exports=lA()()),od.exports}var uA=cA();const z=En(uA);/**!
804
804
  * @fileOverview Kickass library to create and place poppers near their reference elements.
805
805
  * @version 1.16.1
806
806
  * @license
@@ -823,7 +823,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
823
823
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
824
824
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
825
825
  * SOFTWARE.
826
- */var Sa=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",dA=(function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Sa&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0})();function fA(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function pA(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},dA))}}var hA=Sa&&window.Promise,mA=hA?fA:pA;function c5(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function yi(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function ld(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Ta(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=yi(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Ta(ld(e))}function u5(e){return e&&e.referenceNode?e.referenceNode:e}var d5=Sa&&!!(window.MSInputMethodContext&&document.documentMode),f5=Sa&&/MSIE 10/.test(navigator.userAgent);function ao(e){return e===11?d5:e===10?f5:d5||f5}function so(e){if(!e)return document.documentElement;for(var t=ao(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&yi(n,"position")==="static"?so(n):n}function _A(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||so(e.firstElementChild)===e}function cd(e){return e.parentNode!==null?cd(e.parentNode):e}function Al(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return _A(a)?a:so(a);var s=cd(e);return s.host?Al(s.host,t):Al(e,cd(t).host)}function lo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function gA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=lo(t,"top"),i=lo(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function p5(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function h5(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ao(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function m5(e){var t=e.body,n=e.documentElement,r=ao(10)&&getComputedStyle(n);return{height:h5("Height",t,n,r),width:h5("Width",t,n,r)}}var yA=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},bA=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),co=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},dn=Object.assign||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};function Fr(e){return dn({},e,{right:e.left+e.width,bottom:e.top+e.height})}function ud(e){var t={};try{if(ao(10)){t=e.getBoundingClientRect();var n=lo(e,"top"),r=lo(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o=e.nodeName==="HTML"?m5(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=yi(e);l-=p5(u,"x"),c-=p5(u,"y"),i.width-=l,i.height-=c}return Fr(i)}function dd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=ao(10),i=t.nodeName==="HTML",o=ud(e),a=ud(t),s=Ta(e),l=yi(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Fr({top:o.top-a.top-c,left:o.left-a.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var f=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);d.top-=c-f,d.bottom-=c-f,d.left-=u-p,d.right-=u-p,d.marginTop=f,d.marginLeft=p}return(r&&!n?t.contains(s):t===s&&s.nodeName!=="BODY")&&(d=gA(d,t)),d}function vA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=dd(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:lo(n),s=t?0:lo(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return Fr(l)}function _5(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(yi(e,"position")==="fixed")return!0;var n=ld(e);return n?_5(n):!1}function g5(e){if(!e||!e.parentElement||ao())return document.documentElement;for(var t=e.parentElement;t&&yi(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function fd(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},a=i?g5(e):Al(e,u5(t));if(r==="viewport")o=vA(a,i);else{var s=void 0;r==="scrollParent"?(s=Ta(ld(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var l=dd(s,a,i);if(s.nodeName==="HTML"&&!_5(a)){var c=m5(e.ownerDocument),u=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}else o=l}n=n||0;var f=typeof n=="number";return o.left+=f?n:n.left||0,o.top+=f?n:n.top||0,o.right-=f?n:n.right||0,o.bottom-=f?n:n.bottom||0,o}function CA(e){var t=e.width,n=e.height;return t*n}function y5(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=fd(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(f){return dn({key:f},s[f],{area:CA(s[f])})}).sort(function(f,p){return p.area-f.area}),c=l.filter(function(f){var p=f.width,h=f.height;return p>=n.clientWidth&&h>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function b5(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?g5(t):Al(t,u5(n));return dd(n,i,r)}function v5(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function Nl(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function C5(e,t,n){n=n.split("-")[0];var r=v5(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,n===s?i[s]=t[s]-r[c]:i[s]=t[Nl(s)],i}function Ma(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function wA(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Ma(e,function(i){return i[t]===n});return e.indexOf(r)}function w5(e,t,n){var r=n===void 0?e:e.slice(0,wA(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&c5(o)&&(t.offsets.popper=Fr(t.offsets.popper),t.offsets.reference=Fr(t.offsets.reference),t=o(t,i))}),t}function xA(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=b5(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=y5(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=C5(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=w5(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function x5(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function pd(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(typeof document.body.style[o]<"u")return o}return null}function kA(){return this.state.isDestroyed=!0,x5(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[pd("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function k5(e){var t=e.ownerDocument;return t?t.defaultView:window}function S5(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||S5(Ta(o.parentNode),t,n,r),r.push(o)}function SA(e,t,n,r){n.updateBound=r,k5(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Ta(e);return S5(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function TA(){this.state.eventsEnabled||(this.state=SA(this.reference,this.options,this.state,this.scheduleUpdate))}function MA(e,t){return k5(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function DA(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=MA(this.reference,this.state))}function hd(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function md(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&hd(t[n])&&(r="px"),e.style[n]=t[n]+r})}function LA(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function PA(e){return md(e.instance.popper,e.styles),LA(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&md(e.arrowElement,e.arrowStyles),e}function EA(e,t,n,r,i){var o=b5(i,t,e,n.positionFixed),a=y5(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),md(t,{position:n.positionFixed?"fixed":"absolute"}),n}function IA(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(m){return m},l=o(i.width),c=o(r.width),u=["left","right"].indexOf(e.placement)!==-1,d=e.placement.indexOf("-")!==-1,f=l%2===c%2,p=l%2===1&&c%2===1,h=t?u||d||f?o:a:s,g=t?o:s;return{left:h(p&&!d&&t?r.left-1:r.left),top:g(r.top),bottom:g(r.bottom),right:h(r.right)}}var OA=Sa&&/Firefox/i.test(navigator.userAgent);function AA(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=Ma(e.instance.modifiers,function(C){return C.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=o!==void 0?o:t.gpuAcceleration,s=so(e.instance.popper),l=ud(s),c={position:i.position},u=IA(e,window.devicePixelRatio<2||!OA),d=n==="bottom"?"top":"bottom",f=r==="right"?"left":"right",p=pd("transform"),h=void 0,g=void 0;if(d==="bottom"?s.nodeName==="HTML"?g=-s.clientHeight+u.bottom:g=-l.height+u.bottom:g=u.top,f==="right"?s.nodeName==="HTML"?h=-s.clientWidth+u.right:h=-l.width+u.right:h=u.left,a&&p)c[p]="translate3d("+h+"px, "+g+"px, 0)",c[d]=0,c[f]=0,c.willChange="transform";else{var _=d==="bottom"?-1:1,m=f==="right"?-1:1;c[d]=g*_,c[f]=h*m,c.willChange=d+", "+f}var b={"x-placement":e.placement};return e.attributes=dn({},b,e.attributes),e.styles=dn({},c,e.styles),e.arrowStyles=dn({},e.offsets.arrow,e.arrowStyles),e}function T5(e,t,n){var r=Ma(e,function(s){var l=s.name;return l===t}),i=!!r&&e.some(function(s){return s.name===n&&s.enabled&&s.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function NA(e,t){var n;if(!T5(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=["left","right"].indexOf(i)!==-1,c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),f=l?"left":"top",p=l?"bottom":"right",h=v5(r)[c];s[p]-h<a[d]&&(e.offsets.popper[d]-=a[d]-(s[p]-h)),s[d]+h>a[p]&&(e.offsets.popper[d]+=s[d]+h-a[p]),e.offsets.popper=Fr(e.offsets.popper);var g=s[d]+s[c]/2-h/2,_=yi(e.instance.popper),m=parseFloat(_["margin"+u]),b=parseFloat(_["border"+u+"Width"]),C=g-e.offsets.popper[d]-m-b;return C=Math.max(Math.min(a[c]-h,C),0),e.arrowElement=r,e.offsets.arrow=(n={},co(n,d,Math.round(C)),co(n,f,""),n),e}function RA(e){return e==="end"?"start":e==="start"?"end":e}var M5=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],_d=M5.slice(3);function D5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=_d.indexOf(e),r=_d.slice(n+1).concat(_d.slice(0,n));return t?r.reverse():r}var gd={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function jA(e,t){if(x5(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=fd(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Nl(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case gd.FLIP:a=[r,i];break;case gd.CLOCKWISE:a=D5(r);break;case gd.COUNTERCLOCKWISE:a=D5(r,!0);break;default:a=t.behavior}return a.forEach(function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=Nl(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f=r==="left"&&d(c.right)>d(u.left)||r==="right"&&d(c.left)<d(u.right)||r==="top"&&d(c.bottom)>d(u.top)||r==="bottom"&&d(c.top)<d(u.bottom),p=d(c.left)<d(n.left),h=d(c.right)>d(n.right),g=d(c.top)<d(n.top),_=d(c.bottom)>d(n.bottom),m=r==="left"&&p||r==="right"&&h||r==="top"&&g||r==="bottom"&&_,b=["top","bottom"].indexOf(r)!==-1,C=!!t.flipVariations&&(b&&o==="start"&&p||b&&o==="end"&&h||!b&&o==="start"&&g||!b&&o==="end"&&_),x=!!t.flipVariationsByContent&&(b&&o==="start"&&h||b&&o==="end"&&p||!b&&o==="start"&&_||!b&&o==="end"&&g),w=C||x;(f||m||w)&&(e.flipped=!0,(f||m)&&(r=a[l+1]),w&&(o=RA(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=dn({},e.offsets.popper,C5(e.instance.popper,e.offsets.reference,e.placement)),e=w5(e.instance.modifiers,e,"flip"))}),e}function FA(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=["top","bottom"].indexOf(i)!==-1,s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[c]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}function VA(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(a.indexOf("%")===0){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=Fr(s);return l[t]/100*o}else if(a==="vh"||a==="vw"){var c=void 0;return a==="vh"?c=Math.max(document.documentElement.clientHeight,window.innerHeight||0):c=Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*o}else return o}function BA(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(u){return u.trim()}),s=a.indexOf(Ma(a,function(u){return u.search(/,|\s/)!==-1}));a[s]&&a[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=s!==-1?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map(function(u,d){var f=(d===1?!o:o)?"height":"width",p=!1;return u.reduce(function(h,g){return h[h.length-1]===""&&["+","-"].indexOf(g)!==-1?(h[h.length-1]=g,p=!0,h):p?(h[h.length-1]+=g,p=!1,h):h.concat(g)},[]).map(function(h){return VA(h,f,t,n)})}),c.forEach(function(u,d){u.forEach(function(f,p){hd(f)&&(i[d]+=f*(u[p-1]==="-"?-1:1))})}),i}function HA(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return hd(+n)?l=[+n,0]:l=BA(n,o,a,s),s==="left"?(o.top+=l[0],o.left-=l[1]):s==="right"?(o.top+=l[0],o.left+=l[1]):s==="top"?(o.left+=l[0],o.top-=l[1]):s==="bottom"&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function $A(e,t){var n=t.boundariesElement||so(e.instance.popper);e.instance.reference===n&&(n=so(n));var r=pd("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=fd(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(p){var h=u[p];return u[p]<l[p]&&!t.escapeWithReference&&(h=Math.max(u[p],l[p])),co({},p,h)},secondary:function(p){var h=p==="right"?"left":"top",g=u[h];return u[p]>l[p]&&!t.escapeWithReference&&(g=Math.min(u[h],l[p]-(p==="right"?u.width:u.height))),co({},h,g)}};return c.forEach(function(f){var p=["left","top"].indexOf(f)!==-1?"primary":"secondary";u=dn({},u,d[p](f))}),e.offsets.popper=u,e}function zA(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=["bottom","top"].indexOf(n)!==-1,l=s?"left":"top",c=s?"width":"height",u={start:co({},l,o[l]),end:co({},l,o[l]+o[c]-a[c])};e.offsets.popper=dn({},a,u[r])}return e}function WA(e){if(!T5(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Ma(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function YA(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=["left","right"].indexOf(n)!==-1,s=["top","left"].indexOf(n)===-1;return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=Nl(t),e.offsets.popper=Fr(i),e}var UA={shift:{order:100,enabled:!0,fn:zA},offset:{order:200,enabled:!0,fn:HA,offset:0},preventOverflow:{order:300,enabled:!0,fn:$A,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:FA},arrow:{order:500,enabled:!0,fn:NA,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:jA,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:YA},hide:{order:800,enabled:!0,fn:WA},computeStyle:{order:850,enabled:!0,fn:AA,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:PA,onLoad:EA,gpuAcceleration:void 0}},ZA={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:UA},Da=(function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};yA(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=mA(this.update.bind(this)),this.options=dn({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(dn({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){r.options.modifiers[a]=dn({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return dn({name:a},r.options.modifiers[a])}).sort(function(a,s){return a.order-s.order}),this.modifiers.forEach(function(a){a.enabled&&c5(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return bA(e,[{key:"update",value:function(){return xA.call(this)}},{key:"destroy",value:function(){return kA.call(this)}},{key:"enableEventListeners",value:function(){return TA.call(this)}},{key:"disableEventListeners",value:function(){return DA.call(this)}}]),e})();Da.Utils=(typeof window<"u"?window:global).PopperUtils,Da.placements=M5,Da.Defaults=ZA;var qA=["innerHTML","ownerDocument","style","attributes","nodeValue"],GA=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],KA=["bigint","boolean","null","number","string","symbol","undefined"];function Rl(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(QA(t))return t}function wn(e){return function(t){return Rl(t)===e}}function QA(e){return GA.includes(e)}function uo(e){return function(t){return typeof t===e}}function XA(e){return KA.includes(e)}function U(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(U.array(e))return"Array";if(U.plainFunction(e))return"Function";var t=Rl(e);return t||"Object"}U.array=Array.isArray,U.arrayOf=function(e,t){return!U.array(e)&&!U.function(t)?!1:e.every(function(n){return t(n)})},U.asyncGeneratorFunction=function(e){return Rl(e)==="AsyncGeneratorFunction"},U.asyncFunction=wn("AsyncFunction"),U.bigint=uo("bigint"),U.boolean=function(e){return e===!0||e===!1},U.date=wn("Date"),U.defined=function(e){return!U.undefined(e)},U.domElement=function(e){return U.object(e)&&!U.plainObject(e)&&e.nodeType===1&&U.string(e.nodeName)&&qA.every(function(t){return t in e})},U.empty=function(e){return U.string(e)&&e.length===0||U.array(e)&&e.length===0||U.object(e)&&!U.map(e)&&!U.set(e)&&Object.keys(e).length===0||U.set(e)&&e.size===0||U.map(e)&&e.size===0},U.error=wn("Error"),U.function=uo("function"),U.generator=function(e){return U.iterable(e)&&U.function(e.next)&&U.function(e.throw)},U.generatorFunction=wn("GeneratorFunction"),U.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype},U.iterable=function(e){return!U.nullOrUndefined(e)&&U.function(e[Symbol.iterator])},U.map=wn("Map"),U.nan=function(e){return Number.isNaN(e)},U.null=function(e){return e===null},U.nullOrUndefined=function(e){return U.null(e)||U.undefined(e)},U.number=function(e){return uo("number")(e)&&!U.nan(e)},U.numericString=function(e){return U.string(e)&&e.length>0&&!Number.isNaN(Number(e))},U.object=function(e){return!U.nullOrUndefined(e)&&(U.function(e)||typeof e=="object")},U.oneOf=function(e,t){return U.array(e)?e.indexOf(t)>-1:!1},U.plainFunction=wn("Function"),U.plainObject=function(e){if(Rl(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})},U.primitive=function(e){return U.null(e)||XA(typeof e)},U.promise=wn("Promise"),U.propertyOf=function(e,t,n){if(!U.object(e)||!t)return!1;var r=e[t];return U.function(n)?n(r):U.defined(r)},U.regexp=wn("RegExp"),U.set=wn("Set"),U.string=uo("string"),U.symbol=uo("symbol"),U.undefined=uo("undefined"),U.weakMap=wn("WeakMap"),U.weakSet=wn("WeakSet");function L5(e){return function(t){return typeof t===e}}var JA=L5("function"),eN=function(e){return e===null},P5=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},E5=function(e){return!tN(e)&&!eN(e)&&(JA(e)||typeof e=="object")},tN=L5("undefined"),yd=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function nN(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!Yt(e[r],t[r]))return!1;return!0}function rN(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function iN(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var a=yd(e.entries()),s=a.next();!s.done;s=a.next()){var l=s.value;if(!t.has(l[0]))return!1}}catch(d){n={error:d}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var c=yd(e.entries()),u=c.next();!u.done;u=c.next()){var l=u.value;if(!Yt(l[1],t.get(l[0])))return!1}}catch(d){i={error:d}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return!0}function oN(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=yd(e.entries()),o=i.next();!o.done;o=i.next()){var a=o.value;if(!t.has(a[0]))return!1}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function Yt(e,t){if(e===t)return!0;if(e&&E5(e)&&t&&E5(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return nN(e,t);if(e instanceof Map&&t instanceof Map)return iN(e,t);if(e instanceof Set&&t instanceof Set)return oN(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return rN(e,t);if(P5(e)&&P5(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!Yt(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var aN=["innerHTML","ownerDocument","style","attributes","nodeValue"],sN=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],lN=["bigint","boolean","null","number","string","symbol","undefined"];function jl(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(cN(t))return t}function xn(e){return function(t){return jl(t)===e}}function cN(e){return sN.includes(e)}function fo(e){return function(t){return typeof t===e}}function uN(e){return lN.includes(e)}function B(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(B.array(e))return"Array";if(B.plainFunction(e))return"Function";var t=jl(e);return t||"Object"}B.array=Array.isArray,B.arrayOf=function(e,t){return!B.array(e)&&!B.function(t)?!1:e.every(function(n){return t(n)})},B.asyncGeneratorFunction=function(e){return jl(e)==="AsyncGeneratorFunction"},B.asyncFunction=xn("AsyncFunction"),B.bigint=fo("bigint"),B.boolean=function(e){return e===!0||e===!1},B.date=xn("Date"),B.defined=function(e){return!B.undefined(e)},B.domElement=function(e){return B.object(e)&&!B.plainObject(e)&&e.nodeType===1&&B.string(e.nodeName)&&aN.every(function(t){return t in e})},B.empty=function(e){return B.string(e)&&e.length===0||B.array(e)&&e.length===0||B.object(e)&&!B.map(e)&&!B.set(e)&&Object.keys(e).length===0||B.set(e)&&e.size===0||B.map(e)&&e.size===0},B.error=xn("Error"),B.function=fo("function"),B.generator=function(e){return B.iterable(e)&&B.function(e.next)&&B.function(e.throw)},B.generatorFunction=xn("GeneratorFunction"),B.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype},B.iterable=function(e){return!B.nullOrUndefined(e)&&B.function(e[Symbol.iterator])},B.map=xn("Map"),B.nan=function(e){return Number.isNaN(e)},B.null=function(e){return e===null},B.nullOrUndefined=function(e){return B.null(e)||B.undefined(e)},B.number=function(e){return fo("number")(e)&&!B.nan(e)},B.numericString=function(e){return B.string(e)&&e.length>0&&!Number.isNaN(Number(e))},B.object=function(e){return!B.nullOrUndefined(e)&&(B.function(e)||typeof e=="object")},B.oneOf=function(e,t){return B.array(e)?e.indexOf(t)>-1:!1},B.plainFunction=xn("Function"),B.plainObject=function(e){if(jl(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})},B.primitive=function(e){return B.null(e)||uN(typeof e)},B.promise=xn("Promise"),B.propertyOf=function(e,t,n){if(!B.object(e)||!t)return!1;var r=e[t];return B.function(n)?n(r):B.defined(r)},B.regexp=xn("RegExp"),B.set=xn("Set"),B.string=fo("string"),B.symbol=fo("symbol"),B.undefined=fo("undefined"),B.weakMap=xn("WeakMap"),B.weakSet=xn("WeakSet");function dN(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return B.string(n)||B.array(n)||B.plainObject(n)})}function fN(e,t,n){return j5(e,t)?[e,t].every(B.array)?!e.some(R5(n))&&t.some(R5(n)):[e,t].every(B.plainObject)?!Object.entries(e).some(N5(n))&&Object.entries(t).some(N5(n)):t===n:!1}function I5(e,t,n){var r=n.actual,i=n.key,o=n.previous,a=n.type,s=Kn(e,i),l=Kn(t,i),c=[s,l].every(B.number)&&(a==="increased"?s<l:s>l);return B.undefined(r)||(c=c&&l===r),B.undefined(o)||(c=c&&s===o),c}function O5(e,t,n){var r=n.key,i=n.type,o=n.value,a=Kn(e,r),s=Kn(t,r),l=i==="added"?a:s,c=i==="added"?s:a;if(!B.nullOrUndefined(o)){if(B.defined(l)){if(B.array(l)||B.plainObject(l))return fN(l,c,o)}else return Yt(c,o);return!1}return[a,s].every(B.array)?!c.every(bd(l)):[a,s].every(B.plainObject)?pN(Object.keys(l),Object.keys(c)):![a,s].every(function(u){return B.primitive(u)&&B.defined(u)})&&(i==="added"?!B.defined(a)&&B.defined(s):B.defined(a)&&!B.defined(s))}function A5(e,t,n){var r=n===void 0?{}:n,i=r.key,o=Kn(e,i),a=Kn(t,i);if(!j5(o,a))throw new TypeError("Inputs have different types");if(!dN(o,a))throw new TypeError("Inputs don't have length");return[o,a].every(B.plainObject)&&(o=Object.keys(o),a=Object.keys(a)),[o,a]}function N5(e){return function(t){var n=t[0],r=t[1];return B.array(e)?Yt(e,r)||e.some(function(i){return Yt(i,r)||B.array(r)&&bd(r)(i)}):B.plainObject(e)&&e[n]?!!e[n]&&Yt(e[n],r):Yt(e,r)}}function pN(e,t){return t.some(function(n){return!e.includes(n)})}function R5(e){return function(t){return B.array(e)?e.some(function(n){return Yt(n,t)||B.array(t)&&bd(t)(n)}):Yt(e,t)}}function La(e,t){return B.array(e)?e.some(function(n){return Yt(n,t)}):Yt(e,t)}function bd(e){return function(t){return e.some(function(n){return Yt(n,t)})}}function j5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(B.array)||e.every(B.number)||e.every(B.plainObject)||e.every(B.string)}function Kn(e,t){if(B.plainObject(e)||B.array(e)){if(B.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return B.number(t)?e[t]:e}return e}function hN(e,t){if([e,t].some(B.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(d){return B.plainObject(d)||B.array(d)}))throw new Error("Expected plain objects or array");var n=function(d,f){try{return O5(e,t,{key:d,type:"added",value:f})}catch{return!1}},r=function(d,f,p){try{var h=Kn(e,d),g=Kn(t,d),_=B.defined(f),m=B.defined(p);if(_||m){var b=m?La(p,h):!La(f,h),C=La(f,g);return b&&C}return[h,g].every(B.array)||[h,g].every(B.plainObject)?!Yt(h,g):h!==g}catch{return!1}},i=function(d,f,p){if(!B.defined(d))return!1;try{var h=Kn(e,d),g=Kn(t,d),_=B.defined(p);return La(f,h)&&(_?La(p,g):!_)}catch{return!1}},o=function(d,f){return B.defined(d)?r(d,f):!1},a=function(d,f,p){if(!B.defined(d))return!1;try{return I5(e,t,{key:d,actual:f,previous:p,type:"decreased"})}catch{return!1}},s=function(d){try{var f=A5(e,t,{key:d}),p=f[0],h=f[1];return!!p.length&&!h.length}catch{return!1}},l=function(d){try{var f=A5(e,t,{key:d}),p=f[0],h=f[1];return!p.length&&!!h.length}catch{return!1}},c=function(d,f,p){if(!B.defined(d))return!1;try{return I5(e,t,{key:d,actual:f,previous:p,type:"increased"})}catch{return!1}},u=function(d,f){try{return O5(e,t,{key:d,type:"removed",value:f})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:a,emptied:s,filled:l,increased:c,removed:u}}function F5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F5(Object(n),!0).forEach(function(r){xt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B5(r.key),r)}}function Ea(e,t,n){return t&&mN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xt(e,t,n){return t=B5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ia(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vd(e,t)}function Fl(e){return Fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fl(e)}function vd(e,t){return vd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vd(e,t)}function _N(){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 gN(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}function V5(e,t){if(e==null)return{};var n=gN(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function br(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yN(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return br(e)}function Oa(e){var t=_N();return function(){var r=Fl(e),i;if(t){var o=Fl(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return yN(this,i)}}function bN(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B5(e){var t=bN(e,"string");return typeof t=="symbol"?t:String(t)}var vN={flip:{padding:20},preventOverflow:{padding:10}},CN="The typeValidator argument must be a function with the signature function(props, propName, componentName).",wN="The error message is optional, but must be a string if provided.";function xN(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function kN(e,t){return Object.hasOwnProperty.call(e,t)}function SN(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function TN(e,t){if(typeof e!="function")throw new TypeError(CN);if(t&&typeof t!="string")throw new TypeError(wN)}function H5(e,t,n){return TN(e,n),function(r,i,o){for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];return xN(t,r,i,o)?kN(r,i)?e.apply(void 0,[r,i,o].concat(s)):SN(r,i,o):e.apply(void 0,[r,i,o].concat(s))}}var ve={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},Aa=St.createPortal!==void 0;function Qn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Cd(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Vl(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,o=e.debug,a=o===void 0?!1:o,s=i?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){U.plainObject(l)&&l.key?s.apply(console,[l.key,l.value]):s.apply(console,[l])}):s.apply(console,[n]),console.groupEnd())}function MN(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function DN(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function LN(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(a){n(a),DN(e,t,i)},MN(e,t,i,r)}function $5(){}var z5=(function(e){Ia(n,e);var t=Oa(n);function n(){return Pa(this,n),t.apply(this,arguments)}return Ea(n,[{key:"componentDidMount",value:function(){Qn()&&(this.node||this.appendNode(),Aa||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Qn()&&(Aa||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Qn()||!this.node||(Aa||St.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,o=i.id,a=i.zIndex;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),a&&(this.node.style.zIndex=a),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Qn())return null;var i=this.props,o=i.children,a=i.setRef;if(this.node||this.appendNode(),Aa)return St.createPortal(o,this.node);var s=St.unstable_renderSubtreeIntoContainer(this,o.length>1?v.createElement("div",null,o):o[0],this.node);return a(s),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,a=i.placement,s=i.target;return o?this.renderPortal():s||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return Aa?this.renderReact16():null}}]),n})(v.Component);xt(z5,"propTypes",{children:z.oneOfType([z.element,z.array]),hasChildren:z.bool,id:z.oneOfType([z.string,z.number]),placement:z.string,setRef:z.func.isRequired,target:z.oneOfType([z.object,z.string]),zIndex:z.number});var W5=(function(e){Ia(n,e);var t=Oa(n);function n(){return Pa(this,n),t.apply(this,arguments)}return Ea(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,a=i.styles,s=a.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=s):o.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=s):o.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):o.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,o=i.placement,a=i.setArrowRef,s=i.styles,l=s.arrow,c=l.color,u=l.display,d=l.length,f=l.margin,p=l.position,h=l.spread,g={display:u,position:p},_,m=h,b=d;return o.startsWith("top")?(_="0,0 ".concat(m/2,",").concat(b," ").concat(m,",0"),g.bottom=0,g.marginLeft=f,g.marginRight=f):o.startsWith("bottom")?(_="".concat(m,",").concat(b," ").concat(m/2,",0 0,").concat(b),g.top=0,g.marginLeft=f,g.marginRight=f):o.startsWith("left")?(b=h,m=d,_="0,0 ".concat(m,",").concat(b/2," 0,").concat(b),g.right=0,g.marginTop=f,g.marginBottom=f):o.startsWith("right")&&(b=h,m=d,_="".concat(m,",").concat(b," ").concat(m,",0 0,").concat(b/2),g.left=0,g.marginTop=f,g.marginBottom=f),v.createElement("div",{className:"__floater__arrow",style:this.parentStyle},v.createElement("span",{ref:a,style:g},v.createElement("svg",{width:m,height:b,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v.createElement("polygon",{points:_,fill:c}))))}}]),n})(v.Component);xt(W5,"propTypes",{placement:z.string.isRequired,setArrowRef:z.func.isRequired,styles:z.object.isRequired});var PN=["color","height","width"];function Y5(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,a=V5(n,PN);return v.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},v.createElement("svg",{width:"".concat(o,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},v.createElement("g",null,v.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}Y5.propTypes={handleClick:z.func.isRequired,styles:z.object.isRequired};function U5(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,a=e.showCloseButton,s=e.title,l=e.styles,c={content:v.isValidElement(t)?t:v.createElement("div",{className:"__floater__content",style:l.content},t)};return s&&(c.title=v.isValidElement(s)?s:v.createElement("div",{className:"__floater__title",style:l.title},s)),n&&(c.footer=v.isValidElement(n)?n:v.createElement("div",{className:"__floater__footer",style:l.footer},n)),(a||o)&&!U.boolean(i)&&(c.close=v.createElement(Y5,{styles:l.close,handleClick:r})),v.createElement("div",{className:"__floater__container",style:l.container},c.close,c.title,c.content,c.footer)}U5.propTypes={content:z.node.isRequired,footer:z.node,handleClick:z.func.isRequired,open:z.bool,positionWrapper:z.bool.isRequired,showCloseButton:z.bool.isRequired,styles:z.object.isRequired,title:z.node};var Z5=(function(e){Ia(n,e);var t=Oa(n);function n(){return Pa(this,n),t.apply(this,arguments)}return Ea(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,a=i.component,s=i.placement,l=i.hideArrow,c=i.status,u=i.styles,d=u.arrow.length,f=u.floater,p=u.floaterCentered,h=u.floaterClosing,g=u.floaterOpening,_=u.floaterWithAnimation,m=u.floaterWithComponent,b={};return l||(s.startsWith("top")?b.padding="0 0 ".concat(d,"px"):s.startsWith("bottom")?b.padding="".concat(d,"px 0 0"):s.startsWith("left")?b.padding="0 ".concat(d,"px 0 0"):s.startsWith("right")&&(b.padding="0 0 0 ".concat(d,"px"))),[ve.OPENING,ve.OPEN].indexOf(c)!==-1&&(b=Ue(Ue({},b),g)),c===ve.CLOSING&&(b=Ue(Ue({},b),h)),c===ve.OPEN&&!o&&(b=Ue(Ue({},b),_)),s==="center"&&(b=Ue(Ue({},b),p)),a&&(b=Ue(Ue({},b),m)),Ue(Ue({},f),b)}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.handleClick,s=i.hideArrow,l=i.setFloaterRef,c=i.status,u={},d=["__floater"];return o?v.isValidElement(o)?u.content=v.cloneElement(o,{closeFn:a}):u.content=o({closeFn:a}):u.content=v.createElement(U5,this.props),c===ve.OPEN&&d.push("__floater__open"),s||(u.arrow=v.createElement(W5,this.props)),v.createElement("div",{ref:l,className:d.join(" "),style:this.style},v.createElement("div",{className:"__floater__body"},u.content,u.arrow))}}]),n})(v.Component);xt(Z5,"propTypes",{component:z.oneOfType([z.func,z.element]),content:z.node,disableAnimation:z.bool.isRequired,footer:z.node,handleClick:z.func.isRequired,hideArrow:z.bool.isRequired,open:z.bool,placement:z.string.isRequired,positionWrapper:z.bool.isRequired,setArrowRef:z.func.isRequired,setFloaterRef:z.func.isRequired,showCloseButton:z.bool,status:z.string.isRequired,styles:z.object.isRequired,title:z.node});var q5=(function(e){Ia(n,e);var t=Oa(n);function n(){return Pa(this,n),t.apply(this,arguments)}return Ea(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.handleClick,s=i.handleMouseEnter,l=i.handleMouseLeave,c=i.setChildRef,u=i.setWrapperRef,d=i.style,f=i.styles,p;if(o)if(v.Children.count(o)===1)if(!v.isValidElement(o))p=v.createElement("span",null,o);else{var h=U.function(o.type)?"innerRef":"ref";p=v.cloneElement(v.Children.only(o),xt({},h,c))}else p=o;return p?v.createElement("span",{ref:u,style:Ue(Ue({},f),d),onClick:a,onMouseEnter:s,onMouseLeave:l},p):null}}]),n})(v.Component);xt(q5,"propTypes",{children:z.node,handleClick:z.func.isRequired,handleMouseEnter:z.func.isRequired,handleMouseLeave:z.func.isRequired,setChildRef:z.func.isRequired,setWrapperRef:z.func.isRequired,style:z.object,styles:z.object.isRequired});var EN={zIndex:100};function IN(e){var t=Cn(EN,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var ON=["arrow","flip","offset"],AN=["position","top","right","bottom","left"],wd=(function(e){Ia(n,e);var t=Oa(n);function n(r){var i;return Pa(this,n),i=t.call(this,r),xt(br(i),"setArrowRef",function(o){i.arrowRef=o}),xt(br(i),"setChildRef",function(o){i.childRef=o}),xt(br(i),"setFloaterRef",function(o){i.floaterRef=o}),xt(br(i),"setWrapperRef",function(o){i.wrapperRef=o}),xt(br(i),"handleTransitionEnd",function(){var o=i.state.status,a=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===ve.OPENING?ve.OPEN:ve.IDLE},function(){var s=i.state.status;a(s===ve.OPEN?"open":"close",i.props)})}),xt(br(i),"handleClick",function(){var o=i.props,a=o.event,s=o.open;if(!U.boolean(s)){var l=i.state,c=l.positionWrapper,u=l.status;(i.event==="click"||i.event==="hover"&&c)&&(Vl({title:"click",data:[{event:a,status:u===ve.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),xt(br(i),"handleMouseEnter",function(){var o=i.props,a=o.event,s=o.open;if(!(U.boolean(s)||Cd())){var l=i.state.status;i.event==="hover"&&l===ve.IDLE&&(Vl({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),xt(br(i),"handleMouseLeave",function(){var o=i.props,a=o.event,s=o.eventDelay,l=o.open;if(!(U.boolean(l)||Cd())){var c=i.state,u=c.status,d=c.positionWrapper;i.event==="hover"&&(Vl({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:i.debug}),s?[ve.OPENING,ve.OPEN].indexOf(u)!==-1&&!d&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},s*1e3)):i.toggle(ve.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:ve.INIT,statusWrapper:ve.INIT},i._isMounted=!1,i.hasMounted=!1,Qn()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return Ea(n,[{key:"componentDidMount",value:function(){if(Qn()){var i=this.state.positionWrapper,o=this.props,a=o.children,s=o.open,l=o.target;this._isMounted=!0,Vl({title:"init",data:{hasChildren:!!a,hasTarget:!!l,isControlled:U.boolean(s),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&l&&U.boolean(s)}}},{key:"componentDidUpdate",value:function(i,o){if(Qn()){var a=this.props,s=a.autoOpen,l=a.open,c=a.target,u=a.wrapperOptions,d=hN(o,this.state),f=d.changedFrom,p=d.changed;if(i.open!==l){var h;U.boolean(l)&&(h=l?ve.OPENING:ve.CLOSING),this.toggle(h)}(i.wrapperOptions.position!==u.position||i.target!==c)&&this.changeWrapperPosition(this.props),p("status",ve.IDLE)&&l?this.toggle(ve.OPEN):f("status",ve.INIT,ve.IDLE)&&s&&this.toggle(ve.OPEN),this.popper&&p("status",ve.OPENING)&&this.popper.instance.update(),this.floaterRef&&(p("status",ve.OPENING)||p("status",ve.CLOSING))&&LN(this.floaterRef,"transitionend",this.handleTransitionEnd),p("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Qn()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,a=this.state.positionWrapper,s=this.props,l=s.disableFlip,c=s.getPopper,u=s.hideArrow,d=s.offset,f=s.placement,p=s.wrapperOptions,h=f==="top"||f==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(f==="center")this.setState({status:ve.IDLE});else if(o&&this.floaterRef){var g=this.options,_=g.arrow,m=g.flip,b=g.offset,C=V5(g,ON);new Da(o,this.floaterRef,{placement:f,modifiers:Ue({arrow:Ue({enabled:!u,element:this.arrowRef},_),flip:Ue({enabled:!l,behavior:h},m),offset:Ue({offset:"0, ".concat(d,"px")},b)},C),onCreate:function(k){var S;if(i.popper=k,!((S=i.floaterRef)!==null&&S!==void 0&&S.isConnected)){i.setState({needsUpdate:!0});return}c(k,"floater"),i._isMounted&&i.setState({currentPlacement:k.placement,status:ve.IDLE}),f!==k.placement&&setTimeout(function(){k.instance.update()},1)},onUpdate:function(k){i.popper=k;var S=i.state.currentPlacement;i._isMounted&&k.placement!==S&&i.setState({currentPlacement:k.placement})}})}if(a){var x=U.undefined(p.offset)?0:p.offset;new Da(this.target,this.wrapperRef,{placement:p.placement||f,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(x,"px")},flip:{enabled:!1}},onCreate:function(k){i.wrapperPopper=k,i._isMounted&&i.setState({statusWrapper:ve.IDLE}),c(k,"wrapper"),f!==k.placement&&setTimeout(function(){k.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var o;(o=i.floaterRef)!==null&&o!==void 0&&o.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var o=i.target,a=i.wrapperOptions;this.setState({positionWrapper:a.position&&!!o})}},{key:"toggle",value:function(i){var o=this.state.status,a=o===ve.OPEN?ve.CLOSING:ve.OPENING;U.undefined(i)||(a=i),this.setState({status:a})}},{key:"debug",get:function(){var i=this.props.debug;return i||Qn()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,a=i.event;return a==="hover"&&Cd()&&!o?"click":a}},{key:"options",get:function(){var i=this.props.options;return Cn(vN,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,a=o.status,s=o.positionWrapper,l=o.statusWrapper,c=this.props.styles,u=Cn(IN(c),c);if(s){var d;[ve.IDLE].indexOf(a)===-1||[ve.IDLE].indexOf(l)===-1?d=u.wrapperPosition:d=this.wrapperPopper.styles,u.wrapper=Ue(Ue({},u.wrapper),d)}if(this.target){var f=window.getComputedStyle(this.target);this.wrapperStyles?u.wrapper=Ue(Ue({},u.wrapper),this.wrapperStyles):["relative","static"].indexOf(f.position)===-1&&(this.wrapperStyles={},s||(AN.forEach(function(p){i.wrapperStyles[p]=f[p]}),u.wrapper=Ue(Ue({},u.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return u}},{key:"target",get:function(){if(!Qn())return null;var i=this.props.target;return i?U.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,o=i.currentPlacement,a=i.positionWrapper,s=i.status,l=this.props,c=l.children,u=l.component,d=l.content,f=l.disableAnimation,p=l.footer,h=l.hideArrow,g=l.id,_=l.open,m=l.showCloseButton,b=l.style,C=l.target,x=l.title,w=v.createElement(q5,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:b,styles:this.styles.wrapper},c),k={};return a?k.wrapperInPortal=w:k.wrapperAsChildren=w,v.createElement("span",null,v.createElement(z5,{hasChildren:!!c,id:g,placement:o,setRef:this.setFloaterRef,target:C,zIndex:this.styles.options.zIndex},v.createElement(Z5,{component:u,content:d,disableAnimation:f,footer:p,handleClick:this.handleClick,hideArrow:h||o==="center",open:_,placement:o,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:m,status:s,styles:this.styles,title:x}),k.wrapperInPortal),k.wrapperAsChildren)}}]),n})(v.Component);xt(wd,"propTypes",{autoOpen:z.bool,callback:z.func,children:z.node,component:H5(z.oneOfType([z.func,z.element]),function(e){return!e.content}),content:H5(z.node,function(e){return!e.component}),debug:z.bool,disableAnimation:z.bool,disableFlip:z.bool,disableHoverToClick:z.bool,event:z.oneOf(["hover","click"]),eventDelay:z.number,footer:z.node,getPopper:z.func,hideArrow:z.bool,id:z.oneOfType([z.string,z.number]),offset:z.number,open:z.bool,options:z.object,placement:z.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:z.bool,style:z.object,styles:z.object,target:z.oneOfType([z.object,z.string]),title:z.node,wrapperOptions:z.shape({offset:z.number,placement:z.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:z.bool})}),xt(wd,"defaultProps",{autoOpen:!1,callback:$5,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:$5,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var NN=Object.defineProperty,RN=(e,t,n)=>t in e?NN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,te=(e,t,n)=>RN(e,typeof t!="symbol"?t+"":t,n),Ee={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},kn={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},ue={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},_e={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function Vr(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function G5(e){return e?e.getBoundingClientRect():null}function jN(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((o,a)=>o-a),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function vr(e){if(typeof e=="string")try{return document.querySelector(e)}catch{return null}return e}function FN(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Na(e,t,n){if(!e)return bi();const r=n5(e);if(r){if(r.isSameNode(bi()))return n?document:bi();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",bi()}return r}function Bl(e,t){if(!e)return!1;const n=Na(e,t);return n?!n.isSameNode(bi()):!1}function VN(e){return e.offsetParent!==document.body}function po(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=FN(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?po(e.parentNode,t):!1}function BN(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:i}=getComputedStyle(n);if(r==="none"||i==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function HN(e,t,n){var r,i,o;const a=G5(e),s=Na(e,n),l=Bl(e,n),c=po(e);let u=0,d=(r=a==null?void 0:a.top)!=null?r:0;if(l&&c){const f=(i=e==null?void 0:e.offsetTop)!=null?i:0,p=(o=s==null?void 0:s.scrollTop)!=null?o:0;d=f-p}else s instanceof HTMLElement&&(u=s.scrollTop,!l&&!po(e)&&(d+=u),s.isSameNode(bi())||(d+=bi().scrollTop));return Math.floor(d-t)}function $N(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=n5(e))!=null?r:{};let a=e.getBoundingClientRect().top+o;i&&(Bl(e,n)||VN(e))&&(a-=i);const s=Math.floor(a-t);return s<0?0:s}function bi(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function zN(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:a}=r,s=e>a?e-a:a-e;JO.top(r,e,{duration:s<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?o(l):i())})}var Ra=St.createPortal!==void 0;function K5(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function Hl(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Xn(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=i5(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(v.isValidElement(e)&&!Object.values(e.props).length&&Hl(e.type)==="function"){const a=e.type({});o=Xn(a,t)}else o=i5(n);return o}function WN(e,t){return!J.plainObject(e)||!J.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function YN(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,a,s)=>o+o+a+a+s+s),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function Q5(e){return e.disableBeacon||e.placement==="center"}function X5(){return!["chrome","safari","firefox","opera"].includes(K5())}function vi({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(o=>{J.plainObject(o)&&o.key?i.apply(console,[o.key,o.value]):i.apply(console,[o])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function uJ(){}function UN(e){return Object.keys(e)}function J5(e,...t){if(!J.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function ZN(e,...t){if(!J.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function xd(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(Hl(e)==="string")return r(e);if(!v.isValidElement(e))return e;const{children:i}=e.props;if(Hl(i)==="string"&&i.includes("{step}"))return v.cloneElement(e,{children:r(i)});if(Array.isArray(i))return v.cloneElement(e,{children:i.map(o=>typeof o=="string"?r(o):xd(o,t,n))});if(Hl(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return xd(o,t,n)}return e}function qN(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:a}=e;return!o.disableScrolling&&(!t||i||n===ue.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!po(a))&&r!==n&&[ue.BEACON,ue.TOOLTIP].includes(n)}var GN={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},e9={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},KN={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:e9,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},QN={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},XN={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},ja={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},t9={borderRadius:4,position:"absolute"};function JN(e,t){var n,r,i,o,a;const{floaterProps:s,styles:l}=e,c=Cn((n=t.floaterProps)!=null?n:{},s??{}),u=Cn(l??{},(r=t.styles)!=null?r:{}),d=Cn(XN,u.options||{}),f=t.placement==="center"||t.disableBeacon;let{width:p}=d;window.innerWidth>480&&(p=380),"width"in d&&(p=typeof d.width=="number"&&window.innerWidth<d.width?window.innerWidth-30:d.width);const h={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:d.zIndex},g={beacon:{...ja,display:f?"none":"inline-block",height:d.beaconSize,position:"relative",width:d.beaconSize,zIndex:d.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:d.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${YN(d.primaryColor).join(",")}, 0.2)`,border:`2px solid ${d.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:d.backgroundColor,borderRadius:5,boxSizing:"border-box",color:d.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:p},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...ja,backgroundColor:d.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...ja,color:d.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...ja,color:d.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...ja,color:d.textColor,fontSize:14},overlay:{...h,backgroundColor:d.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...h},overlayLegacyCenter:{...h,backgroundColor:d.overlayColor},spotlight:{...t9,backgroundColor:"gray"},spotlightLegacy:{...t9,boxShadow:`0 0 0 9999px ${d.overlayColor}, ${d.spotlightShadow}`},floaterStyles:{arrow:{color:(a=(o=(i=c==null?void 0:c.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?a:d.arrowColor},options:{zIndex:d.zIndex+100}},options:d};return Cn(g,u)}function eR(e){return ZN(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function ho(e,t){var n,r,i,o,a,s;const l=t??{},c=Cn.all([KN,eR(e),l],{isMergeableObject:J.plainObject}),u=JN(e,c),d=Bl(vr(c.target),c.disableScrollParentFix),f=Cn.all([GN,(n=e.floaterProps)!=null?n:{},(r=c.floaterProps)!=null?r:{}]);return f.offset=c.offset,f.styles=Cn((i=f.styles)!=null?i:{},u.floaterStyles),f.offset+=(a=(o=e.spotlightPadding)!=null?o:c.spotlightPadding)!=null?a:0,c.placementBeacon&&f.wrapperOptions&&(f.wrapperOptions.placement=c.placementBeacon),d&&f.options.preventOverflow&&(f.options.preventOverflow.boundariesElement="window"),{...c,locale:Cn.all([e9,(s=e.locale)!=null?s:{},c.locale||{}]),floaterProps:f,styles:J5(u,"floaterStyles")}}function n9(e,t=!1){return J.plainObject(e)?e.target?!0:(vi({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(vi({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function r9(e,t=!1){return J.array(e)?e.every(n=>n9(n,t)):(vi({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var i9={action:"init",controlled:!1,index:0,lifecycle:ue.INIT,origin:null,size:0,status:_e.IDLE},o9=UN(J5(i9,"controlled","size")),tR=class{constructor(e){te(this,"beaconPopper"),te(this,"tooltipPopper"),te(this,"data",new Map),te(this,"listener"),te(this,"store",new Map),te(this,"addListener",i=>{this.listener=i}),te(this,"setSteps",i=>{const{size:o,status:a}=this.getState(),s={size:i.length,status:a};this.data.set("steps",i),a===_e.WAITING&&!o&&i.length&&(s.status=_e.RUNNING),this.setState(s)}),te(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),te(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),te(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),te(this,"close",(i=null)=>{const{index:o,status:a}=this.getState();a===_e.RUNNING&&this.setState({...this.getNextState({action:Ee.CLOSE,index:o+1,origin:i})})}),te(this,"go",i=>{const{controlled:o,status:a}=this.getState();if(o||a!==_e.RUNNING)return;const s=this.getSteps()[i];this.setState({...this.getNextState({action:Ee.GO,index:i}),status:s?a:_e.FINISHED})}),te(this,"info",()=>this.getState()),te(this,"next",()=>{const{index:i,status:o}=this.getState();o===_e.RUNNING&&this.setState(this.getNextState({action:Ee.NEXT,index:i+1}))}),te(this,"open",()=>{const{status:i}=this.getState();i===_e.RUNNING&&this.setState({...this.getNextState({action:Ee.UPDATE,lifecycle:ue.TOOLTIP})})}),te(this,"prev",()=>{const{index:i,status:o}=this.getState();o===_e.RUNNING&&this.setState({...this.getNextState({action:Ee.PREV,index:i-1})})}),te(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:Ee.RESET,index:0}),status:i?_e.RUNNING:_e.READY})}),te(this,"skip",()=>{const{status:i}=this.getState();i===_e.RUNNING&&this.setState({action:Ee.SKIP,lifecycle:ue.INIT,status:_e.SKIPPED})}),te(this,"start",i=>{const{index:o,size:a}=this.getState();this.setState({...this.getNextState({action:Ee.START,index:J.number(i)?i:o},!0),status:a?_e.RUNNING:_e.WAITING})}),te(this,"stop",(i=!1)=>{const{index:o,status:a}=this.getState();[_e.FINISHED,_e.SKIPPED].includes(a)||this.setState({...this.getNextState({action:Ee.STOP,index:o+(i?1:0)}),status:_e.PAUSED})}),te(this,"update",i=>{var o,a;if(!WN(i,o9))throw new Error(`State is not valid. Valid keys: ${o9.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:Ee.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:Ee.INIT,controlled:J.number(n),continuous:t,index:J.number(n)?n:0,lifecycle:ue.INIT,origin:null,status:r.length?_e.READY:_e.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...i9}}getNextState(e,t=!1){var n,r,i,o,a;const{action:s,controlled:l,index:c,size:u,status:d}=this.getState(),f=J.number(e.index)?e.index:c,p=l&&!t?c:Math.min(Math.max(f,0),u);return{action:(n=e.action)!=null?n:s,controlled:l,index:p,lifecycle:(r=e.lifecycle)!=null?r:ue.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:u,status:p===u?_e.FINISHED:(a=e.status)!=null?a:d}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:o,origin:a=null,size:s,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",a),this.store.set("size",s),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function nR(e){return new tR(e)}function rR({styles:e}){return R.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var iR=rR,oR=class extends R.Component{constructor(){super(...arguments),te(this,"isActive",!1),te(this,"resizeTimeout"),te(this,"scrollTimeout"),te(this,"scrollParent"),te(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),te(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[ue.INIT,ue.BEACON,ue.COMPLETE,ue.ERROR];return t||(e?r.includes(n):n!==ue.TOOLTIP)}),te(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:a}=this.spotlightStyles,s=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,c=s>=o&&s<=o+n,d=l>=r&&l<=r+a&&c;d!==t&&this.updateState({mouseOverSpotlight:d})}),te(this,"handleScroll",()=>{const{target:e}=this.props,t=vr(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else po(t,"sticky")&&this.updateState({})}),te(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=vr(r);this.scrollParent=Na(i??document.body,n,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:o}=this.props,{changed:a}=Il(e,this.props);if(a("target")||a("disableScrollParentFix")){const s=vr(o);this.scrollParent=Na(s??document.body,n,!0)}a("lifecycle",ue.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:s}=this.state;s||this.updateState({showSpotlight:!0})},100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(i&&r===ue.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==ue.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return X5()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:jN(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:a=0,styles:s,target:l}=this.props,c=vr(l),u=G5(c),d=po(c),f=HN(c,a,i);return{...X5()?s.spotlightLegacy:s.spotlight,height:Math.round(((e=u==null?void 0:u.height)!=null?e:0)+a*2),left:Math.round(((t=u==null?void 0:u.left)!=null?t:0)-a),opacity:r?1:0,pointerEvents:o?"none":"auto",position:d?"fixed":"absolute",top:f,transition:"opacity 0.2s",width:Math.round(((n=u==null?void 0:u.width)!=null?n:0)+a*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:o}=this;if(r())return null;let a=n!=="center"&&e&&R.createElement(iR,{styles:o});if(K5()==="safari"){const{mixBlendMode:s,zIndex:l,...c}=i;a=R.createElement("div",{style:{...c}},a),delete i.backgroundColor}return R.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},a)}},aR=class extends R.Component{constructor(){super(...arguments),te(this,"node",null)}componentDidMount(){const{id:e}=this.props;Vr()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Ra||this.renderReact15())}componentDidUpdate(){Vr()&&(Ra||this.renderReact15())}componentWillUnmount(){!Vr()||!this.node||(Ra||es.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!Vr())return;const{children:e}=this.props;this.node&&es.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!Vr()||!Ra)return null;const{children:e}=this.props;return this.node?es.createPortal(e,this.node):null}render(){return Ra?this.renderReact16():null}},sR=class{constructor(e,t){if(te(this,"element"),te(this,"options"),te(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),te(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),te(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),te(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),te(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let o=document.activeElement?r.indexOf(document.activeElement):0;o===-1||!i&&o+1===r.length?o=0:i&&o===0?o=r.length-1:o+=i?-1:1,r[o].focus()}),te(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),te(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),te(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),te(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),te(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},lR=class extends R.Component{constructor(e){if(super(e),te(this,"beacon",null),te(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
826
+ */var Sa=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",dA=(function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Sa&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0})();function fA(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function pA(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},dA))}}var hA=Sa&&window.Promise,mA=hA?fA:pA;function c5(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function yi(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function ld(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Ta(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=yi(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Ta(ld(e))}function u5(e){return e&&e.referenceNode?e.referenceNode:e}var d5=Sa&&!!(window.MSInputMethodContext&&document.documentMode),f5=Sa&&/MSIE 10/.test(navigator.userAgent);function ao(e){return e===11?d5:e===10?f5:d5||f5}function so(e){if(!e)return document.documentElement;for(var t=ao(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&yi(n,"position")==="static"?so(n):n}function _A(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||so(e.firstElementChild)===e}function cd(e){return e.parentNode!==null?cd(e.parentNode):e}function Al(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return _A(a)?a:so(a);var s=cd(e);return s.host?Al(s.host,t):Al(e,cd(t).host)}function lo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function gA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=lo(t,"top"),i=lo(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function p5(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function h5(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ao(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function m5(e){var t=e.body,n=e.documentElement,r=ao(10)&&getComputedStyle(n);return{height:h5("Height",t,n,r),width:h5("Width",t,n,r)}}var yA=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},bA=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),co=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},dn=Object.assign||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};function Fr(e){return dn({},e,{right:e.left+e.width,bottom:e.top+e.height})}function ud(e){var t={};try{if(ao(10)){t=e.getBoundingClientRect();var n=lo(e,"top"),r=lo(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o=e.nodeName==="HTML"?m5(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var d=yi(e);l-=p5(d,"x"),c-=p5(d,"y"),i.width-=l,i.height-=c}return Fr(i)}function dd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=ao(10),i=t.nodeName==="HTML",o=ud(e),a=ud(t),s=Ta(e),l=yi(t),c=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var u=Fr({top:o.top-a.top-c,left:o.left-a.left-d,width:o.width,height:o.height});if(u.marginTop=0,u.marginLeft=0,!r&&i){var f=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);u.top-=c-f,u.bottom-=c-f,u.left-=d-p,u.right-=d-p,u.marginTop=f,u.marginLeft=p}return(r&&!n?t.contains(s):t===s&&s.nodeName!=="BODY")&&(u=gA(u,t)),u}function vA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=dd(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:lo(n),s=t?0:lo(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return Fr(l)}function _5(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(yi(e,"position")==="fixed")return!0;var n=ld(e);return n?_5(n):!1}function g5(e){if(!e||!e.parentElement||ao())return document.documentElement;for(var t=e.parentElement;t&&yi(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function fd(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},a=i?g5(e):Al(e,u5(t));if(r==="viewport")o=vA(a,i);else{var s=void 0;r==="scrollParent"?(s=Ta(ld(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var l=dd(s,a,i);if(s.nodeName==="HTML"&&!_5(a)){var c=m5(e.ownerDocument),d=c.height,u=c.width;o.top+=l.top-l.marginTop,o.bottom=d+l.top,o.left+=l.left-l.marginLeft,o.right=u+l.left}else o=l}n=n||0;var f=typeof n=="number";return o.left+=f?n:n.left||0,o.top+=f?n:n.top||0,o.right-=f?n:n.right||0,o.bottom-=f?n:n.bottom||0,o}function CA(e){var t=e.width,n=e.height;return t*n}function y5(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=fd(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(f){return dn({key:f},s[f],{area:CA(s[f])})}).sort(function(f,p){return p.area-f.area}),c=l.filter(function(f){var p=f.width,h=f.height;return p>=n.clientWidth&&h>=n.clientHeight}),d=c.length>0?c[0].key:l[0].key,u=e.split("-")[1];return d+(u?"-"+u:"")}function b5(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?g5(t):Al(t,u5(n));return dd(n,i,r)}function v5(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function Nl(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function C5(e,t,n){n=n.split("-")[0];var r=v5(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,n===s?i[s]=t[s]-r[c]:i[s]=t[Nl(s)],i}function Ma(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function wA(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Ma(e,function(i){return i[t]===n});return e.indexOf(r)}function w5(e,t,n){var r=n===void 0?e:e.slice(0,wA(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&c5(o)&&(t.offsets.popper=Fr(t.offsets.popper),t.offsets.reference=Fr(t.offsets.reference),t=o(t,i))}),t}function xA(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=b5(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=y5(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=C5(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=w5(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function x5(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function pd(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(typeof document.body.style[o]<"u")return o}return null}function kA(){return this.state.isDestroyed=!0,x5(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[pd("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function k5(e){var t=e.ownerDocument;return t?t.defaultView:window}function S5(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||S5(Ta(o.parentNode),t,n,r),r.push(o)}function SA(e,t,n,r){n.updateBound=r,k5(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Ta(e);return S5(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function TA(){this.state.eventsEnabled||(this.state=SA(this.reference,this.options,this.state,this.scheduleUpdate))}function MA(e,t){return k5(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function DA(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=MA(this.reference,this.state))}function hd(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function md(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&hd(t[n])&&(r="px"),e.style[n]=t[n]+r})}function LA(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function PA(e){return md(e.instance.popper,e.styles),LA(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&md(e.arrowElement,e.arrowStyles),e}function EA(e,t,n,r,i){var o=b5(i,t,e,n.positionFixed),a=y5(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),md(t,{position:n.positionFixed?"fixed":"absolute"}),n}function IA(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(m){return m},l=o(i.width),c=o(r.width),d=["left","right"].indexOf(e.placement)!==-1,u=e.placement.indexOf("-")!==-1,f=l%2===c%2,p=l%2===1&&c%2===1,h=t?d||u||f?o:a:s,g=t?o:s;return{left:h(p&&!u&&t?r.left-1:r.left),top:g(r.top),bottom:g(r.bottom),right:h(r.right)}}var OA=Sa&&/Firefox/i.test(navigator.userAgent);function AA(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=Ma(e.instance.modifiers,function(C){return C.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=o!==void 0?o:t.gpuAcceleration,s=so(e.instance.popper),l=ud(s),c={position:i.position},d=IA(e,window.devicePixelRatio<2||!OA),u=n==="bottom"?"top":"bottom",f=r==="right"?"left":"right",p=pd("transform"),h=void 0,g=void 0;if(u==="bottom"?s.nodeName==="HTML"?g=-s.clientHeight+d.bottom:g=-l.height+d.bottom:g=d.top,f==="right"?s.nodeName==="HTML"?h=-s.clientWidth+d.right:h=-l.width+d.right:h=d.left,a&&p)c[p]="translate3d("+h+"px, "+g+"px, 0)",c[u]=0,c[f]=0,c.willChange="transform";else{var _=u==="bottom"?-1:1,m=f==="right"?-1:1;c[u]=g*_,c[f]=h*m,c.willChange=u+", "+f}var b={"x-placement":e.placement};return e.attributes=dn({},b,e.attributes),e.styles=dn({},c,e.styles),e.arrowStyles=dn({},e.offsets.arrow,e.arrowStyles),e}function T5(e,t,n){var r=Ma(e,function(s){var l=s.name;return l===t}),i=!!r&&e.some(function(s){return s.name===n&&s.enabled&&s.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function NA(e,t){var n;if(!T5(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=["left","right"].indexOf(i)!==-1,c=l?"height":"width",d=l?"Top":"Left",u=d.toLowerCase(),f=l?"left":"top",p=l?"bottom":"right",h=v5(r)[c];s[p]-h<a[u]&&(e.offsets.popper[u]-=a[u]-(s[p]-h)),s[u]+h>a[p]&&(e.offsets.popper[u]+=s[u]+h-a[p]),e.offsets.popper=Fr(e.offsets.popper);var g=s[u]+s[c]/2-h/2,_=yi(e.instance.popper),m=parseFloat(_["margin"+d]),b=parseFloat(_["border"+d+"Width"]),C=g-e.offsets.popper[u]-m-b;return C=Math.max(Math.min(a[c]-h,C),0),e.arrowElement=r,e.offsets.arrow=(n={},co(n,u,Math.round(C)),co(n,f,""),n),e}function RA(e){return e==="end"?"start":e==="start"?"end":e}var M5=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],_d=M5.slice(3);function D5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=_d.indexOf(e),r=_d.slice(n+1).concat(_d.slice(0,n));return t?r.reverse():r}var gd={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function jA(e,t){if(x5(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=fd(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Nl(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case gd.FLIP:a=[r,i];break;case gd.CLOCKWISE:a=D5(r);break;case gd.COUNTERCLOCKWISE:a=D5(r,!0);break;default:a=t.behavior}return a.forEach(function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=Nl(r);var c=e.offsets.popper,d=e.offsets.reference,u=Math.floor,f=r==="left"&&u(c.right)>u(d.left)||r==="right"&&u(c.left)<u(d.right)||r==="top"&&u(c.bottom)>u(d.top)||r==="bottom"&&u(c.top)<u(d.bottom),p=u(c.left)<u(n.left),h=u(c.right)>u(n.right),g=u(c.top)<u(n.top),_=u(c.bottom)>u(n.bottom),m=r==="left"&&p||r==="right"&&h||r==="top"&&g||r==="bottom"&&_,b=["top","bottom"].indexOf(r)!==-1,C=!!t.flipVariations&&(b&&o==="start"&&p||b&&o==="end"&&h||!b&&o==="start"&&g||!b&&o==="end"&&_),x=!!t.flipVariationsByContent&&(b&&o==="start"&&h||b&&o==="end"&&p||!b&&o==="start"&&_||!b&&o==="end"&&g),w=C||x;(f||m||w)&&(e.flipped=!0,(f||m)&&(r=a[l+1]),w&&(o=RA(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=dn({},e.offsets.popper,C5(e.instance.popper,e.offsets.reference,e.placement)),e=w5(e.instance.modifiers,e,"flip"))}),e}function FA(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=["top","bottom"].indexOf(i)!==-1,s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[c]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}function VA(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(a.indexOf("%")===0){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=Fr(s);return l[t]/100*o}else if(a==="vh"||a==="vw"){var c=void 0;return a==="vh"?c=Math.max(document.documentElement.clientHeight,window.innerHeight||0):c=Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*o}else return o}function BA(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(d){return d.trim()}),s=a.indexOf(Ma(a,function(d){return d.search(/,|\s/)!==-1}));a[s]&&a[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=s!==-1?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map(function(d,u){var f=(u===1?!o:o)?"height":"width",p=!1;return d.reduce(function(h,g){return h[h.length-1]===""&&["+","-"].indexOf(g)!==-1?(h[h.length-1]=g,p=!0,h):p?(h[h.length-1]+=g,p=!1,h):h.concat(g)},[]).map(function(h){return VA(h,f,t,n)})}),c.forEach(function(d,u){d.forEach(function(f,p){hd(f)&&(i[u]+=f*(d[p-1]==="-"?-1:1))})}),i}function HA(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return hd(+n)?l=[+n,0]:l=BA(n,o,a,s),s==="left"?(o.top+=l[0],o.left-=l[1]):s==="right"?(o.top+=l[0],o.left+=l[1]):s==="top"?(o.left+=l[0],o.top-=l[1]):s==="bottom"&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function $A(e,t){var n=t.boundariesElement||so(e.instance.popper);e.instance.reference===n&&(n=so(n));var r=pd("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=fd(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var c=t.priority,d=e.offsets.popper,u={primary:function(p){var h=d[p];return d[p]<l[p]&&!t.escapeWithReference&&(h=Math.max(d[p],l[p])),co({},p,h)},secondary:function(p){var h=p==="right"?"left":"top",g=d[h];return d[p]>l[p]&&!t.escapeWithReference&&(g=Math.min(d[h],l[p]-(p==="right"?d.width:d.height))),co({},h,g)}};return c.forEach(function(f){var p=["left","top"].indexOf(f)!==-1?"primary":"secondary";d=dn({},d,u[p](f))}),e.offsets.popper=d,e}function zA(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=["bottom","top"].indexOf(n)!==-1,l=s?"left":"top",c=s?"width":"height",d={start:co({},l,o[l]),end:co({},l,o[l]+o[c]-a[c])};e.offsets.popper=dn({},a,d[r])}return e}function WA(e){if(!T5(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Ma(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function YA(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=["left","right"].indexOf(n)!==-1,s=["top","left"].indexOf(n)===-1;return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=Nl(t),e.offsets.popper=Fr(i),e}var UA={shift:{order:100,enabled:!0,fn:zA},offset:{order:200,enabled:!0,fn:HA,offset:0},preventOverflow:{order:300,enabled:!0,fn:$A,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:FA},arrow:{order:500,enabled:!0,fn:NA,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:jA,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:YA},hide:{order:800,enabled:!0,fn:WA},computeStyle:{order:850,enabled:!0,fn:AA,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:PA,onLoad:EA,gpuAcceleration:void 0}},ZA={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:UA},Da=(function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};yA(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=mA(this.update.bind(this)),this.options=dn({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(dn({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){r.options.modifiers[a]=dn({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return dn({name:a},r.options.modifiers[a])}).sort(function(a,s){return a.order-s.order}),this.modifiers.forEach(function(a){a.enabled&&c5(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return bA(e,[{key:"update",value:function(){return xA.call(this)}},{key:"destroy",value:function(){return kA.call(this)}},{key:"enableEventListeners",value:function(){return TA.call(this)}},{key:"disableEventListeners",value:function(){return DA.call(this)}}]),e})();Da.Utils=(typeof window<"u"?window:global).PopperUtils,Da.placements=M5,Da.Defaults=ZA;var qA=["innerHTML","ownerDocument","style","attributes","nodeValue"],GA=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],KA=["bigint","boolean","null","number","string","symbol","undefined"];function Rl(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(QA(t))return t}function wn(e){return function(t){return Rl(t)===e}}function QA(e){return GA.includes(e)}function uo(e){return function(t){return typeof t===e}}function XA(e){return KA.includes(e)}function U(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(U.array(e))return"Array";if(U.plainFunction(e))return"Function";var t=Rl(e);return t||"Object"}U.array=Array.isArray,U.arrayOf=function(e,t){return!U.array(e)&&!U.function(t)?!1:e.every(function(n){return t(n)})},U.asyncGeneratorFunction=function(e){return Rl(e)==="AsyncGeneratorFunction"},U.asyncFunction=wn("AsyncFunction"),U.bigint=uo("bigint"),U.boolean=function(e){return e===!0||e===!1},U.date=wn("Date"),U.defined=function(e){return!U.undefined(e)},U.domElement=function(e){return U.object(e)&&!U.plainObject(e)&&e.nodeType===1&&U.string(e.nodeName)&&qA.every(function(t){return t in e})},U.empty=function(e){return U.string(e)&&e.length===0||U.array(e)&&e.length===0||U.object(e)&&!U.map(e)&&!U.set(e)&&Object.keys(e).length===0||U.set(e)&&e.size===0||U.map(e)&&e.size===0},U.error=wn("Error"),U.function=uo("function"),U.generator=function(e){return U.iterable(e)&&U.function(e.next)&&U.function(e.throw)},U.generatorFunction=wn("GeneratorFunction"),U.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype},U.iterable=function(e){return!U.nullOrUndefined(e)&&U.function(e[Symbol.iterator])},U.map=wn("Map"),U.nan=function(e){return Number.isNaN(e)},U.null=function(e){return e===null},U.nullOrUndefined=function(e){return U.null(e)||U.undefined(e)},U.number=function(e){return uo("number")(e)&&!U.nan(e)},U.numericString=function(e){return U.string(e)&&e.length>0&&!Number.isNaN(Number(e))},U.object=function(e){return!U.nullOrUndefined(e)&&(U.function(e)||typeof e=="object")},U.oneOf=function(e,t){return U.array(e)?e.indexOf(t)>-1:!1},U.plainFunction=wn("Function"),U.plainObject=function(e){if(Rl(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})},U.primitive=function(e){return U.null(e)||XA(typeof e)},U.promise=wn("Promise"),U.propertyOf=function(e,t,n){if(!U.object(e)||!t)return!1;var r=e[t];return U.function(n)?n(r):U.defined(r)},U.regexp=wn("RegExp"),U.set=wn("Set"),U.string=uo("string"),U.symbol=uo("symbol"),U.undefined=uo("undefined"),U.weakMap=wn("WeakMap"),U.weakSet=wn("WeakSet");function L5(e){return function(t){return typeof t===e}}var JA=L5("function"),eN=function(e){return e===null},P5=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},E5=function(e){return!tN(e)&&!eN(e)&&(JA(e)||typeof e=="object")},tN=L5("undefined"),yd=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function nN(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!Yt(e[r],t[r]))return!1;return!0}function rN(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function iN(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var a=yd(e.entries()),s=a.next();!s.done;s=a.next()){var l=s.value;if(!t.has(l[0]))return!1}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var c=yd(e.entries()),d=c.next();!d.done;d=c.next()){var l=d.value;if(!Yt(l[1],t.get(l[0])))return!1}}catch(u){i={error:u}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return!0}function oN(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=yd(e.entries()),o=i.next();!o.done;o=i.next()){var a=o.value;if(!t.has(a[0]))return!1}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function Yt(e,t){if(e===t)return!0;if(e&&E5(e)&&t&&E5(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return nN(e,t);if(e instanceof Map&&t instanceof Map)return iN(e,t);if(e instanceof Set&&t instanceof Set)return oN(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return rN(e,t);if(P5(e)&&P5(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!Yt(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var aN=["innerHTML","ownerDocument","style","attributes","nodeValue"],sN=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],lN=["bigint","boolean","null","number","string","symbol","undefined"];function jl(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(cN(t))return t}function xn(e){return function(t){return jl(t)===e}}function cN(e){return sN.includes(e)}function fo(e){return function(t){return typeof t===e}}function uN(e){return lN.includes(e)}function B(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(B.array(e))return"Array";if(B.plainFunction(e))return"Function";var t=jl(e);return t||"Object"}B.array=Array.isArray,B.arrayOf=function(e,t){return!B.array(e)&&!B.function(t)?!1:e.every(function(n){return t(n)})},B.asyncGeneratorFunction=function(e){return jl(e)==="AsyncGeneratorFunction"},B.asyncFunction=xn("AsyncFunction"),B.bigint=fo("bigint"),B.boolean=function(e){return e===!0||e===!1},B.date=xn("Date"),B.defined=function(e){return!B.undefined(e)},B.domElement=function(e){return B.object(e)&&!B.plainObject(e)&&e.nodeType===1&&B.string(e.nodeName)&&aN.every(function(t){return t in e})},B.empty=function(e){return B.string(e)&&e.length===0||B.array(e)&&e.length===0||B.object(e)&&!B.map(e)&&!B.set(e)&&Object.keys(e).length===0||B.set(e)&&e.size===0||B.map(e)&&e.size===0},B.error=xn("Error"),B.function=fo("function"),B.generator=function(e){return B.iterable(e)&&B.function(e.next)&&B.function(e.throw)},B.generatorFunction=xn("GeneratorFunction"),B.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype},B.iterable=function(e){return!B.nullOrUndefined(e)&&B.function(e[Symbol.iterator])},B.map=xn("Map"),B.nan=function(e){return Number.isNaN(e)},B.null=function(e){return e===null},B.nullOrUndefined=function(e){return B.null(e)||B.undefined(e)},B.number=function(e){return fo("number")(e)&&!B.nan(e)},B.numericString=function(e){return B.string(e)&&e.length>0&&!Number.isNaN(Number(e))},B.object=function(e){return!B.nullOrUndefined(e)&&(B.function(e)||typeof e=="object")},B.oneOf=function(e,t){return B.array(e)?e.indexOf(t)>-1:!1},B.plainFunction=xn("Function"),B.plainObject=function(e){if(jl(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})},B.primitive=function(e){return B.null(e)||uN(typeof e)},B.promise=xn("Promise"),B.propertyOf=function(e,t,n){if(!B.object(e)||!t)return!1;var r=e[t];return B.function(n)?n(r):B.defined(r)},B.regexp=xn("RegExp"),B.set=xn("Set"),B.string=fo("string"),B.symbol=fo("symbol"),B.undefined=fo("undefined"),B.weakMap=xn("WeakMap"),B.weakSet=xn("WeakSet");function dN(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return B.string(n)||B.array(n)||B.plainObject(n)})}function fN(e,t,n){return j5(e,t)?[e,t].every(B.array)?!e.some(R5(n))&&t.some(R5(n)):[e,t].every(B.plainObject)?!Object.entries(e).some(N5(n))&&Object.entries(t).some(N5(n)):t===n:!1}function I5(e,t,n){var r=n.actual,i=n.key,o=n.previous,a=n.type,s=Kn(e,i),l=Kn(t,i),c=[s,l].every(B.number)&&(a==="increased"?s<l:s>l);return B.undefined(r)||(c=c&&l===r),B.undefined(o)||(c=c&&s===o),c}function O5(e,t,n){var r=n.key,i=n.type,o=n.value,a=Kn(e,r),s=Kn(t,r),l=i==="added"?a:s,c=i==="added"?s:a;if(!B.nullOrUndefined(o)){if(B.defined(l)){if(B.array(l)||B.plainObject(l))return fN(l,c,o)}else return Yt(c,o);return!1}return[a,s].every(B.array)?!c.every(bd(l)):[a,s].every(B.plainObject)?pN(Object.keys(l),Object.keys(c)):![a,s].every(function(d){return B.primitive(d)&&B.defined(d)})&&(i==="added"?!B.defined(a)&&B.defined(s):B.defined(a)&&!B.defined(s))}function A5(e,t,n){var r=n===void 0?{}:n,i=r.key,o=Kn(e,i),a=Kn(t,i);if(!j5(o,a))throw new TypeError("Inputs have different types");if(!dN(o,a))throw new TypeError("Inputs don't have length");return[o,a].every(B.plainObject)&&(o=Object.keys(o),a=Object.keys(a)),[o,a]}function N5(e){return function(t){var n=t[0],r=t[1];return B.array(e)?Yt(e,r)||e.some(function(i){return Yt(i,r)||B.array(r)&&bd(r)(i)}):B.plainObject(e)&&e[n]?!!e[n]&&Yt(e[n],r):Yt(e,r)}}function pN(e,t){return t.some(function(n){return!e.includes(n)})}function R5(e){return function(t){return B.array(e)?e.some(function(n){return Yt(n,t)||B.array(t)&&bd(t)(n)}):Yt(e,t)}}function La(e,t){return B.array(e)?e.some(function(n){return Yt(n,t)}):Yt(e,t)}function bd(e){return function(t){return e.some(function(n){return Yt(n,t)})}}function j5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(B.array)||e.every(B.number)||e.every(B.plainObject)||e.every(B.string)}function Kn(e,t){if(B.plainObject(e)||B.array(e)){if(B.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return B.number(t)?e[t]:e}return e}function hN(e,t){if([e,t].some(B.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(u){return B.plainObject(u)||B.array(u)}))throw new Error("Expected plain objects or array");var n=function(u,f){try{return O5(e,t,{key:u,type:"added",value:f})}catch{return!1}},r=function(u,f,p){try{var h=Kn(e,u),g=Kn(t,u),_=B.defined(f),m=B.defined(p);if(_||m){var b=m?La(p,h):!La(f,h),C=La(f,g);return b&&C}return[h,g].every(B.array)||[h,g].every(B.plainObject)?!Yt(h,g):h!==g}catch{return!1}},i=function(u,f,p){if(!B.defined(u))return!1;try{var h=Kn(e,u),g=Kn(t,u),_=B.defined(p);return La(f,h)&&(_?La(p,g):!_)}catch{return!1}},o=function(u,f){return B.defined(u)?r(u,f):!1},a=function(u,f,p){if(!B.defined(u))return!1;try{return I5(e,t,{key:u,actual:f,previous:p,type:"decreased"})}catch{return!1}},s=function(u){try{var f=A5(e,t,{key:u}),p=f[0],h=f[1];return!!p.length&&!h.length}catch{return!1}},l=function(u){try{var f=A5(e,t,{key:u}),p=f[0],h=f[1];return!p.length&&!!h.length}catch{return!1}},c=function(u,f,p){if(!B.defined(u))return!1;try{return I5(e,t,{key:u,actual:f,previous:p,type:"increased"})}catch{return!1}},d=function(u,f){try{return O5(e,t,{key:u,type:"removed",value:f})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:a,emptied:s,filled:l,increased:c,removed:d}}function F5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F5(Object(n),!0).forEach(function(r){xt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B5(r.key),r)}}function Ea(e,t,n){return t&&mN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xt(e,t,n){return t=B5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ia(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vd(e,t)}function Fl(e){return Fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fl(e)}function vd(e,t){return vd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vd(e,t)}function _N(){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 gN(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}function V5(e,t){if(e==null)return{};var n=gN(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function br(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yN(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return br(e)}function Oa(e){var t=_N();return function(){var r=Fl(e),i;if(t){var o=Fl(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return yN(this,i)}}function bN(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B5(e){var t=bN(e,"string");return typeof t=="symbol"?t:String(t)}var vN={flip:{padding:20},preventOverflow:{padding:10}},CN="The typeValidator argument must be a function with the signature function(props, propName, componentName).",wN="The error message is optional, but must be a string if provided.";function xN(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function kN(e,t){return Object.hasOwnProperty.call(e,t)}function SN(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function TN(e,t){if(typeof e!="function")throw new TypeError(CN);if(t&&typeof t!="string")throw new TypeError(wN)}function H5(e,t,n){return TN(e,n),function(r,i,o){for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];return xN(t,r,i,o)?kN(r,i)?e.apply(void 0,[r,i,o].concat(s)):SN(r,i,o):e.apply(void 0,[r,i,o].concat(s))}}var ve={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},Aa=St.createPortal!==void 0;function Qn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Cd(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Vl(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,o=e.debug,a=o===void 0?!1:o,s=i?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){U.plainObject(l)&&l.key?s.apply(console,[l.key,l.value]):s.apply(console,[l])}):s.apply(console,[n]),console.groupEnd())}function MN(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function DN(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function LN(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(a){n(a),DN(e,t,i)},MN(e,t,i,r)}function $5(){}var z5=(function(e){Ia(n,e);var t=Oa(n);function n(){return Pa(this,n),t.apply(this,arguments)}return Ea(n,[{key:"componentDidMount",value:function(){Qn()&&(this.node||this.appendNode(),Aa||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Qn()&&(Aa||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Qn()||!this.node||(Aa||St.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,o=i.id,a=i.zIndex;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),a&&(this.node.style.zIndex=a),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Qn())return null;var i=this.props,o=i.children,a=i.setRef;if(this.node||this.appendNode(),Aa)return St.createPortal(o,this.node);var s=St.unstable_renderSubtreeIntoContainer(this,o.length>1?v.createElement("div",null,o):o[0],this.node);return a(s),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,a=i.placement,s=i.target;return o?this.renderPortal():s||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return Aa?this.renderReact16():null}}]),n})(v.Component);xt(z5,"propTypes",{children:z.oneOfType([z.element,z.array]),hasChildren:z.bool,id:z.oneOfType([z.string,z.number]),placement:z.string,setRef:z.func.isRequired,target:z.oneOfType([z.object,z.string]),zIndex:z.number});var W5=(function(e){Ia(n,e);var t=Oa(n);function n(){return Pa(this,n),t.apply(this,arguments)}return Ea(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,a=i.styles,s=a.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=s):o.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=s):o.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):o.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,o=i.placement,a=i.setArrowRef,s=i.styles,l=s.arrow,c=l.color,d=l.display,u=l.length,f=l.margin,p=l.position,h=l.spread,g={display:d,position:p},_,m=h,b=u;return o.startsWith("top")?(_="0,0 ".concat(m/2,",").concat(b," ").concat(m,",0"),g.bottom=0,g.marginLeft=f,g.marginRight=f):o.startsWith("bottom")?(_="".concat(m,",").concat(b," ").concat(m/2,",0 0,").concat(b),g.top=0,g.marginLeft=f,g.marginRight=f):o.startsWith("left")?(b=h,m=u,_="0,0 ".concat(m,",").concat(b/2," 0,").concat(b),g.right=0,g.marginTop=f,g.marginBottom=f):o.startsWith("right")&&(b=h,m=u,_="".concat(m,",").concat(b," ").concat(m,",0 0,").concat(b/2),g.left=0,g.marginTop=f,g.marginBottom=f),v.createElement("div",{className:"__floater__arrow",style:this.parentStyle},v.createElement("span",{ref:a,style:g},v.createElement("svg",{width:m,height:b,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v.createElement("polygon",{points:_,fill:c}))))}}]),n})(v.Component);xt(W5,"propTypes",{placement:z.string.isRequired,setArrowRef:z.func.isRequired,styles:z.object.isRequired});var PN=["color","height","width"];function Y5(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,a=V5(n,PN);return v.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},v.createElement("svg",{width:"".concat(o,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},v.createElement("g",null,v.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}Y5.propTypes={handleClick:z.func.isRequired,styles:z.object.isRequired};function U5(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,a=e.showCloseButton,s=e.title,l=e.styles,c={content:v.isValidElement(t)?t:v.createElement("div",{className:"__floater__content",style:l.content},t)};return s&&(c.title=v.isValidElement(s)?s:v.createElement("div",{className:"__floater__title",style:l.title},s)),n&&(c.footer=v.isValidElement(n)?n:v.createElement("div",{className:"__floater__footer",style:l.footer},n)),(a||o)&&!U.boolean(i)&&(c.close=v.createElement(Y5,{styles:l.close,handleClick:r})),v.createElement("div",{className:"__floater__container",style:l.container},c.close,c.title,c.content,c.footer)}U5.propTypes={content:z.node.isRequired,footer:z.node,handleClick:z.func.isRequired,open:z.bool,positionWrapper:z.bool.isRequired,showCloseButton:z.bool.isRequired,styles:z.object.isRequired,title:z.node};var Z5=(function(e){Ia(n,e);var t=Oa(n);function n(){return Pa(this,n),t.apply(this,arguments)}return Ea(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,a=i.component,s=i.placement,l=i.hideArrow,c=i.status,d=i.styles,u=d.arrow.length,f=d.floater,p=d.floaterCentered,h=d.floaterClosing,g=d.floaterOpening,_=d.floaterWithAnimation,m=d.floaterWithComponent,b={};return l||(s.startsWith("top")?b.padding="0 0 ".concat(u,"px"):s.startsWith("bottom")?b.padding="".concat(u,"px 0 0"):s.startsWith("left")?b.padding="0 ".concat(u,"px 0 0"):s.startsWith("right")&&(b.padding="0 0 0 ".concat(u,"px"))),[ve.OPENING,ve.OPEN].indexOf(c)!==-1&&(b=Ue(Ue({},b),g)),c===ve.CLOSING&&(b=Ue(Ue({},b),h)),c===ve.OPEN&&!o&&(b=Ue(Ue({},b),_)),s==="center"&&(b=Ue(Ue({},b),p)),a&&(b=Ue(Ue({},b),m)),Ue(Ue({},f),b)}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.handleClick,s=i.hideArrow,l=i.setFloaterRef,c=i.status,d={},u=["__floater"];return o?v.isValidElement(o)?d.content=v.cloneElement(o,{closeFn:a}):d.content=o({closeFn:a}):d.content=v.createElement(U5,this.props),c===ve.OPEN&&u.push("__floater__open"),s||(d.arrow=v.createElement(W5,this.props)),v.createElement("div",{ref:l,className:u.join(" "),style:this.style},v.createElement("div",{className:"__floater__body"},d.content,d.arrow))}}]),n})(v.Component);xt(Z5,"propTypes",{component:z.oneOfType([z.func,z.element]),content:z.node,disableAnimation:z.bool.isRequired,footer:z.node,handleClick:z.func.isRequired,hideArrow:z.bool.isRequired,open:z.bool,placement:z.string.isRequired,positionWrapper:z.bool.isRequired,setArrowRef:z.func.isRequired,setFloaterRef:z.func.isRequired,showCloseButton:z.bool,status:z.string.isRequired,styles:z.object.isRequired,title:z.node});var q5=(function(e){Ia(n,e);var t=Oa(n);function n(){return Pa(this,n),t.apply(this,arguments)}return Ea(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.handleClick,s=i.handleMouseEnter,l=i.handleMouseLeave,c=i.setChildRef,d=i.setWrapperRef,u=i.style,f=i.styles,p;if(o)if(v.Children.count(o)===1)if(!v.isValidElement(o))p=v.createElement("span",null,o);else{var h=U.function(o.type)?"innerRef":"ref";p=v.cloneElement(v.Children.only(o),xt({},h,c))}else p=o;return p?v.createElement("span",{ref:d,style:Ue(Ue({},f),u),onClick:a,onMouseEnter:s,onMouseLeave:l},p):null}}]),n})(v.Component);xt(q5,"propTypes",{children:z.node,handleClick:z.func.isRequired,handleMouseEnter:z.func.isRequired,handleMouseLeave:z.func.isRequired,setChildRef:z.func.isRequired,setWrapperRef:z.func.isRequired,style:z.object,styles:z.object.isRequired});var EN={zIndex:100};function IN(e){var t=Cn(EN,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var ON=["arrow","flip","offset"],AN=["position","top","right","bottom","left"],wd=(function(e){Ia(n,e);var t=Oa(n);function n(r){var i;return Pa(this,n),i=t.call(this,r),xt(br(i),"setArrowRef",function(o){i.arrowRef=o}),xt(br(i),"setChildRef",function(o){i.childRef=o}),xt(br(i),"setFloaterRef",function(o){i.floaterRef=o}),xt(br(i),"setWrapperRef",function(o){i.wrapperRef=o}),xt(br(i),"handleTransitionEnd",function(){var o=i.state.status,a=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===ve.OPENING?ve.OPEN:ve.IDLE},function(){var s=i.state.status;a(s===ve.OPEN?"open":"close",i.props)})}),xt(br(i),"handleClick",function(){var o=i.props,a=o.event,s=o.open;if(!U.boolean(s)){var l=i.state,c=l.positionWrapper,d=l.status;(i.event==="click"||i.event==="hover"&&c)&&(Vl({title:"click",data:[{event:a,status:d===ve.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),xt(br(i),"handleMouseEnter",function(){var o=i.props,a=o.event,s=o.open;if(!(U.boolean(s)||Cd())){var l=i.state.status;i.event==="hover"&&l===ve.IDLE&&(Vl({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),xt(br(i),"handleMouseLeave",function(){var o=i.props,a=o.event,s=o.eventDelay,l=o.open;if(!(U.boolean(l)||Cd())){var c=i.state,d=c.status,u=c.positionWrapper;i.event==="hover"&&(Vl({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:i.debug}),s?[ve.OPENING,ve.OPEN].indexOf(d)!==-1&&!u&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},s*1e3)):i.toggle(ve.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:ve.INIT,statusWrapper:ve.INIT},i._isMounted=!1,i.hasMounted=!1,Qn()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return Ea(n,[{key:"componentDidMount",value:function(){if(Qn()){var i=this.state.positionWrapper,o=this.props,a=o.children,s=o.open,l=o.target;this._isMounted=!0,Vl({title:"init",data:{hasChildren:!!a,hasTarget:!!l,isControlled:U.boolean(s),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&l&&U.boolean(s)}}},{key:"componentDidUpdate",value:function(i,o){if(Qn()){var a=this.props,s=a.autoOpen,l=a.open,c=a.target,d=a.wrapperOptions,u=hN(o,this.state),f=u.changedFrom,p=u.changed;if(i.open!==l){var h;U.boolean(l)&&(h=l?ve.OPENING:ve.CLOSING),this.toggle(h)}(i.wrapperOptions.position!==d.position||i.target!==c)&&this.changeWrapperPosition(this.props),p("status",ve.IDLE)&&l?this.toggle(ve.OPEN):f("status",ve.INIT,ve.IDLE)&&s&&this.toggle(ve.OPEN),this.popper&&p("status",ve.OPENING)&&this.popper.instance.update(),this.floaterRef&&(p("status",ve.OPENING)||p("status",ve.CLOSING))&&LN(this.floaterRef,"transitionend",this.handleTransitionEnd),p("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Qn()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,a=this.state.positionWrapper,s=this.props,l=s.disableFlip,c=s.getPopper,d=s.hideArrow,u=s.offset,f=s.placement,p=s.wrapperOptions,h=f==="top"||f==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(f==="center")this.setState({status:ve.IDLE});else if(o&&this.floaterRef){var g=this.options,_=g.arrow,m=g.flip,b=g.offset,C=V5(g,ON);new Da(o,this.floaterRef,{placement:f,modifiers:Ue({arrow:Ue({enabled:!d,element:this.arrowRef},_),flip:Ue({enabled:!l,behavior:h},m),offset:Ue({offset:"0, ".concat(u,"px")},b)},C),onCreate:function(k){var S;if(i.popper=k,!((S=i.floaterRef)!==null&&S!==void 0&&S.isConnected)){i.setState({needsUpdate:!0});return}c(k,"floater"),i._isMounted&&i.setState({currentPlacement:k.placement,status:ve.IDLE}),f!==k.placement&&setTimeout(function(){k.instance.update()},1)},onUpdate:function(k){i.popper=k;var S=i.state.currentPlacement;i._isMounted&&k.placement!==S&&i.setState({currentPlacement:k.placement})}})}if(a){var x=U.undefined(p.offset)?0:p.offset;new Da(this.target,this.wrapperRef,{placement:p.placement||f,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(x,"px")},flip:{enabled:!1}},onCreate:function(k){i.wrapperPopper=k,i._isMounted&&i.setState({statusWrapper:ve.IDLE}),c(k,"wrapper"),f!==k.placement&&setTimeout(function(){k.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var o;(o=i.floaterRef)!==null&&o!==void 0&&o.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var o=i.target,a=i.wrapperOptions;this.setState({positionWrapper:a.position&&!!o})}},{key:"toggle",value:function(i){var o=this.state.status,a=o===ve.OPEN?ve.CLOSING:ve.OPENING;U.undefined(i)||(a=i),this.setState({status:a})}},{key:"debug",get:function(){var i=this.props.debug;return i||Qn()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,a=i.event;return a==="hover"&&Cd()&&!o?"click":a}},{key:"options",get:function(){var i=this.props.options;return Cn(vN,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,a=o.status,s=o.positionWrapper,l=o.statusWrapper,c=this.props.styles,d=Cn(IN(c),c);if(s){var u;[ve.IDLE].indexOf(a)===-1||[ve.IDLE].indexOf(l)===-1?u=d.wrapperPosition:u=this.wrapperPopper.styles,d.wrapper=Ue(Ue({},d.wrapper),u)}if(this.target){var f=window.getComputedStyle(this.target);this.wrapperStyles?d.wrapper=Ue(Ue({},d.wrapper),this.wrapperStyles):["relative","static"].indexOf(f.position)===-1&&(this.wrapperStyles={},s||(AN.forEach(function(p){i.wrapperStyles[p]=f[p]}),d.wrapper=Ue(Ue({},d.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return d}},{key:"target",get:function(){if(!Qn())return null;var i=this.props.target;return i?U.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,o=i.currentPlacement,a=i.positionWrapper,s=i.status,l=this.props,c=l.children,d=l.component,u=l.content,f=l.disableAnimation,p=l.footer,h=l.hideArrow,g=l.id,_=l.open,m=l.showCloseButton,b=l.style,C=l.target,x=l.title,w=v.createElement(q5,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:b,styles:this.styles.wrapper},c),k={};return a?k.wrapperInPortal=w:k.wrapperAsChildren=w,v.createElement("span",null,v.createElement(z5,{hasChildren:!!c,id:g,placement:o,setRef:this.setFloaterRef,target:C,zIndex:this.styles.options.zIndex},v.createElement(Z5,{component:d,content:u,disableAnimation:f,footer:p,handleClick:this.handleClick,hideArrow:h||o==="center",open:_,placement:o,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:m,status:s,styles:this.styles,title:x}),k.wrapperInPortal),k.wrapperAsChildren)}}]),n})(v.Component);xt(wd,"propTypes",{autoOpen:z.bool,callback:z.func,children:z.node,component:H5(z.oneOfType([z.func,z.element]),function(e){return!e.content}),content:H5(z.node,function(e){return!e.component}),debug:z.bool,disableAnimation:z.bool,disableFlip:z.bool,disableHoverToClick:z.bool,event:z.oneOf(["hover","click"]),eventDelay:z.number,footer:z.node,getPopper:z.func,hideArrow:z.bool,id:z.oneOfType([z.string,z.number]),offset:z.number,open:z.bool,options:z.object,placement:z.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:z.bool,style:z.object,styles:z.object,target:z.oneOfType([z.object,z.string]),title:z.node,wrapperOptions:z.shape({offset:z.number,placement:z.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:z.bool})}),xt(wd,"defaultProps",{autoOpen:!1,callback:$5,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:$5,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var NN=Object.defineProperty,RN=(e,t,n)=>t in e?NN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,te=(e,t,n)=>RN(e,typeof t!="symbol"?t+"":t,n),Ee={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},kn={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},ue={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},_e={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function Vr(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function G5(e){return e?e.getBoundingClientRect():null}function jN(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((o,a)=>o-a),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function vr(e){if(typeof e=="string")try{return document.querySelector(e)}catch{return null}return e}function FN(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Na(e,t,n){if(!e)return bi();const r=n5(e);if(r){if(r.isSameNode(bi()))return n?document:bi();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",bi()}return r}function Bl(e,t){if(!e)return!1;const n=Na(e,t);return n?!n.isSameNode(bi()):!1}function VN(e){return e.offsetParent!==document.body}function po(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=FN(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?po(e.parentNode,t):!1}function BN(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:i}=getComputedStyle(n);if(r==="none"||i==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function HN(e,t,n){var r,i,o;const a=G5(e),s=Na(e,n),l=Bl(e,n),c=po(e);let d=0,u=(r=a==null?void 0:a.top)!=null?r:0;if(l&&c){const f=(i=e==null?void 0:e.offsetTop)!=null?i:0,p=(o=s==null?void 0:s.scrollTop)!=null?o:0;u=f-p}else s instanceof HTMLElement&&(d=s.scrollTop,!l&&!po(e)&&(u+=d),s.isSameNode(bi())||(u+=bi().scrollTop));return Math.floor(u-t)}function $N(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=n5(e))!=null?r:{};let a=e.getBoundingClientRect().top+o;i&&(Bl(e,n)||VN(e))&&(a-=i);const s=Math.floor(a-t);return s<0?0:s}function bi(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function zN(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:a}=r,s=e>a?e-a:a-e;JO.top(r,e,{duration:s<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?o(l):i())})}var Ra=St.createPortal!==void 0;function K5(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function Hl(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Xn(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=i5(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(v.isValidElement(e)&&!Object.values(e.props).length&&Hl(e.type)==="function"){const a=e.type({});o=Xn(a,t)}else o=i5(n);return o}function WN(e,t){return!J.plainObject(e)||!J.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function YN(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,a,s)=>o+o+a+a+s+s),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function Q5(e){return e.disableBeacon||e.placement==="center"}function X5(){return!["chrome","safari","firefox","opera"].includes(K5())}function vi({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(o=>{J.plainObject(o)&&o.key?i.apply(console,[o.key,o.value]):i.apply(console,[o])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function uJ(){}function UN(e){return Object.keys(e)}function J5(e,...t){if(!J.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function ZN(e,...t){if(!J.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function xd(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(Hl(e)==="string")return r(e);if(!v.isValidElement(e))return e;const{children:i}=e.props;if(Hl(i)==="string"&&i.includes("{step}"))return v.cloneElement(e,{children:r(i)});if(Array.isArray(i))return v.cloneElement(e,{children:i.map(o=>typeof o=="string"?r(o):xd(o,t,n))});if(Hl(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return xd(o,t,n)}return e}function qN(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:a}=e;return!o.disableScrolling&&(!t||i||n===ue.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!po(a))&&r!==n&&[ue.BEACON,ue.TOOLTIP].includes(n)}var GN={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},e9={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},KN={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:e9,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},QN={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},XN={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},ja={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},t9={borderRadius:4,position:"absolute"};function JN(e,t){var n,r,i,o,a;const{floaterProps:s,styles:l}=e,c=Cn((n=t.floaterProps)!=null?n:{},s??{}),d=Cn(l??{},(r=t.styles)!=null?r:{}),u=Cn(XN,d.options||{}),f=t.placement==="center"||t.disableBeacon;let{width:p}=u;window.innerWidth>480&&(p=380),"width"in u&&(p=typeof u.width=="number"&&window.innerWidth<u.width?window.innerWidth-30:u.width);const h={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:u.zIndex},g={beacon:{...ja,display:f?"none":"inline-block",height:u.beaconSize,position:"relative",width:u.beaconSize,zIndex:u.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:u.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${YN(u.primaryColor).join(",")}, 0.2)`,border:`2px solid ${u.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:u.backgroundColor,borderRadius:5,boxSizing:"border-box",color:u.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:p},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...ja,backgroundColor:u.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...ja,color:u.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...ja,color:u.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...ja,color:u.textColor,fontSize:14},overlay:{...h,backgroundColor:u.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...h},overlayLegacyCenter:{...h,backgroundColor:u.overlayColor},spotlight:{...t9,backgroundColor:"gray"},spotlightLegacy:{...t9,boxShadow:`0 0 0 9999px ${u.overlayColor}, ${u.spotlightShadow}`},floaterStyles:{arrow:{color:(a=(o=(i=c==null?void 0:c.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?a:u.arrowColor},options:{zIndex:u.zIndex+100}},options:u};return Cn(g,d)}function eR(e){return ZN(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function ho(e,t){var n,r,i,o,a,s;const l=t??{},c=Cn.all([KN,eR(e),l],{isMergeableObject:J.plainObject}),d=JN(e,c),u=Bl(vr(c.target),c.disableScrollParentFix),f=Cn.all([GN,(n=e.floaterProps)!=null?n:{},(r=c.floaterProps)!=null?r:{}]);return f.offset=c.offset,f.styles=Cn((i=f.styles)!=null?i:{},d.floaterStyles),f.offset+=(a=(o=e.spotlightPadding)!=null?o:c.spotlightPadding)!=null?a:0,c.placementBeacon&&f.wrapperOptions&&(f.wrapperOptions.placement=c.placementBeacon),u&&f.options.preventOverflow&&(f.options.preventOverflow.boundariesElement="window"),{...c,locale:Cn.all([e9,(s=e.locale)!=null?s:{},c.locale||{}]),floaterProps:f,styles:J5(d,"floaterStyles")}}function n9(e,t=!1){return J.plainObject(e)?e.target?!0:(vi({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(vi({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function r9(e,t=!1){return J.array(e)?e.every(n=>n9(n,t)):(vi({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var i9={action:"init",controlled:!1,index:0,lifecycle:ue.INIT,origin:null,size:0,status:_e.IDLE},o9=UN(J5(i9,"controlled","size")),tR=class{constructor(e){te(this,"beaconPopper"),te(this,"tooltipPopper"),te(this,"data",new Map),te(this,"listener"),te(this,"store",new Map),te(this,"addListener",i=>{this.listener=i}),te(this,"setSteps",i=>{const{size:o,status:a}=this.getState(),s={size:i.length,status:a};this.data.set("steps",i),a===_e.WAITING&&!o&&i.length&&(s.status=_e.RUNNING),this.setState(s)}),te(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),te(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),te(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),te(this,"close",(i=null)=>{const{index:o,status:a}=this.getState();a===_e.RUNNING&&this.setState({...this.getNextState({action:Ee.CLOSE,index:o+1,origin:i})})}),te(this,"go",i=>{const{controlled:o,status:a}=this.getState();if(o||a!==_e.RUNNING)return;const s=this.getSteps()[i];this.setState({...this.getNextState({action:Ee.GO,index:i}),status:s?a:_e.FINISHED})}),te(this,"info",()=>this.getState()),te(this,"next",()=>{const{index:i,status:o}=this.getState();o===_e.RUNNING&&this.setState(this.getNextState({action:Ee.NEXT,index:i+1}))}),te(this,"open",()=>{const{status:i}=this.getState();i===_e.RUNNING&&this.setState({...this.getNextState({action:Ee.UPDATE,lifecycle:ue.TOOLTIP})})}),te(this,"prev",()=>{const{index:i,status:o}=this.getState();o===_e.RUNNING&&this.setState({...this.getNextState({action:Ee.PREV,index:i-1})})}),te(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:Ee.RESET,index:0}),status:i?_e.RUNNING:_e.READY})}),te(this,"skip",()=>{const{status:i}=this.getState();i===_e.RUNNING&&this.setState({action:Ee.SKIP,lifecycle:ue.INIT,status:_e.SKIPPED})}),te(this,"start",i=>{const{index:o,size:a}=this.getState();this.setState({...this.getNextState({action:Ee.START,index:J.number(i)?i:o},!0),status:a?_e.RUNNING:_e.WAITING})}),te(this,"stop",(i=!1)=>{const{index:o,status:a}=this.getState();[_e.FINISHED,_e.SKIPPED].includes(a)||this.setState({...this.getNextState({action:Ee.STOP,index:o+(i?1:0)}),status:_e.PAUSED})}),te(this,"update",i=>{var o,a;if(!WN(i,o9))throw new Error(`State is not valid. Valid keys: ${o9.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:Ee.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:Ee.INIT,controlled:J.number(n),continuous:t,index:J.number(n)?n:0,lifecycle:ue.INIT,origin:null,status:r.length?_e.READY:_e.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...i9}}getNextState(e,t=!1){var n,r,i,o,a;const{action:s,controlled:l,index:c,size:d,status:u}=this.getState(),f=J.number(e.index)?e.index:c,p=l&&!t?c:Math.min(Math.max(f,0),d);return{action:(n=e.action)!=null?n:s,controlled:l,index:p,lifecycle:(r=e.lifecycle)!=null?r:ue.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:d,status:p===d?_e.FINISHED:(a=e.status)!=null?a:u}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:o,origin:a=null,size:s,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",a),this.store.set("size",s),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function nR(e){return new tR(e)}function rR({styles:e}){return R.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var iR=rR,oR=class extends R.Component{constructor(){super(...arguments),te(this,"isActive",!1),te(this,"resizeTimeout"),te(this,"scrollTimeout"),te(this,"scrollParent"),te(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),te(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[ue.INIT,ue.BEACON,ue.COMPLETE,ue.ERROR];return t||(e?r.includes(n):n!==ue.TOOLTIP)}),te(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:a}=this.spotlightStyles,s=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,c=s>=o&&s<=o+n,u=l>=r&&l<=r+a&&c;u!==t&&this.updateState({mouseOverSpotlight:u})}),te(this,"handleScroll",()=>{const{target:e}=this.props,t=vr(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else po(t,"sticky")&&this.updateState({})}),te(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=vr(r);this.scrollParent=Na(i??document.body,n,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:o}=this.props,{changed:a}=Il(e,this.props);if(a("target")||a("disableScrollParentFix")){const s=vr(o);this.scrollParent=Na(s??document.body,n,!0)}a("lifecycle",ue.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:s}=this.state;s||this.updateState({showSpotlight:!0})},100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(i&&r===ue.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==ue.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return X5()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:jN(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:a=0,styles:s,target:l}=this.props,c=vr(l),d=G5(c),u=po(c),f=HN(c,a,i);return{...X5()?s.spotlightLegacy:s.spotlight,height:Math.round(((e=d==null?void 0:d.height)!=null?e:0)+a*2),left:Math.round(((t=d==null?void 0:d.left)!=null?t:0)-a),opacity:r?1:0,pointerEvents:o?"none":"auto",position:u?"fixed":"absolute",top:f,transition:"opacity 0.2s",width:Math.round(((n=d==null?void 0:d.width)!=null?n:0)+a*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:o}=this;if(r())return null;let a=n!=="center"&&e&&R.createElement(iR,{styles:o});if(K5()==="safari"){const{mixBlendMode:s,zIndex:l,...c}=i;a=R.createElement("div",{style:{...c}},a),delete i.backgroundColor}return R.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},a)}},aR=class extends R.Component{constructor(){super(...arguments),te(this,"node",null)}componentDidMount(){const{id:e}=this.props;Vr()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Ra||this.renderReact15())}componentDidUpdate(){Vr()&&(Ra||this.renderReact15())}componentWillUnmount(){!Vr()||!this.node||(Ra||es.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!Vr())return;const{children:e}=this.props;this.node&&es.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!Vr()||!Ra)return null;const{children:e}=this.props;return this.node?es.createPortal(e,this.node):null}render(){return Ra?this.renderReact16():null}},sR=class{constructor(e,t){if(te(this,"element"),te(this,"options"),te(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),te(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),te(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),te(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),te(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let o=document.activeElement?r.indexOf(document.activeElement):0;o===-1||!i&&o+1===r.length?o=0:i&&o===0?o=r.length-1:o+=i?-1:1,r[o].focus()}),te(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),te(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),te(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),te(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),te(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},lR=class extends R.Component{constructor(e){if(super(e),te(this,"beacon",null),te(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
827
827
  @keyframes joyride-beacon-inner {
828
828
  20% {
829
829
  opacity: 0.9;
@@ -849,7 +849,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
849
849
  transform: scale(1);
850
850
  }
851
851
  }
852
- `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;setTimeout(()=>{J.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:a,step:s,styles:l}=this.props,c=Xn(i.open),u={"aria-label":c,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:c};let d;if(e){const f=e;d=R.createElement(f,{continuous:t,index:n,isLastStep:r,size:a,step:s,...u})}else d=R.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...u},R.createElement("span",{style:l.beaconInner}),R.createElement("span",{style:l.beaconOuter}));return d}};function cR({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return v.createElement("button",{style:o,type:"button",...t},v.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",null,v.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var uR=cR;function dR(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:s,tooltipProps:l}=e,{content:c,hideBackButton:u,hideCloseButton:d,hideFooter:f,showSkipButton:p,styles:h,title:g}=s,_={};return _.primary=R.createElement("button",{"data-test-id":"button-primary",style:h.buttonNext,type:"button",...o}),p&&!i&&(_.skip=R.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:h.buttonSkip,type:"button",...a})),!u&&r>0&&(_.back=R.createElement("button",{"data-test-id":"button-back",style:h.buttonBack,type:"button",...t})),_.close=!d&&R.createElement(uR,{"data-test-id":"button-close",styles:h.buttonClose,...n}),R.createElement("div",{key:"JoyrideTooltip","aria-label":Xn(g??c),className:"react-joyride__tooltip",style:h.tooltip,...l},R.createElement("div",{style:h.tooltipContainer},g&&R.createElement("h1",{"aria-label":Xn(g),style:h.tooltipTitle},g),R.createElement("div",{style:h.tooltipContent},c)),!f&&R.createElement("div",{style:h.tooltipFooter},R.createElement("div",{style:h.tooltipFooterSpacer},_.skip),_.back,_.primary),_.close)}var fR=dR,pR=class extends R.Component{constructor(){super(...arguments),te(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),te(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),te(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),te(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),te(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:a,close:s,last:l,next:c,nextLabelWithProgress:u,skip:d}=o.locale,f=Xn(a),p=Xn(s),h=Xn(l),g=Xn(c),_=Xn(d);let m=s,b=p;if(e){if(m=c,b=g,o.showProgress&&!n){const C=Xn(u,{step:t+1,steps:i});m=xd(u,t+1,i),b=C}n&&(m=l,b=h)}return{backProps:{"aria-label":f,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:f},closeProps:{"aria-label":p,children:s,"data-action":"close",onClick:this.handleClickClose,role:"button",title:p},primaryProps:{"aria-label":b,children:m,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:b},skipProps:{"aria-label":_,children:d,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:_},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:s,...l}=o;let c;if(s){const u={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},d=s;c=R.createElement(d,{...u})}else c=R.createElement(fR,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return c}},hR=class extends R.Component{constructor(){super(...arguments),te(this,"scope",null),te(this,"tooltip",null),te(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:ue.TOOLTIP})}),te(this,"setTooltipRef",e=>{this.tooltip=e}),te(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||o.placement==="center")&&i===ue.INIT&&a.update({action:r,lifecycle:ue.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),te(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return R.createElement(pR,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;vi({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:a,helpers:s,index:l,lifecycle:c,shouldScroll:u,status:d,step:f,store:p}=this.props,{changed:h,changedFrom:g}=Il(e,this.props),_=s.info(),m=i&&n!==Ee.CLOSE&&(l>0||n===Ee.PREV),b=h("action")||h("index")||h("lifecycle")||h("status"),C=g("lifecycle",[ue.TOOLTIP,ue.INIT],ue.INIT),x=h("action",[Ee.NEXT,Ee.PREV,Ee.SKIP,Ee.CLOSE]),w=o&&l===e.index;if(x&&(C||w)&&r({..._,index:e.index,lifecycle:ue.COMPLETE,step:e.step,type:kn.STEP_AFTER}),f.placement==="center"&&d===_e.RUNNING&&h("index")&&n!==Ee.START&&c===ue.INIT&&p.update({lifecycle:ue.READY}),b){const k=vr(f.target),S=!!k;S&&BN(k)?(g("status",_e.READY,_e.RUNNING)||g("lifecycle",ue.INIT,ue.READY))&&r({..._,step:f,type:kn.STEP_BEFORE}):(console.warn(S?"Target not visible":"Target not mounted",f),r({..._,type:kn.TARGET_NOT_FOUND,step:f}),o||p.update({index:l+(n===Ee.PREV?-1:1)}))}g("lifecycle",ue.INIT,ue.READY)&&p.update({lifecycle:Q5(f)||m?ue.TOOLTIP:ue.BEACON}),h("index")&&vi({title:`step:${c}`,data:[{key:"props",value:this.props}],debug:a}),h("lifecycle",ue.BEACON)&&r({..._,step:f,type:kn.BEACON}),h("lifecycle",ue.TOOLTIP)&&(r({..._,step:f,type:kn.TOOLTIP}),u&&this.tooltip&&(this.scope=new sR(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),g("lifecycle",[ue.TOOLTIP,ue.INIT],ue.INIT)&&((t=this.scope)==null||t.removeScope(),p.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return Q5(t)||e===ue.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,s=vr(a.target);return!n9(a)||!J.domElement(s)?null:R.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},R.createElement(wd,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},R.createElement(lR,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:a,styles:a.styles})))}},a9=class extends R.Component{constructor(e){super(e),te(this,"helpers"),te(this,"store"),te(this,"callback",a=>{const{callback:s}=this.props;J.function(s)&&s(a)}),te(this,"handleKeyboard",a=>{const{index:s,lifecycle:l}=this.state,{steps:c}=this.props,u=c[s];l===ue.TOOLTIP&&a.code==="Escape"&&u&&!u.disableCloseOnEsc&&this.store.close("keyboard")}),te(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:s}=this.props;ho(this.props,s[a]).disableOverlayClose||this.helpers.close("overlay")}),te(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=nR({...e,controlled:r&&J.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;vi({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!Vr())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;r9(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!Vr())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:a,run:s,stepIndex:l,steps:c}=this.props,{stepIndex:u,steps:d}=e,{reset:f,setSteps:p,start:h,stop:g,update:_}=this.store,{changed:m}=Il(e,this.props),{changed:b,changedFrom:C}=Il(t,this.state),x=ho(this.props,c[i]),w=!It(d,c),k=J.number(l)&&m("stepIndex"),S=vr(x.target);if(w&&(r9(c,a)?p(c):console.warn("Steps are not valid",c)),m("run")&&(s?h(l):g()),k){let T=J.number(u)&&u<l?Ee.NEXT:Ee.PREV;n===Ee.STOP&&(T=Ee.START),[_e.FINISHED,_e.SKIPPED].includes(o)||_({action:n===Ee.CLOSE?Ee.CLOSE:T,index:l,lifecycle:ue.INIT})}!r&&o===_e.RUNNING&&i===0&&!S&&(this.store.update({index:i+1}),this.callback({...this.state,type:kn.TARGET_NOT_FOUND,step:x}));const M={...this.state,index:i,step:x};if(b("action",[Ee.NEXT,Ee.PREV,Ee.SKIP,Ee.CLOSE])&&b("status",_e.PAUSED)){const T=ho(this.props,c[t.index]);this.callback({...M,index:t.index,lifecycle:ue.COMPLETE,step:T,type:kn.STEP_AFTER})}if(b("status",[_e.FINISHED,_e.SKIPPED])){const T=ho(this.props,c[t.index]);r||this.callback({...M,index:t.index,lifecycle:ue.COMPLETE,step:T,type:kn.STEP_AFTER}),this.callback({...M,type:kn.TOUR_END,step:T,index:t.index}),f()}else C("status",[_e.IDLE,_e.READY],_e.RUNNING)?this.callback({...M,type:kn.TOUR_START}):(b("status")||b("action",Ee.RESET))&&this.callback({...M,type:kn.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:a,scrollOffset:s=20,scrollToFirstStep:l=!1,steps:c}=this.props,u=ho(this.props,c[t]),d=vr(u.target),f=qN({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:u,target:d});if(r===_e.RUNNING&&f){const p=Bl(d,o),h=Na(d,o);let g=Math.floor($N(d,s,o))||0;vi({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const _=this.store.getPopper("beacon"),m=this.store.getPopper("tooltip");if(n===ue.BEACON&&_){const{offsets:b,placement:C}=_;!["bottom"].includes(C)&&!p&&(g=Math.floor(b.popper.top-s))}else if(n===ue.TOOLTIP&&m){const{flipped:b,offsets:C,placement:x}=m;["top","right","left"].includes(x)&&!b&&!p?g=Math.floor(C.popper.top-s):g-=u.spotlightPadding}g=g>=0?g:0,r===_e.RUNNING&&zN(g,{element:h,duration:a}).then(()=>{setTimeout(()=>{var b;(b=this.store.getPopper("tooltip"))==null||b.instance.update()},10)})}}render(){if(!Vr())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:s}=this.props,l=n===_e.RUNNING,c={};if(l&&s[e]){const u=ho(this.props,s[e]);c.step=R.createElement(hR,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!u.disableScrolling&&(e!==0||a),step:u,store:this.store}),c.overlay=R.createElement(aR,{id:"react-joyride-portal"},R.createElement(oR,{...u,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return R.createElement("div",{className:"react-joyride"},c.step,c.overlay)}};te(a9,"defaultProps",QN);var mR=a9;const mo={hotspot:"_hotspot_q7k3d_1",hotspot_header:"_hotspot_header_q7k3d_8",hotspotClose:"_hotspotClose_q7k3d_12",hotspotTitle:"_hotspotTitle_q7k3d_28",hotspot_content:"_hotspot_content_q7k3d_31",hotspot_footer:"_hotspot_footer_q7k3d_38"},_R=({step:e,tooltipProps:t})=>{const{className:n,closeLabel:r,onClose:i}=e.data;return y.jsxs("section",{...t,"aria-modal":void 0,className:E(mo.hotspot,n),children:[y.jsxs("header",{className:mo.hotspot_header,children:[y.jsx("button",{type:"button","aria-label":r,className:mo.hotspotClose,onClick:i,children:y.jsx(ie,{name:"close",size:"md",color:"neutral-70"})}),e.title&&y.jsx(yt,{type:"h2",className:mo.hotspotTitle,children:e.title})]}),y.jsx("div",{className:mo.hotspot_content,children:e.content}),y.jsx("footer",{className:mo.hotspot_footer,children:y.jsx(Gr,{variant:"primary",onClick:i,children:r})})]})},gR=v.forwardRef(function({continuous:t,index:n,isLastStep:r,size:i,step:o,title:a,...s},l){const{beacon:c}=o.data;return c?y.jsx(ed,{...s,ref:l,label:c.label,className:c.className}):null}),s9=e=>{const{className:t,closeLabel:n,content:r,isOpen:i,onClose:o,onOpen:a,placement:s="bottom",showBeacon:l=!1,spotlightPadding:c=8,target:u,title:d,zIndex:f=1e3}=e,p={className:t,closeLabel:n,onClose:o,...e.showBeacon&&{beacon:{className:e.beaconClassName,label:e.beaconLabel}}},[h,g]=v.useState(!1),_=({lifecycle:m})=>{g(m==="tooltip"),m==="tooltip"&&(a==null||a())};return v.useEffect(()=>{if(!h)return;const m=({key:b})=>b==="Escape"&&o();return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[h,o]),y.jsx(mR,{beaconComponent:l?gR:void 0,callback:_,continuous:!1,disableCloseOnEsc:!0,disableOverlayClose:!0,disableScrolling:!0,hideCloseButton:!0,run:i,stepIndex:0,steps:[{content:r,data:p,disableBeacon:!l,placement:s,spotlightPadding:c,target:u,title:d}],styles:{options:{arrowColor:"var(--color-neutral-00)",overlayColor:"var(--color-gray-90-70)",zIndex:f}},tooltipComponent:_R})};s9.prototype={avocado:"Hotspot"};const yR={sidebarMenu:"_sidebarMenu_tjkbs_1"},l9=({isOpen:e=!1,origin:t="left",children:n,closeOnOverlayClick:r=!0,heightGap:i,onClose:o})=>y.jsx(H2,{isOpen:e,origin:t,contentClassName:yR.sidebarMenu,closeOnOverlayClick:r,heightGap:i,onClose:()=>o==null?void 0:o(),children:n}),kd=v.createContext({});function Sd(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const c9=typeof window<"u"?v.useLayoutEffect:v.useEffect,$l=v.createContext(null);function Td(e,t){e.indexOf(t)===-1&&e.push(t)}function zl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Jn=(e,t,n)=>n>t?t:n<e?e:n;let Md=()=>{};const Br={},u9=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function d9(e){return typeof e=="object"&&e!==null}const f9=e=>/^0[^.\s]+$/u.test(e);function p9(e){let t;return()=>(t===void 0&&(t=e()),t)}const fn=e=>e,bR=(e,t)=>n=>t(e(n)),Fa=(...e)=>e.reduce(bR),Va=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Dd{constructor(){this.subscriptions=[]}add(t){return Td(this.subscriptions,t),()=>zl(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const en=e=>e*1e3,pn=e=>e/1e3;function h9(e,t){return t?e*(1e3/t):0}const m9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,vR=1e-7,CR=12;function wR(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=m9(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>vR&&++s<CR);return a}function Ba(e,t,n,r){if(e===t&&n===r)return fn;const i=o=>wR(o,0,1,e,n);return o=>o===0||o===1?o:m9(i(o),t,r)}const _9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,g9=e=>t=>1-e(1-t),y9=Ba(.33,1.53,.69,.99),Ld=g9(y9),b9=_9(Ld),v9=e=>e>=1?1:(e*=2)<1?.5*Ld(e):.5*(2-Math.pow(2,-10*(e-1))),Pd=e=>1-Math.sin(Math.acos(e)),C9=g9(Pd),w9=_9(Pd),xR=Ba(.42,0,1,1),kR=Ba(0,0,.58,1),x9=Ba(.42,0,.58,1),SR=e=>Array.isArray(e)&&typeof e[0]!="number",k9=e=>Array.isArray(e)&&typeof e[0]=="number",TR={linear:fn,easeIn:xR,easeInOut:x9,easeOut:kR,circIn:Pd,circInOut:w9,circOut:C9,backIn:Ld,backInOut:b9,backOut:y9,anticipate:v9},MR=e=>typeof e=="string",S9=e=>{if(k9(e)){Md(e.length===4);const[t,n,r,i]=e;return Ba(t,n,r,i)}else if(MR(e))return TR[e];return e},Wl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function DR(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(u){a.has(u)&&(c.schedule(u),e()),u(s)}const c={schedule:(u,d=!1,f=!1)=>{const h=f&&i?n:r;return d&&a.add(u),h.add(u),u},cancel:u=>{r.delete(u),a.delete(u)},process:u=>{if(s=u,i){o=!0;return}i=!0;const d=n;n=r,r=d,n.forEach(l),n.clear(),i=!1,o&&(o=!1,c.process(u))}};return c}const LR=40;function T9(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Wl.reduce((C,x)=>(C[x]=DR(o),C),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:p,postRender:h}=a,g=()=>{const C=Br.useManualTiming,x=C?i.timestamp:performance.now();n=!1,C||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,LR),1)),i.timestamp=x,i.isProcessing=!0,s.process(i),l.process(i),c.process(i),u.process(i),d.process(i),f.process(i),p.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},_=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:Wl.reduce((C,x)=>{const w=a[x];return C[x]=(k,S=!1,M=!1)=>(n||_(),w.schedule(k,S,M)),C},{}),cancel:C=>{for(let x=0;x<Wl.length;x++)a[Wl[x]].cancel(C)},state:i,steps:a}}const{schedule:Ve,cancel:Hr,state:_t,steps:Ed}=T9(typeof requestAnimationFrame<"u"?requestAnimationFrame:fn,!0);let Yl;function PR(){Yl=void 0}const Ot={now:()=>(Yl===void 0&&Ot.set(_t.isProcessing||Br.useManualTiming?_t.timestamp:performance.now()),Yl),set:e=>{Yl=e,queueMicrotask(PR)}},M9=e=>t=>typeof t=="string"&&t.startsWith(e),D9=M9("--"),ER=M9("var(--"),Id=e=>ER(e)?IR.test(e.split("/*")[0].trim()):!1,IR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function L9(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const _o={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ha={..._o,transform:e=>Jn(0,1,e)},Ul={..._o,default:1},$a=e=>Math.round(e*1e5)/1e5,Od=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function OR(e){return e==null}const AR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ad=(e,t)=>n=>!!(typeof n=="string"&&AR.test(n)&&n.startsWith(e)||t&&!OR(n)&&Object.prototype.hasOwnProperty.call(n,t)),P9=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,s]=r.match(Od);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},NR=e=>Jn(0,255,e),Nd={..._o,transform:e=>Math.round(NR(e))},Ci={test:Ad("rgb","red"),parse:P9("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Nd.transform(e)+", "+Nd.transform(t)+", "+Nd.transform(n)+", "+$a(Ha.transform(r))+")"};function RR(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Rd={test:Ad("#"),parse:RR,transform:Ci.transform},za=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$r=za("deg"),er=za("%"),ee=za("px"),jR=za("vh"),FR=za("vw"),E9={...er,parse:e=>er.parse(e)/100,transform:e=>er.transform(e*100)},go={test:Ad("hsl","hue"),parse:P9("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+er.transform($a(t))+", "+er.transform($a(n))+", "+$a(Ha.transform(r))+")"},st={test:e=>Ci.test(e)||Rd.test(e)||go.test(e),parse:e=>Ci.test(e)?Ci.parse(e):go.test(e)?go.parse(e):Rd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ci.transform(e):go.transform(e),getAnimatableNone:e=>{const t=st.parse(e);return t.alpha=0,st.transform(t)}},VR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function BR(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Od))==null?void 0:t.length)||0)+(((n=e.match(VR))==null?void 0:n.length)||0)>0}const I9="number",O9="color",HR="var",$R="var(",A9="${}",zR=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function yo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(zR,l=>(st.test(l)?(r.color.push(o),i.push(O9),n.push(st.parse(l))):l.startsWith($R)?(r.var.push(o),i.push(HR),n.push(l)):(r.number.push(o),i.push(I9),n.push(parseFloat(l))),++o,A9)).split(A9);return{values:n,split:s,indexes:r,types:i}}function WR(e){return yo(e).values}function N9({split:e,types:t}){const n=e.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],r[o]!==void 0){const a=t[o];a===I9?i+=$a(r[o]):a===O9?i+=st.transform(r[o]):i+=r[o]}return i}}function YR(e){return N9(yo(e))}const UR=e=>typeof e=="number"?0:st.test(e)?st.getAnimatableNone(e):e,ZR=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:UR(e);function qR(e){const t=yo(e);return N9(t)(t.values.map((r,i)=>ZR(r,t.split[i])))}const Sn={test:BR,parse:WR,createTransformer:YR,getAnimatableNone:qR};function jd(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 GR({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=jd(l,s,e+1/3),o=jd(l,s,e),a=jd(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Zl(e,t){return n=>n>0?t:e}const ze=(e,t,n)=>e+(t-e)*n,Fd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},KR=[Rd,Ci,go],QR=e=>KR.find(t=>t.test(e));function R9(e){const t=QR(e);if(!t)return!1;let n=t.parse(e);return t===go&&(n=GR(n)),n}const j9=(e,t)=>{const n=R9(e),r=R9(t);if(!n||!r)return Zl(e,t);const i={...n};return o=>(i.red=Fd(n.red,r.red,o),i.green=Fd(n.green,r.green,o),i.blue=Fd(n.blue,r.blue,o),i.alpha=ze(n.alpha,r.alpha,o),Ci.transform(i))},Vd=new Set(["none","hidden"]);function XR(e,t){return Vd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function JR(e,t){return n=>ze(e,t,n)}function Bd(e){return typeof e=="number"?JR:typeof e=="string"?Id(e)?Zl:st.test(e)?j9:nj:Array.isArray(e)?F9:typeof e=="object"?st.test(e)?j9:ej:Zl}function F9(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Bd(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function ej(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Bd(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function tj(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],a=e.indexes[o][r[o]],s=e.values[a]??0;n[i]=s,r[o]++}return n}const nj=(e,t)=>{const n=Sn.createTransformer(t),r=yo(e),i=yo(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Vd.has(e)&&!i.values.length||Vd.has(t)&&!r.values.length?XR(e,t):Fa(F9(tj(r,i),i.values),n):Zl(e,t)};function V9(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ze(e,t,n):Bd(e)(e,t)}const rj=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ve.update(t,n),stop:()=>Hr(t),now:()=>_t.isProcessing?_t.timestamp:Ot.now()}},B9=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},ql=2e4;function Hd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ql;)t+=n,r=e.next(t);return t>=ql?1/0:t}function ij(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Hd(r),ql);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:pn(i)}}const Xe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function $d(e,t){return e*Math.sqrt(1-t*t)}const oj=12;function aj(e,t,n){let r=n;for(let i=1;i<oj;i++)r=r-e(r)/t(r);return r}const zd=.001;function sj({duration:e=Xe.duration,bounce:t=Xe.bounce,velocity:n=Xe.velocity,mass:r=Xe.mass}){let i,o,a=1-t;a=Jn(Xe.minDamping,Xe.maxDamping,a),e=Jn(Xe.minDuration,Xe.maxDuration,pn(e)),a<1?(i=c=>{const u=c*a,d=u*e,f=u-n,p=$d(c,a),h=Math.exp(-d);return zd-f/p*h},o=c=>{const d=c*a*e,f=d*n+n,p=Math.pow(a,2)*Math.pow(c,2)*e,h=Math.exp(-d),g=$d(Math.pow(c,2),a);return(-i(c)+zd>0?-1:1)*((f-p)*h)/g}):(i=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-zd+u*d},o=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const s=5/e,l=aj(i,o,s);if(e=en(e),isNaN(l))return{stiffness:Xe.stiffness,damping:Xe.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:a*2*Math.sqrt(r*c),duration:e}}}const lj=["duration","bounce"],cj=["stiffness","damping","mass"];function H9(e,t){return t.some(n=>e[n]!==void 0)}function uj(e){let t={velocity:Xe.velocity,stiffness:Xe.stiffness,damping:Xe.damping,mass:Xe.mass,isResolvedFromDuration:!1,...e};if(!H9(e,cj)&&H9(e,lj))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Jn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Xe.mass,stiffness:i,damping:o}}else{const n=sj({...e,velocity:0});t={...t,...n,mass:Xe.mass},t.isResolvedFromDuration=!0}return t}function Gl(e=Xe.visualDuration,t=Xe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=uj({...n,velocity:-pn(n.velocity||0)}),h=f||0,g=c/(2*Math.sqrt(l*u)),_=a-o,m=pn(Math.sqrt(l/u)),b=Math.abs(_)<5;r||(r=b?Xe.restSpeed.granular:Xe.restSpeed.default),i||(i=b?Xe.restDelta.granular:Xe.restDelta.default);let C,x,w,k,S,M;if(g<1)w=$d(m,g),k=(h+g*m*_)/w,C=T=>{const I=Math.exp(-g*m*T);return a-I*(k*Math.sin(w*T)+_*Math.cos(w*T))},S=g*m*k+_*w,M=g*m*_-k*w,x=T=>Math.exp(-g*m*T)*(S*Math.sin(w*T)+M*Math.cos(w*T));else if(g===1){C=I=>a-Math.exp(-m*I)*(_+(h+m*_)*I);const T=h+m*_;x=I=>Math.exp(-m*I)*(m*T*I-h)}else{const T=m*Math.sqrt(g*g-1);C=N=>{const A=Math.exp(-g*m*N),j=Math.min(T*N,300);return a-A*((h+g*m*_)*Math.sinh(j)+T*_*Math.cosh(j))/T};const I=(h+g*m*_)/T,O=g*m*I-_*T,V=g*m*_-I*T;x=N=>{const A=Math.exp(-g*m*N),j=Math.min(T*N,300);return A*(O*Math.sinh(j)+V*Math.cosh(j))}}const P={calculatedDuration:p&&d||null,velocity:T=>en(x(T)),next:T=>{if(!p&&g<1){const O=Math.exp(-g*m*T),V=Math.sin(w*T),N=Math.cos(w*T),A=a-O*(k*V+_*N),j=en(O*(S*V+M*N));return s.done=Math.abs(j)<=r&&Math.abs(a-A)<=i,s.value=s.done?a:A,s}const I=C(T);if(p)s.done=T>=d;else{const O=en(x(T));s.done=Math.abs(O)<=r&&Math.abs(a-I)<=i}return s.value=s.done?a:I,s},toString:()=>{const T=Math.min(Hd(P),ql),I=B9(O=>P.next(T*O).value,T,30);return T+"ms "+I},toTransition:()=>{}};return P}Gl.applyToOptions=e=>{const t=ij(e,100,Gl);return e.ease=t.ease,e.duration=en(t.duration),e.type="keyframes",e};const dj=5;function $9(e,t,n){const r=Math.max(t-dj,0);return h9(n-e(r),t-r)}function Wd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=M=>s!==void 0&&M<s||l!==void 0&&M>l,h=M=>s===void 0?l:l===void 0||Math.abs(s-M)<Math.abs(l-M)?s:l;let g=n*t;const _=d+g,m=a===void 0?_:a(_);m!==_&&(g=m-d);const b=M=>-g*Math.exp(-M/r),C=M=>m+b(M),x=M=>{const P=b(M),T=C(M);f.done=Math.abs(P)<=c,f.value=f.done?m:T};let w,k;const S=M=>{p(f.value)&&(w=M,k=Gl({keyframes:[f.value,h(f.value)],velocity:$9(C,M,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return S(0),{calculatedDuration:null,next:M=>{let P=!1;return!k&&w===void 0&&(P=!0,x(M),S(M)),w!==void 0&&M>=w?k.next(M-w):(!P&&x(M),f)}}}function fj(e,t,n){const r=[],i=n||Br.mix||V9,o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||fn:t;s=Fa(l,s)}r.push(s)}return r}function pj(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Md(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=fj(t,r,i),l=s.length,c=u=>{if(a&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=Va(e[d],e[d+1],u);return s[d](f)};return n?u=>c(Jn(e[0],e[o-1],u)):c}function hj(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Va(0,t,r);e.push(ze(n,1,i))}}function mj(e){const t=[0];return hj(t,e.length-1),t}function _j(e,t){return e.map(n=>n*t)}function gj(e,t){return e.map(()=>t||x9).splice(0,e.length-1)}function Wa({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=SR(r)?r.map(S9):S9(r),o={done:!1,value:t[0]},a=_j(n&&n.length===t.length?n:mj(t),e),s=pj(a,t,{ease:Array.isArray(i)?i:gj(t,i)});return{calculatedDuration:e,next:l=>(o.value=s(l),o.done=l>=e,o)}}const yj=e=>e!==null;function Kl(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(yj),s=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!s||r===void 0?o[s]:r}const bj={decay:Wd,inertia:Wd,tween:Wa,keyframes:Wa,spring:Gl};function z9(e){typeof e.type=="string"&&(e.type=bj[e.type])}class Yd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const vj=e=>e/100;class Ql extends Yd{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Ot.now()&&this.tick(Ot.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;z9(t);const{type:n=Wa,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=t;let{keyframes:s}=t;const l=n||Wa;l!==Wa&&typeof s[0]!="number"&&(this.mixKeyframes=Fa(vj,V9(s[0],s[1])),s=[0,100]);const c=l({...t,keyframes:s});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Hd(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:h,onUpdate:g,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let C=this.currentTime,x=r;if(d){const M=Math.min(this.currentTime,i)/s;let P=Math.floor(M),T=M%1;!T&&M>=1&&(T=1),T===1&&P--,P=Math.min(P,d+1),!!(P%2)&&(f==="reverse"?(T=1-T,p&&(T-=p/s)):f==="mirror"&&(x=a)),C=Jn(0,1,T)*s}let w;b?(this.delayState.value=u[0],w=this.delayState):w=x.next(C),o&&!b&&(w.value=o(w.value));let{done:k}=w;!b&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return S&&h!==Wd&&(w.value=Kl(u,this.options,_,this.speed)),g&&g(w.value),S&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return pn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pn(t)}get time(){return pn(this.currentTime)}set time(t){t=en(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return $9(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Ot.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=pn(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=rj,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ot.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Cj(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const wi=e=>e*180/Math.PI,Ud=e=>{const t=wi(Math.atan2(e[1],e[0]));return Zd(t)},wj={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ud,rotateZ:Ud,skewX:e=>wi(Math.atan(e[1])),skewY:e=>wi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Zd=e=>(e=e%360,e<0&&(e+=360),e),W9=Ud,Y9=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),U9=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),xj={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Y9,scaleY:U9,scale:e=>(Y9(e)+U9(e))/2,rotateX:e=>Zd(wi(Math.atan2(e[6],e[5]))),rotateY:e=>Zd(wi(Math.atan2(-e[2],e[0]))),rotateZ:W9,rotate:W9,skewX:e=>wi(Math.atan(e[4])),skewY:e=>wi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function qd(e){return e.includes("scale")?1:0}function Gd(e,t){if(!e||e==="none")return qd(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=xj,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=wj,i=s}if(!i)return qd(t);const o=r[t],a=i[1].split(",").map(Sj);return typeof o=="function"?o(a):a[o]}const kj=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Gd(n,t)};function Sj(e){return parseFloat(e.trim())}const bo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vo=new Set(bo),Z9=e=>e===_o||e===ee,Tj=new Set(["x","y","z"]),Mj=bo.filter(e=>!Tj.has(e));function Dj(e){const t=[];return Mj.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const zr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Gd(t,"x"),y:(e,{transform:t})=>Gd(t,"y")};zr.translateX=zr.x,zr.translateY=zr.y;const xi=new Set;let Kd=!1,Qd=!1,Xd=!1;function q9(){if(Qd){const e=Array.from(xi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Dj(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var s;(s=r.getValue(o))==null||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Qd=!1,Kd=!1,xi.forEach(e=>e.complete(Xd)),xi.clear()}function G9(){xi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Qd=!0)})}function Lj(){Xd=!0,G9(),q9(),Xd=!1}class Jd{constructor(t,n,r,i,o,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(xi.add(this),Kd||(Kd=!0,Ve.read(G9),Ve.resolveKeyframes(q9))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const s=r.readValue(n,a);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}Cj(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xi.delete(this)}cancel(){this.state==="scheduled"&&(xi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Pj=e=>e.startsWith("--");function K9(e,t,n){Pj(t)?e.style.setProperty(t,n):e.style[t]=n}const Ej={};function Q9(e,t){const n=p9(e);return()=>Ej[t]??n()}const Ij=Q9(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),X9=Q9(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ya=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,J9={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ya([0,.65,.55,1]),circOut:Ya([.55,0,1,.45]),backIn:Ya([.31,.01,.66,-.59]),backOut:Ya([.33,1.53,.69,.99])};function em(e,t){if(e)return typeof e=="function"?X9()?B9(e,t):"ease-out":k9(e)?Ya(e):Array.isArray(e)?e.map(n=>em(n,t)||J9.easeOut):J9[e]}function Oj(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=em(s,i);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(u,f)}function tm(e){return typeof e=="function"&&"applyToOptions"in e}function Aj({type:e,...t}){return tm(e)&&X9()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class nm extends Yd{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:a=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=a,this.options=t,Md(typeof t.type!="string");const c=Aj(t);this.animation=Oj(n,r,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=Kl(i,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(u),K9(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return pn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pn(t)}get time(){return pn(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=en(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:i}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Ij()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),fn):i(this)}}const rm={anticipate:v9,backInOut:b9,circInOut:w9};function Nj(e){return e in rm}function Rj(e){typeof e.ease=="string"&&Nj(e.ease)&&(e.ease=rm[e.ease])}const e3=10;class jj extends nm{constructor(t){Rj(t),z9(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new Ql({...a,autoplay:!1}),l=Math.max(e3,Ot.now()-this.startTime),c=Jn(0,e3,l-e3),u=s.sample(l).value,{name:d}=this.options;o&&d&&K9(o,d,u),n.setWithVelocity(s.sample(Math.max(0,l-c)).value,u,c),s.stop()}}const im=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Sn.test(e)||e==="0")&&!e.startsWith("url("));function Fj(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Vj(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=im(i,t),s=im(o,t);return!a||!s?!1:Fj(e)||(n==="spring"||tm(n))&&r}function t3(e){e.duration=0,e.type="keyframes"}const om=new Set(["opacity","clipPath","filter","transform"]),Bj=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Hj(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Bj.test(e[t]))return!0;return!1}const $j=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),zj=p9(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Wj(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a,keyframes:s}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return zj()&&n&&(om.has(n)||$j.has(n)&&Hj(s))&&(n!=="transform"||!u)&&!c&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}const Yj=40;class Uj extends Yd{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",keyframes:s,name:l,motionValue:c,element:u,...d}){var h;super(),this.stop=()=>{var g,_;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(_=this.keyframeResolver)==null||_.cancel()},this.createdAt=Ot.now();const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,name:l,motionValue:c,element:u,...d},p=(u==null?void 0:u.KeyframeResolver)||Jd;this.keyframeResolver=new p(s,(g,_,m)=>this.onKeyframesResolved(g,_,f,!m),l,c,u),(h=this.keyframeResolver)==null||h.scheduleResolve()}onKeyframesResolved(t,n,r,i){var m,b;this.keyframeResolver=void 0;const{name:o,type:a,velocity:s,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=Ot.now();let d=!0;Vj(t,o,a,s)||(d=!1,(Br.instantAnimations||!l)&&(u==null||u(Kl(t,r,n))),t[0]=t[t.length-1],t3(r),r.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Yj?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=d&&!c&&Wj(p),g=(b=(m=p.motionValue)==null?void 0:m.owner)==null?void 0:b.current;let _;if(h)try{_=new jj({...p,element:g})}catch{_=new Ql(p)}else _=new Ql(p);_.finished.then(()=>{this.notifyFinished()}).catch(fn),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Lj()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function am(e,t,n,r=0,i=1){const o=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),a=e.size,s=(a-1)*r;return typeof n=="function"?n(o,a):i===1?o*r:s-o*r}const Zj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qj(e){const t=Zj.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function sm(e,t,n=1){const[r,i]=qj(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return u9(a)?parseFloat(a):a}return Id(i)?sm(i,t,n+1):i}const Gj={type:"spring",stiffness:500,damping:25,restSpeed:10},Kj=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Qj={type:"keyframes",duration:.8},Xj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Jj=(e,{keyframes:t})=>t.length>2?Qj:vo.has(e)?e.startsWith("scale")?Kj(t[1]):Gj:Xj;function lm(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function n3(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?lm(n,e):n}const eF=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function tF(e){for(const t in e)if(!eF.has(t))return!0;return!1}const r3=(e,t,n,r={},i,o)=>a=>{const s=n3(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c=c-en(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};tF(s)||Object.assign(u,Jj(e,u)),u.duration&&(u.duration=en(u.duration)),u.repeatDelay&&(u.repeatDelay=en(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(t3(u),u.delay===0&&(d=!0)),(Br.instantAnimations||Br.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(d=!0,t3(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!o&&t.get()!==void 0){const f=Kl(u.keyframes,s);if(f!==void 0){Ve.update(()=>{u.onUpdate(f),u.onComplete()});return}}return s.isSync?new Ql(u):new Uj(u)};function cm(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function i3(e,t,n,r){if(typeof t=="function"){const[i,o]=cm(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=cm(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function ki(e,t,n){const r=e.getProps();return i3(r,t,n!==void 0?n:r.custom,e)}const um=new Set(["width","height","top","left","right","bottom",...bo]),dm=30,nF=e=>!isNaN(parseFloat(e));class rF{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=Ot.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ot.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=nF(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Dd);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ve.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ot.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>dm)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,dm);return h9(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Co(e,t){return new rF(e,t)}const o3=e=>Array.isArray(e);function iF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Co(n))}function oF(e){return o3(e)?e[e.length-1]||0:e}function aF(e,t){const n=ki(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const s=oF(o[a]);iF(e,a,s)}}const gt=e=>!!(e&&e.getVelocity);function sF(e){return!!(gt(e)&&e.add)}function a3(e,t){const n=e.getValue("willChange");if(sF(n))return n.add(t);if(!n&&Br.WillChange){const r=new Br.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function s3(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const fm="data-"+s3("framerAppearId");function pm(e){return e.props[fm]}function lF({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function hm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:a,...s}=t;const l=e.getDefaultTransition();o=o?lm(o,l):l;const c=o==null?void 0:o.reduceMotion;r&&(o=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in s){const p=e.getValue(f,e.latestValues[f]??null),h=s[f];if(h===void 0||d&&lF(d,f))continue;const g={delay:n,...n3(o||{},f)},_=p.get();if(_!==void 0&&!p.isAnimating()&&!Array.isArray(h)&&h===_&&!g.velocity){Ve.update(()=>p.set(h));continue}let m=!1;if(window.MotionHandoffAnimation){const x=pm(e);if(x){const w=window.MotionHandoffAnimation(x,f,Ve);w!==null&&(g.startTime=w,m=!0)}}a3(e,f);const b=c??e.shouldReduceMotion;p.start(r3(f,p,h,b&&um.has(f)?{type:!1}:g,e,m));const C=p.animation;C&&u.push(C)}if(a){const f=()=>Ve.update(()=>{a&&aF(e,a)});u.length?Promise.all(u).then(f):f()}return u}function l3(e,t,n={}){var l;const r=ki(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(hm(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return cF(e,t,c,u,d,f,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[c,u]=s==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function cF(e,t,n=0,r=0,i=0,o=1,a){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(l3(l,t,{...a,delay:n+(typeof r=="function"?0:r)+am(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function uF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>l3(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=l3(e,t,n);else{const i=typeof t=="function"?ki(e,t,n.custom):t;r=Promise.all(hm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const dF={test:e=>e==="auto",parse:e=>e},mm=e=>t=>t.test(e),_m=[_o,ee,er,$r,FR,jR,dF],gm=e=>_m.find(mm(e));function fF(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||f9(e):!0}const pF=new Set(["brightness","contrast","saturate","opacity"]);function hF(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Od)||[];if(!r)return e;const i=n.replace(r,"");let o=pF.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const mF=/\b([a-z-]*)\(.*?\)/gu,c3={...Sn,getAnimatableNone:e=>{const t=e.match(mF);return t?t.map(hF).join(" "):e}},u3={...Sn,getAnimatableNone:e=>{const t=Sn.parse(e);return Sn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},ym={..._o,transform:Math.round},d3={borderWidth:ee,borderTopWidth:ee,borderRightWidth:ee,borderBottomWidth:ee,borderLeftWidth:ee,borderRadius:ee,borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomRightRadius:ee,borderBottomLeftRadius:ee,width:ee,maxWidth:ee,height:ee,maxHeight:ee,top:ee,right:ee,bottom:ee,left:ee,inset:ee,insetBlock:ee,insetBlockStart:ee,insetBlockEnd:ee,insetInline:ee,insetInlineStart:ee,insetInlineEnd:ee,padding:ee,paddingTop:ee,paddingRight:ee,paddingBottom:ee,paddingLeft:ee,paddingBlock:ee,paddingBlockStart:ee,paddingBlockEnd:ee,paddingInline:ee,paddingInlineStart:ee,paddingInlineEnd:ee,margin:ee,marginTop:ee,marginRight:ee,marginBottom:ee,marginLeft:ee,marginBlock:ee,marginBlockStart:ee,marginBlockEnd:ee,marginInline:ee,marginInlineStart:ee,marginInlineEnd:ee,fontSize:ee,backgroundPositionX:ee,backgroundPositionY:ee,...{rotate:$r,rotateX:$r,rotateY:$r,rotateZ:$r,scale:Ul,scaleX:Ul,scaleY:Ul,scaleZ:Ul,skew:$r,skewX:$r,skewY:$r,distance:ee,translateX:ee,translateY:ee,translateZ:ee,x:ee,y:ee,z:ee,perspective:ee,transformPerspective:ee,opacity:Ha,originX:E9,originY:E9,originZ:ee},zIndex:ym,fillOpacity:Ha,strokeOpacity:Ha,numOctaves:ym},_F={...d3,color:st,backgroundColor:st,outlineColor:st,fill:st,stroke:st,borderColor:st,borderTopColor:st,borderRightColor:st,borderBottomColor:st,borderLeftColor:st,filter:c3,WebkitFilter:c3,mask:u3,WebkitMask:u3},bm=e=>_F[e],gF=new Set([c3,u3]);function vm(e,t){let n=bm(e);return gF.has(n)||(n=Sn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const yF=new Set(["auto","none","0"]);function bF(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!yF.has(o)&&yo(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=vm(n,i)}class vF extends Jd{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Id(d))){const f=sm(d,n.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!um.has(r)||t.length!==2)return;const[i,o]=t,a=gm(i),s=gm(o),l=L9(i),c=L9(o);if(l!==c&&zr[r]){this.needsMeasurement=!0;return}if(a!==s)if(Z9(a)&&Z9(s))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else zr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||fF(t[i]))&&r.push(i);r.length&&bF(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=zr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var s;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,a=r[o];r[o]=zr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Cm(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const wm=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Xl(e){return d9(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:f3}=T9(queueMicrotask,!1),Tn={x:!1,y:!1};function xm(){return Tn.x||Tn.y}function CF(e){return e==="x"||e==="y"?Tn[e]?null:(Tn[e]=!0,()=>{Tn[e]=!1}):Tn.x||Tn.y?null:(Tn.x=Tn.y=!0,()=>{Tn.x=Tn.y=!1})}function km(e,t){const n=Cm(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function wF(e){return!(e.pointerType==="touch"||xm())}function xF(e,t,n={}){const[r,i,o]=km(e,n);return r.forEach(a=>{let s=!1,l=!1,c;const u=()=>{a.removeEventListener("pointerleave",h)},d=_=>{c&&(c(_),c=void 0),u()},f=_=>{s=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(_))},p=()=>{s=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},h=_=>{if(_.pointerType!=="touch"){if(s){l=!0;return}d(_)}},g=_=>{if(!wF(_))return;l=!1;const m=t(a,_);typeof m=="function"&&(c=m,a.addEventListener("pointerleave",h,i))};a.addEventListener("pointerenter",g,i),a.addEventListener("pointerdown",p,i)}),o}const Sm=(e,t)=>t?e===t?!0:Sm(e,t.parentElement):!1,p3=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,kF=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function SF(e){return kF.has(e.tagName)||e.isContentEditable===!0}const TF=new Set(["INPUT","SELECT","TEXTAREA"]);function MF(e){return TF.has(e.tagName)||e.isContentEditable===!0}const Jl=new WeakSet;function Tm(e){return t=>{t.key==="Enter"&&e(t)}}function h3(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const DF=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Tm(()=>{if(Jl.has(n))return;h3(n,"down");const i=Tm(()=>{h3(n,"up")}),o=()=>h3(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Mm(e){return p3(e)&&!xm()}const Dm=new WeakSet;function LF(e,t,n={}){const[r,i,o]=km(e,n),a=s=>{const l=s.currentTarget;if(!Mm(s)||Dm.has(s))return;Jl.add(l),n.stopPropagation&&Dm.add(s);const c=t(l,s),u=(p,h)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Jl.has(l)&&Jl.delete(l),Mm(p)&&typeof c=="function"&&c(p,{success:h})},d=p=>{u(p,l===window||l===document||n.useGlobalTarget||Sm(l,p.target))},f=p=>{u(p,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",a,i),Xl(s)&&(s.addEventListener("focus",c=>DF(c,i)),!SF(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),o}function m3(e){return d9(e)&&"ownerSVGElement"in e}const ec=new WeakMap;let Wr;const Lm=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:m3(r)&&"getBBox"in r?r.getBBox()[t]:r[n],PF=Lm("inline","width","offsetWidth"),EF=Lm("block","height","offsetHeight");function IF({target:e,borderBoxSize:t}){var n;(n=ec.get(e))==null||n.forEach(r=>{r(e,{get width(){return PF(e,t)},get height(){return EF(e,t)}})})}function OF(e){e.forEach(IF)}function AF(){typeof ResizeObserver>"u"||(Wr=new ResizeObserver(OF))}function NF(e,t){Wr||AF();const n=Cm(e);return n.forEach(r=>{let i=ec.get(r);i||(i=new Set,ec.set(r,i)),i.add(t),Wr==null||Wr.observe(r)}),()=>{n.forEach(r=>{const i=ec.get(r);i==null||i.delete(t),i!=null&&i.size||Wr==null||Wr.unobserve(r)})}}const tc=new Set;let wo;function RF(){wo=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};tc.forEach(t=>t(e))},window.addEventListener("resize",wo)}function jF(e){return tc.add(e),wo||RF(),()=>{tc.delete(e),!tc.size&&typeof wo=="function"&&(window.removeEventListener("resize",wo),wo=void 0)}}function Pm(e,t){return typeof e=="function"?jF(e):NF(e,t)}function FF(e){return m3(e)&&e.tagName==="svg"}const VF=[..._m,st,Sn],BF=e=>VF.find(mm(e)),Em=()=>({translate:0,scale:1,origin:0,originPoint:0}),xo=()=>({x:Em(),y:Em()}),Im=()=>({min:0,max:0}),ut=()=>({x:Im(),y:Im()}),HF=new WeakMap;function nc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ua(e){return typeof e=="string"||Array.isArray(e)}const _3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],g3=["initial",..._3];function rc(e){return nc(e.animate)||g3.some(t=>Ua(e[t]))}function Om(e){return!!(rc(e)||e.variants)}function $F(e,t,n){for(const r in t){const i=t[r],o=n[r];if(gt(i))e.addValue(r,i);else if(gt(o))e.addValue(r,Co(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Co(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const y3={current:null},Am={current:!1},zF=typeof window<"u";function WF(){if(Am.current=!0,!!zF)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>y3.current=e.matches;e.addEventListener("change",t),t()}else y3.current=!1}const Nm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ic={};function Rm(e){ic=e}function YF(){return ic}class UF{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:a,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Jd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Ot.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Ve.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=rc(n),this.isVariantNode=Om(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const h=f[p];c[p]!==void 0&&gt(h)&&h.set(c[p])}}mount(t){var n,r;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,HF.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,o)=>this.bindToMotionValue(o,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Am.current||WF(),this.shouldReduceMotion=y3.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Hr(this.notifyUpdate),Hr(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&om.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:s,times:l,ease:c,duration:u}=n.accelerate,d=new nm({element:this.current,name:t,keyframes:s,times:l,ease:c,duration:en(u)}),f=a(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const r=vo.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ve.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ic){const n=ic[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ut()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Nm.length;r++){const i=Nm[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=$F(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Co(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(u9(r)||f9(r))?r=parseFloat(r):!BF(r)&&Sn.test(n)&&(r=vm(t,n)),this.setBaseTarget(t,gt(r)?r.get():r)),gt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=i3(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!gt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Dd),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){f3.render(this.render)}}class jm extends UF{constructor(){super(...arguments),this.KeyframeResolver=vF}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;gt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Yr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Fm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ZF({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qF(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function b3(e){return e===void 0||e===1}function v3({scale:e,scaleX:t,scaleY:n}){return!b3(e)||!b3(t)||!b3(n)}function Si(e){return v3(e)||Vm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Vm(e){return Bm(e.x)||Bm(e.y)}function Bm(e){return e&&e!=="0%"}function oc(e,t,n){const r=e-n,i=t*r;return n+i}function Hm(e,t,n,r,i){return i!==void 0&&(e=oc(e,i,r)),oc(e,n,r)+t}function C3(e,t=0,n=1,r,i){e.min=Hm(e.min,t,n,r,i),e.max=Hm(e.max,t,n,r,i)}function $m(e,{x:t,y:n}){C3(e.x,t.translate,t.scale,t.originPoint),C3(e.y,n.translate,n.scale,n.originPoint)}const zm=.999999999999,Wm=1.0000000000001;function GF(e,t,n,r=!1){var s;const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let l=0;l<i;l++){o=n[l],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(tr(e.x,-o.scroll.offset.x),tr(e.y,-o.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,$m(e,a)),r&&Si(o.latestValues)&&ac(e,o.latestValues,(s=o.layout)==null?void 0:s.layoutBox))}t.x<Wm&&t.x>zm&&(t.x=1),t.y<Wm&&t.y>zm&&(t.y=1)}function tr(e,t){e.min+=t,e.max+=t}function Ym(e,t,n,r,i=.5){const o=ze(e.min,e.max,i);C3(e,t,n,o,r)}function Um(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function ac(e,t,n){const r=n??e;Ym(e.x,Um(t.x,r.x),t.scaleX,t.scale,t.originX),Ym(e.y,Um(t.y,r.y),t.scaleY,t.scale,t.originY)}function Zm(e,t){return Fm(qF(e.getBoundingClientRect(),t))}function KF(e,t,n){const r=Zm(e,n),{scroll:i}=t;return i&&(tr(r.x,i.offset.x),tr(r.y,i.offset.y)),r}const QF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},XF=bo.length;function JF(e,t,n){let r="",i=!0;for(let o=0;o<XF;o++){const a=bo[o],s=e[a];if(s===void 0)continue;let l=!0;if(typeof s=="number")l=s===(a.startsWith("scale")?1:0);else{const c=parseFloat(s);l=a.startsWith("scale")?c===1:c===0}if(!l||n){const c=wm(s,d3[a]);if(!l){i=!1;const u=QF[a]||a;r+=`${u}(${c}) `}n&&(t[a]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function w3(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,s=!1;for(const l in t){const c=t[l];if(vo.has(l)){a=!0;continue}else if(D9(l)){i[l]=c;continue}else{const u=wm(c,d3[l]);l.startsWith("origin")?(s=!0,o[l]=u):r[l]=u}}if(t.transform||(a||n?r.transform=JF(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;r.transformOrigin=`${l} ${c} ${u}`}}function qm(e,{style:t,vars:n},r,i){const o=e.style;let a;for(a in t)o[a]=t[a];i==null||i.applyProjectionStyles(o,r);for(a in n)o.setProperty(a,n[a])}function Gm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Za={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ee.test(e))e=parseFloat(e);else return e;const n=Gm(e,t.target.x),r=Gm(e,t.target.y);return`${n}% ${r}%`}},eV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Sn.parse(e);if(i.length>5)return r;const o=Sn.createTransformer(e),a=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;const c=ze(s,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=c),typeof i[3+a]=="number"&&(i[3+a]/=c),o(i)}},x3={borderRadius:{...Za,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Za,borderTopRightRadius:Za,borderBottomLeftRadius:Za,borderBottomRightRadius:Za,boxShadow:eV};function Km(e,{layout:t,layoutId:n}){return vo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!x3[e]||e==="opacity")}function k3(e,t,n){var a;const r=e.style,i=t==null?void 0:t.style,o={};if(!r)return o;for(const s in r)(gt(r[s])||i&&gt(i[s])||Km(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(o[s]=r[s]);return o}function tV(e){return window.getComputedStyle(e)}class nV extends jm{constructor(){super(...arguments),this.type="html",this.renderInstance=qm}readValueFromInstance(t,n){var r;if(vo.has(n))return(r=this.projection)!=null&&r.isProjecting?qd(n):kj(t,n);{const i=tV(t),o=(D9(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Zm(t,n)}build(t,n,r){w3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return k3(t,n,r)}}const rV={offset:"stroke-dashoffset",array:"stroke-dasharray"},iV={offset:"strokeDashoffset",array:"strokeDasharray"};function oV(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?rV:iV;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}const aV=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Qm(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s},l,c,u){if(w3(e,s,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const p of aV)d[p]!==void 0&&(f[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&oV(d,i,o,a,!1)}const Xm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Jm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function sV(e,t,n,r){qm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Xm.has(i)?i:s3(i),t.attrs[i])}function e7(e,t,n){const r=k3(e,t,n);for(const i in e)if(gt(e[i])||gt(t[i])){const o=bo.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}class lV extends jm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ut}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vo.has(n)){const r=bm(n);return r&&r.default||0}return n=Xm.has(n)?n:s3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return e7(t,n,r)}build(t,n,r){Qm(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){sV(t,n,r,i)}mount(t){this.isSVGTag=Jm(t.tagName),super.mount(t)}}const cV=g3.length;function t7(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?t7(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<cV;n++){const r=g3[n],i=e.props[r];(Ua(i)||i===!1)&&(t[r]=i)}return t}function n7(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const uV=[..._3].reverse(),dV=_3.length;function fV(e){return t=>Promise.all(t.map(({animation:n,options:r})=>uF(e,n,r)))}function pV(e){let t=fV(e),n=r7(),r=!0,i=!1;const o=c=>(u,d)=>{var p;const f=ki(e,d,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(f){const{transition:h,transitionEnd:g,..._}=f;u={...u,..._,...g}}return u};function a(c){t=c(e)}function s(c){const{props:u}=e,d=t7(e.parent)||{},f=[],p=new Set;let h={},g=1/0;for(let m=0;m<dV;m++){const b=uV[m],C=n[b],x=u[b]!==void 0?u[b]:d[b],w=Ua(x),k=b===c?C.isActive:null;k===!1&&(g=m);let S=x===d[b]&&x!==u[b]&&w;if(S&&(r||i)&&e.manuallyAnimateOnMount&&(S=!1),C.protectedKeys={...h},!C.isActive&&k===null||!x&&!C.prevProp||nc(x)||typeof x=="boolean")continue;if(b==="exit"&&C.isActive&&k!==!0){C.prevResolvedValues&&(h={...h,...C.prevResolvedValues});continue}const M=hV(C.prevProp,x);let P=M||b===c&&C.isActive&&!S&&w||m>g&&w,T=!1;const I=Array.isArray(x)?x:[x];let O=I.reduce(o(b),{});k===!1&&(O={});const{prevResolvedValues:V={}}=C,N={...V,...O},A=H=>{P=!0,p.has(H)&&(T=!0,p.delete(H)),C.needsAnimating[H]=!0;const G=e.getValue(H);G&&(G.liveStyle=!1)};for(const H in N){const G=O[H],D=V[H];if(h.hasOwnProperty(H))continue;let Ce=!1;o3(G)&&o3(D)?Ce=!n7(G,D):Ce=G!==D,Ce?G!=null?A(H):p.add(H):G!==void 0&&p.has(H)?A(H):C.protectedKeys[H]=!0}C.prevProp=x,C.prevResolvedValues=O,C.isActive&&(h={...h,...O}),(r||i)&&e.blockInitialAnimation&&(P=!1);const j=S&&M;P&&(!j||T)&&f.push(...I.map(H=>{const G={type:b};if(typeof H=="string"&&(r||i)&&!j&&e.manuallyAnimateOnMount&&e.parent){const{parent:D}=e,Ce=ki(D,H);if(D.enteringChildren&&Ce){const{delayChildren:he}=Ce.transition||{};G.delay=am(D.enteringChildren,e,he)}}return{animation:H,options:G}}))}if(p.size){const m={};if(typeof u.initial!="boolean"){const b=ki(e,Array.isArray(u.initial)?u.initial[0]:u.initial);b&&b.transition&&(m.transition=b.transition)}p.forEach(b=>{const C=e.getBaseTarget(b),x=e.getValue(b);x&&(x.liveStyle=!0),m[b]=C??null}),f.push({animation:m})}let _=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(_=!1),r=!1,i=!1,_?t(f):Promise.resolve()}function l(c,u){var f;if(n[c].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(p=>{var h;return(h=p.animationState)==null?void 0:h.setActive(c,u)}),n[c].isActive=u;const d=s(c);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:a,getState:()=>n,reset:()=>{n=r7(),i=!0}}}function hV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!n7(t,e):!1}function Ti(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function r7(){return{animate:Ti(!0),whileInView:Ti(),whileHover:Ti(),whileTap:Ti(),whileDrag:Ti(),whileFocus:Ti(),exit:Ti()}}function S3(e,t){e.min=t.min,e.max=t.max}function Mn(e,t){S3(e.x,t.x),S3(e.y,t.y)}function i7(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const o7=1e-4,mV=1-o7,_V=1+o7,a7=.01,gV=0-a7,yV=0+a7;function At(e){return e.max-e.min}function bV(e,t,n){return Math.abs(e-t)<=n}function s7(e,t,n,r=.5){e.origin=r,e.originPoint=ze(t.min,t.max,e.origin),e.scale=At(n)/At(t),e.translate=ze(n.min,n.max,e.origin)-e.originPoint,(e.scale>=mV&&e.scale<=_V||isNaN(e.scale))&&(e.scale=1),(e.translate>=gV&&e.translate<=yV||isNaN(e.translate))&&(e.translate=0)}function qa(e,t,n,r){s7(e.x,t.x,n.x,r?r.originX:void 0),s7(e.y,t.y,n.y,r?r.originY:void 0)}function l7(e,t,n,r=0){const i=r?ze(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+At(t)}function vV(e,t,n,r){l7(e.x,t.x,n.x,r==null?void 0:r.x),l7(e.y,t.y,n.y,r==null?void 0:r.y)}function c7(e,t,n,r=0){const i=r?ze(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+At(t)}function sc(e,t,n,r){c7(e.x,t.x,n.x,r==null?void 0:r.x),c7(e.y,t.y,n.y,r==null?void 0:r.y)}function u7(e,t,n,r,i){return e-=t,e=oc(e,1/n,r),i!==void 0&&(e=oc(e,1/i,r)),e}function CV(e,t=0,n=1,r=.5,i,o=e,a=e){if(er.test(t)&&(t=parseFloat(t),t=ze(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=ze(o.min,o.max,r);e===o&&(s-=t),e.min=u7(e.min,t,n,s,i),e.max=u7(e.max,t,n,s,i)}function d7(e,t,[n,r,i],o,a){CV(e,t[n],t[r],t[i],t.scale,o,a)}const wV=["x","scaleX","originX"],xV=["y","scaleY","originY"];function f7(e,t,n,r){d7(e.x,t,wV,n?n.x:void 0,r?r.x:void 0),d7(e.y,t,xV,n?n.y:void 0,r?r.y:void 0)}function p7(e){return e.translate===0&&e.scale===1}function h7(e){return p7(e.x)&&p7(e.y)}function m7(e,t){return e.min===t.min&&e.max===t.max}function kV(e,t){return m7(e.x,t.x)&&m7(e.y,t.y)}function _7(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function g7(e,t){return _7(e.x,t.x)&&_7(e.y,t.y)}function y7(e){return At(e.x)/At(e.y)}function b7(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function nr(e){return[e("x"),e("y")]}function SV(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:p,skewY:h}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),h&&(r+=`skewY(${h}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const v7=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],TV=v7.length,C7=e=>typeof e=="string"?parseFloat(e):e,w7=e=>typeof e=="number"||ee.test(e);function MV(e,t,n,r,i,o){i?(e.opacity=ze(0,n.opacity??1,DV(r)),e.opacityExit=ze(t.opacity??1,0,LV(r))):o&&(e.opacity=ze(t.opacity??1,n.opacity??1,r));for(let a=0;a<TV;a++){const s=v7[a];let l=x7(t,s),c=x7(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||w7(l)===w7(c)?(e[s]=Math.max(ze(C7(l),C7(c),r),0),(er.test(c)||er.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=ze(t.rotate||0,n.rotate||0,r))}function x7(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const DV=k7(0,.5,C9),LV=k7(.5,.95,fn);function k7(e,t,n){return r=>r<e?0:r>t?1:n(Va(e,t,r))}function PV(e,t,n){const r=gt(e)?e:Co(e);return r.start(r3("",r,t,n)),r.animation}function Ga(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const EV=(e,t)=>e.depth-t.depth;class IV{constructor(){this.children=[],this.isDirty=!1}add(t){Td(this.children,t),this.isDirty=!0}remove(t){zl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(EV),this.isDirty=!1,this.children.forEach(t)}}function OV(e,t){const n=Ot.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Hr(r),e(o-t))};return Ve.setup(r,!0),()=>Hr(r)}function lc(e){return gt(e)?e.get():e}class AV{constructor(){this.members=[]}add(t){Td(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(zl(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(zl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,n){var i;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:a}=t.options;(o===void 0||o!==a)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,o,a;(r=(n=t.options).onExitComplete)==null||r.call(n),(a=(i=t.resumingFrom)==null?void 0:(o=i.options).onExitComplete)==null||a.call(o)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const cc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},T3=["","X","Y","Z"],NV=1e3;let RV=0;function M3(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function S7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=pm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ve,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&S7(r)}function T7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=RV++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(VV),this.nodes.forEach(YV),this.nodes.forEach(UV),this.nodes.forEach(BV)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new IV)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Dd),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=m3(a)&&!FF(a),this.instance=a;const{layoutId:s,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;Ve.read(()=>{d=window.innerWidth}),e(a,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=OV(f,250),cc.hasAnimatedSinceResize&&(cc.hasAnimatedSinceResize=!1,this.nodes.forEach(L7)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||c.getDefaultTransition()||QV,{onLayoutAnimationStart:g,onLayoutAnimationComplete:_}=c.getProps(),m=!this.targetLayout||!g7(this.targetLayout,p),b=!d&&f;if(this.options.layoutRoot||this.resumeFrom||b||d&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...n3(h,"layout"),onPlay:g,onComplete:_};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(u,b)}else d||L7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Hr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ZV),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&S7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach($V),this.nodes.forEach(M7);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(D7);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(zV),this.nodes.forEach(WV),this.nodes.forEach(jV),this.nodes.forEach(FV)):this.nodes.forEach(D7),this.clearAllSnapshots();const s=Ot.now();_t.delta=Jn(0,1e3/60,s-_t.timestamp),_t.timestamp=s,_t.isProcessing=!0,Ed.update.process(_t),Ed.preRender.process(_t),Ed.render.process(_t),_t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,f3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(HV),this.sharedNodes.forEach(qV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ve.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ve.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!At(this.snapshot.measuredBox.x)&&!At(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ut()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!h7(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;a&&this.instance&&(s||Si(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),XV(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:a}=this.options;if(!a)return ut();const s=a.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(JV))){const{scroll:u}=this.root;u&&(tr(s.x,u.offset.x),tr(s.y,u.offset.y))}return s}removeElementScroll(a){var l;const s=ut();if(Mn(s,a),(l=this.scroll)!=null&&l.wasRoot)return s;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Mn(s,a),tr(s.x,d.offset.x),tr(s.y,d.offset.y))}return s}applyTransform(a,s=!1,l){var u,d;const c=l||ut();Mn(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f];!s&&p.options.layoutScroll&&p.scroll&&p!==p.root&&(tr(c.x,-p.scroll.offset.x),tr(c.y,-p.scroll.offset.y)),Si(p.latestValues)&&ac(c,p.latestValues,(u=p.layout)==null?void 0:u.layoutBox)}return Si(this.latestValues)&&ac(c,this.latestValues,(d=this.layout)==null?void 0:d.layoutBox),c}removeTransform(a){var l;const s=ut();Mn(s,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!Si(u.latestValues))continue;let d;u.instance&&(v3(u.latestValues)&&u.updateSnapshot(),d=ut(),Mn(d,u.measurePageBox())),f7(s,u.latestValues,(l=u.snapshot)==null?void 0:l.layoutBox,d)}return Si(this.latestValues)&&f7(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==_t.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var p;const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=_t.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ut(),this.targetWithTransforms=ut()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vV(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Mn(this.target,this.layout.layoutBox),$m(this.target,this.targetDelta)):Mn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||v3(this.parent.latestValues)||Vm(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,s,l){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ut(),this.relativeTargetOrigin=ut(),sc(this.relativeTargetOrigin,s,l,this.options.layoutAnchor||void 0),Mn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var h;const a=this.getLead(),s=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===_t.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;Mn(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;GF(this.layoutCorrected,this.treeScale,this.path,s),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=ut());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(i7(this.prevProjectionDelta.x,this.projectionDelta.x),i7(this.prevProjectionDelta.y,this.projectionDelta.y)),qa(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!b7(this.projectionDelta.x,this.prevProjectionDelta.x)||!b7(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s;if((s=this.options.visualElement)==null||s.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=xo(),this.projectionDelta=xo(),this.projectionDeltaWithTransform=xo()}setAnimationOrigin(a,s=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=xo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const f=ut(),p=l?l.source:void 0,h=this.layout?this.layout.source:void 0,g=p!==h,_=this.getStack(),m=!_||_.members.length<=1,b=!!(g&&!m&&this.options.crossfade===!0&&!this.path.some(KV));this.animationProgress=0;let C;this.mixTargetDelta=x=>{const w=x/1e3;P7(d.x,a.x,w),P7(d.y,a.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sc(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),GV(this.relativeTarget,this.relativeTargetOrigin,f,w),C&&kV(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=ut()),Mn(C,this.relativeTarget)),g&&(this.animationValues=u,MV(u,c,this.latestValues,w,b,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var s,l,c;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Hr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ve.update(()=>{cc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Co(0)),this.motionValue.jump(0,!1),this.currentAnimation=PV(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(NV),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&N7(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||ut();const d=At(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=At(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}Mn(s,l),ac(s,u),qa(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new AV),this.sharedNodes.get(a).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&M3("z",a,c,this.animationValues);for(let u=0;u<T3.length;u++)M3(`rotate${T3[u]}`,a,c,this.animationValues),M3(`skew${T3[u]}`,a,c,this.animationValues);a.render();for(const u in c)a.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);a.scheduleRender()}applyProjectionStyles(a,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=lc(s==null?void 0:s.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=lc(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Si(this.latestValues)&&(a.transform=l?l({},""):"none",this.hasProjected=!1);return}a.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=SV(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),a.transform=d;const{x:f,y:p}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,c.animationValues?a.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:a.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const h in x3){if(u[h]===void 0)continue;const{correct:g,applyTo:_,isCSSVariable:m}=x3[h],b=d==="none"?u[h]:g(u[h],c);if(_){const C=_.length;for(let x=0;x<C;x++)a[_[x]]=b}else m?this.options.visualElement.renderState.vars[h]=b:a[h]=b}this.options.layoutId&&(a.pointerEvents=c===this?lc(s==null?void 0:s.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(M7),this.root.sharedNodes.clear()}}}function jV(e){e.updateLayout()}function FV(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=t.source!==e.layout.source;if(o==="size")nr(d=>{const f=a?t.measuredBox[d]:t.layoutBox[d],p=At(f);f.min=r[d].min,f.max=f.min+p});else if(o==="x"||o==="y"){const d=o==="x"?"y":"x";S3(a?t.measuredBox[d]:t.layoutBox[d],r[d])}else N7(o,t.layoutBox,r)&&nr(d=>{const f=a?t.measuredBox[d]:t.layoutBox[d],p=At(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const s=xo();qa(s,r,t.layoutBox);const l=xo();a?qa(l,e.applyTransform(i,!0),t.measuredBox):qa(l,r,t.layoutBox);const c=!h7(s);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const h=e.options.layoutAnchor||void 0,g=ut();sc(g,t.layoutBox,f.layoutBox,h);const _=ut();sc(_,r,p.layoutBox,h),g7(g,_)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=_,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function VV(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function BV(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function HV(e){e.clearSnapshot()}function M7(e){e.clearMeasurements()}function $V(e){e.isLayoutDirty=!0,e.updateLayout()}function D7(e){e.isLayoutDirty=!1}function zV(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function WV(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function L7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function YV(e){e.resolveTargetDelta()}function UV(e){e.calcProjection()}function ZV(e){e.resetSkewAndRotation()}function qV(e){e.removeLeadSnapshot()}function P7(e,t,n){e.translate=ze(t.translate,0,n),e.scale=ze(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function E7(e,t,n,r){e.min=ze(t.min,n.min,r),e.max=ze(t.max,n.max,r)}function GV(e,t,n,r){E7(e.x,t.x,n.x,r),E7(e.y,t.y,n.y,r)}function KV(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const QV={duration:.45,ease:[.4,0,.1,1]},I7=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),O7=I7("applewebkit/")&&!I7("chrome/")?Math.round:fn;function A7(e){e.min=O7(e.min),e.max=O7(e.max)}function XV(e){A7(e.x),A7(e.y)}function N7(e,t,n){return e==="position"||e==="preserve-aspect"&&!bV(y7(t),y7(n),.2)}function JV(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const eB=T7({attachResizeListener:(e,t)=>Ga(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),D3={current:void 0},R7=T7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!D3.current){const e=new eB({});e.mount(window),e.setOptions({layoutScroll:!0}),D3.current=e}return D3.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),L3=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function j7(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function tB(...e){return t=>{let n=!1;const r=e.map(i=>{const o=j7(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():j7(e[i],null)}}}}function nB(...e){return R.useCallback(tB(...e),e)}class rB extends R.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Xl(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,i=Xl(r)&&r.offsetWidth||0,o=Xl(r)&&r.offsetHeight||0,a=getComputedStyle(n),s=this.props.sizeRef.current;s.height=parseFloat(a.height),s.width=parseFloat(a.width),s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left,s.bottom=o-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function iB({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:o}){var f;const a=v.useId(),s=v.useRef(null),l=v.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=v.useContext(L3),u=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),d=nB(s,u);return v.useInsertionEffect(()=>{const{width:p,height:h,top:g,left:_,right:m,bottom:b}=l.current;if(t||o===!1||!s.current||!p||!h)return;const C=n==="left"?`left: ${_}`:`right: ${m}`,x=r==="bottom"?`bottom: ${b}`:`top: ${g}`;s.current.dataset.motionPopId=a;const w=document.createElement("style");c&&(w.nonce=c);const k=i??document.head;return k.appendChild(w),w.sheet&&w.sheet.insertRule(`
852
+ `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;setTimeout(()=>{J.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:a,step:s,styles:l}=this.props,c=Xn(i.open),d={"aria-label":c,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:c};let u;if(e){const f=e;u=R.createElement(f,{continuous:t,index:n,isLastStep:r,size:a,step:s,...d})}else u=R.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...d},R.createElement("span",{style:l.beaconInner}),R.createElement("span",{style:l.beaconOuter}));return u}};function cR({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return v.createElement("button",{style:o,type:"button",...t},v.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",null,v.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var uR=cR;function dR(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:s,tooltipProps:l}=e,{content:c,hideBackButton:d,hideCloseButton:u,hideFooter:f,showSkipButton:p,styles:h,title:g}=s,_={};return _.primary=R.createElement("button",{"data-test-id":"button-primary",style:h.buttonNext,type:"button",...o}),p&&!i&&(_.skip=R.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:h.buttonSkip,type:"button",...a})),!d&&r>0&&(_.back=R.createElement("button",{"data-test-id":"button-back",style:h.buttonBack,type:"button",...t})),_.close=!u&&R.createElement(uR,{"data-test-id":"button-close",styles:h.buttonClose,...n}),R.createElement("div",{key:"JoyrideTooltip","aria-label":Xn(g??c),className:"react-joyride__tooltip",style:h.tooltip,...l},R.createElement("div",{style:h.tooltipContainer},g&&R.createElement("h1",{"aria-label":Xn(g),style:h.tooltipTitle},g),R.createElement("div",{style:h.tooltipContent},c)),!f&&R.createElement("div",{style:h.tooltipFooter},R.createElement("div",{style:h.tooltipFooterSpacer},_.skip),_.back,_.primary),_.close)}var fR=dR,pR=class extends R.Component{constructor(){super(...arguments),te(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),te(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),te(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),te(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),te(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:a,close:s,last:l,next:c,nextLabelWithProgress:d,skip:u}=o.locale,f=Xn(a),p=Xn(s),h=Xn(l),g=Xn(c),_=Xn(u);let m=s,b=p;if(e){if(m=c,b=g,o.showProgress&&!n){const C=Xn(d,{step:t+1,steps:i});m=xd(d,t+1,i),b=C}n&&(m=l,b=h)}return{backProps:{"aria-label":f,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:f},closeProps:{"aria-label":p,children:s,"data-action":"close",onClick:this.handleClickClose,role:"button",title:p},primaryProps:{"aria-label":b,children:m,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:b},skipProps:{"aria-label":_,children:u,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:_},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:s,...l}=o;let c;if(s){const d={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},u=s;c=R.createElement(u,{...d})}else c=R.createElement(fR,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return c}},hR=class extends R.Component{constructor(){super(...arguments),te(this,"scope",null),te(this,"tooltip",null),te(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:ue.TOOLTIP})}),te(this,"setTooltipRef",e=>{this.tooltip=e}),te(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||o.placement==="center")&&i===ue.INIT&&a.update({action:r,lifecycle:ue.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),te(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return R.createElement(pR,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;vi({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:a,helpers:s,index:l,lifecycle:c,shouldScroll:d,status:u,step:f,store:p}=this.props,{changed:h,changedFrom:g}=Il(e,this.props),_=s.info(),m=i&&n!==Ee.CLOSE&&(l>0||n===Ee.PREV),b=h("action")||h("index")||h("lifecycle")||h("status"),C=g("lifecycle",[ue.TOOLTIP,ue.INIT],ue.INIT),x=h("action",[Ee.NEXT,Ee.PREV,Ee.SKIP,Ee.CLOSE]),w=o&&l===e.index;if(x&&(C||w)&&r({..._,index:e.index,lifecycle:ue.COMPLETE,step:e.step,type:kn.STEP_AFTER}),f.placement==="center"&&u===_e.RUNNING&&h("index")&&n!==Ee.START&&c===ue.INIT&&p.update({lifecycle:ue.READY}),b){const k=vr(f.target),S=!!k;S&&BN(k)?(g("status",_e.READY,_e.RUNNING)||g("lifecycle",ue.INIT,ue.READY))&&r({..._,step:f,type:kn.STEP_BEFORE}):(console.warn(S?"Target not visible":"Target not mounted",f),r({..._,type:kn.TARGET_NOT_FOUND,step:f}),o||p.update({index:l+(n===Ee.PREV?-1:1)}))}g("lifecycle",ue.INIT,ue.READY)&&p.update({lifecycle:Q5(f)||m?ue.TOOLTIP:ue.BEACON}),h("index")&&vi({title:`step:${c}`,data:[{key:"props",value:this.props}],debug:a}),h("lifecycle",ue.BEACON)&&r({..._,step:f,type:kn.BEACON}),h("lifecycle",ue.TOOLTIP)&&(r({..._,step:f,type:kn.TOOLTIP}),d&&this.tooltip&&(this.scope=new sR(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),g("lifecycle",[ue.TOOLTIP,ue.INIT],ue.INIT)&&((t=this.scope)==null||t.removeScope(),p.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return Q5(t)||e===ue.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,s=vr(a.target);return!n9(a)||!J.domElement(s)?null:R.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},R.createElement(wd,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},R.createElement(lR,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:a,styles:a.styles})))}},a9=class extends R.Component{constructor(e){super(e),te(this,"helpers"),te(this,"store"),te(this,"callback",a=>{const{callback:s}=this.props;J.function(s)&&s(a)}),te(this,"handleKeyboard",a=>{const{index:s,lifecycle:l}=this.state,{steps:c}=this.props,d=c[s];l===ue.TOOLTIP&&a.code==="Escape"&&d&&!d.disableCloseOnEsc&&this.store.close("keyboard")}),te(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:s}=this.props;ho(this.props,s[a]).disableOverlayClose||this.helpers.close("overlay")}),te(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=nR({...e,controlled:r&&J.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;vi({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!Vr())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;r9(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!Vr())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:a,run:s,stepIndex:l,steps:c}=this.props,{stepIndex:d,steps:u}=e,{reset:f,setSteps:p,start:h,stop:g,update:_}=this.store,{changed:m}=Il(e,this.props),{changed:b,changedFrom:C}=Il(t,this.state),x=ho(this.props,c[i]),w=!Ot(u,c),k=J.number(l)&&m("stepIndex"),S=vr(x.target);if(w&&(r9(c,a)?p(c):console.warn("Steps are not valid",c)),m("run")&&(s?h(l):g()),k){let T=J.number(d)&&d<l?Ee.NEXT:Ee.PREV;n===Ee.STOP&&(T=Ee.START),[_e.FINISHED,_e.SKIPPED].includes(o)||_({action:n===Ee.CLOSE?Ee.CLOSE:T,index:l,lifecycle:ue.INIT})}!r&&o===_e.RUNNING&&i===0&&!S&&(this.store.update({index:i+1}),this.callback({...this.state,type:kn.TARGET_NOT_FOUND,step:x}));const M={...this.state,index:i,step:x};if(b("action",[Ee.NEXT,Ee.PREV,Ee.SKIP,Ee.CLOSE])&&b("status",_e.PAUSED)){const T=ho(this.props,c[t.index]);this.callback({...M,index:t.index,lifecycle:ue.COMPLETE,step:T,type:kn.STEP_AFTER})}if(b("status",[_e.FINISHED,_e.SKIPPED])){const T=ho(this.props,c[t.index]);r||this.callback({...M,index:t.index,lifecycle:ue.COMPLETE,step:T,type:kn.STEP_AFTER}),this.callback({...M,type:kn.TOUR_END,step:T,index:t.index}),f()}else C("status",[_e.IDLE,_e.READY],_e.RUNNING)?this.callback({...M,type:kn.TOUR_START}):(b("status")||b("action",Ee.RESET))&&this.callback({...M,type:kn.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:a,scrollOffset:s=20,scrollToFirstStep:l=!1,steps:c}=this.props,d=ho(this.props,c[t]),u=vr(d.target),f=qN({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:d,target:u});if(r===_e.RUNNING&&f){const p=Bl(u,o),h=Na(u,o);let g=Math.floor($N(u,s,o))||0;vi({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const _=this.store.getPopper("beacon"),m=this.store.getPopper("tooltip");if(n===ue.BEACON&&_){const{offsets:b,placement:C}=_;!["bottom"].includes(C)&&!p&&(g=Math.floor(b.popper.top-s))}else if(n===ue.TOOLTIP&&m){const{flipped:b,offsets:C,placement:x}=m;["top","right","left"].includes(x)&&!b&&!p?g=Math.floor(C.popper.top-s):g-=d.spotlightPadding}g=g>=0?g:0,r===_e.RUNNING&&zN(g,{element:h,duration:a}).then(()=>{setTimeout(()=>{var b;(b=this.store.getPopper("tooltip"))==null||b.instance.update()},10)})}}render(){if(!Vr())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:s}=this.props,l=n===_e.RUNNING,c={};if(l&&s[e]){const d=ho(this.props,s[e]);c.step=R.createElement(hR,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!d.disableScrolling&&(e!==0||a),step:d,store:this.store}),c.overlay=R.createElement(aR,{id:"react-joyride-portal"},R.createElement(oR,{...d,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return R.createElement("div",{className:"react-joyride"},c.step,c.overlay)}};te(a9,"defaultProps",QN);var mR=a9;const mo={hotspot:"_hotspot_q7k3d_1",hotspot_header:"_hotspot_header_q7k3d_8",hotspotClose:"_hotspotClose_q7k3d_12",hotspotTitle:"_hotspotTitle_q7k3d_28",hotspot_content:"_hotspot_content_q7k3d_31",hotspot_footer:"_hotspot_footer_q7k3d_38"},_R=({step:e,tooltipProps:t})=>{const{className:n,closeLabel:r,onClose:i}=e.data;return y.jsxs("section",{...t,"aria-modal":void 0,className:E(mo.hotspot,n),children:[y.jsxs("header",{className:mo.hotspot_header,children:[y.jsx("button",{type:"button","aria-label":r,className:mo.hotspotClose,onClick:i,children:y.jsx(ie,{name:"close",size:"md",color:"neutral-70"})}),e.title&&y.jsx(yt,{type:"h2",className:mo.hotspotTitle,children:e.title})]}),y.jsx("div",{className:mo.hotspot_content,children:e.content}),y.jsx("footer",{className:mo.hotspot_footer,children:y.jsx(Gr,{variant:"primary",onClick:i,children:r})})]})},gR=v.forwardRef(function({continuous:t,index:n,isLastStep:r,size:i,step:o,title:a,...s},l){const{beacon:c}=o.data;return c?y.jsx(ed,{...s,ref:l,label:c.label,className:c.className}):null}),s9=e=>{const{className:t,closeLabel:n,content:r,isOpen:i,onClose:o,onOpen:a,placement:s="bottom",showBeacon:l=!1,spotlightPadding:c=8,target:d,title:u,zIndex:f=1e3}=e,p={className:t,closeLabel:n,onClose:o,...e.showBeacon&&{beacon:{className:e.beaconClassName,label:e.beaconLabel}}},[h,g]=v.useState(!1),_=({lifecycle:m})=>{g(m==="tooltip"),m==="tooltip"&&(a==null||a())};return v.useEffect(()=>{if(!h)return;const m=({key:b})=>b==="Escape"&&o();return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[h,o]),y.jsx(mR,{beaconComponent:l?gR:void 0,callback:_,continuous:!1,disableCloseOnEsc:!0,disableOverlayClose:!0,disableScrolling:!0,hideCloseButton:!0,run:i,stepIndex:0,steps:[{content:r,data:p,disableBeacon:!l,placement:s,spotlightPadding:c,target:d,title:u}],styles:{options:{arrowColor:"var(--color-neutral-00)",overlayColor:"var(--color-gray-90-70)",zIndex:f}},tooltipComponent:_R})};s9.prototype={avocado:"Hotspot"};const yR={sidebarMenu:"_sidebarMenu_tjkbs_1"},l9=({isOpen:e=!1,origin:t="left",children:n,closeOnOverlayClick:r=!0,heightGap:i,onClose:o})=>y.jsx(H2,{isOpen:e,origin:t,contentClassName:yR.sidebarMenu,closeOnOverlayClick:r,heightGap:i,onClose:()=>o==null?void 0:o(),children:n}),kd=v.createContext({});function Sd(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const c9=typeof window<"u"?v.useLayoutEffect:v.useEffect,$l=v.createContext(null);function Td(e,t){e.indexOf(t)===-1&&e.push(t)}function zl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Jn=(e,t,n)=>n>t?t:n<e?e:n;let Md=()=>{};const Br={},u9=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function d9(e){return typeof e=="object"&&e!==null}const f9=e=>/^0[^.\s]+$/u.test(e);function p9(e){let t;return()=>(t===void 0&&(t=e()),t)}const fn=e=>e,bR=(e,t)=>n=>t(e(n)),Fa=(...e)=>e.reduce(bR),Va=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Dd{constructor(){this.subscriptions=[]}add(t){return Td(this.subscriptions,t),()=>zl(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const en=e=>e*1e3,pn=e=>e/1e3;function h9(e,t){return t?e*(1e3/t):0}const m9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,vR=1e-7,CR=12;function wR(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=m9(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>vR&&++s<CR);return a}function Ba(e,t,n,r){if(e===t&&n===r)return fn;const i=o=>wR(o,0,1,e,n);return o=>o===0||o===1?o:m9(i(o),t,r)}const _9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,g9=e=>t=>1-e(1-t),y9=Ba(.33,1.53,.69,.99),Ld=g9(y9),b9=_9(Ld),v9=e=>e>=1?1:(e*=2)<1?.5*Ld(e):.5*(2-Math.pow(2,-10*(e-1))),Pd=e=>1-Math.sin(Math.acos(e)),C9=g9(Pd),w9=_9(Pd),xR=Ba(.42,0,1,1),kR=Ba(0,0,.58,1),x9=Ba(.42,0,.58,1),SR=e=>Array.isArray(e)&&typeof e[0]!="number",k9=e=>Array.isArray(e)&&typeof e[0]=="number",TR={linear:fn,easeIn:xR,easeInOut:x9,easeOut:kR,circIn:Pd,circInOut:w9,circOut:C9,backIn:Ld,backInOut:b9,backOut:y9,anticipate:v9},MR=e=>typeof e=="string",S9=e=>{if(k9(e)){Md(e.length===4);const[t,n,r,i]=e;return Ba(t,n,r,i)}else if(MR(e))return TR[e];return e},Wl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function DR(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(d){a.has(d)&&(c.schedule(d),e()),d(s)}const c={schedule:(d,u=!1,f=!1)=>{const h=f&&i?n:r;return u&&a.add(d),h.add(d),d},cancel:d=>{r.delete(d),a.delete(d)},process:d=>{if(s=d,i){o=!0;return}i=!0;const u=n;n=r,r=u,n.forEach(l),n.clear(),i=!1,o&&(o=!1,c.process(d))}};return c}const LR=40;function T9(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Wl.reduce((C,x)=>(C[x]=DR(o),C),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:f,render:p,postRender:h}=a,g=()=>{const C=Br.useManualTiming,x=C?i.timestamp:performance.now();n=!1,C||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,LR),1)),i.timestamp=x,i.isProcessing=!0,s.process(i),l.process(i),c.process(i),d.process(i),u.process(i),f.process(i),p.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},_=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:Wl.reduce((C,x)=>{const w=a[x];return C[x]=(k,S=!1,M=!1)=>(n||_(),w.schedule(k,S,M)),C},{}),cancel:C=>{for(let x=0;x<Wl.length;x++)a[Wl[x]].cancel(C)},state:i,steps:a}}const{schedule:Ve,cancel:Hr,state:_t,steps:Ed}=T9(typeof requestAnimationFrame<"u"?requestAnimationFrame:fn,!0);let Yl;function PR(){Yl=void 0}const At={now:()=>(Yl===void 0&&At.set(_t.isProcessing||Br.useManualTiming?_t.timestamp:performance.now()),Yl),set:e=>{Yl=e,queueMicrotask(PR)}},M9=e=>t=>typeof t=="string"&&t.startsWith(e),D9=M9("--"),ER=M9("var(--"),Id=e=>ER(e)?IR.test(e.split("/*")[0].trim()):!1,IR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function L9(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const _o={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ha={..._o,transform:e=>Jn(0,1,e)},Ul={..._o,default:1},$a=e=>Math.round(e*1e5)/1e5,Od=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function OR(e){return e==null}const AR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ad=(e,t)=>n=>!!(typeof n=="string"&&AR.test(n)&&n.startsWith(e)||t&&!OR(n)&&Object.prototype.hasOwnProperty.call(n,t)),P9=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,s]=r.match(Od);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},NR=e=>Jn(0,255,e),Nd={..._o,transform:e=>Math.round(NR(e))},Ci={test:Ad("rgb","red"),parse:P9("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Nd.transform(e)+", "+Nd.transform(t)+", "+Nd.transform(n)+", "+$a(Ha.transform(r))+")"};function RR(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Rd={test:Ad("#"),parse:RR,transform:Ci.transform},za=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$r=za("deg"),er=za("%"),ee=za("px"),jR=za("vh"),FR=za("vw"),E9={...er,parse:e=>er.parse(e)/100,transform:e=>er.transform(e*100)},go={test:Ad("hsl","hue"),parse:P9("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+er.transform($a(t))+", "+er.transform($a(n))+", "+$a(Ha.transform(r))+")"},st={test:e=>Ci.test(e)||Rd.test(e)||go.test(e),parse:e=>Ci.test(e)?Ci.parse(e):go.test(e)?go.parse(e):Rd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ci.transform(e):go.transform(e),getAnimatableNone:e=>{const t=st.parse(e);return t.alpha=0,st.transform(t)}},VR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function BR(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Od))==null?void 0:t.length)||0)+(((n=e.match(VR))==null?void 0:n.length)||0)>0}const I9="number",O9="color",HR="var",$R="var(",A9="${}",zR=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function yo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(zR,l=>(st.test(l)?(r.color.push(o),i.push(O9),n.push(st.parse(l))):l.startsWith($R)?(r.var.push(o),i.push(HR),n.push(l)):(r.number.push(o),i.push(I9),n.push(parseFloat(l))),++o,A9)).split(A9);return{values:n,split:s,indexes:r,types:i}}function WR(e){return yo(e).values}function N9({split:e,types:t}){const n=e.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],r[o]!==void 0){const a=t[o];a===I9?i+=$a(r[o]):a===O9?i+=st.transform(r[o]):i+=r[o]}return i}}function YR(e){return N9(yo(e))}const UR=e=>typeof e=="number"?0:st.test(e)?st.getAnimatableNone(e):e,ZR=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:UR(e);function qR(e){const t=yo(e);return N9(t)(t.values.map((r,i)=>ZR(r,t.split[i])))}const Sn={test:BR,parse:WR,createTransformer:YR,getAnimatableNone:qR};function jd(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 GR({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=jd(l,s,e+1/3),o=jd(l,s,e),a=jd(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Zl(e,t){return n=>n>0?t:e}const ze=(e,t,n)=>e+(t-e)*n,Fd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},KR=[Rd,Ci,go],QR=e=>KR.find(t=>t.test(e));function R9(e){const t=QR(e);if(!t)return!1;let n=t.parse(e);return t===go&&(n=GR(n)),n}const j9=(e,t)=>{const n=R9(e),r=R9(t);if(!n||!r)return Zl(e,t);const i={...n};return o=>(i.red=Fd(n.red,r.red,o),i.green=Fd(n.green,r.green,o),i.blue=Fd(n.blue,r.blue,o),i.alpha=ze(n.alpha,r.alpha,o),Ci.transform(i))},Vd=new Set(["none","hidden"]);function XR(e,t){return Vd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function JR(e,t){return n=>ze(e,t,n)}function Bd(e){return typeof e=="number"?JR:typeof e=="string"?Id(e)?Zl:st.test(e)?j9:nj:Array.isArray(e)?F9:typeof e=="object"?st.test(e)?j9:ej:Zl}function F9(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Bd(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function ej(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Bd(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function tj(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],a=e.indexes[o][r[o]],s=e.values[a]??0;n[i]=s,r[o]++}return n}const nj=(e,t)=>{const n=Sn.createTransformer(t),r=yo(e),i=yo(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Vd.has(e)&&!i.values.length||Vd.has(t)&&!r.values.length?XR(e,t):Fa(F9(tj(r,i),i.values),n):Zl(e,t)};function V9(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ze(e,t,n):Bd(e)(e,t)}const rj=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ve.update(t,n),stop:()=>Hr(t),now:()=>_t.isProcessing?_t.timestamp:At.now()}},B9=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},ql=2e4;function Hd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ql;)t+=n,r=e.next(t);return t>=ql?1/0:t}function ij(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Hd(r),ql);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:pn(i)}}const Xe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function $d(e,t){return e*Math.sqrt(1-t*t)}const oj=12;function aj(e,t,n){let r=n;for(let i=1;i<oj;i++)r=r-e(r)/t(r);return r}const zd=.001;function sj({duration:e=Xe.duration,bounce:t=Xe.bounce,velocity:n=Xe.velocity,mass:r=Xe.mass}){let i,o,a=1-t;a=Jn(Xe.minDamping,Xe.maxDamping,a),e=Jn(Xe.minDuration,Xe.maxDuration,pn(e)),a<1?(i=c=>{const d=c*a,u=d*e,f=d-n,p=$d(c,a),h=Math.exp(-u);return zd-f/p*h},o=c=>{const u=c*a*e,f=u*n+n,p=Math.pow(a,2)*Math.pow(c,2)*e,h=Math.exp(-u),g=$d(Math.pow(c,2),a);return(-i(c)+zd>0?-1:1)*((f-p)*h)/g}):(i=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-zd+d*u},o=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const s=5/e,l=aj(i,o,s);if(e=en(e),isNaN(l))return{stiffness:Xe.stiffness,damping:Xe.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:a*2*Math.sqrt(r*c),duration:e}}}const lj=["duration","bounce"],cj=["stiffness","damping","mass"];function H9(e,t){return t.some(n=>e[n]!==void 0)}function uj(e){let t={velocity:Xe.velocity,stiffness:Xe.stiffness,damping:Xe.damping,mass:Xe.mass,isResolvedFromDuration:!1,...e};if(!H9(e,cj)&&H9(e,lj))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Jn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Xe.mass,stiffness:i,damping:o}}else{const n=sj({...e,velocity:0});t={...t,...n,mass:Xe.mass},t.isResolvedFromDuration=!0}return t}function Gl(e=Xe.visualDuration,t=Xe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:o},{stiffness:l,damping:c,mass:d,duration:u,velocity:f,isResolvedFromDuration:p}=uj({...n,velocity:-pn(n.velocity||0)}),h=f||0,g=c/(2*Math.sqrt(l*d)),_=a-o,m=pn(Math.sqrt(l/d)),b=Math.abs(_)<5;r||(r=b?Xe.restSpeed.granular:Xe.restSpeed.default),i||(i=b?Xe.restDelta.granular:Xe.restDelta.default);let C,x,w,k,S,M;if(g<1)w=$d(m,g),k=(h+g*m*_)/w,C=T=>{const I=Math.exp(-g*m*T);return a-I*(k*Math.sin(w*T)+_*Math.cos(w*T))},S=g*m*k+_*w,M=g*m*_-k*w,x=T=>Math.exp(-g*m*T)*(S*Math.sin(w*T)+M*Math.cos(w*T));else if(g===1){C=I=>a-Math.exp(-m*I)*(_+(h+m*_)*I);const T=h+m*_;x=I=>Math.exp(-m*I)*(m*T*I-h)}else{const T=m*Math.sqrt(g*g-1);C=N=>{const A=Math.exp(-g*m*N),j=Math.min(T*N,300);return a-A*((h+g*m*_)*Math.sinh(j)+T*_*Math.cosh(j))/T};const I=(h+g*m*_)/T,O=g*m*I-_*T,V=g*m*_-I*T;x=N=>{const A=Math.exp(-g*m*N),j=Math.min(T*N,300);return A*(O*Math.sinh(j)+V*Math.cosh(j))}}const P={calculatedDuration:p&&u||null,velocity:T=>en(x(T)),next:T=>{if(!p&&g<1){const O=Math.exp(-g*m*T),V=Math.sin(w*T),N=Math.cos(w*T),A=a-O*(k*V+_*N),j=en(O*(S*V+M*N));return s.done=Math.abs(j)<=r&&Math.abs(a-A)<=i,s.value=s.done?a:A,s}const I=C(T);if(p)s.done=T>=u;else{const O=en(x(T));s.done=Math.abs(O)<=r&&Math.abs(a-I)<=i}return s.value=s.done?a:I,s},toString:()=>{const T=Math.min(Hd(P),ql),I=B9(O=>P.next(T*O).value,T,30);return T+"ms "+I},toTransition:()=>{}};return P}Gl.applyToOptions=e=>{const t=ij(e,100,Gl);return e.ease=t.ease,e.duration=en(t.duration),e.type="keyframes",e};const dj=5;function $9(e,t,n){const r=Math.max(t-dj,0);return h9(n-e(r),t-r)}function Wd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],f={done:!1,value:u},p=M=>s!==void 0&&M<s||l!==void 0&&M>l,h=M=>s===void 0?l:l===void 0||Math.abs(s-M)<Math.abs(l-M)?s:l;let g=n*t;const _=u+g,m=a===void 0?_:a(_);m!==_&&(g=m-u);const b=M=>-g*Math.exp(-M/r),C=M=>m+b(M),x=M=>{const P=b(M),T=C(M);f.done=Math.abs(P)<=c,f.value=f.done?m:T};let w,k;const S=M=>{p(f.value)&&(w=M,k=Gl({keyframes:[f.value,h(f.value)],velocity:$9(C,M,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:d}))};return S(0),{calculatedDuration:null,next:M=>{let P=!1;return!k&&w===void 0&&(P=!0,x(M),S(M)),w!==void 0&&M>=w?k.next(M-w):(!P&&x(M),f)}}}function fj(e,t,n){const r=[],i=n||Br.mix||V9,o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||fn:t;s=Fa(l,s)}r.push(s)}return r}function pj(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Md(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=fj(t,r,i),l=s.length,c=d=>{if(a&&d<e[0])return t[0];let u=0;if(l>1)for(;u<e.length-2&&!(d<e[u+1]);u++);const f=Va(e[u],e[u+1],d);return s[u](f)};return n?d=>c(Jn(e[0],e[o-1],d)):c}function hj(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Va(0,t,r);e.push(ze(n,1,i))}}function mj(e){const t=[0];return hj(t,e.length-1),t}function _j(e,t){return e.map(n=>n*t)}function gj(e,t){return e.map(()=>t||x9).splice(0,e.length-1)}function Wa({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=SR(r)?r.map(S9):S9(r),o={done:!1,value:t[0]},a=_j(n&&n.length===t.length?n:mj(t),e),s=pj(a,t,{ease:Array.isArray(i)?i:gj(t,i)});return{calculatedDuration:e,next:l=>(o.value=s(l),o.done=l>=e,o)}}const yj=e=>e!==null;function Kl(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(yj),s=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!s||r===void 0?o[s]:r}const bj={decay:Wd,inertia:Wd,tween:Wa,keyframes:Wa,spring:Gl};function z9(e){typeof e.type=="string"&&(e.type=bj[e.type])}class Yd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const vj=e=>e/100;class Ql extends Yd{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==At.now()&&this.tick(At.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;z9(t);const{type:n=Wa,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=t;let{keyframes:s}=t;const l=n||Wa;l!==Wa&&typeof s[0]!="number"&&(this.mixKeyframes=Fa(vj,V9(s[0],s[1])),s=[0,100]);const c=l({...t,keyframes:s});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Hd(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:u,repeatType:f,repeatDelay:p,type:h,onUpdate:g,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let C=this.currentTime,x=r;if(u){const M=Math.min(this.currentTime,i)/s;let P=Math.floor(M),T=M%1;!T&&M>=1&&(T=1),T===1&&P--,P=Math.min(P,u+1),!!(P%2)&&(f==="reverse"?(T=1-T,p&&(T-=p/s)):f==="mirror"&&(x=a)),C=Jn(0,1,T)*s}let w;b?(this.delayState.value=d[0],w=this.delayState):w=x.next(C),o&&!b&&(w.value=o(w.value));let{done:k}=w;!b&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return S&&h!==Wd&&(w.value=Kl(d,this.options,_,this.speed)),g&&g(w.value),S&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return pn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pn(t)}get time(){return pn(this.currentTime)}set time(t){t=en(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return $9(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(At.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=pn(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=rj,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(At.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Cj(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const wi=e=>e*180/Math.PI,Ud=e=>{const t=wi(Math.atan2(e[1],e[0]));return Zd(t)},wj={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ud,rotateZ:Ud,skewX:e=>wi(Math.atan(e[1])),skewY:e=>wi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Zd=e=>(e=e%360,e<0&&(e+=360),e),W9=Ud,Y9=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),U9=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),xj={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Y9,scaleY:U9,scale:e=>(Y9(e)+U9(e))/2,rotateX:e=>Zd(wi(Math.atan2(e[6],e[5]))),rotateY:e=>Zd(wi(Math.atan2(-e[2],e[0]))),rotateZ:W9,rotate:W9,skewX:e=>wi(Math.atan(e[4])),skewY:e=>wi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function qd(e){return e.includes("scale")?1:0}function Gd(e,t){if(!e||e==="none")return qd(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=xj,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=wj,i=s}if(!i)return qd(t);const o=r[t],a=i[1].split(",").map(Sj);return typeof o=="function"?o(a):a[o]}const kj=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Gd(n,t)};function Sj(e){return parseFloat(e.trim())}const bo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vo=new Set(bo),Z9=e=>e===_o||e===ee,Tj=new Set(["x","y","z"]),Mj=bo.filter(e=>!Tj.has(e));function Dj(e){const t=[];return Mj.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const zr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Gd(t,"x"),y:(e,{transform:t})=>Gd(t,"y")};zr.translateX=zr.x,zr.translateY=zr.y;const xi=new Set;let Kd=!1,Qd=!1,Xd=!1;function q9(){if(Qd){const e=Array.from(xi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Dj(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var s;(s=r.getValue(o))==null||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Qd=!1,Kd=!1,xi.forEach(e=>e.complete(Xd)),xi.clear()}function G9(){xi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Qd=!0)})}function Lj(){Xd=!0,G9(),q9(),Xd=!1}class Jd{constructor(t,n,r,i,o,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(xi.add(this),Kd||(Kd=!0,Ve.read(G9),Ve.resolveKeyframes(q9))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const s=r.readValue(n,a);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}Cj(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xi.delete(this)}cancel(){this.state==="scheduled"&&(xi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Pj=e=>e.startsWith("--");function K9(e,t,n){Pj(t)?e.style.setProperty(t,n):e.style[t]=n}const Ej={};function Q9(e,t){const n=p9(e);return()=>Ej[t]??n()}const Ij=Q9(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),X9=Q9(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ya=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,J9={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ya([0,.65,.55,1]),circOut:Ya([.55,0,1,.45]),backIn:Ya([.31,.01,.66,-.59]),backOut:Ya([.33,1.53,.69,.99])};function em(e,t){if(e)return typeof e=="function"?X9()?B9(e,t):"ease-out":k9(e)?Ya(e):Array.isArray(e)?e.map(n=>em(n,t)||J9.easeOut):J9[e]}function Oj(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const u=em(s,i);Array.isArray(u)&&(d.easing=u);const f={delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(d,f)}function tm(e){return typeof e=="function"&&"applyToOptions"in e}function Aj({type:e,...t}){return tm(e)&&X9()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class nm extends Yd{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:a=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=a,this.options=t,Md(typeof t.type!="string");const c=Aj(t);this.animation=Oj(n,r,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const d=Kl(i,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(d),K9(n,r,d),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return pn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pn(t)}get time(){return pn(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=en(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:i}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Ij()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),fn):i(this)}}const rm={anticipate:v9,backInOut:b9,circInOut:w9};function Nj(e){return e in rm}function Rj(e){typeof e.ease=="string"&&Nj(e.ease)&&(e.ease=rm[e.ease])}const e3=10;class jj extends nm{constructor(t){Rj(t),z9(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new Ql({...a,autoplay:!1}),l=Math.max(e3,At.now()-this.startTime),c=Jn(0,e3,l-e3),d=s.sample(l).value,{name:u}=this.options;o&&u&&K9(o,u,d),n.setWithVelocity(s.sample(Math.max(0,l-c)).value,d,c),s.stop()}}const im=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Sn.test(e)||e==="0")&&!e.startsWith("url("));function Fj(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Vj(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=im(i,t),s=im(o,t);return!a||!s?!1:Fj(e)||(n==="spring"||tm(n))&&r}function t3(e){e.duration=0,e.type="keyframes"}const om=new Set(["opacity","clipPath","filter","transform"]),Bj=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Hj(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Bj.test(e[t]))return!0;return!1}const $j=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),zj=p9(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Wj(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a,keyframes:s}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return zj()&&n&&(om.has(n)||$j.has(n)&&Hj(s))&&(n!=="transform"||!d)&&!c&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}const Yj=40;class Uj extends Yd{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",keyframes:s,name:l,motionValue:c,element:d,...u}){var h;super(),this.stop=()=>{var g,_;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(_=this.keyframeResolver)==null||_.cancel()},this.createdAt=At.now();const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,name:l,motionValue:c,element:d,...u},p=(d==null?void 0:d.KeyframeResolver)||Jd;this.keyframeResolver=new p(s,(g,_,m)=>this.onKeyframesResolved(g,_,f,!m),l,c,d),(h=this.keyframeResolver)==null||h.scheduleResolve()}onKeyframesResolved(t,n,r,i){var m,b;this.keyframeResolver=void 0;const{name:o,type:a,velocity:s,delay:l,isHandoff:c,onUpdate:d}=r;this.resolvedAt=At.now();let u=!0;Vj(t,o,a,s)||(u=!1,(Br.instantAnimations||!l)&&(d==null||d(Kl(t,r,n))),t[0]=t[t.length-1],t3(r),r.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Yj?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=u&&!c&&Wj(p),g=(b=(m=p.motionValue)==null?void 0:m.owner)==null?void 0:b.current;let _;if(h)try{_=new jj({...p,element:g})}catch{_=new Ql(p)}else _=new Ql(p);_.finished.then(()=>{this.notifyFinished()}).catch(fn),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Lj()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function am(e,t,n,r=0,i=1){const o=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),a=e.size,s=(a-1)*r;return typeof n=="function"?n(o,a):i===1?o*r:s-o*r}const Zj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qj(e){const t=Zj.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function sm(e,t,n=1){const[r,i]=qj(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return u9(a)?parseFloat(a):a}return Id(i)?sm(i,t,n+1):i}const Gj={type:"spring",stiffness:500,damping:25,restSpeed:10},Kj=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Qj={type:"keyframes",duration:.8},Xj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Jj=(e,{keyframes:t})=>t.length>2?Qj:vo.has(e)?e.startsWith("scale")?Kj(t[1]):Gj:Xj;function lm(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function n3(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?lm(n,e):n}const eF=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function tF(e){for(const t in e)if(!eF.has(t))return!0;return!1}const r3=(e,t,n,r={},i,o)=>a=>{const s=n3(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c=c-en(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};tF(s)||Object.assign(d,Jj(e,d)),d.duration&&(d.duration=en(d.duration)),d.repeatDelay&&(d.repeatDelay=en(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(t3(d),d.delay===0&&(u=!0)),(Br.instantAnimations||Br.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(u=!0,t3(d),d.delay=0),d.allowFlatten=!s.type&&!s.ease,u&&!o&&t.get()!==void 0){const f=Kl(d.keyframes,s);if(f!==void 0){Ve.update(()=>{d.onUpdate(f),d.onComplete()});return}}return s.isSync?new Ql(d):new Uj(d)};function cm(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function i3(e,t,n,r){if(typeof t=="function"){const[i,o]=cm(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=cm(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function ki(e,t,n){const r=e.getProps();return i3(r,t,n!==void 0?n:r.custom,e)}const um=new Set(["width","height","top","left","right","bottom",...bo]),dm=30,nF=e=>!isNaN(parseFloat(e));class rF{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=At.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=At.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=nF(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Dd);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ve.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=At.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>dm)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,dm);return h9(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Co(e,t){return new rF(e,t)}const o3=e=>Array.isArray(e);function iF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Co(n))}function oF(e){return o3(e)?e[e.length-1]||0:e}function aF(e,t){const n=ki(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const s=oF(o[a]);iF(e,a,s)}}const gt=e=>!!(e&&e.getVelocity);function sF(e){return!!(gt(e)&&e.add)}function a3(e,t){const n=e.getValue("willChange");if(sF(n))return n.add(t);if(!n&&Br.WillChange){const r=new Br.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function s3(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const fm="data-"+s3("framerAppearId");function pm(e){return e.props[fm]}function lF({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function hm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:a,...s}=t;const l=e.getDefaultTransition();o=o?lm(o,l):l;const c=o==null?void 0:o.reduceMotion;r&&(o=r);const d=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const f in s){const p=e.getValue(f,e.latestValues[f]??null),h=s[f];if(h===void 0||u&&lF(u,f))continue;const g={delay:n,...n3(o||{},f)},_=p.get();if(_!==void 0&&!p.isAnimating()&&!Array.isArray(h)&&h===_&&!g.velocity){Ve.update(()=>p.set(h));continue}let m=!1;if(window.MotionHandoffAnimation){const x=pm(e);if(x){const w=window.MotionHandoffAnimation(x,f,Ve);w!==null&&(g.startTime=w,m=!0)}}a3(e,f);const b=c??e.shouldReduceMotion;p.start(r3(f,p,h,b&&um.has(f)?{type:!1}:g,e,m));const C=p.animation;C&&d.push(C)}if(a){const f=()=>Ve.update(()=>{a&&aF(e,a)});d.length?Promise.all(d).then(f):f()}return d}function l3(e,t,n={}){var l;const r=ki(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(hm(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:f}=i;return cF(e,t,c,d,u,f,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[c,d]=s==="beforeChildren"?[o,a]:[a,o];return c().then(()=>d())}else return Promise.all([o(),a(n.delay)])}function cF(e,t,n=0,r=0,i=0,o=1,a){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(l3(l,t,{...a,delay:n+(typeof r=="function"?0:r)+am(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function uF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>l3(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=l3(e,t,n);else{const i=typeof t=="function"?ki(e,t,n.custom):t;r=Promise.all(hm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const dF={test:e=>e==="auto",parse:e=>e},mm=e=>t=>t.test(e),_m=[_o,ee,er,$r,FR,jR,dF],gm=e=>_m.find(mm(e));function fF(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||f9(e):!0}const pF=new Set(["brightness","contrast","saturate","opacity"]);function hF(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Od)||[];if(!r)return e;const i=n.replace(r,"");let o=pF.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const mF=/\b([a-z-]*)\(.*?\)/gu,c3={...Sn,getAnimatableNone:e=>{const t=e.match(mF);return t?t.map(hF).join(" "):e}},u3={...Sn,getAnimatableNone:e=>{const t=Sn.parse(e);return Sn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},ym={..._o,transform:Math.round},d3={borderWidth:ee,borderTopWidth:ee,borderRightWidth:ee,borderBottomWidth:ee,borderLeftWidth:ee,borderRadius:ee,borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomRightRadius:ee,borderBottomLeftRadius:ee,width:ee,maxWidth:ee,height:ee,maxHeight:ee,top:ee,right:ee,bottom:ee,left:ee,inset:ee,insetBlock:ee,insetBlockStart:ee,insetBlockEnd:ee,insetInline:ee,insetInlineStart:ee,insetInlineEnd:ee,padding:ee,paddingTop:ee,paddingRight:ee,paddingBottom:ee,paddingLeft:ee,paddingBlock:ee,paddingBlockStart:ee,paddingBlockEnd:ee,paddingInline:ee,paddingInlineStart:ee,paddingInlineEnd:ee,margin:ee,marginTop:ee,marginRight:ee,marginBottom:ee,marginLeft:ee,marginBlock:ee,marginBlockStart:ee,marginBlockEnd:ee,marginInline:ee,marginInlineStart:ee,marginInlineEnd:ee,fontSize:ee,backgroundPositionX:ee,backgroundPositionY:ee,...{rotate:$r,rotateX:$r,rotateY:$r,rotateZ:$r,scale:Ul,scaleX:Ul,scaleY:Ul,scaleZ:Ul,skew:$r,skewX:$r,skewY:$r,distance:ee,translateX:ee,translateY:ee,translateZ:ee,x:ee,y:ee,z:ee,perspective:ee,transformPerspective:ee,opacity:Ha,originX:E9,originY:E9,originZ:ee},zIndex:ym,fillOpacity:Ha,strokeOpacity:Ha,numOctaves:ym},_F={...d3,color:st,backgroundColor:st,outlineColor:st,fill:st,stroke:st,borderColor:st,borderTopColor:st,borderRightColor:st,borderBottomColor:st,borderLeftColor:st,filter:c3,WebkitFilter:c3,mask:u3,WebkitMask:u3},bm=e=>_F[e],gF=new Set([c3,u3]);function vm(e,t){let n=bm(e);return gF.has(n)||(n=Sn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const yF=new Set(["auto","none","0"]);function bF(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!yF.has(o)&&yo(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=vm(n,i)}class vF extends Jd{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let u=t[d];if(typeof u=="string"&&(u=u.trim(),Id(u))){const f=sm(u,n.current);f!==void 0&&(t[d]=f),d===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!um.has(r)||t.length!==2)return;const[i,o]=t,a=gm(i),s=gm(o),l=L9(i),c=L9(o);if(l!==c&&zr[r]){this.needsMeasurement=!0;return}if(a!==s)if(Z9(a)&&Z9(s))for(let d=0;d<t.length;d++){const u=t[d];typeof u=="string"&&(t[d]=parseFloat(u))}else zr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||fF(t[i]))&&r.push(i);r.length&&bF(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=zr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var s;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,a=r[o];r[o]=zr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Cm(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const wm=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Xl(e){return d9(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:f3}=T9(queueMicrotask,!1),Tn={x:!1,y:!1};function xm(){return Tn.x||Tn.y}function CF(e){return e==="x"||e==="y"?Tn[e]?null:(Tn[e]=!0,()=>{Tn[e]=!1}):Tn.x||Tn.y?null:(Tn.x=Tn.y=!0,()=>{Tn.x=Tn.y=!1})}function km(e,t){const n=Cm(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function wF(e){return!(e.pointerType==="touch"||xm())}function xF(e,t,n={}){const[r,i,o]=km(e,n);return r.forEach(a=>{let s=!1,l=!1,c;const d=()=>{a.removeEventListener("pointerleave",h)},u=_=>{c&&(c(_),c=void 0),d()},f=_=>{s=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,u(_))},p=()=>{s=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},h=_=>{if(_.pointerType!=="touch"){if(s){l=!0;return}u(_)}},g=_=>{if(!wF(_))return;l=!1;const m=t(a,_);typeof m=="function"&&(c=m,a.addEventListener("pointerleave",h,i))};a.addEventListener("pointerenter",g,i),a.addEventListener("pointerdown",p,i)}),o}const Sm=(e,t)=>t?e===t?!0:Sm(e,t.parentElement):!1,p3=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,kF=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function SF(e){return kF.has(e.tagName)||e.isContentEditable===!0}const TF=new Set(["INPUT","SELECT","TEXTAREA"]);function MF(e){return TF.has(e.tagName)||e.isContentEditable===!0}const Jl=new WeakSet;function Tm(e){return t=>{t.key==="Enter"&&e(t)}}function h3(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const DF=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Tm(()=>{if(Jl.has(n))return;h3(n,"down");const i=Tm(()=>{h3(n,"up")}),o=()=>h3(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Mm(e){return p3(e)&&!xm()}const Dm=new WeakSet;function LF(e,t,n={}){const[r,i,o]=km(e,n),a=s=>{const l=s.currentTarget;if(!Mm(s)||Dm.has(s))return;Jl.add(l),n.stopPropagation&&Dm.add(s);const c=t(l,s),d=(p,h)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",f),Jl.has(l)&&Jl.delete(l),Mm(p)&&typeof c=="function"&&c(p,{success:h})},u=p=>{d(p,l===window||l===document||n.useGlobalTarget||Sm(l,p.target))},f=p=>{d(p,!1)};window.addEventListener("pointerup",u,i),window.addEventListener("pointercancel",f,i)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",a,i),Xl(s)&&(s.addEventListener("focus",c=>DF(c,i)),!SF(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),o}function m3(e){return d9(e)&&"ownerSVGElement"in e}const ec=new WeakMap;let Wr;const Lm=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:m3(r)&&"getBBox"in r?r.getBBox()[t]:r[n],PF=Lm("inline","width","offsetWidth"),EF=Lm("block","height","offsetHeight");function IF({target:e,borderBoxSize:t}){var n;(n=ec.get(e))==null||n.forEach(r=>{r(e,{get width(){return PF(e,t)},get height(){return EF(e,t)}})})}function OF(e){e.forEach(IF)}function AF(){typeof ResizeObserver>"u"||(Wr=new ResizeObserver(OF))}function NF(e,t){Wr||AF();const n=Cm(e);return n.forEach(r=>{let i=ec.get(r);i||(i=new Set,ec.set(r,i)),i.add(t),Wr==null||Wr.observe(r)}),()=>{n.forEach(r=>{const i=ec.get(r);i==null||i.delete(t),i!=null&&i.size||Wr==null||Wr.unobserve(r)})}}const tc=new Set;let wo;function RF(){wo=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};tc.forEach(t=>t(e))},window.addEventListener("resize",wo)}function jF(e){return tc.add(e),wo||RF(),()=>{tc.delete(e),!tc.size&&typeof wo=="function"&&(window.removeEventListener("resize",wo),wo=void 0)}}function Pm(e,t){return typeof e=="function"?jF(e):NF(e,t)}function FF(e){return m3(e)&&e.tagName==="svg"}const VF=[..._m,st,Sn],BF=e=>VF.find(mm(e)),Em=()=>({translate:0,scale:1,origin:0,originPoint:0}),xo=()=>({x:Em(),y:Em()}),Im=()=>({min:0,max:0}),ut=()=>({x:Im(),y:Im()}),HF=new WeakMap;function nc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ua(e){return typeof e=="string"||Array.isArray(e)}const _3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],g3=["initial",..._3];function rc(e){return nc(e.animate)||g3.some(t=>Ua(e[t]))}function Om(e){return!!(rc(e)||e.variants)}function $F(e,t,n){for(const r in t){const i=t[r],o=n[r];if(gt(i))e.addValue(r,i);else if(gt(o))e.addValue(r,Co(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Co(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const y3={current:null},Am={current:!1},zF=typeof window<"u";function WF(){if(Am.current=!0,!!zF)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>y3.current=e.matches;e.addEventListener("change",t),t()}else y3.current=!1}const Nm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ic={};function Rm(e){ic=e}function YF(){return ic}class UF{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:a,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Jd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=At.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Ve.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=rc(n),this.isVariantNode=Om(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const h=f[p];c[p]!==void 0&&gt(h)&&h.set(c[p])}}mount(t){var n,r;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,HF.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,o)=>this.bindToMotionValue(o,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Am.current||WF(),this.shouldReduceMotion=y3.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Hr(this.notifyUpdate),Hr(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&om.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:s,times:l,ease:c,duration:d}=n.accelerate,u=new nm({element:this.current,name:t,keyframes:s,times:l,ease:c,duration:en(d)}),f=a(u);this.valueSubscriptions.set(t,()=>{f(),u.cancel()});return}const r=vo.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ve.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ic){const n=ic[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ut()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Nm.length;r++){const i=Nm[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=$F(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Co(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(u9(r)||f9(r))?r=parseFloat(r):!BF(r)&&Sn.test(n)&&(r=vm(t,n)),this.setBaseTarget(t,gt(r)?r.get():r)),gt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=i3(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!gt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Dd),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){f3.render(this.render)}}class jm extends UF{constructor(){super(...arguments),this.KeyframeResolver=vF}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;gt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Yr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Fm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ZF({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qF(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function b3(e){return e===void 0||e===1}function v3({scale:e,scaleX:t,scaleY:n}){return!b3(e)||!b3(t)||!b3(n)}function Si(e){return v3(e)||Vm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Vm(e){return Bm(e.x)||Bm(e.y)}function Bm(e){return e&&e!=="0%"}function oc(e,t,n){const r=e-n,i=t*r;return n+i}function Hm(e,t,n,r,i){return i!==void 0&&(e=oc(e,i,r)),oc(e,n,r)+t}function C3(e,t=0,n=1,r,i){e.min=Hm(e.min,t,n,r,i),e.max=Hm(e.max,t,n,r,i)}function $m(e,{x:t,y:n}){C3(e.x,t.translate,t.scale,t.originPoint),C3(e.y,n.translate,n.scale,n.originPoint)}const zm=.999999999999,Wm=1.0000000000001;function GF(e,t,n,r=!1){var s;const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let l=0;l<i;l++){o=n[l],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(tr(e.x,-o.scroll.offset.x),tr(e.y,-o.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,$m(e,a)),r&&Si(o.latestValues)&&ac(e,o.latestValues,(s=o.layout)==null?void 0:s.layoutBox))}t.x<Wm&&t.x>zm&&(t.x=1),t.y<Wm&&t.y>zm&&(t.y=1)}function tr(e,t){e.min+=t,e.max+=t}function Ym(e,t,n,r,i=.5){const o=ze(e.min,e.max,i);C3(e,t,n,o,r)}function Um(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function ac(e,t,n){const r=n??e;Ym(e.x,Um(t.x,r.x),t.scaleX,t.scale,t.originX),Ym(e.y,Um(t.y,r.y),t.scaleY,t.scale,t.originY)}function Zm(e,t){return Fm(qF(e.getBoundingClientRect(),t))}function KF(e,t,n){const r=Zm(e,n),{scroll:i}=t;return i&&(tr(r.x,i.offset.x),tr(r.y,i.offset.y)),r}const QF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},XF=bo.length;function JF(e,t,n){let r="",i=!0;for(let o=0;o<XF;o++){const a=bo[o],s=e[a];if(s===void 0)continue;let l=!0;if(typeof s=="number")l=s===(a.startsWith("scale")?1:0);else{const c=parseFloat(s);l=a.startsWith("scale")?c===1:c===0}if(!l||n){const c=wm(s,d3[a]);if(!l){i=!1;const d=QF[a]||a;r+=`${d}(${c}) `}n&&(t[a]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function w3(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,s=!1;for(const l in t){const c=t[l];if(vo.has(l)){a=!0;continue}else if(D9(l)){i[l]=c;continue}else{const d=wm(c,d3[l]);l.startsWith("origin")?(s=!0,o[l]=d):r[l]=d}}if(t.transform||(a||n?r.transform=JF(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:c="50%",originZ:d=0}=o;r.transformOrigin=`${l} ${c} ${d}`}}function qm(e,{style:t,vars:n},r,i){const o=e.style;let a;for(a in t)o[a]=t[a];i==null||i.applyProjectionStyles(o,r);for(a in n)o.setProperty(a,n[a])}function Gm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Za={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ee.test(e))e=parseFloat(e);else return e;const n=Gm(e,t.target.x),r=Gm(e,t.target.y);return`${n}% ${r}%`}},eV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Sn.parse(e);if(i.length>5)return r;const o=Sn.createTransformer(e),a=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;const c=ze(s,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=c),typeof i[3+a]=="number"&&(i[3+a]/=c),o(i)}},x3={borderRadius:{...Za,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Za,borderTopRightRadius:Za,borderBottomLeftRadius:Za,borderBottomRightRadius:Za,boxShadow:eV};function Km(e,{layout:t,layoutId:n}){return vo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!x3[e]||e==="opacity")}function k3(e,t,n){var a;const r=e.style,i=t==null?void 0:t.style,o={};if(!r)return o;for(const s in r)(gt(r[s])||i&&gt(i[s])||Km(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(o[s]=r[s]);return o}function tV(e){return window.getComputedStyle(e)}class nV extends jm{constructor(){super(...arguments),this.type="html",this.renderInstance=qm}readValueFromInstance(t,n){var r;if(vo.has(n))return(r=this.projection)!=null&&r.isProjecting?qd(n):kj(t,n);{const i=tV(t),o=(D9(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Zm(t,n)}build(t,n,r){w3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return k3(t,n,r)}}const rV={offset:"stroke-dashoffset",array:"stroke-dasharray"},iV={offset:"strokeDashoffset",array:"strokeDasharray"};function oV(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?rV:iV;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}const aV=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Qm(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s},l,c,d){if(w3(e,s,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:f}=e;u.transform&&(f.transform=u.transform,delete u.transform),(f.transform||u.transformOrigin)&&(f.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),f.transform&&(f.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete u.transformBox);for(const p of aV)u[p]!==void 0&&(f[p]=u[p],delete u[p]);t!==void 0&&(u.x=t),n!==void 0&&(u.y=n),r!==void 0&&(u.scale=r),i!==void 0&&oV(u,i,o,a,!1)}const Xm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Jm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function sV(e,t,n,r){qm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Xm.has(i)?i:s3(i),t.attrs[i])}function e4(e,t,n){const r=k3(e,t,n);for(const i in e)if(gt(e[i])||gt(t[i])){const o=bo.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}class lV extends jm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ut}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vo.has(n)){const r=bm(n);return r&&r.default||0}return n=Xm.has(n)?n:s3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return e4(t,n,r)}build(t,n,r){Qm(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){sV(t,n,r,i)}mount(t){this.isSVGTag=Jm(t.tagName),super.mount(t)}}const cV=g3.length;function t4(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?t4(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<cV;n++){const r=g3[n],i=e.props[r];(Ua(i)||i===!1)&&(t[r]=i)}return t}function n4(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const uV=[..._3].reverse(),dV=_3.length;function fV(e){return t=>Promise.all(t.map(({animation:n,options:r})=>uF(e,n,r)))}function pV(e){let t=fV(e),n=r4(),r=!0,i=!1;const o=c=>(d,u)=>{var p;const f=ki(e,u,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(f){const{transition:h,transitionEnd:g,..._}=f;d={...d,..._,...g}}return d};function a(c){t=c(e)}function s(c){const{props:d}=e,u=t4(e.parent)||{},f=[],p=new Set;let h={},g=1/0;for(let m=0;m<dV;m++){const b=uV[m],C=n[b],x=d[b]!==void 0?d[b]:u[b],w=Ua(x),k=b===c?C.isActive:null;k===!1&&(g=m);let S=x===u[b]&&x!==d[b]&&w;if(S&&(r||i)&&e.manuallyAnimateOnMount&&(S=!1),C.protectedKeys={...h},!C.isActive&&k===null||!x&&!C.prevProp||nc(x)||typeof x=="boolean")continue;if(b==="exit"&&C.isActive&&k!==!0){C.prevResolvedValues&&(h={...h,...C.prevResolvedValues});continue}const M=hV(C.prevProp,x);let P=M||b===c&&C.isActive&&!S&&w||m>g&&w,T=!1;const I=Array.isArray(x)?x:[x];let O=I.reduce(o(b),{});k===!1&&(O={});const{prevResolvedValues:V={}}=C,N={...V,...O},A=H=>{P=!0,p.has(H)&&(T=!0,p.delete(H)),C.needsAnimating[H]=!0;const G=e.getValue(H);G&&(G.liveStyle=!1)};for(const H in N){const G=O[H],D=V[H];if(h.hasOwnProperty(H))continue;let Ce=!1;o3(G)&&o3(D)?Ce=!n4(G,D):Ce=G!==D,Ce?G!=null?A(H):p.add(H):G!==void 0&&p.has(H)?A(H):C.protectedKeys[H]=!0}C.prevProp=x,C.prevResolvedValues=O,C.isActive&&(h={...h,...O}),(r||i)&&e.blockInitialAnimation&&(P=!1);const j=S&&M;P&&(!j||T)&&f.push(...I.map(H=>{const G={type:b};if(typeof H=="string"&&(r||i)&&!j&&e.manuallyAnimateOnMount&&e.parent){const{parent:D}=e,Ce=ki(D,H);if(D.enteringChildren&&Ce){const{delayChildren:he}=Ce.transition||{};G.delay=am(D.enteringChildren,e,he)}}return{animation:H,options:G}}))}if(p.size){const m={};if(typeof d.initial!="boolean"){const b=ki(e,Array.isArray(d.initial)?d.initial[0]:d.initial);b&&b.transition&&(m.transition=b.transition)}p.forEach(b=>{const C=e.getBaseTarget(b),x=e.getValue(b);x&&(x.liveStyle=!0),m[b]=C??null}),f.push({animation:m})}let _=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(_=!1),r=!1,i=!1,_?t(f):Promise.resolve()}function l(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(p=>{var h;return(h=p.animationState)==null?void 0:h.setActive(c,d)}),n[c].isActive=d;const u=s(c);for(const p in n)n[p].protectedKeys={};return u}return{animateChanges:s,setActive:l,setAnimateFunction:a,getState:()=>n,reset:()=>{n=r4(),i=!0}}}function hV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!n4(t,e):!1}function Ti(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function r4(){return{animate:Ti(!0),whileInView:Ti(),whileHover:Ti(),whileTap:Ti(),whileDrag:Ti(),whileFocus:Ti(),exit:Ti()}}function S3(e,t){e.min=t.min,e.max=t.max}function Mn(e,t){S3(e.x,t.x),S3(e.y,t.y)}function i4(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const o4=1e-4,mV=1-o4,_V=1+o4,a4=.01,gV=0-a4,yV=0+a4;function Nt(e){return e.max-e.min}function bV(e,t,n){return Math.abs(e-t)<=n}function s4(e,t,n,r=.5){e.origin=r,e.originPoint=ze(t.min,t.max,e.origin),e.scale=Nt(n)/Nt(t),e.translate=ze(n.min,n.max,e.origin)-e.originPoint,(e.scale>=mV&&e.scale<=_V||isNaN(e.scale))&&(e.scale=1),(e.translate>=gV&&e.translate<=yV||isNaN(e.translate))&&(e.translate=0)}function qa(e,t,n,r){s4(e.x,t.x,n.x,r?r.originX:void 0),s4(e.y,t.y,n.y,r?r.originY:void 0)}function l4(e,t,n,r=0){const i=r?ze(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+Nt(t)}function vV(e,t,n,r){l4(e.x,t.x,n.x,r==null?void 0:r.x),l4(e.y,t.y,n.y,r==null?void 0:r.y)}function c4(e,t,n,r=0){const i=r?ze(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Nt(t)}function sc(e,t,n,r){c4(e.x,t.x,n.x,r==null?void 0:r.x),c4(e.y,t.y,n.y,r==null?void 0:r.y)}function u4(e,t,n,r,i){return e-=t,e=oc(e,1/n,r),i!==void 0&&(e=oc(e,1/i,r)),e}function CV(e,t=0,n=1,r=.5,i,o=e,a=e){if(er.test(t)&&(t=parseFloat(t),t=ze(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=ze(o.min,o.max,r);e===o&&(s-=t),e.min=u4(e.min,t,n,s,i),e.max=u4(e.max,t,n,s,i)}function d4(e,t,[n,r,i],o,a){CV(e,t[n],t[r],t[i],t.scale,o,a)}const wV=["x","scaleX","originX"],xV=["y","scaleY","originY"];function f4(e,t,n,r){d4(e.x,t,wV,n?n.x:void 0,r?r.x:void 0),d4(e.y,t,xV,n?n.y:void 0,r?r.y:void 0)}function p4(e){return e.translate===0&&e.scale===1}function h4(e){return p4(e.x)&&p4(e.y)}function m4(e,t){return e.min===t.min&&e.max===t.max}function kV(e,t){return m4(e.x,t.x)&&m4(e.y,t.y)}function _4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function g4(e,t){return _4(e.x,t.x)&&_4(e.y,t.y)}function y4(e){return Nt(e.x)/Nt(e.y)}function b4(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function nr(e){return[e("x"),e("y")]}function SV(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:u,rotateY:f,skewX:p,skewY:h}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),u&&(r+=`rotateX(${u}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),h&&(r+=`skewY(${h}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const v4=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],TV=v4.length,C4=e=>typeof e=="string"?parseFloat(e):e,w4=e=>typeof e=="number"||ee.test(e);function MV(e,t,n,r,i,o){i?(e.opacity=ze(0,n.opacity??1,DV(r)),e.opacityExit=ze(t.opacity??1,0,LV(r))):o&&(e.opacity=ze(t.opacity??1,n.opacity??1,r));for(let a=0;a<TV;a++){const s=v4[a];let l=x4(t,s),c=x4(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||w4(l)===w4(c)?(e[s]=Math.max(ze(C4(l),C4(c),r),0),(er.test(c)||er.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=ze(t.rotate||0,n.rotate||0,r))}function x4(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const DV=k4(0,.5,C9),LV=k4(.5,.95,fn);function k4(e,t,n){return r=>r<e?0:r>t?1:n(Va(e,t,r))}function PV(e,t,n){const r=gt(e)?e:Co(e);return r.start(r3("",r,t,n)),r.animation}function Ga(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const EV=(e,t)=>e.depth-t.depth;class IV{constructor(){this.children=[],this.isDirty=!1}add(t){Td(this.children,t),this.isDirty=!0}remove(t){zl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(EV),this.isDirty=!1,this.children.forEach(t)}}function OV(e,t){const n=At.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Hr(r),e(o-t))};return Ve.setup(r,!0),()=>Hr(r)}function lc(e){return gt(e)?e.get():e}class AV{constructor(){this.members=[]}add(t){Td(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(zl(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(zl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,n){var i;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:a}=t.options;(o===void 0||o!==a)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,o,a;(r=(n=t.options).onExitComplete)==null||r.call(n),(a=(i=t.resumingFrom)==null?void 0:(o=i.options).onExitComplete)==null||a.call(o)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const cc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},T3=["","X","Y","Z"],NV=1e3;let RV=0;function M3(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function S4(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=pm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ve,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&S4(r)}function T4({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=RV++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(VV),this.nodes.forEach(YV),this.nodes.forEach(UV),this.nodes.forEach(BV)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new IV)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Dd),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=m3(a)&&!FF(a),this.instance=a;const{layoutId:s,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let d,u=0;const f=()=>this.root.updateBlockedByResize=!1;Ve.read(()=>{u=window.innerWidth}),e(a,()=>{const p=window.innerWidth;p!==u&&(u=p,this.root.updateBlockedByResize=!0,d&&d(),d=OV(f,250),cc.hasAnimatedSinceResize&&(cc.hasAnimatedSinceResize=!1,this.nodes.forEach(L4)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||c.getDefaultTransition()||QV,{onLayoutAnimationStart:g,onLayoutAnimationComplete:_}=c.getProps(),m=!this.targetLayout||!g4(this.targetLayout,p),b=!u&&f;if(this.options.layoutRoot||this.resumeFrom||b||u&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...n3(h,"layout"),onPlay:g,onComplete:_};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(d,b)}else u||L4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Hr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ZV),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&S4(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const u=this.path[d];u.shouldResetTransform=!0,(typeof u.latestValues.x=="string"||typeof u.latestValues.y=="string")&&(u.isLayoutDirty=!0),u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach($V),this.nodes.forEach(M4);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(D4);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(zV),this.nodes.forEach(WV),this.nodes.forEach(jV),this.nodes.forEach(FV)):this.nodes.forEach(D4),this.clearAllSnapshots();const s=At.now();_t.delta=Jn(0,1e3/60,s-_t.timestamp),_t.timestamp=s,_t.isProcessing=!0,Ed.update.process(_t),Ed.preRender.process(_t),Ed.render.process(_t),_t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,f3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(HV),this.sharedNodes.forEach(qV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ve.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ve.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Nt(this.snapshot.measuredBox.x)&&!Nt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ut()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!h4(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;a&&this.instance&&(s||Si(this.latestValues)||d)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),XV(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:a}=this.options;if(!a)return ut();const s=a.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(JV))){const{scroll:d}=this.root;d&&(tr(s.x,d.offset.x),tr(s.y,d.offset.y))}return s}removeElementScroll(a){var l;const s=ut();if(Mn(s,a),(l=this.scroll)!=null&&l.wasRoot)return s;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:u,options:f}=d;d!==this.root&&u&&f.layoutScroll&&(u.wasRoot&&Mn(s,a),tr(s.x,u.offset.x),tr(s.y,u.offset.y))}return s}applyTransform(a,s=!1,l){var d,u;const c=l||ut();Mn(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f];!s&&p.options.layoutScroll&&p.scroll&&p!==p.root&&(tr(c.x,-p.scroll.offset.x),tr(c.y,-p.scroll.offset.y)),Si(p.latestValues)&&ac(c,p.latestValues,(d=p.layout)==null?void 0:d.layoutBox)}return Si(this.latestValues)&&ac(c,this.latestValues,(u=this.layout)==null?void 0:u.layoutBox),c}removeTransform(a){var l;const s=ut();Mn(s,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!Si(d.latestValues))continue;let u;d.instance&&(v3(d.latestValues)&&d.updateSnapshot(),u=ut(),Mn(u,d.measurePageBox())),f4(s,d.latestValues,(l=d.snapshot)==null?void 0:l.layoutBox,u)}return Si(this.latestValues)&&f4(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==_t.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var p;const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:u}=this.options;if(!this.layout||!(d||u))return;this.resolvedRelativeTargetAt=_t.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ut(),this.targetWithTransforms=ut()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vV(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Mn(this.target,this.layout.layoutBox),$m(this.target,this.targetDelta)):Mn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||v3(this.parent.latestValues)||Vm(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,s,l){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ut(),this.relativeTargetOrigin=ut(),sc(this.relativeTargetOrigin,s,l,this.options.layoutAnchor||void 0),Mn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var h;const a=this.getLead(),s=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===_t.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;Mn(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,f=this.treeScale.y;GF(this.layoutCorrected,this.treeScale,this.path,s),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=ut());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(i4(this.prevProjectionDelta.x,this.projectionDelta.x),i4(this.prevProjectionDelta.y,this.projectionDelta.y)),qa(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==f||!b4(this.projectionDelta.x,this.prevProjectionDelta.x)||!b4(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s;if((s=this.options.visualElement)==null||s.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=xo(),this.projectionDelta=xo(),this.projectionDeltaWithTransform=xo()}setAnimationOrigin(a,s=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},u=xo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const f=ut(),p=l?l.source:void 0,h=this.layout?this.layout.source:void 0,g=p!==h,_=this.getStack(),m=!_||_.members.length<=1,b=!!(g&&!m&&this.options.crossfade===!0&&!this.path.some(KV));this.animationProgress=0;let C;this.mixTargetDelta=x=>{const w=x/1e3;P4(u.x,a.x,w),P4(u.y,a.y,w),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sc(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),GV(this.relativeTarget,this.relativeTargetOrigin,f,w),C&&kV(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=ut()),Mn(C,this.relativeTarget)),g&&(this.animationValues=d,MV(d,c,this.latestValues,w,b,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var s,l,c;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Hr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ve.update(()=>{cc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Co(0)),this.motionValue.jump(0,!1),this.currentAnimation=PV(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),a.onUpdate&&a.onUpdate(d)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(NV),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:d}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&N4(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||ut();const u=Nt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+u;const f=Nt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}Mn(s,l),ac(s,d),qa(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new AV),this.sharedNodes.get(a).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&M3("z",a,c,this.animationValues);for(let d=0;d<T3.length;d++)M3(`rotate${T3[d]}`,a,c,this.animationValues),M3(`skew${T3[d]}`,a,c,this.animationValues);a.render();for(const d in c)a.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);a.scheduleRender()}applyProjectionStyles(a,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=lc(s==null?void 0:s.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=lc(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Si(this.latestValues)&&(a.transform=l?l({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let u=SV(this.projectionDeltaWithTransform,this.treeScale,d);l&&(u=l(d,u)),a.transform=u;const{x:f,y:p}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,c.animationValues?a.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const h in x3){if(d[h]===void 0)continue;const{correct:g,applyTo:_,isCSSVariable:m}=x3[h],b=u==="none"?d[h]:g(d[h],c);if(_){const C=_.length;for(let x=0;x<C;x++)a[_[x]]=b}else m?this.options.visualElement.renderState.vars[h]=b:a[h]=b}this.options.layoutId&&(a.pointerEvents=c===this?lc(s==null?void 0:s.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(M4),this.root.sharedNodes.clear()}}}function jV(e){e.updateLayout()}function FV(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=t.source!==e.layout.source;if(o==="size")nr(u=>{const f=a?t.measuredBox[u]:t.layoutBox[u],p=Nt(f);f.min=r[u].min,f.max=f.min+p});else if(o==="x"||o==="y"){const u=o==="x"?"y":"x";S3(a?t.measuredBox[u]:t.layoutBox[u],r[u])}else N4(o,t.layoutBox,r)&&nr(u=>{const f=a?t.measuredBox[u]:t.layoutBox[u],p=Nt(r[u]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+p)});const s=xo();qa(s,r,t.layoutBox);const l=xo();a?qa(l,e.applyTransform(i,!0),t.measuredBox):qa(l,r,t.layoutBox);const c=!h4(s);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:f,layout:p}=u;if(f&&p){const h=e.options.layoutAnchor||void 0,g=ut();sc(g,t.layoutBox,f.layoutBox,h);const _=ut();sc(_,r,p.layoutBox,h),g4(g,_)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=_,e.relativeTargetOrigin=g,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function VV(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function BV(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function HV(e){e.clearSnapshot()}function M4(e){e.clearMeasurements()}function $V(e){e.isLayoutDirty=!0,e.updateLayout()}function D4(e){e.isLayoutDirty=!1}function zV(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function WV(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function L4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function YV(e){e.resolveTargetDelta()}function UV(e){e.calcProjection()}function ZV(e){e.resetSkewAndRotation()}function qV(e){e.removeLeadSnapshot()}function P4(e,t,n){e.translate=ze(t.translate,0,n),e.scale=ze(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function E4(e,t,n,r){e.min=ze(t.min,n.min,r),e.max=ze(t.max,n.max,r)}function GV(e,t,n,r){E4(e.x,t.x,n.x,r),E4(e.y,t.y,n.y,r)}function KV(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const QV={duration:.45,ease:[.4,0,.1,1]},I4=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),O4=I4("applewebkit/")&&!I4("chrome/")?Math.round:fn;function A4(e){e.min=O4(e.min),e.max=O4(e.max)}function XV(e){A4(e.x),A4(e.y)}function N4(e,t,n){return e==="position"||e==="preserve-aspect"&&!bV(y4(t),y4(n),.2)}function JV(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const eB=T4({attachResizeListener:(e,t)=>Ga(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),D3={current:void 0},R4=T4({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!D3.current){const e=new eB({});e.mount(window),e.setOptions({layoutScroll:!0}),D3.current=e}return D3.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),L3=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function j4(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function tB(...e){return t=>{let n=!1;const r=e.map(i=>{const o=j4(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():j4(e[i],null)}}}}function nB(...e){return R.useCallback(tB(...e),e)}class rB extends R.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Xl(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,i=Xl(r)&&r.offsetWidth||0,o=Xl(r)&&r.offsetHeight||0,a=getComputedStyle(n),s=this.props.sizeRef.current;s.height=parseFloat(a.height),s.width=parseFloat(a.width),s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left,s.bottom=o-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function iB({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:o}){var f;const a=v.useId(),s=v.useRef(null),l=v.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=v.useContext(L3),d=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),u=nB(s,d);return v.useInsertionEffect(()=>{const{width:p,height:h,top:g,left:_,right:m,bottom:b}=l.current;if(t||o===!1||!s.current||!p||!h)return;const C=n==="left"?`left: ${_}`:`right: ${m}`,x=r==="bottom"?`bottom: ${b}`:`top: ${g}`;s.current.dataset.motionPopId=a;const w=document.createElement("style");c&&(w.nonce=c);const k=i??document.head;return k.appendChild(w),w.sheet&&w.sheet.insertRule(`
853
853
  [data-motion-pop-id="${a}"] {
854
854
  position: absolute !important;
855
855
  width: ${p}px !important;
@@ -857,4 +857,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
857
857
  ${C}px !important;
858
858
  ${x}px !important;
859
859
  }
860
- `),()=>{var S;(S=s.current)==null||S.removeAttribute("data-motion-pop-id"),k.contains(w)&&k.removeChild(w)}},[t]),y.jsx(rB,{isPresent:t,childRef:s,sizeRef:l,pop:o,children:o===!1?e:R.cloneElement(e,{ref:d})})}const oB=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:s,anchorY:l,root:c})=>{const u=Sd(aB),d=v.useId();let f=!0,p=v.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:h=>{u.set(h,!0);for(const g of u.values())if(!g)return;r&&r()},register:h=>(u.set(h,!1),()=>u.delete(h))}),[n,u,r]);return o&&f&&(p={...p}),v.useMemo(()=>{u.forEach((h,g)=>u.set(g,!1))},[n]),R.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=y.jsx(iB,{pop:a==="popLayout",isPresent:n,anchorX:s,anchorY:l,root:c,children:e}),y.jsx($l.Provider,{value:p,children:e})};function aB(){return new Map}function F7(e=!0){const t=v.useContext($l);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=v.useId();v.useEffect(()=>{if(e)return i(o)},[e]);const a=v.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const uc=e=>e.key||"";function V7(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const dc=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:s="left",anchorY:l="top",root:c})=>{const[u,d]=F7(a),f=v.useMemo(()=>V7(e),[e]),p=a&&!u?[]:f.map(uc),h=v.useRef(!0),g=v.useRef(f),_=Sd(()=>new Map),m=v.useRef(new Set),[b,C]=v.useState(f),[x,w]=v.useState(f);c9(()=>{h.current=!1,g.current=f;for(let M=0;M<x.length;M++){const P=uc(x[M]);p.includes(P)?(_.delete(P),m.current.delete(P)):_.get(P)!==!0&&_.set(P,!1)}},[x,p.length,p.join("-")]);const k=[];if(f!==b){let M=[...f];for(let P=0;P<x.length;P++){const T=x[P],I=uc(T);p.includes(I)||(M.splice(P,0,T),k.push(T))}return o==="wait"&&k.length&&(M=k),w(V7(M)),C(f),null}const{forceRender:S}=v.useContext(kd);return y.jsx(y.Fragment,{children:x.map(M=>{const P=uc(M),T=a&&!u?!1:f===x||p.includes(P),I=()=>{if(m.current.has(P))return;if(_.has(P))m.current.add(P),_.set(P,!0);else return;let O=!0;_.forEach(V=>{V||(O=!1)}),O&&(S==null||S(),w(g.current),a&&(d==null||d()),r&&r())};return y.jsx(oB,{isPresent:T,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,root:c,onExitComplete:T?void 0:I,anchorX:s,anchorY:l,children:M},P)})})},B7=v.createContext({strict:!1}),H7={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let $7=!1;function sB(){if($7)return;const e={};for(const t in H7)e[t]={isEnabled:n=>H7[t].some(r=>!!n[r])};Rm(e),$7=!0}function z7(){return sB(),YF()}function lB(e){const t=z7();for(const n in e)t[n]={...t[n],...e[n]};Rm(t)}const cB=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function fc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cB.has(e)}let W7=e=>!fc(e);function uB(e){typeof e=="function"&&(W7=t=>t.startsWith("on")?!fc(t):e(t))}try{uB(require("@emotion/is-prop-valid").default)}catch{}function dB(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||gt(e[i])||(W7(i)||n===!0&&fc(i)||!t&&!fc(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const pc=v.createContext({});function fB(e,t){if(rc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ua(n)?n:void 0,animate:Ua(r)?r:void 0}}return e.inherit!==!1?t:{}}function pB(e){const{initial:t,animate:n}=fB(e,v.useContext(pc));return v.useMemo(()=>({initial:t,animate:n}),[Y7(t),Y7(n)])}function Y7(e){return Array.isArray(e)?e.join(" "):e}const P3=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function U7(e,t,n){for(const r in t)!gt(t[r])&&!Km(r,n)&&(e[r]=t[r])}function hB({transformTemplate:e},t){return v.useMemo(()=>{const n=P3();return w3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function mB(e,t){const n=e.style||{},r={};return U7(r,n,e),Object.assign(r,hB(e,t)),r}function _B(e,t){const n={},r=mB(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Z7=()=>({...P3(),attrs:{}});function gB(e,t,n,r){const i=v.useMemo(()=>{const o=Z7();return Qm(o,t,Jm(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};U7(o,e.style,e),i.style={...o,...i.style}}return i}const yB=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function E3(e){return typeof e!="string"||e.includes("-")?!1:!!(yB.indexOf(e)>-1||/[A-Z]/u.test(e))}function bB(e,t,n,{latestValues:r},i,o=!1,a){const l=(a??E3(e)?gB:_B)(t,r,i,e),c=dB(t,typeof e=="string",o),u=e!==v.Fragment?{...c,...l,ref:n}:{},{children:d}=t,f=v.useMemo(()=>gt(d)?d.get():d,[d]);return v.createElement(e,{...u,children:f})}function vB({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:CB(n,r,i,e),renderState:t()}}function CB(e,t,n,r){const i={},o=r(e,{});for(const f in o)i[f]=lc(o[f]);let{initial:a,animate:s}=e;const l=rc(e),c=Om(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u=u||a===!1;const d=u?s:a;if(d&&typeof d!="boolean"&&!nc(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const h=i3(e,f[p]);if(h){const{transitionEnd:g,transition:_,...m}=h;for(const b in m){let C=m[b];if(Array.isArray(C)){const x=u?C.length-1:0;C=C[x]}C!==null&&(i[b]=C)}for(const b in g)i[b]=g[b]}}}return i}const q7=e=>(t,n)=>{const r=v.useContext(pc),i=v.useContext($l),o=()=>vB(e,t,r,i);return n?o():Sd(o)},wB=q7({scrapeMotionValuesFromProps:k3,createRenderState:P3}),xB=q7({scrapeMotionValuesFromProps:e7,createRenderState:Z7}),kB=Symbol.for("motionComponentSymbol");function SB(e,t,n){const r=v.useRef(n);v.useInsertionEffect(()=>{r.current=n});const i=v.useRef(null);return v.useCallback(o=>{var s;o&&((s=e.onMount)==null||s.call(e,o));const a=r.current;if(typeof a=="function")if(o){const l=a(o);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):a(o);else a&&(a.current=o);t&&(o?t.mount(o):t.unmount())},[t])}const G7=v.createContext({});function ko(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function TB(e,t,n,r,i,o){var C,x;const{visualElement:a}=v.useContext(pc),s=v.useContext(B7),l=v.useContext($l),c=v.useContext(L3),u=c.reducedMotion,d=c.skipAnimations,f=v.useRef(null),p=v.useRef(!1);r=r||s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:o}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const h=f.current,g=v.useContext(G7);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&MB(f.current,n,i,g);const _=v.useRef(!1);v.useInsertionEffect(()=>{h&&_.current&&h.update(n,l)});const m=n[fm],b=v.useRef(!!m&&typeof window<"u"&&!((C=window.MotionHandoffIsComplete)!=null&&C.call(window,m))&&((x=window.MotionHasOptimisedAnimation)==null?void 0:x.call(window,m)));return c9(()=>{p.current=!0,h&&(_.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),b.current&&h.animationState&&h.animationState.animateChanges())}),v.useEffect(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,m)}),b.current=!1),h.enteringChildren=void 0)}),h}function MB(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:K7(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&ko(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function K7(e){if(e)return e.options.allowProjection!==!1?e.projection:K7(e.parent)}function I3(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&lB(r);const o=n?n==="svg":E3(e),a=o?xB:wB;function s(c,u){let d;const f={...v.useContext(L3),...c,layoutId:DB(c)},{isStatic:p}=f,h=pB(c),g=a(c,p);if(!p&&typeof window<"u"){LB();const _=PB(f);d=_.MeasureLayout,h.visualElement=TB(e,g,f,i,_.ProjectionNode,o)}return y.jsxs(pc.Provider,{value:h,children:[d&&h.visualElement?y.jsx(d,{visualElement:h.visualElement,...f}):null,bB(e,c,SB(g,h.visualElement,u),g,p,t,o)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=v.forwardRef(s);return l[kB]=e,l}function DB({layoutId:e}){const t=v.useContext(kd).id;return t&&e!==void 0?t+"-"+e:e}function LB(e,t){v.useContext(B7).strict}function PB(e){const t=z7(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function EB(e,t){if(typeof Proxy>"u")return I3;const n=new Map,r=(o,a)=>I3(o,a,e,t),i=(o,a)=>r(o,a);return new Proxy(i,{get:(o,a)=>a==="create"?r:(n.has(a)||n.set(a,I3(a,void 0,e,t)),n.get(a))})}const IB=(e,t)=>t.isSVG??E3(e)?new lV(t):new nV(t,{allowProjection:e!==v.Fragment});class OB extends Yr{constructor(t){super(t),t.animationState||(t.animationState=pV(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();nc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let AB=0;class NB extends Yr{constructor(){super(...arguments),this.id=AB++,this.isExitComplete=!1}update(){var o;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:a,custom:s}=this.node.getProps();if(typeof a=="string"){const l=ki(this.node,a,s);if(l){const{transition:c,transitionEnd:u,...d}=l;for(const f in d)(o=this.node.getValue(f))==null||o.jump(d[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const RB={animation:{Feature:OB},exit:{Feature:NB}};function Ka(e){return{point:{x:e.pageX,y:e.pageY}}}const jB=e=>t=>p3(t)&&e(t,Ka(t));function Qa(e,t,n,r){return Ga(e,t,jB(n),r)}const Q7=({current:e})=>e?e.ownerDocument.defaultView:null,X7=(e,t)=>Math.abs(e-t);function FB(e,t){const n=X7(e.x,t.x),r=X7(e.y,t.y);return Math.sqrt(n**2+r**2)}const J7=new Set(["auto","scroll"]);class e4{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:a=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=hc(this.lastRawMoveEventInfo,this.transformPagePoint));const p=O3(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=FB(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!g)return;const{point:_}=p,{timestamp:m}=_t;this.history.push({..._,timestamp:m});const{onStart:b,onMove:C}=this.handlers;h||(b&&b(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,p)},this.handlePointerMove=(p,h)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=h,this.lastMoveEventInfo=hc(h,this.transformPagePoint),Ve.update(this.updatePoint,!0)},this.handlePointerUp=(p,h)=>{this.end();const{onEnd:g,onSessionEnd:_,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=O3(p.type==="pointercancel"?this.lastMoveEventInfo:hc(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(p,b),_&&_(p,b)},!p3(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;const l=Ka(t),c=hc(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=_t;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,O3(c,this.history)),this.removeListeners=Fa(Qa(this.contextWindow,"pointermove",this.handlePointerMove),Qa(this.contextWindow,"pointerup",this.handlePointerUp),Qa(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(J7.has(r.overflowX)||J7.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,i),Ve.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Hr(this.updatePoint)}}function hc(e,t){return t?{point:t(e.point)}:e}function t4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function O3({point:e},t){return{point:e,delta:t4(e,n4(t)),offset:t4(e,VB(t)),velocity:BB(t,.1)}}function VB(e){return e[0]}function n4(e){return e[e.length-1]}function BB(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=n4(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>en(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>en(t)*2&&(r=e[1]);const o=pn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function HB(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ze(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ze(n,e,r.max):Math.min(e,n)),e}function r4(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function $B(e,{top:t,left:n,bottom:r,right:i}){return{x:r4(e.x,n,i),y:r4(e.y,t,r)}}function i4(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function zB(e,t){return{x:i4(e.x,t.x),y:i4(e.y,t.y)}}function WB(e,t){let n=.5;const r=At(e),i=At(t);return i>r?n=Va(t.min,t.max-r,e.min):r>i&&(n=Va(e.min,e.max-i,t.min)),Jn(0,1,n)}function YB(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const A3=.35;function UB(e=A3){return e===!1?e=0:e===!0&&(e=A3),{x:o4(e,"left","right"),y:o4(e,"top","bottom")}}function o4(e,t,n){return{min:a4(e,t),max:a4(e,n)}}function a4(e,t){return typeof e=="number"?e:e[t]||0}const ZB=new WeakMap;class qB{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ut(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=d=>{n&&this.snapToCursor(Ka(d).point),this.stopAnimation()},a=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:g}=this.getProps();if(p&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=CF(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nr(m=>{let b=this.getAxisMotionValue(m).get()||0;if(er.test(b)){const{projection:C}=this.visualElement;if(C&&C.layout){const x=C.layout.layoutBox[m];x&&(b=At(x)*(parseFloat(b)/100))}}this.originPoint[m]=b}),g&&Ve.update(()=>g(d,f),!1,!0),a3(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},s=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:g,onDrag:_}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:m}=f;if(h&&this.currentDirection===null){this.currentDirection=KB(m),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),_&&Ve.update(()=>_(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new e4(t,{onSessionStart:o,onStart:a,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Q7(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:s}=this.getProps();s&&Ve.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!mc(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=HB(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&ko(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=$B(r.layoutBox,t):this.constraints=!1,this.elastic=UB(n),i!==this.constraints&&!ko(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&nr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=YB(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ko(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=KF(r,i.root,this.visualElement.getTransformPagePoint());let a=zB(i.layout.layoutBox,o);if(n){const s=n(ZF(a));this.hasMutatedConstraints=!!s,s&&(a=Fm(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=nr(u=>{if(!mc(u,n,this.currentDirection))return;let d=l&&l[u]||{};(a===!0||a===u)&&(d={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,h={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(u,h)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return a3(this.visualElement,t),r.start(r3(t,r,0,n,this.visualElement,!1))}stopAnimation(){nr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){nr(n=>{const{drag:r}=this.getProps();if(!mc(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[n],l=o.get()||0;o.set(t[n]-ze(a,s,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ko(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};nr(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();i[a]=WB({min:l,max:l},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),nr(a=>{if(!mc(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(ze(l,c,i[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;ZB.set(this.visualElement,this);const t=this.visualElement.current,n=Qa(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,p=f!==t&&MF(f);u&&d&&!p&&this.start(c)});let r;const i=()=>{const{dragConstraints:c}=this.getProps();ko(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=GB(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,a=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ve.read(i);const s=Ga(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(nr(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=A3,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function s4(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function GB(e,t,n){const r=Pm(e,s4(n)),i=Pm(t,s4(n));return()=>{r(),i()}}function mc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function KB(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class QB extends Yr{constructor(t){super(t),this.removeGroupControls=fn,this.removeListeners=fn,this.controls=new qB(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const N3=e=>(t,n)=>{e&&Ve.update(()=>e(t,n),!1,!0)};class XB extends Yr{constructor(){super(...arguments),this.removePointerDownListener=fn}onPointerDown(t){this.session=new e4(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Q7(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:N3(t),onStart:N3(n),onMove:N3(r),onEnd:(o,a)=>{delete this.session,i&&Ve.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Qa(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let R3=!1;class JB extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),R3&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),cc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:a}=r;return a&&(a.isPresent=o,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),R3=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Ve.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),f3.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;R3=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function l4(e){const[t,n]=F7(),r=v.useContext(kd);return y.jsx(JB,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(G7),isPresent:t,safeToRemove:n})}const eH={pan:{Feature:XB},drag:{Feature:QB,ProjectionNode:R7,MeasureLayout:l4}};function c4(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Ve.postRender(()=>o(t,Ka(t)))}class tH extends Yr{mount(){const{current:t}=this.node;t&&(this.unmount=xF(t,(n,r)=>(c4(this.node,r,"Start"),i=>c4(this.node,i,"End"))))}unmount(){}}class nH extends Yr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Fa(Ga(this.node.current,"focus",()=>this.onFocus()),Ga(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function u4(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Ve.postRender(()=>o(t,Ka(t)))}class rH extends Yr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=LF(t,(i,o)=>(u4(this.node,o,"Start"),(a,{success:s})=>u4(this.node,a,s?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const j3=new WeakMap,F3=new WeakMap,iH=e=>{const t=j3.get(e.target);t&&t(e)},oH=e=>{e.forEach(iH)};function aH({root:e,...t}){const n=e||document;F3.has(n)||F3.set(n,{});const r=F3.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(oH,{root:e,...t})),r[i]}function sH(e,t,n){const r=aH(t);return j3.set(e,n),r.observe(e),()=>{j3.delete(e),r.unobserve(e)}}const lH={some:0,all:1};class cH extends Yr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:lH[i]},s=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(c)};this.stopObserver=sH(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(uH(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function uH({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const dH={...RB,...{inView:{Feature:cH},tap:{Feature:rH},focus:{Feature:nH},hover:{Feature:tH}},...eH,...{layout:{ProjectionNode:R7,MeasureLayout:l4}}},_c=EB(dH,IB),Mi={accessProduct:"_accessProduct_1y9te_1",accessProduct__active:"_accessProduct__active_1y9te_11",accessProduct_content:"_accessProduct_content_1y9te_11",accessProduct_logo:"_accessProduct_logo_1y9te_11",accessProduct_name:"_accessProduct_name_1y9te_57",accessProduct_logoImage:"_accessProduct_logoImage_1y9te_71"},d4=({isActive:e=!1,name:t,logo:n,activePillText:r="Actual",onClick:i})=>{var o,a;return y.jsxs("button",{className:E(Mi.accessProduct,e&&Mi.accessProduct__active),onClick:i,children:[e&&y.jsx(Ic,{className:Mi.accessProduct_pill,color:"blocked-opacity",textColor:"primary-60",children:r}),y.jsxs("div",{className:Mi.accessProduct_content,children:[y.jsx("div",{className:Mi.accessProduct_logo,children:n?y.jsx("img",{className:Mi.accessProduct_logoImage,src:n,alt:t,width:31,height:31,loading:"lazy"}):y.jsx(je,{children:(a=(o=t==null?void 0:t.trim())==null?void 0:o[0])==null?void 0:a.toUpperCase()})}),y.jsx(je,{className:Mi.accessProduct_name,type:"sm",children:t})]})]})},gc={accessProductRow:"_accessProductRow_8n0ti_1",accessProductRow_logo:"_accessProductRow_logo_8n0ti_35",accessProductRow_logoImage:"_accessProductRow_logoImage_8n0ti_47",accessProductRow_name:"_accessProductRow_name_8n0ti_50"},fH=({name:e,logo:t,onClick:n,className:r})=>{var i,o;return y.jsxs("button",{className:E(gc.accessProductRow,r),onClick:n,children:[y.jsx("div",{className:gc.accessProductRow_logo,children:t?y.jsx("img",{className:gc.accessProductRow_logoImage,src:t,alt:e,width:16,height:16,loading:"lazy"}):y.jsx(je,{children:(o=(i=e==null?void 0:e.trim())==null?void 0:i[0])==null?void 0:o.toUpperCase()})}),y.jsx(je,{className:gc.accessProductRow_name,children:e})]})},ht={accessPanel:"_accessPanel_18xqh_1",accessPanel_header:"_accessPanel_header_18xqh_8",accessPanel_content:"_accessPanel_content_18xqh_15",accessPanel_content__active:"_accessPanel_content__active_18xqh_22",accessPanel_content__narrowSpacing:"_accessPanel_content__narrowSpacing_18xqh_25",accessPanel_contentTitle:"_accessPanel_contentTitle_18xqh_28",accessPanel_contentCards:"_accessPanel_contentCards_18xqh_37",accessPanel_contentCard:"_accessPanel_contentCard_18xqh_37",accessPanel_contentList:"_accessPanel_contentList_18xqh_47",accessPanel_contentItemRow:"_accessPanel_contentItemRow_18xqh_52"},f4=({className:e,isOpen:t=!1,title:n="Panel de Accesos",productsTitle:r="Productos",recentProductsTitle:i="Recientes",customProductsTitle:o="Personalizados",activePillText:a,products:s=[],recentProducts:l=[],customProducts:c=[]})=>{const u=v.useMemo(()=>s==null?void 0:s.some(f=>f==null?void 0:f.isActive),[s]),d=v.useMemo(()=>c==null?void 0:c.some(f=>f==null?void 0:f.isActive),[c]);return y.jsx(dc,{children:t&&y.jsxs(_c.section,{className:E(ht.accessPanel,e),initial:{opacity:0,scale:0,originX:1,originY:0},animate:{opacity:1,scale:1,originX:1,originY:0},exit:{opacity:0,scale:0,originX:1,originY:0},children:[y.jsxs("header",{className:ht.accessPanel_header,children:[y.jsx(ie,{name:"grip",color:"neutral-70"}),y.jsx(yt,{type:"h3",children:n})]}),!!(s!=null&&s.length)&&y.jsxs("div",{className:E(ht.accessPanel_content,u&&ht.accessPanel_content__active),children:[y.jsx(je,{className:ht.accessPanel_contentTitle,children:r}),y.jsx("ul",{className:ht.accessPanel_contentCards,children:s.map((f,p)=>y.jsx("li",{className:ht.accessPanel_contentCard,children:y.jsx(d4,{...f,activePillText:a})},`product-${p}-${f==null?void 0:f.key}`))})]}),!!(l!=null&&l.length)&&y.jsxs("div",{className:E(ht.accessPanel_content,ht.accessPanel_content__narrowSpacing),children:[y.jsx(je,{className:ht.accessPanel_contentTitle,children:i}),y.jsx("ul",{className:ht.accessPanel_contentList,children:l.map((f,p)=>y.jsx("li",{className:ht.accessPanel_contentItem,children:y.jsx(fH,{className:ht.accessPanel_contentItemRow,...f})},`recent-product-${p}-${f==null?void 0:f.key}`))})]}),!!(c!=null&&c.length)&&y.jsxs("div",{className:E(ht.accessPanel_content,d&&ht.accessPanel_content__active),children:[y.jsx(je,{className:ht.accessPanel_contentTitle,children:o}),y.jsx("ul",{className:ht.accessPanel_contentCards,children:c==null?void 0:c.map((f,p)=>y.jsx("li",{className:ht.accessPanel_contentCard,children:y.jsx(d4,{...f,activePillText:a})},`custom-product-${p}-${f==null?void 0:f.key}`))})]})]},"access-panel")})},So={accountMenuItem:"_accountMenuItem_13hzw_1",accountMenuItem__hasClick:"_accountMenuItem__hasClick_13hzw_11",accountMenuItem__active:"_accountMenuItem__active_13hzw_17",accountMenuItem_icon:"_accountMenuItem_icon_13hzw_20",accountMenuItem_label:"_accountMenuItem_label_13hzw_23",accountMenuItem_leftContent:"_accountMenuItem_leftContent_13hzw_26"},V3=({className:e,icon:t,label:n,rightContent:r,active:i,onClick:o})=>y.jsxs("li",{className:E(So.accountMenuItem,o&&So.accountMenuItem__hasClick,i&&So.accountMenuItem__active,e),role:o?"button":"listitem",onClick:o,children:[y.jsxs("div",{className:So.accountMenuItem_leftContent,children:[!!t&&y.jsx(ie,{className:So.accountMenuItem_icon,name:t}),y.jsx(je,{className:So.accountMenuItem_label,type:"md",children:n})]}),r]}),To={switchTheme_label:"_switchTheme_label_1vycx_1",button:"_button_1vycx_7",button_iconWrapper:"_button_iconWrapper_1vycx_16",switch:"_switch_1vycx_1",switchTheme:"_switchTheme_1vycx_1",switchTheme__darkMode:"_switchTheme__darkMode_1vycx_42"},pH=({isLoading:e,onSelectTheme:t})=>{const n=Zr(i=>i.theme.mode),r=()=>{if(e)return;const i=n==="dark"?"light":"dark";Dc(i,!0,!0),t==null||t(i)};return y.jsx("div",{className:E(To.switchTheme,n==="dark"&&To.switchTheme__darkMode),children:y.jsxs("label",{className:To.switchTheme_label,children:[y.jsx("input",{className:To.switch,type:"checkbox",onChange:r,checked:n==="dark",disabled:e}),y.jsx("span",{className:To.button,children:y.jsx("span",{className:To.button_iconWrapper,children:y.jsx(ie,{name:n==="dark"?"moon":"sun",size:"sm"})})})]})})},Mo={menuLocaleDropdown:"_menuLocaleDropdown_1ophw_1",menuLocaleDropdown__active:"_menuLocaleDropdown__active_1ophw_1",menuLocaleDropdown_icon:"_menuLocaleDropdown_icon_1ophw_1",menuLocaleDropdown_options:"_menuLocaleDropdown_options_1ophw_7",menuLocaleDropdown_content:"_menuLocaleDropdown_content_1ophw_10",menuLocaleDropdown_contentItem:"_menuLocaleDropdown_contentItem_1ophw_16"},hH=({isLoading:e,onSelectLocale:t})=>{const n=Po(s=>s.locale),r=Po(s=>s.locales),[i,o]=v.useState(!1),a=s=>{e||(tf(s,!0,!0),t==null||t(s))};return y.jsxs("ul",{className:E(Mo.menuLocaleDropdown,i&&Mo.menuLocaleDropdown__active),role:"menu",children:[y.jsx(V3,{label:n==="en"?"Change language":"Cambiar idioma",rightContent:y.jsx(ie,{className:Mo.menuLocaleDropdown_icon,name:"chevron-down"}),active:i,onClick:()=>o(!i)}),y.jsx(dc,{initial:!1,children:i&&y.jsx(_c.li,{className:Mo.menuLocaleDropdown_options,role:"menuitem",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},children:y.jsx("ul",{className:Mo.menuLocaleDropdown_content,children:r.map(s=>y.jsx(V3,{className:Mo.menuLocaleDropdown_contentItem,label:s.label,rightContent:y.jsx(dc,{children:n===s.value&&y.jsx(_c.span,{initial:{opacity:0,scale:.75},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.75},style:{display:"flex"},children:y.jsx(ie,{name:"check"})})}),onClick:()=>a(s.value)},s.value))})})})]})},p4={accountDetails:"_accountDetails_45ku0_1",accountDetails_email:"_accountDetails_email_45ku0_6"},mH=({title:e,email:t,isLoading:n})=>y.jsxs("div",{className:p4.accountDetails,children:[(n||!!e)&&y.jsx(yt,{type:"h3",children:n?y.jsx(wl,{width:"100%",height:"16px",maxWidth:"244px"}):e}),(n||!!t)&&y.jsx(je,{className:p4.accountDetails_email,type:"md",children:n?y.jsx(wl,{width:"70%",height:"8px",maxWidth:"144px"}):t})]}),Do={accountMenu:"_accountMenu_15e71_1",accountMenu_header:"_accountMenu_header_15e71_9",accountMenu_list:"_accountMenu_list_15e71_14",accountMenu_actionButton:"_accountMenu_actionButton_15e71_23",accountMenu_footer:"_accountMenu_footer_15e71_26"},h4=({className:e,accountDetails:t,localeProps:n,themeProps:r,isOpen:i=!1,footerAction:o,onLogout:a})=>{const s=Po(l=>l.locale);return y.jsx(dc,{initial:!1,children:i?y.jsxs(_c.section,{className:E(Do.accountMenu,e),initial:{opacity:0,scale:0,originX:1,originY:0},animate:{opacity:1,scale:1,originX:1,originY:0},exit:{opacity:0,scale:0,originX:1,originY:0},children:[((t==null?void 0:t.title)||(t==null?void 0:t.email)||(t==null?void 0:t.isLoading))&&y.jsx("header",{className:Do.accountMenu_header,children:y.jsx(mH,{...t})}),y.jsxs("ul",{className:Do.accountMenu_list,children:[(n==null?void 0:n.showLocale)&&y.jsx("li",{role:"listitem",children:y.jsx(hH,{...n})}),(r==null?void 0:r.showTheme)&&y.jsx(V3,{label:s==="en"?"Change mode":"Cambiar modo",rightContent:y.jsx(pH,{...r})})]}),(o||a)&&y.jsxs("footer",{className:Do.accountMenu_footer,children:[o&&y.jsx(Gr,{className:Do.accountMenu_actionButton,leftIcon:o.icon,variant:"ghost",onClick:o.onClick,children:o.label}),a&&y.jsx(Gr,{className:Do.accountMenu_actionButton,leftIcon:"logout",variant:"ghost",onClick:a,children:s==="en"?"Logout":"Cerrar sesión"})]})]},"account-menu"):null})},m4={logo:"_logo_1h331_1",logo_image:"_logo_image_1h331_14"},_H=({alt:e,desktop:t,mobile:n,onClick:r})=>{const{isMobile:i}=_a(),o=Zr(s=>s.theme.mode),a=v.useMemo(()=>{const s=n==null?void 0:n.src,l=(n==null?void 0:n.srcDark)||(n==null?void 0:n.src),c=t==null?void 0:t.src,u=(t==null?void 0:t.srcDark)||(t==null?void 0:t.src);return i&&s?o==="dark"?l:s:o==="dark"?u:c},[i,t,n,o]);return a?y.jsx("button",{className:m4.logo,onClick:r,"aria-label":"Header Logo Button",children:y.jsx("img",{src:a,alt:e??"logo",className:m4.logo_image,loading:"lazy"})}):null},tn={header:"_header_10fwv_1",header__sticky:"_header__sticky_10fwv_13",header_left:"_header_left_10fwv_17",header_button:"_header_button_10fwv_22",header_userIcon:"_header_userIcon_10fwv_41",header_content:"_header_content_10fwv_53",header_right:"_header_right_10fwv_57",header_menuWrapper:"_header_menuWrapper_10fwv_61",header_accountMenu:"_header_accountMenu_10fwv_64",header_accessPanel:"_header_accessPanel_10fwv_68"},yc="access-panel",bc="account-menu",vc="sidebar-menu",gH=({isSticky:e=!1,classNames:t,logoProps:n,accountMenuProps:r,accessPanelProps:i,customContent:o,hasSidebarMenu:a=!1,sidebarMenuContent:s,sidebarHeightGap:l})=>{const c=v.useRef(null),u=v.useRef(null),[d,f]=v.useState(null);return Zo({ref:c,shouldIgnore:d!==yc,onClickOutside:()=>f(null)}),Zo({ref:u,shouldIgnore:d!==bc,onClickOutside:()=>f(null)}),y.jsxs(y.Fragment,{children:[y.jsxs("header",{className:E(tn.header,e&&tn.header__sticky,t==null?void 0:t.header),children:[y.jsxs("div",{className:E(tn.header_left,t==null?void 0:t.leftContent),children:[a&&y.jsx("button",{className:tn.header_button,onClick:()=>f(d===vc?null:vc),children:y.jsx(ie,{name:"menu",size:"lg",color:"neutral-50"})}),!!n&&y.jsx(_H,{...n})]}),y.jsx("div",{className:E(tn.header_content,t==null?void 0:t.middleContent),children:o}),y.jsxs("div",{className:E(tn.header_right,t==null?void 0:t.rightContent),children:[!!i&&y.jsxs("div",{className:tn.header_menuWrapper,ref:c,children:[y.jsx("button",{className:tn.header_button,onClick:()=>f(d===yc?null:yc),children:y.jsx(ie,{name:"grip",size:"lg",color:"neutral-50"})}),y.jsx(f4,{isOpen:d===yc,className:tn.header_accessPanel,...i})]}),!!r&&y.jsxs("div",{className:tn.header_menuWrapper,ref:u,children:[y.jsx("button",{className:tn.header_button,onClick:()=>f(d===bc?null:bc),children:y.jsx("span",{className:tn.header_userIcon,children:y.jsx(ie,{name:"user",filled:!0,size:"md",color:"neutral-00"})})}),y.jsx(h4,{className:tn.header_accountMenu,isOpen:d===bc,themeProps:{showTheme:(r==null?void 0:r.showThemeSwitch)??!0},localeProps:{showLocale:(r==null?void 0:r.showLocaleSelector)??!0},accountDetails:r==null?void 0:r.accountDetails,footerAction:r==null?void 0:r.footerAction,onLogout:r==null?void 0:r.onLogout})]})]})]}),a&&y.jsx(l9,{isOpen:d===vc,onClose:()=>d===vc&&f(null),heightGap:l,children:s})]})},yH="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='310.5'%20height='341.5'%20viewBox='0%200%20310.5%20341.5'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='pattern'%3e%3ccircle%20id='Ellipse%20132'%20opacity='0.08'%20cx='125'%20cy='216.5'%20r='125'%20fill='url(%23paint0_linear_0_4)'/%3e%3ccircle%20id='Ellipse%20131'%20opacity='0.08'%20cx='177.5'%20cy='133'%20r='132.5'%20fill='url(%23paint1_linear_0_4)'%20stroke='white'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_4'%20x1='13.1965'%20y1='283.949'%20x2='92.3754'%20y2='242.893'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0.4'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_0_4'%20x1='58.9883'%20y1='204.496'%20x2='142.918'%20y2='160.977'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0.4'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Nt={headerNavigation:"_headerNavigation_wkdav_1",headerNavigation__brand:"_headerNavigation__brand_wkdav_9",headerNavigation_decoration:"_headerNavigation_decoration_wkdav_12",navigationPattern:"_navigationPattern_wkdav_18",headerNavigation_content:"_headerNavigation_content_wkdav_26",navigationSummary:"_navigationSummary_wkdav_37",navigationSummary_visual:"_navigationSummary_visual_wkdav_44",navigationIcon:"_navigationIcon_wkdav_49",navigationIcon_glyph:"_navigationIcon_glyph_wkdav_54",navigationImage:"_navigationImage_wkdav_58",navigationSummary_text:"_navigationSummary_text_wkdav_64",navigationTitle:"_navigationTitle_wkdav_74",navigationDescription:"_navigationDescription_wkdav_78",navigationSummary_menu:"_navigationSummary_menu_wkdav_83",navigationExtra:"_navigationExtra_wkdav_87"},_4=({title:e,description:t,breadcrumbsItems:n=[],menuItems:r=[],menuLabel:i,menuDisabled:o=!1,background:a="default",leadingVisual:s,pattern:l=!1,children:c,className:u,...d})=>y.jsxs("header",{...d,className:E(Nt.headerNavigation,a==="brand"&&Nt.headerNavigation__brand,u),children:[l&&y.jsx("div",{className:Nt.headerNavigation_decoration,"aria-hidden":"true",children:y.jsx("img",{className:Nt.navigationPattern,src:typeof l=="string"?l:yH,alt:""})}),y.jsxs("div",{className:Nt.headerNavigation_content,children:[n.length>1&&y.jsx(Pc,{items:n,darkMode:!0}),y.jsxs("div",{className:Nt.navigationSummary,children:[s&&y.jsx("div",{className:Nt.navigationSummary_visual,children:s.type==="icon"?y.jsx("span",{className:Nt.navigationIcon,"aria-hidden":"true",children:y.jsx(ie,{name:s.name,filled:s.filled,gradient:s.gradient,color:s.color??"gray-00",className:Nt.navigationIcon_glyph})}):y.jsx(bH,{src:s.src,alt:s.alt},s.src)}),y.jsxs("div",{className:Nt.navigationSummary_text,children:[y.jsx(yt,{type:"h1",darkMode:!0,className:Nt.navigationTitle,children:e}),t&&y.jsx(je,{className:Nt.navigationDescription,children:t})]}),r.length>0&&y.jsx(vu,{className:Nt.navigationSummary_menu,items:r,triggerLabel:i??e,disabled:o,listOrigin:"right",forceLightMode:!0,closeOnClick:!0})]}),c!=null&&y.jsx("div",{className:E(Nt.navigationExtra,"avocado-dark-theme"),children:c})]})]}),bH=({src:e,alt:t})=>{const[n,r]=v.useState(!1);return n?null:y.jsx("img",{className:Nt.navigationImage,src:e,alt:t,width:56,height:56,onError:()=>r(!0)})};_4.prototype={avocado:"HeaderNavigation"};const g4=v.createContext(null),vH=()=>{const e=v.useContext(g4);if(!e)throw new Error("useNavListContext must be used within NavList");return e},kt={navListItem:"_navListItem_ctf24_1",navListItem_submenu:"_navListItem_submenu_ctf24_5",navListItem_header:"_navListItem_header_ctf24_13",navListItem_link:"_navListItem_link_ctf24_13",navListItem_static:"_navListItem_static_ctf24_13",navListItem_leading:"_navListItem_leading_ctf24_44",navListItem_label:"_navListItem_label_ctf24_51",navListItem_trailing:"_navListItem_trailing_ctf24_55",navListItem__branch:"_navListItem__branch_ctf24_62",navListItem__isOpen:"_navListItem__isOpen_ctf24_62",navListItem__nested:"_navListItem__nested_ctf24_69"},CH=(e,t)=>!!e&&t!==!1,wH=({code:e,name:t,icon:n,href:r,canNavigate:i,items:o,className:a,depth:s=0,isOpen:l=!1})=>{const{toggleBranch:c,closeAll:u,onItemClick:d}=vH(),f=!!(o&&o.length>0),p=f&&l,h=s>0;if(f){const m=p?"gray-00":"neutral-70",b=`nav-list-submenu-${e}`;return y.jsxs("li",{className:E(kt.navListItem,kt.navListItem__branch,p&&kt.navListItem__isOpen,h&&kt.navListItem__nested,a),"data-testid":`nav-list-item-${e}`,children:[y.jsxs("button",{type:"button",className:kt.navListItem_header,"aria-expanded":p,"aria-controls":p?b:void 0,"data-testid":`nav-list-item-branch-${e}`,onClick:()=>c(e),children:[y.jsxs("span",{className:kt.navListItem_leading,children:[n&&y.jsx(ie,{name:n,size:"md",color:m,"aria-hidden":!0}),y.jsx("span",{className:kt.navListItem_label,children:t})]}),y.jsx("span",{className:kt.navListItem_trailing,children:y.jsx(ie,{name:p?"chevron-down":"chevron-right",size:"md",color:m,"aria-hidden":!0})})]}),p&&o&&y.jsx("ul",{id:b,className:kt.navListItem_submenu,"data-testid":`nav-list-depth-${s+1}`,children:o.map(C=>y.jsx(B3,{...C,depth:s+1},C.code))})]})}const g=y.jsxs("span",{className:kt.navListItem_leading,children:[n&&y.jsx(ie,{name:n,size:"md",color:"neutral-70","aria-hidden":!0}),y.jsx("span",{className:kt.navListItem_label,children:t})]}),_=m=>{u(),d==null||d({code:e,name:t,href:r,canNavigate:i},m)};return y.jsx("li",{className:E(kt.navListItem,kt.navListItem__leaf,h&&kt.navListItem__nested,a),"data-testid":`nav-list-item-${e}`,children:CH(r,i)?y.jsx("a",{className:kt.navListItem_link,href:r,"data-testid":`nav-list-item-link-${e}`,onClick:_,children:g}):y.jsx("span",{className:kt.navListItem_static,children:g})})},B3=v.memo(wH);B3.prototype={avocado:"NavListItem"};const xH={navList:"_navList_6j5bb_1"},kH=e=>{const t=e.find(n=>n.defaultOpen&&n.items&&n.items.length>0);return(t==null?void 0:t.code)??null},y4=({items:e,className:t,"aria-label":n,onItemClick:r})=>{const[i,o]=v.useState(()=>kH(e)),a=v.useCallback(c=>{o(u=>u===c?null:c)},[]),s=v.useCallback(()=>{o(null)},[]),l=v.useMemo(()=>({toggleBranch:a,closeAll:s,onItemClick:r}),[a,s,r]);return y.jsx(g4.Provider,{value:l,children:y.jsx("nav",{"aria-label":n,children:y.jsx("ul",{className:E(xH.navList,t),"data-testid":"nav-list",children:e.map(c=>y.jsx(B3,{...c,isOpen:i===c.code},c.code))})})})};y4.prototype={avocado:"NavList"};function SH(e){const{referenceRect:t,floatingRect:n,strategy:r,offset:i}=e,[o,a]=i;let s=t.top+(t.height-n.height)/2+a,l=t.left+(t.width-n.width)/2+o;return r==="absolute"&&(s+=window.scrollY,l+=window.scrollX),{top:s,left:l}}const H3=["auto","scroll"];function TH(e){const t=[];let n=e==null?void 0:e.parentElement;for(;n;){const{overflow:r,overflowX:i,overflowY:o}=window.getComputedStyle(n);(H3.includes(r)||H3.includes(i)||H3.includes(o))&&t.push(n),n=n.parentElement}return t.push(window),t}function MH(e,t,n){return e.forEach(r=>{r.addEventListener(t,n,{passive:!0})}),()=>{e.forEach(r=>{r.removeEventListener(t,n)})}}function DH(e={}){const{zIndex:t=1e3,strategy:n="fixed",offset:r=[0,0],isOpen:i=!1,portalContainer:o=typeof document<"u"?document.body:null,onIsTargetVisible:a}=e,s=v.useRef(null),l=v.useRef(null),c=v.useRef({top:0,left:0}),[u,d]=v.useState(!1),f=v.useRef(r);f.current=r;const p=v.useRef(n);p.current=n;const h=v.useRef(t);h.current=t;const g=v.useCallback(()=>{const m=s.current,b=l.current;if(!m||!b||!i)return;const C=m.getBoundingClientRect(),x=b.getBoundingClientRect(),w=SH({referenceRect:C,floatingRect:x,strategy:p.current,offset:f.current});c.current=w,b.style.top=`${w.top}px`,b.style.left=`${w.left}px`,d(k=>k||!0)},[i]);v.useEffect(()=>{l.current&&(l.current.style.zIndex=String(t))},[t]),v.useEffect(()=>{if(!i)return;requestAnimationFrame(()=>{g()});const m=TH(s.current),b=MH(m,"scroll",g),C=new ResizeObserver(g);return s.current&&C.observe(s.current),l.current&&C.observe(l.current),window.addEventListener("resize",g),()=>{b(),C.disconnect(),window.removeEventListener("resize",g)}},[i,g]),v.useEffect(()=>{if(!a||!(s!=null&&s.current))return;const m=new IntersectionObserver(b=>{b.forEach(C=>{const x=C.isIntersecting;a(x)})},{threshold:.1,root:null,rootMargin:"0px"});return m.observe(s.current),()=>{s.current&&m.unobserve(s.current),m.disconnect()}},[]),v.useEffect(()=>{i||d(!1)},[i]);const _=v.useMemo(()=>function({children:b}){return!i||!o?null:St.createPortal(y.jsx("div",{ref:l,style:{position:n,top:0,left:0,zIndex:h.current,visibility:u?"visible":"hidden"},children:b}),o)},[i,o,n,u]);return{referenceRef:s,floatingRef:l,position:c.current,Portal:_,update:g}}Z.AccessPanel=f4,Z.Accordion=ng,Z.AccountMenu=h4,Z.Banner=NO,Z.Beacon=ed,Z.Box=rg,Z.Breadcrumbs=Pc,Z.Button=Gr,Z.Card=ig,Z.CardAccordion=ag,Z.CardNotification=ff,Z.Checkbox=ns,Z.DataCard=hg,Z.DataTable=mg,Z.DatePicker=GC,Z.Divider=H0,Z.Donut=$0,Z.DonutLabels=z0,Z.DonutLegend=W0,Z.Drawer=H2,Z.DropdownButton=Y0,Z.Header=gH,Z.HeaderNavigation=_4,Z.Heading=yt,Z.Hotspot=s9,Z.Link=U0,Z.Loading=QC,Z.LocaleStore=$4,Z.Menu=vu,Z.Modal=XC,Z.NavList=y4,Z.Pager=p6,Z.Pill=Ic,Z.PreviewerMarkdown=eI,Z.Processing=l2,Z.ProgressBar=tI,Z.RadioButton=c2,Z.RoundButton=wr,Z.Select=d6,Z.SelectPagination=MI,Z.SidebarMenu=l9,Z.SkeletonBase=wl,Z.SkeletonCircle=LI,Z.Stepper=PI,Z.Switch=EI,Z.Table=GI,Z.Tabs=m2,Z.Tag=OI,Z.Text=je,Z.TextField=_2,Z.Textarea=g2,Z.ThemeProvider=H4,Z.ThemeStore=B4,Z.Timer=NI,Z.Toaster=M2,Z.Tooltip=fa,Z.Weekly=I2,Z.WeeklyGroup=AO,Z.toast=Ye,Z.useFloatingPortal=DH,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})}));
860
+ `),()=>{var S;(S=s.current)==null||S.removeAttribute("data-motion-pop-id"),k.contains(w)&&k.removeChild(w)}},[t]),y.jsx(rB,{isPresent:t,childRef:s,sizeRef:l,pop:o,children:o===!1?e:R.cloneElement(e,{ref:u})})}const oB=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:s,anchorY:l,root:c})=>{const d=Sd(aB),u=v.useId();let f=!0,p=v.useMemo(()=>(f=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:h=>{d.set(h,!0);for(const g of d.values())if(!g)return;r&&r()},register:h=>(d.set(h,!1),()=>d.delete(h))}),[n,d,r]);return o&&f&&(p={...p}),v.useMemo(()=>{d.forEach((h,g)=>d.set(g,!1))},[n]),R.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=y.jsx(iB,{pop:a==="popLayout",isPresent:n,anchorX:s,anchorY:l,root:c,children:e}),y.jsx($l.Provider,{value:p,children:e})};function aB(){return new Map}function F4(e=!0){const t=v.useContext($l);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=v.useId();v.useEffect(()=>{if(e)return i(o)},[e]);const a=v.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const uc=e=>e.key||"";function V4(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const dc=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:s="left",anchorY:l="top",root:c})=>{const[d,u]=F4(a),f=v.useMemo(()=>V4(e),[e]),p=a&&!d?[]:f.map(uc),h=v.useRef(!0),g=v.useRef(f),_=Sd(()=>new Map),m=v.useRef(new Set),[b,C]=v.useState(f),[x,w]=v.useState(f);c9(()=>{h.current=!1,g.current=f;for(let M=0;M<x.length;M++){const P=uc(x[M]);p.includes(P)?(_.delete(P),m.current.delete(P)):_.get(P)!==!0&&_.set(P,!1)}},[x,p.length,p.join("-")]);const k=[];if(f!==b){let M=[...f];for(let P=0;P<x.length;P++){const T=x[P],I=uc(T);p.includes(I)||(M.splice(P,0,T),k.push(T))}return o==="wait"&&k.length&&(M=k),w(V4(M)),C(f),null}const{forceRender:S}=v.useContext(kd);return y.jsx(y.Fragment,{children:x.map(M=>{const P=uc(M),T=a&&!d?!1:f===x||p.includes(P),I=()=>{if(m.current.has(P))return;if(_.has(P))m.current.add(P),_.set(P,!0);else return;let O=!0;_.forEach(V=>{V||(O=!1)}),O&&(S==null||S(),w(g.current),a&&(u==null||u()),r&&r())};return y.jsx(oB,{isPresent:T,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,root:c,onExitComplete:T?void 0:I,anchorX:s,anchorY:l,children:M},P)})})},B4=v.createContext({strict:!1}),H4={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let $4=!1;function sB(){if($4)return;const e={};for(const t in H4)e[t]={isEnabled:n=>H4[t].some(r=>!!n[r])};Rm(e),$4=!0}function z4(){return sB(),YF()}function lB(e){const t=z4();for(const n in e)t[n]={...t[n],...e[n]};Rm(t)}const cB=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function fc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cB.has(e)}let W4=e=>!fc(e);function uB(e){typeof e=="function"&&(W4=t=>t.startsWith("on")?!fc(t):e(t))}try{uB(require("@emotion/is-prop-valid").default)}catch{}function dB(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||gt(e[i])||(W4(i)||n===!0&&fc(i)||!t&&!fc(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const pc=v.createContext({});function fB(e,t){if(rc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ua(n)?n:void 0,animate:Ua(r)?r:void 0}}return e.inherit!==!1?t:{}}function pB(e){const{initial:t,animate:n}=fB(e,v.useContext(pc));return v.useMemo(()=>({initial:t,animate:n}),[Y4(t),Y4(n)])}function Y4(e){return Array.isArray(e)?e.join(" "):e}const P3=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function U4(e,t,n){for(const r in t)!gt(t[r])&&!Km(r,n)&&(e[r]=t[r])}function hB({transformTemplate:e},t){return v.useMemo(()=>{const n=P3();return w3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function mB(e,t){const n=e.style||{},r={};return U4(r,n,e),Object.assign(r,hB(e,t)),r}function _B(e,t){const n={},r=mB(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Z4=()=>({...P3(),attrs:{}});function gB(e,t,n,r){const i=v.useMemo(()=>{const o=Z4();return Qm(o,t,Jm(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};U4(o,e.style,e),i.style={...o,...i.style}}return i}const yB=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function E3(e){return typeof e!="string"||e.includes("-")?!1:!!(yB.indexOf(e)>-1||/[A-Z]/u.test(e))}function bB(e,t,n,{latestValues:r},i,o=!1,a){const l=(a??E3(e)?gB:_B)(t,r,i,e),c=dB(t,typeof e=="string",o),d=e!==v.Fragment?{...c,...l,ref:n}:{},{children:u}=t,f=v.useMemo(()=>gt(u)?u.get():u,[u]);return v.createElement(e,{...d,children:f})}function vB({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:CB(n,r,i,e),renderState:t()}}function CB(e,t,n,r){const i={},o=r(e,{});for(const f in o)i[f]=lc(o[f]);let{initial:a,animate:s}=e;const l=rc(e),c=Om(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const u=d?s:a;if(u&&typeof u!="boolean"&&!nc(u)){const f=Array.isArray(u)?u:[u];for(let p=0;p<f.length;p++){const h=i3(e,f[p]);if(h){const{transitionEnd:g,transition:_,...m}=h;for(const b in m){let C=m[b];if(Array.isArray(C)){const x=d?C.length-1:0;C=C[x]}C!==null&&(i[b]=C)}for(const b in g)i[b]=g[b]}}}return i}const q4=e=>(t,n)=>{const r=v.useContext(pc),i=v.useContext($l),o=()=>vB(e,t,r,i);return n?o():Sd(o)},wB=q4({scrapeMotionValuesFromProps:k3,createRenderState:P3}),xB=q4({scrapeMotionValuesFromProps:e4,createRenderState:Z4}),kB=Symbol.for("motionComponentSymbol");function SB(e,t,n){const r=v.useRef(n);v.useInsertionEffect(()=>{r.current=n});const i=v.useRef(null);return v.useCallback(o=>{var s;o&&((s=e.onMount)==null||s.call(e,o));const a=r.current;if(typeof a=="function")if(o){const l=a(o);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):a(o);else a&&(a.current=o);t&&(o?t.mount(o):t.unmount())},[t])}const G4=v.createContext({});function ko(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function TB(e,t,n,r,i,o){var C,x;const{visualElement:a}=v.useContext(pc),s=v.useContext(B4),l=v.useContext($l),c=v.useContext(L3),d=c.reducedMotion,u=c.skipAnimations,f=v.useRef(null),p=v.useRef(!1);r=r||s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d,skipAnimations:u,isSVG:o}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const h=f.current,g=v.useContext(G4);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&MB(f.current,n,i,g);const _=v.useRef(!1);v.useInsertionEffect(()=>{h&&_.current&&h.update(n,l)});const m=n[fm],b=v.useRef(!!m&&typeof window<"u"&&!((C=window.MotionHandoffIsComplete)!=null&&C.call(window,m))&&((x=window.MotionHasOptimisedAnimation)==null?void 0:x.call(window,m)));return c9(()=>{p.current=!0,h&&(_.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),b.current&&h.animationState&&h.animationState.animateChanges())}),v.useEffect(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,m)}),b.current=!1),h.enteringChildren=void 0)}),h}function MB(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutAnchor:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:K4(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&ko(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c,layoutAnchor:d})}function K4(e){if(e)return e.options.allowProjection!==!1?e.projection:K4(e.parent)}function I3(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&lB(r);const o=n?n==="svg":E3(e),a=o?xB:wB;function s(c,d){let u;const f={...v.useContext(L3),...c,layoutId:DB(c)},{isStatic:p}=f,h=pB(c),g=a(c,p);if(!p&&typeof window<"u"){LB();const _=PB(f);u=_.MeasureLayout,h.visualElement=TB(e,g,f,i,_.ProjectionNode,o)}return y.jsxs(pc.Provider,{value:h,children:[u&&h.visualElement?y.jsx(u,{visualElement:h.visualElement,...f}):null,bB(e,c,SB(g,h.visualElement,d),g,p,t,o)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=v.forwardRef(s);return l[kB]=e,l}function DB({layoutId:e}){const t=v.useContext(kd).id;return t&&e!==void 0?t+"-"+e:e}function LB(e,t){v.useContext(B4).strict}function PB(e){const t=z4(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function EB(e,t){if(typeof Proxy>"u")return I3;const n=new Map,r=(o,a)=>I3(o,a,e,t),i=(o,a)=>r(o,a);return new Proxy(i,{get:(o,a)=>a==="create"?r:(n.has(a)||n.set(a,I3(a,void 0,e,t)),n.get(a))})}const IB=(e,t)=>t.isSVG??E3(e)?new lV(t):new nV(t,{allowProjection:e!==v.Fragment});class OB extends Yr{constructor(t){super(t),t.animationState||(t.animationState=pV(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();nc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let AB=0;class NB extends Yr{constructor(){super(...arguments),this.id=AB++,this.isExitComplete=!1}update(){var o;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:a,custom:s}=this.node.getProps();if(typeof a=="string"){const l=ki(this.node,a,s);if(l){const{transition:c,transitionEnd:d,...u}=l;for(const f in u)(o=this.node.getValue(f))==null||o.jump(u[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const RB={animation:{Feature:OB},exit:{Feature:NB}};function Ka(e){return{point:{x:e.pageX,y:e.pageY}}}const jB=e=>t=>p3(t)&&e(t,Ka(t));function Qa(e,t,n,r){return Ga(e,t,jB(n),r)}const Q4=({current:e})=>e?e.ownerDocument.defaultView:null,X4=(e,t)=>Math.abs(e-t);function FB(e,t){const n=X4(e.x,t.x),r=X4(e.y,t.y);return Math.sqrt(n**2+r**2)}const J4=new Set(["auto","scroll"]);class e7{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:a=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=hc(this.lastRawMoveEventInfo,this.transformPagePoint));const p=O3(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=FB(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!g)return;const{point:_}=p,{timestamp:m}=_t;this.history.push({..._,timestamp:m});const{onStart:b,onMove:C}=this.handlers;h||(b&&b(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,p)},this.handlePointerMove=(p,h)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=h,this.lastMoveEventInfo=hc(h,this.transformPagePoint),Ve.update(this.updatePoint,!0)},this.handlePointerUp=(p,h)=>{this.end();const{onEnd:g,onSessionEnd:_,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=O3(p.type==="pointercancel"?this.lastMoveEventInfo:hc(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(p,b),_&&_(p,b)},!p3(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;const l=Ka(t),c=hc(l,this.transformPagePoint),{point:d}=c,{timestamp:u}=_t;this.history=[{...d,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,O3(c,this.history)),this.removeListeners=Fa(Qa(this.contextWindow,"pointermove",this.handlePointerMove),Qa(this.contextWindow,"pointerup",this.handlePointerUp),Qa(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(J4.has(r.overflowX)||J4.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,i),Ve.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Hr(this.updatePoint)}}function hc(e,t){return t?{point:t(e.point)}:e}function t7(e,t){return{x:e.x-t.x,y:e.y-t.y}}function O3({point:e},t){return{point:e,delta:t7(e,n7(t)),offset:t7(e,VB(t)),velocity:BB(t,.1)}}function VB(e){return e[0]}function n7(e){return e[e.length-1]}function BB(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=n7(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>en(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>en(t)*2&&(r=e[1]);const o=pn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function HB(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ze(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ze(n,e,r.max):Math.min(e,n)),e}function r7(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function $B(e,{top:t,left:n,bottom:r,right:i}){return{x:r7(e.x,n,i),y:r7(e.y,t,r)}}function i7(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function zB(e,t){return{x:i7(e.x,t.x),y:i7(e.y,t.y)}}function WB(e,t){let n=.5;const r=Nt(e),i=Nt(t);return i>r?n=Va(t.min,t.max-r,e.min):r>i&&(n=Va(e.min,e.max-i,t.min)),Jn(0,1,n)}function YB(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const A3=.35;function UB(e=A3){return e===!1?e=0:e===!0&&(e=A3),{x:o7(e,"left","right"),y:o7(e,"top","bottom")}}function o7(e,t,n){return{min:a7(e,t),max:a7(e,n)}}function a7(e,t){return typeof e=="number"?e:e[t]||0}const ZB=new WeakMap;class qB{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ut(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=u=>{n&&this.snapToCursor(Ka(u).point),this.stopAnimation()},a=(u,f)=>{const{drag:p,dragPropagation:h,onDragStart:g}=this.getProps();if(p&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=CF(p),!this.openDragLock))return;this.latestPointerEvent=u,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nr(m=>{let b=this.getAxisMotionValue(m).get()||0;if(er.test(b)){const{projection:C}=this.visualElement;if(C&&C.layout){const x=C.layout.layoutBox[m];x&&(b=Nt(x)*(parseFloat(b)/100))}}this.originPoint[m]=b}),g&&Ve.update(()=>g(u,f),!1,!0),a3(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},s=(u,f)=>{this.latestPointerEvent=u,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:g,onDrag:_}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:m}=f;if(h&&this.currentDirection===null){this.currentDirection=KB(m),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),_&&Ve.update(()=>_(u,f),!1,!0)},l=(u,f)=>{this.latestPointerEvent=u,this.latestPanInfo=f,this.stop(u,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:u}=this.getProps();(u||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new e7(t,{onSessionStart:o,onStart:a,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Q4(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:s}=this.getProps();s&&Ve.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!mc(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=HB(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&ko(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=$B(r.layoutBox,t):this.constraints=!1,this.elastic=UB(n),i!==this.constraints&&!ko(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&nr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=YB(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ko(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=KF(r,i.root,this.visualElement.getTransformPagePoint());let a=zB(i.layout.layoutBox,o);if(n){const s=n(ZF(a));this.hasMutatedConstraints=!!s,s&&(a=Fm(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=nr(d=>{if(!mc(d,n,this.currentDirection))return;let u=l&&l[d]||{};(a===!0||a===d)&&(u={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,h={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(d,h)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return a3(this.visualElement,t),r.start(r3(t,r,0,n,this.visualElement,!1))}stopAnimation(){nr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){nr(n=>{const{drag:r}=this.getProps();if(!mc(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[n],l=o.get()||0;o.set(t[n]-ze(a,s,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ko(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};nr(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();i[a]=WB({min:l,max:l},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),nr(a=>{if(!mc(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(ze(l,c,i[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;ZB.set(this.visualElement,this);const t=this.visualElement.current,n=Qa(t,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps(),f=c.target,p=f!==t&&MF(f);d&&u&&!p&&this.start(c)});let r;const i=()=>{const{dragConstraints:c}=this.getProps();ko(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=GB(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,a=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ve.read(i);const s=Ga(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(nr(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=A3,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function s7(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function GB(e,t,n){const r=Pm(e,s7(n)),i=Pm(t,s7(n));return()=>{r(),i()}}function mc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function KB(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class QB extends Yr{constructor(t){super(t),this.removeGroupControls=fn,this.removeListeners=fn,this.controls=new qB(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const N3=e=>(t,n)=>{e&&Ve.update(()=>e(t,n),!1,!0)};class XB extends Yr{constructor(){super(...arguments),this.removePointerDownListener=fn}onPointerDown(t){this.session=new e7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Q4(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:N3(t),onStart:N3(n),onMove:N3(r),onEnd:(o,a)=>{delete this.session,i&&Ve.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Qa(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let R3=!1;class JB extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),R3&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),cc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:a}=r;return a&&(a.isPresent=o,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),R3=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Ve.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),f3.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;R3=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function l7(e){const[t,n]=F4(),r=v.useContext(kd);return y.jsx(JB,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(G4),isPresent:t,safeToRemove:n})}const eH={pan:{Feature:XB},drag:{Feature:QB,ProjectionNode:R4,MeasureLayout:l7}};function c7(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Ve.postRender(()=>o(t,Ka(t)))}class tH extends Yr{mount(){const{current:t}=this.node;t&&(this.unmount=xF(t,(n,r)=>(c7(this.node,r,"Start"),i=>c7(this.node,i,"End"))))}unmount(){}}class nH extends Yr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Fa(Ga(this.node.current,"focus",()=>this.onFocus()),Ga(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function u7(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Ve.postRender(()=>o(t,Ka(t)))}class rH extends Yr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=LF(t,(i,o)=>(u7(this.node,o,"Start"),(a,{success:s})=>u7(this.node,a,s?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const j3=new WeakMap,F3=new WeakMap,iH=e=>{const t=j3.get(e.target);t&&t(e)},oH=e=>{e.forEach(iH)};function aH({root:e,...t}){const n=e||document;F3.has(n)||F3.set(n,{});const r=F3.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(oH,{root:e,...t})),r[i]}function sH(e,t,n){const r=aH(t);return j3.set(e,n),r.observe(e),()=>{j3.delete(e),r.unobserve(e)}}const lH={some:0,all:1};class cH extends Yr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:lH[i]},s=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),p=d?u:f;p&&p(c)};this.stopObserver=sH(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(uH(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function uH({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const dH={...RB,...{inView:{Feature:cH},tap:{Feature:rH},focus:{Feature:nH},hover:{Feature:tH}},...eH,...{layout:{ProjectionNode:R4,MeasureLayout:l7}}},_c=EB(dH,IB),Mi={accessProduct:"_accessProduct_1y9te_1",accessProduct__active:"_accessProduct__active_1y9te_11",accessProduct_content:"_accessProduct_content_1y9te_11",accessProduct_logo:"_accessProduct_logo_1y9te_11",accessProduct_name:"_accessProduct_name_1y9te_57",accessProduct_logoImage:"_accessProduct_logoImage_1y9te_71"},d7=({isActive:e=!1,name:t,logo:n,activePillText:r="Actual",onClick:i})=>{var o,a;return y.jsxs("button",{className:E(Mi.accessProduct,e&&Mi.accessProduct__active),onClick:i,children:[e&&y.jsx(Ic,{className:Mi.accessProduct_pill,color:"blocked-opacity",textColor:"primary-60",children:r}),y.jsxs("div",{className:Mi.accessProduct_content,children:[y.jsx("div",{className:Mi.accessProduct_logo,children:n?y.jsx("img",{className:Mi.accessProduct_logoImage,src:n,alt:t,width:31,height:31,loading:"lazy"}):y.jsx(je,{children:(a=(o=t==null?void 0:t.trim())==null?void 0:o[0])==null?void 0:a.toUpperCase()})}),y.jsx(je,{className:Mi.accessProduct_name,type:"sm",children:t})]})]})},gc={accessProductRow:"_accessProductRow_8n0ti_1",accessProductRow_logo:"_accessProductRow_logo_8n0ti_35",accessProductRow_logoImage:"_accessProductRow_logoImage_8n0ti_47",accessProductRow_name:"_accessProductRow_name_8n0ti_50"},fH=({name:e,logo:t,onClick:n,className:r})=>{var i,o;return y.jsxs("button",{className:E(gc.accessProductRow,r),onClick:n,children:[y.jsx("div",{className:gc.accessProductRow_logo,children:t?y.jsx("img",{className:gc.accessProductRow_logoImage,src:t,alt:e,width:16,height:16,loading:"lazy"}):y.jsx(je,{children:(o=(i=e==null?void 0:e.trim())==null?void 0:i[0])==null?void 0:o.toUpperCase()})}),y.jsx(je,{className:gc.accessProductRow_name,children:e})]})},ht={accessPanel:"_accessPanel_18xqh_1",accessPanel_header:"_accessPanel_header_18xqh_8",accessPanel_content:"_accessPanel_content_18xqh_15",accessPanel_content__active:"_accessPanel_content__active_18xqh_22",accessPanel_content__narrowSpacing:"_accessPanel_content__narrowSpacing_18xqh_25",accessPanel_contentTitle:"_accessPanel_contentTitle_18xqh_28",accessPanel_contentCards:"_accessPanel_contentCards_18xqh_37",accessPanel_contentCard:"_accessPanel_contentCard_18xqh_37",accessPanel_contentList:"_accessPanel_contentList_18xqh_47",accessPanel_contentItemRow:"_accessPanel_contentItemRow_18xqh_52"},f7=({className:e,isOpen:t=!1,title:n="Panel de Accesos",productsTitle:r="Productos",recentProductsTitle:i="Recientes",customProductsTitle:o="Personalizados",activePillText:a,products:s=[],recentProducts:l=[],customProducts:c=[]})=>{const d=v.useMemo(()=>s==null?void 0:s.some(f=>f==null?void 0:f.isActive),[s]),u=v.useMemo(()=>c==null?void 0:c.some(f=>f==null?void 0:f.isActive),[c]);return y.jsx(dc,{children:t&&y.jsxs(_c.section,{className:E(ht.accessPanel,e),initial:{opacity:0,scale:0,originX:1,originY:0},animate:{opacity:1,scale:1,originX:1,originY:0},exit:{opacity:0,scale:0,originX:1,originY:0},children:[y.jsxs("header",{className:ht.accessPanel_header,children:[y.jsx(ie,{name:"grip",color:"neutral-70"}),y.jsx(yt,{type:"h3",children:n})]}),!!(s!=null&&s.length)&&y.jsxs("div",{className:E(ht.accessPanel_content,d&&ht.accessPanel_content__active),children:[y.jsx(je,{className:ht.accessPanel_contentTitle,children:r}),y.jsx("ul",{className:ht.accessPanel_contentCards,children:s.map((f,p)=>y.jsx("li",{className:ht.accessPanel_contentCard,children:y.jsx(d7,{...f,activePillText:a})},`product-${p}-${f==null?void 0:f.key}`))})]}),!!(l!=null&&l.length)&&y.jsxs("div",{className:E(ht.accessPanel_content,ht.accessPanel_content__narrowSpacing),children:[y.jsx(je,{className:ht.accessPanel_contentTitle,children:i}),y.jsx("ul",{className:ht.accessPanel_contentList,children:l.map((f,p)=>y.jsx("li",{className:ht.accessPanel_contentItem,children:y.jsx(fH,{className:ht.accessPanel_contentItemRow,...f})},`recent-product-${p}-${f==null?void 0:f.key}`))})]}),!!(c!=null&&c.length)&&y.jsxs("div",{className:E(ht.accessPanel_content,u&&ht.accessPanel_content__active),children:[y.jsx(je,{className:ht.accessPanel_contentTitle,children:o}),y.jsx("ul",{className:ht.accessPanel_contentCards,children:c==null?void 0:c.map((f,p)=>y.jsx("li",{className:ht.accessPanel_contentCard,children:y.jsx(d7,{...f,activePillText:a})},`custom-product-${p}-${f==null?void 0:f.key}`))})]})]},"access-panel")})},So={accountMenuItem:"_accountMenuItem_13hzw_1",accountMenuItem__hasClick:"_accountMenuItem__hasClick_13hzw_11",accountMenuItem__active:"_accountMenuItem__active_13hzw_17",accountMenuItem_icon:"_accountMenuItem_icon_13hzw_20",accountMenuItem_label:"_accountMenuItem_label_13hzw_23",accountMenuItem_leftContent:"_accountMenuItem_leftContent_13hzw_26"},V3=({className:e,icon:t,label:n,rightContent:r,active:i,onClick:o})=>y.jsxs("li",{className:E(So.accountMenuItem,o&&So.accountMenuItem__hasClick,i&&So.accountMenuItem__active,e),role:o?"button":"listitem",onClick:o,children:[y.jsxs("div",{className:So.accountMenuItem_leftContent,children:[!!t&&y.jsx(ie,{className:So.accountMenuItem_icon,name:t}),y.jsx(je,{className:So.accountMenuItem_label,type:"md",children:n})]}),r]}),To={switchTheme_label:"_switchTheme_label_1vycx_1",button:"_button_1vycx_7",button_iconWrapper:"_button_iconWrapper_1vycx_16",switch:"_switch_1vycx_1",switchTheme:"_switchTheme_1vycx_1",switchTheme__darkMode:"_switchTheme__darkMode_1vycx_42"},pH=({isLoading:e,onSelectTheme:t})=>{const n=Zr(i=>i.theme.mode),r=()=>{if(e)return;const i=n==="dark"?"light":"dark";Dc(i,!0,!0),t==null||t(i)};return y.jsx("div",{className:E(To.switchTheme,n==="dark"&&To.switchTheme__darkMode),children:y.jsxs("label",{className:To.switchTheme_label,children:[y.jsx("input",{className:To.switch,type:"checkbox",onChange:r,checked:n==="dark",disabled:e}),y.jsx("span",{className:To.button,children:y.jsx("span",{className:To.button_iconWrapper,children:y.jsx(ie,{name:n==="dark"?"moon":"sun",size:"sm"})})})]})})},Mo={menuLocaleDropdown:"_menuLocaleDropdown_1ophw_1",menuLocaleDropdown__active:"_menuLocaleDropdown__active_1ophw_1",menuLocaleDropdown_icon:"_menuLocaleDropdown_icon_1ophw_1",menuLocaleDropdown_options:"_menuLocaleDropdown_options_1ophw_7",menuLocaleDropdown_content:"_menuLocaleDropdown_content_1ophw_10",menuLocaleDropdown_contentItem:"_menuLocaleDropdown_contentItem_1ophw_16"},hH=({isLoading:e,onSelectLocale:t})=>{const n=Po(s=>s.locale),r=Po(s=>s.locales),[i,o]=v.useState(!1),a=s=>{e||(tf(s,!0,!0),t==null||t(s))};return y.jsxs("ul",{className:E(Mo.menuLocaleDropdown,i&&Mo.menuLocaleDropdown__active),role:"menu",children:[y.jsx(V3,{label:n==="en"?"Change language":"Cambiar idioma",rightContent:y.jsx(ie,{className:Mo.menuLocaleDropdown_icon,name:"chevron-down"}),active:i,onClick:()=>o(!i)}),y.jsx(dc,{initial:!1,children:i&&y.jsx(_c.li,{className:Mo.menuLocaleDropdown_options,role:"menuitem",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},children:y.jsx("ul",{className:Mo.menuLocaleDropdown_content,children:r.map(s=>y.jsx(V3,{className:Mo.menuLocaleDropdown_contentItem,label:s.label,rightContent:y.jsx(dc,{children:n===s.value&&y.jsx(_c.span,{initial:{opacity:0,scale:.75},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.75},style:{display:"flex"},children:y.jsx(ie,{name:"check"})})}),onClick:()=>a(s.value)},s.value))})})})]})},p7={accountDetails:"_accountDetails_45ku0_1",accountDetails_email:"_accountDetails_email_45ku0_6"},mH=({title:e,email:t,isLoading:n})=>y.jsxs("div",{className:p7.accountDetails,children:[(n||!!e)&&y.jsx(yt,{type:"h3",children:n?y.jsx(wl,{width:"100%",height:"16px",maxWidth:"244px"}):e}),(n||!!t)&&y.jsx(je,{className:p7.accountDetails_email,type:"md",children:n?y.jsx(wl,{width:"70%",height:"8px",maxWidth:"144px"}):t})]}),Do={accountMenu:"_accountMenu_15e71_1",accountMenu_header:"_accountMenu_header_15e71_9",accountMenu_list:"_accountMenu_list_15e71_14",accountMenu_actionButton:"_accountMenu_actionButton_15e71_23",accountMenu_footer:"_accountMenu_footer_15e71_26"},h7=({className:e,accountDetails:t,localeProps:n,themeProps:r,isOpen:i=!1,footerAction:o,onLogout:a})=>{const s=Po(l=>l.locale);return y.jsx(dc,{initial:!1,children:i?y.jsxs(_c.section,{className:E(Do.accountMenu,e),initial:{opacity:0,scale:0,originX:1,originY:0},animate:{opacity:1,scale:1,originX:1,originY:0},exit:{opacity:0,scale:0,originX:1,originY:0},children:[((t==null?void 0:t.title)||(t==null?void 0:t.email)||(t==null?void 0:t.isLoading))&&y.jsx("header",{className:Do.accountMenu_header,children:y.jsx(mH,{...t})}),y.jsxs("ul",{className:Do.accountMenu_list,children:[(n==null?void 0:n.showLocale)&&y.jsx("li",{role:"listitem",children:y.jsx(hH,{...n})}),(r==null?void 0:r.showTheme)&&y.jsx(V3,{label:s==="en"?"Change mode":"Cambiar modo",rightContent:y.jsx(pH,{...r})})]}),(o||a)&&y.jsxs("footer",{className:Do.accountMenu_footer,children:[o&&y.jsx(Gr,{className:Do.accountMenu_actionButton,leftIcon:o.icon,variant:"ghost",onClick:o.onClick,children:o.label}),a&&y.jsx(Gr,{className:Do.accountMenu_actionButton,leftIcon:"logout",variant:"ghost",onClick:a,children:s==="en"?"Logout":"Cerrar sesión"})]})]},"account-menu"):null})},m7={logo:"_logo_1h331_1",logo_image:"_logo_image_1h331_14"},_H=({alt:e,desktop:t,mobile:n,onClick:r})=>{const{isMobile:i}=_a(),o=Zr(s=>s.theme.mode),a=v.useMemo(()=>{const s=n==null?void 0:n.src,l=(n==null?void 0:n.srcDark)||(n==null?void 0:n.src),c=t==null?void 0:t.src,d=(t==null?void 0:t.srcDark)||(t==null?void 0:t.src);return i&&s?o==="dark"?l:s:o==="dark"?d:c},[i,t,n,o]);return a?y.jsx("button",{className:m7.logo,onClick:r,"aria-label":"Header Logo Button",children:y.jsx("img",{src:a,alt:e??"logo",className:m7.logo_image,loading:"lazy"})}):null},tn={header:"_header_10fwv_1",header__sticky:"_header__sticky_10fwv_13",header_left:"_header_left_10fwv_17",header_button:"_header_button_10fwv_22",header_userIcon:"_header_userIcon_10fwv_41",header_content:"_header_content_10fwv_53",header_right:"_header_right_10fwv_57",header_menuWrapper:"_header_menuWrapper_10fwv_61",header_accountMenu:"_header_accountMenu_10fwv_64",header_accessPanel:"_header_accessPanel_10fwv_68"},yc="access-panel",bc="account-menu",vc="sidebar-menu",gH=({isSticky:e=!1,classNames:t,logoProps:n,accountMenuProps:r,accessPanelProps:i,customContent:o,hasSidebarMenu:a=!1,sidebarMenuContent:s,sidebarHeightGap:l})=>{const c=v.useRef(null),d=v.useRef(null),[u,f]=v.useState(null);return Zo({ref:c,shouldIgnore:u!==yc,onClickOutside:()=>f(null)}),Zo({ref:d,shouldIgnore:u!==bc,onClickOutside:()=>f(null)}),y.jsxs(y.Fragment,{children:[y.jsxs("header",{className:E(tn.header,e&&tn.header__sticky,t==null?void 0:t.header),children:[y.jsxs("div",{className:E(tn.header_left,t==null?void 0:t.leftContent),children:[a&&y.jsx("button",{className:tn.header_button,onClick:()=>f(u===vc?null:vc),children:y.jsx(ie,{name:"menu",size:"lg",color:"neutral-50"})}),!!n&&y.jsx(_H,{...n})]}),y.jsx("div",{className:E(tn.header_content,t==null?void 0:t.middleContent),children:o}),y.jsxs("div",{className:E(tn.header_right,t==null?void 0:t.rightContent),children:[!!i&&y.jsxs("div",{className:tn.header_menuWrapper,ref:c,children:[y.jsx("button",{className:tn.header_button,onClick:()=>f(u===yc?null:yc),children:y.jsx(ie,{name:"grip",size:"lg",color:"neutral-50"})}),y.jsx(f7,{isOpen:u===yc,className:tn.header_accessPanel,...i})]}),!!r&&y.jsxs("div",{className:tn.header_menuWrapper,ref:d,children:[y.jsx("button",{className:tn.header_button,onClick:()=>f(u===bc?null:bc),children:y.jsx("span",{className:tn.header_userIcon,children:y.jsx(ie,{name:"user",filled:!0,size:"md",color:"neutral-00"})})}),y.jsx(h7,{className:tn.header_accountMenu,isOpen:u===bc,themeProps:{showTheme:(r==null?void 0:r.showThemeSwitch)??!0},localeProps:{showLocale:(r==null?void 0:r.showLocaleSelector)??!0},accountDetails:r==null?void 0:r.accountDetails,footerAction:r==null?void 0:r.footerAction,onLogout:r==null?void 0:r.onLogout})]})]})]}),a&&y.jsx(l9,{isOpen:u===vc,onClose:()=>u===vc&&f(null),heightGap:l,children:s})]})},yH="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='310.5'%20height='341.5'%20viewBox='0%200%20310.5%20341.5'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='pattern'%3e%3ccircle%20id='Ellipse%20132'%20opacity='0.08'%20cx='125'%20cy='216.5'%20r='125'%20fill='url(%23paint0_linear_0_4)'/%3e%3ccircle%20id='Ellipse%20131'%20opacity='0.08'%20cx='177.5'%20cy='133'%20r='132.5'%20fill='url(%23paint1_linear_0_4)'%20stroke='white'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_4'%20x1='13.1965'%20y1='283.949'%20x2='92.3754'%20y2='242.893'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0.4'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_0_4'%20x1='58.9883'%20y1='204.496'%20x2='142.918'%20y2='160.977'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0.4'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Rt={headerNavigation:"_headerNavigation_wkdav_1",headerNavigation__brand:"_headerNavigation__brand_wkdav_9",headerNavigation_decoration:"_headerNavigation_decoration_wkdav_12",navigationPattern:"_navigationPattern_wkdav_18",headerNavigation_content:"_headerNavigation_content_wkdav_26",navigationSummary:"_navigationSummary_wkdav_37",navigationSummary_visual:"_navigationSummary_visual_wkdav_44",navigationIcon:"_navigationIcon_wkdav_49",navigationIcon_glyph:"_navigationIcon_glyph_wkdav_54",navigationImage:"_navigationImage_wkdav_58",navigationSummary_text:"_navigationSummary_text_wkdav_64",navigationTitle:"_navigationTitle_wkdav_74",navigationDescription:"_navigationDescription_wkdav_78",navigationSummary_menu:"_navigationSummary_menu_wkdav_83",navigationExtra:"_navigationExtra_wkdav_87"},_7=({title:e,description:t,breadcrumbsItems:n=[],menuItems:r=[],menuLabel:i,menuDisabled:o=!1,background:a="default",leadingVisual:s,pattern:l=!1,children:c,className:d,...u})=>y.jsxs("header",{...u,className:E(Rt.headerNavigation,a==="brand"&&Rt.headerNavigation__brand,d),children:[l&&y.jsx("div",{className:Rt.headerNavigation_decoration,"aria-hidden":"true",children:y.jsx("img",{className:Rt.navigationPattern,src:typeof l=="string"?l:yH,alt:""})}),y.jsxs("div",{className:Rt.headerNavigation_content,children:[n.length>1&&y.jsx(Pc,{items:n,darkMode:!0}),y.jsxs("div",{className:Rt.navigationSummary,children:[s&&y.jsx("div",{className:Rt.navigationSummary_visual,children:s.type==="icon"?y.jsx("span",{className:Rt.navigationIcon,"aria-hidden":"true",children:y.jsx(ie,{name:s.name,filled:s.filled,gradient:s.gradient,color:s.color??"gray-00",className:Rt.navigationIcon_glyph})}):y.jsx(bH,{src:s.src,alt:s.alt},s.src)}),y.jsxs("div",{className:Rt.navigationSummary_text,children:[y.jsx(yt,{type:"h1",darkMode:!0,className:Rt.navigationTitle,children:e}),t&&y.jsx(je,{className:Rt.navigationDescription,children:t})]}),r.length>0&&y.jsx(vu,{className:Rt.navigationSummary_menu,items:r,triggerLabel:i??e,disabled:o,listOrigin:"right",forceLightMode:!0,closeOnClick:!0})]}),c!=null&&y.jsx("div",{className:E(Rt.navigationExtra,"avocado-dark-theme"),children:c})]})]}),bH=({src:e,alt:t})=>{const[n,r]=v.useState(!1);return n?null:y.jsx("img",{className:Rt.navigationImage,src:e,alt:t,width:56,height:56,onError:()=>r(!0)})};_7.prototype={avocado:"HeaderNavigation"};const g7=v.createContext(null),vH=()=>{const e=v.useContext(g7);if(!e)throw new Error("useNavListContext must be used within NavList");return e},kt={navListItem:"_navListItem_ctf24_1",navListItem_submenu:"_navListItem_submenu_ctf24_5",navListItem_header:"_navListItem_header_ctf24_13",navListItem_link:"_navListItem_link_ctf24_13",navListItem_static:"_navListItem_static_ctf24_13",navListItem_leading:"_navListItem_leading_ctf24_44",navListItem_label:"_navListItem_label_ctf24_51",navListItem_trailing:"_navListItem_trailing_ctf24_55",navListItem__branch:"_navListItem__branch_ctf24_62",navListItem__isOpen:"_navListItem__isOpen_ctf24_62",navListItem__nested:"_navListItem__nested_ctf24_69"},CH=(e,t)=>!!e&&t!==!1,wH=({code:e,name:t,icon:n,href:r,canNavigate:i,items:o,className:a,depth:s=0,isOpen:l=!1})=>{const{toggleBranch:c,closeAll:d,onItemClick:u}=vH(),f=!!(o&&o.length>0),p=f&&l,h=s>0;if(f){const m=p?"gray-00":"neutral-70",b=`nav-list-submenu-${e}`;return y.jsxs("li",{className:E(kt.navListItem,kt.navListItem__branch,p&&kt.navListItem__isOpen,h&&kt.navListItem__nested,a),"data-testid":`nav-list-item-${e}`,children:[y.jsxs("button",{type:"button",className:kt.navListItem_header,"aria-expanded":p,"aria-controls":p?b:void 0,"data-testid":`nav-list-item-branch-${e}`,onClick:()=>c(e),children:[y.jsxs("span",{className:kt.navListItem_leading,children:[n&&y.jsx(ie,{name:n,size:"md",color:m,"aria-hidden":!0}),y.jsx("span",{className:kt.navListItem_label,children:t})]}),y.jsx("span",{className:kt.navListItem_trailing,children:y.jsx(ie,{name:p?"chevron-down":"chevron-right",size:"md",color:m,"aria-hidden":!0})})]}),p&&o&&y.jsx("ul",{id:b,className:kt.navListItem_submenu,"data-testid":`nav-list-depth-${s+1}`,children:o.map(C=>y.jsx(B3,{...C,depth:s+1},C.code))})]})}const g=y.jsxs("span",{className:kt.navListItem_leading,children:[n&&y.jsx(ie,{name:n,size:"md",color:"neutral-70","aria-hidden":!0}),y.jsx("span",{className:kt.navListItem_label,children:t})]}),_=m=>{d(),u==null||u({code:e,name:t,href:r,canNavigate:i},m)};return y.jsx("li",{className:E(kt.navListItem,kt.navListItem__leaf,h&&kt.navListItem__nested,a),"data-testid":`nav-list-item-${e}`,children:CH(r,i)?y.jsx("a",{className:kt.navListItem_link,href:r,"data-testid":`nav-list-item-link-${e}`,onClick:_,children:g}):y.jsx("span",{className:kt.navListItem_static,children:g})})},B3=v.memo(wH);B3.prototype={avocado:"NavListItem"};const xH={navList:"_navList_6j5bb_1"},kH=e=>{const t=e.find(n=>n.defaultOpen&&n.items&&n.items.length>0);return(t==null?void 0:t.code)??null},y7=({items:e,className:t,"aria-label":n,onItemClick:r})=>{const[i,o]=v.useState(()=>kH(e)),a=v.useCallback(c=>{o(d=>d===c?null:c)},[]),s=v.useCallback(()=>{o(null)},[]),l=v.useMemo(()=>({toggleBranch:a,closeAll:s,onItemClick:r}),[a,s,r]);return y.jsx(g7.Provider,{value:l,children:y.jsx("nav",{"aria-label":n,children:y.jsx("ul",{className:E(xH.navList,t),"data-testid":"nav-list",children:e.map(c=>y.jsx(B3,{...c,isOpen:i===c.code},c.code))})})})};y7.prototype={avocado:"NavList"};function SH(e){const{referenceRect:t,floatingRect:n,strategy:r,offset:i}=e,[o,a]=i;let s=t.top+(t.height-n.height)/2+a,l=t.left+(t.width-n.width)/2+o;return r==="absolute"&&(s+=window.scrollY,l+=window.scrollX),{top:s,left:l}}const H3=["auto","scroll"];function TH(e){const t=[];let n=e==null?void 0:e.parentElement;for(;n;){const{overflow:r,overflowX:i,overflowY:o}=window.getComputedStyle(n);(H3.includes(r)||H3.includes(i)||H3.includes(o))&&t.push(n),n=n.parentElement}return t.push(window),t}function MH(e,t,n){return e.forEach(r=>{r.addEventListener(t,n,{passive:!0})}),()=>{e.forEach(r=>{r.removeEventListener(t,n)})}}function DH(e={}){const{zIndex:t=1e3,strategy:n="fixed",offset:r=[0,0],isOpen:i=!1,portalContainer:o=typeof document<"u"?document.body:null,onIsTargetVisible:a}=e,s=v.useRef(null),l=v.useRef(null),c=v.useRef({top:0,left:0}),[d,u]=v.useState(!1),f=v.useRef(r);f.current=r;const p=v.useRef(n);p.current=n;const h=v.useRef(t);h.current=t;const g=v.useCallback(()=>{const m=s.current,b=l.current;if(!m||!b||!i)return;const C=m.getBoundingClientRect(),x=b.getBoundingClientRect(),w=SH({referenceRect:C,floatingRect:x,strategy:p.current,offset:f.current});c.current=w,b.style.top=`${w.top}px`,b.style.left=`${w.left}px`,u(k=>k||!0)},[i]);v.useEffect(()=>{l.current&&(l.current.style.zIndex=String(t))},[t]),v.useEffect(()=>{if(!i)return;requestAnimationFrame(()=>{g()});const m=TH(s.current),b=MH(m,"scroll",g),C=new ResizeObserver(g);return s.current&&C.observe(s.current),l.current&&C.observe(l.current),window.addEventListener("resize",g),()=>{b(),C.disconnect(),window.removeEventListener("resize",g)}},[i,g]),v.useEffect(()=>{if(!a||!(s!=null&&s.current))return;const m=new IntersectionObserver(b=>{b.forEach(C=>{const x=C.isIntersecting;a(x)})},{threshold:.1,root:null,rootMargin:"0px"});return m.observe(s.current),()=>{s.current&&m.unobserve(s.current),m.disconnect()}},[]),v.useEffect(()=>{i||u(!1)},[i]);const _=v.useMemo(()=>function({children:b}){return!i||!o?null:St.createPortal(y.jsx("div",{ref:l,style:{position:n,top:0,left:0,zIndex:h.current,visibility:d?"visible":"hidden"},children:b}),o)},[i,o,n,d]);return{referenceRef:s,floatingRef:l,position:c.current,Portal:_,update:g}}Z.AccessPanel=f7,Z.Accordion=ng,Z.AccountMenu=h7,Z.Banner=NO,Z.Beacon=ed,Z.Box=rg,Z.Breadcrumbs=Pc,Z.Button=Gr,Z.Card=ig,Z.CardAccordion=ag,Z.CardNotification=ff,Z.Checkbox=ns,Z.DataCard=hg,Z.DataTable=mg,Z.DatePicker=GC,Z.Divider=H0,Z.Donut=$0,Z.DonutLabels=z0,Z.DonutLegend=W0,Z.Drawer=H2,Z.DropdownButton=Y0,Z.Header=gH,Z.HeaderNavigation=_7,Z.Heading=yt,Z.Hotspot=s9,Z.Link=U0,Z.Loading=QC,Z.LocaleStore=$7,Z.Menu=vu,Z.Modal=XC,Z.NavList=y7,Z.Pager=p6,Z.Pill=Ic,Z.PreviewerMarkdown=eI,Z.Processing=l2,Z.ProgressBar=tI,Z.RadioButton=c2,Z.RoundButton=wr,Z.Select=d6,Z.SelectPagination=MI,Z.SidebarMenu=l9,Z.SkeletonBase=wl,Z.SkeletonCircle=LI,Z.Stepper=PI,Z.Switch=EI,Z.Table=GI,Z.Tabs=m2,Z.Tag=OI,Z.Text=je,Z.TextField=_2,Z.Textarea=g2,Z.ThemeProvider=H7,Z.ThemeStore=B7,Z.Timer=NI,Z.Toaster=M2,Z.Tooltip=fa,Z.Weekly=I2,Z.WeeklyGroup=AO,Z.toast=Ye,Z.useFloatingPortal=DH,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})}));