@digitransit-component/digitransit-component-autosuggest 1.9.10 → 1.9.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(M,z){"object"==typeof exports&&"undefined"!=typeof module?z(exports,require("prop-types"),require("react"),require("i18next"),require("classnames"),require("react-autosuggest"),require("lodash/debounce"),require("lodash/flatten"),require("lodash/take"),require("lodash/isString"),require("lodash/orderBy"),require("lodash/uniqWith"),require("lodash/isEqual"),require("lodash/memoize"),require("lodash/escapeRegExp"),require("lodash/cloneDeep"),require("lodash/get"),require("@digitransit-component/digitransit-component-suggestion-item"),require("@digitransit-component/digitransit-component-icon"),require("lodash/isEmpty"),require("react-modal"),require("@digitransit-component/digitransit-component-dialog-modal")):"function"==typeof define&&define.amd?define(["exports","prop-types","react","i18next","classnames","react-autosuggest","lodash/debounce","lodash/flatten","lodash/take","lodash/isString","lodash/orderBy","lodash/uniqWith","lodash/isEqual","lodash/memoize","lodash/escapeRegExp","lodash/cloneDeep","lodash/get","@digitransit-component/digitransit-component-suggestion-item","@digitransit-component/digitransit-component-icon","lodash/isEmpty","react-modal","@digitransit-component/digitransit-component-dialog-modal"],z):z((M="undefined"!=typeof globalThis?globalThis:M||self).DTAutosuggest={},M.PropTypes,M.React,M.i18next,M.cx,M.Autosuggest,M.debounce,M.flatten,M.take,M.isString,M.orderBy,M.uniqWith,M.isEqual,M.memoize,M.escapeRegExp,M.cloneDeep,M.get,M.SuggestionItem,M.Icon,M.isEmpty,M.ReactModal,M.DialogModal)}(this,(function(M,z,b,p,O,o,c,A,q,e,n,W,a,t,d,i,r,s,u,R,f,l){"use strict";function L(M){return M&&"object"==typeof M&&"default"in M?M:{default:M}}var N=L(z),B=L(b),X=L(p),h=L(O),m=L(o),g=L(c),T=L(A),_=L(q),y=L(e),S=L(n),v=L(W),k=L(a),E=L(t),w=L(d),C=L(i),D=L(r),P=L(s),x=L(u),I=L(R),F=L(f),H=L(l);function Y(){return Y=Object.assign?Object.assign.bind():function(M){for(var z=1;z<arguments.length;z++){var b=arguments[z];for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(M[p]=b[p])}return M},Y.apply(this,arguments)}function U(M,z){return M&&z&&M===z}function j(M,z){const b=M.properties,p=z.properties;if("FutureRoute"===M.type&&"FutureRoute"===z.type){const M=b.origin,z=b.destination,O=p.origin,o=p.destination;return`${M.name}//${M.locality}//${z.name}//${z.locality}`===`${O.name}//${O.locality}//${o.name}//${o.locality}`}if("FutureRoute"===M.type||"FutureRoute"===z.type)return!1;if(("bikeRentalStation"===b.layer||"favouriteBikeRentalStation"===b.layer)&&("bikeRentalStation"===p.layer||"favouriteBikeRentalStation"===p.layer)||"bikestation"===b.layer&&"bikestation"===p.layer)return b.labelId===p.labelId;if(b.gtfsId&&p.gtfsId)return b.gtfsId===p.gtfsId;if(b.gtfsId&&p.gid&&p.gid.includes(b.gtfsId))return!0;if(p.gtfsId&&b.gid&&b.gid.includes(p.gtfsId))return!0;if(("stop"===b.layer||"station"===b.layer)&&("stop"===p.layer||"station"===p.layer)&&b.gid&&p.gid)return b.gid===p.gid;const O=M&&M.geometry?M.geometry.coordinates:void 0,o=z&&z.geometry?z.geometry.coordinates:void 0;return!!(O&&o&&Math.abs(O[0]-o[0])<1e-6&&Math.abs(O[1]-o[1])<1e-6&&(U(b.name,p.name)||U(b.label,p.label)||U(b.address,p.address)||U(b.address,p.label)||U(b.label,p.address)))}const G=M=>y.default(M)?M.toLowerCase():"",V={Address:"address",Back:"back",CurrentPosition:"currentPosition",FavouriteStop:"favouriteStop",FavouriteStation:"favouriteStation",FavouritePlace:"favouritePlace",FavouriteRoute:"favouriteRoute",FutureRoute:"futureRoute",Station:"station",SelectFromMap:"selectFromMap",SelectFromOwnLocations:"ownLocations",Stop:"stop",Street:"street",Venue:"venue",BikeRentalStation:"bikestation",CarPark:"carpark",BikePark:"bikepark"},K=({layer:M,type:z})=>"stop"===M||"favouriteStop"===M||"stop"===z||"favouriteStop"===z,Q=(M,z)=>{switch(M){case V.CurrentPosition:return 1;case V.Back:return.9;case V.SelectFromMap:return.8;case V.SelectFromOwnLocations:return.79;case V.FavouriteStation:case V.FavouritePlace:case V.FavouriteStop:case V.FavouriteRoute:case V.FavouriteBikeRentalStation:return.45;case V.FutureRoute:return.44;case V.Station:return y.default(z)&&0===z.indexOf("gtfs")?.43:.42;default:return.41;case V.CarPark:case V.BikePark:case V.BikeRentalStation:return.38;case V.Stop:return.36}},J=(M,z,b="")=>{if(!Array.isArray(z))return z;const p=z=>y.default(z)&&M&&M.test(z),O=G(b),o=p(O),c=S.default(z,[M=>o&&p(G(M.properties.shortName))&&0===G(M.properties.shortName).indexOf(O)?1:0,M=>{const{confidence:z,layer:b,source:p}=M.properties;if(0===O.length)return Q(b,p);if(!z)return Q(b,p)+((M,z)=>y.default(M)&&0!==M.length?["name","label","address","shortName"].map((M=>z[M])).filter((M=>y.default(M)&&M.length>0)).map((z=>{const b=G(z);return 0===b.indexOf(M)?.5+M.length/b.length:.5*M.length/(M.length+1)})).reduce(((M,z)=>z>M?z:M),0):0)(O,M.properties);switch(b){case V.Station:return z+(0===p.indexOf("gtfs")?.02:.01);case V.Stop:case V.CarPark:case V.BikePark:return z-.05;case V.BikeRentalStation:return z-.04;default:return z}}],["desc","desc"]);return v.default(c,j)},Z=(M,z)=>null!=z&&-1!==M.lastIndexOf(z)?M.substring(0,M.lastIndexOf(z)-1):M,$=M=>M.localadmin||M.locality||M.address&&M.address.lastIndexOf(",")<M.address.length-2&&M.address.substring(M.address.lastIndexOf(",")+2)||"",MM=({id:M,code:z})=>z||(void 0!==M&&void 0!==M.indexOf&&-1!==M.indexOf("#")?M.substring(M.indexOf("#")+1):void 0),zM=E.default(((M,z=!1)=>{switch(M.layer){case"currentPosition":return[M.labelId,M.address];case"selectFromMap":case"ownLocations":case"back":return[M.labelId];case"favouritePlace":return b=M.name,p=M.address,[b||p&&p.split(",")[0],"string"==typeof p?p.replace(new RegExp(`${w.default(b)}([ ,]|$)+`),""):""];case"favouriteBikeRentalStation":case"bikeRentalStation":return[M.name];case"favouriteRoute":case"route-BUS":case"route-TRAM":case"route-RAIL":case"route-SUBWAY":case"route-FERRY":case"route-FUNICULAR":case"route-AIRPLANE":return!z&&M.shortName?[M.gtfsId,M.mode.toLowerCase(),M.longName]:[M.shortName,M.longName,M.agency?M.agency.name:void 0];case"venue":case"address":case"street":return[M.name,M.label.replace(new RegExp(`${w.default(M.name)}(,)?( )?`),"")];case"favouriteStop":case"stop":return z?[M.name||M.label||M.address&&M.address.split(",")[0],$(M)]:[M.name,M.id,MM(M),$(M)];default:return[M.name||M.label||M.address&&M.address.split(",")[0],$(M)]}var b,p}),((M,z)=>{const b=C.default(M);return b.plain=z,b}));function bM(M){return v.default(M,((M,z)=>{const b=k.default(zM(M.properties),zM(z.properties))&&M.properties.layer===z.properties.layer;return(!b||"FutureRoute"!==M.type&&"FutureRoute"!==z.type)&&b}))}function pM(M,z,b){if("string"==typeof z&&z.length>0){const p=z.toLowerCase().trim(),O=p.includes(" ")||p.includes(",");return M.filter((M=>{let z=[];b.forEach((b=>{let p=D.default(M,b);O||"properties.label"!==b&&"address"!==b||!p||(p=p.split(","),p.length>2?p.splice(p.length-2,2):p.length>1&&p.splice(p.length-1,1),p=p.join(",")),p&&(z=O?z.concat(p.toLowerCase()):z.concat(p.toLowerCase().replace(/,/g," ").split(" ")))}));for(let M=0;M<z.length;M++)if(0===z[M].indexOf(p))return!0;return!1}))}return M}function OM(M,z){return M?Object.keys(M).map((b=>{const p=z||b,O=M[b];return"object"==typeof O?OM(O,p):`${encodeURIComponent(p)}=${encodeURIComponent(O)}`})).join("&"):""}const oM=require("axios").default;function cM(M,z){return oM.get(encodeURI(M)+(z?(-1===M.search(/\?/)?"?":"&")+OM(z):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then((M=>M.data))}const AM="https://api.digitransit.fi/geocoding/v1/search";function qM(M,z,b,p,O,o,c,A){const q=M?M.trim():null;if(null==q||q.length<1||c&&!c.test(q))return Promise.resolve([]);const e=o||AM;let n=Y({text:q},z,p,{lang:b});if(O&&(n=Y({},n,{sources:O})),A){n=Y({},n,{layers:A.toString()})}return cM(e,n).then((M=>M.features))}function eM(M,z){if(!M||M.length<1)return Promise.resolve([]);let b="";const p=M.map((M=>{const z="stop"===M.type?"stop":"station";let p=`gtfs${M.gtfsId.split(":")[0].toLowerCase()}:${z}:GTFS:${M.gtfsId}`;return M.code&&(p+=`#${M.code}`),b+=`${p},`,Y({},M,{gid:p})})).reduce((function(M,z){return M[z.gid]=z,M}),{});return cM(z,{ids:b.slice(0,-1)}).then((M=>M.features.map((M=>({type:"FavouriteStop",properties:{addendum:M.properties.addendum,gid:p[M.properties.gid].gid,code:p[M.properties.gid].code,gtfsId:p[M.properties.gid].gtfsId,lastUpdated:p[M.properties.gid].lastUpdated,favouriteId:p[M.properties.gid].favouriteId,address:M.properties.label,layer:K(M.properties)?"favouriteStop":"favouriteStation"},geometry:M.geometry})))))}function nM(M,z,b){let p=pM(M,z,["properties.name","properties.label","properties.address","properties.shortName","properties.longName"]);return b&&(p=p.filter((M=>!b.includes(M.properties.layer)))),Promise.resolve(_.default(p,10).map((M=>{const z=Y({},M,{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete z.properties.confidence,z})))}const WM=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE"],aM=["favouritePlace","venue","address","street"],tM=["carpark","bikepark"];const dM=g.default((function(M,z,b,p,O,o,{input:c},A,q,e){const{getPositions:n,getFavouriteLocations:W,getOldSearches:a,getFavouriteStops:t,parkingAreaSources:d,getLanguage:i,getStopAndStationsQuery:r,getFavouriteBikeRentalStationsQuery:s,getFavouriteBikeRentalStations:u,getFavouriteRoutesQuery:R,getFavouriteRoutes:f,getRoutesQuery:l,context:L,isPeliasLocationAware:N,minimalRegexp:B,lineRegexp:X,URL_PELIAS:h,URL_PELIAS_PLACE:m,feedIDs:g,geocodingSearchParams:y,geocodingSources:S,getFutureRoutes:v,cityBikeNetworks:k}=p,E=!M||0===M.length,w=!z||0===z.length,C=n(L),D=[],P={type:"all",term:c,results:[]},x=i(L),I=N&&null!=e&&e.lat&&null!=e&&e.lon?{"focus.point.lat":e.lat.toFixed(3),"focus.point.lon":e.lon.toFixed(3)}:{},F=b?b.split("-")[1]:void 0;if(M.includes("CurrentPosition")&&"geolocation-not-supported"!==C.status&&D.push(function(M,z){return"string"!=typeof M||0===M.length?Promise.resolve([{type:"CurrentLocation",address:z.address,lat:z.lat,lon:z.lon,properties:{labelId:"use-own-position",layer:"currentPosition",address:z.address,lat:z.lat,lon:z.lon},geometry:{type:"Point",coordinates:[z.lon,z.lat]}}]):Promise.resolve([])}(c,C)),(E||M.includes("MapPosition"))&&D.push(function(M){return"string"!=typeof M||0===M.length?Promise.resolve([{type:"SelectFromMap",address:"SelectFromMap",lat:null,lon:null,properties:{labelId:"select-from-map",layer:"selectFromMap",address:"SelectFromMap",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(c)),M.includes("FutureRoutes")){const M=v(L);D.push(_.default(M,3))}if(M.includes("SelectFromOwnLocations")&&function(M,z,b){const p=z(M);if(p&&p.length>0)return!0;const O=b(M);return O&&O.length>0}(L,W,t)&&D.push(function(M){return"string"!=typeof M||0===M.length?Promise.resolve([{type:"SelectFromOwnLocations",address:"SelectFromOwnLocations",lat:null,lon:null,properties:{labelId:"select-from-own-locations",layer:"ownLocations",address:"selectFromOwnLocations",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(c)),E||M.includes("Locations")){const M=y;if(z.includes("Favourite")){const M=W(L);D.push(function(M,z){return Promise.resolve(pM(M,z,["address","name"]).map((M=>({type:"FavouritePlace",properties:Y({},M,{label:M.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[M.lon,M.lat]}}))))}(M,c)),z.includes("Back")&&D.push(Promise.resolve([{type:"back",address:"back",lat:null,lon:null,properties:{labelId:"back",layer:"back",address:"back",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]))}if(w||z.includes("Datasource")){const z=["station","venue","address","street"],b=g.map((M=>`gtfs${M}`)),p=S.concat(b).join(",");D.push(qM(c,M,x,I,p,h,B,z))}if(w||z.includes("History")){const M=a(L,"endpoint"),z=["currentPosition","selectFromMap","futureRoute","ownLocations","bikeRentalStation","bikepark","carpark","stop","back"];z.push(...WM),D.push(nM(M,c,z))}}if(E||M.includes("ParkingAreas")){if(w||z.includes("Datasource")){const M=y;o&&10!==o&&(M.size=o);const z=["carpark","bikepark"],b=d?d.join(","):null;D.push(qM(c,M,x,I,b,h,B,z).then((M=>O?O(M,F):M)))}if(w||z.includes("History")){const M=a(L),z=["currentPosition","selectFromMap","futureRoute","ownLocations","favouritePlace","bikestation","bikeRentalStation","back"];z.push(...WM),z.push(...aM),D.push(nM(M,c,z))}}if(E||M.includes("Stops")){if(z.includes("Favourite")){const M=t(L);let z;z=M.every((M=>"station"===M.type))?eM(M,m).then((M=>O?O(M,F):M)):r(M).then((M=>eM(M,m))).then((M=>O?O(M,F):M)),D.push(function(M,z){return M.then((M=>pM(M,z,["properties.name","properties.name","properties.address"])))}(z,c))}if(w||z.includes("Datasource")){const z=["stop","station"],b=o&&10!==o?{size:o}:{};y&&y["boundary.country"]&&(b["boundary.country"]=y["boundary.country"]),(E||M.includes("Locations"))&&(b.dedupestops=1);const p=g.map((M=>`gtfs${M}`)).join(",");D.push(qM(c,b,x,I,p,h,B,z).then((M=>O?O(M,F):M)))}if(w||z.includes("History")){const M=a(L).filter((M=>!M.properties.gid||M.properties.gid.includes("GTFS:"))),z=["currentPosition","selectFromMap","futureRoute","ownLocations","favouritePlace","bikeRentalStation","back"];z.push(...WM),z.push(...aM),z.push(...tM),b?("route-CITYBIKE"!==b&&(z.push("bikeRentalStation"),z.push("bikestation")),D.push(nM(M,c,z).then((M=>O?O(M,F):M)))):D.push(nM(M,c,z))}}if(E||M.includes("Routes")){if(z.includes("Favourite")){const M=f(L);D.push(R(M,c,F,q).then((M=>O?O(M,F,"Routes"):M)))}if(D.push(l(c,g,b,q).then((M=>O?O(M,F,"Routes"):M))),w||z.includes("History")){const M=a(L),z=["currentPosition","selectFromMap","futureRoute","favouritePlace","stop","station","bikepark","carpark","ownLocations","back"];b&&("route-CITYBIKE"!==b&&(z.push("bikeRentalStation"),z.push("bikestation")),z.push(...WM.filter((M=>!(M===b))))),z.push(...aM),D.push(nM(M,c,z).then((M=>O?O(M,F,"Routes"):M)))}}if(E||M.includes("BikeRentalStations")){if(z.includes("Favourite")){const M=u(L);D.push(s(M,c))}if(w||z.includes("Datasource")){const M=["bikestation"],z=o&&10!==o?{size:o}:{};D.push(qM(c,z,x,I,k.join(","),h,B,M).then((M=>O?O(M,F,"BikeRentalStations"):M)))}}Promise.all(D).then(T.default).then(bM).then((M=>{P.results=M})).catch((M=>{P.error=M})).then((()=>{A(Y({},P,{results:J(X,P.results,c)}))}))}),300,{leading:!0});function iM(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function rM(M,z){return M(z={exports:{}},z.exports),z.exports}var sM,uM=rM((function(M,z){M.exports=function(){var z,b;function p(){return z.apply(null,arguments)}function O(M){z=M}function o(M){return M instanceof Array||"[object Array]"===Object.prototype.toString.call(M)}function c(M){return null!=M&&"[object Object]"===Object.prototype.toString.call(M)}function A(M,z){return Object.prototype.hasOwnProperty.call(M,z)}function q(M){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(M).length;var z;for(z in M)if(A(M,z))return!1;return!0}function e(M){return void 0===M}function n(M){return"number"==typeof M||"[object Number]"===Object.prototype.toString.call(M)}function W(M){return M instanceof Date||"[object Date]"===Object.prototype.toString.call(M)}function a(M,z){var b,p=[],O=M.length;for(b=0;b<O;++b)p.push(z(M[b],b));return p}function t(M,z){for(var b in z)A(z,b)&&(M[b]=z[b]);return A(z,"toString")&&(M.toString=z.toString),A(z,"valueOf")&&(M.valueOf=z.valueOf),M}function d(M,z,b,p){return Vb(M,z,b,p,!0).utc()}function i(){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 r(M){return null==M._pf&&(M._pf=i()),M._pf}function s(M){if(null==M._isValid){var z=r(M),p=b.call(z.parsedDateParts,(function(M){return null!=M})),O=!isNaN(M._d.getTime())&&z.overflow<0&&!z.empty&&!z.invalidEra&&!z.invalidMonth&&!z.invalidWeekday&&!z.weekdayMismatch&&!z.nullInput&&!z.invalidFormat&&!z.userInvalidated&&(!z.meridiem||z.meridiem&&p);if(M._strict&&(O=O&&0===z.charsLeftOver&&0===z.unusedTokens.length&&void 0===z.bigHour),null!=Object.isFrozen&&Object.isFrozen(M))return O;M._isValid=O}return M._isValid}function u(M){var z=d(NaN);return null!=M?t(r(z),M):r(z).userInvalidated=!0,z}b=Array.prototype.some?Array.prototype.some:function(M){var z,b=Object(this),p=b.length>>>0;for(z=0;z<p;z++)if(z in b&&M.call(this,b[z],z,b))return!0;return!1};var R=p.momentProperties=[],f=!1;function l(M,z){var b,p,O,o=R.length;if(e(z._isAMomentObject)||(M._isAMomentObject=z._isAMomentObject),e(z._i)||(M._i=z._i),e(z._f)||(M._f=z._f),e(z._l)||(M._l=z._l),e(z._strict)||(M._strict=z._strict),e(z._tzm)||(M._tzm=z._tzm),e(z._isUTC)||(M._isUTC=z._isUTC),e(z._offset)||(M._offset=z._offset),e(z._pf)||(M._pf=r(z)),e(z._locale)||(M._locale=z._locale),o>0)for(b=0;b<o;b++)e(O=z[p=R[b]])||(M[p]=O);return M}function L(M){l(this,M),this._d=new Date(null!=M._d?M._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===f&&(f=!0,p.updateOffset(this),f=!1)}function N(M){return M instanceof L||null!=M&&null!=M._isAMomentObject}function B(M){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+M)}function X(M,z){var b=!0;return t((function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,M),b){var O,o,c,q=[],e=arguments.length;for(o=0;o<e;o++){if(O="","object"==typeof arguments[o]){for(c in O+="\n["+o+"] ",arguments[0])A(arguments[0],c)&&(O+=c+": "+arguments[0][c]+", ");O=O.slice(0,-2)}else O=arguments[o];q.push(O)}B(M+"\nArguments: "+Array.prototype.slice.call(q).join("")+"\n"+(new Error).stack),b=!1}return z.apply(this,arguments)}),z)}var h,m={};function g(M,z){null!=p.deprecationHandler&&p.deprecationHandler(M,z),m[M]||(B(z),m[M]=!0)}function T(M){return"undefined"!=typeof Function&&M instanceof Function||"[object Function]"===Object.prototype.toString.call(M)}function _(M){var z,b;for(b in M)A(M,b)&&(T(z=M[b])?this[b]=z:this["_"+b]=z);this._config=M,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function y(M,z){var b,p=t({},M);for(b in z)A(z,b)&&(c(M[b])&&c(z[b])?(p[b]={},t(p[b],M[b]),t(p[b],z[b])):null!=z[b]?p[b]=z[b]:delete p[b]);for(b in M)A(M,b)&&!A(z,b)&&c(M[b])&&(p[b]=t({},p[b]));return p}function S(M){null!=M&&this.set(M)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null,h=Object.keys?Object.keys:function(M){var z,b=[];for(z in M)A(M,z)&&b.push(z);return b};var v={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function k(M,z,b){var p=this._calendar[M]||this._calendar.sameElse;return T(p)?p.call(z,b):p}function E(M,z,b){var p=""+Math.abs(M),O=z-p.length;return(M>=0?b?"+":"":"-")+Math.pow(10,Math.max(0,O)).toString().substr(1)+p}var w=/(\[[^\[]*\])|(\\)?([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,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},P={};function x(M,z,b,p){var O=p;"string"==typeof p&&(O=function(){return this[p]()}),M&&(P[M]=O),z&&(P[z[0]]=function(){return E(O.apply(this,arguments),z[1],z[2])}),b&&(P[b]=function(){return this.localeData().ordinal(O.apply(this,arguments),M)})}function I(M){return M.match(/\[[\s\S]/)?M.replace(/^\[|\]$/g,""):M.replace(/\\/g,"")}function F(M){var z,b,p=M.match(w);for(z=0,b=p.length;z<b;z++)P[p[z]]?p[z]=P[p[z]]:p[z]=I(p[z]);return function(z){var O,o="";for(O=0;O<b;O++)o+=T(p[O])?p[O].call(z,M):p[O];return o}}function H(M,z){return M.isValid()?(z=Y(z,M.localeData()),D[z]=D[z]||F(z),D[z](M)):M.localeData().invalidDate()}function Y(M,z){var b=5;function p(M){return z.longDateFormat(M)||M}for(C.lastIndex=0;b>=0&&C.test(M);)M=M.replace(C,p),C.lastIndex=0,b-=1;return M}var U={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(M){var z=this._longDateFormat[M],b=this._longDateFormat[M.toUpperCase()];return z||!b?z:(this._longDateFormat[M]=b.match(w).map((function(M){return"MMMM"===M||"MM"===M||"DD"===M||"dddd"===M?M.slice(1):M})).join(""),this._longDateFormat[M])}var G="Invalid date";function V(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function J(M){return this._ordinal.replace("%d",M)}var Z={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 $(M,z,b,p){var O=this._relativeTime[b];return T(O)?O(M,z,b,p):O.replace(/%d/i,M)}function MM(M,z){var b=this._relativeTime[M>0?"future":"past"];return T(b)?b(z):b.replace(/%s/i,z)}var zM={};function bM(M,z){var b=M.toLowerCase();zM[b]=zM[b+"s"]=zM[z]=M}function pM(M){return"string"==typeof M?zM[M]||zM[M.toLowerCase()]:void 0}function OM(M){var z,b,p={};for(b in M)A(M,b)&&(z=pM(b))&&(p[z]=M[b]);return p}var oM={};function cM(M,z){oM[M]=z}function AM(M){var z,b=[];for(z in M)A(M,z)&&b.push({unit:z,priority:oM[z]});return b.sort((function(M,z){return M.priority-z.priority})),b}function qM(M){return M%4==0&&M%100!=0||M%400==0}function eM(M){return M<0?Math.ceil(M)||0:Math.floor(M)}function nM(M){var z=+M,b=0;return 0!==z&&isFinite(z)&&(b=eM(z)),b}function WM(M,z){return function(b){return null!=b?(tM(this,M,b),p.updateOffset(this,z),this):aM(this,M)}}function aM(M,z){return M.isValid()?M._d["get"+(M._isUTC?"UTC":"")+z]():NaN}function tM(M,z,b){M.isValid()&&!isNaN(b)&&("FullYear"===z&&qM(M.year())&&1===M.month()&&29===M.date()?(b=nM(b),M._d["set"+(M._isUTC?"UTC":"")+z](b,M.month(),Mz(b,M.month()))):M._d["set"+(M._isUTC?"UTC":"")+z](b))}function dM(M){return T(this[M=pM(M)])?this[M]():this}function rM(M,z){if("object"==typeof M){var b,p=AM(M=OM(M)),O=p.length;for(b=0;b<O;b++)this[p[b].unit](M[p[b].unit])}else if(T(this[M=pM(M)]))return this[M](z);return this}var sM,uM=/\d/,RM=/\d\d/,fM=/\d{3}/,lM=/\d{4}/,LM=/[+-]?\d{6}/,NM=/\d\d?/,BM=/\d\d\d\d?/,XM=/\d\d\d\d\d\d?/,hM=/\d{1,3}/,mM=/\d{1,4}/,gM=/[+-]?\d{1,6}/,TM=/\d+/,_M=/[+-]?\d+/,yM=/Z|[+-]\d\d:?\d\d/gi,SM=/Z|[+-]\d\d(?::?\d\d)?/gi,vM=/[+-]?\d+(\.\d{1,3})?/,kM=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function EM(M,z,b){sM[M]=T(z)?z:function(M,p){return M&&b?b:z}}function wM(M,z){return A(sM,M)?sM[M](z._strict,z._locale):new RegExp(CM(M))}function CM(M){return DM(M.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(M,z,b,p,O){return z||b||p||O})))}function DM(M){return M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}sM={};var PM={};function xM(M,z){var b,p,O=z;for("string"==typeof M&&(M=[M]),n(z)&&(O=function(M,b){b[z]=nM(M)}),p=M.length,b=0;b<p;b++)PM[M[b]]=O}function IM(M,z){xM(M,(function(M,b,p,O){p._w=p._w||{},z(M,p._w,p,O)}))}function FM(M,z,b){null!=z&&A(PM,M)&&PM[M](z,b._a,b,M)}var HM,YM=0,UM=1,jM=2,GM=3,VM=4,KM=5,QM=6,JM=7,ZM=8;function $M(M,z){return(M%z+z)%z}function Mz(M,z){if(isNaN(M)||isNaN(z))return NaN;var b=$M(z,12);return M+=(z-b)/12,1===b?qM(M)?29:28:31-b%7%2}HM=Array.prototype.indexOf?Array.prototype.indexOf:function(M){var z;for(z=0;z<this.length;++z)if(this[z]===M)return z;return-1},x("M",["MM",2],"Mo",(function(){return this.month()+1})),x("MMM",0,0,(function(M){return this.localeData().monthsShort(this,M)})),x("MMMM",0,0,(function(M){return this.localeData().months(this,M)})),bM("month","M"),cM("month",8),EM("M",NM),EM("MM",NM,RM),EM("MMM",(function(M,z){return z.monthsShortRegex(M)})),EM("MMMM",(function(M,z){return z.monthsRegex(M)})),xM(["M","MM"],(function(M,z){z[UM]=nM(M)-1})),xM(["MMM","MMMM"],(function(M,z,b,p){var O=b._locale.monthsParse(M,p,b._strict);null!=O?z[UM]=O:r(b).invalidMonth=M}));var zz="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),bz="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),pz=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oz=kM,oz=kM;function cz(M,z){return M?o(this._months)?this._months[M.month()]:this._months[(this._months.isFormat||pz).test(z)?"format":"standalone"][M.month()]:o(this._months)?this._months:this._months.standalone}function Az(M,z){return M?o(this._monthsShort)?this._monthsShort[M.month()]:this._monthsShort[pz.test(z)?"format":"standalone"][M.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function qz(M,z,b){var p,O,o,c=M.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],p=0;p<12;++p)o=d([2e3,p]),this._shortMonthsParse[p]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[p]=this.months(o,"").toLocaleLowerCase();return b?"MMM"===z?-1!==(O=HM.call(this._shortMonthsParse,c))?O:null:-1!==(O=HM.call(this._longMonthsParse,c))?O:null:"MMM"===z?-1!==(O=HM.call(this._shortMonthsParse,c))||-1!==(O=HM.call(this._longMonthsParse,c))?O:null:-1!==(O=HM.call(this._longMonthsParse,c))||-1!==(O=HM.call(this._shortMonthsParse,c))?O:null}function ez(M,z,b){var p,O,o;if(this._monthsParseExact)return qz.call(this,M,z,b);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),p=0;p<12;p++){if(O=d([2e3,p]),b&&!this._longMonthsParse[p]&&(this._longMonthsParse[p]=new RegExp("^"+this.months(O,"").replace(".","")+"$","i"),this._shortMonthsParse[p]=new RegExp("^"+this.monthsShort(O,"").replace(".","")+"$","i")),b||this._monthsParse[p]||(o="^"+this.months(O,"")+"|^"+this.monthsShort(O,""),this._monthsParse[p]=new RegExp(o.replace(".",""),"i")),b&&"MMMM"===z&&this._longMonthsParse[p].test(M))return p;if(b&&"MMM"===z&&this._shortMonthsParse[p].test(M))return p;if(!b&&this._monthsParse[p].test(M))return p}}function nz(M,z){var b;if(!M.isValid())return M;if("string"==typeof z)if(/^\d+$/.test(z))z=nM(z);else if(!n(z=M.localeData().monthsParse(z)))return M;return b=Math.min(M.date(),Mz(M.year(),z)),M._d["set"+(M._isUTC?"UTC":"")+"Month"](z,b),M}function Wz(M){return null!=M?(nz(this,M),p.updateOffset(this,!0),this):aM(this,"Month")}function az(){return Mz(this.year(),this.month())}function tz(M){return this._monthsParseExact?(A(this,"_monthsRegex")||iz.call(this),M?this._monthsShortStrictRegex:this._monthsShortRegex):(A(this,"_monthsShortRegex")||(this._monthsShortRegex=Oz),this._monthsShortStrictRegex&&M?this._monthsShortStrictRegex:this._monthsShortRegex)}function dz(M){return this._monthsParseExact?(A(this,"_monthsRegex")||iz.call(this),M?this._monthsStrictRegex:this._monthsRegex):(A(this,"_monthsRegex")||(this._monthsRegex=oz),this._monthsStrictRegex&&M?this._monthsStrictRegex:this._monthsRegex)}function iz(){function M(M,z){return z.length-M.length}var z,b,p=[],O=[],o=[];for(z=0;z<12;z++)b=d([2e3,z]),p.push(this.monthsShort(b,"")),O.push(this.months(b,"")),o.push(this.months(b,"")),o.push(this.monthsShort(b,""));for(p.sort(M),O.sort(M),o.sort(M),z=0;z<12;z++)p[z]=DM(p[z]),O[z]=DM(O[z]);for(z=0;z<24;z++)o[z]=DM(o[z]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+p.join("|")+")","i")}function rz(M){return qM(M)?366:365}x("Y",0,0,(function(){var M=this.year();return M<=9999?E(M,4):"+"+M})),x(0,["YY",2],0,(function(){return this.year()%100})),x(0,["YYYY",4],0,"year"),x(0,["YYYYY",5],0,"year"),x(0,["YYYYYY",6,!0],0,"year"),bM("year","y"),cM("year",1),EM("Y",_M),EM("YY",NM,RM),EM("YYYY",mM,lM),EM("YYYYY",gM,LM),EM("YYYYYY",gM,LM),xM(["YYYYY","YYYYYY"],YM),xM("YYYY",(function(M,z){z[YM]=2===M.length?p.parseTwoDigitYear(M):nM(M)})),xM("YY",(function(M,z){z[YM]=p.parseTwoDigitYear(M)})),xM("Y",(function(M,z){z[YM]=parseInt(M,10)})),p.parseTwoDigitYear=function(M){return nM(M)+(nM(M)>68?1900:2e3)};var sz=WM("FullYear",!0);function uz(){return qM(this.year())}function Rz(M,z,b,p,O,o,c){var A;return M<100&&M>=0?(A=new Date(M+400,z,b,p,O,o,c),isFinite(A.getFullYear())&&A.setFullYear(M)):A=new Date(M,z,b,p,O,o,c),A}function fz(M){var z,b;return M<100&&M>=0?((b=Array.prototype.slice.call(arguments))[0]=M+400,z=new Date(Date.UTC.apply(null,b)),isFinite(z.getUTCFullYear())&&z.setUTCFullYear(M)):z=new Date(Date.UTC.apply(null,arguments)),z}function lz(M,z,b){var p=7+z-b;return-(7+fz(M,0,p).getUTCDay()-z)%7+p-1}function Lz(M,z,b,p,O){var o,c,A=1+7*(z-1)+(7+b-p)%7+lz(M,p,O);return A<=0?c=rz(o=M-1)+A:A>rz(M)?(o=M+1,c=A-rz(M)):(o=M,c=A),{year:o,dayOfYear:c}}function Nz(M,z,b){var p,O,o=lz(M.year(),z,b),c=Math.floor((M.dayOfYear()-o-1)/7)+1;return c<1?p=c+Bz(O=M.year()-1,z,b):c>Bz(M.year(),z,b)?(p=c-Bz(M.year(),z,b),O=M.year()+1):(O=M.year(),p=c),{week:p,year:O}}function Bz(M,z,b){var p=lz(M,z,b),O=lz(M+1,z,b);return(rz(M)-p+O)/7}function Xz(M){return Nz(M,this._week.dow,this._week.doy).week}x("w",["ww",2],"wo","week"),x("W",["WW",2],"Wo","isoWeek"),bM("week","w"),bM("isoWeek","W"),cM("week",5),cM("isoWeek",5),EM("w",NM),EM("ww",NM,RM),EM("W",NM),EM("WW",NM,RM),IM(["w","ww","W","WW"],(function(M,z,b,p){z[p.substr(0,1)]=nM(M)}));var hz={dow:0,doy:6};function mz(){return this._week.dow}function gz(){return this._week.doy}function Tz(M){var z=this.localeData().week(this);return null==M?z:this.add(7*(M-z),"d")}function _z(M){var z=Nz(this,1,4).week;return null==M?z:this.add(7*(M-z),"d")}function yz(M,z){return"string"!=typeof M?M:isNaN(M)?"number"==typeof(M=z.weekdaysParse(M))?M:null:parseInt(M,10)}function Sz(M,z){return"string"==typeof M?z.weekdaysParse(M)%7||7:isNaN(M)?null:M}function vz(M,z){return M.slice(z,7).concat(M.slice(0,z))}x("d",0,"do","day"),x("dd",0,0,(function(M){return this.localeData().weekdaysMin(this,M)})),x("ddd",0,0,(function(M){return this.localeData().weekdaysShort(this,M)})),x("dddd",0,0,(function(M){return this.localeData().weekdays(this,M)})),x("e",0,0,"weekday"),x("E",0,0,"isoWeekday"),bM("day","d"),bM("weekday","e"),bM("isoWeekday","E"),cM("day",11),cM("weekday",11),cM("isoWeekday",11),EM("d",NM),EM("e",NM),EM("E",NM),EM("dd",(function(M,z){return z.weekdaysMinRegex(M)})),EM("ddd",(function(M,z){return z.weekdaysShortRegex(M)})),EM("dddd",(function(M,z){return z.weekdaysRegex(M)})),IM(["dd","ddd","dddd"],(function(M,z,b,p){var O=b._locale.weekdaysParse(M,p,b._strict);null!=O?z.d=O:r(b).invalidWeekday=M})),IM(["d","e","E"],(function(M,z,b,p){z[p]=nM(M)}));var kz="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ez="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wz="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Cz=kM,Dz=kM,Pz=kM;function xz(M,z){var b=o(this._weekdays)?this._weekdays:this._weekdays[M&&!0!==M&&this._weekdays.isFormat.test(z)?"format":"standalone"];return!0===M?vz(b,this._week.dow):M?b[M.day()]:b}function Iz(M){return!0===M?vz(this._weekdaysShort,this._week.dow):M?this._weekdaysShort[M.day()]:this._weekdaysShort}function Fz(M){return!0===M?vz(this._weekdaysMin,this._week.dow):M?this._weekdaysMin[M.day()]:this._weekdaysMin}function Hz(M,z,b){var p,O,o,c=M.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],p=0;p<7;++p)o=d([2e3,1]).day(p),this._minWeekdaysParse[p]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[p]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[p]=this.weekdays(o,"").toLocaleLowerCase();return b?"dddd"===z?-1!==(O=HM.call(this._weekdaysParse,c))?O:null:"ddd"===z?-1!==(O=HM.call(this._shortWeekdaysParse,c))?O:null:-1!==(O=HM.call(this._minWeekdaysParse,c))?O:null:"dddd"===z?-1!==(O=HM.call(this._weekdaysParse,c))||-1!==(O=HM.call(this._shortWeekdaysParse,c))||-1!==(O=HM.call(this._minWeekdaysParse,c))?O:null:"ddd"===z?-1!==(O=HM.call(this._shortWeekdaysParse,c))||-1!==(O=HM.call(this._weekdaysParse,c))||-1!==(O=HM.call(this._minWeekdaysParse,c))?O:null:-1!==(O=HM.call(this._minWeekdaysParse,c))||-1!==(O=HM.call(this._weekdaysParse,c))||-1!==(O=HM.call(this._shortWeekdaysParse,c))?O:null}function Yz(M,z,b){var p,O,o;if(this._weekdaysParseExact)return Hz.call(this,M,z,b);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),p=0;p<7;p++){if(O=d([2e3,1]).day(p),b&&!this._fullWeekdaysParse[p]&&(this._fullWeekdaysParse[p]=new RegExp("^"+this.weekdays(O,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[p]=new RegExp("^"+this.weekdaysShort(O,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[p]=new RegExp("^"+this.weekdaysMin(O,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[p]||(o="^"+this.weekdays(O,"")+"|^"+this.weekdaysShort(O,"")+"|^"+this.weekdaysMin(O,""),this._weekdaysParse[p]=new RegExp(o.replace(".",""),"i")),b&&"dddd"===z&&this._fullWeekdaysParse[p].test(M))return p;if(b&&"ddd"===z&&this._shortWeekdaysParse[p].test(M))return p;if(b&&"dd"===z&&this._minWeekdaysParse[p].test(M))return p;if(!b&&this._weekdaysParse[p].test(M))return p}}function Uz(M){if(!this.isValid())return null!=M?this:NaN;var z=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=M?(M=yz(M,this.localeData()),this.add(M-z,"d")):z}function jz(M){if(!this.isValid())return null!=M?this:NaN;var z=(this.day()+7-this.localeData()._week.dow)%7;return null==M?z:this.add(M-z,"d")}function Gz(M){if(!this.isValid())return null!=M?this:NaN;if(null!=M){var z=Sz(M,this.localeData());return this.day(this.day()%7?z:z-7)}return this.day()||7}function Vz(M){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Jz.call(this),M?this._weekdaysStrictRegex:this._weekdaysRegex):(A(this,"_weekdaysRegex")||(this._weekdaysRegex=Cz),this._weekdaysStrictRegex&&M?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kz(M){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Jz.call(this),M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(A(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Dz),this._weekdaysShortStrictRegex&&M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qz(M){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Jz.call(this),M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(A(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pz),this._weekdaysMinStrictRegex&&M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jz(){function M(M,z){return z.length-M.length}var z,b,p,O,o,c=[],A=[],q=[],e=[];for(z=0;z<7;z++)b=d([2e3,1]).day(z),p=DM(this.weekdaysMin(b,"")),O=DM(this.weekdaysShort(b,"")),o=DM(this.weekdays(b,"")),c.push(p),A.push(O),q.push(o),e.push(p),e.push(O),e.push(o);c.sort(M),A.sort(M),q.sort(M),e.sort(M),this._weekdaysRegex=new RegExp("^("+e.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+c.join("|")+")","i")}function Zz(){return this.hours()%12||12}function $z(){return this.hours()||24}function Mb(M,z){x(M,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),z)}))}function zb(M,z){return z._meridiemParse}function bb(M){return"p"===(M+"").toLowerCase().charAt(0)}x("H",["HH",2],0,"hour"),x("h",["hh",2],0,Zz),x("k",["kk",2],0,$z),x("hmm",0,0,(function(){return""+Zz.apply(this)+E(this.minutes(),2)})),x("hmmss",0,0,(function(){return""+Zz.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)})),x("Hmm",0,0,(function(){return""+this.hours()+E(this.minutes(),2)})),x("Hmmss",0,0,(function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)})),Mb("a",!0),Mb("A",!1),bM("hour","h"),cM("hour",13),EM("a",zb),EM("A",zb),EM("H",NM),EM("h",NM),EM("k",NM),EM("HH",NM,RM),EM("hh",NM,RM),EM("kk",NM,RM),EM("hmm",BM),EM("hmmss",XM),EM("Hmm",BM),EM("Hmmss",XM),xM(["H","HH"],GM),xM(["k","kk"],(function(M,z,b){var p=nM(M);z[GM]=24===p?0:p})),xM(["a","A"],(function(M,z,b){b._isPm=b._locale.isPM(M),b._meridiem=M})),xM(["h","hh"],(function(M,z,b){z[GM]=nM(M),r(b).bigHour=!0})),xM("hmm",(function(M,z,b){var p=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p)),r(b).bigHour=!0})),xM("hmmss",(function(M,z,b){var p=M.length-4,O=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p,2)),z[KM]=nM(M.substr(O)),r(b).bigHour=!0})),xM("Hmm",(function(M,z,b){var p=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p))})),xM("Hmmss",(function(M,z,b){var p=M.length-4,O=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p,2)),z[KM]=nM(M.substr(O))}));var pb=/[ap]\.?m?\.?/i,Ob=WM("Hours",!0);function ob(M,z,b){return M>11?b?"pm":"PM":b?"am":"AM"}var cb,Ab={calendar:v,longDateFormat:U,invalidDate:G,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:Z,months:zz,monthsShort:bz,week:hz,weekdays:kz,weekdaysMin:wz,weekdaysShort:Ez,meridiemParse:pb},qb={},eb={};function nb(M,z){var b,p=Math.min(M.length,z.length);for(b=0;b<p;b+=1)if(M[b]!==z[b])return b;return p}function Wb(M){return M?M.toLowerCase().replace("_","-"):M}function ab(M){for(var z,b,p,O,o=0;o<M.length;){for(z=(O=Wb(M[o]).split("-")).length,b=(b=Wb(M[o+1]))?b.split("-"):null;z>0;){if(p=db(O.slice(0,z).join("-")))return p;if(b&&b.length>=z&&nb(O,b)>=z-1)break;z--}o++}return cb}function tb(M){return null!=M.match("^[^/\\\\]*$")}function db(z){var b=null;if(void 0===qb[z]&&M&&M.exports&&tb(z))try{b=cb._abbr,iM(),ib(b)}catch(M){qb[z]=null}return qb[z]}function ib(M,z){var b;return M&&((b=e(z)?ub(M):rb(M,z))?cb=b:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+M+" not found. Did you forget to load it?")),cb._abbr}function rb(M,z){if(null!==z){var b,p=Ab;if(z.abbr=M,null!=qb[M])g("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."),p=qb[M]._config;else if(null!=z.parentLocale)if(null!=qb[z.parentLocale])p=qb[z.parentLocale]._config;else{if(null==(b=db(z.parentLocale)))return eb[z.parentLocale]||(eb[z.parentLocale]=[]),eb[z.parentLocale].push({name:M,config:z}),null;p=b._config}return qb[M]=new S(y(p,z)),eb[M]&&eb[M].forEach((function(M){rb(M.name,M.config)})),ib(M),qb[M]}return delete qb[M],null}function sb(M,z){if(null!=z){var b,p,O=Ab;null!=qb[M]&&null!=qb[M].parentLocale?qb[M].set(y(qb[M]._config,z)):(null!=(p=db(M))&&(O=p._config),z=y(O,z),null==p&&(z.abbr=M),(b=new S(z)).parentLocale=qb[M],qb[M]=b),ib(M)}else null!=qb[M]&&(null!=qb[M].parentLocale?(qb[M]=qb[M].parentLocale,M===ib()&&ib(M)):null!=qb[M]&&delete qb[M]);return qb[M]}function ub(M){var z;if(M&&M._locale&&M._locale._abbr&&(M=M._locale._abbr),!M)return cb;if(!o(M)){if(z=db(M))return z;M=[M]}return ab(M)}function Rb(){return h(qb)}function fb(M){var z,b=M._a;return b&&-2===r(M).overflow&&(z=b[UM]<0||b[UM]>11?UM:b[jM]<1||b[jM]>Mz(b[YM],b[UM])?jM:b[GM]<0||b[GM]>24||24===b[GM]&&(0!==b[VM]||0!==b[KM]||0!==b[QM])?GM:b[VM]<0||b[VM]>59?VM:b[KM]<0||b[KM]>59?KM:b[QM]<0||b[QM]>999?QM:-1,r(M)._overflowDayOfYear&&(z<YM||z>jM)&&(z=jM),r(M)._overflowWeeks&&-1===z&&(z=JM),r(M)._overflowWeekday&&-1===z&&(z=ZM),r(M).overflow=z),M}var lb=/^\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)?)?$/,Lb=/^\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)?)?$/,Nb=/Z|[+-]\d\d(?::?\d\d)?/,Bb=[["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]],Xb=[["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/]],hb=/^\/?Date\((-?\d+)/i,mb=/^(?:(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}))$/,gb={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tb(M){var z,b,p,O,o,c,A=M._i,q=lb.exec(A)||Lb.exec(A),e=Bb.length,n=Xb.length;if(q){for(r(M).iso=!0,z=0,b=e;z<b;z++)if(Bb[z][1].exec(q[1])){O=Bb[z][0],p=!1!==Bb[z][2];break}if(null==O)return void(M._isValid=!1);if(q[3]){for(z=0,b=n;z<b;z++)if(Xb[z][1].exec(q[3])){o=(q[2]||" ")+Xb[z][0];break}if(null==o)return void(M._isValid=!1)}if(!p&&null!=o)return void(M._isValid=!1);if(q[4]){if(!Nb.exec(q[4]))return void(M._isValid=!1);c="Z"}M._f=O+(o||"")+(c||""),Ib(M)}else M._isValid=!1}function _b(M,z,b,p,O,o){var c=[yb(M),bz.indexOf(z),parseInt(b,10),parseInt(p,10),parseInt(O,10)];return o&&c.push(parseInt(o,10)),c}function yb(M){var z=parseInt(M,10);return z<=49?2e3+z:z<=999?1900+z:z}function Sb(M){return M.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vb(M,z,b){return!M||Ez.indexOf(M)===new Date(z[0],z[1],z[2]).getDay()||(r(b).weekdayMismatch=!0,b._isValid=!1,!1)}function kb(M,z,b){if(M)return gb[M];if(z)return 0;var p=parseInt(b,10),O=p%100;return(p-O)/100*60+O}function Eb(M){var z,b=mb.exec(Sb(M._i));if(b){if(z=_b(b[4],b[3],b[2],b[5],b[6],b[7]),!vb(b[1],z,M))return;M._a=z,M._tzm=kb(b[8],b[9],b[10]),M._d=fz.apply(null,M._a),M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),r(M).rfc2822=!0}else M._isValid=!1}function wb(M){var z=hb.exec(M._i);null===z?(Tb(M),!1===M._isValid&&(delete M._isValid,Eb(M),!1===M._isValid&&(delete M._isValid,M._strict?M._isValid=!1:p.createFromInputFallback(M)))):M._d=new Date(+z[1])}function Cb(M,z,b){return null!=M?M:null!=z?z:b}function Db(M){var z=new Date(p.now());return M._useUTC?[z.getUTCFullYear(),z.getUTCMonth(),z.getUTCDate()]:[z.getFullYear(),z.getMonth(),z.getDate()]}function Pb(M){var z,b,p,O,o,c=[];if(!M._d){for(p=Db(M),M._w&&null==M._a[jM]&&null==M._a[UM]&&xb(M),null!=M._dayOfYear&&(o=Cb(M._a[YM],p[YM]),(M._dayOfYear>rz(o)||0===M._dayOfYear)&&(r(M)._overflowDayOfYear=!0),b=fz(o,0,M._dayOfYear),M._a[UM]=b.getUTCMonth(),M._a[jM]=b.getUTCDate()),z=0;z<3&&null==M._a[z];++z)M._a[z]=c[z]=p[z];for(;z<7;z++)M._a[z]=c[z]=null==M._a[z]?2===z?1:0:M._a[z];24===M._a[GM]&&0===M._a[VM]&&0===M._a[KM]&&0===M._a[QM]&&(M._nextDay=!0,M._a[GM]=0),M._d=(M._useUTC?fz:Rz).apply(null,c),O=M._useUTC?M._d.getUTCDay():M._d.getDay(),null!=M._tzm&&M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),M._nextDay&&(M._a[GM]=24),M._w&&void 0!==M._w.d&&M._w.d!==O&&(r(M).weekdayMismatch=!0)}}function xb(M){var z,b,p,O,o,c,A,q,e;null!=(z=M._w).GG||null!=z.W||null!=z.E?(o=1,c=4,b=Cb(z.GG,M._a[YM],Nz(Kb(),1,4).year),p=Cb(z.W,1),((O=Cb(z.E,1))<1||O>7)&&(q=!0)):(o=M._locale._week.dow,c=M._locale._week.doy,e=Nz(Kb(),o,c),b=Cb(z.gg,M._a[YM],e.year),p=Cb(z.w,e.week),null!=z.d?((O=z.d)<0||O>6)&&(q=!0):null!=z.e?(O=z.e+o,(z.e<0||z.e>6)&&(q=!0)):O=o),p<1||p>Bz(b,o,c)?r(M)._overflowWeeks=!0:null!=q?r(M)._overflowWeekday=!0:(A=Lz(b,p,O,o,c),M._a[YM]=A.year,M._dayOfYear=A.dayOfYear)}function Ib(M){if(M._f!==p.ISO_8601)if(M._f!==p.RFC_2822){M._a=[],r(M).empty=!0;var z,b,O,o,c,A,q,e=""+M._i,n=e.length,W=0;for(q=(O=Y(M._f,M._locale).match(w)||[]).length,z=0;z<q;z++)o=O[z],(b=(e.match(wM(o,M))||[])[0])&&((c=e.substr(0,e.indexOf(b))).length>0&&r(M).unusedInput.push(c),e=e.slice(e.indexOf(b)+b.length),W+=b.length),P[o]?(b?r(M).empty=!1:r(M).unusedTokens.push(o),FM(o,b,M)):M._strict&&!b&&r(M).unusedTokens.push(o);r(M).charsLeftOver=n-W,e.length>0&&r(M).unusedInput.push(e),M._a[GM]<=12&&!0===r(M).bigHour&&M._a[GM]>0&&(r(M).bigHour=void 0),r(M).parsedDateParts=M._a.slice(0),r(M).meridiem=M._meridiem,M._a[GM]=Fb(M._locale,M._a[GM],M._meridiem),null!==(A=r(M).era)&&(M._a[YM]=M._locale.erasConvertYear(A,M._a[YM])),Pb(M),fb(M)}else Eb(M);else Tb(M)}function Fb(M,z,b){var p;return null==b?z:null!=M.meridiemHour?M.meridiemHour(z,b):null!=M.isPM?((p=M.isPM(b))&&z<12&&(z+=12),p||12!==z||(z=0),z):z}function Hb(M){var z,b,p,O,o,c,A=!1,q=M._f.length;if(0===q)return r(M).invalidFormat=!0,void(M._d=new Date(NaN));for(O=0;O<q;O++)o=0,c=!1,z=l({},M),null!=M._useUTC&&(z._useUTC=M._useUTC),z._f=M._f[O],Ib(z),s(z)&&(c=!0),o+=r(z).charsLeftOver,o+=10*r(z).unusedTokens.length,r(z).score=o,A?o<p&&(p=o,b=z):(null==p||o<p||c)&&(p=o,b=z,c&&(A=!0));t(M,b||z)}function Yb(M){if(!M._d){var z=OM(M._i),b=void 0===z.day?z.date:z.day;M._a=a([z.year,z.month,b,z.hour,z.minute,z.second,z.millisecond],(function(M){return M&&parseInt(M,10)})),Pb(M)}}function Ub(M){var z=new L(fb(jb(M)));return z._nextDay&&(z.add(1,"d"),z._nextDay=void 0),z}function jb(M){var z=M._i,b=M._f;return M._locale=M._locale||ub(M._l),null===z||void 0===b&&""===z?u({nullInput:!0}):("string"==typeof z&&(M._i=z=M._locale.preparse(z)),N(z)?new L(fb(z)):(W(z)?M._d=z:o(b)?Hb(M):b?Ib(M):Gb(M),s(M)||(M._d=null),M))}function Gb(M){var z=M._i;e(z)?M._d=new Date(p.now()):W(z)?M._d=new Date(z.valueOf()):"string"==typeof z?wb(M):o(z)?(M._a=a(z.slice(0),(function(M){return parseInt(M,10)})),Pb(M)):c(z)?Yb(M):n(z)?M._d=new Date(z):p.createFromInputFallback(M)}function Vb(M,z,b,p,O){var A={};return!0!==z&&!1!==z||(p=z,z=void 0),!0!==b&&!1!==b||(p=b,b=void 0),(c(M)&&q(M)||o(M)&&0===M.length)&&(M=void 0),A._isAMomentObject=!0,A._useUTC=A._isUTC=O,A._l=b,A._i=M,A._f=z,A._strict=p,Ub(A)}function Kb(M,z,b,p){return Vb(M,z,b,p,!1)}p.createFromInputFallback=X("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(M){M._d=new Date(M._i+(M._useUTC?" UTC":""))})),p.ISO_8601=function(){},p.RFC_2822=function(){};var Qb=X("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var M=Kb.apply(null,arguments);return this.isValid()&&M.isValid()?M<this?this:M:u()})),Jb=X("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var M=Kb.apply(null,arguments);return this.isValid()&&M.isValid()?M>this?this:M:u()}));function Zb(M,z){var b,p;if(1===z.length&&o(z[0])&&(z=z[0]),!z.length)return Kb();for(b=z[0],p=1;p<z.length;++p)z[p].isValid()&&!z[p][M](b)||(b=z[p]);return b}function $b(){return Zb("isBefore",[].slice.call(arguments,0))}function Mp(){return Zb("isAfter",[].slice.call(arguments,0))}var zp=function(){return Date.now?Date.now():+new Date},bp=["year","quarter","month","week","day","hour","minute","second","millisecond"];function pp(M){var z,b,p=!1,O=bp.length;for(z in M)if(A(M,z)&&(-1===HM.call(bp,z)||null!=M[z]&&isNaN(M[z])))return!1;for(b=0;b<O;++b)if(M[bp[b]]){if(p)return!1;parseFloat(M[bp[b]])!==nM(M[bp[b]])&&(p=!0)}return!0}function Op(){return this._isValid}function op(){return gp(NaN)}function cp(M){var z=OM(M),b=z.year||0,p=z.quarter||0,O=z.month||0,o=z.week||z.isoWeek||0,c=z.day||0,A=z.hour||0,q=z.minute||0,e=z.second||0,n=z.millisecond||0;this._isValid=pp(z),this._milliseconds=+n+1e3*e+6e4*q+1e3*A*60*60,this._days=+c+7*o,this._months=+O+3*p+12*b,this._data={},this._locale=ub(),this._bubble()}function Ap(M){return M instanceof cp}function qp(M){return M<0?-1*Math.round(-1*M):Math.round(M)}function ep(M,z,b){var p,O=Math.min(M.length,z.length),o=Math.abs(M.length-z.length),c=0;for(p=0;p<O;p++)(b&&M[p]!==z[p]||!b&&nM(M[p])!==nM(z[p]))&&c++;return c+o}function np(M,z){x(M,0,0,(function(){var M=this.utcOffset(),b="+";return M<0&&(M=-M,b="-"),b+E(~~(M/60),2)+z+E(~~M%60,2)}))}np("Z",":"),np("ZZ",""),EM("Z",SM),EM("ZZ",SM),xM(["Z","ZZ"],(function(M,z,b){b._useUTC=!0,b._tzm=ap(SM,M)}));var Wp=/([\+\-]|\d\d)/gi;function ap(M,z){var b,p,O=(z||"").match(M);return null===O?null:0===(p=60*(b=((O[O.length-1]||[])+"").match(Wp)||["-",0,0])[1]+nM(b[2]))?0:"+"===b[0]?p:-p}function tp(M,z){var b,O;return z._isUTC?(b=z.clone(),O=(N(M)||W(M)?M.valueOf():Kb(M).valueOf())-b.valueOf(),b._d.setTime(b._d.valueOf()+O),p.updateOffset(b,!1),b):Kb(M).local()}function dp(M){return-Math.round(M._d.getTimezoneOffset())}function ip(M,z,b){var O,o=this._offset||0;if(!this.isValid())return null!=M?this:NaN;if(null!=M){if("string"==typeof M){if(null===(M=ap(SM,M)))return this}else Math.abs(M)<16&&!b&&(M*=60);return!this._isUTC&&z&&(O=dp(this)),this._offset=M,this._isUTC=!0,null!=O&&this.add(O,"m"),o!==M&&(!z||this._changeInProgress?vp(this,gp(M-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:dp(this)}function rp(M,z){return null!=M?("string"!=typeof M&&(M=-M),this.utcOffset(M,z),this):-this.utcOffset()}function sp(M){return this.utcOffset(0,M)}function up(M){return this._isUTC&&(this.utcOffset(0,M),this._isUTC=!1,M&&this.subtract(dp(this),"m")),this}function Rp(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var M=ap(yM,this._i);null!=M?this.utcOffset(M):this.utcOffset(0,!0)}return this}function fp(M){return!!this.isValid()&&(M=M?Kb(M).utcOffset():0,(this.utcOffset()-M)%60==0)}function lp(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Lp(){if(!e(this._isDSTShifted))return this._isDSTShifted;var M,z={};return l(z,this),(z=jb(z))._a?(M=z._isUTC?d(z._a):Kb(z._a),this._isDSTShifted=this.isValid()&&ep(z._a,M.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Np(){return!!this.isValid()&&!this._isUTC}function Bp(){return!!this.isValid()&&this._isUTC}function Xp(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var hp=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,mp=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function gp(M,z){var b,p,O,o=M,c=null;return Ap(M)?o={ms:M._milliseconds,d:M._days,M:M._months}:n(M)||!isNaN(+M)?(o={},z?o[z]=+M:o.milliseconds=+M):(c=hp.exec(M))?(b="-"===c[1]?-1:1,o={y:0,d:nM(c[jM])*b,h:nM(c[GM])*b,m:nM(c[VM])*b,s:nM(c[KM])*b,ms:nM(qp(1e3*c[QM]))*b}):(c=mp.exec(M))?(b="-"===c[1]?-1:1,o={y:Tp(c[2],b),M:Tp(c[3],b),w:Tp(c[4],b),d:Tp(c[5],b),h:Tp(c[6],b),m:Tp(c[7],b),s:Tp(c[8],b)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(O=yp(Kb(o.from),Kb(o.to)),(o={}).ms=O.milliseconds,o.M=O.months),p=new cp(o),Ap(M)&&A(M,"_locale")&&(p._locale=M._locale),Ap(M)&&A(M,"_isValid")&&(p._isValid=M._isValid),p}function Tp(M,z){var b=M&&parseFloat(M.replace(",","."));return(isNaN(b)?0:b)*z}function _p(M,z){var b={};return b.months=z.month()-M.month()+12*(z.year()-M.year()),M.clone().add(b.months,"M").isAfter(z)&&--b.months,b.milliseconds=+z-+M.clone().add(b.months,"M"),b}function yp(M,z){var b;return M.isValid()&&z.isValid()?(z=tp(z,M),M.isBefore(z)?b=_p(M,z):((b=_p(z,M)).milliseconds=-b.milliseconds,b.months=-b.months),b):{milliseconds:0,months:0}}function Sp(M,z){return function(b,p){var O;return null===p||isNaN(+p)||(g(z,"moment()."+z+"(period, number) is deprecated. Please use moment()."+z+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),O=b,b=p,p=O),vp(this,gp(b,p),M),this}}function vp(M,z,b,O){var o=z._milliseconds,c=qp(z._days),A=qp(z._months);M.isValid()&&(O=null==O||O,A&&nz(M,aM(M,"Month")+A*b),c&&tM(M,"Date",aM(M,"Date")+c*b),o&&M._d.setTime(M._d.valueOf()+o*b),O&&p.updateOffset(M,c||A))}gp.fn=cp.prototype,gp.invalid=op;var kp=Sp(1,"add"),Ep=Sp(-1,"subtract");function wp(M){return"string"==typeof M||M instanceof String}function Cp(M){return N(M)||W(M)||wp(M)||n(M)||Pp(M)||Dp(M)||null==M}function Dp(M){var z,b,p=c(M)&&!q(M),O=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],e=o.length;for(z=0;z<e;z+=1)b=o[z],O=O||A(M,b);return p&&O}function Pp(M){var z=o(M),b=!1;return z&&(b=0===M.filter((function(z){return!n(z)&&wp(M)})).length),z&&b}function xp(M){var z,b,p=c(M)&&!q(M),O=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(z=0;z<o.length;z+=1)b=o[z],O=O||A(M,b);return p&&O}function Ip(M,z){var b=M.diff(z,"days",!0);return b<-6?"sameElse":b<-1?"lastWeek":b<0?"lastDay":b<1?"sameDay":b<2?"nextDay":b<7?"nextWeek":"sameElse"}function Fp(M,z){1===arguments.length&&(arguments[0]?Cp(arguments[0])?(M=arguments[0],z=void 0):xp(arguments[0])&&(z=arguments[0],M=void 0):(M=void 0,z=void 0));var b=M||Kb(),O=tp(b,this).startOf("day"),o=p.calendarFormat(this,O)||"sameElse",c=z&&(T(z[o])?z[o].call(this,b):z[o]);return this.format(c||this.localeData().calendar(o,this,Kb(b)))}function Hp(){return new L(this)}function Yp(M,z){var b=N(M)?M:Kb(M);return!(!this.isValid()||!b.isValid())&&("millisecond"===(z=pM(z)||"millisecond")?this.valueOf()>b.valueOf():b.valueOf()<this.clone().startOf(z).valueOf())}function Up(M,z){var b=N(M)?M:Kb(M);return!(!this.isValid()||!b.isValid())&&("millisecond"===(z=pM(z)||"millisecond")?this.valueOf()<b.valueOf():this.clone().endOf(z).valueOf()<b.valueOf())}function jp(M,z,b,p){var O=N(M)?M:Kb(M),o=N(z)?z:Kb(z);return!!(this.isValid()&&O.isValid()&&o.isValid())&&("("===(p=p||"()")[0]?this.isAfter(O,b):!this.isBefore(O,b))&&(")"===p[1]?this.isBefore(o,b):!this.isAfter(o,b))}function Gp(M,z){var b,p=N(M)?M:Kb(M);return!(!this.isValid()||!p.isValid())&&("millisecond"===(z=pM(z)||"millisecond")?this.valueOf()===p.valueOf():(b=p.valueOf(),this.clone().startOf(z).valueOf()<=b&&b<=this.clone().endOf(z).valueOf()))}function Vp(M,z){return this.isSame(M,z)||this.isAfter(M,z)}function Kp(M,z){return this.isSame(M,z)||this.isBefore(M,z)}function Qp(M,z,b){var p,O,o;if(!this.isValid())return NaN;if(!(p=tp(M,this)).isValid())return NaN;switch(O=6e4*(p.utcOffset()-this.utcOffset()),z=pM(z)){case"year":o=Jp(this,p)/12;break;case"month":o=Jp(this,p);break;case"quarter":o=Jp(this,p)/3;break;case"second":o=(this-p)/1e3;break;case"minute":o=(this-p)/6e4;break;case"hour":o=(this-p)/36e5;break;case"day":o=(this-p-O)/864e5;break;case"week":o=(this-p-O)/6048e5;break;default:o=this-p}return b?o:eM(o)}function Jp(M,z){if(M.date()<z.date())return-Jp(z,M);var b=12*(z.year()-M.year())+(z.month()-M.month()),p=M.clone().add(b,"months");return-(b+(z-p<0?(z-p)/(p-M.clone().add(b-1,"months")):(z-p)/(M.clone().add(b+1,"months")-p)))||0}function Zp(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $p(M){if(!this.isValid())return null;var z=!0!==M,b=z?this.clone().utc():this;return b.year()<0||b.year()>9999?H(b,z?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?z?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(b,"Z")):H(b,z?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function MO(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var M,z,b,p,O="moment",o="";return this.isLocal()||(O=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),M="["+O+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",b="-MM-DD[T]HH:mm:ss.SSS",p=o+'[")]',this.format(M+z+b+p)}function zO(M){M||(M=this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var z=H(this,M);return this.localeData().postformat(z)}function bO(M,z){return this.isValid()&&(N(M)&&M.isValid()||Kb(M).isValid())?gp({to:this,from:M}).locale(this.locale()).humanize(!z):this.localeData().invalidDate()}function pO(M){return this.from(Kb(),M)}function OO(M,z){return this.isValid()&&(N(M)&&M.isValid()||Kb(M).isValid())?gp({from:this,to:M}).locale(this.locale()).humanize(!z):this.localeData().invalidDate()}function oO(M){return this.to(Kb(),M)}function cO(M){var z;return void 0===M?this._locale._abbr:(null!=(z=ub(M))&&(this._locale=z),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var AO=X("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(M){return void 0===M?this.localeData():this.locale(M)}));function qO(){return this._locale}var eO=1e3,nO=60*eO,WO=60*nO,aO=3506328*WO;function tO(M,z){return(M%z+z)%z}function dO(M,z,b){return M<100&&M>=0?new Date(M+400,z,b)-aO:new Date(M,z,b).valueOf()}function iO(M,z,b){return M<100&&M>=0?Date.UTC(M+400,z,b)-aO:Date.UTC(M,z,b)}function rO(M){var z,b;if(void 0===(M=pM(M))||"millisecond"===M||!this.isValid())return this;switch(b=this._isUTC?iO:dO,M){case"year":z=b(this.year(),0,1);break;case"quarter":z=b(this.year(),this.month()-this.month()%3,1);break;case"month":z=b(this.year(),this.month(),1);break;case"week":z=b(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":z=b(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":z=b(this.year(),this.month(),this.date());break;case"hour":z=this._d.valueOf(),z-=tO(z+(this._isUTC?0:this.utcOffset()*nO),WO);break;case"minute":z=this._d.valueOf(),z-=tO(z,nO);break;case"second":z=this._d.valueOf(),z-=tO(z,eO)}return this._d.setTime(z),p.updateOffset(this,!0),this}function sO(M){var z,b;if(void 0===(M=pM(M))||"millisecond"===M||!this.isValid())return this;switch(b=this._isUTC?iO:dO,M){case"year":z=b(this.year()+1,0,1)-1;break;case"quarter":z=b(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":z=b(this.year(),this.month()+1,1)-1;break;case"week":z=b(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":z=b(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":z=b(this.year(),this.month(),this.date()+1)-1;break;case"hour":z=this._d.valueOf(),z+=WO-tO(z+(this._isUTC?0:this.utcOffset()*nO),WO)-1;break;case"minute":z=this._d.valueOf(),z+=nO-tO(z,nO)-1;break;case"second":z=this._d.valueOf(),z+=eO-tO(z,eO)-1}return this._d.setTime(z),p.updateOffset(this,!0),this}function uO(){return this._d.valueOf()-6e4*(this._offset||0)}function RO(){return Math.floor(this.valueOf()/1e3)}function fO(){return new Date(this.valueOf())}function lO(){var M=this;return[M.year(),M.month(),M.date(),M.hour(),M.minute(),M.second(),M.millisecond()]}function LO(){var M=this;return{years:M.year(),months:M.month(),date:M.date(),hours:M.hours(),minutes:M.minutes(),seconds:M.seconds(),milliseconds:M.milliseconds()}}function NO(){return this.isValid()?this.toISOString():null}function BO(){return s(this)}function XO(){return t({},r(this))}function hO(){return r(this).overflow}function mO(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function gO(M,z){var b,O,o,c=this._eras||ub("en")._eras;for(b=0,O=c.length;b<O;++b)switch("string"==typeof c[b].since&&(o=p(c[b].since).startOf("day"),c[b].since=o.valueOf()),typeof c[b].until){case"undefined":c[b].until=1/0;break;case"string":o=p(c[b].until).startOf("day").valueOf(),c[b].until=o.valueOf()}return c}function TO(M,z,b){var p,O,o,c,A,q=this.eras();for(M=M.toUpperCase(),p=0,O=q.length;p<O;++p)if(o=q[p].name.toUpperCase(),c=q[p].abbr.toUpperCase(),A=q[p].narrow.toUpperCase(),b)switch(z){case"N":case"NN":case"NNN":if(c===M)return q[p];break;case"NNNN":if(o===M)return q[p];break;case"NNNNN":if(A===M)return q[p]}else if([o,c,A].indexOf(M)>=0)return q[p]}function _O(M,z){var b=M.since<=M.until?1:-1;return void 0===z?p(M.since).year():p(M.since).year()+(z-M.offset)*b}function yO(){var M,z,b,p=this.localeData().eras();for(M=0,z=p.length;M<z;++M){if(b=this.clone().startOf("day").valueOf(),p[M].since<=b&&b<=p[M].until)return p[M].name;if(p[M].until<=b&&b<=p[M].since)return p[M].name}return""}function SO(){var M,z,b,p=this.localeData().eras();for(M=0,z=p.length;M<z;++M){if(b=this.clone().startOf("day").valueOf(),p[M].since<=b&&b<=p[M].until)return p[M].narrow;if(p[M].until<=b&&b<=p[M].since)return p[M].narrow}return""}function vO(){var M,z,b,p=this.localeData().eras();for(M=0,z=p.length;M<z;++M){if(b=this.clone().startOf("day").valueOf(),p[M].since<=b&&b<=p[M].until)return p[M].abbr;if(p[M].until<=b&&b<=p[M].since)return p[M].abbr}return""}function kO(){var M,z,b,O,o=this.localeData().eras();for(M=0,z=o.length;M<z;++M)if(b=o[M].since<=o[M].until?1:-1,O=this.clone().startOf("day").valueOf(),o[M].since<=O&&O<=o[M].until||o[M].until<=O&&O<=o[M].since)return(this.year()-p(o[M].since).year())*b+o[M].offset;return this.year()}function EO(M){return A(this,"_erasNameRegex")||FO.call(this),M?this._erasNameRegex:this._erasRegex}function wO(M){return A(this,"_erasAbbrRegex")||FO.call(this),M?this._erasAbbrRegex:this._erasRegex}function CO(M){return A(this,"_erasNarrowRegex")||FO.call(this),M?this._erasNarrowRegex:this._erasRegex}function DO(M,z){return z.erasAbbrRegex(M)}function PO(M,z){return z.erasNameRegex(M)}function xO(M,z){return z.erasNarrowRegex(M)}function IO(M,z){return z._eraYearOrdinalRegex||TM}function FO(){var M,z,b=[],p=[],O=[],o=[],c=this.eras();for(M=0,z=c.length;M<z;++M)p.push(DM(c[M].name)),b.push(DM(c[M].abbr)),O.push(DM(c[M].narrow)),o.push(DM(c[M].name)),o.push(DM(c[M].abbr)),o.push(DM(c[M].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+p.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+b.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+O.join("|")+")","i")}function HO(M,z){x(0,[M,M.length],0,z)}function YO(M){return QO.call(this,M,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function UO(M){return QO.call(this,M,this.isoWeek(),this.isoWeekday(),1,4)}function jO(){return Bz(this.year(),1,4)}function GO(){return Bz(this.isoWeekYear(),1,4)}function VO(){var M=this.localeData()._week;return Bz(this.year(),M.dow,M.doy)}function KO(){var M=this.localeData()._week;return Bz(this.weekYear(),M.dow,M.doy)}function QO(M,z,b,p,O){var o;return null==M?Nz(this,p,O).year:(z>(o=Bz(M,p,O))&&(z=o),JO.call(this,M,z,b,p,O))}function JO(M,z,b,p,O){var o=Lz(M,z,b,p,O),c=fz(o.year,0,o.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}function ZO(M){return null==M?Math.ceil((this.month()+1)/3):this.month(3*(M-1)+this.month()%3)}x("N",0,0,"eraAbbr"),x("NN",0,0,"eraAbbr"),x("NNN",0,0,"eraAbbr"),x("NNNN",0,0,"eraName"),x("NNNNN",0,0,"eraNarrow"),x("y",["y",1],"yo","eraYear"),x("y",["yy",2],0,"eraYear"),x("y",["yyy",3],0,"eraYear"),x("y",["yyyy",4],0,"eraYear"),EM("N",DO),EM("NN",DO),EM("NNN",DO),EM("NNNN",PO),EM("NNNNN",xO),xM(["N","NN","NNN","NNNN","NNNNN"],(function(M,z,b,p){var O=b._locale.erasParse(M,p,b._strict);O?r(b).era=O:r(b).invalidEra=M})),EM("y",TM),EM("yy",TM),EM("yyy",TM),EM("yyyy",TM),EM("yo",IO),xM(["y","yy","yyy","yyyy"],YM),xM(["yo"],(function(M,z,b,p){var O;b._locale._eraYearOrdinalRegex&&(O=M.match(b._locale._eraYearOrdinalRegex)),b._locale.eraYearOrdinalParse?z[YM]=b._locale.eraYearOrdinalParse(M,O):z[YM]=parseInt(M,10)})),x(0,["gg",2],0,(function(){return this.weekYear()%100})),x(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),HO("gggg","weekYear"),HO("ggggg","weekYear"),HO("GGGG","isoWeekYear"),HO("GGGGG","isoWeekYear"),bM("weekYear","gg"),bM("isoWeekYear","GG"),cM("weekYear",1),cM("isoWeekYear",1),EM("G",_M),EM("g",_M),EM("GG",NM,RM),EM("gg",NM,RM),EM("GGGG",mM,lM),EM("gggg",mM,lM),EM("GGGGG",gM,LM),EM("ggggg",gM,LM),IM(["gggg","ggggg","GGGG","GGGGG"],(function(M,z,b,p){z[p.substr(0,2)]=nM(M)})),IM(["gg","GG"],(function(M,z,b,O){z[O]=p.parseTwoDigitYear(M)})),x("Q",0,"Qo","quarter"),bM("quarter","Q"),cM("quarter",7),EM("Q",uM),xM("Q",(function(M,z){z[UM]=3*(nM(M)-1)})),x("D",["DD",2],"Do","date"),bM("date","D"),cM("date",9),EM("D",NM),EM("DD",NM,RM),EM("Do",(function(M,z){return M?z._dayOfMonthOrdinalParse||z._ordinalParse:z._dayOfMonthOrdinalParseLenient})),xM(["D","DD"],jM),xM("Do",(function(M,z){z[jM]=nM(M.match(NM)[0])}));var $O=WM("Date",!0);function Mo(M){var z=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==M?z:this.add(M-z,"d")}x("DDD",["DDDD",3],"DDDo","dayOfYear"),bM("dayOfYear","DDD"),cM("dayOfYear",4),EM("DDD",hM),EM("DDDD",fM),xM(["DDD","DDDD"],(function(M,z,b){b._dayOfYear=nM(M)})),x("m",["mm",2],0,"minute"),bM("minute","m"),cM("minute",14),EM("m",NM),EM("mm",NM,RM),xM(["m","mm"],VM);var zo=WM("Minutes",!1);x("s",["ss",2],0,"second"),bM("second","s"),cM("second",15),EM("s",NM),EM("ss",NM,RM),xM(["s","ss"],KM);var bo,po,Oo=WM("Seconds",!1);for(x("S",0,0,(function(){return~~(this.millisecond()/100)})),x(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),x(0,["SSS",3],0,"millisecond"),x(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),x(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),x(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),x(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),x(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),x(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),bM("millisecond","ms"),cM("millisecond",16),EM("S",hM,uM),EM("SS",hM,RM),EM("SSS",hM,fM),bo="SSSS";bo.length<=9;bo+="S")EM(bo,TM);function oo(M,z){z[QM]=nM(1e3*("0."+M))}for(bo="S";bo.length<=9;bo+="S")xM(bo,oo);function co(){return this._isUTC?"UTC":""}function Ao(){return this._isUTC?"Coordinated Universal Time":""}po=WM("Milliseconds",!1),x("z",0,0,"zoneAbbr"),x("zz",0,0,"zoneName");var qo=L.prototype;function eo(M){return Kb(1e3*M)}function no(){return Kb.apply(null,arguments).parseZone()}function Wo(M){return M}qo.add=kp,qo.calendar=Fp,qo.clone=Hp,qo.diff=Qp,qo.endOf=sO,qo.format=zO,qo.from=bO,qo.fromNow=pO,qo.to=OO,qo.toNow=oO,qo.get=dM,qo.invalidAt=hO,qo.isAfter=Yp,qo.isBefore=Up,qo.isBetween=jp,qo.isSame=Gp,qo.isSameOrAfter=Vp,qo.isSameOrBefore=Kp,qo.isValid=BO,qo.lang=AO,qo.locale=cO,qo.localeData=qO,qo.max=Jb,qo.min=Qb,qo.parsingFlags=XO,qo.set=rM,qo.startOf=rO,qo.subtract=Ep,qo.toArray=lO,qo.toObject=LO,qo.toDate=fO,qo.toISOString=$p,qo.inspect=MO,"undefined"!=typeof Symbol&&null!=Symbol.for&&(qo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),qo.toJSON=NO,qo.toString=Zp,qo.unix=RO,qo.valueOf=uO,qo.creationData=mO,qo.eraName=yO,qo.eraNarrow=SO,qo.eraAbbr=vO,qo.eraYear=kO,qo.year=sz,qo.isLeapYear=uz,qo.weekYear=YO,qo.isoWeekYear=UO,qo.quarter=qo.quarters=ZO,qo.month=Wz,qo.daysInMonth=az,qo.week=qo.weeks=Tz,qo.isoWeek=qo.isoWeeks=_z,qo.weeksInYear=VO,qo.weeksInWeekYear=KO,qo.isoWeeksInYear=jO,qo.isoWeeksInISOWeekYear=GO,qo.date=$O,qo.day=qo.days=Uz,qo.weekday=jz,qo.isoWeekday=Gz,qo.dayOfYear=Mo,qo.hour=qo.hours=Ob,qo.minute=qo.minutes=zo,qo.second=qo.seconds=Oo,qo.millisecond=qo.milliseconds=po,qo.utcOffset=ip,qo.utc=sp,qo.local=up,qo.parseZone=Rp,qo.hasAlignedHourOffset=fp,qo.isDST=lp,qo.isLocal=Np,qo.isUtcOffset=Bp,qo.isUtc=Xp,qo.isUTC=Xp,qo.zoneAbbr=co,qo.zoneName=Ao,qo.dates=X("dates accessor is deprecated. Use date instead.",$O),qo.months=X("months accessor is deprecated. Use month instead",Wz),qo.years=X("years accessor is deprecated. Use year instead",sz),qo.zone=X("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",rp),qo.isDSTShifted=X("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Lp);var ao=S.prototype;function to(M,z,b,p){var O=ub(),o=d().set(p,z);return O[b](o,M)}function io(M,z,b){if(n(M)&&(z=M,M=void 0),M=M||"",null!=z)return to(M,z,b,"month");var p,O=[];for(p=0;p<12;p++)O[p]=to(M,p,b,"month");return O}function ro(M,z,b,p){"boolean"==typeof M?(n(z)&&(b=z,z=void 0),z=z||""):(b=z=M,M=!1,n(z)&&(b=z,z=void 0),z=z||"");var O,o=ub(),c=M?o._week.dow:0,A=[];if(null!=b)return to(z,(b+c)%7,p,"day");for(O=0;O<7;O++)A[O]=to(z,(O+c)%7,p,"day");return A}function so(M,z){return io(M,z,"months")}function uo(M,z){return io(M,z,"monthsShort")}function Ro(M,z,b){return ro(M,z,b,"weekdays")}function fo(M,z,b){return ro(M,z,b,"weekdaysShort")}function lo(M,z,b){return ro(M,z,b,"weekdaysMin")}ao.calendar=k,ao.longDateFormat=j,ao.invalidDate=V,ao.ordinal=J,ao.preparse=Wo,ao.postformat=Wo,ao.relativeTime=$,ao.pastFuture=MM,ao.set=_,ao.eras=gO,ao.erasParse=TO,ao.erasConvertYear=_O,ao.erasAbbrRegex=wO,ao.erasNameRegex=EO,ao.erasNarrowRegex=CO,ao.months=cz,ao.monthsShort=Az,ao.monthsParse=ez,ao.monthsRegex=dz,ao.monthsShortRegex=tz,ao.week=Xz,ao.firstDayOfYear=gz,ao.firstDayOfWeek=mz,ao.weekdays=xz,ao.weekdaysMin=Fz,ao.weekdaysShort=Iz,ao.weekdaysParse=Yz,ao.weekdaysRegex=Vz,ao.weekdaysShortRegex=Kz,ao.weekdaysMinRegex=Qz,ao.isPM=bb,ao.meridiem=ob,ib("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(M){var z=M%10;return M+(1===nM(M%100/10)?"th":1===z?"st":2===z?"nd":3===z?"rd":"th")}}),p.lang=X("moment.lang is deprecated. Use moment.locale instead.",ib),p.langData=X("moment.langData is deprecated. Use moment.localeData instead.",ub);var Lo=Math.abs;function No(){var M=this._data;return this._milliseconds=Lo(this._milliseconds),this._days=Lo(this._days),this._months=Lo(this._months),M.milliseconds=Lo(M.milliseconds),M.seconds=Lo(M.seconds),M.minutes=Lo(M.minutes),M.hours=Lo(M.hours),M.months=Lo(M.months),M.years=Lo(M.years),this}function Bo(M,z,b,p){var O=gp(z,b);return M._milliseconds+=p*O._milliseconds,M._days+=p*O._days,M._months+=p*O._months,M._bubble()}function Xo(M,z){return Bo(this,M,z,1)}function ho(M,z){return Bo(this,M,z,-1)}function mo(M){return M<0?Math.floor(M):Math.ceil(M)}function go(){var M,z,b,p,O,o=this._milliseconds,c=this._days,A=this._months,q=this._data;return o>=0&&c>=0&&A>=0||o<=0&&c<=0&&A<=0||(o+=864e5*mo(_o(A)+c),c=0,A=0),q.milliseconds=o%1e3,M=eM(o/1e3),q.seconds=M%60,z=eM(M/60),q.minutes=z%60,b=eM(z/60),q.hours=b%24,c+=eM(b/24),A+=O=eM(To(c)),c-=mo(_o(O)),p=eM(A/12),A%=12,q.days=c,q.months=A,q.years=p,this}function To(M){return 4800*M/146097}function _o(M){return 146097*M/4800}function yo(M){if(!this.isValid())return NaN;var z,b,p=this._milliseconds;if("month"===(M=pM(M))||"quarter"===M||"year"===M)switch(z=this._days+p/864e5,b=this._months+To(z),M){case"month":return b;case"quarter":return b/3;case"year":return b/12}else switch(z=this._days+Math.round(_o(this._months)),M){case"week":return z/7+p/6048e5;case"day":return z+p/864e5;case"hour":return 24*z+p/36e5;case"minute":return 1440*z+p/6e4;case"second":return 86400*z+p/1e3;case"millisecond":return Math.floor(864e5*z)+p;default:throw new Error("Unknown unit "+M)}}function So(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*nM(this._months/12):NaN}function vo(M){return function(){return this.as(M)}}var ko=vo("ms"),Eo=vo("s"),wo=vo("m"),Co=vo("h"),Do=vo("d"),Po=vo("w"),xo=vo("M"),Io=vo("Q"),Fo=vo("y");function Ho(){return gp(this)}function Yo(M){return M=pM(M),this.isValid()?this[M+"s"]():NaN}function Uo(M){return function(){return this.isValid()?this._data[M]:NaN}}var jo=Uo("milliseconds"),Go=Uo("seconds"),Vo=Uo("minutes"),Ko=Uo("hours"),Qo=Uo("days"),Jo=Uo("months"),Zo=Uo("years");function $o(){return eM(this.days()/7)}var Mc=Math.round,zc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function bc(M,z,b,p,O){return O.relativeTime(z||1,!!b,M,p)}function pc(M,z,b,p){var O=gp(M).abs(),o=Mc(O.as("s")),c=Mc(O.as("m")),A=Mc(O.as("h")),q=Mc(O.as("d")),e=Mc(O.as("M")),n=Mc(O.as("w")),W=Mc(O.as("y")),a=o<=b.ss&&["s",o]||o<b.s&&["ss",o]||c<=1&&["m"]||c<b.m&&["mm",c]||A<=1&&["h"]||A<b.h&&["hh",A]||q<=1&&["d"]||q<b.d&&["dd",q];return null!=b.w&&(a=a||n<=1&&["w"]||n<b.w&&["ww",n]),(a=a||e<=1&&["M"]||e<b.M&&["MM",e]||W<=1&&["y"]||["yy",W])[2]=z,a[3]=+M>0,a[4]=p,bc.apply(null,a)}function Oc(M){return void 0===M?Mc:"function"==typeof M&&(Mc=M,!0)}function oc(M,z){return void 0!==zc[M]&&(void 0===z?zc[M]:(zc[M]=z,"s"===M&&(zc.ss=z-1),!0))}function cc(M,z){if(!this.isValid())return this.localeData().invalidDate();var b,p,O=!1,o=zc;return"object"==typeof M&&(z=M,M=!1),"boolean"==typeof M&&(O=M),"object"==typeof z&&(o=Object.assign({},zc,z),null!=z.s&&null==z.ss&&(o.ss=z.s-1)),p=pc(this,!O,o,b=this.localeData()),O&&(p=b.pastFuture(+this,p)),b.postformat(p)}var Ac=Math.abs;function qc(M){return(M>0)-(M<0)||+M}function ec(){if(!this.isValid())return this.localeData().invalidDate();var M,z,b,p,O,o,c,A,q=Ac(this._milliseconds)/1e3,e=Ac(this._days),n=Ac(this._months),W=this.asSeconds();return W?(M=eM(q/60),z=eM(M/60),q%=60,M%=60,b=eM(n/12),n%=12,p=q?q.toFixed(3).replace(/\.?0+$/,""):"",O=W<0?"-":"",o=qc(this._months)!==qc(W)?"-":"",c=qc(this._days)!==qc(W)?"-":"",A=qc(this._milliseconds)!==qc(W)?"-":"",O+"P"+(b?o+b+"Y":"")+(n?o+n+"M":"")+(e?c+e+"D":"")+(z||M||q?"T":"")+(z?A+z+"H":"")+(M?A+M+"M":"")+(q?A+p+"S":"")):"P0D"}var nc=cp.prototype;return nc.isValid=Op,nc.abs=No,nc.add=Xo,nc.subtract=ho,nc.as=yo,nc.asMilliseconds=ko,nc.asSeconds=Eo,nc.asMinutes=wo,nc.asHours=Co,nc.asDays=Do,nc.asWeeks=Po,nc.asMonths=xo,nc.asQuarters=Io,nc.asYears=Fo,nc.valueOf=So,nc._bubble=go,nc.clone=Ho,nc.get=Yo,nc.milliseconds=jo,nc.seconds=Go,nc.minutes=Vo,nc.hours=Ko,nc.days=Qo,nc.weeks=$o,nc.months=Jo,nc.years=Zo,nc.humanize=cc,nc.toISOString=ec,nc.toString=ec,nc.toJSON=ec,nc.locale=cO,nc.localeData=qO,nc.toIsoString=X("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ec),nc.lang=AO,x("X",0,0,"unix"),x("x",0,0,"valueOf"),EM("x",_M),EM("X",vM),xM("X",(function(M,z,b){b._d=new Date(1e3*parseFloat(M))})),xM("x",(function(M,z,b){b._d=new Date(nM(M))})),
1
+ !function(M,z){"object"==typeof exports&&"undefined"!=typeof module?z(exports,require("prop-types"),require("react"),require("i18next"),require("classnames"),require("react-autosuggest"),require("lodash/debounce"),require("lodash/flatten"),require("lodash/take"),require("lodash/isString"),require("lodash/orderBy"),require("lodash/uniqWith"),require("lodash/isEqual"),require("lodash/memoize"),require("lodash/escapeRegExp"),require("lodash/cloneDeep"),require("lodash/get"),require("@digitransit-component/digitransit-component-suggestion-item"),require("@digitransit-component/digitransit-component-icon"),require("lodash/isEmpty"),require("react-modal"),require("@digitransit-component/digitransit-component-dialog-modal")):"function"==typeof define&&define.amd?define(["exports","prop-types","react","i18next","classnames","react-autosuggest","lodash/debounce","lodash/flatten","lodash/take","lodash/isString","lodash/orderBy","lodash/uniqWith","lodash/isEqual","lodash/memoize","lodash/escapeRegExp","lodash/cloneDeep","lodash/get","@digitransit-component/digitransit-component-suggestion-item","@digitransit-component/digitransit-component-icon","lodash/isEmpty","react-modal","@digitransit-component/digitransit-component-dialog-modal"],z):z((M="undefined"!=typeof globalThis?globalThis:M||self).DTAutosuggest={},M.PropTypes,M.React,M.i18next,M.cx,M.Autosuggest,M.debounce,M.flatten,M.take,M.isString,M.orderBy,M.uniqWith,M.isEqual,M.memoize,M.escapeRegExp,M.cloneDeep,M.get,M.SuggestionItem,M.Icon,M.isEmpty,M.ReactModal,M.DialogModal)}(this,(function(M,z,b,p,O,o,c,A,q,e,n,W,a,t,d,i,r,s,u,R,f,l){"use strict";function L(M){return M&&"object"==typeof M&&"default"in M?M:{default:M}}var N=L(z),B=L(b),X=L(p),h=L(O),m=L(o),g=L(c),T=L(A),_=L(q),y=L(e),S=L(n),v=L(W),k=L(a),E=L(t),w=L(d),C=L(i),D=L(r),P=L(s),x=L(u),I=L(R),F=L(f),H=L(l);function Y(){return Y=Object.assign?Object.assign.bind():function(M){for(var z=1;z<arguments.length;z++){var b=arguments[z];for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(M[p]=b[p])}return M},Y.apply(this,arguments)}function U(M,z){return M&&z&&M===z}function j(M,z){const b=M.properties,p=z.properties;if("FutureRoute"===M.type&&"FutureRoute"===z.type){const M=b.origin,z=b.destination,O=p.origin,o=p.destination;return`${M.name}//${M.locality}//${z.name}//${z.locality}`===`${O.name}//${O.locality}//${o.name}//${o.locality}`}if("FutureRoute"===M.type||"FutureRoute"===z.type)return!1;if(("bikeRentalStation"===b.layer||"favouriteBikeRentalStation"===b.layer)&&("bikeRentalStation"===p.layer||"favouriteBikeRentalStation"===p.layer)||"bikestation"===b.layer&&"bikestation"===p.layer)return b.labelId===p.labelId;if(b.gtfsId&&p.gtfsId)return b.gtfsId===p.gtfsId;if(b.gtfsId&&p.gid&&p.gid.includes(b.gtfsId))return!0;if(p.gtfsId&&b.gid&&b.gid.includes(p.gtfsId))return!0;if(("stop"===b.layer||"station"===b.layer)&&("stop"===p.layer||"station"===p.layer)&&b.gid&&p.gid)return b.gid===p.gid;const O=M&&M.geometry?M.geometry.coordinates:void 0,o=z&&z.geometry?z.geometry.coordinates:void 0;return!!(O&&o&&Math.abs(O[0]-o[0])<1e-6&&Math.abs(O[1]-o[1])<1e-6&&(U(b.name,p.name)||U(b.label,p.label)||U(b.address,p.address)||U(b.address,p.label)||U(b.label,p.address)))}const G=M=>y.default(M)?M.toLowerCase():"",V={Address:"address",Back:"back",CurrentPosition:"currentPosition",FavouriteStop:"favouriteStop",FavouriteStation:"favouriteStation",FavouritePlace:"favouritePlace",FavouriteRoute:"favouriteRoute",FutureRoute:"futureRoute",Station:"station",SelectFromMap:"selectFromMap",SelectFromOwnLocations:"ownLocations",Stop:"stop",Street:"street",Venue:"venue",BikeRentalStation:"bikestation",CarPark:"carpark",BikePark:"bikepark"},K=({layer:M,type:z})=>"stop"===M||"favouriteStop"===M||"stop"===z||"favouriteStop"===z,Q=(M,z)=>{switch(M){case V.CurrentPosition:return 1;case V.Back:return.9;case V.SelectFromMap:return.8;case V.SelectFromOwnLocations:return.79;case V.FavouriteStation:case V.FavouritePlace:case V.FavouriteStop:case V.FavouriteRoute:case V.FavouriteBikeRentalStation:return.45;case V.FutureRoute:return.44;case V.Station:return y.default(z)&&0===z.indexOf("gtfs")?.43:.42;default:return.41;case V.CarPark:case V.BikePark:case V.BikeRentalStation:return.38;case V.Stop:return.36}},J=(M,z,b="")=>{if(!Array.isArray(z))return z;const p=z=>y.default(z)&&M&&M.test(z),O=G(b),o=p(O),c=S.default(z,[M=>o&&p(G(M.properties.shortName))&&0===G(M.properties.shortName).indexOf(O)?1:0,M=>{const{confidence:z,layer:b,source:p}=M.properties;if(0===O.length)return Q(b,p);if(!z)return Q(b,p)+((M,z)=>y.default(M)&&0!==M.length?["name","label","address","shortName"].map((M=>z[M])).filter((M=>y.default(M)&&M.length>0)).map((z=>{const b=G(z);return 0===b.indexOf(M)?.5+M.length/b.length:.5*M.length/(M.length+1)})).reduce(((M,z)=>z>M?z:M),0):0)(O,M.properties);switch(b){case V.Station:return z+(0===p.indexOf("gtfs")?.02:.01);case V.Stop:case V.CarPark:case V.BikePark:return z-.05;case V.BikeRentalStation:return z-.04;default:return z}}],["desc","desc"]);return v.default(c,j)},Z=(M,z)=>null!=z&&-1!==M.lastIndexOf(z)?M.substring(0,M.lastIndexOf(z)-1):M,$=M=>M.localadmin||M.locality||M.address&&M.address.lastIndexOf(",")<M.address.length-2&&M.address.substring(M.address.lastIndexOf(",")+2)||"",MM=({id:M,code:z})=>z||(void 0!==M&&void 0!==M.indexOf&&-1!==M.indexOf("#")?M.substring(M.indexOf("#")+1):void 0),zM=E.default(((M,z=!1)=>{switch(M.layer){case"currentPosition":return[M.labelId,M.address];case"selectFromMap":case"ownLocations":case"back":return[M.labelId];case"favouritePlace":return b=M.name,p=M.address,[b||p&&p.split(",")[0],"string"==typeof p?p.replace(new RegExp(`${w.default(b)}([ ,]|$)+`),""):""];case"favouriteBikeRentalStation":case"bikeRentalStation":return[M.name];case"favouriteRoute":case"route-BUS":case"route-TRAM":case"route-RAIL":case"route-SUBWAY":case"route-FERRY":case"route-FUNICULAR":case"route-AIRPLANE":return!z&&M.shortName?[M.gtfsId,M.mode.toLowerCase(),M.longName]:[M.shortName,M.longName,M.agency?M.agency.name:void 0];case"venue":case"address":case"street":return[M.name,M.label.replace(new RegExp(`${w.default(M.name)}(,)?( )?`),"")];case"favouriteStop":case"stop":return z?[M.name||M.label||M.address&&M.address.split(",")[0],$(M)]:[M.name,M.id,MM(M),$(M)];default:return[M.name||M.label||M.address&&M.address.split(",")[0],$(M)]}var b,p}),((M,z)=>{const b=C.default(M);return b.plain=z,b}));function bM(M){return v.default(M,((M,z)=>{const b=k.default(zM(M.properties),zM(z.properties))&&M.properties.layer===z.properties.layer;return(!b||"FutureRoute"!==M.type&&"FutureRoute"!==z.type)&&b}))}function pM(M,z,b){if("string"==typeof z&&z.length>0){const p=z.toLowerCase().trim(),O=p.includes(" ")||p.includes(",");return M.filter((M=>{let z=[];b.forEach((b=>{let p=D.default(M,b);O||"properties.label"!==b&&"address"!==b||!p||(p=p.split(","),p.length>2?p.splice(p.length-2,2):p.length>1&&p.splice(p.length-1,1),p=p.join(",")),p&&(z=O?z.concat(p.toLowerCase()):z.concat(p.toLowerCase().replace(/,/g," ").split(" ")))}));for(let M=0;M<z.length;M++)if(0===z[M].indexOf(p))return!0;return!1}))}return M}function OM(M,z){return M?Object.keys(M).map((b=>{const p=z||b,O=M[b];return"object"==typeof O?OM(O,p):`${encodeURIComponent(p)}=${encodeURIComponent(O)}`})).join("&"):""}const oM=require("axios").default;function cM(M,z){return oM.get(encodeURI(M)+(z?(-1===M.search(/\?/)?"?":"&")+OM(z):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then((M=>M.data))}const AM="https://api.digitransit.fi/geocoding/v1/search";function qM(M,z,b,p,O,o,c,A){const q=M?M.trim():null;if(null==q||q.length<1||c&&!c.test(q))return Promise.resolve([]);const e=o||AM;let n=Y({text:q},z,p,{lang:b});if(O&&(n=Y({},n,{sources:O})),A){n=Y({},n,{layers:A.toString()})}return cM(e,n).then((M=>M.features))}function eM(M,z){if(!M||M.length<1)return Promise.resolve([]);let b="";const p=M.map((M=>{const z="stop"===M.type?"stop":"station";let p=`gtfs${M.gtfsId.split(":")[0].toLowerCase()}:${z}:GTFS:${M.gtfsId}`;return M.code&&(p+=`#${M.code}`),b+=`${p},`,Y({},M,{gid:p})})).reduce((function(M,z){return M[z.gid]=z,M}),{});return cM(z,{ids:b.slice(0,-1)}).then((M=>M.features.map((M=>({type:"FavouriteStop",properties:{addendum:M.properties.addendum,gid:p[M.properties.gid].gid,code:p[M.properties.gid].code,gtfsId:p[M.properties.gid].gtfsId,lastUpdated:p[M.properties.gid].lastUpdated,favouriteId:p[M.properties.gid].favouriteId,address:M.properties.label,layer:K(M.properties)?"favouriteStop":"favouriteStation"},geometry:M.geometry})))))}function nM(M,z,b){let p=pM(M,z,["properties.name","properties.label","properties.address","properties.shortName","properties.longName"]);return b&&(p=p.filter((M=>!b.includes(M.properties.layer)))),Promise.resolve(_.default(p,10).map((M=>{const z=Y({},M,{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete z.properties.confidence,z})))}const WM=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE"],aM=["favouritePlace","venue","address","street"],tM=["carpark","bikepark"];const dM=g.default((function(M,z,b,p,O,o,{input:c},A,q,e){const{getPositions:n,getFavouriteLocations:W,getOldSearches:a,getFavouriteStops:t,parkingAreaSources:d,getLanguage:i,getStopAndStationsQuery:r,getFavouriteBikeRentalStationsQuery:s,getFavouriteBikeRentalStations:u,getFavouriteRoutesQuery:R,getFavouriteRoutes:f,getRoutesQuery:l,context:L,isPeliasLocationAware:N,minimalRegexp:B,lineRegexp:X,URL_PELIAS:h,URL_PELIAS_PLACE:m,feedIDs:g,geocodingSearchParams:y,geocodingSources:S,getFutureRoutes:v,cityBikeNetworks:k}=p,E=!M||0===M.length,w=!z||0===z.length,C=n(L),D=[],P={type:"all",term:c,results:[]},x=i(L),I=N&&null!=e&&e.lat&&null!=e&&e.lon?{"focus.point.lat":e.lat.toFixed(3),"focus.point.lon":e.lon.toFixed(3)}:{},F=b?b.split("-")[1]:void 0;if(M.includes("CurrentPosition")&&"geolocation-not-supported"!==C.status&&D.push(function(M,z){return"string"!=typeof M||0===M.length?Promise.resolve([{type:"CurrentLocation",address:z.address,lat:z.lat,lon:z.lon,properties:{labelId:"use-own-position",layer:"currentPosition",address:z.address,lat:z.lat,lon:z.lon},geometry:{type:"Point",coordinates:[z.lon,z.lat]}}]):Promise.resolve([])}(c,C)),(E||M.includes("MapPosition"))&&D.push(function(M){return"string"!=typeof M||0===M.length?Promise.resolve([{type:"SelectFromMap",address:"SelectFromMap",lat:null,lon:null,properties:{labelId:"select-from-map",layer:"selectFromMap",address:"SelectFromMap",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(c)),M.includes("FutureRoutes")){const M=v(L);D.push(_.default(M,3))}if(M.includes("SelectFromOwnLocations")&&function(M){const z=M.getFavouriteLocations(M.context);if((null==z?void 0:z.length)>0)return!0;const b=M.getFavouriteStops(M.context);return(null==b?void 0:b.length)>0}(p)&&D.push(function(M){return"string"!=typeof M||0===M.length?Promise.resolve([{type:"SelectFromOwnLocations",address:"SelectFromOwnLocations",lat:null,lon:null,properties:{labelId:"select-from-own-locations",layer:"ownLocations",address:"selectFromOwnLocations",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(c)),E||M.includes("Locations")){const M=y;if(z.includes("Favourite")){const M=W(L);D.push(function(M,z){return Promise.resolve(pM(M,z,["address","name"]).map((M=>({type:"FavouritePlace",properties:Y({},M,{label:M.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[M.lon,M.lat]}}))))}(M,c)),z.includes("Back")&&D.push(Promise.resolve([{type:"back",address:"back",lat:null,lon:null,properties:{labelId:"back",layer:"back",address:"back",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]))}if(w||z.includes("Datasource")){const z=["station","venue","address","street"],b=g.map((M=>`gtfs${M}`)),p=S.concat(b).join(",");D.push(qM(c,M,x,I,p,h,B,z))}if(w||z.includes("History")){const M=a(L,"endpoint"),z=["currentPosition","selectFromMap","futureRoute","ownLocations","bikeRentalStation","bikepark","carpark","stop","back"];z.push(...WM),D.push(nM(M,c,z))}}if(E||M.includes("ParkingAreas")){if(w||z.includes("Datasource")){const M=y;o&&10!==o&&(M.size=o);const z=["carpark","bikepark"],b=d?d.join(","):null;D.push(qM(c,M,x,I,b,h,B,z).then((M=>O?O(M,F):M)))}if(w||z.includes("History")){const M=a(L),z=["currentPosition","selectFromMap","futureRoute","ownLocations","favouritePlace","bikestation","bikeRentalStation","back","stop","station"];z.push(...WM),z.push(...aM),D.push(nM(M,c,z))}}if(E||M.includes("Stops")){if(z.includes("Favourite")){const M=t(L);let z;z=M.every((M=>"station"===M.type))?eM(M,m).then((M=>O?O(M,F):M)):r(M).then((M=>eM(M,m))).then((M=>O?O(M,F):M)),D.push(function(M,z){return M.then((M=>pM(M,z,["properties.name","properties.name","properties.address"])))}(z,c))}if(w||z.includes("Datasource")){const z=["stop","station"],b=o&&10!==o?{size:o}:{};y&&y["boundary.country"]&&(b["boundary.country"]=y["boundary.country"]),(E||M.includes("Locations"))&&(b.dedupestops=1);const p=g.map((M=>`gtfs${M}`)).join(",");D.push(qM(c,b,x,I,p,h,B,z).then((M=>O?O(M,F):M)))}if(w||z.includes("History")){const M=a(L).filter((M=>!M.properties.gid||M.properties.gid.includes("GTFS:"))),z=["currentPosition","selectFromMap","futureRoute","ownLocations","favouritePlace","bikeRentalStation","back"];z.push(...WM),z.push(...aM),z.push(...tM),b?("route-CITYBIKE"!==b&&(z.push("bikeRentalStation"),z.push("bikestation")),D.push(nM(M,c,z).then((M=>O?O(M,F):M)))):D.push(nM(M,c,z))}}if(E||M.includes("Routes")){if(z.includes("Favourite")){const M=f(L);D.push(R(M,c,F,q).then((M=>O?O(M,F,"Routes"):M)))}if(D.push(l(c,g,b,q).then((M=>O?O(M,F,"Routes"):M))),w||z.includes("History")){const M=a(L),z=["currentPosition","selectFromMap","futureRoute","favouritePlace","stop","station","bikepark","carpark","ownLocations","back"];b&&("route-CITYBIKE"!==b&&(z.push("bikeRentalStation"),z.push("bikestation")),z.push(...WM.filter((M=>!(M===b))))),z.push(...aM),D.push(nM(M,c,z).then((M=>O?O(M,F,"Routes"):M)))}}if(E||M.includes("BikeRentalStations")){if(z.includes("Favourite")){const M=u(L);D.push(s(M,c))}if(w||z.includes("Datasource")){const M=["bikestation"],z=o&&10!==o?{size:o}:{};D.push(qM(c,z,x,I,k.join(","),h,B,M).then((M=>O?O(M,F,"BikeRentalStations"):M)))}}Promise.all(D).then(T.default).then(bM).then((M=>{P.results=M})).catch((M=>{P.error=M})).then((()=>{A(Y({},P,{results:J(X,P.results,c)}))}))}),300,{leading:!0});function iM(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function rM(M,z){return M(z={exports:{}},z.exports),z.exports}var sM,uM=rM((function(M,z){M.exports=function(){var z,b;function p(){return z.apply(null,arguments)}function O(M){z=M}function o(M){return M instanceof Array||"[object Array]"===Object.prototype.toString.call(M)}function c(M){return null!=M&&"[object Object]"===Object.prototype.toString.call(M)}function A(M,z){return Object.prototype.hasOwnProperty.call(M,z)}function q(M){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(M).length;var z;for(z in M)if(A(M,z))return!1;return!0}function e(M){return void 0===M}function n(M){return"number"==typeof M||"[object Number]"===Object.prototype.toString.call(M)}function W(M){return M instanceof Date||"[object Date]"===Object.prototype.toString.call(M)}function a(M,z){var b,p=[],O=M.length;for(b=0;b<O;++b)p.push(z(M[b],b));return p}function t(M,z){for(var b in z)A(z,b)&&(M[b]=z[b]);return A(z,"toString")&&(M.toString=z.toString),A(z,"valueOf")&&(M.valueOf=z.valueOf),M}function d(M,z,b,p){return Vb(M,z,b,p,!0).utc()}function i(){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 r(M){return null==M._pf&&(M._pf=i()),M._pf}function s(M){if(null==M._isValid){var z=r(M),p=b.call(z.parsedDateParts,(function(M){return null!=M})),O=!isNaN(M._d.getTime())&&z.overflow<0&&!z.empty&&!z.invalidEra&&!z.invalidMonth&&!z.invalidWeekday&&!z.weekdayMismatch&&!z.nullInput&&!z.invalidFormat&&!z.userInvalidated&&(!z.meridiem||z.meridiem&&p);if(M._strict&&(O=O&&0===z.charsLeftOver&&0===z.unusedTokens.length&&void 0===z.bigHour),null!=Object.isFrozen&&Object.isFrozen(M))return O;M._isValid=O}return M._isValid}function u(M){var z=d(NaN);return null!=M?t(r(z),M):r(z).userInvalidated=!0,z}b=Array.prototype.some?Array.prototype.some:function(M){var z,b=Object(this),p=b.length>>>0;for(z=0;z<p;z++)if(z in b&&M.call(this,b[z],z,b))return!0;return!1};var R=p.momentProperties=[],f=!1;function l(M,z){var b,p,O,o=R.length;if(e(z._isAMomentObject)||(M._isAMomentObject=z._isAMomentObject),e(z._i)||(M._i=z._i),e(z._f)||(M._f=z._f),e(z._l)||(M._l=z._l),e(z._strict)||(M._strict=z._strict),e(z._tzm)||(M._tzm=z._tzm),e(z._isUTC)||(M._isUTC=z._isUTC),e(z._offset)||(M._offset=z._offset),e(z._pf)||(M._pf=r(z)),e(z._locale)||(M._locale=z._locale),o>0)for(b=0;b<o;b++)e(O=z[p=R[b]])||(M[p]=O);return M}function L(M){l(this,M),this._d=new Date(null!=M._d?M._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===f&&(f=!0,p.updateOffset(this),f=!1)}function N(M){return M instanceof L||null!=M&&null!=M._isAMomentObject}function B(M){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+M)}function X(M,z){var b=!0;return t((function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,M),b){var O,o,c,q=[],e=arguments.length;for(o=0;o<e;o++){if(O="","object"==typeof arguments[o]){for(c in O+="\n["+o+"] ",arguments[0])A(arguments[0],c)&&(O+=c+": "+arguments[0][c]+", ");O=O.slice(0,-2)}else O=arguments[o];q.push(O)}B(M+"\nArguments: "+Array.prototype.slice.call(q).join("")+"\n"+(new Error).stack),b=!1}return z.apply(this,arguments)}),z)}var h,m={};function g(M,z){null!=p.deprecationHandler&&p.deprecationHandler(M,z),m[M]||(B(z),m[M]=!0)}function T(M){return"undefined"!=typeof Function&&M instanceof Function||"[object Function]"===Object.prototype.toString.call(M)}function _(M){var z,b;for(b in M)A(M,b)&&(T(z=M[b])?this[b]=z:this["_"+b]=z);this._config=M,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function y(M,z){var b,p=t({},M);for(b in z)A(z,b)&&(c(M[b])&&c(z[b])?(p[b]={},t(p[b],M[b]),t(p[b],z[b])):null!=z[b]?p[b]=z[b]:delete p[b]);for(b in M)A(M,b)&&!A(z,b)&&c(M[b])&&(p[b]=t({},p[b]));return p}function S(M){null!=M&&this.set(M)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null,h=Object.keys?Object.keys:function(M){var z,b=[];for(z in M)A(M,z)&&b.push(z);return b};var v={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function k(M,z,b){var p=this._calendar[M]||this._calendar.sameElse;return T(p)?p.call(z,b):p}function E(M,z,b){var p=""+Math.abs(M),O=z-p.length;return(M>=0?b?"+":"":"-")+Math.pow(10,Math.max(0,O)).toString().substr(1)+p}var w=/(\[[^\[]*\])|(\\)?([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,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},P={};function x(M,z,b,p){var O=p;"string"==typeof p&&(O=function(){return this[p]()}),M&&(P[M]=O),z&&(P[z[0]]=function(){return E(O.apply(this,arguments),z[1],z[2])}),b&&(P[b]=function(){return this.localeData().ordinal(O.apply(this,arguments),M)})}function I(M){return M.match(/\[[\s\S]/)?M.replace(/^\[|\]$/g,""):M.replace(/\\/g,"")}function F(M){var z,b,p=M.match(w);for(z=0,b=p.length;z<b;z++)P[p[z]]?p[z]=P[p[z]]:p[z]=I(p[z]);return function(z){var O,o="";for(O=0;O<b;O++)o+=T(p[O])?p[O].call(z,M):p[O];return o}}function H(M,z){return M.isValid()?(z=Y(z,M.localeData()),D[z]=D[z]||F(z),D[z](M)):M.localeData().invalidDate()}function Y(M,z){var b=5;function p(M){return z.longDateFormat(M)||M}for(C.lastIndex=0;b>=0&&C.test(M);)M=M.replace(C,p),C.lastIndex=0,b-=1;return M}var U={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(M){var z=this._longDateFormat[M],b=this._longDateFormat[M.toUpperCase()];return z||!b?z:(this._longDateFormat[M]=b.match(w).map((function(M){return"MMMM"===M||"MM"===M||"DD"===M||"dddd"===M?M.slice(1):M})).join(""),this._longDateFormat[M])}var G="Invalid date";function V(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function J(M){return this._ordinal.replace("%d",M)}var Z={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 $(M,z,b,p){var O=this._relativeTime[b];return T(O)?O(M,z,b,p):O.replace(/%d/i,M)}function MM(M,z){var b=this._relativeTime[M>0?"future":"past"];return T(b)?b(z):b.replace(/%s/i,z)}var zM={};function bM(M,z){var b=M.toLowerCase();zM[b]=zM[b+"s"]=zM[z]=M}function pM(M){return"string"==typeof M?zM[M]||zM[M.toLowerCase()]:void 0}function OM(M){var z,b,p={};for(b in M)A(M,b)&&(z=pM(b))&&(p[z]=M[b]);return p}var oM={};function cM(M,z){oM[M]=z}function AM(M){var z,b=[];for(z in M)A(M,z)&&b.push({unit:z,priority:oM[z]});return b.sort((function(M,z){return M.priority-z.priority})),b}function qM(M){return M%4==0&&M%100!=0||M%400==0}function eM(M){return M<0?Math.ceil(M)||0:Math.floor(M)}function nM(M){var z=+M,b=0;return 0!==z&&isFinite(z)&&(b=eM(z)),b}function WM(M,z){return function(b){return null!=b?(tM(this,M,b),p.updateOffset(this,z),this):aM(this,M)}}function aM(M,z){return M.isValid()?M._d["get"+(M._isUTC?"UTC":"")+z]():NaN}function tM(M,z,b){M.isValid()&&!isNaN(b)&&("FullYear"===z&&qM(M.year())&&1===M.month()&&29===M.date()?(b=nM(b),M._d["set"+(M._isUTC?"UTC":"")+z](b,M.month(),Mz(b,M.month()))):M._d["set"+(M._isUTC?"UTC":"")+z](b))}function dM(M){return T(this[M=pM(M)])?this[M]():this}function rM(M,z){if("object"==typeof M){var b,p=AM(M=OM(M)),O=p.length;for(b=0;b<O;b++)this[p[b].unit](M[p[b].unit])}else if(T(this[M=pM(M)]))return this[M](z);return this}var sM,uM=/\d/,RM=/\d\d/,fM=/\d{3}/,lM=/\d{4}/,LM=/[+-]?\d{6}/,NM=/\d\d?/,BM=/\d\d\d\d?/,XM=/\d\d\d\d\d\d?/,hM=/\d{1,3}/,mM=/\d{1,4}/,gM=/[+-]?\d{1,6}/,TM=/\d+/,_M=/[+-]?\d+/,yM=/Z|[+-]\d\d:?\d\d/gi,SM=/Z|[+-]\d\d(?::?\d\d)?/gi,vM=/[+-]?\d+(\.\d{1,3})?/,kM=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function EM(M,z,b){sM[M]=T(z)?z:function(M,p){return M&&b?b:z}}function wM(M,z){return A(sM,M)?sM[M](z._strict,z._locale):new RegExp(CM(M))}function CM(M){return DM(M.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(M,z,b,p,O){return z||b||p||O})))}function DM(M){return M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}sM={};var PM={};function xM(M,z){var b,p,O=z;for("string"==typeof M&&(M=[M]),n(z)&&(O=function(M,b){b[z]=nM(M)}),p=M.length,b=0;b<p;b++)PM[M[b]]=O}function IM(M,z){xM(M,(function(M,b,p,O){p._w=p._w||{},z(M,p._w,p,O)}))}function FM(M,z,b){null!=z&&A(PM,M)&&PM[M](z,b._a,b,M)}var HM,YM=0,UM=1,jM=2,GM=3,VM=4,KM=5,QM=6,JM=7,ZM=8;function $M(M,z){return(M%z+z)%z}function Mz(M,z){if(isNaN(M)||isNaN(z))return NaN;var b=$M(z,12);return M+=(z-b)/12,1===b?qM(M)?29:28:31-b%7%2}HM=Array.prototype.indexOf?Array.prototype.indexOf:function(M){var z;for(z=0;z<this.length;++z)if(this[z]===M)return z;return-1},x("M",["MM",2],"Mo",(function(){return this.month()+1})),x("MMM",0,0,(function(M){return this.localeData().monthsShort(this,M)})),x("MMMM",0,0,(function(M){return this.localeData().months(this,M)})),bM("month","M"),cM("month",8),EM("M",NM),EM("MM",NM,RM),EM("MMM",(function(M,z){return z.monthsShortRegex(M)})),EM("MMMM",(function(M,z){return z.monthsRegex(M)})),xM(["M","MM"],(function(M,z){z[UM]=nM(M)-1})),xM(["MMM","MMMM"],(function(M,z,b,p){var O=b._locale.monthsParse(M,p,b._strict);null!=O?z[UM]=O:r(b).invalidMonth=M}));var zz="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),bz="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),pz=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oz=kM,oz=kM;function cz(M,z){return M?o(this._months)?this._months[M.month()]:this._months[(this._months.isFormat||pz).test(z)?"format":"standalone"][M.month()]:o(this._months)?this._months:this._months.standalone}function Az(M,z){return M?o(this._monthsShort)?this._monthsShort[M.month()]:this._monthsShort[pz.test(z)?"format":"standalone"][M.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function qz(M,z,b){var p,O,o,c=M.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],p=0;p<12;++p)o=d([2e3,p]),this._shortMonthsParse[p]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[p]=this.months(o,"").toLocaleLowerCase();return b?"MMM"===z?-1!==(O=HM.call(this._shortMonthsParse,c))?O:null:-1!==(O=HM.call(this._longMonthsParse,c))?O:null:"MMM"===z?-1!==(O=HM.call(this._shortMonthsParse,c))||-1!==(O=HM.call(this._longMonthsParse,c))?O:null:-1!==(O=HM.call(this._longMonthsParse,c))||-1!==(O=HM.call(this._shortMonthsParse,c))?O:null}function ez(M,z,b){var p,O,o;if(this._monthsParseExact)return qz.call(this,M,z,b);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),p=0;p<12;p++){if(O=d([2e3,p]),b&&!this._longMonthsParse[p]&&(this._longMonthsParse[p]=new RegExp("^"+this.months(O,"").replace(".","")+"$","i"),this._shortMonthsParse[p]=new RegExp("^"+this.monthsShort(O,"").replace(".","")+"$","i")),b||this._monthsParse[p]||(o="^"+this.months(O,"")+"|^"+this.monthsShort(O,""),this._monthsParse[p]=new RegExp(o.replace(".",""),"i")),b&&"MMMM"===z&&this._longMonthsParse[p].test(M))return p;if(b&&"MMM"===z&&this._shortMonthsParse[p].test(M))return p;if(!b&&this._monthsParse[p].test(M))return p}}function nz(M,z){var b;if(!M.isValid())return M;if("string"==typeof z)if(/^\d+$/.test(z))z=nM(z);else if(!n(z=M.localeData().monthsParse(z)))return M;return b=Math.min(M.date(),Mz(M.year(),z)),M._d["set"+(M._isUTC?"UTC":"")+"Month"](z,b),M}function Wz(M){return null!=M?(nz(this,M),p.updateOffset(this,!0),this):aM(this,"Month")}function az(){return Mz(this.year(),this.month())}function tz(M){return this._monthsParseExact?(A(this,"_monthsRegex")||iz.call(this),M?this._monthsShortStrictRegex:this._monthsShortRegex):(A(this,"_monthsShortRegex")||(this._monthsShortRegex=Oz),this._monthsShortStrictRegex&&M?this._monthsShortStrictRegex:this._monthsShortRegex)}function dz(M){return this._monthsParseExact?(A(this,"_monthsRegex")||iz.call(this),M?this._monthsStrictRegex:this._monthsRegex):(A(this,"_monthsRegex")||(this._monthsRegex=oz),this._monthsStrictRegex&&M?this._monthsStrictRegex:this._monthsRegex)}function iz(){function M(M,z){return z.length-M.length}var z,b,p=[],O=[],o=[];for(z=0;z<12;z++)b=d([2e3,z]),p.push(this.monthsShort(b,"")),O.push(this.months(b,"")),o.push(this.months(b,"")),o.push(this.monthsShort(b,""));for(p.sort(M),O.sort(M),o.sort(M),z=0;z<12;z++)p[z]=DM(p[z]),O[z]=DM(O[z]);for(z=0;z<24;z++)o[z]=DM(o[z]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+p.join("|")+")","i")}function rz(M){return qM(M)?366:365}x("Y",0,0,(function(){var M=this.year();return M<=9999?E(M,4):"+"+M})),x(0,["YY",2],0,(function(){return this.year()%100})),x(0,["YYYY",4],0,"year"),x(0,["YYYYY",5],0,"year"),x(0,["YYYYYY",6,!0],0,"year"),bM("year","y"),cM("year",1),EM("Y",_M),EM("YY",NM,RM),EM("YYYY",mM,lM),EM("YYYYY",gM,LM),EM("YYYYYY",gM,LM),xM(["YYYYY","YYYYYY"],YM),xM("YYYY",(function(M,z){z[YM]=2===M.length?p.parseTwoDigitYear(M):nM(M)})),xM("YY",(function(M,z){z[YM]=p.parseTwoDigitYear(M)})),xM("Y",(function(M,z){z[YM]=parseInt(M,10)})),p.parseTwoDigitYear=function(M){return nM(M)+(nM(M)>68?1900:2e3)};var sz=WM("FullYear",!0);function uz(){return qM(this.year())}function Rz(M,z,b,p,O,o,c){var A;return M<100&&M>=0?(A=new Date(M+400,z,b,p,O,o,c),isFinite(A.getFullYear())&&A.setFullYear(M)):A=new Date(M,z,b,p,O,o,c),A}function fz(M){var z,b;return M<100&&M>=0?((b=Array.prototype.slice.call(arguments))[0]=M+400,z=new Date(Date.UTC.apply(null,b)),isFinite(z.getUTCFullYear())&&z.setUTCFullYear(M)):z=new Date(Date.UTC.apply(null,arguments)),z}function lz(M,z,b){var p=7+z-b;return-(7+fz(M,0,p).getUTCDay()-z)%7+p-1}function Lz(M,z,b,p,O){var o,c,A=1+7*(z-1)+(7+b-p)%7+lz(M,p,O);return A<=0?c=rz(o=M-1)+A:A>rz(M)?(o=M+1,c=A-rz(M)):(o=M,c=A),{year:o,dayOfYear:c}}function Nz(M,z,b){var p,O,o=lz(M.year(),z,b),c=Math.floor((M.dayOfYear()-o-1)/7)+1;return c<1?p=c+Bz(O=M.year()-1,z,b):c>Bz(M.year(),z,b)?(p=c-Bz(M.year(),z,b),O=M.year()+1):(O=M.year(),p=c),{week:p,year:O}}function Bz(M,z,b){var p=lz(M,z,b),O=lz(M+1,z,b);return(rz(M)-p+O)/7}function Xz(M){return Nz(M,this._week.dow,this._week.doy).week}x("w",["ww",2],"wo","week"),x("W",["WW",2],"Wo","isoWeek"),bM("week","w"),bM("isoWeek","W"),cM("week",5),cM("isoWeek",5),EM("w",NM),EM("ww",NM,RM),EM("W",NM),EM("WW",NM,RM),IM(["w","ww","W","WW"],(function(M,z,b,p){z[p.substr(0,1)]=nM(M)}));var hz={dow:0,doy:6};function mz(){return this._week.dow}function gz(){return this._week.doy}function Tz(M){var z=this.localeData().week(this);return null==M?z:this.add(7*(M-z),"d")}function _z(M){var z=Nz(this,1,4).week;return null==M?z:this.add(7*(M-z),"d")}function yz(M,z){return"string"!=typeof M?M:isNaN(M)?"number"==typeof(M=z.weekdaysParse(M))?M:null:parseInt(M,10)}function Sz(M,z){return"string"==typeof M?z.weekdaysParse(M)%7||7:isNaN(M)?null:M}function vz(M,z){return M.slice(z,7).concat(M.slice(0,z))}x("d",0,"do","day"),x("dd",0,0,(function(M){return this.localeData().weekdaysMin(this,M)})),x("ddd",0,0,(function(M){return this.localeData().weekdaysShort(this,M)})),x("dddd",0,0,(function(M){return this.localeData().weekdays(this,M)})),x("e",0,0,"weekday"),x("E",0,0,"isoWeekday"),bM("day","d"),bM("weekday","e"),bM("isoWeekday","E"),cM("day",11),cM("weekday",11),cM("isoWeekday",11),EM("d",NM),EM("e",NM),EM("E",NM),EM("dd",(function(M,z){return z.weekdaysMinRegex(M)})),EM("ddd",(function(M,z){return z.weekdaysShortRegex(M)})),EM("dddd",(function(M,z){return z.weekdaysRegex(M)})),IM(["dd","ddd","dddd"],(function(M,z,b,p){var O=b._locale.weekdaysParse(M,p,b._strict);null!=O?z.d=O:r(b).invalidWeekday=M})),IM(["d","e","E"],(function(M,z,b,p){z[p]=nM(M)}));var kz="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ez="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wz="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Cz=kM,Dz=kM,Pz=kM;function xz(M,z){var b=o(this._weekdays)?this._weekdays:this._weekdays[M&&!0!==M&&this._weekdays.isFormat.test(z)?"format":"standalone"];return!0===M?vz(b,this._week.dow):M?b[M.day()]:b}function Iz(M){return!0===M?vz(this._weekdaysShort,this._week.dow):M?this._weekdaysShort[M.day()]:this._weekdaysShort}function Fz(M){return!0===M?vz(this._weekdaysMin,this._week.dow):M?this._weekdaysMin[M.day()]:this._weekdaysMin}function Hz(M,z,b){var p,O,o,c=M.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],p=0;p<7;++p)o=d([2e3,1]).day(p),this._minWeekdaysParse[p]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[p]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[p]=this.weekdays(o,"").toLocaleLowerCase();return b?"dddd"===z?-1!==(O=HM.call(this._weekdaysParse,c))?O:null:"ddd"===z?-1!==(O=HM.call(this._shortWeekdaysParse,c))?O:null:-1!==(O=HM.call(this._minWeekdaysParse,c))?O:null:"dddd"===z?-1!==(O=HM.call(this._weekdaysParse,c))||-1!==(O=HM.call(this._shortWeekdaysParse,c))||-1!==(O=HM.call(this._minWeekdaysParse,c))?O:null:"ddd"===z?-1!==(O=HM.call(this._shortWeekdaysParse,c))||-1!==(O=HM.call(this._weekdaysParse,c))||-1!==(O=HM.call(this._minWeekdaysParse,c))?O:null:-1!==(O=HM.call(this._minWeekdaysParse,c))||-1!==(O=HM.call(this._weekdaysParse,c))||-1!==(O=HM.call(this._shortWeekdaysParse,c))?O:null}function Yz(M,z,b){var p,O,o;if(this._weekdaysParseExact)return Hz.call(this,M,z,b);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),p=0;p<7;p++){if(O=d([2e3,1]).day(p),b&&!this._fullWeekdaysParse[p]&&(this._fullWeekdaysParse[p]=new RegExp("^"+this.weekdays(O,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[p]=new RegExp("^"+this.weekdaysShort(O,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[p]=new RegExp("^"+this.weekdaysMin(O,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[p]||(o="^"+this.weekdays(O,"")+"|^"+this.weekdaysShort(O,"")+"|^"+this.weekdaysMin(O,""),this._weekdaysParse[p]=new RegExp(o.replace(".",""),"i")),b&&"dddd"===z&&this._fullWeekdaysParse[p].test(M))return p;if(b&&"ddd"===z&&this._shortWeekdaysParse[p].test(M))return p;if(b&&"dd"===z&&this._minWeekdaysParse[p].test(M))return p;if(!b&&this._weekdaysParse[p].test(M))return p}}function Uz(M){if(!this.isValid())return null!=M?this:NaN;var z=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=M?(M=yz(M,this.localeData()),this.add(M-z,"d")):z}function jz(M){if(!this.isValid())return null!=M?this:NaN;var z=(this.day()+7-this.localeData()._week.dow)%7;return null==M?z:this.add(M-z,"d")}function Gz(M){if(!this.isValid())return null!=M?this:NaN;if(null!=M){var z=Sz(M,this.localeData());return this.day(this.day()%7?z:z-7)}return this.day()||7}function Vz(M){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Jz.call(this),M?this._weekdaysStrictRegex:this._weekdaysRegex):(A(this,"_weekdaysRegex")||(this._weekdaysRegex=Cz),this._weekdaysStrictRegex&&M?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kz(M){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Jz.call(this),M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(A(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Dz),this._weekdaysShortStrictRegex&&M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qz(M){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Jz.call(this),M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(A(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pz),this._weekdaysMinStrictRegex&&M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jz(){function M(M,z){return z.length-M.length}var z,b,p,O,o,c=[],A=[],q=[],e=[];for(z=0;z<7;z++)b=d([2e3,1]).day(z),p=DM(this.weekdaysMin(b,"")),O=DM(this.weekdaysShort(b,"")),o=DM(this.weekdays(b,"")),c.push(p),A.push(O),q.push(o),e.push(p),e.push(O),e.push(o);c.sort(M),A.sort(M),q.sort(M),e.sort(M),this._weekdaysRegex=new RegExp("^("+e.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+c.join("|")+")","i")}function Zz(){return this.hours()%12||12}function $z(){return this.hours()||24}function Mb(M,z){x(M,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),z)}))}function zb(M,z){return z._meridiemParse}function bb(M){return"p"===(M+"").toLowerCase().charAt(0)}x("H",["HH",2],0,"hour"),x("h",["hh",2],0,Zz),x("k",["kk",2],0,$z),x("hmm",0,0,(function(){return""+Zz.apply(this)+E(this.minutes(),2)})),x("hmmss",0,0,(function(){return""+Zz.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)})),x("Hmm",0,0,(function(){return""+this.hours()+E(this.minutes(),2)})),x("Hmmss",0,0,(function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)})),Mb("a",!0),Mb("A",!1),bM("hour","h"),cM("hour",13),EM("a",zb),EM("A",zb),EM("H",NM),EM("h",NM),EM("k",NM),EM("HH",NM,RM),EM("hh",NM,RM),EM("kk",NM,RM),EM("hmm",BM),EM("hmmss",XM),EM("Hmm",BM),EM("Hmmss",XM),xM(["H","HH"],GM),xM(["k","kk"],(function(M,z,b){var p=nM(M);z[GM]=24===p?0:p})),xM(["a","A"],(function(M,z,b){b._isPm=b._locale.isPM(M),b._meridiem=M})),xM(["h","hh"],(function(M,z,b){z[GM]=nM(M),r(b).bigHour=!0})),xM("hmm",(function(M,z,b){var p=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p)),r(b).bigHour=!0})),xM("hmmss",(function(M,z,b){var p=M.length-4,O=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p,2)),z[KM]=nM(M.substr(O)),r(b).bigHour=!0})),xM("Hmm",(function(M,z,b){var p=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p))})),xM("Hmmss",(function(M,z,b){var p=M.length-4,O=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p,2)),z[KM]=nM(M.substr(O))}));var pb=/[ap]\.?m?\.?/i,Ob=WM("Hours",!0);function ob(M,z,b){return M>11?b?"pm":"PM":b?"am":"AM"}var cb,Ab={calendar:v,longDateFormat:U,invalidDate:G,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:Z,months:zz,monthsShort:bz,week:hz,weekdays:kz,weekdaysMin:wz,weekdaysShort:Ez,meridiemParse:pb},qb={},eb={};function nb(M,z){var b,p=Math.min(M.length,z.length);for(b=0;b<p;b+=1)if(M[b]!==z[b])return b;return p}function Wb(M){return M?M.toLowerCase().replace("_","-"):M}function ab(M){for(var z,b,p,O,o=0;o<M.length;){for(z=(O=Wb(M[o]).split("-")).length,b=(b=Wb(M[o+1]))?b.split("-"):null;z>0;){if(p=db(O.slice(0,z).join("-")))return p;if(b&&b.length>=z&&nb(O,b)>=z-1)break;z--}o++}return cb}function tb(M){return null!=M.match("^[^/\\\\]*$")}function db(z){var b=null;if(void 0===qb[z]&&M&&M.exports&&tb(z))try{b=cb._abbr,iM(),ib(b)}catch(M){qb[z]=null}return qb[z]}function ib(M,z){var b;return M&&((b=e(z)?ub(M):rb(M,z))?cb=b:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+M+" not found. Did you forget to load it?")),cb._abbr}function rb(M,z){if(null!==z){var b,p=Ab;if(z.abbr=M,null!=qb[M])g("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."),p=qb[M]._config;else if(null!=z.parentLocale)if(null!=qb[z.parentLocale])p=qb[z.parentLocale]._config;else{if(null==(b=db(z.parentLocale)))return eb[z.parentLocale]||(eb[z.parentLocale]=[]),eb[z.parentLocale].push({name:M,config:z}),null;p=b._config}return qb[M]=new S(y(p,z)),eb[M]&&eb[M].forEach((function(M){rb(M.name,M.config)})),ib(M),qb[M]}return delete qb[M],null}function sb(M,z){if(null!=z){var b,p,O=Ab;null!=qb[M]&&null!=qb[M].parentLocale?qb[M].set(y(qb[M]._config,z)):(null!=(p=db(M))&&(O=p._config),z=y(O,z),null==p&&(z.abbr=M),(b=new S(z)).parentLocale=qb[M],qb[M]=b),ib(M)}else null!=qb[M]&&(null!=qb[M].parentLocale?(qb[M]=qb[M].parentLocale,M===ib()&&ib(M)):null!=qb[M]&&delete qb[M]);return qb[M]}function ub(M){var z;if(M&&M._locale&&M._locale._abbr&&(M=M._locale._abbr),!M)return cb;if(!o(M)){if(z=db(M))return z;M=[M]}return ab(M)}function Rb(){return h(qb)}function fb(M){var z,b=M._a;return b&&-2===r(M).overflow&&(z=b[UM]<0||b[UM]>11?UM:b[jM]<1||b[jM]>Mz(b[YM],b[UM])?jM:b[GM]<0||b[GM]>24||24===b[GM]&&(0!==b[VM]||0!==b[KM]||0!==b[QM])?GM:b[VM]<0||b[VM]>59?VM:b[KM]<0||b[KM]>59?KM:b[QM]<0||b[QM]>999?QM:-1,r(M)._overflowDayOfYear&&(z<YM||z>jM)&&(z=jM),r(M)._overflowWeeks&&-1===z&&(z=JM),r(M)._overflowWeekday&&-1===z&&(z=ZM),r(M).overflow=z),M}var lb=/^\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)?)?$/,Lb=/^\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)?)?$/,Nb=/Z|[+-]\d\d(?::?\d\d)?/,Bb=[["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]],Xb=[["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/]],hb=/^\/?Date\((-?\d+)/i,mb=/^(?:(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}))$/,gb={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tb(M){var z,b,p,O,o,c,A=M._i,q=lb.exec(A)||Lb.exec(A),e=Bb.length,n=Xb.length;if(q){for(r(M).iso=!0,z=0,b=e;z<b;z++)if(Bb[z][1].exec(q[1])){O=Bb[z][0],p=!1!==Bb[z][2];break}if(null==O)return void(M._isValid=!1);if(q[3]){for(z=0,b=n;z<b;z++)if(Xb[z][1].exec(q[3])){o=(q[2]||" ")+Xb[z][0];break}if(null==o)return void(M._isValid=!1)}if(!p&&null!=o)return void(M._isValid=!1);if(q[4]){if(!Nb.exec(q[4]))return void(M._isValid=!1);c="Z"}M._f=O+(o||"")+(c||""),Ib(M)}else M._isValid=!1}function _b(M,z,b,p,O,o){var c=[yb(M),bz.indexOf(z),parseInt(b,10),parseInt(p,10),parseInt(O,10)];return o&&c.push(parseInt(o,10)),c}function yb(M){var z=parseInt(M,10);return z<=49?2e3+z:z<=999?1900+z:z}function Sb(M){return M.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vb(M,z,b){return!M||Ez.indexOf(M)===new Date(z[0],z[1],z[2]).getDay()||(r(b).weekdayMismatch=!0,b._isValid=!1,!1)}function kb(M,z,b){if(M)return gb[M];if(z)return 0;var p=parseInt(b,10),O=p%100;return(p-O)/100*60+O}function Eb(M){var z,b=mb.exec(Sb(M._i));if(b){if(z=_b(b[4],b[3],b[2],b[5],b[6],b[7]),!vb(b[1],z,M))return;M._a=z,M._tzm=kb(b[8],b[9],b[10]),M._d=fz.apply(null,M._a),M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),r(M).rfc2822=!0}else M._isValid=!1}function wb(M){var z=hb.exec(M._i);null===z?(Tb(M),!1===M._isValid&&(delete M._isValid,Eb(M),!1===M._isValid&&(delete M._isValid,M._strict?M._isValid=!1:p.createFromInputFallback(M)))):M._d=new Date(+z[1])}function Cb(M,z,b){return null!=M?M:null!=z?z:b}function Db(M){var z=new Date(p.now());return M._useUTC?[z.getUTCFullYear(),z.getUTCMonth(),z.getUTCDate()]:[z.getFullYear(),z.getMonth(),z.getDate()]}function Pb(M){var z,b,p,O,o,c=[];if(!M._d){for(p=Db(M),M._w&&null==M._a[jM]&&null==M._a[UM]&&xb(M),null!=M._dayOfYear&&(o=Cb(M._a[YM],p[YM]),(M._dayOfYear>rz(o)||0===M._dayOfYear)&&(r(M)._overflowDayOfYear=!0),b=fz(o,0,M._dayOfYear),M._a[UM]=b.getUTCMonth(),M._a[jM]=b.getUTCDate()),z=0;z<3&&null==M._a[z];++z)M._a[z]=c[z]=p[z];for(;z<7;z++)M._a[z]=c[z]=null==M._a[z]?2===z?1:0:M._a[z];24===M._a[GM]&&0===M._a[VM]&&0===M._a[KM]&&0===M._a[QM]&&(M._nextDay=!0,M._a[GM]=0),M._d=(M._useUTC?fz:Rz).apply(null,c),O=M._useUTC?M._d.getUTCDay():M._d.getDay(),null!=M._tzm&&M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),M._nextDay&&(M._a[GM]=24),M._w&&void 0!==M._w.d&&M._w.d!==O&&(r(M).weekdayMismatch=!0)}}function xb(M){var z,b,p,O,o,c,A,q,e;null!=(z=M._w).GG||null!=z.W||null!=z.E?(o=1,c=4,b=Cb(z.GG,M._a[YM],Nz(Kb(),1,4).year),p=Cb(z.W,1),((O=Cb(z.E,1))<1||O>7)&&(q=!0)):(o=M._locale._week.dow,c=M._locale._week.doy,e=Nz(Kb(),o,c),b=Cb(z.gg,M._a[YM],e.year),p=Cb(z.w,e.week),null!=z.d?((O=z.d)<0||O>6)&&(q=!0):null!=z.e?(O=z.e+o,(z.e<0||z.e>6)&&(q=!0)):O=o),p<1||p>Bz(b,o,c)?r(M)._overflowWeeks=!0:null!=q?r(M)._overflowWeekday=!0:(A=Lz(b,p,O,o,c),M._a[YM]=A.year,M._dayOfYear=A.dayOfYear)}function Ib(M){if(M._f!==p.ISO_8601)if(M._f!==p.RFC_2822){M._a=[],r(M).empty=!0;var z,b,O,o,c,A,q,e=""+M._i,n=e.length,W=0;for(q=(O=Y(M._f,M._locale).match(w)||[]).length,z=0;z<q;z++)o=O[z],(b=(e.match(wM(o,M))||[])[0])&&((c=e.substr(0,e.indexOf(b))).length>0&&r(M).unusedInput.push(c),e=e.slice(e.indexOf(b)+b.length),W+=b.length),P[o]?(b?r(M).empty=!1:r(M).unusedTokens.push(o),FM(o,b,M)):M._strict&&!b&&r(M).unusedTokens.push(o);r(M).charsLeftOver=n-W,e.length>0&&r(M).unusedInput.push(e),M._a[GM]<=12&&!0===r(M).bigHour&&M._a[GM]>0&&(r(M).bigHour=void 0),r(M).parsedDateParts=M._a.slice(0),r(M).meridiem=M._meridiem,M._a[GM]=Fb(M._locale,M._a[GM],M._meridiem),null!==(A=r(M).era)&&(M._a[YM]=M._locale.erasConvertYear(A,M._a[YM])),Pb(M),fb(M)}else Eb(M);else Tb(M)}function Fb(M,z,b){var p;return null==b?z:null!=M.meridiemHour?M.meridiemHour(z,b):null!=M.isPM?((p=M.isPM(b))&&z<12&&(z+=12),p||12!==z||(z=0),z):z}function Hb(M){var z,b,p,O,o,c,A=!1,q=M._f.length;if(0===q)return r(M).invalidFormat=!0,void(M._d=new Date(NaN));for(O=0;O<q;O++)o=0,c=!1,z=l({},M),null!=M._useUTC&&(z._useUTC=M._useUTC),z._f=M._f[O],Ib(z),s(z)&&(c=!0),o+=r(z).charsLeftOver,o+=10*r(z).unusedTokens.length,r(z).score=o,A?o<p&&(p=o,b=z):(null==p||o<p||c)&&(p=o,b=z,c&&(A=!0));t(M,b||z)}function Yb(M){if(!M._d){var z=OM(M._i),b=void 0===z.day?z.date:z.day;M._a=a([z.year,z.month,b,z.hour,z.minute,z.second,z.millisecond],(function(M){return M&&parseInt(M,10)})),Pb(M)}}function Ub(M){var z=new L(fb(jb(M)));return z._nextDay&&(z.add(1,"d"),z._nextDay=void 0),z}function jb(M){var z=M._i,b=M._f;return M._locale=M._locale||ub(M._l),null===z||void 0===b&&""===z?u({nullInput:!0}):("string"==typeof z&&(M._i=z=M._locale.preparse(z)),N(z)?new L(fb(z)):(W(z)?M._d=z:o(b)?Hb(M):b?Ib(M):Gb(M),s(M)||(M._d=null),M))}function Gb(M){var z=M._i;e(z)?M._d=new Date(p.now()):W(z)?M._d=new Date(z.valueOf()):"string"==typeof z?wb(M):o(z)?(M._a=a(z.slice(0),(function(M){return parseInt(M,10)})),Pb(M)):c(z)?Yb(M):n(z)?M._d=new Date(z):p.createFromInputFallback(M)}function Vb(M,z,b,p,O){var A={};return!0!==z&&!1!==z||(p=z,z=void 0),!0!==b&&!1!==b||(p=b,b=void 0),(c(M)&&q(M)||o(M)&&0===M.length)&&(M=void 0),A._isAMomentObject=!0,A._useUTC=A._isUTC=O,A._l=b,A._i=M,A._f=z,A._strict=p,Ub(A)}function Kb(M,z,b,p){return Vb(M,z,b,p,!1)}p.createFromInputFallback=X("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(M){M._d=new Date(M._i+(M._useUTC?" UTC":""))})),p.ISO_8601=function(){},p.RFC_2822=function(){};var Qb=X("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var M=Kb.apply(null,arguments);return this.isValid()&&M.isValid()?M<this?this:M:u()})),Jb=X("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var M=Kb.apply(null,arguments);return this.isValid()&&M.isValid()?M>this?this:M:u()}));function Zb(M,z){var b,p;if(1===z.length&&o(z[0])&&(z=z[0]),!z.length)return Kb();for(b=z[0],p=1;p<z.length;++p)z[p].isValid()&&!z[p][M](b)||(b=z[p]);return b}function $b(){return Zb("isBefore",[].slice.call(arguments,0))}function Mp(){return Zb("isAfter",[].slice.call(arguments,0))}var zp=function(){return Date.now?Date.now():+new Date},bp=["year","quarter","month","week","day","hour","minute","second","millisecond"];function pp(M){var z,b,p=!1,O=bp.length;for(z in M)if(A(M,z)&&(-1===HM.call(bp,z)||null!=M[z]&&isNaN(M[z])))return!1;for(b=0;b<O;++b)if(M[bp[b]]){if(p)return!1;parseFloat(M[bp[b]])!==nM(M[bp[b]])&&(p=!0)}return!0}function Op(){return this._isValid}function op(){return gp(NaN)}function cp(M){var z=OM(M),b=z.year||0,p=z.quarter||0,O=z.month||0,o=z.week||z.isoWeek||0,c=z.day||0,A=z.hour||0,q=z.minute||0,e=z.second||0,n=z.millisecond||0;this._isValid=pp(z),this._milliseconds=+n+1e3*e+6e4*q+1e3*A*60*60,this._days=+c+7*o,this._months=+O+3*p+12*b,this._data={},this._locale=ub(),this._bubble()}function Ap(M){return M instanceof cp}function qp(M){return M<0?-1*Math.round(-1*M):Math.round(M)}function ep(M,z,b){var p,O=Math.min(M.length,z.length),o=Math.abs(M.length-z.length),c=0;for(p=0;p<O;p++)(b&&M[p]!==z[p]||!b&&nM(M[p])!==nM(z[p]))&&c++;return c+o}function np(M,z){x(M,0,0,(function(){var M=this.utcOffset(),b="+";return M<0&&(M=-M,b="-"),b+E(~~(M/60),2)+z+E(~~M%60,2)}))}np("Z",":"),np("ZZ",""),EM("Z",SM),EM("ZZ",SM),xM(["Z","ZZ"],(function(M,z,b){b._useUTC=!0,b._tzm=ap(SM,M)}));var Wp=/([\+\-]|\d\d)/gi;function ap(M,z){var b,p,O=(z||"").match(M);return null===O?null:0===(p=60*(b=((O[O.length-1]||[])+"").match(Wp)||["-",0,0])[1]+nM(b[2]))?0:"+"===b[0]?p:-p}function tp(M,z){var b,O;return z._isUTC?(b=z.clone(),O=(N(M)||W(M)?M.valueOf():Kb(M).valueOf())-b.valueOf(),b._d.setTime(b._d.valueOf()+O),p.updateOffset(b,!1),b):Kb(M).local()}function dp(M){return-Math.round(M._d.getTimezoneOffset())}function ip(M,z,b){var O,o=this._offset||0;if(!this.isValid())return null!=M?this:NaN;if(null!=M){if("string"==typeof M){if(null===(M=ap(SM,M)))return this}else Math.abs(M)<16&&!b&&(M*=60);return!this._isUTC&&z&&(O=dp(this)),this._offset=M,this._isUTC=!0,null!=O&&this.add(O,"m"),o!==M&&(!z||this._changeInProgress?vp(this,gp(M-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:dp(this)}function rp(M,z){return null!=M?("string"!=typeof M&&(M=-M),this.utcOffset(M,z),this):-this.utcOffset()}function sp(M){return this.utcOffset(0,M)}function up(M){return this._isUTC&&(this.utcOffset(0,M),this._isUTC=!1,M&&this.subtract(dp(this),"m")),this}function Rp(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var M=ap(yM,this._i);null!=M?this.utcOffset(M):this.utcOffset(0,!0)}return this}function fp(M){return!!this.isValid()&&(M=M?Kb(M).utcOffset():0,(this.utcOffset()-M)%60==0)}function lp(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Lp(){if(!e(this._isDSTShifted))return this._isDSTShifted;var M,z={};return l(z,this),(z=jb(z))._a?(M=z._isUTC?d(z._a):Kb(z._a),this._isDSTShifted=this.isValid()&&ep(z._a,M.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Np(){return!!this.isValid()&&!this._isUTC}function Bp(){return!!this.isValid()&&this._isUTC}function Xp(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var hp=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,mp=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function gp(M,z){var b,p,O,o=M,c=null;return Ap(M)?o={ms:M._milliseconds,d:M._days,M:M._months}:n(M)||!isNaN(+M)?(o={},z?o[z]=+M:o.milliseconds=+M):(c=hp.exec(M))?(b="-"===c[1]?-1:1,o={y:0,d:nM(c[jM])*b,h:nM(c[GM])*b,m:nM(c[VM])*b,s:nM(c[KM])*b,ms:nM(qp(1e3*c[QM]))*b}):(c=mp.exec(M))?(b="-"===c[1]?-1:1,o={y:Tp(c[2],b),M:Tp(c[3],b),w:Tp(c[4],b),d:Tp(c[5],b),h:Tp(c[6],b),m:Tp(c[7],b),s:Tp(c[8],b)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(O=yp(Kb(o.from),Kb(o.to)),(o={}).ms=O.milliseconds,o.M=O.months),p=new cp(o),Ap(M)&&A(M,"_locale")&&(p._locale=M._locale),Ap(M)&&A(M,"_isValid")&&(p._isValid=M._isValid),p}function Tp(M,z){var b=M&&parseFloat(M.replace(",","."));return(isNaN(b)?0:b)*z}function _p(M,z){var b={};return b.months=z.month()-M.month()+12*(z.year()-M.year()),M.clone().add(b.months,"M").isAfter(z)&&--b.months,b.milliseconds=+z-+M.clone().add(b.months,"M"),b}function yp(M,z){var b;return M.isValid()&&z.isValid()?(z=tp(z,M),M.isBefore(z)?b=_p(M,z):((b=_p(z,M)).milliseconds=-b.milliseconds,b.months=-b.months),b):{milliseconds:0,months:0}}function Sp(M,z){return function(b,p){var O;return null===p||isNaN(+p)||(g(z,"moment()."+z+"(period, number) is deprecated. Please use moment()."+z+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),O=b,b=p,p=O),vp(this,gp(b,p),M),this}}function vp(M,z,b,O){var o=z._milliseconds,c=qp(z._days),A=qp(z._months);M.isValid()&&(O=null==O||O,A&&nz(M,aM(M,"Month")+A*b),c&&tM(M,"Date",aM(M,"Date")+c*b),o&&M._d.setTime(M._d.valueOf()+o*b),O&&p.updateOffset(M,c||A))}gp.fn=cp.prototype,gp.invalid=op;var kp=Sp(1,"add"),Ep=Sp(-1,"subtract");function wp(M){return"string"==typeof M||M instanceof String}function Cp(M){return N(M)||W(M)||wp(M)||n(M)||Pp(M)||Dp(M)||null==M}function Dp(M){var z,b,p=c(M)&&!q(M),O=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],e=o.length;for(z=0;z<e;z+=1)b=o[z],O=O||A(M,b);return p&&O}function Pp(M){var z=o(M),b=!1;return z&&(b=0===M.filter((function(z){return!n(z)&&wp(M)})).length),z&&b}function xp(M){var z,b,p=c(M)&&!q(M),O=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(z=0;z<o.length;z+=1)b=o[z],O=O||A(M,b);return p&&O}function Ip(M,z){var b=M.diff(z,"days",!0);return b<-6?"sameElse":b<-1?"lastWeek":b<0?"lastDay":b<1?"sameDay":b<2?"nextDay":b<7?"nextWeek":"sameElse"}function Fp(M,z){1===arguments.length&&(arguments[0]?Cp(arguments[0])?(M=arguments[0],z=void 0):xp(arguments[0])&&(z=arguments[0],M=void 0):(M=void 0,z=void 0));var b=M||Kb(),O=tp(b,this).startOf("day"),o=p.calendarFormat(this,O)||"sameElse",c=z&&(T(z[o])?z[o].call(this,b):z[o]);return this.format(c||this.localeData().calendar(o,this,Kb(b)))}function Hp(){return new L(this)}function Yp(M,z){var b=N(M)?M:Kb(M);return!(!this.isValid()||!b.isValid())&&("millisecond"===(z=pM(z)||"millisecond")?this.valueOf()>b.valueOf():b.valueOf()<this.clone().startOf(z).valueOf())}function Up(M,z){var b=N(M)?M:Kb(M);return!(!this.isValid()||!b.isValid())&&("millisecond"===(z=pM(z)||"millisecond")?this.valueOf()<b.valueOf():this.clone().endOf(z).valueOf()<b.valueOf())}function jp(M,z,b,p){var O=N(M)?M:Kb(M),o=N(z)?z:Kb(z);return!!(this.isValid()&&O.isValid()&&o.isValid())&&("("===(p=p||"()")[0]?this.isAfter(O,b):!this.isBefore(O,b))&&(")"===p[1]?this.isBefore(o,b):!this.isAfter(o,b))}function Gp(M,z){var b,p=N(M)?M:Kb(M);return!(!this.isValid()||!p.isValid())&&("millisecond"===(z=pM(z)||"millisecond")?this.valueOf()===p.valueOf():(b=p.valueOf(),this.clone().startOf(z).valueOf()<=b&&b<=this.clone().endOf(z).valueOf()))}function Vp(M,z){return this.isSame(M,z)||this.isAfter(M,z)}function Kp(M,z){return this.isSame(M,z)||this.isBefore(M,z)}function Qp(M,z,b){var p,O,o;if(!this.isValid())return NaN;if(!(p=tp(M,this)).isValid())return NaN;switch(O=6e4*(p.utcOffset()-this.utcOffset()),z=pM(z)){case"year":o=Jp(this,p)/12;break;case"month":o=Jp(this,p);break;case"quarter":o=Jp(this,p)/3;break;case"second":o=(this-p)/1e3;break;case"minute":o=(this-p)/6e4;break;case"hour":o=(this-p)/36e5;break;case"day":o=(this-p-O)/864e5;break;case"week":o=(this-p-O)/6048e5;break;default:o=this-p}return b?o:eM(o)}function Jp(M,z){if(M.date()<z.date())return-Jp(z,M);var b=12*(z.year()-M.year())+(z.month()-M.month()),p=M.clone().add(b,"months");return-(b+(z-p<0?(z-p)/(p-M.clone().add(b-1,"months")):(z-p)/(M.clone().add(b+1,"months")-p)))||0}function Zp(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $p(M){if(!this.isValid())return null;var z=!0!==M,b=z?this.clone().utc():this;return b.year()<0||b.year()>9999?H(b,z?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?z?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(b,"Z")):H(b,z?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function MO(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var M,z,b,p,O="moment",o="";return this.isLocal()||(O=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),M="["+O+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",b="-MM-DD[T]HH:mm:ss.SSS",p=o+'[")]',this.format(M+z+b+p)}function zO(M){M||(M=this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var z=H(this,M);return this.localeData().postformat(z)}function bO(M,z){return this.isValid()&&(N(M)&&M.isValid()||Kb(M).isValid())?gp({to:this,from:M}).locale(this.locale()).humanize(!z):this.localeData().invalidDate()}function pO(M){return this.from(Kb(),M)}function OO(M,z){return this.isValid()&&(N(M)&&M.isValid()||Kb(M).isValid())?gp({from:this,to:M}).locale(this.locale()).humanize(!z):this.localeData().invalidDate()}function oO(M){return this.to(Kb(),M)}function cO(M){var z;return void 0===M?this._locale._abbr:(null!=(z=ub(M))&&(this._locale=z),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var AO=X("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(M){return void 0===M?this.localeData():this.locale(M)}));function qO(){return this._locale}var eO=1e3,nO=60*eO,WO=60*nO,aO=3506328*WO;function tO(M,z){return(M%z+z)%z}function dO(M,z,b){return M<100&&M>=0?new Date(M+400,z,b)-aO:new Date(M,z,b).valueOf()}function iO(M,z,b){return M<100&&M>=0?Date.UTC(M+400,z,b)-aO:Date.UTC(M,z,b)}function rO(M){var z,b;if(void 0===(M=pM(M))||"millisecond"===M||!this.isValid())return this;switch(b=this._isUTC?iO:dO,M){case"year":z=b(this.year(),0,1);break;case"quarter":z=b(this.year(),this.month()-this.month()%3,1);break;case"month":z=b(this.year(),this.month(),1);break;case"week":z=b(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":z=b(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":z=b(this.year(),this.month(),this.date());break;case"hour":z=this._d.valueOf(),z-=tO(z+(this._isUTC?0:this.utcOffset()*nO),WO);break;case"minute":z=this._d.valueOf(),z-=tO(z,nO);break;case"second":z=this._d.valueOf(),z-=tO(z,eO)}return this._d.setTime(z),p.updateOffset(this,!0),this}function sO(M){var z,b;if(void 0===(M=pM(M))||"millisecond"===M||!this.isValid())return this;switch(b=this._isUTC?iO:dO,M){case"year":z=b(this.year()+1,0,1)-1;break;case"quarter":z=b(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":z=b(this.year(),this.month()+1,1)-1;break;case"week":z=b(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":z=b(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":z=b(this.year(),this.month(),this.date()+1)-1;break;case"hour":z=this._d.valueOf(),z+=WO-tO(z+(this._isUTC?0:this.utcOffset()*nO),WO)-1;break;case"minute":z=this._d.valueOf(),z+=nO-tO(z,nO)-1;break;case"second":z=this._d.valueOf(),z+=eO-tO(z,eO)-1}return this._d.setTime(z),p.updateOffset(this,!0),this}function uO(){return this._d.valueOf()-6e4*(this._offset||0)}function RO(){return Math.floor(this.valueOf()/1e3)}function fO(){return new Date(this.valueOf())}function lO(){var M=this;return[M.year(),M.month(),M.date(),M.hour(),M.minute(),M.second(),M.millisecond()]}function LO(){var M=this;return{years:M.year(),months:M.month(),date:M.date(),hours:M.hours(),minutes:M.minutes(),seconds:M.seconds(),milliseconds:M.milliseconds()}}function NO(){return this.isValid()?this.toISOString():null}function BO(){return s(this)}function XO(){return t({},r(this))}function hO(){return r(this).overflow}function mO(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function gO(M,z){var b,O,o,c=this._eras||ub("en")._eras;for(b=0,O=c.length;b<O;++b)switch("string"==typeof c[b].since&&(o=p(c[b].since).startOf("day"),c[b].since=o.valueOf()),typeof c[b].until){case"undefined":c[b].until=1/0;break;case"string":o=p(c[b].until).startOf("day").valueOf(),c[b].until=o.valueOf()}return c}function TO(M,z,b){var p,O,o,c,A,q=this.eras();for(M=M.toUpperCase(),p=0,O=q.length;p<O;++p)if(o=q[p].name.toUpperCase(),c=q[p].abbr.toUpperCase(),A=q[p].narrow.toUpperCase(),b)switch(z){case"N":case"NN":case"NNN":if(c===M)return q[p];break;case"NNNN":if(o===M)return q[p];break;case"NNNNN":if(A===M)return q[p]}else if([o,c,A].indexOf(M)>=0)return q[p]}function _O(M,z){var b=M.since<=M.until?1:-1;return void 0===z?p(M.since).year():p(M.since).year()+(z-M.offset)*b}function yO(){var M,z,b,p=this.localeData().eras();for(M=0,z=p.length;M<z;++M){if(b=this.clone().startOf("day").valueOf(),p[M].since<=b&&b<=p[M].until)return p[M].name;if(p[M].until<=b&&b<=p[M].since)return p[M].name}return""}function SO(){var M,z,b,p=this.localeData().eras();for(M=0,z=p.length;M<z;++M){if(b=this.clone().startOf("day").valueOf(),p[M].since<=b&&b<=p[M].until)return p[M].narrow;if(p[M].until<=b&&b<=p[M].since)return p[M].narrow}return""}function vO(){var M,z,b,p=this.localeData().eras();for(M=0,z=p.length;M<z;++M){if(b=this.clone().startOf("day").valueOf(),p[M].since<=b&&b<=p[M].until)return p[M].abbr;if(p[M].until<=b&&b<=p[M].since)return p[M].abbr}return""}function kO(){var M,z,b,O,o=this.localeData().eras();for(M=0,z=o.length;M<z;++M)if(b=o[M].since<=o[M].until?1:-1,O=this.clone().startOf("day").valueOf(),o[M].since<=O&&O<=o[M].until||o[M].until<=O&&O<=o[M].since)return(this.year()-p(o[M].since).year())*b+o[M].offset;return this.year()}function EO(M){return A(this,"_erasNameRegex")||FO.call(this),M?this._erasNameRegex:this._erasRegex}function wO(M){return A(this,"_erasAbbrRegex")||FO.call(this),M?this._erasAbbrRegex:this._erasRegex}function CO(M){return A(this,"_erasNarrowRegex")||FO.call(this),M?this._erasNarrowRegex:this._erasRegex}function DO(M,z){return z.erasAbbrRegex(M)}function PO(M,z){return z.erasNameRegex(M)}function xO(M,z){return z.erasNarrowRegex(M)}function IO(M,z){return z._eraYearOrdinalRegex||TM}function FO(){var M,z,b=[],p=[],O=[],o=[],c=this.eras();for(M=0,z=c.length;M<z;++M)p.push(DM(c[M].name)),b.push(DM(c[M].abbr)),O.push(DM(c[M].narrow)),o.push(DM(c[M].name)),o.push(DM(c[M].abbr)),o.push(DM(c[M].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+p.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+b.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+O.join("|")+")","i")}function HO(M,z){x(0,[M,M.length],0,z)}function YO(M){return QO.call(this,M,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function UO(M){return QO.call(this,M,this.isoWeek(),this.isoWeekday(),1,4)}function jO(){return Bz(this.year(),1,4)}function GO(){return Bz(this.isoWeekYear(),1,4)}function VO(){var M=this.localeData()._week;return Bz(this.year(),M.dow,M.doy)}function KO(){var M=this.localeData()._week;return Bz(this.weekYear(),M.dow,M.doy)}function QO(M,z,b,p,O){var o;return null==M?Nz(this,p,O).year:(z>(o=Bz(M,p,O))&&(z=o),JO.call(this,M,z,b,p,O))}function JO(M,z,b,p,O){var o=Lz(M,z,b,p,O),c=fz(o.year,0,o.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}function ZO(M){return null==M?Math.ceil((this.month()+1)/3):this.month(3*(M-1)+this.month()%3)}x("N",0,0,"eraAbbr"),x("NN",0,0,"eraAbbr"),x("NNN",0,0,"eraAbbr"),x("NNNN",0,0,"eraName"),x("NNNNN",0,0,"eraNarrow"),x("y",["y",1],"yo","eraYear"),x("y",["yy",2],0,"eraYear"),x("y",["yyy",3],0,"eraYear"),x("y",["yyyy",4],0,"eraYear"),EM("N",DO),EM("NN",DO),EM("NNN",DO),EM("NNNN",PO),EM("NNNNN",xO),xM(["N","NN","NNN","NNNN","NNNNN"],(function(M,z,b,p){var O=b._locale.erasParse(M,p,b._strict);O?r(b).era=O:r(b).invalidEra=M})),EM("y",TM),EM("yy",TM),EM("yyy",TM),EM("yyyy",TM),EM("yo",IO),xM(["y","yy","yyy","yyyy"],YM),xM(["yo"],(function(M,z,b,p){var O;b._locale._eraYearOrdinalRegex&&(O=M.match(b._locale._eraYearOrdinalRegex)),b._locale.eraYearOrdinalParse?z[YM]=b._locale.eraYearOrdinalParse(M,O):z[YM]=parseInt(M,10)})),x(0,["gg",2],0,(function(){return this.weekYear()%100})),x(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),HO("gggg","weekYear"),HO("ggggg","weekYear"),HO("GGGG","isoWeekYear"),HO("GGGGG","isoWeekYear"),bM("weekYear","gg"),bM("isoWeekYear","GG"),cM("weekYear",1),cM("isoWeekYear",1),EM("G",_M),EM("g",_M),EM("GG",NM,RM),EM("gg",NM,RM),EM("GGGG",mM,lM),EM("gggg",mM,lM),EM("GGGGG",gM,LM),EM("ggggg",gM,LM),IM(["gggg","ggggg","GGGG","GGGGG"],(function(M,z,b,p){z[p.substr(0,2)]=nM(M)})),IM(["gg","GG"],(function(M,z,b,O){z[O]=p.parseTwoDigitYear(M)})),x("Q",0,"Qo","quarter"),bM("quarter","Q"),cM("quarter",7),EM("Q",uM),xM("Q",(function(M,z){z[UM]=3*(nM(M)-1)})),x("D",["DD",2],"Do","date"),bM("date","D"),cM("date",9),EM("D",NM),EM("DD",NM,RM),EM("Do",(function(M,z){return M?z._dayOfMonthOrdinalParse||z._ordinalParse:z._dayOfMonthOrdinalParseLenient})),xM(["D","DD"],jM),xM("Do",(function(M,z){z[jM]=nM(M.match(NM)[0])}));var $O=WM("Date",!0);function Mo(M){var z=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==M?z:this.add(M-z,"d")}x("DDD",["DDDD",3],"DDDo","dayOfYear"),bM("dayOfYear","DDD"),cM("dayOfYear",4),EM("DDD",hM),EM("DDDD",fM),xM(["DDD","DDDD"],(function(M,z,b){b._dayOfYear=nM(M)})),x("m",["mm",2],0,"minute"),bM("minute","m"),cM("minute",14),EM("m",NM),EM("mm",NM,RM),xM(["m","mm"],VM);var zo=WM("Minutes",!1);x("s",["ss",2],0,"second"),bM("second","s"),cM("second",15),EM("s",NM),EM("ss",NM,RM),xM(["s","ss"],KM);var bo,po,Oo=WM("Seconds",!1);for(x("S",0,0,(function(){return~~(this.millisecond()/100)})),x(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),x(0,["SSS",3],0,"millisecond"),x(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),x(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),x(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),x(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),x(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),x(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),bM("millisecond","ms"),cM("millisecond",16),EM("S",hM,uM),EM("SS",hM,RM),EM("SSS",hM,fM),bo="SSSS";bo.length<=9;bo+="S")EM(bo,TM);function oo(M,z){z[QM]=nM(1e3*("0."+M))}for(bo="S";bo.length<=9;bo+="S")xM(bo,oo);function co(){return this._isUTC?"UTC":""}function Ao(){return this._isUTC?"Coordinated Universal Time":""}po=WM("Milliseconds",!1),x("z",0,0,"zoneAbbr"),x("zz",0,0,"zoneName");var qo=L.prototype;function eo(M){return Kb(1e3*M)}function no(){return Kb.apply(null,arguments).parseZone()}function Wo(M){return M}qo.add=kp,qo.calendar=Fp,qo.clone=Hp,qo.diff=Qp,qo.endOf=sO,qo.format=zO,qo.from=bO,qo.fromNow=pO,qo.to=OO,qo.toNow=oO,qo.get=dM,qo.invalidAt=hO,qo.isAfter=Yp,qo.isBefore=Up,qo.isBetween=jp,qo.isSame=Gp,qo.isSameOrAfter=Vp,qo.isSameOrBefore=Kp,qo.isValid=BO,qo.lang=AO,qo.locale=cO,qo.localeData=qO,qo.max=Jb,qo.min=Qb,qo.parsingFlags=XO,qo.set=rM,qo.startOf=rO,qo.subtract=Ep,qo.toArray=lO,qo.toObject=LO,qo.toDate=fO,qo.toISOString=$p,qo.inspect=MO,"undefined"!=typeof Symbol&&null!=Symbol.for&&(qo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),qo.toJSON=NO,qo.toString=Zp,qo.unix=RO,qo.valueOf=uO,qo.creationData=mO,qo.eraName=yO,qo.eraNarrow=SO,qo.eraAbbr=vO,qo.eraYear=kO,qo.year=sz,qo.isLeapYear=uz,qo.weekYear=YO,qo.isoWeekYear=UO,qo.quarter=qo.quarters=ZO,qo.month=Wz,qo.daysInMonth=az,qo.week=qo.weeks=Tz,qo.isoWeek=qo.isoWeeks=_z,qo.weeksInYear=VO,qo.weeksInWeekYear=KO,qo.isoWeeksInYear=jO,qo.isoWeeksInISOWeekYear=GO,qo.date=$O,qo.day=qo.days=Uz,qo.weekday=jz,qo.isoWeekday=Gz,qo.dayOfYear=Mo,qo.hour=qo.hours=Ob,qo.minute=qo.minutes=zo,qo.second=qo.seconds=Oo,qo.millisecond=qo.milliseconds=po,qo.utcOffset=ip,qo.utc=sp,qo.local=up,qo.parseZone=Rp,qo.hasAlignedHourOffset=fp,qo.isDST=lp,qo.isLocal=Np,qo.isUtcOffset=Bp,qo.isUtc=Xp,qo.isUTC=Xp,qo.zoneAbbr=co,qo.zoneName=Ao,qo.dates=X("dates accessor is deprecated. Use date instead.",$O),qo.months=X("months accessor is deprecated. Use month instead",Wz),qo.years=X("years accessor is deprecated. Use year instead",sz),qo.zone=X("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",rp),qo.isDSTShifted=X("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Lp);var ao=S.prototype;function to(M,z,b,p){var O=ub(),o=d().set(p,z);return O[b](o,M)}function io(M,z,b){if(n(M)&&(z=M,M=void 0),M=M||"",null!=z)return to(M,z,b,"month");var p,O=[];for(p=0;p<12;p++)O[p]=to(M,p,b,"month");return O}function ro(M,z,b,p){"boolean"==typeof M?(n(z)&&(b=z,z=void 0),z=z||""):(b=z=M,M=!1,n(z)&&(b=z,z=void 0),z=z||"");var O,o=ub(),c=M?o._week.dow:0,A=[];if(null!=b)return to(z,(b+c)%7,p,"day");for(O=0;O<7;O++)A[O]=to(z,(O+c)%7,p,"day");return A}function so(M,z){return io(M,z,"months")}function uo(M,z){return io(M,z,"monthsShort")}function Ro(M,z,b){return ro(M,z,b,"weekdays")}function fo(M,z,b){return ro(M,z,b,"weekdaysShort")}function lo(M,z,b){return ro(M,z,b,"weekdaysMin")}ao.calendar=k,ao.longDateFormat=j,ao.invalidDate=V,ao.ordinal=J,ao.preparse=Wo,ao.postformat=Wo,ao.relativeTime=$,ao.pastFuture=MM,ao.set=_,ao.eras=gO,ao.erasParse=TO,ao.erasConvertYear=_O,ao.erasAbbrRegex=wO,ao.erasNameRegex=EO,ao.erasNarrowRegex=CO,ao.months=cz,ao.monthsShort=Az,ao.monthsParse=ez,ao.monthsRegex=dz,ao.monthsShortRegex=tz,ao.week=Xz,ao.firstDayOfYear=gz,ao.firstDayOfWeek=mz,ao.weekdays=xz,ao.weekdaysMin=Fz,ao.weekdaysShort=Iz,ao.weekdaysParse=Yz,ao.weekdaysRegex=Vz,ao.weekdaysShortRegex=Kz,ao.weekdaysMinRegex=Qz,ao.isPM=bb,ao.meridiem=ob,ib("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(M){var z=M%10;return M+(1===nM(M%100/10)?"th":1===z?"st":2===z?"nd":3===z?"rd":"th")}}),p.lang=X("moment.lang is deprecated. Use moment.locale instead.",ib),p.langData=X("moment.langData is deprecated. Use moment.localeData instead.",ub);var Lo=Math.abs;function No(){var M=this._data;return this._milliseconds=Lo(this._milliseconds),this._days=Lo(this._days),this._months=Lo(this._months),M.milliseconds=Lo(M.milliseconds),M.seconds=Lo(M.seconds),M.minutes=Lo(M.minutes),M.hours=Lo(M.hours),M.months=Lo(M.months),M.years=Lo(M.years),this}function Bo(M,z,b,p){var O=gp(z,b);return M._milliseconds+=p*O._milliseconds,M._days+=p*O._days,M._months+=p*O._months,M._bubble()}function Xo(M,z){return Bo(this,M,z,1)}function ho(M,z){return Bo(this,M,z,-1)}function mo(M){return M<0?Math.floor(M):Math.ceil(M)}function go(){var M,z,b,p,O,o=this._milliseconds,c=this._days,A=this._months,q=this._data;return o>=0&&c>=0&&A>=0||o<=0&&c<=0&&A<=0||(o+=864e5*mo(_o(A)+c),c=0,A=0),q.milliseconds=o%1e3,M=eM(o/1e3),q.seconds=M%60,z=eM(M/60),q.minutes=z%60,b=eM(z/60),q.hours=b%24,c+=eM(b/24),A+=O=eM(To(c)),c-=mo(_o(O)),p=eM(A/12),A%=12,q.days=c,q.months=A,q.years=p,this}function To(M){return 4800*M/146097}function _o(M){return 146097*M/4800}function yo(M){if(!this.isValid())return NaN;var z,b,p=this._milliseconds;if("month"===(M=pM(M))||"quarter"===M||"year"===M)switch(z=this._days+p/864e5,b=this._months+To(z),M){case"month":return b;case"quarter":return b/3;case"year":return b/12}else switch(z=this._days+Math.round(_o(this._months)),M){case"week":return z/7+p/6048e5;case"day":return z+p/864e5;case"hour":return 24*z+p/36e5;case"minute":return 1440*z+p/6e4;case"second":return 86400*z+p/1e3;case"millisecond":return Math.floor(864e5*z)+p;default:throw new Error("Unknown unit "+M)}}function So(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*nM(this._months/12):NaN}function vo(M){return function(){return this.as(M)}}var ko=vo("ms"),Eo=vo("s"),wo=vo("m"),Co=vo("h"),Do=vo("d"),Po=vo("w"),xo=vo("M"),Io=vo("Q"),Fo=vo("y");function Ho(){return gp(this)}function Yo(M){return M=pM(M),this.isValid()?this[M+"s"]():NaN}function Uo(M){return function(){return this.isValid()?this._data[M]:NaN}}var jo=Uo("milliseconds"),Go=Uo("seconds"),Vo=Uo("minutes"),Ko=Uo("hours"),Qo=Uo("days"),Jo=Uo("months"),Zo=Uo("years");function $o(){return eM(this.days()/7)}var Mc=Math.round,zc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function bc(M,z,b,p,O){return O.relativeTime(z||1,!!b,M,p)}function pc(M,z,b,p){var O=gp(M).abs(),o=Mc(O.as("s")),c=Mc(O.as("m")),A=Mc(O.as("h")),q=Mc(O.as("d")),e=Mc(O.as("M")),n=Mc(O.as("w")),W=Mc(O.as("y")),a=o<=b.ss&&["s",o]||o<b.s&&["ss",o]||c<=1&&["m"]||c<b.m&&["mm",c]||A<=1&&["h"]||A<b.h&&["hh",A]||q<=1&&["d"]||q<b.d&&["dd",q];return null!=b.w&&(a=a||n<=1&&["w"]||n<b.w&&["ww",n]),(a=a||e<=1&&["M"]||e<b.M&&["MM",e]||W<=1&&["y"]||["yy",W])[2]=z,a[3]=+M>0,a[4]=p,bc.apply(null,a)}function Oc(M){return void 0===M?Mc:"function"==typeof M&&(Mc=M,!0)}function oc(M,z){return void 0!==zc[M]&&(void 0===z?zc[M]:(zc[M]=z,"s"===M&&(zc.ss=z-1),!0))}function cc(M,z){if(!this.isValid())return this.localeData().invalidDate();var b,p,O=!1,o=zc;return"object"==typeof M&&(z=M,M=!1),"boolean"==typeof M&&(O=M),"object"==typeof z&&(o=Object.assign({},zc,z),null!=z.s&&null==z.ss&&(o.ss=z.s-1)),p=pc(this,!O,o,b=this.localeData()),O&&(p=b.pastFuture(+this,p)),b.postformat(p)}var Ac=Math.abs;function qc(M){return(M>0)-(M<0)||+M}function ec(){if(!this.isValid())return this.localeData().invalidDate();var M,z,b,p,O,o,c,A,q=Ac(this._milliseconds)/1e3,e=Ac(this._days),n=Ac(this._months),W=this.asSeconds();return W?(M=eM(q/60),z=eM(M/60),q%=60,M%=60,b=eM(n/12),n%=12,p=q?q.toFixed(3).replace(/\.?0+$/,""):"",O=W<0?"-":"",o=qc(this._months)!==qc(W)?"-":"",c=qc(this._days)!==qc(W)?"-":"",A=qc(this._milliseconds)!==qc(W)?"-":"",O+"P"+(b?o+b+"Y":"")+(n?o+n+"M":"")+(e?c+e+"D":"")+(z||M||q?"T":"")+(z?A+z+"H":"")+(M?A+M+"M":"")+(q?A+p+"S":"")):"P0D"}var nc=cp.prototype;return nc.isValid=Op,nc.abs=No,nc.add=Xo,nc.subtract=ho,nc.as=yo,nc.asMilliseconds=ko,nc.asSeconds=Eo,nc.asMinutes=wo,nc.asHours=Co,nc.asDays=Do,nc.asWeeks=Po,nc.asMonths=xo,nc.asQuarters=Io,nc.asYears=Fo,nc.valueOf=So,nc._bubble=go,nc.clone=Ho,nc.get=Yo,nc.milliseconds=jo,nc.seconds=Go,nc.minutes=Vo,nc.hours=Ko,nc.days=Qo,nc.weeks=$o,nc.months=Jo,nc.years=Zo,nc.humanize=cc,nc.toISOString=ec,nc.toString=ec,nc.toJSON=ec,nc.locale=cO,nc.localeData=qO,nc.toIsoString=X("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ec),nc.lang=AO,x("X",0,0,"unix"),x("x",0,0,"valueOf"),EM("x",_M),EM("X",vM),xM("X",(function(M,z,b){b._d=new Date(1e3*parseFloat(M))})),xM("x",(function(M,z,b){b._d=new Date(nM(M))})),
2
2
  //! moment.js
3
3
  p.version="2.29.4",O(Kb),p.fn=qo,p.min=$b,p.max=Mp,p.now=zp,p.utc=d,p.unix=eo,p.months=so,p.isDate=W,p.locale=ib,p.invalid=u,p.duration=gp,p.isMoment=N,p.weekdays=Ro,p.parseZone=no,p.localeData=ub,p.isDuration=Ap,p.monthsShort=uo,p.weekdaysMin=lo,p.defineLocale=rb,p.updateLocale=sb,p.locales=Rb,p.weekdaysShort=fo,p.normalizeUnits=pM,p.relativeTimeRounding=Oc,p.relativeTimeThreshold=oc,p.calendarFormat=Ip,p.prototype=qo,p.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"},p}()})),RM=rM((function(M){
4
4
  //! moment-timezone.js