freemium-ui 1.0.205 → 1.0.208

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/lib/index.cjs.js CHANGED
@@ -265,7 +265,7 @@ object-assign
265
265
  align-items: ${({align:e})=>Zo[e]};
266
266
  z-index: 10;
267
267
  background-color: ${e=>e.theme.colors.components.modal.overlayBackground};
268
- `,Zo={top:"baseline",center:"center",bottom:"end"},Xo={center:"center",left:"flex-start",right:"flex-end"},Jo={default:"512px",small:"424px",medium:"600px",large:"800px","x-large":"920px"},Qo=tt(Do)`
268
+ `,Zo={top:"baseline",center:"center",bottom:"end"},Xo={center:"center",left:"flex-start",right:"flex-end"},Jo={default:"512px",small:"424px",medium:"600px",large:"800px","x-large":"1200px"},Qo=tt(Do)`
269
269
  width: ${({size:e})=>Jo[e]};
270
270
  background: #fff;
271
271
  box-shadow: 0 2px 18px 0 rgba(18, 52, 77, 0.2);
@@ -337,7 +337,7 @@ object-assign
337
337
  &.selected {
338
338
  background-color: ${({theme:{colors:{components:{menu:{menuItem:{selected:e}}}}}})=>e.background};
339
339
  }
340
- `,Os=n.forwardRef(((e,t)=>{const{id:r,position:a="bottom",idAccessor:o="id",nameAccessor:c="name",inline:i=!0,defaultSelectedItem:s={},size:l="normal",type:h="primary",onClick:u=(()=>{}),items:p=[]}=e,[d,m]=n.useState(null);return n.createElement(Is,null,n.createElement(po,{overrideStyleClassName:"nopadding",ref:t,inline:i,size:l,type:h,onClick:e=>{u(s,e)}},n.createElement("div",null,s[c]),n.createElement(Rs,{"aria-describedby":r,onClick:e=>{e.stopPropagation(),m(e.currentTarget)}},n.createElement(Vn,{size:"8",viewBox:"0 0 8 8",glyph:"top"===a?"chevron-up":"chevron-down"}))),n.createElement(dc,{id:r,anchorEl:d,onClose:()=>m(null),anchorOrigin:{vertical:"bottom"===a?"bottom":"top",horizontal:"right"},transformOrigin:{vertical:"bottom"===a?"top":"bottom",horizontal:"right"}},n.createElement(Ns,null,n.createElement(_s,{idAccessor:o,nameAccessor:c,options:p.filter((e=>e[o]!==s[o])),onSelect:e=>{u(e),m(null)}}))))})),Is=tt.div`
340
+ `,Os=n.forwardRef(((e,t)=>{const{id:r,position:a="bottom",idAccessor:o="id",nameAccessor:c="name",inline:i=!0,defaultSelectedItem:s={},size:l="normal",type:h="primary",onClick:u=(()=>{}),items:p=[]}=e,[d,m]=n.useState(null);return n.createElement(Is,null,n.createElement(po,{overrideStyleClassName:"nopadding",ref:t,inline:i,size:l,type:h,onClick:e=>{u(s,e)}},n.createElement("div",null,s[c]),p&&p.length>1&&n.createElement(Rs,{"aria-describedby":r,onClick:e=>{e.stopPropagation(),m(e.currentTarget)}},n.createElement(Vn,{size:"8",viewBox:"0 0 8 8",glyph:"top"===a?"chevron-up":"chevron-down"}))),n.createElement(dc,{id:r,anchorEl:d,onClose:()=>m(null),anchorOrigin:{vertical:"bottom"===a?"bottom":"top",horizontal:"right"},transformOrigin:{vertical:"bottom"===a?"top":"bottom",horizontal:"right"}},n.createElement(Ns,null,n.createElement(_s,{idAccessor:o,nameAccessor:c,options:p.filter((e=>e[o]!==s[o])),onSelect:e=>{u(e),m(null)}}))))})),Is=tt.div`
341
341
  & > button.nopadding {
342
342
  display: flex;
343
343
  padding: 0 !important;
@@ -930,7 +930,18 @@ object-assign
930
930
  border: unset;
931
931
  resize: none;
932
932
  ${({theme:{colors:{components:{input:e}},typography:t,layout:{radius:n}},isErrored:r})=>`\n font-size : ${t.input.textarea.fontSize};\n line-height: ${t.input.textarea.lineHeight};\n font-weight: ${t.input.textarea.fontWeight};\n border-radius: ${n};\n &::placeholder {\n color : ${e.primary.hoverBorderColor};\n }\n`}
933
- `,Ys=t.forwardRef(((e,t)=>{const{inputStyle:r,style:a,disabled:o,className:c,...i}=e;return n.createElement(Fs,{isRequired:e.isRequired,inline:e.inline,isErrored:e.isErrored,style:a},e.label&&n.createElement("label",{className:"input-label"},e.label),n.createElement("div",{className:"input-container"},e.startLabel&&n.createElement("div",{className:"start-label"},e.startLabel),n.createElement("div",{className:`input-basic ${c||""}`},e.startAdornment&&n.createElement("div",{className:"start-adornment"},e.startAdornment),n.createElement(js,Object.assign({autoComplete:"off"},i,{ref:t,disabled:o,style:r})),e.showCount&&e.maxLength&&e.maxLength>0&&n.createElement("div",{className:"end-max-length"},`${e.value&&e.value.length||0}/${e.maxLength}`),e.endAdornment&&n.createElement("div",{className:"end-adornment"},e.endAdornment)),e.endLabel&&n.createElement("div",{className:"end-label"},e.endLabel)),e.isErrored&&e.errorText&&n.createElement("span",{className:"input-helper"},e.errorText))})),$s=t.forwardRef(((e,t)=>{const{inputStyle:r,style:a,className:o,...c}=e;return n.createElement(Fs,{isRequired:e.isRequired,inline:e.inline,isErrored:e.isErrored,style:a},e.label&&n.createElement("label",{className:"input-label"},e.label),n.createElement("div",{className:"input-container"},e.startLabel&&n.createElement("div",{className:"start-label"},e.startLabel),n.createElement("div",{className:`input-basic ${o||""}`},e.startAdornment&&n.createElement("div",{className:"start-adornment"},e.startAdornment),n.createElement(Bs,Object.assign({autoComplete:"off"},c,{ref:t,style:r})),e.endAdornment&&n.createElement("div",{className:"end-adornment"},e.endAdornment)),e.endLabel&&n.createElement("div",{className:"end-label"},e.endLabel)),e.isErrored&&e.errorText&&n.createElement("span",{className:"input-helper"},e.errorText))})),Ws=ot(Ys,Ts),Us=ot($s,Ts),Ks=e=>n.createElement(Gs,null,e.children,n.createElement("span",{onClick:t=>e.onCloseAction(t)}," ",n.createElement(Vn,{size:"12",viewBox:"0 -3 10 10",glyph:"close"}))),Gs=tt.div`
933
+ `,Ys=t.forwardRef(((e,t)=>{const{inputStyle:r,style:a,disabled:o,className:c,...i}=e;return n.createElement(Fs,{isRequired:e.isRequired,inline:e.inline,isErrored:e.isErrored,style:a},e.label&&n.createElement("label",{className:"input-label"},e.label),n.createElement("div",{className:"input-container"},e.startLabel&&n.createElement("div",{className:"start-label"},e.startLabel),n.createElement("div",{className:`input-basic ${c||""}`},e.startAdornment&&n.createElement("div",{className:"start-adornment"},e.startAdornment),n.createElement(js,Object.assign({autoComplete:"off"},i,{ref:t,disabled:o,style:r})),e.showCount&&e.maxLength&&e.maxLength>0&&n.createElement("div",{className:"end-max-length"},`${e.value&&e.value.length||0}/${e.maxLength}`),e.endAdornment&&n.createElement("div",{className:"end-adornment"},e.endAdornment)),e.endLabel&&n.createElement("div",{className:"end-label"},e.endLabel)),e.isErrored&&e.errorText&&n.createElement("span",{className:"input-helper"},e.errorText))})),$s=t.forwardRef(((e,t)=>{const{inputStyle:r,style:a,className:o,...c}=e;return n.createElement(Fs,{isRequired:e.isRequired,inline:e.inline,isErrored:e.isErrored,style:a},e.label&&n.createElement("label",{className:"input-label"},e.label),n.createElement("div",{className:"input-container"},e.startLabel&&n.createElement("div",{className:"start-label"},e.startLabel),n.createElement("div",{className:`input-basic ${o||""}`},e.startAdornment&&n.createElement("div",{className:"start-adornment"},e.startAdornment),n.createElement(Bs,Object.assign({autoComplete:"off"},c,{ref:t,style:r})),e.endAdornment&&n.createElement("div",{className:"end-adornment"},e.endAdornment)),e.endLabel&&n.createElement("div",{className:"end-label"},e.endLabel)),e.isErrored&&e.errorText&&n.createElement("span",{className:"input-helper"},e.errorText))})),Ws=ot(Ys,Ts),Us=ot($s,Ts);function Ks(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Gs=Ks()?t.useLayoutEffect:t.useEffect;var qs="production"===process.env.NODE_ENV;function Zs(e,t){if(!qs){if(e)return;var n="Warning: "+t;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}}var Xs=function(e){var n,r=e.children,a=e.type,o=void 0===a?"reach-portal":a,i=e.containerRef,s=t.useRef(null),l=t.useRef(null),h=(n=t.useState(Object.create(null))[1],t.useCallback((function(){n(Object.create(null))}),[]));return"production"!==process.env.NODE_ENV&&t.useEffect((function(){null!=i&&("production"!==process.env.NODE_ENV&&Zs("object"==typeof i&&"current"in i,"@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."),"production"!==process.env.NODE_ENV&&Zs(!i||null!=i.current,"@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."))}),[i]),Gs((function(){if(s.current){var e=s.current.ownerDocument,t=(null==i?void 0:i.current)||e.body;return l.current=null==e?void 0:e.createElement(o),t.appendChild(l.current),h(),function(){l.current&&t&&t.removeChild(l.current)}}}),[o,h,i]),l.current?c.createPortal(r,l.current):t.createElement("span",{ref:s})};"production"!==process.env.NODE_ENV&&(Xs.displayName="Portal");var Js,Qs=["bottom","height","left","right","top","width"],el=new Map,tl=function e(){var t=[];el.forEach((function(e,n){var r=n.getBoundingClientRect();(function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),Qs.some((function(n){return e[n]!==t[n]}))})(r,e.rect)&&(e.rect=r,t.push(e))})),t.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),Js=window.requestAnimationFrame(e)};function nl(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var rl=nl()?t.useLayoutEffect:t.useEffect;function al(e){return"boolean"==typeof e}function ol(e){return!(!e||"[object Function]"!={}.toString.call(e))}var cl=function(e){var n=e.onChange,r=e.observe,a=void 0===r||r,o=e.children,c=t.useRef(null);return o({ref:c,rect:il(c,{observe:a,onChange:n})})};function il(e,n,r){var a,o,c;al(n)?a=n:(a=null==(c=null==n?void 0:n.observe)||c,o=null==n?void 0:n.onChange);ol(r)&&(o=r),"production"!==process.env.NODE_ENV&&(t.useEffect((function(){"production"!==process.env.NODE_ENV&&Zs(!al(n),"Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")}),[n]),t.useEffect((function(){"production"!==process.env.NODE_ENV&&Zs(!ol(r),"Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")}),[r]));var i=t.useState(e.current),s=i[0],l=i[1],h=t.useRef(!1),u=t.useRef(!1),p=t.useState(null),d=p[0],m=p[1],v=t.useRef(o);return rl((function(){v.current=o,e.current!==s&&l(e.current)})),rl((function(){s&&!h.current&&(h.current=!0,m(s.getBoundingClientRect()))}),[s]),rl((function(){if(a){var t=s;if(u.current||(u.current=!0,t=e.current),t){var n,r,o=(n=t,r=function(e){null==v.current||v.current(e),m(e)},{observe:function(){var e=0===el.size;el.has(n)?el.get(n).callbacks.push(r):el.set(n,{rect:void 0,hasRectChanged:!1,callbacks:[r]}),e&&tl()},unobserve:function(){var e=el.get(n);if(e){var t=e.callbacks.indexOf(r);t>=0&&e.callbacks.splice(t,1),e.callbacks.length||el.delete(n),el.size||cancelAnimationFrame(Js)}}});return o.observe(),function(){o.unobserve()}}"production"!==process.env.NODE_ENV&&console.warn("You need to place the ref")}}),[a,s,e]),d}function sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ll(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return sl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function hl(e,t){if(null!=e)if(function(e){return!(!e||"[object Function]"!={}.toString.call(e))}(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}"production"!==process.env.NODE_ENV&&(cl.displayName="Rect",cl.propTypes={children:ro.func.isRequired,observe:ro.bool,onChange:ro.func});var ul=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],pl=ul.join(","),dl="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function ml(e,t){t=t||{};var n,r,a,o=[],c=[],i=e.querySelectorAll(pl);for(t.includeContainer&&dl.call(e,pl)&&(i=Array.prototype.slice.apply(i)).unshift(e),n=0;n<i.length;n++)vl(r=i[n])&&(0===(a=bl(r))?o.push(r):c.push({documentOrder:n,tabIndex:a,node:r}));return c.sort(zl).map((function(e){return e.node})).concat(o)}function vl(e){return!(!fl(e)||function(e){return function(e){return yl(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||bl(e)<0)}function fl(e){return!(e.disabled||function(e){return yl(e)&&"hidden"===e.type}(e)||function(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}(e))}ml.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==dl.call(e,pl)&&vl(e)},ml.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==dl.call(e,gl)&&fl(e)};var gl=ul.concat("iframe").join(",");function bl(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function zl(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function yl(e){return"INPUT"===e.tagName}var Ml=ml;function xl(){return xl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xl.apply(this,arguments)}var wl=["as","targetRef","position","unstable_observableRefs"],Hl=t.forwardRef((function(e,n){return t.createElement(Xs,null,t.createElement(Cl,xl({ref:n},e)))}));"production"!==process.env.NODE_ENV&&(Hl.displayName="Popover");var Cl=t.forwardRef((function(e,n){var r=e.as,a=void 0===r?"div":r,o=e.targetRef,c=e.position,i=void 0===c?Ll:c,s=e.unstable_observableRefs,l=void 0===s?[]:s,h=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,wl),u=t.useRef(null),p=il(u,{observe:!h.hidden}),d=il(o,{observe:!h.hidden}),m=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.useCallback((function(e){for(var t,r=ll(n);!(t=r()).done;)hl(t.value,e)}),n)}(u,n);return function(e,n){var r=(a=e.current,Ks()?a?a.ownerDocument:document:null);var a;function o(e){"Tab"===e.key&&n.current&&0===Ml(n.current).length||("Tab"===e.key&&e.shiftKey?u(e)?p(e):d(e)?m(e):f(e)&&b():"Tab"===e.key&&(i()?s(e):l()?h(e):v(e)&&b()))}function c(){var t=Ml(r),a=t&&e.current?t.indexOf(e.current):-1,o=t&&t[a+1];return(!n.current||!n.current.contains(o||null))&&o}function i(){return!!e.current&&e.current===r.activeElement}function s(e){var t=n.current&&Ml(n.current);t&&t[0]&&(e.preventDefault(),t[0].focus())}function l(){if(!!n.current&&n.current.contains(r.activeElement||null)){var e=n.current&&Ml(n.current);return Boolean(e&&e[e.length-1]===r.activeElement)}return!1}function h(e){var t=c();t&&(e.preventDefault(),t.focus())}function u(e){if(e.shiftKey){var t=c();return e.target===t}}function p(e){var t=n.current&&Ml(n.current),r=t&&t[t.length-1];r&&(e.preventDefault(),r.focus())}function d(e){var t=n.current&&Ml(n.current);return!!t&&(0!==t.length&&e.target===t[0])}function m(t){var n;t.preventDefault(),null==(n=e.current)||n.focus()}function v(e){var t=n.current?Ml(r).filter((function(e){return!n.current.contains(e)})):null;return!!t&&e.target===t[t.length-1]}function f(e){return e.target===Ml(r)[0]}t.useEffect((function(){return r.addEventListener("keydown",o),function(){r.removeEventListener("keydown",o)}}),[]);var g=[];function b(){var e=n.current&&Ml(n.current);e&&(e.forEach((function(e){g.push([e,e.tabIndex]),e.tabIndex=-1})),r.addEventListener("focusin",z))}function z(){r.removeEventListener("focusin",z),g.forEach((function(e){var t=e[0],n=e[1];t.tabIndex=n}))}}(o,u),t.createElement(a,xl({"data-reach-popover":"",ref:m},h,{style:xl({position:"absolute"},Vl.apply(void 0,[i,d,p].concat(l)),h.style)}))}));function Vl(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),o=3;o<r;o++)a[o-3]=arguments[o];return n?e.apply(void 0,[t,n].concat(a.map((function(e){return e.current})))):{visibility:"hidden"}}function kl(e,t,n){return{top:n?e.top-t.height+window.pageYOffset+"px":e.top+e.height+window.pageYOffset+"px"}}"production"!==process.env.NODE_ENV&&(Cl.displayName="PopoverImpl");var Ll=function(e,t){if(!e||!t)return{};var n=Sl(e,t),r=n.directionRight,a=n.directionUp;return xl({left:r?e.right-t.width+window.pageXOffset+"px":e.left+window.pageXOffset+"px"},kl(e,t,a))},El=function(e,t){if(!e||!t)return{};var n=Sl(e,t).directionUp;return xl({width:e.width,left:e.left},kl(e,t,n))};function Sl(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var a={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0};return{directionRight:a.right&&!a.left,directionLeft:a.left&&!a.right,directionUp:a.bottom&&!a.top,directionDown:a.top&&!a.bottom}}const _l={small:16,medium:32,big:40},Al=at`
934
+ to { transform: rotate(360deg); }
935
+ `,Dl={small:3,medium:3,big:6},Ol=tt.div`
936
+ position: relative;
937
+ border: ${({size:e})=>Dl[e]}px solid #f3f3f3;
938
+ border-radius: 50%;
939
+ border-top: ${({size:e})=>Dl[e]}px solid
940
+ ${({invert:e,theme:{colors:{primary:t,white:n}}})=>e?n:t};
941
+ width: ${({size:e})=>_l[e]}px;
942
+ height: ${({size:e})=>_l[e]}px;
943
+ animation: ${Al} 0.7s linear infinite;
944
+ `,Il=e=>{const{size:t="medium",invert:r=!1}=e;return n.createElement(Ol,{className:"fui-loader",invert:r,size:t})},Nl=e=>n.createElement(Rl,null,e.children,n.createElement("span",{onClick:t=>e.onCloseAction(t)}," ",n.createElement(Vn,{size:"12",viewBox:"0 -3 10 10",glyph:"close"}))),Rl=tt.div`
934
945
  line-height: 1.4;
935
946
  background-color: #ebeff3;
936
947
  font-size: 12px;
@@ -957,18 +968,18 @@ object-assign
957
968
  cursor: pointer;
958
969
  }
959
970
  }
960
- `,qs=tt.div`
971
+ `,Pl=tt.div`
961
972
  display: block;
962
973
  padding-left: 2px;
963
974
  padding-top: 4px;
964
975
  font-size: ${({theme:{colors:{errorText:e},typography:{body:t}}})=>t.errorText.fontSize};
965
976
  color: ${({theme:{colors:{errorText:e}}})=>e.primary};
966
- `,Zs=tt.div`
977
+ `,Tl=tt.div`
967
978
  ${({theme:{palette:e,colors:{components:{input:t},border:n,pseudo:r}},isErrored:a,isOpen:o})=>`\n background-color: #fff;\n position : relative;\n box-shadow: none;\n min-height: 38px;\n border-radius: 4px;\n padding: 4px 8px;\n border: 1px solid ${a?n.error:t.primary.borderColor};\n display: flex;\n align-items: center;\n .svg-wrapper {\n transition: transform ease-in 0.2s;\n transform: ${o?"rotate(180deg)":"rotate(0deg)"};\n }\n .items {\n display : flex;\n align-items : center;\n flex-wrap: wrap;\n width: 100%;\n }\n &:hover {\n border-color : ${a?n.error:t.primary.hoverBorderColor};\n transition: 0.2s linear;\n }\n &:focus-within {\n border: 1px solid ${a?n.error:"transparent"};\n box-shadow : 0 0 0 2px ${a?"none":r.focus};\n }\n input {\n flex-grow: 1;\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0px;\n background-color: #fff;\n min-width: 100px;\n box-sizing: border-box;\n border: none;\n overflow: hidden;\n padding : 0;\n margin : 2px;\n ::placeholder,\n ::-webkit-input-placeholder {\n color: ${e.S300}\n }\n :-ms-input-placeholder {\n color: ${e.S300}\n }\n }\n `}
968
- `,Xs=tt.div`
969
- position: absolute;
979
+ `,Fl=tt.div`
970
980
  z-index: 1000;
971
981
  width: 100%;
982
+ min-width: 160px;
972
983
  left: 0;
973
984
  height: auto;
974
985
  max-height: 200px;
@@ -979,22 +990,16 @@ object-assign
979
990
  margin-top: 4px;
980
991
  box-shadow: 0 2px 4px 0 rgba(18, 52, 77, 0.06),
981
992
  0 2px 18px 0 rgba(18, 52, 77, 0.16);
982
- `,Js=tt.div`
993
+ .loader-wrapper {
994
+ display: flex;
995
+ justify-content: center;
996
+ padding: 20px;
997
+ }
998
+ `,jl=tt.div`
983
999
  ${({theme:{colors:e,typography:{body:t}},isHighlighted:n,isSelected:r,disabled:a,isRemove:o,lengthError:c})=>`\n .primary-text {\n font-size : ${t.regular.fontSize};\n line-height : ${t.regular.lineHeight};\n color: ${o||c?e.text.error:r?n?e.text.primary:e.text.link:a?e.text.disabled:e.text.primary};\n font-weight : ${r?"500":"400"};\n display: block;\n }\n padding : 8px;\n margin : 8px;\n border-radius: 4px;\n overflow-wrap : break-word; \n background: ${o?"none":r?e.background.selected:n?e.background.hover:"none"};\n :hover {\n cursor: ${a?"not-allowed":"pointer"};\n } \n `}
984
- `,Qs=tt.div`
1000
+ `,Bl=tt.div`
985
1001
  ${({required:e,theme:{colors:{text:t},typography:{body:n,input:r}}})=>`\n position : relative;\n label {\n display : inline-block;\n font-weight: ${n.label.fontWeight};\n font-size: ${n.label.fontSize};\n line-height: ${n.label.lineHeight};\n text-transform: capitalize;\n padding-left: 2px;\n margin-bottom : 8px;\n ${e?`&::after {\n content: '*';\n position: relative;\n top: 2px;\n font-weight: ${n.requiredLabel.fontWeight};\n font-size: ${n.requiredLabel.fontSize};\n color : ${t.error};\n padding-left: 3px;\n }`:""};\n }\n `}
986
- `,el={small:16,medium:32,big:40},tl=at`
987
- to { transform: rotate(360deg); }
988
- `,nl={small:3,medium:3,big:6},rl=tt.div`
989
- position: relative;
990
- border: ${({size:e})=>nl[e]}px solid #f3f3f3;
991
- border-radius: 50%;
992
- border-top: ${({size:e})=>nl[e]}px solid
993
- ${({invert:e,theme:{colors:{primary:t,white:n}}})=>e?n:t};
994
- width: ${({size:e})=>el[e]}px;
995
- height: ${({size:e})=>el[e]}px;
996
- animation: ${tl} 0.7s linear infinite;
997
- `,al=e=>{const{size:t="medium",invert:r=!1}=e;return n.createElement(rl,{className:"fui-loader",invert:r,size:t})};function ol(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var cl=ol()?t.useLayoutEffect:t.useEffect;var il="production"===process.env.NODE_ENV;function sl(e,t){if(!il){if(e)return;var n="Warning: "+t;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}}var ll=function(e){var n,r=e.children,a=e.type,o=void 0===a?"reach-portal":a,i=e.containerRef,s=t.useRef(null),l=t.useRef(null),h=(n=t.useState(Object.create(null))[1],t.useCallback((function(){n(Object.create(null))}),[]));return"production"!==process.env.NODE_ENV&&t.useEffect((function(){null!=i&&("production"!==process.env.NODE_ENV&&sl("object"==typeof i&&"current"in i,"@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."),"production"!==process.env.NODE_ENV&&sl(!i||null!=i.current,"@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."))}),[i]),cl((function(){if(s.current){var e=s.current.ownerDocument,t=(null==i?void 0:i.current)||e.body;return l.current=null==e?void 0:e.createElement(o),t.appendChild(l.current),h(),function(){l.current&&t&&t.removeChild(l.current)}}}),[o,h,i]),l.current?c.createPortal(r,l.current):t.createElement("span",{ref:s})};"production"!==process.env.NODE_ENV&&(ll.displayName="Portal");var hl,ul=["bottom","height","left","right","top","width"],pl=new Map,dl=function e(){var t=[];pl.forEach((function(e,n){var r=n.getBoundingClientRect();(function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),ul.some((function(n){return e[n]!==t[n]}))})(r,e.rect)&&(e.rect=r,t.push(e))})),t.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),hl=window.requestAnimationFrame(e)};function ml(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var vl=ml()?t.useLayoutEffect:t.useEffect;function fl(e){return"boolean"==typeof e}function gl(e){return!(!e||"[object Function]"!={}.toString.call(e))}var bl=function(e){var n=e.onChange,r=e.observe,a=void 0===r||r,o=e.children,c=t.useRef(null);return o({ref:c,rect:zl(c,{observe:a,onChange:n})})};function zl(e,n,r){var a,o,c;fl(n)?a=n:(a=null==(c=null==n?void 0:n.observe)||c,o=null==n?void 0:n.onChange);gl(r)&&(o=r),"production"!==process.env.NODE_ENV&&(t.useEffect((function(){"production"!==process.env.NODE_ENV&&sl(!fl(n),"Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")}),[n]),t.useEffect((function(){"production"!==process.env.NODE_ENV&&sl(!gl(r),"Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")}),[r]));var i=t.useState(e.current),s=i[0],l=i[1],h=t.useRef(!1),u=t.useRef(!1),p=t.useState(null),d=p[0],m=p[1],v=t.useRef(o);return vl((function(){v.current=o,e.current!==s&&l(e.current)})),vl((function(){s&&!h.current&&(h.current=!0,m(s.getBoundingClientRect()))}),[s]),vl((function(){if(a){var t=s;if(u.current||(u.current=!0,t=e.current),t){var n,r,o=(n=t,r=function(e){null==v.current||v.current(e),m(e)},{observe:function(){var e=0===pl.size;pl.has(n)?pl.get(n).callbacks.push(r):pl.set(n,{rect:void 0,hasRectChanged:!1,callbacks:[r]}),e&&dl()},unobserve:function(){var e=pl.get(n);if(e){var t=e.callbacks.indexOf(r);t>=0&&e.callbacks.splice(t,1),e.callbacks.length||pl.delete(n),pl.size||cancelAnimationFrame(hl)}}});return o.observe(),function(){o.unobserve()}}"production"!==process.env.NODE_ENV&&console.warn("You need to place the ref")}}),[a,s,e]),d}function yl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ml(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return yl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function xl(e,t){if(null!=e)if(function(e){return!(!e||"[object Function]"!={}.toString.call(e))}(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}"production"!==process.env.NODE_ENV&&(bl.displayName="Rect",bl.propTypes={children:ro.func.isRequired,observe:ro.bool,onChange:ro.func});var wl=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],Hl=wl.join(","),Cl="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function Vl(e,t){t=t||{};var n,r,a,o=[],c=[],i=e.querySelectorAll(Hl);for(t.includeContainer&&Cl.call(e,Hl)&&(i=Array.prototype.slice.apply(i)).unshift(e),n=0;n<i.length;n++)kl(r=i[n])&&(0===(a=Sl(r))?o.push(r):c.push({documentOrder:n,tabIndex:a,node:r}));return c.sort(_l).map((function(e){return e.node})).concat(o)}function kl(e){return!(!Ll(e)||function(e){return function(e){return Al(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||Sl(e)<0)}function Ll(e){return!(e.disabled||function(e){return Al(e)&&"hidden"===e.type}(e)||function(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}(e))}Vl.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==Cl.call(e,Hl)&&kl(e)},Vl.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==Cl.call(e,El)&&Ll(e)};var El=wl.concat("iframe").join(",");function Sl(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function _l(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function Al(e){return"INPUT"===e.tagName}var Dl=Vl;function Ol(){return Ol=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ol.apply(this,arguments)}var Il=["as","targetRef","position","unstable_observableRefs"],Nl=t.forwardRef((function(e,n){return t.createElement(ll,null,t.createElement(Rl,Ol({ref:n},e)))}));"production"!==process.env.NODE_ENV&&(Nl.displayName="Popover");var Rl=t.forwardRef((function(e,n){var r=e.as,a=void 0===r?"div":r,o=e.targetRef,c=e.position,i=void 0===c?Fl:c,s=e.unstable_observableRefs,l=void 0===s?[]:s,h=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,Il),u=t.useRef(null),p=zl(u,{observe:!h.hidden}),d=zl(o,{observe:!h.hidden}),m=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.useCallback((function(e){for(var t,r=Ml(n);!(t=r()).done;)xl(t.value,e)}),n)}(u,n);return function(e,n){var r=(a=e.current,ol()?a?a.ownerDocument:document:null);var a;function o(e){"Tab"===e.key&&n.current&&0===Dl(n.current).length||("Tab"===e.key&&e.shiftKey?u(e)?p(e):d(e)?m(e):f(e)&&b():"Tab"===e.key&&(i()?s(e):l()?h(e):v(e)&&b()))}function c(){var t=Dl(r),a=t&&e.current?t.indexOf(e.current):-1,o=t&&t[a+1];return(!n.current||!n.current.contains(o||null))&&o}function i(){return!!e.current&&e.current===r.activeElement}function s(e){var t=n.current&&Dl(n.current);t&&t[0]&&(e.preventDefault(),t[0].focus())}function l(){if(!!n.current&&n.current.contains(r.activeElement||null)){var e=n.current&&Dl(n.current);return Boolean(e&&e[e.length-1]===r.activeElement)}return!1}function h(e){var t=c();t&&(e.preventDefault(),t.focus())}function u(e){if(e.shiftKey){var t=c();return e.target===t}}function p(e){var t=n.current&&Dl(n.current),r=t&&t[t.length-1];r&&(e.preventDefault(),r.focus())}function d(e){var t=n.current&&Dl(n.current);return!!t&&(0!==t.length&&e.target===t[0])}function m(t){var n;t.preventDefault(),null==(n=e.current)||n.focus()}function v(e){var t=n.current?Dl(r).filter((function(e){return!n.current.contains(e)})):null;return!!t&&e.target===t[t.length-1]}function f(e){return e.target===Dl(r)[0]}t.useEffect((function(){return r.addEventListener("keydown",o),function(){r.removeEventListener("keydown",o)}}),[]);var g=[];function b(){var e=n.current&&Dl(n.current);e&&(e.forEach((function(e){g.push([e,e.tabIndex]),e.tabIndex=-1})),r.addEventListener("focusin",z))}function z(){r.removeEventListener("focusin",z),g.forEach((function(e){var t=e[0],n=e[1];t.tabIndex=n}))}}(o,u),t.createElement(a,Ol({"data-reach-popover":"",ref:m},h,{style:Ol({position:"absolute"},Pl.apply(void 0,[i,d,p].concat(l)),h.style)}))}));function Pl(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),o=3;o<r;o++)a[o-3]=arguments[o];return n?e.apply(void 0,[t,n].concat(a.map((function(e){return e.current})))):{visibility:"hidden"}}function Tl(e,t,n){return{top:n?e.top-t.height+window.pageYOffset+"px":e.top+e.height+window.pageYOffset+"px"}}"production"!==process.env.NODE_ENV&&(Rl.displayName="PopoverImpl");var Fl=function(e,t){if(!e||!t)return{};var n=Bl(e,t),r=n.directionRight,a=n.directionUp;return Ol({left:r?e.right-t.width+window.pageXOffset+"px":e.left+window.pageXOffset+"px"},Tl(e,t,a))},jl=function(e,t){if(!e||!t)return{};var n=Bl(e,t).directionUp;return Ol({width:e.width,left:e.left},Tl(e,t,n))};function Bl(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var a={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0};return{directionRight:a.right&&!a.left,directionLeft:a.left&&!a.right,directionUp:a.bottom&&!a.top,directionDown:a.top&&!a.bottom}}const Yl={BUTTON:"button",INPUT:"input"},$l=n.createContext(null);function Wl(e){function t(t,r){return n.createElement($l.Consumer,null,(({downshift:a,items:o,filterKey:c,type:i,name:s})=>n.createElement(e,Object.assign({downshift:a,items:o,filterKey:c,type:i,name:s},t,{ref:r}))))}return t.displayName=`withDownshift(${e.displayName||e.name})`,D(n.forwardRef(t),e)}const Ul=tt.button`
1002
+ `,Yl={BUTTON:"button",INPUT:"input"},$l=n.createContext(null);function Wl(e){function t(t,r){return n.createElement($l.Consumer,null,(({downshift:a,items:o,filterKey:c,type:i,name:s})=>n.createElement(e,Object.assign({downshift:a,items:o,filterKey:c,type:i,name:s},t,{ref:r}))))}return t.displayName=`withDownshift(${e.displayName||e.name})`,D(n.forwardRef(t),e)}const Ul=tt.button`
998
1003
  ${({theme:e,isOpen:t,isErrored:n})=>{const{colors:{components:{input:r},border:a,pseudo:o},palette:c}=e;return`\n background: ${c.white};\n border: none;\n cursor: pointer;\n position : relative;\n box-shadow: none;\n min-height: 38px;\n border-radius: 5px;\n padding: 4px 12px;\n border: 1px solid ${n?a.error:t?"transparent":r.primary.borderColor};\n box-shadow : ${t&&!n?`0 0 0 2px ${o.focus}`:"none"};\n display: flex;\n width: 100%;\n align-items: center;\n display: flex;\n outline: none;\n border-radius: 4px;\n justify-content: space-between;\n\n .dropdown-selected {\n display: block;\n font-size: 14px;\n width: 90%;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n text-align: left;\n .placeholder {\n opacity : 0.7;\n }\n }\n .dropdown-status {\n transition: all ease-in 0.2s;\n transform: ${t?"rotate(180deg)":"rotate(0deg)"};\n }\n \n &[disabled] {\n filter: opacity(0.6);\n cursor: not-allowed;\n } \n &.focused {\n box-shadow: 0 0px 0px 2px ${o.focus};\n } \n\n `}};
