@sequencing/design-system 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -8,7 +8,7 @@ import*as e from"react";import t,{forwardRef as n,useRef as r,useState as a,useE
8
8
  Copyright (c) 2018 Jed Watson.
9
9
  Licensed under the MIT License (MIT), see
10
10
  http://jedwatson.github.io/classnames
11
- */!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var a=arguments[r];if(a){var o=typeof a;if("string"===o||"number"===o)e.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&e.push(i)}}else if("object"===o){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){e.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&e.push(s)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(C);var k,D=f(C.exports);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(null,arguments)}const S=t=>e.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,stroke:"rgba(0, 0, 0, .26)",viewBox:"0 0 24 24"},t),k||(k=e.createElement("style",null,"@keyframes spinner_zKoa{to{transform:rotate(360deg)}}@keyframes spinner_YpZS{0%{stroke-dasharray:0 150;stroke-dashoffset:0}47.5%{stroke-dasharray:42 150;stroke-dashoffset:-16}95%,to{stroke-dasharray:42 150;stroke-dashoffset:-59}}")),e.createElement("g",{style:{transformOrigin:"center",animation:"spinner_zKoa 2s linear infinite"}},e.createElement("circle",{cx:12,cy:12,r:9.5,fill:"none",strokeWidth:2,className:"spinner_svg__spinner_V8m1",style:{strokeLinecap:"round",animation:"spinner_YpZS 1.5s ease-in-out infinite"}}))),M=({size:e="16",color:n="white",className:r})=>t.createElement(S,{className:D("spinner",r),width:e,height:e,stroke:n});const E=w.bind({button:"Button-module_button__JK2Jx",fancy:"Button-module_fancy__2cnu9",primary:"Button-module_primary__wIuY6",secondary:"Button-module_secondary__n8cUo",outlined:"Button-module_outlined__dLv1u",outlinedSecondary:"Button-module_outlinedSecondary__oUBP1",outlinedDanger:"Button-module_outlinedDanger__pIcHL",outlinedWarning:"Button-module_outlinedWarning__ExDBS",danger:"Button-module_danger__8GArG",warning:"Button-module_warning__Bw4Rs",white:"Button-module_white__zpeRb",outlinedWhite:"Button-module_outlinedWhite__x89sZ",small:"Button-module_small__qRKwC",medium:"Button-module_medium__XwIa4",large:"Button-module_large__ZIejN",text:"Button-module_text__BWVYH",textSecondary:"Button-module_textSecondary__nIELn",loading:"Button-module_loading__PGkqg",success:"Button-module_success__uLz2G",outlinedSuccess:"Button-module_outlinedSuccess__WhbQj"}),_=n(((e,n)=>{var{hint:r,label:a,loading:o,disabled:i,customClass:s,variant:l="primary",size:c="medium",iconSrc:u,iconPosition:d="left",onClick:p}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["hint","label","loading","disabled","customClass","variant","size","iconSrc","iconPosition","onClick"]);const h=u&&"string"==typeof u?t.createElement("img",{src:u}):u;return t.createElement("button",Object.assign({title:r,onClick:p,disabled:o||i,className:E("button",l,c,s,{loading:o}),ref:n,type:"button"},m),o&&t.createElement(M,null),!o&&u&&"left"===d&&h,void 0!==a&&t.createElement("span",null,a),!o&&u&&"right"===d&&h)}));_.displayName="Button";var N="data:image/svg+xml,%3csvg width='11' height='7' viewBox='0 0 11 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.56153 0.75411C4.88925 0.415298 5.42716 0.415297 5.75487 0.754109L9.91715 5.05737C10.4363 5.59406 10.0616 6.5 9.32049 6.5H0.99592C0.254841 6.5 -0.119853 5.59406 0.399253 5.05737L4.56153 0.75411Z' fill='%2312306C'/%3e%3c/svg%3e",P={dropdown:"Dropdown-module_dropdown__OYMLT",isOpen:"Dropdown-module_isOpen__I-Fwe",dropdownToggle:"Dropdown-module_dropdownToggle__K4-rD",outlined:"Dropdown-module_outlined__cubpr",withIcon:"Dropdown-module_withIcon__WZrCH",primary:"Dropdown-module_primary__rH-n3",dropdownContent:"Dropdown-module_dropdownContent__kCcyD"};const T=w.bind(P),A=n((({hint:e,icon:n,label:s,children:l,customCaretDownIconSrc:c,customClass:u,variant:d="primary",dismissOnClickOutside:p=!0,onToggle:m},h)=>{const f=r(null),[g,v]=a(!1);o((()=>{if(p)return document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b)}})),i(h,(()=>({close:w})));const w=()=>{v(!1)},b=e=>{(null==f?void 0:f.current)&&!f.current.contains(e.target)&&g&&v(!1)};return t.createElement("div",{ref:f,className:T("dropdown",d,u,{isOpen:g,withIcon:!!n})},t.createElement("button",{title:e,type:"button",onClick:e=>{e.preventDefault(),v(!g),null==m||m(!g,e)},className:P.dropdownToggle},n&&t.createElement("img",{src:n,alt:"icon"}),t.createElement("span",null,s),t.createElement("img",{src:c||N,alt:"caret"})),t.createElement("div",{className:P.dropdownContent,hidden:!g},l))}));var L={textfield:"TextField-module_textfield__Z5iSV",iconLeft:"TextField-module_iconLeft__OEYRe",iconRight:"TextField-module_iconRight__zQ0w9",clearButton:"TextField-module_clearButton__M8pNo",icon:"TextField-module_icon__E2Ieq"};const H=w.bind(L),Y=({value:e,customClass:n,placeholder:r,showClearButton:a,variant:o="primary",onChange:i,onClick:s,inputRef:l,icon:c,iconPosition:u="left"})=>t.createElement("div",{className:H("textfield",o,n)},c&&t.createElement("img",{src:c,alt:"icon",className:H("icon",{iconLeft:"left"===u,iconRight:"right"===u})}),t.createElement("input",{ref:l,value:e,autoComplete:"off",placeholder:r,onChange:e=>{null==i||i(e.target.value)},onClick:e=>{null==s||s(e)},className:H({iconLeft:!!c&&"left"===u,iconRight:!!c&&"right"===u})}),a&&!!(null==e?void 0:e.length)&&t.createElement("button",{type:"button","aria-label":"clear",onClick:()=>null==i?void 0:i(""),className:L.clearButton}));var O={accordion:"Accordion-module_accordion__t2UQl",isOpen:"Accordion-module_isOpen__0d2yS",accordionToggle:"Accordion-module_accordionToggle__4X-Wg",accordionContent:"Accordion-module_accordionContent__j9no7"};const I=w.bind(O),R=({hint:e,label:n,children:r,customClass:o,variant:i="outlined",openByDefault:s=!1,caretPosition:l="right",onToggle:c})=>{const[u,d]=a(s);return t.createElement("div",{className:I("accordion",i,o,{isOpen:u})},t.createElement("button",{title:e,type:"button",onClick:e=>{e.preventDefault(),d(!u),null==c||c(!u,e)},className:O.accordionToggle},"left"===l&&t.createElement("img",{src:N,alt:"caret"}),t.createElement("span",null,n),"right"===l&&t.createElement("img",{src:N,alt:"caret"})),r&&t.createElement("div",{hidden:!u,className:O.accordionContent},r))};var B={tabMenu:"TabMenu-module_tabMenu__SbpUg",tab:"TabMenu-module_tab__-NW1I",active:"TabMenu-module_active__F76rY",chip:"TabMenu-module_chip__KRJDB"};const F=w.bind(B),W=({customClass:e,tabId:n,active:r,chip:a,children:o,onClick:i})=>t.createElement("div",{className:F("tab",e,{active:r}),onClick:()=>i(n)},"string"==typeof o?t.createElement("span",null,o):o,!!a&&t.createElement("div",{className:F("chip")},a)),V=w.bind(B),q=({customClass:e,tabCustomClass:n,tabs:r,activeTab:a,onClick:o})=>t.createElement("div",{className:V("tabMenu",e)},r.map((e=>t.createElement(W,{key:e.tabId,tabId:e.tabId,customClass:V(n,e.customClass),active:e.tabId===a,chip:e.chip,onClick:o},e.label))));var Z={modalOverlay:"Modal-module_modalOverlay__vB0a-",modalWrapper:"Modal-module_modalWrapper__0bvDk",modalCloseButton:"Modal-module_modalCloseButton__raBgL",modalTitle:"Modal-module_modalTitle__TW21J",modalContent:"Modal-module_modalContent__PUKvv",buttonsContainer:"Modal-module_buttonsContainer__dghew"};const K=w.bind(Z),Q=({buttons:e,children:n,customClass:a,contentCustomClass:i,dismissable:s=!0,title:l,titleIcon:c,onClose:u})=>{const d=r(null);o((()=>{if(s)return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}}));const p=e=>{(null==d?void 0:d.current)&&!d.current.contains(e.target)&&(null==u||u(e))};return t.createElement("div",{className:K(Z.modalOverlay,a)},t.createElement("div",{ref:d,className:K(Z.modalWrapper,i)},s&&t.createElement("button",{onClick:e=>{e.preventDefault(),null==u||u(e)},className:Z.modalCloseButton},t.createElement("img",{src:"data:image/svg+xml,%3csvg width='19' height='19' viewBox='0 0 19 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_10778_20349)'%3e%3cpath d='M11.41 8.99999L18.7 1.70999C18.8638 1.51869 18.9494 1.27261 18.9397 1.02093C18.93 0.769257 18.8256 0.530518 18.6475 0.352424C18.4694 0.174329 18.2307 0.0699962 17.979 0.0602751C17.7274 0.0505539 17.4813 0.13616 17.29 0.299987L9.99997 7.58999L2.70997 0.289987C2.51867 0.12616 2.2726 0.0405547 2.02092 0.0502758C1.76924 0.059997 1.53051 0.164329 1.35241 0.342423C1.17432 0.520518 1.06998 0.759257 1.06026 1.01093C1.05054 1.26261 1.13615 1.50868 1.29997 1.69999L8.58997 8.99999L1.28997 16.29C1.18529 16.3796 1.10027 16.49 1.04025 16.614C0.980225 16.7381 0.946494 16.8732 0.941175 17.0109C0.935855 17.1487 0.959061 17.286 1.00934 17.4143C1.05961 17.5426 1.13587 17.6592 1.23332 17.7566C1.33078 17.8541 1.44733 17.9303 1.57565 17.9806C1.70398 18.0309 1.84131 18.0541 1.97903 18.0488C2.11675 18.0435 2.25188 18.0097 2.37594 17.9497C2.50001 17.8897 2.61033 17.8047 2.69997 17.7L9.99997 10.41L17.29 17.7C17.4813 17.8638 17.7274 17.9494 17.979 17.9397C18.2307 17.93 18.4694 17.8256 18.6475 17.6476C18.8256 17.4695 18.93 17.2307 18.9397 16.979C18.9494 16.7274 18.8638 16.4813 18.7 16.29L11.41 8.99999Z' fill='%231B2050'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_10778_20349'%3e%3crect width='19' height='19' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",alt:"close modal"})),l&&t.createElement("div",{className:Z.modalTitle},c&&t.createElement("img",{src:c,alt:"title icon"}),l),t.createElement("div",{className:Z.modalContent},n),e&&t.createElement("div",{className:Z.buttonsContainer},e.map((e=>e)))))};var U="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 18 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M8.955 15.0768C9.27 15.0768 9.5364 14.9679 9.7542 14.7501C9.9714 14.5329 10.08 14.2668 10.08 13.9518C10.08 13.6368 9.9714 13.3707 9.7542 13.1535C9.5364 12.9357 9.27 12.8268 8.955 12.8268C8.64 12.8268 8.3736 12.9357 8.1558 13.1535C7.9386 13.3707 7.83 13.6368 7.83 13.9518C7.83 14.2668 7.9386 14.5329 8.1558 14.7501C8.3736 14.9679 8.64 15.0768 8.955 15.0768ZM8.145 11.6118H9.81C9.81 11.1168 9.8664 10.7268 9.9792 10.4418C10.0914 10.1568 10.41 9.76676 10.935 9.27176C11.325 8.88176 11.6325 8.51036 11.8575 8.15756C12.0825 7.80536 12.195 7.38176 12.195 6.88676C12.195 6.04676 11.8875 5.40176 11.2725 4.95176C10.6575 4.50176 9.93 4.27676 9.09 4.27676C8.235 4.27676 7.5414 4.50176 7.0092 4.95176C6.4764 5.40176 6.105 5.94176 5.895 6.57176L7.38 7.15676C7.455 6.88676 7.6239 6.59426 7.8867 6.27926C8.1489 5.96426 8.55 5.80676 9.09 5.80676C9.57 5.80676 9.93 5.93786 10.17 6.20006C10.41 6.46286 10.53 6.75176 10.53 7.06676C10.53 7.36676 10.44 7.64786 10.26 7.91006C10.08 8.17286 9.855 8.41676 9.585 8.64176C8.925 9.22676 8.52 9.66926 8.37 9.96926C8.22 10.2693 8.145 10.8168 8.145 11.6118ZM9 18.6768C7.755 18.6768 6.585 18.4404 5.49 17.9676C4.395 17.4954 3.4425 16.8543 2.6325 16.0443C1.8225 15.2343 1.1814 14.2818 0.7092 13.1868C0.2364 12.0918 0 10.9218 0 9.67676C0 8.43176 0.2364 7.26176 0.7092 6.16676C1.1814 5.07176 1.8225 4.11926 2.6325 3.30926C3.4425 2.49926 4.395 1.85786 5.49 1.38506C6.585 0.912858 7.755 0.676758 9 0.676758C10.245 0.676758 11.415 0.912858 12.51 1.38506C13.605 1.85786 14.5575 2.49926 15.3675 3.30926C16.1775 4.11926 16.8186 5.07176 17.2908 6.16676C17.7636 7.26176 18 8.43176 18 9.67676C18 10.9218 17.7636 12.0918 17.2908 13.1868C16.8186 14.2818 16.1775 15.2343 15.3675 16.0443C14.5575 16.8543 13.605 17.4954 12.51 17.9676C11.415 18.4404 10.245 18.6768 9 18.6768Z' fill='white'/%3e%3c/svg%3e",j={appBar:"AppBar-module_appBar__Qdk4Q",wrapper:"AppBar-module_wrapper__1RQaw",appId:"AppBar-module_appId__dvlhd",icon:"AppBar-module_icon__llVzL",titleWrapper:"AppBar-module_titleWrapper__ZDbYC",betaApp:"AppBar-module_betaApp__glSMt",appInfo:"AppBar-module_appInfo__ojUgZ",appInfoPipe:"AppBar-module_appInfoPipe__-gQ7i",contentWrapper:"AppBar-module_contentWrapper__CIRle",content:"AppBar-module_content__zfFex",appVersionWrapper:"AppBar-module_appVersionWrapper__rJLPr",appVersion:"AppBar-module_appVersion__CNsMr",rightAddornmentWrapper:"AppBar-module_rightAddornmentWrapper__E7yIg",rightAddornment:"AppBar-module_rightAddornment__Lt7AS",lastUpdatedContainer:"AppBar-module_lastUpdatedContainer__7aFn5",appTooltipWrapper:"AppBar-module_appTooltipWrapper__o3bOA",lifted:"AppBar-module_lifted__Q8nLc",appTooltipCenterWrapper:"AppBar-module_appTooltipCenterWrapper__XqQiT",lastUpdatedTooltipContentWrapper:"AppBar-module_lastUpdatedTooltipContentWrapper__Pr1tq",appTooltipContent:"AppBar-module_appTooltipContent__WpduU",lastUpdatedTooltipWrapper:"AppBar-module_lastUpdatedTooltipWrapper__PEeHF"};const z=w.bind(j),G=({icon:e,isBeta:n,appName:i,version:s,children:l,customClass:c,lastUpdated:u,lastUpdatedTooltip:d,description:p,tooltipContent:m,rightAddornment:h,backgroundColor:f,backgroundImage:g,backgroundGradient:v})=>{const w=r(null),b=r(null),[y,C]=a(!1),[k,D]=a(!1),[x,S]=a();o((()=>(document.addEventListener("mousedown",M),()=>{document.removeEventListener("mousedown",M)})));const M=e=>{(null==w?void 0:w.current)&&!w.current.contains(e.target)&&y&&C(!1),(null==b?void 0:b.current)&&!b.current.contains(e.target)&&k&&D(!1)};return t.createElement("div",{className:z(j.appBar,c),style:Object.assign({},g?{backgroundImage:`url(${g})`}:v?{backgroundImage:v}:f?{backgroundColor:f}:{backgroundImage:"linear-gradient(180deg, #0B193C 0%, $--sds-color-background-main 100%)"})},t.createElement("div",{id:"wrapper",className:j.wrapper},t.createElement("div",{className:j.appId},t.createElement("img",{src:e,className:j.icon}),t.createElement("div",{className:j.titleWrapper},t.createElement("h4",null,i,n&&t.createElement("span",{className:j.betaApp},"BETA")),t.createElement("div",{className:j.appInfo},u&&t.createElement(t.Fragment,null,"Last Updated: ",t.createElement("strong",null,u),d&&t.createElement("div",{ref:b,className:z(j.appTooltipWrapper,j.lastUpdatedTooltipWrapper)},t.createElement("img",{src:U,className:j.appTooltipToggle,onClick:()=>{D((e=>!e))}}),t.createElement("div",{className:z(j.appTooltipCenterWrapper,j.lastUpdatedTooltipContentWrapper)},t.createElement("div",{hidden:!k,className:j.appTooltipContent},d))),t.createElement("span",{className:j.appInfoPipe},"|")),p))),t.createElement("div",{className:j.contentWrapper},t.createElement("div",{className:j.content},l),t.createElement("div",{className:j.rightAddornmentWrapper},h&&t.createElement("div",{className:j.rightAddornment},h),t.createElement("div",{className:j.appVersionWrapper},s&&t.createElement("div",{className:j.appVersion},t.createElement("div",null,"Version: ",t.createElement("strong",null,s))),m&&t.createElement("div",{ref:w,className:z(j.appTooltipWrapper,{lifted:!s&&!h})},t.createElement("img",{src:U,className:j.appTooltipToggle,onClick:e=>{const t=(e=>{var t,n;const r=e.currentTarget.getBoundingClientRect(),a=null===(t=document.getElementById("wrapper"))||void 0===t?void 0:t.getBoundingClientRect();return r.bottom+8-(null!==(n=null==a?void 0:a.top)&&void 0!==n?n:0)})(e);S({top:t}),C(!y)}}),t.createElement("div",{className:j.appTooltipCenterWrapper,style:x},t.createElement("div",{hidden:!y,className:j.appTooltipContent},m))))))))};var X;function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J.apply(null,arguments)}const $=t=>e.createElement("svg",J({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},t),X||(X=e.createElement("path",{fill:"#12306C",d:"m441.9 167.3-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17 0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7 4.7-12.3 0-17"})));var ee={sdsWrapper:"DatePicker-module_sdsWrapper__Ny8aV",sdsHeader:"DatePicker-module_sdsHeader__qPKM-",sdsHeader__yearSelector:"DatePicker-module_sdsHeader__yearSelector__3BNC2",sdsHeader__monthSelectors:"DatePicker-module_sdsHeader__monthSelectors__8jGdR",sdsYearsSelector__header:"DatePicker-module_sdsYearsSelector__header__MkyA8",sdsYearsSelector__headerTitle:"DatePicker-module_sdsYearsSelector__headerTitle__fUeso",sdsYearsSelector__headerButtons:"DatePicker-module_sdsYearsSelector__headerButtons__M816B",sdsYearsSelector__years:"DatePicker-module_sdsYearsSelector__years__Hbl23",sdsYearsSelector__year:"DatePicker-module_sdsYearsSelector__year__BvkEW",sdsYearsSelector__year_selected:"DatePicker-module_sdsYearsSelector__year_selected__rC-HK",sdsYearsSelector__year_current:"DatePicker-module_sdsYearsSelector__year_current__mq5zq",sdsYearsSelector__year_disabled:"DatePicker-module_sdsYearsSelector__year_disabled__0Iy-M"};function te(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=te(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ne(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=te(e))&&(r&&(r+=" "),r+=t);return r}function re(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function ae(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function oe(e,t){const n=re(e);return isNaN(t)?ae(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function ie(e,t){return ae(e,+re(e)+t)}const se=6048e5,le=864e5,ce=6e4,ue=36e5;function de(e,t){return ie(e,t*ce)}function pe(e,t){const n=re(e);if(isNaN(t))return ae(e,NaN);if(!t)return n;const r=n.getDate(),a=ae(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);return r>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),r),n)}function me(e,t){return pe(e,3*t)}function he(e,t){return ie(e,1e3*t)}function fe(e,t){return oe(e,7*t)}function ge(e,t){return pe(e,12*t)}function ve(e){const t=re(e);return t.setHours(0,0,0,0),t}function we(e){const t=re(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function be(e,t){const n=ve(e),r=ve(t),a=+n-we(n),o=+r-we(r);return Math.round((a-o)/le)}function ye(e,t){const n=re(e),r=re(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function Ce(e){const t=re(e);return Math.trunc(t.getMonth()/3)+1}function ke(e,t){const n=re(e),r=re(t);return 4*(n.getFullYear()-r.getFullYear())+(Ce(n)-Ce(r))}function De(e,t){const n=re(e),r=re(t);return n.getFullYear()-r.getFullYear()}function xe(e){const t=re(e);return t.setHours(23,59,59,999),t}function Se(e){const t=re(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}let Me={};function Ee(){return Me}function _e(e){const t=re(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}const Ne={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Pe(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Te={date:Pe({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Pe({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Pe({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Le(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):t;r=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const He={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Le({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Le({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Le({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Le({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Le({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Ye(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const i=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(i)));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}const Oe={ordinalNumber:(Ie={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(Ie.matchPattern);if(!n)return null;const r=n[0],a=e.match(Ie.parsePattern);if(!a)return null;let o=Ie.valueCallback?Ie.valueCallback(a[0]):a[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(r.length)}}),era:Ye({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ye({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ye({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ye({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ye({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Ie;const Re={code:"en-US",formatDistance:(e,t,n)=>{let r;const a=Ne[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:Te,formatRelative:(e,t,n,r)=>Ae[e],localize:He,match:Oe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Be(e){const t=re(e),n=ae(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Fe(e,t){const n=Ee(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=re(e),o=a.getDay(),i=(o<r?7:0)+o-r;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function We(e){return Fe(e,{weekStartsOn:1})}function Ve(e){const t=re(e),n=t.getFullYear(),r=ae(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=We(r),o=ae(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const i=We(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function qe(e){const t=re(e),n=+We(t)-+function(e){const t=Ve(e),n=ae(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),We(n)}(t);return Math.round(n/se)+1}function Ze(e,t){const n=re(e),r=n.getFullYear(),a=Ee(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=ae(e,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const s=Fe(i,t),l=ae(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=Fe(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function Ke(e,t){const n=re(e),r=+Fe(n,t)-+function(e,t){const n=Ee(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=Ze(e,t),o=ae(e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),Fe(o,t)}(n,t);return Math.round(r/se)+1}function Qe(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Ue={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Qe("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Qe(n+1,2)},d:(e,t)=>Qe(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Qe(e.getHours()%12||12,t.length),H:(e,t)=>Qe(e.getHours(),t.length),m:(e,t)=>Qe(e.getMinutes(),t.length),s:(e,t)=>Qe(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Qe(Math.trunc(r*Math.pow(10,n-3)),t.length)}},je="midnight",ze="noon",Ge="morning",Xe="afternoon",Je="evening",$e="night",et={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return Ue.y(e,t)},Y:function(e,t,n,r){const a=Ze(e,r),o=a>0?a:1-a;if("YY"===t){return Qe(o%100,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Qe(o,t.length)},R:function(e,t){return Qe(Ve(e),t.length)},u:function(e,t){return Qe(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Qe(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Qe(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ue.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Qe(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=Ke(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):Qe(a,t.length)},I:function(e,t,n){const r=qe(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Qe(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Ue.d(e,t)},D:function(e,t,n){const r=function(e){const t=re(e);return be(t,Be(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Qe(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Qe(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Qe(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return Qe(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(a=12===r?ze:0===r?je:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(a=r>=17?Je:r>=12?Xe:r>=4?Ge:$e,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Ue.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ue.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Qe(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Qe(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ue.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ue.s(e,t)},S:function(e,t){return Ue.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return nt(r);case"XXXX":case"XX":return rt(r);default:return rt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return nt(r);case"xxxx":case"xx":return rt(r);default:return rt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+tt(r,":");default:return"GMT"+rt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+tt(r,":");default:return"GMT"+rt(r,":")}},t:function(e,t,n){return Qe(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return Qe(e.getTime(),t.length)}};function tt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),o=r%60;return 0===o?n+String(a):n+String(a)+t+Qe(o,2)}function nt(e,t){if(e%60==0){return(e>0?"-":"+")+Qe(Math.abs(e)/60,2)}return rt(e,t)}function rt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Qe(Math.trunc(r/60),2)+t+Qe(r%60,2)}const at=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ot=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},it={p:ot,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return at(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",at(r,t)).replace("{{time}}",ot(a,t))}},st=/^D+$/,lt=/^Y+$/,ct=["D","DD","YY","YYYY"];function ut(e){return st.test(e)}function dt(e){return lt.test(e)}function pt(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),ct.includes(e))throw new RangeError(r)}function mt(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function ht(e){if(!mt(e)&&"number"!=typeof e)return!1;const t=re(e);return!isNaN(Number(t))}const ft=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vt=/^'([^]*?)'?$/,wt=/''/g,bt=/[a-zA-Z]/;function yt(e,t,n){const r=Ee(),a=n?.locale??r.locale??Re,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=re(e);if(!ht(s))throw new RangeError("Invalid time value");let l=t.match(gt).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,it[t])(e,a.formatLong)}return e})).join("").match(ft).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Ct(e)};if(et[t])return{isToken:!0,value:e};if(t.match(bt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));a.localize.preprocessor&&(l=a.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return l.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&dt(o)||!n?.useAdditionalDayOfYearTokens&&ut(o))&&pt(o,t,String(e));return(0,et[o[0]])(s,o,a.localize,c)})).join("")}function Ct(e){const t=e.match(vt);return t?t[1].replace(wt,"'"):e}function kt(e){return re(e).getDate()}function Dt(e){return re(e).getHours()}function xt(e){return re(e).getMinutes()}function St(e){return re(e).getMonth()}function Mt(e){return re(e).getSeconds()}function Et(e){return re(e).getTime()}function _t(e){return re(e).getFullYear()}function Nt(e,t){const n=re(e),r=re(t);return n.getTime()>r.getTime()}function Pt(e,t){return+re(e)<+re(t)}function Tt(e){const t=re(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function At(e,t){const n=+re(e),[r,a]=[+re(t.start),+re(t.end)].sort(((e,t)=>e-t));return n>=r&&n<=a}function Lt(e){let t;return e.forEach((function(e){const n=re(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function Ht(e){let t;return e.forEach((e=>{const n=re(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)}class Yt{subPriority=0;validate(e,t){return!0}}class Ot extends Yt{constructor(e,t,n,r,a){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,a&&(this.subPriority=a)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class It extends Yt{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:ae(e,function(e,t){const n=t instanceof Date?ae(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}(e,Date))}}class Rt{run(e,t,n,r){const a=this.parse(e,t,n,r);return a?{setter:new Ot(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,t,n){return!0}}const Bt=/^(1[0-2]|0?\d)/,Ft=/^(3[0-1]|[0-2]?\d)/,Wt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Vt=/^(5[0-3]|[0-4]?\d)/,qt=/^(2[0-3]|[0-1]?\d)/,Zt=/^(2[0-4]|[0-1]?\d)/,Kt=/^(1[0-1]|0?\d)/,Qt=/^(1[0-2]|0?\d)/,Ut=/^[0-5]?\d/,jt=/^[0-5]?\d/,zt=/^\d/,Gt=/^\d{1,2}/,Xt=/^\d{1,3}/,Jt=/^\d{1,4}/,$t=/^-?\d+/,en=/^-?\d/,tn=/^-?\d{1,2}/,nn=/^-?\d{1,3}/,rn=/^-?\d{1,4}/,an=/^([+-])(\d{2})(\d{2})?|Z/,on=/^([+-])(\d{2})(\d{2})|Z/,sn=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,ln=/^([+-])(\d{2}):(\d{2})|Z/,cn=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function un(e,t){return e?{value:t(e.value),rest:e.rest}:e}function dn(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function pn(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,a=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(a*ue+o*ce+1e3*i),rest:t.slice(n[0].length)}}function mn(e){return dn($t,e)}function hn(e,t){switch(e){case 1:return dn(zt,t);case 2:return dn(Gt,t);case 3:return dn(Xt,t);case 4:return dn(Jt,t);default:return dn(new RegExp("^\\d{1,"+e+"}"),t)}}function fn(e,t){switch(e){case 1:return dn(en,t);case 2:return dn(tn,t);case 3:return dn(nn,t);case 4:return dn(rn,t);default:return dn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function gn(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function vn(e,t){const n=t>0,r=n?t:1-t;let a;if(r<=50)a=e||100;else{const t=r+50;a=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?a:1-a}function wn(e){return e%400==0||e%4==0&&e%100!=0}const bn=[31,28,31,30,31,30,31,31,30,31,30,31],yn=[31,29,31,30,31,30,31,31,30,31,30,31];function Cn(e,t,n){const r=Ee(),a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=re(e),i=o.getDay(),s=7-a;return oe(o,t<0||t>6?t-(i+s)%7:((t%7+7)%7+s)%7-(i+s)%7)}function kn(e,t){const n=re(e),r=function(e){let t=re(e).getDay();return 0===t&&(t=7),t}(n);return oe(n,t-r)}const Dn={G:new class extends Rt{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends Rt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return un(hn(4,e),r);case"yo":return un(n.ordinalNumber(e,{unit:"year"}),r);default:return un(hn(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=vn(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const a="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}},Y:new class extends Rt{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return un(hn(4,e),r);case"Yo":return un(n.ordinalNumber(e,{unit:"year"}),r);default:return un(hn(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const a=Ze(e,r);if(n.isTwoDigitYear){const t=vn(n.year,a);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Fe(e,r)}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Fe(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends Rt{priority=130;parse(e,t){return fn("R"===t?4:t.length,e)}set(e,t,n){const r=ae(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),We(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends Rt{priority=130;parse(e,t){return fn("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends Rt{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return hn(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends Rt{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return hn(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends Rt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return un(dn(Bt,e),r);case"MM":return un(hn(2,e),r);case"Mo":return un(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends Rt{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return un(dn(Bt,e),r);case"LL":return un(hn(2,e),r);case"Lo":return un(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends Rt{priority=100;parse(e,t,n){switch(t){case"w":return dn(Vt,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return hn(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Fe(function(e,t,n){const r=re(e),a=Ke(r,n)-t;return r.setDate(r.getDate()-7*a),r}(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends Rt{priority=100;parse(e,t,n){switch(t){case"I":return dn(Vt,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return hn(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return We(function(e,t){const n=re(e),r=qe(n)-t;return n.setDate(n.getDate()-7*r),n}(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends Rt{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return dn(Ft,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return hn(t.length,e)}}validate(e,t){const n=wn(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=yn[r]:t>=1&&t<=bn[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends Rt{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return dn(Wt,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return hn(t.length,e)}}validate(e,t){return wn(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends Rt{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Cn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends Rt{priority=90;parse(e,t,n,r){const a=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return un(hn(t.length,e),a);case"eo":return un(n.ordinalNumber(e,{unit:"day"}),a);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Cn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends Rt{priority=90;parse(e,t,n,r){const a=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return un(hn(t.length,e),a);case"co":return un(n.ordinalNumber(e,{unit:"day"}),a);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Cn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends Rt{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return hn(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return un(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return un(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return un(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return un(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=kn(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends Rt{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(gn(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends Rt{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(gn(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends Rt{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(gn(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends Rt{priority=70;parse(e,t,n){switch(t){case"h":return dn(Qt,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return hn(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends Rt{priority=70;parse(e,t,n){switch(t){case"H":return dn(qt,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return hn(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends Rt{priority=70;parse(e,t,n){switch(t){case"K":return dn(Kt,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return hn(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends Rt{priority=70;parse(e,t,n){switch(t){case"k":return dn(Zt,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return hn(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends Rt{priority=60;parse(e,t,n){switch(t){case"m":return dn(Ut,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return hn(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends Rt{priority=50;parse(e,t,n){switch(t){case"s":return dn(jt,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return hn(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends Rt{priority=30;parse(e,t){return un(hn(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends Rt{priority=10;parse(e,t){switch(t){case"X":return pn(an,e);case"XX":return pn(on,e);case"XXXX":return pn(sn,e);case"XXXXX":return pn(cn,e);default:return pn(ln,e)}}set(e,t,n){return t.timestampIsSet?e:ae(e,e.getTime()-we(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends Rt{priority=10;parse(e,t){switch(t){case"x":return pn(an,e);case"xx":return pn(on,e);case"xxxx":return pn(sn,e);case"xxxxx":return pn(cn,e);default:return pn(ln,e)}}set(e,t,n){return t.timestampIsSet?e:ae(e,e.getTime()-we(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends Rt{priority=40;parse(e){return mn(e)}set(e,t,n){return[ae(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends Rt{priority=20;parse(e){return mn(e)}set(e,t,n){return[ae(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},xn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Mn=/^'([^]*?)'?$/,En=/''/g,_n=/\S/,Nn=/[a-zA-Z]/;function Pn(e,t,n,r){const a=Object.assign({},Ee()),o=r?.locale??a.locale??Re,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(""===t)return""===e?re(n):ae(n,NaN);const l={firstWeekContainsDate:i,weekStartsOn:s,locale:o},c=[new It],u=t.match(Sn).map((e=>{const t=e[0];if(t in it){return(0,it[t])(e,o.formatLong)}return e})).join("").match(xn),d=[];for(let a of u){!r?.useAdditionalWeekYearTokens&&dt(a)&&pt(a,t,e),!r?.useAdditionalDayOfYearTokens&&ut(a)&&pt(a,t,e);const i=a[0],s=Dn[i];if(s){const{incompatibleTokens:t}=s;if(Array.isArray(t)){const e=d.find((e=>t.includes(e.token)||e.token===i));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${a}\` at the same time`)}else if("*"===s.incompatibleTokens&&d.length>0)throw new RangeError(`The format string mustn't contain \`${a}\` and any other token at the same time`);d.push({token:i,fullToken:a});const r=s.run(e,a,o.match,l);if(!r)return ae(n,NaN);c.push(r.setter),e=r.rest}else{if(i.match(Nn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===a?a="'":"'"===i&&(a=a.match(Mn)[1].replace(En,"'")),0!==e.indexOf(a))return ae(n,NaN);e=e.slice(a.length)}}if(e.length>0&&_n.test(e))return ae(n,NaN);const p=c.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>c.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let m=re(n);if(isNaN(m.getTime()))return ae(n,NaN);const h={};for(const e of p){if(!e.validate(m,l))return ae(n,NaN);const t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return ae(n,m)}function Tn(e,t){const n=t?.additionalDigits??2,r=function(e){const t={},n=e.split(An.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],An.timeZoneDelimiter.test(t.date)&&(t.date=e.split(An.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=An.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let a;if(r.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const a=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?a:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(r.date,n);a=function(e,t){if(null===t)return new Date(NaN);const n=e.match(Ln);if(!n)return new Date(NaN);const r=!!n[4],a=On(n[1]),o=On(n[2])-1,i=On(n[3]),s=On(n[4]),l=On(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const a=r.getUTCDay()||7,o=7*(t-1)+n+1-a;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,l):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Rn[t]||(Bn(e)?29:28))}(t,o,i)&&function(e,t){return t>=1&&t<=(Bn(e)?366:365)}(t,a)?(e.setUTCFullYear(t,o,Math.max(a,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);const o=a.getTime();let i,s=0;if(r.time&&(s=function(e){const t=e.match(Hn);if(!t)return NaN;const n=In(t[1]),r=In(t[2]),a=In(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,a))return NaN;return n*ue+r*ce+1e3*a}(r.time),isNaN(s)))return new Date(NaN);if(!r.timezone){const e=new Date(o+s),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return i=function(e){if("Z"===e)return 0;const t=e.match(Yn);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,a))return NaN;return n*(r*ue+a*ce)}(r.timezone),isNaN(i)?new Date(NaN):new Date(o+s+i)}const An={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ln=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Hn=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Yn=/^([+-])(\d{2})(?::?(\d{2}))?$/;function On(e){return e?parseInt(e):1}function In(e){return e&&parseFloat(e.replace(",","."))||0}const Rn=[31,null,31,30,31,30,31,31,30,31,30,31];function Bn(e){return e%400==0||e%4==0&&e%100!=0}function Fn(e,t){const n=re(e),r=n.getFullYear(),a=n.getDate(),o=ae(e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);const i=function(e){const t=re(e),n=t.getFullYear(),r=t.getMonth(),a=ae(e,0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}(o);return n.setMonth(t,Math.min(a,i)),n}function Wn(e,t){const n=re(e);return n.setHours(t),n}function Vn(e,t){const n=re(e);return n.setMinutes(t),n}function qn(e,t){const n=re(e),r=t-(Math.trunc(n.getMonth()/3)+1);return Fn(n,n.getMonth()+3*r)}function Zn(e,t){const n=re(e);return n.setSeconds(t),n}function Kn(e,t){const n=re(e);return isNaN(+n)?ae(e,NaN):(n.setFullYear(t),n)}function Qn(e){const t=re(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Un(e,t){return pe(e,-t)}function jn(e,t){return me(e,-t)}function zn(e,t){return fe(e,-t)}function Gn(e,t){return ge(e,-t)}function Xn(){return"undefined"!=typeof window}function Jn(e){return tr(e)?(e.nodeName||"").toLowerCase():"#document"}function $n(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function er(e){var t;return null==(t=(tr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function tr(e){return!!Xn()&&(e instanceof Node||e instanceof $n(e).Node)}function nr(e){return!!Xn()&&(e instanceof Element||e instanceof $n(e).Element)}function rr(e){return!!Xn()&&(e instanceof HTMLElement||e instanceof $n(e).HTMLElement)}function ar(e){return!(!Xn()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof $n(e).ShadowRoot)}function or(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=dr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function ir(e){return["table","td","th"].includes(Jn(e))}function sr(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function lr(e){const t=cr(),n=nr(e)?dr(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function cr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ur(e){return["html","body","#document"].includes(Jn(e))}function dr(e){return $n(e).getComputedStyle(e)}function pr(e){return nr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mr(e){if("html"===Jn(e))return e;const t=e.assignedSlot||e.parentNode||ar(e)&&e.host||er(e);return ar(t)?t.host:t}function hr(e){const t=mr(e);return ur(t)?e.ownerDocument?e.ownerDocument.body:e.body:rr(t)&&or(t)?t:hr(t)}function fr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=hr(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=$n(a);if(o){const e=gr(i);return t.concat(i,i.visualViewport||[],or(a)?a:[],e&&n?fr(e):[])}return t.concat(a,fr(a,[],n))}function gr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const vr=Math.min,wr=Math.max,br=Math.round,yr=Math.floor,Cr=e=>({x:e,y:e}),kr={left:"right",right:"left",bottom:"top",top:"bottom"},Dr={start:"end",end:"start"};function xr(e,t,n){return wr(e,vr(t,n))}function Sr(e,t){return"function"==typeof e?e(t):e}function Mr(e){return e.split("-")[0]}function Er(e){return e.split("-")[1]}function _r(e){return"y"===e?"height":"width"}function Nr(e){return["top","bottom"].includes(Mr(e))?"y":"x"}function Pr(e){return"x"===Nr(e)?"y":"x"}function Tr(e){return e.replace(/start|end/g,(e=>Dr[e]))}function Ar(e){return e.replace(/left|right|bottom|top/g,(e=>kr[e]))}function Lr(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Hr(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Yr(e,t,n){let{reference:r,floating:a}=e;const o=Nr(t),i=Pr(t),s=_r(i),l=Mr(t),c="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let m;switch(l){case"top":m={x:u,y:r.y-a.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-a.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Er(t)){case"start":m[i]-=p*(n&&c?-1:1);break;case"end":m[i]+=p*(n&&c?-1:1)}return m}function Or(e){const t=dr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=rr(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=br(n)!==o||br(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function Ir(e){return nr(e)?e:e.contextElement}function Rr(e){const t=Ir(e);if(!rr(t))return Cr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=Or(t);let i=(o?br(n.width):n.width)/r,s=(o?br(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Br=Cr(0);function Fr(e){const t=$n(e);return cr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Br}function Wr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=Ir(e);let i=Cr(1);t&&(r?nr(r)&&(i=Rr(r)):i=Rr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==$n(e))&&t}(o,n,r)?Fr(o):Cr(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=$n(o),t=r&&nr(r)?$n(r):r;let n=e,a=gr(n);for(;a&&r&&t!==n;){const e=Rr(a),t=a.getBoundingClientRect(),r=dr(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=$n(a),a=gr(n)}}return Hr({width:u,height:d,x:l,y:c})}function Vr(e,t){const n=pr(e).scrollLeft;return t?t.left+n:Wr(er(e)).left+n}function qr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=$n(e),r=er(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=cr();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=er(e),n=pr(e),r=e.ownerDocument.body,a=wr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=wr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Vr(e);const s=-n.scrollTop;return"rtl"===dr(r).direction&&(i+=wr(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(er(e));else if(nr(t))r=function(e,t){const n=Wr(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=rr(e)?Rr(e):Cr(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=Fr(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Hr(r)}function Zr(e,t){const n=mr(e);return!(n===t||!nr(n)||ur(n))&&("fixed"===dr(n).position||Zr(n,t))}function Kr(e,t,n){const r=rr(t),a=er(t),o="fixed"===n,i=Wr(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Cr(0);if(r||!r&&!o)if(("body"!==Jn(t)||or(a))&&(s=pr(t)),r){const e=Wr(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=Vr(a));let c=0,u=0;if(a&&!r&&!o){const e=a.getBoundingClientRect();u=e.top+s.scrollTop,c=e.left+s.scrollLeft-Vr(a,e)}return{x:i.left+s.scrollLeft-l.x-c,y:i.top+s.scrollTop-l.y-u,width:i.width,height:i.height}}function Qr(e){return"static"===dr(e).position}function Ur(e,t){if(!rr(e)||"fixed"===dr(e).position)return null;if(t)return t(e);let n=e.offsetParent;return er(e)===n&&(n=n.ownerDocument.body),n}function jr(e,t){const n=$n(e);if(sr(e))return n;if(!rr(e)){let t=mr(e);for(;t&&!ur(t);){if(nr(t)&&!Qr(t))return t;t=mr(t)}return n}let r=Ur(e,t);for(;r&&ir(r)&&Qr(r);)r=Ur(r,t);return r&&ur(r)&&Qr(r)&&!lr(r)?n:r||function(e){let t=mr(e);for(;rr(t)&&!ur(t);){if(lr(t))return t;if(sr(t))return null;t=mr(t)}return null}(e)||n}const zr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=er(r),s=!!t&&sr(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Cr(1);const u=Cr(0),d=rr(r);if((d||!d&&!o)&&(("body"!==Jn(r)||or(i))&&(l=pr(r)),rr(r))){const e=Wr(r);c=Rr(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:er,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?sr(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=fr(e,[],!1).filter((e=>nr(e)&&"body"!==Jn(e))),a=null;const o="fixed"===dr(e).position;let i=o?mr(e):e;for(;nr(i)&&!ur(i);){const t=dr(i),n=lr(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||or(i)&&!n&&Zr(e,i))?r=r.filter((e=>e!==i)):a=t,i=mr(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=qr(t,n,a);return e.top=wr(r.top,e.top),e.right=vr(r.right,e.right),e.bottom=vr(r.bottom,e.bottom),e.left=wr(r.left,e.left),e}),qr(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:jr,getElementRects:async function(e){const t=this.getOffsetParent||jr,n=this.getDimensions,r=await n(e.floating);return{reference:Kr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Or(e);return{width:t,height:n}},getScale:Rr,isElement:nr,isRTL:function(e){return"rtl"===dr(e).direction}};function Gr(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Ir(e),u=a||o?[...c?fr(c):[],...fr(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const a=er(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const m={rootMargin:-yr(u)+"px "+-yr(a.clientWidth-(c+d))+"px "+-yr(a.clientHeight-(u+p))+"px "+-yr(c)+"px",threshold:wr(0,vr(1,l))||1};let h=!0;function f(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(f,{...m,root:a.ownerDocument})}catch(e){r=new IntersectionObserver(f,m)}r.observe(e)}(!0),o}(c,n):null;let p,m=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let f=l?Wr(e):null;return l&&function t(){const r=Wr(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n();f=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const Xr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=Mr(n),s=Er(n),l="y"===Nr(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=Sr(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(m="end"===s?-1*h:h),l?{x:m*u,y:p*c}:{x:p*c,y:m*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},Jr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:f=!0,...g}=Sr(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=Mr(a),w=Nr(s),b=Mr(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),C=p||(b||!f?[Ar(s)]:function(e){const t=Ar(e);return[Tr(e),t,Tr(t)]}(s)),k="none"!==h;!p&&k&&C.push(...function(e,t,n,r){const a=Er(e);let o=function(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}(Mr(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(Tr)))),o}(s,f,h,y));const D=[s,...C],x=await async function(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=Sr(t,e),h=Lr(m),f=s[p?"floating"===d?"reference":"floating":d],g=Hr(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(f)))||n?f:f.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,w=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await(null==o.isElement?void 0:o.isElement(w))&&await(null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},y=Hr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:w,strategy:l}):v);return{top:(g.top-y.top+h.top)/b.y,bottom:(y.bottom-g.bottom+h.bottom)/b.y,left:(g.left-y.left+h.left)/b.x,right:(y.right-g.right+h.right)/b.x}}(t,g),S=[];let M=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&S.push(x[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Er(e),a=Pr(e),o=_r(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Ar(i)),[i,Ar(i)]}(a,i,y);S.push(x[e[0]],x[e[1]])}if(M=[...M,{placement:a,overflows:S}],!S.every((e=>e<=0))){var E,_;const e=((null==(E=o.flip)?void 0:E.index)||0)+1,t=D[e];if(t)return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(_=M.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:_.placement;if(!n)switch(m){case"bestFit":{var N;const e=null==(N=M.filter((e=>{if(k){const t=Nr(e.placement);return t===w||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},$r=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Sr(e,t)||{};if(null==c)return{};const d=Lr(u),p={x:n,y:r},m=Pr(a),h=_r(m),f=await i.getDimensions(c),g="y"===m,v=g?"top":"left",w=g?"bottom":"right",b=g?"clientHeight":"clientWidth",y=o.reference[h]+o.reference[m]-p[m]-o.floating[h],C=p[m]-o.reference[m],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let D=k?k[b]:0;D&&await(null==i.isElement?void 0:i.isElement(k))||(D=s.floating[b]||o.floating[h]);const x=y/2-C/2,S=D/2-f[h]/2-1,M=vr(d[v],S),E=vr(d[w],S),_=M,N=D-f[h]-E,P=D/2-f[h]/2+x,T=xr(_,P,N),A=!l.arrow&&null!=Er(a)&&P!==T&&o.reference[h]/2-(P<_?M:E)-f[h]/2<0,L=A?P<_?P-_:P-N:0;return{[m]:p[m]+L,data:{[m]:T,centerOffset:P-T-L,...A&&{alignmentOffset:L}},reset:A}}}),ea=(e,t,n)=>{const r=new Map,a={platform:zr,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=Yr(c,r,l),p=r,m={},h=0;for(let n=0;n<s.length;n++){const{name:o,fn:f}=s[n],{x:g,y:v,data:w,reset:b}=await f({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,m={...m,[o]:{...m[o],...w}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:u,y:d}=Yr(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:m}})(e,t,{...a,platform:o})};var ta="undefined"!=typeof document?s:o;function na(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!na(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!na(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ra(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function aa(e,t){const n=ra(e);return Math.round(t*n)/n}function oa(t){const n=e.useRef(t);return ta((()=>{n.current=t})),n}const ia=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?$r({element:n.current,padding:r}).fn(t):{}:n?$r({element:n,padding:r}).fn(t):{};var a}}),sa=(e,t)=>({...Xr(e),options:[e,t]}),la=(e,t)=>({...ia(e),options:[e,t]}),ca={...e},ua=ca.useInsertionEffect||(e=>e());var da="undefined"!=typeof document?s:o;function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pa.apply(this,arguments)}let ma=!1,ha=0;const fa=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ha++;const ga=ca.useId||function(){const[t,n]=e.useState((()=>ma?fa():void 0));return da((()=>{null==t&&n(fa())}),[]),e.useEffect((()=>{ma=!0}),[]),t};let va;"production"!==process.env.NODE_ENV&&(va=new Set);const wa=e.forwardRef((function(t,n){const{context:{placement:r,elements:{floating:a},middlewareData:{arrow:o,shift:i}},width:s=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:p,d:m,style:{transform:h,...f}={},...g}=t;"production"!==process.env.NODE_ENV&&(n||function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const a="Floating UI: "+n.join(" ");var o;null!=(e=va)&&e.has(a)||(null==(o=va)||o.add(a),console.warn(a))}("The `ref` prop is required for `FloatingArrow`."));const v=ga(),[w,b]=e.useState(!1);if(da((()=>{if(!a)return;"rtl"===dr(a).direction&&b(!0)}),[a]),!a)return null;const[y,C]=r.split("-"),k="top"===y||"bottom"===y;let D=d;(k&&null!=i&&i.x||!k&&null!=i&&i.y)&&(D=null);const x=2*u,S=x/2,M=s/2*(c/-8+1),E=l/2*c/4,_=!!m,N=D&&"end"===C?"bottom":"top";let P=D&&"end"===C?"right":"left";D&&w&&(P="end"===C?"left":"right");const T=null!=(null==o?void 0:o.x)?D||o.x:"",A=null!=(null==o?void 0:o.y)?D||o.y:"",L=m||"M0,0 H"+s+" L"+(s-M)+","+(l-E)+" Q"+s/2+","+l+" "+M+","+(l-E)+" Z",H={top:_?"rotate(180deg)":"",left:_?"rotate(90deg)":"rotate(-90deg)",bottom:_?"":"rotate(180deg)",right:_?"rotate(-90deg)":"rotate(90deg)"}[y];return e.createElement("svg",pa({},g,{"aria-hidden":!0,ref:n,width:_?s:s+x,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[P]:T,[N]:A,[y]:k||_?"100%":"calc(100% - "+x/2+"px)",transform:[H,h].filter((e=>!!e)).join(" "),...f}}),x>0&&e.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:p,strokeWidth:x+(m?0:1),d:L}),e.createElement("path",{stroke:x&&!m?g.fill:"none",d:L}),e.createElement("clipPath",{id:v},e.createElement("rect",{x:-S,y:S*(_?-1:1),width:s+x,height:s})))}));const ba=e.createContext(null),ya=e.createContext(null),Ca=()=>{var t;return(null==(t=e.useContext(ba))?void 0:t.id)||null},ka=()=>e.useContext(ya);function Da(t){const{open:n=!1,onOpenChange:r,elements:a}=t,o=ga(),i=e.useRef({}),[s]=e.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=Ca();if("production"!==process.env.NODE_ENV){const e=a.reference;e&&!nr(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const a="Floating UI: "+n.join(" ");var o;null!=(e=va)&&e.has(a)||(null==(o=va)||o.add(a),console.error(a))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=e.useState(a.reference),d=function(t){const n=e.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return ua((()=>{n.current=t})),e.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}(((e,t,n)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:n,nested:l}),null==r||r(e,t,n)})),p=e.useMemo((()=>({setPositionReference:u})),[]),m=e.useMemo((()=>({reference:c||a.reference||null,floating:a.floating||null,domReference:a.reference})),[c,a.reference,a.floating]);return e.useMemo((()=>({dataRef:i,open:n,onOpenChange:d,elements:m,events:s,floatingId:o,refs:p})),[n,d,m,s,o,p])}function xa(t){void 0===t&&(t={});const{nodeId:n}=t,r=Da({...t,elements:{reference:null,floating:null,...t.elements}}),a=t.rootContext||r,o=a.elements,[i,s]=e.useState(null),[l,c]=e.useState(null),u=(null==o?void 0:o.reference)||i,d=e.useRef(null),p=ka();da((()=>{u&&(d.current=u)}),[u]);const h=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=t,[d,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[h,f]=e.useState(a);na(h,a)||f(a);const[g,v]=e.useState(null),[w,b]=e.useState(null),y=e.useCallback((e=>{e!==x.current&&(x.current=e,v(e))}),[]),C=e.useCallback((e=>{e!==S.current&&(S.current=e,b(e))}),[]),k=i||g,D=s||w,x=e.useRef(null),S=e.useRef(null),M=e.useRef(d),E=null!=c,_=oa(c),N=oa(o),P=oa(u),T=e.useCallback((()=>{if(!x.current||!S.current)return;const e={placement:n,strategy:r,middleware:h};N.current&&(e.platform=N.current),ea(x.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};A.current&&!na(M.current,t)&&(M.current=t,m.flushSync((()=>{p(t)})))}))}),[h,n,r,N,P]);ta((()=>{!1===u&&M.current.isPositioned&&(M.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[u]);const A=e.useRef(!1);ta((()=>(A.current=!0,()=>{A.current=!1})),[]),ta((()=>{if(k&&(x.current=k),D&&(S.current=D),k&&D){if(_.current)return _.current(k,D,T);T()}}),[k,D,T,_,E]);const L=e.useMemo((()=>({reference:x,floating:S,setReference:y,setFloating:C})),[y,C]),H=e.useMemo((()=>({reference:k,floating:D})),[k,D]),Y=e.useMemo((()=>{const e={position:r,left:0,top:0};if(!H.floating)return e;const t=aa(H.floating,d.x),n=aa(H.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...ra(H.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,l,H.floating,d.x,d.y]);return e.useMemo((()=>({...d,update:T,refs:L,elements:H,floatingStyles:Y})),[d,T,L,H,Y])}({...t,elements:{...o,...l&&{reference:l}}}),f=e.useCallback((e=>{const t=nr(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),h.refs.setReference(t)}),[h.refs]),g=e.useCallback((e=>{(nr(e)||null===e)&&(d.current=e,s(e)),(nr(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!nr(e))&&h.refs.setReference(e)}),[h.refs]),v=e.useMemo((()=>({...h.refs,setReference:g,setPositionReference:f,domReference:d})),[h.refs,g,f]),w=e.useMemo((()=>({...h.elements,domReference:u})),[h.elements,u]),b=e.useMemo((()=>({...h,...a,refs:v,elements:w,nodeId:n})),[h,v,w,n,a]);return da((()=>{a.dataRef.current.floatingContext=b;const e=null==p?void 0:p.nodesRef.current.find((e=>e.id===n));e&&(e.context=b)})),e.useMemo((()=>({...h,context:b,refs:v,elements:w})),[h,v,w,b])}
11
+ */!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var a=arguments[r];if(a){var o=typeof a;if("string"===o||"number"===o)e.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&e.push(i)}}else if("object"===o){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){e.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&e.push(s)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(C);var k,D=f(C.exports);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(null,arguments)}const S=t=>e.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,stroke:"rgba(0, 0, 0, .26)",viewBox:"0 0 24 24"},t),k||(k=e.createElement("style",null,"@keyframes spinner_zKoa{to{transform:rotate(360deg)}}@keyframes spinner_YpZS{0%{stroke-dasharray:0 150;stroke-dashoffset:0}47.5%{stroke-dasharray:42 150;stroke-dashoffset:-16}95%,to{stroke-dasharray:42 150;stroke-dashoffset:-59}}")),e.createElement("g",{style:{transformOrigin:"center",animation:"spinner_zKoa 2s linear infinite"}},e.createElement("circle",{cx:12,cy:12,r:9.5,fill:"none",strokeWidth:2,className:"spinner_svg__spinner_V8m1",style:{strokeLinecap:"round",animation:"spinner_YpZS 1.5s ease-in-out infinite"}}))),M=({size:e="16",color:n="white",className:r})=>t.createElement(S,{className:D("spinner",r),width:e,height:e,stroke:n});const E=w.bind({button:"Button-module_button__JK2Jx",fancy:"Button-module_fancy__2cnu9",primary:"Button-module_primary__wIuY6",secondary:"Button-module_secondary__n8cUo",outlined:"Button-module_outlined__dLv1u",outlinedSecondary:"Button-module_outlinedSecondary__oUBP1",outlinedDanger:"Button-module_outlinedDanger__pIcHL",outlinedWarning:"Button-module_outlinedWarning__ExDBS",danger:"Button-module_danger__8GArG",warning:"Button-module_warning__Bw4Rs",white:"Button-module_white__zpeRb",outlinedWhite:"Button-module_outlinedWhite__x89sZ",small:"Button-module_small__qRKwC",medium:"Button-module_medium__XwIa4",large:"Button-module_large__ZIejN",text:"Button-module_text__BWVYH",textSecondary:"Button-module_textSecondary__nIELn",loading:"Button-module_loading__PGkqg",success:"Button-module_success__uLz2G",outlinedSuccess:"Button-module_outlinedSuccess__WhbQj"}),_=n(((e,n)=>{var{hint:r,label:a,loading:o,disabled:i,customClass:s,variant:l="primary",size:c="medium",iconSrc:u,iconPosition:d="left",onClick:p}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["hint","label","loading","disabled","customClass","variant","size","iconSrc","iconPosition","onClick"]);const h=u&&"string"==typeof u?t.createElement("img",{src:u}):u;return t.createElement("button",Object.assign({title:r,onClick:p,disabled:o||i,className:E("button",l,c,s,{loading:o}),ref:n,type:"button"},m),o&&t.createElement(M,null),!o&&u&&"left"===d&&h,void 0!==a&&t.createElement("span",null,a),!o&&u&&"right"===d&&h)}));_.displayName="Button";var N="data:image/svg+xml,%3csvg width='11' height='7' viewBox='0 0 11 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.56153 0.75411C4.88925 0.415298 5.42716 0.415297 5.75487 0.754109L9.91715 5.05737C10.4363 5.59406 10.0616 6.5 9.32049 6.5H0.99592C0.254841 6.5 -0.119853 5.59406 0.399253 5.05737L4.56153 0.75411Z' fill='%2312306C'/%3e%3c/svg%3e",P={dropdown:"Dropdown-module_dropdown__OYMLT",isOpen:"Dropdown-module_isOpen__I-Fwe",dropdownToggle:"Dropdown-module_dropdownToggle__K4-rD",outlined:"Dropdown-module_outlined__cubpr",withIcon:"Dropdown-module_withIcon__WZrCH",primary:"Dropdown-module_primary__rH-n3",dropdownContent:"Dropdown-module_dropdownContent__kCcyD"};const T=w.bind(P),A=n((({hint:e,icon:n,label:s,children:l,customCaretDownIconSrc:c,customClass:u,variant:d="primary",dismissOnClickOutside:p=!0,onToggle:m},h)=>{const f=r(null),[g,v]=a(!1);o((()=>{if(p)return document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b)}})),i(h,(()=>({close:w})));const w=()=>{v(!1)},b=e=>{(null==f?void 0:f.current)&&!f.current.contains(e.target)&&g&&v(!1)};return t.createElement("div",{ref:f,className:T("dropdown",d,u,{isOpen:g,withIcon:!!n})},t.createElement("button",{title:e,type:"button",onClick:e=>{e.preventDefault(),v(!g),null==m||m(!g,e)},className:P.dropdownToggle},n&&t.createElement("img",{src:n,alt:"icon"}),t.createElement("span",null,s),t.createElement("img",{src:c||N,alt:"caret"})),t.createElement("div",{className:P.dropdownContent,hidden:!g},l))}));var L={textfield:"TextField-module_textfield__Z5iSV",iconLeft:"TextField-module_iconLeft__OEYRe",iconRight:"TextField-module_iconRight__zQ0w9",clearButton:"TextField-module_clearButton__M8pNo",icon:"TextField-module_icon__E2Ieq"};const H=w.bind(L),Y=({value:e,customClass:n,placeholder:r,showClearButton:a,variant:o="primary",onChange:i,onClick:s,inputRef:l,icon:c,iconPosition:u="left"})=>{var d,p;return t.createElement("div",{className:H("textfield",o,n)},c&&t.createElement("img",{src:c,alt:"icon",className:H("icon",{iconLeft:"left"===u,iconRight:"right"===u})}),t.createElement("input",{ref:l,value:e,autoComplete:"off",placeholder:r,onChange:e=>{null==i||i(e.target.value)},onClick:e=>{null==s||s(e)},className:H({iconLeft:!!c&&"left"===u,iconRight:!!c&&"right"===u})}),a&&(!!(null==e?void 0:e.length)||!!(null===(p=null===(d=null==l?void 0:l.current)||void 0===d?void 0:d.value)||void 0===p?void 0:p.length))&&t.createElement("button",{type:"button","aria-label":"clear",onClick:()=>{null==i||i(""),(null==l?void 0:l.current)&&(l.current.value="")},className:L.clearButton}))};var O={accordion:"Accordion-module_accordion__t2UQl",isOpen:"Accordion-module_isOpen__0d2yS",accordionToggle:"Accordion-module_accordionToggle__4X-Wg",accordionContent:"Accordion-module_accordionContent__j9no7"};const I=w.bind(O),R=({hint:e,label:n,children:r,customClass:o,variant:i="outlined",openByDefault:s=!1,caretPosition:l="right",onToggle:c})=>{const[u,d]=a(s);return t.createElement("div",{className:I("accordion",i,o,{isOpen:u})},t.createElement("button",{title:e,type:"button",onClick:e=>{e.preventDefault(),d(!u),null==c||c(!u,e)},className:O.accordionToggle},"left"===l&&t.createElement("img",{src:N,alt:"caret"}),t.createElement("span",null,n),"right"===l&&t.createElement("img",{src:N,alt:"caret"})),r&&t.createElement("div",{hidden:!u,className:O.accordionContent},r))};var B={tabMenu:"TabMenu-module_tabMenu__SbpUg",tab:"TabMenu-module_tab__-NW1I",active:"TabMenu-module_active__F76rY",chip:"TabMenu-module_chip__KRJDB"};const F=w.bind(B),W=({customClass:e,tabId:n,active:r,chip:a,children:o,onClick:i})=>t.createElement("div",{className:F("tab",e,{active:r}),onClick:()=>i(n)},"string"==typeof o?t.createElement("span",null,o):o,!!a&&t.createElement("div",{className:F("chip")},a)),V=w.bind(B),q=({customClass:e,tabCustomClass:n,tabs:r,activeTab:a,onClick:o})=>t.createElement("div",{className:V("tabMenu",e)},r.map((e=>t.createElement(W,{key:e.tabId,tabId:e.tabId,customClass:V(n,e.customClass),active:e.tabId===a,chip:e.chip,onClick:o},e.label))));var Z={modalOverlay:"Modal-module_modalOverlay__vB0a-",modalWrapper:"Modal-module_modalWrapper__0bvDk",modalCloseButton:"Modal-module_modalCloseButton__raBgL",modalTitle:"Modal-module_modalTitle__TW21J",modalContent:"Modal-module_modalContent__PUKvv",buttonsContainer:"Modal-module_buttonsContainer__dghew"};const K=w.bind(Z),Q=({buttons:e,children:n,customClass:a,contentCustomClass:i,dismissable:s=!0,title:l,titleIcon:c,onClose:u})=>{const d=r(null);o((()=>{if(s)return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}}));const p=e=>{(null==d?void 0:d.current)&&!d.current.contains(e.target)&&(null==u||u(e))};return t.createElement("div",{className:K(Z.modalOverlay,a)},t.createElement("div",{ref:d,className:K(Z.modalWrapper,i)},s&&t.createElement("button",{onClick:e=>{e.preventDefault(),null==u||u(e)},className:Z.modalCloseButton},t.createElement("img",{src:"data:image/svg+xml,%3csvg width='19' height='19' viewBox='0 0 19 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_10778_20349)'%3e%3cpath d='M11.41 8.99999L18.7 1.70999C18.8638 1.51869 18.9494 1.27261 18.9397 1.02093C18.93 0.769257 18.8256 0.530518 18.6475 0.352424C18.4694 0.174329 18.2307 0.0699962 17.979 0.0602751C17.7274 0.0505539 17.4813 0.13616 17.29 0.299987L9.99997 7.58999L2.70997 0.289987C2.51867 0.12616 2.2726 0.0405547 2.02092 0.0502758C1.76924 0.059997 1.53051 0.164329 1.35241 0.342423C1.17432 0.520518 1.06998 0.759257 1.06026 1.01093C1.05054 1.26261 1.13615 1.50868 1.29997 1.69999L8.58997 8.99999L1.28997 16.29C1.18529 16.3796 1.10027 16.49 1.04025 16.614C0.980225 16.7381 0.946494 16.8732 0.941175 17.0109C0.935855 17.1487 0.959061 17.286 1.00934 17.4143C1.05961 17.5426 1.13587 17.6592 1.23332 17.7566C1.33078 17.8541 1.44733 17.9303 1.57565 17.9806C1.70398 18.0309 1.84131 18.0541 1.97903 18.0488C2.11675 18.0435 2.25188 18.0097 2.37594 17.9497C2.50001 17.8897 2.61033 17.8047 2.69997 17.7L9.99997 10.41L17.29 17.7C17.4813 17.8638 17.7274 17.9494 17.979 17.9397C18.2307 17.93 18.4694 17.8256 18.6475 17.6476C18.8256 17.4695 18.93 17.2307 18.9397 16.979C18.9494 16.7274 18.8638 16.4813 18.7 16.29L11.41 8.99999Z' fill='%231B2050'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_10778_20349'%3e%3crect width='19' height='19' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",alt:"close modal"})),l&&t.createElement("div",{className:Z.modalTitle},c&&t.createElement("img",{src:c,alt:"title icon"}),l),t.createElement("div",{className:Z.modalContent},n),e&&t.createElement("div",{className:Z.buttonsContainer},e.map((e=>e)))))};var U="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 18 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M8.955 15.0768C9.27 15.0768 9.5364 14.9679 9.7542 14.7501C9.9714 14.5329 10.08 14.2668 10.08 13.9518C10.08 13.6368 9.9714 13.3707 9.7542 13.1535C9.5364 12.9357 9.27 12.8268 8.955 12.8268C8.64 12.8268 8.3736 12.9357 8.1558 13.1535C7.9386 13.3707 7.83 13.6368 7.83 13.9518C7.83 14.2668 7.9386 14.5329 8.1558 14.7501C8.3736 14.9679 8.64 15.0768 8.955 15.0768ZM8.145 11.6118H9.81C9.81 11.1168 9.8664 10.7268 9.9792 10.4418C10.0914 10.1568 10.41 9.76676 10.935 9.27176C11.325 8.88176 11.6325 8.51036 11.8575 8.15756C12.0825 7.80536 12.195 7.38176 12.195 6.88676C12.195 6.04676 11.8875 5.40176 11.2725 4.95176C10.6575 4.50176 9.93 4.27676 9.09 4.27676C8.235 4.27676 7.5414 4.50176 7.0092 4.95176C6.4764 5.40176 6.105 5.94176 5.895 6.57176L7.38 7.15676C7.455 6.88676 7.6239 6.59426 7.8867 6.27926C8.1489 5.96426 8.55 5.80676 9.09 5.80676C9.57 5.80676 9.93 5.93786 10.17 6.20006C10.41 6.46286 10.53 6.75176 10.53 7.06676C10.53 7.36676 10.44 7.64786 10.26 7.91006C10.08 8.17286 9.855 8.41676 9.585 8.64176C8.925 9.22676 8.52 9.66926 8.37 9.96926C8.22 10.2693 8.145 10.8168 8.145 11.6118ZM9 18.6768C7.755 18.6768 6.585 18.4404 5.49 17.9676C4.395 17.4954 3.4425 16.8543 2.6325 16.0443C1.8225 15.2343 1.1814 14.2818 0.7092 13.1868C0.2364 12.0918 0 10.9218 0 9.67676C0 8.43176 0.2364 7.26176 0.7092 6.16676C1.1814 5.07176 1.8225 4.11926 2.6325 3.30926C3.4425 2.49926 4.395 1.85786 5.49 1.38506C6.585 0.912858 7.755 0.676758 9 0.676758C10.245 0.676758 11.415 0.912858 12.51 1.38506C13.605 1.85786 14.5575 2.49926 15.3675 3.30926C16.1775 4.11926 16.8186 5.07176 17.2908 6.16676C17.7636 7.26176 18 8.43176 18 9.67676C18 10.9218 17.7636 12.0918 17.2908 13.1868C16.8186 14.2818 16.1775 15.2343 15.3675 16.0443C14.5575 16.8543 13.605 17.4954 12.51 17.9676C11.415 18.4404 10.245 18.6768 9 18.6768Z' fill='white'/%3e%3c/svg%3e",j={appBar:"AppBar-module_appBar__Qdk4Q",wrapper:"AppBar-module_wrapper__1RQaw",appId:"AppBar-module_appId__dvlhd",icon:"AppBar-module_icon__llVzL",titleWrapper:"AppBar-module_titleWrapper__ZDbYC",betaApp:"AppBar-module_betaApp__glSMt",appInfo:"AppBar-module_appInfo__ojUgZ",appInfoPipe:"AppBar-module_appInfoPipe__-gQ7i",contentWrapper:"AppBar-module_contentWrapper__CIRle",content:"AppBar-module_content__zfFex",appVersionWrapper:"AppBar-module_appVersionWrapper__rJLPr",appVersion:"AppBar-module_appVersion__CNsMr",rightAddornmentWrapper:"AppBar-module_rightAddornmentWrapper__E7yIg",rightAddornment:"AppBar-module_rightAddornment__Lt7AS",lastUpdatedContainer:"AppBar-module_lastUpdatedContainer__7aFn5",appTooltipWrapper:"AppBar-module_appTooltipWrapper__o3bOA",lifted:"AppBar-module_lifted__Q8nLc",appTooltipCenterWrapper:"AppBar-module_appTooltipCenterWrapper__XqQiT",lastUpdatedTooltipContentWrapper:"AppBar-module_lastUpdatedTooltipContentWrapper__Pr1tq",appTooltipContent:"AppBar-module_appTooltipContent__WpduU",lastUpdatedTooltipWrapper:"AppBar-module_lastUpdatedTooltipWrapper__PEeHF"};const z=w.bind(j),G=({icon:e,isBeta:n,appName:i,version:s,children:l,customClass:c,lastUpdated:u,lastUpdatedTooltip:d,description:p,tooltipContent:m,rightAddornment:h,backgroundColor:f,backgroundImage:g,backgroundGradient:v})=>{const w=r(null),b=r(null),[y,C]=a(!1),[k,D]=a(!1),[x,S]=a();o((()=>(document.addEventListener("mousedown",M),()=>{document.removeEventListener("mousedown",M)})));const M=e=>{(null==w?void 0:w.current)&&!w.current.contains(e.target)&&y&&C(!1),(null==b?void 0:b.current)&&!b.current.contains(e.target)&&k&&D(!1)};return t.createElement("div",{className:z(j.appBar,c),style:Object.assign({},g?{backgroundImage:`url(${g})`}:v?{backgroundImage:v}:f?{backgroundColor:f}:{backgroundImage:"linear-gradient(180deg, #0B193C 0%, $--sds-color-background-main 100%)"})},t.createElement("div",{id:"wrapper",className:j.wrapper},t.createElement("div",{className:j.appId},t.createElement("img",{src:e,className:j.icon}),t.createElement("div",{className:j.titleWrapper},t.createElement("h4",null,i,n&&t.createElement("span",{className:j.betaApp},"BETA")),t.createElement("div",{className:j.appInfo},u&&t.createElement(t.Fragment,null,"Last Updated: ",t.createElement("strong",null,u),d&&t.createElement("div",{ref:b,className:z(j.appTooltipWrapper,j.lastUpdatedTooltipWrapper)},t.createElement("img",{src:U,className:j.appTooltipToggle,onClick:()=>{D((e=>!e))}}),t.createElement("div",{className:z(j.appTooltipCenterWrapper,j.lastUpdatedTooltipContentWrapper)},t.createElement("div",{hidden:!k,className:j.appTooltipContent},d))),t.createElement("span",{className:j.appInfoPipe},"|")),p))),t.createElement("div",{className:j.contentWrapper},t.createElement("div",{className:j.content},l),t.createElement("div",{className:j.rightAddornmentWrapper},h&&t.createElement("div",{className:j.rightAddornment},h),t.createElement("div",{className:j.appVersionWrapper},s&&t.createElement("div",{className:j.appVersion},t.createElement("div",null,"Version: ",t.createElement("strong",null,s))),m&&t.createElement("div",{ref:w,className:z(j.appTooltipWrapper,{lifted:!s&&!h})},t.createElement("img",{src:U,className:j.appTooltipToggle,onClick:e=>{const t=(e=>{var t,n;const r=e.currentTarget.getBoundingClientRect(),a=null===(t=document.getElementById("wrapper"))||void 0===t?void 0:t.getBoundingClientRect();return r.bottom+8-(null!==(n=null==a?void 0:a.top)&&void 0!==n?n:0)})(e);S({top:t}),C(!y)}}),t.createElement("div",{className:j.appTooltipCenterWrapper,style:x},t.createElement("div",{hidden:!y,className:j.appTooltipContent},m))))))))};var X;function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J.apply(null,arguments)}const $=t=>e.createElement("svg",J({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},t),X||(X=e.createElement("path",{fill:"#12306C",d:"m441.9 167.3-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17 0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7 4.7-12.3 0-17"})));var ee={sdsWrapper:"DatePicker-module_sdsWrapper__Ny8aV",sdsHeader:"DatePicker-module_sdsHeader__qPKM-",sdsHeader__yearSelector:"DatePicker-module_sdsHeader__yearSelector__3BNC2",sdsHeader__monthSelectors:"DatePicker-module_sdsHeader__monthSelectors__8jGdR",sdsYearsSelector__header:"DatePicker-module_sdsYearsSelector__header__MkyA8",sdsYearsSelector__headerTitle:"DatePicker-module_sdsYearsSelector__headerTitle__fUeso",sdsYearsSelector__headerButtons:"DatePicker-module_sdsYearsSelector__headerButtons__M816B",sdsYearsSelector__years:"DatePicker-module_sdsYearsSelector__years__Hbl23",sdsYearsSelector__year:"DatePicker-module_sdsYearsSelector__year__BvkEW",sdsYearsSelector__year_selected:"DatePicker-module_sdsYearsSelector__year_selected__rC-HK",sdsYearsSelector__year_current:"DatePicker-module_sdsYearsSelector__year_current__mq5zq",sdsYearsSelector__year_disabled:"DatePicker-module_sdsYearsSelector__year_disabled__0Iy-M"};function te(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=te(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ne(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=te(e))&&(r&&(r+=" "),r+=t);return r}function re(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function ae(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function oe(e,t){const n=re(e);return isNaN(t)?ae(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function ie(e,t){return ae(e,+re(e)+t)}const se=6048e5,le=864e5,ce=6e4,ue=36e5;function de(e,t){return ie(e,t*ce)}function pe(e,t){const n=re(e);if(isNaN(t))return ae(e,NaN);if(!t)return n;const r=n.getDate(),a=ae(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);return r>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),r),n)}function me(e,t){return pe(e,3*t)}function he(e,t){return ie(e,1e3*t)}function fe(e,t){return oe(e,7*t)}function ge(e,t){return pe(e,12*t)}function ve(e){const t=re(e);return t.setHours(0,0,0,0),t}function we(e){const t=re(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function be(e,t){const n=ve(e),r=ve(t),a=+n-we(n),o=+r-we(r);return Math.round((a-o)/le)}function ye(e,t){const n=re(e),r=re(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function Ce(e){const t=re(e);return Math.trunc(t.getMonth()/3)+1}function ke(e,t){const n=re(e),r=re(t);return 4*(n.getFullYear()-r.getFullYear())+(Ce(n)-Ce(r))}function De(e,t){const n=re(e),r=re(t);return n.getFullYear()-r.getFullYear()}function xe(e){const t=re(e);return t.setHours(23,59,59,999),t}function Se(e){const t=re(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}let Me={};function Ee(){return Me}function _e(e){const t=re(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}const Ne={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Pe(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Te={date:Pe({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Pe({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Pe({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Le(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):t;r=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const He={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Le({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Le({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Le({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Le({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Le({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Ye(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const i=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(i)));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}const Oe={ordinalNumber:(Ie={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(Ie.matchPattern);if(!n)return null;const r=n[0],a=e.match(Ie.parsePattern);if(!a)return null;let o=Ie.valueCallback?Ie.valueCallback(a[0]):a[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(r.length)}}),era:Ye({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ye({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ye({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ye({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ye({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Ie;const Re={code:"en-US",formatDistance:(e,t,n)=>{let r;const a=Ne[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:Te,formatRelative:(e,t,n,r)=>Ae[e],localize:He,match:Oe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Be(e){const t=re(e),n=ae(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Fe(e,t){const n=Ee(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=re(e),o=a.getDay(),i=(o<r?7:0)+o-r;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function We(e){return Fe(e,{weekStartsOn:1})}function Ve(e){const t=re(e),n=t.getFullYear(),r=ae(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=We(r),o=ae(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const i=We(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function qe(e){const t=re(e),n=+We(t)-+function(e){const t=Ve(e),n=ae(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),We(n)}(t);return Math.round(n/se)+1}function Ze(e,t){const n=re(e),r=n.getFullYear(),a=Ee(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=ae(e,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const s=Fe(i,t),l=ae(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=Fe(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function Ke(e,t){const n=re(e),r=+Fe(n,t)-+function(e,t){const n=Ee(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=Ze(e,t),o=ae(e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),Fe(o,t)}(n,t);return Math.round(r/se)+1}function Qe(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Ue={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Qe("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Qe(n+1,2)},d:(e,t)=>Qe(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Qe(e.getHours()%12||12,t.length),H:(e,t)=>Qe(e.getHours(),t.length),m:(e,t)=>Qe(e.getMinutes(),t.length),s:(e,t)=>Qe(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Qe(Math.trunc(r*Math.pow(10,n-3)),t.length)}},je="midnight",ze="noon",Ge="morning",Xe="afternoon",Je="evening",$e="night",et={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return Ue.y(e,t)},Y:function(e,t,n,r){const a=Ze(e,r),o=a>0?a:1-a;if("YY"===t){return Qe(o%100,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Qe(o,t.length)},R:function(e,t){return Qe(Ve(e),t.length)},u:function(e,t){return Qe(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Qe(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Qe(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ue.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Qe(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=Ke(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):Qe(a,t.length)},I:function(e,t,n){const r=qe(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Qe(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Ue.d(e,t)},D:function(e,t,n){const r=function(e){const t=re(e);return be(t,Be(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Qe(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Qe(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Qe(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return Qe(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(a=12===r?ze:0===r?je:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(a=r>=17?Je:r>=12?Xe:r>=4?Ge:$e,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Ue.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ue.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Qe(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Qe(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ue.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ue.s(e,t)},S:function(e,t){return Ue.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return nt(r);case"XXXX":case"XX":return rt(r);default:return rt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return nt(r);case"xxxx":case"xx":return rt(r);default:return rt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+tt(r,":");default:return"GMT"+rt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+tt(r,":");default:return"GMT"+rt(r,":")}},t:function(e,t,n){return Qe(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return Qe(e.getTime(),t.length)}};function tt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),o=r%60;return 0===o?n+String(a):n+String(a)+t+Qe(o,2)}function nt(e,t){if(e%60==0){return(e>0?"-":"+")+Qe(Math.abs(e)/60,2)}return rt(e,t)}function rt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Qe(Math.trunc(r/60),2)+t+Qe(r%60,2)}const at=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ot=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},it={p:ot,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return at(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",at(r,t)).replace("{{time}}",ot(a,t))}},st=/^D+$/,lt=/^Y+$/,ct=["D","DD","YY","YYYY"];function ut(e){return st.test(e)}function dt(e){return lt.test(e)}function pt(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),ct.includes(e))throw new RangeError(r)}function mt(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function ht(e){if(!mt(e)&&"number"!=typeof e)return!1;const t=re(e);return!isNaN(Number(t))}const ft=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vt=/^'([^]*?)'?$/,wt=/''/g,bt=/[a-zA-Z]/;function yt(e,t,n){const r=Ee(),a=n?.locale??r.locale??Re,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=re(e);if(!ht(s))throw new RangeError("Invalid time value");let l=t.match(gt).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,it[t])(e,a.formatLong)}return e})).join("").match(ft).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Ct(e)};if(et[t])return{isToken:!0,value:e};if(t.match(bt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));a.localize.preprocessor&&(l=a.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return l.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&dt(o)||!n?.useAdditionalDayOfYearTokens&&ut(o))&&pt(o,t,String(e));return(0,et[o[0]])(s,o,a.localize,c)})).join("")}function Ct(e){const t=e.match(vt);return t?t[1].replace(wt,"'"):e}function kt(e){return re(e).getDate()}function Dt(e){return re(e).getHours()}function xt(e){return re(e).getMinutes()}function St(e){return re(e).getMonth()}function Mt(e){return re(e).getSeconds()}function Et(e){return re(e).getTime()}function _t(e){return re(e).getFullYear()}function Nt(e,t){const n=re(e),r=re(t);return n.getTime()>r.getTime()}function Pt(e,t){return+re(e)<+re(t)}function Tt(e){const t=re(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function At(e,t){const n=+re(e),[r,a]=[+re(t.start),+re(t.end)].sort(((e,t)=>e-t));return n>=r&&n<=a}function Lt(e){let t;return e.forEach((function(e){const n=re(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function Ht(e){let t;return e.forEach((e=>{const n=re(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)}class Yt{subPriority=0;validate(e,t){return!0}}class Ot extends Yt{constructor(e,t,n,r,a){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,a&&(this.subPriority=a)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class It extends Yt{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:ae(e,function(e,t){const n=t instanceof Date?ae(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}(e,Date))}}class Rt{run(e,t,n,r){const a=this.parse(e,t,n,r);return a?{setter:new Ot(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,t,n){return!0}}const Bt=/^(1[0-2]|0?\d)/,Ft=/^(3[0-1]|[0-2]?\d)/,Wt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Vt=/^(5[0-3]|[0-4]?\d)/,qt=/^(2[0-3]|[0-1]?\d)/,Zt=/^(2[0-4]|[0-1]?\d)/,Kt=/^(1[0-1]|0?\d)/,Qt=/^(1[0-2]|0?\d)/,Ut=/^[0-5]?\d/,jt=/^[0-5]?\d/,zt=/^\d/,Gt=/^\d{1,2}/,Xt=/^\d{1,3}/,Jt=/^\d{1,4}/,$t=/^-?\d+/,en=/^-?\d/,tn=/^-?\d{1,2}/,nn=/^-?\d{1,3}/,rn=/^-?\d{1,4}/,an=/^([+-])(\d{2})(\d{2})?|Z/,on=/^([+-])(\d{2})(\d{2})|Z/,sn=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,ln=/^([+-])(\d{2}):(\d{2})|Z/,cn=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function un(e,t){return e?{value:t(e.value),rest:e.rest}:e}function dn(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function pn(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,a=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(a*ue+o*ce+1e3*i),rest:t.slice(n[0].length)}}function mn(e){return dn($t,e)}function hn(e,t){switch(e){case 1:return dn(zt,t);case 2:return dn(Gt,t);case 3:return dn(Xt,t);case 4:return dn(Jt,t);default:return dn(new RegExp("^\\d{1,"+e+"}"),t)}}function fn(e,t){switch(e){case 1:return dn(en,t);case 2:return dn(tn,t);case 3:return dn(nn,t);case 4:return dn(rn,t);default:return dn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function gn(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function vn(e,t){const n=t>0,r=n?t:1-t;let a;if(r<=50)a=e||100;else{const t=r+50;a=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?a:1-a}function wn(e){return e%400==0||e%4==0&&e%100!=0}const bn=[31,28,31,30,31,30,31,31,30,31,30,31],yn=[31,29,31,30,31,30,31,31,30,31,30,31];function Cn(e,t,n){const r=Ee(),a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=re(e),i=o.getDay(),s=7-a;return oe(o,t<0||t>6?t-(i+s)%7:((t%7+7)%7+s)%7-(i+s)%7)}function kn(e,t){const n=re(e),r=function(e){let t=re(e).getDay();return 0===t&&(t=7),t}(n);return oe(n,t-r)}const Dn={G:new class extends Rt{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends Rt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return un(hn(4,e),r);case"yo":return un(n.ordinalNumber(e,{unit:"year"}),r);default:return un(hn(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=vn(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const a="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}},Y:new class extends Rt{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return un(hn(4,e),r);case"Yo":return un(n.ordinalNumber(e,{unit:"year"}),r);default:return un(hn(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const a=Ze(e,r);if(n.isTwoDigitYear){const t=vn(n.year,a);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Fe(e,r)}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Fe(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends Rt{priority=130;parse(e,t){return fn("R"===t?4:t.length,e)}set(e,t,n){const r=ae(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),We(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends Rt{priority=130;parse(e,t){return fn("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends Rt{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return hn(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends Rt{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return hn(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends Rt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return un(dn(Bt,e),r);case"MM":return un(hn(2,e),r);case"Mo":return un(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends Rt{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return un(dn(Bt,e),r);case"LL":return un(hn(2,e),r);case"Lo":return un(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends Rt{priority=100;parse(e,t,n){switch(t){case"w":return dn(Vt,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return hn(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Fe(function(e,t,n){const r=re(e),a=Ke(r,n)-t;return r.setDate(r.getDate()-7*a),r}(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends Rt{priority=100;parse(e,t,n){switch(t){case"I":return dn(Vt,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return hn(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return We(function(e,t){const n=re(e),r=qe(n)-t;return n.setDate(n.getDate()-7*r),n}(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends Rt{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return dn(Ft,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return hn(t.length,e)}}validate(e,t){const n=wn(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=yn[r]:t>=1&&t<=bn[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends Rt{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return dn(Wt,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return hn(t.length,e)}}validate(e,t){return wn(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends Rt{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Cn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends Rt{priority=90;parse(e,t,n,r){const a=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return un(hn(t.length,e),a);case"eo":return un(n.ordinalNumber(e,{unit:"day"}),a);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Cn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends Rt{priority=90;parse(e,t,n,r){const a=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return un(hn(t.length,e),a);case"co":return un(n.ordinalNumber(e,{unit:"day"}),a);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Cn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends Rt{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return hn(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return un(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return un(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return un(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return un(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=kn(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends Rt{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(gn(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends Rt{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(gn(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends Rt{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(gn(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends Rt{priority=70;parse(e,t,n){switch(t){case"h":return dn(Qt,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return hn(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends Rt{priority=70;parse(e,t,n){switch(t){case"H":return dn(qt,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return hn(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends Rt{priority=70;parse(e,t,n){switch(t){case"K":return dn(Kt,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return hn(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends Rt{priority=70;parse(e,t,n){switch(t){case"k":return dn(Zt,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return hn(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends Rt{priority=60;parse(e,t,n){switch(t){case"m":return dn(Ut,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return hn(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends Rt{priority=50;parse(e,t,n){switch(t){case"s":return dn(jt,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return hn(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends Rt{priority=30;parse(e,t){return un(hn(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends Rt{priority=10;parse(e,t){switch(t){case"X":return pn(an,e);case"XX":return pn(on,e);case"XXXX":return pn(sn,e);case"XXXXX":return pn(cn,e);default:return pn(ln,e)}}set(e,t,n){return t.timestampIsSet?e:ae(e,e.getTime()-we(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends Rt{priority=10;parse(e,t){switch(t){case"x":return pn(an,e);case"xx":return pn(on,e);case"xxxx":return pn(sn,e);case"xxxxx":return pn(cn,e);default:return pn(ln,e)}}set(e,t,n){return t.timestampIsSet?e:ae(e,e.getTime()-we(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends Rt{priority=40;parse(e){return mn(e)}set(e,t,n){return[ae(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends Rt{priority=20;parse(e){return mn(e)}set(e,t,n){return[ae(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},xn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Mn=/^'([^]*?)'?$/,En=/''/g,_n=/\S/,Nn=/[a-zA-Z]/;function Pn(e,t,n,r){const a=Object.assign({},Ee()),o=r?.locale??a.locale??Re,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(""===t)return""===e?re(n):ae(n,NaN);const l={firstWeekContainsDate:i,weekStartsOn:s,locale:o},c=[new It],u=t.match(Sn).map((e=>{const t=e[0];if(t in it){return(0,it[t])(e,o.formatLong)}return e})).join("").match(xn),d=[];for(let a of u){!r?.useAdditionalWeekYearTokens&&dt(a)&&pt(a,t,e),!r?.useAdditionalDayOfYearTokens&&ut(a)&&pt(a,t,e);const i=a[0],s=Dn[i];if(s){const{incompatibleTokens:t}=s;if(Array.isArray(t)){const e=d.find((e=>t.includes(e.token)||e.token===i));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${a}\` at the same time`)}else if("*"===s.incompatibleTokens&&d.length>0)throw new RangeError(`The format string mustn't contain \`${a}\` and any other token at the same time`);d.push({token:i,fullToken:a});const r=s.run(e,a,o.match,l);if(!r)return ae(n,NaN);c.push(r.setter),e=r.rest}else{if(i.match(Nn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===a?a="'":"'"===i&&(a=a.match(Mn)[1].replace(En,"'")),0!==e.indexOf(a))return ae(n,NaN);e=e.slice(a.length)}}if(e.length>0&&_n.test(e))return ae(n,NaN);const p=c.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>c.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let m=re(n);if(isNaN(m.getTime()))return ae(n,NaN);const h={};for(const e of p){if(!e.validate(m,l))return ae(n,NaN);const t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return ae(n,m)}function Tn(e,t){const n=t?.additionalDigits??2,r=function(e){const t={},n=e.split(An.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],An.timeZoneDelimiter.test(t.date)&&(t.date=e.split(An.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=An.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let a;if(r.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const a=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?a:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(r.date,n);a=function(e,t){if(null===t)return new Date(NaN);const n=e.match(Ln);if(!n)return new Date(NaN);const r=!!n[4],a=On(n[1]),o=On(n[2])-1,i=On(n[3]),s=On(n[4]),l=On(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const a=r.getUTCDay()||7,o=7*(t-1)+n+1-a;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,l):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Rn[t]||(Bn(e)?29:28))}(t,o,i)&&function(e,t){return t>=1&&t<=(Bn(e)?366:365)}(t,a)?(e.setUTCFullYear(t,o,Math.max(a,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);const o=a.getTime();let i,s=0;if(r.time&&(s=function(e){const t=e.match(Hn);if(!t)return NaN;const n=In(t[1]),r=In(t[2]),a=In(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,a))return NaN;return n*ue+r*ce+1e3*a}(r.time),isNaN(s)))return new Date(NaN);if(!r.timezone){const e=new Date(o+s),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return i=function(e){if("Z"===e)return 0;const t=e.match(Yn);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,a))return NaN;return n*(r*ue+a*ce)}(r.timezone),isNaN(i)?new Date(NaN):new Date(o+s+i)}const An={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ln=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Hn=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Yn=/^([+-])(\d{2})(?::?(\d{2}))?$/;function On(e){return e?parseInt(e):1}function In(e){return e&&parseFloat(e.replace(",","."))||0}const Rn=[31,null,31,30,31,30,31,31,30,31,30,31];function Bn(e){return e%400==0||e%4==0&&e%100!=0}function Fn(e,t){const n=re(e),r=n.getFullYear(),a=n.getDate(),o=ae(e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);const i=function(e){const t=re(e),n=t.getFullYear(),r=t.getMonth(),a=ae(e,0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}(o);return n.setMonth(t,Math.min(a,i)),n}function Wn(e,t){const n=re(e);return n.setHours(t),n}function Vn(e,t){const n=re(e);return n.setMinutes(t),n}function qn(e,t){const n=re(e),r=t-(Math.trunc(n.getMonth()/3)+1);return Fn(n,n.getMonth()+3*r)}function Zn(e,t){const n=re(e);return n.setSeconds(t),n}function Kn(e,t){const n=re(e);return isNaN(+n)?ae(e,NaN):(n.setFullYear(t),n)}function Qn(e){const t=re(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Un(e,t){return pe(e,-t)}function jn(e,t){return me(e,-t)}function zn(e,t){return fe(e,-t)}function Gn(e,t){return ge(e,-t)}function Xn(){return"undefined"!=typeof window}function Jn(e){return tr(e)?(e.nodeName||"").toLowerCase():"#document"}function $n(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function er(e){var t;return null==(t=(tr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function tr(e){return!!Xn()&&(e instanceof Node||e instanceof $n(e).Node)}function nr(e){return!!Xn()&&(e instanceof Element||e instanceof $n(e).Element)}function rr(e){return!!Xn()&&(e instanceof HTMLElement||e instanceof $n(e).HTMLElement)}function ar(e){return!(!Xn()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof $n(e).ShadowRoot)}function or(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=dr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function ir(e){return["table","td","th"].includes(Jn(e))}function sr(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function lr(e){const t=cr(),n=nr(e)?dr(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function cr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ur(e){return["html","body","#document"].includes(Jn(e))}function dr(e){return $n(e).getComputedStyle(e)}function pr(e){return nr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mr(e){if("html"===Jn(e))return e;const t=e.assignedSlot||e.parentNode||ar(e)&&e.host||er(e);return ar(t)?t.host:t}function hr(e){const t=mr(e);return ur(t)?e.ownerDocument?e.ownerDocument.body:e.body:rr(t)&&or(t)?t:hr(t)}function fr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=hr(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=$n(a);if(o){const e=gr(i);return t.concat(i,i.visualViewport||[],or(a)?a:[],e&&n?fr(e):[])}return t.concat(a,fr(a,[],n))}function gr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const vr=Math.min,wr=Math.max,br=Math.round,yr=Math.floor,Cr=e=>({x:e,y:e}),kr={left:"right",right:"left",bottom:"top",top:"bottom"},Dr={start:"end",end:"start"};function xr(e,t,n){return wr(e,vr(t,n))}function Sr(e,t){return"function"==typeof e?e(t):e}function Mr(e){return e.split("-")[0]}function Er(e){return e.split("-")[1]}function _r(e){return"y"===e?"height":"width"}function Nr(e){return["top","bottom"].includes(Mr(e))?"y":"x"}function Pr(e){return"x"===Nr(e)?"y":"x"}function Tr(e){return e.replace(/start|end/g,(e=>Dr[e]))}function Ar(e){return e.replace(/left|right|bottom|top/g,(e=>kr[e]))}function Lr(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Hr(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Yr(e,t,n){let{reference:r,floating:a}=e;const o=Nr(t),i=Pr(t),s=_r(i),l=Mr(t),c="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let m;switch(l){case"top":m={x:u,y:r.y-a.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-a.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Er(t)){case"start":m[i]-=p*(n&&c?-1:1);break;case"end":m[i]+=p*(n&&c?-1:1)}return m}function Or(e){const t=dr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=rr(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=br(n)!==o||br(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function Ir(e){return nr(e)?e:e.contextElement}function Rr(e){const t=Ir(e);if(!rr(t))return Cr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=Or(t);let i=(o?br(n.width):n.width)/r,s=(o?br(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Br=Cr(0);function Fr(e){const t=$n(e);return cr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Br}function Wr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=Ir(e);let i=Cr(1);t&&(r?nr(r)&&(i=Rr(r)):i=Rr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==$n(e))&&t}(o,n,r)?Fr(o):Cr(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=$n(o),t=r&&nr(r)?$n(r):r;let n=e,a=gr(n);for(;a&&r&&t!==n;){const e=Rr(a),t=a.getBoundingClientRect(),r=dr(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=$n(a),a=gr(n)}}return Hr({width:u,height:d,x:l,y:c})}function Vr(e,t){const n=pr(e).scrollLeft;return t?t.left+n:Wr(er(e)).left+n}function qr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=$n(e),r=er(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=cr();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=er(e),n=pr(e),r=e.ownerDocument.body,a=wr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=wr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Vr(e);const s=-n.scrollTop;return"rtl"===dr(r).direction&&(i+=wr(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(er(e));else if(nr(t))r=function(e,t){const n=Wr(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=rr(e)?Rr(e):Cr(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=Fr(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Hr(r)}function Zr(e,t){const n=mr(e);return!(n===t||!nr(n)||ur(n))&&("fixed"===dr(n).position||Zr(n,t))}function Kr(e,t,n){const r=rr(t),a=er(t),o="fixed"===n,i=Wr(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Cr(0);if(r||!r&&!o)if(("body"!==Jn(t)||or(a))&&(s=pr(t)),r){const e=Wr(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=Vr(a));let c=0,u=0;if(a&&!r&&!o){const e=a.getBoundingClientRect();u=e.top+s.scrollTop,c=e.left+s.scrollLeft-Vr(a,e)}return{x:i.left+s.scrollLeft-l.x-c,y:i.top+s.scrollTop-l.y-u,width:i.width,height:i.height}}function Qr(e){return"static"===dr(e).position}function Ur(e,t){if(!rr(e)||"fixed"===dr(e).position)return null;if(t)return t(e);let n=e.offsetParent;return er(e)===n&&(n=n.ownerDocument.body),n}function jr(e,t){const n=$n(e);if(sr(e))return n;if(!rr(e)){let t=mr(e);for(;t&&!ur(t);){if(nr(t)&&!Qr(t))return t;t=mr(t)}return n}let r=Ur(e,t);for(;r&&ir(r)&&Qr(r);)r=Ur(r,t);return r&&ur(r)&&Qr(r)&&!lr(r)?n:r||function(e){let t=mr(e);for(;rr(t)&&!ur(t);){if(lr(t))return t;if(sr(t))return null;t=mr(t)}return null}(e)||n}const zr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=er(r),s=!!t&&sr(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Cr(1);const u=Cr(0),d=rr(r);if((d||!d&&!o)&&(("body"!==Jn(r)||or(i))&&(l=pr(r)),rr(r))){const e=Wr(r);c=Rr(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:er,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?sr(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=fr(e,[],!1).filter((e=>nr(e)&&"body"!==Jn(e))),a=null;const o="fixed"===dr(e).position;let i=o?mr(e):e;for(;nr(i)&&!ur(i);){const t=dr(i),n=lr(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||or(i)&&!n&&Zr(e,i))?r=r.filter((e=>e!==i)):a=t,i=mr(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=qr(t,n,a);return e.top=wr(r.top,e.top),e.right=vr(r.right,e.right),e.bottom=vr(r.bottom,e.bottom),e.left=wr(r.left,e.left),e}),qr(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:jr,getElementRects:async function(e){const t=this.getOffsetParent||jr,n=this.getDimensions,r=await n(e.floating);return{reference:Kr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Or(e);return{width:t,height:n}},getScale:Rr,isElement:nr,isRTL:function(e){return"rtl"===dr(e).direction}};function Gr(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Ir(e),u=a||o?[...c?fr(c):[],...fr(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const a=er(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const m={rootMargin:-yr(u)+"px "+-yr(a.clientWidth-(c+d))+"px "+-yr(a.clientHeight-(u+p))+"px "+-yr(c)+"px",threshold:wr(0,vr(1,l))||1};let h=!0;function f(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(f,{...m,root:a.ownerDocument})}catch(e){r=new IntersectionObserver(f,m)}r.observe(e)}(!0),o}(c,n):null;let p,m=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let f=l?Wr(e):null;return l&&function t(){const r=Wr(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n();f=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const Xr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=Mr(n),s=Er(n),l="y"===Nr(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=Sr(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(m="end"===s?-1*h:h),l?{x:m*u,y:p*c}:{x:p*c,y:m*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},Jr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:f=!0,...g}=Sr(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=Mr(a),w=Nr(s),b=Mr(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),C=p||(b||!f?[Ar(s)]:function(e){const t=Ar(e);return[Tr(e),t,Tr(t)]}(s)),k="none"!==h;!p&&k&&C.push(...function(e,t,n,r){const a=Er(e);let o=function(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}(Mr(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(Tr)))),o}(s,f,h,y));const D=[s,...C],x=await async function(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=Sr(t,e),h=Lr(m),f=s[p?"floating"===d?"reference":"floating":d],g=Hr(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(f)))||n?f:f.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,w=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await(null==o.isElement?void 0:o.isElement(w))&&await(null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},y=Hr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:w,strategy:l}):v);return{top:(g.top-y.top+h.top)/b.y,bottom:(y.bottom-g.bottom+h.bottom)/b.y,left:(g.left-y.left+h.left)/b.x,right:(y.right-g.right+h.right)/b.x}}(t,g),S=[];let M=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&S.push(x[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Er(e),a=Pr(e),o=_r(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Ar(i)),[i,Ar(i)]}(a,i,y);S.push(x[e[0]],x[e[1]])}if(M=[...M,{placement:a,overflows:S}],!S.every((e=>e<=0))){var E,_;const e=((null==(E=o.flip)?void 0:E.index)||0)+1,t=D[e];if(t)return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(_=M.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:_.placement;if(!n)switch(m){case"bestFit":{var N;const e=null==(N=M.filter((e=>{if(k){const t=Nr(e.placement);return t===w||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},$r=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Sr(e,t)||{};if(null==c)return{};const d=Lr(u),p={x:n,y:r},m=Pr(a),h=_r(m),f=await i.getDimensions(c),g="y"===m,v=g?"top":"left",w=g?"bottom":"right",b=g?"clientHeight":"clientWidth",y=o.reference[h]+o.reference[m]-p[m]-o.floating[h],C=p[m]-o.reference[m],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let D=k?k[b]:0;D&&await(null==i.isElement?void 0:i.isElement(k))||(D=s.floating[b]||o.floating[h]);const x=y/2-C/2,S=D/2-f[h]/2-1,M=vr(d[v],S),E=vr(d[w],S),_=M,N=D-f[h]-E,P=D/2-f[h]/2+x,T=xr(_,P,N),A=!l.arrow&&null!=Er(a)&&P!==T&&o.reference[h]/2-(P<_?M:E)-f[h]/2<0,L=A?P<_?P-_:P-N:0;return{[m]:p[m]+L,data:{[m]:T,centerOffset:P-T-L,...A&&{alignmentOffset:L}},reset:A}}}),ea=(e,t,n)=>{const r=new Map,a={platform:zr,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=Yr(c,r,l),p=r,m={},h=0;for(let n=0;n<s.length;n++){const{name:o,fn:f}=s[n],{x:g,y:v,data:w,reset:b}=await f({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,m={...m,[o]:{...m[o],...w}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:u,y:d}=Yr(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:m}})(e,t,{...a,platform:o})};var ta="undefined"!=typeof document?s:o;function na(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!na(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!na(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ra(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function aa(e,t){const n=ra(e);return Math.round(t*n)/n}function oa(t){const n=e.useRef(t);return ta((()=>{n.current=t})),n}const ia=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?$r({element:n.current,padding:r}).fn(t):{}:n?$r({element:n,padding:r}).fn(t):{};var a}}),sa=(e,t)=>({...Xr(e),options:[e,t]}),la=(e,t)=>({...ia(e),options:[e,t]}),ca={...e},ua=ca.useInsertionEffect||(e=>e());var da="undefined"!=typeof document?s:o;function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pa.apply(this,arguments)}let ma=!1,ha=0;const fa=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ha++;const ga=ca.useId||function(){const[t,n]=e.useState((()=>ma?fa():void 0));return da((()=>{null==t&&n(fa())}),[]),e.useEffect((()=>{ma=!0}),[]),t};let va;"production"!==process.env.NODE_ENV&&(va=new Set);const wa=e.forwardRef((function(t,n){const{context:{placement:r,elements:{floating:a},middlewareData:{arrow:o,shift:i}},width:s=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:p,d:m,style:{transform:h,...f}={},...g}=t;"production"!==process.env.NODE_ENV&&(n||function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const a="Floating UI: "+n.join(" ");var o;null!=(e=va)&&e.has(a)||(null==(o=va)||o.add(a),console.warn(a))}("The `ref` prop is required for `FloatingArrow`."));const v=ga(),[w,b]=e.useState(!1);if(da((()=>{if(!a)return;"rtl"===dr(a).direction&&b(!0)}),[a]),!a)return null;const[y,C]=r.split("-"),k="top"===y||"bottom"===y;let D=d;(k&&null!=i&&i.x||!k&&null!=i&&i.y)&&(D=null);const x=2*u,S=x/2,M=s/2*(c/-8+1),E=l/2*c/4,_=!!m,N=D&&"end"===C?"bottom":"top";let P=D&&"end"===C?"right":"left";D&&w&&(P="end"===C?"left":"right");const T=null!=(null==o?void 0:o.x)?D||o.x:"",A=null!=(null==o?void 0:o.y)?D||o.y:"",L=m||"M0,0 H"+s+" L"+(s-M)+","+(l-E)+" Q"+s/2+","+l+" "+M+","+(l-E)+" Z",H={top:_?"rotate(180deg)":"",left:_?"rotate(90deg)":"rotate(-90deg)",bottom:_?"":"rotate(180deg)",right:_?"rotate(-90deg)":"rotate(90deg)"}[y];return e.createElement("svg",pa({},g,{"aria-hidden":!0,ref:n,width:_?s:s+x,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[P]:T,[N]:A,[y]:k||_?"100%":"calc(100% - "+x/2+"px)",transform:[H,h].filter((e=>!!e)).join(" "),...f}}),x>0&&e.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:p,strokeWidth:x+(m?0:1),d:L}),e.createElement("path",{stroke:x&&!m?g.fill:"none",d:L}),e.createElement("clipPath",{id:v},e.createElement("rect",{x:-S,y:S*(_?-1:1),width:s+x,height:s})))}));const ba=e.createContext(null),ya=e.createContext(null),Ca=()=>{var t;return(null==(t=e.useContext(ba))?void 0:t.id)||null},ka=()=>e.useContext(ya);function Da(t){const{open:n=!1,onOpenChange:r,elements:a}=t,o=ga(),i=e.useRef({}),[s]=e.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=Ca();if("production"!==process.env.NODE_ENV){const e=a.reference;e&&!nr(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const a="Floating UI: "+n.join(" ");var o;null!=(e=va)&&e.has(a)||(null==(o=va)||o.add(a),console.error(a))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=e.useState(a.reference),d=function(t){const n=e.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return ua((()=>{n.current=t})),e.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}(((e,t,n)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:n,nested:l}),null==r||r(e,t,n)})),p=e.useMemo((()=>({setPositionReference:u})),[]),m=e.useMemo((()=>({reference:c||a.reference||null,floating:a.floating||null,domReference:a.reference})),[c,a.reference,a.floating]);return e.useMemo((()=>({dataRef:i,open:n,onOpenChange:d,elements:m,events:s,floatingId:o,refs:p})),[n,d,m,s,o,p])}function xa(t){void 0===t&&(t={});const{nodeId:n}=t,r=Da({...t,elements:{reference:null,floating:null,...t.elements}}),a=t.rootContext||r,o=a.elements,[i,s]=e.useState(null),[l,c]=e.useState(null),u=(null==o?void 0:o.reference)||i,d=e.useRef(null),p=ka();da((()=>{u&&(d.current=u)}),[u]);const h=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=t,[d,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[h,f]=e.useState(a);na(h,a)||f(a);const[g,v]=e.useState(null),[w,b]=e.useState(null),y=e.useCallback((e=>{e!==x.current&&(x.current=e,v(e))}),[]),C=e.useCallback((e=>{e!==S.current&&(S.current=e,b(e))}),[]),k=i||g,D=s||w,x=e.useRef(null),S=e.useRef(null),M=e.useRef(d),E=null!=c,_=oa(c),N=oa(o),P=oa(u),T=e.useCallback((()=>{if(!x.current||!S.current)return;const e={placement:n,strategy:r,middleware:h};N.current&&(e.platform=N.current),ea(x.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};A.current&&!na(M.current,t)&&(M.current=t,m.flushSync((()=>{p(t)})))}))}),[h,n,r,N,P]);ta((()=>{!1===u&&M.current.isPositioned&&(M.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[u]);const A=e.useRef(!1);ta((()=>(A.current=!0,()=>{A.current=!1})),[]),ta((()=>{if(k&&(x.current=k),D&&(S.current=D),k&&D){if(_.current)return _.current(k,D,T);T()}}),[k,D,T,_,E]);const L=e.useMemo((()=>({reference:x,floating:S,setReference:y,setFloating:C})),[y,C]),H=e.useMemo((()=>({reference:k,floating:D})),[k,D]),Y=e.useMemo((()=>{const e={position:r,left:0,top:0};if(!H.floating)return e;const t=aa(H.floating,d.x),n=aa(H.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...ra(H.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,l,H.floating,d.x,d.y]);return e.useMemo((()=>({...d,update:T,refs:L,elements:H,floatingStyles:Y})),[d,T,L,H,Y])}({...t,elements:{...o,...l&&{reference:l}}}),f=e.useCallback((e=>{const t=nr(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),h.refs.setReference(t)}),[h.refs]),g=e.useCallback((e=>{(nr(e)||null===e)&&(d.current=e,s(e)),(nr(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!nr(e))&&h.refs.setReference(e)}),[h.refs]),v=e.useMemo((()=>({...h.refs,setReference:g,setPositionReference:f,domReference:d})),[h.refs,g,f]),w=e.useMemo((()=>({...h.elements,domReference:u})),[h.elements,u]),b=e.useMemo((()=>({...h,...a,refs:v,elements:w,nodeId:n})),[h,v,w,n,a]);return da((()=>{a.dataRef.current.floatingContext=b;const e=null==p?void 0:p.nodesRef.current.find((e=>e.id===n));e&&(e.context=b)})),e.useMemo((()=>({...h,context:b,refs:v,elements:w})),[h,v,w,b])}
12
12
  /*!
13
13
  react-datepicker v7.4.0
14
14
  https://github.com/Hacker0x01/react-datepicker