@linn-it/linn-form-components-library 30.1.1 → 31.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +13 -6
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e,{useState as t,Fragment as n,useRef as i,useEffect as a,useMemo as o,useReducer as r,useCallback as l,forwardRef as s,useImperativeHandle as c}from"react";import p from"@mui/material/Button";import{jsx as d,jsxs as u,Fragment as m}from"react/jsx-runtime";import f from"@mui/material/Tooltip";import h from"@mui/material/SvgIcon";import v from"@mui/material/Box";import g from"@mui/material/CircularProgress";import x from"@mui/material/Typography";import y from"@mui/material/Link";import b from"@mui/material/TextField";import w from"@mui/material/InputLabel";import k from"@mui/material/Card";import _ from"@mui/icons-material/Error";import S from"@mui/material/FormControlLabel";import D from"@mui/material/Checkbox";import O from"@mui/material/InputAdornment";import{useSnackbar as M}from"notistack";import{Paper as j,IconButton as C,Typography as T}from"@mui/material";import Y from"@mui/material/Grid";import{Link as z,useLocation as P,useParams as N,useNavigate as E}from"react-router-dom";import R from"@mui/material/List";import F from"@mui/material/ListItem";import A from"@mui/material/Switch";import L from"@mui/material/IconButton";import W from"@mui/material/Snackbar";import I from"@mui/icons-material/Close";import{DatePicker as H}from"@mui/x-date-pickers/DatePicker";import{DateTimePicker as U}from"@mui/x-date-pickers/DateTimePicker";import V from"@mui/material/Tabs";import q from"@mui/material/Tab";import G from"@mui/material/AppBar";import $ from"@mui/material/ClickAwayListener";import B from"@mui/material/Menu";import Z from"@mui/material/MenuItem";import J from"@mui/material/Toolbar";import K from"@mui/material/Badge";import Q from"@mui/icons-material/AccountCircle";import X from"@mui/icons-material/Search";import ee from"@mui/icons-material/Notifications";import te from"@mui/material/Paper";import{createTheme as ne,styled as ie}from"@mui/material/styles";import ae from"@mui/material/ListItemText";import oe from"@mui/icons-material/Delete";import re from"@mui/material/Divider";import{PickersDay as le}from"@mui/x-date-pickers/PickersDay";import se from"@mui/material/Chip";import ce from"@mui/material/Accordion";import pe from"@mui/material/AccordionSummary";import de from"@mui/material/AccordionDetails";import ue from"@mui/icons-material/ExpandMore";import me from"@mui/material/Dialog";import fe from"@mui/material/Stack";import he from"@mui/icons-material/ArrowRight";import ve from"@mui/icons-material/ArrowLeft";import ge from"@mui/material/DialogTitle";import xe from"@mui/material/DialogContent";import ye from"@mui/material/DialogActions";import be from"@mui/icons-material/EditOff";import we from"@mui/icons-material/ModeEdit";import{GridToolbar as ke,DataGrid as _e,gridClasses as Se}from"@mui/x-data-grid";import{useAuth as De,hasAuthParams as Oe}from"react-oidc-context";import{utilities as Me}from"@linn-it/linn-form-components-library";function je(e){let{backClick:t,text:n=null}=e;return d("div",{style:{float:"left"},children:d(p,{id:"back-button",onClick:t,children:n||"Back"})})}function Ce(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach(function(t){Ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ze(){return d(v,{sx:{textAlign:"center",margin:e=>e.spacing(4),height:"40px"},children:d(g,{})})}function Pe(e){let{href:n,accept:i="text/csv",fileName:a="export.csv",buttonText:o="EXPORT",tooltipText:r="Download report as CSV file",disabled:l=!1,accessToken:s=null}=e;const[c,m]=t(!1),[v,g]=t(!1);let x={Accept:i};s&&(x=Ye(Ye({},x),{},{Authorization:"Bearer ".concat(s)}));return d("div",{style:{float:"right"},children:d(f,{title:r,placement:"top-end",children:c?d(ze,{}):u(p,{variant:"outlined",disabled:l,color:v?"secondary":"primary",onClick:()=>{m(!0),g(!1),fetch(n,{headers:new Headers(x)}).then(e=>{if(!e.ok)throw new Error("Network response was not OK");return e.blob()}).then(e=>{const t=window.URL.createObjectURL(e),n=document.createElement("a");n.href=t,n.download=a,document.body.appendChild(n),n.click(),n.remove()}).then(()=>m(!1)).catch(()=>{g(!0),m(!1),alert("Download failed")})},children:[v?"Retry":o,d(h,{children:d("path",{xmlns:"http://www.w3.org/2000/svg",d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"})})]})})})}function Ne(){return u(m,{children:[" "," / "," "]})}function Ee(e){let{navigate:t,rootPathLength:i=2,homeUrl:a="https://app.linn.co.uk",location:o}=e,r=o.pathname;r.endsWith("/")&&(r=r.substring(0,r.length-1));const l=r.split("/").filter(e=>"report"!==e).reduce((e,n,a,o)=>{const r=o.slice(0,a+1).join("/")||"/";return n?[...e,{key:a,caption:n,href:r,onClick:e=>{o.length>i&&(e.preventDefault(),t(r))}}]:e},[]);return u(v,{style:{marginLeft:"20px"},children:[d(y,{href:a,variant:"button",sx:{"&:hover":{cursor:"pointer"}},children:"HOME"},"home"),d(Ne,{}),l.map((e,t)=>t<l.length-1?u(n,{children:[d(y,{href:e.href,variant:"button",sx:{"&:hover":{cursor:"pointer"}},onClick:e.onClick,children:e.caption},e.href),d(Ne,{})]},t):d(x,{display:"inline",variant:"button",children:e.caption},t))]})}function Re(e){let{saveClick:t,cancelClick:n,saveDisabled:i=!1,backClick:a,showBackButton:o=!0}=e;return u(v,{sx:{float:"right"},children:[(!i||o)&&d(p,{id:"cancel-button",onClick:()=>{i?a():n()},variant:"outlined",sx:{marginRight:e=>e.spacing(1)},children:i?"Back":"Cancel"}),d(p,{id:"save-button",variant:"contained",color:"primary",onClick:()=>t(),disabled:i,children:"Save"})]})}const Fe=e=>e||0===e,Ae=e=>e.some(e=>e.displayText||""===e.displayText),Le=function(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return["loading..."];const n=e?[...e]:[];return t&&(Ae(e)?n.push({id:"",displayText:""}):n.push("")),n};function We(e){let{onChange:t,optionsLoading:n=!1,propertyName:i,required:a=!1,disabled:o=!1,label:r="",items:l=[],allowNoValue:s=!0,value:c="",helperText:p="",fullWidth:f=!1,adornment:h="",type:v="text",error:g=!1,margin:x="dense",autoFocus:y=!1}=e;return u(m,{children:[d(w,{sx:{fontSize:e=>e.typography.fontSize,color:g?e=>e.palette.error.main:"inherit","& .MuiInputLabel-asterisk":{color:e=>e.palette.error.main}},required:a,error:g,htmlFor:i,children:r}),d(b,{sx:{paddingTop:0,marginTop:e=>e.spacing(1)},autoFocus:y,error:g,id:i,type:v,select:!0,adornment:h,disabled:o,fullWidth:f,value:(k=c,Fe(k)?k:""),onChange:e=>(e=>{const n=e.target.value;let a;a="number"===v?Fe(n)?parseFloat(n):null:Fe(n)?n:"",t(i,a)})(e),SelectProps:{native:!0},size:"small",helperText:p,margin:x,variant:"outlined",required:a,FormHelperTextProps:{sx:{color:g?e=>e.palette.error.main:"inherit","&.Mui-required":{color:e=>e.palette.error.main}}},children:Ae(l)?Le(l,s,n).map(e=>d("option",{value:e.id,children:e.displayText},e.id)):Le(l,s,n).map(e=>d("option",{value:e,children:e},e))})]});var k}function Ie(e){let{errorMessage:t,detailLines:n=[]}=e;return u(k,{sx:{width:"50%",margin:"0 auto",padding:e=>e.spacing(2),backgroundColor:e=>e.palette.error.light},children:[d(_,{sx:{color:e=>e.palette.error.dark,float:"right"}}),d(x,{align:"center",children:t}),d("div",{children:null==n?void 0:n.map(e=>d(x,{align:"center",children:"".concat(e.descriptor," - ").concat(e.message)},e.descriptor))})]})}const He=e=>{let{checked:t=!1,color:n="primary",label:i="",onChange:a,sx:o={}}=e;return d(S,{label:i,sx:Ye({width:"100%",fontSize:14},o),control:d(D,{checked:t,onChange:a,color:n})})},Ue=e=>e||0===e;function Ve(e){let{onChange:n=null,propertyName:o,type:r="text",adornment:l="",disabled:s=!1,error:c=!1,fullWidth:p=!1,helperText:f="",label:h="",margin:v="dense",maxLength:g=null,rows:x=null,name:y="",placeholder:k="",required:_=!1,value:S="",decimalPlaces:D=null,textFieldProps:M=null,autoFocus:j=!1,onErrorStateChange:C=null,visible:T=!0}=e;const Y=i(null),[z,P]=t(!1),[N,E]=t("");a(()=>{setTimeout(()=>{j&&Y.current&&T&&Y.current.focus()},100)},[j,T]),a(()=>{P(c)},[c]);return u(m,{children:[d(w,{sx:{fontSize:e=>e.typography.fontSize,color:z?e=>e.palette.error.main:"inherit","& .MuiInputLabel-asterisk":{color:e=>e.palette.error.main}},required:_,error:z,htmlFor:o,children:h}),d(b,Ye({sx:{paddingTop:0,marginTop:e=>e.spacing(1)},disabled:s,error:z,fullWidth:p,helperText:z?N:f,margin:v,multiline:x>0,name:y,id:o,placeholder:k,required:_,size:"small",rows:x,inputRef:Y,onWheel:()=>{"number"===r&&Y.current.blur()},type:r,value:(R=S,Ue(R)?R:""),onChange:e=>(e=>{const t=e.target.value;let i=t;"number"===r?(i=Ue(t)?parseFloat(t):null,i&&D&&t.indexOf(".")<t.length-D&&-1!==t.indexOf(".")&&(i=parseFloat(t.slice(0,t.indexOf(".")+D+1)))):g&&(null==t?void 0:t.length)>g?(P(!0),E("MAX LENGTH (".concat(g,") EXCEEDED")),C&&C(!0)):g&&(null==t?void 0:t.length)<=g&&(P(!1),C&&C(!1),E("")),n(o,i)})(e),InputProps:{startAdornment:l?d(O,{position:"start",children:l}):null},FormHelperTextProps:{sx:{color:z?e=>e.palette.error.main:e=>e.palette.text.primary}},onInput:e=>{"number"===r&&g&&(e.target.value=e.target.value.slice(0,g))},variant:"outlined"},M))]});var R}function qe(e){let{to:t,external:n=!1,newTab:i=!1,tooltip:a=null,text:o,disabled:r=!1}=e;const l=d(p,{color:"primary","aria-label":"Search",variant:"outlined",sx:{marginLeft:1,marginTop:3},disabled:r,children:o}),s=a?d(f,{title:a,children:d("div",{children:l})}):l;return r?s:d("div",{children:n?d("a",{href:t,target:i?"_blank":"_self",rel:"noreferrer",style:{textDecoration:"none"},children:s}):d(y,{to:t,style:{textDecoration:"none"},children:s})})}const Ge={xs:4,s:6,m:8,l:10,xl:12},$e={xs:4,s:3,m:2,l:1,xl:0};function Be(e){let{children:t,navigate:n=null,location:i=null,width:o="l",requestErrors:r=[],showRequestErrors:l=!1,homeUrl:s=null,showBreadcrumbs:c=!0,title:p=null,defaultAppTitle:m=null}=e;const{enqueueSnackbar:f}=M();return a(()=>{r&&l&&r.forEach(e=>{f("".concat(e.message," - ").concat(e.type),{variant:"error",preventDuplicate:!0})})},[r,f,l]),a(()=>(p&&(document.title=p),()=>{m&&(document.title=m)}),[p,m]),u(Y,{container:!0,spacing:3,children:[d(Y,{size:12,children:c&&d(Ee,{navigate:n,homeUrl:s,location:i})}),d(Y,{size:$e[o]}),d(Y,{size:Ge[o],children:d(j,{sx:{padding:4},square:!0,children:t})}),d(Y,{size:$e[o]})]})}const Ze=(e,t,n)=>n?"".concat(e[t]," - ").concat(e[n]):e[t];function Je(e){let{title:t="",entityList:n,entityId:i,descriptionFieldName:a=null,hasExternalLinks:o=!1}=e;const r=o?"a":z;return u(m,{children:[d(x,{variant:"h4",children:t}),d(R,{children:n.map(e=>d(F,{button:!0,component:r,to:e.href,href:e.href,children:d(x,{color:"primary",variant:"subtitle2",children:Ze(e,i,a)})},e[i]))})]})}function Ke(e){let{createUrl:t,disabled:n=!1}=e;return d(z,{to:t,style:{textDecoration:"none"},children:d(p,{color:"primary",variant:"outlined",sx:{float:"right"},disabled:n,children:"Create"})})}function Qe(e){let{onChange:t,propertyName:n,value:i=!1,label:a,disabled:o}=e;return d(S,{control:d(A,{checked:i,onChange:()=>{t(n,!i)},value:i,color:"primary",disabled:o}),label:a})}function Xe(e){let{message:t,visible:n=!1,onClose:i,timeOut:a=3e3}=e;return d(W,{anchorOrigin:{vertical:"bottom",horizontal:"left"},ContentProps:{sx:{backgroundColor:e=>e.palette.primary.main}},open:n,autoHideDuration:a,onClose:()=>i(!1),message:t,action:d(L,{"aria-label":"Close",color:"inherit",onClick:()=>i(!1),size:"large",children:d(I,{})})})}function et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tt(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var nt,it={exports:{}};var at,ot=(nt||(nt=1,(at=it).exports=function(){var e,t;function n(){return e.apply(null,arguments)}function i(t){e=t}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(r(e,t))return!1;return!0}function s(e){return void 0===e}function c(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,i=[],a=e.length;for(n=0;n<a;++n)i.push(t(e[n],n));return i}function u(e,t){for(var n in t)r(t,n)&&(e[n]=t[n]);return r(t,"toString")&&(e.toString=t.toString),r(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,i){return Zn(e,t,n,i,!0).utc()}function f(){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 h(e){return null==e._pf&&(e._pf=f()),e._pf}function v(e){var n=null,i=!1,a=e._d&&!isNaN(e._d.getTime());return a&&(n=h(e),i=t.call(n.parsedDateParts,function(e){return null!=e}),a=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&i),e._strict&&(a=a&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?a:(e._isValid=a,e._isValid)}function g(e){var t=m(NaN);return null!=e?u(h(t),e):h(t).userInvalidated=!0,t}t=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var x=n.momentProperties=[],y=!1;function b(e,t){var n,i,a,o=x.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=h(t)),s(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)s(a=t[i=x[n]])||(e[i]=a);return e}function w(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,n.updateOffset(this),y=!1)}function k(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function _(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var i=!0;return u(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),i){var a,o,l,s=[],c=arguments.length;for(o=0;o<c;o++){if(a="","object"==typeof arguments[o]){for(l in a+="\n["+o+"] ",arguments[0])r(arguments[0],l)&&(a+=l+": "+arguments[0][l]+", ");a=a.slice(0,-2)}else a=arguments[o];s.push(a)}_(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),i=!1}return t.apply(this,arguments)},t)}var D,O={};function M(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),O[e]||(_(t),O[e]=!0)}function j(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function C(e){var t,n;for(n in e)r(e,n)&&(j(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 T(e,t){var n,i=u({},e);for(n in t)r(t,n)&&(o(e[n])&&o(t[n])?(i[n]={},u(i[n],e[n]),u(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)r(e,n)&&!r(t,n)&&o(e[n])&&(i[n]=u({},i[n]));return i}function Y(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,D=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)r(e,t)&&n.push(t);return n};var z={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function P(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return j(i)?i.call(t,n):i}function N(e,t,n){var i=""+Math.abs(e),a=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}var E=/(\[[^\[]*\])|(\\)?([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,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},A={};function L(e,t,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),e&&(A[e]=a),t&&(A[t[0]]=function(){return N(a.apply(this,arguments),t[1],t[2])}),n&&(A[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function W(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function I(e){var t,n,i=e.match(E);for(t=0,n=i.length;t<n;t++)A[i[t]]?i[t]=A[i[t]]:i[t]=W(i[t]);return function(t){var a,o="";for(a=0;a<n;a++)o+=j(i[a])?i[a].call(t,e):i[a];return o}}function H(e,t){return e.isValid()?(t=U(t,e.localeData()),F[t]=F[t]||I(t),F[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(R.lastIndex=0;n>=0&&R.test(e);)e=e.replace(R,i),R.lastIndex=0,n-=1;return e}var V={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 q(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(E).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var G="Invalid date";function $(){return this._invalidDate}var B="%d",Z=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}var K={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,i){var a=this._relativeTime[n];return j(a)?a(e,t,n,i):a.replace(/%d/i,e)}function X(e,t){var n=this._relativeTime[e>0?"future":"past"];return j(n)?n(t):n.replace(/%s/i,t)}var ee={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function te(e){return"string"==typeof e?ee[e]||ee[e.toLowerCase()]:void 0}function ne(e){var t,n,i={};for(n in e)r(e,n)&&(t=te(n))&&(i[t]=e[n]);return i}var ie={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ae(e){var t,n=[];for(t in e)r(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}var oe,re=/\d/,le=/\d\d/,se=/\d{3}/,ce=/\d{4}/,pe=/[+-]?\d{6}/,de=/\d\d?/,ue=/\d\d\d\d?/,me=/\d\d\d\d\d\d?/,fe=/\d{1,3}/,he=/\d{1,4}/,ve=/[+-]?\d{1,6}/,ge=/\d+/,xe=/[+-]?\d+/,ye=/Z|[+-]\d\d:?\d\d/gi,be=/Z|[+-]\d\d(?::?\d\d)?/gi,we=/[+-]?\d+(\.\d{1,3})?/,ke=/[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,_e=/^[1-9]\d?/,Se=/^([1-9]\d|\d)/;function De(e,t,n){oe[e]=j(t)?t:function(e,i){return e&&n?n:t}}function Oe(e,t){return r(oe,e)?oe[e](t._strict,t._locale):new RegExp(Me(e))}function Me(e){return je(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,a){return t||n||i||a}))}function je(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Te(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Ce(t)),n}oe={};var Ye={};function ze(e,t){var n,i,a=t;for("string"==typeof e&&(e=[e]),c(t)&&(a=function(e,n){n[t]=Te(e)}),i=e.length,n=0;n<i;n++)Ye[e[n]]=a}function Pe(e,t){ze(e,function(e,n,i,a){i._w=i._w||{},t(e,i._w,i,a)})}function Ne(e,t,n){null!=t&&r(Ye,e)&&Ye[e](t,n._a,n,e)}function Ee(e){return e%4==0&&e%100!=0||e%400==0}var Re=0,Fe=1,Ae=2,Le=3,We=4,Ie=5,He=6,Ue=7,Ve=8;function qe(e){return Ee(e)?366:365}L("Y",0,0,function(){var e=this.year();return e<=9999?N(e,4):"+"+e}),L(0,["YY",2],0,function(){return this.year()%100}),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),De("Y",xe),De("YY",de,le),De("YYYY",he,ce),De("YYYYY",ve,pe),De("YYYYYY",ve,pe),ze(["YYYYY","YYYYYY"],Re),ze("YYYY",function(e,t){t[Re]=2===e.length?n.parseTwoDigitYear(e):Te(e)}),ze("YY",function(e,t){t[Re]=n.parseTwoDigitYear(e)}),ze("Y",function(e,t){t[Re]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return Te(e)+(Te(e)>68?1900:2e3)};var Ge,$e=Ze("FullYear",!0);function Be(){return Ee(this.year())}function Ze(e,t){return function(i){return null!=i?(Ke(this,e,i),n.updateOffset(this,t),this):Je(this,e)}}function Je(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ke(e,t,n){var i,a,o,r,l;if(e.isValid()&&!isNaN(n)){switch(i=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(a?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(a?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(a?i.setUTCHours(n):i.setHours(n));case"Date":return void(a?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}o=n,r=e.month(),l=29!==(l=e.date())||1!==r||Ee(o)?l:28,a?i.setUTCFullYear(o,r,l):i.setFullYear(o,r,l)}}function Qe(e){return j(this[e=te(e)])?this[e]():this}function Xe(e,t){if("object"==typeof e){var n,i=ae(e=ne(e)),a=i.length;for(n=0;n<a;n++)this[i[n].unit](e[i[n].unit])}else if(j(this[e=te(e)]))return this[e](t);return this}function et(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=et(t,12);return e+=(t-n)/12,1===n?Ee(e)?29:28:31-n%7%2}Ge=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},L("M",["MM",2],"Mo",function(){return this.month()+1}),L("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),L("MMMM",0,0,function(e){return this.localeData().months(this,e)}),De("M",de,_e),De("MM",de,le),De("MMM",function(e,t){return t.monthsShortRegex(e)}),De("MMMM",function(e,t){return t.monthsRegex(e)}),ze(["M","MM"],function(e,t){t[Fe]=Te(e)-1}),ze(["MMM","MMMM"],function(e,t,n,i){var a=n._locale.monthsParse(e,i,n._strict);null!=a?t[Fe]=a:h(n).invalidMonth=e});var it="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,lt=ke,st=ke;function ct(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function pt(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dt(e,t,n){var i,a,o,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=m([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Ge.call(this._shortMonthsParse,r))?a:null:-1!==(a=Ge.call(this._longMonthsParse,r))?a:null:"MMM"===t?-1!==(a=Ge.call(this._shortMonthsParse,r))||-1!==(a=Ge.call(this._longMonthsParse,r))?a:null:-1!==(a=Ge.call(this._longMonthsParse,r))||-1!==(a=Ge.call(this._shortMonthsParse,r))?a:null}function ut(e,t,n){var i,a,o;if(this._monthsParseExact)return dt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=m([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function mt(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Te(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,i=e.date();return i=i<29?i:Math.min(i,nt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,i):e._d.setMonth(n,i),e}function ft(e){return null!=e?(mt(this,e),n.updateOffset(this,!0),this):Je(this,"Month")}function ht(){return nt(this.year(),this.month())}function vt(e){return this._monthsParseExact?(r(this,"_monthsRegex")||xt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=lt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(r(this,"_monthsRegex")||xt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=st),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function xt(){function e(e,t){return t.length-e.length}var t,n,i,a,o=[],r=[],l=[];for(t=0;t<12;t++)n=m([2e3,t]),i=je(this.monthsShort(n,"")),a=je(this.months(n,"")),o.push(i),r.push(a),l.push(a),l.push(i);o.sort(e),r.sort(e),l.sort(e),this._monthsRegex=new RegExp("^("+l.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function yt(e,t,n,i,a,o,r){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,i,a,o,r),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,i,a,o,r),l}function bt(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 wt(e,t,n){var i=7+t-n;return-(7+bt(e,0,i).getUTCDay()-t)%7+i-1}function kt(e,t,n,i,a){var o,r,l=1+7*(t-1)+(7+n-i)%7+wt(e,i,a);return l<=0?r=qe(o=e-1)+l:l>qe(e)?(o=e+1,r=l-qe(e)):(o=e,r=l),{year:o,dayOfYear:r}}function _t(e,t,n){var i,a,o=wt(e.year(),t,n),r=Math.floor((e.dayOfYear()-o-1)/7)+1;return r<1?i=r+St(a=e.year()-1,t,n):r>St(e.year(),t,n)?(i=r-St(e.year(),t,n),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function St(e,t,n){var i=wt(e,t,n),a=wt(e+1,t,n);return(qe(e)-i+a)/7}function Dt(e){return _t(e,this._week.dow,this._week.doy).week}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),De("w",de,_e),De("ww",de,le),De("W",de,_e),De("WW",de,le),Pe(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=Te(e)});var Ot={dow:0,doy:6};function Mt(){return this._week.dow}function jt(){return this._week.doy}function Ct(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Tt(e){var t=_t(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Yt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function zt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pt(e,t){return e.slice(t,7).concat(e.slice(0,t))}L("d",0,"do","day"),L("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),L("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),L("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),De("d",de),De("e",de),De("E",de),De("dd",function(e,t){return t.weekdaysMinRegex(e)}),De("ddd",function(e,t){return t.weekdaysShortRegex(e)}),De("dddd",function(e,t){return t.weekdaysRegex(e)}),Pe(["dd","ddd","dddd"],function(e,t,n,i){var a=n._locale.weekdaysParse(e,i,n._strict);null!=a?t.d=a:h(n).invalidWeekday=e}),Pe(["d","e","E"],function(e,t,n,i){t[i]=Te(e)});var Nt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Et="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ft=ke,At=ke,Lt=ke;function Wt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pt(n,this._week.dow):e?n[e.day()]:n}function It(e){return!0===e?Pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return!0===e?Pt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ut(e,t,n){var i,a,o,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=m([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Ge.call(this._weekdaysParse,r))?a:null:"ddd"===t?-1!==(a=Ge.call(this._shortWeekdaysParse,r))?a:null:-1!==(a=Ge.call(this._minWeekdaysParse,r))?a:null:"dddd"===t?-1!==(a=Ge.call(this._weekdaysParse,r))||-1!==(a=Ge.call(this._shortWeekdaysParse,r))||-1!==(a=Ge.call(this._minWeekdaysParse,r))?a:null:"ddd"===t?-1!==(a=Ge.call(this._shortWeekdaysParse,r))||-1!==(a=Ge.call(this._weekdaysParse,r))||-1!==(a=Ge.call(this._minWeekdaysParse,r))?a:null:-1!==(a=Ge.call(this._minWeekdaysParse,r))||-1!==(a=Ge.call(this._weekdaysParse,r))||-1!==(a=Ge.call(this._shortWeekdaysParse,r))?a:null}function Vt(e,t,n){var i,a,o;if(this._weekdaysParseExact)return Ut.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=m([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function qt(e){if(!this.isValid())return null!=e?this:NaN;var t=Je(this,"Day");return null!=e?(e=Yt(e,this.localeData()),this.add(e-t,"d")):t}function Gt(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 $t(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=zt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Bt(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Ft),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zt(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=At),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kt(){function e(e,t){return t.length-e.length}var t,n,i,a,o,r=[],l=[],s=[],c=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),i=je(this.weekdaysMin(n,"")),a=je(this.weekdaysShort(n,"")),o=je(this.weekdays(n,"")),r.push(i),l.push(a),s.push(o),c.push(i),c.push(a),c.push(o);r.sort(e),l.sort(e),s.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Xt(){return this.hours()||24}function en(e,t){L(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,Qt),L("k",["kk",2],0,Xt),L("hmm",0,0,function(){return""+Qt.apply(this)+N(this.minutes(),2)}),L("hmmss",0,0,function(){return""+Qt.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),L("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),L("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),en("a",!0),en("A",!1),De("a",tn),De("A",tn),De("H",de,Se),De("h",de,_e),De("k",de,_e),De("HH",de,le),De("hh",de,le),De("kk",de,le),De("hmm",ue),De("hmmss",me),De("Hmm",ue),De("Hmmss",me),ze(["H","HH"],Le),ze(["k","kk"],function(e,t,n){var i=Te(e);t[Le]=24===i?0:i}),ze(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ze(["h","hh"],function(e,t,n){t[Le]=Te(e),h(n).bigHour=!0}),ze("hmm",function(e,t,n){var i=e.length-2;t[Le]=Te(e.substr(0,i)),t[We]=Te(e.substr(i)),h(n).bigHour=!0}),ze("hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[Le]=Te(e.substr(0,i)),t[We]=Te(e.substr(i,2)),t[Ie]=Te(e.substr(a)),h(n).bigHour=!0}),ze("Hmm",function(e,t,n){var i=e.length-2;t[Le]=Te(e.substr(0,i)),t[We]=Te(e.substr(i))}),ze("Hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[Le]=Te(e.substr(0,i)),t[We]=Te(e.substr(i,2)),t[Ie]=Te(e.substr(a))});var an=/[ap]\.?m?\.?/i,on=Ze("Hours",!0);function rn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var ln,sn={calendar:z,longDateFormat:V,invalidDate:G,ordinal:B,dayOfMonthOrdinalParse:Z,relativeTime:K,months:it,monthsShort:ot,week:Ot,weekdays:Nt,weekdaysMin:Rt,weekdaysShort:Et,meridiemParse:an},cn={},pn={};function dn(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function un(e){return e?e.toLowerCase().replace("_","-"):e}function mn(e){for(var t,n,i,a,o=0;o<e.length;){for(t=(a=un(e[o]).split("-")).length,n=(n=un(e[o+1]))?n.split("-"):null;t>0;){if(i=hn(a.slice(0,t).join("-")))return i;if(n&&n.length>=t&&dn(a,n)>=t-1)break;t--}o++}return ln}function fn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function hn(e){var t=null;if(void 0===cn[e]&&at&&at.exports&&fn(e))try{t=ln._abbr,tt("./locale/"+e),vn(t)}catch(t){cn[e]=null}return cn[e]}function vn(e,t){var n;return e&&((n=s(t)?yn(e):gn(e,t))?ln=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ln._abbr}function gn(e,t){if(null!==t){var n,i=sn;if(t.abbr=e,null!=cn[e])M("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."),i=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])i=cn[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return pn[t.parentLocale]||(pn[t.parentLocale]=[]),pn[t.parentLocale].push({name:e,config:t}),null;i=n._config}return cn[e]=new Y(T(i,t)),pn[e]&&pn[e].forEach(function(e){gn(e.name,e.config)}),vn(e),cn[e]}return delete cn[e],null}function xn(e,t){if(null!=t){var n,i,a=sn;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(T(cn[e]._config,t)):(null!=(i=hn(e))&&(a=i._config),t=T(a,t),null==i&&(t.abbr=e),(n=new Y(t)).parentLocale=cn[e],cn[e]=n),vn(e)}else null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===vn()&&vn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}function yn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ln;if(!a(e)){if(t=hn(e))return t;e=[e]}return mn(e)}function bn(){return D(cn)}function wn(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[Fe]<0||n[Fe]>11?Fe:n[Ae]<1||n[Ae]>nt(n[Re],n[Fe])?Ae:n[Le]<0||n[Le]>24||24===n[Le]&&(0!==n[We]||0!==n[Ie]||0!==n[He])?Le:n[We]<0||n[We]>59?We:n[Ie]<0||n[Ie]>59?Ie:n[He]<0||n[He]>999?He:-1,h(e)._overflowDayOfYear&&(t<Re||t>Ae)&&(t=Ae),h(e)._overflowWeeks&&-1===t&&(t=Ue),h(e)._overflowWeekday&&-1===t&&(t=Ve),h(e).overflow=t),e}var kn=/^\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)?)?$/,_n=/^\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)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,Dn=[["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]],On=[["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/]],Mn=/^\/?Date\((-?\d+)/i,jn=/^(?:(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}))$/,Cn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tn(e){var t,n,i,a,o,r,l=e._i,s=kn.exec(l)||_n.exec(l),c=Dn.length,p=On.length;if(s){for(h(e).iso=!0,t=0,n=c;t<n;t++)if(Dn[t][1].exec(s[1])){a=Dn[t][0],i=!1!==Dn[t][2];break}if(null==a)return void(e._isValid=!1);if(s[3]){for(t=0,n=p;t<n;t++)if(On[t][1].exec(s[3])){o=(s[2]||" ")+On[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(s[4]){if(!Sn.exec(s[4]))return void(e._isValid=!1);r="Z"}e._f=a+(o||"")+(r||""),Hn(e)}else e._isValid=!1}function Yn(e,t,n,i,a,o){var r=[zn(e),ot.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(a,10)];return o&&r.push(parseInt(o,10)),r}function zn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(e,t,n){return!e||Et.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}function En(e,t,n){if(e)return Cn[e];if(t)return 0;var i=parseInt(n,10),a=i%100;return(i-a)/100*60+a}function Rn(e){var t,n=jn.exec(Pn(e._i));if(n){if(t=Yn(n[4],n[3],n[2],n[5],n[6],n[7]),!Nn(n[1],t,e))return;e._a=t,e._tzm=En(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Fn(e){var t=Mn.exec(e._i);null===t?(Tn(e),!1===e._isValid&&(delete e._isValid,Rn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:n.createFromInputFallback(e)))):e._d=new Date(+t[1])}function An(e,t,n){return null!=e?e:null!=t?t:n}function Ln(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Wn(e){var t,n,i,a,o,r=[];if(!e._d){for(i=Ln(e),e._w&&null==e._a[Ae]&&null==e._a[Fe]&&In(e),null!=e._dayOfYear&&(o=An(e._a[Re],i[Re]),(e._dayOfYear>qe(o)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=bt(o,0,e._dayOfYear),e._a[Fe]=n.getUTCMonth(),e._a[Ae]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Le]&&0===e._a[We]&&0===e._a[Ie]&&0===e._a[He]&&(e._nextDay=!0,e._a[Le]=0),e._d=(e._useUTC?bt:yt).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Le]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(h(e).weekdayMismatch=!0)}}function In(e){var t,n,i,a,o,r,l,s,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,r=4,n=An(t.GG,e._a[Re],_t(Jn(),1,4).year),i=An(t.W,1),((a=An(t.E,1))<1||a>7)&&(s=!0)):(o=e._locale._week.dow,r=e._locale._week.doy,c=_t(Jn(),o,r),n=An(t.gg,e._a[Re],c.year),i=An(t.w,c.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),i<1||i>St(n,o,r)?h(e)._overflowWeeks=!0:null!=s?h(e)._overflowWeekday=!0:(l=kt(n,i,a,o,r),e._a[Re]=l.year,e._dayOfYear=l.dayOfYear)}function Hn(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],h(e).empty=!0;var t,i,a,o,r,l,s,c=""+e._i,p=c.length,d=0;for(s=(a=U(e._f,e._locale).match(E)||[]).length,t=0;t<s;t++)o=a[t],(i=(c.match(Oe(o,e))||[])[0])&&((r=c.substr(0,c.indexOf(i))).length>0&&h(e).unusedInput.push(r),c=c.slice(c.indexOf(i)+i.length),d+=i.length),A[o]?(i?h(e).empty=!1:h(e).unusedTokens.push(o),Ne(o,i,e)):e._strict&&!i&&h(e).unusedTokens.push(o);h(e).charsLeftOver=p-d,c.length>0&&h(e).unusedInput.push(c),e._a[Le]<=12&&!0===h(e).bigHour&&e._a[Le]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[Le]=Un(e._locale,e._a[Le],e._meridiem),null!==(l=h(e).era)&&(e._a[Re]=e._locale.erasConvertYear(l,e._a[Re])),Wn(e),wn(e)}else Rn(e);else Tn(e)}function Un(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function Vn(e){var t,n,i,a,o,r,l=!1,s=e._f.length;if(0===s)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<s;a++)o=0,r=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Hn(t),v(t)&&(r=!0),o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,l?o<i&&(i=o,n=t):(null==i||o<i||r)&&(i=o,n=t,r&&(l=!0));u(e,n||t)}function qn(e){if(!e._d){var t=ne(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)}),Wn(e)}}function Gn(e){var t=new w(wn($n(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function $n(e){var t=e._i,n=e._f;return e._locale=e._locale||yn(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new w(wn(t)):(p(t)?e._d=t:a(n)?Vn(e):n?Hn(e):Bn(e),v(e)||(e._d=null),e))}function Bn(e){var t=e._i;s(t)?e._d=new Date(n.now()):p(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Fn(e):a(t)?(e._a=d(t.slice(0),function(e){return parseInt(e,10)}),Wn(e)):o(t)?qn(e):c(t)?e._d=new Date(t):n.createFromInputFallback(e)}function Zn(e,t,n,i,r){var s={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=n,s._i=e,s._f=t,s._strict=i,Gn(s)}function Jn(e,t,n,i){return Zn(e,t,n,i,!1)}n.createFromInputFallback=S("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":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){};var Kn=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Qn=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()});function Xn(e,t){var n,i;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Jn();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function ei(){return Xn("isBefore",[].slice.call(arguments,0))}function ti(){return Xn("isAfter",[].slice.call(arguments,0))}var ni=function(){return Date.now?Date.now():+new Date},ii=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ai(e){var t,n,i=!1,a=ii.length;for(t in e)if(r(e,t)&&(-1===Ge.call(ii,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<a;++n)if(e[ii[n]]){if(i)return!1;parseFloat(e[ii[n]])!==Te(e[ii[n]])&&(i=!0)}return!0}function oi(){return this._isValid}function ri(){return Ci(NaN)}function li(e){var t=ne(e),n=t.year||0,i=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,r=t.day||0,l=t.hour||0,s=t.minute||0,c=t.second||0,p=t.millisecond||0;this._isValid=ai(t),this._milliseconds=+p+1e3*c+6e4*s+1e3*l*60*60,this._days=+r+7*o,this._months=+a+3*i+12*n,this._data={},this._locale=yn(),this._bubble()}function si(e){return e instanceof li}function ci(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function pi(e,t,n){var i,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),r=0;for(i=0;i<a;i++)Te(e[i])!==Te(t[i])&&r++;return r+o}function di(e,t){L(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)})}di("Z",":"),di("ZZ",""),De("Z",be),De("ZZ",be),ze(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=mi(be,e)});var ui=/([\+\-]|\d\d)/gi;function mi(e,t){var n,i,a=(t||"").match(e);return null===a?null:0===(i=60*(n=((a[a.length-1]||[])+"").match(ui)||["-",0,0])[1]+Te(n[2]))?0:"+"===n[0]?i:-i}function fi(e,t){var i,a;return t._isUTC?(i=t.clone(),a=(k(e)||p(e)?e.valueOf():Jn(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+a),n.updateOffset(i,!1),i):Jn(e).local()}function hi(e){return-Math.round(e._d.getTimezoneOffset())}function vi(e,t,i){var a,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=mi(be,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(a=hi(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),o!==e&&(!t||this._changeInProgress?Ni(this,Ci(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:hi(this)}function gi(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function xi(e){return this.utcOffset(0,e)}function yi(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hi(this),"m")),this}function bi(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=mi(ye,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wi(e){return!!this.isValid()&&(e=e?Jn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function ki(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _i(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=$n(t))._a?(e=t._isUTC?m(t._a):Jn(t._a),this._isDSTShifted=this.isValid()&&pi(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Si(){return!!this.isValid()&&!this._isUTC}function Di(){return!!this.isValid()&&this._isUTC}function Oi(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Mi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ji=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ci(e,t){var n,i,a,o=e,l=null;return si(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(l=Mi.exec(e))?(n="-"===l[1]?-1:1,o={y:0,d:Te(l[Ae])*n,h:Te(l[Le])*n,m:Te(l[We])*n,s:Te(l[Ie])*n,ms:Te(ci(1e3*l[He]))*n}):(l=ji.exec(e))?(n="-"===l[1]?-1:1,o={y:Ti(l[2],n),M:Ti(l[3],n),w:Ti(l[4],n),d:Ti(l[5],n),h:Ti(l[6],n),m:Ti(l[7],n),s:Ti(l[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(a=zi(Jn(o.from),Jn(o.to)),(o={}).ms=a.milliseconds,o.M=a.months),i=new li(o),si(e)&&r(e,"_locale")&&(i._locale=e._locale),si(e)&&r(e,"_isValid")&&(i._isValid=e._isValid),i}function Ti(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Yi(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 zi(e,t){var n;return e.isValid()&&t.isValid()?(t=fi(t,e),e.isBefore(t)?n=Yi(e,t):((n=Yi(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Pi(e,t){return function(n,i){var a;return null===i||isNaN(+i)||(M(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=i,i=a),Ni(this,Ci(n,i),e),this}}function Ni(e,t,i,a){var o=t._milliseconds,r=ci(t._days),l=ci(t._months);e.isValid()&&(a=null==a||a,l&&mt(e,Je(e,"Month")+l*i),r&&Ke(e,"Date",Je(e,"Date")+r*i),o&&e._d.setTime(e._d.valueOf()+o*i),a&&n.updateOffset(e,r||l))}Ci.fn=li.prototype,Ci.invalid=ri;var Ei=Pi(1,"add"),Ri=Pi(-1,"subtract");function Fi(e){return"string"==typeof e||e instanceof String}function Ai(e){return k(e)||p(e)||Fi(e)||c(e)||Wi(e)||Li(e)||null==e}function Li(e){var t,n,i=o(e)&&!l(e),a=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=s.length;for(t=0;t<c;t+=1)n=s[t],a=a||r(e,n);return i&&a}function Wi(e){var t=a(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&Fi(e)}).length),t&&n}function Ii(e){var t,n,i=o(e)&&!l(e),a=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<s.length;t+=1)n=s[t],a=a||r(e,n);return i&&a}function Hi(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 Ui(e,t){1===arguments.length&&(arguments[0]?Ai(arguments[0])?(e=arguments[0],t=void 0):Ii(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var i=e||Jn(),a=fi(i,this).startOf("day"),o=n.calendarFormat(this,a)||"sameElse",r=t&&(j(t[o])?t[o].call(this,i):t[o]);return this.format(r||this.localeData().calendar(o,this,Jn(i)))}function Vi(){return new w(this)}function qi(e,t){var n=k(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=te(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Gi(e,t){var n=k(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=te(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function $i(e,t,n,i){var a=k(e)?e:Jn(e),o=k(t)?t:Jn(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&("("===(i=i||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Bi(e,t){var n,i=k(e)?e:Jn(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=te(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Zi(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Ji(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ki(e,t,n){var i,a,o;if(!this.isValid())return NaN;if(!(i=fi(e,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),t=te(t)){case"year":o=Qi(this,i)/12;break;case"month":o=Qi(this,i);break;case"quarter":o=Qi(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-a)/864e5;break;case"week":o=(this-i-a)/6048e5;break;default:o=this-i}return n?o:Ce(o)}function Qi(e,t){if(e.date()<t.date())return-Qi(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function Xi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ea(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?H(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):j(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ta(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i,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",i=o+'[")]',this.format(e+t+n+i)}function na(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=H(this,e);return this.localeData().postformat(t)}function ia(e,t){return this.isValid()&&(k(e)&&e.isValid()||Jn(e).isValid())?Ci({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function aa(e){return this.from(Jn(),e)}function oa(e,t){return this.isValid()&&(k(e)&&e.isValid()||Jn(e).isValid())?Ci({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ra(e){return this.to(Jn(),e)}function la(e){var t;return void 0===e?this._locale._abbr:(null!=(t=yn(e))&&(this._locale=t),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sa=S("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 ca(){return this._locale}var pa=1e3,da=60*pa,ua=60*da,ma=3506328*ua;function fa(e,t){return(e%t+t)%t}function ha(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ma:new Date(e,t,n).valueOf()}function va(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ma:Date.UTC(e,t,n)}function ga(e){var t,i;if(void 0===(e=te(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?va:ha,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fa(t+(this._isUTC?0:this.utcOffset()*da),ua);break;case"minute":t=this._d.valueOf(),t-=fa(t,da);break;case"second":t=this._d.valueOf(),t-=fa(t,pa)}return this._d.setTime(t),n.updateOffset(this,!0),this}function xa(e){var t,i;if(void 0===(e=te(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?va:ha,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ua-fa(t+(this._isUTC?0:this.utcOffset()*da),ua)-1;break;case"minute":t=this._d.valueOf(),t+=da-fa(t,da)-1;break;case"second":t=this._d.valueOf(),t+=pa-fa(t,pa)-1}return this._d.setTime(t),n.updateOffset(this,!0),this}function ya(){return this._d.valueOf()-6e4*(this._offset||0)}function ba(){return Math.floor(this.valueOf()/1e3)}function wa(){return new Date(this.valueOf())}function ka(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _a(){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 Sa(){return this.isValid()?this.toISOString():null}function Da(){return v(this)}function Oa(){return u({},h(this))}function Ma(){return h(this).overflow}function ja(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ca(e,t){var i,a,o,r=this._eras||yn("en")._eras;for(i=0,a=r.length;i<a;++i)switch("string"==typeof r[i].since&&(o=n(r[i].since).startOf("day"),r[i].since=o.valueOf()),typeof r[i].until){case"undefined":r[i].until=1/0;break;case"string":o=n(r[i].until).startOf("day").valueOf(),r[i].until=o.valueOf()}return r}function Ta(e,t,n){var i,a,o,r,l,s=this.eras();for(e=e.toUpperCase(),i=0,a=s.length;i<a;++i)if(o=s[i].name.toUpperCase(),r=s[i].abbr.toUpperCase(),l=s[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(r===e)return s[i];break;case"NNNN":if(o===e)return s[i];break;case"NNNNN":if(l===e)return s[i]}else if([o,r,l].indexOf(e)>=0)return s[i]}function Ya(e,t){var i=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*i}function za(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""}function Pa(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""}function Na(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""}function Ea(){var e,t,i,a,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(i=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()-n(o[e].since).year())*i+o[e].offset;return this.year()}function Ra(e){return r(this,"_erasNameRegex")||Ua.call(this),e?this._erasNameRegex:this._erasRegex}function Fa(e){return r(this,"_erasAbbrRegex")||Ua.call(this),e?this._erasAbbrRegex:this._erasRegex}function Aa(e){return r(this,"_erasNarrowRegex")||Ua.call(this),e?this._erasNarrowRegex:this._erasRegex}function La(e,t){return t.erasAbbrRegex(e)}function Wa(e,t){return t.erasNameRegex(e)}function Ia(e,t){return t.erasNarrowRegex(e)}function Ha(e,t){return t._eraYearOrdinalRegex||ge}function Ua(){var e,t,n,i,a,o=[],r=[],l=[],s=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=je(c[e].name),i=je(c[e].abbr),a=je(c[e].narrow),r.push(n),o.push(i),l.push(a),s.push(n),s.push(i),s.push(a);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+l.join("|")+")","i")}function Va(e,t){L(0,[e,e.length],0,t)}function qa(e){return Ka.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ga(e){return Ka.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function $a(){return St(this.year(),1,4)}function Ba(){return St(this.isoWeekYear(),1,4)}function Za(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Ja(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function Ka(e,t,n,i,a){var o;return null==e?_t(this,i,a).year:(t>(o=St(e,i,a))&&(t=o),Qa.call(this,e,t,n,i,a))}function Qa(e,t,n,i,a){var o=kt(e,t,n,i,a),r=bt(o.year,0,o.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}function Xa(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),De("N",La),De("NN",La),De("NNN",La),De("NNNN",Wa),De("NNNNN",Ia),ze(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){var a=n._locale.erasParse(e,i,n._strict);a?h(n).era=a:h(n).invalidEra=e}),De("y",ge),De("yy",ge),De("yyy",ge),De("yyyy",ge),De("yo",Ha),ze(["y","yy","yyy","yyyy"],Re),ze(["yo"],function(e,t,n,i){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Re]=n._locale.eraYearOrdinalParse(e,a):t[Re]=parseInt(e,10)}),L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Va("gggg","weekYear"),Va("ggggg","weekYear"),Va("GGGG","isoWeekYear"),Va("GGGGG","isoWeekYear"),De("G",xe),De("g",xe),De("GG",de,le),De("gg",de,le),De("GGGG",he,ce),De("gggg",he,ce),De("GGGGG",ve,pe),De("ggggg",ve,pe),Pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=Te(e)}),Pe(["gg","GG"],function(e,t,i,a){t[a]=n.parseTwoDigitYear(e)}),L("Q",0,"Qo","quarter"),De("Q",re),ze("Q",function(e,t){t[Fe]=3*(Te(e)-1)}),L("D",["DD",2],"Do","date"),De("D",de,_e),De("DD",de,le),De("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ze(["D","DD"],Ae),ze("Do",function(e,t){t[Ae]=Te(e.match(de)[0])});var eo=Ze("Date",!0);function to(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}L("DDD",["DDDD",3],"DDDo","dayOfYear"),De("DDD",fe),De("DDDD",se),ze(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Te(e)}),L("m",["mm",2],0,"minute"),De("m",de,Se),De("mm",de,le),ze(["m","mm"],We);var no=Ze("Minutes",!1);L("s",["ss",2],0,"second"),De("s",de,Se),De("ss",de,le),ze(["s","ss"],Ie);var io,ao,oo=Ze("Seconds",!1);for(L("S",0,0,function(){return~~(this.millisecond()/100)}),L(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,function(){return 10*this.millisecond()}),L(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),L(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),L(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),L(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),L(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),De("S",fe,re),De("SS",fe,le),De("SSS",fe,se),io="SSSS";io.length<=9;io+="S")De(io,ge);function ro(e,t){t[He]=Te(1e3*("0."+e))}for(io="S";io.length<=9;io+="S")ze(io,ro);function lo(){return this._isUTC?"UTC":""}function so(){return this._isUTC?"Coordinated Universal Time":""}ao=Ze("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var co=w.prototype;function po(e){return Jn(1e3*e)}function uo(){return Jn.apply(null,arguments).parseZone()}function mo(e){return e}co.add=Ei,co.calendar=Ui,co.clone=Vi,co.diff=Ki,co.endOf=xa,co.format=na,co.from=ia,co.fromNow=aa,co.to=oa,co.toNow=ra,co.get=Qe,co.invalidAt=Ma,co.isAfter=qi,co.isBefore=Gi,co.isBetween=$i,co.isSame=Bi,co.isSameOrAfter=Zi,co.isSameOrBefore=Ji,co.isValid=Da,co.lang=sa,co.locale=la,co.localeData=ca,co.max=Qn,co.min=Kn,co.parsingFlags=Oa,co.set=Xe,co.startOf=ga,co.subtract=Ri,co.toArray=ka,co.toObject=_a,co.toDate=wa,co.toISOString=ea,co.inspect=ta,"undefined"!=typeof Symbol&&null!=Symbol.for&&(co[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),co.toJSON=Sa,co.toString=Xi,co.unix=ba,co.valueOf=ya,co.creationData=ja,co.eraName=za,co.eraNarrow=Pa,co.eraAbbr=Na,co.eraYear=Ea,co.year=$e,co.isLeapYear=Be,co.weekYear=qa,co.isoWeekYear=Ga,co.quarter=co.quarters=Xa,co.month=ft,co.daysInMonth=ht,co.week=co.weeks=Ct,co.isoWeek=co.isoWeeks=Tt,co.weeksInYear=Za,co.weeksInWeekYear=Ja,co.isoWeeksInYear=$a,co.isoWeeksInISOWeekYear=Ba,co.date=eo,co.day=co.days=qt,co.weekday=Gt,co.isoWeekday=$t,co.dayOfYear=to,co.hour=co.hours=on,co.minute=co.minutes=no,co.second=co.seconds=oo,co.millisecond=co.milliseconds=ao,co.utcOffset=vi,co.utc=xi,co.local=yi,co.parseZone=bi,co.hasAlignedHourOffset=wi,co.isDST=ki,co.isLocal=Si,co.isUtcOffset=Di,co.isUtc=Oi,co.isUTC=Oi,co.zoneAbbr=lo,co.zoneName=so,co.dates=S("dates accessor is deprecated. Use date instead.",eo),co.months=S("months accessor is deprecated. Use month instead",ft),co.years=S("years accessor is deprecated. Use year instead",$e),co.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gi),co.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_i);var fo=Y.prototype;function ho(e,t,n,i){var a=yn(),o=m().set(i,t);return a[n](o,e)}function vo(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return ho(e,t,n,"month");var i,a=[];for(i=0;i<12;i++)a[i]=ho(e,i,n,"month");return a}function go(e,t,n,i){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var a,o=yn(),r=e?o._week.dow:0,l=[];if(null!=n)return ho(t,(n+r)%7,i,"day");for(a=0;a<7;a++)l[a]=ho(t,(a+r)%7,i,"day");return l}function xo(e,t){return vo(e,t,"months")}function yo(e,t){return vo(e,t,"monthsShort")}function bo(e,t,n){return go(e,t,n,"weekdays")}function wo(e,t,n){return go(e,t,n,"weekdaysShort")}function ko(e,t,n){return go(e,t,n,"weekdaysMin")}fo.calendar=P,fo.longDateFormat=q,fo.invalidDate=$,fo.ordinal=J,fo.preparse=mo,fo.postformat=mo,fo.relativeTime=Q,fo.pastFuture=X,fo.set=C,fo.eras=Ca,fo.erasParse=Ta,fo.erasConvertYear=Ya,fo.erasAbbrRegex=Fa,fo.erasNameRegex=Ra,fo.erasNarrowRegex=Aa,fo.months=ct,fo.monthsShort=pt,fo.monthsParse=ut,fo.monthsRegex=gt,fo.monthsShortRegex=vt,fo.week=Dt,fo.firstDayOfYear=jt,fo.firstDayOfWeek=Mt,fo.weekdays=Wt,fo.weekdaysMin=Ht,fo.weekdaysShort=It,fo.weekdaysParse=Vt,fo.weekdaysRegex=Bt,fo.weekdaysShortRegex=Zt,fo.weekdaysMinRegex=Jt,fo.isPM=nn,fo.meridiem=rn,vn("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===Te(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),n.lang=S("moment.lang is deprecated. Use moment.locale instead.",vn),n.langData=S("moment.langData is deprecated. Use moment.localeData instead.",yn);var _o=Math.abs;function So(){var e=this._data;return this._milliseconds=_o(this._milliseconds),this._days=_o(this._days),this._months=_o(this._months),e.milliseconds=_o(e.milliseconds),e.seconds=_o(e.seconds),e.minutes=_o(e.minutes),e.hours=_o(e.hours),e.months=_o(e.months),e.years=_o(e.years),this}function Do(e,t,n,i){var a=Ci(t,n);return e._milliseconds+=i*a._milliseconds,e._days+=i*a._days,e._months+=i*a._months,e._bubble()}function Oo(e,t){return Do(this,e,t,1)}function Mo(e,t){return Do(this,e,t,-1)}function jo(e){return e<0?Math.floor(e):Math.ceil(e)}function Co(){var e,t,n,i,a,o=this._milliseconds,r=this._days,l=this._months,s=this._data;return o>=0&&r>=0&&l>=0||o<=0&&r<=0&&l<=0||(o+=864e5*jo(Yo(l)+r),r=0,l=0),s.milliseconds=o%1e3,e=Ce(o/1e3),s.seconds=e%60,t=Ce(e/60),s.minutes=t%60,n=Ce(t/60),s.hours=n%24,r+=Ce(n/24),l+=a=Ce(To(r)),r-=jo(Yo(a)),i=Ce(l/12),l%=12,s.days=r,s.months=l,s.years=i,this}function To(e){return 4800*e/146097}function Yo(e){return 146097*e/4800}function zo(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=te(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+To(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Yo(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function Po(e){return function(){return this.as(e)}}var No=Po("ms"),Eo=Po("s"),Ro=Po("m"),Fo=Po("h"),Ao=Po("d"),Lo=Po("w"),Wo=Po("M"),Io=Po("Q"),Ho=Po("y"),Uo=No;function Vo(){return Ci(this)}function qo(e){return e=te(e),this.isValid()?this[e+"s"]():NaN}function Go(e){return function(){return this.isValid()?this._data[e]:NaN}}var $o=Go("milliseconds"),Bo=Go("seconds"),Zo=Go("minutes"),Jo=Go("hours"),Ko=Go("days"),Qo=Go("months"),Xo=Go("years");function er(){return Ce(this.days()/7)}var tr=Math.round,nr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ir(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}function ar(e,t,n,i){var a=Ci(e).abs(),o=tr(a.as("s")),r=tr(a.as("m")),l=tr(a.as("h")),s=tr(a.as("d")),c=tr(a.as("M")),p=tr(a.as("w")),d=tr(a.as("y")),u=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||r<=1&&["m"]||r<n.m&&["mm",r]||l<=1&&["h"]||l<n.h&&["hh",l]||s<=1&&["d"]||s<n.d&&["dd",s];return null!=n.w&&(u=u||p<=1&&["w"]||p<n.w&&["ww",p]),(u=u||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,u[3]=+e>0,u[4]=i,ir.apply(null,u)}function or(e){return void 0===e?tr:"function"==typeof e&&(tr=e,!0)}function rr(e,t){return void 0!==nr[e]&&(void 0===t?nr[e]:(nr[e]=t,"s"===e&&(nr.ss=t-1),!0))}function lr(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,a=!1,o=nr;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(o=Object.assign({},nr,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),i=ar(this,!a,o,n=this.localeData()),a&&(i=n.pastFuture(+this,i)),n.postformat(i)}var sr=Math.abs;function cr(e){return(e>0)-(e<0)||+e}function pr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,a,o,r,l,s=sr(this._milliseconds)/1e3,c=sr(this._days),p=sr(this._months),d=this.asSeconds();return d?(e=Ce(s/60),t=Ce(e/60),s%=60,e%=60,n=Ce(p/12),p%=12,i=s?s.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",o=cr(this._months)!==cr(d)?"-":"",r=cr(this._days)!==cr(d)?"-":"",l=cr(this._milliseconds)!==cr(d)?"-":"",a+"P"+(n?o+n+"Y":"")+(p?o+p+"M":"")+(c?r+c+"D":"")+(t||e||s?"T":"")+(t?l+t+"H":"")+(e?l+e+"M":"")+(s?l+i+"S":"")):"P0D"}var dr=li.prototype;return dr.isValid=oi,dr.abs=So,dr.add=Oo,dr.subtract=Mo,dr.as=zo,dr.asMilliseconds=No,dr.asSeconds=Eo,dr.asMinutes=Ro,dr.asHours=Fo,dr.asDays=Ao,dr.asWeeks=Lo,dr.asMonths=Wo,dr.asQuarters=Io,dr.asYears=Ho,dr.valueOf=Uo,dr._bubble=Co,dr.clone=Vo,dr.get=qo,dr.milliseconds=$o,dr.seconds=Bo,dr.minutes=Zo,dr.hours=Jo,dr.days=Ko,dr.weeks=er,dr.months=Qo,dr.years=Xo,dr.humanize=lr,dr.toISOString=pr,dr.toString=pr,dr.toJSON=pr,dr.locale=la,dr.localeData=ca,dr.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pr),dr.lang=sa,L("X",0,0,"unix"),L("x",0,0,"valueOf"),De("x",xe),De("X",we),ze("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ze("x",function(e,t,n){n._d=new Date(Te(e))}),
|
|
2
2
|
//! moment.js
|
|
3
|
-
n.version="2.30.1",i(Jn),n.fn=co,n.min=ei,n.max=ti,n.now=ni,n.utc=m,n.unix=po,n.months=xo,n.isDate=p,n.locale=vn,n.invalid=g,n.duration=Ci,n.isMoment=k,n.weekdays=bo,n.parseZone=uo,n.localeData=yn,n.isDuration=si,n.monthsShort=yo,n.weekdaysMin=ko,n.defineLocale=gn,n.updateLocale=xn,n.locales=bn,n.weekdaysShort=wo,n.normalizeUnits=te,n.relativeTimeRounding=or,n.relativeTimeThreshold=rr,n.calendarFormat=Hi,n.prototype=co,n.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"},n}()),it.exports),rt=et(ot);function lt(e){let{value:t=(new Date).toISOString(),minDate:n=null,maxDate:i=null,label:a="",onChange:o=()=>{},required:r=!1,disabled:l=!1,datePickerProps:s=null}=e;return u(m,{children:[d(w,{sx:e=>e.typography.fontSize,required:r,children:a}),d(H,Ye({allowKeyboardControl:!0,margin:"dense",inputVariant:"outlined",autoOk:!0,format:"DD/MM/YYYY",slotProps:{textField:{variant:"outlined",fullWidth:!0,size:"small",sx:{mt:1}}},value:t?rt(t):null,minDate:n?rt(n):null,maxDate:i?rt(i):null,onChange:o,disabled:l},s))]})}function st(e){let{label:t="",value:n=(new Date).toISOString(),onChange:i=()=>{},minDate:a,maxDate:o,required:r=!1,disabled:l=!1}=e;return u(m,{children:[d(w,{sx:e=>e.typography.fontSize,required:r,children:t}),d(U,{allowKeyboardControl:!0,autoOk:!0,margin:"dense",inputVariant:"outlined",ampm:!1,renderInput:e=>d(b,Ye({},e)),value:rt(n),minDate:rt(a),maxDate:rt(o),onChange:i,disabled:l,format:"DD/MM/YYYY HH:mm",slotProps:{textField:{variant:"outlined",fullWidth:!0,size:"small",sx:{mt:1}}}})]})}const ct=["autoFocus","propertyName"];function pt(e){let{autoFocus:t=!1,propertyName:n}=e,i=function(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,ct);return d(Ve,Ye({adornment:d(C,{onClick:()=>!1,size:"large",children:d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:d("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})})}),autoFocus:t,propertyName:n},i))}const dt={getHref:(e,t)=>{if(e&&e.links&&e.links.length>0){const n=e.links.find(e=>e.rel===t);return n?n.href:null}return null},getSelfHref:e=>dt.getHref(e,"self"),sortList:e=>e.slice().sort((e,t)=>e<t?-1:e>t?1:0),sortEntityList:(e,t)=>e.slice().sort((e,n)=>e[t]<n[t]?-1:e[t]>n[t]?1:0)},ut=e=>function(t){const{initialise:n,itemId:i}=t;return a(()=>{n&&i?n({itemId:i}):n&&n(t)},[n,i]),d(e,Ye({},t))};function mt(e){let{section:t,close:n}=e;const{columns:i}=t;return u(te,{sx:{backgroundColor:"#f5f5f5",position:"fixed",zIndex:1e3,paddingTop:"80px",width:"100%",overflow:"auto",height:"100vh"},children:[d(p,{onClick:n,color:"secondary",sx:{marginRight:"10px",marginTop:"10px",float:"right",top:0,right:0},children:d(I,{})}),u(Y,{container:!0,children:[i.map((e,t)=>d(Y,{size:{xs:12,md:6,lg:3,xl:3},children:e.categories.filter(e=>e.items.filter(e=>e.showInMenu).length>0).map(e=>u(R,{dense:!0,children:[d(F,{sx:{paddingTop:"0px !important",paddingBottom:"0px !important"},children:d(x,{variant:"button",gutterBottom:!0,children:e.title.replace("&","&")})}),e.items.map(e=>e.showInMenu&&d("a",{href:e.href,style:{textDecoration:"none"},children:d(F,{sx:{paddingTop:0,paddingBottom:0,margin:0},children:d(x,{sx:{margin:0,lineHeight:1.8},variant:"overline",color:"primary",children:e.title})})},e.href))]},e.title))},t)),d(Y,{size:12,children:d("a",{href:"/".concat(t.id),children:d(p,{onClick:n,color:"primary",sx:{marginRight:"10px",marginBottom:"10px",float:"right"},children:"SHOW ALL OPTIONS..."})})})]})]})}const ft={paper:{backgroundColor:"#f5f5f5",position:"fixed",zIndex:1e3,paddingTop:"80px",width:"100%",overflow:"auto",height:"100vh"}};function ht(e){let{menu:i,close:a}=e;const[o,r]=t(),l=i.map(e=>e.columns).flat().map(e=>e.categories).flat().map(e=>e.items).flat(),s=Object.values(l.reduce((e,t)=>e[t.href]?e:Ye(Ye({},e),{},{[t.href]:t}),{}));return u(te,{sx:ft.paper,children:[d(p,{onClick:a,color:"secondary",sx:{marginRight:"10px",marginTop:"10px",float:"right",top:0,right:0},children:d(I,{})}),d(Y,{container:!0,children:u(Y,{size:12,sm:6,md:4,lg:3,xl:3,"justify-content":"flex-end",children:[d(pt,{value:o,onChange:(e,t)=>{r(t)},textFieldProps:{autoFocus:!0},placeholder:"start typing..."}),d(R,{dense:!0,children:(null==o?void 0:o.length)>1&&s.filter(e=>e.title.toLowerCase().includes(o.toLowerCase())||e.href.toLowerCase().includes(o.toLowerCase())).map(e=>d(n,{children:d("a",{href:e.href,style:{textDecoration:"none"},children:d(F,{sx:{paddingTop:0,paddingBottom:0,margin:0},children:d(x,{variant:"overline",color:"primary",sx:{margin:0,lineHeight:1.8},children:e.title})})})},e.href))})]})})]})}function vt(e){let{sections:n=null,loading:i=!1,username:o="",myStuff:r=null,seenNotifications:l=[],unseenNotifications:s=[],markNotificationSeen:c,handleSignOut:f=null}=e;const[h,v]=t(!1),[g,y]=t(),{enqueueSnackbar:b,closeSnackbar:w}=M(),k={root:{position:"absolute",width:"100%",margin:0,top:0,zIndex:10},tabLabel:{fontSize:"1rem",color:"#B0B0B0"},snackbarNew:{background:"#1a73e8",width:"800px"},snackbarSeen:{width:"800px"},tab:{minWidth:"100px"},toolbar:{paddingLeft:0,paddingRight:0},tabs:{paddingLeft:0,flexGrow:1},container:{width:"100%",margin:0},appBar:{backgroundColor:"#424242",width:"100% !important",margin:0,position:"fixed",zIndex:1300},icons:{cursor:"pointer",color:"white"}},_=()=>{y()};if(a(()=>{const e=e=>{"Escape"===e.key&&v(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[]),n){const e=n.map(e=>e.id),t=e=>{y(e.currentTarget)},a=(e,t)=>u(m,{children:[d(p,{variant:"contained",onClick:()=>{window.location=dt.getSelfHref(t)},children:"View"}),d(p,{onClick:()=>{w(e),localStorage.setItem(t.title,t.content),c(t)},children:"Dismiss"})]}),S=()=>!l&&!s||l.length+s.length===0,D=()=>{S()?b("No notifications to show!",{anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:"info",preventDuplicate:!0}):s.concat(l).forEach((e,t)=>{setTimeout(()=>{b("".concat(e.title," ").concat(e.content),{anchorOrigin:{vertical:"bottom",horizontal:"right"},ContentProps:{sx:{root:localStorage.getItem(e.title)?k.snackbarSeen:k.snackbarNew}},action:t=>a(t,e),preventDuplicate:!0})},200*t)})};return d($,{onClickAway:()=>v(!1),children:u("div",{className:"hide-when-printing",children:[d(Y,{container:!0,spacing:3,children:n&&!i&&d(G,{position:"static",sx:k.appBar,children:d(J,{children:u(Y,{container:!0,spacing:3,sx:k.container,children:[d(Y,{size:9,children:d(V,{sx:k.tabs,value:h,onChange:(e,t)=>{v(h!==t&&t)},scrollButtons:"auto",variant:"scrollable",indicatorColor:"primary",textColor:"primary",children:n.map(e=>d(q,{id:e.id,sx:k.tab,label:d("span",{style:k.tabLabel,children:e.title}),selected:!1},e.id))})}),d(Y,{size:1,children:d(x,{variant:"h4",children:d(Q,{sx:k.icons,"aria-owns":g?"simple-menu":void 0,onClick:t,id:n.length},n.length)})}),d(Y,{size:1,children:d(x,{variant:"h4",children:d(K,{badgeContent:s?s.length:0,color:"primary",variant:"dot",children:d(ee,{sx:k.icons,onClick:D})})})}),d(Y,{size:1,children:d(x,{variant:"h4",children:d(X,{sx:k.icons,onClick:()=>v(n.length)})})}),u(B,{id:"simple-menu",anchorEl:g,open:Boolean(g),onClose:_,children:[d(Z,{onClick:_,children:o}),o&&r.groups.map(e=>d("span",{children:d("a",{href:e.items[0].href,children:d(Z,{onClick:_,children:e.items[0].title})})},e.items[0].href)),f&&d(Z,{style:{color:"blue",textDecoration:"underline",cursor:"pointer",background:"none"},onClick:f,children:"Sign Out (Newer apps pages)"})]})]})})})}),e.map((e,t)=>h===t&&d(mt,{section:n.find(t=>t.id===e),id:e,style:{align:"right"},anchorEl:e.id,close:()=>v(!1)},e)),h===n.length&&d(ht,{menu:n,close:()=>v(!1)})]})})}return d("div",{style:k.root,children:d(G,{position:"static",color:"default",children:d(J,{sx:k.toolbar})})})}const gt=ne();function xt(e){let{items:t,removeItem:i=null,title:a="Items Selected",maxHeight:o=null}=e;return u(m,{children:[d(x,{variant:"body1",sx:{marginBottom:"8px"},children:a}),d(R,{dense:!0,sx:Ye({width:"100%",position:"relative",overflow:"auto"},o&&{maxHeight:o}),children:t.map(e=>u(n,{children:[u(F,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 16px"},children:[d(ae,{primary:e.displayText?e.displayText:e}),i&&d(L,{"aria-label":"delete",onClick:()=>i(e.id?e.id:e),size:"large",sx:{marginLeft:"auto"},children:d(oe,{})})]}),d(re,{})]},e.id?e.id:e))})]})}function yt(){return d(Y,{container:!0,alignItems:"flex-start",styles:{alignItems:"flex-start"},children:d(T,{variant:"h4",children:"Page Not Found"})})}function bt(e){return rt.isMoment(e)?e.clone():rt(e,"MM-DD-YYYY")}function wt(e){const t=bt(e);return 6===t.day()?t.endOf("week"):t.startOf("week").subtract(1,"days")}function kt(e){const t=bt(e);return 6===t.day()?t.endOf("week").add(6,"days"):t.endOf("week").subtract(1,"days")}const _t=ie(le,{shouldForwardProp:e=>"dayIsBetween"!==e&&"isFirstDay"!==e&&"isLastDay"!==e})(e=>{let{theme:t,dayIsBetween:n,isFirstDay:i,isLastDay:a}=e;return Ye(Ye(Ye({},n&&{borderRadius:0,backgroundColor:t.palette.primary.main,color:t.palette.common.white,"&:hover, &:focus":{backgroundColor:t.palette.primary.dark}}),i&&{borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%"}),a&&{borderTopRightRadius:"50%",borderBottomRightRadius:"50%"})});function St(e){let{selectedDate:t=new Date,setWeekStartDate:n,propertyName:i="",label:a="",disabled:o=!1,required:r=!1}=e;return u(m,{children:[a&&d(w,{required:r,sx:{fontSize:"1rem",marginBottom:"8px"},children:a}),d(H,{disabled:o,value:t?rt(t):null,onChange:e=>{n(i,wt(e))},renderInput:e=>d(b,Ye(Ye({},e),{},{variant:"outlined"})),renderDay:(e,n,i)=>{if(!t)return d(le,Ye({},i));const a=rt(wt(t)),o=rt(kt(t)),r=rt(e).isBetween(a,o,null,"[]"),l=rt(e).isSame(a,"day"),s=rt(e).isSame(o,"day");return d(_t,Ye(Ye({},i),{},{dayIsBetween:r,isFirstDay:l,isLastDay:s}))},inputFormat:"DD/MM/YYYY",slotProps:{textField:{variant:"outlined",fullWidth:!0,size:"small",sx:{mt:1}}}})]})}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("@media print {\n @page {\n size: portrait;\n margin: 0mm;\n margin-right: 0mm;\n }\n \n @page land {\n size: landscape !important;\n margin: 0mm;\n margin-right: 0mm;\n }\n .print-landscape {\n page: land;\n }\n .pageContainer {\n width: 1100px;\n height: 800px;\n }\n table {\n zoom: 0.85;\n }\n .zoomed-in-printing {\n zoom: 1.45;\n }\n .date-for-printing {\n display: block !important;\n }\n .hide-when-printing {\n display: none !important;\n }\n .show-only-when-printing {\n display: block !important;\n }\n .padding-top-when-not-printing {\n padding-top: 0 !important;\n margin-top: -50px;\n }\n}\n\n.date-for-printing {\n display: none;\n right: 40px;\n top: 40px;\n position: absolute;\n font-size: small;\n}\n\n.show-only-when-printing {\n display: none;\n}\n\n.padding-top-when-not-printing {\n padding-top: 40px;\n}\n");const Dt=(e,t)=>{var n;null!=e&&null!==(n=e[e.length-1])&&void 0!==n&&n.includes("signin-oidc")?global.window.history.go(-3):null!=e&&e.length?t():global.window.history.back()};var Ot,Mt={exports:{}},jt={exports:{}},Ct={};var Tt,Yt,zt,Pt,Nt,Et,Rt,Ft,At,Lt,Wt,It,Ht,Ut,Vt,qt={};
|
|
3
|
+
n.version="2.30.1",i(Jn),n.fn=co,n.min=ei,n.max=ti,n.now=ni,n.utc=m,n.unix=po,n.months=xo,n.isDate=p,n.locale=vn,n.invalid=g,n.duration=Ci,n.isMoment=k,n.weekdays=bo,n.parseZone=uo,n.localeData=yn,n.isDuration=si,n.monthsShort=yo,n.weekdaysMin=ko,n.defineLocale=gn,n.updateLocale=xn,n.locales=bn,n.weekdaysShort=wo,n.normalizeUnits=te,n.relativeTimeRounding=or,n.relativeTimeThreshold=rr,n.calendarFormat=Hi,n.prototype=co,n.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"},n}()),it.exports),rt=et(ot);function lt(e){let{value:t=(new Date).toISOString(),minDate:n=null,maxDate:i=null,label:a="",onChange:o=()=>{},required:r=!1,disabled:l=!1,datePickerProps:s=null}=e;return u(m,{children:[d(w,{sx:e=>e.typography.fontSize,required:r,children:a}),d(H,Ye({allowKeyboardControl:!0,margin:"dense",inputVariant:"outlined",autoOk:!0,format:"DD/MM/YYYY",slotProps:{textField:{variant:"outlined",fullWidth:!0,size:"small",sx:{mt:1}}},value:t?rt(t):null,minDate:n?rt(n):null,maxDate:i?rt(i):null,onChange:o,disabled:l},s))]})}function st(e){let{label:t="",value:n=(new Date).toISOString(),onChange:i=()=>{},minDate:a,maxDate:o,required:r=!1,disabled:l=!1}=e;return u(m,{children:[d(w,{sx:e=>e.typography.fontSize,required:r,children:t}),d(U,{allowKeyboardControl:!0,autoOk:!0,margin:"dense",inputVariant:"outlined",ampm:!1,renderInput:e=>d(b,Ye({},e)),value:rt(n),minDate:rt(a),maxDate:rt(o),onChange:i,disabled:l,format:"DD/MM/YYYY HH:mm",slotProps:{textField:{variant:"outlined",fullWidth:!0,size:"small",sx:{mt:1}}}})]})}const ct=["autoFocus","propertyName"];function pt(e){let{autoFocus:t=!1,propertyName:n}=e,i=function(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,ct);return d(Ve,Ye({adornment:d(C,{onClick:()=>!1,size:"large",children:d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:d("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})})}),autoFocus:t,propertyName:n},i))}const dt={getHref:(e,t)=>{if(e&&e.links&&e.links.length>0){const n=e.links.find(e=>e.rel===t);return n?n.href:null}return null},getSelfHref:e=>dt.getHref(e,"self"),sortList:e=>e.slice().sort((e,t)=>e<t?-1:e>t?1:0),sortEntityList:(e,t)=>e.slice().sort((e,n)=>e[t]<n[t]?-1:e[t]>n[t]?1:0)},ut=e=>function(t){const{initialise:n,itemId:i}=t;return a(()=>{n&&i?n({itemId:i}):n&&n(t)},[n,i]),d(e,Ye({},t))};function mt(e){let{section:t,close:n}=e;const{columns:i}=t;return u(te,{sx:{backgroundColor:"#f5f5f5",position:"fixed",zIndex:1e3,paddingTop:"80px",width:"100%",overflow:"auto",height:"100vh"},children:[d(p,{onClick:n,color:"secondary",sx:{marginRight:"10px",marginTop:"10px",float:"right",top:0,right:0},children:d(I,{})}),u(Y,{container:!0,children:[i.map((e,t)=>d(Y,{size:{xs:12,md:6,lg:3,xl:3},children:e.categories.filter(e=>e.items.filter(e=>e.showInMenu).length>0).map(e=>u(R,{dense:!0,children:[d(F,{sx:{paddingTop:"0px !important",paddingBottom:"0px !important"},children:d(x,{variant:"button",gutterBottom:!0,children:e.title.replace("&","&")})}),e.items.map(e=>e.showInMenu&&d("a",{href:e.href,style:{textDecoration:"none"},children:d(F,{sx:{paddingTop:0,paddingBottom:0,margin:0},children:d(x,{sx:{margin:0,lineHeight:1.8},variant:"overline",color:"primary",children:e.title})})},e.href))]},e.title))},t)),d(Y,{size:12,children:d("a",{href:"/".concat(t.id),children:d(p,{onClick:n,color:"primary",sx:{marginRight:"10px",marginBottom:"10px",float:"right"},children:"SHOW ALL OPTIONS..."})})})]})]})}const ft={paper:{backgroundColor:"#f5f5f5",position:"fixed",zIndex:1e3,paddingTop:"80px",width:"100%",overflow:"auto",height:"100vh"}};function ht(e){let{menu:i,close:a}=e;const[o,r]=t(),l=i.map(e=>e.columns).flat().map(e=>e.categories).flat().map(e=>e.items).flat(),s=Object.values(l.reduce((e,t)=>e[t.href]?e:Ye(Ye({},e),{},{[t.href]:t}),{}));return u(te,{sx:ft.paper,children:[d(p,{onClick:a,color:"secondary",sx:{marginRight:"10px",marginTop:"10px",float:"right",top:0,right:0},children:d(I,{})}),d(Y,{container:!0,children:u(Y,{size:12,sm:6,md:4,lg:3,xl:3,"justify-content":"flex-end",children:[d(pt,{value:o,onChange:(e,t)=>{r(t)},textFieldProps:{autoFocus:!0},placeholder:"start typing..."}),d(R,{dense:!0,children:(null==o?void 0:o.length)>1&&s.filter(e=>e.title.toLowerCase().includes(o.toLowerCase())||e.href.toLowerCase().includes(o.toLowerCase())).map(e=>d(n,{children:d("a",{href:e.href,style:{textDecoration:"none"},children:d(F,{sx:{paddingTop:0,paddingBottom:0,margin:0},children:d(x,{variant:"overline",color:"primary",sx:{margin:0,lineHeight:1.8},children:e.title})})})},e.href))})]})})]})}function vt(e){let{sections:n=null,loading:i=!1,username:o="",myStuff:r=null,notifications:l=[],handleSignOut:s=null}=e;const[c,f]=t(!1),[h,v]=t(),{enqueueSnackbar:g,closeSnackbar:y}=M(),b={root:{position:"absolute",width:"100%",margin:0,top:0,zIndex:10},tabLabel:{fontSize:"1rem",color:"#B0B0B0"},snackbarNew:{background:"#1a73e8",width:"800px"},snackbarSeen:{width:"800px"},tab:{minWidth:"100px"},toolbar:{paddingLeft:0,paddingRight:0},tabs:{paddingLeft:0,flexGrow:1},container:{width:"100%",margin:0},appBar:{backgroundColor:"#424242",width:"100% !important",margin:0,position:"fixed",zIndex:1300},icons:{cursor:"pointer",color:"white"}},w=()=>{v()};if(a(()=>{const e=e=>{"Escape"===e.key&&f(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[]),n){const e=n.map(e=>e.id),t=e=>{v(e.currentTarget)},a=(e,t)=>u(m,{children:[d(p,{variant:"contained",onClick:()=>{window.location=dt.getSelfHref(t)},children:"View"}),d(p,{onClick:()=>{y(e),localStorage.setItem(t.title,t.content),markNotificationSeen(t)},children:"Dismiss"})]}),k=()=>0===l.length,_=()=>{k()?g("No notifications to show!",{anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:"info",preventDuplicate:!0}):l.forEach((e,t)=>{setTimeout(()=>{g("".concat(e.title," ").concat(e.content),{anchorOrigin:{vertical:"bottom",horizontal:"right"},ContentProps:{sx:{root:localStorage.getItem(e.title)?b.snackbarSeen:b.snackbarNew}},action:t=>a(t,e),preventDuplicate:!0})},200*t)})};return d($,{onClickAway:()=>f(!1),children:u("div",{className:"hide-when-printing",children:[d(Y,{container:!0,spacing:3,children:n&&!i&&d(G,{position:"static",sx:b.appBar,children:d(J,{children:u(Y,{container:!0,spacing:3,sx:b.container,children:[d(Y,{size:9,children:d(V,{sx:b.tabs,value:c,onChange:(e,t)=>{f(c!==t&&t)},scrollButtons:"auto",variant:"scrollable",indicatorColor:"primary",textColor:"primary",children:n.map(e=>d(q,{id:e.id,sx:b.tab,label:d("span",{style:b.tabLabel,children:e.title}),selected:!1},e.id))})}),d(Y,{size:1,children:d(x,{variant:"h4",children:d(Q,{sx:b.icons,"aria-owns":h?"simple-menu":void 0,onClick:t,id:n.length},n.length)})}),d(Y,{size:1,children:d(x,{variant:"h4",children:d(K,{badgeContent:l.length,color:"primary",variant:"dot",children:d(ee,{sx:b.icons,onClick:_})})})}),d(Y,{size:1,children:d(x,{variant:"h4",children:d(X,{sx:b.icons,onClick:()=>f(n.length)})})}),u(B,{id:"simple-menu",anchorEl:h,open:Boolean(h),onClose:w,children:[d(Z,{onClick:w,children:o}),o&&r.groups.map(e=>d("span",{children:d("a",{href:e.items[0].href,children:d(Z,{onClick:w,children:e.items[0].title})})},e.items[0].href)),s&&d(Z,{style:{color:"blue",textDecoration:"underline",cursor:"pointer",background:"none"},onClick:s,children:"Sign Out (Newer apps pages)"})]})]})})})}),e.map((e,t)=>c===t&&d(mt,{section:n.find(t=>t.id===e),id:e,style:{align:"right"},anchorEl:e.id,close:()=>f(!1)},e)),c===n.length&&d(ht,{menu:n,close:()=>f(!1)})]})})}return d("div",{style:b.root,children:d(G,{position:"static",color:"default",children:d(J,{sx:b.toolbar})})})}const gt=ne();function xt(e){let{items:t,removeItem:i=null,title:a="Items Selected",maxHeight:o=null}=e;return u(m,{children:[d(x,{variant:"body1",sx:{marginBottom:"8px"},children:a}),d(R,{dense:!0,sx:Ye({width:"100%",position:"relative",overflow:"auto"},o&&{maxHeight:o}),children:t.map(e=>u(n,{children:[u(F,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 16px"},children:[d(ae,{primary:e.displayText?e.displayText:e}),i&&d(L,{"aria-label":"delete",onClick:()=>i(e.id?e.id:e),size:"large",sx:{marginLeft:"auto"},children:d(oe,{})})]}),d(re,{})]},e.id?e.id:e))})]})}function yt(){return d(Y,{container:!0,alignItems:"flex-start",styles:{alignItems:"flex-start"},children:d(T,{variant:"h4",children:"Page Not Found"})})}function bt(e){return rt.isMoment(e)?e.clone():rt(e,"MM-DD-YYYY")}function wt(e){const t=bt(e);return 6===t.day()?t.endOf("week"):t.startOf("week").subtract(1,"days")}function kt(e){const t=bt(e);return 6===t.day()?t.endOf("week").add(6,"days"):t.endOf("week").subtract(1,"days")}const _t=ie(le,{shouldForwardProp:e=>"dayIsBetween"!==e&&"isFirstDay"!==e&&"isLastDay"!==e})(e=>{let{theme:t,dayIsBetween:n,isFirstDay:i,isLastDay:a}=e;return Ye(Ye(Ye({},n&&{borderRadius:0,backgroundColor:t.palette.primary.main,color:t.palette.common.white,"&:hover, &:focus":{backgroundColor:t.palette.primary.dark}}),i&&{borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%"}),a&&{borderTopRightRadius:"50%",borderBottomRightRadius:"50%"})});function St(e){let{selectedDate:t=new Date,setWeekStartDate:n,propertyName:i="",label:a="",disabled:o=!1,required:r=!1}=e;return u(m,{children:[a&&d(w,{required:r,sx:{fontSize:"1rem",marginBottom:"8px"},children:a}),d(H,{disabled:o,value:t?rt(t):null,onChange:e=>{n(i,wt(e))},renderInput:e=>d(b,Ye(Ye({},e),{},{variant:"outlined"})),renderDay:(e,n,i)=>{if(!t)return d(le,Ye({},i));const a=rt(wt(t)),o=rt(kt(t)),r=rt(e).isBetween(a,o,null,"[]"),l=rt(e).isSame(a,"day"),s=rt(e).isSame(o,"day");return d(_t,Ye(Ye({},i),{},{dayIsBetween:r,isFirstDay:l,isLastDay:s}))},inputFormat:"DD/MM/YYYY",slotProps:{textField:{variant:"outlined",fullWidth:!0,size:"small",sx:{mt:1}}}})]})}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("@media print {\n @page {\n size: portrait;\n margin: 0mm;\n margin-right: 0mm;\n }\n \n @page land {\n size: landscape !important;\n margin: 0mm;\n margin-right: 0mm;\n }\n .print-landscape {\n page: land;\n }\n .pageContainer {\n width: 1100px;\n height: 800px;\n }\n table {\n zoom: 0.85;\n }\n .zoomed-in-printing {\n zoom: 1.45;\n }\n .date-for-printing {\n display: block !important;\n }\n .hide-when-printing {\n display: none !important;\n }\n .show-only-when-printing {\n display: block !important;\n }\n .padding-top-when-not-printing {\n padding-top: 0 !important;\n margin-top: -50px;\n }\n}\n\n.date-for-printing {\n display: none;\n right: 40px;\n top: 40px;\n position: absolute;\n font-size: small;\n}\n\n.show-only-when-printing {\n display: none;\n}\n\n.padding-top-when-not-printing {\n padding-top: 40px;\n}\n");const Dt=(e,t)=>{var n;null!=e&&null!==(n=e[e.length-1])&&void 0!==n&&n.includes("signin-oidc")?global.window.history.go(-3):null!=e&&e.length?t():global.window.history.back()};var Ot,Mt={exports:{}},jt={exports:{}},Ct={};var Tt,Yt,zt,Pt,Nt,Et,Rt,Ft,At,Lt,Wt,It,Ht,Ut,Vt,qt={};
|
|
4
4
|
/** @license React v16.13.1
|
|
5
5
|
* react-is.development.js
|
|
6
6
|
*
|