@kenyaemr/esm-lab-manifest-app 5.4.2-pre.2580 → 5.4.2-pre.2581

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 (96) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/dist/114.js +1 -0
  3. package/dist/114.js.map +1 -0
  4. package/dist/127.js +1 -1
  5. package/dist/150.js +1 -0
  6. package/dist/150.js.map +1 -0
  7. package/dist/152.js +2 -2
  8. package/dist/152.js.map +1 -1
  9. package/dist/191.js +1 -0
  10. package/dist/191.js.map +1 -0
  11. package/dist/346.js +1 -0
  12. package/dist/346.js.map +1 -0
  13. package/dist/361.js +1 -0
  14. package/dist/361.js.map +1 -0
  15. package/dist/40.js +1 -1
  16. package/dist/430.js +1 -1
  17. package/dist/430.js.map +1 -1
  18. package/dist/511.js +1 -0
  19. package/dist/511.js.map +1 -0
  20. package/dist/{185.js → 532.js} +8 -8
  21. package/dist/532.js.map +1 -0
  22. package/dist/558.js +1 -0
  23. package/dist/558.js.map +1 -0
  24. package/dist/569.js +1 -1
  25. package/dist/569.js.map +1 -1
  26. package/dist/588.js +1 -0
  27. package/dist/588.js.map +1 -0
  28. package/dist/608.js +1 -0
  29. package/dist/608.js.map +1 -0
  30. package/dist/611.js +1 -1
  31. package/dist/611.js.map +1 -1
  32. package/dist/{548.js → 613.js} +1 -1
  33. package/dist/613.js.map +1 -0
  34. package/dist/675.js +1 -0
  35. package/dist/675.js.map +1 -0
  36. package/dist/729.js +1 -0
  37. package/dist/729.js.map +1 -0
  38. package/dist/798.js +1 -1
  39. package/dist/798.js.map +1 -1
  40. package/dist/810.js +1 -1
  41. package/dist/810.js.map +1 -1
  42. package/dist/{607.js → 889.js} +1 -1
  43. package/dist/889.js.map +1 -0
  44. package/dist/{419.js → 911.js} +5 -5
  45. package/dist/911.js.map +1 -0
  46. package/dist/916.js +1 -1
  47. package/dist/924.js +1 -0
  48. package/dist/924.js.map +1 -0
  49. package/dist/946.js +1 -0
  50. package/dist/946.js.map +1 -0
  51. package/dist/988.js +1 -0
  52. package/dist/988.js.map +1 -0
  53. package/dist/kenyaemr-esm-lab-manifest-app.js +3 -3
  54. package/dist/kenyaemr-esm-lab-manifest-app.js.buildmanifest.json +345 -187
  55. package/dist/kenyaemr-esm-lab-manifest-app.js.map +1 -1
  56. package/dist/main.js +5 -5
  57. package/dist/main.js.map +1 -1
  58. package/dist/routes.json +1 -1
  59. package/package.json +1 -1
  60. package/src/config-schema.ts +8 -1
  61. package/src/dashboard/dashboard-view.component.tsx +12 -0
  62. package/src/dashboard/dashboard-view.scss +5 -0
  63. package/src/dashboard/home-dashboard.component.tsx +35 -0
  64. package/src/dashboard/home-dashboard.scss +28 -0
  65. package/src/dashboard.meta.ts +11 -0
  66. package/src/header/lab-manifest-detail-header.component.tsx +1 -1
  67. package/src/index.ts +17 -29
  68. package/src/nav/left-panel-link.component.tsx +83 -31
  69. package/src/nav/left-panel.scss +26 -0
  70. package/src/root.component.tsx +41 -13
  71. package/src/routes.json +27 -22
  72. package/src/side-menu/side-menu.component.tsx +6 -0
  73. package/src/tables/lab-manifest-table.component.tsx +49 -47
  74. package/translations/am.json +3 -0
  75. package/translations/en.json +3 -0
  76. package/translations/sw.json +3 -0
  77. package/dist/136.js +0 -1
  78. package/dist/136.js.map +0 -1
  79. package/dist/185.js.map +0 -1
  80. package/dist/290.js +0 -1
  81. package/dist/290.js.map +0 -1
  82. package/dist/333.js +0 -1
  83. package/dist/333.js.map +0 -1
  84. package/dist/419.js.map +0 -1
  85. package/dist/543.js +0 -1
  86. package/dist/543.js.map +0 -1
  87. package/dist/548.js.map +0 -1
  88. package/dist/581.js +0 -1
  89. package/dist/581.js.map +0 -1
  90. package/dist/607.js.map +0 -1
  91. package/dist/638.js +0 -1
  92. package/dist/638.js.map +0 -1
  93. package/dist/642.js +0 -1
  94. package/dist/642.js.map +0 -1
  95. package/dist/786.js +0 -1
  96. package/dist/786.js.map +0 -1
package/dist/152.js CHANGED
@@ -4,7 +4,7 @@
4
4
  touch-action: pan-x pan-y pinch-zoom;
5
5
  }
6
6
  }
7
- `.trim(),e.head.prepend(t)},[p]),(0,v.useEffect)(()=>{let e=g.current;return()=>{var t;for(let n of(d||t$(null!=(t=e.target)?t:void 0),e.disposables))n();e.disposables=[]}},[d]),{isPressed:l||m,pressProps:eT(f,D,{[tN]:!0})}}function tR(e){return"A"===e.tagName&&e.hasAttribute("href")}function tL(e,t){let{key:n,code:r}=e,a=t.getAttribute("role");return("Enter"===n||" "===n||"Spacebar"===n||"Space"===r)&&!(t instanceof eQ(t).HTMLInputElement&&!tU(t,n)||t instanceof eQ(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===a||!a&&tR(t))&&"Enter"!==n)}function tV(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function tH(e,t){return e instanceof HTMLInputElement?!tU(e,t):!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!tR(e))}let tG=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function tU(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:tG.has(e.type)}let tq=null,tW=new Set,tK=new Map,tY=!1,tJ=!1,tZ={Tab:!0,Escape:!0};function tX(e,t){for(let n of tW)n(e,t)}function tQ(e){tY=!0,e.metaKey||!ts()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(tq="keyboard",tX("keyboard",e))}function t0(e){tq="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(tY=!0,tX("pointer",e))}function t1(e){tP(e)&&(tY=!0,tq="virtual")}function t2(e){e.target!==window&&e.target!==document&&!tr&&e.isTrusted&&(tY||tJ||(tq="virtual",tX("virtual",e)),tY=!1,tJ=!1)}function t3(){tr||(tY=!1,tJ=!0)}function t4(e){if("undefined"==typeof window||"undefined"==typeof document||tK.get(eQ(e)))return;let t=eQ(e),n=eX(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){tY=!0,r.apply(this,arguments)},n.addEventListener("keydown",tQ,!0),n.addEventListener("keyup",tQ,!0),n.addEventListener("click",t1,!0),t.addEventListener("focus",t2,!0),t.addEventListener("blur",t3,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",t0,!0),n.addEventListener("pointermove",t0,!0),n.addEventListener("pointerup",t0,!0)),t.addEventListener("beforeunload",()=>{t5(e)},{once:!0}),tK.set(t,{focus:r})}let t5=(e,t)=>{let n=eQ(e),r=eX(e);t&&r.removeEventListener("DOMContentLoaded",t),tK.has(n)&&(n.HTMLElement.prototype.focus=tK.get(n).focus,r.removeEventListener("keydown",tQ,!0),r.removeEventListener("keyup",tQ,!0),r.removeEventListener("click",t1,!0),n.removeEventListener("focus",t2,!0),n.removeEventListener("blur",t3,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",t0,!0),r.removeEventListener("pointermove",t0,!0),r.removeEventListener("pointerup",t0,!0)),tK.delete(n))};function t6(){return"pointer"!==tq}"undefined"!=typeof document&&("loading"!==(i=eX(void 0)).readyState?t4(c):(o=()=>{t4(c)},i.addEventListener("DOMContentLoaded",o)),()=>t5(c,o));let t7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function t8(e){let t=eX(e),n=((e=document)=>e.activeElement)(t);"virtual"===tq?tb(()=>{((e=document)=>e.activeElement)(t)===n&&e.isConnected&&e8(e)}):e8(e)}function t9(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e,o=(0,v.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),a&&a(!1),!0},[r,a]),i=tn(o),s=(0,v.useCallback)(e=>{let t=eX(e.target),r=t?((e=document)=>e.activeElement)(t):((e=document)=>e.activeElement)();e.target===e.currentTarget&&r===tB(e.nativeEvent)&&(n&&n(e),a&&a(!0),i(e))},[a,n,i]);return{focusProps:{onFocus:!t&&(n||a||r)?s:void 0,onBlur:!t&&(r||a)?o:void 0}}}function ne(e){if(!e)return;let t=!0;return n=>{e({...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped:()=>t}),t&&n.stopPropagation()}}let nt=v.createContext(null);function nn(e,t){let{focusProps:n}=t9(e),{keyboardProps:r}={keyboardProps:e.isDisabled?{}:{onKeyDown:ne(e.onKeyDown),onKeyUp:ne(e.onKeyUp)}},a=eT(n,r),o=function(e){let t=(0,v.useContext)(nt)||{};tE(t,e);let{ref:n,...r}=t;return r}(t),i=e.isDisabled?{}:o,s=(0,v.useRef)(e.autoFocus);(0,v.useEffect)(()=>{s.current&&t.current&&t8(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:eT({...a,tabIndex:l},i)}}function nr(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:a}=e,o=(0,v.useRef)({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:s}=tD(),l=(0,v.useCallback)(e=>{e.currentTarget.contains(e.target)&&o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,s(),n&&n(e),a&&a(!1))},[n,a,o,s]),c=tn(l),u=(0,v.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=eX(e.target),n=((e=document)=>e.activeElement)(t);if(!o.current.isFocusWithin&&n===tB(e.nativeEvent)){r&&r(e),a&&a(!0),o.current.isFocusWithin=!0,c(e);let n=e.currentTarget;i(t,"focus",e=>{if(o.current.isFocusWithin&&!tS(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});tt(r,n),l(te(r))}},{capture:!0})}},[r,a,c,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}function na(e={}){var t;let{autoFocus:n=!1,isTextInput:r,within:a}=e,o=(0,v.useRef)({isFocused:!1,isFocusVisible:n||t6()}),[i,s]=(0,v.useState)(!1),[l,c]=(0,v.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),u=(0,v.useCallback)(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),d=(0,v.useCallback)(e=>{o.current.isFocused=e,s(e),u()},[u]);t={isTextInput:r},t4(),(0,v.useEffect)(()=>{let e=(e,n)=>{var r;let a,i,s,l,c;r=!!(null==t?void 0:t.isTextInput),a=eX(null==n?void 0:n.target),i="undefined"!=typeof window?eQ(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,s="undefined"!=typeof window?eQ(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l="undefined"!=typeof window?eQ(null==n?void 0:n.target).HTMLElement:HTMLElement,c="undefined"!=typeof window?eQ(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent,(r=r||a.activeElement instanceof i&&!t7.has(a.activeElement.type)||a.activeElement instanceof s||a.activeElement instanceof l&&a.activeElement.isContentEditable)&&"keyboard"===e&&n instanceof c&&!tZ[n.key]||(e=>{o.current.isFocusVisible=e,u()})(t6())};return tW.add(e),()=>{tW.delete(e)}},[]);let{focusProps:p}=t9({isDisabled:a,onFocusChange:d}),{focusWithinProps:f}=nr({isDisabled:!a,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:l,focusProps:a?f:p}}v.forwardRef(function(e,t){let{children:n,...r}=e,a=e$(t),o={...r,ref:a};return v.createElement(nt.Provider,{value:o},n)});let no=!1,ni=0;function ns(e){"touch"===e.pointerType&&(no=!0,setTimeout(()=>{no=!1},50))}function nl(){if("undefined"!=typeof document)return 0===ni&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",ns),ni++,()=>{--ni>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",ns)}}function nc(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:a}=e,[o,i]=(0,v.useState)(!1),s=(0,v.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,v.useEffect)(nl,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=tD(),{hoverProps:u,triggerHoverEnd:d}=(0,v.useMemo)(()=>{let e=(e,t)=>{let a=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&a&&(s.isHovered=!1,c(),r&&r({type:"hoverend",target:a,pointerType:t}),n&&n(!1),i(!1))},o={};return"undefined"!=typeof PointerEvent&&(o.onPointerEnter=r=>{no&&"mouse"===r.pointerType||((r,o)=>{if(s.pointerType=o,a||"touch"===o||s.isHovered||!r.currentTarget.contains(r.target))return;s.isHovered=!0;let c=r.currentTarget;s.target=c,l(eX(r.target),"pointerover",t=>{s.isHovered&&s.target&&!tS(s.target,t.target)&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:c,pointerType:o}),n&&n(!0),i(!0)})(r,r.pointerType)},o.onPointerLeave=t=>{!a&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,n,r,a,s,l,c]);return(0,v.useEffect)(()=>{a&&d({currentTarget:s.target},s.pointerType)},[a]),{hoverProps:u,isHovered:o}}if("undefined"!=typeof HTMLTemplateElement){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}let nu=(0,v.createContext)(!1);function nd(e){let t=(t,n)=>(0,v.useContext)(nu)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,v.forwardRef)(t)}let np=(0,v.createContext)({}),nf=nd(function(e,t){var n;[e,t]=eN(e,t,np);let r=((n=e).isPending&&(n.onPress=void 0,n.onPressStart=void 0,n.onPressEnd=void 0,n.onPressChange=void 0,n.onPressUp=void 0,n.onKeyDown=void 0,n.onKeyUp=void 0,n.onClick=void 0,n.href=void 0),e=n),{isPending:a}=r,{buttonProps:o,isPressed:i}=function(e,t){let n,{elementType:r="button",isDisabled:a,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:l,onPressChange:c,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:p,href:f,target:m,rel:h,type:g="button"}=e;n="button"===r?{type:g,disabled:a,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:"button",href:"a"!==r||a?void 0:f,target:"a"===r?m:void 0,type:"input"===r?g:void 0,disabled:"input"===r?a:void 0,"aria-disabled":a&&"input"!==r?a:void 0,rel:"a"===r?h:void 0};let{pressProps:b,isPressed:y}=tj({onPressStart:i,onPressEnd:s,onPressChange:c,onPress:o,onPressUp:l,onClick:p,isDisabled:a,preventFocusOnPress:u,ref:t}),{focusableProps:v}=nn(e,t);d&&(v.tabIndex=a?-1:v.tabIndex);let A=eT(v,b,eZ(e,{labelable:!0}));return{isPressed:y,buttonProps:eT(n,A,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}(e,t),{focusProps:s,isFocused:l,isFocusVisible:c}=na(e),{hoverProps:u,isHovered:d}=nc({...e,isDisabled:e.isDisabled||a}),p={isHovered:d,isPressed:(r.isPressed||i)&&!a,isFocused:l,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:null!=a&&a},f=eF({...e,values:p,defaultClassName:"react-aria-Button"}),m=eB(o.id),h=eB(),g=o["aria-labelledby"];a&&(g?g=`${g} ${h}`:o["aria-label"]&&(g=`${m} ${h}`));let b=(0,v.useRef)(a);(0,v.useEffect)(()=>{let e={"aria-labelledby":g||m};!b.current&&l&&a?eH(e,"assertive"):b.current&&l&&!a&&eH(e,"assertive"),b.current=a},[a,l,g,m]);let y=eZ(e,{global:!0});return delete y.onClick,v.createElement("button",{...eT(y,f,o,s,u),type:"submit"===o.type&&a?"button":o.type,id:m,ref:t,"aria-labelledby":g,slot:e.slot||void 0,"aria-disabled":a?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":d||void 0,"data-focused":l||void 0,"data-pending":a||void 0,"data-focus-visible":c||void 0},v.createElement(eL.Provider,{value:{id:h}},f.children))});(0,v.createContext)(null),(0,v.createContext)(null),(0,v.createContext)(null),(0,v.createContext)(null),(0,v.createContext)(null);let nm=(0,v.createContext)({}),nh=(0,v.createContext)({}),n_=(0,v.forwardRef)(function(e,t){[e,t]=eN(e,t,nh);let{elementType:n="span",...r}=e;return v.createElement(n,{className:"react-aria-Text",...r,ref:t})});var ng={};ng={"ar-AE":{dateRange:e=>`${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,dateSelected:e=>`${e.date} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,finishRangeSelectionPrompt:`\u{627}\u{646}\u{642}\u{631} \u{644}\u{625}\u{646}\u{647}\u{627}\u{621} \u{639}\u{645}\u{644}\u{64A}\u{629} \u{62A}\u{62D}\u{62F}\u{64A}\u{62F} \u{646}\u{637}\u{627}\u{642} \u{627}\u{644}\u{62A}\u{627}\u{631}\u{64A}\u{62E}`,maximumDate:`\u{622}\u{62E}\u{631} \u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62A}\u{627}\u{62D}`,minimumDate:`\u{623}\u{648}\u{644} \u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62A}\u{627}\u{62D}`,next:`\u{627}\u{644}\u{62A}\u{627}\u{644}\u{64A}`,previous:`\u{627}\u{644}\u{633}\u{627}\u{628}\u{642}`,selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.dateRange}`,startRangeSelectionPrompt:`\u{627}\u{646}\u{642}\u{631} \u{644}\u{628}\u{62F}\u{621} \u{639}\u{645}\u{644}\u{64A}\u{629} \u{62A}\u{62D}\u{62F}\u{64A}\u{62F} \u{646}\u{637}\u{627}\u{642} \u{627}\u{644}\u{62A}\u{627}\u{631}\u{64A}\u{62E}`,todayDate:e=>`\u{627}\u{644}\u{64A}\u{648}\u{645}\u{60C} ${e.date}`,todayDateSelected:e=>`\u{627}\u{644}\u{64A}\u{648}\u{645}\u{60C} ${e.date} \u{645}\u{62D}\u{62F}\u{62F}`},"bg-BG":{dateRange:e=>`${e.startDate} \u{434}\u{43E} ${e.endDate}`,dateSelected:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{435} ${e.date}`,finishRangeSelectionPrompt:`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435}, \u{437}\u{430} \u{434}\u{430} \u{434}\u{43E}\u{432}\u{44A}\u{440}\u{448}\u{438}\u{442}\u{435} \u{438}\u{437}\u{431}\u{43E}\u{440}\u{430} \u{43D}\u{430} \u{432}\u{440}\u{435}\u{43C}\u{435}\u{432}\u{438} \u{438}\u{43D}\u{442}\u{435}\u{440}\u{432}\u{430}\u{43B}`,maximumDate:`\u{41F}\u{43E}\u{441}\u{43B}\u{435}\u{434}\u{43D}\u{430} \u{43D}\u{430}\u{43B}\u{438}\u{447}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}`,minimumDate:`\u{41F}\u{44A}\u{440}\u{432}\u{430} \u{43D}\u{430}\u{43B}\u{438}\u{447}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}`,next:`\u{41D}\u{430}\u{43F}\u{440}\u{435}\u{434}`,previous:`\u{41D}\u{430}\u{437}\u{430}\u{434}`,selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435}, \u{437}\u{430} \u{434}\u{430} \u{43F}\u{440}\u{438}\u{441}\u{442}\u{44A}\u{43F}\u{438}\u{442}\u{435} \u{43A}\u{44A}\u{43C} \u{438}\u{437}\u{431}\u{43E}\u{440}\u{430} \u{43D}\u{430} \u{432}\u{440}\u{435}\u{43C}\u{435}\u{432}\u{438} \u{438}\u{43D}\u{442}\u{435}\u{440}\u{432}\u{430}\u{43B}`,todayDate:e=>`\u{414}\u{43D}\u{435}\u{441}, ${e.date}`,todayDateSelected:e=>`\u{414}\u{43D}\u{435}\u{441}, ${e.date} \u{441}\u{430} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`},"cs-CZ":{dateRange:e=>`${e.startDate} a\u{17E} ${e.endDate}`,dateSelected:e=>`Vybr\xe1no ${e.date}`,finishRangeSelectionPrompt:`Kliknut\xedm dokon\u{10D}\xedte v\xfdb\u{11B}r rozsahu dat`,maximumDate:`Posledn\xed dostupn\xe9 datum`,minimumDate:`Prvn\xed dostupn\xe9 datum`,next:`Dal\u{161}\xed`,previous:`P\u{159}edchoz\xed`,selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.dateRange}`,startRangeSelectionPrompt:`Kliknut\xedm zah\xe1j\xedte v\xfdb\u{11B}r rozsahu dat`,todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybr\xe1no ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:`Klik for at fuldf\xf8re valg af datoomr\xe5de`,maximumDate:"Sidste ledige dato",minimumDate:`F\xf8rste ledige dato`,next:`N\xe6ste`,previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:`Klik for at starte valg af datoomr\xe5de`,todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgew\xe4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:`Letztes verf\xfcgbares Datum`,minimumDate:`Erstes verf\xfcgbares Datum`,next:"Weiter",previous:`Zur\xfcck`,selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgew\xe4hlt`},"el-GR":{dateRange:e=>`${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,dateSelected:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} ${e.date}`,finishRangeSelectionPrompt:`\u{39A}\u{3AC}\u{3BD}\u{3C4}\u{3B5} \u{3BA}\u{3BB}\u{3B9}\u{3BA} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3BF}\u{3BB}\u{3BF}\u{3BA}\u{3BB}\u{3B7}\u{3C1}\u{3CE}\u{3C3}\u{3B5}\u{3C4}\u{3B5} \u{3C4}\u{3B7}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C5}\u{3C2} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3B9}\u{3CE}\u{3BD}`,maximumDate:`\u{3A4}\u{3B5}\u{3BB}\u{3B5}\u{3C5}\u{3C4}\u{3B1}\u{3AF}\u{3B1} \u{3B4}\u{3B9}\u{3B1}\u{3B8}\u{3AD}\u{3C3}\u{3B9}\u{3BC}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}`,minimumDate:`\u{3A0}\u{3C1}\u{3CE}\u{3C4}\u{3B7} \u{3B4}\u{3B9}\u{3B1}\u{3B8}\u{3AD}\u{3C3}\u{3B9}\u{3BC}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}`,next:`\u{395}\u{3C0}\u{3CC}\u{3BC}\u{3B5}\u{3BD}\u{3BF}`,previous:`\u{3A0}\u{3C1}\u{3BF}\u{3B7}\u{3B3}\u{3BF}\u{3CD}\u{3BC}\u{3B5}\u{3BD}\u{3BF}`,selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.dateRange}`,startRangeSelectionPrompt:`\u{39A}\u{3AC}\u{3BD}\u{3C4}\u{3B5} \u{3BA}\u{3BB}\u{3B9}\u{3BA} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3BE}\u{3B5}\u{3BA}\u{3B9}\u{3BD}\u{3AE}\u{3C3}\u{3B5}\u{3C4}\u{3B5} \u{3C4}\u{3B7}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C5}\u{3C2} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3B9}\u{3CE}\u{3BD}`,todayDate:e=>`\u{3A3}\u{3AE}\u{3BC}\u{3B5}\u{3C1}\u{3B1}, ${e.date}`,todayDateSelected:e=>`\u{3A3}\u{3AE}\u{3BC}\u{3B5}\u{3C1}\u{3B1}, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3C4}\u{3B7}\u{3BA}\u{3B5} ${e.date}`},"en-US":{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}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:`\xdaltima 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`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:`Kl\xf5psake kuup\xe4evavahemiku valimise l\xf5petamiseks`,maximumDate:`Viimane saadaolev kuup\xe4ev`,minimumDate:`Esimene saadaolev kuup\xe4ev`,next:`J\xe4rgmine`,previous:"Eelmine",selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:`Kl\xf5psake kuup\xe4evavahemiku valimiseks`,todayDate:e=>`T\xe4na, ${e.date}`,todayDateSelected:e=>`T\xe4na, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} \u{2013} ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:`Lopeta p\xe4iv\xe4m\xe4\xe4r\xe4alueen valinta napsauttamalla t\xe4t\xe4.`,maximumDate:`Viimeinen varattavissa oleva p\xe4iv\xe4m\xe4\xe4r\xe4`,minimumDate:`Ensimm\xe4inen varattavissa oleva p\xe4iv\xe4m\xe4\xe4r\xe4`,next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.dateRange}`,startRangeSelectionPrompt:`Aloita p\xe4iv\xe4m\xe4\xe4r\xe4alueen valinta napsauttamalla t\xe4t\xe4.`,todayDate:e=>`T\xe4n\xe4\xe4n, ${e.date}`,todayDateSelected:e=>`T\xe4n\xe4\xe4n, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} \xe0 ${e.endDate}`,dateSelected:e=>`${e.date} s\xe9lectionn\xe9`,finishRangeSelectionPrompt:`Cliquer pour finir de s\xe9lectionner la plage de dates`,maximumDate:`Derni\xe8re date disponible`,minimumDate:`Premi\xe8re date disponible`,next:"Suivant",previous:`Pr\xe9c\xe9dent`,selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.dateRange}`,startRangeSelectionPrompt:`Cliquer pour commencer \xe0 s\xe9lectionner la plage de dates`,todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd\u{2019}hui, ${e.date} s\xe9lectionn\xe9`},"he-IL":{dateRange:e=>`${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,dateSelected:e=>`${e.date} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,finishRangeSelectionPrompt:`\u{5D7}\u{5E5} \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5E1}\u{5D9}\u{5D9}\u{5DD} \u{5D0}\u{5EA} \u{5D1}\u{5D7}\u{5D9}\u{5E8}\u{5EA} \u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5D4}\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DB}\u{5D9}\u{5DD}`,maximumDate:`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E4}\u{5E0}\u{5D5}\u{5D9} \u{5D0}\u{5D7}\u{5E8}\u{5D5}\u{5DF}`,minimumDate:`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E4}\u{5E0}\u{5D5}\u{5D9} \u{5E8}\u{5D0}\u{5E9}\u{5D5}\u{5DF}`,next:`\u{5D4}\u{5D1}\u{5D0}`,previous:`\u{5D4}\u{5E7}\u{5D5}\u{5D3}\u{5DD}`,selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.dateRange}`,startRangeSelectionPrompt:`\u{5DC}\u{5D7}\u{5E5} \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5D4}\u{5EA}\u{5D7}\u{5D9}\u{5DC} \u{5D1}\u{5D1}\u{5D7}\u{5D9}\u{5E8}\u{5EA} \u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5D4}\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DB}\u{5D9}\u{5DD}`,todayDate:e=>`\u{5D4}\u{5D9}\u{5D5}\u{5DD}, ${e.date}`,todayDateSelected:e=>`\u{5D4}\u{5D9}\u{5D5}\u{5DD}, ${e.date} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:`Kliknite da dovr\u{161}ite raspon odabranih datuma`,maximumDate:`Posljednji raspolo\u{17E}ivi datum`,minimumDate:`Prvi raspolo\u{17E}ivi datum`,next:`Sljede\u{107}i`,previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:`Kliknite da zapo\u{10D}nete raspon odabranih datuma`,todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}\u{2013}${e.endDate}`,dateSelected:e=>`${e.date} kiv\xe1lasztva`,finishRangeSelectionPrompt:`Kattintson a d\xe1tumtartom\xe1ny kijel\xf6l\xe9s\xe9nek befejez\xe9s\xe9hez`,maximumDate:`Utols\xf3 el\xe9rhet\u{151} d\xe1tum`,minimumDate:`Az els\u{151} el\xe9rhet\u{151} d\xe1tum`,next:`K\xf6vetkez\u{151}`,previous:`El\u{151}z\u{151}`,selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.dateRange}`,startRangeSelectionPrompt:`Kattintson a d\xe1tumtartom\xe1ny kijel\xf6l\xe9s\xe9nek ind\xedt\xe1s\xe1hoz`,todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijel\xf6lve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:`Fai clic per completare la selezione dell\u{2019}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\u{2019}intervallo di date`,todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} \u{304B}\u{3089} ${e.endDate}`,dateSelected:e=>`${e.date} \u{3092}\u{9078}\u{629E}`,finishRangeSelectionPrompt:`\u{30AF}\u{30EA}\u{30C3}\u{30AF}\u{3057}\u{3066}\u{65E5}\u{4ED8}\u{7BC4}\u{56F2}\u{306E}\u{9078}\u{629E}\u{3092}\u{7D42}\u{4E86}`,maximumDate:`\u{6700}\u{7D42}\u{5229}\u{7528}\u{53EF}\u{80FD}\u{65E5}`,minimumDate:`\u{6700}\u{521D}\u{306E}\u{5229}\u{7528}\u{53EF}\u{80FD}\u{65E5}`,next:`\u{6B21}\u{3078}`,previous:`\u{524D}\u{3078}`,selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.dateRange}`,startRangeSelectionPrompt:`\u{30AF}\u{30EA}\u{30C3}\u{30AF}\u{3057}\u{3066}\u{65E5}\u{4ED8}\u{7BC4}\u{56F2}\u{306E}\u{9078}\u{629E}\u{3092}\u{958B}\u{59CB}`,todayDate:e=>`\u{672C}\u{65E5}\u{3001}${e.date}`,todayDateSelected:e=>`\u{672C}\u{65E5}\u{3001}${e.date} \u{3092}\u{9078}\u{629E}`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} \u{C120}\u{D0DD}\u{B428}`,finishRangeSelectionPrompt:`\u{B0A0}\u{C9DC} \u{BC94}\u{C704} \u{C120}\u{D0DD}\u{C744} \u{C644}\u{B8CC}\u{D558}\u{B824}\u{BA74} \u{D074}\u{B9AD}\u{D558}\u{C2ED}\u{C2DC}\u{C624}.`,maximumDate:`\u{B9C8}\u{C9C0}\u{B9C9}\u{C73C}\u{B85C} \u{C0AC}\u{C6A9} \u{AC00}\u{B2A5}\u{D55C} \u{C77C}\u{C790}`,minimumDate:`\u{CC98}\u{C74C}\u{C73C}\u{B85C} \u{C0AC}\u{C6A9} \u{AC00}\u{B2A5}\u{D55C} \u{C77C}\u{C790}`,next:`\u{B2E4}\u{C74C}`,previous:`\u{C774}\u{C804}`,selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.dateRange}`,startRangeSelectionPrompt:`\u{B0A0}\u{C9DC} \u{BC94}\u{C704} \u{C120}\u{D0DD}\u{C744} \u{C2DC}\u{C791}\u{D558}\u{B824}\u{BA74} \u{D074}\u{B9AD}\u{D558}\u{C2ED}\u{C2DC}\u{C624}.`,todayDate:e=>`\u{C624}\u{B298}, ${e.date}`,todayDateSelected:e=>`\u{C624}\u{B298}, ${e.date} \u{C120}\u{D0DD}\u{B428}`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:`Spustel\u{117}kite, kad baigtum\u{117}te pasirinkti dat\u{173} interval\u{105}`,maximumDate:`Paskutin\u{117} galima data`,minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:`Spustel\u{117}kite, kad prad\u{117}tum\u{117}te pasirinkti dat\u{173} interval\u{105}`,todayDate:e=>`\u{160}iandien, ${e.date}`,todayDateSelected:e=>`\u{160}iandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} l\u{12B}dz ${e.endDate}`,dateSelected:e=>`Atlas\u{12B}ts: ${e.date}`,finishRangeSelectionPrompt:`Noklik\u{161}\u{137}iniet, lai pabeigtu datumu diapazona atlasi`,maximumDate:`P\u{113}d\u{113}jais pieejamais datums`,minimumDate:"Pirmais pieejamais datums",next:`T\u{101}l\u{101}k`,previous:`Atpaka\u{13C}`,selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:`Noklik\u{161}\u{137}iniet, lai s\u{101}ktu datumu diapazona atlasi`,todayDate:e=>`\u{160}odien, ${e.date}`,todayDateSelected:e=>`Atlas\u{12B}ta \u{161}odiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:`Klikk for \xe5 fullf\xf8re valg av datoomr\xe5de`,maximumDate:"Siste tilgjengelige dato",minimumDate:`F\xf8rste tilgjengelige dato`,next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.dateRange}`,startRangeSelectionPrompt:`Klikk for \xe5 starte valg av datoomr\xe5de`,todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{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`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:`Kliknij, aby zako\u{144}czy\u{107} wyb\xf3r zakresu dat`,maximumDate:`Ostatnia dost\u{119}pna data`,minimumDate:`Pierwsza dost\u{119}pna data`,next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:`Kliknij, aby rozpocz\u{105}\u{107} wyb\xf3r zakresu dat`,todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:`Clique para concluir a sele\xe7\xe3o do intervalo de datas`,maximumDate:`\xdaltima data dispon\xedvel`,minimumDate:`Primeira data dispon\xedvel`,next:`Pr\xf3ximo`,previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:`Clique para iniciar a sele\xe7\xe3o do intervalo de datas`,todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:`\xdaltima data dispon\xedvel`,minimumDate:`Primeira data dispon\xedvel`,next:`Pr\xf3ximo`,previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:`Clique para come\xe7ar a selecionar o intervalo de datas`,todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,dateSelected:e=>`${e.date} selectat\u{103}`,finishRangeSelectionPrompt:`Ap\u{103}sa\u{163}i pentru a finaliza selec\u{163}ia razei pentru dat\u{103}`,maximumDate:`Ultima dat\u{103} disponibil\u{103}`,minimumDate:`Prima dat\u{103} disponibil\u{103}`,next:`Urm\u{103}torul`,previous:`\xcenainte`,selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:`Ap\u{103}sa\u{163}i pentru a \xeencepe selec\u{163}ia razei pentru dat\u{103}`,todayDate:e=>`Ast\u{103}zi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectat\u{103}`},"ru-RU":{dateRange:e=>`\u{421} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,dateSelected:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`,finishRangeSelectionPrompt:`\u{429}\u{435}\u{43B}\u{43A}\u{43D}\u{438}\u{442}\u{435}, \u{447}\u{442}\u{43E}\u{431}\u{44B} \u{437}\u{430}\u{432}\u{435}\u{440}\u{448}\u{438}\u{442}\u{44C} \u{432}\u{44B}\u{431}\u{43E}\u{440} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}\u{430} \u{434}\u{430}\u{442}`,maximumDate:`\u{41F}\u{43E}\u{441}\u{43B}\u{435}\u{434}\u{43D}\u{44F}\u{44F} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}`,minimumDate:`\u{41F}\u{435}\u{440}\u{432}\u{430}\u{44F} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}`,next:`\u{414}\u{430}\u{43B}\u{435}\u{435}`,previous:`\u{41D}\u{430}\u{437}\u{430}\u{434}`,selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:`\u{429}\u{435}\u{43B}\u{43A}\u{43D}\u{438}\u{442}\u{435}, \u{447}\u{442}\u{43E}\u{431}\u{44B} \u{43D}\u{430}\u{447}\u{430}\u{442}\u{44C} \u{432}\u{44B}\u{431}\u{43E}\u{440} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}\u{430} \u{434}\u{430}\u{442}`,todayDate:e=>`\u{421}\u{435}\u{433}\u{43E}\u{434}\u{43D}\u{44F}, ${e.date}`,todayDateSelected:e=>`\u{421}\u{435}\u{433}\u{43E}\u{434}\u{43D}\u{44F}, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybrat\xfd d\xe1tum ${e.date}`,finishRangeSelectionPrompt:`Kliknut\xedm dokon\u{10D}\xedte v\xfdber rozsahu d\xe1tumov`,maximumDate:`Posledn\xfd dostupn\xfd d\xe1tum`,minimumDate:`Prv\xfd dostupn\xfd d\xe1tum`,next:`Nasleduj\xface`,previous:`Predch\xe1dzaj\xface`,selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: ${e.dateRange}`,startRangeSelectionPrompt:`Kliknut\xedm spust\xedte v\xfdber rozsahu d\xe1tumov`,todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybrat\xfd dne\u{161}n\xfd d\xe1tum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:`Kliknite za dokon\u{10D}anje izbire datumskega obsega`,maximumDate:`Zadnji razpolo\u{17E}ljivi datum`,minimumDate:`Prvi razpolo\u{17E}ljivi datum`,next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.dateRange}`,startRangeSelectionPrompt:`Kliknite za za\u{10D}etek izbire datumskega obsega`,todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:`Kliknite da dovr\u{161}ite opseg izabranih datuma`,maximumDate:`Zadnji raspolo\u{17E}ivi datum`,minimumDate:`Prvi raspolo\u{17E}ivi datum`,next:`Slede\u{107}i`,previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:`Kliknite da zapo\u{10D}nete opseg izabranih datuma`,todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:`Klicka f\xf6r att avsluta val av datumintervall`,maximumDate:`Sista tillg\xe4ngliga datum`,minimumDate:`F\xf6rsta tillg\xe4ngliga datum`,next:`N\xe4sta`,previous:`F\xf6reg\xe5ende`,selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:`Klicka f\xf6r att v\xe4lja datumintervall`,todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} se\xe7ildi`,finishRangeSelectionPrompt:`Tarih aral\u{131}\u{11F}\u{131} se\xe7imini tamamlamak i\xe7in t\u{131}klay\u{131}n`,maximumDate:`Son m\xfcsait tarih`,minimumDate:`\u{130}lk m\xfcsait tarih`,next:"Sonraki",previous:`\xd6nceki`,selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.dateRange}`,startRangeSelectionPrompt:`Tarih aral\u{131}\u{11F}\u{131} se\xe7imini ba\u{15F}latmak i\xe7in t\u{131}klay\u{131}n`,todayDate:e=>`Bug\xfcn, ${e.date}`,todayDateSelected:e=>`Bug\xfcn, ${e.date} se\xe7ildi`},"uk-UA":{dateRange:e=>`${e.startDate} \u{2014} ${e.endDate}`,dateSelected:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`,finishRangeSelectionPrompt:`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C}, \u{449}\u{43E}\u{431} \u{437}\u{430}\u{432}\u{435}\u{440}\u{448}\u{438}\u{442}\u{438} \u{432}\u{438}\u{431}\u{456}\u{440} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}\u{443} \u{434}\u{430}\u{442}`,maximumDate:`\u{41E}\u{441}\u{442}\u{430}\u{43D}\u{43D}\u{44F} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}`,minimumDate:`\u{41F}\u{435}\u{440}\u{448}\u{430} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}`,next:`\u{41D}\u{430}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{438}\u{439}`,previous:`\u{41F}\u{43E}\u{43F}\u{435}\u{440}\u{435}\u{434}\u{43D}\u{456}\u{439}`,selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C}, \u{449}\u{43E}\u{431} \u{43F}\u{43E}\u{447}\u{430}\u{442}\u{438} \u{432}\u{438}\u{431}\u{456}\u{440} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}\u{443} \u{434}\u{430}\u{442}`,todayDate:e=>`\u{421}\u{44C}\u{43E}\u{433}\u{43E}\u{434}\u{43D}\u{456}, ${e.date}`,todayDateSelected:e=>`\u{421}\u{44C}\u{43E}\u{433}\u{43E}\u{434}\u{43D}\u{456}, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} \u{81F3} ${e.endDate}`,dateSelected:e=>`\u{5DF2}\u{9009}\u{62E9} ${e.date}`,finishRangeSelectionPrompt:`\u{5355}\u{51FB}\u{4EE5}\u{5B8C}\u{6210}\u{9009}\u{62E9}\u{65E5}\u{671F}\u{8303}\u{56F4}`,maximumDate:`\u{6700}\u{540E}\u{4E00}\u{4E2A}\u{53EF}\u{7528}\u{65E5}\u{671F}`,minimumDate:`\u{7B2C}\u{4E00}\u{4E2A}\u{53EF}\u{7528}\u{65E5}\u{671F}`,next:`\u{4E0B}\u{4E00}\u{9875}`,previous:`\u{4E0A}\u{4E00}\u{9875}`,selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.dateRange}`,startRangeSelectionPrompt:`\u{5355}\u{51FB}\u{4EE5}\u{5F00}\u{59CB}\u{9009}\u{62E9}\u{65E5}\u{671F}\u{8303}\u{56F4}`,todayDate:e=>`\u{4ECA}\u{5929}\u{FF0C}\u{5373} ${e.date}`,todayDateSelected:e=>`\u{5DF2}\u{9009}\u{62E9}\u{4ECA}\u{5929}\u{FF0C}\u{5373} ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} \u{81F3} ${e.endDate}`,dateSelected:e=>`\u{5DF2}\u{9078}\u{53D6} ${e.date}`,finishRangeSelectionPrompt:`\u{6309}\u{4E00}\u{4E0B}\u{4EE5}\u{5B8C}\u{6210}\u{9078}\u{53D6}\u{65E5}\u{671F}\u{7BC4}\u{570D}`,maximumDate:`\u{6700}\u{5F8C}\u{4E00}\u{500B}\u{53EF}\u{7528}\u{65E5}\u{671F}`,minimumDate:`\u{7B2C}\u{4E00}\u{500B}\u{53EF}\u{7528}\u{65E5}\u{671F}`,next:`\u{4E0B}\u{4E00}\u{9801}`,previous:`\u{4E0A}\u{4E00}\u{9801}`,selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.dateRange}`,startRangeSelectionPrompt:`\u{6309}\u{4E00}\u{4E0B}\u{4EE5}\u{958B}\u{59CB}\u{9078}\u{53D6}\u{65E5}\u{671F}\u{7BC4}\u{570D}`,todayDate:e=>`\u{4ECA}\u{5929}\u{FF0C}${e.date}`,todayDateSelected:e=>`\u{5DF2}\u{9078}\u{53D6}\u{4ECA}\u{5929}\u{FF0C}${e.date}`}};let nb=Symbol.for("react-aria.i18n.locale"),ny=Symbol.for("react-aria.i18n.strings");class nv{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){var r;if(t[e])return t[e];let a=(r=e,Intl.Locale?new Intl.Locale(r).language:r.split("-")[0]);if(t[a])return t[a];for(let e in t)if(e.startsWith(a+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[nb];if(void 0===s){let e=window[ny];if(!e)return null;for(let n in s={},e)s[n]=new nv({[t]:e[n]},t)}let n=null==s?void 0:s[e];if(!n)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}}let nA=new Map,n$=new Map;class nk{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let a=this.locale+":"+n,o=nA.get(a);return o||(o=new Intl.PluralRules(this.locale,{type:n}),nA.set(a,o)),"function"==typeof(r=t[o.select(e)]||t.other)?r():r}number(e){let t=n$.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),n$.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}let nx=new WeakMap;function nC(e,t){let n;return t&&nv.getGlobalDictionaryForPackage(t)||((n=nx.get(e))||(n=new nv(e),nx.set(e,n)),n)}function nw(e,t){let{locale:n}=eA(),r=nC(e,t);return(0,v.useMemo)(()=>new nk(n,r),[n,r])}let nE=new Map;class nD{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==nP&&(nP="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),nP&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=nB(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(e=>"hour"===e.type).value,10),a=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(e=>"hour"===e.type).value,10);if(0===r&&23===a)return"h23";if(24===r&&23===a)return"h24";if(0===r&&11===a)return"h11";if(12===r&&11===a)return"h12";throw Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=nB(e,t),this.options=t}}let nS={true:{ja:"h11"},false:{}};function nB(e,t={}){if("boolean"==typeof t.hour12&&(null==nz&&(nz="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),nz)){let n=nS[String((t={...t}).hour12)][e.split("-")[0]],r=t.hour12?"h12":"h23";t.hourCycle=null!=n?n:r,delete t.hour12}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(nE.has(n))return nE.get(n);let r=new Intl.DateTimeFormat(e,t);return nE.set(n,r),r}let nz=null,nP=null;function nT(e,t){let n=(0,v.useRef)(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function nM(e){e=nT(null!=e?e:{},nO);let{locale:t}=eA();return(0,v.useMemo)(()=>new nD(t,e),[t,e])}function nO(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}function nF(e){return e&&e.__esModule?e.default:e}let nI=new WeakMap;function nN(e){return(null==e?void 0:e.calendar.identifier)==="gregory"&&"BC"===e.era?"short":void 0}function nj(e,t,n,r){let a=nw(nF(ng),"@react-aria/calendar"),o=nN(e)||nN(t),i=nM({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),s=nM({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return(0,v.useMemo)(()=>{if((0,X.ro)(e,(0,X.wH)(e))){let o=e,s=t;if(e.calendar.getFormattableMonth&&(o=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(s=t.calendar.getFormattableMonth(t)),(0,X.ro)(t,(0,X.p9)(e)))return i.format(o.toDate(n));if((0,X.ro)(t,(0,X.p9)(t)))return r?nR(i,a,o,s,n):i.formatRange(o.toDate(n),s.toDate(n))}return r?nR(s,a,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,i,s,a,n,r])}function nR(e,t,n,r,a){let o=e.formatRangeToParts(n.toDate(a),r.toDate(a)),i=-1;for(let e=0;e<o.length;e++){let t=o[e];if("shared"===t.source&&"literal"===t.type)i=e;else if("endRange"===t.source)break}let s="",l="";for(let e=0;e<o.length;e++)e<i?s+=o[e].value:e>i&&(l+=o[e].value);return t.format("dateRange",{startDate:s,endDate:l})}function nL(e,t){let n=(0,v.useRef)(!0),r=(0,v.useRef)(null);(0,v.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,v.useEffect)(()=>{let a=r.current;n.current?n.current=!1:(!a||t.some((e,t)=>!Object.is(e,a[t])))&&e(),r.current=t},t)}function nV(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=eB(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),r||a||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function nH(e,t){var n,r;let a,o,i,s,l,c=nw((n=ng)&&n.__esModule?n.default:n,"@react-aria/calendar"),u=eZ(e),d=nj(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),p=nj(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);nL(()=>{t.isFocused||eH(p)},[p]);let f=(i=nw(nF(ng),"@react-aria/calendar"),"highlightedRange"in t?{start:a,end:o}=t.highlightedRange||{}:a=o=null!=(r=t.value)?r:void 0,s=nM({weekday:"long",month:"long",year:"numeric",day:"numeric",era:nN(a)||nN(o),timeZone:t.timeZone}),l="anchorDate"in t?t.anchorDate:null,(0,v.useMemo)(()=>{if(!l&&a&&o)if((0,X.ro)(a,o)){let e=s.format(a.toDate(t.timeZone));return i.format("selectedDateDescription",{date:e})}else{let e=nR(s,i,a,o,t.timeZone);return i.format("selectedRangeDescription",{dateRange:e})}return""},[a,o,l,t.timeZone,i,s]));nL(()=>{f&&eH(f,"polite",4e3)},[f]);let m=ez([!!e.errorMessage,e.isInvalid,e.validationState]);nI.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:m,selectedDateDescription:f});let[h,g]=(0,v.useState)(!1),b=e.isDisabled||t.isNextVisibleRangeInvalid();b&&h&&(g(!1),t.setFocused(!0));let[y,A]=(0,v.useState)(!1),$=e.isDisabled||t.isPreviousVisibleRangeInvalid();return $&&y&&(A(!1),t.setFocused(!0)),{calendarProps:eT(u,nV({id:e.id,"aria-label":[e["aria-label"],p].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":c.format("next"),isDisabled:b,onFocusChange:g},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":c.format("previous"),isDisabled:$,onFocusChange:A},errorMessageProps:{id:m},title:d}}let nG={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function nU(e={}){let{style:t,isFocusable:n}=e,[r,a]=(0,v.useState)(!1),{focusWithinProps:o}=nr({isDisabled:!n,onFocusWithinChange:e=>a(e)}),i=(0,v.useMemo)(()=>r?t:t?{...nG,...t}:nG,[r]);return{visuallyHiddenProps:{...o,style:i}}}function nq(e){let{children:t,elementType:n="div",isFocusable:r,style:a,...o}=e,{visuallyHiddenProps:i}=nU(e);return v.createElement(n,eT(o,i),t)}function nW(e,t,n,r){let a=eE(n),o=null==n;(0,v.useEffect)(()=>{if(o||!e.current)return;let n=e.current;return n.addEventListener(t,a,r),()=>{n.removeEventListener(t,a,r)}},[e,t,r,o,a])}let nK=0,nY=new Map;function nJ(e){let[t,n]=(0,v.useState)();return eC(()=>{if(!e)return;let t=nY.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${nK++}`;n(r);let a=document.createElement("div");a.id=r,a.style.display="none",a.textContent=e,document.body.appendChild(a),t={refCount:0,element:a},nY.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),nY.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function nZ(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function nX(e,t,n){let r="left"===n?"offsetLeft":"offsetTop",a=0;for(;t.offsetParent&&(a+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){a-=e[r];break}t=t.offsetParent}return a}function nQ(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(i).overflow)for(let t of function(e,t){let n=[];for(;e&&e!==document.documentElement;)nZ(e,void 0)&&n.push(e),e=e.parentElement;return n}(e))!function(e,t){let n=nX(e,t,"left"),r=nX(e,t,"top"),a=t.offsetWidth,o=t.offsetHeight,i=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c,scrollPaddingTop:u,scrollPaddingRight:d,scrollPaddingBottom:p,scrollPaddingLeft:f}=getComputedStyle(e),m=i+parseInt(c,10),h=s+parseInt(l,10),g=m+e.clientWidth,b=h+e.clientHeight,y=parseInt(u,10)||0,v=parseInt(p,10)||0,A=parseInt(d,10)||0,$=parseInt(f,10)||0;n<=i+$?i=n-parseInt(c,10)-$:n+a>g-A&&(i+=n+a-g+A),r<=h+y?s=r-parseInt(l,10)-y:r+o>b-v&&(s+=r+o-b+v),e.scrollLeft=i,e.scrollTop=s}(t,e);else{var n,r,a,o;let{left:i,top:s}=e.getBoundingClientRect();null==e||null==(n=e.scrollIntoView)||n.call(e,{block:"nearest"});let{left:l,top:c}=e.getBoundingClientRect();(Math.abs(i-l)>1||Math.abs(s-c)>1)&&(null==t||null==(a=t.containingElement)||null==(r=a.scrollIntoView)||r.call(a,{block:"center",inline:"center"}),null==(o=e.scrollIntoView)||o.call(e,{block:"nearest"}))}}}function n0(e,t){let n=e;for(nZ(n,t)&&(n=n.parentElement);n&&!nZ(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function n1(e,t,n){return null!=t&&0>e.compare(t)||null!=n&&e.compare(n)>0}function n2(e,t,n,r,a){let o={};for(let e in t)o[e]=Math.floor(t[e]/2),o[e]>0&&t[e]%2==0&&o[e]--;let i=n3(e,t,n).subtract(o);return n5(e,i,t,n,r,a)}function n3(e,t,n,r,a){let o=e;return t.years?o=(0,X.D)(e):t.months?o=(0,X.wH)(e):t.weeks&&(o=(0,X.kq)(e,n)),n5(e,o,t,n,r,a)}function n4(e,t,n,r,a){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let i=n3(e,t,n).subtract(o);return n5(e,i,t,n,r,a)}function n5(e,t,n,r,a,o){if(a&&e.compare(a)>=0){let e=(0,X.ZI)(t,n3((0,Z.gw)(a),n,r));e&&(t=e)}if(o&&0>=e.compare(o)){let e=(0,X.Py)(t,n4((0,Z.gw)(o),n,r));e&&(t=e)}return t}function n6(e,t,n){if(t){let n=(0,X.ZI)(e,(0,Z.gw)(t));n&&(e=n)}if(n){let t=(0,X.Py)(e,(0,Z.gw)(n));t&&(e=t)}return e}function n7(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}var n8=n(12748);function n9(e,t,n){let[r,a]=(0,v.useState)(e||t),o=(0,v.useRef)(void 0!==e),i=void 0!==e;(0,v.useEffect)(()=>{o.current,o.current=i},[i]);let s=i?e:r,l=(0,v.useCallback)((e,...t)=>{let r=(e,...t)=>{n&&!Object.is(s,e)&&n(e,...t),i||(s=e)};"function"==typeof e?a((n,...a)=>{let o=e(i?s:n,...a);return(r(o,...t),i)?n:o}):(i||a(e),r(e,...t))},[i,s,n]);return[s,l]}function re(e){var t,n,r;let a=(0,v.useMemo)(()=>new nD(e.locale),[e.locale]),o=(0,v.useMemo)(()=>a.resolvedOptions(),[a]),{locale:i,createCalendar:s,visibleDuration:l={months:1},minValue:c,maxValue:u,selectionAlignment:d,isDateUnavailable:p,pageBehavior:f="visible",firstDayOfWeek:m}=e,h=(0,v.useMemo)(()=>s(o.calendar),[s,o.calendar]),[g,b]=n9(e.value,null!=(t=e.defaultValue)?t:null,e.onChange),y=(0,v.useMemo)(()=>g?(0,Z.yP)((0,Z.gw)(g),h):null,[g,h]),A=(0,v.useMemo)(()=>g&&"timeZone"in g?g.timeZone:o.timeZone,[g,o.timeZone]),[$,k]=n9((0,v.useMemo)(()=>e.focusedValue?n6((0,Z.yP)((0,Z.gw)(e.focusedValue),h),c,u):void 0,[e.focusedValue,h,c,u]),(0,v.useMemo)(()=>n6(e.defaultFocusedValue?(0,Z.yP)((0,Z.gw)(e.defaultFocusedValue),h):y||(0,Z.yP)((0,X.Ec)(A),h),c,u),[e.defaultFocusedValue,y,A,h,c,u]),e.onFocusChange),[x,C]=(0,v.useState)(()=>{switch(d){case"start":return n3($,l,i,c,u);case"end":return n4($,l,i,c,u);default:return n2($,l,i,c,u)}}),[w,E]=(0,v.useState)(e.autoFocus||!1),D=(0,v.useMemo)(()=>{let e={...l};return e.days?e.days--:e.days=-1,x.add(e)},[x,l]),[S,B]=(0,v.useState)(h);if(!(0,X.Jg)(h,S)){let e=(0,Z.yP)($,h);C(n2(e,l,i,c,u)),k(e),B(h)}function z(e){k(e=n6(e,c,u))}function P(t){if(!e.isDisabled&&!e.isReadOnly){let e=t;if(null===e)return void b(null);(e=n7(e=n6(e,c,u),x,p))&&(e=(0,Z.yP)(e,(null==g?void 0:g.calendar)||new(0,n8.FG)),g&&"hour"in g?b(g.set(e)):b(e))}}n1($,c,u)?k(n6($,c,u)):0>$.compare(x)?C(n4($,l,i,c,u)):$.compare(D)>0&&C(n3($,l,i,c,u));let T=(0,v.useMemo)(()=>!!y&&(!!(p&&p(y))||n1(y,c,u)),[y,p,c,u]),M=e.isInvalid||"invalid"===e.validationState||T,O=(0,v.useMemo)(()=>"visible"===f?l:rt(l),[f,l]);return{isDisabled:null!=(n=e.isDisabled)&&n,isReadOnly:null!=(r=e.isReadOnly)&&r,value:y,setValue:P,visibleRange:{start:x,end:D},minValue:c,maxValue:u,focusedDate:$,timeZone:A,validationState:M?"invalid":null,isValueInvalid:M,setFocusedDate(e){z(e),E(!0)},focusNextDay(){z($.add({days:1}))},focusPreviousDay(){z($.subtract({days:1}))},focusNextRow(){l.days?this.focusNextPage():(l.weeks||l.months||l.years)&&z($.add({weeks:1}))},focusPreviousRow(){l.days?this.focusPreviousPage():(l.weeks||l.months||l.years)&&z($.subtract({weeks:1}))},focusNextPage(){let e=x.add(O);k(n6($.add(O),c,u)),C(n3(n5($,e,O,i,c,u),O,i))},focusPreviousPage(){let e=x.subtract(O);k(n6($.subtract(O),c,u)),C(n3(n5($,e,O,i,c,u),O,i))},focusSectionStart(){l.days?z(x):l.weeks?z((0,X.kq)($,i)):(l.months||l.years)&&z((0,X.wH)($))},focusSectionEnd(){l.days?z(D):l.weeks?z((0,X.$I)($,i)):(l.months||l.years)&&z((0,X.p9)($))},focusNextSection(e){e||l.days?l.days?this.focusNextPage():l.weeks?z($.add({months:1})):(l.months||l.years)&&z($.add({years:1})):z($.add(rt(l)))},focusPreviousSection(e){e||l.days?l.days?this.focusPreviousPage():l.weeks?z($.subtract({months:1})):(l.months||l.years)&&z($.subtract({years:1})):z($.subtract(rt(l)))},selectFocusedDate(){p&&p($)||P($)},selectDate(e){P(e)},isFocused:w,setFocused:E,isInvalid:e=>n1(e,c,u),isSelected(e){return null!=y&&(0,X.ro)(e,y)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>w&&$&&(0,X.ro)(e,$),isCellDisabled(t){return e.isDisabled||0>t.compare(x)||t.compare(D)>0||this.isInvalid(t)},isCellUnavailable:t=>!!e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=x.subtract({days:1});return(0,X.ro)(e,x)||this.isInvalid(e)},isNextVisibleRangeInvalid(){let e=D.add({days:1});return(0,X.ro)(e,D)||this.isInvalid(e)},getDatesInWeek(e,t=x){let n=t.add({weeks:e}),r=[];n=(0,X.kq)(n,i,m);let a=(0,X.SJ)(n,i,m);for(let e=0;e<a;e++)r.push(null);for(;r.length<7;){r.push(n);let e=n.add({days:1});if((0,X.ro)(n,e))break;n=e}for(;r.length<7;)r.push(null);return r}}}function rt(e){let t={...e};for(let n in e)t[n]=1;return t}function rn(e,t){return e&&t?(0>t.compare(e)&&([e,t]=[t,e]),{start:(0,Z.gw)(e),end:(0,Z.gw)(t)}):null}function rr(e,t){return(e=(0,Z.yP)(e,(null==t?void 0:t.calendar)||new(0,n8.FG)),t&&"hour"in t)?t.set(e):e}function ra(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:0>=r.compare(t.visibleRange.end))&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}let ro=(0,v.createContext)(null),ri=(0,v.createContext)(null),rs=(0,v.createContext)(null),rl=(0,v.createContext)(null),rc=(0,v.forwardRef)(function(e,t){[e,t]=eN(e,t,ro);let{locale:n}=eA(),r=re({...e,locale:n,createCalendar:e.createCalendar||J.d}),{calendarProps:a,prevButtonProps:o,nextButtonProps:i,errorMessageProps:s,title:l}=nH(e,r),c=eF({...e,values:{state:r,isDisabled:e.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-Calendar"}),u=eZ(e,{global:!0});return v.createElement("div",{...eT(u,c,a),ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},v.createElement(eO,{values:[[np,{slots:{previous:o,next:i}}],[nm,{"aria-hidden":!0,level:2,children:l}],[rs,r],[ro,e],[nh,{slots:{errorMessage:s}}]]},v.createElement(nq,null,v.createElement("h2",null,a["aria-label"])),c.children,v.createElement(nq,null,v.createElement("button",{"aria-label":i["aria-label"],disabled:i.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),ru=(0,v.forwardRef)(function(e,t){var n,r;let a,o,i;[e,t]=eN(e,t,ri);let{locale:s}=eA(),l=function(e){let{value:t,defaultValue:n,onChange:r,createCalendar:a,locale:o,visibleDuration:i={months:1},minValue:s,maxValue:l,...c}=e,[u,d]=n9(t,n||null,r),[p,f]=(0,v.useState)(null),m="center";if(u&&u.start&&u.end){let e=n2((0,Z.gw)(u.start),i,o,s,l).add(i).subtract({days:1});u.end.compare(e)>0&&(m="start")}let h=(0,v.useRef)(null),[g,b]=(0,v.useState)(null),y=(0,v.useMemo)(()=>(0,X.ZI)(s,null==g?void 0:g.start),[s,g]),A=(0,v.useMemo)(()=>(0,X.Py)(l,null==g?void 0:g.end),[l,g]),$=re({...c,value:u&&u.start,createCalendar:a,locale:o,visibleDuration:i,minValue:y,maxValue:A,selectionAlignment:m}),k=t=>{t&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(h.current={start:ra(t,$,-1),end:ra(t,$,1)},b(h.current)):(h.current=null,b(null))},[x,C]=(0,v.useState)($.visibleRange);(0,X.NV)($.visibleRange.start,x.start)&&(0,X.NV)($.visibleRange.end,x.end)||(k(p),C($.visibleRange));let w=e=>{e?(f(e),k(e)):(f(null),k(null))},E=p?rn(p,$.focusedDate):u&&rn(u.start,u.end),D=t=>{if(e.isReadOnly)return;let n=n7(n6(t,y,A),$.visibleRange.start,e.isDateUnavailable);if(n)if(p){let e=rn(p,n);e&&d({start:rr(e.start,null==u?void 0:u.start),end:rr(e.end,null==u?void 0:u.end)}),w(null)}else w(n)},[S,B]=(0,v.useState)(!1),{isDateUnavailable:z}=e,P=(0,v.useMemo)(()=>!!u&&!p&&(!!(z&&(z(u.start)||z(u.end)))||n1(u.start,s,l)||n1(u.end,s,l)),[z,u,p,s,l]),T=e.isInvalid||"invalid"===e.validationState||P;return{...$,value:u,setValue:d,anchorDate:p,setAnchorDate:w,highlightedRange:E,validationState:T?"invalid":null,isValueInvalid:T,selectFocusedDate(){D($.focusedDate)},selectDate:D,highlightDate(e){p&&$.setFocusedDate(e)},isSelected:e=>!!(E&&e.compare(E.start)>=0&&0>=e.compare(E.end)&&!$.isCellDisabled(e)&&!$.isCellUnavailable(e)),isInvalid(e){var t,n;return $.isInvalid(e)||n1(e,null==(t=h.current)?void 0:t.start,null==(n=h.current)?void 0:n.end)},isDragging:S,setDragging:B}}({...e,locale:s,createCalendar:e.createCalendar||J.d}),{calendarProps:c,prevButtonProps:u,nextButtonProps:d,errorMessageProps:p,title:f}=(n=e,r=t,a=nH(n,l),o=(0,v.useRef)(!1),nW(i=(0,v.useRef)("undefined"!=typeof window?window:null),"pointerdown",e=>{o.current=0===e.width&&0===e.height}),nW(i,"pointerup",e=>{if(o.current){o.current=!1;return}if(l.setDragging(!1),!l.anchorDate)return;let t=e.target;r.current&&r.current.contains(document.activeElement)&&(!r.current.contains(t)||!t.closest('button, [role="button"]'))&&l.selectFocusedDate()}),a.calendarProps.onBlur=e=>{r.current&&(e.relatedTarget&&r.current.contains(e.relatedTarget)||!l.anchorDate||l.selectFocusedDate())},nW(r,"touchmove",e=>{l.isDragging&&e.preventDefault()},{passive:!1,capture:!0}),a),m=eF({...e,values:{state:l,isDisabled:e.isDisabled||!1,isInvalid:l.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),h=eZ(e,{global:!0});return v.createElement("div",{...eT(m,h,c),ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":l.isValueInvalid||void 0},v.createElement(eO,{values:[[np,{slots:{previous:u,next:d}}],[nm,{"aria-hidden":!0,level:2,children:f}],[rl,l],[ri,e],[nh,{slots:{errorMessage:p}}]]},v.createElement(nq,null,v.createElement("h2",null,c["aria-label"])),m.children,v.createElement(nq,null,v.createElement("button",{"aria-label":d["aria-label"],disabled:d.isDisabled,onClick:()=>l.focusNextPage(),tabIndex:-1}))))}),rd=(0,v.createContext)(null),rp=(0,v.forwardRef)(function(e,t){var n,r;let a=(0,v.useContext)(rs),o=(0,v.useContext)(rl),i=eI(ro),s=eI(ri),l=null!=a?a:o,c=l.visibleRange.start;e.offset&&(c=c.add(e.offset));let u=null!=(n=null==i?void 0:i.firstDayOfWeek)?n:null==s?void 0:s.firstDayOfWeek,{gridProps:d,headerProps:p,weekDays:f,weeksInMonth:m}=function(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:a}=e,{direction:o}=eA(),i=nj(n,r,t.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=nI.get(t),c=nV({"aria-label":[s,i].filter(Boolean).join(", "),"aria-labelledby":l}),u=nM({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=eA(),p=(0,v.useMemo)(()=>{let e=(0,X.kq)((0,X.Ec)(t.timeZone),d,a);return[...Array(7).keys()].map(n=>{let r=e.add({days:n}).toDate(t.timeZone);return u.format(r)})},[d,t.timeZone,u,a]),f=(0,X.RZ)(n,d,a);return{gridProps:eT(c,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),t.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),t.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),t.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===o?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===o?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(e.preventDefault(),t.setAnchorDate(null))}},onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:p,weeksInMonth:f}}({startDate:c,endDate:(0,X.p9)(c),weekdayStyle:e.weekdayStyle,firstDayOfWeek:u},l),h=eZ(e,{global:!0});return v.createElement(rd.Provider,{value:{headerProps:p,weekDays:f,startDate:c,weeksInMonth:m}},v.createElement("table",{...eT(h,d),ref:t,style:e.style,cellPadding:0,className:null!=(r=e.className)?r:"react-aria-CalendarGrid"},"function"!=typeof e.children?e.children:v.createElement(v.Fragment,null,v.createElement(rf,null,e=>v.createElement(rm,null,e)),v.createElement(rh,null,e.children))))}),rf=(0,v.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e,{headerProps:o,weekDays:i}=(0,v.useContext)(rd),s=eZ(e,{global:!0});return v.createElement("thead",{...eT(s,o),ref:t,style:r,className:a||"react-aria-CalendarGridHeader"},v.createElement("tr",null,i.map((e,t)=>v.cloneElement(n(e),{key:t}))))}),rm=(0,v.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e,o=eZ(e,{global:!0});return v.createElement("th",{...o,ref:t,style:r,className:a||"react-aria-CalendarHeaderCell"},n)}),rh=(0,v.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e,o=(0,v.useContext)(rs),i=(0,v.useContext)(rl),s=null!=o?o:i,{startDate:l,weeksInMonth:c}=(0,v.useContext)(rd),u=eZ(e,{global:!0});return v.createElement("tbody",{...u,ref:t,style:r,className:a||"react-aria-CalendarGridBody"},[...Array(c).keys()].map(e=>v.createElement("tr",{key:e},s.getDatesInWeek(e,l).map((e,t)=>e?v.cloneElement(n(e),{key:t}):v.createElement("td",{key:t})))))}),r_=(0,v.forwardRef)(function({date:e,...t},n){var r;let a=(0,v.useContext)(rs),o=(0,v.useContext)(rl),i=null!=a?a:o,{startDate:s}=null!=(r=(0,v.useContext)(rd))?r:{startDate:i.visibleRange.start},l=!(0,X.tF)(s,e),c=(0,X.cK)(e,i.timeZone),u=(0,v.useRef)(null),{cellProps:d,buttonProps:p,...f}=function(e,t,n){var r;let a,{date:o,isDisabled:i}=e,{errorMessageId:s,selectedDateDescription:l}=nI.get(t),c=nw((r=ng)&&r.__esModule?r.default:r,"@react-aria/calendar"),u=nM({weekday:"long",day:"numeric",month:"long",year:"numeric",era:nN(o),timeZone:t.timeZone}),d=t.isSelected(o),p=t.isCellFocused(o)&&!e.isOutsideMonth;i=i||t.isCellDisabled(o);let f=t.isCellUnavailable(o),m=!i&&!f,h=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&o.compare(t.highlightedRange.start)>=0&&0>=o.compare(t.highlightedRange.end):t.value&&(0,X.ro)(t.value,o));h&&(d=!0),o=nT(o,X.NV);let g=(0,v.useMemo)(()=>o.toDate(t.timeZone),[o,t.timeZone]),b=(0,X.cK)(o,t.timeZone),y=(0,v.useMemo)(()=>{let e="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&((0,X.ro)(o,t.value.start)||(0,X.ro)(o,t.value.end))&&(e=l+", "),e+=u.format(g),b?e=c.format(d?"todayDateSelected":"todayDate",{date:e}):d&&(e=c.format("dateSelected",{date:e})),t.minValue&&(0,X.ro)(o,t.minValue)?e+=", "+c.format("minimumDate"):t.maxValue&&(0,X.ro)(o,t.maxValue)&&(e+=", "+c.format("maximumDate")),e},[u,g,c,d,b,o,t,l]),A="";"anchorDate"in t&&p&&!t.isReadOnly&&m&&(A=t.anchorDate?c.format("finishRangeSelectionPrompt"):c.format("startRangeSelectionPrompt"));let $=nJ(A),k=(0,v.useRef)(!1),x=(0,v.useRef)(!1),C=(0,v.useRef)(void 0),{pressProps:w,isPressed:E}=tj({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(e){if(t.isReadOnly)return void t.setFocusedDate(o);if("highlightedRange"in t&&!t.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(t.highlightedRange&&!h){if((0,X.ro)(o,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(o),t.setDragging(!0),x.current=!0;return}else if((0,X.ro)(o,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(o),t.setDragging(!0),x.current=!0;return}}let n=()=>{t.setDragging(!0),C.current=void 0,t.selectDate(o),t.setFocusedDate(o),k.current=!0};"touch"===e.pointerType?C.current=setTimeout(n,200):n()}},onPressEnd(){x.current=!1,k.current=!1,clearTimeout(C.current),C.current=void 0},onPress(){"anchorDate"in t||t.isReadOnly||(t.selectDate(o),t.setFocusedDate(o))},onPressUp(e){if(!t.isReadOnly&&("anchorDate"in t&&C.current&&(t.selectDate(o),t.setFocusedDate(o)),"anchorDate"in t))if(x.current)t.setAnchorDate(o);else if(t.anchorDate&&!k.current)t.selectDate(o),t.setFocusedDate(o);else if("keyboard"!==e.pointerType||t.anchorDate)"virtual"===e.pointerType&&(t.selectDate(o),t.setFocusedDate(o));else{t.selectDate(o);let e=o.add({days:1});t.isInvalid(e)&&(e=o.subtract({days:1})),t.isInvalid(e)||t.setFocusedDate(e)}}});i||(a=(0,X.ro)(o,t.focusedDate)?0:-1),(0,v.useEffect)(()=>{p&&n.current&&(e8(n.current),"pointer"!==tq&&document.activeElement===n.current&&nQ(n.current,{containingElement:n0(n.current)}))},[p,n]);let D=nM({day:"numeric",timeZone:t.timeZone,calendar:o.calendar.identifier}),S=(0,v.useMemo)(()=>D.formatToParts(g).find(e=>"day"===e.type).value,[D,g]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":d||void 0,"aria-invalid":h||void 0},buttonProps:eT(w,{onFocus(){i||t.setFocusedDate(o)},tabIndex:a,role:"button","aria-disabled":!m||void 0,"aria-label":y,"aria-invalid":h||void 0,"aria-describedby":[h?s:void 0,$["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in t&&("touch"!==e.pointerType||t.isDragging)&&m&&t.highlightDate(o)},onPointerDown(e){"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId)},onContextMenu(e){e.preventDefault()}}),isPressed:E,isFocused:p,isSelected:d,isDisabled:i,isUnavailable:f,isOutsideVisibleRange:0>o.compare(t.visibleRange.start)||o.compare(t.visibleRange.end)>0,isInvalid:h,formattedDate:S}}({date:e,isOutsideMonth:l},i,u),{hoverProps:m,isHovered:h}=nc({...t,isDisabled:f.isDisabled}),{focusProps:g,isFocusVisible:b}=na();b&&(b=f.isFocused);let y=!1,A=!1;"highlightedRange"in i&&i.highlightedRange&&(y=(0,X.ro)(e,i.highlightedRange.start),A=(0,X.ro)(e,i.highlightedRange.end));let $=eF({...t,defaultChildren:f.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:e,isHovered:h,isOutsideMonth:l,isFocusVisible:b,isSelectionStart:y,isSelectionEnd:A,isToday:c,...f}}),k={"data-focused":f.isFocused||void 0,"data-hovered":h||void 0,"data-pressed":f.isPressed||void 0,"data-unavailable":f.isUnavailable||void 0,"data-disabled":f.isDisabled||void 0,"data-focus-visible":b||void 0,"data-outside-visible-range":f.isOutsideVisibleRange||void 0,"data-outside-month":l||void 0,"data-selected":f.isSelected||void 0,"data-selection-start":y||void 0,"data-selection-end":A||void 0,"data-invalid":f.isInvalid||void 0,"data-today":c||void 0},x=eZ(t,{global:!0});return v.createElement("td",{...d,ref:n},v.createElement("div",{...eT(x,p,g,m,k,$),ref:u}))}),rg=(0,v.createContext)({}),rb=(0,v.forwardRef)(function(e,t){var n,r;[e,t]=eN(e,t,rg);let{isDisabled:a,isInvalid:o,onHoverStart:i,onHoverChange:s,onHoverEnd:l,...c}=e,{hoverProps:u,isHovered:d}=nc({onHoverStart:i,onHoverChange:s,onHoverEnd:l,isDisabled:a}),{isFocused:p,isFocusVisible:f,focusProps:m}=na({within:!0});null!=a||(a=!!e["aria-disabled"]&&"false"!==e["aria-disabled"]),null!=o||(o=!!e["aria-invalid"]&&"false"!==e["aria-invalid"]);let h=eF({...e,values:{isHovered:d,isFocusWithin:p,isFocusVisible:f,isDisabled:a,isInvalid:o},defaultClassName:"react-aria-Group"});return v.createElement("div",{...eT(c,m,u),...h,ref:t,role:null!=(n=e.role)?n:"group",slot:null!=(r=e.slot)?r:void 0,"data-focus-within":p||void 0,"data-hovered":d||void 0,"data-focus-visible":f||void 0,"data-disabled":a||void 0,"data-invalid":o||void 0},h.children)}),ry=(0,v.createContext)({}),rv=nd(function(e,t){[e,t]=eN(e,t,ry);let{hoverProps:n,isHovered:r}=nc(e),{isFocused:a,isFocusVisible:o,focusProps:i}=na({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],l=eF({...e,values:{isHovered:r,isFocused:a,isFocusVisible:o,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return v.createElement("input",{...eT((e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...a}=e;return a})(e),i,n),...l,ref:t,"data-focused":a||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":o||void 0,"data-invalid":s||void 0})});var rA={};rA={"ar-AE":{calendar:`\u{627}\u{644}\u{62A}\u{642}\u{648}\u{64A}\u{645}`,day:`\u{64A}\u{648}\u{645}`,dayPeriod:`\u{635}/\u{645}`,endDate:`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{627}\u{644}\u{627}\u{646}\u{62A}\u{647}\u{627}\u{621}`,era:`\u{627}\u{644}\u{639}\u{635}\u{631}`,hour:`\u{627}\u{644}\u{633}\u{627}\u{639}\u{627}\u{62A}`,minute:`\u{627}\u{644}\u{62F}\u{642}\u{627}\u{626}\u{642}`,month:`\u{627}\u{644}\u{634}\u{647}\u{631}`,second:`\u{627}\u{644}\u{62B}\u{648}\u{627}\u{646}\u{64A}`,selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,selectedTimeDescription:e=>`\u{627}\u{644}\u{648}\u{642}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.time}`,startDate:`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{627}\u{644}\u{628}\u{62F}\u{621}`,timeZoneName:`\u{627}\u{644}\u{62A}\u{648}\u{642}\u{64A}\u{62A}`,weekday:`\u{627}\u{644}\u{64A}\u{648}\u{645}`,year:`\u{627}\u{644}\u{633}\u{646}\u{629}`},"bg-BG":{calendar:`\u{41A}\u{430}\u{43B}\u{435}\u{43D}\u{434}\u{430}\u{440}`,day:`\u{434}\u{435}\u{43D}`,dayPeriod:`\u{43F}\u{440}.\u{43E}\u{431}./\u{441}\u{43B}.\u{43E}\u{431}.`,endDate:`\u{41A}\u{440}\u{430}\u{439}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}`,era:`\u{435}\u{440}\u{430}`,hour:`\u{447}\u{430}\u{441}`,minute:`\u{43C}\u{438}\u{43D}\u{443}\u{442}\u{430}`,month:`\u{43C}\u{435}\u{441}\u{435}\u{446}`,second:`\u{441}\u{435}\u{43A}\u{443}\u{43D}\u{434}\u{430}`,selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{434}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{432}\u{440}\u{435}\u{43C}\u{435}: ${e.time}`,startDate:`\u{41D}\u{430}\u{447}\u{430}\u{43B}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}`,timeZoneName:`\u{447}\u{430}\u{441}\u{43E}\u{432}\u{430} \u{437}\u{43E}\u{43D}\u{430}`,weekday:`\u{434}\u{435}\u{43D} \u{43E}\u{442} \u{441}\u{435}\u{434}\u{43C}\u{438}\u{446}\u{430}\u{442}\u{430}`,year:`\u{433}\u{43E}\u{434}\u{438}\u{43D}\u{430}`},"cs-CZ":{calendar:`Kalend\xe1\u{159}`,day:"den",dayPeriod:`\u{10D}\xe1st dne`,endDate:`Kone\u{10D}n\xe9 datum`,era:`letopo\u{10D}et`,hour:"hodina",minute:"minuta",month:`m\u{11B}s\xedc`,second:"sekunda",selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.startDate} a\u{17E} ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xfd \u{10D}as: ${e.time}`,startDate:`Po\u{10D}\xe1te\u{10D}n\xed datum`,timeZoneName:`\u{10D}asov\xe9 p\xe1smo`,weekday:`den v t\xfddnu`,year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:`\xe6ra`,hour:"time",minute:"minut",month:`m\xe5ned`,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:`\xe5r`},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:`Tagesh\xe4lfte`,endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xe4hlte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:`\u{397}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BB}\u{3CC}\u{3B3}\u{3B9}\u{3BF}`,day:`\u{3B7}\u{3BC}\u{3AD}\u{3C1}\u{3B1}`,dayPeriod:`\u{3C0}.\u{3BC}./\u{3BC}.\u{3BC}.`,endDate:`\u{397}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1} \u{3BB}\u{3AE}\u{3BE}\u{3B7}\u{3C2}`,era:`\u{3C0}\u{3B5}\u{3C1}\u{3AF}\u{3BF}\u{3B4}\u{3BF}\u{3C2}`,hour:`\u{3CE}\u{3C1}\u{3B1}`,minute:`\u{3BB}\u{3B5}\u{3C0}\u{3C4}\u{3CC}`,month:`\u{3BC}\u{3AE}\u{3BD}\u{3B1}\u{3C2}`,second:`\u{3B4}\u{3B5}\u{3C5}\u{3C4}\u{3B5}\u{3C1}\u{3CC}\u{3BB}\u{3B5}\u{3C0}\u{3C4}\u{3BF}`,selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,selectedTimeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}: ${e.time}`,startDate:`\u{397}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1} \u{3AD}\u{3BD}\u{3B1}\u{3C1}\u{3BE}\u{3B7}\u{3C2}`,timeZoneName:`\u{3B6}\u{3CE}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}\u{3C2}`,weekday:`\u{3BA}\u{3B1}\u{3B8}\u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3B9}\u{3BD}\u{3AE}`,year:`\u{3AD}\u{3C4}\u{3BF}\u{3C2}`},"en-US":{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}`},"es-ES":{calendar:"Calendario",day:`d\xeda`,dayPeriod:`a.\xa0m./p.\xa0m.`,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\xeda de la semana`,year:`a\xf1o`},"et-EE":{calendar:"Kalender",day:`p\xe4ev`,dayPeriod:`enne/p\xe4rast l\xf5unat`,endDate:`L\xf5ppkuup\xe4ev`,era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:`Alguskuup\xe4ev`,timeZoneName:`ajav\xf6\xf6nd`,weekday:`n\xe4dalap\xe4ev`,year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:`p\xe4iv\xe4`,dayPeriod:"vuorokaudenaika",endDate:`P\xe4\xe4ttymisp\xe4iv\xe4`,era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.startDate} \u{2013} ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:`Alkamisp\xe4iv\xe4`,timeZoneName:`aikavy\xf6hyke`,weekday:`viikonp\xe4iv\xe4`,year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:`\xe8re`,hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xa0: ${e.time}`,startDate:`Date de d\xe9but`,timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:`ann\xe9e`},"he-IL":{calendar:`\u{5DC}\u{5D5}\u{5D7} \u{5E9}\u{5E0}\u{5D4}`,day:`\u{5D9}\u{5D5}\u{5DD}`,dayPeriod:`\u{5DC}\u{5E4}\u{5E0}\u{5D4}\u{5F4}\u{5E6}/\u{5D0}\u{5D7}\u{5D4}\u{5F4}\u{5E6}`,endDate:`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E1}\u{5D9}\u{5D5}\u{5DD}`,era:`\u{5EA}\u{5E7}\u{5D5}\u{5E4}\u{5D4}`,hour:`\u{5E9}\u{5E2}\u{5D4}`,minute:`\u{5D3}\u{5E7}\u{5D4}`,month:`\u{5D7}\u{5D5}\u{5D3}\u{5E9}`,second:`\u{5E9}\u{5E0}\u{5D9}\u{5D9}\u{5D4}`,selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,selectedTimeDescription:e=>`\u{5D6}\u{5DE}\u{5DF} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.time}`,startDate:`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5D4}\u{5EA}\u{5D7}\u{5DC}\u{5D4}`,timeZoneName:`\u{5D0}\u{5D6}\u{5D5}\u{5E8} \u{5D6}\u{5DE}\u{5DF}`,weekday:`\u{5D9}\u{5D5}\u{5DD} \u{5D1}\u{5E9}\u{5D1}\u{5D5}\u{5E2}`,year:`\u{5E9}\u{5E0}\u{5D4}`},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:`Datum zavr\u{161}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\u{10D}etka`,timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:`Napt\xe1r`,day:"nap",dayPeriod:"napszak",endDate:`Befejez\u{151} d\xe1tum`,era:`\xe9ra`,hour:`\xf3ra`,minute:"perc",month:`h\xf3nap`,second:`m\xe1sodperc`,selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.startDate}\u{2013}${e.endDate}`,selectedTimeDescription:e=>`Kijel\xf6lt id\u{151}: ${e.time}`,startDate:`Kezd\u{151} d\xe1tum`,timeZoneName:`id\u{151}z\xf3na`,weekday:`h\xe9t napja`,year:`\xe9v`},"it-IT":{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"},"ja-JP":{calendar:`\u{30AB}\u{30EC}\u{30F3}\u{30C0}\u{30FC}`,day:`\u{65E5}`,dayPeriod:`\u{5348}\u{524D}/\u{5348}\u{5F8C}`,endDate:`\u{7D42}\u{4E86}\u{65E5}`,era:`\u{6642}\u{4EE3}`,hour:`\u{6642}`,minute:`\u{5206}`,month:`\u{6708}`,second:`\u{79D2}`,selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.startDate} \u{304B}\u{3089} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{6642}\u{9593} : ${e.time}`,startDate:`\u{958B}\u{59CB}\u{65E5}`,timeZoneName:`\u{30BF}\u{30A4}\u{30E0}\u{30BE}\u{30FC}\u{30F3}`,weekday:`\u{66DC}\u{65E5}`,year:`\u{5E74}`},"ko-KR":{calendar:`\u{B2EC}\u{B825}`,day:`\u{C77C}`,dayPeriod:`\u{C624}\u{C804}/\u{C624}\u{D6C4}`,endDate:`\u{C885}\u{B8CC}\u{C77C}`,era:`\u{C5F0}\u{D638}`,hour:`\u{C2DC}`,minute:`\u{BD84}`,month:`\u{C6D4}`,second:`\u{CD08}`,selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\u{C120}\u{D0DD} \u{C2DC}\u{AC04}: ${e.time}`,startDate:`\u{C2DC}\u{C791}\u{C77C}`,timeZoneName:`\u{C2DC}\u{AC04}\u{B300}`,weekday:`\u{C694}\u{C77C}`,year:`\u{B144}`},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:`iki piet\u{173} / po piet\u{173}`,endDate:"Pabaigos data",era:"era",hour:"valanda",minute:`minut\u{117}`,month:`m\u{117}nuo`,second:`sekund\u{117}`,selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:`Prad\u{17E}ios data`,timeZoneName:"laiko juosta",weekday:`savait\u{117}s diena`,year:"metai"},"lv-LV":{calendar:`Kalend\u{101}rs`,day:"diena",dayPeriod:`priek\u{161}pusdien\u{101}/p\u{113}cpusdien\u{101}`,endDate:"Beigu datums",era:`\u{113}ra`,hour:"stundas",minute:`min\u{16B}tes`,month:`m\u{113}nesis`,second:"sekundes",selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: no ${e.startDate} l\u{12B}dz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u{12B}tais laiks: ${e.time}`,startDate:`S\u{101}kuma datums`,timeZoneName:"laika josla",weekday:`ned\u{113}\u{13C}as diena`,year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:`m\xe5ned`,second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:`\xe5r`},"nl-NL":{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"},"pl-PL":{calendar:"Kalendarz",day:`dzie\u{144}`,dayPeriod:`rano / po po\u{142}udniu / wieczorem`,endDate:`Data ko\u{144}cowa`,era:"era",hour:"godzina",minute:"minuta",month:`miesi\u{105}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\u{105}tkowa`,timeZoneName:"strefa czasowa",weekday:`dzie\u{144} tygodnia`,year:"rok"},"pt-BR":{calendar:`Calend\xe1rio`,day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:`m\xeas`,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\xe1rio`,weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:`Calend\xe1rio`,day:"dia",dayPeriod:"am/pm",endDate:`Data de T\xe9rmino`,era:"era",hour:"hora",minute:"minuto",month:`m\xeas`,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\xedcio`,timeZoneName:`fuso hor\xe1rio`,weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:`Dat\u{103} final`,era:`er\u{103}`,hour:`or\u{103}`,minute:"minut",month:`lun\u{103}`,second:`secund\u{103}`,selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u{103}: ${e.time}`,startDate:`Dat\u{103} \xeenceput`,timeZoneName:"fus orar",weekday:`ziua din s\u{103}pt\u{103}m\xe2n\u{103}`,year:"an"},"ru-RU":{calendar:`\u{41A}\u{430}\u{43B}\u{435}\u{43D}\u{434}\u{430}\u{440}\u{44C}`,day:`\u{434}\u{435}\u{43D}\u{44C}`,dayPeriod:"AM/PM",endDate:`\u{414}\u{430}\u{442}\u{430} \u{43E}\u{43A}\u{43E}\u{43D}\u{447}\u{430}\u{43D}\u{438}\u{44F}`,era:`\u{44D}\u{440}\u{430}`,hour:`\u{447}\u{430}\u{441}`,minute:`\u{43C}\u{438}\u{43D}\u{443}\u{442}\u{430}`,month:`\u{43C}\u{435}\u{441}\u{44F}\u{446}`,second:`\u{441}\u{435}\u{43A}\u{443}\u{43D}\u{434}\u{430}`,selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: \u{441} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{435} \u{432}\u{440}\u{435}\u{43C}\u{44F}: ${e.time}`,startDate:`\u{414}\u{430}\u{442}\u{430} \u{43D}\u{430}\u{447}\u{430}\u{43B}\u{430}`,timeZoneName:`\u{447}\u{430}\u{441}\u{43E}\u{432}\u{43E}\u{439} \u{43F}\u{43E}\u{44F}\u{441}`,weekday:`\u{434}\u{435}\u{43D}\u{44C} \u{43D}\u{435}\u{434}\u{435}\u{43B}\u{438}`,year:`\u{433}\u{43E}\u{434}`},"sk-SK":{calendar:`Kalend\xe1r`,day:`de\u{148}`,dayPeriod:"AM/PM",endDate:`D\xe1tum ukon\u{10D}enia`,era:`letopo\u{10D}et`,hour:"hodina",minute:`min\xfata`,month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xfd \u{10D}as: ${e.time}`,startDate:`D\xe1tum za\u{10D}atia`,timeZoneName:`\u{10D}asov\xe9 p\xe1smo`,weekday:`de\u{148} t\xfd\u{17E}d\u{148}a`,year:"rok"},"sl-SI":{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\u{10D}je: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u{10D}as: ${e.time}`,startDate:`Datum za\u{10D}etka`,timeZoneName:`\u{10D}asovni pas`,weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:`\u{434}\u{430}\u{43D}`,dayPeriod:`\u{43F}\u{440}\u{435} \u{43F}\u{43E}\u{434}\u{43D}\u{435}/\u{43F}\u{43E} \u{43F}\u{43E}\u{434}\u{43D}\u{435}`,endDate:`Datum zavr\u{161}etka`,era:`\u{435}\u{440}\u{430}`,hour:`\u{441}\u{430}\u{442}`,minute:`\u{43C}\u{438}\u{43D}\u{443}\u{442}`,month:`\u{43C}\u{435}\u{441}\u{435}\u{446}`,second:`\u{441}\u{435}\u{43A}\u{443}\u{43D}\u{434}`,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\u{10D}etka`,timeZoneName:`\u{432}\u{440}\u{435}\u{43C}\u{435}\u{43D}\u{441}\u{43A}\u{430} \u{437}\u{43E}\u{43D}\u{430}`,weekday:`\u{434}\u{430}\u{43D} \u{443} \u{43D}\u{435}\u{434}\u{435}\u{459}\u{438}`,year:`\u{433}\u{43E}\u{434}\u{438}\u{43D}\u{430}`},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:`m\xe5nad`,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:`\xe5r`},"tr-TR":{calendar:"Takvim",day:`g\xfcn`,dayPeriod:`\xd6\xd6/\xd6S`,endDate:`Biti\u{15F} Tarihi`,era:`\xe7a\u{11F}`,hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xe7ilen Zaman: ${e.time}`,startDate:`Ba\u{15F}lang\u{131}\xe7 Tarihi`,timeZoneName:"saat dilimi",weekday:`haftan\u{131}n g\xfcn\xfc`,year:`y\u{131}l`},"uk-UA":{calendar:`\u{41A}\u{430}\u{43B}\u{435}\u{43D}\u{434}\u{430}\u{440}`,day:`\u{434}\u{435}\u{43D}\u{44C}`,dayPeriod:`\u{434}\u{43F}/\u{43F}\u{43F}`,endDate:`\u{414}\u{430}\u{442}\u{430} \u{437}\u{430}\u{432}\u{435}\u{440}\u{448}\u{435}\u{43D}\u{43D}\u{44F}`,era:`\u{435}\u{440}\u{430}`,hour:`\u{433}\u{43E}\u{434}\u{438}\u{43D}\u{430}`,minute:`\u{445}\u{432}\u{438}\u{43B}\u{438}\u{43D}\u{430}`,month:`\u{43C}\u{456}\u{441}\u{44F}\u{446}\u{44C}`,second:`\u{441}\u{435}\u{43A}\u{443}\u{43D}\u{434}\u{430}`,selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{2014} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{447}\u{430}\u{441}: ${e.time}`,startDate:`\u{414}\u{430}\u{442}\u{430} \u{43F}\u{43E}\u{447}\u{430}\u{442}\u{43A}\u{443}`,timeZoneName:`\u{447}\u{430}\u{441}\u{43E}\u{432}\u{438}\u{439} \u{43F}\u{43E}\u{44F}\u{441}`,weekday:`\u{434}\u{435}\u{43D}\u{44C} \u{442}\u{438}\u{436}\u{43D}\u{44F}`,year:`\u{440}\u{456}\u{43A}`},"zh-CN":{calendar:`\u{65E5}\u{5386}`,day:`\u{65E5}`,dayPeriod:`\u{4E0A}\u{5348}/\u{4E0B}\u{5348}`,endDate:`\u{7ED3}\u{675F}\u{65E5}\u{671F}`,era:`\u{7EAA}\u{5143}`,hour:`\u{5C0F}\u{65F6}`,minute:`\u{5206}\u{949F}`,month:`\u{6708}`,second:`\u{79D2}`,selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65F6}\u{95F4}\u{FF1A}${e.time}`,startDate:`\u{5F00}\u{59CB}\u{65E5}\u{671F}`,timeZoneName:`\u{65F6}\u{533A}`,weekday:`\u{5DE5}\u{4F5C}\u{65E5}`,year:`\u{5E74}`},"zh-TW":{calendar:`\u{65E5}\u{66C6}`,day:`\u{65E5}`,dayPeriod:`\u{4E0A}\u{5348}/\u{4E0B}\u{5348}`,endDate:`\u{7D50}\u{675F}\u{65E5}\u{671F}`,era:`\u{7EAA}\u{5143}`,hour:`\u{5C0F}\u{65F6}`,minute:`\u{5206}\u{949F}`,month:`\u{6708}`,second:`\u{79D2}`,selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{6642}\u{9593}\u{FF1A}${e.time}`,startDate:`\u{958B}\u{59CB}\u{65E5}\u{671F}`,timeZoneName:`\u{65F6}\u{533A}`,weekday:`\u{5DE5}\u{4F5C}\u{65E5}`,year:`\u{5E74}`}};let r$=v.createContext(null),rk="react-aria-focus-scope-restore",rx=null;function rC(e){var t,n,r,a,o,i,s,l,c,u;let d,p,f,m,{children:h,contain:g,restoreFocus:b,autoFocus:y}=e,A=(0,v.useRef)(null),$=(0,v.useRef)(null),k=(0,v.useRef)([]),{parentNode:x}=(0,v.useContext)(r$)||{},C=(0,v.useMemo)(()=>new rR({scopeRef:k}),[k]);eC(()=>{let e=x||rL.root;if(rL.getTreeNode(e.scopeRef)&&rx&&!rB(rx,e.scopeRef)){let t=rL.getTreeNode(rx);t&&(e=t)}e.addChild(C),rL.addNode(C)},[C,x]),eC(()=>{let e=rL.getTreeNode(k);e&&(e.contain=!!g)},[g]),eC(()=>{var e;let t=null==(e=A.current)?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==$.current;)n.push(t),t.addEventListener(rk,r),t=t.nextSibling;return k.current=n,()=>{for(let e of n)e.removeEventListener(rk,r)}},[h]),eC(()=>{if(n||r)return;let e=t.current,a=eX(e?e[0]:void 0),o=e=>{let n=tB(e);rD(n,t.current)?rx=t:rS(n)||(rx=null)};return a.addEventListener("focusin",o,!1),null==e||e.forEach(e=>e.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",o,!1))}},[t=k,n=b,r=g]),a=k,o=g,d=(0,v.useRef)(void 0),p=(0,v.useRef)(void 0),eC(()=>{let e=a.current;if(!o){p.current&&(cancelAnimationFrame(p.current),p.current=void 0);return}let t=eX(e?e[0]:void 0),n=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!rE(a)||e.isComposing)return;let n=((e=document)=>e.activeElement)(t),r=a.current;if(!r||!rD(n,r))return;let o=rF(rw(r),{tabbable:!0},r);if(!n)return;o.currentNode=n;let i=e.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),i&&rz(i,!0)},r=e=>{(!rx||rB(rx,a))&&rD(tB(e),a.current)?(rx=a,d.current=tB(e)):rE(a)&&!rS(tB(e),a)?d.current?d.current.focus():rx&&rx.current&&rT(rx.current):rE(a)&&(d.current=tB(e))},i=e=>{p.current&&cancelAnimationFrame(p.current),p.current=requestAnimationFrame(()=>{let n=tq,r=("virtual"===n||null===n)&&tf()&&tp(),o=((e=document)=>e.activeElement)(t);if(!r&&o&&rE(a)&&!rS(o,a)){rx=a;let t=tB(e);if(t&&t.isConnected){var i;d.current=t,null==(i=d.current)||i.focus()}else rx.current&&rT(rx.current)}})};return t.addEventListener("keydown",n,!1),t.addEventListener("focusin",r,!1),null==e||e.forEach(e=>e.addEventListener("focusin",r,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",i,!1)),()=>{t.removeEventListener("keydown",n,!1),t.removeEventListener("focusin",r,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",r,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",i,!1))}},[a,o]),eC(()=>()=>{p.current&&cancelAnimationFrame(p.current)},[p]),i=k,s=b,l=g,f=(0,v.useRef)("undefined"!=typeof document?((e=document)=>e.activeElement)(eX(i.current?i.current[0]:void 0)):null),eC(()=>{let e=i.current,t=eX(e?e[0]:void 0);if(!s||l)return;let n=()=>{(!rx||rB(rx,i))&&rD(((e=document)=>e.activeElement)(t),i.current)&&(rx=i)};return t.addEventListener("focusin",n,!1),null==e||e.forEach(e=>e.addEventListener("focusin",n,!1)),()=>{t.removeEventListener("focusin",n,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",n,!1))}},[i,l]),eC(()=>{let e=eX(i.current?i.current[0]:void 0);if(!s)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!rE(i)||t.isComposing)return;let n=e.activeElement;if(!rS(n,i)||!rM(i))return;let r=rL.getTreeNode(i);if(!r)return;let a=r.nodeToRestore,o=rF(e.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if(a&&a.isConnected&&a!==e.body||(a=void 0,r.nodeToRestore=void 0),(!s||!rS(s,i))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(rS(s,i));(t.preventDefault(),t.stopPropagation(),s)?rz(s,!0):rS(a)?rz(a,!0):n.blur()}};return l||e.addEventListener("keydown",t,!0),()=>{l||e.removeEventListener("keydown",t,!0)}},[i,s,l]),eC(()=>{var e;let t=eX(i.current?i.current[0]:void 0);if(!s)return;let n=rL.getTreeNode(i);if(n)return n.nodeToRestore=null!=(e=f.current)?e:void 0,()=>{let e=rL.getTreeNode(i);if(!e)return;let n=e.nodeToRestore,r=((e=document)=>e.activeElement)(t);if(s&&n&&(r&&rS(r,i)||r===t.body&&rM(i))){let e=rL.clone();requestAnimationFrame(()=>{if(t.activeElement===t.body){let t=e.getTreeNode(i);for(;t;){if(t.nodeToRestore&&t.nodeToRestore.isConnected)return void rO(t.nodeToRestore);t=t.parent}for(t=e.getTreeNode(i);t;){if(t.scopeRef&&t.scopeRef.current&&rL.getTreeNode(t.scopeRef))return void rO(rP(t.scopeRef.current,!0));t=t.parent}}})}}},[i,s]),c=k,u=y,m=v.useRef(u),(0,v.useEffect)(()=>{m.current&&(rx=c,!rD(((e=document)=>e.activeElement)(eX(c.current?c.current[0]:void 0)),rx.current)&&c.current&&rT(c.current)),m.current=!1},[c]),(0,v.useEffect)(()=>{let e=((e=document)=>e.activeElement)(eX(k.current?k.current[0]:void 0)),t=null;if(rD(e,k.current)){for(let n of rL.traverse())n.scopeRef&&rD(e,n.scopeRef.current)&&(t=n);t===rL.getTreeNode(k)&&(rx=t.scopeRef)}},[k]),eC(()=>()=>{var e,t,n;let r=null!=(n=null==(t=rL.getTreeNode(k))||null==(e=t.parent)?void 0:e.scopeRef)?n:null;(k===rx||rB(k,rx))&&(!r||rL.getTreeNode(r))&&(rx=r),rL.removeTreeNode(k)},[k]);let w=(0,v.useMemo)(()=>{var e;return e=k,{focusNext(t={}){var n;let r=e.current,{from:a,tabbable:o,wrap:i,accept:s}=t,l=a||((e=document)=>e.activeElement)(eX(null!=(n=r[0])?n:void 0)),c=r[0].previousElementSibling,u=rF(rw(r),{tabbable:o,accept:s},r);u.currentNode=rD(l,r)?l:c;let d=u.nextNode();return!d&&i&&(u.currentNode=c,d=u.nextNode()),d&&rz(d,!0),d},focusPrevious(t={}){var n;let r=e.current,{from:a,tabbable:o,wrap:i,accept:s}=t,l=a||((e=document)=>e.activeElement)(eX(null!=(n=r[0])?n:void 0)),c=r[r.length-1].nextElementSibling,u=rF(rw(r),{tabbable:o,accept:s},r);u.currentNode=rD(l,r)?l:c;let d=u.previousNode();return!d&&i&&(u.currentNode=c,d=u.previousNode()),d&&rz(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:a}=t,o=rF(rw(n),{tabbable:r,accept:a},n);o.currentNode=n[0].previousElementSibling;let i=o.nextNode();return i&&rz(i,!0),i},focusLast(t={}){let n=e.current,{tabbable:r,accept:a}=t,o=rF(rw(n),{tabbable:r,accept:a},n);o.currentNode=n[n.length-1].nextElementSibling;let i=o.previousNode();return i&&rz(i,!0),i}}},[]),E=(0,v.useMemo)(()=>({focusManager:w,parentNode:C}),[C,w]);return v.createElement(r$.Provider,{value:E},v.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:A}),h,v.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:$}))}function rw(e){return e[0].parentElement}function rE(e){let t=rL.getTreeNode(rx);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function rD(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function rS(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of rL.traverse(rL.getTreeNode(t)))if(n&&rD(e,n.current))return!0;return!1}function rB(e,t){var n;let r=null==(n=rL.getTreeNode(t))?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function rz(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{t8(e)}catch{}}function rP(e,t=!0){let n=e[0].previousElementSibling,r=rw(e),a=rF(r,{tabbable:t},e);a.currentNode=n;let o=a.nextNode();return t&&!o&&((a=rF(r=rw(e),{tabbable:!1},e)).currentNode=n,o=a.nextNode()),o}function rT(e,t=!0){rz(rP(e,t))}function rM(e){let t=rL.getTreeNode(rx);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function rO(e){e.dispatchEvent(new CustomEvent(rk,{bubbles:!0,cancelable:!0}))&&rz(e)}function rF(e,t,n){var r,a,o;let i=(null==t?void 0:t.tabbable)?e6:e5,s=eX((null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null),l=(r=e||s,a=NodeFilter.SHOW_ELEMENT,o={acceptNode(e){var r;return(null==t||null==(r=t.from)?void 0:r.contains(e))||(null==t?void 0:t.tabbable)&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")&&(!function(e){if(e.checked)return!0;let t=[];if(e.form){var n,r;let a=null==(r=e.form)||null==(n=r.elements)?void 0:n.namedItem(e.name);t=[...null!=a?a:[]]}else t=[...eX(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(e=>!e.form);return!!t&&!t.some(e=>e.checked)}(e)||"INPUT"===l.currentNode.tagName&&"radio"===l.currentNode.type&&l.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:i(e)&&(!n||rD(e,n))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}},s.createTreeWalker(r,a,o));return(null==t?void 0:t.from)&&(l.currentNode=t.from),l}function rI(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:a,tabbable:o=t.tabbable,wrap:i=t.wrap,accept:s=t.accept}=n,l=a||((e=document)=>e.activeElement)(eX(r)),c=rF(r,{tabbable:o,accept:s});r.contains(l)&&(c.currentNode=l);let u=c.nextNode();return!u&&i&&(c.currentNode=r,u=c.nextNode()),u&&rz(u,!0),u},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:a,tabbable:o=t.tabbable,wrap:i=t.wrap,accept:s=t.accept}=n,l=a||((e=document)=>e.activeElement)(eX(r)),c=rF(r,{tabbable:o,accept:s});if(r.contains(l))c.currentNode=l;else{let e=rN(c);return e&&rz(e,!0),null!=e?e:null}let u=c.previousNode();if(!u&&i){c.currentNode=r;let e=rN(c);if(!e)return null;u=e}return u&&rz(u,!0),null!=u?u:null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:o=t.accept}=n,i=rF(r,{tabbable:a,accept:o}).nextNode();return i&&rz(i,!0),i},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:o=t.accept}=n,i=rN(rF(r,{tabbable:a,accept:o}));return i&&rz(i,!0),null!=i?i:null}}}function rN(e){let t,n;do(t=e.lastChild())&&(n=t);while(t);return n}class rj{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let a=new rR({scopeRef:e});r.addChild(a),a.parent=r,this.fastMap.set(e,a),n&&(a.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&rD(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let n=new rj;for(let r of this.traverse())n.addTreeNode(r.scopeRef,null!=(t=null==(e=r.parent)?void 0:e.scopeRef)?t:null,r.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new rR({scopeRef:null}),this.fastMap.set(null,this.root)}}class rR{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let rL=new rj;function rV(e,t,n){let{direction:r}=eA(),a=(0,v.useMemo)(()=>rI(t),[t]),o=()=>{var e;if(!t.current)return;let n=null==(e=window.event)?void 0:e.target,r=rF(t.current,{tabbable:!0});if(n&&(r.currentNode=n,n=r.previousNode()),!n){let e;do(e=r.lastChild())&&(n=e);while(e)}for(;null==n?void 0:n.hasAttribute("data-placeholder");){let e=r.previousNode();if(e&&e.hasAttribute("data-placeholder"))n=e;else break}n&&n.focus()},{pressProps:i}=tj({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&o()},onPress(e){("touch"===e.pointerType||"pen"===e.pointerType)&&o()}});return eT(i,{onKeyDown:o=>{if(o.currentTarget.contains(o.target)&&(o.altKey&&("ArrowDown"===o.key||"ArrowUp"===o.key)&&"setOpen"in e&&(o.preventDefault(),o.stopPropagation(),e.setOpen(!0)),!n))switch(o.key){case"ArrowLeft":if(o.preventDefault(),o.stopPropagation(),"rtl"===r){if(t.current){let e=o.target,n=rH(t.current,e.getBoundingClientRect().left,-1);n&&n.focus()}}else a.focusPrevious();break;case"ArrowRight":if(o.preventDefault(),o.stopPropagation(),"rtl"===r){if(t.current){let e=o.target,n=rH(t.current,e.getBoundingClientRect().left,1);n&&n.focus()}}else a.focusNext()}}})}function rH(e,t,n){let r=rF(e,{tabbable:!0}),a=r.nextNode(),o=null,i=1/0;for(;a;){let e=a.getBoundingClientRect().left-t,s=Math.abs(e);Math.sign(e)===n&&s<i&&(o=a,i=s),a=r.nextNode()}return o}function rG(e,t,n){let r=eE(()=>{n&&n(t)});(0,v.useEffect)(()=>{var t;let n=null==e||null==(t=e.current)?void 0:t.form;return null==n||n.addEventListener("reset",r),()=>{null==n||n.removeEventListener("reset",r)}},[e,r])}function rU(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:o,fieldProps:i}=function(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:o="label"}=e;t=eB(t);let i=eB(),s={};return n&&(r=r?`${i} ${r}`:i,s={id:i,htmlFor:"label"===o?t:void 0}),{labelProps:s,fieldProps:nV({id:t,"aria-label":a,"aria-labelledby":r})}}(e),s=ez([!!t,!!n,r,a]),l=ez([!!t,!!n,r,a]);return{labelProps:o,fieldProps:i=eT(i,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:s},errorMessageProps:{id:l}}}function rq(e,t,n){let{validationBehavior:r,focus:a}=e;eC(()=>{if("native"===r&&(null==n?void 0:n.current)&&!n.current.disabled){var e;let r,a=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(a),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:{badInput:(r=e.validity).badInput,customError:r.customError,patternMismatch:r.patternMismatch,rangeOverflow:r.rangeOverflow,rangeUnderflow:r.rangeUnderflow,stepMismatch:r.stepMismatch,tooLong:r.tooLong,tooShort:r.tooShort,typeMismatch:r.typeMismatch,valueMissing:r.valueMissing,valid:r.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let o=(0,v.useRef)(!1),i=eE(()=>{o.current||t.resetValidation()}),s=eE(e=>{var r,o;t.displayValidation.isInvalid||t.commitValidation();let i=null==n||null==(r=n.current)?void 0:r.form;!e.defaultPrevented&&n&&i&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}(i)===n.current&&(a?a():null==(o=n.current)||o.focus(),tq="keyboard",tX("keyboard",null)),e.preventDefault()}),l=eE(()=>{t.commitValidation()});(0,v.useEffect)(()=>{let e=null==n?void 0:n.current;if(!e)return;let t=e.form,r=null==t?void 0:t.reset;return t&&(t.reset=()=>{o.current=!window.event||"message"===window.event.type&&window.event.target instanceof MessagePort,null==r||r.call(t),o.current=!1}),e.addEventListener("invalid",s),e.addEventListener("change",l),null==t||t.addEventListener("reset",i),()=>{e.removeEventListener("invalid",s),e.removeEventListener("change",l),null==t||t.removeEventListener("reset",i),t&&(t.reset=r)}},[n,s,l,i,r])}let rW=new WeakMap,rK="__role_"+Date.now(),rY="__focusManager_"+Date.now();function rJ(e,t,n){var r,a;let o,{isInvalid:i,validationErrors:s,validationDetails:l}=t.displayValidation,{labelProps:c,fieldProps:u,descriptionProps:d,errorMessageProps:p}=rU({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||s}),f=(0,v.useRef)(null),{focusWithinProps:m}=nr({...e,onFocusWithin(n){var r;f.current=t.value,null==(r=e.onFocus)||r.call(e,n)},onBlurWithin:n=>{var r;t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),null==(r=e.onBlur)||r.call(e,n)},onFocusWithinChange:e.onFocusChange}),h=nw((a=rA)&&a.__esModule?a.default:a,"@react-aria/datepicker"),g="hour"===t.maxGranularity?"selectedTimeDescription":"selectedDateDescription",b="hour"===t.maxGranularity?"time":"date",y=nJ(t.value?h.format(g,{[b]:t.formatValue({month:"long"})}):""),A="presentation"===e[rK]?u["aria-describedby"]:[y["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,$=e[rY],k=(0,v.useMemo)(()=>$||rI(n),[$,n]),x=rV(t,n,"presentation"===e[rK]);rW.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[c.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:A,focusManager:k});let C=(0,v.useRef)(e.autoFocus);o="presentation"===e[rK]?{role:"presentation"}:eT(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":A}),(0,v.useEffect)(()=>{C.current&&k.focusFirst(),C.current=!1},[k]),rG(e.inputRef,t.defaultValue,t.setValue),rq({...e,focus(){k.focusFirst()}},t,e.inputRef);let w={type:"hidden",name:e.name,form:e.form,value:(null==(r=t.value)?void 0:r.toString())||"",disabled:e.isDisabled};"native"===e.validationBehavior&&(w.type="text",w.hidden=!0,w.required=e.isRequired,w.onChange=()=>{});let E=eZ(e);return{labelProps:{...c,onClick:()=>{k.focusFirst()}},fieldProps:eT(E,o,x,m,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)},style:{unicodeBidi:"isolate"}}),inputProps:w,descriptionProps:d,errorMessageProps:p,isInvalid:i,validationErrors:s,validationDetails:l}}var rZ={};rZ={"ar-AE":{rangeOverflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.maxValue} \u{623}\u{648} \u{642}\u{628}\u{644} \u{630}\u{644}\u{643}.`,rangeReversed:`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{627}\u{644}\u{628}\u{62F}\u{621} \u{64A}\u{62C}\u{628} \u{623}\u{646} \u{64A}\u{643}\u{648}\u{646} \u{642}\u{628}\u{644} \u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{627}\u{644}\u{627}\u{646}\u{62A}\u{647}\u{627}\u{621}.`,rangeUnderflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.minValue} \u{623}\u{648} \u{628}\u{639}\u{62F} \u{630}\u{644}\u{643}.`,unavailableDate:`\u{627}\u{644}\u{628}\u{64A}\u{627}\u{646}\u{627}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}\u{629} \u{63A}\u{64A}\u{631} \u{645}\u{62A}\u{627}\u{62D}\u{629}.`},"bg-BG":{rangeOverflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.maxValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{440}\u{430}\u{43D}\u{43D}\u{430}.`,rangeReversed:`\u{41D}\u{430}\u{447}\u{430}\u{43B}\u{43D}\u{430}\u{442}\u{430} \u{434}\u{430}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} \u{43F}\u{440}\u{435}\u{434}\u{438} \u{43A}\u{440}\u{430}\u{439}\u{43D}\u{430}\u{442}\u{430}.`,rangeUnderflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.minValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{43A}\u{44A}\u{441}\u{43D}\u{43E}.`,unavailableDate:`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430}\u{442}\u{430} \u{434}\u{430}\u{442}\u{430} \u{43D}\u{435} \u{435} \u{43D}\u{430}\u{43B}\u{438}\u{447}\u{43D}\u{430}.`},"cs-CZ":{rangeOverflow:e=>`Hodnota mus\xed b\xfdt ${e.maxValue} nebo d\u{159}\xedv\u{11B}j\u{161}\xed.`,rangeReversed:`Datum zah\xe1jen\xed mus\xed p\u{159}edch\xe1zet datu ukon\u{10D}en\xed.`,rangeUnderflow:e=>`Hodnota mus\xed b\xfdt ${e.minValue} nebo pozd\u{11B}j\u{161}\xed.`,unavailableDate:`Vybran\xe9 datum nen\xed k dispozici.`},"da-DK":{rangeOverflow:e=>`V\xe6rdien skal v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:`Startdatoen skal v\xe6re f\xf8r slutdatoen.`,rangeUnderflow:e=>`V\xe6rdien skal v\xe6re ${e.minValue} eller nyere.`,unavailableDate:`Den valgte dato er ikke tilg\xe6ngelig.`},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xfcher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xe4ter sein.`,unavailableDate:`Das ausgew\xe4hlte Datum ist nicht verf\xfcgbar.`},"el-GR":{rangeOverflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.maxValue} \u{3AE} \u{3C0}\u{3B1}\u{3BB}\u{3B1}\u{3B9}\u{3CC}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,rangeReversed:`\u{397} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1} \u{3AD}\u{3BD}\u{3B1}\u{3C1}\u{3BE}\u{3B7}\u{3C2} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} \u{3C0}\u{3C1}\u{3B9}\u{3BD} \u{3B1}\u{3C0}\u{3CC} \u{3C4}\u{3B7}\u{3BD} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1} \u{3BB}\u{3AE}\u{3BE}\u{3B7}\u{3C2}.`,rangeUnderflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.minValue} \u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3B3}\u{3B5}\u{3BD}\u{3AD}\u{3C3}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,unavailableDate:`\u{397} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1} \u{3B4}\u{3B5}\u{3BD} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} \u{3B4}\u{3B9}\u{3B1}\u{3B8}\u{3AD}\u{3C3}\u{3B9}\u{3BC}\u{3B7}.`},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:`La fecha de inicio debe ser anterior a la fecha de finalizaci\xf3n.`,rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`V\xe4\xe4rtus peab olema ${e.maxValue} v\xf5i varasem.`,rangeReversed:`Alguskuup\xe4ev peab olema enne l\xf5ppkuup\xe4eva.`,rangeUnderflow:e=>`V\xe4\xe4rtus peab olema ${e.minValue} v\xf5i hilisem.`,unavailableDate:`Valitud kuup\xe4ev pole saadaval.`},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xe4 aikaisempi.`,rangeReversed:`Aloitusp\xe4iv\xe4n on oltava ennen lopetusp\xe4iv\xe4\xe4.`,rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,unavailableDate:`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4 ei ole k\xe4ytett\xe4viss\xe4.`},"fr-FR":{rangeOverflow:e=>`La valeur doit \xeatre ${e.maxValue} ou ant\xe9rieure.`,rangeReversed:`La date de d\xe9but doit \xeatre ant\xe9rieure \xe0 la date de fin.`,rangeUnderflow:e=>`La valeur doit \xeatre ${e.minValue} ou ult\xe9rieure.`,unavailableDate:`La date s\xe9lectionn\xe9e n\u{2019}est pas disponible.`},"he-IL":{rangeOverflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.maxValue} \u{5D0}\u{5D5} \u{5DE}\u{5D5}\u{5E7}\u{5D3}\u{5DD} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,rangeReversed:`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5D4}\u{5D4}\u{5EA}\u{5D7}\u{5DC}\u{5D4} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} \u{5DC}\u{5E4}\u{5E0}\u{5D9} \u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5D4}\u{5E1}\u{5D9}\u{5D5}\u{5DD}.`,rangeUnderflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.minValue} \u{5D0}\u{5D5} \u{5DE}\u{5D0}\u{5D5}\u{5D7}\u{5E8} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,unavailableDate:`\u{5D4}\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5D4}\u{5E0}\u{5D1}\u{5D7}\u{5E8} \u{5D0}\u{5D9}\u{5E0}\u{5D5} \u{5D6}\u{5DE}\u{5D9}\u{5DF}.`},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:`Datum po\u{10D}etka mora biti prije datuma zavr\u{161}etka.`,rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az \xe9rt\xe9knek ${e.maxValue} vagy kor\xe1bbinak kell lennie.`,rangeReversed:`A kezd\u{151} d\xe1tumnak a befejez\u{151} d\xe1tumn\xe1l kor\xe1bbinak kell lennie.`,rangeUnderflow:e=>`Az \xe9rt\xe9knek ${e.minValue} vagy k\xe9s\u{151}bbinek kell lennie.`,unavailableDate:`A kiv\xe1lasztott d\xe1tum nem \xe9rhet\u{151} el.`},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`\u{5024}\u{306F} ${e.maxValue} \u{4EE5}\u{4E0B}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,rangeReversed:`\u{958B}\u{59CB}\u{65E5}\u{306F}\u{7D42}\u{4E86}\u{65E5}\u{3088}\u{308A}\u{524D}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,rangeUnderflow:e=>`\u{5024}\u{306F} ${e.minValue} \u{4EE5}\u{4E0A}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,unavailableDate:`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8}\u{306F}\u{4F7F}\u{7528}\u{3067}\u{304D}\u{307E}\u{305B}\u{3093}\u{3002}`},"ko-KR":{rangeOverflow:e=>`\u{AC12}\u{C740} ${e.maxValue} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,rangeReversed:`\u{C2DC}\u{C791}\u{C77C}\u{C740} \u{C885}\u{B8CC}\u{C77C} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,rangeUnderflow:e=>`\u{AC12}\u{C740} ${e.minValue} \u{C774}\u{C0C1}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,unavailableDate:`\u{C120}\u{D0DD}\u{D55C} \u{B0A0}\u{C9DC}\u{B97C} \u{C0AC}\u{C6A9}\u{D560} \u{C218} \u{C5C6}\u{C2B5}\u{B2C8}\u{B2E4}.`},"lt-LT":{rangeOverflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.maxValue} arba ankstesn\u{117}.`,rangeReversed:`Prad\u{17E}ios data turi b\u{16B}ti ankstesn\u{117} nei pabaigos data.`,rangeUnderflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.minValue} arba naujesn\u{117}.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.maxValue} vai agr\u{101}kai.`,rangeReversed:`S\u{101}kuma datumam ir j\u{101}b\u{16B}t pirms beigu datuma.`,rangeUnderflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.minValue} vai v\u{113}l\u{101}kai.`,unavailableDate:`Atlas\u{12B}tais datums nav pieejams.`},"nb-NO":{rangeOverflow:e=>`Verdien m\xe5 v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:`Startdatoen m\xe5 v\xe6re f\xf8r sluttdatoen.`,rangeUnderflow:e=>`Verdien m\xe5 v\xe6re ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.maxValue} lub wcze\u{15B}niejsz\u{105}.`,rangeReversed:`Data rozpocz\u{119}cia musi by\u{107} wcze\u{15B}niejsza ni\u{17C} data zako\u{144}czenia.`,rangeUnderflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.minValue} lub p\xf3\u{17A}niejsz\u{105}.`,unavailableDate:`Wybrana data jest niedost\u{119}pna.`},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:`A data inicial deve ser anterior \xe0 data final.`,rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:`Data selecionada indispon\xedvel.`},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:`A data de in\xedcio deve ser anterior \xe0 data de fim.`,rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:`Data selecionada indispon\xedvel.`},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie s\u{103} fie ${e.maxValue} sau anterioar\u{103}.`,rangeReversed:`Data de \xeenceput trebuie s\u{103} fie anterioar\u{103} datei de sf\xe2r\u{219}it.`,rangeUnderflow:e=>`Valoarea trebuie s\u{103} fie ${e.minValue} sau ulterioar\u{103}.`,unavailableDate:`Data selectat\u{103} nu este disponibil\u{103}.`},"ru-RU":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{43F}\u{43E}\u{437}\u{436}\u{435} ${e.maxValue}.`,rangeReversed:`\u{414}\u{430}\u{442}\u{430} \u{43D}\u{430}\u{447}\u{430}\u{43B}\u{430} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{430} \u{43F}\u{440}\u{435}\u{434}\u{448}\u{435}\u{441}\u{442}\u{432}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{434}\u{430}\u{442}\u{435} \u{43E}\u{43A}\u{43E}\u{43D}\u{447}\u{430}\u{43D}\u{438}\u{44F}.`,rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{44C}\u{448}\u{435} ${e.minValue}.`,unavailableDate:`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430} \u{43D}\u{435}\u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{430}.`},"sk-SK":{rangeOverflow:e=>`Hodnota mus\xed by\u{165} ${e.maxValue} alebo skor\u{161}ia.`,rangeReversed:`D\xe1tum za\u{10D}iatku mus\xed by\u{165} skor\u{161}\xed ako d\xe1tum konca.`,rangeUnderflow:e=>`Hodnota mus\xed by\u{165} ${e.minValue} alebo neskor\u{161}ia.`,unavailableDate:`Vybrat\xfd d\xe1tum je nedostupn\xfd.`},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u{161}a.`,rangeReversed:`Za\u{10D}etni datum mora biti pred kon\u{10D}nim datumom.`,rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u{161}a.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:`Datum po\u{10D}etka mora biti pre datuma zavr\u{161}etka.`,rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:`Startdatumet m\xe5ste vara f\xf6re slutdatumet.`,rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:`Det valda datumet \xe4r inte tillg\xe4ngligt.`},"tr-TR":{rangeOverflow:e=>`De\u{11F}er, ${e.maxValue} veya \xf6ncesi olmal\u{131}d\u{131}r.`,rangeReversed:`Ba\u{15F}lang\u{131}\xe7 tarihi biti\u{15F} tarihinden \xf6nce olmal\u{131}d\u{131}r.`,rangeUnderflow:e=>`De\u{11F}er, ${e.minValue} veya sonras\u{131} olmal\u{131}d\u{131}r.`,unavailableDate:`Se\xe7ilen tarih kullan\u{131}lam\u{131}yor.`},"uk-UA":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{43F}\u{456}\u{437}\u{43D}\u{456}\u{448}\u{435} ${e.maxValue}.`,rangeReversed:`\u{414}\u{430}\u{442}\u{430} \u{43F}\u{43E}\u{447}\u{430}\u{442}\u{43A}\u{443} \u{43C}\u{430}\u{454} \u{43F}\u{435}\u{440}\u{435}\u{434}\u{443}\u{432}\u{430}\u{442}\u{438} \u{434}\u{430}\u{442}\u{456} \u{437}\u{430}\u{432}\u{435}\u{440}\u{448}\u{435}\u{43D}\u{43D}\u{44F}.`,rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{456}\u{448}\u{435} ${e.minValue}.`,unavailableDate:`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430} \u{43D}\u{435}\u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{430}.`},"zh-CN":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{65E5}\u{671F}\u{3002}`,rangeReversed:`\u{5F00}\u{59CB}\u{65E5}\u{671F}\u{5FC5}\u{987B}\u{65E9}\u{4E8E}\u{7ED3}\u{675F}\u{65E5}\u{671F}\u{3002}`,rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{65E5}\u{671F}\u{3002}`,unavailableDate:`\u{6240}\u{9009}\u{65E5}\u{671F}\u{4E0D}\u{53EF}\u{7528}\u{3002}`},"zh-TW":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{3002}`,rangeReversed:`\u{958B}\u{59CB}\u{65E5}\u{671F}\u{5FC5}\u{9808}\u{5728}\u{7D50}\u{675F}\u{65E5}\u{671F}\u{4E4B}\u{524D}\u{3002}`,rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{3002}`,unavailableDate:`\u{6240}\u{9078}\u{65E5}\u{671F}\u{7121}\u{6CD5}\u{4F7F}\u{7528}\u{3002}`}};var rX=n(27532);let rQ={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},r0={...rQ,customError:!0,valid:!1},r1={isInvalid:!1,validationDetails:rQ,validationErrors:[]},r2=(0,v.createContext)({}),r3="__formValidationState"+Date.now();function r4(e){if(e[r3]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:o}=e[r3];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:o}}return function(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:o,validate:i,validationBehavior:s="aria"}=e;n&&(t||(t="invalid"===n));let l=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:r0}:null,c=(0,v.useMemo)(()=>i&&null!=a?r6(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return r5(n)}return[]}(i,a)):null,[i,a]);(null==o?void 0:o.validationDetails.valid)&&(o=void 0);let u=(0,v.useContext)(r2),d=(0,v.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>r5(u[e])):r5(u[r]):[],[u,r]),[p,f]=(0,v.useState)(u),[m,h]=(0,v.useState)(!1);u!==p&&(f(u),h(!1));let g=(0,v.useMemo)(()=>r6(m?[]:d),[m,d]),b=(0,v.useRef)(r1),[y,A]=(0,v.useState)(r1),$=(0,v.useRef)(r1),[k,x]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{if(!k)return;x(!1);let e=c||o||b.current;r7(e,$.current)||($.current=e,A(e))}),{realtimeValidation:l||g||c||o||r1,displayValidation:"native"===s?l||g||y:l||g||c||o||y,updateValidation(e){"aria"!==s||r7(y,e)?b.current=e:A(e)},resetValidation(){r7(r1,$.current)||($.current=r1,A(r1)),"native"===s&&x(!1),h(!0)},commitValidation(){"native"===s&&x(!0),h(!0)}}}(e)}function r5(e){return e?Array.isArray(e)?e:[e]:[]}function r6(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:r0}:null}function r7(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,n)=>e===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([e,n])=>t.validationDetails[e]===n)}function r8(...e){let t=new Set,n=!1,r={...rQ};for(let a of e){for(let e of a.validationErrors)t.add(e);for(let e in n||(n=a.isInvalid),r)r[e]||(r[e]=a.validationDetails[e])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}let r9=new nv((u=rZ)&&u.__esModule?u.default:u);function ae(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function at(e,t,n,r,a){let o=null!=e&&null!=n&&e.compare(n)>0,i=null!=e&&null!=t&&0>e.compare(t),s=null!=e&&(null==r?void 0:r(e))||!1,l=o||i||s,c=[];if(l){let e=ae(),r=new nk(e,nv.getGlobalDictionaryForPackage("@react-stately/datepicker")||r9),l=new nD(e,aa({},a)),u=l.resolvedOptions().timeZone;i&&null!=t&&c.push(r.format("rangeUnderflow",{minValue:l.format(t.toDate(u))})),o&&null!=n&&c.push(r.format("rangeOverflow",{maxValue:l.format(n.toDate(u))})),s&&c.push(r.format("unavailableDate"))}return{isInvalid:l,validationErrors:c,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:i,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}let an={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},ar={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function aa(e,t){var n;e={...t.shouldForceLeadingZeros?ar:an,...e};let r=t.granularity||"minute",a=Object.keys(e),o=a.indexOf(null!=(n=t.maxGranularity)?n:"year");o<0&&(o=0);let i=a.indexOf(r);if(i<0&&(i=2),o>i)throw Error("maxGranularity must be greater than granularity");let s=a.slice(o,i+1).reduce((t,n)=>(t[n]=e[n],t),{});return null!=t.hourCycle&&(s.hour12=12===t.hourCycle),s.timeZone=t.timeZone||"UTC",("hour"===r||"minute"===r||"second"===r)&&t.timeZone&&!t.hideTimeZone&&(s.timeZoneName="short"),t.showEra&&0===o&&(s.era="short"),s}function ao(e){return e&&"hour"in e?e:new(0,rX.gX)}function ai(e,t){return null===e?null:e?(0,Z.yP)(e,t):void 0}function as(e,t,n,r){if(e)return ai(e,n);let a=(0,Z.yP)((0,X.tB)(null!=r?r:(0,X.Xj)()).set({hour:0,minute:0,second:0,millisecond:0}),n);return"year"===t||"month"===t||"day"===t?(0,Z.gw)(a):r?a:(0,Z.tR)(a)}function al(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw Error("Invalid granularity "+t+" for value "+e.toString());let[a,o]=(0,v.useState)([r,n]);return e&&(a[0]!==r||a[1]!==n)&&o([r,n]),t||(t=e?r:a[0]),[t,e?n:a[1]]}let ac=new nv({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:"\xe5\xe5\xe5\xe5",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:"\xf1\xf1"},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:"\xe9\xe9\xe9\xe9",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"},nb:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},no:{year:"\xe5\xe5\xe5\xe5",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:"\xe5\xe5\xe5\xe5",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"),au={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},ad={year:5,month:2,day:7,hour:2,minute:15,second:15},ap={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function af(e){var t,n,r;let{locale:a,createCalendar:o,hideTimeZone:i,isDisabled:s=!1,isReadOnly:l=!1,isRequired:c=!1,minValue:u,maxValue:d,isDateUnavailable:p}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[m,h]=al(f,e.granularity),g=h||"UTC";if(f&&!(m in f))throw Error("Invalid granularity "+m+" for value "+f.toString());let b=(0,v.useMemo)(()=>new nD(a),[a]),y=(0,v.useMemo)(()=>o(b.resolvedOptions().calendar),[o,b]),[A,$]=n9(e.value,null!=(t=e.defaultValue)?t:null,e.onChange),[k]=(0,v.useState)(A),x=(0,v.useMemo)(()=>{var e;return null!=(e=ai(A,y))?e:null},[A,y]),[C,w]=(0,v.useState)(()=>as(e.placeholderValue,m,y,h)),E="gregory"===y.identifier&&"BC"===(x||C).era,D=(0,v.useMemo)(()=>{var t;return{granularity:m,maxGranularity:null!=(t=e.maxGranularity)?t:"year",timeZone:h,hideTimeZone:i,hourCycle:e.hourCycle,showEra:E,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,h,i,E]),S=(0,v.useMemo)(()=>aa({},D),[D]),B=(0,v.useMemo)(()=>new nD(a,S),[a,S]),z=(0,v.useMemo)(()=>B.resolvedOptions(),[B]),P=(0,v.useMemo)(()=>B.formatToParts(new Date).filter(e=>au[e.type]).reduce((e,t)=>(e[ap[t.type]||t.type]=!0,e),{}),[B]),[T,M]=(0,v.useState)(()=>e.value||e.defaultValue?{...P}:{}),O=(0,v.useRef)(null),F=(0,v.useRef)(y);(0,v.useEffect)(()=>{(0,X.Jg)(y,F.current)||(F.current=y,w(t=>Object.keys(T).length>0?(0,Z.yP)(t,y):as(e.placeholderValue,m,y,h)))},[y,m,T,h,e.placeholderValue]),A&&Object.keys(T).length<Object.keys(P).length&&M(T={...P}),null==A&&Object.keys(T).length===Object.keys(P).length&&(M(T={}),w(as(e.placeholderValue,m,y,h)));let I=x&&Object.keys(T).length>=Object.keys(P).length?x:C,N=t=>{if(e.isDisabled||e.isReadOnly)return;let n=Object.keys(T),r=Object.keys(P);null==t?($(null),w(as(e.placeholderValue,m,y,h)),M({})):0===n.length&&null==O.current||n.length>=r.length||n.length===r.length-1&&P.dayPeriod&&!T.dayPeriod&&"dayPeriod"!==O.current?(0===n.length&&M(T={...P}),$(t=(0,Z.yP)(t,(null==f?void 0:f.calendar)||new(0,n8.FG)))):w(t),O.current=null},j=(0,v.useMemo)(()=>I.toDate(g),[I,g]),R=(0,v.useMemo)(()=>(function(e,t,n,r,a,o,i,s){let l=["hour","minute","second"],c=n.formatToParts(e),u=[];for(let e of c){var d;let n=ap[e.type]||e.type,c=au[n];"era"===n&&1===o.getEras().length&&(c=!1);let p=au[n]&&!t[n],f=au[n]?(d=e.value,"era"===n||"dayPeriod"===n?d:"year"===n||"month"===n||"day"===n?ac.getStringForLocale(n,i):"––"):null,m={type:n,text:p?f:e.value,...am(a,n,r),isPlaceholder:p,placeholder:f,isEditable:c};"hour"===n?(u.push({type:"literal",text:"⁦",...am(a,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),u.push(m),n===s&&u.push({type:"literal",text:"⁩",...am(a,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):l.includes(n)&&n===s?(u.push(m),u.push({type:"literal",text:"⁩",...am(a,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):u.push(m)}return u})(j,T,B,z,I,y,a,m),[j,T,B,z,I,y,a,m]);P.era&&T.year&&!T.era?(T.era=!0,M({...T})):!P.era&&T.era&&(delete T.era,M({...T}));let L=e=>{T[e]=!0,"year"===e&&P.era&&(T.era=!0),M({...T})},V=(e,t)=>{if(T[e])N(function(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:"year"===t})}if("hour"in e)switch(t){case"dayPeriod":{let t=e.hour;return e.set({hour:t>=12?t-12:t+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:"hour"!==t,hourCycle:r.hour12?12:24})}throw Error("Unknown segment: "+t)}(I,e,t,z));else{L(e);let t=Object.keys(T),n=Object.keys(P);(t.length>=n.length||t.length===n.length-1&&P.dayPeriod&&!T.dayPeriod)&&N(I)}},H=(0,v.useMemo)(()=>at(A,u,d,p,D),[A,u,d,p,D]),G=r4({...e,value:A,builtinValidation:H}),U=G.displayValidation.isInvalid,q=e.validationState||(U?"invalid":null);return{...G,value:x,defaultValue:null!=(n=e.defaultValue)?n:k,dateValue:j,calendar:y,setValue:N,segments:R,dateFormatter:B,validationState:q,isInvalid:U,granularity:m,maxGranularity:null!=(r=e.maxGranularity)?r:"year",isDisabled:s,isReadOnly:l,isRequired:c,increment(e){V(e,1)},decrement(e){V(e,-1)},incrementPage(e){V(e,ad[e]||1)},decrementPage(e){V(e,-(ad[e]||1))},setSegment(e,t){L(e),N(function(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&"number"==typeof n)switch(t){case"dayPeriod":{let t=e.hour,r=t>=12;if(n>=12===r)return e;return e.set({hour:r?t-12:t+12})}case"hour":if(r.hour12){let t=e.hour>=12;t||12!==n||(n=0),t&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw Error("Unknown segment: "+t)}(I,e,t,z))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let t=Object.keys(T),n=Object.keys(P);t.length===n.length-1&&P.dayPeriod&&!T.dayPeriod&&(M(T={...P}),N(I.copy()))},clearSegment(t){delete T[t],O.current=t,M({...T});let n=as(e.placeholderValue,m,y,h),r=I;if("dayPeriod"===t&&"hour"in I&&"hour"in n){let e=I.hour>=12,t=n.hour>=12;e&&!t?r=I.set({hour:I.hour-12}):!e&&t&&(r=I.set({hour:I.hour+12}))}else"hour"===t&&"hour"in I&&I.hour>=12&&T.dayPeriod?r=I.set({hour:n.hour+12}):t in I&&(r=I.set({[t]:n[t]}));$(null),N(r)},formatValue:e=>x?new nD(a,aa(e,D)).format(j):"",getDateFormatter:(e,t)=>new nD(e,aa({},{...D,...t}))}}function am(e,t,n){switch(t){case"era":{let t=e.calendar.getEras();return{value:t.indexOf(e.era),minValue:0,maxValue:t.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:(0,X.xz)(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:(0,X.oT)(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:12*(e.hour>=12),minValue:0,maxValue:12};case"hour":if(n.hour12){let t=e.hour>=12;return{value:e.hour,minValue:12*!!t,maxValue:t?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{}}let ah=(0,v.createContext)(null),a_=(0,v.createContext)(null),ag=(0,v.createContext)(null),ab=(0,v.forwardRef)(function(e,t){let n=(0,v.useContext)(a_),r=(0,v.useContext)(ag);return n||r?v.createElement(av,{...e,ref:t}):v.createElement(ay,{...e,ref:t})}),ay=(0,v.forwardRef)((e,t)=>{let[n,r]=eN({slot:e.slot},t,ah),{locale:a}=eA(),o=af({...n,locale:a,createCalendar:J.d}),i=(0,v.useRef)(null),{fieldProps:s,inputProps:l}=rJ({...n,inputRef:i},o,r);return v.createElement(eO,{values:[[a_,o],[ry,{...l,ref:i}],[rg,{...s,ref:r,isInvalid:o.isInvalid,isDisabled:o.isDisabled}]]},v.createElement(av,e))}),av=(0,v.forwardRef)((e,t)=>{let{className:n,children:r}=e,a=(0,v.useContext)(a_),o=(0,v.useContext)(ag),i=null!=a?a:o;return v.createElement(v.Fragment,null,v.createElement(rb,{...e,ref:t,slot:e.slot||void 0,className:null!=n?n:"react-aria-DateInput",isInvalid:i.isInvalid,isDisabled:i.isDisabled},i.segments.map((e,t)=>(0,v.cloneElement)(r(e),{key:t}))),v.createElement(rv,null))}),aA=(0,v.createContext)({});function a$({children:e}){let t=(0,v.useMemo)(()=>({register:()=>{}}),[]);return v.createElement(tk.Provider,{value:t},e)}v.forwardRef(({children:e,...t},n)=>{let r=(0,v.useRef)(!1),a=(0,v.useContext)(tk);n=e$(n||(null==a?void 0:a.ref));let o=eT(a||{},{...t,ref:n,register(){r.current=!0,a&&a.register()}});return tE(a,n),(0,v.useEffect)(()=>{r.current||(r.current=!0)},[]),v.createElement(tk.Provider,{value:o},e)});let ak=v.createContext(null);function ax(e){var t;let n=eu(),{portalContainer:r=n?null:document.body,isExiting:a}=e,[o,i]=(0,v.useState)(!1),s=(0,v.useMemo)(()=>({contain:o,setContain:i}),[o,i]),{getContainer:l}=null!=(t=(0,v.useContext)(aA))?t:{};if(!e.portalContainer&&l&&(r=l()),!r)return null;let c=e.children;return e.disableFocusManagement||(c=v.createElement(rC,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!a},c)),c=v.createElement(ak.Provider,{value:s},v.createElement(a$,null,c)),tT.createPortal(c,r)}let aC=(0,v.createContext)(null),aw=(0,v.createContext)(null),aE=(0,v.forwardRef)(function(e,t){let n=e["aria-labelledby"];[e,t]=eN(e,t,aC);let{dialogProps:r,titleProps:a}=function(e,t){let n,r,{role:a="dialog"}=e,o=ez();o=e["aria-label"]?void 0:o;let i=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){t8(t.current);let e=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),t8(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),eC(()=>{null==r||r(!0)},[r=null==(n=(0,v.useContext)(ak))?void 0:n.setContain]),{dialogProps:{...eZ(e,{labelable:!0}),role:a,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:o}}}({...e,"aria-labelledby":n},t),o=(0,v.useContext)(aw);r["aria-label"]||r["aria-labelledby"]||e["aria-labelledby"]&&(r["aria-labelledby"]=e["aria-labelledby"]);let i=eF({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(null==o?void 0:o.close)||(()=>{})}}),s=eZ(e,{global:!0});return v.createElement("section",{...eT(s,i,r),ref:t,slot:e.slot||void 0},v.createElement(eO,{values:[[nm,{slots:{[eM]:{},title:{...a,level:2}}}],[np,{slots:{[eM]:{},close:{onPress:()=>null==o?void 0:o.close()}}}]]},i.children))}),aD=(0,v.createContext)(null),aS=(0,v.forwardRef)(function(e,t){let n=(0,v.useContext)(aD);return(null==n?void 0:n.isInvalid)?v.createElement(aB,{...e,ref:t}):null}),aB=(0,v.forwardRef)((e,t)=>{let n=(0,v.useContext)(aD),r=eZ(e,{global:!0}),a=eF({...e,defaultClassName:"react-aria-FieldError",defaultChildren:0===n.validationErrors.length?void 0:n.validationErrors.join(" "),values:n});return null==a.children?null:v.createElement(n_,{slot:"errorMessage",...r,...a,ref:t})}),az=(0,v.createContext)(null);var aP=n(68569);let aT=["day","month","year"],aM={hour:1,minute:2,second:3};function aO(e){let{state:t}=e,{containerProps:n,inputProps:r}=function(e,t){let{autoComplete:n,isDisabled:r,name:a}=e,{visuallyHiddenProps:o}=nU({style:{position:"fixed",top:0,left:0}}),i=60;"second"===t.granularity?i=1:"hour"===t.granularity&&(i=3600);let s=null==t.value?"":t.value.toString(),l="day"===t.granularity?"date":"datetime-local",c=["hour","minute","second"],u=0;return c.includes(t.granularity)&&(u=aM[t.granularity],c=c.slice(0,u)),{containerProps:{...o,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:n,disabled:r,type:l,form:"",name:a,step:i,value:s,onChange:e=>{let n=e.target.value.toString();if(n)try{let e=(0,aP.DP)(n);if("day"===t.granularity&&(e=(0,aP._U)(n)),"setSegment"in t)for(let n in e)aT.includes(n)&&t.setSegment(n,e[n]),c.includes(n)&&t.setSegment(n,e[n]);t.setValue(e)}catch{}}}}}({...e},t);return v.createElement("div",{...n,"data-testid":"hidden-dateinput-container"},v.createElement("input",r))}let aF=(0,v.createContext)({}),aI=nd(function(e,t){[e,t]=eN(e,t,aF);let{elementType:n="label",...r}=e;return v.createElement(n,{className:"react-aria-Label",...r,ref:t})}),aN=(0,v.createContext)({placement:"bottom"}),aj="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,aR=new WeakMap,aL=[];function aV(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function aH(e,t){let n=e,r=0,a=t.toString(),o=a.toLowerCase().indexOf("e-");if(o>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+o;else{let e=a.indexOf(".");e>=0&&(r=a.length-e)}if(r>0){let e=Math.pow(10,r);n=Math.round(n*e)/e}return n}function aG(e,t,n,r){t=Number(t),n=Number(n);let a=(e-(isNaN(t)?0:t))%r,o=aH(2*Math.abs(a)>=r?e+Math.sign(a)*(r-Math.abs(a)):e-a,r);return isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(aH(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(aH((n-t)/r,r))*r),o=aH(o,r)}let aU={top:"top",bottom:"top",left:"left",right:"left"},aq={top:"bottom",bottom:"top",left:"right",right:"left"},aW={top:"left",left:"top"},aK={top:"height",left:"width"},aY={width:"totalWidth",height:"totalHeight"},aJ={},aZ="undefined"!=typeof document?window.visualViewport:null;function aX(e){var t,n,r,a,o;let i=0,s=0,l=0,c=0,u=0,d=0,p={},f=(null!=(t=null==aZ?void 0:aZ.scale)?t:1)>1;if("BODY"===e.tagName){let t=document.documentElement;l=t.clientWidth,c=t.clientHeight,i=null!=(n=null==aZ?void 0:aZ.width)?n:l,s=null!=(r=null==aZ?void 0:aZ.height)?r:c,p.top=t.scrollTop||e.scrollTop,p.left=t.scrollLeft||e.scrollLeft,aZ&&(u=aZ.offsetTop,d=aZ.offsetLeft)}else({width:i,height:s,top:u,left:d}=a3(e)),p.top=e.scrollTop,p.left=e.scrollLeft,l=i,c=s;return td()&&("BODY"===e.tagName||"HTML"===e.tagName)&&f&&(p.top=0,p.left=0,u=null!=(a=null==aZ?void 0:aZ.pageTop)?a:0,d=null!=(o=null==aZ?void 0:aZ.pageLeft)?o:0),{width:i,height:s,totalWidth:l,totalHeight:c,scroll:p,top:u,left:d}}function aQ(e,t,n,r,a,o,i){var s;let l=null!=(s=a.scroll[e])?s:0,c=r[aK[e]],u=r.scroll[aU[e]]+o,d=c+r.scroll[aU[e]]-o,p=t-l+i[e]-r[aU[e]],f=t-l+n+i[e]-r[aU[e]];return p<u?u-p:f>d?Math.max(d-f,u-p):0}function a0(e){if(aJ[e])return aJ[e];let[t,n]=e.split(" "),r=aU[t]||"right",a=aW[r];aU[n]||(n="center");let o=aK[r],i=aK[a];return aJ[e]={placement:t,crossPlacement:n,axis:r,crossAxis:a,size:o,crossSize:i},aJ[e]}function a1(e,t,n,r,a,o,i,s,l,c){var u,d,p,f,m;let{placement:h,crossPlacement:g,axis:b,crossAxis:y,size:v,crossSize:A}=r,$={};$[y]=null!=(u=e[y])?u:0,"center"===g?$[y]+=((null!=(d=e[A])?d:0)-(null!=(p=n[A])?p:0))/2:g!==y&&($[y]+=(null!=(f=e[A])?f:0)-(null!=(m=n[A])?m:0)),$[y]+=o;let k=e[y]-n[A]+l+c,x=e[y]+e[A]-l-c;if($[y]=aV($[y],k,x),h===b){let n=s?i[v]:t[aY[v]];$[aq[b]]=Math.floor(n-e[b]+a)}else $[b]=Math.floor(e[b]+e[v]+a);return $}function a2(e,t,n,r,a,o){var i,s,l;let{placement:c,axis:u,size:d}=o;return c===u?Math.max(0,n[u]-e[u]-(null!=(i=e.scroll[u])?i:0)+t[u]-(null!=(s=r[u])?s:0)-r[aq[u]]-a):Math.max(0,e[d]+e[u]+e.scroll[u]-t[u]-n[u]-n[d]-(null!=(l=r[u])?l:0)-r[aq[u]]-a)}function a3(e){let{top:t,left:n,width:r,height:a}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:i,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+o-s,left:n+i-l,width:r,height:a}}function a4(e,t){let n,r=window.getComputedStyle(e);if("fixed"===r.position){let{top:t,left:r,width:a,height:o}=e.getBoundingClientRect();n={top:t,left:r,width:a,height:o}}else{n=a3(e);let r=a3(t),a=window.getComputedStyle(t);r.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,r.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=r.top,n.left-=r.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function a5(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}let a6=new WeakMap;function a7(e){let{ref:t,box:n,onResize:r}=e;(0,v.useEffect)(()=>{let e=null==t?void 0:t.current;if(e)if(void 0===window.ResizeObserver)return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)};else{let t=new window.ResizeObserver(e=>{e.length&&r()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}},[r,t,n])}let a8="undefined"!=typeof document?window.visualViewport:null;function a9(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}let oe=[],ot="undefined"!=typeof document&&window.visualViewport,on=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),or=0;function oa(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function oo(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function oi(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=n0(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect().top,r=n.getBoundingClientRect().top;r>t+n.clientHeight&&(e.scrollTop+=r-t)}n=e.parentElement}}var os={};function ol(e){var t;let{onDismiss:n,...r}=e,a=nV(r,nw((t=os)&&t.__esModule?t.default:t,"@react-aria/overlays").format("dismiss"));return v.createElement(nq,null,v.createElement("button",{...a,tabIndex:-1,onClick:()=>{n&&n()},style:{width:1,height:1}}))}function oc(e,t,n){eC(()=>{if(t&&e.current){if(!("getAnimations"in e.current))return void n();let t=e.current.getAnimations();if(0===t.length)return void n();let r=!1;return Promise.all(t.map(e=>e.finished)).then(()=>{r||(0,tT.flushSync)(()=>{n()})}).catch(()=>{}),()=>{r=!0}}},[e,t,n])}function ou(e){let[t,n]=n9(e.isOpen,e.defaultOpen||!1,e.onOpenChange),r=(0,v.useCallback)(()=>{n(!0)},[n]),a=(0,v.useCallback)(()=>{n(!1)},[n]),o=(0,v.useCallback)(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:a,toggle:o}}os={"ar-AE":{dismiss:`\u{62A}\u{62C}\u{627}\u{647}\u{644}`},"bg-BG":{dismiss:`\u{41E}\u{442}\u{445}\u{432}\u{44A}\u{440}\u{43B}\u{44F}\u{43D}\u{435}`},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:`Schlie\xdfen`},"el-GR":{dismiss:`\u{391}\u{3C0}\u{3CC}\u{3C1}\u{3C1}\u{3B9}\u{3C8}\u{3B7}`},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:`L\xf5peta`},"fi-FI":{dismiss:`Hylk\xe4\xe4`},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:`\u{5D4}\u{5EA}\u{5E2}\u{5DC}\u{5DD}`},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:`Elutas\xedt\xe1s`},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:`\u{9589}\u{3058}\u{308B}`},"ko-KR":{dismiss:`\u{BB34}\u{C2DC}`},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:`Ner\u{101}d\u{12B}t`},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:`\u{41F}\u{440}\u{43E}\u{43F}\u{443}\u{441}\u{442}\u{438}\u{442}\u{44C}`},"sk-SK":{dismiss:`Zru\u{161}i\u{165}`},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:`\u{421}\u{43A}\u{430}\u{441}\u{443}\u{432}\u{430}\u{442}\u{438}`},"zh-CN":{dismiss:`\u{53D6}\u{6D88}`},"zh-TW":{dismiss:`\u{95DC}\u{9589}`}};let od=(0,v.createContext)(null),op=(0,v.createContext)(null),of=(0,v.forwardRef)(function(e,t){[e,t]=eN(e,t,od);let n=(0,v.useContext)(aw),r=ou(e),a=null==e.isOpen&&null==e.defaultOpen&&n?n:r,o=function(e,t){let[n,r]=(0,v.useState)(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open")}let a="exiting"===n;return oc(e,a,(0,v.useCallback)(()=>{r(e=>"exiting"===e?"closed":e)},[])),a}(t,a.isOpen)||e.isExiting||!1,i=(0,v.useContext)(nu),{direction:s}=eA();if(i){let t=e.children;return"function"==typeof t&&(t=t({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),v.createElement(v.Fragment,null,t)}return!a||a.isOpen||o?v.createElement(om,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:o,dir:s}):null});function om({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...o}){var i,s;let l=(0,v.useRef)(null),c=(0,v.useRef)(null),u=(0,v.useContext)(op),d=u&&"SubmenuTrigger"===o.trigger,{popoverProps:p,underlayProps:f,arrowProps:m,placement:h,triggerAnchorPoint:g}=function(e,t){let{triggerRef:n,popoverRef:r,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:l,...c}=e,u="SubmenuTrigger"===c.trigger,{overlayProps:d,underlayProps:p}=function(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:a,isDismissable:o=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:s}=e;(0,v.useEffect)(()=>{if(a&&!oe.includes(t))return oe.push(t),()=>{let e=oe.indexOf(t);e>=0&&oe.splice(e,1)}},[a,t]);let l=()=>{oe[oe.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:a}=e,o=(0,v.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=eE(e=>{n&&a9(e,t)&&(a&&a(e),o.current.isPointerDown=!0)}),s=eE(e=>{n&&n(e)});(0,v.useEffect)(()=>{let e=o.current;if(r)return;let n=eX(t.current);if("undefined"!=typeof PointerEvent){let r=n=>{e.isPointerDown&&a9(n,t)&&s(n),e.isPointerDown=!1};return n.addEventListener("pointerdown",i,!0),n.addEventListener("click",r,!0),()=>{n.removeEventListener("pointerdown",i,!0),n.removeEventListener("click",r,!0)}}},[t,r,i,s])}({ref:t,onInteractOutside:o&&a?e=>{(!s||s(e.target))&&(oe[oe.length-1]===t&&(e.stopPropagation(),e.preventDefault()),l())}:void 0,onInteractOutsideStart:e=>{(!s||s(e.target))&&oe[oe.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=nr({isDisabled:!r,onBlurWithin:e=>{!(!e.relatedTarget||rS(e.relatedTarget,rx))&&(!s||s(e.relatedTarget))&&(null==n||n())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||i||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),l())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:l},null!=o?o:r),{overlayProps:f,arrowProps:m,placement:h,triggerAnchorPoint:g}=function(e){var t,n,r,a;let{direction:o}=eA(),{arrowSize:i,targetRef:s,overlayRef:l,arrowRef:c,scrollRef:u=l,placement:d="bottom",containerPadding:p=12,shouldFlip:f=!0,boundaryElement:m="undefined"!=typeof document?document.body:null,offset:h=0,crossOffset:g=0,shouldUpdatePosition:b=!0,isOpen:y=!0,onClose:A,maxHeight:$,arrowBoundaryOffset:k=0}=e,[x,C]=(0,v.useState)(null),w=[b,d,l.current,s.current,null==c?void 0:c.current,u.current,p,f,m,h,g,y,o,$,k,i],E=(0,v.useRef)(null==a8?void 0:a8.scale);(0,v.useEffect)(()=>{y&&(E.current=null==a8?void 0:a8.scale)},[y]);let D=(0,v.useCallback)(()=>{var e,t,n,r,a,v,A,x,w,D;if(!1===b||!y||!l.current||!s.current||!m||(null==a8?void 0:a8.scale)!==E.current||l.current.querySelector("[data-react-aria-incomplete]")||(null==(e=(t=l.current).getAnimations)?void 0:e.call(t).length)>0)return;let S=null;if(u.current&&u.current.contains(document.activeElement)){let e=null==(r=document.activeElement)?void 0:r.getBoundingClientRect(),t=u.current.getBoundingClientRect();(S={type:"top",offset:(null!=(a=null==e?void 0:e.top)?a:0)-t.top}).offset>t.height/2&&(S.type="bottom",S.offset=(null!=(v=null==e?void 0:e.bottom)?v:0)-t.bottom)}let B=l.current;!$&&l.current&&(B.style.top="0px",B.style.bottom="",B.style.maxHeight=(null!=(x=null==(A=window.visualViewport)?void 0:A.height)?x:window.innerHeight)+"px");let z=function(e){var t,n,r,a;let o,{placement:i,targetNode:s,overlayNode:l,scrollNode:c,padding:u,shouldFlip:d,boundaryElement:p,offset:f,crossOffset:m,maxHeight:h,arrowSize:g=0,arrowBoundaryOffset:b=0}=e,y=l instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!a5(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!a5(t);)t=t.parentElement;return t||document.documentElement}(l):document.documentElement,v=y===document.documentElement,A=window.getComputedStyle(y).position,$=v?a3(s):a4(s,y);if(!v){let{marginTop:e,marginLeft:t}=window.getComputedStyle(s);$.top+=parseInt(e,10)||0,$.left+=parseInt(t,10)||0}let k=a3(l),x={top:parseInt((o=window.getComputedStyle(l)).marginTop,10)||0,bottom:parseInt(o.marginBottom,10)||0,left:parseInt(o.marginLeft,10)||0,right:parseInt(o.marginRight,10)||0};k.width+=(null!=(t=x.left)?t:0)+(null!=(n=x.right)?n:0),k.height+=(null!=(r=x.top)?r:0)+(null!=(a=x.bottom)?a:0);let C={top:c.scrollTop,left:c.scrollLeft,width:c.scrollWidth,height:c.scrollHeight},w=aX(p),E=aX(y),D="BODY"===p.tagName?a3(y):a4(y,p);return"HTML"===y.tagName&&"BODY"===p.tagName&&(E.scroll.top=0,E.scroll.left=0),function(e,t,n,r,a,o,i,s,l,c,u,d,p,f,m,h){var g,b,y,v,A,$,k,x,C,w,E,D,S,B;let z,P,T,M=a0(e),{size:O,crossAxis:F,crossSize:I,placement:N,crossPlacement:j}=M,R=a1(t,s,n,M,u,d,c,p,m,h),L=u,V=a2(s,c,t,a,o+u,M);if(i&&r[O]>V){let e=a0(`${aq[N]} ${j}`),r=a1(t,s,n,e,u,d,c,p,m,h);a2(s,c,t,a,o+u,e)>V&&(M=e,R=r,L=u)}let H="bottom";"top"===M.axis?"top"===M.placement?H="top":"bottom"===M.placement&&(H="bottom"):"top"===M.crossAxis&&("top"===M.crossPlacement?H="bottom":"bottom"===M.crossPlacement&&(H="top"));let G=aQ(F,R[F],n[I],s,l,o,c);R[F]+=G;let U=(A=R,$=n.height,k=H,z=p?c.height:s[aY.height],P=null!=A.top?c.top+A.top:c.top+(z-(null!=(x=A.bottom)?x:0)-$),T="top"!==k?Math.max(0,s.height+s.top+(null!=(C=s.scroll.top)?C:0)-P-((null!=(w=a.top)?w:0)+(null!=(E=a.bottom)?E:0)+o)):Math.max(0,P+$-(s.top+(null!=(D=s.scroll.top)?D:0))-((null!=(S=a.top)?S:0)+(null!=(B=a.bottom)?B:0)+o)),Math.min(s.height-2*o,T));f&&f<U&&(U=f),n.height=Math.min(n.height,U),G=aQ(F,(R=a1(t,s,n,M,L,d,c,p,m,h))[F],n[I],s,l,o,c),R[F]+=G;let q={},W=t[F]-R[F]-a[aU[F]],K=W+.5*t[I],Y=m/2+h,J="left"===aU[F]?(null!=(g=a.left)?g:0)+(null!=(b=a.right)?b:0):(null!=(y=a.top)?y:0)+(null!=(v=a.bottom)?v:0),Z=n[I]-J-m/2-h,X=aV(K,t[F]+m/2-(R[F]+a[aU[F]]),t[F]+t[I]-m/2-(R[F]+a[aU[F]]));q[F]=aV(X,Y,Z),({placement:N,crossPlacement:j}=M),m?W=q[F]:"right"===j?W+=t[I]:"center"===j&&(W+=t[I]/2);let Q="left"===N||"top"===N?n[O]:0,ee={x:"top"===N||"bottom"===N?W:Q,y:"left"===N||"right"===N?W:Q};return{position:R,maxHeight:U,arrowOffsetLeft:q.left,arrowOffsetTop:q.top,placement:N,triggerAnchorPoint:ee}}(i,$,k,C,x,u,d,w,E,D,f,m,!!A&&"static"!==A,h,g,b)}({placement:(D=d,"rtl"===o?D.replace("start","right").replace("end","left"):D.replace("start","left").replace("end","right")),overlayNode:l.current,targetNode:s.current,scrollNode:u.current||l.current,padding:p,shouldFlip:f,boundaryElement:m,offset:h,crossOffset:g,maxHeight:$,arrowSize:null!=(w=null!=i?i:null==c||null==(n=c.current)?void 0:n.getBoundingClientRect().width)?w:0,arrowBoundaryOffset:k});if(z.position){if(B.style.top="",B.style.bottom="",B.style.left="",B.style.right="",Object.keys(z.position).forEach(e=>B.style[e]=z.position[e]+"px"),B.style.maxHeight=null!=z.maxHeight?z.maxHeight+"px":"",S&&document.activeElement&&u.current){let e=document.activeElement.getBoundingClientRect(),t=u.current.getBoundingClientRect(),n=e[S.type]-t[S.type];u.current.scrollTop+=n-S.offset}C(z)}},w);eC(D,w),eC(()=>(window.addEventListener("resize",a,!1),()=>{window.removeEventListener("resize",a,!1)}),[a=D]),a7({ref:l,onResize:D}),a7({ref:s,onResize:D});let S=(0,v.useRef)(!1);eC(()=>{let e,t=()=>{S.current=!0,clearTimeout(e),e=setTimeout(()=>{S.current=!1},500),D()},n=()=>{S.current&&t()};return null==a8||a8.addEventListener("resize",t),null==a8||a8.addEventListener("scroll",n),()=>{null==a8||a8.removeEventListener("resize",t),null==a8||a8.removeEventListener("scroll",n)}},[D]);let B=(0,v.useCallback)(()=>{S.current||null==A||A()},[A,S]);return!function(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,v.useEffect)(()=>{if(!n||null===r)return;let e=e=>{let n=e.target;if(!t.current||n instanceof Node&&!n.contains(t.current)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let a=r||a6.get(t.current);a&&a()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[n,r,t])}({triggerRef:s,isOpen:y,onClose:A&&B}),{overlayProps:{style:{position:x?"absolute":"fixed",top:x?void 0:0,left:x?void 0:0,zIndex:1e5,...null==x?void 0:x.position,maxHeight:null!=(t=null==x?void 0:x.maxHeight)?t:"100vh"}},placement:null!=(n=null==x?void 0:x.placement)?n:null,triggerAnchorPoint:null!=(r=null==x?void 0:x.triggerAnchorPoint)?r:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:null==x?void 0:x.arrowOffsetLeft,top:null==x?void 0:x.arrowOffsetTop}},updatePosition:D}}({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i&&!u?t.close:null});return!function(e={}){let{isDisabled:t}=e;eC(()=>{if(!t){let e,t,n,r,o;return 1==++or&&(a=tu()?(n=null,r=ex(oo(document,"touchstart",n=>{((e=n0(n.target,!0))!==document.documentElement||e!==document.body)&&e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=oa(e,"overscrollBehavior","contain"))},{passive:!1,capture:!0}),oo(document,"touchmove",t=>{e&&e!==document.documentElement&&e!==document.body?e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault():t.preventDefault()},{passive:!1,capture:!0}),oo(document,"touchend",()=>{t&&t()},{passive:!1,capture:!0}),oo(document,"focus",e=>{var t;let r=e.target;((t=r)instanceof HTMLInputElement&&!on.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable)&&((()=>{if(n)return;let e=window.pageXOffset,t=window.pageYOffset;n=ex(oo(window,"scroll",()=>{window.scrollTo(0,0)}),oa(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),oa(document.documentElement,"overflow","hidden"),oa(document.body,"marginTop",`-${t}px`),()=>{window.scrollTo(e,t)}),window.scrollTo(0,0)})(),r.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{r.style.transform="",ot&&(ot.height<window.innerHeight?requestAnimationFrame(()=>{oi(r)}):ot.addEventListener("resize",()=>oi(r),{once:!0}))}))},!0)),()=>{null==t||t(),null==n||n(),r()}):ex((o=window.innerWidth-document.documentElement.clientWidth)>0&&("scrollbarGutter"in document.documentElement.style?oa(document.documentElement,"scrollbarGutter","stable"):oa(document.documentElement,"paddingRight",`${o}px`)),oa(document.documentElement,"overflow","hidden"))),()=>{0==--or&&a()}}},[t])}({isDisabled:i||!t.isOpen}),(0,v.useEffect)(()=>{if(t.isOpen&&r.current){let t,u,d,p,f,m,h,g,b,y,v;if(i){var e,n,a,s,l,c=null!=(e=null==o?void 0:o.current)?e:r.current;let t=aL[aL.length-1];return t&&!t.visibleNodes.has(c)?(t.visibleNodes.add(c),()=>{t.visibleNodes.delete(c)}):void 0}return d=null!=(l=null==(u=(s={shouldUseInert:!0})instanceof(t=eQ((a=[null!=(n=null==o?void 0:o.current)?n:r.current],a[0]))).Element?{root:s}:s)?void 0:u.root)?l:document.body,p=(null==u?void 0:u.shouldUseInert)&&aj,f=new Set(a),m=new Set,h=(e,n)=>{p&&e instanceof t.HTMLElement?e.inert=n:n?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof t.HTMLElement&&(e.inert=!1))},g=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))f.add(t);let t=e=>{if(m.has(e)||f.has(e)||e.parentElement&&m.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of f)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&b(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;null!=e;)b(e),e=n.nextNode()}},b=e=>{var n;let r=null!=(n=aR.get(e))?n:0;(p&&e instanceof t.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===r||(0===r&&h(e,!0),m.add(e),aR.set(e,r+1))},aL.length&&aL[aL.length-1].disconnect(),g(d),(y=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&![...f,...m].some(e=>e.contains(t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?f.add(e):e instanceof Element&&g(e)})).observe(d,{childList:!0,subtree:!0}),v={visibleNodes:f,hiddenNodes:m,observe(){y.observe(d,{childList:!0,subtree:!0})},disconnect(){y.disconnect()}},aL.push(v),()=>{for(let e of(y.disconnect(),m)){let t=aR.get(e);null!=t&&(1===t?(h(e,!1),aR.delete(e)):aR.set(e,t-1))}v===aL[aL.length-1]?(aL.pop(),aL.length&&aL[aL.length-1].observe()):aL.splice(aL.indexOf(v),1)}}},[i,t.isOpen,r,o]),{popoverProps:eT(d,f),arrowProps:m,underlayProps:p,placement:h,triggerAnchorPoint:g}}({...o,offset:null!=(i=o.offset)?i:8,arrowRef:l,groupRef:d?u:c},e),b=o.popoverRef,y=function(e,t=!0){let[n,r]=(0,v.useState)(!0),a=n&&t;return eC(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,a]),oc(e,a,(0,v.useCallback)(()=>r(!1),[])),a}(b,!!h)||o.isEntering||!1,A=eF({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:h,isEntering:y,isExiting:t}}),$=!o.isNonModal||"SubmenuTrigger"===o.trigger,[k,x]=(0,v.useState)(!1);eC(()=>{b.current&&x($&&!b.current.querySelector("[role=dialog]"))},[b,$]),(0,v.useEffect)(()=>{k&&"SubmenuTrigger"!==o.trigger&&b.current&&!b.current.contains(document.activeElement)&&t8(b.current)},[k,b,o.trigger]);let C=(0,v.useMemo)(()=>{let e=A.children;if(r)for(let t of r)e=v.createElement(t.Provider,{value:null},e);return e},[A.children,r]),w={...p.style,"--trigger-anchor-point":g?`${g.x}px ${g.y}px`:void 0,...A.style},E=v.createElement("div",{...eT(eZ(o,{global:!0}),p),...A,role:k?"dialog":void 0,tabIndex:k?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:b,slot:o.slot||void 0,style:w,dir:o.dir,"data-trigger":o.trigger,"data-placement":h,"data-entering":y||void 0,"data-exiting":t||void 0},!o.isNonModal&&v.createElement(ol,{onDismiss:e.close}),v.createElement(aN.Provider,{value:{...m,placement:h,ref:l}},C),v.createElement(ol,{onDismiss:e.close}));return d?v.createElement(ax,{...o,shouldContainFocus:k,isExiting:t,portalContainer:null!=(s=null!=n?n:null==u?void 0:u.current)?s:void 0},E):v.createElement(ax,{...o,shouldContainFocus:k,isExiting:t,portalContainer:n},!o.isNonModal&&e.isOpen&&v.createElement("div",{"data-testid":"underlay",...f,style:{position:"fixed",inset:0}}),v.createElement("div",{ref:c,style:{display:"contents"}},v.createElement(op.Provider,{value:c},E)))}function oh(e){return(null==e?void 0:e.start)!=null&&null!=e.end}let o_=(0,v.createContext)(null),og=(0,v.createContext)(null),ob=(0,v.createContext)(null),oy=(0,v.createContext)(null),ov=[rg,np,aF,nh],oA=(0,v.forwardRef)(function(e,t){var n,r;[e,t]=eN(e,t,o_);let{validationBehavior:a}=eI(az)||{},o=null!=(r=null!=(n=e.validationBehavior)?n:a)?r:"native",i=function(e){var t,n;let r=ou(e),[a,o]=n9(e.value,e.defaultValue||null,e.onChange),[i]=(0,v.useState)(a),s=a||e.placeholderValue||null,[l,c]=al(s,e.granularity),u=null!=a?a.toDate(null!=c?c:"UTC"):null,d="hour"===l||"minute"===l||"second"===l,p=null==(t=e.shouldCloseOnSelect)||t,[f,m]=(0,v.useState)(null),[h,g]=(0,v.useState)(null);if(a&&(f=a,"hour"in a&&(h=a)),s&&!(l in s))throw Error("Invalid granularity "+l+" for value "+s.toString());let b=(null==a?void 0:a.calendar.identifier)==="gregory"&&"BC"===a.era,y=(0,v.useMemo)(()=>({granularity:l,timeZone:c,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:b}),[l,e.hourCycle,e.shouldForceLeadingZeros,c,e.hideTimeZone,b]),{minValue:A,maxValue:$,isDateUnavailable:k}=e,x=(0,v.useMemo)(()=>at(a,A,$,k,y),[a,A,$,k,y]),C=r4({...e,value:a,builtinValidation:x}),w=C.displayValidation.isInvalid,E=e.validationState||(w?"invalid":null),D=(e,t)=>{o("timeZone"in t?t.set((0,Z.gw)(e)):(0,Z.tR)(e,t)),m(null),g(null),C.commitValidation()};return{...C,value:a,defaultValue:null!=(n=e.defaultValue)?n:i,setValue:o,dateValue:f,timeValue:h,setDateValue:t=>{let n="function"==typeof p?p():p;d?h||n?D(t,h||ao(e.defaultValue||e.placeholderValue)):m(t):(o(t),C.commitValidation()),n&&r.setOpen(!1)},setTimeValue:e=>{f&&e?D(f,e):g(e)},granularity:l,hasTime:d,...r,setOpen(t){!t&&!a&&f&&d&&D(f,h||ao(e.defaultValue||e.placeholderValue)),r.setOpen(t)},validationState:E,isInvalid:w,formatValue:(e,t)=>u?new nD(e,aa(t,y)).format(u):"",getDateFormatter:(e,t)=>new nD(e,aa({},{...y,...t}))}}({...e,validationBehavior:o}),s=(0,v.useRef)(null),[l,c]=ej(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:u,labelProps:d,fieldProps:p,buttonProps:f,dialogProps:m,calendarProps:h,descriptionProps:g,errorMessageProps:b,...y}=function(e,t,n){var r;let a=eB(),o=eB(),i=eB(),s=nw((r=rA)&&r.__esModule?r.default:r,"@react-aria/datepicker"),{isInvalid:l,validationErrors:c,validationDetails:u}=t.displayValidation,{labelProps:d,fieldProps:p,descriptionProps:f,errorMessageProps:m}=rU({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||c}),h=rV(t,n),g=p["aria-labelledby"]||p.id,{locale:b}=eA(),y=t.formatValue(b,{month:"long"}),A=nJ(y?s.format("selectedDateDescription",{date:y}):""),$=[A["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")||void 0,k=eZ(e),x=(0,v.useMemo)(()=>rI(n),[n]),C=(0,v.useRef)(!1),{focusWithinProps:w}=nr({...e,isDisabled:t.isOpen,onBlurWithin:t=>{let n=document.getElementById(o);if(!(null==n?void 0:n.contains(t.relatedTarget))){var r,a;C.current=!1,null==(r=e.onBlur)||r.call(e,t),null==(a=e.onFocusChange)||a.call(e,!1)}},onFocusWithin:t=>{if(!C.current){var n,r;C.current=!0,null==(n=e.onFocus)||n.call(e,t),null==(r=e.onFocusChange)||r.call(e,!0)}}});return{groupProps:eT(k,h,p,A,w,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":g,"aria-describedby":$,onKeyDown(n){!t.isOpen&&e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){!t.isOpen&&e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...d,onClick:()=>{x.focusFirst()}},fieldProps:{...p,id:i,[rK]:"presentation","aria-describedby":$,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[r3]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:f,errorMessageProps:m,buttonProps:{...A,id:a,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${a} ${g}`,"aria-describedby":$,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:o,"aria-labelledby":`${a} ${g}`},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,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:l,validationErrors:c,validationDetails:u}}({...eR(e),label:c,validationBehavior:o},i,s),[A,$]=(0,v.useState)(null),k=(0,v.useCallback)(()=>{s.current&&$(s.current.offsetWidth+"px")},[]);a7({ref:s,onResize:k});let{focusProps:x,isFocused:C,isFocusVisible:w}=na({within:!0}),E=eF({...e,values:{state:i,isFocusWithin:C,isFocusVisible:w,isDisabled:e.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen},defaultClassName:"react-aria-DatePicker"}),D=eZ(e,{global:!0});return delete D.id,v.createElement(eO,{values:[[ob,i],[rg,{...u,ref:s,isInvalid:i.isInvalid}],[ah,p],[np,{...f,isPressed:i.isOpen}],[aF,{...d,ref:l,elementType:"span"}],[ro,h],[aw,i],[od,{trigger:"DatePicker",triggerRef:s,placement:"bottom start",style:{"--trigger-width":A},clearContexts:ov}],[aC,m],[nh,{slots:{description:g,errorMessage:b}}],[aD,y]]},v.createElement("div",{...eT(D,E,x),ref:t,slot:e.slot||void 0,"data-focus-within":C||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":w||void 0,"data-disabled":e.isDisabled||void 0,"data-open":i.isOpen||void 0}),v.createElement(aO,{autoComplete:e.autoComplete,name:e.name,isDisabled:e.isDisabled,state:i}))}),o$=(0,v.forwardRef)(function(e,t){var n,r;[e,t]=eN(e,t,og);let{validationBehavior:a}=eI(az)||{},o=null!=(r=null!=(n=e.validationBehavior)?n:a)?r:"native",i=function(e){var t,n,r,a;let o=ou(e),[i,s]=n9(e.value,e.defaultValue||null,e.onChange),[l]=(0,v.useState)(i),[c,u]=(0,v.useState)(()=>i||{start:null,end:null});null==i&&c.start&&c.end&&u(c={start:null,end:null});let d=i||c,p=e=>{u(d=e||{start:null,end:null}),oh(d)?s(d):s(null)},[f,m]=al((null==d?void 0:d.start)||(null==d?void 0:d.end)||e.placeholderValue||null,e.granularity),h="hour"===f||"minute"===f||"second"===f,g=null==(r=e.shouldCloseOnSelect)||r,[b,y]=(0,v.useState)(null),[A,$]=(0,v.useState)(null);d&&oh(d)&&(b=d,"hour"in d.start&&(A=d));let k=(e,t)=>{p({start:"timeZone"in t.start?t.start.set((0,Z.gw)(e.start)):(0,Z.tR)(e.start,t.start),end:"timeZone"in t.end?t.end.set((0,Z.gw)(e.end)):(0,Z.tR)(e.end,t.end)}),y(null),$(null),P.commitValidation()},x=t=>{let n="function"==typeof g?g():g;h?oh(t)&&(n||(null==A?void 0:A.start)&&(null==A?void 0:A.end))?k(t,{start:(null==A?void 0:A.start)||ao(e.placeholderValue),end:(null==A?void 0:A.end)||ao(e.placeholderValue)}):y(t):oh(t)?(p(t),P.commitValidation()):y(t),n&&o.setOpen(!1)},C=e=>{oh(b)&&oh(e)?k(b,e):$(e)},w=(null==d||null==(t=d.start)?void 0:t.calendar.identifier)==="gregory"&&"BC"===d.start.era||(null==d||null==(n=d.end)?void 0:n.calendar.identifier)==="gregory"&&"BC"===d.end.era,E=(0,v.useMemo)(()=>({granularity:f,timeZone:m,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:w}),[f,e.hourCycle,e.shouldForceLeadingZeros,m,e.hideTimeZone,w]),{minValue:D,maxValue:S,isDateUnavailable:B}=e,z=(0,v.useMemo)(()=>{var e,t,n;let r;return r=r8(at(null!=(t=null==(e=d)?void 0:e.start)?t:null,D,S,B,E),at(null!=(n=null==e?void 0:e.end)?n:null,D,S,B,E)),(null==e?void 0:e.end)!=null&&null!=e.start&&0>e.end.compare(e.start)&&(r=r8(r,{isInvalid:!0,validationErrors:[(nv.getGlobalDictionaryForPackage("@react-stately/datepicker")||r9).getStringForLocale("rangeReversed",ae())],validationDetails:{...rQ,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),r},[d,D,S,B,E]),P=r4({...e,value:i,name:(0,v.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:z}),T=P.displayValidation.isInvalid,M=e.validationState||(T?"invalid":null);return{...P,value:d,defaultValue:null!=(a=e.defaultValue)?a:l,setValue:p,dateRange:b,timeRange:A,granularity:f,hasTime:h,setDate(e,t){var n,r;"start"===e?x({start:t,end:null!=(n=null==b?void 0:b.end)?n:null}):x({start:null!=(r=null==b?void 0:b.start)?r:null,end:t})},setTime(e,t){var n,r;"start"===e?C({start:t,end:null!=(n=null==A?void 0:A.end)?n:null}):C({start:null!=(r=null==A?void 0:A.start)?r:null,end:t})},setDateTime(e,t){var n,r;"start"===e?p({start:t,end:null!=(n=null==d?void 0:d.end)?n:null}):p({start:null!=(r=null==d?void 0:d.start)?r:null,end:t})},setDateRange:x,setTimeRange:C,...o,setOpen(t){!t&&!((null==d?void 0:d.start)&&(null==d?void 0:d.end))&&oh(b)&&h&&k(b,{start:(null==A?void 0:A.start)||ao(e.placeholderValue),end:(null==A?void 0:A.end)||ao(e.placeholderValue)}),o.setOpen(t)},validationState:M,isInvalid:T,formatValue(t,n){let r;if(!d||!d.start||!d.end)return null;let a="timeZone"in d.start?d.start.timeZone:void 0,o=e.granularity||(d.start&&"minute"in d.start?"minute":"day"),i="timeZone"in d.end?d.end.timeZone:void 0,s=e.granularity||(d.end&&"minute"in d.end?"minute":"day"),l=aa(n,{granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===d.start.calendar.identifier&&"BC"===d.start.era||"gregory"===d.end.calendar.identifier&&"BC"===d.end.era}),c=d.start.toDate(a||"UTC"),u=d.end.toDate(i||"UTC"),p=new nD(t,l);if(a===i&&o===s&&0!==d.start.compare(d.end)){try{let e=p.formatRangeToParts(c,u),t=-1;for(let n=0;n<e.length;n++){let r=e[n];if("shared"===r.source&&"literal"===r.type)t=n;else if("endRange"===r.source)break}let n="",r="";for(let a=0;a<e.length;a++)a<t?n+=e[a].value:a>t&&(r+=e[a].value);return{start:n,end:r}}catch{}r=p}else r=new nD(t,aa(n,{granularity:s,timeZone:i,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:p.format(c),end:r.format(u)}},getDateFormatter:(e,t)=>new nD(e,aa({},{...E,...t}))}}({...e,validationBehavior:o}),s=(0,v.useRef)(null),[l,c]=ej(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:u,labelProps:d,startFieldProps:p,endFieldProps:f,buttonProps:m,dialogProps:h,calendarProps:g,descriptionProps:b,errorMessageProps:y,...A}=function(e,t,n){var r,a,o,i,s,l,c,u;let d=nw((u=rA)&&u.__esModule?u.default:u,"@react-aria/datepicker"),{isInvalid:p,validationErrors:f,validationDetails:m}=t.displayValidation,{labelProps:h,fieldProps:g,descriptionProps:b,errorMessageProps:y}=rU({...e,labelElementType:"span",isInvalid:p,errorMessage:e.errorMessage||f}),A=g["aria-labelledby"]||g.id,{locale:$}=eA(),k=t.formatValue($,{month:"long"}),x=nJ(k?d.format("selectedRangeDescription",{startDate:k.start,endDate:k.end}):""),C={"aria-label":d.format("startDate"),"aria-labelledby":A},w={"aria-label":d.format("endDate"),"aria-labelledby":A},E=eB(),D=eB(),S=rV(t,n),B=[x["aria-describedby"],g["aria-describedby"]].filter(Boolean).join(" ")||void 0,z=(0,v.useMemo)(()=>rI(n,{accept:e=>e.id!==E}),[n,E]),P={[rY]:z,[rK]:"presentation","aria-describedby":B,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},T=eZ(e),M=(0,v.useRef)(!1),{focusWithinProps:O}=nr({...e,isDisabled:t.isOpen,onBlurWithin:t=>{let n=document.getElementById(D);if(!(null==n?void 0:n.contains(t.relatedTarget))){var r,a;M.current=!1,null==(r=e.onBlur)||r.call(e,t),null==(a=e.onFocusChange)||a.call(e,!1)}},onFocusWithin:t=>{if(!M.current){var n,r;M.current=!0,null==(n=e.onFocus)||n.call(e,t),null==(r=e.onFocusChange)||r.call(e,!0)}}}),F=(0,v.useRef)(r1),I=(0,v.useRef)(r1);return{groupProps:eT(T,S,g,x,O,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":B,onKeyDown(n){!t.isOpen&&e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){!t.isOpen&&e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...h,onClick:()=>{z.focusFirst()}},buttonProps:{...x,id:E,"aria-haspopup":"dialog","aria-label":d.format("calendar"),"aria-labelledby":`${E} ${A}`,"aria-describedby":B,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:D,"aria-labelledby":`${E} ${A}`},startFieldProps:{...C,...P,value:null!=(l=null==(r=t.value)?void 0:r.start)?l:null,defaultValue:null==(a=t.defaultValue)?void 0:a.start,onChange:e=>t.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,form:e.form,[r3]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){F.current=e,t.updateValidation(r8(e,I.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...w,...P,value:null!=(c=null==(o=t.value)?void 0:o.end)?c:null,defaultValue:null==(i=t.defaultValue)?void 0:i.end,onChange:e=>t.setDateTime("end",e),name:e.endName,form:e.form,[r3]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){I.current=e,t.updateValidation(r8(F.current,e))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:b,errorMessageProps:y,calendarProps:{autoFocus:!0,value:(null==(s=t.dateRange)?void 0:s.start)&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:p,validationErrors:f,validationDetails:m}}({...eR(e),label:c,validationBehavior:o},i,s),[$,k]=(0,v.useState)(null),x=(0,v.useCallback)(()=>{s.current&&k(s.current.offsetWidth+"px")},[]);a7({ref:s,onResize:x});let{focusProps:C,isFocused:w,isFocusVisible:E}=na({within:!0}),D=eF({...e,values:{state:i,isFocusWithin:w,isFocusVisible:E,isDisabled:e.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen},defaultClassName:"react-aria-DateRangePicker"}),S=eZ(e,{global:!0});return delete S.id,v.createElement(eO,{values:[[oy,i],[rg,{...u,ref:s,isInvalid:i.isInvalid}],[np,{...m,isPressed:i.isOpen}],[aF,{...d,ref:l,elementType:"span"}],[ri,g],[aw,i],[od,{trigger:"DateRangePicker",triggerRef:s,placement:"bottom start",style:{"--trigger-width":$},clearContexts:ov}],[aC,h],[ah,{slots:{start:p,end:f}}],[nh,{slots:{description:b,errorMessage:y}}],[aD,A]]},v.createElement("div",{...eT(S,D,C),ref:t,slot:e.slot||void 0,"data-focus-within":w||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":E||void 0,"data-disabled":e.isDisabled||void 0,"data-open":i.isOpen||void 0}))});var ok=n(42729),ox=n(22613),oC=n(47197),ow={};ow.styleTagTransform=F(),ow.setAttributes=P(),ow.insert=B().bind(null,"head"),ow.domAPI=D(),ow.insertStyleElement=M(),w()(oC.A,ow);let oE=oC.A&&oC.A.locals?oC.A.locals:void 0;var oD=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-activity",iconProps:e})})),oS=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-add",iconProps:e})})),oB=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-arrow-down",iconProps:e})})),oz=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-arrow-left",iconProps:e})})),oP=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-arrow-right",iconProps:e})})),oT=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-arrow-up",iconProps:e})})),oM=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-baby",iconProps:e})})),oO=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-calendar-heat-map",iconProps:e})})),oF=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-calendar",iconProps:e})})),oI=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-caret-down",iconProps:e})})),oN=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-caret-left",iconProps:e})})),oj=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-caret-right",iconProps:e})})),oR=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-caret-up",iconProps:e})})),oL=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-checkmark-filled",iconProps:e})})),oV=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-checkmark-outline",iconProps:e})})),oH=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-chart-average",iconProps:e})})),oG=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-chemistry",iconProps:e})})),oU=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-chevron-down",iconProps:e})})),oq=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-chevron-left",iconProps:e})})),oW=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-chevron-right",iconProps:e})})),oK=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-chevron-up",iconProps:e})})),oY=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-close-filled",iconProps:e})})),oJ=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-close-outline",iconProps:e})})),oZ=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-close",iconProps:e})})),oX=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-document-attachment",iconProps:e})})),oQ=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-document",iconProps:e})})),o0=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-download",iconProps:e})})),o1=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-drug-order",iconProps:e})})),o2=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-edit",iconProps:e})})),o3=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-event-schedule",iconProps:e})})),o4=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-events",iconProps:e})})),o5=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-gender-female",iconProps:e})})),o6=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-gender-male",iconProps:e})})),o7=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-gender-other",iconProps:e})})),o8=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-gender-unknown",iconProps:e})})),o9=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-generic-order-type",iconProps:e})})),ie=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-group",iconProps:e})})),it=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-group-access",iconProps:e})})),ir=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-hospital-bed",iconProps:e})})),ia=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-image-medical",iconProps:e})})),io=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-inventory-management",iconProps:e})})),ii=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-information",iconProps:e})})),is=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-information-filled",iconProps:e})})),il=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-information-square",iconProps:e})})),ic=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-lab-order",iconProps:e})})),iu=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-list-checked",iconProps:e})})),id=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-location",iconProps:e})})),ip=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-pict-material-order",iconProps:e})})),im=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-maximize",iconProps:e})})),ih=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-medication",iconProps:e})})),i_=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-message-queue",iconProps:e})})),ig=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-microscope",iconProps:e})})),ib=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-money",iconProps:e})})),iy=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-mother",iconProps:e})})),iv=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-movement",iconProps:e})})),iA=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-overflow-menu--horizontal",iconProps:e})})),i$=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-overflow-menu--horizontal",iconProps:e})})),ik=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-pedestrian-family",iconProps:e})})),ix=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-pen",iconProps:e})})),iC=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-print",iconProps:e})})),iw=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-pict-procedure-order",iconProps:e})})),iE=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-programs",iconProps:e})})),iD=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-pict-referral-order",iconProps:e})})),iS=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-renew",iconProps:e})})),iB=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-report",iconProps:e})})),iz=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-reset",iconProps:e})})),iP=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-translate",iconProps:e})})),iT=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-save",iconProps:e})})),iM=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-search",iconProps:e})})),iO=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-switcher",iconProps:e})})),iF=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-shopping-cart",iconProps:e})})),iI=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-shopping-cart--arrow-down",iconProps:e})})),iN=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-sticky-note-add",iconProps:e})})),ij=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-syringe",iconProps:e})})),iR=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-table-of-contents",iconProps:e})})),iL=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-table",iconProps:e})})),iV=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-time",iconProps:e})})),iH=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-tools",iconProps:e})})),iG=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-trash-can",iconProps:e})})),iU=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-tree-view--alt",iconProps:e})})),iq=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-user-avatar",iconProps:e})})),iW=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-user-follow",iconProps:e})})),iK=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-user-xray",iconProps:e})})),iY=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-password",iconProps:e})})),iJ=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-user",iconProps:e})})),iZ=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-view-off",iconProps:e})})),iX=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-view",iconProps:e})})),iQ=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-warning",iconProps:e})})),i0=iQ,i1=oX,i2=iu,i3=ia,i4=iI,i5=(0,v.memo)((0,v.forwardRef)(function(e,t){var n=e.icon,r=e.fallback,a=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["icon","fallback"]),o=(0,v.useRef)(document.getElementById(n));return(0,v.useEffect)(function(){var e=document.getElementById("omrs-svgs-container"),t=new MutationObserver(function(e){var t=!0,r=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var l=i.value;"childList"===l.type&&(o.current=document.getElementById(n))}}catch(e){r=!0,a=e}finally{try{t||null==s.return||s.return()}finally{if(r)throw a}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[n]),A().createElement(x.fS,{value:o.current,fallback:r},A().createElement(i6,{ref:t,icon:n,iconProps:a}))})),i6=(0,v.memo)((0,v.forwardRef)(function(e,t){var n=e.icon,r=Object.assign({},{fill:"currentColor",size:20},e.iconProps),a=r.className,o=r.fill,i=r.size;(i<=0||i>72)&&(console.error("Invalid size '".concat(i,"' specified for ").concat(n,". Defaulting to 20.")),i=20);var s=(0,v.useRef)(null);return(0,v.useImperativeHandle)(t,function(){return s.current}),(0,v.useEffect)(function(){s.current&&"currentColor"!==o&&s.current.style.setProperty("--omrs-icon-fill",o)},[]),A().createElement("svg",{ref:s,className:k()("omrs-icon",oE.icon,a),height:i,width:i,viewBox:"0 0 16 16"},A().createElement("use",{href:"#".concat(n)}))})),i7=n(23464),i8=n.n(i7);function i9(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function se(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)return n?e:void 0;if("string"==typeof e&&!e)return n?null:void 0;if(i9(e,rX.ng)||i9(e,rX._l)||i9(e,rX.Ip))return t?(0,Z.yP)(e,t):e;var r=i8()(e).toDate(),a=new rX.ng(r.getFullYear(),r.getMonth()+1,r.getDate());return t?(0,Z.yP)(a,t):a}function st(e){if(e)return e.toDate((0,X.Xj)())}var sn=(0,v.createContext)(null),sr={};function sa(){return"undefined"!=typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}sr={"ar-AE":{decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:`\u{62D}\u{642}\u{644} \u{631}\u{642}\u{645}\u{64A}`},"bg-BG":{decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:`\u{41D}\u{43E}\u{43C}\u{435}\u{440} \u{43D}\u{430} \u{43F}\u{43E}\u{43B}\u{435}\u{442}\u{43E}`},"cs-CZ":{decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:`\u{10C}\xedseln\xe9 pole`},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:`\u{3A0}\u{3B5}\u{3B4}\u{3AF}\u{3BF} \u{3B1}\u{3C1}\u{3B9}\u{3B8}\u{3BC}\u{3BF}\u{3CD}`},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo de n\xfamero`},"et-EE":{decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:`Numbri v\xe4li`},"fi-FI":{decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:`Numerokentt\xe4`},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:`\u{5E9}\u{5D3}\u{5D4} \u{5DE}\u{5E1}\u{5E4}\u{5E8}`},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:`Sz\xe1mmez\u{151}`},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:`\u{6570}\u{5024}\u{30D5}\u{30A3}\u{30FC}\u{30EB}\u{30C9}`},"ko-KR":{decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:`\u{BC88}\u{D638} \u{D544}\u{B4DC}`},"lt-LT":{decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:`Skait\u{13C}u lauks`},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo de n\xfamero`},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo num\xe9rico`},"ro-RO":{decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:`C\xe2mp numeric`},"ru-RU":{decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:`\u{427}\u{438}\u{441}\u{43B}\u{43E}\u{432}\u{43E}\u{435} \u{43F}\u{43E}\u{43B}\u{435}`},"sk-SK":{decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:`\u{10C}\xedseln\xe9 pole`},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:`\u{160}tevil\u{10D}no polje`},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:`Nummerf\xe4lt`},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:`Say\u{131} alan\u{131}`},"uk-UA":{decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:`\u{41F}\u{43E}\u{43B}\u{435} \u{43D}\u{43E}\u{43C}\u{435}\u{440}\u{430}`},"zh-CN":{decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:`\u{6570}\u{5B57}\u{5B57}\u{6BB5}`},"zh-TW":{decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:`\u{6578}\u{5B57}\u{6B04}\u{4F4D}`}};var so=n(93092);function si(e={}){let{locale:t}=eA();return(0,v.useMemo)(()=>new(0,so.K)(t,e),[t,e])}var ss={};function sl(e){var t;let n=(0,v.useRef)(void 0),{value:r,textValue:a,minValue:o,maxValue:i,isDisabled:s,isReadOnly:l,isRequired:c,onIncrement:u,onIncrementPage:d,onDecrement:p,onDecrementPage:f,onDecrementToMin:m,onIncrementToMax:h}=e,g=nw((t=ss)&&t.__esModule?t.default:t,"@react-aria/spinbutton");(0,v.useEffect)(()=>()=>clearTimeout(n.current),[]);let b=(0,v.useRef)(!1),y=()=>{b.current=!0},A=()=>{b.current=!1},$=""===a?g.format("Empty"):(a||`${r}`).replace("-","−");(0,v.useEffect)(()=>{b.current&&(eV&&eV.clear("assertive"),eH($,"assertive"))},[$]);let k=eE(e=>{clearTimeout(n.current),null==u||u(),n.current=window.setTimeout(()=>{(void 0===i||isNaN(i)||void 0===r||isNaN(r)||r<i)&&k(60)},e)}),x=eE(e=>{clearTimeout(n.current),null==p||p(),n.current=window.setTimeout(()=>{(void 0===o||isNaN(o)||void 0===r||isNaN(r)||r>o)&&x(60)},e)}),C=e=>{e.preventDefault()},{addGlobalListener:w,removeAllGlobalListeners:E}=tD();return{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===r||isNaN(r)?void 0:r,"aria-valuetext":$,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":s||void 0,"aria-readonly":l||void 0,"aria-required":c||void 0,onKeyDown:e=>{if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey&&!l&&!e.nativeEvent.isComposing)switch(e.key){case"PageUp":if(d){e.preventDefault(),null==d||d();break}case"ArrowUp":case"Up":u&&(e.preventDefault(),null==u||u());break;case"PageDown":if(f){e.preventDefault(),null==f||f();break}case"ArrowDown":case"Down":p&&(e.preventDefault(),null==p||p());break;case"Home":m&&(e.preventDefault(),null==m||m());break;case"End":h&&(e.preventDefault(),null==h||h())}},onFocus:y,onBlur:A},incrementButtonProps:{onPressStart:()=>{k(400),w(window,"contextmenu",C)},onPressEnd:()=>{clearTimeout(n.current),E()},onFocus:y,onBlur:A},decrementButtonProps:{onPressStart:()=>{x(400),w(window,"contextmenu",C)},onPressEnd:()=>{clearTimeout(n.current),E()},onFocus:y,onBlur:A}}}ss={"ar-AE":{Empty:`\u{641}\u{627}\u{631}\u{63A}`},"bg-BG":{Empty:`\u{418}\u{437}\u{43F}\u{440}\u{430}\u{437}\u{43D}\u{438}`},"cs-CZ":{Empty:`Pr\xe1zdn\xe9`},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:`\u{386}\u{3B4}\u{3B5}\u{3B9}\u{3BF}`},"en-US":{Empty:"Empty"},"es-ES":{Empty:`Vac\xedo`},"et-EE":{Empty:`T\xfchjenda`},"fi-FI":{Empty:`Tyhj\xe4`},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:`\u{5E8}\u{5D9}\u{5E7}`},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:`\xdcres`},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:`\u{7A7A}`},"ko-KR":{Empty:`\u{BE44}\u{C5B4} \u{C788}\u{C74C}`},"lt-LT":{Empty:`Tu\u{161}\u{10D}ias`},"lv-LV":{Empty:`Tuk\u{161}s`},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:`\u{41D}\u{435} \u{437}\u{430}\u{43F}\u{43E}\u{43B}\u{43D}\u{435}\u{43D}\u{43E}`},"sk-SK":{Empty:`Pr\xe1zdne`},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:`Bo\u{15F}`},"uk-UA":{Empty:`\u{41F}\u{443}\u{441}\u{442}\u{43E}`},"zh-CN":{Empty:`\u{7A7A}`},"zh-TW":{Empty:`\u{7A7A}\u{767D}`}};var sc=n(95899);function su(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){let a=t.toString().split("."),o=n.toString().split("."),i=Math.pow(10,Math.max(a[1]&&a[1].length||0,o[1]&&o[1].length||0));t=Math.round(t*i),n=Math.round(n*i),r=("+"===e?t+n:t-n)/i}return r}let sd=(0,v.createContext)(null),sp=(0,v.createContext)(null),sf=(0,v.forwardRef)(function(e,t){var n,r;[e,t]=eN(e,t,sd);let{validationBehavior:a}=eI(az)||{},o=null!=(r=null!=(n=e.validationBehavior)?n:a)?r:"native",{locale:i}=eA(),s=function(e){let{minValue:t,maxValue:n,step:r,formatOptions:a,value:o,defaultValue:i=NaN,onChange:s,locale:l,isDisabled:c,isReadOnly:u}=e;null===o&&(o=NaN),void 0===o||isNaN(o)||(o=void 0===r||isNaN(r)?aV(o,t,n):aG(o,t,n,r)),isNaN(i)||(i=void 0===r||isNaN(r)?aV(i,t,n):aG(i,t,n,r));let[d,p]=n9(o,isNaN(i)?NaN:i,s),[f]=(0,v.useState)(d),[m,h]=(0,v.useState)(()=>isNaN(d)?"":new(0,so.K)(l,a).format(d)),g=(0,v.useMemo)(()=>new(0,sc.d)(l,a),[l,a]),b=(0,v.useMemo)(()=>g.getNumberingSystem(m),[g,m]),y=(0,v.useMemo)(()=>new(0,so.K)(l,{...a,numberingSystem:b}),[l,a,b]),A=(0,v.useMemo)(()=>y.resolvedOptions(),[y]),$=(0,v.useCallback)(e=>isNaN(e)||null===e?"":y.format(e),[y]),k=r4({...e,value:d}),x=void 0===r||isNaN(r)?1:r;"percent"===A.style&&(void 0===r||isNaN(r))&&(x=.01);let[C,w]=(0,v.useState)(d),[E,D]=(0,v.useState)(l),[S,B]=(0,v.useState)(a);Object.is(d,C)&&l===E&&a===S||(h($(d)),w(d),D(l),B(a));let z=(0,v.useMemo)(()=>g.parse(m),[g,m]),P=(e,r=0)=>{if(isNaN(z))return aG(isNaN(r)?0:r,t,n,x);{let r=aG(z,t,n,x);return"+"===e&&r>z||"-"===e&&r<z?r:aG(su(e,z,x),t,n,x)}},T=(0,v.useMemo)(()=>!c&&!u&&(isNaN(z)||void 0===n||isNaN(n)||aG(z,t,n,x)>z||su("+",z,x)<=n),[c,u,t,n,x,z]),M=(0,v.useMemo)(()=>!c&&!u&&(isNaN(z)||void 0===t||isNaN(t)||aG(z,t,n,x)<z||su("-",z,x)>=t),[c,u,t,n,x,z]);return{...k,validate:e=>g.isValidPartialNumber(e,t,n),increment:()=>{let e=P("+",t);e===d&&h($(e)),p(e),k.commitValidation()},incrementToMax:()=>{null!=n&&(p(aG(n,t,n,x)),k.commitValidation())},decrement:()=>{let e=P("-",n);e===d&&h($(e)),p(e),k.commitValidation()},decrementToMin:()=>{null!=t&&(p(t),k.commitValidation())},canIncrement:T,canDecrement:M,minValue:t,maxValue:n,numberValue:z,defaultNumberValue:isNaN(i)?f:i,setNumberValue:p,setInputValue:h,inputValue:m,commit:()=>{let e;if(!m.length){p(NaN),h(void 0===o?"":$(d));return}isNaN(z)?h($(d)):(e=void 0===r||isNaN(r)?aV(z,t,n):aG(z,t,n,r),p(e=g.parse($(e))),h($(void 0===o?e:d)),k.commitValidation())}}}({...e,locale:i,validationBehavior:o}),l=(0,v.useRef)(null),[c,u]=ej(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:d,groupProps:p,inputProps:f,incrementButtonProps:m,decrementButtonProps:h,descriptionProps:g,errorMessageProps:b,...y}=function(e,t,n){var r,a;let o,{id:i,decrementAriaLabel:s,incrementAriaLabel:l,isDisabled:c,isReadOnly:u,isRequired:d,minValue:p,maxValue:f,autoFocus:m,label:h,formatOptions:g,onBlur:b=()=>{},onFocus:y,onFocusChange:A,onKeyDown:$,onKeyUp:k,description:x,errorMessage:C,isWheelDisabled:w,...E}=e,{increment:D,incrementToMax:S,decrement:B,decrementToMin:z,numberValue:P,inputValue:T,commit:M,commitValidation:O}=t,F=nw((a=sr)&&a.__esModule?a.default:a,"@react-aria/numberfield"),I=eB(i),{focusProps:N}=t9({onBlur(){M()}}),j=si(g),R=(0,v.useMemo)(()=>j.resolvedOptions(),[j]),L=si({...g,currencySign:void 0}),V=(0,v.useMemo)(()=>isNaN(P)?"":L.format(P),[L,P]),{spinButtonProps:H,incrementButtonProps:G,decrementButtonProps:U}=sl({isDisabled:c,isReadOnly:u,isRequired:d,maxValue:f,minValue:p,onIncrement:D,onIncrementToMax:S,onDecrement:B,onDecrementToMin:z,value:P,textValue:V}),[q,W]=(0,v.useState)(!1),{focusWithinProps:K}=nr({isDisabled:c,onFocusWithinChange:W});!function(e,t){let{onScroll:n,isDisabled:r}=e,a=(0,v.useCallback)(e=>{!e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);nW(t,"wheel",r?void 0:a)}({onScroll:(0,v.useCallback)(e=>{!(Math.abs(e.deltaY)<=Math.abs(e.deltaX))&&(e.deltaY>0?D():e.deltaY<0&&B())},[B,D]),isDisabled:w||c||u||!q},n);let Y=(null!=(r=R.maximumFractionDigits)?r:0)>0,J=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,Z="numeric";tl()?J?Z="text":Y&&(Z="decimal"):tf()&&(J?Z="numeric":Y&&(Z="decimal"));let X=eZ(e),Q=(0,v.useCallback)(e=>{e.nativeEvent.isComposing||("Enter"===e.key?(M(),O()):e.continuePropagation())},[M,O]),{isInvalid:ee,validationErrors:et,validationDetails:en}=t.displayValidation,{labelProps:er,inputProps:ea,descriptionProps:eo,errorMessageProps:ei}=function(e,t,n){let r=eE(e=>{let r=n.current;if(!r)return;let a=null;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":a=r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentForward":a=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd+1):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentBackward":a=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart-1)+r.value.slice(r.selectionStart):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":a=r.value.slice(r.selectionStart);break;default:null!=e.data&&(a=r.value.slice(0,r.selectionStart)+e.data+r.value.slice(r.selectionEnd))}null!=a&&t.validate(a)||e.preventDefault()});(0,v.useEffect)(()=>{if(!sa()||!n.current)return;let e=n.current;return e.addEventListener("beforeinput",r,!1),()=>{e.removeEventListener("beforeinput",r,!1)}},[n,r]);let a=sa()?null:e=>{let n=e.target.value.slice(0,e.target.selectionStart)+e.data+e.target.value.slice(e.target.selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:o,inputProps:i,descriptionProps:s,errorMessageProps:l,...c}=function(e,t){var n;let{inputElementType:r="input",isDisabled:a=!1,isRequired:o=!1,isReadOnly:i=!1,type:s="text",validationBehavior:l="aria"}=e,[c,u]=n9(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=nn(e,t),p=r4({...e,value:c}),{isInvalid:f,validationErrors:m,validationDetails:h}=p.displayValidation,{labelProps:g,fieldProps:b,descriptionProps:y,errorMessageProps:A}=rU({...e,isInvalid:f,errorMessage:e.errorMessage||m}),$=eZ(e,{labelable:!0}),k={type:s,pattern:e.pattern},[x]=(0,v.useState)(c);return rG(t,null!=(n=e.defaultValue)?n:x,u),rq(e,p,t),(0,v.useEffect)(()=>{if(t.current instanceof eQ(t.current).HTMLTextAreaElement){let e=t.current;Object.defineProperty(e,"defaultValue",{get:()=>e.value,set:()=>{},configurable:!0})}},[t]),{labelProps:g,inputProps:eT($,"input"===r?k:void 0,{disabled:a,readOnly:i,required:o&&"native"===l,"aria-required":o&&"aria"===l||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:c,onChange:e=>u(e.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(v.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...b}),descriptionProps:y,errorMessageProps:A,isInvalid:f,validationErrors:m,validationDetails:h}}(e,n),u=(0,v.useRef)(null);return{inputProps:eT(i,{onBeforeInput:a,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;u.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:a}=u.current;n.current.value=e,n.current.setSelectionRange(r,a),t.setInputValue(e)}}}),labelProps:o,descriptionProps:s,errorMessageProps:l,...c}}({...E,...X,name:void 0,form:void 0,label:h,autoFocus:m,isDisabled:c,isReadOnly:u,isRequired:d,validate:void 0,[r3]:t,value:T,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:I,type:"text",inputMode:Z,onChange:e=>{t.validate(e)&&t.setInputValue(e)},onBlur:b,onFocus:y,onFocusChange:A,onKeyDown:(0,v.useMemo)(()=>ex(Q,$),[Q,$]),onKeyUp:k,description:x,errorMessage:C},t,n);rG(n,t.defaultNumberValue,t.setNumberValue);let es=eT(H,N,ea,{role:null,"aria-roledescription":tu()?null:F.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(es["aria-required"]=void 0);let el=e=>{var t;document.activeElement!==n.current&&("mouse"===e.pointerType?null==(t=n.current)||t.focus():e.target.focus())},ec=e["aria-label"]||("string"==typeof e.label?e.label:"");ec||(o=null!=e.label?er.id:e["aria-labelledby"]);let eu=eB(),ed=eB(),ep=eT(G,{"aria-label":l||F.format("increase",{fieldLabel:ec}).trim(),id:o&&!l?eu:null,"aria-labelledby":o&&!l?`${eu} ${o}`:null,"aria-controls":I,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:el}),ef=eT(U,{"aria-label":s||F.format("decrease",{fieldLabel:ec}).trim(),id:o&&!s?ed:null,"aria-labelledby":o&&!s?`${ed} ${o}`:null,"aria-controls":I,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:el});return{groupProps:{...K,role:"group","aria-disabled":c,"aria-invalid":ee?"true":void 0},labelProps:er,inputProps:es,incrementButtonProps:ep,decrementButtonProps:ef,errorMessageProps:ei,descriptionProps:eo,isInvalid:ee,validationErrors:et,validationDetails:en}}({...eR(e),label:u,validationBehavior:o},s,l),A=eF({...e,values:{state:s,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-NumberField"}),$=eZ(e,{global:!0});return delete $.id,v.createElement(eO,{values:[[sp,s],[rg,p],[ry,{...f,ref:l}],[aF,{...d,ref:c}],[np,{slots:{increment:m,decrement:h}}],[nh,{slots:{description:g,errorMessage:b}}],[aD,y]]},v.createElement("div",{...$,...A,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-required":e.isRequired||void 0,"data-invalid":y.isInvalid||void 0}),e.name&&v.createElement("input",{type:"hidden",name:e.name,form:e.form,value:isNaN(s.numberValue)?"":s.numberValue}))});function sm(e,t){return parseInt((0,ox.Yq)(e,{calendar:t.calendar,locale:t.baseName,day:!1,month:!1,noToday:!0,numberingSystem:"latn"}))}var sh=(0,v.forwardRef)(function(e,t){var n=e.className,r=(0,v.useContext)(rs),a=(0,v.useContext)(rl),o=null!=r?r:a,i=(0,v.useContext)(sn),s=(0,X.Xj)(),l=(0,ox.Yq)(o.visibleRange.start.toDate(s),{calendar:i.calendar,locale:i.baseName,day:!1,year:!1,noToday:!0}),c=sm(o.visibleRange.start.toDate(s),i),u=o.maxValue?sm(o.maxValue.toDate(s),i):void 0,d=o.minValue?sm(o.minValue.toDate(s),i):void 0,p=(0,v.useCallback)(function(e){o.setFocusedDate(o.focusedDate.cycle("year",e-o.focusedDate.year))},[]);return o&&A().createElement("span",{ref:t,className:n},A().createElement("span",null,l),A().createElement(sf,{formatOptions:{useGrouping:!1},maxValue:u,minValue:d,onChange:p,value:c},A().createElement(rv,null),A().createElement(rb,null,A().createElement(nf,{slot:"increment"},A().createElement(oR,{size:8})),A().createElement(nf,{slot:"decrement"},A().createElement(oI,{size:8})))))});function s_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function sb(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var sy=(0,v.forwardRef)(function(e,t){var n,r=(0,v.useContext)(ob),a=(n=eN({slot:e.slot},t,ah),function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(n,2)||function(e,t){if(e){if("string"==typeof e)return s_(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s_(e,t)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=a[0],i=a[1],s=eA().locale,l=af(sb(sg({},o),{locale:s,createCalendar:J.d})),c=(0,v.useRef)(null),u=rJ(sb(sg({},o),{inputRef:c}),l,i),d=u.fieldProps,p=u.inputProps,f=(0,v.useCallback)(function(){l.isDisabled||r.toggle()},[]);return A().createElement(eO,{values:[[a_,l],[ry,sb(sg({},p),{ref:c})],[rg,sb(sg({},d),{ref:i,isInvalid:l.isInvalid})]]},A().createElement(rb,sb(sg({},e),{id:e.id,ref:t,slot:e.slot||void 0,className:e.className,isDisabled:l.isDisabled,isInvalid:l.isInvalid,onClick:f}),l.segments.map(function(t,n){return(0,v.cloneElement)(e.children(t),{key:n})})),A().createElement(rv,null))});function sv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var sA=(0,v.forwardRef)(function(e,t){return(0,v.useContext)(ob).isInvalid?A().createElement(iQ,sv({ref:t,size:16},e)):A().createElement(oF,sv({ref:t,size:16},e))});class s${of(e){return this.dictionary.getStringForLocale(e,this.locale)}constructor(e,t){this.locale=e,this.dictionary=t}}let sk=new Map;function sx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function sC(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function sw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function sE(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var sD=(0,v.forwardRef)(function(e,t){var n,r,a,o,i,s,l,c,u,d,p=e.segment,f=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["segment"]),m=(0,v.useContext)(a_),h=e$(t),g=function(e,t,n){let r,a,o,i,s=(0,v.useRef)(""),{locale:l,direction:c}=eA(),u=function(){var e;let{locale:t}=eA(),n=nC((e=rA)&&e.__esModule?e.default:e,"@react-aria/datepicker");return(0,v.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new s$(t,n)}},[t,n])}(),{ariaLabel:d,ariaLabelledBy:p,ariaDescribedBy:f,focusManager:m}=rW.get(t),h=e.isPlaceholder?"":e.text,g=(0,v.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=nM({month:"long",timeZone:g.timeZone}),y=nM({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(h=y.format(t.dateValue));else{let e=b.format(t.dateValue);h=e!==h?`${h} \u{2013} ${e}`:e}let{spinButtonProps:A}=sl({value:e.value,textValue:h,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{s.current="",t.increment(e.type)},onDecrement:()=>{s.current="",t.decrement(e.type)},onIncrementPage:()=>{s.current="",t.incrementPage(e.type)},onDecrementPage:()=>{s.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{s.current="",void 0!==e.maxValue&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{s.current="",void 0!==e.minValue&&t.setSegment(e.type,e.minValue)}}),$=(0,v.useMemo)(()=>new(0,sc.d)(l,{maximumFractionDigits:0}),[l]),k=()=>{if(e.text===e.placeholder&&m.focusPrevious(),!$.isValidPartialNumber(e.text)||t.isReadOnly||e.isPlaceholder)"dayPeriod"===e.type&&t.clearSegment(e.type);else{let n=e.text.slice(0,-1),r=$.parse(n);0===(n=0===r?"":n).length||0===r?t.clearSegment(e.type):t.setSegment(e.type,r),s.current=n}},{startsWith:x}=(r=function(e){let{locale:t}=eA(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(sk.has(n))return sk.get(n);let r=new Intl.Collator(t,e);return sk.set(n,r),r}({usage:"search",sensitivity:"base"}),a=(0,v.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===r.compare(e.slice(0,t.length),t)),[r]),o=(0,v.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===r.compare(e.slice(-t.length),t)),[r]),i=(0,v.useCallback)((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let n=0,a=(t=t.normalize("NFC")).length;for(;n+a<=e.length;n++){let o=e.slice(n,n+a);if(0===r.compare(t,o))return!0}return!1},[r]),(0,v.useMemo)(()=>({startsWith:a,endsWith:o,contains:i}),[a,o,i])),C=nM({hour:"numeric",hour12:!0}),w=(0,v.useMemo)(()=>{let e=new Date;return e.setHours(0),C.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[C]),E=(0,v.useMemo)(()=>{let e=new Date;return e.setHours(12),C.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[C]),D=nM({year:"numeric",era:"narrow",timeZone:"UTC"}),S=(0,v.useMemo)(()=>{if("era"!==e.type)return[];let n=(0,Z.yP)(new(0,rX.ng)(1,1,1),t.calendar),r=t.calendar.getEras().map(e=>{let t=n.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:D.formatToParts(t).find(e=>"era"===e.type).value}}),a=function(e){e.sort();let t=e[0],n=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==n[e])return e;return 0}(r.map(e=>e.formatted));if(a)for(let e of r)e.formatted=e.formatted.slice(a);return r},[D,t.calendar,e.type]),B=n=>{if(t.isDisabled||t.isReadOnly)return;let r=s.current+n;switch(e.type){case"dayPeriod":if(x(w,n))t.setSegment("dayPeriod",0);else if(x(E,n))t.setSegment("dayPeriod",12);else break;m.focusNext();break;case"era":{let e=S.find(e=>x(e.formatted,n));e&&(t.setSegment("era",e.era),m.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!$.isValidPartialNumber(r))return;let a=$.parse(r),o=a,i=0===e.minValue;if("hour"===e.type&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":a>11&&(o=$.parse(n));break;case"h12":i=!1,a>12&&(o=$.parse(n))}void 0!==e.value&&e.value>=12&&a>1&&(a+=12)}else void 0!==e.maxValue&&a>e.maxValue&&(o=$.parse(n));if(isNaN(a))return;let l=0!==o||i;l&&t.setSegment(e.type,o),void 0!==e.maxValue&&(Number(a+"0")>e.maxValue||r.length>=String(e.maxValue).length)?(s.current="",l&&m.focusNext()):s.current=r}}};nW((0,v.useRef)("undefined"!=typeof document?document:null),"selectionchange",()=>{var e;let t=window.getSelection();(null==t?void 0:t.anchorNode)&&(null==(e=n.current)?void 0:e.contains(null==t?void 0:t.anchorNode))&&t.collapse(n.current)});let z=(0,v.useRef)("");nW(n,"beforeinput",r=>{if(n.current)switch(r.preventDefault(),r.inputType){case"deleteContentBackward":case"deleteContentForward":$.isValidPartialNumber(e.text)&&!t.isReadOnly&&k();break;case"insertCompositionText":z.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:null!=r.data&&B(r.data)}}),nW(n,"input",e=>{let{inputType:t,data:r}=e;"insertCompositionText"===t&&(n.current&&(n.current.textContent=z.current),null!=r&&(x(w,r)||x(E,r))&&B(r))}),eC(()=>{let e=n.current;return()=>{document.activeElement===e&&(m.focusPrevious()||m.focusNext())}},[n,m]);let P=tu()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e===(0,v.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])||t.isInvalid||(f=void 0);let T=eB(),M=!t.isDisabled&&!t.isReadOnly&&e.isEditable,O="literal"===e.type?"":u.of(e.type),F=nV({"aria-label":`${O}${d?`, ${d}`:""}${p?", ":""}`,"aria-labelledby":p});if("literal"===e.type)return{segmentProps:{"aria-hidden":!0}};let I={caretColor:"transparent"};if("rtl"===c){I.unicodeBidi="embed";let t=g[e.type];("numeric"===t||"2-digit"===t)&&(I.direction="ltr")}return{segmentProps:eT(A,F,{id:T,...P,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":f,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:M,suppressContentEditableWarning:M,spellCheck:M?"false":void 0,autoCorrect:M?"off":void 0,[parseInt(v.version,10)>=17?"enterKeyHint":"enterkeyhint"]:M?"next":void 0,inputMode:t.isDisabled||"dayPeriod"===e.type||"era"===e.type||!M?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:e=>{if("a"===e.key&&(ts()?e.metaKey:e.ctrlKey)&&e.preventDefault(),!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey)switch(e.key){case"Backspace":case"Delete":e.preventDefault(),e.stopPropagation(),k()}},onFocus:()=>{s.current="",n.current&&nQ(n.current,{containingElement:n0(n.current)});let e=window.getSelection();null==e||e.collapse(n.current)},style:I,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}(p,m,h).segmentProps,b=na(),y=b.focusProps,$=b.isFocused,k=b.isFocusVisible,x=nc(sE(sw({},f),{isDisabled:m.isDisabled||"literal"===p.type})),C=x.hoverProps,w=x.isHovered,E=(r=(n=sE(sw({},f),{values:sE(sw({},p),{isReadOnly:!p.isEditable,isInvalid:m.isInvalid,isDisabled:m.isDisabled,isHovered:w,isFocused:$,isFocusVisible:k}),defaultChildren:p.text})).className,a=n.style,o=n.children,s=void 0===(i=n.defaultClassName)?void 0:i,c=void 0===(l=n.defaultChildren)?void 0:l,u=n.defaultStyle,d=n.values,(0,v.useMemo)(function(){var e,t,n;return e="function"==typeof r?r(sC(sx({},d),{defaultClassName:s})):r,t="function"==typeof a?a(sC(sx({},d),{defaultStyle:u||{}})):a,n="function"==typeof o?o(sC(sx({},d),{defaultChildren:c})):null==o?c:o,{className:null!=e?e:s,style:t||u?sx({},u,t):void 0,children:null!=n?n:c,"data-rac":""}},[r,a,o,s,c,u,d])),D=(0,v.useCallback)(function(e){e.stopPropagation()},[]);return A().createElement("span",sE(sw({},eT(eZ(f),g,y,C),E),{ref:h,style:g.style,"data-placeholder":p.isPlaceholder||void 0,"data-invalid":m.isInvalid||void 0,"data-readonly":!p.isEditable||void 0,"data-disabled":m.isDisabled||void 0,"data-type":p.type,"data-hovered":w||void 0,"data-focused":$||void 0,"data-focus-visible":k||void 0,onClick:D}))}),sS=n(73335),sB={};sB.styleTagTransform=F(),sB.setAttributes=P(),sB.insert=B().bind(null,"head"),sB.domAPI=D(),sB.insertStyleElement=M(),w()(sS.A,sB);let sz=sS.A&&sS.A.locals?sS.A.locals:void 0;function sP(e){var t=e.children,n=e.isRangePicker,r=(0,v.useContext)(ob),a=(0,v.useContext)(oy),o=void 0!==n&&n?a:r,i=(0,U.useOnClickOutside)(function(){return null==o?void 0:o.close()});return A().createElement(aE,{className:sz.dialog,ref:i},t)}function sT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sM={short:!1,size:"md"};function sO(e){return A().createElement(ev,e)}var sF=(0,v.forwardRef)(function(e,t){var n,r,a,o=Object.assign({},sM,e),i=o.className,s=o.defaultValue,l=o.isDisabled,c=o.invalid,u=o.invalidText,d=o.isInvalid,p=o.label,f=o.labelText,m=o.light,h=o.maxDate,g=o.minDate,b=o.onChange,y=o.onChangeRaw,$=o.short,C=o.size,w=o.value,E=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(o,["className","defaultValue","isDisabled","invalid","invalidText","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","short","size","value"]),D=(0,x.UK)({externalModuleName:"@openmrs/esm-styleguide"}).preferredDateLocale,S=(0,v.useId)(),B=(0,v.useMemo)(function(){var e=(0,ok.J)();return D[e]&&(e=D[e]),e},[window.i18next.language]),z=(0,v.useMemo)(function(){var e=(0,ox.a7)(B);return void 0!==e?(0,J.d)(e):void 0},[B]),P=(0,v.useMemo)(function(){return new Intl.Locale(B,{calendar:null==z?void 0:z.identifier})},[B,z]),T=(0,v.useMemo)(function(){return se(s,z)},[s]),M=(0,v.useMemo)(function(){return se(w,z,!0)},[w]),O=(0,v.useMemo)(function(){return se(h,z)},[h]),F=(0,v.useMemo)(function(){return se(g,z)},[g]),I=(0,v.useMemo)(function(){return null!=c?c:d},[c,d]),N=z?(0,Z.yP)((0,X.Ec)((0,X.Xj)()),z):(0,X.Ec)((0,X.Xj)()),j=(0,v.useMemo)(function(){return y&&b&&console.error("An OpenmrsDatePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),y||function(e){return null==b?void 0:b(st(e))}},[y,b]);return A().createElement(sO,{locale:P.toString()},A().createElement("div",{className:k()("cds--form-item",i)},A().createElement(eO,{values:[[sn,P]]},A().createElement(oA,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){sT(e,t,n[t])})}return e}({className:k()("cds--date-picker","cds--date-picker--single",(sT(a={},"cds--date-picker--short",$),sT(a,"cds--date-picker--light",m),a)),defaultValue:T,isDisabled:l,isInvalid:I,maxValue:O,minValue:F,value:M,shouldForceLeadingZeros:"en"===P.language||void 0},E),r=r={onChange:j},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n),A().createElement("div",{className:"cds--date-picker-container"},(null!=f?f:p)&&A().createElement(aI,{className:k()("cds--label",{"cds--label--disabled":l}),htmlFor:S},null!=f?f:p),A().createElement(rb,{className:sz.inputGroup},A().createElement(sy,{id:S,ref:t,className:k()("cds--date-picker-input__wrapper",sz.inputWrapper,sT({},sz.inputWrapperMd,"md"===C||!C||0===C.length))},function(e){return"era"!==e.type?A().createElement(sD,{className:sz.inputSegment,segment:e}):A().createElement(A().Fragment,null)}),A().createElement(nf,{className:k()(sz.flatButton,sz.flatButtonMd)},A().createElement(sA,null))),I&&u&&A().createElement(aS,{className:sz.invalidText},u)),A().createElement(of,{className:sz.popover,placement:"bottom start",offset:1,isNonModal:!0},A().createElement(sP,null,A().createElement(rc,null,A().createElement("header",{className:sz.header},A().createElement(nf,{className:k()(sz.flatButton,sz.flatButtonMd),slot:"previous"},A().createElement(oq,{size:16})),A().createElement(sh,{className:sz.monthYear}),A().createElement(nf,{className:k()(sz.flatButton,sz.flatButtonMd),slot:"next"},A().createElement(oW,{size:16}))),A().createElement(rp,{className:sz.calendarGrid},function(e){return A().createElement(r_,{key:e.toString(),className:k()("cds--date-picker__day",sT({},sz.today,0===N.compare(e))),date:e})}))))))))}),sI=n(99939),sN={};sN.styleTagTransform=F(),sN.setAttributes=P(),sN.insert=B().bind(null,"head"),sN.domAPI=D(),sN.insertStyleElement=M(),w()(sI.A,sN);let sj=sI.A&&sI.A.locals?sI.A.locals:void 0;function sR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var sL=(0,v.forwardRef)(function(e,t){return(0,v.useContext)(oy).isInvalid?A().createElement(iQ,sR({ref:t,size:16},e)):A().createElement(oF,sR({ref:t,size:16},e))});function sV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sH=(0,v.forwardRef)(function(e,t){var n,r,a=e.className,o=e.defaultValue,i=e.invalid,s=e.invalidText,l=e.isDisabled,c=e.isInvalid,u=e.label,d=e.labelText,p=e.light,f=e.maxDate,m=e.minDate,h=e.onChange,g=e.onChangeRaw,b=e.value,y=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","defaultValue","invalid","invalidText","isDisabled","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","value"]),$=(0,x.UK)({externalModuleName:"@openmrs/esm-styleguide"}).preferredDateLocale,C=(0,v.useId)(),w=(0,v.useMemo)(function(){var e=(0,ok.J)();return $[e]&&(e=$[e]),e},[window.i18next.language]),E=(0,v.useMemo)(function(){var e=(0,ox.a7)(w);return void 0!==e?(0,J.d)(e):void 0},[w]),D=(0,v.useMemo)(function(){return new Intl.Locale(w,{calendar:null==E?void 0:E.identifier})},[w,E]),S=(0,v.useMemo)(function(){if(b)return{start:se(b[0],E,!0),end:se(b[1],E,!0)}},[b]),B=(0,v.useMemo)(function(){if(o)return{start:se(o[0],E,!0),end:se(o[1],E,!0)}},[o]),z=(0,v.useMemo)(function(){return se(m,E,!0)},[m]),P=(0,v.useMemo)(function(){return se(f,E,!0)},[f]),T=(0,v.useMemo)(function(){return null!=i?i:c},[i,c]),M=E?(0,Z.yP)((0,X.Ec)((0,X.Xj)()),E):(0,X.Ec)((0,X.Xj)()),O=(0,v.useMemo)(function(){return g&&h&&console.error("An OpenmrsDateRangePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),g||function(e){return null==h?void 0:h([st(e.start),st(e.end)])}},[g,h]);return A().createElement(sO,{locale:D.toString()},A().createElement("div",{className:k()("cds--form-item",a)},A().createElement(eO,{values:[[sn,D]]},A().createElement(o$,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){sV(e,t,n[t])})}return e}({id:C,className:k()("cds--date-picker",{"cds--date-picker--light":p,"cds--date-picker--disabled":l}),isInvalid:T,shouldForceLeadingZeros:"en"===D.language||void 0,maxValue:P,minValue:z,value:S,defaultValue:B,ref:t,isDisabled:l},y),r=r={onChange:O},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n),A().createElement("div",{className:"cds--date-picker-container"},(null!=d?d:u)&&A().createElement(aI,{className:k()("cds--label",{"cds--label--disabled":l})},null!=d?d:u),A().createElement(rb,{className:sj.inputGroup},A().createElement("div",{className:sj.inputsWrapper},A().createElement(ab,{className:k()("cds--date-picker-input__wrapper",sj.startInput,sj.dateInputWrapper),slot:"start"},function(e){return A().createElement(sD,{className:sj.inputSegment,segment:e})}),A().createElement("div",{className:sj.separator},A().createElement("span",{"aria-hidden":"true","data-readonly":!0},"–")),A().createElement(ab,{className:k()("cds--date-picker-input__wrapper",sj.endInput,sj.dateInputWrapper),slot:"end"},function(e){return A().createElement(sD,{className:sj.inputSegment,segment:e})})),A().createElement(nf,{className:k()(sj.flatButton,sj.flatButtonMd)},A().createElement(sL,null))),T&&s&&A().createElement(aS,{className:sj.invalidText},s),A().createElement(of,{className:sj.popover,placement:"bottom start",offset:1,isNonModal:!0},A().createElement(sP,{isRangePicker:!0},A().createElement(ru,{minValue:z,maxValue:P,className:"cds--date-picker__calendar"},A().createElement("header",{className:sj.header},A().createElement(nf,{className:k()(sj.flatButton,sj.flatButtonMd),slot:"previous"},A().createElement(oq,{size:16})),A().createElement(sh,{className:sj.monthYear}),A().createElement(nf,{className:k()(sj.flatButton,sj.flatButtonMd),slot:"next"},A().createElement(oW,{size:16}))),A().createElement(rp,{className:sj.calendarGrid},function(e){return A().createElement(r_,{key:e.toString(),className:k()("cds--date-picker__day",sV({},sj.today,0===M.compare(e))),date:e})})))))))))}),sG=n(70438),sU=function(e){var t=e.diagnoses,n=(0,x.UK)({externalModuleName:"@openmrs/esm-styleguide"}).diagnosisTags;return A().createElement(A().Fragment,null,t.map(function(e){var t=e.rank,r=e.uuid,a=e.display,o=n[1===t?"primaryColor":"secondaryColor"];return A().createElement(sG.Tag,{key:r,type:o},a)}))},sq=n(61836),sW=n(30949),sK={};sK.styleTagTransform=F(),sK.setAttributes=P(),sK.insert=B().bind(null,"head"),sK.domAPI=D(),sK.insertStyleElement=M(),w()(sW.A,sK);let sY=sW.A&&sW.A.locals?sW.A.locals:void 0;var sJ=function(e){var t,n,r=e.error,a=e.headerTitle,o="tablet"===(0,x.qv)();return A().createElement(sG.Layer,null,A().createElement(sG.Tile,{className:sY.tile},A().createElement("div",{className:o?sY.tabletHeading:sY.desktopHeading},A().createElement("h4",null,a)),A().createElement("p",{className:sY.errorMessage},(0,sq.V)("error","Error")," ","".concat(null==r||null==(t=r.response)?void 0:t.status,": "),null==r||null==(n=r.response)?void 0:n.statusText),A().createElement("p",{className:sY.errorCopy},(0,sq.V)("errorCopy"))))},sZ=n(81369),sX={};sX.styleTagTransform=F(),sX.setAttributes=P(),sX.insert=B().bind(null,"head"),sX.domAPI=D(),sX.insertStyleElement=M(),w()(sZ.A,sX);let sQ=sZ.A&&sZ.A.locals?sZ.A.locals:void 0;var s0=A().forwardRef(function(e,t){var n,r=(0,x.TA)(),a=r.slotName,o=r.basePath,i=r.componentContext,s=null!=(n=window.location)?n:{pathname:""},l=(0,x.CX)(null!=a?a:"");return e.isChildOfHeader&&a&&l.length>0?A().createElement(sG.SideNav,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:t,expanded:!0,"aria-label":"Left navigation",className:sQ.leftNav},e),A().createElement(x.W3,{name:"global-nav-menu-slot"}),a?A().createElement(x.fS,{value:i,fallback:A().createElement(x.W3,{name:a,state:{basePath:o,currentPath:s}})},A().createElement(x.zq.Provider,{value:i},A().createElement(x.W3,{name:a,state:{basePath:o,currentPath:s}}))):null):A().createElement(A().Fragment,null)}),s1=n(36142),s2=n.n(s1),s3=n(97744),s4=n.n(s3),s5=n(70937),s6=n(60482),s7=function(e){var t=e.notification,n=t.description,r=t.action,a=t.kind,o=t.critical,i=t.title,s=t.onAction;return A().createElement(sG.ActionableNotification,{actionButtonLabel:r,kind:a||"info",lowContrast:o,subtitle:n,title:i||"",inline:!0,onActionButtonClick:s})};function s8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s9(e,t){if(e){if("string"==typeof e)return s8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s8(e,t)}}let le=function(e){var t,n=e.subject,r=(t=(0,v.useState)([]),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||s9(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],o=r[1];return(0,v.useEffect)(function(){var e=n.subscribe(function(e){return o(function(t){var n;return((function(e){if(Array.isArray(e))return s8(e)})(n=t.filter(function(t){return t.description!==e.description||t.action!==e.action||t.kind!==e.kind||t.title!==e.title}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||s9(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),A().createElement(A().Fragment,null,a.map(function(e){return A().createElement(s7,{key:e.id,notification:e})}))};function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ln=function(e){var t,n=e.notification,r=n.actionButtonLabel,a=n.onActionButtonClick,o=void 0===a?function(){}:a,i=n.subtitle,s=n.kind,l=n.title,c=n.critical,u=n.progressActionLabel,d=(n.id,function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(n,["actionButtonLabel","onActionButtonClick","subtitle","kind","title","critical","progressActionLabel","id"])),p=(t=(0,v.useState)(r),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return lt(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lt(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=p[0],m=p[1];return A().createElement(sG.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({kind:s||"info",actionButtonLabel:f,ariaLabel:"Closes actionable notification",onActionButtonClick:function(){o(),u&&m(u)},statusIconDescription:"Actionable notification",subtitle:i,title:l,lowContrast:c,inline:!0},d))};function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function la(e,t){if(e){if("string"==typeof e)return lr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lr(e,t)}}let lo=function(e){var t,n=e.subject,r=(t=(0,v.useState)([]),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||la(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],o=r[1];return(0,v.useEffect)(function(){var e=n.subscribe(function(e){return o(function(t){var n;return((function(e){if(Array.isArray(e))return lr(e)})(n=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||la(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),A().createElement(A().Fragment,null,a.map(function(e){return A().createElement(ln,{key:e.id,notification:e})}))};var li=n(62926),ls=n(4004),ll=n(17820),lc=n(36820),lu=n(55259),ld=n(75323),lp=n(24956),lf=n(43148),lm=Object.prototype.hasOwnProperty;let lh=function(e){if(null==e)return!0;if((0,lu.A)(e)&&((0,lc.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,ld.A)(e)||(0,lf.A)(e)||(0,ll.A)(e)))return!e.length;var t=(0,ls.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,lp.A)(e))return!(0,li.A)(e).length;for(var n in e)if(lm.call(e,n))return!1;return!0};var l_=n(25873);function lg(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function lb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function ly(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function lv(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var lA=new s6.B7,l$=0,lk=new s6.B7,lx=0;function lC(e){e&&(0,l_.createRoot)(e).render(A().createElement(le,{subject:lA}))}function lw(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":lv(t))==="object"&&(lg(t,Error)||!lh(t)))?(lg(e.description,Error)&&(e.description=e.description.toLocaleString()),setTimeout(function(){lA.next(ly(lb({},e),{id:l$++}))},0)):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function lE(e){e&&(0,l_.createRoot)(e).render(A().createElement(lo,{subject:lk}))}function lD(e){var t;e&&("string"==typeof(t=e.actionButtonLabel)?t.trim().length>0:(void 0===t?"undefined":lv(t))==="object"&&!lh(t))?setTimeout(function(){lk.next(ly(lb({},e),{id:lx++}))},0):console.error("showActionableNotification must be called with an actionButtonLabel that is a non-empty string")}var lS=n(8569),lB={};lB.styleTagTransform=F(),lB.setAttributes=P(),lB.insert=B().bind(null,"head"),lB.domAPI=D(),lB.insertStyleElement=M(),w()(lS.A,lB);let lz=lS.A&&lS.A.locals?lS.A.locals:void 0;function lP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lT(e,t){if(e){if("string"==typeof e)return lP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lP(e,t)}}var lM=function(e){var t,n,r,a,o,i,s=e.selectedLocationUuid,l=e.defaultLocationUuid,c=e.locationTag,u=e.locationsPerRequest,d=void 0===u?50:u,p=e.onChange,f=(0,V.useTranslation)().t,m=(t=(0,v.useState)(""),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||lT(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=m[0],g=m[1],b=(n=l?"/ws/fhir2/R4/Location?_id=".concat(l):null,a=(r=s2()(n,s5.lo,{shouldRetryOnError:function(e){var t;return null!=e&&null!=(t=e.response)&&!!t.status&&e.response.status>=500}})).data,o=r.error,i=r.isLoading,(0,v.useMemo)(function(){var e;return{location:(null==a||null==(e=a.data)?void 0:e.entry)?a.data.entry[0]:null,error:n?o:null,isLoading:!!n&&i}},[a,i,o,n])).location,y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=(0,V.useTranslation)().t,a=(0,x.d7)(n),o=s4()(function(n,r){if(r){var o,i,s=null==(i=r.data)||null==(o=i.link)?void 0:o.find(function(e){return"next"===e.relation});if(!s)return null;var l=new URL(s.url);return l.origin===window.location.origin?s.url:new URL("".concat(l.pathname).concat(l.search?"?".concat(l.search):""),window.location.origin).toString()}var c="".concat(s5.IU,"/Location?"),u=new URLSearchParams;return u.append("_summary","data"),t&&u.append("_count",""+t),n&&u.append("_getpagesoffset",""+n*t),e&&u.append("_tag",e),"string"==typeof a&&""!=a&&u.append("name:contains",a),c+u.toString()},s5.lo),i=o.data,s=o.isLoading,l=o.isValidating,c=o.setSize,u=o.error;return u&&lw({title:r("errorLoadingLoginLocations","Error loading login locations"),kind:"error",critical:!0,description:null==u?void 0:u.message}),(0,v.useMemo)(function(){var e,t,n,r,a;return{locations:(null==i?void 0:i.length)?null==i?void 0:i.flatMap(function(e){var t,n;return null!=(n=null==e||null==(t=e.data)?void 0:t.entry)?n:[]}):[],isLoading:s,totalResults:null==i||null==(t=i[0])||null==(e=t.data)?void 0:e.total,hasMore:null!=i&&!!i.length&&(null==i||null==(a=i[i.length-1])||null==(r=a.data)||null==(n=r.link)?void 0:n.some(function(e){return"next"===e.relation})),loadingNewData:l,setPage:c}},[s,i,l,c])}(c,d,h),$=y.locations,k=y.isLoading,C=y.hasMore,w=y.loadingNewData,E=y.setPage,D=(0,v.useMemo)(function(){if(b&&!h){var e;return[b].concat(function(e){if(Array.isArray(e))return lP(e)}(e=null==$?void 0:$.filter(function(e){return e.resource.id!==l}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||lT(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return $},[b,$]),S=function(e){p(),g(e)},B=(0,v.useCallback)(function(){w||!C||E(function(e){return e+1})},[w,C,E]),z=(0,U.useOnVisible)(B),P=C?D.length-d/2:-1;return A().createElement("div",null,A().createElement(sG.Search,{labelText:f("searchForLocation","Search for a location"),id:"search-1",placeholder:f("searchForLocation","Search for a location"),onChange:function(e){return S(e.target.value)},size:"lg"}),A().createElement("div",{className:lz.searchResults},k?A().createElement("div",{className:lz.loadingContainer},A().createElement(sG.RadioButtonSkeleton,{className:lz.radioButtonSkeleton,role:"progressbar"}),A().createElement(sG.RadioButtonSkeleton,{className:lz.radioButtonSkeleton,role:"progressbar"}),A().createElement(sG.RadioButtonSkeleton,{className:lz.radioButtonSkeleton,role:"progressbar"}),A().createElement(sG.RadioButtonSkeleton,{className:lz.radioButtonSkeleton,role:"progressbar"}),A().createElement(sG.RadioButtonSkeleton,{className:lz.radioButtonSkeleton,role:"progressbar"})):A().createElement(A().Fragment,null,A().createElement("div",{className:lz.locationResultsContainer},(null==D?void 0:D.length)>0?A().createElement(sG.RadioButtonGroup,{name:"loginLocations",onChange:function(e){p(null==e?void 0:e.toString())},orientation:"vertical",valueSelected:s},D.map(function(e,t){return A().createElement(sG.RadioButton,{className:lz.locationRadioButton,key:e.resource.id,id:e.resource.id,name:e.resource.name,labelText:A().createElement("span",{ref:t==P?z:null},e.resource.name),value:e.resource.id})})):A().createElement("div",{className:lz.emptyState},A().createElement("p",{className:lz.locationNotFound},f("noResultsToDisplay","No results to display")))),w&&A().createElement("div",{className:lz.loadingIcon},A().createElement(sG.InlineLoading,{description:f("loading","Loading")})))))},lO=n(22956),lF=n(467),lI=n(11621),lN=n(64201);function lj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lR(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function lL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function lV(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function lH(e,t){if(e){if("string"==typeof e)return lj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lj(e,t)}}var lG=(0,lF.Zd)("modalState",{modalContainer:null,modalStack:[]}),lU=0,lq=window.getComputedStyle(document.body).overflow;function lW(e){var t=e.modalStack,n=e.modalContainer;n&&(t.length?(n.style.visibility||(addEventListener("keydown",lY),document.body.style.overflow="hidden",n.style.visibility="unset"),t.forEach(function(e,r){switch(e.state){case"NEW":var a,o,i,s,l,c,u,d=(a=({size:null!=(u=null==(c=e.props)?void 0:c.size)?u:"md"}).size,(o=document.createElement("div")).className="cds--modal-container cds--modal-container--".concat(a),o.setAttribute("role","dialog"),o.setAttribute("tabindex","-1"),o.setAttribute("aria-modal","true"),o);e.container=d,(function(e,t){var n;return(n=function(e,t){var n,r,a,o,i,s=arguments;return function(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){var c=[s,l];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(6===c[0]&&o.label<a[1]){o.label=a[1],a=c;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(l){switch(l.label){case 0:if(n=s.length>2&&void 0!==s[2]?s[2]:{},r=(0,lI.Fg)(t),a=null,!e)return[3,2];if(!r)throw Error("No modal named '".concat(t,"' has been registered."));return[4,(0,r.load)()];case 1:return o=l.sent(),i=lU++,a=(0,lO.xL)(lV(lL({},o),{name:"".concat(t,"-").concat(i)}),lV(lL({},n),{domElement:e})),[3,3];case 2:(0,lN.N)("Failed to launch modal. Please notify your administrator. Modal name: ".concat(t)),l.label=3;case 3:return[2,a]}})},function(){var e=this,t=arguments;return new Promise(function(r,a){var o=n.apply(e,t);function i(e){lR(o,r,a,i,s,"next",e)}function s(e){lR(o,r,a,i,s,"throw",e)}i(void 0)})}).apply(this,arguments)})(d,e.modalName,e.props).then(function(t){e.parcel=t,e.state="MOUNTED",n.prepend(d),d.style.visibility="unset"});break;case"MOUNTED":e.container&&(e.container.style.visibility=r?"hidden":"unset");break;case"TO_BE_DELETED":e.onClose(),null==(s=e.parcel)||null==(i=s.unmount)||i.call(s),null==(l=e.container)||l.remove(),setTimeout(function(){lG.setState({modalContainer:n,modalStack:t.filter(function(t){return t!==e})})},0)}})):(n.style.removeProperty("visibility"),document.body.style.overflow=lq,removeEventListener("keydown",lY)))}function lK(e){var t=lG.getState(),n=t.modalStack.map(function(t){return t===e?lV(lL({},t),{state:"TO_BE_DELETED"}):t});lG.setState(lV(lL({},t),{modalStack:n}))}function lY(e){var t,n;"Escape"===e.key&&(n=(t=lG.getState().modalStack,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,1)||lH(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0])&&lK(n)}function lJ(e){lG.subscribe(lW),lG.setState(lV(lL({},lG.getState()),{modalContainer:e}))}function lZ(e){var t,n,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=function(){var e=lG.getState().modalStack.find(function(e){return e.onClose===o});e&&lK(e)};return(0,lI.Fg)(e)?(r=[{state:"NEW",onClose:o,modalName:e,props:lL({close:i},a)}].concat(function(e){if(Array.isArray(e))return lj(e)}(n=(t=lG.getState()).modalStack)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||lH(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),lG.setState(lV(lL({},t),{modalStack:r}))):(0,lN.N)('Failed to launch modal. Please notify your administrator. Modal name: "'.concat(e,'"')),i}var lX=n(91673),lQ={};lQ.styleTagTransform=F(),lQ.setAttributes=P(),lQ.insert=B().bind(null,"head"),lQ.domAPI=D(),lQ.insertStyleElement=M(),w()(lX.A,lQ);let l0=lX.A&&lX.A.locals?lX.A.locals:void 0;function l1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function l3(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l4=function(e){if("children"in e){var t=e.children,n=e.className,r=l3(e,["children","className"]);return A().createElement("div",l2({className:k()(l0.pageHeader,n)},r),t)}var a=e.title,o=e.illustration,i=e.className,s=l3(e,["title","illustration","className"]);return A().createElement("div",l2({className:k()(l0.pageHeader,i)},s),A().createElement(l5,{title:a,illustration:o}))},l5=function(e){var t,n=e.title,r=e.illustration,a=e.className,o=(t=(0,v.useState)(null),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return l1(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l1(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return(0,v.useEffect)(function(){(0,h.zj)("@openmrs/esm-styleguide").then(function(e){s(e)})},[]),A().createElement("div",{className:k()(l0.pageHeaderContent,a)},r,A().createElement("div",{className:l0.pageLabels},(null==i?void 0:i.implementationName)&&A().createElement("p",null,(0,sq.V)(i.implementationName)),A().createElement("p",{className:l0.pageName},n)))},l6=n(67943),l7=n(40785),l8=n(48391),l9={};l9.styleTagTransform=F(),l9.setAttributes=P(),l9.insert=B().bind(null,"head"),l9.domAPI=D(),l9.insertStyleElement=M(),w()(l8.A,l9);let ce=l8.A&&l8.A.locals?l8.A.locals:void 0;function ct(e){var t=e.showIdentifierLabel,n=e.type,r=e.value;return A().createElement("span",{className:ce.primaryIdentifier},A().createElement(sG.Tag,{className:ce.tag,type:"gray"},t&&(null==n?void 0:n.text)&&A().createElement("span",{className:ce.label},n.text,": "),A().createElement("span",{className:ce.value},r)))}function cn(e){var t=e.showIdentifierLabel,n=e.type,r=e.value;return A().createElement(sG.FormLabel,{className:ce.secondaryIdentifier,id:"patient-banner-identifier-".concat(r)},t&&A().createElement("span",{className:ce.label},null==n?void 0:n.text,": "),A().createElement("span",{className:ce.value},r))}function cr(e){var t,n=e.identifiers,r=e.showIdentifierLabel,a=(0,x.UK)().excludePatientIdentifierCodeTypes,o=(0,x.wJ)().primaryIdentifierCode,i=null!=(t=null==n?void 0:n.filter(function(e){var t,n,r,o=null==(r=e.type)||null==(n=r.coding)||null==(t=n[0])?void 0:t.code;return o&&!(null==a?void 0:a.uuids.includes(o))}))?t:[];return A().createElement(A().Fragment,null,(null==i?void 0:i.length)?i.map(function(e,t){var n,a,s=e.value,l=e.type;return A().createElement(A().Fragment,{key:s},A().createElement("span",{className:ce.identifier},(null==l||null==(a=l.coding)||null==(n=a[0])?void 0:n.code)===o?A().createElement(ct,{showIdentifierLabel:r,type:l,value:s}):A().createElement(cn,{showIdentifierLabel:r,type:l,value:s})),t<i.length-1&&A().createElement("span",{className:ce.separator},"\xb7"))}):"")}var ca={Female:o5,Male:o6,Other:o7,Unknown:o8},co=function(e){var t=ca[e.gender];return t?A().createElement(t,{fill:"#525252"}):null},ci={male:"Male",female:"Female",other:"Other",unknown:"Unknown"},cs=function(e){var t,n=e.toLowerCase(),r=null!=(t=ci[n])?t:"Unknown";return{displayText:(0,sq.V)(n,e),iconKey:r}};function cl(e){var t=e.patient,n=e.renderedFrom,r=(0,l6.Vp)(t),a=(null==t?void 0:t.gender)&&cs(t.gender),o=(0,v.useMemo)(function(){return{patientUuid:t.id,patient:t,renderedFrom:n}},[t.id,t,n]);return A().createElement("div",{className:ce.patientInfo},A().createElement("div",{className:k()(ce.row,ce.patientNameRow)},A().createElement("div",{className:ce.flexRow},A().createElement("span",{className:ce.patientName},r),a&&A().createElement("div",{className:ce.gender},A().createElement(co,{gender:a.iconKey}),A().createElement("span",null,a.displayText)),A().createElement(x.W3,{className:ce.tagsSlot,name:"patient-banner-tags-slot",state:o}))),A().createElement("div",{className:ce.demographics},t.birthDate&&A().createElement(A().Fragment,null,A().createElement("span",null,(0,l7.K)(t.birthDate)),A().createElement("span",{className:ce.separator},"\xb7"),A().createElement("span",null,(0,ox.LW)(t.birthDate,{time:!1})),A().createElement("span",{className:ce.separator},"\xb7")),A().createElement(cr,{identifiers:t.identifier,showIdentifierLabel:!0}),A().createElement(x.W3,{className:ce.extensionSlot,name:"patient-banner-bottom-slot",state:o})))}var cc=n(18282),cu=n(33539),cd={};cd.styleTagTransform=F(),cd.setAttributes=P(),cd.insert=B().bind(null,"head"),cd.domAPI=D(),cd.insertStyleElement=M(),w()(cu.A,cd);let cp=cu.A&&cu.A.locals?cu.A.locals:void 0;function cf(e){var t=e.patient,n=e.patientUuid,r=e.actionsSlotName,a=e.additionalActionsSlotState,o=(0,x.br)(r).extensions,i=(0,v.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({patientUuid:n,patient:t},a)},[n,a]);return A().createElement(A().Fragment,null,o.length>0?A().createElement("div",{className:cp.overflowMenuContainer},A().createElement(L,{menuTitle:A().createElement(A().Fragment,null,A().createElement("span",{className:cp.actionsButtonText},(0,sq.V)("actions","Actions"))," ",A().createElement(cc.CH,{size:16,style:{marginLeft:"0.5rem",fill:"#78A9FF"}}))},A().createElement(x.W3,{name:"patient-actions-slot",key:"patient-actions-slot",state:i}))):null)}var cm=function(e){var t=e.toast,n=e.closeToast,r=t.description,a=t.kind,o=t.critical,i=t.title,s=t.actionButtonLabel,l=t.onActionButtonClick,c=void 0===l?function(){}:l,u=(0,v.useCallback)(function(){c(),n()},[n,c]);return A().createElement("div",null,A().createElement(sG.ActionableNotification,{actionButtonLabel:s,kind:a||"info",lowContrast:o,subtitle:r,title:i||"",onActionButtonClick:u,onClose:n}))};function ch(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c_(e,t){if(e){if("string"==typeof e)return ch(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ch(e,t)}}let cg=function(e){var t,n=e.subject,r=(t=(0,v.useState)([]),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||c_(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],o=r[1],i=(0,v.useCallback)(function(e){o(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,v.useEffect)(function(){var e=n.subscribe(function(e){return o(function(t){var n;return((function(e){if(Array.isArray(e))return ch(e)})(n=t.filter(function(t){return t.description!==e.description||t.kind!==e.kind||t.title!==e.title||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||c_(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),A().createElement(A().Fragment,null,a.map(function(e){return A().createElement(cm,{key:e.id,toast:e,closeToast:function(){return i(e)}})}))};var cb=new s6.B7,cy=0;function cv(e){e&&(0,l_.createRoot)(e).render(A().createElement(cg,{subject:cb}))}function cA(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"&&!lh(t))?setTimeout(function(){var t,n;cb.next((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={id:cy++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))},0):console.error("showToast must be called with an object having a 'description' property that is a non-empty string or object")}var c$=n(17744);function ck(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function cC(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function cw(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return!0;var n=cz[e];return!n||!n()}function cE(e,t){var n,r=null==(n=cj.getState())?void 0:n.workspaceGroup,a=null==r?void 0:r.name;a&&e===a&&cH(function(){var n=cK(e);n&&(n.setState({},!0),n.subscribe(function(){})()),"function"==typeof(null==r?void 0:r.cleanup)&&r.cleanup(),cj.setState(function(e){return cC(cx({},e),{workspaceGroup:void 0})}),"function"==typeof t&&t()},a?function(e){return e.currentWorkspaceGroup===a}:function(){return!0})}function cD(e,t){var n,r=t.name,a=t.additionalProps;(0,lI.Xb)(r);var o=function(){cF(e.name,{ignoreChanges:!0,onWorkspaceClose:function(){return cS(r,a)},closeWorkspaceGroup:!1})};cw(e.name)?o():cU("closing-workspace-launching-new-workspace",o,null!=(n=e.title)?n:e.name)}function cS(e,t){var n,r,a=(0,lI.Xb)(e),o=cj.getState().workspaceGroup;if(o&&!(null==(n=o.members)?void 0:n.includes(e)))return void cE(o.name,function(){cS(e,t)});var i=null==(r=cj.getState().workspaceGroup)?void 0:r.name,s=cC(cx({},a),{title:cq(a,t),closeWorkspace:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return cF(e,t)},closeWorkspaceWithSavedChanges:function(t){return cF(e,cx({ignoreChanges:!0},t))},promptBeforeClosing:function(t){var n,r;return n=e,r=t,void(cz[n]=r)},setTitle:function(t,n){s.title=t,s.titleNode=n,cj.setState(function(t){var n=t.openWorkspaces.map(function(t){return t.name===e?s:t});return cC(cx({},t),{openWorkspaces:n})})},currentWorkspaceGroup:i,additionalProps:null!=t?t:{}});function l(e,t){cj.setState(function(n){var r,a=[e].concat(function(e){if(Array.isArray(e))return ck(e)}(r=null!=t?t:n.openWorkspaces)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return ck(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ck(e,t)}}(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=cV(e);return cC(cx({},n),{openWorkspaces:a,workspaceWindowState:o})})}i&&cK(i,t);var c=cj.getState().openWorkspaces,u=c.findIndex(function(t){return t.name===e}),d=c.find(function(e){return e.type==s.type});if(0===c.length)l(s);else if(c[0].canHide||0===u)if(u>=0){var p=c[u];p.title===cq(p,p.additionalProps)&&(p.title=cq(s,s.additionalProps)),p.additionalProps=s.additionalProps;var f=c.filter(function(t){return t.name!=e});l(c[u],f)}else d?(l(d,cj.getState().openWorkspaces.filter(function(e){return e.type!=s.type})),cD(d,{name:e,additionalProps:t})):l(s);else cD(c[0],{name:e,additionalProps:t})}function cB(e){var t=e.targetUrl,n=e.contextKey,r=e.workspaceName,a=e.additionalProps;cI(n),cS(r,a),(0,c$.oo)({to:t})}var cz={};function cP(e,t){cz[e]=t}function cT(e){return cz[e]}function cM(){var e=cj.getState();cj.setState(cC(cx({},e),{prompt:null}))}var cO={ignoreChanges:!1,onWorkspaceClose:function(){},closeWorkspaceGroup:!0};function cF(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=cx({},cO,n);var r=function(){var t,r,a=cj.getState();a.openWorkspaces.find(function(t){return t.name===e});var o=a.openWorkspaces.filter(function(t){return t.name!=e}),i=null==(t=cj.getState().workspaceGroup)?void 0:t.name;i&&n.closeWorkspaceGroup&&cE(i),cz[e]=function(){return!1},cj.setState(function(e){return cC(cx({},e),{prompt:null,openWorkspaces:o,workspaceWindowState:cV(null==o?void 0:o[0])})}),null==n||null==(r=n.onWorkspaceClose)||r.call(n)};return cw(e,null==n?void 0:n.ignoreChanges)?(r(),!0):(cU("closing-workspace",r,null!=(t=(0,lI.Xb)(e).title)?t:e),!1)}function cI(e){cj.getState().context!=e&&cj.setState({context:e,openWorkspaces:[],prompt:null})}var cN={context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0},cj=(0,lF.Zd)("workspace",cN);function cR(){return cj}function cL(e){var t=cj.getState();cj.setState(cC(cx({},t),{workspaceWindowState:e}))}function cV(e){var t;return null!=(t=null==e?void 0:e.preferredWindowSize)?t:"normal"}function cH(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=cj.getState().openWorkspaces.filter(t).every(function(e){return cw(e.name)}),r=function(){cW(),null==e||e()};n?r():cU("closing-all-workspaces",r)}function cG(){var e=(0,x.Pj)(cj),t=e.workspaceWindowState,n=e.openWorkspaces,r=e.prompt,a=e.workspaceGroup;return(0,v.useMemo)(function(){return{active:n.length>0,prompt:r,workspaceWindowState:t,workspaces:n,workspaceGroup:a}},[n,t,r,a])}function cU(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(e){case"closing-workspace":t={title:(0,sq.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,sq.V)("unsavedChangesInOpenedWorkspace","You may have unsaved changes in the opened workspace. Do you want to discard these changes?"),onConfirm:function(){null==n||n()},confirmText:(0,sq.V)("discard","Discard")};break;case"closing-all-workspaces":var a=cj.getState().openWorkspaces.filter(function(e){return!cw(e.name)}).map(function(e,t){var n=e.title;return"".concat(t+1,". ").concat(n)});t={title:(0,sq.V)("closingAllWorkspacesPromptTitle","You have unsaved changes"),body:(0,sq.V)("closingAllWorkspacesPromptBody","There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",{workspaceNames:a.join(",")}),onConfirm:function(){null==n||n()},confirmText:(0,sq.V)("closeAllOpenedWorkspaces","Discard changes in {{count}} workspaces",{count:a.length})};break;case"closing-workspace-launching-new-workspace":t={title:(0,sq.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,sq.V)("unsavedChangesInWorkspace",'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',{workspaceName:r}),onConfirm:function(){cj.setState(function(e){return cC(cx({},e),{prompt:null})}),null==n||n()},confirmText:(0,sq.V)("openAnyway","Open anyway")};break;default:console.error('Workspace system trying to open unknown prompt type "'.concat(e,'" in function "showWorkspacePrompts"')),null==n||n();return}cj.setState(function(e){return cC(cx({},e),{prompt:t})})}function cq(e,t){var n;return null!=(n=null==t?void 0:t.workspaceTitle)?n:e.title}function cW(){cj.setState(cN)}function cK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&"default"!==e){var n=(0,lF.jf)(e,{});return t&&n.setState(function(e){return cx({},e,t)}),n}}var cY=n(33794),cJ={};cJ.styleTagTransform=F(),cJ.setAttributes=P(),cJ.insert=B().bind(null,"head"),cJ.domAPI=D(),cJ.insertStyleElement=M(),w()(cY.A,cJ);let cZ=cY.A&&cY.A.locals?cY.A.locals:void 0;function cX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cQ(e){var t=e.getIcon,n=e.formOpenInTheBackground,r=e.tagContent;return A().createElement(A().Fragment,null,t({size:16}),n?A().createElement("span",{className:cZ.interruptedTag},"!"):A().createElement("span",{className:cZ.countTag},r))}var c0=function(e){var t,n=e.getIcon,r=e.label,a=e.iconDescription,o=e.handler,i=e.type,s=e.tagContent,l=(0,x.qv)(),c=cG(),u=c.workspaces,d=c.workspaceWindowState,p=null!=(t=null==u?void 0:u.findIndex(function(e){return e.type===i}))?t:-1,f="hidden"!==d&&0===p,m=p>0||0===p&&"hidden"===d;return"tablet"===l||"phone"===l?A().createElement(sG.Button,{className:k()(cZ.container,cX({},cZ.active,f)),iconDescription:a,kind:"ghost",onClick:o,role:"button",tabIndex:0,size:"md"},A().createElement("span",{className:cZ.elementContainer},A().createElement(cQ,{formOpenInTheBackground:m,getIcon:n,tagContent:s})),A().createElement("span",null,r)):A().createElement(sG.IconButton,{align:"left","aria-label":a,className:k()(cZ.container,cX({},cZ.active,f)),enterDelayMs:300,kind:"ghost",label:r,onClick:o,size:"md"},A().createElement("div",{className:cZ.elementContainer},A().createElement(cQ,{formOpenInTheBackground:m,getIcon:n,tagContent:s})))},c1=n(54240),c2=n(68622),c3=n(1158),c4=/[\\^$.*+?()[\]{}|]/g,c5=RegExp(c4.source);let c6=function(e){return(e=(0,c3.A)(e))&&c5.test(e)?e.replace(c4,"\\$&"):e};var c7=n(72114),c8={};c8.styleTagTransform=F(),c8.setAttributes=P(),c8.insert=B().bind(null,"head"),c8.domAPI=D(),c8.insertStyleElement=M(),w()(c7.A,c8);let c9=c7.A&&c7.A.locals?c7.A.locals:void 0;function ue(e){var t,n,r=e.contextKey,a=(0,V.useTranslation)().t,o=cG().prompt;return(0,v.useEffect)(function(){new RegExp("/".concat(c6(r),"(/|$)")).test(window.location.pathname)||(0,lN.N)('WorkspaceContainer has provided an invalid context key: "'.concat(r,'". The context key must be part of the URL path, with no initial or trailing slash.'))},[]),(0,v.useEffect)(function(){return cI(r),function(){cI(null)}},[r]),(0,v.useEffect)(function(){var e=function(e){var t=e.detail,n=t.cancelNavigation,a=t.newUrl,o=new RegExp("/".concat(c6(r),"(/|$)")),i=new URL(a),s=o.test(i.pathname),l=cj.getState().openWorkspaces.every(function(e){return cw(e.name)});s||(l?cW():(null==n||n(),cH(function(){(0,c$.oo)({to:a})})))};return window.addEventListener("single-spa:before-routing-event",e),function(){window.removeEventListener("single-spa:before-routing-event",e)}},[]),null!=o?A().createElement(sG.ComposedModal,{open:!0,onClose:cM},A().createElement(sG.ModalHeader,{title:o.title}),A().createElement(sG.ModalBody,null,A().createElement("p",{className:c9.messageBody},o.body)),A().createElement(sG.ModalFooter,null,A().createElement(sG.Button,{kind:"secondary",onClick:cM},null!=(t=o.cancelText)?t:a("cancel","Cancel")),A().createElement(sG.Button,{kind:"danger",onClick:o.onConfirm},null!=(n=o.confirmText)?n:a("confirm","Confirm")))):null}var ut=n(6309);function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach(function(t){uo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ui(e){return(ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function us(e,t){return(us=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ul(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var uc=function(e){var t=v.Component;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),t&&us(i,t);var n,r,a,o=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=ui(i);e=n?Reflect.construct(t,arguments,ui(this).constructor):t.apply(this,arguments);if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return ul(this)});function i(e){var t;if(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),uo(ul(t=o.call(this,e)),"handleRef",function(e){t.el=e}),uo(ul(t),"addThingToDo",function(e,n){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return n.apply(void 0,arguments)}).catch(function(n){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),n&&n.message&&(n.message="During '".concat(e,"', parcel threw an error: ").concat(n.message)),t.props.handleError?t.props.handleError(n):setTimeout(function(){throw n}),n}))}),uo(ul(t),"getParcelProps",function(){var e=ur(ur({},t.props),{},{domElement:t.el});return delete e.mountParcel,delete e.config,delete e.wrapWith,delete e.wrapStyle,delete e.appendTo,delete e.handleError,delete e.parcelDidMount,e}),t.state={hasError:!1},!e.config)throw Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return t}return r=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,n=e.props.mountParcel||e.mountParcel;if(!n)throw Error("\n <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop \n ");return e.el?t=e.el:(e.createdDomElement=t=document.createElement(e.props.wrapWith),Object.keys(e.props.wrapStyle).forEach(function(n){t.style[n]=e.props.wrapStyle[n]}),e.props.appendTo.appendChild(t)),e.parcel=n(e.props.config,ur({domElement:t},e.getParcelProps())),e.parcel.mountPromise.then(e.props.parcelDidMount),e.parcel.mountPromise})}},{key:"componentDidUpdate",value:function(){var e=this;this.addThingToDo("update",function(){if(e.parcel&&e.parcel.update)return e.parcel.update(e.getParcelProps())})}},{key:"componentWillUnmount",value:function(){var e=this;this.addThingToDo("unmount",function(){if(e.parcel&&"MOUNTED"===e.parcel.getStatus())return e.parcel.unmount()}),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var e=this;if(this.props.appendTo)return ut.i&&ut.i.Consumer?v.createElement(ut.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=ut.i&&ut.i.Consumer?v.createElement(ut.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):void 0;return v.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},t)}}],ua(i.prototype,r),a&&ua(i,a),i}();uo(uc,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}});var uu=n(1668),ud={};ud.styleTagTransform=F(),ud.setAttributes=P(),ud.insert=B().bind(null,"head"),ud.domAPI=D(),ud.insertStyleElement=M(),w()(uu.A,ud);let up=uu.A&&uu.A.locals?uu.A.locals:void 0;function uf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function um(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return uf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uf(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function ug(e){var t,n,r,a,o,i,s,l,c=e.workspace,u=e.additionalPropsFromPage,d=(t=(0,v.useState)(),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return uh(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uh(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],f=d[1],m=(n=c.currentWorkspaceGroup,a=(r=um((0,v.useState)({}),2))[0],o=r[1],s=(i=um((0,v.useState)(n),2))[0],l=i[1],(0,v.useEffect)(function(){s!==n&&l(n)},[n]),(0,v.useEffect)(function(){var e,t=cK(s);return t&&(o(t.getState()),e=t.subscribe(o)),function(){t&&(null==e||e())}},[s]),a);(0,v.useEffect)(function(){var e=!0;return c.load().then(function(t){e&&f(t)}),function(){e=!1}},[c]);var h=(0,v.useMemo)(function(){return c&&u_({closeWorkspace:c.closeWorkspace,closeWorkspaceWithSavedChanges:c.closeWorkspaceWithSavedChanges,promptBeforeClosing:c.promptBeforeClosing,setTitle:c.setTitle},u,m,c.additionalProps)},[c,u,m]);return p?A().createElement(uc,u_({key:c.name,config:p,mountParcel:lO.xL},h)):A().createElement(sG.InlineLoading,{className:up.loader,description:"".concat((0,sq.V)("loading","Loading")," ...")})}var ub=n(43193),uy={};uy.styleTagTransform=F(),uy.setAttributes=P(),uy.insert=B().bind(null,"head"),uy.domAPI=D(),uy.insertStyleElement=M(),w()(ub.A,uy);let uv=ub.A&&ub.A.locals?ub.A.locals:void 0;function uA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uk(e){var t,n,r=e.isWithinWorkspace,a=e.name,o=e.actionMenuProps,i=(t=(0,v.useState)(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return uA(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uA(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=i[0],l=i[1],c=(0,v.useRef)(window.innerHeight),u=(0,v.useContext)(x.zq).featureName,d=(0,x.qv)();return(0,v.useEffect)(function(){var e=function(){l(!(0,x.xl)(d)&&c.current>window.innerHeight),c.current!=window.innerHeight&&(c.current=window.innerHeight)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[c]),A().createElement("aside",{className:k()(uv.sideRail,(u$(n={},uv.withinWorkspace,r),u$(n,uv.sideRailHidden,s),u$(n,uv.sideRailVisible,!s),n))},A().createElement("div",{className:uv.container},A().createElement(x.W3,{className:uv.chartExtensions,name:"action-menu-".concat(a&&"default"!=a?a:u,"-items-slot"),state:void 0===o?{}:o})))}function ux(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uC(e){var t,n,r,a=e.contextKey,o=e.overlay,i=e.showSiderailAndBottomNav,s=e.additionalWorkspaceProps,l=e.actionMenuProps,c=(0,x.qv)(),u=cG(),d=u.workspaces,p=u.workspaceWindowState,f=u.workspaceGroup,m=null==f?void 0:f.name,h=d[0],g="hidden"===p||null==h,b=null!=(t=null==h?void 0:h.width)?t:o?"wider":"narrow",y=(0,v.useMemo)(function(){return i||m&&!g},[m,g,i]);return(0,x.yJ)(!g&&!(0,x.xl)(c)),A().createElement(A().Fragment,null,A().createElement("div",{className:i?up.workspaceContainerWithActionMenu:up.workspaceContainerWithoutActionMenu},A().createElement("aside",{className:k()(o?up.workspaceOverlayOuterContainer:up.workspaceWindowSpacer,(ux(n={},up.hiddenRelative,g),ux(n,up.narrowWorkspace,"narrow"===b),ux(n,up.widerWorkspace,"wider"===b),ux(n,up.extraWideWorkspace,"extra-wide"===b),n))},A().createElement("div",{className:k()(up.workspaceFixedContainer,(ux(r={},up.maximizedWindow,"maximized"===p),ux(r,up.hiddenFixed,g),r))},d.map(function(e,t){return A().createElement("div",{key:"workspace-container-".concat(e?e.name:"empty-".concat(t)),className:k()(up.workspaceInnerContainer,ux({},up.hiddenExtraWorkspace,0!==t))},A().createElement(v.Suspense,{fallback:null},A().createElement(V.I18nextProvider,{i18n:window.i18next,defaultNS:e.moduleName},A().createElement(uw,{workspaceInstance:e,additionalWorkspaceProps:s}))))}))),A().createElement(ue,{contextKey:a})),y&&A().createElement(uk,{name:m,isWithinWorkspace:!i,actionMenuProps:l}))}function uw(e){var t,n=e.workspaceInstance,r=e.additionalWorkspaceProps,a=(0,V.useTranslation)().t,o=(0,x.qv)(),i=cG(),s=i.workspaceWindowState,l=i.workspaceGroup,c=null==l?void 0:l.name,u="maximized"===s;(0,v.useEffect)(function(){var e=a(n.title);e!==n.title&&n.setTitle(e)},[n.title,a,n.setTitle]);var d=(0,v.useContext)(x.zq).featureName,p=(0,v.useCallback)(function(){cL(u?"normal":"maximized")},[u]),f=(0,v.useMemo)(function(){return null!=n?n:{}},[n]),m=f.canHide,h=void 0!==m&&m,g=f.canMaximize,b=f.currentWorkspaceGroup,y=f.closeWorkspace,$=(0,v.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ux(e,t,n[t])})}return e}({},r,null==n?void 0:n.additionalProps)},[r,n]);return n&&A().createElement(A().Fragment,null,A().createElement(sG.Header,{"aria-label":(0,sq.V)("workspaceHeader","Workspace Header"),className:up.header},!(0,x.xl)(o)&&!h&&A().createElement(sG.HeaderMenuButton,{"aria-label":(0,sq.V)("close","Close"),renderMenuIcon:A().createElement(oz,null),onClick:function(){return y()}}),A().createElement(sG.HeaderName,{prefix:""},null!=(t=n.titleNode)?t:a(n.title)),A().createElement("div",{className:up.overlayHeaderSpacer}),A().createElement(sG.HeaderGlobalBar,{className:up.headerButtons},A().createElement(x.W3,{name:"workspace-header-group-".concat(n.currentWorkspaceGroup,"-slot"),state:$}),A().createElement(x.W3,{name:"workspace-header-type-".concat(n.type,"-slot"),state:$}),A().createElement(x.W3,{name:"workspace-header-".concat(d,"-slot"),state:$}),(0,x.xl)(o)&&A().createElement(A().Fragment,null,(void 0!==g&&g||u)&&A().createElement(sG.HeaderGlobalAction,{"aria-label":u?(0,sq.V)("minimize","Minimize"):(0,sq.V)("maximize","Maximize"),onClick:p},u?A().createElement(c1.Xj,null):A().createElement(c1.hz,null)),h&&!c?A().createElement(sG.HeaderGlobalAction,{"aria-label":(0,sq.V)("hide","Hide"),onClick:function(){return cL("hidden")}},A().createElement(oP,null)):A().createElement(sG.HeaderGlobalAction,{"aria-label":(0,sq.V)("close","Close"),onClick:function(){return null==y?void 0:y()}},A().createElement(oZ,null))),"tablet"===o&&h&&A().createElement(sG.HeaderGlobalAction,{"aria-label":(0,sq.V)("close","Close"),onClick:function(){return null==y?void 0:y()}},A().createElement(c2.d3,null)))),A().createElement("div",{className:k()(up.workspaceContent,ux({},up.marginWorkspaceContent,!!(void 0===b?"":b)))},A().createElement(ug,{key:n.name,workspace:n,additionalPropsFromPage:r})))}var uE=n(94538),uD={};uD.styleTagTransform=F(),uD.setAttributes=P(),uD.insert=B().bind(null,"head"),uD.domAPI=D(),uD.insertStyleElement=M(),w()(uE.A,uD);let uS=uE.A&&uE.A.locals?uE.A.locals:void 0;function uB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return uB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uB(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var uT=function(e){var t,n=e.snackbar,r=e.closeSnackbar,a=n.actionButtonLabel,o=n.kind,i=void 0===o?"success":o,s=n.onActionButtonClick,l=void 0===s?function(){}:s,c=n.isLowContrast,u=n.progressActionLabel,d=n.subtitle,p=n.timeoutInMs,f=void 0===p?5e3:p,m=n.autoClose,h=void 0===m?"error"!==i:m,g=n.title,b=(n.id,function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(n,["actionButtonLabel","kind","onActionButtonClick","isLowContrast","progressActionLabel","subtitle","timeoutInMs","autoClose","title","id"])),y=uP((0,v.useState)(void 0===a?"":a),2),$=y[0],x=y[1],C=uP((0,v.useState)(!0),2),w=C[0],E=C[1],D=uP((0,v.useState)(!1),2),S=D[0],B=D[1],z=(0,v.useCallback)(function(){setTimeout(r,250)},[r]),P=(0,v.useCallback)(function(){B(!0),z()},[z]);return(0,v.useEffect)(function(){if(h){var e=setTimeout(P,f);return function(){return clearTimeout(e)}}},[f,h,P]),(0,v.useEffect)(function(){E(!1),window.setTimeout(function(){E(!0)},0)},[]),A().createElement(sG.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){uz(e,t,n[t])})}return e}({actionButtonLabel:$,"aria-label":"Close snackbar",className:k()(uS.slideIn,(uz(t={},uS.animated,w),uz(t,uS.slideOut,S),t)),inline:!0,kind:i,lowContrast:void 0===c?"error"!==i:c,onActionButtonClick:function(){l(),P(),u&&x(u)},onClose:z,statusIconDescription:"Snackbar notification",subtitle:void 0===d?"":d,title:g},b))};function uM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uO(e,t){if(e){if("string"==typeof e)return uM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uM(e,t)}}let uF=function(e){var t,n=e.subject,r=(t=(0,v.useState)([]),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||uO(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],o=r[1],i=(0,v.useCallback)(function(e){o(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,v.useEffect)(function(){var e=n.subscribe(function(e){return o(function(t){var n;return((function(e){if(Array.isArray(e))return uM(e)})(n=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||uO(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),A().createElement(A().Fragment,null,a.map(function(e){return A().createElement(uT,{key:e.id,snackbar:e,closeSnackbar:function(){return i(e)}})}))};var uI=new s6.B7,uN=0;function uj(e){e&&(0,l_.createRoot)(e).render(A().createElement(uF,{subject:uI}))}function uR(e){var t;e&&"string"==typeof(t=e.title)&&t.trim().length>0?setTimeout(function(){var t,n;uI.next((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={id:uN++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))},0):console.error("showSnackbar must be called with an object having a 'title' property that is a non-empty string")}var uL=function(e){var t=e.children;return"tablet"===(0,x.qv)()?A().createElement(sG.Layer,null,t):A().createElement(A().Fragment,null,t)},uV=n(25391);let uH="failing",uG=function(){try{return"localStorage"in window&&window.localStorage}catch(e){return!1}}();class uU{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{cachePrefix:t="react-avatar/",sourceTTL:n=6048e5,sourceSize:r=20}=e;this.cachePrefix=t,this.sourceTTL=n,this.sourceSize=r}set(e,t){if(uG){t=JSON.stringify(t);try{localStorage.setItem(this.cachePrefix+e,t)}catch(e){console.error(e)}}}get(e){if(!uG)return null;let t=localStorage.getItem(this.cachePrefix+e);return t?JSON.parse(t):null}sourceFailed(e){let t=this.get(uH)||[];return(t=t.filter(t=>{let n=t.expires>0&&t.expires<Date.now(),r=t===e||t.url==e;return!n&&!r})).unshift({url:e,expires:Date.now()+this.sourceTTL}),t=t.slice(0,this.sourceSize-1),this.set(uH,t)}hasSourceFailedBefore(e){return(this.get(uH)||[]).some(t=>{let n=t.expires>0&&t.expires<Date.now();return(t===e||t.url==e)&&!n})}}let uq=new uU;var uW=n(93442),uK=n(39067),uY=n.n(uK),uJ=n(18946);let uZ=n.n(uJ)()(),uX=["#A62A21","#7e3794","#0B51C1","#3A6024","#A81563","#B3003C"],uQ=/^([-+]?(?:\d+(?:\.\d+)?|\.\d+))([a-z]{2,4}|%)?$/;function u0(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uX;if(!e)return"transparent";let n=function(e,t){let n=[...e].map(e=>e.charCodeAt(0)),r=n.length,a=r%(t-1)+1,o=n.reduce((e,t)=>e+t)%t,i=n[0]%t;for(let e=0;e<r;e++)i=(a*i+o)%t;return i}(e,t.length);return t[n]}function u1(e){e=""+e;let[,t=0,n="px"]=uQ.exec(e)||[];return{value:parseFloat(t),str:t+n,unit:n}}function u2(e){return e=isNaN((e=u1(e)).value)?512:"px"===e.unit?e.value:512*(0!==e.value),uZ&&(e*=2),e}function u3(e,t){let{maxInitials:n}=t;return e.split(/\s/).map(e=>e.substring(0,1).toUpperCase()).filter(e=>!!e).slice(0,n).join("").toUpperCase()}let u4={};function u5(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of t){if(e||""===e)return e;if(!1===e||null===e)return null}}function u6(e){return!0===e?"100%":!1!==e?e:void 0}let u7={cache:uq,colors:uX,initials:u3,avatarRedirectUrl:null},u8=Object.keys(u7),u9=A().createContext&&A().createContext(),de=!u9,dt=de?null:u9.Consumer,dn=A().forwardRef||(e=>e);class dr extends A().Component{_getContext(){let e={};return u8.forEach(t=>{void 0!==this.props[t]&&(e[t]=this.props[t])}),e}render(){let{children:e}=this.props;return de?A().Children.only(e):A().createElement(u9.Provider,{value:this._getContext()},A().Children.only(e))}}(0,uW.A)(dr,"displayName","ConfigProvider"),(0,uW.A)(dr,"propTypes",{cache:uY().object,colors:uY().arrayOf(uY().string),initials:uY().func,avatarRedirectUrl:uY().string,children:uY().node});let da=e=>{function t(t,n){if(de){let r=n&&n.reactAvatar;return A().createElement(e,(0,uV.A)({},u7,r,t))}return A().createElement(dt,null,r=>A().createElement(e,(0,uV.A)({ref:n},u7,r,t)))}return t.contextTypes=dr.childContextTypes,dn(t)};de&&(dr.childContextTypes={reactAvatar:uY().object},dr.prototype.getChildContext=function(){return{reactAvatar:this._getContext()}});class di{constructor(){this.sourcePointer=0,this.active=!0,this.fetch=null}isActive(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.internal===this&&!!this.fetch&&!0===this.active}}class ds extends A().PureComponent{render(){let{className:e,unstyled:t,round:n,style:r,avatar:a,onClick:o,children:i}=this.props,{sourceName:s}=a,l=u1(this.props.size),c=t?null:{display:"inline-block",verticalAlign:"middle",width:l.str,height:l.str,borderRadius:u6(n),fontFamily:"Helvetica, Arial, sans-serif",...r},u=[e,"sb-avatar"];if(s){let e=s.toLowerCase().replace(/[^a-z0-9-]+/g,"-").replace(/^-+|-+$/g,"");u.push("sb-avatar--"+e)}return A().createElement("div",{className:u.join(" "),onClick:o,style:c},i)}}(0,uW.A)(ds,"propTypes",{className:uY().string,round:uY().oneOfType([uY().bool,uY().string]),style:uY().object,size:uY().oneOfType([uY().number,uY().string]),unstyled:uY().bool,avatar:uY().object,onClick:uY().func,children:uY().node});class dl extends A().PureComponent{render(){let{className:e,round:t,unstyled:n,alt:r,title:a,name:o,value:i,avatar:s}=this.props,l=u1(this.props.size),c=n?null:{maxWidth:"100%",width:l.str,height:l.str,borderRadius:u6(t)};return A().createElement(ds,this.props,A().createElement("img",{className:e+" sb-avatar__image",width:l.str,height:l.str,style:c,src:s.src,alt:u5(r,o||i),title:u5(a,o||i),onError:s.onRenderFailed}))}}(0,uW.A)(dl,"propTypes",{alt:uY().oneOfType([uY().string,uY().bool]),title:uY().oneOfType([uY().string,uY().bool]),name:uY().string,value:uY().string,avatar:uY().object,className:uY().string,unstyled:uY().bool,round:uY().oneOfType([uY().bool,uY().string,uY().number]),size:uY().oneOfType([uY().number,uY().string])}),(0,uW.A)(dl,"defaultProps",{className:"",round:!1,size:100,unstyled:!1});class dc extends A().PureComponent{constructor(){var e;super(...arguments),e=this,(0,uW.A)(this,"_scaleTextNode",function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,{unstyled:r,textSizeRatio:a,textMarginRatio:o,avatar:i}=e.props;if(e._node=t,!t||!t.parentNode||r||i.src||!e._mounted)return;let s=t.parentNode,l=s.parentNode,{width:c,height:u}=s.getBoundingClientRect();if(0==c&&0==u){let r=Math.min(1.5*n,500);!function(e,t){if(u4[t])return u4[t].push(e);let n=u4[t]=[e];setTimeout(()=>{delete u4[t],n.forEach(e=>e())},t)}(()=>e._scaleTextNode(t,r),r);return}l.style.fontSize||(l.style.fontSize="".concat(u/a,"px")),s.style.fontSize=null;let{width:d}=t.getBoundingClientRect();if(d<0)return;let p=c*(1-2*o);d>p&&(s.style.fontSize="calc(1em * ".concat(p/d,")"))})}componentDidMount(){this._mounted=!0,this._scaleTextNode(this._node)}componentWillUnmount(){this._mounted=!1}render(){let{className:e,round:t,unstyled:n,title:r,name:a,value:o,avatar:i}=this.props,s=u1(this.props.size),l=n?null:{width:s.str,height:s.str,lineHeight:"initial",textAlign:"center",color:this.props.fgColor,background:i.color,borderRadius:u6(t)},c=[i.value,this.props.size].join("");return A().createElement(ds,this.props,A().createElement("div",{className:e+" sb-avatar__text",style:l,title:u5(r,a||o)},A().createElement("div",{style:n?null:{display:"table",tableLayout:"fixed",width:"100%",height:"100%"}},A().createElement("span",{style:n?null:{display:"table-cell",verticalAlign:"middle",fontSize:"100%",whiteSpace:"nowrap"}},A().createElement("span",{ref:this._scaleTextNode,key:c},i.value)))))}}(0,uW.A)(dc,"propTypes",{name:uY().string,value:uY().string,avatar:uY().object,title:uY().oneOfType([uY().string,uY().bool]),className:uY().string,unstyled:uY().bool,fgColor:uY().string,textSizeRatio:uY().number,textMarginRatio:uY().number,round:uY().oneOfType([uY().bool,uY().string,uY().number]),size:uY().oneOfType([uY().number,uY().string])}),(0,uW.A)(dc,"defaultProps",{className:"",fgColor:"#FFF",round:!1,size:100,textSizeRatio:3,textMarginRatio:.15,unstyled:!1});var du=n(89150),dd=n.n(du);class dp{constructor(e){(0,uW.A)(this,"props",null),(0,uW.A)(this,"isCompatible",()=>!!this.props.email||!!this.props.md5Email),(0,uW.A)(this,"get",e=>{let{props:t}=this,n=t.md5Email||dd()(t.email),r=u2(t.size),a="https://secure.gravatar.com/avatar/".concat(n,"?d=404");r&&(a+="&s=".concat(r)),e({sourceName:"gravatar",src:a})}),this.props=e}}(0,uW.A)(dp,"propTypes",{email:uY().string,md5Email:uY().string});class df{constructor(e){(0,uW.A)(this,"props",null),(0,uW.A)(this,"isCompatible",()=>!!this.props.facebookId),(0,uW.A)(this,"get",e=>{let{facebookId:t}=this.props,n=u2(this.props.size),r="https://graph.facebook.com/".concat(t,"/picture");n&&(r+="?width=".concat(n,"&height=").concat(n)),e({sourceName:"facebook",src:r})}),this.props=e}}(0,uW.A)(df,"propTypes",{facebookId:uY().string});class dm{constructor(e){(0,uW.A)(this,"props",null),(0,uW.A)(this,"isCompatible",()=>!!this.props.githubHandle),(0,uW.A)(this,"get",e=>{let{githubHandle:t}=this.props,n=u2(this.props.size),r="https://avatars.githubusercontent.com/".concat(t,"?v=4");n&&(r+="&s=".concat(n)),e({sourceName:"github",src:r})}),this.props=e}}(0,uW.A)(dm,"propTypes",{githubHandle:uY().string});class dh{constructor(e){(0,uW.A)(this,"props",null),(0,uW.A)(this,"isCompatible",()=>!!this.props.skypeId),(0,uW.A)(this,"get",e=>{let{skypeId:t}=this.props;e({sourceName:"skype",src:"https://api.skype.com/users/".concat(t,"/profile/avatar")})}),this.props=e}}(0,uW.A)(dh,"propTypes",{skypeId:uY().string});class d_{constructor(e){(0,uW.A)(this,"props",null),(0,uW.A)(this,"isCompatible",()=>!!(this.props.name||this.props.value||this.props.email)),(0,uW.A)(this,"get",e=>{let t=this.getValue();if(!t)return e(null);e({sourceName:"text",value:t,color:this.getColor()})}),this.props=e}getInitials(){let{name:e,initials:t}=this.props;return"string"==typeof t?t:"function"==typeof t?t(e,this.props):u3(e,this.props)}getValue(){return this.props.name?this.getInitials():this.props.value?this.props.value:null}getColor(){let{color:e,colors:t,name:n,email:r,value:a}=this.props;return e||u0(n||r||a,t)}}(0,uW.A)(d_,"propTypes",{color:uY().string,name:uY().string,value:uY().string,email:uY().string,maxInitials:uY().number,initials:uY().oneOfType([uY().string,uY().func])});class dg{constructor(e){(0,uW.A)(this,"props",null),(0,uW.A)(this,"isCompatible",()=>!!this.props.src),(0,uW.A)(this,"get",e=>{e({sourceName:"src",src:this.props.src})}),this.props=e}}(0,uW.A)(dg,"propTypes",{src:uY().string});class db{constructor(e){(0,uW.A)(this,"props",null),(0,uW.A)(this,"icon","✷"),(0,uW.A)(this,"isCompatible",()=>!0),(0,uW.A)(this,"get",e=>{let{color:t,colors:n}=this.props;e({sourceName:"icon",value:this.icon,color:t||u0(this.icon,n)})}),this.props=e}}function dy(e,t){var n;return n=class{constructor(n){(0,uW.A)(this,"props",null),(0,uW.A)(this,"isCompatible",()=>!!this.props.avatarRedirectUrl&&!!this.props[t]),(0,uW.A)(this,"get",n=>{let{avatarRedirectUrl:r}=this.props,a=u2(this.props.size),o=r.replace(/\/*$/,"/"),i=this.props[t],s="".concat(o).concat(e,"/").concat(i,"?").concat(a?"size=".concat(a):"");n({sourceName:e,src:s})}),this.props=n}},(0,uW.A)(n,"propTypes",{[t]:uY().oneOfType([uY().string,uY().number])}),n}(0,uW.A)(db,"propTypes",{color:uY().string});let dv=dy("twitter","twitterHandle"),dA=dy("vkontakte","vkontakteId"),d$=dy("instagram","instagramId"),dk=(l=function(e){let{sources:t=[]}=e,n=t.reduce((e,t)=>Object.assign(e,t.propTypes),{});class r extends v.PureComponent{constructor(e){super(e),(0,uW.A)(this,"_createFetcher",e=>n=>{let{cache:r}=this.props;if(!e.isActive(this.state))return;n&&"error"===n.type&&r.sourceFailed(n.target.src);let a=e.sourcePointer;if(t.length===a)return;let o=t[a];e.sourcePointer++,function(e,t,n){let{cache:r}=t,a=new e(t);if(!a.isCompatible(t))return n();a.get(e=>{!(e&&e.src&&r.hasSourceFailedBefore(e.src))&&e?n(e):n()})}(o,this.props,t=>{if(!t)return setTimeout(e.fetch,0);e.isActive(this.state)&&(t={src:null,value:null,color:null,...t},this.setState(n=>e.isActive(n)?t:{}))})}),(0,uW.A)(this,"fetch",()=>{let e=new di;e.fetch=this._createFetcher(e),this.setState({internal:e},e.fetch)}),this.state={internal:null,src:null,value:null,color:e.color}}componentDidMount(){this.fetch()}componentDidUpdate(e){let t=!1;for(let r in n)t=t||e[r]!==this.props[r];t&&setTimeout(this.fetch,0)}componentWillUnmount(){this.state.internal&&(this.state.internal.active=!1)}render(){let{children:e,propertyName:t}=this.props,{src:n,value:r,color:a,sourceName:o,internal:i}=this.state,s={src:n,value:r,color:a,sourceName:o,onRenderFailed:()=>i&&i.fetch()};if("function"==typeof e)return e(s);let l=A().Children.only(e);return A().cloneElement(l,{[t]:s})}}return(0,uW.A)(r,"displayName","AvatarDataProvider"),(0,uW.A)(r,"propTypes",{...n,cache:uY().object,propertyName:uY().string}),(0,uW.A)(r,"defaultProps",{propertyName:"avatar"}),(0,uW.A)(r,"Cache",uU),(0,uW.A)(r,"ConfigProvider",dr),Object.assign(da(r),{ConfigProvider:dr,Cache:uU})}({sources:[df,dy("google","googleId"),dm,dv,d$,dA,dh,dp,dg,d_,db]}),Object.assign(da(A().forwardRef((e,t)=>A().createElement(l,(0,uV.A)({},e,{propertyName:"avatar"}),n=>{let r=n.src?dl:dc;return A().createElement(r,(0,uV.A)({},e,{avatar:n,ref:t}))}))),{getRandomColor:u0,ConfigProvider:dr,Cache:uU}));var dx=n(35570),dC=n.n(dx),dw=n(13624);function dE(e){var t,n,r,a=(0,x.UK)({externalModuleName:"@openmrs/esm-styleguide"}).patientPhotoConceptUuid,o=a?"".concat(s5.Jj,"/obs?patient=").concat(e,"&concept=").concat(a,"&v=full"):null,i=(0,dw.Ay)(e?o:null,s5.lo),s=i.data,l=i.error,c=i.isLoading,u=null==s||null==(t=s.data)?void 0:t.results[0];return{data:u?{dateTime:null==u?void 0:u.obsDatetime,imageSrc:null==u||null==(r=u.value)||null==(n=r.links)?void 0:n.uri}:null,error:l,isLoading:c}}let dD=function(e){var t=e.width,n=e.height,r=(0,V.useTranslation)().t;return A().createElement("svg",{"aria-label":r("patientPhotoPlaceholder","Patient photo placeholder"),width:void 0===t?56:t,height:void 0===n?56:n,fill:"none",xmlns:"http://www.w3.org/2000/svg"},A().createElement("path",{fill:"#ffffff",d:"M0 0h56v56H0z"}),A().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m36.75 20.134-.884-.884L19.25 35.866l.884.884 1.25-1.25H34.25a1.252 1.252 0 0 0 1.25-1.25V21.384l1.25-1.25Zm-2.5 14.116H22.634l4.87-4.87 1.487 1.486a1.25 1.25 0 0 0 1.768 0l.991-.991 2.5 2.498v1.877Zm0-3.645-1.616-1.616a1.25 1.25 0 0 0-1.768 0l-.991.991-1.486-1.486 5.861-5.86v7.971Zm-12.5 1.145v-1.875l3.125-3.123.858.859.885-.885-.86-.86a1.25 1.25 0 0 0-1.767 0l-2.241 2.242V21.75h10V20.5h-10c-.69 0-1.25.56-1.25 1.25v10h1.25Z",fill:"#8D8D8D"}))};var dS=n(20921),dB={};dB.styleTagTransform=F(),dB.setAttributes=P(),dB.insert=B().bind(null,"head"),dB.domAPI=D(),dB.insertStyleElement=M(),w()(dS.A,dB);let dz=dS.A&&dS.A.locals?dS.A.locals:void 0;function dP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dT(e){var t,n=e.patientUuid,r=e.patientName,a=(0,V.useTranslation)().t,o=dE(n),i=o.data,s=o.isLoading,l=(t=(0,v.useState)(null),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return dP(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dP(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=l[0],u=l[1],d=(0,v.useMemo)(function(){return dC().generate(n)},[n]);(0,v.useEffect)(function(){if(null==i?void 0:i.imageSrc){var e=new Image;e.onload=function(){return u(i.imageSrc)},e.onerror=function(){return u(null)},e.src=i.imageSrc}},[null==i?void 0:i.imageSrc]);var p=a("avatarAltText","Profile photo unavailable - grey placeholder image");return s?A().createElement(sG.SkeletonIcon,{className:dz.skeleton,"data-testid":"skeleton-icon"}):(null==i?void 0:i.imageSrc)&&!c?A().createElement(dD,null):A().createElement(dk,{alt:p,color:"rgba(0,0,0,0)",maxInitials:3,name:r,size:"56",src:null!=c?c:void 0,style:c?void 0:{backgroundImage:d.toDataUrl(),backgroundRepeat:"round"},textSizeRatio:2})}var dM=n(13489),dO={};dO.styleTagTransform=F(),dO.setAttributes=P(),dO.insert=B().bind(null,"head"),dO.domAPI=D(),dO.insertStyleElement=M(),w()(dM.A,dO);let dF=dM.A&&dM.A.locals?dM.A.locals:void 0;var dI=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-appointments",pictogramProps:e})})),dN=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-home",pictogramProps:e})})),dj=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-in-patient",pictogramProps:e})})),dR=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-laboratory",pictogramProps:e})})),dL=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-patient-lists",pictogramProps:e})})),dV=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-pharmacy",pictogramProps:e})})),dH=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-registration",pictogramProps:e})})),dG=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-service-queues",pictogramProps:e})})),dU=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-stock-management",pictogramProps:e})})),dq=(0,v.memo)((0,v.forwardRef)(function(e,t){var n=e.pictogram,r=e.fallback,a=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["pictogram","fallback"]),o=(0,v.useRef)(document.getElementById(n));return(0,v.useEffect)(function(){var e=document.getElementById("omrs-svgs-container"),t=new MutationObserver(function(e){var t=!0,r=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var l=i.value;"childList"===l.type&&(o.current=document.getElementById(n))}}catch(e){r=!0,a=e}finally{try{t||null==s.return||s.return()}finally{if(r)throw a}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[n]),A().createElement(x.fS,{value:o.current,fallback:r},A().createElement(dW,{ref:t,pictogram:n,pictogramProps:a}))})),dW=(0,v.memo)((0,v.forwardRef)(function(e,t){var n=e.pictogram,r=Object.assign({},{size:92},e.pictogramProps),a=r.className,o=r.size;return(o<=26||o>144)&&(console.error("Invalid size '".concat(o,"' specified for ").concat(n,". Defaulting to 92.")),o=92),A().createElement("svg",{ref:t,className:k()(dF.pictogram,a),height:o,width:o},A().createElement("use",{href:"#".concat(n)}))}));function dK(e){var t=e.showContactDetails,n=e.toggleContactDetails,r=e.className;return A().createElement(sG.Button,{className:r,iconDescription:"Toggle contact details",kind:"ghost",onClick:n,renderIcon:t?oK:oU},t?(0,sq.V)("showLess","Show less"):(0,sq.V)("showMore","Show more"))}var dY=function(e){var t,n=s2()("".concat(s5.Jj,"/patient/").concat(e,"?v=").concat("custom:(uuid,display,identifiers:(identifier,uuid,preferred,location:(uuid,name),identifierType:(uuid,name,format,formatDescription,validator)),person:(uuid,display,gender,birthdate,dead,age,deathDate,birthdateEstimated,causeOfDeath,preferredName:(uuid,preferred,givenName,middleName,familyName),attributes,preferredAddress:(uuid,preferred,address1,address2,cityVillage,longitude,stateProvince,latitude,country,postalCode,countyDistrict,address3,address4,address5,address6,address7)))"),s5.lo),r=n.data,a=n.error;return{isLoading:n.isLoading,attributes:null!=(t=null==r?void 0:r.data.person.attributes)?t:[],error:a}},dJ=function(e){var t=(0,x.UK)({externalModuleName:"@openmrs/esm-patient-banner-app"}).contactAttributeTypes,n=void 0===t?[]:t,r=dY(e),a=r.attributes,o=r.error,i=r.isLoading;return{contactAttributes:(0,v.useMemo)(function(){return a.filter(function(e){var t=e.attributeType;return null==n?void 0:n.some(function(e){return t.uuid===e})})},[a,n]),isLoading:i,error:o}},dZ=n(25377),dX={};dX.styleTagTransform=F(),dX.setAttributes=P(),dX.insert=B().bind(null,"head"),dX.domAPI=D(),dX.insertStyleElement=M(),w()(dZ.A,dX);let dQ=dZ.A&&dZ.A.locals?dZ.A.locals:void 0;function d0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d1(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(e,t)||d2(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d2(e,t){if(e){if("string"==typeof e)return d0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d0(e,t)}}var d3=function(e){var t,n,r,a,o,i,s,l,c=(a=(n=e.patientUuid)?"".concat(s5.Jj,"/cohortm/cohortmember?patient=").concat(n,"&v=").concat("custom:(uuid,patient:ref,cohort:(uuid,name,startDate,endDate))"):null,i=(o=(0,dw.Ay)(a,s5.lo)).data,s=o.isLoading,l=null==i||null==(r=i.data)?void 0:r.results.map(function(e){return{uuid:e.cohort.uuid,name:e.cohort.name,startDate:e.cohort.startDate,endDate:e.cohort.endDate}}),(0,v.useMemo)(function(){return{cohorts:l,isLoading:s}},[s,l])),u=c.cohorts,d=void 0===u?[]:u,p=c.isLoading;return A().createElement(A().Fragment,null,A().createElement("p",{className:dQ.heading},(0,sq.V)("patientLists","Patient Lists")," (",null!=(t=null==d?void 0:d.length)?t:0,")"),p?A().createElement(sG.InlineLoading,{description:"".concat((0,sq.V)("loading","Loading")," ..."),role:"progressbar"}):A().createElement("ul",null,function(){if((null==d?void 0:d.length)>0){var e=d.sort(function(e,t){return(0,ox._U)(null==e?void 0:e.startDate).getTime()-(0,ox._U)(null==t?void 0:t.startDate).getTime()}).slice(0,3);return null==e?void 0:e.map(function(e){return A().createElement("li",{key:e.uuid},A().createElement(x.i_,{to:"".concat(window.spaBase,"/home/patient-lists/").concat(e.uuid),key:e.uuid},e.name))})}return A().createElement("li",null,"--")}(),d.length>3&&A().createElement("li",{className:dQ.link},A().createElement(x.i_,{to:"".concat(window.spaBase,"/home/patient-lists")},(0,sq.V)("seeMoreLists","See {{count}} more lists",{count:(null==d?void 0:d.length)-3})))))},d4=function(e){var t,n=e.patientId,r=(0,x.tQ)(n),a=r.patient,o=r.isLoading,i=null==a||null==(t=a.address)?void 0:t.find(function(e){return"home"===e.use}),s=function(e){return e.split("#")[1]};return o?A().createElement(sG.InlineLoading,{description:"".concat((0,sq.V)("loading","Loading")," ..."),role:"progressbar"}):A().createElement(A().Fragment,null,A().createElement("p",{className:dQ.heading},(0,sq.V)("address","Address")),A().createElement("ul",null,i?Object.entries(i).filter(function(e){var t=d1(e,1)[0];return"id"!==t&&"use"!==t}).map(function(e){var t,n,r,a=d1(e,2),o=a[0],l=a[1];return"extension"===o?null==(r=i.extension)||null==(n=r[0])||null==(t=n.extension)?void 0:t.map(function(e,t){return A().createElement("li",{key:"address-".concat(o,"-").concat(t)},(0,sq.V)(s(e.url),s(e.url)),": ",e.valueString)}):A().createElement("li",{key:"address-".concat(o)},(0,sq.V)(o,o),": ",l)}):A().createElement("li",null,"--")))},d5=function(e){var t=dJ(e.patientUuid),n=t.isLoading,r=t.contactAttributes,a=(0,v.useMemo)(function(){var e;return r?function(e){if(Array.isArray(e))return d0(e)}(e=null==r?void 0:r.map(function(e){return[e.attributeType.display?(0,sq.V)(e.attributeType.display,e.attributeType.display):"",e.value]}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d2(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():[]},[r]);return A().createElement(A().Fragment,null,A().createElement("p",{className:dQ.heading},(0,sq.V)("contactDetails","Contact Details")),n?A().createElement(sG.InlineLoading,{description:"".concat((0,sq.V)("loading","Loading")," ..."),role:"progressbar"}):A().createElement("ul",null,a.length?a.map(function(e,t){var n=d1(e,2),r=n[0],a=n[1];return A().createElement("li",{key:"".concat(r,"-").concat(a,"-").concat(t)},r,": ",a)}):A().createElement("li",null,"--")))},d6=function(e){var t,n,r,a,o,i,s,l,c,u,d=(t=e.patientId,a="".concat(s5.Jj,"/relationship?v=").concat("custom:(display,uuid,personA:(age,display,birthdate,uuid),personB:(age,display,birthdate,uuid),relationshipType:(uuid,display,description,aIsToB,bIsToA))","&person=").concat(t),i=(o=(0,dw.Ay)(t?a:null,s5.lo)).data,s=o.error,l=o.isLoading,c=o.isValidating,u=(null==i||null==(r=i.data)||null==(n=r.results)?void 0:n.length)?function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var l=i.value;e===l.personA.uuid?n.push({uuid:"".concat(l.uuid),display:l.personB.display,relativeAge:l.personB.age,relativeUuid:l.personB.uuid,relationshipType:l.relationshipType.bIsToA}):n.push({uuid:"".concat(l.uuid),display:l.personA.display,relativeAge:l.personA.age,relativeUuid:l.personA.uuid,relationshipType:l.relationshipType.aIsToB})}}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}(t,i.data.results):null,{data:i?u:null,error:s,isLoading:l,isValidating:c}),p=d.data,f=d.isLoading;return A().createElement(A().Fragment,null,A().createElement("p",{className:dQ.heading},(0,sq.V)("relationships","Relationships")),f?A().createElement(sG.InlineLoading,{description:"".concat((0,sq.V)("loading","Loading")," ..."),role:"progressbar"}):A().createElement("ul",null,p&&p.length>0?A().createElement(A().Fragment,null,p.map(function(e){return A().createElement("li",{key:e.uuid,className:dQ.relationship},A().createElement("div",null,A().createElement(x.i_,{to:"".concat(window.spaBase,"/patient/").concat(e.relativeUuid,"/chart")},e.display)),A().createElement("div",null,e.relationshipType),A().createElement("div",null,"".concat(e.relativeAge?e.relativeAge:"--"," ").concat(e.relativeAge?1===e.relativeAge?"yr":"yrs":"")))})):A().createElement("li",null,"--")))};function d7(e){var t,n,r=e.patientId,a=e.deceased;return A().createElement("div",{className:k()(dQ.contactDetails,(t={},n=dQ.deceased,n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t))},A().createElement("div",{className:dQ.row},A().createElement("div",{className:dQ.col},A().createElement(d4,{patientId:r})),A().createElement("div",{className:dQ.col},A().createElement(d5,{patientUuid:r}))),A().createElement("div",{className:dQ.row},A().createElement("div",{className:dQ.col},A().createElement(d6,{patientId:r})),A().createElement("div",{className:dQ.col},A().createElement(d3,{patientUuid:r}))))}function d8(e){var t=document.querySelector("template#loading-spinner");if(t){var n=t.content.cloneNode(!0),r=Array.prototype.map.call(n.childNodes,function(e){return e});return e.appendChild(n),function(){return r.forEach(function(e){return e.remove()})}}return function(){}}},79736:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},36678:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(33780);function a(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,(0,r.A)(a.key),a)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},93442:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(33780);function a(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},33780:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(85761);function a(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=(0,r.A)(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},85761:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{A:()=>r})},27532:function(e,t,n){"use strict";n.d(t,{Ip:()=>b,_l:()=>h,gX:()=>f,ng:()=>d});var r=n(2385),a=n(34324),o=n(68569),i=n(12748),s=n(31530),l=n(91805);function c(e){let t,n="object"==typeof e[0]?e.shift():new(0,i.FG);if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}var u=new WeakMap;class d{copy(){return this.era?new d(this.calendar,this.era,this.year,this.month,this.day):new d(this.calendar,this.year,this.month,this.day)}add(e){return(0,r.WQ)(this,e)}subtract(e){return(0,r.Re)(this,e)}set(e){return(0,r.hZ)(this,e)}cycle(e,t,n){return(0,r.xy)(this,e,t,n)}toDate(e){return(0,s.ay)(this,e)}toString(){return(0,o.$T)(this)}compare(e){return(0,a.SE)(this,e)}constructor(...e){(0,l._)(this,u,{writable:!0,value:void 0});let[t,n,a,o,i]=c(e);this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=i,(0,r.AU)(this)}}var p=new WeakMap;class f{copy(){return new f(this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.tY)(this,e)}subtract(e){return(0,r.YP)(this,e)}set(e){return(0,r.ib)(this,e)}cycle(e,t,n){return(0,r.gt)(this,e,t,n)}toString(){return(0,o.ot)(this)}compare(e){return(0,a.Nu)(this,e)}constructor(e=0,t=0,n=0,a=0){(0,l._)(this,p,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=a,(0,r.Rb)(this)}}var m=new WeakMap;class h{copy(){return this.era?new h(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new h(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.WQ)(this,e)}subtract(e){return(0,r.Re)(this,e)}set(e){return(0,r.hZ)((0,r.ib)(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return(0,r.xy)(this,e,t,n);default:return(0,r.gt)(this,e,t,n)}}toDate(e,t){return(0,s.ay)(this,e,t)}toString(){return(0,o.qk)(this)}compare(e){let t=(0,a.SE)(this,e);return 0===t?(0,a.Nu)(this,(0,s.tR)(e)):t}constructor(...e){(0,l._)(this,m,{writable:!0,value:void 0});let[t,n,a,o,i]=c(e);this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,r.AU)(this)}}var g=new WeakMap;class b{copy(){return this.era?new b(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new b(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.E0)(this,e)}subtract(e){return(0,r.d_)(this,e)}set(e,t){return(0,r.D8)(this,e,t)}cycle(e,t,n){return(0,r.XH)(this,e,t,n)}toDate(){return(0,s.cd)(this)}toString(){return(0,o.e6)(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(0,s.uB)(e,this.timeZone).toDate().getTime()}constructor(...e){(0,l._)(this,g,{writable:!0,value:void 0});let[t,n,a,o,i]=c(e),s=e.shift(),u=e.shift();this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=i,this.timeZone=s,this.offset=u,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,r.AU)(this)}}},12748:function(e,t,n){"use strict";n.d(t,{FG:()=>u,LA:()=>s,U_:()=>i,f5:()=>l,rG:()=>o});var r=n(27532),a=n(36829);function o(e,t,n,r){let a=(t=s(e,t))-1,o=-2;return n<=2?o=0:i(t)&&(o=-1),1721425+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*n-362)/12+o+r)}function i(e){return e%4==0&&(e%100!=0||e%400==0)}function s(e,t){return"BC"===e?1-t:t}function l(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}let c={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 u{fromJulianDay(e){let t=e-1721426,n=Math.floor(t/146097),s=(0,a.z)(t,146097),c=Math.floor(s/36524),u=(0,a.z)(s,36524),d=Math.floor(u/1461),p=Math.floor((0,a.z)(u,1461)/365),[f,m]=l(400*n+100*c+4*d+p+ +(4!==c&&4!==p)),h=e-o(f,m,1,1),g=2;e<o(f,m,3,1)?g=0:i(m)&&(g=1);let b=Math.floor(((h+g)*12+373)/367),y=e-o(f,m,b,1)+1;return new(0,r.ng)(f,m,b,y)}toJulianDay(e){return o(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return c[i(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return i(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}},31530:function(e,t,n){"use strict";n.d(t,{Tr:()=>p,Yd:()=>m,ay:()=>f,cd:()=>v,gw:()=>h,oU:()=>s,tR:()=>g,uB:()=>y,yP:()=>b});var r=n(27532),a=n(2385),o=n(12748),i=n(34324);function s(e){return e=b(e,new(0,o.FG)),l((0,o.LA)(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function l(e,t,n,r,a,o,i){let s=new Date;return s.setUTCHours(r,a,o,i),s.setUTCFullYear(e,t-1,n),s.getTime()}function c(e,t){if("UTC"===t)return 0;if(e>0&&t===(0,i.Xj)())return -6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:a,hour:o,minute:s,second:c}=d(e,t);return l(n,r,a,o,s,c,0)-1e3*Math.floor(e/1e3)}let u=new Map;function d(e,t){let n=u.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"}),u.set(t,n));let r=n.formatToParts(new Date(e)),a={};for(let e of r)"literal"!==e.type&&(a[e.type]=e.value);return{year:"BC"===a.era||"B"===a.era?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:"24"===a.hour?0:+a.hour,minute:+a.minute,second:+a.second}}function p(e,t,n="compatible"){var r,a,l;let u=g(e);if("UTC"===t)return s(u);if(t===(0,i.Xj)()&&"compatible"===n){u=b(u,new(0,o.FG));let e=new Date,t=(0,o.LA)(u.era,u.year);return e.setFullYear(t,u.month-1,u.day),e.setHours(u.hour,u.minute,u.second,u.millisecond),e.getTime()}let f=s(u),m=c(f-864e5,t),h=c(f+864e5,t),y=(r=u,((a=f-m)==(l=f-h)?[a]:[a,l]).filter(e=>{var n;let a;return n=r,a=d(e,t),n.year===a.year&&n.month===a.month&&n.day===a.day&&n.hour===a.hour&&n.minute===a.minute&&n.second===a.second}));if(1===y.length)return y[0];if(y.length>1)switch(n){case"compatible":case"earlier":return y[0];case"later":return y[y.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(f-m,f-h);case"compatible":case"later":return Math.max(f-m,f-h);case"reject":throw RangeError("No such absolute time found")}}function f(e,t,n="compatible"){return new Date(p(e,t,n))}function m(e,t){let n=c(e,t),a=new Date(e+n),o=a.getUTCFullYear(),i=a.getUTCMonth()+1,s=a.getUTCDate(),l=a.getUTCHours(),u=a.getUTCMinutes(),d=a.getUTCSeconds(),p=a.getUTCMilliseconds();return new(0,r.Ip)(o<1?"BC":"AD",o<1?-o+1:o,i,s,t,n,l,u,d,p)}function h(e){return new(0,r.ng)(e.calendar,e.era,e.year,e.month,e.day)}function g(e,t){let n=0,a=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:a,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:a,second:o,millisecond:i}=t),new(0,r._l)(e.calendar,e.era,e.year,e.month,e.day,n,a,o,i)}function b(e,t){if((0,i.Jg)(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,(0,a.AU)(r),r}function y(e,t,n){if(e instanceof r.Ip){var a,o;return e.timeZone===t?e:(a=e,o=t,b(m(s(a)-a.offset,o),a.calendar))}return m(p(e,t,n),t)}function v(e){return new Date(s(e)-e.offset)}},32878:function(e,t,n){"use strict";let r,a;n.d(t,{d:()=>J});var o=n(27532),i=n(12748);class s extends i.FG{fromJulianDay(e){let t=super.fromJulianDay(e),n=(0,i.LA)(t.era,t.year);return new(0,o.ng)(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(l(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(l(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function l(e){let[t,n]=(0,i.f5)(e.year+-543);return new(0,o.ng)(t,n,e.month,e.day)}function c(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function u(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-c(e,n,1,1))/30),a=t+1-c(e,n,r,1);return[n,r,a]}function d(e){return Math.floor(e%4/3)}function p(e,t){return t%13!=0?30:d(e)+5}class f{fromJulianDay(e){let[t,n,r]=u(1723856,e),a="AM";return t<=0&&(a="AA",t+=5500),new(0,o.ng)(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=5500),c(1723856,t,e.month,e.day)}getDaysInMonth(e){return p(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+d(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class m extends f{fromJulianDay(e){let[t,n,r]=u(1723856,e);return t+=5500,new(0,o.ng)(this,"AA",t,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class h extends f{fromJulianDay(e){let[t,n,r]=u(1824665,e),a="CE";return t<=0&&(a="BCE",t=1-t),new(0,o.ng)(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),c(1824665,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),p(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}var g=n(36829);let b=765433;function y(e){return 7>(0,g.z)(7*e+1,19)}function v(e){let t=Math.floor((235*e-234)/19),n=29*t+Math.floor((12084+13753*t)/25920);return 3>(0,g.z)(3*(n+1),7)&&(n+=1),n}function A(e){let t,n;return v(e)+(t=v(e-1),n=v(e),v(e+1)-n==356?2:+(n-t==382))}function $(e){return A(e+1)-A(e)}function k(e,t){if(t>=6&&!y(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=$(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?30*!!y(e):30}class x{fromJulianDay(e){let t=e-347997,n=Math.floor((25920*t/b*19+234)/235)+1,r=A(n),a=Math.floor(t-r);for(;a<1;)a=Math.floor(t-(r=A(--n)));let i=1,s=0;for(;s<a;)s+=k(n,i),i++;let l=a-(s-=k(n,--i));return new(0,o.ng)(this,n,i,l)}toJulianDay(e){let t=A(e.year);for(let n=1;n<e.month;n++)t+=k(e.year,n);return t+e.day+347997}getDaysInMonth(e){return k(e.year,e.month)}getMonthsInYear(e){return y(e.year)?13:12}getDaysInYear(e){return $(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(y(t.year)&&!y(e.year)&&t.month>6?e.month--:!y(t.year)&&y(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class C extends i.FG{fromJulianDay(e){let t,n,r,a=super.fromJulianDay(e),s=a.year-78,l=e-(0,i.rG)(a.era,a.year,1,1);if(l<80?(s--,l+=(t=(0,i.U_)(a.year-1)?31:30)+155+90+10):(t=(0,i.U_)(a.year)?31:30,l-=80),l<t)n=1,r=l+1;else{let e=l-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new(0,o.ng)(this,s,n,r)}toJulianDay(e){let t,n,r=e.year+78,[a,o]=(0,i.f5)(r);return((0,i.U_)(o)?(t=31,n=(0,i.rG)(a,o,3,21)):(t=30,n=(0,i.rG)(a,o,3,22)),1===e.month)?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=(e.month-7)*30),n+=e.day-1)}getDaysInMonth(e){return 1===e.month&&(0,i.U_)(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}function w(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function E(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),a=Math.min(12,Math.ceil((n-(29+w(t,r,1,1)))/29.5)+1),i=n-w(t,r,a,1)+1;return new(0,o.ng)(e,r,a,i)}function D(e){return(14+11*e)%30<11}class S{fromJulianDay(e){return E(this,1948440,e)}toJulianDay(e){return w(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&D(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return D(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class B extends S{fromJulianDay(e){return E(this,1948439,e)}toJulianDay(e){return w(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function z(e){return 460322+a[e-1300]}function P(e,t){return(r[e-1300]&1<<11-(t-1))==0?29:30}function T(e,t){let n=z(e);for(let r=1;r<t;r++)n+=P(e,r);return n}function M(e){return a[e+1-1300]-a[e-1300]}class O extends S{fromJulianDay(e){let t=e-1948440,n=z(1300),r=z(1600);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){r=t-z(++e)+1;let a=M(e);if(r===a){n=12;break}if(r<a){let t=P(e,n);for(n=1;r>t;)r-=t,t=P(e,++n);break}}return new(0,o.ng)(this,e,n,t-T(e,n)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+T(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):P(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):M(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",r||(r=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!a){a=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){a[t-1300]=e;for(let n=1;n<=12;n++)e+=P(t,n)}}}}let F=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],I=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],N=[1867,1911,1925,1988,2018],j=["meiji","taisho","showa","heisei","reiwa"];function R(e){let t=F.findIndex(([t,n,r])=>!!(e.year<t)||e.year===t&&!!(e.month<n)||e.year===t&&e.month===n&&!!(e.day<r));return -1===t?F.length-1:0===t?0:t-1}function L(e){let t=N[j.indexOf(e.era)];if(!t)throw Error("Unknown era: "+e.era);return new(0,o.ng)(e.year+t,e.month,e.day)}class V extends i.FG{fromJulianDay(e){let t=super.fromJulianDay(e),n=R(t);return new(0,o.ng)(this,j[n],t.year-N[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(L(e))}balanceDate(e){let t=L(e),n=R(t);j[n]!==e.era&&(e.era=j[n],e.year=t.year-N[n]),this.constrainDate(e)}constrainDate(e){let t=j.indexOf(e.era),n=I[t];if(null!=n){let[r,a,o]=n,i=r-N[t];e.year=Math.max(1,Math.min(i,e.year)),e.year===i&&(e.month=Math.min(a,e.month),e.month===a&&(e.day=Math.min(o,e.day)))}if(1===e.year&&t>=0){let[,n,r]=F[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return j}getYearsInEra(e){let t=j.indexOf(e.era),n=F[t],r=F[t+1];if(null==r)return 9999-n[0]+1;let a=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&a++,a}getDaysInMonth(e){return super.getDaysInMonth(L(e))}getMinimumMonthInYear(e){let t=H(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=H(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function H(e){if(1===e.year)return F[j.indexOf(e.era)]}let G=[0,31,62,93,124,155,186,216,246,276,306,336];class U{fromJulianDay(e){let t=e-1948320,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),a=r<216?Math.floor(r/31):Math.floor((r-6)/30),i=r-G[a]+1;return new(0,o.ng)(this,n,a+1,i)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=G[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>(0,g.z)(25*e.year+11,33)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function q(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function W(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class K extends i.FG{fromJulianDay(e){let t=super.fromJulianDay(e),[n,r]=W((0,i.LA)(t.era,t.year));return new(0,o.ng)(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Y(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=W(q(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(Y(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function Y(e){let[t,n]=(0,i.f5)(q(e));return new(0,o.ng)(t,n,e.month,e.day)}function J(e){switch(e){case"buddhist":return new s;case"ethiopic":return new f;case"ethioaa":return new m;case"coptic":return new h;case"hebrew":return new x;case"indian":return new C;case"islamic-civil":return new S;case"islamic-tbla":return new B;case"islamic-umalqura":return new O;case"japanese":return new V;case"persian":return new U;case"roc":return new K;default:return new(0,i.FG)}}},2385:function(e,t,n){"use strict";n.d(t,{AU:()=>c,D8:()=>w,E0:()=>k,Rb:()=>m,Re:()=>d,WQ:()=>o,XH:()=>C,YP:()=>y,d_:()=>x,gt:()=>A,hZ:()=>p,ib:()=>f,tY:()=>b,xy:()=>v});var r=n(31530),a=n(12748);function o(e,t){let n=e.copy(),r="hour"in n?g(n,t):0;i(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,s(n),l(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,s(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,s(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let a=n.calendar.getYearsInEra(n);if(n.year>a){var o,c;let e=null==(o=(c=n.calendar).isInverseEra)?void 0:o.call(c,n);n.year=a,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function i(e,t){var n,r;(null==(n=(r=e.calendar).isInverseEra)?void 0:n.call(r,e))&&(t=-t),e.year+=t}function s(e){for(;e.month<1;)i(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,i(e,1)}function l(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 c(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),l(e)}function u(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function d(e,t){return o(e,u(t))}function p(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),c(n),n}function f(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),m(n),n}function m(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 h(e,t){let n=e%t;return n<0&&(n+=t),n}function g(e,t){let n;return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=h(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=h(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=h(e.minute,60),n=Math.floor(e.hour/24),e.hour=h(e.hour,24),n}function b(e,t){let n=e.copy();return g(n,t),n}function y(e,t){return b(e,u(t))}function v(e,t,n,r){let a=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),o=t.indexOf(e.era);if(o<0)throw Error("Invalid era: "+e.era);o=$(o,n,0,t.length-1,null==r?void 0:r.round),a.era=t[o],c(a);break}case"year":var o,i;(null==(o=(i=a.calendar).isInverseEra)?void 0:o.call(i,a))&&(n=-n),a.year=$(e.year,n,-1/0,9999,null==r?void 0:r.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=$(e.month,n,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":a.day=$(e.day,n,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),c(a),a}function A(e,t,n,r){let a=e.copy();switch(t){case"hour":{let t=e.hour,o=0,i=23;if((null==r?void 0:r.hourCycle)===12){let e=t>=12;o=12*!!e,i=e?23:11}a.hour=$(t,n,o,i,null==r?void 0:r.round);break}case"minute":a.minute=$(e.minute,n,0,59,null==r?void 0:r.round);break;case"second":a.second=$(e.second,n,0,59,null==r?void 0:r.round);break;case"millisecond":a.millisecond=$(e.millisecond,n,0,999,null==r?void 0:r.round);break;default:throw Error("Unsupported field "+t)}return a}function $(e,t,n,r,a=!1){if(a){(e+=Math.sign(t))<n&&(e=r);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function k(e,t){let n;if(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days){let a=o((0,r.tR)(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=(0,r.Tr)(a,e.timeZone)}else n=(0,r.oU)(e)-e.offset;n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0);let a=(0,r.Yd)(n,e.timeZone);return(0,r.yP)(a,e.calendar)}function x(e,t){return k(e,u(t))}function C(e,t,n,o){switch(t){case"hour":{let t=0,i=23;if((null==o?void 0:o.hourCycle)===12){let n=e.hour>=12;t=12*!!n,i=n?23:11}let s=(0,r.tR)(e),l=(0,r.yP)(f(s,{hour:t}),new(0,a.FG)),c=[(0,r.Tr)(l,e.timeZone,"earlier"),(0,r.Tr)(l,e.timeZone,"later")].filter(t=>(0,r.Yd)(t,e.timeZone).day===l.day)[0],u=(0,r.yP)(f(s,{hour:i}),new(0,a.FG)),d=[(0,r.Tr)(u,e.timeZone,"earlier"),(0,r.Tr)(u,e.timeZone,"later")].filter(t=>(0,r.Yd)(t,e.timeZone).day===u.day).pop(),p=(0,r.oU)(e)-e.offset,m=Math.floor(p/36e5),h=p%36e5;return p=36e5*$(m,n,Math.floor(c/36e5),Math.floor(d/36e5),null==o?void 0:o.round)+h,(0,r.yP)((0,r.Yd)(p,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return A(e,t,n,o);case"era":case"year":case"month":case"day":{let a=v((0,r.tR)(e),t,n,o),i=(0,r.Tr)(a,e.timeZone);return(0,r.yP)((0,r.Yd)(i,e.timeZone),e.calendar)}default:throw Error("Unsupported field "+t)}}function w(e,t,n){let a=(0,r.tR)(e),o=f(p(a,t),t);if(0===o.compare(a))return e;let i=(0,r.Tr)(o,e.timeZone,n);return(0,r.yP)((0,r.Yd)(i,e.timeZone),e.calendar)}},34324:function(e,t,n){"use strict";n.d(t,{p9:()=>A,$I:()=>w,xz:()=>k,RZ:()=>D,oT:()=>x,tB:()=>p,kq:()=>C,Jg:()=>l,Py:()=>S,tF:()=>i,Xj:()=>y,Nu:()=>h,SJ:()=>d,SE:()=>m,ro:()=>o,D:()=>$,ZI:()=>B,Ec:()=>f,cK:()=>c,NV:()=>s,wH:()=>v});var r=n(31530);let a={"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 o(e,t){return t=(0,r.yP)(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function i(e,t){return t=(0,r.yP)(t,e.calendar),e=v(e),t=v(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function s(e,t){return l(e.calendar,t.calendar)&&o(e,t)}function l(e,t){var n,r,a,o;return null!=(o=null!=(a=null==(n=e.isEqual)?void 0:n.call(e,t))?a:null==(r=t.isEqual)?void 0:r.call(t,e))?o:e.identifier===t.identifier}function c(e,t){return o(e,f(t))}let u={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function d(e,t,n){let r,o=Math.ceil(e.calendar.toJulianDay(e)+1-(n?u[n]:(r=function(e){if(Intl.Locale){let t=E.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&E.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(t))&&a[r]||0))%7;return o<0&&(o+=7),o}function p(e){return(0,r.Yd)(Date.now(),e)}function f(e){return(0,r.gw)(p(e))}function m(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function h(e,t){return g(e)-g(t)}function g(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let b=null;function y(){return null==b&&(b=new Intl.DateTimeFormat().resolvedOptions().timeZone),b}function v(e){return e.subtract({days:e.day-1})}function A(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function $(e){return v(e.subtract({months:e.month-1}))}function k(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function x(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function C(e,t,n){let r=d(e,t,n);return e.subtract({days:r})}function w(e,t,n){return C(e,t,n).add({days:6})}let E=new Map;function D(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((d(v(e),t,n)+r)/7)}function S(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function B(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}},68569:function(e,t,n){"use strict";n.d(t,{$T:()=>p,DP:()=>c,_U:()=>l,e6:()=>m,ot:()=>d,qk:()=>f});var r=n(27532),a=n(31530),o=n(12748);let i=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,s=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function l(e){let t=e.match(i);if(!t)throw Error("Invalid ISO 8601 date string: "+e);let n=new(0,r.ng)(u(t[1],0,9999),u(t[2],1,12),1);return n.day=u(t[3],1,n.calendar.getDaysInMonth(n)),n}function c(e){let t=e.match(s);if(!t)throw Error("Invalid ISO 8601 date time string: "+e);let n=u(t[1],-9999,9999),a=new(0,r._l)(n<1?"BC":"AD",n<1?-n+1:n,u(t[2],1,12),1,t[4]?u(t[4],0,23):0,t[5]?u(t[5],0,59):0,t[6]?u(t[6],0,59):0,t[7]?1e3*u(t[7],0,1/0):0);return a.day=u(t[3],0,a.calendar.getDaysInMonth(a)),a}function u(e,t,n){let r=Number(e);if(r<t||r>n)throw RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function d(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 p(e){let t,n=(0,a.yP)(e,new(0,o.FG));return t="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${t}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function f(e){return`${p(e)}T${d(e)}`}function m(e){var t;let n,r,a;return`${f(e)}${n=0>Math.sign(t=e.offset)?"-":"+",r=Math.floor((t=Math.abs(t))/36e5),a=t%36e5/6e4,`${n}${String(r).padStart(2,"0")}:${String(a).padStart(2,"0")}`}[${e.timeZone}]`}},36829:function(e,t,n){"use strict";function r(e,t){return e-t*Math.floor(e/t)}n.d(t,{z:()=>r})},91805:function(e,t,n){"use strict";function r(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}n.d(t,{_:()=>r})},8902:function(e,t,n){"use strict";if(n.d(t,{CD:()=>D}),"undefined"!=typeof navigator){let e=navigator;r=Array.isArray(e.languages)?e.languages[0]:e.language}else if("undefined"!=typeof process){let e=process.env;r=e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}var r,a=function(e){e=(e=e.replace(/_/g,"-")).replace(/[.:][\w-]*$/,"");try{return new Intl.Locale(e).baseName}catch(e){return"en-US"}}(r||"en-US"),o=class extends Date{invalid=null;isValid(){return!Number.isNaN(this.valueOf())}},i={};for(let e=0;e<100;e++)i[(e<=9?"0":"")+e]=e+(e>51?1900:2e3);var s={arab:1632,arabext:1776,bali:6992,beng:2534,deva:2406,fullwide:65296,gujr:2790,khmr:6112,knda:3302,laoo:3792,limb:6470,mlym:3430,mong:6160,mymr:4160,orya:2918,tamldec:3046,telu:3174,thai:3664,tibt:3872},l="[1234567890一二三四五六七八九〇\\d]",c={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9},u={},d={"Eastern Daylight Time":-240,"Eastern Standard Time":-300,"Central Daylight Time":-300,"Central Standard Time":-360,"Mountain Daylight Time":-360,"Mountain Standard Time":-420,"Pacific Daylight Time":-420,"Pacific Standard Time":-480,"Coordinated Universal Time":0,ACDT:630,ACST:570,ACT:480,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,AMST:-180,AMT:-240,ART:-180,AST:180,AWDT:540,AWST:480,AZOST:-60,AZT:240,BDT:360,BIOT:360,BIT:-720,BOT:-240,BRST:-120,BRT:-180,BTT:360,CAT:120,CCT:390,CDT:-300,CEDT:120,CEST:120,CET:60,CHADT:825,CHAST:765,CHOT:480,ChST:600,CHUT:600,CIST:-480,CIT:480,CKT:-600,CLST:-180,CLT:-240,COST:-240,COT:-300,CST:-360,CT:480,CVT:-60,CXT:420,DAVT:420,DDUT:600,DFT:60,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEDT:180,EEST:180,EET:120,EGST:0,EGT:-60,EIT:540,EST:-300,FET:180,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GIT:-540,GMT:0,GST:-120,GYT:-240,HADT:-540,HAEC:120,HAST:-600,HKT:480,HMT:300,HOVT:420,HST:-600,IBST:0,ICT:420,IDT:180,IOT:180,IRDT:270,IRKT:480,IRST:210,IST:120,JST:540,KGT:360,KOST:660,KRAT:420,KST:540,LHST:630,LINT:840,MAGT:720,MART:-510,MAWT:300,MDT:-360,MET:60,MEST:120,MHT:720,MIST:660,MIT:-510,MMT:390,MSK:180,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:660,NPT:345,NST:-150,NT:-150,NUT:-660,NZDT:780,NZST:720,OMST:360,ORAT:300,PDT:-420,PET:-300,PETT:720,PGT:600,PHOT:780,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PYST:-180,PYT:-240,RET:240,ROTT:-180,SAKT:660,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SLST:330,SRET:660,SRT:-180,SST:480,SYOT:180,TAHT:-600,THA:420,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TOT:780,TVT:720,UCT:0,ULAT:480,USZ1:120,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-240,VLAT:600,VOLT:240,VOST:360,VUT:660,WAKT:720,WAST:120,WAT:60,WEDT:60,WEST:60,WET:0,WIT:420,WST:480,YAKT:540,YEKT:300},p={zone:d,year:i,meridiem:{am:0,pm:12,"a.m.":0,"p.m.":12},month:{january:1,jan:1,february:2,feb:2,march:3,mar:3,april:4,apr:4,may:5,june:6,jun:6,july:7,jul:7,august:8,aug:8,september:9,sep:9,october:10,oct:10,november:11,nov:11,december:12,dec:12},dayname:{sunday:0,sun:0,monday:1,mon:1,tuesday:2,tue:2,wednesday:3,wed:3,thursday:4,thu:4,friday:5,fri:5,saturday:6,sat:6},digit:{}},f={MONTHNAME:"january|february|march|april|may|june|july|august|september|october|november|december|jan\\.?|feb\\.?|mar\\.?|apr\\.?|may\\.?|jun\\.?|jul\\.?|aug\\.?|sep\\.?|oct\\.?|nov\\.?|dec\\.?",DAYNAME:"sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun\\.?|mon\\.?|tue\\.?|wed\\.?|thu\\.?|fri\\.?|sat\\.?",ZONE:"\\(?(?:"+Object.keys(d).join("|")+")\\)?",MERIDIEM:"am|pm|a.m.|p.m.",ORDINAL:"st|nd|rd|th|\\.",YEAR:"\\d{4}|\\d{2}",YEAR2:"\\d{2}",YEAR4:"\\d{4}",YEAR6:"-\\d{6}|\\+?\\d{5,6}",MONTH:"1[0-2]|0?[1-9]",MONTH2:"1[0-2]|0[1-9]",DAY:"3[01]|[12]\\d|0?[1-9]",DAY2:"3[01]|[12]\\d|0[1-9]",OFFSET:"(?:GMT)?[\xb1−+-](?:[01]\\d[0-5]\\d|[01]\\d:[0-5]\\d|[01]?\\d)",H24:"[01]\\d|2[0-3]",H12:"0?[1-9]|1[012]",MIN:"[0-5]\\d",SEC:"[0-5]\\d|60",MS:"\\d{9}|\\d{6}|\\d{1,3}",GAP:"[\\s/.,-]{1,}"},m={...f,YEAR:"*{4}|*{2}",YEAR4:"*{4}",YEAR6:"-*{6}|\\+?*{5,6}",MONTH:"*{1,2}",MONTH2:"*{2}",DAY:"*{1,2}",DAY2:"*{2}",OFFSET:"(?:GMT)?[\xb1−+-](?:*{4}|*{2}:*{2}|*{1,2})",H24:"*{2}",H12:"*{1,2}",MIN:"*{2}",SEC:"*{2}",MS:"*{9}|*{6}|*{3}"},h={},g=class e{locale;lookups;vars;numberingSystem;baseName;dateOptions;static factory(t=a){return h[t.toLowerCase()]||(h[t.toLowerCase()]=new e(t)),h[t.toLowerCase()]}constructor(e=a){this.locale=e,this.lookups={...p},this.vars={...f};const t=new Intl.NumberFormat(this.locale);this.numberingSystem=t.resolvedOptions().numberingSystem,this.dateOptions=new Intl.DateTimeFormat(this.locale).resolvedOptions(),this.baseName=new Intl.Locale(this.locale).baseName,this.build()}toInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;if("latn"===this.numberingSystem&&!this.baseName.startsWith("zh")){let t=parseInt(e,10);if(!isNaN(t))return t}let t="";for(let n=0;n<e.length;n++)t+=String(this.lookups.digit[e[n]]);return parseInt(t,10)}millisecondToInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;let t=e.slice(0,3);return 1===t.length?100*this.toInt(t):2===t.length?10*this.toInt(t):this.toInt(t)}monthNameToInt(e){if("string"!=typeof e)return;let t=e.toLocaleLowerCase(this.locale).replace(/\.$/,"");return this.lookups.month[t]||12}h12ToInt(e,t){if("string"!=typeof e)return;let n=this.lookups.meridiem[t?.toLowerCase()]||0,r=this.toInt(e);return r<12&&12===n&&(r+=12),12===r&&0===n&&(r=0),r}zoneToOffset(e){if("string"==typeof e)return e=e.replace(/[^a-z\s]/gi,""),this.lookups.zone[e]}offsetToMinutes(e){if("string"!=typeof e)return;let t=e.match(/^(?:GMT)?([±−+-])(..?):?(..)?$/);if(t){let[,e,n,r]=t;return("-"===e||"−"===e?-1:1)*(60*this.toInt(n)+this.toInt(r||0))}return 0}build(){"latn"===this.dateOptions.numberingSystem?this.lookups.digit=c:this.buildNumbers(),!/^en/i.test(this.locale)&&(this.buildMonthNames(),this.buildDaynames(),/zh/i.test(this.locale)||this.buildMeridiems())}buildNumbers(){let{group:e,lookup:t}=function(e){if(u[e])return u[e];if("fullwide"===e||"hanidec"===e)return{group:l,lookup:{...c}};let t=s[e];if(!t)return{group:"\\d",lookup:{...c}};let n=String.fromCharCode(t),r=String.fromCharCode(t+9),a={};for(let e=0;e<10;e++)a[String.fromCharCode(t+e)]=e;return u[e]={group:`[${n}-${r}]`,lookup:a},u[e]}(this.numberingSystem);for(let n in this.lookups.digit=t,m)m.hasOwnProperty(n)&&(this.vars[n]=m[n].replace(/\*/g,e))}buildMonthNames(){let e={},t={};if(/^fi/i.test(this.locale))"tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu".split("|").forEach((n,r)=>{["","k","kuu","kuuta"].forEach((a,o)=>{e[n+a+(o<2?"\\.?":"")]=!0,t[n+a]=r+1})});else{let n=[],r=e=>"month"===e.type;for(let e=0;e<12;e++)n.push(new Date(2017,e,1));for(let a of["full","long","medium"]){let o=Intl.DateTimeFormat(this.locale,{dateStyle:a});for(let i=0;i<12;i++){let s=o.formatToParts(n[i]).find(r).value.toLocaleLowerCase(this.locale);/^\d+$/.test(s)||(/^ko/i.test(this.locale)&&(s+="월"),"medium"===a?(s=s.replace(/\.$/,""),e[`${s}\\.?`]=!0):e[s]=!0,t[s]=i+1)}}let a=Intl.DateTimeFormat(this.locale,{month:"short"});for(let o=0;o<12;o++){let i=a.formatToParts(n[o]).find(r).value.toLocaleLowerCase(this.locale);i=i.replace(/\.$/,""),e[`${i}\\.?`]=!0,t[i]=o+1}}this.vars.MONTHNAME=Object.keys(e).join("|"),this.lookups.month=t}buildDaynames(){let e=[],t=e=>"weekday"===e.type;for(let t=0;t<7;t++)e.push(new Date(2017,0,t+1));let n=[],r={};for(let a of["long","short"]){let o=Intl.DateTimeFormat(this.locale,{weekday:a});for(let i=0;i<7;i++){let s=o.formatToParts(e[i]).find(t).value.toLocaleLowerCase(this.locale);"short"===a?(s=s.replace(/\.$/,""),n.push(`${s}\\.?`)):n.push(s),r[s]=i}}this.vars.DAYNAME=n.join("|"),this.lookups.dayname=r}buildMeridiems(){let e=[new Date(2017,0,1),new Date(2017,0,1,23,0,0)],t=e=>"dayPeriod"===e.type,n=[],r={},a=Intl.DateTimeFormat(this.locale,{timeStyle:"long"});for(let o=0;o<2;o++){let i=a.formatToParts(e[o]).find(t);if(!i)return;let s=i.value.toLocaleLowerCase(this.locale);n.push(s),r[s]=12*o}this.vars.MERIDIEM=n.join("|"),this.lookups.meridiem=r}compile(e){return RegExp(e.replace(/_([A-Z0-9]+)_/g,(e,t)=>{if(!this.vars[t])throw Error(`Template string contains invalid variable _${t}_`);return this.vars[t]}),"i")}},b=["ee-TG","en-AS","en-CA","en-FM","en-GH","en-GU","en-KE","en-KY","en-MH","en-MP","en-US","en-VI","en-WS","jp-JP","sm-AS","sm-SM"],y={y:"year",M:"month",d:"day",w:"week",h:"hour",m:"minute",s:"second",ms:"millisecond"},v=()=>new Date;function A(e){return function(t){let n={};for(let r=0,a=e.length;r<a;r++){let a=e[r];a&&(n[a]=t[r])}return n}}var $=class{doneChecker;fallback;patterns;formatter;constructor({doneChecker:e,fallback:t,patterns:n,formatter:r}){this.doneChecker=e,this.fallback=t,this.patterns=n,this.formatter=r}attempt(e){if("string"!=typeof e)return this.fallback(e);let t=e.trim(),n={},r=!1;for(let e of this.patterns){let a=t.match(e.regex);if(!a)continue;r=!0;let o=e.handler(a);if(o){for(let[e,t]of Object.entries(o))e in n||void 0===t||(n[e]=t);if(t=(t=t.slice(0,a.index)+t.slice(a.index+a[0].length+1)).trim(),this.doneChecker(n,t))break}}return r?this.formatter(n):this.fallback(e)}},k=["year","month","day","hour","minute","second","millisecond","offset"],x={};function C(e,t){return""===t||/^\s+$/.test(t)||"year"in e&&("month"in e||"monthname"in e)&&"day"in e&&"hour"in e&&"minute"in e&&"second"in e&&"millisecond"in e&&("zone"in e||"offset"in e)}var w=[[/([^\d.]+)(\d{1,2})\.(\d{2})\.(\d{2})(\D|$)/,"$1$2:$3:$4$5"],[/([^\d.]+)(\d{1,2})\.(\d{2})(\D|$)/,"$1$2:$3$4"]],E={ar:[[/ /g," "]],bn:[[/,/g,""]],zh:[[/早上\s*([\d:]+)/,"$1am"],[/凌晨\s*([\d:]+)/,"$1am"],[/上午\s*([\d:]+)/,"$1am"],[/下午\s*([\d:]+)/,"$1pm"],[/晚上\s*([\d:]+)/,"$1pm"]],he:[[/ב/gi,""]],de:[[/ um /g," "]],pt:[[/\sde /gi," "]],es:[[/\sde /gi," "]],da:[[/\sden /gi," "],...w],ru:[[/ г\./g,""]],th:[[/\s*นาฬิกา\s*/i,":"],[/\s*นาที\s*/i,":"],[/\s*วินาที\s*/i," "]],ko:[[/\s*시\s*/,":"],[/\s*분\s*/,":"],[/\s*초\s*/,""],[/(오전|오후)\s*([\d:]+)/,"$2$1"],[/(\d{4})\. (\d{1,2})\. (\d{1,2})\./,"$1-$2-$3"]],fi:w,id:w,fr:[[/(\d{2}) h /,"$1:"],[/(\d{2}) min /,"$1:"],[/(\d{2}) s /,"$1"]]};function D(e,t=a){let n=function(e){if(!x[e]){var t,n;let r,a,o=g.factory(e);x[e]=new $({doneChecker:C,fallback:(t=e,function(e){let n=String(e).slice(0,50);return""===n&&(n="(empty string)"),{invalid:`Unable to parse "${n}" with locale "${t}"`}}),patterns:(r=[{name:"timestampWithOffset",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? ?(_OFFSET_|Z)?$"),handler:A(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"timestampWithZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))?\\s*(_ZONE_)$"),handler:A(["","year","month","day","hour","minute","second","millisecond","zone"])},{name:"timestampWithOffsetAndZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? (_OFFSET_|Z)\\s*(_ZONE_)$"),handler:A(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"chinese",regex:o.compile(`^(${l}{2,4})\\s*\u5E74\\s*(${l}{1,2})\\s*\u6708\\s*(${l}{1,2})\\s*\u65E5$`),handler:A(["","year","month","day"])},{name:"korean",regex:o.compile("^(_YEAR_)년\\s*(_MONTH_)월\\s*(_DAY_)일$"),handler:A(["","year","month","day"])},{name:"twitter",regex:/^(?:sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) (\d{2}) (\d{2}):(\d{2}):(\d{2}) ([+-]\d{4}) (\d{4})$/i,handler:A(["","monthname","day","hour","minute","second","offset","year"])},{name:"today",regex:/^(now|today|tomorrow|yesterday)$/i,handler:function(e){let t=v(),n=e[0].toLowerCase(),r={now:0,today:0,tomorrow:864e5,yesterday:-864e5}[n];0!==r&&t.setTime(t.getTime()+r);let a={year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()};return"now"===n?{...a,hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}:a}},{name:"ago",regex:/^(\+|-|in|) ?([\d.]+) ?(years?|months?|weeks?|days?|hours?|minutes?|seconds?|milliseconds?|ms|s|m|h|w|d|M|y)( ago)?$/i,handler:function([,e,t,n,r]){t=parseFloat(t),"week"===(n=n.length<=2?y[n]:(n=n.replace(/s$/,"")).toLowerCase())&&(n="day",t*=7),("-"===e||r)&&(t*=-1);let a=v();return"millisecond"===n?a.setUTCMilliseconds(a.getUTCMilliseconds()+t):"second"===n?a.setUTCSeconds(a.getUTCSeconds()+t):"minute"===n?a.setUTCMinutes(a.getUTCMinutes()+t):"hour"===n?a.setUTCHours(a.getUTCHours()+t):"day"===n?a.setUTCDate(a.getUTCDate()+t):"month"===n?a.setUTCMonth(a.getUTCMonth()+t):"year"===n&&a.setUTCFullYear(a.getUTCFullYear()+t),{year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate(),hour:a.getUTCHours(),minute:a.getUTCMinutes(),second:a.getUTCSeconds(),millisecond:a.getUTCMilliseconds()}}},{name:"atSeconds",regex:/^@(\d+)$/,handler:function(e){let t=new Date(1e3*parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}},{name:"microsoftJson",regex:/^\/Date\((\d+)([+-]\d{4})?\)\/$/,handler:function(e){let t=new Date(parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds(),offset:e[2]}}},{name:"full24",regex:o.compile("(?:^|[\\sT])(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?(Z)?$"),handler:A(["","hour","minute","second","millisecond","zone"])},{name:"zone24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?[\\s\\[(]*(_ZONE_)?[\\s\\])]*$"),handler:A(["","hour","minute","second","millisecond","zone"])},{name:"hms12WithOffset",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)\\s*(_OFFSET_)"),handler:A(["","hour","minute","second","meridiem","offset"])},{name:"hms12",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)"),handler:A(["","hour","minute","second","meridiem"])},{name:"hms24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?"),handler:A(["","hour","minute","second","millisecond"])},{name:"hm12",regex:o.compile("(_H12_):(_MIN_)\\s*(_MERIDIEM_)"),handler:A(["","hour","minute","meridiem"])},{name:"hm24",regex:o.compile("(_H24_):(_MIN_)"),handler:A(["","hour","minute"])},{name:"h12",regex:o.compile("(_H12_)\\s*(_MERIDIEM_)"),handler:A(["","hour","meridiem"])},{name:"8digit",regex:/^((?:19|20)\d{2})(\d{2})(\d{2})$/,handler:A(["","year","month","day"])},{name:"yearMonthnameDay",regex:o.compile("(_YEAR4_)[\\s.-]+(_MONTHNAME_)[\\s,.-]+(_DAY_)(_ORDINAL_)?"),handler:A(["","year","monthname","day"])},{name:"dayMonthnameYear",regex:o.compile("(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)[\\s,.-]+(_YEAR_)"),handler:A(["","day","","monthname","year"])},{name:"monthnameDayYear",regex:o.compile("(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?[\\s,.-]+(_YEAR_)"),handler:A(["","monthname","day","","year"])},{name:"dayMonthname",regex:o.compile("\\b(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)\\b"),handler:A(["","day","","monthname"])},{name:"monthnameDay",regex:o.compile("\\b(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?\\b"),handler:A(["","monthname","day"])},{name:"hmsNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_):(_SEC_)\\b"),handler:A(["","hour","minute","second"])},{name:"hmNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_)\\b"),handler:A(["","hour","minute"])},{name:"ymd",regex:o.compile("(_YEAR4_)([./-])(_MONTH_)\\2+(_DAY_)"),handler:A(["","year","","month","day"])},{name:"mdy",regex:o.compile("(_MONTH_)([/-])(_DAY_)\\2(_YEAR_)"),handler:A(["","month","","day","year"])},{name:"dmy",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)[./\\s-]+(_YEAR_)"),handler:A(["","day","month","year"])},{name:"yearLoose",regex:o.compile("_YEAR4_"),handler:A(["year"])},{name:"dayMonthnameLoose",regex:o.compile("(_DAY_)[\\s.]*(_MONTHNAME_)"),handler:A(["","day","monthname"])},{name:"monthnameDayLoose",regex:o.compile("(_MONTHNAME_)[\\s.]*(_DAY_)"),handler:A(["","monthname","day"])},{name:"monthname",regex:o.compile("_MONTHNAME_"),handler:A(["monthname"])},{name:"year4",regex:o.compile("_YEAR4_"),handler:A(["year"])},{name:"md",regex:o.compile("(_MONTH_)[/-](_DAY_)"),handler:A(["","month","day"])},{name:"dm",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)"),handler:A(["","day","month"])},{name:"day",regex:o.compile("_DAY_"),handler:A(["day"])},{name:"year2",regex:o.compile("_YEAR2_"),handler:A(["year"])},{name:"onlyZone",regex:o.compile("_ZONE_"),handler:A(["zone"])},{name:"onlyOffset",regex:o.compile("_OFFSET_"),handler:A(["offset"])}],a=o.baseName.slice(0,5),b.includes(a)?r:r.filter(e=>!["mdy","md"].includes(e.name))),formatter:(n=o,function(e){let t={};for(let[r,a]of Object.entries(e))if("monthname"===r){if(a){let e=n.monthNameToInt(a);void 0!==e&&(t.month=e)}}else if("hour"===r&&e.meridiem){let r=n.h12ToInt(a,e.meridiem);void 0!==r&&(t.hour=r)}else if("zone"===r){if(a){let e=n.zoneToOffset(a);void 0!==e&&(t.offset=e)}}else if("offset"===r){let e=n.offsetToMinutes(a);void 0!==e&&(t.offset=e)}else if("millisecond"===r){let e=n.millisecondToInt(a);"number"==typeof e&&(t.millisecond=e)}else if(k.includes(r)){let e=n.toInt(a);"number"==typeof e&&(t[r]=e)}return t.year<100&&(t.year=i[e.year]),t.year&&"buddhist"===n.dateOptions.calendar&&(t.year-=543),t})})}return x[e]}(t),r=function(e,t){let n=E[t.slice(0,2).toLowerCase()];if(!n)return e;for(let[t,r]of n)e=e.replace(t,r);return e}(e,t);return n.attempt(r)}function S(e){e.month&&e.day&&void 0===e.year&&(e.year=new Date().getFullYear()),60===e.second&&(e.second=59);let t=new o(e.year,e.month-1,e.day,e.hour||0,e.minute||0,e.second||0,e.millisecond||0);return"number"==typeof e.offset?new o(t.valueOf()-60*e.offset*1e3):t}function B(e,t=a){let n=D(e,t),r=n.invalid?new o(NaN):S(n);return r.isValid()||(r.invalid=`Unable to parse date "${e}"`),r}function z(e,t=a){return e instanceof Date?new o(e.valueOf()):"number"==typeof e?new o(e):B(e,t)}Date.fromString=o.fromString=B,Date.fromAny=o.fromAny=z,"undefined"!=typeof window&&(window.anyDateParser={fromString:B,fromAny:z,fromObject:S,attempt:D})},60950:function(e,t,n){"use strict";n.d(t,{A:()=>a});class r{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+r.version}static addUnaryOp(e){return r.max_unop_len=Math.max(e.length,r.max_unop_len),r.unary_ops[e]=1,r}static addBinaryOp(e,t,n){return r.max_binop_len=Math.max(e.length,r.max_binop_len),r.binary_ops[e]=t,n?r.right_associative.add(e):r.right_associative.delete(e),r}static addIdentifierChar(e){return r.additional_identifier_chars.add(e),r}static addLiteral(e,t){return r.literals[e]=t,r}static removeUnaryOp(e){return delete r.unary_ops[e],e.length===r.max_unop_len&&(r.max_unop_len=r.getMaxKeyLen(r.unary_ops)),r}static removeAllUnaryOps(){return r.unary_ops={},r.max_unop_len=0,r}static removeIdentifierChar(e){return r.additional_identifier_chars.delete(e),r}static removeBinaryOp(e){return delete r.binary_ops[e],e.length===r.max_binop_len&&(r.max_binop_len=r.getMaxKeyLen(r.binary_ops)),r.right_associative.delete(e),r}static removeAllBinaryOps(){return r.binary_ops={},r.max_binop_len=0,r}static removeLiteral(e){return delete r.literals[e],r}static removeAllLiterals(){return r.literals={},r}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new r(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map(e=>e.length))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return r.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!r.binary_ops[String.fromCharCode(e)]||r.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return r.isIdentifierStart(e)||r.isDecimalDigit(e)}throwError(e){let t=Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,t){if(r.hooks[e]){let n={context:this,node:t};return r.hooks.run(e,n),n.node}return t}searchHook(e){if(r.hooks[e]){let t={context:this};return r.hooks[e].find(function(e){return e.call(t.context,t),t.node}),t.node}}gobbleSpaces(){let e=this.code;for(;e===r.SPACE_CODE||e===r.TAB_CODE||e===r.LF_CODE||e===r.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");let e=this.gobbleExpressions(),t=1===e.length?e[0]:{type:r.COMPOUND,body:e};return this.runHook("after-all",t)}gobbleExpressions(e){let t=[],n,a;for(;this.index<this.expr.length;)if((n=this.code)===r.SEMCOL_CODE||n===r.COMMA_CODE)this.index++;else if(a=this.gobbleExpression())t.push(a);else if(this.index<this.expr.length){if(n===e)break;this.throwError('Unexpected "'+this.char+'"')}return t}gobbleExpression(){let e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}gobbleBinaryOp(){this.gobbleSpaces();let e=this.expr.substr(this.index,r.max_binop_len),t=e.length;for(;t>0;){if(r.binary_ops.hasOwnProperty(e)&&(!r.isIdentifierStart(this.code)||this.index+e.length<this.expr.length&&!r.isIdentifierPart(this.expr.charCodeAt(this.index+e.length))))return this.index+=t,e;e=e.substr(0,--t)}return!1}gobbleBinaryExpression(){let e,t,n,a,o,i,s,l,c;if(!(i=this.gobbleToken())||!(t=this.gobbleBinaryOp()))return i;for(o={value:t,prec:r.binaryPrecedence(t),right_a:r.right_associative.has(t)},(s=this.gobbleToken())||this.throwError("Expected expression after "+t),a=[i,o,s];t=this.gobbleBinaryOp();){if(0===(n=r.binaryPrecedence(t))){this.index-=t.length;break}o={value:t,prec:n,right_a:r.right_associative.has(t)},c=t;let l=e=>o.right_a&&e.right_a?n>e.prec:n<=e.prec;for(;a.length>2&&l(a[a.length-2]);)s=a.pop(),t=a.pop().value,i=a.pop(),e={type:r.BINARY_EXP,operator:t,left:i,right:s},a.push(e);(e=this.gobbleToken())||this.throwError("Expected expression after "+c),a.push(o,e)}for(l=a.length-1,e=a[l];l>1;)e={type:r.BINARY_EXP,operator:a[l-1].value,left:a[l-2],right:e},l-=2;return e}gobbleToken(){let e,t,n,a;if(this.gobbleSpaces(),a=this.searchHook("gobble-token"))return this.runHook("after-token",a);if(e=this.code,r.isDecimalDigit(e)||e===r.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===r.SQUOTE_CODE||e===r.DQUOTE_CODE)a=this.gobbleStringLiteral();else if(e===r.OBRACK_CODE)a=this.gobbleArray();else{for(n=(t=this.expr.substr(this.index,r.max_unop_len)).length;n>0;){if(r.unary_ops.hasOwnProperty(t)&&(!r.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!r.isIdentifierPart(this.expr.charCodeAt(this.index+t.length)))){this.index+=n;let e=this.gobbleToken();return e||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:r.UNARY_EXP,operator:t,argument:e,prefix:!0})}t=t.substr(0,--n)}r.isIdentifierStart(e)?(a=this.gobbleIdentifier(),r.literals.hasOwnProperty(a.name)?a={type:r.LITERAL,value:r.literals[a.name],raw:a.name}:a.name===r.this_str&&(a={type:r.THIS_EXP})):e===r.OPAREN_CODE&&(a=this.gobbleGroup())}return a?(a=this.gobbleTokenProperty(a),this.runHook("after-token",a)):this.runHook("after-token",!1)}gobbleTokenProperty(e){this.gobbleSpaces();let t=this.code;for(;t===r.PERIOD_CODE||t===r.OBRACK_CODE||t===r.OPAREN_CODE||t===r.QUMARK_CODE;){let n;if(t===r.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==r.PERIOD_CODE)break;n=!0,this.index+=2,this.gobbleSpaces(),t=this.code}this.index++,t===r.OBRACK_CODE?((e={type:r.MEMBER_EXP,computed:!0,object:e,property:this.gobbleExpression()}).property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),(t=this.code)!==r.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):t===r.OPAREN_CODE?e={type:r.CALL_EXP,arguments:this.gobbleArguments(r.CPAREN_CODE),callee:e}:(t===r.PERIOD_CODE||n)&&(n&&this.index--,this.gobbleSpaces(),e={type:r.MEMBER_EXP,computed:!1,object:e,property:this.gobbleIdentifier()}),n&&(e.optional=!0),this.gobbleSpaces(),t=this.code}return e}gobbleNumericLiteral(){let e="",t,n;for(;r.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);if(this.code===r.PERIOD_CODE)for(e+=this.expr.charAt(this.index++);r.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);if("e"===(t=this.char)||"E"===t){for(e+=this.expr.charAt(this.index++),("+"===(t=this.char)||"-"===t)&&(e+=this.expr.charAt(this.index++));r.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);r.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+e+this.char+")")}return n=this.code,r.isIdentifierStart(n)?this.throwError("Variable names cannot start with a number ("+e+this.char+")"):(n===r.PERIOD_CODE||1===e.length&&e.charCodeAt(0)===r.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:r.LITERAL,value:parseFloat(e),raw:e}}gobbleStringLiteral(){let e="",t=this.index,n=this.expr.charAt(this.index++),a=!1;for(;this.index<this.expr.length;){let t=this.expr.charAt(this.index++);if(t===n){a=!0;break}if("\\"===t)switch(t=this.expr.charAt(this.index++)){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+=" ";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=t}else e+=t}return a||this.throwError('Unclosed quote after "'+e+'"'),{type:r.LITERAL,value:e,raw:this.expr.substring(t,this.index)}}gobbleIdentifier(){let e=this.code,t=this.index;for(r.isIdentifierStart(e)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length;)if(e=this.code,r.isIdentifierPart(e))this.index++;else break;return{type:r.IDENTIFIER,name:this.expr.slice(t,this.index)}}gobbleArguments(e){let t=[],n=!1,a=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let o=this.code;if(o===e){n=!0,this.index++,e===r.CPAREN_CODE&&a&&a>=t.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(o===r.COMMA_CODE){if(this.index++,++a!==t.length){if(e===r.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===r.CBRACK_CODE)for(let e=t.length;e<a;e++)t.push(null)}}else if(t.length!==a&&0!==a)this.throwError("Expected comma");else{let e=this.gobbleExpression();e&&e.type!==r.COMPOUND||this.throwError("Expected comma"),t.push(e)}}return n||this.throwError("Expected "+String.fromCharCode(e)),t}gobbleGroup(){this.index++;let e=this.gobbleExpressions(r.CPAREN_CODE);if(this.code===r.CPAREN_CODE)return(this.index++,1===e.length)?e[0]:!!e.length&&{type:r.SEQUENCE_EXP,expressions:e};this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:r.ARRAY_EXP,elements:this.gobbleArguments(r.CBRACK_CODE)}}}Object.assign(r,{hooks:new class{add(e,t,n){if("string"!=typeof arguments[0])for(let e in arguments[0])this.add(e,arguments[0][e],arguments[1]);else(Array.isArray(e)?e:[e]).forEach(function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)},this)}run(e,t){this[e]=this[e]||[],this[e].forEach(function(e){e.call(t&&t.context?t.context:t,t)})}},plugins:new class{constructor(e){this.jsep=e,this.registered={}}register(...e){e.forEach(e=>{if("object"!=typeof e||!e.name||!e.init)throw Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)})}}(r),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),r.max_unop_len=r.getMaxKeyLen(r.unary_ops),r.max_binop_len=r.getMaxKeyLen(r.binary_ops);let a=e=>new r(e).parse(),o=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(r).filter(e=>!o.includes(e)&&void 0===a[e]).forEach(e=>{a[e]=r[e]}),a.Jsep=r,a.plugins.register({name:"ternary",init(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;let n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;let a=this.gobbleExpression();if(a||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:n,consequent:r,alternate:a},n.operator&&e.binary_ops[n.operator]<=.9){let r=n;for(;r.right.operator&&e.binary_ops[r.right.operator]<=.9;)r=r.right;t.node.test=r.right,r.right=t.node,t.node=n}}else this.throwError("Expected :")}})}})},81494:function(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(81963);let a=function(e,t){for(var n=e.length;n--;)if((0,r.A)(e[n][0],t))return n;return -1};var o=Array.prototype.splice;function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=function(){this.__data__=[],this.size=0},i.prototype.delete=function(e){var t=this.__data__,n=a(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)},i.prototype.get=function(e){var t=this.__data__,n=a(t,e);return n<0?void 0:t[n][1]},i.prototype.has=function(e){return a(this.__data__,e)>-1},i.prototype.set=function(e,t){var n=this.__data__,r=a(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};let s=i},61924:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(44536),a=n(28056);let o=(0,r.A)(a.A,"Map")},63605:function(e,t,n){"use strict";n.d(t,{A:()=>p});var r=(0,n(44536).A)(Object,"create"),a=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},i.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},i.prototype.get=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0},i.prototype.has=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)},i.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this};var s=n(81494),l=n(61924);let c=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},u=function(e,t){var n=e.__data__;return c(t)?n["string"==typeof t?"string":"hash"]:n.map};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}d.prototype.clear=function(){this.size=0,this.__data__={hash:new i,map:new(l.A||s.A),string:new i}},d.prototype.delete=function(e){var t=u(this,e).delete(e);return this.size-=!!t,t},d.prototype.get=function(e){return u(this,e).get(e)},d.prototype.has=function(e){return u(this,e).has(e)},d.prototype.set=function(e,t){var n=u(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this};let p=d},61098:function(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(81494),a=n(61924),o=n(63605);function i(e){var t=this.__data__=new r.A(e);this.size=t.size}i.prototype.clear=function(){this.__data__=new r.A,this.size=0},i.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},i.prototype.get=function(e){return this.__data__.get(e)},i.prototype.has=function(e){return this.__data__.has(e)},i.prototype.set=function(e,t){var n=this.__data__;if(n instanceof r.A){var i=n.__data__;if(!a.A||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new o.A(i)}return n.set(e,t),this.size=n.size,this};let s=i},19172:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=n(28056).A.Symbol},20705:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=n(28056).A.Uint8Array},42287:function(e,t,n){"use strict";n.d(t,{A:()=>u});let r=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var a=n(17820),o=n(36820),i=n(75323),s=n(27322),l=n(43148),c=Object.prototype.hasOwnProperty;let u=function(e,t){var n=(0,o.A)(e),u=!n&&(0,a.A)(e),d=!n&&!u&&(0,i.A)(e),p=!n&&!u&&!d&&(0,l.A)(e),f=n||u||d||p,m=f?r(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(f&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,s.A)(g,h)))&&m.push(g);return m}},20117:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}},93903:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},74660:function(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(37999),a=n(81963),o=Object.prototype.hasOwnProperty;let i=function(e,t,n){var i=e[t];o.call(e,t)&&(0,a.A)(i,n)&&(void 0!==n||t in e)||(0,r.A)(e,t,n)}},37999:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(61670);let a=function(e,t,n){"__proto__"==t&&r.A?(0,r.A)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},96918:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(93903),a=n(36820);let o=function(e,t,n){var o=t(e);return(0,a.A)(e)?o:(0,r.A)(o,n(e))}},31243:function(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(19172),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=r.A?r.A.toStringTag:void 0;let l=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var a=i.call(e);return r&&(t?e[s]=n:delete e[s]),a};var c=Object.prototype.toString,u=r.A?r.A.toStringTag:void 0;let d=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":u&&u in Object(e)?l(e):c.call(e)}},62926:function(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(24956),a=(0,n(1748).A)(Object.keys,Object),o=Object.prototype.hasOwnProperty;let i=function(e){if(!(0,r.A)(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},33734:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){return function(t){return e(t)}}},46940:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(20705);let a=function(e){var t=new e.constructor(e.byteLength);return new r.A(t).set(new r.A(e)),t}},13137:function(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(28056),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof module&&module&&!module.nodeType&&module,i=o&&o.exports===a?r.A.Buffer:void 0,s=i?i.allocUnsafe:void 0;let l=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},84934:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(46940);let a=function(e,t){var n=t?(0,r.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},17052:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},51158:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(74660),a=n(37999);let o=function(e,t,n,o){var i=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),i?(0,a.A)(n,c,u):(0,r.A)(n,c,u)}return n}},61670:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(44536);let a=function(){try{var e=(0,r.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},86625:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r="object"==typeof global&&global&&global.Object===Object&&global},11507:function(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(96918),a=n(93363),o=n(43473);let i=function(e){return(0,r.A)(e,o.A,a.A)}},44536:function(e,t,n){"use strict";n.d(t,{A:()=>h});var r,a=n(49885),o=n(28056).A["__core-js_shared__"],i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",s=n(12174),l=n(75380),c=/^\[object .+?Constructor\]$/,u=Object.prototype,d=Function.prototype.toString,p=u.hasOwnProperty,f=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let m=function(e){return!!(0,s.A)(e)&&(!i||!(i in e))&&((0,a.A)(e)?f:c).test((0,l.A)(e))},h=function(e,t){var n=null==e?void 0:e[t];return m(n)?n:void 0}},89494:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(1748).A)(Object.getPrototypeOf,Object)},93363:function(e,t,n){"use strict";n.d(t,{A:()=>s});let r=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o};var a=n(9620),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols;let s=i?function(e){return null==e?[]:r(i(e=Object(e)),function(t){return o.call(e,t)})}:a.A},4004:function(e,t,n){"use strict";n.d(t,{A:()=>x});var r=n(44536),a=n(28056),o=(0,r.A)(a.A,"DataView"),i=n(61924),s=(0,r.A)(a.A,"Promise"),l=(0,r.A)(a.A,"Set"),c=(0,r.A)(a.A,"WeakMap"),u=n(31243),d=n(75380),p="[object Map]",f="[object Promise]",m="[object Set]",h="[object WeakMap]",g="[object DataView]",b=(0,d.A)(o),y=(0,d.A)(i.A),v=(0,d.A)(s),A=(0,d.A)(l),$=(0,d.A)(c),k=u.A;(o&&k(new o(new ArrayBuffer(1)))!=g||i.A&&k(new i.A)!=p||s&&k(s.resolve())!=f||l&&k(new l)!=m||c&&k(new c)!=h)&&(k=function(e){var t=(0,u.A)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,d.A)(n):"";if(r)switch(r){case b:return g;case y:return p;case v:return f;case A:return m;case $:return h}return t});let x=k},47514:function(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(12174),a=Object.create,o=function(){function e(){}return function(t){if(!(0,r.A)(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),i=n(89494),s=n(24956);let l=function(e){return"function"!=typeof e.constructor||(0,s.A)(e)?{}:o((0,i.A)(e))}},27322:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=/^(?:0|[1-9]\d*)$/;let a=function(e,t){var n=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},24956:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=Object.prototype;let a=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},97872:function(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(86625),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof module&&module&&!module.nodeType&&module,i=o&&o.exports===a&&r.A.process;let s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return i&&i.binding&&i.binding("util")}catch(e){}}()},1748:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){return function(n){return e(t(n))}}},54979:function(e,t,n){"use strict";n.d(t,{A:()=>o});let r=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var a=Math.max;let o=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=a(o.length-t,0),l=Array(s);++i<s;)l[i]=o[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=o[i];return c[t]=n(l),r(e,this,c)}}},28056:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(86625),a="object"==typeof self&&self&&self.Object===Object&&self;let o=r.A||a||Function("return this")()},44168:function(e,t,n){"use strict";n.d(t,{A:()=>c});var r,a,o=n(61670),i=n(68527),s=o.A?function(e,t){return(0,o.A)(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:i.A,l=Date.now;let c=(r=0,a=0,function(){var e=l(),t=16-(e-a);if(a=e,t>0){if(++r>=800)return arguments[0]}else r=0;return s.apply(void 0,arguments)})},75380:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=Function.prototype.toString;let a=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},81963:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){return e===t||e!=e&&t!=t}},68527:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){return e}},17820:function(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(31243),a=n(62873);let o=function(e){return(0,a.A)(e)&&"[object Arguments]"==(0,r.A)(e)};var i=Object.prototype,s=i.hasOwnProperty,l=i.propertyIsEnumerable;let c=o(function(){return arguments}())?o:function(e){return(0,a.A)(e)&&s.call(e,"callee")&&!l.call(e,"callee")}},36820:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=Array.isArray},55259:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(49885),a=n(47741);let o=function(e){return null!=e&&(0,a.A)(e.length)&&!(0,r.A)(e)}},75323:function(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(28056),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof module&&module&&!module.nodeType&&module,i=o&&o.exports===a?r.A.Buffer:void 0;let s=(i?i.isBuffer:void 0)||function(){return!1}},47427:function(e,t,n){"use strict";n.d(t,{A:()=>B});var r=n(61098),a=n(63605);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new a.A;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},o.prototype.has=function(e){return this.__data__.has(e)};let i=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},s=function(e,t,n,r,a,s){var l=1&n,c=e.length,u=t.length;if(c!=u&&!(l&&u>c))return!1;var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var f=-1,m=!0,h=2&n?new o:void 0;for(s.set(e,t),s.set(t,e);++f<c;){var g=e[f],b=t[f];if(r)var y=l?r(b,g,f,t,e,s):r(g,b,f,e,t,s);if(void 0!==y){if(y)continue;m=!1;break}if(h){if(!i(t,function(e,t){if(!h.has(t)&&(g===e||a(g,e,n,r,s)))return h.push(t)})){m=!1;break}}else if(!(g===b||a(g,b,n,r,s))){m=!1;break}}return s.delete(e),s.delete(t),m};var l=n(19172),c=n(20705),u=n(81963);let d=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},p=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var f=l.A?l.A.prototype:void 0,m=f?f.valueOf:void 0;let h=function(e,t,n,r,a,o,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!o(new c.A(e),new c.A(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,u.A)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=d;case"[object Set]":var f=1&r;if(l||(l=p),e.size!=t.size&&!f)break;var h=i.get(e);if(h)return h==t;r|=2,i.set(e,t);var g=s(l(e),l(t),r,a,o,i);return i.delete(e),g;case"[object Symbol]":if(m)return m.call(e)==m.call(t)}return!1};var g=n(11507),b=Object.prototype.hasOwnProperty;let y=function(e,t,n,r,a,o){var i=1&n,s=(0,g.A)(e),l=s.length;if(l!=(0,g.A)(t).length&&!i)return!1;for(var c=l;c--;){var u=s[c];if(!(i?u in t:b.call(t,u)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var f=!0;o.set(e,t),o.set(t,e);for(var m=i;++c<l;){var h=e[u=s[c]],y=t[u];if(r)var v=i?r(y,h,u,t,e,o):r(h,y,u,e,t,o);if(!(void 0===v?h===y||a(h,y,n,r,o):v)){f=!1;break}m||(m="constructor"==u)}if(f&&!m){var A=e.constructor,$=t.constructor;A!=$&&"constructor"in e&&"constructor"in t&&!("function"==typeof A&&A instanceof A&&"function"==typeof $&&$ instanceof $)&&(f=!1)}return o.delete(e),o.delete(t),f};var v=n(4004),A=n(36820),$=n(75323),k=n(43148),x="[object Arguments]",C="[object Array]",w="[object Object]",E=Object.prototype.hasOwnProperty;let D=function(e,t,n,a,o,i){var l=(0,A.A)(e),c=(0,A.A)(t),u=l?C:(0,v.A)(e),d=c?C:(0,v.A)(t);u=u==x?w:u,d=d==x?w:d;var p=u==w,f=d==w,m=u==d;if(m&&(0,$.A)(e)){if(!(0,$.A)(t))return!1;l=!0,p=!1}if(m&&!p)return i||(i=new r.A),l||(0,k.A)(e)?s(e,t,n,a,o,i):h(e,t,u,n,a,o,i);if(!(1&n)){var g=p&&E.call(e,"__wrapped__"),b=f&&E.call(t,"__wrapped__");if(g||b){var D=g?e.value():e,S=b?t.value():t;return i||(i=new r.A),o(D,S,n,a,i)}}return!!m&&(i||(i=new r.A),y(e,t,n,a,o,i))};var S=n(62873);let B=function(e,t){return function e(t,n,r,a,o){return t===n||(null!=t&&null!=n&&((0,S.A)(t)||(0,S.A)(n))?D(t,n,r,a,e,o):t!=t&&n!=n)}(e,t)}},49885:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(31243),a=n(12174);let o=function(e){if(!(0,a.A)(e))return!1;var t=(0,r.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},47741:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},12174:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},62873:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){return null!=e&&"object"==typeof e}},92562:function(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(31243),a=n(89494),o=n(62873),i=Object.prototype,s=Function.prototype.toString,l=i.hasOwnProperty,c=s.call(Object);let u=function(e){if(!(0,o.A)(e)||"[object Object]"!=(0,r.A)(e))return!1;var t=(0,a.A)(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==c}},44049:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(31243),a=n(62873);let o=function(e){return"symbol"==typeof e||(0,a.A)(e)&&"[object Symbol]"==(0,r.A)(e)}},43148:function(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(31243),a=n(47741),o=n(62873),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;var s=n(33734),l=n(97872),c=l.A&&l.A.isTypedArray;let u=c?(0,s.A)(c):function(e){return(0,o.A)(e)&&(0,a.A)(e.length)&&!!i[(0,r.A)(e)]}},43473:function(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(42287),a=n(62926),o=n(55259);let i=function(e){return(0,o.A)(e)?(0,r.A)(e):(0,a.A)(e)}},22678:function(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(42287),a=n(12174),o=n(24956);let i=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var s=Object.prototype.hasOwnProperty;let l=function(e){if(!(0,a.A)(e))return i(e);var t=(0,o.A)(e),n=[];for(var r in e)"constructor"==r&&(t||!s.call(e,r))||n.push(r);return n};var c=n(55259);let u=function(e){return(0,c.A)(e)?(0,r.A)(e,!0):l(e)}},51803:function(e,t,n){"use strict";n.d(t,{A:()=>ek});var r,a,o,i=n(20117),s=n(61098);let l=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var c=n(74660),u=n(51158),d=n(43473),p=n(22678),f=n(13137),m=n(17052),h=n(93363),g=n(93903),b=n(89494),y=n(9620),v=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,g.A)(t,(0,h.A)(e)),e=(0,b.A)(e);return t}:y.A,A=n(11507),$=n(96918);let k=function(e){return(0,$.A)(e,p.A,v)};var x=n(4004),C=Object.prototype.hasOwnProperty;let w=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&C.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var E=n(46940);let D=function(e,t){var n=t?(0,E.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var S=/\w*$/;let B=function(e){var t=new e.constructor(e.source,S.exec(e));return t.lastIndex=e.lastIndex,t};var z=n(19172),P=z.A?z.A.prototype:void 0,T=P?P.valueOf:void 0,M=n(84934);let O=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return(0,E.A)(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return D(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,M.A)(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return B(e);case"[object Symbol]":return T?Object(T.call(e)):{}}};var F=n(47514),I=n(36820),N=n(75323),j=n(62873),R=n(33734),L=n(97872),V=L.A&&L.A.isMap,H=V?(0,R.A)(V):function(e){return(0,j.A)(e)&&"[object Map]"==(0,x.A)(e)},G=n(12174),U=L.A&&L.A.isSet,q=U?(0,R.A)(U):function(e){return(0,j.A)(e)&&"[object Set]"==(0,x.A)(e)},W="[object Arguments]",K="[object Function]",Y="[object Object]",J={};J[W]=J["[object Array]"]=J["[object ArrayBuffer]"]=J["[object DataView]"]=J["[object Boolean]"]=J["[object Date]"]=J["[object Float32Array]"]=J["[object Float64Array]"]=J["[object Int8Array]"]=J["[object Int16Array]"]=J["[object Int32Array]"]=J["[object Map]"]=J["[object Number]"]=J[Y]=J["[object RegExp]"]=J["[object Set]"]=J["[object String]"]=J["[object Symbol]"]=J["[object Uint8Array]"]=J["[object Uint8ClampedArray]"]=J["[object Uint16Array]"]=J["[object Uint32Array]"]=!0,J["[object Error]"]=J[K]=J["[object WeakMap]"]=!1;let Z=function e(t,n,r,a,o,i){var g,b=1&n,y=2&n,$=4&n;if(r&&(g=o?r(t,a,o,i):r(t)),void 0!==g)return g;if(!(0,G.A)(t))return t;var C=(0,I.A)(t);if(C){if(g=w(t),!b)return(0,m.A)(t,g)}else{var E,D,S,B,z=(0,x.A)(t),P=z==K||"[object GeneratorFunction]"==z;if((0,N.A)(t))return(0,f.A)(t,b);if(z==Y||z==W||P&&!o){if(g=y||P?{}:(0,F.A)(t),!b)return y?(D=(E=g)&&(0,u.A)(t,(0,p.A)(t),E),(0,u.A)(t,v(t),D)):(B=(S=g)&&(0,u.A)(t,(0,d.A)(t),S),(0,u.A)(t,(0,h.A)(t),B))}else{if(!J[z])return o?t:{};g=O(t,z,b)}}i||(i=new s.A);var T=i.get(t);if(T)return T;i.set(t,g),q(t)?t.forEach(function(a){g.add(e(a,n,r,a,t,i))}):H(t)&&t.forEach(function(a,o){g.set(o,e(a,n,r,o,t,i))});var M=$?y?k:A.A:y?p.A:d.A,j=C?void 0:M(t);return l(j||t,function(a,o){j&&(a=t[o=a]),(0,c.A)(g,o,e(a,n,r,o,t,i))}),g};var X=n(44049),Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/;let et=function(e,t){if((0,I.A)(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||(0,X.A)(e))||ee.test(e)||!Q.test(e)||null!=t&&e in Object(t)};var en=n(63605);function er(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(er.Cache||en.A),n}er.Cache=en.A;var ea=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eo=/\\(\\)?/g,ei=(a=(r=er(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ea,function(e,n,r,a){t.push(r?a.replace(eo,"$1"):n||e)}),t},function(e){return 500===a.size&&a.clear(),e})).cache,r),es=n(1158);let el=function(e,t){return(0,I.A)(e)?e:et(e,t)?[e]:ei((0,es.A)(e))};var ec=n(6561),eu=1/0;let ed=function(e){if("string"==typeof e||(0,X.A)(e))return e;var t=e+"";return"0"==t&&1/e==-eu?"-0":t},ep=function(e,t){t=el(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[ed(t[n++])];return n&&n==r?e:void 0},ef=function(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(a);++r<a;)o[r]=e[r+t];return o},em=function(e,t){var n,r;return t=el(t,e),n=e,null==(e=(r=t).length<2?n:ep(n,ef(r,0,-1)))||delete e[ed((0,ec.A)(t))]};var eh=n(92562);let e_=function(e){return(0,eh.A)(e)?void 0:e};var eg=n(17820),eb=z.A?z.A.isConcatSpreadable:void 0;let ey=function(e){return(0,I.A)(e)||(0,eg.A)(e)||!!(eb&&e&&e[eb])},ev=function e(t,n,r,a,o){var i=-1,s=t.length;for(r||(r=ey),o||(o=[]);++i<s;){var l=t[i];n>0&&r(l)?n>1?e(l,n-1,r,a,o):(0,g.A)(o,l):a||(o[o.length]=l)}return o};var eA=n(54979),e$=n(44168);let ek=(o=function(e,t){var n={};if(null==e)return n;var r=!1;t=(0,i.A)(t,function(t){return t=el(t,e),r||(r=t.length>1),t}),(0,u.A)(e,k(e),n),r&&(n=Z(n,7,e_));for(var a=t.length;a--;)em(n,t[a]);return n},(0,e$.A)((0,eA.A)(o,void 0,function(e){return(null==e?0:e.length)?ev(e,1):[]}),o+""))},9620:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(){return[]}},1158:function(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(19172),a=n(20117),o=n(36820),i=n(44049),s=1/0,l=r.A?r.A.prototype:void 0,c=l?l.toString:void 0;let u=function e(t){if("string"==typeof t)return t;if((0,o.A)(t))return(0,a.A)(t,e)+"";if((0,i.A)(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n},d=function(e){return null==e?"":u(e)}},6309:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,a,o;r=e,a=t,o=n[t],a in r?Object.defineProperty(r,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[a]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n;if("function"!=typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var n="single-spa-application:".concat(t);return function(){var e=document.getElementById(n);return e||((e=document.createElement("div")).id=n,document.body.appendChild(e)),e}}(t)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(i(n)));return function(){var e=n(t);if(!(e instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(i(e)));return e}}n.d(t,{A:()=>u,i:()=>l});var l=null;try{l=require("react").createContext()}catch(e){}var c={React:null,ReactDOM:null,ReactDOMClient:null,rootComponent:null,loadRootComponent:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{},unmountResolves:{}};function u(e){if("object"!==o(e))throw Error("single-spa-react requires a configuration object");var t,n=a(a({},c),e);if(!n.React)throw Error("single-spa-react must be passed opts.React");if(!n.ReactDOM&&!n.ReactDOMClient)throw Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(n.renderType||(null!=(t=n.ReactDOMClient)&&t.createRoot?n.renderType="createRoot":n.renderType="render"),!n.rootComponent&&!n.loadRootComponent)throw Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&"function"!=typeof n.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!l&&n.React.createContext&&(l=n.React.createContext()),n.SingleSpaRoot=function(e){function t(e){t.displayName="SingleSpaRoot(".concat(e.name,")")}return t.prototype=Object.create(e.React.Component.prototype),t.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},t.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},t.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},t}(n);var r={bootstrap:d.bind(null,n),mount:p.bind(null,n),unmount:f.bind(null,n)};return n.parcelCanUpdate&&(r.update=m.bind(null,n)),r}function d(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(t){e.rootComponent=t})}function p(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(e){if(!(e&&"string"==typeof e.version&&e.version.indexOf(".")>=0))return!1;var t=e.version.slice(0,e.version.indexOf("."));try{return Number(t)>=16}catch(e){return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var a,o=g(e,t,function(){n(this)}),i=s(e,t)(),l=function(e){var t=e.reactDom,n=e.renderType,r=e.elementToRender,a=e.domElement,o=t[n];if("function"!=typeof o)throw Error('renderType "'.concat(n,'" did not return a function.'));switch(n){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var i=o(a);return i.render(r),i;case"hydrateRoot":return o(a,r);default:return o(r,a),null}}({elementToRender:o,domElement:i,reactDom:h(e),renderType:"function"==typeof(a=e).renderType?a.renderType():a.renderType});e.domElements[t.name]=i,e.renderResults[t.name]=l})}function f(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():h(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function m(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=g(e,t,null),a=e.renderResults[t.name];if(a&&a.render)a.render(r);else{var o=s(e,t)();h(e).render(r,o)}})}function h(e){return e.ReactDOMClient||e.ReactDOM}function g(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=l?e.React.createElement(l.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(e,t){function n(t){e.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},n.displayName="SingleSpaReactErrorBoundary(".concat(t.name,")")}return n.prototype=Object.create(e.React.Component.prototype),n.prototype.render=function(){return this.state.caughtError?(e.errorBoundary||t.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},n.prototype.componentDidCatch=function(e,t){this.setState({caughtError:e,caughtErrorInfo:t})},n}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,a(a({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(e){return e()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}},22956:function(e,t,n){"use strict";let r;n.d(t,{AG:()=>eC,EH:()=>eo,fz:()=>ez,xL:()=>G});var a=Object.freeze({__proto__:null,get start(){return ej},get ensureJQuerySupport(){return em},get setBootstrapMaxTime(){return Y},get setMountMaxTime(){return J},get setUnmountMaxTime(){return Z},get setUnloadMaxTime(){return X},get registerApplication(){return eC},get unregisterApplication(){return eE},get getMountedApps(){return eA},get getAppStatus(){return ek},get unloadApplication(){return eD},get checkActivityFunctions(){return ew},get getAppNames(){return e$},get pathToActiveWhen(){return ez},get navigateToUrl(){return eo},get patchHistoryApi(){return ed},get triggerAppChange(){return eO},get addErrorHandler(){return c},get removeErrorHandler(){return u},get mountRootParcel(){return G},get NOT_LOADED(){return f},get LOADING_SOURCE_CODE(){return m},get NOT_BOOTSTRAPPED(){return h},get BOOTSTRAPPING(){return g},get NOT_MOUNTED(){return b},get MOUNTING(){return y},get UPDATING(){return A},get LOAD_ERROR(){return x},get MOUNTED(){return v},get UNLOADING(){return k},get UNMOUNTING(){return $},get SKIP_BECAUSE_BROKEN(){return C}}),o=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).CustomEvent,i=!function(){try{var e=new o("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=!!t.bubbles,n.cancelable=!!t.cancelable,n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}:o;let s=[];function l(e,t,n){let r=p(e,t,n);s.length?s.forEach(e=>e(r)):setTimeout(()=>{throw r})}function c(e){if("function"!=typeof e)throw Error(d(28,!1));s.push(e)}function u(e){if("function"!=typeof e)throw Error(d(29,!1));let t=!1;return s=s.filter(n=>{let r=n===e;return t=t||r,!r}),t}function d(e,t,...n){return`single-spa minified message #${e}: ${t?t+" ":""}See https://single-spa.js.org/error/?code=${e}${n.length?`&arg=${n.join("&arg=")}`:""}`}function p(e,t,n){let r,a=`${B(t)} '${D(t)}' died in status ${t.status}: `;if(e instanceof Error){try{e.message=a+e.message}catch(e){}r=e}else{console.warn(d(30,!1,t.status,D(t)));try{r=Error(a+JSON.stringify(e))}catch(t){r=e}}return r.appOrParcelName=D(t),t.status=n,r}let f="NOT_LOADED",m="LOADING_SOURCE_CODE",h="NOT_BOOTSTRAPPED",g="BOOTSTRAPPING",b="NOT_MOUNTED",y="MOUNTING",v="MOUNTED",A="UPDATING",$="UNMOUNTING",k="UNLOADING",x="LOAD_ERROR",C="SKIP_BECAUSE_BROKEN";function w(e){return e.status===v}function E(e){try{return e.activeWhen(window.location)}catch(t){return l(t,e,C),!1}}function D(e){return e.name}function S(e){return!!e.unmountThisParcel}function B(e){return S(e)?"parcel":"application"}function z(){for(let e=arguments.length-1;e>0;e--)for(let t in arguments[e])"__proto__"!==t&&(arguments[e-1][t]=arguments[e][t]);return arguments[0]}function P(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n];return null}function T(e){return e&&("function"==typeof e||Array.isArray(e)&&!P(e,e=>"function"!=typeof e))}function M(e,t){let n=e[t]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[()=>Promise.resolve()]);let r=B(e),a=D(e);return function(e){return n.reduce((n,o,i)=>n.then(()=>{let n=o(e);return O(n)?n:Promise.reject(d(15,!1,r,a,t,i))}),Promise.resolve())}}function O(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}let F=[];function I(e,t){return Promise.resolve().then(()=>e.status!==h?e:(e.status=g,e.bootstrap?Q(e,"bootstrap").then(n).catch(n=>{if(t)throw p(n,e,C);return l(n,e,C),e}):Promise.resolve().then(n)));function n(){return e.status=b,e}}function N(e,t){return Promise.resolve().then(()=>{if(e.status!==v)return e;return e.status=$,Promise.all(Object.keys(e.parcels).map(t=>e.parcels[t].unmountThisParcel())).then(n,r=>n().then(()=>{let n=Error(r.message);if(t)throw p(n,e,C);l(n,e,C)})).then(()=>e);function n(){return Q(e,"unmount").then(()=>{e.status=b},n=>{if(t)throw p(n,e,C);l(n,e,C)})}})}let j=!1,R=!1;function L(e,t){return Promise.resolve().then(()=>e.status!==b?e:(j||(window.dispatchEvent(new i("single-spa:before-first-mount")),j=!0),e.status=y,Q(e,"mount").then(()=>(e.status=v,R||(window.dispatchEvent(new i("single-spa:first-mount")),R=!0),e)).catch(n=>{return e.status=v,N(e,!0).then(r,r);function r(){if(t)throw p(n,e,C);return l(n,e,C),e}})))}let V=0,H={parcels:{}};function G(){return U.apply(H,arguments)}function U(e,t){let n,r,a,o=this;if(!e||"object"!=typeof e&&"function"!=typeof e)throw Error(d(2,!1));if(e.name&&"string"!=typeof e.name)throw Error(d(3,!1,typeof e.name));let i=V++,s=e.name||`parcel-${i}`;if("object"!=typeof t)throw Error(d(4,!1,s,typeof t));if(!t.domElement)throw Error(d(5,!1,s));let l="function"==typeof e,c=l?e:()=>Promise.resolve(e),u={id:i,parcels:{},status:l?m:h,customProps:t,parentName:D(o),unmountThisParcel:()=>y.then(()=>{if(u.status!==v)throw Error(d(6,!1,s,u.status));return N(u,!0)}).then(e=>(u.parentName&&delete o.parcels[u.id],e)).then(e=>(r(e),e)).catch(e=>{throw u.status=C,a(e),e})};o.parcels[i]=u;let f=c();if(!f||"function"!=typeof f.then)throw Error(d(7,!1));let g=(f=f.then(e=>{if(!e)throw Error(d(8,!1));if(s=e.name||`parcel-${i}`,Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!T(e.bootstrap))throw Error(d(9,!1,s));if(!T(e.mount))throw Error(d(10,!1,s));if(!T(e.unmount))throw Error(d(11,!1,s));if(e.update&&!T(e.update))throw Error(d(12,!1,s));let t=M(e,"bootstrap"),r=M(e,"mount"),a=M(e,"unmount");u.status=h,u.name=s,u.bootstrap=t,u.mount=r,u.unmount=a,u.timeouts=ee(e.timeouts),e.update&&(u.update=M(e,"update"),n.update=function(e){return u.customProps=e,q(Promise.resolve().then(()=>{if(u.status!==v)throw Error(d(32,!1,D(u)));return u.status=A,Q(u,"update").then(()=>(u.status=v,u)).catch(e=>{throw p(e,u,C)})}))})})).then(()=>I(u,!0)),y=g.then(()=>L(u,!0)),$=new Promise((e,t)=>{r=e,a=t});return n={mount:()=>q(Promise.resolve().then(()=>{if(u.status!==b)throw Error(d(13,!1,s,u.status));return o.parcels[i]=u,L(u)})),unmount:()=>q(u.unmountThisParcel()),getStatus:()=>u.status,loadPromise:q(f),bootstrapPromise:q(g),mountPromise:q(y),unmountPromise:q($)}}function q(e){return e.then(()=>null)}function W(e){let t=D(e),n="function"==typeof e.customProps?e.customProps(t,window.location):e.customProps;("object"!=typeof n||null===n||Array.isArray(n))&&(n={},console.warn(d(40,!1),t,n));let r=z({},n,{name:t,mountParcel:U.bind(e),singleSpa:a});return S(e)&&(r.unmountSelf=e.unmountThisParcel),r}let K={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function Y(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(16,!1));K.bootstrap={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function J(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(17,!1));K.mount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Z(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(18,!1));K.unmount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function X(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(19,!1));K.unload={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Q(e,t){let n=e.timeouts[t],r=n.warningMillis,a=B(e);return new Promise((o,i)=>{let s=!1,l=!1;e[t](W(e)).then(e=>{s=!0,o(e)}).catch(e=>{s=!0,i(e)}),setTimeout(()=>u(1),r),setTimeout(()=>u(!0),n.millis);let c=d(31,!1,t,a,D(e),n.millis);function u(e){s||(!0===e?(l=!0,n.dieOnTimeout?i(Error(c)):console.error(c)):!l&&(console.warn(c),e*r+r<n.millis&&setTimeout(()=>u(e+1),r)))}})}function ee(e){let t={};for(let n in K)t[n]=z({},K[n],e&&e[n]||{});return t}function et(e){return Promise.resolve().then(()=>{let t,n;return e.loadPromise?e.loadPromise:e.status!==f&&e.status!==x?e:(e.status=m,e.loadPromise=Promise.resolve().then(()=>{let r=e.loadApp(W(e));if(!O(r))throw n=!0,Error(d(33,!1,D(e)));return r.then(n=>{let r;e.loadErrorTime=null,"object"!=typeof(t=n)&&(r=34),Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!T(t.bootstrap)&&(r=35),T(t.mount)||(r=36),T(t.unmount)||(r=37);let a=B(t);if(r){let n;try{n=JSON.stringify(t)}catch(e){}return console.error(d(r,!1,a,D(e),n),t),l(void 0,e,C),e}return t.devtools&&t.devtools.overlays&&(e.devtools.overlays=z({},e.devtools.overlays,t.devtools.overlays)),e.status=h,e.bootstrap=M(t,"bootstrap"),e.mount=M(t,"mount"),e.unmount=M(t,"unmount"),e.unload=M(t,"unload"),e.timeouts=ee(t.timeouts),delete e.loadPromise,e})}).catch(t=>{let r;return delete e.loadPromise,n?r=C:(r=x,e.loadErrorTime=(new Date).getTime()),l(t,e,r),e}))})}let en="undefined"!=typeof window,er={hashchange:[],popstate:[]},ea=["hashchange","popstate"];function eo(e){let t;if("string"==typeof e)t=e;else if(this&&this.href)t=this.href;else{if(!(e&&e.currentTarget&&e.currentTarget.href&&e.preventDefault))throw Error(d(14,!1));t=e.currentTarget.href,e.preventDefault()}let n=ep(window.location.href),r=ep(t);0===t.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=t:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,t)}function ei(e){if(e){let t=e[0].type;ea.indexOf(t)>=0&&er[t].forEach(t=>{try{t.apply(this,e)}catch(e){setTimeout(()=>{throw e})}})}}function es(){eF([],arguments)}function el(e,t){return function(){let n=window.location.href,a=e.apply(this,arguments),o=window.location.href;return r&&n===o||window.dispatchEvent(function(e,t){let n;try{n=new PopStateEvent("popstate",{state:e})}catch(t){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,e)}return n.singleSpa=!0,n.singleSpaTrigger=t,n}(window.history.state,t)),a}}let ec=null,eu=!1;function ed(e){if(eu)throw Error(d(43,!1));r=!e||!e.hasOwnProperty("urlRerouteOnly")||e.urlRerouteOnly,eu=!0,ec=window.history.replaceState,window.addEventListener("hashchange",es),window.addEventListener("popstate",es);let t=window.addEventListener,n=window.removeEventListener;window.addEventListener=function(e,n){if(!("function"==typeof n&&ea.indexOf(e)>=0)||P(er[e],e=>e===n))return t.apply(this,arguments);er[e].push(n)},window.removeEventListener=function(e,t){return"function"==typeof t&&ea.indexOf(e)>=0&&(er[e]=er[e].filter(e=>e!==t)),n.apply(this,arguments)},window.history.pushState=el(window.history.pushState,"pushState"),window.history.replaceState=el(ec,"replaceState")}function ep(e){let t=document.createElement("a");return t.href=e,t}en&&(window.singleSpaNavigate?console.warn(d(41,!1)):window.singleSpaNavigate=eo);let ef=!1;function em(e=window.jQuery){if(e||window.$&&window.$.fn&&window.$.fn.jquery&&(e=window.$),e&&!ef){let t=e.fn.on,n=e.fn.off;e.fn.on=function(e,n){return eh.call(this,t,window.addEventListener,e,n,arguments)},e.fn.off=function(e,t){return eh.call(this,n,window.removeEventListener,e,t,arguments)},ef=!0}}function eh(e,t,n,r,a){return"string"!=typeof n?e.apply(this,a):(n.split(/\s+/).forEach(e=>{ea.indexOf(e)>=0&&(t(e,r),n=n.replace(e,""))}),""===n.trim()?this:e.apply(this,a))}let e_={};function eg(e){return Promise.resolve().then(()=>{let t=e_[D(e)];if(!t)return e;if(e.status===f)return eb(e,t),e;if(e.status===k)return t.promise.then(()=>e);if(e.status!==b&&e.status!==x)return e;let n=e.status===x?Promise.resolve():Q(e,"unload");return e.status=k,n.then(()=>(eb(e,t),e)).catch(n=>(delete e_[D(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,l(n,e,C),t.reject(n),e))})}function eb(e,t){delete e_[D(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,e.status=f,t.resolve()}function ey(e,t,n,r){e_[D(e)]={app:e,resolve:n,reject:r},Object.defineProperty(e_[D(e)],"promise",{get:t})}let ev=[];function eA(){return ev.filter(w).map(D)}function e$(){return ev.map(D)}function ek(e){let t=P(ev,t=>D(t)===e);return t?t.status:null}let ex=!1;function eC(e,t,n,r){var a,o;let i,s,l=(i={name:null,loadApp:null,activeWhen:null,customProps:null},"object"==typeof e?(function(e){if(Array.isArray(e)||null===e)throw Error(d(39,!1));let t=["name","app","activeWhen","customProps"],n=Object.keys(e).reduce((e,n)=>t.indexOf(n)>=0?e:e.concat(n),[]);if(0!==n.length)throw Error(d(38,!1,t.join(", "),n.join(", ")));if("string"!=typeof e.name||0===e.name.length||"object"!=typeof e.app&&"function"!=typeof e.app)throw Error(d(20,!1));let r=e=>"string"==typeof e||"function"==typeof e;if(!(r(e.activeWhen)||Array.isArray(e.activeWhen)&&e.activeWhen.every(r)))throw Error(d(24,!1));if(!eB(e.customProps))throw Error(d(22,!1))}(e),i.name=e.name,i.loadApp=e.app,i.activeWhen=e.activeWhen,i.customProps=e.customProps):(function(e,t,n,r){if("string"!=typeof e||0===e.length)throw Error(d(20,!1));if(!t)throw Error(d(23,!1));if("function"!=typeof n)throw Error(d(24,!1));if(!eB(r))throw Error(d(22,!1))}(e,t,n,r),i.name=e,i.loadApp=t,i.activeWhen=n,i.customProps=r),i.loadApp="function"!=typeof(a=i.loadApp)?()=>Promise.resolve(a):a,i.customProps=i.customProps||{},s=(s=Array.isArray(o=i.activeWhen)?o:[o]).map(e=>"function"==typeof e?e:ez(e)),i.activeWhen=e=>s.some(t=>t(e)),i);if(eN||ex||(ex=!0,setTimeout(()=>{eN||console.warn(d(1,!1))},5e3)),-1!==e$().indexOf(l.name))throw Error(d(21,!1,l.name));ev.push(z({loadErrorTime:null,status:f,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},l)),en&&(em(),eF())}function ew(e=window.location){return ev.filter(t=>t.activeWhen(e)).map(D)}function eE(e){if(0===ev.filter(t=>D(t)===e).length)throw Error(d(25,!1,e));return(en?eD(e,{waitForUnmount:!1}):Promise.resolve()).then(()=>{let t=ev.map(D).indexOf(e);ev.splice(t,1)})}function eD(e,t={waitForUnmount:!1}){if("string"!=typeof e)throw Error(d(26,!1));let n=P(ev,t=>D(t)===e);if(!n)throw Error(d(27,!1,e));let r=e_[D(n)];if(t&&t.waitForUnmount){if(r)return r.promise;{let e=new Promise((t,r)=>{ey(n,()=>e,t,r)});return e}}{let e;return r?(e=r.promise,eS(n,r.resolve,r.reject)):e=new Promise((t,r)=>{ey(n,()=>e,t,r),eS(n,t,r)}),e}}function eS(e,t,n){Promise.resolve().then(()=>{if(P(ew(),t=>t===D(e)))return eO()}).then(()=>N(e).then(eg).then(()=>{t(),setTimeout(()=>{eF()})})).catch(n)}function eB(e){return!e||"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)}function ez(e,t){let n=function(e,t){let n=0,r=!1,a="^";"/"!==e[0]&&(e="/"+e);for(let t=0;t<e.length;t++){let n=e[t],a=r&&"/"===n;(!r&&":"===n||a)&&o(t)}return o(e.length),RegExp(a,"i");function o(o){let i=e.slice(n,o).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(a+=r?"[^/]+/?":i,o===e.length)if(r)t&&(a+="$");else{let e=t?"":".*";a="/"===a.charAt(a.length-1)?`${a}${e}$`:`${a}(/${e})?(#.*)?$`}r=!r,n=o}}(e,t);return e=>{let t=e.origin;t||(t=`${e.protocol}//${e.host}`);let r=e.href.replace(t,"").replace(e.search,"").split("?")[0];return n.test(r)}}let eP=!1,eT=[],eM=en&&window.location.href;function eO(){return eF()}function eF(e=[],t,n=!1){let r,a,o,s,l;if(eP)return new Promise((e,n)=>{eT.push({resolve:e,reject:n,eventArguments:t})});let{appsToUnload:c,appsToUnmount:u,appsToLoad:p,appsToMount:g}=(r=[],a=[],o=[],s=[],l=(new Date).getTime(),ev.forEach(e=>{let t=e.status!==C&&E(e);switch(e.status){case x:t&&l-e.loadErrorTime>=200&&o.push(e);break;case f:case m:t&&o.push(e);break;case h:case b:!t&&e_[D(e)]?r.push(e):t&&s.push(e);break;case v:t||a.push(e)}}),{appsToUnload:r,appsToUnmount:a,appsToLoad:o,appsToMount:s}),y,A=[],$=eM,k=eM=window.location.href;return eN?(eP=!0,y=c.concat(p,u,g),Promise.resolve().then(()=>(T(0===y.length?"before-no-app-change":"before-app-change",P(!0)),T("before-routing-event",P(!0,{cancelNavigation:w})),Promise.all(A).then(n=>{if(n.some(e=>e))return ec.call(window.history,history.state,"",$.substring(location.origin.length)),eM=location.href,eP=!1,eF(e,t,!0);let r=c.map(eg),a=Promise.all(u.map(N).map(e=>e.then(eg)).concat(r));a.then(()=>{T("before-mount-routing-event",P(!0))},e=>{throw e});let o=p.map(e=>et(e).then(e=>eI(e,a))),i=g.filter(e=>0>p.indexOf(e)).map(e=>eI(e,a));return a.catch(e=>{throw B(),e}).then(()=>(B(),Promise.all(o.concat(i)).catch(t=>{throw e.forEach(e=>e.reject(t)),t}).then(S).then(()=>{},e=>{throw e})))})))):(y=p,Promise.resolve().then(()=>Promise.all(p.map(et)).then(B).then(()=>[]).catch(e=>{throw B(),e}).finally(()=>{})));function w(e=!0){let t="function"==typeof(null==e?void 0:e.then)?e:Promise.resolve(e);A.push(t.catch(e=>(console.warn(Error(d(42,!1))),console.warn(e),!1)))}function S(){let t=eA();e.forEach(e=>e.resolve(t));try{T(0===y.length?"no-app-change":"app-change",P()),T("routing-event",P())}catch(e){setTimeout(()=>{throw e})}if(eP=!1,eT.length>0){let e=eT;eT=[],eF(e)}return t}function B(){n||(e.forEach(e=>{ei(e.eventArguments)}),ei(t))}function P(e=!1,n){let r={},a={[v]:[],[b]:[],[f]:[],[C]:[]};e?(p.concat(g).forEach((e,t)=>{i(e,v)}),c.forEach(e=>{i(e,f)}),u.forEach(e=>{i(e,b)})):y.forEach(e=>{i(e)});let o={detail:{newAppStatuses:r,appsByNewStatus:a,totalAppChanges:y.length,originalEvent:null==t?void 0:t[0],oldUrl:$,newUrl:k}};return n&&z(o.detail,n),o;function i(e,t){let n=D(e);t=t||ek(n),r[n]=t,(a[t]=a[t]||[]).push(n)}}function T(e,t){n||window.dispatchEvent(new i(`single-spa:${e}`,t))}}function eI(e,t){return E(e)?I(e).then(e=>t.then(()=>E(e)?L(e):e)):t.then(()=>e)}let eN=!1;function ej(e){eN=!0,en&&(ed(e),eF())}en&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[...ev]},reroute:eF,NOT_LOADED:f,toLoadPromise:et,toBootstrapPromise:I,unregisterApplication:eE,getProfilerData:function(){return F}})},70937:function(e,t,n){"use strict";n.d(t,{lo:()=>b,HW:()=>k,QE:()=>O,xC:()=>S,$f:()=>v,Kx:()=>B,EW:()=>x,E4:()=>C,Gm:()=>g,eA:()=>A,yH:()=>w,ut:()=>y,Y0:()=>F,L7:()=>M,IU:()=>m,Jj:()=>f,g$:()=>E,Gp:()=>z,Ct:()=>h,Fi:()=>P,st:()=>D});var r=n(64201),a=n(467);let o=function(e){return void 0===e};var i=n(26049),s=n(92562),l=n(13070),c=n(17744);let u="${openmrsSpaBase}/login",d={redirectAuthFailure:{enabled:{_type:l.ZU.Boolean,_default:!0,_description:"Whether to redirect logged-out users to `redirectAuthFailure.url`"},url:{_type:l.ZU.String,_default:u,_validators:[l.y$.isUrl],_description:"The url to which users will be redirected when they are logged out. If set to blank, the `location` header from the response will be used."},errors:{_type:l.ZU.Array,_default:[401],_elements:{_type:l.ZU.Number,_validators:[l.y$.inRange(100,600)]},_description:"The HTTP error codes for which users will be redirected"},resolvePromise:{_type:l.ZU.Boolean,_default:!1,_description:"Changes how requests that fail authentication are handled. Try messing with this if redirects to the login page aren't working correctly."}},followRedirects:{_type:l.ZU.Boolean,_default:!0,_description:"Whether openmrsFetch should support redirects returned from the backend"}};function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let f="/ws/rest/v1",m="/ws/fhir2/R4",h=`${f}/session`;function g(e){return e&&e.startsWith("http")?e:("/"!==e[0]&&(e="/"+e),window.openmrsBase+e)}function b(e,t={}){if("string"!=typeof e)throw Error("The first argument to @openmrs/api's openmrsFetch function must be a url string");if("object"!=typeof t)throw Error("The second argument to @openmrs/api's openmrsFetch function must be a plain object.");if(!window.openmrsBase)throw Error("@openmrs/api is running in a browser that doesn't have window.openmrsBase, which is provided by openmrs-module-spa's HTML file.");let n=g(e);if(t.headers||(t.headers={}),(0,s.A)(t.body)&&(t.body=JSON.stringify(t.body)),void 0===t.headers.Accept&&(t.headers.Accept="application/json"),null===t.headers.Accept&&delete t.headers.Accept,e.startsWith(f)&&void 0===t.headers["Disable-WWW-Authenticate"]&&(t.headers["Disable-WWW-Authenticate"]="true"),e.startsWith(m)){let e=new URL(n,window.location.toString());e.searchParams.has("_summary")||(e.searchParams.set("_summary","data"),n=e.toString())}let r=Error();return window.fetch(n,t).then(async e=>{let{redirectAuthFailure:t,followRedirects:a}=await (0,l.zj)("@openmrs/esm-api");if(e.ok)if(204!==e.status)return e.clone().text().then(t=>{try{t&&(e.data=JSON.parse(t))}catch(e){}return e});else{if(a&&e.headers.has("location")){let t=e.headers.get("location");t&&(0,c.oo)({to:t})}return e.data=null,e}if(!(n===g(h)&&403===e.status||t.enabled&&t.errors.includes(e.status)))return e.clone().text().then(t=>{let a=t;try{a=JSON.parse(t)}catch(e){}throw new v(n,e,a,r)},t=>{throw new v(n,e,null,r)});{(0,c.g4)();let n=t.url||e.headers.get("location")||u;return(0,c.oo)({to:n}),t.resolvePromise?Promise.resolve():new Promise(()=>{})}})}function y(e,t={}){if("object"!=typeof t)throw Error("The second argument to openmrsObservableFetch must be either omitted or an object");let n=new AbortController;return t.signal=n.signal,new i.c(r=>{let a=!1;return b(e,t).then(e=>{a=!0,r.next(e),r.complete()},e=>{a=!0,r.error(e)}),()=>{a||n.abort()}})}class v extends Error{constructor(e,t,n,r){super(),p(this,"response",void 0),p(this,"responseBody",void 0),this.message=`Server responded with ${t.status} (${t.statusText}) for url ${e}. Check err.responseBody or network tab in dev tools for more info`,r.message=this.message,this.responseBody=n,this.response=t,this.stack=`Stacktrace for outgoing request:
7
+ `.trim(),e.head.prepend(t)},[p]),(0,v.useEffect)(()=>{let e=g.current;return()=>{var t;for(let n of(d||t$(null!=(t=e.target)?t:void 0),e.disposables))n();e.disposables=[]}},[d]),{isPressed:l||m,pressProps:eT(f,D,{[tN]:!0})}}function tR(e){return"A"===e.tagName&&e.hasAttribute("href")}function tL(e,t){let{key:n,code:r}=e,a=t.getAttribute("role");return("Enter"===n||" "===n||"Spacebar"===n||"Space"===r)&&!(t instanceof eQ(t).HTMLInputElement&&!tU(t,n)||t instanceof eQ(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===a||!a&&tR(t))&&"Enter"!==n)}function tV(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function tH(e,t){return e instanceof HTMLInputElement?!tU(e,t):!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!tR(e))}let tG=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function tU(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:tG.has(e.type)}let tq=null,tW=new Set,tK=new Map,tY=!1,tJ=!1,tZ={Tab:!0,Escape:!0};function tX(e,t){for(let n of tW)n(e,t)}function tQ(e){tY=!0,e.metaKey||!ts()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(tq="keyboard",tX("keyboard",e))}function t0(e){tq="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(tY=!0,tX("pointer",e))}function t1(e){tP(e)&&(tY=!0,tq="virtual")}function t2(e){e.target!==window&&e.target!==document&&!tr&&e.isTrusted&&(tY||tJ||(tq="virtual",tX("virtual",e)),tY=!1,tJ=!1)}function t3(){tr||(tY=!1,tJ=!0)}function t4(e){if("undefined"==typeof window||"undefined"==typeof document||tK.get(eQ(e)))return;let t=eQ(e),n=eX(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){tY=!0,r.apply(this,arguments)},n.addEventListener("keydown",tQ,!0),n.addEventListener("keyup",tQ,!0),n.addEventListener("click",t1,!0),t.addEventListener("focus",t2,!0),t.addEventListener("blur",t3,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",t0,!0),n.addEventListener("pointermove",t0,!0),n.addEventListener("pointerup",t0,!0)),t.addEventListener("beforeunload",()=>{t5(e)},{once:!0}),tK.set(t,{focus:r})}let t5=(e,t)=>{let n=eQ(e),r=eX(e);t&&r.removeEventListener("DOMContentLoaded",t),tK.has(n)&&(n.HTMLElement.prototype.focus=tK.get(n).focus,r.removeEventListener("keydown",tQ,!0),r.removeEventListener("keyup",tQ,!0),r.removeEventListener("click",t1,!0),n.removeEventListener("focus",t2,!0),n.removeEventListener("blur",t3,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",t0,!0),r.removeEventListener("pointermove",t0,!0),r.removeEventListener("pointerup",t0,!0)),tK.delete(n))};function t6(){return"pointer"!==tq}"undefined"!=typeof document&&("loading"!==(i=eX(void 0)).readyState?t4(c):(o=()=>{t4(c)},i.addEventListener("DOMContentLoaded",o)),()=>t5(c,o));let t7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function t8(e){let t=eX(e),n=((e=document)=>e.activeElement)(t);"virtual"===tq?tb(()=>{((e=document)=>e.activeElement)(t)===n&&e.isConnected&&e8(e)}):e8(e)}function t9(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e,o=(0,v.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),a&&a(!1),!0},[r,a]),i=tn(o),s=(0,v.useCallback)(e=>{let t=eX(e.target),r=t?((e=document)=>e.activeElement)(t):((e=document)=>e.activeElement)();e.target===e.currentTarget&&r===tB(e.nativeEvent)&&(n&&n(e),a&&a(!0),i(e))},[a,n,i]);return{focusProps:{onFocus:!t&&(n||a||r)?s:void 0,onBlur:!t&&(r||a)?o:void 0}}}function ne(e){if(!e)return;let t=!0;return n=>{e({...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped:()=>t}),t&&n.stopPropagation()}}let nt=v.createContext(null);function nn(e,t){let{focusProps:n}=t9(e),{keyboardProps:r}={keyboardProps:e.isDisabled?{}:{onKeyDown:ne(e.onKeyDown),onKeyUp:ne(e.onKeyUp)}},a=eT(n,r),o=function(e){let t=(0,v.useContext)(nt)||{};tE(t,e);let{ref:n,...r}=t;return r}(t),i=e.isDisabled?{}:o,s=(0,v.useRef)(e.autoFocus);(0,v.useEffect)(()=>{s.current&&t.current&&t8(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:eT({...a,tabIndex:l},i)}}function nr(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:a}=e,o=(0,v.useRef)({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:s}=tD(),l=(0,v.useCallback)(e=>{e.currentTarget.contains(e.target)&&o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,s(),n&&n(e),a&&a(!1))},[n,a,o,s]),c=tn(l),u=(0,v.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=eX(e.target),n=((e=document)=>e.activeElement)(t);if(!o.current.isFocusWithin&&n===tB(e.nativeEvent)){r&&r(e),a&&a(!0),o.current.isFocusWithin=!0,c(e);let n=e.currentTarget;i(t,"focus",e=>{if(o.current.isFocusWithin&&!tS(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});tt(r,n),l(te(r))}},{capture:!0})}},[r,a,c,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}function na(e={}){var t;let{autoFocus:n=!1,isTextInput:r,within:a}=e,o=(0,v.useRef)({isFocused:!1,isFocusVisible:n||t6()}),[i,s]=(0,v.useState)(!1),[l,c]=(0,v.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),u=(0,v.useCallback)(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),d=(0,v.useCallback)(e=>{o.current.isFocused=e,s(e),u()},[u]);t={isTextInput:r},t4(),(0,v.useEffect)(()=>{let e=(e,n)=>{var r;let a,i,s,l,c;r=!!(null==t?void 0:t.isTextInput),a=eX(null==n?void 0:n.target),i="undefined"!=typeof window?eQ(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,s="undefined"!=typeof window?eQ(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l="undefined"!=typeof window?eQ(null==n?void 0:n.target).HTMLElement:HTMLElement,c="undefined"!=typeof window?eQ(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent,(r=r||a.activeElement instanceof i&&!t7.has(a.activeElement.type)||a.activeElement instanceof s||a.activeElement instanceof l&&a.activeElement.isContentEditable)&&"keyboard"===e&&n instanceof c&&!tZ[n.key]||(e=>{o.current.isFocusVisible=e,u()})(t6())};return tW.add(e),()=>{tW.delete(e)}},[]);let{focusProps:p}=t9({isDisabled:a,onFocusChange:d}),{focusWithinProps:f}=nr({isDisabled:!a,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:l,focusProps:a?f:p}}v.forwardRef(function(e,t){let{children:n,...r}=e,a=e$(t),o={...r,ref:a};return v.createElement(nt.Provider,{value:o},n)});let no=!1,ni=0;function ns(e){"touch"===e.pointerType&&(no=!0,setTimeout(()=>{no=!1},50))}function nl(){if("undefined"!=typeof document)return 0===ni&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",ns),ni++,()=>{--ni>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",ns)}}function nc(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:a}=e,[o,i]=(0,v.useState)(!1),s=(0,v.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,v.useEffect)(nl,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=tD(),{hoverProps:u,triggerHoverEnd:d}=(0,v.useMemo)(()=>{let e=(e,t)=>{let a=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&a&&(s.isHovered=!1,c(),r&&r({type:"hoverend",target:a,pointerType:t}),n&&n(!1),i(!1))},o={};return"undefined"!=typeof PointerEvent&&(o.onPointerEnter=r=>{no&&"mouse"===r.pointerType||((r,o)=>{if(s.pointerType=o,a||"touch"===o||s.isHovered||!r.currentTarget.contains(r.target))return;s.isHovered=!0;let c=r.currentTarget;s.target=c,l(eX(r.target),"pointerover",t=>{s.isHovered&&s.target&&!tS(s.target,t.target)&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:c,pointerType:o}),n&&n(!0),i(!0)})(r,r.pointerType)},o.onPointerLeave=t=>{!a&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,n,r,a,s,l,c]);return(0,v.useEffect)(()=>{a&&d({currentTarget:s.target},s.pointerType)},[a]),{hoverProps:u,isHovered:o}}if("undefined"!=typeof HTMLTemplateElement){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}let nu=(0,v.createContext)(!1);function nd(e){let t=(t,n)=>(0,v.useContext)(nu)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,v.forwardRef)(t)}let np=(0,v.createContext)({}),nf=nd(function(e,t){var n;[e,t]=eN(e,t,np);let r=((n=e).isPending&&(n.onPress=void 0,n.onPressStart=void 0,n.onPressEnd=void 0,n.onPressChange=void 0,n.onPressUp=void 0,n.onKeyDown=void 0,n.onKeyUp=void 0,n.onClick=void 0,n.href=void 0),e=n),{isPending:a}=r,{buttonProps:o,isPressed:i}=function(e,t){let n,{elementType:r="button",isDisabled:a,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:l,onPressChange:c,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:p,href:f,target:m,rel:h,type:g="button"}=e;n="button"===r?{type:g,disabled:a,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:"button",href:"a"!==r||a?void 0:f,target:"a"===r?m:void 0,type:"input"===r?g:void 0,disabled:"input"===r?a:void 0,"aria-disabled":a&&"input"!==r?a:void 0,rel:"a"===r?h:void 0};let{pressProps:b,isPressed:y}=tj({onPressStart:i,onPressEnd:s,onPressChange:c,onPress:o,onPressUp:l,onClick:p,isDisabled:a,preventFocusOnPress:u,ref:t}),{focusableProps:v}=nn(e,t);d&&(v.tabIndex=a?-1:v.tabIndex);let A=eT(v,b,eZ(e,{labelable:!0}));return{isPressed:y,buttonProps:eT(n,A,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}(e,t),{focusProps:s,isFocused:l,isFocusVisible:c}=na(e),{hoverProps:u,isHovered:d}=nc({...e,isDisabled:e.isDisabled||a}),p={isHovered:d,isPressed:(r.isPressed||i)&&!a,isFocused:l,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:null!=a&&a},f=eF({...e,values:p,defaultClassName:"react-aria-Button"}),m=eB(o.id),h=eB(),g=o["aria-labelledby"];a&&(g?g=`${g} ${h}`:o["aria-label"]&&(g=`${m} ${h}`));let b=(0,v.useRef)(a);(0,v.useEffect)(()=>{let e={"aria-labelledby":g||m};!b.current&&l&&a?eH(e,"assertive"):b.current&&l&&!a&&eH(e,"assertive"),b.current=a},[a,l,g,m]);let y=eZ(e,{global:!0});return delete y.onClick,v.createElement("button",{...eT(y,f,o,s,u),type:"submit"===o.type&&a?"button":o.type,id:m,ref:t,"aria-labelledby":g,slot:e.slot||void 0,"aria-disabled":a?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":d||void 0,"data-focused":l||void 0,"data-pending":a||void 0,"data-focus-visible":c||void 0},v.createElement(eL.Provider,{value:{id:h}},f.children))});(0,v.createContext)(null),(0,v.createContext)(null),(0,v.createContext)(null),(0,v.createContext)(null),(0,v.createContext)(null);let nm=(0,v.createContext)({}),nh=(0,v.createContext)({}),n_=(0,v.forwardRef)(function(e,t){[e,t]=eN(e,t,nh);let{elementType:n="span",...r}=e;return v.createElement(n,{className:"react-aria-Text",...r,ref:t})});var ng={};ng={"ar-AE":{dateRange:e=>`${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,dateSelected:e=>`${e.date} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,finishRangeSelectionPrompt:`\u{627}\u{646}\u{642}\u{631} \u{644}\u{625}\u{646}\u{647}\u{627}\u{621} \u{639}\u{645}\u{644}\u{64A}\u{629} \u{62A}\u{62D}\u{62F}\u{64A}\u{62F} \u{646}\u{637}\u{627}\u{642} \u{627}\u{644}\u{62A}\u{627}\u{631}\u{64A}\u{62E}`,maximumDate:`\u{622}\u{62E}\u{631} \u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62A}\u{627}\u{62D}`,minimumDate:`\u{623}\u{648}\u{644} \u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62A}\u{627}\u{62D}`,next:`\u{627}\u{644}\u{62A}\u{627}\u{644}\u{64A}`,previous:`\u{627}\u{644}\u{633}\u{627}\u{628}\u{642}`,selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.dateRange}`,startRangeSelectionPrompt:`\u{627}\u{646}\u{642}\u{631} \u{644}\u{628}\u{62F}\u{621} \u{639}\u{645}\u{644}\u{64A}\u{629} \u{62A}\u{62D}\u{62F}\u{64A}\u{62F} \u{646}\u{637}\u{627}\u{642} \u{627}\u{644}\u{62A}\u{627}\u{631}\u{64A}\u{62E}`,todayDate:e=>`\u{627}\u{644}\u{64A}\u{648}\u{645}\u{60C} ${e.date}`,todayDateSelected:e=>`\u{627}\u{644}\u{64A}\u{648}\u{645}\u{60C} ${e.date} \u{645}\u{62D}\u{62F}\u{62F}`},"bg-BG":{dateRange:e=>`${e.startDate} \u{434}\u{43E} ${e.endDate}`,dateSelected:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{435} ${e.date}`,finishRangeSelectionPrompt:`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435}, \u{437}\u{430} \u{434}\u{430} \u{434}\u{43E}\u{432}\u{44A}\u{440}\u{448}\u{438}\u{442}\u{435} \u{438}\u{437}\u{431}\u{43E}\u{440}\u{430} \u{43D}\u{430} \u{432}\u{440}\u{435}\u{43C}\u{435}\u{432}\u{438} \u{438}\u{43D}\u{442}\u{435}\u{440}\u{432}\u{430}\u{43B}`,maximumDate:`\u{41F}\u{43E}\u{441}\u{43B}\u{435}\u{434}\u{43D}\u{430} \u{43D}\u{430}\u{43B}\u{438}\u{447}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}`,minimumDate:`\u{41F}\u{44A}\u{440}\u{432}\u{430} \u{43D}\u{430}\u{43B}\u{438}\u{447}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}`,next:`\u{41D}\u{430}\u{43F}\u{440}\u{435}\u{434}`,previous:`\u{41D}\u{430}\u{437}\u{430}\u{434}`,selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435}, \u{437}\u{430} \u{434}\u{430} \u{43F}\u{440}\u{438}\u{441}\u{442}\u{44A}\u{43F}\u{438}\u{442}\u{435} \u{43A}\u{44A}\u{43C} \u{438}\u{437}\u{431}\u{43E}\u{440}\u{430} \u{43D}\u{430} \u{432}\u{440}\u{435}\u{43C}\u{435}\u{432}\u{438} \u{438}\u{43D}\u{442}\u{435}\u{440}\u{432}\u{430}\u{43B}`,todayDate:e=>`\u{414}\u{43D}\u{435}\u{441}, ${e.date}`,todayDateSelected:e=>`\u{414}\u{43D}\u{435}\u{441}, ${e.date} \u{441}\u{430} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`},"cs-CZ":{dateRange:e=>`${e.startDate} a\u{17E} ${e.endDate}`,dateSelected:e=>`Vybr\xe1no ${e.date}`,finishRangeSelectionPrompt:`Kliknut\xedm dokon\u{10D}\xedte v\xfdb\u{11B}r rozsahu dat`,maximumDate:`Posledn\xed dostupn\xe9 datum`,minimumDate:`Prvn\xed dostupn\xe9 datum`,next:`Dal\u{161}\xed`,previous:`P\u{159}edchoz\xed`,selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.dateRange}`,startRangeSelectionPrompt:`Kliknut\xedm zah\xe1j\xedte v\xfdb\u{11B}r rozsahu dat`,todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybr\xe1no ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:`Klik for at fuldf\xf8re valg af datoomr\xe5de`,maximumDate:"Sidste ledige dato",minimumDate:`F\xf8rste ledige dato`,next:`N\xe6ste`,previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:`Klik for at starte valg af datoomr\xe5de`,todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgew\xe4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:`Letztes verf\xfcgbares Datum`,minimumDate:`Erstes verf\xfcgbares Datum`,next:"Weiter",previous:`Zur\xfcck`,selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgew\xe4hlt`},"el-GR":{dateRange:e=>`${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,dateSelected:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} ${e.date}`,finishRangeSelectionPrompt:`\u{39A}\u{3AC}\u{3BD}\u{3C4}\u{3B5} \u{3BA}\u{3BB}\u{3B9}\u{3BA} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3BF}\u{3BB}\u{3BF}\u{3BA}\u{3BB}\u{3B7}\u{3C1}\u{3CE}\u{3C3}\u{3B5}\u{3C4}\u{3B5} \u{3C4}\u{3B7}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C5}\u{3C2} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3B9}\u{3CE}\u{3BD}`,maximumDate:`\u{3A4}\u{3B5}\u{3BB}\u{3B5}\u{3C5}\u{3C4}\u{3B1}\u{3AF}\u{3B1} \u{3B4}\u{3B9}\u{3B1}\u{3B8}\u{3AD}\u{3C3}\u{3B9}\u{3BC}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}`,minimumDate:`\u{3A0}\u{3C1}\u{3CE}\u{3C4}\u{3B7} \u{3B4}\u{3B9}\u{3B1}\u{3B8}\u{3AD}\u{3C3}\u{3B9}\u{3BC}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}`,next:`\u{395}\u{3C0}\u{3CC}\u{3BC}\u{3B5}\u{3BD}\u{3BF}`,previous:`\u{3A0}\u{3C1}\u{3BF}\u{3B7}\u{3B3}\u{3BF}\u{3CD}\u{3BC}\u{3B5}\u{3BD}\u{3BF}`,selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.dateRange}`,startRangeSelectionPrompt:`\u{39A}\u{3AC}\u{3BD}\u{3C4}\u{3B5} \u{3BA}\u{3BB}\u{3B9}\u{3BA} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3BE}\u{3B5}\u{3BA}\u{3B9}\u{3BD}\u{3AE}\u{3C3}\u{3B5}\u{3C4}\u{3B5} \u{3C4}\u{3B7}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C5}\u{3C2} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3B9}\u{3CE}\u{3BD}`,todayDate:e=>`\u{3A3}\u{3AE}\u{3BC}\u{3B5}\u{3C1}\u{3B1}, ${e.date}`,todayDateSelected:e=>`\u{3A3}\u{3AE}\u{3BC}\u{3B5}\u{3C1}\u{3B1}, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3C4}\u{3B7}\u{3BA}\u{3B5} ${e.date}`},"en-US":{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}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:`\xdaltima 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`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:`Kl\xf5psake kuup\xe4evavahemiku valimise l\xf5petamiseks`,maximumDate:`Viimane saadaolev kuup\xe4ev`,minimumDate:`Esimene saadaolev kuup\xe4ev`,next:`J\xe4rgmine`,previous:"Eelmine",selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:`Kl\xf5psake kuup\xe4evavahemiku valimiseks`,todayDate:e=>`T\xe4na, ${e.date}`,todayDateSelected:e=>`T\xe4na, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} \u{2013} ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:`Lopeta p\xe4iv\xe4m\xe4\xe4r\xe4alueen valinta napsauttamalla t\xe4t\xe4.`,maximumDate:`Viimeinen varattavissa oleva p\xe4iv\xe4m\xe4\xe4r\xe4`,minimumDate:`Ensimm\xe4inen varattavissa oleva p\xe4iv\xe4m\xe4\xe4r\xe4`,next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.dateRange}`,startRangeSelectionPrompt:`Aloita p\xe4iv\xe4m\xe4\xe4r\xe4alueen valinta napsauttamalla t\xe4t\xe4.`,todayDate:e=>`T\xe4n\xe4\xe4n, ${e.date}`,todayDateSelected:e=>`T\xe4n\xe4\xe4n, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} \xe0 ${e.endDate}`,dateSelected:e=>`${e.date} s\xe9lectionn\xe9`,finishRangeSelectionPrompt:`Cliquer pour finir de s\xe9lectionner la plage de dates`,maximumDate:`Derni\xe8re date disponible`,minimumDate:`Premi\xe8re date disponible`,next:"Suivant",previous:`Pr\xe9c\xe9dent`,selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.dateRange}`,startRangeSelectionPrompt:`Cliquer pour commencer \xe0 s\xe9lectionner la plage de dates`,todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd\u{2019}hui, ${e.date} s\xe9lectionn\xe9`},"he-IL":{dateRange:e=>`${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,dateSelected:e=>`${e.date} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,finishRangeSelectionPrompt:`\u{5D7}\u{5E5} \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5E1}\u{5D9}\u{5D9}\u{5DD} \u{5D0}\u{5EA} \u{5D1}\u{5D7}\u{5D9}\u{5E8}\u{5EA} \u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5D4}\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DB}\u{5D9}\u{5DD}`,maximumDate:`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E4}\u{5E0}\u{5D5}\u{5D9} \u{5D0}\u{5D7}\u{5E8}\u{5D5}\u{5DF}`,minimumDate:`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E4}\u{5E0}\u{5D5}\u{5D9} \u{5E8}\u{5D0}\u{5E9}\u{5D5}\u{5DF}`,next:`\u{5D4}\u{5D1}\u{5D0}`,previous:`\u{5D4}\u{5E7}\u{5D5}\u{5D3}\u{5DD}`,selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.dateRange}`,startRangeSelectionPrompt:`\u{5DC}\u{5D7}\u{5E5} \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5D4}\u{5EA}\u{5D7}\u{5D9}\u{5DC} \u{5D1}\u{5D1}\u{5D7}\u{5D9}\u{5E8}\u{5EA} \u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5D4}\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DB}\u{5D9}\u{5DD}`,todayDate:e=>`\u{5D4}\u{5D9}\u{5D5}\u{5DD}, ${e.date}`,todayDateSelected:e=>`\u{5D4}\u{5D9}\u{5D5}\u{5DD}, ${e.date} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:`Kliknite da dovr\u{161}ite raspon odabranih datuma`,maximumDate:`Posljednji raspolo\u{17E}ivi datum`,minimumDate:`Prvi raspolo\u{17E}ivi datum`,next:`Sljede\u{107}i`,previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:`Kliknite da zapo\u{10D}nete raspon odabranih datuma`,todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}\u{2013}${e.endDate}`,dateSelected:e=>`${e.date} kiv\xe1lasztva`,finishRangeSelectionPrompt:`Kattintson a d\xe1tumtartom\xe1ny kijel\xf6l\xe9s\xe9nek befejez\xe9s\xe9hez`,maximumDate:`Utols\xf3 el\xe9rhet\u{151} d\xe1tum`,minimumDate:`Az els\u{151} el\xe9rhet\u{151} d\xe1tum`,next:`K\xf6vetkez\u{151}`,previous:`El\u{151}z\u{151}`,selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.dateRange}`,startRangeSelectionPrompt:`Kattintson a d\xe1tumtartom\xe1ny kijel\xf6l\xe9s\xe9nek ind\xedt\xe1s\xe1hoz`,todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijel\xf6lve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:`Fai clic per completare la selezione dell\u{2019}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\u{2019}intervallo di date`,todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} \u{304B}\u{3089} ${e.endDate}`,dateSelected:e=>`${e.date} \u{3092}\u{9078}\u{629E}`,finishRangeSelectionPrompt:`\u{30AF}\u{30EA}\u{30C3}\u{30AF}\u{3057}\u{3066}\u{65E5}\u{4ED8}\u{7BC4}\u{56F2}\u{306E}\u{9078}\u{629E}\u{3092}\u{7D42}\u{4E86}`,maximumDate:`\u{6700}\u{7D42}\u{5229}\u{7528}\u{53EF}\u{80FD}\u{65E5}`,minimumDate:`\u{6700}\u{521D}\u{306E}\u{5229}\u{7528}\u{53EF}\u{80FD}\u{65E5}`,next:`\u{6B21}\u{3078}`,previous:`\u{524D}\u{3078}`,selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.dateRange}`,startRangeSelectionPrompt:`\u{30AF}\u{30EA}\u{30C3}\u{30AF}\u{3057}\u{3066}\u{65E5}\u{4ED8}\u{7BC4}\u{56F2}\u{306E}\u{9078}\u{629E}\u{3092}\u{958B}\u{59CB}`,todayDate:e=>`\u{672C}\u{65E5}\u{3001}${e.date}`,todayDateSelected:e=>`\u{672C}\u{65E5}\u{3001}${e.date} \u{3092}\u{9078}\u{629E}`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} \u{C120}\u{D0DD}\u{B428}`,finishRangeSelectionPrompt:`\u{B0A0}\u{C9DC} \u{BC94}\u{C704} \u{C120}\u{D0DD}\u{C744} \u{C644}\u{B8CC}\u{D558}\u{B824}\u{BA74} \u{D074}\u{B9AD}\u{D558}\u{C2ED}\u{C2DC}\u{C624}.`,maximumDate:`\u{B9C8}\u{C9C0}\u{B9C9}\u{C73C}\u{B85C} \u{C0AC}\u{C6A9} \u{AC00}\u{B2A5}\u{D55C} \u{C77C}\u{C790}`,minimumDate:`\u{CC98}\u{C74C}\u{C73C}\u{B85C} \u{C0AC}\u{C6A9} \u{AC00}\u{B2A5}\u{D55C} \u{C77C}\u{C790}`,next:`\u{B2E4}\u{C74C}`,previous:`\u{C774}\u{C804}`,selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.dateRange}`,startRangeSelectionPrompt:`\u{B0A0}\u{C9DC} \u{BC94}\u{C704} \u{C120}\u{D0DD}\u{C744} \u{C2DC}\u{C791}\u{D558}\u{B824}\u{BA74} \u{D074}\u{B9AD}\u{D558}\u{C2ED}\u{C2DC}\u{C624}.`,todayDate:e=>`\u{C624}\u{B298}, ${e.date}`,todayDateSelected:e=>`\u{C624}\u{B298}, ${e.date} \u{C120}\u{D0DD}\u{B428}`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:`Spustel\u{117}kite, kad baigtum\u{117}te pasirinkti dat\u{173} interval\u{105}`,maximumDate:`Paskutin\u{117} galima data`,minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:`Spustel\u{117}kite, kad prad\u{117}tum\u{117}te pasirinkti dat\u{173} interval\u{105}`,todayDate:e=>`\u{160}iandien, ${e.date}`,todayDateSelected:e=>`\u{160}iandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} l\u{12B}dz ${e.endDate}`,dateSelected:e=>`Atlas\u{12B}ts: ${e.date}`,finishRangeSelectionPrompt:`Noklik\u{161}\u{137}iniet, lai pabeigtu datumu diapazona atlasi`,maximumDate:`P\u{113}d\u{113}jais pieejamais datums`,minimumDate:"Pirmais pieejamais datums",next:`T\u{101}l\u{101}k`,previous:`Atpaka\u{13C}`,selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:`Noklik\u{161}\u{137}iniet, lai s\u{101}ktu datumu diapazona atlasi`,todayDate:e=>`\u{160}odien, ${e.date}`,todayDateSelected:e=>`Atlas\u{12B}ta \u{161}odiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:`Klikk for \xe5 fullf\xf8re valg av datoomr\xe5de`,maximumDate:"Siste tilgjengelige dato",minimumDate:`F\xf8rste tilgjengelige dato`,next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.dateRange}`,startRangeSelectionPrompt:`Klikk for \xe5 starte valg av datoomr\xe5de`,todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{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`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:`Kliknij, aby zako\u{144}czy\u{107} wyb\xf3r zakresu dat`,maximumDate:`Ostatnia dost\u{119}pna data`,minimumDate:`Pierwsza dost\u{119}pna data`,next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:`Kliknij, aby rozpocz\u{105}\u{107} wyb\xf3r zakresu dat`,todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:`Clique para concluir a sele\xe7\xe3o do intervalo de datas`,maximumDate:`\xdaltima data dispon\xedvel`,minimumDate:`Primeira data dispon\xedvel`,next:`Pr\xf3ximo`,previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:`Clique para iniciar a sele\xe7\xe3o do intervalo de datas`,todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:`\xdaltima data dispon\xedvel`,minimumDate:`Primeira data dispon\xedvel`,next:`Pr\xf3ximo`,previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:`Clique para come\xe7ar a selecionar o intervalo de datas`,todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,dateSelected:e=>`${e.date} selectat\u{103}`,finishRangeSelectionPrompt:`Ap\u{103}sa\u{163}i pentru a finaliza selec\u{163}ia razei pentru dat\u{103}`,maximumDate:`Ultima dat\u{103} disponibil\u{103}`,minimumDate:`Prima dat\u{103} disponibil\u{103}`,next:`Urm\u{103}torul`,previous:`\xcenainte`,selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:`Ap\u{103}sa\u{163}i pentru a \xeencepe selec\u{163}ia razei pentru dat\u{103}`,todayDate:e=>`Ast\u{103}zi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectat\u{103}`},"ru-RU":{dateRange:e=>`\u{421} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,dateSelected:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`,finishRangeSelectionPrompt:`\u{429}\u{435}\u{43B}\u{43A}\u{43D}\u{438}\u{442}\u{435}, \u{447}\u{442}\u{43E}\u{431}\u{44B} \u{437}\u{430}\u{432}\u{435}\u{440}\u{448}\u{438}\u{442}\u{44C} \u{432}\u{44B}\u{431}\u{43E}\u{440} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}\u{430} \u{434}\u{430}\u{442}`,maximumDate:`\u{41F}\u{43E}\u{441}\u{43B}\u{435}\u{434}\u{43D}\u{44F}\u{44F} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}`,minimumDate:`\u{41F}\u{435}\u{440}\u{432}\u{430}\u{44F} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}`,next:`\u{414}\u{430}\u{43B}\u{435}\u{435}`,previous:`\u{41D}\u{430}\u{437}\u{430}\u{434}`,selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:`\u{429}\u{435}\u{43B}\u{43A}\u{43D}\u{438}\u{442}\u{435}, \u{447}\u{442}\u{43E}\u{431}\u{44B} \u{43D}\u{430}\u{447}\u{430}\u{442}\u{44C} \u{432}\u{44B}\u{431}\u{43E}\u{440} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}\u{430} \u{434}\u{430}\u{442}`,todayDate:e=>`\u{421}\u{435}\u{433}\u{43E}\u{434}\u{43D}\u{44F}, ${e.date}`,todayDateSelected:e=>`\u{421}\u{435}\u{433}\u{43E}\u{434}\u{43D}\u{44F}, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybrat\xfd d\xe1tum ${e.date}`,finishRangeSelectionPrompt:`Kliknut\xedm dokon\u{10D}\xedte v\xfdber rozsahu d\xe1tumov`,maximumDate:`Posledn\xfd dostupn\xfd d\xe1tum`,minimumDate:`Prv\xfd dostupn\xfd d\xe1tum`,next:`Nasleduj\xface`,previous:`Predch\xe1dzaj\xface`,selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: ${e.dateRange}`,startRangeSelectionPrompt:`Kliknut\xedm spust\xedte v\xfdber rozsahu d\xe1tumov`,todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybrat\xfd dne\u{161}n\xfd d\xe1tum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:`Kliknite za dokon\u{10D}anje izbire datumskega obsega`,maximumDate:`Zadnji razpolo\u{17E}ljivi datum`,minimumDate:`Prvi razpolo\u{17E}ljivi datum`,next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.dateRange}`,startRangeSelectionPrompt:`Kliknite za za\u{10D}etek izbire datumskega obsega`,todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:`Kliknite da dovr\u{161}ite opseg izabranih datuma`,maximumDate:`Zadnji raspolo\u{17E}ivi datum`,minimumDate:`Prvi raspolo\u{17E}ivi datum`,next:`Slede\u{107}i`,previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:`Kliknite da zapo\u{10D}nete opseg izabranih datuma`,todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:`Klicka f\xf6r att avsluta val av datumintervall`,maximumDate:`Sista tillg\xe4ngliga datum`,minimumDate:`F\xf6rsta tillg\xe4ngliga datum`,next:`N\xe4sta`,previous:`F\xf6reg\xe5ende`,selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:`Klicka f\xf6r att v\xe4lja datumintervall`,todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} se\xe7ildi`,finishRangeSelectionPrompt:`Tarih aral\u{131}\u{11F}\u{131} se\xe7imini tamamlamak i\xe7in t\u{131}klay\u{131}n`,maximumDate:`Son m\xfcsait tarih`,minimumDate:`\u{130}lk m\xfcsait tarih`,next:"Sonraki",previous:`\xd6nceki`,selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.dateRange}`,startRangeSelectionPrompt:`Tarih aral\u{131}\u{11F}\u{131} se\xe7imini ba\u{15F}latmak i\xe7in t\u{131}klay\u{131}n`,todayDate:e=>`Bug\xfcn, ${e.date}`,todayDateSelected:e=>`Bug\xfcn, ${e.date} se\xe7ildi`},"uk-UA":{dateRange:e=>`${e.startDate} \u{2014} ${e.endDate}`,dateSelected:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`,finishRangeSelectionPrompt:`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C}, \u{449}\u{43E}\u{431} \u{437}\u{430}\u{432}\u{435}\u{440}\u{448}\u{438}\u{442}\u{438} \u{432}\u{438}\u{431}\u{456}\u{440} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}\u{443} \u{434}\u{430}\u{442}`,maximumDate:`\u{41E}\u{441}\u{442}\u{430}\u{43D}\u{43D}\u{44F} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}`,minimumDate:`\u{41F}\u{435}\u{440}\u{448}\u{430} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}`,next:`\u{41D}\u{430}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{438}\u{439}`,previous:`\u{41F}\u{43E}\u{43F}\u{435}\u{440}\u{435}\u{434}\u{43D}\u{456}\u{439}`,selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C}, \u{449}\u{43E}\u{431} \u{43F}\u{43E}\u{447}\u{430}\u{442}\u{438} \u{432}\u{438}\u{431}\u{456}\u{440} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}\u{443} \u{434}\u{430}\u{442}`,todayDate:e=>`\u{421}\u{44C}\u{43E}\u{433}\u{43E}\u{434}\u{43D}\u{456}, ${e.date}`,todayDateSelected:e=>`\u{421}\u{44C}\u{43E}\u{433}\u{43E}\u{434}\u{43D}\u{456}, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} \u{81F3} ${e.endDate}`,dateSelected:e=>`\u{5DF2}\u{9009}\u{62E9} ${e.date}`,finishRangeSelectionPrompt:`\u{5355}\u{51FB}\u{4EE5}\u{5B8C}\u{6210}\u{9009}\u{62E9}\u{65E5}\u{671F}\u{8303}\u{56F4}`,maximumDate:`\u{6700}\u{540E}\u{4E00}\u{4E2A}\u{53EF}\u{7528}\u{65E5}\u{671F}`,minimumDate:`\u{7B2C}\u{4E00}\u{4E2A}\u{53EF}\u{7528}\u{65E5}\u{671F}`,next:`\u{4E0B}\u{4E00}\u{9875}`,previous:`\u{4E0A}\u{4E00}\u{9875}`,selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.dateRange}`,startRangeSelectionPrompt:`\u{5355}\u{51FB}\u{4EE5}\u{5F00}\u{59CB}\u{9009}\u{62E9}\u{65E5}\u{671F}\u{8303}\u{56F4}`,todayDate:e=>`\u{4ECA}\u{5929}\u{FF0C}\u{5373} ${e.date}`,todayDateSelected:e=>`\u{5DF2}\u{9009}\u{62E9}\u{4ECA}\u{5929}\u{FF0C}\u{5373} ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} \u{81F3} ${e.endDate}`,dateSelected:e=>`\u{5DF2}\u{9078}\u{53D6} ${e.date}`,finishRangeSelectionPrompt:`\u{6309}\u{4E00}\u{4E0B}\u{4EE5}\u{5B8C}\u{6210}\u{9078}\u{53D6}\u{65E5}\u{671F}\u{7BC4}\u{570D}`,maximumDate:`\u{6700}\u{5F8C}\u{4E00}\u{500B}\u{53EF}\u{7528}\u{65E5}\u{671F}`,minimumDate:`\u{7B2C}\u{4E00}\u{500B}\u{53EF}\u{7528}\u{65E5}\u{671F}`,next:`\u{4E0B}\u{4E00}\u{9801}`,previous:`\u{4E0A}\u{4E00}\u{9801}`,selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.dateRange}`,startRangeSelectionPrompt:`\u{6309}\u{4E00}\u{4E0B}\u{4EE5}\u{958B}\u{59CB}\u{9078}\u{53D6}\u{65E5}\u{671F}\u{7BC4}\u{570D}`,todayDate:e=>`\u{4ECA}\u{5929}\u{FF0C}${e.date}`,todayDateSelected:e=>`\u{5DF2}\u{9078}\u{53D6}\u{4ECA}\u{5929}\u{FF0C}${e.date}`}};let nb=Symbol.for("react-aria.i18n.locale"),ny=Symbol.for("react-aria.i18n.strings");class nv{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){var r;if(t[e])return t[e];let a=(r=e,Intl.Locale?new Intl.Locale(r).language:r.split("-")[0]);if(t[a])return t[a];for(let e in t)if(e.startsWith(a+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[nb];if(void 0===s){let e=window[ny];if(!e)return null;for(let n in s={},e)s[n]=new nv({[t]:e[n]},t)}let n=null==s?void 0:s[e];if(!n)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}}let nA=new Map,n$=new Map;class nk{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let a=this.locale+":"+n,o=nA.get(a);return o||(o=new Intl.PluralRules(this.locale,{type:n}),nA.set(a,o)),"function"==typeof(r=t[o.select(e)]||t.other)?r():r}number(e){let t=n$.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),n$.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}let nx=new WeakMap;function nC(e,t){let n;return t&&nv.getGlobalDictionaryForPackage(t)||((n=nx.get(e))||(n=new nv(e),nx.set(e,n)),n)}function nw(e,t){let{locale:n}=eA(),r=nC(e,t);return(0,v.useMemo)(()=>new nk(n,r),[n,r])}let nE=new Map;class nD{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==nP&&(nP="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),nP&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=nB(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(e=>"hour"===e.type).value,10),a=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(e=>"hour"===e.type).value,10);if(0===r&&23===a)return"h23";if(24===r&&23===a)return"h24";if(0===r&&11===a)return"h11";if(12===r&&11===a)return"h12";throw Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=nB(e,t),this.options=t}}let nS={true:{ja:"h11"},false:{}};function nB(e,t={}){if("boolean"==typeof t.hour12&&(null==nz&&(nz="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),nz)){let n=nS[String((t={...t}).hour12)][e.split("-")[0]],r=t.hour12?"h12":"h23";t.hourCycle=null!=n?n:r,delete t.hour12}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(nE.has(n))return nE.get(n);let r=new Intl.DateTimeFormat(e,t);return nE.set(n,r),r}let nz=null,nP=null;function nT(e,t){let n=(0,v.useRef)(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function nM(e){e=nT(null!=e?e:{},nO);let{locale:t}=eA();return(0,v.useMemo)(()=>new nD(t,e),[t,e])}function nO(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}function nF(e){return e&&e.__esModule?e.default:e}let nI=new WeakMap;function nN(e){return(null==e?void 0:e.calendar.identifier)==="gregory"&&"BC"===e.era?"short":void 0}function nj(e,t,n,r){let a=nw(nF(ng),"@react-aria/calendar"),o=nN(e)||nN(t),i=nM({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),s=nM({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return(0,v.useMemo)(()=>{if((0,X.ro)(e,(0,X.wH)(e))){let o=e,s=t;if(e.calendar.getFormattableMonth&&(o=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(s=t.calendar.getFormattableMonth(t)),(0,X.ro)(t,(0,X.p9)(e)))return i.format(o.toDate(n));if((0,X.ro)(t,(0,X.p9)(t)))return r?nR(i,a,o,s,n):i.formatRange(o.toDate(n),s.toDate(n))}return r?nR(s,a,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,i,s,a,n,r])}function nR(e,t,n,r,a){let o=e.formatRangeToParts(n.toDate(a),r.toDate(a)),i=-1;for(let e=0;e<o.length;e++){let t=o[e];if("shared"===t.source&&"literal"===t.type)i=e;else if("endRange"===t.source)break}let s="",l="";for(let e=0;e<o.length;e++)e<i?s+=o[e].value:e>i&&(l+=o[e].value);return t.format("dateRange",{startDate:s,endDate:l})}function nL(e,t){let n=(0,v.useRef)(!0),r=(0,v.useRef)(null);(0,v.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,v.useEffect)(()=>{let a=r.current;n.current?n.current=!1:(!a||t.some((e,t)=>!Object.is(e,a[t])))&&e(),r.current=t},t)}function nV(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=eB(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),r||a||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function nH(e,t){var n,r;let a,o,i,s,l,c=nw((n=ng)&&n.__esModule?n.default:n,"@react-aria/calendar"),u=eZ(e),d=nj(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),p=nj(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);nL(()=>{t.isFocused||eH(p)},[p]);let f=(i=nw(nF(ng),"@react-aria/calendar"),"highlightedRange"in t?{start:a,end:o}=t.highlightedRange||{}:a=o=null!=(r=t.value)?r:void 0,s=nM({weekday:"long",month:"long",year:"numeric",day:"numeric",era:nN(a)||nN(o),timeZone:t.timeZone}),l="anchorDate"in t?t.anchorDate:null,(0,v.useMemo)(()=>{if(!l&&a&&o)if((0,X.ro)(a,o)){let e=s.format(a.toDate(t.timeZone));return i.format("selectedDateDescription",{date:e})}else{let e=nR(s,i,a,o,t.timeZone);return i.format("selectedRangeDescription",{dateRange:e})}return""},[a,o,l,t.timeZone,i,s]));nL(()=>{f&&eH(f,"polite",4e3)},[f]);let m=ez([!!e.errorMessage,e.isInvalid,e.validationState]);nI.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:m,selectedDateDescription:f});let[h,g]=(0,v.useState)(!1),b=e.isDisabled||t.isNextVisibleRangeInvalid();b&&h&&(g(!1),t.setFocused(!0));let[y,A]=(0,v.useState)(!1),$=e.isDisabled||t.isPreviousVisibleRangeInvalid();return $&&y&&(A(!1),t.setFocused(!0)),{calendarProps:eT(u,nV({id:e.id,"aria-label":[e["aria-label"],p].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":c.format("next"),isDisabled:b,onFocusChange:g},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":c.format("previous"),isDisabled:$,onFocusChange:A},errorMessageProps:{id:m},title:d}}let nG={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function nU(e={}){let{style:t,isFocusable:n}=e,[r,a]=(0,v.useState)(!1),{focusWithinProps:o}=nr({isDisabled:!n,onFocusWithinChange:e=>a(e)}),i=(0,v.useMemo)(()=>r?t:t?{...nG,...t}:nG,[r]);return{visuallyHiddenProps:{...o,style:i}}}function nq(e){let{children:t,elementType:n="div",isFocusable:r,style:a,...o}=e,{visuallyHiddenProps:i}=nU(e);return v.createElement(n,eT(o,i),t)}function nW(e,t,n,r){let a=eE(n),o=null==n;(0,v.useEffect)(()=>{if(o||!e.current)return;let n=e.current;return n.addEventListener(t,a,r),()=>{n.removeEventListener(t,a,r)}},[e,t,r,o,a])}let nK=0,nY=new Map;function nJ(e){let[t,n]=(0,v.useState)();return eC(()=>{if(!e)return;let t=nY.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${nK++}`;n(r);let a=document.createElement("div");a.id=r,a.style.display="none",a.textContent=e,document.body.appendChild(a),t={refCount:0,element:a},nY.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),nY.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function nZ(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function nX(e,t,n){let r="left"===n?"offsetLeft":"offsetTop",a=0;for(;t.offsetParent&&(a+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){a-=e[r];break}t=t.offsetParent}return a}function nQ(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(i).overflow)for(let t of function(e,t){let n=[];for(;e&&e!==document.documentElement;)nZ(e,void 0)&&n.push(e),e=e.parentElement;return n}(e))!function(e,t){let n=nX(e,t,"left"),r=nX(e,t,"top"),a=t.offsetWidth,o=t.offsetHeight,i=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c,scrollPaddingTop:u,scrollPaddingRight:d,scrollPaddingBottom:p,scrollPaddingLeft:f}=getComputedStyle(e),m=i+parseInt(c,10),h=s+parseInt(l,10),g=m+e.clientWidth,b=h+e.clientHeight,y=parseInt(u,10)||0,v=parseInt(p,10)||0,A=parseInt(d,10)||0,$=parseInt(f,10)||0;n<=i+$?i=n-parseInt(c,10)-$:n+a>g-A&&(i+=n+a-g+A),r<=h+y?s=r-parseInt(l,10)-y:r+o>b-v&&(s+=r+o-b+v),e.scrollLeft=i,e.scrollTop=s}(t,e);else{var n,r,a,o;let{left:i,top:s}=e.getBoundingClientRect();null==e||null==(n=e.scrollIntoView)||n.call(e,{block:"nearest"});let{left:l,top:c}=e.getBoundingClientRect();(Math.abs(i-l)>1||Math.abs(s-c)>1)&&(null==t||null==(a=t.containingElement)||null==(r=a.scrollIntoView)||r.call(a,{block:"center",inline:"center"}),null==(o=e.scrollIntoView)||o.call(e,{block:"nearest"}))}}}function n0(e,t){let n=e;for(nZ(n,t)&&(n=n.parentElement);n&&!nZ(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function n1(e,t,n){return null!=t&&0>e.compare(t)||null!=n&&e.compare(n)>0}function n2(e,t,n,r,a){let o={};for(let e in t)o[e]=Math.floor(t[e]/2),o[e]>0&&t[e]%2==0&&o[e]--;let i=n3(e,t,n).subtract(o);return n5(e,i,t,n,r,a)}function n3(e,t,n,r,a){let o=e;return t.years?o=(0,X.D)(e):t.months?o=(0,X.wH)(e):t.weeks&&(o=(0,X.kq)(e,n)),n5(e,o,t,n,r,a)}function n4(e,t,n,r,a){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let i=n3(e,t,n).subtract(o);return n5(e,i,t,n,r,a)}function n5(e,t,n,r,a,o){if(a&&e.compare(a)>=0){let e=(0,X.ZI)(t,n3((0,Z.gw)(a),n,r));e&&(t=e)}if(o&&0>=e.compare(o)){let e=(0,X.Py)(t,n4((0,Z.gw)(o),n,r));e&&(t=e)}return t}function n6(e,t,n){if(t){let n=(0,X.ZI)(e,(0,Z.gw)(t));n&&(e=n)}if(n){let t=(0,X.Py)(e,(0,Z.gw)(n));t&&(e=t)}return e}function n7(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}var n8=n(12748);function n9(e,t,n){let[r,a]=(0,v.useState)(e||t),o=(0,v.useRef)(void 0!==e),i=void 0!==e;(0,v.useEffect)(()=>{o.current,o.current=i},[i]);let s=i?e:r,l=(0,v.useCallback)((e,...t)=>{let r=(e,...t)=>{n&&!Object.is(s,e)&&n(e,...t),i||(s=e)};"function"==typeof e?a((n,...a)=>{let o=e(i?s:n,...a);return(r(o,...t),i)?n:o}):(i||a(e),r(e,...t))},[i,s,n]);return[s,l]}function re(e){var t,n,r;let a=(0,v.useMemo)(()=>new nD(e.locale),[e.locale]),o=(0,v.useMemo)(()=>a.resolvedOptions(),[a]),{locale:i,createCalendar:s,visibleDuration:l={months:1},minValue:c,maxValue:u,selectionAlignment:d,isDateUnavailable:p,pageBehavior:f="visible",firstDayOfWeek:m}=e,h=(0,v.useMemo)(()=>s(o.calendar),[s,o.calendar]),[g,b]=n9(e.value,null!=(t=e.defaultValue)?t:null,e.onChange),y=(0,v.useMemo)(()=>g?(0,Z.yP)((0,Z.gw)(g),h):null,[g,h]),A=(0,v.useMemo)(()=>g&&"timeZone"in g?g.timeZone:o.timeZone,[g,o.timeZone]),[$,k]=n9((0,v.useMemo)(()=>e.focusedValue?n6((0,Z.yP)((0,Z.gw)(e.focusedValue),h),c,u):void 0,[e.focusedValue,h,c,u]),(0,v.useMemo)(()=>n6(e.defaultFocusedValue?(0,Z.yP)((0,Z.gw)(e.defaultFocusedValue),h):y||(0,Z.yP)((0,X.Ec)(A),h),c,u),[e.defaultFocusedValue,y,A,h,c,u]),e.onFocusChange),[x,C]=(0,v.useState)(()=>{switch(d){case"start":return n3($,l,i,c,u);case"end":return n4($,l,i,c,u);default:return n2($,l,i,c,u)}}),[w,E]=(0,v.useState)(e.autoFocus||!1),D=(0,v.useMemo)(()=>{let e={...l};return e.days?e.days--:e.days=-1,x.add(e)},[x,l]),[S,B]=(0,v.useState)(h);if(!(0,X.Jg)(h,S)){let e=(0,Z.yP)($,h);C(n2(e,l,i,c,u)),k(e),B(h)}function z(e){k(e=n6(e,c,u))}function P(t){if(!e.isDisabled&&!e.isReadOnly){let e=t;if(null===e)return void b(null);(e=n7(e=n6(e,c,u),x,p))&&(e=(0,Z.yP)(e,(null==g?void 0:g.calendar)||new(0,n8.FG)),g&&"hour"in g?b(g.set(e)):b(e))}}n1($,c,u)?k(n6($,c,u)):0>$.compare(x)?C(n4($,l,i,c,u)):$.compare(D)>0&&C(n3($,l,i,c,u));let T=(0,v.useMemo)(()=>!!y&&(!!(p&&p(y))||n1(y,c,u)),[y,p,c,u]),M=e.isInvalid||"invalid"===e.validationState||T,O=(0,v.useMemo)(()=>"visible"===f?l:rt(l),[f,l]);return{isDisabled:null!=(n=e.isDisabled)&&n,isReadOnly:null!=(r=e.isReadOnly)&&r,value:y,setValue:P,visibleRange:{start:x,end:D},minValue:c,maxValue:u,focusedDate:$,timeZone:A,validationState:M?"invalid":null,isValueInvalid:M,setFocusedDate(e){z(e),E(!0)},focusNextDay(){z($.add({days:1}))},focusPreviousDay(){z($.subtract({days:1}))},focusNextRow(){l.days?this.focusNextPage():(l.weeks||l.months||l.years)&&z($.add({weeks:1}))},focusPreviousRow(){l.days?this.focusPreviousPage():(l.weeks||l.months||l.years)&&z($.subtract({weeks:1}))},focusNextPage(){let e=x.add(O);k(n6($.add(O),c,u)),C(n3(n5($,e,O,i,c,u),O,i))},focusPreviousPage(){let e=x.subtract(O);k(n6($.subtract(O),c,u)),C(n3(n5($,e,O,i,c,u),O,i))},focusSectionStart(){l.days?z(x):l.weeks?z((0,X.kq)($,i)):(l.months||l.years)&&z((0,X.wH)($))},focusSectionEnd(){l.days?z(D):l.weeks?z((0,X.$I)($,i)):(l.months||l.years)&&z((0,X.p9)($))},focusNextSection(e){e||l.days?l.days?this.focusNextPage():l.weeks?z($.add({months:1})):(l.months||l.years)&&z($.add({years:1})):z($.add(rt(l)))},focusPreviousSection(e){e||l.days?l.days?this.focusPreviousPage():l.weeks?z($.subtract({months:1})):(l.months||l.years)&&z($.subtract({years:1})):z($.subtract(rt(l)))},selectFocusedDate(){p&&p($)||P($)},selectDate(e){P(e)},isFocused:w,setFocused:E,isInvalid:e=>n1(e,c,u),isSelected(e){return null!=y&&(0,X.ro)(e,y)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>w&&$&&(0,X.ro)(e,$),isCellDisabled(t){return e.isDisabled||0>t.compare(x)||t.compare(D)>0||this.isInvalid(t)},isCellUnavailable:t=>!!e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=x.subtract({days:1});return(0,X.ro)(e,x)||this.isInvalid(e)},isNextVisibleRangeInvalid(){let e=D.add({days:1});return(0,X.ro)(e,D)||this.isInvalid(e)},getDatesInWeek(e,t=x){let n=t.add({weeks:e}),r=[];n=(0,X.kq)(n,i,m);let a=(0,X.SJ)(n,i,m);for(let e=0;e<a;e++)r.push(null);for(;r.length<7;){r.push(n);let e=n.add({days:1});if((0,X.ro)(n,e))break;n=e}for(;r.length<7;)r.push(null);return r}}}function rt(e){let t={...e};for(let n in e)t[n]=1;return t}function rn(e,t){return e&&t?(0>t.compare(e)&&([e,t]=[t,e]),{start:(0,Z.gw)(e),end:(0,Z.gw)(t)}):null}function rr(e,t){return(e=(0,Z.yP)(e,(null==t?void 0:t.calendar)||new(0,n8.FG)),t&&"hour"in t)?t.set(e):e}function ra(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:0>=r.compare(t.visibleRange.end))&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}let ro=(0,v.createContext)(null),ri=(0,v.createContext)(null),rs=(0,v.createContext)(null),rl=(0,v.createContext)(null),rc=(0,v.forwardRef)(function(e,t){[e,t]=eN(e,t,ro);let{locale:n}=eA(),r=re({...e,locale:n,createCalendar:e.createCalendar||J.d}),{calendarProps:a,prevButtonProps:o,nextButtonProps:i,errorMessageProps:s,title:l}=nH(e,r),c=eF({...e,values:{state:r,isDisabled:e.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-Calendar"}),u=eZ(e,{global:!0});return v.createElement("div",{...eT(u,c,a),ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},v.createElement(eO,{values:[[np,{slots:{previous:o,next:i}}],[nm,{"aria-hidden":!0,level:2,children:l}],[rs,r],[ro,e],[nh,{slots:{errorMessage:s}}]]},v.createElement(nq,null,v.createElement("h2",null,a["aria-label"])),c.children,v.createElement(nq,null,v.createElement("button",{"aria-label":i["aria-label"],disabled:i.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),ru=(0,v.forwardRef)(function(e,t){var n,r;let a,o,i;[e,t]=eN(e,t,ri);let{locale:s}=eA(),l=function(e){let{value:t,defaultValue:n,onChange:r,createCalendar:a,locale:o,visibleDuration:i={months:1},minValue:s,maxValue:l,...c}=e,[u,d]=n9(t,n||null,r),[p,f]=(0,v.useState)(null),m="center";if(u&&u.start&&u.end){let e=n2((0,Z.gw)(u.start),i,o,s,l).add(i).subtract({days:1});u.end.compare(e)>0&&(m="start")}let h=(0,v.useRef)(null),[g,b]=(0,v.useState)(null),y=(0,v.useMemo)(()=>(0,X.ZI)(s,null==g?void 0:g.start),[s,g]),A=(0,v.useMemo)(()=>(0,X.Py)(l,null==g?void 0:g.end),[l,g]),$=re({...c,value:u&&u.start,createCalendar:a,locale:o,visibleDuration:i,minValue:y,maxValue:A,selectionAlignment:m}),k=t=>{t&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(h.current={start:ra(t,$,-1),end:ra(t,$,1)},b(h.current)):(h.current=null,b(null))},[x,C]=(0,v.useState)($.visibleRange);(0,X.NV)($.visibleRange.start,x.start)&&(0,X.NV)($.visibleRange.end,x.end)||(k(p),C($.visibleRange));let w=e=>{e?(f(e),k(e)):(f(null),k(null))},E=p?rn(p,$.focusedDate):u&&rn(u.start,u.end),D=t=>{if(e.isReadOnly)return;let n=n7(n6(t,y,A),$.visibleRange.start,e.isDateUnavailable);if(n)if(p){let e=rn(p,n);e&&d({start:rr(e.start,null==u?void 0:u.start),end:rr(e.end,null==u?void 0:u.end)}),w(null)}else w(n)},[S,B]=(0,v.useState)(!1),{isDateUnavailable:z}=e,P=(0,v.useMemo)(()=>!!u&&!p&&(!!(z&&(z(u.start)||z(u.end)))||n1(u.start,s,l)||n1(u.end,s,l)),[z,u,p,s,l]),T=e.isInvalid||"invalid"===e.validationState||P;return{...$,value:u,setValue:d,anchorDate:p,setAnchorDate:w,highlightedRange:E,validationState:T?"invalid":null,isValueInvalid:T,selectFocusedDate(){D($.focusedDate)},selectDate:D,highlightDate(e){p&&$.setFocusedDate(e)},isSelected:e=>!!(E&&e.compare(E.start)>=0&&0>=e.compare(E.end)&&!$.isCellDisabled(e)&&!$.isCellUnavailable(e)),isInvalid(e){var t,n;return $.isInvalid(e)||n1(e,null==(t=h.current)?void 0:t.start,null==(n=h.current)?void 0:n.end)},isDragging:S,setDragging:B}}({...e,locale:s,createCalendar:e.createCalendar||J.d}),{calendarProps:c,prevButtonProps:u,nextButtonProps:d,errorMessageProps:p,title:f}=(n=e,r=t,a=nH(n,l),o=(0,v.useRef)(!1),nW(i=(0,v.useRef)("undefined"!=typeof window?window:null),"pointerdown",e=>{o.current=0===e.width&&0===e.height}),nW(i,"pointerup",e=>{if(o.current){o.current=!1;return}if(l.setDragging(!1),!l.anchorDate)return;let t=e.target;r.current&&r.current.contains(document.activeElement)&&(!r.current.contains(t)||!t.closest('button, [role="button"]'))&&l.selectFocusedDate()}),a.calendarProps.onBlur=e=>{r.current&&(e.relatedTarget&&r.current.contains(e.relatedTarget)||!l.anchorDate||l.selectFocusedDate())},nW(r,"touchmove",e=>{l.isDragging&&e.preventDefault()},{passive:!1,capture:!0}),a),m=eF({...e,values:{state:l,isDisabled:e.isDisabled||!1,isInvalid:l.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),h=eZ(e,{global:!0});return v.createElement("div",{...eT(m,h,c),ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":l.isValueInvalid||void 0},v.createElement(eO,{values:[[np,{slots:{previous:u,next:d}}],[nm,{"aria-hidden":!0,level:2,children:f}],[rl,l],[ri,e],[nh,{slots:{errorMessage:p}}]]},v.createElement(nq,null,v.createElement("h2",null,c["aria-label"])),m.children,v.createElement(nq,null,v.createElement("button",{"aria-label":d["aria-label"],disabled:d.isDisabled,onClick:()=>l.focusNextPage(),tabIndex:-1}))))}),rd=(0,v.createContext)(null),rp=(0,v.forwardRef)(function(e,t){var n,r;let a=(0,v.useContext)(rs),o=(0,v.useContext)(rl),i=eI(ro),s=eI(ri),l=null!=a?a:o,c=l.visibleRange.start;e.offset&&(c=c.add(e.offset));let u=null!=(n=null==i?void 0:i.firstDayOfWeek)?n:null==s?void 0:s.firstDayOfWeek,{gridProps:d,headerProps:p,weekDays:f,weeksInMonth:m}=function(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:a}=e,{direction:o}=eA(),i=nj(n,r,t.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=nI.get(t),c=nV({"aria-label":[s,i].filter(Boolean).join(", "),"aria-labelledby":l}),u=nM({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=eA(),p=(0,v.useMemo)(()=>{let e=(0,X.kq)((0,X.Ec)(t.timeZone),d,a);return[...Array(7).keys()].map(n=>{let r=e.add({days:n}).toDate(t.timeZone);return u.format(r)})},[d,t.timeZone,u,a]),f=(0,X.RZ)(n,d,a);return{gridProps:eT(c,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),t.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),t.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),t.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===o?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===o?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(e.preventDefault(),t.setAnchorDate(null))}},onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:p,weeksInMonth:f}}({startDate:c,endDate:(0,X.p9)(c),weekdayStyle:e.weekdayStyle,firstDayOfWeek:u},l),h=eZ(e,{global:!0});return v.createElement(rd.Provider,{value:{headerProps:p,weekDays:f,startDate:c,weeksInMonth:m}},v.createElement("table",{...eT(h,d),ref:t,style:e.style,cellPadding:0,className:null!=(r=e.className)?r:"react-aria-CalendarGrid"},"function"!=typeof e.children?e.children:v.createElement(v.Fragment,null,v.createElement(rf,null,e=>v.createElement(rm,null,e)),v.createElement(rh,null,e.children))))}),rf=(0,v.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e,{headerProps:o,weekDays:i}=(0,v.useContext)(rd),s=eZ(e,{global:!0});return v.createElement("thead",{...eT(s,o),ref:t,style:r,className:a||"react-aria-CalendarGridHeader"},v.createElement("tr",null,i.map((e,t)=>v.cloneElement(n(e),{key:t}))))}),rm=(0,v.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e,o=eZ(e,{global:!0});return v.createElement("th",{...o,ref:t,style:r,className:a||"react-aria-CalendarHeaderCell"},n)}),rh=(0,v.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e,o=(0,v.useContext)(rs),i=(0,v.useContext)(rl),s=null!=o?o:i,{startDate:l,weeksInMonth:c}=(0,v.useContext)(rd),u=eZ(e,{global:!0});return v.createElement("tbody",{...u,ref:t,style:r,className:a||"react-aria-CalendarGridBody"},[...Array(c).keys()].map(e=>v.createElement("tr",{key:e},s.getDatesInWeek(e,l).map((e,t)=>e?v.cloneElement(n(e),{key:t}):v.createElement("td",{key:t})))))}),r_=(0,v.forwardRef)(function({date:e,...t},n){var r;let a=(0,v.useContext)(rs),o=(0,v.useContext)(rl),i=null!=a?a:o,{startDate:s}=null!=(r=(0,v.useContext)(rd))?r:{startDate:i.visibleRange.start},l=!(0,X.tF)(s,e),c=(0,X.cK)(e,i.timeZone),u=(0,v.useRef)(null),{cellProps:d,buttonProps:p,...f}=function(e,t,n){var r;let a,{date:o,isDisabled:i}=e,{errorMessageId:s,selectedDateDescription:l}=nI.get(t),c=nw((r=ng)&&r.__esModule?r.default:r,"@react-aria/calendar"),u=nM({weekday:"long",day:"numeric",month:"long",year:"numeric",era:nN(o),timeZone:t.timeZone}),d=t.isSelected(o),p=t.isCellFocused(o)&&!e.isOutsideMonth;i=i||t.isCellDisabled(o);let f=t.isCellUnavailable(o),m=!i&&!f,h=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&o.compare(t.highlightedRange.start)>=0&&0>=o.compare(t.highlightedRange.end):t.value&&(0,X.ro)(t.value,o));h&&(d=!0),o=nT(o,X.NV);let g=(0,v.useMemo)(()=>o.toDate(t.timeZone),[o,t.timeZone]),b=(0,X.cK)(o,t.timeZone),y=(0,v.useMemo)(()=>{let e="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&((0,X.ro)(o,t.value.start)||(0,X.ro)(o,t.value.end))&&(e=l+", "),e+=u.format(g),b?e=c.format(d?"todayDateSelected":"todayDate",{date:e}):d&&(e=c.format("dateSelected",{date:e})),t.minValue&&(0,X.ro)(o,t.minValue)?e+=", "+c.format("minimumDate"):t.maxValue&&(0,X.ro)(o,t.maxValue)&&(e+=", "+c.format("maximumDate")),e},[u,g,c,d,b,o,t,l]),A="";"anchorDate"in t&&p&&!t.isReadOnly&&m&&(A=t.anchorDate?c.format("finishRangeSelectionPrompt"):c.format("startRangeSelectionPrompt"));let $=nJ(A),k=(0,v.useRef)(!1),x=(0,v.useRef)(!1),C=(0,v.useRef)(void 0),{pressProps:w,isPressed:E}=tj({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(e){if(t.isReadOnly)return void t.setFocusedDate(o);if("highlightedRange"in t&&!t.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(t.highlightedRange&&!h){if((0,X.ro)(o,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(o),t.setDragging(!0),x.current=!0;return}else if((0,X.ro)(o,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(o),t.setDragging(!0),x.current=!0;return}}let n=()=>{t.setDragging(!0),C.current=void 0,t.selectDate(o),t.setFocusedDate(o),k.current=!0};"touch"===e.pointerType?C.current=setTimeout(n,200):n()}},onPressEnd(){x.current=!1,k.current=!1,clearTimeout(C.current),C.current=void 0},onPress(){"anchorDate"in t||t.isReadOnly||(t.selectDate(o),t.setFocusedDate(o))},onPressUp(e){if(!t.isReadOnly&&("anchorDate"in t&&C.current&&(t.selectDate(o),t.setFocusedDate(o)),"anchorDate"in t))if(x.current)t.setAnchorDate(o);else if(t.anchorDate&&!k.current)t.selectDate(o),t.setFocusedDate(o);else if("keyboard"!==e.pointerType||t.anchorDate)"virtual"===e.pointerType&&(t.selectDate(o),t.setFocusedDate(o));else{t.selectDate(o);let e=o.add({days:1});t.isInvalid(e)&&(e=o.subtract({days:1})),t.isInvalid(e)||t.setFocusedDate(e)}}});i||(a=(0,X.ro)(o,t.focusedDate)?0:-1),(0,v.useEffect)(()=>{p&&n.current&&(e8(n.current),"pointer"!==tq&&document.activeElement===n.current&&nQ(n.current,{containingElement:n0(n.current)}))},[p,n]);let D=nM({day:"numeric",timeZone:t.timeZone,calendar:o.calendar.identifier}),S=(0,v.useMemo)(()=>D.formatToParts(g).find(e=>"day"===e.type).value,[D,g]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":d||void 0,"aria-invalid":h||void 0},buttonProps:eT(w,{onFocus(){i||t.setFocusedDate(o)},tabIndex:a,role:"button","aria-disabled":!m||void 0,"aria-label":y,"aria-invalid":h||void 0,"aria-describedby":[h?s:void 0,$["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in t&&("touch"!==e.pointerType||t.isDragging)&&m&&t.highlightDate(o)},onPointerDown(e){"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId)},onContextMenu(e){e.preventDefault()}}),isPressed:E,isFocused:p,isSelected:d,isDisabled:i,isUnavailable:f,isOutsideVisibleRange:0>o.compare(t.visibleRange.start)||o.compare(t.visibleRange.end)>0,isInvalid:h,formattedDate:S}}({date:e,isOutsideMonth:l},i,u),{hoverProps:m,isHovered:h}=nc({...t,isDisabled:f.isDisabled}),{focusProps:g,isFocusVisible:b}=na();b&&(b=f.isFocused);let y=!1,A=!1;"highlightedRange"in i&&i.highlightedRange&&(y=(0,X.ro)(e,i.highlightedRange.start),A=(0,X.ro)(e,i.highlightedRange.end));let $=eF({...t,defaultChildren:f.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:e,isHovered:h,isOutsideMonth:l,isFocusVisible:b,isSelectionStart:y,isSelectionEnd:A,isToday:c,...f}}),k={"data-focused":f.isFocused||void 0,"data-hovered":h||void 0,"data-pressed":f.isPressed||void 0,"data-unavailable":f.isUnavailable||void 0,"data-disabled":f.isDisabled||void 0,"data-focus-visible":b||void 0,"data-outside-visible-range":f.isOutsideVisibleRange||void 0,"data-outside-month":l||void 0,"data-selected":f.isSelected||void 0,"data-selection-start":y||void 0,"data-selection-end":A||void 0,"data-invalid":f.isInvalid||void 0,"data-today":c||void 0},x=eZ(t,{global:!0});return v.createElement("td",{...d,ref:n},v.createElement("div",{...eT(x,p,g,m,k,$),ref:u}))}),rg=(0,v.createContext)({}),rb=(0,v.forwardRef)(function(e,t){var n,r;[e,t]=eN(e,t,rg);let{isDisabled:a,isInvalid:o,onHoverStart:i,onHoverChange:s,onHoverEnd:l,...c}=e,{hoverProps:u,isHovered:d}=nc({onHoverStart:i,onHoverChange:s,onHoverEnd:l,isDisabled:a}),{isFocused:p,isFocusVisible:f,focusProps:m}=na({within:!0});null!=a||(a=!!e["aria-disabled"]&&"false"!==e["aria-disabled"]),null!=o||(o=!!e["aria-invalid"]&&"false"!==e["aria-invalid"]);let h=eF({...e,values:{isHovered:d,isFocusWithin:p,isFocusVisible:f,isDisabled:a,isInvalid:o},defaultClassName:"react-aria-Group"});return v.createElement("div",{...eT(c,m,u),...h,ref:t,role:null!=(n=e.role)?n:"group",slot:null!=(r=e.slot)?r:void 0,"data-focus-within":p||void 0,"data-hovered":d||void 0,"data-focus-visible":f||void 0,"data-disabled":a||void 0,"data-invalid":o||void 0},h.children)}),ry=(0,v.createContext)({}),rv=nd(function(e,t){[e,t]=eN(e,t,ry);let{hoverProps:n,isHovered:r}=nc(e),{isFocused:a,isFocusVisible:o,focusProps:i}=na({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],l=eF({...e,values:{isHovered:r,isFocused:a,isFocusVisible:o,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return v.createElement("input",{...eT((e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...a}=e;return a})(e),i,n),...l,ref:t,"data-focused":a||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":o||void 0,"data-invalid":s||void 0})});var rA={};rA={"ar-AE":{calendar:`\u{627}\u{644}\u{62A}\u{642}\u{648}\u{64A}\u{645}`,day:`\u{64A}\u{648}\u{645}`,dayPeriod:`\u{635}/\u{645}`,endDate:`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{627}\u{644}\u{627}\u{646}\u{62A}\u{647}\u{627}\u{621}`,era:`\u{627}\u{644}\u{639}\u{635}\u{631}`,hour:`\u{627}\u{644}\u{633}\u{627}\u{639}\u{627}\u{62A}`,minute:`\u{627}\u{644}\u{62F}\u{642}\u{627}\u{626}\u{642}`,month:`\u{627}\u{644}\u{634}\u{647}\u{631}`,second:`\u{627}\u{644}\u{62B}\u{648}\u{627}\u{646}\u{64A}`,selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,selectedTimeDescription:e=>`\u{627}\u{644}\u{648}\u{642}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.time}`,startDate:`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{627}\u{644}\u{628}\u{62F}\u{621}`,timeZoneName:`\u{627}\u{644}\u{62A}\u{648}\u{642}\u{64A}\u{62A}`,weekday:`\u{627}\u{644}\u{64A}\u{648}\u{645}`,year:`\u{627}\u{644}\u{633}\u{646}\u{629}`},"bg-BG":{calendar:`\u{41A}\u{430}\u{43B}\u{435}\u{43D}\u{434}\u{430}\u{440}`,day:`\u{434}\u{435}\u{43D}`,dayPeriod:`\u{43F}\u{440}.\u{43E}\u{431}./\u{441}\u{43B}.\u{43E}\u{431}.`,endDate:`\u{41A}\u{440}\u{430}\u{439}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}`,era:`\u{435}\u{440}\u{430}`,hour:`\u{447}\u{430}\u{441}`,minute:`\u{43C}\u{438}\u{43D}\u{443}\u{442}\u{430}`,month:`\u{43C}\u{435}\u{441}\u{435}\u{446}`,second:`\u{441}\u{435}\u{43A}\u{443}\u{43D}\u{434}\u{430}`,selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{434}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{432}\u{440}\u{435}\u{43C}\u{435}: ${e.time}`,startDate:`\u{41D}\u{430}\u{447}\u{430}\u{43B}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}`,timeZoneName:`\u{447}\u{430}\u{441}\u{43E}\u{432}\u{430} \u{437}\u{43E}\u{43D}\u{430}`,weekday:`\u{434}\u{435}\u{43D} \u{43E}\u{442} \u{441}\u{435}\u{434}\u{43C}\u{438}\u{446}\u{430}\u{442}\u{430}`,year:`\u{433}\u{43E}\u{434}\u{438}\u{43D}\u{430}`},"cs-CZ":{calendar:`Kalend\xe1\u{159}`,day:"den",dayPeriod:`\u{10D}\xe1st dne`,endDate:`Kone\u{10D}n\xe9 datum`,era:`letopo\u{10D}et`,hour:"hodina",minute:"minuta",month:`m\u{11B}s\xedc`,second:"sekunda",selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.startDate} a\u{17E} ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xfd \u{10D}as: ${e.time}`,startDate:`Po\u{10D}\xe1te\u{10D}n\xed datum`,timeZoneName:`\u{10D}asov\xe9 p\xe1smo`,weekday:`den v t\xfddnu`,year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:`\xe6ra`,hour:"time",minute:"minut",month:`m\xe5ned`,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:`\xe5r`},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:`Tagesh\xe4lfte`,endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xe4hlte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:`\u{397}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BB}\u{3CC}\u{3B3}\u{3B9}\u{3BF}`,day:`\u{3B7}\u{3BC}\u{3AD}\u{3C1}\u{3B1}`,dayPeriod:`\u{3C0}.\u{3BC}./\u{3BC}.\u{3BC}.`,endDate:`\u{397}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1} \u{3BB}\u{3AE}\u{3BE}\u{3B7}\u{3C2}`,era:`\u{3C0}\u{3B5}\u{3C1}\u{3AF}\u{3BF}\u{3B4}\u{3BF}\u{3C2}`,hour:`\u{3CE}\u{3C1}\u{3B1}`,minute:`\u{3BB}\u{3B5}\u{3C0}\u{3C4}\u{3CC}`,month:`\u{3BC}\u{3AE}\u{3BD}\u{3B1}\u{3C2}`,second:`\u{3B4}\u{3B5}\u{3C5}\u{3C4}\u{3B5}\u{3C1}\u{3CC}\u{3BB}\u{3B5}\u{3C0}\u{3C4}\u{3BF}`,selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,selectedTimeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}: ${e.time}`,startDate:`\u{397}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1} \u{3AD}\u{3BD}\u{3B1}\u{3C1}\u{3BE}\u{3B7}\u{3C2}`,timeZoneName:`\u{3B6}\u{3CE}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}\u{3C2}`,weekday:`\u{3BA}\u{3B1}\u{3B8}\u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3B9}\u{3BD}\u{3AE}`,year:`\u{3AD}\u{3C4}\u{3BF}\u{3C2}`},"en-US":{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}`},"es-ES":{calendar:"Calendario",day:`d\xeda`,dayPeriod:`a.\xa0m./p.\xa0m.`,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\xeda de la semana`,year:`a\xf1o`},"et-EE":{calendar:"Kalender",day:`p\xe4ev`,dayPeriod:`enne/p\xe4rast l\xf5unat`,endDate:`L\xf5ppkuup\xe4ev`,era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:`Alguskuup\xe4ev`,timeZoneName:`ajav\xf6\xf6nd`,weekday:`n\xe4dalap\xe4ev`,year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:`p\xe4iv\xe4`,dayPeriod:"vuorokaudenaika",endDate:`P\xe4\xe4ttymisp\xe4iv\xe4`,era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.startDate} \u{2013} ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:`Alkamisp\xe4iv\xe4`,timeZoneName:`aikavy\xf6hyke`,weekday:`viikonp\xe4iv\xe4`,year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:`\xe8re`,hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xa0: ${e.time}`,startDate:`Date de d\xe9but`,timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:`ann\xe9e`},"he-IL":{calendar:`\u{5DC}\u{5D5}\u{5D7} \u{5E9}\u{5E0}\u{5D4}`,day:`\u{5D9}\u{5D5}\u{5DD}`,dayPeriod:`\u{5DC}\u{5E4}\u{5E0}\u{5D4}\u{5F4}\u{5E6}/\u{5D0}\u{5D7}\u{5D4}\u{5F4}\u{5E6}`,endDate:`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E1}\u{5D9}\u{5D5}\u{5DD}`,era:`\u{5EA}\u{5E7}\u{5D5}\u{5E4}\u{5D4}`,hour:`\u{5E9}\u{5E2}\u{5D4}`,minute:`\u{5D3}\u{5E7}\u{5D4}`,month:`\u{5D7}\u{5D5}\u{5D3}\u{5E9}`,second:`\u{5E9}\u{5E0}\u{5D9}\u{5D9}\u{5D4}`,selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,selectedTimeDescription:e=>`\u{5D6}\u{5DE}\u{5DF} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.time}`,startDate:`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5D4}\u{5EA}\u{5D7}\u{5DC}\u{5D4}`,timeZoneName:`\u{5D0}\u{5D6}\u{5D5}\u{5E8} \u{5D6}\u{5DE}\u{5DF}`,weekday:`\u{5D9}\u{5D5}\u{5DD} \u{5D1}\u{5E9}\u{5D1}\u{5D5}\u{5E2}`,year:`\u{5E9}\u{5E0}\u{5D4}`},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:`Datum zavr\u{161}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\u{10D}etka`,timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:`Napt\xe1r`,day:"nap",dayPeriod:"napszak",endDate:`Befejez\u{151} d\xe1tum`,era:`\xe9ra`,hour:`\xf3ra`,minute:"perc",month:`h\xf3nap`,second:`m\xe1sodperc`,selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.startDate}\u{2013}${e.endDate}`,selectedTimeDescription:e=>`Kijel\xf6lt id\u{151}: ${e.time}`,startDate:`Kezd\u{151} d\xe1tum`,timeZoneName:`id\u{151}z\xf3na`,weekday:`h\xe9t napja`,year:`\xe9v`},"it-IT":{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"},"ja-JP":{calendar:`\u{30AB}\u{30EC}\u{30F3}\u{30C0}\u{30FC}`,day:`\u{65E5}`,dayPeriod:`\u{5348}\u{524D}/\u{5348}\u{5F8C}`,endDate:`\u{7D42}\u{4E86}\u{65E5}`,era:`\u{6642}\u{4EE3}`,hour:`\u{6642}`,minute:`\u{5206}`,month:`\u{6708}`,second:`\u{79D2}`,selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.startDate} \u{304B}\u{3089} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{6642}\u{9593} : ${e.time}`,startDate:`\u{958B}\u{59CB}\u{65E5}`,timeZoneName:`\u{30BF}\u{30A4}\u{30E0}\u{30BE}\u{30FC}\u{30F3}`,weekday:`\u{66DC}\u{65E5}`,year:`\u{5E74}`},"ko-KR":{calendar:`\u{B2EC}\u{B825}`,day:`\u{C77C}`,dayPeriod:`\u{C624}\u{C804}/\u{C624}\u{D6C4}`,endDate:`\u{C885}\u{B8CC}\u{C77C}`,era:`\u{C5F0}\u{D638}`,hour:`\u{C2DC}`,minute:`\u{BD84}`,month:`\u{C6D4}`,second:`\u{CD08}`,selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\u{C120}\u{D0DD} \u{C2DC}\u{AC04}: ${e.time}`,startDate:`\u{C2DC}\u{C791}\u{C77C}`,timeZoneName:`\u{C2DC}\u{AC04}\u{B300}`,weekday:`\u{C694}\u{C77C}`,year:`\u{B144}`},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:`iki piet\u{173} / po piet\u{173}`,endDate:"Pabaigos data",era:"era",hour:"valanda",minute:`minut\u{117}`,month:`m\u{117}nuo`,second:`sekund\u{117}`,selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:`Prad\u{17E}ios data`,timeZoneName:"laiko juosta",weekday:`savait\u{117}s diena`,year:"metai"},"lv-LV":{calendar:`Kalend\u{101}rs`,day:"diena",dayPeriod:`priek\u{161}pusdien\u{101}/p\u{113}cpusdien\u{101}`,endDate:"Beigu datums",era:`\u{113}ra`,hour:"stundas",minute:`min\u{16B}tes`,month:`m\u{113}nesis`,second:"sekundes",selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: no ${e.startDate} l\u{12B}dz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u{12B}tais laiks: ${e.time}`,startDate:`S\u{101}kuma datums`,timeZoneName:"laika josla",weekday:`ned\u{113}\u{13C}as diena`,year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:`m\xe5ned`,second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:`\xe5r`},"nl-NL":{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"},"pl-PL":{calendar:"Kalendarz",day:`dzie\u{144}`,dayPeriod:`rano / po po\u{142}udniu / wieczorem`,endDate:`Data ko\u{144}cowa`,era:"era",hour:"godzina",minute:"minuta",month:`miesi\u{105}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\u{105}tkowa`,timeZoneName:"strefa czasowa",weekday:`dzie\u{144} tygodnia`,year:"rok"},"pt-BR":{calendar:`Calend\xe1rio`,day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:`m\xeas`,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\xe1rio`,weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:`Calend\xe1rio`,day:"dia",dayPeriod:"am/pm",endDate:`Data de T\xe9rmino`,era:"era",hour:"hora",minute:"minuto",month:`m\xeas`,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\xedcio`,timeZoneName:`fuso hor\xe1rio`,weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:`Dat\u{103} final`,era:`er\u{103}`,hour:`or\u{103}`,minute:"minut",month:`lun\u{103}`,second:`secund\u{103}`,selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u{103}: ${e.time}`,startDate:`Dat\u{103} \xeenceput`,timeZoneName:"fus orar",weekday:`ziua din s\u{103}pt\u{103}m\xe2n\u{103}`,year:"an"},"ru-RU":{calendar:`\u{41A}\u{430}\u{43B}\u{435}\u{43D}\u{434}\u{430}\u{440}\u{44C}`,day:`\u{434}\u{435}\u{43D}\u{44C}`,dayPeriod:"AM/PM",endDate:`\u{414}\u{430}\u{442}\u{430} \u{43E}\u{43A}\u{43E}\u{43D}\u{447}\u{430}\u{43D}\u{438}\u{44F}`,era:`\u{44D}\u{440}\u{430}`,hour:`\u{447}\u{430}\u{441}`,minute:`\u{43C}\u{438}\u{43D}\u{443}\u{442}\u{430}`,month:`\u{43C}\u{435}\u{441}\u{44F}\u{446}`,second:`\u{441}\u{435}\u{43A}\u{443}\u{43D}\u{434}\u{430}`,selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: \u{441} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{435} \u{432}\u{440}\u{435}\u{43C}\u{44F}: ${e.time}`,startDate:`\u{414}\u{430}\u{442}\u{430} \u{43D}\u{430}\u{447}\u{430}\u{43B}\u{430}`,timeZoneName:`\u{447}\u{430}\u{441}\u{43E}\u{432}\u{43E}\u{439} \u{43F}\u{43E}\u{44F}\u{441}`,weekday:`\u{434}\u{435}\u{43D}\u{44C} \u{43D}\u{435}\u{434}\u{435}\u{43B}\u{438}`,year:`\u{433}\u{43E}\u{434}`},"sk-SK":{calendar:`Kalend\xe1r`,day:`de\u{148}`,dayPeriod:"AM/PM",endDate:`D\xe1tum ukon\u{10D}enia`,era:`letopo\u{10D}et`,hour:"hodina",minute:`min\xfata`,month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xfd \u{10D}as: ${e.time}`,startDate:`D\xe1tum za\u{10D}atia`,timeZoneName:`\u{10D}asov\xe9 p\xe1smo`,weekday:`de\u{148} t\xfd\u{17E}d\u{148}a`,year:"rok"},"sl-SI":{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\u{10D}je: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u{10D}as: ${e.time}`,startDate:`Datum za\u{10D}etka`,timeZoneName:`\u{10D}asovni pas`,weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:`\u{434}\u{430}\u{43D}`,dayPeriod:`\u{43F}\u{440}\u{435} \u{43F}\u{43E}\u{434}\u{43D}\u{435}/\u{43F}\u{43E} \u{43F}\u{43E}\u{434}\u{43D}\u{435}`,endDate:`Datum zavr\u{161}etka`,era:`\u{435}\u{440}\u{430}`,hour:`\u{441}\u{430}\u{442}`,minute:`\u{43C}\u{438}\u{43D}\u{443}\u{442}`,month:`\u{43C}\u{435}\u{441}\u{435}\u{446}`,second:`\u{441}\u{435}\u{43A}\u{443}\u{43D}\u{434}`,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\u{10D}etka`,timeZoneName:`\u{432}\u{440}\u{435}\u{43C}\u{435}\u{43D}\u{441}\u{43A}\u{430} \u{437}\u{43E}\u{43D}\u{430}`,weekday:`\u{434}\u{430}\u{43D} \u{443} \u{43D}\u{435}\u{434}\u{435}\u{459}\u{438}`,year:`\u{433}\u{43E}\u{434}\u{438}\u{43D}\u{430}`},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:`m\xe5nad`,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:`\xe5r`},"tr-TR":{calendar:"Takvim",day:`g\xfcn`,dayPeriod:`\xd6\xd6/\xd6S`,endDate:`Biti\u{15F} Tarihi`,era:`\xe7a\u{11F}`,hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xe7ilen Zaman: ${e.time}`,startDate:`Ba\u{15F}lang\u{131}\xe7 Tarihi`,timeZoneName:"saat dilimi",weekday:`haftan\u{131}n g\xfcn\xfc`,year:`y\u{131}l`},"uk-UA":{calendar:`\u{41A}\u{430}\u{43B}\u{435}\u{43D}\u{434}\u{430}\u{440}`,day:`\u{434}\u{435}\u{43D}\u{44C}`,dayPeriod:`\u{434}\u{43F}/\u{43F}\u{43F}`,endDate:`\u{414}\u{430}\u{442}\u{430} \u{437}\u{430}\u{432}\u{435}\u{440}\u{448}\u{435}\u{43D}\u{43D}\u{44F}`,era:`\u{435}\u{440}\u{430}`,hour:`\u{433}\u{43E}\u{434}\u{438}\u{43D}\u{430}`,minute:`\u{445}\u{432}\u{438}\u{43B}\u{438}\u{43D}\u{430}`,month:`\u{43C}\u{456}\u{441}\u{44F}\u{446}\u{44C}`,second:`\u{441}\u{435}\u{43A}\u{443}\u{43D}\u{434}\u{430}`,selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{2014} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{447}\u{430}\u{441}: ${e.time}`,startDate:`\u{414}\u{430}\u{442}\u{430} \u{43F}\u{43E}\u{447}\u{430}\u{442}\u{43A}\u{443}`,timeZoneName:`\u{447}\u{430}\u{441}\u{43E}\u{432}\u{438}\u{439} \u{43F}\u{43E}\u{44F}\u{441}`,weekday:`\u{434}\u{435}\u{43D}\u{44C} \u{442}\u{438}\u{436}\u{43D}\u{44F}`,year:`\u{440}\u{456}\u{43A}`},"zh-CN":{calendar:`\u{65E5}\u{5386}`,day:`\u{65E5}`,dayPeriod:`\u{4E0A}\u{5348}/\u{4E0B}\u{5348}`,endDate:`\u{7ED3}\u{675F}\u{65E5}\u{671F}`,era:`\u{7EAA}\u{5143}`,hour:`\u{5C0F}\u{65F6}`,minute:`\u{5206}\u{949F}`,month:`\u{6708}`,second:`\u{79D2}`,selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65F6}\u{95F4}\u{FF1A}${e.time}`,startDate:`\u{5F00}\u{59CB}\u{65E5}\u{671F}`,timeZoneName:`\u{65F6}\u{533A}`,weekday:`\u{5DE5}\u{4F5C}\u{65E5}`,year:`\u{5E74}`},"zh-TW":{calendar:`\u{65E5}\u{66C6}`,day:`\u{65E5}`,dayPeriod:`\u{4E0A}\u{5348}/\u{4E0B}\u{5348}`,endDate:`\u{7D50}\u{675F}\u{65E5}\u{671F}`,era:`\u{7EAA}\u{5143}`,hour:`\u{5C0F}\u{65F6}`,minute:`\u{5206}\u{949F}`,month:`\u{6708}`,second:`\u{79D2}`,selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{6642}\u{9593}\u{FF1A}${e.time}`,startDate:`\u{958B}\u{59CB}\u{65E5}\u{671F}`,timeZoneName:`\u{65F6}\u{533A}`,weekday:`\u{5DE5}\u{4F5C}\u{65E5}`,year:`\u{5E74}`}};let r$=v.createContext(null),rk="react-aria-focus-scope-restore",rx=null;function rC(e){var t,n,r,a,o,i,s,l,c,u;let d,p,f,m,{children:h,contain:g,restoreFocus:b,autoFocus:y}=e,A=(0,v.useRef)(null),$=(0,v.useRef)(null),k=(0,v.useRef)([]),{parentNode:x}=(0,v.useContext)(r$)||{},C=(0,v.useMemo)(()=>new rR({scopeRef:k}),[k]);eC(()=>{let e=x||rL.root;if(rL.getTreeNode(e.scopeRef)&&rx&&!rB(rx,e.scopeRef)){let t=rL.getTreeNode(rx);t&&(e=t)}e.addChild(C),rL.addNode(C)},[C,x]),eC(()=>{let e=rL.getTreeNode(k);e&&(e.contain=!!g)},[g]),eC(()=>{var e;let t=null==(e=A.current)?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==$.current;)n.push(t),t.addEventListener(rk,r),t=t.nextSibling;return k.current=n,()=>{for(let e of n)e.removeEventListener(rk,r)}},[h]),eC(()=>{if(n||r)return;let e=t.current,a=eX(e?e[0]:void 0),o=e=>{let n=tB(e);rD(n,t.current)?rx=t:rS(n)||(rx=null)};return a.addEventListener("focusin",o,!1),null==e||e.forEach(e=>e.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",o,!1))}},[t=k,n=b,r=g]),a=k,o=g,d=(0,v.useRef)(void 0),p=(0,v.useRef)(void 0),eC(()=>{let e=a.current;if(!o){p.current&&(cancelAnimationFrame(p.current),p.current=void 0);return}let t=eX(e?e[0]:void 0),n=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!rE(a)||e.isComposing)return;let n=((e=document)=>e.activeElement)(t),r=a.current;if(!r||!rD(n,r))return;let o=rF(rw(r),{tabbable:!0},r);if(!n)return;o.currentNode=n;let i=e.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),i&&rz(i,!0)},r=e=>{(!rx||rB(rx,a))&&rD(tB(e),a.current)?(rx=a,d.current=tB(e)):rE(a)&&!rS(tB(e),a)?d.current?d.current.focus():rx&&rx.current&&rT(rx.current):rE(a)&&(d.current=tB(e))},i=e=>{p.current&&cancelAnimationFrame(p.current),p.current=requestAnimationFrame(()=>{let n=tq,r=("virtual"===n||null===n)&&tf()&&tp(),o=((e=document)=>e.activeElement)(t);if(!r&&o&&rE(a)&&!rS(o,a)){rx=a;let t=tB(e);if(t&&t.isConnected){var i;d.current=t,null==(i=d.current)||i.focus()}else rx.current&&rT(rx.current)}})};return t.addEventListener("keydown",n,!1),t.addEventListener("focusin",r,!1),null==e||e.forEach(e=>e.addEventListener("focusin",r,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",i,!1)),()=>{t.removeEventListener("keydown",n,!1),t.removeEventListener("focusin",r,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",r,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",i,!1))}},[a,o]),eC(()=>()=>{p.current&&cancelAnimationFrame(p.current)},[p]),i=k,s=b,l=g,f=(0,v.useRef)("undefined"!=typeof document?((e=document)=>e.activeElement)(eX(i.current?i.current[0]:void 0)):null),eC(()=>{let e=i.current,t=eX(e?e[0]:void 0);if(!s||l)return;let n=()=>{(!rx||rB(rx,i))&&rD(((e=document)=>e.activeElement)(t),i.current)&&(rx=i)};return t.addEventListener("focusin",n,!1),null==e||e.forEach(e=>e.addEventListener("focusin",n,!1)),()=>{t.removeEventListener("focusin",n,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",n,!1))}},[i,l]),eC(()=>{let e=eX(i.current?i.current[0]:void 0);if(!s)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!rE(i)||t.isComposing)return;let n=e.activeElement;if(!rS(n,i)||!rM(i))return;let r=rL.getTreeNode(i);if(!r)return;let a=r.nodeToRestore,o=rF(e.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if(a&&a.isConnected&&a!==e.body||(a=void 0,r.nodeToRestore=void 0),(!s||!rS(s,i))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(rS(s,i));(t.preventDefault(),t.stopPropagation(),s)?rz(s,!0):rS(a)?rz(a,!0):n.blur()}};return l||e.addEventListener("keydown",t,!0),()=>{l||e.removeEventListener("keydown",t,!0)}},[i,s,l]),eC(()=>{var e;let t=eX(i.current?i.current[0]:void 0);if(!s)return;let n=rL.getTreeNode(i);if(n)return n.nodeToRestore=null!=(e=f.current)?e:void 0,()=>{let e=rL.getTreeNode(i);if(!e)return;let n=e.nodeToRestore,r=((e=document)=>e.activeElement)(t);if(s&&n&&(r&&rS(r,i)||r===t.body&&rM(i))){let e=rL.clone();requestAnimationFrame(()=>{if(t.activeElement===t.body){let t=e.getTreeNode(i);for(;t;){if(t.nodeToRestore&&t.nodeToRestore.isConnected)return void rO(t.nodeToRestore);t=t.parent}for(t=e.getTreeNode(i);t;){if(t.scopeRef&&t.scopeRef.current&&rL.getTreeNode(t.scopeRef))return void rO(rP(t.scopeRef.current,!0));t=t.parent}}})}}},[i,s]),c=k,u=y,m=v.useRef(u),(0,v.useEffect)(()=>{m.current&&(rx=c,!rD(((e=document)=>e.activeElement)(eX(c.current?c.current[0]:void 0)),rx.current)&&c.current&&rT(c.current)),m.current=!1},[c]),(0,v.useEffect)(()=>{let e=((e=document)=>e.activeElement)(eX(k.current?k.current[0]:void 0)),t=null;if(rD(e,k.current)){for(let n of rL.traverse())n.scopeRef&&rD(e,n.scopeRef.current)&&(t=n);t===rL.getTreeNode(k)&&(rx=t.scopeRef)}},[k]),eC(()=>()=>{var e,t,n;let r=null!=(n=null==(t=rL.getTreeNode(k))||null==(e=t.parent)?void 0:e.scopeRef)?n:null;(k===rx||rB(k,rx))&&(!r||rL.getTreeNode(r))&&(rx=r),rL.removeTreeNode(k)},[k]);let w=(0,v.useMemo)(()=>{var e;return e=k,{focusNext(t={}){var n;let r=e.current,{from:a,tabbable:o,wrap:i,accept:s}=t,l=a||((e=document)=>e.activeElement)(eX(null!=(n=r[0])?n:void 0)),c=r[0].previousElementSibling,u=rF(rw(r),{tabbable:o,accept:s},r);u.currentNode=rD(l,r)?l:c;let d=u.nextNode();return!d&&i&&(u.currentNode=c,d=u.nextNode()),d&&rz(d,!0),d},focusPrevious(t={}){var n;let r=e.current,{from:a,tabbable:o,wrap:i,accept:s}=t,l=a||((e=document)=>e.activeElement)(eX(null!=(n=r[0])?n:void 0)),c=r[r.length-1].nextElementSibling,u=rF(rw(r),{tabbable:o,accept:s},r);u.currentNode=rD(l,r)?l:c;let d=u.previousNode();return!d&&i&&(u.currentNode=c,d=u.previousNode()),d&&rz(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:a}=t,o=rF(rw(n),{tabbable:r,accept:a},n);o.currentNode=n[0].previousElementSibling;let i=o.nextNode();return i&&rz(i,!0),i},focusLast(t={}){let n=e.current,{tabbable:r,accept:a}=t,o=rF(rw(n),{tabbable:r,accept:a},n);o.currentNode=n[n.length-1].nextElementSibling;let i=o.previousNode();return i&&rz(i,!0),i}}},[]),E=(0,v.useMemo)(()=>({focusManager:w,parentNode:C}),[C,w]);return v.createElement(r$.Provider,{value:E},v.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:A}),h,v.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:$}))}function rw(e){return e[0].parentElement}function rE(e){let t=rL.getTreeNode(rx);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function rD(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function rS(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of rL.traverse(rL.getTreeNode(t)))if(n&&rD(e,n.current))return!0;return!1}function rB(e,t){var n;let r=null==(n=rL.getTreeNode(t))?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function rz(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{t8(e)}catch{}}function rP(e,t=!0){let n=e[0].previousElementSibling,r=rw(e),a=rF(r,{tabbable:t},e);a.currentNode=n;let o=a.nextNode();return t&&!o&&((a=rF(r=rw(e),{tabbable:!1},e)).currentNode=n,o=a.nextNode()),o}function rT(e,t=!0){rz(rP(e,t))}function rM(e){let t=rL.getTreeNode(rx);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function rO(e){e.dispatchEvent(new CustomEvent(rk,{bubbles:!0,cancelable:!0}))&&rz(e)}function rF(e,t,n){var r,a,o;let i=(null==t?void 0:t.tabbable)?e6:e5,s=eX((null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null),l=(r=e||s,a=NodeFilter.SHOW_ELEMENT,o={acceptNode(e){var r;return(null==t||null==(r=t.from)?void 0:r.contains(e))||(null==t?void 0:t.tabbable)&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")&&(!function(e){if(e.checked)return!0;let t=[];if(e.form){var n,r;let a=null==(r=e.form)||null==(n=r.elements)?void 0:n.namedItem(e.name);t=[...null!=a?a:[]]}else t=[...eX(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(e=>!e.form);return!!t&&!t.some(e=>e.checked)}(e)||"INPUT"===l.currentNode.tagName&&"radio"===l.currentNode.type&&l.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:i(e)&&(!n||rD(e,n))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}},s.createTreeWalker(r,a,o));return(null==t?void 0:t.from)&&(l.currentNode=t.from),l}function rI(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:a,tabbable:o=t.tabbable,wrap:i=t.wrap,accept:s=t.accept}=n,l=a||((e=document)=>e.activeElement)(eX(r)),c=rF(r,{tabbable:o,accept:s});r.contains(l)&&(c.currentNode=l);let u=c.nextNode();return!u&&i&&(c.currentNode=r,u=c.nextNode()),u&&rz(u,!0),u},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:a,tabbable:o=t.tabbable,wrap:i=t.wrap,accept:s=t.accept}=n,l=a||((e=document)=>e.activeElement)(eX(r)),c=rF(r,{tabbable:o,accept:s});if(r.contains(l))c.currentNode=l;else{let e=rN(c);return e&&rz(e,!0),null!=e?e:null}let u=c.previousNode();if(!u&&i){c.currentNode=r;let e=rN(c);if(!e)return null;u=e}return u&&rz(u,!0),null!=u?u:null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:o=t.accept}=n,i=rF(r,{tabbable:a,accept:o}).nextNode();return i&&rz(i,!0),i},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:o=t.accept}=n,i=rN(rF(r,{tabbable:a,accept:o}));return i&&rz(i,!0),null!=i?i:null}}}function rN(e){let t,n;do(t=e.lastChild())&&(n=t);while(t);return n}class rj{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let a=new rR({scopeRef:e});r.addChild(a),a.parent=r,this.fastMap.set(e,a),n&&(a.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&rD(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let n=new rj;for(let r of this.traverse())n.addTreeNode(r.scopeRef,null!=(t=null==(e=r.parent)?void 0:e.scopeRef)?t:null,r.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new rR({scopeRef:null}),this.fastMap.set(null,this.root)}}class rR{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let rL=new rj;function rV(e,t,n){let{direction:r}=eA(),a=(0,v.useMemo)(()=>rI(t),[t]),o=()=>{var e;if(!t.current)return;let n=null==(e=window.event)?void 0:e.target,r=rF(t.current,{tabbable:!0});if(n&&(r.currentNode=n,n=r.previousNode()),!n){let e;do(e=r.lastChild())&&(n=e);while(e)}for(;null==n?void 0:n.hasAttribute("data-placeholder");){let e=r.previousNode();if(e&&e.hasAttribute("data-placeholder"))n=e;else break}n&&n.focus()},{pressProps:i}=tj({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&o()},onPress(e){("touch"===e.pointerType||"pen"===e.pointerType)&&o()}});return eT(i,{onKeyDown:o=>{if(o.currentTarget.contains(o.target)&&(o.altKey&&("ArrowDown"===o.key||"ArrowUp"===o.key)&&"setOpen"in e&&(o.preventDefault(),o.stopPropagation(),e.setOpen(!0)),!n))switch(o.key){case"ArrowLeft":if(o.preventDefault(),o.stopPropagation(),"rtl"===r){if(t.current){let e=o.target,n=rH(t.current,e.getBoundingClientRect().left,-1);n&&n.focus()}}else a.focusPrevious();break;case"ArrowRight":if(o.preventDefault(),o.stopPropagation(),"rtl"===r){if(t.current){let e=o.target,n=rH(t.current,e.getBoundingClientRect().left,1);n&&n.focus()}}else a.focusNext()}}})}function rH(e,t,n){let r=rF(e,{tabbable:!0}),a=r.nextNode(),o=null,i=1/0;for(;a;){let e=a.getBoundingClientRect().left-t,s=Math.abs(e);Math.sign(e)===n&&s<i&&(o=a,i=s),a=r.nextNode()}return o}function rG(e,t,n){let r=eE(()=>{n&&n(t)});(0,v.useEffect)(()=>{var t;let n=null==e||null==(t=e.current)?void 0:t.form;return null==n||n.addEventListener("reset",r),()=>{null==n||n.removeEventListener("reset",r)}},[e,r])}function rU(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:o,fieldProps:i}=function(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:o="label"}=e;t=eB(t);let i=eB(),s={};return n&&(r=r?`${i} ${r}`:i,s={id:i,htmlFor:"label"===o?t:void 0}),{labelProps:s,fieldProps:nV({id:t,"aria-label":a,"aria-labelledby":r})}}(e),s=ez([!!t,!!n,r,a]),l=ez([!!t,!!n,r,a]);return{labelProps:o,fieldProps:i=eT(i,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:s},errorMessageProps:{id:l}}}function rq(e,t,n){let{validationBehavior:r,focus:a}=e;eC(()=>{if("native"===r&&(null==n?void 0:n.current)&&!n.current.disabled){var e;let r,a=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(a),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:{badInput:(r=e.validity).badInput,customError:r.customError,patternMismatch:r.patternMismatch,rangeOverflow:r.rangeOverflow,rangeUnderflow:r.rangeUnderflow,stepMismatch:r.stepMismatch,tooLong:r.tooLong,tooShort:r.tooShort,typeMismatch:r.typeMismatch,valueMissing:r.valueMissing,valid:r.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let o=(0,v.useRef)(!1),i=eE(()=>{o.current||t.resetValidation()}),s=eE(e=>{var r,o;t.displayValidation.isInvalid||t.commitValidation();let i=null==n||null==(r=n.current)?void 0:r.form;!e.defaultPrevented&&n&&i&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}(i)===n.current&&(a?a():null==(o=n.current)||o.focus(),tq="keyboard",tX("keyboard",null)),e.preventDefault()}),l=eE(()=>{t.commitValidation()});(0,v.useEffect)(()=>{let e=null==n?void 0:n.current;if(!e)return;let t=e.form,r=null==t?void 0:t.reset;return t&&(t.reset=()=>{o.current=!window.event||"message"===window.event.type&&window.event.target instanceof MessagePort,null==r||r.call(t),o.current=!1}),e.addEventListener("invalid",s),e.addEventListener("change",l),null==t||t.addEventListener("reset",i),()=>{e.removeEventListener("invalid",s),e.removeEventListener("change",l),null==t||t.removeEventListener("reset",i),t&&(t.reset=r)}},[n,s,l,i,r])}let rW=new WeakMap,rK="__role_"+Date.now(),rY="__focusManager_"+Date.now();function rJ(e,t,n){var r,a;let o,{isInvalid:i,validationErrors:s,validationDetails:l}=t.displayValidation,{labelProps:c,fieldProps:u,descriptionProps:d,errorMessageProps:p}=rU({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||s}),f=(0,v.useRef)(null),{focusWithinProps:m}=nr({...e,onFocusWithin(n){var r;f.current=t.value,null==(r=e.onFocus)||r.call(e,n)},onBlurWithin:n=>{var r;t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),null==(r=e.onBlur)||r.call(e,n)},onFocusWithinChange:e.onFocusChange}),h=nw((a=rA)&&a.__esModule?a.default:a,"@react-aria/datepicker"),g="hour"===t.maxGranularity?"selectedTimeDescription":"selectedDateDescription",b="hour"===t.maxGranularity?"time":"date",y=nJ(t.value?h.format(g,{[b]:t.formatValue({month:"long"})}):""),A="presentation"===e[rK]?u["aria-describedby"]:[y["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,$=e[rY],k=(0,v.useMemo)(()=>$||rI(n),[$,n]),x=rV(t,n,"presentation"===e[rK]);rW.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[c.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:A,focusManager:k});let C=(0,v.useRef)(e.autoFocus);o="presentation"===e[rK]?{role:"presentation"}:eT(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":A}),(0,v.useEffect)(()=>{C.current&&k.focusFirst(),C.current=!1},[k]),rG(e.inputRef,t.defaultValue,t.setValue),rq({...e,focus(){k.focusFirst()}},t,e.inputRef);let w={type:"hidden",name:e.name,form:e.form,value:(null==(r=t.value)?void 0:r.toString())||"",disabled:e.isDisabled};"native"===e.validationBehavior&&(w.type="text",w.hidden=!0,w.required=e.isRequired,w.onChange=()=>{});let E=eZ(e);return{labelProps:{...c,onClick:()=>{k.focusFirst()}},fieldProps:eT(E,o,x,m,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)},style:{unicodeBidi:"isolate"}}),inputProps:w,descriptionProps:d,errorMessageProps:p,isInvalid:i,validationErrors:s,validationDetails:l}}var rZ={};rZ={"ar-AE":{rangeOverflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.maxValue} \u{623}\u{648} \u{642}\u{628}\u{644} \u{630}\u{644}\u{643}.`,rangeReversed:`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{627}\u{644}\u{628}\u{62F}\u{621} \u{64A}\u{62C}\u{628} \u{623}\u{646} \u{64A}\u{643}\u{648}\u{646} \u{642}\u{628}\u{644} \u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{627}\u{644}\u{627}\u{646}\u{62A}\u{647}\u{627}\u{621}.`,rangeUnderflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.minValue} \u{623}\u{648} \u{628}\u{639}\u{62F} \u{630}\u{644}\u{643}.`,unavailableDate:`\u{627}\u{644}\u{628}\u{64A}\u{627}\u{646}\u{627}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}\u{629} \u{63A}\u{64A}\u{631} \u{645}\u{62A}\u{627}\u{62D}\u{629}.`},"bg-BG":{rangeOverflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.maxValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{440}\u{430}\u{43D}\u{43D}\u{430}.`,rangeReversed:`\u{41D}\u{430}\u{447}\u{430}\u{43B}\u{43D}\u{430}\u{442}\u{430} \u{434}\u{430}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} \u{43F}\u{440}\u{435}\u{434}\u{438} \u{43A}\u{440}\u{430}\u{439}\u{43D}\u{430}\u{442}\u{430}.`,rangeUnderflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.minValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{43A}\u{44A}\u{441}\u{43D}\u{43E}.`,unavailableDate:`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430}\u{442}\u{430} \u{434}\u{430}\u{442}\u{430} \u{43D}\u{435} \u{435} \u{43D}\u{430}\u{43B}\u{438}\u{447}\u{43D}\u{430}.`},"cs-CZ":{rangeOverflow:e=>`Hodnota mus\xed b\xfdt ${e.maxValue} nebo d\u{159}\xedv\u{11B}j\u{161}\xed.`,rangeReversed:`Datum zah\xe1jen\xed mus\xed p\u{159}edch\xe1zet datu ukon\u{10D}en\xed.`,rangeUnderflow:e=>`Hodnota mus\xed b\xfdt ${e.minValue} nebo pozd\u{11B}j\u{161}\xed.`,unavailableDate:`Vybran\xe9 datum nen\xed k dispozici.`},"da-DK":{rangeOverflow:e=>`V\xe6rdien skal v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:`Startdatoen skal v\xe6re f\xf8r slutdatoen.`,rangeUnderflow:e=>`V\xe6rdien skal v\xe6re ${e.minValue} eller nyere.`,unavailableDate:`Den valgte dato er ikke tilg\xe6ngelig.`},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xfcher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xe4ter sein.`,unavailableDate:`Das ausgew\xe4hlte Datum ist nicht verf\xfcgbar.`},"el-GR":{rangeOverflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.maxValue} \u{3AE} \u{3C0}\u{3B1}\u{3BB}\u{3B1}\u{3B9}\u{3CC}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,rangeReversed:`\u{397} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1} \u{3AD}\u{3BD}\u{3B1}\u{3C1}\u{3BE}\u{3B7}\u{3C2} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} \u{3C0}\u{3C1}\u{3B9}\u{3BD} \u{3B1}\u{3C0}\u{3CC} \u{3C4}\u{3B7}\u{3BD} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1} \u{3BB}\u{3AE}\u{3BE}\u{3B7}\u{3C2}.`,rangeUnderflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.minValue} \u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3B3}\u{3B5}\u{3BD}\u{3AD}\u{3C3}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,unavailableDate:`\u{397} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1} \u{3B4}\u{3B5}\u{3BD} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} \u{3B4}\u{3B9}\u{3B1}\u{3B8}\u{3AD}\u{3C3}\u{3B9}\u{3BC}\u{3B7}.`},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:`La fecha de inicio debe ser anterior a la fecha de finalizaci\xf3n.`,rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`V\xe4\xe4rtus peab olema ${e.maxValue} v\xf5i varasem.`,rangeReversed:`Alguskuup\xe4ev peab olema enne l\xf5ppkuup\xe4eva.`,rangeUnderflow:e=>`V\xe4\xe4rtus peab olema ${e.minValue} v\xf5i hilisem.`,unavailableDate:`Valitud kuup\xe4ev pole saadaval.`},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xe4 aikaisempi.`,rangeReversed:`Aloitusp\xe4iv\xe4n on oltava ennen lopetusp\xe4iv\xe4\xe4.`,rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,unavailableDate:`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4 ei ole k\xe4ytett\xe4viss\xe4.`},"fr-FR":{rangeOverflow:e=>`La valeur doit \xeatre ${e.maxValue} ou ant\xe9rieure.`,rangeReversed:`La date de d\xe9but doit \xeatre ant\xe9rieure \xe0 la date de fin.`,rangeUnderflow:e=>`La valeur doit \xeatre ${e.minValue} ou ult\xe9rieure.`,unavailableDate:`La date s\xe9lectionn\xe9e n\u{2019}est pas disponible.`},"he-IL":{rangeOverflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.maxValue} \u{5D0}\u{5D5} \u{5DE}\u{5D5}\u{5E7}\u{5D3}\u{5DD} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,rangeReversed:`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5D4}\u{5D4}\u{5EA}\u{5D7}\u{5DC}\u{5D4} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} \u{5DC}\u{5E4}\u{5E0}\u{5D9} \u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5D4}\u{5E1}\u{5D9}\u{5D5}\u{5DD}.`,rangeUnderflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.minValue} \u{5D0}\u{5D5} \u{5DE}\u{5D0}\u{5D5}\u{5D7}\u{5E8} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,unavailableDate:`\u{5D4}\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5D4}\u{5E0}\u{5D1}\u{5D7}\u{5E8} \u{5D0}\u{5D9}\u{5E0}\u{5D5} \u{5D6}\u{5DE}\u{5D9}\u{5DF}.`},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:`Datum po\u{10D}etka mora biti prije datuma zavr\u{161}etka.`,rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az \xe9rt\xe9knek ${e.maxValue} vagy kor\xe1bbinak kell lennie.`,rangeReversed:`A kezd\u{151} d\xe1tumnak a befejez\u{151} d\xe1tumn\xe1l kor\xe1bbinak kell lennie.`,rangeUnderflow:e=>`Az \xe9rt\xe9knek ${e.minValue} vagy k\xe9s\u{151}bbinek kell lennie.`,unavailableDate:`A kiv\xe1lasztott d\xe1tum nem \xe9rhet\u{151} el.`},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`\u{5024}\u{306F} ${e.maxValue} \u{4EE5}\u{4E0B}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,rangeReversed:`\u{958B}\u{59CB}\u{65E5}\u{306F}\u{7D42}\u{4E86}\u{65E5}\u{3088}\u{308A}\u{524D}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,rangeUnderflow:e=>`\u{5024}\u{306F} ${e.minValue} \u{4EE5}\u{4E0A}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,unavailableDate:`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8}\u{306F}\u{4F7F}\u{7528}\u{3067}\u{304D}\u{307E}\u{305B}\u{3093}\u{3002}`},"ko-KR":{rangeOverflow:e=>`\u{AC12}\u{C740} ${e.maxValue} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,rangeReversed:`\u{C2DC}\u{C791}\u{C77C}\u{C740} \u{C885}\u{B8CC}\u{C77C} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,rangeUnderflow:e=>`\u{AC12}\u{C740} ${e.minValue} \u{C774}\u{C0C1}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,unavailableDate:`\u{C120}\u{D0DD}\u{D55C} \u{B0A0}\u{C9DC}\u{B97C} \u{C0AC}\u{C6A9}\u{D560} \u{C218} \u{C5C6}\u{C2B5}\u{B2C8}\u{B2E4}.`},"lt-LT":{rangeOverflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.maxValue} arba ankstesn\u{117}.`,rangeReversed:`Prad\u{17E}ios data turi b\u{16B}ti ankstesn\u{117} nei pabaigos data.`,rangeUnderflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.minValue} arba naujesn\u{117}.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.maxValue} vai agr\u{101}kai.`,rangeReversed:`S\u{101}kuma datumam ir j\u{101}b\u{16B}t pirms beigu datuma.`,rangeUnderflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.minValue} vai v\u{113}l\u{101}kai.`,unavailableDate:`Atlas\u{12B}tais datums nav pieejams.`},"nb-NO":{rangeOverflow:e=>`Verdien m\xe5 v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:`Startdatoen m\xe5 v\xe6re f\xf8r sluttdatoen.`,rangeUnderflow:e=>`Verdien m\xe5 v\xe6re ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.maxValue} lub wcze\u{15B}niejsz\u{105}.`,rangeReversed:`Data rozpocz\u{119}cia musi by\u{107} wcze\u{15B}niejsza ni\u{17C} data zako\u{144}czenia.`,rangeUnderflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.minValue} lub p\xf3\u{17A}niejsz\u{105}.`,unavailableDate:`Wybrana data jest niedost\u{119}pna.`},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:`A data inicial deve ser anterior \xe0 data final.`,rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:`Data selecionada indispon\xedvel.`},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:`A data de in\xedcio deve ser anterior \xe0 data de fim.`,rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:`Data selecionada indispon\xedvel.`},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie s\u{103} fie ${e.maxValue} sau anterioar\u{103}.`,rangeReversed:`Data de \xeenceput trebuie s\u{103} fie anterioar\u{103} datei de sf\xe2r\u{219}it.`,rangeUnderflow:e=>`Valoarea trebuie s\u{103} fie ${e.minValue} sau ulterioar\u{103}.`,unavailableDate:`Data selectat\u{103} nu este disponibil\u{103}.`},"ru-RU":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{43F}\u{43E}\u{437}\u{436}\u{435} ${e.maxValue}.`,rangeReversed:`\u{414}\u{430}\u{442}\u{430} \u{43D}\u{430}\u{447}\u{430}\u{43B}\u{430} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{430} \u{43F}\u{440}\u{435}\u{434}\u{448}\u{435}\u{441}\u{442}\u{432}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{434}\u{430}\u{442}\u{435} \u{43E}\u{43A}\u{43E}\u{43D}\u{447}\u{430}\u{43D}\u{438}\u{44F}.`,rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{44C}\u{448}\u{435} ${e.minValue}.`,unavailableDate:`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430} \u{43D}\u{435}\u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{430}.`},"sk-SK":{rangeOverflow:e=>`Hodnota mus\xed by\u{165} ${e.maxValue} alebo skor\u{161}ia.`,rangeReversed:`D\xe1tum za\u{10D}iatku mus\xed by\u{165} skor\u{161}\xed ako d\xe1tum konca.`,rangeUnderflow:e=>`Hodnota mus\xed by\u{165} ${e.minValue} alebo neskor\u{161}ia.`,unavailableDate:`Vybrat\xfd d\xe1tum je nedostupn\xfd.`},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u{161}a.`,rangeReversed:`Za\u{10D}etni datum mora biti pred kon\u{10D}nim datumom.`,rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u{161}a.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:`Datum po\u{10D}etka mora biti pre datuma zavr\u{161}etka.`,rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:`Startdatumet m\xe5ste vara f\xf6re slutdatumet.`,rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:`Det valda datumet \xe4r inte tillg\xe4ngligt.`},"tr-TR":{rangeOverflow:e=>`De\u{11F}er, ${e.maxValue} veya \xf6ncesi olmal\u{131}d\u{131}r.`,rangeReversed:`Ba\u{15F}lang\u{131}\xe7 tarihi biti\u{15F} tarihinden \xf6nce olmal\u{131}d\u{131}r.`,rangeUnderflow:e=>`De\u{11F}er, ${e.minValue} veya sonras\u{131} olmal\u{131}d\u{131}r.`,unavailableDate:`Se\xe7ilen tarih kullan\u{131}lam\u{131}yor.`},"uk-UA":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{43F}\u{456}\u{437}\u{43D}\u{456}\u{448}\u{435} ${e.maxValue}.`,rangeReversed:`\u{414}\u{430}\u{442}\u{430} \u{43F}\u{43E}\u{447}\u{430}\u{442}\u{43A}\u{443} \u{43C}\u{430}\u{454} \u{43F}\u{435}\u{440}\u{435}\u{434}\u{443}\u{432}\u{430}\u{442}\u{438} \u{434}\u{430}\u{442}\u{456} \u{437}\u{430}\u{432}\u{435}\u{440}\u{448}\u{435}\u{43D}\u{43D}\u{44F}.`,rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{456}\u{448}\u{435} ${e.minValue}.`,unavailableDate:`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430} \u{43D}\u{435}\u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{430}.`},"zh-CN":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{65E5}\u{671F}\u{3002}`,rangeReversed:`\u{5F00}\u{59CB}\u{65E5}\u{671F}\u{5FC5}\u{987B}\u{65E9}\u{4E8E}\u{7ED3}\u{675F}\u{65E5}\u{671F}\u{3002}`,rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{65E5}\u{671F}\u{3002}`,unavailableDate:`\u{6240}\u{9009}\u{65E5}\u{671F}\u{4E0D}\u{53EF}\u{7528}\u{3002}`},"zh-TW":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{3002}`,rangeReversed:`\u{958B}\u{59CB}\u{65E5}\u{671F}\u{5FC5}\u{9808}\u{5728}\u{7D50}\u{675F}\u{65E5}\u{671F}\u{4E4B}\u{524D}\u{3002}`,rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{3002}`,unavailableDate:`\u{6240}\u{9078}\u{65E5}\u{671F}\u{7121}\u{6CD5}\u{4F7F}\u{7528}\u{3002}`}};var rX=n(27532);let rQ={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},r0={...rQ,customError:!0,valid:!1},r1={isInvalid:!1,validationDetails:rQ,validationErrors:[]},r2=(0,v.createContext)({}),r3="__formValidationState"+Date.now();function r4(e){if(e[r3]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:o}=e[r3];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:o}}return function(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:o,validate:i,validationBehavior:s="aria"}=e;n&&(t||(t="invalid"===n));let l=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:r0}:null,c=(0,v.useMemo)(()=>i&&null!=a?r6(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return r5(n)}return[]}(i,a)):null,[i,a]);(null==o?void 0:o.validationDetails.valid)&&(o=void 0);let u=(0,v.useContext)(r2),d=(0,v.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>r5(u[e])):r5(u[r]):[],[u,r]),[p,f]=(0,v.useState)(u),[m,h]=(0,v.useState)(!1);u!==p&&(f(u),h(!1));let g=(0,v.useMemo)(()=>r6(m?[]:d),[m,d]),b=(0,v.useRef)(r1),[y,A]=(0,v.useState)(r1),$=(0,v.useRef)(r1),[k,x]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{if(!k)return;x(!1);let e=c||o||b.current;r7(e,$.current)||($.current=e,A(e))}),{realtimeValidation:l||g||c||o||r1,displayValidation:"native"===s?l||g||y:l||g||c||o||y,updateValidation(e){"aria"!==s||r7(y,e)?b.current=e:A(e)},resetValidation(){r7(r1,$.current)||($.current=r1,A(r1)),"native"===s&&x(!1),h(!0)},commitValidation(){"native"===s&&x(!0),h(!0)}}}(e)}function r5(e){return e?Array.isArray(e)?e:[e]:[]}function r6(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:r0}:null}function r7(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,n)=>e===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([e,n])=>t.validationDetails[e]===n)}function r8(...e){let t=new Set,n=!1,r={...rQ};for(let a of e){for(let e of a.validationErrors)t.add(e);for(let e in n||(n=a.isInvalid),r)r[e]||(r[e]=a.validationDetails[e])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}let r9=new nv((u=rZ)&&u.__esModule?u.default:u);function ae(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function at(e,t,n,r,a){let o=null!=e&&null!=n&&e.compare(n)>0,i=null!=e&&null!=t&&0>e.compare(t),s=null!=e&&(null==r?void 0:r(e))||!1,l=o||i||s,c=[];if(l){let e=ae(),r=new nk(e,nv.getGlobalDictionaryForPackage("@react-stately/datepicker")||r9),l=new nD(e,aa({},a)),u=l.resolvedOptions().timeZone;i&&null!=t&&c.push(r.format("rangeUnderflow",{minValue:l.format(t.toDate(u))})),o&&null!=n&&c.push(r.format("rangeOverflow",{maxValue:l.format(n.toDate(u))})),s&&c.push(r.format("unavailableDate"))}return{isInvalid:l,validationErrors:c,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:i,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}let an={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},ar={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function aa(e,t){var n;e={...t.shouldForceLeadingZeros?ar:an,...e};let r=t.granularity||"minute",a=Object.keys(e),o=a.indexOf(null!=(n=t.maxGranularity)?n:"year");o<0&&(o=0);let i=a.indexOf(r);if(i<0&&(i=2),o>i)throw Error("maxGranularity must be greater than granularity");let s=a.slice(o,i+1).reduce((t,n)=>(t[n]=e[n],t),{});return null!=t.hourCycle&&(s.hour12=12===t.hourCycle),s.timeZone=t.timeZone||"UTC",("hour"===r||"minute"===r||"second"===r)&&t.timeZone&&!t.hideTimeZone&&(s.timeZoneName="short"),t.showEra&&0===o&&(s.era="short"),s}function ao(e){return e&&"hour"in e?e:new(0,rX.gX)}function ai(e,t){return null===e?null:e?(0,Z.yP)(e,t):void 0}function as(e,t,n,r){if(e)return ai(e,n);let a=(0,Z.yP)((0,X.tB)(null!=r?r:(0,X.Xj)()).set({hour:0,minute:0,second:0,millisecond:0}),n);return"year"===t||"month"===t||"day"===t?(0,Z.gw)(a):r?a:(0,Z.tR)(a)}function al(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw Error("Invalid granularity "+t+" for value "+e.toString());let[a,o]=(0,v.useState)([r,n]);return e&&(a[0]!==r||a[1]!==n)&&o([r,n]),t||(t=e?r:a[0]),[t,e?n:a[1]]}let ac=new nv({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:"\xe5\xe5\xe5\xe5",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:"\xf1\xf1"},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:"\xe9\xe9\xe9\xe9",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"},nb:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},no:{year:"\xe5\xe5\xe5\xe5",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:"\xe5\xe5\xe5\xe5",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"),au={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},ad={year:5,month:2,day:7,hour:2,minute:15,second:15},ap={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function af(e){var t,n,r;let{locale:a,createCalendar:o,hideTimeZone:i,isDisabled:s=!1,isReadOnly:l=!1,isRequired:c=!1,minValue:u,maxValue:d,isDateUnavailable:p}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[m,h]=al(f,e.granularity),g=h||"UTC";if(f&&!(m in f))throw Error("Invalid granularity "+m+" for value "+f.toString());let b=(0,v.useMemo)(()=>new nD(a),[a]),y=(0,v.useMemo)(()=>o(b.resolvedOptions().calendar),[o,b]),[A,$]=n9(e.value,null!=(t=e.defaultValue)?t:null,e.onChange),[k]=(0,v.useState)(A),x=(0,v.useMemo)(()=>{var e;return null!=(e=ai(A,y))?e:null},[A,y]),[C,w]=(0,v.useState)(()=>as(e.placeholderValue,m,y,h)),E="gregory"===y.identifier&&"BC"===(x||C).era,D=(0,v.useMemo)(()=>{var t;return{granularity:m,maxGranularity:null!=(t=e.maxGranularity)?t:"year",timeZone:h,hideTimeZone:i,hourCycle:e.hourCycle,showEra:E,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,h,i,E]),S=(0,v.useMemo)(()=>aa({},D),[D]),B=(0,v.useMemo)(()=>new nD(a,S),[a,S]),z=(0,v.useMemo)(()=>B.resolvedOptions(),[B]),P=(0,v.useMemo)(()=>B.formatToParts(new Date).filter(e=>au[e.type]).reduce((e,t)=>(e[ap[t.type]||t.type]=!0,e),{}),[B]),[T,M]=(0,v.useState)(()=>e.value||e.defaultValue?{...P}:{}),O=(0,v.useRef)(null),F=(0,v.useRef)(y);(0,v.useEffect)(()=>{(0,X.Jg)(y,F.current)||(F.current=y,w(t=>Object.keys(T).length>0?(0,Z.yP)(t,y):as(e.placeholderValue,m,y,h)))},[y,m,T,h,e.placeholderValue]),A&&Object.keys(T).length<Object.keys(P).length&&M(T={...P}),null==A&&Object.keys(T).length===Object.keys(P).length&&(M(T={}),w(as(e.placeholderValue,m,y,h)));let I=x&&Object.keys(T).length>=Object.keys(P).length?x:C,N=t=>{if(e.isDisabled||e.isReadOnly)return;let n=Object.keys(T),r=Object.keys(P);null==t?($(null),w(as(e.placeholderValue,m,y,h)),M({})):0===n.length&&null==O.current||n.length>=r.length||n.length===r.length-1&&P.dayPeriod&&!T.dayPeriod&&"dayPeriod"!==O.current?(0===n.length&&M(T={...P}),$(t=(0,Z.yP)(t,(null==f?void 0:f.calendar)||new(0,n8.FG)))):w(t),O.current=null},j=(0,v.useMemo)(()=>I.toDate(g),[I,g]),R=(0,v.useMemo)(()=>(function(e,t,n,r,a,o,i,s){let l=["hour","minute","second"],c=n.formatToParts(e),u=[];for(let e of c){var d;let n=ap[e.type]||e.type,c=au[n];"era"===n&&1===o.getEras().length&&(c=!1);let p=au[n]&&!t[n],f=au[n]?(d=e.value,"era"===n||"dayPeriod"===n?d:"year"===n||"month"===n||"day"===n?ac.getStringForLocale(n,i):"––"):null,m={type:n,text:p?f:e.value,...am(a,n,r),isPlaceholder:p,placeholder:f,isEditable:c};"hour"===n?(u.push({type:"literal",text:"⁦",...am(a,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),u.push(m),n===s&&u.push({type:"literal",text:"⁩",...am(a,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):l.includes(n)&&n===s?(u.push(m),u.push({type:"literal",text:"⁩",...am(a,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):u.push(m)}return u})(j,T,B,z,I,y,a,m),[j,T,B,z,I,y,a,m]);P.era&&T.year&&!T.era?(T.era=!0,M({...T})):!P.era&&T.era&&(delete T.era,M({...T}));let L=e=>{T[e]=!0,"year"===e&&P.era&&(T.era=!0),M({...T})},V=(e,t)=>{if(T[e])N(function(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:"year"===t})}if("hour"in e)switch(t){case"dayPeriod":{let t=e.hour;return e.set({hour:t>=12?t-12:t+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:"hour"!==t,hourCycle:r.hour12?12:24})}throw Error("Unknown segment: "+t)}(I,e,t,z));else{L(e);let t=Object.keys(T),n=Object.keys(P);(t.length>=n.length||t.length===n.length-1&&P.dayPeriod&&!T.dayPeriod)&&N(I)}},H=(0,v.useMemo)(()=>at(A,u,d,p,D),[A,u,d,p,D]),G=r4({...e,value:A,builtinValidation:H}),U=G.displayValidation.isInvalid,q=e.validationState||(U?"invalid":null);return{...G,value:x,defaultValue:null!=(n=e.defaultValue)?n:k,dateValue:j,calendar:y,setValue:N,segments:R,dateFormatter:B,validationState:q,isInvalid:U,granularity:m,maxGranularity:null!=(r=e.maxGranularity)?r:"year",isDisabled:s,isReadOnly:l,isRequired:c,increment(e){V(e,1)},decrement(e){V(e,-1)},incrementPage(e){V(e,ad[e]||1)},decrementPage(e){V(e,-(ad[e]||1))},setSegment(e,t){L(e),N(function(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&"number"==typeof n)switch(t){case"dayPeriod":{let t=e.hour,r=t>=12;if(n>=12===r)return e;return e.set({hour:r?t-12:t+12})}case"hour":if(r.hour12){let t=e.hour>=12;t||12!==n||(n=0),t&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw Error("Unknown segment: "+t)}(I,e,t,z))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let t=Object.keys(T),n=Object.keys(P);t.length===n.length-1&&P.dayPeriod&&!T.dayPeriod&&(M(T={...P}),N(I.copy()))},clearSegment(t){delete T[t],O.current=t,M({...T});let n=as(e.placeholderValue,m,y,h),r=I;if("dayPeriod"===t&&"hour"in I&&"hour"in n){let e=I.hour>=12,t=n.hour>=12;e&&!t?r=I.set({hour:I.hour-12}):!e&&t&&(r=I.set({hour:I.hour+12}))}else"hour"===t&&"hour"in I&&I.hour>=12&&T.dayPeriod?r=I.set({hour:n.hour+12}):t in I&&(r=I.set({[t]:n[t]}));$(null),N(r)},formatValue:e=>x?new nD(a,aa(e,D)).format(j):"",getDateFormatter:(e,t)=>new nD(e,aa({},{...D,...t}))}}function am(e,t,n){switch(t){case"era":{let t=e.calendar.getEras();return{value:t.indexOf(e.era),minValue:0,maxValue:t.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:(0,X.xz)(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:(0,X.oT)(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:12*(e.hour>=12),minValue:0,maxValue:12};case"hour":if(n.hour12){let t=e.hour>=12;return{value:e.hour,minValue:12*!!t,maxValue:t?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{}}let ah=(0,v.createContext)(null),a_=(0,v.createContext)(null),ag=(0,v.createContext)(null),ab=(0,v.forwardRef)(function(e,t){let n=(0,v.useContext)(a_),r=(0,v.useContext)(ag);return n||r?v.createElement(av,{...e,ref:t}):v.createElement(ay,{...e,ref:t})}),ay=(0,v.forwardRef)((e,t)=>{let[n,r]=eN({slot:e.slot},t,ah),{locale:a}=eA(),o=af({...n,locale:a,createCalendar:J.d}),i=(0,v.useRef)(null),{fieldProps:s,inputProps:l}=rJ({...n,inputRef:i},o,r);return v.createElement(eO,{values:[[a_,o],[ry,{...l,ref:i}],[rg,{...s,ref:r,isInvalid:o.isInvalid,isDisabled:o.isDisabled}]]},v.createElement(av,e))}),av=(0,v.forwardRef)((e,t)=>{let{className:n,children:r}=e,a=(0,v.useContext)(a_),o=(0,v.useContext)(ag),i=null!=a?a:o;return v.createElement(v.Fragment,null,v.createElement(rb,{...e,ref:t,slot:e.slot||void 0,className:null!=n?n:"react-aria-DateInput",isInvalid:i.isInvalid,isDisabled:i.isDisabled},i.segments.map((e,t)=>(0,v.cloneElement)(r(e),{key:t}))),v.createElement(rv,null))}),aA=(0,v.createContext)({});function a$({children:e}){let t=(0,v.useMemo)(()=>({register:()=>{}}),[]);return v.createElement(tk.Provider,{value:t},e)}v.forwardRef(({children:e,...t},n)=>{let r=(0,v.useRef)(!1),a=(0,v.useContext)(tk);n=e$(n||(null==a?void 0:a.ref));let o=eT(a||{},{...t,ref:n,register(){r.current=!0,a&&a.register()}});return tE(a,n),(0,v.useEffect)(()=>{r.current||(r.current=!0)},[]),v.createElement(tk.Provider,{value:o},e)});let ak=v.createContext(null);function ax(e){var t;let n=eu(),{portalContainer:r=n?null:document.body,isExiting:a}=e,[o,i]=(0,v.useState)(!1),s=(0,v.useMemo)(()=>({contain:o,setContain:i}),[o,i]),{getContainer:l}=null!=(t=(0,v.useContext)(aA))?t:{};if(!e.portalContainer&&l&&(r=l()),!r)return null;let c=e.children;return e.disableFocusManagement||(c=v.createElement(rC,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!a},c)),c=v.createElement(ak.Provider,{value:s},v.createElement(a$,null,c)),tT.createPortal(c,r)}let aC=(0,v.createContext)(null),aw=(0,v.createContext)(null),aE=(0,v.forwardRef)(function(e,t){let n=e["aria-labelledby"];[e,t]=eN(e,t,aC);let{dialogProps:r,titleProps:a}=function(e,t){let n,r,{role:a="dialog"}=e,o=ez();o=e["aria-label"]?void 0:o;let i=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){t8(t.current);let e=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),t8(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),eC(()=>{null==r||r(!0)},[r=null==(n=(0,v.useContext)(ak))?void 0:n.setContain]),{dialogProps:{...eZ(e,{labelable:!0}),role:a,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:o}}}({...e,"aria-labelledby":n},t),o=(0,v.useContext)(aw);r["aria-label"]||r["aria-labelledby"]||e["aria-labelledby"]&&(r["aria-labelledby"]=e["aria-labelledby"]);let i=eF({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(null==o?void 0:o.close)||(()=>{})}}),s=eZ(e,{global:!0});return v.createElement("section",{...eT(s,i,r),ref:t,slot:e.slot||void 0},v.createElement(eO,{values:[[nm,{slots:{[eM]:{},title:{...a,level:2}}}],[np,{slots:{[eM]:{},close:{onPress:()=>null==o?void 0:o.close()}}}]]},i.children))}),aD=(0,v.createContext)(null),aS=(0,v.forwardRef)(function(e,t){let n=(0,v.useContext)(aD);return(null==n?void 0:n.isInvalid)?v.createElement(aB,{...e,ref:t}):null}),aB=(0,v.forwardRef)((e,t)=>{let n=(0,v.useContext)(aD),r=eZ(e,{global:!0}),a=eF({...e,defaultClassName:"react-aria-FieldError",defaultChildren:0===n.validationErrors.length?void 0:n.validationErrors.join(" "),values:n});return null==a.children?null:v.createElement(n_,{slot:"errorMessage",...r,...a,ref:t})}),az=(0,v.createContext)(null);var aP=n(68569);let aT=["day","month","year"],aM={hour:1,minute:2,second:3};function aO(e){let{state:t}=e,{containerProps:n,inputProps:r}=function(e,t){let{autoComplete:n,isDisabled:r,name:a}=e,{visuallyHiddenProps:o}=nU({style:{position:"fixed",top:0,left:0}}),i=60;"second"===t.granularity?i=1:"hour"===t.granularity&&(i=3600);let s=null==t.value?"":t.value.toString(),l="day"===t.granularity?"date":"datetime-local",c=["hour","minute","second"],u=0;return c.includes(t.granularity)&&(u=aM[t.granularity],c=c.slice(0,u)),{containerProps:{...o,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:n,disabled:r,type:l,form:"",name:a,step:i,value:s,onChange:e=>{let n=e.target.value.toString();if(n)try{let e=(0,aP.DP)(n);if("day"===t.granularity&&(e=(0,aP._U)(n)),"setSegment"in t)for(let n in e)aT.includes(n)&&t.setSegment(n,e[n]),c.includes(n)&&t.setSegment(n,e[n]);t.setValue(e)}catch{}}}}}({...e},t);return v.createElement("div",{...n,"data-testid":"hidden-dateinput-container"},v.createElement("input",r))}let aF=(0,v.createContext)({}),aI=nd(function(e,t){[e,t]=eN(e,t,aF);let{elementType:n="label",...r}=e;return v.createElement(n,{className:"react-aria-Label",...r,ref:t})}),aN=(0,v.createContext)({placement:"bottom"}),aj="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,aR=new WeakMap,aL=[];function aV(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function aH(e,t){let n=e,r=0,a=t.toString(),o=a.toLowerCase().indexOf("e-");if(o>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+o;else{let e=a.indexOf(".");e>=0&&(r=a.length-e)}if(r>0){let e=Math.pow(10,r);n=Math.round(n*e)/e}return n}function aG(e,t,n,r){t=Number(t),n=Number(n);let a=(e-(isNaN(t)?0:t))%r,o=aH(2*Math.abs(a)>=r?e+Math.sign(a)*(r-Math.abs(a)):e-a,r);return isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(aH(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(aH((n-t)/r,r))*r),o=aH(o,r)}let aU={top:"top",bottom:"top",left:"left",right:"left"},aq={top:"bottom",bottom:"top",left:"right",right:"left"},aW={top:"left",left:"top"},aK={top:"height",left:"width"},aY={width:"totalWidth",height:"totalHeight"},aJ={},aZ="undefined"!=typeof document?window.visualViewport:null;function aX(e){var t,n,r,a,o;let i=0,s=0,l=0,c=0,u=0,d=0,p={},f=(null!=(t=null==aZ?void 0:aZ.scale)?t:1)>1;if("BODY"===e.tagName){let t=document.documentElement;l=t.clientWidth,c=t.clientHeight,i=null!=(n=null==aZ?void 0:aZ.width)?n:l,s=null!=(r=null==aZ?void 0:aZ.height)?r:c,p.top=t.scrollTop||e.scrollTop,p.left=t.scrollLeft||e.scrollLeft,aZ&&(u=aZ.offsetTop,d=aZ.offsetLeft)}else({width:i,height:s,top:u,left:d}=a3(e)),p.top=e.scrollTop,p.left=e.scrollLeft,l=i,c=s;return td()&&("BODY"===e.tagName||"HTML"===e.tagName)&&f&&(p.top=0,p.left=0,u=null!=(a=null==aZ?void 0:aZ.pageTop)?a:0,d=null!=(o=null==aZ?void 0:aZ.pageLeft)?o:0),{width:i,height:s,totalWidth:l,totalHeight:c,scroll:p,top:u,left:d}}function aQ(e,t,n,r,a,o,i){var s;let l=null!=(s=a.scroll[e])?s:0,c=r[aK[e]],u=r.scroll[aU[e]]+o,d=c+r.scroll[aU[e]]-o,p=t-l+i[e]-r[aU[e]],f=t-l+n+i[e]-r[aU[e]];return p<u?u-p:f>d?Math.max(d-f,u-p):0}function a0(e){if(aJ[e])return aJ[e];let[t,n]=e.split(" "),r=aU[t]||"right",a=aW[r];aU[n]||(n="center");let o=aK[r],i=aK[a];return aJ[e]={placement:t,crossPlacement:n,axis:r,crossAxis:a,size:o,crossSize:i},aJ[e]}function a1(e,t,n,r,a,o,i,s,l,c){var u,d,p,f,m;let{placement:h,crossPlacement:g,axis:b,crossAxis:y,size:v,crossSize:A}=r,$={};$[y]=null!=(u=e[y])?u:0,"center"===g?$[y]+=((null!=(d=e[A])?d:0)-(null!=(p=n[A])?p:0))/2:g!==y&&($[y]+=(null!=(f=e[A])?f:0)-(null!=(m=n[A])?m:0)),$[y]+=o;let k=e[y]-n[A]+l+c,x=e[y]+e[A]-l-c;if($[y]=aV($[y],k,x),h===b){let n=s?i[v]:t[aY[v]];$[aq[b]]=Math.floor(n-e[b]+a)}else $[b]=Math.floor(e[b]+e[v]+a);return $}function a2(e,t,n,r,a,o){var i,s,l;let{placement:c,axis:u,size:d}=o;return c===u?Math.max(0,n[u]-e[u]-(null!=(i=e.scroll[u])?i:0)+t[u]-(null!=(s=r[u])?s:0)-r[aq[u]]-a):Math.max(0,e[d]+e[u]+e.scroll[u]-t[u]-n[u]-n[d]-(null!=(l=r[u])?l:0)-r[aq[u]]-a)}function a3(e){let{top:t,left:n,width:r,height:a}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:i,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+o-s,left:n+i-l,width:r,height:a}}function a4(e,t){let n,r=window.getComputedStyle(e);if("fixed"===r.position){let{top:t,left:r,width:a,height:o}=e.getBoundingClientRect();n={top:t,left:r,width:a,height:o}}else{n=a3(e);let r=a3(t),a=window.getComputedStyle(t);r.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,r.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=r.top,n.left-=r.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function a5(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}let a6=new WeakMap;function a7(e){let{ref:t,box:n,onResize:r}=e;(0,v.useEffect)(()=>{let e=null==t?void 0:t.current;if(e)if(void 0===window.ResizeObserver)return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)};else{let t=new window.ResizeObserver(e=>{e.length&&r()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}},[r,t,n])}let a8="undefined"!=typeof document?window.visualViewport:null;function a9(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}let oe=[],ot="undefined"!=typeof document&&window.visualViewport,on=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),or=0;function oa(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function oo(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function oi(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=n0(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect().top,r=n.getBoundingClientRect().top;r>t+n.clientHeight&&(e.scrollTop+=r-t)}n=e.parentElement}}var os={};function ol(e){var t;let{onDismiss:n,...r}=e,a=nV(r,nw((t=os)&&t.__esModule?t.default:t,"@react-aria/overlays").format("dismiss"));return v.createElement(nq,null,v.createElement("button",{...a,tabIndex:-1,onClick:()=>{n&&n()},style:{width:1,height:1}}))}function oc(e,t,n){eC(()=>{if(t&&e.current){if(!("getAnimations"in e.current))return void n();let t=e.current.getAnimations();if(0===t.length)return void n();let r=!1;return Promise.all(t.map(e=>e.finished)).then(()=>{r||(0,tT.flushSync)(()=>{n()})}).catch(()=>{}),()=>{r=!0}}},[e,t,n])}function ou(e){let[t,n]=n9(e.isOpen,e.defaultOpen||!1,e.onOpenChange),r=(0,v.useCallback)(()=>{n(!0)},[n]),a=(0,v.useCallback)(()=>{n(!1)},[n]),o=(0,v.useCallback)(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:a,toggle:o}}os={"ar-AE":{dismiss:`\u{62A}\u{62C}\u{627}\u{647}\u{644}`},"bg-BG":{dismiss:`\u{41E}\u{442}\u{445}\u{432}\u{44A}\u{440}\u{43B}\u{44F}\u{43D}\u{435}`},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:`Schlie\xdfen`},"el-GR":{dismiss:`\u{391}\u{3C0}\u{3CC}\u{3C1}\u{3C1}\u{3B9}\u{3C8}\u{3B7}`},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:`L\xf5peta`},"fi-FI":{dismiss:`Hylk\xe4\xe4`},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:`\u{5D4}\u{5EA}\u{5E2}\u{5DC}\u{5DD}`},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:`Elutas\xedt\xe1s`},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:`\u{9589}\u{3058}\u{308B}`},"ko-KR":{dismiss:`\u{BB34}\u{C2DC}`},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:`Ner\u{101}d\u{12B}t`},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:`\u{41F}\u{440}\u{43E}\u{43F}\u{443}\u{441}\u{442}\u{438}\u{442}\u{44C}`},"sk-SK":{dismiss:`Zru\u{161}i\u{165}`},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:`\u{421}\u{43A}\u{430}\u{441}\u{443}\u{432}\u{430}\u{442}\u{438}`},"zh-CN":{dismiss:`\u{53D6}\u{6D88}`},"zh-TW":{dismiss:`\u{95DC}\u{9589}`}};let od=(0,v.createContext)(null),op=(0,v.createContext)(null),of=(0,v.forwardRef)(function(e,t){[e,t]=eN(e,t,od);let n=(0,v.useContext)(aw),r=ou(e),a=null==e.isOpen&&null==e.defaultOpen&&n?n:r,o=function(e,t){let[n,r]=(0,v.useState)(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open")}let a="exiting"===n;return oc(e,a,(0,v.useCallback)(()=>{r(e=>"exiting"===e?"closed":e)},[])),a}(t,a.isOpen)||e.isExiting||!1,i=(0,v.useContext)(nu),{direction:s}=eA();if(i){let t=e.children;return"function"==typeof t&&(t=t({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),v.createElement(v.Fragment,null,t)}return!a||a.isOpen||o?v.createElement(om,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:o,dir:s}):null});function om({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...o}){var i,s;let l=(0,v.useRef)(null),c=(0,v.useRef)(null),u=(0,v.useContext)(op),d=u&&"SubmenuTrigger"===o.trigger,{popoverProps:p,underlayProps:f,arrowProps:m,placement:h,triggerAnchorPoint:g}=function(e,t){let{triggerRef:n,popoverRef:r,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:l,...c}=e,u="SubmenuTrigger"===c.trigger,{overlayProps:d,underlayProps:p}=function(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:a,isDismissable:o=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:s}=e;(0,v.useEffect)(()=>{if(a&&!oe.includes(t))return oe.push(t),()=>{let e=oe.indexOf(t);e>=0&&oe.splice(e,1)}},[a,t]);let l=()=>{oe[oe.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:a}=e,o=(0,v.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=eE(e=>{n&&a9(e,t)&&(a&&a(e),o.current.isPointerDown=!0)}),s=eE(e=>{n&&n(e)});(0,v.useEffect)(()=>{let e=o.current;if(r)return;let n=eX(t.current);if("undefined"!=typeof PointerEvent){let r=n=>{e.isPointerDown&&a9(n,t)&&s(n),e.isPointerDown=!1};return n.addEventListener("pointerdown",i,!0),n.addEventListener("click",r,!0),()=>{n.removeEventListener("pointerdown",i,!0),n.removeEventListener("click",r,!0)}}},[t,r,i,s])}({ref:t,onInteractOutside:o&&a?e=>{(!s||s(e.target))&&(oe[oe.length-1]===t&&(e.stopPropagation(),e.preventDefault()),l())}:void 0,onInteractOutsideStart:e=>{(!s||s(e.target))&&oe[oe.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=nr({isDisabled:!r,onBlurWithin:e=>{!(!e.relatedTarget||rS(e.relatedTarget,rx))&&(!s||s(e.relatedTarget))&&(null==n||n())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||i||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),l())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:l},null!=o?o:r),{overlayProps:f,arrowProps:m,placement:h,triggerAnchorPoint:g}=function(e){var t,n,r,a;let{direction:o}=eA(),{arrowSize:i,targetRef:s,overlayRef:l,arrowRef:c,scrollRef:u=l,placement:d="bottom",containerPadding:p=12,shouldFlip:f=!0,boundaryElement:m="undefined"!=typeof document?document.body:null,offset:h=0,crossOffset:g=0,shouldUpdatePosition:b=!0,isOpen:y=!0,onClose:A,maxHeight:$,arrowBoundaryOffset:k=0}=e,[x,C]=(0,v.useState)(null),w=[b,d,l.current,s.current,null==c?void 0:c.current,u.current,p,f,m,h,g,y,o,$,k,i],E=(0,v.useRef)(null==a8?void 0:a8.scale);(0,v.useEffect)(()=>{y&&(E.current=null==a8?void 0:a8.scale)},[y]);let D=(0,v.useCallback)(()=>{var e,t,n,r,a,v,A,x,w,D;if(!1===b||!y||!l.current||!s.current||!m||(null==a8?void 0:a8.scale)!==E.current||l.current.querySelector("[data-react-aria-incomplete]")||(null==(e=(t=l.current).getAnimations)?void 0:e.call(t).length)>0)return;let S=null;if(u.current&&u.current.contains(document.activeElement)){let e=null==(r=document.activeElement)?void 0:r.getBoundingClientRect(),t=u.current.getBoundingClientRect();(S={type:"top",offset:(null!=(a=null==e?void 0:e.top)?a:0)-t.top}).offset>t.height/2&&(S.type="bottom",S.offset=(null!=(v=null==e?void 0:e.bottom)?v:0)-t.bottom)}let B=l.current;!$&&l.current&&(B.style.top="0px",B.style.bottom="",B.style.maxHeight=(null!=(x=null==(A=window.visualViewport)?void 0:A.height)?x:window.innerHeight)+"px");let z=function(e){var t,n,r,a;let o,{placement:i,targetNode:s,overlayNode:l,scrollNode:c,padding:u,shouldFlip:d,boundaryElement:p,offset:f,crossOffset:m,maxHeight:h,arrowSize:g=0,arrowBoundaryOffset:b=0}=e,y=l instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!a5(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!a5(t);)t=t.parentElement;return t||document.documentElement}(l):document.documentElement,v=y===document.documentElement,A=window.getComputedStyle(y).position,$=v?a3(s):a4(s,y);if(!v){let{marginTop:e,marginLeft:t}=window.getComputedStyle(s);$.top+=parseInt(e,10)||0,$.left+=parseInt(t,10)||0}let k=a3(l),x={top:parseInt((o=window.getComputedStyle(l)).marginTop,10)||0,bottom:parseInt(o.marginBottom,10)||0,left:parseInt(o.marginLeft,10)||0,right:parseInt(o.marginRight,10)||0};k.width+=(null!=(t=x.left)?t:0)+(null!=(n=x.right)?n:0),k.height+=(null!=(r=x.top)?r:0)+(null!=(a=x.bottom)?a:0);let C={top:c.scrollTop,left:c.scrollLeft,width:c.scrollWidth,height:c.scrollHeight},w=aX(p),E=aX(y),D="BODY"===p.tagName?a3(y):a4(y,p);return"HTML"===y.tagName&&"BODY"===p.tagName&&(E.scroll.top=0,E.scroll.left=0),function(e,t,n,r,a,o,i,s,l,c,u,d,p,f,m,h){var g,b,y,v,A,$,k,x,C,w,E,D,S,B;let z,P,T,M=a0(e),{size:O,crossAxis:F,crossSize:I,placement:N,crossPlacement:j}=M,R=a1(t,s,n,M,u,d,c,p,m,h),L=u,V=a2(s,c,t,a,o+u,M);if(i&&r[O]>V){let e=a0(`${aq[N]} ${j}`),r=a1(t,s,n,e,u,d,c,p,m,h);a2(s,c,t,a,o+u,e)>V&&(M=e,R=r,L=u)}let H="bottom";"top"===M.axis?"top"===M.placement?H="top":"bottom"===M.placement&&(H="bottom"):"top"===M.crossAxis&&("top"===M.crossPlacement?H="bottom":"bottom"===M.crossPlacement&&(H="top"));let G=aQ(F,R[F],n[I],s,l,o,c);R[F]+=G;let U=(A=R,$=n.height,k=H,z=p?c.height:s[aY.height],P=null!=A.top?c.top+A.top:c.top+(z-(null!=(x=A.bottom)?x:0)-$),T="top"!==k?Math.max(0,s.height+s.top+(null!=(C=s.scroll.top)?C:0)-P-((null!=(w=a.top)?w:0)+(null!=(E=a.bottom)?E:0)+o)):Math.max(0,P+$-(s.top+(null!=(D=s.scroll.top)?D:0))-((null!=(S=a.top)?S:0)+(null!=(B=a.bottom)?B:0)+o)),Math.min(s.height-2*o,T));f&&f<U&&(U=f),n.height=Math.min(n.height,U),G=aQ(F,(R=a1(t,s,n,M,L,d,c,p,m,h))[F],n[I],s,l,o,c),R[F]+=G;let q={},W=t[F]-R[F]-a[aU[F]],K=W+.5*t[I],Y=m/2+h,J="left"===aU[F]?(null!=(g=a.left)?g:0)+(null!=(b=a.right)?b:0):(null!=(y=a.top)?y:0)+(null!=(v=a.bottom)?v:0),Z=n[I]-J-m/2-h,X=aV(K,t[F]+m/2-(R[F]+a[aU[F]]),t[F]+t[I]-m/2-(R[F]+a[aU[F]]));q[F]=aV(X,Y,Z),({placement:N,crossPlacement:j}=M),m?W=q[F]:"right"===j?W+=t[I]:"center"===j&&(W+=t[I]/2);let Q="left"===N||"top"===N?n[O]:0,ee={x:"top"===N||"bottom"===N?W:Q,y:"left"===N||"right"===N?W:Q};return{position:R,maxHeight:U,arrowOffsetLeft:q.left,arrowOffsetTop:q.top,placement:N,triggerAnchorPoint:ee}}(i,$,k,C,x,u,d,w,E,D,f,m,!!A&&"static"!==A,h,g,b)}({placement:(D=d,"rtl"===o?D.replace("start","right").replace("end","left"):D.replace("start","left").replace("end","right")),overlayNode:l.current,targetNode:s.current,scrollNode:u.current||l.current,padding:p,shouldFlip:f,boundaryElement:m,offset:h,crossOffset:g,maxHeight:$,arrowSize:null!=(w=null!=i?i:null==c||null==(n=c.current)?void 0:n.getBoundingClientRect().width)?w:0,arrowBoundaryOffset:k});if(z.position){if(B.style.top="",B.style.bottom="",B.style.left="",B.style.right="",Object.keys(z.position).forEach(e=>B.style[e]=z.position[e]+"px"),B.style.maxHeight=null!=z.maxHeight?z.maxHeight+"px":"",S&&document.activeElement&&u.current){let e=document.activeElement.getBoundingClientRect(),t=u.current.getBoundingClientRect(),n=e[S.type]-t[S.type];u.current.scrollTop+=n-S.offset}C(z)}},w);eC(D,w),eC(()=>(window.addEventListener("resize",a,!1),()=>{window.removeEventListener("resize",a,!1)}),[a=D]),a7({ref:l,onResize:D}),a7({ref:s,onResize:D});let S=(0,v.useRef)(!1);eC(()=>{let e,t=()=>{S.current=!0,clearTimeout(e),e=setTimeout(()=>{S.current=!1},500),D()},n=()=>{S.current&&t()};return null==a8||a8.addEventListener("resize",t),null==a8||a8.addEventListener("scroll",n),()=>{null==a8||a8.removeEventListener("resize",t),null==a8||a8.removeEventListener("scroll",n)}},[D]);let B=(0,v.useCallback)(()=>{S.current||null==A||A()},[A,S]);return!function(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,v.useEffect)(()=>{if(!n||null===r)return;let e=e=>{let n=e.target;if(!t.current||n instanceof Node&&!n.contains(t.current)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let a=r||a6.get(t.current);a&&a()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[n,r,t])}({triggerRef:s,isOpen:y,onClose:A&&B}),{overlayProps:{style:{position:x?"absolute":"fixed",top:x?void 0:0,left:x?void 0:0,zIndex:1e5,...null==x?void 0:x.position,maxHeight:null!=(t=null==x?void 0:x.maxHeight)?t:"100vh"}},placement:null!=(n=null==x?void 0:x.placement)?n:null,triggerAnchorPoint:null!=(r=null==x?void 0:x.triggerAnchorPoint)?r:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:null==x?void 0:x.arrowOffsetLeft,top:null==x?void 0:x.arrowOffsetTop}},updatePosition:D}}({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i&&!u?t.close:null});return!function(e={}){let{isDisabled:t}=e;eC(()=>{if(!t){let e,t,n,r,o;return 1==++or&&(a=tu()?(n=null,r=ex(oo(document,"touchstart",n=>{((e=n0(n.target,!0))!==document.documentElement||e!==document.body)&&e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=oa(e,"overscrollBehavior","contain"))},{passive:!1,capture:!0}),oo(document,"touchmove",t=>{e&&e!==document.documentElement&&e!==document.body?e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault():t.preventDefault()},{passive:!1,capture:!0}),oo(document,"touchend",()=>{t&&t()},{passive:!1,capture:!0}),oo(document,"focus",e=>{var t;let r=e.target;((t=r)instanceof HTMLInputElement&&!on.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable)&&((()=>{if(n)return;let e=window.pageXOffset,t=window.pageYOffset;n=ex(oo(window,"scroll",()=>{window.scrollTo(0,0)}),oa(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),oa(document.documentElement,"overflow","hidden"),oa(document.body,"marginTop",`-${t}px`),()=>{window.scrollTo(e,t)}),window.scrollTo(0,0)})(),r.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{r.style.transform="",ot&&(ot.height<window.innerHeight?requestAnimationFrame(()=>{oi(r)}):ot.addEventListener("resize",()=>oi(r),{once:!0}))}))},!0)),()=>{null==t||t(),null==n||n(),r()}):ex((o=window.innerWidth-document.documentElement.clientWidth)>0&&("scrollbarGutter"in document.documentElement.style?oa(document.documentElement,"scrollbarGutter","stable"):oa(document.documentElement,"paddingRight",`${o}px`)),oa(document.documentElement,"overflow","hidden"))),()=>{0==--or&&a()}}},[t])}({isDisabled:i||!t.isOpen}),(0,v.useEffect)(()=>{if(t.isOpen&&r.current){let t,u,d,p,f,m,h,g,b,y,v;if(i){var e,n,a,s,l,c=null!=(e=null==o?void 0:o.current)?e:r.current;let t=aL[aL.length-1];return t&&!t.visibleNodes.has(c)?(t.visibleNodes.add(c),()=>{t.visibleNodes.delete(c)}):void 0}return d=null!=(l=null==(u=(s={shouldUseInert:!0})instanceof(t=eQ((a=[null!=(n=null==o?void 0:o.current)?n:r.current],a[0]))).Element?{root:s}:s)?void 0:u.root)?l:document.body,p=(null==u?void 0:u.shouldUseInert)&&aj,f=new Set(a),m=new Set,h=(e,n)=>{p&&e instanceof t.HTMLElement?e.inert=n:n?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof t.HTMLElement&&(e.inert=!1))},g=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))f.add(t);let t=e=>{if(m.has(e)||f.has(e)||e.parentElement&&m.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of f)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&b(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;null!=e;)b(e),e=n.nextNode()}},b=e=>{var n;let r=null!=(n=aR.get(e))?n:0;(p&&e instanceof t.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===r||(0===r&&h(e,!0),m.add(e),aR.set(e,r+1))},aL.length&&aL[aL.length-1].disconnect(),g(d),(y=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&![...f,...m].some(e=>e.contains(t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?f.add(e):e instanceof Element&&g(e)})).observe(d,{childList:!0,subtree:!0}),v={visibleNodes:f,hiddenNodes:m,observe(){y.observe(d,{childList:!0,subtree:!0})},disconnect(){y.disconnect()}},aL.push(v),()=>{for(let e of(y.disconnect(),m)){let t=aR.get(e);null!=t&&(1===t?(h(e,!1),aR.delete(e)):aR.set(e,t-1))}v===aL[aL.length-1]?(aL.pop(),aL.length&&aL[aL.length-1].observe()):aL.splice(aL.indexOf(v),1)}}},[i,t.isOpen,r,o]),{popoverProps:eT(d,f),arrowProps:m,underlayProps:p,placement:h,triggerAnchorPoint:g}}({...o,offset:null!=(i=o.offset)?i:8,arrowRef:l,groupRef:d?u:c},e),b=o.popoverRef,y=function(e,t=!0){let[n,r]=(0,v.useState)(!0),a=n&&t;return eC(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,a]),oc(e,a,(0,v.useCallback)(()=>r(!1),[])),a}(b,!!h)||o.isEntering||!1,A=eF({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:h,isEntering:y,isExiting:t}}),$=!o.isNonModal||"SubmenuTrigger"===o.trigger,[k,x]=(0,v.useState)(!1);eC(()=>{b.current&&x($&&!b.current.querySelector("[role=dialog]"))},[b,$]),(0,v.useEffect)(()=>{k&&"SubmenuTrigger"!==o.trigger&&b.current&&!b.current.contains(document.activeElement)&&t8(b.current)},[k,b,o.trigger]);let C=(0,v.useMemo)(()=>{let e=A.children;if(r)for(let t of r)e=v.createElement(t.Provider,{value:null},e);return e},[A.children,r]),w={...p.style,"--trigger-anchor-point":g?`${g.x}px ${g.y}px`:void 0,...A.style},E=v.createElement("div",{...eT(eZ(o,{global:!0}),p),...A,role:k?"dialog":void 0,tabIndex:k?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:b,slot:o.slot||void 0,style:w,dir:o.dir,"data-trigger":o.trigger,"data-placement":h,"data-entering":y||void 0,"data-exiting":t||void 0},!o.isNonModal&&v.createElement(ol,{onDismiss:e.close}),v.createElement(aN.Provider,{value:{...m,placement:h,ref:l}},C),v.createElement(ol,{onDismiss:e.close}));return d?v.createElement(ax,{...o,shouldContainFocus:k,isExiting:t,portalContainer:null!=(s=null!=n?n:null==u?void 0:u.current)?s:void 0},E):v.createElement(ax,{...o,shouldContainFocus:k,isExiting:t,portalContainer:n},!o.isNonModal&&e.isOpen&&v.createElement("div",{"data-testid":"underlay",...f,style:{position:"fixed",inset:0}}),v.createElement("div",{ref:c,style:{display:"contents"}},v.createElement(op.Provider,{value:c},E)))}function oh(e){return(null==e?void 0:e.start)!=null&&null!=e.end}let o_=(0,v.createContext)(null),og=(0,v.createContext)(null),ob=(0,v.createContext)(null),oy=(0,v.createContext)(null),ov=[rg,np,aF,nh],oA=(0,v.forwardRef)(function(e,t){var n,r;[e,t]=eN(e,t,o_);let{validationBehavior:a}=eI(az)||{},o=null!=(r=null!=(n=e.validationBehavior)?n:a)?r:"native",i=function(e){var t,n;let r=ou(e),[a,o]=n9(e.value,e.defaultValue||null,e.onChange),[i]=(0,v.useState)(a),s=a||e.placeholderValue||null,[l,c]=al(s,e.granularity),u=null!=a?a.toDate(null!=c?c:"UTC"):null,d="hour"===l||"minute"===l||"second"===l,p=null==(t=e.shouldCloseOnSelect)||t,[f,m]=(0,v.useState)(null),[h,g]=(0,v.useState)(null);if(a&&(f=a,"hour"in a&&(h=a)),s&&!(l in s))throw Error("Invalid granularity "+l+" for value "+s.toString());let b=(null==a?void 0:a.calendar.identifier)==="gregory"&&"BC"===a.era,y=(0,v.useMemo)(()=>({granularity:l,timeZone:c,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:b}),[l,e.hourCycle,e.shouldForceLeadingZeros,c,e.hideTimeZone,b]),{minValue:A,maxValue:$,isDateUnavailable:k}=e,x=(0,v.useMemo)(()=>at(a,A,$,k,y),[a,A,$,k,y]),C=r4({...e,value:a,builtinValidation:x}),w=C.displayValidation.isInvalid,E=e.validationState||(w?"invalid":null),D=(e,t)=>{o("timeZone"in t?t.set((0,Z.gw)(e)):(0,Z.tR)(e,t)),m(null),g(null),C.commitValidation()};return{...C,value:a,defaultValue:null!=(n=e.defaultValue)?n:i,setValue:o,dateValue:f,timeValue:h,setDateValue:t=>{let n="function"==typeof p?p():p;d?h||n?D(t,h||ao(e.defaultValue||e.placeholderValue)):m(t):(o(t),C.commitValidation()),n&&r.setOpen(!1)},setTimeValue:e=>{f&&e?D(f,e):g(e)},granularity:l,hasTime:d,...r,setOpen(t){!t&&!a&&f&&d&&D(f,h||ao(e.defaultValue||e.placeholderValue)),r.setOpen(t)},validationState:E,isInvalid:w,formatValue:(e,t)=>u?new nD(e,aa(t,y)).format(u):"",getDateFormatter:(e,t)=>new nD(e,aa({},{...y,...t}))}}({...e,validationBehavior:o}),s=(0,v.useRef)(null),[l,c]=ej(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:u,labelProps:d,fieldProps:p,buttonProps:f,dialogProps:m,calendarProps:h,descriptionProps:g,errorMessageProps:b,...y}=function(e,t,n){var r;let a=eB(),o=eB(),i=eB(),s=nw((r=rA)&&r.__esModule?r.default:r,"@react-aria/datepicker"),{isInvalid:l,validationErrors:c,validationDetails:u}=t.displayValidation,{labelProps:d,fieldProps:p,descriptionProps:f,errorMessageProps:m}=rU({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||c}),h=rV(t,n),g=p["aria-labelledby"]||p.id,{locale:b}=eA(),y=t.formatValue(b,{month:"long"}),A=nJ(y?s.format("selectedDateDescription",{date:y}):""),$=[A["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")||void 0,k=eZ(e),x=(0,v.useMemo)(()=>rI(n),[n]),C=(0,v.useRef)(!1),{focusWithinProps:w}=nr({...e,isDisabled:t.isOpen,onBlurWithin:t=>{let n=document.getElementById(o);if(!(null==n?void 0:n.contains(t.relatedTarget))){var r,a;C.current=!1,null==(r=e.onBlur)||r.call(e,t),null==(a=e.onFocusChange)||a.call(e,!1)}},onFocusWithin:t=>{if(!C.current){var n,r;C.current=!0,null==(n=e.onFocus)||n.call(e,t),null==(r=e.onFocusChange)||r.call(e,!0)}}});return{groupProps:eT(k,h,p,A,w,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":g,"aria-describedby":$,onKeyDown(n){!t.isOpen&&e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){!t.isOpen&&e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...d,onClick:()=>{x.focusFirst()}},fieldProps:{...p,id:i,[rK]:"presentation","aria-describedby":$,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[r3]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:f,errorMessageProps:m,buttonProps:{...A,id:a,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${a} ${g}`,"aria-describedby":$,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:o,"aria-labelledby":`${a} ${g}`},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,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:l,validationErrors:c,validationDetails:u}}({...eR(e),label:c,validationBehavior:o},i,s),[A,$]=(0,v.useState)(null),k=(0,v.useCallback)(()=>{s.current&&$(s.current.offsetWidth+"px")},[]);a7({ref:s,onResize:k});let{focusProps:x,isFocused:C,isFocusVisible:w}=na({within:!0}),E=eF({...e,values:{state:i,isFocusWithin:C,isFocusVisible:w,isDisabled:e.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen},defaultClassName:"react-aria-DatePicker"}),D=eZ(e,{global:!0});return delete D.id,v.createElement(eO,{values:[[ob,i],[rg,{...u,ref:s,isInvalid:i.isInvalid}],[ah,p],[np,{...f,isPressed:i.isOpen}],[aF,{...d,ref:l,elementType:"span"}],[ro,h],[aw,i],[od,{trigger:"DatePicker",triggerRef:s,placement:"bottom start",style:{"--trigger-width":A},clearContexts:ov}],[aC,m],[nh,{slots:{description:g,errorMessage:b}}],[aD,y]]},v.createElement("div",{...eT(D,E,x),ref:t,slot:e.slot||void 0,"data-focus-within":C||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":w||void 0,"data-disabled":e.isDisabled||void 0,"data-open":i.isOpen||void 0}),v.createElement(aO,{autoComplete:e.autoComplete,name:e.name,isDisabled:e.isDisabled,state:i}))}),o$=(0,v.forwardRef)(function(e,t){var n,r;[e,t]=eN(e,t,og);let{validationBehavior:a}=eI(az)||{},o=null!=(r=null!=(n=e.validationBehavior)?n:a)?r:"native",i=function(e){var t,n,r,a;let o=ou(e),[i,s]=n9(e.value,e.defaultValue||null,e.onChange),[l]=(0,v.useState)(i),[c,u]=(0,v.useState)(()=>i||{start:null,end:null});null==i&&c.start&&c.end&&u(c={start:null,end:null});let d=i||c,p=e=>{u(d=e||{start:null,end:null}),oh(d)?s(d):s(null)},[f,m]=al((null==d?void 0:d.start)||(null==d?void 0:d.end)||e.placeholderValue||null,e.granularity),h="hour"===f||"minute"===f||"second"===f,g=null==(r=e.shouldCloseOnSelect)||r,[b,y]=(0,v.useState)(null),[A,$]=(0,v.useState)(null);d&&oh(d)&&(b=d,"hour"in d.start&&(A=d));let k=(e,t)=>{p({start:"timeZone"in t.start?t.start.set((0,Z.gw)(e.start)):(0,Z.tR)(e.start,t.start),end:"timeZone"in t.end?t.end.set((0,Z.gw)(e.end)):(0,Z.tR)(e.end,t.end)}),y(null),$(null),P.commitValidation()},x=t=>{let n="function"==typeof g?g():g;h?oh(t)&&(n||(null==A?void 0:A.start)&&(null==A?void 0:A.end))?k(t,{start:(null==A?void 0:A.start)||ao(e.placeholderValue),end:(null==A?void 0:A.end)||ao(e.placeholderValue)}):y(t):oh(t)?(p(t),P.commitValidation()):y(t),n&&o.setOpen(!1)},C=e=>{oh(b)&&oh(e)?k(b,e):$(e)},w=(null==d||null==(t=d.start)?void 0:t.calendar.identifier)==="gregory"&&"BC"===d.start.era||(null==d||null==(n=d.end)?void 0:n.calendar.identifier)==="gregory"&&"BC"===d.end.era,E=(0,v.useMemo)(()=>({granularity:f,timeZone:m,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:w}),[f,e.hourCycle,e.shouldForceLeadingZeros,m,e.hideTimeZone,w]),{minValue:D,maxValue:S,isDateUnavailable:B}=e,z=(0,v.useMemo)(()=>{var e,t,n;let r;return r=r8(at(null!=(t=null==(e=d)?void 0:e.start)?t:null,D,S,B,E),at(null!=(n=null==e?void 0:e.end)?n:null,D,S,B,E)),(null==e?void 0:e.end)!=null&&null!=e.start&&0>e.end.compare(e.start)&&(r=r8(r,{isInvalid:!0,validationErrors:[(nv.getGlobalDictionaryForPackage("@react-stately/datepicker")||r9).getStringForLocale("rangeReversed",ae())],validationDetails:{...rQ,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),r},[d,D,S,B,E]),P=r4({...e,value:i,name:(0,v.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:z}),T=P.displayValidation.isInvalid,M=e.validationState||(T?"invalid":null);return{...P,value:d,defaultValue:null!=(a=e.defaultValue)?a:l,setValue:p,dateRange:b,timeRange:A,granularity:f,hasTime:h,setDate(e,t){var n,r;"start"===e?x({start:t,end:null!=(n=null==b?void 0:b.end)?n:null}):x({start:null!=(r=null==b?void 0:b.start)?r:null,end:t})},setTime(e,t){var n,r;"start"===e?C({start:t,end:null!=(n=null==A?void 0:A.end)?n:null}):C({start:null!=(r=null==A?void 0:A.start)?r:null,end:t})},setDateTime(e,t){var n,r;"start"===e?p({start:t,end:null!=(n=null==d?void 0:d.end)?n:null}):p({start:null!=(r=null==d?void 0:d.start)?r:null,end:t})},setDateRange:x,setTimeRange:C,...o,setOpen(t){!t&&!((null==d?void 0:d.start)&&(null==d?void 0:d.end))&&oh(b)&&h&&k(b,{start:(null==A?void 0:A.start)||ao(e.placeholderValue),end:(null==A?void 0:A.end)||ao(e.placeholderValue)}),o.setOpen(t)},validationState:M,isInvalid:T,formatValue(t,n){let r;if(!d||!d.start||!d.end)return null;let a="timeZone"in d.start?d.start.timeZone:void 0,o=e.granularity||(d.start&&"minute"in d.start?"minute":"day"),i="timeZone"in d.end?d.end.timeZone:void 0,s=e.granularity||(d.end&&"minute"in d.end?"minute":"day"),l=aa(n,{granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===d.start.calendar.identifier&&"BC"===d.start.era||"gregory"===d.end.calendar.identifier&&"BC"===d.end.era}),c=d.start.toDate(a||"UTC"),u=d.end.toDate(i||"UTC"),p=new nD(t,l);if(a===i&&o===s&&0!==d.start.compare(d.end)){try{let e=p.formatRangeToParts(c,u),t=-1;for(let n=0;n<e.length;n++){let r=e[n];if("shared"===r.source&&"literal"===r.type)t=n;else if("endRange"===r.source)break}let n="",r="";for(let a=0;a<e.length;a++)a<t?n+=e[a].value:a>t&&(r+=e[a].value);return{start:n,end:r}}catch{}r=p}else r=new nD(t,aa(n,{granularity:s,timeZone:i,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:p.format(c),end:r.format(u)}},getDateFormatter:(e,t)=>new nD(e,aa({},{...E,...t}))}}({...e,validationBehavior:o}),s=(0,v.useRef)(null),[l,c]=ej(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:u,labelProps:d,startFieldProps:p,endFieldProps:f,buttonProps:m,dialogProps:h,calendarProps:g,descriptionProps:b,errorMessageProps:y,...A}=function(e,t,n){var r,a,o,i,s,l,c,u;let d=nw((u=rA)&&u.__esModule?u.default:u,"@react-aria/datepicker"),{isInvalid:p,validationErrors:f,validationDetails:m}=t.displayValidation,{labelProps:h,fieldProps:g,descriptionProps:b,errorMessageProps:y}=rU({...e,labelElementType:"span",isInvalid:p,errorMessage:e.errorMessage||f}),A=g["aria-labelledby"]||g.id,{locale:$}=eA(),k=t.formatValue($,{month:"long"}),x=nJ(k?d.format("selectedRangeDescription",{startDate:k.start,endDate:k.end}):""),C={"aria-label":d.format("startDate"),"aria-labelledby":A},w={"aria-label":d.format("endDate"),"aria-labelledby":A},E=eB(),D=eB(),S=rV(t,n),B=[x["aria-describedby"],g["aria-describedby"]].filter(Boolean).join(" ")||void 0,z=(0,v.useMemo)(()=>rI(n,{accept:e=>e.id!==E}),[n,E]),P={[rY]:z,[rK]:"presentation","aria-describedby":B,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},T=eZ(e),M=(0,v.useRef)(!1),{focusWithinProps:O}=nr({...e,isDisabled:t.isOpen,onBlurWithin:t=>{let n=document.getElementById(D);if(!(null==n?void 0:n.contains(t.relatedTarget))){var r,a;M.current=!1,null==(r=e.onBlur)||r.call(e,t),null==(a=e.onFocusChange)||a.call(e,!1)}},onFocusWithin:t=>{if(!M.current){var n,r;M.current=!0,null==(n=e.onFocus)||n.call(e,t),null==(r=e.onFocusChange)||r.call(e,!0)}}}),F=(0,v.useRef)(r1),I=(0,v.useRef)(r1);return{groupProps:eT(T,S,g,x,O,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":B,onKeyDown(n){!t.isOpen&&e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){!t.isOpen&&e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...h,onClick:()=>{z.focusFirst()}},buttonProps:{...x,id:E,"aria-haspopup":"dialog","aria-label":d.format("calendar"),"aria-labelledby":`${E} ${A}`,"aria-describedby":B,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:D,"aria-labelledby":`${E} ${A}`},startFieldProps:{...C,...P,value:null!=(l=null==(r=t.value)?void 0:r.start)?l:null,defaultValue:null==(a=t.defaultValue)?void 0:a.start,onChange:e=>t.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,form:e.form,[r3]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){F.current=e,t.updateValidation(r8(e,I.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...w,...P,value:null!=(c=null==(o=t.value)?void 0:o.end)?c:null,defaultValue:null==(i=t.defaultValue)?void 0:i.end,onChange:e=>t.setDateTime("end",e),name:e.endName,form:e.form,[r3]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){I.current=e,t.updateValidation(r8(F.current,e))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:b,errorMessageProps:y,calendarProps:{autoFocus:!0,value:(null==(s=t.dateRange)?void 0:s.start)&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:p,validationErrors:f,validationDetails:m}}({...eR(e),label:c,validationBehavior:o},i,s),[$,k]=(0,v.useState)(null),x=(0,v.useCallback)(()=>{s.current&&k(s.current.offsetWidth+"px")},[]);a7({ref:s,onResize:x});let{focusProps:C,isFocused:w,isFocusVisible:E}=na({within:!0}),D=eF({...e,values:{state:i,isFocusWithin:w,isFocusVisible:E,isDisabled:e.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen},defaultClassName:"react-aria-DateRangePicker"}),S=eZ(e,{global:!0});return delete S.id,v.createElement(eO,{values:[[oy,i],[rg,{...u,ref:s,isInvalid:i.isInvalid}],[np,{...m,isPressed:i.isOpen}],[aF,{...d,ref:l,elementType:"span"}],[ri,g],[aw,i],[od,{trigger:"DateRangePicker",triggerRef:s,placement:"bottom start",style:{"--trigger-width":$},clearContexts:ov}],[aC,h],[ah,{slots:{start:p,end:f}}],[nh,{slots:{description:b,errorMessage:y}}],[aD,A]]},v.createElement("div",{...eT(S,D,C),ref:t,slot:e.slot||void 0,"data-focus-within":w||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":E||void 0,"data-disabled":e.isDisabled||void 0,"data-open":i.isOpen||void 0}))});var ok=n(42729),ox=n(22613),oC=n(47197),ow={};ow.styleTagTransform=F(),ow.setAttributes=P(),ow.insert=B().bind(null,"head"),ow.domAPI=D(),ow.insertStyleElement=M(),w()(oC.A,ow);let oE=oC.A&&oC.A.locals?oC.A.locals:void 0;var oD=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-activity",iconProps:e})})),oS=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-add",iconProps:e})})),oB=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-arrow-down",iconProps:e})})),oz=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-arrow-left",iconProps:e})})),oP=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-arrow-right",iconProps:e})})),oT=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-arrow-up",iconProps:e})})),oM=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-baby",iconProps:e})})),oO=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-calendar-heat-map",iconProps:e})})),oF=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-calendar",iconProps:e})})),oI=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-caret-down",iconProps:e})})),oN=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-caret-left",iconProps:e})})),oj=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-caret-right",iconProps:e})})),oR=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-caret-up",iconProps:e})})),oL=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-checkmark-filled",iconProps:e})})),oV=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-checkmark-outline",iconProps:e})})),oH=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-chart-average",iconProps:e})})),oG=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-chemistry",iconProps:e})})),oU=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-chevron-down",iconProps:e})})),oq=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-chevron-left",iconProps:e})})),oW=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-chevron-right",iconProps:e})})),oK=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-chevron-up",iconProps:e})})),oY=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-close-filled",iconProps:e})})),oJ=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-close-outline",iconProps:e})})),oZ=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-close",iconProps:e})})),oX=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-document-attachment",iconProps:e})})),oQ=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-document",iconProps:e})})),o0=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-download",iconProps:e})})),o1=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-drug-order",iconProps:e})})),o2=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-edit",iconProps:e})})),o3=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-event-schedule",iconProps:e})})),o4=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-events",iconProps:e})})),o5=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-gender-female",iconProps:e})})),o6=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-gender-male",iconProps:e})})),o7=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-gender-other",iconProps:e})})),o8=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-gender-unknown",iconProps:e})})),o9=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-generic-order-type",iconProps:e})})),ie=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-group",iconProps:e})})),it=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-group-access",iconProps:e})})),ir=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-hospital-bed",iconProps:e})})),ia=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-image-medical",iconProps:e})})),io=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-inventory-management",iconProps:e})})),ii=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-information",iconProps:e})})),is=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-information-filled",iconProps:e})})),il=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-information-square",iconProps:e})})),ic=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-lab-order",iconProps:e})})),iu=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-list-checked",iconProps:e})})),id=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-location",iconProps:e})})),ip=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-pict-material-order",iconProps:e})})),im=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-maximize",iconProps:e})})),ih=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-medication",iconProps:e})})),i_=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-message-queue",iconProps:e})})),ig=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-microscope",iconProps:e})})),ib=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-money",iconProps:e})})),iy=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-mother",iconProps:e})})),iv=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-movement",iconProps:e})})),iA=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-overflow-menu--horizontal",iconProps:e})})),i$=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-overflow-menu--horizontal",iconProps:e})})),ik=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-pedestrian-family",iconProps:e})})),ix=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-pen",iconProps:e})})),iC=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-print",iconProps:e})})),iw=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-pict-procedure-order",iconProps:e})})),iE=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-programs",iconProps:e})})),iD=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-pict-referral-order",iconProps:e})})),iS=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-renew",iconProps:e})})),iB=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-report",iconProps:e})})),iz=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-reset",iconProps:e})})),iP=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-translate",iconProps:e})})),iT=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-save",iconProps:e})})),iM=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-search",iconProps:e})})),iO=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-switcher",iconProps:e})})),iF=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-shopping-cart",iconProps:e})})),iI=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-shopping-cart--arrow-down",iconProps:e})})),iN=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-sticky-note-add",iconProps:e})})),ij=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-syringe",iconProps:e})})),iR=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-table-of-contents",iconProps:e})})),iL=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-table",iconProps:e})})),iV=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-time",iconProps:e})})),iH=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-tools",iconProps:e})})),iG=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-trash-can",iconProps:e})})),iU=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-tree-view--alt",iconProps:e})})),iq=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-user-avatar",iconProps:e})})),iW=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-user-follow",iconProps:e})})),iK=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-user-xray",iconProps:e})})),iY=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-password",iconProps:e})})),iJ=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-user",iconProps:e})})),iZ=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-view-off",iconProps:e})})),iX=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-view",iconProps:e})})),iQ=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(i6,{ref:t,icon:"omrs-icon-warning",iconProps:e})})),i0=iQ,i1=oX,i2=iu,i3=ia,i4=iI,i5=(0,v.memo)((0,v.forwardRef)(function(e,t){var n=e.icon,r=e.fallback,a=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["icon","fallback"]),o=(0,v.useRef)(document.getElementById(n));return(0,v.useEffect)(function(){var e=document.getElementById("omrs-svgs-container"),t=new MutationObserver(function(e){var t=!0,r=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var l=i.value;"childList"===l.type&&(o.current=document.getElementById(n))}}catch(e){r=!0,a=e}finally{try{t||null==s.return||s.return()}finally{if(r)throw a}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[n]),A().createElement(x.fS,{value:o.current,fallback:r},A().createElement(i6,{ref:t,icon:n,iconProps:a}))})),i6=(0,v.memo)((0,v.forwardRef)(function(e,t){var n=e.icon,r=Object.assign({},{fill:"currentColor",size:20},e.iconProps),a=r.className,o=r.fill,i=r.size;(i<=0||i>72)&&(console.error("Invalid size '".concat(i,"' specified for ").concat(n,". Defaulting to 20.")),i=20);var s=(0,v.useRef)(null);return(0,v.useImperativeHandle)(t,function(){return s.current}),(0,v.useEffect)(function(){s.current&&"currentColor"!==o&&s.current.style.setProperty("--omrs-icon-fill",o)},[]),A().createElement("svg",{ref:s,className:k()("omrs-icon",oE.icon,a),height:i,width:i,viewBox:"0 0 16 16"},A().createElement("use",{href:"#".concat(n)}))})),i7=n(23464),i8=n.n(i7);function i9(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function se(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)return n?e:void 0;if("string"==typeof e&&!e)return n?null:void 0;if(i9(e,rX.ng)||i9(e,rX._l)||i9(e,rX.Ip))return t?(0,Z.yP)(e,t):e;var r=i8()(e).toDate(),a=new rX.ng(r.getFullYear(),r.getMonth()+1,r.getDate());return t?(0,Z.yP)(a,t):a}function st(e){if(e)return e.toDate((0,X.Xj)())}var sn=(0,v.createContext)(null),sr={};function sa(){return"undefined"!=typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}sr={"ar-AE":{decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:`\u{62D}\u{642}\u{644} \u{631}\u{642}\u{645}\u{64A}`},"bg-BG":{decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:`\u{41D}\u{43E}\u{43C}\u{435}\u{440} \u{43D}\u{430} \u{43F}\u{43E}\u{43B}\u{435}\u{442}\u{43E}`},"cs-CZ":{decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:`\u{10C}\xedseln\xe9 pole`},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:`\u{3A0}\u{3B5}\u{3B4}\u{3AF}\u{3BF} \u{3B1}\u{3C1}\u{3B9}\u{3B8}\u{3BC}\u{3BF}\u{3CD}`},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo de n\xfamero`},"et-EE":{decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:`Numbri v\xe4li`},"fi-FI":{decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:`Numerokentt\xe4`},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:`\u{5E9}\u{5D3}\u{5D4} \u{5DE}\u{5E1}\u{5E4}\u{5E8}`},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:`Sz\xe1mmez\u{151}`},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:`\u{6570}\u{5024}\u{30D5}\u{30A3}\u{30FC}\u{30EB}\u{30C9}`},"ko-KR":{decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:`\u{BC88}\u{D638} \u{D544}\u{B4DC}`},"lt-LT":{decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:`Skait\u{13C}u lauks`},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo de n\xfamero`},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo num\xe9rico`},"ro-RO":{decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:`C\xe2mp numeric`},"ru-RU":{decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:`\u{427}\u{438}\u{441}\u{43B}\u{43E}\u{432}\u{43E}\u{435} \u{43F}\u{43E}\u{43B}\u{435}`},"sk-SK":{decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:`\u{10C}\xedseln\xe9 pole`},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:`\u{160}tevil\u{10D}no polje`},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:`Nummerf\xe4lt`},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:`Say\u{131} alan\u{131}`},"uk-UA":{decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:`\u{41F}\u{43E}\u{43B}\u{435} \u{43D}\u{43E}\u{43C}\u{435}\u{440}\u{430}`},"zh-CN":{decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:`\u{6570}\u{5B57}\u{5B57}\u{6BB5}`},"zh-TW":{decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:`\u{6578}\u{5B57}\u{6B04}\u{4F4D}`}};var so=n(93092);function si(e={}){let{locale:t}=eA();return(0,v.useMemo)(()=>new(0,so.K)(t,e),[t,e])}var ss={};function sl(e){var t;let n=(0,v.useRef)(void 0),{value:r,textValue:a,minValue:o,maxValue:i,isDisabled:s,isReadOnly:l,isRequired:c,onIncrement:u,onIncrementPage:d,onDecrement:p,onDecrementPage:f,onDecrementToMin:m,onIncrementToMax:h}=e,g=nw((t=ss)&&t.__esModule?t.default:t,"@react-aria/spinbutton");(0,v.useEffect)(()=>()=>clearTimeout(n.current),[]);let b=(0,v.useRef)(!1),y=()=>{b.current=!0},A=()=>{b.current=!1},$=""===a?g.format("Empty"):(a||`${r}`).replace("-","−");(0,v.useEffect)(()=>{b.current&&(eV&&eV.clear("assertive"),eH($,"assertive"))},[$]);let k=eE(e=>{clearTimeout(n.current),null==u||u(),n.current=window.setTimeout(()=>{(void 0===i||isNaN(i)||void 0===r||isNaN(r)||r<i)&&k(60)},e)}),x=eE(e=>{clearTimeout(n.current),null==p||p(),n.current=window.setTimeout(()=>{(void 0===o||isNaN(o)||void 0===r||isNaN(r)||r>o)&&x(60)},e)}),C=e=>{e.preventDefault()},{addGlobalListener:w,removeAllGlobalListeners:E}=tD();return{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===r||isNaN(r)?void 0:r,"aria-valuetext":$,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":s||void 0,"aria-readonly":l||void 0,"aria-required":c||void 0,onKeyDown:e=>{if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey&&!l&&!e.nativeEvent.isComposing)switch(e.key){case"PageUp":if(d){e.preventDefault(),null==d||d();break}case"ArrowUp":case"Up":u&&(e.preventDefault(),null==u||u());break;case"PageDown":if(f){e.preventDefault(),null==f||f();break}case"ArrowDown":case"Down":p&&(e.preventDefault(),null==p||p());break;case"Home":m&&(e.preventDefault(),null==m||m());break;case"End":h&&(e.preventDefault(),null==h||h())}},onFocus:y,onBlur:A},incrementButtonProps:{onPressStart:()=>{k(400),w(window,"contextmenu",C)},onPressEnd:()=>{clearTimeout(n.current),E()},onFocus:y,onBlur:A},decrementButtonProps:{onPressStart:()=>{x(400),w(window,"contextmenu",C)},onPressEnd:()=>{clearTimeout(n.current),E()},onFocus:y,onBlur:A}}}ss={"ar-AE":{Empty:`\u{641}\u{627}\u{631}\u{63A}`},"bg-BG":{Empty:`\u{418}\u{437}\u{43F}\u{440}\u{430}\u{437}\u{43D}\u{438}`},"cs-CZ":{Empty:`Pr\xe1zdn\xe9`},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:`\u{386}\u{3B4}\u{3B5}\u{3B9}\u{3BF}`},"en-US":{Empty:"Empty"},"es-ES":{Empty:`Vac\xedo`},"et-EE":{Empty:`T\xfchjenda`},"fi-FI":{Empty:`Tyhj\xe4`},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:`\u{5E8}\u{5D9}\u{5E7}`},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:`\xdcres`},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:`\u{7A7A}`},"ko-KR":{Empty:`\u{BE44}\u{C5B4} \u{C788}\u{C74C}`},"lt-LT":{Empty:`Tu\u{161}\u{10D}ias`},"lv-LV":{Empty:`Tuk\u{161}s`},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:`\u{41D}\u{435} \u{437}\u{430}\u{43F}\u{43E}\u{43B}\u{43D}\u{435}\u{43D}\u{43E}`},"sk-SK":{Empty:`Pr\xe1zdne`},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:`Bo\u{15F}`},"uk-UA":{Empty:`\u{41F}\u{443}\u{441}\u{442}\u{43E}`},"zh-CN":{Empty:`\u{7A7A}`},"zh-TW":{Empty:`\u{7A7A}\u{767D}`}};var sc=n(95899);function su(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){let a=t.toString().split("."),o=n.toString().split("."),i=Math.pow(10,Math.max(a[1]&&a[1].length||0,o[1]&&o[1].length||0));t=Math.round(t*i),n=Math.round(n*i),r=("+"===e?t+n:t-n)/i}return r}let sd=(0,v.createContext)(null),sp=(0,v.createContext)(null),sf=(0,v.forwardRef)(function(e,t){var n,r;[e,t]=eN(e,t,sd);let{validationBehavior:a}=eI(az)||{},o=null!=(r=null!=(n=e.validationBehavior)?n:a)?r:"native",{locale:i}=eA(),s=function(e){let{minValue:t,maxValue:n,step:r,formatOptions:a,value:o,defaultValue:i=NaN,onChange:s,locale:l,isDisabled:c,isReadOnly:u}=e;null===o&&(o=NaN),void 0===o||isNaN(o)||(o=void 0===r||isNaN(r)?aV(o,t,n):aG(o,t,n,r)),isNaN(i)||(i=void 0===r||isNaN(r)?aV(i,t,n):aG(i,t,n,r));let[d,p]=n9(o,isNaN(i)?NaN:i,s),[f]=(0,v.useState)(d),[m,h]=(0,v.useState)(()=>isNaN(d)?"":new(0,so.K)(l,a).format(d)),g=(0,v.useMemo)(()=>new(0,sc.d)(l,a),[l,a]),b=(0,v.useMemo)(()=>g.getNumberingSystem(m),[g,m]),y=(0,v.useMemo)(()=>new(0,so.K)(l,{...a,numberingSystem:b}),[l,a,b]),A=(0,v.useMemo)(()=>y.resolvedOptions(),[y]),$=(0,v.useCallback)(e=>isNaN(e)||null===e?"":y.format(e),[y]),k=r4({...e,value:d}),x=void 0===r||isNaN(r)?1:r;"percent"===A.style&&(void 0===r||isNaN(r))&&(x=.01);let[C,w]=(0,v.useState)(d),[E,D]=(0,v.useState)(l),[S,B]=(0,v.useState)(a);Object.is(d,C)&&l===E&&a===S||(h($(d)),w(d),D(l),B(a));let z=(0,v.useMemo)(()=>g.parse(m),[g,m]),P=(e,r=0)=>{if(isNaN(z))return aG(isNaN(r)?0:r,t,n,x);{let r=aG(z,t,n,x);return"+"===e&&r>z||"-"===e&&r<z?r:aG(su(e,z,x),t,n,x)}},T=(0,v.useMemo)(()=>!c&&!u&&(isNaN(z)||void 0===n||isNaN(n)||aG(z,t,n,x)>z||su("+",z,x)<=n),[c,u,t,n,x,z]),M=(0,v.useMemo)(()=>!c&&!u&&(isNaN(z)||void 0===t||isNaN(t)||aG(z,t,n,x)<z||su("-",z,x)>=t),[c,u,t,n,x,z]);return{...k,validate:e=>g.isValidPartialNumber(e,t,n),increment:()=>{let e=P("+",t);e===d&&h($(e)),p(e),k.commitValidation()},incrementToMax:()=>{null!=n&&(p(aG(n,t,n,x)),k.commitValidation())},decrement:()=>{let e=P("-",n);e===d&&h($(e)),p(e),k.commitValidation()},decrementToMin:()=>{null!=t&&(p(t),k.commitValidation())},canIncrement:T,canDecrement:M,minValue:t,maxValue:n,numberValue:z,defaultNumberValue:isNaN(i)?f:i,setNumberValue:p,setInputValue:h,inputValue:m,commit:()=>{let e;if(!m.length){p(NaN),h(void 0===o?"":$(d));return}isNaN(z)?h($(d)):(e=void 0===r||isNaN(r)?aV(z,t,n):aG(z,t,n,r),p(e=g.parse($(e))),h($(void 0===o?e:d)),k.commitValidation())}}}({...e,locale:i,validationBehavior:o}),l=(0,v.useRef)(null),[c,u]=ej(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:d,groupProps:p,inputProps:f,incrementButtonProps:m,decrementButtonProps:h,descriptionProps:g,errorMessageProps:b,...y}=function(e,t,n){var r,a;let o,{id:i,decrementAriaLabel:s,incrementAriaLabel:l,isDisabled:c,isReadOnly:u,isRequired:d,minValue:p,maxValue:f,autoFocus:m,label:h,formatOptions:g,onBlur:b=()=>{},onFocus:y,onFocusChange:A,onKeyDown:$,onKeyUp:k,description:x,errorMessage:C,isWheelDisabled:w,...E}=e,{increment:D,incrementToMax:S,decrement:B,decrementToMin:z,numberValue:P,inputValue:T,commit:M,commitValidation:O}=t,F=nw((a=sr)&&a.__esModule?a.default:a,"@react-aria/numberfield"),I=eB(i),{focusProps:N}=t9({onBlur(){M()}}),j=si(g),R=(0,v.useMemo)(()=>j.resolvedOptions(),[j]),L=si({...g,currencySign:void 0}),V=(0,v.useMemo)(()=>isNaN(P)?"":L.format(P),[L,P]),{spinButtonProps:H,incrementButtonProps:G,decrementButtonProps:U}=sl({isDisabled:c,isReadOnly:u,isRequired:d,maxValue:f,minValue:p,onIncrement:D,onIncrementToMax:S,onDecrement:B,onDecrementToMin:z,value:P,textValue:V}),[q,W]=(0,v.useState)(!1),{focusWithinProps:K}=nr({isDisabled:c,onFocusWithinChange:W});!function(e,t){let{onScroll:n,isDisabled:r}=e,a=(0,v.useCallback)(e=>{!e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);nW(t,"wheel",r?void 0:a)}({onScroll:(0,v.useCallback)(e=>{!(Math.abs(e.deltaY)<=Math.abs(e.deltaX))&&(e.deltaY>0?D():e.deltaY<0&&B())},[B,D]),isDisabled:w||c||u||!q},n);let Y=(null!=(r=R.maximumFractionDigits)?r:0)>0,J=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,Z="numeric";tl()?J?Z="text":Y&&(Z="decimal"):tf()&&(J?Z="numeric":Y&&(Z="decimal"));let X=eZ(e),Q=(0,v.useCallback)(e=>{e.nativeEvent.isComposing||("Enter"===e.key?(M(),O()):e.continuePropagation())},[M,O]),{isInvalid:ee,validationErrors:et,validationDetails:en}=t.displayValidation,{labelProps:er,inputProps:ea,descriptionProps:eo,errorMessageProps:ei}=function(e,t,n){let r=eE(e=>{let r=n.current;if(!r)return;let a=null;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":a=r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentForward":a=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd+1):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentBackward":a=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart-1)+r.value.slice(r.selectionStart):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":a=r.value.slice(r.selectionStart);break;default:null!=e.data&&(a=r.value.slice(0,r.selectionStart)+e.data+r.value.slice(r.selectionEnd))}null!=a&&t.validate(a)||e.preventDefault()});(0,v.useEffect)(()=>{if(!sa()||!n.current)return;let e=n.current;return e.addEventListener("beforeinput",r,!1),()=>{e.removeEventListener("beforeinput",r,!1)}},[n,r]);let a=sa()?null:e=>{let n=e.target.value.slice(0,e.target.selectionStart)+e.data+e.target.value.slice(e.target.selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:o,inputProps:i,descriptionProps:s,errorMessageProps:l,...c}=function(e,t){var n;let{inputElementType:r="input",isDisabled:a=!1,isRequired:o=!1,isReadOnly:i=!1,type:s="text",validationBehavior:l="aria"}=e,[c,u]=n9(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=nn(e,t),p=r4({...e,value:c}),{isInvalid:f,validationErrors:m,validationDetails:h}=p.displayValidation,{labelProps:g,fieldProps:b,descriptionProps:y,errorMessageProps:A}=rU({...e,isInvalid:f,errorMessage:e.errorMessage||m}),$=eZ(e,{labelable:!0}),k={type:s,pattern:e.pattern},[x]=(0,v.useState)(c);return rG(t,null!=(n=e.defaultValue)?n:x,u),rq(e,p,t),(0,v.useEffect)(()=>{if(t.current instanceof eQ(t.current).HTMLTextAreaElement){let e=t.current;Object.defineProperty(e,"defaultValue",{get:()=>e.value,set:()=>{},configurable:!0})}},[t]),{labelProps:g,inputProps:eT($,"input"===r?k:void 0,{disabled:a,readOnly:i,required:o&&"native"===l,"aria-required":o&&"aria"===l||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:c,onChange:e=>u(e.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(v.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...b}),descriptionProps:y,errorMessageProps:A,isInvalid:f,validationErrors:m,validationDetails:h}}(e,n),u=(0,v.useRef)(null);return{inputProps:eT(i,{onBeforeInput:a,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;u.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:a}=u.current;n.current.value=e,n.current.setSelectionRange(r,a),t.setInputValue(e)}}}),labelProps:o,descriptionProps:s,errorMessageProps:l,...c}}({...E,...X,name:void 0,form:void 0,label:h,autoFocus:m,isDisabled:c,isReadOnly:u,isRequired:d,validate:void 0,[r3]:t,value:T,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:I,type:"text",inputMode:Z,onChange:e=>{t.validate(e)&&t.setInputValue(e)},onBlur:b,onFocus:y,onFocusChange:A,onKeyDown:(0,v.useMemo)(()=>ex(Q,$),[Q,$]),onKeyUp:k,description:x,errorMessage:C},t,n);rG(n,t.defaultNumberValue,t.setNumberValue);let es=eT(H,N,ea,{role:null,"aria-roledescription":tu()?null:F.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(es["aria-required"]=void 0);let el=e=>{var t;document.activeElement!==n.current&&("mouse"===e.pointerType?null==(t=n.current)||t.focus():e.target.focus())},ec=e["aria-label"]||("string"==typeof e.label?e.label:"");ec||(o=null!=e.label?er.id:e["aria-labelledby"]);let eu=eB(),ed=eB(),ep=eT(G,{"aria-label":l||F.format("increase",{fieldLabel:ec}).trim(),id:o&&!l?eu:null,"aria-labelledby":o&&!l?`${eu} ${o}`:null,"aria-controls":I,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:el}),ef=eT(U,{"aria-label":s||F.format("decrease",{fieldLabel:ec}).trim(),id:o&&!s?ed:null,"aria-labelledby":o&&!s?`${ed} ${o}`:null,"aria-controls":I,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:el});return{groupProps:{...K,role:"group","aria-disabled":c,"aria-invalid":ee?"true":void 0},labelProps:er,inputProps:es,incrementButtonProps:ep,decrementButtonProps:ef,errorMessageProps:ei,descriptionProps:eo,isInvalid:ee,validationErrors:et,validationDetails:en}}({...eR(e),label:u,validationBehavior:o},s,l),A=eF({...e,values:{state:s,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-NumberField"}),$=eZ(e,{global:!0});return delete $.id,v.createElement(eO,{values:[[sp,s],[rg,p],[ry,{...f,ref:l}],[aF,{...d,ref:c}],[np,{slots:{increment:m,decrement:h}}],[nh,{slots:{description:g,errorMessage:b}}],[aD,y]]},v.createElement("div",{...$,...A,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-required":e.isRequired||void 0,"data-invalid":y.isInvalid||void 0}),e.name&&v.createElement("input",{type:"hidden",name:e.name,form:e.form,value:isNaN(s.numberValue)?"":s.numberValue}))});function sm(e,t){return parseInt((0,ox.Yq)(e,{calendar:t.calendar,locale:t.baseName,day:!1,month:!1,noToday:!0,numberingSystem:"latn"}))}var sh=(0,v.forwardRef)(function(e,t){var n=e.className,r=(0,v.useContext)(rs),a=(0,v.useContext)(rl),o=null!=r?r:a,i=(0,v.useContext)(sn),s=(0,X.Xj)(),l=(0,ox.Yq)(o.visibleRange.start.toDate(s),{calendar:i.calendar,locale:i.baseName,day:!1,year:!1,noToday:!0}),c=sm(o.visibleRange.start.toDate(s),i),u=o.maxValue?sm(o.maxValue.toDate(s),i):void 0,d=o.minValue?sm(o.minValue.toDate(s),i):void 0,p=(0,v.useCallback)(function(e){o.setFocusedDate(o.focusedDate.cycle("year",e-o.focusedDate.year))},[]);return o&&A().createElement("span",{ref:t,className:n},A().createElement("span",null,l),A().createElement(sf,{formatOptions:{useGrouping:!1},maxValue:u,minValue:d,onChange:p,value:c},A().createElement(rv,null),A().createElement(rb,null,A().createElement(nf,{slot:"increment"},A().createElement(oR,{size:8})),A().createElement(nf,{slot:"decrement"},A().createElement(oI,{size:8})))))});function s_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function sb(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var sy=(0,v.forwardRef)(function(e,t){var n,r=(0,v.useContext)(ob),a=(n=eN({slot:e.slot},t,ah),function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(n,2)||function(e,t){if(e){if("string"==typeof e)return s_(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s_(e,t)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=a[0],i=a[1],s=eA().locale,l=af(sb(sg({},o),{locale:s,createCalendar:J.d})),c=(0,v.useRef)(null),u=rJ(sb(sg({},o),{inputRef:c}),l,i),d=u.fieldProps,p=u.inputProps,f=(0,v.useCallback)(function(){l.isDisabled||r.toggle()},[]);return A().createElement(eO,{values:[[a_,l],[ry,sb(sg({},p),{ref:c})],[rg,sb(sg({},d),{ref:i,isInvalid:l.isInvalid})]]},A().createElement(rb,sb(sg({},e),{id:e.id,ref:t,slot:e.slot||void 0,className:e.className,isDisabled:l.isDisabled,isInvalid:l.isInvalid,onClick:f}),l.segments.map(function(t,n){return(0,v.cloneElement)(e.children(t),{key:n})})),A().createElement(rv,null))});function sv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var sA=(0,v.forwardRef)(function(e,t){return(0,v.useContext)(ob).isInvalid?A().createElement(iQ,sv({ref:t,size:16},e)):A().createElement(oF,sv({ref:t,size:16},e))});class s${of(e){return this.dictionary.getStringForLocale(e,this.locale)}constructor(e,t){this.locale=e,this.dictionary=t}}let sk=new Map;function sx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function sC(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function sw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function sE(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var sD=(0,v.forwardRef)(function(e,t){var n,r,a,o,i,s,l,c,u,d,p=e.segment,f=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["segment"]),m=(0,v.useContext)(a_),h=e$(t),g=function(e,t,n){let r,a,o,i,s=(0,v.useRef)(""),{locale:l,direction:c}=eA(),u=function(){var e;let{locale:t}=eA(),n=nC((e=rA)&&e.__esModule?e.default:e,"@react-aria/datepicker");return(0,v.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new s$(t,n)}},[t,n])}(),{ariaLabel:d,ariaLabelledBy:p,ariaDescribedBy:f,focusManager:m}=rW.get(t),h=e.isPlaceholder?"":e.text,g=(0,v.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=nM({month:"long",timeZone:g.timeZone}),y=nM({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(h=y.format(t.dateValue));else{let e=b.format(t.dateValue);h=e!==h?`${h} \u{2013} ${e}`:e}let{spinButtonProps:A}=sl({value:e.value,textValue:h,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{s.current="",t.increment(e.type)},onDecrement:()=>{s.current="",t.decrement(e.type)},onIncrementPage:()=>{s.current="",t.incrementPage(e.type)},onDecrementPage:()=>{s.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{s.current="",void 0!==e.maxValue&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{s.current="",void 0!==e.minValue&&t.setSegment(e.type,e.minValue)}}),$=(0,v.useMemo)(()=>new(0,sc.d)(l,{maximumFractionDigits:0}),[l]),k=()=>{if(e.text===e.placeholder&&m.focusPrevious(),!$.isValidPartialNumber(e.text)||t.isReadOnly||e.isPlaceholder)"dayPeriod"===e.type&&t.clearSegment(e.type);else{let n=e.text.slice(0,-1),r=$.parse(n);0===(n=0===r?"":n).length||0===r?t.clearSegment(e.type):t.setSegment(e.type,r),s.current=n}},{startsWith:x}=(r=function(e){let{locale:t}=eA(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(sk.has(n))return sk.get(n);let r=new Intl.Collator(t,e);return sk.set(n,r),r}({usage:"search",sensitivity:"base"}),a=(0,v.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===r.compare(e.slice(0,t.length),t)),[r]),o=(0,v.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===r.compare(e.slice(-t.length),t)),[r]),i=(0,v.useCallback)((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let n=0,a=(t=t.normalize("NFC")).length;for(;n+a<=e.length;n++){let o=e.slice(n,n+a);if(0===r.compare(t,o))return!0}return!1},[r]),(0,v.useMemo)(()=>({startsWith:a,endsWith:o,contains:i}),[a,o,i])),C=nM({hour:"numeric",hour12:!0}),w=(0,v.useMemo)(()=>{let e=new Date;return e.setHours(0),C.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[C]),E=(0,v.useMemo)(()=>{let e=new Date;return e.setHours(12),C.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[C]),D=nM({year:"numeric",era:"narrow",timeZone:"UTC"}),S=(0,v.useMemo)(()=>{if("era"!==e.type)return[];let n=(0,Z.yP)(new(0,rX.ng)(1,1,1),t.calendar),r=t.calendar.getEras().map(e=>{let t=n.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:D.formatToParts(t).find(e=>"era"===e.type).value}}),a=function(e){e.sort();let t=e[0],n=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==n[e])return e;return 0}(r.map(e=>e.formatted));if(a)for(let e of r)e.formatted=e.formatted.slice(a);return r},[D,t.calendar,e.type]),B=n=>{if(t.isDisabled||t.isReadOnly)return;let r=s.current+n;switch(e.type){case"dayPeriod":if(x(w,n))t.setSegment("dayPeriod",0);else if(x(E,n))t.setSegment("dayPeriod",12);else break;m.focusNext();break;case"era":{let e=S.find(e=>x(e.formatted,n));e&&(t.setSegment("era",e.era),m.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!$.isValidPartialNumber(r))return;let a=$.parse(r),o=a,i=0===e.minValue;if("hour"===e.type&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":a>11&&(o=$.parse(n));break;case"h12":i=!1,a>12&&(o=$.parse(n))}void 0!==e.value&&e.value>=12&&a>1&&(a+=12)}else void 0!==e.maxValue&&a>e.maxValue&&(o=$.parse(n));if(isNaN(a))return;let l=0!==o||i;l&&t.setSegment(e.type,o),void 0!==e.maxValue&&(Number(a+"0")>e.maxValue||r.length>=String(e.maxValue).length)?(s.current="",l&&m.focusNext()):s.current=r}}};nW((0,v.useRef)("undefined"!=typeof document?document:null),"selectionchange",()=>{var e;let t=window.getSelection();(null==t?void 0:t.anchorNode)&&(null==(e=n.current)?void 0:e.contains(null==t?void 0:t.anchorNode))&&t.collapse(n.current)});let z=(0,v.useRef)("");nW(n,"beforeinput",r=>{if(n.current)switch(r.preventDefault(),r.inputType){case"deleteContentBackward":case"deleteContentForward":$.isValidPartialNumber(e.text)&&!t.isReadOnly&&k();break;case"insertCompositionText":z.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:null!=r.data&&B(r.data)}}),nW(n,"input",e=>{let{inputType:t,data:r}=e;"insertCompositionText"===t&&(n.current&&(n.current.textContent=z.current),null!=r&&(x(w,r)||x(E,r))&&B(r))}),eC(()=>{let e=n.current;return()=>{document.activeElement===e&&(m.focusPrevious()||m.focusNext())}},[n,m]);let P=tu()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e===(0,v.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])||t.isInvalid||(f=void 0);let T=eB(),M=!t.isDisabled&&!t.isReadOnly&&e.isEditable,O="literal"===e.type?"":u.of(e.type),F=nV({"aria-label":`${O}${d?`, ${d}`:""}${p?", ":""}`,"aria-labelledby":p});if("literal"===e.type)return{segmentProps:{"aria-hidden":!0}};let I={caretColor:"transparent"};if("rtl"===c){I.unicodeBidi="embed";let t=g[e.type];("numeric"===t||"2-digit"===t)&&(I.direction="ltr")}return{segmentProps:eT(A,F,{id:T,...P,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":f,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:M,suppressContentEditableWarning:M,spellCheck:M?"false":void 0,autoCorrect:M?"off":void 0,[parseInt(v.version,10)>=17?"enterKeyHint":"enterkeyhint"]:M?"next":void 0,inputMode:t.isDisabled||"dayPeriod"===e.type||"era"===e.type||!M?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:e=>{if("a"===e.key&&(ts()?e.metaKey:e.ctrlKey)&&e.preventDefault(),!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey)switch(e.key){case"Backspace":case"Delete":e.preventDefault(),e.stopPropagation(),k()}},onFocus:()=>{s.current="",n.current&&nQ(n.current,{containingElement:n0(n.current)});let e=window.getSelection();null==e||e.collapse(n.current)},style:I,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}(p,m,h).segmentProps,b=na(),y=b.focusProps,$=b.isFocused,k=b.isFocusVisible,x=nc(sE(sw({},f),{isDisabled:m.isDisabled||"literal"===p.type})),C=x.hoverProps,w=x.isHovered,E=(r=(n=sE(sw({},f),{values:sE(sw({},p),{isReadOnly:!p.isEditable,isInvalid:m.isInvalid,isDisabled:m.isDisabled,isHovered:w,isFocused:$,isFocusVisible:k}),defaultChildren:p.text})).className,a=n.style,o=n.children,s=void 0===(i=n.defaultClassName)?void 0:i,c=void 0===(l=n.defaultChildren)?void 0:l,u=n.defaultStyle,d=n.values,(0,v.useMemo)(function(){var e,t,n;return e="function"==typeof r?r(sC(sx({},d),{defaultClassName:s})):r,t="function"==typeof a?a(sC(sx({},d),{defaultStyle:u||{}})):a,n="function"==typeof o?o(sC(sx({},d),{defaultChildren:c})):null==o?c:o,{className:null!=e?e:s,style:t||u?sx({},u,t):void 0,children:null!=n?n:c,"data-rac":""}},[r,a,o,s,c,u,d])),D=(0,v.useCallback)(function(e){e.stopPropagation()},[]);return A().createElement("span",sE(sw({},eT(eZ(f),g,y,C),E),{ref:h,style:g.style,"data-placeholder":p.isPlaceholder||void 0,"data-invalid":m.isInvalid||void 0,"data-readonly":!p.isEditable||void 0,"data-disabled":m.isDisabled||void 0,"data-type":p.type,"data-hovered":w||void 0,"data-focused":$||void 0,"data-focus-visible":k||void 0,onClick:D}))}),sS=n(73335),sB={};sB.styleTagTransform=F(),sB.setAttributes=P(),sB.insert=B().bind(null,"head"),sB.domAPI=D(),sB.insertStyleElement=M(),w()(sS.A,sB);let sz=sS.A&&sS.A.locals?sS.A.locals:void 0;function sP(e){var t=e.children,n=e.isRangePicker,r=(0,v.useContext)(ob),a=(0,v.useContext)(oy),o=void 0!==n&&n?a:r,i=(0,U.useOnClickOutside)(function(){return null==o?void 0:o.close()});return A().createElement(aE,{className:sz.dialog,ref:i},t)}function sT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sM={short:!1,size:"md"};function sO(e){return A().createElement(ev,e)}var sF=(0,v.forwardRef)(function(e,t){var n,r,a,o=Object.assign({},sM,e),i=o.className,s=o.defaultValue,l=o.isDisabled,c=o.invalid,u=o.invalidText,d=o.isInvalid,p=o.label,f=o.labelText,m=o.light,h=o.maxDate,g=o.minDate,b=o.onChange,y=o.onChangeRaw,$=o.short,C=o.size,w=o.value,E=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(o,["className","defaultValue","isDisabled","invalid","invalidText","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","short","size","value"]),D=(0,x.UK)({externalModuleName:"@openmrs/esm-styleguide"}).preferredDateLocale,S=(0,v.useId)(),B=(0,v.useMemo)(function(){var e=(0,ok.J)();return D[e]&&(e=D[e]),e},[window.i18next.language]),z=(0,v.useMemo)(function(){var e=(0,ox.a7)(B);return void 0!==e?(0,J.d)(e):void 0},[B]),P=(0,v.useMemo)(function(){return new Intl.Locale(B,{calendar:null==z?void 0:z.identifier})},[B,z]),T=(0,v.useMemo)(function(){return se(s,z)},[s]),M=(0,v.useMemo)(function(){return se(w,z,!0)},[w]),O=(0,v.useMemo)(function(){return se(h,z)},[h]),F=(0,v.useMemo)(function(){return se(g,z)},[g]),I=(0,v.useMemo)(function(){return null!=c?c:d},[c,d]),N=z?(0,Z.yP)((0,X.Ec)((0,X.Xj)()),z):(0,X.Ec)((0,X.Xj)()),j=(0,v.useMemo)(function(){return y&&b&&console.error("An OpenmrsDatePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),y||function(e){return null==b?void 0:b(st(e))}},[y,b]);return A().createElement(sO,{locale:P.toString()},A().createElement("div",{className:k()("cds--form-item",i)},A().createElement(eO,{values:[[sn,P]]},A().createElement(oA,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){sT(e,t,n[t])})}return e}({className:k()("cds--date-picker","cds--date-picker--single",(sT(a={},"cds--date-picker--short",$),sT(a,"cds--date-picker--light",m),a)),defaultValue:T,isDisabled:l,isInvalid:I,maxValue:O,minValue:F,value:M,shouldForceLeadingZeros:"en"===P.language||void 0},E),r=r={onChange:j},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n),A().createElement("div",{className:"cds--date-picker-container"},(null!=f?f:p)&&A().createElement(aI,{className:k()("cds--label",{"cds--label--disabled":l}),htmlFor:S},null!=f?f:p),A().createElement(rb,{className:sz.inputGroup},A().createElement(sy,{id:S,ref:t,className:k()("cds--date-picker-input__wrapper",sz.inputWrapper,sT({},sz.inputWrapperMd,"md"===C||!C||0===C.length))},function(e){return"era"!==e.type?A().createElement(sD,{className:sz.inputSegment,segment:e}):A().createElement(A().Fragment,null)}),A().createElement(nf,{className:k()(sz.flatButton,sz.flatButtonMd)},A().createElement(sA,null))),I&&u&&A().createElement(aS,{className:sz.invalidText},u)),A().createElement(of,{className:sz.popover,placement:"bottom start",offset:1,isNonModal:!0},A().createElement(sP,null,A().createElement(rc,null,A().createElement("header",{className:sz.header},A().createElement(nf,{className:k()(sz.flatButton,sz.flatButtonMd),slot:"previous"},A().createElement(oq,{size:16})),A().createElement(sh,{className:sz.monthYear}),A().createElement(nf,{className:k()(sz.flatButton,sz.flatButtonMd),slot:"next"},A().createElement(oW,{size:16}))),A().createElement(rp,{className:sz.calendarGrid},function(e){return A().createElement(r_,{key:e.toString(),className:k()("cds--date-picker__day",sT({},sz.today,0===N.compare(e))),date:e})}))))))))}),sI=n(99939),sN={};sN.styleTagTransform=F(),sN.setAttributes=P(),sN.insert=B().bind(null,"head"),sN.domAPI=D(),sN.insertStyleElement=M(),w()(sI.A,sN);let sj=sI.A&&sI.A.locals?sI.A.locals:void 0;function sR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var sL=(0,v.forwardRef)(function(e,t){return(0,v.useContext)(oy).isInvalid?A().createElement(iQ,sR({ref:t,size:16},e)):A().createElement(oF,sR({ref:t,size:16},e))});function sV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sH=(0,v.forwardRef)(function(e,t){var n,r,a=e.className,o=e.defaultValue,i=e.invalid,s=e.invalidText,l=e.isDisabled,c=e.isInvalid,u=e.label,d=e.labelText,p=e.light,f=e.maxDate,m=e.minDate,h=e.onChange,g=e.onChangeRaw,b=e.value,y=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","defaultValue","invalid","invalidText","isDisabled","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","value"]),$=(0,x.UK)({externalModuleName:"@openmrs/esm-styleguide"}).preferredDateLocale,C=(0,v.useId)(),w=(0,v.useMemo)(function(){var e=(0,ok.J)();return $[e]&&(e=$[e]),e},[window.i18next.language]),E=(0,v.useMemo)(function(){var e=(0,ox.a7)(w);return void 0!==e?(0,J.d)(e):void 0},[w]),D=(0,v.useMemo)(function(){return new Intl.Locale(w,{calendar:null==E?void 0:E.identifier})},[w,E]),S=(0,v.useMemo)(function(){if(b)return{start:se(b[0],E,!0),end:se(b[1],E,!0)}},[b]),B=(0,v.useMemo)(function(){if(o)return{start:se(o[0],E,!0),end:se(o[1],E,!0)}},[o]),z=(0,v.useMemo)(function(){return se(m,E,!0)},[m]),P=(0,v.useMemo)(function(){return se(f,E,!0)},[f]),T=(0,v.useMemo)(function(){return null!=i?i:c},[i,c]),M=E?(0,Z.yP)((0,X.Ec)((0,X.Xj)()),E):(0,X.Ec)((0,X.Xj)()),O=(0,v.useMemo)(function(){return g&&h&&console.error("An OpenmrsDateRangePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),g||function(e){return null==h?void 0:h([st(e.start),st(e.end)])}},[g,h]);return A().createElement(sO,{locale:D.toString()},A().createElement("div",{className:k()("cds--form-item",a)},A().createElement(eO,{values:[[sn,D]]},A().createElement(o$,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){sV(e,t,n[t])})}return e}({id:C,className:k()("cds--date-picker",{"cds--date-picker--light":p,"cds--date-picker--disabled":l}),isInvalid:T,shouldForceLeadingZeros:"en"===D.language||void 0,maxValue:P,minValue:z,value:S,defaultValue:B,ref:t,isDisabled:l},y),r=r={onChange:O},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n),A().createElement("div",{className:"cds--date-picker-container"},(null!=d?d:u)&&A().createElement(aI,{className:k()("cds--label",{"cds--label--disabled":l})},null!=d?d:u),A().createElement(rb,{className:sj.inputGroup},A().createElement("div",{className:sj.inputsWrapper},A().createElement(ab,{className:k()("cds--date-picker-input__wrapper",sj.startInput,sj.dateInputWrapper),slot:"start"},function(e){return A().createElement(sD,{className:sj.inputSegment,segment:e})}),A().createElement("div",{className:sj.separator},A().createElement("span",{"aria-hidden":"true","data-readonly":!0},"–")),A().createElement(ab,{className:k()("cds--date-picker-input__wrapper",sj.endInput,sj.dateInputWrapper),slot:"end"},function(e){return A().createElement(sD,{className:sj.inputSegment,segment:e})})),A().createElement(nf,{className:k()(sj.flatButton,sj.flatButtonMd)},A().createElement(sL,null))),T&&s&&A().createElement(aS,{className:sj.invalidText},s),A().createElement(of,{className:sj.popover,placement:"bottom start",offset:1,isNonModal:!0},A().createElement(sP,{isRangePicker:!0},A().createElement(ru,{minValue:z,maxValue:P,className:"cds--date-picker__calendar"},A().createElement("header",{className:sj.header},A().createElement(nf,{className:k()(sj.flatButton,sj.flatButtonMd),slot:"previous"},A().createElement(oq,{size:16})),A().createElement(sh,{className:sj.monthYear}),A().createElement(nf,{className:k()(sj.flatButton,sj.flatButtonMd),slot:"next"},A().createElement(oW,{size:16}))),A().createElement(rp,{className:sj.calendarGrid},function(e){return A().createElement(r_,{key:e.toString(),className:k()("cds--date-picker__day",sV({},sj.today,0===M.compare(e))),date:e})})))))))))}),sG=n(70438),sU=function(e){var t=e.diagnoses,n=(0,x.UK)({externalModuleName:"@openmrs/esm-styleguide"}).diagnosisTags;return A().createElement(A().Fragment,null,t.map(function(e){var t=e.rank,r=e.uuid,a=e.display,o=n[1===t?"primaryColor":"secondaryColor"];return A().createElement(sG.Tag,{key:r,type:o},a)}))},sq=n(61836),sW=n(30949),sK={};sK.styleTagTransform=F(),sK.setAttributes=P(),sK.insert=B().bind(null,"head"),sK.domAPI=D(),sK.insertStyleElement=M(),w()(sW.A,sK);let sY=sW.A&&sW.A.locals?sW.A.locals:void 0;var sJ=function(e){var t,n,r=e.error,a=e.headerTitle,o="tablet"===(0,x.qv)();return A().createElement(sG.Layer,null,A().createElement(sG.Tile,{className:sY.tile},A().createElement("div",{className:o?sY.tabletHeading:sY.desktopHeading},A().createElement("h4",null,a)),A().createElement("p",{className:sY.errorMessage},(0,sq.V)("error","Error")," ","".concat(null==r||null==(t=r.response)?void 0:t.status,": "),null==r||null==(n=r.response)?void 0:n.statusText),A().createElement("p",{className:sY.errorCopy},(0,sq.V)("errorCopy"))))},sZ=n(81369),sX={};sX.styleTagTransform=F(),sX.setAttributes=P(),sX.insert=B().bind(null,"head"),sX.domAPI=D(),sX.insertStyleElement=M(),w()(sZ.A,sX);let sQ=sZ.A&&sZ.A.locals?sZ.A.locals:void 0;var s0=A().forwardRef(function(e,t){var n,r=(0,x.TA)(),a=r.slotName,o=r.basePath,i=r.componentContext,s=null!=(n=window.location)?n:{pathname:""},l=(0,x.CX)(null!=a?a:"");return e.isChildOfHeader&&a&&l.length>0?A().createElement(sG.SideNav,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:t,expanded:!0,"aria-label":"Left navigation",className:sQ.leftNav},e),A().createElement(x.W3,{name:"global-nav-menu-slot"}),a?A().createElement(x.fS,{value:i,fallback:A().createElement(x.W3,{name:a,state:{basePath:o,currentPath:s}})},A().createElement(x.zq.Provider,{value:i},A().createElement(x.W3,{name:a,state:{basePath:o,currentPath:s}}))):null):A().createElement(A().Fragment,null)}),s1=n(36142),s2=n.n(s1),s3=n(97744),s4=n.n(s3),s5=n(70937),s6=n(60482),s7=function(e){var t=e.notification,n=t.description,r=t.action,a=t.kind,o=t.critical,i=t.title,s=t.onAction;return A().createElement(sG.ActionableNotification,{actionButtonLabel:r,kind:a||"info",lowContrast:o,subtitle:n,title:i||"",inline:!0,onActionButtonClick:s})};function s8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s9(e,t){if(e){if("string"==typeof e)return s8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s8(e,t)}}let le=function(e){var t,n=e.subject,r=(t=(0,v.useState)([]),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||s9(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],o=r[1];return(0,v.useEffect)(function(){var e=n.subscribe(function(e){return o(function(t){var n;return((function(e){if(Array.isArray(e))return s8(e)})(n=t.filter(function(t){return t.description!==e.description||t.action!==e.action||t.kind!==e.kind||t.title!==e.title}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||s9(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),A().createElement(A().Fragment,null,a.map(function(e){return A().createElement(s7,{key:e.id,notification:e})}))};function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ln=function(e){var t,n=e.notification,r=n.actionButtonLabel,a=n.onActionButtonClick,o=void 0===a?function(){}:a,i=n.subtitle,s=n.kind,l=n.title,c=n.critical,u=n.progressActionLabel,d=(n.id,function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(n,["actionButtonLabel","onActionButtonClick","subtitle","kind","title","critical","progressActionLabel","id"])),p=(t=(0,v.useState)(r),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return lt(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lt(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=p[0],m=p[1];return A().createElement(sG.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({kind:s||"info",actionButtonLabel:f,ariaLabel:"Closes actionable notification",onActionButtonClick:function(){o(),u&&m(u)},statusIconDescription:"Actionable notification",subtitle:i,title:l,lowContrast:c,inline:!0},d))};function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function la(e,t){if(e){if("string"==typeof e)return lr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lr(e,t)}}let lo=function(e){var t,n=e.subject,r=(t=(0,v.useState)([]),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||la(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],o=r[1];return(0,v.useEffect)(function(){var e=n.subscribe(function(e){return o(function(t){var n;return((function(e){if(Array.isArray(e))return lr(e)})(n=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||la(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),A().createElement(A().Fragment,null,a.map(function(e){return A().createElement(ln,{key:e.id,notification:e})}))};var li=n(62926),ls=n(4004),ll=n(17820),lc=n(36820),lu=n(55259),ld=n(75323),lp=n(24956),lf=n(43148),lm=Object.prototype.hasOwnProperty;let lh=function(e){if(null==e)return!0;if((0,lu.A)(e)&&((0,lc.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,ld.A)(e)||(0,lf.A)(e)||(0,ll.A)(e)))return!e.length;var t=(0,ls.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,lp.A)(e))return!(0,li.A)(e).length;for(var n in e)if(lm.call(e,n))return!1;return!0};var l_=n(25873);function lg(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function lb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function ly(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function lv(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var lA=new s6.B7,l$=0,lk=new s6.B7,lx=0;function lC(e){e&&(0,l_.createRoot)(e).render(A().createElement(le,{subject:lA}))}function lw(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":lv(t))==="object"&&(lg(t,Error)||!lh(t)))?(lg(e.description,Error)&&(e.description=e.description.toLocaleString()),setTimeout(function(){lA.next(ly(lb({},e),{id:l$++}))},0)):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function lE(e){e&&(0,l_.createRoot)(e).render(A().createElement(lo,{subject:lk}))}function lD(e){var t;e&&("string"==typeof(t=e.actionButtonLabel)?t.trim().length>0:(void 0===t?"undefined":lv(t))==="object"&&!lh(t))?setTimeout(function(){lk.next(ly(lb({},e),{id:lx++}))},0):console.error("showActionableNotification must be called with an actionButtonLabel that is a non-empty string")}var lS=n(8569),lB={};lB.styleTagTransform=F(),lB.setAttributes=P(),lB.insert=B().bind(null,"head"),lB.domAPI=D(),lB.insertStyleElement=M(),w()(lS.A,lB);let lz=lS.A&&lS.A.locals?lS.A.locals:void 0;function lP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lT(e,t){if(e){if("string"==typeof e)return lP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lP(e,t)}}var lM=function(e){var t,n,r,a,o,i,s=e.selectedLocationUuid,l=e.defaultLocationUuid,c=e.locationTag,u=e.locationsPerRequest,d=void 0===u?50:u,p=e.onChange,f=(0,V.useTranslation)().t,m=(t=(0,v.useState)(""),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||lT(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=m[0],g=m[1],b=(n=l?"/ws/fhir2/R4/Location?_id=".concat(l):null,a=(r=s2()(n,s5.lo,{shouldRetryOnError:function(e){var t;return null!=e&&null!=(t=e.response)&&!!t.status&&e.response.status>=500}})).data,o=r.error,i=r.isLoading,(0,v.useMemo)(function(){var e;return{location:(null==a||null==(e=a.data)?void 0:e.entry)?a.data.entry[0]:null,error:n?o:null,isLoading:!!n&&i}},[a,i,o,n])).location,y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=(0,V.useTranslation)().t,a=(0,x.d7)(n),o=s4()(function(n,r){if(r){var o,i,s=null==(i=r.data)||null==(o=i.link)?void 0:o.find(function(e){return"next"===e.relation});if(!s)return null;var l=new URL(s.url);return l.origin===window.location.origin?s.url:new URL("".concat(l.pathname).concat(l.search?"?".concat(l.search):""),window.location.origin).toString()}var c="".concat(s5.IU,"/Location?"),u=new URLSearchParams;return u.append("_summary","data"),t&&u.append("_count",""+t),n&&u.append("_getpagesoffset",""+n*t),e&&u.append("_tag",e),"string"==typeof a&&""!=a&&u.append("name:contains",a),c+u.toString()},s5.lo),i=o.data,s=o.isLoading,l=o.isValidating,c=o.setSize,u=o.error;return u&&lw({title:r("errorLoadingLoginLocations","Error loading login locations"),kind:"error",critical:!0,description:null==u?void 0:u.message}),(0,v.useMemo)(function(){var e,t,n,r,a;return{locations:(null==i?void 0:i.length)?null==i?void 0:i.flatMap(function(e){var t,n;return null!=(n=null==e||null==(t=e.data)?void 0:t.entry)?n:[]}):[],isLoading:s,totalResults:null==i||null==(t=i[0])||null==(e=t.data)?void 0:e.total,hasMore:null!=i&&!!i.length&&(null==i||null==(a=i[i.length-1])||null==(r=a.data)||null==(n=r.link)?void 0:n.some(function(e){return"next"===e.relation})),loadingNewData:l,setPage:c}},[s,i,l,c])}(c,d,h),$=y.locations,k=y.isLoading,C=y.hasMore,w=y.loadingNewData,E=y.setPage,D=(0,v.useMemo)(function(){if(b&&!h){var e;return[b].concat(function(e){if(Array.isArray(e))return lP(e)}(e=null==$?void 0:$.filter(function(e){return e.resource.id!==l}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||lT(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return $},[b,$]),S=function(e){p(),g(e)},B=(0,v.useCallback)(function(){w||!C||E(function(e){return e+1})},[w,C,E]),z=(0,U.useOnVisible)(B),P=C?D.length-d/2:-1;return A().createElement("div",null,A().createElement(sG.Search,{labelText:f("searchForLocation","Search for a location"),id:"search-1",placeholder:f("searchForLocation","Search for a location"),onChange:function(e){return S(e.target.value)},size:"lg"}),A().createElement("div",{className:lz.searchResults},k?A().createElement("div",{className:lz.loadingContainer},A().createElement(sG.RadioButtonSkeleton,{className:lz.radioButtonSkeleton,role:"progressbar"}),A().createElement(sG.RadioButtonSkeleton,{className:lz.radioButtonSkeleton,role:"progressbar"}),A().createElement(sG.RadioButtonSkeleton,{className:lz.radioButtonSkeleton,role:"progressbar"}),A().createElement(sG.RadioButtonSkeleton,{className:lz.radioButtonSkeleton,role:"progressbar"}),A().createElement(sG.RadioButtonSkeleton,{className:lz.radioButtonSkeleton,role:"progressbar"})):A().createElement(A().Fragment,null,A().createElement("div",{className:lz.locationResultsContainer},(null==D?void 0:D.length)>0?A().createElement(sG.RadioButtonGroup,{name:"loginLocations",onChange:function(e){p(null==e?void 0:e.toString())},orientation:"vertical",valueSelected:s},D.map(function(e,t){return A().createElement(sG.RadioButton,{className:lz.locationRadioButton,key:e.resource.id,id:e.resource.id,name:e.resource.name,labelText:A().createElement("span",{ref:t==P?z:null},e.resource.name),value:e.resource.id})})):A().createElement("div",{className:lz.emptyState},A().createElement("p",{className:lz.locationNotFound},f("noResultsToDisplay","No results to display")))),w&&A().createElement("div",{className:lz.loadingIcon},A().createElement(sG.InlineLoading,{description:f("loading","Loading")})))))},lO=n(22956),lF=n(467),lI=n(11621),lN=n(64201);function lj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lR(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function lL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function lV(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function lH(e,t){if(e){if("string"==typeof e)return lj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lj(e,t)}}var lG=(0,lF.Zd)("modalState",{modalContainer:null,modalStack:[]}),lU=0,lq=window.getComputedStyle(document.body).overflow;function lW(e){var t=e.modalStack,n=e.modalContainer;n&&(t.length?(n.style.visibility||(addEventListener("keydown",lY),document.body.style.overflow="hidden",n.style.visibility="unset"),t.forEach(function(e,r){switch(e.state){case"NEW":var a,o,i,s,l,c,u,d=(a=({size:null!=(u=null==(c=e.props)?void 0:c.size)?u:"md"}).size,(o=document.createElement("div")).className="cds--modal-container cds--modal-container--".concat(a),o.setAttribute("role","dialog"),o.setAttribute("tabindex","-1"),o.setAttribute("aria-modal","true"),o);e.container=d,(function(e,t){var n;return(n=function(e,t){var n,r,a,o,i,s=arguments;return function(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){var c=[s,l];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(6===c[0]&&o.label<a[1]){o.label=a[1],a=c;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(l){switch(l.label){case 0:if(n=s.length>2&&void 0!==s[2]?s[2]:{},r=(0,lI.Fg)(t),a=null,!e)return[3,2];if(!r)throw Error("No modal named '".concat(t,"' has been registered."));return[4,(0,r.load)()];case 1:return o=l.sent(),i=lU++,a=(0,lO.xL)(lV(lL({},o),{name:"".concat(t,"-").concat(i)}),lV(lL({},n),{domElement:e})),[3,3];case 2:(0,lN.N)("Failed to launch modal. Please notify your administrator. Modal name: ".concat(t)),l.label=3;case 3:return[2,a]}})},function(){var e=this,t=arguments;return new Promise(function(r,a){var o=n.apply(e,t);function i(e){lR(o,r,a,i,s,"next",e)}function s(e){lR(o,r,a,i,s,"throw",e)}i(void 0)})}).apply(this,arguments)})(d,e.modalName,e.props).then(function(t){e.parcel=t,e.state="MOUNTED",n.prepend(d),d.style.visibility="unset"});break;case"MOUNTED":e.container&&(e.container.style.visibility=r?"hidden":"unset");break;case"TO_BE_DELETED":e.onClose(),null==(s=e.parcel)||null==(i=s.unmount)||i.call(s),null==(l=e.container)||l.remove(),setTimeout(function(){lG.setState({modalContainer:n,modalStack:t.filter(function(t){return t!==e})})},0)}})):(n.style.removeProperty("visibility"),document.body.style.overflow=lq,removeEventListener("keydown",lY)))}function lK(e){var t=lG.getState(),n=t.modalStack.map(function(t){return t===e?lV(lL({},t),{state:"TO_BE_DELETED"}):t});lG.setState(lV(lL({},t),{modalStack:n}))}function lY(e){var t,n;"Escape"===e.key&&(n=(t=lG.getState().modalStack,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,1)||lH(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0])&&lK(n)}function lJ(e){lG.subscribe(lW),lG.setState(lV(lL({},lG.getState()),{modalContainer:e}))}function lZ(e){var t,n,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=function(){var e=lG.getState().modalStack.find(function(e){return e.onClose===o});e&&lK(e)};return(0,lI.Fg)(e)?(r=[{state:"NEW",onClose:o,modalName:e,props:lL({close:i},a)}].concat(function(e){if(Array.isArray(e))return lj(e)}(n=(t=lG.getState()).modalStack)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||lH(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),lG.setState(lV(lL({},t),{modalStack:r}))):(0,lN.N)('Failed to launch modal. Please notify your administrator. Modal name: "'.concat(e,'"')),i}var lX=n(91673),lQ={};lQ.styleTagTransform=F(),lQ.setAttributes=P(),lQ.insert=B().bind(null,"head"),lQ.domAPI=D(),lQ.insertStyleElement=M(),w()(lX.A,lQ);let l0=lX.A&&lX.A.locals?lX.A.locals:void 0;function l1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function l3(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l4=function(e){if("children"in e){var t=e.children,n=e.className,r=l3(e,["children","className"]);return A().createElement("div",l2({className:k()(l0.pageHeader,n)},r),t)}var a=e.title,o=e.illustration,i=e.className,s=l3(e,["title","illustration","className"]);return A().createElement("div",l2({className:k()(l0.pageHeader,i)},s),A().createElement(l5,{title:a,illustration:o}))},l5=function(e){var t,n=e.title,r=e.illustration,a=e.className,o=(t=(0,v.useState)(null),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return l1(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l1(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return(0,v.useEffect)(function(){(0,h.zj)("@openmrs/esm-styleguide").then(function(e){s(e)})},[]),A().createElement("div",{className:k()(l0.pageHeaderContent,a)},r,A().createElement("div",{className:l0.pageLabels},(null==i?void 0:i.implementationName)&&A().createElement("p",null,(0,sq.V)(i.implementationName)),A().createElement("p",{className:l0.pageName},n)))},l6=n(67943),l7=n(40785),l8=n(48391),l9={};l9.styleTagTransform=F(),l9.setAttributes=P(),l9.insert=B().bind(null,"head"),l9.domAPI=D(),l9.insertStyleElement=M(),w()(l8.A,l9);let ce=l8.A&&l8.A.locals?l8.A.locals:void 0;function ct(e){var t=e.showIdentifierLabel,n=e.type,r=e.value;return A().createElement("span",{className:ce.primaryIdentifier},A().createElement(sG.Tag,{className:ce.tag,type:"gray"},t&&(null==n?void 0:n.text)&&A().createElement("span",{className:ce.label},n.text,": "),A().createElement("span",{className:ce.value},r)))}function cn(e){var t=e.showIdentifierLabel,n=e.type,r=e.value;return A().createElement(sG.FormLabel,{className:ce.secondaryIdentifier,id:"patient-banner-identifier-".concat(r)},t&&A().createElement("span",{className:ce.label},null==n?void 0:n.text,": "),A().createElement("span",{className:ce.value},r))}function cr(e){var t,n=e.identifiers,r=e.showIdentifierLabel,a=(0,x.UK)().excludePatientIdentifierCodeTypes,o=(0,x.wJ)().primaryIdentifierCode,i=null!=(t=null==n?void 0:n.filter(function(e){var t,n,r,o=null==(r=e.type)||null==(n=r.coding)||null==(t=n[0])?void 0:t.code;return o&&!(null==a?void 0:a.uuids.includes(o))}))?t:[];return A().createElement(A().Fragment,null,(null==i?void 0:i.length)?i.map(function(e,t){var n,a,s=e.value,l=e.type;return A().createElement(A().Fragment,{key:s},A().createElement("span",{className:ce.identifier},(null==l||null==(a=l.coding)||null==(n=a[0])?void 0:n.code)===o?A().createElement(ct,{showIdentifierLabel:r,type:l,value:s}):A().createElement(cn,{showIdentifierLabel:r,type:l,value:s})),t<i.length-1&&A().createElement("span",{className:ce.separator},"\xb7"))}):"")}var ca={Female:o5,Male:o6,Other:o7,Unknown:o8},co=function(e){var t=ca[e.gender];return t?A().createElement(t,{fill:"#525252"}):null},ci={male:"Male",female:"Female",other:"Other",unknown:"Unknown"},cs=function(e){var t,n=e.toLowerCase(),r=null!=(t=ci[n])?t:"Unknown";return{displayText:(0,sq.V)(n,e),iconKey:r}};function cl(e){var t=e.patient,n=e.renderedFrom,r=(0,l6.Vp)(t),a=(null==t?void 0:t.gender)&&cs(t.gender),o=(0,v.useMemo)(function(){return{patientUuid:t.id,patient:t,renderedFrom:n}},[t.id,t,n]);return A().createElement("div",{className:ce.patientInfo},A().createElement("div",{className:k()(ce.row,ce.patientNameRow)},A().createElement("div",{className:ce.flexRow},A().createElement("span",{className:ce.patientName},r),a&&A().createElement("div",{className:ce.gender},A().createElement(co,{gender:a.iconKey}),A().createElement("span",null,a.displayText)),A().createElement(x.W3,{className:ce.tagsSlot,name:"patient-banner-tags-slot",state:o}))),A().createElement("div",{className:ce.demographics},t.birthDate&&A().createElement(A().Fragment,null,A().createElement("span",null,(0,l7.K)(t.birthDate)),A().createElement("span",{className:ce.separator},"\xb7"),A().createElement("span",null,(0,ox.LW)(t.birthDate,{time:!1})),A().createElement("span",{className:ce.separator},"\xb7")),A().createElement(cr,{identifiers:t.identifier,showIdentifierLabel:!0}),A().createElement(x.W3,{className:ce.extensionSlot,name:"patient-banner-bottom-slot",state:o})))}var cc=n(18282),cu=n(33539),cd={};cd.styleTagTransform=F(),cd.setAttributes=P(),cd.insert=B().bind(null,"head"),cd.domAPI=D(),cd.insertStyleElement=M(),w()(cu.A,cd);let cp=cu.A&&cu.A.locals?cu.A.locals:void 0;function cf(e){var t=e.patient,n=e.patientUuid,r=e.actionsSlotName,a=e.additionalActionsSlotState,o=(0,x.br)(r).extensions,i=(0,v.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({patientUuid:n,patient:t},a)},[n,a]);return A().createElement(A().Fragment,null,o.length>0?A().createElement("div",{className:cp.overflowMenuContainer},A().createElement(L,{menuTitle:A().createElement(A().Fragment,null,A().createElement("span",{className:cp.actionsButtonText},(0,sq.V)("actions","Actions"))," ",A().createElement(cc.CH,{size:16,style:{marginLeft:"0.5rem",fill:"#78A9FF"}}))},A().createElement(x.W3,{name:"patient-actions-slot",key:"patient-actions-slot",state:i}))):null)}var cm=function(e){var t=e.toast,n=e.closeToast,r=t.description,a=t.kind,o=t.critical,i=t.title,s=t.actionButtonLabel,l=t.onActionButtonClick,c=void 0===l?function(){}:l,u=(0,v.useCallback)(function(){c(),n()},[n,c]);return A().createElement("div",null,A().createElement(sG.ActionableNotification,{actionButtonLabel:s,kind:a||"info",lowContrast:o,subtitle:r,title:i||"",onActionButtonClick:u,onClose:n}))};function ch(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c_(e,t){if(e){if("string"==typeof e)return ch(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ch(e,t)}}let cg=function(e){var t,n=e.subject,r=(t=(0,v.useState)([]),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||c_(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],o=r[1],i=(0,v.useCallback)(function(e){o(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,v.useEffect)(function(){var e=n.subscribe(function(e){return o(function(t){var n;return((function(e){if(Array.isArray(e))return ch(e)})(n=t.filter(function(t){return t.description!==e.description||t.kind!==e.kind||t.title!==e.title||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||c_(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),A().createElement(A().Fragment,null,a.map(function(e){return A().createElement(cm,{key:e.id,toast:e,closeToast:function(){return i(e)}})}))};var cb=new s6.B7,cy=0;function cv(e){e&&(0,l_.createRoot)(e).render(A().createElement(cg,{subject:cb}))}function cA(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"&&!lh(t))?setTimeout(function(){var t,n;cb.next((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={id:cy++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))},0):console.error("showToast must be called with an object having a 'description' property that is a non-empty string or object")}var c$=n(17744);function ck(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function cC(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function cw(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return!0;var n=cz[e];return!n||!n()}function cE(e,t){var n,r=null==(n=cj.getState())?void 0:n.workspaceGroup,a=null==r?void 0:r.name;a&&e===a&&cH(function(){var n=cK(e);n&&(n.setState({},!0),n.subscribe(function(){})()),"function"==typeof(null==r?void 0:r.cleanup)&&r.cleanup(),cj.setState(function(e){return cC(cx({},e),{workspaceGroup:void 0})}),"function"==typeof t&&t()},a?function(e){return e.currentWorkspaceGroup===a}:function(){return!0})}function cD(e,t){var n,r=t.name,a=t.additionalProps;(0,lI.Xb)(r);var o=function(){cF(e.name,{ignoreChanges:!0,onWorkspaceClose:function(){return cS(r,a)},closeWorkspaceGroup:!1})};cw(e.name)?o():cU("closing-workspace-launching-new-workspace",o,null!=(n=e.title)?n:e.name)}function cS(e,t){var n,r,a=(0,lI.Xb)(e),o=cj.getState().workspaceGroup;if(o&&!(null==(n=o.members)?void 0:n.includes(e)))return void cE(o.name,function(){cS(e,t)});var i=null==(r=cj.getState().workspaceGroup)?void 0:r.name,s=cC(cx({},a),{title:cq(a,t),closeWorkspace:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return cF(e,t)},closeWorkspaceWithSavedChanges:function(t){return cF(e,cx({ignoreChanges:!0},t))},promptBeforeClosing:function(t){var n,r;return n=e,r=t,void(cz[n]=r)},setTitle:function(t,n){s.title=t,s.titleNode=n,cj.setState(function(t){var n=t.openWorkspaces.map(function(t){return t.name===e?s:t});return cC(cx({},t),{openWorkspaces:n})})},currentWorkspaceGroup:i,additionalProps:null!=t?t:{}});function l(e,t){cj.setState(function(n){var r,a=[e].concat(function(e){if(Array.isArray(e))return ck(e)}(r=null!=t?t:n.openWorkspaces)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return ck(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ck(e,t)}}(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=cV(e);return cC(cx({},n),{openWorkspaces:a,workspaceWindowState:o})})}i&&cK(i,t);var c=cj.getState().openWorkspaces,u=c.findIndex(function(t){return t.name===e}),d=c.find(function(e){return e.type==s.type});if(0===c.length)l(s);else if(c[0].canHide||0===u)if(u>=0){var p=c[u];p.title===cq(p,p.additionalProps)&&(p.title=cq(s,s.additionalProps)),p.additionalProps=s.additionalProps;var f=c.filter(function(t){return t.name!=e});l(c[u],f)}else d?(l(d,cj.getState().openWorkspaces.filter(function(e){return e.type!=s.type})),cD(d,{name:e,additionalProps:t})):l(s);else cD(c[0],{name:e,additionalProps:t})}function cB(e){var t=e.targetUrl,n=e.contextKey,r=e.workspaceName,a=e.additionalProps;cI(n),cS(r,a),(0,c$.oo)({to:t})}var cz={};function cP(e,t){cz[e]=t}function cT(e){return cz[e]}function cM(){var e=cj.getState();cj.setState(cC(cx({},e),{prompt:null}))}var cO={ignoreChanges:!1,onWorkspaceClose:function(){},closeWorkspaceGroup:!0};function cF(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=cx({},cO,n);var r=function(){var t,r,a=cj.getState();a.openWorkspaces.find(function(t){return t.name===e});var o=a.openWorkspaces.filter(function(t){return t.name!=e}),i=null==(t=cj.getState().workspaceGroup)?void 0:t.name;i&&n.closeWorkspaceGroup&&cE(i),cz[e]=function(){return!1},cj.setState(function(e){return cC(cx({},e),{prompt:null,openWorkspaces:o,workspaceWindowState:cV(null==o?void 0:o[0])})}),null==n||null==(r=n.onWorkspaceClose)||r.call(n)};return cw(e,null==n?void 0:n.ignoreChanges)?(r(),!0):(cU("closing-workspace",r,null!=(t=(0,lI.Xb)(e).title)?t:e),!1)}function cI(e){cj.getState().context!=e&&cj.setState({context:e,openWorkspaces:[],prompt:null})}var cN={context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0},cj=(0,lF.Zd)("workspace",cN);function cR(){return cj}function cL(e){var t=cj.getState();cj.setState(cC(cx({},t),{workspaceWindowState:e}))}function cV(e){var t;return null!=(t=null==e?void 0:e.preferredWindowSize)?t:"normal"}function cH(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=cj.getState().openWorkspaces.filter(t).every(function(e){return cw(e.name)}),r=function(){cW(),null==e||e()};n?r():cU("closing-all-workspaces",r)}function cG(){var e=(0,x.Pj)(cj),t=e.workspaceWindowState,n=e.openWorkspaces,r=e.prompt,a=e.workspaceGroup;return(0,v.useMemo)(function(){return{active:n.length>0,prompt:r,workspaceWindowState:t,workspaces:n,workspaceGroup:a}},[n,t,r,a])}function cU(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(e){case"closing-workspace":t={title:(0,sq.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,sq.V)("unsavedChangesInOpenedWorkspace","You may have unsaved changes in the opened workspace. Do you want to discard these changes?"),onConfirm:function(){null==n||n()},confirmText:(0,sq.V)("discard","Discard")};break;case"closing-all-workspaces":var a=cj.getState().openWorkspaces.filter(function(e){return!cw(e.name)}).map(function(e,t){var n=e.title;return"".concat(t+1,". ").concat(n)});t={title:(0,sq.V)("closingAllWorkspacesPromptTitle","You have unsaved changes"),body:(0,sq.V)("closingAllWorkspacesPromptBody","There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",{workspaceNames:a.join(",")}),onConfirm:function(){null==n||n()},confirmText:(0,sq.V)("closeAllOpenedWorkspaces","Discard changes in {{count}} workspaces",{count:a.length})};break;case"closing-workspace-launching-new-workspace":t={title:(0,sq.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,sq.V)("unsavedChangesInWorkspace",'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',{workspaceName:r}),onConfirm:function(){cj.setState(function(e){return cC(cx({},e),{prompt:null})}),null==n||n()},confirmText:(0,sq.V)("openAnyway","Open anyway")};break;default:console.error('Workspace system trying to open unknown prompt type "'.concat(e,'" in function "showWorkspacePrompts"')),null==n||n();return}cj.setState(function(e){return cC(cx({},e),{prompt:t})})}function cq(e,t){var n;return null!=(n=null==t?void 0:t.workspaceTitle)?n:e.title}function cW(){cj.setState(cN)}function cK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&"default"!==e){var n=(0,lF.jf)(e,{});return t&&n.setState(function(e){return cx({},e,t)}),n}}var cY=n(33794),cJ={};cJ.styleTagTransform=F(),cJ.setAttributes=P(),cJ.insert=B().bind(null,"head"),cJ.domAPI=D(),cJ.insertStyleElement=M(),w()(cY.A,cJ);let cZ=cY.A&&cY.A.locals?cY.A.locals:void 0;function cX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cQ(e){var t=e.getIcon,n=e.formOpenInTheBackground,r=e.tagContent;return A().createElement(A().Fragment,null,t({size:16}),n?A().createElement("span",{className:cZ.interruptedTag},"!"):A().createElement("span",{className:cZ.countTag},r))}var c0=function(e){var t,n=e.getIcon,r=e.label,a=e.iconDescription,o=e.handler,i=e.type,s=e.tagContent,l=(0,x.qv)(),c=cG(),u=c.workspaces,d=c.workspaceWindowState,p=null!=(t=null==u?void 0:u.findIndex(function(e){return e.type===i}))?t:-1,f="hidden"!==d&&0===p,m=p>0||0===p&&"hidden"===d;return"tablet"===l||"phone"===l?A().createElement(sG.Button,{className:k()(cZ.container,cX({},cZ.active,f)),iconDescription:a,kind:"ghost",onClick:o,role:"button",tabIndex:0,size:"md"},A().createElement("span",{className:cZ.elementContainer},A().createElement(cQ,{formOpenInTheBackground:m,getIcon:n,tagContent:s})),A().createElement("span",null,r)):A().createElement(sG.IconButton,{align:"left","aria-label":a,className:k()(cZ.container,cX({},cZ.active,f)),enterDelayMs:300,kind:"ghost",label:r,onClick:o,size:"md"},A().createElement("div",{className:cZ.elementContainer},A().createElement(cQ,{formOpenInTheBackground:m,getIcon:n,tagContent:s})))},c1=n(54240),c2=n(68622),c3=n(1158),c4=/[\\^$.*+?()[\]{}|]/g,c5=RegExp(c4.source);let c6=function(e){return(e=(0,c3.A)(e))&&c5.test(e)?e.replace(c4,"\\$&"):e};var c7=n(72114),c8={};c8.styleTagTransform=F(),c8.setAttributes=P(),c8.insert=B().bind(null,"head"),c8.domAPI=D(),c8.insertStyleElement=M(),w()(c7.A,c8);let c9=c7.A&&c7.A.locals?c7.A.locals:void 0;function ue(e){var t,n,r=e.contextKey,a=(0,V.useTranslation)().t,o=cG().prompt;return(0,v.useEffect)(function(){new RegExp("/".concat(c6(r),"(/|$)")).test(window.location.pathname)||(0,lN.N)('WorkspaceContainer has provided an invalid context key: "'.concat(r,'". The context key must be part of the URL path, with no initial or trailing slash.'))},[]),(0,v.useEffect)(function(){return cI(r),function(){cI(null)}},[r]),(0,v.useEffect)(function(){var e=function(e){var t=e.detail,n=t.cancelNavigation,a=t.newUrl,o=new RegExp("/".concat(c6(r),"(/|$)")),i=new URL(a),s=o.test(i.pathname),l=cj.getState().openWorkspaces.every(function(e){return cw(e.name)});s||(l?cW():(null==n||n(),cH(function(){(0,c$.oo)({to:a})})))};return window.addEventListener("single-spa:before-routing-event",e),function(){window.removeEventListener("single-spa:before-routing-event",e)}},[]),null!=o?A().createElement(sG.ComposedModal,{open:!0,onClose:cM},A().createElement(sG.ModalHeader,{title:o.title}),A().createElement(sG.ModalBody,null,A().createElement("p",{className:c9.messageBody},o.body)),A().createElement(sG.ModalFooter,null,A().createElement(sG.Button,{kind:"secondary",onClick:cM},null!=(t=o.cancelText)?t:a("cancel","Cancel")),A().createElement(sG.Button,{kind:"danger",onClick:o.onConfirm},null!=(n=o.confirmText)?n:a("confirm","Confirm")))):null}var ut=n(6309);function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach(function(t){uo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ui(e){return(ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function us(e,t){return(us=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ul(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var uc=function(e){var t=v.Component;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),t&&us(i,t);var n,r,a,o=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=ui(i);e=n?Reflect.construct(t,arguments,ui(this).constructor):t.apply(this,arguments);if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return ul(this)});function i(e){var t;if(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),uo(ul(t=o.call(this,e)),"handleRef",function(e){t.el=e}),uo(ul(t),"addThingToDo",function(e,n){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return n.apply(void 0,arguments)}).catch(function(n){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),n&&n.message&&(n.message="During '".concat(e,"', parcel threw an error: ").concat(n.message)),t.props.handleError?t.props.handleError(n):setTimeout(function(){throw n}),n}))}),uo(ul(t),"getParcelProps",function(){var e=ur(ur({},t.props),{},{domElement:t.el});return delete e.mountParcel,delete e.config,delete e.wrapWith,delete e.wrapStyle,delete e.appendTo,delete e.handleError,delete e.parcelDidMount,e}),t.state={hasError:!1},!e.config)throw Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return t}return r=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,n=e.props.mountParcel||e.mountParcel;if(!n)throw Error("\n <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop \n ");return e.el?t=e.el:(e.createdDomElement=t=document.createElement(e.props.wrapWith),Object.keys(e.props.wrapStyle).forEach(function(n){t.style[n]=e.props.wrapStyle[n]}),e.props.appendTo.appendChild(t)),e.parcel=n(e.props.config,ur({domElement:t},e.getParcelProps())),e.parcel.mountPromise.then(e.props.parcelDidMount),e.parcel.mountPromise})}},{key:"componentDidUpdate",value:function(){var e=this;this.addThingToDo("update",function(){if(e.parcel&&e.parcel.update)return e.parcel.update(e.getParcelProps())})}},{key:"componentWillUnmount",value:function(){var e=this;this.addThingToDo("unmount",function(){if(e.parcel&&"MOUNTED"===e.parcel.getStatus())return e.parcel.unmount()}),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var e=this;if(this.props.appendTo)return ut.i&&ut.i.Consumer?v.createElement(ut.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=ut.i&&ut.i.Consumer?v.createElement(ut.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):void 0;return v.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},t)}}],ua(i.prototype,r),a&&ua(i,a),i}();uo(uc,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}});var uu=n(1668),ud={};ud.styleTagTransform=F(),ud.setAttributes=P(),ud.insert=B().bind(null,"head"),ud.domAPI=D(),ud.insertStyleElement=M(),w()(uu.A,ud);let up=uu.A&&uu.A.locals?uu.A.locals:void 0;function uf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function um(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return uf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uf(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function ug(e){var t,n,r,a,o,i,s,l,c=e.workspace,u=e.additionalPropsFromPage,d=(t=(0,v.useState)(),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return uh(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uh(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],f=d[1],m=(n=c.currentWorkspaceGroup,a=(r=um((0,v.useState)({}),2))[0],o=r[1],s=(i=um((0,v.useState)(n),2))[0],l=i[1],(0,v.useEffect)(function(){s!==n&&l(n)},[n]),(0,v.useEffect)(function(){var e,t=cK(s);return t&&(o(t.getState()),e=t.subscribe(o)),function(){t&&(null==e||e())}},[s]),a);(0,v.useEffect)(function(){var e=!0;return c.load().then(function(t){e&&f(t)}),function(){e=!1}},[c]);var h=(0,v.useMemo)(function(){return c&&u_({closeWorkspace:c.closeWorkspace,closeWorkspaceWithSavedChanges:c.closeWorkspaceWithSavedChanges,promptBeforeClosing:c.promptBeforeClosing,setTitle:c.setTitle},u,m,c.additionalProps)},[c,u,m]);return p?A().createElement(uc,u_({key:c.name,config:p,mountParcel:lO.xL},h)):A().createElement(sG.InlineLoading,{className:up.loader,description:"".concat((0,sq.V)("loading","Loading")," ...")})}var ub=n(43193),uy={};uy.styleTagTransform=F(),uy.setAttributes=P(),uy.insert=B().bind(null,"head"),uy.domAPI=D(),uy.insertStyleElement=M(),w()(ub.A,uy);let uv=ub.A&&ub.A.locals?ub.A.locals:void 0;function uA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uk(e){var t,n,r=e.isWithinWorkspace,a=e.name,o=e.actionMenuProps,i=(t=(0,v.useState)(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return uA(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uA(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=i[0],l=i[1],c=(0,v.useRef)(window.innerHeight),u=(0,v.useContext)(x.zq).featureName,d=(0,x.qv)();return(0,v.useEffect)(function(){var e=function(){l(!(0,x.xl)(d)&&c.current>window.innerHeight),c.current!=window.innerHeight&&(c.current=window.innerHeight)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[c]),A().createElement("aside",{className:k()(uv.sideRail,(u$(n={},uv.withinWorkspace,r),u$(n,uv.sideRailHidden,s),u$(n,uv.sideRailVisible,!s),n))},A().createElement("div",{className:uv.container},A().createElement(x.W3,{className:uv.chartExtensions,name:"action-menu-".concat(a&&"default"!=a?a:u,"-items-slot"),state:void 0===o?{}:o})))}function ux(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uC(e){var t,n,r,a=e.contextKey,o=e.overlay,i=e.showSiderailAndBottomNav,s=e.additionalWorkspaceProps,l=e.actionMenuProps,c=(0,x.qv)(),u=cG(),d=u.workspaces,p=u.workspaceWindowState,f=u.workspaceGroup,m=null==f?void 0:f.name,h=d[0],g="hidden"===p||null==h,b=null!=(t=null==h?void 0:h.width)?t:o?"wider":"narrow",y=(0,v.useMemo)(function(){return i||m&&!g},[m,g,i]);return(0,x.yJ)(!g&&!(0,x.xl)(c)),A().createElement(A().Fragment,null,A().createElement("div",{className:i?up.workspaceContainerWithActionMenu:up.workspaceContainerWithoutActionMenu},A().createElement("aside",{className:k()(o?up.workspaceOverlayOuterContainer:up.workspaceWindowSpacer,(ux(n={},up.hiddenRelative,g),ux(n,up.narrowWorkspace,"narrow"===b),ux(n,up.widerWorkspace,"wider"===b),ux(n,up.extraWideWorkspace,"extra-wide"===b),n))},A().createElement("div",{className:k()(up.workspaceFixedContainer,(ux(r={},up.maximizedWindow,"maximized"===p),ux(r,up.hiddenFixed,g),r))},d.map(function(e,t){return A().createElement("div",{key:"workspace-container-".concat(e?e.name:"empty-".concat(t)),className:k()(up.workspaceInnerContainer,ux({},up.hiddenExtraWorkspace,0!==t))},A().createElement(v.Suspense,{fallback:null},A().createElement(V.I18nextProvider,{i18n:window.i18next,defaultNS:e.moduleName},A().createElement(uw,{workspaceInstance:e,additionalWorkspaceProps:s}))))}))),A().createElement(ue,{contextKey:a})),y&&A().createElement(uk,{name:m,isWithinWorkspace:!i,actionMenuProps:l}))}function uw(e){var t,n=e.workspaceInstance,r=e.additionalWorkspaceProps,a=(0,V.useTranslation)().t,o=(0,x.qv)(),i=cG(),s=i.workspaceWindowState,l=i.workspaceGroup,c=null==l?void 0:l.name,u="maximized"===s;(0,v.useEffect)(function(){var e=a(n.title);e!==n.title&&n.setTitle(e)},[n.title,a,n.setTitle]);var d=(0,v.useContext)(x.zq).featureName,p=(0,v.useCallback)(function(){cL(u?"normal":"maximized")},[u]),f=(0,v.useMemo)(function(){return null!=n?n:{}},[n]),m=f.canHide,h=void 0!==m&&m,g=f.canMaximize,b=f.currentWorkspaceGroup,y=f.closeWorkspace,$=(0,v.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ux(e,t,n[t])})}return e}({},r,null==n?void 0:n.additionalProps)},[r,n]);return n&&A().createElement(A().Fragment,null,A().createElement(sG.Header,{"aria-label":(0,sq.V)("workspaceHeader","Workspace Header"),className:up.header},!(0,x.xl)(o)&&!h&&A().createElement(sG.HeaderMenuButton,{"aria-label":(0,sq.V)("close","Close"),renderMenuIcon:A().createElement(oz,null),onClick:function(){return y()}}),A().createElement(sG.HeaderName,{prefix:""},null!=(t=n.titleNode)?t:a(n.title)),A().createElement("div",{className:up.overlayHeaderSpacer}),A().createElement(sG.HeaderGlobalBar,{className:up.headerButtons},A().createElement(x.W3,{name:"workspace-header-group-".concat(n.currentWorkspaceGroup,"-slot"),state:$}),A().createElement(x.W3,{name:"workspace-header-type-".concat(n.type,"-slot"),state:$}),A().createElement(x.W3,{name:"workspace-header-".concat(d,"-slot"),state:$}),(0,x.xl)(o)&&A().createElement(A().Fragment,null,(void 0!==g&&g||u)&&A().createElement(sG.HeaderGlobalAction,{"aria-label":u?(0,sq.V)("minimize","Minimize"):(0,sq.V)("maximize","Maximize"),onClick:p},u?A().createElement(c1.Xj,null):A().createElement(c1.hz,null)),h&&!c?A().createElement(sG.HeaderGlobalAction,{"aria-label":(0,sq.V)("hide","Hide"),onClick:function(){return cL("hidden")}},A().createElement(oP,null)):A().createElement(sG.HeaderGlobalAction,{"aria-label":(0,sq.V)("close","Close"),onClick:function(){return null==y?void 0:y()}},A().createElement(oZ,null))),"tablet"===o&&h&&A().createElement(sG.HeaderGlobalAction,{"aria-label":(0,sq.V)("close","Close"),onClick:function(){return null==y?void 0:y()}},A().createElement(c2.d3,null)))),A().createElement("div",{className:k()(up.workspaceContent,ux({},up.marginWorkspaceContent,!!(void 0===b?"":b)))},A().createElement(ug,{key:n.name,workspace:n,additionalPropsFromPage:r})))}var uE=n(94538),uD={};uD.styleTagTransform=F(),uD.setAttributes=P(),uD.insert=B().bind(null,"head"),uD.domAPI=D(),uD.insertStyleElement=M(),w()(uE.A,uD);let uS=uE.A&&uE.A.locals?uE.A.locals:void 0;function uB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return uB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uB(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var uT=function(e){var t,n=e.snackbar,r=e.closeSnackbar,a=n.actionButtonLabel,o=n.kind,i=void 0===o?"success":o,s=n.onActionButtonClick,l=void 0===s?function(){}:s,c=n.isLowContrast,u=n.progressActionLabel,d=n.subtitle,p=n.timeoutInMs,f=void 0===p?5e3:p,m=n.autoClose,h=void 0===m?"error"!==i:m,g=n.title,b=(n.id,function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(n,["actionButtonLabel","kind","onActionButtonClick","isLowContrast","progressActionLabel","subtitle","timeoutInMs","autoClose","title","id"])),y=uP((0,v.useState)(void 0===a?"":a),2),$=y[0],x=y[1],C=uP((0,v.useState)(!0),2),w=C[0],E=C[1],D=uP((0,v.useState)(!1),2),S=D[0],B=D[1],z=(0,v.useCallback)(function(){setTimeout(r,250)},[r]),P=(0,v.useCallback)(function(){B(!0),z()},[z]);return(0,v.useEffect)(function(){if(h){var e=setTimeout(P,f);return function(){return clearTimeout(e)}}},[f,h,P]),(0,v.useEffect)(function(){E(!1),window.setTimeout(function(){E(!0)},0)},[]),A().createElement(sG.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){uz(e,t,n[t])})}return e}({actionButtonLabel:$,"aria-label":"Close snackbar",className:k()(uS.slideIn,(uz(t={},uS.animated,w),uz(t,uS.slideOut,S),t)),inline:!0,kind:i,lowContrast:void 0===c?"error"!==i:c,onActionButtonClick:function(){l(),P(),u&&x(u)},onClose:z,statusIconDescription:"Snackbar notification",subtitle:void 0===d?"":d,title:g},b))};function uM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uO(e,t){if(e){if("string"==typeof e)return uM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uM(e,t)}}let uF=function(e){var t,n=e.subject,r=(t=(0,v.useState)([]),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||uO(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],o=r[1],i=(0,v.useCallback)(function(e){o(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,v.useEffect)(function(){var e=n.subscribe(function(e){return o(function(t){var n;return((function(e){if(Array.isArray(e))return uM(e)})(n=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||uO(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),A().createElement(A().Fragment,null,a.map(function(e){return A().createElement(uT,{key:e.id,snackbar:e,closeSnackbar:function(){return i(e)}})}))};var uI=new s6.B7,uN=0;function uj(e){e&&(0,l_.createRoot)(e).render(A().createElement(uF,{subject:uI}))}function uR(e){var t;e&&"string"==typeof(t=e.title)&&t.trim().length>0?setTimeout(function(){var t,n;uI.next((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={id:uN++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))},0):console.error("showSnackbar must be called with an object having a 'title' property that is a non-empty string")}var uL=function(e){var t=e.children;return"tablet"===(0,x.qv)()?A().createElement(sG.Layer,null,t):A().createElement(A().Fragment,null,t)},uV=n(25391);let uH="failing",uG=function(){try{return"localStorage"in window&&window.localStorage}catch(e){return!1}}();class uU{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{cachePrefix:t="react-avatar/",sourceTTL:n=6048e5,sourceSize:r=20}=e;this.cachePrefix=t,this.sourceTTL=n,this.sourceSize=r}set(e,t){if(uG){t=JSON.stringify(t);try{localStorage.setItem(this.cachePrefix+e,t)}catch(e){console.error(e)}}}get(e){if(!uG)return null;let t=localStorage.getItem(this.cachePrefix+e);return t?JSON.parse(t):null}sourceFailed(e){let t=this.get(uH)||[];return(t=t.filter(t=>{let n=t.expires>0&&t.expires<Date.now(),r=t===e||t.url==e;return!n&&!r})).unshift({url:e,expires:Date.now()+this.sourceTTL}),t=t.slice(0,this.sourceSize-1),this.set(uH,t)}hasSourceFailedBefore(e){return(this.get(uH)||[]).some(t=>{let n=t.expires>0&&t.expires<Date.now();return(t===e||t.url==e)&&!n})}}let uq=new uU;var uW=n(93442),uK=n(39067),uY=n.n(uK),uJ=n(18946);let uZ=n.n(uJ)()(),uX=["#A62A21","#7e3794","#0B51C1","#3A6024","#A81563","#B3003C"],uQ=/^([-+]?(?:\d+(?:\.\d+)?|\.\d+))([a-z]{2,4}|%)?$/;function u0(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uX;if(!e)return"transparent";let n=function(e,t){let n=[...e].map(e=>e.charCodeAt(0)),r=n.length,a=r%(t-1)+1,o=n.reduce((e,t)=>e+t)%t,i=n[0]%t;for(let e=0;e<r;e++)i=(a*i+o)%t;return i}(e,t.length);return t[n]}function u1(e){e=""+e;let[,t=0,n="px"]=uQ.exec(e)||[];return{value:parseFloat(t),str:t+n,unit:n}}function u2(e){return e=isNaN((e=u1(e)).value)?512:"px"===e.unit?e.value:512*(0!==e.value),uZ&&(e*=2),e}function u3(e,t){let{maxInitials:n}=t;return e.split(/\s/).map(e=>e.substring(0,1).toUpperCase()).filter(e=>!!e).slice(0,n).join("").toUpperCase()}let u4={};function u5(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of t){if(e||""===e)return e;if(!1===e||null===e)return null}}function u6(e){return!0===e?"100%":!1!==e?e:void 0}let u7={cache:uq,colors:uX,initials:u3,avatarRedirectUrl:null},u8=Object.keys(u7),u9=A().createContext&&A().createContext(),de=!u9,dt=de?null:u9.Consumer,dn=A().forwardRef||(e=>e);class dr extends A().Component{_getContext(){let e={};return u8.forEach(t=>{void 0!==this.props[t]&&(e[t]=this.props[t])}),e}render(){let{children:e}=this.props;return de?A().Children.only(e):A().createElement(u9.Provider,{value:this._getContext()},A().Children.only(e))}}(0,uW.A)(dr,"displayName","ConfigProvider"),(0,uW.A)(dr,"propTypes",{cache:uY().object,colors:uY().arrayOf(uY().string),initials:uY().func,avatarRedirectUrl:uY().string,children:uY().node});let da=e=>{function t(t,n){if(de){let r=n&&n.reactAvatar;return A().createElement(e,(0,uV.A)({},u7,r,t))}return A().createElement(dt,null,r=>A().createElement(e,(0,uV.A)({ref:n},u7,r,t)))}return t.contextTypes=dr.childContextTypes,dn(t)};de&&(dr.childContextTypes={reactAvatar:uY().object},dr.prototype.getChildContext=function(){return{reactAvatar:this._getContext()}});class di{constructor(){this.sourcePointer=0,this.active=!0,this.fetch=null}isActive(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.internal===this&&!!this.fetch&&!0===this.active}}class ds extends A().PureComponent{render(){let{className:e,unstyled:t,round:n,style:r,avatar:a,onClick:o,children:i}=this.props,{sourceName:s}=a,l=u1(this.props.size),c=t?null:{display:"inline-block",verticalAlign:"middle",width:l.str,height:l.str,borderRadius:u6(n),fontFamily:"Helvetica, Arial, sans-serif",...r},u=[e,"sb-avatar"];if(s){let e=s.toLowerCase().replace(/[^a-z0-9-]+/g,"-").replace(/^-+|-+$/g,"");u.push("sb-avatar--"+e)}return A().createElement("div",{className:u.join(" "),onClick:o,style:c},i)}}(0,uW.A)(ds,"propTypes",{className:uY().string,round:uY().oneOfType([uY().bool,uY().string]),style:uY().object,size:uY().oneOfType([uY().number,uY().string]),unstyled:uY().bool,avatar:uY().object,onClick:uY().func,children:uY().node});class dl extends A().PureComponent{render(){let{className:e,round:t,unstyled:n,alt:r,title:a,name:o,value:i,avatar:s}=this.props,l=u1(this.props.size),c=n?null:{maxWidth:"100%",width:l.str,height:l.str,borderRadius:u6(t)};return A().createElement(ds,this.props,A().createElement("img",{className:e+" sb-avatar__image",width:l.str,height:l.str,style:c,src:s.src,alt:u5(r,o||i),title:u5(a,o||i),onError:s.onRenderFailed}))}}(0,uW.A)(dl,"propTypes",{alt:uY().oneOfType([uY().string,uY().bool]),title:uY().oneOfType([uY().string,uY().bool]),name:uY().string,value:uY().string,avatar:uY().object,className:uY().string,unstyled:uY().bool,round:uY().oneOfType([uY().bool,uY().string,uY().number]),size:uY().oneOfType([uY().number,uY().string])}),(0,uW.A)(dl,"defaultProps",{className:"",round:!1,size:100,unstyled:!1});class dc extends A().PureComponent{constructor(){var e;super(...arguments),e=this,(0,uW.A)(this,"_scaleTextNode",function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,{unstyled:r,textSizeRatio:a,textMarginRatio:o,avatar:i}=e.props;if(e._node=t,!t||!t.parentNode||r||i.src||!e._mounted)return;let s=t.parentNode,l=s.parentNode,{width:c,height:u}=s.getBoundingClientRect();if(0==c&&0==u){let r=Math.min(1.5*n,500);!function(e,t){if(u4[t])return u4[t].push(e);let n=u4[t]=[e];setTimeout(()=>{delete u4[t],n.forEach(e=>e())},t)}(()=>e._scaleTextNode(t,r),r);return}l.style.fontSize||(l.style.fontSize="".concat(u/a,"px")),s.style.fontSize=null;let{width:d}=t.getBoundingClientRect();if(d<0)return;let p=c*(1-2*o);d>p&&(s.style.fontSize="calc(1em * ".concat(p/d,")"))})}componentDidMount(){this._mounted=!0,this._scaleTextNode(this._node)}componentWillUnmount(){this._mounted=!1}render(){let{className:e,round:t,unstyled:n,title:r,name:a,value:o,avatar:i}=this.props,s=u1(this.props.size),l=n?null:{width:s.str,height:s.str,lineHeight:"initial",textAlign:"center",color:this.props.fgColor,background:i.color,borderRadius:u6(t)},c=[i.value,this.props.size].join("");return A().createElement(ds,this.props,A().createElement("div",{className:e+" sb-avatar__text",style:l,title:u5(r,a||o)},A().createElement("div",{style:n?null:{display:"table",tableLayout:"fixed",width:"100%",height:"100%"}},A().createElement("span",{style:n?null:{display:"table-cell",verticalAlign:"middle",fontSize:"100%",whiteSpace:"nowrap"}},A().createElement("span",{ref:this._scaleTextNode,key:c},i.value)))))}}(0,uW.A)(dc,"propTypes",{name:uY().string,value:uY().string,avatar:uY().object,title:uY().oneOfType([uY().string,uY().bool]),className:uY().string,unstyled:uY().bool,fgColor:uY().string,textSizeRatio:uY().number,textMarginRatio:uY().number,round:uY().oneOfType([uY().bool,uY().string,uY().number]),size:uY().oneOfType([uY().number,uY().string])}),(0,uW.A)(dc,"defaultProps",{className:"",fgColor:"#FFF",round:!1,size:100,textSizeRatio:3,textMarginRatio:.15,unstyled:!1});var du=n(89150),dd=n.n(du);class dp{constructor(e){(0,uW.A)(this,"props",null),(0,uW.A)(this,"isCompatible",()=>!!this.props.email||!!this.props.md5Email),(0,uW.A)(this,"get",e=>{let{props:t}=this,n=t.md5Email||dd()(t.email),r=u2(t.size),a="https://secure.gravatar.com/avatar/".concat(n,"?d=404");r&&(a+="&s=".concat(r)),e({sourceName:"gravatar",src:a})}),this.props=e}}(0,uW.A)(dp,"propTypes",{email:uY().string,md5Email:uY().string});class df{constructor(e){(0,uW.A)(this,"props",null),(0,uW.A)(this,"isCompatible",()=>!!this.props.facebookId),(0,uW.A)(this,"get",e=>{let{facebookId:t}=this.props,n=u2(this.props.size),r="https://graph.facebook.com/".concat(t,"/picture");n&&(r+="?width=".concat(n,"&height=").concat(n)),e({sourceName:"facebook",src:r})}),this.props=e}}(0,uW.A)(df,"propTypes",{facebookId:uY().string});class dm{constructor(e){(0,uW.A)(this,"props",null),(0,uW.A)(this,"isCompatible",()=>!!this.props.githubHandle),(0,uW.A)(this,"get",e=>{let{githubHandle:t}=this.props,n=u2(this.props.size),r="https://avatars.githubusercontent.com/".concat(t,"?v=4");n&&(r+="&s=".concat(n)),e({sourceName:"github",src:r})}),this.props=e}}(0,uW.A)(dm,"propTypes",{githubHandle:uY().string});class dh{constructor(e){(0,uW.A)(this,"props",null),(0,uW.A)(this,"isCompatible",()=>!!this.props.skypeId),(0,uW.A)(this,"get",e=>{let{skypeId:t}=this.props;e({sourceName:"skype",src:"https://api.skype.com/users/".concat(t,"/profile/avatar")})}),this.props=e}}(0,uW.A)(dh,"propTypes",{skypeId:uY().string});class d_{constructor(e){(0,uW.A)(this,"props",null),(0,uW.A)(this,"isCompatible",()=>!!(this.props.name||this.props.value||this.props.email)),(0,uW.A)(this,"get",e=>{let t=this.getValue();if(!t)return e(null);e({sourceName:"text",value:t,color:this.getColor()})}),this.props=e}getInitials(){let{name:e,initials:t}=this.props;return"string"==typeof t?t:"function"==typeof t?t(e,this.props):u3(e,this.props)}getValue(){return this.props.name?this.getInitials():this.props.value?this.props.value:null}getColor(){let{color:e,colors:t,name:n,email:r,value:a}=this.props;return e||u0(n||r||a,t)}}(0,uW.A)(d_,"propTypes",{color:uY().string,name:uY().string,value:uY().string,email:uY().string,maxInitials:uY().number,initials:uY().oneOfType([uY().string,uY().func])});class dg{constructor(e){(0,uW.A)(this,"props",null),(0,uW.A)(this,"isCompatible",()=>!!this.props.src),(0,uW.A)(this,"get",e=>{e({sourceName:"src",src:this.props.src})}),this.props=e}}(0,uW.A)(dg,"propTypes",{src:uY().string});class db{constructor(e){(0,uW.A)(this,"props",null),(0,uW.A)(this,"icon","✷"),(0,uW.A)(this,"isCompatible",()=>!0),(0,uW.A)(this,"get",e=>{let{color:t,colors:n}=this.props;e({sourceName:"icon",value:this.icon,color:t||u0(this.icon,n)})}),this.props=e}}function dy(e,t){var n;return n=class{constructor(n){(0,uW.A)(this,"props",null),(0,uW.A)(this,"isCompatible",()=>!!this.props.avatarRedirectUrl&&!!this.props[t]),(0,uW.A)(this,"get",n=>{let{avatarRedirectUrl:r}=this.props,a=u2(this.props.size),o=r.replace(/\/*$/,"/"),i=this.props[t],s="".concat(o).concat(e,"/").concat(i,"?").concat(a?"size=".concat(a):"");n({sourceName:e,src:s})}),this.props=n}},(0,uW.A)(n,"propTypes",{[t]:uY().oneOfType([uY().string,uY().number])}),n}(0,uW.A)(db,"propTypes",{color:uY().string});let dv=dy("twitter","twitterHandle"),dA=dy("vkontakte","vkontakteId"),d$=dy("instagram","instagramId"),dk=(l=function(e){let{sources:t=[]}=e,n=t.reduce((e,t)=>Object.assign(e,t.propTypes),{});class r extends v.PureComponent{constructor(e){super(e),(0,uW.A)(this,"_createFetcher",e=>n=>{let{cache:r}=this.props;if(!e.isActive(this.state))return;n&&"error"===n.type&&r.sourceFailed(n.target.src);let a=e.sourcePointer;if(t.length===a)return;let o=t[a];e.sourcePointer++,function(e,t,n){let{cache:r}=t,a=new e(t);if(!a.isCompatible(t))return n();a.get(e=>{!(e&&e.src&&r.hasSourceFailedBefore(e.src))&&e?n(e):n()})}(o,this.props,t=>{if(!t)return setTimeout(e.fetch,0);e.isActive(this.state)&&(t={src:null,value:null,color:null,...t},this.setState(n=>e.isActive(n)?t:{}))})}),(0,uW.A)(this,"fetch",()=>{let e=new di;e.fetch=this._createFetcher(e),this.setState({internal:e},e.fetch)}),this.state={internal:null,src:null,value:null,color:e.color}}componentDidMount(){this.fetch()}componentDidUpdate(e){let t=!1;for(let r in n)t=t||e[r]!==this.props[r];t&&setTimeout(this.fetch,0)}componentWillUnmount(){this.state.internal&&(this.state.internal.active=!1)}render(){let{children:e,propertyName:t}=this.props,{src:n,value:r,color:a,sourceName:o,internal:i}=this.state,s={src:n,value:r,color:a,sourceName:o,onRenderFailed:()=>i&&i.fetch()};if("function"==typeof e)return e(s);let l=A().Children.only(e);return A().cloneElement(l,{[t]:s})}}return(0,uW.A)(r,"displayName","AvatarDataProvider"),(0,uW.A)(r,"propTypes",{...n,cache:uY().object,propertyName:uY().string}),(0,uW.A)(r,"defaultProps",{propertyName:"avatar"}),(0,uW.A)(r,"Cache",uU),(0,uW.A)(r,"ConfigProvider",dr),Object.assign(da(r),{ConfigProvider:dr,Cache:uU})}({sources:[df,dy("google","googleId"),dm,dv,d$,dA,dh,dp,dg,d_,db]}),Object.assign(da(A().forwardRef((e,t)=>A().createElement(l,(0,uV.A)({},e,{propertyName:"avatar"}),n=>{let r=n.src?dl:dc;return A().createElement(r,(0,uV.A)({},e,{avatar:n,ref:t}))}))),{getRandomColor:u0,ConfigProvider:dr,Cache:uU}));var dx=n(35570),dC=n.n(dx),dw=n(13624);function dE(e){var t,n,r,a=(0,x.UK)({externalModuleName:"@openmrs/esm-styleguide"}).patientPhotoConceptUuid,o=a?"".concat(s5.Jj,"/obs?patient=").concat(e,"&concept=").concat(a,"&v=full"):null,i=(0,dw.Ay)(e?o:null,s5.lo),s=i.data,l=i.error,c=i.isLoading,u=null==s||null==(t=s.data)?void 0:t.results[0];return{data:u?{dateTime:null==u?void 0:u.obsDatetime,imageSrc:null==u||null==(r=u.value)||null==(n=r.links)?void 0:n.uri}:null,error:l,isLoading:c}}let dD=function(e){var t=e.width,n=e.height,r=(0,V.useTranslation)().t;return A().createElement("svg",{"aria-label":r("patientPhotoPlaceholder","Patient photo placeholder"),width:void 0===t?56:t,height:void 0===n?56:n,fill:"none",xmlns:"http://www.w3.org/2000/svg"},A().createElement("path",{fill:"#ffffff",d:"M0 0h56v56H0z"}),A().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m36.75 20.134-.884-.884L19.25 35.866l.884.884 1.25-1.25H34.25a1.252 1.252 0 0 0 1.25-1.25V21.384l1.25-1.25Zm-2.5 14.116H22.634l4.87-4.87 1.487 1.486a1.25 1.25 0 0 0 1.768 0l.991-.991 2.5 2.498v1.877Zm0-3.645-1.616-1.616a1.25 1.25 0 0 0-1.768 0l-.991.991-1.486-1.486 5.861-5.86v7.971Zm-12.5 1.145v-1.875l3.125-3.123.858.859.885-.885-.86-.86a1.25 1.25 0 0 0-1.767 0l-2.241 2.242V21.75h10V20.5h-10c-.69 0-1.25.56-1.25 1.25v10h1.25Z",fill:"#8D8D8D"}))};var dS=n(20921),dB={};dB.styleTagTransform=F(),dB.setAttributes=P(),dB.insert=B().bind(null,"head"),dB.domAPI=D(),dB.insertStyleElement=M(),w()(dS.A,dB);let dz=dS.A&&dS.A.locals?dS.A.locals:void 0;function dP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dT(e){var t,n=e.patientUuid,r=e.patientName,a=(0,V.useTranslation)().t,o=dE(n),i=o.data,s=o.isLoading,l=(t=(0,v.useState)(null),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return dP(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dP(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=l[0],u=l[1],d=(0,v.useMemo)(function(){return dC().generate(n)},[n]);(0,v.useEffect)(function(){if(null==i?void 0:i.imageSrc){var e=new Image;e.onload=function(){return u(i.imageSrc)},e.onerror=function(){return u(null)},e.src=i.imageSrc}},[null==i?void 0:i.imageSrc]);var p=a("avatarAltText","Profile photo unavailable - grey placeholder image");return s?A().createElement(sG.SkeletonIcon,{className:dz.skeleton,"data-testid":"skeleton-icon"}):(null==i?void 0:i.imageSrc)&&!c?A().createElement(dD,null):A().createElement(dk,{alt:p,color:"rgba(0,0,0,0)",maxInitials:3,name:r,size:"56",src:null!=c?c:void 0,style:c?void 0:{backgroundImage:d.toDataUrl(),backgroundRepeat:"round"},textSizeRatio:2})}var dM=n(13489),dO={};dO.styleTagTransform=F(),dO.setAttributes=P(),dO.insert=B().bind(null,"head"),dO.domAPI=D(),dO.insertStyleElement=M(),w()(dM.A,dO);let dF=dM.A&&dM.A.locals?dM.A.locals:void 0;var dI=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-appointments",pictogramProps:e})})),dN=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-home",pictogramProps:e})})),dj=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-in-patient",pictogramProps:e})})),dR=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-laboratory",pictogramProps:e})})),dL=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-patient-lists",pictogramProps:e})})),dV=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-pharmacy",pictogramProps:e})})),dH=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-registration",pictogramProps:e})})),dG=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-service-queues",pictogramProps:e})})),dU=(0,v.memo)((0,v.forwardRef)(function(e,t){return A().createElement(dW,{ref:t,pictogram:"omrs-pict-stock-management",pictogramProps:e})})),dq=(0,v.memo)((0,v.forwardRef)(function(e,t){var n=e.pictogram,r=e.fallback,a=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["pictogram","fallback"]),o=(0,v.useRef)(document.getElementById(n));return(0,v.useEffect)(function(){var e=document.getElementById("omrs-svgs-container"),t=new MutationObserver(function(e){var t=!0,r=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var l=i.value;"childList"===l.type&&(o.current=document.getElementById(n))}}catch(e){r=!0,a=e}finally{try{t||null==s.return||s.return()}finally{if(r)throw a}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[n]),A().createElement(x.fS,{value:o.current,fallback:r},A().createElement(dW,{ref:t,pictogram:n,pictogramProps:a}))})),dW=(0,v.memo)((0,v.forwardRef)(function(e,t){var n=e.pictogram,r=Object.assign({},{size:92},e.pictogramProps),a=r.className,o=r.size;return(o<=26||o>144)&&(console.error("Invalid size '".concat(o,"' specified for ").concat(n,". Defaulting to 92.")),o=92),A().createElement("svg",{ref:t,className:k()(dF.pictogram,a),height:o,width:o},A().createElement("use",{href:"#".concat(n)}))}));function dK(e){var t=e.showContactDetails,n=e.toggleContactDetails,r=e.className;return A().createElement(sG.Button,{className:r,iconDescription:"Toggle contact details",kind:"ghost",onClick:n,renderIcon:t?oK:oU},t?(0,sq.V)("showLess","Show less"):(0,sq.V)("showMore","Show more"))}var dY=function(e){var t,n=s2()("".concat(s5.Jj,"/patient/").concat(e,"?v=").concat("custom:(uuid,display,identifiers:(identifier,uuid,preferred,location:(uuid,name),identifierType:(uuid,name,format,formatDescription,validator)),person:(uuid,display,gender,birthdate,dead,age,deathDate,birthdateEstimated,causeOfDeath,preferredName:(uuid,preferred,givenName,middleName,familyName),attributes,preferredAddress:(uuid,preferred,address1,address2,cityVillage,longitude,stateProvince,latitude,country,postalCode,countyDistrict,address3,address4,address5,address6,address7)))"),s5.lo),r=n.data,a=n.error;return{isLoading:n.isLoading,attributes:null!=(t=null==r?void 0:r.data.person.attributes)?t:[],error:a}},dJ=function(e){var t=(0,x.UK)({externalModuleName:"@openmrs/esm-patient-banner-app"}).contactAttributeTypes,n=void 0===t?[]:t,r=dY(e),a=r.attributes,o=r.error,i=r.isLoading;return{contactAttributes:(0,v.useMemo)(function(){return a.filter(function(e){var t=e.attributeType;return null==n?void 0:n.some(function(e){return t.uuid===e})})},[a,n]),isLoading:i,error:o}},dZ=n(25377),dX={};dX.styleTagTransform=F(),dX.setAttributes=P(),dX.insert=B().bind(null,"head"),dX.domAPI=D(),dX.insertStyleElement=M(),w()(dZ.A,dX);let dQ=dZ.A&&dZ.A.locals?dZ.A.locals:void 0;function d0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d1(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(e,t)||d2(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d2(e,t){if(e){if("string"==typeof e)return d0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d0(e,t)}}var d3=function(e){var t,n,r,a,o,i,s,l,c=(a=(n=e.patientUuid)?"".concat(s5.Jj,"/cohortm/cohortmember?patient=").concat(n,"&v=").concat("custom:(uuid,patient:ref,cohort:(uuid,name,startDate,endDate))"):null,i=(o=(0,dw.Ay)(a,s5.lo)).data,s=o.isLoading,l=null==i||null==(r=i.data)?void 0:r.results.map(function(e){return{uuid:e.cohort.uuid,name:e.cohort.name,startDate:e.cohort.startDate,endDate:e.cohort.endDate}}),(0,v.useMemo)(function(){return{cohorts:l,isLoading:s}},[s,l])),u=c.cohorts,d=void 0===u?[]:u,p=c.isLoading;return A().createElement(A().Fragment,null,A().createElement("p",{className:dQ.heading},(0,sq.V)("patientLists","Patient Lists")," (",null!=(t=null==d?void 0:d.length)?t:0,")"),p?A().createElement(sG.InlineLoading,{description:"".concat((0,sq.V)("loading","Loading")," ..."),role:"progressbar"}):A().createElement("ul",null,function(){if((null==d?void 0:d.length)>0){var e=d.sort(function(e,t){return(0,ox._U)(null==e?void 0:e.startDate).getTime()-(0,ox._U)(null==t?void 0:t.startDate).getTime()}).slice(0,3);return null==e?void 0:e.map(function(e){return A().createElement("li",{key:e.uuid},A().createElement(x.i_,{to:"".concat(window.spaBase,"/home/patient-lists/").concat(e.uuid),key:e.uuid},e.name))})}return A().createElement("li",null,"--")}(),d.length>3&&A().createElement("li",{className:dQ.link},A().createElement(x.i_,{to:"".concat(window.spaBase,"/home/patient-lists")},(0,sq.V)("seeMoreLists","See {{count}} more lists",{count:(null==d?void 0:d.length)-3})))))},d4=function(e){var t,n=e.patientId,r=(0,x.tQ)(n),a=r.patient,o=r.isLoading,i=null==a||null==(t=a.address)?void 0:t.find(function(e){return"home"===e.use}),s=function(e){return e.split("#")[1]};return o?A().createElement(sG.InlineLoading,{description:"".concat((0,sq.V)("loading","Loading")," ..."),role:"progressbar"}):A().createElement(A().Fragment,null,A().createElement("p",{className:dQ.heading},(0,sq.V)("address","Address")),A().createElement("ul",null,i?Object.entries(i).filter(function(e){var t=d1(e,1)[0];return"id"!==t&&"use"!==t}).map(function(e){var t,n,r,a=d1(e,2),o=a[0],l=a[1];return"extension"===o?null==(r=i.extension)||null==(n=r[0])||null==(t=n.extension)?void 0:t.map(function(e,t){return A().createElement("li",{key:"address-".concat(o,"-").concat(t)},(0,sq.V)(s(e.url),s(e.url)),": ",e.valueString)}):A().createElement("li",{key:"address-".concat(o)},(0,sq.V)(o,o),": ",l)}):A().createElement("li",null,"--")))},d5=function(e){var t=dJ(e.patientUuid),n=t.isLoading,r=t.contactAttributes,a=(0,v.useMemo)(function(){var e;return r?function(e){if(Array.isArray(e))return d0(e)}(e=null==r?void 0:r.map(function(e){return[e.attributeType.display?(0,sq.V)(e.attributeType.display,e.attributeType.display):"",e.value]}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d2(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():[]},[r]);return A().createElement(A().Fragment,null,A().createElement("p",{className:dQ.heading},(0,sq.V)("contactDetails","Contact Details")),n?A().createElement(sG.InlineLoading,{description:"".concat((0,sq.V)("loading","Loading")," ..."),role:"progressbar"}):A().createElement("ul",null,a.length?a.map(function(e,t){var n=d1(e,2),r=n[0],a=n[1];return A().createElement("li",{key:"".concat(r,"-").concat(a,"-").concat(t)},r,": ",a)}):A().createElement("li",null,"--")))},d6=function(e){var t,n,r,a,o,i,s,l,c,u,d=(t=e.patientId,a="".concat(s5.Jj,"/relationship?v=").concat("custom:(display,uuid,personA:(age,display,birthdate,uuid),personB:(age,display,birthdate,uuid),relationshipType:(uuid,display,description,aIsToB,bIsToA))","&person=").concat(t),i=(o=(0,dw.Ay)(t?a:null,s5.lo)).data,s=o.error,l=o.isLoading,c=o.isValidating,u=(null==i||null==(r=i.data)||null==(n=r.results)?void 0:n.length)?function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var l=i.value;e===l.personA.uuid?n.push({uuid:"".concat(l.uuid),display:l.personB.display,relativeAge:l.personB.age,relativeUuid:l.personB.uuid,relationshipType:l.relationshipType.bIsToA}):n.push({uuid:"".concat(l.uuid),display:l.personA.display,relativeAge:l.personA.age,relativeUuid:l.personA.uuid,relationshipType:l.relationshipType.aIsToB})}}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}(t,i.data.results):null,{data:i?u:null,error:s,isLoading:l,isValidating:c}),p=d.data,f=d.isLoading;return A().createElement(A().Fragment,null,A().createElement("p",{className:dQ.heading},(0,sq.V)("relationships","Relationships")),f?A().createElement(sG.InlineLoading,{description:"".concat((0,sq.V)("loading","Loading")," ..."),role:"progressbar"}):A().createElement("ul",null,p&&p.length>0?A().createElement(A().Fragment,null,p.map(function(e){return A().createElement("li",{key:e.uuid,className:dQ.relationship},A().createElement("div",null,A().createElement(x.i_,{to:"".concat(window.spaBase,"/patient/").concat(e.relativeUuid,"/chart")},e.display)),A().createElement("div",null,e.relationshipType),A().createElement("div",null,"".concat(e.relativeAge?e.relativeAge:"--"," ").concat(e.relativeAge?1===e.relativeAge?"yr":"yrs":"")))})):A().createElement("li",null,"--")))};function d7(e){var t,n,r=e.patientId,a=e.deceased;return A().createElement("div",{className:k()(dQ.contactDetails,(t={},n=dQ.deceased,n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t))},A().createElement("div",{className:dQ.row},A().createElement("div",{className:dQ.col},A().createElement(d4,{patientId:r})),A().createElement("div",{className:dQ.col},A().createElement(d5,{patientUuid:r}))),A().createElement("div",{className:dQ.row},A().createElement("div",{className:dQ.col},A().createElement(d6,{patientId:r})),A().createElement("div",{className:dQ.col},A().createElement(d3,{patientUuid:r}))))}function d8(e){var t=document.querySelector("template#loading-spinner");if(t){var n=t.content.cloneNode(!0),r=Array.prototype.map.call(n.childNodes,function(e){return e});return e.appendChild(n),function(){return r.forEach(function(e){return e.remove()})}}return function(){}}},79736:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},36678:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(33780);function a(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,(0,r.A)(a.key),a)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},93442:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(33780);function a(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},33780:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(85761);function a(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=(0,r.A)(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},85761:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{A:()=>r})},27532:function(e,t,n){"use strict";n.d(t,{Ip:()=>b,_l:()=>h,gX:()=>f,ng:()=>d});var r=n(2385),a=n(34324),o=n(68569),i=n(12748),s=n(31530),l=n(91805);function c(e){let t,n="object"==typeof e[0]?e.shift():new(0,i.FG);if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}var u=new WeakMap;class d{copy(){return this.era?new d(this.calendar,this.era,this.year,this.month,this.day):new d(this.calendar,this.year,this.month,this.day)}add(e){return(0,r.WQ)(this,e)}subtract(e){return(0,r.Re)(this,e)}set(e){return(0,r.hZ)(this,e)}cycle(e,t,n){return(0,r.xy)(this,e,t,n)}toDate(e){return(0,s.ay)(this,e)}toString(){return(0,o.$T)(this)}compare(e){return(0,a.SE)(this,e)}constructor(...e){(0,l._)(this,u,{writable:!0,value:void 0});let[t,n,a,o,i]=c(e);this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=i,(0,r.AU)(this)}}var p=new WeakMap;class f{copy(){return new f(this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.tY)(this,e)}subtract(e){return(0,r.YP)(this,e)}set(e){return(0,r.ib)(this,e)}cycle(e,t,n){return(0,r.gt)(this,e,t,n)}toString(){return(0,o.ot)(this)}compare(e){return(0,a.Nu)(this,e)}constructor(e=0,t=0,n=0,a=0){(0,l._)(this,p,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=a,(0,r.Rb)(this)}}var m=new WeakMap;class h{copy(){return this.era?new h(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new h(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.WQ)(this,e)}subtract(e){return(0,r.Re)(this,e)}set(e){return(0,r.hZ)((0,r.ib)(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return(0,r.xy)(this,e,t,n);default:return(0,r.gt)(this,e,t,n)}}toDate(e,t){return(0,s.ay)(this,e,t)}toString(){return(0,o.qk)(this)}compare(e){let t=(0,a.SE)(this,e);return 0===t?(0,a.Nu)(this,(0,s.tR)(e)):t}constructor(...e){(0,l._)(this,m,{writable:!0,value:void 0});let[t,n,a,o,i]=c(e);this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,r.AU)(this)}}var g=new WeakMap;class b{copy(){return this.era?new b(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new b(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.E0)(this,e)}subtract(e){return(0,r.d_)(this,e)}set(e,t){return(0,r.D8)(this,e,t)}cycle(e,t,n){return(0,r.XH)(this,e,t,n)}toDate(){return(0,s.cd)(this)}toString(){return(0,o.e6)(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(0,s.uB)(e,this.timeZone).toDate().getTime()}constructor(...e){(0,l._)(this,g,{writable:!0,value:void 0});let[t,n,a,o,i]=c(e),s=e.shift(),u=e.shift();this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=i,this.timeZone=s,this.offset=u,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,r.AU)(this)}}},12748:function(e,t,n){"use strict";n.d(t,{FG:()=>u,LA:()=>s,U_:()=>i,f5:()=>l,rG:()=>o});var r=n(27532),a=n(36829);function o(e,t,n,r){let a=(t=s(e,t))-1,o=-2;return n<=2?o=0:i(t)&&(o=-1),1721425+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*n-362)/12+o+r)}function i(e){return e%4==0&&(e%100!=0||e%400==0)}function s(e,t){return"BC"===e?1-t:t}function l(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}let c={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 u{fromJulianDay(e){let t=e-1721426,n=Math.floor(t/146097),s=(0,a.z)(t,146097),c=Math.floor(s/36524),u=(0,a.z)(s,36524),d=Math.floor(u/1461),p=Math.floor((0,a.z)(u,1461)/365),[f,m]=l(400*n+100*c+4*d+p+ +(4!==c&&4!==p)),h=e-o(f,m,1,1),g=2;e<o(f,m,3,1)?g=0:i(m)&&(g=1);let b=Math.floor(((h+g)*12+373)/367),y=e-o(f,m,b,1)+1;return new(0,r.ng)(f,m,b,y)}toJulianDay(e){return o(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return c[i(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return i(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}},31530:function(e,t,n){"use strict";n.d(t,{Tr:()=>p,Yd:()=>m,ay:()=>f,cd:()=>v,gw:()=>h,oU:()=>s,tR:()=>g,uB:()=>y,yP:()=>b});var r=n(27532),a=n(2385),o=n(12748),i=n(34324);function s(e){return e=b(e,new(0,o.FG)),l((0,o.LA)(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function l(e,t,n,r,a,o,i){let s=new Date;return s.setUTCHours(r,a,o,i),s.setUTCFullYear(e,t-1,n),s.getTime()}function c(e,t){if("UTC"===t)return 0;if(e>0&&t===(0,i.Xj)())return -6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:a,hour:o,minute:s,second:c}=d(e,t);return l(n,r,a,o,s,c,0)-1e3*Math.floor(e/1e3)}let u=new Map;function d(e,t){let n=u.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"}),u.set(t,n));let r=n.formatToParts(new Date(e)),a={};for(let e of r)"literal"!==e.type&&(a[e.type]=e.value);return{year:"BC"===a.era||"B"===a.era?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:"24"===a.hour?0:+a.hour,minute:+a.minute,second:+a.second}}function p(e,t,n="compatible"){var r,a,l;let u=g(e);if("UTC"===t)return s(u);if(t===(0,i.Xj)()&&"compatible"===n){u=b(u,new(0,o.FG));let e=new Date,t=(0,o.LA)(u.era,u.year);return e.setFullYear(t,u.month-1,u.day),e.setHours(u.hour,u.minute,u.second,u.millisecond),e.getTime()}let f=s(u),m=c(f-864e5,t),h=c(f+864e5,t),y=(r=u,((a=f-m)==(l=f-h)?[a]:[a,l]).filter(e=>{var n;let a;return n=r,a=d(e,t),n.year===a.year&&n.month===a.month&&n.day===a.day&&n.hour===a.hour&&n.minute===a.minute&&n.second===a.second}));if(1===y.length)return y[0];if(y.length>1)switch(n){case"compatible":case"earlier":return y[0];case"later":return y[y.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(f-m,f-h);case"compatible":case"later":return Math.max(f-m,f-h);case"reject":throw RangeError("No such absolute time found")}}function f(e,t,n="compatible"){return new Date(p(e,t,n))}function m(e,t){let n=c(e,t),a=new Date(e+n),o=a.getUTCFullYear(),i=a.getUTCMonth()+1,s=a.getUTCDate(),l=a.getUTCHours(),u=a.getUTCMinutes(),d=a.getUTCSeconds(),p=a.getUTCMilliseconds();return new(0,r.Ip)(o<1?"BC":"AD",o<1?-o+1:o,i,s,t,n,l,u,d,p)}function h(e){return new(0,r.ng)(e.calendar,e.era,e.year,e.month,e.day)}function g(e,t){let n=0,a=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:a,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:a,second:o,millisecond:i}=t),new(0,r._l)(e.calendar,e.era,e.year,e.month,e.day,n,a,o,i)}function b(e,t){if((0,i.Jg)(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,(0,a.AU)(r),r}function y(e,t,n){if(e instanceof r.Ip){var a,o;return e.timeZone===t?e:(a=e,o=t,b(m(s(a)-a.offset,o),a.calendar))}return m(p(e,t,n),t)}function v(e){return new Date(s(e)-e.offset)}},32878:function(e,t,n){"use strict";let r,a;n.d(t,{d:()=>J});var o=n(27532),i=n(12748);class s extends i.FG{fromJulianDay(e){let t=super.fromJulianDay(e),n=(0,i.LA)(t.era,t.year);return new(0,o.ng)(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(l(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(l(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function l(e){let[t,n]=(0,i.f5)(e.year+-543);return new(0,o.ng)(t,n,e.month,e.day)}function c(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function u(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-c(e,n,1,1))/30),a=t+1-c(e,n,r,1);return[n,r,a]}function d(e){return Math.floor(e%4/3)}function p(e,t){return t%13!=0?30:d(e)+5}class f{fromJulianDay(e){let[t,n,r]=u(1723856,e),a="AM";return t<=0&&(a="AA",t+=5500),new(0,o.ng)(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=5500),c(1723856,t,e.month,e.day)}getDaysInMonth(e){return p(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+d(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class m extends f{fromJulianDay(e){let[t,n,r]=u(1723856,e);return t+=5500,new(0,o.ng)(this,"AA",t,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class h extends f{fromJulianDay(e){let[t,n,r]=u(1824665,e),a="CE";return t<=0&&(a="BCE",t=1-t),new(0,o.ng)(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),c(1824665,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),p(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}var g=n(36829);let b=765433;function y(e){return 7>(0,g.z)(7*e+1,19)}function v(e){let t=Math.floor((235*e-234)/19),n=29*t+Math.floor((12084+13753*t)/25920);return 3>(0,g.z)(3*(n+1),7)&&(n+=1),n}function A(e){let t,n;return v(e)+(t=v(e-1),n=v(e),v(e+1)-n==356?2:+(n-t==382))}function $(e){return A(e+1)-A(e)}function k(e,t){if(t>=6&&!y(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=$(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?30*!!y(e):30}class x{fromJulianDay(e){let t=e-347997,n=Math.floor((25920*t/b*19+234)/235)+1,r=A(n),a=Math.floor(t-r);for(;a<1;)a=Math.floor(t-(r=A(--n)));let i=1,s=0;for(;s<a;)s+=k(n,i),i++;let l=a-(s-=k(n,--i));return new(0,o.ng)(this,n,i,l)}toJulianDay(e){let t=A(e.year);for(let n=1;n<e.month;n++)t+=k(e.year,n);return t+e.day+347997}getDaysInMonth(e){return k(e.year,e.month)}getMonthsInYear(e){return y(e.year)?13:12}getDaysInYear(e){return $(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(y(t.year)&&!y(e.year)&&t.month>6?e.month--:!y(t.year)&&y(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class C extends i.FG{fromJulianDay(e){let t,n,r,a=super.fromJulianDay(e),s=a.year-78,l=e-(0,i.rG)(a.era,a.year,1,1);if(l<80?(s--,l+=(t=(0,i.U_)(a.year-1)?31:30)+155+90+10):(t=(0,i.U_)(a.year)?31:30,l-=80),l<t)n=1,r=l+1;else{let e=l-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new(0,o.ng)(this,s,n,r)}toJulianDay(e){let t,n,r=e.year+78,[a,o]=(0,i.f5)(r);return((0,i.U_)(o)?(t=31,n=(0,i.rG)(a,o,3,21)):(t=30,n=(0,i.rG)(a,o,3,22)),1===e.month)?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=(e.month-7)*30),n+=e.day-1)}getDaysInMonth(e){return 1===e.month&&(0,i.U_)(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}function w(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function E(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),a=Math.min(12,Math.ceil((n-(29+w(t,r,1,1)))/29.5)+1),i=n-w(t,r,a,1)+1;return new(0,o.ng)(e,r,a,i)}function D(e){return(14+11*e)%30<11}class S{fromJulianDay(e){return E(this,1948440,e)}toJulianDay(e){return w(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&D(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return D(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class B extends S{fromJulianDay(e){return E(this,1948439,e)}toJulianDay(e){return w(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function z(e){return 460322+a[e-1300]}function P(e,t){return(r[e-1300]&1<<11-(t-1))==0?29:30}function T(e,t){let n=z(e);for(let r=1;r<t;r++)n+=P(e,r);return n}function M(e){return a[e+1-1300]-a[e-1300]}class O extends S{fromJulianDay(e){let t=e-1948440,n=z(1300),r=z(1600);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){r=t-z(++e)+1;let a=M(e);if(r===a){n=12;break}if(r<a){let t=P(e,n);for(n=1;r>t;)r-=t,t=P(e,++n);break}}return new(0,o.ng)(this,e,n,t-T(e,n)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+T(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):P(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):M(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",r||(r=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!a){a=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){a[t-1300]=e;for(let n=1;n<=12;n++)e+=P(t,n)}}}}let F=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],I=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],N=[1867,1911,1925,1988,2018],j=["meiji","taisho","showa","heisei","reiwa"];function R(e){let t=F.findIndex(([t,n,r])=>!!(e.year<t)||e.year===t&&!!(e.month<n)||e.year===t&&e.month===n&&!!(e.day<r));return -1===t?F.length-1:0===t?0:t-1}function L(e){let t=N[j.indexOf(e.era)];if(!t)throw Error("Unknown era: "+e.era);return new(0,o.ng)(e.year+t,e.month,e.day)}class V extends i.FG{fromJulianDay(e){let t=super.fromJulianDay(e),n=R(t);return new(0,o.ng)(this,j[n],t.year-N[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(L(e))}balanceDate(e){let t=L(e),n=R(t);j[n]!==e.era&&(e.era=j[n],e.year=t.year-N[n]),this.constrainDate(e)}constrainDate(e){let t=j.indexOf(e.era),n=I[t];if(null!=n){let[r,a,o]=n,i=r-N[t];e.year=Math.max(1,Math.min(i,e.year)),e.year===i&&(e.month=Math.min(a,e.month),e.month===a&&(e.day=Math.min(o,e.day)))}if(1===e.year&&t>=0){let[,n,r]=F[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return j}getYearsInEra(e){let t=j.indexOf(e.era),n=F[t],r=F[t+1];if(null==r)return 9999-n[0]+1;let a=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&a++,a}getDaysInMonth(e){return super.getDaysInMonth(L(e))}getMinimumMonthInYear(e){let t=H(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=H(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function H(e){if(1===e.year)return F[j.indexOf(e.era)]}let G=[0,31,62,93,124,155,186,216,246,276,306,336];class U{fromJulianDay(e){let t=e-1948320,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),a=r<216?Math.floor(r/31):Math.floor((r-6)/30),i=r-G[a]+1;return new(0,o.ng)(this,n,a+1,i)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=G[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>(0,g.z)(25*e.year+11,33)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function q(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function W(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class K extends i.FG{fromJulianDay(e){let t=super.fromJulianDay(e),[n,r]=W((0,i.LA)(t.era,t.year));return new(0,o.ng)(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Y(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=W(q(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(Y(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function Y(e){let[t,n]=(0,i.f5)(q(e));return new(0,o.ng)(t,n,e.month,e.day)}function J(e){switch(e){case"buddhist":return new s;case"ethiopic":return new f;case"ethioaa":return new m;case"coptic":return new h;case"hebrew":return new x;case"indian":return new C;case"islamic-civil":return new S;case"islamic-tbla":return new B;case"islamic-umalqura":return new O;case"japanese":return new V;case"persian":return new U;case"roc":return new K;default:return new(0,i.FG)}}},2385:function(e,t,n){"use strict";n.d(t,{AU:()=>c,D8:()=>w,E0:()=>k,Rb:()=>m,Re:()=>d,WQ:()=>o,XH:()=>C,YP:()=>y,d_:()=>x,gt:()=>A,hZ:()=>p,ib:()=>f,tY:()=>b,xy:()=>v});var r=n(31530),a=n(12748);function o(e,t){let n=e.copy(),r="hour"in n?g(n,t):0;i(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,s(n),l(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,s(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,s(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let a=n.calendar.getYearsInEra(n);if(n.year>a){var o,c;let e=null==(o=(c=n.calendar).isInverseEra)?void 0:o.call(c,n);n.year=a,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function i(e,t){var n,r;(null==(n=(r=e.calendar).isInverseEra)?void 0:n.call(r,e))&&(t=-t),e.year+=t}function s(e){for(;e.month<1;)i(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,i(e,1)}function l(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 c(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),l(e)}function u(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function d(e,t){return o(e,u(t))}function p(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),c(n),n}function f(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),m(n),n}function m(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 h(e,t){let n=e%t;return n<0&&(n+=t),n}function g(e,t){let n;return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=h(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=h(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=h(e.minute,60),n=Math.floor(e.hour/24),e.hour=h(e.hour,24),n}function b(e,t){let n=e.copy();return g(n,t),n}function y(e,t){return b(e,u(t))}function v(e,t,n,r){let a=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),o=t.indexOf(e.era);if(o<0)throw Error("Invalid era: "+e.era);o=$(o,n,0,t.length-1,null==r?void 0:r.round),a.era=t[o],c(a);break}case"year":var o,i;(null==(o=(i=a.calendar).isInverseEra)?void 0:o.call(i,a))&&(n=-n),a.year=$(e.year,n,-1/0,9999,null==r?void 0:r.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=$(e.month,n,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":a.day=$(e.day,n,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),c(a),a}function A(e,t,n,r){let a=e.copy();switch(t){case"hour":{let t=e.hour,o=0,i=23;if((null==r?void 0:r.hourCycle)===12){let e=t>=12;o=12*!!e,i=e?23:11}a.hour=$(t,n,o,i,null==r?void 0:r.round);break}case"minute":a.minute=$(e.minute,n,0,59,null==r?void 0:r.round);break;case"second":a.second=$(e.second,n,0,59,null==r?void 0:r.round);break;case"millisecond":a.millisecond=$(e.millisecond,n,0,999,null==r?void 0:r.round);break;default:throw Error("Unsupported field "+t)}return a}function $(e,t,n,r,a=!1){if(a){(e+=Math.sign(t))<n&&(e=r);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function k(e,t){let n;if(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days){let a=o((0,r.tR)(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=(0,r.Tr)(a,e.timeZone)}else n=(0,r.oU)(e)-e.offset;n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0);let a=(0,r.Yd)(n,e.timeZone);return(0,r.yP)(a,e.calendar)}function x(e,t){return k(e,u(t))}function C(e,t,n,o){switch(t){case"hour":{let t=0,i=23;if((null==o?void 0:o.hourCycle)===12){let n=e.hour>=12;t=12*!!n,i=n?23:11}let s=(0,r.tR)(e),l=(0,r.yP)(f(s,{hour:t}),new(0,a.FG)),c=[(0,r.Tr)(l,e.timeZone,"earlier"),(0,r.Tr)(l,e.timeZone,"later")].filter(t=>(0,r.Yd)(t,e.timeZone).day===l.day)[0],u=(0,r.yP)(f(s,{hour:i}),new(0,a.FG)),d=[(0,r.Tr)(u,e.timeZone,"earlier"),(0,r.Tr)(u,e.timeZone,"later")].filter(t=>(0,r.Yd)(t,e.timeZone).day===u.day).pop(),p=(0,r.oU)(e)-e.offset,m=Math.floor(p/36e5),h=p%36e5;return p=36e5*$(m,n,Math.floor(c/36e5),Math.floor(d/36e5),null==o?void 0:o.round)+h,(0,r.yP)((0,r.Yd)(p,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return A(e,t,n,o);case"era":case"year":case"month":case"day":{let a=v((0,r.tR)(e),t,n,o),i=(0,r.Tr)(a,e.timeZone);return(0,r.yP)((0,r.Yd)(i,e.timeZone),e.calendar)}default:throw Error("Unsupported field "+t)}}function w(e,t,n){let a=(0,r.tR)(e),o=f(p(a,t),t);if(0===o.compare(a))return e;let i=(0,r.Tr)(o,e.timeZone,n);return(0,r.yP)((0,r.Yd)(i,e.timeZone),e.calendar)}},34324:function(e,t,n){"use strict";n.d(t,{p9:()=>A,$I:()=>w,xz:()=>k,RZ:()=>D,oT:()=>x,tB:()=>p,kq:()=>C,Jg:()=>l,Py:()=>S,tF:()=>i,Xj:()=>y,Nu:()=>h,SJ:()=>d,SE:()=>m,ro:()=>o,D:()=>$,ZI:()=>B,Ec:()=>f,cK:()=>c,NV:()=>s,wH:()=>v});var r=n(31530);let a={"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 o(e,t){return t=(0,r.yP)(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function i(e,t){return t=(0,r.yP)(t,e.calendar),e=v(e),t=v(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function s(e,t){return l(e.calendar,t.calendar)&&o(e,t)}function l(e,t){var n,r,a,o;return null!=(o=null!=(a=null==(n=e.isEqual)?void 0:n.call(e,t))?a:null==(r=t.isEqual)?void 0:r.call(t,e))?o:e.identifier===t.identifier}function c(e,t){return o(e,f(t))}let u={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function d(e,t,n){let r,o=Math.ceil(e.calendar.toJulianDay(e)+1-(n?u[n]:(r=function(e){if(Intl.Locale){let t=E.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&E.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(t))&&a[r]||0))%7;return o<0&&(o+=7),o}function p(e){return(0,r.Yd)(Date.now(),e)}function f(e){return(0,r.gw)(p(e))}function m(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function h(e,t){return g(e)-g(t)}function g(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let b=null;function y(){return null==b&&(b=new Intl.DateTimeFormat().resolvedOptions().timeZone),b}function v(e){return e.subtract({days:e.day-1})}function A(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function $(e){return v(e.subtract({months:e.month-1}))}function k(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function x(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function C(e,t,n){let r=d(e,t,n);return e.subtract({days:r})}function w(e,t,n){return C(e,t,n).add({days:6})}let E=new Map;function D(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((d(v(e),t,n)+r)/7)}function S(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function B(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}},68569:function(e,t,n){"use strict";n.d(t,{$T:()=>p,DP:()=>c,_U:()=>l,e6:()=>m,ot:()=>d,qk:()=>f});var r=n(27532),a=n(31530),o=n(12748);let i=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,s=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function l(e){let t=e.match(i);if(!t)throw Error("Invalid ISO 8601 date string: "+e);let n=new(0,r.ng)(u(t[1],0,9999),u(t[2],1,12),1);return n.day=u(t[3],1,n.calendar.getDaysInMonth(n)),n}function c(e){let t=e.match(s);if(!t)throw Error("Invalid ISO 8601 date time string: "+e);let n=u(t[1],-9999,9999),a=new(0,r._l)(n<1?"BC":"AD",n<1?-n+1:n,u(t[2],1,12),1,t[4]?u(t[4],0,23):0,t[5]?u(t[5],0,59):0,t[6]?u(t[6],0,59):0,t[7]?1e3*u(t[7],0,1/0):0);return a.day=u(t[3],0,a.calendar.getDaysInMonth(a)),a}function u(e,t,n){let r=Number(e);if(r<t||r>n)throw RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function d(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 p(e){let t,n=(0,a.yP)(e,new(0,o.FG));return t="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${t}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function f(e){return`${p(e)}T${d(e)}`}function m(e){var t;let n,r,a;return`${f(e)}${n=0>Math.sign(t=e.offset)?"-":"+",r=Math.floor((t=Math.abs(t))/36e5),a=t%36e5/6e4,`${n}${String(r).padStart(2,"0")}:${String(a).padStart(2,"0")}`}[${e.timeZone}]`}},36829:function(e,t,n){"use strict";function r(e,t){return e-t*Math.floor(e/t)}n.d(t,{z:()=>r})},91805:function(e,t,n){"use strict";function r(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}n.d(t,{_:()=>r})},8902:function(e,t,n){"use strict";if(n.d(t,{CD:()=>D}),"undefined"!=typeof navigator){let e=navigator;r=Array.isArray(e.languages)?e.languages[0]:e.language}else if("undefined"!=typeof process){let e=process.env;r=e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}var r,a=function(e){e=(e=e.replace(/_/g,"-")).replace(/[.:][\w-]*$/,"");try{return new Intl.Locale(e).baseName}catch(e){return"en-US"}}(r||"en-US"),o=class extends Date{invalid=null;isValid(){return!Number.isNaN(this.valueOf())}},i={};for(let e=0;e<100;e++)i[(e<=9?"0":"")+e]=e+(e>51?1900:2e3);var s={arab:1632,arabext:1776,bali:6992,beng:2534,deva:2406,fullwide:65296,gujr:2790,khmr:6112,knda:3302,laoo:3792,limb:6470,mlym:3430,mong:6160,mymr:4160,orya:2918,tamldec:3046,telu:3174,thai:3664,tibt:3872},l="[1234567890一二三四五六七八九〇\\d]",c={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9},u={},d={"Eastern Daylight Time":-240,"Eastern Standard Time":-300,"Central Daylight Time":-300,"Central Standard Time":-360,"Mountain Daylight Time":-360,"Mountain Standard Time":-420,"Pacific Daylight Time":-420,"Pacific Standard Time":-480,"Coordinated Universal Time":0,ACDT:630,ACST:570,ACT:480,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,AMST:-180,AMT:-240,ART:-180,AST:180,AWDT:540,AWST:480,AZOST:-60,AZT:240,BDT:360,BIOT:360,BIT:-720,BOT:-240,BRST:-120,BRT:-180,BTT:360,CAT:120,CCT:390,CDT:-300,CEDT:120,CEST:120,CET:60,CHADT:825,CHAST:765,CHOT:480,ChST:600,CHUT:600,CIST:-480,CIT:480,CKT:-600,CLST:-180,CLT:-240,COST:-240,COT:-300,CST:-360,CT:480,CVT:-60,CXT:420,DAVT:420,DDUT:600,DFT:60,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEDT:180,EEST:180,EET:120,EGST:0,EGT:-60,EIT:540,EST:-300,FET:180,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GIT:-540,GMT:0,GST:-120,GYT:-240,HADT:-540,HAEC:120,HAST:-600,HKT:480,HMT:300,HOVT:420,HST:-600,IBST:0,ICT:420,IDT:180,IOT:180,IRDT:270,IRKT:480,IRST:210,IST:120,JST:540,KGT:360,KOST:660,KRAT:420,KST:540,LHST:630,LINT:840,MAGT:720,MART:-510,MAWT:300,MDT:-360,MET:60,MEST:120,MHT:720,MIST:660,MIT:-510,MMT:390,MSK:180,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:660,NPT:345,NST:-150,NT:-150,NUT:-660,NZDT:780,NZST:720,OMST:360,ORAT:300,PDT:-420,PET:-300,PETT:720,PGT:600,PHOT:780,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PYST:-180,PYT:-240,RET:240,ROTT:-180,SAKT:660,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SLST:330,SRET:660,SRT:-180,SST:480,SYOT:180,TAHT:-600,THA:420,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TOT:780,TVT:720,UCT:0,ULAT:480,USZ1:120,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-240,VLAT:600,VOLT:240,VOST:360,VUT:660,WAKT:720,WAST:120,WAT:60,WEDT:60,WEST:60,WET:0,WIT:420,WST:480,YAKT:540,YEKT:300},p={zone:d,year:i,meridiem:{am:0,pm:12,"a.m.":0,"p.m.":12},month:{january:1,jan:1,february:2,feb:2,march:3,mar:3,april:4,apr:4,may:5,june:6,jun:6,july:7,jul:7,august:8,aug:8,september:9,sep:9,october:10,oct:10,november:11,nov:11,december:12,dec:12},dayname:{sunday:0,sun:0,monday:1,mon:1,tuesday:2,tue:2,wednesday:3,wed:3,thursday:4,thu:4,friday:5,fri:5,saturday:6,sat:6},digit:{}},f={MONTHNAME:"january|february|march|april|may|june|july|august|september|october|november|december|jan\\.?|feb\\.?|mar\\.?|apr\\.?|may\\.?|jun\\.?|jul\\.?|aug\\.?|sep\\.?|oct\\.?|nov\\.?|dec\\.?",DAYNAME:"sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun\\.?|mon\\.?|tue\\.?|wed\\.?|thu\\.?|fri\\.?|sat\\.?",ZONE:"\\(?(?:"+Object.keys(d).join("|")+")\\)?",MERIDIEM:"am|pm|a.m.|p.m.",ORDINAL:"st|nd|rd|th|\\.",YEAR:"\\d{4}|\\d{2}",YEAR2:"\\d{2}",YEAR4:"\\d{4}",YEAR6:"-\\d{6}|\\+?\\d{5,6}",MONTH:"1[0-2]|0?[1-9]",MONTH2:"1[0-2]|0[1-9]",DAY:"3[01]|[12]\\d|0?[1-9]",DAY2:"3[01]|[12]\\d|0[1-9]",OFFSET:"(?:GMT)?[\xb1−+-](?:[01]\\d[0-5]\\d|[01]\\d:[0-5]\\d|[01]?\\d)",H24:"[01]\\d|2[0-3]",H12:"0?[1-9]|1[012]",MIN:"[0-5]\\d",SEC:"[0-5]\\d|60",MS:"\\d{9}|\\d{6}|\\d{1,3}",GAP:"[\\s/.,-]{1,}"},m={...f,YEAR:"*{4}|*{2}",YEAR4:"*{4}",YEAR6:"-*{6}|\\+?*{5,6}",MONTH:"*{1,2}",MONTH2:"*{2}",DAY:"*{1,2}",DAY2:"*{2}",OFFSET:"(?:GMT)?[\xb1−+-](?:*{4}|*{2}:*{2}|*{1,2})",H24:"*{2}",H12:"*{1,2}",MIN:"*{2}",SEC:"*{2}",MS:"*{9}|*{6}|*{3}"},h={},g=class e{locale;lookups;vars;numberingSystem;baseName;dateOptions;static factory(t=a){return h[t.toLowerCase()]||(h[t.toLowerCase()]=new e(t)),h[t.toLowerCase()]}constructor(e=a){this.locale=e,this.lookups={...p},this.vars={...f};const t=new Intl.NumberFormat(this.locale);this.numberingSystem=t.resolvedOptions().numberingSystem,this.dateOptions=new Intl.DateTimeFormat(this.locale).resolvedOptions(),this.baseName=new Intl.Locale(this.locale).baseName,this.build()}toInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;if("latn"===this.numberingSystem&&!this.baseName.startsWith("zh")){let t=parseInt(e,10);if(!isNaN(t))return t}let t="";for(let n=0;n<e.length;n++)t+=String(this.lookups.digit[e[n]]);return parseInt(t,10)}millisecondToInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;let t=e.slice(0,3);return 1===t.length?100*this.toInt(t):2===t.length?10*this.toInt(t):this.toInt(t)}monthNameToInt(e){if("string"!=typeof e)return;let t=e.toLocaleLowerCase(this.locale).replace(/\.$/,"");return this.lookups.month[t]||12}h12ToInt(e,t){if("string"!=typeof e)return;let n=this.lookups.meridiem[t?.toLowerCase()]||0,r=this.toInt(e);return r<12&&12===n&&(r+=12),12===r&&0===n&&(r=0),r}zoneToOffset(e){if("string"==typeof e)return e=e.replace(/[^a-z\s]/gi,""),this.lookups.zone[e]}offsetToMinutes(e){if("string"!=typeof e)return;let t=e.match(/^(?:GMT)?([±−+-])(..?):?(..)?$/);if(t){let[,e,n,r]=t;return("-"===e||"−"===e?-1:1)*(60*this.toInt(n)+this.toInt(r||0))}return 0}build(){"latn"===this.dateOptions.numberingSystem?this.lookups.digit=c:this.buildNumbers(),!/^en/i.test(this.locale)&&(this.buildMonthNames(),this.buildDaynames(),/zh/i.test(this.locale)||this.buildMeridiems())}buildNumbers(){let{group:e,lookup:t}=function(e){if(u[e])return u[e];if("fullwide"===e||"hanidec"===e)return{group:l,lookup:{...c}};let t=s[e];if(!t)return{group:"\\d",lookup:{...c}};let n=String.fromCharCode(t),r=String.fromCharCode(t+9),a={};for(let e=0;e<10;e++)a[String.fromCharCode(t+e)]=e;return u[e]={group:`[${n}-${r}]`,lookup:a},u[e]}(this.numberingSystem);for(let n in this.lookups.digit=t,m)m.hasOwnProperty(n)&&(this.vars[n]=m[n].replace(/\*/g,e))}buildMonthNames(){let e={},t={};if(/^fi/i.test(this.locale))"tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu".split("|").forEach((n,r)=>{["","k","kuu","kuuta"].forEach((a,o)=>{e[n+a+(o<2?"\\.?":"")]=!0,t[n+a]=r+1})});else{let n=[],r=e=>"month"===e.type;for(let e=0;e<12;e++)n.push(new Date(2017,e,1));for(let a of["full","long","medium"]){let o=Intl.DateTimeFormat(this.locale,{dateStyle:a});for(let i=0;i<12;i++){let s=o.formatToParts(n[i]).find(r).value.toLocaleLowerCase(this.locale);/^\d+$/.test(s)||(/^ko/i.test(this.locale)&&(s+="월"),"medium"===a?(s=s.replace(/\.$/,""),e[`${s}\\.?`]=!0):e[s]=!0,t[s]=i+1)}}let a=Intl.DateTimeFormat(this.locale,{month:"short"});for(let o=0;o<12;o++){let i=a.formatToParts(n[o]).find(r).value.toLocaleLowerCase(this.locale);i=i.replace(/\.$/,""),e[`${i}\\.?`]=!0,t[i]=o+1}}this.vars.MONTHNAME=Object.keys(e).join("|"),this.lookups.month=t}buildDaynames(){let e=[],t=e=>"weekday"===e.type;for(let t=0;t<7;t++)e.push(new Date(2017,0,t+1));let n=[],r={};for(let a of["long","short"]){let o=Intl.DateTimeFormat(this.locale,{weekday:a});for(let i=0;i<7;i++){let s=o.formatToParts(e[i]).find(t).value.toLocaleLowerCase(this.locale);"short"===a?(s=s.replace(/\.$/,""),n.push(`${s}\\.?`)):n.push(s),r[s]=i}}this.vars.DAYNAME=n.join("|"),this.lookups.dayname=r}buildMeridiems(){let e=[new Date(2017,0,1),new Date(2017,0,1,23,0,0)],t=e=>"dayPeriod"===e.type,n=[],r={},a=Intl.DateTimeFormat(this.locale,{timeStyle:"long"});for(let o=0;o<2;o++){let i=a.formatToParts(e[o]).find(t);if(!i)return;let s=i.value.toLocaleLowerCase(this.locale);n.push(s),r[s]=12*o}this.vars.MERIDIEM=n.join("|"),this.lookups.meridiem=r}compile(e){return RegExp(e.replace(/_([A-Z0-9]+)_/g,(e,t)=>{if(!this.vars[t])throw Error(`Template string contains invalid variable _${t}_`);return this.vars[t]}),"i")}},b=["ee-TG","en-AS","en-CA","en-FM","en-GH","en-GU","en-KE","en-KY","en-MH","en-MP","en-US","en-VI","en-WS","jp-JP","sm-AS","sm-SM"],y={y:"year",M:"month",d:"day",w:"week",h:"hour",m:"minute",s:"second",ms:"millisecond"},v=()=>new Date;function A(e){return function(t){let n={};for(let r=0,a=e.length;r<a;r++){let a=e[r];a&&(n[a]=t[r])}return n}}var $=class{doneChecker;fallback;patterns;formatter;constructor({doneChecker:e,fallback:t,patterns:n,formatter:r}){this.doneChecker=e,this.fallback=t,this.patterns=n,this.formatter=r}attempt(e){if("string"!=typeof e)return this.fallback(e);let t=e.trim(),n={},r=!1;for(let e of this.patterns){let a=t.match(e.regex);if(!a)continue;r=!0;let o=e.handler(a);if(o){for(let[e,t]of Object.entries(o))e in n||void 0===t||(n[e]=t);if(t=(t=t.slice(0,a.index)+t.slice(a.index+a[0].length+1)).trim(),this.doneChecker(n,t))break}}return r?this.formatter(n):this.fallback(e)}},k=["year","month","day","hour","minute","second","millisecond","offset"],x={};function C(e,t){return""===t||/^\s+$/.test(t)||"year"in e&&("month"in e||"monthname"in e)&&"day"in e&&"hour"in e&&"minute"in e&&"second"in e&&"millisecond"in e&&("zone"in e||"offset"in e)}var w=[[/([^\d.]+)(\d{1,2})\.(\d{2})\.(\d{2})(\D|$)/,"$1$2:$3:$4$5"],[/([^\d.]+)(\d{1,2})\.(\d{2})(\D|$)/,"$1$2:$3$4"]],E={ar:[[/ /g," "]],bn:[[/,/g,""]],zh:[[/早上\s*([\d:]+)/,"$1am"],[/凌晨\s*([\d:]+)/,"$1am"],[/上午\s*([\d:]+)/,"$1am"],[/下午\s*([\d:]+)/,"$1pm"],[/晚上\s*([\d:]+)/,"$1pm"]],he:[[/ב/gi,""]],de:[[/ um /g," "]],pt:[[/\sde /gi," "]],es:[[/\sde /gi," "]],da:[[/\sden /gi," "],...w],ru:[[/ г\./g,""]],th:[[/\s*นาฬิกา\s*/i,":"],[/\s*นาที\s*/i,":"],[/\s*วินาที\s*/i," "]],ko:[[/\s*시\s*/,":"],[/\s*분\s*/,":"],[/\s*초\s*/,""],[/(오전|오후)\s*([\d:]+)/,"$2$1"],[/(\d{4})\. (\d{1,2})\. (\d{1,2})\./,"$1-$2-$3"]],fi:w,id:w,fr:[[/(\d{2}) h /,"$1:"],[/(\d{2}) min /,"$1:"],[/(\d{2}) s /,"$1"]]};function D(e,t=a){let n=function(e){if(!x[e]){var t,n;let r,a,o=g.factory(e);x[e]=new $({doneChecker:C,fallback:(t=e,function(e){let n=String(e).slice(0,50);return""===n&&(n="(empty string)"),{invalid:`Unable to parse "${n}" with locale "${t}"`}}),patterns:(r=[{name:"timestampWithOffset",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? ?(_OFFSET_|Z)?$"),handler:A(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"timestampWithZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))?\\s*(_ZONE_)$"),handler:A(["","year","month","day","hour","minute","second","millisecond","zone"])},{name:"timestampWithOffsetAndZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? (_OFFSET_|Z)\\s*(_ZONE_)$"),handler:A(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"chinese",regex:o.compile(`^(${l}{2,4})\\s*\u5E74\\s*(${l}{1,2})\\s*\u6708\\s*(${l}{1,2})\\s*\u65E5$`),handler:A(["","year","month","day"])},{name:"korean",regex:o.compile("^(_YEAR_)년\\s*(_MONTH_)월\\s*(_DAY_)일$"),handler:A(["","year","month","day"])},{name:"twitter",regex:/^(?:sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) (\d{2}) (\d{2}):(\d{2}):(\d{2}) ([+-]\d{4}) (\d{4})$/i,handler:A(["","monthname","day","hour","minute","second","offset","year"])},{name:"today",regex:/^(now|today|tomorrow|yesterday)$/i,handler:function(e){let t=v(),n=e[0].toLowerCase(),r={now:0,today:0,tomorrow:864e5,yesterday:-864e5}[n];0!==r&&t.setTime(t.getTime()+r);let a={year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()};return"now"===n?{...a,hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}:a}},{name:"ago",regex:/^(\+|-|in|) ?([\d.]+) ?(years?|months?|weeks?|days?|hours?|minutes?|seconds?|milliseconds?|ms|s|m|h|w|d|M|y)( ago)?$/i,handler:function([,e,t,n,r]){t=parseFloat(t),"week"===(n=n.length<=2?y[n]:(n=n.replace(/s$/,"")).toLowerCase())&&(n="day",t*=7),("-"===e||r)&&(t*=-1);let a=v();return"millisecond"===n?a.setUTCMilliseconds(a.getUTCMilliseconds()+t):"second"===n?a.setUTCSeconds(a.getUTCSeconds()+t):"minute"===n?a.setUTCMinutes(a.getUTCMinutes()+t):"hour"===n?a.setUTCHours(a.getUTCHours()+t):"day"===n?a.setUTCDate(a.getUTCDate()+t):"month"===n?a.setUTCMonth(a.getUTCMonth()+t):"year"===n&&a.setUTCFullYear(a.getUTCFullYear()+t),{year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate(),hour:a.getUTCHours(),minute:a.getUTCMinutes(),second:a.getUTCSeconds(),millisecond:a.getUTCMilliseconds()}}},{name:"atSeconds",regex:/^@(\d+)$/,handler:function(e){let t=new Date(1e3*parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}},{name:"microsoftJson",regex:/^\/Date\((\d+)([+-]\d{4})?\)\/$/,handler:function(e){let t=new Date(parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds(),offset:e[2]}}},{name:"full24",regex:o.compile("(?:^|[\\sT])(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?(Z)?$"),handler:A(["","hour","minute","second","millisecond","zone"])},{name:"zone24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?[\\s\\[(]*(_ZONE_)?[\\s\\])]*$"),handler:A(["","hour","minute","second","millisecond","zone"])},{name:"hms12WithOffset",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)\\s*(_OFFSET_)"),handler:A(["","hour","minute","second","meridiem","offset"])},{name:"hms12",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)"),handler:A(["","hour","minute","second","meridiem"])},{name:"hms24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?"),handler:A(["","hour","minute","second","millisecond"])},{name:"hm12",regex:o.compile("(_H12_):(_MIN_)\\s*(_MERIDIEM_)"),handler:A(["","hour","minute","meridiem"])},{name:"hm24",regex:o.compile("(_H24_):(_MIN_)"),handler:A(["","hour","minute"])},{name:"h12",regex:o.compile("(_H12_)\\s*(_MERIDIEM_)"),handler:A(["","hour","meridiem"])},{name:"8digit",regex:/^((?:19|20)\d{2})(\d{2})(\d{2})$/,handler:A(["","year","month","day"])},{name:"yearMonthnameDay",regex:o.compile("(_YEAR4_)[\\s.-]+(_MONTHNAME_)[\\s,.-]+(_DAY_)(_ORDINAL_)?"),handler:A(["","year","monthname","day"])},{name:"dayMonthnameYear",regex:o.compile("(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)[\\s,.-]+(_YEAR_)"),handler:A(["","day","","monthname","year"])},{name:"monthnameDayYear",regex:o.compile("(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?[\\s,.-]+(_YEAR_)"),handler:A(["","monthname","day","","year"])},{name:"dayMonthname",regex:o.compile("\\b(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)\\b"),handler:A(["","day","","monthname"])},{name:"monthnameDay",regex:o.compile("\\b(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?\\b"),handler:A(["","monthname","day"])},{name:"hmsNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_):(_SEC_)\\b"),handler:A(["","hour","minute","second"])},{name:"hmNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_)\\b"),handler:A(["","hour","minute"])},{name:"ymd",regex:o.compile("(_YEAR4_)([./-])(_MONTH_)\\2+(_DAY_)"),handler:A(["","year","","month","day"])},{name:"mdy",regex:o.compile("(_MONTH_)([/-])(_DAY_)\\2(_YEAR_)"),handler:A(["","month","","day","year"])},{name:"dmy",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)[./\\s-]+(_YEAR_)"),handler:A(["","day","month","year"])},{name:"yearLoose",regex:o.compile("_YEAR4_"),handler:A(["year"])},{name:"dayMonthnameLoose",regex:o.compile("(_DAY_)[\\s.]*(_MONTHNAME_)"),handler:A(["","day","monthname"])},{name:"monthnameDayLoose",regex:o.compile("(_MONTHNAME_)[\\s.]*(_DAY_)"),handler:A(["","monthname","day"])},{name:"monthname",regex:o.compile("_MONTHNAME_"),handler:A(["monthname"])},{name:"year4",regex:o.compile("_YEAR4_"),handler:A(["year"])},{name:"md",regex:o.compile("(_MONTH_)[/-](_DAY_)"),handler:A(["","month","day"])},{name:"dm",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)"),handler:A(["","day","month"])},{name:"day",regex:o.compile("_DAY_"),handler:A(["day"])},{name:"year2",regex:o.compile("_YEAR2_"),handler:A(["year"])},{name:"onlyZone",regex:o.compile("_ZONE_"),handler:A(["zone"])},{name:"onlyOffset",regex:o.compile("_OFFSET_"),handler:A(["offset"])}],a=o.baseName.slice(0,5),b.includes(a)?r:r.filter(e=>!["mdy","md"].includes(e.name))),formatter:(n=o,function(e){let t={};for(let[r,a]of Object.entries(e))if("monthname"===r){if(a){let e=n.monthNameToInt(a);void 0!==e&&(t.month=e)}}else if("hour"===r&&e.meridiem){let r=n.h12ToInt(a,e.meridiem);void 0!==r&&(t.hour=r)}else if("zone"===r){if(a){let e=n.zoneToOffset(a);void 0!==e&&(t.offset=e)}}else if("offset"===r){let e=n.offsetToMinutes(a);void 0!==e&&(t.offset=e)}else if("millisecond"===r){let e=n.millisecondToInt(a);"number"==typeof e&&(t.millisecond=e)}else if(k.includes(r)){let e=n.toInt(a);"number"==typeof e&&(t[r]=e)}return t.year<100&&(t.year=i[e.year]),t.year&&"buddhist"===n.dateOptions.calendar&&(t.year-=543),t})})}return x[e]}(t),r=function(e,t){let n=E[t.slice(0,2).toLowerCase()];if(!n)return e;for(let[t,r]of n)e=e.replace(t,r);return e}(e,t);return n.attempt(r)}function S(e){e.month&&e.day&&void 0===e.year&&(e.year=new Date().getFullYear()),60===e.second&&(e.second=59);let t=new o(e.year,e.month-1,e.day,e.hour||0,e.minute||0,e.second||0,e.millisecond||0);return"number"==typeof e.offset?new o(t.valueOf()-60*e.offset*1e3):t}function B(e,t=a){let n=D(e,t),r=n.invalid?new o(NaN):S(n);return r.isValid()||(r.invalid=`Unable to parse date "${e}"`),r}function z(e,t=a){return e instanceof Date?new o(e.valueOf()):"number"==typeof e?new o(e):B(e,t)}Date.fromString=o.fromString=B,Date.fromAny=o.fromAny=z,"undefined"!=typeof window&&(window.anyDateParser={fromString:B,fromAny:z,fromObject:S,attempt:D})},60950:function(e,t,n){"use strict";n.d(t,{A:()=>a});class r{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+r.version}static addUnaryOp(e){return r.max_unop_len=Math.max(e.length,r.max_unop_len),r.unary_ops[e]=1,r}static addBinaryOp(e,t,n){return r.max_binop_len=Math.max(e.length,r.max_binop_len),r.binary_ops[e]=t,n?r.right_associative.add(e):r.right_associative.delete(e),r}static addIdentifierChar(e){return r.additional_identifier_chars.add(e),r}static addLiteral(e,t){return r.literals[e]=t,r}static removeUnaryOp(e){return delete r.unary_ops[e],e.length===r.max_unop_len&&(r.max_unop_len=r.getMaxKeyLen(r.unary_ops)),r}static removeAllUnaryOps(){return r.unary_ops={},r.max_unop_len=0,r}static removeIdentifierChar(e){return r.additional_identifier_chars.delete(e),r}static removeBinaryOp(e){return delete r.binary_ops[e],e.length===r.max_binop_len&&(r.max_binop_len=r.getMaxKeyLen(r.binary_ops)),r.right_associative.delete(e),r}static removeAllBinaryOps(){return r.binary_ops={},r.max_binop_len=0,r}static removeLiteral(e){return delete r.literals[e],r}static removeAllLiterals(){return r.literals={},r}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new r(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map(e=>e.length))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return r.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!r.binary_ops[String.fromCharCode(e)]||r.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return r.isIdentifierStart(e)||r.isDecimalDigit(e)}throwError(e){let t=Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,t){if(r.hooks[e]){let n={context:this,node:t};return r.hooks.run(e,n),n.node}return t}searchHook(e){if(r.hooks[e]){let t={context:this};return r.hooks[e].find(function(e){return e.call(t.context,t),t.node}),t.node}}gobbleSpaces(){let e=this.code;for(;e===r.SPACE_CODE||e===r.TAB_CODE||e===r.LF_CODE||e===r.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");let e=this.gobbleExpressions(),t=1===e.length?e[0]:{type:r.COMPOUND,body:e};return this.runHook("after-all",t)}gobbleExpressions(e){let t=[],n,a;for(;this.index<this.expr.length;)if((n=this.code)===r.SEMCOL_CODE||n===r.COMMA_CODE)this.index++;else if(a=this.gobbleExpression())t.push(a);else if(this.index<this.expr.length){if(n===e)break;this.throwError('Unexpected "'+this.char+'"')}return t}gobbleExpression(){let e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}gobbleBinaryOp(){this.gobbleSpaces();let e=this.expr.substr(this.index,r.max_binop_len),t=e.length;for(;t>0;){if(r.binary_ops.hasOwnProperty(e)&&(!r.isIdentifierStart(this.code)||this.index+e.length<this.expr.length&&!r.isIdentifierPart(this.expr.charCodeAt(this.index+e.length))))return this.index+=t,e;e=e.substr(0,--t)}return!1}gobbleBinaryExpression(){let e,t,n,a,o,i,s,l,c;if(!(i=this.gobbleToken())||!(t=this.gobbleBinaryOp()))return i;for(o={value:t,prec:r.binaryPrecedence(t),right_a:r.right_associative.has(t)},(s=this.gobbleToken())||this.throwError("Expected expression after "+t),a=[i,o,s];t=this.gobbleBinaryOp();){if(0===(n=r.binaryPrecedence(t))){this.index-=t.length;break}o={value:t,prec:n,right_a:r.right_associative.has(t)},c=t;let l=e=>o.right_a&&e.right_a?n>e.prec:n<=e.prec;for(;a.length>2&&l(a[a.length-2]);)s=a.pop(),t=a.pop().value,i=a.pop(),e={type:r.BINARY_EXP,operator:t,left:i,right:s},a.push(e);(e=this.gobbleToken())||this.throwError("Expected expression after "+c),a.push(o,e)}for(l=a.length-1,e=a[l];l>1;)e={type:r.BINARY_EXP,operator:a[l-1].value,left:a[l-2],right:e},l-=2;return e}gobbleToken(){let e,t,n,a;if(this.gobbleSpaces(),a=this.searchHook("gobble-token"))return this.runHook("after-token",a);if(e=this.code,r.isDecimalDigit(e)||e===r.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===r.SQUOTE_CODE||e===r.DQUOTE_CODE)a=this.gobbleStringLiteral();else if(e===r.OBRACK_CODE)a=this.gobbleArray();else{for(n=(t=this.expr.substr(this.index,r.max_unop_len)).length;n>0;){if(r.unary_ops.hasOwnProperty(t)&&(!r.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!r.isIdentifierPart(this.expr.charCodeAt(this.index+t.length)))){this.index+=n;let e=this.gobbleToken();return e||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:r.UNARY_EXP,operator:t,argument:e,prefix:!0})}t=t.substr(0,--n)}r.isIdentifierStart(e)?(a=this.gobbleIdentifier(),r.literals.hasOwnProperty(a.name)?a={type:r.LITERAL,value:r.literals[a.name],raw:a.name}:a.name===r.this_str&&(a={type:r.THIS_EXP})):e===r.OPAREN_CODE&&(a=this.gobbleGroup())}return a?(a=this.gobbleTokenProperty(a),this.runHook("after-token",a)):this.runHook("after-token",!1)}gobbleTokenProperty(e){this.gobbleSpaces();let t=this.code;for(;t===r.PERIOD_CODE||t===r.OBRACK_CODE||t===r.OPAREN_CODE||t===r.QUMARK_CODE;){let n;if(t===r.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==r.PERIOD_CODE)break;n=!0,this.index+=2,this.gobbleSpaces(),t=this.code}this.index++,t===r.OBRACK_CODE?((e={type:r.MEMBER_EXP,computed:!0,object:e,property:this.gobbleExpression()}).property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),(t=this.code)!==r.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):t===r.OPAREN_CODE?e={type:r.CALL_EXP,arguments:this.gobbleArguments(r.CPAREN_CODE),callee:e}:(t===r.PERIOD_CODE||n)&&(n&&this.index--,this.gobbleSpaces(),e={type:r.MEMBER_EXP,computed:!1,object:e,property:this.gobbleIdentifier()}),n&&(e.optional=!0),this.gobbleSpaces(),t=this.code}return e}gobbleNumericLiteral(){let e="",t,n;for(;r.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);if(this.code===r.PERIOD_CODE)for(e+=this.expr.charAt(this.index++);r.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);if("e"===(t=this.char)||"E"===t){for(e+=this.expr.charAt(this.index++),("+"===(t=this.char)||"-"===t)&&(e+=this.expr.charAt(this.index++));r.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);r.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+e+this.char+")")}return n=this.code,r.isIdentifierStart(n)?this.throwError("Variable names cannot start with a number ("+e+this.char+")"):(n===r.PERIOD_CODE||1===e.length&&e.charCodeAt(0)===r.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:r.LITERAL,value:parseFloat(e),raw:e}}gobbleStringLiteral(){let e="",t=this.index,n=this.expr.charAt(this.index++),a=!1;for(;this.index<this.expr.length;){let t=this.expr.charAt(this.index++);if(t===n){a=!0;break}if("\\"===t)switch(t=this.expr.charAt(this.index++)){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+=" ";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=t}else e+=t}return a||this.throwError('Unclosed quote after "'+e+'"'),{type:r.LITERAL,value:e,raw:this.expr.substring(t,this.index)}}gobbleIdentifier(){let e=this.code,t=this.index;for(r.isIdentifierStart(e)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length;)if(e=this.code,r.isIdentifierPart(e))this.index++;else break;return{type:r.IDENTIFIER,name:this.expr.slice(t,this.index)}}gobbleArguments(e){let t=[],n=!1,a=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let o=this.code;if(o===e){n=!0,this.index++,e===r.CPAREN_CODE&&a&&a>=t.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(o===r.COMMA_CODE){if(this.index++,++a!==t.length){if(e===r.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===r.CBRACK_CODE)for(let e=t.length;e<a;e++)t.push(null)}}else if(t.length!==a&&0!==a)this.throwError("Expected comma");else{let e=this.gobbleExpression();e&&e.type!==r.COMPOUND||this.throwError("Expected comma"),t.push(e)}}return n||this.throwError("Expected "+String.fromCharCode(e)),t}gobbleGroup(){this.index++;let e=this.gobbleExpressions(r.CPAREN_CODE);if(this.code===r.CPAREN_CODE)return(this.index++,1===e.length)?e[0]:!!e.length&&{type:r.SEQUENCE_EXP,expressions:e};this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:r.ARRAY_EXP,elements:this.gobbleArguments(r.CBRACK_CODE)}}}Object.assign(r,{hooks:new class{add(e,t,n){if("string"!=typeof arguments[0])for(let e in arguments[0])this.add(e,arguments[0][e],arguments[1]);else(Array.isArray(e)?e:[e]).forEach(function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)},this)}run(e,t){this[e]=this[e]||[],this[e].forEach(function(e){e.call(t&&t.context?t.context:t,t)})}},plugins:new class{constructor(e){this.jsep=e,this.registered={}}register(...e){e.forEach(e=>{if("object"!=typeof e||!e.name||!e.init)throw Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)})}}(r),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),r.max_unop_len=r.getMaxKeyLen(r.unary_ops),r.max_binop_len=r.getMaxKeyLen(r.binary_ops);let a=e=>new r(e).parse(),o=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(r).filter(e=>!o.includes(e)&&void 0===a[e]).forEach(e=>{a[e]=r[e]}),a.Jsep=r,a.plugins.register({name:"ternary",init(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;let n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;let a=this.gobbleExpression();if(a||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:n,consequent:r,alternate:a},n.operator&&e.binary_ops[n.operator]<=.9){let r=n;for(;r.right.operator&&e.binary_ops[r.right.operator]<=.9;)r=r.right;t.node.test=r.right,r.right=t.node,t.node=n}}else this.throwError("Expected :")}})}})},81494:function(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(81963);let a=function(e,t){for(var n=e.length;n--;)if((0,r.A)(e[n][0],t))return n;return -1};var o=Array.prototype.splice;function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=function(){this.__data__=[],this.size=0},i.prototype.delete=function(e){var t=this.__data__,n=a(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)},i.prototype.get=function(e){var t=this.__data__,n=a(t,e);return n<0?void 0:t[n][1]},i.prototype.has=function(e){return a(this.__data__,e)>-1},i.prototype.set=function(e,t){var n=this.__data__,r=a(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};let s=i},61924:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(44536),a=n(28056);let o=(0,r.A)(a.A,"Map")},63605:function(e,t,n){"use strict";n.d(t,{A:()=>p});var r=(0,n(44536).A)(Object,"create"),a=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},i.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},i.prototype.get=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0},i.prototype.has=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)},i.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this};var s=n(81494),l=n(61924);let c=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},u=function(e,t){var n=e.__data__;return c(t)?n["string"==typeof t?"string":"hash"]:n.map};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}d.prototype.clear=function(){this.size=0,this.__data__={hash:new i,map:new(l.A||s.A),string:new i}},d.prototype.delete=function(e){var t=u(this,e).delete(e);return this.size-=!!t,t},d.prototype.get=function(e){return u(this,e).get(e)},d.prototype.has=function(e){return u(this,e).has(e)},d.prototype.set=function(e,t){var n=u(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this};let p=d},61098:function(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(81494),a=n(61924),o=n(63605);function i(e){var t=this.__data__=new r.A(e);this.size=t.size}i.prototype.clear=function(){this.__data__=new r.A,this.size=0},i.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},i.prototype.get=function(e){return this.__data__.get(e)},i.prototype.has=function(e){return this.__data__.has(e)},i.prototype.set=function(e,t){var n=this.__data__;if(n instanceof r.A){var i=n.__data__;if(!a.A||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new o.A(i)}return n.set(e,t),this.size=n.size,this};let s=i},19172:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=n(28056).A.Symbol},20705:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=n(28056).A.Uint8Array},42287:function(e,t,n){"use strict";n.d(t,{A:()=>u});let r=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var a=n(17820),o=n(36820),i=n(75323),s=n(27322),l=n(43148),c=Object.prototype.hasOwnProperty;let u=function(e,t){var n=(0,o.A)(e),u=!n&&(0,a.A)(e),d=!n&&!u&&(0,i.A)(e),p=!n&&!u&&!d&&(0,l.A)(e),f=n||u||d||p,m=f?r(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(f&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,s.A)(g,h)))&&m.push(g);return m}},20117:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}},93903:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},74660:function(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(37999),a=n(81963),o=Object.prototype.hasOwnProperty;let i=function(e,t,n){var i=e[t];o.call(e,t)&&(0,a.A)(i,n)&&(void 0!==n||t in e)||(0,r.A)(e,t,n)}},37999:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(61670);let a=function(e,t,n){"__proto__"==t&&r.A?(0,r.A)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},96918:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(93903),a=n(36820);let o=function(e,t,n){var o=t(e);return(0,a.A)(e)?o:(0,r.A)(o,n(e))}},31243:function(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(19172),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=r.A?r.A.toStringTag:void 0;let l=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var a=i.call(e);return r&&(t?e[s]=n:delete e[s]),a};var c=Object.prototype.toString,u=r.A?r.A.toStringTag:void 0;let d=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":u&&u in Object(e)?l(e):c.call(e)}},62926:function(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(24956),a=(0,n(1748).A)(Object.keys,Object),o=Object.prototype.hasOwnProperty;let i=function(e){if(!(0,r.A)(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},33734:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){return function(t){return e(t)}}},46940:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(20705);let a=function(e){var t=new e.constructor(e.byteLength);return new r.A(t).set(new r.A(e)),t}},13137:function(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(28056),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof module&&module&&!module.nodeType&&module,i=o&&o.exports===a?r.A.Buffer:void 0,s=i?i.allocUnsafe:void 0;let l=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},84934:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(46940);let a=function(e,t){var n=t?(0,r.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},17052:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},51158:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(74660),a=n(37999);let o=function(e,t,n,o){var i=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),i?(0,a.A)(n,c,u):(0,r.A)(n,c,u)}return n}},61670:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(44536);let a=function(){try{var e=(0,r.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},86625:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r="object"==typeof global&&global&&global.Object===Object&&global},11507:function(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(96918),a=n(93363),o=n(43473);let i=function(e){return(0,r.A)(e,o.A,a.A)}},44536:function(e,t,n){"use strict";n.d(t,{A:()=>h});var r,a=n(49885),o=n(28056).A["__core-js_shared__"],i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",s=n(12174),l=n(75380),c=/^\[object .+?Constructor\]$/,u=Object.prototype,d=Function.prototype.toString,p=u.hasOwnProperty,f=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let m=function(e){return!!(0,s.A)(e)&&(!i||!(i in e))&&((0,a.A)(e)?f:c).test((0,l.A)(e))},h=function(e,t){var n=null==e?void 0:e[t];return m(n)?n:void 0}},89494:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(1748).A)(Object.getPrototypeOf,Object)},93363:function(e,t,n){"use strict";n.d(t,{A:()=>s});let r=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o};var a=n(9620),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols;let s=i?function(e){return null==e?[]:r(i(e=Object(e)),function(t){return o.call(e,t)})}:a.A},4004:function(e,t,n){"use strict";n.d(t,{A:()=>x});var r=n(44536),a=n(28056),o=(0,r.A)(a.A,"DataView"),i=n(61924),s=(0,r.A)(a.A,"Promise"),l=(0,r.A)(a.A,"Set"),c=(0,r.A)(a.A,"WeakMap"),u=n(31243),d=n(75380),p="[object Map]",f="[object Promise]",m="[object Set]",h="[object WeakMap]",g="[object DataView]",b=(0,d.A)(o),y=(0,d.A)(i.A),v=(0,d.A)(s),A=(0,d.A)(l),$=(0,d.A)(c),k=u.A;(o&&k(new o(new ArrayBuffer(1)))!=g||i.A&&k(new i.A)!=p||s&&k(s.resolve())!=f||l&&k(new l)!=m||c&&k(new c)!=h)&&(k=function(e){var t=(0,u.A)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,d.A)(n):"";if(r)switch(r){case b:return g;case y:return p;case v:return f;case A:return m;case $:return h}return t});let x=k},47514:function(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(12174),a=Object.create,o=function(){function e(){}return function(t){if(!(0,r.A)(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),i=n(89494),s=n(24956);let l=function(e){return"function"!=typeof e.constructor||(0,s.A)(e)?{}:o((0,i.A)(e))}},27322:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=/^(?:0|[1-9]\d*)$/;let a=function(e,t){var n=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},24956:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=Object.prototype;let a=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},97872:function(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(86625),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof module&&module&&!module.nodeType&&module,i=o&&o.exports===a&&r.A.process;let s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return i&&i.binding&&i.binding("util")}catch(e){}}()},1748:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){return function(n){return e(t(n))}}},54979:function(e,t,n){"use strict";n.d(t,{A:()=>o});let r=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var a=Math.max;let o=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=a(o.length-t,0),l=Array(s);++i<s;)l[i]=o[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=o[i];return c[t]=n(l),r(e,this,c)}}},28056:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(86625),a="object"==typeof self&&self&&self.Object===Object&&self;let o=r.A||a||Function("return this")()},44168:function(e,t,n){"use strict";n.d(t,{A:()=>c});var r,a,o=n(61670),i=n(68527),s=o.A?function(e,t){return(0,o.A)(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:i.A,l=Date.now;let c=(r=0,a=0,function(){var e=l(),t=16-(e-a);if(a=e,t>0){if(++r>=800)return arguments[0]}else r=0;return s.apply(void 0,arguments)})},75380:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=Function.prototype.toString;let a=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},81963:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){return e===t||e!=e&&t!=t}},68527:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){return e}},17820:function(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(31243),a=n(62873);let o=function(e){return(0,a.A)(e)&&"[object Arguments]"==(0,r.A)(e)};var i=Object.prototype,s=i.hasOwnProperty,l=i.propertyIsEnumerable;let c=o(function(){return arguments}())?o:function(e){return(0,a.A)(e)&&s.call(e,"callee")&&!l.call(e,"callee")}},36820:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=Array.isArray},55259:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(49885),a=n(47741);let o=function(e){return null!=e&&(0,a.A)(e.length)&&!(0,r.A)(e)}},75323:function(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(28056),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof module&&module&&!module.nodeType&&module,i=o&&o.exports===a?r.A.Buffer:void 0;let s=(i?i.isBuffer:void 0)||function(){return!1}},47427:function(e,t,n){"use strict";n.d(t,{A:()=>B});var r=n(61098),a=n(63605);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new a.A;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},o.prototype.has=function(e){return this.__data__.has(e)};let i=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},s=function(e,t,n,r,a,s){var l=1&n,c=e.length,u=t.length;if(c!=u&&!(l&&u>c))return!1;var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var f=-1,m=!0,h=2&n?new o:void 0;for(s.set(e,t),s.set(t,e);++f<c;){var g=e[f],b=t[f];if(r)var y=l?r(b,g,f,t,e,s):r(g,b,f,e,t,s);if(void 0!==y){if(y)continue;m=!1;break}if(h){if(!i(t,function(e,t){if(!h.has(t)&&(g===e||a(g,e,n,r,s)))return h.push(t)})){m=!1;break}}else if(!(g===b||a(g,b,n,r,s))){m=!1;break}}return s.delete(e),s.delete(t),m};var l=n(19172),c=n(20705),u=n(81963);let d=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},p=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var f=l.A?l.A.prototype:void 0,m=f?f.valueOf:void 0;let h=function(e,t,n,r,a,o,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!o(new c.A(e),new c.A(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,u.A)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=d;case"[object Set]":var f=1&r;if(l||(l=p),e.size!=t.size&&!f)break;var h=i.get(e);if(h)return h==t;r|=2,i.set(e,t);var g=s(l(e),l(t),r,a,o,i);return i.delete(e),g;case"[object Symbol]":if(m)return m.call(e)==m.call(t)}return!1};var g=n(11507),b=Object.prototype.hasOwnProperty;let y=function(e,t,n,r,a,o){var i=1&n,s=(0,g.A)(e),l=s.length;if(l!=(0,g.A)(t).length&&!i)return!1;for(var c=l;c--;){var u=s[c];if(!(i?u in t:b.call(t,u)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var f=!0;o.set(e,t),o.set(t,e);for(var m=i;++c<l;){var h=e[u=s[c]],y=t[u];if(r)var v=i?r(y,h,u,t,e,o):r(h,y,u,e,t,o);if(!(void 0===v?h===y||a(h,y,n,r,o):v)){f=!1;break}m||(m="constructor"==u)}if(f&&!m){var A=e.constructor,$=t.constructor;A!=$&&"constructor"in e&&"constructor"in t&&!("function"==typeof A&&A instanceof A&&"function"==typeof $&&$ instanceof $)&&(f=!1)}return o.delete(e),o.delete(t),f};var v=n(4004),A=n(36820),$=n(75323),k=n(43148),x="[object Arguments]",C="[object Array]",w="[object Object]",E=Object.prototype.hasOwnProperty;let D=function(e,t,n,a,o,i){var l=(0,A.A)(e),c=(0,A.A)(t),u=l?C:(0,v.A)(e),d=c?C:(0,v.A)(t);u=u==x?w:u,d=d==x?w:d;var p=u==w,f=d==w,m=u==d;if(m&&(0,$.A)(e)){if(!(0,$.A)(t))return!1;l=!0,p=!1}if(m&&!p)return i||(i=new r.A),l||(0,k.A)(e)?s(e,t,n,a,o,i):h(e,t,u,n,a,o,i);if(!(1&n)){var g=p&&E.call(e,"__wrapped__"),b=f&&E.call(t,"__wrapped__");if(g||b){var D=g?e.value():e,S=b?t.value():t;return i||(i=new r.A),o(D,S,n,a,i)}}return!!m&&(i||(i=new r.A),y(e,t,n,a,o,i))};var S=n(62873);let B=function(e,t){return function e(t,n,r,a,o){return t===n||(null!=t&&null!=n&&((0,S.A)(t)||(0,S.A)(n))?D(t,n,r,a,e,o):t!=t&&n!=n)}(e,t)}},49885:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(31243),a=n(12174);let o=function(e){if(!(0,a.A)(e))return!1;var t=(0,r.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},47741:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},12174:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},62873:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){return null!=e&&"object"==typeof e}},92562:function(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(31243),a=n(89494),o=n(62873),i=Object.prototype,s=Function.prototype.toString,l=i.hasOwnProperty,c=s.call(Object);let u=function(e){if(!(0,o.A)(e)||"[object Object]"!=(0,r.A)(e))return!1;var t=(0,a.A)(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==c}},44049:function(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(31243),a=n(62873);let o=function(e){return"symbol"==typeof e||(0,a.A)(e)&&"[object Symbol]"==(0,r.A)(e)}},43148:function(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(31243),a=n(47741),o=n(62873),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;var s=n(33734),l=n(97872),c=l.A&&l.A.isTypedArray;let u=c?(0,s.A)(c):function(e){return(0,o.A)(e)&&(0,a.A)(e.length)&&!!i[(0,r.A)(e)]}},43473:function(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(42287),a=n(62926),o=n(55259);let i=function(e){return(0,o.A)(e)?(0,r.A)(e):(0,a.A)(e)}},22678:function(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(42287),a=n(12174),o=n(24956);let i=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var s=Object.prototype.hasOwnProperty;let l=function(e){if(!(0,a.A)(e))return i(e);var t=(0,o.A)(e),n=[];for(var r in e)"constructor"==r&&(t||!s.call(e,r))||n.push(r);return n};var c=n(55259);let u=function(e){return(0,c.A)(e)?(0,r.A)(e,!0):l(e)}},92801:function(e,t,n){"use strict";n.d(t,{A:()=>ek});var r,a,o,i=n(20117),s=n(61098);let l=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var c=n(74660),u=n(51158),d=n(43473),p=n(22678),f=n(13137),m=n(17052),h=n(93363),g=n(93903),b=n(89494),y=n(9620),v=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,g.A)(t,(0,h.A)(e)),e=(0,b.A)(e);return t}:y.A,A=n(11507),$=n(96918);let k=function(e){return(0,$.A)(e,p.A,v)};var x=n(4004),C=Object.prototype.hasOwnProperty;let w=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&C.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var E=n(46940);let D=function(e,t){var n=t?(0,E.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var S=/\w*$/;let B=function(e){var t=new e.constructor(e.source,S.exec(e));return t.lastIndex=e.lastIndex,t};var z=n(19172),P=z.A?z.A.prototype:void 0,T=P?P.valueOf:void 0,M=n(84934);let O=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return(0,E.A)(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return D(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,M.A)(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return B(e);case"[object Symbol]":return T?Object(T.call(e)):{}}};var F=n(47514),I=n(36820),N=n(75323),j=n(62873),R=n(33734),L=n(97872),V=L.A&&L.A.isMap,H=V?(0,R.A)(V):function(e){return(0,j.A)(e)&&"[object Map]"==(0,x.A)(e)},G=n(12174),U=L.A&&L.A.isSet,q=U?(0,R.A)(U):function(e){return(0,j.A)(e)&&"[object Set]"==(0,x.A)(e)},W="[object Arguments]",K="[object Function]",Y="[object Object]",J={};J[W]=J["[object Array]"]=J["[object ArrayBuffer]"]=J["[object DataView]"]=J["[object Boolean]"]=J["[object Date]"]=J["[object Float32Array]"]=J["[object Float64Array]"]=J["[object Int8Array]"]=J["[object Int16Array]"]=J["[object Int32Array]"]=J["[object Map]"]=J["[object Number]"]=J[Y]=J["[object RegExp]"]=J["[object Set]"]=J["[object String]"]=J["[object Symbol]"]=J["[object Uint8Array]"]=J["[object Uint8ClampedArray]"]=J["[object Uint16Array]"]=J["[object Uint32Array]"]=!0,J["[object Error]"]=J[K]=J["[object WeakMap]"]=!1;let Z=function e(t,n,r,a,o,i){var g,b=1&n,y=2&n,$=4&n;if(r&&(g=o?r(t,a,o,i):r(t)),void 0!==g)return g;if(!(0,G.A)(t))return t;var C=(0,I.A)(t);if(C){if(g=w(t),!b)return(0,m.A)(t,g)}else{var E,D,S,B,z=(0,x.A)(t),P=z==K||"[object GeneratorFunction]"==z;if((0,N.A)(t))return(0,f.A)(t,b);if(z==Y||z==W||P&&!o){if(g=y||P?{}:(0,F.A)(t),!b)return y?(D=(E=g)&&(0,u.A)(t,(0,p.A)(t),E),(0,u.A)(t,v(t),D)):(B=(S=g)&&(0,u.A)(t,(0,d.A)(t),S),(0,u.A)(t,(0,h.A)(t),B))}else{if(!J[z])return o?t:{};g=O(t,z,b)}}i||(i=new s.A);var T=i.get(t);if(T)return T;i.set(t,g),q(t)?t.forEach(function(a){g.add(e(a,n,r,a,t,i))}):H(t)&&t.forEach(function(a,o){g.set(o,e(a,n,r,o,t,i))});var M=$?y?k:A.A:y?p.A:d.A,j=C?void 0:M(t);return l(j||t,function(a,o){j&&(a=t[o=a]),(0,c.A)(g,o,e(a,n,r,o,t,i))}),g};var X=n(44049),Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/;let et=function(e,t){if((0,I.A)(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||(0,X.A)(e))||ee.test(e)||!Q.test(e)||null!=t&&e in Object(t)};var en=n(63605);function er(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(er.Cache||en.A),n}er.Cache=en.A;var ea=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eo=/\\(\\)?/g,ei=(a=(r=er(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ea,function(e,n,r,a){t.push(r?a.replace(eo,"$1"):n||e)}),t},function(e){return 500===a.size&&a.clear(),e})).cache,r),es=n(1158);let el=function(e,t){return(0,I.A)(e)?e:et(e,t)?[e]:ei((0,es.A)(e))},ec=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var eu=1/0;let ed=function(e){if("string"==typeof e||(0,X.A)(e))return e;var t=e+"";return"0"==t&&1/e==-eu?"-0":t},ep=function(e,t){t=el(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[ed(t[n++])];return n&&n==r?e:void 0},ef=function(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(a);++r<a;)o[r]=e[r+t];return o},em=function(e,t){var n,r;return t=el(t,e),n=e,null==(e=(r=t).length<2?n:ep(n,ef(r,0,-1)))||delete e[ed(ec(t))]};var eh=n(92562);let e_=function(e){return(0,eh.A)(e)?void 0:e};var eg=n(17820),eb=z.A?z.A.isConcatSpreadable:void 0;let ey=function(e){return(0,I.A)(e)||(0,eg.A)(e)||!!(eb&&e&&e[eb])},ev=function e(t,n,r,a,o){var i=-1,s=t.length;for(r||(r=ey),o||(o=[]);++i<s;){var l=t[i];n>0&&r(l)?n>1?e(l,n-1,r,a,o):(0,g.A)(o,l):a||(o[o.length]=l)}return o};var eA=n(54979),e$=n(44168);let ek=(o=function(e,t){var n={};if(null==e)return n;var r=!1;t=(0,i.A)(t,function(t){return t=el(t,e),r||(r=t.length>1),t}),(0,u.A)(e,k(e),n),r&&(n=Z(n,7,e_));for(var a=t.length;a--;)em(n,t[a]);return n},(0,e$.A)((0,eA.A)(o,void 0,function(e){return(null==e?0:e.length)?ev(e,1):[]}),o+""))},9620:function(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(){return[]}},1158:function(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(19172),a=n(20117),o=n(36820),i=n(44049),s=1/0,l=r.A?r.A.prototype:void 0,c=l?l.toString:void 0;let u=function e(t){if("string"==typeof t)return t;if((0,o.A)(t))return(0,a.A)(t,e)+"";if((0,i.A)(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n},d=function(e){return null==e?"":u(e)}},6309:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,a,o;r=e,a=t,o=n[t],a in r?Object.defineProperty(r,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[a]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n;if("function"!=typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var n="single-spa-application:".concat(t);return function(){var e=document.getElementById(n);return e||((e=document.createElement("div")).id=n,document.body.appendChild(e)),e}}(t)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(i(n)));return function(){var e=n(t);if(!(e instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(i(e)));return e}}n.d(t,{A:()=>u,i:()=>l});var l=null;try{l=require("react").createContext()}catch(e){}var c={React:null,ReactDOM:null,ReactDOMClient:null,rootComponent:null,loadRootComponent:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{},unmountResolves:{}};function u(e){if("object"!==o(e))throw Error("single-spa-react requires a configuration object");var t,n=a(a({},c),e);if(!n.React)throw Error("single-spa-react must be passed opts.React");if(!n.ReactDOM&&!n.ReactDOMClient)throw Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(n.renderType||(null!=(t=n.ReactDOMClient)&&t.createRoot?n.renderType="createRoot":n.renderType="render"),!n.rootComponent&&!n.loadRootComponent)throw Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&"function"!=typeof n.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!l&&n.React.createContext&&(l=n.React.createContext()),n.SingleSpaRoot=function(e){function t(e){t.displayName="SingleSpaRoot(".concat(e.name,")")}return t.prototype=Object.create(e.React.Component.prototype),t.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},t.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},t.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},t}(n);var r={bootstrap:d.bind(null,n),mount:p.bind(null,n),unmount:f.bind(null,n)};return n.parcelCanUpdate&&(r.update=m.bind(null,n)),r}function d(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(t){e.rootComponent=t})}function p(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(e){if(!(e&&"string"==typeof e.version&&e.version.indexOf(".")>=0))return!1;var t=e.version.slice(0,e.version.indexOf("."));try{return Number(t)>=16}catch(e){return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var a,o=g(e,t,function(){n(this)}),i=s(e,t)(),l=function(e){var t=e.reactDom,n=e.renderType,r=e.elementToRender,a=e.domElement,o=t[n];if("function"!=typeof o)throw Error('renderType "'.concat(n,'" did not return a function.'));switch(n){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var i=o(a);return i.render(r),i;case"hydrateRoot":return o(a,r);default:return o(r,a),null}}({elementToRender:o,domElement:i,reactDom:h(e),renderType:"function"==typeof(a=e).renderType?a.renderType():a.renderType});e.domElements[t.name]=i,e.renderResults[t.name]=l})}function f(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():h(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function m(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=g(e,t,null),a=e.renderResults[t.name];if(a&&a.render)a.render(r);else{var o=s(e,t)();h(e).render(r,o)}})}function h(e){return e.ReactDOMClient||e.ReactDOM}function g(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=l?e.React.createElement(l.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(e,t){function n(t){e.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},n.displayName="SingleSpaReactErrorBoundary(".concat(t.name,")")}return n.prototype=Object.create(e.React.Component.prototype),n.prototype.render=function(){return this.state.caughtError?(e.errorBoundary||t.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},n.prototype.componentDidCatch=function(e,t){this.setState({caughtError:e,caughtErrorInfo:t})},n}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,a(a({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(e){return e()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}},22956:function(e,t,n){"use strict";let r;n.d(t,{AG:()=>eC,EH:()=>eo,fz:()=>ez,xL:()=>G});var a=Object.freeze({__proto__:null,get start(){return ej},get ensureJQuerySupport(){return em},get setBootstrapMaxTime(){return Y},get setMountMaxTime(){return J},get setUnmountMaxTime(){return Z},get setUnloadMaxTime(){return X},get registerApplication(){return eC},get unregisterApplication(){return eE},get getMountedApps(){return eA},get getAppStatus(){return ek},get unloadApplication(){return eD},get checkActivityFunctions(){return ew},get getAppNames(){return e$},get pathToActiveWhen(){return ez},get navigateToUrl(){return eo},get patchHistoryApi(){return ed},get triggerAppChange(){return eO},get addErrorHandler(){return c},get removeErrorHandler(){return u},get mountRootParcel(){return G},get NOT_LOADED(){return f},get LOADING_SOURCE_CODE(){return m},get NOT_BOOTSTRAPPED(){return h},get BOOTSTRAPPING(){return g},get NOT_MOUNTED(){return b},get MOUNTING(){return y},get UPDATING(){return A},get LOAD_ERROR(){return x},get MOUNTED(){return v},get UNLOADING(){return k},get UNMOUNTING(){return $},get SKIP_BECAUSE_BROKEN(){return C}}),o=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).CustomEvent,i=!function(){try{var e=new o("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=!!t.bubbles,n.cancelable=!!t.cancelable,n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}:o;let s=[];function l(e,t,n){let r=p(e,t,n);s.length?s.forEach(e=>e(r)):setTimeout(()=>{throw r})}function c(e){if("function"!=typeof e)throw Error(d(28,!1));s.push(e)}function u(e){if("function"!=typeof e)throw Error(d(29,!1));let t=!1;return s=s.filter(n=>{let r=n===e;return t=t||r,!r}),t}function d(e,t,...n){return`single-spa minified message #${e}: ${t?t+" ":""}See https://single-spa.js.org/error/?code=${e}${n.length?`&arg=${n.join("&arg=")}`:""}`}function p(e,t,n){let r,a=`${B(t)} '${D(t)}' died in status ${t.status}: `;if(e instanceof Error){try{e.message=a+e.message}catch(e){}r=e}else{console.warn(d(30,!1,t.status,D(t)));try{r=Error(a+JSON.stringify(e))}catch(t){r=e}}return r.appOrParcelName=D(t),t.status=n,r}let f="NOT_LOADED",m="LOADING_SOURCE_CODE",h="NOT_BOOTSTRAPPED",g="BOOTSTRAPPING",b="NOT_MOUNTED",y="MOUNTING",v="MOUNTED",A="UPDATING",$="UNMOUNTING",k="UNLOADING",x="LOAD_ERROR",C="SKIP_BECAUSE_BROKEN";function w(e){return e.status===v}function E(e){try{return e.activeWhen(window.location)}catch(t){return l(t,e,C),!1}}function D(e){return e.name}function S(e){return!!e.unmountThisParcel}function B(e){return S(e)?"parcel":"application"}function z(){for(let e=arguments.length-1;e>0;e--)for(let t in arguments[e])"__proto__"!==t&&(arguments[e-1][t]=arguments[e][t]);return arguments[0]}function P(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n];return null}function T(e){return e&&("function"==typeof e||Array.isArray(e)&&!P(e,e=>"function"!=typeof e))}function M(e,t){let n=e[t]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[()=>Promise.resolve()]);let r=B(e),a=D(e);return function(e){return n.reduce((n,o,i)=>n.then(()=>{let n=o(e);return O(n)?n:Promise.reject(d(15,!1,r,a,t,i))}),Promise.resolve())}}function O(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}let F=[];function I(e,t){return Promise.resolve().then(()=>e.status!==h?e:(e.status=g,e.bootstrap?Q(e,"bootstrap").then(n).catch(n=>{if(t)throw p(n,e,C);return l(n,e,C),e}):Promise.resolve().then(n)));function n(){return e.status=b,e}}function N(e,t){return Promise.resolve().then(()=>{if(e.status!==v)return e;return e.status=$,Promise.all(Object.keys(e.parcels).map(t=>e.parcels[t].unmountThisParcel())).then(n,r=>n().then(()=>{let n=Error(r.message);if(t)throw p(n,e,C);l(n,e,C)})).then(()=>e);function n(){return Q(e,"unmount").then(()=>{e.status=b},n=>{if(t)throw p(n,e,C);l(n,e,C)})}})}let j=!1,R=!1;function L(e,t){return Promise.resolve().then(()=>e.status!==b?e:(j||(window.dispatchEvent(new i("single-spa:before-first-mount")),j=!0),e.status=y,Q(e,"mount").then(()=>(e.status=v,R||(window.dispatchEvent(new i("single-spa:first-mount")),R=!0),e)).catch(n=>{return e.status=v,N(e,!0).then(r,r);function r(){if(t)throw p(n,e,C);return l(n,e,C),e}})))}let V=0,H={parcels:{}};function G(){return U.apply(H,arguments)}function U(e,t){let n,r,a,o=this;if(!e||"object"!=typeof e&&"function"!=typeof e)throw Error(d(2,!1));if(e.name&&"string"!=typeof e.name)throw Error(d(3,!1,typeof e.name));let i=V++,s=e.name||`parcel-${i}`;if("object"!=typeof t)throw Error(d(4,!1,s,typeof t));if(!t.domElement)throw Error(d(5,!1,s));let l="function"==typeof e,c=l?e:()=>Promise.resolve(e),u={id:i,parcels:{},status:l?m:h,customProps:t,parentName:D(o),unmountThisParcel:()=>y.then(()=>{if(u.status!==v)throw Error(d(6,!1,s,u.status));return N(u,!0)}).then(e=>(u.parentName&&delete o.parcels[u.id],e)).then(e=>(r(e),e)).catch(e=>{throw u.status=C,a(e),e})};o.parcels[i]=u;let f=c();if(!f||"function"!=typeof f.then)throw Error(d(7,!1));let g=(f=f.then(e=>{if(!e)throw Error(d(8,!1));if(s=e.name||`parcel-${i}`,Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!T(e.bootstrap))throw Error(d(9,!1,s));if(!T(e.mount))throw Error(d(10,!1,s));if(!T(e.unmount))throw Error(d(11,!1,s));if(e.update&&!T(e.update))throw Error(d(12,!1,s));let t=M(e,"bootstrap"),r=M(e,"mount"),a=M(e,"unmount");u.status=h,u.name=s,u.bootstrap=t,u.mount=r,u.unmount=a,u.timeouts=ee(e.timeouts),e.update&&(u.update=M(e,"update"),n.update=function(e){return u.customProps=e,q(Promise.resolve().then(()=>{if(u.status!==v)throw Error(d(32,!1,D(u)));return u.status=A,Q(u,"update").then(()=>(u.status=v,u)).catch(e=>{throw p(e,u,C)})}))})})).then(()=>I(u,!0)),y=g.then(()=>L(u,!0)),$=new Promise((e,t)=>{r=e,a=t});return n={mount:()=>q(Promise.resolve().then(()=>{if(u.status!==b)throw Error(d(13,!1,s,u.status));return o.parcels[i]=u,L(u)})),unmount:()=>q(u.unmountThisParcel()),getStatus:()=>u.status,loadPromise:q(f),bootstrapPromise:q(g),mountPromise:q(y),unmountPromise:q($)}}function q(e){return e.then(()=>null)}function W(e){let t=D(e),n="function"==typeof e.customProps?e.customProps(t,window.location):e.customProps;("object"!=typeof n||null===n||Array.isArray(n))&&(n={},console.warn(d(40,!1),t,n));let r=z({},n,{name:t,mountParcel:U.bind(e),singleSpa:a});return S(e)&&(r.unmountSelf=e.unmountThisParcel),r}let K={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function Y(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(16,!1));K.bootstrap={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function J(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(17,!1));K.mount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Z(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(18,!1));K.unmount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function X(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(19,!1));K.unload={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Q(e,t){let n=e.timeouts[t],r=n.warningMillis,a=B(e);return new Promise((o,i)=>{let s=!1,l=!1;e[t](W(e)).then(e=>{s=!0,o(e)}).catch(e=>{s=!0,i(e)}),setTimeout(()=>u(1),r),setTimeout(()=>u(!0),n.millis);let c=d(31,!1,t,a,D(e),n.millis);function u(e){s||(!0===e?(l=!0,n.dieOnTimeout?i(Error(c)):console.error(c)):!l&&(console.warn(c),e*r+r<n.millis&&setTimeout(()=>u(e+1),r)))}})}function ee(e){let t={};for(let n in K)t[n]=z({},K[n],e&&e[n]||{});return t}function et(e){return Promise.resolve().then(()=>{let t,n;return e.loadPromise?e.loadPromise:e.status!==f&&e.status!==x?e:(e.status=m,e.loadPromise=Promise.resolve().then(()=>{let r=e.loadApp(W(e));if(!O(r))throw n=!0,Error(d(33,!1,D(e)));return r.then(n=>{let r;e.loadErrorTime=null,"object"!=typeof(t=n)&&(r=34),Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!T(t.bootstrap)&&(r=35),T(t.mount)||(r=36),T(t.unmount)||(r=37);let a=B(t);if(r){let n;try{n=JSON.stringify(t)}catch(e){}return console.error(d(r,!1,a,D(e),n),t),l(void 0,e,C),e}return t.devtools&&t.devtools.overlays&&(e.devtools.overlays=z({},e.devtools.overlays,t.devtools.overlays)),e.status=h,e.bootstrap=M(t,"bootstrap"),e.mount=M(t,"mount"),e.unmount=M(t,"unmount"),e.unload=M(t,"unload"),e.timeouts=ee(t.timeouts),delete e.loadPromise,e})}).catch(t=>{let r;return delete e.loadPromise,n?r=C:(r=x,e.loadErrorTime=(new Date).getTime()),l(t,e,r),e}))})}let en="undefined"!=typeof window,er={hashchange:[],popstate:[]},ea=["hashchange","popstate"];function eo(e){let t;if("string"==typeof e)t=e;else if(this&&this.href)t=this.href;else{if(!(e&&e.currentTarget&&e.currentTarget.href&&e.preventDefault))throw Error(d(14,!1));t=e.currentTarget.href,e.preventDefault()}let n=ep(window.location.href),r=ep(t);0===t.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=t:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,t)}function ei(e){if(e){let t=e[0].type;ea.indexOf(t)>=0&&er[t].forEach(t=>{try{t.apply(this,e)}catch(e){setTimeout(()=>{throw e})}})}}function es(){eF([],arguments)}function el(e,t){return function(){let n=window.location.href,a=e.apply(this,arguments),o=window.location.href;return r&&n===o||window.dispatchEvent(function(e,t){let n;try{n=new PopStateEvent("popstate",{state:e})}catch(t){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,e)}return n.singleSpa=!0,n.singleSpaTrigger=t,n}(window.history.state,t)),a}}let ec=null,eu=!1;function ed(e){if(eu)throw Error(d(43,!1));r=!e||!e.hasOwnProperty("urlRerouteOnly")||e.urlRerouteOnly,eu=!0,ec=window.history.replaceState,window.addEventListener("hashchange",es),window.addEventListener("popstate",es);let t=window.addEventListener,n=window.removeEventListener;window.addEventListener=function(e,n){if(!("function"==typeof n&&ea.indexOf(e)>=0)||P(er[e],e=>e===n))return t.apply(this,arguments);er[e].push(n)},window.removeEventListener=function(e,t){return"function"==typeof t&&ea.indexOf(e)>=0&&(er[e]=er[e].filter(e=>e!==t)),n.apply(this,arguments)},window.history.pushState=el(window.history.pushState,"pushState"),window.history.replaceState=el(ec,"replaceState")}function ep(e){let t=document.createElement("a");return t.href=e,t}en&&(window.singleSpaNavigate?console.warn(d(41,!1)):window.singleSpaNavigate=eo);let ef=!1;function em(e=window.jQuery){if(e||window.$&&window.$.fn&&window.$.fn.jquery&&(e=window.$),e&&!ef){let t=e.fn.on,n=e.fn.off;e.fn.on=function(e,n){return eh.call(this,t,window.addEventListener,e,n,arguments)},e.fn.off=function(e,t){return eh.call(this,n,window.removeEventListener,e,t,arguments)},ef=!0}}function eh(e,t,n,r,a){return"string"!=typeof n?e.apply(this,a):(n.split(/\s+/).forEach(e=>{ea.indexOf(e)>=0&&(t(e,r),n=n.replace(e,""))}),""===n.trim()?this:e.apply(this,a))}let e_={};function eg(e){return Promise.resolve().then(()=>{let t=e_[D(e)];if(!t)return e;if(e.status===f)return eb(e,t),e;if(e.status===k)return t.promise.then(()=>e);if(e.status!==b&&e.status!==x)return e;let n=e.status===x?Promise.resolve():Q(e,"unload");return e.status=k,n.then(()=>(eb(e,t),e)).catch(n=>(delete e_[D(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,l(n,e,C),t.reject(n),e))})}function eb(e,t){delete e_[D(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,e.status=f,t.resolve()}function ey(e,t,n,r){e_[D(e)]={app:e,resolve:n,reject:r},Object.defineProperty(e_[D(e)],"promise",{get:t})}let ev=[];function eA(){return ev.filter(w).map(D)}function e$(){return ev.map(D)}function ek(e){let t=P(ev,t=>D(t)===e);return t?t.status:null}let ex=!1;function eC(e,t,n,r){var a,o;let i,s,l=(i={name:null,loadApp:null,activeWhen:null,customProps:null},"object"==typeof e?(function(e){if(Array.isArray(e)||null===e)throw Error(d(39,!1));let t=["name","app","activeWhen","customProps"],n=Object.keys(e).reduce((e,n)=>t.indexOf(n)>=0?e:e.concat(n),[]);if(0!==n.length)throw Error(d(38,!1,t.join(", "),n.join(", ")));if("string"!=typeof e.name||0===e.name.length||"object"!=typeof e.app&&"function"!=typeof e.app)throw Error(d(20,!1));let r=e=>"string"==typeof e||"function"==typeof e;if(!(r(e.activeWhen)||Array.isArray(e.activeWhen)&&e.activeWhen.every(r)))throw Error(d(24,!1));if(!eB(e.customProps))throw Error(d(22,!1))}(e),i.name=e.name,i.loadApp=e.app,i.activeWhen=e.activeWhen,i.customProps=e.customProps):(function(e,t,n,r){if("string"!=typeof e||0===e.length)throw Error(d(20,!1));if(!t)throw Error(d(23,!1));if("function"!=typeof n)throw Error(d(24,!1));if(!eB(r))throw Error(d(22,!1))}(e,t,n,r),i.name=e,i.loadApp=t,i.activeWhen=n,i.customProps=r),i.loadApp="function"!=typeof(a=i.loadApp)?()=>Promise.resolve(a):a,i.customProps=i.customProps||{},s=(s=Array.isArray(o=i.activeWhen)?o:[o]).map(e=>"function"==typeof e?e:ez(e)),i.activeWhen=e=>s.some(t=>t(e)),i);if(eN||ex||(ex=!0,setTimeout(()=>{eN||console.warn(d(1,!1))},5e3)),-1!==e$().indexOf(l.name))throw Error(d(21,!1,l.name));ev.push(z({loadErrorTime:null,status:f,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},l)),en&&(em(),eF())}function ew(e=window.location){return ev.filter(t=>t.activeWhen(e)).map(D)}function eE(e){if(0===ev.filter(t=>D(t)===e).length)throw Error(d(25,!1,e));return(en?eD(e,{waitForUnmount:!1}):Promise.resolve()).then(()=>{let t=ev.map(D).indexOf(e);ev.splice(t,1)})}function eD(e,t={waitForUnmount:!1}){if("string"!=typeof e)throw Error(d(26,!1));let n=P(ev,t=>D(t)===e);if(!n)throw Error(d(27,!1,e));let r=e_[D(n)];if(t&&t.waitForUnmount){if(r)return r.promise;{let e=new Promise((t,r)=>{ey(n,()=>e,t,r)});return e}}{let e;return r?(e=r.promise,eS(n,r.resolve,r.reject)):e=new Promise((t,r)=>{ey(n,()=>e,t,r),eS(n,t,r)}),e}}function eS(e,t,n){Promise.resolve().then(()=>{if(P(ew(),t=>t===D(e)))return eO()}).then(()=>N(e).then(eg).then(()=>{t(),setTimeout(()=>{eF()})})).catch(n)}function eB(e){return!e||"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)}function ez(e,t){let n=function(e,t){let n=0,r=!1,a="^";"/"!==e[0]&&(e="/"+e);for(let t=0;t<e.length;t++){let n=e[t],a=r&&"/"===n;(!r&&":"===n||a)&&o(t)}return o(e.length),RegExp(a,"i");function o(o){let i=e.slice(n,o).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(a+=r?"[^/]+/?":i,o===e.length)if(r)t&&(a+="$");else{let e=t?"":".*";a="/"===a.charAt(a.length-1)?`${a}${e}$`:`${a}(/${e})?(#.*)?$`}r=!r,n=o}}(e,t);return e=>{let t=e.origin;t||(t=`${e.protocol}//${e.host}`);let r=e.href.replace(t,"").replace(e.search,"").split("?")[0];return n.test(r)}}let eP=!1,eT=[],eM=en&&window.location.href;function eO(){return eF()}function eF(e=[],t,n=!1){let r,a,o,s,l;if(eP)return new Promise((e,n)=>{eT.push({resolve:e,reject:n,eventArguments:t})});let{appsToUnload:c,appsToUnmount:u,appsToLoad:p,appsToMount:g}=(r=[],a=[],o=[],s=[],l=(new Date).getTime(),ev.forEach(e=>{let t=e.status!==C&&E(e);switch(e.status){case x:t&&l-e.loadErrorTime>=200&&o.push(e);break;case f:case m:t&&o.push(e);break;case h:case b:!t&&e_[D(e)]?r.push(e):t&&s.push(e);break;case v:t||a.push(e)}}),{appsToUnload:r,appsToUnmount:a,appsToLoad:o,appsToMount:s}),y,A=[],$=eM,k=eM=window.location.href;return eN?(eP=!0,y=c.concat(p,u,g),Promise.resolve().then(()=>(T(0===y.length?"before-no-app-change":"before-app-change",P(!0)),T("before-routing-event",P(!0,{cancelNavigation:w})),Promise.all(A).then(n=>{if(n.some(e=>e))return ec.call(window.history,history.state,"",$.substring(location.origin.length)),eM=location.href,eP=!1,eF(e,t,!0);let r=c.map(eg),a=Promise.all(u.map(N).map(e=>e.then(eg)).concat(r));a.then(()=>{T("before-mount-routing-event",P(!0))},e=>{throw e});let o=p.map(e=>et(e).then(e=>eI(e,a))),i=g.filter(e=>0>p.indexOf(e)).map(e=>eI(e,a));return a.catch(e=>{throw B(),e}).then(()=>(B(),Promise.all(o.concat(i)).catch(t=>{throw e.forEach(e=>e.reject(t)),t}).then(S).then(()=>{},e=>{throw e})))})))):(y=p,Promise.resolve().then(()=>Promise.all(p.map(et)).then(B).then(()=>[]).catch(e=>{throw B(),e}).finally(()=>{})));function w(e=!0){let t="function"==typeof(null==e?void 0:e.then)?e:Promise.resolve(e);A.push(t.catch(e=>(console.warn(Error(d(42,!1))),console.warn(e),!1)))}function S(){let t=eA();e.forEach(e=>e.resolve(t));try{T(0===y.length?"no-app-change":"app-change",P()),T("routing-event",P())}catch(e){setTimeout(()=>{throw e})}if(eP=!1,eT.length>0){let e=eT;eT=[],eF(e)}return t}function B(){n||(e.forEach(e=>{ei(e.eventArguments)}),ei(t))}function P(e=!1,n){let r={},a={[v]:[],[b]:[],[f]:[],[C]:[]};e?(p.concat(g).forEach((e,t)=>{i(e,v)}),c.forEach(e=>{i(e,f)}),u.forEach(e=>{i(e,b)})):y.forEach(e=>{i(e)});let o={detail:{newAppStatuses:r,appsByNewStatus:a,totalAppChanges:y.length,originalEvent:null==t?void 0:t[0],oldUrl:$,newUrl:k}};return n&&z(o.detail,n),o;function i(e,t){let n=D(e);t=t||ek(n),r[n]=t,(a[t]=a[t]||[]).push(n)}}function T(e,t){n||window.dispatchEvent(new i(`single-spa:${e}`,t))}}function eI(e,t){return E(e)?I(e).then(e=>t.then(()=>E(e)?L(e):e)):t.then(()=>e)}let eN=!1;function ej(e){eN=!0,en&&(ed(e),eF())}en&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[...ev]},reroute:eF,NOT_LOADED:f,toLoadPromise:et,toBootstrapPromise:I,unregisterApplication:eE,getProfilerData:function(){return F}})},70937:function(e,t,n){"use strict";n.d(t,{lo:()=>b,HW:()=>k,QE:()=>O,xC:()=>S,$f:()=>v,Kx:()=>B,EW:()=>x,E4:()=>C,Gm:()=>g,eA:()=>A,yH:()=>w,ut:()=>y,Y0:()=>F,L7:()=>M,IU:()=>m,Jj:()=>f,g$:()=>E,Gp:()=>z,Ct:()=>h,Fi:()=>P,st:()=>D});var r=n(64201),a=n(467);let o=function(e){return void 0===e};var i=n(26049),s=n(92562),l=n(13070),c=n(17744);let u="${openmrsSpaBase}/login",d={redirectAuthFailure:{enabled:{_type:l.ZU.Boolean,_default:!0,_description:"Whether to redirect logged-out users to `redirectAuthFailure.url`"},url:{_type:l.ZU.String,_default:u,_validators:[l.y$.isUrl],_description:"The url to which users will be redirected when they are logged out. If set to blank, the `location` header from the response will be used."},errors:{_type:l.ZU.Array,_default:[401],_elements:{_type:l.ZU.Number,_validators:[l.y$.inRange(100,600)]},_description:"The HTTP error codes for which users will be redirected"},resolvePromise:{_type:l.ZU.Boolean,_default:!1,_description:"Changes how requests that fail authentication are handled. Try messing with this if redirects to the login page aren't working correctly."}},followRedirects:{_type:l.ZU.Boolean,_default:!0,_description:"Whether openmrsFetch should support redirects returned from the backend"}};function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let f="/ws/rest/v1",m="/ws/fhir2/R4",h=`${f}/session`;function g(e){return e&&e.startsWith("http")?e:("/"!==e[0]&&(e="/"+e),window.openmrsBase+e)}function b(e,t={}){if("string"!=typeof e)throw Error("The first argument to @openmrs/api's openmrsFetch function must be a url string");if("object"!=typeof t)throw Error("The second argument to @openmrs/api's openmrsFetch function must be a plain object.");if(!window.openmrsBase)throw Error("@openmrs/api is running in a browser that doesn't have window.openmrsBase, which is provided by openmrs-module-spa's HTML file.");let n=g(e);if(t.headers||(t.headers={}),(0,s.A)(t.body)&&(t.body=JSON.stringify(t.body)),void 0===t.headers.Accept&&(t.headers.Accept="application/json"),null===t.headers.Accept&&delete t.headers.Accept,e.startsWith(f)&&void 0===t.headers["Disable-WWW-Authenticate"]&&(t.headers["Disable-WWW-Authenticate"]="true"),e.startsWith(m)){let e=new URL(n,window.location.toString());e.searchParams.has("_summary")||(e.searchParams.set("_summary","data"),n=e.toString())}let r=Error();return window.fetch(n,t).then(async e=>{let{redirectAuthFailure:t,followRedirects:a}=await (0,l.zj)("@openmrs/esm-api");if(e.ok)if(204!==e.status)return e.clone().text().then(t=>{try{t&&(e.data=JSON.parse(t))}catch(e){}return e});else{if(a&&e.headers.has("location")){let t=e.headers.get("location");t&&(0,c.oo)({to:t})}return e.data=null,e}if(!(n===g(h)&&403===e.status||t.enabled&&t.errors.includes(e.status)))return e.clone().text().then(t=>{let a=t;try{a=JSON.parse(t)}catch(e){}throw new v(n,e,a,r)},t=>{throw new v(n,e,null,r)});{(0,c.g4)();let n=t.url||e.headers.get("location")||u;return(0,c.oo)({to:n}),t.resolvePromise?Promise.resolve():new Promise(()=>{})}})}function y(e,t={}){if("object"!=typeof t)throw Error("The second argument to openmrsObservableFetch must be either omitted or an object");let n=new AbortController;return t.signal=n.signal,new i.c(r=>{let a=!1;return b(e,t).then(e=>{a=!0,r.next(e),r.complete()},e=>{a=!0,r.error(e)}),()=>{a||n.abort()}})}class v extends Error{constructor(e,t,n,r){super(),p(this,"response",void 0),p(this,"responseBody",void 0),this.message=`Server responded with ${t.status} (${t.statusText}) for url ${e}. Check err.responseBody or network tab in dev tools for more info`,r.message=this.message,this.responseBody=n,this.response=t,this.stack=`Stacktrace for outgoing request:
8
8
  ${r.stack}
9
9
  Stacktrace for incoming response:
10
10
  ${this.stack}`}}let A=(0,a.Zd)("session",{loaded:!1,session:null}),$=0;function k(e={includeAuthStatus:!0}){return($<Date.now()-6e4||!A.getState().loaded)&&w(),new i.c(t=>{let n=n=>{n.loaded&&(e.includeAuthStatus?t.next(n.session):t.next(n.session?.user))};return n(A.getState()),A.subscribe(n)})}function x(){return($<Date.now()-6e4||!A.getState().loaded)&&w(),A}function C(e){let t=e.user?.userProperties?.defaultLocale??e.locale;t&&t.includes("_")&&(t=t.replaceAll("_","-")),function(e){if(void 0===e||"string"!=typeof e)return!1;try{new Intl.Locale(e)}catch(e){return!1}return!0}(t)&&t!==document.documentElement.getAttribute("lang")&&document.documentElement.setAttribute("lang",t)}function w(e,t){$=Date.now();let n={};return e&&t&&(n.Authorization=`Basic ${window.btoa(`${e}:${t}`)}`),T(b(h,{headers:n}))}function E(){A.setState({loaded:!0,session:{authenticated:!1,sessionId:""}})}function D(e,t){var n,r;if(void 0===t)return!!e;if(!e)return!0;return n=e,r=t,("string"==typeof n?!o(r.privileges.find(e=>n===e.display)):Array.isArray(n)?n.every(e=>!o(r.privileges.find(t=>e===t.display))):(o(n)||console.error(`Could not understand privileges "${n}"`),!0))||!o(t.roles.find(e=>"System Developer"===e.display))}function S(){let e,t;return new Promise(n=>{let r=r=>{r.loaded&&r.session.user&&(e=r.session.user,n(r.session.user),t&&t())};r(A.getState()),e||(t=A.subscribe(r))})}function B(){return new Promise((e,t)=>{k().subscribe(t=>{e(t.sessionLocation)},t).unsubscribe()})}async function z(e,t){return T(b(h,{method:"POST",body:{sessionLocation:e},headers:{"Content-Type":"application/json"},signal:t.signal}))}async function P(e,t,n){return n||(n=new AbortController),await b(`${f}/user/${e}`,{method:"POST",body:{userProperties:t},headers:{"Content-Type":"application/json"},signal:n.signal}),w()}function T(e){return new Promise((t,n)=>{e.then(e=>{let r;"object"==typeof e?.data?(r={loaded:!0,session:e.data},A.setState(r),t(r)):(r={loaded:!1,session:null},A.setState(r),n(r))}).catch(e=>{(0,r.N)(`Failed to fetch new session information: ${e}`);let t={loaded:!1,session:null};A.setState(t),n(t)})})}function M(){return"development"===window.spaEnv||"true"===localStorage.getItem("openmrs:devtools")}A.subscribe(e=>{e.loaded&&e.session&&C(e.session)});let O={"webservices.rest":"2.24.0",fhir2:"1.0.0-SNAPSHOT"};function F(){(0,l.T0)("@openmrs/esm-api",d),w()}},13070:function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function a(e){return function t(n){return 0==arguments.length||r(n)?t:e.apply(this,arguments)}}function o(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return r(n)?t:a(function(t){return e(n,t)});default:return r(n)&&r(o)?t:r(n)?a(function(t){return e(t,o)}):r(o)?a(function(t){return e(n,t)}):e(n,o)}}}function i(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function s(e,t,n){for(var r=0,a=n.length;r<a;){if(e(t,n[r]))return!0;r+=1}return!1}function l(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.d(t,{Gt:()=>eb,GV:()=>e_,Rt:()=>Z,YP:()=>et,hs:()=>Q,T0:()=>ef,Nc:()=>V,ZU:()=>L,td:()=>ev,qG:()=>ej,GI:()=>ea,FL:()=>em,g$:()=>es,H:()=>X,zj:()=>ey,mq:()=>eA,gU:()=>eR,tN:()=>el,P0:()=>ei,IS:()=>ee,UY:()=>eo,Nh:()=>eO,kl:()=>eh,vu:()=>er,r4:()=>eN,yL:()=>eL,y$:()=>eV,G9:()=>en,ks:()=>eg});let c="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var u,d,p,f,m=Object.prototype.toString,h=function(){return"[object Arguments]"===m.call(arguments)?function(e){return"[object Arguments]"===m.call(e)}:function(e){return l("callee",e)}}(),g=!({toString:null}).propertyIsEnumerable("toString"),b=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],y=function(){return arguments.propertyIsEnumerable("length")}(),v=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},A="function"!=typeof Object.keys||y?a(function(e){if(Object(e)!==e)return[];var t,n,r=[],a=y&&h(e);for(t in e)l(t,e)&&(!a||"length"!==t)&&(r[r.length]=t);if(g)for(n=b.length-1;n>=0;)l(t=b[n],e)&&!v(r,t)&&(r[r.length]=t),n-=1;return r}):a(function(e){return Object(e)!==e?[]:Object.keys(e)}),$=a(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function k(e,t,n,r){var a=i(e);function o(e,t){return x(e,t,n.slice(),r.slice())}return!s(function(e,t){return!s(o,t,e)},i(t),a)}function x(e,t,n,r){if(c(e,t))return!0;var a,o=$(e);if(o!==$(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(null==(a=String(e.constructor).match(/^function (\w*)/))?"":a[1]))return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&c(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!c(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var i=n.length-1;i>=0;){if(n[i]===e)return r[i]===t;i-=1}switch(o){case"Map":if(e.size!==t.size)return!1;return k(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":if(e.size!==t.size)return!1;return k(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=A(e);if(s.length!==A(t).length)return!1;var u=n.concat([e]),d=r.concat([t]);for(i=s.length-1;i>=0;){var p=s[i];if(!(l(p,t)&&x(t[p],e[p],u,d)))return!1;i-=1}return!0}var C=o(function(e,t){return x(e,t,[],[])});function w(e){return function t(n,i,s){switch(arguments.length){case 0:return t;case 1:return r(n)?t:o(function(t,r){return e(n,t,r)});case 2:return r(n)&&r(i)?t:r(n)?o(function(t,n){return e(t,i,n)}):r(i)?o(function(t,r){return e(n,t,r)}):a(function(t){return e(n,i,t)});default:return r(n)&&r(i)&&r(s)?t:r(n)&&r(i)?o(function(t,n){return e(t,n,s)}):r(n)&&r(s)?o(function(t,n){return e(t,i,n)}):r(i)&&r(s)?o(function(t,r){return e(n,t,r)}):r(n)?a(function(t){return e(t,i,s)}):r(i)?a(function(t){return e(n,t,s)}):r(s)?a(function(t){return e(n,i,t)}):e(n,i,s)}}}function E(e){return"[object Object]"===Object.prototype.toString.call(e)}var D=w(function(e,t,n){var r,a={};for(r in n=n||{},t=t||{})l(r,t)&&(a[r]=l(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)l(r,n)&&!l(r,a)&&(a[r]=n[r]);return a}),S=w(function e(t,n,r){return D(function(n,r,a){return E(r)&&E(a)?e(t,r,a):t(n,r,a)},n,r)}),B=o(function(e,t){return S(function(e,t,n){return n},e,t)}),z=o(function(e,t){for(var n={},r={},a=0,o=e.length;a<o;)r[e[a]]=1,a+=1;for(var i in t)r.hasOwnProperty(i)||(n[i]=t[i]);return n}),P=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var n=this.hash(e),r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(var t in this.map)for(var n=this.map[t],r=0;r<n.length;r+=1){var a=n[r];if(a[0]===e)return a[1]}return}var o=this.hash(e),n=this.map[o];if(n)for(var r=0;r<n.length;r+=1){var a=n[r];if(a[0]===e)return a[1]}},e}(),T=a(function(e){return null!=e&&"function"==typeof e.clone?e.clone():function e(t,n,r){if(r||(r=new P),o=typeof(a=t),null==a||"object"!=o&&"function"!=o)return t;var a,o,i=function(a){var o=r.get(t);if(o)return o;for(var i in r.set(t,a),t)Object.prototype.hasOwnProperty.call(t,i)&&(a[i]=n?e(t[i],!0,r):t[i]);return a};switch($(t)){case"Object":return i(Object.create(Object.getPrototypeOf(t)));case"Array":return i(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}(e,!0)});let M=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};var O=a(function(e){return!!M(e)||!!e&&"object"==typeof e&&"[object String]"!==Object.prototype.toString.call(e)&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}),F="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",I=o(function(e,t){var n=e.length,r=function(){return e.apply(t,arguments)};switch(n){case 0:return function(){return r.apply(this,arguments)};case 1:return function(e){return r.apply(this,arguments)};case 2:return function(e,t){return r.apply(this,arguments)};case 3:return function(e,t,n){return r.apply(this,arguments)};case 4:return function(e,t,n,a){return r.apply(this,arguments)};case 5:return function(e,t,n,a,o){return r.apply(this,arguments)};case 6:return function(e,t,n,a,o,i){return r.apply(this,arguments)};case 7:return function(e,t,n,a,o,i,s){return r.apply(this,arguments)};case 8:return function(e,t,n,a,o,i,s,l){return r.apply(this,arguments)};case 9:return function(e,t,n,a,o,i,s,l,c){return r.apply(this,arguments)};case 10:return function(e,t,n,a,o,i,s,l,c,u){return r.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}}),N=(u=function(e,t,n){for(var r=0,a=n.length;r<a;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)},d=function(e,t,n,r){return e["@@transducer/result"](n[r](I(e["@@transducer/step"],e),t))},p=function(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)},function(e,t,n){if(O(n))return u(e,t,n);if(null==n)return t;if("function"==typeof n["fantasy-land/reduce"])return d(e,t,n,"fantasy-land/reduce");if(null!=n[F])return p(e,t,n[F]());if("function"==typeof n.next)return p(e,t,n);if("function"==typeof n.reduce)return d(e,t,n,"reduce");throw TypeError("reduce: list must be array or iterable")}),j=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}(),R=w(function(e,t,n){return N("function"==typeof e?new j(e):e,t,n)}),L=((f={}).Array="Array",f.Boolean="Boolean",f.ConceptUuid="ConceptUuid",f.Number="Number",f.Object="Object",f.String="String",f.UUID="UUID",f.PersonAttributeTypeUuid="PersonAttributeTypeUuid",f.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid",f);function V(e,t){return n=>{if(!e(n))if("function"==typeof t)return t(n);else return t}}let H=V(e=>Array.isArray(e),"must be an array"),G=V(e=>"boolean"==typeof e,"must be a boolean"),U=V(e=>"number"==typeof e,"must be a number"),q=V(e=>"string"==typeof e,"must be a string"),W=V(e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,"must be an object (not an array or null)"),K=V(e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e),"must be a valid UUID or a 36-character hexadecimal string");var Y=n(467),J=n(90108);let Z=(0,Y.Zd)("config-internal",{providedConfigs:[],schemas:{},moduleLoaded:{}}),X=(0,Y.Zd)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});X.subscribe(e=>{var t;t=e.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))});let Q=(0,Y.Zd)("config-store-of-extension-state",{mountedExtensions:[]});function ee(e){return(0,Y.jf)(`config-module-${e}`,{config:null,loaded:!1,translationOverridesLoaded:!1})}function et(){return(0,Y.jf)("config-extension-slots",{slots:{}})}function en(e){return er(et().getState(),e)}function er(e,t){return e.slots[t]??{loaded:!1,config:{}}}function ea(){return(0,Y.jf)("config-extensions",{configs:{}})}function eo(e,t){if("string"!=typeof e||"string"!=typeof t||"__proto__"===e||"__proto__"===t||"constructor"===e||"constructor"===t||"prototype"===e||"prototype"===t)throw Error("Attempted to call `getExtensionConfig()` with invalid argument");let n=ea(),r=n=>n.configs[e]?.[t];return{getInitialState:()=>r(n.getInitialState()),getState:()=>r(n.getState())??{loaded:!1,config:null},setState(r,a=!1){n.setState(n=>{n.configs[e]||(n.configs[e]={});let o="function"==typeof r?r(n.configs.slotName[t]):r;return a?n.configs[e][t]=Object.assign({},o):n.configs[e][t]=Object.assign({},n.configs[e][t],o),n})},subscribe:e=>n.subscribe((t,n)=>{let a=r(t),o=r(n);(0,J.b)(a,o)||e(a,o)}),destroy(){}}}function ei(e,t,n){return e.configs[t]?.[n]??{loaded:!1,config:null}}function es(e,t,n){return e.configure?.[n]??null}let el=(0,Y.Zd)("config-implementer-tools",{config:{}});function ec(e,t){for(let n of Object.keys(e.schemas)){let r=ee(n);if(e.moduleLoaded[n]){let a=function(e,t,n){let r=t.schemas[e],a=ex(e,e$(t,n));ew(r,a,e);let o=eB(r,a);return eE(r,o,e),delete o.extensionSlots,o}(n,e,t);r.setState({translationOverridesLoaded:!0,loaded:!0,config:a})}else{let a=function(e,t,n){let r=eB(eI,ex(e,e$(t,n)));return eE(eI,r,e),delete r.extensionSlots,r}(n,e,t);r.setState({translationOverridesLoaded:!0,loaded:!1,config:a})}}}function eu(e,t){let n,r,a=Object.fromEntries(Object.entries((function(e){for(let[t,n]of Object.entries(e))for(let[e,r]of Object.entries(n))!function(e,t,n){let r=`${t}.extensionSlots.${n}`,a=`Extension slot config '${r}'`,o=Object.keys(e).filter(e=>!["add","remove","order","configure"].includes(e));o.length&&eM(r,a+`' contains invalid keys '${o.join("', '")}'`),!e.add||Array.isArray(e.add)&&e.add.every(e=>"string"==typeof e)||eM(r,a+".add' is invalid. Must be an array of strings (extension IDs)"),!e.remove||Array.isArray(e.remove)&&e.remove.every(e=>"string"==typeof e)||eM(r,a+".remove' is invalid. Must be an array of strings (extension IDs)"),!e.order||Array.isArray(e.order)&&e.order.every(e=>"string"==typeof e)||eM(r,a+".order' is invalid. Must be an array of strings (extension IDs)"),e.configure&&!eP(e.configure)&&eM(r,a+".configure' is invalid. Must be an object with extension IDs for keys")}(r,t,e)}(r=Object.keys(n=eC(e$(e,t))).reduce((e,t)=>(n[t]?.extensionSlots&&(e[t]=n[t]?.extensionSlots),e),{})),Object.keys(r).reduce((e,t)=>e={...e,...r[t]},{}))).map(([e,t])=>[e,{loaded:!0,config:t}])),o=et(),i=o.getState(),s={slots:{...i.slots,...a}};C(i,s)||o.setState(s)}function ed(e,t){let n=function(e,t){let n=function e(t){return t.hasOwnProperty("_default")?{...t,_value:t._default,_source:"default"}:eP(t)?Object.keys(t).reduce((n,r)=>(n[r]=e(t[r]),n),{}):{}}(T(e.schemas));for(let[r,a]of[...e.providedConfigs.map(e=>[e.config,e.source]),[t.config,"temporary config"]])n=eC([n,function e(t,n){return eP(t)?Object.keys(t).reduce((r,a)=>(r[a]=e(t[a],n),r),{}):{_value:t,_source:n}}(r,a)]);return n}(e,t);el.setState({config:n})}function ep(e,t,n){let r={};for(let a of t.mountedExtensions){let t=function(e,t,n,r,a,o){let i=function(e){let[t]=e.split("#");return t}(r),s=a.schemas[i],l=s?i:t,c=e$(a,o),u=ex(e,c),d=u?.extensionSlots?.[n]?.configure?.[r]??{},p=eC([ex(l,c),d]),f=s??a.schemas[t];ew(f,p,l);let m=eB(f,p);return eE(f,m,l),delete m.extensionSlots,m}(a.slotModuleName,a.extensionModuleName,a.slotName,a.extensionId,e,n);r[a.slotName]={...r[a.slotName],[a.extensionId]:{config:t,loaded:!0}}}ea().setState({configs:r})}function ef(e,t){ek(e,t);let n=B(t,eI);Z.setState(t=>({...t,schemas:{...t.schemas,[e]:n},moduleLoaded:{...t.moduleLoaded,[e]:!0}}))}function em(e){Z.setState(t=>({...t,schemas:{...t.schemas,[e]:eI}}))}function eh(e){Z.setState(t=>({...t,moduleLoaded:{...t.moduleLoaded,[e]:!0}}))}function e_(e){Z.setState(t=>({...t,schemas:{...t.schemas,[e]:eF}}))}function eg(e,t){ek(e,t);let n=B(t,eI);Z.getState().schemas[e]&&console.error(`Config schema for extension ${e} already exists. If there are multiple extensions with this same name, one will probably crash.`),Z.setState(t=>({...t,schemas:{...t.schemas,[e]:n}}))}function eb(e,t="provided"){Z.setState(n=>({...n,providedConfigs:[...n.providedConfigs,{source:t,config:e}]}))}function ey(e){return new Promise(t=>{let n=ee(e);function r(e){e.loaded&&e.config&&(t(z(["Display conditions","Translation overrides"],e.config)),a&&a())}r(n.getState());let a=n.subscribe(r)})}function ev(e,t,n){let r=[new Promise(t=>{let n=ee(e);function r(e){e.translationOverridesLoaded&&e.config&&(t(e.config["Translation overrides"]??{}),a&&a())}r(n.getState());let a=n.subscribe(r)})];return t&&n&&r.push(new Promise(e=>{let r=eo(t,n);function a(t){t.loaded&&t.config&&(e(t.config["Translation overrides"]??{}),o&&o())}a(r.getState());let o=r.subscribe(a)})),Promise.all(r)}function eA(e,t,n){ew(e,t,n);let r=eB(e,t);return eE(e,r,n),r}function e$(e,t){return[...e.providedConfigs.map(e=>e.config),t.config]}function ek(e,t,n=""){let r="Please verify that you are running the latest version and, if so, alert the maintainer.";for(let a of Object.keys(t).filter(e=>!e.startsWith("_"))){let o=n+(n&&".")+a,i=t[a];if("Display conditions"===o&&console.error(`${e} declares a configuration option called "Display conditions"; the "Display conditions" option is a reserved name. ${r}`),"Translation overrides"===o&&console.error(`${e} declares a configuration option called "Translation overrides"; the "Translation overrides" option is a reserved name. ${r}`),!eP(i)){console.error(`${e} has bad config schema definition for key '${o}'. ${r}`);continue}i.hasOwnProperty("_default")||ek(e,i,o);let s=i._elements;if(ez(s)&&ek(e,s,o+"._elements"),i._validators)for(let t of i._validators)"function"!=typeof t&&console.error(`${e} has invalid validator for key '${o}' ${r}.
@@ -19,4 +19,4 @@ If you're the maintainer: the 'elements' key only works with '_type' equal to 'A
19
19
  ${t}`)}return r}let eB=(e,t)=>{let n=T(t);if(!e)return n;for(let t of Object.keys(e)){let r=n[t],a=e[t];if(a&&(a.hasOwnProperty("_type")||a.hasOwnProperty("_default"))){n.hasOwnProperty(t)||(n[t]=a._default);let e=a._elements;if(r&&ez(e)){if(a._type===L.Array&&Array.isArray(r)){let a=r.map(t=>eB(e,t));n[t]=a}else if(a._type===L.Object)for(let t of Object.keys(r))r[t]=eB(e,r[t])}}else if(eP(a)){let e=r??{};eP(e)&&(n[t]=eB(a,e))}}return n};function ez(e){return!!e&&Object.keys(e).filter(e=>!["_default","_validators"].includes(e)).length>0}function eP(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}let eT=new Set;function eM(e,t){let n=`${e}:::${t}`;eT||(eT=new Set),eT.has(n)||(console.error(t),eT.add(n))}function eO(e){e?eT.forEach(t=>{t.startsWith(e)&&eT.delete(t)}):eT.clear()}let eF={"Translation overrides":{_description:"Per-language overrides for frontend translations should be keyed by language code and each language dictionary contains the translation key and the display value",_type:L.Object,_default:{},_validators:[V(e=>Object.keys(e).every(e=>/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(e)),e=>{let t=Object.keys(e).filter(e=>!/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(e));return`The 'Translation overrides' object should have language codes for keys. Language codes must be in the form of a two-to-three letter language code optionally followed by a hyphen and a two-to-three letter country code. The following keys do not conform: ${t.join(", ")}.`})]}},eI={"Display conditions":{privileges:{_description:"The privilege(s) the user must have to use this extension",_type:L.Array,_default:[]}},...eF},eN=(e,t)=>V(n=>e<=n&&n<=t,`must be between ${e} and ${t}`),ej=e=>{let t=e.concat(["openmrsBase","openmrsSpaBase"]);return V(e=>{if(!e||"string"!=typeof e)return!1;let n=/\${(.*?)}/g,r=n.exec(e);for(;r;){if(!t.includes(r[1]))return!1;r=n.exec(e)}return!0},"Should be a URL or path. The allowed template parameters are "+t.map(e=>"${"+e+"}").join(", "))},eR=ej([]),eL=e=>V(t=>e.includes(t),`Must be one of the following: '${e.join("', '")}'.`),eV={inRange:eN,isUrl:eR,isUrlWithTemplateParameters:ej,oneOf:eL}},30924:function(e,t,n){"use strict";n.d(t,{hG:()=>p,dx:()=>C,Bv:()=>l,Pu:()=>y,Vs:()=>g,cD:()=>c,KU:()=>s,BX:()=>S,Ds:()=>z,DK:()=>M,BR:()=>T,xL:()=>P,E$:()=>h,Rb:()=>E,SY:()=>u,NH:()=>B,Cj:()=>w,Qx:()=>b,Zu:()=>i});var r,a,o=n(70937);let i=`${o.Jj}/attachment`;function s(e,t){return(0,o.lo)(`${i}/${e}`,{signal:t.signal})}function l(e,t,n){return(0,o.lo)(`${i}?patient=${e}&includeEncounterless=${t}`,{signal:n.signal})}async function c(e,t){let n=new FormData;return n.append("fileCaption",t.fileDescription),n.append("patient",e),t.file?n.append("file",t.file,t.fileName):(n.append("file",new File([""],t.fileName),t.fileName),n.append("base64Content",t.base64Content)),(0,o.lo)(`${i}`,{method:"POST",body:n})}function u(e,t){return(0,o.lo)(`${i}/${e}`,{method:"DELETE",signal:t.signal})}var d=n(54328);async function p(e,t,n=!0){if(e){let r=null,[a,i]=await Promise.all([(0,o.lo)(`${o.IU}/Patient/${e}`,t).catch(e=>r=e),n?f(e):Promise.resolve(null)]);if(a.ok)return a.data;if(i)return i;if(r)throw r}return null}async function f(e){let t=(await (0,d.pb)("patient-registration")).find(t=>t.fhirPatient.id===e);return t?.fhirPatient??null}var m=n(99549);function h(e){return{uuid:e.uuid,display:e.display}}function g(e=null,t=null){let n=new URLSearchParams;e&&n.set("tag",e),t&&n.set("q",t);let r=n.toString(),a=`${o.Jj}/location${r?"?"+r:""}`;return(0,o.ut)(a).pipe((0,m.map)(e=>e.data.results.map(h))).pipe((0,m.take)(1))}function b(e){return{uuid:e.uuid,display:e.display,name:e.name}}function y(){return(0,o.ut)(`${o.Jj}/visittype`).pipe((0,m.map)(e=>e.data.results.map(b))).pipe((0,m.take)(1))}var v=n(467),A=n(32505),$=n(60482),k=n(20320),x=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return A.C6(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(!this.closed)return this._value;throw new k.P},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}($.B7),C=((r={}).NEWVISIT="startVisit",r.EDITVISIT="editVisit",r.LOADING="loadingVisit",r),w=((a={}).NOTSTARTED="notStarted",a.ONGOING="ongoing",a);let E="custom:(uuid,display,voided,indication,startDatetime,stopDatetime,encounters:(uuid,display,encounterDatetime,form:(uuid,name),location:ref,encounterType:ref,encounterProviders:(uuid,display,provider:(uuid,display))),patient:(uuid,display),visitType:(uuid,name,display),attributes:(uuid,display,attributeType:(name,datatypeClassname,uuid),value),location:(uuid,name,display))",D=function(){try{return JSON.parse(sessionStorage.getItem("openmrs:visitStoreState")||"null")}catch(e){return null}}()||{patientUuid:null,manuallySetVisitUuid:null,mutateVisitCallbacks:{}};function S(){return(0,v.jf)("visit",D)}function B(e,t){S().setState({patientUuid:e,manuallySetVisitUuid:t})}function z(e,t){return(0,o.lo)(`${o.Jj}/visit`,{signal:t.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})}function P(e,t,n){return(0,o.lo)(`${o.Jj}/visit/${e}`,{signal:n.signal,method:"POST",headers:{"Content-type":"application/json"},body:t})}function T(e,t,n){return(0,o.lo)(`${o.Jj}/visit?patient=${e}&v=${n??E}`,{signal:t.signal,method:"GET",headers:{"Content-type":"application/json"}})}S().subscribe(e=>{var t;t=e,sessionStorage.setItem("openmrs:visitStoreState",JSON.stringify(t))});let M=new x(null)},64201:function(e,t,n){"use strict";n.d(t,{J:()=>o,N:()=>a});var r=n(27760);function a(e){let t=i(e);setTimeout(()=>{throw t})}function o(){let e=Error();return t=>{let n=i(t);n.stack+=`
20
20
  Async stacktrace:
21
21
  ${e.stack}`,a(t)}}function i(e){let t;if(e instanceof Error)return e;if(null===e)return Error("'null' was thrown as an error");if("object"==typeof e){try{t=`Object thrown as error: ${JSON.stringify(e)}`}catch(n){t=`Object thrown as error with the following properties: ${Object.keys(e)}`}return Error(t)}if(void 0===e)return Error("'undefined' was thrown as an error");return Error(e.toString())}window.onerror=function(e){return console.error("Unexpected error: ",e),(0,r.Vt)({description:e??"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){console.error("Unhandled rejection: ",e.reason),(0,r.Vt)({description:e.reason??"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},6250:function(e,t,n){"use strict";n.d(t,{dX:()=>u,wE:()=>m,_3:()=>i,uN:()=>f,$F:()=>d,Gz:()=>c,eb:()=>l,Sj:()=>p,mv:()=>s,PQ:()=>r.A});var r=n(60950);let a="ArrowFunctionExpression";var o=n(74339);function i(e,t={}){return p(e,t,h)}async function s(e,t={}){return f(e,t,h)}function l(e,t={}){return p(e,t,g)}function c(e,t={}){return f(e,t,g)}function u(e,t={}){return p(e,t,b)}function d(e,t={}){return f(e,t,b)}function p(e,t={},n){if("string"!=typeof e&&("object"!=typeof e||!e||!("type"in e)))throw`Unknown expression type ${e}. Expressions must either be a string or pre-compiled string.`;null==t&&(t={});let a=A(t,o.z),i=y("string"==typeof e?(0,r.A)(e):e,a);if(n(i))return i;throw{type:"Invalid result",message:"string"==typeof e?`The expression ${e} did not produce a valid result`:"The expression did not produce a valid result"}}async function f(e,t={},n){if("string"!=typeof e&&("object"!=typeof e||!e||!("type"in e)))return Promise.reject(`Unknown expression type ${e}. Expressions must either be a string or pre-compiled string.`);null==t&&(t={});let a=A(t,o.f);return Promise.resolve(y("string"==typeof e?(0,r.A)(e):e,a)).then(t=>{if(n(t))return t;throw{type:"Invalid result",message:"string"==typeof e?`The expression ${e} did not produce a valid result`:"The expression did not produce a valid result"}})}function m(e){return(0,r.A)(e)}function h(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||null==e||e instanceof Date}function g(e){return"boolean"==typeof e}function b(e){return"number"==typeof e}function y(e,t){switch(e.type){case"UnaryExpression":var n,r,a,o,i,s,l,c,u,d,p,f,m=e,h=t;let g=y(m.argument,h);switch(m.operator){case"+":return+g;case"-":return-g;case"~":return~g;case"!":return!g;default:throw`Expression evaluator does not support operator '${m.operator}''`}case"BinaryExpression":var b=e,A=t;let C=y(b.left,A),w=y(b.right,A);switch(b.operator){case"+":return C+w;case"-":return C-w;case"*":return C*w;case"/":return C/w;case"%":return C%w;case"**":return C**w;case"==":return C==w;case"===":return C===w;case"!=":return C!=w;case"!==":return C!==w;case">":return C>w;case">=":return C>=w;case"<":return C<w;case"<=":return C<=w;case"in":return C in w;case"&&":return C&&w;case"||":return C||w;case"??":return C??w;default:throw`Expression evaluator does not support operator '${b.operator}' operator`}case"ConditionalExpression":return n=e,r=t,y(n.test,r)?y(n.consequent,r):y(n.alternate,r);case"CallExpression":var E=e,D=t;let S=E.arguments?.map($(D)),B=y(E.callee,D);if(B){if("function"!=typeof B)throw`${x(E.callee)} is not a function`}else throw`No function named ${x(E.callee)} is defined in this context`;return B(...S);case"ArrowFunctionExpression":let z;return a=e,o=t,z=a.params?.map(e=>{if("Identifier"===e.type)return e.name;throw`Cannot handle parameter of type ${e.type}`})??[],(function(...e){if(e.length<z.length)throw`Required argument(s) ${z.slice(e.length,-1).join(", ")} were not provided`;let t=Object.fromEntries(z.reduce((t,n,r)=>{let a=e[r];return function e(t){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||null===t||t instanceof RegExp)return!0;if("object"==typeof t){for(let n of Object.keys(t))if(!e(t[n]))return!1;return!0}if(Array.isArray(t)){for(let n of t)if(!e(n))break}return!1}(a)&&t.push([n,a]),t},[]));return y(a.body,o.addVariables(t))}).bind(o.thisObj??null);case"MemberExpression":return function(e,t){let n,r=y(e.object,t);if(void 0===r)switch(e.object.type){case"Identifier":{let n=v(e.object,t);throw ReferenceError(`ReferenceError: ${n} is not defined`)}case"MemberExpression":{let n=v(e.property,t);throw TypeError(`TypeError: cannot read properties of undefined (reading '${n}')`)}default:throw`VisitMemberExpression does not support operator '${e.object.type}' type`}let a=r;if("string"==typeof r)a=String.prototype;else if("number"==typeof r)a=Number.prototype;else if("function"==typeof r);else if("object"!=typeof r)throw`VisitMemberExpression does not support member access on type ${typeof r}`;switch(t.thisObj=a,e.property.type){case"Identifier":case"MemberExpression":n=y(e.property,t);break;default:{let a=y(e.property,t);if(void 0===a)throw{type:"Illegal property access",message:"No property was supplied to the property access"};k(a),n=r[a]}}return"function"==typeof n?n.bind(r):n}(e,t);case"ArrayExpression":return i=e,s=t,i.elements?.map($(s));case"SequenceExpression":let P;return l=e,c=t,(P=l.expressions.map($(c)))[P.length-1];case"NewExpression":var T=e,M=t;if(T.callee&&"Identifier"===T.callee.type){let e=T.arguments?.map($(M));switch(T.callee.name){case"Date":return new Date(...e);case"RegExp":return new RegExp(...e);default:throw`Cannot instantiate object of type ${T.callee.name}`}}if(T.callee)throw"new must be called with either Date or RegExp";throw'Could not handle "new" without a specified class';case"Literal":return k((u=e).value),u.value;case"Identifier":var O=e,F=t;k(O.name);let I=F.thisObj;if(I&&("object"==typeof I||"function"==typeof I)&&O.name in I){let e=I[O.name];return k(e),e}if(F.variables&&O.name in F.variables){let e=F.variables[O.name];return k(e),e}return O.name in F.globals?F.globals[O.name]:void 0;case"TemplateLiteral":let N,j;return d=e,p=t,N=d.expressions?.map($(p))??[],(j=d.quasis?.map($(p))??[]).filter(e=>!e.tail).map(e=>e.value).join("")+N.join("")+j.filter(e=>e.tail).map(e=>e.value).join("");case"TemplateElement":return{value:(f=e).cooked,tail:f.tail};default:throw`Expression evaluator does not support expression of type '${e.type}'`}}function v(e,t){switch(e.type){case"Literal":return e.value;case"Identifier":return e.name;case"MemberExpression":return v(e.property,t);default:throw`VisitExpressionName does not support expression of type '${e.type}'`}}function A(e,t){let n={thisObj:void 0,variables:{...e},globals:{...t},addVariables(e){return this.variables={...this.variables,...e},this}};return n.addVariables.bind(n),n}function $(e){return function(t){return null===t?null:y(t,e)}}function k(e){if("__proto__"===e||"prototype"===e||"constructor"===e)throw{type:"Illegal property access",message:`Cannot access the ${e} property of objects`}}function x(e){return e?"MemberExpression"===e.type?e.property?.name:e.name:null}r.A.plugins.register({name:"arrow",init(e){e.addBinaryOp("=>",.1,!0),e.hooks.add("gobble-expression",function(t){if(this.gobbleSpaces(),this.code===e.OPAREN_CODE){let n=this.index;if(this.index++,this.gobbleSpaces(),this.code===e.CPAREN_CODE){this.index++;let e=this.gobbleBinaryOp();if("=>"===e){let n=this.gobbleBinaryExpression();n||this.throwError("Expected expression after "+e),t.node={type:a,params:null,body:n};return}}this.index=n}}),e.hooks.add("after-expression",function(t){!function t(n){n&&(Object.values(n).forEach(e=>{e&&"object"==typeof e&&t(e)}),"=>"===n.operator&&(n.type=a,n.params=n.left?[n.left]:null,n.body=n.right,n.params&&n.params[0].type===e.SEQUENCE_EXP&&(n.params=n.params[0].expressions),delete n.left,delete n.right,delete n.operator))}(t.node)})}}),r.A.plugins.register({name:"new",init(e){e.addUnaryOp("new"),e.hooks.add("after-token",function(t){let n=t.node;if(n&&"new"===n.operator){n.argument&&[e.CALL_EXP,e.MEMBER_EXP].includes(n.argument.type)||this.throwError("Expected new function()"),t.node=n.argument;let r=t.node;for(;r.type===e.MEMBER_EXP||r.type===e.CALL_EXP&&r.callee.type===e.MEMBER_EXP;)r=r.type===e.MEMBER_EXP?r.object:r.callee.object;r.type="NewExpression"}})}}),r.A.plugins.register({name:"numbers",init(e){function t(e){return"x"===e||"X"===e?(this.index+=2,[[48,57],[65,70],[97,102]]):"b"===e||"B"===e?(this.index+=2,[[48,49]]):"o"===e||"O"===e||e>="0"&&e<="7"?(this.index+=e<="7"?1:2,[[48,55]]):null}function n(t){let n=this.index,r="",a=()=>{for(;e.isDecimalDigit(this.code)||95===this.code;)95===this.code?this.index++:r+=this.expr.charAt(this.index++)};a(),this.code===e.PERIOD_CODE&&(r+=this.expr.charAt(this.index++),a());let o=this.char;("e"===o||"E"===o)&&(r+=this.expr.charAt(this.index++),("+"===(o=this.char)||"-"===o)&&(r+=this.expr.charAt(this.index++)),a(),e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+r+this.char+")"));let i=this.code;if(e.isIdentifierStart(i))this.throwError("Variable names cannot start with a number ("+r+this.char+")");else if(i===e.PERIOD_CODE){r.length>1&&this.throwError(`Unexpected period ${JSON.stringify({chCode:i,number:r},null,2)}`),this.index=n;return}t.node={type:e.LITERAL,value:parseFloat(r),raw:this.expr.substring(n,this.index)}}e.hooks.add("gobble-token",function(r){if(48===this.code){var a,o,i;let s=this.index,l=this.expr.charAt(this.index+1),c=t.call(this,l);if(!c)return;let u="";for(;a=this.code,o=c,95===a||o.some(([e,t])=>a>=e&&a<=t);)95===this.code?this.index++:u+=this.expr.charAt(this.index++);if(e.isIdentifierPart(this.code)){if(e.isDecimalDigit(this.code)&&e.isDecimalDigit(l.charCodeAt(0))){this.index=s+1,n.call(this,r);return}this.throwError("unexpected char within number")}r.node={type:e.LITERAL,value:parseInt(u,"x"===(i=l)||"X"===i?16:"b"===i||"B"===i?2:8),raw:this.expr.substring(s,this.index)}}else(e.isDecimalDigit(this.code)||this.code===e.PERIOD_CODE)&&n.call(this,r)})}}),r.A.plugins.register({name:"regex",init(e){e.hooks.add("gobble-token",function(t){if(47===this.code){let n=++this.index,r=!1;for(;this.index<this.expr.length;){if(47===this.code&&!r){let r,a=this.expr.slice(n,this.index),o="";for(;++this.index<this.expr.length;){let e=this.code;if(e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57)o+=this.char;else break}try{r=new RegExp(a,o)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:r,raw:this.expr.slice(n-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?r=!0:r&&this.code===e.CBRACK_CODE&&(r=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}})}}),r.A.plugins.register({name:"ternary",init(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;let n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;let a=this.gobbleExpression();if(a||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:n,consequent:r,alternate:a},n.operator&&e.binary_ops[n.operator]<=.9){let r=n;for(;r.right.operator&&e.binary_ops[r.right.operator]<=.9;)r=r.right;t.node.test=r.right,r.right=t.node,t.node=n}}else this.throwError("Expected :")}})}}),r.A.plugins.register({name:"jsepTemplateLiteral",init(e){function t(e,n=!0){if(96===this.code){let t={type:"TemplateLiteral",quasis:[],expressions:[]},r="",a="",o=!1,i=this.expr.length,s=()=>t.quasis.push({type:"TemplateElement",value:{raw:a,cooked:r},tail:o});for(;this.index<i;){let i=this.expr.charAt(++this.index);if("`"===i)return this.index+=1,o=!0,s(),e.node=t,n&&(e.node=this.gobbleTokenProperty(e.node)),e.node;if("$"===i&&"{"===this.expr.charAt(this.index+1))this.index+=2,s(),a="",r="",t.expressions.push(...this.gobbleExpressions(125)),125!==this.code&&this.throwError("unclosed ${");else if("\\"===i)switch(a+=i,i=this.expr.charAt(++this.index),a+=i,i){case"n":r+="\n";break;case"r":r+="\r";break;case"t":r+=" ";break;case"b":r+="\b";break;case"f":r+="\f";break;case"v":r+="\v";break;default:r+=i}else r+=i,a+=i}this.throwError("Unclosed `")}}e.hooks.add("gobble-token",t),e.hooks.add("after-token",function(n){if((n.node.type===e.IDENTIFIER||n.node.type===e.MEMBER_EXP)&&96===this.code)return n.node={type:"TaggedTemplateExpression",tag:n.node,quasi:t.bind(this)(n,!1)},n.node=this.gobbleTokenProperty(n.node),n.node})}}),r.A.addBinaryOp("in",7),r.A.addBinaryOp("??",1)},74339:function(e,t,n){"use strict";n.d(t,{f:()=>a,z:()=>r});let r={Array,Boolean,Symbol,Infinity,NaN,Math,Number,BigInt,String,RegExp,JSON,isFinite,isNaN,parseFloat,parseInt,decodeURI,encodeURI,encodeURIComponent,Object:{__proto__:void 0,assign:Object.assign.bind(null),fromEntries:Object.fromEntries.bind(null),hasOwn:Object.hasOwn.bind(null),keys:Object.keys.bind(null),is:Object.is.bind(null),values:Object.values.bind(null)}},a={...r,Promise}},11621:function(e,t,n){"use strict";n.d(t,{xg:()=>ea,zx:()=>ep,ES:()=>er,FY:()=>ef,zF:()=>K,wG:()=>ez,Xb:()=>eE,Ef:()=>H,io:()=>eC,Fg:()=>ev,dO:()=>V,VK:()=>ei,Vx:()=>e_,sr:()=>eg,DQ:()=>W,Tj:()=>eo,Ju:()=>ey,pm:()=>ex,cL:()=>em,Gp:()=>eh,K0:()=>es,Yo:()=>el,Q_:()=>eD,No:()=>ec,a9:()=>q});var r,a,o=n(70937),i=n(13070),s=n(6250),l=n(10201),c=n(27760),u=n(9826),d=n(47427),p=n(61098),f=n(37999),m=n(81963);let h=function(e,t,n){(void 0===n||(0,m.A)(e[t],n))&&(void 0!==n||t in e)||(0,f.A)(e,t,n)},g=function(e,t,n){for(var r=-1,a=Object(e),o=n(e),i=o.length;i--;){var s=o[++r];if(!1===t(a[s],s,a))break}return e};var b=n(13137),y=n(84934),v=n(17052),A=n(47514),$=n(17820),k=n(36820),x=n(55259),C=n(62873),w=n(75323),E=n(49885),D=n(12174),S=n(92562),B=n(43148);let z=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var P=n(51158),T=n(22678);let M=function(e,t,n,r,a,o,i){var s=z(e,n),l=z(t,n),c=i.get(l);if(c)return void h(e,n,c);var u=o?o(s,l,n+"",e,t,i):void 0,d=void 0===u;if(d){var p=(0,k.A)(l),f=!p&&(0,w.A)(l),m=!p&&!f&&(0,B.A)(l);(u=l,p||f||m)?(0,k.A)(s)?u=s:(0,C.A)(s)&&(0,x.A)(s)?u=(0,v.A)(s):f?(d=!1,u=(0,b.A)(l,!0)):m?(d=!1,u=(0,y.A)(l,!0)):u=[]:(0,S.A)(l)||(0,$.A)(l)?(u=s,(0,$.A)(s))?u=(0,P.A)(s,(0,T.A)(s)):(!(0,D.A)(s)||(0,E.A)(s))&&(u=(0,A.A)(l)):d=!1}d&&(i.set(l,u),a(u,l,r,o,i),i.delete(l)),h(e,n,u)},O=function e(t,n,r,a,o){t!==n&&g(n,function(i,s){if(o||(o=new p.A),(0,D.A)(i))M(t,n,s,r,e,a,o);else{var l=a?a(z(t,s),i,s+"",t,n,o):void 0;void 0===l&&(l=i),h(t,s,l)}},T.A)};var F=n(68527),I=n(54979),N=n(44168),j=n(27322);let R=function(e,t,n){if(!(0,D.A)(n))return!1;var r=typeof t;return("number"==r?!!((0,x.A)(n)&&(0,j.A)(t,n.length)):"string"==r&&t in n)&&(0,m.A)(n[t],e)};var L=(r=function(e,t,n){O(e,t,n)},a=function(e,t){var n=-1,a=t.length,o=a>1?t[a-1]:void 0,i=a>2?t[2]:void 0;for(o=r.length>3&&"function"==typeof o?(a--,o):void 0,i&&R(t[0],t[1],i)&&(o=a<3?void 0:o,a=1),e=Object(e);++n<a;){var s=t[n];s&&r(e,s,n,o)}return e},(0,N.A)((0,I.A)(a,void 0,F.A),a+""));function V(e=!0,t=!1){return H((0,u.s)(),e,t)}function H(e,t=!0,n=!1){return!!(e?t:n)}var G=n(467);let U=(0,G.Zd)("extensionsInternal",{slots:{},extensions:{}}),q=()=>(0,G.jf)("extensionsInternal",{slots:{},extensions:{}});function W(e){let t=U.getState(),n=e(t);n!==t&&U.setState(n)}let K=()=>(0,G.jf)("extensions",{slots:{}});function Y(e){let t=[];for(let n of Object.values(e.extensions))for(let e of n.instances)t.push({slotModuleName:e.slotModuleName,extensionModuleName:n.moduleName,slotName:e.slotName,extensionId:e.id});(0,d.A)(i.hs.getState().mountedExtensions,t)||i.hs.setState({mountedExtensions:t})}Y(U.getState()),U.subscribe(Y);let J=q(),Z=K(),X=(0,i.YP)(),Q=(0,i.GI)();function ee(e,t,n,r,a){let o={},s=(0,u.s)(),l=Object.entries(r.flags).filter(([,{enabled:e}])=>e).map(([e])=>e);for(let[r,c]of Object.entries(e.slots)){let{config:u}=(0,i.vu)(t,c.name),d=ed(r,e,u,n,l,s,a.session);o[r]={moduleName:c.moduleName,assignedExtensions:d}}(0,d.A)(Z.getState().slots,o)||Z.setState({slots:o})}function et(){ee(J.getState(),X.getState(),Q.getState(),l.jX.getState(),o.eA.getState())}function en(e,t){return{moduleName:t,name:e,attachedIds:[],config:null}}function er(e){let[t]=e.split("#");return t}function ea(e,t){let n=er(t);return e.extensions[n]}function eo(e){return ea(J.getState(),e)}J.subscribe(e=>{ee(e,X.getState(),Q.getState(),l.jX.getState(),o.eA.getState())}),X.subscribe(e=>{ee(J.getState(),e,Q.getState(),l.jX.getState(),o.eA.getState())}),Q.subscribe(e=>{ee(J.getState(),X.getState(),e,l.jX.getState(),o.eA.getState())}),l.jX.subscribe(e=>{ee(J.getState(),X.getState(),Q.getState(),e,o.eA.getState())}),o.eA.subscribe(e=>{ee(J.getState(),X.getState(),Q.getState(),l.jX.getState(),e)}),et(),(0,c.gj)(et);let ei=e=>J.setState(t=>(t.extensions[e.name]={...e,instances:[]},t));function es(e,t){W(n=>{let r=n.slots[e];return r?{...n,slots:{...n.slots,[e]:{...r,attachedIds:[...r.attachedIds,t]}}}:{...n,slots:{...n.slots,[e]:{...en(e),attachedIds:[t]}}}})}function el(e,t){W(n=>{let r=n.slots[e];return r&&r.attachedIds.includes(t)?{...n,slots:{...n.slots,[e]:{...r,attachedIds:r.attachedIds.filter(e=>e!==t)}}}:n})}function ec(e){W(t=>{let n=t.slots[e];return n?{...t,slots:{...t.slots,[e]:{...n,attachedIds:[]}}}:t})}function eu(e,t,n,r){let a=t.indexOf(e);if(-1!==a)return a;{if(void 0!==n)return 1e3+n;let t=r.indexOf(e);return -1!==t?2e3+t:-1}}function ed(e,t,n,r,a,l,c){let u=function(e,t){let n=e.add||[],r=e.remove||[],a=e.order||[],{extensions:o}=J.getState();return[...t,...n].filter(e=>!r.includes(e)).sort((e,n)=>{let r=eu(e,a,o[er(e)]?.order,t),i=eu(n,a,o[er(n)]?.order,t);return -1===i?-1:-1===r?1:r-i})}(n,t.slots[e].attachedIds),d=[];for(let p of u){let{config:u}=(0,i.P0)(r,e,p),f=L(u,(0,i.g$)(n,e,p)),m=er(p),h=t.extensions[m];if(h){let e=f?.["Display conditions"]?.privileges??h.privileges??[];if(e&&("string"==typeof e||Array.isArray(e)&&e.length>0)&&(!c?.user||!(0,o.st)(e,c.user)))continue;let t=f?.["Display conditions"]?.expression??null;if(null!==t)try{if(!(0,s.eb)(t,{session:c}))continue}catch(e){console.error(`Error while evaluating expression ${t}`,e);continue}if(h.featureFlag&&!a.includes(h.featureFlag)||window.offlineEnabled&&!H(l,h.online,h.offline))continue;d.push({id:p,name:m,moduleName:h.moduleName,config:f,featureFlag:h.featureFlag,meta:h.meta,online:f?.["Display conditions"]?.online??h.online??!0,offline:f?.["Display conditions"]?.offline??h.offline??!1})}}return d}function ep(e){let t=J.getState(),{config:n}=(0,i.G9)(e),r=Q.getState(),a=l.jX.getState(),s=o.eA.getState(),c=(0,u.s)();return ed(e,t,n,r,Object.entries(a.flags).filter(([,{enabled:e}])=>e).map(([e])=>e),c,s.session)}let ef=(e,t)=>J.setState(n=>{let r=n.slots[t]?.moduleName;if(r&&r!=e)return console.warn(`An extension slot with the name '${t}' already exists. Refusing to register the same slot name twice (in "registerExtensionSlot"). The existing one is from module ${r}.`),n;if(r&&r==e)return n;if(n.slots[t])return{...n,slots:{...n.slots,[t]:{...n.slots[t],moduleName:e}}};let a=en(t,e);return{...n,slots:{...n.slots,[t]:a}}}),em=()=>Z.setState(()=>({slots:{},extensions:{}})),eh=(0,G.Zd)("left-nav",{slotName:null,basePath:window.spaBase,mode:"normal"});function e_({name:e,basePath:t,mode:n,componentContext:r}){eh.setState({slotName:e,basePath:t,mode:n??"normal",componentContext:r})}function eg(e){eh.getState().slotName===e&&eh.setState(eh.getInitialState(),!0)}let eb=(0,G.Zd)("modalRegistry",{modals:{}});function ey(e){eb.setState(t=>(t.modals[e.name]=e,t))}function ev(e){let t=eb.getState().modals[e];if(!t){let n=eo(e);n&&(t={name:e,load:n.load,moduleName:n.moduleName},console.warn(`Modal ${e} was registered as an extension. This is deprecated and will be removed in the future. Please register it in the "modals" section of routes.json instead of the "extensions" section.`),ey(t))}return t}var eA=n(61836);let e$=(0,G.Zd)("workspaceRegistrations",{workspaces:{}}),ek=(0,G.Zd)("workspaceGroups",{workspaceGroups:{}});function ex(e){e$.setState(t=>({workspaces:{...t.workspaces,[e.name]:{...e,load:e.load,preferredWindowSize:e.preferredWindowSize??"normal",type:e.type??"form",canHide:e.canHide??!1,canMaximize:e.canMaximize??!1,width:e.width??"narrow",groups:e.groups??[]}}}))}function eC(e){ek.setState(t=>{let n=t.workspaceGroups[e.name];return n?{workspaceGroups:{...t.workspaceGroups,[e.name]:{...n,members:Array.from(new Set([...n.members,...e.members]))}}}:{workspaceGroups:{...t.workspaceGroups,[e.name]:{name:e.name,members:e.members}}}})}let ew=new Set;function eE(e){let t=e$.getState().workspaces;if(t[e])return t[e];{let t=eo(e);if(t){var n;let r;return ew.has(e)||(console.warn(`The workspace '${e}' is registered as an extension. This is deprecated. Please register it in the "workspaces" section of the routes.json file.`),ew.add(e)),{name:t.name,title:(n=t,"string"==typeof(r=n?.meta?.title)?r:r&&"object"==typeof r?(0,eA.t)(n.moduleName,r.key,r.default):n.name),moduleName:t.moduleName,preferredWindowSize:t.meta?.screenSize??"normal",load:t.load,type:t.meta?.type??"form",canHide:t.meta?.canHide??!1,canMaximize:t.meta?.canMaximize??!1,width:t.meta?.width??"narrow",groups:t.meta?.groups??[]}}throw Error(`No workspace named '${e}' has been registered.`)}}function eD(e){let t=ek.getState().workspaceGroups;if(t[e])return t[e];throw Error(`No workspace group named '${e}' has been registered.`)}var eS=n(22956);let eB=0;async function ez(e,t,n,r,a=e=>e,o={}){let i=er(r),s=eo(r),l=null;if(e){if(!s)throw Error(`Couldn't find extension '${i}' to attach to '${t}'`);let{meta:c,moduleName:u,online:d,offline:p,load:f}=s;if(V(d,p)){W(a=>({...a,extensions:{...a.extensions,[i]:{...a.extensions[i],instances:[...a.extensions[i].instances,{domElement:e,id:r,slotName:t,slotModuleName:n}]}}}));let s=await f(),d=eB++;l=(0,eS.xL)(a({...s,name:`${t}/${i}-${d}`}),{...o,_meta:c,_extensionContext:{extensionId:r,extensionSlotName:t,extensionSlotModuleName:n,extensionModuleName:u},domElement:e})}}else console.warn(`Tried to render ${r} into ${t} but no DOM element was available.`);return l}},27760:function(e,t,n){"use strict";n.d(t,{$3:()=>g,FI:()=>m,LQ:()=>h,Vt:()=>b,Yt:()=>a,bJ:()=>y,bK:()=>v,dX:()=>A,ff:()=>c,gj:()=>o,ls:()=>$,pc:()=>l,sT:()=>i});let r="openmrs:connectivity-changed";function a(e){window.dispatchEvent(new CustomEvent(r,{detail:{online:e}}))}function o(e){if(!window.offlineEnabled)return()=>{};let t=t=>e(t.detail);return window.addEventListener(r,t),()=>window.removeEventListener(r,t)}function i(e){return e({online:!window.offlineEnabled||navigator.onLine}),o(e)}let s="openmrs:precache-static-dependencies";function l(e={}){window.dispatchEvent(new CustomEvent(s,{detail:e}))}function c(e){let t=t=>e(t.detail);return window.addEventListener(s,t),()=>window.removeEventListener(s,t)}let u="openmrs:notification-shown",d="openmrs:actionable-notification-shown",p="openmrs:toast-shown",f="openmrs:snack-bar-shown";function m(e){window.dispatchEvent(new CustomEvent(u,{detail:e}))}function h(e){window.dispatchEvent(new CustomEvent(d,{detail:e}))}function g(e){window.dispatchEvent(new CustomEvent(f,{detail:e}))}function b(e){window.dispatchEvent(new CustomEvent(p,{detail:e}))}function y(e){let t=t=>e(t.detail);return window.addEventListener(u,t),()=>window.removeEventListener(u,t)}function v(e){let t=t=>e(t.detail);return window.addEventListener(d,t),()=>window.removeEventListener(d,t)}function A(e){let t=t=>e(t.detail);return window.addEventListener(p,t),()=>window.removeEventListener(p,t)}function $(e){let t=t=>e(t.detail);return window.addEventListener(f,t),()=>window.removeEventListener(f,t)}},17744:function(e,t,n){"use strict";function r(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function o(e,t,n){if(e instanceof RegExp){if(!t)return e;var i=e.source.match(/\((?!\?)/g);if(i)for(var s=0;s<i.length;s++)t.push({name:s,prefix:"",suffix:"",modifier:"",pattern:""});return e}return Array.isArray(e)?RegExp("(?:"+e.map(function(e){return o(e,t,n).source}).join("|")+")",a(n)):function(e,t,n){void 0===n&&(n={});for(var o=n.strict,i=void 0!==o&&o,s=n.start,l=n.end,c=n.encode,u=void 0===c?function(e){return e}:c,d="["+r(n.endsWith||"")+"]|$",p="["+r(n.delimiter||"/#?")+"]",f=void 0===s||s?"^":"",m=0;m<e.length;m++){var h=e[m];if("string"==typeof h)f+=r(u(h));else{var g=r(u(h.prefix)),b=r(u(h.suffix));if(h.pattern)if(t&&t.push(h),g||b)if("+"===h.modifier||"*"===h.modifier){var y="*"===h.modifier?"?":"";f+="(?:"+g+"((?:"+h.pattern+")(?:"+b+g+"(?:"+h.pattern+"))*)"+b+")"+y}else f+="(?:"+g+"("+h.pattern+")"+b+")"+h.modifier;else f+="("+h.pattern+")"+h.modifier;else f+="(?:"+g+b+")"+h.modifier}}if(void 0===l||l)i||(f+=p+"?"),f+=n.endsWith?"(?="+d+")":"$";else{var v=e[e.length-1],A="string"==typeof v?p.indexOf(v[v.length-1])>-1:void 0===v;i||(f+="(?:"+p+"(?="+d+"))?"),A||(f+="(?="+p+"|"+d+")")}return new RegExp(f,a(n))}(function(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"===r||"+"===r||"?"===r){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if("\\"===r){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if("{"===r){t.push({type:"OPEN",index:n,value:e[n++]});continue}if("}"===r){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(":"===r){for(var a="",o=n+1;o<e.length;){var i=e.charCodeAt(o);if(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||95===i){a+=e[o++];continue}break}if(!a)throw TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:a}),n=o;continue}if("("===r){var s=1,l="",o=n+1;if("?"===e[o])throw TypeError('Pattern cannot start with "?" at '+o);for(;o<e.length;){if("\\"===e[o]){l+=e[o++]+e[o++];continue}if(")"===e[o]){if(0==--s){o++;break}}else if("("===e[o]&&(s++,"?"!==e[o+1]))throw TypeError("Capturing groups are not allowed at "+o);l+=e[o++]}if(s)throw TypeError("Unbalanced pattern at "+n);if(!l)throw TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:l}),n=o;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),a=t.prefixes,o=void 0===a?"./":a,i="[^"+r(t.delimiter||"/#?")+"]+?",s=[],l=0,c=0,u="",d=function(e){if(c<n.length&&n[c].type===e)return n[c++].value},p=function(e){var t=d(e);if(void 0!==t)return t;var r=n[c];throw TypeError("Unexpected "+r.type+" at "+r.index+", expected "+e)},f=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t};c<n.length;){var m=d("CHAR"),h=d("NAME"),g=d("PATTERN");if(h||g){var b=m||"";-1===o.indexOf(b)&&(u+=b,b=""),u&&(s.push(u),u=""),s.push({name:h||l++,prefix:b,suffix:"",pattern:g||i,modifier:d("MODIFIER")||""});continue}var y=m||d("ESCAPED_CHAR");if(y){u+=y;continue}if(u&&(s.push(u),u=""),d("OPEN")){var b=f(),v=d("NAME")||"",A=d("PATTERN")||"",$=f();p("CLOSE"),s.push({name:v||(A?l++:""),pattern:v&&!A?i:A,prefix:b,suffix:$,modifier:d("MODIFIER")||""});continue}p("END")}return s}(e,n),t,n)}n.d(t,{tA:()=>$,JK:()=>A,g4:()=>k,vf:()=>s,MY:()=>l,Wh:()=>v,qh:()=>p,lz:()=>c,D_:()=>d,JG:()=>m,oo:()=>g,zl:()=>h});let i=(0,n(467).Zd)("breadcrumbs",[]);function s(e){return l([e])}function l(e){let t=[...c(),...e.map(e=>({matcher:e.matcher instanceof RegExp?e.matcher:"string"==typeof e.matcher?o(e.matcher):o(e.path),settings:e}))];i.setState(t,!0)}function c(){return i.getState()}function u(e,t){if(t)return function(e,t){let[n]=e.filter(e=>e.matcher.test(t));return n}(e,t)||function(e,t){let n=t.split("/");for(;n.length>1;){n.pop();let t=u(e,n.join("/"));if(t)return t}}(e,t)}function d(e,t){if(e.length>0){let n=u(e,t);if(n){let t=[n],r=u(e,n.settings.parent);for(;void 0!==r;)t.push(r),r=u(e,r.settings.parent);return t.reverse()}}return[]}function p(e){return d(c(),e)}var f=n(22956);function m(e,t){let n=window.getOpenmrsSpaBase().replace(/\/$/,"");return h(e,{openmrsBase:window.openmrsBase,openmrsSpaBase:n,...t}).replace(/^\/\//,"/")}function h(e,t){return Object.keys(t).reduce((e,n)=>e.split("${"+n+"}").join(t[n]),e)}function g({to:e,templateParams:t}){let n=window.getOpenmrsSpaBase().replace(/\/$/,""),r=m(e,t).replace(window.location.origin,"");r.startsWith(n)?(0,f.EH)(r):window.location.assign(r)}let b="openmrs:history";function y(e){let t=JSON.parse(sessionStorage.getItem(b)??"[]")||[];t.push(e),t.length>50&&(t=t.slice(-50)),sessionStorage.setItem(b,JSON.stringify(t))}function v(){0===JSON.parse(sessionStorage.getItem(b)??"[]").length&&document.referrer&&y(document.referrer),window.addEventListener("single-spa:routing-event",e=>{let t=A();e.detail.originalEvent?.singleSpaTrigger=="replaceState"?(t[t.length-1]=window.location.href,sessionStorage.setItem(b,JSON.stringify(t))):!e.detail.originalEvent?.singleSpa&&t.includes(window.location.href)?$({toUrl:window.location.href}):t[t.length-1]!==window.location.href&&y(window.location.href)})}function A(){return JSON.parse(sessionStorage.getItem(b)??"[]")}function $({toUrl:e}){let t=A(),n=t.lastIndexOf(e);if(-1!=n){let e=t.slice(0,n+1);g({to:t[n]}),sessionStorage.setItem(b,JSON.stringify(e))}else throw Error(`URL ${e} not found in history; cannot go back to it.`)}function k(){sessionStorage.removeItem(b)}},54328:function(e,t,n){"use strict";let r,a,o;n.d(t,{nr:()=>P,xN:()=>rs,u1:()=>rD,KG:()=>rP,FO:()=>rl,FE:()=>rA,LM:()=>n6,sA:()=>r_,Rs:()=>y,ff:()=>rx,wn:()=>rw,sK:()=>rT,lY:()=>rc,ms:()=>k,Zr:()=>rt,WK:()=>rz,WA:()=>r$,UH:()=>v,cy:()=>ru,Gp:()=>ri,jU:()=>rh,Og:()=>z,iD:()=>rv,C$:()=>ro,qb:()=>ry,Iq:()=>re,NU:()=>rC,sZ:()=>b,yD:()=>rk,Io:()=>rn,wJ:()=>B,JC:()=>$,e:()=>n2,xc:()=>rr,pb:()=>ra,bO:()=>rg,AO:()=>n7,Td:()=>rE,Gj:()=>A});try{self["workbox:window:6.5.4"]&&_()}catch(e){}function i(e,t){return new Promise(function(n){var r=new MessageChannel;r.port1.onmessage=function(e){n(e.data)},e.postMessage(t,[r.port2])})}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}try{self["workbox:core:6.5.4"]&&_()}catch(e){}var c=function(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})};function u(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var d=function(e,t){this.type=e,Object.assign(this,t)};function p(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function f(){}var m={type:"SKIP_WAITING"};function h(e,t){if(!t)return e&&e.then?e.then(f):Promise.resolve()}var g=function(e){function t(t,n){var r,a;return void 0===n&&(n={}),(r=e.call(this)||this).nn={},r.tn=0,r.rn=new c,r.en=new c,r.on=new c,r.un=0,r.an=new Set,r.cn=function(){var e=r.fn,t=e.installing;r.tn>0||!u(t.scriptURL,r.sn.toString())||performance.now()>r.un+6e4?(r.vn=t,e.removeEventListener("updatefound",r.cn)):(r.hn=t,r.an.add(t),r.rn.resolve(t)),++r.tn,t.addEventListener("statechange",r.ln)},r.ln=function(e){var t=r.fn,n=e.target,a=n.state,o=n===r.vn,i={sw:n,isExternal:o,originalEvent:e};!o&&r.mn&&(i.isUpdate=!0),r.dispatchEvent(new d(a,i)),"installed"===a?r.wn=self.setTimeout(function(){"installed"===a&&t.waiting===n&&r.dispatchEvent(new d("waiting",i))},200):"activating"===a&&(clearTimeout(r.wn),o||r.en.resolve(n))},r.dn=function(e){var t=r.hn,n=t!==navigator.serviceWorker.controller;r.dispatchEvent(new d("controlling",{isExternal:n,originalEvent:e,sw:t,isUpdate:r.mn})),n||r.on.resolve(t)},a=function(e){var t=e.data,n=e.ports,a=e.source;return p(r.getSW(),function(){r.an.has(a)&&r.dispatchEvent(new d("message",{data:t,originalEvent:e,ports:n,sw:a}))})},r.gn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(a.apply(this,e))}catch(e){return Promise.reject(e)}},r.sn=t,r.nn=n,navigator.serviceWorker.addEventListener("message",r.gn),r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n,r,a=t.prototype;return a.register=function(e){var t=(void 0===e?{}:e).immediate,n=void 0!==t&&t;try{var r,a,o,i=this;return r=function(){if(!n&&"complete"!==document.readyState)return h(new Promise(function(e){return window.addEventListener("load",e)}))},a=function(){return i.mn=!!navigator.serviceWorker.controller,i.yn=i.pn(),p(i.bn(),function(e){i.fn=e,i.yn&&(i.hn=i.yn,i.en.resolve(i.yn),i.on.resolve(i.yn),i.yn.addEventListener("statechange",i.ln,{once:!0}));var t=i.fn.waiting;return t&&u(t.scriptURL,i.sn.toString())&&(i.hn=t,Promise.resolve().then(function(){i.dispatchEvent(new d("waiting",{sw:t,wasWaitingBeforeRegister:!0}))}).then(function(){})),i.hn&&(i.rn.resolve(i.hn),i.an.add(i.hn)),i.fn.addEventListener("updatefound",i.cn),navigator.serviceWorker.addEventListener("controllerchange",i.dn),i.fn})},(o=r())&&o.then?o.then(a):a(o)}catch(e){return Promise.reject(e)}},a.update=function(){try{return this.fn?h(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},a.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},a.messageSW=function(e){try{return p(this.getSW(),function(t){return i(t,e)})}catch(e){return Promise.reject(e)}},a.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&i(this.fn.waiting,m)},a.pn=function(){var e=navigator.serviceWorker.controller;return e&&u(e.scriptURL,this.sn.toString())?e:void 0},a.bn=function(){try{var e=this;return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}(function(){return p(navigator.serviceWorker.register(e.sn,e.nn),function(t){return e.un=performance.now(),t})},function(e){throw e})}catch(e){return Promise.reject(e)}},n=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}],s(t.prototype,n),r&&s(t,r),t}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.Sn(e).add(t)},t.removeEventListener=function(e,t){this.Sn(e).delete(t)},t.dispatchEvent=function(e){e.target=this;for(var t,n=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,void 0):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(this.Sn(e.type));!(t=n()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}());function b(e,t){if(void 0!==o)return console.warn(`The application's Service Worker has already been registered. The new service worker at ${e} will not be registered.`),o;if(!("serviceWorker"in navigator))throw Error("Registering the Service Worker is not possible due to missing browser capabilities.");let n=new g(e,t);return o=n.register().then(()=>n.controlling.then(()=>n))}function y(){return o??Promise.resolve(void 0)}let v="x-omrs-offline-response-body",A="x-omrs-offline-response-status",$="x-omrs-offline-caching-strategy";async function k(e){let t=await y();return t?await t.messageSW(e):{success:!1,result:void 0,error:"No service worker has been registered. This is typically the case when the application has been built without offline-related features."}}async function x(){let e=window.sessionStorage;try{e.setItem("someKeyHere","test"),e.removeItem("someKeyHere")}catch(t){if(t.code===DOMException.QUOTA_EXCEEDED_ERR&&0===e.length)return!0}return!1}async function C(){return!window.indexedDB}async function w(){return new Promise(e=>{let t=indexedDB.open("test");t.onerror=()=>e(!0),t.onsuccess=()=>e(!1)})}async function E(){return await w()||await C()||await x()}let D="openmrs3:offline-mode",S="unavailable";function B(){return{current:S,notAvailable:"unavailable"===S,active:"on"===S}}function z(e){"unavailable"!==S&&"unavailable"!==e&&(localStorage.setItem(D,"on"===e?"active":"disabled"),S=e)}async function P(){await E()||(S="active"===localStorage.getItem(D)?"on":"off"),navigator.onLine}let T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,M=Object.keys,O=Array.isArray;function F(e,t){return"object"!=typeof t||M(t).forEach(function(n){e[n]=t[n]}),e}"undefined"==typeof Promise||T.Promise||(T.Promise=Promise);let I=Object.getPrototypeOf,N={}.hasOwnProperty;function j(e,t){return N.call(e,t)}function R(e,t){"function"==typeof t&&(t=t(I(e))),("undefined"==typeof Reflect?M:Reflect.ownKeys)(t).forEach(n=>{V(e,n,t[n])})}let L=Object.defineProperty;function V(e,t,n,r){L(e,t,F(n&&j(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function H(e){return{from:function(t){return e.prototype=Object.create(t.prototype),V(e.prototype,"constructor",e),{extend:R.bind(null,e.prototype)}}}}let G=Object.getOwnPropertyDescriptor;function U(e,t){let n;return G(e,t)||(n=I(e))&&U(n,t)}let q=[].slice;function W(e,t,n){return q.call(e,t,n)}function K(e,t){return t(e)}function Y(e){if(!e)throw Error("Assertion Failed")}function J(e){T.setImmediate?setImmediate(e):setTimeout(e,0)}function Z(e,t){return e.reduce((e,n,r)=>{var a=t(n,r);return a&&(e[a[0]]=a[1]),e},{})}function X(e,t){if("string"==typeof t&&j(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,a=t.length;r<a;++r){var o=X(e,t[r]);n.push(o)}return n}var i=t.indexOf(".");if(-1!==i){var s=e[t.substr(0,i)];return null==s?void 0:X(s,t.substr(i+1))}}function Q(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){Y("string"!=typeof n&&"length"in n);for(var r=0,a=t.length;r<a;++r)Q(e,t[r],n[r])}else{var o=t.indexOf(".");if(-1!==o){var i=t.substr(0,o),s=t.substr(o+1);if(""===s)void 0===n?O(e)&&!isNaN(parseInt(i))?e.splice(i,1):delete e[i]:e[i]=n;else{var l=e[i];l&&j(e,i)||(l=e[i]={}),Q(l,s,n)}}else void 0===n?O(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function ee(e){var t={};for(var n in e)j(e,n)&&(t[n]=e[n]);return t}let et=[].concat;function en(e){return et.apply([],e)}let er="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(en([8,16,32,64].map(e=>["Int","Uint","Float"].map(t=>t+e+"Array")))).filter(e=>T[e]),ea=er.map(e=>T[e]);Z(er,e=>[e,!0]);let eo=null;function ei(e){eo="undefined"!=typeof WeakMap&&new WeakMap;let t=function e(t){if(!t||"object"!=typeof t)return t;let n=eo&&eo.get(t);if(n)return n;if(O(t)){n=[],eo&&eo.set(t,n);for(var r=0,a=t.length;r<a;++r)n.push(e(t[r]))}else if(ea.indexOf(t.constructor)>=0)n=t;else{let r=I(t);for(var o in n=r===Object.prototype?{}:Object.create(r),eo&&eo.set(t,n),t)j(t,o)&&(n[o]=e(t[o]))}return n}(e);return eo=null,t}let{toString:es}={};function el(e){return es.call(e).slice(8,-1)}let ec="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",eu="symbol"==typeof ec?function(e){var t;return null!=e&&(t=e[ec])&&t.apply(e)}:function(){return null},ed={};function ep(e){var t,n,r,a;if(1==arguments.length){if(O(e))return e.slice();if(this===ed&&"string"==typeof e)return[e];if(a=eu(e)){for(n=[];!(r=a.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=Array(t);t--;)n[t]=arguments[t];return n}let ef="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var em="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href),eh=()=>!0;let e_=!Error("").stack;function eg(){if(e_)try{throw eg.arguments,Error()}catch(e){return e}return Error()}function eb(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(eh).map(e=>"\n"+e).join("")):""}var ey=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],ev=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(ey),eA={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function e$(e,t){this._e=eg(),this.name=e,this.message=t}function ek(e,t){return e+". Errors: "+Object.keys(t).map(e=>t[e].toString()).filter((e,t,n)=>n.indexOf(e)===t).join("\n")}function ex(e,t,n,r){this._e=eg(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=ek(e,t)}function eC(e,t){this._e=eg(),this.name="BulkError",this.failures=Object.keys(t).map(e=>t[e]),this.failuresByPos=t,this.message=ek(e,t)}H(e$).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+eb(this._e,2))}},toString:function(){return this.name+": "+this.message}}),H(ex).from(e$),H(eC).from(e$);var ew=ev.reduce((e,t)=>(e[t]=t+"Error",e),{}),eE=ev.reduce((e,t)=>{var n=t+"Error";function r(e,r){this._e=eg(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=eA[t]||n,this.inner=null)}return H(r).from(e$),e[t]=r,e},{});eE.Syntax=SyntaxError,eE.Type=TypeError,eE.Range=RangeError;var eD=ey.reduce((e,t)=>(e[t+"Error"]=eE[t],e),{}),eS=ev.reduce((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=eE[t]),e),{});function eB(){}function ez(e){return e}function eP(e,t){return null==e||e===ez?t:function(n){return t(e(n))}}function eT(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function eM(e,t){return e===eB?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,a=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?eT(r,this.onsuccess):r),a&&(this.onerror=this.onerror?eT(a,this.onerror):a),void 0!==o?o:n}}function eO(e,t){return e===eB?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?eT(n,this.onsuccess):n),r&&(this.onerror=this.onerror?eT(r,this.onerror):r)}}function eF(e,t){return e===eB?t:function(n){var r=e.apply(this,arguments);F(n,r);var a=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return a&&(this.onsuccess=this.onsuccess?eT(a,this.onsuccess):a),o&&(this.onerror=this.onerror?eT(o,this.onerror):o),void 0===r?void 0===i?void 0:i:F(r,i)}}function eI(e,t){return e===eB?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function eN(e,t){return e===eB?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,a=arguments.length,o=Array(a);a--;)o[a]=arguments[a];return n.then(function(){return t.apply(r,o)})}return t.apply(this,arguments)}}eS.ModifyError=ex,eS.DexieError=e$,eS.BulkError=eC;var ej={};let[eR,eL,eV]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,I(e),e];let t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,I(t),e]})(),eH=eL&&eL.then,eG=eR&&eR.constructor,eU=!!eV;var eq=!1,eW=eV?()=>{eV.then(ta)}:T.setImmediate?setImmediate.bind(null,ta):T.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{ta(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(ta,0)},eK=function(e,t){e3.push([e,t]),eJ&&(eW(),eJ=!1)},eY=!0,eJ=!0,eZ=[],eX=[],eQ=null,e0=ez,e1={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:tD,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{tD(e[0],e[1])}catch(e){}})}},e2=e1,e3=[],e4=0,e5=[];function e6(e){if("object"!=typeof this)throw TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=eB,this._lib=!1;var t=this._PSD=e2;if(em&&(this._stackHolder=eg(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==ej)throw TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&e9(this,this._value))}this._state=null,this._value=null,++t.ref,function e(t,n){try{n(n=>{if(null===t._state){if(n===t)throw TypeError("A promise cannot be resolved with itself.");var r=t._lib&&to();n&&"function"==typeof n.then?e(t,(e,t)=>{n instanceof e6?n._then(e,t):n.then(e,t)}):(t._state=!0,t._value=n,te(t)),r&&ti()}},e9.bind(null,t))}catch(e){e9(t,e)}}(this,e)}let e7={get:function(){var e=e2,t=tm;function n(n,r){var a=!e.global&&(e!==e2||t!==tm);let o=a&&!tb();var i=new e6((t,i)=>{tt(this,new e8(tC(n,e,a,o),tC(r,e,a,o),t,i,e))});return em&&tr(i,this),i}return n.prototype=ej,n},set:function(e){V(this,"then",e&&e.prototype===ej?e7:{get:function(){return e},set:e7.set})}};function e8(e,t,n,r,a){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=a}function e9(e,t){if(eX.push(t),null===e._state){var n=e._lib&&to();t=e0(t),e._state=!1,e._value=t,em&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,void 0)}catch(e){}}(()=>{var n=U(t,"stack");t._promise=e,V(t,"stack",{get:()=>eq?n&&(n.get?n.get.apply(t):n.value):e.stack})}),eZ.some(t=>t._value===e._value)||eZ.push(e),te(e),n&&ti()}}function te(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)tt(e,t[n]);var a=e._PSD;--a.ref||a.finalize(),0===e4&&(++e4,eK(()=>{0==--e4&&ts()},[]))}function tt(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++e4,eK(tn,[n,e,t])}else e._listeners.push(t)}function tn(e,t,n){try{eQ=t;var r,a=t._value;t._state?r=e(a):(eX.length&&(eX=[]),r=e(a),-1===eX.indexOf(a)&&function(e){for(var t=eZ.length;t;)if(eZ[--t]._value===e._value)return void eZ.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{eQ=null,0==--e4&&ts(),--n.psd.ref||n.psd.finalize()}}function tr(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function ta(){to()&&ti()}function to(){var e=eY;return eY=!1,eJ=!1,e}function ti(){var e,t,n;do for(;e3.length>0;)for(e=e3,e3=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(e3.length>0);eY=!0,eJ=!0}function ts(){var e=eZ;eZ=[],e.forEach(e=>{e._PSD.onunhandled.call(null,e._value,e)});for(var t=e5.slice(0),n=t.length;n;)t[--n]()}function tl(e){return new e6(ej,!1,e)}function tc(e,t){var n=e2;return function(){var r=to(),a=e2;try{return t$(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{t$(a,!1),r&&ti()}}}R(e6.prototype,{then:e7,_then:function(e,t){tt(this,new e8(null,null,e,t,e2))},catch:function(e){if(1==arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,e=>e instanceof t?n(e):tl(e)):this.then(null,e=>e&&e.name===t?n(e):tl(e))},finally:function(e){return this.then(t=>(e(),t),t=>(e(),tl(t)))},stack:{get:function(){if(this._stack)return this._stack;try{eq=!0;var e=(function e(t,n,r){if(n.length===r)return n;var a="";if(!1===t._state){var o,i,s=t._value;null!=s?(o=s.name||"Error",i=s.message||s,a=eb(s,0)):(o=s,i=""),n.push(o+(i?": "+i:"")+a)}return em&&((a=eb(t._stackHolder,2))&&-1===n.indexOf(a)&&n.push(a),t._prev&&e(t._prev,n,r)),n})(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{eq=!1}}},timeout:function(e,t){return e<1/0?new e6((n,r)=>{var a=setTimeout(()=>r(new eE.Timeout(t)),e);this.then(n,r).finally(clearTimeout.bind(null,a))}):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&V(e6.prototype,Symbol.toStringTag,"Dexie.Promise"),e1.env=tk(),R(e6,{all:function(){var e=ep.apply(null,arguments).map(ty);return new e6(function(t,n){0===e.length&&t([]);var r=e.length;e.forEach((a,o)=>e6.resolve(a).then(n=>{e[o]=n,--r||t(e)},n))})},resolve:e=>{if(e instanceof e6)return e;if(e&&"function"==typeof e.then)return new e6((t,n)=>{e.then(t,n)});var t=new e6(ej,!0,e);return tr(t,eQ),t},reject:tl,race:function(){var e=ep.apply(null,arguments).map(ty);return new e6((t,n)=>{e.map(e=>e6.resolve(e).then(t,n))})},PSD:{get:()=>e2,set:e=>e2=e},totalEchoes:{get:()=>tm},newPSD:t_,usePSD:tx,scheduler:{get:()=>eK,set:e=>{eK=e}},rejectionMapper:{get:()=>e0,set:e=>{e0=e}},follow:(e,t)=>new e6((n,r)=>t_((t,n)=>{var r=e2;r.unhandleds=[],r.onunhandled=n,r.finalize=eT(function(){var e;e=()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])},e5.push(function t(){e(),e5.splice(e5.indexOf(t),1)}),++e4,eK(()=>{0==--e4&&ts()},[])},r.finalize),e()},t,n,r))}),eG&&(eG.allSettled&&V(e6,"allSettled",function(){let e=ep.apply(null,arguments).map(ty);return new e6(t=>{0===e.length&&t([]);let n=e.length,r=Array(n);e.forEach((e,a)=>e6.resolve(e).then(e=>r[a]={status:"fulfilled",value:e},e=>r[a]={status:"rejected",reason:e}).then(()=>--n||t(r)))})}),eG.any&&"undefined"!=typeof AggregateError&&V(e6,"any",function(){let e=ep.apply(null,arguments).map(ty);return new e6((t,n)=>{0===e.length&&n(AggregateError([]));let r=e.length,a=Array(r);e.forEach((e,o)=>e6.resolve(e).then(e=>t(e),e=>{a[o]=e,--r||n(AggregateError(a))}))})}));let tu={awaits:0,echoes:0,id:0};var td=0,tp=[],tf=0,tm=0,th=0;function t_(e,t,n,r){var a=e2,o=Object.create(a);o.parent=a,o.ref=0,o.global=!1,o.id=++th;var i=e1.env;o.env=eU?{Promise:e6,PromiseProp:{value:e6,configurable:!0,writable:!0},all:e6.all,race:e6.race,allSettled:e6.allSettled,any:e6.any,resolve:e6.resolve,reject:e6.reject,nthen:tw(i.nthen,o),gthen:tw(i.gthen,o)}:{},t&&F(o,t),++a.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=tx(o,e,n,r);return 0===o.ref&&o.finalize(),s}function tg(){return tu.id||(tu.id=++td),++tu.awaits,tu.echoes+=100,tu.id}function tb(){return!!tu.awaits&&(0==--tu.awaits&&(tu.id=0),tu.echoes=100*tu.awaits,!0)}function ty(e){return tu.echoes&&e&&e.constructor===eG?(tg(),e.then(e=>(tb(),e),e=>(tb(),tS(e)))):e}function tv(e){++tm,tu.echoes&&0!=--tu.echoes||(tu.echoes=tu.id=0),tp.push(e2),t$(e,!0)}function tA(){var e=tp[tp.length-1];tp.pop(),t$(e,!1)}function t$(e,t){var n,r=e2;if((t?!tu.echoes||tf++&&e===e2:!tf||--tf&&e===e2)||(n=t?tv.bind(null,e):tA,eH.call(eR,n)),e!==e2&&(e2=e,r===e1&&(e1.env=tk()),eU)){var a=e1.env.Promise,o=e.env;eL.then=o.nthen,a.prototype.then=o.gthen,(r.global||e.global)&&(Object.defineProperty(T,"Promise",o.PromiseProp),a.all=o.all,a.race=o.race,a.resolve=o.resolve,a.reject=o.reject,o.allSettled&&(a.allSettled=o.allSettled),o.any&&(a.any=o.any))}}function tk(){var e=T.Promise;return eU?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(T,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:eL.then,gthen:e.prototype.then}:{}}function tx(e,t,n,r,a){var o=e2;try{return t$(e,!0),t(n,r,a)}finally{t$(o,!1)}}function tC(e,t,n,r){return"function"!=typeof e?e:function(){var a,o=e2;n&&tg(),t$(t,!0);try{return e.apply(this,arguments)}finally{t$(o,!1),r&&(a=tb,eH.call(eR,a))}}}function tw(e,t){return function(n,r){return e.call(this,tC(n,t),tC(r,t))}}-1===(""+eH).indexOf("[native code]")&&(tg=tb=eB);let tE="unhandledrejection";function tD(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,a={promise:t,reason:e};if(T.document&&document.createEvent?((r=document.createEvent("Event")).initEvent(tE,!0,!0),F(r,a)):T.CustomEvent&&F(r=new CustomEvent(tE,{detail:a}),a),r&&T.dispatchEvent&&(dispatchEvent(r),!T.PromiseRejectionEvent&&T.onunhandledrejection))try{T.onunhandledrejection(r)}catch(e){}em&&r&&!r.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}var tS=e6.reject;let tB="3.2.7",tz=String.fromCharCode(65535),tP=-1/0,tT="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",tM="String expected.",tO=[],tF="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),tI=e=>!/(dexie\.js|dexie\.min\.js)/.test(e),tN="__dbnames",tj="readonly",tR="readwrite";function tL(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}let tV={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function tH(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=ei(t))[e],t)}class tG{_trans(e,t,n){let r=this._tx||e2.trans,a=this.name;function o(e,n,r){if(!r.schema[a])throw new eE.NotFound("Table "+a+" not part of transaction");return t(r.idbtrans,r)}let i=to();try{return r&&r.db===this.db?r===e2.trans?r._promise(e,o,n):t_(()=>r._promise(e,o,n),{trans:r,transless:e2.transless||e2}):function e(t,n,r,a){if(t.idbdb&&(t._state.openComplete||e2.letThrough||t._vip)){var o=t._createTransaction(n,r,t._dbSchema);try{o.create(),t._state.PR1398_maxLoop=3}catch(o){return o.name===ew.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>e(t,n,r,a))):tS(o)}return o._promise(n,(e,t)=>t_(()=>(e2.trans=o,a(e,t,o)))).then(e=>o._completion.then(()=>e))}if(t._state.openComplete)return tS(new eE.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return tS(new eE.DatabaseClosed);t.open().catch(eB)}return t._state.dbReadyPromise.then(()=>e(t,n,r,a))}(this.db,e,[this.name],o)}finally{i&&ti()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",t=>this.core.get({trans:t,key:e}).then(e=>this.hook.reading.fire(e))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(O(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);let t=M(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);let n=this.schema.indexes.concat(this.schema.primKey).filter(e=>{if(e.compound&&t.every(t=>e.keyPath.indexOf(t)>=0)){for(let n=0;n<t.length;++n)if(-1===t.indexOf(e.keyPath[n]))return!1;return!0}return!1}).sort((e,t)=>e.keyPath.length-t.keyPath.length)[0];if(n&&this.db._maxKey!==tz){let r=n.keyPath.slice(0,t.length);return this.where(r).equals(r.map(t=>e[t]))}!n&&em&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);let{idxByName:r}=this.schema,a=this.db._deps.indexedDB;function o(e,t){try{return 0===a.cmp(e,t)}catch(e){return!1}}let[i,s]=t.reduce(([t,n],a)=>{let i=r[a],s=e[a];return[t||i,t||!i?tL(n,i&&i.multi?e=>{let t=X(e,a);return O(t)&&t.some(e=>o(s,e))}:e=>o(s,X(e,a))):n]},[null,null]);return i?this.where(i.name).equals(e[i.keyPath]).filter(s):n?this.filter(s):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,O(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;let t=t=>{if(!t)return t;let n=Object.create(e.prototype);for(var r in t)if(j(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass(function(e){F(this,e)})}add(e,t){let{auto:n,keyPath:r}=this.schema.primKey,a=e;return r&&n&&(a=tH(r)(e)),this._trans("readwrite",e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[a]})).then(e=>e.numFailures?e6.reject(e.failures[0]):e.lastResult).then(t=>{if(r)try{Q(e,r,t)}catch(e){}return t})}update(e,t){if("object"!=typeof e||O(e))return this.where(":id").equals(e).modify(t);{let n=X(e,this.schema.primKey.keyPath);if(void 0===n)return tS(new eE.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?M(t).forEach(n=>{Q(e,n,t[n])}):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){let{auto:n,keyPath:r}=this.schema.primKey,a=e;return r&&n&&(a=tH(r)(e)),this._trans("readwrite",e=>this.core.mutate({trans:e,type:"put",values:[a],keys:null!=t?[t]:null})).then(e=>e.numFailures?e6.reject(e.failures[0]):e.lastResult).then(t=>{if(r)try{Q(e,r,t)}catch(e){}return t})}delete(e){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:[e]})).then(e=>e.numFailures?e6.reject(e.failures[0]):void 0)}clear(){return this._trans("readwrite",e=>this.core.mutate({trans:e,type:"deleteRange",range:tV})).then(e=>e.numFailures?e6.reject(e.failures[0]):void 0)}bulkGet(e){return this._trans("readonly",t=>this.core.getMany({keys:e,trans:t}).then(e=>e.map(e=>this.hook.reading.fire(e))))}bulkAdd(e,t,n){let r=Array.isArray(t)?t:void 0,a=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:n,keyPath:o}=this.schema.primKey;if(o&&r)throw new eE.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new eE.InvalidArgument("Arguments objects and keys must have the same length");let i=e.length,s=o&&n?e.map(tH(o)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:s,wantResults:a}).then(({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return a?t:n;throw new eC(`${this.name}.bulkAdd(): ${e} of ${i} operations failed`,r)})})}bulkPut(e,t,n){let r=Array.isArray(t)?t:void 0,a=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:n,keyPath:o}=this.schema.primKey;if(o&&r)throw new eE.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new eE.InvalidArgument("Arguments objects and keys must have the same length");let i=e.length,s=o&&n?e.map(tH(o)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:s,wantResults:a}).then(({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return a?t:n;throw new eC(`${this.name}.bulkPut(): ${e} of ${i} operations failed`,r)})})}bulkDelete(e){let t=e.length;return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:e})).then(({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new eC(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)})}}function tU(e){var t={},n=function(n,r){if(r){for(var a=arguments.length,o=Array(a-1);--a;)o[a-1]=arguments[a];return t[n].subscribe.apply(null,o),e}if("string"==typeof n)return t[n]};n.addEventType=o;for(var r=1,a=arguments.length;r<a;++r)o(arguments[r]);return n;function o(e,r,a){if("object"!=typeof e){r||(r=eI),a||(a=eB);var i={subscribers:[],fire:a,subscribe:function(e){-1===i.subscribers.indexOf(e)&&(i.subscribers.push(e),i.fire=r(i.fire,e))},unsubscribe:function(e){i.subscribers=i.subscribers.filter(function(t){return t!==e}),i.fire=i.subscribers.reduce(r,a)}};return t[e]=n[e]=i,i}M(e).forEach(function(t){var n=e[t];if(O(n))o(t,e[t][0],e[t][1]);else{if("asap"!==n)throw new eE.InvalidArgument("Invalid event config");var r=o(t,ez,function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];r.subscribers.forEach(function(e){J(function(){e.apply(null,t)})})})}})}}function tq(e,t){return H(t).from({prototype:e}),t}function tW(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function tK(e,t){e.filter=tL(e.filter,t)}function tY(e,t,n){var r=e.replayFilter;e.replayFilter=r?()=>tL(r(),t()):t,e.justLimit=n&&!r}function tJ(e,t){if(e.isPrimKey)return t.primaryKey;let n=t.getIndexByKeyPath(e.index);if(!n)throw new eE.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function tZ(e,t,n){let r=tJ(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function tX(e,t,n,r){let a=e.replayFilter?tL(e.filter,e.replayFilter()):e.filter;if(e.or){let o={},i=(e,n,r)=>{if(!a||a(n,r,e=>n.stop(e),e=>n.fail(e))){var i=n.primaryKey,s=""+i;"[object ArrayBuffer]"===s&&(s=""+new Uint8Array(i)),j(o,s)||(o[s]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(i,n),tQ(tZ(e,r,n),e.algorithm,i,!e.keysOnly&&e.valueMapper)])}return tQ(tZ(e,r,n),tL(e.algorithm,a),t,!e.keysOnly&&e.valueMapper)}function tQ(e,t,n,r){var a=tc(r?(e,t,a)=>n(r(e),t,a):n);return e.then(e=>{if(e)return e.start(()=>{var n=()=>e.continue();t&&!t(e,e=>n=e,t=>{e.stop(t),n=eB},t=>{e.fail(t),n=eB})||a(e.value,e,e=>n=e),n()})})}function t0(e,t){try{let n=t1(e),r=t1(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){let n=e.length,r=t.length,a=n<r?n:r;for(let n=0;n<a;++n)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return n===r?0:n<r?-1:1}(t2(e),t2(t));case"Array":return function(e,t){let n=e.length,r=t.length,a=n<r?n:r;for(let n=0;n<a;++n){let r=t0(e[n],t[n]);if(0!==r)return r}return n===r?0:n<r?-1:1}(e,t)}}catch(e){}return NaN}function t1(e){let t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";let n=el(e);return"ArrayBuffer"===n?"binary":n}function t2(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class t3{_read(e,t){var n=this._ctx;return n.error?n.table._trans(null,tS.bind(null,n.error)):n.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,tS.bind(null,t.error)):t.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var t=this._ctx;t.algorithm=tL(t.algorithm,e)}_iterate(e,t){return tX(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&F(n,e),t._ctx=n,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read(n=>tX(t,e,n,t.table.core))}count(e){return this._read(e=>{let t=this._ctx,n=t.table.core;if(tW(t,!0))return n.count({trans:e,query:{index:tJ(t,n.schema),range:t.range}}).then(e=>Math.min(e,t.limit));var r=0;return tX(t,()=>(++r,!1),e,n).then(()=>r)}).then(e)}sortBy(e,t){let n=e.split(".").reverse(),r=n[0],a=n.length-1;function o(e,t){return t?o(e[n[t]],t-1):e[r]}var i="next"===this._ctx.dir?1:-1;function s(e,t){var n=o(e,a),r=o(t,a);return n<r?-i:n>r?i:0}return this.toArray(function(e){return e.sort(s)}).then(t)}toArray(e){return this._read(e=>{var t=this._ctx;if("next"===t.dir&&tW(t,!0)&&t.limit>0){let{valueMapper:n}=t,r=tJ(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then(({result:e})=>n?e.map(n):e)}{let n=[];return tX(t,e=>n.push(e),e,t.table.core).then(()=>n)}},e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,tW(t)?tY(t,()=>{var t=e;return(e,n)=>0===t||(1===t?--t:n(()=>{e.advance(t),t=0}),!1)}):tY(t,()=>{var t=e;return()=>--t<0})),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),tY(this._ctx,()=>{var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}},!0),this}until(e,t){return tK(this._ctx,function(n,r,a){return!e(n.value)||(r(a),t)}),this}first(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)}last(e){return this.reverse().first(e)}filter(e){var t;return tK(this._ctx,function(t){return e(t.value)}),(t=this._ctx).isMatch=tL(t.isMatch,e),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.key,n)})}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.primaryKey,n)})}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&tW(t,!0)&&t.limit>0)return this._read(e=>{var n=tJ(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})}).then(({result:e})=>e).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.primaryKey)}).then(function(){return n}).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys(function(e){return e[0]}).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return tK(this._ctx,function(e){var t=e.primaryKey.toString(),r=j(n,t);return n[t]=!0,!r}),this}modify(e){var t=this._ctx;return this._write(n=>{var r;if("function"==typeof e)r=e;else{var a=M(e),o=a.length;r=function(t){for(var n=!1,r=0;r<o;++r){var i=a[r],s=e[i];X(t,i)!==s&&(Q(t,i,s),n=!0)}return n}}let i=t.table.core,{outbound:s,extractKey:l}=i.schema.primaryKey,c=this.db._options.modifyChunkSize||200,u=[],d=0,p=[],f=(e,t)=>{let{failures:n,numFailures:r}=t;for(let t of(d+=e-r,M(n)))u.push(n[t])};return this.clone().primaryKeys().then(a=>{let o=u=>{let d=Math.min(c,a.length-u);return i.getMany({trans:n,keys:a.slice(u,u+d),cache:"immutable"}).then(p=>{let m=[],h=[],g=s?[]:null,b=[];for(let e=0;e<d;++e){let t=p[e],n={value:ei(t),primKey:a[u+e]};!1!==r.call(n,n.value,n)&&(null==n.value?b.push(a[u+e]):s||0===t0(l(t),l(n.value))?(h.push(n.value),s&&g.push(a[u+e])):(b.push(a[u+e]),m.push(n.value)))}let y=tW(t)&&t.limit===1/0&&("function"!=typeof e||e===t4)&&{index:t.index,range:t.range};return Promise.resolve(m.length>0&&i.mutate({trans:n,type:"add",values:m}).then(e=>{for(let t in e.failures)b.splice(parseInt(t),1);f(m.length,e)})).then(()=>(h.length>0||y&&"object"==typeof e)&&i.mutate({trans:n,type:"put",keys:g,values:h,criteria:y,changeSpec:"function"!=typeof e&&e}).then(e=>f(h.length,e))).then(()=>(b.length>0||y&&e===t4)&&i.mutate({trans:n,type:"delete",keys:b,criteria:y}).then(e=>f(b.length,e))).then(()=>a.length>u+d&&o(u+c))})};return o(0).then(()=>{if(u.length>0)throw new ex("Error modifying one or more objects",u,d,p);return a.length})})})}delete(){var e=this._ctx,t=e.range;return tW(e)&&(e.isPrimKey&&!tF||3===t.type)?this._write(n=>{let{primaryKey:r}=e.table.core.schema;return e.table.core.count({trans:n,query:{index:r,range:t}}).then(r=>e.table.core.mutate({trans:n,type:"deleteRange",range:t}).then(({failures:e,lastResult:t,results:n,numFailures:a})=>{if(a)throw new ex("Could not delete some values",Object.keys(e).map(t=>e[t]),r-a);return r-a}))}):this.modify(t4)}}let t4=(e,t)=>t.value=null;function t5(e,t){return e<t?-1:+(e!==t)}function t6(e,t){return e>t?-1:+(e!==t)}function t7(e,t,n){var r=e instanceof nn?new e.Collection(e):e;return r._ctx.error=n?new n(t):TypeError(t),r}function t8(e){return new e.Collection(e,()=>nt("")).limit(0)}function t9(e,t,n,r){var a,o,i,s,l,c,u,d=n.length;if(!n.every(e=>"string"==typeof e))return t7(e,tM);function p(e){a="next"===e?e=>e.toUpperCase():e=>e.toLowerCase(),o="next"===e?e=>e.toLowerCase():e=>e.toUpperCase(),i="next"===e?t5:t6;var t=n.map(function(e){return{lower:o(e),upper:a(e)}}).sort(function(e,t){return i(e.lower,t.lower)});s=t.map(function(e){return e.upper}),l=t.map(function(e){return e.lower}),c=e,u="next"===e?"":r}p("next");var f=new e.Collection(e,()=>ne(s[0],l[d-1]+r));f._ondirectionchange=function(e){p(e)};var m=0;return f._addAlgorithm(function(e,n,r){var a=e.key;if("string"!=typeof a)return!1;var p=o(a);if(t(p,l,m))return!0;for(var f=null,h=m;h<d;++h){var g=function(e,t,n,r,a,o){for(var i=Math.min(e.length,r.length),s=-1,l=0;l<i;++l){var c=t[l];if(c!==r[l])return 0>a(e[l],n[l])?e.substr(0,l)+n[l]+n.substr(l+1):0>a(e[l],r[l])?e.substr(0,l)+r[l]+n.substr(l+1):s>=0?e.substr(0,s)+t[s]+n.substr(s+1):null;0>a(e[l],c)&&(s=l)}return i<r.length&&"next"===o?e+n.substr(e.length):i<e.length&&"prev"===o?e.substr(0,n.length):s<0?null:e.substr(0,s)+r[s]+n.substr(s+1)}(a,p,s[h],l[h],i,c);null===g&&null===f?m=h+1:(null===f||i(f,g)>0)&&(f=g)}return n(null!==f?function(){e.continue(f+u)}:r),!1}),f}function ne(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function nt(e){return{type:1,lower:e,upper:e}}class nn{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?t8(this):new this.Collection(this,()=>ne(e,t,!n,!r))}catch(e){return t7(this,tT)}}equals(e){return null==e?t7(this,tT):new this.Collection(this,()=>nt(e))}above(e){return null==e?t7(this,tT):new this.Collection(this,()=>ne(e,void 0,!0))}aboveOrEqual(e){return null==e?t7(this,tT):new this.Collection(this,()=>ne(e,void 0,!1))}below(e){return null==e?t7(this,tT):new this.Collection(this,()=>ne(void 0,e,!1,!0))}belowOrEqual(e){return null==e?t7(this,tT):new this.Collection(this,()=>ne(void 0,e))}startsWith(e){return"string"!=typeof e?t7(this,tM):this.between(e,e+tz,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):t9(this,(e,t)=>0===e.indexOf(t[0]),[e],tz)}equalsIgnoreCase(e){return t9(this,(e,t)=>e===t[0],[e],"")}anyOfIgnoreCase(){var e=ep.apply(ed,arguments);return 0===e.length?t8(this):t9(this,(e,t)=>-1!==t.indexOf(e),e,"")}startsWithAnyOfIgnoreCase(){var e=ep.apply(ed,arguments);return 0===e.length?t8(this):t9(this,(e,t)=>t.some(t=>0===e.indexOf(t)),e,tz)}anyOf(){let e=ep.apply(ed,arguments),t=this._cmp;try{e.sort(t)}catch(e){return t7(this,tT)}if(0===e.length)return t8(this);let n=new this.Collection(this,()=>ne(e[0],e[e.length-1]));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm((n,a,o)=>{let i=n.key;for(;t(i,e[r])>0;)if(++r===e.length)return a(o),!1;return 0===t(i,e[r])||(a(()=>{n.continue(e[r])}),!1)}),n}notEqual(e){return this.inAnyRange([[tP,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){let e=ep.apply(ed,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return t7(this,tT)}let t=e.reduce((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[tP,t]],null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){let n=this._cmp,r=this._ascending,a=this._descending,o=this._min,i=this._max;if(0===e.length)return t8(this);if(!e.every(e=>void 0!==e[0]&&void 0!==e[1]&&0>=r(e[0],e[1])))return t7(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",eE.InvalidArgument);let s=!t||!1!==t.includeLowers,l=t&&!0===t.includeUppers,c,u=r;function d(e,t){return u(e[0],t[0])}try{(c=e.reduce(function(e,t){let r=0,a=e.length;for(;r<a;++r){let a=e[r];if(0>n(t[0],a[1])&&n(t[1],a[0])>0){a[0]=o(a[0],t[0]),a[1]=i(a[1],t[1]);break}}return r===a&&e.push(t),e},[])).sort(d)}catch(e){return t7(this,tT)}let p=0,f=l?e=>r(e,c[p][1])>0:e=>r(e,c[p][1])>=0,m=s?e=>a(e,c[p][0])>0:e=>a(e,c[p][0])>=0,h=f,g=new this.Collection(this,()=>ne(c[0][0],c[c.length-1][1],!s,!l));return g._ondirectionchange=e=>{"next"===e?(h=f,u=r):(h=m,u=a),c.sort(d)},g._addAlgorithm((e,t,n)=>{for(var a=e.key;h(a);)if(++p===c.length)return t(n),!1;return!!(!f(a)&&!m(a))||(0===this._cmp(a,c[p][1])||0===this._cmp(a,c[p][0])||t(()=>{u===r?e.continue(c[p][0]):e.continue(c[p][1])}),!1)}),g}startsWithAnyOf(){let e=ep.apply(ed,arguments);return e.every(e=>"string"==typeof e)?0===e.length?t8(this):this.inAnyRange(e.map(e=>[e,e+tz])):t7(this,"startsWithAnyOf() only works with strings")}}function nr(e){return tc(function(t){return na(t),e(t.target.error),!1})}function na(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}let no="storagemutated",ni="x-storagemutated-1",ns=tU(null,no);class nl{_lock(){return Y(!e2.global),++this._reculock,1!==this._reculock||e2.global||(e2.lockOwnerFor=this),this}_unlock(){if(Y(!e2.global),0==--this._reculock)for(e2.global||(e2.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{tx(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&e2.lockOwnerFor!==this}create(e){if(!this.mode)return this;let t=this.db.idbdb,n=this.db._state.dbOpenError;if(Y(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new eE.DatabaseClosed(n);case"MissingAPIError":throw new eE.MissingAPI(n.message,n);default:throw new eE.OpenFailed(n)}if(!this.active)throw new eE.TransactionInactive;return Y(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=tc(t=>{na(t),this._reject(e.error)}),e.onabort=tc(t=>{na(t),this.active&&this._reject(new eE.Abort(e.error)),this.active=!1,this.on("abort").fire(t)}),e.oncomplete=tc(()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&ns.storagemutated.fire(e.mutatedParts)}),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return tS(new eE.ReadOnly("Transaction is readonly"));if(!this.active)return tS(new eE.TransactionInactive);if(this._locked())return new e6((r,a)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,a)},e2])});if(n)return t_(()=>{var e=new e6((e,n)=>{this._lock();let r=t(e,n,this);r&&r.then&&r.then(e,n)});return e.finally(()=>this._unlock()),e._lib=!0,e});var r=new e6((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)});return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();let n=e6.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then(()=>n);else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var a=t._waitingFor;return new e6((e,r)=>{n.then(n=>t._waitingQueue.push(tc(e.bind(null,n))),e=>t._waitingQueue.push(tc(r.bind(null,e)))).finally(()=>{t._waitingFor===a&&(t._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new eE.Abort))}table(e){let t=this._memoizedTables||(this._memoizedTables={});if(j(t,e))return t[e];let n=this.schema[e];if(!n)throw new eE.NotFound("Table "+e+" not part of transaction");let r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function nc(e,t,n,r,a,o,i){return{name:e,keyPath:t,unique:n,multi:r,auto:a,compound:o,src:(n&&!i?"&":"")+(r?"*":"")+(a?"++":"")+nu(t)}}function nu(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function nd(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:Z(n,e=>[e.name,e])}}let np=e=>{try{return e.only([[]]),np=()=>[[]],[[]]}catch(e){return np=()=>tz,tz}};function nf(e){return null==e?()=>{}:"string"==typeof e?1===e.split(".").length?t=>t[e]:t=>X(t,e):t=>X(t,e)}function nm(e){return[].slice.call(e)}let nh=0;function n_(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function ng({_novip:e},t){let n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},a){var o;return{dbcore:(o=function(e,t,n){let r;function a(e){if(3===e.type)return null;if(4===e.type)throw Error("Cannot convert never type to IDBKeyRange");let{lower:n,upper:r,lowerOpen:a,upperOpen:o}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!o):void 0===r?t.lowerBound(n,!!a):t.bound(n,r,!!a,!!o)}let{schema:o,hasGetAll:i}=(r=nm(e.objectStoreNames),{schema:{name:e.name,tables:r.map(e=>n.objectStore(e)).map(e=>{let{keyPath:t,autoIncrement:n}=e,r=O(t),a=null==t,o={},i={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:a,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:nf(t)},indexes:nm(e.indexNames).map(t=>e.index(t)).map(e=>{let{name:t,unique:n,multiEntry:r,keyPath:a}=e,i={name:t,compound:O(a),keyPath:a,unique:n,multiEntry:r,extractKey:nf(a)};return o[n_(a)]=i,i}),getIndexByKeyPath:e=>o[n_(e)]};return o[":id"]=i.primaryKey,null!=t&&(o[n_(t)]=i.primaryKey),i})},hasGetAll:r.length>0&&"getAll"in n.objectStore(r[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),s=o.tables.map(e=>{let t;return{name:t=e.name,schema:e,mutate:function({trans:e,type:n,keys:r,values:o,range:i}){return new Promise((s,l)=>{let c;s=tc(s);let u=e.objectStore(t),d=null==u.keyPath,p="put"===n||"add"===n;if(!p&&"delete"!==n&&"deleteRange"!==n)throw Error("Invalid operation type: "+n);let{length:f}=r||o||{length:1};if(r&&o&&r.length!==o.length)throw Error("Given keys array must have same length as given values array.");if(0===f)return s({numFailures:0,failures:{},results:[],lastResult:void 0});let m=[],h=[],g=0,b=e=>{++g,na(e)};if("deleteRange"===n){if(4===i.type)return s({numFailures:g,failures:h,results:[],lastResult:void 0});3===i.type?m.push(c=u.clear()):m.push(c=u.delete(a(i)))}else{let[e,t]=p?d?[o,r]:[o,null]:[r,null];if(p)for(let r=0;r<f;++r)m.push(c=t&&void 0!==t[r]?u[n](e[r],t[r]):u[n](e[r])),c.onerror=b;else for(let t=0;t<f;++t)m.push(c=u[n](e[t])),c.onerror=b}let y=e=>{let t=e.target.result;m.forEach((e,t)=>null!=e.error&&(h[t]=e.error)),s({numFailures:g,failures:h,results:"delete"===n?r:m.map(e=>e.result),lastResult:t})};c.onerror=e=>{b(e),y(e)},c.onsuccess=y})},getMany:({trans:e,keys:n})=>new Promise((r,a)=>{r=tc(r);let o=e.objectStore(t),i=n.length,s=Array(i),l,c=0,u=0,d=e=>{let t=e.target;s[t._pos]=t.result,++u===c&&r(s)},p=nr(a);for(let e=0;e<i;++e)null!=n[e]&&((l=o.get(n[e]))._pos=e,l.onsuccess=d,l.onerror=p,++c);0===c&&r(s)}),get:({trans:e,key:n})=>new Promise((r,a)=>{r=tc(r);let o=e.objectStore(t).get(n);o.onsuccess=e=>r(e.target.result),o.onerror=nr(a)}),query:e=>new Promise((n,r)=>{n=tc(n);let{trans:o,values:s,limit:l,query:c}=e,u=l===1/0?void 0:l,{index:d,range:p}=c,f=o.objectStore(t),m=d.isPrimaryKey?f:f.index(d.name),h=a(p);if(0===l)return n({result:[]});if(i){let e=s?m.getAll(h,u):m.getAllKeys(h,u);e.onsuccess=e=>n({result:e.target.result}),e.onerror=nr(r)}else{let e=0,t=!s&&"openKeyCursor"in m?m.openKeyCursor(h):m.openCursor(h),a=[];t.onsuccess=r=>{let o=t.result;return o?(a.push(s?o.value:o.primaryKey),++e===l?n({result:a}):void o.continue()):n({result:a})},t.onerror=nr(r)}}),openCursor:function({trans:e,values:n,query:r,reverse:o,unique:i}){return new Promise((s,l)=>{s=tc(s);let{index:c,range:u}=r,d=e.objectStore(t),p=c.isPrimaryKey?d:d.index(c.name),f=o?i?"prevunique":"prev":i?"nextunique":"next",m=!n&&"openKeyCursor"in p?p.openKeyCursor(a(u),f):p.openCursor(a(u),f);m.onerror=nr(l),m.onsuccess=tc(t=>{let n=m.result;if(!n)return void s(null);n.___id=++nh,n.done=!1;let r=n.continue.bind(n),a=n.continuePrimaryKey;a&&(a=a.bind(n));let o=n.advance.bind(n),i=()=>{throw Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw Error("Cursor not started")},n.fail=tc(l),n.next=function(){let e=1;return this.start(()=>e--?this.continue():this.stop()).then(()=>this)},n.start=e=>{let t=new Promise((e,t)=>{e=tc(e),m.onerror=nr(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=i,e(t)}}),s=()=>{if(m.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw Error("Cursor behind last entry")},n.stop()};return m.onsuccess=tc(e=>{m.onsuccess=s,s()}),n.continue=r,n.continuePrimaryKey=a,n.advance=o,s(),t},s(n)},l)})},count({query:e,trans:n}){let{index:r,range:o}=e;return new Promise((e,i)=>{let s=n.objectStore(t),l=r.isPrimaryKey?s:s.index(r.name),c=a(o),u=c?l.count(c):l.count();u.onsuccess=tc(t=>e(t.target.result)),u.onerror=nr(i)})}}}),l={};return s.forEach(e=>l[e.name]=e),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!l[e])throw Error(`Table '${e}' not found`);return l[e]},MIN_KEY:-1/0,MAX_KEY:np(t),schema:o}}(t,n,a),e.dbcore.reduce((e,{create:t})=>({...e,...t(e)}),o))}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach(t=>{let n=t.name;e.core.schema.tables.some(e=>e.name===n)&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))})}function nb({_novip:e},t,n,r){n.forEach(n=>{let a=r[n];t.forEach(t=>{let r=U(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?V(t,n,{get(){return this.table(n)},set(e){L(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,a))})})}function ny({_novip:e},t){t.forEach(t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]})}function nv(e,t){return e._cfg.version-t._cfg.version}function nA(e,t){let n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){let a=e[n],o=t[n];if(a){let e={name:n,def:o,recreate:!1,del:[],add:[],change:[]};if(""+(a.primKey.keyPath||"")==""+(o.primKey.keyPath||"")&&(a.primKey.auto===o.primKey.auto||tF)){let t,n=a.idxByName,i=o.idxByName;for(t in n)i[t]||e.del.push(t);for(t in i){let r=n[t],a=i[t];r?r.src!==a.src&&e.change.push(a):e.add.push(a)}(e.del.length>0||e.add.length>0||e.change.length>0)&&r.change.push(e)}else e.recreate=!0,r.change.push(e)}else r.add.push([n,o])}return r}function n$(e,t,n,r){let a=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(e=>nk(a,e)),a}function nk(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function nx(e,t,n){let r={};return W(t.objectStoreNames,0).forEach(e=>{let t=n.objectStore(e),a=t.keyPath,o=nc(nu(a),a||"",!1,!1,!!t.autoIncrement,a&&"string"!=typeof a,!0),i=[];for(let e=0;e<t.indexNames.length;++e){let n=t.index(t.indexNames[e]);a=n.keyPath;var s=nc(n.name,a,!!n.unique,!!n.multiEntry,!1,a&&"string"!=typeof a,!1);i.push(s)}r[e]=nd(e,o,i)}),r}function nC({_novip:e},t,n){let r=n.db.objectStoreNames;for(let a=0;a<r.length;++a){let o=r[a],i=n.objectStore(o);e._hasGetAll="getAll"in i;for(let e=0;e<i.indexNames.length;++e){let n=i.indexNames[e],r=i.index(n).keyPath,a="string"==typeof r?r:"["+W(r).join("+")+"]";if(t[o]){let e=t[o].idxByName[a];e&&(e.name=n,delete t[o].idxByName[a],t[o].idxByName[n]=e)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&T.WorkerGlobalScope&&T instanceof T.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class nw{_parseStoresSpec(e,t){M(e).forEach(n=>{if(null!==e[n]){var r=e[n].split(",").map((e,t)=>{let n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return nc(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),O(r),0===t)}),a=r.shift();if(a.multi)throw new eE.Schema("Primary key cannot be multi-valued");r.forEach(e=>{if(e.auto)throw new eE.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new eE.Schema("Index must have a name and cannot be an empty string")}),t[n]=nd(n,a,r)}})}stores(e){let t=this.db;this._cfg.storesSource=this._cfg.storesSource?F(this._cfg.storesSource,e):e;let n=t._versions,r={},a={};return n.forEach(e=>{F(r,e._cfg.storesSource),a=e._cfg.dbschema={},e._parseStoresSpec(r,a)}),t._dbSchema=a,ny(t,[t._allTables,t,t.Transaction.prototype]),nb(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],M(a),a),t._storeNames=M(a),this}upgrade(e){return this._cfg.contentUpgrade=eN(this._cfg.contentUpgrade||eB,e),this}}function nE(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new nq(tN,{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function nD(e){return e&&"function"==typeof e.databases}function nS(e){return t_(function(){return e2.letThrough=!0,e()})}function nB(e){var t=t=>e.next(t),n=a(t),r=a(t=>e.throw(t));function a(e){return t=>{var a=e(t),o=a.value;return a.done?o:o&&"function"==typeof o.then?o.then(n,r):O(o)?Promise.all(o).then(n,r):n(o)}}return a(t)()}function nz(e,t,n){var r=arguments.length;if(r<2)throw new eE.InvalidArgument("Too few arguments");for(var a=Array(r-1);--r;)a[r-1]=arguments[r];return n=a.pop(),[e,en(a),n]}function nP(e,t,n){let r=O(e)?e.slice():[e];for(let e=0;e<n;++e)r.push(t);return r}let nT={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){let n=e.table(t),{schema:r}=n,a={},o=[];function i(e,t,n){let r=n_(e),s=a[r]=a[r]||[],l=null==e?0:"string"==typeof e?1:e.length,c=t>0,u={...n,isVirtual:c,keyTail:t,keyLength:l,extractKey:nf(e),unique:!c&&n.unique};return s.push(u),u.isPrimaryKey||o.push(u),l>1&&i(2===l?e[0]:e.slice(0,l-1),t+1,n),s.sort((e,t)=>e.keyTail-t.keyTail),u}let s=i(r.primaryKey.keyPath,0,r.primaryKey);for(let e of(a[":id"]=[s],r.indexes))i(e.keyPath,0,e);function l(t){var n,r;let a=t.query.index;return a.isVirtual?{...t,query:{index:a,range:(n=t.query.range,r=a.keyTail,{type:1===n.type?2:n.type,lower:nP(n.lower,n.lowerOpen?e.MAX_KEY:e.MIN_KEY,r),lowerOpen:!0,upper:nP(n.upper,n.upperOpen?e.MIN_KEY:e.MAX_KEY,r),upperOpen:!0})}}:t}return{...n,schema:{...r,primaryKey:s,indexes:o,getIndexByKeyPath:function(e){let t=a[n_(e)];return t&&t[0]}},count:e=>n.count(l(e)),query:e=>n.query(l(e)),openCursor(t){let{keyTail:r,isVirtual:a,keyLength:o}=t.query.index;return a?n.openCursor(l(t)).then(n=>n&&Object.create(n,{continue:{value:function(a){null!=a?n.continue(nP(a,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,o).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value(t,a){n.continuePrimaryKey(nP(t,e.MAX_KEY,r),a)}},primaryKey:{get:()=>n.primaryKey},key:{get(){let e=n.key;return 1===o?e[0]:e.slice(0,o)}},value:{get:()=>n.value}})):n.openCursor(t)}}}}}};function nM(e,t,n,r){return n=n||{},r=r||"",M(e).forEach(a=>{if(j(t,a)){var o=e[a],i=t[a];if("object"==typeof o&&"object"==typeof i&&o&&i){let e=el(o);e!==el(i)?n[r+a]=t[a]:"Object"===e?nM(o,i,n,r+a+"."):o!==i&&(n[r+a]=t[a])}else o!==i&&(n[r+a]=t[a])}else n[r+a]=void 0}),M(t).forEach(a=>{j(e,a)||(n[r+a]=t[a])}),n}let nO={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){let n=e.table(t),{primaryKey:r}=n.schema;return{...n,mutate(e){let a=e2.trans,{deleting:o,creating:i,updating:s}=a.table(t).hook;switch(e.type){case"add":if(i.fire===eB)break;return a._promise("readwrite",()=>l(e),!0);case"put":if(i.fire===eB&&s.fire===eB)break;return a._promise("readwrite",()=>l(e),!0);case"delete":if(o.fire===eB)break;return a._promise("readwrite",()=>l(e),!0);case"deleteRange":if(o.fire===eB)break;return a._promise("readwrite",()=>(function e(t,a,o){return n.query({trans:t,values:!1,query:{index:r,range:a},limit:o}).then(({result:n})=>l({type:"delete",keys:n,trans:t}).then(r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length<o?{failures:[],numFailures:0,lastResult:void 0}:e(t,{...a,lower:n[n.length-1],lowerOpen:!0},o)))})(e.trans,e.range,1e4),!0)}return n.mutate(e);function l(e){var t,a;let l=e2.trans,c=e.keys||("delete"===(t=e).type?t.keys:t.keys||t.values.map(r.extractKey));if(!c)throw Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:c}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),("add"===(a=e).type?Promise.resolve([]):n.getMany({trans:a.trans,keys:c,cache:"immutable"})).then(t=>{let a=c.map((n,a)=>{let c=t[a],u={onerror:null,onsuccess:null};if("delete"===e.type)o.fire.call(u,n,c,l);else if("add"===e.type||void 0===c){let t=i.fire.call(u,n,e.values[a],l);null==n&&null!=t&&(n=t,e.keys[a]=n,r.outbound||Q(e.values[a],r.keyPath,n))}else{let t=nM(c,e.values[a]),r=s.fire.call(u,t,n,c,l);if(r){let t=e.values[a];Object.keys(r).forEach(e=>{j(t,e)?t[e]=r[e]:Q(t,e,r[e])})}}return u});return n.mutate(e).then(({failures:n,results:r,numFailures:o,lastResult:i})=>{for(let o=0;o<c.length;++o){let i=r?r[o]:c[o],s=a[o];null==i?s.onerror&&s.onerror(n[o]):s.onsuccess&&s.onsuccess("put"===e.type&&t[o]?e.values[o]:i)}return{failures:n,results:r,numFailures:o,lastResult:i}}).catch(e=>(a.forEach(t=>t.onerror&&t.onerror(e)),Promise.reject(e)))})}}}}})};function nF(e,t,n){try{if(!t||t.keys.length<e.length)return null;let r=[];for(let a=0,o=0;a<t.keys.length&&o<e.length;++a)0===t0(t.keys[a],e[o])&&(r.push(n?ei(t.values[a]):t.values[a]),++o);return r.length===e.length?r:null}catch(e){return null}}let nI={stack:"dbcore",level:-1,create:e=>({table:t=>{let n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);let t=nF(e.keys,e.trans._cache,"clone"===e.cache);return t?e6.resolve(t):n.getMany(e).then(t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?ei(t):t},t))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))}}})};function nN(e){return!("from"in e)}let nj=function(e,t){if(!this){let t=new nj;return e&&"d"in e&&F(t,e),t}F(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function nR(e,t,n){let r=t0(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(nN(e))return F(e,{from:t,to:n,d:1});let a=e.l,o=e.r;if(0>t0(n,e.from))return a?nR(a,t,n):e.l={from:t,to:n,d:1,l:null,r:null},nH(e);if(t0(t,e.to)>0)return o?nR(o,t,n):e.r={from:t,to:n,d:1,l:null,r:null},nH(e);0>t0(t,e.from)&&(e.from=t,e.l=null,e.d=o?o.d+1:1),t0(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);let i=!e.r;a&&!e.l&&nL(e,a),o&&i&&nL(e,o)}function nL(e,t){nN(t)||function e(t,{from:n,to:r,l:a,r:o}){nR(t,n,r),a&&e(t,a),o&&e(t,o)}(e,t)}function nV(e){let t=nN(e)?null:{s:0,n:e};return{next(e){let n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&0>t0(e,t.n.from);)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||0>=t0(e,t.n.to))return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function nH(e){var t,n;let r=((null==(t=e.r)?void 0:t.d)||0)-((null==(n=e.l)?void 0:n.d)||0),a=r>1?"r":r<-1?"l":"";if(a){let t="r"===a?"l":"r",n={...e},r=e[a];e.from=r.from,e.to=r.to,e[a]=r[a],n[a]=r[t],e[t]=n,n.d=nG(n)}e.d=nG(e)}function nG({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}R(nj.prototype,{add(e){return nL(this,e),this},addKey(e){return nR(this,e,e),this},addKeys(e){return e.forEach(e=>nR(this,e,e)),this},[ec](){return nV(this)}});let nU={stack:"dbcore",level:0,create:e=>{let t=e.schema.name,n=new nj(e.MIN_KEY,e.MAX_KEY);return{...e,table:r=>{let a=e.table(r),{schema:o}=a,{primaryKey:i}=o,{extractKey:s,outbound:l}=i,c={...a,mutate:e=>{let i=e.trans,s=i.mutatedParts||(i.mutatedParts={}),l=e=>{let n=`idb://${t}/${r}/${e}`;return s[n]||(s[n]=new nj)},c=l(""),u=l(":dels"),{type:d}=e,[p,f]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[],m=e.trans._cache;return a.mutate(e).then(e=>{if(O(p)){"delete"!==d&&(p=e.results),c.addKeys(p);let t=nF(p,m);t||"add"===d||u.addKeys(p),(t||f)&&o.indexes.forEach(function(e){let n=l(e.name||"");function r(t){return null!=t?e.extractKey(t):null}let a=t=>e.multiEntry&&O(t)?t.forEach(e=>n.addKey(e)):n.addKey(t);(t||f).forEach((e,n)=>{let o=t&&r(t[n]),i=f&&r(f[n]);0!==t0(o,i)&&(null!=o&&a(o),null!=i&&a(i))})})}else if(p){let e={from:p.lower,to:p.upper};u.add(e),c.add(e)}else c.add(n),u.add(n),o.indexes.forEach(e=>l(e.name).add(n));return e})}},u=({query:{index:t,range:n}})=>{var r,a;return[t,new nj(null!=(r=n.lower)?r:e.MIN_KEY,null!=(a=n.upper)?a:e.MAX_KEY)]},d={get:e=>[i,new nj(e.key)],getMany:e=>[i,(new nj).addKeys(e.keys)],count:u,query:u,openCursor:u};return M(d).forEach(e=>{c[e]=function(o){let{subscr:i}=e2;if(i){let c=e=>{let n=`idb://${t}/${r}/${e}`;return i[n]||(i[n]=new nj)},u=c(""),p=c(":dels"),[f,m]=d[e](o);if(c(f.name||"").add(m),!f.isPrimaryKey){if("count"!==e){let t="query"===e&&l&&o.values&&a.query({...o,values:!1});return a[e].apply(this,arguments).then(n=>{if("query"===e){if(l&&o.values)return t.then(({result:e})=>(u.addKeys(e),n));let e=o.values?n.result.map(s):n.result;o.values?u.addKeys(e):p.addKeys(e)}else if("openCursor"===e){let e=o.values;return n&&Object.create(n,{key:{get:()=>(p.addKey(n.primaryKey),n.key)},primaryKey:{get(){let e=n.primaryKey;return p.addKey(e),e}},value:{get:()=>(e&&u.addKey(n.primaryKey),n.value)}})}return n})}p.add(n)}}return a[e].apply(this,arguments)}}),c}}}};class nq{constructor(e,t){var n,r,a;this._middlewares={},this.verno=0;const o=nq.dependencies;this._options=t={addons:nq.addons,autoOpen:!0,indexedDB:o.indexedDB,IDBKeyRange:o.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};const{addons:i}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const s={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:eB,dbReadyPromise:null,cancelOpen:eB,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};s.dbReadyPromise=new e6(e=>{s.dbReadyResolve=e}),s.openCanceller=new e6((e,t)=>{s.cancelOpen=t}),this._state=s,this.name=e,this.on=tU(this,"populate","blocked","versionchange","close",{ready:[eN,eB]}),this.on.ready.subscribe=K(this.on.ready.subscribe,e=>(t,n)=>{nq.vip(()=>{let r=this._state;if(r.openComplete)r.dbOpenError||e6.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);let r=this;n||e(function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)})}})}),this.Collection=(n=this,tq(t3.prototype,function(e,t){this.db=n;let r=tV,a=null;if(t)try{r=t()}catch(e){a=e}let o=e._ctx,i=o.table,s=i.hook.reading.fire;this._ctx={table:i,index:o.index,isPrimKey:!o.index||i.schema.primKey.keyPath&&o.index===i.schema.primKey.name,range:r,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:a,or:o.or,valueMapper:s!==ez?s:null}})),this.Table=function(e){return tq(tG.prototype,function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:tU(null,{creating:[eM,eB],reading:[eP,ez],updating:[eF,eB],deleting:[eO,eB]})})}(this),this.Transaction=(r=this,tq(nl.prototype,function(e,t,n,a,o){this.db=r,this.mode=e,this.storeNames=t,this.schema=n,this.chromeTransactionDurability=a,this.idbtrans=null,this.on=tU(this,"complete","error","abort"),this.parent=o||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new e6((e,t)=>{this._resolve=e,this._reject=t}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),tS(e)})})),this.Version=(a=this,tq(nw.prototype,function(e){this.db=a,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=function(e){return tq(nn.prototype,function(t,n,r){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r};let a=e._deps.indexedDB;if(!a)throw new eE.MissingAPI;this._cmp=this._ascending=a.cmp.bind(a),this._descending=(e,t)=>a.cmp(t,e),this._max=(e,t)=>a.cmp(e,t)>0?e:t,this._min=(e,t)=>0>a.cmp(e,t)?e:t,this._IDBKeyRange=e._deps.IDBKeyRange})}(this),this.on("versionchange",e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",e=>{!e.newVersion||e.newVersion<e.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${e.oldVersion/10}`)}),this._maxKey=np(t.IDBKeyRange),this._createTransaction=(e,t,n,r)=>new this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),tO.filter(e=>e.name===this.name&&e!==this&&!e._state.vcFired).map(t=>t.on("versionchange").fire(e))},this.use(nT),this.use(nO),this.use(nU),this.use(nI),this.vip=Object.create(this,{_vip:{value:!0}}),i.forEach(e=>e(this))}version(e){if(isNaN(e)||e<.1)throw new eE.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new eE.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);let t=this._versions;var n=t.filter(t=>t._cfg.version===e)[0];return n||(n=new this.Version(e),t.push(n),t.sort(nv),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||e2.letThrough||this._vip)?e():new e6((e,t)=>{if(this._state.openComplete)return t(new eE.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new eE.DatabaseClosed);this.open().catch(eB)}this._state.dbReadyPromise.then(e,t)}).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});let a=this._middlewares[e]||(this._middlewares[e]=[]);return a.push({stack:e,create:t,level:null==n?10:n,name:r}),a.sort((e,t)=>e.level-t.level),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter(e=>n?e.create!==n:!!t&&e.name!==t)),this}open(){return function(e){var t;let n=e._state,{indexedDB:r}=e._deps;if(n.isBeingOpened||e.idbdb)return n.dbReadyPromise.then(()=>n.dbOpenError?tS(n.dbOpenError):e);em&&(n.openCanceller._stackHolder=eg()),n.isBeingOpened=!0,n.dbOpenError=null,n.openComplete=!1;let a=n.openCanceller;function o(){if(n.openCanceller!==a)throw new eE.DatabaseClosed("db.open() was cancelled")}let i=n.dbReadyResolve,s=null,l=!1,c=()=>new e6((t,a)=>{if(o(),!r)throw new eE.MissingAPI;let i=e.name,c=n.autoSchema?r.open(i):r.open(i,Math.round(10*e.verno));if(!c)throw new eE.MissingAPI;c.onerror=nr(a),c.onblocked=tc(e._fireOnBlocked),c.onupgradeneeded=tc(t=>{if(s=c.transaction,n.autoSchema&&!e._options.allowEmptyDB){c.onerror=na,s.abort(),c.result.close();let e=r.deleteDatabase(i);e.onsuccess=e.onerror=tc(()=>{a(new eE.NoSuchDatabase(`Database ${i} doesnt exist`))})}else{let n,r,i,p;s.onerror=nr(a);var o,u,d=t.oldVersion>0x4000000000000000?0:t.oldVersion;l=d<1,e._novip.idbdb=c.result,o=d/10,u=s,n=e._dbSchema,(r=e._createTransaction("readwrite",e._storeNames,n)).create(u),r._completion.catch(a),i=r._reject.bind(r),p=e2.transless||e2,t_(()=>{e2.trans=r,e2.transless=p,0===o?(M(n).forEach(e=>{n$(u,e,n[e].primKey,n[e].indexes)}),ng(e,u),e6.follow(()=>e.on.populate.fire(r)).catch(i)):(function({_novip:e},t,n,r){let a=[],o=e._versions,i=e._dbSchema=nx(e,e.idbdb,r),s=!1;return o.filter(e=>e._cfg.version>=t).forEach(o=>{a.push(()=>{let a=i,l=o._cfg.dbschema;nC(e,a,r),nC(e,l,r),i=e._dbSchema=l;let c=nA(a,l);c.add.forEach(e=>{n$(r,e[0],e[1].primKey,e[1].indexes)}),c.change.forEach(e=>{if(e.recreate)throw new eE.Upgrade("Not yet support for changing primary key");{let t=r.objectStore(e.name);e.add.forEach(e=>nk(t,e)),e.change.forEach(e=>{t.deleteIndex(e.name),nk(t,e)}),e.del.forEach(e=>t.deleteIndex(e))}});let u=o._cfg.contentUpgrade;if(u&&o._cfg.version>t){let t;ng(e,r),n._memoizedTables={},s=!0;let o=ee(l);c.del.forEach(e=>{o[e]=a[e]}),ny(e,[e.Transaction.prototype]),nb(e,[e.Transaction.prototype],M(o),o),n.schema=o;let i=ef(u);i&&tg();let d=e6.follow(()=>{if((t=u(n))&&i){var e=tb.bind(null,null);t.then(e,e)}});return t&&"function"==typeof t.then?e6.resolve(t):d.then(()=>t)}}),a.push(t=>{var r;s&&tF||(r=o._cfg.dbschema,[].slice.call(t.db.objectStoreNames).forEach(e=>null==r[e]&&t.db.deleteObjectStore(e))),ny(e,[e.Transaction.prototype]),nb(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema})}),(function e(){return a.length?e6.resolve(a.shift()(n.idbtrans)).then(e):e6.resolve()})().then(()=>{var e;M(e=i).forEach(t=>{r.db.objectStoreNames.contains(t)||n$(r,t,e[t].primKey,e[t].indexes)})})})(e,o,r,u).catch(i)})}},a),c.onsuccess=tc(()=>{s=null;let r=e._novip.idbdb=c.result,a=W(r.objectStoreNames);if(a.length>0)try{let t,o=r.transaction(1===a.length?a[0]:a,"readonly");n.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;let r=e._dbSchema=nx(0,t,n);e._storeNames=W(t.objectStoreNames,0),nb(e,[e._allTables],M(r),r)}(e,r,o):(nC(e,e._dbSchema,o),((t=nA(nx(0,e.idbdb,o),e._dbSchema)).add.length||t.change.some(e=>e.add.length||e.change.length))&&console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),ng(e,o)}catch(e){}tO.push(e),r.onversionchange=tc(t=>{n.vcFired=!0,e.on("versionchange").fire(t)}),r.onclose=tc(t=>{e.on("close").fire(t)}),l&&function({indexedDB:e,IDBKeyRange:t},n){nD(e)||n===tN||nE(e,t).put({name:n}).catch(eB)}(e._deps,i),t()},a)}).catch(e=>e&&"UnknownError"===e.name&&n.PR1398_maxLoop>0?(n.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),c()):e6.reject(e));return e6.race([a,("undefined"==typeof navigator?e6.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(e){var n=function(){return indexedDB.databases().finally(e)};t=setInterval(n,100),n()}).finally(function(){return clearInterval(t)}):Promise.resolve()).then(c)]).then(()=>(o(),n.onReadyBeingFired=[],e6.resolve(nS(()=>e.on.ready.fire(e.vip))).then(function t(){if(n.onReadyBeingFired.length>0){let r=n.onReadyBeingFired.reduce(eN,eB);return n.onReadyBeingFired=[],e6.resolve(nS(()=>r(e.vip))).then(t)}}))).finally(()=>{n.onReadyBeingFired=null,n.isBeingOpened=!1}).then(()=>e).catch(t=>{n.dbOpenError=t;try{s&&s.abort()}catch(e){}return a===n.openCanceller&&e._close(),tS(t)}).finally(()=>{n.openComplete=!0,i()})}(this)}_close(){let e=this._state,t=tO.indexOf(this);if(t>=0&&tO.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new e6(t=>{e.dbReadyResolve=t}),e.openCanceller=new e6((t,n)=>{e.cancelOpen=n})}close(){this._close();let e=this._state;this._options.autoOpen=!1,e.dbOpenError=new eE.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){let e=arguments.length>0,t=this._state;return new e6((n,r)=>{let a=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=tc(()=>{!function({indexedDB:e,IDBKeyRange:t},n){nD(e)||n===tN||nE(e,t).delete(n).catch(eB)}(this._deps,this.name),n()}),e.onerror=nr(r),e.onblocked=this._fireOnBlocked};if(e)throw new eE.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(a):a()})}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){let e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return M(this._allTables).map(e=>this._allTables[e])}transaction(){let e=nz.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r,a,o=e2.trans;o&&o.db===this&&-1===e.indexOf("!")||(o=null);let i=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(a=t.map(e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t}),"r"==e||e===tj)r=tj;else{if("rw"!=e&&e!=tR)throw new eE.InvalidArgument("Invalid transaction mode: "+e);r=tR}if(o){if(o.mode===tj&&r===tR){if(!i)throw new eE.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&a.forEach(e=>{if(o&&-1===o.storeNames.indexOf(e)){if(!i)throw new eE.SubTransaction("Table "+e+" not included in parent transaction.");o=null}}),i&&o&&!o.active&&(o=null)}}catch(e){return o?o._promise(null,(t,n)=>{n(e)}):tS(e)}let s=(function e(t,n,r,a,o){return e6.resolve().then(()=>{let i,s=e2.transless||e2,l=t._createTransaction(n,r,t._dbSchema,a);if(a)l.idbtrans=a.idbtrans;else try{l.create(),t._state.PR1398_maxLoop=3}catch(a){return a.name===ew.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>e(t,n,r,null,o))):tS(a)}let c=ef(o);c&&tg();let u=e6.follow(()=>{if(i=o.call(l,l))if(c){var e=tb.bind(null,null);i.then(e,e)}else"function"==typeof i.next&&"function"==typeof i.throw&&(i=nB(i))},{trans:l,transless:s});return(i&&"function"==typeof i.then?e6.resolve(i).then(e=>l.active?e:tS(new eE.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):u.then(()=>i)).then(e=>(a&&l._resolve(),l._completion.then(()=>e))).catch(e=>(l._reject(e),tS(e)))})}).bind(null,this,r,a,o,n);return o?o._promise(r,s,"lock"):e2.trans?tx(e2.transless,()=>this._whenReady(s)):this._whenReady(s)}table(e){if(!j(this._allTables,e))throw new eE.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}let nW="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class nK{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[nW](){return this}}function nY(e,t){return M(t).forEach(n=>{nL(e[n]||(e[n]=new nj),t[n])}),e}try{r={indexedDB:T.indexedDB||T.mozIndexedDB||T.webkitIndexedDB||T.msIndexedDB,IDBKeyRange:T.IDBKeyRange||T.webkitIDBKeyRange}}catch(e){r={indexedDB:null,IDBKeyRange:null}}function nJ(e){let t=nZ;try{nZ=!0,ns.storagemutated.fire(e)}finally{nZ=t}}R(nq,{...eS,delete:e=>new nq(e,{addons:[]}).delete(),exists:e=>new nq(e,{addons:[]}).open().then(e=>(e.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(e){try{return(function({indexedDB:e,IDBKeyRange:t}){return nD(e)?Promise.resolve(e.databases()).then(e=>e.map(e=>e.name).filter(e=>e!==tN)):nE(e,t).toCollection().primaryKeys()})(nq.dependencies).then(e)}catch(e){return tS(new eE.MissingAPI)}},defineClass:()=>function(e){F(this,e)},ignoreTransaction:e=>e2.trans?tx(e2.transless,e):e(),vip:nS,async:function(e){return function(){try{var t=nB(e.apply(this,arguments));return t&&"function"==typeof t.then?t:e6.resolve(t)}catch(e){return tS(e)}}},spawn:function(e,t,n){try{var r=nB(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:e6.resolve(r)}catch(e){return tS(e)}},currentTransaction:{get:()=>e2.trans||null},waitFor:function(e,t){let n=e6.resolve("function"==typeof e?nq.ignoreTransaction(e):e).timeout(t||6e4);return e2.trans?e2.trans.waitFor(n):n},Promise:e6,debug:{get:()=>em,set:e=>{em=e,eh="dexie"===e?()=>!0:tI}},derive:H,extend:F,props:R,override:K,Events:tU,on:ns,liveQuery:function(e){let t,n=!1,r=new nK(r=>{let a=ef(e),o=!1,i={},s={},l={get closed(){return o},unsubscribe:()=>{o=!0,ns.storagemutated.unsubscribe(p)}};r.start&&r.start(l);let c=!1,u=!1;function d(){return M(s).some(e=>i[e]&&function(e,t){let n=nV(t),r=n.next();if(r.done)return!1;let a=r.value,o=nV(e),i=o.next(a.from),s=i.value;for(;!r.done&&!i.done;){if(0>=t0(s.from,a.to)&&t0(s.to,a.from)>=0)return!0;0>t0(a.from,s.from)?a=(r=n.next(s.from)).value:s=(i=o.next(a.from)).value}return!1}(i[e],s[e]))}let p=e=>{nY(i,e),d()&&f()},f=()=>{let m,h;if(c||o)return;i={};let g={},b=(a&&tg(),m=()=>t_(e,{subscr:g,trans:null}),h=e2.trans?tx(e2.transless,m):m(),a&&h.then(tb,tb),h);u||(ns(no,p),u=!0),c=!0,Promise.resolve(b).then(e=>{n=!0,t=e,c=!1,o||(d()?f():(i={},s=g,r.next&&r.next(e)))},e=>{c=!1,n=!1,r.error&&r.error(e),l.unsubscribe()})};return f(),l});return r.hasValue=()=>n,r.getValue=()=>t,r},extendObservabilitySet:nY,getByKeyPath:X,setByKeyPath:Q,delByKeyPath:function(e,t){"string"==typeof t?Q(e,t,void 0):"length"in t&&[].map.call(t,function(t){Q(e,t,void 0)})},shallowClone:ee,deepClone:ei,getObjectDiff:nM,cmp:t0,asap:J,minKey:tP,addons:[],connections:tO,errnames:ew,dependencies:r,semVer:tB,version:tB.split(".").map(e=>parseInt(e)).reduce((e,t,n)=>e+t/Math.pow(10,2*n))}),nq.maxKey=np(nq.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(ns(no,e=>{if(!nZ){let t;tF?(t=document.createEvent("CustomEvent")).initCustomEvent(ni,!0,!0,e):t=new CustomEvent(ni,{detail:e}),nZ=!0,dispatchEvent(t),nZ=!1}}),addEventListener(ni,({detail:e})=>{nZ||nJ(e)}));let nZ=!1;if("undefined"!=typeof BroadcastChannel){let e=new BroadcastChannel(ni);"function"==typeof e.unref&&e.unref(),ns(no,t=>{nZ||e.postMessage(t)}),e.onmessage=e=>{e.data&&nJ(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){ns(no,e=>{try{nZ||("undefined"!=typeof localStorage&&localStorage.setItem(ni,JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(t=>t.postMessage({type:ni,changedParts:e})))}catch(e){}}),"undefined"!=typeof addEventListener&&addEventListener("storage",e=>{if(e.key===ni){let t=JSON.parse(e.newValue);t&&nJ(t.changedParts)}});let e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",function({data:e}){e&&e.type===ni&&nJ(e.changedParts)})}e6.rejectionMapper=function(e,t){if(!e||e instanceof e$||e instanceof TypeError||e instanceof SyntaxError||!e.name||!eD[e.name])return e;var n=new eD[e.name](t||e.message,e);return"stack"in e&&V(n,"stack",{get:function(){return this.inner.stack}}),n},eh=tI;var nX=n(70937),nQ=n(467);function n0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class n1 extends nq{constructor(){super("EsmOffline"),n0(this,"syncQueue",void 0),n0(this,"dynamicOfflineData",void 0),this.version(4).stores({syncQueue:"++id,userId,type,[userId+type]",dynamicOfflineData:"++id,type,identifier,*users,&[type+identifier]"}),this.syncQueue=this.table("syncQueue"),this.dynamicOfflineData=this.table("dynamicOfflineData")}}function n2(){return new n1}let n3=new n1,n4={},n5=(0,nQ.Zd)("offline-synchronization",{});function n6(){return n5}async function n7(){if(n5.getState().synchronization)return;let e=await n3.syncQueue.count(),t={},n=Object.entries(n4),r=n.length,a={},o=new AbortController,i=()=>{let e=n5.getState().synchronization;n5.setState({synchronization:{...e,pendingCount:e.pendingCount-1}})};try{n5.setState({synchronization:{totalCount:e,pendingCount:e,abortController:o}});for(let e=0;e<r&&n.length>0;e++)for(let e=n.length;e--;){let[r,s]=n[e],l=s.dependsOn.map(e=>t[e]);l.every(Boolean)&&(a[r]={},await Promise.all(l),t[r]=n8(s,a,o,i),n.splice(e,1))}await Promise.allSettled(Object.values(t))}finally{n5.setState({synchronization:void 0})}}async function n8({type:e,dependsOn:t,process:n},r,a,o){let i=[],s=[],l=await n9();await n3.syncQueue.where({type:e,userId:l}).each((e,t)=>{i.push([t.primaryKey,e.content,e.descriptor]),s.push(e.content)});for(let c=0;c<i.length;c++){let[u,d,{id:p,dependencies:f=[]}]=i[c];try{let o=await n(d,{abort:a,index:c,items:s,userId:l,dependencies:f.map(({id:e,type:n})=>t.includes(n)?r[n][e]:void 0)});void 0!==p&&(r[e][p]=o),await n3.syncQueue.delete(u)}catch(e){await n3.syncQueue.update(u,{lastError:{name:e?.name,message:e?.message??e?.toString()}})}finally{o()}}}async function n9(){let e=await (0,nX.xC)();return e?.uuid||"*"}async function re(e,t,n,r){let a=r&&r.id;return void 0!==a&&await n3.syncQueue.where({type:t,userId:e}).filter(e=>e?.descriptor.id===a).delete().catch(nq.errnames.DatabaseClosed),await n3.syncQueue.add({type:t,content:n,userId:e,descriptor:r||{},createdOn:new Date}).catch(nq.errnames.DatabaseClosed,()=>-1)}async function rt(e,t,n){let r=await n9();return await re(r,e,t,n)}async function rn(e,t){return(await rr(e,t)).map(e=>e.content)}async function rr(e,t){return await n3.syncQueue.where(t?{type:t,userId:e}:{userId:e}).toArray().catch(nq.errnames.DatabaseClosed,()=>[])}async function ra(e){let t=await n9();return await rn(t,e)}async function ro(e){let t=await n9();return await rr(t,e)}async function ri(e){return await n3.syncQueue.get(e).catch(nq.errnames.DatabaseClosed,()=>void 0)}function rs(e){return!!n4[e]?.options.onBeginEditSyncItem}async function rl(e){let t=await ri(e);if(!t)throw Error(`No sync item with the ID ${e} exists.`);let n=n4[t.type]?.options.onBeginEditSyncItem;if(!n)throw Error(`A sync item with the ID ${e} exists, but the associated handler (if one exists) doesn't support editing the item. You can avoid this error by either verifying that sync items of this type can be edited via the "canEditSynchronizationItemsOfType(type: string)" function or alternatively ensure that the synchronizaton handler for sync items of type "${t.type}" supports editing items.`);n(t)}async function rc(e){await n3.syncQueue.delete(e).catch(nq.errnames.DatabaseClosed)}function ru(e,t,n,r={}){n4[e]={type:e,dependsOn:t,process:n,options:r}}let rd="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),rp=new Uint8Array(16),rf=[];for(let e=0;e<256;++e)rf.push((e+256).toString(16).slice(1));let rm=function(e,t,n){if(rd&&!t&&!e)return rd();let r=(e=e||{}).random||(e.rng||function(){if(!a&&!(a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(rp)})();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return rf[e[t+0]]+rf[e[t+1]]+rf[e[t+2]]+rf[e[t+3]]+"-"+rf[e[t+4]]+rf[e[t+5]]+"-"+rf[e[t+6]]+rf[e[t+7]]+"-"+rf[e[t+8]]+rf[e[t+9]]+"-"+rf[e[t+10]]+rf[e[t+11]]+rf[e[t+12]]+rf[e[t+13]]+rf[e[t+14]]+rf[e[t+15]]}(r)},rh="OFFLINE+";function r_(){return rh+rm()}function rg(e){return e.startsWith(rh)}let rb={};function ry(){return Object.values(rb)}function rv(e){rb[e.id]&&console.warn(`[setupDynamicOfflineDataHandler] Another second handler with the ID "${e.id}" was registered. This handler will override the previous one. This could be unintended as the previous handler might run different flows than the newly registered one. If this is the case, ensure that you are setting up the handlers with different IDs.`),rb[e.id]=e}async function rA(e){let t=await rS();return await r$(t,e)}async function r$(e,t){let n=new n1;return await n.dynamicOfflineData.where(t?{type:t,users:e}:{users:e}).toArray().catch(nq.errnames.DatabaseClosed,()=>[])}async function rk(e,t){let n=await rS();return await rx(n,e,t)}async function rx(e,t,n){let r=new n1,a=await r.dynamicOfflineData.get({type:t,identifier:n}).catch(nq.errnames.DatabaseClosed,()=>void 0);a?a.users.includes(e)||await r.dynamicOfflineData.update(a.id,{users:[...a.users,e]}).catch(nq.errnames.DatabaseClosed):await r.dynamicOfflineData.add({users:[e],type:t,identifier:n}).catch(nq.errnames.DatabaseClosed)}async function rC(e,t){let n=await rS();return await rw(n,e,t)}async function rw(e,t,n){let r=new n1,a=await r.dynamicOfflineData.get({type:t,identifier:n,users:e}).catch(nq.errnames.DatabaseClosed,()=>void 0);a&&(a.users.length>1?await r.dynamicOfflineData.update(a.id,{users:a.users.filter(t=>t!==e)}).catch(nq.errnames.DatabaseClosed):await r.dynamicOfflineData.delete(a.id).catch(nq.errnames.DatabaseClosed))}async function rE(e,t){let n=await rA(e);await Promise.all(n.map(async e=>rD(e.type,e.identifier,t)))}async function rD(e,t,n){await rk(e,t);let r=new n1,a=await rS(),o=await r.dynamicOfflineData.get({type:e,identifier:t}).catch(nq.errnames.DatabaseClosed,()=>void 0),i=ry().filter(t=>t.type===e);if(!o)return;let s=await Promise.all(i.map(async e=>{try{return e.sync(t,n),{id:e.id,error:void 0}}catch(n){let t=n.message?.toString()??n.toString();return{id:e.id,error:t}}})),l=s.filter(e=>!e.error).map(e=>e.id),c=s.filter(e=>e.error).map(e=>e.id),u=s.filter(e=>e.error).map(e=>({handlerId:e.id,message:e.error})),d={syncedOn:new Date,syncedBy:a,succeededHandlers:l,erroredHandlers:c,errors:u};o.id&&await r.dynamicOfflineData.update(o.id,{syncState:d}).catch(nq.errnames.DatabaseClosed)}async function rS(){let e=(await (0,nX.xC)()).uuid;if(!e)throw Error("Using the dynamic offline data API requires a logged in user.");return e}let rB=(0,nQ.Zd)("offline-patients",{offlinePatientDataSyncState:{},handlers:{}});function rz(){return rM(),rB}function rP(e,t){rM(),rv({type:"patient",displayName:t.displayName,id:e,isSynced:()=>Promise.resolve(!0),sync:(e,n)=>t.onOfflinePatientAdded({patientUuid:e,signal:n??new AbortController().signal})})}async function rT(e){rM(),await rD("patient",e)}function rM(){console.warn("The offline patient API has been deprecated and will be removed in a future release. To prevent future crashes, the functions remain available for the moment, but any invocations should be migrated ASAP.")}},44408:function(e,t,n){"use strict";let r;n.d(t,{fq:()=>eG,JK:()=>j,if:()=>eS,tQ:()=>eI,YY:()=>c,E4:()=>es,zD:()=>ee,g9:()=>L,uL:()=>g,kH:()=>ez,br:()=>y,Gz:()=>eu,M3:()=>eM,qw:()=>B,Wq:()=>ec,rr:()=>h,oU:()=>ej,wV:()=>eq,d7:()=>ea,Jm:()=>eT,xH:()=>eH,W3:()=>A,zq:()=>o,Ie:()=>H,CH:()=>ef,ns:()=>R,vL:()=>eC,xl:()=>eD,Us:()=>G,UK:()=>Q,fS:()=>D,yJ:()=>Y,u:()=>ep,to:()=>eg,iy:()=>ev,_9:()=>K,Bf:()=>e$,Tt:()=>q,CX:()=>b,Ed:()=>em,p6:()=>E,Wr:()=>eP,TA:()=>eB,F7:()=>N,qv:()=>eE,sc:()=>V,WQ:()=>eO,Pj:()=>f,i_:()=>s,$B:()=>el,oq:()=>ex,wJ:()=>eN,mQ:()=>m,wr:()=>eU,mw:()=>eb,jn:()=>w,Fx:()=>er});var a=n(35400);let o=(0,a.createContext)({moduleName:"",featureName:""});var i=n(17744);function s({to:e,templateParams:t,onBeforeNavigate:n,children:r,...o}){return(0,a.useEffect)(()=>{o.href&&console.warn(`ConfigurableLink does not support the href prop. Use the 'to' prop instead. The provided href value is '${o.href}'`),o.onClick&&console.warn(`ConfigurableLink does not support the onClick prop. Use the 'onBeforeNavigate' prop instead. The 'to' prop of the offending link is ${e}`)},[]),a.createElement("a",{onClick:r=>{0===r.button&&!r.ctrlKey&&!r.shiftKey&&!r.altKey&&!r.metaKey&&(r.preventDefault(),n?.(r),(0,i.oo)({to:e,templateParams:t})),0===r.button&&(r.ctrlKey||r.metaKey)&&n?.(r),0===r.button&&r.shiftKey&&n?.(r),1===r.button&&n?.(r)},href:(0,i.JG)(e,t),...o},r)}var l=n(11621);let c=({state:e,children:t,...n})=>{let{extension:r}=(0,a.useContext)(o),i=(0,a.useRef)(null),s=(0,a.useRef)(Promise.resolve()),c=(0,a.useCallback)(t=>{r?.extensionSlotName&&r.extensionSlotModuleName&&r.extensionSlotModuleName&&!i.current&&(0,l.wG)(t,r.extensionSlotName,r.extensionSlotModuleName,r.extensionId,void 0,e).then(e=>{i.current=e})},[]);return(0,a.useEffect)(()=>()=>{if(i&&i.current)switch(i.current.getStatus()){case"MOUNTING":i.current.mountPromise.then(()=>{i.current?.getStatus()==="MOUNTED"&&i.current.unmount()});break;case"MOUNTED":i.current.unmount();break;case"UPDATING":s.current&&s.current.then(()=>{i.current?.getStatus()==="MOUNTED"&&i.current.unmount()})}},[]),(0,a.useEffect)(()=>{i.current&&i.current.update&&"UNMOUNTING"!==i.current.getStatus()&&Promise.all([i.current.mountPromise,s.current]).then(()=>{i?.current?.getStatus()==="MOUNTED"&&i.current.update&&(s.current=i.current.update({...e}).catch(e=>{if(!(e instanceof Error)||!e.message.includes("minified message #32")||i.current?.getStatus()==="MOUNTED")throw e}))})},[e]),r?a.createElement("div",{ref:c,"data-extension-id":r?.extensionId,style:{position:"relative"},...n}):null};var u=n(467);function d(e,t){"function"==typeof t&&(t=t(e));let n={};for(let[r,a]of Object.entries(t)){let t=function(...t){e.setState(e=>a(e,...t))};n[r]=t}return n}let p=()=>e=>e;function f(e,t=p(),n){let[r,o]=(0,a.useState)(()=>t(e.getState()));(0,a.useEffect)(()=>(0,u.i7)(e,t,o),[e,t]);let i=(0,a.useMemo)(()=>n?d(e,n):{},[e,n]);return{...r,...i}}function m(e,t){return f(e,p(),t)}function h(e){return function(t){let[n,r]=(0,a.useState)(e.getState());(0,a.useEffect)(()=>e.subscribe(e=>r(e)),[]);let o=(0,a.useMemo)(()=>t?d(e,t):{},[t]);return{...n,...o}}}let g=e=>f((0,l.zF)(),t=>t.slots?.[e]);function b(e){let t=g(e);return t?.assignedExtensions??[]}function y(e){let{moduleName:t}=(0,a.useContext)(o);if(!t)throw Error("ComponentContext has not been provided. This should come from @openmrs/esm-react-utils.");return(0,a.useEffect)(()=>{(0,l.FY)(t,e)},[]),{extensions:b(e),extensionSlotName:e,extensionSlotModuleName:t}}function v(e){return e}function A({name:e,extensionSlotName:t,select:n=v,children:r,state:i,style:s,...l}){if(r&&i)throw Error("Both children and state have been provided. If children are provided, the state must be passed as a prop to the `Extension` component.");let u=e??t,d=(0,a.useRef)(null),{extensions:p,extensionSlotModuleName:f}=y(u),m=(0,a.useMemo)(()=>n(p),[n,p]),h=(0,a.useMemo)(()=>{if("function"==typeof r&&!a.isValidElement(r))return m.map(e=>r(e,i))},[r,m]);return a.createElement("div",{ref:d,"data-extension-slot-name":u,"data-extension-slot-module-name":f,style:{...s,position:"relative"},...l},u&&m?.map((e,t)=>a.createElement(o.Provider,{key:e.id,value:{moduleName:f,featureName:"",extension:{extensionId:e.id,extensionSlotName:u,extensionSlotModuleName:f}}},h?.[t]??("function"!=typeof r?r:null)??a.createElement(c,{state:i}))))}let $=(0,n(58644).y)()(()=>({}));(0,u.CE)("openmrs-app-context",$);let k={};function x(e,t){$.setState(n=>(e in n||(n[e]={}),n[e]=t(n[e]),Object.assign({},n)))}var C=n(90108);function w(e,t){let n=(0,a.useRef)(t??{}),r=(0,a.useRef)(t=>x(e,t));return(0,a.useEffect)(()=>(!function(e,t=k){$.setState(n=>{if(e in n)throw Error(`Attempted to re-register namespace ${e} in the app context. Each namespace must be unregistered before the name can be registered again.`);return Object.assign({},n,{[e]:t===k?{}:t})})}(e,t??{}),()=>{$.setState(t=>(e in t&&delete t[e],t))}),[e]),(0,a.useEffect)(()=>{let r=t??{};(0,C.b)(n.current,r)||(x(e,()=>r),n.current=r)},[t]),r.current}function E({namespace:e,value:t}){return w(e,t),null}let D=({children:e,value:t,fallback:n})=>t?a.createElement(a.Fragment,null,e):n?a.createElement(a.Fragment,null,n):null;var S=n(70937);let B=({privilege:e,fallback:t,children:n})=>{let[r,o]=(0,a.useState)(null);return((0,a.useEffect)(()=>{let e=(0,S.HW)({includeAuthStatus:!1}).subscribe(o);return()=>e.unsubscribe()},[]),r&&(0,S.st)(e,r))?a.createElement(a.Fragment,null,n):t?a.createElement(a.Fragment,null,t):null};var z=n(25873),P=n(6309),T=n(58088),M=n(13624);let O={strictMode:!0,throwErrorsToConsole:!0,disableTranslations:!1},F=new Map,I={errorRetryCount:3,fetcher:S.lo,focusThrottleInterval:18e5,revalidateIfStale:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,provider:()=>F};function N(e){if("object"!=typeof e||"string"!=typeof e.featureName||"string"!=typeof e.moduleName)throw Error("Invalid options");let t=Object.assign({},O,e),n={...I,...t.swrConfig};return function(e){var r,i,s,l,c;return s=i=class extends(r=a.Component){componentDidCatch(e,n){n&&n.componentStack&&(e.extra=Object.assign(e.extra||{},{componentStack:n.componentStack})),t.throwErrorsToConsole&&setTimeout(()=>{throw e}),this.setState({caughtError:e,caughtErrorInfo:n})}render(){if(this.state.caughtError)return a.createElement("div",null,"An error has occurred. Please try reloading the page.");{let r=a.createElement(a.Suspense,{fallback:null},a.createElement(M.BE,{value:n},a.createElement(o.Provider,{value:this.state.config},t.disableTranslations?a.createElement(e,this.props):a.createElement(T.I18nextProvider,{i18n:window.i18next,defaultNS:this.state.config.extension?`${this.state.config.moduleName}___${this.state.config.extension.extensionSlotName}___${this.state.config.extension.extensionId}`:this.state.config.moduleName},a.createElement(e,this.props)))));return t.strictMode&&a.StrictMode?a.createElement(a.StrictMode,null,r):r}}constructor(e){super(e),this.state={caughtError:null,caughtErrorInfo:null,config:{moduleName:t.moduleName,featureName:t.featureName,extension:e._extensionContext}}}},l="displayName",c=`OpenmrsReactComponent(${t.featureName})`,l in s?Object.defineProperty(s,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[l]=c,i}}function j(e,t){return(0,P.A)({React:a,ReactDOMClient:z,rootComponent:N(t)(e)})}function R(e,t){return()=>e().then(({default:e})=>j(e,t))}function L(e,t){return()=>Promise.resolve(j(e,t))}let V=R;function H(){let e=(0,a.useRef)();return(!e.current||e.current.signal.aborted)&&(e.current=new AbortController),(0,a.useEffect)(()=>{let t=e.current;return()=>t?.abort()},[]),e.current}function G(e,t=e=>e??{}){let[n,r]=(0,a.useState)();return(0,a.useEffect)(()=>{if(null==e||""===e.replace(" ",""))throw Error(`The namespace supplied to useAppContext must be a non-empty string, but was "${e}".`)},[e]),(0,a.useEffect)(()=>{var a;let o;return(a=e=>{if(void 0!==e){let a=t?t(e):e??{};(0,C.b)(n,a)||r(a)}})(Object.freeze(Object.assign({},o=function(e,t=e=>e){let n=$.getState();return e in n?Object.freeze(Object.assign({},t?t(n[e]):n[e])):null}(e)))),$.subscribe(t=>{let n=e in t?t[e]:null;n!==o&&(o=n,a(Object.freeze(Object.assign({},n))))})},[]),n}var U=n(47427);function q(e){let[t,n]=(0,a.useState)([]);return(0,a.useEffect)(()=>(0,l.zF)().subscribe(r=>{let a=r.slots[e]?.assignedExtensions.map(e=>e.id)??[];(0,U.A)(a,t)||n(a)}),[]),t}var W=n(30924);function K(e,t){let{data:n,error:r,mutate:o,isLoading:i,isValidating:s}=(0,M.Ay)(`${W.Zu}?patient=${e}&includeEncounterless=${t}`,S.lo);return(0,a.useMemo)(()=>({isLoading:i,data:n?.data.results??[],error:r,mutate:o,isValidating:s}),[n,r,i,s,o])}function Y(e){(0,a.useEffect)(()=>{if(e){let e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])}var J=n(13070);let Z={},X=`No ComponentContext has been provided. This should come from "openmrsComponentDecorator".
22
- Usually this is already applied when using "getAsyncLifecycle" or "getSyncLifecycle".`;function Q(e){let{moduleName:t,extension:n}=(0,a.useContext)(o),r=e?.externalModuleName??t;if(!r&&!n)throw Error(X);let i=function(e){let t=(0,a.useMemo)(()=>(0,J.IS)(e),[e]),n=function(e){let[t,n]=(0,a.useState)(()=>{let t=e.getState();return t.loaded&&t.config?t.config:null});return(0,a.useEffect)(()=>e?.subscribe(e=>{e.loaded&&e.config&&n(e.config)}),[e]),t}(t);if(!n)throw Z[e]||(Z[e]=new Promise(e=>{let n=t.subscribe(t=>{t.loaded&&t.config&&(e(t.config),n())})})),Z[e];return n}(r),s=function(e){let t=(0,a.useMemo)(J.GI,[]),n=function(e,t){let[n,r]=(0,a.useState)(t?()=>{let n=e.getState(),r=(0,J.P0)(n,t.extensionSlotName,t.extensionId);if(r.loaded&&r.config)return r.config}:null);return(0,a.useEffect)(()=>{if(t)return e.subscribe(e=>{let a=(0,J.P0)(e,t.extensionSlotName,t.extensionId);a.loaded&&a.config&&!(0,U.A)(a.config,n)&&r(a.config)})},[e,t,n]),n}(t,e);if(!n&&e){let n=`${e.extensionSlotName}-${e.extensionId}`;throw!Z[n]&&t&&(Z[n]=new Promise(n=>{let r=t.subscribe(t=>{let a=(0,J.P0)(t,e.extensionSlotName,e.extensionId);a.loaded&&a.config&&(n(a.config),r())})})),Z[n]}return n||{}}(n);return(0,a.useMemo)(()=>e?.externalModuleName&&r===e.externalModuleName?{...i}:{...i,...s},[r,e?.externalModuleName,i,s])}let ee=b;var et=n(27760),en=n(9826);function er(){let[e,t]=(0,a.useState)((0,en.s)());return(0,a.useEffect)(()=>(0,et.gj)(({online:e})=>t(e)),[]),e}function ea(e,t=300){let[n,r]=(0,a.useState)(e);return(0,a.useEffect)(()=>{let n=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(n)}},[e,t]),n}var eo=n(36142);let ei=`custom:${[["admissionDecisionConcept","ref"],["admissionEncounterType","ref"],["admissionForm","ref"],["atFacilityVisitType","ref"],["bedAssignmentEncounterType","ref"],["cancelADTRequestEncounterType","ref"],["checkInClerkEncounterRole","ref"],["checkInEncounterType","ref"],["clinicianEncounterRole","ref"],["conceptSourcesForDiagnosisSearch","ref"],["consultEncounterType","ref"],["consultFreeTextCommentsConcept","ref"],["denyAdmissionConcept","ref"],["diagnosisMetadata","ref"],["diagnosisSets","ref"],["dischargeForm","ref"],["dispositionDescriptor","ref"],["dispositions","ref"],["emrApiConceptSource","ref"],["exitFromInpatientEncounterType","ref"],["extraPatientIdentifierTypes","ref"],["fullPrivilegeLevel","ref"],["highPrivilegeLevel","ref"],["identifierTypesToSearch","ref"],["inpatientNoteEncounterType","ref"],["lastViewedPatientSizeLimit","ref"],["metadataSourceName","ref"],["motherChildRelationshipType","ref"],["narrowerThanConceptMapType","ref"],["nonDiagnosisConceptSets","ref"],["orderingProviderEncounterRole","ref"],["patientDiedConcept","ref"],["personImageDirectory","ref"],["primaryIdentifierType","ref"],["sameAsConceptMapType","ref"],["suppressedDiagnosisConcepts","ref"],["supportsAdmissionLocationTag","(uuid,display,name,links)"],["supportsLoginLocationTag","(uuid,display,name,links)"],["supportsTransferLocationTag","(uuid,display,name,links)"],["supportsVisitsLocationTag","(uuid,display,name,links)"],["telephoneAttributeType","ref"],["testPatientPersonAttributeType","ref"],["transferForm","ref"],["transferRequestEncounterType","ref"],["transferWithinHospitalEncounterType","ref"],["unknownCauseOfDeathConcept","ref"],["unknownLocation","ref"],["unknownPatientPersonAttributeType","ref"],["unknownProvider","ref"],["visitAssignmentHandlerAdjustEncounterTimeOfDayIfNecessary","ref"],["visitExpireHours","ref"],["visitNoteEncounterType","ref"]].map(([e,t])=>`${e}:${t}`).join(",")}`;function es(){let e=eo(`${S.Jj}/emrapi/configuration?v=${ei}`,S.lo);return(0,a.useMemo)(()=>({emrConfiguration:e.data?.data,isLoadingEmrConfiguration:e.isLoading,mutateEmrConfiguration:e.mutate,errorFetchingEmrConfiguration:e.error}),[e])}let el=h((0,l.a9)());function ec(e){let t=b(e);return(0,a.useMemo)(()=>Object.fromEntries(t.map(e=>[e.name,e.meta])),[t])}let eu=h((0,l.zF)());var ed=n(10201);function ep(e){let{flags:t}=f(ed.jX);return t[e]?.enabled??!1}function ef(){let[,e]=(0,a.useState)(0);return(0,a.useCallback)(()=>{e(e=>e+1)},[])}function em(e,t,n={}){return e_(e,t,eh,n)}let eh={getPaginatedUrl:(e,t,n)=>{if(!e)return null;{let r=new URL((0,S.Gm)(e.toString()),window.location.toString());return r.searchParams.set("limit",""+t),r.searchParams.set("startIndex",""+n),r.searchParams.set("totalCount","true"),r.toString()}},getNextUrl:e=>{let t=e?.links?.find(e=>"next"==e.rel)?.uri;if(!t)return null;{let e=new URL(t);return e.host=window.location.host,e.protocol=window.location.protocol,e.toString()}},getTotalCount:e=>e?.totalCount??NaN,getCurrentPageSize:e=>e?.results?.length??NaN,getData:e=>e?.results};function e_(e,t,n,r={}){let{getPaginatedUrl:o,getTotalCount:i,getCurrentPageSize:s,getData:l}=n,{immutable:c,swrConfig:u}=r,d=r.fetcher??S.lo,[p,f]=(0,a.useState)(1),m=(0,a.useRef)(NaN),h=(0,a.useRef)(NaN),g=(p-1)*t,b=(0,a.useMemo)(()=>o(e,t,g),[e,t,g]),{data:y,...v}=(c?eo:M.Ay)(b,d,u);y?.data&&(m.current=i(y?.data),h.current=s(y?.data));let A=Math.ceil(m.current/t),$=(0,a.useCallback)(e=>{0<e&&e<=A?f(e):console.warn("Invalid attempt to go to out of bounds page: "+e)},[e,p,A]),k=(0,a.useCallback)(()=>{$(p+1)},[e,p,A]),x=(0,a.useCallback)(()=>{$(p-1)},[e,p,A]);return{data:l(y?.data),totalPages:A,totalCount:m.current,currentPage:p,currentPageSize:h,paginated:A>1,showNextButton:p<A,showPreviousButton:p>1,goTo:$,goToNext:k,goToPrevious:x,...v}}function eg(e,t,n={}){return e_(e,t,eb(),n)}function eb(){return{getPaginatedUrl:(e,t,n)=>{if(!e)return null;{let r=new URL((0,S.Gm)(e.toString()),window.location.toString());return r.searchParams.set("_count",""+t),r.searchParams.set("_getpagesoffset",""+n),r.toString()}},getNextUrl:e=>{let t=e?.link?.find(e=>"next"==e.relation)?.url;if(!t)return null;{let e=new URL(t);return e.host=window.location.host,e.protocol=window.location.protocol,e.toString()}},getTotalCount:e=>e?.total??NaN,getCurrentPageSize:e=>e?.entry?.length??NaN,getData:e=>e?.entry?.map(e=>e.resource)}}var ey=n(97744);function ev(e,t={}){return eA(e,eh,t)}function eA(e,t,n={}){let{swrInfiniteConfig:r,immutable:o}=n,{getNextUrl:i,getTotalCount:s,getData:l}=t,c=n.fetcher??S.lo,{data:u,size:d,setSize:p,...f}=ey((0,a.useCallback)((n,r)=>0==n?e?.toString()??null:t.getNextUrl(r.data),[e]),c,{...r,...o?{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1}:{}}),m=i(u?.[u.length-1].data),h=s(u?.[0]?.data);return{data:u?.flatMap(e=>l(e.data)),totalCount:h,hasMore:null!=m,loadMore:()=>{p((u?.length??0)+1)},nextUri:m,...f}}function e$(e,t={}){return ek(e,eh,t)}function ek(e,t,n={}){let r=eA(e,t,n),{hasMore:o,error:i,data:s,loadMore:l,isLoading:c,nextUri:u}=r;return((0,a.useEffect)(()=>{o&&!i&&l()},[o,u]),n.partialData)?r:{...r,data:o||i?void 0:s,isLoading:c||o}}function ex(e,t={}){return ek(e,eb(),t)}function eC(e,t={}){return eA(e,eb(),t)}function ew(){let e="tablet";return document.body.classList.forEach(t=>{switch(t){case"omrs-breakpoint-lt-tablet":e="phone";break;case"omrs-breakpoint-gt-small-desktop":e="large-desktop";break;case"omrs-breakpoint-gt-tablet":e="small-desktop"}}),e}function eE(){let[e,t]=(0,a.useState)(ew);return(0,a.useEffect)(()=>{let e=()=>{t(ew())};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}let eD=e=>"small-desktop"===e||"large-desktop"===e;function eS(e){let t=(0,a.useContext)(o);(0,a.useEffect)(()=>(t&&t.moduleName&&(e.componentContext=t),(0,l.Vx)(e),()=>{(0,l.sr)(e.name)}),[t,e])}function eB(){return f(l.Gp)}function ez(e=null,t=null){let[n,r]=(0,a.useState)([]);return(0,a.useEffect)(()=>{let n=(0,W.Vs)(e,t).subscribe(e=>{r(e)},e=>{console.error(e)});return()=>n.unsubscribe()},[e,t]),n}function eP(e,t=!0){let n=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let r=r=>{!t||!n.current||n.current.contains(r.target)||e(r)};return window.addEventListener("mousedown",r),window.addEventListener("touchstart",r),()=>{window.removeEventListener("mousedown",r),window.removeEventListener("touchstart",r)}},[e,t]),n}function eT(e){let t=(0,a.useRef)();return(0,a.useEffect)(()=>{let n=new IntersectionObserver(t=>{for(let n of t)if(n.isIntersecting)return void e()},{threshold:1});return t.current&&n.observe(t.current),()=>{t.current&&n.unobserve(t.current)}},[t.current,e]),t}function eM(e,t={}){let{abortController:n,fetchInit:r,url:o,swrConfig:i}=t,s=H(),l=(0,a.useMemo)(()=>r?.signal??n?.signal??s.signal,[n?.signal,r?.signal,s.signal]),c=(0,a.useCallback)(e=>{let t=function(e,t){if(t)return"function"==typeof t?t(e):t;if("string"==typeof e)return e;throw Error(`When using useOpenmrsSWR with a key that is not a string, you must provide a url() function that converts the key to a valid url. The key for this hook is ${e}.`)}(e,o);return(0,S.lo)(t,{...r,signal:l})},[l,r,o]);return(0,M.Ay)(e,c,i)}function eO(e=[],t=10){let[n,r]=(0,a.useState)(1),o=(0,a.useMemo)(()=>"number"==typeof t&&t>0?Math.max(1,Math.ceil(e.length/t)):1,[e.length,t]),i=(0,a.useMemo)(()=>{let r=(n-1)*t,a=(n+0)*t;return e.slice(r,a)},[e,n,t]),s=(0,a.useCallback)(e=>{r(Math.max(1,Math.min(o,e)))},[r,o]),l=(0,a.useCallback)(()=>{n<o&&r(n+1)},[n,o,r]),c=(0,a.useCallback)(()=>{n>1&&r(n-1)},[n,r]);return(0,a.useMemo)(()=>({results:i,totalPages:o,currentPage:n,paginated:e.length>t,showNextButton:n<o,showPreviousButton:n>1,goTo:s,goToNext:l,goToPrevious:c}),[i,o,e.length,t,n,s,l,c])}function eF(){let e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]}function eI(e){let[t,n]=(0,a.useState)(e??eF()),{data:r,error:o,isValidating:i}=(0,M.Ay)(t?["patient",t]:null,()=>(0,W.hG)(t,{}));return(0,a.useEffect)(()=>{let e=()=>{let e=eF();e!==t&&n(e)};return window.addEventListener("single-spa:routing-event",e),()=>window.removeEventListener("single-spa:routing-event",e)},[t]),(0,a.useMemo)(()=>({isLoading:i&&!o&&!r,patient:r,patientUuid:t,error:o}),[i,o,r,t])}function eN(){let e=`${S.Jj}/metadatamapping/termmapping?v=custom:(metadataUuid)&code=emr.primaryIdentifierType`,{data:t,error:n,isLoading:r}=(0,M.Ay)(e,S.lo);return(0,a.useMemo)(()=>({primaryIdentifierCode:t?.data?.results[0]?.metadataUuid,isLoading:r,error:n}),[t,n,r])}function ej(e){let{extensions:t,extensionSlotModuleName:n}=y(e);return e?t.map(t=>({state:r})=>a.createElement(o.Provider,{value:{moduleName:n,featureName:"",extension:{extensionId:t.id,extensionSlotName:e,extensionSlotModuleName:n}}},a.createElement(c,{state:r}))):[]}var eR=n(23464),eL=n(85602);let eV={setVisitContext:(e,t)=>null==t?{manuallySetVisitUuid:null}:{manuallySetVisitUuid:t.uuid,patientUuid:t.patient?.uuid},mutateVisit(e){for(let t of Object.values(e.mutateVisitCallbacks??{}))t();return{}}};function eH(e){let t=(0,a.useId)();return(0,a.useEffect)(()=>{let n=(0,W.BX)();return e&&n.setState({mutateVisitCallbacks:{...n.getState().mutateVisitCallbacks,[t]:e}}),()=>{if(e){let e={...n.getState().mutateVisitCallbacks};delete e[t],n.setState({mutateVisitCallbacks:e})}}},[t,e]),m((0,W.BX)(),eV)}function eG(e,t=W.Rb){let{patientUuid:n,manuallySetVisitUuid:r,setVisitContext:o}=eH(),i=e&&n==e?r:null,s=`?patient=${e}&v=${t}&includeInactive=false`,l=`/${i}?v=${t}`,{data:c,error:u,mutate:d,isValidating:p}=(0,M.Ay)(e?`${S.Jj}/visit${s}`:null,S.lo),{data:f,error:m,mutate:h,isValidating:g}=(0,M.Ay)(e&&i?`${S.Jj}/visit${l}`:null,S.lo),b=(0,a.useMemo)(()=>c?.data.results.find(e=>null===e.stopDatetime)??null,[c]),y=(0,a.useMemo)(()=>i&&f?f.data:null,[f,i]),v=(0,a.useRef)(null);(0,a.useEffect)(()=>{!p&&b&&n===e&&null===r&&o(b),g||(v.current&&y&&v.current.uuid===y.uuid&&!v.current.stopDatetime&&y.stopDatetime&&o(null),v.current=y)},[y,r,b,p,g,n]);let A=(0,a.useCallback)(()=>{d(),h()},[d,h]);return eH(A),{error:u||m,mutate:A,isValidating:p||g,activeVisit:b,currentVisit:y,currentVisitIsRetrospective:!!i,isLoading:!!((!c||i&&!f)&&(!u||!m))}}function eU(){let[e,t]=(0,a.useState)([]);return(0,a.useEffect)(()=>{let e=(0,W.Pu)().subscribe(e=>{t(e)},e=>console.error(e));return()=>e.unsubscribe()},[]),e}function eq(){let e=(0,a.useRef)(),[t,n]=(0,a.useState)(null),o=null;if(!t){if(r){let e=(0,S.EW)().getState();e.loaded&&(o=e.session)}else r=new Promise(t=>{let n=({loaded:n,session:r})=>{n&&(t(r),o=r,e.current&&(e.current(),e.current=void 0))};n((0,S.EW)().getState()),o||(e.current=(0,S.EW)().subscribe(n))});if(o)n(o);else throw r}(0,a.useEffect)(()=>(e.current||(e.current=(0,S.EW)().subscribe(({loaded:e,session:t})=>{e&&(o=t,n(t))})),()=>{e.current&&(e.current(),e.current=void 0)}),[]);let i=t||o;if(!i)if(r)throw console.warn("useSession is in an unexpected state. Attempting to recover."),r;else throw Error("useSession is in an invalid state.");return i}eR.extend(eL)},467:function(e,t,n){"use strict";n.d(t,{i7:()=>c,jf:()=>l,CE:()=>s,Zd:()=>i});var r=n(90108),a=n(58644);let o={};function i(e,t){let n=o[e];if(n)return n.active?console.error(`Attempted to override the existing store ${e}. Make sure that stores are only created once.`):n.value.setState(t,!0),n.active=!0,n.value;{let n=(0,a.y)()(()=>t);return o[e]={value:n,active:!0},n}}function s(e,t){let n=o[e];return n?(n.active?console.error(`Attempted to override the existing store ${e}. Make sure that stores are only created once.`):n.value=t,n.active=!0,n.value):(o[e]={value:t,active:!0},t)}function l(e,t){let n=o[e];if(!n){let n=(0,a.y)()(()=>t??{});return o[e]={value:n,active:!1},n}return n.value}function c(...e){let[t,n,a]=e,o=void 0===a?n:a,i=void 0===a?e=>e:n;return o(i(t.getState())),t.subscribe((e,t)=>{let n=i(e);(0,r.b)(t,n)||o(n)})}setTimeout(()=>{window&&"development"===window.spaEnv&&(window.stores=o)},1e3)},61836:function(e,t,n){"use strict";n.d(t,{V:()=>G,t:()=>H});let r={address1:"Address line 1",address2:"Address line 2",address3:"Address line 3",address4:"Address line 4",address5:"Address line 5",address6:"Address line 6",city:"City",cityVillage:"City",country:"Country",countyDistrict:"District",district:"District",postalCode:"Postal code",state:"State",stateProvince:"State",closeAllOpenedWorkspaces:"Discard changes in {{count}} workspaces",closingAllWorkspacesPromptBody:"There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",closingAllWorkspacesPromptTitle:"You have unsaved changes",discard:"Discard",hide:"Hide",maximize:"Maximize",minimize:"Minimize",openAnyway:"Open anyway",unsavedChangesInOpenedWorkspace:"You may have unsaved changes in the opened workspace. Do you want to discard these changes?",unsavedChangesInWorkspace:'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',unsavedChangesTitleText:"Unsaved changes",workspaceHeader:"Workspace header",actions:"Actions",address:"Address",age:"Age",cancel:"Cancel",change:"Change",Clinic:"Clinic",close:"Close",confirm:"Confirm",contactAdministratorIfIssuePersists:"Contact your system administrator if the problem persists.",contactDetails:"Contact details",delete:"Delete",edit:"Edit",error:"Error",errorCopy:"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.",female:"Female",loading:"Loading",male:"Male",other:"Other",patientIdentifierSticker:"Patient identifier sticker",patientLists:"Patient lists",print:"Print",printError:"Print error",printErrorExplainer:"An error occurred in {{errorLocation}}",printIdentifierSticker:"Print identifier sticker",printing:"Printing",relationships:"Relationships",resetOverrides:"Reset overrides",save:"Save",scriptLoadingFailed:"Error: Script failed to load",scriptLoadingError:"Failed to load overridden script from {{url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.",seeMoreLists:"See {{count}} more lists",sex:"Sex",showLess:"Show less",showMore:"Show more",toggleDevTools:"Toggle dev tools",unknown:"Unknown"};var a=n(85761),o=n(93442);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})),r.forEach(function(t){(0,o.A)(e,t,n[t])})}return e}var s=n(79736),l=n(36678);function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){if(t&&("object"==(0,a.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return c(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=n(98423);function f(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,p.A)(e,t)}var m={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},h=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.A)(this,e),this.init(t,n)}return(0,l.A)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||m,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),g=function(){function e(){(0,s.A)(this,e),this.observers={}}return(0,l.A)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function b(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function y(e){return null==e?"":""+e}function v(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(a())return{};var i=r(o.shift());!e[i]&&n&&(e[i]=new n),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return a()?{}:{obj:e,k:r(o.shift())}}function A(e,t,n){var r=v(e,t,Object);r.obj[r.k]=n}function $(e,t){var n=v(e,t),r=n.obj,a=n.k;if(r)return r[a]}function k(e,t,n){var r=$(e,n);return void 0!==r?r:$(t,n)}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var C={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function w(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return C[e]}):e}var E="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,D=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,s.A)(this,t),n=u(this,d(t).call(this)),E&&g.call(c(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return f(t,e),(0,l.A)(t,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=[e,t];return n&&"string"!=typeof n&&(o=o.concat(n)),n&&"string"==typeof n&&(o=o.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(o=e.split(".")),$(this.data,o)}},{key:"addResource",value:function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var i=[e,t];n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split("."),r=t,t=i[1]),this.addNamespaces(t),A(this.data,i,r),a.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var a in n)("string"==typeof n[a]||"[object Array]"===Object.prototype.toString.apply(n[a]))&&this.addResource(e,t,a,n[a],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),r=n,n=t,t=s[1]),this.addNamespaces(t);var l=$(this.data,s)||{};r?function e(t,n,r){for(var a in n)"__proto__"!==a&&"constructor"!==a&&(a in t?"string"==typeof t[a]||t[a]instanceof String||"string"==typeof n[a]||n[a]instanceof String?r&&(t[a]=n[a]):e(t[a],n[a],r):t[a]=n[a]);return t}(l,n,a):l=i({},l,n),A(this.data,s,l),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(g),S={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,a){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,a))}),t}},B={},z=function(e){function t(e){var n,r,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.A)(this,t),a=u(this,d(t).call(this)),E&&g.call(c(a)),n=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=c(a),n.forEach(function(t){e[t]&&(r[t]=e[t])}),a.options=o,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a.logger=h.create("translator"),a}return f(t,e),(0,l.A)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:a};var i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(a=i.shift()),e=i.join(r)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==(0,a.A)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],n),c=l.key,u=l.namespaces,d=u[u.length-1],p=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase())return f?d+(n.nsSeparator||this.options.nsSeparator)+c:c;var m=this.resolve(e,n),h=m&&m.res,g=m&&m.usedKey||c,b=m&&m.exactUsedKey||c,y=Object.prototype.toString.apply(h),v=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,$="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(A&&h&&$&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(y)&&("string"!=typeof v||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,n):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(s){var k="[object Array]"===y,x=k?[]:{},C=k?b:g;for(var w in h)if(Object.prototype.hasOwnProperty.call(h,w)){var E="".concat(C).concat(s).concat(w);x[w]=this.translate(E,i({},n,{joinArrays:!1,ns:u})),x[w]===E&&(x[w]=h[w])}h=x}}else if(A&&"string"==typeof v&&"[object Array]"===y)(h=h.join(v))&&(h=this.extendTranslation(h,e,n,r));else{var D=!1,S=!1,B=void 0!==n.count&&"string"!=typeof n.count,z=t.hasDefaultValue(n),P=B?this.pluralResolver.getSuffix(p,n.count):"",T=n["defaultValue".concat(P)]||n.defaultValue;!this.isValidLookup(h)&&z&&(D=!0,h=T),this.isValidLookup(h)||(S=!0,h=c);var M=z&&T!==h&&this.options.updateMissing;if(S||D||M){if(this.logger.log(M?"updateKey":"missingKey",p,d,c,M?T:h),s){var O=this.resolve(c,i({},n,{keySeparator:!1}));O&&O.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var N=0;N<I.length;N++)F.push(I[N]);else"all"===this.options.saveMissingTo?F=this.languageUtils.toResolveHierarchy(n.lng||this.language):F.push(n.lng||this.language);var j=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,d,t,M?r:h,M,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,d,t,M?r:h,M,n),o.emit("missingKey",e,d,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?F.forEach(function(e){o.pluralResolver.getSuffixes(e).forEach(function(t){j([e],c+t,n["defaultValue".concat(t)]||T)})}):j(F,c,T))}h=this.extendTranslation(h,e,n,m,r),S&&h===c&&this.options.appendNamespaceToMissingKey&&(h="".concat(d,":").concat(c)),S&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(i({},n,{interpolation:i({},this.options.interpolation,n.interpolation)}));var s,l=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=e.match(this.interpolator.nestingRegexp);s=c&&c.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=i({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),l){var d=e.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return a&&a[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,r.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var p=n.postProcess||this.options.postProcess,f="string"==typeof p?[p]:p;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=S.handle(f,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,a,o,i=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!i.isValidLookup(t)){var l=i.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;i.options.fallbackNS&&(u=u.concat(i.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,f=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);u.forEach(function(e){i.isValidLookup(t)||(o=e,!B["".concat(f[0],"-").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(o)&&(B["".concat(f[0],"-").concat(e)]=!0,i.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(function(n){if(!i.isValidLookup(t)){a=n;var o,l,u=c,f=[u];for(i.i18nFormat&&i.i18nFormat.addLookupKeys?i.i18nFormat.addLookupKeys(f,c,n,e,s):(d&&(o=i.pluralResolver.getSuffix(n,s.count)),d&&p&&f.push(u+o),p&&f.push(u+="".concat(i.options.contextSeparator).concat(s.context)),d&&f.push(u+=o));l=f.pop();)i.isValidLookup(t)||(r=l,t=i.getResource(n,e,l,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:a,usedNS:o}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(g);function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var T=function(){function e(t){(0,s.A)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=h.create("languageUtils")}return(0,l.A)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=P(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=P(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=P(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(r))&&(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(r))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],o=function(e){e&&(n.isSupportedCode(e)?a.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach(function(e){0>a.indexOf(e)&&o(n.formatLanguageCode(e))}),a}}]),e}(),M=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],O={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},F=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.A)(this,e),this.languageUtils=t,this.options=r,this.logger=h.create("pluralResolver"),this.rules=(n={},M.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:O[e.fc]}})}),n)}return(0,l.A)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map(function(e){return t+e})}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map(function(n){return t.getSuffix(e,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var a=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),o=r.numbers[a];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON?i():this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?i():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),I=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.A)(this,e),this.logger=h.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,l.A)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:w,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?x(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?x(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?x(t.nestingPrefix):t.nestingPrefixEscaped||x("$t("),this.nestingSuffix=t.nestingSuffix?x(t.nestingSuffix):t.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var a,o,i,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(0>e.indexOf(s.formatSeparator)){var a=k(t,l,e);return s.alwaysFormat?s.format(a,void 0,n):a}var o=e.split(s.formatSeparator),i=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(k(t,l,i),c,n,r)};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach(function(t){for(i=0;a=t.regex.exec(e);){if(void 0===(o=u(a[1].trim())))if("function"==typeof d){var n=d(e,a,r);o="string"==typeof n?n:""}else if(p){o=a[0];continue}else s.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(e)),o="";else"string"==typeof o||s.useRawValueToEscape||(o=y(o));if(e=e.replace(a[0],t.safeValue(o)),t.regex.lastIndex=0,++i>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i({},o);function l(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),a="{".concat(r[1]);e=r[0],a=(a=this.interpolate(a,s)).replace(/'/g,'"');try{s=JSON.parse(a),t&&(s=i({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(a)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],u=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=d.shift(),c=d,u=!0}if((r=t(l.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=y(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=c.reduce(function(e,t){return a.format(e,t,o.lng,o)},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),N=function(e){function t(e,n,r){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,s.A)(this,t),a=u(this,d(t).call(this)),E&&g.call(c(a)),a.backend=e,a.store=n,a.services=r,a.languageUtils=r.languageUtils,a.options=o,a.logger=h.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(r,o.backend,o),a}return f(t,e),(0,l.A)(t,[{key:"queueLoad",value:function(e,t,n,r){var a=this,o=[],i=[],s=[],l=[];return e.forEach(function(e){var r=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&a.store.hasResourceBundle(e,t)?a.state[s]=2:a.state[s]<0||(1===a.state[s]?0>i.indexOf(s)&&i.push(s):(a.state[s]=1,r=!1,0>i.indexOf(s)&&i.push(s),0>o.indexOf(s)&&o.push(s),0>l.indexOf(t)&&l.push(t)))}),r||s.push(e)}),(o.length||i.length)&&this.queue.push({pending:i,loaded:{},errors:[],callback:r}),{toLoad:o,pending:i,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),a=r[0],o=r[1];t&&this.emit("failedLoading",a,o,t),n&&this.store.addResourceBundle(a,o,n),this.state[e]=t?-1:2;var i={};this.queue.forEach(function(n){r=n.loaded,(c=(l=v(r,[a],Object)).obj)[u=l.k]=c[u]||[],s||c[u].push(o);for(var r,s,l,c,u,d=n.pending,p=d.indexOf(e);-1!==p;)d.splice(p,1),p=d.indexOf(e);t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach(function(e){i[e]||(i[e]=[]),n.loaded[e].length&&n.loaded[e].forEach(function(t){0>i[e].indexOf(t)&&i[e].push(t)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,i=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,function(s,l){s&&l&&a<5?setTimeout(function(){r.read.call(r,e,t,n,a+1,2*o,i)},o):i(s,l)}):i(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,function(r,i){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(a," failed"),r),!r&&i&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(a),i),t.loaded(e,r,i)})}},{key:"saveMissing",value:function(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==n||""===n||(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,i({},o,{isUpdate:a})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(g);function j(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&0>e.whitelist.indexOf("cimode")&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function R(){}var L=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if((0,s.A)(this,t),e=u(this,d(t).call(this)),E&&g.call(c(e)),e.options=j(n),e.services={},e.logger=h,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),u(e,c(e));setTimeout(function(){e.init(n,r)},0)}return e}return f(t,e),(0,l.A)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,a.A)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,a.A)(e[2])||"object"===(0,a.A)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,j(t)),this.format=this.options.interpolation.format,n||(n=R),!this.options.isClone){this.modules.logger?h.init(r(this.modules.logger),this.options):h.init(null,this.options);var o=new T(this.options);this.store=new D(this.options.resources,this.options);var s=this.services;s.logger=h,s.resourceStore=this.store,s.languageUtils=o,s.pluralResolver=new F(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new N(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];e.emit.apply(e,[t].concat(r))}),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new z(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];e.emit.apply(e,[t].concat(r))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=b(),u=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R,r=n,a="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(a&&"cimode"===a.toLowerCase())return r();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>o.indexOf(e)&&o.push(e)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return i(e)}),this.options.preload&&this.options.preload.forEach(function(e){return i(e)}),this.services.backendConnector.load(o,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=b();return e||(e=this.languages),t||(t=this.options.ns),n||(n=R),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&S.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=b();this.emit("languageChanging",e);var a=function(e,a){a?(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},o=function(e){var t="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);t&&(n.language||(n.language=t,n.languages=n.services.languageUtils.toResolveHierarchy(t)),n.translator.language||n.translator.changeLanguage(t),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(t)),n.loadResources(t,function(e){a(e,t)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var o;if("object"!==(0,a.A)(r)){for(var s=arguments.length,l=Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];o=n.options.overloadTranslationOptionHandler([t,r].concat(l))}else o=i({},r);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],a=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===r||2===r};if(n.precheck){var s=n.precheck(this,i);if(void 0!==s)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||i(r,e)&&(!a||i(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=b();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=b();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],a=e.filter(function(e){return 0>r.indexOf(e)});return a.length?(this.options.preload=r.concat(a),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R,a=i({},this.options,n,{isClone:!0}),o=new t(a);return["store","services","language"].forEach(function(t){o[t]=e[t]}),o.services=i({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new z(o.services,o.options),o.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),o.init(a,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}}]),t}(g));let V=L.default||L;function H(e,t,n,r){return V.t(t,{ns:e,defaultValue:n,...r})}function G(e,t,n){return r[e]?H("core",e,t??r[e],n):(console.error(`O3 Core Translations does not provide key '${e}'. The key itself is being rendered as text.`),e)}V.on("initialized",function(){window.i18next.loadNamespaces(["core"])})},40785:function(e,t,n){"use strict";n.d(t,{K:()=>c});var r=n(18140),a=n(8902),o=n(23464),i=n(44397),s=n(51803),l=n(42729);function c(e,t=o()){let n;if(null==e)return null;let i=(0,l.J)(),u=o(t);if("string"==typeof e){let t=(0,a.CD)(e,i);if(t.invalid)return console.warn(`Could not interpret '${e}' as a date`),null;t.day&&!t.month&&(t=Object.assign({},(0,s.A)(t,"day"),{month:t.day})),t.month&&(t.month-=1),t.day&&(t=Object.assign({},(0,s.A)(t,"day"),{date:t.day})),n=o(u).set(t)}else n=o(e);let d=u.diff(n,"hours"),p=u.diff(n,"days"),f=u.diff(n,"weeks"),m=u.diff(n,"months"),h=u.diff(n,"years"),g={},b={style:"short",localeMatcher:"lookup"};if(d<2){let e=u.diff(n,"minutes");g.minutes=e,0===e&&(b.minutesDisplay="always")}else if(p<2)g.hours=d;else if(f<4)g.days=p;else if(h<1){let e=u.subtract(f,"weeks").diff(n,"days");g.weeks=f,g.days=e}else if(h<2){let e=u.subtract(m,"months").diff(n,"days");g.months=m,g.days=e}else if(h<18){let e=u.subtract(h,"year").diff(n,"months");g.years=h,g.months=e}else g.years=h;return new r.DurationFormat(i,b).format(g)}o.extend(i)},22613:function(e,t,n){"use strict";n.d(t,{Rt:()=>z,vU:()=>b,hl:()=>g,XE:()=>x,fU:()=>B,a3:()=>T,LW:()=>E,_U:()=>A,d4:()=>P,l0:()=>v,a7:()=>C,kQ:()=>y,Yq:()=>D});var r=n(31530),a=n(32878),o=n(18140),i=n(8902),s=n(23464),l=n(85602),c=n(44397),u=n(57657);let d=function(e){return null==e};var p=n(51803),f=n(42729);function m(e,t){var n=function(e,t,n){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t,0);return n.get?n.get.call(e):n.value}s.extend(l),s.extend(u),s.extend(c);let h="YYYY-MM-DDTHH:mm:ss.SSSZZ";function g(e){return null!=e&&28===e.trim().length&&"T"===(e=e.trim())[10]&&":"===e[13]&&":"===e[16]&&"."===e[19]&&("+"===e[23]||"-"===e[23])&&s(e,h).isValid()}function b(e){return s(e).isToday()}function y(e){return g(e)?s(e,h).toDate():null}function v(e,t=!1){let n=s(e);return t&&(n=n.utc()),n.format(h)}function A(e){return s(e).toDate()}var $=new WeakMap;let k=new class{register(e,t){m(this,$).set(e,t)}getCalendar(e){if(!e)return;if(e.calendar)return e.calendar;if(e.region){let t=`${e.language}-${e.region}`;if(m(this,$).has(t))return m(this,$).get(t)}if(e.language&&m(this,$).has(e.language))return m(this,$).get(e.language);let t=new Intl.DateTimeFormat(e.toString()).resolvedOptions().calendar;return m(this,$).set(`${e.language}${e.region?`-${e.region}`:""}`,t),t}constructor(){!function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,$,{writable:!0,value:new Map})}};function x(e,t){k.register(e,t)}function C(e){let t=e??(0,f.J)();return k.getCalendar(t instanceof Intl.Locale?t:new Intl.Locale(t))}let w={mode:"standard",time:"for today",day:!0,month:!0,year:!0,noToday:!1};function E(e,t={}){let n=(0,f.J)(),r=(0,i.CD)(e,n);if(r.invalid)return console.warn(`Could not parse invalid date '${e}'`),null;!d(r.day)&&d(r.month)&&(r=Object.assign({},(0,p.A)(r,"day"),{month:r.day})),r.month&&(r.month-=1),r.day&&(r=Object.assign({},(0,p.A)(r,"day"),{date:r.day}));let a=s().set(r).toDate();return d(r.year)&&(t.year=!1),d(r.month)&&(t.month=!1),d(r.date)&&(t.day=!1),D(a,t)}function D(e,t){let n,r=t?.locale??(0,f.J)(),a=new Intl.Locale(r),{calendar:o,mode:i,time:l,day:c,month:u,year:d,noToday:p,numberingSystem:m}={...w,...{noToday:"am"===a.language},...t},h={calendar:o??C(a),year:d?"numeric":void 0,month:u?"short":void 0,day:c?"2-digit":void 0,numberingSystem:m},g=s(e).isToday();if(g&&!p)n=(n=new Intl.RelativeTimeFormat(r,{numeric:"auto"}).format(0,"day"))[0].toLocaleUpperCase(r)+n.slice(1);else{"en"===a.language&&(r="en-GB");let t=new Intl.DateTimeFormat(r,h).formatToParts(e);("en"===a.language||"am"===a.language)&&"standard"==i&&d&&c&&(t=t.map(S("-"))),"wide"==i&&(t=t.map(S(" — "))),"ethiopic"===h.calendar&&(t=t.filter((e,t,n)=>"era"!==e.type&&("literal"!==e.type||!(t<n.length-1)||"era"!==n[t+1].type))),n=t.map(e=>e.value).join("")}return(!0===l||g&&"for today"===l)&&(n+=`, ${B(e)}`),n}let S=e=>(t,n,r)=>"literal"!==t.type||" "!==t.value||n<r.length-1&&"era"===r[n+1].type?t:{type:"literal",value:e};function B(e){return e.toLocaleTimeString((0,f.J)(),{hour:"2-digit",minute:"2-digit"})}function z(e,t){return D(e,{...t,time:!0})}function P(e,t){let n=C("string"==typeof t?new Intl.Locale(t):t);return n?(0,r.yP)(e,(0,a.d)(n)):e}function T(e,t){return new o.DurationFormat((0,f.J)(),t).format(e)}},42729:function(e,t,n){"use strict";function r(){let e=window.i18next.language;return"ht"===(e=e.replace("_","-"))&&(e="fr-HT"),e}n.d(t,{J:()=>r})},9826:function(e,t,n){"use strict";function r(e){return!window.offlineEnabled||(e??navigator.onLine)}n.d(t,{s:()=>r})},67943:function(e,t,n){"use strict";function r(e){return o(s(e,"usual","official"))}function a(e){return r(e)}function o(e){var t;let n;return e?e.text??(n=(t=e).given??[],(t.family?n.concat(t.family):n).join(" ")):""}function i(e){return o(e)}function s(e,...t){for(let n of(0==t.length&&(t=["usual"]),t)){let t=e.name?.find(e=>{var t,r;return t=e,r=n,t.use?t.use===r:"usual"===r});if(t)return t}}n.d(t,{QC:()=>a,Qr:()=>o,VO:()=>s,Vp:()=>r,qK:()=>i})},90108:function(e,t,n){"use strict";function r(e,t){if(e===t||Object.is(e,t))return!0;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}if(Array.isArray(t)||"object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);return n.length===r.length&&n.every(n=>e[n]===t[n])}n.d(t,{b:()=>r})},58644:function(e,t,n){"use strict";n.d(t,{y:()=>a});let r=e=>{let t,n=new Set,r=(e,r)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},t,a),n.forEach(n=>n(t,e))}},a=()=>t,o={setState:r,getState:a,getInitialState:()=>i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},i=t=e(r,a,o);return o},a=e=>e?r(e):r}}]);
22
+ Usually this is already applied when using "getAsyncLifecycle" or "getSyncLifecycle".`;function Q(e){let{moduleName:t,extension:n}=(0,a.useContext)(o),r=e?.externalModuleName??t;if(!r&&!n)throw Error(X);let i=function(e){let t=(0,a.useMemo)(()=>(0,J.IS)(e),[e]),n=function(e){let[t,n]=(0,a.useState)(()=>{let t=e.getState();return t.loaded&&t.config?t.config:null});return(0,a.useEffect)(()=>e?.subscribe(e=>{e.loaded&&e.config&&n(e.config)}),[e]),t}(t);if(!n)throw Z[e]||(Z[e]=new Promise(e=>{let n=t.subscribe(t=>{t.loaded&&t.config&&(e(t.config),n())})})),Z[e];return n}(r),s=function(e){let t=(0,a.useMemo)(J.GI,[]),n=function(e,t){let[n,r]=(0,a.useState)(t?()=>{let n=e.getState(),r=(0,J.P0)(n,t.extensionSlotName,t.extensionId);if(r.loaded&&r.config)return r.config}:null);return(0,a.useEffect)(()=>{if(t)return e.subscribe(e=>{let a=(0,J.P0)(e,t.extensionSlotName,t.extensionId);a.loaded&&a.config&&!(0,U.A)(a.config,n)&&r(a.config)})},[e,t,n]),n}(t,e);if(!n&&e){let n=`${e.extensionSlotName}-${e.extensionId}`;throw!Z[n]&&t&&(Z[n]=new Promise(n=>{let r=t.subscribe(t=>{let a=(0,J.P0)(t,e.extensionSlotName,e.extensionId);a.loaded&&a.config&&(n(a.config),r())})})),Z[n]}return n||{}}(n);return(0,a.useMemo)(()=>e?.externalModuleName&&r===e.externalModuleName?{...i}:{...i,...s},[r,e?.externalModuleName,i,s])}let ee=b;var et=n(27760),en=n(9826);function er(){let[e,t]=(0,a.useState)((0,en.s)());return(0,a.useEffect)(()=>(0,et.gj)(({online:e})=>t(e)),[]),e}function ea(e,t=300){let[n,r]=(0,a.useState)(e);return(0,a.useEffect)(()=>{let n=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(n)}},[e,t]),n}var eo=n(36142);let ei=`custom:${[["admissionDecisionConcept","ref"],["admissionEncounterType","ref"],["admissionForm","ref"],["atFacilityVisitType","ref"],["bedAssignmentEncounterType","ref"],["cancelADTRequestEncounterType","ref"],["checkInClerkEncounterRole","ref"],["checkInEncounterType","ref"],["clinicianEncounterRole","ref"],["conceptSourcesForDiagnosisSearch","ref"],["consultEncounterType","ref"],["consultFreeTextCommentsConcept","ref"],["denyAdmissionConcept","ref"],["diagnosisMetadata","ref"],["diagnosisSets","ref"],["dischargeForm","ref"],["dispositionDescriptor","ref"],["dispositions","ref"],["emrApiConceptSource","ref"],["exitFromInpatientEncounterType","ref"],["extraPatientIdentifierTypes","ref"],["fullPrivilegeLevel","ref"],["highPrivilegeLevel","ref"],["identifierTypesToSearch","ref"],["inpatientNoteEncounterType","ref"],["lastViewedPatientSizeLimit","ref"],["metadataSourceName","ref"],["motherChildRelationshipType","ref"],["narrowerThanConceptMapType","ref"],["nonDiagnosisConceptSets","ref"],["orderingProviderEncounterRole","ref"],["patientDiedConcept","ref"],["personImageDirectory","ref"],["primaryIdentifierType","ref"],["sameAsConceptMapType","ref"],["suppressedDiagnosisConcepts","ref"],["supportsAdmissionLocationTag","(uuid,display,name,links)"],["supportsLoginLocationTag","(uuid,display,name,links)"],["supportsTransferLocationTag","(uuid,display,name,links)"],["supportsVisitsLocationTag","(uuid,display,name,links)"],["telephoneAttributeType","ref"],["testPatientPersonAttributeType","ref"],["transferForm","ref"],["transferRequestEncounterType","ref"],["transferWithinHospitalEncounterType","ref"],["unknownCauseOfDeathConcept","ref"],["unknownLocation","ref"],["unknownPatientPersonAttributeType","ref"],["unknownProvider","ref"],["visitAssignmentHandlerAdjustEncounterTimeOfDayIfNecessary","ref"],["visitExpireHours","ref"],["visitNoteEncounterType","ref"]].map(([e,t])=>`${e}:${t}`).join(",")}`;function es(){let e=eo(`${S.Jj}/emrapi/configuration?v=${ei}`,S.lo);return(0,a.useMemo)(()=>({emrConfiguration:e.data?.data,isLoadingEmrConfiguration:e.isLoading,mutateEmrConfiguration:e.mutate,errorFetchingEmrConfiguration:e.error}),[e])}let el=h((0,l.a9)());function ec(e){let t=b(e);return(0,a.useMemo)(()=>Object.fromEntries(t.map(e=>[e.name,e.meta])),[t])}let eu=h((0,l.zF)());var ed=n(10201);function ep(e){let{flags:t}=f(ed.jX);return t[e]?.enabled??!1}function ef(){let[,e]=(0,a.useState)(0);return(0,a.useCallback)(()=>{e(e=>e+1)},[])}function em(e,t,n={}){return e_(e,t,eh,n)}let eh={getPaginatedUrl:(e,t,n)=>{if(!e)return null;{let r=new URL((0,S.Gm)(e.toString()),window.location.toString());return r.searchParams.set("limit",""+t),r.searchParams.set("startIndex",""+n),r.searchParams.set("totalCount","true"),r.toString()}},getNextUrl:e=>{let t=e?.links?.find(e=>"next"==e.rel)?.uri;if(!t)return null;{let e=new URL(t);return e.host=window.location.host,e.protocol=window.location.protocol,e.toString()}},getTotalCount:e=>e?.totalCount??NaN,getCurrentPageSize:e=>e?.results?.length??NaN,getData:e=>e?.results};function e_(e,t,n,r={}){let{getPaginatedUrl:o,getTotalCount:i,getCurrentPageSize:s,getData:l}=n,{immutable:c,swrConfig:u}=r,d=r.fetcher??S.lo,[p,f]=(0,a.useState)(1),m=(0,a.useRef)(NaN),h=(0,a.useRef)(NaN),g=(p-1)*t,b=(0,a.useMemo)(()=>o(e,t,g),[e,t,g]),{data:y,...v}=(c?eo:M.Ay)(b,d,u);y?.data&&(m.current=i(y?.data),h.current=s(y?.data));let A=Math.ceil(m.current/t),$=(0,a.useCallback)(e=>{0<e&&e<=A?f(e):console.warn("Invalid attempt to go to out of bounds page: "+e)},[e,p,A]),k=(0,a.useCallback)(()=>{$(p+1)},[e,p,A]),x=(0,a.useCallback)(()=>{$(p-1)},[e,p,A]);return{data:l(y?.data),totalPages:A,totalCount:m.current,currentPage:p,currentPageSize:h,paginated:A>1,showNextButton:p<A,showPreviousButton:p>1,goTo:$,goToNext:k,goToPrevious:x,...v}}function eg(e,t,n={}){return e_(e,t,eb(),n)}function eb(){return{getPaginatedUrl:(e,t,n)=>{if(!e)return null;{let r=new URL((0,S.Gm)(e.toString()),window.location.toString());return r.searchParams.set("_count",""+t),r.searchParams.set("_getpagesoffset",""+n),r.toString()}},getNextUrl:e=>{let t=e?.link?.find(e=>"next"==e.relation)?.url;if(!t)return null;{let e=new URL(t);return e.host=window.location.host,e.protocol=window.location.protocol,e.toString()}},getTotalCount:e=>e?.total??NaN,getCurrentPageSize:e=>e?.entry?.length??NaN,getData:e=>e?.entry?.map(e=>e.resource)}}var ey=n(97744);function ev(e,t={}){return eA(e,eh,t)}function eA(e,t,n={}){let{swrInfiniteConfig:r,immutable:o}=n,{getNextUrl:i,getTotalCount:s,getData:l}=t,c=n.fetcher??S.lo,{data:u,size:d,setSize:p,...f}=ey((0,a.useCallback)((n,r)=>0==n?e?.toString()??null:t.getNextUrl(r.data),[e]),c,{...r,...o?{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1}:{}}),m=i(u?.[u.length-1].data),h=s(u?.[0]?.data);return{data:u?.flatMap(e=>l(e.data)),totalCount:h,hasMore:null!=m,loadMore:()=>{p((u?.length??0)+1)},nextUri:m,...f}}function e$(e,t={}){return ek(e,eh,t)}function ek(e,t,n={}){let r=eA(e,t,n),{hasMore:o,error:i,data:s,loadMore:l,isLoading:c,nextUri:u}=r;return((0,a.useEffect)(()=>{o&&!i&&l()},[o,u]),n.partialData)?r:{...r,data:o||i?void 0:s,isLoading:c||o}}function ex(e,t={}){return ek(e,eb(),t)}function eC(e,t={}){return eA(e,eb(),t)}function ew(){let e="tablet";return document.body.classList.forEach(t=>{switch(t){case"omrs-breakpoint-lt-tablet":e="phone";break;case"omrs-breakpoint-gt-small-desktop":e="large-desktop";break;case"omrs-breakpoint-gt-tablet":e="small-desktop"}}),e}function eE(){let[e,t]=(0,a.useState)(ew);return(0,a.useEffect)(()=>{let e=()=>{t(ew())};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}let eD=e=>"small-desktop"===e||"large-desktop"===e;function eS(e){let t=(0,a.useContext)(o);(0,a.useEffect)(()=>(t&&t.moduleName&&(e.componentContext=t),(0,l.Vx)(e),()=>{(0,l.sr)(e.name)}),[t,e])}function eB(){return f(l.Gp)}function ez(e=null,t=null){let[n,r]=(0,a.useState)([]);return(0,a.useEffect)(()=>{let n=(0,W.Vs)(e,t).subscribe(e=>{r(e)},e=>{console.error(e)});return()=>n.unsubscribe()},[e,t]),n}function eP(e,t=!0){let n=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let r=r=>{!t||!n.current||n.current.contains(r.target)||e(r)};return window.addEventListener("mousedown",r),window.addEventListener("touchstart",r),()=>{window.removeEventListener("mousedown",r),window.removeEventListener("touchstart",r)}},[e,t]),n}function eT(e){let t=(0,a.useRef)();return(0,a.useEffect)(()=>{let n=new IntersectionObserver(t=>{for(let n of t)if(n.isIntersecting)return void e()},{threshold:1});return t.current&&n.observe(t.current),()=>{t.current&&n.unobserve(t.current)}},[t.current,e]),t}function eM(e,t={}){let{abortController:n,fetchInit:r,url:o,swrConfig:i}=t,s=H(),l=(0,a.useMemo)(()=>r?.signal??n?.signal??s.signal,[n?.signal,r?.signal,s.signal]),c=(0,a.useCallback)(e=>{let t=function(e,t){if(t)return"function"==typeof t?t(e):t;if("string"==typeof e)return e;throw Error(`When using useOpenmrsSWR with a key that is not a string, you must provide a url() function that converts the key to a valid url. The key for this hook is ${e}.`)}(e,o);return(0,S.lo)(t,{...r,signal:l})},[l,r,o]);return(0,M.Ay)(e,c,i)}function eO(e=[],t=10){let[n,r]=(0,a.useState)(1),o=(0,a.useMemo)(()=>"number"==typeof t&&t>0?Math.max(1,Math.ceil(e.length/t)):1,[e.length,t]),i=(0,a.useMemo)(()=>{let r=(n-1)*t,a=(n+0)*t;return e.slice(r,a)},[e,n,t]),s=(0,a.useCallback)(e=>{r(Math.max(1,Math.min(o,e)))},[r,o]),l=(0,a.useCallback)(()=>{n<o&&r(n+1)},[n,o,r]),c=(0,a.useCallback)(()=>{n>1&&r(n-1)},[n,r]);return(0,a.useMemo)(()=>({results:i,totalPages:o,currentPage:n,paginated:e.length>t,showNextButton:n<o,showPreviousButton:n>1,goTo:s,goToNext:l,goToPrevious:c}),[i,o,e.length,t,n,s,l,c])}function eF(){let e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]}function eI(e){let[t,n]=(0,a.useState)(e??eF()),{data:r,error:o,isValidating:i}=(0,M.Ay)(t?["patient",t]:null,()=>(0,W.hG)(t,{}));return(0,a.useEffect)(()=>{let e=()=>{let e=eF();e!==t&&n(e)};return window.addEventListener("single-spa:routing-event",e),()=>window.removeEventListener("single-spa:routing-event",e)},[t]),(0,a.useMemo)(()=>({isLoading:i&&!o&&!r,patient:r,patientUuid:t,error:o}),[i,o,r,t])}function eN(){let e=`${S.Jj}/metadatamapping/termmapping?v=custom:(metadataUuid)&code=emr.primaryIdentifierType`,{data:t,error:n,isLoading:r}=(0,M.Ay)(e,S.lo);return(0,a.useMemo)(()=>({primaryIdentifierCode:t?.data?.results[0]?.metadataUuid,isLoading:r,error:n}),[t,n,r])}function ej(e){let{extensions:t,extensionSlotModuleName:n}=y(e);return e?t.map(t=>({state:r})=>a.createElement(o.Provider,{value:{moduleName:n,featureName:"",extension:{extensionId:t.id,extensionSlotName:e,extensionSlotModuleName:n}}},a.createElement(c,{state:r}))):[]}var eR=n(23464),eL=n(85602);let eV={setVisitContext:(e,t)=>null==t?{manuallySetVisitUuid:null}:{manuallySetVisitUuid:t.uuid,patientUuid:t.patient?.uuid},mutateVisit(e){for(let t of Object.values(e.mutateVisitCallbacks??{}))t();return{}}};function eH(e){let t=(0,a.useId)();return(0,a.useEffect)(()=>{let n=(0,W.BX)();return e&&n.setState({mutateVisitCallbacks:{...n.getState().mutateVisitCallbacks,[t]:e}}),()=>{if(e){let e={...n.getState().mutateVisitCallbacks};delete e[t],n.setState({mutateVisitCallbacks:e})}}},[t,e]),m((0,W.BX)(),eV)}function eG(e,t=W.Rb){let{patientUuid:n,manuallySetVisitUuid:r,setVisitContext:o}=eH(),i=e&&n==e?r:null,s=`?patient=${e}&v=${t}&includeInactive=false`,l=`/${i}?v=${t}`,{data:c,error:u,mutate:d,isValidating:p}=(0,M.Ay)(e?`${S.Jj}/visit${s}`:null,S.lo),{data:f,error:m,mutate:h,isValidating:g}=(0,M.Ay)(e&&i?`${S.Jj}/visit${l}`:null,S.lo),b=(0,a.useMemo)(()=>c?.data.results.find(e=>null===e.stopDatetime)??null,[c]),y=(0,a.useMemo)(()=>i&&f?f.data:null,[f,i]),v=(0,a.useRef)(null);(0,a.useEffect)(()=>{!p&&b&&n===e&&null===r&&o(b),g||(v.current&&y&&v.current.uuid===y.uuid&&!v.current.stopDatetime&&y.stopDatetime&&o(null),v.current=y)},[y,r,b,p,g,n]);let A=(0,a.useCallback)(()=>{d(),h()},[d,h]);return eH(A),{error:u||m,mutate:A,isValidating:p||g,activeVisit:b,currentVisit:y,currentVisitIsRetrospective:!!i,isLoading:!!((!c||i&&!f)&&(!u||!m))}}function eU(){let[e,t]=(0,a.useState)([]);return(0,a.useEffect)(()=>{let e=(0,W.Pu)().subscribe(e=>{t(e)},e=>console.error(e));return()=>e.unsubscribe()},[]),e}function eq(){let e=(0,a.useRef)(),[t,n]=(0,a.useState)(null),o=null;if(!t){if(r){let e=(0,S.EW)().getState();e.loaded&&(o=e.session)}else r=new Promise(t=>{let n=({loaded:n,session:r})=>{n&&(t(r),o=r,e.current&&(e.current(),e.current=void 0))};n((0,S.EW)().getState()),o||(e.current=(0,S.EW)().subscribe(n))});if(o)n(o);else throw r}(0,a.useEffect)(()=>(e.current||(e.current=(0,S.EW)().subscribe(({loaded:e,session:t})=>{e&&(o=t,n(t))})),()=>{e.current&&(e.current(),e.current=void 0)}),[]);let i=t||o;if(!i)if(r)throw console.warn("useSession is in an unexpected state. Attempting to recover."),r;else throw Error("useSession is in an invalid state.");return i}eR.extend(eL)},467:function(e,t,n){"use strict";n.d(t,{i7:()=>c,jf:()=>l,CE:()=>s,Zd:()=>i});var r=n(90108),a=n(58644);let o={};function i(e,t){let n=o[e];if(n)return n.active?console.error(`Attempted to override the existing store ${e}. Make sure that stores are only created once.`):n.value.setState(t,!0),n.active=!0,n.value;{let n=(0,a.y)()(()=>t);return o[e]={value:n,active:!0},n}}function s(e,t){let n=o[e];return n?(n.active?console.error(`Attempted to override the existing store ${e}. Make sure that stores are only created once.`):n.value=t,n.active=!0,n.value):(o[e]={value:t,active:!0},t)}function l(e,t){let n=o[e];if(!n){let n=(0,a.y)()(()=>t??{});return o[e]={value:n,active:!1},n}return n.value}function c(...e){let[t,n,a]=e,o=void 0===a?n:a,i=void 0===a?e=>e:n;return o(i(t.getState())),t.subscribe((e,t)=>{let n=i(e);(0,r.b)(t,n)||o(n)})}setTimeout(()=>{window&&"development"===window.spaEnv&&(window.stores=o)},1e3)},61836:function(e,t,n){"use strict";n.d(t,{V:()=>G,t:()=>H});let r={address1:"Address line 1",address2:"Address line 2",address3:"Address line 3",address4:"Address line 4",address5:"Address line 5",address6:"Address line 6",city:"City",cityVillage:"City",country:"Country",countyDistrict:"District",district:"District",postalCode:"Postal code",state:"State",stateProvince:"State",closeAllOpenedWorkspaces:"Discard changes in {{count}} workspaces",closingAllWorkspacesPromptBody:"There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",closingAllWorkspacesPromptTitle:"You have unsaved changes",discard:"Discard",hide:"Hide",maximize:"Maximize",minimize:"Minimize",openAnyway:"Open anyway",unsavedChangesInOpenedWorkspace:"You may have unsaved changes in the opened workspace. Do you want to discard these changes?",unsavedChangesInWorkspace:'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',unsavedChangesTitleText:"Unsaved changes",workspaceHeader:"Workspace header",actions:"Actions",address:"Address",age:"Age",cancel:"Cancel",change:"Change",Clinic:"Clinic",close:"Close",confirm:"Confirm",contactAdministratorIfIssuePersists:"Contact your system administrator if the problem persists.",contactDetails:"Contact details",delete:"Delete",edit:"Edit",error:"Error",errorCopy:"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.",female:"Female",loading:"Loading",male:"Male",other:"Other",patientIdentifierSticker:"Patient identifier sticker",patientLists:"Patient lists",print:"Print",printError:"Print error",printErrorExplainer:"An error occurred in {{errorLocation}}",printIdentifierSticker:"Print identifier sticker",printing:"Printing",relationships:"Relationships",resetOverrides:"Reset overrides",save:"Save",scriptLoadingFailed:"Error: Script failed to load",scriptLoadingError:"Failed to load overridden script from {{url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.",seeMoreLists:"See {{count}} more lists",sex:"Sex",showLess:"Show less",showMore:"Show more",toggleDevTools:"Toggle dev tools",unknown:"Unknown"};var a=n(85761),o=n(93442);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})),r.forEach(function(t){(0,o.A)(e,t,n[t])})}return e}var s=n(79736),l=n(36678);function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){if(t&&("object"==(0,a.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return c(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=n(98423);function f(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,p.A)(e,t)}var m={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},h=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.A)(this,e),this.init(t,n)}return(0,l.A)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||m,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),g=function(){function e(){(0,s.A)(this,e),this.observers={}}return(0,l.A)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function b(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function y(e){return null==e?"":""+e}function v(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(a())return{};var i=r(o.shift());!e[i]&&n&&(e[i]=new n),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return a()?{}:{obj:e,k:r(o.shift())}}function A(e,t,n){var r=v(e,t,Object);r.obj[r.k]=n}function $(e,t){var n=v(e,t),r=n.obj,a=n.k;if(r)return r[a]}function k(e,t,n){var r=$(e,n);return void 0!==r?r:$(t,n)}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var C={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function w(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return C[e]}):e}var E="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,D=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,s.A)(this,t),n=u(this,d(t).call(this)),E&&g.call(c(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return f(t,e),(0,l.A)(t,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=[e,t];return n&&"string"!=typeof n&&(o=o.concat(n)),n&&"string"==typeof n&&(o=o.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(o=e.split(".")),$(this.data,o)}},{key:"addResource",value:function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var i=[e,t];n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split("."),r=t,t=i[1]),this.addNamespaces(t),A(this.data,i,r),a.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var a in n)("string"==typeof n[a]||"[object Array]"===Object.prototype.toString.apply(n[a]))&&this.addResource(e,t,a,n[a],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),r=n,n=t,t=s[1]),this.addNamespaces(t);var l=$(this.data,s)||{};r?function e(t,n,r){for(var a in n)"__proto__"!==a&&"constructor"!==a&&(a in t?"string"==typeof t[a]||t[a]instanceof String||"string"==typeof n[a]||n[a]instanceof String?r&&(t[a]=n[a]):e(t[a],n[a],r):t[a]=n[a]);return t}(l,n,a):l=i({},l,n),A(this.data,s,l),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(g),S={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,a){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,a))}),t}},B={},z=function(e){function t(e){var n,r,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.A)(this,t),a=u(this,d(t).call(this)),E&&g.call(c(a)),n=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=c(a),n.forEach(function(t){e[t]&&(r[t]=e[t])}),a.options=o,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a.logger=h.create("translator"),a}return f(t,e),(0,l.A)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:a};var i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(a=i.shift()),e=i.join(r)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==(0,a.A)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],n),c=l.key,u=l.namespaces,d=u[u.length-1],p=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase())return f?d+(n.nsSeparator||this.options.nsSeparator)+c:c;var m=this.resolve(e,n),h=m&&m.res,g=m&&m.usedKey||c,b=m&&m.exactUsedKey||c,y=Object.prototype.toString.apply(h),v=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,$="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(A&&h&&$&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(y)&&("string"!=typeof v||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,n):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(s){var k="[object Array]"===y,x=k?[]:{},C=k?b:g;for(var w in h)if(Object.prototype.hasOwnProperty.call(h,w)){var E="".concat(C).concat(s).concat(w);x[w]=this.translate(E,i({},n,{joinArrays:!1,ns:u})),x[w]===E&&(x[w]=h[w])}h=x}}else if(A&&"string"==typeof v&&"[object Array]"===y)(h=h.join(v))&&(h=this.extendTranslation(h,e,n,r));else{var D=!1,S=!1,B=void 0!==n.count&&"string"!=typeof n.count,z=t.hasDefaultValue(n),P=B?this.pluralResolver.getSuffix(p,n.count):"",T=n["defaultValue".concat(P)]||n.defaultValue;!this.isValidLookup(h)&&z&&(D=!0,h=T),this.isValidLookup(h)||(S=!0,h=c);var M=z&&T!==h&&this.options.updateMissing;if(S||D||M){if(this.logger.log(M?"updateKey":"missingKey",p,d,c,M?T:h),s){var O=this.resolve(c,i({},n,{keySeparator:!1}));O&&O.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var N=0;N<I.length;N++)F.push(I[N]);else"all"===this.options.saveMissingTo?F=this.languageUtils.toResolveHierarchy(n.lng||this.language):F.push(n.lng||this.language);var j=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,d,t,M?r:h,M,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,d,t,M?r:h,M,n),o.emit("missingKey",e,d,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?F.forEach(function(e){o.pluralResolver.getSuffixes(e).forEach(function(t){j([e],c+t,n["defaultValue".concat(t)]||T)})}):j(F,c,T))}h=this.extendTranslation(h,e,n,m,r),S&&h===c&&this.options.appendNamespaceToMissingKey&&(h="".concat(d,":").concat(c)),S&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(i({},n,{interpolation:i({},this.options.interpolation,n.interpolation)}));var s,l=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=e.match(this.interpolator.nestingRegexp);s=c&&c.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=i({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),l){var d=e.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return a&&a[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,r.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var p=n.postProcess||this.options.postProcess,f="string"==typeof p?[p]:p;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=S.handle(f,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,a,o,i=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!i.isValidLookup(t)){var l=i.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;i.options.fallbackNS&&(u=u.concat(i.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,f=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);u.forEach(function(e){i.isValidLookup(t)||(o=e,!B["".concat(f[0],"-").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(o)&&(B["".concat(f[0],"-").concat(e)]=!0,i.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(function(n){if(!i.isValidLookup(t)){a=n;var o,l,u=c,f=[u];for(i.i18nFormat&&i.i18nFormat.addLookupKeys?i.i18nFormat.addLookupKeys(f,c,n,e,s):(d&&(o=i.pluralResolver.getSuffix(n,s.count)),d&&p&&f.push(u+o),p&&f.push(u+="".concat(i.options.contextSeparator).concat(s.context)),d&&f.push(u+=o));l=f.pop();)i.isValidLookup(t)||(r=l,t=i.getResource(n,e,l,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:a,usedNS:o}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(g);function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var T=function(){function e(t){(0,s.A)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=h.create("languageUtils")}return(0,l.A)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=P(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=P(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=P(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(r))&&(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(r))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],o=function(e){e&&(n.isSupportedCode(e)?a.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach(function(e){0>a.indexOf(e)&&o(n.formatLanguageCode(e))}),a}}]),e}(),M=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],O={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},F=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.A)(this,e),this.languageUtils=t,this.options=r,this.logger=h.create("pluralResolver"),this.rules=(n={},M.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:O[e.fc]}})}),n)}return(0,l.A)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map(function(e){return t+e})}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map(function(n){return t.getSuffix(e,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var a=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),o=r.numbers[a];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON?i():this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?i():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),I=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.A)(this,e),this.logger=h.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,l.A)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:w,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?x(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?x(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?x(t.nestingPrefix):t.nestingPrefixEscaped||x("$t("),this.nestingSuffix=t.nestingSuffix?x(t.nestingSuffix):t.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var a,o,i,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(0>e.indexOf(s.formatSeparator)){var a=k(t,l,e);return s.alwaysFormat?s.format(a,void 0,n):a}var o=e.split(s.formatSeparator),i=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(k(t,l,i),c,n,r)};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach(function(t){for(i=0;a=t.regex.exec(e);){if(void 0===(o=u(a[1].trim())))if("function"==typeof d){var n=d(e,a,r);o="string"==typeof n?n:""}else if(p){o=a[0];continue}else s.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(e)),o="";else"string"==typeof o||s.useRawValueToEscape||(o=y(o));if(e=e.replace(a[0],t.safeValue(o)),t.regex.lastIndex=0,++i>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i({},o);function l(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),a="{".concat(r[1]);e=r[0],a=(a=this.interpolate(a,s)).replace(/'/g,'"');try{s=JSON.parse(a),t&&(s=i({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(a)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],u=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=d.shift(),c=d,u=!0}if((r=t(l.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=y(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=c.reduce(function(e,t){return a.format(e,t,o.lng,o)},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),N=function(e){function t(e,n,r){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,s.A)(this,t),a=u(this,d(t).call(this)),E&&g.call(c(a)),a.backend=e,a.store=n,a.services=r,a.languageUtils=r.languageUtils,a.options=o,a.logger=h.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(r,o.backend,o),a}return f(t,e),(0,l.A)(t,[{key:"queueLoad",value:function(e,t,n,r){var a=this,o=[],i=[],s=[],l=[];return e.forEach(function(e){var r=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&a.store.hasResourceBundle(e,t)?a.state[s]=2:a.state[s]<0||(1===a.state[s]?0>i.indexOf(s)&&i.push(s):(a.state[s]=1,r=!1,0>i.indexOf(s)&&i.push(s),0>o.indexOf(s)&&o.push(s),0>l.indexOf(t)&&l.push(t)))}),r||s.push(e)}),(o.length||i.length)&&this.queue.push({pending:i,loaded:{},errors:[],callback:r}),{toLoad:o,pending:i,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),a=r[0],o=r[1];t&&this.emit("failedLoading",a,o,t),n&&this.store.addResourceBundle(a,o,n),this.state[e]=t?-1:2;var i={};this.queue.forEach(function(n){r=n.loaded,(c=(l=v(r,[a],Object)).obj)[u=l.k]=c[u]||[],s||c[u].push(o);for(var r,s,l,c,u,d=n.pending,p=d.indexOf(e);-1!==p;)d.splice(p,1),p=d.indexOf(e);t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach(function(e){i[e]||(i[e]=[]),n.loaded[e].length&&n.loaded[e].forEach(function(t){0>i[e].indexOf(t)&&i[e].push(t)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,i=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,function(s,l){s&&l&&a<5?setTimeout(function(){r.read.call(r,e,t,n,a+1,2*o,i)},o):i(s,l)}):i(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,function(r,i){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(a," failed"),r),!r&&i&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(a),i),t.loaded(e,r,i)})}},{key:"saveMissing",value:function(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==n||""===n||(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,i({},o,{isUpdate:a})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(g);function j(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&0>e.whitelist.indexOf("cimode")&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function R(){}var L=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if((0,s.A)(this,t),e=u(this,d(t).call(this)),E&&g.call(c(e)),e.options=j(n),e.services={},e.logger=h,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),u(e,c(e));setTimeout(function(){e.init(n,r)},0)}return e}return f(t,e),(0,l.A)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,a.A)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,a.A)(e[2])||"object"===(0,a.A)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,j(t)),this.format=this.options.interpolation.format,n||(n=R),!this.options.isClone){this.modules.logger?h.init(r(this.modules.logger),this.options):h.init(null,this.options);var o=new T(this.options);this.store=new D(this.options.resources,this.options);var s=this.services;s.logger=h,s.resourceStore=this.store,s.languageUtils=o,s.pluralResolver=new F(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new N(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];e.emit.apply(e,[t].concat(r))}),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new z(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];e.emit.apply(e,[t].concat(r))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=b(),u=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R,r=n,a="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(a&&"cimode"===a.toLowerCase())return r();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>o.indexOf(e)&&o.push(e)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return i(e)}),this.options.preload&&this.options.preload.forEach(function(e){return i(e)}),this.services.backendConnector.load(o,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=b();return e||(e=this.languages),t||(t=this.options.ns),n||(n=R),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&S.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=b();this.emit("languageChanging",e);var a=function(e,a){a?(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},o=function(e){var t="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);t&&(n.language||(n.language=t,n.languages=n.services.languageUtils.toResolveHierarchy(t)),n.translator.language||n.translator.changeLanguage(t),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(t)),n.loadResources(t,function(e){a(e,t)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var o;if("object"!==(0,a.A)(r)){for(var s=arguments.length,l=Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];o=n.options.overloadTranslationOptionHandler([t,r].concat(l))}else o=i({},r);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],a=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===r||2===r};if(n.precheck){var s=n.precheck(this,i);if(void 0!==s)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||i(r,e)&&(!a||i(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=b();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=b();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],a=e.filter(function(e){return 0>r.indexOf(e)});return a.length?(this.options.preload=r.concat(a),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R,a=i({},this.options,n,{isClone:!0}),o=new t(a);return["store","services","language"].forEach(function(t){o[t]=e[t]}),o.services=i({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new z(o.services,o.options),o.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),o.init(a,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}}]),t}(g));let V=L.default||L;function H(e,t,n,r){return V.t(t,{ns:e,defaultValue:n,...r})}function G(e,t,n){return r[e]?H("core",e,t??r[e],n):(console.error(`O3 Core Translations does not provide key '${e}'. The key itself is being rendered as text.`),e)}V.on("initialized",function(){window.i18next.loadNamespaces(["core"])})},40785:function(e,t,n){"use strict";n.d(t,{K:()=>c});var r=n(18140),a=n(8902),o=n(23464),i=n(44397),s=n(92801),l=n(42729);function c(e,t=o()){let n;if(null==e)return null;let i=(0,l.J)(),u=o(t);if("string"==typeof e){let t=(0,a.CD)(e,i);if(t.invalid)return console.warn(`Could not interpret '${e}' as a date`),null;t.day&&!t.month&&(t=Object.assign({},(0,s.A)(t,"day"),{month:t.day})),t.month&&(t.month-=1),t.day&&(t=Object.assign({},(0,s.A)(t,"day"),{date:t.day})),n=o(u).set(t)}else n=o(e);let d=u.diff(n,"hours"),p=u.diff(n,"days"),f=u.diff(n,"weeks"),m=u.diff(n,"months"),h=u.diff(n,"years"),g={},b={style:"short",localeMatcher:"lookup"};if(d<2){let e=u.diff(n,"minutes");g.minutes=e,0===e&&(b.minutesDisplay="always")}else if(p<2)g.hours=d;else if(f<4)g.days=p;else if(h<1){let e=u.subtract(f,"weeks").diff(n,"days");g.weeks=f,g.days=e}else if(h<2){let e=u.subtract(m,"months").diff(n,"days");g.months=m,g.days=e}else if(h<18){let e=u.subtract(h,"year").diff(n,"months");g.years=h,g.months=e}else g.years=h;return new r.DurationFormat(i,b).format(g)}o.extend(i)},22613:function(e,t,n){"use strict";n.d(t,{Rt:()=>z,vU:()=>b,hl:()=>g,XE:()=>x,fU:()=>B,a3:()=>T,LW:()=>E,_U:()=>A,d4:()=>P,l0:()=>v,a7:()=>C,kQ:()=>y,Yq:()=>D});var r=n(31530),a=n(32878),o=n(18140),i=n(8902),s=n(23464),l=n(85602),c=n(44397),u=n(57657);let d=function(e){return null==e};var p=n(92801),f=n(42729);function m(e,t){var n=function(e,t,n){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t,0);return n.get?n.get.call(e):n.value}s.extend(l),s.extend(u),s.extend(c);let h="YYYY-MM-DDTHH:mm:ss.SSSZZ";function g(e){return null!=e&&28===e.trim().length&&"T"===(e=e.trim())[10]&&":"===e[13]&&":"===e[16]&&"."===e[19]&&("+"===e[23]||"-"===e[23])&&s(e,h).isValid()}function b(e){return s(e).isToday()}function y(e){return g(e)?s(e,h).toDate():null}function v(e,t=!1){let n=s(e);return t&&(n=n.utc()),n.format(h)}function A(e){return s(e).toDate()}var $=new WeakMap;let k=new class{register(e,t){m(this,$).set(e,t)}getCalendar(e){if(!e)return;if(e.calendar)return e.calendar;if(e.region){let t=`${e.language}-${e.region}`;if(m(this,$).has(t))return m(this,$).get(t)}if(e.language&&m(this,$).has(e.language))return m(this,$).get(e.language);let t=new Intl.DateTimeFormat(e.toString()).resolvedOptions().calendar;return m(this,$).set(`${e.language}${e.region?`-${e.region}`:""}`,t),t}constructor(){!function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,$,{writable:!0,value:new Map})}};function x(e,t){k.register(e,t)}function C(e){let t=e??(0,f.J)();return k.getCalendar(t instanceof Intl.Locale?t:new Intl.Locale(t))}let w={mode:"standard",time:"for today",day:!0,month:!0,year:!0,noToday:!1};function E(e,t={}){let n=(0,f.J)(),r=(0,i.CD)(e,n);if(r.invalid)return console.warn(`Could not parse invalid date '${e}'`),null;!d(r.day)&&d(r.month)&&(r=Object.assign({},(0,p.A)(r,"day"),{month:r.day})),r.month&&(r.month-=1),r.day&&(r=Object.assign({},(0,p.A)(r,"day"),{date:r.day}));let a=s().set(r).toDate();return d(r.year)&&(t.year=!1),d(r.month)&&(t.month=!1),d(r.date)&&(t.day=!1),D(a,t)}function D(e,t){let n,r=t?.locale??(0,f.J)(),a=new Intl.Locale(r),{calendar:o,mode:i,time:l,day:c,month:u,year:d,noToday:p,numberingSystem:m}={...w,...{noToday:"am"===a.language},...t},h={calendar:o??C(a),year:d?"numeric":void 0,month:u?"short":void 0,day:c?"2-digit":void 0,numberingSystem:m},g=s(e).isToday();if(g&&!p)n=(n=new Intl.RelativeTimeFormat(r,{numeric:"auto"}).format(0,"day"))[0].toLocaleUpperCase(r)+n.slice(1);else{"en"===a.language&&(r="en-GB");let t=new Intl.DateTimeFormat(r,h).formatToParts(e);("en"===a.language||"am"===a.language)&&"standard"==i&&d&&c&&(t=t.map(S("-"))),"wide"==i&&(t=t.map(S(" — "))),"ethiopic"===h.calendar&&(t=t.filter((e,t,n)=>"era"!==e.type&&("literal"!==e.type||!(t<n.length-1)||"era"!==n[t+1].type))),n=t.map(e=>e.value).join("")}return(!0===l||g&&"for today"===l)&&(n+=`, ${B(e)}`),n}let S=e=>(t,n,r)=>"literal"!==t.type||" "!==t.value||n<r.length-1&&"era"===r[n+1].type?t:{type:"literal",value:e};function B(e){return e.toLocaleTimeString((0,f.J)(),{hour:"2-digit",minute:"2-digit"})}function z(e,t){return D(e,{...t,time:!0})}function P(e,t){let n=C("string"==typeof t?new Intl.Locale(t):t);return n?(0,r.yP)(e,(0,a.d)(n)):e}function T(e,t){return new o.DurationFormat((0,f.J)(),t).format(e)}},42729:function(e,t,n){"use strict";function r(){let e=window.i18next.language;return"ht"===(e=e.replace("_","-"))&&(e="fr-HT"),e}n.d(t,{J:()=>r})},9826:function(e,t,n){"use strict";function r(e){return!window.offlineEnabled||(e??navigator.onLine)}n.d(t,{s:()=>r})},67943:function(e,t,n){"use strict";function r(e){return o(s(e,"usual","official"))}function a(e){return r(e)}function o(e){var t;let n;return e?e.text??(n=(t=e).given??[],(t.family?n.concat(t.family):n).join(" ")):""}function i(e){return o(e)}function s(e,...t){for(let n of(0==t.length&&(t=["usual"]),t)){let t=e.name?.find(e=>{var t,r;return t=e,r=n,t.use?t.use===r:"usual"===r});if(t)return t}}n.d(t,{QC:()=>a,Qr:()=>o,VO:()=>s,Vp:()=>r,qK:()=>i})},90108:function(e,t,n){"use strict";function r(e,t){if(e===t||Object.is(e,t))return!0;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}if(Array.isArray(t)||"object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);return n.length===r.length&&n.every(n=>e[n]===t[n])}n.d(t,{b:()=>r})},58644:function(e,t,n){"use strict";n.d(t,{y:()=>a});let r=e=>{let t,n=new Set,r=(e,r)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},t,a),n.forEach(n=>n(t,e))}},a=()=>t,o={setState:r,getState:a,getInitialState:()=>i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},i=t=e(r,a,o);return o},a=e=>e?r(e):r}}]);