@ecl/ec-preset-website
Version:
ECL EC Website preset
2 lines • 193 kB
JavaScript
/* @ecl/ec-preset-website - 2.39.0 Built on 2021-08-12T13:04:00.687Z */
var ECL=function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}return null});function o(e,t){return void 0===t&&(t=document),[].slice.call(t.querySelectorAll(e))}function l(e,t){return(t=void 0===t?document:t).querySelector(e)}var a=["root"],t=function(){function i(e,t){var i=void 0===t?{}:t,n=i.toggleSelector,t=void 0===n?"[data-ecl-accordion2-toggle]":n,n=i.iconSelector,n=void 0===n?"[data-ecl-accordion2-icon]":n,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=t,this.iconSelector=n,this.attachClickListener=i,this.toggles=null,this.forceClose=!1,this.target=null,this.label=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).ACCORDION2,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLAccordion2=t};var e=i.prototype;return e.init=function(){var t=this;this.toggles=o(this.toggleSelector,this.element),this.label=l(this.labelSelector,this.element),this.attachClickListener&&this.toggles&&this.toggles.forEach(function(e){e.addEventListener("click",t.handleClickOnToggle.bind(t,e))})},e.destroy=function(){var t=this;this.attachClickListener&&this.toggles&&this.toggles.forEach(function(e){e.removeEventListener("click",t.handleClickOnToggle)})},e.handleClickOnToggle=function(e){var t=l("#"+e.getAttribute("aria-controls"),this.element);if(!t)throw new TypeError("Target has to be provided for accordion (aria-controls)");var i=!0===this.forceClose||"true"===e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",i?"false":"true"),t.hidden=i;var n=l(this.iconSelector,e);return!n||(t=l("use",n))&&(e=t.getAttribute("xlink:href"),n="",n=i?e.replace("ui--minus","ui--plus"):e.replace("ui--plus","ui--minus"),t.setAttribute("xlink:href",n)),this},i}(),i=function(){function i(e,t){var i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-ellipsis-button]":n,a=i.ellipsisSelector,r=void 0===a?"[data-ecl-breadcrumb-ellipsis]":a,o=i.segmentSelector,l=void 0===o?"[data-ecl-breadcrumb-item]":o,t=i.expandableItemsSelector,n=void 0===t?'[data-ecl-breadcrumb-item="expandable"]':t,a=i.staticItemsSelector,o=void 0===a?'[data-ecl-breadcrumb-item="static"]':a,t=i.onPartialExpand,a=void 0===t?null:t,t=i.onFullExpand,t=void 0===t?null:t,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=s,this.ellipsisSelector=r,this.segmentSelector=l,this.expandableItemsSelector=n,this.staticItemsSelector=o,this.onPartialExpand=a,this.onFullExpand=t,this.attachClickListener=i,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).BREADCRUMB,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLBreadcrumb=t};var e=i.prototype;return e.init=function(){this.ellipsisButton=l(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=o(this.segmentSelector,this.element),this.staticElements=o(this.staticItemsSelector,this.element),this.expandableElements=o(this.expandableItemsSelector,this.element),this.check()},e.destroy=function(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.handleClickOnEllipsis=function(){return this.handleFullExpand()},e.check=function(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))},e.hideEllipsis=function(){var e=l(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.showAllItems=function(){this.expandableElements.forEach(function(e){return e.setAttribute("aria-hidden","false")})},e.handlePartialExpand=function(e){var i;!e||(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach(function(e,t){e.setAttribute("aria-hidden",i[t]?"false":"true")}))},e.handleFullExpand=function(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())},e.computeVisibilityMap=function(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var t=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=t)return{expanded:!0};var i=l(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(t<=i)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var n=0,s=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!s)return!1;e=(n+=e.getBoundingClientRect().width)+i<=t;return e||(s=!1),e}).reverse()}},i}(),n=function(){function i(e,t){var i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-core-ellipsis-button]":n,a=i.ellipsisSelector,r=void 0===a?"[data-ecl-breadcrumb-core-ellipsis]":a,o=i.segmentSelector,l=void 0===o?"[data-ecl-breadcrumb-core-item]":o,t=i.expandableItemsSelector,n=void 0===t?'[data-ecl-breadcrumb-core-item="expandable"]':t,a=i.staticItemsSelector,o=void 0===a?'[data-ecl-breadcrumb-core-item="static"]':a,t=i.onPartialExpand,a=void 0===t?null:t,t=i.onFullExpand,t=void 0===t?null:t,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=s,this.ellipsisSelector=r,this.segmentSelector=l,this.expandableItemsSelector=n,this.staticItemsSelector=o,this.onPartialExpand=a,this.onFullExpand=t,this.attachClickListener=i,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).BREADCRUMB_CORE,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLBreadcrumbCore=t};var e=i.prototype;return e.init=function(){this.ellipsisButton=l(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=o(this.segmentSelector,this.element),this.staticElements=o(this.staticItemsSelector,this.element),this.expandableElements=o(this.expandableItemsSelector,this.element),this.check()},e.destroy=function(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.handleClickOnEllipsis=function(){return this.handleFullExpand()},e.check=function(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))},e.hideEllipsis=function(){var e=l(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.showAllItems=function(){this.expandableElements.forEach(function(e){return e.setAttribute("aria-hidden","false")})},e.handlePartialExpand=function(e){var i;!e||(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach(function(e,t){e.setAttribute("aria-hidden",i[t]?"false":"true")}))},e.handleFullExpand=function(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())},e.computeVisibilityMap=function(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var t=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=t)return{expanded:!0};var i=l(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(t<=i)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var n=0,s=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!s)return!1;e=(n+=e.getBoundingClientRect().width)+i<=t;return e||(s=!1),e}).reverse()}},i}(),s=function(){function i(e,t){var i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-harmonised-ellipsis-button]":n,a=i.ellipsisSelector,r=void 0===a?"[data-ecl-breadcrumb-harmonised-ellipsis]":a,o=i.segmentSelector,l=void 0===o?"[data-ecl-breadcrumb-harmonised-item]":o,t=i.expandableItemsSelector,n=void 0===t?'[data-ecl-breadcrumb-harmonised-item="expandable"]':t,a=i.staticItemsSelector,o=void 0===a?'[data-ecl-breadcrumb-harmonised-item="static"]':a,t=i.onPartialExpand,a=void 0===t?null:t,t=i.onFullExpand,t=void 0===t?null:t,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=s,this.ellipsisSelector=r,this.segmentSelector=l,this.expandableItemsSelector=n,this.staticItemsSelector=o,this.onPartialExpand=a,this.onFullExpand=t,this.attachClickListener=i,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).BREADCRUMB_HARMONISED,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLBreadcrumbHarmonised=t};var e=i.prototype;return e.init=function(){this.ellipsisButton=l(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=o(this.segmentSelector,this.element),this.staticElements=o(this.staticItemsSelector,this.element),this.expandableElements=o(this.expandableItemsSelector,this.element),this.check()},e.destroy=function(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.handleClickOnEllipsis=function(){return this.handleFullExpand()},e.check=function(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))},e.hideEllipsis=function(){var e=l(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.showAllItems=function(){this.expandableElements.forEach(function(e){return e.setAttribute("aria-hidden","false")})},e.handlePartialExpand=function(e){var i;!e||(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach(function(e,t){e.setAttribute("aria-hidden",i[t]?"false":"true")}))},e.handleFullExpand=function(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())},e.computeVisibilityMap=function(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var t=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=t)return{expanded:!0};var i=l(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(t<=i)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var n=0,s=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!s)return!1;e=(n+=e.getBoundingClientRect().width)+i<=t;return e||(s=!1),e}).reverse()}},i}(),r=function(){function i(e,t){var i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-standardised-ellipsis-button]":n,a=i.ellipsisSelector,r=void 0===a?"[data-ecl-breadcrumb-standardised-ellipsis]":a,o=i.segmentSelector,l=void 0===o?"[data-ecl-breadcrumb-standardised-item]":o,t=i.expandableItemsSelector,n=void 0===t?'[data-ecl-breadcrumb-standardised-item="expandable"]':t,a=i.staticItemsSelector,o=void 0===a?'[data-ecl-breadcrumb-standardised-item="static"]':a,t=i.onPartialExpand,a=void 0===t?null:t,t=i.onFullExpand,t=void 0===t?null:t,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=s,this.ellipsisSelector=r,this.segmentSelector=l,this.expandableItemsSelector=n,this.staticItemsSelector=o,this.onPartialExpand=a,this.onFullExpand=t,this.attachClickListener=i,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).BREADCRUMB_STANDARDISED,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLBreadcrumbStandardised=t};var e=i.prototype;return e.init=function(){this.ellipsisButton=l(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=o(this.segmentSelector,this.element),this.staticElements=o(this.staticItemsSelector,this.element),this.expandableElements=o(this.expandableItemsSelector,this.element),this.check()},e.destroy=function(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.handleClickOnEllipsis=function(){return this.handleFullExpand()},e.check=function(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))},e.hideEllipsis=function(){var e=l(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.showAllItems=function(){this.expandableElements.forEach(function(e){return e.setAttribute("aria-hidden","false")})},e.handlePartialExpand=function(e){var i;!e||(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach(function(e,t){e.setAttribute("aria-hidden",i[t]?"false":"true")}))},e.handleFullExpand=function(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())},e.computeVisibilityMap=function(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var t=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=t)return{expanded:!0};var i=l(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(t<=i)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var n=0,s=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!s)return!1;e=(n+=e.getBoundingClientRect().width)+i<=t;return e||(s=!1),e}).reverse()}},i}(),c=function(){function i(e,t){var i=void 0===t?{}:t,n=i.moreItemSelector,t=void 0===n?"[data-ecl-contextual-navigation-more]":n,n=i.listSelector,n=void 0===n?"[data-ecl-contextual-navigation-list]":n,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.moreItemSelector=t,this.listSelector=n,this.attachClickListener=i,this.moreItem=null,this.list=null,this.handleClickOnMore=this.handleClickOnMore.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).CONTEXTUAL_NAVIGATION,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLContextualNavigation=t};var e=i.prototype;return e.init=function(){this.moreItem=l(this.moreItemSelector,this.element),this.list=l(this.listSelector,this.element),this.attachClickListener&&this.moreItem&&this.moreItem.addEventListener("click",this.handleClickOnMore)},e.destroy=function(){this.attachClickListener&&this.moreItem&&this.moreItem.removeEventListener("click",this.handleClickOnMore)},e.handleClickOnMore=function(){this.list.setAttribute("aria-expanded","true"),this.moreItem.parentNode&&this.moreItem.parentNode.parentNode&&this.moreItem.parentNode.parentNode.removeChild(this.moreItem.parentNode)},i}(),h=function(){function i(e,t){var i=void 0===t?{}:t,n=i.toggleSelector,s=void 0===n?"[data-ecl-expandable-toggle]":n,a=i.labelSelector,t=void 0===a?"[data-ecl-label]":a,n=i.labelExpanded,a=void 0===n?"data-ecl-label-expanded":n,n=i.labelCollapsed,n=void 0===n?"data-ecl-label-collapsed":n,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=s,this.labelSelector=t,this.labelExpanded=a,this.labelCollapsed=n,this.attachClickListener=i,this.toggle=null,this.forceClose=!1,this.target=null,this.label=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).EXPANDABLE,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLExpandable=t};var e=i.prototype;return e.init=function(){if(this.toggle=l(this.toggleSelector,this.element),this.target=document.querySelector("#"+this.toggle.getAttribute("aria-controls")),this.label=l(this.labelSelector,this.element),!this.target)throw new TypeError("Target has to be provided for expandable (aria-controls)");this.attachClickListener&&this.toggle&&this.toggle.addEventListener("click",this.handleClickOnToggle)},e.destroy=function(){this.attachClickListener&&this.toggle&&this.toggle.removeEventListener("click",this.handleClickOnToggle)},e.handleClickOnToggle=function(){var e=!0===this.forceClose||"true"===this.toggle.getAttribute("aria-expanded");return this.toggle.setAttribute("aria-expanded",e?"false":"true"),this.target.hidden=e,this.label&&!e&&this.toggle.hasAttribute(this.labelExpanded)?this.label.innerHTML=this.toggle.getAttribute(this.labelExpanded):this.label&&e&&this.toggle.hasAttribute(this.labelCollapsed)&&(this.label.innerHTML=this.toggle.getAttribute(this.labelCollapsed)),this},i}(),d=function(){function i(e,t){var i=void 0===t?{}:t,n=i.translationToggleSelector,t=void 0===n?"[data-ecl-file-translation-toggle]":n,n=i.translationContainerSelector,n=void 0===n?"[data-ecl-file-translation-container]":n,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.translationToggleSelector=t,this.translationContainerSelector=n,this.attachClickListener=i,this.translationToggle=null,this.translationContainer=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).FILE_DOWNLOAD,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLFileDownload=t};var e=i.prototype;return e.init=function(){this.translationToggle=l(this.translationToggleSelector,this.element),this.translationContainer=l(this.translationContainerSelector,this.element),this.attachClickListener&&this.translationToggle&&this.translationToggle.addEventListener("click",this.handleClickOnToggle)},e.destroy=function(){this.attachClickListener&&this.translationToggle&&this.translationToggle.removeEventListener("click",this.handleClickOnToggle)},e.handleClickOnToggle=function(e){return e.preventDefault(),"true"===this.translationContainer.getAttribute("aria-expanded")?this.translationContainer.setAttribute("aria-expanded","false"):this.translationContainer.setAttribute("aria-expanded","true"),this},i}(),p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function cr(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function u(e,t){return e(t={exports:{}},t.exports),t.exports}var y=u(function(lr,e){lr.exports=function(){var t,s;function h(){return t.apply(null,arguments)}function e(e){t=e}function r(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function o(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;else{var t;for(t in e)if(l(e,t))return false;return true}}function a(e){return e===void 0}function d(e){return typeof e==="number"||Object.prototype.toString.call(e)==="[object Number]"}function u(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function n(e,t){var i=[],n;for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function f(e,t){for(var i in t)if(l(t,i))e[i]=t[i];if(l(t,"toString"))e.toString=t.toString;if(l(t,"valueOf"))e.valueOf=t.valueOf;return e}function g(e,t,i,n){return ji(e,t,i,n,true).utc()}function i(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function m(e){if(e._pf==null)e._pf=i();return e._pf}if(Array.prototype.some)s=Array.prototype.some;else s=function e(t){var i=Object(this),n=i.length>>>0,s;for(s=0;s<n;s++)if(s in i&&t.call(this,i[s],s,i))return true;return false};function v(e){if(e._isValid==null){var t=m(e),i=s.call(t.parsedDateParts,function(e){return e!=null}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict)n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined;if(Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n}return e._isValid}function p(e){var t=g(NaN);if(e!=null)f(m(t),e);else m(t).userInvalidated=true;return t}var y=h.momentProperties=[],b=false;function w(e,t){var i,n,s;if(!a(t._isAMomentObject))e._isAMomentObject=t._isAMomentObject;if(!a(t._i))e._i=t._i;if(!a(t._f))e._f=t._f;if(!a(t._l))e._l=t._l;if(!a(t._strict))e._strict=t._strict;if(!a(t._tzm))e._tzm=t._tzm;if(!a(t._isUTC))e._isUTC=t._isUTC;if(!a(t._offset))e._offset=t._offset;if(!a(t._pf))e._pf=m(t);if(!a(t._locale))e._locale=t._locale;if(y.length>0)for(i=0;i<y.length;i++){n=y[i];s=t[n];if(!a(s))e[n]=s}return e}function _(e){w(this,e);this._d=new Date(e._d!=null?e._d.getTime():NaN);if(!this.isValid())this._d=new Date(NaN);if(b===false){b=true;h.updateOffset(this);b=false}}function k(e){return e instanceof _||e!=null&&e._isAMomentObject!=null}function S(e){if(h.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn)console.warn("Deprecation warning: "+e)}function E(s,a){var r=true;return f(function(){if(h.deprecationHandler!=null)h.deprecationHandler(null,s);if(r){var e=[],t,i,n;for(i=0;i<arguments.length;i++){t="";if(typeof arguments[i]==="object"){t+="\n["+i+"] ";for(n in arguments[0])if(l(arguments[0],n))t+=n+": "+arguments[0][n]+", ";t=t.slice(0,-2)}else t=arguments[i];e.push(t)}S(s+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);r=false}return a.apply(this,arguments)},a)}var O={},x;function C(e,t){if(h.deprecationHandler!=null)h.deprecationHandler(e,t);if(!O[e]){S(t);O[e]=true}}function L(e){return typeof Function!=="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function T(e){var t,i;for(i in e)if(l(e,i)){t=e[i];if(L(t))this[i]=t;else this["_"+i]=t}this._config=e;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function M(e,t){var i=f({},e),n;for(n in t)if(l(t,n))if(o(e[n])&&o(t[n])){i[n]={};f(i[n],e[n]);f(i[n],t[n])}else if(t[n]!=null)i[n]=t[n];else delete i[n];for(n in e)if(l(e,n)&&!l(t,n)&&o(e[n]))i[n]=f({},i[n]);return i}function D(e){if(e!=null)this.set(e)}if(h.suppressDeprecationWarnings=false,h.deprecationHandler=null,Object.keys)x=Object.keys;else x=function e(t){var i,n=[];for(i in t)if(l(t,i))n.push(i);return n};var A={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(e,t,i){var n=this._calendar[e]||this._calendar["sameElse"];return L(n)?n.call(t,i):n}function I(e,t,i){var n=""+Math.abs(e),s=t-n.length,a=e>=0;return(a?i?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var Y=/(\[[^\[]*\])|(\\)?([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,P={},B={};function F(e,t,i,n){var s=n;if(typeof n==="string")s=function e(){return this[n]()};if(e)B[e]=s;if(t)B[t[0]]=function(){return I(s.apply(this,arguments),t[1],t[2])};if(i)B[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)}}function H(e){if(e.match(/\[[\s\S]/))return e.replace(/^\[|\]$/g,"");return e.replace(/\\/g,"")}function W(n){var s=n.match(Y),e,a;for(e=0,a=s.length;e<a;e++)if(B[s[e]])s[e]=B[s[e]];else s[e]=H(s[e]);return function(e){var t="",i;for(i=0;i<a;i++)t+=L(s[i])?s[i].call(e,n):s[i];return t}}function V(e,t){if(!e.isValid())return e.localeData().invalidDate();t=U(t,e.localeData());P[t]=P[t]||W(t);return P[t](e)}function U(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}R.lastIndex=0;while(i>=0&&R.test(e)){e=e.replace(R,n);R.lastIndex=0;i-=1}return e}var z={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 j(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];if(t||!i)return t;this._longDateFormat[e]=i.match(Y).map(function(e){if(e==="MMMM"||e==="MM"||e==="DD"||e==="dddd")return e.slice(1);return e}).join("");return this._longDateFormat[e]}var G="Invalid date";function q(){return this._invalidDate}var Z="%d",K=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var $={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 J(e,t,i,n){var s=this._relativeTime[i];return L(s)?s(e,t,i,n):s.replace(/%d/i,e)}function Q(e,t){var i=this._relativeTime[e>0?"future":"past"];return L(i)?i(t):i.replace(/%s/i,t)}var ee={};function te(e,t){var i=e.toLowerCase();ee[i]=ee[i+"s"]=ee[t]=e}function ie(e){return typeof e==="string"?ee[e]||ee[e.toLowerCase()]:undefined}function ne(e){var t={},i,n;for(n in e)if(l(e,n)){i=ie(n);if(i)t[i]=e[n]}return t}var se={};function ae(e,t){se[e]=t}function re(e){var t=[],i;for(i in e)if(l(e,i))t.push({unit:i,priority:se[i]});t.sort(function(e,t){return e.priority-t.priority});return t}function oe(e){return e%4===0&&e%100!==0||e%400===0}function le(e){if(e<0)return Math.ceil(e)||0;else return Math.floor(e)}function ce(e){var t=+e,i=0;if(t!==0&&isFinite(t))i=le(t);return i}function he(t,i){return function(e){if(e!=null){ue(this,t,e);h.updateOffset(this,i);return this}else return de(this,t)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ue(e,t,i){if(e.isValid()&&!isNaN(i))if(t==="FullYear"&&oe(e.year())&&e.month()===1&&e.date()===29){i=ce(i);e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Je(i,e.month()))}else e._d["set"+(e._isUTC?"UTC":"")+t](i)}function fe(e){e=ie(e);if(L(this[e]))return this[e]();return this}function ge(e,t){if(typeof e==="object"){e=ne(e);var i=re(e),n;for(n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit])}else{e=ie(e);if(L(this[e]))return this[e](t)}return this}var me=/\d/,ve=/\d\d/,pe=/\d{3}/,ye=/\d{4}/,be=/[+-]?\d{6}/,we=/\d\d?/,_e=/\d\d\d\d?/,ke=/\d\d\d\d\d\d?/,Se=/\d{1,3}/,Ee=/\d{1,4}/,Oe=/[+-]?\d{1,6}/,xe=/\d+/,Ce=/[+-]?\d+/,Le=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,Me=/[+-]?\d+(\.\d{1,3})?/,De=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ae;function Ne(e,i,n){Ae[e]=L(i)?i:function(e,t){return e&&n?n:i}}function Ie(e,t){if(!l(Ae,e))return new RegExp(Ye(e));return Ae[e](t._strict,t._locale)}function Ye(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,s){return t||i||n||s}))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ae={},Pe={};function Be(e,n){var t,i=n;if(typeof e==="string")e=[e];if(d(n))i=function e(t,i){i[n]=ce(t)};for(t=0;t<e.length;t++)Pe[e[t]]=i}function Fe(e,s){Be(e,function(e,t,i,n){i._w=i._w||{};s(e,i._w,i,n)})}function He(e,t,i){if(t!=null&&l(Pe,e))Pe[e](t,i._a,i,e)}var We=0,Ve=1,Ue=2,ze=3,je=4,Ge=5,qe=6,Ze=7,Ke=8,Xe;function $e(e,t){return(e%t+t)%t}if(Array.prototype.indexOf)Xe=Array.prototype.indexOf;else Xe=function e(t){var i;for(i=0;i<this.length;++i)if(this[i]===t)return i;return-1};function Je(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=$e(t,12);e+=(t-i)/12;return i===1?oe(e)?29:28:31-i%7%2}F("M",["MM",2],"Mo",function(){return this.month()+1}),F("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),F("MMMM",0,0,function(e){return this.localeData().months(this,e)}),te("month","M"),ae("month",8),Ne("M",we),Ne("MM",we,ve),Ne("MMM",function(e,t){return t.monthsShortRegex(e)}),Ne("MMMM",function(e,t){return t.monthsRegex(e)}),Be(["M","MM"],function(e,t){t[Ve]=ce(e)-1}),Be(["MMM","MMMM"],function(e,t,i,n){var s=i._locale.monthsParse(e,n,i._strict);if(s!=null)t[Ve]=s;else m(i).invalidMonth=e});var Qe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),et="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),tt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=De,nt=De;function st(e,t){if(!e)return r(this._months)?this._months:this._months["standalone"];return r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||tt).test(t)?"format":"standalone"][e.month()]}function at(e,t){if(!e)return r(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"];return r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[tt.test(t)?"format":"standalone"][e.month()]}function rt(e,t,i){var n,s,a,r=e.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(n=0;n<12;++n){a=g([2e3,n]);this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase();this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase()}}if(i)if(t==="MMM"){s=Xe.call(this._shortMonthsParse,r);return s!==-1?s:null}else{s=Xe.call(this._longMonthsParse,r);return s!==-1?s:null}else if(t==="MMM"){s=Xe.call(this._shortMonthsParse,r);if(s!==-1)return s;s=Xe.call(this._longMonthsParse,r);return s!==-1?s:null}else{s=Xe.call(this._longMonthsParse,r);if(s!==-1)return s;s=Xe.call(this._shortMonthsParse,r);return s!==-1?s:null}}function ot(e,t,i){var n,s,a;if(this._monthsParseExact)return rt.call(this,e,t,i);if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(n=0;n<12;n++){s=g([2e3,n]);if(i&&!this._longMonthsParse[n]){this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i");this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")}if(!i&&!this._monthsParse[n]){a="^"+this.months(s,"")+"|^"+this.monthsShort(s,"");this._monthsParse[n]=new RegExp(a.replace(".",""),"i")}if(i&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;else if(i&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;else if(!i&&this._monthsParse[n].test(e))return n}}function lt(e,t){var i;if(!e.isValid())return e;if(typeof t==="string")if(/^\d+$/.test(t))t=ce(t);else{t=e.localeData().monthsParse(t);if(!d(t))return e}i=Math.min(e.date(),Je(e.year(),t));e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i);return e}function ct(e){if(e!=null){lt(this,e);h.updateOffset(this,true);return this}else return de(this,"Month")}function ht(){return Je(this.year(),this.month())}function dt(e){if(this._monthsParseExact){if(!l(this,"_monthsRegex"))ft.call(this);if(e)return this._monthsShortStrictRegex;else return this._monthsShortRegex}else{if(!l(this,"_monthsShortRegex"))this._monthsShortRegex=it;return this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}}function ut(e){if(this._monthsParseExact){if(!l(this,"_monthsRegex"))ft.call(this);if(e)return this._monthsStrictRegex;else return this._monthsRegex}else{if(!l(this,"_monthsRegex"))this._monthsRegex=nt;return this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}}function ft(){function e(e,t){return t.length-e.length}var t=[],i=[],n=[],s,a;for(s=0;s<12;s++){a=g([2e3,s]);t.push(this.monthsShort(a,""));i.push(this.months(a,""));n.push(this.months(a,""));n.push(this.monthsShort(a,""))}t.sort(e);i.sort(e);n.sort(e);for(s=0;s<12;s++){t[s]=Re(t[s]);i[s]=Re(i[s])}for(s=0;s<24;s++)n[s]=Re(n[s]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function gt(e){return oe(e)?366:365}F("Y",0,0,function(){var e=this.year();return e<=9999?I(e,4):"+"+e}),F(0,["YY",2],0,function(){return this.year()%100}),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,true],0,"year"),te("year","y"),ae("year",1),Ne("Y",Ce),Ne("YY",we,ve),Ne("YYYY",Ee,ye),Ne("YYYYY",Oe,be),Ne("YYYYYY",Oe,be),Be(["YYYYY","YYYYYY"],We),Be("YYYY",function(e,t){t[We]=e.length===2?h.parseTwoDigitYear(e):ce(e)}),Be("YY",function(e,t){t[We]=h.parseTwoDigitYear(e)}),Be("Y",function(e,t){t[We]=parseInt(e,10)}),h.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};var mt=he("FullYear",true);function vt(){return oe(this.year())}function pt(e,t,i,n,s,a,r){var o;if(e<100&&e>=0){o=new Date(e+400,t,i,n,s,a,r);if(isFinite(o.getFullYear()))o.setFullYear(e)}else o=new Date(e,t,i,n,s,a,r);return o}function yt(e){var t,i;if(e<100&&e>=0){i=Array.prototype.slice.call(arguments);i[0]=e+400;t=new Date(Date.UTC.apply(null,i));if(isFinite(t.getUTCFullYear()))t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function bt(e,t,i){var n=7+t-i,s=(7+yt(e,0,n).getUTCDay()-t)%7;return-s+n-1}function wt(e,t,i,n,s){var a=(7+i-n)%7,r=bt(e,n,s),o=1+7*(t-1)+a+r,l,c;if(o<=0){l=e-1;c=gt(l)+o}else if(o>gt(e)){l=e+1;c=o-gt(e)}else{l=e;c=o}return{year:l,dayOfYear:c}}function _t(e,t,i){var n=bt(e.year(),t,i),s=Math.floor((e.dayOfYear()-n-1)/7)+1,a,r;if(s<1){r=e.year()-1;a=s+kt(r,t,i)}else if(s>kt(e.year(),t,i)){a=s-kt(e.year(),t,i);r=e.year()+1}else{r=e.year();a=s}return{week:a,year:r}}function kt(e,t,i){var n=bt(e,t,i),s=bt(e+1,t,i);return(gt(e)-n+s)/7}function St(e){return _t(e,this._week.dow,this._week.doy).week}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),te("week","w"),te("isoWeek","W"),ae("week",5),ae("isoWeek",5),Ne("w",we),Ne("ww",we,ve),Ne("W",we),Ne("WW",we,ve),Fe(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=ce(e)});var Et={dow:0,doy:6};function Ot(){return this._week.dow}function xt(){return this._week.doy}function Ct(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Lt(e){var t=_t(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}function Tt(e,t){if(typeof e!=="string")return e;if(!isNaN(e))return parseInt(e,10);e=t.weekdaysParse(e);if(typeof e==="number")return e;return null}function Mt(e,t){if(typeof e==="string")return t.weekdaysParse(e)%7||7;return isNaN(e)?null:e}function Dt(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("d",0,"do","day"),F("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),F("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),F("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),te("day","d"),te("weekday","e"),te("isoWeekday","E"),ae("day",11),ae("weekday",11),ae("isoWeekday",11),Ne("d",we),Ne("e",we),Ne("E",we),Ne("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ne("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ne("dddd",function(e,t){return t.weekdaysRegex(e)}),Fe(["dd","ddd","dddd"],function(e,t,i,n){var s=i._locale.weekdaysParse(e,n,i._strict);if(s!=null)t.d=s;else m(i).invalidWeekday=e}),Fe(["d","e","E"],function(e,t,i,n){t[n]=ce(e)});var At="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Yt=De,Rt=De,Pt=De;function Bt(e,t){var i=r(this._weekdays)?this._weekdays:this._weekdays[e&&e!==true&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===true?Dt(i,this._week.dow):e?i[e.day()]:i}function Ft(e){return e===true?Dt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return e===true?Dt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Wt(e,t,i){var n,s,a,r=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(n=0;n<7;++n){a=g([2e3,1]).day(n);this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase();this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase();this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase()}}if(i)if(t==="dddd"){s=Xe.call(this._weekdaysParse,r);return s!==-1?s:null}else if(t==="ddd"){s=Xe.call(this._shortWeekdaysParse,r);return s!==-1?s:null}else{s=Xe.call(this._minWeekdaysParse,r);return s!==-1?s:null}else if(t==="dddd"){s=Xe.call(this._weekdaysParse,r);if(s!==-1)return s;s=Xe.call(this._shortWeekdaysParse,r);if(s!==-1)return s;s=Xe.call(this._minWeekdaysParse,r);return s!==-1?s:null}else if(t==="ddd"){s=Xe.call(this._shortWeekdaysParse,r);if(s!==-1)return s;s=Xe.call(this._weekdaysParse,r);if(s!==-1)return s;s=Xe.call(this._minWeekdaysParse,r);return s!==-1?s:null}else{s=Xe.call(this._minWeekdaysParse,r);if(s!==-1)return s;s=Xe.call(this._weekdaysParse,r);if(s!==-1)return s;s=Xe.call(this._shortWeekdaysParse,r);return s!==-1?s:null}}function Vt(e,t,i){var n,s,a;if(this._weekdaysParseExact)return Wt.call(this,e,t,i);if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(n=0;n<7;n++){s=g([2e3,1]).day(n);if(i&&!this._fullWeekdaysParse[n]){this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i");this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i");this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")}if(!this._weekdaysParse[n]){a="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,"");this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")}if(i&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;else if(i&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;else if(i&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;else if(!i&&this._weekdaysParse[n].test(e))return n}}function Ut(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();if(e!=null){e=Tt(e,this.localeData());return this.add(e-t,"d")}else return t}function zt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function jt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Mt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Gt(e){if(this._weekdaysParseExact){if(!l(this,"_weekdaysRegex"))Kt.call(this);if(e)return this._weekdaysStrictRegex;else return this._weekdaysRegex}else{if(!l(this,"_weekdaysRegex"))this._weekdaysRegex=Yt;return this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}}function qt(e){if(this._weekdaysParseExact){if(!l(this,"_weekdaysRegex"))Kt.call(this);if(e)return this._weekdaysShortStrictRegex;else return this._weekdaysShortRegex}else{if(!l(this,"_weekdaysShortRegex"))this._weekdaysShortRegex=Rt;return this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function Zt(e){if(this._weekdaysParseExact){if(!l(this,"_weekdaysRegex"))Kt.call(this);if(e)return this._weekdaysMinStrictRegex;else return this._weekdaysMinRegex}else{if(!l(this,"_weekdaysMinRegex"))this._weekdaysMinRegex=Pt;return this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function Kt(){function e(e,t){return t.length-e.length}var t=[],i=[],n=[],s=[],a,r,o,l,c;for(a=0;a<7;a++){r=g([2e3,1]).day(a);o=Re(this.weekdaysMin(r,""));l=Re(this.weekdaysShort(r,""));c=Re(this.weekdays(r,""));t.push(o);i.push(l);n.push(c);s.push(o);s.push(l);s.push(c)}t.sort(e);i.sort(e);n.sort(e);s.sort(e);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Xt(){return this.hours()%12||12}function $t(){return this.hours()||24}function Jt(e,t){F(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Qt(e,t){return t._meridiemParse}function ei(e){return(e+"").toLowerCase().charAt(0)==="p"}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Xt),F("k",["kk",2],0,$t),F("hmm",0,0,function(){return""+Xt.apply(this)+I(this.minutes(),2)}),F("hmmss",0,0,function(){return""+Xt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)}),F("Hmm",0,0,function(){return""+this.hours()+I(this.minutes(),2)}),F("Hmmss",0,0,function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)}),Jt("a",true),Jt("A",false),te("hour","h"),ae("hour",13),Ne("a",Qt),Ne("A",Qt),Ne("H",we),Ne("h",we),Ne("k",we),Ne("HH",we,ve),Ne("hh",we,ve),Ne("kk",we,ve),Ne("hmm",_e),Ne("hmmss",ke),Ne("Hmm",_e),Ne("Hmmss",ke),Be(["H","HH"],ze),Be(["k","kk"],function(e,t,i){var n=ce(e);t[ze]=n===24?0:n}),Be(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e);i._meridiem=e}),Be(["h","hh"],function(e,t,i){t[ze]=ce(e);m(i).bigHour=true}),Be("hmm",function(e,t,i){var n=e.length-2;t[ze]=ce(e.substr(0,n));t[je]=ce(e.substr(n));m(i).bigHour=true}),Be("hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[ze]=ce(e.substr(0,n));t[je]=ce(e.substr(n,2));t[Ge]=ce(e.substr(s));m(i).bigHour=true}),Be("Hmm",function(e,t,i){var n=e.length-2;t[ze]=ce(e.substr(0,n));t[je]=ce(e.substr(n))}),Be("Hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[ze]=ce(e.substr(0,n));t[je]=ce(e.substr(n,2));t[Ge]=ce(e.substr(s))});var ti,ii=he("Hours",true);function ni(e,t,i){if(e>11)return i?"pm":"PM";else return i?"am":"AM"}var si={calendar:A,longDateFormat:z,invalidDate:G,ordinal:Z,dayOfMonthOrdinalParse:K,relativeTime:$,months:Qe,monthsShort:et,week:Et,weekdays:At,weekdaysMin:It,weekdaysShort:Nt,meridiemParse:/[ap]\.?m?\.?/i},ai={},ri={},oi;function li(e,t){var i,n=Math.min(e.length,t.length);for(i=0;i<n;i+=1)if(e[i]!==t[i])return i;return n}function ci(e){return e?e.toLowerCase().replace("_","-"):e}function hi(e){var t=0,i,n,s,a;while(t<e.length){a=ci(e[t]).split("-");i=a.length;n=ci(e[t+1]);n=n?n.split("-"):null;while(i>0){s=di(a.slice(0,i).join("-"));if(s)return s;if(n&&n.length>=i&&li(a,n)>=i-1)break;i--}t++}return oi}function di(t){var e=null,i;if(ai[t]===undefined&&"object"!=="undefined"&&lr&&lr.exports)try{e=oi._abbr;i=cr;i("./locale/"+t);ui(e)}catch(e){ai[t]=null}return ai[t]}function ui(e,t){var i;if(e){if(a(t))i=mi(e);else i=fi(e,t);if(i)oi=i;else if(typeof console!=="undefined"&&console.warn)console.warn("Locale "+e+" not found. Did you forget to load it?")}return oi._abbr}function fi(e,t){if(t!==null){var i,n=si;t.abbr=e;if(ai[e]!=null){C("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.");n=ai[e]._config}else if(t.parentLocale!=null)if(ai[t.parentLocale]!=null)n=ai[t.parentLocale]._config;else{i=di(t.parentLocale);if(i!=null)n=i._config;else{if(!ri[t.parentLocale])ri[t.parentLocale]=[];ri[t.parentLocale].push({name:e,config:t});return null}}ai[e]=new D(M(n,t));if(ri[e])ri[e].forEach(function(e){fi(e.name,e.config)});ui(e);return ai[e]}else{delete ai[e];return null}}function gi(e,t){if(t!=null){var i,n,s=si;if(ai[e]!=null&&ai[e].parentLocale!=null)ai[e].set(M(ai[e]._config,t));else{n=di(e);if(n!=null)s=n._config;t=M(s,t);if(n==null)t.abbr=e;i=new D(t);i.parentLocale=ai[e];ai[e]=i}ui(e)}else if(ai[e]!=null)if(ai[e].parentLocale!=null){ai[e]=ai[e].parentLocale;if(e===ui())ui(e)}else if(ai[e]!=null)delete ai[e];return ai[e]}function mi(e){var t;if(e&&e._locale&&e._locale._abbr)e=e._locale._abbr;if(!e)return oi;if(!r(e)){t=di(e);if(t)return t;e=[e]}return hi(e)}function vi(){return x(ai)}function pi(e){var t,i=e._a;if(i&&m(e).overflow===-2){t=i[Ve]<0||i[Ve]>11?Ve:i[Ue]<1||i[Ue]>Je(i[We],i[Ve])?Ue:i[ze]<0||i[ze]>24||i[ze]===24&&(i[je]!==0||i[Ge]!==0||i[qe]!==0)?ze:i[je]<0||i[je]>59?je:i[Ge]<0||i[Ge]>59?Ge:i[qe]<0||i[qe]>999?qe:-1;if(m(e)._overflowDayOfYear&&(t<We||t>Ue))t=Ue;if(m(e)._overflowWeeks&&t===-1)t=Ze;if(m(e)._overflowWeekday&&t===-1)t=Ke;m(e).overflow=t}return e}var yi=/^\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)?)?$/,bi=/^\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)?)?$/,wi=/Z|[+-]\d\d(?::?\d\d)?/,_i=[["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/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],ki=[["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/]],Si=/^\/?Date\((-?\d+)/i,Ei=/^(?:(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}))$/,Oi={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function xi(e){var t,i,n=e._i,s=yi.exec(n)||bi.exec(n),a,r,o,l;if(s){m(e).iso=true;for(t=0,i=_i.length;t<i;t++)if(_i[t][1].exec(s[1])){r=_i[t][0];a=_i[t][2]!==false;break}if(r==null){e._isValid=false;return}if(s[3]){for(t=0,i=ki.length;t<i;t++)if(ki[t][1].exec(s[3])){o=(s[2]||" ")+ki[t][0];break}if(o==null){e._isValid=false;return}}if(!a&&o!=null){e._isValid=false;return}if(s[4])if(wi.exec(s[4]))l="Z";else{e._isValid=false;return}e._f=r+(o||"")+(l||"");Bi(e)}else e._isValid=false}function Ci(e,t,i,n,s,a){var r=[Li(e),et.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(s,10)];if(a)r.push(parseInt(a,10));return r}function Li(e){var t=parseInt(e,10);if(t<=49)return 2e3+t;else if(t<=999)return 1900+t;return t}function Ti(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Mi(e,t,i){if(e){var n=Nt.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s){m(i).weekdayMismatch=true;i._isValid=false;return false}}return true}function Di(e,t,i){if(e)return Oi[e];else if(t)return 0;else{var n=parseInt(i,10),s=n%100,a=(n-s)/100;return a*60+s}}function Ai(e){var t=Ei.exec(Ti(e._i)),i;if(t){i=Ci(t[4],t[3],t[2],t[5],t[6],t[7]);if(!Mi(t[1],i,e))return;e._a=i;e._tzm=Di(t[8],t[9],t[10]);e._d=yt.apply(null,e._a);e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm);m(e).rfc2822=true}else e._isValid=false}function Ni(e){var t=Si.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}xi(e);if(e._isValid===false)delete e._isValid;else return;Ai(e);if(e._isValid===false)delete e._isValid;else return;if(e._strict)e._isValid=false;else h.createFromInputFallback(e)}function Ii(e,t,i){if(e!=null)return e;if(t!=null)return t;return i}function Yi(e){var t=new Date(h.now());if(e._useUTC)return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()];return[t.getFullYear(),t.getMonth(),t.getDate()]}function Ri(e){var t,i,n=[],s,a,r;if(e._d)return;s=Yi(e);if(e._w&&e._a[Ue]==null&&e._a[Ve]==null)Pi(e);if(e._dayOfYear!=null){r=Ii(e._a[We],s[We]);if(e._dayOfYear>gt(r)||e._dayOfYear===0)m(e)._overflowDayOfYear=true;i=yt(r,0,e._dayOfYear);e._a[Ve]=i.getUTCMonth();e._a[Ue]=i.getUT