999
1004
  ${({theme:e,overrideStyles:t})=>{const{typography:n}=e;return{...n.body.secondary,...t}}};
1000
1005
  `,Kl=n.forwardRef(((e,t)=>{const{downshift:{getToggleButtonProps:r,selectedItem:a,isOpen:o,itemToString:c},children:i,disabled:s=!1,isErrored:l=!1,overrideStyles:h={},buttonLabelComponent:u,placeholder:p="--Select--"}=e,d=((e,t)=>e?e(t):t)(c,a);return n.createElement(Ul,Object.assign({},r({onClick:e=>{e.stopPropagation()}}),{isOpen:o,isErrored:l,className:"dropdown-button",overrideStyles:h,ref:t,disabled:s}),i?i({label:d,getToggleButtonProps:r,isOpen:o}):n.createElement(n.Fragment,null,n.createElement("div",{className:"dropdown-selected"},u?n.createElement(u,null,d):d||n.createElement("span",{className:"placeholder"},p)),n.createElement("div",{className:"dropdown-status"},n.createElement(Vn,{size:"8",viewBox:"0 0 8 8",glyph:"chevron-down"}))))}));var Gl=Wl(Kl),ql={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},Zl=Object.keys(ql).join("|"),Xl=new RegExp(Zl,"g"),Jl=new RegExp(Zl,""),Ql=function(e){return e.replace(Xl,(function(e){return ql[e]}))},eh=Ql,th=function(e){return!!e.match(Jl)},nh=Ql;eh.has=th,eh.remove=nh;var rh={CASE_SENSITIVE_EQUAL:9,EQUAL:8,STARTS_WITH:7,WORD_STARTS_WITH:6,STRING_CASE:5,STRING_CASE_ACRONYM:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},ah={CAMEL:.8,PASCAL:.6,KEBAB:.4,SNAKE:.2,NO_CASE:0};ch.rankings=rh,ch.caseRankings=ah;var oh=function(e,t){return String(e.rankedItem).localeCompare(t.rankedItem)};function ch(e,t,n){void 0===n&&(n={});var r=n,a=r.keys,o=r.threshold,c=void 0===o?rh.MATCHES:o,i=r.baseSort,s=void 0===i?oh:i,l=e.reduce((function(e,r,o){var i=function(e,t,n,r){if(!t)return{rankedItem:e,rank:ih(e,n,r),keyIndex:-1,keyThreshold:r.threshold};return function(e,t){return t.reduce((function(t,n){var r=function(e,t){"object"==typeof t&&(t=t.key);var n;n="function"==typeof t?t(e):-1!==t.indexOf(".")?t.split(".").reduce((function(e,t){return e?e[t]:null}),e):e[t];return null!=n?[].concat(n):null}(e,n);return r&&r.forEach((function(e){t.push({itemValue:e,attributes:lh(n)})})),t}),[])}(e,t).reduce((function(e,t,a){var o=e.rank,c=e.rankedItem,i=e.keyIndex,s=e.keyThreshold,l=t.itemValue,h=t.attributes,u=ih(l,n,r),p=c,d=h.minRanking,m=h.maxRanking,v=h.threshold;return u<d&&u>=rh.MATCHES?u=d:u>m&&(u=m),u>o&&(o=u,i=a,s=v,p=l),{rankedItem:p,rank:o,keyIndex:i,keyThreshold:s}}),{rank:rh.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}(r,a,t,n),s=i.rankedItem,l=i.rank,h=i.keyIndex,u=i.keyThreshold;l>=(void 0===u?c:u)&&e.push({rankedItem:s,item:r,rank:l,index:o,keyIndex:h});return e}),[]);return l.sort((function(e,t){return function(e,t,n){var r=-1,a=1,o=e.rank,c=e.keyIndex,i=t.rank,s=t.keyIndex;return o===i?c===s?n(e,t):c<s?r:a:o>i?r:a}(e,t,s)})).map((function(e){return e.item}))}function ih(e,t,n){if(e=sh(e,n),(t=sh(t,n)).length>e.length)return rh.NO_MATCH;if(e===t)return rh.CASE_SENSITIVE_EQUAL;var r,a,o=function(e){var t=e.toLowerCase()!==e,n=e.indexOf("-")>=0,r=e.indexOf("_")>=0;if(!t&&!r&&n)return ah.KEBAB;if(!t&&r&&!n)return ah.SNAKE;if(t&&!n&&!r){return e[0].toUpperCase()===e[0]?ah.PASCAL:ah.CAMEL}return ah.NO_CASE}(e),c=function(e,t,n){var r=e.toLowerCase().indexOf(t.toLowerCase());switch(n){case ah.SNAKE:return"_"===e[r-1];case ah.KEBAB:return"-"===e[r-1];case ah.PASCAL:case ah.CAMEL:return-1!==r&&e[r]===e[r].toUpperCase();default:return!1}}(e,t,o),i=function(e,t,n){var r=null;switch(n){case ah.SNAKE:r="_";break;case ah.KEBAB:r="-";break;case ah.PASCAL:case ah.CAMEL:r=/(?=[A-Z])/;break;default:r=null}var a=e.split(r);return t.toLowerCase().split("").reduce((function(e,t,n){var r=a[n];return e&&r&&r[0].toLowerCase()===t}),!0)}(e,t,o);return(e=e.toLowerCase())===(t=t.toLowerCase())?rh.EQUAL+o:0===e.indexOf(t)?rh.STARTS_WITH+o:-1!==e.indexOf(" "+t)?rh.WORD_STARTS_WITH+o:c?rh.STRING_CASE+o:o>0&&i?rh.STRING_CASE_ACRONYM+o:-1!==e.indexOf(t)?rh.CONTAINS+o:1===t.length?rh.NO_MATCH:-1!==(r=e,a="",r.split(" ").forEach((function(e){e.split("-").forEach((function(e){a+=e.substr(0,1)}))})),a).indexOf(t)?rh.ACRONYM+o:function(e,t){var n=0,r=0;function a(e,t,r){for(var a=r;a<t.length;a++){if(t[a]===e)return n+=1,a+1}return-1}function o(e){var r=n/t.length;return rh.MATCHES+r*(1/e)}var c=a(t[0],e,0);if(c<0)return rh.NO_MATCH;r=c;for(var i=1;i<t.length;i++){if(!((r=a(t[i],e,r))>-1))return rh.NO_MATCH}return o(r-c)}(e,t)}function sh(e,t){return e=""+e,t.keepDiacritics||(e=eh(e)),e}function lh(e){return"string"==typeof e&&(e={key:e}),it({maxRanking:1/0,minRanking:-1/0},e)}const hh=tt.ul`
@@ -1030,7 +1035,7 @@ object-assign
1030
1035
  border-radius: ${({showBorder:e})=>e?"unset":"4px"};
1031
1036
  padding: 8px;
1032
1037
  cursor: pointer;
1033
- `,ph=Wl((({items:e,downshift:{isOpen:t,getMenuProps:r,getItemProps:a,selectedItem:o,inputValue:c,highlightedIndex:i,itemToString:s},overrideStyles:l={},itemComponent:h,type:u,filterKey:p,isMenuLoading:d,anchorRef:m,popoverRef:v})=>{let f=e;if(u===Yl.INPUT&&(null===o||"string"==typeof o&&o!==c||"object"==typeof o&&o&&o[p]&&o[p]!==c)&&("development"!==process.env.NODE_ENV||"string"==typeof e[0]||p||console.error("The 'items' you provided is of type Object, provide \n 'filterKey' prop to <Dropdown/> to specify which key has to be searched for."),p&&"object"==typeof e[0]&&(f=""!==c&&c?e.filter((e=>e&&e.ignoreFilter||p&&e&&e[p]&&c&&e[p].toLowerCase().includes(c.toLowerCase()))):e),"string"==typeof e[0]&&(f=ch(e,c))),0===f.length&&!d)return null;v.current&&m.current&&Bl(m.current.getBoundingClientRect(),v.current.getBoundingClientRect());return n.createElement(n.Fragment,null,n.createElement(Bo,{initialOffset:"-20px",timeout:200,in:t,unmountOnExit:!0},(e=>n.createElement("div",{style:{width:"100%",zIndex:1e3},id:"heloo"},n.createElement(hh,Object.assign({},r({onClick:e=>{e.stopPropagation()}}),{overrideStyles:l}),d?n.createElement("div",{className:"loader-wrapper"},n.createElement(al,null)):n.createElement(n.Fragment,null,f.map(((e,t)=>{const r=f.indexOf(o)===t;return n.createElement(uh,Object.assign({},a({item:e,key:t,disabled:e.disabled}),{key:t,isSelectedIndex:r,canHighlight:i===t,disabled:e.disabled,showBorder:e.showBorder}),n.createElement(so.Flex,{justifyContent:"space-between",alignItems:"center"},n.createElement(so.Box,{width:"90%",style:{wordBreak:"break-word"}},h?h(e):s(e)),r?n.createElement(Vn,{glyph:"check",size:12,viewBox:"0 0 8 8"}):null))}))))))))})),dh=tt.div`
1038
+ `,ph=Wl((({items:e,downshift:{isOpen:t,getMenuProps:r,getItemProps:a,selectedItem:o,inputValue:c,highlightedIndex:i,itemToString:s},overrideStyles:l={},itemComponent:h,type:u,filterKey:p,isMenuLoading:d,anchorRef:m,popoverRef:v})=>{let f=e;if(u===Yl.INPUT&&(null===o||"string"==typeof o&&o!==c||"object"==typeof o&&o&&o[p]&&o[p]!==c)&&("development"!==process.env.NODE_ENV||"string"==typeof e[0]||p||console.error("The 'items' you provided is of type Object, provide \n 'filterKey' prop to <Dropdown/> to specify which key has to be searched for."),p&&"object"==typeof e[0]&&(f=""!==c&&c?e.filter((e=>e&&e.ignoreFilter||p&&e&&e[p]&&c&&e[p].toLowerCase().includes(c.toLowerCase()))):e),"string"==typeof e[0]&&(f=ch(e,c))),0===f.length&&!d)return null;v.current&&m.current&&Sl(m.current.getBoundingClientRect(),v.current.getBoundingClientRect());return n.createElement(n.Fragment,null,n.createElement(Bo,{initialOffset:"-20px",timeout:200,in:t,unmountOnExit:!0},(e=>n.createElement("div",{style:{width:"100%",zIndex:1e3},id:"heloo"},n.createElement(hh,Object.assign({},r({onClick:e=>{e.stopPropagation()}}),{overrideStyles:l}),d?n.createElement("div",{className:"loader-wrapper"},n.createElement(Il,null)):n.createElement(n.Fragment,null,f.map(((e,t)=>{const r=f.indexOf(o)===t;return n.createElement(uh,Object.assign({},a({item:e,key:t,disabled:e.disabled}),{key:t,isSelectedIndex:r,canHighlight:i===t,disabled:e.disabled,showBorder:e.showBorder}),n.createElement(so.Flex,{justifyContent:"space-between",alignItems:"center"},n.createElement(so.Box,{width:"90%",style:{wordBreak:"break-word"}},h?h(e):s(e)),r?n.createElement(Vn,{glyph:"check",size:12,viewBox:"0 0 8 8"}):null))}))))))))})),dh=tt.div`
1034
1039
  ${({isOpen:e,isErrored:t,disabled:n,theme:{palette:r,colors:a}})=>`\n position: relative;\n width: 100%;\n box-sizing: border-box;\n border-radius: 5px;\n border: 1px solid ${t?a.border.error:a.border.primary};\n background: white;\n appearance: none;\n padding: 4px 12px;\n display: flex;\n align-items: center;\n\n input {\n flex-grow: 1;\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0px;\n min-height: 24px;\n background-color: #fff;\n min-width: 100px;\n box-sizing: border-box;\n border: none;\n overflow: hidden;\n padding : 0;\n margin : 2px;\n ::placeholder,\n ::-webkit-input-placeholder {\n color: ${r.S300}\n }\n :-ms-input-placeholder {\n color: ${r.S300}\n }\n \n }\n ${e&&!t?`border: none;\n box-shadow: 0 0 0 2px ${a.pseudo.focus}; \n transition: box-shadow 0.3s ease-in-out;`:""}\n \n \n\n\n .dropdown-status {\n transition: all ease-in 0.2s;\n pointer-events: ${n?"none":"all"};\n transform: ${e?"rotate(180deg)":"rotate(0deg)"};\n }\n `}
1035
1040
  `,mh=n.forwardRef(((e,t)=>{const{downshift:{getInputProps:r,toggleMenu:a,isOpen:o},name:c,isErrored:i,disabled:s,placeholder:l="Enter input to get suggestions"}=e;return n.createElement(dh,{isErrored:i,isOpen:o,ref:t,disabled:s},n.createElement("input",Object.assign({},r({"data-testid":c}),{disabled:s,placeholder:l,onClick:a})),n.createElement("div",{className:"dropdown-status",onClick:s?()=>{}:a},n.createElement(Vn,{size:"8",viewBox:"0 0 8 8",glyph:"chevron-down"})))})),vh=Wl(mh),fh=tt.div`
1036
1041
  display: block;
@@ -1466,4 +1471,4 @@ to {right : 10px}
1466
1471
  .toast-container.hover {
1467
1472
  transform: translate3d(0, -10px, 0);
1468
1473
  }
