freemium-ui 1.0.208 → 1.0.211
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
|
@@ -1035,8 +1035,8 @@ object-assign
|
|
|
1035
1035
|
border-radius: ${({showBorder:e})=>e?"unset":"4px"};
|
|
1036
1036
|
padding: 8px;
|
|
1037
1037
|
cursor: pointer;
|
|
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`
|
|
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:
|
|
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())||s&&c.toLowerCase().includes(e[p].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`
|
|
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: 1px solid transparent;\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 `}
|
|
1040
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`
|
|
1041
1041
|
display: block;
|
|
1042
1042
|
padding-left: 2px;
|
|
@@ -1054,7 +1054,6 @@ object-assign
|
|
|
1054
1054
|
display: inline-block;
|
|
1055
1055
|
padding-bottom: 8px;
|
|
1056
1056
|
padding-left: 2px;
|
|
1057
|
-
text-transform: capitalize;
|
|
1058
1057
|
font-size: 12px;
|
|
1059
1058
|
font-weight: 500;
|
|
1060
1059
|
}
|
|
@@ -1244,11 +1243,11 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
1244
1243
|
font-size: 12px;
|
|
1245
1244
|
}
|
|
1246
1245
|
}
|
|
1247
|
-
`,Wm=t.forwardRef(((e,t)=>n.createElement(Um,{checked:e.checked},n.createElement("label",null,n.createElement("input",{ref:t,type:"radio",name:e.name,value:e.value,checked:e.checked,onClick:e.onChange}),n.createElement("div",{className:"radio"}),n.createElement("div",null,e.children))))),Um=tt.div`
|
|
1246
|
+
`,Wm=t.forwardRef(((e,t)=>n.createElement(Um,{checked:e.checked},n.createElement("label",null,n.createElement("input",{ref:t,type:"radio",name:e.name,value:e.value,readOnly:e.readOnly,checked:e.checked,onClick:e.onChange}),n.createElement("div",{className:"radio"}),n.createElement("div",null,e.children))))),Um=tt.div`
|
|
1248
1247
|
${({theme:{colors:{components:{radio:e},pseudo:t},typography:{body:n}},checked:r})=>`\n input {\n clip: rect(0,0,0,0);\n position : absolute;\n &:focus {\n & ~ .radio {\n box-shadow: ${t.focus} 0px 0px 0px 3px;\n border-color : transparent;\n }\n }\n }\n label {\n display: flex;\n align-items: center;\n user-select: none;\n }\n .radio {\n background-color: $fff;\n border: 1px solid;\n border-color: ${r?e.backgroundColor:e.borderColor};\n transition: background-color ease-in 0.2s;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n position: relative;\n margin-right: 16px; \n &:before { \n left: 2px;\n top: 2px;\n content: '';\n position: absolute;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n transition : all ease-in 0.2s;\n background-color: ${r?e.backgroundColor:"#fff"};\n }\n }\n font-size : ${n.label.fontSize};\n font-weight : ${n.label.fontWeight};\n &:hover {\n .radio {\n border-color : ${r?e.backgroundColor:e.hoverBorderColor}!important;\n \n box-shadow: ${t.hover} 0px 0px 0px 5px!important;\n }\n }\n`}
|
|
1249
1248
|
`,Km=ot(Wm,{checked:!1}),Gm=t.createContext({groupValue:null,groupDisabled:!1,updateGroupValue:null}),qm=tt.div`
|
|
1250
1249
|
${({theme:{colors:{components:{checkbox:e,input:t},pseudo:n}},disabled:r,checked:a})=>`\n flex-grow : 1;\n flex-basis : 0;\n margin-right : 12px;\n margin-top: 12px;\n label.boxed-label {\n cursor : ${r?"disabled":"pointer"};\n opacity : ${r?.6:1};\n white-space:nowrap;\n padding : 8px;\n padding-left : 16px;\n font-size : 14px;\n border : 1px solid red;\n border-radius : 4px;\n display:flex;\n align-items:center;\n justify-content : left;\n user-select:none;\n border: 1px solid;\n border-color: ${a?e.backgroundColor:t.primary.borderColor};\n text-shadow: ${a?"0 0 0 #000, 0 0 .45px #000":"none"};\n .hollow {\n background-color: ${a?e.backgroundColor:"#fff"};\n border: ${a?"none":"1px solid"};\n border-color: ${a?e.backgroundColor:e.borderColor};\n min-width: 16px;\n min-height: 16px;\n max-width: 16px;\n max-height: 16px;\n border-radius: 50%;\n margin-right : 8px;\n display : flex;\n align-items : center;\n justify-content : center;\n }\n &:focus-within {\n box-shadow: ${n.focus} 0px 0px 0px 2px;\n border-color : transparent;\n }\n input {\n position : absolute;\n clip : rect(0px 0px 0px 0px);\n }\n &:hover {\n ${r?"":`border-color : ${a?e.backgroundColor:t.primary.hoverBorderColor}!important`};\n box-shadow: ${r?"unset":`${n.hover} 0px 0px 0px 5px!important`}; \n }\n}\n`}
|
|
1251
|
-
`;var Zm=ot((e=>{const{groupValue:r,groupDisabled:a,updateGroupValue:o}=t.useContext(Gm),c=r===e.value;if(null===o)throw new Error("freemium-ui : BoxedRadio should be used inside BoxedRadio.Group");return n.createElement(qm,{disabled:e.disabled||a,checked:c,className:e.className},n.createElement("label",{className:"boxed-label"},n.createElement("input",{type:"radio",checked:c,value:e.value,onChange:t=>{t.target.checked&&o(e.value)}}),n.createElement("div",{className:"hollow"},c&&n.createElement(Vn,{size:"12",viewBox:"-1 -0.5 10 7",glyph:"tick"})),n.createElement("div",null,e.children)))}),{disabled:!1});const Xm=tt.div`
|
|
1250
|
+
`;var Zm=ot((e=>{const{groupValue:r,groupDisabled:a,updateGroupValue:o}=t.useContext(Gm),c=r===e.value;if(null===o)throw new Error("freemium-ui : BoxedRadio should be used inside BoxedRadio.Group");return n.createElement(qm,{disabled:e.disabled||a,checked:c,className:e.className},n.createElement("label",{className:"boxed-label"},n.createElement("input",{type:"radio",checked:c,readOnly:e.readOnly,value:e.value,onChange:t=>{e.readOnly||t.target.checked&&o(e.value)}}),n.createElement("div",{className:"hollow"},c&&n.createElement(Vn,{size:"12",viewBox:"-1 -0.5 10 7",glyph:"tick"})),n.createElement("div",null,e.children)))}),{readOnly:!1,disabled:!1});const Xm=tt.div`
|
|
1252
1251
|
display: inline-flex;
|
|
1253
1252
|
align-items: center;
|
|
1254
1253
|
flex-wrap: wrap;
|
|
@@ -1471,4 +1470,4 @@ to {right : 10px}
|
|
|
1471
1470
|
.toast-container.hover {
|
|
1472
1471
|
transform: translate3d(0, -10px, 0);
|
|
1473
1472
|
}
|
|
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)}]};
|
|
1473
|
+
`,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,stateReducer:(e,t)=>t.type===hi.stateChangeTypes.keyDownEscape?{...e,...t,isOpen:!1,selectedItem:e.selectedItem}:t},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",customModalContentStyles:i={},customClass:s=""})=>n.createElement(Po,{timeout:300,in:t,unmountOnExit:!0},(l=>n.createElement(qo,{className:"modal-overlay",style:l,align:o,position:a,isOpen:!0,onDismiss:r},n.createElement(Bo,{timeout:150,in:t,unmountOnExit:!0},(t=>n.createElement(Qo,{className:`modal-content ${s}`,style:{...t,...i},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
|
@@ -274,7 +274,7 @@ object-assign
|
|
|
274
274
|
padding: 18px 32px 32px 32px;
|
|
275
275
|
`,Ec=Et.div`
|
|
276
276
|
${({theme:{colors:{components:{confirmModal:e}}}})=>`\n justify-content: flex-end;\n display: flex;\n padding: 12px 16px 12px 16px;\n border-top: 1px solid ${e.border};\n background: ${e.background};\n border-radius: 4px;\n `}
|
|
277
|
-
`,Sc=({children:t,isOpen:n,onDismiss:r,position:a="center",align:o="center",size:c="default"})=>e.createElement(pc,{timeout:300,in:n,unmountOnExit:!0},(
|
|
277
|
+
`,Sc=({children:t,isOpen:n,onDismiss:r,position:a="center",align:o="center",size:c="default",customModalContentStyles:i={},customClass:s=""})=>e.createElement(pc,{timeout:300,in:n,unmountOnExit:!0},(l=>e.createElement(wc,{className:"modal-overlay",style:l,align:o,position:a,isOpen:!0,onDismiss:r},e.createElement(vc,{timeout:150,in:n,unmountOnExit:!0},(n=>e.createElement(kc,{className:`modal-content ${s}`,style:{...n,...i},size:c,"aria-label":"dialog"},t)))))),_c=(e=!1)=>{const[t,n,r]=Mc(e);return{visible:t,setVisible:n,currentRef:r,bindings:{isOpen:t,onDismiss:()=>n(!1)}}},Ac=Et.div`
|
|
278
278
|
padding: 32px;
|
|
279
279
|
height: 100%;
|
|
280
280
|
overflow: auto;
|
|
@@ -1035,8 +1035,8 @@ object-assign
|
|
|
1035
1035
|
border-radius: ${({showBorder:e})=>e?"unset":"4px"};
|
|
1036
1036
|
padding: 8px;
|
|
1037
1037
|
cursor: pointer;
|
|
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`
|
|
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:
|
|
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())||s&&c.toLowerCase().includes(e[d].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`
|
|
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: 1px solid transparent;\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 `}
|
|
1040
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`
|
|
1041
1041
|
display: block;
|
|
1042
1042
|
padding-left: 2px;
|
|
@@ -1054,12 +1054,11 @@ object-assign
|
|
|
1054
1054
|
display: inline-block;
|
|
1055
1055
|
padding-bottom: 8px;
|
|
1056
1056
|
padding-left: 2px;
|
|
1057
|
-
text-transform: capitalize;
|
|
1058
1057
|
font-size: 12px;
|
|
1059
1058
|
font-weight: 500;
|
|
1060
1059
|
}
|
|
1061
1060
|
${({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 `}
|
|
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&<(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))})),
|
|
1061
|
+
`,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,stateReducer:(e,t)=>t.type===Yi.stateChangeTypes.keyDownEscape?{...e,...t,isOpen:!1,selectedItem:e.selectedItem}:t},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&<(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))})),
|
|
1063
1062
|
//! moment.js
|
|
1064
1063
|
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()}
|
|
1065
1064
|
/*! *****************************************************************************
|
|
@@ -1244,11 +1243,11 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
1244
1243
|
font-size: 12px;
|
|
1245
1244
|
}
|
|
1246
1245
|
}
|
|
1247
|
-
`,Cv=t=>{const{placeholder:n,isErrored:r,isRequired:a,errorText:o,name:c,label:i,id:s,disabled:l,displayFormat:h="YYYY-MM-DD hh:mm A",...p}=t;return e.createElement(Vv,{isErrored:r,id:`datetime-picker-container-${s||""}`},i&&e.createElement("label",null,i,a&&e.createElement("span",{className:"isRequired"},"*")),e.createElement(Hv,Object.assign({canClearSelection:!0,closeOnSelection:!0,todayButtonText:"",disabled:l,showActionsBar:!0,highlightCurrentDay:!0,timePrecision:"minute",fill:!0,timePickerProps:{useAmPm:!0},inputProps:{placeholder:n||h,name:c,id:s,disabled:l},popoverProps:{minimal:!0,placement:"bottom-start",usePortal:!1},parseDate:e=>e?rp(e).toDate():new Date,formatDate:e=>e?rp(e).format(h):""},p)),r&&o&&e.createElement("span",{className:"error"},o))},kv=t=>{const{placeholder:n,name:r,isRequired:a,label:o,isErrored:c,errorText:i,id:s,monthYearLocation:l="start",disabled:h,displayFormat:p="YYYY-MM-DD",...d}=t;return e.createElement(Vv,{isErrored:c,id:`date-picker-container-${s||""}`},o&&e.createElement("label",null,o,a&&e.createElement("span",{className:"isRequired"},"*")),e.createElement(Hv,Object.assign({canClearSelection:!0,closeOnSelection:!0,disabled:h,fill:!0,highlightCurrentDay:!0,inputProps:{placeholder:n||p,name:r,id:s,disabled:h},dayPickerProps:{},popoverProps:{minimal:!0,placement:"bottom-start",usePortal:!1},parseDate:e=>e?rp(e).toDate():new Date,formatDate:e=>e?rp(e).format(p):""},d)),c&&i&&e.createElement("span",{className:"error"},i))},Lv=t=>{const{placeholder:n,name:r,label:a,id:o,disabled:c,errorText:i,isErrored:s,isRequired:l,...h}=t;return e.createElement(Vv,{isErrored:s,id:`time-picker-container-${o||""}`},a&&e.createElement("label",null,a,l&&e.createElement("span",{className:"isRequired"},"*")),e.createElement(yv,Object.assign({precision:"minute",useAmPm:!0,disabled:c},h)),s&&i&&e.createElement("span",{className:"error"},i))},Ev=s(((t,n)=>e.createElement(Sv,{checked:t.checked},e.createElement("label",null,e.createElement("input",{ref:n,type:"radio",name:t.name,value:t.value,checked:t.checked,onClick:t.onChange}),e.createElement("div",{className:"radio"}),e.createElement("div",null,t.children))))),Sv=Et.div`
|
|
1246
|
+
`,Cv=t=>{const{placeholder:n,isErrored:r,isRequired:a,errorText:o,name:c,label:i,id:s,disabled:l,displayFormat:h="YYYY-MM-DD hh:mm A",...p}=t;return e.createElement(Vv,{isErrored:r,id:`datetime-picker-container-${s||""}`},i&&e.createElement("label",null,i,a&&e.createElement("span",{className:"isRequired"},"*")),e.createElement(Hv,Object.assign({canClearSelection:!0,closeOnSelection:!0,todayButtonText:"",disabled:l,showActionsBar:!0,highlightCurrentDay:!0,timePrecision:"minute",fill:!0,timePickerProps:{useAmPm:!0},inputProps:{placeholder:n||h,name:c,id:s,disabled:l},popoverProps:{minimal:!0,placement:"bottom-start",usePortal:!1},parseDate:e=>e?rp(e).toDate():new Date,formatDate:e=>e?rp(e).format(h):""},p)),r&&o&&e.createElement("span",{className:"error"},o))},kv=t=>{const{placeholder:n,name:r,isRequired:a,label:o,isErrored:c,errorText:i,id:s,monthYearLocation:l="start",disabled:h,displayFormat:p="YYYY-MM-DD",...d}=t;return e.createElement(Vv,{isErrored:c,id:`date-picker-container-${s||""}`},o&&e.createElement("label",null,o,a&&e.createElement("span",{className:"isRequired"},"*")),e.createElement(Hv,Object.assign({canClearSelection:!0,closeOnSelection:!0,disabled:h,fill:!0,highlightCurrentDay:!0,inputProps:{placeholder:n||p,name:r,id:s,disabled:h},dayPickerProps:{},popoverProps:{minimal:!0,placement:"bottom-start",usePortal:!1},parseDate:e=>e?rp(e).toDate():new Date,formatDate:e=>e?rp(e).format(p):""},d)),c&&i&&e.createElement("span",{className:"error"},i))},Lv=t=>{const{placeholder:n,name:r,label:a,id:o,disabled:c,errorText:i,isErrored:s,isRequired:l,...h}=t;return e.createElement(Vv,{isErrored:s,id:`time-picker-container-${o||""}`},a&&e.createElement("label",null,a,l&&e.createElement("span",{className:"isRequired"},"*")),e.createElement(yv,Object.assign({precision:"minute",useAmPm:!0,disabled:c},h)),s&&i&&e.createElement("span",{className:"error"},i))},Ev=s(((t,n)=>e.createElement(Sv,{checked:t.checked},e.createElement("label",null,e.createElement("input",{ref:n,type:"radio",name:t.name,value:t.value,readOnly:t.readOnly,checked:t.checked,onClick:t.onChange}),e.createElement("div",{className:"radio"}),e.createElement("div",null,t.children))))),Sv=Et.div`
|
|
1248
1247
|
${({theme:{colors:{components:{radio:e},pseudo:t},typography:{body:n}},checked:r})=>`\n input {\n clip: rect(0,0,0,0);\n position : absolute;\n &:focus {\n & ~ .radio {\n box-shadow: ${t.focus} 0px 0px 0px 3px;\n border-color : transparent;\n }\n }\n }\n label {\n display: flex;\n align-items: center;\n user-select: none;\n }\n .radio {\n background-color: $fff;\n border: 1px solid;\n border-color: ${r?e.backgroundColor:e.borderColor};\n transition: background-color ease-in 0.2s;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n position: relative;\n margin-right: 16px; \n &:before { \n left: 2px;\n top: 2px;\n content: '';\n position: absolute;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n transition : all ease-in 0.2s;\n background-color: ${r?e.backgroundColor:"#fff"};\n }\n }\n font-size : ${n.label.fontSize};\n font-weight : ${n.label.fontWeight};\n &:hover {\n .radio {\n border-color : ${r?e.backgroundColor:e.hoverBorderColor}!important;\n \n box-shadow: ${t.hover} 0px 0px 0px 5px!important;\n }\n }\n`}
|
|
1249
1248
|
`,_v=Dt(Ev,{checked:!1}),Av=d({groupValue:null,groupDisabled:!1,updateGroupValue:null}),Dv=Et.div`
|
|
1250
1249
|
${({theme:{colors:{components:{checkbox:e,input:t},pseudo:n}},disabled:r,checked:a})=>`\n flex-grow : 1;\n flex-basis : 0;\n margin-right : 12px;\n margin-top: 12px;\n label.boxed-label {\n cursor : ${r?"disabled":"pointer"};\n opacity : ${r?.6:1};\n white-space:nowrap;\n padding : 8px;\n padding-left : 16px;\n font-size : 14px;\n border : 1px solid red;\n border-radius : 4px;\n display:flex;\n align-items:center;\n justify-content : left;\n user-select:none;\n border: 1px solid;\n border-color: ${a?e.backgroundColor:t.primary.borderColor};\n text-shadow: ${a?"0 0 0 #000, 0 0 .45px #000":"none"};\n .hollow {\n background-color: ${a?e.backgroundColor:"#fff"};\n border: ${a?"none":"1px solid"};\n border-color: ${a?e.backgroundColor:e.borderColor};\n min-width: 16px;\n min-height: 16px;\n max-width: 16px;\n max-height: 16px;\n border-radius: 50%;\n margin-right : 8px;\n display : flex;\n align-items : center;\n justify-content : center;\n }\n &:focus-within {\n box-shadow: ${n.focus} 0px 0px 0px 2px;\n border-color : transparent;\n }\n input {\n position : absolute;\n clip : rect(0px 0px 0px 0px);\n }\n &:hover {\n ${r?"":`border-color : ${a?e.backgroundColor:t.primary.hoverBorderColor}!important`};\n box-shadow: ${r?"unset":`${n.hover} 0px 0px 0px 5px!important`}; \n }\n}\n`}
|
|
1251
|
-
`;var Ov=Dt((n=>{const{groupValue:r,groupDisabled:a,updateGroupValue:o}=t(Av),c=r===n.value;if(null===o)throw new Error("freemium-ui : BoxedRadio should be used inside BoxedRadio.Group");return e.createElement(Dv,{disabled:n.disabled||a,checked:c,className:n.className},e.createElement("label",{className:"boxed-label"},e.createElement("input",{type:"radio",checked:c,value:n.value,onChange:e=>{e.target.checked&&o(n.value)}}),e.createElement("div",{className:"hollow"},c&&e.createElement(er,{size:"12",viewBox:"-1 -0.5 10 7",glyph:"tick"})),e.createElement("div",null,n.children)))}),{disabled:!1});const Iv=Et.div`
|
|
1250
|
+
`;var Ov=Dt((n=>{const{groupValue:r,groupDisabled:a,updateGroupValue:o}=t(Av),c=r===n.value;if(null===o)throw new Error("freemium-ui : BoxedRadio should be used inside BoxedRadio.Group");return e.createElement(Dv,{disabled:n.disabled||a,checked:c,className:n.className},e.createElement("label",{className:"boxed-label"},e.createElement("input",{type:"radio",checked:c,readOnly:n.readOnly,value:n.value,onChange:e=>{n.readOnly||e.target.checked&&o(n.value)}}),e.createElement("div",{className:"hollow"},c&&e.createElement(er,{size:"12",viewBox:"-1 -0.5 10 7",glyph:"tick"})),e.createElement("div",null,n.children)))}),{readOnly:!1,disabled:!1});const Iv=Et.div`
|
|
1252
1251
|
display: inline-flex;
|
|
1253
1252
|
align-items: center;
|
|
1254
1253
|
flex-wrap: wrap;
|
|
@@ -8,5 +8,6 @@ export interface ModalProps {
|
|
|
8
8
|
size?: MODALSIZE;
|
|
9
9
|
onDismiss: () => void;
|
|
10
10
|
customClass?: string;
|
|
11
|
+
customModalContentStyles?: {};
|
|
11
12
|
}
|
|
12
|
-
export declare const Modal: ({ children, isOpen, onDismiss, position, align, size, }: ModalProps) => JSX.Element;
|
|
13
|
+
export declare const Modal: ({ children, isOpen, onDismiss, position, align, size, customModalContentStyles, customClass }: ModalProps) => JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface RadioButtonProps {
|
|
3
3
|
checked: boolean;
|
|
4
|
+
readOnly?: boolean;
|
|
4
5
|
children: string;
|
|
5
6
|
name: string;
|
|
6
7
|
value: string | number;
|
|
@@ -9,5 +10,5 @@ interface RadioButtonProps {
|
|
|
9
10
|
}
|
|
10
11
|
export declare const Radio: React.ComponentType<Partial<{
|
|
11
12
|
checked: boolean;
|
|
12
|
-
}> & Pick<RadioButtonProps & React.RefAttributes<HTMLInputElement>, "ref" | "children" | "name" | "value" | "onChange" | "id" | "key">>;
|
|
13
|
+
}> & Pick<RadioButtonProps & React.RefAttributes<HTMLInputElement>, "ref" | "readOnly" | "children" | "name" | "value" | "onChange" | "id" | "key">>;
|
|
13
14
|
export {};
|