@okam/stack-ui 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/{ArrowDown-1712d1b6.js → ArrowDown-54a4e9d3.js} +1 -1
  2. package/{ArrowDown-d43b4162.mjs → ArrowDown-62233deb.mjs} +1 -1
  3. package/{ArrowLeft-f409a840.mjs → ArrowLeft-8c14983f.mjs} +1 -1
  4. package/{ArrowLeft-d3f05521.js → ArrowLeft-ff99e568.js} +1 -1
  5. package/{BrandArrowRight-76384dc5.js → BrandArrowRight-bd396c15.js} +1 -1
  6. package/{BrandArrowRight-49e7e990.mjs → BrandArrowRight-d65c2e5f.mjs} +1 -1
  7. package/{Check-b462d3c7.mjs → Check-205d66a1.mjs} +1 -1
  8. package/{Check-177d024b.js → Check-d5164285.js} +1 -1
  9. package/{ChevronLeft-feef9450.js → ChevronLeft-b0b7cef2.js} +1 -1
  10. package/{ChevronLeft-b7dca00a.mjs → ChevronLeft-db9daad1.mjs} +1 -1
  11. package/{ChevronRight-a4782201.mjs → ChevronRight-3b61d181.mjs} +1 -1
  12. package/{ChevronRight-3a5571da.js → ChevronRight-9d8a2e81.js} +1 -1
  13. package/{CloseBtn-30ee2e13.mjs → CloseBtn-d74d901f.mjs} +1 -1
  14. package/{CloseBtn-3a0ca7e1.js → CloseBtn-e82b3c51.js} +1 -1
  15. package/{Facebook-6591414e.js → Facebook-dc270a7a.js} +1 -1
  16. package/{Facebook-4f8b3a0f.mjs → Facebook-e98c9059.mjs} +1 -1
  17. package/{FacebookColored-347fa465.mjs → FacebookColored-d57ea14a.mjs} +1 -1
  18. package/{FacebookColored-69bc09dc.js → FacebookColored-dfff8ee5.js} +1 -1
  19. package/{Globe-46988aa4.js → Globe-0fcd693d.js} +1 -1
  20. package/{Globe-6bd5fb0a.mjs → Globe-9142e00c.mjs} +1 -1
  21. package/{Instagram-2c7a4948.js → Instagram-716baeb0.js} +1 -1
  22. package/{Instagram-e7ae9f7d.mjs → Instagram-a3a39b40.mjs} +1 -1
  23. package/{InstagramColored-16d3ed77.js → InstagramColored-0134fb49.js} +1 -1
  24. package/{InstagramColored-bd066f21.mjs → InstagramColored-88fda38c.mjs} +1 -1
  25. package/{Link-c8a14eea.js → Link-53ca53dc.js} +1 -1
  26. package/{Link-433cedc8.mjs → Link-6ea3ed2d.mjs} +1 -1
  27. package/{Mail-b28672fa.mjs → Mail-91c52ad0.mjs} +1 -1
  28. package/{Mail-e9297805.js → Mail-cfe23bd7.js} +1 -1
  29. package/{Plus-8726d28e.js → Plus-03ca4a42.js} +1 -1
  30. package/{Plus-b65f9426.mjs → Plus-8bcb07ed.mjs} +1 -1
  31. package/{Share-2518b2a3.mjs → Share-732d8ba5.mjs} +1 -1
  32. package/{Share-6ca93f65.js → Share-a788142f.js} +1 -1
  33. package/{Twitter-731298fb.mjs → Twitter-137e96a6.mjs} +1 -1
  34. package/{Twitter-6498fa22.js → Twitter-6888ab44.js} +1 -1
  35. package/{TwitterColored-51ba5c2e.js → TwitterColored-0f1274ef.js} +1 -1
  36. package/{TwitterColored-d981c380.mjs → TwitterColored-3deaff15.mjs} +1 -1
  37. package/{Upload-a85a4b6a.mjs → Upload-aee8d238.mjs} +1 -1
  38. package/{Upload-302cba06.js → Upload-ea10c854.js} +1 -1
  39. package/{YouTube-4385e2aa.mjs → YouTube-3199edbb.mjs} +1 -1
  40. package/{YouTube-4cbcbfc5.js → YouTube-fc32e491.js} +1 -1
  41. package/{YouTubeColored-9154987c.mjs → YouTubeColored-71f6fbd4.mjs} +1 -1
  42. package/{YouTubeColored-877e6612.js → YouTubeColored-8a760e28.js} +1 -1
  43. package/components/Box/index.d.ts +5 -0
  44. package/components/Box/interface.d.ts +11 -0
  45. package/components/Calendar/components/CalendarCell.d.ts +3 -0
  46. package/components/Calendar/components/CalendarGrid.d.ts +3 -0
  47. package/components/Calendar/index.d.ts +3 -0
  48. package/components/Calendar/interface.d.ts +32 -0
  49. package/components/Date/index.d.ts +3 -0
  50. package/components/Date/interface.d.ts +6 -0
  51. package/components/Dialog/index.d.ts +2 -0
  52. package/components/Dialog/interface.d.ts +6 -0
  53. package/components/Lightbox/interface.d.ts +1 -0
  54. package/components/fields/Checkbox/Checkbox.interface.d.ts +24 -0
  55. package/components/fields/Checkbox/index.d.ts +3 -0
  56. package/components/fields/DatePicker/components/CalendarPopover.d.ts +2 -0
  57. package/components/fields/DatePicker/components/DateField.d.ts +4 -0
  58. package/components/fields/DatePicker/index.d.ts +3 -0
  59. package/components/fields/DatePicker/interface.d.ts +37 -0
  60. package/components/fields/Select/Select.d.ts +4 -0
  61. package/components/fields/Select/Select.interface.d.ts +17 -0
  62. package/components/fields/Select/components/Listbox.d.ts +4 -0
  63. package/components/fields/Select/components/Listbox.interface.d.ts +12 -0
  64. package/components/fields/Select/components/Popover.d.ts +3 -0
  65. package/components/fields/Select/components/Popover.interface.d.ts +12 -0
  66. package/components/fields/TextArea/index.d.ts +3 -0
  67. package/components/fields/TextArea/interface.d.ts +17 -0
  68. package/components/fields/TextInputField/index.d.ts +4 -0
  69. package/components/fields/TextInputField/interface.d.ts +23 -0
  70. package/index-7f55f097.js +30 -0
  71. package/index-b32341b0.mjs +17648 -0
  72. package/index.d.ts +9 -0
  73. package/index.js +1 -1
  74. package/index.mjs +31 -20
  75. package/package.json +1 -1
  76. package/providers/Theme/hooks.d.ts +1 -1
  77. package/providers/Theme/interface.d.ts +1 -1
  78. package/index-95c4948b.js +0 -3
  79. package/index-dbc3a715.mjs +0 -5828
@@ -0,0 +1,30 @@
1
+ "use strict";const L=require("react/jsx-runtime"),v=require("react"),Tf=require("react-dom");function WP(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Yi=WP(v),GP=(e,t,n=null)=>{const a=t.split(/[\.\[\]]/g);let o=e;for(const l of a){if(o===null||o===void 0)return n;l.trim()!==""&&(o=o[l])}return o===void 0?n:o},qP=e=>e;function ZP(){const e=v.createContext(void 0);function t(){const n=v.useContext(e);return n===void 0?null:n}return[t,e.Provider]}const YP={typography:()=>""},[rg,JP]=ZP();function ig({children:e,brandTheme:t=YP}){const n=v.useMemo(()=>({brandTheme:t}),[t]);return L.jsx(JP,{value:n,children:e})}const QP=e=>({children:n})=>L.jsx(ig,{brandTheme:e,children:n}),Se=(e,t={},n=null)=>{const a=rg();if(a!=null&&e!=null){const{brandTheme:o}=a,l=GP(o,e);if(typeof l=="function"){const u=l?.(t);if(typeof u=="string")return u}}if(n)return n},Ur=({as:e="span",themeName:t="typography",tokens:n,customTheme:a,children:o,...l})=>{const u=Se(t,n,a);return L.jsx(e,{...l,className:u,children:o})},_f=v.forwardRef((e,t)=>{const{as:n="span",tokens:a,themeName:o="typography",customTheme:l,children:u,...f}=e,d=Se(o,a,l);return L.jsx(n,{...f,ref:t,className:d,children:u})});function mi(e,t,n){let[a,o]=v.useState(e||t),l=v.useRef(e!==void 0),u=e!==void 0;v.useEffect(()=>{let h=l.current;h!==u&&console.warn(`WARN: A component changed from ${h?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}.`),l.current=u},[u]);let f=u?e:a,d=v.useCallback((h,...m)=>{let x=(y,...$)=>{n&&(Object.is(f,y)||n(y,...$)),u||(f=y)};typeof h=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o(($,...P)=>{let E=h(u?f:$,...P);return x(E,...m),u?$:E})):(u||o(h),x(h,...m))},[u,f,n]);return[f,d]}function jc(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const Ef={prefix:String(Math.round(Math.random()*1e10)),current:0,isSSR:!1},Rf=v.createContext(Ef);let XP=!!(typeof window<"u"&&window.document&&window.document.createElement),pc=new WeakMap;function eS(e=!1){let t=v.useContext(Rf),n=v.useRef(null);if(n.current===null&&!e){var a,o;let l=(a=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(o=a.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(l){let u=pc.get(l);u==null?pc.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==u.state&&(t.current=u.id,pc.delete(l))}n.current=++t.current}return n.current}function tS(e){let t=v.useContext(Rf);t===Ef&&!XP&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=eS(!!e);return e||`react-aria${t.prefix}-${n}`}function nS(e){let t=v.useId(),[n]=v.useState(Ja()),a=n?"react-aria":`react-aria${Ef.prefix}`;return e||`${a}-${t}`}const rS=typeof v.useId=="function"?nS:tS;function iS(){return!1}function aS(){return!0}function oS(e){return()=>{}}function Ja(){return typeof v.useSyncExternalStore=="function"?v.useSyncExternalStore(oS,iS,aS):v.useContext(Rf).isSSR}function ag(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ag(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}function og(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=ag(e))&&(a&&(a+=" "),a+=t);return a}const at=typeof window<"u"?v.useLayoutEffect:()=>{};function sS(e){let[t,n]=v.useState(e),a=v.useRef(t),o=v.useRef(null),l=v.useCallback(()=>{let f=o.current.next();for(;!f.done&&a.current===f.value;)f=o.current.next();if(f.done){o.current=null;return}n(f.value),a.current=f.value},[n,a,o]);at(()=>{o.current&&l()});let u=v.useCallback(f=>{o.current=f(a.current),l()},[l,o,a]);return[t,u]}let vl=new Map;function Tn(e){let[t,n]=v.useState(e),a=v.useRef(null),o=rS(t),l=v.useCallback(u=>{a.current=u},[]);return vl.set(o,l),at(()=>{let u=o;return()=>{vl.delete(u)}},[o]),v.useEffect(()=>{let u=a.current;u&&(a.current=null,n(u))}),o}function lS(e,t){if(e===t)return e;let n=vl.get(e);if(n)return n(t),t;let a=vl.get(t);return a?(a(e),e):t}function Wa(e=[]){let t=Tn(),[n,a]=sS(t),o=v.useCallback(()=>{a(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,a]);return at(o,[t,o,...e]),n}function Ho(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function Ke(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let a=e[n];for(let o in a){let l=t[o],u=a[o];typeof l=="function"&&typeof u=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Ho(l,u):(o==="className"||o==="UNSAFE_className")&&typeof l=="string"&&typeof u=="string"?t[o]=og(l,u):o==="id"&&l&&u?t.id=lS(l,u):t[o]=u!==void 0?u:l}}return t}const uS=new Set(["id"]),cS=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),fS=/^(data-.*)$/;function cr(e,t={}){let{labelable:n,propNames:a}=t,o={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(uS.has(l)||n&&cS.has(l)||a?.has(l)||fS.test(l))&&(o[l]=e[l]);return o}function Fr(e){if(dS())e.focus({preventScroll:!0});else{let t=hS(e);e.focus(),pS(t)}}let Js=null;function dS(){if(Js==null){Js=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Js=!0,!0}})}catch{}}return Js}function hS(e){for(var t=e.parentNode,n=[],a=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==a;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return a instanceof HTMLElement&&n.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft}),n}function pS(e){for(let{element:t,scrollTop:n,scrollLeft:a}of e)t.scrollTop=n,t.scrollLeft=a}let ka=new Map,Hc=new Set;function wp(){if(typeof window>"u")return;let e=n=>{let a=ka.get(n.target);a||(a=new Set,ka.set(n.target,a),n.target.addEventListener("transitioncancel",t)),a.add(n.propertyName)},t=n=>{let a=ka.get(n.target);if(a&&(a.delete(n.propertyName),a.size===0&&(n.target.removeEventListener("transitioncancel",t),ka.delete(n.target)),ka.size===0)){for(let o of Hc)o();Hc.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?wp():document.addEventListener("DOMContentLoaded",wp));function sg(e){requestAnimationFrame(()=>{ka.size===0?e():Hc.add(e)})}function Af(){let e=v.useRef(new Map),t=v.useCallback((o,l,u,f)=>{let d=f?.once?(...h)=>{e.current.delete(u),u(...h)}:u;e.current.set(u,{type:l,eventTarget:o,fn:d,options:f}),o.addEventListener(l,u,f)},[]),n=v.useCallback((o,l,u,f)=>{var d;let h=((d=e.current.get(u))===null||d===void 0?void 0:d.fn)||u;o.removeEventListener(l,h,f),e.current.delete(u)},[]),a=v.useCallback(()=>{e.current.forEach((o,l)=>{n(o.eventTarget,o.type,l,o.options)})},[n]);return v.useEffect(()=>a,[a]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:a}}function as(e,t){let{id:n,"aria-label":a,"aria-labelledby":o}=e;return n=Tn(n),o&&a?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!a&&!o&&t&&(a=t),{id:n,"aria-label":a,"aria-labelledby":o}}function Pp(e,t){const n=v.useRef(!0),a=v.useRef(null);v.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),v.useEffect(()=>{n.current?n.current=!1:(!a.current||t.some((o,l)=>!Object.is(o,a[l])))&&e(),a.current=t},t)}function mS(){return typeof window.ResizeObserver<"u"}function gS(e){const{ref:t,onResize:n}=e;v.useEffect(()=>{let a=t?.current;if(a)if(mS()){const o=new window.ResizeObserver(l=>{l.length&&n()});return o.observe(a),()=>{a&&o.unobserve(a)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function lg(e,t){at(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function Ga(e){for(bl(e)&&(e=e.parentElement);e&&!bl(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function bl(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}let yS=0;const mc=new Map;function Hl(e){let[t,n]=v.useState(void 0);return at(()=>{if(!e)return;let a=mc.get(e);if(a)n(a.element.id);else{let o=`react-aria-description-${yS++}`;n(o);let l=document.createElement("div");l.id=o,l.style.display="none",l.textContent=e,document.body.appendChild(l),a={refCount:0,element:l},mc.set(e,a)}return a.refCount++,()=>{--a.refCount===0&&(a.element.remove(),mc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Cf(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Mf(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 Qa(){return Mf(/^Mac/i)}function vS(){return Mf(/^iPhone/i)}function bS(){return Mf(/^iPad/i)||Qa()&&navigator.maxTouchPoints>1}function os(){return vS()||bS()}function $S(){return Qa()||os()}function xS(){return Cf(/AppleWebKit/i)&&!DS()}function DS(){return Cf(/Chrome/i)}function wS(){return Cf(/Android/i)}function Vn(e){const t=v.useRef(null);return at(()=>{t.current=e},[e]),v.useCallback((...n)=>{const a=t.current;return a(...n)},[])}function Vc(e,t,n,a){let o=Vn(n),l=n==null;v.useEffect(()=>{if(l)return;let u=e.current;return u.addEventListener(t,o,a),()=>{u.removeEventListener(t,o,a)}},[e,t,a,l,o])}function ug(e,t){let n=Sp(e,t,"left"),a=Sp(e,t,"top"),o=t.offsetWidth,l=t.offsetHeight,u=e.scrollLeft,f=e.scrollTop,{borderTopWidth:d,borderLeftWidth:h}=getComputedStyle(e),m=e.scrollLeft+parseInt(h,10),x=e.scrollTop+parseInt(d,10),y=m+e.clientWidth,$=x+e.clientHeight;n<=u?u=n-parseInt(h,10):n+o>y&&(u+=n+o-y),a<=x?f=a-parseInt(d,10):a+l>$&&(f+=a+l-$),e.scrollLeft=u,e.scrollTop=f}function Sp(e,t,n){const a=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[a],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[a];break}t=t.offsetParent}return o}function $l(e,t){if(document.contains(e)){let u=document.scrollingElement||document.documentElement;if(window.getComputedStyle(u).overflow==="hidden"){let d=Ga(e);for(;e&&d&&e!==u&&d!==u;)ug(d,e),e=d,d=Ga(e)}else{var n;let{left:d,top:h}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:m,top:x}=e.getBoundingClientRect();if(Math.abs(d-m)>1||Math.abs(h-x)>1){var a,o,l;t==null||(a=t.containingElement)===null||a===void 0||(o=a.scrollIntoView)===null||o===void 0||o.call(a,{block:"center",inline:"center"}),(l=e.scrollIntoView)===null||l===void 0||l.call(e,{block:"nearest"})}}}}function Wc(e){return e.mozInputSource===0&&e.isTrusted?!0:wS()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function PS(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function cg(e,t){let n=v.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}let Na="default",Gc="",fl=new WeakMap;function Tp(e){os()?(Na==="default"&&(Gc=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Na="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(fl.set(e,e.style.userSelect),e.style.userSelect="none")}function Qs(e){if(os()){if(Na!=="disabled")return;Na="restoring",setTimeout(()=>{sg(()=>{Na==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=Gc||""),Gc="",Na="default")})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&fl.has(e)){let t=fl.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),fl.delete(e)}}const fg=v.createContext(null);fg.displayName="PressResponderContext";function SS(e){let t=v.useContext(fg);if(t){let{register:n,...a}=t;e=Ke(a,e),n()}return lg(t,e.ref),e}function ra(e){let{onPress:t,onPressChange:n,onPressStart:a,onPressEnd:o,onPressUp:l,isDisabled:u,isPressed:f,preventFocusOnPress:d,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:m,ref:x,...y}=SS(e),[$,P]=v.useState(!1),E=v.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:R,removeAllGlobalListeners:k}=Af(),O=Vn((w,V)=>{let q=E.current;u||q.didFirePressStart||(a&&a({type:"pressstart",pointerType:V,target:w.currentTarget,shiftKey:w.shiftKey,metaKey:w.metaKey,ctrlKey:w.ctrlKey,altKey:w.altKey}),n&&n(!0),q.didFirePressStart=!0,P(!0))}),N=Vn((w,V,q=!0)=>{let A=E.current;A.didFirePressStart&&(A.ignoreClickAfterPress=!0,A.didFirePressStart=!1,o&&o({type:"pressend",pointerType:V,target:w.currentTarget,shiftKey:w.shiftKey,metaKey:w.metaKey,ctrlKey:w.ctrlKey,altKey:w.altKey}),n&&n(!1),P(!1),t&&q&&!u&&t({type:"press",pointerType:V,target:w.currentTarget,shiftKey:w.shiftKey,metaKey:w.metaKey,ctrlKey:w.ctrlKey,altKey:w.altKey}))}),F=Vn((w,V)=>{u||l&&l({type:"pressup",pointerType:V,target:w.currentTarget,shiftKey:w.shiftKey,metaKey:w.metaKey,ctrlKey:w.ctrlKey,altKey:w.altKey})}),H=Vn(w=>{let V=E.current;V.isPressed&&(V.isOverTarget&&N(Ir(V.target,w),V.pointerType,!1),V.isPressed=!1,V.isOverTarget=!1,V.activePointerId=null,V.pointerType=null,k(),m||Qs(V.target))}),ue=Vn(w=>{h&&H(w)}),ee=v.useMemo(()=>{let w=E.current,V={onKeyDown(A){gc(A.nativeEvent,A.currentTarget)&&A.currentTarget.contains(A.target)?(Ep(A.target,A.key)&&A.preventDefault(),A.stopPropagation(),!w.isPressed&&!A.repeat&&(w.target=A.currentTarget,w.isPressed=!0,O(A,"keyboard"),R(document,"keyup",q,!1))):A.key==="Enter"&&qc(A.currentTarget)&&A.stopPropagation()},onKeyUp(A){gc(A.nativeEvent,A.currentTarget)&&!A.repeat&&A.currentTarget.contains(A.target)&&F(Ir(w.target,A),"keyboard")},onClick(A){A&&!A.currentTarget.contains(A.target)||A&&A.button===0&&(A.stopPropagation(),u&&A.preventDefault(),!w.ignoreClickAfterPress&&!w.ignoreEmulatedMouseEvents&&(w.pointerType==="virtual"||Wc(A.nativeEvent))&&(!u&&!d&&Fr(A.currentTarget),O(A,"virtual"),F(A,"virtual"),N(A,"virtual")),w.ignoreEmulatedMouseEvents=!1,w.ignoreClickAfterPress=!1)}},q=A=>{if(w.isPressed&&gc(A,w.target)){Ep(A.target,A.key)&&A.preventDefault(),A.stopPropagation(),w.isPressed=!1;let pe=A.target;N(Ir(w.target,A),"keyboard",w.target.contains(pe)),k(),w.target instanceof HTMLElement&&w.target.contains(pe)&&(qc(w.target)||w.target.getAttribute("role")==="link")&&w.target.click()}};if(typeof PointerEvent<"u"){V.onPointerDown=B=>{if(!(B.button!==0||!B.currentTarget.contains(B.target))){if(PS(B.nativeEvent)){w.pointerType="virtual";return}yc(B.currentTarget)&&B.preventDefault(),w.pointerType=B.pointerType,B.stopPropagation(),w.isPressed||(w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=B.pointerId,w.target=B.currentTarget,!u&&!d&&Fr(B.currentTarget),m||Tp(w.target),O(B,w.pointerType),R(document,"pointermove",A,!1),R(document,"pointerup",pe,!1),R(document,"pointercancel",U,!1))}},V.onMouseDown=B=>{B.currentTarget.contains(B.target)&&B.button===0&&(yc(B.currentTarget)&&B.preventDefault(),B.stopPropagation())},V.onPointerUp=B=>{!B.currentTarget.contains(B.target)||w.pointerType==="virtual"||B.button===0&&Ca(B,B.currentTarget)&&F(B,w.pointerType||B.pointerType)};let A=B=>{B.pointerId===w.activePointerId&&(Ca(B,w.target)?w.isOverTarget||(w.isOverTarget=!0,O(Ir(w.target,B),w.pointerType)):w.isOverTarget&&(w.isOverTarget=!1,N(Ir(w.target,B),w.pointerType,!1),ue(B)))},pe=B=>{B.pointerId===w.activePointerId&&w.isPressed&&B.button===0&&(Ca(B,w.target)?N(Ir(w.target,B),w.pointerType):w.isOverTarget&&N(Ir(w.target,B),w.pointerType,!1),w.isPressed=!1,w.isOverTarget=!1,w.activePointerId=null,w.pointerType=null,k(),m||Qs(w.target))},U=B=>{H(B)};V.onDragStart=B=>{B.currentTarget.contains(B.target)&&H(B)}}else{V.onMouseDown=U=>{U.button!==0||!U.currentTarget.contains(U.target)||(yc(U.currentTarget)&&U.preventDefault(),U.stopPropagation(),!w.ignoreEmulatedMouseEvents&&(w.isPressed=!0,w.isOverTarget=!0,w.target=U.currentTarget,w.pointerType=Wc(U.nativeEvent)?"virtual":"mouse",!u&&!d&&Fr(U.currentTarget),O(U,w.pointerType),R(document,"mouseup",A,!1)))},V.onMouseEnter=U=>{U.currentTarget.contains(U.target)&&(U.stopPropagation(),w.isPressed&&!w.ignoreEmulatedMouseEvents&&(w.isOverTarget=!0,O(U,w.pointerType)))},V.onMouseLeave=U=>{U.currentTarget.contains(U.target)&&(U.stopPropagation(),w.isPressed&&!w.ignoreEmulatedMouseEvents&&(w.isOverTarget=!1,N(U,w.pointerType,!1),ue(U)))},V.onMouseUp=U=>{U.currentTarget.contains(U.target)&&!w.ignoreEmulatedMouseEvents&&U.button===0&&F(U,w.pointerType)};let A=U=>{if(U.button===0){if(w.isPressed=!1,k(),w.ignoreEmulatedMouseEvents){w.ignoreEmulatedMouseEvents=!1;return}Ca(U,w.target)?N(Ir(w.target,U),w.pointerType):w.isOverTarget&&N(Ir(w.target,U),w.pointerType,!1),w.isOverTarget=!1}};V.onTouchStart=U=>{if(!U.currentTarget.contains(U.target))return;U.stopPropagation();let B=TS(U.nativeEvent);B&&(w.activePointerId=B.identifier,w.ignoreEmulatedMouseEvents=!0,w.isOverTarget=!0,w.isPressed=!0,w.target=U.currentTarget,w.pointerType="touch",!u&&!d&&Fr(U.currentTarget),m||Tp(w.target),O(U,w.pointerType),R(window,"scroll",pe,!0))},V.onTouchMove=U=>{if(!U.currentTarget.contains(U.target)||(U.stopPropagation(),!w.isPressed))return;let B=_p(U.nativeEvent,w.activePointerId);B&&Ca(B,U.currentTarget)?w.isOverTarget||(w.isOverTarget=!0,O(U,w.pointerType)):w.isOverTarget&&(w.isOverTarget=!1,N(U,w.pointerType,!1),ue(U))},V.onTouchEnd=U=>{if(!U.currentTarget.contains(U.target)||(U.stopPropagation(),!w.isPressed))return;let B=_p(U.nativeEvent,w.activePointerId);B&&Ca(B,U.currentTarget)?(F(U,w.pointerType),N(U,w.pointerType)):w.isOverTarget&&N(U,w.pointerType,!1),w.isPressed=!1,w.activePointerId=null,w.isOverTarget=!1,w.ignoreEmulatedMouseEvents=!0,m||Qs(w.target),k()},V.onTouchCancel=U=>{U.currentTarget.contains(U.target)&&(U.stopPropagation(),w.isPressed&&H(U))};let pe=U=>{w.isPressed&&U.target.contains(w.target)&&H({currentTarget:w.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};V.onDragStart=U=>{U.currentTarget.contains(U.target)&&H(U)}}return V},[R,u,d,k,m,H,ue,N,O,F]);return v.useEffect(()=>()=>{m||Qs(E.current.target)},[m]),{isPressed:f||$,pressProps:Ke(y,ee)}}function qc(e){return e.tagName==="A"&&e.hasAttribute("href")}function gc(e,t){const{key:n,code:a}=e,o=t,l=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||a==="Space")&&!(o instanceof HTMLInputElement&&!dg(o,n)||o instanceof HTMLTextAreaElement||o.isContentEditable)&&(!qc(o)||l==="button"&&n!=="Enter")&&!(l==="link"&&n!=="Enter")}function TS(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function _p(e,t){const n=e.changedTouches;for(let a=0;a<n.length;a++){const o=n[a];if(o.identifier===t)return o}return null}function Ir(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function _S(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function ES(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Ca(e,t){let n=t.getBoundingClientRect(),a=_S(e);return ES(n,a)}function yc(e){return!(e instanceof HTMLElement)||!e.draggable}function Ep(e,t){return e instanceof HTMLInputElement?!dg(e,t):e instanceof HTMLButtonElement?e.type!=="submit":!0}const RS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function dg(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":RS.has(e.type)}class AS{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function hg(e){let t=v.useRef({isFocused:!1,observer:null});at(()=>{const a=t.current;return()=>{a.observer&&(a.observer.disconnect(),a.observer=null)}},[]);let n=Vn(a=>{e?.(a)});return v.useCallback(a=>{if(a.target instanceof HTMLButtonElement||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=a.target,l=u=>{t.current.isFocused=!1,o.disabled&&n(new AS("blur",u)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",l,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){t.current.observer.disconnect();let u=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function pg(e){let{isDisabled:t,onFocus:n,onBlur:a,onFocusChange:o}=e;const l=v.useCallback(d=>{if(d.target===d.currentTarget)return a&&a(d),o&&o(!1),!0},[a,o]),u=hg(l),f=v.useCallback(d=>{d.target===d.currentTarget&&document.activeElement===d.target&&(n&&n(d),o&&o(!0),u(d))},[o,n,u]);return{focusProps:{onFocus:!t&&(n||o||a)?f:void 0,onBlur:!t&&(a||o)?l:void 0}}}let zr=null,Vo=new Set,Rp=!1,Ji=!1,Zc=!1;const CS={Tab:!0,Escape:!0};function Vl(e,t){for(let n of Vo)n(e,t)}function MS(e){return!(e.metaKey||!Qa()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ap(e){Ji=!0,MS(e)&&(zr="keyboard",Vl("keyboard",e))}function Ma(e){zr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ji=!0,Vl("pointer",e))}function IS(e){Wc(e)&&(Ji=!0,zr="virtual")}function OS(e){e.target===window||e.target===document||(!Ji&&!Zc&&(zr="virtual",Vl("virtual",e)),Ji=!1,Zc=!1)}function LS(){Ji=!1,Zc=!0}function xl(){if(typeof window>"u"||Rp)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Ji=!0,e.apply(this,arguments)},document.addEventListener("keydown",Ap,!0),document.addEventListener("keyup",Ap,!0),document.addEventListener("click",IS,!0),window.addEventListener("focus",OS,!0),window.addEventListener("blur",LS,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Ma,!0),document.addEventListener("pointermove",Ma,!0),document.addEventListener("pointerup",Ma,!0)):(document.addEventListener("mousedown",Ma,!0),document.addEventListener("mousemove",Ma,!0),document.addEventListener("mouseup",Ma,!0)),Rp=!0}typeof document<"u"&&(document.readyState!=="loading"?xl():document.addEventListener("DOMContentLoaded",xl));function Dl(){return zr!=="pointer"}function wl(){return zr}function kS(e){zr=e,Vl(e,null)}function FS(){xl();let[e,t]=v.useState(zr);return v.useEffect(()=>{let n=()=>{t(zr)};return Vo.add(n),()=>{Vo.delete(n)}},[]),Ja()?null:e}function NS(e,t,n){return!(e&&t==="keyboard"&&n instanceof KeyboardEvent&&!CS[n.key])}function KS(e,t,n){xl(),v.useEffect(()=>{let a=(o,l)=>{NS(n?.isTextInput,o,l)&&e(Dl())};return Vo.add(a),()=>{Vo.delete(a)}},t)}function Xa(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:a,onFocusWithinChange:o}=e,l=v.useRef({isFocusWithin:!1}),u=v.useCallback(h=>{l.current.isFocusWithin&&!h.currentTarget.contains(h.relatedTarget)&&(l.current.isFocusWithin=!1,n&&n(h),o&&o(!1))},[n,o,l]),f=hg(u),d=v.useCallback(h=>{!l.current.isFocusWithin&&document.activeElement===h.target&&(a&&a(h),o&&o(!0),l.current.isFocusWithin=!0,f(h))},[a,o,f]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:d,onBlur:u}}}let Pl=!1,vc=0;function Yc(){Pl=!0,setTimeout(()=>{Pl=!1},50)}function Cp(e){e.pointerType==="touch"&&Yc()}function BS(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Cp):document.addEventListener("touchend",Yc),vc++,()=>{vc--,!(vc>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Cp):document.removeEventListener("touchend",Yc))}}function US(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:a,isDisabled:o}=e,[l,u]=v.useState(!1),f=v.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;v.useEffect(BS,[]);let{hoverProps:d,triggerHoverEnd:h}=v.useMemo(()=>{let m=($,P)=>{if(f.pointerType=P,o||P==="touch"||f.isHovered||!$.currentTarget.contains($.target))return;f.isHovered=!0;let E=$.currentTarget;f.target=E,t&&t({type:"hoverstart",target:E,pointerType:P}),n&&n(!0),u(!0)},x=($,P)=>{if(f.pointerType="",f.target=null,P==="touch"||!f.isHovered)return;f.isHovered=!1;let E=$.currentTarget;a&&a({type:"hoverend",target:E,pointerType:P}),n&&n(!1),u(!1)},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=$=>{Pl&&$.pointerType==="mouse"||m($,$.pointerType)},y.onPointerLeave=$=>{!o&&$.currentTarget.contains($.target)&&x($,$.pointerType)}):(y.onTouchStart=()=>{f.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=$=>{!f.ignoreEmulatedMouseEvents&&!Pl&&m($,"mouse"),f.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=$=>{!o&&$.currentTarget.contains($.target)&&x($,"mouse")}),{hoverProps:y,triggerHoverEnd:x}},[t,n,a,o,f]);return v.useEffect(()=>{o&&h({currentTarget:f.target},f.pointerType)},[o]),{hoverProps:d,isHovered:l}}function zS(e){let{ref:t,onInteractOutside:n,isDisabled:a,onInteractOutsideStart:o}=e,l=v.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),u=Vn(d=>{n&&Xs(d,t)&&(o&&o(d),l.current.isPointerDown=!0)}),f=Vn(d=>{n&&n(d)});v.useEffect(()=>{let d=l.current;if(!a)if(typeof PointerEvent<"u"){let h=m=>{d.isPointerDown&&Xs(m,t)&&f(m),d.isPointerDown=!1};return document.addEventListener("pointerdown",u,!0),document.addEventListener("pointerup",h,!0),()=>{document.removeEventListener("pointerdown",u,!0),document.removeEventListener("pointerup",h,!0)}}else{let h=x=>{d.ignoreEmulatedMouseEvents?d.ignoreEmulatedMouseEvents=!1:d.isPointerDown&&Xs(x,t)&&f(x),d.isPointerDown=!1},m=x=>{d.ignoreEmulatedMouseEvents=!0,d.isPointerDown&&Xs(x,t)&&f(x),d.isPointerDown=!1};return document.addEventListener("mousedown",u,!0),document.addEventListener("mouseup",h,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("touchend",m,!0),()=>{document.removeEventListener("mousedown",u,!0),document.removeEventListener("mouseup",h,!0),document.removeEventListener("touchstart",u,!0),document.removeEventListener("touchend",m,!0)}}},[t,a,u,f])}function Xs(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function Mp(e){if(!e)return;let t=!0;return n=>{let a={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(a),t&&n.stopPropagation()}}function jS(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Mp(e.onKeyDown),onKeyUp:Mp(e.onKeyUp)}}}const HS=500;function mg(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:a,onLongPress:o,threshold:l=HS,accessibilityDescription:u}=e;const f=v.useRef(null);let{addGlobalListener:d,removeGlobalListener:h}=Af(),{pressProps:m}=ra({isDisabled:t,onPressStart(y){if((y.pointerType==="mouse"||y.pointerType==="touch")&&(n&&n({...y,type:"longpressstart"}),f.current=setTimeout(()=>{y.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...y,type:"longpress"}),f.current=null},l),y.pointerType==="touch")){let $=P=>{P.preventDefault()};d(y.target,"contextmenu",$,{once:!0}),d(window,"pointerup",()=>{setTimeout(()=>{h(y.target,"contextmenu",$)},30)},{once:!0})}},onPressEnd(y){f.current&&clearTimeout(f.current),a&&(y.pointerType==="mouse"||y.pointerType==="touch")&&a({...y,type:"longpressend"})}}),x=Hl(o&&!t?u:null);return{longPressProps:Ke(m,x)}}function Qi(e){if(wl()==="virtual"){let t=document.activeElement;sg(()=>{document.activeElement===t&&document.contains(e)&&Fr(e)})}else Fr(e)}function VS(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,a=t!=="none"&&n!=="hidden"&&n!=="collapse";if(a){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:l,visibility:u}=o(e);a=l!=="none"&&u!=="hidden"&&u!=="collapse"}return a}function WS(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function gg(e,t){return e.nodeName!=="#comment"&&VS(e)&&WS(e,t)&&(!e.parentElement||gg(e.parentElement,e))}const Ip=v.createContext(null);let Ye=null;function If(e){let{children:t,contain:n,restoreFocus:a,autoFocus:o}=e,l=v.useRef(),u=v.useRef(),f=v.useRef([]),{parentNode:d}=v.useContext(Ip)||{},h=v.useMemo(()=>new Jc({scopeRef:f}),[f]);at(()=>{let y=d||lt.root;if(lt.getTreeNode(y.scopeRef)&&Ye&&!Tl(Ye,y.scopeRef)){let $=lt.getTreeNode(Ye);$&&(y=$)}y.addChild(h),lt.addNode(h)},[h,d]),at(()=>{let y=lt.getTreeNode(f);y.contain=n},[n]),at(()=>{let y=l.current.nextSibling,$=[];for(;y&&y!==u.current;)$.push(y),y=y.nextSibling;f.current=$},[t]),XS(f,a,n),YS(f,n),t3(f,a,n),QS(f,o),v.useEffect(()=>{if(f){let y=document.activeElement,$=null;if(It(y,f.current)){for(let P of lt.traverse())It(y,P.scopeRef.current)&&($=P);$===lt.getTreeNode(f)&&(Ye=$.scopeRef)}return()=>{let P=lt.getTreeNode(f).parent.scopeRef;(f===Ye||Tl(f,Ye))&&(!P||lt.getTreeNode(P))&&(Ye=P),lt.removeTreeNode(f)}}},[f]);let m=v.useMemo(()=>GS(f),[]),x=v.useMemo(()=>({focusManager:m,parentNode:h}),[h,m]);return v.createElement(Ip.Provider,{value:x},v.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:l}),t,v.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:u}))}function GS(e){return{focusNext(t={}){let n=e.current,{from:a,tabbable:o,wrap:l,accept:u}=t,f=a||document.activeElement,d=n[0].previousElementSibling,h=en(Gi(n),{tabbable:o,accept:u},n);h.currentNode=It(f,n)?f:d;let m=h.nextNode();return!m&&l&&(h.currentNode=d,m=h.nextNode()),m&&Xt(m,!0),m},focusPrevious(t={}){let n=e.current,{from:a,tabbable:o,wrap:l,accept:u}=t,f=a||document.activeElement,d=n[n.length-1].nextElementSibling,h=en(Gi(n),{tabbable:o,accept:u},n);h.currentNode=It(f,n)?f:d;let m=h.previousNode();return!m&&l&&(h.currentNode=d,m=h.previousNode()),m&&Xt(m,!0),m},focusFirst(t={}){let n=e.current,{tabbable:a,accept:o}=t,l=en(Gi(n),{tabbable:a,accept:o},n);l.currentNode=n[0].previousElementSibling;let u=l.nextNode();return u&&Xt(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:a,accept:o}=t,l=en(Gi(n),{tabbable:a,accept:o},n);l.currentNode=n[n.length-1].nextElementSibling;let u=l.previousNode();return u&&Xt(u,!0),u}}}const Of=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],qS=Of.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Of.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const ZS=Of.join(':not([hidden]):not([tabindex="-1"]),');function Gi(e){return e[0].parentElement}function Mo(e){let t=lt.getTreeNode(Ye);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function YS(e,t){let n=v.useRef(),a=v.useRef(null);at(()=>{let o=e.current;if(!t){a.current&&(cancelAnimationFrame(a.current),a.current=null);return}let l=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Mo(e))return;let h=document.activeElement,m=e.current;if(!It(h,m))return;let x=en(Gi(m),{tabbable:!0},m);x.currentNode=h;let y=d.shiftKey?x.previousNode():x.nextNode();y||(x.currentNode=d.shiftKey?m[m.length-1].nextElementSibling:m[0].previousElementSibling,y=d.shiftKey?x.previousNode():x.nextNode()),d.preventDefault(),y&&Xt(y,!0)},u=d=>{(!Ye||Tl(Ye,e))&&It(d.target,e.current)?(Ye=e,n.current=d.target):Mo(e)&&!Sl(d.target,e)?n.current?n.current.focus():Ye&&_l(Ye.current):Mo(e)&&(n.current=d.target)},f=d=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{Mo(e)&&!Sl(document.activeElement,e)&&(Ye=e,document.body.contains(d.target)?(n.current=d.target,n.current.focus()):Ye&&_l(Ye.current))})};return document.addEventListener("keydown",l,!1),document.addEventListener("focusin",u,!1),o.forEach(d=>d.addEventListener("focusin",u,!1)),o.forEach(d=>d.addEventListener("focusout",f,!1)),()=>{document.removeEventListener("keydown",l,!1),document.removeEventListener("focusin",u,!1),o.forEach(d=>d.removeEventListener("focusin",u,!1)),o.forEach(d=>d.removeEventListener("focusout",f,!1))}},[e,t]),at(()=>()=>{a.current&&cancelAnimationFrame(a.current)},[a])}function yg(e){return Sl(e)}function It(e,t){return t.some(n=>n.contains(e))}function Sl(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of lt.traverse(lt.getTreeNode(t)))if(It(e,n.current))return!0;return!1}function JS(e){return Sl(e,Ye)}function Tl(e,t){var n;let a=(n=lt.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;a;){if(a.scopeRef===e)return!0;a=a.parent}return!1}function Xt(e,t=!1){if(e!=null&&!t)try{Qi(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function _l(e,t=!0){let n=e[0].previousElementSibling,a=en(Gi(e),{tabbable:t},e);a.currentNode=n;let o=a.nextNode();t&&!o&&(a=en(Gi(e),{tabbable:!1},e),a.currentNode=n,o=a.nextNode()),Xt(o)}function QS(e,t){const n=v.useRef(t);v.useEffect(()=>{n.current&&(Ye=e,It(document.activeElement,Ye.current)||_l(e.current)),n.current=!1},[e])}function XS(e,t,n){at(()=>{if(t||n)return;let a=e.current,o=l=>{let u=l.target;It(u,e.current)?Ye=e:yg(u)||(Ye=null)};return document.addEventListener("focusin",o,!1),a.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{document.removeEventListener("focusin",o,!1),a.forEach(l=>l.removeEventListener("focusin",o,!1))}},[e,t,n])}function e3(e){let t=lt.getTreeNode(Ye);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function t3(e,t,n){const a=v.useRef(typeof document<"u"?document.activeElement:null);at(()=>{let o=e.current;if(!t||n)return;let l=()=>{(!Ye||Tl(Ye,e))&&It(document.activeElement,e.current)&&(Ye=e)};return document.addEventListener("focusin",l,!1),o.forEach(u=>u.addEventListener("focusin",l,!1)),()=>{document.removeEventListener("focusin",l,!1),o.forEach(u=>u.removeEventListener("focusin",l,!1))}},[e,n]),at(()=>{if(!t)return;lt.getTreeNode(e).nodeToRestore=a.current;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Mo(e))return;let u=document.activeElement;if(!It(u,e.current))return;let f=lt.getTreeNode(e).nodeToRestore,d=en(document.body,{tabbable:!0});d.currentNode=u;let h=l.shiftKey?d.previousNode():d.nextNode();if((!document.body.contains(f)||f===document.body)&&(f=null,lt.getTreeNode(e).nodeToRestore=null),(!h||!It(h,e.current))&&f){d.currentNode=f;do h=l.shiftKey?d.previousNode():d.nextNode();while(It(h,e.current));l.preventDefault(),l.stopPropagation(),h?Xt(h,!0):yg(f)?Xt(f,!0):u.blur()}};return n||document.addEventListener("keydown",o,!0),()=>{n||document.removeEventListener("keydown",o,!0);let l=lt.getTreeNode(e).nodeToRestore;if(t&&l&&(It(document.activeElement,e.current)||document.activeElement===document.body&&e3(e))){let u=lt.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let f=u.getTreeNode(e);for(;f;){if(f.nodeToRestore&&document.body.contains(f.nodeToRestore)){Xt(f.nodeToRestore);return}f=f.parent}for(f=u.getTreeNode(e);f;){if(f.scopeRef&&lt.getTreeNode(f.scopeRef)){_l(f.scopeRef.current,!0);return}f=f.parent}}})}}},[e,t,n])}function en(e,t,n){let a=t?.tabbable?ZS:qS,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var u;return!(t==null||(u=t.from)===null||u===void 0)&&u.contains(l)?NodeFilter.FILTER_REJECT:l.matches(a)&&gg(l)&&(!n||It(l,n))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(o.currentNode=t.from),o}function Lf(e,t={}){return{focusNext(n={}){let a=e.current;if(!a)return;let{from:o,tabbable:l=t.tabbable,wrap:u=t.wrap,accept:f=t.accept}=n,d=o||document.activeElement,h=en(a,{tabbable:l,accept:f});a.contains(d)&&(h.currentNode=d);let m=h.nextNode();return!m&&u&&(h.currentNode=a,m=h.nextNode()),m&&Xt(m,!0),m},focusPrevious(n=t){let a=e.current;if(!a)return;let{from:o,tabbable:l=t.tabbable,wrap:u=t.wrap,accept:f=t.accept}=n,d=o||document.activeElement,h=en(a,{tabbable:l,accept:f});if(a.contains(d))h.currentNode=d;else{let x=bc(h);return x&&Xt(x,!0),x}let m=h.previousNode();return!m&&u&&(h.currentNode=a,m=bc(h)),m&&Xt(m,!0),m},focusFirst(n=t){let a=e.current;if(!a)return;let{tabbable:o=t.tabbable,accept:l=t.accept}=n,f=en(a,{tabbable:o,accept:l}).nextNode();return f&&Xt(f,!0),f},focusLast(n=t){let a=e.current;if(!a)return;let{tabbable:o=t.tabbable,accept:l=t.accept}=n,u=en(a,{tabbable:o,accept:l}),f=bc(u);return f&&Xt(f,!0),f}}}function bc(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class kf{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,a){let o=this.fastMap.get(n??null),l=new Jc({scopeRef:t});o.addChild(l),l.parent=o,this.fastMap.set(t,l),a&&(l.nodeToRestore=a)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t),a=n.parent;for(let l of this.traverse())l!==n&&n.nodeToRestore&&l.nodeToRestore&&n.scopeRef.current&&It(l.nodeToRestore,n.scopeRef.current)&&(l.nodeToRestore=n.nodeToRestore);let o=n.children;a.removeChild(n),o.size>0&&o.forEach(l=>a.addChild(l)),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new kf;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent.scopeRef,n.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new Jc({scopeRef:null}),this.fastMap.set(null,this.root)}}class Jc{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let lt=new kf;function Ff(e={}){let{autoFocus:t=!1,isTextInput:n,within:a}=e,o=v.useRef({isFocused:!1,isFocusVisible:t||Dl()}),[l,u]=v.useState(!1),[f,d]=v.useState(()=>o.current.isFocused&&o.current.isFocusVisible),h=v.useCallback(()=>d(o.current.isFocused&&o.current.isFocusVisible),[]),m=v.useCallback($=>{o.current.isFocused=$,u($),h()},[h]);KS($=>{o.current.isFocusVisible=$,h()},[],{isTextInput:n});let{focusProps:x}=pg({isDisabled:a,onFocusChange:m}),{focusWithinProps:y}=Xa({isDisabled:!a,onFocusWithinChange:m});return{isFocused:l,isFocusVisible:f,focusProps:a?y:x}}function Nf(e){let{children:t,focusClass:n,focusRingClass:a}=e,{isFocused:o,isFocusVisible:l,focusProps:u}=Ff(e),f=v.Children.only(t);return v.cloneElement(f,Ke(f.props,{...u,className:og({[n||""]:o,[a||""]:l})}))}let n3=v.createContext(null);function r3(e){let t=v.useContext(n3)||{};lg(t,e);let{ref:n,...a}=t;return a}function Wl(e,t){let{focusProps:n}=pg(e),{keyboardProps:a}=jS(e),o=Ke(n,a),l=r3(t),u=e.isDisabled?{}:l,f=v.useRef(e.autoFocus);return v.useEffect(()=>{f.current&&t.current&&Qi(t.current),f.current=!1},[t]),{focusableProps:Ke({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},u)}}function i3(e,t){let{elementType:n="a",onPress:a,onPressStart:o,onPressEnd:l,onClick:u,isDisabled:f,...d}=e,h={};n!=="a"&&(h={role:"link",tabIndex:f?void 0:0});let{focusableProps:m}=Wl(e,t),{pressProps:x,isPressed:y}=ra({onPress:a,onPressStart:o,onPressEnd:l,isDisabled:f,ref:t}),$=cr(d,{labelable:!0}),P=Ke(m,x);return{isPressed:y,linkProps:Ke($,{...P,...h,"aria-disabled":f||void 0,"aria-current":e["aria-current"],onClick:E=>{var R;(R=x.onClick)===null||R===void 0||R.call(x,E),u&&(u(E),console.warn("onClick is deprecated, please use onPress"))}})}}class Kf{getStringForLocale(t,n){let a=this.strings[n];a||(a=a3(n,this.strings,this.defaultLocale),this.strings[n]=a);let o=a[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function a3(e,t,n="en-US"){if(t[e])return t[e];let a=o3(e);if(t[a])return t[a];for(let o in t)if(o.startsWith(a+"-"))return t[o];return t[n]}function o3(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Op=new Map,Lp=new Map;class s3{format(t,n){let a=this.strings.getStringForLocale(t,this.locale);return typeof a=="function"?a(n,this):a}plural(t,n,a="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let l=this.locale+":"+a,u=Op.get(l);u||(u=new Intl.PluralRules(this.locale,{type:a}),Op.set(l,u));let f=u.select(t);return o=n[f]||n.other,typeof o=="function"?o():o}number(t){let n=Lp.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Lp.set(this.locale,n)),n.format(t)}select(t,n){let a=t[n]||t.other;return typeof a=="function"?a():a}constructor(t,n){this.locale=t,this.strings=n}}function l3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Gl(e,t,n){l3(e,t),t.set(e,n)}function Br(e,t){return e-t*Math.floor(e/t)}const vg=1721426;function qi(e,t,n,a){t=ss(e,t);let o=t-1,l=-2;return n<=2?l=0:fi(t)&&(l=-1),vg-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+l+a)}function fi(e){return e%4===0&&(e%100!==0||e%400===0)}function ss(e,t){return e==="BC"?1-t:t}function ql(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const u3={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class un{fromJulianDay(t){let n=t,a=n-vg,o=Math.floor(a/146097),l=Br(a,146097),u=Math.floor(l/36524),f=Br(l,36524),d=Math.floor(f/1461),h=Br(f,1461),m=Math.floor(h/365),x=o*400+u*100+d*4+m+(u!==4&&m!==4?1:0),[y,$]=ql(x),P=n-qi(y,$,1,1),E=2;n<qi(y,$,3,1)?E=0:fi($)&&(E=1);let R=Math.floor(((P+E)*12+373)/367),k=n-qi(y,$,R,1)+1;return new pt(y,$,R,k)}toJulianDay(t){return qi(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return u3[fi(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return fi(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const c3={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function ht(e,t){return t=it(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function f3(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function d3(e,t){return ht(e,Bf(t))}function Zl(e,t){let n=e.calendar.toJulianDay(e),a=Math.ceil(n+1-v3(t))%7;return a<0&&(a+=7),a}function bg(e){return Nr(Date.now(),e)}function Bf(e){return sr(bg(e))}function $g(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function xg(e,t){return kp(e)-kp(t)}function kp(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let $c=null;function Dg(){return $c==null&&($c=new Intl.DateTimeFormat().resolvedOptions().timeZone),$c}function ls(e){return e.subtract({days:e.day-1})}function Qc(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function h3(e){return ls(e.subtract({months:e.month-1}))}function p3(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function m3(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Wo(e,t){let n=Zl(e,t);return e.subtract({days:n})}function g3(e,t){return Wo(e,t).add({days:6})}const Fp=new Map;function y3(e){if(Intl.Locale){let n=Fp.get(e);return n||(n=new Intl.Locale(e).maximize().region,Fp.set(e,n)),n}let t=e.split("-")[1];return t==="u"?null:t}function v3(e){let t=y3(e);return c3[t]||0}function b3(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Zl(ls(e),t)+n)/7)}function wg(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Pg(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function qa(e){e=it(e,new un);let t=ss(e.era,e.year);return Sg(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Sg(e,t,n,a,o,l,u){let f=new Date;return f.setUTCHours(a,o,l,u),f.setUTCFullYear(e,t-1,n),f.getTime()}function Xc(e,t){if(t==="UTC")return 0;if(e>0&&t===Dg())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:a,day:o,hour:l,minute:u,second:f}=Tg(e,t);return Sg(n,a,o,l,u,f,0)-Math.floor(e/1e3)*1e3}const Np=new Map;function Tg(e,t){let n=Np.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Np.set(t,n));let a=n.formatToParts(new Date(e)),o={};for(let l of a)l.type!=="literal"&&(o[l.type]=l.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const Kp=864e5;function $3(e,t,n,a){return(n===a?[n]:[n,a]).filter(l=>x3(e,t,l))}function x3(e,t,n){let a=Tg(n,t);return e.year===a.year&&e.month===a.month&&e.day===a.day&&e.hour===a.hour&&e.minute===a.minute&&e.second===a.second}function kr(e,t,n="compatible"){let a=gi(e);if(t==="UTC")return qa(a);if(t===Dg()&&n==="compatible"){a=it(a,new un);let d=new Date,h=ss(a.era,a.year);return d.setFullYear(h,a.month-1,a.day),d.setHours(a.hour,a.minute,a.second,a.millisecond),d.getTime()}let o=qa(a),l=Xc(o-Kp,t),u=Xc(o+Kp,t),f=$3(a,t,o-l,o-u);if(f.length===1)return f[0];if(f.length>1)switch(n){case"compatible":case"earlier":return f[0];case"later":return f[f.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-l,o-u);case"compatible":case"later":return Math.max(o-l,o-u);case"reject":throw new RangeError("No such absolute time found")}}function _g(e,t,n="compatible"){return new Date(kr(e,t,n))}function Nr(e,t){let n=Xc(e,t),a=new Date(e+n),o=a.getUTCFullYear(),l=a.getUTCMonth()+1,u=a.getUTCDate(),f=a.getUTCHours(),d=a.getUTCMinutes(),h=a.getUTCSeconds(),m=a.getUTCMilliseconds();return new qo(o,l,u,t,n,f,d,h,m)}function sr(e){return new pt(e.calendar,e.era,e.year,e.month,e.day)}function gi(e,t){let n=0,a=0,o=0,l=0;if("timeZone"in e)({hour:n,minute:a,second:o,millisecond:l}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:a,second:o,millisecond:l}=t),new El(e.calendar,e.era,e.year,e.month,e.day,n,a,o,l)}function it(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),a=e.copy();return a.calendar=t,a.era=n.era,a.year=n.year,a.month=n.month,a.day=n.day,Xi(a),a}function D3(e,t,n){if(e instanceof qo)return e.timeZone===t?e:P3(e,t);let a=kr(e,t,n);return Nr(a,t)}function w3(e){let t=qa(e)-e.offset;return new Date(t)}function P3(e,t){let n=qa(e)-e.offset;return it(Nr(n,t),e.calendar)}const To=36e5;function Yl(e,t){let n=e.copy(),a="hour"in n?Cg(n,t):0;ef(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,tf(n),Eg(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=a,S3(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var l,u;let d=(u=(l=n.calendar).isInverseEra)===null||u===void 0?void 0:u.call(l,n);n.year=o,n.month=d?1:n.calendar.getMonthsInYear(n),n.day=d?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let f=n.calendar.getMonthsInYear(n);return n.month>f&&(n.month=f,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function ef(e,t){var n,a;!((a=(n=e.calendar).isInverseEra)===null||a===void 0)&&a.call(n,e)&&(t=-t),e.year+=t}function tf(e){for(;e.month<1;)ef(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,ef(e,1)}function S3(e){for(;e.day<1;)e.month--,tf(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,tf(e)}function Eg(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Xi(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Eg(e)}function Uf(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function Rg(e,t){return Yl(e,Uf(t))}function zf(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Xi(n),n}function Go(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),Ag(n),n}function T3(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=el(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=el(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=el(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=el(e.hour,24),t}function Ag(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function el(e,t){let n=e%t;return n<0&&(n+=t),n}function Cg(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,T3(e)}function Mg(e,t){let n=e.copy();return Cg(n,t),n}function _3(e,t){return Mg(e,Uf(t))}function jf(e,t,n,a){let o=e.copy();switch(t){case"era":{let f=e.calendar.getEras(),d=f.indexOf(e.era);if(d<0)throw new Error("Invalid era: "+e.era);d=Kr(d,n,0,f.length-1,a?.round),o.era=f[d],Xi(o);break}case"year":var l,u;!((u=(l=o.calendar).isInverseEra)===null||u===void 0)&&u.call(l,o)&&(n=-n),o.year=Kr(e.year,n,-1/0,9999,a?.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=Kr(e.month,n,1,e.calendar.getMonthsInYear(e),a?.round);break;case"day":o.day=Kr(e.day,n,1,e.calendar.getDaysInMonth(e),a?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Xi(o),o}function Hf(e,t,n,a){let o=e.copy();switch(t){case"hour":{let l=e.hour,u=0,f=23;if(a?.hourCycle===12){let d=l>=12;u=d?12:0,f=d?23:11}o.hour=Kr(l,n,u,f,a?.round);break}case"minute":o.minute=Kr(e.minute,n,0,59,a?.round);break;case"second":o.second=Kr(e.second,n,0,59,a?.round);break;case"millisecond":o.millisecond=Kr(e.millisecond,n,0,999,a?.round);break;default:throw new Error("Unsupported field "+t)}return o}function Kr(e,t,n,a,o=!1){if(o){e+=Math.sign(t),e<n&&(e=a);let l=Math.abs(t);t>0?e=Math.ceil(e/l)*l:e=Math.floor(e/l)*l,e>a&&(e=n)}else e+=t,e<n?e=a-(n-e-1):e>a&&(e=n+(e-a-1));return e}function Ig(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.days!=null&&t.days!==0){let o=Yl(gi(e),{years:t.years,months:t.months,days:t.days});n=kr(o,e.timeZone)}else n=qa(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let a=Nr(n,e.timeZone);return it(a,e.calendar)}function E3(e,t){return Ig(e,Uf(t))}function R3(e,t,n,a){switch(t){case"hour":{let o=0,l=23;if(a?.hourCycle===12){let P=e.hour>=12;o=P?12:0,l=P?23:11}let u=gi(e),f=it(Go(u,{hour:o}),new un),d=[kr(f,e.timeZone,"earlier"),kr(f,e.timeZone,"later")].filter(P=>Nr(P,e.timeZone).day===f.day)[0],h=it(Go(u,{hour:l}),new un),m=[kr(h,e.timeZone,"earlier"),kr(h,e.timeZone,"later")].filter(P=>Nr(P,e.timeZone).day===h.day).pop(),x=qa(e)-e.offset,y=Math.floor(x/To),$=x%To;return x=Kr(y,n,Math.floor(d/To),Math.floor(m/To),a?.round)*To+$,it(Nr(x,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Hf(e,t,n,a);case"era":case"year":case"month":case"day":{let o=jf(gi(e),t,n,a),l=kr(o,e.timeZone);return it(Nr(l,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function A3(e,t,n){let a=gi(e),o=Go(zf(a,t),t);if(o.compare(a)===0)return e;let l=kr(o,e.timeZone,n);return it(Nr(l,e.timeZone),e.calendar)}function Og(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Lg(e){let t=it(e,new un);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function kg(e){return`${Lg(e)}T${Og(e)}`}function C3(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),a=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(a).padStart(2,"0")}`}function M3(e){return`${kg(e)}${C3(e.offset)}[${e.timeZone}]`}function Vf(e){let t=typeof e[0]=="object"?e.shift():new un,n;if(typeof e[0]=="string")n=e.shift();else{let u=t.getEras();n=u[u.length-1]}let a=e.shift(),o=e.shift(),l=e.shift();return[t,n,a,o,l]}var I3=new WeakMap;class pt{copy(){return this.era?new pt(this.calendar,this.era,this.year,this.month,this.day):new pt(this.calendar,this.year,this.month,this.day)}add(t){return Yl(this,t)}subtract(t){return Rg(this,t)}set(t){return zf(this,t)}cycle(t,n,a){return jf(this,t,n,a)}toDate(t){return _g(this,t)}toString(){return Lg(this)}compare(t){return $g(this,t)}constructor(...t){Gl(this,I3,{writable:!0,value:void 0});let[n,a,o,l,u]=Vf(t);this.calendar=n,this.era=a,this.year=o,this.month=l,this.day=u,Xi(this)}}var O3=new WeakMap;class Wf{copy(){return new Wf(this.hour,this.minute,this.second,this.millisecond)}add(t){return Mg(this,t)}subtract(t){return _3(this,t)}set(t){return Go(this,t)}cycle(t,n,a){return Hf(this,t,n,a)}toString(){return Og(this)}compare(t){return xg(this,t)}constructor(t=0,n=0,a=0,o=0){Gl(this,O3,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=a,this.millisecond=o,Ag(this)}}var L3=new WeakMap;class El{copy(){return this.era?new El(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new El(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Yl(this,t)}subtract(t){return Rg(this,t)}set(t){return zf(Go(this,t),t)}cycle(t,n,a){switch(t){case"era":case"year":case"month":case"day":return jf(this,t,n,a);default:return Hf(this,t,n,a)}}toDate(t,n){return _g(this,t,n)}toString(){return kg(this)}compare(t){let n=$g(this,t);return n===0?xg(this,gi(t)):n}constructor(...t){Gl(this,L3,{writable:!0,value:void 0});let[n,a,o,l,u]=Vf(t);this.calendar=n,this.era=a,this.year=o,this.month=l,this.day=u,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Xi(this)}}var k3=new WeakMap;class qo{copy(){return this.era?new qo(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new qo(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Ig(this,t)}subtract(t){return E3(this,t)}set(t,n){return A3(this,t,n)}cycle(t,n,a){return R3(this,t,n,a)}toDate(){return w3(this)}toString(){return M3(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-D3(t,this.timeZone).toDate().getTime()}constructor(...t){Gl(this,k3,{writable:!0,value:void 0});let[n,a,o,l,u]=Vf(t),f=t.shift(),d=t.shift();this.calendar=n,this.era=a,this.year=o,this.month=l,this.day=u,this.timeZone=f,this.offset=d,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Xi(this)}}const Ba=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],F3=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],dl=[1867,1911,1925,1988,2018],ci=["meiji","taisho","showa","heisei","reiwa"];function Bp(e){const t=Ba.findIndex(([n,a,o])=>e.year<n||e.year===n&&e.month<a||e.year===n&&e.month===a&&e.day<o);return t===-1?Ba.length-1:t===0?0:t-1}function xc(e){let t=dl[ci.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new pt(e.year+t,e.month,e.day)}class N3 extends un{fromJulianDay(t){let n=super.fromJulianDay(t),a=Bp(n);return new pt(this,ci[a],n.year-dl[a],n.month,n.day)}toJulianDay(t){return super.toJulianDay(xc(t))}balanceDate(t){let n=xc(t),a=Bp(n);ci[a]!==t.era&&(t.era=ci[a],t.year=n.year-dl[a]),this.constrainDate(t)}constrainDate(t){let n=ci.indexOf(t.era),a=F3[n];if(a!=null){let[o,l,u]=a,f=o-dl[n];t.year=Math.max(1,Math.min(f,t.year)),t.year===f&&(t.month=Math.min(l,t.month),t.month===l&&(t.day=Math.min(u,t.day)))}if(t.year===1&&n>=0){let[,o,l]=Ba[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(l,t.day))}}getEras(){return ci}getYearsInEra(t){let n=ci.indexOf(t.era),a=Ba[n],o=Ba[n+1];if(o==null)return 9999-a[0]+1;let l=o[0]-a[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&l++,l}getDaysInMonth(t){return super.getDaysInMonth(xc(t))}getMinimumMonthInYear(t){let n=Up(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Up(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Up(e){if(e.year===1){let t=ci.indexOf(e.era);return Ba[t]}}const Fg=-543;class K3 extends un{fromJulianDay(t){let n=super.fromJulianDay(t),a=ss(n.era,n.year);return new pt(this,a-Fg,n.month,n.day)}toJulianDay(t){return super.toJulianDay(zp(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(zp(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function zp(e){let[t,n]=ql(e.year+Fg);return new pt(t,n,e.month,e.day)}const Rl=1911;function Ng(e){return e.era==="minguo"?e.year+Rl:1-e.year+Rl}function jp(e){let t=e-Rl;return t>0?["minguo",t]:["before_minguo",1-t]}class B3 extends un{fromJulianDay(t){let n=super.fromJulianDay(t),a=ss(n.era,n.year),[o,l]=jp(a);return new pt(this,o,l,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Hp(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,a]=jp(Ng(t));t.era=n,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Hp(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Rl}constructor(...t){super(...t),this.identifier="roc"}}function Hp(e){let[t,n]=ql(Ng(e));return new pt(t,n,e.month,e.day)}const U3=1948321;function z3(e){let t=e>0?e-474:e-473,n=Br(t,2820)+474;return Br((n+38)*31,128)<31}function tl(e,t,n){let a=e>0?e-474:e-473,o=Br(a,2820)+474,l=t<=7?31*(t-1):30*(t-1)+6;return U3-1+1029983*Math.floor(a/2820)+365*(o-1)+Math.floor((31*o-5)/128)+l+n}class j3{fromJulianDay(t){let n=t-tl(475,1,1),a=Math.floor(n/1029983),o=Br(n,1029983),l=o===1029982?2820:Math.floor((128*o+46878)/46751),u=474+2820*a+l;u<=0&&u--;let f=t-tl(u,1,1)+1,d=f<=186?Math.ceil(f/31):Math.ceil((f-6)/31),h=t-tl(u,d,1)+1;return new pt(this,u,d,h)}toJulianDay(t){return tl(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||z3(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Dc=78,Vp=80;class H3 extends un{fromJulianDay(t){let n=super.fromJulianDay(t),a=n.year-Dc,o=t-qi(n.era,n.year,1,1),l;o<Vp?(a--,l=fi(n.year-1)?31:30,o+=l+155+90+10):(l=fi(n.year)?31:30,o-=Vp);let u,f;if(o<l)u=1,f=o+1;else{let d=o-l;d<155?(u=Math.floor(d/31)+2,f=d%31+1):(d-=155,u=Math.floor(d/30)+7,f=d%30+1)}return new pt(this,a,u,f)}toJulianDay(t){let n=t.year+Dc,[a,o]=ql(n),l,u;return fi(o)?(l=31,u=qi(a,o,3,21)):(l=30,u=qi(a,o,3,22)),t.month===1?u+t.day-1:(u+=l+Math.min(t.month-2,5)*31,t.month>=8&&(u+=(t.month-7)*30),u+=t.day-1,u)}getDaysInMonth(t){return t.month===1&&fi(t.year+Dc)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Al=1948440,Wp=1948439,wn=1300,Ia=1600,V3=460322;function Cl(e,t,n,a){return a+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Kg(e,t,n){let a=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+Cl(t,a,1,1)))/29.5)+1),l=n-Cl(t,a,o,1)+1;return new pt(e,a,o,l)}function Gp(e){return(14+11*e)%30<11}class Gf{fromJulianDay(t){return Kg(this,Al,t)}toJulianDay(t){return Cl(Al,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&Gp(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return Gp(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class W3 extends Gf{fromJulianDay(t){return Kg(this,Wp,t)}toJulianDay(t){return Cl(Wp,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const G3="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let nf,Ua;function hl(e){return V3+Ua[e-wn]}function Io(e,t){let n=e-wn,a=1<<11-(t-1);return nf[n]&a?30:29}function qp(e,t){let n=hl(e);for(let a=1;a<t;a++)n+=Io(e,a);return n}function Zp(e){return Ua[e+1-wn]-Ua[e-wn]}class q3 extends Gf{fromJulianDay(t){let n=t-Al,a=hl(wn),o=hl(Ia);if(n<a||n>o)return super.fromJulianDay(t);{let l=wn-1,u=1,f=1;for(;f>0;){l++,f=n-hl(l)+1;let d=Zp(l);if(f===d){u=12;break}else if(f<d){let h=Io(l,u);for(u=1;f>h;)f-=h,u++,h=Io(l,u);break}}return new pt(this,l,u,n-qp(l,u)+1)}}toJulianDay(t){return t.year<wn||t.year>Ia?super.toJulianDay(t):Al+qp(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<wn||t.year>Ia?super.getDaysInMonth(t):Io(t.year,t.month)}getDaysInYear(t){return t.year<wn||t.year>Ia?super.getDaysInYear(t):Zp(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",nf||(nf=new Uint16Array(Uint8Array.from(atob(G3),t=>t.charCodeAt(0)).buffer)),!Ua){Ua=new Uint32Array(Ia-wn+1);let t=0;for(let n=wn;n<=Ia;n++){Ua[n-wn]=t;for(let a=1;a<=12;a++)t+=Io(n,a)}}}}const Yp=347997,Bg=1080,Ug=24*Bg,Z3=29,Y3=12*Bg+793,J3=Z3*Ug+Y3;function Wi(e){return Br(e*7+1,19)<7}function pl(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,a=t*29+Math.floor(n/25920);return Br(3*(a+1),7)<3&&(a+=1),a}function Q3(e){let t=pl(e-1),n=pl(e);return pl(e+1)-n===356?2:n-t===382?1:0}function ko(e){return pl(e)+Q3(e)}function zg(e){return ko(e+1)-ko(e)}function X3(e){let t=zg(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function nl(e,t){if(t>=6&&!Wi(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=X3(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Wi(e)?30:0:30}class eT{fromJulianDay(t){let n=t-Yp,a=n*Ug/J3,o=Math.floor((19*a+234)/235)+1,l=ko(o),u=Math.floor(n-l);for(;u<1;)o--,l=ko(o),u=Math.floor(n-l);let f=1,d=0;for(;d<u;)d+=nl(o,f),f++;f--,d-=nl(o,f);let h=u-d;return new pt(this,o,f,h)}toJulianDay(t){let n=ko(t.year);for(let a=1;a<t.month;a++)n+=nl(t.year,a);return n+t.day+Yp}getDaysInMonth(t){return nl(t.year,t.month)}getMonthsInYear(t){return Wi(t.year)?13:12}getDaysInYear(t){return zg(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Wi(n.year)&&!Wi(t.year)&&n.month>6?t.month--:!Wi(n.year)&&Wi(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const rf=1723856,Jp=1824665,af=5500;function Ml(e,t,n,a){return e+365*t+Math.floor(t/4)+30*(n-1)+a-1}function qf(e,t){let n=Math.floor(4*(t-e)/1461),a=1+Math.floor((t-Ml(e,n,1,1))/30),o=t+1-Ml(e,n,a,1);return[n,a,o]}function jg(e){return Math.floor(e%4/3)}function Hg(e,t){return t%13!==0?30:jg(e)+5}class Zf{fromJulianDay(t){let[n,a,o]=qf(rf,t),l="AM";return n<=0&&(l="AA",n+=af),new pt(this,l,n,a,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=af),Ml(rf,n,t.month,t.day)}getDaysInMonth(t){return Hg(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+jg(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class tT extends Zf{fromJulianDay(t){let[n,a,o]=qf(rf,t);return n+=af,new pt(this,"AA",n,a,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class nT extends Zf{fromJulianDay(t){let[n,a,o]=qf(Jp,t),l="CE";return n<=0&&(l="BCE",n=1-n),new pt(this,l,n,a,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Ml(Jp,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Hg(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function Vg(e){switch(e){case"buddhist":return new K3;case"ethiopic":return new Zf;case"ethioaa":return new tT;case"coptic":return new nT;case"hebrew":return new eT;case"indian":return new H3;case"islamic-civil":return new Gf;case"islamic-tbla":return new W3;case"islamic-umalqura":return new q3;case"japanese":return new N3;case"persian":return new j3;case"roc":return new B3;case"gregory":default:return new un}}let wc=new Map;class za{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let a=this.formatter.formatToParts(t),o=this.formatter.formatToParts(n);return[...a.map(l=>({...l,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(l=>({...l,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return aT()&&(this.resolvedHourCycle||(this.resolvedHourCycle=oT(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=Wg(t,n),this.options=n}}const rT={true:{ja:"h11"},false:{}};function Wg(e,t={}){if(typeof t.hour12=="boolean"&&iT()){t={...t};let o=rT[String(t.hour12)][e.split("-")[0]],l=t.hour12?"h12":"h23";t.hourCycle=o??l,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,l)=>o[0]<l[0]?-1:1).join():"");if(wc.has(n))return wc.get(n);let a=new Intl.DateTimeFormat(e,t);return wc.set(n,a),a}let Pc=null;function iT(){return Pc==null&&(Pc=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Pc}let Sc=null;function aT(){return Sc==null&&(Sc=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Sc}function oT(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=Wg(e,{...t,timeZone:void 0}),a=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(l=>l.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(l=>l.type==="hour").value,10);if(a===0&&o===23)return"h23";if(a===24&&o===23)return"h24";if(a===0&&o===11)return"h11";if(a===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}let sT=!1;try{sT=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let lT=!1;try{lT=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const uT=new RegExp("^.*\\(.*\\).*$"),cT=["latn","arab","hanidec"];class fT{parse(t){return Tc(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,a){return Tc(this.locale,this.options,t).isValidPartialNumber(t,n,a)}getNumberingSystem(t){return Tc(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Qp=new Map;function Tc(e,t,n){let a=Xp(e,t);if(!e.includes("-nu-")&&!a.isValidPartialNumber(n)){for(let o of cT)if(o!==a.options.numberingSystem){let l=Xp(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(l.isValidPartialNumber(n))return l}}return a}function Xp(e,t){let n=e+(t?Object.entries(t).sort((o,l)=>o[0]<l[0]?-1:1).join():""),a=Qp.get(n);return a||(a=new dT(e,t),Qp.set(n,a)),a}class dT{parse(t){let n=this.sanitize(t);n=rl(n,this.symbols.group,"").replace(this.symbols.decimal,".").replace(this.symbols.minusSign,"-").replace(this.symbols.numeral,this.symbols.index);let a=n?+n:NaN;if(isNaN(a))return NaN;if(this.options.currencySign==="accounting"&&uT.test(t)&&(a=-1*a),this.options.style==="percent"){a/=100;var o;a=+a.toFixed(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2)}return a}sanitize(t){return t=t.replace(this.symbols.literals,""),t=t.replace("-",this.symbols.minusSign),this.options.numberingSystem==="arab"&&(t=t.replace(",",this.symbols.decimal),t=t.replace(String.fromCharCode(1548),this.symbols.decimal),t=rl(t,".",this.symbols.group)),this.options.locale==="fr-FR"&&(t=rl(t,".",String.fromCharCode(8239))),t}isValidPartialNumber(t,n=-1/0,a=1/0){return t=this.sanitize(t),t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&a>0&&(t=t.slice(this.symbols.plusSign.length)),t.startsWith(this.symbols.group)?!1:(t=rl(t,this.symbols.group,"").replace(this.symbols.numeral,"").replace(this.symbols.decimal,""),t.length===0)}constructor(t,n={}){this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=hT(this.formatter,this.options,n)}}const em=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);function hT(e,t,n){var a,o,l,u;let f=e.formatToParts(-10000.111),d=e.formatToParts(10000.111),h=e.formatToParts(1);var m;let x=(m=(a=f.find(ee=>ee.type==="minusSign"))===null||a===void 0?void 0:a.value)!==null&&m!==void 0?m:"-",y=(o=d.find(ee=>ee.type==="plusSign"))===null||o===void 0?void 0:o.value;!y&&(n?.signDisplay==="exceptZero"||n?.signDisplay==="always")&&(y="+");let $=(l=f.find(ee=>ee.type==="decimal"))===null||l===void 0?void 0:l.value,P=(u=f.find(ee=>ee.type==="group"))===null||u===void 0?void 0:u.value,E=f.filter(ee=>!em.has(ee.type)).map(ee=>tm(ee.value)),R=h.filter(ee=>!em.has(ee.type)).map(ee=>tm(ee.value)),k=[...new Set([...R,...E])].sort((ee,w)=>w.length-ee.length),O=k.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${k.join("|")}|[\\p{White_Space}]`,"gu"),N=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),F=new Map(N.map((ee,w)=>[ee,w])),H=new RegExp(`[${N.join("")}]`,"g");return{minusSign:x,plusSign:y,decimal:$,group:P,literals:O,numeral:H,index:ee=>String(F.get(ee))}}function rl(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function tm(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}const pT=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),mT=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function gT(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize().script;return pT.has(n)}let t=e.split("-")[0];return mT.has(t)}function Gg(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:gT(e)?"rtl":"ltr"}}let of=Gg(),Oo=new Set;function nm(){of=Gg();for(let e of Oo)e(of)}function yT(){let e=Ja(),[t,n]=v.useState(of);return v.useEffect(()=>(Oo.size===0&&window.addEventListener("languagechange",nm),Oo.add(n),()=>{Oo.delete(n),Oo.size===0&&window.removeEventListener("languagechange",nm)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const vT=v.createContext(null);function zt(){let e=yT();return v.useContext(vT)||e}const rm=new WeakMap;function bT(e){let t=rm.get(e);return t||(t=new Kf(e),rm.set(e,t)),t}function Hr(e){let{locale:t}=zt(),n=v.useMemo(()=>bT(e),[e]);return v.useMemo(()=>new s3(t,n),[t,n])}function Wn(e){e=cg(e,$T);let{locale:t}=zt();return v.useMemo(()=>new za(t,e),[t,e])}function $T(e,t){if(e===t)return!0;let n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}let _c=new Map;function Yf(e){let{locale:t}=zt(),n=t+(e?Object.entries(e).sort((o,l)=>o[0]<l[0]?-1:1).join():"");if(_c.has(n))return _c.get(n);let a=new Intl.Collator(t,e);return _c.set(n,a),a}function xT(e){let t=Yf({usage:"search",...e}),n=v.useCallback((l,u)=>u.length===0?!0:(l=l.normalize("NFC"),u=u.normalize("NFC"),t.compare(l.slice(0,u.length),u)===0),[t]),a=v.useCallback((l,u)=>u.length===0?!0:(l=l.normalize("NFC"),u=u.normalize("NFC"),t.compare(l.slice(-u.length),u)===0),[t]),o=v.useCallback((l,u)=>{if(u.length===0)return!0;l=l.normalize("NFC"),u=u.normalize("NFC");let f=0,d=u.length;for(;f+d<=l.length;f++){let h=l.slice(f,f+d);if(t.compare(u,h)===0)return!0}return!1},[t]);return v.useMemo(()=>({startsWith:n,endsWith:a,contains:o}),[n,a,o])}function sf(e,t){let{elementType:n="button",isDisabled:a,onPress:o,onPressStart:l,onPressEnd:u,onPressChange:f,preventFocusOnPress:d,allowFocusWhenDisabled:h,onClick:m,href:x,target:y,rel:$,type:P="button"}=e,E;n==="button"?E={type:P,disabled:a}:E={role:"button",tabIndex:a?void 0:0,href:n==="a"&&a?void 0:x,target:n==="a"?y:void 0,type:n==="input"?P:void 0,disabled:n==="input"?a:void 0,"aria-disabled":!a||n==="input"?void 0:a,rel:n==="a"?$:void 0};let{pressProps:R,isPressed:k}=ra({onPressStart:l,onPressEnd:u,onPressChange:f,onPress:o,isDisabled:a,preventFocusOnPress:d,ref:t}),{focusableProps:O}=Wl(e,t);h&&(O.tabIndex=a?-1:O.tabIndex);let N=Ke(O,R,cr(e,{labelable:!0}));return{isPressed:k,buttonProps:Ke(E,N,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:F=>{m&&(m(F),console.warn("onClick is deprecated, please use onPress"))}})}}const qg=7e3;let Fo=null;function lf(e,t="assertive",n=qg){Fo||(Fo=new wT),Fo.announce(e,t,n)}function DT(e){Fo&&Fo.clear(e)}class wT{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",a=qg){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},a)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function Jl(e){return e&&e.__esModule?e.default:e}var us={},Zg={};Zg={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var Yg={};Yg={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var Jg={};Jg={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var Qg={};Qg={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Xg={};Xg={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var ey={};ey={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var ty={};ty={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var ny={};ny={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var ry={};ry={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var iy={};iy={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var ay={};ay={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var oy={};oy={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var sy={};sy={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var ly={};ly={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var uy={};uy={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var cy={};cy={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var fy={};fy={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var dy={};dy={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var hy={};hy={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var py={};py={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var my={};my={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var gy={};gy={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var yy={};yy={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var vy={};vy={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var by={};by={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var $y={};$y={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var xy={};xy={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var Dy={};Dy={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var wy={};wy={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var Py={};Py={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var Sy={};Sy={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var Ty={};Ty={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var _y={};_y={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选定 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选定今天,即 ${e.date}`};var Ey={};Ey={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};us={"ar-AE":Zg,"bg-BG":Yg,"cs-CZ":Jg,"da-DK":Qg,"de-DE":Xg,"el-GR":ey,"en-US":ty,"es-ES":ny,"et-EE":ry,"fi-FI":iy,"fr-FR":ay,"he-IL":oy,"hr-HR":sy,"hu-HU":ly,"it-IT":uy,"ja-JP":cy,"ko-KR":fy,"lt-LT":dy,"lv-LV":hy,"nb-NO":py,"nl-NL":my,"pl-PL":gy,"pt-BR":yy,"pt-PT":vy,"ro-RO":by,"ru-RU":$y,"sk-SK":xy,"sl-SI":Dy,"sr-SP":wy,"sv-SE":Py,"tr-TR":Sy,"uk-UA":Ty,"zh-CN":_y,"zh-TW":Ey};const Jf=new WeakMap;function Zo(e){return e?.calendar.identifier==="gregory"&&e.era==="BC"?"short":void 0}function PT(e){let t=Hr(Jl(us)),n,a;"highlightedRange"in e?{start:n,end:a}=e.highlightedRange||{}:n=a=e.value;let o=Wn({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Zo(n)||Zo(a),timeZone:e.timeZone}),l="anchorDate"in e?e.anchorDate:null;return v.useMemo(()=>{if(!l&&n&&a)if(ht(n,a)){let u=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=cf(o,t,n,a,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,a,l,e.timeZone,t,o])}function uf(e,t,n,a){let o=Hr(Jl(us)),l=Zo(e)||Zo(t),u=Wn({month:"long",year:"numeric",era:l,calendar:e.calendar.identifier,timeZone:n}),f=Wn({month:"long",year:"numeric",day:"numeric",era:l,calendar:e.calendar.identifier,timeZone:n});return v.useMemo(()=>{if(ht(e,ls(e))){if(ht(t,Qc(e)))return u.format(e.toDate(n));if(ht(t,Qc(t)))return a?cf(u,o,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))}return a?cf(f,o,e,t,n):f.formatRange(e.toDate(n),t.toDate(n))},[e,t,u,f,o,n,a])}function cf(e,t,n,a,o){let l=e.formatRangeToParts(n.toDate(o),a.toDate(o)),u=-1;for(let h=0;h<l.length;h++){let m=l[h];if(m.source==="shared"&&m.type==="literal")u=h;else if(m.source==="endRange")break}let f="",d="";for(let h=0;h<l.length;h++)h<u?f+=l[h].value:h>u&&(d+=l[h].value);return t.format("dateRange",{startDate:f,endDate:d})}function ST(e,t){let n=Hr(Jl(us)),a=cr(e),o=uf(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),l=uf(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Pp(()=>{t.isFocused||lf(l)},[l]);let u=PT(t);Pp(()=>{u&&lf(u,"polite",4e3)},[u]);let f=Wa([!!e.errorMessage,e.validationState]);Jf.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:f,selectedDateDescription:u});let[d,h]=v.useState(!1),m=e.isDisabled||t.isNextVisibleRangeInvalid();m&&d&&(h(!1),t.setFocused(!0));let[x,y]=v.useState(!1),$=e.isDisabled||t.isPreviousVisibleRangeInvalid();$&&x&&(y(!1),t.setFocused(!0));let P=as({id:e.id,"aria-label":[e["aria-label"],l].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Ke(a,P,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:m,onFocusChange:h},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:$,onFocusChange:y},errorMessageProps:{id:f},title:o}}function TT(e,t){return ST(e,t)}function _T(e,t){let{startDate:n=t.visibleRange.start,endDate:a=t.visibleRange.end}=e,{direction:o}=zt(),l=$=>{switch($.key){case"Enter":case" ":$.preventDefault(),t.selectFocusedDate();break;case"PageUp":$.preventDefault(),$.stopPropagation(),t.focusPreviousSection($.shiftKey);break;case"PageDown":$.preventDefault(),$.stopPropagation(),t.focusNextSection($.shiftKey);break;case"End":$.preventDefault(),$.stopPropagation(),t.focusSectionEnd();break;case"Home":$.preventDefault(),$.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":$.preventDefault(),$.stopPropagation(),o==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":$.preventDefault(),$.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":$.preventDefault(),$.stopPropagation(),o==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":$.preventDefault(),$.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&($.preventDefault(),t.setAnchorDate(null));break}},u=uf(n,a,t.timeZone,!0),{ariaLabel:f,ariaLabelledBy:d}=Jf.get(t),h=as({"aria-label":[f,u].filter(Boolean).join(", "),"aria-labelledby":d}),m=Wn({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:x}=zt(),y=v.useMemo(()=>{let $=Wo(Bf(t.timeZone),x);return[...new Array(7).keys()].map(P=>{let R=$.add({days:P}).toDate(t.timeZone);return m.format(R)})},[x,t.timeZone,m]);return{gridProps:Ke(h,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:l,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:y}}function ET(e,t,n){let{date:a,isDisabled:o}=e,{errorMessageId:l,selectedDateDescription:u}=Jf.get(t),f=Hr(Jl(us)),d=Wn({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Zo(a),timeZone:t.timeZone}),h=t.isSelected(a),m=t.isCellFocused(a);o=o||t.isCellDisabled(a);let x=t.isCellUnavailable(a),y=!o&&!x,$=t.validationState==="invalid"&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&a.compare(t.highlightedRange.start)>=0&&a.compare(t.highlightedRange.end)<=0:t.value&&ht(t.value,a));$&&(h=!0),a=cg(a,f3);let P=v.useMemo(()=>a.toDate(t.timeZone),[a,t.timeZone]),E=d3(a,t.timeZone),R=v.useMemo(()=>{let A="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(ht(a,t.value.start)||ht(a,t.value.end))&&(A=u+", "),A+=d.format(P),E?A=f.format(h?"todayDateSelected":"todayDate",{date:A}):h&&(A=f.format("dateSelected",{date:A})),t.minValue&&ht(a,t.minValue)?A+=", "+f.format("minimumDate"):t.maxValue&&ht(a,t.maxValue)&&(A+=", "+f.format("maximumDate")),A},[d,P,f,h,E,a,t,u]),k="";"anchorDate"in t&&m&&!t.isReadOnly&&y&&(t.anchorDate?k=f.format("finishRangeSelectionPrompt"):k=f.format("startRangeSelectionPrompt"));let O=Hl(k),N=v.useRef(!1),F=v.useRef(!1),H=v.useRef(null),{pressProps:ue,isPressed:ee}=ra({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!y||t.isReadOnly,onPressStart(A){if(t.isReadOnly){t.setFocusedDate(a);return}if("highlightedRange"in t&&!t.anchorDate&&(A.pointerType==="mouse"||A.pointerType==="touch")){if(t.highlightedRange&&!$){if(ht(a,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(a),t.setDragging(!0),F.current=!0;return}else if(ht(a,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(a),t.setDragging(!0),F.current=!0;return}}let pe=()=>{t.setDragging(!0),H.current=null,t.selectDate(a),t.setFocusedDate(a),N.current=!0};A.pointerType==="touch"?H.current=setTimeout(pe,200):pe()}},onPressEnd(){F.current=!1,N.current=!1,clearTimeout(H.current),H.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(a),t.setFocusedDate(a))},onPressUp(A){if(!t.isReadOnly&&("anchorDate"in t&&H.current&&(t.selectDate(a),t.setFocusedDate(a)),"anchorDate"in t))if(F.current)t.setAnchorDate(a);else if(t.anchorDate&&!N.current)t.selectDate(a),t.setFocusedDate(a);else if(A.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(a);let pe=a.add({days:1});t.isInvalid(pe)&&(pe=a.subtract({days:1})),t.isInvalid(pe)||t.setFocusedDate(pe)}else A.pointerType==="virtual"&&(t.selectDate(a),t.setFocusedDate(a))}}),w=null;o||(w=ht(a,t.focusedDate)?0:-1),v.useEffect(()=>{m&&n.current&&(Fr(n.current),wl()!=="pointer"&&document.activeElement===n.current&&$l(n.current,{containingElement:Ga(n.current)}))},[m,n]);let V=Wn({day:"numeric",timeZone:t.timeZone,calendar:a.calendar.identifier}),q=v.useMemo(()=>V.formatToParts(P).find(A=>A.type==="day").value,[V,P]);return{cellProps:{role:"gridcell","aria-disabled":!y||null,"aria-selected":h||null,"aria-invalid":$||null},buttonProps:Ke(ue,{onFocus(){o||t.setFocusedDate(a)},tabIndex:w,role:"button","aria-disabled":!y||null,"aria-label":R,"aria-invalid":$||null,"aria-describedby":[$?l:null,O["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(A){"highlightDate"in t&&(A.pointerType!=="touch"||t.isDragging)&&y&&t.highlightDate(a)},onPointerDown(A){"releasePointerCapture"in A.target&&A.target.releasePointerCapture(A.pointerId)},onContextMenu(A){A.preventDefault()}}),isPressed:ee,isFocused:m,isSelected:h,isDisabled:o,isUnavailable:x,isOutsideVisibleRange:a.compare(t.visibleRange.start)<0||a.compare(t.visibleRange.end)>0,isInvalid:$,formattedDate:q}}function RT(e,t,n){let{isDisabled:a=!1,isRequired:o=!1,isReadOnly:l=!1,value:u,name:f,children:d,"aria-label":h,"aria-labelledby":m,validationState:x="valid"}=e,y=F=>{F.stopPropagation(),t.setSelected(F.target.checked)},$=d!=null,P=h!=null||m!=null;!$&&!P&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:E,isPressed:R}=ra({isDisabled:a}),{focusableProps:k}=Wl(e,n),O=Ke(E,k),N=cr(e,{labelable:!0});return{inputProps:Ke(N,{"aria-invalid":x==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":l||void 0,"aria-required":o||void 0,onChange:y,disabled:a,...u==null?{}:{value:u},name:f,type:"checkbox",...O}),isSelected:t.isSelected,isPressed:R,isDisabled:a,isReadOnly:l}}function Ry(e){let{id:t,label:n,"aria-labelledby":a,"aria-label":o,labelElementType:l="label"}=e;t=Tn(t);let u=Tn(),f={};n?(a=a?`${u} ${a}`:u,f={id:u,htmlFor:l==="label"?t:void 0}):!a&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let d=as({id:t,"aria-label":o,"aria-labelledby":a});return{labelProps:f,fieldProps:d}}function Ql(e){let{description:t,errorMessage:n,validationState:a}=e,{labelProps:o,fieldProps:l}=Ry(e),u=Wa([!!t,!!n,a]),f=Wa([!!t,!!n,a]);return l=Ke(l,{"aria-describedby":[u,f,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:u},errorMessageProps:{id:f}}}function AT(e={}){let{isReadOnly:t}=e,[n,a]=mi(e.isSelected,e.defaultSelected||!1,e.onChange);function o(u){t||a(u)}function l(){t||a(!n)}return{isSelected:n,setSelected:o,toggle:l}}function CT(e,t,n){let{inputProps:a,isSelected:o,isPressed:l,isDisabled:u,isReadOnly:f}=RT(e,t,n),{isIndeterminate:d}=e;return v.useEffect(()=>{n.current&&(n.current.indeterminate=d)}),{inputProps:{...a,checked:o},isSelected:o,isPressed:l,isDisabled:u,isReadOnly:f}}const im={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Ay(e={}){let{style:t,isFocusable:n}=e,[a,o]=v.useState(!1),{focusWithinProps:l}=Xa({isDisabled:!n,onFocusWithinChange:f=>o(f)}),u=v.useMemo(()=>a?t:t?{...im,...t}:im,[a]);return{visuallyHiddenProps:{...l,style:u}}}function Cy(e){let{children:t,elementType:n="div",isFocusable:a,style:o,...l}=e,{visuallyHiddenProps:u}=Ay(e);return v.createElement(n,Ke(l,u),t)}function MT(e){return e&&e.__esModule?e.default:e}const am={top:"top",bottom:"top",left:"left",right:"left"},Il={top:"bottom",bottom:"top",left:"right",right:"left"},IT={top:"left",left:"top"},ff={top:"height",left:"width"},OT={width:"totalWidth",height:"totalHeight"},il={};let Oa=typeof window<"u"&&window.visualViewport;function LT(e){let t=0,n=0,a=0,o=0,l=0,u=0,f={};if(e.tagName==="BODY"){let m=document.documentElement;a=m.clientWidth,o=m.clientHeight;var d;t=(d=Oa?.width)!==null&&d!==void 0?d:a;var h;n=(h=Oa?.height)!==null&&h!==void 0?h:o,f.top=m.scrollTop||e.scrollTop,f.left=m.scrollLeft||e.scrollLeft}else({width:t,height:n,top:l,left:u}=ja(e)),f.top=e.scrollTop,f.left=e.scrollLeft,a=t,o=n;return{width:t,height:n,totalWidth:a,totalHeight:o,scroll:f,top:l,left:u}}function kT(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function om(e,t,n,a,o){let l=a.scroll[e],u=a[ff[e]],f=t-o-l,d=t+o-l+n;return f<0?-f:d>u?Math.max(u-d,-f):0}function FT(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function sm(e){if(il[e])return il[e];let[t,n]=e.split(" "),a=am[t]||"right",o=IT[a];am[n]||(n="center");let l=ff[a],u=ff[o];return il[e]={placement:t,crossPlacement:n,axis:a,crossAxis:o,size:l,crossSize:u},il[e]}function Ec(e,t,n,a,o,l,u,f,d,h){let{placement:m,crossPlacement:x,axis:y,crossAxis:$,size:P,crossSize:E}=a,R={};R[$]=e[$],x==="center"?R[$]+=(e[E]-n[E])/2:x!==$&&(R[$]+=e[E]-n[E]),R[$]+=l;const k=e[$]-n[E]+d+h,O=e[$]+e[E]-d-h;if(R[$]=jc(R[$],k,O),m===y){const N=f?u[P]:t[OT[P]];R[Il[y]]=Math.floor(N-e[y]+o)}else R[y]=Math.floor(e[y]+e[P]+o);return R}function NT(e,t,n,a,o,l){return e.top!=null?Math.max(0,t.height+t.top+t.scroll.top-(n.top+e.top)-(o.top+o.bottom+l)):Math.max(0,a.top+n.top-(t.top+t.scroll.top)-(o.top+o.bottom+l))}function lm(e,t,n,a,o,l){let{placement:u,axis:f,size:d}=l;return u===f?Math.max(0,n[f]-e[f]-e.scroll[f]+t[f]-a[f]-a[Il[f]]-o):Math.max(0,e[d]+e[f]+e.scroll[f]-t[f]-n[f]-n[d]-a[f]-a[Il[f]]-o)}function KT(e,t,n,a,o,l,u,f,d,h,m,x,y,$,P){let E=sm(e),{size:R,crossAxis:k,crossSize:O,placement:N,crossPlacement:F}=E,H=Ec(t,f,n,E,h,m,d,x,$,P),ue=h,ee=lm(f,d,t,o,l+h,E);if(u&&a[R]>ee){let te=sm(`${Il[N]} ${F}`),Y=Ec(t,f,n,te,h,m,d,x,$,P);lm(f,d,t,o,l+h,te)>ee&&(E=te,H=Y,ue=h)}let w=om(k,H[k],n[O],f,l);H[k]+=w;let V=NT(H,f,d,t,o,l);y&&y<V&&(V=y),n.height=Math.min(n.height,V),H=Ec(t,f,n,E,ue,m,d,x,$,P),w=om(k,H[k],n[O],f,l),H[k]+=w;let q={},A=t[k]+.5*t[O]-n[k];const pe=$/2+P,U=n[O]-$/2-P,B=t[k]-n[k]+$/2,de=t[k]+t[O]-n[k]-$/2,Q=jc(A,B,de);return q[k]=jc(Q,pe,U),{position:H,maxHeight:V,arrowOffsetLeft:q.left,arrowOffsetTop:q.top,placement:E.placement}}function BT(e){let{placement:t,targetNode:n,overlayNode:a,scrollNode:o,padding:l,shouldFlip:u,boundaryElement:f,offset:d,crossOffset:h,maxHeight:m,arrowSize:x,arrowBoundaryOffset:y=0}=e,$=a instanceof HTMLElement?UT(a):document.documentElement,P=$===document.documentElement;const E=window.getComputedStyle($).position;let R=!!E&&E!=="static",k=P?ja(n):um(n,$);if(!P){let{marginTop:ee,marginLeft:w}=window.getComputedStyle(n);k.top+=parseInt(ee,10)||0,k.left+=parseInt(w,10)||0}let O=ja(a),N=FT(a);O.width+=N.left+N.right,O.height+=N.top+N.bottom;let F=kT(o),H=LT(f),ue=f.tagName==="BODY"?ja($):um($,f);return KT(t,k,O,F,N,l,u,H,ue,d,h,R,m,x,y)}function ja(e){let{top:t,left:n,width:a,height:o}=e.getBoundingClientRect(),{scrollTop:l,scrollLeft:u,clientTop:f,clientLeft:d}=document.documentElement;return{top:t+l-f,left:n+u-d,width:a,height:o}}function um(e,t){let n=window.getComputedStyle(e),a;if(n.position==="fixed"){let{top:o,left:l,width:u,height:f}=e.getBoundingClientRect();a={top:o,left:l,width:u,height:f}}else{a=ja(e);let o=ja(t),l=window.getComputedStyle(t);o.top+=(parseInt(l.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(l.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=o.top,a.left-=o.left}return a.top-=parseInt(n.marginTop,10)||0,a.left-=parseInt(n.marginLeft,10)||0,a}function UT(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!cm(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!cm(t);)t=t.parentElement;return t||document.documentElement}function cm(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const My=new WeakMap;function zT(e){let{triggerRef:t,isOpen:n,onClose:a}=e;v.useEffect(()=>{if(!n||a===null)return;let o=l=>{let u=l.target;if(!t.current||u instanceof Node&&!u.contains(t.current))return;let f=a||My.get(t.current);f&&f()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,a,t])}let xn=typeof window<"u"&&window.visualViewport;function Iy(e){let{direction:t}=zt(),{arrowSize:n=0,targetRef:a,overlayRef:o,scrollRef:l=o,placement:u="bottom",containerPadding:f=12,shouldFlip:d=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:m=0,crossOffset:x=0,shouldUpdatePosition:y=!0,isOpen:$=!0,onClose:P,maxHeight:E,arrowBoundaryOffset:R=0}=e,[k,O]=v.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),N=[y,u,o.current,a.current,l.current,f,d,h,m,x,$,t,E,R,n],F=v.useCallback(()=>{if(y===!1||!$||!o.current||!a.current||!l.current||!h)return;let ee=BT({placement:HT(u,t),overlayNode:o.current,targetNode:a.current,scrollNode:l.current,padding:f,shouldFlip:d,boundaryElement:h,offset:m,crossOffset:x,maxHeight:E,arrowSize:n,arrowBoundaryOffset:R});Object.keys(ee.position).forEach(w=>o.current.style[w]=ee.position[w]+"px"),o.current.style.maxHeight=ee.maxHeight!=null?ee.maxHeight+"px":void 0,O(ee)},N);at(F,N),jT(F),gS({ref:o,onResize:F});let H=v.useRef(!1);at(()=>{let ee,w=()=>{H.current=!0,clearTimeout(ee),ee=setTimeout(()=>{H.current=!1},500),F()};return xn?.addEventListener("resize",w),xn?.addEventListener("scroll",w),()=>{xn?.removeEventListener("resize",w),xn?.removeEventListener("scroll",w)}},[F]);let ue=v.useCallback(()=>{H.current||P()},[P,H]);return zT({triggerRef:a,isOpen:$,onClose:P&&ue}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...k.position,maxHeight:k.maxHeight}},placement:k.placement,arrowProps:{style:{left:k.arrowOffsetLeft,top:k.arrowOffsetTop}},updatePosition:F}}function jT(e){at(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function HT(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Or=[];function Qf(e,t){let{onClose:n,shouldCloseOnBlur:a,isOpen:o,isDismissable:l=!1,isKeyboardDismissDisabled:u=!1,shouldCloseOnInteractOutside:f}=e;v.useEffect(()=>(o&&Or.push(t),()=>{let P=Or.indexOf(t);P>=0&&Or.splice(P,1)}),[o,t]);let d=()=>{Or[Or.length-1]===t&&n&&n()},h=P=>{(!f||f(P.target))&&Or[Or.length-1]===t&&(P.stopPropagation(),P.preventDefault())},m=P=>{(!f||f(P.target))&&(Or[Or.length-1]===t&&(P.stopPropagation(),P.preventDefault()),d())},x=P=>{P.key==="Escape"&&!u&&(P.stopPropagation(),P.preventDefault(),d())};zS({ref:t,onInteractOutside:l?m:null,onInteractOutsideStart:h});let{focusWithinProps:y}=Xa({isDisabled:!a,onBlurWithin:P=>{P.relatedTarget&&JS(P.relatedTarget)||(!f||f(P.relatedTarget))&&n()}}),$=P=>{P.target===P.currentTarget&&P.preventDefault()};return{overlayProps:{onKeyDown:x,...y},underlayProps:{onPointerDown:$}}}function Oy(e,t,n){let{type:a}=e,{isOpen:o}=t;v.useEffect(()=>{n&&n.current&&My.set(n.current,t.close)});let l;a==="menu"?l=!0:a==="listbox"&&(l="listbox");let u=Tn();return{triggerProps:{"aria-haspopup":l,"aria-expanded":o,"aria-controls":o?u:null,onPress:t.toggle},overlayProps:{id:u}}}const Rc=typeof window<"u"&&window.visualViewport,VT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let al=0,Ac;function WT(e={}){let{isDisabled:t}=e;at(()=>{if(!t)return al++,al===1&&(os()?Ac=qT():Ac=GT()),()=>{al--,al===0&&Ac()}},[t])}function GT(){return Ho(No(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),No(document.documentElement,"overflow","hidden"))}function qT(){let e,t=0,n=x=>{e=Ga(x.target),!(e===document.documentElement&&e===document.body)&&(t=x.changedTouches[0].pageY)},a=x=>{if(!e||e===document.documentElement||e===document.body){x.preventDefault();return}let y=x.changedTouches[0].pageY,$=e.scrollTop,P=e.scrollHeight-e.clientHeight;P!==0&&(($<=0&&y>t||$>=P&&y<t)&&x.preventDefault(),t=y)},o=x=>{let y=x.target;dm(y)&&y!==document.activeElement&&(x.preventDefault(),y.style.transform="translateY(-2000px)",y.focus(),requestAnimationFrame(()=>{y.style.transform=""}))},l=x=>{let y=x.target;dm(y)&&(y.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{y.style.transform="",Rc&&(Rc.height<window.innerHeight?requestAnimationFrame(()=>{fm(y)}):Rc.addEventListener("resize",()=>fm(y),{once:!0}))}))},u=()=>{window.scrollTo(0,0)},f=window.pageXOffset,d=window.pageYOffset,h=Ho(No(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),No(document.documentElement,"overflow","hidden"),No(document.body,"marginTop",`-${d}px`));window.scrollTo(0,0);let m=Ho(_o(document,"touchstart",n,{passive:!1,capture:!0}),_o(document,"touchmove",a,{passive:!1,capture:!0}),_o(document,"touchend",o,{passive:!1,capture:!0}),_o(document,"focus",l,!0),_o(window,"scroll",u));return()=>{h(),m(),window.scrollTo(f,d)}}function No(e,t,n){let a=e.style[t];return e.style[t]=n,()=>{e.style[t]=a}}function _o(e,t,n,a){return e.addEventListener(t,n,a),()=>{e.removeEventListener(t,n,a)}}function fm(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Ga(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let a=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>a+e.clientHeight&&(n.scrollTop+=o-a)}e=n.parentElement}}function dm(e){return e instanceof HTMLInputElement&&!VT.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Ol=v.createContext(null);function ZT(e){let{children:t}=e,n=v.useContext(Ol),[a,o]=v.useState(0),l=v.useMemo(()=>({parent:n,modalCount:a,addModal(){o(u=>u+1),n&&n.addModal()},removeModal(){o(u=>u-1),n&&n.removeModal()}}),[n,a]);return v.createElement(Ol.Provider,{value:l},t)}function YT(){let e=v.useContext(Ol);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function JT(e){let{modalProviderProps:t}=YT();return v.createElement("div",{"data-overlay-container":!0,...e,...t})}function QT(e){return v.createElement(ZT,null,v.createElement(JT,e))}function Ly(e){let t=Ja(),{portalContainer:n=t?null:document.body,...a}=e;if(v.useEffect(()=>{if(n?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=v.createElement(QT,a);return Tf.createPortal(o,n)}function ky(e){let t=v.useContext(Ol);if(!t)throw new Error("Modal is not contained within a provider");return v.useEffect(()=>{if(!(e?.isDisabled||!t||!t.parent))return t.parent.addModal(),()=>{t&&t.parent&&t.parent.removeModal()}},[t,t.parent,e?.isDisabled]),{modalProps:{"data-ismodal":!e?.isDisabled}}}var Fy={},Ny={};Ny={dismiss:"تجاهل"};var Ky={};Ky={dismiss:"Отхвърляне"};var By={};By={dismiss:"Odstranit"};var Uy={};Uy={dismiss:"Luk"};var zy={};zy={dismiss:"Schließen"};var jy={};jy={dismiss:"Απόρριψη"};var Hy={};Hy={dismiss:"Dismiss"};var Vy={};Vy={dismiss:"Descartar"};var Wy={};Wy={dismiss:"Lõpeta"};var Gy={};Gy={dismiss:"Hylkää"};var qy={};qy={dismiss:"Rejeter"};var Zy={};Zy={dismiss:"התעלם"};var Yy={};Yy={dismiss:"Odbaci"};var Jy={};Jy={dismiss:"Elutasítás"};var Qy={};Qy={dismiss:"Ignora"};var Xy={};Xy={dismiss:"閉じる"};var e0={};e0={dismiss:"무시"};var t0={};t0={dismiss:"Atmesti"};var n0={};n0={dismiss:"Nerādīt"};var r0={};r0={dismiss:"Lukk"};var i0={};i0={dismiss:"Negeren"};var a0={};a0={dismiss:"Zignoruj"};var o0={};o0={dismiss:"Descartar"};var s0={};s0={dismiss:"Dispensar"};var l0={};l0={dismiss:"Revocare"};var u0={};u0={dismiss:"Пропустить"};var c0={};c0={dismiss:"Zrušiť"};var f0={};f0={dismiss:"Opusti"};var d0={};d0={dismiss:"Odbaci"};var h0={};h0={dismiss:"Avvisa"};var p0={};p0={dismiss:"Kapat"};var m0={};m0={dismiss:"Скасувати"};var g0={};g0={dismiss:"取消"};var y0={};y0={dismiss:"關閉"};Fy={"ar-AE":Ny,"bg-BG":Ky,"cs-CZ":By,"da-DK":Uy,"de-DE":zy,"el-GR":jy,"en-US":Hy,"es-ES":Vy,"et-EE":Wy,"fi-FI":Gy,"fr-FR":qy,"he-IL":Zy,"hr-HR":Yy,"hu-HU":Jy,"it-IT":Qy,"ja-JP":Xy,"ko-KR":e0,"lt-LT":t0,"lv-LV":n0,"nb-NO":r0,"nl-NL":i0,"pl-PL":a0,"pt-BR":o0,"pt-PT":s0,"ro-RO":l0,"ru-RU":u0,"sk-SK":c0,"sl-SI":f0,"sr-SP":d0,"sv-SE":h0,"tr-TR":p0,"uk-UA":m0,"zh-CN":g0,"zh-TW":y0};function Yo(e){let{onDismiss:t,...n}=e,a=Hr(MT(Fy)),o=as(n,a.format("dismiss")),l=()=>{t&&t()};return v.createElement(Cy,null,v.createElement("button",{...o,tabIndex:-1,onClick:l}))}let Eo=new WeakMap,Dn=[];function XT(e,t=document.body){let n=new Set(e),a=new Set,o=d=>{for(let y of d.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(y);let h=y=>{if(n.has(y)||a.has(y.parentElement)&&y.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let $ of n)if(y.contains($))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},m=document.createTreeWalker(d,NodeFilter.SHOW_ELEMENT,{acceptNode:h}),x=h(d);if(x===NodeFilter.FILTER_ACCEPT&&l(d),x!==NodeFilter.FILTER_REJECT){let y=m.nextNode();for(;y!=null;)l(y),y=m.nextNode()}},l=d=>{var h;let m=(h=Eo.get(d))!==null&&h!==void 0?h:0;d.getAttribute("aria-hidden")==="true"&&m===0||(m===0&&d.setAttribute("aria-hidden","true"),a.add(d),Eo.set(d,m+1))};Dn.length&&Dn[Dn.length-1].disconnect(),o(t);let u=new MutationObserver(d=>{for(let h of d)if(!(h.type!=="childList"||h.addedNodes.length===0)&&![...n,...a].some(m=>m.contains(h.target))){for(let m of h.removedNodes)m instanceof Element&&(n.delete(m),a.delete(m));for(let m of h.addedNodes)(m instanceof HTMLElement||m instanceof SVGElement)&&(m.dataset.liveAnnouncer==="true"||m.dataset.reactAriaTopLayer==="true")?n.add(m):m instanceof Element&&o(m)}});u.observe(t,{childList:!0,subtree:!0});let f={observe(){u.observe(t,{childList:!0,subtree:!0})},disconnect(){u.disconnect()}};return Dn.push(f),()=>{u.disconnect();for(let d of a){let h=Eo.get(d);h===1?(d.removeAttribute("aria-hidden"),Eo.delete(d)):Eo.set(d,h-1)}f===Dn[Dn.length-1]?(Dn.pop(),Dn.length&&Dn[Dn.length-1].observe()):Dn.splice(Dn.indexOf(f),1)}}function v0(e,t){let{triggerRef:n,popoverRef:a,isNonModal:o,isKeyboardDismissDisabled:l,...u}=e,{overlayProps:f,underlayProps:d}=Qf({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:l},a),{overlayProps:h,arrowProps:m,placement:x}=Iy({...u,targetRef:n,overlayRef:a,isOpen:t.isOpen,onClose:null});return WT({isDisabled:o}),at(()=>{if(t.isOpen&&!o&&a.current)return XT([a.current])},[o,t.isOpen,a]),{popoverProps:Ke(f,h),arrowProps:m,underlayProps:d,placement:x}}const df=v.createContext(null);function b0(e){let t=Ja(),{portalContainer:n=t?null:document.body}=e,[a,o]=v.useState(!1),l=v.useMemo(()=>({contain:a,setContain:o}),[a,o]);if(!n)return null;let u;return e.disableFocusManagement?u=v.createElement(df.Provider,{value:l},e.children):u=v.createElement(df.Provider,{value:l},v.createElement(If,{restoreFocus:!0,contain:a},e.children)),Tf.createPortal(u,n)}function e_(){let e=v.useContext(df),t=e?.setContain;at(()=>{t?.(!0)},[t])}function $0(e){return $S()?e.altKey:e.ctrlKey}function Fa(e){return Qa()?e.metaKey:e.ctrlKey}const t_=1e3;function x0(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:a}=e,o=v.useRef({search:"",timeout:null}).current,l=u=>{let f=n_(u.key);if(!f||u.ctrlKey||u.metaKey||!u.currentTarget.contains(u.target))return;f===" "&&o.search.trim().length>0&&(u.preventDefault(),"continuePropagation"in u||u.stopPropagation()),o.search+=f;let d=t.getKeyForSearch(o.search,n.focusedKey);d==null&&(d=t.getKeyForSearch(o.search)),d!=null&&(n.setFocusedKey(d),a&&a(d)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},t_)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?l:null}}}function n_(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function r_(e){let{selectionManager:t,keyboardDelegate:n,ref:a,autoFocus:o=!1,shouldFocusWrap:l=!1,disallowEmptySelection:u=!1,disallowSelectAll:f=!1,selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:m,allowsTabNavigation:x=!1,isVirtualized:y,scrollRef:$=a}=e,{direction:P}=zt(),E=w=>{if(w.altKey&&w.key==="Tab"&&w.preventDefault(),!a.current.contains(w.target))return;const V=(Y,me)=>{Y!=null&&(t.setFocusedKey(Y,me),w.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):d&&!$0(w)&&t.replaceSelection(Y))};switch(w.key){case"ArrowDown":if(n.getKeyBelow){var q,A;w.preventDefault();let Y=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(q=n.getFirstKey)===null||q===void 0?void 0:q.call(n);Y==null&&l&&(Y=(A=n.getFirstKey)===null||A===void 0?void 0:A.call(n,t.focusedKey)),V(Y)}break;case"ArrowUp":if(n.getKeyAbove){var pe,U;w.preventDefault();let Y=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(pe=n.getLastKey)===null||pe===void 0?void 0:pe.call(n);Y==null&&l&&(Y=(U=n.getLastKey)===null||U===void 0?void 0:U.call(n,t.focusedKey)),V(Y)}break;case"ArrowLeft":if(n.getKeyLeftOf){var B,de;w.preventDefault();let Y=n.getKeyLeftOf(t.focusedKey);Y==null&&l&&(Y=P==="rtl"?(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n,t.focusedKey):(de=n.getLastKey)===null||de===void 0?void 0:de.call(n,t.focusedKey)),V(Y,P==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var Q,te;w.preventDefault();let Y=n.getKeyRightOf(t.focusedKey);Y==null&&l&&(Y=P==="rtl"?(Q=n.getLastKey)===null||Q===void 0?void 0:Q.call(n,t.focusedKey):(te=n.getFirstKey)===null||te===void 0?void 0:te.call(n,t.focusedKey)),V(Y,P==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){w.preventDefault();let Y=n.getFirstKey(t.focusedKey,Fa(w));t.setFocusedKey(Y),Fa(w)&&w.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):d&&t.replaceSelection(Y)}break;case"End":if(n.getLastKey){w.preventDefault();let Y=n.getLastKey(t.focusedKey,Fa(w));t.setFocusedKey(Y),Fa(w)&&w.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):d&&t.replaceSelection(Y)}break;case"PageDown":if(n.getKeyPageBelow){w.preventDefault();let Y=n.getKeyPageBelow(t.focusedKey);V(Y)}break;case"PageUp":if(n.getKeyPageAbove){w.preventDefault();let Y=n.getKeyPageAbove(t.focusedKey);V(Y)}break;case"a":Fa(w)&&t.selectionMode==="multiple"&&f!==!0&&(w.preventDefault(),t.selectAll());break;case"Escape":w.preventDefault(),u||t.clearSelection();break;case"Tab":if(!x){if(w.shiftKey)a.current.focus();else{let Y=en(a.current,{tabbable:!0}),me,ie;do ie=Y.lastChild(),ie&&(me=ie);while(ie);me&&!me.contains(document.activeElement)&&Fr(me)}break}}},R=v.useRef({top:0,left:0});Vc($,"scroll",y?null:()=>{R.current={top:$.current.scrollTop,left:$.current.scrollLeft}});let k=w=>{if(t.isFocused){w.currentTarget.contains(w.target)||t.setFocused(!1);return}if(w.currentTarget.contains(w.target)){if(t.setFocused(!0),t.focusedKey==null){let A=U=>{U!=null&&(t.setFocusedKey(U),d&&t.replaceSelection(U))},pe=w.relatedTarget;var V,q;pe&&w.currentTarget.compareDocumentPosition(pe)&Node.DOCUMENT_POSITION_FOLLOWING?A((V=t.lastSelectedKey)!==null&&V!==void 0?V:n.getLastKey()):A((q=t.firstSelectedKey)!==null&&q!==void 0?q:n.getFirstKey())}else y||($.current.scrollTop=R.current.top,$.current.scrollLeft=R.current.left);if(!y&&t.focusedKey!=null){let A=$.current.querySelector(`[data-key="${t.focusedKey}"]`);A&&(Fr(A),wl()==="keyboard"&&$l(A,{containingElement:a.current}))}}},O=w=>{w.currentTarget.contains(w.relatedTarget)||t.setFocused(!1)};const N=v.useRef(o);v.useEffect(()=>{if(N.current){let w=null;o==="first"&&(w=n.getFirstKey()),o==="last"&&(w=n.getLastKey());let V=t.selectedKeys;V.size&&(w=V.values().next().value),t.setFocused(!0),t.setFocusedKey(w),w==null&&!m&&Qi(a.current)}N.current=!1},[]);let F=v.useRef(t.focusedKey);v.useEffect(()=>{let w=wl();if(t.isFocused&&t.focusedKey!=null&&$?.current){let V=$.current.querySelector(`[data-key="${t.focusedKey}"]`);V&&w==="keyboard"&&(y||ug($.current,V),$l(V,{containingElement:a.current}))}t.isFocused&&t.focusedKey==null&&F.current!=null&&Qi(a.current),F.current=t.focusedKey},[y,$,t.focusedKey,t.isFocused,a]);let H={onKeyDown:E,onFocus:k,onBlur:O,onMouseDown(w){$.current===w.target&&w.preventDefault()}},{typeSelectProps:ue}=x0({keyboardDelegate:n,selectionManager:t});h||(H=Ke(ue,H));let ee;return m||(ee=t.focusedKey==null?0:-1),{collectionProps:{...H,tabIndex:ee}}}function i_(e){let{selectionManager:t,key:n,ref:a,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:u,isDisabled:f,onAction:d,allowsDifferentPressOrigin:h}=e,m=A=>{if(A.pointerType==="keyboard"&&$0(A))t.toggleSelection(n);else{if(t.selectionMode==="none")return;t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):A&&A.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||A&&(Fa(A)||A.pointerType==="touch"||A.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};v.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!l&&(u?u():document.activeElement!==a.current&&Qi(a.current))},[a,n,t.focusedKey,t.childFocusStrategy,t.isFocused,l]),f=f||t.isDisabled(n);let x={};!l&&!f?x={tabIndex:n===t.focusedKey?0:-1,onFocus(A){A.target===a.current&&t.setFocusedKey(n)}}:f&&(x.onMouseDown=A=>{A.preventDefault()});let y=!f&&t.canSelectItem(n),$=d&&!f,P=$&&(t.selectionBehavior==="replace"?!y:t.isEmpty),E=$&&y&&t.selectionBehavior==="replace",R=P||E,k=v.useRef(null),O=R&&y,N=v.useRef(!1),F=v.useRef(!1),H={};o?(H.onPressStart=A=>{k.current=A.pointerType,N.current=O,A.pointerType==="keyboard"&&(!R||pm())&&m(A)},h?(H.onPressUp=A=>{A.pointerType!=="keyboard"&&m(A)},H.onPress=P?()=>d():null):H.onPress=A=>{if(P||E&&A.pointerType!=="mouse"){if(A.pointerType==="keyboard"&&!hm())return;d()}else A.pointerType!=="keyboard"&&m(A)}):(H.onPressStart=A=>{k.current=A.pointerType,N.current=O,F.current=P,(A.pointerType==="mouse"&&!P||A.pointerType==="keyboard"&&(!d||pm()))&&m(A)},H.onPress=A=>{(A.pointerType==="touch"||A.pointerType==="pen"||A.pointerType==="virtual"||A.pointerType==="keyboard"&&R&&hm()||A.pointerType==="mouse"&&F.current)&&(R?d():m(A))}),x["data-key"]=n,H.preventFocusOnPress=l;let{pressProps:ue,isPressed:ee}=ra(H),w=E?A=>{k.current==="mouse"&&(A.stopPropagation(),A.preventDefault(),d())}:void 0,{longPressProps:V}=mg({isDisabled:!O,onLongPress(A){A.pointerType==="touch"&&(m(A),t.setSelectionBehavior("toggle"))}});return{itemProps:Ke(x,y||P?ue:{},O?V:{},{onDoubleClick:w,onDragStartCapture:A=>{k.current==="touch"&&N.current&&A.preventDefault()}}),isPressed:ee,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:f,allowsSelection:y,hasAction:R}}function hm(){let e=window.event;return e?.key==="Enter"}function pm(){let e=window.event;return e?.key===" "||e?.code==="Space"}class D0{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,a){let o=this.getItem(t);if(!o)return null;let l=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&a(l,o.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${t}"]`)}getKeyPageAbove(t){let n=this.ref.current,a=this.getItem(t);if(!a)return null;if(!bl(n))return this.getFirstKey();let o=n.getBoundingClientRect(),l=a.getBoundingClientRect();if(this.orientation==="horizontal"){let u=o.x-n.scrollLeft,f=Math.max(0,l.x-u+l.width-o.width);for(;a&&l.x-u>f;)t=this.getKeyAbove(t),a=t==null?null:this.getItem(t),l=a?.getBoundingClientRect()}else{let u=o.y-n.scrollTop,f=Math.max(0,l.y-u+l.height-o.height);for(;a&&l.y-u>f;)t=this.getKeyAbove(t),a=t==null?null:this.getItem(t),l=a?.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,a=this.getItem(t);if(!a)return null;if(!bl(n))return this.getLastKey();let o=n.getBoundingClientRect(),l=a.getBoundingClientRect();if(this.orientation==="horizontal"){let u=o.x-n.scrollLeft,f=Math.min(n.scrollWidth,l.x-u-l.width+o.width);for(;a&&l.x-u<f;)t=this.getKeyBelow(t),a=t==null?null:this.getItem(t),l=a?.getBoundingClientRect()}else{let u=o.y-n.scrollTop,f=Math.min(n.scrollHeight,l.y-u-l.height+o.height);for(;a&&l.y-u<f;)t=this.getKeyBelow(t),a=t==null?null:this.getItem(t),l=a?.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let a=this.collection,o=n||this.getFirstKey();for(;o!=null;){let l=a.getItem(o),u=l.textValue.slice(0,t.length);if(l.textValue&&this.collator.compare(u,t)===0)return o;o=this.getKeyBelow(o)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.disabledKeys=n.disabledKeys||new Set,this.orientation=n.orientation,this.direction=n.direction,this.layout=n.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function a_(e){let{selectionManager:t,collection:n,disabledKeys:a,ref:o,keyboardDelegate:l,autoFocus:u,shouldFocusWrap:f,isVirtualized:d,disallowEmptySelection:h,selectOnFocus:m=t.selectionBehavior==="replace",disallowTypeAhead:x,shouldUseVirtualFocus:y,allowsTabNavigation:$}=e,P=Yf({usage:"search",sensitivity:"base"}),E=t.disabledBehavior,R=v.useMemo(()=>l||new D0(n,E==="selection"?new Set:a,o,P),[l,n,a,o,P,E]),{collectionProps:k}=r_({ref:o,selectionManager:t,keyboardDelegate:R,autoFocus:u,shouldFocusWrap:f,disallowEmptySelection:h,selectOnFocus:m,disallowTypeAhead:x,shouldUseVirtualFocus:y,allowsTabNavigation:$,isVirtualized:d,scrollRef:o});return{listProps:k}}class o_{build(t,n){return this.context=n,mm(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:a}=t;if(typeof n=="function"){if(!a)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];v.Children.forEach(n,u=>{o.push(u)});let l=0;for(let u of o){let f=this.getFullNode({element:u,index:l},{});for(let d of f)l++,yield d}}}getKey(t,n,a,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let l=n.value;if(l!=null){var u;let f=(u=l.key)!==null&&u!==void 0?u:l.id;if(f==null)throw new Error("No key found for item");return f}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,a,o){let l=t.element;if(!l&&t.value&&n&&n.renderer){let d=this.cache.get(t.value);if(d&&(!d.shouldInvalidate||!d.shouldInvalidate(this.context))){d.index=t.index,d.parentKey=o?o.key:null,yield d;return}l=n.renderer(t.value)}if(v.isValidElement(l)){let d=l.type;if(typeof d!="function"&&typeof d.getCollectionNode!="function"){let y=typeof l.type=="function"?l.type.name:l.type;throw new Error(`Unknown element <${y}> in collection.`)}let h=d.getCollectionNode(l.props,this.context),m=t.index,x=h.next();for(;!x.done&&x.value;){let y=x.value;t.index=m;let $=y.key;$||($=y.element?null:this.getKey(l,t,n,a));let E=[...this.getFullNode({...y,key:$,index:m,wrapper:s_(t.wrapper,y.wrapper)},this.getChildState(n,y),a?`${a}${l.key}`:l.key,o)];for(let R of E){if(R.value=y.value||t.value,R.value&&this.cache.set(R.value,R),t.type&&R.type!==t.type)throw new Error(`Unsupported type <${Cc(R.type)}> in <${Cc(o.type)}>. Only <${Cc(t.type)}> is supported.`);m++,yield R}x=h.next(E)}return}if(t.key==null)return;let u=this,f={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:mm(function*(){if(!t.hasChildNodes)return;let d=0;for(let h of t.childNodes()){h.key!=null&&(h.key=`${f.key}${h.key}`),h.index=d;let m=u.getFullNode(h,u.getChildState(n,h),f.key,f);for(let x of m)d++,yield x}})};yield f}constructor(){this.cache=new WeakMap}}function mm(e){let t=[],n=null;return{*[Symbol.iterator](){for(let a of t)yield a;n||(n=e());for(let a of n)t.push(a),yield a}}}function s_(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Cc(e){return e[0].toUpperCase()+e.slice(1)}function l_(e,t,n){let a=v.useMemo(()=>new o_,[]),{children:o,items:l,collection:u}=e;return v.useMemo(()=>{if(u)return u;let d=a.build({children:o,items:l},n);return t(d)},[a,o,l,u,n,t])}function w0(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function u_(e){return c_(e,0)}function c_(e,t){if(t<0)return;let n=0;for(let a of e){if(n===t)return a;n++}}function Mc(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let a=gm(e,t),o=gm(e,n),l=a.slice(0,o.length).findIndex((u,f)=>u!==o[f]);return l!==-1?(t=a[l],n=o[l],t.index-n.index):-1}function gm(e,t){let n=[];for(;t?.parentKey!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const ym=new WeakMap;function f_(e){let t=ym.get(e);if(t!=null)return t;t=0;let n=a=>{for(let o of a)o.type==="section"?n(w0(o,e)):t++};return n(e),ym.set(e,t),t}const Xf=new WeakMap;function d_(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function h_(e,t){let n=Xf.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${d_(t)}`}function p_(e,t,n){let a=cr(e,{labelable:!0}),{listProps:o}=a_({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys}),{focusWithinProps:l}=Xa({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),u=Tn(e.id);Xf.set(t,{id:u,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction});let{labelProps:f,fieldProps:d}=Ry({...e,id:u,labelElementType:"span"});return{labelProps:f,listBoxProps:Ke(a,l,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Ke(d,o)})}}function m_(e,t,n){let{key:a}=e,o=Xf.get(t);var l;let u=(l=e.isDisabled)!==null&&l!==void 0?l:t.disabledKeys.has(a);var f;let d=(f=e.isSelected)!==null&&f!==void 0?f:t.selectionManager.isSelected(a);var h;let m=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:o?.shouldSelectOnPressUp;var x;let y=(x=e.shouldFocusOnHover)!==null&&x!==void 0?x:o?.shouldFocusOnHover;var $;let P=($=e.shouldUseVirtualFocus)!==null&&$!==void 0?$:o?.shouldUseVirtualFocus;var E;let R=(E=e.isVirtualized)!==null&&E!==void 0?E:o?.isVirtualized,k=Wa(),O=Wa(),N={role:"option","aria-disabled":u||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?d:void 0};if(Qa()&&xS()||(N["aria-label"]=e["aria-label"],N["aria-labelledby"]=k,N["aria-describedby"]=O),R){var F;let A=Number((F=t.collection.getItem(a))===null||F===void 0?void 0:F.index);N["aria-posinset"]=Number.isNaN(A)?void 0:A+1,N["aria-setsize"]=f_(t.collection)}let{itemProps:H,isPressed:ue,isFocused:ee,hasAction:w,allowsSelection:V}=i_({selectionManager:t.selectionManager,key:a,ref:n,shouldSelectOnPressUp:m,allowsDifferentPressOrigin:m&&y,isVirtualized:R,shouldUseVirtualFocus:P,isDisabled:u,onAction:o?.onAction?()=>{var A;return o==null||(A=o.onAction)===null||A===void 0?void 0:A.call(o,a)}:void 0}),{hoverProps:q}=US({isDisabled:u||!y,onHoverStart(){Dl()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}});return{optionProps:{...N,...Ke(H,q),id:h_(t,a)},labelProps:{id:k},descriptionProps:{id:O},isFocused:ee,isFocusVisible:ee&&Dl(),isSelected:d,isDisabled:u,isPressed:ue,allowsSelection:V,hasAction:w}}function g_(e){return e&&e.__esModule?e.default:e}var P0={},S0={};S0={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var T0={};T0={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var _0={};_0={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var E0={};E0={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var R0={};R0={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var A0={};A0={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var C0={};C0={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var M0={};M0={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var I0={};I0={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var O0={};O0={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var L0={};L0={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var k0={};k0={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var F0={};F0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var N0={};N0={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var K0={};K0={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var B0={};B0={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var U0={};U0={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var z0={};z0={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var j0={};j0={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var H0={};H0={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var V0={};V0={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var W0={};W0={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var G0={};G0={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var q0={};q0={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Z0={};Z0={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Y0={};Y0={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var J0={};J0={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Q0={};Q0={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var X0={};X0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var ev={};ev={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var tv={};tv={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var nv={};nv={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var rv={};rv={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var iv={};iv={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};P0={"ar-AE":S0,"bg-BG":T0,"cs-CZ":_0,"da-DK":E0,"de-DE":R0,"el-GR":A0,"en-US":C0,"es-ES":M0,"et-EE":I0,"fi-FI":O0,"fr-FR":L0,"he-IL":k0,"hr-HR":F0,"hu-HU":N0,"it-IT":K0,"ja-JP":B0,"ko-KR":U0,"lt-LT":z0,"lv-LV":j0,"nb-NO":H0,"nl-NL":V0,"pl-PL":W0,"pt-BR":G0,"pt-PT":q0,"ro-RO":Z0,"ru-RU":Y0,"sk-SK":J0,"sl-SI":Q0,"sr-SP":X0,"sv-SE":ev,"tr-TR":tv,"uk-UA":nv,"zh-CN":rv,"zh-TW":iv};function y_(e,t,n){let{type:a="menu",isDisabled:o,trigger:l="press"}=e,u=Tn(),{triggerProps:f,overlayProps:d}=Oy({type:a},t,n),h=$=>{if(!o&&!(l==="longPress"&&!$.altKey)&&n&&n.current)switch($.key){case"Enter":case" ":if(l==="longPress")return;case"ArrowDown":"continuePropagation"in $||$.stopPropagation(),$.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in $||$.stopPropagation(),$.preventDefault(),t.toggle("last");break}},m=Hr(g_(P0)),{longPressProps:x}=mg({isDisabled:o||l!=="longPress",accessibilityDescription:m.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),y={onPressStart($){$.pointerType!=="touch"&&$.pointerType!=="keyboard"&&!o&&t.toggle($.pointerType==="virtual"?"first":null)},onPress($){$.pointerType==="touch"&&!o&&t.toggle()}};return delete f.onPress,{menuTriggerProps:{...f,...l==="press"?y:x,id:u,onKeyDown:h},menuProps:{...d,"aria-labelledby":u,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function v_(e,t){let{inputElementType:n="input",isDisabled:a=!1,isRequired:o=!1,isReadOnly:l=!1,validationState:u,type:f="text",onChange:d=()=>{}}=e,{focusableProps:h}=Wl(e,t),{labelProps:m,fieldProps:x,descriptionProps:y,errorMessageProps:$}=Ql(e),P=cr(e,{labelable:!0});const E={type:f,pattern:e.pattern};return{labelProps:m,inputProps:Ke(P,n==="input"&&E,{disabled:a,readOnly:l,"aria-required":o||void 0,"aria-invalid":u==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:R=>d(R.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...h,...x}),descriptionProps:y,errorMessageProps:$}}function b_(e){return e&&e.__esModule?e.default:e}var av={},ov={};ov={Empty:"فارغ"};var sv={};sv={Empty:"Изпразни"};var lv={};lv={Empty:"Prázdné"};var uv={};uv={Empty:"Tom"};var cv={};cv={Empty:"Leer"};var fv={};fv={Empty:"Άδειο"};var dv={};dv={Empty:"Empty"};var hv={};hv={Empty:"Vacío"};var pv={};pv={Empty:"Tühjenda"};var mv={};mv={Empty:"Tyhjä"};var gv={};gv={Empty:"Vide"};var yv={};yv={Empty:"ריק"};var vv={};vv={Empty:"Prazno"};var bv={};bv={Empty:"Üres"};var $v={};$v={Empty:"Vuoto"};var xv={};xv={Empty:"空"};var Dv={};Dv={Empty:"비어 있음"};var wv={};wv={Empty:"Tuščias"};var Pv={};Pv={Empty:"Tukšs"};var Sv={};Sv={Empty:"Tom"};var Tv={};Tv={Empty:"Leeg"};var _v={};_v={Empty:"Pusty"};var Ev={};Ev={Empty:"Vazio"};var Rv={};Rv={Empty:"Vazio"};var Av={};Av={Empty:"Gol"};var Cv={};Cv={Empty:"Не заполнено"};var Mv={};Mv={Empty:"Prázdne"};var Iv={};Iv={Empty:"Prazen"};var Ov={};Ov={Empty:"Prazno"};var Lv={};Lv={Empty:"Tomt"};var kv={};kv={Empty:"Boş"};var Fv={};Fv={Empty:"Пусто"};var Nv={};Nv={Empty:"空"};var Kv={};Kv={Empty:"空白"};av={"ar-AE":ov,"bg-BG":sv,"cs-CZ":lv,"da-DK":uv,"de-DE":cv,"el-GR":fv,"en-US":dv,"es-ES":hv,"et-EE":pv,"fi-FI":mv,"fr-FR":gv,"he-IL":yv,"hr-HR":vv,"hu-HU":bv,"it-IT":$v,"ja-JP":xv,"ko-KR":Dv,"lt-LT":wv,"lv-LV":Pv,"nb-NO":Sv,"nl-NL":Tv,"pl-PL":_v,"pt-BR":Ev,"pt-PT":Rv,"ro-RO":Av,"ru-RU":Cv,"sk-SK":Mv,"sl-SI":Iv,"sr-SP":Ov,"sv-SE":Lv,"tr-TR":kv,"uk-UA":Fv,"zh-CN":Nv,"zh-TW":Kv};function $_(e){const t=v.useRef();let{value:n,textValue:a,minValue:o,maxValue:l,isDisabled:u,isReadOnly:f,isRequired:d,onIncrement:h,onIncrementPage:m,onDecrement:x,onDecrementPage:y,onDecrementToMin:$,onIncrementToMax:P}=e;const E=Hr(b_(av)),R=()=>clearTimeout(t.current);v.useEffect(()=>()=>R(),[]);let k=q=>{if(!(q.ctrlKey||q.metaKey||q.shiftKey||q.altKey||f))switch(q.key){case"PageUp":if(m){q.preventDefault(),m();break}case"ArrowUp":case"Up":h&&(q.preventDefault(),h());break;case"PageDown":if(y){q.preventDefault(),y();break}case"ArrowDown":case"Down":x&&(q.preventDefault(),x());break;case"Home":$&&(q.preventDefault(),$());break;case"End":P&&(q.preventDefault(),P());break}},O=v.useRef(!1),N=()=>{O.current=!0},F=()=>{O.current=!1};a=a===""?E.format("Empty"):(a||`${n}`).replace("-","−"),v.useEffect(()=>{O.current&&(DT("assertive"),lf(a,"assertive"))},[a]);const H=Vn(q=>{R(),h(),t.current=window.setTimeout(()=>{(isNaN(l)||isNaN(n)||n<l)&&H(60)},q)}),ue=Vn(q=>{R(),x(),t.current=window.setTimeout(()=>{(isNaN(o)||isNaN(n)||n>o)&&ue(60)},q)});let ee=q=>{q.preventDefault()},{addGlobalListener:w,removeAllGlobalListeners:V}=Af();return{spinButtonProps:{role:"spinbutton","aria-valuenow":isNaN(n)?null:n,"aria-valuetext":a,"aria-valuemin":o,"aria-valuemax":l,"aria-disabled":u||null,"aria-readonly":f||null,"aria-required":d||null,onKeyDown:k,onFocus:N,onBlur:F},incrementButtonProps:{onPressStart:()=>{H(400),w(window,"contextmenu",ee)},onPressEnd:()=>{R(),V()},onFocus:N,onBlur:F},decrementButtonProps:{onPressStart:()=>{ue(400),w(window,"contextmenu",ee)},onPressEnd:()=>{R(),V()},onFocus:N,onBlur:F}}}function ed(e){return e&&e.__esModule?e.default:e}var Xl={},Bv={};Bv={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Uv={};Uv={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var zv={};zv={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var jv={};jv={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var Hv={};Hv={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var Vv={};Vv={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var Wv={};Wv={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var Gv={};Gv={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var qv={};qv={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var Zv={};Zv={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var Yv={};Yv={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var Jv={};Jv={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var Qv={};Qv={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Xv={};Xv={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var eb={};eb={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var tb={};tb={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var nb={};nb={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료 날짜",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작 날짜",timeZoneName:"시간대",weekday:"요일",year:"년"};var rb={};rb={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var ib={};ib={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var ab={};ab={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var ob={};ob={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var sb={};sb={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var lb={};lb={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var ub={};ub={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var cb={};cb={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var fb={};fb={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var db={};db={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var hb={};hb={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var pb={};pb={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var mb={};mb={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var gb={};gb={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var yb={};yb={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var vb={};vb={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var bb={};bb={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};Xl={"ar-AE":Bv,"bg-BG":Uv,"cs-CZ":zv,"da-DK":jv,"de-DE":Hv,"el-GR":Vv,"en-US":Wv,"es-ES":Gv,"et-EE":qv,"fi-FI":Zv,"fr-FR":Yv,"he-IL":Jv,"hr-HR":Qv,"hu-HU":Xv,"it-IT":eb,"ja-JP":tb,"ko-KR":nb,"lt-LT":rb,"lv-LV":ib,"nb-NO":ab,"nl-NL":ob,"pl-PL":sb,"pt-BR":lb,"pt-PT":ub,"ro-RO":cb,"ru-RU":fb,"sk-SK":db,"sl-SI":hb,"sr-SP":pb,"sv-SE":mb,"tr-TR":gb,"uk-UA":yb,"zh-CN":vb,"zh-TW":bb};function $b(e,t,n){let{direction:a}=zt(),o=v.useMemo(()=>Lf(t),[t]),l=d=>{if(d.altKey&&(d.key==="ArrowDown"||d.key==="ArrowUp")&&"setOpen"in e&&(d.preventDefault(),d.stopPropagation(),e.setOpen(!0)),!n)switch(d.key){case"ArrowLeft":d.preventDefault(),d.stopPropagation(),a==="rtl"?o.focusNext():o.focusPrevious();break;case"ArrowRight":d.preventDefault(),d.stopPropagation(),a==="rtl"?o.focusPrevious():o.focusNext();break}},u=()=>{var d;let h=(d=window.event)===null||d===void 0?void 0:d.target,m=en(t.current,{tabbable:!0});if(h&&(m.currentNode=h,h=m.previousNode()),!h){let x;do x=m.lastChild(),x&&(h=x);while(x)}for(;h?.hasAttribute("data-placeholder");){let x=m.previousNode();if(x&&x.hasAttribute("data-placeholder"))h=x;else break}h&&h.focus()},{pressProps:f}=ra({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(d){d.pointerType==="mouse"&&u()},onPress(d){d.pointerType!=="mouse"&&u()}});return Ke(f,{onKeyDown:l})}const xb=new WeakMap,ml="__role_"+Date.now(),x_="__focusManager_"+Date.now();function D_(e,t,n){let{labelProps:a,fieldProps:o,descriptionProps:l,errorMessageProps:u}=Ql({...e,labelElementType:"span"}),{focusWithinProps:f}=Xa({...e,onBlurWithin:F=>{t.confirmPlaceholder(),e.onBlur&&e.onBlur(F)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),d=Hr(ed(Xl)),h=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",m=t.maxGranularity==="hour"?"time":"date",x=t.value?d.format(h,{[m]:t.formatValue({month:"long"})}):"",y=Hl(x),$=e[ml]==="presentation"?o["aria-describedby"]:[y["aria-describedby"],o["aria-describedby"]].filter(Boolean).join(" ")||void 0,P=e[x_],E=v.useMemo(()=>P||Lf(n),[P,n]),R=$b(t,n,e[ml]==="presentation");xb.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[a.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:$,focusManager:E});let k=v.useRef(e.autoFocus),O;e[ml]==="presentation"?O={role:"presentation"}:O=Ke(o,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":$}),v.useEffect(()=>{k.current&&E.focusFirst(),k.current=!1},[E]);let N=cr(e);return{labelProps:{...a,onClick:()=>{E.focusFirst()}},fieldProps:Ke(N,O,R,f,{onKeyDown(F){e.onKeyDown&&e.onKeyDown(F)},onKeyUp(F){e.onKeyUp&&e.onKeyUp(F)}}),descriptionProps:l,errorMessageProps:u}}function w_(e,t,n){let a=Tn(),o=Tn(),l=Tn(),u=Hr(ed(Xl)),{labelProps:f,fieldProps:d,descriptionProps:h,errorMessageProps:m}=Ql({...e,labelElementType:"span"}),x=$b(t,n),y=d["aria-labelledby"]||d.id,{locale:$}=zt(),P=t.formatValue($,{month:"long"}),E=P?u.format("selectedDateDescription",{date:P}):"",R=Hl(E),k=[R["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,O=cr(e),N=v.useMemo(()=>Lf(n),[n]),{focusWithinProps:F}=Xa({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:Ke(O,x,d,R,F,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":y,"aria-describedby":k,onKeyDown(H){t.isOpen||e.onKeyDown&&e.onKeyDown(H)},onKeyUp(H){t.isOpen||e.onKeyUp&&e.onKeyUp(H)}}),labelProps:{...f,onClick:()=>{N.focusFirst()}},fieldProps:{...d,id:l,[ml]:"presentation","aria-describedby":k,value:t.value,onChange:t.setValue,minValue:e.minValue,maxValue:e.maxValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationState:t.validationState,autoFocus:e.autoFocus},descriptionProps:h,errorMessageProps:m,buttonProps:{...R,id:a,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${a} ${y}`,"aria-describedby":k,"aria-expanded":t.isOpen||void 0,onPress:()=>t.setOpen(!0)},dialogProps:{id:o,"aria-labelledby":`${a} ${y}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,validationState:t.validationState,errorMessage:e.errorMessage}}}function P_(){let{locale:e}=zt();return v.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new S_(e)}},[e])}class S_{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t){this.locale=t,this.dictionary=new Kf(ed(Xl))}}function T_(e,t,n){let a=v.useRef(""),{locale:o}=zt(),l=P_(),{ariaLabel:u,ariaLabelledBy:f,ariaDescribedBy:d,focusManager:h}=xb.get(t),m=e.isPlaceholder?"":e.text,x=v.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),y=Wn({month:"long",timeZone:x.timeZone}),$=Wn({hour:"numeric",hour12:x.hour12,timeZone:x.timeZone});if(e.type==="month"&&!e.isPlaceholder){let te=y.format(t.dateValue);m=te!==m?`${m} – ${te}`:te}else e.type==="hour"&&!e.isPlaceholder&&(m=$.format(t.dateValue));let{spinButtonProps:P}=$_({value:e.value,textValue:m,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{a.current="",t.increment(e.type)},onDecrement:()=>{a.current="",t.decrement(e.type)},onIncrementPage:()=>{a.current="",t.incrementPage(e.type)},onDecrementPage:()=>{a.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{a.current="",t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{a.current="",t.setSegment(e.type,e.minValue)}}),E=v.useMemo(()=>new fT(o,{maximumFractionDigits:0}),[o]),R=()=>{if(E.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let te=e.text.slice(0,-1),Y=E.parse(te);te.length===0||Y===0?t.clearSegment(e.type):t.setSegment(e.type,Y),a.current=te}else e.type==="dayPeriod"&&t.clearSegment(e.type)},k=te=>{if(te.key==="a"&&(Qa()?te.metaKey:te.ctrlKey)&&te.preventDefault(),!(te.ctrlKey||te.metaKey||te.shiftKey||te.altKey))switch(te.key){case"Backspace":case"Delete":te.preventDefault(),te.stopPropagation(),R();break}},{startsWith:O}=xT({sensitivity:"base"}),N=Wn({hour:"numeric",hour12:!0}),F=v.useMemo(()=>{let te=new Date;return te.setHours(0),N.formatToParts(te).find(Y=>Y.type==="dayPeriod").value},[N]),H=v.useMemo(()=>{let te=new Date;return te.setHours(12),N.formatToParts(te).find(Y=>Y.type==="dayPeriod").value},[N]),ue=Wn({year:"numeric",era:"narrow",timeZone:"UTC"}),ee=v.useMemo(()=>{if(e.type!=="era")return[];let te=it(new pt(1,1,1),t.calendar),Y=t.calendar.getEras().map(ie=>{let re=te.set({year:1,month:1,day:1,era:ie}).toDate("UTC"),mt=ue.formatToParts(re).find($t=>$t.type==="era").value;return{era:ie,formatted:mt}}),me=__(Y.map(ie=>ie.formatted));if(me)for(let ie of Y)ie.formatted=ie.formatted.slice(me);return Y},[ue,t.calendar,e.type]),w=te=>{if(t.isDisabled||t.isReadOnly)return;let Y=a.current+te;switch(e.type){case"dayPeriod":if(O(F,te))t.setSegment("dayPeriod",0);else if(O(H,te))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let me=ee.find(ie=>O(ie.formatted,te));me&&(t.setSegment("era",me.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!E.isValidPartialNumber(Y))return;let me=E.parse(Y),ie=me,re=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":me>11&&(ie=E.parse(te));break;case"h12":re=!1,me>12&&(ie=E.parse(te));break}e.value>=12&&me>1&&(me+=12)}else me>e.maxValue&&(ie=E.parse(te));if(isNaN(me))return;let Ie=ie!==0||re;Ie&&t.setSegment(e.type,ie),+(me+"0")>e.maxValue||Y.length>=String(e.maxValue).length?(a.current="",Ie&&h.focusNext()):a.current=Y;break}}},V=()=>{a.current="",$l(n.current,{containingElement:Ga(n.current)}),window.getSelection().collapse(n.current)},q=v.useRef("");Vc(n,"beforeinput",te=>{switch(te.preventDefault(),te.inputType){case"deleteContentBackward":case"deleteContentForward":E.isValidPartialNumber(e.text)&&!t.isReadOnly&&R();break;case"insertCompositionText":q.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:te.data!=null&&w(te.data);break}}),Vc(n,"input",te=>{let{inputType:Y,data:me}=te;switch(Y){case"insertCompositionText":n.current.textContent=q.current,(O(F,me)||O(H,me))&&w(me);break}}),at(()=>{let te=n.current;return()=>{document.activeElement===te&&(h.focusPrevious()||h.focusNext())}},[n,h]);let A=os()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},pe=v.useMemo(()=>t.segments.find(te=>te.isEditable),[t.segments]);e!==pe&&t.validationState!=="invalid"&&(d=void 0);let U=Tn(),B=!t.isDisabled&&!t.isReadOnly&&e.isEditable,de=e.type==="literal"?"":l.of(e.type),Q=as({"aria-label":`${de}${u?`, ${u}`:""}${f?", ":""}`,"aria-labelledby":f});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:Ke(P,Q,{id:U,...A,"aria-invalid":t.validationState==="invalid"?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:B,suppressContentEditableWarning:B,spellCheck:B?"false":void 0,autoCapitalize:B?"off":void 0,autoCorrect:B?"off":void 0,[parseInt(v.version,10)>=17?"enterKeyHint":"enterkeyhint"]:B?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!B?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:k,onFocus:V,style:{caretColor:"transparent"},onPointerDown(te){te.stopPropagation()},onMouseDown(te){te.stopPropagation()}})}}function __(e){e.sort();let t=e[0],n=e[e.length-1];for(let a=0;a<t.length;a++)if(t[a]!==n[a])return a;return 0}function td(e,t){let{role:n="dialog"}=e,a=Wa();a=e["aria-label"]?void 0:a;let o=v.useRef(!1);return v.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Qi(t.current);let l=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current.blur(),Qi(t.current),o.current=!1)},500);return()=>{clearTimeout(l)}}},[t]),e_(),{dialogProps:{...cr(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||a,onBlur:l=>{o.current&&l.stopPropagation()}},titleProps:{id:a}}}function E_(e,t,n){let{keyboardDelegate:a,isDisabled:o}=e,l=Yf({usage:"search",sensitivity:"base"}),u=v.useMemo(()=>a||new D0(t.collection,t.disabledKeys,null,l),[a,t.collection,t.disabledKeys,l]),{menuTriggerProps:f,menuProps:d}=y_({isDisabled:o,type:"listbox"},t,n),h=O=>{switch(O.key){case"ArrowLeft":{O.preventDefault();let N=t.selectedKey!=null?u.getKeyAbove(t.selectedKey):u.getFirstKey();N&&t.setSelectedKey(N);break}case"ArrowRight":{O.preventDefault();let N=t.selectedKey!=null?u.getKeyBelow(t.selectedKey):u.getFirstKey();N&&t.setSelectedKey(N);break}}},{typeSelectProps:m}=x0({keyboardDelegate:u,selectionManager:t.selectionManager,onTypeSelect(O){t.setSelectedKey(O)}}),{labelProps:x,fieldProps:y,descriptionProps:$,errorMessageProps:P}=Ql({...e,labelElementType:"span"});m.onKeyDown=m.onKeyDownCapture,delete m.onKeyDownCapture;let E=cr(e,{labelable:!0}),R=Ke(m,f,y),k=Tn();return{labelProps:{...x,onClick:()=>{e.isDisabled||(n.current.focus(),kS("keyboard"))}},triggerProps:Ke(E,{...R,isDisabled:o,onKeyDown:Ho(R.onKeyDown,h,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[k,R["aria-labelledby"],R["aria-label"]&&!R["aria-labelledby"]?R.id:null].filter(Boolean).join(" "),onFocus(O){t.isFocused||(e.onFocus&&e.onFocus(O),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(O){t.isOpen||(e.onBlur&&e.onBlur(O),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:k},menuProps:{...d,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,onBlur:O=>{O.currentTarget.contains(O.relatedTarget)||(e.onBlur&&e.onBlur(O),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[y["aria-labelledby"],R["aria-label"]&&!y["aria-labelledby"]?R.id:null].filter(Boolean).join(" ")},descriptionProps:$,errorMessageProps:P}}function R_(e,t,n){let{autoComplete:a,name:o,isDisabled:l}=e,u=FS(),{visuallyHiddenProps:f}=Ay();var d;return{containerProps:{...f,"aria-hidden":!0},inputProps:{type:"text",tabIndex:u==null||t.isFocused||t.isOpen?-1:0,style:{fontSize:16},onFocus:()=>n.current.focus(),disabled:l},selectProps:{tabIndex:-1,autoComplete:a,disabled:l,name:o,size:t.collection.size,value:(d=t.selectedKey)!==null&&d!==void 0?d:"",onChange:h=>t.setSelectedKey(h.target.value)}}}function A_(e){let{state:t,triggerRef:n,label:a,name:o,isDisabled:l}=e,{containerProps:u,inputProps:f,selectProps:d}=R_(e,t,n);var h;return t.collection.size<=300?v.createElement("div",u,v.createElement("input",f),v.createElement("label",null,a,v.createElement("select",d,v.createElement("option",null),[...t.collection.getKeys()].map(m=>{let x=t.collection.getItem(m);if(x.type==="item")return v.createElement("option",{key:x.key,value:x.key},x.textValue)})))):o?v.createElement("input",{type:"hidden",autoComplete:d.autoComplete,name:o,disabled:l,value:(h=t.selectedKey)!==null&&h!==void 0?h:""}):null}const Db=v.forwardRef((e,t)=>{const{as:n="a",handlePress:a,children:o,as:l,customTheme:u,tokens:f,themeName:d="button",...h}=e,m=t,{linkProps:x}=i3({...e,elementType:l?.toString(),onPress:a},t??m),y=Se(d,f,u);return L.jsx(n,{ref:m,...x,...h,className:y,children:o})}),wb=v.forwardRef((e,t)=>{const{as:n="button",handlePress:a,children:o,as:l,customTheme:u,tokens:f,themeName:d="button",...h}=e,m=t,{buttonProps:x}=sf({...e,elementType:l,onPress:a},t??m),y=Se(d,f,u);return L.jsx(n,{ref:m,...x,...h,className:y,children:o})}),nd=v.forwardRef((e,t)=>{const{as:n}=e;return n==="a"?L.jsx(Db,{ref:t,...e}):L.jsx(wb,{ref:t,...e})}),C_=e=>{const{as:t}=e,n=v.useRef(null);return t==="a"?L.jsx(Db,{ref:n,...e}):L.jsx(wb,{ref:n,...e})},ea=v.memo(C_),M_=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((a,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t)))})},I_=e=>L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...e}),Pb=v.memo(I_),O_=Object.freeze(Object.defineProperty({__proto__:null,default:Pb},Symbol.toStringTag,{value:"Module"})),L_=e=>{const{icon:t,...n}=e,a=v.useMemo(()=>v.lazy(()=>M_(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>require("./ArrowDown-54a4e9d3.js")),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>require("./ArrowLeft-ff99e568.js")),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>X4),"../icons/BrandArrowRight.tsx":()=>Promise.resolve().then(()=>require("./BrandArrowRight-bd396c15.js")),"../icons/Check.tsx":()=>Promise.resolve().then(()=>require("./Check-d5164285.js")),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>require("./ChevronLeft-b0b7cef2.js")),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>require("./ChevronRight-9d8a2e81.js")),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>require("./CloseBtn-e82b3c51.js")),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>require("./Facebook-dc270a7a.js")),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>require("./FacebookColored-dfff8ee5.js")),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>require("./Globe-0fcd693d.js")),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>O_),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>require("./Instagram-716baeb0.js")),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>require("./InstagramColored-0134fb49.js")),"../icons/Link.tsx":()=>Promise.resolve().then(()=>require("./Link-53ca53dc.js")),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>require("./Mail-cfe23bd7.js")),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>require("./Plus-03ca4a42.js")),"../icons/Share.tsx":()=>Promise.resolve().then(()=>require("./Share-a788142f.js")),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>require("./Twitter-6888ab44.js")),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>require("./TwitterColored-0f1274ef.js")),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>require("./Upload-ea10c854.js")),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>require("./YouTube-fc32e491.js")),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>require("./YouTubeColored-8a760e28.js"))}),`../icons/${t||"ArrowRight"}.tsx`)),[t]);return L.jsx(v.Suspense,{fallback:L.jsx(Pb,{className:"overflow-visible pointer-events-none"}),children:L.jsx(a,{...n,className:"overflow-visible pointer-events-none",...e})})},jr=e=>{const{icon:t,as:n="span",tokens:a,customTheme:o,themeName:l="icon",children:u,...f}=e,d=Se(l,a,o);return typeof t!="string"?L.jsxs(n,{...f,className:d,children:[u,t]}):typeof window>"u"?null:L.jsxs(n,{className:d,children:[u,L.jsx(L_,{icon:t,...f})]})},k_=e=>{const{customTheme:t,themeName:n="accordion",id:a,tokens:o,title:l,ariaLabel:u,onClick:f,icon:d,children:h}=e,[m,x]=v.useState(!1),y=Se(`${n}.container`,{...o,isOpen:m},t),$=Se(`${n}.title`,{...o,isOpen:m},t),P=Se(`${n}.icon`,{...o,isOpen:m},t),E=Se(`${n}.region`,{...o,isOpen:m},t),R=Se(`${n}.content`,{...o,isOpen:m},t);return L.jsxs("div",{className:y,id:`accordion-control-${a}`,"aria-label":u,"aria-expanded":m,"aria-controls":`accordion-content-${a}`,children:[L.jsxs(ea,{themeName:`${n}.button`,tokens:{...o,isOpen:m},handlePress:()=>{x(!m),f?.(m)},as:"button",id:`accordion-control-${a}`,"aria-label":u,children:[L.jsx("div",{className:$,children:l}),L.jsx("div",{className:P,children:L.jsx(jr,{icon:d??"ArrowDown"})})]}),L.jsx("div",{className:E,role:"region",id:`accordion-content-${a}`,"aria-labelledby":`accordion-control-${a}`,children:L.jsx("section",{className:R,children:h})})]})},F_=e=>{const{sharingLinksList:t,id:n,isOpen:a,onShare:o,themeName:l="shareButton",tokens:u,customTheme:f}=e,d=Se(`${l}.linksList`,{...u,isOpen:a},f);return L.jsx("div",{className:d,id:n,role:"listbox",children:t?.map(h=>{const{ariaLabel:m,onClick:x,href:y,icon:$,key:P}=h;return L.jsx(ea,{themeName:`${l}.link`,tokens:{...u,isOpen:a},as:"a",handlePress:()=>{o?.(P),x?.(P)},"aria-label":m,target:"_blank",rel:"noopener noreferrer",href:y,role:"option",children:L.jsx(jr,{themeName:`${l}.linkIcons`,icon:$})},P)})})},N_=e=>{const{ariaLabel:t,icon:n,id:a,sharingLinksList:o,onShare:l,customTheme:u,themeName:f="shareButton",tokens:d,...h}=e,[m,x]=v.useState(!1),y=Se(`${f}.container`,d,u),$=()=>{x(!m)};return L.jsxs("div",{className:y,children:[L.jsx(ea,{themeName:`${f}.button`,tokens:{...d,isOpen:m},"aria-label":t,"aria-haspopup":"listbox","aria-expanded":m?"true":"false","aria-controls":"share-buttons",handlePress:$,...h,children:L.jsx(jr,{themeName:`${f}.icon`,icon:n??"Share"})}),L.jsx(F_,{id:a,sharingLinksList:o,onShare:l,isOpen:m,themeName:f,customTheme:u,tokens:d})]})};var Ko=globalThis&&globalThis.__assign||function(){return Ko=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ko.apply(this,arguments)},K_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n},vm=!1,Sb=v.forwardRef(function(e,t){var n=e.style,a=K_(e,["style"]),o=B_();!vm&&n?.height&&(vm=!0,console.warn("<Div100vh /> overrides the height property of the style prop"));var l=Ko(Ko({},n),{height:o?o+"px":"100vh"});return v.createElement("div",Ko({ref:t,style:l},a))});Sb.displayName="Div100vh";function B_(){var e=v.useState(bm),t=e[0],n=e[1],a=U_();return v.useEffect(function(){if(!a)return;function o(){var l=bm();n(l)}return window.addEventListener("resize",o),function(){return window.removeEventListener("resize",o)}},[a]),a?t:null}function bm(){return Tb()?window.innerHeight:null}function U_(){var e=v.useState(!1),t=e[0],n=e[1];return v.useEffect(function(){Tb()&&n(!0)},[]),t}function Tb(){return typeof window<"u"&&typeof document<"u"}function z_(){const e=v.createContext(void 0);function t(){const n=v.useContext(e);if(n===void 0)throw new Error("useCtx must be inside a Provider");return n}return[t,e.Provider]}function eu(e){let[t,n]=mi(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const a=v.useCallback(()=>{n(!0)},[n]),o=v.useCallback(()=>{n(!1)},[n]),l=v.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:a,close:o,toggle:l}}const j_=(e,t,n)=>{const a=eu({defaultOpen:e,onOpenChange:m=>t?.(m)}),o=v.useRef(null),l=v.useRef(null);v.useEffect(()=>{if(e){a.open();return}a.close()},[e]);const u=()=>{a.open()},f=()=>{a.close(),n?.()},{buttonProps:d}=sf({elementType:"div",onPress:u},o),{buttonProps:h}=sf({onPress:f},l);return{state:a,openButtonProps:d,closeButtonProps:h,handleOpen:u,handleClose:f,openButtonRef:o,closeButtonRef:l}},[H_,G7]=z_();let rd=fs();const Ee=e=>cs(e,rd);let id=fs();Ee.write=e=>cs(e,id);let tu=fs();Ee.onStart=e=>cs(e,tu);let ad=fs();Ee.onFrame=e=>cs(e,ad);let od=fs();Ee.onFinish=e=>cs(e,od);let Ha=[];Ee.setTimeout=(e,t)=>{let n=Ee.now()+t,a=()=>{let l=Ha.findIndex(u=>u.cancel==a);~l&&Ha.splice(l,1),hi-=~l?1:0},o={time:n,handler:e,cancel:a};return Ha.splice(_b(n),0,o),hi+=1,Eb(),o};let _b=e=>~(~Ha.findIndex(t=>t.time>e)||~Ha.length);Ee.cancel=e=>{tu.delete(e),ad.delete(e),od.delete(e),rd.delete(e),id.delete(e)};Ee.sync=e=>{hf=!0,Ee.batchedUpdates(e),hf=!1};Ee.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function a(...o){t=o,Ee.onStart(n)}return a.handler=e,a.cancel=()=>{tu.delete(n),t=null},a};let sd=typeof window<"u"?window.requestAnimationFrame:()=>{};Ee.use=e=>sd=e;Ee.now=typeof performance<"u"?()=>performance.now():Date.now;Ee.batchedUpdates=e=>e();Ee.catch=console.error;Ee.frameLoop="always";Ee.advance=()=>{Ee.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ab()};let di=-1,hi=0,hf=!1;function cs(e,t){hf?(t.delete(e),e(0)):(t.add(e),Eb())}function Eb(){di<0&&(di=0,Ee.frameLoop!=="demand"&&sd(Rb))}function V_(){di=-1}function Rb(){~di&&(sd(Rb),Ee.batchedUpdates(Ab))}function Ab(){let e=di;di=Ee.now();let t=_b(di);if(t&&(Cb(Ha.splice(0,t),n=>n.handler()),hi-=t),!hi){V_();return}tu.flush(),rd.flush(e?Math.min(64,di-e):16.667),ad.flush(),id.flush(),od.flush()}function fs(){let e=new Set,t=e;return{add(n){hi+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return hi-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,hi-=t.size,Cb(t,a=>a(n)&&e.add(a)),hi+=e.size,t=e)}}}function Cb(e,t){e.forEach(n=>{try{t(n)}catch(a){Ee.catch(a)}})}function pf(){}const W_=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ne={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Lr(e,t){if(ne.arr(e)){if(!ne.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const Ae=(e,t)=>e.forEach(t);function lr(e,t,n){if(ne.arr(e)){for(let a=0;a<e.length;a++)t.call(n,e[a],`${a}`);return}for(const a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a)}const Ut=e=>ne.und(e)?[]:ne.arr(e)?e:[e];function Bo(e,t){if(e.size){const n=Array.from(e);e.clear(),Ae(n,t)}}const Lo=(e,...t)=>Bo(e,n=>n(...t)),ld=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let ud,Mb,pi=null,Ib=!1,cd=pf;const G_=e=>{e.to&&(Mb=e.to),e.now&&(Ee.now=e.now),e.colors!==void 0&&(pi=e.colors),e.skipAnimation!=null&&(Ib=e.skipAnimation),e.createStringInterpolator&&(ud=e.createStringInterpolator),e.requestAnimationFrame&&Ee.use(e.requestAnimationFrame),e.batchedUpdates&&(Ee.batchedUpdates=e.batchedUpdates),e.willAdvance&&(cd=e.willAdvance),e.frameLoop&&(Ee.frameLoop=e.frameLoop)};var ur=Object.freeze({__proto__:null,get createStringInterpolator(){return ud},get to(){return Mb},get colors(){return pi},get skipAnimation(){return Ib},get willAdvance(){return cd},assign:G_});const Uo=new Set;let Sn=[],Ic=[],Ll=0;const nu={get idle(){return!Uo.size&&!Sn.length},start(e){Ll>e.priority?(Uo.add(e),Ee.onStart(q_)):(Ob(e),Ee(mf))},advance:mf,sort(e){if(Ll)Ee.onFrame(()=>nu.sort(e));else{const t=Sn.indexOf(e);~t&&(Sn.splice(t,1),Lb(e))}},clear(){Sn=[],Uo.clear()}};function q_(){Uo.forEach(Ob),Uo.clear(),Ee(mf)}function Ob(e){Sn.includes(e)||Lb(e)}function Lb(e){Sn.splice(Z_(Sn,t=>t.priority>e.priority),0,e)}function mf(e){const t=Ic;for(let n=0;n<Sn.length;n++){const a=Sn[n];Ll=a.priority,a.idle||(cd(a),a.advance(e),a.idle||t.push(a))}return Ll=0,Ic=Sn,Ic.length=0,Sn=t,Sn.length>0}function Z_(e,t){const n=e.findIndex(t);return n<0?e.length:n}const Y_=(e,t,n)=>Math.min(Math.max(n,e),t),J_={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Gn="[-+]?\\d*\\.?\\d+",kl=Gn+"%";function ru(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Q_=new RegExp("rgb"+ru(Gn,Gn,Gn)),X_=new RegExp("rgba"+ru(Gn,Gn,Gn,Gn)),eE=new RegExp("hsl"+ru(Gn,kl,kl)),tE=new RegExp("hsla"+ru(Gn,kl,kl,Gn)),nE=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,rE=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,iE=/^#([0-9a-fA-F]{6})$/,aE=/^#([0-9a-fA-F]{8})$/;function oE(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=iE.exec(e))?parseInt(t[1]+"ff",16)>>>0:pi&&pi[e]!==void 0?pi[e]:(t=Q_.exec(e))?(La(t[1])<<24|La(t[2])<<16|La(t[3])<<8|255)>>>0:(t=X_.exec(e))?(La(t[1])<<24|La(t[2])<<16|La(t[3])<<8|Dm(t[4]))>>>0:(t=nE.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=aE.exec(e))?parseInt(t[1],16)>>>0:(t=rE.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=eE.exec(e))?($m(xm(t[1]),ol(t[2]),ol(t[3]))|255)>>>0:(t=tE.exec(e))?($m(xm(t[1]),ol(t[2]),ol(t[3]))|Dm(t[4]))>>>0:null}function Oc(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 $m(e,t,n){const a=n<.5?n*(1+t):n+t-n*t,o=2*n-a,l=Oc(o,a,e+1/3),u=Oc(o,a,e),f=Oc(o,a,e-1/3);return Math.round(l*255)<<24|Math.round(u*255)<<16|Math.round(f*255)<<8}function La(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function xm(e){return(parseFloat(e)%360+360)%360/360}function Dm(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ol(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function wm(e){let t=oE(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,a=(t&16711680)>>>16,o=(t&65280)>>>8,l=(t&255)/255;return`rgba(${n}, ${a}, ${o}, ${l})`}const Jo=(e,t,n)=>{if(ne.fun(e))return e;if(ne.arr(e))return Jo({range:e,output:t,extrapolate:n});if(ne.str(e.output[0]))return ud(e);const a=e,o=a.output,l=a.range||[0,1],u=a.extrapolateLeft||a.extrapolate||"extend",f=a.extrapolateRight||a.extrapolate||"extend",d=a.easing||(h=>h);return h=>{const m=lE(h,l);return sE(h,l[m],l[m+1],o[m],o[m+1],d,u,f,a.map)}};function sE(e,t,n,a,o,l,u,f,d){let h=d?d(e):e;if(h<t){if(u==="identity")return h;u==="clamp"&&(h=t)}if(h>n){if(f==="identity")return h;f==="clamp"&&(h=n)}return a===o?a:t===n?e<=t?a:o:(t===-1/0?h=-h:n===1/0?h=h-t:h=(h-t)/(n-t),h=l(h),a===-1/0?h=-h:o===1/0?h=h+a:h=h*(o-a)+a,h)}function lE(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}const uE=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const a=n*e,o=t==="end"?Math.floor(a):Math.ceil(a);return Y_(0,1,o/e)},Fl=1.70158,sl=Fl*1.525,Pm=Fl+1,Sm=2*Math.PI/3,Tm=2*Math.PI/4.5,ll=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,cE={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Pm*e*e*e-Fl*e*e,easeOutBack:e=>1+Pm*Math.pow(e-1,3)+Fl*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((sl+1)*2*e-sl)/2:(Math.pow(2*e-2,2)*((sl+1)*(e*2-2)+sl)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Sm),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Sm)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Tm))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Tm)/2+1,easeInBounce:e=>1-ll(1-e),easeOutBounce:ll,easeInOutBounce:e=>e<.5?(1-ll(1-2*e))/2:(1+ll(2*e-1))/2,steps:uE};function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},gf.apply(this,arguments)}const Za=Symbol.for("FluidValue.get"),ta=Symbol.for("FluidValue.observers"),Pn=e=>!!(e&&e[Za]),Jt=e=>e&&e[Za]?e[Za]():e,_m=e=>e[ta]||null;function fE(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Qo(e,t){let n=e[ta];n&&n.forEach(a=>{fE(a,t)})}class kb{constructor(t){if(this[Za]=void 0,this[ta]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");dE(this,t)}}const dE=(e,t)=>Fb(e,Za,t);function eo(e,t){if(e[Za]){let n=e[ta];n||Fb(e,ta,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Xo(e,t){let n=e[ta];if(n&&n.has(t)){const a=n.size-1;a?n.delete(t):e[ta]=null,e.observerRemoved&&e.observerRemoved(a,t)}}const Fb=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),gl=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,hE=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Em=new RegExp(`(${gl.source})(%|[a-z]+)`,"i"),pE=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,iu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Nb=e=>{const[t,n]=mE(e);if(!t||ld())return e;const a=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(a)return a.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&iu.test(n))return Nb(n);if(n)return n}return e},mE=e=>{const t=iu.exec(e);if(!t)return[,];const[,n,a]=t;return[n,a]};let Lc;const gE=(e,t,n,a,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(a)}, ${o})`,Kb=e=>{Lc||(Lc=pi?new RegExp(`(${Object.keys(pi).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(l=>Jt(l).replace(iu,Nb).replace(hE,wm).replace(Lc,wm)),n=t.map(l=>l.match(gl).map(Number)),o=n[0].map((l,u)=>n.map(f=>{if(!(u in f))throw Error('The arity of each "output" value must be equal');return f[u]})).map(l=>Jo(gf({},e,{output:l})));return l=>{var u;const f=!Em.test(t[0])&&((u=t.find(h=>Em.test(h)))==null?void 0:u.replace(gl,""));let d=0;return t[0].replace(gl,()=>`${o[d++](l)}${f||""}`).replace(pE,gE)}},fd="react-spring: ",Bb=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${fd}once requires a function parameter`);return(...a)=>{n||(t(...a),n=!0)}},yE=Bb(console.warn);function vE(){yE(`${fd}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const bE=Bb(console.warn);function $E(){bE(`${fd}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function au(e){return ne.str(e)&&(e[0]=="#"||/\d/.test(e)||!ld()&&iu.test(e)||e in(pi||{}))}const Ka=ld()?v.useEffect:v.useLayoutEffect,xE=()=>{const e=v.useRef(!1);return Ka(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Ub(){const e=v.useState()[1],t=xE();return()=>{t.current&&e(Math.random())}}function DE(e,t){const[n]=v.useState(()=>({inputs:t,result:e()})),a=v.useRef(),o=a.current;let l=o;return l?t&&l.inputs&&wE(t,l.inputs)||(l={inputs:t,result:e()}):l=n,v.useEffect(()=>{a.current=l,o==n&&(n.inputs=n.result=void 0)},[l]),l.result}function wE(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const zb=e=>v.useEffect(e,PE),PE=[];function SE(e){const t=v.useRef();return v.useEffect(()=>{t.current=e}),t.current}const es=Symbol.for("Animated:node"),TE=e=>!!e&&e[es]===e,ar=e=>e&&e[es],dd=(e,t)=>W_(e,es,t),ou=e=>e&&e[es]&&e[es].getPayload();class jb{constructor(){this.payload=void 0,dd(this,this)}getPayload(){return this.payload||[]}}class to extends jb{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,ne.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new to(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return ne.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,ne.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class Ya extends to{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=Jo({output:[t,t]})}static create(t){return new Ya(t)}getValue(){let t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(ne.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Jo({output:[this.getValue(),t]})),this._value=0,super.reset()}}const Nl={dependencies:null};class su extends jb{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const n={};return lr(this.source,(a,o)=>{TE(a)?n[o]=a.getValue(t):Pn(a)?n[o]=Jt(a):t||(n[o]=a)}),n}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&Ae(this.payload,t=>t.reset())}_makePayload(t){if(t){const n=new Set;return lr(t,this._addToPayload,n),Array.from(n)}}_addToPayload(t){Nl.dependencies&&Pn(t)&&Nl.dependencies.add(t);const n=ou(t);n&&Ae(n,a=>this.add(a))}}class hd extends su{constructor(t){super(t)}static create(t){return new hd(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((a,o)=>a.setValue(t[o])).some(Boolean):(super.setValue(t.map(_E)),!0)}}function _E(e){return(au(e)?Ya:to).create(e)}function yf(e){const t=ar(e);return t?t.constructor:ne.arr(e)?hd:au(e)?Ya:to}function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Kl.apply(this,arguments)}const Rm=(e,t)=>{const n=!ne.fun(e)||e.prototype&&e.prototype.isReactComponent;return v.forwardRef((a,o)=>{const l=v.useRef(null),u=n&&v.useCallback(P=>{l.current=AE(o,P)},[o]),[f,d]=RE(a,t),h=Ub(),m=()=>{const P=l.current;if(n&&!P)return;(P?t.applyAnimatedValues(P,f.getValue(!0)):!1)===!1&&h()},x=new EE(m,d),y=v.useRef();Ka(()=>(y.current=x,Ae(d,P=>eo(P,x)),()=>{y.current&&(Ae(y.current.deps,P=>Xo(P,y.current)),Ee.cancel(y.current.update))})),v.useEffect(m,[]),zb(()=>()=>{const P=y.current;Ae(P.deps,E=>Xo(E,P))});const $=t.getComponentProps(f.getValue());return Yi.createElement(e,Kl({},$,{ref:u}))})};class EE{constructor(t,n){this.update=t,this.deps=n}eventObserved(t){t.type=="change"&&Ee.write(this.update)}}function RE(e,t){const n=new Set;return Nl.dependencies=n,e.style&&(e=Kl({},e,{style:t.createAnimatedStyle(e.style)})),e=new su(e),Nl.dependencies=null,[e,n]}function AE(e,t){return e&&(ne.fun(e)?e(t):e.current=t),t}const Am=Symbol.for("AnimatedComponent"),CE=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new su(o),getComponentProps:a=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:a},l=u=>{const f=Cm(u)||"Anonymous";return ne.str(u)?u=l[u]||(l[u]=Rm(u,o)):u=u[Am]||(u[Am]=Rm(u,o)),u.displayName=`Animated(${f})`,u};return lr(e,(u,f)=>{ne.arr(e)&&(f=Cm(u)),l[f]=l(u)}),{animated:l}},Cm=e=>ne.str(e)?e:e&&ne.str(e.displayName)?e.displayName:ne.fun(e)&&e.name||null;function ut(){return ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ut.apply(this,arguments)}function Qt(e,...t){return ne.fun(e)?e(...t):e}const zo=(e,t)=>e===!0||!!(t&&e&&(ne.fun(e)?e(t):Ut(e).includes(t))),Hb=(e,t)=>ne.obj(e)?t&&e[t]:e,Vb=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,ME=e=>e,pd=(e,t=ME)=>{let n=IE;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const a={};for(const o of n){const l=t(e[o],o);ne.und(l)||(a[o]=l)}return a},IE=["config","onProps","onStart","onChange","onPause","onResume","onRest"],OE={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function LE(e){const t={};let n=0;if(lr(e,(a,o)=>{OE[o]||(t[o]=a,n++)}),n)return t}function md(e){const t=LE(e);if(t){const n={to:t};return lr(e,(a,o)=>o in t||(n[o]=a)),n}return ut({},e)}function ts(e){return e=Jt(e),ne.arr(e)?e.map(ts):au(e)?ur.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function kE(e){for(const t in e)return!0;return!1}function vf(e){return ne.fun(e)||ne.arr(e)&&ne.obj(e[0])}function Mm(e,t){var n;(n=e.ref)==null||n.delete(e),t?.delete(e)}function FE(e,t){if(t&&e.ref!==t){var n;(n=e.ref)==null||n.delete(e),t.add(e),e.ref=t}}const gd={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},bf=ut({},gd.default,{mass:1,damping:1,easing:cE.linear,clamp:!1});class NE{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,bf)}}function KE(e,t,n){n&&(n=ut({},n),Im(n,t),t=ut({},n,t)),Im(e,t),Object.assign(e,t);for(const u in bf)e[u]==null&&(e[u]=bf[u]);let{mass:a,frequency:o,damping:l}=e;return ne.und(o)||(o<.01&&(o=.01),l<0&&(l=0),e.tension=Math.pow(2*Math.PI/o,2)*a,e.friction=4*Math.PI*l*a/o),e}function Im(e,t){if(!ne.und(t.decay))e.duration=void 0;else{const n=!ne.und(t.tension)||!ne.und(t.friction);(n||!ne.und(t.frequency)||!ne.und(t.damping)||!ne.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}const Om=[];class BE{constructor(){this.changed=!1,this.values=Om,this.toValues=null,this.fromValues=Om,this.to=void 0,this.from=void 0,this.config=new NE,this.immediate=!1}}function Wb(e,{key:t,props:n,defaultProps:a,state:o,actions:l}){return new Promise((u,f)=>{var d;let h,m,x=zo((d=n.cancel)!=null?d:a?.cancel,t);if(x)P();else{ne.und(n.pause)||(o.paused=zo(n.pause,t));let E=a?.pause;E!==!0&&(E=o.paused||zo(E,t)),h=Qt(n.delay||0,t),E?(o.resumeQueue.add($),l.pause()):(l.resume(),$())}function y(){o.resumeQueue.add($),o.timeouts.delete(m),m.cancel(),h=m.time-Ee.now()}function $(){h>0&&!ur.skipAnimation?(o.delayed=!0,m=Ee.setTimeout(P,h),o.pauseQueue.add(y),o.timeouts.add(m)):P()}function P(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(y),o.timeouts.delete(m),e<=(o.cancelId||0)&&(x=!0);try{l.start(ut({},n,{callId:e,cancel:x}),u)}catch(E){f(E)}}})}const yd=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Va(e.get()):t.every(n=>n.noop)?Gb(e.get()):Hn(e.get(),t.every(n=>n.finished)),Gb=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Hn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Va=e=>({value:e,cancelled:!0,finished:!1});function qb(e,t,n,a){const{callId:o,parentId:l,onRest:u}=t,{asyncTo:f,promise:d}=n;return!l&&e===f&&!t.reset?d:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const h=pd(t,(R,k)=>k==="onRest"?void 0:R);let m,x;const y=new Promise((R,k)=>(m=R,x=k)),$=R=>{const k=o<=(n.cancelId||0)&&Va(a)||o!==n.asyncId&&Hn(a,!1);if(k)throw R.result=k,x(R),R},P=(R,k)=>{const O=new Lm,N=new km;return(async()=>{if(ur.skipAnimation)throw ns(n),N.result=Hn(a,!1),x(N),N;$(O);const F=ne.obj(R)?ut({},R):ut({},k,{to:R});F.parentId=o,lr(h,(ue,ee)=>{ne.und(F[ee])&&(F[ee]=ue)});const H=await a.start(F);return $(O),n.paused&&await new Promise(ue=>{n.resumeQueue.add(ue)}),H})()};let E;if(ur.skipAnimation)return ns(n),Hn(a,!1);try{let R;ne.arr(e)?R=(async k=>{for(const O of k)await P(O)})(e):R=Promise.resolve(e(P,a.stop.bind(a))),await Promise.all([R.then(m),y]),E=Hn(a.get(),!0,!1)}catch(R){if(R instanceof Lm)E=R.result;else if(R instanceof km)E=R.result;else throw R}finally{o==n.asyncId&&(n.asyncId=l,n.asyncTo=l?f:void 0,n.promise=l?d:void 0)}return ne.fun(u)&&Ee.batchedUpdates(()=>{u(E,a,a.item)}),E})()}function ns(e,t){Bo(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class Lm extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class km extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const $f=e=>e instanceof vd;let UE=1;class vd extends kb{constructor(...t){super(...t),this.id=UE++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=ar(this);return t&&t.getValue()}to(...t){return ur.to(this,t)}interpolate(...t){return vE(),ur.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,n=!1){Qo(this,{type:"change",parent:this,value:t,idle:n})}_onPriorityChange(t){this.idle||nu.sort(this),Qo(this,{type:"priority",parent:this,priority:t})}}const na=Symbol.for("SpringPhase"),Zb=1,xf=2,Df=4,kc=e=>(e[na]&Zb)>0,ui=e=>(e[na]&xf)>0,Ro=e=>(e[na]&Df)>0,Fm=(e,t)=>t?e[na]|=xf|Zb:e[na]&=~xf,Nm=(e,t)=>t?e[na]|=Df:e[na]&=~Df;class zE extends vd{constructor(t,n){if(super(),this.key=void 0,this.animation=new BE,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!ne.und(t)||!ne.und(n)){const a=ne.obj(t)?ut({},t):ut({},n,{from:t});ne.und(a.default)&&(a.default=!0),this.start(a)}}get idle(){return!(ui(this)||this._state.asyncTo)||Ro(this)}get goal(){return Jt(this.animation.to)}get velocity(){const t=ar(this);return t instanceof to?t.lastVelocity||0:t.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return kc(this)}get isAnimating(){return ui(this)}get isPaused(){return Ro(this)}get isDelayed(){return this._state.delayed}advance(t){let n=!0,a=!1;const o=this.animation;let{config:l,toValues:u}=o;const f=ou(o.to);!f&&Pn(o.to)&&(u=Ut(Jt(o.to))),o.values.forEach((m,x)=>{if(m.done)return;const y=m.constructor==Ya?1:f?f[x].lastPosition:u[x];let $=o.immediate,P=y;if(!$){if(P=m.lastPosition,l.tension<=0){m.done=!0;return}let E=m.elapsedTime+=t;const R=o.fromValues[x],k=m.v0!=null?m.v0:m.v0=ne.arr(l.velocity)?l.velocity[x]:l.velocity;let O;const N=l.precision||(R==y?.005:Math.min(1,Math.abs(y-R)*.001));if(ne.und(l.duration))if(l.decay){const F=l.decay===!0?.998:l.decay,H=Math.exp(-(1-F)*E);P=R+k/(1-F)*(1-H),$=Math.abs(m.lastPosition-P)<=N,O=k*H}else{O=m.lastVelocity==null?k:m.lastVelocity;const F=l.restVelocity||N/10,H=l.clamp?0:l.bounce,ue=!ne.und(H),ee=R==y?m.v0>0:R<y;let w,V=!1;const q=1,A=Math.ceil(t/q);for(let pe=0;pe<A&&(w=Math.abs(O)>F,!(!w&&($=Math.abs(y-P)<=N,$)));++pe){ue&&(V=P==y||P>y==ee,V&&(O=-O*H,P=y));const U=-l.tension*1e-6*(P-y),B=-l.friction*.001*O,de=(U+B)/l.mass;O=O+de*q,P=P+O*q}}else{let F=1;l.duration>0&&(this._memoizedDuration!==l.duration&&(this._memoizedDuration=l.duration,m.durationProgress>0&&(m.elapsedTime=l.duration*m.durationProgress,E=m.elapsedTime+=t)),F=(l.progress||0)+E/this._memoizedDuration,F=F>1?1:F<0?0:F,m.durationProgress=F),P=R+l.easing(F)*(y-R),O=(P-m.lastPosition)/t,$=F==1}m.lastVelocity=O,Number.isNaN(P)&&(console.warn("Got NaN while animating:",this),$=!0)}f&&!f[x].done&&($=!1),$?m.done=!0:n=!1,m.setValue(P,l.round)&&(a=!0)});const d=ar(this),h=d.getValue();if(n){const m=Jt(o.to);(h!==m||a)&&!l.decay?(d.setValue(m),this._onChange(m)):a&&l.decay&&this._onChange(h),this._stop()}else a&&this._onChange(h)}set(t){return Ee.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ui(this)){const{to:t,config:n}=this.animation;Ee.batchedUpdates(()=>{this._onStart(),n.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,n){let a;return ne.und(t)?(a=this.queue||[],this.queue=[]):a=[ne.obj(t)?t:ut({},n,{to:t})],Promise.all(a.map(o=>this._update(o))).then(o=>yd(this,o))}stop(t){const{to:n}=this.animation;return this._focus(this.get()),ns(this._state,t&&this._lastCallId),Ee.batchedUpdates(()=>this._stop(n,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const n=this.key||"";let{to:a,from:o}=t;a=ne.obj(a)?a[n]:a,(a==null||vf(a))&&(a=void 0),o=ne.obj(o)?o[n]:o,o==null&&(o=void 0);const l={to:a,from:o};return kc(this)||(t.reverse&&([a,o]=[o,a]),o=Jt(o),ne.und(o)?ar(this)||this._set(a):this._set(o)),l}_update(t,n){let a=ut({},t);const{key:o,defaultProps:l}=this;a.default&&Object.assign(l,pd(a,(d,h)=>/^on/.test(h)?Hb(d,o):d)),Bm(this,a,"onProps"),Co(this,"onProps",a,this);const u=this._prepareNode(a);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const f=this._state;return Wb(++this._lastCallId,{key:o,props:a,defaultProps:l,state:f,actions:{pause:()=>{Ro(this)||(Nm(this,!0),Lo(f.pauseQueue),Co(this,"onPause",Hn(this,Ao(this,this.animation.to)),this))},resume:()=>{Ro(this)&&(Nm(this,!1),ui(this)&&this._resume(),Lo(f.resumeQueue),Co(this,"onResume",Hn(this,Ao(this,this.animation.to)),this))},start:this._merge.bind(this,u)}}).then(d=>{if(a.loop&&d.finished&&!(n&&d.noop)){const h=Yb(a);if(h)return this._update(h,!0)}return d})}_merge(t,n,a){if(n.cancel)return this.stop(!0),a(Va(this));const o=!ne.und(t.to),l=!ne.und(t.from);if(o||l)if(n.callId>this._lastToId)this._lastToId=n.callId;else return a(Va(this));const{key:u,defaultProps:f,animation:d}=this,{to:h,from:m}=d;let{to:x=h,from:y=m}=t;l&&!o&&(!n.default||ne.und(x))&&(x=y),n.reverse&&([x,y]=[y,x]);const $=!Lr(y,m);$&&(d.from=y),y=Jt(y);const P=!Lr(x,h);P&&this._focus(x);const E=vf(n.to),{config:R}=d,{decay:k,velocity:O}=R;(o||l)&&(R.velocity=0),n.config&&!E&&KE(R,Qt(n.config,u),n.config!==f.config?Qt(f.config,u):void 0);let N=ar(this);if(!N||ne.und(x))return a(Hn(this,!0));const F=ne.und(n.reset)?l&&!n.default:!ne.und(y)&&zo(n.reset,u),H=F?y:this.get(),ue=ts(x),ee=ne.num(ue)||ne.arr(ue)||au(ue),w=!E&&(!ee||zo(f.immediate||n.immediate,u));if(P){const pe=yf(x);if(pe!==N.constructor)if(w)N=this._set(ue);else throw Error(`Cannot animate between ${N.constructor.name} and ${pe.name}, as the "to" prop suggests`)}const V=N.constructor;let q=Pn(x),A=!1;if(!q){const pe=F||!kc(this)&&$;(P||pe)&&(A=Lr(ts(H),ue),q=!A),(!Lr(d.immediate,w)&&!w||!Lr(R.decay,k)||!Lr(R.velocity,O))&&(q=!0)}if(A&&ui(this)&&(d.changed&&!F?q=!0:q||this._stop(h)),!E&&((q||Pn(h))&&(d.values=N.getPayload(),d.toValues=Pn(x)?null:V==Ya?[1]:Ut(ue)),d.immediate!=w&&(d.immediate=w,!w&&!F&&this._set(h)),q)){const{onRest:pe}=d;Ae(jE,B=>Bm(this,n,B));const U=Hn(this,Ao(this,h));Lo(this._pendingCalls,U),this._pendingCalls.add(a),d.changed&&Ee.batchedUpdates(()=>{d.changed=!F,pe?.(U,this),F?Qt(f.onRest,U):d.onStart==null||d.onStart(U,this)})}F&&this._set(H),E?a(qb(n.to,n,this._state,this)):q?this._start():ui(this)&&!P?this._pendingCalls.add(a):a(Gb(H))}_focus(t){const n=this.animation;t!==n.to&&(_m(this)&&this._detach(),n.to=t,_m(this)&&this._attach())}_attach(){let t=0;const{to:n}=this.animation;Pn(n)&&(eo(n,this),$f(n)&&(t=n.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;Pn(t)&&Xo(t,this)}_set(t,n=!0){const a=Jt(t);if(!ne.und(a)){const o=ar(this);if(!o||!Lr(a,o.getValue())){const l=yf(a);!o||o.constructor!=l?dd(this,l.create(a)):o.setValue(a),o&&Ee.batchedUpdates(()=>{this._onChange(a,n)})}}return ar(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,Co(this,"onStart",Hn(this,Ao(this,t.to)),this))}_onChange(t,n){n||(this._onStart(),Qt(this.animation.onChange,t,this)),Qt(this.defaultProps.onChange,t,this),super._onChange(t,n)}_start(){const t=this.animation;ar(this).reset(Jt(t.to)),t.immediate||(t.fromValues=t.values.map(n=>n.lastPosition)),ui(this)||(Fm(this,!0),Ro(this)||this._resume())}_resume(){ur.skipAnimation?this.finish():nu.start(this)}_stop(t,n){if(ui(this)){Fm(this,!1);const a=this.animation;Ae(a.values,l=>{l.done=!0}),a.toValues&&(a.onChange=a.onPause=a.onResume=void 0),Qo(this,{type:"idle",parent:this});const o=n?Va(this.get()):Hn(this.get(),Ao(this,t??a.to));Lo(this._pendingCalls,o),a.changed&&(a.changed=!1,Co(this,"onRest",o,this))}}}function Ao(e,t){const n=ts(t),a=ts(e.get());return Lr(a,n)}function Yb(e,t=e.loop,n=e.to){let a=Qt(t);if(a){const o=a!==!0&&md(a),l=(o||e).reverse,u=!o||o.reset;return Bl(ut({},e,{loop:t,default:!1,pause:void 0,to:!l||vf(n)?n:void 0,from:u?e.from:void 0,reset:u},o))}}function Bl(e){const{to:t,from:n}=e=md(e),a=new Set;return ne.obj(t)&&Km(t,a),ne.obj(n)&&Km(n,a),e.keys=a.size?Array.from(a):null,e}function Km(e,t){lr(e,(n,a)=>n!=null&&t.add(a))}const jE=["onStart","onRest","onChange","onPause","onResume"];function Bm(e,t,n){e.animation[n]=t[n]!==Vb(t,n)?Hb(t[n],e.key):void 0}function Co(e,t,...n){var a,o,l,u;(a=(o=e.animation)[t])==null||a.call(o,...n),(l=(u=e.defaultProps)[t])==null||l.call(u,...n)}const HE=["onStart","onChange","onRest"];let VE=1;class WE{constructor(t,n){this.id=VE++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),t&&this.start(ut({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((n,a)=>t[a]=n.get()),t}set(t){for(const n in t){const a=t[n];ne.und(a)||this.springs[n].set(a)}}update(t){return t&&this.queue.push(Bl(t)),this}start(t){let{queue:n}=this;return t?n=Ut(t).map(Bl):this.queue=[],this._flush?this._flush(this,n):(e$(this,n),GE(this,n))}stop(t,n){if(t!==!!t&&(n=t),n){const a=this.springs;Ae(Ut(n),o=>a[o].stop(!!t))}else ns(this._state,this._lastAsyncId),this.each(a=>a.stop(!!t));return this}pause(t){if(ne.und(t))this.start({pause:!0});else{const n=this.springs;Ae(Ut(t),a=>n[a].pause())}return this}resume(t){if(ne.und(t))this.start({pause:!1});else{const n=this.springs;Ae(Ut(t),a=>n[a].resume())}return this}each(t){lr(this.springs,t)}_onFrame(){const{onStart:t,onChange:n,onRest:a}=this._events,o=this._active.size>0,l=this._changed.size>0;(o&&!this._started||l&&!this._started)&&(this._started=!0,Bo(t,([d,h])=>{h.value=this.get(),d(h,this,this._item)}));const u=!o&&this._started,f=l||u&&a.size?this.get():null;l&&n.size&&Bo(n,([d,h])=>{h.value=f,d(h,this,this._item)}),u&&(this._started=!1,Bo(a,([d,h])=>{h.value=f,d(h,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;Ee.onFrame(this._onFrame)}}function GE(e,t){return Promise.all(t.map(n=>Jb(e,n))).then(n=>yd(e,n))}async function Jb(e,t,n){const{keys:a,to:o,from:l,loop:u,onRest:f,onResolve:d}=t,h=ne.obj(t.default)&&t.default;u&&(t.loop=!1),o===!1&&(t.to=null),l===!1&&(t.from=null);const m=ne.arr(o)||ne.fun(o)?o:void 0;m?(t.to=void 0,t.onRest=void 0,h&&(h.onRest=void 0)):Ae(HE,E=>{const R=t[E];if(ne.fun(R)){const k=e._events[E];t[E]=({finished:O,cancelled:N})=>{const F=k.get(R);F?(O||(F.finished=!1),N&&(F.cancelled=!0)):k.set(R,{value:null,finished:O||!1,cancelled:N||!1})},h&&(h[E]=t[E])}});const x=e._state;t.pause===!x.paused?(x.paused=t.pause,Lo(t.pause?x.pauseQueue:x.resumeQueue)):x.paused&&(t.pause=!0);const y=(a||Object.keys(e.springs)).map(E=>e.springs[E].start(t)),$=t.cancel===!0||Vb(t,"cancel")===!0;(m||$&&x.asyncId)&&y.push(Wb(++e._lastAsyncId,{props:t,state:x,actions:{pause:pf,resume:pf,start(E,R){$?(ns(x,e._lastAsyncId),R(Va(e))):(E.onRest=f,R(qb(m,E,x,e)))}}})),x.paused&&await new Promise(E=>{x.resumeQueue.add(E)});const P=yd(e,await Promise.all(y));if(u&&P.finished&&!(n&&P.noop)){const E=Yb(t,u,o);if(E)return e$(e,[E]),Jb(e,E,!0)}return d&&Ee.batchedUpdates(()=>d(P,e,e.item)),P}function qE(e,t){const n=ut({},e.springs);return t&&Ae(Ut(t),a=>{ne.und(a.keys)&&(a=Bl(a)),ne.obj(a.to)||(a=ut({},a,{to:void 0})),Xb(n,a,o=>Qb(o))}),ZE(e,n),n}function ZE(e,t){lr(t,(n,a)=>{e.springs[a]||(e.springs[a]=n,eo(n,e))})}function Qb(e,t){const n=new zE;return n.key=e,t&&eo(n,t),n}function Xb(e,t,n){t.keys&&Ae(t.keys,a=>{(e[a]||(e[a]=n(a)))._prepareNode(t)})}function e$(e,t){Ae(t,n=>{Xb(e.springs,n,a=>Qb(a,e))})}function YE(e,t){if(e==null)return{};var n={},a=Object.keys(e),o,l;for(l=0;l<a.length;l++)o=a[l],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const JE=["children"],lu=e=>{let{children:t}=e,n=YE(e,JE);const a=v.useContext(Ul),o=n.pause||!!a.pause,l=n.immediate||!!a.immediate;n=DE(()=>({pause:o,immediate:l}),[o,l]);const{Provider:u}=Ul;return Yi.createElement(u,{value:n},t)},Ul=QE(lu,{});lu.Provider=Ul.Provider;lu.Consumer=Ul.Consumer;function QE(e,t){return Object.assign(e,Yi.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}const XE=()=>{const e=[],t=function(o){$E();const l=[];return Ae(e,(u,f)=>{if(ne.und(o))l.push(u.start());else{const d=n(o,u,f);d&&l.push(u.start(d))}}),l};t.current=e,t.add=function(a){e.includes(a)||e.push(a)},t.delete=function(a){const o=e.indexOf(a);~o&&e.splice(o,1)},t.pause=function(){return Ae(e,a=>a.pause(...arguments)),this},t.resume=function(){return Ae(e,a=>a.resume(...arguments)),this},t.set=function(a){Ae(e,o=>o.set(a))},t.start=function(a){const o=[];return Ae(e,(l,u)=>{if(ne.und(a))o.push(l.start());else{const f=this._getProps(a,l,u);f&&o.push(l.start(f))}}),o},t.stop=function(){return Ae(e,a=>a.stop(...arguments)),this},t.update=function(a){return Ae(e,(o,l)=>o.update(this._getProps(a,o,l))),this};const n=function(o,l,u){return ne.fun(o)?o(u,l):o};return t._getProps=n,t};let Bt;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(Bt||(Bt={}));function bd(e,t,n){const a=ne.fun(t)&&t,{reset:o,sort:l,trail:u=0,expires:f=!0,exitBeforeEnter:d=!1,onDestroyed:h,ref:m,config:x}=a?a():t,y=v.useMemo(()=>a||arguments.length==3?XE():void 0,[]),$=Ut(e),P=[],E=v.useRef(null),R=o?null:E.current;Ka(()=>{E.current=P}),zb(()=>(Ae(P,B=>{y?.add(B.ctrl),B.ctrl.ref=y}),()=>{Ae(E.current,B=>{B.expired&&clearTimeout(B.expirationId),Mm(B.ctrl,y),B.ctrl.stop(!0)})}));const k=t4($,a?a():t,R),O=o&&E.current||[];Ka(()=>Ae(O,({ctrl:B,item:de,key:Q})=>{Mm(B,y),Qt(h,de,Q)}));const N=[];if(R&&Ae(R,(B,de)=>{B.expired?(clearTimeout(B.expirationId),O.push(B)):(de=N[de]=k.indexOf(B.key),~de&&(P[de]=B))}),Ae($,(B,de)=>{P[de]||(P[de]={key:k[de],item:B,phase:Bt.MOUNT,ctrl:new WE},P[de].ctrl.item=B)}),N.length){let B=-1;const{leave:de}=a?a():t;Ae(N,(Q,te)=>{const Y=R[te];~Q?(B=P.indexOf(Y),P[B]=ut({},Y,{item:$[Q]})):de&&P.splice(++B,0,Y)})}ne.fun(l)&&P.sort((B,de)=>l(B.item,de.item));let F=-u;const H=Ub(),ue=pd(t),ee=new Map,w=v.useRef(new Map),V=v.useRef(!1);Ae(P,(B,de)=>{const Q=B.key,te=B.phase,Y=a?a():t;let me,ie,re=Qt(Y.delay||0,Q);if(te==Bt.MOUNT)me=Y.enter,ie=Bt.ENTER;else{const ve=k.indexOf(Q)<0;if(te!=Bt.LEAVE)if(ve)me=Y.leave,ie=Bt.LEAVE;else if(me=Y.update)ie=Bt.UPDATE;else return;else if(!ve)me=Y.enter,ie=Bt.ENTER;else return}if(me=Qt(me,B.item,de),me=ne.obj(me)?md(me):{to:me},!me.config){const ve=x||ue.config;me.config=Qt(ve,B.item,de,ie)}F+=u;const Ie=ut({},ue,{delay:re+F,ref:m,immediate:Y.immediate,reset:!1},me);if(ie==Bt.ENTER&&ne.und(Ie.from)){const ve=a?a():t,Ot=ne.und(ve.initial)||R?ve.from:ve.initial;Ie.from=Qt(Ot,B.item,de)}const{onResolve:mt}=Ie;Ie.onResolve=ve=>{Qt(mt,ve);const Ot=E.current,Et=Ot.find(et=>et.key===Q);if(Et&&!(ve.cancelled&&Et.phase!=Bt.UPDATE)&&Et.ctrl.idle){const et=Ot.every(gt=>gt.ctrl.idle);if(Et.phase==Bt.LEAVE){const gt=Qt(f,Et.item);if(gt!==!1){const _n=gt===!0?0:gt;if(Et.expired=!0,!et&&_n>0){_n<=2147483647&&(Et.expirationId=setTimeout(H,_n));return}}}et&&Ot.some(gt=>gt.expired)&&(w.current.delete(Et),d&&(V.current=!0),H())}};const $t=qE(B.ctrl,Ie);ie===Bt.LEAVE&&d?w.current.set(B,{phase:ie,springs:$t,payload:Ie}):ee.set(B,{phase:ie,springs:$t,payload:Ie})});const q=v.useContext(lu),A=SE(q),pe=q!==A&&kE(q);Ka(()=>{pe&&Ae(P,B=>{B.ctrl.start({default:q})})},[q]),Ae(ee,(B,de)=>{if(w.current.size){const Q=P.findIndex(te=>te.key===de.key);P.splice(Q,1)}}),Ka(()=>{Ae(w.current.size?w.current:ee,({phase:B,payload:de},Q)=>{const{ctrl:te}=Q;Q.phase=B,y?.add(te),pe&&B==Bt.ENTER&&te.start({default:q}),de&&(FE(te,de.ref),(te.ref||y)&&!V.current?te.update(de):(te.start(de),V.current&&(V.current=!1)))})},o?void 0:n);const U=B=>Yi.createElement(Yi.Fragment,null,P.map((de,Q)=>{const{springs:te}=ee.get(de)||de.ctrl,Y=B(ut({},te),de.item,de,Q);return Y&&Y.type?Yi.createElement(Y.type,ut({},Y.props,{key:ne.str(de.key)||ne.num(de.key)?de.key:de.ctrl.id,ref:Y.ref})):Y}));return y?[U,y]:U}let e4=1;function t4(e,{key:t,keys:n=t},a){if(n===null){const o=new Set;return e.map(l=>{const u=a&&a.find(f=>f.item===l&&f.phase!==Bt.LEAVE&&!o.has(f));return u?(o.add(u),u.key):e4++})}return ne.und(n)?e:ne.fun(n)?e.map(n):Ut(n)}class n4 extends vd{constructor(t,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=Jo(...n);const a=this._get(),o=yf(a);dd(this,o.create(a))}advance(t){const n=this._get(),a=this.get();Lr(n,a)||(ar(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&Um(this._active)&&Fc(this)}_get(){const t=ne.arr(this.source)?this.source.map(Jt):Ut(Jt(this.source));return this.calc(...t)}_start(){this.idle&&!Um(this._active)&&(this.idle=!1,Ae(ou(this),t=>{t.done=!1}),ur.skipAnimation?(Ee.batchedUpdates(()=>this.advance()),Fc(this)):nu.start(this))}_attach(){let t=1;Ae(Ut(this.source),n=>{Pn(n)&&eo(n,this),$f(n)&&(n.idle||this._active.add(n),t=Math.max(t,n.priority+1))}),this.priority=t,this._start()}_detach(){Ae(Ut(this.source),t=>{Pn(t)&&Xo(t,this)}),this._active.clear(),Fc(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=Ut(this.source).reduce((n,a)=>Math.max(n,($f(a)?a.priority:0)+1),0))}}function r4(e){return e.idle!==!1}function Um(e){return!e.size||Array.from(e).every(r4)}function Fc(e){e.idle||(e.idle=!0,Ae(ou(e),t=>{t.done=!0}),Qo(e,{type:"idle",parent:e}))}ur.assign({createStringInterpolator:Kb,to:(e,t)=>new n4(e,t)});function $d(e,t){if(e==null)return{};var n={},a=Object.keys(e),o,l;for(l=0;l<a.length;l++)o=a[l],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const i4=["style","children","scrollTop","scrollLeft","viewBox"],t$=/^--/;function a4(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!t$.test(e)&&!(jo.hasOwnProperty(e)&&jo[e])?t+"px":(""+t).trim()}const zm={};function o4(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",a=t,{style:o,children:l,scrollTop:u,scrollLeft:f,viewBox:d}=a,h=$d(a,i4),m=Object.values(h),x=Object.keys(h).map(y=>n||e.hasAttribute(y)?y:zm[y]||(zm[y]=y.replace(/([A-Z])/g,$=>"-"+$.toLowerCase())));l!==void 0&&(e.textContent=l);for(let y in o)if(o.hasOwnProperty(y)){const $=a4(y,o[y]);t$.test(y)?e.style.setProperty(y,$):e.style[y]=$}x.forEach((y,$)=>{e.setAttribute(y,m[$])}),u!==void 0&&(e.scrollTop=u),f!==void 0&&(e.scrollLeft=f),d!==void 0&&e.setAttribute("viewBox",d)}let jo={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const s4=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),l4=["Webkit","Ms","Moz","O"];jo=Object.keys(jo).reduce((e,t)=>(l4.forEach(n=>e[s4(n,t)]=e[t]),e),jo);const u4=["x","y","z"],c4=/^(matrix|translate|scale|rotate|skew)/,f4=/^(translate)/,d4=/^(rotate|skew)/,Nc=(e,t)=>ne.num(e)&&e!==0?e+t:e,yl=(e,t)=>ne.arr(e)?e.every(n=>yl(n,t)):ne.num(e)?e===t:parseFloat(e)===t;class h4 extends su{constructor(t){let{x:n,y:a,z:o}=t,l=$d(t,u4);const u=[],f=[];(n||a||o)&&(u.push([n||0,a||0,o||0]),f.push(d=>[`translate3d(${d.map(h=>Nc(h,"px")).join(",")})`,yl(d,0)])),lr(l,(d,h)=>{if(h==="transform")u.push([d||""]),f.push(m=>[m,m===""]);else if(c4.test(h)){if(delete l[h],ne.und(d))return;const m=f4.test(h)?"px":d4.test(h)?"deg":"";u.push(Ut(d)),f.push(h==="rotate3d"?([x,y,$,P])=>[`rotate3d(${x},${y},${$},${Nc(P,m)})`,yl(P,0)]:x=>[`${h}(${x.map(y=>Nc(y,m)).join(",")})`,yl(x,h.startsWith("scale")?1:0)])}}),u.length&&(l.transform=new p4(u,f)),super(l)}}class p4 extends kb{constructor(t,n){super(),this._value=null,this.inputs=t,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let t="",n=!0;return Ae(this.inputs,(a,o)=>{const l=Jt(a[0]),[u,f]=this.transforms[o](ne.arr(l)?l:a.map(Jt));t+=" "+u,n=n&&f}),n?"none":t}observerAdded(t){t==1&&Ae(this.inputs,n=>Ae(n,a=>Pn(a)&&eo(a,this)))}observerRemoved(t){t==0&&Ae(this.inputs,n=>Ae(n,a=>Pn(a)&&Xo(a,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Qo(this,t)}}const m4=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],g4=["scrollTop","scrollLeft"];ur.assign({batchedUpdates:Tf.unstable_batchedUpdates,createStringInterpolator:Kb,colors:J_});const y4=CE(m4,{applyAnimatedValues:o4,createAnimatedStyle:e=>new h4(e),getComponentProps:e=>$d(e,g4)}),xd=y4.animated,v4=({isVisible:e,children:t})=>bd(e,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((a,o)=>o&&L.jsx(xd.div,{style:a,children:t})),b4="fixed",$4=({isVisible:e,children:t})=>bd(e,{from:{opacity:0,position:b4,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1},leave:{opacity:0},config:gd.stiff})((a,o)=>o&&L.jsx(xd.div,{style:a,children:t})),x4="fixed",D4=({isVisible:e,children:t})=>bd(e,{from:{opacity:0,scale:.75,position:x4,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1,scale:1},leave:{opacity:0,scale:.75},config:gd.stiff})((a,o)=>o&&L.jsx(xd.div,{style:a,children:t})),w4=e=>{const{children:t}=e,n=v.useRef(null),{overlayProps:a,underlayProps:o}=Qf(e,n),{modalProps:l}=ky(),{dialogProps:u}=td(e,n);return L.jsx("div",{...o,children:L.jsx(If,{contain:!0,restoreFocus:!0,autoFocus:!0,children:L.jsx("div",{...a,...u,...l,ref:n,children:t})})})},Dd=e=>{const[t,n]=v.useState(!1),{children:a,state:o,onCloseCallBack:l,transitionComponent:u=D4}=e,f=v.useCallback(()=>{o.close(),l?.()},[o.close,l]);return v.useEffect(()=>{!o.isOpen&&t||n(!0)},[o.isOpen]),t?L.jsx(Ly,{children:L.jsx(u,{isVisible:o.isOpen,children:L.jsx(w4,{isOpen:o.isOpen,onClose:f,isDismissable:!0,children:a})})}):null},P4=e=>{const{children:t,closeBtnRender:n,themeName:a="sidePanel",tokens:o,customTheme:l}=e,u=Se(`${a}.wrapper`,o,l),f=Se(`${a}.container`,o,l),d=Se(`${a}.innerContainer`,o,l),{overlayState:h}=H_();return L.jsx(Dd,{state:h,transitionComponent:$4,children:L.jsxs(Sb,{className:u,children:[n&&n(),L.jsx(v4,{isVisible:h.isOpen,children:L.jsx("div",{className:f,children:L.jsx("div",{className:d,children:t})})})]})})},S4=v.memo(P4),T4=e=>{const{children:t,thumbnailContent:n,isOpen:a,onOpenCallBack:o,onCloseCallBack:l,label:u,themeName:f="lightBox",tokens:d,customTheme:h}=e,{state:m,openButtonRef:x,openButtonProps:y,closeButtonProps:$,closeButtonRef:P}=j_(a,o,l),E=Se(`${f}.container`,d,h);return L.jsxs("div",{children:[L.jsxs("div",{ref:x,...y,...a?{tabIndex:-1}:{},children:[u&&L.jsx(Ur,{themeName:`${f}.label`,tokens:{size:"footnotes"},children:u}),n]}),L.jsx(Dd,{onCloseCallBack:l,state:m,children:L.jsxs("div",{children:[L.jsx(nd,{themeName:`${f}.closeBtn`,type:"button",...$,ref:P,children:L.jsx(jr,{icon:"CloseBtn"})}),L.jsx("div",{className:E,children:t})]})})]})};function Kc(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function jm(e,t,n,a,o){let l={};for(let f in t)l[f]=Math.floor(t[f]/2),l[f]>0&&t[f]%2===0&&l[f]--;let u=Zi(e,t,n).subtract(l);return rs(e,u,t,n,a,o)}function Zi(e,t,n,a,o){let l=e;return t.years?l=h3(e):t.months?l=ls(e):t.weeks&&(l=Wo(e,n)),rs(e,l,t,n,a,o)}function wf(e,t,n,a,o){let l={...t};t.days?l.days--:t.weeks?l.weeks--:t.months?l.months--:t.years&&l.years--;let u=Zi(e,t,n).subtract(l);return rs(e,u,t,n,a,o)}function rs(e,t,n,a,o,l){return o&&e.compare(o)>=0&&(t=Pg(t,Zi(sr(o),n,a))),l&&e.compare(l)<=0&&(t=wg(t,wf(sr(l),n,a))),t}function Vi(e,t,n){return t&&(e=Pg(e,sr(t))),n&&(e=wg(e,sr(n))),e}function _4(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});if(e.compare(t)>=0)return e}function E4(e){let t=v.useMemo(()=>new za(e.locale),[e.locale]),n=v.useMemo(()=>t.resolvedOptions(),[t]),{locale:a,createCalendar:o,visibleDuration:l={months:1},minValue:u,maxValue:f,selectionAlignment:d,isDateUnavailable:h,pageBehavior:m="visible"}=e,x=v.useMemo(()=>o(n.calendar),[o,n.calendar]),[y,$]=mi(e.value,e.defaultValue,e.onChange),P=v.useMemo(()=>y?it(sr(y),x):null,[y,x]),E=v.useMemo(()=>y&&"timeZone"in y?y.timeZone:n.timeZone,[y,n.timeZone]),R=v.useMemo(()=>e.focusedValue?Vi(it(sr(e.focusedValue),x),u,f):void 0,[e.focusedValue,x,u,f]),k=v.useMemo(()=>Vi(e.defaultFocusedValue?it(sr(e.defaultFocusedValue),x):P||it(Bf(E),x),u,f),[e.defaultFocusedValue,P,E,x,u,f]),[O,N]=mi(R,k,e.onFocusChange),[F,H]=v.useState(()=>{switch(d){case"start":return Zi(O,l,a,u,f);case"end":return wf(O,l,a,u,f);case"center":default:return jm(O,l,a,u,f)}}),[ue,ee]=v.useState(e.autoFocus||!1),w=v.useMemo(()=>{let Q={...l};return Q.days?Q.days--:Q.days=-1,F.add(Q)},[F,l]),[V,q]=v.useState(x.identifier);if(x.identifier!==V){let Q=it(O,x);H(jm(Q,l,a,u,f)),N(Q),q(x.identifier)}Kc(O,u,f)?N(Vi(O,u,f)):O.compare(F)<0?H(wf(O,l,a,u,f)):O.compare(w)>0&&H(Zi(O,l,a,u,f));function A(Q){Q=Vi(Q,u,f),N(Q)}function pe(Q){if(!e.isDisabled&&!e.isReadOnly){if(Q=Vi(Q,u,f),Q=_4(Q,F,h),!Q)return;Q=it(Q,y?.calendar||new un),y&&"hour"in y?$(y.set(Q)):$(Q)}}let U=v.useMemo(()=>P?h&&h(P)?!0:Kc(P,u,f):!1,[P,h,u,f]),B=e.validationState||(U?"invalid":null),de=v.useMemo(()=>m==="visible"?l:Bc(l),[m,l]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:P,setValue:pe,visibleRange:{start:F,end:w},minValue:u,maxValue:f,focusedDate:O,timeZone:E,validationState:B,setFocusedDate(Q){A(Q),ee(!0)},focusNextDay(){A(O.add({days:1}))},focusPreviousDay(){A(O.subtract({days:1}))},focusNextRow(){l.days?this.focusNextPage():(l.weeks||l.months||l.years)&&A(O.add({weeks:1}))},focusPreviousRow(){l.days?this.focusPreviousPage():(l.weeks||l.months||l.years)&&A(O.subtract({weeks:1}))},focusNextPage(){let Q=F.add(de);N(Vi(O.add(de),u,f)),H(Zi(rs(O,Q,de,a,u,f),de,a))},focusPreviousPage(){let Q=F.subtract(de);N(Vi(O.subtract(de),u,f)),H(Zi(rs(O,Q,de,a,u,f),de,a))},focusSectionStart(){l.days?A(F):l.weeks?A(Wo(O,a)):(l.months||l.years)&&A(ls(O))},focusSectionEnd(){l.days?A(w):l.weeks?A(g3(O,a)):(l.months||l.years)&&A(Qc(O))},focusNextSection(Q){if(!Q&&!l.days){A(O.add(Bc(l)));return}l.days?this.focusNextPage():l.weeks?A(O.add({months:1})):(l.months||l.years)&&A(O.add({years:1}))},focusPreviousSection(Q){if(!Q&&!l.days){A(O.subtract(Bc(l)));return}l.days?this.focusPreviousPage():l.weeks?A(O.subtract({months:1})):(l.months||l.years)&&A(O.subtract({years:1}))},selectFocusedDate(){pe(O)},selectDate(Q){pe(Q)},isFocused:ue,setFocused:ee,isInvalid(Q){return Kc(Q,u,f)},isSelected(Q){return P!=null&&ht(Q,P)&&!this.isCellDisabled(Q)&&!this.isCellUnavailable(Q)},isCellFocused(Q){return ue&&O&&ht(Q,O)},isCellDisabled(Q){return e.isDisabled||Q.compare(F)<0||Q.compare(w)>0||this.isInvalid(Q,u,f)},isCellUnavailable(Q){return e.isDateUnavailable&&e.isDateUnavailable(Q)},isPreviousVisibleRangeInvalid(){let Q=F.subtract({days:1});return ht(Q,F)||this.isInvalid(Q,u,f)},isNextVisibleRangeInvalid(){let Q=w.add({days:1});return ht(Q,w)||this.isInvalid(Q,u,f)},getDatesInWeek(Q,te=F){let Y=te.add({weeks:Q}),me=[];Y=Wo(Y,a);let ie=Zl(Y,a);for(let re=0;re<ie;re++)me.push(null);for(;me.length<7;){me.push(Y);let re=Y.add({days:1});if(ht(Y,re))break;Y=re}for(;me.length<7;)me.push(null);return me}}}function Bc(e){let t={...e};for(let n in e)t[n]=1;return t}class jn extends Set{constructor(t,n,a){super(t),t instanceof jn?(this.anchorKey=n||t.anchorKey,this.currentKey=a||t.currentKey):(this.anchorKey=n,this.currentKey=a)}}function R4(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function A4(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:a,selectionBehavior:o="toggle",disabledBehavior:l="all"}=e,u=v.useRef(!1),[,f]=v.useState(!1),d=v.useRef(null),h=v.useRef(null),[,m]=v.useState(null),x=v.useMemo(()=>Hm(e.selectedKeys),[e.selectedKeys]),y=v.useMemo(()=>Hm(e.defaultSelectedKeys,new jn),[e.defaultSelectedKeys]),[$,P]=mi(x,y,e.onSelectionChange),E=v.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[R,k]=v.useState(o);o==="replace"&&R==="toggle"&&typeof $=="object"&&$.size===0&&k("replace");let O=v.useRef(o);return v.useEffect(()=>{o!==O.current&&(k(o),O.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:R,setSelectionBehavior:k,get isFocused(){return u.current},setFocused(N){u.current=N,f(N)},get focusedKey(){return d.current},get childFocusStrategy(){return h.current},setFocusedKey(N,F="first"){d.current=N,h.current=F,m(N)},selectedKeys:$,setSelectedKeys(N){(a||!R4(N,$))&&P(N)},disabledKeys:E,disabledBehavior:l}}function Hm(e,t){return e?e==="all"?"all":new jn(e):t}class C4{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(a=>n.has(a)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let a=this.collection.getItem(n);(!t||a&&Mc(this.collection,a,t)<0)&&(t=a)}return t?.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let a=this.collection.getItem(n);(!t||a&&Mc(this.collection,a,t)>0)&&(t=a)}return t?.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new jn([t],t,t);else{let a=this.state.selectedKeys,o=a.anchorKey||t;n=new jn(a,o,t);for(let l of this.getKeyRange(o,a.currentKey||t))n.delete(l);for(let l of this.getKeyRange(t,o))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let a=this.collection.getItem(t),o=this.collection.getItem(n);return a&&o?Mc(this.collection,a,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let a=[],o=t;for(;o;){let l=this.collection.getItem(o);if((l&&l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&a.push(o),o===n)return a;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new jn(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new jn([t],t,t):new jn;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new jn;for(let a of t)if(a=this.getKey(a),a!=null&&(n.add(a),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=a=>{for(;a;){if(this.canSelectItem(a)){let o=this.collection.getItem(a);o.type==="item"&&t.push(a),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(u_(w0(o,this.collection)).key)}a=this.collection.getKeyAfter(a)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new jn)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let a of t)if(!n.has(a))return!1;for(let a of n)if(!t.has(a))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}constructor(t,n,a){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=a?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class Vm{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return n?.childNodes||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let u of l.childNodes)n(u)};for(let l of t)n(l);let a,o=0;for(let[l,u]of this.keyMap)a?(a.nextKey=l,u.prevKey=a.key):(this.firstKey=l,u.prevKey=void 0),u.type==="item"&&(u.index=o++),a=u,a.nextKey=void 0;this.lastKey=a?.key}}function M4(e){let{filter:t}=e,n=A4(e),a=v.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=v.useCallback(h=>t?new Vm(t(h)):new Vm(h),[t]),l=v.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=l_(e,o,l),f=v.useMemo(()=>new C4(u,n),[u,n]);const d=v.useRef(null);return v.useEffect(()=>{if(n.focusedKey!=null&&!u.getItem(n.focusedKey)){const h=d.current.getItem(n.focusedKey),m=[...d.current.getKeys()].map(E=>{const R=d.current.getItem(E);return R.type==="item"?R:null}).filter(E=>E!==null),x=[...u.getKeys()].map(E=>{const R=u.getItem(E);return R.type==="item"?R:null}).filter(E=>E!==null),y=m.length-x.length;let $=Math.min(y>1?Math.max(h.index-y+1,0):h.index,x.length-1),P;for(;$>=0;){if(!f.isDisabled(x[$].key)){P=x[$];break}$<x.length-1?$++:($>h.index&&($=h.index),$--)}n.setFocusedKey(P?P.key:null)}d.current=u},[u,f,n,n.focusedKey]),{collection:u,disabledKeys:a,selectionManager:f}}function I4(e){var t;let[n,a]=mi(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=v.useMemo(()=>n!=null?[n]:[],[n]),{collection:l,disabledKeys:u,selectionManager:f}=M4({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:h=>{let m=h.values().next().value;m===n&&e.onSelectionChange&&e.onSelectionChange(m),a(m)}}),d=n!=null?l.getItem(n):null;return{collection:l,disabledKeys:u,selectionManager:f,selectedKey:n,setSelectedKey:a,selectedItem:d}}function O4(e){let t=eu(e),[n,a]=v.useState(null);return{focusStrategy:n,...t,open(o=null){a(o),t.open()},toggle(o=null){a(o),t.toggle()}}}function n$(e,t,n){return e!=null&&(t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0)}const L4={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},k4={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Pf(e,t){e={...t.shouldForceLeadingZeros?k4:L4,...e};let a=t.granularity||"minute",o=Object.keys(e);var l;let u=o.indexOf((l=t.maxGranularity)!==null&&l!==void 0?l:"year");u<0&&(u=0);let f=o.indexOf(a);if(f<0&&(f=2),u>f)throw new Error("maxGranularity must be greater than granularity");let d=o.slice(u,f+1).reduce((m,x)=>(m[x]=e[x],m),{});return t.hourCycle!=null&&(d.hour12=t.hourCycle===12),d.timeZone=t.timeZone||"UTC",(a==="hour"||a==="minute"||a==="second")&&t.timeZone&&!t.hideTimeZone&&(d.timeZoneName="short"),t.showEra&&u===0&&(d.era="short"),d}function Wm(e){return e&&"hour"in e?e:new Wf}function r$(e,t){if(e===null)return null;if(e)return it(e,t)}function ul(e,t,n,a){if(e)return r$(e,n);let o=it(bg(a).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?sr(o):a?o:gi(o)}function i$(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,a=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[o,l]=v.useState([a,n]);e&&(o[0]!==a||o[1]!==n)&&l([a,n]),t||(t=e?a:o[0]);let u=e?n:o[1];return[t,u]}function F4(e){var t;let n=eu(e),[a,o]=mi(e.value,e.defaultValue||null,e.onChange),l=a||e.placeholderValue,[u,f]=i$(l,e.granularity),d=a!=null?a.toDate(f??"UTC"):null,h=u==="hour"||u==="minute"||u==="second";var m;let x=(m=e.shouldCloseOnSelect)!==null&&m!==void 0?m:!0,[y,$]=v.useState(null),[P,E]=v.useState(null);if(a&&(y=a,"hour"in a&&(P=a)),l&&!(u in l))throw new Error("Invalid granularity "+u+" for value "+l.toString());let R=(F,H)=>{o("timeZone"in H?H.set(sr(F)):gi(F,H)),$(null),E(null)},k=F=>{let H=typeof x=="function"?x():x;h?P||H?R(F,P||Wm(e.placeholderValue)):$(F):o(F),H&&n.setOpen(!1)},O=F=>{y&&F?R(y,F):E(F)},N=e.validationState||(n$(a,e.minValue,e.maxValue)?"invalid":null)||(a&&(!((t=e.isDateUnavailable)===null||t===void 0)&&t.call(e,a))?"invalid":null);return{value:a,setValue:o,dateValue:y,timeValue:P,setDateValue:k,setTimeValue:O,granularity:u,hasTime:h,...n,setOpen(F){!F&&!a&&y&&h&&R(y,P||Wm(e.placeholderValue)),n.setOpen(F)},validationState:N,formatValue(F,H){if(!d)return"";let ue=Pf(H,{granularity:u,timeZone:f,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:a.calendar.identifier==="gregory"&&a.era==="BC"});return new za(F,ue).format(d)}}}const N4=new Kf({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function K4(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?N4.getStringForLocale(e,n):"––"}const cl={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Gm={year:5,month:2,day:7,hour:2,minute:15,second:15},B4={dayperiod:"dayPeriod"};function U4(e){let{locale:t,createCalendar:n,hideTimeZone:a,isDisabled:o,isReadOnly:l,isRequired:u}=e,f=e.value||e.defaultValue||e.placeholderValue,[d,h]=i$(f,e.granularity),m=h||"UTC";if(f&&!(d in f))throw new Error("Invalid granularity "+d+" for value "+f.toString());let x=v.useMemo(()=>new za(t),[t]),y=v.useMemo(()=>n(x.resolvedOptions().calendar),[n,x]),[$,P]=mi(e.value,e.defaultValue,e.onChange),E=v.useMemo(()=>r$($,y),[$,y]),[R,k]=v.useState(()=>ul(e.placeholderValue,d,y,h)),O=E||R,N=y.identifier==="gregory"&&O.era==="BC";var F;let H=v.useMemo(()=>({granularity:d,maxGranularity:(F=e.maxGranularity)!==null&&F!==void 0?F:"year",timeZone:h,hideTimeZone:a,hourCycle:e.hourCycle,showEra:N,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,h,a,N]),ue=v.useMemo(()=>Pf({},H),[H]),ee=v.useMemo(()=>new za(t,ue),[t,ue]),w=v.useMemo(()=>ee.resolvedOptions(),[ee]),V=v.useMemo(()=>ee.formatToParts(new Date).filter(re=>cl[re.type]).reduce((re,Ie)=>(re[Ie.type]=!0,re),{}),[ee]),[q,A]=v.useState(()=>e.value||e.defaultValue?{...V}:{}),pe=v.useRef(y.identifier);v.useEffect(()=>{y.identifier!==pe.current&&(pe.current=y.identifier,k(re=>Object.keys(q).length>0?it(re,y):ul(e.placeholderValue,d,y,h)))},[y,d,q,h,e.placeholderValue]),$&&Object.keys(q).length<Object.keys(V).length&&(q={...V},A(q)),$==null&&Object.keys(q).length===Object.keys(V).length&&(q={},A(q),k(ul(e.placeholderValue,d,y,h)));let U=E&&Object.keys(q).length>=Object.keys(V).length?E:R,B=re=>{e.isDisabled||e.isReadOnly||(Object.keys(q).length>=Object.keys(V).length?(re=it(re,f?.calendar||new un),P(re)):k(re))},de=v.useMemo(()=>U.toDate(m),[U,m]),Q=v.useMemo(()=>ee.formatToParts(de).map(re=>{let Ie=cl[re.type];re.type==="era"&&y.getEras().length===1&&(Ie=!1);let mt=cl[re.type]&&!q[re.type],$t=cl[re.type]?K4(re.type,re.value,t):null;return{type:B4[re.type]||re.type,text:mt?$t:re.value,...z4(U,re.type,w),isPlaceholder:mt,placeholder:$t,isEditable:Ie}}),[de,q,ee,w,U,y,t]);V.era&&q.year&&!q.era?(q.era=!0,A({...q})):!V.era&&q.era&&(delete q.era,A({...q}));let te=re=>{q[re]=!0,re==="year"&&V.era&&(q.era=!0),A({...q})},Y=(re,Ie)=>{q[re]?B(j4(U,re,Ie,w)):(te(re),Object.keys(q).length>=Object.keys(V).length&&B(U))},me=e.validationState||(n$(E,e.minValue,e.maxValue)?"invalid":null);var ie;return{value:E,dateValue:de,calendar:y,setValue:B,segments:Q,dateFormatter:ee,validationState:me,granularity:d,maxGranularity:(ie=e.maxGranularity)!==null&&ie!==void 0?ie:"year",isDisabled:o,isReadOnly:l,isRequired:u,increment(re){Y(re,1)},decrement(re){Y(re,-1)},incrementPage(re){Y(re,Gm[re]||1)},decrementPage(re){Y(re,-(Gm[re]||1))},setSegment(re,Ie){te(re),B(H4(U,re,Ie,w))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let re=Object.keys(q),Ie=Object.keys(V);re.length===Ie.length-1&&V.dayPeriod&&!q.dayPeriod&&(q={...V},A(q),B(U.copy()))},clearSegment(re){delete q[re],A({...q});let Ie=ul(e.placeholderValue,d,y,h),mt=U;if(re==="dayPeriod"&&"hour"in U&&"hour"in Ie){let $t=U.hour>=12,ve=Ie.hour>=12;$t&&!ve?mt=U.set({hour:U.hour-12}):!$t&&ve&&(mt=U.set({hour:U.hour+12}))}else re in U&&(mt=U.set({[re]:Ie[re]}));P(null),B(mt)},formatValue(re){if(!E)return"";let Ie=Pf(re,H);return new za(t,Ie).format(de)}}}function z4(e,t,n){switch(t){case"era":{let a=e.calendar.getEras();return{value:a.indexOf(e.era),minValue:0,maxValue:a.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:p3(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:m3(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let a=e.hour>=12;return{value:e.hour,minValue:a?12:0,maxValue:a?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function j4(e,t,n,a){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,l=o>=12;return e.set({hour:l?o-12:o+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:a.hour12?12:24})}}function H4(e,t,n,a){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,l=o>=12;return n>=12===l?e:e.set({hour:l?o-12:o+12})}case"hour":if(a.hour12){let l=e.hour>=12;!l&&n===12&&(n=0),l&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}function V4(e){let t=O4(e),n=I4({...e,onSelectionChange:l=>{e.onSelectionChange!=null&&e.onSelectionChange(l),t.close()}}),[a,o]=v.useState(!1);return{...n,...t,open(){n.collection.size!==0&&t.open()},toggle(l){n.collection.size!==0&&t.toggle(l)},isFocused:a,setFocused:o}}const W4=v.forwardRef((e,t)=>{const{isOpen:n,onClose:a,children:o,style:l}=e,{overlayProps:u}=Qf({isOpen:n,onClose:a,shouldCloseOnBlur:!1,isDismissable:!1},t),{modalProps:f}=ky(),{dialogProps:d}=td({},t);return L.jsx(If,{contain:!0,restoreFocus:!0,children:L.jsxs("div",{...Ke(u,f,d),ref:t,style:{background:"white",color:"black",padding:30,...l},children:[o,L.jsx(Yo,{onDismiss:a})]})})});function G4({children:e,buttonProps:t,placement:n="right",offset:a=5}){const o=eu({}),l=v.useRef(null),u=v.useRef(null),{triggerProps:f,overlayProps:d}=Oy({type:"dialog"},o,l),{overlayProps:h}=Iy({targetRef:l,overlayRef:u,placement:n,offset:a,isOpen:o.isOpen}),{onPress:m,...x}=f;return L.jsxs(L.Fragment,{children:[L.jsx(nd,{handlePress:m,...t,...x,ref:l,children:"Open Popover"}),o.isOpen&&L.jsx(Ly,{children:L.jsx(W4,{...d,...h,ref:u,isOpen:o.isOpen,onClose:o.close,children:e})})]})}var or=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function a$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uc={exports:{}};/*! @license DOMPurify 2.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.5/LICENSE */var qm;function Zm(){return qm||(qm=1,function(e,t){(function(n,a){e.exports=a()})(or,function(){function n(ae){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(se){return typeof se}:function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},n(ae)}function a(ae,se){return a=Object.setPrototypeOf||function($e,He){return $e.__proto__=He,$e},a(ae,se)}function o(){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 l(ae,se,ge){return o()?l=Reflect.construct:l=function(He,St,kt){var Tt=[null];Tt.push.apply(Tt,St);var jt=Function.bind.apply(He,Tt),cn=new jt;return kt&&a(cn,kt.prototype),cn},l.apply(null,arguments)}function u(ae){return f(ae)||d(ae)||h(ae)||x()}function f(ae){if(Array.isArray(ae))return m(ae)}function d(ae){if(typeof Symbol<"u"&&ae[Symbol.iterator]!=null||ae["@@iterator"]!=null)return Array.from(ae)}function h(ae,se){if(ae){if(typeof ae=="string")return m(ae,se);var ge=Object.prototype.toString.call(ae).slice(8,-1);if(ge==="Object"&&ae.constructor&&(ge=ae.constructor.name),ge==="Map"||ge==="Set")return Array.from(ae);if(ge==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ge))return m(ae,se)}}function m(ae,se){(se==null||se>ae.length)&&(se=ae.length);for(var ge=0,$e=new Array(se);ge<se;ge++)$e[ge]=ae[ge];return $e}function x(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y=Object.hasOwnProperty,$=Object.setPrototypeOf,P=Object.isFrozen,E=Object.getPrototypeOf,R=Object.getOwnPropertyDescriptor,k=Object.freeze,O=Object.seal,N=Object.create,F=typeof Reflect<"u"&&Reflect,H=F.apply,ue=F.construct;H||(H=function(se,ge,$e){return se.apply(ge,$e)}),k||(k=function(se){return se}),O||(O=function(se){return se}),ue||(ue=function(se,ge){return l(se,u(ge))});var ee=Y(Array.prototype.forEach),w=Y(Array.prototype.pop),V=Y(Array.prototype.push),q=Y(String.prototype.toLowerCase),A=Y(String.prototype.toString),pe=Y(String.prototype.match),U=Y(String.prototype.replace),B=Y(String.prototype.indexOf),de=Y(String.prototype.trim),Q=Y(RegExp.prototype.test),te=me(TypeError);function Y(ae){return function(se){for(var ge=arguments.length,$e=new Array(ge>1?ge-1:0),He=1;He<ge;He++)$e[He-1]=arguments[He];return H(ae,se,$e)}}function me(ae){return function(){for(var se=arguments.length,ge=new Array(se),$e=0;$e<se;$e++)ge[$e]=arguments[$e];return ue(ae,ge)}}function ie(ae,se,ge){ge=ge||q,$&&$(ae,null);for(var $e=se.length;$e--;){var He=se[$e];if(typeof He=="string"){var St=ge(He);St!==He&&(P(se)||(se[$e]=St),He=St)}ae[He]=!0}return ae}function re(ae){var se=N(null),ge;for(ge in ae)H(y,ae,[ge])===!0&&(se[ge]=ae[ge]);return se}function Ie(ae,se){for(;ae!==null;){var ge=R(ae,se);if(ge){if(ge.get)return Y(ge.get);if(typeof ge.value=="function")return Y(ge.value)}ae=E(ae)}function $e(He){return console.warn("fallback value for",He),null}return $e}var mt=k(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$t=k(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ve=k(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ot=k(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Et=k(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),et=k(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gt=k(["#text"]),_n=k(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),En=k(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Rn=k(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),qn=k(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Rt=O(/\{\{[\w\W]*|[\w\W]*\}\}/gm),fr=O(/<%[\w\W]*|[\w\W]*%>/gm),no=O(/\${[\w\W]*}/gm),tn=O(/^data-[\-\w.\u00B7-\uFFFF]/),ia=O(/^aria-[\-\w]+$/),ro=O(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dr=O(/^(?:\w+script|data):/i),Lt=O(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),hr=O(/^html$/i),Vr=function(){return typeof window>"u"?null:window},io=function(se,ge){if(n(se)!=="object"||typeof se.createPolicy!="function")return null;var $e=null,He="data-tt-policy-suffix";ge.currentScript&&ge.currentScript.hasAttribute(He)&&($e=ge.currentScript.getAttribute(He));var St="dompurify"+($e?"#"+$e:"");try{return se.createPolicy(St,{createHTML:function(Tt){return Tt},createScriptURL:function(Tt){return Tt}})}catch{return console.warn("TrustedTypes policy "+St+" could not be created."),null}};function Zn(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vr(),se=function(_){return Zn(_)};if(se.version="2.4.5",se.removed=[],!ae||!ae.document||ae.document.nodeType!==9)return se.isSupported=!1,se;var ge=ae.document,$e=ae.document,He=ae.DocumentFragment,St=ae.HTMLTemplateElement,kt=ae.Node,Tt=ae.Element,jt=ae.NodeFilter,cn=ae.NamedNodeMap,Wr=cn===void 0?ae.NamedNodeMap||ae.MozNamedAttrMap:cn,oo=ae.HTMLFormElement,An=ae.DOMParser,pr=ae.trustedTypes,mr=Tt.prototype,aa=Ie(mr,"cloneNode"),yi=Ie(mr,"nextSibling"),gr=Ie(mr,"childNodes"),yr=Ie(mr,"parentNode");if(typeof St=="function"){var vr=$e.createElement("template");vr.content&&vr.content.ownerDocument&&($e=vr.content.ownerDocument)}var xt=io(pr,ge),Cn=xt?xt.createHTML(""):"",Gr=$e,vi=Gr.implementation,bi=Gr.createNodeIterator,so=Gr.createDocumentFragment,$i=Gr.getElementsByTagName,oa=ge.importNode,qr={};try{qr=re($e).documentMode?$e.documentMode:{}}catch{}var ct={};se.isSupported=typeof yr=="function"&&vi&&typeof vi.createHTMLDocument<"u"&&qr!==9;var xi=Rt,Di=fr,wi=no,lo=tn,uo=ia,Ht=dr,sa=Lt,Pi=ro,tt=null,la=ie({},[].concat(u(mt),u($t),u(ve),u(Et),u(gt))),nt=null,fn=ie({},[].concat(u(_n),u(En),u(Rn),u(qn))),qe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),br=null,Yn=null,ua=!0,Si=!0,$r=!1,Ti=!0,Mn=!1,yt=!1,_i=!1,Ei=!1,Jn=!1,Zr=!1,xr=!1,Ri=!0,Qn=!1,Ai="user-content-",In=!0,On=!1,Vt={},Ln=null,ca=ie({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ci=null,Mi=ie({},["audio","video","img","source","image","track"]),Xn=null,fa=ie({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Dr="http://www.w3.org/1998/Math/MathML",kn="http://www.w3.org/2000/svg",Dt="http://www.w3.org/1999/xhtml",ft=Dt,Yr=!1,Jr=null,dn=ie({},[Dr,kn,Dt],A),hn,da=["application/xhtml+xml","text/html"],ha="text/html",Qe,er=null,Fn=$e.createElement("form"),Ii=function(_){return _ instanceof RegExp||_ instanceof Function},Qr=function(_){er&&er===_||((!_||n(_)!=="object")&&(_={}),_=re(_),hn=da.indexOf(_.PARSER_MEDIA_TYPE)===-1?hn=ha:hn=_.PARSER_MEDIA_TYPE,Qe=hn==="application/xhtml+xml"?A:q,tt="ALLOWED_TAGS"in _?ie({},_.ALLOWED_TAGS,Qe):la,nt="ALLOWED_ATTR"in _?ie({},_.ALLOWED_ATTR,Qe):fn,Jr="ALLOWED_NAMESPACES"in _?ie({},_.ALLOWED_NAMESPACES,A):dn,Xn="ADD_URI_SAFE_ATTR"in _?ie(re(fa),_.ADD_URI_SAFE_ATTR,Qe):fa,Ci="ADD_DATA_URI_TAGS"in _?ie(re(Mi),_.ADD_DATA_URI_TAGS,Qe):Mi,Ln="FORBID_CONTENTS"in _?ie({},_.FORBID_CONTENTS,Qe):ca,br="FORBID_TAGS"in _?ie({},_.FORBID_TAGS,Qe):{},Yn="FORBID_ATTR"in _?ie({},_.FORBID_ATTR,Qe):{},Vt="USE_PROFILES"in _?_.USE_PROFILES:!1,ua=_.ALLOW_ARIA_ATTR!==!1,Si=_.ALLOW_DATA_ATTR!==!1,$r=_.ALLOW_UNKNOWN_PROTOCOLS||!1,Ti=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Mn=_.SAFE_FOR_TEMPLATES||!1,yt=_.WHOLE_DOCUMENT||!1,Jn=_.RETURN_DOM||!1,Zr=_.RETURN_DOM_FRAGMENT||!1,xr=_.RETURN_TRUSTED_TYPE||!1,Ei=_.FORCE_BODY||!1,Ri=_.SANITIZE_DOM!==!1,Qn=_.SANITIZE_NAMED_PROPS||!1,In=_.KEEP_CONTENT!==!1,On=_.IN_PLACE||!1,Pi=_.ALLOWED_URI_REGEXP||Pi,ft=_.NAMESPACE||Dt,qe=_.CUSTOM_ELEMENT_HANDLING||{},_.CUSTOM_ELEMENT_HANDLING&&Ii(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(qe.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&Ii(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(qe.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(qe.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Mn&&(Si=!1),Zr&&(Jn=!0),Vt&&(tt=ie({},u(gt)),nt=[],Vt.html===!0&&(ie(tt,mt),ie(nt,_n)),Vt.svg===!0&&(ie(tt,$t),ie(nt,En),ie(nt,qn)),Vt.svgFilters===!0&&(ie(tt,ve),ie(nt,En),ie(nt,qn)),Vt.mathMl===!0&&(ie(tt,Et),ie(nt,Rn),ie(nt,qn))),_.ADD_TAGS&&(tt===la&&(tt=re(tt)),ie(tt,_.ADD_TAGS,Qe)),_.ADD_ATTR&&(nt===fn&&(nt=re(nt)),ie(nt,_.ADD_ATTR,Qe)),_.ADD_URI_SAFE_ATTR&&ie(Xn,_.ADD_URI_SAFE_ATTR,Qe),_.FORBID_CONTENTS&&(Ln===ca&&(Ln=re(Ln)),ie(Ln,_.FORBID_CONTENTS,Qe)),In&&(tt["#text"]=!0),yt&&ie(tt,["html","head","body"]),tt.table&&(ie(tt,["tbody"]),delete br.tbody),k&&k(_),er=_)},wr=ie({},["mi","mo","mn","ms","mtext"]),pa=ie({},["foreignobject","desc","title","annotation-xml"]),Oi=ie({},["title","style","font","a","script"]),Xr=ie({},$t);ie(Xr,ve),ie(Xr,Ot);var tr=ie({},Et);ie(tr,et);var ma=function(_){var z=yr(_);(!z||!z.tagName)&&(z={namespaceURI:ft,tagName:"template"});var X=q(_.tagName),ye=q(z.tagName);return Jr[_.namespaceURI]?_.namespaceURI===kn?z.namespaceURI===Dt?X==="svg":z.namespaceURI===Dr?X==="svg"&&(ye==="annotation-xml"||wr[ye]):!!Xr[X]:_.namespaceURI===Dr?z.namespaceURI===Dt?X==="math":z.namespaceURI===kn?X==="math"&&pa[ye]:!!tr[X]:_.namespaceURI===Dt?z.namespaceURI===kn&&!pa[ye]||z.namespaceURI===Dr&&!wr[ye]?!1:!tr[X]&&(Oi[X]||!Xr[X]):!!(hn==="application/xhtml+xml"&&Jr[_.namespaceURI]):!1},Wt=function(_){V(se.removed,{element:_});try{_.parentNode.removeChild(_)}catch{try{_.outerHTML=Cn}catch{_.remove()}}},Nn=function(_,z){try{V(se.removed,{attribute:z.getAttributeNode(_),from:z})}catch{V(se.removed,{attribute:null,from:z})}if(z.removeAttribute(_),_==="is"&&!nt[_])if(Jn||Zr)try{Wt(z)}catch{}else try{z.setAttribute(_,"")}catch{}},Li=function(_){var z,X;if(Ei)_="<remove></remove>"+_;else{var ye=pe(_,/^[\r\n\t ]+/);X=ye&&ye[0]}hn==="application/xhtml+xml"&&ft===Dt&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");var We=xt?xt.createHTML(_):_;if(ft===Dt)try{z=new An().parseFromString(We,hn)}catch{}if(!z||!z.documentElement){z=vi.createDocument(ft,"template",null);try{z.documentElement.innerHTML=Yr?Cn:We}catch{}}var Oe=z.body||z.documentElement;return _&&X&&Oe.insertBefore($e.createTextNode(X),Oe.childNodes[0]||null),ft===Dt?$i.call(z,yt?"html":"body")[0]:yt?z.documentElement:Oe},ga=function(_){return bi.call(_.ownerDocument||_,_,jt.SHOW_ELEMENT|jt.SHOW_COMMENT|jt.SHOW_TEXT,null,!1)},Ve=function(_){return _ instanceof oo&&(typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||!(_.attributes instanceof Wr)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function")},Ne=function(_){return n(kt)==="object"?_ instanceof kt:_&&n(_)==="object"&&typeof _.nodeType=="number"&&typeof _.nodeName=="string"},D=function(_,z,X){ct[_]&&ee(ct[_],function(ye){ye.call(se,z,X,er)})},C=function(_){var z;if(D("beforeSanitizeElements",_,null),Ve(_)||Q(/[\u0080-\uFFFF]/,_.nodeName))return Wt(_),!0;var X=Qe(_.nodeName);if(D("uponSanitizeElement",_,{tagName:X,allowedTags:tt}),_.hasChildNodes()&&!Ne(_.firstElementChild)&&(!Ne(_.content)||!Ne(_.content.firstElementChild))&&Q(/<[/\w]/g,_.innerHTML)&&Q(/<[/\w]/g,_.textContent)||X==="select"&&Q(/<template/i,_.innerHTML))return Wt(_),!0;if(!tt[X]||br[X]){if(!br[X]&&ce(X)&&(qe.tagNameCheck instanceof RegExp&&Q(qe.tagNameCheck,X)||qe.tagNameCheck instanceof Function&&qe.tagNameCheck(X)))return!1;if(In&&!Ln[X]){var ye=yr(_)||_.parentNode,We=gr(_)||_.childNodes;if(We&&ye)for(var Oe=We.length,Te=Oe-1;Te>=0;--Te)ye.insertBefore(aa(We[Te],!0),yi(_))}return Wt(_),!0}return _ instanceof Tt&&!ma(_)||(X==="noscript"||X==="noembed")&&Q(/<\/no(script|embed)/i,_.innerHTML)?(Wt(_),!0):(Mn&&_.nodeType===3&&(z=_.textContent,z=U(z,xi," "),z=U(z,Di," "),z=U(z,wi," "),_.textContent!==z&&(V(se.removed,{element:_.cloneNode()}),_.textContent=z)),D("afterSanitizeElements",_,null),!1)},Z=function(_,z,X){if(Ri&&(z==="id"||z==="name")&&(X in $e||X in Fn))return!1;if(!(Si&&!Yn[z]&&Q(lo,z))){if(!(ua&&Q(uo,z))){if(!nt[z]||Yn[z]){if(!(ce(_)&&(qe.tagNameCheck instanceof RegExp&&Q(qe.tagNameCheck,_)||qe.tagNameCheck instanceof Function&&qe.tagNameCheck(_))&&(qe.attributeNameCheck instanceof RegExp&&Q(qe.attributeNameCheck,z)||qe.attributeNameCheck instanceof Function&&qe.attributeNameCheck(z))||z==="is"&&qe.allowCustomizedBuiltInElements&&(qe.tagNameCheck instanceof RegExp&&Q(qe.tagNameCheck,X)||qe.tagNameCheck instanceof Function&&qe.tagNameCheck(X))))return!1}else if(!Xn[z]){if(!Q(Pi,U(X,sa,""))){if(!((z==="src"||z==="xlink:href"||z==="href")&&_!=="script"&&B(X,"data:")===0&&Ci[_])){if(!($r&&!Q(Ht,U(X,sa,"")))){if(X)return!1}}}}}}return!0},ce=function(_){return _.indexOf("-")>0},Ue=function(_){var z,X,ye,We;D("beforeSanitizeAttributes",_,null);var Oe=_.attributes;if(Oe){var Te={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:nt};for(We=Oe.length;We--;){z=Oe[We];var dt=z,ze=dt.name,At=dt.namespaceURI;if(X=ze==="value"?z.value:de(z.value),ye=Qe(ze),Te.attrName=ye,Te.attrValue=X,Te.keepAttr=!0,Te.forceKeepAttr=void 0,D("uponSanitizeAttribute",_,Te),X=Te.attrValue,!Te.forceKeepAttr&&(Nn(ze,_),!!Te.keepAttr)){if(!Ti&&Q(/\/>/i,X)){Nn(ze,_);continue}Mn&&(X=U(X,xi," "),X=U(X,Di," "),X=U(X,wi," "));var nn=Qe(_.nodeName);if(Z(nn,ye,X)){if(Qn&&(ye==="id"||ye==="name")&&(Nn(ze,_),X=Ai+X),xt&&n(pr)==="object"&&typeof pr.getAttributeType=="function"&&!At)switch(pr.getAttributeType(nn,ye)){case"TrustedHTML":X=xt.createHTML(X);break;case"TrustedScriptURL":X=xt.createScriptURL(X);break}try{At?_.setAttributeNS(At,ze,X):_.setAttribute(ze,X),w(se.removed)}catch{}}}}D("afterSanitizeAttributes",_,null)}},we=function oe(_){var z,X=ga(_);for(D("beforeSanitizeShadowDOM",_,null);z=X.nextNode();)D("uponSanitizeShadowNode",z,null),!C(z)&&(z.content instanceof He&&oe(z.content),Ue(z));D("afterSanitizeShadowDOM",_,null)};return se.sanitize=function(oe){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z,X,ye,We,Oe;if(Yr=!oe,Yr&&(oe="<!-->"),typeof oe!="string"&&!Ne(oe)){if(typeof oe.toString!="function")throw te("toString is not a function");if(oe=oe.toString(),typeof oe!="string")throw te("dirty is not a string, aborting")}if(!se.isSupported){if(n(ae.toStaticHTML)==="object"||typeof ae.toStaticHTML=="function"){if(typeof oe=="string")return ae.toStaticHTML(oe);if(Ne(oe))return ae.toStaticHTML(oe.outerHTML)}return oe}if(_i||Qr(_),se.removed=[],typeof oe=="string"&&(On=!1),On){if(oe.nodeName){var Te=Qe(oe.nodeName);if(!tt[Te]||br[Te])throw te("root node is forbidden and cannot be sanitized in-place")}}else if(oe instanceof kt)z=Li("<!---->"),X=z.ownerDocument.importNode(oe,!0),X.nodeType===1&&X.nodeName==="BODY"||X.nodeName==="HTML"?z=X:z.appendChild(X);else{if(!Jn&&!Mn&&!yt&&oe.indexOf("<")===-1)return xt&&xr?xt.createHTML(oe):oe;if(z=Li(oe),!z)return Jn?null:xr?Cn:""}z&&Ei&&Wt(z.firstChild);for(var dt=ga(On?oe:z);ye=dt.nextNode();)ye.nodeType===3&&ye===We||C(ye)||(ye.content instanceof He&&we(ye.content),Ue(ye),We=ye);if(We=null,On)return oe;if(Jn){if(Zr)for(Oe=so.call(z.ownerDocument);z.firstChild;)Oe.appendChild(z.firstChild);else Oe=z;return(nt.shadowroot||nt.shadowrootmod)&&(Oe=oa.call(ge,Oe,!0)),Oe}var ze=yt?z.outerHTML:z.innerHTML;return yt&&tt["!doctype"]&&z.ownerDocument&&z.ownerDocument.doctype&&z.ownerDocument.doctype.name&&Q(hr,z.ownerDocument.doctype.name)&&(ze="<!DOCTYPE "+z.ownerDocument.doctype.name+`>
3
+ `+ze),Mn&&(ze=U(ze,xi," "),ze=U(ze,Di," "),ze=U(ze,wi," ")),xt&&xr?xt.createHTML(ze):ze},se.setConfig=function(oe){Qr(oe),_i=!0},se.clearConfig=function(){er=null,_i=!1},se.isValidAttribute=function(oe,_,z){er||Qr({});var X=Qe(oe),ye=Qe(_);return Z(X,ye,z)},se.addHook=function(oe,_){typeof _=="function"&&(ct[oe]=ct[oe]||[],V(ct[oe],_))},se.removeHook=function(oe){if(ct[oe])return w(ct[oe])},se.removeHooks=function(oe){ct[oe]&&(ct[oe]=[])},se.removeAllHooks=function(){ct={}},se}var ao=Zn();return ao})}(Uc)),Uc.exports}var q4=window.DOMPurify||(window.DOMPurify=Zm().default||Zm());const Z4=a$(q4),Y4=({content:e,themeName:t="wysiwyg",...n})=>L.jsx(Ur,{...n,themeName:t,dangerouslySetInnerHTML:{__html:Z4.sanitize(e,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling"]})}});var zl={exports:{}};zl.exports;(function(e,t){var n=200,a="__lodash_hash_undefined__",o=1,l=2,u=9007199254740991,f="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",m="[object Boolean]",x="[object Date]",y="[object Error]",$="[object Function]",P="[object GeneratorFunction]",E="[object Map]",R="[object Number]",k="[object Null]",O="[object Object]",N="[object Promise]",F="[object Proxy]",H="[object RegExp]",ue="[object Set]",ee="[object String]",w="[object Symbol]",V="[object Undefined]",q="[object WeakMap]",A="[object ArrayBuffer]",pe="[object DataView]",U="[object Float32Array]",B="[object Float64Array]",de="[object Int8Array]",Q="[object Int16Array]",te="[object Int32Array]",Y="[object Uint8Array]",me="[object Uint8ClampedArray]",ie="[object Uint16Array]",re="[object Uint32Array]",Ie=/[\\^$.*+?()[\]{}|]/g,mt=/^\[object .+?Constructor\]$/,$t=/^(?:0|[1-9]\d*)$/,ve={};ve[U]=ve[B]=ve[de]=ve[Q]=ve[te]=ve[Y]=ve[me]=ve[ie]=ve[re]=!0,ve[f]=ve[d]=ve[A]=ve[m]=ve[pe]=ve[x]=ve[y]=ve[$]=ve[E]=ve[R]=ve[O]=ve[H]=ve[ue]=ve[ee]=ve[q]=!1;var Ot=typeof or=="object"&&or&&or.Object===Object&&or,Et=typeof self=="object"&&self&&self.Object===Object&&self,et=Ot||Et||Function("return this")(),gt=t&&!t.nodeType&&t,_n=gt&&!0&&e&&!e.nodeType&&e,En=_n&&_n.exports===gt,Rn=En&&Ot.process,qn=function(){try{return Rn&&Rn.binding&&Rn.binding("util")}catch{}}(),Rt=qn&&qn.isTypedArray;function fr(D,C){for(var Z=-1,ce=D==null?0:D.length,Ue=0,we=[];++Z<ce;){var oe=D[Z];C(oe,Z,D)&&(we[Ue++]=oe)}return we}function no(D,C){for(var Z=-1,ce=C.length,Ue=D.length;++Z<ce;)D[Ue+Z]=C[Z];return D}function tn(D,C){for(var Z=-1,ce=D==null?0:D.length;++Z<ce;)if(C(D[Z],Z,D))return!0;return!1}function ia(D,C){for(var Z=-1,ce=Array(D);++Z<D;)ce[Z]=C(Z);return ce}function ro(D){return function(C){return D(C)}}function dr(D,C){return D.has(C)}function Lt(D,C){return D?.[C]}function hr(D){var C=-1,Z=Array(D.size);return D.forEach(function(ce,Ue){Z[++C]=[Ue,ce]}),Z}function Vr(D,C){return function(Z){return D(C(Z))}}function io(D){var C=-1,Z=Array(D.size);return D.forEach(function(ce){Z[++C]=ce}),Z}var Zn=Array.prototype,ao=Function.prototype,ae=Object.prototype,se=et["__core-js_shared__"],ge=ao.toString,$e=ae.hasOwnProperty,He=function(){var D=/[^.]+$/.exec(se&&se.keys&&se.keys.IE_PROTO||"");return D?"Symbol(src)_1."+D:""}(),St=ae.toString,kt=RegExp("^"+ge.call($e).replace(Ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tt=En?et.Buffer:void 0,jt=et.Symbol,cn=et.Uint8Array,Wr=ae.propertyIsEnumerable,oo=Zn.splice,An=jt?jt.toStringTag:void 0,pr=Object.getOwnPropertySymbols,mr=Tt?Tt.isBuffer:void 0,aa=Vr(Object.keys,Object),yi=ft(et,"DataView"),gr=ft(et,"Map"),yr=ft(et,"Promise"),vr=ft(et,"Set"),xt=ft(et,"WeakMap"),Cn=ft(Object,"create"),Gr=Fn(yi),vi=Fn(gr),bi=Fn(yr),so=Fn(vr),$i=Fn(xt),oa=jt?jt.prototype:void 0,qr=oa?oa.valueOf:void 0;function ct(D){var C=-1,Z=D==null?0:D.length;for(this.clear();++C<Z;){var ce=D[C];this.set(ce[0],ce[1])}}function xi(){this.__data__=Cn?Cn(null):{},this.size=0}function Di(D){var C=this.has(D)&&delete this.__data__[D];return this.size-=C?1:0,C}function wi(D){var C=this.__data__;if(Cn){var Z=C[D];return Z===a?void 0:Z}return $e.call(C,D)?C[D]:void 0}function lo(D){var C=this.__data__;return Cn?C[D]!==void 0:$e.call(C,D)}function uo(D,C){var Z=this.__data__;return this.size+=this.has(D)?0:1,Z[D]=Cn&&C===void 0?a:C,this}ct.prototype.clear=xi,ct.prototype.delete=Di,ct.prototype.get=wi,ct.prototype.has=lo,ct.prototype.set=uo;function Ht(D){var C=-1,Z=D==null?0:D.length;for(this.clear();++C<Z;){var ce=D[C];this.set(ce[0],ce[1])}}function sa(){this.__data__=[],this.size=0}function Pi(D){var C=this.__data__,Z=Qn(C,D);if(Z<0)return!1;var ce=C.length-1;return Z==ce?C.pop():oo.call(C,Z,1),--this.size,!0}function tt(D){var C=this.__data__,Z=Qn(C,D);return Z<0?void 0:C[Z][1]}function la(D){return Qn(this.__data__,D)>-1}function nt(D,C){var Z=this.__data__,ce=Qn(Z,D);return ce<0?(++this.size,Z.push([D,C])):Z[ce][1]=C,this}Ht.prototype.clear=sa,Ht.prototype.delete=Pi,Ht.prototype.get=tt,Ht.prototype.has=la,Ht.prototype.set=nt;function fn(D){var C=-1,Z=D==null?0:D.length;for(this.clear();++C<Z;){var ce=D[C];this.set(ce[0],ce[1])}}function qe(){this.size=0,this.__data__={hash:new ct,map:new(gr||Ht),string:new ct}}function br(D){var C=Dt(this,D).delete(D);return this.size-=C?1:0,C}function Yn(D){return Dt(this,D).get(D)}function ua(D){return Dt(this,D).has(D)}function Si(D,C){var Z=Dt(this,D),ce=Z.size;return Z.set(D,C),this.size+=Z.size==ce?0:1,this}fn.prototype.clear=qe,fn.prototype.delete=br,fn.prototype.get=Yn,fn.prototype.has=ua,fn.prototype.set=Si;function $r(D){var C=-1,Z=D==null?0:D.length;for(this.__data__=new fn;++C<Z;)this.add(D[C])}function Ti(D){return this.__data__.set(D,a),this}function Mn(D){return this.__data__.has(D)}$r.prototype.add=$r.prototype.push=Ti,$r.prototype.has=Mn;function yt(D){var C=this.__data__=new Ht(D);this.size=C.size}function _i(){this.__data__=new Ht,this.size=0}function Ei(D){var C=this.__data__,Z=C.delete(D);return this.size=C.size,Z}function Jn(D){return this.__data__.get(D)}function Zr(D){return this.__data__.has(D)}function xr(D,C){var Z=this.__data__;if(Z instanceof Ht){var ce=Z.__data__;if(!gr||ce.length<n-1)return ce.push([D,C]),this.size=++Z.size,this;Z=this.__data__=new fn(ce)}return Z.set(D,C),this.size=Z.size,this}yt.prototype.clear=_i,yt.prototype.delete=Ei,yt.prototype.get=Jn,yt.prototype.has=Zr,yt.prototype.set=xr;function Ri(D,C){var Z=wr(D),ce=!Z&&Qr(D),Ue=!Z&&!ce&&Oi(D),we=!Z&&!ce&&!Ue&&Li(D),oe=Z||ce||Ue||we,_=oe?ia(D.length,String):[],z=_.length;for(var X in D)(C||$e.call(D,X))&&!(oe&&(X=="length"||Ue&&(X=="offset"||X=="parent")||we&&(X=="buffer"||X=="byteLength"||X=="byteOffset")||hn(X,z)))&&_.push(X);return _}function Qn(D,C){for(var Z=D.length;Z--;)if(Ii(D[Z][0],C))return Z;return-1}function Ai(D,C,Z){var ce=C(D);return wr(D)?ce:no(ce,Z(D))}function In(D){return D==null?D===void 0?V:k:An&&An in Object(D)?Yr(D):er(D)}function On(D){return Nn(D)&&In(D)==f}function Vt(D,C,Z,ce,Ue){return D===C?!0:D==null||C==null||!Nn(D)&&!Nn(C)?D!==D&&C!==C:Ln(D,C,Z,ce,Vt,Ue)}function Ln(D,C,Z,ce,Ue,we){var oe=wr(D),_=wr(C),z=oe?d:dn(D),X=_?d:dn(C);z=z==f?O:z,X=X==f?O:X;var ye=z==O,We=X==O,Oe=z==X;if(Oe&&Oi(D)){if(!Oi(C))return!1;oe=!0,ye=!1}if(Oe&&!ye)return we||(we=new yt),oe||Li(D)?Xn(D,C,Z,ce,Ue,we):fa(D,C,z,Z,ce,Ue,we);if(!(Z&o)){var Te=ye&&$e.call(D,"__wrapped__"),dt=We&&$e.call(C,"__wrapped__");if(Te||dt){var ze=Te?D.value():D,At=dt?C.value():C;return we||(we=new yt),Ue(ze,At,Z,ce,we)}}return Oe?(we||(we=new yt),Dr(D,C,Z,ce,Ue,we)):!1}function ca(D){if(!Wt(D)||ha(D))return!1;var C=tr(D)?kt:mt;return C.test(Fn(D))}function Ci(D){return Nn(D)&&ma(D.length)&&!!ve[In(D)]}function Mi(D){if(!Qe(D))return aa(D);var C=[];for(var Z in Object(D))$e.call(D,Z)&&Z!="constructor"&&C.push(Z);return C}function Xn(D,C,Z,ce,Ue,we){var oe=Z&o,_=D.length,z=C.length;if(_!=z&&!(oe&&z>_))return!1;var X=we.get(D);if(X&&we.get(C))return X==C;var ye=-1,We=!0,Oe=Z&l?new $r:void 0;for(we.set(D,C),we.set(C,D);++ye<_;){var Te=D[ye],dt=C[ye];if(ce)var ze=oe?ce(dt,Te,ye,C,D,we):ce(Te,dt,ye,D,C,we);if(ze!==void 0){if(ze)continue;We=!1;break}if(Oe){if(!tn(C,function(At,nn){if(!dr(Oe,nn)&&(Te===At||Ue(Te,At,Z,ce,we)))return Oe.push(nn)})){We=!1;break}}else if(!(Te===dt||Ue(Te,dt,Z,ce,we))){We=!1;break}}return we.delete(D),we.delete(C),We}function fa(D,C,Z,ce,Ue,we,oe){switch(Z){case pe:if(D.byteLength!=C.byteLength||D.byteOffset!=C.byteOffset)return!1;D=D.buffer,C=C.buffer;case A:return!(D.byteLength!=C.byteLength||!we(new cn(D),new cn(C)));case m:case x:case R:return Ii(+D,+C);case y:return D.name==C.name&&D.message==C.message;case H:case ee:return D==C+"";case E:var _=hr;case ue:var z=ce&o;if(_||(_=io),D.size!=C.size&&!z)return!1;var X=oe.get(D);if(X)return X==C;ce|=l,oe.set(D,C);var ye=Xn(_(D),_(C),ce,Ue,we,oe);return oe.delete(D),ye;case w:if(qr)return qr.call(D)==qr.call(C)}return!1}function Dr(D,C,Z,ce,Ue,we){var oe=Z&o,_=kn(D),z=_.length,X=kn(C),ye=X.length;if(z!=ye&&!oe)return!1;for(var We=z;We--;){var Oe=_[We];if(!(oe?Oe in C:$e.call(C,Oe)))return!1}var Te=we.get(D);if(Te&&we.get(C))return Te==C;var dt=!0;we.set(D,C),we.set(C,D);for(var ze=oe;++We<z;){Oe=_[We];var At=D[Oe],nn=C[Oe];if(ce)var ya=oe?ce(nn,At,Oe,C,D,we):ce(At,nn,Oe,D,C,we);if(!(ya===void 0?At===nn||Ue(At,nn,Z,ce,we):ya)){dt=!1;break}ze||(ze=Oe=="constructor")}if(dt&&!ze){var ki=D.constructor,wt=C.constructor;ki!=wt&&"constructor"in D&&"constructor"in C&&!(typeof ki=="function"&&ki instanceof ki&&typeof wt=="function"&&wt instanceof wt)&&(dt=!1)}return we.delete(D),we.delete(C),dt}function kn(D){return Ai(D,ga,Jr)}function Dt(D,C){var Z=D.__data__;return da(C)?Z[typeof C=="string"?"string":"hash"]:Z.map}function ft(D,C){var Z=Lt(D,C);return ca(Z)?Z:void 0}function Yr(D){var C=$e.call(D,An),Z=D[An];try{D[An]=void 0;var ce=!0}catch{}var Ue=St.call(D);return ce&&(C?D[An]=Z:delete D[An]),Ue}var Jr=pr?function(D){return D==null?[]:(D=Object(D),fr(pr(D),function(C){return Wr.call(D,C)}))}:Ve,dn=In;(yi&&dn(new yi(new ArrayBuffer(1)))!=pe||gr&&dn(new gr)!=E||yr&&dn(yr.resolve())!=N||vr&&dn(new vr)!=ue||xt&&dn(new xt)!=q)&&(dn=function(D){var C=In(D),Z=C==O?D.constructor:void 0,ce=Z?Fn(Z):"";if(ce)switch(ce){case Gr:return pe;case vi:return E;case bi:return N;case so:return ue;case $i:return q}return C});function hn(D,C){return C=C??u,!!C&&(typeof D=="number"||$t.test(D))&&D>-1&&D%1==0&&D<C}function da(D){var C=typeof D;return C=="string"||C=="number"||C=="symbol"||C=="boolean"?D!=="__proto__":D===null}function ha(D){return!!He&&He in D}function Qe(D){var C=D&&D.constructor,Z=typeof C=="function"&&C.prototype||ae;return D===Z}function er(D){return St.call(D)}function Fn(D){if(D!=null){try{return ge.call(D)}catch{}try{return D+""}catch{}}return""}function Ii(D,C){return D===C||D!==D&&C!==C}var Qr=On(function(){return arguments}())?On:function(D){return Nn(D)&&$e.call(D,"callee")&&!Wr.call(D,"callee")},wr=Array.isArray;function pa(D){return D!=null&&ma(D.length)&&!tr(D)}var Oi=mr||Ne;function Xr(D,C){return Vt(D,C)}function tr(D){if(!Wt(D))return!1;var C=In(D);return C==$||C==P||C==h||C==F}function ma(D){return typeof D=="number"&&D>-1&&D%1==0&&D<=u}function Wt(D){var C=typeof D;return D!=null&&(C=="object"||C=="function")}function Nn(D){return D!=null&&typeof D=="object"}var Li=Rt?ro(Rt):Ci;function ga(D){return pa(D)?Ri(D):Mi(D)}function Ve(){return[]}function Ne(){return!1}e.exports=Xr})(zl,zl.exports);var J4=zl.exports;const o$=a$(J4),Q4=e=>L.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:[L.jsx("g",{children:L.jsx("path",{d:"M23.92 12.38a1 1 0 0 0 0-.76 1 1 0 0 0-.21-.33l-8-8a1.003 1.003 0 1 0-1.42 1.42l6.3 6.29H1a1 1 0 1 0 0 2h19.59l-6.3 6.29a1 1 0 0 0 0 1.42 1.002 1.002 0 0 0 1.42 0l8-8c.091-.095.162-.207.21-.33Z"})}),L.jsx("defs",{children:L.jsx("clipPath",{children:L.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),s$=v.memo(Q4,o$),X4=Object.freeze(Object.defineProperty({__proto__:null,default:s$},Symbol.toStringTag,{value:"Module"}));var jl={exports:{}};/**
4
+ * @license
5
+ * Lodash <https://lodash.com/>
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ * Released under MIT license <https://lodash.com/license>
8
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
9
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
10
+ */jl.exports;(function(e,t){(function(){var n,a="4.17.21",o=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,m="__lodash_placeholder__",x=1,y=2,$=4,P=1,E=2,R=1,k=2,O=4,N=8,F=16,H=32,ue=64,ee=128,w=256,V=512,q=30,A="...",pe=800,U=16,B=1,de=2,Q=3,te=1/0,Y=9007199254740991,me=17976931348623157e292,ie=0/0,re=4294967295,Ie=re-1,mt=re>>>1,$t=[["ary",ee],["bind",R],["bindKey",k],["curry",N],["curryRight",F],["flip",V],["partial",H],["partialRight",ue],["rearg",w]],ve="[object Arguments]",Ot="[object Array]",Et="[object AsyncFunction]",et="[object Boolean]",gt="[object Date]",_n="[object DOMException]",En="[object Error]",Rn="[object Function]",qn="[object GeneratorFunction]",Rt="[object Map]",fr="[object Number]",no="[object Null]",tn="[object Object]",ia="[object Promise]",ro="[object Proxy]",dr="[object RegExp]",Lt="[object Set]",hr="[object String]",Vr="[object Symbol]",io="[object Undefined]",Zn="[object WeakMap]",ao="[object WeakSet]",ae="[object ArrayBuffer]",se="[object DataView]",ge="[object Float32Array]",$e="[object Float64Array]",He="[object Int8Array]",St="[object Int16Array]",kt="[object Int32Array]",Tt="[object Uint8Array]",jt="[object Uint8ClampedArray]",cn="[object Uint16Array]",Wr="[object Uint32Array]",oo=/\b__p \+= '';/g,An=/\b(__p \+=) '' \+/g,pr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mr=/&(?:amp|lt|gt|quot|#39);/g,aa=/[&<>"']/g,yi=RegExp(mr.source),gr=RegExp(aa.source),yr=/<%-([\s\S]+?)%>/g,vr=/<%([\s\S]+?)%>/g,xt=/<%=([\s\S]+?)%>/g,Cn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gr=/^\w*$/,vi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bi=/[\\^$.*+?()[\]{}|]/g,so=RegExp(bi.source),$i=/^\s+/,oa=/\s/,qr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ct=/\{\n\/\* \[wrapped with (.+)\] \*/,xi=/,? & /,Di=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wi=/[()=,{}\[\]\/\s]/,lo=/\\(\\)?/g,uo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ht=/\w*$/,sa=/^[-+]0x[0-9a-f]+$/i,Pi=/^0b[01]+$/i,tt=/^\[object .+?Constructor\]$/,la=/^0o[0-7]+$/i,nt=/^(?:0|[1-9]\d*)$/,fn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qe=/($^)/,br=/['\n\r\u2028\u2029\\]/g,Yn="\\ud800-\\udfff",ua="\\u0300-\\u036f",Si="\\ufe20-\\ufe2f",$r="\\u20d0-\\u20ff",Ti=ua+Si+$r,Mn="\\u2700-\\u27bf",yt="a-z\\xdf-\\xf6\\xf8-\\xff",_i="\\xac\\xb1\\xd7\\xf7",Ei="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Jn="\\u2000-\\u206f",Zr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xr="A-Z\\xc0-\\xd6\\xd8-\\xde",Ri="\\ufe0e\\ufe0f",Qn=_i+Ei+Jn+Zr,Ai="['’]",In="["+Yn+"]",On="["+Qn+"]",Vt="["+Ti+"]",Ln="\\d+",ca="["+Mn+"]",Ci="["+yt+"]",Mi="[^"+Yn+Qn+Ln+Mn+yt+xr+"]",Xn="\\ud83c[\\udffb-\\udfff]",fa="(?:"+Vt+"|"+Xn+")",Dr="[^"+Yn+"]",kn="(?:\\ud83c[\\udde6-\\uddff]){2}",Dt="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="["+xr+"]",Yr="\\u200d",Jr="(?:"+Ci+"|"+Mi+")",dn="(?:"+ft+"|"+Mi+")",hn="(?:"+Ai+"(?:d|ll|m|re|s|t|ve))?",da="(?:"+Ai+"(?:D|LL|M|RE|S|T|VE))?",ha=fa+"?",Qe="["+Ri+"]?",er="(?:"+Yr+"(?:"+[Dr,kn,Dt].join("|")+")"+Qe+ha+")*",Fn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ii="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qr=Qe+ha+er,wr="(?:"+[ca,kn,Dt].join("|")+")"+Qr,pa="(?:"+[Dr+Vt+"?",Vt,kn,Dt,In].join("|")+")",Oi=RegExp(Ai,"g"),Xr=RegExp(Vt,"g"),tr=RegExp(Xn+"(?="+Xn+")|"+pa+Qr,"g"),ma=RegExp([ft+"?"+Ci+"+"+hn+"(?="+[On,ft,"$"].join("|")+")",dn+"+"+da+"(?="+[On,ft+Jr,"$"].join("|")+")",ft+"?"+Jr+"+"+hn,ft+"+"+da,Ii,Fn,Ln,wr].join("|"),"g"),Wt=RegExp("["+Yr+Yn+Ti+Ri+"]"),Nn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Li=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ga=-1,Ve={};Ve[ge]=Ve[$e]=Ve[He]=Ve[St]=Ve[kt]=Ve[Tt]=Ve[jt]=Ve[cn]=Ve[Wr]=!0,Ve[ve]=Ve[Ot]=Ve[ae]=Ve[et]=Ve[se]=Ve[gt]=Ve[En]=Ve[Rn]=Ve[Rt]=Ve[fr]=Ve[tn]=Ve[dr]=Ve[Lt]=Ve[hr]=Ve[Zn]=!1;var Ne={};Ne[ve]=Ne[Ot]=Ne[ae]=Ne[se]=Ne[et]=Ne[gt]=Ne[ge]=Ne[$e]=Ne[He]=Ne[St]=Ne[kt]=Ne[Rt]=Ne[fr]=Ne[tn]=Ne[dr]=Ne[Lt]=Ne[hr]=Ne[Vr]=Ne[Tt]=Ne[jt]=Ne[cn]=Ne[Wr]=!0,Ne[En]=Ne[Rn]=Ne[Zn]=!1;var D={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},C={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Z={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ce={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ue=parseFloat,we=parseInt,oe=typeof or=="object"&&or&&or.Object===Object&&or,_=typeof self=="object"&&self&&self.Object===Object&&self,z=oe||_||Function("return this")(),X=t&&!t.nodeType&&t,ye=X&&!0&&e&&!e.nodeType&&e,We=ye&&ye.exports===X,Oe=We&&oe.process,Te=function(){try{var M=ye&&ye.require&&ye.require("util").types;return M||Oe&&Oe.binding&&Oe.binding("util")}catch{}}(),dt=Te&&Te.isArrayBuffer,ze=Te&&Te.isDate,At=Te&&Te.isMap,nn=Te&&Te.isRegExp,ya=Te&&Te.isSet,ki=Te&&Te.isTypedArray;function wt(M,j,K){switch(K.length){case 0:return M.call(j);case 1:return M.call(j,K[0]);case 2:return M.call(j,K[0],K[1]);case 3:return M.call(j,K[0],K[1],K[2])}return M.apply(j,K)}function m$(M,j,K,fe){for(var Pe=-1,Be=M==null?0:M.length;++Pe<Be;){var vt=M[Pe];j(fe,vt,K(vt),M)}return fe}function pn(M,j){for(var K=-1,fe=M==null?0:M.length;++K<fe&&j(M[K],K,M)!==!1;);return M}function g$(M,j){for(var K=M==null?0:M.length;K--&&j(M[K],K,M)!==!1;);return M}function Pd(M,j){for(var K=-1,fe=M==null?0:M.length;++K<fe;)if(!j(M[K],K,M))return!1;return!0}function ei(M,j){for(var K=-1,fe=M==null?0:M.length,Pe=0,Be=[];++K<fe;){var vt=M[K];j(vt,K,M)&&(Be[Pe++]=vt)}return Be}function ds(M,j){var K=M==null?0:M.length;return!!K&&va(M,j,0)>-1}function fu(M,j,K){for(var fe=-1,Pe=M==null?0:M.length;++fe<Pe;)if(K(j,M[fe]))return!0;return!1}function Je(M,j){for(var K=-1,fe=M==null?0:M.length,Pe=Array(fe);++K<fe;)Pe[K]=j(M[K],K,M);return Pe}function ti(M,j){for(var K=-1,fe=j.length,Pe=M.length;++K<fe;)M[Pe+K]=j[K];return M}function du(M,j,K,fe){var Pe=-1,Be=M==null?0:M.length;for(fe&&Be&&(K=M[++Pe]);++Pe<Be;)K=j(K,M[Pe],Pe,M);return K}function y$(M,j,K,fe){var Pe=M==null?0:M.length;for(fe&&Pe&&(K=M[--Pe]);Pe--;)K=j(K,M[Pe],Pe,M);return K}function hu(M,j){for(var K=-1,fe=M==null?0:M.length;++K<fe;)if(j(M[K],K,M))return!0;return!1}var v$=pu("length");function b$(M){return M.split("")}function $$(M){return M.match(Di)||[]}function Sd(M,j,K){var fe;return K(M,function(Pe,Be,vt){if(j(Pe,Be,vt))return fe=Be,!1}),fe}function hs(M,j,K,fe){for(var Pe=M.length,Be=K+(fe?1:-1);fe?Be--:++Be<Pe;)if(j(M[Be],Be,M))return Be;return-1}function va(M,j,K){return j===j?M$(M,j,K):hs(M,Td,K)}function x$(M,j,K,fe){for(var Pe=K-1,Be=M.length;++Pe<Be;)if(fe(M[Pe],j))return Pe;return-1}function Td(M){return M!==M}function _d(M,j){var K=M==null?0:M.length;return K?gu(M,j)/K:ie}function pu(M){return function(j){return j==null?n:j[M]}}function mu(M){return function(j){return M==null?n:M[j]}}function Ed(M,j,K,fe,Pe){return Pe(M,function(Be,vt,Ze){K=fe?(fe=!1,Be):j(K,Be,vt,Ze)}),K}function D$(M,j){var K=M.length;for(M.sort(j);K--;)M[K]=M[K].value;return M}function gu(M,j){for(var K,fe=-1,Pe=M.length;++fe<Pe;){var Be=j(M[fe]);Be!==n&&(K=K===n?Be:K+Be)}return K}function yu(M,j){for(var K=-1,fe=Array(M);++K<M;)fe[K]=j(K);return fe}function w$(M,j){return Je(j,function(K){return[K,M[K]]})}function Rd(M){return M&&M.slice(0,Id(M)+1).replace($i,"")}function rn(M){return function(j){return M(j)}}function vu(M,j){return Je(j,function(K){return M[K]})}function co(M,j){return M.has(j)}function Ad(M,j){for(var K=-1,fe=M.length;++K<fe&&va(j,M[K],0)>-1;);return K}function Cd(M,j){for(var K=M.length;K--&&va(j,M[K],0)>-1;);return K}function P$(M,j){for(var K=M.length,fe=0;K--;)M[K]===j&&++fe;return fe}var S$=mu(D),T$=mu(C);function _$(M){return"\\"+ce[M]}function E$(M,j){return M==null?n:M[j]}function ba(M){return Wt.test(M)}function R$(M){return Nn.test(M)}function A$(M){for(var j,K=[];!(j=M.next()).done;)K.push(j.value);return K}function bu(M){var j=-1,K=Array(M.size);return M.forEach(function(fe,Pe){K[++j]=[Pe,fe]}),K}function Md(M,j){return function(K){return M(j(K))}}function ni(M,j){for(var K=-1,fe=M.length,Pe=0,Be=[];++K<fe;){var vt=M[K];(vt===j||vt===m)&&(M[K]=m,Be[Pe++]=K)}return Be}function ps(M){var j=-1,K=Array(M.size);return M.forEach(function(fe){K[++j]=fe}),K}function C$(M){var j=-1,K=Array(M.size);return M.forEach(function(fe){K[++j]=[fe,fe]}),K}function M$(M,j,K){for(var fe=K-1,Pe=M.length;++fe<Pe;)if(M[fe]===j)return fe;return-1}function I$(M,j,K){for(var fe=K+1;fe--;)if(M[fe]===j)return fe;return fe}function $a(M){return ba(M)?L$(M):v$(M)}function Kn(M){return ba(M)?k$(M):b$(M)}function Id(M){for(var j=M.length;j--&&oa.test(M.charAt(j)););return j}var O$=mu(Z);function L$(M){for(var j=tr.lastIndex=0;tr.test(M);)++j;return j}function k$(M){return M.match(tr)||[]}function F$(M){return M.match(ma)||[]}var N$=function M(j){j=j==null?z:xa.defaults(z.Object(),j,xa.pick(z,Li));var K=j.Array,fe=j.Date,Pe=j.Error,Be=j.Function,vt=j.Math,Ze=j.Object,$u=j.RegExp,K$=j.String,mn=j.TypeError,ms=K.prototype,B$=Be.prototype,Da=Ze.prototype,gs=j["__core-js_shared__"],ys=B$.toString,Ge=Da.hasOwnProperty,U$=0,Od=function(){var r=/[^.]+$/.exec(gs&&gs.keys&&gs.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),vs=Da.toString,z$=ys.call(Ze),j$=z._,H$=$u("^"+ys.call(Ge).replace(bi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bs=We?j.Buffer:n,ri=j.Symbol,$s=j.Uint8Array,Ld=bs?bs.allocUnsafe:n,xs=Md(Ze.getPrototypeOf,Ze),kd=Ze.create,Fd=Da.propertyIsEnumerable,Ds=ms.splice,Nd=ri?ri.isConcatSpreadable:n,fo=ri?ri.iterator:n,Fi=ri?ri.toStringTag:n,ws=function(){try{var r=zi(Ze,"defineProperty");return r({},"",{}),r}catch{}}(),V$=j.clearTimeout!==z.clearTimeout&&j.clearTimeout,W$=fe&&fe.now!==z.Date.now&&fe.now,G$=j.setTimeout!==z.setTimeout&&j.setTimeout,Ps=vt.ceil,Ss=vt.floor,xu=Ze.getOwnPropertySymbols,q$=bs?bs.isBuffer:n,Kd=j.isFinite,Z$=ms.join,Y$=Md(Ze.keys,Ze),bt=vt.max,Ct=vt.min,J$=fe.now,Q$=j.parseInt,Bd=vt.random,X$=ms.reverse,Du=zi(j,"DataView"),ho=zi(j,"Map"),wu=zi(j,"Promise"),wa=zi(j,"Set"),po=zi(j,"WeakMap"),mo=zi(Ze,"create"),Ts=po&&new po,Pa={},e1=ji(Du),t1=ji(ho),n1=ji(wu),r1=ji(wa),i1=ji(po),_s=ri?ri.prototype:n,go=_s?_s.valueOf:n,Ud=_s?_s.toString:n;function g(r){if(rt(r)&&!_e(r)&&!(r instanceof ke)){if(r instanceof gn)return r;if(Ge.call(r,"__wrapped__"))return zh(r)}return new gn(r)}var Sa=function(){function r(){}return function(i){if(!Xe(i))return{};if(kd)return kd(i);r.prototype=i;var s=new r;return r.prototype=n,s}}();function Es(){}function gn(r,i){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}g.templateSettings={escape:yr,evaluate:vr,interpolate:xt,variable:"",imports:{_:g}},g.prototype=Es.prototype,g.prototype.constructor=g,gn.prototype=Sa(Es.prototype),gn.prototype.constructor=gn;function ke(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=re,this.__views__=[]}function a1(){var r=new ke(this.__wrapped__);return r.__actions__=Gt(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=Gt(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=Gt(this.__views__),r}function o1(){if(this.__filtered__){var r=new ke(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function s1(){var r=this.__wrapped__.value(),i=this.__dir__,s=_e(r),c=i<0,p=s?r.length:0,b=bx(0,p,this.__views__),S=b.start,T=b.end,I=T-S,W=c?T:S-1,G=this.__iteratees__,J=G.length,le=0,he=Ct(I,this.__takeCount__);if(!s||!c&&p==I&&he==I)return fh(r,this.__actions__);var xe=[];e:for(;I--&&le<he;){W+=i;for(var Ce=-1,De=r[W];++Ce<J;){var Le=G[Ce],Fe=Le.iteratee,sn=Le.type,Kt=Fe(De);if(sn==de)De=Kt;else if(!Kt){if(sn==B)continue e;break e}}xe[le++]=De}return xe}ke.prototype=Sa(Es.prototype),ke.prototype.constructor=ke;function Ni(r){var i=-1,s=r==null?0:r.length;for(this.clear();++i<s;){var c=r[i];this.set(c[0],c[1])}}function l1(){this.__data__=mo?mo(null):{},this.size=0}function u1(r){var i=this.has(r)&&delete this.__data__[r];return this.size-=i?1:0,i}function c1(r){var i=this.__data__;if(mo){var s=i[r];return s===d?n:s}return Ge.call(i,r)?i[r]:n}function f1(r){var i=this.__data__;return mo?i[r]!==n:Ge.call(i,r)}function d1(r,i){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=mo&&i===n?d:i,this}Ni.prototype.clear=l1,Ni.prototype.delete=u1,Ni.prototype.get=c1,Ni.prototype.has=f1,Ni.prototype.set=d1;function Pr(r){var i=-1,s=r==null?0:r.length;for(this.clear();++i<s;){var c=r[i];this.set(c[0],c[1])}}function h1(){this.__data__=[],this.size=0}function p1(r){var i=this.__data__,s=Rs(i,r);if(s<0)return!1;var c=i.length-1;return s==c?i.pop():Ds.call(i,s,1),--this.size,!0}function m1(r){var i=this.__data__,s=Rs(i,r);return s<0?n:i[s][1]}function g1(r){return Rs(this.__data__,r)>-1}function y1(r,i){var s=this.__data__,c=Rs(s,r);return c<0?(++this.size,s.push([r,i])):s[c][1]=i,this}Pr.prototype.clear=h1,Pr.prototype.delete=p1,Pr.prototype.get=m1,Pr.prototype.has=g1,Pr.prototype.set=y1;function Sr(r){var i=-1,s=r==null?0:r.length;for(this.clear();++i<s;){var c=r[i];this.set(c[0],c[1])}}function v1(){this.size=0,this.__data__={hash:new Ni,map:new(ho||Pr),string:new Ni}}function b1(r){var i=Us(this,r).delete(r);return this.size-=i?1:0,i}function $1(r){return Us(this,r).get(r)}function x1(r){return Us(this,r).has(r)}function D1(r,i){var s=Us(this,r),c=s.size;return s.set(r,i),this.size+=s.size==c?0:1,this}Sr.prototype.clear=v1,Sr.prototype.delete=b1,Sr.prototype.get=$1,Sr.prototype.has=x1,Sr.prototype.set=D1;function Ki(r){var i=-1,s=r==null?0:r.length;for(this.__data__=new Sr;++i<s;)this.add(r[i])}function w1(r){return this.__data__.set(r,d),this}function P1(r){return this.__data__.has(r)}Ki.prototype.add=Ki.prototype.push=w1,Ki.prototype.has=P1;function Bn(r){var i=this.__data__=new Pr(r);this.size=i.size}function S1(){this.__data__=new Pr,this.size=0}function T1(r){var i=this.__data__,s=i.delete(r);return this.size=i.size,s}function _1(r){return this.__data__.get(r)}function E1(r){return this.__data__.has(r)}function R1(r,i){var s=this.__data__;if(s instanceof Pr){var c=s.__data__;if(!ho||c.length<o-1)return c.push([r,i]),this.size=++s.size,this;s=this.__data__=new Sr(c)}return s.set(r,i),this.size=s.size,this}Bn.prototype.clear=S1,Bn.prototype.delete=T1,Bn.prototype.get=_1,Bn.prototype.has=E1,Bn.prototype.set=R1;function zd(r,i){var s=_e(r),c=!s&&Hi(r),p=!s&&!c&&li(r),b=!s&&!c&&!p&&Ra(r),S=s||c||p||b,T=S?yu(r.length,K$):[],I=T.length;for(var W in r)(i||Ge.call(r,W))&&!(S&&(W=="length"||p&&(W=="offset"||W=="parent")||b&&(W=="buffer"||W=="byteLength"||W=="byteOffset")||Rr(W,I)))&&T.push(W);return T}function jd(r){var i=r.length;return i?r[Ou(0,i-1)]:n}function A1(r,i){return zs(Gt(r),Bi(i,0,r.length))}function C1(r){return zs(Gt(r))}function Pu(r,i,s){(s!==n&&!Un(r[i],s)||s===n&&!(i in r))&&Tr(r,i,s)}function yo(r,i,s){var c=r[i];(!(Ge.call(r,i)&&Un(c,s))||s===n&&!(i in r))&&Tr(r,i,s)}function Rs(r,i){for(var s=r.length;s--;)if(Un(r[s][0],i))return s;return-1}function M1(r,i,s,c){return ii(r,function(p,b,S){i(c,p,s(p),S)}),c}function Hd(r,i){return r&&rr(i,Pt(i),r)}function I1(r,i){return r&&rr(i,Zt(i),r)}function Tr(r,i,s){i=="__proto__"&&ws?ws(r,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):r[i]=s}function Su(r,i){for(var s=-1,c=i.length,p=K(c),b=r==null;++s<c;)p[s]=b?n:ac(r,i[s]);return p}function Bi(r,i,s){return r===r&&(s!==n&&(r=r<=s?r:s),i!==n&&(r=r>=i?r:i)),r}function yn(r,i,s,c,p,b){var S,T=i&x,I=i&y,W=i&$;if(s&&(S=p?s(r,c,p,b):s(r)),S!==n)return S;if(!Xe(r))return r;var G=_e(r);if(G){if(S=xx(r),!T)return Gt(r,S)}else{var J=Mt(r),le=J==Rn||J==qn;if(li(r))return ph(r,T);if(J==tn||J==ve||le&&!p){if(S=I||le?{}:Ih(r),!T)return I?cx(r,I1(S,r)):ux(r,Hd(S,r))}else{if(!Ne[J])return p?r:{};S=Dx(r,J,T)}}b||(b=new Bn);var he=b.get(r);if(he)return he;b.set(r,S),lp(r)?r.forEach(function(De){S.add(yn(De,i,s,De,r,b))}):op(r)&&r.forEach(function(De,Le){S.set(Le,yn(De,i,s,Le,r,b))});var xe=W?I?Vu:Hu:I?Zt:Pt,Ce=G?n:xe(r);return pn(Ce||r,function(De,Le){Ce&&(Le=De,De=r[Le]),yo(S,Le,yn(De,i,s,Le,r,b))}),S}function O1(r){var i=Pt(r);return function(s){return Vd(s,r,i)}}function Vd(r,i,s){var c=s.length;if(r==null)return!c;for(r=Ze(r);c--;){var p=s[c],b=i[p],S=r[p];if(S===n&&!(p in r)||!b(S))return!1}return!0}function Wd(r,i,s){if(typeof r!="function")throw new mn(u);return Po(function(){r.apply(n,s)},i)}function vo(r,i,s,c){var p=-1,b=ds,S=!0,T=r.length,I=[],W=i.length;if(!T)return I;s&&(i=Je(i,rn(s))),c?(b=fu,S=!1):i.length>=o&&(b=co,S=!1,i=new Ki(i));e:for(;++p<T;){var G=r[p],J=s==null?G:s(G);if(G=c||G!==0?G:0,S&&J===J){for(var le=W;le--;)if(i[le]===J)continue e;I.push(G)}else b(i,J,c)||I.push(G)}return I}var ii=bh(nr),Gd=bh(_u,!0);function L1(r,i){var s=!0;return ii(r,function(c,p,b){return s=!!i(c,p,b),s}),s}function As(r,i,s){for(var c=-1,p=r.length;++c<p;){var b=r[c],S=i(b);if(S!=null&&(T===n?S===S&&!on(S):s(S,T)))var T=S,I=b}return I}function k1(r,i,s,c){var p=r.length;for(s=Re(s),s<0&&(s=-s>p?0:p+s),c=c===n||c>p?p:Re(c),c<0&&(c+=p),c=s>c?0:cp(c);s<c;)r[s++]=i;return r}function qd(r,i){var s=[];return ii(r,function(c,p,b){i(c,p,b)&&s.push(c)}),s}function _t(r,i,s,c,p){var b=-1,S=r.length;for(s||(s=Px),p||(p=[]);++b<S;){var T=r[b];i>0&&s(T)?i>1?_t(T,i-1,s,c,p):ti(p,T):c||(p[p.length]=T)}return p}var Tu=$h(),Zd=$h(!0);function nr(r,i){return r&&Tu(r,i,Pt)}function _u(r,i){return r&&Zd(r,i,Pt)}function Cs(r,i){return ei(i,function(s){return Ar(r[s])})}function Ui(r,i){i=oi(i,r);for(var s=0,c=i.length;r!=null&&s<c;)r=r[ir(i[s++])];return s&&s==c?r:n}function Yd(r,i,s){var c=i(r);return _e(r)?c:ti(c,s(r))}function Ft(r){return r==null?r===n?io:no:Fi&&Fi in Ze(r)?vx(r):Cx(r)}function Eu(r,i){return r>i}function F1(r,i){return r!=null&&Ge.call(r,i)}function N1(r,i){return r!=null&&i in Ze(r)}function K1(r,i,s){return r>=Ct(i,s)&&r<bt(i,s)}function Ru(r,i,s){for(var c=s?fu:ds,p=r[0].length,b=r.length,S=b,T=K(b),I=1/0,W=[];S--;){var G=r[S];S&&i&&(G=Je(G,rn(i))),I=Ct(G.length,I),T[S]=!s&&(i||p>=120&&G.length>=120)?new Ki(S&&G):n}G=r[0];var J=-1,le=T[0];e:for(;++J<p&&W.length<I;){var he=G[J],xe=i?i(he):he;if(he=s||he!==0?he:0,!(le?co(le,xe):c(W,xe,s))){for(S=b;--S;){var Ce=T[S];if(!(Ce?co(Ce,xe):c(r[S],xe,s)))continue e}le&&le.push(xe),W.push(he)}}return W}function B1(r,i,s,c){return nr(r,function(p,b,S){i(c,s(p),b,S)}),c}function bo(r,i,s){i=oi(i,r),r=Fh(r,i);var c=r==null?r:r[ir(bn(i))];return c==null?n:wt(c,r,s)}function Jd(r){return rt(r)&&Ft(r)==ve}function U1(r){return rt(r)&&Ft(r)==ae}function z1(r){return rt(r)&&Ft(r)==gt}function $o(r,i,s,c,p){return r===i?!0:r==null||i==null||!rt(r)&&!rt(i)?r!==r&&i!==i:j1(r,i,s,c,$o,p)}function j1(r,i,s,c,p,b){var S=_e(r),T=_e(i),I=S?Ot:Mt(r),W=T?Ot:Mt(i);I=I==ve?tn:I,W=W==ve?tn:W;var G=I==tn,J=W==tn,le=I==W;if(le&&li(r)){if(!li(i))return!1;S=!0,G=!1}if(le&&!G)return b||(b=new Bn),S||Ra(r)?Ah(r,i,s,c,p,b):gx(r,i,I,s,c,p,b);if(!(s&P)){var he=G&&Ge.call(r,"__wrapped__"),xe=J&&Ge.call(i,"__wrapped__");if(he||xe){var Ce=he?r.value():r,De=xe?i.value():i;return b||(b=new Bn),p(Ce,De,s,c,b)}}return le?(b||(b=new Bn),yx(r,i,s,c,p,b)):!1}function H1(r){return rt(r)&&Mt(r)==Rt}function Au(r,i,s,c){var p=s.length,b=p,S=!c;if(r==null)return!b;for(r=Ze(r);p--;){var T=s[p];if(S&&T[2]?T[1]!==r[T[0]]:!(T[0]in r))return!1}for(;++p<b;){T=s[p];var I=T[0],W=r[I],G=T[1];if(S&&T[2]){if(W===n&&!(I in r))return!1}else{var J=new Bn;if(c)var le=c(W,G,I,r,i,J);if(!(le===n?$o(G,W,P|E,c,J):le))return!1}}return!0}function Qd(r){if(!Xe(r)||Tx(r))return!1;var i=Ar(r)?H$:tt;return i.test(ji(r))}function V1(r){return rt(r)&&Ft(r)==dr}function W1(r){return rt(r)&&Mt(r)==Lt}function G1(r){return rt(r)&&qs(r.length)&&!!Ve[Ft(r)]}function Xd(r){return typeof r=="function"?r:r==null?Yt:typeof r=="object"?_e(r)?nh(r[0],r[1]):th(r):xp(r)}function Cu(r){if(!wo(r))return Y$(r);var i=[];for(var s in Ze(r))Ge.call(r,s)&&s!="constructor"&&i.push(s);return i}function q1(r){if(!Xe(r))return Ax(r);var i=wo(r),s=[];for(var c in r)c=="constructor"&&(i||!Ge.call(r,c))||s.push(c);return s}function Mu(r,i){return r<i}function eh(r,i){var s=-1,c=qt(r)?K(r.length):[];return ii(r,function(p,b,S){c[++s]=i(p,b,S)}),c}function th(r){var i=Gu(r);return i.length==1&&i[0][2]?Lh(i[0][0],i[0][1]):function(s){return s===r||Au(s,r,i)}}function nh(r,i){return Zu(r)&&Oh(i)?Lh(ir(r),i):function(s){var c=ac(s,r);return c===n&&c===i?oc(s,r):$o(i,c,P|E)}}function Ms(r,i,s,c,p){r!==i&&Tu(i,function(b,S){if(p||(p=new Bn),Xe(b))Z1(r,i,S,s,Ms,c,p);else{var T=c?c(Ju(r,S),b,S+"",r,i,p):n;T===n&&(T=b),Pu(r,S,T)}},Zt)}function Z1(r,i,s,c,p,b,S){var T=Ju(r,s),I=Ju(i,s),W=S.get(I);if(W){Pu(r,s,W);return}var G=b?b(T,I,s+"",r,i,S):n,J=G===n;if(J){var le=_e(I),he=!le&&li(I),xe=!le&&!he&&Ra(I);G=I,le||he||xe?_e(T)?G=T:ot(T)?G=Gt(T):he?(J=!1,G=ph(I,!0)):xe?(J=!1,G=mh(I,!0)):G=[]:So(I)||Hi(I)?(G=T,Hi(T)?G=fp(T):(!Xe(T)||Ar(T))&&(G=Ih(I))):J=!1}J&&(S.set(I,G),p(G,I,c,b,S),S.delete(I)),Pu(r,s,G)}function rh(r,i){var s=r.length;if(s)return i+=i<0?s:0,Rr(i,s)?r[i]:n}function ih(r,i,s){i.length?i=Je(i,function(b){return _e(b)?function(S){return Ui(S,b.length===1?b[0]:b)}:b}):i=[Yt];var c=-1;i=Je(i,rn(be()));var p=eh(r,function(b,S,T){var I=Je(i,function(W){return W(b)});return{criteria:I,index:++c,value:b}});return D$(p,function(b,S){return lx(b,S,s)})}function Y1(r,i){return ah(r,i,function(s,c){return oc(r,c)})}function ah(r,i,s){for(var c=-1,p=i.length,b={};++c<p;){var S=i[c],T=Ui(r,S);s(T,S)&&xo(b,oi(S,r),T)}return b}function J1(r){return function(i){return Ui(i,r)}}function Iu(r,i,s,c){var p=c?x$:va,b=-1,S=i.length,T=r;for(r===i&&(i=Gt(i)),s&&(T=Je(r,rn(s)));++b<S;)for(var I=0,W=i[b],G=s?s(W):W;(I=p(T,G,I,c))>-1;)T!==r&&Ds.call(T,I,1),Ds.call(r,I,1);return r}function oh(r,i){for(var s=r?i.length:0,c=s-1;s--;){var p=i[s];if(s==c||p!==b){var b=p;Rr(p)?Ds.call(r,p,1):Fu(r,p)}}return r}function Ou(r,i){return r+Ss(Bd()*(i-r+1))}function Q1(r,i,s,c){for(var p=-1,b=bt(Ps((i-r)/(s||1)),0),S=K(b);b--;)S[c?b:++p]=r,r+=s;return S}function Lu(r,i){var s="";if(!r||i<1||i>Y)return s;do i%2&&(s+=r),i=Ss(i/2),i&&(r+=r);while(i);return s}function Me(r,i){return Qu(kh(r,i,Yt),r+"")}function X1(r){return jd(Aa(r))}function ex(r,i){var s=Aa(r);return zs(s,Bi(i,0,s.length))}function xo(r,i,s,c){if(!Xe(r))return r;i=oi(i,r);for(var p=-1,b=i.length,S=b-1,T=r;T!=null&&++p<b;){var I=ir(i[p]),W=s;if(I==="__proto__"||I==="constructor"||I==="prototype")return r;if(p!=S){var G=T[I];W=c?c(G,I,T):n,W===n&&(W=Xe(G)?G:Rr(i[p+1])?[]:{})}yo(T,I,W),T=T[I]}return r}var sh=Ts?function(r,i){return Ts.set(r,i),r}:Yt,tx=ws?function(r,i){return ws(r,"toString",{configurable:!0,enumerable:!1,value:lc(i),writable:!0})}:Yt;function nx(r){return zs(Aa(r))}function vn(r,i,s){var c=-1,p=r.length;i<0&&(i=-i>p?0:p+i),s=s>p?p:s,s<0&&(s+=p),p=i>s?0:s-i>>>0,i>>>=0;for(var b=K(p);++c<p;)b[c]=r[c+i];return b}function rx(r,i){var s;return ii(r,function(c,p,b){return s=i(c,p,b),!s}),!!s}function Is(r,i,s){var c=0,p=r==null?c:r.length;if(typeof i=="number"&&i===i&&p<=mt){for(;c<p;){var b=c+p>>>1,S=r[b];S!==null&&!on(S)&&(s?S<=i:S<i)?c=b+1:p=b}return p}return ku(r,i,Yt,s)}function ku(r,i,s,c){var p=0,b=r==null?0:r.length;if(b===0)return 0;i=s(i);for(var S=i!==i,T=i===null,I=on(i),W=i===n;p<b;){var G=Ss((p+b)/2),J=s(r[G]),le=J!==n,he=J===null,xe=J===J,Ce=on(J);if(S)var De=c||xe;else W?De=xe&&(c||le):T?De=xe&&le&&(c||!he):I?De=xe&&le&&!he&&(c||!Ce):he||Ce?De=!1:De=c?J<=i:J<i;De?p=G+1:b=G}return Ct(b,Ie)}function lh(r,i){for(var s=-1,c=r.length,p=0,b=[];++s<c;){var S=r[s],T=i?i(S):S;if(!s||!Un(T,I)){var I=T;b[p++]=S===0?0:S}}return b}function uh(r){return typeof r=="number"?r:on(r)?ie:+r}function an(r){if(typeof r=="string")return r;if(_e(r))return Je(r,an)+"";if(on(r))return Ud?Ud.call(r):"";var i=r+"";return i=="0"&&1/r==-te?"-0":i}function ai(r,i,s){var c=-1,p=ds,b=r.length,S=!0,T=[],I=T;if(s)S=!1,p=fu;else if(b>=o){var W=i?null:px(r);if(W)return ps(W);S=!1,p=co,I=new Ki}else I=i?[]:T;e:for(;++c<b;){var G=r[c],J=i?i(G):G;if(G=s||G!==0?G:0,S&&J===J){for(var le=I.length;le--;)if(I[le]===J)continue e;i&&I.push(J),T.push(G)}else p(I,J,s)||(I!==T&&I.push(J),T.push(G))}return T}function Fu(r,i){return i=oi(i,r),r=Fh(r,i),r==null||delete r[ir(bn(i))]}function ch(r,i,s,c){return xo(r,i,s(Ui(r,i)),c)}function Os(r,i,s,c){for(var p=r.length,b=c?p:-1;(c?b--:++b<p)&&i(r[b],b,r););return s?vn(r,c?0:b,c?b+1:p):vn(r,c?b+1:0,c?p:b)}function fh(r,i){var s=r;return s instanceof ke&&(s=s.value()),du(i,function(c,p){return p.func.apply(p.thisArg,ti([c],p.args))},s)}function Nu(r,i,s){var c=r.length;if(c<2)return c?ai(r[0]):[];for(var p=-1,b=K(c);++p<c;)for(var S=r[p],T=-1;++T<c;)T!=p&&(b[p]=vo(b[p]||S,r[T],i,s));return ai(_t(b,1),i,s)}function dh(r,i,s){for(var c=-1,p=r.length,b=i.length,S={};++c<p;){var T=c<b?i[c]:n;s(S,r[c],T)}return S}function Ku(r){return ot(r)?r:[]}function Bu(r){return typeof r=="function"?r:Yt}function oi(r,i){return _e(r)?r:Zu(r,i)?[r]:Uh(je(r))}var ix=Me;function si(r,i,s){var c=r.length;return s=s===n?c:s,!i&&s>=c?r:vn(r,i,s)}var hh=V$||function(r){return z.clearTimeout(r)};function ph(r,i){if(i)return r.slice();var s=r.length,c=Ld?Ld(s):new r.constructor(s);return r.copy(c),c}function Uu(r){var i=new r.constructor(r.byteLength);return new $s(i).set(new $s(r)),i}function ax(r,i){var s=i?Uu(r.buffer):r.buffer;return new r.constructor(s,r.byteOffset,r.byteLength)}function ox(r){var i=new r.constructor(r.source,Ht.exec(r));return i.lastIndex=r.lastIndex,i}function sx(r){return go?Ze(go.call(r)):{}}function mh(r,i){var s=i?Uu(r.buffer):r.buffer;return new r.constructor(s,r.byteOffset,r.length)}function gh(r,i){if(r!==i){var s=r!==n,c=r===null,p=r===r,b=on(r),S=i!==n,T=i===null,I=i===i,W=on(i);if(!T&&!W&&!b&&r>i||b&&S&&I&&!T&&!W||c&&S&&I||!s&&I||!p)return 1;if(!c&&!b&&!W&&r<i||W&&s&&p&&!c&&!b||T&&s&&p||!S&&p||!I)return-1}return 0}function lx(r,i,s){for(var c=-1,p=r.criteria,b=i.criteria,S=p.length,T=s.length;++c<S;){var I=gh(p[c],b[c]);if(I){if(c>=T)return I;var W=s[c];return I*(W=="desc"?-1:1)}}return r.index-i.index}function yh(r,i,s,c){for(var p=-1,b=r.length,S=s.length,T=-1,I=i.length,W=bt(b-S,0),G=K(I+W),J=!c;++T<I;)G[T]=i[T];for(;++p<S;)(J||p<b)&&(G[s[p]]=r[p]);for(;W--;)G[T++]=r[p++];return G}function vh(r,i,s,c){for(var p=-1,b=r.length,S=-1,T=s.length,I=-1,W=i.length,G=bt(b-T,0),J=K(G+W),le=!c;++p<G;)J[p]=r[p];for(var he=p;++I<W;)J[he+I]=i[I];for(;++S<T;)(le||p<b)&&(J[he+s[S]]=r[p++]);return J}function Gt(r,i){var s=-1,c=r.length;for(i||(i=K(c));++s<c;)i[s]=r[s];return i}function rr(r,i,s,c){var p=!s;s||(s={});for(var b=-1,S=i.length;++b<S;){var T=i[b],I=c?c(s[T],r[T],T,s,r):n;I===n&&(I=r[T]),p?Tr(s,T,I):yo(s,T,I)}return s}function ux(r,i){return rr(r,qu(r),i)}function cx(r,i){return rr(r,Ch(r),i)}function Ls(r,i){return function(s,c){var p=_e(s)?m$:M1,b=i?i():{};return p(s,r,be(c,2),b)}}function Ta(r){return Me(function(i,s){var c=-1,p=s.length,b=p>1?s[p-1]:n,S=p>2?s[2]:n;for(b=r.length>3&&typeof b=="function"?(p--,b):n,S&&Nt(s[0],s[1],S)&&(b=p<3?n:b,p=1),i=Ze(i);++c<p;){var T=s[c];T&&r(i,T,c,b)}return i})}function bh(r,i){return function(s,c){if(s==null)return s;if(!qt(s))return r(s,c);for(var p=s.length,b=i?p:-1,S=Ze(s);(i?b--:++b<p)&&c(S[b],b,S)!==!1;);return s}}function $h(r){return function(i,s,c){for(var p=-1,b=Ze(i),S=c(i),T=S.length;T--;){var I=S[r?T:++p];if(s(b[I],I,b)===!1)break}return i}}function fx(r,i,s){var c=i&R,p=Do(r);function b(){var S=this&&this!==z&&this instanceof b?p:r;return S.apply(c?s:this,arguments)}return b}function xh(r){return function(i){i=je(i);var s=ba(i)?Kn(i):n,c=s?s[0]:i.charAt(0),p=s?si(s,1).join(""):i.slice(1);return c[r]()+p}}function _a(r){return function(i){return du(bp(vp(i).replace(Oi,"")),r,"")}}function Do(r){return function(){var i=arguments;switch(i.length){case 0:return new r;case 1:return new r(i[0]);case 2:return new r(i[0],i[1]);case 3:return new r(i[0],i[1],i[2]);case 4:return new r(i[0],i[1],i[2],i[3]);case 5:return new r(i[0],i[1],i[2],i[3],i[4]);case 6:return new r(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new r(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=Sa(r.prototype),c=r.apply(s,i);return Xe(c)?c:s}}function dx(r,i,s){var c=Do(r);function p(){for(var b=arguments.length,S=K(b),T=b,I=Ea(p);T--;)S[T]=arguments[T];var W=b<3&&S[0]!==I&&S[b-1]!==I?[]:ni(S,I);if(b-=W.length,b<s)return Th(r,i,ks,p.placeholder,n,S,W,n,n,s-b);var G=this&&this!==z&&this instanceof p?c:r;return wt(G,this,S)}return p}function Dh(r){return function(i,s,c){var p=Ze(i);if(!qt(i)){var b=be(s,3);i=Pt(i),s=function(T){return b(p[T],T,p)}}var S=r(i,s,c);return S>-1?p[b?i[S]:S]:n}}function wh(r){return Er(function(i){var s=i.length,c=s,p=gn.prototype.thru;for(r&&i.reverse();c--;){var b=i[c];if(typeof b!="function")throw new mn(u);if(p&&!S&&Bs(b)=="wrapper")var S=new gn([],!0)}for(c=S?c:s;++c<s;){b=i[c];var T=Bs(b),I=T=="wrapper"?Wu(b):n;I&&Yu(I[0])&&I[1]==(ee|N|H|w)&&!I[4].length&&I[9]==1?S=S[Bs(I[0])].apply(S,I[3]):S=b.length==1&&Yu(b)?S[T]():S.thru(b)}return function(){var W=arguments,G=W[0];if(S&&W.length==1&&_e(G))return S.plant(G).value();for(var J=0,le=s?i[J].apply(this,W):G;++J<s;)le=i[J].call(this,le);return le}})}function ks(r,i,s,c,p,b,S,T,I,W){var G=i&ee,J=i&R,le=i&k,he=i&(N|F),xe=i&V,Ce=le?n:Do(r);function De(){for(var Le=arguments.length,Fe=K(Le),sn=Le;sn--;)Fe[sn]=arguments[sn];if(he)var Kt=Ea(De),ln=P$(Fe,Kt);if(c&&(Fe=yh(Fe,c,p,he)),b&&(Fe=vh(Fe,b,S,he)),Le-=ln,he&&Le<W){var st=ni(Fe,Kt);return Th(r,i,ks,De.placeholder,s,Fe,st,T,I,W-Le)}var zn=J?s:this,Mr=le?zn[r]:r;return Le=Fe.length,T?Fe=Mx(Fe,T):xe&&Le>1&&Fe.reverse(),G&&I<Le&&(Fe.length=I),this&&this!==z&&this instanceof De&&(Mr=Ce||Do(Mr)),Mr.apply(zn,Fe)}return De}function Ph(r,i){return function(s,c){return B1(s,r,i(c),{})}}function Fs(r,i){return function(s,c){var p;if(s===n&&c===n)return i;if(s!==n&&(p=s),c!==n){if(p===n)return c;typeof s=="string"||typeof c=="string"?(s=an(s),c=an(c)):(s=uh(s),c=uh(c)),p=r(s,c)}return p}}function zu(r){return Er(function(i){return i=Je(i,rn(be())),Me(function(s){var c=this;return r(i,function(p){return wt(p,c,s)})})})}function Ns(r,i){i=i===n?" ":an(i);var s=i.length;if(s<2)return s?Lu(i,r):i;var c=Lu(i,Ps(r/$a(i)));return ba(i)?si(Kn(c),0,r).join(""):c.slice(0,r)}function hx(r,i,s,c){var p=i&R,b=Do(r);function S(){for(var T=-1,I=arguments.length,W=-1,G=c.length,J=K(G+I),le=this&&this!==z&&this instanceof S?b:r;++W<G;)J[W]=c[W];for(;I--;)J[W++]=arguments[++T];return wt(le,p?s:this,J)}return S}function Sh(r){return function(i,s,c){return c&&typeof c!="number"&&Nt(i,s,c)&&(s=c=n),i=Cr(i),s===n?(s=i,i=0):s=Cr(s),c=c===n?i<s?1:-1:Cr(c),Q1(i,s,c,r)}}function Ks(r){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=$n(i),s=$n(s)),r(i,s)}}function Th(r,i,s,c,p,b,S,T,I,W){var G=i&N,J=G?S:n,le=G?n:S,he=G?b:n,xe=G?n:b;i|=G?H:ue,i&=~(G?ue:H),i&O||(i&=~(R|k));var Ce=[r,i,p,he,J,xe,le,T,I,W],De=s.apply(n,Ce);return Yu(r)&&Nh(De,Ce),De.placeholder=c,Kh(De,r,i)}function ju(r){var i=vt[r];return function(s,c){if(s=$n(s),c=c==null?0:Ct(Re(c),292),c&&Kd(s)){var p=(je(s)+"e").split("e"),b=i(p[0]+"e"+(+p[1]+c));return p=(je(b)+"e").split("e"),+(p[0]+"e"+(+p[1]-c))}return i(s)}}var px=wa&&1/ps(new wa([,-0]))[1]==te?function(r){return new wa(r)}:fc;function _h(r){return function(i){var s=Mt(i);return s==Rt?bu(i):s==Lt?C$(i):w$(i,r(i))}}function _r(r,i,s,c,p,b,S,T){var I=i&k;if(!I&&typeof r!="function")throw new mn(u);var W=c?c.length:0;if(W||(i&=~(H|ue),c=p=n),S=S===n?S:bt(Re(S),0),T=T===n?T:Re(T),W-=p?p.length:0,i&ue){var G=c,J=p;c=p=n}var le=I?n:Wu(r),he=[r,i,s,c,p,G,J,b,S,T];if(le&&Rx(he,le),r=he[0],i=he[1],s=he[2],c=he[3],p=he[4],T=he[9]=he[9]===n?I?0:r.length:bt(he[9]-W,0),!T&&i&(N|F)&&(i&=~(N|F)),!i||i==R)var xe=fx(r,i,s);else i==N||i==F?xe=dx(r,i,T):(i==H||i==(R|H))&&!p.length?xe=hx(r,i,s,c):xe=ks.apply(n,he);var Ce=le?sh:Nh;return Kh(Ce(xe,he),r,i)}function Eh(r,i,s,c){return r===n||Un(r,Da[s])&&!Ge.call(c,s)?i:r}function Rh(r,i,s,c,p,b){return Xe(r)&&Xe(i)&&(b.set(i,r),Ms(r,i,n,Rh,b),b.delete(i)),r}function mx(r){return So(r)?n:r}function Ah(r,i,s,c,p,b){var S=s&P,T=r.length,I=i.length;if(T!=I&&!(S&&I>T))return!1;var W=b.get(r),G=b.get(i);if(W&&G)return W==i&&G==r;var J=-1,le=!0,he=s&E?new Ki:n;for(b.set(r,i),b.set(i,r);++J<T;){var xe=r[J],Ce=i[J];if(c)var De=S?c(Ce,xe,J,i,r,b):c(xe,Ce,J,r,i,b);if(De!==n){if(De)continue;le=!1;break}if(he){if(!hu(i,function(Le,Fe){if(!co(he,Fe)&&(xe===Le||p(xe,Le,s,c,b)))return he.push(Fe)})){le=!1;break}}else if(!(xe===Ce||p(xe,Ce,s,c,b))){le=!1;break}}return b.delete(r),b.delete(i),le}function gx(r,i,s,c,p,b,S){switch(s){case se:if(r.byteLength!=i.byteLength||r.byteOffset!=i.byteOffset)return!1;r=r.buffer,i=i.buffer;case ae:return!(r.byteLength!=i.byteLength||!b(new $s(r),new $s(i)));case et:case gt:case fr:return Un(+r,+i);case En:return r.name==i.name&&r.message==i.message;case dr:case hr:return r==i+"";case Rt:var T=bu;case Lt:var I=c&P;if(T||(T=ps),r.size!=i.size&&!I)return!1;var W=S.get(r);if(W)return W==i;c|=E,S.set(r,i);var G=Ah(T(r),T(i),c,p,b,S);return S.delete(r),G;case Vr:if(go)return go.call(r)==go.call(i)}return!1}function yx(r,i,s,c,p,b){var S=s&P,T=Hu(r),I=T.length,W=Hu(i),G=W.length;if(I!=G&&!S)return!1;for(var J=I;J--;){var le=T[J];if(!(S?le in i:Ge.call(i,le)))return!1}var he=b.get(r),xe=b.get(i);if(he&&xe)return he==i&&xe==r;var Ce=!0;b.set(r,i),b.set(i,r);for(var De=S;++J<I;){le=T[J];var Le=r[le],Fe=i[le];if(c)var sn=S?c(Fe,Le,le,i,r,b):c(Le,Fe,le,r,i,b);if(!(sn===n?Le===Fe||p(Le,Fe,s,c,b):sn)){Ce=!1;break}De||(De=le=="constructor")}if(Ce&&!De){var Kt=r.constructor,ln=i.constructor;Kt!=ln&&"constructor"in r&&"constructor"in i&&!(typeof Kt=="function"&&Kt instanceof Kt&&typeof ln=="function"&&ln instanceof ln)&&(Ce=!1)}return b.delete(r),b.delete(i),Ce}function Er(r){return Qu(kh(r,n,Vh),r+"")}function Hu(r){return Yd(r,Pt,qu)}function Vu(r){return Yd(r,Zt,Ch)}var Wu=Ts?function(r){return Ts.get(r)}:fc;function Bs(r){for(var i=r.name+"",s=Pa[i],c=Ge.call(Pa,i)?s.length:0;c--;){var p=s[c],b=p.func;if(b==null||b==r)return p.name}return i}function Ea(r){var i=Ge.call(g,"placeholder")?g:r;return i.placeholder}function be(){var r=g.iteratee||uc;return r=r===uc?Xd:r,arguments.length?r(arguments[0],arguments[1]):r}function Us(r,i){var s=r.__data__;return Sx(i)?s[typeof i=="string"?"string":"hash"]:s.map}function Gu(r){for(var i=Pt(r),s=i.length;s--;){var c=i[s],p=r[c];i[s]=[c,p,Oh(p)]}return i}function zi(r,i){var s=E$(r,i);return Qd(s)?s:n}function vx(r){var i=Ge.call(r,Fi),s=r[Fi];try{r[Fi]=n;var c=!0}catch{}var p=vs.call(r);return c&&(i?r[Fi]=s:delete r[Fi]),p}var qu=xu?function(r){return r==null?[]:(r=Ze(r),ei(xu(r),function(i){return Fd.call(r,i)}))}:dc,Ch=xu?function(r){for(var i=[];r;)ti(i,qu(r)),r=xs(r);return i}:dc,Mt=Ft;(Du&&Mt(new Du(new ArrayBuffer(1)))!=se||ho&&Mt(new ho)!=Rt||wu&&Mt(wu.resolve())!=ia||wa&&Mt(new wa)!=Lt||po&&Mt(new po)!=Zn)&&(Mt=function(r){var i=Ft(r),s=i==tn?r.constructor:n,c=s?ji(s):"";if(c)switch(c){case e1:return se;case t1:return Rt;case n1:return ia;case r1:return Lt;case i1:return Zn}return i});function bx(r,i,s){for(var c=-1,p=s.length;++c<p;){var b=s[c],S=b.size;switch(b.type){case"drop":r+=S;break;case"dropRight":i-=S;break;case"take":i=Ct(i,r+S);break;case"takeRight":r=bt(r,i-S);break}}return{start:r,end:i}}function $x(r){var i=r.match(ct);return i?i[1].split(xi):[]}function Mh(r,i,s){i=oi(i,r);for(var c=-1,p=i.length,b=!1;++c<p;){var S=ir(i[c]);if(!(b=r!=null&&s(r,S)))break;r=r[S]}return b||++c!=p?b:(p=r==null?0:r.length,!!p&&qs(p)&&Rr(S,p)&&(_e(r)||Hi(r)))}function xx(r){var i=r.length,s=new r.constructor(i);return i&&typeof r[0]=="string"&&Ge.call(r,"index")&&(s.index=r.index,s.input=r.input),s}function Ih(r){return typeof r.constructor=="function"&&!wo(r)?Sa(xs(r)):{}}function Dx(r,i,s){var c=r.constructor;switch(i){case ae:return Uu(r);case et:case gt:return new c(+r);case se:return ax(r,s);case ge:case $e:case He:case St:case kt:case Tt:case jt:case cn:case Wr:return mh(r,s);case Rt:return new c;case fr:case hr:return new c(r);case dr:return ox(r);case Lt:return new c;case Vr:return sx(r)}}function wx(r,i){var s=i.length;if(!s)return r;var c=s-1;return i[c]=(s>1?"& ":"")+i[c],i=i.join(s>2?", ":" "),r.replace(qr,`{
11
+ /* [wrapped with `+i+`] */
12
+ `)}function Px(r){return _e(r)||Hi(r)||!!(Nd&&r&&r[Nd])}function Rr(r,i){var s=typeof r;return i=i??Y,!!i&&(s=="number"||s!="symbol"&&nt.test(r))&&r>-1&&r%1==0&&r<i}function Nt(r,i,s){if(!Xe(s))return!1;var c=typeof i;return(c=="number"?qt(s)&&Rr(i,s.length):c=="string"&&i in s)?Un(s[i],r):!1}function Zu(r,i){if(_e(r))return!1;var s=typeof r;return s=="number"||s=="symbol"||s=="boolean"||r==null||on(r)?!0:Gr.test(r)||!Cn.test(r)||i!=null&&r in Ze(i)}function Sx(r){var i=typeof r;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?r!=="__proto__":r===null}function Yu(r){var i=Bs(r),s=g[i];if(typeof s!="function"||!(i in ke.prototype))return!1;if(r===s)return!0;var c=Wu(s);return!!c&&r===c[0]}function Tx(r){return!!Od&&Od in r}var _x=gs?Ar:hc;function wo(r){var i=r&&r.constructor,s=typeof i=="function"&&i.prototype||Da;return r===s}function Oh(r){return r===r&&!Xe(r)}function Lh(r,i){return function(s){return s==null?!1:s[r]===i&&(i!==n||r in Ze(s))}}function Ex(r){var i=Ws(r,function(c){return s.size===h&&s.clear(),c}),s=i.cache;return i}function Rx(r,i){var s=r[1],c=i[1],p=s|c,b=p<(R|k|ee),S=c==ee&&s==N||c==ee&&s==w&&r[7].length<=i[8]||c==(ee|w)&&i[7].length<=i[8]&&s==N;if(!(b||S))return r;c&R&&(r[2]=i[2],p|=s&R?0:O);var T=i[3];if(T){var I=r[3];r[3]=I?yh(I,T,i[4]):T,r[4]=I?ni(r[3],m):i[4]}return T=i[5],T&&(I=r[5],r[5]=I?vh(I,T,i[6]):T,r[6]=I?ni(r[5],m):i[6]),T=i[7],T&&(r[7]=T),c&ee&&(r[8]=r[8]==null?i[8]:Ct(r[8],i[8])),r[9]==null&&(r[9]=i[9]),r[0]=i[0],r[1]=p,r}function Ax(r){var i=[];if(r!=null)for(var s in Ze(r))i.push(s);return i}function Cx(r){return vs.call(r)}function kh(r,i,s){return i=bt(i===n?r.length-1:i,0),function(){for(var c=arguments,p=-1,b=bt(c.length-i,0),S=K(b);++p<b;)S[p]=c[i+p];p=-1;for(var T=K(i+1);++p<i;)T[p]=c[p];return T[i]=s(S),wt(r,this,T)}}function Fh(r,i){return i.length<2?r:Ui(r,vn(i,0,-1))}function Mx(r,i){for(var s=r.length,c=Ct(i.length,s),p=Gt(r);c--;){var b=i[c];r[c]=Rr(b,s)?p[b]:n}return r}function Ju(r,i){if(!(i==="constructor"&&typeof r[i]=="function")&&i!="__proto__")return r[i]}var Nh=Bh(sh),Po=G$||function(r,i){return z.setTimeout(r,i)},Qu=Bh(tx);function Kh(r,i,s){var c=i+"";return Qu(r,wx(c,Ix($x(c),s)))}function Bh(r){var i=0,s=0;return function(){var c=J$(),p=U-(c-s);if(s=c,p>0){if(++i>=pe)return arguments[0]}else i=0;return r.apply(n,arguments)}}function zs(r,i){var s=-1,c=r.length,p=c-1;for(i=i===n?c:i;++s<i;){var b=Ou(s,p),S=r[b];r[b]=r[s],r[s]=S}return r.length=i,r}var Uh=Ex(function(r){var i=[];return r.charCodeAt(0)===46&&i.push(""),r.replace(vi,function(s,c,p,b){i.push(p?b.replace(lo,"$1"):c||s)}),i});function ir(r){if(typeof r=="string"||on(r))return r;var i=r+"";return i=="0"&&1/r==-te?"-0":i}function ji(r){if(r!=null){try{return ys.call(r)}catch{}try{return r+""}catch{}}return""}function Ix(r,i){return pn($t,function(s){var c="_."+s[0];i&s[1]&&!ds(r,c)&&r.push(c)}),r.sort()}function zh(r){if(r instanceof ke)return r.clone();var i=new gn(r.__wrapped__,r.__chain__);return i.__actions__=Gt(r.__actions__),i.__index__=r.__index__,i.__values__=r.__values__,i}function Ox(r,i,s){(s?Nt(r,i,s):i===n)?i=1:i=bt(Re(i),0);var c=r==null?0:r.length;if(!c||i<1)return[];for(var p=0,b=0,S=K(Ps(c/i));p<c;)S[b++]=vn(r,p,p+=i);return S}function Lx(r){for(var i=-1,s=r==null?0:r.length,c=0,p=[];++i<s;){var b=r[i];b&&(p[c++]=b)}return p}function kx(){var r=arguments.length;if(!r)return[];for(var i=K(r-1),s=arguments[0],c=r;c--;)i[c-1]=arguments[c];return ti(_e(s)?Gt(s):[s],_t(i,1))}var Fx=Me(function(r,i){return ot(r)?vo(r,_t(i,1,ot,!0)):[]}),Nx=Me(function(r,i){var s=bn(i);return ot(s)&&(s=n),ot(r)?vo(r,_t(i,1,ot,!0),be(s,2)):[]}),Kx=Me(function(r,i){var s=bn(i);return ot(s)&&(s=n),ot(r)?vo(r,_t(i,1,ot,!0),n,s):[]});function Bx(r,i,s){var c=r==null?0:r.length;return c?(i=s||i===n?1:Re(i),vn(r,i<0?0:i,c)):[]}function Ux(r,i,s){var c=r==null?0:r.length;return c?(i=s||i===n?1:Re(i),i=c-i,vn(r,0,i<0?0:i)):[]}function zx(r,i){return r&&r.length?Os(r,be(i,3),!0,!0):[]}function jx(r,i){return r&&r.length?Os(r,be(i,3),!0):[]}function Hx(r,i,s,c){var p=r==null?0:r.length;return p?(s&&typeof s!="number"&&Nt(r,i,s)&&(s=0,c=p),k1(r,i,s,c)):[]}function jh(r,i,s){var c=r==null?0:r.length;if(!c)return-1;var p=s==null?0:Re(s);return p<0&&(p=bt(c+p,0)),hs(r,be(i,3),p)}function Hh(r,i,s){var c=r==null?0:r.length;if(!c)return-1;var p=c-1;return s!==n&&(p=Re(s),p=s<0?bt(c+p,0):Ct(p,c-1)),hs(r,be(i,3),p,!0)}function Vh(r){var i=r==null?0:r.length;return i?_t(r,1):[]}function Vx(r){var i=r==null?0:r.length;return i?_t(r,te):[]}function Wx(r,i){var s=r==null?0:r.length;return s?(i=i===n?1:Re(i),_t(r,i)):[]}function Gx(r){for(var i=-1,s=r==null?0:r.length,c={};++i<s;){var p=r[i];c[p[0]]=p[1]}return c}function Wh(r){return r&&r.length?r[0]:n}function qx(r,i,s){var c=r==null?0:r.length;if(!c)return-1;var p=s==null?0:Re(s);return p<0&&(p=bt(c+p,0)),va(r,i,p)}function Zx(r){var i=r==null?0:r.length;return i?vn(r,0,-1):[]}var Yx=Me(function(r){var i=Je(r,Ku);return i.length&&i[0]===r[0]?Ru(i):[]}),Jx=Me(function(r){var i=bn(r),s=Je(r,Ku);return i===bn(s)?i=n:s.pop(),s.length&&s[0]===r[0]?Ru(s,be(i,2)):[]}),Qx=Me(function(r){var i=bn(r),s=Je(r,Ku);return i=typeof i=="function"?i:n,i&&s.pop(),s.length&&s[0]===r[0]?Ru(s,n,i):[]});function Xx(r,i){return r==null?"":Z$.call(r,i)}function bn(r){var i=r==null?0:r.length;return i?r[i-1]:n}function e2(r,i,s){var c=r==null?0:r.length;if(!c)return-1;var p=c;return s!==n&&(p=Re(s),p=p<0?bt(c+p,0):Ct(p,c-1)),i===i?I$(r,i,p):hs(r,Td,p,!0)}function t2(r,i){return r&&r.length?rh(r,Re(i)):n}var n2=Me(Gh);function Gh(r,i){return r&&r.length&&i&&i.length?Iu(r,i):r}function r2(r,i,s){return r&&r.length&&i&&i.length?Iu(r,i,be(s,2)):r}function i2(r,i,s){return r&&r.length&&i&&i.length?Iu(r,i,n,s):r}var a2=Er(function(r,i){var s=r==null?0:r.length,c=Su(r,i);return oh(r,Je(i,function(p){return Rr(p,s)?+p:p}).sort(gh)),c});function o2(r,i){var s=[];if(!(r&&r.length))return s;var c=-1,p=[],b=r.length;for(i=be(i,3);++c<b;){var S=r[c];i(S,c,r)&&(s.push(S),p.push(c))}return oh(r,p),s}function Xu(r){return r==null?r:X$.call(r)}function s2(r,i,s){var c=r==null?0:r.length;return c?(s&&typeof s!="number"&&Nt(r,i,s)?(i=0,s=c):(i=i==null?0:Re(i),s=s===n?c:Re(s)),vn(r,i,s)):[]}function l2(r,i){return Is(r,i)}function u2(r,i,s){return ku(r,i,be(s,2))}function c2(r,i){var s=r==null?0:r.length;if(s){var c=Is(r,i);if(c<s&&Un(r[c],i))return c}return-1}function f2(r,i){return Is(r,i,!0)}function d2(r,i,s){return ku(r,i,be(s,2),!0)}function h2(r,i){var s=r==null?0:r.length;if(s){var c=Is(r,i,!0)-1;if(Un(r[c],i))return c}return-1}function p2(r){return r&&r.length?lh(r):[]}function m2(r,i){return r&&r.length?lh(r,be(i,2)):[]}function g2(r){var i=r==null?0:r.length;return i?vn(r,1,i):[]}function y2(r,i,s){return r&&r.length?(i=s||i===n?1:Re(i),vn(r,0,i<0?0:i)):[]}function v2(r,i,s){var c=r==null?0:r.length;return c?(i=s||i===n?1:Re(i),i=c-i,vn(r,i<0?0:i,c)):[]}function b2(r,i){return r&&r.length?Os(r,be(i,3),!1,!0):[]}function $2(r,i){return r&&r.length?Os(r,be(i,3)):[]}var x2=Me(function(r){return ai(_t(r,1,ot,!0))}),D2=Me(function(r){var i=bn(r);return ot(i)&&(i=n),ai(_t(r,1,ot,!0),be(i,2))}),w2=Me(function(r){var i=bn(r);return i=typeof i=="function"?i:n,ai(_t(r,1,ot,!0),n,i)});function P2(r){return r&&r.length?ai(r):[]}function S2(r,i){return r&&r.length?ai(r,be(i,2)):[]}function T2(r,i){return i=typeof i=="function"?i:n,r&&r.length?ai(r,n,i):[]}function ec(r){if(!(r&&r.length))return[];var i=0;return r=ei(r,function(s){if(ot(s))return i=bt(s.length,i),!0}),yu(i,function(s){return Je(r,pu(s))})}function qh(r,i){if(!(r&&r.length))return[];var s=ec(r);return i==null?s:Je(s,function(c){return wt(i,n,c)})}var _2=Me(function(r,i){return ot(r)?vo(r,i):[]}),E2=Me(function(r){return Nu(ei(r,ot))}),R2=Me(function(r){var i=bn(r);return ot(i)&&(i=n),Nu(ei(r,ot),be(i,2))}),A2=Me(function(r){var i=bn(r);return i=typeof i=="function"?i:n,Nu(ei(r,ot),n,i)}),C2=Me(ec);function M2(r,i){return dh(r||[],i||[],yo)}function I2(r,i){return dh(r||[],i||[],xo)}var O2=Me(function(r){var i=r.length,s=i>1?r[i-1]:n;return s=typeof s=="function"?(r.pop(),s):n,qh(r,s)});function Zh(r){var i=g(r);return i.__chain__=!0,i}function L2(r,i){return i(r),r}function js(r,i){return i(r)}var k2=Er(function(r){var i=r.length,s=i?r[0]:0,c=this.__wrapped__,p=function(b){return Su(b,r)};return i>1||this.__actions__.length||!(c instanceof ke)||!Rr(s)?this.thru(p):(c=c.slice(s,+s+(i?1:0)),c.__actions__.push({func:js,args:[p],thisArg:n}),new gn(c,this.__chain__).thru(function(b){return i&&!b.length&&b.push(n),b}))});function F2(){return Zh(this)}function N2(){return new gn(this.value(),this.__chain__)}function K2(){this.__values__===n&&(this.__values__=up(this.value()));var r=this.__index__>=this.__values__.length,i=r?n:this.__values__[this.__index__++];return{done:r,value:i}}function B2(){return this}function U2(r){for(var i,s=this;s instanceof Es;){var c=zh(s);c.__index__=0,c.__values__=n,i?p.__wrapped__=c:i=c;var p=c;s=s.__wrapped__}return p.__wrapped__=r,i}function z2(){var r=this.__wrapped__;if(r instanceof ke){var i=r;return this.__actions__.length&&(i=new ke(this)),i=i.reverse(),i.__actions__.push({func:js,args:[Xu],thisArg:n}),new gn(i,this.__chain__)}return this.thru(Xu)}function j2(){return fh(this.__wrapped__,this.__actions__)}var H2=Ls(function(r,i,s){Ge.call(r,s)?++r[s]:Tr(r,s,1)});function V2(r,i,s){var c=_e(r)?Pd:L1;return s&&Nt(r,i,s)&&(i=n),c(r,be(i,3))}function W2(r,i){var s=_e(r)?ei:qd;return s(r,be(i,3))}var G2=Dh(jh),q2=Dh(Hh);function Z2(r,i){return _t(Hs(r,i),1)}function Y2(r,i){return _t(Hs(r,i),te)}function J2(r,i,s){return s=s===n?1:Re(s),_t(Hs(r,i),s)}function Yh(r,i){var s=_e(r)?pn:ii;return s(r,be(i,3))}function Jh(r,i){var s=_e(r)?g$:Gd;return s(r,be(i,3))}var Q2=Ls(function(r,i,s){Ge.call(r,s)?r[s].push(i):Tr(r,s,[i])});function X2(r,i,s,c){r=qt(r)?r:Aa(r),s=s&&!c?Re(s):0;var p=r.length;return s<0&&(s=bt(p+s,0)),Zs(r)?s<=p&&r.indexOf(i,s)>-1:!!p&&va(r,i,s)>-1}var eD=Me(function(r,i,s){var c=-1,p=typeof i=="function",b=qt(r)?K(r.length):[];return ii(r,function(S){b[++c]=p?wt(i,S,s):bo(S,i,s)}),b}),tD=Ls(function(r,i,s){Tr(r,s,i)});function Hs(r,i){var s=_e(r)?Je:eh;return s(r,be(i,3))}function nD(r,i,s,c){return r==null?[]:(_e(i)||(i=i==null?[]:[i]),s=c?n:s,_e(s)||(s=s==null?[]:[s]),ih(r,i,s))}var rD=Ls(function(r,i,s){r[s?0:1].push(i)},function(){return[[],[]]});function iD(r,i,s){var c=_e(r)?du:Ed,p=arguments.length<3;return c(r,be(i,4),s,p,ii)}function aD(r,i,s){var c=_e(r)?y$:Ed,p=arguments.length<3;return c(r,be(i,4),s,p,Gd)}function oD(r,i){var s=_e(r)?ei:qd;return s(r,Gs(be(i,3)))}function sD(r){var i=_e(r)?jd:X1;return i(r)}function lD(r,i,s){(s?Nt(r,i,s):i===n)?i=1:i=Re(i);var c=_e(r)?A1:ex;return c(r,i)}function uD(r){var i=_e(r)?C1:nx;return i(r)}function cD(r){if(r==null)return 0;if(qt(r))return Zs(r)?$a(r):r.length;var i=Mt(r);return i==Rt||i==Lt?r.size:Cu(r).length}function fD(r,i,s){var c=_e(r)?hu:rx;return s&&Nt(r,i,s)&&(i=n),c(r,be(i,3))}var dD=Me(function(r,i){if(r==null)return[];var s=i.length;return s>1&&Nt(r,i[0],i[1])?i=[]:s>2&&Nt(i[0],i[1],i[2])&&(i=[i[0]]),ih(r,_t(i,1),[])}),Vs=W$||function(){return z.Date.now()};function hD(r,i){if(typeof i!="function")throw new mn(u);return r=Re(r),function(){if(--r<1)return i.apply(this,arguments)}}function Qh(r,i,s){return i=s?n:i,i=r&&i==null?r.length:i,_r(r,ee,n,n,n,n,i)}function Xh(r,i){var s;if(typeof i!="function")throw new mn(u);return r=Re(r),function(){return--r>0&&(s=i.apply(this,arguments)),r<=1&&(i=n),s}}var tc=Me(function(r,i,s){var c=R;if(s.length){var p=ni(s,Ea(tc));c|=H}return _r(r,c,i,s,p)}),ep=Me(function(r,i,s){var c=R|k;if(s.length){var p=ni(s,Ea(ep));c|=H}return _r(i,c,r,s,p)});function tp(r,i,s){i=s?n:i;var c=_r(r,N,n,n,n,n,n,i);return c.placeholder=tp.placeholder,c}function np(r,i,s){i=s?n:i;var c=_r(r,F,n,n,n,n,n,i);return c.placeholder=np.placeholder,c}function rp(r,i,s){var c,p,b,S,T,I,W=0,G=!1,J=!1,le=!0;if(typeof r!="function")throw new mn(u);i=$n(i)||0,Xe(s)&&(G=!!s.leading,J="maxWait"in s,b=J?bt($n(s.maxWait)||0,i):b,le="trailing"in s?!!s.trailing:le);function he(st){var zn=c,Mr=p;return c=p=n,W=st,S=r.apply(Mr,zn),S}function xe(st){return W=st,T=Po(Le,i),G?he(st):S}function Ce(st){var zn=st-I,Mr=st-W,Dp=i-zn;return J?Ct(Dp,b-Mr):Dp}function De(st){var zn=st-I,Mr=st-W;return I===n||zn>=i||zn<0||J&&Mr>=b}function Le(){var st=Vs();if(De(st))return Fe(st);T=Po(Le,Ce(st))}function Fe(st){return T=n,le&&c?he(st):(c=p=n,S)}function sn(){T!==n&&hh(T),W=0,c=I=p=T=n}function Kt(){return T===n?S:Fe(Vs())}function ln(){var st=Vs(),zn=De(st);if(c=arguments,p=this,I=st,zn){if(T===n)return xe(I);if(J)return hh(T),T=Po(Le,i),he(I)}return T===n&&(T=Po(Le,i)),S}return ln.cancel=sn,ln.flush=Kt,ln}var pD=Me(function(r,i){return Wd(r,1,i)}),mD=Me(function(r,i,s){return Wd(r,$n(i)||0,s)});function gD(r){return _r(r,V)}function Ws(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new mn(u);var s=function(){var c=arguments,p=i?i.apply(this,c):c[0],b=s.cache;if(b.has(p))return b.get(p);var S=r.apply(this,c);return s.cache=b.set(p,S)||b,S};return s.cache=new(Ws.Cache||Sr),s}Ws.Cache=Sr;function Gs(r){if(typeof r!="function")throw new mn(u);return function(){var i=arguments;switch(i.length){case 0:return!r.call(this);case 1:return!r.call(this,i[0]);case 2:return!r.call(this,i[0],i[1]);case 3:return!r.call(this,i[0],i[1],i[2])}return!r.apply(this,i)}}function yD(r){return Xh(2,r)}var vD=ix(function(r,i){i=i.length==1&&_e(i[0])?Je(i[0],rn(be())):Je(_t(i,1),rn(be()));var s=i.length;return Me(function(c){for(var p=-1,b=Ct(c.length,s);++p<b;)c[p]=i[p].call(this,c[p]);return wt(r,this,c)})}),nc=Me(function(r,i){var s=ni(i,Ea(nc));return _r(r,H,n,i,s)}),ip=Me(function(r,i){var s=ni(i,Ea(ip));return _r(r,ue,n,i,s)}),bD=Er(function(r,i){return _r(r,w,n,n,n,i)});function $D(r,i){if(typeof r!="function")throw new mn(u);return i=i===n?i:Re(i),Me(r,i)}function xD(r,i){if(typeof r!="function")throw new mn(u);return i=i==null?0:bt(Re(i),0),Me(function(s){var c=s[i],p=si(s,0,i);return c&&ti(p,c),wt(r,this,p)})}function DD(r,i,s){var c=!0,p=!0;if(typeof r!="function")throw new mn(u);return Xe(s)&&(c="leading"in s?!!s.leading:c,p="trailing"in s?!!s.trailing:p),rp(r,i,{leading:c,maxWait:i,trailing:p})}function wD(r){return Qh(r,1)}function PD(r,i){return nc(Bu(i),r)}function SD(){if(!arguments.length)return[];var r=arguments[0];return _e(r)?r:[r]}function TD(r){return yn(r,$)}function _D(r,i){return i=typeof i=="function"?i:n,yn(r,$,i)}function ED(r){return yn(r,x|$)}function RD(r,i){return i=typeof i=="function"?i:n,yn(r,x|$,i)}function AD(r,i){return i==null||Vd(r,i,Pt(i))}function Un(r,i){return r===i||r!==r&&i!==i}var CD=Ks(Eu),MD=Ks(function(r,i){return r>=i}),Hi=Jd(function(){return arguments}())?Jd:function(r){return rt(r)&&Ge.call(r,"callee")&&!Fd.call(r,"callee")},_e=K.isArray,ID=dt?rn(dt):U1;function qt(r){return r!=null&&qs(r.length)&&!Ar(r)}function ot(r){return rt(r)&&qt(r)}function OD(r){return r===!0||r===!1||rt(r)&&Ft(r)==et}var li=q$||hc,LD=ze?rn(ze):z1;function kD(r){return rt(r)&&r.nodeType===1&&!So(r)}function FD(r){if(r==null)return!0;if(qt(r)&&(_e(r)||typeof r=="string"||typeof r.splice=="function"||li(r)||Ra(r)||Hi(r)))return!r.length;var i=Mt(r);if(i==Rt||i==Lt)return!r.size;if(wo(r))return!Cu(r).length;for(var s in r)if(Ge.call(r,s))return!1;return!0}function ND(r,i){return $o(r,i)}function KD(r,i,s){s=typeof s=="function"?s:n;var c=s?s(r,i):n;return c===n?$o(r,i,n,s):!!c}function rc(r){if(!rt(r))return!1;var i=Ft(r);return i==En||i==_n||typeof r.message=="string"&&typeof r.name=="string"&&!So(r)}function BD(r){return typeof r=="number"&&Kd(r)}function Ar(r){if(!Xe(r))return!1;var i=Ft(r);return i==Rn||i==qn||i==Et||i==ro}function ap(r){return typeof r=="number"&&r==Re(r)}function qs(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Y}function Xe(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}function rt(r){return r!=null&&typeof r=="object"}var op=At?rn(At):H1;function UD(r,i){return r===i||Au(r,i,Gu(i))}function zD(r,i,s){return s=typeof s=="function"?s:n,Au(r,i,Gu(i),s)}function jD(r){return sp(r)&&r!=+r}function HD(r){if(_x(r))throw new Pe(l);return Qd(r)}function VD(r){return r===null}function WD(r){return r==null}function sp(r){return typeof r=="number"||rt(r)&&Ft(r)==fr}function So(r){if(!rt(r)||Ft(r)!=tn)return!1;var i=xs(r);if(i===null)return!0;var s=Ge.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&ys.call(s)==z$}var ic=nn?rn(nn):V1;function GD(r){return ap(r)&&r>=-Y&&r<=Y}var lp=ya?rn(ya):W1;function Zs(r){return typeof r=="string"||!_e(r)&&rt(r)&&Ft(r)==hr}function on(r){return typeof r=="symbol"||rt(r)&&Ft(r)==Vr}var Ra=ki?rn(ki):G1;function qD(r){return r===n}function ZD(r){return rt(r)&&Mt(r)==Zn}function YD(r){return rt(r)&&Ft(r)==ao}var JD=Ks(Mu),QD=Ks(function(r,i){return r<=i});function up(r){if(!r)return[];if(qt(r))return Zs(r)?Kn(r):Gt(r);if(fo&&r[fo])return A$(r[fo]());var i=Mt(r),s=i==Rt?bu:i==Lt?ps:Aa;return s(r)}function Cr(r){if(!r)return r===0?r:0;if(r=$n(r),r===te||r===-te){var i=r<0?-1:1;return i*me}return r===r?r:0}function Re(r){var i=Cr(r),s=i%1;return i===i?s?i-s:i:0}function cp(r){return r?Bi(Re(r),0,re):0}function $n(r){if(typeof r=="number")return r;if(on(r))return ie;if(Xe(r)){var i=typeof r.valueOf=="function"?r.valueOf():r;r=Xe(i)?i+"":i}if(typeof r!="string")return r===0?r:+r;r=Rd(r);var s=Pi.test(r);return s||la.test(r)?we(r.slice(2),s?2:8):sa.test(r)?ie:+r}function fp(r){return rr(r,Zt(r))}function XD(r){return r?Bi(Re(r),-Y,Y):r===0?r:0}function je(r){return r==null?"":an(r)}var ew=Ta(function(r,i){if(wo(i)||qt(i)){rr(i,Pt(i),r);return}for(var s in i)Ge.call(i,s)&&yo(r,s,i[s])}),dp=Ta(function(r,i){rr(i,Zt(i),r)}),Ys=Ta(function(r,i,s,c){rr(i,Zt(i),r,c)}),tw=Ta(function(r,i,s,c){rr(i,Pt(i),r,c)}),nw=Er(Su);function rw(r,i){var s=Sa(r);return i==null?s:Hd(s,i)}var iw=Me(function(r,i){r=Ze(r);var s=-1,c=i.length,p=c>2?i[2]:n;for(p&&Nt(i[0],i[1],p)&&(c=1);++s<c;)for(var b=i[s],S=Zt(b),T=-1,I=S.length;++T<I;){var W=S[T],G=r[W];(G===n||Un(G,Da[W])&&!Ge.call(r,W))&&(r[W]=b[W])}return r}),aw=Me(function(r){return r.push(n,Rh),wt(hp,n,r)});function ow(r,i){return Sd(r,be(i,3),nr)}function sw(r,i){return Sd(r,be(i,3),_u)}function lw(r,i){return r==null?r:Tu(r,be(i,3),Zt)}function uw(r,i){return r==null?r:Zd(r,be(i,3),Zt)}function cw(r,i){return r&&nr(r,be(i,3))}function fw(r,i){return r&&_u(r,be(i,3))}function dw(r){return r==null?[]:Cs(r,Pt(r))}function hw(r){return r==null?[]:Cs(r,Zt(r))}function ac(r,i,s){var c=r==null?n:Ui(r,i);return c===n?s:c}function pw(r,i){return r!=null&&Mh(r,i,F1)}function oc(r,i){return r!=null&&Mh(r,i,N1)}var mw=Ph(function(r,i,s){i!=null&&typeof i.toString!="function"&&(i=vs.call(i)),r[i]=s},lc(Yt)),gw=Ph(function(r,i,s){i!=null&&typeof i.toString!="function"&&(i=vs.call(i)),Ge.call(r,i)?r[i].push(s):r[i]=[s]},be),yw=Me(bo);function Pt(r){return qt(r)?zd(r):Cu(r)}function Zt(r){return qt(r)?zd(r,!0):q1(r)}function vw(r,i){var s={};return i=be(i,3),nr(r,function(c,p,b){Tr(s,i(c,p,b),c)}),s}function bw(r,i){var s={};return i=be(i,3),nr(r,function(c,p,b){Tr(s,p,i(c,p,b))}),s}var $w=Ta(function(r,i,s){Ms(r,i,s)}),hp=Ta(function(r,i,s,c){Ms(r,i,s,c)}),xw=Er(function(r,i){var s={};if(r==null)return s;var c=!1;i=Je(i,function(b){return b=oi(b,r),c||(c=b.length>1),b}),rr(r,Vu(r),s),c&&(s=yn(s,x|y|$,mx));for(var p=i.length;p--;)Fu(s,i[p]);return s});function Dw(r,i){return pp(r,Gs(be(i)))}var ww=Er(function(r,i){return r==null?{}:Y1(r,i)});function pp(r,i){if(r==null)return{};var s=Je(Vu(r),function(c){return[c]});return i=be(i),ah(r,s,function(c,p){return i(c,p[0])})}function Pw(r,i,s){i=oi(i,r);var c=-1,p=i.length;for(p||(p=1,r=n);++c<p;){var b=r==null?n:r[ir(i[c])];b===n&&(c=p,b=s),r=Ar(b)?b.call(r):b}return r}function Sw(r,i,s){return r==null?r:xo(r,i,s)}function Tw(r,i,s,c){return c=typeof c=="function"?c:n,r==null?r:xo(r,i,s,c)}var mp=_h(Pt),gp=_h(Zt);function _w(r,i,s){var c=_e(r),p=c||li(r)||Ra(r);if(i=be(i,4),s==null){var b=r&&r.constructor;p?s=c?new b:[]:Xe(r)?s=Ar(b)?Sa(xs(r)):{}:s={}}return(p?pn:nr)(r,function(S,T,I){return i(s,S,T,I)}),s}function Ew(r,i){return r==null?!0:Fu(r,i)}function Rw(r,i,s){return r==null?r:ch(r,i,Bu(s))}function Aw(r,i,s,c){return c=typeof c=="function"?c:n,r==null?r:ch(r,i,Bu(s),c)}function Aa(r){return r==null?[]:vu(r,Pt(r))}function Cw(r){return r==null?[]:vu(r,Zt(r))}function Mw(r,i,s){return s===n&&(s=i,i=n),s!==n&&(s=$n(s),s=s===s?s:0),i!==n&&(i=$n(i),i=i===i?i:0),Bi($n(r),i,s)}function Iw(r,i,s){return i=Cr(i),s===n?(s=i,i=0):s=Cr(s),r=$n(r),K1(r,i,s)}function Ow(r,i,s){if(s&&typeof s!="boolean"&&Nt(r,i,s)&&(i=s=n),s===n&&(typeof i=="boolean"?(s=i,i=n):typeof r=="boolean"&&(s=r,r=n)),r===n&&i===n?(r=0,i=1):(r=Cr(r),i===n?(i=r,r=0):i=Cr(i)),r>i){var c=r;r=i,i=c}if(s||r%1||i%1){var p=Bd();return Ct(r+p*(i-r+Ue("1e-"+((p+"").length-1))),i)}return Ou(r,i)}var Lw=_a(function(r,i,s){return i=i.toLowerCase(),r+(s?yp(i):i)});function yp(r){return sc(je(r).toLowerCase())}function vp(r){return r=je(r),r&&r.replace(fn,S$).replace(Xr,"")}function kw(r,i,s){r=je(r),i=an(i);var c=r.length;s=s===n?c:Bi(Re(s),0,c);var p=s;return s-=i.length,s>=0&&r.slice(s,p)==i}function Fw(r){return r=je(r),r&&gr.test(r)?r.replace(aa,T$):r}function Nw(r){return r=je(r),r&&so.test(r)?r.replace(bi,"\\$&"):r}var Kw=_a(function(r,i,s){return r+(s?"-":"")+i.toLowerCase()}),Bw=_a(function(r,i,s){return r+(s?" ":"")+i.toLowerCase()}),Uw=xh("toLowerCase");function zw(r,i,s){r=je(r),i=Re(i);var c=i?$a(r):0;if(!i||c>=i)return r;var p=(i-c)/2;return Ns(Ss(p),s)+r+Ns(Ps(p),s)}function jw(r,i,s){r=je(r),i=Re(i);var c=i?$a(r):0;return i&&c<i?r+Ns(i-c,s):r}function Hw(r,i,s){r=je(r),i=Re(i);var c=i?$a(r):0;return i&&c<i?Ns(i-c,s)+r:r}function Vw(r,i,s){return s||i==null?i=0:i&&(i=+i),Q$(je(r).replace($i,""),i||0)}function Ww(r,i,s){return(s?Nt(r,i,s):i===n)?i=1:i=Re(i),Lu(je(r),i)}function Gw(){var r=arguments,i=je(r[0]);return r.length<3?i:i.replace(r[1],r[2])}var qw=_a(function(r,i,s){return r+(s?"_":"")+i.toLowerCase()});function Zw(r,i,s){return s&&typeof s!="number"&&Nt(r,i,s)&&(i=s=n),s=s===n?re:s>>>0,s?(r=je(r),r&&(typeof i=="string"||i!=null&&!ic(i))&&(i=an(i),!i&&ba(r))?si(Kn(r),0,s):r.split(i,s)):[]}var Yw=_a(function(r,i,s){return r+(s?" ":"")+sc(i)});function Jw(r,i,s){return r=je(r),s=s==null?0:Bi(Re(s),0,r.length),i=an(i),r.slice(s,s+i.length)==i}function Qw(r,i,s){var c=g.templateSettings;s&&Nt(r,i,s)&&(i=n),r=je(r),i=Ys({},i,c,Eh);var p=Ys({},i.imports,c.imports,Eh),b=Pt(p),S=vu(p,b),T,I,W=0,G=i.interpolate||qe,J="__p += '",le=$u((i.escape||qe).source+"|"+G.source+"|"+(G===xt?uo:qe).source+"|"+(i.evaluate||qe).source+"|$","g"),he="//# sourceURL="+(Ge.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ga+"]")+`
13
+ `;r.replace(le,function(De,Le,Fe,sn,Kt,ln){return Fe||(Fe=sn),J+=r.slice(W,ln).replace(br,_$),Le&&(T=!0,J+=`' +
14
+ __e(`+Le+`) +
15
+ '`),Kt&&(I=!0,J+=`';
16
+ `+Kt+`;
17
+ __p += '`),Fe&&(J+=`' +
18
+ ((__t = (`+Fe+`)) == null ? '' : __t) +
19
+ '`),W=ln+De.length,De}),J+=`';
20
+ `;var xe=Ge.call(i,"variable")&&i.variable;if(!xe)J=`with (obj) {
21
+ `+J+`
22
+ }
23
+ `;else if(wi.test(xe))throw new Pe(f);J=(I?J.replace(oo,""):J).replace(An,"$1").replace(pr,"$1;"),J="function("+(xe||"obj")+`) {
24
+ `+(xe?"":`obj || (obj = {});
25
+ `)+"var __t, __p = ''"+(T?", __e = _.escape":"")+(I?`, __j = Array.prototype.join;
26
+ function print() { __p += __j.call(arguments, '') }
27
+ `:`;
28
+ `)+J+`return __p
29
+ }`;var Ce=$p(function(){return Be(b,he+"return "+J).apply(n,S)});if(Ce.source=J,rc(Ce))throw Ce;return Ce}function Xw(r){return je(r).toLowerCase()}function eP(r){return je(r).toUpperCase()}function tP(r,i,s){if(r=je(r),r&&(s||i===n))return Rd(r);if(!r||!(i=an(i)))return r;var c=Kn(r),p=Kn(i),b=Ad(c,p),S=Cd(c,p)+1;return si(c,b,S).join("")}function nP(r,i,s){if(r=je(r),r&&(s||i===n))return r.slice(0,Id(r)+1);if(!r||!(i=an(i)))return r;var c=Kn(r),p=Cd(c,Kn(i))+1;return si(c,0,p).join("")}function rP(r,i,s){if(r=je(r),r&&(s||i===n))return r.replace($i,"");if(!r||!(i=an(i)))return r;var c=Kn(r),p=Ad(c,Kn(i));return si(c,p).join("")}function iP(r,i){var s=q,c=A;if(Xe(i)){var p="separator"in i?i.separator:p;s="length"in i?Re(i.length):s,c="omission"in i?an(i.omission):c}r=je(r);var b=r.length;if(ba(r)){var S=Kn(r);b=S.length}if(s>=b)return r;var T=s-$a(c);if(T<1)return c;var I=S?si(S,0,T).join(""):r.slice(0,T);if(p===n)return I+c;if(S&&(T+=I.length-T),ic(p)){if(r.slice(T).search(p)){var W,G=I;for(p.global||(p=$u(p.source,je(Ht.exec(p))+"g")),p.lastIndex=0;W=p.exec(G);)var J=W.index;I=I.slice(0,J===n?T:J)}}else if(r.indexOf(an(p),T)!=T){var le=I.lastIndexOf(p);le>-1&&(I=I.slice(0,le))}return I+c}function aP(r){return r=je(r),r&&yi.test(r)?r.replace(mr,O$):r}var oP=_a(function(r,i,s){return r+(s?" ":"")+i.toUpperCase()}),sc=xh("toUpperCase");function bp(r,i,s){return r=je(r),i=s?n:i,i===n?R$(r)?F$(r):$$(r):r.match(i)||[]}var $p=Me(function(r,i){try{return wt(r,n,i)}catch(s){return rc(s)?s:new Pe(s)}}),sP=Er(function(r,i){return pn(i,function(s){s=ir(s),Tr(r,s,tc(r[s],r))}),r});function lP(r){var i=r==null?0:r.length,s=be();return r=i?Je(r,function(c){if(typeof c[1]!="function")throw new mn(u);return[s(c[0]),c[1]]}):[],Me(function(c){for(var p=-1;++p<i;){var b=r[p];if(wt(b[0],this,c))return wt(b[1],this,c)}})}function uP(r){return O1(yn(r,x))}function lc(r){return function(){return r}}function cP(r,i){return r==null||r!==r?i:r}var fP=wh(),dP=wh(!0);function Yt(r){return r}function uc(r){return Xd(typeof r=="function"?r:yn(r,x))}function hP(r){return th(yn(r,x))}function pP(r,i){return nh(r,yn(i,x))}var mP=Me(function(r,i){return function(s){return bo(s,r,i)}}),gP=Me(function(r,i){return function(s){return bo(r,s,i)}});function cc(r,i,s){var c=Pt(i),p=Cs(i,c);s==null&&!(Xe(i)&&(p.length||!c.length))&&(s=i,i=r,r=this,p=Cs(i,Pt(i)));var b=!(Xe(s)&&"chain"in s)||!!s.chain,S=Ar(r);return pn(p,function(T){var I=i[T];r[T]=I,S&&(r.prototype[T]=function(){var W=this.__chain__;if(b||W){var G=r(this.__wrapped__),J=G.__actions__=Gt(this.__actions__);return J.push({func:I,args:arguments,thisArg:r}),G.__chain__=W,G}return I.apply(r,ti([this.value()],arguments))})}),r}function yP(){return z._===this&&(z._=j$),this}function fc(){}function vP(r){return r=Re(r),Me(function(i){return rh(i,r)})}var bP=zu(Je),$P=zu(Pd),xP=zu(hu);function xp(r){return Zu(r)?pu(ir(r)):J1(r)}function DP(r){return function(i){return r==null?n:Ui(r,i)}}var wP=Sh(),PP=Sh(!0);function dc(){return[]}function hc(){return!1}function SP(){return{}}function TP(){return""}function _P(){return!0}function EP(r,i){if(r=Re(r),r<1||r>Y)return[];var s=re,c=Ct(r,re);i=be(i),r-=re;for(var p=yu(c,i);++s<r;)i(s);return p}function RP(r){return _e(r)?Je(r,ir):on(r)?[r]:Gt(Uh(je(r)))}function AP(r){var i=++U$;return je(r)+i}var CP=Fs(function(r,i){return r+i},0),MP=ju("ceil"),IP=Fs(function(r,i){return r/i},1),OP=ju("floor");function LP(r){return r&&r.length?As(r,Yt,Eu):n}function kP(r,i){return r&&r.length?As(r,be(i,2),Eu):n}function FP(r){return _d(r,Yt)}function NP(r,i){return _d(r,be(i,2))}function KP(r){return r&&r.length?As(r,Yt,Mu):n}function BP(r,i){return r&&r.length?As(r,be(i,2),Mu):n}var UP=Fs(function(r,i){return r*i},1),zP=ju("round"),jP=Fs(function(r,i){return r-i},0);function HP(r){return r&&r.length?gu(r,Yt):0}function VP(r,i){return r&&r.length?gu(r,be(i,2)):0}return g.after=hD,g.ary=Qh,g.assign=ew,g.assignIn=dp,g.assignInWith=Ys,g.assignWith=tw,g.at=nw,g.before=Xh,g.bind=tc,g.bindAll=sP,g.bindKey=ep,g.castArray=SD,g.chain=Zh,g.chunk=Ox,g.compact=Lx,g.concat=kx,g.cond=lP,g.conforms=uP,g.constant=lc,g.countBy=H2,g.create=rw,g.curry=tp,g.curryRight=np,g.debounce=rp,g.defaults=iw,g.defaultsDeep=aw,g.defer=pD,g.delay=mD,g.difference=Fx,g.differenceBy=Nx,g.differenceWith=Kx,g.drop=Bx,g.dropRight=Ux,g.dropRightWhile=zx,g.dropWhile=jx,g.fill=Hx,g.filter=W2,g.flatMap=Z2,g.flatMapDeep=Y2,g.flatMapDepth=J2,g.flatten=Vh,g.flattenDeep=Vx,g.flattenDepth=Wx,g.flip=gD,g.flow=fP,g.flowRight=dP,g.fromPairs=Gx,g.functions=dw,g.functionsIn=hw,g.groupBy=Q2,g.initial=Zx,g.intersection=Yx,g.intersectionBy=Jx,g.intersectionWith=Qx,g.invert=mw,g.invertBy=gw,g.invokeMap=eD,g.iteratee=uc,g.keyBy=tD,g.keys=Pt,g.keysIn=Zt,g.map=Hs,g.mapKeys=vw,g.mapValues=bw,g.matches=hP,g.matchesProperty=pP,g.memoize=Ws,g.merge=$w,g.mergeWith=hp,g.method=mP,g.methodOf=gP,g.mixin=cc,g.negate=Gs,g.nthArg=vP,g.omit=xw,g.omitBy=Dw,g.once=yD,g.orderBy=nD,g.over=bP,g.overArgs=vD,g.overEvery=$P,g.overSome=xP,g.partial=nc,g.partialRight=ip,g.partition=rD,g.pick=ww,g.pickBy=pp,g.property=xp,g.propertyOf=DP,g.pull=n2,g.pullAll=Gh,g.pullAllBy=r2,g.pullAllWith=i2,g.pullAt=a2,g.range=wP,g.rangeRight=PP,g.rearg=bD,g.reject=oD,g.remove=o2,g.rest=$D,g.reverse=Xu,g.sampleSize=lD,g.set=Sw,g.setWith=Tw,g.shuffle=uD,g.slice=s2,g.sortBy=dD,g.sortedUniq=p2,g.sortedUniqBy=m2,g.split=Zw,g.spread=xD,g.tail=g2,g.take=y2,g.takeRight=v2,g.takeRightWhile=b2,g.takeWhile=$2,g.tap=L2,g.throttle=DD,g.thru=js,g.toArray=up,g.toPairs=mp,g.toPairsIn=gp,g.toPath=RP,g.toPlainObject=fp,g.transform=_w,g.unary=wD,g.union=x2,g.unionBy=D2,g.unionWith=w2,g.uniq=P2,g.uniqBy=S2,g.uniqWith=T2,g.unset=Ew,g.unzip=ec,g.unzipWith=qh,g.update=Rw,g.updateWith=Aw,g.values=Aa,g.valuesIn=Cw,g.without=_2,g.words=bp,g.wrap=PD,g.xor=E2,g.xorBy=R2,g.xorWith=A2,g.zip=C2,g.zipObject=M2,g.zipObjectDeep=I2,g.zipWith=O2,g.entries=mp,g.entriesIn=gp,g.extend=dp,g.extendWith=Ys,cc(g,g),g.add=CP,g.attempt=$p,g.camelCase=Lw,g.capitalize=yp,g.ceil=MP,g.clamp=Mw,g.clone=TD,g.cloneDeep=ED,g.cloneDeepWith=RD,g.cloneWith=_D,g.conformsTo=AD,g.deburr=vp,g.defaultTo=cP,g.divide=IP,g.endsWith=kw,g.eq=Un,g.escape=Fw,g.escapeRegExp=Nw,g.every=V2,g.find=G2,g.findIndex=jh,g.findKey=ow,g.findLast=q2,g.findLastIndex=Hh,g.findLastKey=sw,g.floor=OP,g.forEach=Yh,g.forEachRight=Jh,g.forIn=lw,g.forInRight=uw,g.forOwn=cw,g.forOwnRight=fw,g.get=ac,g.gt=CD,g.gte=MD,g.has=pw,g.hasIn=oc,g.head=Wh,g.identity=Yt,g.includes=X2,g.indexOf=qx,g.inRange=Iw,g.invoke=yw,g.isArguments=Hi,g.isArray=_e,g.isArrayBuffer=ID,g.isArrayLike=qt,g.isArrayLikeObject=ot,g.isBoolean=OD,g.isBuffer=li,g.isDate=LD,g.isElement=kD,g.isEmpty=FD,g.isEqual=ND,g.isEqualWith=KD,g.isError=rc,g.isFinite=BD,g.isFunction=Ar,g.isInteger=ap,g.isLength=qs,g.isMap=op,g.isMatch=UD,g.isMatchWith=zD,g.isNaN=jD,g.isNative=HD,g.isNil=WD,g.isNull=VD,g.isNumber=sp,g.isObject=Xe,g.isObjectLike=rt,g.isPlainObject=So,g.isRegExp=ic,g.isSafeInteger=GD,g.isSet=lp,g.isString=Zs,g.isSymbol=on,g.isTypedArray=Ra,g.isUndefined=qD,g.isWeakMap=ZD,g.isWeakSet=YD,g.join=Xx,g.kebabCase=Kw,g.last=bn,g.lastIndexOf=e2,g.lowerCase=Bw,g.lowerFirst=Uw,g.lt=JD,g.lte=QD,g.max=LP,g.maxBy=kP,g.mean=FP,g.meanBy=NP,g.min=KP,g.minBy=BP,g.stubArray=dc,g.stubFalse=hc,g.stubObject=SP,g.stubString=TP,g.stubTrue=_P,g.multiply=UP,g.nth=t2,g.noConflict=yP,g.noop=fc,g.now=Vs,g.pad=zw,g.padEnd=jw,g.padStart=Hw,g.parseInt=Vw,g.random=Ow,g.reduce=iD,g.reduceRight=aD,g.repeat=Ww,g.replace=Gw,g.result=Pw,g.round=zP,g.runInContext=M,g.sample=sD,g.size=cD,g.snakeCase=qw,g.some=fD,g.sortedIndex=l2,g.sortedIndexBy=u2,g.sortedIndexOf=c2,g.sortedLastIndex=f2,g.sortedLastIndexBy=d2,g.sortedLastIndexOf=h2,g.startCase=Yw,g.startsWith=Jw,g.subtract=jP,g.sum=HP,g.sumBy=VP,g.template=Qw,g.times=EP,g.toFinite=Cr,g.toInteger=Re,g.toLength=cp,g.toLower=Xw,g.toNumber=$n,g.toSafeInteger=XD,g.toString=je,g.toUpper=eP,g.trim=tP,g.trimEnd=nP,g.trimStart=rP,g.truncate=iP,g.unescape=aP,g.uniqueId=AP,g.upperCase=oP,g.upperFirst=sc,g.each=Yh,g.eachRight=Jh,g.first=Wh,cc(g,function(){var r={};return nr(g,function(i,s){Ge.call(g.prototype,s)||(r[s]=i)}),r}(),{chain:!1}),g.VERSION=a,pn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){g[r].placeholder=g}),pn(["drop","take"],function(r,i){ke.prototype[r]=function(s){s=s===n?1:bt(Re(s),0);var c=this.__filtered__&&!i?new ke(this):this.clone();return c.__filtered__?c.__takeCount__=Ct(s,c.__takeCount__):c.__views__.push({size:Ct(s,re),type:r+(c.__dir__<0?"Right":"")}),c},ke.prototype[r+"Right"]=function(s){return this.reverse()[r](s).reverse()}}),pn(["filter","map","takeWhile"],function(r,i){var s=i+1,c=s==B||s==Q;ke.prototype[r]=function(p){var b=this.clone();return b.__iteratees__.push({iteratee:be(p,3),type:s}),b.__filtered__=b.__filtered__||c,b}}),pn(["head","last"],function(r,i){var s="take"+(i?"Right":"");ke.prototype[r]=function(){return this[s](1).value()[0]}}),pn(["initial","tail"],function(r,i){var s="drop"+(i?"":"Right");ke.prototype[r]=function(){return this.__filtered__?new ke(this):this[s](1)}}),ke.prototype.compact=function(){return this.filter(Yt)},ke.prototype.find=function(r){return this.filter(r).head()},ke.prototype.findLast=function(r){return this.reverse().find(r)},ke.prototype.invokeMap=Me(function(r,i){return typeof r=="function"?new ke(this):this.map(function(s){return bo(s,r,i)})}),ke.prototype.reject=function(r){return this.filter(Gs(be(r)))},ke.prototype.slice=function(r,i){r=Re(r);var s=this;return s.__filtered__&&(r>0||i<0)?new ke(s):(r<0?s=s.takeRight(-r):r&&(s=s.drop(r)),i!==n&&(i=Re(i),s=i<0?s.dropRight(-i):s.take(i-r)),s)},ke.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ke.prototype.toArray=function(){return this.take(re)},nr(ke.prototype,function(r,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),p=g[c?"take"+(i=="last"?"Right":""):i],b=c||/^find/.test(i);p&&(g.prototype[i]=function(){var S=this.__wrapped__,T=c?[1]:arguments,I=S instanceof ke,W=T[0],G=I||_e(S),J=function(Le){var Fe=p.apply(g,ti([Le],T));return c&&le?Fe[0]:Fe};G&&s&&typeof W=="function"&&W.length!=1&&(I=G=!1);var le=this.__chain__,he=!!this.__actions__.length,xe=b&&!le,Ce=I&&!he;if(!b&&G){S=Ce?S:new ke(this);var De=r.apply(S,T);return De.__actions__.push({func:js,args:[J],thisArg:n}),new gn(De,le)}return xe&&Ce?r.apply(this,T):(De=this.thru(J),xe?c?De.value()[0]:De.value():De)})}),pn(["pop","push","shift","sort","splice","unshift"],function(r){var i=ms[r],s=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",c=/^(?:pop|shift)$/.test(r);g.prototype[r]=function(){var p=arguments;if(c&&!this.__chain__){var b=this.value();return i.apply(_e(b)?b:[],p)}return this[s](function(S){return i.apply(_e(S)?S:[],p)})}}),nr(ke.prototype,function(r,i){var s=g[i];if(s){var c=s.name+"";Ge.call(Pa,c)||(Pa[c]=[]),Pa[c].push({name:i,func:s})}}),Pa[ks(n,k).name]=[{name:"wrapper",func:n}],ke.prototype.clone=a1,ke.prototype.reverse=o1,ke.prototype.value=s1,g.prototype.at=k2,g.prototype.chain=F2,g.prototype.commit=N2,g.prototype.next=K2,g.prototype.plant=U2,g.prototype.reverse=z2,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=j2,g.prototype.first=g.prototype.head,fo&&(g.prototype[fo]=B2),g},xa=N$();ye?((ye.exports=xa)._=xa,X._=xa):z._=xa}).call(or)})(jl,jl.exports);var wd=jl.exports;const e7=e=>{const{as:t="time",date:n,tokens:a,customTheme:o,dateFormatterOptions:l={month:"long",day:"numeric",year:"numeric"},themeName:u="typography",...f}=e,d=Ja(),h=new Date(n),x=Wn(l).format(h),y=Se(u,a,o);return d||wd.isEmpty(x)?null:L.jsx(t,{...f,dateTime:h.toISOString(),className:y,children:x})};var t7=e=>e instanceof Date,l$=e=>e==null;const n7=e=>typeof e=="object";var r7=e=>!l$(e)&&!Array.isArray(e)&&n7(e)&&!t7(e),i7=e=>Array.isArray(e)?e.filter(Boolean):[],Ym=e=>e===void 0,u$=(e,t,n)=>{if(!t||!r7(e))return n;const a=i7(t.split(/[,[\].]+?/)).reduce((o,l)=>l$(o)?o:o[l],e);return Ym(a)||a===e?Ym(e[t])?n:e[t]:a};const a7=v.createContext(null),c$=()=>v.useContext(a7),o7=({item:e,state:t,themeName:n="li"})=>{const a=v.useRef(null),{optionProps:o}=m_({key:e.key},t,a);return L.jsx(_f,{as:"li",...o,themeName:n,ref:a,children:e.rendered})},s7=e=>{const t=v.useRef(null),{listBoxRef:n=t,state:a,themeName:o="option"}=e,{listBoxProps:l}=p_(e,a,n);return L.jsx(_f,{...l,ref:n,as:"ul",themeName:`${o}.ul`,children:[...a.collection].map(u=>L.jsx(o7,{themeName:`${o}.li`,item:u,state:a},u.key))})},l7=e=>{const t=v.useRef(null),{popoverRef:n=t,state:a,children:o,themeName:l="popover",...u}=e,{popoverProps:f,underlayProps:d}=v0({...e,popoverRef:n},a);return L.jsxs(b0,{children:[L.jsx("div",{...d,style:{position:"fixed",inset:0}}),L.jsxs(_f,{themeName:l,...u,...f,as:"div",ref:n,children:[L.jsx(Yo,{onDismiss:a.close}),o,L.jsx(Yo,{onDismiss:a.close})]})]})},f$=e=>{const{name:t,placeholderLabel:n,disabled:a,hookFormRef:o,isError:l=!1,errorMessage:u,themeName:f="select",tokens:d,customTheme:h,label:m}=e,x=v.useRef(null),y=V4(e),{triggerProps:$,menuProps:P,labelProps:E}=E_(e,y,x),R=Se(`${f}.wrapper`,d,h),k=Se(`${f}.container`,d,h);return L.jsxs("div",{className:R,children:[m&&L.jsx(Ur,{...E,as:"label",themeName:`${f}.label`,children:m}),L.jsx(A_,{...o,state:y,triggerRef:x,name:t,isDisabled:!0}),L.jsxs("div",{className:k,children:[L.jsxs(nd,{...$,ref:x,disabled:a,themeName:`${f}.button`,tokens:{intent:l?"error":"default"},children:[y.selectedItem?y.selectedItem.rendered:n,L.jsx(jr,{icon:"ArrowDown"})]}),y.isOpen&&x.current&&L.jsx(l7,{state:y,tokens:{width:`${x.current?.offsetWidth}`},triggerRef:x,placement:"bottom",themeName:`${f}.popover`,children:L.jsx(s7,{...P,themeName:`${f}.ul`,state:y})}),l&&L.jsx(Ur,{tokens:{...d,isError:l},themeName:`${f}.errorMessage`,children:u})]})]})},u7=e=>{const{name:t,required:n,children:a}=e,{register:o,formState:l}=c$(),f=u$(l.errors,t)?.message??void 0,{ref:d}=o(t,{required:n?"This is an error message":!1});return L.jsx(f$,{...e,isError:!wd.isEmpty(f),errorMessage:f,hookFormRef:d,children:a})},c7=e=>{const{id:t,label:n,isDisabled:a=!1,isError:o=!1,errorMessage:l,ariaLabel:u,themeName:f="checkbox",tokens:d,customTheme:h}=e,m=AT(e),x=v.useRef(null),{inputProps:y}=CT(e,m,x),{focusProps:$,isFocusVisible:P}=Ff(),E={...d,selected:m.isSelected,isDisabled:a,isError:o,isFocusVisible:P},R=Se(`${f}.label`,E,h),k=Se(`${f}.checkBox`,E,h),O=Se(`${f}.checkMark`,E,h);return L.jsxs("div",{children:[L.jsxs("label",{htmlFor:t,className:R,children:[L.jsx(Cy,{children:L.jsx("input",{type:"checkbox",ref:x,"aria-label":u,...Ke($,y)})}),L.jsx(Nf,{focusRingClass:"focus-ring",children:L.jsx("div",{className:k,children:L.jsx("div",{className:O})})}),L.jsx("span",{children:n})]}),o&&l&&L.jsx(Ur,{themeName:`${f}.errorMessage`,tokens:E,children:l})]})},f7=e=>{const{id:t,name:n,placeholder:a,required:o,disabled:l=!1,errorMessage:u,isError:f=!1,ariaLabel:d,value:h,onBlur:m,onChange:x,fieldRef:y,themeName:$="textarea",tokens:P,customTheme:E}=e,R=v.useRef(null),k=Se(`${$}.container`,P,E),O=Se(`${$}.input`,{...P,disabled:l,isError:f},E);return L.jsxs("div",{className:k,children:[L.jsx(Nf,{focusRingClass:"focus-ring",children:L.jsx("textarea",{ref:N=>{y?.(N),R.current=N},className:O,placeholder:a,disabled:l,required:o,id:t,name:n,"aria-label":d,"aria-labelledby":t,value:h,onBlur:m,onChange:x})}),f&&u&&L.jsx(Ur,{themeName:`${$}.errorMessage`,tokens:{...P,disabled:l,isError:f},children:u})]})};function is(e){"@babel/helpers - typeof";return is=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},is(e)}function d7(e,t){if(is(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(is(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d$(e){var t=d7(e,"string");return is(t)==="symbol"?t:String(t)}function h7(e,t,n){return t=d$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p7(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var Jm={};function Sf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Jm[t[0]]||(typeof t[0]=="string"&&(Jm[t[0]]=new Date),p7.apply(void 0,t))}function Qm(e,t,n){e.loadNamespaces(t,function(){if(e.isInitialized)n();else{var a=function o(){setTimeout(function(){e.off("initialized",o)},0),n()};e.on("initialized",a)}})}function m7(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=t.languages[0],o=t.options?t.options.fallbackLng:!1,l=t.languages[t.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var u=function(d,h){var m=t.services.backendConnector.state["".concat(d,"|").concat(h)];return m===-1||m===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!u(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(a,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||u(a,e)&&(!o||u(l,e)))}function g7(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return Sf("i18n.languages were undefined or empty",t.languages),!0;var a=t.options.ignoreJSONStructure!==void 0;return a?t.hasLoadedNamespace(e,{precheck:function(l,u){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&l.services.backendConnector.backend&&l.isLanguageChangingTo&&!u(l.isLanguageChangingTo,e))return!1}}):m7(e,t,n)}var y7=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,v7={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},b7=function(t){return v7[t]},$7=function(t){return t.replace(y7,b7)},x7={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:$7};function D7(){return x7}var w7;function P7(){return w7}function S7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xm(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,d$(a.key),a)}}function T7(e,t,n){return t&&Xm(e.prototype,t),n&&Xm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var _7=v.createContext(),E7=function(){function e(){S7(this,e),this.usedNamespaces={}}return T7(e,[{key:"addUsedNamespaces",value:function(n){var a=this;n.forEach(function(o){a.usedNamespaces[o]||(a.usedNamespaces[o]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function R7(e){if(Array.isArray(e))return e}function A7(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,o,l,u,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(a=l.call(n)).done)&&(f.push(a.value),f.length!==t);d=!0);}catch(m){h=!0,o=m}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw o}}return f}}function eg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function C7(e,t){if(e){if(typeof e=="string")return eg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eg(e,t)}}function M7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I7(e,t){return R7(e)||A7(e,t)||C7(e,t)||M7()}function tg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function zc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tg(Object(n),!0).forEach(function(a){h7(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tg(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}var O7=function(t,n){var a=v.useRef();return v.useEffect(function(){a.current=n?a.current:t},[t,n]),a.current};function L7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,a=v.useContext(_7)||{},o=a.i18n,l=a.defaultNS,u=n||o||P7();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new E7),!u){Sf("You will need to pass in an i18next instance by using initReactI18next");var f=function(V){return Array.isArray(V)?V[V.length-1]:V},d=[f,{},!1];return d.t=f,d.i18n={},d.ready=!1,d}u.options.react&&u.options.react.wait!==void 0&&Sf("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var h=zc(zc(zc({},D7()),u.options.react),t),m=h.useSuspense,x=h.keyPrefix,y=e||l||u.options&&u.options.defaultNS;y=typeof y=="string"?[y]:y||["translation"],u.reportNamespaces.addUsedNamespaces&&u.reportNamespaces.addUsedNamespaces(y);var $=(u.isInitialized||u.initializedStoreOnce)&&y.every(function(w){return g7(w,u,h)});function P(){return u.getFixedT(null,h.nsMode==="fallback"?y:y[0],x)}var E=v.useState(P),R=I7(E,2),k=R[0],O=R[1],N=y.join(),F=O7(N),H=v.useRef(!0);v.useEffect(function(){var w=h.bindI18n,V=h.bindI18nStore;H.current=!0,!$&&!m&&Qm(u,y,function(){H.current&&O(P)}),$&&F&&F!==N&&H.current&&O(P);function q(){H.current&&O(P)}return w&&u&&u.on(w,q),V&&u&&u.store.on(V,q),function(){H.current=!1,w&&u&&w.split(" ").forEach(function(A){return u.off(A,q)}),V&&u&&V.split(" ").forEach(function(A){return u.store.off(A,q)})}},[u,N]);var ue=v.useRef(!0);v.useEffect(function(){H.current&&!ue.current&&O(P),ue.current=!1},[u,x]);var ee=[k,u,$];if(ee.t=k,ee.i18n=u,ee.ready=$,$||!$&&!m)return ee;throw new Promise(function(w){Qm(u,y,function(){w()})})}const h$=e=>{const{id:t,label:n,required:a,disabled:o=!1,errorMessage:l,ariaLabel:u,value:f,onBlur:d,onChange:h,fieldRef:m,type:x="text",children:y,themeName:$="textInput",tokens:P,customTheme:E}=e,R=v.useRef(null),{errorMessageProps:k,inputProps:O,labelProps:N}=v_(e,R),F={...P,isDisabled:o,isError:l!=null},H=Se(`${$}.wrapper`,F,E),ue=Se(`${$}.label`,F,E),ee=Se(`${$}.input`,F,E),w=Se(`${$}.container`,F,E);return L.jsxs("div",{children:[L.jsxs("div",{"aria-disabled":o,className:H,children:[n&&L.jsx("label",{className:ue,...N,children:n}),L.jsxs("div",{className:w,children:[y,L.jsx(Nf,{focusRingClass:"focus-ring",children:L.jsx("input",{...O,className:ee,disabled:o,required:a,ref:V=>{m?.(V),R.current=V},"aria-label":u,"aria-labelledby":t,value:f,onBlur:d,onChange:h,type:x})})]})]}),l&&L.jsx(Ur,{themeName:`${$}.errorMessage`,tokens:F,...k,children:l})]})},k7=e=>{const{name:t,required:n,minLength:a=0,maxLength:o=99999999,validation:l}=e,{register:u,formState:f}=c$(),h=u$(f.errors,t)?.message??void 0,{t:m}=L7("components"),{ref:x,...y}=u(t,{required:n?m("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:a,message:m("FORM.ERROR.MIN_LENGTH",{length:a})},maxLength:{value:o,message:m("FORM.ERROR.MAX_LENGTH",{length:a})},...l});return L.jsx(h$,{fieldRef:x,...y,...e,isError:!wd.isEmpty(h),errorMessage:h})};function F7({themeName:e="calendar",tokens:t,state:n,date:a}){const o=v.useRef(null),{cellProps:l,buttonProps:u,isSelected:f,isOutsideVisibleRange:d,isDisabled:h,formattedDate:m,isInvalid:x}=ET({date:a},n,o),y=n?.highlightedRange?ht(a,n?.highlightedRange.start):f,$=n?.highlightedRange?ht(a,n?.highlightedRange.end):f,{locale:P}=zt(),E=Zl(a,P),R=f&&(y||E===0||a.day===1),k=f&&($||E===6||a.day===a.calendar.getDaysInMonth(a)),{focusProps:O,isFocusVisible:N}=Ff(),F=Se(`${e}.cellContainer`,{...t,isFocusVisible:N}),H=Se(`${e}.cell`,{...t,isSelected:f,isInvalid:x,isDisabled:h,isRoundedLeft:R,isRoundedRight:k}),ue=Se(`${e}.cellDate`,{...t,isSelected:f,isInvalid:x,isDisabled:h,isSelectionStart:y,isSelectionEnd:$});return L.jsx("td",{...l,"aria-disabled":!1,className:F,children:L.jsx("div",{...Ke(u,O),ref:o,hidden:d,className:H,children:L.jsx("div",{className:ue,children:m})})})}function N7({themeName:e="calendar",customTheme:t,tokens:n,state:a,...o}){const{locale:l}=zt(),{gridProps:u,headerProps:f,weekDays:d}=_T({...o},a),h=b3(a.visibleRange.start,l),m=Se(`${e}.calendarTable`,n),x=Se(`${e}.dayLabel`,n);return L.jsxs("table",{...u,cellPadding:"0",className:m,children:[L.jsx("thead",{...f,children:L.jsx("tr",{children:d.map(y=>L.jsx("th",{className:x,children:y},`${y}`))})}),L.jsx("tbody",{children:[...new Array(h).keys()].map(y=>L.jsx("tr",{children:a.getDatesInWeek(y).map(($,P)=>$?L.jsx(F7,{state:a,date:$},$?.day):L.jsx("td",{},P))},y))})]})}function p$({buttons:e,tokens:t,customTheme:n,themeName:a="calendar",...o}){const{locale:l}=zt(),u=E4({...o,locale:l,createCalendar:Vg}),f=v.useRef(null),{calendarProps:d,prevButtonProps:h,nextButtonProps:m,title:x}=TT({...o},u),y=Se(`${a}.container`,t),$=Se(`${a}.header`,t),P=Se(`${a}.navigationButtonsContainer`,t);return L.jsxs("div",{...d,ref:f,className:y,children:[L.jsxs("div",{className:$,children:[L.jsx(Ur,{as:"p",tokens:{size:"h6"},children:x}),L.jsxs("div",{className:P,children:[L.jsx(ea,{themeName:`${a}.navigationButtons`,tokens:{...t},type:"button",...h,handlePress:h?.onPress,children:L.jsx(jr,{icon:e?.buttonPrev?.icon??"ArrowLeft"})}),L.jsx(ea,{themeName:`${a}.navigationButtons`,tokens:{...t},type:"button",...m,handlePress:m?.onPress,children:L.jsx(jr,{icon:e?.buttonNext?.icon??"ArrowRight"})})]})]}),L.jsx(N7,{state:u})]})}function K7({title:e,children:t,...n}){const a=v.useRef(null),{dialogProps:o}=td(n,a);return L.jsx("div",{...o,ref:a,children:t})}function B7({themeName:e="datePicker",tokens:t,...n}){const a=Yi.useRef(null),{state:o,children:l}={...n},{popoverProps:u,underlayProps:f}=v0({...n,popoverRef:a},o),d=Se(`${e}.calendarUnderlay`,t),h=Se(`${e}.calendarPopover`,t);return L.jsxs(b0,{children:[L.jsx("div",{...f,className:d}),L.jsxs("div",{...u,ref:a,className:h,children:[L.jsx(Yo,{onDismiss:o.close}),l,L.jsx(Yo,{onDismiss:o.close})]})]})}function U7({segment:e,state:t}){const n=v.useRef(null),{segmentProps:a}=T_(e,t,n);return L.jsxs("div",{...a,ref:n,children:[L.jsx("span",{"aria-hidden":"true",style:{visibility:e.isPlaceholder?"visible":"hidden",height:e.isPlaceholder?"":0,pointerEvents:"none",display:e.isPlaceholder?"block":"none"},children:e.placeholder}),e.isPlaceholder?"":e.text]})}function ng(e){const{locale:t}=zt(),n=U4({...e,locale:t,createCalendar:Vg}),a=v.useRef(null),{fieldProps:o}=D_(e,n,a);return L.jsx("div",{...o,ref:a,className:"flex",children:n.segments.map((l,u)=>L.jsx(U7,{segment:l,state:n},u))})}function z7({popoverPlacement:e="bottom start",tokens:t,customTheme:n,themeName:a="datePicker",icon:o="ArrowDown",description:l,buttonLabel:u,...f}){const d=F4({...f}),h=v.useRef(null),{groupProps:m,fieldProps:x,labelProps:y,descriptionProps:$,buttonProps:P,dialogProps:E,calendarProps:R}=w_({...f},d,h),{label:k}={...f},O=Se(`${a}.container`,t),N=Se(`${a}.dateField`,t),F=Se(`${a}.label`,t);return L.jsxs("div",{className:O,children:[k&&L.jsx("span",{...y,children:k}),l&&L.jsx("div",{...$,children:l}),L.jsx("div",{...m,ref:h,children:L.jsxs(ea,{themeName:`${a}.button`,tokens:{...t},type:"button",...P,handlePress:P.onPress,children:[u&&L.jsx("p",{className:F,children:u}),L.jsxs("div",{className:N,children:[L.jsx(ng,{...x}),d.validationState==="invalid"&&"❌"]}),L.jsx(jr,{themeName:`${a}.icon`,tokens:{...t},icon:o})]})}),d.isOpen&&L.jsx(B7,{triggerRef:h,state:d,placement:e,children:L.jsxs(K7,{...E,children:[L.jsxs("div",{children:[L.jsx(ng,{...x}),d.validationState==="invalid"&&"❌"]}),L.jsx(p$,{...R})]})})]})}const j7=({as:e="div",themeName:t="box",tokens:n,customTheme:a,children:o,className:l,...u})=>{const f=Se(t,n,a);return L.jsx(e,{...u,className:f,children:o})};v.forwardRef((e,t)=>{const{as:n="div",tokens:a,themeName:o="box",customTheme:l,children:u,...f}=e,d=Se(o,a,l);return L.jsx(n,{...f,ref:t,className:d,children:u})});const uu=(e,t,n="sharing_tool")=>`?utm_source=${e}&utm_medium=${t}&utm_campaign=${n}`,cu=()=>{const[e,t]=v.useState(),[n,a]=v.useState();return v.useEffect(()=>{t(window.location.href),a(window.document.title)},[]),{windowLocation:e,windowTitle:n}},H7=(e,t,n)=>{const{windowLocation:a,windowTitle:o}=cu(),l=n??a,u=uu(e,t);return`https://www.facebook.com/sharer.php?u=${`${l}${u}`}&t=${o}`},V7=(e,t,n)=>{const{windowLocation:a,windowTitle:o}=cu(),l=n??a,u=uu(e,t),f=`${l}${u}`;return`mailto:?to=&body=${o}%20${f}`},W7=(e,t,n)=>{const{windowLocation:a}=cu(),o=n??a,l=uu(e,t);return`https://twitter.com/intent/tweet?text=${`${o}${l}`}`};exports.Accordion=k_;exports.ArrowRight=s$;exports.Box=j7;exports.Button=ea;exports.Calendar=p$;exports.Checkbox=c7;exports.DateComponent=e7;exports.DatePicker=z7;exports.IconDispatcher=jr;exports.Lightbox=T4;exports.Modal=Dd;exports.PopoverButton=G4;exports.ReactHookFormInput=k7;exports.ReactHookFormSelect=u7;exports.Select=f$;exports.ShareButton=N_;exports.TextArea=f7;exports.TextInputField=h$;exports.ThemeContextProvider=ig;exports.Typography=Ur;exports.WysiwygBlock=Y4;exports.createThemeProvider=QP;exports.generateUtmTags=uu;exports.index=S4;exports.isEqual=o$;exports.makeTheme=qP;exports.useFacebookShareUrl=H7;exports.useMailToShareUrl=V7;exports.useTheme=rg;exports.useThemeContext=Se;exports.useTwitterShareUrl=W7;exports.useWindow=cu;