1469
- `,Av=()=>{const e=((e=Vv())=>{const n=`ui-${e}`,{isBrowser:r}=Cv(),[a,o]=t.useState(r?kv(n):null);return t.useEffect((()=>{const e=document.querySelector(`#${n}`),t=e||kv(n);e||document.body.appendChild(t),o(t)}),[]),a})("toast"),[r,a]=t.useState(!1),o=t.useRef(),{toasts:i,updateToastHoverStatus:s}=Hv(),l=t.useMemo((()=>i.map(((e,t)=>n.createElement(Sv,{index:t,total:i.length,toast:e,onHover:r,key:`toast-${t}`})))),[i,r]),h=e=>{if(e)return o.current&&clearTimeout(o.current),s((()=>!0)),a(!0);o.current=window.setTimeout((()=>{a(!1),s((()=>!1)),o.current&&clearTimeout(o.current)}),200)};return e&&i&&0!==i.length?c.createPortal(n.createElement(_v,null,n.createElement("div",{className:"toast-container "+(r?"hover":""),onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1)},l)),e):null},Dv=2e3;let Ov,Iv=[],Nv=0;var Rv=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Pv}(e)}(e)};var Pv="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Tv(e,t){return!1!==t.clone&&t.isMergeableObject(e)?$v((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Fv(e,t,n){return e.concat(t).map((function(e){return Tv(e,n)}))}function jv(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Bv(e,t){try{return t in e}catch(e){return!1}}function Yv(e,t,n){var r={};return n.isMergeableObject(e)&&jv(e).forEach((function(t){r[t]=Tv(e[t],n)})),jv(t).forEach((function(a){(function(e,t){return Bv(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(Bv(e,a)&&n.isMergeableObject(t[a])?r[a]=function(e,t){if(!t.customMerge)return $v;var n=t.customMerge(e);return"function"==typeof n?n:$v}(a,n)(e[a],t[a],n):r[a]=Tv(t[a],n))})),r}function $v(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Fv,n.isMergeableObject=n.isMergeableObject||Rv,n.cloneUnlessOtherwiseSpecified=Tv;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Yv(e,t,n):Tv(t,n)}$v.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return $v(e,n,t)}),{})};var Wv=$v;exports.Alert=Dn,exports.BUTTON_SIZE_VARIANTS=ho,exports.BoxedRadio=Zm,exports.Button=po,exports.ButtonDropdown=Os,exports.Checkbox=fo,exports.Confirmation=Yo,exports.ConfirmationBody=Uo,exports.ConfirmationContent=$o,exports.ConfirmationFooter=Ko,exports.ConfirmationOverlay=Wo,exports.CssBaseLine=bo,exports.DatePicker=e=>{const{placeholder:t,name:r,isRequired:a,label:o,isErrored:c,errorText:i,id:s,monthYearLocation:l="start",disabled:h,displayFormat:u="YYYY-MM-DD",...p}=e;return n.createElement($m,{isErrored:c,id:`date-picker-container-${s||""}`},o&&n.createElement("label",null,o,a&&n.createElement("span",{className:"isRequired"},"*")),n.createElement(Ym,Object.assign({canClearSelection:!0,closeOnSelection:!0,disabled:h,fill:!0,highlightCurrentDay:!0,inputProps:{placeholder:t||u,name:r,id:s,disabled:h},dayPickerProps:{},popoverProps:{minimal:!0,placement:"bottom-start",usePortal:!1},parseDate:e=>e?xh(e).toDate():new Date,formatDate:e=>e?xh(e).format(u):""},p)),c&&i&&n.createElement("span",{className:"error"},i))},exports.DateTimePicker=e=>{const{placeholder:t,isErrored:r,isRequired:a,errorText:o,name:c,label:i,id:s,disabled:l,displayFormat:h="YYYY-MM-DD hh:mm A",...u}=e;return n.createElement($m,{isErrored:r,id:`datetime-picker-container-${s||""}`},i&&n.createElement("label",null,i,a&&n.createElement("span",{className:"isRequired"},"*")),n.createElement(Ym,Object.assign({canClearSelection:!0,closeOnSelection:!0,todayButtonText:"",disabled:l,showActionsBar:!0,highlightCurrentDay:!0,timePrecision:"minute",fill:!0,timePickerProps:{useAmPm:!0},inputProps:{placeholder:t||h,name:c,id:s,disabled:l},popoverProps:{minimal:!0,placement:"bottom-start",usePortal:!1},parseDate:e=>e?xh(e).toDate():new Date,formatDate:e=>e?xh(e).format(h):""},u)),r&&o&&n.createElement("span",{className:"error"},o))},exports.DismissIcon=rc,exports.Drawer=function(e){const{isOpen:n,onDismiss:r,hideDismissIcon:a,clickOutToClose:o=!0,size:c="default",placement:i="right",children:s,customClass:l,...h}=e;return t.createElement(ic,{in:n,placement:i},(e=>t.createElement(oc.Provider,{value:e},t.createElement(lc,{customClass:l,isOpen:!0,onDismiss:o?r:()=>{}},t.createElement(sc,{size:c},!a&&t.createElement(rc,{onClick:r},t.createElement(Vn,{glyph:"close",size:"12",viewBox:"-2 -2 10 10"})),s)))))},exports.DrawerBody=nc,exports.DrawerContent=sc,exports.DrawerFooter=ac,exports.DrawerOverlay=lc,exports.Dropdown=e=>{const{items:r,children:a,defaultSelectedItem:o,label:c="",placeholder:i,errorText:s,itemToString:l,itemComponent:h,onChange:u=(e=>e),type:p=Yl.BUTTON,filterKey:d,width:m="100%",disabled:v,isErrored:f,isRequired:g,overrideButtonStyles:b,overrideContainerStyles:z,isMenuLoading:y,...M}=e;let x;"object"!=typeof r[0]||l?x=e=>e?l?l(e):"object"!=typeof e?String(e):null:null:console.warn("Your items are objects. So you need to pass a function to translate each object as a string which can be shown as dropdown item labels");const w=t.useRef(null),H=t.useRef(null);return n.createElement("div",null,n.createElement(hi,Object.assign({itemToString:x,selectedItem:o,onChange:u},M),(e=>n.createElement(gh,Object.assign({width:m,isRequired:g},e.getRootProps()),c&&n.createElement("label",Object.assign({},e.getLabelProps()),c),n.createElement($l.Provider,{value:{downshift:e,items:r,filterKey:d,type:p,name:M.name}},a||n.createElement(n.Fragment,null,Yl.BUTTON===p&&n.createElement(Gl,{disabled:v,ref:w,isErrored:f,overrideStyles:b,placeholder:i}),Yl.INPUT===p&&n.createElement(vh,{ref:w,placeholder:i,isErrored:f,disabled:v}),n.createElement(Nl,{targetRef:w,position:jl,ref:H},n.createElement(n.Fragment,null,n.createElement(ph,{anchorRef:w,popoverRef:H,itemComponent:h,isErrored:f,overrideStyles:z,isMenuLoading:y})))))))),f&&s&&n.createElement(fh,null,s))},exports.Fade=Po,exports.FreemiumUIProvider=function(e){const{theme:n,children:r}=e;return t.createElement(Je,{theme:n},t.createElement(bo,null),r)},exports.Glyph=Cn,exports.Icons=Vn,exports.InlineSvg=wn,exports.Input=Ws,exports.Loader=al,exports.Menu=_s,exports.Modal=({children:e,isOpen:t,onDismiss:r,position:a="center",align:o="center",size:c="default"})=>n.createElement(Po,{timeout:300,in:t,unmountOnExit:!0},(i=>n.createElement(qo,{className:"modal-overlay",style:i,align:o,position:a,isOpen:!0,onDismiss:r},n.createElement(Bo,{timeout:150,in:t,unmountOnExit:!0},(t=>n.createElement(Qo,{className:"modal-content",style:t,size:c,"aria-label":"dialog"},e)))))),exports.ModalBody=ec,exports.ModalContent=Qo,exports.ModalFooter=tc,exports.ModalOverlay=qo,exports.MultiSelectDropdown=e=>{const{name:r,label:a,items:o,selectedItem:c,onChange:i,disabled:s=!1,customValues:l=!1,placeholder:h,isErrored:u,errorText:p,onCustomValueAdd:d,itemLabelIdentifier:m,itemValueIdentifier:v,isRequired:f,renderCustomSuggestion:g,maxAllowedLength:b=2147483647,...z}=e,[y,M]=t.useState([]),[x,w]=t.useState(""),[H,C]=t.useState(!1),V=t.useRef(null);t.useEffect((()=>{M([...c])}),[c]);const k=e=>{y.some((t=>t[v]===e[v]))?E(e):H||L(e)},L=e=>{w(""),M([...y,e]),i([...y,e])},E=e=>{const t=y.filter((t=>t[m]!==e[m]));M(t),i(t)},S=e=>g?g(e):(({item:e,lengthError:t,maxAllowedLength:r,itemProps:a,index:o,highlightedIndex:c,selectedItem:i,itemValueIdentifier:s,itemLabelIdentifier:l})=>{const h=c===o,u=i.some((t=>t[s]&&t[s]===e[s]));return n.createElement(Js,Object.assign({disabled:e.disabled},a,{key:o,isHighlighted:h,isSelected:u,isRemove:u&&e.customValues,lengthError:t}),n.createElement(so.Flex,{alignItems:"center",justifyContent:"space-between"},n.createElement("div",{className:"primary-text","data-testid":`suggested-item-${e[s]}`},t?`Length cannot be greater than ${r} characters`:e.customValues&&""!==e[l]?`Enter to ${u?"remove":"add"} '${e[l]}'`:e[l]),u&&!e.customValues&&n.createElement(Vn,{glyph:"check",size:12,viewBox:"0 0 8 8"})))})(e);return n.createElement("div",null,n.createElement(hi,Object.assign({selectedItem:c,onChange:e=>{e&&e.customValues&&d?d({[m]:e.label,[v]:e.value}):e&&k&&k(e)},itemToString:e=>e?e[v]:"",inputValue:x,onInputValueChange:(e="")=>{l&&e.length>b?C(!0):C(!1),w(e)}},z),(({getInputProps:e,getItemProps:t,getRootProps:c,inputValue:i,selectedItem:p,toggleMenu:g,isOpen:z,highlightedIndex:y})=>n.createElement(Qs,Object.assign({required:f},c()),a&&n.createElement("label",{htmlFor:a},a),n.createElement(Zs,{isOpen:z&&!s,isErrored:u,id:"dropdownField container","data-testid":`formik-multi-select-${a}`,onClick:()=>{z||V&&V.current&&V.current.focus(),g()}},n.createElement("div",{className:"items"},(({selectedItem:e,removeSelectedItem:t,itemLabelIdentifier:r})=>e&&e.length>0&&e.map(((e,a)=>e[r]&&n.createElement(Ks,{key:a,onCloseAction:n=>{n.stopPropagation(),t(e)}},e[r]))))({removeSelectedItem:E,selectedItem:p,itemLabelIdentifier:m}),(({label:e,name:t,searchRef:r,InputProps:a,items:o,placeholder:c,customValues:i})=>0!==o.length||i?n.createElement("input",Object.assign({name:t,size:25,"data-testid":`formik-multi-select-input-${e}`,ref:r,type:"text"},a,{placeholder:c})):null)({name:r,label:a||"",searchRef:V,selectedItem:p,removeSelectedItem:E,disabled:s,items:o,inputValue:i,placeholder:h||"",customValues:l,InputProps:{...e({disabled:s,onKeyDown:e=>{"Backspace"!==e.key||i||E(p[p.length-1]),"Enter"===e.key&&i&&l&&null===y&&(d?d({[m]:i,[v]:i}):k({[m]:i,[v]:i}))}})}})),n.createElement("div",{className:"svg-wrapper"},n.createElement(Vn,{size:"8",viewBox:"0 0 8 8",glyph:"chevron-down"}))),n.createElement(Bo,{initialOffset:"-20px",timeout:200,in:z,unmountOnExit:!0},(e=>{const r=((e,t,n,r,a)=>{const o=t.filter((t=>t[n].toLowerCase().includes(e&&e.toLowerCase&&e.toLowerCase())));return 0==o.length&&a&&""!==e&&o.push({[r]:e,[n]:e,customValues:!0}),o})(i,o,m,v,l);return r&&r.length>0&&n.createElement(Xs,{style:e},r.map(((e,n)=>S({lengthError:H,maxAllowedLength:b,item:e,index:n,itemProps:t({item:e,onClick:e=>e.stopPropagation(),disabled:e.disabled}),isActive:y===n,highlightedIndex:y,selectedItem:p,itemValueIdentifier:v,itemLabelIdentifier:m}))))}))))),u&&p&&n.createElement(qs,null,p))},exports.Popover=dc,exports.Radio=Km,exports.Slide=jo,exports.SlideFade=Bo,exports.SvgWrapper=Hn,exports.Table=e=>{const{columns:t=[],data:r=[],count:a=0,perPage:o=10,pageNumber:c=1,indeterminateCount:i=!1,next:s=!1,previous:l=!1,showTopPagination:h=!0,showBottomPagination:u=!0,showSelectAllInTable:p=!1,showActions:d=!0,showSelections:m=!0,hideTableHeaderOnEmpty:f=!0,showFilters:g=!0,showOptions:b=!0,rowMenuOptions:z=(()=>[]),cellPropGetter:y,rowPropGetter:M,onRowSelect:x,onRowClick:w,emptyComponent:H,loadingComponent:C,onPrevious:V,onFirstClick:k,onLastClick:L,onPageClick:E,onSelectAll:S,onNext:_,onMenuOptionSelect:A,headerComponent:D,initialState:O={},filterComponent:I}=e,[N,R]=n.useState(g),[P,T]=n.useState(null),{getTableProps:F,getTableBodyProps:j,headerGroups:B,rows:Y,setColumnOrder:$,setHiddenColumns:W,flatRows:U,prepareRow:K,getToggleAllRowsSelectedProps:G}=v.useTable({columns:t,data:r,initialState:O,useControlledState:e=>n.useMemo((()=>({...e,selectedRowIds:O.selectedRowIds||{}})),[O.selectedRowIds,e])},v.useRowSelect,v.useColumnOrder,(e=>{e.visibleColumns.push((e=>m?[{id:"selection",disableResizing:!0,width:50,Header:({getToggleAllRowsSelectedProps:e,toggleAllRowsSelected:t})=>p?n.createElement("div",{className:"table-checkbox"},n.createElement(fo,Object.assign({id:"selectAll",name:"selectAll"},e(),{onChange:(e,n)=>{if(n){const e={};Y&&Y.length>0&&Y.forEach((t=>{e[t.id]=!0})),x&&x(e,U)}else x&&x({},U);S&&S(n),t(n)}}))):n.createElement("div",null),Cell:e=>{const{row:t}=e;return n.createElement("div",{className:"table-checkbox"},n.createElement(fo,Object.assign({id:"selectRow",name:"selectRow"},t.getToggleRowSelectedProps(),{onChange:(e,n)=>{t.toggleRowSelected(n),x&&x({...O.selectedRowIds,[t.id]:n},U)}})))}},...e]:[...e]))})),q=[];for(let e=0;e<Math.ceil(a/o);e++)q.push(e+1);return v.useMountedLayoutEffect((()=>{O&&O.columnOrder&&$(O.columnOrder)}),[O.columnOrder]),v.useMountedLayoutEffect((()=>{O&&O.hiddenColumns&&W(O.hiddenColumns)}),[O.hiddenColumns]),n.createElement(Qm,{className:"fui-table"},d&&n.createElement(tv,{className:"table-actions"},n.createElement("div",{className:"action"},!p&&m&&n.createElement(fo,Object.assign({id:"selectAll",name:"selectAll"},G()),"Select All")),D||void 0,n.createElement("div",{className:"pagination-actions"},h&&n.createElement(n.Fragment,null,n.createElement("div",{className:"pagination-text"},C?n.createElement(al,{size:"small"}):n.createElement(n.Fragment,null,a>0?`${(c-1)*o+(r.length>0?1:0)} - ${(c-1)*o+r.length} of ${i?""+(r.length>0?"Many":"-"):a}`:null)),n.createElement(po,{type:"secondary",disabled:!l||Boolean(C),onClick:()=>V&&V(c-1)},n.createElement(Vn,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"})),n.createElement(po,{type:"secondary",disabled:!s||Boolean(C),onClick:()=>_&&_(c+1)},n.createElement(Vn,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"}))),g&&n.createElement(po,{type:"secondary",className:"filter-toggle",onClick:()=>R(!N)},n.createElement(Vn,{glyph:N?"collapse":"expand",size:12,viewBox:"0 0 14 14"}))))," ",n.createElement(hv,{className:"table-content"},n.createElement(ev,{showFilters:g&&N,className:"table-wrapper"},C?n.createElement(n.Fragment,null,C):n.createElement(n.Fragment,null,f&&0===Y.length?n.createElement(n.Fragment,null,H):n.createElement(nv,Object.assign({},F()),n.createElement(ov,null,B.map((e=>{const{getHeaderGroupProps:t,headers:r}=e;return n.createElement(rv,Object.assign({},t(),{className:"header-row"}),r.map((e=>{const{getHeaderProps:t,render:r}=e;return n.createElement(sv,Object.assign({},t()),r("Header"))})),b&&n.createElement(sv,null))}))),n.createElement(iv,Object.assign({},j()),Y.length>0?Y.map((e=>{K(e);const{getRowProps:t,cells:r}=e;return n.createElement(rv,Object.assign({},t(M?M(e):{}),{className:e.isSelected?"selected":""}),r.map((e=>{const{getCellProps:t,render:r}=e;return n.createElement(lv,Object.assign({},t(y?y(e):{}),{onClick:()=>{"selection"!==e.column.id&&w&&w(e.row,e.column)}}),r("Cell"))})),b&&n.createElement(lv,null,z&&z(e.original).length>0&&n.createElement(n.Fragment,null,n.createElement(pv,{"aria-describedby":`row-popover-${e.id}`,onClick:e=>T(e.currentTarget)},n.createElement(Vn,{glyph:"more-vertical",size:12,viewBox:"0 0 4 16"})),n.createElement(dc,{id:`row-popover-${e.id}`,anchorEl:P,onClose:()=>T(null),anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}},n.createElement(_s,{options:z(e.original)||[],onSelect:t=>{A&&A(t.id,e.original),T(null)},closeMenuCallback:()=>T(null)})))))})):n.createElement(n.Fragment,null,H)),u&&n.createElement(cv,null,n.createElement("tr",null,n.createElement("td",{colSpan:t.length-(O&&O.hiddenColumns&&O.hiddenColumns.length||0)+(m?1:0)+(z&&z().length>0?1:0)},n.createElement(av,{className:"table-pagination"},Math.ceil(a/o)>10&&n.createElement(po,{type:"secondary",disabled:1===c,onClick:()=>k&&k(1)},n.createElement(Vn,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"}),n.createElement(Vn,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"})),n.createElement(po,{type:"secondary",disabled:1===c,onClick:()=>V&&V(c-1)},n.createElement(Vn,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"})),c>3&&n.createElement(n.Fragment,null,n.createElement(po,{type:"secondary",onClick:()=>E&&E(1)},"1"),c-3!=1&&n.createElement(po,{type:"secondary",disabled:!0},"...")),q.map((e=>[e-2,e-1,e,e+1,e+2].includes(c)&&n.createElement(po,{type:"secondary",className:c===e?"active":"",onClick:()=>E&&E(e)},e))),c<Math.ceil(a/o)-2&&n.createElement(n.Fragment,null,c+3!==Math.ceil(a/o)&&n.createElement(po,{type:"secondary",disabled:!0},"..."),n.createElement(po,{type:"secondary",onClick:()=>E&&E(Math.ceil(a/o))},Math.ceil(a/o))),n.createElement(po,{type:"secondary",disabled:c===Math.ceil(a/o),onClick:()=>_&&_(c+1)},n.createElement(Vn,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"})),Math.ceil(a/o)>10&&n.createElement(po,{type:"secondary",disabled:c===Math.ceil(a/o),onClick:()=>L&&L(Math.ceil(a/o))},n.createElement(Vn,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"}),n.createElement(Vn,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"}))))))))),g&&N&&I&&n.createElement(uv,{className:"table-filters"},I)))},exports.Tabs=e=>{const{value:t,onChange:r=(()=>{}),idAccessor:a="id",nameAccessor:o="name",options:c=[],ref:i=null}=e;return n.createElement(dv,{ref:i,role:"tablist"},c.map((e=>!e.hide&&n.createElement(mv,{"aria-disabled":Boolean(e.disabled),tabIndex:t===e[a]?-1:0,role:"tab",className:`${e.disabled?"disabled":""} ${t===e[a]?"selected":""}`.trim(),onClick:t=>!e.disabled&&r(t,e),id:e[a],key:e[a]},n.createElement("span",{className:"label"}," ",e[o])))))},exports.Tag=Ks,exports.TextArea=Us,exports.ThemeProvider=function(e){const{children:n,theme:r={},globalStyle:a=!0}=e,o=Wv(go,r);return t.createElement(Je,{theme:o},a&&t.createElement(bo,null),n)},exports.TimePicker=e=>{const{placeholder:t,name:r,label:a,id:o,disabled:c,errorText:i,isErrored:s,isRequired:l,...h}=e;return n.createElement($m,{isErrored:s,id:`time-picker-container-${o||""}`},a&&n.createElement("label",null,a,l&&n.createElement("span",{className:"isRequired"},"*")),n.createElement(Tm,Object.assign({precision:"minute",useAmPm:!0,disabled:c},h)),s&&i&&n.createElement("span",{className:"error"},i))},exports.ToastWrapper=e=>{const[r,a]=t.useState([]),[o,c]=t.useState(0),[s,l]=t.useState(!1),h=e=>{a(r.filter((t=>t.id!==e)))};return t.useEffect((()=>{r.length||l(!1)}),[r]),n.createElement(fv.Provider,{value:{pushToast:e=>{const t={...e,id:o};c(o+1),a([t,...r])},closeToast:h}},e.children,i.createPortal(n.createElement(zv,{length:r.length,isHovering:s,onMouseOver:()=>{l(!0)},onMouseLeave:()=>{l(!1)}},r.map(((e,t)=>n.createElement(gv,{key:e.id,index:t,toast:e,closeToast:h,isHovering:s})))," "),document.body))},exports.Toggle=xv,exports.Tooltip=({position:e="bottom",label:n,theme:r="dark",arrow:a=!0,trigger:o="mouseenter",interactive:c=!0,html:i=null,style:s={},children:l})=>t.createElement(t.Fragment,null,t.createElement(Ps,null),t.createElement(h.Tooltip,{title:n,position:e,theme:r,arrow:a,arrowSize:"regular",animateFill:!1,hideOnClick:"persistent",html:i,interactive:c,style:s,trigger:o,duration:150,delay:100},t.cloneElement(l))),exports.Transition=No,exports.UiProvider=({children:e})=>{const[r,a,o]=Go([]),[c,i]=t.useState(!1),s=e=>{const t=e(o.current);a(t)},l=e=>{const t=e();i(t)},h=t.useMemo((()=>({toasts:r,toastHovering:c,updateToasts:s,updateToastHoverStatus:l})),[r,c]);return n.createElement(wv.Provider,{value:h},n.createElement(n.Fragment,null,e,n.createElement(Av,null)))},exports.debounce=(e,t)=>{let n=0;return(...r)=>{clearTimeout(n),n=setTimeout((()=>e(...r)),t)}},exports.useConfirmation=(e=!1)=>{const[t,n,r]=Go(e);return{visible:t,setVisible:n,currentRef:r,bindings:{isOpen:t,onDismiss:()=>n(!1)}}},exports.useModal=(e=!1)=>{const[t,n,r]=Go(e);return{visible:t,setVisible:n,currentRef:r,bindings:{isOpen:t,onDismiss:()=>n(!1)}}},exports.useTheme=function(){const e=t.useContext(Xe);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e},exports.useToasts=()=>{const{updateToasts:e,toastHovering:n,toasts:r}=Hv(),[,a,o]=Go(n);t.useEffect((()=>a(n)),[n]);return[r,t=>{const n=`toast-${Vv()}`,r=t.delay||Dv,a=(t,n)=>{e((e=>e.map((e=>e.id!==t?e:{...e,willBeDestroy:!0})))),Iv.push(t),((t,n)=>{n<=Nv||(clearTimeout(Ov),Nv=n,Ov=window.setTimeout((()=>{e((e=>Iv.length<e.length?e:(Iv=[],[]))),clearTimeout(Ov)}),t+350))})(n,performance.now())};e((e=>[...e,{...t,id:n,delay:r,cancel:()=>a(n,r)}]));const c=(e,t)=>{const n=window.setTimeout((()=>{if(o.current)return c(e,t),clearTimeout(n);a(e,t),clearTimeout(n)}),t)};c(n,r)}]};
1474
+ `,Av=()=>{const e=((e=Vv())=>{const n=`ui-${e}`,{isBrowser:r}=Cv(),[a,o]=t.useState(r?kv(n):null);return t.useEffect((()=>{const e=document.querySelector(`#${n}`),t=e||kv(n);e||document.body.appendChild(t),o(t)}),[]),a})("toast"),[r,a]=t.useState(!1),o=t.useRef(),{toasts:i,updateToastHoverStatus:s}=Hv(),l=t.useMemo((()=>i.map(((e,t)=>n.createElement(Sv,{index:t,total:i.length,toast:e,onHover:r,key:`toast-${t}`})))),[i,r]),h=e=>{if(e)return o.current&&clearTimeout(o.current),s((()=>!0)),a(!0);o.current=window.setTimeout((()=>{a(!1),s((()=>!1)),o.current&&clearTimeout(o.current)}),200)};return e&&i&&0!==i.length?c.createPortal(n.createElement(_v,null,n.createElement("div",{className:"toast-container "+(r?"hover":""),onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1)},l)),e):null},Dv=2e3;let Ov,Iv=[],Nv=0;var Rv=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Pv}(e)}(e)};var Pv="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Tv(e,t){return!1!==t.clone&&t.isMergeableObject(e)?$v((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Fv(e,t,n){return e.concat(t).map((function(e){return Tv(e,n)}))}function jv(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Bv(e,t){try{return t in e}catch(e){return!1}}function Yv(e,t,n){var r={};return n.isMergeableObject(e)&&jv(e).forEach((function(t){r[t]=Tv(e[t],n)})),jv(t).forEach((function(a){(function(e,t){return Bv(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(Bv(e,a)&&n.isMergeableObject(t[a])?r[a]=function(e,t){if(!t.customMerge)return $v;var n=t.customMerge(e);return"function"==typeof n?n:$v}(a,n)(e[a],t[a],n):r[a]=Tv(t[a],n))})),r}function $v(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Fv,n.isMergeableObject=n.isMergeableObject||Rv,n.cloneUnlessOtherwiseSpecified=Tv;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Yv(e,t,n):Tv(t,n)}$v.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return $v(e,n,t)}),{})};var Wv=$v;exports.Alert=Dn,exports.BUTTON_SIZE_VARIANTS=ho,exports.BoxedRadio=Zm,exports.Button=po,exports.ButtonDropdown=Os,exports.Checkbox=fo,exports.Confirmation=Yo,exports.ConfirmationBody=Uo,exports.ConfirmationContent=$o,exports.ConfirmationFooter=Ko,exports.ConfirmationOverlay=Wo,exports.CssBaseLine=bo,exports.DatePicker=e=>{const{placeholder:t,name:r,isRequired:a,label:o,isErrored:c,errorText:i,id:s,monthYearLocation:l="start",disabled:h,displayFormat:u="YYYY-MM-DD",...p}=e;return n.createElement($m,{isErrored:c,id:`date-picker-container-${s||""}`},o&&n.createElement("label",null,o,a&&n.createElement("span",{className:"isRequired"},"*")),n.createElement(Ym,Object.assign({canClearSelection:!0,closeOnSelection:!0,disabled:h,fill:!0,highlightCurrentDay:!0,inputProps:{placeholder:t||u,name:r,id:s,disabled:h},dayPickerProps:{},popoverProps:{minimal:!0,placement:"bottom-start",usePortal:!1},parseDate:e=>e?xh(e).toDate():new Date,formatDate:e=>e?xh(e).format(u):""},p)),c&&i&&n.createElement("span",{className:"error"},i))},exports.DateTimePicker=e=>{const{placeholder:t,isErrored:r,isRequired:a,errorText:o,name:c,label:i,id:s,disabled:l,displayFormat:h="YYYY-MM-DD hh:mm A",...u}=e;return n.createElement($m,{isErrored:r,id:`datetime-picker-container-${s||""}`},i&&n.createElement("label",null,i,a&&n.createElement("span",{className:"isRequired"},"*")),n.createElement(Ym,Object.assign({canClearSelection:!0,closeOnSelection:!0,todayButtonText:"",disabled:l,showActionsBar:!0,highlightCurrentDay:!0,timePrecision:"minute",fill:!0,timePickerProps:{useAmPm:!0},inputProps:{placeholder:t||h,name:c,id:s,disabled:l},popoverProps:{minimal:!0,placement:"bottom-start",usePortal:!1},parseDate:e=>e?xh(e).toDate():new Date,formatDate:e=>e?xh(e).format(h):""},u)),r&&o&&n.createElement("span",{className:"error"},o))},exports.DismissIcon=rc,exports.Drawer=function(e){const{isOpen:n,onDismiss:r,hideDismissIcon:a,clickOutToClose:o=!0,size:c="default",placement:i="right",children:s,customClass:l,...h}=e;return t.createElement(ic,{in:n,placement:i},(e=>t.createElement(oc.Provider,{value:e},t.createElement(lc,{customClass:l,isOpen:!0,onDismiss:o?r:()=>{}},t.createElement(sc,{size:c},!a&&t.createElement(rc,{onClick:r},t.createElement(Vn,{glyph:"close",size:"12",viewBox:"-2 -2 10 10"})),s)))))},exports.DrawerBody=nc,exports.DrawerContent=sc,exports.DrawerFooter=ac,exports.DrawerOverlay=lc,exports.Dropdown=e=>{const{items:r,children:a,defaultSelectedItem:o,label:c="",placeholder:i,errorText:s,itemToString:l,itemComponent:h,onChange:u=(e=>e),type:p=Yl.BUTTON,filterKey:d,width:m="100%",disabled:v,isErrored:f,isRequired:g,overrideButtonStyles:b,overrideContainerStyles:z,isMenuLoading:y,...M}=e;let x;"object"!=typeof r[0]||l?x=e=>e?l?l(e):"object"!=typeof e?String(e):null:null:console.warn("Your items are objects. So you need to pass a function to translate each object as a string which can be shown as dropdown item labels");const w=t.useRef(null),H=t.useRef(null);return n.createElement("div",null,n.createElement(hi,Object.assign({itemToString:x,selectedItem:o,onChange:u},M),(e=>n.createElement(gh,Object.assign({width:m,isRequired:g},e.getRootProps()),c&&n.createElement("label",Object.assign({},e.getLabelProps()),c),n.createElement($l.Provider,{value:{downshift:e,items:r,filterKey:d,type:p,name:M.name}},a||n.createElement(n.Fragment,null,Yl.BUTTON===p&&n.createElement(Gl,{disabled:v,ref:w,isErrored:f,overrideStyles:b,placeholder:i}),Yl.INPUT===p&&n.createElement(vh,{ref:w,placeholder:i,isErrored:f,disabled:v}),n.createElement(Hl,{targetRef:w,position:El,ref:H},n.createElement(n.Fragment,null,n.createElement(ph,{anchorRef:w,popoverRef:H,itemComponent:h,isErrored:f,overrideStyles:z,isMenuLoading:y})))))))),f&&s&&n.createElement(fh,null,s))},exports.Fade=Po,exports.FreemiumUIProvider=function(e){const{theme:n,children:r}=e;return t.createElement(Je,{theme:n},t.createElement(bo,null),r)},exports.Glyph=Cn,exports.Icons=Vn,exports.InlineSvg=wn,exports.Input=Ws,exports.Loader=Il,exports.Menu=_s,exports.Modal=({children:e,isOpen:t,onDismiss:r,position:a="center",align:o="center",size:c="default"})=>n.createElement(Po,{timeout:300,in:t,unmountOnExit:!0},(i=>n.createElement(qo,{className:"modal-overlay",style:i,align:o,position:a,isOpen:!0,onDismiss:r},n.createElement(Bo,{timeout:150,in:t,unmountOnExit:!0},(t=>n.createElement(Qo,{className:"modal-content",style:t,size:c,"aria-label":"dialog"},e)))))),exports.ModalBody=ec,exports.ModalContent=Qo,exports.ModalFooter=tc,exports.ModalOverlay=qo,exports.MultiSelectDropdown=e=>{const{name:r,label:a,items:o,isMenuLoading:c,selectedItem:i,onChange:s,disabled:l=!1,customValues:h=!1,placeholder:u,isErrored:p,errorText:d,onCustomValueAdd:m,itemLabelIdentifier:v,itemValueIdentifier:f,isRequired:g,renderCustomSuggestion:b,maxAllowedLength:z=2147483647,...y}=e,[M,x]=t.useState([]),[w,H]=t.useState(""),[C,V]=t.useState(!1),k=t.useRef(null);t.useEffect((()=>{x([...i])}),[i]);const L=e=>{M.some((t=>t[f]===e[f]))?S(e):C||E(e)},E=e=>{H(""),x([...M,e]),s([...M,e])},S=e=>{const t=M.filter((t=>t[v]!==e[v]));x(t),s(t)},_=t.useRef(null),A=t.useRef(null),D=e=>b?b(e):(({item:e,lengthError:t,maxAllowedLength:r,itemProps:a,index:o,highlightedIndex:c,selectedItem:i,itemValueIdentifier:s,itemLabelIdentifier:l})=>{const h=c===o,u=i.some((t=>t[s]&&t[s]===e[s]));return n.createElement(jl,Object.assign({disabled:e.disabled},a,{key:o,isHighlighted:h,isSelected:u,isRemove:u&&e.customValues,lengthError:t}),n.createElement(so.Flex,{alignItems:"center",justifyContent:"space-between"},n.createElement("div",{className:"primary-text","data-testid":`suggested-item-${e[s]}`},t?`Length cannot be greater than ${r} characters`:e.customValues&&""!==e[l]?`Enter to ${u?"remove":"add"} '${e[l]}'`:e[l]),u&&!e.customValues&&n.createElement(Vn,{glyph:"check",size:12,viewBox:"0 0 8 8"})))})(e);return n.createElement("div",null,n.createElement(hi,Object.assign({selectedItem:i,onChange:e=>{e&&e.customValues&&m?m({[v]:e.label,[f]:e.value}):e&&L&&L(e)},itemToString:e=>e?e[f]:"",inputValue:w,onInputValueChange:(e="")=>{h&&e.length>z?V(!0):V(!1),H(e)}},y),(({getInputProps:t,getItemProps:i,getRootProps:s,inputValue:d,selectedItem:b,toggleMenu:y,isOpen:M,highlightedIndex:x})=>n.createElement(Bl,Object.assign({required:g},s()),a&&n.createElement("label",{htmlFor:a},a),n.createElement(Tl,{isOpen:M&&!l,isErrored:p,id:"dropdownField container","data-testid":`formik-multi-select-${a}`,onClick:()=>{M||k&&k.current&&k.current.focus(),y()},ref:_},n.createElement("div",{className:"items"},(({selectedItem:e,removeSelectedItem:t,itemLabelIdentifier:r})=>e&&e.length>0&&e.map(((e,a)=>e[r]&&n.createElement(Nl,{key:a,onCloseAction:n=>{n.stopPropagation(),t(e)}},e[r]))))({removeSelectedItem:S,selectedItem:b,itemLabelIdentifier:v}),(({label:e,name:t,isMenuLoading:r,searchRef:a,InputProps:o,items:c,placeholder:i,customValues:s})=>0!==c.length||r||s?n.createElement("input",Object.assign({name:t,size:25,"data-testid":`formik-multi-select-input-${e}`,ref:a,type:"text"},o,{placeholder:i})):null)({name:r,label:a||"",searchRef:k,selectedItem:b,removeSelectedItem:S,disabled:l,items:o,inputValue:d,placeholder:u||"",customValues:h,isMenuLoading:e.isMenuLoading,InputProps:{...t({disabled:l,onKeyDown:e=>{"Backspace"!==e.key||d||S(b[b.length-1]),"Enter"===e.key&&d&&h&&null===x&&(m?m({[v]:d,[f]:d}):L({[v]:d,[f]:d}))}})}})),n.createElement("div",{className:"svg-wrapper"},n.createElement(Vn,{size:"8",viewBox:"0 0 8 8",glyph:"chevron-down"}))),n.createElement(Hl,{targetRef:_,position:El,ref:A},n.createElement(Bo,{initialOffset:"-20px",timeout:200,in:M,unmountOnExit:!0},(e=>{const t=((e,t,n,r,a)=>{const o=t.filter((t=>t[n].toLowerCase().includes(e&&e.toLowerCase&&e.toLowerCase())));return 0==o.length&&a&&""!==e&&o.push({[r]:e,[n]:e,customValues:!0}),o})(d,o,v,f,h);return n.createElement(n.Fragment,null,c?n.createElement(Fl,{style:e},n.createElement("div",{className:"loader-wrapper"},n.createElement(Il,null))):t&&t.length>0&&n.createElement(Fl,{style:e},t.map(((e,t)=>D({lengthError:C,maxAllowedLength:z,item:e,index:t,itemProps:i({item:e,onClick:e=>e.stopPropagation(),disabled:e.disabled}),isActive:x===t,highlightedIndex:x,selectedItem:b,itemValueIdentifier:f,itemLabelIdentifier:v})))))})))))),p&&d&&n.createElement(Pl,null,d))},exports.Popover=dc,exports.Radio=Km,exports.Slide=jo,exports.SlideFade=Bo,exports.SvgWrapper=Hn,exports.Table=e=>{const{columns:t=[],data:r=[],count:a=0,perPage:o=10,pageNumber:c=1,indeterminateCount:i=!1,next:s=!1,previous:l=!1,showTopPagination:h=!0,showBottomPagination:u=!0,showSelectAllInTable:p=!1,showActions:d=!0,showSelections:m=!0,hideTableHeaderOnEmpty:f=!0,showFilters:g=!0,showOptions:b=!0,rowMenuOptions:z=(()=>[]),cellPropGetter:y,rowPropGetter:M,onRowSelect:x,onRowClick:w,emptyComponent:H,loadingComponent:C,onPrevious:V,onFirstClick:k,onLastClick:L,onPageClick:E,onSelectAll:S,onNext:_,onMenuOptionSelect:A,headerComponent:D,initialState:O={},filterComponent:I}=e,[N,R]=n.useState(g),[P,T]=n.useState(null),{getTableProps:F,getTableBodyProps:j,headerGroups:B,rows:Y,setColumnOrder:$,setHiddenColumns:W,flatRows:U,prepareRow:K,getToggleAllRowsSelectedProps:G}=v.useTable({columns:t,data:r,initialState:O,useControlledState:e=>n.useMemo((()=>({...e,selectedRowIds:O.selectedRowIds||{}})),[O.selectedRowIds,e])},v.useRowSelect,v.useColumnOrder,(e=>{e.visibleColumns.push((e=>m?[{id:"selection",disableResizing:!0,width:50,Header:({getToggleAllRowsSelectedProps:e,toggleAllRowsSelected:t})=>p?n.createElement("div",{className:"table-checkbox"},n.createElement(fo,Object.assign({id:"selectAll",name:"selectAll"},e(),{onChange:(e,n)=>{if(n){const e={};Y&&Y.length>0&&Y.forEach((t=>{e[t.id]=!0})),x&&x(e,U)}else x&&x({},U);S&&S(n),t(n)}}))):n.createElement("div",null),Cell:e=>{const{row:t}=e;return n.createElement("div",{className:"table-checkbox"},n.createElement(fo,Object.assign({id:"selectRow",name:"selectRow"},t.getToggleRowSelectedProps(),{onChange:(e,n)=>{t.toggleRowSelected(n),x&&x({...O.selectedRowIds,[t.id]:n},U)}})))}},...e]:[...e]))})),q=[];for(let e=0;e<Math.ceil(a/o);e++)q.push(e+1);return v.useMountedLayoutEffect((()=>{O&&O.columnOrder&&$(O.columnOrder)}),[O.columnOrder]),v.useMountedLayoutEffect((()=>{O&&O.hiddenColumns&&W(O.hiddenColumns)}),[O.hiddenColumns]),n.createElement(Qm,{className:"fui-table"},d&&n.createElement(tv,{className:"table-actions"},n.createElement("div",{className:"action"},!p&&m&&n.createElement(fo,Object.assign({id:"selectAll",name:"selectAll"},G()),"Select All")),D||void 0,n.createElement("div",{className:"pagination-actions"},h&&n.createElement(n.Fragment,null,n.createElement("div",{className:"pagination-text"},C?n.createElement(Il,{size:"small"}):n.createElement(n.Fragment,null,a>0?`${(c-1)*o+(r.length>0?1:0)} - ${(c-1)*o+r.length} of ${i?""+(r.length>0?"Many":"-"):a}`:null)),n.createElement(po,{type:"secondary",disabled:!l||Boolean(C),onClick:()=>V&&V(c-1)},n.createElement(Vn,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"})),n.createElement(po,{type:"secondary",disabled:!s||Boolean(C),onClick:()=>_&&_(c+1)},n.createElement(Vn,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"}))),g&&n.createElement(po,{type:"secondary",className:"filter-toggle",onClick:()=>R(!N)},n.createElement(Vn,{glyph:N?"collapse":"expand",size:12,viewBox:"0 0 14 14"}))))," ",n.createElement(hv,{className:"table-content"},n.createElement(ev,{showFilters:g&&N,className:"table-wrapper"},C?n.createElement(n.Fragment,null,C):n.createElement(n.Fragment,null,f&&0===Y.length?n.createElement(n.Fragment,null,H):n.createElement(nv,Object.assign({},F()),n.createElement(ov,null,B.map((e=>{const{getHeaderGroupProps:t,headers:r}=e;return n.createElement(rv,Object.assign({},t(),{className:"header-row"}),r.map((e=>{const{getHeaderProps:t,render:r}=e;return n.createElement(sv,Object.assign({},t()),r("Header"))})),b&&n.createElement(sv,null))}))),n.createElement(iv,Object.assign({},j()),Y.length>0?Y.map((e=>{K(e);const{getRowProps:t,cells:r}=e;return n.createElement(rv,Object.assign({},t(M?M(e):{}),{className:e.isSelected?"selected":""}),r.map((e=>{const{getCellProps:t,render:r}=e;return n.createElement(lv,Object.assign({},t(y?y(e):{}),{onClick:()=>{"selection"!==e.column.id&&w&&w(e.row,e.column)}}),r("Cell"))})),b&&n.createElement(lv,null,z&&z(e.original).length>0&&n.createElement(n.Fragment,null,n.createElement(pv,{"aria-describedby":`row-popover-${e.id}`,onClick:e=>T(e.currentTarget)},n.createElement(Vn,{glyph:"more-vertical",size:12,viewBox:"0 0 4 16"})),n.createElement(dc,{id:`row-popover-${e.id}`,anchorEl:P,onClose:()=>T(null),anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}},n.createElement(_s,{options:z(e.original)||[],onSelect:t=>{A&&A(t.id,e.original),T(null)},closeMenuCallback:()=>T(null)})))))})):n.createElement(n.Fragment,null,H)),u&&n.createElement(cv,null,n.createElement("tr",null,n.createElement("td",{colSpan:t.length-(O&&O.hiddenColumns&&O.hiddenColumns.length||0)+(m?1:0)+(z&&z().length>0?1:0)},n.createElement(av,{className:"table-pagination"},Math.ceil(a/o)>10&&n.createElement(po,{type:"secondary",disabled:1===c,onClick:()=>k&&k(1)},n.createElement(Vn,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"}),n.createElement(Vn,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"})),n.createElement(po,{type:"secondary",disabled:1===c,onClick:()=>V&&V(c-1)},n.createElement(Vn,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"})),c>3&&n.createElement(n.Fragment,null,n.createElement(po,{type:"secondary",onClick:()=>E&&E(1)},"1"),c-3!=1&&n.createElement(po,{type:"secondary",disabled:!0},"...")),q.map((e=>[e-2,e-1,e,e+1,e+2].includes(c)&&n.createElement(po,{type:"secondary",className:c===e?"active":"",onClick:()=>E&&E(e)},e))),c<Math.ceil(a/o)-2&&n.createElement(n.Fragment,null,c+3!==Math.ceil(a/o)&&n.createElement(po,{type:"secondary",disabled:!0},"..."),n.createElement(po,{type:"secondary",onClick:()=>E&&E(Math.ceil(a/o))},Math.ceil(a/o))),n.createElement(po,{type:"secondary",disabled:c===Math.ceil(a/o),onClick:()=>_&&_(c+1)},n.createElement(Vn,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"})),Math.ceil(a/o)>10&&n.createElement(po,{type:"secondary",disabled:c===Math.ceil(a/o),onClick:()=>L&&L(Math.ceil(a/o))},n.createElement(Vn,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"}),n.createElement(Vn,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"}))))))))),g&&N&&I&&n.createElement(uv,{className:"table-filters"},I)))},exports.Tabs=e=>{const{value:t,onChange:r=(()=>{}),idAccessor:a="id",nameAccessor:o="name",options:c=[],ref:i=null}=e;return n.createElement(dv,{ref:i,role:"tablist"},c.map((e=>!e.hide&&n.createElement(mv,{"aria-disabled":Boolean(e.disabled),tabIndex:t===e[a]?-1:0,role:"tab",className:`${e.disabled?"disabled":""} ${t===e[a]?"selected":""}`.trim(),onClick:t=>!e.disabled&&r(t,e),id:e[a],key:e[a]},n.createElement("span",{className:"label"}," ",e[o])))))},exports.Tag=Nl,exports.TextArea=Us,exports.ThemeProvider=function(e){const{children:n,theme:r={},globalStyle:a=!0}=e,o=Wv(go,r);return t.createElement(Je,{theme:o},a&&t.createElement(bo,null),n)},exports.TimePicker=e=>{const{placeholder:t,name:r,label:a,id:o,disabled:c,errorText:i,isErrored:s,isRequired:l,...h}=e;return n.createElement($m,{isErrored:s,id:`time-picker-container-${o||""}`},a&&n.createElement("label",null,a,l&&n.createElement("span",{className:"isRequired"},"*")),n.createElement(Tm,Object.assign({precision:"minute",useAmPm:!0,disabled:c},h)),s&&i&&n.createElement("span",{className:"error"},i))},exports.ToastWrapper=e=>{const[r,a]=t.useState([]),[o,c]=t.useState(0),[s,l]=t.useState(!1),h=e=>{a(r.filter((t=>t.id!==e)))};return t.useEffect((()=>{r.length||l(!1)}),[r]),n.createElement(fv.Provider,{value:{pushToast:e=>{const t={...e,id:o};c(o+1),a([t,...r])},closeToast:h}},e.children,i.createPortal(n.createElement(zv,{length:r.length,isHovering:s,onMouseOver:()=>{l(!0)},onMouseLeave:()=>{l(!1)}},r.map(((e,t)=>n.createElement(gv,{key:e.id,index:t,toast:e,closeToast:h,isHovering:s})))," "),document.body))},exports.Toggle=xv,exports.Tooltip=({position:e="bottom",label:n,theme:r="dark",arrow:a=!0,trigger:o="mouseenter",interactive:c=!0,html:i=null,style:s={},children:l})=>t.createElement(t.Fragment,null,t.createElement(Ps,null),t.createElement(h.Tooltip,{title:n,position:e,theme:r,arrow:a,arrowSize:"regular",animateFill:!1,hideOnClick:"persistent",html:i,interactive:c,style:s,trigger:o,duration:150,delay:100},t.cloneElement(l))),exports.Transition=No,exports.UiProvider=({children:e})=>{const[r,a,o]=Go([]),[c,i]=t.useState(!1),s=e=>{const t=e(o.current);a(t)},l=e=>{const t=e();i(t)},h=t.useMemo((()=>({toasts:r,toastHovering:c,updateToasts:s,updateToastHoverStatus:l})),[r,c]);return n.createElement(wv.Provider,{value:h},n.createElement(n.Fragment,null,e,n.createElement(Av,null)))},exports.debounce=(e,t)=>{let n=0;return(...r)=>{clearTimeout(n),n=setTimeout((()=>e(...r)),t)}},exports.useConfirmation=(e=!1)=>{const[t,n,r]=Go(e);return{visible:t,setVisible:n,currentRef:r,bindings:{isOpen:t,onDismiss:()=>n(!1)}}},exports.useModal=(e=!1)=>{const[t,n,r]=Go(e);return{visible:t,setVisible:n,currentRef:r,bindings:{isOpen:t,onDismiss:()=>n(!1)}}},exports.useTheme=function(){const e=t.useContext(Xe);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e},exports.useToasts=()=>{const{updateToasts:e,toastHovering:n,toasts:r}=Hv(),[,a,o]=Go(n);t.useEffect((()=>a(n)),[n]);return[r,t=>{const n=`toast-${Vv()}`,r=t.delay||Dv,a=(t,n)=>{e((e=>e.map((e=>e.id!==t?e:{...e,willBeDestroy:!0})))),Iv.push(t),((t,n)=>{n<=Nv||(clearTimeout(Ov),Nv=n,Ov=window.setTimeout((()=>{e((e=>Iv.length<e.length?e:(Iv=[],[]))),clearTimeout(Ov)}),t+350))})(n,performance.now())};e((e=>[...e,{...t,id:n,delay:r,cancel:()=>a(n,r)}]));const c=(e,t)=>{const n=window.setTimeout((()=>{if(o.current)return c(e,t),clearTimeout(n);a(e,t),clearTimeout(n)}),t)};c(n,r)}]};
package/lib/index.esm.js CHANGED
@@ -265,7 +265,7 @@ object-assign
265
265
  align-items: ${({align:e})=>Hc[e]};
266
266
  z-index: 10;
267
267
  background-color: ${e=>e.theme.colors.components.modal.overlayBackground};
268
- `,Hc={top:"baseline",center:"center",bottom:"end"},Vc={center:"center",left:"flex-start",right:"flex-end"},Cc={default:"512px",small:"424px",medium:"600px",large:"800px","x-large":"920px"},kc=Et(cc)`
268
+ `,Hc={top:"baseline",center:"center",bottom:"end"},Vc={center:"center",left:"flex-start",right:"flex-end"},Cc={default:"512px",small:"424px",medium:"600px",large:"800px","x-large":"1200px"},kc=Et(cc)`
269
269
  width: ${({size:e})=>Cc[e]};
270
270
  background: #fff;
271
271
  box-shadow: 0 2px 18px 0 rgba(18, 52, 77, 0.2);
@@ -337,7 +337,7 @@ object-assign
337
337
  &.selected {
338
338
  background-color: ${({theme:{colors:{components:{menu:{menuItem:{selected:e}}}}}})=>e.background};
339
339
  }
