@digitransit-component/digitransit-component-autosuggest 1.7.16 → 1.7.20

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(e,c){"object"==typeof exports&&"undefined"!=typeof module?c(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"],c):c((e="undefined"!=typeof globalThis?globalThis:e||self).DTAutosuggest={},e.PropTypes,e.React,e.i18next,e.cx,e.Autosuggest,e.debounce,e.flatten,e.take,e.isString,e.orderBy,e.uniqWith,e.isEqual,e.memoize,e.escapeRegExp,e.cloneDeep,e.get,e.SuggestionItem,e.Icon,e.isEmpty,e.ReactModal,e.DialogModal)}(this,(function(e,c,n,o,a,t,i,r,M,s,p,u,l,d,b,A,z,f,h,O,L,m){"use strict";function q(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var N=q(c),g=q(n),W=q(o),T=q(a),X=q(t),B=q(i),_=q(r),y=q(M),S=q(s),v=q(p),k=q(u),C=q(l),E=q(d),R=q(b),w=q(A),D=q(z),P=q(f),x=q(h),I=q(O),H=q(L),Y=q(m);function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function U(){return U=Object.assign||function(e){for(var c=1;c<arguments.length;c++){var n=arguments[c];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},U.apply(this,arguments)}function j(e,c){(null==c||c>e.length)&&(c=e.length);for(var n=0,o=new Array(c);n<c;n++)o[n]=e[n];return o}function G(e,c){if(e){if("string"==typeof e)return j(e,c);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,c):void 0}}function V(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||G(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,c){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}function Q(e,c){for(var n=0;n<c.length;n++){var o=c[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function J(e,c){return J=Object.setPrototypeOf||function(e,c){return e.__proto__=c,e},J(e,c)}function Z(e,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(c&&c.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),c&&J(e,c)}function $(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ee(e,c){return!c||"object"!==F(c)&&"function"!=typeof c?$(e):c}function ce(e){return ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ce(e)}function ne(e,c){return function(e){if(Array.isArray(e))return e}(e)||function(e,c){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,a=!1,t=void 0;try{for(var i,r=e[Symbol.iterator]();!(o=(i=r.next()).done)&&(n.push(i.value),!c||n.length!==c);o=!0);}catch(e){a=!0,t=e}finally{try{o||null==r.return||r.return()}finally{if(a)throw t}}return n}}(e,c)||G(e,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,c){return e&&c&&e===c}function ae(e,c){var n=e.properties,o=c.properties;if("FutureRoute"===e.type&&"FutureRoute"===c.type){var a=n.origin,t=n.destination,i=o.origin,r=o.destination;return!!oe("".concat(a.name,"//").concat(a.locality,"//").concat(t.name,"//").concat(t.locality),"".concat(i.name,"//").concat(i.locality,"//").concat(r.name,"//").concat(r.locality))}if("FutureRoute"===e.type||"FutureRoute"===c.type)return!1;if(("bikeRentalStation"===n.layer||"favouriteBikeRentalStation"===n.layer)&&("bikeRentalStation"===o.layer||"favouriteBikeRentalStation"===o.layer)||"bikestation"===n.layer&&"bikestation"===o.layer)return n.labelId===o.labelId;if(oe(n.gtfsId,o.gtfsId))return!0;if(n.gtfsId&&o.gid&&o.gid.includes(n.gtfsId))return!0;if(o.gtfsId&&n.gid&&n.gid.includes(o.gtfsId))return!0;var M=e&&e.geometry?e.geometry.coordinates:void 0,s=c&&c.geometry?c.geometry.coordinates:void 0;return!!(M&&s&&Math.abs(M[0]-s[0])<1e-6&&Math.abs(M[1]-s[1])<1e-6&&(oe(n.name,o.name)||oe(n.label,o.label)||oe(n.address,o.address)||oe(n.address,o.label)||oe(n.label,o.address)))}var te=function(e){return S.default(e)?e.toLowerCase():""},ie={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:"bikeRentalStation"},re=function(e,c){if(!S.default(e)||0===e.length)return 0;return["name","label","address","shortName"].map((function(e){return c[e]})).filter((function(e){return S.default(e)&&e.length>0})).map((function(c){var n=te(c);return 0===n.indexOf(e)?.5+e.length/n.length:.5*e.length/(e.length+1)})).reduce((function(e,c){return c>e?c:e}),0)},Me=function(e,c){switch(e){case ie.CurrentPosition:return 1;case ie.Back:return.9;case ie.SelectFromMap:return.8;case ie.SelectFromOwnLocations:return.79;case ie.FavouriteStation:case ie.FavouritePlace:case ie.FavouriteStop:case ie.FavouriteRoute:return.45;case ie.FutureRoute:return.44;case ie.Station:return S.default(c)&&0===c.indexOf("gtfs")?.43:.42;default:return.4;case ie.Stop:return.35;case ie.BikeRentalStation:return.1}},se=function(e,c){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!Array.isArray(c))return c;var o=function(c){return S.default(c)&&e&&e.test(c)},a=te(n),t=o(a),i=v.default(c,[function(e){return t&&o(te(e.properties.shortName))&&0===te(e.properties.shortName).indexOf(a)?1:0},function(e){var c=e.properties,n=c.confidence,o=c.layer,t=c.source;if(0===a.length)return Me(o,t);if(!n){var i=Me(o,t)+re(a,e.properties);return o===ie.BikeRentalStation?i-.8:i}switch(o){case ie.Station:var r=0===t.indexOf("gtfs")?.05:.01;return Math.min(n+r,1);default:return n;case ie.Stop:return n-.1}}],["desc","desc"]);return k.default(i,ae)},pe=function(e,c){return null!=c&&-1!==e.lastIndexOf(c)?e.substring(0,e.lastIndexOf(c)-1):e},ue=function(e){return e.localadmin||e.locality||e.address&&e.address.lastIndexOf(",")<e.address.length-2&&e.address.substring(e.address.lastIndexOf(",")+2)||""},le=function(e){var c=e.id,n=e.code;return n||(void 0!==c&&void 0!==c.indexOf&&-1!==c.indexOf("#")?c.substring(c.indexOf("#")+1):void 0)},de=E.default((function(e){var c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.layer){case"currentPosition":return[e.labelId,e.address];case"selectFromMap":case"ownLocations":case"back":return[e.labelId];case"favouritePlace":return[e.name||e.address&&e.address.split(",")[0],e.address.replace(new RegExp("".concat(R.default(e.name),"(,)?( )?")),"")];case"favouriteBikeRentalStation":case"bikeRentalStation":return[e.name];case"favouriteRoute":case"route-BUS":case"route-TRAM":case"route-RAIL":case"route-SUBWAY":case"route-FERRY":case"route-AIRPLANE":return!c&&e.shortName?[e.gtfsId,e.mode.toLowerCase(),e.longName]:[e.shortName,e.longName,e.agency?e.agency.name:void 0];case"venue":case"address":case"street":return[e.name,e.label.replace(new RegExp("".concat(R.default(e.name),"(,)?( )?")),"")];case"favouriteStop":case"stop":return c?[e.name||e.label||e.address&&e.address.split(",")[0],ue(e)]:[e.name,e.id,le(e),ue(e)];default:return[e.name||e.label||e.address&&e.address.split(",")[0],ue(e)]}}),(function(e,c){var n=w.default(e);return n.plain=c,n}));function be(e){return k.default(e,(function(e,c){var n=C.default(de(e.properties),de(c.properties))&&e.properties.layer===c.properties.layer;return(!n||"FutureRoute"!==e.type&&"FutureRoute"!==c.type)&&n}))}function Ae(e,c,n){if("string"==typeof c&&c.length>0){var o=c.toLowerCase().trim(),a=o.includes(" ")||o.includes(",");return e.filter((function(e){var c=[];n.forEach((function(n){var o=D.default(e,n);a||"properties.label"!==n&&"address"!==n||!o||((o=o.split(",")).length>2?o.splice(o.length-2,2):o.length>1&&o.splice(o.length-1,1),o=o.join(",")),o&&(c=a?c.concat(o.toLowerCase()):c.concat(o.toLowerCase().replace(/,/g," ").split(" ")))}));for(var t=0;t<c.length;t++)if(0===c[t].indexOf(o))return!0;return!1}))}return e}function ze(e,c){return e?Object.keys(e).map((function(n){var o=c||n,a=e[n];return"object"===F(a)?ze(a,o):"".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(a))})).join("&"):""}var fe=require("axios").default;function he(e,c){return fe.get(encodeURI(e)+(c?(-1===e.search(/\?/)?"?":"&")+ze(c):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then((function(e){return e.data}))}function Oe(e,c,n,o,a,t,i,r){var M=e?e.trim():null;if(null==M||M.length<1||i&&!i.test(M))return Promise.resolve([]);var s=t||"https://api.digitransit.fi/geocoding/v1/search",p=U({text:M},c,o,{lang:n});(a&&(p=U({},p,{sources:a})),r)&&(p=U({},p,{layers:r.toString()}));return he(s,p).then((function(e){return e.features}))}function Le(e,c){if(!e||e.length<1)return Promise.resolve([]);var n="",o=e.map((function(e){var c="stop"===e.type?"stop":"station",o="gtfs".concat(e.gtfsId.split(":")[0].toLowerCase(),":").concat(c,":GTFS:").concat(e.gtfsId);return e.code&&(o+="#".concat(e.code)),n+="".concat(o,","),U({},e,{gid:o})})).reduce((function(e,c){return e[c.gid]=c,e}),{});return he(c,{ids:n.slice(0,-1)}).then((function(e){return e.features.map((function(e){var c,n,a;return{type:"FavouriteStop",properties:{gid:o[e.properties.gid].gid,code:o[e.properties.gid].code,gtfsId:o[e.properties.gid].gtfsId,lastUpdated:o[e.properties.gid].lastUpdated,favouriteId:o[e.properties.gid].favouriteId,address:e.properties.label,layer:(c=e.properties,n=c.layer,a=c.type,"stop"===n||"favouriteStop"===n||"stop"===a||"favouriteStop"===a?"favouriteStop":"favouriteStation")},geometry:e.geometry}}))}))}function me(e,c,n){var o=Ae(e,c,["properties.name","properties.label","properties.address","properties.shortName","properties.longName"]);return n&&(o=o.filter((function(e){return!n.includes(e.properties.layer)}))),Promise.resolve(y.default(o,10).map((function(e){var c=U({},e,{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete c.properties.confidence,c})))}var qe=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE"],Ne=["favouritePlace","venue","address","street"];var ge=B.default((function(e,c,n,o,a,t,i,r,M,s){var p=i.input,u=o.getPositions,l=o.getFavouriteLocations,d=o.getOldSearches,b=o.getFavouriteStops,A=o.getLanguage,z=o.getStopAndStationsQuery,f=o.getFavouriteBikeRentalStationsQuery,h=o.getFavouriteBikeRentalStations,O=o.getFavouriteRoutesQuery,L=o.getFavouriteRoutes,m=o.getRoutesQuery,q=o.context,N=o.isPeliasLocationAware,g=o.minimalRegexp,W=o.lineRegexp,T=o.URL_PELIAS,X=o.URL_PELIAS_PLACE,B=o.feedIDs,S=o.geocodingSearchParams,v=o.geocodingSources,k=o.getFutureRoutes,C=o.cityBikeNetworks,E=!e||0===e.length,R=!c||0===c.length,w=u(q),D=[],P={type:"all",term:p,results:[]},x=A(q),I=N&&null!=s&&s.lat&&null!=s&&s.lon?{"focus.point.lat":s.lat.toFixed(3),"focus.point.lon":s.lon.toFixed(3)}:{},H=n?n.split("-")[1]:void 0;if(e.includes("CurrentPosition")&&"geolocation-not-supported"!==w.status&&D.push(function(e,c){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"CurrentLocation",address:c.address,lat:c.lat,lon:c.lon,properties:{labelId:"use-own-position",layer:"currentPosition",address:c.address,lat:c.lat,lon:c.lon},geometry:{type:"Point",coordinates:[c.lon,c.lat]}}]):Promise.resolve([])}(p,w)),(E||e.includes("MapPosition"))&&D.push(function(e){return"string"!=typeof e||0===e.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([])}(p)),e.includes("FutureRoutes")){var Y=k(q);D.push(y.default(Y,3))}if(e.includes("SelectFromOwnLocations")&&function(e,c,n){var o=c(e);if(o&&o.length>0)return!0;var a=n(e);return a&&a.length>0}(q,l,b)&&D.push(function(e){return"string"!=typeof e||0===e.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([])}(p)),E||e.includes("Locations")){var F=S;if(c.includes("Favourite")){var j=l(q);D.push(function(e,c){return Promise.resolve(Ae(e,c,["address","name"]).map((function(e){return{type:"FavouritePlace",properties:U({},e,{label:e.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[e.lon,e.lat]}}})))}(j,p)),c.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(R||c.includes("Datasource")){var G=B.map((function(e){return"gtfs".concat(e)})),K=v.concat(G).join(",");D.push(Oe(p,F,x,I,K,T,g,["station","venue","address","street"]))}if(R||c.includes("History")){var Q=d(q,"endpoint"),J=["currentPosition","selectFromMap","futureRoute","ownLocations","bikeRentalStation","stop","back"];J.push.apply(J,qe),D.push(me(Q,p,J))}}if(E||e.includes("Stops")){if(c.includes("Favourite")){var Z,$=b(q);Z=$.every((function(e){return"station"===e.type}))?Le($,X).then((function(e){return a?a(e,H):e})):z($).then((function(e){return Le(e,X)})).then((function(e){return a?a(e,H):e})),D.push(function(e,c){return e.then((function(e){return Ae(e,c,["properties.name","properties.name","properties.address"])}))}(Z,p))}if(R||c.includes("Datasource")){var ee={size:t},ce=B.map((function(e){return"gtfs".concat(e)})).join(",");D.push(Oe(p,ee,x,I,ce,T,g,["stop","station"]).then((function(e){return a?a(e,H):e})))}if(R||c.includes("History")){var ne=d(q).filter((function(e){return!e.properties.gid||e.properties.gid.includes("GTFS:")})),oe=["currentPosition","selectFromMap","futureRoute","ownLocations","favouritePlace","bikeRentalStation","back"];oe.push.apply(oe,qe),oe.push.apply(oe,Ne),n?("route-CITYBIKE"!==n&&(oe.push("bikeRentalStation"),oe.push("bikestation")),D.push(me(ne,p,oe).then((function(e){return a?a(e,H):e})))):D.push(me(ne,p,oe))}}if(E||e.includes("Routes")){if(c.includes("Favourite")){var ae=L(q);D.push(O(ae,p,H,M).then((function(e){return a?a(e,H,"Routes"):e})))}if(D.push(m(p,B,n,M).then((function(e){return a?a(e,H,"Routes"):e}))),R||c.includes("History")){var te=d(q),ie=["currentPosition","selectFromMap","futureRoute","favouritePlace","stop","station","ownLocations","back"];n&&("route-CITYBIKE"!==n&&(ie.push("bikeRentalStation"),ie.push("bikestation")),ie.push.apply(ie,V(qe.filter((function(e){return!(e===n)}))))),ie.push.apply(ie,Ne),D.push(me(te,p,ie).then((function(e){return a?a(e,H,"Routes"):e})))}}if(E||e.includes("BikeRentalStations")){if(c.includes("Favourite")){var re=h(q);D.push(f(re,p))}if(R||c.includes("Datasource")){var Me={size:t};D.push(Oe(p,Me,x,I,C.join(","),T,g,["bikestation"]).then((function(e){return a?a(e,H,"BikeRentalStations"):e})))}}Promise.all(D).then(_.default).then(be).then((function(e){P.results=e})).catch((function(e){P.error=e})).then((function(){r(U({},P,{results:se(W,P.results,p)}))}))}),300,{leading:!0});function We(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Te(e,c){return e(c={exports:{}},c.exports),c.exports}var Xe,Be=Te((function(e,c){e.exports=function(){var c,n;function o(){return c.apply(null,arguments)}function a(e){c=e}function t(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,c){return Object.prototype.hasOwnProperty.call(e,c)}function M(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var c;for(c in e)if(r(e,c))return!1;return!0}function s(e){return void 0===e}function p(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,c){var n,o=[];for(n=0;n<e.length;++n)o.push(c(e[n],n));return o}function d(e,c){for(var n in c)r(c,n)&&(e[n]=c[n]);return r(c,"toString")&&(e.toString=c.toString),r(c,"valueOf")&&(e.valueOf=c.valueOf),e}function b(e,c,n,o){return Vn(e,c,n,o,!0).utc()}function A(){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 z(e){return null==e._pf&&(e._pf=A()),e._pf}function f(e){if(null==e._isValid){var c=z(e),o=n.call(c.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&c.overflow<0&&!c.empty&&!c.invalidEra&&!c.invalidMonth&&!c.invalidWeekday&&!c.weekdayMismatch&&!c.nullInput&&!c.invalidFormat&&!c.userInvalidated&&(!c.meridiem||c.meridiem&&o);if(e._strict&&(a=a&&0===c.charsLeftOver&&0===c.unusedTokens.length&&void 0===c.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function h(e){var c=b(NaN);return null!=e?d(z(c),e):z(c).userInvalidated=!0,c}n=Array.prototype.some?Array.prototype.some:function(e){var c,n=Object(this),o=n.length>>>0;for(c=0;c<o;c++)if(c in n&&e.call(this,n[c],c,n))return!0;return!1};var O=o.momentProperties=[],L=!1;function m(e,c){var n,o,a;if(s(c._isAMomentObject)||(e._isAMomentObject=c._isAMomentObject),s(c._i)||(e._i=c._i),s(c._f)||(e._f=c._f),s(c._l)||(e._l=c._l),s(c._strict)||(e._strict=c._strict),s(c._tzm)||(e._tzm=c._tzm),s(c._isUTC)||(e._isUTC=c._isUTC),s(c._offset)||(e._offset=c._offset),s(c._pf)||(e._pf=z(c)),s(c._locale)||(e._locale=c._locale),O.length>0)for(n=0;n<O.length;n++)s(a=c[o=O[n]])||(e[o]=a);return e}function q(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===L&&(L=!0,o.updateOffset(this),L=!1)}function N(e){return e instanceof q||null!=e&&null!=e._isAMomentObject}function g(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function W(e,c){var n=!0;return d((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var a,t,i,M=[];for(t=0;t<arguments.length;t++){if(a="","object"==typeof arguments[t]){for(i in a+="\n["+t+"] ",arguments[0])r(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[t];M.push(a)}g(e+"\nArguments: "+Array.prototype.slice.call(M).join("")+"\n"+(new Error).stack),n=!1}return c.apply(this,arguments)}),c)}var T,X={};function B(e,c){null!=o.deprecationHandler&&o.deprecationHandler(e,c),X[e]||(g(c),X[e]=!0)}function _(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function y(e){var c,n;for(n in e)r(e,n)&&(_(c=e[n])?this[n]=c:this["_"+n]=c);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function S(e,c){var n,o=d({},e);for(n in c)r(c,n)&&(i(e[n])&&i(c[n])?(o[n]={},d(o[n],e[n]),d(o[n],c[n])):null!=c[n]?o[n]=c[n]:delete o[n]);for(n in e)r(e,n)&&!r(c,n)&&i(e[n])&&(o[n]=d({},o[n]));return o}function v(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var c,n=[];for(c in e)r(e,c)&&n.push(c);return n};var k={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function C(e,c,n){var o=this._calendar[e]||this._calendar.sameElse;return _(o)?o.call(c,n):o}function E(e,c,n){var o=""+Math.abs(e),a=c-o.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+o}var R=/(\[[^\[]*\])|(\\)?([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,w=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},P={};function x(e,c,n,o){var a=o;"string"==typeof o&&(a=function(){return this[o]()}),e&&(P[e]=a),c&&(P[c[0]]=function(){return E(a.apply(this,arguments),c[1],c[2])}),n&&(P[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function I(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var c,n,o=e.match(R);for(c=0,n=o.length;c<n;c++)P[o[c]]?o[c]=P[o[c]]:o[c]=I(o[c]);return function(c){var a,t="";for(a=0;a<n;a++)t+=_(o[a])?o[a].call(c,e):o[a];return t}}function Y(e,c){return e.isValid()?(c=F(c,e.localeData()),D[c]=D[c]||H(c),D[c](e)):e.localeData().invalidDate()}function F(e,c){var n=5;function o(e){return c.longDateFormat(e)||e}for(w.lastIndex=0;n>=0&&w.test(e);)e=e.replace(w,o),w.lastIndex=0,n-=1;return e}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(e){var c=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return c||!n?c:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var G="Invalid date";function V(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}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 $(e,c,n,o){var a=this._relativeTime[n];return _(a)?a(e,c,n,o):a.replace(/%d/i,e)}function ee(e,c){var n=this._relativeTime[e>0?"future":"past"];return _(n)?n(c):n.replace(/%s/i,c)}var ce={};function ne(e,c){var n=e.toLowerCase();ce[n]=ce[n+"s"]=ce[c]=e}function oe(e){return"string"==typeof e?ce[e]||ce[e.toLowerCase()]:void 0}function ae(e){var c,n,o={};for(n in e)r(e,n)&&(c=oe(n))&&(o[c]=e[n]);return o}var te={};function ie(e,c){te[e]=c}function re(e){var c,n=[];for(c in e)r(e,c)&&n.push({unit:c,priority:te[c]});return n.sort((function(e,c){return e.priority-c.priority})),n}function Me(e){return e%4==0&&e%100!=0||e%400==0}function se(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var c=+e,n=0;return 0!==c&&isFinite(c)&&(n=se(c)),n}function ue(e,c){return function(n){return null!=n?(de(this,e,n),o.updateOffset(this,c),this):le(this,e)}}function le(e,c){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+c]():NaN}function de(e,c,n){e.isValid()&&!isNaN(n)&&("FullYear"===c&&Me(e.year())&&1===e.month()&&29===e.date()?(n=pe(n),e._d["set"+(e._isUTC?"UTC":"")+c](n,e.month(),ec(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+c](n))}function be(e){return _(this[e=oe(e)])?this[e]():this}function Ae(e,c){if("object"==typeof e){var n,o=re(e=ae(e));for(n=0;n<o.length;n++)this[o[n].unit](e[o[n].unit])}else if(_(this[e=oe(e)]))return this[e](c);return this}var ze,fe=/\d/,he=/\d\d/,Oe=/\d{3}/,Le=/\d{4}/,me=/[+-]?\d{6}/,qe=/\d\d?/,Ne=/\d\d\d\d?/,ge=/\d\d\d\d\d\d?/,Te=/\d{1,3}/,Xe=/\d{1,4}/,Be=/[+-]?\d{1,6}/,_e=/\d+/,ye=/[+-]?\d+/,Se=/Z|[+-]\d\d:?\d\d/gi,ve=/Z|[+-]\d\d(?::?\d\d)?/gi,ke=/[+-]?\d+(\.\d{1,3})?/,Ce=/[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 Ee(e,c,n){ze[e]=_(c)?c:function(e,o){return e&&n?n:c}}function Re(e,c){return r(ze,e)?ze[e](c._strict,c._locale):new RegExp(we(e))}function we(e){return De(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,c,n,o,a){return c||n||o||a})))}function De(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ze={};var Pe={};function xe(e,c){var n,o=c;for("string"==typeof e&&(e=[e]),p(c)&&(o=function(e,n){n[c]=pe(e)}),n=0;n<e.length;n++)Pe[e[n]]=o}function Ie(e,c){xe(e,(function(e,n,o,a){o._w=o._w||{},c(e,o._w,o,a)}))}function He(e,c,n){null!=c&&r(Pe,e)&&Pe[e](c,n._a,n,e)}var Ye,Fe=0,Ue=1,je=2,Ge=3,Ve=4,Ke=5,Qe=6,Je=7,Ze=8;function $e(e,c){return(e%c+c)%c}function ec(e,c){if(isNaN(e)||isNaN(c))return NaN;var n=$e(c,12);return e+=(c-n)/12,1===n?Me(e)?29:28:31-n%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var c;for(c=0;c<this.length;++c)if(this[c]===e)return c;return-1},x("M",["MM",2],"Mo",(function(){return this.month()+1})),x("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),x("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),ie("month",8),Ee("M",qe),Ee("MM",qe,he),Ee("MMM",(function(e,c){return c.monthsShortRegex(e)})),Ee("MMMM",(function(e,c){return c.monthsRegex(e)})),xe(["M","MM"],(function(e,c){c[Ue]=pe(e)-1})),xe(["MMM","MMMM"],(function(e,c,n,o){var a=n._locale.monthsParse(e,o,n._strict);null!=a?c[Ue]=a:z(n).invalidMonth=e}));var cc="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nc="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),oc=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ac=Ce,tc=Ce;function ic(e,c){return e?t(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||oc).test(c)?"format":"standalone"][e.month()]:t(this._months)?this._months:this._months.standalone}function rc(e,c){return e?t(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[oc.test(c)?"format":"standalone"][e.month()]:t(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Mc(e,c,n){var o,a,t,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)t=b([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(t,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(t,"").toLocaleLowerCase();return n?"MMM"===c?-1!==(a=Ye.call(this._shortMonthsParse,i))?a:null:-1!==(a=Ye.call(this._longMonthsParse,i))?a:null:"MMM"===c?-1!==(a=Ye.call(this._shortMonthsParse,i))||-1!==(a=Ye.call(this._longMonthsParse,i))?a:null:-1!==(a=Ye.call(this._longMonthsParse,i))||-1!==(a=Ye.call(this._shortMonthsParse,i))?a:null}function sc(e,c,n){var o,a,t;if(this._monthsParseExact)return Mc.call(this,e,c,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(a=b([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(t="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[o]=new RegExp(t.replace(".",""),"i")),n&&"MMMM"===c&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===c&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function pc(e,c){var n;if(!e.isValid())return e;if("string"==typeof c)if(/^\d+$/.test(c))c=pe(c);else if(!p(c=e.localeData().monthsParse(c)))return e;return n=Math.min(e.date(),ec(e.year(),c)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](c,n),e}function uc(e){return null!=e?(pc(this,e),o.updateOffset(this,!0),this):le(this,"Month")}function lc(){return ec(this.year(),this.month())}function dc(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Ac.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=ac),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function bc(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Ac.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=tc),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ac(){function e(e,c){return c.length-e.length}var c,n,o=[],a=[],t=[];for(c=0;c<12;c++)n=b([2e3,c]),o.push(this.monthsShort(n,"")),a.push(this.months(n,"")),t.push(this.months(n,"")),t.push(this.monthsShort(n,""));for(o.sort(e),a.sort(e),t.sort(e),c=0;c<12;c++)o[c]=De(o[c]),a[c]=De(a[c]);for(c=0;c<24;c++)t[c]=De(t[c]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function zc(e){return Me(e)?366:365}x("Y",0,0,(function(){var e=this.year();return e<=9999?E(e,4):"+"+e})),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"),ne("year","y"),ie("year",1),Ee("Y",ye),Ee("YY",qe,he),Ee("YYYY",Xe,Le),Ee("YYYYY",Be,me),Ee("YYYYYY",Be,me),xe(["YYYYY","YYYYYY"],Fe),xe("YYYY",(function(e,c){c[Fe]=2===e.length?o.parseTwoDigitYear(e):pe(e)})),xe("YY",(function(e,c){c[Fe]=o.parseTwoDigitYear(e)})),xe("Y",(function(e,c){c[Fe]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var fc=ue("FullYear",!0);function hc(){return Me(this.year())}function Oc(e,c,n,o,a,t,i){var r;return e<100&&e>=0?(r=new Date(e+400,c,n,o,a,t,i),isFinite(r.getFullYear())&&r.setFullYear(e)):r=new Date(e,c,n,o,a,t,i),r}function Lc(e){var c,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,c=new Date(Date.UTC.apply(null,n)),isFinite(c.getUTCFullYear())&&c.setUTCFullYear(e)):c=new Date(Date.UTC.apply(null,arguments)),c}function mc(e,c,n){var o=7+c-n;return-(7+Lc(e,0,o).getUTCDay()-c)%7+o-1}function qc(e,c,n,o,a){var t,i,r=1+7*(c-1)+(7+n-o)%7+mc(e,o,a);return r<=0?i=zc(t=e-1)+r:r>zc(e)?(t=e+1,i=r-zc(e)):(t=e,i=r),{year:t,dayOfYear:i}}function Nc(e,c,n){var o,a,t=mc(e.year(),c,n),i=Math.floor((e.dayOfYear()-t-1)/7)+1;return i<1?o=i+gc(a=e.year()-1,c,n):i>gc(e.year(),c,n)?(o=i-gc(e.year(),c,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function gc(e,c,n){var o=mc(e,c,n),a=mc(e+1,c,n);return(zc(e)-o+a)/7}function Wc(e){return Nc(e,this._week.dow,this._week.doy).week}x("w",["ww",2],"wo","week"),x("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ie("week",5),ie("isoWeek",5),Ee("w",qe),Ee("ww",qe,he),Ee("W",qe),Ee("WW",qe,he),Ie(["w","ww","W","WW"],(function(e,c,n,o){c[o.substr(0,1)]=pe(e)}));var Tc={dow:0,doy:6};function Xc(){return this._week.dow}function Bc(){return this._week.doy}function _c(e){var c=this.localeData().week(this);return null==e?c:this.add(7*(e-c),"d")}function yc(e){var c=Nc(this,1,4).week;return null==e?c:this.add(7*(e-c),"d")}function Sc(e,c){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=c.weekdaysParse(e))?e:null:parseInt(e,10)}function vc(e,c){return"string"==typeof e?c.weekdaysParse(e)%7||7:isNaN(e)?null:e}function kc(e,c){return e.slice(c,7).concat(e.slice(0,c))}x("d",0,"do","day"),x("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),x("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),x("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),x("e",0,0,"weekday"),x("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ie("day",11),ie("weekday",11),ie("isoWeekday",11),Ee("d",qe),Ee("e",qe),Ee("E",qe),Ee("dd",(function(e,c){return c.weekdaysMinRegex(e)})),Ee("ddd",(function(e,c){return c.weekdaysShortRegex(e)})),Ee("dddd",(function(e,c){return c.weekdaysRegex(e)})),Ie(["dd","ddd","dddd"],(function(e,c,n,o){var a=n._locale.weekdaysParse(e,o,n._strict);null!=a?c.d=a:z(n).invalidWeekday=e})),Ie(["d","e","E"],(function(e,c,n,o){c[o]=pe(e)}));var Cc="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ec="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rc="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wc=Ce,Dc=Ce,Pc=Ce;function xc(e,c){var n=t(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(c)?"format":"standalone"];return!0===e?kc(n,this._week.dow):e?n[e.day()]:n}function Ic(e){return!0===e?kc(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Hc(e){return!0===e?kc(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yc(e,c,n){var o,a,t,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)t=b([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(t,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(t,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(t,"").toLocaleLowerCase();return n?"dddd"===c?-1!==(a=Ye.call(this._weekdaysParse,i))?a:null:"ddd"===c?-1!==(a=Ye.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:"dddd"===c?-1!==(a=Ye.call(this._weekdaysParse,i))||-1!==(a=Ye.call(this._shortWeekdaysParse,i))||-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:"ddd"===c?-1!==(a=Ye.call(this._shortWeekdaysParse,i))||-1!==(a=Ye.call(this._weekdaysParse,i))||-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,i))||-1!==(a=Ye.call(this._weekdaysParse,i))||-1!==(a=Ye.call(this._shortWeekdaysParse,i))?a:null}function Fc(e,c,n){var o,a,t;if(this._weekdaysParseExact)return Yc.call(this,e,c,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(a=b([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(t="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[o]=new RegExp(t.replace(".",""),"i")),n&&"dddd"===c&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===c&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===c&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function Uc(e){if(!this.isValid())return null!=e?this:NaN;var c=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Sc(e,this.localeData()),this.add(e-c,"d")):c}function jc(e){if(!this.isValid())return null!=e?this:NaN;var c=(this.day()+7-this.localeData()._week.dow)%7;return null==e?c:this.add(e-c,"d")}function Gc(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var c=vc(e,this.localeData());return this.day(this.day()%7?c:c-7)}return this.day()||7}function Vc(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jc.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=wc),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kc(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jc.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Dc),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qc(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jc.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pc),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jc(){function e(e,c){return c.length-e.length}var c,n,o,a,t,i=[],r=[],M=[],s=[];for(c=0;c<7;c++)n=b([2e3,1]).day(c),o=De(this.weekdaysMin(n,"")),a=De(this.weekdaysShort(n,"")),t=De(this.weekdays(n,"")),i.push(o),r.push(a),M.push(t),s.push(o),s.push(a),s.push(t);i.sort(e),r.sort(e),M.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+M.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Zc(){return this.hours()%12||12}function $c(){return this.hours()||24}function en(e,c){x(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),c)}))}function cn(e,c){return c._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}x("H",["HH",2],0,"hour"),x("h",["hh",2],0,Zc),x("k",["kk",2],0,$c),x("hmm",0,0,(function(){return""+Zc.apply(this)+E(this.minutes(),2)})),x("hmmss",0,0,(function(){return""+Zc.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)})),en("a",!0),en("A",!1),ne("hour","h"),ie("hour",13),Ee("a",cn),Ee("A",cn),Ee("H",qe),Ee("h",qe),Ee("k",qe),Ee("HH",qe,he),Ee("hh",qe,he),Ee("kk",qe,he),Ee("hmm",Ne),Ee("hmmss",ge),Ee("Hmm",Ne),Ee("Hmmss",ge),xe(["H","HH"],Ge),xe(["k","kk"],(function(e,c,n){var o=pe(e);c[Ge]=24===o?0:o})),xe(["a","A"],(function(e,c,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),xe(["h","hh"],(function(e,c,n){c[Ge]=pe(e),z(n).bigHour=!0})),xe("hmm",(function(e,c,n){var o=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o)),z(n).bigHour=!0})),xe("hmmss",(function(e,c,n){var o=e.length-4,a=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o,2)),c[Ke]=pe(e.substr(a)),z(n).bigHour=!0})),xe("Hmm",(function(e,c,n){var o=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o))})),xe("Hmmss",(function(e,c,n){var o=e.length-4,a=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o,2)),c[Ke]=pe(e.substr(a))}));var on=/[ap]\.?m?\.?/i,an=ue("Hours",!0);function tn(e,c,n){return e>11?n?"pm":"PM":n?"am":"AM"}var rn,Mn={calendar:k,longDateFormat:U,invalidDate:G,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:Z,months:cc,monthsShort:nc,week:Tc,weekdays:Cc,weekdaysMin:Rc,weekdaysShort:Ec,meridiemParse:on},sn={},pn={};function un(e,c){var n,o=Math.min(e.length,c.length);for(n=0;n<o;n+=1)if(e[n]!==c[n])return n;return o}function ln(e){return e?e.toLowerCase().replace("_","-"):e}function dn(e){for(var c,n,o,a,t=0;t<e.length;){for(c=(a=ln(e[t]).split("-")).length,n=(n=ln(e[t+1]))?n.split("-"):null;c>0;){if(o=bn(a.slice(0,c).join("-")))return o;if(n&&n.length>=c&&un(a,n)>=c-1)break;c--}t++}return rn}function bn(c){var n=null;if(void 0===sn[c]&&e&&e.exports)try{n=rn._abbr,We(),An(n)}catch(e){sn[c]=null}return sn[c]}function An(e,c){var n;return e&&((n=s(c)?hn(e):zn(e,c))?rn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rn._abbr}function zn(e,c){if(null!==c){var n,o=Mn;if(c.abbr=e,null!=sn[e])B("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."),o=sn[e]._config;else if(null!=c.parentLocale)if(null!=sn[c.parentLocale])o=sn[c.parentLocale]._config;else{if(null==(n=bn(c.parentLocale)))return pn[c.parentLocale]||(pn[c.parentLocale]=[]),pn[c.parentLocale].push({name:e,config:c}),null;o=n._config}return sn[e]=new v(S(o,c)),pn[e]&&pn[e].forEach((function(e){zn(e.name,e.config)})),An(e),sn[e]}return delete sn[e],null}function fn(e,c){if(null!=c){var n,o,a=Mn;null!=sn[e]&&null!=sn[e].parentLocale?sn[e].set(S(sn[e]._config,c)):(null!=(o=bn(e))&&(a=o._config),c=S(a,c),null==o&&(c.abbr=e),(n=new v(c)).parentLocale=sn[e],sn[e]=n),An(e)}else null!=sn[e]&&(null!=sn[e].parentLocale?(sn[e]=sn[e].parentLocale,e===An()&&An(e)):null!=sn[e]&&delete sn[e]);return sn[e]}function hn(e){var c;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rn;if(!t(e)){if(c=bn(e))return c;e=[e]}return dn(e)}function On(){return T(sn)}function Ln(e){var c,n=e._a;return n&&-2===z(e).overflow&&(c=n[Ue]<0||n[Ue]>11?Ue:n[je]<1||n[je]>ec(n[Fe],n[Ue])?je:n[Ge]<0||n[Ge]>24||24===n[Ge]&&(0!==n[Ve]||0!==n[Ke]||0!==n[Qe])?Ge:n[Ve]<0||n[Ve]>59?Ve:n[Ke]<0||n[Ke]>59?Ke:n[Qe]<0||n[Qe]>999?Qe:-1,z(e)._overflowDayOfYear&&(c<Fe||c>je)&&(c=je),z(e)._overflowWeeks&&-1===c&&(c=Je),z(e)._overflowWeekday&&-1===c&&(c=Ze),z(e).overflow=c),e}var mn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qn=/^\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)?)?$/,Nn=/Z|[+-]\d\d(?::?\d\d)?/,gn=[["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]],Wn=[["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/]],Tn=/^\/?Date\((-?\d+)/i,Xn=/^(?:(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}))$/,Bn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _n(e){var c,n,o,a,t,i,r=e._i,M=mn.exec(r)||qn.exec(r);if(M){for(z(e).iso=!0,c=0,n=gn.length;c<n;c++)if(gn[c][1].exec(M[1])){a=gn[c][0],o=!1!==gn[c][2];break}if(null==a)return void(e._isValid=!1);if(M[3]){for(c=0,n=Wn.length;c<n;c++)if(Wn[c][1].exec(M[3])){t=(M[2]||" ")+Wn[c][0];break}if(null==t)return void(e._isValid=!1)}if(!o&&null!=t)return void(e._isValid=!1);if(M[4]){if(!Nn.exec(M[4]))return void(e._isValid=!1);i="Z"}e._f=a+(t||"")+(i||""),In(e)}else e._isValid=!1}function yn(e,c,n,o,a,t){var i=[Sn(e),nc.indexOf(c),parseInt(n,10),parseInt(o,10),parseInt(a,10)];return t&&i.push(parseInt(t,10)),i}function Sn(e){var c=parseInt(e,10);return c<=49?2e3+c:c<=999?1900+c:c}function vn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function kn(e,c,n){return!e||Ec.indexOf(e)===new Date(c[0],c[1],c[2]).getDay()||(z(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Cn(e,c,n){if(e)return Bn[e];if(c)return 0;var o=parseInt(n,10),a=o%100;return(o-a)/100*60+a}function En(e){var c,n=Xn.exec(vn(e._i));if(n){if(c=yn(n[4],n[3],n[2],n[5],n[6],n[7]),!kn(n[1],c,e))return;e._a=c,e._tzm=Cn(n[8],n[9],n[10]),e._d=Lc.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),z(e).rfc2822=!0}else e._isValid=!1}function Rn(e){var c=Tn.exec(e._i);null===c?(_n(e),!1===e._isValid&&(delete e._isValid,En(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+c[1])}function wn(e,c,n){return null!=e?e:null!=c?c:n}function Dn(e){var c=new Date(o.now());return e._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()]}function Pn(e){var c,n,o,a,t,i=[];if(!e._d){for(o=Dn(e),e._w&&null==e._a[je]&&null==e._a[Ue]&&xn(e),null!=e._dayOfYear&&(t=wn(e._a[Fe],o[Fe]),(e._dayOfYear>zc(t)||0===e._dayOfYear)&&(z(e)._overflowDayOfYear=!0),n=Lc(t,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[je]=n.getUTCDate()),c=0;c<3&&null==e._a[c];++c)e._a[c]=i[c]=o[c];for(;c<7;c++)e._a[c]=i[c]=null==e._a[c]?2===c?1:0:e._a[c];24===e._a[Ge]&&0===e._a[Ve]&&0===e._a[Ke]&&0===e._a[Qe]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?Lc:Oc).apply(null,i),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(z(e).weekdayMismatch=!0)}}function xn(e){var c,n,o,a,t,i,r,M,s;null!=(c=e._w).GG||null!=c.W||null!=c.E?(t=1,i=4,n=wn(c.GG,e._a[Fe],Nc(Kn(),1,4).year),o=wn(c.W,1),((a=wn(c.E,1))<1||a>7)&&(M=!0)):(t=e._locale._week.dow,i=e._locale._week.doy,s=Nc(Kn(),t,i),n=wn(c.gg,e._a[Fe],s.year),o=wn(c.w,s.week),null!=c.d?((a=c.d)<0||a>6)&&(M=!0):null!=c.e?(a=c.e+t,(c.e<0||c.e>6)&&(M=!0)):a=t),o<1||o>gc(n,t,i)?z(e)._overflowWeeks=!0:null!=M?z(e)._overflowWeekday=!0:(r=qc(n,o,a,t,i),e._a[Fe]=r.year,e._dayOfYear=r.dayOfYear)}function In(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],z(e).empty=!0;var c,n,a,t,i,r,M=""+e._i,s=M.length,p=0;for(a=F(e._f,e._locale).match(R)||[],c=0;c<a.length;c++)t=a[c],(n=(M.match(Re(t,e))||[])[0])&&((i=M.substr(0,M.indexOf(n))).length>0&&z(e).unusedInput.push(i),M=M.slice(M.indexOf(n)+n.length),p+=n.length),P[t]?(n?z(e).empty=!1:z(e).unusedTokens.push(t),He(t,n,e)):e._strict&&!n&&z(e).unusedTokens.push(t);z(e).charsLeftOver=s-p,M.length>0&&z(e).unusedInput.push(M),e._a[Ge]<=12&&!0===z(e).bigHour&&e._a[Ge]>0&&(z(e).bigHour=void 0),z(e).parsedDateParts=e._a.slice(0),z(e).meridiem=e._meridiem,e._a[Ge]=Hn(e._locale,e._a[Ge],e._meridiem),null!==(r=z(e).era)&&(e._a[Fe]=e._locale.erasConvertYear(r,e._a[Fe])),Pn(e),Ln(e)}else En(e);else _n(e)}function Hn(e,c,n){var o;return null==n?c:null!=e.meridiemHour?e.meridiemHour(c,n):null!=e.isPM?((o=e.isPM(n))&&c<12&&(c+=12),o||12!==c||(c=0),c):c}function Yn(e){var c,n,o,a,t,i,r=!1;if(0===e._f.length)return z(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)t=0,i=!1,c=m({},e),null!=e._useUTC&&(c._useUTC=e._useUTC),c._f=e._f[a],In(c),f(c)&&(i=!0),t+=z(c).charsLeftOver,t+=10*z(c).unusedTokens.length,z(c).score=t,r?t<o&&(o=t,n=c):(null==o||t<o||i)&&(o=t,n=c,i&&(r=!0));d(e,n||c)}function Fn(e){if(!e._d){var c=ae(e._i),n=void 0===c.day?c.date:c.day;e._a=l([c.year,c.month,n,c.hour,c.minute,c.second,c.millisecond],(function(e){return e&&parseInt(e,10)})),Pn(e)}}function Un(e){var c=new q(Ln(jn(e)));return c._nextDay&&(c.add(1,"d"),c._nextDay=void 0),c}function jn(e){var c=e._i,n=e._f;return e._locale=e._locale||hn(e._l),null===c||void 0===n&&""===c?h({nullInput:!0}):("string"==typeof c&&(e._i=c=e._locale.preparse(c)),N(c)?new q(Ln(c)):(u(c)?e._d=c:t(n)?Yn(e):n?In(e):Gn(e),f(e)||(e._d=null),e))}function Gn(e){var c=e._i;s(c)?e._d=new Date(o.now()):u(c)?e._d=new Date(c.valueOf()):"string"==typeof c?Rn(e):t(c)?(e._a=l(c.slice(0),(function(e){return parseInt(e,10)})),Pn(e)):i(c)?Fn(e):p(c)?e._d=new Date(c):o.createFromInputFallback(e)}function Vn(e,c,n,o,a){var r={};return!0!==c&&!1!==c||(o=c,c=void 0),!0!==n&&!1!==n||(o=n,n=void 0),(i(e)&&M(e)||t(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=n,r._i=e,r._f=c,r._strict=o,Un(r)}function Kn(e,c,n,o){return Vn(e,c,n,o,!1)}o.createFromInputFallback=W("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Qn=W("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:h()})),Jn=W("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:h()}));function Zn(e,c){var n,o;if(1===c.length&&t(c[0])&&(c=c[0]),!c.length)return Kn();for(n=c[0],o=1;o<c.length;++o)c[o].isValid()&&!c[o][e](n)||(n=c[o]);return n}function $n(){return Zn("isBefore",[].slice.call(arguments,0))}function eo(){return Zn("isAfter",[].slice.call(arguments,0))}var co=function(){return Date.now?Date.now():+new Date},no=["year","quarter","month","week","day","hour","minute","second","millisecond"];function oo(e){var c,n,o=!1;for(c in e)if(r(e,c)&&(-1===Ye.call(no,c)||null!=e[c]&&isNaN(e[c])))return!1;for(n=0;n<no.length;++n)if(e[no[n]]){if(o)return!1;parseFloat(e[no[n]])!==pe(e[no[n]])&&(o=!0)}return!0}function ao(){return this._isValid}function to(){return _o(NaN)}function io(e){var c=ae(e),n=c.year||0,o=c.quarter||0,a=c.month||0,t=c.week||c.isoWeek||0,i=c.day||0,r=c.hour||0,M=c.minute||0,s=c.second||0,p=c.millisecond||0;this._isValid=oo(c),this._milliseconds=+p+1e3*s+6e4*M+1e3*r*60*60,this._days=+i+7*t,this._months=+a+3*o+12*n,this._data={},this._locale=hn(),this._bubble()}function ro(e){return e instanceof io}function Mo(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function so(e,c,n){var o,a=Math.min(e.length,c.length),t=Math.abs(e.length-c.length),i=0;for(o=0;o<a;o++)(n&&e[o]!==c[o]||!n&&pe(e[o])!==pe(c[o]))&&i++;return i+t}function po(e,c){x(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+E(~~(e/60),2)+c+E(~~e%60,2)}))}po("Z",":"),po("ZZ",""),Ee("Z",ve),Ee("ZZ",ve),xe(["Z","ZZ"],(function(e,c,n){n._useUTC=!0,n._tzm=lo(ve,e)}));var uo=/([\+\-]|\d\d)/gi;function lo(e,c){var n,o,a=(c||"").match(e);return null===a?null:0===(o=60*(n=((a[a.length-1]||[])+"").match(uo)||["-",0,0])[1]+pe(n[2]))?0:"+"===n[0]?o:-o}function bo(e,c){var n,a;return c._isUTC?(n=c.clone(),a=(N(e)||u(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),o.updateOffset(n,!1),n):Kn(e).local()}function Ao(e){return-Math.round(e._d.getTimezoneOffset())}function zo(e,c,n){var a,t=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=lo(ve,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&c&&(a=Ao(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),t!==e&&(!c||this._changeInProgress?Co(this,_o(e-t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?t:Ao(this)}function fo(e,c){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,c),this):-this.utcOffset()}function ho(e){return this.utcOffset(0,e)}function Oo(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ao(this),"m")),this}function Lo(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=lo(Se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function mo(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function qo(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function No(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,c={};return m(c,this),(c=jn(c))._a?(e=c._isUTC?b(c._a):Kn(c._a),this._isDSTShifted=this.isValid()&&so(c._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function go(){return!!this.isValid()&&!this._isUTC}function Wo(){return!!this.isValid()&&this._isUTC}function To(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Xo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _o(e,c){var n,o,a,t=e,i=null;return ro(e)?t={ms:e._milliseconds,d:e._days,M:e._months}:p(e)||!isNaN(+e)?(t={},c?t[c]=+e:t.milliseconds=+e):(i=Xo.exec(e))?(n="-"===i[1]?-1:1,t={y:0,d:pe(i[je])*n,h:pe(i[Ge])*n,m:pe(i[Ve])*n,s:pe(i[Ke])*n,ms:pe(Mo(1e3*i[Qe]))*n}):(i=Bo.exec(e))?(n="-"===i[1]?-1:1,t={y:yo(i[2],n),M:yo(i[3],n),w:yo(i[4],n),d:yo(i[5],n),h:yo(i[6],n),m:yo(i[7],n),s:yo(i[8],n)}):null==t?t={}:"object"==typeof t&&("from"in t||"to"in t)&&(a=vo(Kn(t.from),Kn(t.to)),(t={}).ms=a.milliseconds,t.M=a.months),o=new io(t),ro(e)&&r(e,"_locale")&&(o._locale=e._locale),ro(e)&&r(e,"_isValid")&&(o._isValid=e._isValid),o}function yo(e,c){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*c}function So(e,c){var n={};return n.months=c.month()-e.month()+12*(c.year()-e.year()),e.clone().add(n.months,"M").isAfter(c)&&--n.months,n.milliseconds=+c-+e.clone().add(n.months,"M"),n}function vo(e,c){var n;return e.isValid()&&c.isValid()?(c=bo(c,e),e.isBefore(c)?n=So(e,c):((n=So(c,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ko(e,c){return function(n,o){var a;return null===o||isNaN(+o)||(B(c,"moment()."+c+"(period, number) is deprecated. Please use moment()."+c+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=o,o=a),Co(this,_o(n,o),e),this}}function Co(e,c,n,a){var t=c._milliseconds,i=Mo(c._days),r=Mo(c._months);e.isValid()&&(a=null==a||a,r&&pc(e,le(e,"Month")+r*n),i&&de(e,"Date",le(e,"Date")+i*n),t&&e._d.setTime(e._d.valueOf()+t*n),a&&o.updateOffset(e,i||r))}_o.fn=io.prototype,_o.invalid=to;var Eo=ko(1,"add"),Ro=ko(-1,"subtract");function wo(e){return"string"==typeof e||e instanceof String}function Do(e){return N(e)||u(e)||wo(e)||p(e)||xo(e)||Po(e)||null==e}function Po(e){var c,n,o=i(e)&&!M(e),a=!1,t=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(c=0;c<t.length;c+=1)n=t[c],a=a||r(e,n);return o&&a}function xo(e){var c=t(e),n=!1;return c&&(n=0===e.filter((function(c){return!p(c)&&wo(e)})).length),c&&n}function Io(e){var c,n,o=i(e)&&!M(e),a=!1,t=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(c=0;c<t.length;c+=1)n=t[c],a=a||r(e,n);return o&&a}function Ho(e,c){var n=e.diff(c,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yo(e,c){1===arguments.length&&(arguments[0]?Do(arguments[0])?(e=arguments[0],c=void 0):Io(arguments[0])&&(c=arguments[0],e=void 0):(e=void 0,c=void 0));var n=e||Kn(),a=bo(n,this).startOf("day"),t=o.calendarFormat(this,a)||"sameElse",i=c&&(_(c[t])?c[t].call(this,n):c[t]);return this.format(i||this.localeData().calendar(t,this,Kn(n)))}function Fo(){return new q(this)}function Uo(e,c){var n=N(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(c=oe(c)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(c).valueOf())}function jo(e,c){var n=N(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(c=oe(c)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(c).valueOf()<n.valueOf())}function Go(e,c,n,o){var a=N(e)?e:Kn(e),t=N(c)?c:Kn(c);return!!(this.isValid()&&a.isValid()&&t.isValid())&&("("===(o=o||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))}function Vo(e,c){var n,o=N(e)?e:Kn(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(c=oe(c)||"millisecond")?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(c).valueOf()<=n&&n<=this.clone().endOf(c).valueOf()))}function Ko(e,c){return this.isSame(e,c)||this.isAfter(e,c)}function Qo(e,c){return this.isSame(e,c)||this.isBefore(e,c)}function Jo(e,c,n){var o,a,t;if(!this.isValid())return NaN;if(!(o=bo(e,this)).isValid())return NaN;switch(a=6e4*(o.utcOffset()-this.utcOffset()),c=oe(c)){case"year":t=Zo(this,o)/12;break;case"month":t=Zo(this,o);break;case"quarter":t=Zo(this,o)/3;break;case"second":t=(this-o)/1e3;break;case"minute":t=(this-o)/6e4;break;case"hour":t=(this-o)/36e5;break;case"day":t=(this-o-a)/864e5;break;case"week":t=(this-o-a)/6048e5;break;default:t=this-o}return n?t:se(t)}function Zo(e,c){if(e.date()<c.date())return-Zo(c,e);var n=12*(c.year()-e.year())+(c.month()-e.month()),o=e.clone().add(n,"months");return-(n+(c-o<0?(c-o)/(o-e.clone().add(n-1,"months")):(c-o)/(e.clone().add(n+1,"months")-o)))||0}function $o(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ea(e){if(!this.isValid())return null;var c=!0!==e,n=c?this.clone().utc():this;return n.year()<0||n.year()>9999?Y(n,c?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?c?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,c?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ca(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,c,n,o,a="moment",t="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z"),e="["+a+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(e+c+n+o)}function na(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var c=Y(this,e);return this.localeData().postformat(c)}function oa(e,c){return this.isValid()&&(N(e)&&e.isValid()||Kn(e).isValid())?_o({to:this,from:e}).locale(this.locale()).humanize(!c):this.localeData().invalidDate()}function aa(e){return this.from(Kn(),e)}function ta(e,c){return this.isValid()&&(N(e)&&e.isValid()||Kn(e).isValid())?_o({from:this,to:e}).locale(this.locale()).humanize(!c):this.localeData().invalidDate()}function ia(e){return this.to(Kn(),e)}function ra(e){var c;return void 0===e?this._locale._abbr:(null!=(c=hn(e))&&(this._locale=c),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ma=W("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function sa(){return this._locale}var pa=1e3,ua=60*pa,la=60*ua,da=3506328*la;function ba(e,c){return(e%c+c)%c}function Aa(e,c,n){return e<100&&e>=0?new Date(e+400,c,n)-da:new Date(e,c,n).valueOf()}function za(e,c,n){return e<100&&e>=0?Date.UTC(e+400,c,n)-da:Date.UTC(e,c,n)}function fa(e){var c,n;if(void 0===(e=oe(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?za:Aa,e){case"year":c=n(this.year(),0,1);break;case"quarter":c=n(this.year(),this.month()-this.month()%3,1);break;case"month":c=n(this.year(),this.month(),1);break;case"week":c=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":c=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":c=n(this.year(),this.month(),this.date());break;case"hour":c=this._d.valueOf(),c-=ba(c+(this._isUTC?0:this.utcOffset()*ua),la);break;case"minute":c=this._d.valueOf(),c-=ba(c,ua);break;case"second":c=this._d.valueOf(),c-=ba(c,pa)}return this._d.setTime(c),o.updateOffset(this,!0),this}function ha(e){var c,n;if(void 0===(e=oe(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?za:Aa,e){case"year":c=n(this.year()+1,0,1)-1;break;case"quarter":c=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":c=n(this.year(),this.month()+1,1)-1;break;case"week":c=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":c=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":c=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":c=this._d.valueOf(),c+=la-ba(c+(this._isUTC?0:this.utcOffset()*ua),la)-1;break;case"minute":c=this._d.valueOf(),c+=ua-ba(c,ua)-1;break;case"second":c=this._d.valueOf(),c+=pa-ba(c,pa)-1}return this._d.setTime(c),o.updateOffset(this,!0),this}function Oa(){return this._d.valueOf()-6e4*(this._offset||0)}function La(){return Math.floor(this.valueOf()/1e3)}function ma(){return new Date(this.valueOf())}function qa(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Na(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ga(){return this.isValid()?this.toISOString():null}function Wa(){return f(this)}function Ta(){return d({},z(this))}function Xa(){return z(this).overflow}function Ba(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function _a(e,c){var n,a,t,i=this._eras||hn("en")._eras;for(n=0,a=i.length;n<a;++n)switch("string"==typeof i[n].since&&(t=o(i[n].since).startOf("day"),i[n].since=t.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":t=o(i[n].until).startOf("day").valueOf(),i[n].until=t.valueOf()}return i}function ya(e,c,n){var o,a,t,i,r,M=this.eras();for(e=e.toUpperCase(),o=0,a=M.length;o<a;++o)if(t=M[o].name.toUpperCase(),i=M[o].abbr.toUpperCase(),r=M[o].narrow.toUpperCase(),n)switch(c){case"N":case"NN":case"NNN":if(i===e)return M[o];break;case"NNNN":if(t===e)return M[o];break;case"NNNNN":if(r===e)return M[o]}else if([t,i,r].indexOf(e)>=0)return M[o]}function Sa(e,c){var n=e.since<=e.until?1:-1;return void 0===c?o(e.since).year():o(e.since).year()+(c-e.offset)*n}function va(){var e,c,n,o=this.localeData().eras();for(e=0,c=o.length;e<c;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].name;if(o[e].until<=n&&n<=o[e].since)return o[e].name}return""}function ka(){var e,c,n,o=this.localeData().eras();for(e=0,c=o.length;e<c;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].narrow;if(o[e].until<=n&&n<=o[e].since)return o[e].narrow}return""}function Ca(){var e,c,n,o=this.localeData().eras();for(e=0,c=o.length;e<c;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].abbr;if(o[e].until<=n&&n<=o[e].since)return o[e].abbr}return""}function Ea(){var e,c,n,a,t=this.localeData().eras();for(e=0,c=t.length;e<c;++e)if(n=t[e].since<=t[e].until?1:-1,a=this.clone().startOf("day").valueOf(),t[e].since<=a&&a<=t[e].until||t[e].until<=a&&a<=t[e].since)return(this.year()-o(t[e].since).year())*n+t[e].offset;return this.year()}function Ra(e){return r(this,"_erasNameRegex")||Ya.call(this),e?this._erasNameRegex:this._erasRegex}function wa(e){return r(this,"_erasAbbrRegex")||Ya.call(this),e?this._erasAbbrRegex:this._erasRegex}function Da(e){return r(this,"_erasNarrowRegex")||Ya.call(this),e?this._erasNarrowRegex:this._erasRegex}function Pa(e,c){return c.erasAbbrRegex(e)}function xa(e,c){return c.erasNameRegex(e)}function Ia(e,c){return c.erasNarrowRegex(e)}function Ha(e,c){return c._eraYearOrdinalRegex||_e}function Ya(){var e,c,n=[],o=[],a=[],t=[],i=this.eras();for(e=0,c=i.length;e<c;++e)o.push(De(i[e].name)),n.push(De(i[e].abbr)),a.push(De(i[e].narrow)),t.push(De(i[e].name)),t.push(De(i[e].abbr)),t.push(De(i[e].narrow));this._erasRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Fa(e,c){x(0,[e,e.length],0,c)}function Ua(e){return Ja.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function ja(e){return Ja.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ga(){return gc(this.year(),1,4)}function Va(){return gc(this.isoWeekYear(),1,4)}function Ka(){var e=this.localeData()._week;return gc(this.year(),e.dow,e.doy)}function Qa(){var e=this.localeData()._week;return gc(this.weekYear(),e.dow,e.doy)}function Ja(e,c,n,o,a){var t;return null==e?Nc(this,o,a).year:(c>(t=gc(e,o,a))&&(c=t),Za.call(this,e,c,n,o,a))}function Za(e,c,n,o,a){var t=qc(e,c,n,o,a),i=Lc(t.year,0,t.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function $a(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-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"),Ee("N",Pa),Ee("NN",Pa),Ee("NNN",Pa),Ee("NNNN",xa),Ee("NNNNN",Ia),xe(["N","NN","NNN","NNNN","NNNNN"],(function(e,c,n,o){var a=n._locale.erasParse(e,o,n._strict);a?z(n).era=a:z(n).invalidEra=e})),Ee("y",_e),Ee("yy",_e),Ee("yyy",_e),Ee("yyyy",_e),Ee("yo",Ha),xe(["y","yy","yyy","yyyy"],Fe),xe(["yo"],(function(e,c,n,o){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?c[Fe]=n._locale.eraYearOrdinalParse(e,a):c[Fe]=parseInt(e,10)})),x(0,["gg",2],0,(function(){return this.weekYear()%100})),x(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Fa("gggg","weekYear"),Fa("ggggg","weekYear"),Fa("GGGG","isoWeekYear"),Fa("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ie("weekYear",1),ie("isoWeekYear",1),Ee("G",ye),Ee("g",ye),Ee("GG",qe,he),Ee("gg",qe,he),Ee("GGGG",Xe,Le),Ee("gggg",Xe,Le),Ee("GGGGG",Be,me),Ee("ggggg",Be,me),Ie(["gggg","ggggg","GGGG","GGGGG"],(function(e,c,n,o){c[o.substr(0,2)]=pe(e)})),Ie(["gg","GG"],(function(e,c,n,a){c[a]=o.parseTwoDigitYear(e)})),x("Q",0,"Qo","quarter"),ne("quarter","Q"),ie("quarter",7),Ee("Q",fe),xe("Q",(function(e,c){c[Ue]=3*(pe(e)-1)})),x("D",["DD",2],"Do","date"),ne("date","D"),ie("date",9),Ee("D",qe),Ee("DD",qe,he),Ee("Do",(function(e,c){return e?c._dayOfMonthOrdinalParse||c._ordinalParse:c._dayOfMonthOrdinalParseLenient})),xe(["D","DD"],je),xe("Do",(function(e,c){c[je]=pe(e.match(qe)[0])}));var et=ue("Date",!0);function ct(e){var c=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?c:this.add(e-c,"d")}x("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ie("dayOfYear",4),Ee("DDD",Te),Ee("DDDD",Oe),xe(["DDD","DDDD"],(function(e,c,n){n._dayOfYear=pe(e)})),x("m",["mm",2],0,"minute"),ne("minute","m"),ie("minute",14),Ee("m",qe),Ee("mm",qe,he),xe(["m","mm"],Ve);var nt=ue("Minutes",!1);x("s",["ss",2],0,"second"),ne("second","s"),ie("second",15),Ee("s",qe),Ee("ss",qe,he),xe(["s","ss"],Ke);var ot,at,tt=ue("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()})),ne("millisecond","ms"),ie("millisecond",16),Ee("S",Te,fe),Ee("SS",Te,he),Ee("SSS",Te,Oe),ot="SSSS";ot.length<=9;ot+="S")Ee(ot,_e);function it(e,c){c[Qe]=pe(1e3*("0."+e))}for(ot="S";ot.length<=9;ot+="S")xe(ot,it);function rt(){return this._isUTC?"UTC":""}function Mt(){return this._isUTC?"Coordinated Universal Time":""}at=ue("Milliseconds",!1),x("z",0,0,"zoneAbbr"),x("zz",0,0,"zoneName");var st=q.prototype;function pt(e){return Kn(1e3*e)}function ut(){return Kn.apply(null,arguments).parseZone()}function lt(e){return e}st.add=Eo,st.calendar=Yo,st.clone=Fo,st.diff=Jo,st.endOf=ha,st.format=na,st.from=oa,st.fromNow=aa,st.to=ta,st.toNow=ia,st.get=be,st.invalidAt=Xa,st.isAfter=Uo,st.isBefore=jo,st.isBetween=Go,st.isSame=Vo,st.isSameOrAfter=Ko,st.isSameOrBefore=Qo,st.isValid=Wa,st.lang=Ma,st.locale=ra,st.localeData=sa,st.max=Jn,st.min=Qn,st.parsingFlags=Ta,st.set=Ae,st.startOf=fa,st.subtract=Ro,st.toArray=qa,st.toObject=Na,st.toDate=ma,st.toISOString=ea,st.inspect=ca,"undefined"!=typeof Symbol&&null!=Symbol.for&&(st[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),st.toJSON=ga,st.toString=$o,st.unix=La,st.valueOf=Oa,st.creationData=Ba,st.eraName=va,st.eraNarrow=ka,st.eraAbbr=Ca,st.eraYear=Ea,st.year=fc,st.isLeapYear=hc,st.weekYear=Ua,st.isoWeekYear=ja,st.quarter=st.quarters=$a,st.month=uc,st.daysInMonth=lc,st.week=st.weeks=_c,st.isoWeek=st.isoWeeks=yc,st.weeksInYear=Ka,st.weeksInWeekYear=Qa,st.isoWeeksInYear=Ga,st.isoWeeksInISOWeekYear=Va,st.date=et,st.day=st.days=Uc,st.weekday=jc,st.isoWeekday=Gc,st.dayOfYear=ct,st.hour=st.hours=an,st.minute=st.minutes=nt,st.second=st.seconds=tt,st.millisecond=st.milliseconds=at,st.utcOffset=zo,st.utc=ho,st.local=Oo,st.parseZone=Lo,st.hasAlignedHourOffset=mo,st.isDST=qo,st.isLocal=go,st.isUtcOffset=Wo,st.isUtc=To,st.isUTC=To,st.zoneAbbr=rt,st.zoneName=Mt,st.dates=W("dates accessor is deprecated. Use date instead.",et),st.months=W("months accessor is deprecated. Use month instead",uc),st.years=W("years accessor is deprecated. Use year instead",fc),st.zone=W("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fo),st.isDSTShifted=W("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",No);var dt=v.prototype;function bt(e,c,n,o){var a=hn(),t=b().set(o,c);return a[n](t,e)}function At(e,c,n){if(p(e)&&(c=e,e=void 0),e=e||"",null!=c)return bt(e,c,n,"month");var o,a=[];for(o=0;o<12;o++)a[o]=bt(e,o,n,"month");return a}function zt(e,c,n,o){"boolean"==typeof e?(p(c)&&(n=c,c=void 0),c=c||""):(n=c=e,e=!1,p(c)&&(n=c,c=void 0),c=c||"");var a,t=hn(),i=e?t._week.dow:0,r=[];if(null!=n)return bt(c,(n+i)%7,o,"day");for(a=0;a<7;a++)r[a]=bt(c,(a+i)%7,o,"day");return r}function ft(e,c){return At(e,c,"months")}function ht(e,c){return At(e,c,"monthsShort")}function Ot(e,c,n){return zt(e,c,n,"weekdays")}function Lt(e,c,n){return zt(e,c,n,"weekdaysShort")}function mt(e,c,n){return zt(e,c,n,"weekdaysMin")}dt.calendar=C,dt.longDateFormat=j,dt.invalidDate=V,dt.ordinal=J,dt.preparse=lt,dt.postformat=lt,dt.relativeTime=$,dt.pastFuture=ee,dt.set=y,dt.eras=_a,dt.erasParse=ya,dt.erasConvertYear=Sa,dt.erasAbbrRegex=wa,dt.erasNameRegex=Ra,dt.erasNarrowRegex=Da,dt.months=ic,dt.monthsShort=rc,dt.monthsParse=sc,dt.monthsRegex=bc,dt.monthsShortRegex=dc,dt.week=Wc,dt.firstDayOfYear=Bc,dt.firstDayOfWeek=Xc,dt.weekdays=xc,dt.weekdaysMin=Hc,dt.weekdaysShort=Ic,dt.weekdaysParse=Fc,dt.weekdaysRegex=Vc,dt.weekdaysShortRegex=Kc,dt.weekdaysMinRegex=Qc,dt.isPM=nn,dt.meridiem=tn,An("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var c=e%10;return e+(1===pe(e%100/10)?"th":1===c?"st":2===c?"nd":3===c?"rd":"th")}}),o.lang=W("moment.lang is deprecated. Use moment.locale instead.",An),o.langData=W("moment.langData is deprecated. Use moment.localeData instead.",hn);var qt=Math.abs;function Nt(){var e=this._data;return this._milliseconds=qt(this._milliseconds),this._days=qt(this._days),this._months=qt(this._months),e.milliseconds=qt(e.milliseconds),e.seconds=qt(e.seconds),e.minutes=qt(e.minutes),e.hours=qt(e.hours),e.months=qt(e.months),e.years=qt(e.years),this}function gt(e,c,n,o){var a=_o(c,n);return e._milliseconds+=o*a._milliseconds,e._days+=o*a._days,e._months+=o*a._months,e._bubble()}function Wt(e,c){return gt(this,e,c,1)}function Tt(e,c){return gt(this,e,c,-1)}function Xt(e){return e<0?Math.floor(e):Math.ceil(e)}function Bt(){var e,c,n,o,a,t=this._milliseconds,i=this._days,r=this._months,M=this._data;return t>=0&&i>=0&&r>=0||t<=0&&i<=0&&r<=0||(t+=864e5*Xt(yt(r)+i),i=0,r=0),M.milliseconds=t%1e3,e=se(t/1e3),M.seconds=e%60,c=se(e/60),M.minutes=c%60,n=se(c/60),M.hours=n%24,i+=se(n/24),r+=a=se(_t(i)),i-=Xt(yt(a)),o=se(r/12),r%=12,M.days=i,M.months=r,M.years=o,this}function _t(e){return 4800*e/146097}function yt(e){return 146097*e/4800}function St(e){if(!this.isValid())return NaN;var c,n,o=this._milliseconds;if("month"===(e=oe(e))||"quarter"===e||"year"===e)switch(c=this._days+o/864e5,n=this._months+_t(c),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(c=this._days+Math.round(yt(this._months)),e){case"week":return c/7+o/6048e5;case"day":return c+o/864e5;case"hour":return 24*c+o/36e5;case"minute":return 1440*c+o/6e4;case"second":return 86400*c+o/1e3;case"millisecond":return Math.floor(864e5*c)+o;default:throw new Error("Unknown unit "+e)}}function vt(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pe(this._months/12):NaN}function kt(e){return function(){return this.as(e)}}var Ct=kt("ms"),Et=kt("s"),Rt=kt("m"),wt=kt("h"),Dt=kt("d"),Pt=kt("w"),xt=kt("M"),It=kt("Q"),Ht=kt("y");function Yt(){return _o(this)}function Ft(e){return e=oe(e),this.isValid()?this[e+"s"]():NaN}function Ut(e){return function(){return this.isValid()?this._data[e]:NaN}}var jt=Ut("milliseconds"),Gt=Ut("seconds"),Vt=Ut("minutes"),Kt=Ut("hours"),Qt=Ut("days"),Jt=Ut("months"),Zt=Ut("years");function $t(){return se(this.days()/7)}var ei=Math.round,ci={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ni(e,c,n,o,a){return a.relativeTime(c||1,!!n,e,o)}function oi(e,c,n,o){var a=_o(e).abs(),t=ei(a.as("s")),i=ei(a.as("m")),r=ei(a.as("h")),M=ei(a.as("d")),s=ei(a.as("M")),p=ei(a.as("w")),u=ei(a.as("y")),l=t<=n.ss&&["s",t]||t<n.s&&["ss",t]||i<=1&&["m"]||i<n.m&&["mm",i]||r<=1&&["h"]||r<n.h&&["hh",r]||M<=1&&["d"]||M<n.d&&["dd",M];return null!=n.w&&(l=l||p<=1&&["w"]||p<n.w&&["ww",p]),(l=l||s<=1&&["M"]||s<n.M&&["MM",s]||u<=1&&["y"]||["yy",u])[2]=c,l[3]=+e>0,l[4]=o,ni.apply(null,l)}function ai(e){return void 0===e?ei:"function"==typeof e&&(ei=e,!0)}function ti(e,c){return void 0!==ci[e]&&(void 0===c?ci[e]:(ci[e]=c,"s"===e&&(ci.ss=c-1),!0))}function ii(e,c){if(!this.isValid())return this.localeData().invalidDate();var n,o,a=!1,t=ci;return"object"==typeof e&&(c=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof c&&(t=Object.assign({},ci,c),null!=c.s&&null==c.ss&&(t.ss=c.s-1)),o=oi(this,!a,t,n=this.localeData()),a&&(o=n.pastFuture(+this,o)),n.postformat(o)}var ri=Math.abs;function Mi(e){return(e>0)-(e<0)||+e}function si(){if(!this.isValid())return this.localeData().invalidDate();var e,c,n,o,a,t,i,r,M=ri(this._milliseconds)/1e3,s=ri(this._days),p=ri(this._months),u=this.asSeconds();return u?(e=se(M/60),c=se(e/60),M%=60,e%=60,n=se(p/12),p%=12,o=M?M.toFixed(3).replace(/\.?0+$/,""):"",a=u<0?"-":"",t=Mi(this._months)!==Mi(u)?"-":"",i=Mi(this._days)!==Mi(u)?"-":"",r=Mi(this._milliseconds)!==Mi(u)?"-":"",a+"P"+(n?t+n+"Y":"")+(p?t+p+"M":"")+(s?i+s+"D":"")+(c||e||M?"T":"")+(c?r+c+"H":"")+(e?r+e+"M":"")+(M?r+o+"S":"")):"P0D"}var pi=io.prototype;return pi.isValid=ao,pi.abs=Nt,pi.add=Wt,pi.subtract=Tt,pi.as=St,pi.asMilliseconds=Ct,pi.asSeconds=Et,pi.asMinutes=Rt,pi.asHours=wt,pi.asDays=Dt,pi.asWeeks=Pt,pi.asMonths=xt,pi.asQuarters=It,pi.asYears=Ht,pi.valueOf=vt,pi._bubble=Bt,pi.clone=Yt,pi.get=Ft,pi.milliseconds=jt,pi.seconds=Gt,pi.minutes=Vt,pi.hours=Kt,pi.days=Qt,pi.weeks=$t,pi.months=Jt,pi.years=Zt,pi.humanize=ii,pi.toISOString=si,pi.toString=si,pi.toJSON=si,pi.locale=ra,pi.localeData=sa,pi.toIsoString=W("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",si),pi.lang=Ma,x("X",0,0,"unix"),x("x",0,0,"valueOf"),Ee("x",ye),Ee("X",ke),xe("X",(function(e,c,n){n._d=new Date(1e3*parseFloat(e))})),xe("x",(function(e,c,n){n._d=new Date(pe(e))})),
1
+ !function(e,c){"object"==typeof exports&&"undefined"!=typeof module?c(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"],c):c((e="undefined"!=typeof globalThis?globalThis:e||self).DTAutosuggest={},e.PropTypes,e.React,e.i18next,e.cx,e.Autosuggest,e.debounce,e.flatten,e.take,e.isString,e.orderBy,e.uniqWith,e.isEqual,e.memoize,e.escapeRegExp,e.cloneDeep,e.get,e.SuggestionItem,e.Icon,e.isEmpty,e.ReactModal,e.DialogModal)}(this,(function(e,c,n,o,a,t,i,r,M,s,p,u,l,d,b,A,z,f,h,O,L,m){"use strict";function q(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var N=q(c),g=q(n),W=q(o),T=q(a),X=q(t),B=q(i),_=q(r),y=q(M),S=q(s),v=q(p),k=q(u),C=q(l),E=q(d),R=q(b),w=q(A),D=q(z),P=q(f),x=q(h),I=q(O),H=q(L),Y=q(m);function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function U(){return U=Object.assign||function(e){for(var c=1;c<arguments.length;c++){var n=arguments[c];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},U.apply(this,arguments)}function j(e,c){(null==c||c>e.length)&&(c=e.length);for(var n=0,o=new Array(c);n<c;n++)o[n]=e[n];return o}function G(e,c){if(e){if("string"==typeof e)return j(e,c);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,c):void 0}}function V(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||G(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,c){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}function Q(e,c){for(var n=0;n<c.length;n++){var o=c[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function J(e,c){return J=Object.setPrototypeOf||function(e,c){return e.__proto__=c,e},J(e,c)}function Z(e,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(c&&c.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),c&&J(e,c)}function $(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ee(e,c){return!c||"object"!==F(c)&&"function"!=typeof c?$(e):c}function ce(e){return ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ce(e)}function ne(e,c){return function(e){if(Array.isArray(e))return e}(e)||function(e,c){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,a=!1,t=void 0;try{for(var i,r=e[Symbol.iterator]();!(o=(i=r.next()).done)&&(n.push(i.value),!c||n.length!==c);o=!0);}catch(e){a=!0,t=e}finally{try{o||null==r.return||r.return()}finally{if(a)throw t}}return n}}(e,c)||G(e,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,c){return e&&c&&e===c}function ae(e,c){var n=e.properties,o=c.properties;if("FutureRoute"===e.type&&"FutureRoute"===c.type){var a=n.origin,t=n.destination,i=o.origin,r=o.destination;return!!oe("".concat(a.name,"//").concat(a.locality,"//").concat(t.name,"//").concat(t.locality),"".concat(i.name,"//").concat(i.locality,"//").concat(r.name,"//").concat(r.locality))}if("FutureRoute"===e.type||"FutureRoute"===c.type)return!1;if(("bikeRentalStation"===n.layer||"favouriteBikeRentalStation"===n.layer)&&("bikeRentalStation"===o.layer||"favouriteBikeRentalStation"===o.layer)||"bikestation"===n.layer&&"bikestation"===o.layer)return n.labelId===o.labelId;if(oe(n.gtfsId,o.gtfsId))return!0;if(n.gtfsId&&o.gid&&o.gid.includes(n.gtfsId))return!0;if(o.gtfsId&&n.gid&&n.gid.includes(o.gtfsId))return!0;var M=e&&e.geometry?e.geometry.coordinates:void 0,s=c&&c.geometry?c.geometry.coordinates:void 0;return!!(M&&s&&Math.abs(M[0]-s[0])<1e-6&&Math.abs(M[1]-s[1])<1e-6&&(oe(n.name,o.name)||oe(n.label,o.label)||oe(n.address,o.address)||oe(n.address,o.label)||oe(n.label,o.address)))}var te=function(e){return S.default(e)?e.toLowerCase():""},ie={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:"bikeRentalStation"},re=function(e,c){if(!S.default(e)||0===e.length)return 0;return["name","label","address","shortName"].map((function(e){return c[e]})).filter((function(e){return S.default(e)&&e.length>0})).map((function(c){var n=te(c);return 0===n.indexOf(e)?.5+e.length/n.length:.5*e.length/(e.length+1)})).reduce((function(e,c){return c>e?c:e}),0)},Me=function(e,c){switch(e){case ie.CurrentPosition:return 1;case ie.Back:return.9;case ie.SelectFromMap:return.8;case ie.SelectFromOwnLocations:return.79;case ie.FavouriteStation:case ie.FavouritePlace:case ie.FavouriteStop:case ie.FavouriteRoute:return.45;case ie.FutureRoute:return.44;case ie.Station:return S.default(c)&&0===c.indexOf("gtfs")?.43:.42;default:return.4;case ie.Stop:return.35;case ie.BikeRentalStation:return.1}},se=function(e,c){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!Array.isArray(c))return c;var o=function(c){return S.default(c)&&e&&e.test(c)},a=te(n),t=o(a),i=v.default(c,[function(e){return t&&o(te(e.properties.shortName))&&0===te(e.properties.shortName).indexOf(a)?1:0},function(e){var c=e.properties,n=c.confidence,o=c.layer,t=c.source;if(0===a.length)return Me(o,t);if(!n){var i=Me(o,t)+re(a,e.properties);return o===ie.BikeRentalStation?i-.8:i}switch(o){case ie.Station:var r=0===t.indexOf("gtfs")?.05:.01;return Math.min(n+r,1);default:return n;case ie.Stop:return n-.1}}],["desc","desc"]);return k.default(i,ae)},pe=function(e,c){return null!=c&&-1!==e.lastIndexOf(c)?e.substring(0,e.lastIndexOf(c)-1):e},ue=function(e){return e.localadmin||e.locality||e.address&&e.address.lastIndexOf(",")<e.address.length-2&&e.address.substring(e.address.lastIndexOf(",")+2)||""},le=function(e){var c=e.id,n=e.code;return n||(void 0!==c&&void 0!==c.indexOf&&-1!==c.indexOf("#")?c.substring(c.indexOf("#")+1):void 0)},de=E.default((function(e){var c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.layer){case"currentPosition":return[e.labelId,e.address];case"selectFromMap":case"ownLocations":case"back":return[e.labelId];case"favouritePlace":return[e.name||e.address&&e.address.split(",")[0],e.address.replace(new RegExp("".concat(R.default(e.name),"(,)?( )?")),"")];case"favouriteBikeRentalStation":case"bikeRentalStation":return[e.name];case"favouriteRoute":case"route-BUS":case"route-TRAM":case"route-RAIL":case"route-SUBWAY":case"route-FERRY":case"route-AIRPLANE":return!c&&e.shortName?[e.gtfsId,e.mode.toLowerCase(),e.longName]:[e.shortName,e.longName,e.agency?e.agency.name:void 0];case"venue":case"address":case"street":return[e.name,e.label.replace(new RegExp("".concat(R.default(e.name),"(,)?( )?")),"")];case"favouriteStop":case"stop":return c?[e.name||e.label||e.address&&e.address.split(",")[0],ue(e)]:[e.name,e.id,le(e),ue(e)];default:return[e.name||e.label||e.address&&e.address.split(",")[0],ue(e)]}}),(function(e,c){var n=w.default(e);return n.plain=c,n}));function be(e){return k.default(e,(function(e,c){var n=C.default(de(e.properties),de(c.properties))&&e.properties.layer===c.properties.layer;return(!n||"FutureRoute"!==e.type&&"FutureRoute"!==c.type)&&n}))}function Ae(e,c,n){if("string"==typeof c&&c.length>0){var o=c.toLowerCase().trim(),a=o.includes(" ")||o.includes(",");return e.filter((function(e){var c=[];n.forEach((function(n){var o=D.default(e,n);a||"properties.label"!==n&&"address"!==n||!o||((o=o.split(",")).length>2?o.splice(o.length-2,2):o.length>1&&o.splice(o.length-1,1),o=o.join(",")),o&&(c=a?c.concat(o.toLowerCase()):c.concat(o.toLowerCase().replace(/,/g," ").split(" ")))}));for(var t=0;t<c.length;t++)if(0===c[t].indexOf(o))return!0;return!1}))}return e}function ze(e,c){return e?Object.keys(e).map((function(n){var o=c||n,a=e[n];return"object"===F(a)?ze(a,o):"".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(a))})).join("&"):""}var fe=require("axios").default;function he(e,c){return fe.get(encodeURI(e)+(c?(-1===e.search(/\?/)?"?":"&")+ze(c):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then((function(e){return e.data}))}function Oe(e,c,n,o,a,t,i,r){var M=e?e.trim():null;if(null==M||M.length<1||i&&!i.test(M))return Promise.resolve([]);var s=t||"https://api.digitransit.fi/geocoding/v1/search",p=U({text:M},c,o,{lang:n});(a&&(p=U({},p,{sources:a})),r)&&(p=U({},p,{layers:r.toString()}));return he(s,p).then((function(e){return e.features}))}function Le(e,c){if(!e||e.length<1)return Promise.resolve([]);var n="",o=e.map((function(e){var c="stop"===e.type?"stop":"station",o="gtfs".concat(e.gtfsId.split(":")[0].toLowerCase(),":").concat(c,":GTFS:").concat(e.gtfsId);return e.code&&(o+="#".concat(e.code)),n+="".concat(o,","),U({},e,{gid:o})})).reduce((function(e,c){return e[c.gid]=c,e}),{});return he(c,{ids:n.slice(0,-1)}).then((function(e){return e.features.map((function(e){var c,n,a;return{type:"FavouriteStop",properties:{addendum:e.properties.addendum,gid:o[e.properties.gid].gid,code:o[e.properties.gid].code,gtfsId:o[e.properties.gid].gtfsId,lastUpdated:o[e.properties.gid].lastUpdated,favouriteId:o[e.properties.gid].favouriteId,address:e.properties.label,layer:(c=e.properties,n=c.layer,a=c.type,"stop"===n||"favouriteStop"===n||"stop"===a||"favouriteStop"===a?"favouriteStop":"favouriteStation")},geometry:e.geometry}}))}))}function me(e,c,n){var o=Ae(e,c,["properties.name","properties.label","properties.address","properties.shortName","properties.longName"]);return n&&(o=o.filter((function(e){return!n.includes(e.properties.layer)}))),Promise.resolve(y.default(o,10).map((function(e){var c=U({},e,{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete c.properties.confidence,c})))}var qe=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE"],Ne=["favouritePlace","venue","address","street"];var ge=B.default((function(e,c,n,o,a,t,i,r,M,s){var p=i.input,u=o.getPositions,l=o.getFavouriteLocations,d=o.getOldSearches,b=o.getFavouriteStops,A=o.getLanguage,z=o.getStopAndStationsQuery,f=o.getFavouriteBikeRentalStationsQuery,h=o.getFavouriteBikeRentalStations,O=o.getFavouriteRoutesQuery,L=o.getFavouriteRoutes,m=o.getRoutesQuery,q=o.context,N=o.isPeliasLocationAware,g=o.minimalRegexp,W=o.lineRegexp,T=o.URL_PELIAS,X=o.URL_PELIAS_PLACE,B=o.feedIDs,S=o.geocodingSearchParams,v=o.geocodingSources,k=o.getFutureRoutes,C=o.cityBikeNetworks,E=!e||0===e.length,R=!c||0===c.length,w=u(q),D=[],P={type:"all",term:p,results:[]},x=A(q),I=N&&null!=s&&s.lat&&null!=s&&s.lon?{"focus.point.lat":s.lat.toFixed(3),"focus.point.lon":s.lon.toFixed(3)}:{},H=n?n.split("-")[1]:void 0;if(e.includes("CurrentPosition")&&"geolocation-not-supported"!==w.status&&D.push(function(e,c){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"CurrentLocation",address:c.address,lat:c.lat,lon:c.lon,properties:{labelId:"use-own-position",layer:"currentPosition",address:c.address,lat:c.lat,lon:c.lon},geometry:{type:"Point",coordinates:[c.lon,c.lat]}}]):Promise.resolve([])}(p,w)),(E||e.includes("MapPosition"))&&D.push(function(e){return"string"!=typeof e||0===e.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([])}(p)),e.includes("FutureRoutes")){var Y=k(q);D.push(y.default(Y,3))}if(e.includes("SelectFromOwnLocations")&&function(e,c,n){var o=c(e);if(o&&o.length>0)return!0;var a=n(e);return a&&a.length>0}(q,l,b)&&D.push(function(e){return"string"!=typeof e||0===e.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([])}(p)),E||e.includes("Locations")){var F=S;if(c.includes("Favourite")){var j=l(q);D.push(function(e,c){return Promise.resolve(Ae(e,c,["address","name"]).map((function(e){return{type:"FavouritePlace",properties:U({},e,{label:e.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[e.lon,e.lat]}}})))}(j,p)),c.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(R||c.includes("Datasource")){var G=B.map((function(e){return"gtfs".concat(e)})),K=v.concat(G).join(",");D.push(Oe(p,F,x,I,K,T,g,["station","venue","address","street"]))}if(R||c.includes("History")){var Q=d(q,"endpoint"),J=["currentPosition","selectFromMap","futureRoute","ownLocations","bikeRentalStation","stop","back"];J.push.apply(J,qe),D.push(me(Q,p,J))}}if(E||e.includes("Stops")){if(c.includes("Favourite")){var Z,$=b(q);Z=$.every((function(e){return"station"===e.type}))?Le($,X).then((function(e){return a?a(e,H):e})):z($).then((function(e){return Le(e,X)})).then((function(e){return a?a(e,H):e})),D.push(function(e,c){return e.then((function(e){return Ae(e,c,["properties.name","properties.name","properties.address"])}))}(Z,p))}if(R||c.includes("Datasource")){var ee={size:t},ce=B.map((function(e){return"gtfs".concat(e)})).join(",");D.push(Oe(p,ee,x,I,ce,T,g,["stop","station"]).then((function(e){return a?a(e,H):e})))}if(R||c.includes("History")){var ne=d(q).filter((function(e){return!e.properties.gid||e.properties.gid.includes("GTFS:")})),oe=["currentPosition","selectFromMap","futureRoute","ownLocations","favouritePlace","bikeRentalStation","back"];oe.push.apply(oe,qe),oe.push.apply(oe,Ne),n?("route-CITYBIKE"!==n&&(oe.push("bikeRentalStation"),oe.push("bikestation")),D.push(me(ne,p,oe).then((function(e){return a?a(e,H):e})))):D.push(me(ne,p,oe))}}if(E||e.includes("Routes")){if(c.includes("Favourite")){var ae=L(q);D.push(O(ae,p,H,M).then((function(e){return a?a(e,H,"Routes"):e})))}if(D.push(m(p,B,n,M).then((function(e){return a?a(e,H,"Routes"):e}))),R||c.includes("History")){var te=d(q),ie=["currentPosition","selectFromMap","futureRoute","favouritePlace","stop","station","ownLocations","back"];n&&("route-CITYBIKE"!==n&&(ie.push("bikeRentalStation"),ie.push("bikestation")),ie.push.apply(ie,V(qe.filter((function(e){return!(e===n)}))))),ie.push.apply(ie,Ne),D.push(me(te,p,ie).then((function(e){return a?a(e,H,"Routes"):e})))}}if(E||e.includes("BikeRentalStations")){if(c.includes("Favourite")){var re=h(q);D.push(f(re,p))}if(R||c.includes("Datasource")){var Me={size:t};D.push(Oe(p,Me,x,I,C.join(","),T,g,["bikestation"]).then((function(e){return a?a(e,H,"BikeRentalStations"):e})))}}Promise.all(D).then(_.default).then(be).then((function(e){P.results=e})).catch((function(e){P.error=e})).then((function(){r(U({},P,{results:se(W,P.results,p)}))}))}),300,{leading:!0});function We(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Te(e,c){return e(c={exports:{}},c.exports),c.exports}var Xe,Be=Te((function(e,c){e.exports=function(){var c,n;function o(){return c.apply(null,arguments)}function a(e){c=e}function t(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,c){return Object.prototype.hasOwnProperty.call(e,c)}function M(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var c;for(c in e)if(r(e,c))return!1;return!0}function s(e){return void 0===e}function p(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,c){var n,o=[];for(n=0;n<e.length;++n)o.push(c(e[n],n));return o}function d(e,c){for(var n in c)r(c,n)&&(e[n]=c[n]);return r(c,"toString")&&(e.toString=c.toString),r(c,"valueOf")&&(e.valueOf=c.valueOf),e}function b(e,c,n,o){return Vn(e,c,n,o,!0).utc()}function A(){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 z(e){return null==e._pf&&(e._pf=A()),e._pf}function f(e){if(null==e._isValid){var c=z(e),o=n.call(c.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&c.overflow<0&&!c.empty&&!c.invalidEra&&!c.invalidMonth&&!c.invalidWeekday&&!c.weekdayMismatch&&!c.nullInput&&!c.invalidFormat&&!c.userInvalidated&&(!c.meridiem||c.meridiem&&o);if(e._strict&&(a=a&&0===c.charsLeftOver&&0===c.unusedTokens.length&&void 0===c.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function h(e){var c=b(NaN);return null!=e?d(z(c),e):z(c).userInvalidated=!0,c}n=Array.prototype.some?Array.prototype.some:function(e){var c,n=Object(this),o=n.length>>>0;for(c=0;c<o;c++)if(c in n&&e.call(this,n[c],c,n))return!0;return!1};var O=o.momentProperties=[],L=!1;function m(e,c){var n,o,a;if(s(c._isAMomentObject)||(e._isAMomentObject=c._isAMomentObject),s(c._i)||(e._i=c._i),s(c._f)||(e._f=c._f),s(c._l)||(e._l=c._l),s(c._strict)||(e._strict=c._strict),s(c._tzm)||(e._tzm=c._tzm),s(c._isUTC)||(e._isUTC=c._isUTC),s(c._offset)||(e._offset=c._offset),s(c._pf)||(e._pf=z(c)),s(c._locale)||(e._locale=c._locale),O.length>0)for(n=0;n<O.length;n++)s(a=c[o=O[n]])||(e[o]=a);return e}function q(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===L&&(L=!0,o.updateOffset(this),L=!1)}function N(e){return e instanceof q||null!=e&&null!=e._isAMomentObject}function g(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function W(e,c){var n=!0;return d((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var a,t,i,M=[];for(t=0;t<arguments.length;t++){if(a="","object"==typeof arguments[t]){for(i in a+="\n["+t+"] ",arguments[0])r(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[t];M.push(a)}g(e+"\nArguments: "+Array.prototype.slice.call(M).join("")+"\n"+(new Error).stack),n=!1}return c.apply(this,arguments)}),c)}var T,X={};function B(e,c){null!=o.deprecationHandler&&o.deprecationHandler(e,c),X[e]||(g(c),X[e]=!0)}function _(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function y(e){var c,n;for(n in e)r(e,n)&&(_(c=e[n])?this[n]=c:this["_"+n]=c);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function S(e,c){var n,o=d({},e);for(n in c)r(c,n)&&(i(e[n])&&i(c[n])?(o[n]={},d(o[n],e[n]),d(o[n],c[n])):null!=c[n]?o[n]=c[n]:delete o[n]);for(n in e)r(e,n)&&!r(c,n)&&i(e[n])&&(o[n]=d({},o[n]));return o}function v(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var c,n=[];for(c in e)r(e,c)&&n.push(c);return n};var k={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function C(e,c,n){var o=this._calendar[e]||this._calendar.sameElse;return _(o)?o.call(c,n):o}function E(e,c,n){var o=""+Math.abs(e),a=c-o.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+o}var R=/(\[[^\[]*\])|(\\)?([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,w=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},P={};function x(e,c,n,o){var a=o;"string"==typeof o&&(a=function(){return this[o]()}),e&&(P[e]=a),c&&(P[c[0]]=function(){return E(a.apply(this,arguments),c[1],c[2])}),n&&(P[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function I(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var c,n,o=e.match(R);for(c=0,n=o.length;c<n;c++)P[o[c]]?o[c]=P[o[c]]:o[c]=I(o[c]);return function(c){var a,t="";for(a=0;a<n;a++)t+=_(o[a])?o[a].call(c,e):o[a];return t}}function Y(e,c){return e.isValid()?(c=F(c,e.localeData()),D[c]=D[c]||H(c),D[c](e)):e.localeData().invalidDate()}function F(e,c){var n=5;function o(e){return c.longDateFormat(e)||e}for(w.lastIndex=0;n>=0&&w.test(e);)e=e.replace(w,o),w.lastIndex=0,n-=1;return e}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(e){var c=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return c||!n?c:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var G="Invalid date";function V(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}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 $(e,c,n,o){var a=this._relativeTime[n];return _(a)?a(e,c,n,o):a.replace(/%d/i,e)}function ee(e,c){var n=this._relativeTime[e>0?"future":"past"];return _(n)?n(c):n.replace(/%s/i,c)}var ce={};function ne(e,c){var n=e.toLowerCase();ce[n]=ce[n+"s"]=ce[c]=e}function oe(e){return"string"==typeof e?ce[e]||ce[e.toLowerCase()]:void 0}function ae(e){var c,n,o={};for(n in e)r(e,n)&&(c=oe(n))&&(o[c]=e[n]);return o}var te={};function ie(e,c){te[e]=c}function re(e){var c,n=[];for(c in e)r(e,c)&&n.push({unit:c,priority:te[c]});return n.sort((function(e,c){return e.priority-c.priority})),n}function Me(e){return e%4==0&&e%100!=0||e%400==0}function se(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var c=+e,n=0;return 0!==c&&isFinite(c)&&(n=se(c)),n}function ue(e,c){return function(n){return null!=n?(de(this,e,n),o.updateOffset(this,c),this):le(this,e)}}function le(e,c){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+c]():NaN}function de(e,c,n){e.isValid()&&!isNaN(n)&&("FullYear"===c&&Me(e.year())&&1===e.month()&&29===e.date()?(n=pe(n),e._d["set"+(e._isUTC?"UTC":"")+c](n,e.month(),ec(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+c](n))}function be(e){return _(this[e=oe(e)])?this[e]():this}function Ae(e,c){if("object"==typeof e){var n,o=re(e=ae(e));for(n=0;n<o.length;n++)this[o[n].unit](e[o[n].unit])}else if(_(this[e=oe(e)]))return this[e](c);return this}var ze,fe=/\d/,he=/\d\d/,Oe=/\d{3}/,Le=/\d{4}/,me=/[+-]?\d{6}/,qe=/\d\d?/,Ne=/\d\d\d\d?/,ge=/\d\d\d\d\d\d?/,Te=/\d{1,3}/,Xe=/\d{1,4}/,Be=/[+-]?\d{1,6}/,_e=/\d+/,ye=/[+-]?\d+/,Se=/Z|[+-]\d\d:?\d\d/gi,ve=/Z|[+-]\d\d(?::?\d\d)?/gi,ke=/[+-]?\d+(\.\d{1,3})?/,Ce=/[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 Ee(e,c,n){ze[e]=_(c)?c:function(e,o){return e&&n?n:c}}function Re(e,c){return r(ze,e)?ze[e](c._strict,c._locale):new RegExp(we(e))}function we(e){return De(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,c,n,o,a){return c||n||o||a})))}function De(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ze={};var Pe={};function xe(e,c){var n,o=c;for("string"==typeof e&&(e=[e]),p(c)&&(o=function(e,n){n[c]=pe(e)}),n=0;n<e.length;n++)Pe[e[n]]=o}function Ie(e,c){xe(e,(function(e,n,o,a){o._w=o._w||{},c(e,o._w,o,a)}))}function He(e,c,n){null!=c&&r(Pe,e)&&Pe[e](c,n._a,n,e)}var Ye,Fe=0,Ue=1,je=2,Ge=3,Ve=4,Ke=5,Qe=6,Je=7,Ze=8;function $e(e,c){return(e%c+c)%c}function ec(e,c){if(isNaN(e)||isNaN(c))return NaN;var n=$e(c,12);return e+=(c-n)/12,1===n?Me(e)?29:28:31-n%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var c;for(c=0;c<this.length;++c)if(this[c]===e)return c;return-1},x("M",["MM",2],"Mo",(function(){return this.month()+1})),x("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),x("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),ie("month",8),Ee("M",qe),Ee("MM",qe,he),Ee("MMM",(function(e,c){return c.monthsShortRegex(e)})),Ee("MMMM",(function(e,c){return c.monthsRegex(e)})),xe(["M","MM"],(function(e,c){c[Ue]=pe(e)-1})),xe(["MMM","MMMM"],(function(e,c,n,o){var a=n._locale.monthsParse(e,o,n._strict);null!=a?c[Ue]=a:z(n).invalidMonth=e}));var cc="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nc="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),oc=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ac=Ce,tc=Ce;function ic(e,c){return e?t(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||oc).test(c)?"format":"standalone"][e.month()]:t(this._months)?this._months:this._months.standalone}function rc(e,c){return e?t(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[oc.test(c)?"format":"standalone"][e.month()]:t(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Mc(e,c,n){var o,a,t,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)t=b([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(t,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(t,"").toLocaleLowerCase();return n?"MMM"===c?-1!==(a=Ye.call(this._shortMonthsParse,i))?a:null:-1!==(a=Ye.call(this._longMonthsParse,i))?a:null:"MMM"===c?-1!==(a=Ye.call(this._shortMonthsParse,i))||-1!==(a=Ye.call(this._longMonthsParse,i))?a:null:-1!==(a=Ye.call(this._longMonthsParse,i))||-1!==(a=Ye.call(this._shortMonthsParse,i))?a:null}function sc(e,c,n){var o,a,t;if(this._monthsParseExact)return Mc.call(this,e,c,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(a=b([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(t="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[o]=new RegExp(t.replace(".",""),"i")),n&&"MMMM"===c&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===c&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function pc(e,c){var n;if(!e.isValid())return e;if("string"==typeof c)if(/^\d+$/.test(c))c=pe(c);else if(!p(c=e.localeData().monthsParse(c)))return e;return n=Math.min(e.date(),ec(e.year(),c)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](c,n),e}function uc(e){return null!=e?(pc(this,e),o.updateOffset(this,!0),this):le(this,"Month")}function lc(){return ec(this.year(),this.month())}function dc(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Ac.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=ac),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function bc(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Ac.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=tc),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ac(){function e(e,c){return c.length-e.length}var c,n,o=[],a=[],t=[];for(c=0;c<12;c++)n=b([2e3,c]),o.push(this.monthsShort(n,"")),a.push(this.months(n,"")),t.push(this.months(n,"")),t.push(this.monthsShort(n,""));for(o.sort(e),a.sort(e),t.sort(e),c=0;c<12;c++)o[c]=De(o[c]),a[c]=De(a[c]);for(c=0;c<24;c++)t[c]=De(t[c]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function zc(e){return Me(e)?366:365}x("Y",0,0,(function(){var e=this.year();return e<=9999?E(e,4):"+"+e})),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"),ne("year","y"),ie("year",1),Ee("Y",ye),Ee("YY",qe,he),Ee("YYYY",Xe,Le),Ee("YYYYY",Be,me),Ee("YYYYYY",Be,me),xe(["YYYYY","YYYYYY"],Fe),xe("YYYY",(function(e,c){c[Fe]=2===e.length?o.parseTwoDigitYear(e):pe(e)})),xe("YY",(function(e,c){c[Fe]=o.parseTwoDigitYear(e)})),xe("Y",(function(e,c){c[Fe]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var fc=ue("FullYear",!0);function hc(){return Me(this.year())}function Oc(e,c,n,o,a,t,i){var r;return e<100&&e>=0?(r=new Date(e+400,c,n,o,a,t,i),isFinite(r.getFullYear())&&r.setFullYear(e)):r=new Date(e,c,n,o,a,t,i),r}function Lc(e){var c,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,c=new Date(Date.UTC.apply(null,n)),isFinite(c.getUTCFullYear())&&c.setUTCFullYear(e)):c=new Date(Date.UTC.apply(null,arguments)),c}function mc(e,c,n){var o=7+c-n;return-(7+Lc(e,0,o).getUTCDay()-c)%7+o-1}function qc(e,c,n,o,a){var t,i,r=1+7*(c-1)+(7+n-o)%7+mc(e,o,a);return r<=0?i=zc(t=e-1)+r:r>zc(e)?(t=e+1,i=r-zc(e)):(t=e,i=r),{year:t,dayOfYear:i}}function Nc(e,c,n){var o,a,t=mc(e.year(),c,n),i=Math.floor((e.dayOfYear()-t-1)/7)+1;return i<1?o=i+gc(a=e.year()-1,c,n):i>gc(e.year(),c,n)?(o=i-gc(e.year(),c,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function gc(e,c,n){var o=mc(e,c,n),a=mc(e+1,c,n);return(zc(e)-o+a)/7}function Wc(e){return Nc(e,this._week.dow,this._week.doy).week}x("w",["ww",2],"wo","week"),x("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ie("week",5),ie("isoWeek",5),Ee("w",qe),Ee("ww",qe,he),Ee("W",qe),Ee("WW",qe,he),Ie(["w","ww","W","WW"],(function(e,c,n,o){c[o.substr(0,1)]=pe(e)}));var Tc={dow:0,doy:6};function Xc(){return this._week.dow}function Bc(){return this._week.doy}function _c(e){var c=this.localeData().week(this);return null==e?c:this.add(7*(e-c),"d")}function yc(e){var c=Nc(this,1,4).week;return null==e?c:this.add(7*(e-c),"d")}function Sc(e,c){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=c.weekdaysParse(e))?e:null:parseInt(e,10)}function vc(e,c){return"string"==typeof e?c.weekdaysParse(e)%7||7:isNaN(e)?null:e}function kc(e,c){return e.slice(c,7).concat(e.slice(0,c))}x("d",0,"do","day"),x("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),x("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),x("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),x("e",0,0,"weekday"),x("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ie("day",11),ie("weekday",11),ie("isoWeekday",11),Ee("d",qe),Ee("e",qe),Ee("E",qe),Ee("dd",(function(e,c){return c.weekdaysMinRegex(e)})),Ee("ddd",(function(e,c){return c.weekdaysShortRegex(e)})),Ee("dddd",(function(e,c){return c.weekdaysRegex(e)})),Ie(["dd","ddd","dddd"],(function(e,c,n,o){var a=n._locale.weekdaysParse(e,o,n._strict);null!=a?c.d=a:z(n).invalidWeekday=e})),Ie(["d","e","E"],(function(e,c,n,o){c[o]=pe(e)}));var Cc="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ec="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rc="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wc=Ce,Dc=Ce,Pc=Ce;function xc(e,c){var n=t(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(c)?"format":"standalone"];return!0===e?kc(n,this._week.dow):e?n[e.day()]:n}function Ic(e){return!0===e?kc(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Hc(e){return!0===e?kc(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yc(e,c,n){var o,a,t,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)t=b([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(t,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(t,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(t,"").toLocaleLowerCase();return n?"dddd"===c?-1!==(a=Ye.call(this._weekdaysParse,i))?a:null:"ddd"===c?-1!==(a=Ye.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:"dddd"===c?-1!==(a=Ye.call(this._weekdaysParse,i))||-1!==(a=Ye.call(this._shortWeekdaysParse,i))||-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:"ddd"===c?-1!==(a=Ye.call(this._shortWeekdaysParse,i))||-1!==(a=Ye.call(this._weekdaysParse,i))||-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,i))||-1!==(a=Ye.call(this._weekdaysParse,i))||-1!==(a=Ye.call(this._shortWeekdaysParse,i))?a:null}function Fc(e,c,n){var o,a,t;if(this._weekdaysParseExact)return Yc.call(this,e,c,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(a=b([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(t="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[o]=new RegExp(t.replace(".",""),"i")),n&&"dddd"===c&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===c&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===c&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function Uc(e){if(!this.isValid())return null!=e?this:NaN;var c=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Sc(e,this.localeData()),this.add(e-c,"d")):c}function jc(e){if(!this.isValid())return null!=e?this:NaN;var c=(this.day()+7-this.localeData()._week.dow)%7;return null==e?c:this.add(e-c,"d")}function Gc(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var c=vc(e,this.localeData());return this.day(this.day()%7?c:c-7)}return this.day()||7}function Vc(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jc.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=wc),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kc(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jc.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Dc),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qc(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jc.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pc),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jc(){function e(e,c){return c.length-e.length}var c,n,o,a,t,i=[],r=[],M=[],s=[];for(c=0;c<7;c++)n=b([2e3,1]).day(c),o=De(this.weekdaysMin(n,"")),a=De(this.weekdaysShort(n,"")),t=De(this.weekdays(n,"")),i.push(o),r.push(a),M.push(t),s.push(o),s.push(a),s.push(t);i.sort(e),r.sort(e),M.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+M.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Zc(){return this.hours()%12||12}function $c(){return this.hours()||24}function en(e,c){x(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),c)}))}function cn(e,c){return c._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}x("H",["HH",2],0,"hour"),x("h",["hh",2],0,Zc),x("k",["kk",2],0,$c),x("hmm",0,0,(function(){return""+Zc.apply(this)+E(this.minutes(),2)})),x("hmmss",0,0,(function(){return""+Zc.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)})),en("a",!0),en("A",!1),ne("hour","h"),ie("hour",13),Ee("a",cn),Ee("A",cn),Ee("H",qe),Ee("h",qe),Ee("k",qe),Ee("HH",qe,he),Ee("hh",qe,he),Ee("kk",qe,he),Ee("hmm",Ne),Ee("hmmss",ge),Ee("Hmm",Ne),Ee("Hmmss",ge),xe(["H","HH"],Ge),xe(["k","kk"],(function(e,c,n){var o=pe(e);c[Ge]=24===o?0:o})),xe(["a","A"],(function(e,c,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),xe(["h","hh"],(function(e,c,n){c[Ge]=pe(e),z(n).bigHour=!0})),xe("hmm",(function(e,c,n){var o=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o)),z(n).bigHour=!0})),xe("hmmss",(function(e,c,n){var o=e.length-4,a=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o,2)),c[Ke]=pe(e.substr(a)),z(n).bigHour=!0})),xe("Hmm",(function(e,c,n){var o=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o))})),xe("Hmmss",(function(e,c,n){var o=e.length-4,a=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o,2)),c[Ke]=pe(e.substr(a))}));var on=/[ap]\.?m?\.?/i,an=ue("Hours",!0);function tn(e,c,n){return e>11?n?"pm":"PM":n?"am":"AM"}var rn,Mn={calendar:k,longDateFormat:U,invalidDate:G,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:Z,months:cc,monthsShort:nc,week:Tc,weekdays:Cc,weekdaysMin:Rc,weekdaysShort:Ec,meridiemParse:on},sn={},pn={};function un(e,c){var n,o=Math.min(e.length,c.length);for(n=0;n<o;n+=1)if(e[n]!==c[n])return n;return o}function ln(e){return e?e.toLowerCase().replace("_","-"):e}function dn(e){for(var c,n,o,a,t=0;t<e.length;){for(c=(a=ln(e[t]).split("-")).length,n=(n=ln(e[t+1]))?n.split("-"):null;c>0;){if(o=bn(a.slice(0,c).join("-")))return o;if(n&&n.length>=c&&un(a,n)>=c-1)break;c--}t++}return rn}function bn(c){var n=null;if(void 0===sn[c]&&e&&e.exports)try{n=rn._abbr,We(),An(n)}catch(e){sn[c]=null}return sn[c]}function An(e,c){var n;return e&&((n=s(c)?hn(e):zn(e,c))?rn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rn._abbr}function zn(e,c){if(null!==c){var n,o=Mn;if(c.abbr=e,null!=sn[e])B("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."),o=sn[e]._config;else if(null!=c.parentLocale)if(null!=sn[c.parentLocale])o=sn[c.parentLocale]._config;else{if(null==(n=bn(c.parentLocale)))return pn[c.parentLocale]||(pn[c.parentLocale]=[]),pn[c.parentLocale].push({name:e,config:c}),null;o=n._config}return sn[e]=new v(S(o,c)),pn[e]&&pn[e].forEach((function(e){zn(e.name,e.config)})),An(e),sn[e]}return delete sn[e],null}function fn(e,c){if(null!=c){var n,o,a=Mn;null!=sn[e]&&null!=sn[e].parentLocale?sn[e].set(S(sn[e]._config,c)):(null!=(o=bn(e))&&(a=o._config),c=S(a,c),null==o&&(c.abbr=e),(n=new v(c)).parentLocale=sn[e],sn[e]=n),An(e)}else null!=sn[e]&&(null!=sn[e].parentLocale?(sn[e]=sn[e].parentLocale,e===An()&&An(e)):null!=sn[e]&&delete sn[e]);return sn[e]}function hn(e){var c;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rn;if(!t(e)){if(c=bn(e))return c;e=[e]}return dn(e)}function On(){return T(sn)}function Ln(e){var c,n=e._a;return n&&-2===z(e).overflow&&(c=n[Ue]<0||n[Ue]>11?Ue:n[je]<1||n[je]>ec(n[Fe],n[Ue])?je:n[Ge]<0||n[Ge]>24||24===n[Ge]&&(0!==n[Ve]||0!==n[Ke]||0!==n[Qe])?Ge:n[Ve]<0||n[Ve]>59?Ve:n[Ke]<0||n[Ke]>59?Ke:n[Qe]<0||n[Qe]>999?Qe:-1,z(e)._overflowDayOfYear&&(c<Fe||c>je)&&(c=je),z(e)._overflowWeeks&&-1===c&&(c=Je),z(e)._overflowWeekday&&-1===c&&(c=Ze),z(e).overflow=c),e}var mn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qn=/^\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)?)?$/,Nn=/Z|[+-]\d\d(?::?\d\d)?/,gn=[["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]],Wn=[["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/]],Tn=/^\/?Date\((-?\d+)/i,Xn=/^(?:(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}))$/,Bn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _n(e){var c,n,o,a,t,i,r=e._i,M=mn.exec(r)||qn.exec(r);if(M){for(z(e).iso=!0,c=0,n=gn.length;c<n;c++)if(gn[c][1].exec(M[1])){a=gn[c][0],o=!1!==gn[c][2];break}if(null==a)return void(e._isValid=!1);if(M[3]){for(c=0,n=Wn.length;c<n;c++)if(Wn[c][1].exec(M[3])){t=(M[2]||" ")+Wn[c][0];break}if(null==t)return void(e._isValid=!1)}if(!o&&null!=t)return void(e._isValid=!1);if(M[4]){if(!Nn.exec(M[4]))return void(e._isValid=!1);i="Z"}e._f=a+(t||"")+(i||""),In(e)}else e._isValid=!1}function yn(e,c,n,o,a,t){var i=[Sn(e),nc.indexOf(c),parseInt(n,10),parseInt(o,10),parseInt(a,10)];return t&&i.push(parseInt(t,10)),i}function Sn(e){var c=parseInt(e,10);return c<=49?2e3+c:c<=999?1900+c:c}function vn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function kn(e,c,n){return!e||Ec.indexOf(e)===new Date(c[0],c[1],c[2]).getDay()||(z(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Cn(e,c,n){if(e)return Bn[e];if(c)return 0;var o=parseInt(n,10),a=o%100;return(o-a)/100*60+a}function En(e){var c,n=Xn.exec(vn(e._i));if(n){if(c=yn(n[4],n[3],n[2],n[5],n[6],n[7]),!kn(n[1],c,e))return;e._a=c,e._tzm=Cn(n[8],n[9],n[10]),e._d=Lc.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),z(e).rfc2822=!0}else e._isValid=!1}function Rn(e){var c=Tn.exec(e._i);null===c?(_n(e),!1===e._isValid&&(delete e._isValid,En(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+c[1])}function wn(e,c,n){return null!=e?e:null!=c?c:n}function Dn(e){var c=new Date(o.now());return e._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()]}function Pn(e){var c,n,o,a,t,i=[];if(!e._d){for(o=Dn(e),e._w&&null==e._a[je]&&null==e._a[Ue]&&xn(e),null!=e._dayOfYear&&(t=wn(e._a[Fe],o[Fe]),(e._dayOfYear>zc(t)||0===e._dayOfYear)&&(z(e)._overflowDayOfYear=!0),n=Lc(t,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[je]=n.getUTCDate()),c=0;c<3&&null==e._a[c];++c)e._a[c]=i[c]=o[c];for(;c<7;c++)e._a[c]=i[c]=null==e._a[c]?2===c?1:0:e._a[c];24===e._a[Ge]&&0===e._a[Ve]&&0===e._a[Ke]&&0===e._a[Qe]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?Lc:Oc).apply(null,i),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(z(e).weekdayMismatch=!0)}}function xn(e){var c,n,o,a,t,i,r,M,s;null!=(c=e._w).GG||null!=c.W||null!=c.E?(t=1,i=4,n=wn(c.GG,e._a[Fe],Nc(Kn(),1,4).year),o=wn(c.W,1),((a=wn(c.E,1))<1||a>7)&&(M=!0)):(t=e._locale._week.dow,i=e._locale._week.doy,s=Nc(Kn(),t,i),n=wn(c.gg,e._a[Fe],s.year),o=wn(c.w,s.week),null!=c.d?((a=c.d)<0||a>6)&&(M=!0):null!=c.e?(a=c.e+t,(c.e<0||c.e>6)&&(M=!0)):a=t),o<1||o>gc(n,t,i)?z(e)._overflowWeeks=!0:null!=M?z(e)._overflowWeekday=!0:(r=qc(n,o,a,t,i),e._a[Fe]=r.year,e._dayOfYear=r.dayOfYear)}function In(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],z(e).empty=!0;var c,n,a,t,i,r,M=""+e._i,s=M.length,p=0;for(a=F(e._f,e._locale).match(R)||[],c=0;c<a.length;c++)t=a[c],(n=(M.match(Re(t,e))||[])[0])&&((i=M.substr(0,M.indexOf(n))).length>0&&z(e).unusedInput.push(i),M=M.slice(M.indexOf(n)+n.length),p+=n.length),P[t]?(n?z(e).empty=!1:z(e).unusedTokens.push(t),He(t,n,e)):e._strict&&!n&&z(e).unusedTokens.push(t);z(e).charsLeftOver=s-p,M.length>0&&z(e).unusedInput.push(M),e._a[Ge]<=12&&!0===z(e).bigHour&&e._a[Ge]>0&&(z(e).bigHour=void 0),z(e).parsedDateParts=e._a.slice(0),z(e).meridiem=e._meridiem,e._a[Ge]=Hn(e._locale,e._a[Ge],e._meridiem),null!==(r=z(e).era)&&(e._a[Fe]=e._locale.erasConvertYear(r,e._a[Fe])),Pn(e),Ln(e)}else En(e);else _n(e)}function Hn(e,c,n){var o;return null==n?c:null!=e.meridiemHour?e.meridiemHour(c,n):null!=e.isPM?((o=e.isPM(n))&&c<12&&(c+=12),o||12!==c||(c=0),c):c}function Yn(e){var c,n,o,a,t,i,r=!1;if(0===e._f.length)return z(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)t=0,i=!1,c=m({},e),null!=e._useUTC&&(c._useUTC=e._useUTC),c._f=e._f[a],In(c),f(c)&&(i=!0),t+=z(c).charsLeftOver,t+=10*z(c).unusedTokens.length,z(c).score=t,r?t<o&&(o=t,n=c):(null==o||t<o||i)&&(o=t,n=c,i&&(r=!0));d(e,n||c)}function Fn(e){if(!e._d){var c=ae(e._i),n=void 0===c.day?c.date:c.day;e._a=l([c.year,c.month,n,c.hour,c.minute,c.second,c.millisecond],(function(e){return e&&parseInt(e,10)})),Pn(e)}}function Un(e){var c=new q(Ln(jn(e)));return c._nextDay&&(c.add(1,"d"),c._nextDay=void 0),c}function jn(e){var c=e._i,n=e._f;return e._locale=e._locale||hn(e._l),null===c||void 0===n&&""===c?h({nullInput:!0}):("string"==typeof c&&(e._i=c=e._locale.preparse(c)),N(c)?new q(Ln(c)):(u(c)?e._d=c:t(n)?Yn(e):n?In(e):Gn(e),f(e)||(e._d=null),e))}function Gn(e){var c=e._i;s(c)?e._d=new Date(o.now()):u(c)?e._d=new Date(c.valueOf()):"string"==typeof c?Rn(e):t(c)?(e._a=l(c.slice(0),(function(e){return parseInt(e,10)})),Pn(e)):i(c)?Fn(e):p(c)?e._d=new Date(c):o.createFromInputFallback(e)}function Vn(e,c,n,o,a){var r={};return!0!==c&&!1!==c||(o=c,c=void 0),!0!==n&&!1!==n||(o=n,n=void 0),(i(e)&&M(e)||t(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=n,r._i=e,r._f=c,r._strict=o,Un(r)}function Kn(e,c,n,o){return Vn(e,c,n,o,!1)}o.createFromInputFallback=W("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Qn=W("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:h()})),Jn=W("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:h()}));function Zn(e,c){var n,o;if(1===c.length&&t(c[0])&&(c=c[0]),!c.length)return Kn();for(n=c[0],o=1;o<c.length;++o)c[o].isValid()&&!c[o][e](n)||(n=c[o]);return n}function $n(){return Zn("isBefore",[].slice.call(arguments,0))}function eo(){return Zn("isAfter",[].slice.call(arguments,0))}var co=function(){return Date.now?Date.now():+new Date},no=["year","quarter","month","week","day","hour","minute","second","millisecond"];function oo(e){var c,n,o=!1;for(c in e)if(r(e,c)&&(-1===Ye.call(no,c)||null!=e[c]&&isNaN(e[c])))return!1;for(n=0;n<no.length;++n)if(e[no[n]]){if(o)return!1;parseFloat(e[no[n]])!==pe(e[no[n]])&&(o=!0)}return!0}function ao(){return this._isValid}function to(){return _o(NaN)}function io(e){var c=ae(e),n=c.year||0,o=c.quarter||0,a=c.month||0,t=c.week||c.isoWeek||0,i=c.day||0,r=c.hour||0,M=c.minute||0,s=c.second||0,p=c.millisecond||0;this._isValid=oo(c),this._milliseconds=+p+1e3*s+6e4*M+1e3*r*60*60,this._days=+i+7*t,this._months=+a+3*o+12*n,this._data={},this._locale=hn(),this._bubble()}function ro(e){return e instanceof io}function Mo(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function so(e,c,n){var o,a=Math.min(e.length,c.length),t=Math.abs(e.length-c.length),i=0;for(o=0;o<a;o++)(n&&e[o]!==c[o]||!n&&pe(e[o])!==pe(c[o]))&&i++;return i+t}function po(e,c){x(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+E(~~(e/60),2)+c+E(~~e%60,2)}))}po("Z",":"),po("ZZ",""),Ee("Z",ve),Ee("ZZ",ve),xe(["Z","ZZ"],(function(e,c,n){n._useUTC=!0,n._tzm=lo(ve,e)}));var uo=/([\+\-]|\d\d)/gi;function lo(e,c){var n,o,a=(c||"").match(e);return null===a?null:0===(o=60*(n=((a[a.length-1]||[])+"").match(uo)||["-",0,0])[1]+pe(n[2]))?0:"+"===n[0]?o:-o}function bo(e,c){var n,a;return c._isUTC?(n=c.clone(),a=(N(e)||u(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),o.updateOffset(n,!1),n):Kn(e).local()}function Ao(e){return-Math.round(e._d.getTimezoneOffset())}function zo(e,c,n){var a,t=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=lo(ve,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&c&&(a=Ao(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),t!==e&&(!c||this._changeInProgress?Co(this,_o(e-t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?t:Ao(this)}function fo(e,c){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,c),this):-this.utcOffset()}function ho(e){return this.utcOffset(0,e)}function Oo(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ao(this),"m")),this}function Lo(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=lo(Se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function mo(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function qo(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function No(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,c={};return m(c,this),(c=jn(c))._a?(e=c._isUTC?b(c._a):Kn(c._a),this._isDSTShifted=this.isValid()&&so(c._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function go(){return!!this.isValid()&&!this._isUTC}function Wo(){return!!this.isValid()&&this._isUTC}function To(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Xo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _o(e,c){var n,o,a,t=e,i=null;return ro(e)?t={ms:e._milliseconds,d:e._days,M:e._months}:p(e)||!isNaN(+e)?(t={},c?t[c]=+e:t.milliseconds=+e):(i=Xo.exec(e))?(n="-"===i[1]?-1:1,t={y:0,d:pe(i[je])*n,h:pe(i[Ge])*n,m:pe(i[Ve])*n,s:pe(i[Ke])*n,ms:pe(Mo(1e3*i[Qe]))*n}):(i=Bo.exec(e))?(n="-"===i[1]?-1:1,t={y:yo(i[2],n),M:yo(i[3],n),w:yo(i[4],n),d:yo(i[5],n),h:yo(i[6],n),m:yo(i[7],n),s:yo(i[8],n)}):null==t?t={}:"object"==typeof t&&("from"in t||"to"in t)&&(a=vo(Kn(t.from),Kn(t.to)),(t={}).ms=a.milliseconds,t.M=a.months),o=new io(t),ro(e)&&r(e,"_locale")&&(o._locale=e._locale),ro(e)&&r(e,"_isValid")&&(o._isValid=e._isValid),o}function yo(e,c){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*c}function So(e,c){var n={};return n.months=c.month()-e.month()+12*(c.year()-e.year()),e.clone().add(n.months,"M").isAfter(c)&&--n.months,n.milliseconds=+c-+e.clone().add(n.months,"M"),n}function vo(e,c){var n;return e.isValid()&&c.isValid()?(c=bo(c,e),e.isBefore(c)?n=So(e,c):((n=So(c,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ko(e,c){return function(n,o){var a;return null===o||isNaN(+o)||(B(c,"moment()."+c+"(period, number) is deprecated. Please use moment()."+c+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=o,o=a),Co(this,_o(n,o),e),this}}function Co(e,c,n,a){var t=c._milliseconds,i=Mo(c._days),r=Mo(c._months);e.isValid()&&(a=null==a||a,r&&pc(e,le(e,"Month")+r*n),i&&de(e,"Date",le(e,"Date")+i*n),t&&e._d.setTime(e._d.valueOf()+t*n),a&&o.updateOffset(e,i||r))}_o.fn=io.prototype,_o.invalid=to;var Eo=ko(1,"add"),Ro=ko(-1,"subtract");function wo(e){return"string"==typeof e||e instanceof String}function Do(e){return N(e)||u(e)||wo(e)||p(e)||xo(e)||Po(e)||null==e}function Po(e){var c,n,o=i(e)&&!M(e),a=!1,t=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(c=0;c<t.length;c+=1)n=t[c],a=a||r(e,n);return o&&a}function xo(e){var c=t(e),n=!1;return c&&(n=0===e.filter((function(c){return!p(c)&&wo(e)})).length),c&&n}function Io(e){var c,n,o=i(e)&&!M(e),a=!1,t=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(c=0;c<t.length;c+=1)n=t[c],a=a||r(e,n);return o&&a}function Ho(e,c){var n=e.diff(c,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yo(e,c){1===arguments.length&&(arguments[0]?Do(arguments[0])?(e=arguments[0],c=void 0):Io(arguments[0])&&(c=arguments[0],e=void 0):(e=void 0,c=void 0));var n=e||Kn(),a=bo(n,this).startOf("day"),t=o.calendarFormat(this,a)||"sameElse",i=c&&(_(c[t])?c[t].call(this,n):c[t]);return this.format(i||this.localeData().calendar(t,this,Kn(n)))}function Fo(){return new q(this)}function Uo(e,c){var n=N(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(c=oe(c)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(c).valueOf())}function jo(e,c){var n=N(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(c=oe(c)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(c).valueOf()<n.valueOf())}function Go(e,c,n,o){var a=N(e)?e:Kn(e),t=N(c)?c:Kn(c);return!!(this.isValid()&&a.isValid()&&t.isValid())&&("("===(o=o||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))}function Vo(e,c){var n,o=N(e)?e:Kn(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(c=oe(c)||"millisecond")?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(c).valueOf()<=n&&n<=this.clone().endOf(c).valueOf()))}function Ko(e,c){return this.isSame(e,c)||this.isAfter(e,c)}function Qo(e,c){return this.isSame(e,c)||this.isBefore(e,c)}function Jo(e,c,n){var o,a,t;if(!this.isValid())return NaN;if(!(o=bo(e,this)).isValid())return NaN;switch(a=6e4*(o.utcOffset()-this.utcOffset()),c=oe(c)){case"year":t=Zo(this,o)/12;break;case"month":t=Zo(this,o);break;case"quarter":t=Zo(this,o)/3;break;case"second":t=(this-o)/1e3;break;case"minute":t=(this-o)/6e4;break;case"hour":t=(this-o)/36e5;break;case"day":t=(this-o-a)/864e5;break;case"week":t=(this-o-a)/6048e5;break;default:t=this-o}return n?t:se(t)}function Zo(e,c){if(e.date()<c.date())return-Zo(c,e);var n=12*(c.year()-e.year())+(c.month()-e.month()),o=e.clone().add(n,"months");return-(n+(c-o<0?(c-o)/(o-e.clone().add(n-1,"months")):(c-o)/(e.clone().add(n+1,"months")-o)))||0}function $o(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ea(e){if(!this.isValid())return null;var c=!0!==e,n=c?this.clone().utc():this;return n.year()<0||n.year()>9999?Y(n,c?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?c?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,c?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ca(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,c,n,o,a="moment",t="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z"),e="["+a+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(e+c+n+o)}function na(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var c=Y(this,e);return this.localeData().postformat(c)}function oa(e,c){return this.isValid()&&(N(e)&&e.isValid()||Kn(e).isValid())?_o({to:this,from:e}).locale(this.locale()).humanize(!c):this.localeData().invalidDate()}function aa(e){return this.from(Kn(),e)}function ta(e,c){return this.isValid()&&(N(e)&&e.isValid()||Kn(e).isValid())?_o({from:this,to:e}).locale(this.locale()).humanize(!c):this.localeData().invalidDate()}function ia(e){return this.to(Kn(),e)}function ra(e){var c;return void 0===e?this._locale._abbr:(null!=(c=hn(e))&&(this._locale=c),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ma=W("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function sa(){return this._locale}var pa=1e3,ua=60*pa,la=60*ua,da=3506328*la;function ba(e,c){return(e%c+c)%c}function Aa(e,c,n){return e<100&&e>=0?new Date(e+400,c,n)-da:new Date(e,c,n).valueOf()}function za(e,c,n){return e<100&&e>=0?Date.UTC(e+400,c,n)-da:Date.UTC(e,c,n)}function fa(e){var c,n;if(void 0===(e=oe(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?za:Aa,e){case"year":c=n(this.year(),0,1);break;case"quarter":c=n(this.year(),this.month()-this.month()%3,1);break;case"month":c=n(this.year(),this.month(),1);break;case"week":c=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":c=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":c=n(this.year(),this.month(),this.date());break;case"hour":c=this._d.valueOf(),c-=ba(c+(this._isUTC?0:this.utcOffset()*ua),la);break;case"minute":c=this._d.valueOf(),c-=ba(c,ua);break;case"second":c=this._d.valueOf(),c-=ba(c,pa)}return this._d.setTime(c),o.updateOffset(this,!0),this}function ha(e){var c,n;if(void 0===(e=oe(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?za:Aa,e){case"year":c=n(this.year()+1,0,1)-1;break;case"quarter":c=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":c=n(this.year(),this.month()+1,1)-1;break;case"week":c=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":c=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":c=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":c=this._d.valueOf(),c+=la-ba(c+(this._isUTC?0:this.utcOffset()*ua),la)-1;break;case"minute":c=this._d.valueOf(),c+=ua-ba(c,ua)-1;break;case"second":c=this._d.valueOf(),c+=pa-ba(c,pa)-1}return this._d.setTime(c),o.updateOffset(this,!0),this}function Oa(){return this._d.valueOf()-6e4*(this._offset||0)}function La(){return Math.floor(this.valueOf()/1e3)}function ma(){return new Date(this.valueOf())}function qa(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Na(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ga(){return this.isValid()?this.toISOString():null}function Wa(){return f(this)}function Ta(){return d({},z(this))}function Xa(){return z(this).overflow}function Ba(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function _a(e,c){var n,a,t,i=this._eras||hn("en")._eras;for(n=0,a=i.length;n<a;++n)switch("string"==typeof i[n].since&&(t=o(i[n].since).startOf("day"),i[n].since=t.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":t=o(i[n].until).startOf("day").valueOf(),i[n].until=t.valueOf()}return i}function ya(e,c,n){var o,a,t,i,r,M=this.eras();for(e=e.toUpperCase(),o=0,a=M.length;o<a;++o)if(t=M[o].name.toUpperCase(),i=M[o].abbr.toUpperCase(),r=M[o].narrow.toUpperCase(),n)switch(c){case"N":case"NN":case"NNN":if(i===e)return M[o];break;case"NNNN":if(t===e)return M[o];break;case"NNNNN":if(r===e)return M[o]}else if([t,i,r].indexOf(e)>=0)return M[o]}function Sa(e,c){var n=e.since<=e.until?1:-1;return void 0===c?o(e.since).year():o(e.since).year()+(c-e.offset)*n}function va(){var e,c,n,o=this.localeData().eras();for(e=0,c=o.length;e<c;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].name;if(o[e].until<=n&&n<=o[e].since)return o[e].name}return""}function ka(){var e,c,n,o=this.localeData().eras();for(e=0,c=o.length;e<c;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].narrow;if(o[e].until<=n&&n<=o[e].since)return o[e].narrow}return""}function Ca(){var e,c,n,o=this.localeData().eras();for(e=0,c=o.length;e<c;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].abbr;if(o[e].until<=n&&n<=o[e].since)return o[e].abbr}return""}function Ea(){var e,c,n,a,t=this.localeData().eras();for(e=0,c=t.length;e<c;++e)if(n=t[e].since<=t[e].until?1:-1,a=this.clone().startOf("day").valueOf(),t[e].since<=a&&a<=t[e].until||t[e].until<=a&&a<=t[e].since)return(this.year()-o(t[e].since).year())*n+t[e].offset;return this.year()}function Ra(e){return r(this,"_erasNameRegex")||Ya.call(this),e?this._erasNameRegex:this._erasRegex}function wa(e){return r(this,"_erasAbbrRegex")||Ya.call(this),e?this._erasAbbrRegex:this._erasRegex}function Da(e){return r(this,"_erasNarrowRegex")||Ya.call(this),e?this._erasNarrowRegex:this._erasRegex}function Pa(e,c){return c.erasAbbrRegex(e)}function xa(e,c){return c.erasNameRegex(e)}function Ia(e,c){return c.erasNarrowRegex(e)}function Ha(e,c){return c._eraYearOrdinalRegex||_e}function Ya(){var e,c,n=[],o=[],a=[],t=[],i=this.eras();for(e=0,c=i.length;e<c;++e)o.push(De(i[e].name)),n.push(De(i[e].abbr)),a.push(De(i[e].narrow)),t.push(De(i[e].name)),t.push(De(i[e].abbr)),t.push(De(i[e].narrow));this._erasRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Fa(e,c){x(0,[e,e.length],0,c)}function Ua(e){return Ja.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function ja(e){return Ja.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ga(){return gc(this.year(),1,4)}function Va(){return gc(this.isoWeekYear(),1,4)}function Ka(){var e=this.localeData()._week;return gc(this.year(),e.dow,e.doy)}function Qa(){var e=this.localeData()._week;return gc(this.weekYear(),e.dow,e.doy)}function Ja(e,c,n,o,a){var t;return null==e?Nc(this,o,a).year:(c>(t=gc(e,o,a))&&(c=t),Za.call(this,e,c,n,o,a))}function Za(e,c,n,o,a){var t=qc(e,c,n,o,a),i=Lc(t.year,0,t.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function $a(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-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"),Ee("N",Pa),Ee("NN",Pa),Ee("NNN",Pa),Ee("NNNN",xa),Ee("NNNNN",Ia),xe(["N","NN","NNN","NNNN","NNNNN"],(function(e,c,n,o){var a=n._locale.erasParse(e,o,n._strict);a?z(n).era=a:z(n).invalidEra=e})),Ee("y",_e),Ee("yy",_e),Ee("yyy",_e),Ee("yyyy",_e),Ee("yo",Ha),xe(["y","yy","yyy","yyyy"],Fe),xe(["yo"],(function(e,c,n,o){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?c[Fe]=n._locale.eraYearOrdinalParse(e,a):c[Fe]=parseInt(e,10)})),x(0,["gg",2],0,(function(){return this.weekYear()%100})),x(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Fa("gggg","weekYear"),Fa("ggggg","weekYear"),Fa("GGGG","isoWeekYear"),Fa("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ie("weekYear",1),ie("isoWeekYear",1),Ee("G",ye),Ee("g",ye),Ee("GG",qe,he),Ee("gg",qe,he),Ee("GGGG",Xe,Le),Ee("gggg",Xe,Le),Ee("GGGGG",Be,me),Ee("ggggg",Be,me),Ie(["gggg","ggggg","GGGG","GGGGG"],(function(e,c,n,o){c[o.substr(0,2)]=pe(e)})),Ie(["gg","GG"],(function(e,c,n,a){c[a]=o.parseTwoDigitYear(e)})),x("Q",0,"Qo","quarter"),ne("quarter","Q"),ie("quarter",7),Ee("Q",fe),xe("Q",(function(e,c){c[Ue]=3*(pe(e)-1)})),x("D",["DD",2],"Do","date"),ne("date","D"),ie("date",9),Ee("D",qe),Ee("DD",qe,he),Ee("Do",(function(e,c){return e?c._dayOfMonthOrdinalParse||c._ordinalParse:c._dayOfMonthOrdinalParseLenient})),xe(["D","DD"],je),xe("Do",(function(e,c){c[je]=pe(e.match(qe)[0])}));var et=ue("Date",!0);function ct(e){var c=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?c:this.add(e-c,"d")}x("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ie("dayOfYear",4),Ee("DDD",Te),Ee("DDDD",Oe),xe(["DDD","DDDD"],(function(e,c,n){n._dayOfYear=pe(e)})),x("m",["mm",2],0,"minute"),ne("minute","m"),ie("minute",14),Ee("m",qe),Ee("mm",qe,he),xe(["m","mm"],Ve);var nt=ue("Minutes",!1);x("s",["ss",2],0,"second"),ne("second","s"),ie("second",15),Ee("s",qe),Ee("ss",qe,he),xe(["s","ss"],Ke);var ot,at,tt=ue("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()})),ne("millisecond","ms"),ie("millisecond",16),Ee("S",Te,fe),Ee("SS",Te,he),Ee("SSS",Te,Oe),ot="SSSS";ot.length<=9;ot+="S")Ee(ot,_e);function it(e,c){c[Qe]=pe(1e3*("0."+e))}for(ot="S";ot.length<=9;ot+="S")xe(ot,it);function rt(){return this._isUTC?"UTC":""}function Mt(){return this._isUTC?"Coordinated Universal Time":""}at=ue("Milliseconds",!1),x("z",0,0,"zoneAbbr"),x("zz",0,0,"zoneName");var st=q.prototype;function pt(e){return Kn(1e3*e)}function ut(){return Kn.apply(null,arguments).parseZone()}function lt(e){return e}st.add=Eo,st.calendar=Yo,st.clone=Fo,st.diff=Jo,st.endOf=ha,st.format=na,st.from=oa,st.fromNow=aa,st.to=ta,st.toNow=ia,st.get=be,st.invalidAt=Xa,st.isAfter=Uo,st.isBefore=jo,st.isBetween=Go,st.isSame=Vo,st.isSameOrAfter=Ko,st.isSameOrBefore=Qo,st.isValid=Wa,st.lang=Ma,st.locale=ra,st.localeData=sa,st.max=Jn,st.min=Qn,st.parsingFlags=Ta,st.set=Ae,st.startOf=fa,st.subtract=Ro,st.toArray=qa,st.toObject=Na,st.toDate=ma,st.toISOString=ea,st.inspect=ca,"undefined"!=typeof Symbol&&null!=Symbol.for&&(st[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),st.toJSON=ga,st.toString=$o,st.unix=La,st.valueOf=Oa,st.creationData=Ba,st.eraName=va,st.eraNarrow=ka,st.eraAbbr=Ca,st.eraYear=Ea,st.year=fc,st.isLeapYear=hc,st.weekYear=Ua,st.isoWeekYear=ja,st.quarter=st.quarters=$a,st.month=uc,st.daysInMonth=lc,st.week=st.weeks=_c,st.isoWeek=st.isoWeeks=yc,st.weeksInYear=Ka,st.weeksInWeekYear=Qa,st.isoWeeksInYear=Ga,st.isoWeeksInISOWeekYear=Va,st.date=et,st.day=st.days=Uc,st.weekday=jc,st.isoWeekday=Gc,st.dayOfYear=ct,st.hour=st.hours=an,st.minute=st.minutes=nt,st.second=st.seconds=tt,st.millisecond=st.milliseconds=at,st.utcOffset=zo,st.utc=ho,st.local=Oo,st.parseZone=Lo,st.hasAlignedHourOffset=mo,st.isDST=qo,st.isLocal=go,st.isUtcOffset=Wo,st.isUtc=To,st.isUTC=To,st.zoneAbbr=rt,st.zoneName=Mt,st.dates=W("dates accessor is deprecated. Use date instead.",et),st.months=W("months accessor is deprecated. Use month instead",uc),st.years=W("years accessor is deprecated. Use year instead",fc),st.zone=W("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fo),st.isDSTShifted=W("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",No);var dt=v.prototype;function bt(e,c,n,o){var a=hn(),t=b().set(o,c);return a[n](t,e)}function At(e,c,n){if(p(e)&&(c=e,e=void 0),e=e||"",null!=c)return bt(e,c,n,"month");var o,a=[];for(o=0;o<12;o++)a[o]=bt(e,o,n,"month");return a}function zt(e,c,n,o){"boolean"==typeof e?(p(c)&&(n=c,c=void 0),c=c||""):(n=c=e,e=!1,p(c)&&(n=c,c=void 0),c=c||"");var a,t=hn(),i=e?t._week.dow:0,r=[];if(null!=n)return bt(c,(n+i)%7,o,"day");for(a=0;a<7;a++)r[a]=bt(c,(a+i)%7,o,"day");return r}function ft(e,c){return At(e,c,"months")}function ht(e,c){return At(e,c,"monthsShort")}function Ot(e,c,n){return zt(e,c,n,"weekdays")}function Lt(e,c,n){return zt(e,c,n,"weekdaysShort")}function mt(e,c,n){return zt(e,c,n,"weekdaysMin")}dt.calendar=C,dt.longDateFormat=j,dt.invalidDate=V,dt.ordinal=J,dt.preparse=lt,dt.postformat=lt,dt.relativeTime=$,dt.pastFuture=ee,dt.set=y,dt.eras=_a,dt.erasParse=ya,dt.erasConvertYear=Sa,dt.erasAbbrRegex=wa,dt.erasNameRegex=Ra,dt.erasNarrowRegex=Da,dt.months=ic,dt.monthsShort=rc,dt.monthsParse=sc,dt.monthsRegex=bc,dt.monthsShortRegex=dc,dt.week=Wc,dt.firstDayOfYear=Bc,dt.firstDayOfWeek=Xc,dt.weekdays=xc,dt.weekdaysMin=Hc,dt.weekdaysShort=Ic,dt.weekdaysParse=Fc,dt.weekdaysRegex=Vc,dt.weekdaysShortRegex=Kc,dt.weekdaysMinRegex=Qc,dt.isPM=nn,dt.meridiem=tn,An("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var c=e%10;return e+(1===pe(e%100/10)?"th":1===c?"st":2===c?"nd":3===c?"rd":"th")}}),o.lang=W("moment.lang is deprecated. Use moment.locale instead.",An),o.langData=W("moment.langData is deprecated. Use moment.localeData instead.",hn);var qt=Math.abs;function Nt(){var e=this._data;return this._milliseconds=qt(this._milliseconds),this._days=qt(this._days),this._months=qt(this._months),e.milliseconds=qt(e.milliseconds),e.seconds=qt(e.seconds),e.minutes=qt(e.minutes),e.hours=qt(e.hours),e.months=qt(e.months),e.years=qt(e.years),this}function gt(e,c,n,o){var a=_o(c,n);return e._milliseconds+=o*a._milliseconds,e._days+=o*a._days,e._months+=o*a._months,e._bubble()}function Wt(e,c){return gt(this,e,c,1)}function Tt(e,c){return gt(this,e,c,-1)}function Xt(e){return e<0?Math.floor(e):Math.ceil(e)}function Bt(){var e,c,n,o,a,t=this._milliseconds,i=this._days,r=this._months,M=this._data;return t>=0&&i>=0&&r>=0||t<=0&&i<=0&&r<=0||(t+=864e5*Xt(yt(r)+i),i=0,r=0),M.milliseconds=t%1e3,e=se(t/1e3),M.seconds=e%60,c=se(e/60),M.minutes=c%60,n=se(c/60),M.hours=n%24,i+=se(n/24),r+=a=se(_t(i)),i-=Xt(yt(a)),o=se(r/12),r%=12,M.days=i,M.months=r,M.years=o,this}function _t(e){return 4800*e/146097}function yt(e){return 146097*e/4800}function St(e){if(!this.isValid())return NaN;var c,n,o=this._milliseconds;if("month"===(e=oe(e))||"quarter"===e||"year"===e)switch(c=this._days+o/864e5,n=this._months+_t(c),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(c=this._days+Math.round(yt(this._months)),e){case"week":return c/7+o/6048e5;case"day":return c+o/864e5;case"hour":return 24*c+o/36e5;case"minute":return 1440*c+o/6e4;case"second":return 86400*c+o/1e3;case"millisecond":return Math.floor(864e5*c)+o;default:throw new Error("Unknown unit "+e)}}function vt(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pe(this._months/12):NaN}function kt(e){return function(){return this.as(e)}}var Ct=kt("ms"),Et=kt("s"),Rt=kt("m"),wt=kt("h"),Dt=kt("d"),Pt=kt("w"),xt=kt("M"),It=kt("Q"),Ht=kt("y");function Yt(){return _o(this)}function Ft(e){return e=oe(e),this.isValid()?this[e+"s"]():NaN}function Ut(e){return function(){return this.isValid()?this._data[e]:NaN}}var jt=Ut("milliseconds"),Gt=Ut("seconds"),Vt=Ut("minutes"),Kt=Ut("hours"),Qt=Ut("days"),Jt=Ut("months"),Zt=Ut("years");function $t(){return se(this.days()/7)}var ei=Math.round,ci={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ni(e,c,n,o,a){return a.relativeTime(c||1,!!n,e,o)}function oi(e,c,n,o){var a=_o(e).abs(),t=ei(a.as("s")),i=ei(a.as("m")),r=ei(a.as("h")),M=ei(a.as("d")),s=ei(a.as("M")),p=ei(a.as("w")),u=ei(a.as("y")),l=t<=n.ss&&["s",t]||t<n.s&&["ss",t]||i<=1&&["m"]||i<n.m&&["mm",i]||r<=1&&["h"]||r<n.h&&["hh",r]||M<=1&&["d"]||M<n.d&&["dd",M];return null!=n.w&&(l=l||p<=1&&["w"]||p<n.w&&["ww",p]),(l=l||s<=1&&["M"]||s<n.M&&["MM",s]||u<=1&&["y"]||["yy",u])[2]=c,l[3]=+e>0,l[4]=o,ni.apply(null,l)}function ai(e){return void 0===e?ei:"function"==typeof e&&(ei=e,!0)}function ti(e,c){return void 0!==ci[e]&&(void 0===c?ci[e]:(ci[e]=c,"s"===e&&(ci.ss=c-1),!0))}function ii(e,c){if(!this.isValid())return this.localeData().invalidDate();var n,o,a=!1,t=ci;return"object"==typeof e&&(c=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof c&&(t=Object.assign({},ci,c),null!=c.s&&null==c.ss&&(t.ss=c.s-1)),o=oi(this,!a,t,n=this.localeData()),a&&(o=n.pastFuture(+this,o)),n.postformat(o)}var ri=Math.abs;function Mi(e){return(e>0)-(e<0)||+e}function si(){if(!this.isValid())return this.localeData().invalidDate();var e,c,n,o,a,t,i,r,M=ri(this._milliseconds)/1e3,s=ri(this._days),p=ri(this._months),u=this.asSeconds();return u?(e=se(M/60),c=se(e/60),M%=60,e%=60,n=se(p/12),p%=12,o=M?M.toFixed(3).replace(/\.?0+$/,""):"",a=u<0?"-":"",t=Mi(this._months)!==Mi(u)?"-":"",i=Mi(this._days)!==Mi(u)?"-":"",r=Mi(this._milliseconds)!==Mi(u)?"-":"",a+"P"+(n?t+n+"Y":"")+(p?t+p+"M":"")+(s?i+s+"D":"")+(c||e||M?"T":"")+(c?r+c+"H":"")+(e?r+e+"M":"")+(M?r+o+"S":"")):"P0D"}var pi=io.prototype;return pi.isValid=ao,pi.abs=Nt,pi.add=Wt,pi.subtract=Tt,pi.as=St,pi.asMilliseconds=Ct,pi.asSeconds=Et,pi.asMinutes=Rt,pi.asHours=wt,pi.asDays=Dt,pi.asWeeks=Pt,pi.asMonths=xt,pi.asQuarters=It,pi.asYears=Ht,pi.valueOf=vt,pi._bubble=Bt,pi.clone=Yt,pi.get=Ft,pi.milliseconds=jt,pi.seconds=Gt,pi.minutes=Vt,pi.hours=Kt,pi.days=Qt,pi.weeks=$t,pi.months=Jt,pi.years=Zt,pi.humanize=ii,pi.toISOString=si,pi.toString=si,pi.toJSON=si,pi.locale=ra,pi.localeData=sa,pi.toIsoString=W("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",si),pi.lang=Ma,x("X",0,0,"unix"),x("x",0,0,"valueOf"),Ee("x",ye),Ee("X",ke),xe("X",(function(e,c,n){n._d=new Date(1e3*parseFloat(e))})),xe("x",(function(e,c,n){n._d=new Date(pe(e))})),
2
2
  //! moment.js
3
3
  o.version="2.29.1",a(Kn),o.fn=st,o.min=$n,o.max=eo,o.now=co,o.utc=b,o.unix=pt,o.months=ft,o.isDate=u,o.locale=An,o.invalid=h,o.duration=_o,o.isMoment=N,o.weekdays=Ot,o.parseZone=ut,o.localeData=hn,o.isDuration=ro,o.monthsShort=ht,o.weekdaysMin=mt,o.defineLocale=zn,o.updateLocale=fn,o.locales=On,o.weekdaysShort=Lt,o.normalizeUnits=oe,o.relativeTimeRounding=ai,o.relativeTimeThreshold=ti,o.calendarFormat=Ho,o.prototype=st,o.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"},o}()})),_e=Te((function(e){
4
4
  //! moment-timezone.js
@@ -10,7 +10,7 @@ var c,n;c=this,n=function(e){void 0===e.version&&e.default&&(e=e.default);var c,
10
10
  //! moment.js locale configuration
11
11
  var c="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",c[7],c[8],c[9]];function o(e,o,a,t){var i="";switch(a){case"s":return t?"muutaman sekunnin":"muutama sekunti";case"ss":i=t?"sekunnin":"sekuntia";break;case"m":return t?"minuutin":"minuutti";case"mm":i=t?"minuutin":"minuuttia";break;case"h":return t?"tunnin":"tunti";case"hh":i=t?"tunnin":"tuntia";break;case"d":return t?"päivän":"päivä";case"dd":i=t?"päivän":"päivää";break;case"M":return t?"kuukauden":"kuukausi";case"MM":i=t?"kuukauden":"kuukautta";break;case"y":return t?"vuoden":"vuosi";case"yy":i=t?"vuoden":"vuotta"}return i=function(e,o){return e<10?o?n[e]:c[e]:e}(e,t)+" "+i,i}return e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},n(Be)})),Te((function(e,c){var n;n=function(e){return e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var c=e%10;return e+(1==~~(e%100/10)?":e":1===c||2===c?":a":":e")},week:{dow:1,doy:4}})},n(Be)})),Te((function(e,c){var n;n=function(e){
12
12
  //! moment.js locale configuration
13
- function c(e,c,n,o){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return c?a[n][0]:a[n][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:c,mm:"%d Minuten",h:c,hh:"%d Stunden",d:c,dd:c,w:c,ww:"%d Wochen",M:c,MM:c,y:c,yy:c},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},n(Be)})),{de:{address:"Adresse","address-place-or-business":"Adress, Ort or Geschäft","add-via-button-label":"Füge Zwischenziel hinzu","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",airplane:"Flug",arrival:"Ankunft",back:"Zurück",bikerentalstation:"Leihrad-Station",bus:"Bus",cancel:"Abbrechen","clear-button-label":"Löschen","clear-search-history":"Suchhistorie löschen",currentposition:"Aktuelle Position",delete:"Löschen","delete-old-searches-header":"Wollen Sie die Such-Historie löschen?",departure:"Abfahrt",destination:"Ziel","give-origin":"Start eingeben.","give-destination":"Ziel eingeben.",favourite:"Favoriten",ferry:"Fähre","future-route":"Zukünftige Verbindung",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Eigene Favoriten",loading:"Laden...","minute-short":"min",rail:"Zug",search:"Suche","search-address-or-place":"Suche anhand von Adresse oder Ortsangabe","search-button-label":"Suche","search-destination":"Suche Zielort, Linie or Haltestelle","search-destination-index":"Zielort eingeben","search-destination-results-but-no-search":"Ergebnisse in “Zielort”-Reiter anzeigen","search-no-results":"Kein Ort gefunden.","search-origin":"Suche Startort, Linie oder Haltestelle","search-origin-index":"Startort eingeben","search-position":"Standort ermitteln","search-autosuggest-label":"Venue, place and stopsearch. Navigate list with arrow keys and select with enter key","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-current-suggestion":"Aktuelle Auswahl: {{selection}}",subway:"U-Bahn",station:"Station",stop:"Haltestelle","stop-near-you":"Suche Haltestellen und Linien in der Nähe","stop-near-you-bus":"Suche Buslinien or Haltestellen","stop-near-you-citybike":"Suche Leihrad-Stationen","stop-near-you-rail":"Suche Zugverbindungen oder Bahnhöfe","stop-near-you-subway":"Suche U-Bahn-Linien oder Haltestellen","stop-near-you-tram":"Suche Stadtbahn-Haltestellen-Suche",today:"Heute um",tomorrow:"Morgen um",tram:"Straßenbahn","use-own-position":"Benutze aktuellen Standort","select-from-map":"Wähle Position anhand Karte","select-from-own-locations":"Aus eigenen Favoriten auswählen",venue:"Venue","via-point":"Zwischenziel",where:"Wohin?",place:"Ort"},en:{address:"Address","address-place-or-business":"Address, place or business","add-via-button-label":"Add via point","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",airplane:"Flight",arrival:"Arrival",back:"Back",bikerentalstation:"Bike station",bus:"bus",cancel:"Cancel","clear-button-label":"Clear","clear-search-history":"Clear search history",currentposition:"Current position",delete:"Delete","delete-old-searches-header":"Do you want to clear the search history?",departure:"Departure",destination:"Destination","give-origin":"Enter your origin.","give-destination":"Enter your destination",favourite:"Favourite",ferry:"Ferry","future-route":"Future route",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Own locations",loading:"Loading...","minute-short":"m",rail:"Train",required:"required field",search:"Search","search-address-or-place":"Search by address or place name","search-button-label":"Search","search-destination":"Search destination, route or stop","search-destination-index":"Enter destination","search-destination-results-but-no-search":"View results in the adjacent “Destination” tab","search-no-results":"No location","search-origin":"Search origin, route or stop","search-origin-index":"Enter origin","search-position":"Detect location","search-autosuggest-label":"Venue, place and stopsearch. Navigate list with arrow keys and select with enter key","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-current-suggestion":"Current selection: {{selection}}",subway:"Metro",station:"Station",stop:"Stop","stop-near-you":"Search stops and routes","stop-near-you-airplane":"Search flights or airports","stop-near-you-bus":"Search bus routes or stops","stop-near-you-citybike":"Search city bike stations","stop-near-you-rail":"Search train routes or stations","stop-near-you-subway":"Search metro routes or stations ","stop-near-you-tram":"Search tram routes or stops","stop-route-station":"Bus and stop search",today:"today at",tomorrow:"tomorrow at",tram:"Tram","use-own-position":"Use current location","select-from-map":"Select position from map","select-from-own-locations":"Select from own locations",venue:"Venue","via-point":"Via point",where:"Where to?",place:"Location"},fi:{address:"Osoite","address-place-or-business":"Osoite, paikka tai yritys","add-via-button-label":"Lisää välipiste","add-via-duration-button-label":"Aseta välipisteelle {{index}} pysähdyksen kesto","add-via-duration-button-label-close":"Avaa välipisteen {{index}} pysähdyksen kesto valitsin","add-via-duration-button-label-open":"Sulje välipisteen {{index}} pysähdyksen kesto valitsin",airplane:"Lentokone",arrival:"Perillä",back:"Takaisin",bikerentalstation:"Pyöräasema",bus:"bussi",cancel:"Peruuta","clear-button-label":"Tyhjennä","clear-search-history":"Tyhjennä hakuhistoria",currentposition:"Tämänhetkinen sijainti",delete:"Poista","delete-old-searches-header":"Haluatko tyhjentää hakuhistorian?",departure:"Lähtöaika",destination:"Määränpää",favourite:"Suosikki",ferry:"Lautta","future-route":"Tuleva reitti","give-origin":"Lähtöpaikka","give-destination":"Määränpää",origin:"Lähtöpaikka","origin-stop-near-you":"Lähtöpaikka",ownlocations:"Omat paikat",loading:"Ladataan...","minute-short":"min",rail:"Juna",required:"pakollinen kenttä",search:"Etsi","search-address-or-place":"Hae osoitteella tai paikan nimellä","search-button-label":"Hae","search-destination":"Hae määränpäätä, linjaa tai pysäkkiä","search-destination-index":"Syötä määränpää","search-destination-results-but-no-search":"Katso tulokset viereiseltä Määränpää-välilehdeltä","search-no-results":"Ei tuloksia","search-origin":"Hae lähtöpaikkaa, linjaa tai pysäkkiä","search-origin-index":"Syötä lähtöpaikka","search-autosuggest-label":"Paikka, linja ja pysäkkihaku. Navigoi listassa nuolinäppäimillä ja valitse enterillä","search-autosuggest-len":" Löydettiin {{count}} ehdotus","search-autosuggest-len_plural":" Löydettiin {{count}} ehdotusta","search-current-suggestion":"Tämänhetkinen valinta: {{selection}}","search-position":"Paikanna",subway:"Metro",station:"Asema",stop:"Pysäkki","stop-near-you":"Linja, pysäkki tai asema","stop-near-you-airplane":"Hae lentoja tai lentoasemaa","stop-near-you-bus":"Hae bussilinjaa tai pysäkkiä","stop-near-you-citybike":"Hae kaupunkipyöräasemaa","stop-near-you-rail":"Hae lähijunaa tai asemaa","stop-near-you-subway":"Hae metrolinjaa tai asemaa","stop-near-you-tram":"Hae raitiolinjaa tai pysäkkiä","stop-route-station":"Linja- ja pysäkkihaku",today:"tänään klo",tomorrow:"huomenna klo",tram:"Raitiovaunu","use-own-position":"Käytä nykyistä sijaintia","select-from-map":"Valitse sijainti kartalta","select-from-own-locations":"Valitse omista paikoista",venue:"Paikka","via-point":"Välipiste",where:"Minne mennään?",place:"Paikka"},sv:{address:"Adress","address-place-or-business":"Adress, plats eller företag","add-via-button-label":"Lägg till viapunkt","add-via-duration-button-label":"Ställ in varaktighet för viapunkten {{index}}","add-via-duration-button-label-close":"Stäng väljaren för varaktighet vid via-punkten {{index}}","add-via-duration-button-label-open":"Öppna väljaren för varaktighet vid via-punkten {{index}}",airplane:"Flyg",arrival:"Anländer",back:"Tillbaka",bikerentalstation:"Stadscykelstation",bus:"Bussi",cancel:"Avbryt","clear-button-label":"Töm","clear-search-history":"Töm sökhistoriken",currentposition:"Nuvarande position",delete:"Ta bort","delete-old-searches-header":"Vill du tömma sökhistoriken?",departure:"Avgångstid",destination:"Destination",favourite:"Favorit",ferry:"Färja","future-route":"Framtida rutt","give-destination":"Skriv in din destination","give-origin":"Skriv in din avfärdsplats",origin:"Avfärdsplats","origin-stop-near-you":"Avfärdsplats",ownlocations:"Egna platser",loading:"Laddar...","minute-short":"min",rail:"Tåg",required:"obligatoriskt fält",search:"Sök","search-address-or-place":"Sök med adressen eller platsens namn","search-button-label":"Sök","search-destination":"Sök destination, linje eller hållplats","search-destination-index":"Skriv destination","search-destination-results-but-no-search":"Se resultaten under fliken Destination","search-no-results":"Inga sökresultat","search-origin":"Sök avfärdsplats, linje eller hållplats","search-origin-index":"Skriv avfärdsplats","search-position":"Sök position","search-autosuggest-label":"Plats, linje och hållplatssökning. Navigera listan med piltangenterna och välj med Enter-tangeten","search-autosuggest-len":"Hittade {{count}} förslag","search-current-suggestion":"Nuvarande val: {{selection}}",subway:"Metro",station:"Station",stop:"Hållplats","stop-near-you":"Sök hållplatser eller linjer","stop-near-you-airplane":"Sök flyg eller flygplatser","stop-near-you-bus":"Sök busslinjer eller hållplatser","stop-near-you-citybike":"Sök stadscykelstationer","stop-near-you-rail":"Sök närtåger eller stationer","stop-near-you-subway":"Sök metrolinjer eller stationer","stop-near-you-tram":"Sök spårvagnlinjer eller hållplatser","stop-route-station":"Buss och stopp sökningen",today:"i dag kl",tomorrow:"i morgon",tram:"Spårvagn","use-own-position":"Använd min position","select-from-map":"Välj position från kartan","select-from-own-locations":"Välj från egna platser",venue:"Mötesplats","via-point":"Via punkt",where:"Vart vill du åka?",place:"Plats"}});function De(e,c){void 0===c&&(c={});var n=c.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&o.firstChild?o.insertBefore(a,o.firstChild):o.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var Pe={container:"styles_container__1NKX8",input:"styles_input__J8Q0h",favourite:"styles_favourite__384ME",thin:"styles_thin__31pf2",hasValue:"styles_hasValue__3IDIO",suggestionsContainerOpen:"styles_suggestionsContainerOpen__1uEOH",suggestionsContainer:"styles_suggestionsContainer__3P1xL",suggestionsList:"styles_suggestionsList__3DnHc",suggestion:"styles_suggestion__1YRxV",suggestionHighlighted:"styles_suggestionHighlighted__28ZnP","autosuggest-input-container":"styles_autosuggest-input-container__IxbT_",origin:"styles_origin__1qX8p",destination:"styles_destination__3DZBi","stop-route-station":"styles_stop-route-station__2PwTH","autosuggest-input-icon":"styles_autosuggest-input-icon__2PARI","origin-stop-near-you":"styles_origin-stop-near-you__1-J6m","clear-input":"styles_clear-input__1_PXf","sr-only":"styles_sr-only__B2xmy"};De("/* stylelint-disable */\ninput[type='text'] {\n margin: 0; }\n\n.styles_container__1NKX8 {\n display: -ms-flexbox;\n display: flex;\n width: 100%; }\n .styles_container__1NKX8 .styles_input__J8Q0h {\n font-size: 16px;\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', 'Roboto', Arial, Georgia, Serif;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n height: 44px;\n border-radius: 5px;\n border: solid 1px #888888;\n background-color: #ffffff;\n padding-left: 50px;\n padding-right: 44px;\n line-height: 1.2;\n letter-spacing: -0.5px;\n color: #333;\n box-sizing: border-box;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none; }\n .styles_container__1NKX8 .styles_input__J8Q0h.styles_favourite__384ME {\n padding-left: 47px; }\n .styles_container__1NKX8 .styles_input__J8Q0h.styles_thin__31pf2 {\n height: 34px; }\n .styles_container__1NKX8 .styles_input__J8Q0h:focus {\n background: #fff;\n outline: none;\n border: solid 1px var(--color);\n box-shadow: none;\n box-shadow: 0px 0px 2px 1px var(--hover-color); }\n @media screen and (min-width: 768px) {\n .styles_container__1NKX8 .styles_input__J8Q0h {\n font-size: 15px;\n height: 44px;\n padding-left: 49px; } }\n .styles_container__1NKX8 .styles_input__J8Q0h::-webkit-input-placeholder {\n color: #666666;\n font-size: 15px; }\n .styles_container__1NKX8 .styles_input__J8Q0h:-ms-input-placeholder {\n color: #666666;\n font-size: 15px; }\n .styles_container__1NKX8 .styles_input__J8Q0h::placeholder {\n color: #666666;\n font-size: 15px; }\n\n.styles_hasValue__3IDIO {\n color: #333333; }\n\n.styles_suggestionsContainerOpen__1uEOH {\n width: 100%;\n max-height: 44vh;\n border-radius: 5px;\n box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);\n border: solid 1px rgba(0, 0, 0, 0.1);\n overflow-x: hidden;\n overflow-y: scroll;\n position: absolute;\n background-color: white;\n top: calc(3 * 0.875rem + 9px);\n z-index: 20; }\n\n.styles_suggestionsContainer__3P1xL {\n background-color: white;\n z-index: 20; }\n .styles_suggestionsContainer__3P1xL .styles_suggestionsList__3DnHc {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n background: white; }\n .styles_suggestionsContainer__3P1xL .styles_suggestionsList__3DnHc li:hover {\n background: #F4F4F5; }\n\n.styles_suggestion__1YRxV {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n cursor: pointer;\n list-style: none;\n display: block;\n overflow-x: hidden;\n overflow-y: hidden;\n white-space: nowrap; }\n\n.styles_suggestionHighlighted__28ZnP {\n background-color: #F4F4F5; }\n\n.styles_autosuggest-input-container__IxbT_ {\n position: relative;\n width: 100%; }\n .styles_autosuggest-input-container__IxbT_.styles_origin__1qX8p {\n z-index: 16; }\n .styles_autosuggest-input-container__IxbT_.styles_destination__3DZBi {\n z-index: 10; }\n .styles_autosuggest-input-container__IxbT_.styles_stop-route-station__2PwTH {\n z-index: 9; }\n\n.styles_autosuggest-input-icon__2PARI {\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n -ms-flex-align: center;\n align-items: center;\n width: 16px;\n height: 100%;\n margin-top: 0;\n margin-left: 19px; }\n .styles_autosuggest-input-icon__2PARI svg {\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__2PARI.styles_origin__1qX8p svg {\n fill: #4ea700;\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__2PARI.styles_destination__3DZBi svg {\n fill: #ec5188;\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__2PARI.styles_stop-route-station__2PwTH svg, .styles_autosuggest-input-icon__2PARI.styles_favourite__384ME svg {\n fill: #888888;\n width: 16px;\n height: 16px; }\n .styles_autosuggest-input-icon__2PARI.styles_origin-stop-near-you__1-J6m svg {\n fill: #888888;\n width: 16px;\n height: 16px; }\n\nbutton.styles_clear-input__1_PXf {\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n padding: 14px 0;\n right: 0px;\n width: 44px;\n height: 100%;\n color: var(--color);\n outline: none;\n border: 0px;\n margin: 0px;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0px;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.styles_clear-input__1_PXf svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.styles_clear-input__1_PXf:focus {\n background-color: transparent;\n color: inherit;\n /* First apply outline that is used in Edge and Firefox */\n outline: 1px dotted #212121;\n /* Then override outline for webkit browsers like Chrome, this has no effect on other browsers */\n outline: 5px auto -webkit-focus-ring-color; }\n button.styles_clear-input__1_PXf:active {\n background-color: transparent;\n color: inherit; }\n button.styles_clear-input__1_PXf:hover {\n background-color: transparent;\n color: inherit; }\n\n.styles_sr-only__B2xmy:not(:focus):not(:active) {\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(50%);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px; }\n");var xe={"fullscreen-root":"MobileSearch_fullscreen-root__3mzJu","combobox-container":"MobileSearch_combobox-container__2dXKy","right-column":"MobileSearch_right-column__KzsqW","combobox-icon":"MobileSearch_combobox-icon__2y89R","combobox-label":"MobileSearch_combobox-label__20dJF",container:"MobileSearch_container__33kZY",input:"MobileSearch_input__1-Zl9","clear-input":"MobileSearch_clear-input__1x_WA",hasValue:"MobileSearch_hasValue__1ByEp",suggestion:"MobileSearch_suggestion__2AjCH",suggestionHighlighted:"MobileSearch_suggestionHighlighted__14vbR",suggestionsContainerOpen:"MobileSearch_suggestionsContainerOpen__2hg77",suggestionsList:"MobileSearch_suggestionsList__cWAt3","clear-search-history":"MobileSearch_clear-search-history__3A-ea","mobile-modal-overlay":"MobileSearch_mobile-modal-overlay__1SB12","mobile-modal":"MobileSearch_mobile-modal__H2JRE","mobile-modal-content":"MobileSearch_mobile-modal-content__vH5o7"};function Ie(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ce(e);if(c){var a=ce(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return ee(this,n)}}De("input[type='text'] {\n margin: 0;\n padding: 0; }\n\n.MobileSearch_fullscreen-root__3mzJu {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000; }\n\n.MobileSearch_combobox-container__2dXKy {\n margin: 15px 10px 0;\n border: solid #888888 1px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 5px;\n height: 60px;\n -ms-flex-pack: justify;\n justify-content: space-between; }\n .MobileSearch_combobox-container__2dXKy .MobileSearch_right-column__KzsqW {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px; }\n\n.MobileSearch_combobox-icon__2y89R {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n height: 100%;\n width: 52px; }\n .MobileSearch_combobox-icon__2y89R svg {\n fill: #007ac9;\n width: 14px;\n height: 21px;\n transform: rotate(-180deg); }\n\n.MobileSearch_combobox-label__20dJF {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.2px;\n color: #333333; }\n\n.MobileSearch_container__33kZY {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n width: 100%; }\n .MobileSearch_container__33kZY .MobileSearch_input__1-Zl9 {\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', 'Roboto', Arial, Georgia, Serif;\n width: 100%;\n position: relative;\n padding-bottom: 7px;\n top: 2px;\n border: none;\n height: 26px;\n font-weight: normal;\n box-shadow: none;\n font-size: 16px;\n letter-spacing: -0.5px;\n color: #666666;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none; }\n .MobileSearch_container__33kZY .MobileSearch_input__1-Zl9:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff; }\n\nbutton.MobileSearch_clear-input__1x_WA {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n right: 0px;\n padding: 0 15px 7px 0;\n height: 26px;\n color: var(--color);\n outline: none;\n border: 0px;\n margin: 0px;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0px;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.MobileSearch_clear-input__1x_WA svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.MobileSearch_clear-input__1x_WA:focus {\n background-color: transparent;\n color: inherit; }\n button.MobileSearch_clear-input__1x_WA:active {\n background-color: transparent;\n color: inherit; }\n button.MobileSearch_clear-input__1x_WA:hover {\n background-color: transparent;\n color: inherit; }\n\n.MobileSearch_hasValue__1ByEp {\n color: #333333; }\n\n.MobileSearch_suggestion__2AjCH {\n font-size: 15px;\n min-height: 50px;\n letter-spacing: -0.6px;\n color: #333333;\n font-weight: 500;\n background: #fff;\n margin: 0;\n padding: 0; }\n\n.MobileSearch_suggestionHighlighted__14vbR {\n background-color: #F4F4F5; }\n\n.MobileSearch_suggestionsContainerOpen__2hg77 {\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n margin-bottom: auto;\n z-index: 20;\n width: 100vw;\n max-height: calc(100% - 75px);\n height: 100%;\n top: 75px;\n left: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n -ms-overflow-style: none;\n /* Internet Explorer 10+ */\n scrollbar-width: none;\n /* Firefox */ }\n .MobileSearch_suggestionsContainerOpen__2hg77::-webkit-scrollbar {\n display: none;\n /* Safari and Chrome */ }\n .MobileSearch_suggestionsContainerOpen__2hg77 .MobileSearch_suggestionsList__cWAt3 {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f4f4f5; }\n\n.MobileSearch_clear-search-history__3A-ea {\n display: -ms-flexbox;\n display: flex;\n margin-top: auto;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f4f4f5;\n color: var(--color);\n font-size: 15px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.42px;\n border-top: 1px solid #ddd; }\n\n.MobileSearch_mobile-modal-overlay__1SB12 {\n z-index: 9999;\n top: 0;\n left: 0;\n right: unset;\n bottom: unset;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background-color: white;\n position: fixed; }\n\n.MobileSearch_mobile-modal__H2JRE {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n /* stylelint-disable-next-line */\n /* stylelint-disable-next-line */ }\n .MobileSearch_mobile-modal__H2JRE.ReactModal__Content--after-open > div {\n transform: translateY(0); }\n .MobileSearch_mobile-modal__H2JRE.ReactModal__Content--before-close > div {\n transform: translateY(10%); }\n\n.MobileSearch_mobile-modal-content__vH5o7 {\n position: fixed;\n width: 100%;\n height: 100%;\n outline: none;\n background-color: #ffffff;\n transition: transform 0.25s;\n transform: translateY(10%); }\n");var He=function(e){Z(n,e);var c=Ie(n);function n(e){var o;K(this,n);var a=$(o=c.call(this,e));return a.onSuggestionTouchMove=function(){a.justSelectedSuggestion=!1,a.pressedSuggestion=null},o}return n}(X.default),Ye=function(e){var c,o=e.appElement,a=e.id,t=e.closeHandle,i=e.clearInput,r=e.value,M=e.suggestions,s=e.inputProps,p=e.fetchFunction,u=e.renderSuggestion,l=e.getSuggestionValue,d=e.ariaLabel,b=e.label,A=e.onSuggestionSelected,z=e.clearOldSearches,f=e.onKeyDown,h=e.dialogHeaderText,O=e.dialogPrimaryButtonText,L=e.dialogSecondaryButtonText,m=e.clearInputButtonText,q=e.focusInput,N=e.color,W=e.hoverColor,T=e.searchOpen,X=e.fontWeights,B="".concat(a,"-input"),_="".concat(a,"-label"),y=ne(n.useState(!1),2),S=y[0],v=y[1],k=g.default.useRef(),C=n.useCallback((function(){t()}));n.useEffect((function(){H.default.setAppElement(o)}),[]);var E=function(e,c){"clear-search-history"===c.suggestion.type?v(!0):c.suggestion.properties.arrowClicked||A(e,c)},R=function(e){return"clear-search-history"===e.type?"":l(e)},w=function(e){return"clear-search-history"===e.type?g.default.createElement("span",{className:xe["clear-search-history"]},e.labelId):u(e)};return q&&null!==(c=k.current)&&void 0!==c&&c.input&&k.current.input.focus(),g.default.createElement(H.default,{isOpen:T,className:xe["mobile-modal"],overlayClassName:xe["mobile-modal-overlay"],onAfterClose:C,shouldCloseOnEsc:!0},g.default.createElement("div",{className:xe["mobile-modal-content"],style:{"--color":"".concat(N),"--hover-color":"".concat(W),"--font-weight-medium":X.medium}},g.default.createElement("label",{className:xe["combobox-container"],htmlFor:B},g.default.createElement("div",{className:xe["combobox-icon"],onClick:C},g.default.createElement(x.default,{img:"arrow"})),g.default.createElement("span",{className:xe["right-column"]},g.default.createElement("span",{className:xe["combobox-label"],id:_},b),g.default.createElement(He,{alwaysRenderSuggestions:!0,id:a,suggestions:M,onSuggestionsFetchRequested:p,getSuggestionValue:R,renderSuggestion:w,focusInputOnSuggestionClick:!0,shouldRenderSuggestions:function(){return!0},inputProps:U({},s,{className:"".concat(xe.input," ").concat(xe[a]||""," ").concat(s.value?xe.hasValue:""),autoFocus:!0}),renderInputComponent:function(e){return g.default.createElement(g.default.Fragment,null,g.default.createElement("input",Object.assign({"aria-label":d,id:a,onKeyDown:f},e)),r&&g.default.createElement("button",{type:"button",className:xe["clear-input"],onClick:i,"aria-label":m},g.default.createElement(x.default,{img:"close",color:N})))},theme:xe,onSuggestionSelected:E,ref:k}))),g.default.createElement(Y.default,{appElement:o,isModalOpen:S,handleClose:function(){return v(!1)},headerText:h,primaryButtonText:O,secondaryButtonText:L,primaryButtonOnClick:function(){z(),v(!1)},secondaryButtonOnClick:function(){return v(!1)},color:N,hoverColor:W,fontWeights:X})))};"production"!==process.env.NODE_ENV&&(Ye.propTypes={appElement:N.default.string.isRequired,id:N.default.string.isRequired,closeHandle:N.default.func.isRequired,clearInput:N.default.func.isRequired,value:N.default.string,clearInputButtonText:N.default.string.isRequired,suggestions:N.default.array.isRequired,inputProps:N.default.shape({onChange:N.default.func.isRequired,onBlur:N.default.func.isRequired,value:N.default.string.isRequired,placeholder:N.default.string.isRequired,className:N.default.string.isRequired}).isRequired,fetchFunction:N.default.func.isRequired,getSuggestionValue:N.default.func.isRequired,renderSuggestion:N.default.func.isRequired,onSuggestionSelected:N.default.func.isRequired,label:N.default.string.isRequired,clearOldSearches:N.default.func.isRequired,onKeyDown:N.default.func.isRequired,ariaLabel:N.default.string,dialogHeaderText:N.default.string,dialogPrimaryButtonText:N.default.string,dialogSecondaryButtonText:N.default.string,focusInput:N.default.bool,color:N.default.string,hoverColor:N.default.string,searchOpen:N.default.bool.isRequired,fontWeights:N.default.shape({medium:N.default.number.isRequired}).isRequired});var Fe,Ue=Te((function(e,c){var n;"undefined"!=typeof self&&self,n=function(e){return function(e){var c={};function n(o){if(c[o])return c[o].exports;var a=c[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=c,n.d=function(e,c,o){n.o(e,c)||Object.defineProperty(e,c,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,c){if(1&c&&(e=n(e)),8&c)return e;if(4&c&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&c&&"string"!=typeof e)for(var a in e)n.d(o,a,function(c){return e[c]}.bind(null,a));return o},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="",n(n.s="./packages/hooks/src/index.ts")}({"./packages/hooks/src/index.ts":
13
+ function c(e,c,n,o){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return c?a[n][0]:a[n][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:c,mm:"%d Minuten",h:c,hh:"%d Stunden",d:c,dd:c,w:c,ww:"%d Wochen",M:c,MM:c,y:c,yy:c},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},n(Be)})),{de:{address:"Adresse","address-place-or-business":"Adress, Ort or Geschäft","add-via-button-label":"Füge Zwischenziel hinzu","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",airplane:"Flug",arrival:"Ankunft",back:"Zurück",bikerentalstation:"Leihrad-Station",bus:"Bus",cancel:"Abbrechen","clear-button-label":"Löschen","clear-search-history":"Suchhistorie löschen",currentposition:"Aktuelle Position",delete:"Löschen","delete-old-searches-header":"Wollen Sie die Such-Historie löschen?",departure:"Abfahrt",destination:"Ziel","give-origin":"Start eingeben.","give-destination":"Ziel eingeben.",favourite:"Favoriten",ferry:"Fähre","future-route":"Zukünftige Verbindung",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Eigene Favoriten",loading:"Laden...","minute-short":"min",rail:"Zug",search:"Suche","search-address-or-place":"Suche anhand von Adresse oder Ortsangabe","search-button-label":"Suche","search-destination":"Suche Zielort, Linie or Haltestelle","search-destination-index":"Zielort eingeben","search-destination-results-but-no-search":"Ergebnisse in “Zielort”-Reiter anzeigen","search-no-results":"Kein Ort gefunden.","search-origin":"Suche Startort, Linie oder Haltestelle","search-origin-index":"Startort eingeben","search-position":"Standort ermitteln","search-autosuggest-label":"Venue, place and stopsearch. Navigate list with arrow keys and select with enter key","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-current-suggestion":"Aktuelle Auswahl: {{selection}}",subway:"U-Bahn",station:"Station",stop:"Haltestelle","stop-near-you":"Suche Haltestellen und Linien in der Nähe","stop-near-you-bus":"Suche Buslinien or Haltestellen","stop-near-you-citybike":"Suche Leihrad-Stationen","stop-near-you-rail":"Suche Zugverbindungen oder Bahnhöfe","stop-near-you-subway":"Suche U-Bahn-Linien oder Haltestellen","stop-near-you-tram":"Suche Stadtbahn-Haltestellen-Suche",today:"Heute um",tomorrow:"Morgen um",tram:"Straßenbahn","use-own-position":"Benutze aktuellen Standort","select-from-map":"Wähle Position anhand Karte","select-from-own-locations":"Aus eigenen Favoriten auswählen",venue:"Venue","via-point":"Zwischenziel",where:"Wohin?",place:"Ort"},en:{address:"Address","address-place-or-business":"Address, place or business","add-via-button-label":"Add via point","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",airplane:"Flight",arrival:"Arrival",back:"Back",bikerentalstation:"Bike station",bus:"bus",cancel:"Cancel","clear-button-label":"Clear","clear-search-history":"Clear search history",currentposition:"Current position",delete:"Delete","delete-old-searches-header":"Do you want to clear the search history?",departure:"Departure",destination:"Destination","give-origin":"Enter your origin.","give-destination":"Enter your destination",favourite:"Favourite",ferry:"Ferry","future-route":"Future route",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Own locations",loading:"Loading...","minute-short":"m",rail:"Train",required:"required field",search:"Search","search-address-or-place":"Search by address or place name","search-button-label":"Search","search-destination":"Search destination, route or stop","search-destination-index":"Enter destination","search-destination-results-but-no-search":"View results in the adjacent “Destination” tab","search-no-results":"No location","search-origin":"Search origin, route or stop","search-origin-index":"Enter origin","search-position":"Detect location","search-autosuggest-label":"Venue, place and stopsearch. Navigate list with arrow keys and select with enter key","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-current-suggestion":"Current selection: {{selection}}",subway:"Metro",station:"Station",stop:"Stop","stop-near-you":"Search stops and routes","stop-near-you-airplane":"Search flights or airports","stop-near-you-bus":"Search bus routes or stops","stop-near-you-citybike":"Search city bike stations","stop-near-you-rail":"Search train routes or stations","stop-near-you-subway":"Search metro routes or stations ","stop-near-you-tram":"Search tram routes or stops","stop-route-station":"Bus and stop search",today:"today at",tomorrow:"tomorrow at",tram:"Tram","use-own-position":"Use current location","select-from-map":"Select position from map","select-from-own-locations":"Select from own locations",venue:"Venue","via-point":"Via point",where:"Where to?",place:"Location"},fi:{address:"Osoite","address-place-or-business":"Osoite, paikka tai yritys","add-via-button-label":"Lisää välipiste","add-via-duration-button-label":"Aseta välipisteelle {{index}} pysähdyksen kesto","add-via-duration-button-label-close":"Avaa välipisteen {{index}} pysähdyksen kesto valitsin","add-via-duration-button-label-open":"Sulje välipisteen {{index}} pysähdyksen kesto valitsin",airplane:"Lentokone",arrival:"Perillä",back:"Takaisin",bikerentalstation:"Pyöräasema",bus:"bussi",cancel:"Peruuta","clear-button-label":"Tyhjennä","clear-search-history":"Tyhjennä hakuhistoria",currentposition:"Tämänhetkinen sijainti",delete:"Poista","delete-old-searches-header":"Haluatko tyhjentää hakuhistorian?",departure:"Lähtöaika",destination:"Määränpää",favourite:"Suosikki",ferry:"Lautta","future-route":"Tuleva reitti","give-origin":"Lähtöpaikka","give-destination":"Määränpää",origin:"Lähtöpaikka","origin-stop-near-you":"Lähtöpaikka",ownlocations:"Omat paikat",loading:"Ladataan...","minute-short":"min",rail:"Juna",required:"pakollinen kenttä",search:"Etsi","search-address-or-place":"Hae osoitteella tai paikan nimellä","search-button-label":"Hae","search-destination":"Hae määränpäätä, linjaa tai pysäkkiä","search-destination-index":"Syötä määränpää","search-destination-results-but-no-search":"Katso tulokset viereiseltä Määränpää-välilehdeltä","search-no-results":"Ei tuloksia","search-origin":"Hae lähtöpaikkaa, linjaa tai pysäkkiä","search-origin-index":"Syötä lähtöpaikka","search-autosuggest-label":"Paikka, linja ja pysäkkihaku. Navigoi listassa nuolinäppäimillä ja valitse enterillä","search-autosuggest-len":" Löydettiin {{count}} ehdotus","search-autosuggest-len_plural":" Löydettiin {{count}} ehdotusta","search-current-suggestion":"Tämänhetkinen valinta: {{selection}}","search-position":"Paikanna",subway:"Metro",station:"Asema",stop:"Pysäkki","stop-near-you":"Linja, pysäkki tai asema","stop-near-you-airplane":"Hae lentoja tai lentoasemaa","stop-near-you-bus":"Hae bussilinjaa tai pysäkkiä","stop-near-you-citybike":"Hae kaupunkipyöräasemaa","stop-near-you-rail":"Hae lähijunaa tai asemaa","stop-near-you-subway":"Hae metrolinjaa tai asemaa","stop-near-you-tram":"Hae raitiolinjaa tai pysäkkiä","stop-route-station":"Linja- ja pysäkkihaku",today:"tänään klo",tomorrow:"huomenna klo",tram:"Raitiovaunu","use-own-position":"Käytä nykyistä sijaintia","select-from-map":"Valitse sijainti kartalta","select-from-own-locations":"Valitse omista paikoista",venue:"Paikka","via-point":"Välipiste",where:"Minne mennään?",place:"Paikka"},sv:{address:"Adress","address-place-or-business":"Adress, plats eller företag","add-via-button-label":"Lägg till viapunkt","add-via-duration-button-label":"Ställ in varaktighet för viapunkten {{index}}","add-via-duration-button-label-close":"Stäng väljaren för varaktighet vid via-punkten {{index}}","add-via-duration-button-label-open":"Öppna väljaren för varaktighet vid via-punkten {{index}}",airplane:"Flyg",arrival:"Anländer",back:"Tillbaka",bikerentalstation:"Stadscykelstation",bus:"Bussi",cancel:"Avbryt","clear-button-label":"Töm","clear-search-history":"Töm sökhistoriken",currentposition:"Nuvarande position",delete:"Ta bort","delete-old-searches-header":"Vill du tömma sökhistoriken?",departure:"Avgångstid",destination:"Destination",favourite:"Favorit",ferry:"Färja","future-route":"Framtida rutt","give-destination":"Skriv in din destination","give-origin":"Skriv in din avfärdsplats",origin:"Avfärdsplats","origin-stop-near-you":"Avfärdsplats",ownlocations:"Egna platser",loading:"Laddar...","minute-short":"min",rail:"Tåg",required:"obligatoriskt fält",search:"Sök","search-address-or-place":"Sök med adressen eller platsens namn","search-button-label":"Sök","search-destination":"Sök destination, linje eller hållplats","search-destination-index":"Skriv destination","search-destination-results-but-no-search":"Se resultaten under fliken Destination","search-no-results":"Inga sökresultat","search-origin":"Sök avfärdsplats, linje eller hållplats","search-origin-index":"Skriv avfärdsplats","search-position":"Sök position","search-autosuggest-label":"Plats, linje och hållplatssökning. Navigera listan med piltangenterna och välj med Enter-tangeten","search-autosuggest-len":"Hittade {{count}} förslag","search-current-suggestion":"Nuvarande val: {{selection}}",subway:"Metro",station:"Station",stop:"Hållplats","stop-near-you":"Sök hållplatser eller linjer","stop-near-you-airplane":"Sök flyg eller flygplatser","stop-near-you-bus":"Sök busslinjer eller hållplatser","stop-near-you-citybike":"Sök stadscykelstationer","stop-near-you-rail":"Sök närtåger eller stationer","stop-near-you-subway":"Sök metrolinjer eller stationer","stop-near-you-tram":"Sök spårvagnlinjer eller hållplatser","stop-route-station":"Buss och stopp sökningen",today:"i dag kl",tomorrow:"i morgon",tram:"Spårvagn","use-own-position":"Använd min position","select-from-map":"Välj position från kartan","select-from-own-locations":"Välj från egna platser",venue:"Mötesplats","via-point":"Via punkt",where:"Vart vill du åka?",place:"Plats"}});function De(e,c){void 0===c&&(c={});var n=c.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&o.firstChild?o.insertBefore(a,o.firstChild):o.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var Pe={container:"styles_container__1NKX8",input:"styles_input__J8Q0h",favourite:"styles_favourite__384ME",thin:"styles_thin__31pf2",hasValue:"styles_hasValue__3IDIO",suggestionsContainerOpen:"styles_suggestionsContainerOpen__1uEOH",suggestionsContainer:"styles_suggestionsContainer__3P1xL",suggestionsList:"styles_suggestionsList__3DnHc",suggestion:"styles_suggestion__1YRxV",suggestionHighlighted:"styles_suggestionHighlighted__28ZnP","autosuggest-input-container":"styles_autosuggest-input-container__IxbT_",origin:"styles_origin__1qX8p",destination:"styles_destination__3DZBi","stop-route-station":"styles_stop-route-station__2PwTH","autosuggest-input-icon":"styles_autosuggest-input-icon__2PARI","origin-stop-near-you":"styles_origin-stop-near-you__1-J6m","clear-input":"styles_clear-input__1_PXf","sr-only":"styles_sr-only__B2xmy"};De("/* stylelint-disable */\ninput[type='text'] {\n margin: 0; }\n\n.styles_container__1NKX8 {\n display: -ms-flexbox;\n display: flex;\n width: 100%; }\n .styles_container__1NKX8 .styles_input__J8Q0h {\n font-size: 16px;\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', 'Roboto', Arial, Georgia, Serif;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n height: 44px;\n border-radius: 5px;\n border: solid 1px #888888;\n background-color: #ffffff;\n padding-left: 50px;\n padding-right: 44px;\n line-height: 1.2;\n letter-spacing: -0.5px;\n color: #333;\n box-sizing: border-box;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none; }\n .styles_container__1NKX8 .styles_input__J8Q0h.styles_favourite__384ME {\n padding-left: 47px; }\n .styles_container__1NKX8 .styles_input__J8Q0h.styles_thin__31pf2 {\n height: 34px; }\n .styles_container__1NKX8 .styles_input__J8Q0h:focus {\n background: #fff;\n outline: none;\n border: solid 1px var(--color);\n box-shadow: none;\n box-shadow: 0px 0px 2px 1px var(--hover-color); }\n @media screen and (min-width: 768px) {\n .styles_container__1NKX8 .styles_input__J8Q0h {\n font-size: 15px;\n height: 44px;\n padding-left: 49px; } }\n .styles_container__1NKX8 .styles_input__J8Q0h:-ms-input-placeholder {\n color: #666666;\n font-size: 15px; }\n .styles_container__1NKX8 .styles_input__J8Q0h::placeholder {\n color: #666666;\n font-size: 15px; }\n\n.styles_hasValue__3IDIO {\n color: #333333; }\n\n.styles_suggestionsContainerOpen__1uEOH {\n width: 100%;\n max-height: 44vh;\n border-radius: 5px;\n box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);\n border: solid 1px rgba(0, 0, 0, 0.1);\n overflow-x: hidden;\n overflow-y: scroll;\n position: absolute;\n background-color: white;\n top: calc(3 * 0.875rem + 9px);\n z-index: 20; }\n\n.styles_suggestionsContainer__3P1xL {\n background-color: white;\n z-index: 20; }\n .styles_suggestionsContainer__3P1xL .styles_suggestionsList__3DnHc {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n background: white; }\n .styles_suggestionsContainer__3P1xL .styles_suggestionsList__3DnHc li:hover {\n background: #F4F4F5; }\n\n.styles_suggestion__1YRxV {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n cursor: pointer;\n list-style: none;\n display: block;\n overflow-x: hidden;\n overflow-y: hidden;\n white-space: nowrap; }\n\n.styles_suggestionHighlighted__28ZnP {\n background-color: #F4F4F5; }\n\n.styles_autosuggest-input-container__IxbT_ {\n position: relative;\n width: 100%; }\n .styles_autosuggest-input-container__IxbT_.styles_origin__1qX8p {\n z-index: 16; }\n .styles_autosuggest-input-container__IxbT_.styles_destination__3DZBi {\n z-index: 10; }\n .styles_autosuggest-input-container__IxbT_.styles_stop-route-station__2PwTH {\n z-index: 9; }\n\n.styles_autosuggest-input-icon__2PARI {\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n -ms-flex-align: center;\n align-items: center;\n width: 16px;\n height: 100%;\n margin-top: 0;\n margin-left: 19px; }\n .styles_autosuggest-input-icon__2PARI svg {\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__2PARI.styles_origin__1qX8p svg {\n fill: #4ea700;\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__2PARI.styles_destination__3DZBi svg {\n fill: #ec5188;\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__2PARI.styles_stop-route-station__2PwTH svg, .styles_autosuggest-input-icon__2PARI.styles_favourite__384ME svg {\n fill: #888888;\n width: 16px;\n height: 16px; }\n .styles_autosuggest-input-icon__2PARI.styles_origin-stop-near-you__1-J6m svg {\n fill: #888888;\n width: 16px;\n height: 16px; }\n\nbutton.styles_clear-input__1_PXf {\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n padding: 14px 0;\n right: 0px;\n width: 44px;\n height: 100%;\n color: var(--color);\n outline: none;\n border: 0px;\n margin: 0px;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0px;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.styles_clear-input__1_PXf svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.styles_clear-input__1_PXf:focus {\n background-color: transparent;\n color: inherit;\n /* First apply outline that is used in Edge and Firefox */\n outline: 1px dotted #212121;\n /* Then override outline for webkit browsers like Chrome, this has no effect on other browsers */\n outline: 5px auto -webkit-focus-ring-color; }\n button.styles_clear-input__1_PXf:active {\n background-color: transparent;\n color: inherit; }\n button.styles_clear-input__1_PXf:hover {\n background-color: transparent;\n color: inherit; }\n\n.styles_sr-only__B2xmy:not(:focus):not(:active) {\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(50%);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px; }\n");var xe={"fullscreen-root":"MobileSearch_fullscreen-root__3mzJu","combobox-container":"MobileSearch_combobox-container__2dXKy","right-column":"MobileSearch_right-column__KzsqW","combobox-icon":"MobileSearch_combobox-icon__2y89R","combobox-label":"MobileSearch_combobox-label__20dJF",container:"MobileSearch_container__33kZY",input:"MobileSearch_input__1-Zl9","clear-input":"MobileSearch_clear-input__1x_WA",hasValue:"MobileSearch_hasValue__1ByEp",suggestion:"MobileSearch_suggestion__2AjCH",suggestionHighlighted:"MobileSearch_suggestionHighlighted__14vbR",suggestionsContainerOpen:"MobileSearch_suggestionsContainerOpen__2hg77",suggestionsList:"MobileSearch_suggestionsList__cWAt3","clear-search-history":"MobileSearch_clear-search-history__3A-ea","mobile-modal-overlay":"MobileSearch_mobile-modal-overlay__1SB12","mobile-modal":"MobileSearch_mobile-modal__H2JRE","mobile-modal-content":"MobileSearch_mobile-modal-content__vH5o7"};function Ie(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ce(e);if(c){var a=ce(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return ee(this,n)}}De("input[type='text'] {\n margin: 0;\n padding: 0; }\n\n.MobileSearch_fullscreen-root__3mzJu {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000; }\n\n.MobileSearch_combobox-container__2dXKy {\n margin: 15px 10px 0;\n border: solid #888888 1px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 5px;\n height: 60px;\n -ms-flex-pack: justify;\n justify-content: space-between; }\n .MobileSearch_combobox-container__2dXKy .MobileSearch_right-column__KzsqW {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px; }\n\n.MobileSearch_combobox-icon__2y89R {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n height: 100%;\n width: 52px; }\n .MobileSearch_combobox-icon__2y89R svg {\n fill: #007ac9;\n width: 14px;\n height: 21px;\n transform: rotate(-180deg); }\n\n.MobileSearch_combobox-label__20dJF {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.2px;\n color: #333333; }\n\n.MobileSearch_container__33kZY {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n width: 100%; }\n .MobileSearch_container__33kZY .MobileSearch_input__1-Zl9 {\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', 'Roboto', Arial, Georgia, Serif;\n width: 100%;\n position: relative;\n padding-bottom: 7px;\n top: 2px;\n border: none;\n height: 26px;\n font-weight: normal;\n box-shadow: none;\n font-size: 16px;\n letter-spacing: -0.5px;\n color: #666666;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none; }\n .MobileSearch_container__33kZY .MobileSearch_input__1-Zl9:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff; }\n\nbutton.MobileSearch_clear-input__1x_WA {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n right: 0px;\n padding: 0 15px 7px 0;\n height: 26px;\n color: var(--color);\n outline: none;\n border: 0px;\n margin: 0px;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0px;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.MobileSearch_clear-input__1x_WA svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.MobileSearch_clear-input__1x_WA:focus {\n background-color: transparent;\n color: inherit; }\n button.MobileSearch_clear-input__1x_WA:active {\n background-color: transparent;\n color: inherit; }\n button.MobileSearch_clear-input__1x_WA:hover {\n background-color: transparent;\n color: inherit; }\n\n.MobileSearch_hasValue__1ByEp {\n color: #333333; }\n\n.MobileSearch_suggestion__2AjCH {\n font-size: 15px;\n min-height: 50px;\n letter-spacing: -0.6px;\n color: #333333;\n font-weight: 500;\n background: #fff;\n margin: 0;\n padding: 0; }\n\n.MobileSearch_suggestionHighlighted__14vbR {\n background-color: #F4F4F5; }\n\n.MobileSearch_suggestionsContainerOpen__2hg77 {\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n margin-bottom: auto;\n z-index: 20;\n width: 100vw;\n max-height: calc(100% - 75px);\n height: 100%;\n top: 75px;\n left: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n -ms-overflow-style: none;\n /* Internet Explorer 10+ */\n scrollbar-width: none;\n /* Firefox */ }\n .MobileSearch_suggestionsContainerOpen__2hg77::-webkit-scrollbar {\n display: none;\n /* Safari and Chrome */ }\n .MobileSearch_suggestionsContainerOpen__2hg77 .MobileSearch_suggestionsList__cWAt3 {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f4f4f5; }\n\n.MobileSearch_clear-search-history__3A-ea {\n display: -ms-flexbox;\n display: flex;\n margin-top: auto;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f4f4f5;\n color: var(--color);\n font-size: 15px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.42px;\n border-top: 1px solid #ddd; }\n\n.MobileSearch_mobile-modal-overlay__1SB12 {\n z-index: 9999;\n top: 0;\n left: 0;\n right: unset;\n bottom: unset;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background-color: white;\n position: fixed; }\n\n.MobileSearch_mobile-modal__H2JRE {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n /* stylelint-disable-next-line */\n /* stylelint-disable-next-line */ }\n .MobileSearch_mobile-modal__H2JRE.ReactModal__Content--after-open > div {\n transform: translateY(0); }\n .MobileSearch_mobile-modal__H2JRE.ReactModal__Content--before-close > div {\n transform: translateY(10%); }\n\n.MobileSearch_mobile-modal-content__vH5o7 {\n position: fixed;\n width: 100%;\n height: 100%;\n outline: none;\n background-color: #ffffff;\n transition: transform 0.25s;\n transform: translateY(10%); }\n");var He=function(e){Z(n,e);var c=Ie(n);function n(e){var o;K(this,n);var a=$(o=c.call(this,e));return a.onSuggestionTouchMove=function(){a.justSelectedSuggestion=!1,a.pressedSuggestion=null},o}return n}(X.default),Ye=function(e){var c,o=e.appElement,a=e.id,t=e.closeHandle,i=e.clearInput,r=e.value,M=e.suggestions,s=e.inputProps,p=e.fetchFunction,u=e.renderSuggestion,l=e.getSuggestionValue,d=e.ariaLabel,b=e.label,A=e.onSuggestionSelected,z=e.clearOldSearches,f=e.onKeyDown,h=e.dialogHeaderText,O=e.dialogPrimaryButtonText,L=e.dialogSecondaryButtonText,m=e.clearInputButtonText,q=e.focusInput,N=e.color,W=e.hoverColor,T=e.searchOpen,X=e.fontWeights,B="".concat(a,"-input"),_="".concat(a,"-label"),y=ne(n.useState(!1),2),S=y[0],v=y[1],k=g.default.useRef(),C=n.useCallback((function(){t()}));n.useEffect((function(){H.default.setAppElement(o)}),[]);var E=function(e,c){"clear-search-history"===c.suggestion.type?v(!0):c.suggestion.properties.arrowClicked||A(e,c)},R=function(e){return"clear-search-history"===e.type?"":l(e)},w=function(e){return"clear-search-history"===e.type?g.default.createElement("span",{className:xe["clear-search-history"]},e.labelId):u(e)};return q&&null!==(c=k.current)&&void 0!==c&&c.input&&k.current.input.focus(),g.default.createElement(H.default,{isOpen:T,className:xe["mobile-modal"],overlayClassName:xe["mobile-modal-overlay"],onAfterClose:C,shouldCloseOnEsc:!0},g.default.createElement("div",{className:xe["mobile-modal-content"],style:{"--color":"".concat(N),"--hover-color":"".concat(W),"--font-weight-medium":X.medium}},g.default.createElement("label",{className:xe["combobox-container"],htmlFor:B},g.default.createElement("div",{className:xe["combobox-icon"],onClick:C},g.default.createElement(x.default,{img:"arrow"})),g.default.createElement("span",{className:xe["right-column"]},g.default.createElement("span",{className:xe["combobox-label"],id:_},b),g.default.createElement(He,{alwaysRenderSuggestions:!0,id:a,suggestions:M,onSuggestionsFetchRequested:p,getSuggestionValue:R,renderSuggestion:w,focusInputOnSuggestionClick:!0,shouldRenderSuggestions:function(){return!0},inputProps:U({},s,{className:"".concat(xe.input," ").concat(xe[a]||""," ").concat(s.value?xe.hasValue:""),autoFocus:!0}),renderInputComponent:function(e){return g.default.createElement(g.default.Fragment,null,g.default.createElement("input",Object.assign({"aria-label":d,id:a,onKeyDown:f},e)),r&&g.default.createElement("button",{type:"button",className:xe["clear-input"],onClick:i,"aria-label":m},g.default.createElement(x.default,{img:"close",color:N})))},theme:xe,onSuggestionSelected:E,ref:k}))),g.default.createElement(Y.default,{appElement:o,isModalOpen:S,handleClose:function(){return v(!1)},headerText:h,primaryButtonText:O,secondaryButtonText:L,primaryButtonOnClick:function(){z(),v(!1)},secondaryButtonOnClick:function(){return v(!1)},color:N,hoverColor:W,fontWeights:X})))};"production"!==process.env.NODE_ENV&&(Ye.propTypes={appElement:N.default.string.isRequired,id:N.default.string.isRequired,closeHandle:N.default.func.isRequired,clearInput:N.default.func.isRequired,value:N.default.string,clearInputButtonText:N.default.string.isRequired,suggestions:N.default.array.isRequired,inputProps:N.default.shape({onChange:N.default.func.isRequired,onBlur:N.default.func.isRequired,value:N.default.string.isRequired,placeholder:N.default.string.isRequired,className:N.default.string.isRequired}).isRequired,fetchFunction:N.default.func.isRequired,getSuggestionValue:N.default.func.isRequired,renderSuggestion:N.default.func.isRequired,onSuggestionSelected:N.default.func.isRequired,label:N.default.string.isRequired,clearOldSearches:N.default.func.isRequired,onKeyDown:N.default.func.isRequired,ariaLabel:N.default.string,dialogHeaderText:N.default.string,dialogPrimaryButtonText:N.default.string,dialogSecondaryButtonText:N.default.string,focusInput:N.default.bool,color:N.default.string,hoverColor:N.default.string,searchOpen:N.default.bool.isRequired,fontWeights:N.default.shape({medium:N.default.number.isRequired}).isRequired});var Fe,Ue=Te((function(e,c){var n;"undefined"!=typeof self&&self,n=function(e){return function(e){var c={};function n(o){if(c[o])return c[o].exports;var a=c[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=c,n.d=function(e,c,o){n.o(e,c)||Object.defineProperty(e,c,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,c){if(1&c&&(e=n(e)),8&c)return e;if(4&c&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&c&&"string"!=typeof e)for(var a in e)n.d(o,a,function(c){return e[c]}.bind(null,a));return o},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="",n(n.s="./packages/hooks/src/index.ts")}({"./packages/hooks/src/index.ts":
14
14
  /*!*************************************!*\
15
15
  !*** ./packages/hooks/src/index.ts ***!
16
16
  \*************************************/
@@ -30,5 +30,5 @@ function c(e,c,n,o){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","ei
30
30
  /*!************************!*\
31
31
  !*** external "react" ***!
32
32
  \************************/
33
- /*! no static exports found */function(c,n){c.exports=e}})},e.exports=n(g.default)})),je=(Fe=Ue)&&Fe.__esModule&&Object.prototype.hasOwnProperty.call(Fe,"default")?Fe.default:Fe;function Ge(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ce(e);if(c){var a=ce(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return ee(this,n)}}Re.locale("en"),W.default.init({fallbackLng:"fi",defaultNS:"translation",interpolation:{escapeValue:!1}});function Ve(e){if("FutureRoute"!==e.type){var c,n=ne(de(e.properties,!0),2),o=n[0],a=n[1];if(e.properties.layer.toLowerCase().includes("bikerental")||e.properties.layer.toLowerCase().includes("bikestation"))return[c=W.default.t("bikerentalstation"),o,void 0,e.properties.labelId];if(e.properties.mode)c=W.default.t(e.properties.mode.toLowerCase().replace("favourite",""));else{var t=e.properties.layer.replace("route-","").toLowerCase().replace("favourite","");c=W.default.t(t)}if(e.properties.id&&("stop"===e.properties.layer||"station"===e.properties.layer)){var i=le(e.properties),r=e.properties.addendum.GTFS.modes;return[c,pe(o,i),a,i,r]}if("favouriteStop"===e.properties.layer||"favouriteStation"===e.properties.layer){var M=e.properties,s=M.address,p=M.code;return[c,s?pe(s.split(",")[0],p):o,a,p]}return[c,o,a]}var u=e.properties,l=u.origin,d=u.destination,b=l.locality?", ".concat(l.locality," foobar"):"",A=d.locality?", ".concat(d.locality):"",z=l.name,f=d.name;return[W.default.t("future-route"),"".concat(W.default.t("origin")," ").concat(z).concat(b," ").concat(W.default.t("destination")," ").concat(f).concat(A),e.translatedText]}function Ke(e){var c=Re.unix(e.properties.time),n=e.properties.arriveBy?W.default.t("arrival"):W.default.t("departure");return n=c.isSame(Re(),"day")?"".concat(n," ").concat(W.default.t("today")):c.isSame(Re().add(1,"day"),"day")?"".concat(n," ").concat(W.default.t("tomorrow")):"".concat(n," ").concat(c.format("dd D.M.")),n="".concat(n," ").concat(Re(c).format("HH:mm"))}"production"!==process.env.NODE_ENV&&N.default.node;var Qe=function(e){Z(t,e);var c,n,o,a=Ge(t);function t(e){var c;return K(this,t),(c=a.call(this,e)).componentDidUpdate=function(){W.default.language!==c.props.lang&&W.default.changeLanguage(c.props.lang)},c.UNSAFE_componentWillReceiveProps=function(e){e.value===c.state.value||c.state.editing||c.setState({value:e.value})},c.onChange=function(e,n){var o=n.newValue,a=n.method,t={value:c.fInput||o||""};if(c.fInput=null,c.state.editing){if("enter"!==a||c.state.valid){if(c.state.typingTimer&&clearTimeout(c.state.typingTimer),"type"===a){var i=setTimeout((function(){c.setState({typing:!1})}),1e3);t.typingTimer=i,t.typing=!0}c.setState(t)}}else t.editing=!0,c.setState(t,(function(){return c.fetchFunction({value:o||""})}))},c.onBlur=function(){c.state.editing&&c.input.focus(),c.setState({editing:!1,renderMobileSearch:!1,value:c.props.value})},c.onSelected=function(e,n){if(c.state.valid){if("SelectFromOwnLocations"===n.suggestion.type)return void c.setState({sources:["Favourite","Back"],ownPlaces:!0,pendingSelection:n.suggestion.type,value:""},(function(){c.fetchFunction({value:""})}));if("back"===n.suggestion.type||"FutureRoute"===n.suggestion.type)return void c.setState({sources:c.props.sources,ownPlaces:!1,pendingSelection:n.suggestion.type,suggestionIndex:n.suggestionIndex},(function(){c.fetchFunction({value:""})}));c.setState({editing:!1,value:n.suggestionValue},(function(){c.input.blur(),c.props.handleViaPoints?c.props.handleViaPoints(n.suggestion,n.suggestionIndex):c.props.onSelect(n.suggestion,c.props.id),c.setState({renderMobileSearch:!1,sources:c.props.sources,ownPlaces:!1,suggestions:[]}),c.props.focusChange&&!c.props.isMobile&&c.props.focusChange()}))}else c.setState((function(e){return{pendingSelection:e.value}}),(function(){return c.checkPendingSelection()}))},c.onSuggestionsClearRequested=function(){c.setState({suggestions:[],sources:c.props.sources,ownPlaces:!1,editing:!1})},c.getSuggestionValue=function(e){return"SelectFromOwnLocations"===e.type||"back"===e.type?"":function(e){var c=de(e,!0);switch(e.layer){case"selectFromMap":case"currentPosition":case"ownLocations":case"back":return c[1]||c[0];case"favouriteBikeRentalStation":case"favouritePlace":return c[0];default:return c.length>1&&""!==c[1]?c.join(", "):c[1]||c[0]}}(e.properties)},c.checkPendingSelection=function(){"SelectFromOwnLocations"!==c.state.pendingSelection&&"back"!==c.state.pendingSelection||!c.state.valid?c.state.pendingSelection&&c.state.valid&&c.setState({pendingSelection:null,editing:!1},(function(){c.state.suggestions.length&&(c.input.blur(),c.props.onSelect(c.state.suggestions[c.state.suggestionIndex],c.props.id))})):c.setState({pendingSelection:null,editing:!0},(function(){c.input.focus()}))},c.clearButton=function(){return g.default.createElement("button",{type:"button",className:Pe["clear-input"],onClick:c.clearInput,"aria-label":W.default.t("clear-button-label")},g.default.createElement(x.default,{img:"close",color:c.props.color}))},c.fetchFunction=function(e){var n=e.value,o=e.cleanExecuted;return c.setState({valid:!1,cleanExecuted:o||!1},(function(){var e,o=I.default(c.props.targets)||c.props.targets.includes("Locations");c.state.ownPlaces?(e=["Locations"],(I.default(c.props.targets)||c.props.targets.includes("Stops"))&&e.push("Stops")):I.default(c.props.targets)||(e=V(c.props.targets),o&&!c.props.isMobile&&(I.default(c.props.sources)||c.props.sources.includes("Favourite"))&&e.push("SelectFromOwnLocations")),function(e,c,n,o,a,t,i,r,M,s){r(null),ge(e,c,n,o,a,t,i,r,M,s)}(e,c.state.sources&&c.state.sources.filter((function(e){return!(o&&"Favourite"===e&&!c.state.ownPlaces&&!c.props.isMobile)})),c.props.transportMode,c.props.searchContext,c.props.filterResults,c.props.geocodingSize,{input:n||""},(function(e){if(null!=e){var o=(e.results||[]).filter((function(e){return"FutureRoute"!==e.type||"FutureRoute"===e.type&&e.properties.time>Re().unix()})).map((function(e){if("CurrentLocation"===e.type||"SelectFromMap"===e.type||"SelectFromOwnLocations"===e.type||"back"===e.type){var c=U({},e);return c.properties.labelId=W.default.t(e.properties.labelId),c}return e}));n!==c.state.value&&n!==c.state.pendingSelection&&"SelectFromOwnLocations"!==c.state.pendingSelection&&"back"!==c.state.pendingSelection&&"FutureRoute"!==c.state.pendingSelection||c.setState({valid:!0,suggestions:o},(function(){return c.checkPendingSelection()}))}}),c.props.pathOpts,c.props.refPoint)}))},c.clearInput=function(){var e={editing:!0,value:"",sources:c.props.sources,ownPlaces:!1};c.setState(e,(function(){return c.fetchFunction({value:"",cleanExecuted:!0})})),c.props.onClear&&c.props.onClear(),c.input.focus()},c.inputClicked=function(e){if(c.input.focus(),!c.state.editing){var n={editing:!0,pendingSelection:null},o={editing:!0,pendingSelection:null,value:e};c.state.suggestions.length?(c.fetchFunction({value:c.state.value}),c.setState(n)):"object"!==F(e)&&e?c.setState(o,(function(){return c.fetchFunction({value:e})})):c.setState(n,(function(){return c.fetchFunction({value:c.state.value})}))}},c.storeInputReference=function(e){null!==e&&(c.input=e.input,c.props.storeRef&&c.props.storeRef(e.input))},c.fillInput=function(e){c.fInput=e.properties.name;var n={editing:!0,value:e.properties.name,checkPendingSelection:e,valid:!0};c.setState(n),c.fetchFunction({value:e.properties.name}),c.input.focus()},c.renderItem=function(e){var n="FutureRoute"===e.type?U({},e,{translatedText:Ke(e)}):e,o=Ve(e);return g.default.createElement(P.default,{item:n,content:o,loading:!c.state.valid,isMobile:c.props.isMobile,ariaFavouriteString:W.default.t("favourite"),color:c.props.color,fillInput:c.fillInput,fontWeights:c.props.fontWeights,modeIconColors:c.props.modeIconColors,modeSet:c.props.modeSet})},c.closeMobileSearch=function(){c.props.unlock(),c.setState({renderMobileSearch:!1,value:c.props.value},(function(){window.scrollTo(0,c.state.scrollY),c.onSuggestionsClearRequested()}))},c.keyDown=function(e){var n=e.key;if("Escape"===n&&c.setState({editing:!1}),c.state.editing)return"Enter"===n&&c.fetchFunction({value:c.state.value}),c.inputClicked();if(("Enter"===n||"ArrowDown"===n)&&""===c.state.value)return c.clearInput();if("ArrowDown"===n&&""!==c.state.value){var o={editing:!0,value:c.state.value};c.setState(o,(function(){return c.fetchFunction({value:c.state.value})}))}return c.state.editing||c.setState({editing:!0}),"Tab"===n?c.onBlur():void 0},c.suggestionAsAriaContent=function(){var e=[],n=c.state.suggestions[0];return n&&(n.type&&n.type.includes("Favourite")&&e.push(W.default.t("favourite")),e=e.concat(Ve(c.state.suggestions[0]))),V(new Set(e)).join(" - ")},c.clearOldSearches=function(){var e=c.props.searchContext,n=e.context,o=e.clearOldSearches,a=e.clearFutureRoutes;n&&o&&(o(n),a&&a(n),c.fetchFunction({value:c.state.value}))},c.isOriginDestinationOrViapoint=function(){return"origin"===c.props.id||"destination"===c.props.id||"via-point"===c.props.id||"origin-stop-near-you"===c.props.id},c.onFocus=function(){["Valittu sijainti","Nykyinen sijaintisi","Current position","Selected location","Vald position","Använd min position","Min position","Käytä nykyistä sijaintia","Use current location","Your current location"].includes(c.state.value)&&c.clearInput();var e=window.pageYOffset;return c.props.isMobile&&c.props.lock(),c.setState({renderMobileSearch:c.props.isMobile,scrollY:e})},Re.tz.setDefault(e.timeZone),Re.locale(e.lang),c.state={value:e.value,suggestions:[],editing:!1,valid:!0,renderMobileSearch:!1,sources:e.sources,ownPlaces:!1,typingTimer:null,typing:!1,pendingSelection:null,suggestionIndex:0,cleanExecuted:!1,scrollY:0},Object.keys(we).forEach((function(e){W.default.addResourceBundle(e,"translation",we[e])})),c}return c=t,(n=[{key:"shouldComponentUpdate",value:function(e,c){return!C.default(c,this.state)||!C.default(e,this.props)}},{key:"render",value:function(){var e=this;W.default.language!==this.props.lang&&W.default.changeLanguage(this.props.lang);var c=this.state,n=c.value,o=c.suggestions,a=c.renderMobileSearch,t=c.cleanExecuted,i={placeholder:this.props.translatedPlaceholder?this.props.translatedPlaceholder:W.default.t(this.props.placeholder),value:n,onChange:this.onChange,onBlur:this.props.isMobile?function(){return null}:this.onBlur,className:"".concat(Pe.input," ").concat(this.props.isMobile&&this.props.transportMode?Pe.thin:""," ").concat(Pe[this.props.id]||""," ").concat(this.state.value?Pe.hasValue:""," ").concat(this.props.inputClassName),onKeyDown:this.keyDown,required:this.props.required},r=this.props.id.replace("searchfield-",""),M=this.props.ariaLabel||W.default.t(r);M=M.replace("searchfield-","");var s=this.props.required?"".concat(W.default.t("required"),"."):"",p=W.default.t("search-autosuggest-label"),u=W.default.t("search-autosuggest-len",{count:o.length}),l=W.default.t("search-current-suggestion",{selection:this.suggestionAsAriaContent()});return g.default.createElement(g.default.Fragment,null,g.default.createElement("span",{className:Pe["sr-only"],role:this.state.typing?void 0:"alert","aria-hidden":!this.state.editing},u),g.default.createElement("span",{className:Pe["sr-only"],role:this.state.typing?void 0:"alert","aria-hidden":!this.state.editing||0===o.length},l),this.props.isMobile&&g.default.createElement(Ye,{searchOpen:a,appElement:this.props.appElement,clearOldSearches:this.clearOldSearches,id:this.props.id,clearInput:this.clearInput,value:this.state.value,suggestions:[].concat(V(o),[{type:"clear-search-history",labelId:W.default.t("clear-search-history")}]),inputProps:U({},i,{placeholder:this.isOriginDestinationOrViapoint()?W.default.t("address-place-or-business"):i.placeholder}),fetchFunction:this.fetchFunction,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:this.getSuggestionValue,renderSuggestion:this.renderItem,closeHandle:this.closeMobileSearch,ariaLabel:s.concat(" ").concat(M).concat(" ").concat(p),label:this.props.mobileLabel?this.props.mobileLabel:W.default.t(this.props.id),onSuggestionSelected:this.onSelected,onKeyDown:this.keyDown,dialogHeaderText:W.default.t("delete-old-searches-header"),dialogPrimaryButtonText:W.default.t("delete"),dialogSecondaryButtonText:W.default.t("cancel"),clearInputButtonText:W.default.t("clear-button-label"),focusInput:t,color:this.props.color,hoverColor:this.props.hoverColor,fontWeights:this.props.fontWeights}),!a&&g.default.createElement("div",{className:T.default(Pe["autosuggest-input-container"],Pe[this.props.id]),style:{"--color":"".concat(this.props.color),"--hover-color":"".concat(this.props.hoverColor)}},this.props.icon&&g.default.createElement("div",{className:T.default(Pe["autosuggest-input-icon"],Pe[this.props.id],this.props.inputClassName&&"".concat(this.props.inputClassName,"-input-icon"))},g.default.createElement(x.default,{img:"".concat(this.props.icon)})),g.default.createElement(X.default,{alwaysRenderSuggestions:this.state.editing,id:this.props.id,suggestions:o,onSuggestionsFetchRequested:this.fetchFunction,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:this.getSuggestionValue,renderSuggestion:this.renderItem,inputProps:U({},i,{onFocus:this.onFocus}),focusInputOnSuggestionClick:!0,shouldRenderSuggestions:function(){return e.state.editing},highlightFirstSuggestion:!0,theme:Pe,renderInputComponent:function(c){return g.default.createElement(g.default.Fragment,null,g.default.createElement("input",Object.assign({"aria-label":s.concat(" ").concat(M).concat(" ").concat(p),id:e.props.id,onClick:e.inputClicked,onKeyDown:e.keyDown},c)),e.state.value&&e.clearButton())},onSuggestionSelected:this.onSelected,ref:this.storeInputReference})))}}])&&Q(c.prototype,n),o&&Q(c,o),t}(g.default.Component);Qe.defaultProps={autoFocus:!1,className:"",icon:void 0,value:"",transportMode:void 0,lang:"fi",sources:[],isMobile:!1,color:"#007ac9",hoverColor:"#0062a1",timeZone:"Europe/Helsinki",pathOpts:{routesPrefix:"linjat",stopsPrefix:"pysakit"},mobileLabel:void 0,inputClassName:"",translatedPlaceholder:void 0,fontWeights:{medium:500},modeIconColors:{"mode-bus":"#007ac9","mode-rail":"#8c4799","mode-tram":"#008151","mode-metro":"#ed8c00","mode-ferry":"#007A97"},required:!1,modeSet:void 0},"production"!==process.env.NODE_ENV&&(Qe.propTypes={appElement:N.default.string.isRequired,autoFocus:N.default.bool,className:N.default.string,icon:N.default.string,id:N.default.string.isRequired,placeholder:N.default.string.isRequired,translatedPlaceholder:N.default.string,value:N.default.string,searchContext:N.default.any.isRequired,ariaLabel:N.default.string,onSelect:N.default.func,transportMode:N.default.string,filterResults:N.default.func,geocodingSize:N.default.number,onClear:N.default.func,storeRef:N.default.func,handleViaPoints:N.default.func,focusChange:N.default.func,lang:N.default.string,sources:N.default.arrayOf(N.default.string),targets:N.default.arrayOf(N.default.string),isMobile:N.default.bool,color:N.default.string,hoverColor:N.default.string,timeZone:N.default.string,pathOpts:N.default.shape({routesPrefix:N.default.string,stopsPrefix:N.default.string}),mobileLabel:N.default.string,lock:N.default.func.isRequired,unlock:N.default.func.isRequired,refPoint:N.default.object,inputClassName:N.default.string,fontWeights:N.default.shape({medium:N.default.number}),modeIconColors:N.default.object,required:N.default.bool,modeSet:N.default.string});var Je,Ze=(Je=Qe,function(e){var c=je.useScrollLock(),n=c.lock,o=c.unlock;return g.default.createElement(Je,Object.assign({lock:n,unlock:o},e))});e.default=Ze,Object.defineProperty(e,"__esModule",{value:!0})}));
33
+ /*! no static exports found */function(c,n){c.exports=e}})},e.exports=n(g.default)})),je=(Fe=Ue)&&Fe.__esModule&&Object.prototype.hasOwnProperty.call(Fe,"default")?Fe.default:Fe;function Ge(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ce(e);if(c){var a=ce(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return ee(this,n)}}Re.locale("en"),W.default.init({fallbackLng:"fi",defaultNS:"translation",interpolation:{escapeValue:!1}});function Ve(e){if("FutureRoute"!==e.type){var c,n=ne(de(e.properties,!0),2),o=n[0],a=n[1];if(e.properties.layer.toLowerCase().includes("bikerental")||e.properties.layer.toLowerCase().includes("bikestation"))return[c=W.default.t("bikerentalstation"),o,void 0,e.properties.labelId];if(e.properties.mode)c=W.default.t(e.properties.mode.toLowerCase().replace("favourite",""));else{var t=e.properties.layer.replace("route-","").toLowerCase().replace("favourite","");c=W.default.t(t)}if(e.properties.id&&("stop"===e.properties.layer||"station"===e.properties.layer)){var i,r=le(e.properties),M=null===(i=e.properties.addendum)||void 0===i?void 0:i.GTFS.modes;return[c,pe(o,r),a,r,M]}if("favouriteStop"===e.properties.layer||"favouriteStation"===e.properties.layer){var s=e.properties,p=s.address,u=s.code;return[c,p?pe(p.split(",")[0],u):o,a,u]}return[c,o,a]}var l=e.properties,d=l.origin,b=l.destination,A=d.locality?", ".concat(d.locality," foobar"):"",z=b.locality?", ".concat(b.locality):"",f=d.name,h=b.name;return[W.default.t("future-route"),"".concat(W.default.t("origin")," ").concat(f).concat(A," ").concat(W.default.t("destination")," ").concat(h).concat(z),e.translatedText]}function Ke(e){var c=Re.unix(e.properties.time),n=e.properties.arriveBy?W.default.t("arrival"):W.default.t("departure");return n=c.isSame(Re(),"day")?"".concat(n," ").concat(W.default.t("today")):c.isSame(Re().add(1,"day"),"day")?"".concat(n," ").concat(W.default.t("tomorrow")):"".concat(n," ").concat(c.format("dd D.M.")),n="".concat(n," ").concat(Re(c).format("HH:mm"))}"production"!==process.env.NODE_ENV&&N.default.node;var Qe=function(e){Z(t,e);var c,n,o,a=Ge(t);function t(e){var c;return K(this,t),(c=a.call(this,e)).componentDidUpdate=function(){W.default.language!==c.props.lang&&W.default.changeLanguage(c.props.lang)},c.UNSAFE_componentWillReceiveProps=function(e){e.value===c.state.value||c.state.editing||c.setState({value:e.value})},c.onChange=function(e,n){var o=n.newValue,a=n.method,t={value:c.fInput||o||""};if(c.fInput=null,c.state.editing){if("enter"!==a||c.state.valid){if(c.state.typingTimer&&clearTimeout(c.state.typingTimer),"type"===a){var i=setTimeout((function(){c.setState({typing:!1})}),1e3);t.typingTimer=i,t.typing=!0}c.setState(t)}}else t.editing=!0,c.setState(t,(function(){return c.fetchFunction({value:o||""})}))},c.onBlur=function(){c.state.editing&&c.input.focus(),c.setState({editing:!1,renderMobileSearch:!1,value:c.props.value})},c.onSelected=function(e,n){if(c.state.valid){if("SelectFromOwnLocations"===n.suggestion.type)return void c.setState({sources:["Favourite","Back"],ownPlaces:!0,pendingSelection:n.suggestion.type,value:""},(function(){c.fetchFunction({value:""})}));if("back"===n.suggestion.type||"FutureRoute"===n.suggestion.type)return void c.setState({sources:c.props.sources,ownPlaces:!1,pendingSelection:n.suggestion.type,suggestionIndex:n.suggestionIndex},(function(){c.fetchFunction({value:""})}));c.setState({editing:!1,value:n.suggestionValue},(function(){c.input.blur(),c.props.handleViaPoints?c.props.handleViaPoints(n.suggestion,n.suggestionIndex):c.props.onSelect(n.suggestion,c.props.id),c.setState({renderMobileSearch:!1,sources:c.props.sources,ownPlaces:!1,suggestions:[]}),c.props.focusChange&&!c.props.isMobile&&c.props.focusChange()}))}else c.setState((function(e){return{pendingSelection:e.value}}),(function(){return c.checkPendingSelection()}))},c.onSuggestionsClearRequested=function(){c.setState({suggestions:[],sources:c.props.sources,ownPlaces:!1,editing:!1})},c.getSuggestionValue=function(e){return"SelectFromOwnLocations"===e.type||"back"===e.type?"":function(e){var c=de(e,!0);switch(e.layer){case"selectFromMap":case"currentPosition":case"ownLocations":case"back":return c[1]||c[0];case"favouriteBikeRentalStation":case"favouritePlace":return c[0];default:return c.length>1&&""!==c[1]?c.join(", "):c[1]||c[0]}}(e.properties)},c.checkPendingSelection=function(){"SelectFromOwnLocations"!==c.state.pendingSelection&&"back"!==c.state.pendingSelection||!c.state.valid?c.state.pendingSelection&&c.state.valid&&c.setState({pendingSelection:null,editing:!1},(function(){c.state.suggestions.length&&(c.input.blur(),c.props.onSelect(c.state.suggestions[c.state.suggestionIndex],c.props.id))})):c.setState({pendingSelection:null,editing:!0},(function(){c.input.focus()}))},c.clearButton=function(){return g.default.createElement("button",{type:"button",className:Pe["clear-input"],onClick:c.clearInput,"aria-label":W.default.t("clear-button-label")},g.default.createElement(x.default,{img:"close",color:c.props.color}))},c.fetchFunction=function(e){var n=e.value,o=e.cleanExecuted;return c.setState({valid:!1,cleanExecuted:o||!1},(function(){var e,o=I.default(c.props.targets)||c.props.targets.includes("Locations");c.state.ownPlaces?(e=["Locations"],(I.default(c.props.targets)||c.props.targets.includes("Stops"))&&e.push("Stops")):I.default(c.props.targets)||(e=V(c.props.targets),o&&!c.props.isMobile&&(I.default(c.props.sources)||c.props.sources.includes("Favourite"))&&e.push("SelectFromOwnLocations")),function(e,c,n,o,a,t,i,r,M,s){r(null),ge(e,c,n,o,a,t,i,r,M,s)}(e,c.state.sources&&c.state.sources.filter((function(e){return!(o&&"Favourite"===e&&!c.state.ownPlaces&&!c.props.isMobile)})),c.props.transportMode,c.props.searchContext,c.props.filterResults,c.props.geocodingSize,{input:n||""},(function(e){if(null!=e){var o=(e.results||[]).filter((function(e){return"FutureRoute"!==e.type||"FutureRoute"===e.type&&e.properties.time>Re().unix()})).map((function(e){if("CurrentLocation"===e.type||"SelectFromMap"===e.type||"SelectFromOwnLocations"===e.type||"back"===e.type){var c=U({},e);return c.properties.labelId=W.default.t(e.properties.labelId),c}return e}));n!==c.state.value&&n!==c.state.pendingSelection&&"SelectFromOwnLocations"!==c.state.pendingSelection&&"back"!==c.state.pendingSelection&&"FutureRoute"!==c.state.pendingSelection||c.setState({valid:!0,suggestions:o},(function(){return c.checkPendingSelection()}))}}),c.props.pathOpts,c.props.refPoint)}))},c.clearInput=function(){var e={editing:!0,value:"",sources:c.props.sources,ownPlaces:!1};c.setState(e,(function(){return c.fetchFunction({value:"",cleanExecuted:!0})})),c.props.onClear&&c.props.onClear(),c.input.focus()},c.inputClicked=function(e){if(c.input.focus(),!c.state.editing){var n={editing:!0,pendingSelection:null},o={editing:!0,pendingSelection:null,value:e};c.state.suggestions.length?(c.fetchFunction({value:c.state.value}),c.setState(n)):"object"!==F(e)&&e?c.setState(o,(function(){return c.fetchFunction({value:e})})):c.setState(n,(function(){return c.fetchFunction({value:c.state.value})}))}},c.storeInputReference=function(e){null!==e&&(c.input=e.input,c.props.storeRef&&c.props.storeRef(e.input))},c.fillInput=function(e){c.fInput=e.properties.name;var n={editing:!0,value:e.properties.name,checkPendingSelection:e,valid:!0};c.setState(n),c.fetchFunction({value:e.properties.name}),c.input.focus()},c.renderItem=function(e){var n="FutureRoute"===e.type?U({},e,{translatedText:Ke(e)}):e,o=Ve(e);return g.default.createElement(P.default,{item:n,content:o,loading:!c.state.valid,isMobile:c.props.isMobile,ariaFavouriteString:W.default.t("favourite"),color:c.props.color,fillInput:c.fillInput,fontWeights:c.props.fontWeights,modeIconColors:c.props.modeIconColors,modeSet:c.props.modeSet})},c.closeMobileSearch=function(){c.props.unlock(),c.setState({renderMobileSearch:!1,value:c.props.value},(function(){window.scrollTo(0,c.state.scrollY),c.onSuggestionsClearRequested()}))},c.keyDown=function(e){var n=e.key;if("Escape"===n&&c.setState({editing:!1}),c.state.editing)return"Enter"===n&&c.fetchFunction({value:c.state.value}),c.inputClicked();if(("Enter"===n||"ArrowDown"===n)&&""===c.state.value)return c.clearInput();if("ArrowDown"===n&&""!==c.state.value){var o={editing:!0,value:c.state.value};c.setState(o,(function(){return c.fetchFunction({value:c.state.value})}))}return c.state.editing||c.setState({editing:!0}),"Tab"===n?c.onBlur():void 0},c.suggestionAsAriaContent=function(){var e=[],n=c.state.suggestions[0];return n&&(n.type&&n.type.includes("Favourite")&&e.push(W.default.t("favourite")),e=e.concat(Ve(c.state.suggestions[0]))),V(new Set(e)).join(" - ")},c.clearOldSearches=function(){var e=c.props.searchContext,n=e.context,o=e.clearOldSearches,a=e.clearFutureRoutes;n&&o&&(o(n),a&&a(n),c.fetchFunction({value:c.state.value}))},c.isOriginDestinationOrViapoint=function(){return"origin"===c.props.id||"destination"===c.props.id||"via-point"===c.props.id||"origin-stop-near-you"===c.props.id},c.onFocus=function(){["Valittu sijainti","Nykyinen sijaintisi","Current position","Selected location","Vald position","Använd min position","Min position","Käytä nykyistä sijaintia","Use current location","Your current location"].includes(c.state.value)&&c.clearInput();var e=window.pageYOffset;return c.props.isMobile&&c.props.lock(),c.setState({renderMobileSearch:c.props.isMobile,scrollY:e})},Re.tz.setDefault(e.timeZone),Re.locale(e.lang),c.state={value:e.value,suggestions:[],editing:!1,valid:!0,renderMobileSearch:!1,sources:e.sources,ownPlaces:!1,typingTimer:null,typing:!1,pendingSelection:null,suggestionIndex:0,cleanExecuted:!1,scrollY:0},Object.keys(we).forEach((function(e){W.default.addResourceBundle(e,"translation",we[e])})),c}return c=t,(n=[{key:"shouldComponentUpdate",value:function(e,c){return!C.default(c,this.state)||!C.default(e,this.props)}},{key:"render",value:function(){var e=this;W.default.language!==this.props.lang&&W.default.changeLanguage(this.props.lang);var c=this.state,n=c.value,o=c.suggestions,a=c.renderMobileSearch,t=c.cleanExecuted,i={placeholder:this.props.translatedPlaceholder?this.props.translatedPlaceholder:W.default.t(this.props.placeholder),value:n,onChange:this.onChange,onBlur:this.props.isMobile?function(){return null}:this.onBlur,className:"".concat(Pe.input," ").concat(this.props.isMobile&&this.props.transportMode?Pe.thin:""," ").concat(Pe[this.props.id]||""," ").concat(this.state.value?Pe.hasValue:""," ").concat(this.props.inputClassName),onKeyDown:this.keyDown,required:this.props.required},r=this.props.id.replace("searchfield-",""),M=this.props.ariaLabel||W.default.t(r);M=M.replace("searchfield-","");var s=this.props.required?"".concat(W.default.t("required"),"."):"",p=W.default.t("search-autosuggest-label"),u=W.default.t("search-autosuggest-len",{count:o.length}),l=W.default.t("search-current-suggestion",{selection:this.suggestionAsAriaContent()});return g.default.createElement(g.default.Fragment,null,g.default.createElement("span",{className:Pe["sr-only"],role:this.state.typing?void 0:"alert","aria-hidden":!this.state.editing},u),g.default.createElement("span",{className:Pe["sr-only"],role:this.state.typing?void 0:"alert","aria-hidden":!this.state.editing||0===o.length},l),this.props.isMobile&&g.default.createElement(Ye,{searchOpen:a,appElement:this.props.appElement,clearOldSearches:this.clearOldSearches,id:this.props.id,clearInput:this.clearInput,value:this.state.value,suggestions:[].concat(V(o),[{type:"clear-search-history",labelId:W.default.t("clear-search-history")}]),inputProps:U({},i,{placeholder:this.isOriginDestinationOrViapoint()?W.default.t("address-place-or-business"):i.placeholder}),fetchFunction:this.fetchFunction,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:this.getSuggestionValue,renderSuggestion:this.renderItem,closeHandle:this.closeMobileSearch,ariaLabel:s.concat(" ").concat(M).concat(" ").concat(p),label:this.props.mobileLabel?this.props.mobileLabel:W.default.t(this.props.id),onSuggestionSelected:this.onSelected,onKeyDown:this.keyDown,dialogHeaderText:W.default.t("delete-old-searches-header"),dialogPrimaryButtonText:W.default.t("delete"),dialogSecondaryButtonText:W.default.t("cancel"),clearInputButtonText:W.default.t("clear-button-label"),focusInput:t,color:this.props.color,hoverColor:this.props.hoverColor,fontWeights:this.props.fontWeights}),!a&&g.default.createElement("div",{className:T.default(Pe["autosuggest-input-container"],Pe[this.props.id]),style:{"--color":"".concat(this.props.color),"--hover-color":"".concat(this.props.hoverColor)}},this.props.icon&&g.default.createElement("div",{className:T.default(Pe["autosuggest-input-icon"],Pe[this.props.id],this.props.inputClassName&&"".concat(this.props.inputClassName,"-input-icon"))},g.default.createElement(x.default,{img:"".concat(this.props.icon)})),g.default.createElement(X.default,{alwaysRenderSuggestions:this.state.editing,id:this.props.id,suggestions:o,onSuggestionsFetchRequested:this.fetchFunction,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:this.getSuggestionValue,renderSuggestion:this.renderItem,inputProps:U({},i,{onFocus:this.onFocus}),focusInputOnSuggestionClick:!0,shouldRenderSuggestions:function(){return e.state.editing},highlightFirstSuggestion:!0,theme:Pe,renderInputComponent:function(c){return g.default.createElement(g.default.Fragment,null,g.default.createElement("input",Object.assign({"aria-label":s.concat(" ").concat(M).concat(" ").concat(p),id:e.props.id,onClick:e.inputClicked,onKeyDown:e.keyDown},c)),e.state.value&&e.clearButton())},onSuggestionSelected:this.onSelected,ref:this.storeInputReference})))}}])&&Q(c.prototype,n),o&&Q(c,o),t}(g.default.Component);Qe.defaultProps={autoFocus:!1,className:"",icon:void 0,value:"",transportMode:void 0,lang:"fi",sources:[],isMobile:!1,color:"#007ac9",hoverColor:"#0062a1",timeZone:"Europe/Helsinki",pathOpts:{routesPrefix:"linjat",stopsPrefix:"pysakit"},mobileLabel:void 0,inputClassName:"",translatedPlaceholder:void 0,fontWeights:{medium:500},modeIconColors:{"mode-bus":"#007ac9","mode-rail":"#8c4799","mode-tram":"#008151","mode-metro":"#ed8c00","mode-ferry":"#007A97"},required:!1,modeSet:void 0},"production"!==process.env.NODE_ENV&&(Qe.propTypes={appElement:N.default.string.isRequired,autoFocus:N.default.bool,className:N.default.string,icon:N.default.string,id:N.default.string.isRequired,placeholder:N.default.string.isRequired,translatedPlaceholder:N.default.string,value:N.default.string,searchContext:N.default.any.isRequired,ariaLabel:N.default.string,onSelect:N.default.func,transportMode:N.default.string,filterResults:N.default.func,geocodingSize:N.default.number,onClear:N.default.func,storeRef:N.default.func,handleViaPoints:N.default.func,focusChange:N.default.func,lang:N.default.string,sources:N.default.arrayOf(N.default.string),targets:N.default.arrayOf(N.default.string),isMobile:N.default.bool,color:N.default.string,hoverColor:N.default.string,timeZone:N.default.string,pathOpts:N.default.shape({routesPrefix:N.default.string,stopsPrefix:N.default.string}),mobileLabel:N.default.string,lock:N.default.func.isRequired,unlock:N.default.func.isRequired,refPoint:N.default.object,inputClassName:N.default.string,fontWeights:N.default.shape({medium:N.default.number}),modeIconColors:N.default.object,required:N.default.bool,modeSet:N.default.string});var Je,Ze=(Je=Qe,function(e){var c=je.useScrollLock(),n=c.lock,o=c.unlock;return g.default.createElement(Je,Object.assign({lock:n,unlock:o},e))});e.default=Ze,Object.defineProperty(e,"__esModule",{value:!0})}));
34
34
  //# sourceMappingURL=index.js.map