340
- `,dl=e.forwardRef(((t,n)=>{const{id:r,position:a="bottom",idAccessor:o="id",nameAccessor:c="name",inline:i=!0,defaultSelectedItem:s={},size:l="normal",type:h="primary",onClick:p=(()=>{}),items:d=[]}=t,[u,m]=e.useState(null);return e.createElement(ul,null,e.createElement(Fo,{overrideStyleClassName:"nopadding",ref:n,inline:i,size:l,type:h,onClick:e=>{p(s,e)}},e.createElement("div",null,s[c]),e.createElement(vl,{"aria-describedby":r,onClick:e=>{e.stopPropagation(),m(e.currentTarget)}},e.createElement(er,{size:"8",viewBox:"0 0 8 8",glyph:"top"===a?"chevron-up":"chevron-down"}))),e.createElement(Wc,{id:r,anchorEl:u,onClose:()=>m(null),anchorOrigin:{vertical:"bottom"===a?"bottom":"top",horizontal:"right"},transformOrigin:{vertical:"bottom"===a?"top":"bottom",horizontal:"right"}},e.createElement(ml,null,e.createElement(ll,{idAccessor:o,nameAccessor:c,options:d.filter((e=>e[o]!==s[o])),onSelect:e=>{p(e),m(null)}}))))})),ul=Et.div`
340
+ `,dl=e.forwardRef(((t,n)=>{const{id:r,position:a="bottom",idAccessor:o="id",nameAccessor:c="name",inline:i=!0,defaultSelectedItem:s={},size:l="normal",type:h="primary",onClick:p=(()=>{}),items:d=[]}=t,[u,m]=e.useState(null);return e.createElement(ul,null,e.createElement(Fo,{overrideStyleClassName:"nopadding",ref:n,inline:i,size:l,type:h,onClick:e=>{p(s,e)}},e.createElement("div",null,s[c]),d&&d.length>1&&e.createElement(vl,{"aria-describedby":r,onClick:e=>{e.stopPropagation(),m(e.currentTarget)}},e.createElement(er,{size:"8",viewBox:"0 0 8 8",glyph:"top"===a?"chevron-up":"chevron-down"}))),e.createElement(Wc,{id:r,anchorEl:u,onClose:()=>m(null),anchorOrigin:{vertical:"bottom"===a?"bottom":"top",horizontal:"right"},transformOrigin:{vertical:"bottom"===a?"top":"bottom",horizontal:"right"}},e.createElement(ml,null,e.createElement(ll,{idAccessor:o,nameAccessor:c,options:d.filter((e=>e[o]!==s[o])),onSelect:e=>{p(e),m(null)}}))))})),ul=Et.div`
341
341
  & > button.nopadding {
342
342
  display: flex;
343
343
  padding: 0 !important;
@@ -930,7 +930,18 @@ object-assign
930
930
  border: unset;
931
931
  resize: none;
932
932
  ${({theme:{colors:{components:{input:e}},typography:t,layout:{radius:n}},isErrored:r})=>`\n font-size : ${t.input.textarea.fontSize};\n line-height: ${t.input.textarea.lineHeight};\n font-weight: ${t.input.textarea.fontWeight};\n border-radius: ${n};\n &::placeholder {\n color : ${e.primary.hoverBorderColor};\n }\n`}
933
- `,xl=s(((t,n)=>{const{inputStyle:r,style:a,disabled:o,className:c,...i}=t;return e.createElement(zl,{isRequired:t.isRequired,inline:t.inline,isErrored:t.isErrored,style:a},t.label&&e.createElement("label",{className:"input-label"},t.label),e.createElement("div",{className:"input-container"},t.startLabel&&e.createElement("div",{className:"start-label"},t.startLabel),e.createElement("div",{className:`input-basic ${c||""}`},t.startAdornment&&e.createElement("div",{className:"start-adornment"},t.startAdornment),e.createElement(yl,Object.assign({autoComplete:"off"},i,{ref:n,disabled:o,style:r})),t.showCount&&t.maxLength&&t.maxLength>0&&e.createElement("div",{className:"end-max-length"},`${t.value&&t.value.length||0}/${t.maxLength}`),t.endAdornment&&e.createElement("div",{className:"end-adornment"},t.endAdornment)),t.endLabel&&e.createElement("div",{className:"end-label"},t.endLabel)),t.isErrored&&t.errorText&&e.createElement("span",{className:"input-helper"},t.errorText))})),wl=s(((t,n)=>{const{inputStyle:r,style:a,className:o,...c}=t;return e.createElement(zl,{isRequired:t.isRequired,inline:t.inline,isErrored:t.isErrored,style:a},t.label&&e.createElement("label",{className:"input-label"},t.label),e.createElement("div",{className:"input-container"},t.startLabel&&e.createElement("div",{className:"start-label"},t.startLabel),e.createElement("div",{className:`input-basic ${o||""}`},t.startAdornment&&e.createElement("div",{className:"start-adornment"},t.startAdornment),e.createElement(Ml,Object.assign({autoComplete:"off"},c,{ref:n,style:r})),t.endAdornment&&e.createElement("div",{className:"end-adornment"},t.endAdornment)),t.endLabel&&e.createElement("div",{className:"end-label"},t.endLabel)),t.isErrored&&t.errorText&&e.createElement("span",{className:"input-helper"},t.errorText))})),Hl=Dt(xl,bl),Vl=Dt(wl,bl),Cl=t=>e.createElement(kl,null,t.children,e.createElement("span",{onClick:e=>t.onCloseAction(e)}," ",e.createElement(er,{size:"12",viewBox:"0 -3 10 10",glyph:"close"}))),kl=Et.div`
933
+ `,xl=s(((t,n)=>{const{inputStyle:r,style:a,disabled:o,className:c,...i}=t;return e.createElement(zl,{isRequired:t.isRequired,inline:t.inline,isErrored:t.isErrored,style:a},t.label&&e.createElement("label",{className:"input-label"},t.label),e.createElement("div",{className:"input-container"},t.startLabel&&e.createElement("div",{className:"start-label"},t.startLabel),e.createElement("div",{className:`input-basic ${c||""}`},t.startAdornment&&e.createElement("div",{className:"start-adornment"},t.startAdornment),e.createElement(yl,Object.assign({autoComplete:"off"},i,{ref:n,disabled:o,style:r})),t.showCount&&t.maxLength&&t.maxLength>0&&e.createElement("div",{className:"end-max-length"},`${t.value&&t.value.length||0}/${t.maxLength}`),t.endAdornment&&e.createElement("div",{className:"end-adornment"},t.endAdornment)),t.endLabel&&e.createElement("div",{className:"end-label"},t.endLabel)),t.isErrored&&t.errorText&&e.createElement("span",{className:"input-helper"},t.errorText))})),wl=s(((t,n)=>{const{inputStyle:r,style:a,className:o,...c}=t;return e.createElement(zl,{isRequired:t.isRequired,inline:t.inline,isErrored:t.isErrored,style:a},t.label&&e.createElement("label",{className:"input-label"},t.label),e.createElement("div",{className:"input-container"},t.startLabel&&e.createElement("div",{className:"start-label"},t.startLabel),e.createElement("div",{className:`input-basic ${o||""}`},t.startAdornment&&e.createElement("div",{className:"start-adornment"},t.startAdornment),e.createElement(Ml,Object.assign({autoComplete:"off"},c,{ref:n,style:r})),t.endAdornment&&e.createElement("div",{className:"end-adornment"},t.endAdornment)),t.endLabel&&e.createElement("div",{className:"end-label"},t.endLabel)),t.isErrored&&t.errorText&&e.createElement("span",{className:"input-helper"},t.errorText))})),Hl=Dt(xl,bl),Vl=Dt(wl,bl);function Cl(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var kl=Cl()?v:h;var Ll="production"===process.env.NODE_ENV;function El(e,t){if(!Ll){if(e)return;var n="Warning: "+t;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}}var Sl=function(e){var t,n=e.children,a=e.type,c=void 0===a?"reach-portal":a,i=e.containerRef,s=r(null),d=r(null),u=(t=l(Object.create(null))[1],p((function(){t(Object.create(null))}),[]));return"production"!==process.env.NODE_ENV&&h((function(){null!=i&&("production"!==process.env.NODE_ENV&&El("object"==typeof i&&"current"in i,"@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."),"production"!==process.env.NODE_ENV&&El(!i||null!=i.current,"@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."))}),[i]),kl((function(){if(s.current){var e=s.current.ownerDocument,t=(null==i?void 0:i.current)||e.body;return d.current=null==e?void 0:e.createElement(c),t.appendChild(d.current),u(),function(){d.current&&t&&t.removeChild(d.current)}}}),[c,u,i]),d.current?C(n,d.current):o("span",{ref:s})};"production"!==process.env.NODE_ENV&&(Sl.displayName="Portal");var _l,Al=["bottom","height","left","right","top","width"],Dl=new Map,Ol=function e(){var t=[];Dl.forEach((function(e,n){var r=n.getBoundingClientRect();(function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),Al.some((function(n){return e[n]!==t[n]}))})(r,e.rect)&&(e.rect=r,t.push(e))})),t.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),_l=window.requestAnimationFrame(e)};function Il(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Nl=Il()?v:h;function Pl(e){return"boolean"==typeof e}function Tl(e){return!(!e||"[object Function]"!={}.toString.call(e))}var Rl=function(e){var t=e.onChange,n=e.observe,a=void 0===n||n,o=e.children,c=r(null);return o({ref:c,rect:Fl(c,{observe:a,onChange:t})})};function Fl(e,t,n){var a,o,c;Pl(t)?a=t:(a=null==(c=null==t?void 0:t.observe)||c,o=null==t?void 0:t.onChange);Tl(n)&&(o=n),"production"!==process.env.NODE_ENV&&(h((function(){"production"!==process.env.NODE_ENV&&El(!Pl(t),"Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")}),[t]),h((function(){"production"!==process.env.NODE_ENV&&El(!Tl(n),"Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")}),[n]));var i=l(e.current),s=i[0],p=i[1],d=r(!1),u=r(!1),m=l(null),v=m[0],f=m[1],g=r(o);return Nl((function(){g.current=o,e.current!==s&&p(e.current)})),Nl((function(){s&&!d.current&&(d.current=!0,f(s.getBoundingClientRect()))}),[s]),Nl((function(){if(a){var t=s;if(u.current||(u.current=!0,t=e.current),t){var n,r,o=(n=t,r=function(e){null==g.current||g.current(e),f(e)},{observe:function(){var e=0===Dl.size;Dl.has(n)?Dl.get(n).callbacks.push(r):Dl.set(n,{rect:void 0,hasRectChanged:!1,callbacks:[r]}),e&&Ol()},unobserve:function(){var e=Dl.get(n);if(e){var t=e.callbacks.indexOf(r);t>=0&&e.callbacks.splice(t,1),e.callbacks.length||Dl.delete(n),Dl.size||cancelAnimationFrame(_l)}}});return o.observe(),function(){o.unobserve()}}"production"!==process.env.NODE_ENV&&console.warn("You need to place the ref")}}),[a,s,e]),v}function jl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yl(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return jl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function Bl(e,t){if(null!=e)if(function(e){return!(!e||"[object Function]"!={}.toString.call(e))}(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}"production"!==process.env.NODE_ENV&&(Rl.displayName="Rect",Rl.propTypes={children:_o.func.isRequired,observe:_o.bool,onChange:_o.func});var $l=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],Wl=$l.join(","),Ul="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function Kl(e,t){t=t||{};var n,r,a,o=[],c=[],i=e.querySelectorAll(Wl);for(t.includeContainer&&Ul.call(e,Wl)&&(i=Array.prototype.slice.apply(i)).unshift(e),n=0;n<i.length;n++)Gl(r=i[n])&&(0===(a=Xl(r))?o.push(r):c.push({documentOrder:n,tabIndex:a,node:r}));return c.sort(Jl).map((function(e){return e.node})).concat(o)}function Gl(e){return!(!ql(e)||function(e){return function(e){return Ql(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||Xl(e)<0)}function ql(e){return!(e.disabled||function(e){return Ql(e)&&"hidden"===e.type}(e)||function(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}(e))}Kl.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==Ul.call(e,Wl)&&Gl(e)},Kl.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==Ul.call(e,Zl)&&ql(e)};var Zl=$l.concat("iframe").join(",");function Xl(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function Jl(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function Ql(e){return"INPUT"===e.tagName}var eh=Kl;function th(){return th=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},th.apply(this,arguments)}var nh=["as","targetRef","position","unstable_observableRefs"],rh=s((function(e,t){return o(Sl,null,o(ah,th({ref:t},e)))}));"production"!==process.env.NODE_ENV&&(rh.displayName="Popover");var ah=s((function(e,t){var n=e.as,a=void 0===n?"div":n,c=e.targetRef,i=e.position,s=void 0===i?ih:i,l=e.unstable_observableRefs,d=void 0===l?[]:l,u=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,nh),m=r(null),v=Fl(m,{observe:!u.hidden}),f=Fl(c,{observe:!u.hidden}),g=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p((function(e){for(var n,r=Yl(t);!(n=r()).done;)Bl(n.value,e)}),t)}(m,t);return function(e,t){var n=(r=e.current,Cl()?r?r.ownerDocument:document:null);var r;function a(e){"Tab"===e.key&&t.current&&0===eh(t.current).length||("Tab"===e.key&&e.shiftKey?p(e)?d(e):u(e)?m(e):f(e)&&b():"Tab"===e.key&&(c()?i(e):s()?l(e):v(e)&&b()))}function o(){var r=eh(n),a=r&&e.current?r.indexOf(e.current):-1,o=r&&r[a+1];return(!t.current||!t.current.contains(o||null))&&o}function c(){return!!e.current&&e.current===n.activeElement}function i(e){var n=t.current&&eh(t.current);n&&n[0]&&(e.preventDefault(),n[0].focus())}function s(){if(!!t.current&&t.current.contains(n.activeElement||null)){var e=t.current&&eh(t.current);return Boolean(e&&e[e.length-1]===n.activeElement)}return!1}function l(e){var t=o();t&&(e.preventDefault(),t.focus())}function p(e){if(e.shiftKey){var t=o();return e.target===t}}function d(e){var n=t.current&&eh(t.current),r=n&&n[n.length-1];r&&(e.preventDefault(),r.focus())}function u(e){var n=t.current&&eh(t.current);return!!n&&(0!==n.length&&e.target===n[0])}function m(t){var n;t.preventDefault(),null==(n=e.current)||n.focus()}function v(e){var r=t.current?eh(n).filter((function(e){return!t.current.contains(e)})):null;return!!r&&e.target===r[r.length-1]}function f(e){return e.target===eh(n)[0]}h((function(){return n.addEventListener("keydown",a),function(){n.removeEventListener("keydown",a)}}),[]);var g=[];function b(){var e=t.current&&eh(t.current);e&&(e.forEach((function(e){g.push([e,e.tabIndex]),e.tabIndex=-1})),n.addEventListener("focusin",z))}function z(){n.removeEventListener("focusin",z),g.forEach((function(e){var t=e[0],n=e[1];t.tabIndex=n}))}}(c,m),o(a,th({"data-reach-popover":"",ref:g},u,{style:th({position:"absolute"},oh.apply(void 0,[s,f,v].concat(d)),u.style)}))}));function oh(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),o=3;o<r;o++)a[o-3]=arguments[o];return n?e.apply(void 0,[t,n].concat(a.map((function(e){return e.current})))):{visibility:"hidden"}}function ch(e,t,n){return{top:n?e.top-t.height+window.pageYOffset+"px":e.top+e.height+window.pageYOffset+"px"}}"production"!==process.env.NODE_ENV&&(ah.displayName="PopoverImpl");var ih=function(e,t){if(!e||!t)return{};var n=lh(e,t),r=n.directionRight,a=n.directionUp;return th({left:r?e.right-t.width+window.pageXOffset+"px":e.left+window.pageXOffset+"px"},ch(e,t,a))},sh=function(e,t){if(!e||!t)return{};var n=lh(e,t).directionUp;return th({width:e.width,left:e.left},ch(e,t,n))};function lh(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var a={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0};return{directionRight:a.right&&!a.left,directionLeft:a.left&&!a.right,directionUp:a.bottom&&!a.top,directionDown:a.top&&!a.bottom}}const hh={small:16,medium:32,big:40},ph=At`
934
+ to { transform: rotate(360deg); }
935
+ `,dh={small:3,medium:3,big:6},uh=Et.div`
936
+ position: relative;
937
+ border: ${({size:e})=>dh[e]}px solid #f3f3f3;
938
+ border-radius: 50%;
939
+ border-top: ${({size:e})=>dh[e]}px solid
940
+ ${({invert:e,theme:{colors:{primary:t,white:n}}})=>e?n:t};
941
+ width: ${({size:e})=>hh[e]}px;
942
+ height: ${({size:e})=>hh[e]}px;
943
+ animation: ${ph} 0.7s linear infinite;
944
+ `,mh=t=>{const{size:n="medium",invert:r=!1}=t;return e.createElement(uh,{className:"fui-loader",invert:r,size:n})},vh=t=>e.createElement(fh,null,t.children,e.createElement("span",{onClick:e=>t.onCloseAction(e)}," ",e.createElement(er,{size:"12",viewBox:"0 -3 10 10",glyph:"close"}))),fh=Et.div`
934
945
  line-height: 1.4;
935
946
  background-color: #ebeff3;
936
947
  font-size: 12px;
@@ -957,18 +968,18 @@ object-assign
957
968
  cursor: pointer;
958
969
  }
959
970
  }
960
- `,Ll=Et.div`
971
+ `,gh=Et.div`
961
972
  display: block;
962
973
  padding-left: 2px;
963
974
  padding-top: 4px;
964
975
  font-size: ${({theme:{colors:{errorText:e},typography:{body:t}}})=>t.errorText.fontSize};
965
976
  color: ${({theme:{colors:{errorText:e}}})=>e.primary};
966
- `,El=Et.div`
977
+ `,bh=Et.div`
967
978
  ${({theme:{palette:e,colors:{components:{input:t},border:n,pseudo:r}},isErrored:a,isOpen:o})=>`\n background-color: #fff;\n position : relative;\n box-shadow: none;\n min-height: 38px;\n border-radius: 4px;\n padding: 4px 8px;\n border: 1px solid ${a?n.error:t.primary.borderColor};\n display: flex;\n align-items: center;\n .svg-wrapper {\n transition: transform ease-in 0.2s;\n transform: ${o?"rotate(180deg)":"rotate(0deg)"};\n }\n .items {\n display : flex;\n align-items : center;\n flex-wrap: wrap;\n width: 100%;\n }\n &:hover {\n border-color : ${a?n.error:t.primary.hoverBorderColor};\n transition: 0.2s linear;\n }\n &:focus-within {\n border: 1px solid ${a?n.error:"transparent"};\n box-shadow : 0 0 0 2px ${a?"none":r.focus};\n }\n input {\n flex-grow: 1;\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0px;\n background-color: #fff;\n min-width: 100px;\n box-sizing: border-box;\n border: none;\n overflow: hidden;\n padding : 0;\n margin : 2px;\n ::placeholder,\n ::-webkit-input-placeholder {\n color: ${e.S300}\n }\n :-ms-input-placeholder {\n color: ${e.S300}\n }\n }\n `}
968
- `,Sl=Et.div`
969
- position: absolute;
979
+ `,zh=Et.div`
970
980
  z-index: 1000;
971
981
  width: 100%;
982
+ min-width: 160px;
972
983
  left: 0;
973
984
  height: auto;
974
985
  max-height: 200px;
@@ -979,22 +990,16 @@ object-assign
979
990
  margin-top: 4px;
980
991
  box-shadow: 0 2px 4px 0 rgba(18, 52, 77, 0.06),
981
992
  0 2px 18px 0 rgba(18, 52, 77, 0.16);
982
- `,_l=Et.div`
993
+ .loader-wrapper {
994
+ display: flex;
995
+ justify-content: center;
996
+ padding: 20px;
997
+ }
998
+ `,yh=Et.div`
983
999
  ${({theme:{colors:e,typography:{body:t}},isHighlighted:n,isSelected:r,disabled:a,isRemove:o,lengthError:c})=>`\n .primary-text {\n font-size : ${t.regular.fontSize};\n line-height : ${t.regular.lineHeight};\n color: ${o||c?e.text.error:r?n?e.text.primary:e.text.link:a?e.text.disabled:e.text.primary};\n font-weight : ${r?"500":"400"};\n display: block;\n }\n padding : 8px;\n margin : 8px;\n border-radius: 4px;\n overflow-wrap : break-word; \n background: ${o?"none":r?e.background.selected:n?e.background.hover:"none"};\n :hover {\n cursor: ${a?"not-allowed":"pointer"};\n } \n `}
984
- `,Al=Et.div`
1000
+ `,Mh=Et.div`
985
1001
  ${({required:e,theme:{colors:{text:t},typography:{body:n,input:r}}})=>`\n position : relative;\n label {\n display : inline-block;\n font-weight: ${n.label.fontWeight};\n font-size: ${n.label.fontSize};\n line-height: ${n.label.lineHeight};\n text-transform: capitalize;\n padding-left: 2px;\n margin-bottom : 8px;\n ${e?`&::after {\n content: '*';\n position: relative;\n top: 2px;\n font-weight: ${n.requiredLabel.fontWeight};\n font-size: ${n.requiredLabel.fontSize};\n color : ${t.error};\n padding-left: 3px;\n }`:""};\n }\n `}
986
- `,Dl=t=>{const{name:n,label:a,items:o,selectedItem:c,onChange:i,disabled:s=!1,customValues:p=!1,placeholder:d,isErrored:u,errorText:m,onCustomValueAdd:v,itemLabelIdentifier:f,itemValueIdentifier:g,isRequired:b,renderCustomSuggestion:z,maxAllowedLength:y=2147483647,...M}=t,[x,w]=l([]),[H,V]=l(""),[C,k]=l(!1),L=r(null);h((()=>{w([...c])}),[c]);const E=e=>{x.some((t=>t[g]===e[g]))?_(e):C||S(e)},S=e=>{V(""),w([...x,e]),i([...x,e])},_=e=>{const t=x.filter((t=>t[f]!==e[f]));w(t),i(t)},A=t=>z?z(t):(({item:t,lengthError:n,maxAllowedLength:r,itemProps:a,index:o,highlightedIndex:c,selectedItem:i,itemValueIdentifier:s,itemLabelIdentifier:l})=>{const h=c===o,p=i.some((e=>e[s]&&e[s]===t[s]));return e.createElement(_l,Object.assign({disabled:t.disabled},a,{key:o,isHighlighted:h,isSelected:p,isRemove:p&&t.customValues,lengthError:n}),e.createElement(No.Flex,{alignItems:"center",justifyContent:"space-between"},e.createElement("div",{className:"primary-text","data-testid":`suggested-item-${t[s]}`},n?`Length cannot be greater than ${r} characters`:t.customValues&&""!==t[l]?`Enter to ${p?"remove":"add"} '${t[l]}'`:t[l]),p&&!t.customValues&&e.createElement(er,{glyph:"check",size:12,viewBox:"0 0 8 8"})))})(t);return e.createElement("div",null,e.createElement(Yi,Object.assign({selectedItem:c,onChange:e=>{e&&e.customValues&&v?v({[f]:e.label,[g]:e.value}):e&&E&&E(e)},itemToString:e=>e?e[g]:"",inputValue:H,onInputValueChange:(e="")=>{p&&e.length>y?k(!0):k(!1),V(e)}},M),(({getInputProps:t,getItemProps:r,getRootProps:c,inputValue:i,selectedItem:l,toggleMenu:h,isOpen:m,highlightedIndex:z})=>e.createElement(Al,Object.assign({required:b},c()),a&&e.createElement("label",{htmlFor:a},a),e.createElement(El,{isOpen:m&&!s,isErrored:u,id:"dropdownField container","data-testid":`formik-multi-select-${a}`,onClick:()=>{m||L&&L.current&&L.current.focus(),h()}},e.createElement("div",{className:"items"},(({selectedItem:t,removeSelectedItem:n,itemLabelIdentifier:r})=>t&&t.length>0&&t.map(((t,a)=>t[r]&&e.createElement(Cl,{key:a,onCloseAction:e=>{e.stopPropagation(),n(t)}},t[r]))))({removeSelectedItem:_,selectedItem:l,itemLabelIdentifier:f}),(({label:t,name:n,searchRef:r,InputProps:a,items:o,placeholder:c,customValues:i})=>0!==o.length||i?e.createElement("input",Object.assign({name:n,size:25,"data-testid":`formik-multi-select-input-${t}`,ref:r,type:"text"},a,{placeholder:c})):null)({name:n,label:a||"",searchRef:L,selectedItem:l,removeSelectedItem:_,disabled:s,items:o,inputValue:i,placeholder:d||"",customValues:p,InputProps:{...t({disabled:s,onKeyDown:e=>{"Backspace"!==e.key||i||_(l[l.length-1]),"Enter"===e.key&&i&&p&&null===z&&(v?v({[f]:i,[g]:i}):E({[f]:i,[g]:i}))}})}})),e.createElement("div",{className:"svg-wrapper"},e.createElement(er,{size:"8",viewBox:"0 0 8 8",glyph:"chevron-down"}))),e.createElement(vc,{initialOffset:"-20px",timeout:200,in:m,unmountOnExit:!0},(t=>{const n=((e,t,n,r,a)=>{const o=t.filter((t=>t[n].toLowerCase().includes(e&&e.toLowerCase&&e.toLowerCase())));return 0==o.length&&a&&""!==e&&o.push({[r]:e,[n]:e,customValues:!0}),o})(i,o,f,g,p);return n&&n.length>0&&e.createElement(Sl,{style:t},n.map(((e,t)=>A({lengthError:C,maxAllowedLength:y,item:e,index:t,itemProps:r({item:e,onClick:e=>e.stopPropagation(),disabled:e.disabled}),isActive:z===t,highlightedIndex:z,selectedItem:l,itemValueIdentifier:g,itemLabelIdentifier:f}))))}))))),u&&m&&e.createElement(Ll,null,m))},Ol={small:16,medium:32,big:40},Il=At`
987
- to { transform: rotate(360deg); }
988
- `,Nl={small:3,medium:3,big:6},Pl=Et.div`
989
- position: relative;
990
- border: ${({size:e})=>Nl[e]}px solid #f3f3f3;
991
- border-radius: 50%;
992
- border-top: ${({size:e})=>Nl[e]}px solid
993
- ${({invert:e,theme:{colors:{primary:t,white:n}}})=>e?n:t};
994
- width: ${({size:e})=>Ol[e]}px;
995
- height: ${({size:e})=>Ol[e]}px;
996
- animation: ${Il} 0.7s linear infinite;
997
- `,Tl=t=>{const{size:n="medium",invert:r=!1}=t;return e.createElement(Pl,{className:"fui-loader",invert:r,size:n})};function Rl(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Fl=Rl()?v:h;var jl="production"===process.env.NODE_ENV;function Yl(e,t){if(!jl){if(e)return;var n="Warning: "+t;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}}var Bl=function(e){var t,n=e.children,a=e.type,c=void 0===a?"reach-portal":a,i=e.containerRef,s=r(null),d=r(null),u=(t=l(Object.create(null))[1],p((function(){t(Object.create(null))}),[]));return"production"!==process.env.NODE_ENV&&h((function(){null!=i&&("production"!==process.env.NODE_ENV&&Yl("object"==typeof i&&"current"in i,"@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."),"production"!==process.env.NODE_ENV&&Yl(!i||null!=i.current,"@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."))}),[i]),Fl((function(){if(s.current){var e=s.current.ownerDocument,t=(null==i?void 0:i.current)||e.body;return d.current=null==e?void 0:e.createElement(c),t.appendChild(d.current),u(),function(){d.current&&t&&t.removeChild(d.current)}}}),[c,u,i]),d.current?C(n,d.current):o("span",{ref:s})};"production"!==process.env.NODE_ENV&&(Bl.displayName="Portal");var $l,Wl=["bottom","height","left","right","top","width"],Ul=new Map,Kl=function e(){var t=[];Ul.forEach((function(e,n){var r=n.getBoundingClientRect();(function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),Wl.some((function(n){return e[n]!==t[n]}))})(r,e.rect)&&(e.rect=r,t.push(e))})),t.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),$l=window.requestAnimationFrame(e)};function Gl(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var ql=Gl()?v:h;function Zl(e){return"boolean"==typeof e}function Xl(e){return!(!e||"[object Function]"!={}.toString.call(e))}var Jl=function(e){var t=e.onChange,n=e.observe,a=void 0===n||n,o=e.children,c=r(null);return o({ref:c,rect:Ql(c,{observe:a,onChange:t})})};function Ql(e,t,n){var a,o,c;Zl(t)?a=t:(a=null==(c=null==t?void 0:t.observe)||c,o=null==t?void 0:t.onChange);Xl(n)&&(o=n),"production"!==process.env.NODE_ENV&&(h((function(){"production"!==process.env.NODE_ENV&&Yl(!Zl(t),"Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")}),[t]),h((function(){"production"!==process.env.NODE_ENV&&Yl(!Xl(n),"Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")}),[n]));var i=l(e.current),s=i[0],p=i[1],d=r(!1),u=r(!1),m=l(null),v=m[0],f=m[1],g=r(o);return ql((function(){g.current=o,e.current!==s&&p(e.current)})),ql((function(){s&&!d.current&&(d.current=!0,f(s.getBoundingClientRect()))}),[s]),ql((function(){if(a){var t=s;if(u.current||(u.current=!0,t=e.current),t){var n,r,o=(n=t,r=function(e){null==g.current||g.current(e),f(e)},{observe:function(){var e=0===Ul.size;Ul.has(n)?Ul.get(n).callbacks.push(r):Ul.set(n,{rect:void 0,hasRectChanged:!1,callbacks:[r]}),e&&Kl()},unobserve:function(){var e=Ul.get(n);if(e){var t=e.callbacks.indexOf(r);t>=0&&e.callbacks.splice(t,1),e.callbacks.length||Ul.delete(n),Ul.size||cancelAnimationFrame($l)}}});return o.observe(),function(){o.unobserve()}}"production"!==process.env.NODE_ENV&&console.warn("You need to place the ref")}}),[a,s,e]),v}function eh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function th(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return eh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eh(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function nh(e,t){if(null!=e)if(function(e){return!(!e||"[object Function]"!={}.toString.call(e))}(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}"production"!==process.env.NODE_ENV&&(Jl.displayName="Rect",Jl.propTypes={children:_o.func.isRequired,observe:_o.bool,onChange:_o.func});var rh=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],ah=rh.join(","),oh="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function ch(e,t){t=t||{};var n,r,a,o=[],c=[],i=e.querySelectorAll(ah);for(t.includeContainer&&oh.call(e,ah)&&(i=Array.prototype.slice.apply(i)).unshift(e),n=0;n<i.length;n++)ih(r=i[n])&&(0===(a=hh(r))?o.push(r):c.push({documentOrder:n,tabIndex:a,node:r}));return c.sort(ph).map((function(e){return e.node})).concat(o)}function ih(e){return!(!sh(e)||function(e){return function(e){return dh(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||hh(e)<0)}function sh(e){return!(e.disabled||function(e){return dh(e)&&"hidden"===e.type}(e)||function(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}(e))}ch.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==oh.call(e,ah)&&ih(e)},ch.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==oh.call(e,lh)&&sh(e)};var lh=rh.concat("iframe").join(",");function hh(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function ph(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function dh(e){return"INPUT"===e.tagName}var uh=ch;function mh(){return mh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mh.apply(this,arguments)}var vh=["as","targetRef","position","unstable_observableRefs"],fh=s((function(e,t){return o(Bl,null,o(gh,mh({ref:t},e)))}));"production"!==process.env.NODE_ENV&&(fh.displayName="Popover");var gh=s((function(e,t){var n=e.as,a=void 0===n?"div":n,c=e.targetRef,i=e.position,s=void 0===i?yh:i,l=e.unstable_observableRefs,d=void 0===l?[]:l,u=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,vh),m=r(null),v=Ql(m,{observe:!u.hidden}),f=Ql(c,{observe:!u.hidden}),g=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p((function(e){for(var n,r=th(t);!(n=r()).done;)nh(n.value,e)}),t)}(m,t);return function(e,t){var n=(r=e.current,Rl()?r?r.ownerDocument:document:null);var r;function a(e){"Tab"===e.key&&t.current&&0===uh(t.current).length||("Tab"===e.key&&e.shiftKey?p(e)?d(e):u(e)?m(e):f(e)&&b():"Tab"===e.key&&(c()?i(e):s()?l(e):v(e)&&b()))}function o(){var r=uh(n),a=r&&e.current?r.indexOf(e.current):-1,o=r&&r[a+1];return(!t.current||!t.current.contains(o||null))&&o}function c(){return!!e.current&&e.current===n.activeElement}function i(e){var n=t.current&&uh(t.current);n&&n[0]&&(e.preventDefault(),n[0].focus())}function s(){if(!!t.current&&t.current.contains(n.activeElement||null)){var e=t.current&&uh(t.current);return Boolean(e&&e[e.length-1]===n.activeElement)}return!1}function l(e){var t=o();t&&(e.preventDefault(),t.focus())}function p(e){if(e.shiftKey){var t=o();return e.target===t}}function d(e){var n=t.current&&uh(t.current),r=n&&n[n.length-1];r&&(e.preventDefault(),r.focus())}function u(e){var n=t.current&&uh(t.current);return!!n&&(0!==n.length&&e.target===n[0])}function m(t){var n;t.preventDefault(),null==(n=e.current)||n.focus()}function v(e){var r=t.current?uh(n).filter((function(e){return!t.current.contains(e)})):null;return!!r&&e.target===r[r.length-1]}function f(e){return e.target===uh(n)[0]}h((function(){return n.addEventListener("keydown",a),function(){n.removeEventListener("keydown",a)}}),[]);var g=[];function b(){var e=t.current&&uh(t.current);e&&(e.forEach((function(e){g.push([e,e.tabIndex]),e.tabIndex=-1})),n.addEventListener("focusin",z))}function z(){n.removeEventListener("focusin",z),g.forEach((function(e){var t=e[0],n=e[1];t.tabIndex=n}))}}(c,m),o(a,mh({"data-reach-popover":"",ref:g},u,{style:mh({position:"absolute"},bh.apply(void 0,[s,f,v].concat(d)),u.style)}))}));function bh(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),o=3;o<r;o++)a[o-3]=arguments[o];return n?e.apply(void 0,[t,n].concat(a.map((function(e){return e.current})))):{visibility:"hidden"}}function zh(e,t,n){return{top:n?e.top-t.height+window.pageYOffset+"px":e.top+e.height+window.pageYOffset+"px"}}"production"!==process.env.NODE_ENV&&(gh.displayName="PopoverImpl");var yh=function(e,t){if(!e||!t)return{};var n=xh(e,t),r=n.directionRight,a=n.directionUp;return mh({left:r?e.right-t.width+window.pageXOffset+"px":e.left+window.pageXOffset+"px"},zh(e,t,a))},Mh=function(e,t){if(!e||!t)return{};var n=xh(e,t).directionUp;return mh({width:e.width,left:e.left},zh(e,t,n))};function xh(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var a={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0};return{directionRight:a.right&&!a.left,directionLeft:a.left&&!a.right,directionUp:a.bottom&&!a.top,directionDown:a.top&&!a.bottom}}const wh={BUTTON:"button",INPUT:"input"},Hh=e.createContext(null);function Vh(t){function n(n,r){return e.createElement(Hh.Consumer,null,(({downshift:a,items:o,filterKey:c,type:i,name:s})=>e.createElement(t,Object.assign({downshift:a,items:o,filterKey:c,type:i,name:s},n,{ref:r}))))}return n.displayName=`withDownshift(${t.displayName||t.name})`,ie(e.forwardRef(n),t)}const Ch=Et.button`
1002
+ `,xh=t=>{const{name:n,label:a,items:o,isMenuLoading:c,selectedItem:i,onChange:s,disabled:p=!1,customValues:d=!1,placeholder:u,isErrored:m,errorText:v,onCustomValueAdd:f,itemLabelIdentifier:g,itemValueIdentifier:b,isRequired:z,renderCustomSuggestion:y,maxAllowedLength:M=2147483647,...x}=t,[w,H]=l([]),[V,C]=l(""),[k,L]=l(!1),E=r(null);h((()=>{H([...i])}),[i]);const S=e=>{w.some((t=>t[b]===e[b]))?A(e):k||_(e)},_=e=>{C(""),H([...w,e]),s([...w,e])},A=e=>{const t=w.filter((t=>t[g]!==e[g]));H(t),s(t)},D=r(null),O=r(null),I=t=>y?y(t):(({item:t,lengthError:n,maxAllowedLength:r,itemProps:a,index:o,highlightedIndex:c,selectedItem:i,itemValueIdentifier:s,itemLabelIdentifier:l})=>{const h=c===o,p=i.some((e=>e[s]&&e[s]===t[s]));return e.createElement(yh,Object.assign({disabled:t.disabled},a,{key:o,isHighlighted:h,isSelected:p,isRemove:p&&t.customValues,lengthError:n}),e.createElement(No.Flex,{alignItems:"center",justifyContent:"space-between"},e.createElement("div",{className:"primary-text","data-testid":`suggested-item-${t[s]}`},n?`Length cannot be greater than ${r} characters`:t.customValues&&""!==t[l]?`Enter to ${p?"remove":"add"} '${t[l]}'`:t[l]),p&&!t.customValues&&e.createElement(er,{glyph:"check",size:12,viewBox:"0 0 8 8"})))})(t);return e.createElement("div",null,e.createElement(Yi,Object.assign({selectedItem:i,onChange:e=>{e&&e.customValues&&f?f({[g]:e.label,[b]:e.value}):e&&S&&S(e)},itemToString:e=>e?e[b]:"",inputValue:V,onInputValueChange:(e="")=>{d&&e.length>M?L(!0):L(!1),C(e)}},x),(({getInputProps:r,getItemProps:i,getRootProps:s,inputValue:l,selectedItem:h,toggleMenu:v,isOpen:y,highlightedIndex:x})=>e.createElement(Mh,Object.assign({required:z},s()),a&&e.createElement("label",{htmlFor:a},a),e.createElement(bh,{isOpen:y&&!p,isErrored:m,id:"dropdownField container","data-testid":`formik-multi-select-${a}`,onClick:()=>{y||E&&E.current&&E.current.focus(),v()},ref:D},e.createElement("div",{className:"items"},(({selectedItem:t,removeSelectedItem:n,itemLabelIdentifier:r})=>t&&t.length>0&&t.map(((t,a)=>t[r]&&e.createElement(vh,{key:a,onCloseAction:e=>{e.stopPropagation(),n(t)}},t[r]))))({removeSelectedItem:A,selectedItem:h,itemLabelIdentifier:g}),(({label:t,name:n,isMenuLoading:r,searchRef:a,InputProps:o,items:c,placeholder:i,customValues:s})=>0!==c.length||r||s?e.createElement("input",Object.assign({name:n,size:25,"data-testid":`formik-multi-select-input-${t}`,ref:a,type:"text"},o,{placeholder:i})):null)({name:n,label:a||"",searchRef:E,selectedItem:h,removeSelectedItem:A,disabled:p,items:o,inputValue:l,placeholder:u||"",customValues:d,isMenuLoading:t.isMenuLoading,InputProps:{...r({disabled:p,onKeyDown:e=>{"Backspace"!==e.key||l||A(h[h.length-1]),"Enter"===e.key&&l&&d&&null===x&&(f?f({[g]:l,[b]:l}):S({[g]:l,[b]:l}))}})}})),e.createElement("div",{className:"svg-wrapper"},e.createElement(er,{size:"8",viewBox:"0 0 8 8",glyph:"chevron-down"}))),e.createElement(rh,{targetRef:D,position:sh,ref:O},e.createElement(vc,{initialOffset:"-20px",timeout:200,in:y,unmountOnExit:!0},(t=>{const n=((e,t,n,r,a)=>{const o=t.filter((t=>t[n].toLowerCase().includes(e&&e.toLowerCase&&e.toLowerCase())));return 0==o.length&&a&&""!==e&&o.push({[r]:e,[n]:e,customValues:!0}),o})(l,o,g,b,d);return e.createElement(e.Fragment,null,c?e.createElement(zh,{style:t},e.createElement("div",{className:"loader-wrapper"},e.createElement(mh,null))):n&&n.length>0&&e.createElement(zh,{style:t},n.map(((e,t)=>I({lengthError:k,maxAllowedLength:M,item:e,index:t,itemProps:i({item:e,onClick:e=>e.stopPropagation(),disabled:e.disabled}),isActive:x===t,highlightedIndex:x,selectedItem:h,itemValueIdentifier:b,itemLabelIdentifier:g})))))})))))),m&&v&&e.createElement(gh,null,v))},wh={BUTTON:"button",INPUT:"input"},Hh=e.createContext(null);function Vh(t){function n(n,r){return e.createElement(Hh.Consumer,null,(({downshift:a,items:o,filterKey:c,type:i,name:s})=>e.createElement(t,Object.assign({downshift:a,items:o,filterKey:c,type:i,name:s},n,{ref:r}))))}return n.displayName=`withDownshift(${t.displayName||t.name})`,ie(e.forwardRef(n),t)}const Ch=Et.button`
998
1003
  ${({theme:e,isOpen:t,isErrored:n})=>{const{colors:{components:{input:r},border:a,pseudo:o},palette:c}=e;return`\n background: ${c.white};\n border: none;\n cursor: pointer;\n position : relative;\n box-shadow: none;\n min-height: 38px;\n border-radius: 5px;\n padding: 4px 12px;\n border: 1px solid ${n?a.error:t?"transparent":r.primary.borderColor};\n box-shadow : ${t&&!n?`0 0 0 2px ${o.focus}`:"none"};\n display: flex;\n width: 100%;\n align-items: center;\n display: flex;\n outline: none;\n border-radius: 4px;\n justify-content: space-between;\n\n .dropdown-selected {\n display: block;\n font-size: 14px;\n width: 90%;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n text-align: left;\n .placeholder {\n opacity : 0.7;\n }\n }\n .dropdown-status {\n transition: all ease-in 0.2s;\n transform: ${t?"rotate(180deg)":"rotate(0deg)"};\n }\n \n &[disabled] {\n filter: opacity(0.6);\n cursor: not-allowed;\n } \n &.focused {\n box-shadow: 0 0px 0px 2px ${o.focus};\n } \n\n `}};
999
1004
  ${({theme:e,overrideStyles:t})=>{const{typography:n}=e;return{...n.body.secondary,...t}}};
1000
1005
  `,kh=e.forwardRef(((t,n)=>{const{downshift:{getToggleButtonProps:r,selectedItem:a,isOpen:o,itemToString:c},children:i,disabled:s=!1,isErrored:l=!1,overrideStyles:h={},buttonLabelComponent:p,placeholder:d="--Select--"}=t,u=((e,t)=>e?e(t):t)(c,a);return e.createElement(Ch,Object.assign({},r({onClick:e=>{e.stopPropagation()}}),{isOpen:o,isErrored:l,className:"dropdown-button",overrideStyles:h,ref:n,disabled:s}),i?i({label:u,getToggleButtonProps:r,isOpen:o}):e.createElement(e.Fragment,null,e.createElement("div",{className:"dropdown-selected"},p?e.createElement(p,null,u):u||e.createElement("span",{className:"placeholder"},d)),e.createElement("div",{className:"dropdown-status"},e.createElement(er,{size:"8",viewBox:"0 0 8 8",glyph:"chevron-down"}))))}));var Lh=Vh(kh),Eh={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},Sh=Object.keys(Eh).join("|"),_h=new RegExp(Sh,"g"),Ah=new RegExp(Sh,""),Dh=function(e){return e.replace(_h,(function(e){return Eh[e]}))},Oh=Dh,Ih=function(e){return!!e.match(Ah)},Nh=Dh;Oh.has=Ih,Oh.remove=Nh;var Ph={CASE_SENSITIVE_EQUAL:9,EQUAL:8,STARTS_WITH:7,WORD_STARTS_WITH:6,STRING_CASE:5,STRING_CASE_ACRONYM:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},Th={CAMEL:.8,PASCAL:.6,KEBAB:.4,SNAKE:.2,NO_CASE:0};Fh.rankings=Ph,Fh.caseRankings=Th;var Rh=function(e,t){return String(e.rankedItem).localeCompare(t.rankedItem)};function Fh(e,t,n){void 0===n&&(n={});var r=n,a=r.keys,o=r.threshold,c=void 0===o?Ph.MATCHES:o,i=r.baseSort,s=void 0===i?Rh:i,l=e.reduce((function(e,r,o){var i=function(e,t,n,r){if(!t)return{rankedItem:e,rank:jh(e,n,r),keyIndex:-1,keyThreshold:r.threshold};return function(e,t){return t.reduce((function(t,n){var r=function(e,t){"object"==typeof t&&(t=t.key);var n;n="function"==typeof t?t(e):-1!==t.indexOf(".")?t.split(".").reduce((function(e,t){return e?e[t]:null}),e):e[t];return null!=n?[].concat(n):null}(e,n);return r&&r.forEach((function(e){t.push({itemValue:e,attributes:Bh(n)})})),t}),[])}(e,t).reduce((function(e,t,a){var o=e.rank,c=e.rankedItem,i=e.keyIndex,s=e.keyThreshold,l=t.itemValue,h=t.attributes,p=jh(l,n,r),d=c,u=h.minRanking,m=h.maxRanking,v=h.threshold;return p<u&&p>=Ph.MATCHES?p=u:p>m&&(p=m),p>o&&(o=p,i=a,s=v,d=l),{rankedItem:d,rank:o,keyIndex:i,keyThreshold:s}}),{rank:Ph.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}(r,a,t,n),s=i.rankedItem,l=i.rank,h=i.keyIndex,p=i.keyThreshold;l>=(void 0===p?c:p)&&e.push({rankedItem:s,item:r,rank:l,index:o,keyIndex:h});return e}),[]);return l.sort((function(e,t){return function(e,t,n){var r=-1,a=1,o=e.rank,c=e.keyIndex,i=t.rank,s=t.keyIndex;return o===i?c===s?n(e,t):c<s?r:a:o>i?r:a}(e,t,s)})).map((function(e){return e.item}))}function jh(e,t,n){if(e=Yh(e,n),(t=Yh(t,n)).length>e.length)return Ph.NO_MATCH;if(e===t)return Ph.CASE_SENSITIVE_EQUAL;var r,a,o=function(e){var t=e.toLowerCase()!==e,n=e.indexOf("-")>=0,r=e.indexOf("_")>=0;if(!t&&!r&&n)return Th.KEBAB;if(!t&&r&&!n)return Th.SNAKE;if(t&&!n&&!r){return e[0].toUpperCase()===e[0]?Th.PASCAL:Th.CAMEL}return Th.NO_CASE}(e),c=function(e,t,n){var r=e.toLowerCase().indexOf(t.toLowerCase());switch(n){case Th.SNAKE:return"_"===e[r-1];case Th.KEBAB:return"-"===e[r-1];case Th.PASCAL:case Th.CAMEL:return-1!==r&&e[r]===e[r].toUpperCase();default:return!1}}(e,t,o),i=function(e,t,n){var r=null;switch(n){case Th.SNAKE:r="_";break;case Th.KEBAB:r="-";break;case Th.PASCAL:case Th.CAMEL:r=/(?=[A-Z])/;break;default:r=null}var a=e.split(r);return t.toLowerCase().split("").reduce((function(e,t,n){var r=a[n];return e&&r&&r[0].toLowerCase()===t}),!0)}(e,t,o);return(e=e.toLowerCase())===(t=t.toLowerCase())?Ph.EQUAL+o:0===e.indexOf(t)?Ph.STARTS_WITH+o:-1!==e.indexOf(" "+t)?Ph.WORD_STARTS_WITH+o:c?Ph.STRING_CASE+o:o>0&&i?Ph.STRING_CASE_ACRONYM+o:-1!==e.indexOf(t)?Ph.CONTAINS+o:1===t.length?Ph.NO_MATCH:-1!==(r=e,a="",r.split(" ").forEach((function(e){e.split("-").forEach((function(e){a+=e.substr(0,1)}))})),a).indexOf(t)?Ph.ACRONYM+o:function(e,t){var n=0,r=0;function a(e,t,r){for(var a=r;a<t.length;a++){if(t[a]===e)return n+=1,a+1}return-1}function o(e){var r=n/t.length;return Ph.MATCHES+r*(1/e)}var c=a(t[0],e,0);if(c<0)return Ph.NO_MATCH;r=c;for(var i=1;i<t.length;i++){if(!((r=a(t[i],e,r))>-1))return Ph.NO_MATCH}return o(r-c)}(e,t)}function Yh(e,t){return e=""+e,t.keepDiacritics||(e=Oh(e)),e}function Bh(e){return"string"==typeof e&&(e={key:e}),It({maxRanking:1/0,minRanking:-1/0},e)}const $h=Et.ul`
@@ -1030,7 +1035,7 @@ object-assign
1030
1035
  border-radius: ${({showBorder:e})=>e?"unset":"4px"};
1031
1036
  padding: 8px;
1032
1037
  cursor: pointer;
1033
- `,Uh=Vh((({items:t,downshift:{isOpen:n,getMenuProps:r,getItemProps:a,selectedItem:o,inputValue:c,highlightedIndex:i,itemToString:s},overrideStyles:l={},itemComponent:h,type:p,filterKey:d,isMenuLoading:u,anchorRef:m,popoverRef:v})=>{let f=t;if(p===wh.INPUT&&(null===o||"string"==typeof o&&o!==c||"object"==typeof o&&o&&o[d]&&o[d]!==c)&&("development"!==process.env.NODE_ENV||"string"==typeof t[0]||d||console.error("The 'items' you provided is of type Object, provide \n 'filterKey' prop to <Dropdown/> to specify which key has to be searched for."),d&&"object"==typeof t[0]&&(f=""!==c&&c?t.filter((e=>e&&e.ignoreFilter||d&&e&&e[d]&&c&&e[d].toLowerCase().includes(c.toLowerCase()))):t),"string"==typeof t[0]&&(f=Fh(t,c))),0===f.length&&!u)return null;v.current&&m.current&&xh(m.current.getBoundingClientRect(),v.current.getBoundingClientRect());return e.createElement(e.Fragment,null,e.createElement(vc,{initialOffset:"-20px",timeout:200,in:n,unmountOnExit:!0},(t=>e.createElement("div",{style:{width:"100%",zIndex:1e3},id:"heloo"},e.createElement($h,Object.assign({},r({onClick:e=>{e.stopPropagation()}}),{overrideStyles:l}),u?e.createElement("div",{className:"loader-wrapper"},e.createElement(Tl,null)):e.createElement(e.Fragment,null,f.map(((t,n)=>{const r=f.indexOf(o)===n;return e.createElement(Wh,Object.assign({},a({item:t,key:n,disabled:t.disabled}),{key:n,isSelectedIndex:r,canHighlight:i===n,disabled:t.disabled,showBorder:t.showBorder}),e.createElement(No.Flex,{justifyContent:"space-between",alignItems:"center"},e.createElement(No.Box,{width:"90%",style:{wordBreak:"break-word"}},h?h(t):s(t)),r?e.createElement(er,{glyph:"check",size:12,viewBox:"0 0 8 8"}):null))}))))))))})),Kh=Et.div`
1038
+ `,Uh=Vh((({items:t,downshift:{isOpen:n,getMenuProps:r,getItemProps:a,selectedItem:o,inputValue:c,highlightedIndex:i,itemToString:s},overrideStyles:l={},itemComponent:h,type:p,filterKey:d,isMenuLoading:u,anchorRef:m,popoverRef:v})=>{let f=t;if(p===wh.INPUT&&(null===o||"string"==typeof o&&o!==c||"object"==typeof o&&o&&o[d]&&o[d]!==c)&&("development"!==process.env.NODE_ENV||"string"==typeof t[0]||d||console.error("The 'items' you provided is of type Object, provide \n 'filterKey' prop to <Dropdown/> to specify which key has to be searched for."),d&&"object"==typeof t[0]&&(f=""!==c&&c?t.filter((e=>e&&e.ignoreFilter||d&&e&&e[d]&&c&&e[d].toLowerCase().includes(c.toLowerCase()))):t),"string"==typeof t[0]&&(f=Fh(t,c))),0===f.length&&!u)return null;v.current&&m.current&&lh(m.current.getBoundingClientRect(),v.current.getBoundingClientRect());return e.createElement(e.Fragment,null,e.createElement(vc,{initialOffset:"-20px",timeout:200,in:n,unmountOnExit:!0},(t=>e.createElement("div",{style:{width:"100%",zIndex:1e3},id:"heloo"},e.createElement($h,Object.assign({},r({onClick:e=>{e.stopPropagation()}}),{overrideStyles:l}),u?e.createElement("div",{className:"loader-wrapper"},e.createElement(mh,null)):e.createElement(e.Fragment,null,f.map(((t,n)=>{const r=f.indexOf(o)===n;return e.createElement(Wh,Object.assign({},a({item:t,key:n,disabled:t.disabled}),{key:n,isSelectedIndex:r,canHighlight:i===n,disabled:t.disabled,showBorder:t.showBorder}),e.createElement(No.Flex,{justifyContent:"space-between",alignItems:"center"},e.createElement(No.Box,{width:"90%",style:{wordBreak:"break-word"}},h?h(t):s(t)),r?e.createElement(er,{glyph:"check",size:12,viewBox:"0 0 8 8"}):null))}))))))))})),Kh=Et.div`
1034
1039
  ${({isOpen:e,isErrored:t,disabled:n,theme:{palette:r,colors:a}})=>`\n position: relative;\n width: 100%;\n box-sizing: border-box;\n border-radius: 5px;\n border: 1px solid ${t?a.border.error:a.border.primary};\n background: white;\n appearance: none;\n padding: 4px 12px;\n display: flex;\n align-items: center;\n\n input {\n flex-grow: 1;\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0px;\n min-height: 24px;\n background-color: #fff;\n min-width: 100px;\n box-sizing: border-box;\n border: none;\n overflow: hidden;\n padding : 0;\n margin : 2px;\n ::placeholder,\n ::-webkit-input-placeholder {\n color: ${r.S300}\n }\n :-ms-input-placeholder {\n color: ${r.S300}\n }\n \n }\n ${e&&!t?`border: none;\n box-shadow: 0 0 0 2px ${a.pseudo.focus}; \n transition: box-shadow 0.3s ease-in-out;`:""}\n \n \n\n\n .dropdown-status {\n transition: all ease-in 0.2s;\n pointer-events: ${n?"none":"all"};\n transform: ${e?"rotate(180deg)":"rotate(0deg)"};\n }\n `}
1035
1040
  `,Gh=e.forwardRef(((t,n)=>{const{downshift:{getInputProps:r,toggleMenu:a,isOpen:o},name:c,isErrored:i,disabled:s,placeholder:l="Enter input to get suggestions"}=t;return e.createElement(Kh,{isErrored:i,isOpen:o,ref:n,disabled:s},e.createElement("input",Object.assign({},r({"data-testid":c}),{disabled:s,placeholder:l,onClick:a})),e.createElement("div",{className:"dropdown-status",onClick:s?()=>{}:a},e.createElement(er,{size:"8",viewBox:"0 0 8 8",glyph:"chevron-down"})))})),qh=Vh(Gh),Zh=Et.div`
1036
1041
  display: block;
@@ -1054,7 +1059,7 @@ object-assign
1054
1059
  font-weight: 500;
1055
1060
  }
1056
1061
  ${({isRequired:e,theme:{typography:{body:t},colors:{errorText:n}}})=>e&&`\n & > label::after {\n content: '*';\n position: relative;\n top: 2px;\n font-weight: ${t.requiredLabel.fontWeight};\n font-size: ${t.requiredLabel.fontSize};\n \n padding-left: 3px;\n color: ${n.primary};\n }\n `}
1057
- `,Jh=t=>{const{items:n,children:a,defaultSelectedItem:o,label:c="",placeholder:i,errorText:s,itemToString:l,itemComponent:h,onChange:p=(e=>e),type:d=wh.BUTTON,filterKey:u,width:m="100%",disabled:v,isErrored:f,isRequired:g,overrideButtonStyles:b,overrideContainerStyles:z,isMenuLoading:y,...M}=t;let x;"object"!=typeof n[0]||l?x=e=>e?l?l(e):"object"!=typeof e?String(e):null:null:console.warn("Your items are objects. So you need to pass a function to translate each object as a string which can be shown as dropdown item labels");const w=r(null),H=r(null);return e.createElement("div",null,e.createElement(Yi,Object.assign({itemToString:x,selectedItem:o,onChange:p},M),(t=>e.createElement(Xh,Object.assign({width:m,isRequired:g},t.getRootProps()),c&&e.createElement("label",Object.assign({},t.getLabelProps()),c),e.createElement(Hh.Provider,{value:{downshift:t,items:n,filterKey:u,type:d,name:M.name}},a||e.createElement(e.Fragment,null,wh.BUTTON===d&&e.createElement(Lh,{disabled:v,ref:w,isErrored:f,overrideStyles:b,placeholder:i}),wh.INPUT===d&&e.createElement(qh,{ref:w,placeholder:i,isErrored:f,disabled:v}),e.createElement(fh,{targetRef:w,position:Mh,ref:H},e.createElement(e.Fragment,null,e.createElement(Uh,{anchorRef:w,popoverRef:H,itemComponent:h,isErrored:f,overrideStyles:z,isMenuLoading:y})))))))),f&&s&&e.createElement(Zh,null,s))};var Qh,ep,tp,np,rp=sr((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}function a(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function c(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(i(e,t))return!1;return!0}function l(e){return void 0===e}function h(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function p(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function u(e,t){for(var n in t)i(t,n)&&(e[n]=t[n]);return i(t,"toString")&&(e.toString=t.toString),i(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,r){return Kn(e,t,n,r,!0).utc()}function v(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(e){return null==e._pf&&(e._pf=v()),e._pf}function g(e){if(null==e._isValid){var t=f(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function b(e){var t=m(NaN);return null!=e?u(f(t),e):f(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var z=r.momentProperties=[],y=!1;function M(e,t){var n,r,a;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=f(t)),l(t._locale)||(e._locale=t._locale),z.length>0)for(n=0;n<z.length;n++)l(a=t[r=z[n]])||(e[r]=a);return e}function x(e){M(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function w(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function H(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function V(e,t){var n=!0;return u((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var a,o,c,s=[];for(o=0;o<arguments.length;o++){if(a="","object"==typeof arguments[o]){for(c in a+="\n["+o+"] ",arguments[0])i(arguments[0],c)&&(a+=c+": "+arguments[0][c]+", ");a=a.slice(0,-2)}else a=arguments[o];s.push(a)}H(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var C,k={};function L(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),k[e]||(H(t),k[e]=!0)}function E(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e){var t,n;for(n in e)i(e,n)&&(E(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function _(e,t){var n,r=u({},e);for(n in t)i(t,n)&&(c(e[n])&&c(t[n])?(r[n]={},u(r[n],e[n]),u(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)i(e,n)&&!i(t,n)&&c(e[n])&&(r[n]=u({},r[n]));return r}function A(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)i(e,t)&&n.push(t);return n};var D={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function O(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return E(r)?r.call(t,n):r}function I(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,T={},R={};function F(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(R[e]=a),t&&(R[t[0]]=function(){return I(a.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function j(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Y(e){var t,n,r=e.match(N);for(t=0,n=r.length;t<n;t++)R[r[t]]?r[t]=R[r[t]]:r[t]=j(r[t]);return function(t){var a,o="";for(a=0;a<n;a++)o+=E(r[a])?r[a].call(t,e):r[a];return o}}function B(e,t){return e.isValid()?(t=$(t,e.localeData()),T[t]=T[t]||Y(t),T[t](e)):e.localeData().invalidDate()}function $(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(P.lastIndex=0;n>=0&&P.test(e);)e=e.replace(P,r),P.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function U(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var K="Invalid date";function G(){return this._invalidDate}var q="%d",Z=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var a=this._relativeTime[n];return E(a)?a(e,t,n,r):a.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function ae(e){var t,n,r={};for(n in e)i(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={};function ce(e,t){oe[e]=t}function ie(e){var t,n=[];for(t in e)i(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function se(e){return e%4==0&&e%100!=0||e%400==0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function he(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=le(t)),n}function pe(e,t){return function(n){return null!=n?(ue(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ue(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&se(e.year())&&1===e.month()&&29===e.date()?(n=he(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Qe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function me(e){return E(this[e=re(e)])?this[e]():this}function ve(e,t){if("object"==typeof e){var n,r=ie(e=ae(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(E(this[e=re(e)]))return this[e](t);return this}var fe,ge=/\d/,be=/\d\d/,ze=/\d{3}/,ye=/\d{4}/,Me=/[+-]?\d{6}/,xe=/\d\d?/,we=/\d\d\d\d?/,He=/\d\d\d\d\d\d?/,Ve=/\d{1,3}/,Ce=/\d{1,4}/,ke=/[+-]?\d{1,6}/,Le=/\d+/,Ee=/[+-]?\d+/,Se=/Z|[+-]\d\d:?\d\d/gi,_e=/Z|[+-]\d\d(?::?\d\d)?/gi,Ae=/[+-]?\d+(\.\d{1,3})?/,De=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Oe(e,t,n){fe[e]=E(t)?t:function(e,r){return e&&n?n:t}}function Ie(e,t){return i(fe,e)?fe[e](t._strict,t._locale):new RegExp(Ne(e))}function Ne(e){return Pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a})))}function Pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}fe={};var Te={};function Re(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),h(t)&&(r=function(e,n){n[t]=he(e)}),n=0;n<e.length;n++)Te[e[n]]=r}function Fe(e,t){Re(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function je(e,t,n){null!=t&&i(Te,e)&&Te[e](t,n._a,n,e)}var Ye,Be=0,$e=1,We=2,Ue=3,Ke=4,Ge=5,qe=6,Ze=7,Xe=8;function Je(e,t){return(e%t+t)%t}function Qe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Je(t,12);return e+=(t-n)/12,1===n?se(e)?29:28:31-n%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),F("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),ce("month",8),Oe("M",xe),Oe("MM",xe,be),Oe("MMM",(function(e,t){return t.monthsShortRegex(e)})),Oe("MMMM",(function(e,t){return t.monthsRegex(e)})),Re(["M","MM"],(function(e,t){t[$e]=he(e)-1})),Re(["MMM","MMMM"],(function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[$e]=a:f(n).invalidMonth=e}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=De,at=De;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function ct(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function it(e,t,n){var r,a,o,c=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Ye.call(this._shortMonthsParse,c))?a:null:-1!==(a=Ye.call(this._longMonthsParse,c))?a:null:"MMM"===t?-1!==(a=Ye.call(this._shortMonthsParse,c))||-1!==(a=Ye.call(this._longMonthsParse,c))?a:null:-1!==(a=Ye.call(this._longMonthsParse,c))||-1!==(a=Ye.call(this._shortMonthsParse,c))?a:null}function st(e,t,n){var r,a,o;if(this._monthsParseExact)return it.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=m([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function lt(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=he(t);else if(!h(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Qe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ht(e){return null!=e?(lt(this,e),r.updateOffset(this,!0),this):de(this,"Month")}function pt(){return Qe(this.year(),this.month())}function dt(e){return this._monthsParseExact?(i(this,"_monthsRegex")||mt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(i(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ut(e){return this._monthsParseExact?(i(this,"_monthsRegex")||mt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(i(this,"_monthsRegex")||(this._monthsRegex=at),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function mt(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],o=[];for(t=0;t<12;t++)n=m([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Pe(r[t]),a[t]=Pe(a[t]);for(t=0;t<24;t++)o[t]=Pe(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function vt(e){return se(e)?366:365}F("Y",0,0,(function(){var e=this.year();return e<=9999?I(e,4):"+"+e})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),ne("year","y"),ce("year",1),Oe("Y",Ee),Oe("YY",xe,be),Oe("YYYY",Ce,ye),Oe("YYYYY",ke,Me),Oe("YYYYYY",ke,Me),Re(["YYYYY","YYYYYY"],Be),Re("YYYY",(function(e,t){t[Be]=2===e.length?r.parseTwoDigitYear(e):he(e)})),Re("YY",(function(e,t){t[Be]=r.parseTwoDigitYear(e)})),Re("Y",(function(e,t){t[Be]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return he(e)+(he(e)>68?1900:2e3)};var ft=pe("FullYear",!0);function gt(){return se(this.year())}function bt(e,t,n,r,a,o,c){var i;return e<100&&e>=0?(i=new Date(e+400,t,n,r,a,o,c),isFinite(i.getFullYear())&&i.setFullYear(e)):i=new Date(e,t,n,r,a,o,c),i}function zt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function yt(e,t,n){var r=7+t-n;return-(7+zt(e,0,r).getUTCDay()-t)%7+r-1}function Mt(e,t,n,r,a){var o,c,i=1+7*(t-1)+(7+n-r)%7+yt(e,r,a);return i<=0?c=vt(o=e-1)+i:i>vt(e)?(o=e+1,c=i-vt(e)):(o=e,c=i),{year:o,dayOfYear:c}}function xt(e,t,n){var r,a,o=yt(e.year(),t,n),c=Math.floor((e.dayOfYear()-o-1)/7)+1;return c<1?r=c+wt(a=e.year()-1,t,n):c>wt(e.year(),t,n)?(r=c-wt(e.year(),t,n),a=e.year()+1):(a=e.year(),r=c),{week:r,year:a}}function wt(e,t,n){var r=yt(e,t,n),a=yt(e+1,t,n);return(vt(e)-r+a)/7}function Ht(e){return xt(e,this._week.dow,this._week.doy).week}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ce("week",5),ce("isoWeek",5),Oe("w",xe),Oe("ww",xe,be),Oe("W",xe),Oe("WW",xe,be),Fe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=he(e)}));var Vt={dow:0,doy:6};function Ct(){return this._week.dow}function kt(){return this._week.doy}function Lt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Et(e){var t=xt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function St(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function _t(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function At(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("d",0,"do","day"),F("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),F("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),F("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ce("day",11),ce("weekday",11),ce("isoWeekday",11),Oe("d",xe),Oe("e",xe),Oe("E",xe),Oe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Oe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Oe("dddd",(function(e,t){return t.weekdaysRegex(e)})),Fe(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:f(n).invalidWeekday=e})),Fe(["d","e","E"],(function(e,t,n,r){t[r]=he(e)}));var Dt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ot="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nt=De,Pt=De,Tt=De;function Rt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?At(n,this._week.dow):e?n[e.day()]:n}function Ft(e){return!0===e?At(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function jt(e){return!0===e?At(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yt(e,t,n){var r,a,o,c=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Ye.call(this._weekdaysParse,c))?a:null:"ddd"===t?-1!==(a=Ye.call(this._shortWeekdaysParse,c))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,c))?a:null:"dddd"===t?-1!==(a=Ye.call(this._weekdaysParse,c))||-1!==(a=Ye.call(this._shortWeekdaysParse,c))||-1!==(a=Ye.call(this._minWeekdaysParse,c))?a:null:"ddd"===t?-1!==(a=Ye.call(this._shortWeekdaysParse,c))||-1!==(a=Ye.call(this._weekdaysParse,c))||-1!==(a=Ye.call(this._minWeekdaysParse,c))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,c))||-1!==(a=Ye.call(this._weekdaysParse,c))||-1!==(a=Ye.call(this._shortWeekdaysParse,c))?a:null}function Bt(e,t,n){var r,a,o;if(this._weekdaysParseExact)return Yt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function $t(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=St(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ut(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=_t(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Kt(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(i(this,"_weekdaysRegex")||(this._weekdaysRegex=Nt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gt(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Pt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qt(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Tt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zt(){function e(e,t){return t.length-e.length}var t,n,r,a,o,c=[],i=[],s=[],l=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),r=Pe(this.weekdaysMin(n,"")),a=Pe(this.weekdaysShort(n,"")),o=Pe(this.weekdays(n,"")),c.push(r),i.push(a),s.push(o),l.push(r),l.push(a),l.push(o);c.sort(e),i.sort(e),s.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+c.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Jt(){return this.hours()||24}function Qt(e,t){F(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Xt),F("k",["kk",2],0,Jt),F("hmm",0,0,(function(){return""+Xt.apply(this)+I(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Xt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),Qt("a",!0),Qt("A",!1),ne("hour","h"),ce("hour",13),Oe("a",en),Oe("A",en),Oe("H",xe),Oe("h",xe),Oe("k",xe),Oe("HH",xe,be),Oe("hh",xe,be),Oe("kk",xe,be),Oe("hmm",we),Oe("hmmss",He),Oe("Hmm",we),Oe("Hmmss",He),Re(["H","HH"],Ue),Re(["k","kk"],(function(e,t,n){var r=he(e);t[Ue]=24===r?0:r})),Re(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Re(["h","hh"],(function(e,t,n){t[Ue]=he(e),f(n).bigHour=!0})),Re("hmm",(function(e,t,n){var r=e.length-2;t[Ue]=he(e.substr(0,r)),t[Ke]=he(e.substr(r)),f(n).bigHour=!0})),Re("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[Ue]=he(e.substr(0,r)),t[Ke]=he(e.substr(r,2)),t[Ge]=he(e.substr(a)),f(n).bigHour=!0})),Re("Hmm",(function(e,t,n){var r=e.length-2;t[Ue]=he(e.substr(0,r)),t[Ke]=he(e.substr(r))})),Re("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[Ue]=he(e.substr(0,r)),t[Ke]=he(e.substr(r,2)),t[Ge]=he(e.substr(a))}));var nn=/[ap]\.?m?\.?/i,rn=pe("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,cn={calendar:D,longDateFormat:W,invalidDate:K,ordinal:q,dayOfMonthOrdinalParse:Z,relativeTime:J,months:et,monthsShort:tt,week:Vt,weekdays:Dt,weekdaysMin:It,weekdaysShort:Ot,meridiemParse:nn},sn={},ln={};function hn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function pn(e){return e?e.toLowerCase().replace("_","-"):e}function dn(e){for(var t,n,r,a,o=0;o<e.length;){for(t=(a=pn(e[o]).split("-")).length,n=(n=pn(e[o+1]))?n.split("-"):null;t>0;){if(r=un(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&hn(a,n)>=t-1)break;t--}o++}return on}function un(t){var n=null;if(void 0===sn[t]&&e&&e.exports)try{n=on._abbr,lr(),mn(n)}catch(e){sn[t]=null}return sn[t]}function mn(e,t){var n;return e&&((n=l(t)?gn(e):vn(e,t))?on=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function vn(e,t){if(null!==t){var n,r=cn;if(t.abbr=e,null!=sn[e])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=sn[e]._config;else if(null!=t.parentLocale)if(null!=sn[t.parentLocale])r=sn[t.parentLocale]._config;else{if(null==(n=un(t.parentLocale)))return ln[t.parentLocale]||(ln[t.parentLocale]=[]),ln[t.parentLocale].push({name:e,config:t}),null;r=n._config}return sn[e]=new A(_(r,t)),ln[e]&&ln[e].forEach((function(e){vn(e.name,e.config)})),mn(e),sn[e]}return delete sn[e],null}function fn(e,t){if(null!=t){var n,r,a=cn;null!=sn[e]&&null!=sn[e].parentLocale?sn[e].set(_(sn[e]._config,t)):(null!=(r=un(e))&&(a=r._config),t=_(a,t),null==r&&(t.abbr=e),(n=new A(t)).parentLocale=sn[e],sn[e]=n),mn(e)}else null!=sn[e]&&(null!=sn[e].parentLocale?(sn[e]=sn[e].parentLocale,e===mn()&&mn(e)):null!=sn[e]&&delete sn[e]);return sn[e]}function gn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!o(e)){if(t=un(e))return t;e=[e]}return dn(e)}function bn(){return C(sn)}function zn(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[$e]<0||n[$e]>11?$e:n[We]<1||n[We]>Qe(n[Be],n[$e])?We:n[Ue]<0||n[Ue]>24||24===n[Ue]&&(0!==n[Ke]||0!==n[Ge]||0!==n[qe])?Ue:n[Ke]<0||n[Ke]>59?Ke:n[Ge]<0||n[Ge]>59?Ge:n[qe]<0||n[qe]>999?qe:-1,f(e)._overflowDayOfYear&&(t<Be||t>We)&&(t=We),f(e)._overflowWeeks&&-1===t&&(t=Ze),f(e)._overflowWeekday&&-1===t&&(t=Xe),f(e).overflow=t),e}var yn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,wn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Hn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Vn=/^\/?Date\((-?\d+)/i,Cn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,kn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ln(e){var t,n,r,a,o,c,i=e._i,s=yn.exec(i)||Mn.exec(i);if(s){for(f(e).iso=!0,t=0,n=wn.length;t<n;t++)if(wn[t][1].exec(s[1])){a=wn[t][0],r=!1!==wn[t][2];break}if(null==a)return void(e._isValid=!1);if(s[3]){for(t=0,n=Hn.length;t<n;t++)if(Hn[t][1].exec(s[3])){o=(s[2]||" ")+Hn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(s[4]){if(!xn.exec(s[4]))return void(e._isValid=!1);c="Z"}e._f=a+(o||"")+(c||""),Fn(e)}else e._isValid=!1}function En(e,t,n,r,a,o){var c=[Sn(e),tt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return o&&c.push(parseInt(o,10)),c}function Sn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function _n(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function An(e,t,n){return!e||Ot.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Dn(e,t,n){if(e)return kn[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}function On(e){var t,n=Cn.exec(_n(e._i));if(n){if(t=En(n[4],n[3],n[2],n[5],n[6],n[7]),!An(n[1],t,e))return;e._a=t,e._tzm=Dn(n[8],n[9],n[10]),e._d=zt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function In(e){var t=Vn.exec(e._i);null===t?(Ln(e),!1===e._isValid&&(delete e._isValid,On(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Nn(e,t,n){return null!=e?e:null!=t?t:n}function Pn(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Tn(e){var t,n,r,a,o,c=[];if(!e._d){for(r=Pn(e),e._w&&null==e._a[We]&&null==e._a[$e]&&Rn(e),null!=e._dayOfYear&&(o=Nn(e._a[Be],r[Be]),(e._dayOfYear>vt(o)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=zt(o,0,e._dayOfYear),e._a[$e]=n.getUTCMonth(),e._a[We]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=r[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ue]&&0===e._a[Ke]&&0===e._a[Ge]&&0===e._a[qe]&&(e._nextDay=!0,e._a[Ue]=0),e._d=(e._useUTC?zt:bt).apply(null,c),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ue]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(f(e).weekdayMismatch=!0)}}function Rn(e){var t,n,r,a,o,c,i,s,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,c=4,n=Nn(t.GG,e._a[Be],xt(Gn(),1,4).year),r=Nn(t.W,1),((a=Nn(t.E,1))<1||a>7)&&(s=!0)):(o=e._locale._week.dow,c=e._locale._week.doy,l=xt(Gn(),o,c),n=Nn(t.gg,e._a[Be],l.year),r=Nn(t.w,l.week),null!=t.d?((a=t.d)<0||a>6)&&(s=!0):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(s=!0)):a=o),r<1||r>wt(n,o,c)?f(e)._overflowWeeks=!0:null!=s?f(e)._overflowWeekday=!0:(i=Mt(n,r,a,o,c),e._a[Be]=i.year,e._dayOfYear=i.dayOfYear)}function Fn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],f(e).empty=!0;var t,n,a,o,c,i,s=""+e._i,l=s.length,h=0;for(a=$(e._f,e._locale).match(N)||[],t=0;t<a.length;t++)o=a[t],(n=(s.match(Ie(o,e))||[])[0])&&((c=s.substr(0,s.indexOf(n))).length>0&&f(e).unusedInput.push(c),s=s.slice(s.indexOf(n)+n.length),h+=n.length),R[o]?(n?f(e).empty=!1:f(e).unusedTokens.push(o),je(o,n,e)):e._strict&&!n&&f(e).unusedTokens.push(o);f(e).charsLeftOver=l-h,s.length>0&&f(e).unusedInput.push(s),e._a[Ue]<=12&&!0===f(e).bigHour&&e._a[Ue]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[Ue]=jn(e._locale,e._a[Ue],e._meridiem),null!==(i=f(e).era)&&(e._a[Be]=e._locale.erasConvertYear(i,e._a[Be])),Tn(e),zn(e)}else On(e);else Ln(e)}function jn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Yn(e){var t,n,r,a,o,c,i=!1;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)o=0,c=!1,t=M({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Fn(t),g(t)&&(c=!0),o+=f(t).charsLeftOver,o+=10*f(t).unusedTokens.length,f(t).score=o,i?o<r&&(r=o,n=t):(null==r||o<r||c)&&(r=o,n=t,c&&(i=!0));u(e,n||t)}function Bn(e){if(!e._d){var t=ae(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Tn(e)}}function $n(e){var t=new x(zn(Wn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Wn(e){var t=e._i,n=e._f;return e._locale=e._locale||gn(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new x(zn(t)):(p(t)?e._d=t:o(n)?Yn(e):n?Fn(e):Un(e),g(e)||(e._d=null),e))}function Un(e){var t=e._i;l(t)?e._d=new Date(r.now()):p(t)?e._d=new Date(t.valueOf()):"string"==typeof t?In(e):o(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Tn(e)):c(t)?Bn(e):h(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Kn(e,t,n,r,a){var i={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(c(e)&&s(e)||o(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=n,i._i=e,i._f=t,i._strict=r,$n(i)}function Gn(e,t,n,r){return Kn(e,t,n,r,!1)}r.createFromInputFallback=V("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var qn=V("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Zn=V("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function Xn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Gn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Jn(){return Xn("isBefore",[].slice.call(arguments,0))}function Qn(){return Xn("isAfter",[].slice.call(arguments,0))}var er=function(){return Date.now?Date.now():+new Date},tr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nr(e){var t,n,r=!1;for(t in e)if(i(e,t)&&(-1===Ye.call(tr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<tr.length;++n)if(e[tr[n]]){if(r)return!1;parseFloat(e[tr[n]])!==he(e[tr[n]])&&(r=!0)}return!0}function rr(){return this._isValid}function ar(){return Lr(NaN)}function or(e){var t=ae(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,c=t.day||0,i=t.hour||0,s=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=nr(t),this._milliseconds=+h+1e3*l+6e4*s+1e3*i*60*60,this._days=+c+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=gn(),this._bubble()}function cr(e){return e instanceof or}function ir(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function sr(e,t,n){var r,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),c=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&he(e[r])!==he(t[r]))&&c++;return c+o}function hr(e,t){F(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+I(~~(e/60),2)+t+I(~~e%60,2)}))}hr("Z",":"),hr("ZZ",""),Oe("Z",_e),Oe("ZZ",_e),Re(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=dr(_e,e)}));var pr=/([\+\-]|\d\d)/gi;function dr(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(pr)||["-",0,0])[1]+he(n[2]))?0:"+"===n[0]?r:-r}function ur(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(w(e)||p(e)?e.valueOf():Gn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),r.updateOffset(n,!1),n):Gn(e).local()}function mr(e){return-Math.round(e._d.getTimezoneOffset())}function vr(e,t,n){var a,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=dr(_e,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=mr(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),o!==e&&(!t||this._changeInProgress?Dr(this,Lr(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function fr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function gr(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function zr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=dr(Se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function yr(e){return!!this.isValid()&&(e=e?Gn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Mr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xr(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return M(t,this),(t=Wn(t))._a?(e=t._isUTC?m(t._a):Gn(t._a),this._isDSTShifted=this.isValid()&&sr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wr(){return!!this.isValid()&&!this._isUTC}function Hr(){return!!this.isValid()&&this._isUTC}function Vr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,kr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Lr(e,t){var n,r,a,o=e,c=null;return cr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:h(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(c=Cr.exec(e))?(n="-"===c[1]?-1:1,o={y:0,d:he(c[We])*n,h:he(c[Ue])*n,m:he(c[Ke])*n,s:he(c[Ge])*n,ms:he(ir(1e3*c[qe]))*n}):(c=kr.exec(e))?(n="-"===c[1]?-1:1,o={y:Er(c[2],n),M:Er(c[3],n),w:Er(c[4],n),d:Er(c[5],n),h:Er(c[6],n),m:Er(c[7],n),s:Er(c[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(a=_r(Gn(o.from),Gn(o.to)),(o={}).ms=a.milliseconds,o.M=a.months),r=new or(o),cr(e)&&i(e,"_locale")&&(r._locale=e._locale),cr(e)&&i(e,"_isValid")&&(r._isValid=e._isValid),r}function Er(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Sr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function _r(e,t){var n;return e.isValid()&&t.isValid()?(t=ur(t,e),e.isBefore(t)?n=Sr(e,t):((n=Sr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ar(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(L(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),Dr(this,Lr(n,r),e),this}}function Dr(e,t,n,a){var o=t._milliseconds,c=ir(t._days),i=ir(t._months);e.isValid()&&(a=null==a||a,i&&lt(e,de(e,"Month")+i*n),c&&ue(e,"Date",de(e,"Date")+c*n),o&&e._d.setTime(e._d.valueOf()+o*n),a&&r.updateOffset(e,c||i))}Lr.fn=or.prototype,Lr.invalid=ar;var Or=Ar(1,"add"),Ir=Ar(-1,"subtract");function Nr(e){return"string"==typeof e||e instanceof String}function Pr(e){return w(e)||p(e)||Nr(e)||h(e)||Rr(e)||Tr(e)||null==e}function Tr(e){var t,n,r=c(e)&&!s(e),a=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<o.length;t+=1)n=o[t],a=a||i(e,n);return r&&a}function Rr(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!h(t)&&Nr(e)})).length),t&&n}function Fr(e){var t,n,r=c(e)&&!s(e),a=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],a=a||i(e,n);return r&&a}function jr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yr(e,t){1===arguments.length&&(arguments[0]?Pr(arguments[0])?(e=arguments[0],t=void 0):Fr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Gn(),a=ur(n,this).startOf("day"),o=r.calendarFormat(this,a)||"sameElse",c=t&&(E(t[o])?t[o].call(this,n):t[o]);return this.format(c||this.localeData().calendar(o,this,Gn(n)))}function Br(){return new x(this)}function $r(e,t){var n=w(e)?e:Gn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=w(e)?e:Gn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Ur(e,t,n,r){var a=w(e)?e:Gn(e),o=w(t)?t:Gn(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Kr(e,t){var n,r=w(e)?e:Gn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Gr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function qr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Zr(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(!(r=ur(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":o=Xr(this,r)/12;break;case"month":o=Xr(this,r);break;case"quarter":o=Xr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return n?o:le(o)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ea(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,a="moment",o="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ta(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)}function na(e,t){return this.isValid()&&(w(e)&&e.isValid()||Gn(e).isValid())?Lr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ra(e){return this.from(Gn(),e)}function aa(e,t){return this.isValid()&&(w(e)&&e.isValid()||Gn(e).isValid())?Lr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oa(e){return this.to(Gn(),e)}function ca(e){var t;return void 0===e?this._locale._abbr:(null!=(t=gn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ia=V("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function sa(){return this._locale}var la=1e3,ha=60*la,pa=60*ha,da=3506328*pa;function ua(e,t){return(e%t+t)%t}function ma(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-da:new Date(e,t,n).valueOf()}function va(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-da:Date.UTC(e,t,n)}function fa(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?va:ma,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ua(t+(this._isUTC?0:this.utcOffset()*ha),pa);break;case"minute":t=this._d.valueOf(),t-=ua(t,ha);break;case"second":t=this._d.valueOf(),t-=ua(t,la)}return this._d.setTime(t),r.updateOffset(this,!0),this}function ga(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?va:ma,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=pa-ua(t+(this._isUTC?0:this.utcOffset()*ha),pa)-1;break;case"minute":t=this._d.valueOf(),t+=ha-ua(t,ha)-1;break;case"second":t=this._d.valueOf(),t+=la-ua(t,la)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function ba(){return this._d.valueOf()-6e4*(this._offset||0)}function za(){return Math.floor(this.valueOf()/1e3)}function ya(){return new Date(this.valueOf())}function Ma(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xa(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function wa(){return this.isValid()?this.toISOString():null}function Ha(){return g(this)}function Va(){return u({},f(this))}function Ca(){return f(this).overflow}function ka(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function La(e,t){var n,a,o,c=this._eras||gn("en")._eras;for(n=0,a=c.length;n<a;++n)switch("string"==typeof c[n].since&&(o=r(c[n].since).startOf("day"),c[n].since=o.valueOf()),typeof c[n].until){case"undefined":c[n].until=1/0;break;case"string":o=r(c[n].until).startOf("day").valueOf(),c[n].until=o.valueOf()}return c}function Ea(e,t,n){var r,a,o,c,i,s=this.eras();for(e=e.toUpperCase(),r=0,a=s.length;r<a;++r)if(o=s[r].name.toUpperCase(),c=s[r].abbr.toUpperCase(),i=s[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(c===e)return s[r];break;case"NNNN":if(o===e)return s[r];break;case"NNNNN":if(i===e)return s[r]}else if([o,c,i].indexOf(e)>=0)return s[r]}function Sa(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function _a(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Aa(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Da(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Oa(){var e,t,n,a,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,a=this.clone().startOf("day").valueOf(),o[e].since<=a&&a<=o[e].until||o[e].until<=a&&a<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Ia(e){return i(this,"_erasNameRegex")||Ya.call(this),e?this._erasNameRegex:this._erasRegex}function Na(e){return i(this,"_erasAbbrRegex")||Ya.call(this),e?this._erasAbbrRegex:this._erasRegex}function Pa(e){return i(this,"_erasNarrowRegex")||Ya.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ta(e,t){return t.erasAbbrRegex(e)}function Ra(e,t){return t.erasNameRegex(e)}function Fa(e,t){return t.erasNarrowRegex(e)}function ja(e,t){return t._eraYearOrdinalRegex||Le}function Ya(){var e,t,n=[],r=[],a=[],o=[],c=this.eras();for(e=0,t=c.length;e<t;++e)r.push(Pe(c[e].name)),n.push(Pe(c[e].abbr)),a.push(Pe(c[e].narrow)),o.push(Pe(c[e].name)),o.push(Pe(c[e].abbr)),o.push(Pe(c[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Ba(e,t){F(0,[e,e.length],0,t)}function $a(e){return Za.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wa(e){return Za.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ua(){return wt(this.year(),1,4)}function Ka(){return wt(this.isoWeekYear(),1,4)}function Ga(){var e=this.localeData()._week;return wt(this.year(),e.dow,e.doy)}function qa(){var e=this.localeData()._week;return wt(this.weekYear(),e.dow,e.doy)}function Za(e,t,n,r,a){var o;return null==e?xt(this,r,a).year:(t>(o=wt(e,r,a))&&(t=o),Xa.call(this,e,t,n,r,a))}function Xa(e,t,n,r,a){var o=Mt(e,t,n,r,a),c=zt(o.year,0,o.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}function Ja(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),Oe("N",Ta),Oe("NN",Ta),Oe("NNN",Ta),Oe("NNNN",Ra),Oe("NNNNN",Fa),Re(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?f(n).era=a:f(n).invalidEra=e})),Oe("y",Le),Oe("yy",Le),Oe("yyy",Le),Oe("yyyy",Le),Oe("yo",ja),Re(["y","yy","yyy","yyyy"],Be),Re(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Be]=n._locale.eraYearOrdinalParse(e,a):t[Be]=parseInt(e,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ba("gggg","weekYear"),Ba("ggggg","weekYear"),Ba("GGGG","isoWeekYear"),Ba("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ce("weekYear",1),ce("isoWeekYear",1),Oe("G",Ee),Oe("g",Ee),Oe("GG",xe,be),Oe("gg",xe,be),Oe("GGGG",Ce,ye),Oe("gggg",Ce,ye),Oe("GGGGG",ke,Me),Oe("ggggg",ke,Me),Fe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=he(e)})),Fe(["gg","GG"],(function(e,t,n,a){t[a]=r.parseTwoDigitYear(e)})),F("Q",0,"Qo","quarter"),ne("quarter","Q"),ce("quarter",7),Oe("Q",ge),Re("Q",(function(e,t){t[$e]=3*(he(e)-1)})),F("D",["DD",2],"Do","date"),ne("date","D"),ce("date",9),Oe("D",xe),Oe("DD",xe,be),Oe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Re(["D","DD"],We),Re("Do",(function(e,t){t[We]=he(e.match(xe)[0])}));var Qa=pe("Date",!0);function eo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}F("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ce("dayOfYear",4),Oe("DDD",Ve),Oe("DDDD",ze),Re(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=he(e)})),F("m",["mm",2],0,"minute"),ne("minute","m"),ce("minute",14),Oe("m",xe),Oe("mm",xe,be),Re(["m","mm"],Ke);var to=pe("Minutes",!1);F("s",["ss",2],0,"second"),ne("second","s"),ce("second",15),Oe("s",xe),Oe("ss",xe,be),Re(["s","ss"],Ge);var no,ro,ao=pe("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ce("millisecond",16),Oe("S",Ve,ge),Oe("SS",Ve,be),Oe("SSS",Ve,ze),no="SSSS";no.length<=9;no+="S")Oe(no,Le);function oo(e,t){t[qe]=he(1e3*("0."+e))}for(no="S";no.length<=9;no+="S")Re(no,oo);function co(){return this._isUTC?"UTC":""}function io(){return this._isUTC?"Coordinated Universal Time":""}ro=pe("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var so=x.prototype;function lo(e){return Gn(1e3*e)}function ho(){return Gn.apply(null,arguments).parseZone()}function po(e){return e}so.add=Or,so.calendar=Yr,so.clone=Br,so.diff=Zr,so.endOf=ga,so.format=ta,so.from=na,so.fromNow=ra,so.to=aa,so.toNow=oa,so.get=me,so.invalidAt=Ca,so.isAfter=$r,so.isBefore=Wr,so.isBetween=Ur,so.isSame=Kr,so.isSameOrAfter=Gr,so.isSameOrBefore=qr,so.isValid=Ha,so.lang=ia,so.locale=ca,so.localeData=sa,so.max=Zn,so.min=qn,so.parsingFlags=Va,so.set=ve,so.startOf=fa,so.subtract=Ir,so.toArray=Ma,so.toObject=xa,so.toDate=ya,so.toISOString=Qr,so.inspect=ea,"undefined"!=typeof Symbol&&null!=Symbol.for&&(so[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),so.toJSON=wa,so.toString=Jr,so.unix=za,so.valueOf=ba,so.creationData=ka,so.eraName=_a,so.eraNarrow=Aa,so.eraAbbr=Da,so.eraYear=Oa,so.year=ft,so.isLeapYear=gt,so.weekYear=$a,so.isoWeekYear=Wa,so.quarter=so.quarters=Ja,so.month=ht,so.daysInMonth=pt,so.week=so.weeks=Lt,so.isoWeek=so.isoWeeks=Et,so.weeksInYear=Ga,so.weeksInWeekYear=qa,so.isoWeeksInYear=Ua,so.isoWeeksInISOWeekYear=Ka,so.date=Qa,so.day=so.days=$t,so.weekday=Wt,so.isoWeekday=Ut,so.dayOfYear=eo,so.hour=so.hours=rn,so.minute=so.minutes=to,so.second=so.seconds=ao,so.millisecond=so.milliseconds=ro,so.utcOffset=vr,so.utc=gr,so.local=br,so.parseZone=zr,so.hasAlignedHourOffset=yr,so.isDST=Mr,so.isLocal=wr,so.isUtcOffset=Hr,so.isUtc=Vr,so.isUTC=Vr,so.zoneAbbr=co,so.zoneName=io,so.dates=V("dates accessor is deprecated. Use date instead.",Qa),so.months=V("months accessor is deprecated. Use month instead",ht),so.years=V("years accessor is deprecated. Use year instead",ft),so.zone=V("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fr),so.isDSTShifted=V("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xr);var uo=A.prototype;function mo(e,t,n,r){var a=gn(),o=m().set(r,t);return a[n](o,e)}function vo(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return mo(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=mo(e,r,n,"month");return a}function fo(e,t,n,r){"boolean"==typeof e?(h(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,h(t)&&(n=t,t=void 0),t=t||"");var a,o=gn(),c=e?o._week.dow:0,i=[];if(null!=n)return mo(t,(n+c)%7,r,"day");for(a=0;a<7;a++)i[a]=mo(t,(a+c)%7,r,"day");return i}function go(e,t){return vo(e,t,"months")}function bo(e,t){return vo(e,t,"monthsShort")}function zo(e,t,n){return fo(e,t,n,"weekdays")}function yo(e,t,n){return fo(e,t,n,"weekdaysShort")}function Mo(e,t,n){return fo(e,t,n,"weekdaysMin")}uo.calendar=O,uo.longDateFormat=U,uo.invalidDate=G,uo.ordinal=X,uo.preparse=po,uo.postformat=po,uo.relativeTime=Q,uo.pastFuture=ee,uo.set=S,uo.eras=La,uo.erasParse=Ea,uo.erasConvertYear=Sa,uo.erasAbbrRegex=Na,uo.erasNameRegex=Ia,uo.erasNarrowRegex=Pa,uo.months=ot,uo.monthsShort=ct,uo.monthsParse=st,uo.monthsRegex=ut,uo.monthsShortRegex=dt,uo.week=Ht,uo.firstDayOfYear=kt,uo.firstDayOfWeek=Ct,uo.weekdays=Rt,uo.weekdaysMin=jt,uo.weekdaysShort=Ft,uo.weekdaysParse=Bt,uo.weekdaysRegex=Kt,uo.weekdaysShortRegex=Gt,uo.weekdaysMinRegex=qt,uo.isPM=tn,uo.meridiem=an,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===he(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=V("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=V("moment.langData is deprecated. Use moment.localeData instead.",gn);var xo=Math.abs;function wo(){var e=this._data;return this._milliseconds=xo(this._milliseconds),this._days=xo(this._days),this._months=xo(this._months),e.milliseconds=xo(e.milliseconds),e.seconds=xo(e.seconds),e.minutes=xo(e.minutes),e.hours=xo(e.hours),e.months=xo(e.months),e.years=xo(e.years),this}function Ho(e,t,n,r){var a=Lr(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Vo(e,t){return Ho(this,e,t,1)}function Co(e,t){return Ho(this,e,t,-1)}function ko(e){return e<0?Math.floor(e):Math.ceil(e)}function Lo(){var e,t,n,r,a,o=this._milliseconds,c=this._days,i=this._months,s=this._data;return o>=0&&c>=0&&i>=0||o<=0&&c<=0&&i<=0||(o+=864e5*ko(So(i)+c),c=0,i=0),s.milliseconds=o%1e3,e=le(o/1e3),s.seconds=e%60,t=le(e/60),s.minutes=t%60,n=le(t/60),s.hours=n%24,c+=le(n/24),i+=a=le(Eo(c)),c-=ko(So(a)),r=le(i/12),i%=12,s.days=c,s.months=i,s.years=r,this}function Eo(e){return 4800*e/146097}function So(e){return 146097*e/4800}function _o(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Eo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(So(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ao(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*he(this._months/12):NaN}function Do(e){return function(){return this.as(e)}}var Oo=Do("ms"),Io=Do("s"),No=Do("m"),Po=Do("h"),To=Do("d"),Ro=Do("w"),Fo=Do("M"),jo=Do("Q"),Yo=Do("y");function Bo(){return Lr(this)}function $o(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Wo(e){return function(){return this.isValid()?this._data[e]:NaN}}var Uo=Wo("milliseconds"),Ko=Wo("seconds"),Go=Wo("minutes"),qo=Wo("hours"),Zo=Wo("days"),Xo=Wo("months"),Jo=Wo("years");function Qo(){return le(this.days()/7)}var ec=Math.round,tc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function nc(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function rc(e,t,n,r){var a=Lr(e).abs(),o=ec(a.as("s")),c=ec(a.as("m")),i=ec(a.as("h")),s=ec(a.as("d")),l=ec(a.as("M")),h=ec(a.as("w")),p=ec(a.as("y")),d=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||c<=1&&["m"]||c<n.m&&["mm",c]||i<=1&&["h"]||i<n.h&&["hh",i]||s<=1&&["d"]||s<n.d&&["dd",s];return null!=n.w&&(d=d||h<=1&&["w"]||h<n.w&&["ww",h]),(d=d||l<=1&&["M"]||l<n.M&&["MM",l]||p<=1&&["y"]||["yy",p])[2]=t,d[3]=+e>0,d[4]=r,nc.apply(null,d)}function ac(e){return void 0===e?ec:"function"==typeof e&&(ec=e,!0)}function oc(e,t){return void 0!==tc[e]&&(void 0===t?tc[e]:(tc[e]=t,"s"===e&&(tc.ss=t-1),!0))}function cc(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,o=tc;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(o=Object.assign({},tc,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=rc(this,!a,o,n=this.localeData()),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ic=Math.abs;function sc(e){return(e>0)-(e<0)||+e}function lc(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,o,c,i,s=ic(this._milliseconds)/1e3,l=ic(this._days),h=ic(this._months),p=this.asSeconds();return p?(e=le(s/60),t=le(e/60),s%=60,e%=60,n=le(h/12),h%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",a=p<0?"-":"",o=sc(this._months)!==sc(p)?"-":"",c=sc(this._days)!==sc(p)?"-":"",i=sc(this._milliseconds)!==sc(p)?"-":"",a+"P"+(n?o+n+"Y":"")+(h?o+h+"M":"")+(l?c+l+"D":"")+(t||e||s?"T":"")+(t?i+t+"H":"")+(e?i+e+"M":"")+(s?i+r+"S":"")):"P0D"}var hc=or.prototype;return hc.isValid=rr,hc.abs=wo,hc.add=Vo,hc.subtract=Co,hc.as=_o,hc.asMilliseconds=Oo,hc.asSeconds=Io,hc.asMinutes=No,hc.asHours=Po,hc.asDays=To,hc.asWeeks=Ro,hc.asMonths=Fo,hc.asQuarters=jo,hc.asYears=Yo,hc.valueOf=Ao,hc._bubble=Lo,hc.clone=Bo,hc.get=$o,hc.milliseconds=Uo,hc.seconds=Ko,hc.minutes=Go,hc.hours=qo,hc.days=Zo,hc.weeks=Qo,hc.months=Xo,hc.years=Jo,hc.humanize=cc,hc.toISOString=lc,hc.toString=lc,hc.toJSON=lc,hc.locale=ca,hc.localeData=sa,hc.toIsoString=V("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lc),hc.lang=ia,F("X",0,0,"unix"),F("x",0,0,"valueOf"),Oe("x",Ee),Oe("X",Ae),Re("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Re("x",(function(e,t,n){n._d=new Date(he(e))})),
1062
+ `,Jh=t=>{const{items:n,children:a,defaultSelectedItem:o,label:c="",placeholder:i,errorText:s,itemToString:l,itemComponent:h,onChange:p=(e=>e),type:d=wh.BUTTON,filterKey:u,width:m="100%",disabled:v,isErrored:f,isRequired:g,overrideButtonStyles:b,overrideContainerStyles:z,isMenuLoading:y,...M}=t;let x;"object"!=typeof n[0]||l?x=e=>e?l?l(e):"object"!=typeof e?String(e):null:null:console.warn("Your items are objects. So you need to pass a function to translate each object as a string which can be shown as dropdown item labels");const w=r(null),H=r(null);return e.createElement("div",null,e.createElement(Yi,Object.assign({itemToString:x,selectedItem:o,onChange:p},M),(t=>e.createElement(Xh,Object.assign({width:m,isRequired:g},t.getRootProps()),c&&e.createElement("label",Object.assign({},t.getLabelProps()),c),e.createElement(Hh.Provider,{value:{downshift:t,items:n,filterKey:u,type:d,name:M.name}},a||e.createElement(e.Fragment,null,wh.BUTTON===d&&e.createElement(Lh,{disabled:v,ref:w,isErrored:f,overrideStyles:b,placeholder:i}),wh.INPUT===d&&e.createElement(qh,{ref:w,placeholder:i,isErrored:f,disabled:v}),e.createElement(rh,{targetRef:w,position:sh,ref:H},e.createElement(e.Fragment,null,e.createElement(Uh,{anchorRef:w,popoverRef:H,itemComponent:h,isErrored:f,overrideStyles:z,isMenuLoading:y})))))))),f&&s&&e.createElement(Zh,null,s))};var Qh,ep,tp,np,rp=sr((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}function a(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function c(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(i(e,t))return!1;return!0}function l(e){return void 0===e}function h(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function p(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function u(e,t){for(var n in t)i(t,n)&&(e[n]=t[n]);return i(t,"toString")&&(e.toString=t.toString),i(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,r){return Kn(e,t,n,r,!0).utc()}function v(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(e){return null==e._pf&&(e._pf=v()),e._pf}function g(e){if(null==e._isValid){var t=f(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function b(e){var t=m(NaN);return null!=e?u(f(t),e):f(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var z=r.momentProperties=[],y=!1;function M(e,t){var n,r,a;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=f(t)),l(t._locale)||(e._locale=t._locale),z.length>0)for(n=0;n<z.length;n++)l(a=t[r=z[n]])||(e[r]=a);return e}function x(e){M(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function w(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function H(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function V(e,t){var n=!0;return u((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var a,o,c,s=[];for(o=0;o<arguments.length;o++){if(a="","object"==typeof arguments[o]){for(c in a+="\n["+o+"] ",arguments[0])i(arguments[0],c)&&(a+=c+": "+arguments[0][c]+", ");a=a.slice(0,-2)}else a=arguments[o];s.push(a)}H(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var C,k={};function L(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),k[e]||(H(t),k[e]=!0)}function E(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e){var t,n;for(n in e)i(e,n)&&(E(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function _(e,t){var n,r=u({},e);for(n in t)i(t,n)&&(c(e[n])&&c(t[n])?(r[n]={},u(r[n],e[n]),u(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)i(e,n)&&!i(t,n)&&c(e[n])&&(r[n]=u({},r[n]));return r}function A(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)i(e,t)&&n.push(t);return n};var D={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function O(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return E(r)?r.call(t,n):r}function I(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,T={},R={};function F(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(R[e]=a),t&&(R[t[0]]=function(){return I(a.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function j(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Y(e){var t,n,r=e.match(N);for(t=0,n=r.length;t<n;t++)R[r[t]]?r[t]=R[r[t]]:r[t]=j(r[t]);return function(t){var a,o="";for(a=0;a<n;a++)o+=E(r[a])?r[a].call(t,e):r[a];return o}}function B(e,t){return e.isValid()?(t=$(t,e.localeData()),T[t]=T[t]||Y(t),T[t](e)):e.localeData().invalidDate()}function $(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(P.lastIndex=0;n>=0&&P.test(e);)e=e.replace(P,r),P.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function U(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var K="Invalid date";function G(){return this._invalidDate}var q="%d",Z=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var a=this._relativeTime[n];return E(a)?a(e,t,n,r):a.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function ae(e){var t,n,r={};for(n in e)i(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={};function ce(e,t){oe[e]=t}function ie(e){var t,n=[];for(t in e)i(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function se(e){return e%4==0&&e%100!=0||e%400==0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function he(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=le(t)),n}function pe(e,t){return function(n){return null!=n?(ue(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ue(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&se(e.year())&&1===e.month()&&29===e.date()?(n=he(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Qe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function me(e){return E(this[e=re(e)])?this[e]():this}function ve(e,t){if("object"==typeof e){var n,r=ie(e=ae(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(E(this[e=re(e)]))return this[e](t);return this}var fe,ge=/\d/,be=/\d\d/,ze=/\d{3}/,ye=/\d{4}/,Me=/[+-]?\d{6}/,xe=/\d\d?/,we=/\d\d\d\d?/,He=/\d\d\d\d\d\d?/,Ve=/\d{1,3}/,Ce=/\d{1,4}/,ke=/[+-]?\d{1,6}/,Le=/\d+/,Ee=/[+-]?\d+/,Se=/Z|[+-]\d\d:?\d\d/gi,_e=/Z|[+-]\d\d(?::?\d\d)?/gi,Ae=/[+-]?\d+(\.\d{1,3})?/,De=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Oe(e,t,n){fe[e]=E(t)?t:function(e,r){return e&&n?n:t}}function Ie(e,t){return i(fe,e)?fe[e](t._strict,t._locale):new RegExp(Ne(e))}function Ne(e){return Pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a})))}function Pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}fe={};var Te={};function Re(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),h(t)&&(r=function(e,n){n[t]=he(e)}),n=0;n<e.length;n++)Te[e[n]]=r}function Fe(e,t){Re(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function je(e,t,n){null!=t&&i(Te,e)&&Te[e](t,n._a,n,e)}var Ye,Be=0,$e=1,We=2,Ue=3,Ke=4,Ge=5,qe=6,Ze=7,Xe=8;function Je(e,t){return(e%t+t)%t}function Qe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Je(t,12);return e+=(t-n)/12,1===n?se(e)?29:28:31-n%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),F("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),ce("month",8),Oe("M",xe),Oe("MM",xe,be),Oe("MMM",(function(e,t){return t.monthsShortRegex(e)})),Oe("MMMM",(function(e,t){return t.monthsRegex(e)})),Re(["M","MM"],(function(e,t){t[$e]=he(e)-1})),Re(["MMM","MMMM"],(function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[$e]=a:f(n).invalidMonth=e}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=De,at=De;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function ct(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function it(e,t,n){var r,a,o,c=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Ye.call(this._shortMonthsParse,c))?a:null:-1!==(a=Ye.call(this._longMonthsParse,c))?a:null:"MMM"===t?-1!==(a=Ye.call(this._shortMonthsParse,c))||-1!==(a=Ye.call(this._longMonthsParse,c))?a:null:-1!==(a=Ye.call(this._longMonthsParse,c))||-1!==(a=Ye.call(this._shortMonthsParse,c))?a:null}function st(e,t,n){var r,a,o;if(this._monthsParseExact)return it.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=m([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function lt(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=he(t);else if(!h(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Qe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ht(e){return null!=e?(lt(this,e),r.updateOffset(this,!0),this):de(this,"Month")}function pt(){return Qe(this.year(),this.month())}function dt(e){return this._monthsParseExact?(i(this,"_monthsRegex")||mt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(i(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ut(e){return this._monthsParseExact?(i(this,"_monthsRegex")||mt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(i(this,"_monthsRegex")||(this._monthsRegex=at),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function mt(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],o=[];for(t=0;t<12;t++)n=m([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Pe(r[t]),a[t]=Pe(a[t]);for(t=0;t<24;t++)o[t]=Pe(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function vt(e){return se(e)?366:365}F("Y",0,0,(function(){var e=this.year();return e<=9999?I(e,4):"+"+e})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),ne("year","y"),ce("year",1),Oe("Y",Ee),Oe("YY",xe,be),Oe("YYYY",Ce,ye),Oe("YYYYY",ke,Me),Oe("YYYYYY",ke,Me),Re(["YYYYY","YYYYYY"],Be),Re("YYYY",(function(e,t){t[Be]=2===e.length?r.parseTwoDigitYear(e):he(e)})),Re("YY",(function(e,t){t[Be]=r.parseTwoDigitYear(e)})),Re("Y",(function(e,t){t[Be]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return he(e)+(he(e)>68?1900:2e3)};var ft=pe("FullYear",!0);function gt(){return se(this.year())}function bt(e,t,n,r,a,o,c){var i;return e<100&&e>=0?(i=new Date(e+400,t,n,r,a,o,c),isFinite(i.getFullYear())&&i.setFullYear(e)):i=new Date(e,t,n,r,a,o,c),i}function zt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function yt(e,t,n){var r=7+t-n;return-(7+zt(e,0,r).getUTCDay()-t)%7+r-1}function Mt(e,t,n,r,a){var o,c,i=1+7*(t-1)+(7+n-r)%7+yt(e,r,a);return i<=0?c=vt(o=e-1)+i:i>vt(e)?(o=e+1,c=i-vt(e)):(o=e,c=i),{year:o,dayOfYear:c}}function xt(e,t,n){var r,a,o=yt(e.year(),t,n),c=Math.floor((e.dayOfYear()-o-1)/7)+1;return c<1?r=c+wt(a=e.year()-1,t,n):c>wt(e.year(),t,n)?(r=c-wt(e.year(),t,n),a=e.year()+1):(a=e.year(),r=c),{week:r,year:a}}function wt(e,t,n){var r=yt(e,t,n),a=yt(e+1,t,n);return(vt(e)-r+a)/7}function Ht(e){return xt(e,this._week.dow,this._week.doy).week}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ce("week",5),ce("isoWeek",5),Oe("w",xe),Oe("ww",xe,be),Oe("W",xe),Oe("WW",xe,be),Fe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=he(e)}));var Vt={dow:0,doy:6};function Ct(){return this._week.dow}function kt(){return this._week.doy}function Lt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Et(e){var t=xt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function St(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function _t(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function At(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("d",0,"do","day"),F("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),F("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),F("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ce("day",11),ce("weekday",11),ce("isoWeekday",11),Oe("d",xe),Oe("e",xe),Oe("E",xe),Oe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Oe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Oe("dddd",(function(e,t){return t.weekdaysRegex(e)})),Fe(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:f(n).invalidWeekday=e})),Fe(["d","e","E"],(function(e,t,n,r){t[r]=he(e)}));var Dt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ot="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nt=De,Pt=De,Tt=De;function Rt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?At(n,this._week.dow):e?n[e.day()]:n}function Ft(e){return!0===e?At(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function jt(e){return!0===e?At(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yt(e,t,n){var r,a,o,c=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Ye.call(this._weekdaysParse,c))?a:null:"ddd"===t?-1!==(a=Ye.call(this._shortWeekdaysParse,c))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,c))?a:null:"dddd"===t?-1!==(a=Ye.call(this._weekdaysParse,c))||-1!==(a=Ye.call(this._shortWeekdaysParse,c))||-1!==(a=Ye.call(this._minWeekdaysParse,c))?a:null:"ddd"===t?-1!==(a=Ye.call(this._shortWeekdaysParse,c))||-1!==(a=Ye.call(this._weekdaysParse,c))||-1!==(a=Ye.call(this._minWeekdaysParse,c))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,c))||-1!==(a=Ye.call(this._weekdaysParse,c))||-1!==(a=Ye.call(this._shortWeekdaysParse,c))?a:null}function Bt(e,t,n){var r,a,o;if(this._weekdaysParseExact)return Yt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function $t(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=St(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ut(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=_t(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Kt(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(i(this,"_weekdaysRegex")||(this._weekdaysRegex=Nt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gt(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Pt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qt(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Tt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zt(){function e(e,t){return t.length-e.length}var t,n,r,a,o,c=[],i=[],s=[],l=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),r=Pe(this.weekdaysMin(n,"")),a=Pe(this.weekdaysShort(n,"")),o=Pe(this.weekdays(n,"")),c.push(r),i.push(a),s.push(o),l.push(r),l.push(a),l.push(o);c.sort(e),i.sort(e),s.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+c.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Jt(){return this.hours()||24}function Qt(e,t){F(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Xt),F("k",["kk",2],0,Jt),F("hmm",0,0,(function(){return""+Xt.apply(this)+I(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Xt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),Qt("a",!0),Qt("A",!1),ne("hour","h"),ce("hour",13),Oe("a",en),Oe("A",en),Oe("H",xe),Oe("h",xe),Oe("k",xe),Oe("HH",xe,be),Oe("hh",xe,be),Oe("kk",xe,be),Oe("hmm",we),Oe("hmmss",He),Oe("Hmm",we),Oe("Hmmss",He),Re(["H","HH"],Ue),Re(["k","kk"],(function(e,t,n){var r=he(e);t[Ue]=24===r?0:r})),Re(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Re(["h","hh"],(function(e,t,n){t[Ue]=he(e),f(n).bigHour=!0})),Re("hmm",(function(e,t,n){var r=e.length-2;t[Ue]=he(e.substr(0,r)),t[Ke]=he(e.substr(r)),f(n).bigHour=!0})),Re("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[Ue]=he(e.substr(0,r)),t[Ke]=he(e.substr(r,2)),t[Ge]=he(e.substr(a)),f(n).bigHour=!0})),Re("Hmm",(function(e,t,n){var r=e.length-2;t[Ue]=he(e.substr(0,r)),t[Ke]=he(e.substr(r))})),Re("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[Ue]=he(e.substr(0,r)),t[Ke]=he(e.substr(r,2)),t[Ge]=he(e.substr(a))}));var nn=/[ap]\.?m?\.?/i,rn=pe("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,cn={calendar:D,longDateFormat:W,invalidDate:K,ordinal:q,dayOfMonthOrdinalParse:Z,relativeTime:J,months:et,monthsShort:tt,week:Vt,weekdays:Dt,weekdaysMin:It,weekdaysShort:Ot,meridiemParse:nn},sn={},ln={};function hn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function pn(e){return e?e.toLowerCase().replace("_","-"):e}function dn(e){for(var t,n,r,a,o=0;o<e.length;){for(t=(a=pn(e[o]).split("-")).length,n=(n=pn(e[o+1]))?n.split("-"):null;t>0;){if(r=un(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&hn(a,n)>=t-1)break;t--}o++}return on}function un(t){var n=null;if(void 0===sn[t]&&e&&e.exports)try{n=on._abbr,lr(),mn(n)}catch(e){sn[t]=null}return sn[t]}function mn(e,t){var n;return e&&((n=l(t)?gn(e):vn(e,t))?on=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function vn(e,t){if(null!==t){var n,r=cn;if(t.abbr=e,null!=sn[e])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=sn[e]._config;else if(null!=t.parentLocale)if(null!=sn[t.parentLocale])r=sn[t.parentLocale]._config;else{if(null==(n=un(t.parentLocale)))return ln[t.parentLocale]||(ln[t.parentLocale]=[]),ln[t.parentLocale].push({name:e,config:t}),null;r=n._config}return sn[e]=new A(_(r,t)),ln[e]&&ln[e].forEach((function(e){vn(e.name,e.config)})),mn(e),sn[e]}return delete sn[e],null}function fn(e,t){if(null!=t){var n,r,a=cn;null!=sn[e]&&null!=sn[e].parentLocale?sn[e].set(_(sn[e]._config,t)):(null!=(r=un(e))&&(a=r._config),t=_(a,t),null==r&&(t.abbr=e),(n=new A(t)).parentLocale=sn[e],sn[e]=n),mn(e)}else null!=sn[e]&&(null!=sn[e].parentLocale?(sn[e]=sn[e].parentLocale,e===mn()&&mn(e)):null!=sn[e]&&delete sn[e]);return sn[e]}function gn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!o(e)){if(t=un(e))return t;e=[e]}return dn(e)}function bn(){return C(sn)}function zn(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[$e]<0||n[$e]>11?$e:n[We]<1||n[We]>Qe(n[Be],n[$e])?We:n[Ue]<0||n[Ue]>24||24===n[Ue]&&(0!==n[Ke]||0!==n[Ge]||0!==n[qe])?Ue:n[Ke]<0||n[Ke]>59?Ke:n[Ge]<0||n[Ge]>59?Ge:n[qe]<0||n[qe]>999?qe:-1,f(e)._overflowDayOfYear&&(t<Be||t>We)&&(t=We),f(e)._overflowWeeks&&-1===t&&(t=Ze),f(e)._overflowWeekday&&-1===t&&(t=Xe),f(e).overflow=t),e}var yn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,wn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Hn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Vn=/^\/?Date\((-?\d+)/i,Cn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,kn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ln(e){var t,n,r,a,o,c,i=e._i,s=yn.exec(i)||Mn.exec(i);if(s){for(f(e).iso=!0,t=0,n=wn.length;t<n;t++)if(wn[t][1].exec(s[1])){a=wn[t][0],r=!1!==wn[t][2];break}if(null==a)return void(e._isValid=!1);if(s[3]){for(t=0,n=Hn.length;t<n;t++)if(Hn[t][1].exec(s[3])){o=(s[2]||" ")+Hn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(s[4]){if(!xn.exec(s[4]))return void(e._isValid=!1);c="Z"}e._f=a+(o||"")+(c||""),Fn(e)}else e._isValid=!1}function En(e,t,n,r,a,o){var c=[Sn(e),tt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return o&&c.push(parseInt(o,10)),c}function Sn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function _n(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function An(e,t,n){return!e||Ot.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Dn(e,t,n){if(e)return kn[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}function On(e){var t,n=Cn.exec(_n(e._i));if(n){if(t=En(n[4],n[3],n[2],n[5],n[6],n[7]),!An(n[1],t,e))return;e._a=t,e._tzm=Dn(n[8],n[9],n[10]),e._d=zt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function In(e){var t=Vn.exec(e._i);null===t?(Ln(e),!1===e._isValid&&(delete e._isValid,On(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Nn(e,t,n){return null!=e?e:null!=t?t:n}function Pn(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Tn(e){var t,n,r,a,o,c=[];if(!e._d){for(r=Pn(e),e._w&&null==e._a[We]&&null==e._a[$e]&&Rn(e),null!=e._dayOfYear&&(o=Nn(e._a[Be],r[Be]),(e._dayOfYear>vt(o)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=zt(o,0,e._dayOfYear),e._a[$e]=n.getUTCMonth(),e._a[We]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=r[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ue]&&0===e._a[Ke]&&0===e._a[Ge]&&0===e._a[qe]&&(e._nextDay=!0,e._a[Ue]=0),e._d=(e._useUTC?zt:bt).apply(null,c),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ue]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(f(e).weekdayMismatch=!0)}}function Rn(e){var t,n,r,a,o,c,i,s,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,c=4,n=Nn(t.GG,e._a[Be],xt(Gn(),1,4).year),r=Nn(t.W,1),((a=Nn(t.E,1))<1||a>7)&&(s=!0)):(o=e._locale._week.dow,c=e._locale._week.doy,l=xt(Gn(),o,c),n=Nn(t.gg,e._a[Be],l.year),r=Nn(t.w,l.week),null!=t.d?((a=t.d)<0||a>6)&&(s=!0):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(s=!0)):a=o),r<1||r>wt(n,o,c)?f(e)._overflowWeeks=!0:null!=s?f(e)._overflowWeekday=!0:(i=Mt(n,r,a,o,c),e._a[Be]=i.year,e._dayOfYear=i.dayOfYear)}function Fn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],f(e).empty=!0;var t,n,a,o,c,i,s=""+e._i,l=s.length,h=0;for(a=$(e._f,e._locale).match(N)||[],t=0;t<a.length;t++)o=a[t],(n=(s.match(Ie(o,e))||[])[0])&&((c=s.substr(0,s.indexOf(n))).length>0&&f(e).unusedInput.push(c),s=s.slice(s.indexOf(n)+n.length),h+=n.length),R[o]?(n?f(e).empty=!1:f(e).unusedTokens.push(o),je(o,n,e)):e._strict&&!n&&f(e).unusedTokens.push(o);f(e).charsLeftOver=l-h,s.length>0&&f(e).unusedInput.push(s),e._a[Ue]<=12&&!0===f(e).bigHour&&e._a[Ue]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[Ue]=jn(e._locale,e._a[Ue],e._meridiem),null!==(i=f(e).era)&&(e._a[Be]=e._locale.erasConvertYear(i,e._a[Be])),Tn(e),zn(e)}else On(e);else Ln(e)}function jn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Yn(e){var t,n,r,a,o,c,i=!1;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)o=0,c=!1,t=M({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Fn(t),g(t)&&(c=!0),o+=f(t).charsLeftOver,o+=10*f(t).unusedTokens.length,f(t).score=o,i?o<r&&(r=o,n=t):(null==r||o<r||c)&&(r=o,n=t,c&&(i=!0));u(e,n||t)}function Bn(e){if(!e._d){var t=ae(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Tn(e)}}function $n(e){var t=new x(zn(Wn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Wn(e){var t=e._i,n=e._f;return e._locale=e._locale||gn(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new x(zn(t)):(p(t)?e._d=t:o(n)?Yn(e):n?Fn(e):Un(e),g(e)||(e._d=null),e))}function Un(e){var t=e._i;l(t)?e._d=new Date(r.now()):p(t)?e._d=new Date(t.valueOf()):"string"==typeof t?In(e):o(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Tn(e)):c(t)?Bn(e):h(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Kn(e,t,n,r,a){var i={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(c(e)&&s(e)||o(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=n,i._i=e,i._f=t,i._strict=r,$n(i)}function Gn(e,t,n,r){return Kn(e,t,n,r,!1)}r.createFromInputFallback=V("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var qn=V("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Zn=V("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function Xn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Gn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Jn(){return Xn("isBefore",[].slice.call(arguments,0))}function Qn(){return Xn("isAfter",[].slice.call(arguments,0))}var er=function(){return Date.now?Date.now():+new Date},tr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nr(e){var t,n,r=!1;for(t in e)if(i(e,t)&&(-1===Ye.call(tr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<tr.length;++n)if(e[tr[n]]){if(r)return!1;parseFloat(e[tr[n]])!==he(e[tr[n]])&&(r=!0)}return!0}function rr(){return this._isValid}function ar(){return Lr(NaN)}function or(e){var t=ae(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,c=t.day||0,i=t.hour||0,s=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=nr(t),this._milliseconds=+h+1e3*l+6e4*s+1e3*i*60*60,this._days=+c+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=gn(),this._bubble()}function cr(e){return e instanceof or}function ir(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function sr(e,t,n){var r,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),c=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&he(e[r])!==he(t[r]))&&c++;return c+o}function hr(e,t){F(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+I(~~(e/60),2)+t+I(~~e%60,2)}))}hr("Z",":"),hr("ZZ",""),Oe("Z",_e),Oe("ZZ",_e),Re(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=dr(_e,e)}));var pr=/([\+\-]|\d\d)/gi;function dr(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(pr)||["-",0,0])[1]+he(n[2]))?0:"+"===n[0]?r:-r}function ur(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(w(e)||p(e)?e.valueOf():Gn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),r.updateOffset(n,!1),n):Gn(e).local()}function mr(e){return-Math.round(e._d.getTimezoneOffset())}function vr(e,t,n){var a,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=dr(_e,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=mr(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),o!==e&&(!t||this._changeInProgress?Dr(this,Lr(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function fr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function gr(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function zr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=dr(Se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function yr(e){return!!this.isValid()&&(e=e?Gn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Mr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xr(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return M(t,this),(t=Wn(t))._a?(e=t._isUTC?m(t._a):Gn(t._a),this._isDSTShifted=this.isValid()&&sr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wr(){return!!this.isValid()&&!this._isUTC}function Hr(){return!!this.isValid()&&this._isUTC}function Vr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,kr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Lr(e,t){var n,r,a,o=e,c=null;return cr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:h(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(c=Cr.exec(e))?(n="-"===c[1]?-1:1,o={y:0,d:he(c[We])*n,h:he(c[Ue])*n,m:he(c[Ke])*n,s:he(c[Ge])*n,ms:he(ir(1e3*c[qe]))*n}):(c=kr.exec(e))?(n="-"===c[1]?-1:1,o={y:Er(c[2],n),M:Er(c[3],n),w:Er(c[4],n),d:Er(c[5],n),h:Er(c[6],n),m:Er(c[7],n),s:Er(c[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(a=_r(Gn(o.from),Gn(o.to)),(o={}).ms=a.milliseconds,o.M=a.months),r=new or(o),cr(e)&&i(e,"_locale")&&(r._locale=e._locale),cr(e)&&i(e,"_isValid")&&(r._isValid=e._isValid),r}function Er(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Sr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function _r(e,t){var n;return e.isValid()&&t.isValid()?(t=ur(t,e),e.isBefore(t)?n=Sr(e,t):((n=Sr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ar(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(L(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),Dr(this,Lr(n,r),e),this}}function Dr(e,t,n,a){var o=t._milliseconds,c=ir(t._days),i=ir(t._months);e.isValid()&&(a=null==a||a,i&&lt(e,de(e,"Month")+i*n),c&&ue(e,"Date",de(e,"Date")+c*n),o&&e._d.setTime(e._d.valueOf()+o*n),a&&r.updateOffset(e,c||i))}Lr.fn=or.prototype,Lr.invalid=ar;var Or=Ar(1,"add"),Ir=Ar(-1,"subtract");function Nr(e){return"string"==typeof e||e instanceof String}function Pr(e){return w(e)||p(e)||Nr(e)||h(e)||Rr(e)||Tr(e)||null==e}function Tr(e){var t,n,r=c(e)&&!s(e),a=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<o.length;t+=1)n=o[t],a=a||i(e,n);return r&&a}function Rr(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!h(t)&&Nr(e)})).length),t&&n}function Fr(e){var t,n,r=c(e)&&!s(e),a=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],a=a||i(e,n);return r&&a}function jr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yr(e,t){1===arguments.length&&(arguments[0]?Pr(arguments[0])?(e=arguments[0],t=void 0):Fr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Gn(),a=ur(n,this).startOf("day"),o=r.calendarFormat(this,a)||"sameElse",c=t&&(E(t[o])?t[o].call(this,n):t[o]);return this.format(c||this.localeData().calendar(o,this,Gn(n)))}function Br(){return new x(this)}function $r(e,t){var n=w(e)?e:Gn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=w(e)?e:Gn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Ur(e,t,n,r){var a=w(e)?e:Gn(e),o=w(t)?t:Gn(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Kr(e,t){var n,r=w(e)?e:Gn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Gr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function qr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Zr(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(!(r=ur(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":o=Xr(this,r)/12;break;case"month":o=Xr(this,r);break;case"quarter":o=Xr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return n?o:le(o)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ea(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,a="moment",o="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ta(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)}function na(e,t){return this.isValid()&&(w(e)&&e.isValid()||Gn(e).isValid())?Lr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ra(e){return this.from(Gn(),e)}function aa(e,t){return this.isValid()&&(w(e)&&e.isValid()||Gn(e).isValid())?Lr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oa(e){return this.to(Gn(),e)}function ca(e){var t;return void 0===e?this._locale._abbr:(null!=(t=gn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ia=V("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function sa(){return this._locale}var la=1e3,ha=60*la,pa=60*ha,da=3506328*pa;function ua(e,t){return(e%t+t)%t}function ma(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-da:new Date(e,t,n).valueOf()}function va(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-da:Date.UTC(e,t,n)}function fa(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?va:ma,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ua(t+(this._isUTC?0:this.utcOffset()*ha),pa);break;case"minute":t=this._d.valueOf(),t-=ua(t,ha);break;case"second":t=this._d.valueOf(),t-=ua(t,la)}return this._d.setTime(t),r.updateOffset(this,!0),this}function ga(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?va:ma,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=pa-ua(t+(this._isUTC?0:this.utcOffset()*ha),pa)-1;break;case"minute":t=this._d.valueOf(),t+=ha-ua(t,ha)-1;break;case"second":t=this._d.valueOf(),t+=la-ua(t,la)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function ba(){return this._d.valueOf()-6e4*(this._offset||0)}function za(){return Math.floor(this.valueOf()/1e3)}function ya(){return new Date(this.valueOf())}function Ma(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xa(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function wa(){return this.isValid()?this.toISOString():null}function Ha(){return g(this)}function Va(){return u({},f(this))}function Ca(){return f(this).overflow}function ka(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function La(e,t){var n,a,o,c=this._eras||gn("en")._eras;for(n=0,a=c.length;n<a;++n)switch("string"==typeof c[n].since&&(o=r(c[n].since).startOf("day"),c[n].since=o.valueOf()),typeof c[n].until){case"undefined":c[n].until=1/0;break;case"string":o=r(c[n].until).startOf("day").valueOf(),c[n].until=o.valueOf()}return c}function Ea(e,t,n){var r,a,o,c,i,s=this.eras();for(e=e.toUpperCase(),r=0,a=s.length;r<a;++r)if(o=s[r].name.toUpperCase(),c=s[r].abbr.toUpperCase(),i=s[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(c===e)return s[r];break;case"NNNN":if(o===e)return s[r];break;case"NNNNN":if(i===e)return s[r]}else if([o,c,i].indexOf(e)>=0)return s[r]}function Sa(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function _a(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Aa(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Da(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Oa(){var e,t,n,a,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,a=this.clone().startOf("day").valueOf(),o[e].since<=a&&a<=o[e].until||o[e].until<=a&&a<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Ia(e){return i(this,"_erasNameRegex")||Ya.call(this),e?this._erasNameRegex:this._erasRegex}function Na(e){return i(this,"_erasAbbrRegex")||Ya.call(this),e?this._erasAbbrRegex:this._erasRegex}function Pa(e){return i(this,"_erasNarrowRegex")||Ya.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ta(e,t){return t.erasAbbrRegex(e)}function Ra(e,t){return t.erasNameRegex(e)}function Fa(e,t){return t.erasNarrowRegex(e)}function ja(e,t){return t._eraYearOrdinalRegex||Le}function Ya(){var e,t,n=[],r=[],a=[],o=[],c=this.eras();for(e=0,t=c.length;e<t;++e)r.push(Pe(c[e].name)),n.push(Pe(c[e].abbr)),a.push(Pe(c[e].narrow)),o.push(Pe(c[e].name)),o.push(Pe(c[e].abbr)),o.push(Pe(c[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Ba(e,t){F(0,[e,e.length],0,t)}function $a(e){return Za.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wa(e){return Za.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ua(){return wt(this.year(),1,4)}function Ka(){return wt(this.isoWeekYear(),1,4)}function Ga(){var e=this.localeData()._week;return wt(this.year(),e.dow,e.doy)}function qa(){var e=this.localeData()._week;return wt(this.weekYear(),e.dow,e.doy)}function Za(e,t,n,r,a){var o;return null==e?xt(this,r,a).year:(t>(o=wt(e,r,a))&&(t=o),Xa.call(this,e,t,n,r,a))}function Xa(e,t,n,r,a){var o=Mt(e,t,n,r,a),c=zt(o.year,0,o.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}function Ja(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),Oe("N",Ta),Oe("NN",Ta),Oe("NNN",Ta),Oe("NNNN",Ra),Oe("NNNNN",Fa),Re(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?f(n).era=a:f(n).invalidEra=e})),Oe("y",Le),Oe("yy",Le),Oe("yyy",Le),Oe("yyyy",Le),Oe("yo",ja),Re(["y","yy","yyy","yyyy"],Be),Re(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Be]=n._locale.eraYearOrdinalParse(e,a):t[Be]=parseInt(e,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ba("gggg","weekYear"),Ba("ggggg","weekYear"),Ba("GGGG","isoWeekYear"),Ba("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ce("weekYear",1),ce("isoWeekYear",1),Oe("G",Ee),Oe("g",Ee),Oe("GG",xe,be),Oe("gg",xe,be),Oe("GGGG",Ce,ye),Oe("gggg",Ce,ye),Oe("GGGGG",ke,Me),Oe("ggggg",ke,Me),Fe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=he(e)})),Fe(["gg","GG"],(function(e,t,n,a){t[a]=r.parseTwoDigitYear(e)})),F("Q",0,"Qo","quarter"),ne("quarter","Q"),ce("quarter",7),Oe("Q",ge),Re("Q",(function(e,t){t[$e]=3*(he(e)-1)})),F("D",["DD",2],"Do","date"),ne("date","D"),ce("date",9),Oe("D",xe),Oe("DD",xe,be),Oe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Re(["D","DD"],We),Re("Do",(function(e,t){t[We]=he(e.match(xe)[0])}));var Qa=pe("Date",!0);function eo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}F("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ce("dayOfYear",4),Oe("DDD",Ve),Oe("DDDD",ze),Re(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=he(e)})),F("m",["mm",2],0,"minute"),ne("minute","m"),ce("minute",14),Oe("m",xe),Oe("mm",xe,be),Re(["m","mm"],Ke);var to=pe("Minutes",!1);F("s",["ss",2],0,"second"),ne("second","s"),ce("second",15),Oe("s",xe),Oe("ss",xe,be),Re(["s","ss"],Ge);var no,ro,ao=pe("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ce("millisecond",16),Oe("S",Ve,ge),Oe("SS",Ve,be),Oe("SSS",Ve,ze),no="SSSS";no.length<=9;no+="S")Oe(no,Le);function oo(e,t){t[qe]=he(1e3*("0."+e))}for(no="S";no.length<=9;no+="S")Re(no,oo);function co(){return this._isUTC?"UTC":""}function io(){return this._isUTC?"Coordinated Universal Time":""}ro=pe("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var so=x.prototype;function lo(e){return Gn(1e3*e)}function ho(){return Gn.apply(null,arguments).parseZone()}function po(e){return e}so.add=Or,so.calendar=Yr,so.clone=Br,so.diff=Zr,so.endOf=ga,so.format=ta,so.from=na,so.fromNow=ra,so.to=aa,so.toNow=oa,so.get=me,so.invalidAt=Ca,so.isAfter=$r,so.isBefore=Wr,so.isBetween=Ur,so.isSame=Kr,so.isSameOrAfter=Gr,so.isSameOrBefore=qr,so.isValid=Ha,so.lang=ia,so.locale=ca,so.localeData=sa,so.max=Zn,so.min=qn,so.parsingFlags=Va,so.set=ve,so.startOf=fa,so.subtract=Ir,so.toArray=Ma,so.toObject=xa,so.toDate=ya,so.toISOString=Qr,so.inspect=ea,"undefined"!=typeof Symbol&&null!=Symbol.for&&(so[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),so.toJSON=wa,so.toString=Jr,so.unix=za,so.valueOf=ba,so.creationData=ka,so.eraName=_a,so.eraNarrow=Aa,so.eraAbbr=Da,so.eraYear=Oa,so.year=ft,so.isLeapYear=gt,so.weekYear=$a,so.isoWeekYear=Wa,so.quarter=so.quarters=Ja,so.month=ht,so.daysInMonth=pt,so.week=so.weeks=Lt,so.isoWeek=so.isoWeeks=Et,so.weeksInYear=Ga,so.weeksInWeekYear=qa,so.isoWeeksInYear=Ua,so.isoWeeksInISOWeekYear=Ka,so.date=Qa,so.day=so.days=$t,so.weekday=Wt,so.isoWeekday=Ut,so.dayOfYear=eo,so.hour=so.hours=rn,so.minute=so.minutes=to,so.second=so.seconds=ao,so.millisecond=so.milliseconds=ro,so.utcOffset=vr,so.utc=gr,so.local=br,so.parseZone=zr,so.hasAlignedHourOffset=yr,so.isDST=Mr,so.isLocal=wr,so.isUtcOffset=Hr,so.isUtc=Vr,so.isUTC=Vr,so.zoneAbbr=co,so.zoneName=io,so.dates=V("dates accessor is deprecated. Use date instead.",Qa),so.months=V("months accessor is deprecated. Use month instead",ht),so.years=V("years accessor is deprecated. Use year instead",ft),so.zone=V("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fr),so.isDSTShifted=V("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xr);var uo=A.prototype;function mo(e,t,n,r){var a=gn(),o=m().set(r,t);return a[n](o,e)}function vo(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return mo(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=mo(e,r,n,"month");return a}function fo(e,t,n,r){"boolean"==typeof e?(h(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,h(t)&&(n=t,t=void 0),t=t||"");var a,o=gn(),c=e?o._week.dow:0,i=[];if(null!=n)return mo(t,(n+c)%7,r,"day");for(a=0;a<7;a++)i[a]=mo(t,(a+c)%7,r,"day");return i}function go(e,t){return vo(e,t,"months")}function bo(e,t){return vo(e,t,"monthsShort")}function zo(e,t,n){return fo(e,t,n,"weekdays")}function yo(e,t,n){return fo(e,t,n,"weekdaysShort")}function Mo(e,t,n){return fo(e,t,n,"weekdaysMin")}uo.calendar=O,uo.longDateFormat=U,uo.invalidDate=G,uo.ordinal=X,uo.preparse=po,uo.postformat=po,uo.relativeTime=Q,uo.pastFuture=ee,uo.set=S,uo.eras=La,uo.erasParse=Ea,uo.erasConvertYear=Sa,uo.erasAbbrRegex=Na,uo.erasNameRegex=Ia,uo.erasNarrowRegex=Pa,uo.months=ot,uo.monthsShort=ct,uo.monthsParse=st,uo.monthsRegex=ut,uo.monthsShortRegex=dt,uo.week=Ht,uo.firstDayOfYear=kt,uo.firstDayOfWeek=Ct,uo.weekdays=Rt,uo.weekdaysMin=jt,uo.weekdaysShort=Ft,uo.weekdaysParse=Bt,uo.weekdaysRegex=Kt,uo.weekdaysShortRegex=Gt,uo.weekdaysMinRegex=qt,uo.isPM=tn,uo.meridiem=an,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===he(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=V("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=V("moment.langData is deprecated. Use moment.localeData instead.",gn);var xo=Math.abs;function wo(){var e=this._data;return this._milliseconds=xo(this._milliseconds),this._days=xo(this._days),this._months=xo(this._months),e.milliseconds=xo(e.milliseconds),e.seconds=xo(e.seconds),e.minutes=xo(e.minutes),e.hours=xo(e.hours),e.months=xo(e.months),e.years=xo(e.years),this}function Ho(e,t,n,r){var a=Lr(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Vo(e,t){return Ho(this,e,t,1)}function Co(e,t){return Ho(this,e,t,-1)}function ko(e){return e<0?Math.floor(e):Math.ceil(e)}function Lo(){var e,t,n,r,a,o=this._milliseconds,c=this._days,i=this._months,s=this._data;return o>=0&&c>=0&&i>=0||o<=0&&c<=0&&i<=0||(o+=864e5*ko(So(i)+c),c=0,i=0),s.milliseconds=o%1e3,e=le(o/1e3),s.seconds=e%60,t=le(e/60),s.minutes=t%60,n=le(t/60),s.hours=n%24,c+=le(n/24),i+=a=le(Eo(c)),c-=ko(So(a)),r=le(i/12),i%=12,s.days=c,s.months=i,s.years=r,this}function Eo(e){return 4800*e/146097}function So(e){return 146097*e/4800}function _o(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Eo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(So(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ao(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*he(this._months/12):NaN}function Do(e){return function(){return this.as(e)}}var Oo=Do("ms"),Io=Do("s"),No=Do("m"),Po=Do("h"),To=Do("d"),Ro=Do("w"),Fo=Do("M"),jo=Do("Q"),Yo=Do("y");function Bo(){return Lr(this)}function $o(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Wo(e){return function(){return this.isValid()?this._data[e]:NaN}}var Uo=Wo("milliseconds"),Ko=Wo("seconds"),Go=Wo("minutes"),qo=Wo("hours"),Zo=Wo("days"),Xo=Wo("months"),Jo=Wo("years");function Qo(){return le(this.days()/7)}var ec=Math.round,tc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function nc(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function rc(e,t,n,r){var a=Lr(e).abs(),o=ec(a.as("s")),c=ec(a.as("m")),i=ec(a.as("h")),s=ec(a.as("d")),l=ec(a.as("M")),h=ec(a.as("w")),p=ec(a.as("y")),d=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||c<=1&&["m"]||c<n.m&&["mm",c]||i<=1&&["h"]||i<n.h&&["hh",i]||s<=1&&["d"]||s<n.d&&["dd",s];return null!=n.w&&(d=d||h<=1&&["w"]||h<n.w&&["ww",h]),(d=d||l<=1&&["M"]||l<n.M&&["MM",l]||p<=1&&["y"]||["yy",p])[2]=t,d[3]=+e>0,d[4]=r,nc.apply(null,d)}function ac(e){return void 0===e?ec:"function"==typeof e&&(ec=e,!0)}function oc(e,t){return void 0!==tc[e]&&(void 0===t?tc[e]:(tc[e]=t,"s"===e&&(tc.ss=t-1),!0))}function cc(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,o=tc;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(o=Object.assign({},tc,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=rc(this,!a,o,n=this.localeData()),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ic=Math.abs;function sc(e){return(e>0)-(e<0)||+e}function lc(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,o,c,i,s=ic(this._milliseconds)/1e3,l=ic(this._days),h=ic(this._months),p=this.asSeconds();return p?(e=le(s/60),t=le(e/60),s%=60,e%=60,n=le(h/12),h%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",a=p<0?"-":"",o=sc(this._months)!==sc(p)?"-":"",c=sc(this._days)!==sc(p)?"-":"",i=sc(this._milliseconds)!==sc(p)?"-":"",a+"P"+(n?o+n+"Y":"")+(h?o+h+"M":"")+(l?c+l+"D":"")+(t||e||s?"T":"")+(t?i+t+"H":"")+(e?i+e+"M":"")+(s?i+r+"S":"")):"P0D"}var hc=or.prototype;return hc.isValid=rr,hc.abs=wo,hc.add=Vo,hc.subtract=Co,hc.as=_o,hc.asMilliseconds=Oo,hc.asSeconds=Io,hc.asMinutes=No,hc.asHours=Po,hc.asDays=To,hc.asWeeks=Ro,hc.asMonths=Fo,hc.asQuarters=jo,hc.asYears=Yo,hc.valueOf=Ao,hc._bubble=Lo,hc.clone=Bo,hc.get=$o,hc.milliseconds=Uo,hc.seconds=Ko,hc.minutes=Go,hc.hours=qo,hc.days=Zo,hc.weeks=Qo,hc.months=Xo,hc.years=Jo,hc.humanize=cc,hc.toISOString=lc,hc.toString=lc,hc.toJSON=lc,hc.locale=ca,hc.localeData=sa,hc.toIsoString=V("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lc),hc.lang=ia,F("X",0,0,"unix"),F("x",0,0,"valueOf"),Oe("x",Ee),Oe("X",Ae),Re("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Re("x",(function(e,t,n){n._d=new Date(he(e))})),
1058
1063
  //! moment.js
1059
1064
  r.version="2.29.1",a(Gn),r.fn=so,r.min=Jn,r.max=Qn,r.now=er,r.utc=m,r.unix=lo,r.months=go,r.isDate=p,r.locale=mn,r.invalid=b,r.duration=Lr,r.isMoment=w,r.weekdays=zo,r.parseZone=ho,r.localeData=gn,r.isDuration=cr,r.monthsShort=bo,r.weekdaysMin=Mo,r.defineLocale=vn,r.updateLocale=fn,r.locales=bn,r.weekdaysShort=yo,r.normalizeUnits=re,r.relativeTimeRounding=ac,r.relativeTimeThreshold=oc,r.calendarFormat=jr,r.prototype=so,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()})),ap="left",op="right",cp="none",ip="primary",sp="success",lp="warning",hp="danger",pp="bottom",dp="bottom-left",up="bottom-right",mp="left",vp="left-bottom",fp="left-top",gp="right",bp="right-bottom",zp="right-top",yp="top",Mp="top-left",xp="top-right",wp="bp3";"undefined"!=typeof process&&(wp=null!==(np=null!==(ep=null===(Qh=process.env)||void 0===Qh?void 0:Qh.BLUEPRINT_NAMESPACE)&&void 0!==ep?ep:null===(tp=process.env)||void 0===tp?void 0:tp.REACT_APP_BLUEPRINT_NAMESPACE)&&void 0!==np?np:wp);var Hp=wp+"-active",Vp=wp+"-align-left",Cp=wp+"-align-right",kp=wp+"-dark",Lp=wp+"-disabled",Ep=wp+"-fill",Sp=wp+"-large",_p=wp+"-loading",Ap=wp+"-minimal",Dp=wp+"-outlined",Op=wp+"-round",Ip=wp+"-small",Np=Cd(ip),Pp=(Cd(sp),Cd(lp),Cd(hp),wp+"-text-overflow-ellipsis"),Tp=wp+"-heading",Rp=wp+"-button",Fp=Rp+"-spinner",jp=Rp+"-text",Yp=wp+"-divider",Bp=wp+"-html-select",$p=wp+"-input",Wp=$p+"-group",Up=$p+"-left-container",Kp=$p+"-action",Gp=wp+"-menu",qp=Gp+"-item",Zp=qp+"-label",Xp=wp+"-submenu",Jp=Gp+"-divider",Qp=Gp+"-header",ed=wp+"-overlay",td=ed+"-backdrop",nd=ed+"-content",rd=ed+"-inline",ad=ed+"-open",od=ed+"-start-focus-trap",cd=ed+"-end-focus-trap",id=wp+"-popover",sd=id+"-arrow",ld=id+"-backdrop",hd=id+"-capturing-dismiss",pd=id+"-content",dd=id+"-dismiss",ud=dd+"-override",md=id+"-open",vd=id+"-target",fd=id+"-wrapper",gd=wp+"-transition-container",bd=wp+"-portal",zd=wp+"-spinner",yd=zd+"-animation",Md=zd+"-head",xd=wp+"-no-spin",wd=zd+"-track",Hd=wp+"-tooltip",Vd=wp+"-icon";function Cd(e){if(null!=e&&e!==cp)return wp+"-intent-"+e.toLowerCase()}
1060
1065
  /*! *****************************************************************************
@@ -1252,7 +1257,7 @@ PERFORMANCE OF THIS SOFTWARE.
1252
1257
  width: calc(100% + 12px);
1253
1258
  opacity: ${e=>e.disabled?.7:1};
1254
1259
  cursor: ${e=>e.disabled?"not-allowed":"pointer"};
1255
- `;var Nv=Dt((t=>{const[n,r]=l(t.defaultSelectedValue);return h((()=>{r(t.defaultSelectedValue)}),[t.defaultSelectedValue]),e.createElement(Av.Provider,{value:{groupValue:n,groupDisabled:t.disabled,updateGroupValue:e=>{t.disabled||(r(e),t.onChange&&t.onChange(e))}}},e.createElement(Iv,{disabled:t.disabled,className:t.className},t.children))}),{disabled:!1,defaultSelectedValue:null,onChange:e=>{}});Ov.Group=Nv;const Pv=t=>{const{columns:n=[],data:r=[],count:a=0,perPage:o=10,pageNumber:c=1,indeterminateCount:i=!1,next:s=!1,previous:l=!1,showTopPagination:h=!0,showBottomPagination:p=!0,showSelectAllInTable:d=!1,showActions:u=!0,showSelections:m=!0,hideTableHeaderOnEmpty:v=!0,showFilters:f=!0,showOptions:g=!0,rowMenuOptions:b=(()=>[]),cellPropGetter:z,rowPropGetter:y,onRowSelect:M,onRowClick:x,emptyComponent:w,loadingComponent:H,onPrevious:V,onFirstClick:C,onLastClick:k,onPageClick:L,onSelectAll:E,onNext:S,onMenuOptionSelect:_,headerComponent:A,initialState:D={},filterComponent:O}=t,[I,N]=e.useState(f),[P,T]=e.useState(null),{getTableProps:R,getTableBodyProps:$,headerGroups:W,rows:U,setColumnOrder:K,setHiddenColumns:G,flatRows:q,prepareRow:Z,getToggleAllRowsSelectedProps:X}=F({columns:n,data:r,initialState:D,useControlledState:t=>e.useMemo((()=>({...t,selectedRowIds:D.selectedRowIds||{}})),[D.selectedRowIds,t])},j,Y,(t=>{t.visibleColumns.push((t=>m?[{id:"selection",disableResizing:!0,width:50,Header:({getToggleAllRowsSelectedProps:t,toggleAllRowsSelected:n})=>d?e.createElement("div",{className:"table-checkbox"},e.createElement(Bo,Object.assign({id:"selectAll",name:"selectAll"},t(),{onChange:(e,t)=>{if(t){const e={};U&&U.length>0&&U.forEach((t=>{e[t.id]=!0})),M&&M(e,q)}else M&&M({},q);E&&E(t),n(t)}}))):e.createElement("div",null),Cell:t=>{const{row:n}=t;return e.createElement("div",{className:"table-checkbox"},e.createElement(Bo,Object.assign({id:"selectRow",name:"selectRow"},n.getToggleRowSelectedProps(),{onChange:(e,t)=>{n.toggleRowSelected(t),M&&M({...D.selectedRowIds,[n.id]:t},q)}})))}},...t]:[...t]))})),J=[];for(let e=0;e<Math.ceil(a/o);e++)J.push(e+1);return B((()=>{D&&D.columnOrder&&K(D.columnOrder)}),[D.columnOrder]),B((()=>{D&&D.hiddenColumns&&G(D.hiddenColumns)}),[D.hiddenColumns]),e.createElement(Tv,{className:"fui-table"},u&&e.createElement(Fv,{className:"table-actions"},e.createElement("div",{className:"action"},!d&&m&&e.createElement(Bo,Object.assign({id:"selectAll",name:"selectAll"},X()),"Select All")),A||void 0,e.createElement("div",{className:"pagination-actions"},h&&e.createElement(e.Fragment,null,e.createElement("div",{className:"pagination-text"},H?e.createElement(Tl,{size:"small"}):e.createElement(e.Fragment,null,a>0?`${(c-1)*o+(r.length>0?1:0)} - ${(c-1)*o+r.length} of ${i?""+(r.length>0?"Many":"-"):a}`:null)),e.createElement(Fo,{type:"secondary",disabled:!l||Boolean(H),onClick:()=>V&&V(c-1)},e.createElement(er,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"})),e.createElement(Fo,{type:"secondary",disabled:!s||Boolean(H),onClick:()=>S&&S(c+1)},e.createElement(er,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"}))),f&&e.createElement(Fo,{type:"secondary",className:"filter-toggle",onClick:()=>N(!I)},e.createElement(er,{glyph:I?"collapse":"expand",size:12,viewBox:"0 0 14 14"}))))," ",e.createElement(qv,{className:"table-content"},e.createElement(Rv,{showFilters:f&&I,className:"table-wrapper"},H?e.createElement(e.Fragment,null,H):e.createElement(e.Fragment,null,v&&0===U.length?e.createElement(e.Fragment,null,w):e.createElement(jv,Object.assign({},R()),e.createElement($v,null,W.map((t=>{const{getHeaderGroupProps:n,headers:r}=t;return e.createElement(Yv,Object.assign({},n(),{className:"header-row"}),r.map((t=>{const{getHeaderProps:n,render:r}=t;return e.createElement(Kv,Object.assign({},n()),r("Header"))})),g&&e.createElement(Kv,null))}))),e.createElement(Uv,Object.assign({},$()),U.length>0?U.map((t=>{Z(t);const{getRowProps:n,cells:r}=t;return e.createElement(Yv,Object.assign({},n(y?y(t):{}),{className:t.isSelected?"selected":""}),r.map((t=>{const{getCellProps:n,render:r}=t;return e.createElement(Gv,Object.assign({},n(z?z(t):{}),{onClick:()=>{"selection"!==t.column.id&&x&&x(t.row,t.column)}}),r("Cell"))})),g&&e.createElement(Gv,null,b&&b(t.original).length>0&&e.createElement(e.Fragment,null,e.createElement(Xv,{"aria-describedby":`row-popover-${t.id}`,onClick:e=>T(e.currentTarget)},e.createElement(er,{glyph:"more-vertical",size:12,viewBox:"0 0 4 16"})),e.createElement(Wc,{id:`row-popover-${t.id}`,anchorEl:P,onClose:()=>T(null),anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}},e.createElement(ll,{options:b(t.original)||[],onSelect:e=>{_&&_(e.id,t.original),T(null)},closeMenuCallback:()=>T(null)})))))})):e.createElement(e.Fragment,null,w)),p&&e.createElement(Wv,null,e.createElement("tr",null,e.createElement("td",{colSpan:n.length-(D&&D.hiddenColumns&&D.hiddenColumns.length||0)+(m?1:0)+(b&&b().length>0?1:0)},e.createElement(Bv,{className:"table-pagination"},Math.ceil(a/o)>10&&e.createElement(Fo,{type:"secondary",disabled:1===c,onClick:()=>C&&C(1)},e.createElement(er,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"}),e.createElement(er,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"})),e.createElement(Fo,{type:"secondary",disabled:1===c,onClick:()=>V&&V(c-1)},e.createElement(er,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"})),c>3&&e.createElement(e.Fragment,null,e.createElement(Fo,{type:"secondary",onClick:()=>L&&L(1)},"1"),c-3!=1&&e.createElement(Fo,{type:"secondary",disabled:!0},"...")),J.map((t=>[t-2,t-1,t,t+1,t+2].includes(c)&&e.createElement(Fo,{type:"secondary",className:c===t?"active":"",onClick:()=>L&&L(t)},t))),c<Math.ceil(a/o)-2&&e.createElement(e.Fragment,null,c+3!==Math.ceil(a/o)&&e.createElement(Fo,{type:"secondary",disabled:!0},"..."),e.createElement(Fo,{type:"secondary",onClick:()=>L&&L(Math.ceil(a/o))},Math.ceil(a/o))),e.createElement(Fo,{type:"secondary",disabled:c===Math.ceil(a/o),onClick:()=>S&&S(c+1)},e.createElement(er,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"})),Math.ceil(a/o)>10&&e.createElement(Fo,{type:"secondary",disabled:c===Math.ceil(a/o),onClick:()=>k&&k(Math.ceil(a/o))},e.createElement(er,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"}),e.createElement(er,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"}))))))))),f&&I&&O&&e.createElement(Zv,{className:"table-filters"},O)))},Tv=Et.div`
1260
+ `;var Nv=Dt((t=>{const[n,r]=l(t.defaultSelectedValue);return h((()=>{r(t.defaultSelectedValue)}),[t.defaultSelectedValue]),e.createElement(Av.Provider,{value:{groupValue:n,groupDisabled:t.disabled,updateGroupValue:e=>{t.disabled||(r(e),t.onChange&&t.onChange(e))}}},e.createElement(Iv,{disabled:t.disabled,className:t.className},t.children))}),{disabled:!1,defaultSelectedValue:null,onChange:e=>{}});Ov.Group=Nv;const Pv=t=>{const{columns:n=[],data:r=[],count:a=0,perPage:o=10,pageNumber:c=1,indeterminateCount:i=!1,next:s=!1,previous:l=!1,showTopPagination:h=!0,showBottomPagination:p=!0,showSelectAllInTable:d=!1,showActions:u=!0,showSelections:m=!0,hideTableHeaderOnEmpty:v=!0,showFilters:f=!0,showOptions:g=!0,rowMenuOptions:b=(()=>[]),cellPropGetter:z,rowPropGetter:y,onRowSelect:M,onRowClick:x,emptyComponent:w,loadingComponent:H,onPrevious:V,onFirstClick:C,onLastClick:k,onPageClick:L,onSelectAll:E,onNext:S,onMenuOptionSelect:_,headerComponent:A,initialState:D={},filterComponent:O}=t,[I,N]=e.useState(f),[P,T]=e.useState(null),{getTableProps:R,getTableBodyProps:$,headerGroups:W,rows:U,setColumnOrder:K,setHiddenColumns:G,flatRows:q,prepareRow:Z,getToggleAllRowsSelectedProps:X}=F({columns:n,data:r,initialState:D,useControlledState:t=>e.useMemo((()=>({...t,selectedRowIds:D.selectedRowIds||{}})),[D.selectedRowIds,t])},j,Y,(t=>{t.visibleColumns.push((t=>m?[{id:"selection",disableResizing:!0,width:50,Header:({getToggleAllRowsSelectedProps:t,toggleAllRowsSelected:n})=>d?e.createElement("div",{className:"table-checkbox"},e.createElement(Bo,Object.assign({id:"selectAll",name:"selectAll"},t(),{onChange:(e,t)=>{if(t){const e={};U&&U.length>0&&U.forEach((t=>{e[t.id]=!0})),M&&M(e,q)}else M&&M({},q);E&&E(t),n(t)}}))):e.createElement("div",null),Cell:t=>{const{row:n}=t;return e.createElement("div",{className:"table-checkbox"},e.createElement(Bo,Object.assign({id:"selectRow",name:"selectRow"},n.getToggleRowSelectedProps(),{onChange:(e,t)=>{n.toggleRowSelected(t),M&&M({...D.selectedRowIds,[n.id]:t},q)}})))}},...t]:[...t]))})),J=[];for(let e=0;e<Math.ceil(a/o);e++)J.push(e+1);return B((()=>{D&&D.columnOrder&&K(D.columnOrder)}),[D.columnOrder]),B((()=>{D&&D.hiddenColumns&&G(D.hiddenColumns)}),[D.hiddenColumns]),e.createElement(Tv,{className:"fui-table"},u&&e.createElement(Fv,{className:"table-actions"},e.createElement("div",{className:"action"},!d&&m&&e.createElement(Bo,Object.assign({id:"selectAll",name:"selectAll"},X()),"Select All")),A||void 0,e.createElement("div",{className:"pagination-actions"},h&&e.createElement(e.Fragment,null,e.createElement("div",{className:"pagination-text"},H?e.createElement(mh,{size:"small"}):e.createElement(e.Fragment,null,a>0?`${(c-1)*o+(r.length>0?1:0)} - ${(c-1)*o+r.length} of ${i?""+(r.length>0?"Many":"-"):a}`:null)),e.createElement(Fo,{type:"secondary",disabled:!l||Boolean(H),onClick:()=>V&&V(c-1)},e.createElement(er,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"})),e.createElement(Fo,{type:"secondary",disabled:!s||Boolean(H),onClick:()=>S&&S(c+1)},e.createElement(er,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"}))),f&&e.createElement(Fo,{type:"secondary",className:"filter-toggle",onClick:()=>N(!I)},e.createElement(er,{glyph:I?"collapse":"expand",size:12,viewBox:"0 0 14 14"}))))," ",e.createElement(qv,{className:"table-content"},e.createElement(Rv,{showFilters:f&&I,className:"table-wrapper"},H?e.createElement(e.Fragment,null,H):e.createElement(e.Fragment,null,v&&0===U.length?e.createElement(e.Fragment,null,w):e.createElement(jv,Object.assign({},R()),e.createElement($v,null,W.map((t=>{const{getHeaderGroupProps:n,headers:r}=t;return e.createElement(Yv,Object.assign({},n(),{className:"header-row"}),r.map((t=>{const{getHeaderProps:n,render:r}=t;return e.createElement(Kv,Object.assign({},n()),r("Header"))})),g&&e.createElement(Kv,null))}))),e.createElement(Uv,Object.assign({},$()),U.length>0?U.map((t=>{Z(t);const{getRowProps:n,cells:r}=t;return e.createElement(Yv,Object.assign({},n(y?y(t):{}),{className:t.isSelected?"selected":""}),r.map((t=>{const{getCellProps:n,render:r}=t;return e.createElement(Gv,Object.assign({},n(z?z(t):{}),{onClick:()=>{"selection"!==t.column.id&&x&&x(t.row,t.column)}}),r("Cell"))})),g&&e.createElement(Gv,null,b&&b(t.original).length>0&&e.createElement(e.Fragment,null,e.createElement(Xv,{"aria-describedby":`row-popover-${t.id}`,onClick:e=>T(e.currentTarget)},e.createElement(er,{glyph:"more-vertical",size:12,viewBox:"0 0 4 16"})),e.createElement(Wc,{id:`row-popover-${t.id}`,anchorEl:P,onClose:()=>T(null),anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}},e.createElement(ll,{options:b(t.original)||[],onSelect:e=>{_&&_(e.id,t.original),T(null)},closeMenuCallback:()=>T(null)})))))})):e.createElement(e.Fragment,null,w)),p&&e.createElement(Wv,null,e.createElement("tr",null,e.createElement("td",{colSpan:n.length-(D&&D.hiddenColumns&&D.hiddenColumns.length||0)+(m?1:0)+(b&&b().length>0?1:0)},e.createElement(Bv,{className:"table-pagination"},Math.ceil(a/o)>10&&e.createElement(Fo,{type:"secondary",disabled:1===c,onClick:()=>C&&C(1)},e.createElement(er,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"}),e.createElement(er,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"})),e.createElement(Fo,{type:"secondary",disabled:1===c,onClick:()=>V&&V(c-1)},e.createElement(er,{glyph:"chevron-left",size:12,viewBox:"0 0 6 8"})),c>3&&e.createElement(e.Fragment,null,e.createElement(Fo,{type:"secondary",onClick:()=>L&&L(1)},"1"),c-3!=1&&e.createElement(Fo,{type:"secondary",disabled:!0},"...")),J.map((t=>[t-2,t-1,t,t+1,t+2].includes(c)&&e.createElement(Fo,{type:"secondary",className:c===t?"active":"",onClick:()=>L&&L(t)},t))),c<Math.ceil(a/o)-2&&e.createElement(e.Fragment,null,c+3!==Math.ceil(a/o)&&e.createElement(Fo,{type:"secondary",disabled:!0},"..."),e.createElement(Fo,{type:"secondary",onClick:()=>L&&L(Math.ceil(a/o))},Math.ceil(a/o))),e.createElement(Fo,{type:"secondary",disabled:c===Math.ceil(a/o),onClick:()=>S&&S(c+1)},e.createElement(er,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"})),Math.ceil(a/o)>10&&e.createElement(Fo,{type:"secondary",disabled:c===Math.ceil(a/o),onClick:()=>k&&k(Math.ceil(a/o))},e.createElement(er,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"}),e.createElement(er,{glyph:"chevron-right",size:12,viewBox:"0 0 6 8"}))))))))),f&&I&&O&&e.createElement(Zv,{className:"table-filters"},O)))},Tv=Et.div`
1256
1261
  flex: 1;
1257
1262
  overflow: auto;
1258
1263
  `,Rv=Et.div`
@@ -1466,4 +1471,4 @@ to {right : 10px}
1466
1471
  .toast-container.hover {
1467
1472
  transform: translate3d(0, -10px, 0);
1468
1473
  }
1469
- `,yf=()=>{const t=((e=mf())=>{const t=`ui-${e}`,{isBrowser:n}=uf(),[r,a]=l(n?vf(t):null);return h((()=>{const e=document.querySelector(`#${t}`),n=e||vf(t);e||document.body.appendChild(n),a(n)}),[]),r})("toast"),[a,o]=l(!1),c=r(),{toasts:i,updateToastHoverStatus:s}=df(),p=n((()=>i.map(((t,n)=>e.createElement(bf,{index:n,total:i.length,toast:t,onHover:a,key:`toast-${n}`})))),[i,a]),d=e=>{if(e)return c.current&&clearTimeout(c.current),s((()=>!0)),o(!0);c.current=window.setTimeout((()=>{o(!1),s((()=>!1)),c.current&&clearTimeout(c.current)}),200)};return t&&i&&0!==i.length?C(e.createElement(zf,null,e.createElement("div",{className:"toast-container "+(a?"hover":""),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)},p)),t):null},Mf=({children:t})=>{const[r,a,o]=Mc([]),[c,i]=l(!1),s=e=>{const t=e(o.current);a(t)},h=e=>{const t=e();i(t)},p=n((()=>({toasts:r,toastHovering:c,updateToasts:s,updateToastHoverStatus:h})),[r,c]);return e.createElement(pf.Provider,{value:p},e.createElement(e.Fragment,null,t,e.createElement(yf,null)))},xf=2e3;let wf,Hf=[],Vf=0;const Cf=()=>{const{updateToasts:e,toastHovering:t,toasts:n}=df(),[,r,a]=Mc(t);h((()=>r(t)),[t]);return[n,t=>{const n=`toast-${mf()}`,r=t.delay||xf,o=(t,n)=>{e((e=>e.map((e=>e.id!==t?e:{...e,willBeDestroy:!0})))),Hf.push(t),((t,n)=>{n<=Vf||(clearTimeout(wf),Vf=n,wf=window.setTimeout((()=>{e((e=>Hf.length<e.length?e:(Hf=[],[]))),clearTimeout(wf)}),t+350))})(n,performance.now())};e((e=>[...e,{...t,id:n,delay:r,cancel:()=>o(n,r)}]));const c=(e,t)=>{const n=window.setTimeout((()=>{if(a.current)return c(e,t),clearTimeout(n);o(e,t),clearTimeout(n)}),t)};c(n,r)}]};var kf=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Lf}(e)}(e)};var Lf="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ef(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Of((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Sf(e,t,n){return e.concat(t).map((function(e){return Ef(e,n)}))}function _f(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Af(e,t){try{return t in e}catch(e){return!1}}function Df(e,t,n){var r={};return n.isMergeableObject(e)&&_f(e).forEach((function(t){r[t]=Ef(e[t],n)})),_f(t).forEach((function(a){(function(e,t){return Af(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(Af(e,a)&&n.isMergeableObject(t[a])?r[a]=function(e,t){if(!t.customMerge)return Of;var n=t.customMerge(e);return"function"==typeof n?n:Of}(a,n)(e[a],t[a],n):r[a]=Ef(t[a],n))})),r}function Of(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Sf,n.isMergeableObject=n.isMergeableObject||kf,n.cloneUnlessOtherwiseSpecified=Ef;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Df(e,t,n):Ef(t,n)}Of.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Of(e,n,t)}),{})};var If=Of;function Nf(e){const{children:t,theme:n={},globalStyle:r=!0}=e,a=If($o,n);return o(Ct,{theme:a},r&&o(Wo,null),t)}function Pf(){const e=t(Vt);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e}function Tf(e){const{theme:t,children:n}=e;return o(Ct,{theme:t},o(Wo,null),n)}export{cr as Alert,To as BUTTON_SIZE_VARIANTS,Ov as BoxedRadio,Fo as Button,dl as ButtonDropdown,Bo as Checkbox,fc as Confirmation,zc as ConfirmationBody,gc as ConfirmationContent,yc as ConfirmationFooter,bc as ConfirmationOverlay,Wo as CssBaseLine,kv as DatePicker,Cv as DateTimePicker,Dc as DismissIcon,Tc as Drawer,Ac as DrawerBody,Rc as DrawerContent,Oc as DrawerFooter,Fc as DrawerOverlay,Jh as Dropdown,pc as Fade,Tf as FreemiumUIProvider,Qn as Glyph,er as Icons,Xn as InlineSvg,Hl as Input,Tl as Loader,ll as Menu,Sc as Modal,Lc as ModalBody,kc as ModalContent,Ec as ModalFooter,wc as ModalOverlay,Dl as MultiSelectDropdown,Wc as Popover,_v as Radio,mc as Slide,vc as SlideFade,Jn as SvgWrapper,Pv as Table,Jv as Tabs,Cl as Tag,Vl as TextArea,Nf as ThemeProvider,Lv as TimePicker,af as ToastWrapper,hf as Toggle,gl as Tooltip,lc as Transition,Mf as UiProvider,jc as debounce,xc as useConfirmation,_c as useModal,Pf as useTheme,Cf as useToasts};
1474
+ `,yf=()=>{const t=((e=mf())=>{const t=`ui-${e}`,{isBrowser:n}=uf(),[r,a]=l(n?vf(t):null);return h((()=>{const e=document.querySelector(`#${t}`),n=e||vf(t);e||document.body.appendChild(n),a(n)}),[]),r})("toast"),[a,o]=l(!1),c=r(),{toasts:i,updateToastHoverStatus:s}=df(),p=n((()=>i.map(((t,n)=>e.createElement(bf,{index:n,total:i.length,toast:t,onHover:a,key:`toast-${n}`})))),[i,a]),d=e=>{if(e)return c.current&&clearTimeout(c.current),s((()=>!0)),o(!0);c.current=window.setTimeout((()=>{o(!1),s((()=>!1)),c.current&&clearTimeout(c.current)}),200)};return t&&i&&0!==i.length?C(e.createElement(zf,null,e.createElement("div",{className:"toast-container "+(a?"hover":""),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)},p)),t):null},Mf=({children:t})=>{const[r,a,o]=Mc([]),[c,i]=l(!1),s=e=>{const t=e(o.current);a(t)},h=e=>{const t=e();i(t)},p=n((()=>({toasts:r,toastHovering:c,updateToasts:s,updateToastHoverStatus:h})),[r,c]);return e.createElement(pf.Provider,{value:p},e.createElement(e.Fragment,null,t,e.createElement(yf,null)))},xf=2e3;let wf,Hf=[],Vf=0;const Cf=()=>{const{updateToasts:e,toastHovering:t,toasts:n}=df(),[,r,a]=Mc(t);h((()=>r(t)),[t]);return[n,t=>{const n=`toast-${mf()}`,r=t.delay||xf,o=(t,n)=>{e((e=>e.map((e=>e.id!==t?e:{...e,willBeDestroy:!0})))),Hf.push(t),((t,n)=>{n<=Vf||(clearTimeout(wf),Vf=n,wf=window.setTimeout((()=>{e((e=>Hf.length<e.length?e:(Hf=[],[]))),clearTimeout(wf)}),t+350))})(n,performance.now())};e((e=>[...e,{...t,id:n,delay:r,cancel:()=>o(n,r)}]));const c=(e,t)=>{const n=window.setTimeout((()=>{if(a.current)return c(e,t),clearTimeout(n);o(e,t),clearTimeout(n)}),t)};c(n,r)}]};var kf=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Lf}(e)}(e)};var Lf="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ef(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Of((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Sf(e,t,n){return e.concat(t).map((function(e){return Ef(e,n)}))}function _f(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Af(e,t){try{return t in e}catch(e){return!1}}function Df(e,t,n){var r={};return n.isMergeableObject(e)&&_f(e).forEach((function(t){r[t]=Ef(e[t],n)})),_f(t).forEach((function(a){(function(e,t){return Af(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(Af(e,a)&&n.isMergeableObject(t[a])?r[a]=function(e,t){if(!t.customMerge)return Of;var n=t.customMerge(e);return"function"==typeof n?n:Of}(a,n)(e[a],t[a],n):r[a]=Ef(t[a],n))})),r}function Of(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Sf,n.isMergeableObject=n.isMergeableObject||kf,n.cloneUnlessOtherwiseSpecified=Ef;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Df(e,t,n):Ef(t,n)}Of.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Of(e,n,t)}),{})};var If=Of;function Nf(e){const{children:t,theme:n={},globalStyle:r=!0}=e,a=If($o,n);return o(Ct,{theme:a},r&&o(Wo,null),t)}function Pf(){const e=t(Vt);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e}function Tf(e){const{theme:t,children:n}=e;return o(Ct,{theme:t},o(Wo,null),n)}export{cr as Alert,To as BUTTON_SIZE_VARIANTS,Ov as BoxedRadio,Fo as Button,dl as ButtonDropdown,Bo as Checkbox,fc as Confirmation,zc as ConfirmationBody,gc as ConfirmationContent,yc as ConfirmationFooter,bc as ConfirmationOverlay,Wo as CssBaseLine,kv as DatePicker,Cv as DateTimePicker,Dc as DismissIcon,Tc as Drawer,Ac as DrawerBody,Rc as DrawerContent,Oc as DrawerFooter,Fc as DrawerOverlay,Jh as Dropdown,pc as Fade,Tf as FreemiumUIProvider,Qn as Glyph,er as Icons,Xn as InlineSvg,Hl as Input,mh as Loader,ll as Menu,Sc as Modal,Lc as ModalBody,kc as ModalContent,Ec as ModalFooter,wc as ModalOverlay,xh as MultiSelectDropdown,Wc as Popover,_v as Radio,mc as Slide,vc as SlideFade,Jn as SvgWrapper,Pv as Table,Jv as Tabs,vh as Tag,Vl as TextArea,Nf as ThemeProvider,Lv as TimePicker,af as ToastWrapper,hf as Toggle,gl as Tooltip,lc as Transition,Mf as UiProvider,jc as debounce,xc as useConfirmation,_c as useModal,Pf as useTheme,Cf as useToasts};
@@ -17,6 +17,7 @@ declare type MultiSelectProps = {
17
17
  customValues?: boolean;
18
18
  renderCustomSuggestion?: any;
19
19
  maxAllowedLength?: number;
20
+ isMenuLoading?: boolean;
20
21
  };
21
22
  export declare const MultiSelectDropdown: (props: MultiSelectProps) => JSX.Element;
22
23
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "1.0.205",
3
+ "version": "1.0.208",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",