mail2-nixos-config/hopglass-frontend/app.js
2024-12-30 13:36:07 +01:00

254 lines
No EOL
712 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
*/
/*
Leaflet, a JavaScript library for mobile-friendly interactive maps. http://leafletjs.com
(c) 2010-2013, Vladimir Agafonkin
(c) 2010-2011, CloudMade
*/
/**
* chroma.js - JavaScript library for color conversions
*
* Copyright (c) 2011-2019, Gregor Aisch
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. The name Gregor Aisch may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* -------------------------------------------------------
*
* chroma.js includes colors from colorbrewer2.org, which are released under
* the following license:
*
* Copyright (c) 2002 Cynthia Brewer, Mark Harrower,
* and The Pennsylvania State University.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*
* ------------------------------------------------------
*
* Named colors are taken from X11 Color Names.
* http://www.w3.org/TR/css3-color/#svg-color
*
* @preserve
*/
/*
Leaflet.label, a plugin that adds labels to markers and vectors for Leaflet powered maps.
(c) 2012-2013, Jacob Toye, Smartrak
https://github.com/Leaflet/Leaflet.label
http://leafletjs.com
https://github.com/jacobtoye
*/
// NLS maps are copyright National library of Scotland.
/*!
* Cross-Browser Split 1.1.1
* Copyright 2007-2012 Steven Levithan <stevenlevithan.com>
* Available under the MIT License
* ECMAScript compliant, uniform cross-browser split method
*/
/*!
* numeral.js
* version : 1.5.3
* author : Adam Draper
* license : MIT
* http://adamwdraper.github.com/Numeral-js/
*/
/*!
* tablesort v3.0.2 (2015-02-25)
* http://tristen.ca/tablesort/demo/
* Copyright (c) 2015 ; Licensed MIT
*/
/*!
* numeral.js language configuration
* language : belgium-dutch (be-nl)
* author : Dieter Luypaert : https://github.com/moeriki
*/
/*!
* numeral.js language configuration
* language : simplified chinese
* author : badplum : https://github.com/badplum
*/
/*!
* numeral.js language configuration
* language : czech (cs)
* author : Anatoli Papirovski : https://github.com/apapirovski
*/
/*!
* numeral.js language configuration
* language : danish denmark (dk)
* author : Michael Storgaard : https://github.com/mstorgaard
*/
/*!
* numeral.js language configuration
* language : German in Switzerland (de-ch)
* author : Michael Piefel : https://github.com/piefel (based on work from Marco Krage : https://github.com/sinky)
*/
/*!
* numeral.js language configuration
* language : German (de) generally useful in Germany, Austria, Luxembourg, Belgium
* author : Marco Krage : https://github.com/sinky
*/
/*!
* numeral.js language configuration
* language : english united kingdom (uk)
* author : Dan Ristic : https://github.com/dristic
*/
/*!
* numeral.js language configuration
* language : spanish Spain
* author : Hernan Garcia : https://github.com/hgarcia
*/
/*!
* numeral.js language configuration
* language : spanish
* author : Hernan Garcia : https://github.com/hgarcia
*/
/*!
* numeral.js language configuration
* language : Estonian
* author : Illimar Tambek : https://github.com/ragulka
*
* Note: in Estonian, abbreviations are always separated
* from numbers with a space
*/
/*!
* numeral.js language configuration
* language : Finnish
* author : Sami Saada : https://github.com/samitheberber
*/
/*!
* numeral.js language configuration
* language : french (Canada) (fr-CA)
* author : Léo Renaud-Allaire : https://github.com/renaudleo
*/
/*!
* numeral.js language configuration
* language : french (fr-ch)
* author : Adam Draper : https://github.com/adamwdraper
*/
/*!
* numeral.js language configuration
* language : french (fr)
* author : Adam Draper : https://github.com/adamwdraper
*/
/*!
* numeral.js language configuration
* language : Hungarian (hu)
* author : Peter Bakondy : https://github.com/pbakondy
*/
/*!
* numeral.js language configuration
* language : italian Italy (it)
* author : Giacomo Trombi : http://cinquepunti.it
*/
/*!
* numeral.js language configuration
* language : japanese
* author : teppeis : https://github.com/teppeis
*/
/*!
* numeral.js language configuration
* language : netherlands-dutch (nl-nl)
* author : Dave Clayton : https://github.com/davedx
*/
/*!
* numeral.js language configuration
* language : polish (pl)
* author : Dominik Bulaj : https://github.com/dominikbulaj
*/
/*!
* numeral.js language configuration
* language : portuguese brazil (pt-br)
* author : Ramiro Varandas Jr : https://github.com/ramirovjr
*/
/*!
* numeral.js language configuration
* language : portuguese (pt-pt)
* author : Diogo Resende : https://github.com/dresende
*/
/*!
* numeral.js language configuration
* language : russian (ru)
* author : Anatoli Papirovski : https://github.com/apapirovski
*/
/*!
* numeral.js language configuration
* language : slovak (sk)
* author : Ahmed Al Hafoudh : http://www.freevision.sk
*/
/*!
* numeral.js language configuration
* language : thai (th)
* author : Sathit Jittanupat : https://github.com/jojosati
*/
/*!
* numeral.js language configuration
* language : turkish (tr)
* author : Ecmel Ercan : https://github.com/ecmel, Erhan Gundogan : https://github.com/erhangundogan, Burak Yiğit Kaya: https://github.com/BYK
*/
(function(){function r(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open("GET",e),r.onload=function(){r.status==200?t(r.response):n(Error(r.statusText))},r.onerror=function(){n(Error("Network Error"))},r.send()})}function i(e){return r(e).then(JSON.parse)}function s(e,t){return t.slice().sort(function(t,n){return t[e]-n[e]}).reverse()}function o(e,t,n){return n.filter(function(n){return n[e].isAfter(t)})}function u(e){return e.reduce(function(e,t){return e+t},0)}function a(){return 1}function f(e){return e===undefined?!0:e}function l(e,t){var n=t.shift();return n in e?t.length==0?e[n]:l(e[n],t):null}function c(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(t){return!1}}function h(e,t){for(key in t){var n=new RegExp(key,"g");e=e.replace(n,t[key])}return e}function p(e){return!e.flags.online}function d(e){return e.flags.online}function v(e){return"location"in e.nodeinfo&&Math.abs(e.nodeinfo.location.latitude)<90&&Math.abs(e.nodeinfo.location.longitude)<180}function m(e,t){var n={};return t.forEach(function(e){n[e.nodeinfo.node_id]=!0}),e.filter(function(e){return!(e.nodeinfo.node_id in n)})}function g(e){if(isNaN(e.distance))return;return numeral(e.distance).format("0,0")+" m"}function y(e){return numeral(1/e.tq).format("0%")}function b(e,t,n){if(n===null||n==undefined)return;var r=document.createElement("tr"),i=document.createElement("th");typeof t=="string"?i.textContent=t:(i.appendChild(t),r.className="routerpic"),r.appendChild(i);var s=document.createElement("td");return typeof n=="function"?n(s):s.appendChild(document.createTextNode(n)),r.appendChild(s),e.appendChild(r),s}function w(e,t,n){return el=document.createElement("iframe"),t=typeof t!="undefined"?t:"100%",n=typeof n!="undefined"?n:"350px",e.src?el.src=e.src:el.src=e,e.frameBorder?el.frameBorder=e.frameBorder:el.frameBorder=1,e.width?el.width=e.width:el.width=t,e.height?el.height=e.height:el.height=n,el.scrolling="no",el.seamless="seamless",el}function E(e,t){var n,r;t=typeof t!="undefined"?t:{},e.thumbnail&&(n=document.createElement("img"),n.src=h(e.thumbnail,t)),e.caption&&(r=h(e.caption,t),n||(n=document.createTextNode(r))),e.iframe&&(n=w(e.iframe,e.width,e.height),e.iframe.src?n.src=h(e.iframe.src,t):n.src=h(e.iframe,t));var i=document.createElement("p");if(e.href){var s=document.createElement("a");s.target="_blank",s.href=h(e.href,t),s.appendChild(n),r&&e.thumbnail&&(s.title=r),i.appendChild(s)}else i.appendChild(n);return i}function S(e){if(!e.clients)return[];var t=Math.max(e.clients.total-e.clients.wifi,0),n=Math.max(e.clients.wifi-e.clients.wifi24-e.clients.wifi5,0),r=e.clients.wifi24,i=e.clients.wifi5;return[{count:t,label:"Kabel",color:"#E3A619"},{count:n,label:"Sonstige Wifi",color:"#D10E2A"},{count:r,label:"2.4GHz",color:"#DC0067"},{count:i,label:"5GHz",color:"#0A9C92"}]}function x(e,t){var n=S(e),r=n.map(function(e){return e.count}).reduce(function(e,t){return e+t},0),i;for(var s=0;s<n.length;s++)t<r&&(i=n[s].color),r-=n[s].count;return i}var e,t,n;(function(r){function v(e,t){return h.call(e,t)}function m(e,t){var n,r,i,s,o,u,a,f,c,h,p,v,m=t&&t.split("/"),g=l.map,y=g&&g["*"]||{};if(e){e=e.split("/"),o=e.length-1,l.nodeIdCompat&&d.test(e[o])&&(e[o]=e[o].replace(d,"")),e[0].charAt(0)==="."&&m&&(v=m.slice(0,m.length-1),e=v.concat(e));for(c=0;c<e.length;c++){p=e[c];if(p===".")e.splice(c,1),c-=1;else if(p===".."){if(c===0||c===1&&e[2]===".."||e[c-1]==="..")continue;c>0&&(e.splice(c-1,2),c-=2)}}e=e.join("/")}if((m||y)&&g){n=e.split("/");for(c=n.length;c>0;c-=1){r=n.slice(0,c).join("/");if(m)for(h=m.length;h>0;h-=1){i=g[m.slice(0,h).join("/")];if(i){i=i[r];if(i){s=i,u=c;break}}}if(s)break;!a&&y&&y[r]&&(a=y[r],f=c)}!s&&a&&(s=a,u=f),s&&(n.splice(0,u,s),e=n.join("/"))}return e}function g(e,t){return function(){var n=p.call(arguments,0);return typeof n[0]!="string"&&n.length===1&&n.push(null),s.apply(r,n.concat([e,t]))}}function y(e){return function(t){return m(t,e)}}function b(e){return function(t){a[e]=t}}function w(e){if(v(f,e)){var t=f[e];delete f[e],c[e]=!0,i.apply(r,t)}if(!v(a,e)&&!v(c,e))throw new Error("No "+e);return a[e]}function E(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?E(e):[]}function x(e){return function(){return l&&l.config&&l.config[e]||{}}}var i,s,o,u,a={},f={},l={},c={},h=Object.prototype.hasOwnProperty,p=[].slice,d=/\.js$/;o=function(e,t){var n,r=E(e),i=r[0],s=t[1];return e=r[1],i&&(i=m(i,s),n=w(i)),i?n&&n.normalize?e=n.normalize(e,y(s)):e=m(e,s):(e=m(e,s),r=E(e),i=r[0],e=r[1],i&&(n=w(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},u={require:function(e){return g(e)},exports:function(e){var t=a[e];return typeof t!="undefined"?t:a[e]={}},module:function(e){return{id:e,uri:"",exports:a[e],config:x(e)}}},i=function(e,t,n,i){var s,l,h,p,d,m,y=[],E=typeof n,x;i=i||e,m=S(i);if(E==="undefined"||E==="function"){t=!t.length&&n.length?["require","exports","module"]:t;for(d=0;d<t.length;d+=1){p=o(t[d],m),l=p.f;if(l==="require")y[d]=u.require(e);else if(l==="exports")y[d]=u.exports(e),x=!0;else if(l==="module")s=y[d]=u.module(e);else if(v(a,l)||v(f,l)||v(c,l))y[d]=w(l);else{if(!p.p)throw new Error(e+" missing "+l);p.p.load(p.n,g(i,!0),b(l),{}),y[d]=a[l]}}h=n?n.apply(a[e],y):undefined;if(e)if(s&&s.exports!==r&&s.exports!==a[e])a[e]=s.exports;else if(h!==r||!x)a[e]=h}else e&&(a[e]=n)},e=t=s=function(e,t,n,a,f){if(typeof e=="string")return u[e]?u[e](t):w(o(e,S(t)).f);if(!e.splice){l=e,l.deps&&s(l.deps,l.callback);if(!t)return;t.splice?(e=t,t=n,n=null):e=r}return t=t||function(){},typeof n=="function"&&(n=a,a=f),a?i(r,e,t,n):setTimeout(function(){i(r,e,t,n)},4),s},s.config=function(e){return s(e)},e._defined=a,n=function(e,t,n){if(typeof e!="string")throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),!v(a,e)&&!v(f,e)&&(f[e]=[e,t,n])},n.amd={jQuery:!0}})(),n("../node_modules/almond/almond",function(){}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof n&&n.amd?n("moment",t):e.moment=t()}(this,function(){"use strict";function r(){return e.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return An(e,t,n,r,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function d(e){if(null==e._isValid){var t=p(e),r=n.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=h(NaN);return null!=e?c(p(t),e):p(t).userInvalidated=!0,t}function g(e,t){var n,r,i;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=p(t)),o(t._locale)||(e._locale=t._locale),0<m.length)for(n=0;n<m.length;n++)o(i=t[r=m[n]])||(e[r]=i);return e}function b(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function w(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=E(t)),n}function x(e,t,n){var r,i=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),o=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&S(e[r])!==S(t[r]))&&o++;return o+s}function T(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function N(e,t){var n=!0;return c(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){for(var i,s=[],o=0;o<arguments.length;o++){if(i="","object"==typeof arguments[o]){for(var u in i+="\n["+o+"] ",arguments[0])i+=u+": "+arguments[0][u]+", ";i=i.slice(0,-2)}else i=arguments[o];s.push(i)}T(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}function L(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),k[e]||(T(t),k[e]=!0)}function A(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e,t){var n,r=c({},e);for(n in t)l(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},c(r[n],e[n]),c(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&s(e[n])&&(r[n]=c({},r[n]));return r}function M(e){null!=e&&this.set(e)}function D(e,t){var n=e.toLowerCase();_[n]=_[n+"s"]=_[t]=e}function P(e){return"string"==typeof e?_[e]||_[e.toLowerCase()]:void 0}function H(e){var t,n,r={};for(n in e)l(e,n)&&(t=P(n))&&(r[t]=e[n]);return r}function j(e,t){B[e]=t}function F(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function z(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(U[e]=i),t&&(U[t[0]]=function(){return F(i.apply(this,arguments),t[1],t[2])}),n&&(U[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function W(e,t){return e.isValid()?(t=X(t,e.localeData()),R[t]=R[t]||function(e){var t,n,r,i=e.match(I);for(t=0,n=i.length;t<n;t++)U[i[t]]?i[t]=U[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,s="";for(r=0;r<n;r++)s+=A(i[r])?i[r].call(t,e):i[r];return s}}(t),R[t](e)):e.localeData().invalidDate()}function X(e,t){function r(e){return t.longDateFormat(e)||e}var n=5;for(q.lastIndex=0;0<=n&&q.test(e);)e=e.replace(q,r),q.lastIndex=0,n-=1;return e}function ft(e,t,n){at[e]=A(t)?t:function(e,r){return e&&n?n:t}}function lt(e,t){return l(at,e)?at[e](t._strict,t._locale):new RegExp(ct(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function ct(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function pt(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=S(e)}),n=0;n<e.length;n++)ht[e[n]]=r}function dt(e,t){pt(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function Tt(e){return Nt(e)?366:365}function Nt(e){return e%4==0&&e%100!=0||e%400==0}function Lt(e,t){return function(n){return null!=n?(Ot(this,e,n),r.updateOffset(this,t),this):At(this,e)}}function At(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ot(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Nt(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Mt(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Mt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Nt(e)?29:28:31-r%7%2}function Ht(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=S(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Mt(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Bt(e){return null!=e?(Ht(this,e),r.updateOffset(this,!0),this):At(this,"Month")}function It(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],s=[];for(t=0;t<12;t++)n=h([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),s.sort(e),t=0;t<12;t++)r[t]=ct(r[t]),i[t]=ct(i[t]);for(t=0;t<24;t++)s[t]=ct(s[t]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function qt(e){var t;if(e<100&&0<=e){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Rt(e,t,n){var r=7+t-n;return-((7+qt(e,0,r).getUTCDay()-t)%7)+r-1}function Ut(e,t,n,r,i){var s,o,u=1+7*(t-1)+(7+n-r)%7+Rt(e,r,i);return o=u<=0?Tt(s=e-1)+u:u>Tt(e)?(s=e+1,u-Tt(e)):(s=e,u),{year:s,dayOfYear:o}}function zt(e,t,n){var r,i,s=Rt(e.year(),t,n),o=Math.floor((e.dayOfYear()-s-1)/7)+1;return o<1?r=o+Wt(i=e.year()-1,t,n):o>Wt(e.year(),t,n)?(r=o-Wt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Wt(e,t,n){var r=Rt(e,t,n),i=Rt(e+1,t,n);return(Tt(e)-r+i)/7}function Xt(e,t){return e.slice(t,7).concat(e.slice(0,t))}function Yt(){function e(e,t){return t.length-e.length}var t,n,r,i,s,o=[],u=[],a=[],f=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),s=this.weekdays(n,""),o.push(r),u.push(i),a.push(s),f.push(r),f.push(i),f.push(s);for(o.sort(e),u.sort(e),a.sort(e),f.sort(e),t=0;t<7;t++)u[t]=ct(u[t]),a[t]=ct(a[t]),f[t]=ct(f[t]);this._weekdaysRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Zt(){return this.hours()%12||12}function en(e,t){z(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tn(e,t){return t._meridiemParse}function an(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){var n=null;if(!on[e]&&"undefined"!=typeof module&&module&&module.exports)try{n=nn._abbr,t("./locale/"+e),ln(n)}catch(e){}return on[e]}function ln(e,t){var n;return e&&((n=o(t)?hn(e):cn(e,t))?nn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nn._abbr}function cn(e,t){if(null===t)return delete on[e],null;var n,r=sn;if(t.abbr=e,null!=on[e])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=on[e]._config;else if(null!=t.parentLocale)if(null!=on[t.parentLocale])r=on[t.parentLocale]._config;else{if(null==(n=fn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return on[e]=new M(O(r,t)),un[e]&&un[e].forEach(function(e){cn(e.name,e.config)}),ln(e),on[e]}function hn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return nn;if(!i(e)){if(t=fn(e))return t;e=[e]}return function(e){for(var t,n,r,i,s=0;s<e.length;){for(t=(i=an(e[s]).split("-")).length,n=(n=an(e[s+1]))?n.split("-"):null;0<t;){if(r=fn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&x(i,n,!0)>=t-1)break;t--}s++}return nn}(e)}function pn(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[mt]<0||11<n[mt]?mt:n[gt]<1||n[gt]>Mt(n[vt],n[mt])?gt:n[yt]<0||24<n[yt]||24===n[yt]&&(0!==n[bt]||0!==n[wt]||0!==n[Et])?yt:n[bt]<0||59<n[bt]?bt:n[wt]<0||59<n[wt]?wt:n[Et]<0||999<n[Et]?Et:-1,p(e)._overflowDayOfYear&&(t<vt||gt<t)&&(t=gt),p(e)._overflowWeeks&&-1===t&&(t=St),p(e)._overflowWeekday&&-1===t&&(t=xt),p(e).overflow=t),e}function dn(e,t,n){return null!=e?e:null!=t?t:n}function vn(e){var t,n,i,s,o,u=[];if(!e._d){var a,f;for(a=e,f=new Date(r.now()),i=a._useUTC?[f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()]:[f.getFullYear(),f.getMonth(),f.getDate()],e._w&&null==e._a[gt]&&null==e._a[mt]&&function(e){var t,n,r,i,s,o,u,a;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)s=1,o=4,n=dn(t.GG,e._a[vt],zt(On(),1,4).year),r=dn(t.W,1),((i=dn(t.E,1))<1||7<i)&&(a=!0);else{s=e._locale._week.dow,o=e._locale._week.doy;var f=zt(On(),s,o);n=dn(t.gg,e._a[vt],f.year),r=dn(t.w,f.week),null!=t.d?((i=t.d)<0||6<i)&&(a=!0):null!=t.e?(i=t.e+s,(t.e<0||6<t.e)&&(a=!0)):i=s}r<1||r>Wt(n,s,o)?p(e)._overflowWeeks=!0:null!=a?p(e)._overflowWeekday=!0:(u=Ut(n,r,i,s,o),e._a[vt]=u.year,e._dayOfYear=u.dayOfYear)}(e),null!=e._dayOfYear&&(o=dn(e._a[vt],i[vt]),(e._dayOfYear>Tt(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=qt(o,0,e._dayOfYear),e._a[mt]=n.getUTCMonth(),e._a[gt]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=u[t]=i[t];for(;t<7;t++)e._a[t]=u[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[yt]&&0===e._a[bt]&&0===e._a[wt]&&0===e._a[Et]&&(e._nextDay=!0,e._a[yt]=0),e._d=(e._useUTC?qt:function(e,t,n,r,i,s,o){var u;return e<100&&0<=e?(u=new Date(e+400,t,n,r,i,s,o),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,n,r,i,s,o),u}).apply(null,u),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[yt]=24),e._w&&void 0!==e._w.d&&e._w.d!==s&&(p(e).weekdayMismatch=!0)}}function Sn(e){var t,n,r,i,s,o,u=e._i,a=mn.exec(u)||gn.exec(u);if(a){for(p(e).iso=!0,t=0,n=bn.length;t<n;t++)if(bn[t][1].exec(a[1])){i=bn[t][0],r=!1!==bn[t][2];break}if(null==i)return void (e._isValid=!1);if(a[3]){for(t=0,n=wn.length;t<n;t++)if(wn[t][1].exec(a[3])){s=(a[2]||" ")+wn[t][0];break}if(null==s)return void (e._isValid=!1)}if(!r&&null!=s)return void (e._isValid=!1);if(a[4]){if(!yn.exec(a[4]))return void (e._isValid=!1);o="Z"}e._f=i+(s||"")+(o||""),kn(e)}else e._isValid=!1}function Tn(e,t,n,r,i,s){var o=[function(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}(e),Pt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&o.push(parseInt(s,10)),o}function Cn(e){var t,n,r,i=xn.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(i){var s=Tn(i[4],i[3],i[2],i[5],i[6],i[7]);if(t=i[1],n=s,r=e,!(!t||$t.indexOf(t)===(new Date(n[0],n[1],n[2])).getDay()||(p(r).weekdayMismatch=!0,r._isValid=!1)))return;e._a=s,e._tzm=function(e,t,n){if(e)return Nn[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(i[8],i[9],i[10]),e._d=qt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function kn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],p(e).empty=!0;var t,n,i,s,o,u,a,f,c=""+e._i,h=c.length,d=0;for(i=X(e._f,e._locale).match(I)||[],t=0;t<i.length;t++)s=i[t],(n=(c.match(lt(s,e))||[])[0])&&(0<(o=c.substr(0,c.indexOf(n))).length&&p(e).unusedInput.push(o),c=c.slice(c.indexOf(n)+n.length),d+=n.length),U[s]?(n?p(e).empty=!1:p(e).unusedTokens.push(s),u=s,f=e,null!=(a=n)&&l(ht,u)&&ht[u](a,f._a,f,u)):e._strict&&!n&&p(e).unusedTokens.push(s);p(e).charsLeftOver=h-d,0<c.length&&p(e).unusedInput.push(c),e._a[yt]<=12&&!0===p(e).bigHour&&0<e._a[yt]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[yt]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0)),t)}(e._locale,e._a[yt],e._meridiem),vn(e),pn(e)}else Cn(e);else Sn(e)}function Ln(e){var t,n,l,h,m=e._i,y=e._f;return e._locale=e._locale||hn(e._l),null===m||void 0===y&&""===m?v({nullInput:!0}):("string"==typeof m&&(e._i=m=e._locale.preparse(m)),w(m)?new b(pn(m)):(a(m)?e._d=m:i(y)?function(e){var t,n,r,i,s;if(0===e._f.length)return p(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)s=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],kn(t),d(t)&&(s+=p(t).charsLeftOver,s+=10*p(t).unusedTokens.length,p(t).score=s,(null==r||s<r)&&(r=s,n=t));c(e,n||t)}(e):y?kn(e):o(n=(t=e)._i)?t._d=new Date(r.now()):a(n)?t._d=new Date(n.valueOf()):"string"==typeof n?(l=t,null===(h=En.exec(l._i))?(Sn(l),!1===l._isValid&&(delete l._isValid,Cn(l),!1===l._isValid&&(delete l._isValid,r.createFromInputFallback(l)))):l._d=new Date(+h[1])):i(n)?(t._a=f(n.slice(0),function(e){return parseInt(e,10)}),vn(t)):s(n)?function(e){if(!e._d){var t=H(e._i);e._a=f([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),vn(e)}}(t):u(n)?t._d=new Date(n):r.createFromInputFallback(t),d(e)||(e._d=null),e))}function An(e,t,n,r,o){var u,a={};return!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||i(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=n,a._i=e,a._f=t,a._strict=r,(u=new b(pn(Ln(a))))._nextDay&&(u.add(1,"d"),u._nextDay=void 0),u}function On(e,t,n,r){return An(e,t,n,r,!1)}function Dn(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return On();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Hn(e){var t=H(e),n=t.year||0,r=t.quarter||0,i=t.month||0,s=t.week||t.isoWeek||0,o=t.day||0,u=t.hour||0,a=t.minute||0,f=t.second||0,l=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Ct.call(Pn,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Pn.length;++r)if(e[Pn[r]]){if(n)return!1;parseFloat(e[Pn[r]])!==S(e[Pn[r]])&&(n=!0)}return!0}(t),this._milliseconds=+l+1e3*f+6e4*a+1e3*u*60*60,this._days=+o+7*s,this._months=+i+3*r+12*n,this._data={},this._locale=hn(),this._bubble()}function Bn(e){return e instanceof Hn}function jn(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Fn(e,t){z(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+F(~~(e/60),2)+t+F(~~e%60,2)})}function qn(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(In)||["-",0,0],i=60*r[1]+S(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Rn(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(w(e)||a(e)?e.valueOf():On(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):On(e).local()}function Un(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function zn(){return!!this.isValid()&&this._isUTC&&0===this._offset}function Vn(e,t){var n,r,i,s=e,o=null;return Bn(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:u(e)?(s={},t?s[t]=e:s.milliseconds=e):(o=Wn.exec(e))?(n="-"===o[1]?-1:1,s={y:0,d:S(o[gt])*n,h:S(o[yt])*n,m:S(o[bt])*n,s:S(o[wt])*n,ms:S(jn(1e3*o[Et]))*n}):(o=Xn.exec(e))?(n="-"===o[1]?-1:1,s={y:$n(o[2],n),M:$n(o[3],n),w:$n(o[4],n),d:$n(o[5],n),h:$n(o[6],n),m:$n(o[7],n),s:$n(o[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(i=function(e,t){var n;return!e.isValid()||!t.isValid()?{milliseconds:0,months:0}:(t=Rn(t,e),e.isBefore(t)?n=Jn(e,t):((n=Jn(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n)}(On(s.from),On(s.to)),(s={}).ms=i.milliseconds,s.M=i.months),r=new Hn(s),Bn(e)&&l(e,"_locale")&&(r._locale=e._locale),r}function $n(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Jn(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t- +e.clone().add(n.months,"M"),n}function Kn(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(L(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Qn(this,Vn(n="string"==typeof n?+n:n,r),e),this}}function Qn(e,t,n,i){var s=t._milliseconds,o=jn(t._days),u=jn(t._months);e.isValid()&&(i=null==i||i,u&&Ht(e,At(e,"Month")+u*n),o&&Ot(e,"Date",At(e,"Date")+o*n),s&&e._d.setTime(e._d.valueOf()+s*n),i&&r.updateOffset(e,o||u))}function Zn(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function er(e){var t;return void 0===e?this._locale._abbr:(null!=(t=hn(e))&&(this._locale=t),this)}function nr(){return this._locale}function ir(e,t){return(e%t+t)%t}function sr(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-rr:(new Date(e,t,n)).valueOf()}function or(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-rr:Date.UTC(e,t,n)}function ur(e,t){z(0,[e,e.length],0,t)}function ar(e,t,n,r,i){var s;return null==e?zt(this,r,i).year:((s=Wt(e,r,i))<t&&(t=s),function(e,t,n,r,i){var s=Ut(e,t,n,r,i),o=qt(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,e,t,n,r,i))}function pr(e,t){t[Et]=S(1e3*("0."+e))}function mr(e){return e}function yr(e,t,n,r){var i=hn(),s=h().set(r,t);return i[n](s,e)}function br(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return yr(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=yr(e,r,n,"month");return i}function wr(e,t,n,r){t=("boolean"==typeof e?u(t)&&(n=t,t=void 0):(t=e,e=!1,u(n=t)&&(n=t,t=void 0)),t||"");var i,s=hn(),o=e?s._week.dow:0;if(null!=n)return yr(t,(n+o)%7,r,"day");var a=[];for(i=0;i<7;i++)a[i]=yr(t,(i+o)%7,r,"day");return a}function Sr(e,t,n,r){var i=Vn(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function xr(e){return e<0?Math.floor(e):Math.ceil(e)}function Tr(e){return 4800*e/146097}function Nr(e){return 146097*e/4800}function Cr(e){return function(){return this.as(e)}}function Br(e){return function(){return this.isValid()?this._data[e]:NaN}}function $r(e){return(0<e)-(e<0)||+e}function Jr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Vr(this._milliseconds)/1e3,r=Vr(this._days),i=Vr(this._months);t=E((e=E(n/60))/60),n%=60,e%=60;var s=E(i/12),o=i%=12,u=r,a=t,f=e,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var h=c<0?"-":"",p=$r(this._months)!==$r(c)?"-":"",d=$r(this._days)!==$r(c)?"-":"",v=$r(this._milliseconds)!==$r(c)?"-":"";return h+"P"+(s?p+s+"Y":"")+(o?p+o+"M":"")+(u?d+u+"D":"")+(a||f||l?"T":"")+(a?v+a+"H":"")+(f?v+f+"M":"")+(l?v+l+"S":"")}function li(e,t,n){var r,i;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:есяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?i[0]:2<=r%10&&r%10<=4&&(r%100<10||20<=r%100)?i[1]:i[2])}function vi(e,t,n){var r,i,s;return e+" "+(r={mm:"munutenn",MM:"miz",dd:"devezh"}[n],2!==e?r:void 0!==(s={m:"v",b:"v",d:"z"})[(i=r).charAt(0)]?s[i.charAt(0)]+i.substring(1):i)}function mi(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}function Ei(e){return 1<e&&e<5&&1!=~~(e/10)}function Si(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(Ei(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(Ei(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(Ei(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(Ei(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(Ei(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(Ei(e)?"roky":"let"):i+"lety"}}function xi(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}function Ti(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}function Ni(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}function qi(e,t,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}function Xi(e,t,n,r){var i,s,o="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":return r?"sekunnin":"sekuntia";case"m":return r?"minuutin":"minuutti";case"mm":o=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":o=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":o=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":o=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":o=r?"vuoden":"vuotta"}return s=r,o=((i=e)<10?s?Wi[i]:zi[i]:i)+" "+o}function Ji(e,t,n,r){var i={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?i[n][0]:i[n][1]}function Zi(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}function ts(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function ns(e){return(e?"":"[múlt] ")+"["+es[this.day()]+"] LT[-kor]"}function rs(e){return e%100==11||e%10!=1}function is(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return rs(e)?i+(t||r?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return t?"mínúta":"mínútu";case"mm":return rs(e)?i+(t||r?"mínútur":"mínútum"):t?i+"mínúta":i+"mínútu";case"hh":return rs(e)?i+(t||r?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return t?"dagur":r?"dag":"degi";case"dd":return rs(e)?t?i+"dagar":i+(r?"daga":"dögum"):t?i+"dagur":i+(r?"dag":"degi");case"M":return t?"mánuður":r?"mánuð":"mánuði";case"MM":return rs(e)?t?i+"mánuðir":i+(r?"mánuði":"mánuðum"):t?i+"mánuður":i+(r?"mánuð":"mánuði");case"y":return t||r?"ár":"ári";case"yy":return rs(e)?i+(t||r?"ár":"árum"):i+(t||r?"ár":"ári")}}function ds(e,t,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function vs(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return vs(0===t?e/10:t)}if(e<1e4){for(;10<=e;)e/=10;return vs(e)}return vs(e/=1e3)}function gs(e,t,n,r){return t?bs(n)[0]:r?bs(n)[1]:bs(n)[2]}function ys(e){return e%10==0||10<e&&e<20}function bs(e){return ms[e].split("_")}function ws(e,t,n,r){var i=e+" ";return 1===e?i+gs(0,t,n[0],r):t?i+(ys(e)?bs(n)[1]:bs(n)[0]):r?i+bs(n)[1]:i+(ys(e)?bs(n)[1]:bs(n)[2])}function Ss(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function xs(e,t,n){return e+" "+Ss(Es[n],e,t)}function Ts(e,t,n){return Ss(Es[n],e,t)}function Cs(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}function As(e,t,n,r){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}function Vs(e){return e%10<5&&1<e%10&&~~(e/10)%10!=1}function $s(e,t,n){var r=e+" ";switch(n){case"ss":return r+(Vs(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(Vs(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(Vs(e)?"godziny":"godzin");case"MM":return r+(Vs(e)?"miesiące":"miesięcy");case"yy":return r+(Vs(e)?"lata":"lat")}}function Js(e,t,n){var r=" ";return(20<=e%100||100<=e&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}function Ks(e,t,n){var r,i;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:асасаасов",dd:ень_дня_дней",MM:есяц_месяцаесяцев",yy:"год_годает"}[n].split("_"),r%10==1&&r%100!=11?i[0]:2<=r%10&&r%10<=4&&(r%100<10||20<=r%100)?i[1]:i[2])}function to(e){return 1<e&&e<5}function no(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?i+(to(e)?"sekundy":"sekúnd"):i+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?i+(to(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(to(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?i+(to(e)?"dni":"dní"):i+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?i+(to(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?i+(to(e)?"roky":"rokov"):i+"rokmi"}}function ro(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return i+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return i+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}function lo(e,t,n,r){var i=function(e){var t=Math.floor(e%1e3/100),n=Math.floor(e%100/10),r=e%10,i="";return 0<t&&(i+=fo[t]+"vatlh"),0<n&&(i+=(""!==i?" ":"")+fo[n]+"maH"),0<r&&(i+=(""!==i?" ":"")+fo[r]),""===i?"pagh":i}(e);switch(n){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}function ho(e,t,n,r){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r?i[n][0]:t?i[n][0]:i[n][1]}function po(e,t,n){var r,i;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:ень_дні_днів",MM:ісяць_місяціісяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?i[0]:2<=r%10&&r%10<=4&&(r%100<10||20<=r%100)?i[1]:i[2])}function vo(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var e,n;n=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var m=r.momentProperties=[],y=!1,C,k={};r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var _={},B={},I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},U={},V=/\d/,$=/\d\d/,J=/\d{3}/,K=/\d{4}/,Q=/[+-]?\d{6}/,G=/\d\d?/,Y=/\d\d\d\d?/,Z=/\d\d\d\d\d\d?/,et=/\d{1,3}/,tt=/\d{1,4}/,nt=/[+-]?\d{1,6}/,rt=/\d+/,it=/[+-]?\d+/,st=/Z|[+-]\d\d:?\d\d/gi,ot=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[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,at={},ht={},vt=0,mt=1,gt=2,yt=3,bt=4,wt=5,Et=6,St=7,xt=8;z("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),D("year","y"),j("year",1),ft("Y",it),ft("YY",G,$),ft("YYYY",tt,K),ft("YYYYY",nt,Q),ft("YYYYYY",nt,Q),pt(["YYYYY","YYYYYY"],vt),pt("YYYY",function(e,t){t[vt]=2===e.length?r.parseTwoDigitYear(e):S(e)}),pt("YY",function(e,t){t[vt]=r.parseTwoDigitYear(e)}),pt("Y",function(e,t){t[vt]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return S(e)+(68<S(e)?1900:2e3)};var Ct,kt=Lt("FullYear",!0);Ct=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),z("MMMM",0,0,function(e){return this.localeData().months(this,e)}),D("month","M"),j("month",8),ft("M",G),ft("MM",G,$),ft("MMM",function(e,t){return t.monthsShortRegex(e)}),ft("MMMM",function(e,t){return t.monthsRegex(e)}),pt(["M","MM"],function(e,t){t[mt]=S(e)-1}),pt(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[mt]=i:p(n).invalidMonth=e});var _t=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Dt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),jt=ut,Ft=ut;z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),j("week",5),j("isoWeek",5),ft("w",G),ft("ww",G,$),ft("W",G),ft("WW",G,$),dt(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=S(e)}),z("d",0,"do","day"),z("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),z("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),z("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),ft("d",G),ft("e",G),ft("E",G),ft("dd",function(e,t){return t.weekdaysMinRegex(e)}),ft("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ft("dddd",function(e,t){return t.weekdaysRegex(e)}),dt(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e}),dt(["d","e","E"],function(e,t,n,r){t[r]=S(e)});var Vt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Kt=ut,Qt=ut,Gt=ut;z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Zt),z("k",["kk",2],0,function(){return this.hours()||24}),z("hmm",0,0,function(){return""+Zt.apply(this)+F(this.minutes(),2)}),z("hmmss",0,0,function(){return""+Zt.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),en("a",!0),en("A",!1),D("hour","h"),j("hour",13),ft("a",tn),ft("A",tn),ft("H",G),ft("h",G),ft("k",G),ft("HH",G,$),ft("hh",G,$),ft("kk",G,$),ft("hmm",Y),ft("hmmss",Z),ft("Hmm",Y),ft("Hmmss",Z),pt(["H","HH"],yt),pt(["k","kk"],function(e,t,n){var r=S(e);t[yt]=24===r?0:r}),pt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pt(["h","hh"],function(e,t,n){t[yt]=S(e),p(n).bigHour=!0}),pt("hmm",function(e,t,n){var r=e.length-2;t[yt]=S(e.substr(0,r)),t[bt]=S(e.substr(r)),p(n).bigHour=!0}),pt("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[yt]=S(e.substr(0,r)),t[bt]=S(e.substr(r,2)),t[wt]=S(e.substr(i)),p(n).bigHour=!0}),pt("Hmm",function(e,t,n){var r=e.length-2;t[yt]=S(e.substr(0,r)),t[bt]=S(e.substr(r))}),pt("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[yt]=S(e.substr(0,r)),t[bt]=S(e.substr(r,2)),t[wt]=S(e.substr(i))});var nn,rn=Lt("Hours",!0),sn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Dt,monthsShort:Pt,week:{dow:0,doy:6},weekdays:Vt,weekdaysMin:Jt,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},on={},un={},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)?)?$/,gn=/^\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)?)?$/,yn=/Z|[+-]\d\d(?::?\d\d)?/,bn=[["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}/]],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/]],En=/^\/?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}))$/,Nn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};r.createFromInputFallback=N("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var Mn=N("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=On.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),_n=N("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=On.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:v()}),Pn=["year","quarter","month","week","day","hour","minute","second","millisecond"];Fn("Z",":"),Fn("ZZ",""),ft("Z",ot),ft("ZZ",ot),pt(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=qn(ot,e)});var In=/([\+\-]|\d\d)/gi;r.updateOffset=function(){};var Wn=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Xn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Vn.fn=Hn.prototype,Vn.invalid=function(){return Vn(NaN)};var Gn=Kn(1,"add"),Yn=Kn(-1,"subtract");r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tr=N("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)}),rr=126227808e5;z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ur("gggg","weekYear"),ur("ggggg","weekYear"),ur("GGGG","isoWeekYear"),ur("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),ft("G",it),ft("g",it),ft("GG",G,$),ft("gg",G,$),ft("GGGG",tt,K),ft("gggg",tt,K),ft("GGGGG",nt,Q),ft("ggggg",nt,Q),dt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=S(e)}),dt(["gg","GG"],function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)}),z("Q",0,"Qo","quarter"),D("quarter","Q"),j("quarter",7),ft("Q",V),pt("Q",function(e,t){t[mt]=3*(S(e)-1)}),z("D",["DD",2],"Do","date"),D("date","D"),j("date",9),ft("D",G),ft("DD",G,$),ft("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pt(["D","DD"],gt),pt("Do",function(e,t){t[gt]=S(e.match(G)[0])});var fr=Lt("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),j("dayOfYear",4),ft("DDD",et),ft("DDDD",J),pt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=S(e)}),z("m",["mm",2],0,"minute"),D("minute","m"),j("minute",14),ft("m",G),ft("mm",G,$),pt(["m","mm"],bt);var lr=Lt("Minutes",!1);z("s",["ss",2],0,"second"),D("second","s"),j("second",15),ft("s",G),ft("ss",G,$),pt(["s","ss"],wt);var cr,hr=Lt("Seconds",!1);for(z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),D("millisecond","ms"),j("millisecond",16),ft("S",et,V),ft("SS",et,$),ft("SSS",et,J),cr="SSSS";cr.length<=9;cr+="S")ft(cr,rt);for(cr="S";cr.length<=9;cr+="S")pt(cr,pr);var dr=Lt("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var vr=b.prototype;vr.add=Gn,vr.calendar=function(e,t){var n=e||On(),i=Rn(n,this).startOf("day"),s=r.calendarFormat(this,i)||"sameElse",o=t&&(A(t[s])?t[s].call(this,n):t[s]);return this.format(o||this.localeData().calendar(s,this,On(n)))},vr.clone=function(){return new b(this)},vr.diff=function(e,t,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=Rn(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=P(t)){case"year":s=Zn(this,r)/12;break;case"month":s=Zn(this,r);break;case"quarter":s=Zn(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:E(s)},vr.endOf=function(e){var t;if(void 0===(e=P(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?or:sr;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-ir(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-ir(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-ir(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},vr.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=W(this,e);return this.localeData().postformat(t)},vr.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||On(e).isValid())?Vn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vr.fromNow=function(e){return this.from(On(),e)},vr.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||On(e).isValid())?Vn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vr.toNow=function(e){return this.to(On(),e)},vr.get=function(e){return A(this[e=P(e)])?this[e]():this},vr.invalidAt=function(){return p(this).overflow},vr.isAfter=function(e,t){var n=w(e)?e:On(e);return!!this.isValid()&&!!n.isValid()&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},vr.isBefore=function(e,t){var n=w(e)?e:On(e);return!!this.isValid()&&!!n.isValid()&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},vr.isBetween=function(e,t,n,r){var i=w(e)?e:On(e),s=w(t)?t:On(t);return!!(this.isValid()&&i.isValid()&&s.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(s,n):!this.isAfter(s,n))},vr.isSame=function(e,t){var n,r=w(e)?e:On(e);return!!this.isValid()&&!!r.isValid()&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},vr.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},vr.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},vr.isValid=function(){return d(this)},vr.lang=tr,vr.locale=er,vr.localeData=nr,vr.max=_n,vr.min=Mn,vr.parsingFlags=function(){return c({},p(this))},vr.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:B[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=H(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(A(this[e=P(e)]))return this[e](t);return this},vr.startOf=function(e){var t;if(void 0===(e=P(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?or:sr;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ir(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=ir(t,6e4);break;case"second":t=this._d.valueOf(),t-=ir(t,1e3)}return this._d.setTime(t),r.updateOffset(this,!0),this},vr.subtract=Yn,vr.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},vr.toObject=function(){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()}},vr.toDate=function(){return new Date(this.valueOf())},vr.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?W(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?t?this.toDate().toISOString():(new Date(this.valueOf()+60*this.utcOffset()*1e3)).toISOString().replace("Z",W(n,"Z")):W(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vr.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},vr.toJSON=function(){return this.isValid()?this.toISOString():null},vr.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vr.unix=function(){return Math.floor(this.valueOf()/1e3)},vr.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vr.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vr.year=kt,vr.isLeapYear=function(){return Nt(this.year())},vr.weekYear=function(e){return ar.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},vr.isoWeekYear=function(e){return ar.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},vr.quarter=vr.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},vr.month=Bt,vr.daysInMonth=function(){return Mt(this.year(),this.month())},vr.week=vr.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},vr.isoWeek=vr.isoWeeks=function(e){var t=zt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},vr.weeksInYear=function(){var e=this.localeData()._week;return Wt(this.year(),e.dow,e.doy)},vr.isoWeeksInYear=function(){return Wt(this.year(),1,4)},vr.date=fr,vr.day=vr.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof (t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-r,"d")):r},vr.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},vr.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,n,r=(t=e,n=this.localeData(),"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?r:r-7)},vr.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},vr.hour=vr.hours=rn,vr.minute=vr.minutes=lr,vr.second=vr.seconds=hr,vr.millisecond=vr.milliseconds=dr,vr.utcOffset=function(e,t,n){var i,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?s:Un(this);if("string"==typeof e){if(null===(e=qn(ot,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Un(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),s!==e&&(!t||this._changeInProgress?Qn(this,Vn(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this},vr.utc=function(e){return this.utcOffset(0,e)},vr.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Un(this),"m")),this},vr.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=qn(st,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},vr.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?On(e).utcOffset():0,(this.utcOffset()-e)%60==0)},vr.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vr.isLocal=function(){return!!this.isValid()&&!this._isUTC},vr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vr.isUtc=zn,vr.isUTC=zn,vr.zoneAbbr=function(){return this._isUTC?"UTC":""},vr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vr.dates=N("dates accessor is deprecated. Use date instead.",fr),vr.months=N("months accessor is deprecated. Use month instead",Bt),vr.years=N("years accessor is deprecated. Use year instead",kt),vr.zone=N("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),vr.isDSTShifted=N("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=Ln(e))._a){var t=e._isUTC?h(e._a):On(e._a);this._isDSTShifted=this.isValid()&&0<x(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var gr=M.prototype;gr.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return A(r)?r.call(t,n):r},gr.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},gr.invalidDate=function(){return this._invalidDate},gr.ordinal=function(e){return this._ordinal.replace("%d",e)},gr.preparse=mr,gr.postformat=mr,gr.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return A(i)?i(e,t,n,r):i.replace(/%d/i,e)},gr.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return A(n)?n(t):n.replace(/%s/i,t)},gr.set=function(e){var t,n;for(n in e)A(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gr.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||_t).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},gr.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[_t.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gr.monthsParse=function(e,t,n){var r,i,s;if(this._monthsParseExact)return function(e,t,n){var r,i,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ct.call(this._shortMonthsParse,o))?i:null:-1!==(i=Ct.call(this._longMonthsParse,o))?i:null:"MMM"===t?-1!==(i=Ct.call(this._shortMonthsParse,o))?i:-1!==(i=Ct.call(this._longMonthsParse,o))?i:null:-1!==(i=Ct.call(this._longMonthsParse,o))?i:-1!==(i=Ct.call(this._shortMonthsParse,o))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},gr.monthsRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||It.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Ft),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gr.monthsShortRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||It.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=jt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gr.week=function(e){return zt(e,this._week.dow,this._week.doy).week},gr.firstDayOfYear=function(){return this._week.doy},gr.firstDayOfWeek=function(){return this._week.dow},gr.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Xt(n,this._week.dow):e?n[e.day()]:n},gr.weekdaysMin=function(e){return!0===e?Xt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},gr.weekdaysShort=function(e){return!0===e?Xt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},gr.weekdaysParse=function(e,t,n){var r,i,s;if(this._weekdaysParseExact)return function(e,t,n){var r,i,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ct.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=Ct.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=Ct.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=Ct.call(this._weekdaysParse,o))?i:-1!==(i=Ct.call(this._shortWeekdaysParse,o))?i:-1!==(i=Ct.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=Ct.call(this._shortWeekdaysParse,o))?i:-1!==(i=Ct.call(this._weekdaysParse,o))?i:-1!==(i=Ct.call(this._minWeekdaysParse,o))?i:null:-1!==(i=Ct.call(this._minWeekdaysParse,o))?i:-1!==(i=Ct.call(this._weekdaysParse,o))?i:-1!==(i=Ct.call(this._shortWeekdaysParse,o))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},gr.weekdaysRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Yt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gr.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Yt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gr.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Yt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Gt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gr.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gr.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ln("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=N("moment.lang is deprecated. Use moment.locale instead.",ln),r.langData=N("moment.langData is deprecated. Use moment.localeData instead.",hn);var Er=Math.abs,kr=Cr("ms"),Lr=Cr("s"),Ar=Cr("m"),Or=Cr("h"),Mr=Cr("d"),_r=Cr("w"),Dr=Cr("M"),Pr=Cr("Q"),Hr=Cr("y"),jr=Br("milliseconds"),Fr=Br("seconds"),Ir=Br("minutes"),qr=Br("hours"),Rr=Br("days"),Ur=Br("months"),zr=Br("years"),Wr=Math.round,Xr={ss:44,s:45,m:45,h:22,d:26,M:11},Vr=Math.abs,Kr=Hn.prototype;Kr.isValid=function(){return this._isValid},Kr.abs=function(){var e=this._data;return this._milliseconds=Er(this._milliseconds),this._days=Er(this._days),this._months=Er(this._months),e.milliseconds=Er(e.milliseconds),e.seconds=Er(e.seconds),e.minutes=Er(e.minutes),e.hours=Er(e.hours),e.months=Er(e.months),e.years=Er(e.years),this},Kr.add=function(e,t){return Sr(this,e,t,1)},Kr.subtract=function(e,t){return Sr(this,e,t,-1)},Kr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=P(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Tr(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Nr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Kr.asMilliseconds=kr,Kr.asSeconds=Lr,Kr.asMinutes=Ar,Kr.asHours=Or,Kr.asDays=Mr,Kr.asWeeks=_r,Kr.asMonths=Dr,Kr.asQuarters=Pr,Kr.asYears=Hr,Kr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Kr._bubble=function(){var e,t,n,r,i,s=this._milliseconds,o=this._days,u=this._months,a=this._data;return 0<=s&&0<=o&&0<=u||s<=0&&o<=0&&u<=0||(s+=864e5*xr(Nr(u)+o),u=o=0),a.milliseconds=s%1e3,e=E(s/1e3),a.seconds=e%60,t=E(e/60),a.minutes=t%60,n=E(t/60),a.hours=n%24,u+=i=E(Tr(o+=E(n/24))),o-=xr(Nr(i)),r=E(u/12),u%=12,a.days=o,a.months=u,a.years=r,this},Kr.clone=function(){return Vn(this)},Kr.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},Kr.milliseconds=jr,Kr.seconds=Fr,Kr.minutes=Ir,Kr.hours=qr,Kr.days=Rr,Kr.weeks=function(){return E(this.days()/7)},Kr.months=Ur,Kr.years=zr,Kr.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,r,i,s,o,u,a,f,l,c,h=this.localeData(),p=(n=!e,r=h,i=Vn(t=this).abs(),s=Wr(i.as("s")),o=Wr(i.as("m")),u=Wr(i.as("h")),a=Wr(i.as("d")),f=Wr(i.as("M")),l=Wr(i.as("y")),(c=s<=Xr.ss&&["s",s]||s<Xr.s&&["ss",s]||o<=1&&["m"]||o<Xr.m&&["mm",o]||u<=1&&["h"]||u<Xr.h&&["hh",u]||a<=1&&["d"]||a<Xr.d&&["dd",a]||f<=1&&["M"]||f<Xr.M&&["MM",f]||l<=1&&["y"]||["yy",l])[2]=n,c[3]=0<+t,c[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,c));return e&&(p=h.pastFuture(+this,p)),h.postformat(p)},Kr.toISOString=Jr,Kr.toString=Jr,Kr.toJSON=Jr,Kr.locale=er,Kr.localeData=nr,Kr.toIsoString=N("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Jr),Kr.lang=tr,z("X",0,0,"unix"),z("x",0,0,"valueOf"),ft("x",it),ft("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),pt("x",function(e,t,n){n._d=new Date(S(e))}),r.version="2.24.0",e=On,r.fn=vr,r.min=function(){return Dn("isBefore",[].slice.call(arguments,0))},r.max=function(){return Dn("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+(new Date)},r.utc=h,r.unix=function(e){return On(1e3*e)},r.months=function(e,t){return br(e,t,"months")},r.isDate=a,r.locale=ln,r.invalid=v,r.duration=Vn,r.isMoment=w,r.weekdays=function(e,t,n){return wr(e,t,n,"weekdays")},r.parseZone=function(){return On.apply(null,arguments).parseZone()},r.localeData=hn,r.isDuration=Bn,r.monthsShort=function(e,t){return br(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return wr(e,t,n,"weekdaysMin")},r.defineLocale=cn,r.updateLocale=function(e,t){if(null!=t){var n,r,i=sn;null!=(r=fn(e))&&(i=r._config),(n=new M(t=O(i,t))).parentLocale=on[e],on[e]=n,ln(e)}else null!=on[e]&&(null!=on[e].parentLocale?on[e]=on[e].parentLocale:null!=on[e]&&delete on[e]);return on[e]},r.locales=function(){return C(on)},r.weekdaysShort=function(e,t,n){return wr(e,t,n,"weekdaysShort")},r.normalizeUnits=P,r.relativeTimeRounding=function(e){return void 0===e?Wr:"function"==typeof e&&(Wr=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Xr[e]&&(void 0===t?Xr[e]:(Xr[e]=t,"s"===e&&(Xr.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=vr,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},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:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),r.defineLocale("ar-dz",{months:انفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:انفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".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:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}}),r.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".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:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});var Qr={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},Gr=function(e){return 0===e?0:1===e?1:2===e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5},Yr={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Zr=function(e){return function(t,n,r,i){var s=Gr(t),o=Yr[e][Gr(t)];return 2===s&&(o=o[n?0:1]),o.replace(/%d/i,t)}},ei=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];r.defineLocale("ar-ly",{months:ei,monthsShort:ei,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Zr("s"),ss:Zr("s"),m:Zr("m"),mm:Zr("m"),h:Zr("h"),hh:Zr("h"),d:Zr("d"),dd:Zr("d"),M:Zr("M"),MM:Zr("M"),y:Zr("y"),yy:Zr("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Qr[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),r.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".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:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}});var ti={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},ni={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};r.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".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"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return ni[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return ti[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}}),r.defineLocale("ar-tn",{months:انفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:انفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".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:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});var ri={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},ii={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},si=function(e){return 0===e?0:1===e?1:2===e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5},oi={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},ui=function(e){return function(t,n,r,i){var s=si(t),o=oi[e][si(t)];return 2===s&&(o=o[n?0:1]),o.replace(/%d/i,t)}},ai=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];r.defineLocale("ar",{months:ai,monthsShort:ai,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:ui("s"),ss:ui("s"),m:ui("m"),mm:ui("m"),h:ui("h"),hh:ui("h"),d:ui("d"),dd:ui("d"),M:ui("M"),MM:ui("M"),y:ui("y"),yy:ui("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return ii[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return ri[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}});var fi={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};r.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".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:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var t=e%10;return e+(fi[t]||fi[e%100-t]||fi[100<=e?100:null])},week:{dow:1,doy:7}}),r.defineLocale("be",{months:{format:"студзеня_лютага_сакавікарасавікараўня_чэрвеня_ліпеня_жніўня_верасня_кастрычнікаістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_красрав_чэрв_ліп_жнів_вераст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_серадуацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серадаацвер_пятніца_субота".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),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:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:li,mm:li,h:li,hh:li,d:"дзень",dd:li,M:"месяц",MM:li,y:"год",yy:li},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}}),r.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янрев_мар_апрай_юни_юли_авг_сеп_окт_ноеек".split("_"),weekdays:еделя_понеделник_вторник_срядаетвъртък_петък_събота".split("_"),weekdaysShort:ед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":10<n&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),r.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});var ci={1:"১",2:"২",3:"৩",4:"",5:"৫",6:"৬",7:"",8:"৮",9:"৯",0:""},hi={"১":"1","২":"2","৩":"3","":"4","৫":"5","৬":"6","":"7","৮":"8","৯":"9","":"0"};r.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return hi[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return ci[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&4<=e||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});var pi={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},di={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};r.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(e){return di[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return pi[e]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&4<=e||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}}),r.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:vi,h:"un eur",hh:"%d eur",d:"un devezh",dd:vi,M:"ur miz",MM:vi,y:"ur bloaz",yy:function(e){switch(function t(e){return 9<e?t(e%10):e}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}}),r.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:mi,m:mi,mm:mi,h:mi,hh:mi,d:"dan",dd:mi,M:"mjesec",MM:mi,y:"godinu",yy:mi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),r.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}});var gi="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),yi="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),bi=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],wi=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;r.defineLocale("cs",{months:gi,monthsShort:yi,monthsRegex:wi,monthsShortRegex:wi,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:bi,longMonthsParse:bi,shortMonthsParse:bi,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:Si,ss:Si,m:Si,mm:Si,h:Si,hh:Si,d:Si,dd:Si,M:Si,MM:Si,y:Si,yy:Si},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),r.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_акаай_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑрар_пуш_акаай_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"вырун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:р_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"рен":/\u04ab\u0443\u043b$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-мӗш",week:{dow:1,doy:7}}),r.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_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:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return 20<e?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":0<e&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}}),r.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),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.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),r.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._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:xi,mm:"%d Minuten",h:xi,hh:"%d Stunden",d:xi,dd:xi,M:xi,MM:xi,y:xi,yy:xi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),r.defineLocale("de-ch",{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:Ti,mm:"%d Minuten",h:Ti,hh:"%d Stunden",d:Ti,dd:Ti,M:Ti,MM:Ti,y:Ti,yy:Ti},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),r.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:Ni,mm:"%d Minuten",h:Ni,hh:"%d Stunden",d:Ni,dd:Ni,M:Ni,MM:Ni,y:Ni,yy:Ni},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Ci=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],ki=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];r.defineLocale("dv",{months:Ci,monthsShort:Ci,weekdays:ki,weekdaysShort:ki,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}}),r.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παραβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Παα".split("_"),meridiem:function(e,t,n){return 11<e?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n=this._calendarEl[e],r=t&&t.hours();return A(n)&&(n=n.apply(t)),n.replace("{}",r%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%dη",week:{dow:1,doy:4}}),r.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),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:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),r.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),r.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),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:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),r.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),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:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),r.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),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:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),r.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return 11<e?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});var Li="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ai="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Oi=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Mi=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;r.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?Ai[e.month()]:Li[e.month()]:Li},monthsRegex:Mi,monthsShortRegex:Mi,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Oi,longMonthsParse:Oi,shortMonthsParse:Oi,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});var _i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Di="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Pi=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Hi=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;r.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?Di[e.month()]:_i[e.month()]:_i},monthsRegex:Hi,monthsShortRegex:Hi,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Pi,longMonthsParse:Pi,shortMonthsParse:Pi,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:0,doy:6}});var Bi="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),ji="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Fi=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Ii=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;r.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?ji[e.month()]:Bi[e.month()]:Bi},monthsRegex:Ii,monthsShortRegex:Ii,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Fi,longMonthsParse:Fi,shortMonthsParse:Fi,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),r.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:qi,ss:qi,m:qi,mm:qi,h:qi,hh:qi,d:qi,dd:"%d päeva",M:qi,MM:qi,y:qi,yy:qi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),r.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var Ri={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},Ui={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};r.defineLocale("fa",{months:انویه_فوریهارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:انویه_فوریهارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبههشنبههارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبههشنبههارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".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"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[\u06f0-\u06f9]/g,function(e){return Ui[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Ri[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%dم",week:{dow:6,doy:12}});var zi="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),Wi=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",zi[7],zi[8],zi[9]];r.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:Xi,ss:Xi,m:Xi,mm:Xi,h:Xi,hh:Xi,d:Xi,dd:Xi,M:Xi,MM:Xi,y:Xi,yy:Xi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),r.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),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:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),r.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdhui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}}),r.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_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:"[Aujourdhui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}}),r.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_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:"[Aujourdhui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});var Vi="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),$i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");r.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?$i[e.month()]:Vi[e.month()]:Vi},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".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:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),r.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Méitheamh","Iúil","Lúnasa","Meán Fómhair","Deaireadh Fómhair","Samhain","Nollaig"],monthsShort:["Eaná","Feab","Márt","Aibr","Beal","Méit","Iúil","Lúna","Meán","Deai","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Satharn"],weekdaysShort:["Dom","Lua","Mái","Céa","Déa","hAo","Sat"],weekdaysMin:["Do","Lu","Má","Ce","Dé","hA","Sa"],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:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}}),r.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],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:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}}),r.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),r.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:Ji,ss:Ji,m:Ji,mm:Ji,h:Ji,hh:Ji,d:Ji,dd:Ji,M:Ji,MM:Ji,y:Ji,yy:Ji},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?12<e?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}});var Ki={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:""},Qi={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","":"0"};r.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(e){return Qi[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Ki[e]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?10<=e?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}}),r.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יוליוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יוליוג׳_ספט׳וק׳וב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישיישי_שבת".split("_"),weekdaysShort:׳׳׳׳׳_ו׳׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),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",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}});var Gi={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},Yi={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};r.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return Yi[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Gi[e]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?10<=e?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}}),r.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:Zi,m:Zi,mm:Zi,h:Zi,hh:Zi,d:"dan",dd:Zi,M:"mjesec",MM:Zi,y:"godinu",yy:Zi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var es="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");r.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return ns.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return ns.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:ts,ss:ts,m:ts,mm:ts,h:ts,hh:ts,d:ts,dd:ts,M:ts,MM:ts,y:ts,yy:ts},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),r.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),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:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}}),r.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?11<=e?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),r.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:is,ss:is,m:is,mm:is,h:"klukkustund",hh:is,d:is,dd:is,M:is,MM:is,y:is,yy:is},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),r.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),r.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),r.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()<e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),r.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?11<=e?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}}),r.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(e)?e.replace(/\u10d8$/,"ში"):e+"ში"},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"ის წინ"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});var ss={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};r.defineLocale("kk",{months:аңтар_ақпан_наурыз_сәуірамыраусым_шілдеамыз_қыркүйек_қазан_қарашаелтоқсан".split("_"),monthsShort:аң_ақп_нау_сәуам_мауіл_там_қыраз_қарел".split("_"),weekdays:ексенбіүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:ек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),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:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(e){return e+(ss[e]||ss[e%10]||ss[100<=e?100:null])},week:{dow:1,doy:7}});var os={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},us={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};r.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".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"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(e){return us[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return os[e]})},week:{dow:1,doy:4}});var as={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:""},fs={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","":"0"};r.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಬರ್_ಡಿಸೆಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆ_ಅಕ್ಟೋ_ನವೆ_ಡಿಸೆ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(e){return fs[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return as[e]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?10<=e?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}}),r.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}});var ls={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},cs={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},hs=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];r.defineLocale("ku",{months:hs,monthsShort:hs,weekdays:هكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه".split("_"),weekdaysShort:هكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".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"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return cs[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return ls[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}});var ps={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};r.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апрай_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:екшемби_Дүйшөмбүейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:ек_Дүй_Шей_Шарей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),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:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(e){return e+(ps[e]||ps[e%10]||ps[100<=e?100:null])},week:{dow:1,doy:7}}),r.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return vs(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return vs(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:ds,mm:"%d Minutten",h:ds,hh:"%d Stonnen",d:ds,dd:"%d Deeg",M:ds,MM:"%d Méint",y:ds,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),r.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".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"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}});var ms={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};r.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:ws,m:gs,mm:ws,h:gs,hh:ws,d:gs,dd:ws,M:gs,MM:ws,y:gs,yy:ws},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});var Es={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};r.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:xs,m:Ts,mm:xs,h:Ts,hh:xs,d:Ts,dd:xs,M:Ts,MM:xs,y:Ts,yy:xs},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Ns={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,n){var r=Ns.words[n];return 1===n.length?t?r[0]:r[1]:e+" "+Ns.correctGrammaticalCase(e,r)}};r.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:Ns.translate,m:Ns.translate,mm:Ns.translate,h:Ns.translate,hh:Ns.translate,d:"dan",dd:Ns.translate,M:"mjesec",MM:Ns.translate,y:"godinu",yy:Ns.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),r.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),r.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апрај_јун_јул_авг_сеп_окт_ноеек".split("_"),weekdays:едела_понеделник_вторник_средаетврток_петок_сабота".split("_"),weekdaysShort:ед_пон_вто_среет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_сре_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":10<n&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),r.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റബർ_ഒക്ടോബർ_നവബർ_ഡിസബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവ._ഡിസ.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴ_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&4<=e||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}}),r.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар саруравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар саролдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмархагваүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мягхаүраа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лхүа_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:Cs,ss:Cs,m:Cs,mm:Cs,h:Cs,hh:Cs,d:Cs,dd:Cs,M:Cs,MM:Cs,y:Cs,yy:Cs},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}});var ks={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},Ls={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};r.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:As,ss:As,m:As,mm:As,h:As,hh:As,d:As,dd:As,M:As,MM:As,y:As,yy:As},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return Ls[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return ks[e]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?10<=e?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}}),r.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?11<=e?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),r.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?11<=e?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),r.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),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:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});var Os={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:""},Ms={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","":"0"};r.defineLocale("my",{months:"ဇန်နါရီ_ဖေဖော်ါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),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:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(e){return Ms[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Os[e]})},week:{dow:1,doy:4}}),r.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var _s={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},Ds={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};r.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return Ds[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return _s[e]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?10<=e?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});var Ps="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Hs="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Bs=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],js=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;r.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?Hs[e.month()]:Ps[e.month()]:Ps},monthsRegex:js,monthsShortRegex:js,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:Bs,longMonthsParse:Bs,shortMonthsParse:Bs,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".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:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}});var Fs="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Is="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),qs=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Rs=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;r.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?Is[e.month()]:Fs[e.month()]:Fs},monthsRegex:Rs,monthsShortRegex:Rs,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:qs,longMonthsParse:qs,shortMonthsParse:qs,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".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:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),r.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Us={1:"",2:"੨",3:"੩",4:"",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:""},zs={"":"1","੨":"2","੩":"3","":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","":"0"};r.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(e){return zs[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Us[e]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?10<=e?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});var Ws="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),Xs="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");r.defineLocale("pl",{months:function(e,t){return e?""===t?"("+Xs[e.month()]+"|"+Ws[e.month()]+")":/D MMMM/.test(t)?Xs[e.month()]:Ws[e.month()]:Ws},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),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:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:$s,m:$s,mm:$s,h:$s,hh:$s,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:$s,y:"rok",yy:$s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),r.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº"}),r.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),r.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:Js,m:"un minut",mm:Js,h:"o oră",hh:Js,d:"o zi",dd:Js,M:"o lună",MM:Js,y:"un an",yy:Js},week:{dow:1,doy:7}});var Qs=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];r.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:оскресенье_понедельник_вторник_средаетверг_пятница_суббота".split("_"),format:оскресенье_понедельник_вторник_средуетверг_пятницу_субботу".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?\] ?dddd/},weekdaysShort:с_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:с_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:Qs,longMonthsParse:Qs,shortMonthsParse:Qs,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:Ks,m:Ks,mm:Ks,h:"час",hh:Ks,d:"день",dd:Ks,M:"месяц",MM:Ks,y:"год",yy:Ks},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}});var Gs=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],Ys=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];r.defineLocale("sd",{months:Gs,monthsShort:Gs,weekdays:Ys,weekdaysShort:Ys,weekdaysMin:Ys,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"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}}),r.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),r.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" වැනි"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return 11<e?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}});var Zs="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),eo="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");r.defineLocale("sk",{months:Zs,monthsShort:eo,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:no,ss:no,m:no,mm:no,h:no,hh:no,d:no,dd:no,M:no,MM:no,y:no,yy:no},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),r.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:ro,ss:ro,m:ro,mm:ro,h:ro,hh:ro,d:ro,dd:ro,M:ro,MM:ro,y:ro,yy:ro},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),r.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},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:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var io={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,n){var r=io.words[n];return 1===n.length?t?r[0]:r[1]:e+" "+io.correctGrammaticalCase(e,r)}};r.defineLocale("sr-cyrl",{months:"јануаребруарарт_април_мај_јун_јул_август_септембар_октобаровембарецембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:едеља_понедељак_уторак_средаетвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:е_по_ут_сре_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:io.translate,m:io.translate,mm:io.translate,h:io.translate,hh:io.translate,d:"дан",dd:io.translate,M:"месец",MM:io.translate,y:"годину",yy:io.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var so={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,n){var r=so.words[n];return 1===n.length?t?r[0]:r[1]:e+" "+so.correctGrammaticalCase(e,r)}};r.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:so.translate,m:so.translate,mm:so.translate,h:so.translate,hh:so.translate,d:"dan",dd:so.translate,M:"mesec",MM:so.translate,y:"godinu",yy:so.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),r.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?11<=e?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}}),r.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 t=e%10;return e+(1==~~(e%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}}),r.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".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:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});var oo={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:""},uo={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","":"0"};r.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),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:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(e){return uo[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return oo[e]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&10<=e?e:e+12},week:{dow:0,doy:6}}),r.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెబర్_అక్టోబర్_నవబర్_డిసెబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివార_సోమవార_మగళవార_బుధవార_గురువార_శుక్రవార_శనివార".split("_"),weekdaysShort:"ఆది_సోమ_మగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మ_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%dవ",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?10<=e?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}}),r.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),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:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}});var ao={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};r.defineLocale("tg",{months:"январеврал_март_апрел_май_июн_июл_август_сентябр_октяброябрекабр".split("_"),monthsShort:"янв_фев_мар_апрай_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбеушанбе_сешанбеоршанбе_панҷшанбеумъаанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшбум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),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:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?11<=e?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(ao[e]||ao[e%10]||ao[100<=e?100:null])},week:{dow:1,doy:7}}),r.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),r.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});var fo="pagh_wa_cha_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");r.defineLocale("tlh",{months:"tera jar wa_tera jar cha_tera jar wej_tera jar loS_tera jar vagh_tera jar jav_tera jar Soch_tera jar chorgh_tera jar Hut_tera jar wamaH_tera jar wamaH wa_tera jar wamaH cha".split("_"),monthsShort:"jar wa_jar cha_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wamaH_jar wamaH wa_jar wamaH cha".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),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:"[DaHjaj] LT",nextDay:"[waleS] LT",nextWeek:"LLL",lastDay:"[waHu] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:lo,m:"wa tup",mm:lo,h:"wa rep",hh:lo,d:"wa jaj",dd:lo,M:"wa jar",MM:lo,y:"wa DIS",yy:lo},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var co={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};r.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),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:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,t){switch(t){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var n=e%10;return e+(co[n]||co[e%100-n]||co[100<=e?100:null])}},week:{dow:1,doy:7}}),r.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return 11<e?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:ho,ss:ho,m:ho,mm:ho,h:ho,hh:ho,d:ho,dd:ho,M:ho,MM:ho,y:ho,yy:ho},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),r.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),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:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),r.defineLocale("tzm",{months:"ⵉⴰⵢ_ⴱⴰⵢ_ⵎⴰⵚ_ⵉⴱ_ⵎⴰⵢⵢⵓ_ⵢⵓⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⴱⵉ_ⴽⵟⵓⴱ_ⵓⵡⴰⴱⵉ_ⴷⵓⵊⴱⵉ".split("_"),monthsShort:"ⵉⴰⵢ_ⴱⴰⵢ_ⵎⴰⵚ_ⵉⴱ_ⵎⴰⵢⵢⵓ_ⵢⵓⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⴱⵉ_ⴽⵟⵓⴱ_ⵓⵡⴰⴱⵉ_ⴷⵓⵊⴱⵉ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⴰⵙ_ⴰⵙⵉⴰⵙ_ⴰⴽⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⴰⵙ_ⴰⵙⵉⴰⵙ_ⴰⴽⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⴰⵙ_ⴰⵙⵉⴰⵙ_ⴰⴽⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⵢⴰⵙ".split("_"),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:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰ",M:"ⴰⵢoⵓ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}}),r.defineLocale("ug-cn",{months:انۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:انۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:ەكشەنبە_دۈشەنبەەيشەنبەارشەنبەەيشەنبە_جۈمەەنبە".split("_"),weekdaysShort:ە_دۈ_سەاە_جۈ_شە".split("_"),weekdaysMin:ە_دۈ_سەاە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:11<=e?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}}),r.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_веровт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:еділя_понеділок_вівторок_середаетвер_пятниця_субота".split("_"),accusative:еділю_понеділок_вівторок_середуетвер_пятницю_суботу".split("_"),genitive:еділі_понеділкаівторка_середи_четверга_пятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),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:vo("[Сьогодні "),nextDay:vo("[Завтра "),lastDay:vo("[Вчора "),nextWeek:vo("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return vo("[Минулої] dddd [").call(this);case 1:case 2:case 4:return vo("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:po,m:po,mm:po,h:"годину",hh:po,d:"день",dd:po,M:"місяць",MM:po,y:"рік",yy:po},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});var mo=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],go=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];return r.defineLocale("ur",{months:mo,monthsShort:mo,weekdays:go,weekdaysShort:go,weekdaysMin:go,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"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}}),r.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}}),r.defineLocale("uz",{months:"январеврал_март_апрел_май_июн_июл_август_сентябр_октяброябрекабр".split("_"),monthsShort:"янв_фев_мар_апрай_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанбаушанба_Сешанбаоршанбаайшанбаумаанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чорай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Сеоауа".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}}),r.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}}),r.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),r.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}}),r.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:11<=e?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),r.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?11<=e?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),r.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?11<=e?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),r.locale("en"),r}),n("router",[],function(){return function(){function u(){var e=[];i&&e.push("v:"+i),s&&("node"in s&&e.push("n:"+encodeURIComponent(s.node.nodeinfo.node_id)),"link"in s&&e.push("l:"+encodeURIComponent(s.link.id)));var t="#!"+e.join(";");window.history.pushState(t,undefined,t)}function a(e){e=f(e),n.forEach(function(e){e.resetView()}),e&&(s=undefined,u())}function l(e){return e?(n.forEach(function(t){t.gotoNode(e)}),!0):!1}function c(e){return e?(n.forEach(function(t){t.gotoLink(e)}),!0):!1}function h(e){return e?(n.forEach(function(t){t.gotoLocation||console.warn("has no gotoLocation",t),t.gotoLocation(e)}),!0):!1}function p(e){if(!e)return!1;e=decodeURIComponent(e);if(!e.startsWith("#!"))return!1;var n=!1;return e.slice(2).split(";").forEach(function(e){var o=e.split(":");o[0]==="v"&&o[1]in r&&(i=o[1],r[o[1]]());var u;o[0]==="n"&&(u=o[1],u in t.nodes&&(s={node:t.nodes[u]},l(t.nodes[u]),n=!0)),o[0]==="l"&&(u=o[1],u in t.links&&(s={link:t.links[u]},c(t.links[u]),n=!0))}),n}var e=this,t={nodes:{},links:{}},n=[],r={},i,s,o=!1;return e.start=function(){o=!0,p(window.location.hash)||a(!1),window.onpopstate=function(e){p(e.state)||a(!1)}},e.view=function(e){if(e in r){r[e]();if(!i||o)i=e;if(!o)return;u();if(!s){a(!1);return}"node"in s&&l(s.node),"link"in s&&c(s.link)}},e.node=function(e){return function(){return l(e)&&(s={node:e},u()),!1}},e.link=function(e){return function(){return c(e)&&(s={link:e},u()),!1}},e.gotoLocation=h,e.reset=function(){a()},e.addTarget=function(e){n.push(e)},e.removeTarget=function(e){n=n.filter(function(t){return e!==t})},e.addView=function(e,t){r[e]=t},e.setData=function(e){t.nodes={},t.links={},e.nodes.all.forEach(function(e){t.nodes[e.nodeinfo.node_id]=e}),e.graph.links.forEach(function(e){t.links[e.id]=e})},e}}),!function(e,t,r){var i=e.L,s={};s.version="0.7.7","object"==typeof module&&"object"==typeof module.exports?module.exports=s:"function"==typeof n&&n.amd&&n("leaflet",s),s.noConflict=function(){return e.L=i,this},e.L=s,s.Util={extend:function(e){var t,n,r,i,s=Array.prototype.slice.call(arguments,1);for(n=0,r=s.length;r>n;n++){i=s[n]||{};for(t in i)i.hasOwnProperty(t)&&(e[t]=i[t])}return e},bind:function(e,t){var n=arguments.length>2?Array.prototype.slice.call(arguments,2):null;return function(){return e.apply(t,n||arguments)}},stamp:function(){var e=0,t="_leaflet_id";return function(n){return n[t]=n[t]||++e,n[t]}}(),invokeEach:function(e,t,n){var r,i;if("object"==typeof e){i=Array.prototype.slice.call(arguments,3);for(r in e)t.apply(n,[r,e[r]].concat(i));return!0}return!1},limitExecByInterval:function(e,t,n){var r,i;return function s(){var o=arguments;return r?void (i=!0):(r=!0,setTimeout(function(){r=!1,i&&(s.apply(n,o),i=!1)},t),void e.apply(n,o))}},falseFn:function(){return!1},formatNum:function(e,t){var n=Math.pow(10,t||5);return Math.round(e*n)/n},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},splitWords:function(e){return s.Util.trim(e).split(/\s+/)},setOptions:function(e,t){return e.options=s.extend({},e.options,t),e.options},getParamString:function(e,t,n){var r=[];for(var i in e)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(e[i]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")},template:function(e,t){return e.replace(/\{ *([\w_]+) *\}/g,function(e,n){var i=t[n];if(i===r)throw new Error("No value provided for variable "+e);return"function"==typeof i&&(i=i(t)),i})},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},function(){function t(t){var n,r,i=["webkit","moz","o","ms"];for(n=0;n<i.length&&!r;n++)r=e[i[n]+t];return r}function n(t){var n=+(new Date),i=Math.max(0,16-(n-r));return r=n+i,e.setTimeout(t,i)}var r=0,i=e.requestAnimationFrame||t("RequestAnimationFrame")||n,o=e.cancelAnimationFrame||t("CancelAnimationFrame")||t("CancelRequestAnimationFrame")||function(t){e.clearTimeout(t)};s.Util.requestAnimFrame=function(t,r,o,u){return t=s.bind(t,r),o&&i===n?void t():i.call(e,t,u)},s.Util.cancelAnimFrame=function(t){t&&o.call(e,t)}}(),s.extend=s.Util.extend,s.bind=s.Util.bind,s.stamp=s.Util.stamp,s.setOptions=s.Util.setOptions,s.Class=function(){},s.Class.extend=function(e){var t=function(){this.initialize&&this.initialize.apply(this,arguments),this._initHooks&&this.callInitHooks()},n=function(){};n.prototype=this.prototype;var r=new n;r.constructor=t,t.prototype=r;for(var i in this)this.hasOwnProperty(i)&&"prototype"!==i&&(t[i]=this[i]);e.statics&&(s.extend(t,e.statics),delete e.statics),e.includes&&(s.Util.extend.apply(null,[r].concat(e.includes)),delete e.includes),e.options&&r.options&&(e.options=s.extend({},r.options,e.options)),s.extend(r,e),r._initHooks=[];var o=this;return t.__super__=o.prototype,r.callInitHooks=function(){if(!this._initHooksCalled){o.prototype.callInitHooks&&o.prototype.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=r._initHooks.length;t>e;e++)r._initHooks[e].call(this)}},t},s.Class.include=function(e){s.extend(this.prototype,e)},s.Class.mergeOptions=function(e){s.extend(this.prototype.options,e)},s.Class.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"==typeof e?e:function(){this[e].apply(this,t)};this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n)};var o="_leaflet_events";s.Mixin={},s.Mixin.Events={addEventListener:function(e,t,n){if(s.Util.invokeEach(e,this.addEventListener,this,t,n))return this;var r,i,u,a,f,l,c,h=this[o]=this[o]||{},p=n&&n!==this&&s.stamp(n);for(e=s.Util.splitWords(e),r=0,i=e.length;i>r;r++)u={action:t,context:n||this},a=e[r],p?(f=a+"_idx",l=f+"_len",c=h[f]=h[f]||{},c[p]||(c[p]=[],h[l]=(h[l]||0)+1),c[p].push(u)):(h[a]=h[a]||[],h[a].push(u));return this},hasEventListeners:function(e){var t=this[o];return!!t&&(e in t&&t[e].length>0||e+"_idx"in t&&t[e+"_idx_len"]>0)},removeEventListener:function(e,t,n){if(!this[o])return this;if(!e)return this.clearAllEventListeners();if(s.Util.invokeEach(e,this.removeEventListener,this,t,n))return this;var r,i,u,a,f,l,c,h,p,d=this[o],v=n&&n!==this&&s.stamp(n);for(e=s.Util.splitWords(e),r=0,i=e.length;i>r;r++)if(u=e[r],l=u+"_idx",c=l+"_len",h=d[l],t){if(a=v&&h?h[v]:d[u]){for(f=a.length-1;f>=0;f--)a[f].action!==t||n&&a[f].context!==n||(p=a.splice(f,1),p[0].action=s.Util.falseFn);n&&h&&0===a.length&&(delete h[v],d[c]--)}}else delete d[u],delete d[l],delete d[c];return this},clearAllEventListeners:function(){return delete this[o],this},fireEvent:function(e,t){if(!this.hasEventListeners(e))return this;var n,r,i,u,a,f=s.Util.extend({},t,{type:e,target:this}),l=this[o];if(l[e])for(n=l[e].slice(),r=0,i=n.length;i>r;r++)n[r].action.call(n[r].context,f);u=l[e+"_idx"];for(a in u)if(n=u[a].slice())for(r=0,i=n.length;i>r;r++)n[r].action.call(n[r].context,f);return this},addOneTimeEventListener:function(e,t,n){if(s.Util.invokeEach(e,this.addOneTimeEventListener,this,t,n))return this;var r=s.bind(function(){this.removeEventListener(e,t,n).removeEventListener(e,r,n)},this);return this.addEventListener(e,t,n).addEventListener(e,r,n)}},s.Mixin.Events.on=s.Mixin.Events.addEventListener,s.Mixin.Events.off=s.Mixin.Events.removeEventListener,s.Mixin.Events.once=s.Mixin.Events.addOneTimeEventListener,s.Mixin.Events.fire=s.Mixin.Events.fireEvent,function(){var n="ActiveXObject"in e,i=n&&!t.addEventListener,o=navigator.userAgent.toLowerCase(),u=-1!==o.indexOf("webkit"),a=-1!==o.indexOf("chrome"),f=-1!==o.indexOf("phantom"),l=-1!==o.indexOf("android"),c=-1!==o.search("android [23]"),h=-1!==o.indexOf("gecko"),p=typeof orientation!=r+"",d=!e.PointerEvent&&e.MSPointerEvent,v=e.PointerEvent&&e.navigator.pointerEnabled||d,m="devicePixelRatio"in e&&e.devicePixelRatio>1||"matchMedia"in e&&e.matchMedia("(min-resolution:144dpi)")&&e.matchMedia("(min-resolution:144dpi)").matches,g=t.documentElement,y=n&&"transition"in g.style,b="WebKitCSSMatrix"in e&&"m11"in new e.WebKitCSSMatrix&&!c,w="MozPerspective"in g.style,E="OTransition"in g.style,S=!e.L_DISABLE_3D&&(y||b||w||E)&&!f,x=!e.L_NO_TOUCH&&!f&&(v||"ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch);s.Browser={ie:n,ielt9:i,webkit:u,gecko:h&&!u&&!e.opera&&!n,android:l,android23:c,chrome:a,ie3d:y,webkit3d:b,gecko3d:w,opera3d:E,any3d:S,mobile:p,mobileWebkit:p&&u,mobileWebkit3d:p&&b,mobileOpera:p&&e.opera,touch:x,msPointer:d,pointer:v,retina:m}}(),s.Point=function(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t},s.Point.prototype={clone:function(){return new s.Point(this.x,this.y)},add:function(e){return this.clone()._add(s.point(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(s.point(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},distanceTo:function(e){e=s.point(e);var t=e.x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return e=s.point(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=s.point(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+s.Util.formatNum(this.x)+", "+s.Util.formatNum(this.y)+")"}},s.point=function(e,t,n){return e instanceof s.Point?e:s.Util.isArray(e)?new s.Point(e[0],e[1]):e===r||null===e?e:new s.Point(e,t,n)},s.Bounds=function(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;i>r;r++)this.extend(n[r])},s.Bounds.prototype={extend:function(e){return e=s.point(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new s.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new s.Point(this.min.x,this.max.y)},getTopRight:function(){return new s.Point(this.max.x,this.min.y)},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return e="number"==typeof e[0]||e instanceof s.Point?s.point(e):s.bounds(e),e instanceof s.Bounds?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=s.bounds(e);var t=this.min,n=this.max,r=e.min,i=e.max,o=i.x>=t.x&&r.x<=n.x,u=i.y>=t.y&&r.y<=n.y;return o&&u},isValid:function(){return!!this.min&&!!this.max}},s.bounds=function(e,t){return!e||e instanceof s.Bounds?e:new s.Bounds(e,t)},s.Transformation=function(e,t,n,r){this._a=e,this._b=t,this._c=n,this._d=r},s.Transformation.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new s.Point((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}},s.DomUtil={get:function(e){return"string"==typeof e?t.getElementById(e):e},getStyle:function(e,n){var r=e.style[n];if(!r&&e.currentStyle&&(r=e.currentStyle[n]),(!r||"auto"===r)&&t.defaultView){var i=t.defaultView.getComputedStyle(e,null);r=i?i[n]:null}return"auto"===r?null:r},getViewportOffset:function(e){var n,r=0,i=0,o=e,u=t.body,a=t.documentElement;do{if(r+=o.offsetTop||0,i+=o.offsetLeft||0,r+=parseInt(s.DomUtil.getStyle(o,"borderTopWidth"),10)||0,i+=parseInt(s.DomUtil.getStyle(o,"borderLeftWidth"),10)||0,n=s.DomUtil.getStyle(o,"position"),o.offsetParent===u&&"absolute"===n)break;if("fixed"===n){r+=u.scrollTop||a.scrollTop||0,i+=u.scrollLeft||a.scrollLeft||0;break}if("relative"===n&&!o.offsetLeft){var f=s.DomUtil.getStyle(o,"width"),l=s.DomUtil.getStyle(o,"max-width"),c=o.getBoundingClientRect();("none"!==f||"none"!==l)&&(i+=c.left+o.clientLeft),r+=c.top+(u.scrollTop||a.scrollTop||0);break}o=o.offsetParent}while(o);o=e;do{if(o===u)break;r-=o.scrollTop||0,i-=o.scrollLeft||0,o=o.parentNode}while(o);return new s.Point(i,r)},documentIsLtr:function(){return s.DomUtil._docIsLtrCached||(s.DomUtil._docIsLtrCached=!0,s.DomUtil._docIsLtr="ltr"===s.DomUtil.getStyle(t.body,"direction")),s.DomUtil._docIsLtr},create:function(e,n,r){var i=t.createElement(e);return i.className=n,r&&r.appendChild(i),i},hasClass:function(e,t){if(e.classList!==r)return e.classList.contains(t);var n=s.DomUtil._getClass(e);return n.length>0&&(new RegExp("(^|\\s)"+t+"(\\s|$)")).test(n)},addClass:function(e,t){if(e.classList!==r)for(var n=s.Util.splitWords(t),i=0,o=n.length;o>i;i++)e.classList.add(n[i]);else if(!s.DomUtil.hasClass(e,t)){var u=s.DomUtil._getClass(e);s.DomUtil._setClass(e,(u?u+" ":"")+t)}},removeClass:function(e,t){e.classList!==r?e.classList.remove(t):s.DomUtil._setClass(e,s.Util.trim((" "+s.DomUtil._getClass(e)+" ").replace(" "+t+" "," ")))},_setClass:function(e,t){e.className.baseVal===r?e.className=t:e.className.baseVal=t},_getClass:function(e){return e.className.baseVal===r?e.className:e.className.baseVal},setOpacity:function(e,t){if("opacity"in e.style)e.style.opacity=t;else if("filter"in e.style){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(r)}catch(i){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}},testProp:function(e){for(var n=t.documentElement.style,r=0;r<e.length;r++)if(e[r]in n)return e[r];return!1},getTranslateString:function(e){var t=s.Browser.webkit3d,n="translate"+(t?"3d":"")+"(",r=(t?",0":"")+")";return n+e.x+"px,"+e.y+"px"+r},getScaleString:function(e,t){var n=s.DomUtil.getTranslateString(t.add(t.multiplyBy(-1*e))),r=" scale("+e+") ";return n+r},setPosition:function(e,t,n){e._leaflet_pos=t,!n&&s.Browser.any3d?e.style[s.DomUtil.TRANSFORM]=s.DomUtil.getTranslateString(t):(e.style.left=t.x+"px",e.style.top=t.y+"px")},getPosition:function(e){return e._leaflet_pos}},s.DomUtil.TRANSFORM=s.DomUtil.testProp(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),s.DomUtil.TRANSITION=s.DomUtil.testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),s.DomUtil.TRANSITION_END="webkitTransition"===s.DomUtil.TRANSITION||"OTransition"===s.DomUtil.TRANSITION?s.DomUtil.TRANSITION+"End":"transitionend",function(){if("onselectstart"in t)s.extend(s.DomUtil,{disableTextSelection:function(){s.DomEvent.on(e,"selectstart",s.DomEvent.preventDefault)},enableTextSelection:function(){s.DomEvent.off(e,"selectstart",s.DomEvent.preventDefault)}});else{var n=s.DomUtil.testProp(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);s.extend(s.DomUtil,{disableTextSelection:function(){if(n){var e=t.documentElement.style;this._userSelect=e[n],e[n]="none"}},enableTextSelection:function(){n&&(t.documentElement.style[n]=this._userSelect,delete this._userSelect)}})}s.extend(s.DomUtil,{disableImageDrag:function(){s.DomEvent.on(e,"dragstart",s.DomEvent.preventDefault)},enableImageDrag:function(){s.DomEvent.off(e,"dragstart",s.DomEvent.preventDefault)}})}(),s.LatLng=function(e,t,n){if(e=parseFloat(e),t=parseFloat(t),isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=e,this.lng=t,n!==r&&(this.alt=parseFloat(n))},s.extend(s.LatLng,{DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,MAX_MARGIN:1e-9}),s.LatLng.prototype={equals:function(e){if(!e)return!1;e=s.latLng(e);var t=Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng));return t<=s.LatLng.MAX_MARGIN},toString:function(e){return"LatLng("+s.Util.formatNum(this.lat,e)+", "+s.Util.formatNum(this.lng,e)+")"},distanceTo:function(e){e=s.latLng(e);var t=6378137,n=s.LatLng.DEG_TO_RAD,r=(e.lat-this.lat)*n,i=(e.lng-this.lng)*n,o=this.lat*n,u=e.lat*n,a=Math.sin(r/2),f=Math.sin(i/2),l=a*a+f*f*Math.cos(o)*Math.cos(u);return 2*t*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))},wrap:function(e,t){var n=this.lng;return e=e||-180,t=t||180,n=(n+t)%(t-e)+(e>n||n===t?t:e),new s.LatLng(this.lat,n)}},s.latLng=function(e,t){return e instanceof s.LatLng?e:s.Util.isArray(e)?"number"==typeof e[0]||"string"==typeof e[0]?new s.LatLng(e[0],e[1],e[2]):null:e===r||null===e?e:"object"==typeof e&&"lat"in e?new s.LatLng(e.lat,"lng"in e?e.lng:e.lon):t===r?null:new s.LatLng(e,t)},s.LatLngBounds=function(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;i>r;r++)this.extend(n[r])},s.LatLngBounds.prototype={extend:function(e){if(!e)return this;var t=s.latLng(e);return e=null!==t?t:s.latLngBounds(e),e instanceof s.LatLng?this._southWest||this._northEast?(this._southWest.lat=Math.min(e.lat,this._southWest.lat),this._southWest.lng=Math.min(e.lng,this._southWest.lng),this._northEast.lat=Math.max(e.lat,this._northEast.lat),this._northEast.lng=Math.max(e.lng,this._northEast.lng)):(this._southWest=new s.LatLng(e.lat,e.lng),this._northEast=new s.LatLng(e.lat,e.lng)):e instanceof s.LatLngBounds&&(this.extend(e._southWest),this.extend(e._northEast)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,i=Math.abs(t.lng-n.lng)*e;return new s.LatLngBounds(new s.LatLng(t.lat-r,t.lng-i),new s.LatLng(n.lat+r,n.lng+i))},getCenter:function(){return new s.LatLng((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new s.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new s.LatLng(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"==typeof e[0]||e instanceof s.LatLng?s.latLng(e):s.latLngBounds(e);var t,n,r=this._southWest,i=this._northEast;return e instanceof s.LatLngBounds?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=i.lat&&t.lng>=r.lng&&n.lng<=i.lng},intersects:function(e){e=s.latLngBounds(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),o=i.lat>=t.lat&&r.lat<=n.lat,u=i.lng>=t.lng&&r.lng<=n.lng;return o&&u},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e){return e?(e=s.latLngBounds(e),this._southWest.equals(e.getSouthWest())&&this._northEast.equals(e.getNorthEast())):!1},isValid:function(){return!!this._southWest&&!!this._northEast}},s.latLngBounds=function(e,t){return!e||e instanceof s.LatLngBounds?e:new s.LatLngBounds(e,t)},s.Projection={},s.Projection.SphericalMercator={MAX_LATITUDE:85.0511287798,project:function(e){var t=s.LatLng.DEG_TO_RAD,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),i=e.lng*t,o=r*t;return o=Math.log(Math.tan(Math.PI/4+o/2)),new s.Point(i,o)},unproject:function(e){var t=s.LatLng.RAD_TO_DEG,n=e.x*t,r=(2*Math.atan(Math.exp(e.y))-Math.PI/2)*t;return new s.LatLng(r,n)}},s.Projection.LonLat={project:function(e){return new s.Point(e.lng,e.lat)},unproject:function(e){return new s.LatLng(e.y,e.x)}},s.CRS={latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},scale:function(e){return 256*Math.pow(2,e)},getSize:function(e){var t=this.scale(e);return s.point(t,t)}},s.CRS.Simple=s.extend({},s.CRS,{projection:s.Projection.LonLat,transformation:new s.Transformation(1,0,-1,0),scale:function(e){return Math.pow(2,e)}}),s.CRS.EPSG3857=s.extend({},s.CRS,{code:"EPSG:3857",projection:s.Projection.SphericalMercator,transformation:new s.Transformation(.5/Math.PI,.5,-0.5/Math.PI,.5),project:function(e){var t=this.projection.project(e),n=6378137;return t.multiplyBy(n)}}),s.CRS.EPSG900913=s.extend({},s.CRS.EPSG3857,{code:"EPSG:900913"}),s.CRS.EPSG4326=s.extend({},s.CRS,{code:"EPSG:4326",projection:s.Projection.LonLat,transformation:new s.Transformation(1/360,.5,-1/360,.5)}),s.Map=s.Class.extend({includes:s.Mixin.Events,options:{crs:s.CRS.EPSG3857,fadeAnimation:s.DomUtil.TRANSITION&&!s.Browser.android23,trackResize:!0,markerZoomAnimation:s.DomUtil.TRANSITION&&s.Browser.any3d},initialize:function(e,t){t=s.setOptions(this,t),this._initContainer(e),this._initLayout(),this._onResize=s.bind(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),t.center&&t.zoom!==r&&this.setView(s.latLng(t.center),t.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._tileLayersNum=0,this.callInitHooks(),this._addLayers(t.layers)},setView:function(e,t){return t=t===r?this.getZoom():t,this._resetView(s.latLng(e),this._limitZoom(t)),this},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=this._limitZoom(e),this)},zoomIn:function(e,t){return this.setZoom(this._zoom+(e||1),t)},zoomOut:function(e,t){return this.setZoom(this._zoom-(e||1),t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),i=this.getSize().divideBy(2),o=e instanceof s.Point?e:this.latLngToContainerPoint(e),u=o.subtract(i).multiplyBy(1-1/r),a=this.containerPointToLatLng(i.add(u));return this.setView(a,t,{zoom:n})},fitBounds:function(e,t){t=t||{},e=e.getBounds?e.getBounds():s.latLngBounds(e);var n=s.point(t.paddingTopLeft||t.padding||[0,0]),r=s.point(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(e,!1,n.add(r));i=t.maxZoom?Math.min(t.maxZoom,i):i;var o=r.subtract(n).divideBy(2),u=this.project(e.getSouthWest(),i),a=this.project(e.getNorthEast(),i),f=this.unproject(u.add(a).divideBy(2).add(o),i);return this.setView(f,i,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e){return this.fire("movestart"),this._rawPanBy(s.point(e)),this.fire("move"),this.fire("moveend")},setMaxBounds:function(e){return e=s.latLngBounds(e),this.options.maxBounds=e,e?(this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds,this)):this.off("moveend",this._panInsideMaxBounds,this)},panInsideBounds:function(e,t){var n=this.getCenter(),r=this._limitCenter(n,this._zoom,e);return n.equals(r)?this:this.panTo(r,t)},addLayer:function(e){var t=s.stamp(e);return this._layers[t]?this:(this._layers[t]=e,!e.options||isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[t]=e,this._updateZoomLevels()),this.options.zoomAnimation&&s.TileLayer&&e instanceof s.TileLayer&&(this._tileLayersNum++,this._tileLayersToLoad++,e.on("load",this._onTileLayerLoad,this)),this._loaded&&this._layerAdd(e),this)},removeLayer:function(e){var t=s.stamp(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&this.fire("layerremove",{layer:e}),this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels()),this.options.zoomAnimation&&s.TileLayer&&e instanceof s.TileLayer&&(this._tileLayersNum--,this._tileLayersToLoad--,e.off("load",this._onTileLayerLoad,this)),this):this},hasLayer:function(e){return e?s.stamp(e)in this._layers:!1},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},invalidateSize:function(e){if(!this._loaded)return this;e=s.extend({animate:!1,pan:!0},e===!0?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._initialCenter=null;var n=this.getSize(),r=t.divideBy(2).round(),i=n.divideBy(2).round(),o=r.subtract(i);return o.x||o.y?(e.animate&&e.pan?this.panBy(o):(e.pan&&this._rawPanBy(o),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s.bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:n})):this},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){this._loaded&&this.fire("unload"),this._initEvents("off");try{delete this._container._leaflet}catch(e){this._container._leaflet=r}return this._clearPanes(),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this},getCenter:function(){return this._checkIfLoaded(),this._initialCenter&&!this._moved()?this._initialCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds(),t=this.unproject(e.getBottomLeft()),n=this.unproject(e.getTopRight());return new s.LatLngBounds(t,n)},getMinZoom:function(){return this.options.minZoom===r?this._layersMinZoom===r?0:this._layersMinZoom:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===r?this._layersMaxZoom===r?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=s.latLngBounds(e);var r,i=this.getMinZoom()-(t?1:0),o=this.getMaxZoom(),u=this.getSize(),a=e.getNorthWest(),f=e.getSouthEast(),l=!0;n=s.point(n||[0,0]);do i++,r=this.project(f,i).subtract(this.project(a,i)).add(n),l=t?r.x<u.x||r.y<u.y:u.contains(r);while(l&&o>=i);return l&&t?null:t?i:i-1},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new s.Point(this._container.clientWidth,this._container.clientHeight),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(){var e=this._getTopLeftPoint();return new s.Bounds(e,e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._initialTopLeftPoint},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e){var t=this.options.crs;return t.scale(e)/t.scale(this._zoom)},getScaleZoom:function(e){return this._zoom+Math.log(e)/Math.LN2},project:function(e,t){return t=t===r?this._zoom:t,this.options.crs.latLngToPoint(s.latLng(e),t)},unproject:function(e,t){return t=t===r?this._zoom:t,this.options.crs.pointToLatLng(s.point(e),t)},layerPointToLatLng:function(e){var t=s.point(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){var t=this.project(s.latLng(e))._round();return t._subtract(this.getPixelOrigin())},containerPointToLayerPoint:function(e){return s.point(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return s.point(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(s.point(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(s.latLng(e)))},mouseEventToContainerPoint:function(e){return s.DomEvent.getMousePosition(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=s.DomUtil.get(e);if(!t)throw new Error("Map container not found.");if(t._leaflet)throw new Error("Map container is already initialized.");t._leaflet=!0},_initLayout:function(){var e=this._container;s.DomUtil.addClass(e,"leaflet-container"+(s.Browser.touch?" leaflet-touch":"")+(s.Browser.retina?" leaflet-retina":"")+(s.Browser.ielt9?" leaflet-oldie":"")+(this.options.fadeAnimation?" leaflet-fade-anim":""));var t=s.DomUtil.getStyle(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._mapPane=e.mapPane=this._createPane("leaflet-map-pane",this._container),this._tilePane=e.tilePane=this._createPane("leaflet-tile-pane",this._mapPane),e.objectsPane=this._createPane("leaflet-objects-pane",this._mapPane),e.shadowPane=this._createPane("leaflet-shadow-pane"),e.overlayPane=this._createPane("leaflet-overlay-pane"),e.markerPane=this._createPane("leaflet-marker-pane"),e.popupPane=this._createPane("leaflet-popup-pane");var t=" leaflet-zoom-hide";this.options.markerZoomAnimation||(s.DomUtil.addClass(e.markerPane,t),s.DomUtil.addClass(e.shadowPane,t),s.DomUtil.addClass(e.popupPane,t))},_createPane:function(e,t){return s.DomUtil.create("div",e,t||this._panes.objectsPane)},_clearPanes:function(){this._container.removeChild(this._mapPane)},_addLayers:function(e){e=e?s.Util.isArray(e)?e:[e]:[];for(var t=0,n=e.length;n>t;t++)this.addLayer(e[t])},_resetView:function(e,t,n,r){var i=this._zoom!==t;r||(this.fire("movestart"),i&&this.fire("zoomstart")),this._zoom=t,this._initialCenter=e,this._initialTopLeftPoint=this._getNewTopLeftPoint(e),n?this._initialTopLeftPoint._add(this._getMapPanePos()):s.DomUtil.setPosition(this._mapPane,new s.Point(0,0)),this._tileLayersToLoad=this._tileLayersNum;var o=!this._loaded;this._loaded=!0,this.fire("viewreset",{hard:!n}),o&&(this.fire("load"),this.eachLayer(this._layerAdd,this)),this.fire("move"),(i||r)&&this.fire("zoomend"),this.fire("moveend",{hard:!n})},_rawPanBy:function(e){s.DomUtil.setPosition(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_updateZoomLevels:function(){var e,t=1/0,n=-1/0,i=this._getZoomSpan();for(e in this._zoomBoundLayers){var s=this._zoomBoundLayers[e];isNaN(s.options.minZoom)||(t=Math.min(t,s.options.minZoom)),isNaN(s.options.maxZoom)||(n=Math.max(n,s.options.maxZoom))}e===r?this._layersMaxZoom=this._layersMinZoom=r:(this._layersMaxZoom=n,this._layersMinZoom=t),i!==this._getZoomSpan()&&this.fire("zoomlevelschange")},_panInsideMaxBounds:function(){this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){if(s.DomEvent){t=t||"on",s.DomEvent[t](this._container,"click",this._onMouseClick,this);var n,r,i=["dblclick","mousedown","mouseup","mouseenter","mouseleave","mousemove","contextmenu"];for(n=0,r=i.length;r>n;n++)s.DomEvent[t](this._container,i[n],this._fireMouseEvent,this);this.options.trackResize&&s.DomEvent[t](e,"resize",this._onResize,this)}},_onResize:function(){s.Util.cancelAnimFrame(this._resizeRequest),this._resizeRequest=s.Util.requestAnimFrame(function(){this.invalidateSize({debounceMoveend:!0})},this,!1,this._container)},_onMouseClick:function(e){!this._loaded||!e._simulated&&(this.dragging&&this.dragging.moved()||this.boxZoom&&this.boxZoom.moved())||s.DomEvent._skipped(e)||(this.fire("preclick"),this._fireMouseEvent(e))},_fireMouseEvent:function(e){if(this._loaded&&!s.DomEvent._skipped(e)){var t=e.type;if(t="mouseenter"===t?"mouseover":"mouseleave"===t?"mouseout":t,this.hasEventListeners(t)){"contextmenu"===t&&s.DomEvent.preventDefault(e);var n=this.mouseEventToContainerPoint(e),r=this.containerPointToLayerPoint(n),i=this.layerPointToLatLng(r);this.fire(t,{latlng:i,layerPoint:r,containerPoint:n,originalEvent:e})}}},_onTileLayerLoad:function(){this._tileLayersToLoad--,this._tileLayersNum&&!this._tileLayersToLoad&&this.fire("tilelayersload")},_clearHandlers:function(){for(var e=0,t=this._handlers.length;t>e;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,this):this.on("load",e,t),this},_layerAdd:function(e){e.onAdd(this),this.fire("layeradd",{layer:e})},_getMapPanePos:function(){return s.DomUtil.getPosition(this._mapPane)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(){return this.getPixelOrigin().subtract(this._getMapPanePos())},_getNewTopLeftPoint:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewTopLeftPoint(n,t).add(this._getMapPanePos());return this.project(e,t)._subtract(r)},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),i=this.getSize().divideBy(2),o=new s.Bounds(r.subtract(i),r.add(i)),u=this._getBoundsOffset(o,n,t);return this.unproject(r.add(u),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new s.Bounds(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,n){var r=this.project(t.getNorthWest(),n).subtract(e.min),i=this.project(t.getSouthEast(),n).subtract(e.max),o=this._rebound(r.x,-i.x),u=this._rebound(r.y,-i.y);return new s.Point(o,u)},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom();return Math.max(t,Math.min(n,e))}}),s.map=function(e,t){return new s.Map(e,t)},s.Projection.Mercator={MAX_LATITUDE:85.0840591556,R_MINOR:6356752.314245179,R_MAJOR:6378137,project:function(e){var t=s.LatLng.DEG_TO_RAD,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),i=this.R_MAJOR,o=this.R_MINOR,u=e.lng*t*i,a=r*t,f=o/i,l=Math.sqrt(1-f*f),c=l*Math.sin(a);c=Math.pow((1-c)/(1+c),.5*l);var h=Math.tan(.5*(.5*Math.PI-a))/c;return a=-i*Math.log(h),new s.Point(u,a)},unproject:function(e){for(var t,n=s.LatLng.RAD_TO_DEG,r=this.R_MAJOR,i=this.R_MINOR,o=e.x*n/r,u=i/r,a=Math.sqrt(1-u*u),f=Math.exp(-e.y/r),l=Math.PI/2-2*Math.atan(f),c=15,h=1e-7,p=c,d=.1;Math.abs(d)>h&&--p>0;)t=a*Math.sin(l),d=Math.PI/2-2*Math.atan(f*Math.pow((1-t)/(1+t),.5*a))-l,l+=d;return new s.LatLng(l*n,o)}},s.CRS.EPSG3395=s.extend({},s.CRS,{code:"EPSG:3395",projection:s.Projection.Mercator,transformation:function(){var e=s.Projection.Mercator,t=e.R_MAJOR,n=.5/(Math.PI*t);return new s.Transformation(n,.5,-n,.5)}()}),s.TileLayer=s.Class.extend({includes:s.Mixin.Events,options:{minZoom:0,maxZoom:18,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",zoomOffset:0,opacity:1,unloadInvisibleTiles:s.Browser.mobile,updateWhenIdle:s.Browser.mobile},initialize:function(e,t){t=s.setOptions(this,t),t.detectRetina&&s.Browser.retina&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomOffset++,t.minZoom>0&&t.minZoom--,this.options.maxZoom--),t.bounds&&(t.bounds=s.latLngBounds(t.bounds)),this._url=e;var n=this.options.subdomains;"string"==typeof n&&(this.options.subdomains=n.split(""))},onAdd:function(e){this._map=e,this._animated=e._zoomAnimated,this._initContainer(),e.on({viewreset:this._reset,moveend:this._update},this),this._animated&&e.on({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||(this._limitedUpdate=s.Util.limitExecByInterval(this._update,150,this),e.on("move",this._limitedUpdate,this)),this._reset(),this._update()},addTo:function(e){return e.addLayer(this),this},onRemove:function(e){this._container.parentNode.removeChild(this._container),e.off({viewreset:this._reset,moveend:this._update},this),this._animated&&e.off({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||e.off("move",this._limitedUpdate,this),this._container=null,this._map=null},bringToFront:function(){var e=this._map._panes.tilePane;return this._container&&(e.appendChild(this._container),this._setAutoZIndex(e,Math.max)),this},bringToBack:function(){var e=this._map._panes.tilePane;return this._container&&(e.insertBefore(this._container,e.firstChild),this._setAutoZIndex(e,Math.min)),this},getAttribution:function(){return this.options.attribution},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},setUrl:function(e,t){return this._url=e,t||this.redraw(),this},redraw:function(){return this._map&&(this._reset({hard:!0}),this._update()),this},_updateZIndex:function(){this._container&&this.options.zIndex!==r&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e,t){var n,r,i,s=e.children,o=-t(1/0,-1/0);for(r=0,i=s.length;i>r;r++)s[r]!==this._container&&(n=parseInt(s[r].style.zIndex,10),isNaN(n)||(o=t(o,n)));this.options.zIndex=this._container.style.zIndex=(isFinite(o)?o:0)+t(1,-1)},_updateOpacity:function(){var e,t=this._tiles;if(s.Browser.ielt9)for(e in t)s.DomUtil.setOpacity(t[e],this.options.opacity);else s.DomUtil.setOpacity(this._container,this.options.opacity)},_initContainer:function(){var e=this._map._panes.tilePane;if(!this._container){if(this._container=s.DomUtil.create("div","leaflet-layer"),this._updateZIndex(),this._animated){var t="leaflet-tile-container";this._bgBuffer=s.DomUtil.create("div",t,this._container),this._tileContainer=s.DomUtil.create("div",t,this._container)}else this._tileContainer=this._container;e.appendChild(this._container),this.options.opacity<1&&this._updateOpacity()}},_reset:function(e){for(var t in this._tiles)this.fire("tileunload",{tile:this._tiles[t]});this._tiles={},this._tilesToLoad=0,this.options.reuseTiles&&(this._unusedTiles=[]),this._tileContainer.innerHTML="",this._animated&&e&&e.hard&&this._clearBgBuffer(),this._initContainer()},_getTileSize:function(){var e=this._map,t=e.getZoom()+this.options.zoomOffset,n=this.options.maxNativeZoom,r=this.options.tileSize;return n&&t>n&&(r=Math.round(e.getZoomScale(t)/e.getZoomScale(n)*r)),r},_update:function(){if(this._map){var e=this._map,t=e.getPixelBounds(),n=e.getZoom(),r=this._getTileSize();if(!(n>this.options.maxZoom||n<this.options.minZoom)){var i=s.bounds(t.min.divideBy(r)._floor(),t.max.divideBy(r)._floor());this._addTilesFromCenterOut(i),(this.options.unloadInvisibleTiles||this.options.reuseTiles)&&this._removeOtherTiles(i)}}},_addTilesFromCenterOut:function(e){var n,r,i,o=[],u=e.getCenter();for(n=e.min.y;n<=e.max.y;n++)for(r=e.min.x;r<=e.max.x;r++)i=new s.Point(r,n),this._tileShouldBeLoaded(i)&&o.push(i);var a=o.length;if(0!==a){o.sort(function(e,t){return e.distanceTo(u)-t.distanceTo(u)});var f=t.createDocumentFragment();for(this._tilesToLoad||this.fire("loading"),this._tilesToLoad+=a,r=0;a>r;r++)this._addTile(o[r],f);this._tileContainer.appendChild(f)}},_tileShouldBeLoaded:function(e){if(e.x+":"+e.y in this._tiles)return!1;var t=this.options;if(!t.continuousWorld){var n=this._getWrapTileNum();if(t.noWrap&&(e.x<0||e.x>=n.x)||e.y<0||e.y>=n.y)return!1}if(t.bounds){var r=this._getTileSize(),i=e.multiplyBy(r),s=i.add([r,r]),o=this._map.unproject(i),u=this._map.unproject(s);if(t.continuousWorld||t.noWrap||(o=o.wrap(),u=u.wrap()),!t.bounds.intersects([o,u]))return!1}return!0},_removeOtherTiles:function(e){var t,n,r,i;for(i in this._tiles)t=i.split(":"),n=parseInt(t[0],10),r=parseInt(t[1],10),(n<e.min.x||n>e.max.x||r<e.min.y||r>e.max.y)&&this._removeTile(i)},_removeTile:function(e){var t=this._tiles[e];this.fire("tileunload",{tile:t,url:t.src}),this.options.reuseTiles?(s.DomUtil.removeClass(t,"leaflet-tile-loaded"),this._unusedTiles.push(t)):t.parentNode===this._tileContainer&&this._tileContainer.removeChild(t),s.Browser.android||(t.onload=null,t.src=s.Util.emptyImageUrl),delete this._tiles[e]},_addTile:function(e,t){var n=this._getTilePos(e),r=this._getTile();s.DomUtil.setPosition(r,n,s.Browser.chrome),this._tiles[e.x+":"+e.y]=r,this._loadTile(r,e),r.parentNode!==this._tileContainer&&t.appendChild(r)},_getZoomForUrl:function(){var e=this.options,t=this._map.getZoom();return e.zoomReverse&&(t=e.maxZoom-t),t+=e.zoomOffset,e.maxNativeZoom?Math.min(t,e.maxNativeZoom):t},_getTilePos:function(e){var t=this._map.getPixelOrigin(),n=this._getTileSize();return e.multiplyBy(n).subtract(t)},getTileUrl:function(e){return s.Util.template(this._url,s.extend({s:this._getSubdomain(e),z:e.z,x:e.x,y:e.y},this.options))},_getWrapTileNum:function(){var e=this._map.options.crs,t=e.getSize(this._map.getZoom());return t.divideBy(this._getTileSize())._floor()},_adjustTilePoint:function(e){var t=this._getWrapTileNum();this.options.continuousWorld||this.options.noWrap||(e.x=(e.x%t.x+t.x)%t.x),this.options.tms&&(e.y=t.y-e.y-1),e.z=this._getZoomForUrl()},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_getTile:function(){if(this.options.reuseTiles&&this._unusedTiles.length>0){var e=this._unusedTiles.pop();return this._resetTile(e),e}return this._createTile()},_resetTile:function(){},_createTile:function(){var e=s.DomUtil.create("img","leaflet-tile");return e.style.width=e.style.height=this._getTileSize()+"px",e.galleryimg="no",e.onselectstart=e.onmousemove=s.Util.falseFn,s.Browser.ielt9&&this.options.opacity!==r&&s.DomUtil.setOpacity(e,this.options.opacity),s.Browser.mobileWebkit3d&&(e.style.WebkitBackfaceVisibility="hidden"),e},_loadTile:function(e,t){e._layer=this,e.onload=this._tileOnLoad,e.onerror=this._tileOnError,this._adjustTilePoint(t),e.src=this.getTileUrl(t),this.fire("tileloadstart",{tile:e,url:e.src})},_tileLoaded:function(){this._tilesToLoad--,this._animated&&s.DomUtil.addClass(this._tileContainer,"leaflet-zoom-animated"),this._tilesToLoad||(this.fire("load"),this._animated&&(clearTimeout(this._clearBgBufferTimer),this._clearBgBufferTimer=setTimeout(s.bind(this._clearBgBuffer,this),500)))},_tileOnLoad:function(){var e=this._layer;this.src!==s.Util.emptyImageUrl&&(s.DomUtil.addClass(this,"leaflet-tile-loaded"),e.fire("tileload",{tile:this,url:this.src})),e._tileLoaded()},_tileOnError:function(){var e=this._layer;e.fire("tileerror",{tile:this,url:this.src});var t=e.options.errorTileUrl;t&&(this.src=t),e._tileLoaded()}}),s.tileLayer=function(e,t){return new s.TileLayer(e,t)},s.TileLayer.WMS=s.TileLayer.extend({defaultWmsParams:{service:"WMS",request:"GetMap",version:"1.1.1",layers:"",styles:"",format:"image/jpeg",transparent:!1},initialize:function(e,t){this._url=e;var n=s.extend({},this.defaultWmsParams),r=t.tileSize||this.options.tileSize;t.detectRetina&&s.Browser.retina?n.width=n.height=2*r:n.width=n.height=r;for(var i in t)this.options.hasOwnProperty(i)||"crs"===i||(n[i]=t[i]);this.wmsParams=n,s.setOptions(this,t)},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,s.TileLayer.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._map,n=this.options.tileSize,r=e.multiplyBy(n),i=r.add([n,n]),o=this._crs.project(t.unproject(r,e.z)),u=this._crs.project(t.unproject(i,e.z)),a=this._wmsVersion>=1.3&&this._crs===s.CRS.EPSG4326?[u.y,o.x,o.y,u.x].join(","):[o.x,u.y,u.x,o.y].join(","),f=s.Util.template(this._url,{s:this._getSubdomain(e)});return f+s.Util.getParamString(this.wmsParams,f,!0)+"&BBOX="+a},setParams:function(e,t){return s.extend(this.wmsParams,e),t||this.redraw(),this}}),s.tileLayer.wms=function(e,t){return new s.TileLayer.WMS(e,t)},s.TileLayer.Canvas=s.TileLayer.extend({options:{async:!1},initialize:function(e){s.setOptions(this,e)},redraw:function(){this._map&&(this._reset({hard:!0}),this._update());for(var e in this._tiles)this._redrawTile(this._tiles[e]);return this},_redrawTile:function(e){this.drawTile(e,e._tilePoint,this._map._zoom)},_createTile:function(){var e=s.DomUtil.create("canvas","leaflet-tile");return e.width=e.height=this.options.tileSize,e.onselectstart=e.onmousemove=s.Util.falseFn,e},_loadTile:function(e,t){e._layer=this,e._tilePoint=t,this._redrawTile(e),this.options.async||this.tileDrawn(e)},drawTile:function(){},tileDrawn:function(e){this._tileOnLoad.call(e)}}),s.tileLayer.canvas=function(e){return new s.TileLayer.Canvas(e)},s.ImageOverlay=s.Class.extend({includes:s.Mixin.Events,options:{opacity:1},initialize:function(e,t,n){this._url=e,this._bounds=s.latLngBounds(t),s.setOptions(this,n)},onAdd:function(e){this._map=e,this._image||this._initImage(),e._panes.overlayPane.appendChild(this._image),e.on("viewreset",this._reset,this),e.options.zoomAnimation&&s.Browser.any3d&&e.on("zoomanim",this._animateZoom,this),this._reset()},onRemove:function(e){e.getPanes().overlayPane.removeChild(this._image),e.off("viewreset",this._reset,this),e.options.zoomAnimation&&e.off("zoomanim",this._animateZoom,this)},addTo:function(e){return e.addLayer(this),this},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},bringToFront:function(){return this._image&&this._map._panes.overlayPane.appendChild(this._image),this},bringToBack:function(){var e=this._map._panes.overlayPane;return this._image&&e.insertBefore(this._image,e.firstChild),this},setUrl:function(e){this._url=e,this._image.src=this._url},getAttribution:function(){return this.options.attribution},_initImage:function(){this._image=s.DomUtil.create("img","leaflet-image-layer"),this._map.options.zoomAnimation&&s.Browser.any3d?s.DomUtil.addClass(this._image,"leaflet-zoom-animated"):s.DomUtil.addClass(this._image,"leaflet-zoom-hide"),this._updateOpacity(),s.extend(this._image,{galleryimg:"no",onselectstart:s.Util.falseFn,onmousemove:s.Util.falseFn,onload:s.bind(this._onImageLoad,this),src:this._url})},_animateZoom:function(e){var t=this._map,n=this._image,r=t.getZoomScale(e.zoom),i=this._bounds.getNorthWest(),o=this._bounds.getSouthEast(),u=t._latLngToNewLayerPoint(i,e.zoom,e.center),a=t._latLngToNewLayerPoint(o,e.zoom,e.center)._subtract(u),f=u._add(a._multiplyBy(.5*(1-1/r)));n.style[s.DomUtil.TRANSFORM]=s.DomUtil.getTranslateString(f)+" scale("+r+") "},_reset:function(){var e=this._image,t=this._map.latLngToLayerPoint(this._bounds.getNorthWest()),n=this._map.latLngToLayerPoint(this._bounds.getSouthEast())._subtract(t);s.DomUtil.setPosition(e,t),e.style.width=n.x+"px",e.style.height=n.y+"px"},_onImageLoad:function(){this.fire("load")},_updateOpacity:function(){s.DomUtil.setOpacity(this._image,this.options.opacity)}}),s.imageOverlay=function(e,t,n){return new s.ImageOverlay(e,t,n)},s.Icon=s.Class.extend({options:{className:""},initialize:function(e){s.setOptions(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r;return r=t&&"IMG"===t.tagName?this._createImg(n,t):this._createImg(n),this._setIconStyles(r,e),r},_setIconStyles:function(e,t){var n,r=this.options,i=s.point(r[t+"Size"]);n="shadow"===t?s.point(r.shadowAnchor||r.iconAnchor):s.point(r.iconAnchor),!n&&i&&(n=i.divideBy(2,!0)),e.className="leaflet-marker-"+t+" "+r.className,n&&(e.style.marginLeft=-n.x+"px",e.style.marginTop=-n.y+"px"),i&&(e.style.width=i.x+"px",e.style.height=i.y+"px")},_createImg:function(e,n){return n=n||t.createElement("img"),n.src=e,n},_getIconUrl:function(e){return s.Browser.retina&&this.options[e+"RetinaUrl"]?this.options[e+"RetinaUrl"]:this.options[e+"Url"]}}),s.icon=function(e){return new s.Icon(e)},s.Icon.Default=s.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},_getIconUrl:function(e){var t=e+"Url";if(this.options[t])return this.options[t];s.Browser.retina&&"icon"===e&&(e+="-2x");var n=s.Icon.Default.imagePath;if(!n)throw new Error("Couldn't autodetect L.Icon.Default.imagePath, set it manually.");return n+"/marker-"+e+".png"}}),s.Icon.Default.imagePath=function(){var e,n,r,i,s,o=t.getElementsByTagName("script"),u=/[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/;for(e=0,n=o.length;n>e;e++)if(r=o[e].src,i=r.match(u))return s=r.split(u)[0],(s?s+"/":"")+"images"}(),s.Marker=s.Class.extend({includes:s.Mixin.Events,options:{icon:new s.Icon.Default,title:"",alt:"",clickable:!0,draggable:!1,keyboard:!0,zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250},initialize:function(e,t){s.setOptions(this,t),this._latlng=s.latLng(e)},onAdd:function(e){this._map=e,e.on("viewreset",this.update,this),this._initIcon(),this.update(),this.fire("add"),e.options.zoomAnimation&&e.options.markerZoomAnimation&&e.on("zoomanim",this._animateZoom,this)},addTo:function(e){return e.addLayer(this),this},onRemove:function(e){this.dragging&&this.dragging.disable(),this._removeIcon(),this._removeShadow(),this.fire("remove"),e.off({viewreset:this.update,zoomanim:this._animateZoom},this),this._map=null},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=s.latLng(e),this.update(),this.fire("move",{latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update(),this},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup),this},update:function(){return this._icon&&this._setPos(this._map.latLngToLayerPoint(this._latlng).round()),this},_initIcon:function(){var e=this.options,t=this._map,n=t.options.zoomAnimation&&t.options.markerZoomAnimation,r=n?"leaflet-zoom-animated":"leaflet-zoom-hide",i=e.icon.createIcon(this._icon),o=!1;i!==this._icon&&(this._icon&&this._removeIcon(),o=!0,e.title&&(i.title=e.title),e.alt&&(i.alt=e.alt)),s.DomUtil.addClass(i,r),e.keyboard&&(i.tabIndex="0"),this._icon=i,this._initInteraction(),e.riseOnHover&&s.DomEvent.on(i,"mouseover",this._bringToFront,this).on(i,"mouseout",this._resetZIndex,this);var u=e.icon.createShadow(this._shadow),a=!1;u!==this._shadow&&(this._removeShadow(),a=!0),u&&s.DomUtil.addClass(u,r),this._shadow=u,e.opacity<1&&this._updateOpacity();var f=this._map._panes;o&&f.markerPane.appendChild(this._icon),u&&a&&f.shadowPane.appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&s.DomEvent.off(this._icon,"mouseover",this._bringToFront).off(this._icon,"mouseout",this._resetZIndex),this._map._panes.markerPane.removeChild(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&this._map._panes.shadowPane.removeChild(this._shadow),this._shadow=null},_setPos:function(e){s.DomUtil.setPosition(this._icon,e),this._shadow&&s.DomUtil.setPosition(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon.style.zIndex=this._zIndex+e},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.clickable){var e=this._icon,t=["dblclick","mousedown","mouseover","mouseout","contextmenu"];s.DomUtil.addClass(e,"leaflet-clickable"),s.DomEvent.on(e,"click",this._onMouseClick,this),s.DomEvent.on(e,"keypress",this._onKeyPress,this);for(var n=0;n<t.length;n++)s.DomEvent.on(e,t[n],this._fireMouseEvent,this);s.Handler.MarkerDrag&&(this.dragging=new s.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_onMouseClick:function(e){var t=this.dragging&&this.dragging.moved();(this.hasEventListeners(e.type)||t)&&s.DomEvent.stopPropagation(e),t||(this.dragging&&this.dragging._enabled||!this._map.dragging||!this._map.dragging.moved())&&this.fire(e.type,{originalEvent:e,latlng:this._latlng})},_onKeyPress:function(e){13===e.keyCode&&this.fire("click",{originalEvent:e,latlng:this._latlng})},_fireMouseEvent:function(e){this.fire(e.type,{originalEvent:e,latlng:this._latlng}),"contextmenu"===e.type&&this.hasEventListeners(e.type)&&s.DomEvent.preventDefault(e),"mousedown"!==e.type?s.DomEvent.stopPropagation(e):s.DomEvent.preventDefault(e)},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){s.DomUtil.setOpacity(this._icon,this.options.opacity),this._shadow&&s.DomUtil.setOpacity(this._shadow,this.options.opacity)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)}}),s.marker=function(e,t){return new s.Marker(e,t)},s.DivIcon=s.Icon.extend({options:{iconSize:[12,12],className:"leaflet-div-icon",html:!1},createIcon:function(e){var n=e&&"DIV"===e.tagName?e:t.createElement("div"),r=this.options;return r.html!==!1?n.innerHTML=r.html:n.innerHTML="",r.bgPos&&(n.style.backgroundPosition=-r.bgPos.x+"px "+ -r.bgPos.y+"px"),this._setIconStyles(n,"icon"),n},createShadow:function(){return null}}),s.divIcon=function(e){return new s.DivIcon(e)},s.Map.mergeOptions({closePopupOnClick:!0}),s.Popup=s.Class.extend({includes:s.Mixin.Events,options:{minWidth:50,maxWidth:300,autoPan:!0,closeButton:!0,offset:[0,7],autoPanPadding:[5,5],keepInView:!1,className:"",zoomAnimation:!0},initialize:function(e,t){s.setOptions(this,e),this._source=t,this._animated=s.Browser.any3d&&this.options.zoomAnimation,this._isOpen=!1},onAdd:function(e){this._map=e,this._container||this._initLayout();var t=e.options.fadeAnimation;t&&s.DomUtil.setOpacity(this._container,0),e._panes.popupPane.appendChild(this._container),e.on(this._getEvents(),this),this.update(),t&&s.DomUtil.setOpacity(this._container,1),this.fire("open"),e.fire("popupopen",{popup:this}),this._source&&this._source.fire("popupopen",{popup:this})},addTo:function(e){return e.addLayer(this),this},openOn:function(e){return e.openPopup(this),this},onRemove:function(e){e._panes.popupPane.removeChild(this._container),s.Util.falseFn(this._container.offsetWidth),e.off(this._getEvents(),this),e.options.fadeAnimation&&s.DomUtil.setOpacity(this._container,0),this._map=null,this.fire("close"),e.fire("popupclose",{popup:this}),this._source&&this._source.fire("popupclose",{popup:this})},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=s.latLng(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},_getEvents:function(){var e={viewreset:this._updatePosition};return this._animated&&(e.zoomanim=this._zoomAnimation),("closeOnClick"in this.options?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this._close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var e,t="leaflet-popup",n=t+" "+this.options.className+" leaflet-zoom-"+(this._animated?"animated":"hide"),r=this._container=s.DomUtil.create("div",n);this.options.closeButton&&(e=this._closeButton=s.DomUtil.create("a",t+"-close-button",r),e.href="#close",e.innerHTML="&#215;",s.DomEvent.disableClickPropagation(e),s.DomEvent.on(e,"click",this._onCloseButtonClick,this));var i=this._wrapper=s.DomUtil.create("div",t+"-content-wrapper",r);s.DomEvent.disableClickPropagation(i),this._contentNode=s.DomUtil.create("div",t+"-content",i),s.DomEvent.disableScrollPropagation(this._contentNode),s.DomEvent.on(i,"contextmenu",s.DomEvent.stopPropagation),this._tipContainer=s.DomUtil.create("div",t+"-tip-container",r),this._tip=s.DomUtil.create("div",t+"-tip",this._tipContainer)},_updateContent:function(){if(this._content){if("string"==typeof this._content)this._contentNode.innerHTML=this._content;else{for(;this._contentNode.hasChildNodes();)this._contentNode.removeChild(this._contentNode.firstChild);this._contentNode.appendChild(this._content)}this.fire("contentupdate")}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var r=e.offsetHeight,i=this.options.maxHeight,o="leaflet-popup-scrolled";i&&r>i?(t.height=i+"px",s.DomUtil.addClass(e,o)):s.DomUtil.removeClass(e,o),this._containerWidth=this._container.offsetWidth},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=this._animated,n=s.point(this.options.offset);t&&s.DomUtil.setPosition(this._container,e),this._containerBottom=-n.y-(t?0:e.y),this._containerLeft=-Math.round(this._containerWidth/2)+n.x+(t?0:e.x),this._container.style.bottom=this._containerBottom+"px",this._container.style.left=this._containerLeft+"px"}},_zoomAnimation:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);s.DomUtil.setPosition(this._container,t)},_adjustPan:function(){if(this.options.autoPan){var e=this._map,t=this._container.offsetHeight,n=this._containerWidth,r=new s.Point(this._containerLeft,-t-this._containerBottom);this._animated&&r._add(s.DomUtil.getPosition(this._container));var i=e.layerPointToContainerPoint(r),o=s.point(this.options.autoPanPadding),u=s.point(this.options.autoPanPaddingTopLeft||o),a=s.point(this.options.autoPanPaddingBottomRight||o),f=e.getSize(),l=0,c=0;i.x+n+a.x>f.x&&(l=i.x+n-f.x+a.x),i.x-l-u.x<0&&(l=i.x-u.x),i.y+t+a.y>f.y&&(c=i.y+t-f.y+a.y),i.y-c-u.y<0&&(c=i.y-u.y),(l||c)&&e.fire("autopanstart").panBy([l,c])}},_onCloseButtonClick:function(e){this._close(),s.DomEvent.stop(e)}}),s.popup=function(e,t){return new s.Popup(e,t)},s.Map.include({openPopup:function(e,t,n){if(this.closePopup(),!(e instanceof s.Popup)){var r=e;e=(new s.Popup(n)).setLatLng(t).setContent(r)}return e._isOpen=!0,this._popup=e,this.addLayer(e)},closePopup:function(e){return e&&e!==this._popup||(e=this._popup,this._popup=null),e&&(this.removeLayer(e),e._isOpen=!1),this}}),s.Marker.include({openPopup:function(){return this._popup&&this._map&&!this._map.hasLayer(this._popup)&&(this._popup.setLatLng(this._latlng),this._map.openPopup(this._popup)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(){return this._popup&&(this._popup._isOpen?this.closePopup():this.openPopup()),this},bindPopup:function(e,t){var n=s.point(this.options.icon.options.popupAnchor||[0,0]);return n=n.add(s.Popup.prototype.options.offset),t&&t.offset&&(n=n.add(t.offset)),t=s.extend({offset:n},t),this._popupHandlersAdded||(this.on("click",this.togglePopup,this).on("remove",this.closePopup,this).on("move",this._movePopup,this),this._popupHandlersAdded=!0),e instanceof s.Popup?(s.setOptions(e,t),this._popup=e,e._source=this):this._popup=(new s.Popup(t,this)).setContent(e),this},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this.togglePopup,this).off("remove",this.closePopup,this).off("move",this._movePopup,this),this._popupHandlersAdded=!1),this},getPopup:function(){return this._popup},_movePopup:function(e){this._popup.setLatLng(e.latlng)}}),s.LayerGroup=s.Class.extend({initialize:function(e){this._layers={};var t,n;if(e)for(t=0,n=e.length;n>t;t++)this.addLayer(e[t])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return e?e in this._layers||this.getLayerId(e)in this._layers:!1},clearLayers:function(){return this.eachLayer(this.removeLayer,this),this},invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)n=this._layers[t],n[e]&&n[e].apply(n,r);return this},onAdd:function(e){this._map=e,this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e),this._map=null},addTo:function(e){return e.addLayer(this),this},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];for(var t in this._layers)e.push(this._layers[t]);return e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return s.stamp(e)}}),s.layerGroup=function(e){return new s.LayerGroup(e)},s.FeatureGroup=s.LayerGroup.extend({includes:s.Mixin.Events,statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose"},addLayer:function(e){return this.hasLayer(e)?this:("on"in e&&e.on(s.FeatureGroup.EVENTS,this._propagateEvent,this),s.LayerGroup.prototype.addLayer.call(this,e),this._popupContent&&e.bindPopup&&e.bindPopup(this._popupContent,this._popupOptions),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),"off"in e&&e.off(s.FeatureGroup.EVENTS,this._propagateEvent,this),s.LayerGroup.prototype.removeLayer.call(this,e),this._popupContent&&this.invoke("unbindPopup"),this.fire("layerremove",{layer:e})):this},bindPopup:function(e,t){return this._popupContent=e,this._popupOptions=t,this.invoke("bindPopup",e,t)},openPopup:function(e){for(var t in this._layers){this._layers[t].openPopup(e);break}return this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new s.LatLngBounds;return this.eachLayer(function(t){e.extend(t instanceof s.Marker?t.getLatLng():t.getBounds())}),e},_propagateEvent:function(e){e=s.extend({layer:e.target,target:this},e),this.fire(e.type,e)}}),s.featureGroup=function(e){return new s.FeatureGroup(e)},s.Path=s.Class.extend({includes:[s.Mixin.Events],statics:{CLIP_PADDING:function(){var t=s.Browser.mobile?1280:2e3,n=(t/Math.max(e.outerWidth,e.outerHeight)-1)/2;return Math.max(0,Math.min(.5,n))}()},options:{stroke:!0,color:"#0033ff",dashArray:null,lineCap:null,lineJoin:null,weight:5,opacity:.5,fill:!1,fillColor:null,fillOpacity:.2,clickable:!0},initialize:function(e){s.setOptions(this,e)},onAdd:function(e){this._map=e,this._container||(this._initElements(),this._initEvents()),this.projectLatlngs(),this._updatePath(),this._container&&this._map._pathRoot.appendChild(this._container),this.fire("add"),e.on({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},addTo:function(e){return e.addLayer(this),this},onRemove:function(e){e._pathRoot.removeChild(this._container),this.fire("remove"),this._map=null,s.Browser.vml&&(this._container=null,this._stroke=null,this._fill=null),e.off({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},projectLatlngs:function(){},setStyle:function(e){return s.setOptions(this,e),this._container&&this._updateStyle(),this},redraw:function(){return this._map&&(this.projectLatlngs(),this._updatePath()),this}}),s.Map.include({_updatePathViewport:function(){var e=s.Path.CLIP_PADDING,t=this.getSize(),n=s.DomUtil.getPosition(this._mapPane),r=n.multiplyBy(-1)._subtract(t.multiplyBy(e)._round()),i=r.add(t.multiplyBy(1+2*e)._round());this._pathViewport=new s.Bounds(r,i)}}),s.Path.SVG_NS="http://www.w3.org/2000/svg",s.Browser.svg=!!t.createElementNS&&!!t.createElementNS(s.Path.SVG_NS,"svg").createSVGRect,s.Path=s.Path.extend({statics:{SVG:s.Browser.svg},bringToFront:function(){var e=this._map._pathRoot,t=this._container;return t&&e.lastChild!==t&&e.appendChild(t),this},bringToBack:function(){var e=this._map._pathRoot,t=this._container,n=e.firstChild;return t&&n!==t&&e.insertBefore(t,n),this},getPathString:function(){},_createElement:function(e){return t.createElementNS(s.Path.SVG_NS,e)},_initElements:function(){this._map._initPathRoot(),this._initPath(),this._initStyle()},_initPath:function(){this._container=this._createElement("g"),this._path=this._createElement("path"),this.options.className&&s.DomUtil.addClass(this._path,this.options.className),this._container.appendChild(this._path)},_initStyle:function(){this.options.stroke&&(this._path.setAttribute("stroke-linejoin","round"),this._path.setAttribute("stroke-linecap","round")),this.options.fill&&this._path.setAttribute("fill-rule","evenodd"),this.options.pointerEvents&&this._path.setAttribute("pointer-events",this.options.pointerEvents),this.options.clickable||this.options.pointerEvents||this._path.setAttribute("pointer-events","none"),this._updateStyle()},_updateStyle:function(){this.options.stroke?(this._path.setAttribute("stroke",this.options.color),this._path.setAttribute("stroke-opacity",this.options.opacity),this._path.setAttribute("stroke-width",this.options.weight),this.options.dashArray?this._path.setAttribute("stroke-dasharray",this.options.dashArray):this._path.removeAttribute("stroke-dasharray"),this.options.lineCap&&this._path.setAttribute("stroke-linecap",this.options.lineCap),this.options.lineJoin&&this._path.setAttribute("stroke-linejoin",this.options.lineJoin)):this._path.setAttribute("stroke","none"),this.options.fill?(this._path.setAttribute("fill",this.options.fillColor||this.options.color),this._path.setAttribute("fill-opacity",this.options.fillOpacity)):this._path.setAttribute("fill","none")},_updatePath:function(){var e=this.getPathString();e||(e="M0 0"),this._path.setAttribute("d",e)},_initEvents:function(){if(this.options.clickable){(s.Browser.svg||!s.Browser.vml)&&s.DomUtil.addClass(this._path,"leaflet-clickable"),s.DomEvent.on(this._container,"click",this._onMouseClick,this);for(var e=["dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"],t=0;t<e.length;t++)s.DomEvent.on(this._container,e[t],this._fireMouseEvent,this)}},_onMouseClick:function(e){this._map.dragging&&this._map.dragging.moved()||this._fireMouseEvent(e)},_fireMouseEvent:function(e){if(this._map&&this.hasEventListeners(e.type)){var t=this._map,n=t.mouseEventToContainerPoint(e),r=t.containerPointToLayerPoint(n),i=t.layerPointToLatLng(r);this.fire(e.type,{latlng:i,layerPoint:r,containerPoint:n,originalEvent:e}),"contextmenu"===e.type&&s.DomEvent.preventDefault(e),"mousemove"!==e.type&&s.DomEvent.stopPropagation(e)}}}),s.Map.include({_initPathRoot:function(){this._pathRoot||(this._pathRoot=s.Path.prototype._createElement("svg"),this._panes.overlayPane.appendChild(this._pathRoot),this.options.zoomAnimation&&s.Browser.any3d?(s.DomUtil.addClass(this._pathRoot,"leaflet-zoom-animated"),this.on({zoomanim:this._animatePathZoom,zoomend:this._endPathZoom})):s.DomUtil.addClass(this._pathRoot,"leaflet-zoom-hide"),this.on("moveend",this._updateSvgViewport),this._updateSvgViewport())},_animatePathZoom:function(e){var t=this.getZoomScale(e.zoom),n=this._getCenterOffset(e.center)._multiplyBy(-t)._add(this._pathViewport.min);this._pathRoot.style[s.DomUtil.TRANSFORM]=s.DomUtil.getTranslateString(n)+" scale("+t+") ",this._pathZooming=!0},_endPathZoom:function(){this._pathZooming=!1},_updateSvgViewport:function(){if(!this._pathZooming){this._updatePathViewport();var e=this._pathViewport,t=e.min,n=e.max,r=n.x-t.x,i=n.y-t.y,o=this._pathRoot,u=this._panes.overlayPane;s.Browser.mobileWebkit&&u.removeChild(o),s.DomUtil.setPosition(o,t),o.setAttribute("width",r),o.setAttribute("height",i),o.setAttribute("viewBox",[t.x,t.y,r,i].join(" ")),s.Browser.mobileWebkit&&u.appendChild(o)}}}),s.Path.include({bindPopup:function(e,t){return e instanceof s.Popup?this._popup=e:((!this._popup||t)&&(this._popup=new s.Popup(t,this)),this._popup.setContent(e)),this._popupHandlersAdded||(this.on("click",this._openPopup,this).on("remove",this.closePopup,this),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this._openPopup).off("remove",this.closePopup),this._popupHandlersAdded=!1),this},openPopup:function(e){return this._popup&&(e=e||this._latlng||this._latlngs[Math.floor(this._latlngs.length/2)],this._openPopup({latlng:e})),this},closePopup:function(){return this._popup&&this._popup._close(),this},_openPopup:function(e){this._popup.setLatLng(e.latlng),this._map.openPopup(this._popup)}}),s.Browser.vml=!s.Browser.svg&&function(){try{var e=t.createElement("div");e.innerHTML='<v:shape adj="1"/>';var n=e.firstChild;return n.style.behavior="url(#default#VML)",n&&"object"==typeof n.adj}catch(r){return!1}}(),s.Path=s.Browser.svg||!s.Browser.vml?s.Path:s.Path.extend({statics:{VML:!0,CLIP_PADDING:.02},_createElement:function(){try{return t.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return t.createElement("<lvml:"+e+' class="lvml">')}}catch(e){return function(e){return t.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_initPath:function(){var e=this._container=this._createElement("shape");s.DomUtil.addClass(e,"leaflet-vml-shape"+(this.options.className?" "+this.options.className:"")),this.options.clickable&&s.DomUtil.addClass(e,"leaflet-clickable"),e.coordsize="1 1",this._path=this._createElement("path"),e.appendChild(this._path),this._map._pathRoot.appendChild(e)},_initStyle:function(){this._updateStyle()},_updateStyle:function(){var e=this._stroke,t=this._fill,n=this.options,r=this._container;r.stroked=n.stroke,r.filled=n.fill,n.stroke?(e||(e=this._stroke=this._createElement("stroke"),e.endcap="round",r.appendChild(e)),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=s.Util.isArray(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",n.lineCap&&(e.endcap=n.lineCap.replace("butt","flat")),n.lineJoin&&(e.joinstyle=n.lineJoin)):e&&(r.removeChild(e),this._stroke=null),n.fill?(t||(t=this._fill=this._createElement("fill"),r.appendChild(t)),t.color=n.fillColor||n.color,t.opacity=n.fillOpacity):t&&(r.removeChild(t),this._fill=null)},_updatePath:function(){var e=this._container.style;e.display="none",this._path.v=this.getPathString()+" ",e.display=""}}),s.Map.include(s.Browser.svg||!s.Browser.vml?{}:{_initPathRoot:function(){if(!this._pathRoot){var e=this._pathRoot=t.createElement("div");e.className="leaflet-vml-container",this._panes.overlayPane.appendChild(e),this.on("moveend",this._updatePathViewport),this._updatePathViewport()}}}),s.Browser.canvas=function(){return!!t.createElement("canvas").getContext}(),s.Path=s.Path.SVG&&!e.L_PREFER_CANVAS||!s.Browser.canvas?s.Path:s.Path.extend({statics:{CANVAS:!0,SVG:!1},redraw:function(){return this._map&&(this.projectLatlngs(),this._requestUpdate()),this},setStyle:function(e){return s.setOptions(this,e),this._map&&(this._updateStyle(),this._requestUpdate()),this},onRemove:function(e){e.off("viewreset",this.projectLatlngs,this).off("moveend",this._updatePath,this),this.options.clickable&&(this._map.off("click",this._onClick,this),this._map.off("mousemove",this._onMouseMove,this)),this._requestUpdate(),this.fire("remove"),this._map=null},_requestUpdate:function(){this._map&&!s.Path._updateRequest&&(s.Path._updateRequest=s.Util.requestAnimFrame(this._fireMapMoveEnd,this._map))},_fireMapMoveEnd:function(){s.Path._updateRequest=null,this.fire("moveend")},_initElements:function(){this._map._initPathRoot(),this._ctx=this._map._canvasCtx},_updateStyle:function(){var e=this.options;e.stroke&&(this._ctx.lineWidth=e.weight,this._ctx.strokeStyle=e.color),e.fill&&(this._ctx.fillStyle=e.fillColor||e.color),e.lineCap&&(this._ctx.lineCap=e.lineCap),e.lineJoin&&(this._ctx.lineJoin=e.lineJoin)},_drawPath:function(){var e,t,n,r,i,o;for(this._ctx.beginPath(),e=0,n=this._parts.length;n>e;e++){for(t=0,r=this._parts[e].length;r>t;t++)i=this._parts[e][t],o=(0===t?"move":"line")+"To",this._ctx[o](i.x,i.y);this instanceof s.Polygon&&this._ctx.closePath()}},_checkIfEmpty:function(){return!this._parts.length},_updatePath:function(){if(!this._checkIfEmpty()){var e=this._ctx,t=this.options;this._drawPath(),e.save(),this._updateStyle(),t.fill&&(e.globalAlpha=t.fillOpacity,e.fill(t.fillRule||"evenodd")),t.stroke&&(e.globalAlpha=t.opacity,e.stroke()),e.restore()}},_initEvents:function(){this.options.clickable&&(this._map.on("mousemove",this._onMouseMove,this),this._map.on("click dblclick contextmenu",this._fireMouseEvent,this))},_fireMouseEvent:function(e){this._containsPoint(e.layerPoint)&&this.fire(e.type,e)},_onMouseMove:function(e){this._map&&!this._map._animatingZoom&&(this._containsPoint(e.layerPoint)?(this._ctx.canvas.style.cursor="pointer",this._mouseInside=!0,this.fire("mouseover",e)):this._mouseInside&&(this._ctx.canvas.style.cursor="",this._mouseInside=!1,this.fire("mouseout",e)))}}),s.Map.include(s.Path.SVG&&!e.L_PREFER_CANVAS||!s.Browser.canvas?{}:{_initPathRoot:function(){var e,n=this._pathRoot;n||(n=this._pathRoot=t.createElement("canvas"),n.style.position="absolute",e=this._canvasCtx=n.getContext("2d"),e.lineCap="round",e.lineJoin="round",this._panes.overlayPane.appendChild(n),this.options.zoomAnimation&&(this._pathRoot.className="leaflet-zoom-animated",this.on("zoomanim",this._animatePathZoom),this.on("zoomend",this._endPathZoom)),this.on("moveend",this._updateCanvasViewport),this._updateCanvasViewport())},_updateCanvasViewport:function(){if(!this._pathZooming){this._updatePathViewport();var e=this._pathViewport,t=e.min,n=e.max.subtract(t),r=this._pathRoot;s.DomUtil.setPosition(r,t),r.width=n.x,r.height=n.y,r.getContext("2d").translate(-t.x,-t.y)}}}),s.LineUtil={simplify:function(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=this._reducePoints(e,n),e=this._simplifyDP(e,n)},pointToSegmentDistance:function(e,t,n){return Math.sqrt(this._sqClosestPointOnSegment(e,t,n,!0))},closestPointOnSegment:function(e,t,n){return this._sqClosestPointOnSegment(e,t,n)},_simplifyDP:function(e,t){var n=e.length,i=typeof Uint8Array!=r+""?Uint8Array:Array,s=new i(n);s[0]=s[n-1]=1,this._simplifyDPStep(e,s,t,0,n-1);var o,u=[];for(o=0;n>o;o++)s[o]&&u.push(e[o]);return u},_simplifyDPStep:function(e,t,n,r,i){var s,o,u,a=0;for(o=r+1;i-1>=o;o++)u=this._sqClosestPointOnSegment(e[o],e[r],e[i],!0),u>a&&(s=o,a=u);a>n&&(t[s]=1,this._simplifyDPStep(e,t,n,r,s),this._simplifyDPStep(e,t,n,s,i))},_reducePoints:function(e,t){for(var n=[e[0]],r=1,i=0,s=e.length;s>r;r++)this._sqDist(e[r],e[i])>t&&(n.push(e[r]),i=r);return s-1>i&&n.push(e[s-1]),n},clipSegment:function(e,t,n,r){var i,s,o,u=r?this._lastCode:this._getBitCode(e,n),a=this._getBitCode(t,n);for(this._lastCode=a;;){if(!(u|a))return[e,t];if(u&a)return!1;i=u||a,s=this._getEdgeIntersection(e,t,i,n),o=this._getBitCode(s,n),i===u?(e=s,u=o):(t=s,a=o)}},_getEdgeIntersection:function(e,t,n,r){var i=t.x-e.x,o=t.y-e.y,u=r.min,a=r.max;return 8&n?new s.Point(e.x+i*(a.y-e.y)/o,a.y):4&n?new s.Point(e.x+i*(u.y-e.y)/o,u.y):2&n?new s.Point(a.x,e.y+o*(a.x-e.x)/i):1&n?new s.Point(u.x,e.y+o*(u.x-e.x)/i):void 0},_getBitCode:function(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n},_sqDist:function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},_sqClosestPointOnSegment:function(e,t,n,r){var i,o=t.x,u=t.y,a=n.x-o,f=n.y-u,l=a*a+f*f;return l>0&&(i=((e.x-o)*a+(e.y-u)*f)/l,i>1?(o=n.x,u=n.y):i>0&&(o+=a*i,u+=f*i)),a=e.x-o,f=e.y-u,r?a*a+f*f:new s.Point(o,u)}},s.Polyline=s.Path.extend({initialize:function(e,t){s.Path.prototype.initialize.call(this,t),this._latlngs=this._convertLatLngs(e)},options:{smoothFactor:1,noClip:!1},projectLatlngs:function(){this._originalPoints=[];for(var e=0,t=this._latlngs.length;t>e;e++)this._originalPoints[e]=this._map.latLngToLayerPoint(this._latlngs[e])},getPathString:function(){for(var e=0,t=this._parts.length,n="";t>e;e++)n+=this._getPathPartStr(this._parts[e]);return n},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._latlngs=this._convertLatLngs(e),this.redraw()},addLatLng:function(e){return this._latlngs.push(s.latLng(e)),this.redraw()},spliceLatLngs:function(){var e=[].splice.apply(this._latlngs,arguments);return this._convertLatLngs(this._latlngs,!0),this.redraw(),e},closestLayerPoint:function(e){for(var t,n,r=1/0,i=this._parts,o=null,u=0,a=i.length;a>u;u++)for(var f=i[u],l=1,c=f.length;c>l;l++){t=f[l-1],n=f[l];var h=s.LineUtil._sqClosestPointOnSegment(e,t,n,!0);r>h&&(r=h,o=s.LineUtil._sqClosestPointOnSegment(e,t,n))}return o&&(o.distance=Math.sqrt(r)),o},getBounds:function(){return new s.LatLngBounds(this.getLatLngs())},_convertLatLngs:function(e,t){var n,r,i=t?e:[];for(n=0,r=e.length;r>n;n++){if(s.Util.isArray(e[n])&&"number"!=typeof e[n][0])return;i[n]=s.latLng(e[n])}return i},_initEvents:function(){s.Path.prototype._initEvents.call(this)},_getPathPartStr:function(e){for(var t,n=s.Path.VML,r=0,i=e.length,o="";i>r;r++)t=e[r],n&&t._round(),o+=(r?"L":"M")+t.x+" "+t.y;return o},_clipPoints:function(){var e,t,n,r=this._originalPoints,i=r.length;if(this.options.noClip)return void (this._parts=[r]);this._parts=[];var o=this._parts,u=this._map._pathViewport,a=s.LineUtil;for(e=0,t=0;i-1>e;e++)n=a.clipSegment(r[e],r[e+1],u,e),n&&(o[t]=o[t]||[],o[t].push(n[0]),(n[1]!==r[e+1]||e===i-2)&&(o[t].push(n[1]),t++))},_simplifyPoints:function(){for(var e=this._parts,t=s.LineUtil,n=0,r=e.length;r>n;n++)e[n]=t.simplify(e[n],this.options.smoothFactor)},_updatePath:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),s.Path.prototype._updatePath.call(this))}}),s.polyline=function(e,t){return new s.Polyline(e,t)},s.PolyUtil={},s.PolyUtil.clipPolygon=function(e,t){var n,r,i,o,u,a,f,l,c,h=[1,4,2,8],p=s.LineUtil;for(r=0,f=e.length;f>r;r++)e[r]._code=p._getBitCode(e[r],t);for(o=0;4>o;o++){for(l=h[o],n=[],r=0,f=e.length,i=f-1;f>r;i=r++)u=e[r],a=e[i],u._code&l?a._code&l||(c=p._getEdgeIntersection(a,u,l,t),c._code=p._getBitCode(c,t),n.push(c)):(a._code&l&&(c=p._getEdgeIntersection(a,u,l,t),c._code=p._getBitCode(c,t),n.push(c)),n.push(u));e=n}return e},s.Polygon=s.Polyline.extend({options:{fill:!0},initialize:function(e,t){s.Polyline.prototype.initialize.call(this,e,t),this._initWithHoles(e)},_initWithHoles:function(e){var t,n,r;if(e&&s.Util.isArray(e[0])&&"number"!=typeof e[0][0])for(this._latlngs=this._convertLatLngs(e[0]),this._holes=e.slice(1),t=0,n=this._holes.length;n>t;t++)r=this._holes[t]=this._convertLatLngs(this._holes[t]),r[0].equals(r[r.length-1])&&r.pop();e=this._latlngs,e.length>=2&&e[0].equals(e[e.length-1])&&e.pop()},projectLatlngs:function(){if(s.Polyline.prototype.projectLatlngs.call(this),this._holePoints=[],this._holes){var e,t,n,r;for(e=0,n=this._holes.length;n>e;e++)for(this._holePoints[e]=[],t=0,r=this._holes[e].length;r>t;t++)this._holePoints[e][t]=this._map.latLngToLayerPoint(this._holes[e][t])}},setLatLngs:function(e){return e&&s.Util.isArray(e[0])&&"number"!=typeof e[0][0]?(this._initWithHoles(e),this.redraw()):s.Polyline.prototype.setLatLngs.call(this,e)},_clipPoints:function(){var e=this._originalPoints,t=[];if(this._parts=[e].concat(this._holePoints),!this.options.noClip){for(var n=0,r=this._parts.length;r>n;n++){var i=s.PolyUtil.clipPolygon(this._parts[n],this._map._pathViewport);i.length&&t.push(i)}this._parts=t}},_getPathPartStr:function(e){var t=s.Polyline.prototype._getPathPartStr.call(this,e);return t+(s.Browser.svg?"z":"x")}}),s.polygon=function(e,t){return new s.Polygon(e,t)},function(){function e(e){return s.FeatureGroup.extend({initialize:function(e,t){this._layers={},this._options=t,this.setLatLngs(e)},setLatLngs:function(t){var n=0,r=t.length;for(this.eachLayer(function(e){r>n?e.setLatLngs(t[n++]):this.removeLayer(e)},this);r>n;)this.addLayer(new e(t[n++],this._options));return this},getLatLngs:function(){var e=[];return this.eachLayer(function(t){e.push(t.getLatLngs())}),e}})}s.MultiPolyline=e(s.Polyline),s.MultiPolygon=e(s.Polygon),s.multiPolyline=function(e,t){return new s.MultiPolyline(e,t)},s.multiPolygon=function(e,t){return new s.MultiPolygon(e,t)}}(),s.Rectangle=s.Polygon.extend({initialize:function(e,t){s.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return e=s.latLngBounds(e),[e.getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}}),s.rectangle=function(e,t){return new s.Rectangle(e,t)},s.Circle=s.Path.extend({initialize:function(e,t,n){s.Path.prototype.initialize.call(this,n),this._latlng=s.latLng(e),this._mRadius=t},options:{fill:!0},setLatLng:function(e){return this._latlng=s.latLng(e),this.redraw()},setRadius:function(e){return this._mRadius=e,this.redraw()},projectLatlngs:function(){var e=this._getLngRadius(),t=this._latlng,n=this._map.latLngToLayerPoint([t.lat,t.lng-e]);this._point=this._map.latLngToLayerPoint(t),this._radius=Math.max(this._point.x-n.x,1)},getBounds:function(){var e=this._getLngRadius(),t=this._mRadius/40075017*360,n=this._latlng;return new s.LatLngBounds([n.lat-t,n.lng-e],[n.lat+t,n.lng+e])},getLatLng:function(){return this._latlng},getPathString:function(){var e=this._point,t=this._radius;return this._checkIfEmpty()?"":s.Browser.svg?"M"+e.x+","+(e.y-t)+"A"+t+","+t+",0,1,1,"+(e.x-.1)+","+(e.y-t)+" z":(e._round(),t=Math.round(t),"AL "+e.x+","+e.y+" "+t+","+t+" 0,23592600")},getRadius:function(){return this._mRadius},_getLatRadius:function(){return this._mRadius/40075017*360},_getLngRadius:function(){return this._getLatRadius()/Math.cos(s.LatLng.DEG_TO_RAD*this._latlng.lat)},_checkIfEmpty:function(){if(!this._map)return!1;var e=this._map._pathViewport,t=this._radius,n=this._point;return n.x-t>e.max.x||n.y-t>e.max.y||n.x+t<e.min.x||n.y+t<e.min.y}}),s.circle=function(e,t,n){return new s.Circle(e,t,n)},s.CircleMarker=s.Circle.extend({options:{radius:10,weight:2},initialize:function(e,t){s.Circle.prototype.initialize.call(this,e,null,t),this._radius=this.options.radius},projectLatlngs:function(){this._point=this._map.latLngToLayerPoint(this._latlng)},_updateStyle:function(){s.Circle.prototype._updateStyle.call(this),this.setRadius(this.options.radius)},setLatLng:function(e){return s.Circle.prototype.setLatLng.call(this,e),this._popup&&this._popup._isOpen&&this._popup.setLatLng(e),this},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius}}),s.circleMarker=function(e,t){return new s.CircleMarker(e,t)},s.Polyline.include(s.Path.CANVAS?{_containsPoint:function(e,t){var n,r,i,o,u,a,f,l=this.options.weight/2;for(s.Browser.touch&&(l+=10),n=0,o=this._parts.length;o>n;n++)for(f=this._parts[n],r=0,u=f.length,i=u-1;u>r;i=r++)if((t||0!==r)&&(a=s.LineUtil.pointToSegmentDistance(e,f[i],f[r]),l>=a))return!0;return!1}}:{}),s.Polygon.include(s.Path.CANVAS?{_containsPoint:function(e){var t,n,r,i,o,u,a,f,l=!1;if(s.Polyline.prototype._containsPoint.call(this,e,!0))return!0;for(i=0,a=this._parts.length;a>i;i++)for(t=this._parts[i],o=0,f=t.length,u=f-1;f>o;u=o++)n=t[o],r=t[u],n.y>e.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(l=!l);return l}}:{}),s.Circle.include(s.Path.CANVAS?{_drawPath:function(){var e=this._point;this._ctx.beginPath(),this._ctx.arc(e.x,e.y,this._radius,0,2*Math.PI,!1)},_containsPoint:function(e){var t=this._point,n=this.options.stroke?this.options.weight/2:0;return e.distanceTo(t)<=this._radius+n}}:{}),s.CircleMarker.include(s.Path.CANVAS?{_updateStyle:function(){s.Path.prototype._updateStyle.call(this)}}:{}),s.GeoJSON=s.FeatureGroup.extend({initialize:function(e,t){s.setOptions(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,i=s.Util.isArray(e)?e:e.features;if(i){for(t=0,n=i.length;n>t;t++)r=i[t],(r.geometries||r.geometry||r.features||r.coordinates)&&this.addData(i[t]);return this}var o=this.options;if(!o.filter||o.filter(e)){var u=s.GeoJSON.geometryToLayer(e,o.pointToLayer,o.coordsToLatLng,o);return u.feature=s.GeoJSON.asFeature(e),u.defaultOptions=u.options,this.resetStyle(u),o.onEachFeature&&o.onEachFeature(e,u),this.addLayer(u)}},resetStyle:function(e){var t=this.options.style;t&&(s.Util.extend(e.options,e.defaultOptions),this._setLayerStyle(e,t))},setStyle:function(e){this.eachLayer(function(t){this._setLayerStyle(t,e)},this)},_setLayerStyle:function(e,t){"function"==typeof t&&(t=t(e.feature)),e.setStyle&&e.setStyle(t)}}),s.extend(s.GeoJSON,{geometryToLayer:function(e,t,n,r){var i,o,u,a,f="Feature"===e.type?e.geometry:e,l=f.coordinates,c=[];switch(n=n||this.coordsToLatLng,f.type){case"Point":return i=n(l),t?t(e,i):new s.Marker(i);case"MultiPoint":for(u=0,a=l.length;a>u;u++)i=n(l[u]),c.push(t?t(e,i):new s.Marker(i));return new s.FeatureGroup(c);case"LineString":return o=this.coordsToLatLngs(l,0,n),new s.Polyline(o,r);case"Polygon":if(2===l.length&&!l[1].length)throw new Error("Invalid GeoJSON object.");return o=this.coordsToLatLngs(l,1,n),new s.Polygon(o,r);case"MultiLineString":return o=this.coordsToLatLngs(l,1,n),new s.MultiPolyline(o,r);case"MultiPolygon":return o=this.coordsToLatLngs(l,2,n),new s.MultiPolygon(o,r);case"GeometryCollection":for(u=0,a=f.geometries.length;a>u;u++)c.push(this.geometryToLayer({geometry:f.geometries[u],type:"Feature",properties:e.properties},t,n,r));return new s.FeatureGroup(c);default:throw new Error("Invalid GeoJSON object.")}},coordsToLatLng:function(e){return new s.LatLng(e[1],e[0],e[2])},coordsToLatLngs:function(e,t,n){var r,i,s,o=[];for(i=0,s=e.length;s>i;i++)r=t?this.coordsToLatLngs(e[i],t-1,n):(n||this.coordsToLatLng)(e[i]),o.push(r);return o},latLngToCoords:function(e){var t=[e.lng,e.lat];return e.alt!==r&&t.push(e.alt),t},latLngsToCoords:function(e){for(var t=[],n=0,r=e.length;r>n;n++)t.push(s.GeoJSON.latLngToCoords(e[n]));return t},getFeature:function(e,t){return e.feature?s.extend({},e.feature,{geometry:t}):s.GeoJSON.asFeature(t)},asFeature:function(e){return"Feature"===e.type?e:{type:"Feature",properties:{},geometry:e}}});var u={toGeoJSON:function(){return s.GeoJSON.getFeature(this,{type:"Point",coordinates:s.GeoJSON.latLngToCoords(this.getLatLng())})}};s.Marker.include(u),s.Circle.include(u),s.CircleMarker.include(u),s.Polyline.include({toGeoJSON:function(){return s.GeoJSON.getFeature(this,{type:"LineString",coordinates:s.GeoJSON.latLngsToCoords(this.getLatLngs())})}}),s.Polygon.include({toGeoJSON:function(){var e,t,n,r=[s.GeoJSON.latLngsToCoords(this.getLatLngs())];if(r[0].push(r[0][0]),this._holes)for(e=0,t=this._holes.length;t>e;e++)n=s.GeoJSON.latLngsToCoords(this._holes[e]),n.push(n[0]),r.push(n);return s.GeoJSON.getFeature(this,{type:"Polygon",coordinates:r})}}),function(){function e(e){return function(){var t=[];return this.eachLayer(function(e){t.push(e.toGeoJSON().geometry.coordinates)}),s.GeoJSON.getFeature(this,{type:e,coordinates:t})}}s.MultiPolyline.include({toGeoJSON:e("MultiLineString")}),s.MultiPolygon.include({toGeoJSON:e("MultiPolygon")}),s.LayerGroup.include({toGeoJSON:function(){var t,n=this.feature&&this.feature.geometry,r=[];if(n&&"MultiPoint"===n.type)return e("MultiPoint").call(this);var i=n&&"GeometryCollection"===n.type;return this.eachLayer(function(e){e.toGeoJSON&&(t=e.toGeoJSON(),r.push(i?t.geometry:s.GeoJSON.asFeature(t)))}),i?s.GeoJSON.getFeature(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}})}(),s.geoJson=function(e,t){return new s.GeoJSON(e,t)},s.DomEvent={addListener:function(e,t,n,r){var i,o,u,a=s.stamp(n),f="_leaflet_"+t+a;return e[f]?this:(i=function(t){return n.call(r||e,t||s.DomEvent._getEvent())},s.Browser.pointer&&0===t.indexOf("touch")?this.addPointerListener(e,t,i,a):(s.Browser.touch&&"dblclick"===t&&this.addDoubleTapListener&&this.addDoubleTapListener(e,i,a),"addEventListener"in e?"mousewheel"===t?(e.addEventListener("DOMMouseScroll",i,!1),e.addEventListener(t,i,!1)):"mouseenter"===t||"mouseleave"===t?(o=i,u="mouseenter"===t?"mouseover":"mouseout",i=function(t){return s.DomEvent._checkMouse(e,t)?o(t):void 0},e.addEventListener(u,i,!1)):"click"===t&&s.Browser.android?(o=i,i=function(e){return s.DomEvent._filterClick(e,o)},e.addEventListener(t,i,!1)):e.addEventListener(t,i,!1):"attachEvent"in e&&e.attachEvent("on"+t,i),e[f]=i,this))},removeListener:function(e,t,n){var r=s.stamp(n),i="_leaflet_"+t+r,o=e[i];return o?(s.Browser.pointer&&0===t.indexOf("touch")?this.removePointerListener(e,t,r):s.Browser.touch&&"dblclick"===t&&this.removeDoubleTapListener?this.removeDoubleTapListener(e,r):"removeEventListener"in e?"mousewheel"===t?(e.removeEventListener("DOMMouseScroll",o,!1),e.removeEventListener(t,o,!1)):"mouseenter"===t||"mouseleave"===t?e.removeEventListener("mouseenter"===t?"mouseover":"mouseout",o,!1):e.removeEventListener(t,o,!1):"detachEvent"in e&&e.detachEvent("on"+t,o),e[i]=null,this):this},stopPropagation:function(e){return e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,s.DomEvent._skipped(e),this},disableScrollPropagation:function(e){var t=s.DomEvent.stopPropagation;return s.DomEvent.on(e,"mousewheel",t).on(e,"MozMousePixelScroll",t)},disableClickPropagation:function(e){for(var t=s.DomEvent.stopPropagation,n=s.Draggable.START.length-1;n>=0;n--)s.DomEvent.on(e,s.Draggable.START[n],t);return s.DomEvent.on(e,"click",s.DomEvent._fakeStop).on(e,"dblclick",t)},preventDefault:function(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this},stop:function(e){return s.DomEvent.preventDefault(e).stopPropagation(e)},getMousePosition:function(e,t){if(!t)return new s.Point(e.clientX,e.clientY);var n=t.getBoundingClientRect();return new s.Point(e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop)},getWheelDelta:function(e){var t=0;return e.wheelDelta&&(t=e.wheelDelta/120),e.detail&&(t=-e.detail/3),t},_skipEvents:{},_fakeStop:function(e){s.DomEvent._skipEvents[e.type]=!0},_skipped:function(e){var t=this._skipEvents[e.type];return this._skipEvents[e.type]=!1,t},_checkMouse:function(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(r){return!1}return n!==e},_getEvent:function(){var t=e.event;if(!t)for(var n=arguments.callee.caller;n&&(t=n.arguments[0],!t||e.Event!==t.constructor);)n=n.caller;return t},_filterClick:function(e,t){var n=e.timeStamp||e.originalEvent.timeStamp,r=s.DomEvent._lastClick&&n-s.DomEvent._lastClick;return r&&r>100&&500>r||e.target._simulatedClick&&!e._simulated?void s.DomEvent.stop(e):(s.DomEvent._lastClick=n,t(e))}},s.DomEvent.on=s.DomEvent.addListener,s.DomEvent.off=s.DomEvent.removeListener,s.Draggable=s.Class.extend({includes:s.Mixin.Events,statics:{START:s.Browser.touch?["touchstart","mousedown"]:["mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},initialize:function(e,t){this._element=e,this._dragStartTarget=t||e},enable:function(){if(!this._enabled){for(var e=s.Draggable.START.length-1;e>=0;e--)s.DomEvent.on(this._dragStartTarget,s.Draggable.START[e],this._onDown,this);this._enabled=!0}},disable:function(){if(this._enabled){for(var e=s.Draggable.START.length-1;e>=0;e--)s.DomEvent.off(this._dragStartTarget,s.Draggable.START[e],this._onDown,this);this._enabled=!1,this._moved=!1}},_onDown:function(e){if(this._moved=!1,!e.shiftKey&&(1===e.which||1===e.button||e.touches)&&(s.DomEvent.stopPropagation(e),!s.Draggable._disabled&&(s.DomUtil.disableImageDrag(),s.DomUtil.disableTextSelection(),!this._moving))){var n=e.touches?e.touches[0]:e;this._startPoint=new s.Point(n.clientX,n.clientY),this._startPos=this._newPos=s.DomUtil.getPosition(this._element),s.DomEvent.on(t,s.Draggable.MOVE[e.type],this._onMove,this).on(t,s.Draggable.END[e.type],this._onUp,this)}},_onMove:function(e){if(e.touches&&e.touches.length>1)return void (this._moved=!0);var n=e.touches&&1===e.touches.length?e.touches[0]:e,r=new s.Point(n.clientX,n.clientY),i=r.subtract(this._startPoint);(i.x||i.y)&&(s.Browser.touch&&Math.abs(i.x)+Math.abs(i.y)<3||(s.DomEvent.preventDefault(e),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=s.DomUtil.getPosition(this._element).subtract(i),s.DomUtil.addClass(t.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,s.DomUtil.addClass(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,s.Util.cancelAnimFrame(this._animRequest),this._animRequest=s.Util.requestAnimFrame(this._updatePosition,this,!0,this._dragStartTarget)))},_updatePosition:function(){this.fire("predrag"),s.DomUtil.setPosition(this._element,this._newPos),this.fire("drag")},_onUp:function(){s.DomUtil.removeClass(t.body,"leaflet-dragging"),this._lastTarget&&(s.DomUtil.removeClass(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null);for(var e in s.Draggable.MOVE)s.DomEvent.off(t,s.Draggable.MOVE[e],this._onMove).off(t,s.Draggable.END[e],this._onUp);s.DomUtil.enableImageDrag(),s.DomUtil.enableTextSelection(),this._moved&&this._moving&&(s.Util.cancelAnimFrame(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1}}),s.Handler=s.Class.extend({initialize:function(e){this._map=e},enable:function(){this._enabled||(this._enabled=!0,this.addHooks())},disable:function(){this._enabled&&(this._enabled=!1,this.removeHooks())},enabled:function(){return!!this._enabled}}),s.Map.mergeOptions({dragging:!0,inertia:!s.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,inertiaThreshold:s.Browser.touch?32:18,easeLinearity:.25,worldCopyJump:!1}),s.Map.Drag=s.Handler.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new s.Draggable(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDrag,this),e.on("viewreset",this._onViewReset,this),e.whenReady(this._onViewReset,this))}this._draggable.enable()},removeHooks:function(){this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){var e=this._map;e._panAnim&&e._panAnim.stop(),e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(){if(this._map.options.inertia){var e=this._lastTime=+(new Date),t=this._lastPos=this._draggable._newPos;this._positions.push(t),this._times.push(e),e-this._times[0]>200&&(this._positions.shift(),this._times.shift())}this._map.fire("move").fire("drag")},_onViewReset:function(){var e=this._map.getSize()._divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.project([0,180]).x},_onPreDrag:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-t+n)%e+t-n,s=(r+t+n)%e-t-n,o=Math.abs(i+n)<Math.abs(s+n)?i:s;this._draggable._newPos.x=o},_onDragEnd:function(e){var t=this._map,n=t.options,r=+(new Date)-this._lastTime,i=!n.inertia||r>n.inertiaThreshold||!this._positions[0];if(t.fire("dragend",e),i)t.fire("moveend");else{var o=this._lastPos.subtract(this._positions[0]),u=(this._lastTime+r-this._times[0])/1e3,a=n.easeLinearity,f=o.multiplyBy(a/u),l=f.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,l),h=f.multiplyBy(c/l),p=c/(n.inertiaDeceleration*a),d=h.multiplyBy(-p/2).round();d.x&&d.y?(d=t._limitOffset(d,t.options.maxBounds),s.Util.requestAnimFrame(function(){t.panBy(d,{duration:p,easeLinearity:a,noMoveStart:!0})})):t.fire("moveend")}}}),s.Map.addInitHook("addHandler","dragging",s.Map.Drag),s.Map.mergeOptions({doubleClickZoom:!0}),s.Map.DoubleClickZoom=s.Handler.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom()+(e.originalEvent.shiftKey?-1:1);"center"===t.options.doubleClickZoom?t.setZoom(n):t.setZoomAround(e.containerPoint,n)}}),s.Map.addInitHook("addHandler","doubleClickZoom",s.Map.DoubleClickZoom),s.Map.mergeOptions({scrollWheelZoom:!0}),s.Map.ScrollWheelZoom=s.Handler.extend({addHooks:function(){s.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this),s.DomEvent.on(this._map._container,"MozMousePixelScroll",s.DomEvent.preventDefault),this._delta=0},removeHooks:function(){s.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll),s.DomEvent.off(this._map._container,"MozMousePixelScroll",s.DomEvent.preventDefault)},_onWheelScroll:function(e){var t=s.DomEvent.getWheelDelta(e);this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+(new Date));var n=Math.max(40-(+(new Date)-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s.bind(this._performZoom,this),n),s.DomEvent.preventDefault(e),s.DomEvent.stopPropagation(e)},_performZoom:function(){var e=this._map,t=this._delta,n=e.getZoom();t=t>0?Math.ceil(t):Math.floor(t),t=Math.max(Math.min(t,4),-4),t=e._limitZoom(n+t)-n,this._delta=0,this._startTime=null,t&&("center"===e.options.scrollWheelZoom?e.setZoom(n+t):e.setZoomAround(this._lastMousePos,n+t))}}),s.Map.addInitHook("addHandler","scrollWheelZoom",s.Map.ScrollWheelZoom),s.extend(s.DomEvent,{_touchstart:s.Browser.msPointer?"MSPointerDown":s.Browser.pointer?"pointerdown":"touchstart",_touchend:s.Browser.msPointer?"MSPointerUp":s.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function(e,n,r){function i(e){var t;if(s.Browser.pointer?(d.push(e.pointerId),t=d.length):t=e.touches.length,!(t>1)){var n=Date.now(),r=n-(u||n);a=e.touches?e.touches[0]:e,f=r>0&&l>=r,u=n}}function o(e){if(s.Browser.pointer){var t=d.indexOf(e.pointerId);if(-1===t)return;d.splice(t,1)}if(f){if(s.Browser.pointer){var r,i={};for(var o in a)r=a[o],"function"==typeof r?i[o]=r.bind(a):i[o]=r;a=i}a.type="dblclick",n(a),u=null}}var u,a,f=!1,l=250,c="_leaflet_",h=this._touchstart,p=this._touchend,d=[];e[c+h+r]=i,e[c+p+r]=o;var v=s.Browser.pointer?t.documentElement:e;return e.addEventListener(h,i,!1),v.addEventListener(p,o,!1),s.Browser.pointer&&v.addEventListener(s.DomEvent.POINTER_CANCEL,o,!1),this},removeDoubleTapListener:function(e,n){var r="_leaflet_";return e.removeEventListener(this._touchstart,e[r+this._touchstart+n],!1),(s.Browser.pointer?t.documentElement:e).removeEventListener(this._touchend,e[r+this._touchend+n],!1),s.Browser.pointer&&t.documentElement.removeEventListener(s.DomEvent.POINTER_CANCEL,e[r+this._touchend+n],!1),this}}),s.extend(s.DomEvent,{POINTER_DOWN:s.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:s.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:s.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:s.Browser.msPointer?"MSPointerCancel":"pointercancel",_pointers:[],_pointerDocumentListener:!1,addPointerListener:function(e,t,n,r){switch(t){case"touchstart":return this.addPointerListenerStart(e,t,n,r);case"touchend":return this.addPointerListenerEnd(e,t,n,r);case"touchmove":return this.addPointerListenerMove(e,t,n,r);default:throw"Unknown touch event type"}},addPointerListenerStart:function(e,n,r,i){var o="_leaflet_",u=this._pointers,a=function(e){"mouse"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&s.DomEvent.preventDefault(e);for(var t=!1,n=0;n<u.length;n++)if(u[n].pointerId===e.pointerId){t=!0;break}t||u.push(e),e.touches=u.slice(),e.changedTouches=[e],r(e)};if(e[o+"touchstart"+i]=a,e.addEventListener(this.POINTER_DOWN,a,!1),!this._pointerDocumentListener){var f=function(e){for(var t=0;t<u.length;t++)if(u[t].pointerId===e.pointerId){u.splice(t,1);break}};t.documentElement.addEventListener(this.POINTER_UP,f,!1),t.documentElement.addEventListener(this.POINTER_CANCEL,f,!1),this._pointerDocumentListener=!0}return this},addPointerListenerMove:function(e,t,n,r){function i(e){if(e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&"mouse"!==e.pointerType||0!==e.buttons){for(var t=0;t<o.length;t++)if(o[t].pointerId===e.pointerId){o[t]=e;break}e.touches=o.slice(),e.changedTouches=[e],n(e)}}var s="_leaflet_",o=this._pointers;return e[s+"touchmove"+r]=i,e.addEventListener(this.POINTER_MOVE,i,!1),this},addPointerListenerEnd:function(e,t,n,r){var i="_leaflet_",s=this._pointers,o=function(e){for(var t=0;t<s.length;t++)if(s[t].pointerId===e.pointerId){s.splice(t,1);break}e.touches=s.slice(),e.changedTouches=[e],n(e)};return e[i+"touchend"+r]=o,e.addEventListener(this.POINTER_UP,o,!1),e.addEventListener(this.POINTER_CANCEL,o,!1),this},removePointerListener:function(e,t,n){var r="_leaflet_",i=e[r+t+n];switch(t){case"touchstart":e.removeEventListener(this.POINTER_DOWN,i,!1);break;case"touchmove":e.removeEventListener(this.POINTER_MOVE,i,!1);break;case"touchend":e.removeEventListener(this.POINTER_UP,i,!1),e.removeEventListener(this.POINTER_CANCEL,i,!1)}return this}}),s.Map.mergeOptions({touchZoom:s.Browser.touch&&!s.Browser.android23,bounceAtZoomLimits:!0}),s.Map.TouchZoom=s.Handler.extend({addHooks:function(){s.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){s.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var n=this._map;if(e.touches&&2===e.touches.length&&!n._animatingZoom&&!this._zooming){var r=n.mouseEventToLayerPoint(e.touches[0]),i=n.mouseEventToLayerPoint(e.touches[1]),o=n._getCenterLayerPoint();this._startCenter=r.add(i)._divideBy(2),this._startDist=r.distanceTo(i),this._moved=!1,this._zooming=!0,this._centerOffset=o.subtract(this._startCenter),n._panAnim&&n._panAnim.stop(),s.DomEvent.on(t,"touchmove",this._onTouchMove,this).on(t,"touchend",this._onTouchEnd,this),s.DomEvent.preventDefault(e)}},_onTouchMove:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&this._zooming){var n=t.mouseEventToLayerPoint(e.touches[0]),r=t.mouseEventToLayerPoint(e.touches[1]);this._scale=n.distanceTo(r)/this._startDist,this._delta=n._add(r)._divideBy(2)._subtract(this._startCenter),1!==this._scale&&(t.options.bounceAtZoomLimits||!(t.getZoom()===t.getMinZoom()&&this._scale<1||t.getZoom()===t.getMaxZoom()&&this._scale>1))&&(this._moved||(s.DomUtil.addClass(t._mapPane,"leaflet-touching"),t.fire("movestart").fire("zoomstart"),this._moved=!0),s.Util.cancelAnimFrame(this._animRequest),this._animRequest=s.Util.requestAnimFrame(this._updateOnMove,this,!0,this._map._container),s.DomEvent.preventDefault(e))}},_updateOnMove:function(){var e=this._map,t=this._getScaleOrigin(),n=e.layerPointToLatLng(t),r=e.getScaleZoom(this._scale);e._animateZoom(n,r,this._startCenter,this._scale,this._delta,!1,!0)},_onTouchEnd:function(){if(!this._moved||!this._zooming)return void (this._zooming=!1);var e=this._map;this._zooming=!1,s.DomUtil.removeClass(e._mapPane,"leaflet-touching"),s.Util.cancelAnimFrame(this._animRequest),s.DomEvent.off(t,"touchmove",this._onTouchMove).off(t,"touchend",this._onTouchEnd);var n=this._getScaleOrigin(),r=e.layerPointToLatLng(n),i=e.getZoom(),o=e.getScaleZoom(this._scale)-i,u=o>0?Math.ceil(o):Math.floor(o),a=e._limitZoom(i+u),f=e.getZoomScale(a)/this._scale;e._animateZoom(r,a,n,f)},_getScaleOrigin:function(){var e=this._centerOffset.subtract(this._delta).divideBy(this._scale);return this._startCenter.add(e)}}),s.Map.addInitHook("addHandler","touchZoom",s.Map.TouchZoom),s.Map.mergeOptions({tap:!0,tapTolerance:15}),s.Map.Tap=s.Handler.extend({addHooks:function(){s.DomEvent.on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){s.DomEvent.off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(e.touches){if(s.DomEvent.preventDefault(e),this._fireClick=!0,e.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var n=e.touches[0],r=n.target;this._startPos=this._newPos=new s.Point(n.clientX,n.clientY),r.tagName&&"a"===r.tagName.toLowerCase()&&s.DomUtil.addClass(r,"leaflet-active"),this._holdTimeout=setTimeout(s.bind(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",n))},this),1e3),s.DomEvent.on(t,"touchmove",this._onMove,this).on(t,"touchend",this._onUp,this)}},_onUp:function(e){if(clearTimeout(this._holdTimeout),s.DomEvent.off(t,"touchmove",this._onMove,this).off(t,"touchend",this._onUp,this),this._fireClick&&e&&e.changedTouches){var n=e.changedTouches[0],r=n.target;r&&r.tagName&&"a"===r.tagName.toLowerCase()&&s.DomUtil.removeClass(r,"leaflet-active"),this._isTapValid()&&this._simulateEvent("click",n)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(e){var t=e.touches[0];this._newPos=new s.Point(t.clientX,t.clientY)},_simulateEvent:function(n,r){var i=t.createEvent("MouseEvents");i._simulated=!0,r.target._simulatedClick=!0,i.initMouseEvent(n,!0,!0,e,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),r.target.dispatchEvent(i)}}),s.Browser.touch&&!s.Browser.pointer&&s.Map.addInitHook("addHandler","tap",s.Map.Tap),s.Map.mergeOptions({boxZoom:!0}),s.Map.BoxZoom=s.Handler.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._moved=!1},addHooks:function(){s.DomEvent.on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){s.DomEvent.off(this._container,"mousedown",this._onMouseDown),this._moved=!1},moved:function(){return this._moved},_onMouseDown:function(e){return this._moved=!1,!e.shiftKey||1!==e.which&&1!==e.button?!1:(s.DomUtil.disableTextSelection(),s.DomUtil.disableImageDrag(),this._startLayerPoint=this._map.mouseEventToLayerPoint(e),void s.DomEvent.on(t,"mousemove",this._onMouseMove,this).on(t,"mouseup",this._onMouseUp,this).on(t,"keydown",this._onKeyDown,this))},_onMouseMove:function(e){this._moved||(this._box=s.DomUtil.create("div","leaflet-zoom-box",this._pane),s.DomUtil.setPosition(this._box,this._startLayerPoint),this._container.style.cursor="crosshair",this._map.fire("boxzoomstart"));var t=this._startLayerPoint,n=this._box,r=this._map.mouseEventToLayerPoint(e),i=r.subtract(t),o=new s.Point(Math.min(r.x,t.x),Math.min(r.y,t.y));s.DomUtil.setPosition(n,o),this._moved=!0,n.style.width=Math.max(0,Math.abs(i.x)-4)+"px",n.style.height=Math.max(0,Math.abs(i.y)-4)+"px"},_finish:function(){this._moved&&(this._pane.removeChild(this._box),this._container.style.cursor=""),s.DomUtil.enableTextSelection(),s.DomUtil.enableImageDrag(),s.DomEvent.off(t,"mousemove",this._onMouseMove).off(t,"mouseup",this._onMouseUp).off(t,"keydown",this._onKeyDown)},_onMouseUp:function(e){this._finish();var t=this._map,n=t.mouseEventToLayerPoint(e);if(!this._startLayerPoint.equals(n)){var r=new s.LatLngBounds(t.layerPointToLatLng(this._startLayerPoint),t.layerPointToLatLng(n));t.fitBounds(r),t.fire("boxzoomend",{boxZoomBounds:r})}},_onKeyDown:function(e){27===e.keyCode&&this._finish()}}),s.Map.addInitHook("addHandler","boxZoom",s.Map.BoxZoom),s.Map.mergeOptions({keyboard:!0,keyboardPanOffset:80,keyboardZoomOffset:1}),s.Map.Keyboard=s.Handler.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,173]},initialize:function(e){this._map=e,this._setPanOffset(e.options.keyboardPanOffset),this._setZoomOffset(e.options.keyboardZoomOffset)},addHooks:function(){var e=this._map._container;-1===e.tabIndex&&(e.tabIndex="0"),s.DomEvent.on(e,"focus",this._onFocus,this).on(e,"blur",this._onBlur,this).on(e,"mousedown",this._onMouseDown,this),this._map.on("focus",this._addHooks,this).on("blur",this._removeHooks,this)},removeHooks:function(){this._removeHooks();var e=this._map._container;s.DomEvent.off(e,"focus",this._onFocus,this).off(e,"blur",this._onBlur,this).off(e,"mousedown",this._onMouseDown,this),this._map.off("focus",this._addHooks,this).off("blur",this._removeHooks,this)},_onMouseDown:function(){if(!this._focused){var n=t.body,r=t.documentElement,i=n.scrollTop||r.scrollTop,s=n.scrollLeft||r.scrollLeft;this._map._container.focus(),e.scrollTo(s,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanOffset:function(e){var t,n,r=this._panKeys={},i=this.keyCodes;for(t=0,n=i.left.length;n>t;t++)r[i.left[t]]=[-1*e,0];for(t=0,n=i.right.length;n>t;t++)r[i.right[t]]=[e,0];for(t=0,n=i.down.length;n>t;t++)r[i.down[t]]=[0,e];for(t=0,n=i.up.length;n>t;t++)r[i.up[t]]=[0,-1*e]},_setZoomOffset:function(e){var t,n,r=this._zoomKeys={},i=this.keyCodes;for(t=0,n=i.zoomIn.length;n>t;t++)r[i.zoomIn[t]]=e;for(t=0,n=i.zoomOut.length;n>t;t++)r[i.zoomOut[t]]=-e},_addHooks:function(){s.DomEvent.on(t,"keydown",this._onKeyDown,this)},_removeHooks:function(){s.DomEvent.off(t,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){var t=e.keyCode,n=this._map;if(t in this._panKeys){if(n._panAnim&&n._panAnim._inProgress)return;n.panBy(this._panKeys[t]),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds)}else{if(!(t in this._zoomKeys))return;n.setZoom(n.getZoom()+this._zoomKeys[t])}s.DomEvent.stop(e)}}),s.Map.addInitHook("addHandler","keyboard",s.Map.Keyboard),s.Handler.MarkerDrag=s.Handler.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new s.Draggable(e,e)),this._draggable.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._draggable.enable(),s.DomUtil.addClass(this._marker._icon,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off("dragstart",this._onDragStart,this).off("drag",this._onDrag,this).off("dragend",this._onDragEnd,this),this._draggable.disable(),s.DomUtil.removeClass(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(){var e=this._marker,t=e._shadow,n=s.DomUtil.getPosition(e._icon),r=e._map.layerPointToLatLng(n);t&&s.DomUtil.setPosition(t,n),e._latlng=r,e.fire("move",{latlng:r}).fire("drag")},_onDragEnd:function(e){this._marker.fire("moveend").fire("dragend",e)}}),s.Control=s.Class.extend({options:{position:"topright"},initialize:function(e){s.setOptions(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return s.DomUtil.addClass(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this},removeFrom:function(e){var t=this.getPosition(),n=e._controlCorners[t];return n.removeChild(this._container),this._map=null,this.onRemove&&this.onRemove(e),this},_refocusOnMap:function(){this._map&&this._map.getContainer().focus()}}),s.control=function(e){return new s.Control(e)},s.Map.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.removeFrom(this),this},_initControlPos:function(){function e(e,i){var o=n+e+" "+n+i;t[e+i]=s.DomUtil.create("div",o,r)}var t=this._controlCorners={},n="leaflet-",r=this._controlContainer=s.DomUtil.create("div",n+"control-container",this._container);e("top","left"),e("top","right"),e("bottom","left"),e("bottom","right")},_clearControlPos:function(){this._container.removeChild(this._controlContainer)}}),s.Control.Zoom=s.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=s.DomUtil.create("div",t+" leaflet-bar");return this._map=e,this._zoomInButton=this._createButton(this.options.zoomInText,this.options.zoomInTitle,t+"-in",n,this._zoomIn,this),this._zoomOutButton=this._createButton(this.options.zoomOutText,this.options.zoomOutTitle,t+"-out",n,this._zoomOut,this),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},_zoomIn:function(e){this._map.zoomIn(e.shiftKey?3:1)},_zoomOut:function(e){this._map.zoomOut(e.shiftKey?3:1)},_createButton:function(e,t,n,r,i,o){var u=s.DomUtil.create("a",n,r);u.innerHTML=e,u.href="#",u.title=t;var a=s.DomEvent.stopPropagation;return s.DomEvent.on(u,"click",a).on(u,"mousedown",a).on(u,"dblclick",a).on(u,"click",s.DomEvent.preventDefault).on(u,"click",i,o).on(u,"click",this._refocusOnMap,o),u},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";s.DomUtil.removeClass(this._zoomInButton,t),s.DomUtil.removeClass(this._zoomOutButton,t),e._zoom===e.getMinZoom()&&s.DomUtil.addClass(this._zoomOutButton,t),e._zoom===e.getMaxZoom()&&s.DomUtil.addClass(this._zoomInButton,t)}}),s.Map.mergeOptions({zoomControl:!0}),s.Map.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new s.Control.Zoom,this.addControl(this.zoomControl))}),s.control.zoom=function(e){return new s.Control.Zoom(e)},s.Control.Attribution=s.Control.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(e){s.setOptions(this,e),this._attributions={}},onAdd:function(e){this._container=s.DomUtil.create("div","leaflet-control-attribution"),s.DomEvent.disableClickPropagation(this._container);for(var t in e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return e.on("layeradd",this._onLayerAdd,this).on("layerremove",this._onLayerRemove,this),this._update(),this._container},onRemove:function(e){e.off("layeradd",this._onLayerAdd).off("layerremove",this._onLayerRemove)},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):void 0},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):void 0},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(" | ")}},_onLayerAdd:function(e){e.layer.getAttribution&&this.addAttribution(e.layer.getAttribution())},_onLayerRemove:function(e){e.layer.getAttribution&&this.removeAttribution(e.layer.getAttribution())}}),s.Map.mergeOptions({attributionControl:!0}),s.Map.addInitHook(function(){this.options.attributionControl&&(this.attributionControl=(new s.Control.Attribution).addTo(this))}),s.control.attribution=function(e){return new s.Control.Attribution(e)},s.Control.Scale=s.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1},onAdd:function(e){this._map=e;var t="leaflet-control-scale",n=s.DomUtil.create("div",t),r=this.options;return this._addScales(r,t,n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=s.DomUtil.create("div",t+"-line",n)),e.imperial&&(this._iScale=s.DomUtil.create("div",t+"-line",n))},_update:function(){var e=this._map.getBounds(),t=e.getCenter().lat,n=6378137*Math.PI*Math.cos(t*Math.PI/180),r=n*(e.getNorthEast().lng-e.getSouthWest().lng)/180,i=this._map.getSize(),s=this.options,o=0;i.x>0&&(o=r*(s.maxWidth/i.x)),this._updateScales(s,o)},_updateScales:function(e,t){e.metric&&t&&this._updateMetric(t),e.imperial&&t&&this._updateImperial(t)},_updateMetric:function(e){var t=this._getRoundNum(e);this._mScale.style.width=this._getScaleWidth(t/e)+"px",this._mScale.innerHTML=1e3>t?t+" m":t/1e3+" km"},_updateImperial:function(e){var t,n,r,i=3.2808399*e,s=this._iScale;i>5280?(t=i/5280,n=this._getRoundNum(t),s.style.width=this._getScaleWidth(n/t)+"px",s.innerHTML=n+" mi"):(r=this._getRoundNum(i),s.style.width=this._getScaleWidth(r/i)+"px",s.innerHTML=r+" ft")},_getScaleWidth:function(e){return Math.round(this.options.maxWidth*e)-10},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,t*n}}),s.control.scale=function(e){return new s.Control.Scale(e)},s.Control.Layers=s.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0},initialize:function(e,t,n){s.setOptions(this,n),this._layers={},this._lastZIndex=0,this._handlingClick=!1;for(var r in e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){return this._initLayout(),this._update(),e.on("layeradd",this._onLayerChange,this).on("layerremove",this._onLayerChange,this),this._container},onRemove:function(e){e.off("layeradd",this._onLayerChange,this).off("layerremove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._update(),this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._update(),this},removeLayer:function(e){var t=s.stamp(e);return delete this._layers[t],this._update(),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=s.DomUtil.create("div",e);t.setAttribute("aria-haspopup",!0),s.Browser.touch?s.DomEvent.on(t,"click",s.DomEvent.stopPropagation):s.DomEvent.disableClickPropagation(t).disableScrollPropagation(t);var n=this._form=s.DomUtil.create("form",e+"-list");if(this.options.collapsed){s.Browser.android||s.DomEvent.on(t,"mouseover",this._expand,this).on(t,"mouseout",this._collapse,this);var r=this._layersLink=s.DomUtil.create("a",e+"-toggle",t);r.href="#",r.title="Layers",s.Browser.touch?s.DomEvent.on(r,"click",s.DomEvent.stop).on(r,"click",this._expand,this):s.DomEvent.on(r,"focus",this._expand,this),s.DomEvent.on(n,"click",function(){setTimeout(s.bind(this._onInputClick,this),0)},this),this._map.on("click",this._collapse,this)}else this._expand();this._baseLayersList=s.DomUtil.create("div",e+"-base",n),this._separator=s.DomUtil.create("div",e+"-separator",n),this._overlaysList=s.DomUtil.create("div",e+"-overlays",n),t.appendChild(n)},_addLayer:function(e,t,n){var r=s.stamp(e);this._layers[r]={layer:e,name:t,overlay:n},this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex))},_update:function(){if(this._container){this._baseLayersList.innerHTML="",this._overlaysList.innerHTML="";var e,t,n=!1,r=!1;for(e in this._layers)t=this._layers[e],this._addItem(t),r=r||t.overlay,n=n||!t.overlay;this._separator.style.display=r&&n?"":"none"}},_onLayerChange:function(e){var t=this._layers[s.stamp(e.layer)];if(t){this._handlingClick||this._update();var n=t.overlay?"layeradd"===e.type?"overlayadd":"overlayremove":"layeradd"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)}},_createRadioElement:function(e,n){var r='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"';n&&(r+=' checked="checked"'),r+="/>";var i=t.createElement("div");return i.innerHTML=r,i.firstChild},_addItem:function(e){var n,r=t.createElement("label"),i=this._map.hasLayer(e.layer);e.overlay?(n=t.createElement("input"),n.type="checkbox",n.className="leaflet-control-layers-selector",n.defaultChecked=i):n=this._createRadioElement("leaflet-base-layers",i),n.layerId=s.stamp(e.layer),s.DomEvent.on(n,"click",this._onInputClick,this);var o=t.createElement("span");o.innerHTML=" "+e.name,r.appendChild(n),r.appendChild(o);var u=e.overlay?this._overlaysList:this._baseLayersList;return u.appendChild(r),r},_onInputClick:function(){var e,t,n,r=this._form.getElementsByTagName("input"),i=r.length;for(this._handlingClick=!0,e=0;i>e;e++)t=r[e],n=this._layers[t.layerId],t.checked&&!this._map.hasLayer(n.layer)?this._map.addLayer(n.layer):!t.checked&&this._map.hasLayer(n.layer)&&this._map.removeLayer(n.layer);this._handlingClick=!1,this._refocusOnMap()},_expand:function(){s.DomUtil.addClass(this._container,"leaflet-control-layers-expanded")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-layers-expanded","")}}),s.control.layers=function(e,t,n){return new s.Control.Layers(e,t,n)},s.PosAnimation=s.Class.extend({includes:s.Mixin.Events,run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._newPos=t,this.fire("start"),e.style[s.DomUtil.TRANSITION]="all "+(n||.25)+"s cubic-bezier(0,0,"+(r||.5)+",1)",s.DomEvent.on(e,s.DomUtil.TRANSITION_END,this._onTransitionEnd,this),s.DomUtil.setPosition(e,t),s.Util.falseFn(e.offsetWidth),this._stepTimer=setInterval(s.bind(this._onStep,this),50)},stop:function(){this._inProgress&&(s.DomUtil.setPosition(this._el,this._getPos()),this._onTransitionEnd(),s.Util.falseFn(this._el.offsetWidth))},_onStep:function(){var e=this._getPos();return e?(this._el._leaflet_pos=e,void this.fire("step")):void this._onTransitionEnd()},_transformRe:/([-+]?(?:\d*\.)?\d+)\D*, ([-+]?(?:\d*\.)?\d+)\D*\)/,_getPos:function(){var t,n,r,i=this._el,o=e.getComputedStyle(i);if(s.Browser.any3d){if(r=o[s.DomUtil.TRANSFORM].match(this._transformRe),!r)return;t=parseFloat(r[1]),n=parseFloat(r[2])}else t=parseFloat(o.left),n=parseFloat(o.top);return new s.Point(t,n,!0)},_onTransitionEnd:function(){s.DomEvent.off(this._el,s.DomUtil.TRANSITION_END,this._onTransitionEnd,this),this._inProgress&&(this._inProgress=!1,this._el.style[s.DomUtil.TRANSITION]="",this._el._leaflet_pos=this._newPos,clearInterval(this._stepTimer),this.fire("step").fire("end"))}}),s.Map.include({setView:function(e,t,n){if(t=t===r?this._zoom:this._limitZoom(t),e=this._limitCenter(s.latLng(e),t,this.options.maxBounds),n=n||{},this._panAnim&&this._panAnim.stop(),this._loaded&&!n.reset&&n!==!0){n.animate!==r&&(n.zoom=s.extend({animate:n.animate},n.zoom),n.pan=s.extend({animate:n.animate},n.pan));var i=this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,n.zoom):this._tryAnimatedPan(e,n.pan);if(i)return clearTimeout(this._sizeTimer),this}return this._resetView(e,t),this},panBy:function(e,t){if(e=s.point(e).round(),t=t||{},!e.x&&!e.y)return this;if(this._panAnim||(this._panAnim=new s.PosAnimation,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),t.animate!==!1){s.DomUtil.addClass(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e);this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){s.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._floor();return(t&&t.animate)===!0||this.getSize().contains(n)?(this.panBy(n,t),!0):!1}}),s.PosAnimation=s.DomUtil.TRANSITION?s.PosAnimation:s.PosAnimation.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=s.DomUtil.getPosition(e),this._offset=t.subtract(this._startPos),this._startTime=+(new Date),this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(),this._complete())},_animate:function(){this._animId=s.Util.requestAnimFrame(this._animate,this),this._step()},_step:function(){var e=+(new Date)-this._startTime,t=1e3*this._duration;t>e?this._runFrame(this._easeOut(e/t)):(this._runFrame(1),this._complete())},_runFrame:function(e){var t=this._startPos.add(this._offset.multiplyBy(e));s.DomUtil.setPosition(this._el,t),this.fire("step")},_complete:function(){s.Util.cancelAnimFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),s.Map.mergeOptions({zoomAnimation:!0,zoomAnimationThreshold:4}),s.DomUtil.TRANSITION&&s.Map.addInitHook(function(){this._zoomAnimated=this.options.zoomAnimation&&s.DomUtil.TRANSITION&&s.Browser.any3d&&!s.Browser.android23&&!s.Browser.mobileOpera,this._zoomAnimated&&s.DomEvent.on(this._mapPane,s.DomUtil.TRANSITION_END,this._catchTransitionEnd,this)}),s.Map.include(s.DomUtil.TRANSITION?{_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||n.animate===!1||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r),s=this._getCenterLayerPoint()._add(i);return n.animate===!0||this.getSize().contains(i)?(this.fire("movestart").fire("zoomstart"),this._animateZoom(e,t,s,r,null,!0),!0):!1},_animateZoom:function(e,t,n,r,i,o,u){u||(this._animatingZoom=!0),s.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"),this._animateToCenter=e,this._animateToZoom=t,s.Draggable&&(s.Draggable._disabled=!0),s.Util.requestAnimFrame(function(){this.fire("zoomanim",{center:e,zoom:t,origin:n,scale:r,delta:i,backwards:o}),setTimeout(s.bind(this._onZoomTransitionEnd,this),250)},this)},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._animatingZoom=!1,s.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),s.Util.requestAnimFrame(function(){this._resetView(this._animateToCenter,this._animateToZoom,!0,!0),s.Draggable&&(s.Draggable._disabled=!1)},this))}}:{}),s.TileLayer.include({_animateZoom:function(e){this._animating||(this._animating=!0,this._prepareBgBuffer());var t=this._bgBuffer,n=s.DomUtil.TRANSFORM,r=e.delta?s.DomUtil.getTranslateString(e.delta):t.style[n],i=s.DomUtil.getScaleString(e.scale,e.origin);t.style[n]=e.backwards?i+" "+r:r+" "+i},_endZoomAnim:function(){var e=this._tileContainer,t=this._bgBuffer;e.style.visibility="",e.parentNode.appendChild(e),s.Util.falseFn(t.offsetWidth);var n=this._map.getZoom();(n>this.options.maxZoom||n<this.options.minZoom)&&this._clearBgBuffer(),this._animating=!1},_clearBgBuffer:function(){var e=this._map;!e||e._animatingZoom||e.touchZoom._zooming||(this._bgBuffer.innerHTML="",this._bgBuffer.style[s.DomUtil.TRANSFORM]="")},_prepareBgBuffer:function(){var e=this._tileContainer,t=this._bgBuffer,n=this._getLoadedTilesPercentage(t),r=this._getLoadedTilesPercentage(e);return t&&n>.5&&.5>r?(e.style.visibility="hidden",void this._stopLoadingImages(e)):(t.style.visibility="hidden",t.style[s.DomUtil.TRANSFORM]="",this._tileContainer=t,t=this._bgBuffer=e,this._stopLoadingImages(t),void clearTimeout(this._clearBgBufferTimer))},_getLoadedTilesPercentage:function(e){var t,n,r=e.getElementsByTagName("img"),i=0;for(t=0,n=r.length;n>t;t++)r[t].complete&&i++;return i/n},_stopLoadingImages:function(e){var t,n,r,i=Array.prototype.slice.call(e.getElementsByTagName("img"));for(t=0,n=i.length;n>t;t++)r=i[t],r.complete||(r.onload=s.Util.falseFn,r.onerror=s.Util.falseFn,r.src=s.Util.emptyImageUrl,r.parentNode.removeChild(r))}}),s.Map.include({_defaultLocateOptions:{watch:!1,setView:!1,maxZoom:1/0,timeout:1e4,maximumAge:0,enableHighAccuracy:!1},locate:function(e){if(e=this._locateOptions=s.extend(this._defaultLocateOptions,e),!navigator.geolocation)return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=s.bind(this._handleGeolocationResponse,this),n=s.bind(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,n,e):navigator.geolocation.getCurrentPosition(t,n,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(e){var t=e.coords.latitude,n=e.coords.longitude,r=new s.LatLng(t,n),i=180*e.coords.accuracy/40075017,o=i/Math.cos(s.LatLng.DEG_TO_RAD*t),u=s.latLngBounds([t-i,n-o],[t+i,n+o]),a=this._locateOptions;if(a.setView){var f=Math.min(this.getBoundsZoom(u),a.maxZoom);this.setView(r,f)}var l={latlng:r,bounds:u,timestamp:e.timestamp};for(var c in e.coords)"number"==typeof e.coords[c]&&(l[c]=e.coords[c]);this.fire("locationfound",l)}})}(window,document),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof n&&n.amd?n("chroma-js",t):e.chroma=t()}(this,function(){"use strict";for(var e=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e<t?t:n<e?n:e},t={},n=0,r=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];n<r.length;n+=1){var i=r[n];t["[object "+i+"]"]=i.toLowerCase()}var s=function(e){return t[Object.prototype.toString.call(e)]||"object"},o=Math.PI,u={clip_rgb:function(t){t._clipped=!1,t._unclipped=t.slice(0);for(var n=0;n<=3;n++)n<3?((t[n]<0||255<t[n])&&(t._clipped=!0),t[n]=e(t[n],0,255)):3===n&&(t[n]=e(t[n],0,1));return t},limit:e,type:s,unpack:function(e,t){return void 0===t&&(t=null),3<=e.length?Array.prototype.slice.call(e):"object"==s(e[0])&&t?t.split("").filter(function(t){return void 0!==e[0][t]}).map(function(t){return e[0][t]}):e[0]},last:function(e){if(e.length<2)return null;var t=e.length-1;return"string"==s(e[t])?e[t].toLowerCase():null},PI:o,TWOPI:2*o,PITHIRD:o/3,DEG2RAD:o/180,RAD2DEG:180/o},a={format:{},autodetect:[]},f=u.last,l=u.clip_rgb,c=u.type,h=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if("object"===c(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];var n=f(e),r=!1;if(!n){r=!0,a.sorted||(a.autodetect=a.autodetect.sort(function(e,t){return t.p-e.p}),a.sorted=!0);for(var i=0,s=a.autodetect;i<s.length;i+=1){var o=s[i];if(n=o.test.apply(o,e))break}}if(!a.format[n])throw new Error("unknown format: "+e);var u=a.format[n].apply(null,r?e:e.slice(0,-1));this._rgb=l(u),3===this._rgb.length&&this._rgb.push(1)};h.prototype.toString=function(){return"function"==c(this.hex)?this.hex():"["+this._rgb.join(",")+"]"};var p=h,d=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(d.Color,[null].concat(e)))};d.Color=p,d.version="2.1.0";var v=d,m=u.unpack,g=Math.max,y=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=m(e,"rgb"),r=n[0],i=n[1],s=n[2],o=1-g(r/=255,g(i/=255,s/=255)),u=o<1?1/(1-o):0;return[(1-r-o)*u,(1-i-o)*u,(1-s-o)*u,o]},b=u.unpack,w=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=b(e,"cmyk"))[0],r=e[1],i=e[2],s=e[3],o=4<e.length?e[4]:1;return 1===s?[0,0,0,o]:[1<=n?0:255*(1-n)*(1-s),1<=r?0:255*(1-r)*(1-s),1<=i?0:255*(1-i)*(1-s),o]},E=u.unpack,S=u.type;p.prototype.cmyk=function(){return y(this._rgb)},v.cmyk=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["cmyk"])))},a.format.cmyk=w,a.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=E(e,"cmyk"),"array"===S(e)&&4===e.length)return"cmyk"}});var x=u.unpack,T=u.last,N=function(e){return Math.round(100*e)/100},C=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=x(e,"hsla"),r=T(e)||"lsa";return n[0]=N(n[0]||0),n[1]=N(100*n[1])+"%",n[2]=N(100*n[2])+"%","hsla"===r||3<n.length&&n[3]<1?(n[3]=3<n.length?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},k=u.unpack,L=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=k(e,"rgba"))[0],r=e[1],i=e[2];n/=255,r/=255,i/=255;var s,o,u=Math.min(n,r,i),a=Math.max(n,r,i),f=(a+u)/2;return a===u?(s=0,o=Number.NaN):s=f<.5?(a-u)/(a+u):(a-u)/(2-a-u),n==a?o=(r-i)/(a-u):r==a?o=2+(i-n)/(a-u):i==a&&(o=4+(n-r)/(a-u)),(o*=60)<0&&(o+=360),3<e.length&&void 0!==e[3]?[o,s,f,e[3]]:[o,s,f]},A=u.unpack,O=u.last,M=Math.round,_=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=A(e,"rgba"),r=O(e)||"rgb";return"hsl"==r.substr(0,3)?C(L(n),r):(n[0]=M(n[0]),n[1]=M(n[1]),n[2]=M(n[2]),("rgba"===r||3<n.length&&n[3]<1)&&(n[3]=3<n.length?n[3]:1,r="rgba"),r+"("+n.slice(0,"rgb"===r?3:4).join(",")+")")},D=u.unpack,P=Math.round,H=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r,i,s,o=(t=D(t,"hsl"))[0],u=t[1],a=t[2];if(0===u)r=i=s=255*a;else{var f=[0,0,0],l=[0,0,0],c=a<.5?a*(1+u):a+u-a*u,h=2*a-c,p=o/360;f[0]=p+1/3,f[1]=p,f[2]=p-1/3;for(var d=0;d<3;d++)f[d]<0&&(f[d]+=1),1<f[d]&&(f[d]-=1),6*f[d]<1?l[d]=h+6*(c-h)*f[d]:2*f[d]<1?l[d]=c:3*f[d]<2?l[d]=h+(c-h)*(2/3-f[d])*6:l[d]=h;r=(e=[P(255*l[0]),P(255*l[1]),P(255*l[2])])[0],i=e[1],s=e[2]}return 3<t.length?[r,i,s,t[3]]:[r,i,s,1]},B=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,j=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,F=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,I=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,q=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,R=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,U=Math.round,z=function(e){var t;if(e=e.toLowerCase().trim(),a.format.named)try{return a.format.named(e)}catch(e){}if(t=e.match(B)){for(var n=t.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(t=e.match(j)){for(var i=t.slice(1,5),s=0;s<4;s++)i[s]=+i[s];return i}if(t=e.match(F)){for(var o=t.slice(1,4),u=0;u<3;u++)o[u]=U(2.55*o[u]);return o[3]=1,o}if(t=e.match(I)){for(var f=t.slice(1,5),l=0;l<3;l++)f[l]=U(2.55*f[l]);return f[3]=+f[3],f}if(t=e.match(q)){var c=t.slice(1,4);c[1]*=.01,c[2]*=.01;var h=H(c);return h[3]=1,h}if(t=e.match(R)){var p=t.slice(1,4);p[1]*=.01,p[2]*=.01;var d=H(p);return d[3]=+t[4],d}};z.test=function(e){return B.test(e)||j.test(e)||F.test(e)||I.test(e)||q.test(e)||R.test(e)};var W=z,X=u.type;p.prototype.css=function(e){return _(this._rgb,e)},v.css=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["css"])))},a.format.css=W,a.autodetect.push({p:5,test:function(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];if(!t.length&&"string"===X(e)&&W.test(e))return"css"}});var V=u.unpack;a.format.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=V(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},v.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["gl"])))},p.prototype.gl=function(){var e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var $=u.unpack,J=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=$(e,"rgb"),i=r[0],s=r[1],o=r[2],u=Math.min(i,s,o),a=Math.max(i,s,o),f=a-u,l=100*f/255,c=u/(255-f)*100;return 0===f?n=Number.NaN:(i===a&&(n=(s-o)/f),s===a&&(n=2+(o-i)/f),o===a&&(n=4+(i-s)/f),(n*=60)<0&&(n+=360)),[n,l,c]},K=u.unpack,Q=Math.floor,G=function(){for(var e,t,n,r,i,s,o=[],u=arguments.length;u--;)o[u]=arguments[u];var a,f,l,c=(o=K(o,"hcg"))[0],h=o[1],p=o[2];p*=255;var d=255*h;if(0===h)a=f=l=p;else{360===c&&(c=0),360<c&&(c-=360),c<0&&(c+=360);var v=Q(c/=60),m=c-v,g=p*(1-h),y=g+d*(1-m),b=g+d*m,w=g+d;switch(v){case 0:a=(e=[w,b,g])[0],f=e[1],l=e[2];break;case 1:a=(t=[y,w,g])[0],f=t[1],l=t[2];break;case 2:a=(n=[g,w,b])[0],f=n[1],l=n[2];break;case 3:a=(r=[g,y,w])[0],f=r[1],l=r[2];break;case 4:a=(i=[b,g,w])[0],f=i[1],l=i[2];break;case 5:a=(s=[w,g,y])[0],f=s[1],l=s[2]}}return[a,f,l,3<o.length?o[3]:1]},Y=u.unpack,Z=u.type;p.prototype.hcg=function(){return J(this._rgb)},v.hcg=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hcg"])))},a.format.hcg=G,a.autodetect.push({p:1,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Y(e,"hcg"),"array"===Z(e)&&3===e.length)return"hcg"}});var et=u.unpack,tt=u.last,nt=Math.round,rt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=et(e,"rgba"),r=n[0],i=n[1],s=n[2],o=n[3],u=tt(e)||"auto";void 0===o&&(o=1),"auto"===u&&(u=o<1?"rgba":"rgb");var a="000000"+((r=nt(r))<<16|(i=nt(i))<<8|(s=nt(s))).toString(16);a=a.substr(a.length-6);var f="0"+nt(255*o).toString(16);switch(f=f.substr(f.length-2),u.toLowerCase()){case"rgba":return"#"+a+f;case"argb":return"#"+f+a;default:return"#"+a}},it=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,st=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,ot=function(e){if(e.match(it)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(st)){5!==e.length&&9!==e.length||(e=e.substr(1)),4===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var n=parseInt(e,16);return[n>>24&255,n>>16&255,n>>8&255,Math.round((255&n)/255*100)/100]}throw new Error("unknown hex color: "+e)},ut=u.type;p.prototype.hex=function(e){return rt(this._rgb,e)},v.hex=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hex"])))},a.format.hex=ot,a.autodetect.push({p:4,test:function(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];if(!t.length&&"string"===ut(e)&&0<=[3,4,5,6,7,8,9].indexOf(e.length))return"hex"}});var at=u.unpack,ft=u.TWOPI,lt=Math.min,ct=Math.sqrt,ht=Math.acos,pt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=at(e,"rgb"),i=r[0],s=r[1],o=r[2],u=lt(i/=255,s/=255,o/=255),a=(i+s+o)/3,f=0<a?1-u/a:0;return 0===f?n=NaN:(n=(i-s+(i-o))/2,n/=ct((i-s)*(i-s)+(i-o)*(s-o)),n=ht(n),s<o&&(n=ft-n),n/=ft),[360*n,f,a]},dt=u.unpack,vt=u.limit,mt=u.TWOPI,gt=u.PITHIRD,yt=Math.cos,bt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,s=(e=dt(e,"hsi"))[0],o=e[1],u=e[2];return isNaN(s)&&(s=0),isNaN(o)&&(o=0),360<s&&(s-=360),s<0&&(s+=360),(s/=360)<1/3?r=1-((i=(1-o)/3)+(n=(1+o*yt(mt*s)/yt(gt-mt*s))/3)):s<2/3?i=1-((n=(1-o)/3)+(r=(1+o*yt(mt*(s-=1/3))/yt(gt-mt*s))/3)):n=1-((r=(1-o)/3)+(i=(1+o*yt(mt*(s-=2/3))/yt(gt-mt*s))/3)),[255*(n=vt(u*n*3)),255*(r=vt(u*r*3)),255*(i=vt(u*i*3)),3<e.length?e[3]:1]},wt=u.unpack,Et=u.type;p.prototype.hsi=function(){return pt(this._rgb)},v.hsi=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsi"])))},a.format.hsi=bt,a.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=wt(e,"hsi"),"array"===Et(e)&&3===e.length)return"hsi"}});var St=u.unpack,xt=u.type;p.prototype.hsl=function(){return L(this._rgb)},v.hsl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsl"])))},a.format.hsl=H,a.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=St(e,"hsl"),"array"===xt(e)&&3===e.length)return"hsl"}});var Tt=u.unpack,Nt=Math.min,Ct=Math.max,kt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,s=(e=Tt(e,"rgb"))[0],o=e[1],u=e[2],a=Nt(s,o,u),f=Ct(s,o,u),l=f-a;return i=f/255,0===f?(n=Number.NaN,r=0):(r=l/f,s===f&&(n=(o-u)/l),o===f&&(n=2+(u-s)/l),u===f&&(n=4+(s-o)/l),(n*=60)<0&&(n+=360)),[n,r,i]},Lt=u.unpack,At=Math.floor,Ot=function(){for(var e,t,n,r,i,s,o=[],u=arguments.length;u--;)o[u]=arguments[u];var a,f,l,c=(o=Lt(o,"hsv"))[0],h=o[1],p=o[2];if(p*=255,0===h)a=f=l=p;else{360===c&&(c=0),360<c&&(c-=360),c<0&&(c+=360);var d=At(c/=60),v=c-d,m=p*(1-h),g=p*(1-h*v),y=p*(1-h*(1-v));switch(d){case 0:a=(e=[p,y,m])[0],f=e[1],l=e[2];break;case 1:a=(t=[g,p,m])[0],f=t[1],l=t[2];break;case 2:a=(n=[m,p,y])[0],f=n[1],l=n[2];break;case 3:a=(r=[m,g,p])[0],f=r[1],l=r[2];break;case 4:a=(i=[y,m,p])[0],f=i[1],l=i[2];break;case 5:a=(s=[p,m,g])[0],f=s[1],l=s[2]}}return[a,f,l,3<o.length?o[3]:1]},Mt=u.unpack,_t=u.type;p.prototype.hsv=function(){return kt(this._rgb)},v.hsv=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsv"])))},a.format.hsv=Ot,a.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Mt(e,"hsv"),"array"===_t(e)&&3===e.length)return"hsv"}});var Dt=18,Pt=.95047,Ht=1,Bt=1.08883,jt=.137931034,Ft=.206896552,It=.12841855,qt=.008856452,Rt=u.unpack,Ut=Math.pow,zt=function(e){return(e/=255)<=.04045?e/12.92:Ut((e+.055)/1.055,2.4)},Wt=function(e){return qt<e?Ut(e,1/3):e/It+jt},Xt=function(e,t,n){return e=zt(e),t=zt(t),n=zt(n),[Wt((.4124564*e+.3575761*t+.1804375*n)/Pt),Wt((.2126729*e+.7151522*t+.072175*n)/Ht),Wt((.0193339*e+.119192*t+.9503041*n)/Bt)]},Vt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Rt(e,"rgb"),r=n[0],i=n[1],s=n[2],o=Xt(r,i,s),u=o[0],a=o[1],f=116*a-16;return[f<0?0:f,500*(u-a),200*(a-o[2])]},$t=u.unpack,Jt=Math.pow,Kt=function(e){return 255*(e<=.00304?12.92*e:1.055*Jt(e,1/2.4)-.055)},Qt=function(e){return Ft<e?e*e*e:It*(e-jt)},Gt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,s=(e=$t(e,"lab"))[0],o=e[1],u=e[2];return r=(s+16)/116,n=isNaN(o)?r:r+o/500,i=isNaN(u)?r:r-u/200,r=Ht*Qt(r),n=Pt*Qt(n),i=Bt*Qt(i),[Kt(3.2404542*n-1.5371385*r-.4985314*i),Kt(-0.969266*n+1.8760108*r+.041556*i),Kt(.0556434*n-.2040259*r+1.0572252*i),3<e.length?e[3]:1]},Yt=u.unpack,Zt=u.type;p.prototype.lab=function(){return Vt(this._rgb)},v.lab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["lab"])))},a.format.lab=Gt,a.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Yt(e,"lab"),"array"===Zt(e)&&3===e.length)return"lab"}});var en=u.unpack,tn=u.RAD2DEG,nn=Math.sqrt,rn=Math.atan2,sn=Math.round,on=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=en(e,"lab"),r=n[0],i=n[1],s=n[2],o=nn(i*i+s*s),u=(rn(s,i)*tn+360)%360;return 0===sn(1e4*o)&&(u=Number.NaN),[r,o,u]},un=u.unpack,an=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=un(e,"rgb"),r=n[0],i=n[1],s=n[2],o=Vt(r,i,s),u=o[0],a=o[1],f=o[2];return on(u,a,f)},fn=u.unpack,ln=u.DEG2RAD,cn=Math.sin,hn=Math.cos,pn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=fn(e,"lch"),r=n[0],i=n[1],s=n[2];return isNaN(s)&&(s=0),[r,hn(s*=ln)*i,cn(s)*i]},dn=u.unpack,vn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=dn(e,"lch"))[0],r=e[1],i=e[2],s=pn(n,r,i),o=s[0],u=s[1],a=s[2],f=Gt(o,u,a);return[f[0],f[1],f[2],3<e.length?e[3]:1]},mn=u.unpack,gn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=mn(e,"hcl").reverse();return vn.apply(void 0,n)},yn=u.unpack,bn=u.type;p.prototype.lch=function(){return an(this._rgb)},p.prototype.hcl=function(){return an(this._rgb).reverse()},v.lch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["lch"])))},v.hcl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hcl"])))},a.format.lch=vn,a.format.hcl=gn,["lch","hcl"].forEach(function(e){return a.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=yn(t,e),"array"===bn(t)&&3===t.length)return e}})});var wn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},En=u.type;p.prototype.name=function(){for(var e=rt(this._rgb,"rgb"),t=0,n=Object.keys(wn);t<n.length;t+=1){var r=n[t];if(wn[r]===e)return r.toLowerCase()}return e},a.format.named=function(e){if(e=e.toLowerCase(),wn[e])return ot(wn[e]);throw new Error("unknown color name: "+e)},a.autodetect.push({p:5,test:function(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];if(!t.length&&"string"===En(e)&&wn[e.toLowerCase()])return"named"}});var Sn=u.unpack,xn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Sn(e,"rgb");return(n[0]<<16)+(n[1]<<8)+n[2]},Tn=u.type,Nn=function(e){if("number"==Tn(e)&&0<=e&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)},Cn=u.type;p.prototype.num=function(){return xn(this._rgb)},v.num=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["num"])))},a.format.num=Nn,a.autodetect.push({p:5,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(1===e.length&&"number"===Cn(e[0])&&0<=e[0]&&e[0]<=16777215)return"num"}});var kn=u.unpack,Ln=u.type,An=Math.round;p.prototype.rgb=function(e){return void 0===e&&(e=!0),!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(An)},p.prototype.rgba=function(e){return void 0===e&&(e=!0),this._rgb.slice(0,4).map(function(t,n){return n<3?!1===e?t:An(t):t})},v.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["rgb"])))},a.format.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=kn(e,"rgba");return void 0===n[3]&&(n[3]=1),n},a.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=kn(e,"rgba"),"array"===Ln(e)&&(3===e.length||4===e.length&&"number"==Ln(e[3])&&0<=e[3]&&e[3]<=1))return"rgb"}});var On=Math.log,Mn=function(e){var t,n,r,i=e/100;return r=i<66?(t=255,n=-155.25485562709179-.44596950469579133*(n=i-2)+104.49216199393888*On(n),i<20?0:.8274096064007395*(r=i-10)-254.76935184120902+115.67994401066147*On(r)):(t=351.97690566805693+.114206453784165*(t=i-55)-40.25366309332127*On(t),n=325.4494125711974+.07943456536662342*(n=i-50)-28.0852963507957*On(n),255),[t,n,r,1]},_n=u.unpack,Dn=Math.round,Pn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n,r=_n(e,"rgb"),i=r[0],s=r[2],o=1e3,u=4e4;.4<u-o;){var a=Mn(n=.5*(u+o));a[2]/a[0]>=s/i?u=n:o=n}return Dn(n)};p.prototype.temp=p.prototype.kelvin=p.prototype.temperature=function(){return Pn(this._rgb)},v.temp=v.kelvin=v.temperature=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["temp"])))},a.format.temp=a.format.kelvin=a.format.temperature=Mn;var Hn=u.type;p.prototype.alpha=function(e,t){return void 0===t&&(t=!1),void 0!==e&&"number"===Hn(e)?t?(this._rgb[3]=e,this):new p([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},p.prototype.clipped=function(){return this._rgb._clipped||!1},p.prototype.darken=function(e){void 0===e&&(e=1);var t=this.lab();return t[0]-=Dt*e,(new p(t,"lab")).alpha(this.alpha(),!0)},p.prototype.brighten=function(e){return void 0===e&&(e=1),this.darken(-e)},p.prototype.darker=p.prototype.darken,p.prototype.brighter=p.prototype.brighten,p.prototype.get=function(e){var t=e.split("."),n=t[0],r=t[1],i=this[n]();if(r){var s=n.indexOf(r);if(-1<s)return i[s];throw new Error("unknown channel "+r+" in mode "+n)}return i};var Bn=u.type,jn=Math.pow;p.prototype.luminance=function(e){if(void 0===e||"number"!==Bn(e))return Fn.apply(void 0,this._rgb.slice(0,3));if(0===e)return new p([0,0,0,this._rgb[3]],"rgb");if(1===e)return new p([255,255,255,this._rgb[3]],"rgb");var t=this.luminance(),n=20,r=function(t,i){var s=t.interpolate(i,.5,"rgb"),o=s.luminance();return Math.abs(e-o)<1e-7||!(n--)?s:e<o?r(t,s):r(s,i)},i=(e<t?r(new p([0,0,0]),this):r(this,new p([255,255,255]))).rgb();return new p(i.concat([this._rgb[3]]))};var Fn=function(e,t,n){return.2126*(e=In(e))+.7152*(t=In(t))+.0722*(n=In(n))},In=function(e){return(e/=255)<=.03928?e/12.92:jn((e+.055)/1.055,2.4)},qn={},Rn=u.type,Un=function(e,t,n){void 0===n&&(n=.5);for(var r=[],i=arguments.length-3;0<i--;)r[i]=arguments[i+3];var s=r[0]||"lrgb";if(qn[s]||r.length||(s=Object.keys(qn)[0]),!qn[s])throw new Error("interpolation mode "+s+" is not defined");return"object"!==Rn(e)&&(e=new p(e)),"object"!==Rn(t)&&(t=new p(t)),qn[s](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};p.prototype.mix=p.prototype.interpolate=function(e,t){void 0===t&&(t=.5);for(var n=[],r=arguments.length-2;0<r--;)n[r]=arguments[r+2];return Un.apply(void 0,[this,e,t].concat(n))},p.prototype.premultiply=function(e){void 0===e&&(e=!1);var t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new p([t[0]*n,t[1]*n,t[2]*n,n],"rgb")},p.prototype.saturate=function(e){void 0===e&&(e=1);var t=this.lch();return t[1]+=Dt*e,t[1]<0&&(t[1]=0),(new p(t,"lch")).alpha(this.alpha(),!0)},p.prototype.desaturate=function(e){return void 0===e&&(e=1),this.saturate(-e)};var zn=u.type;p.prototype.set=function(e,t,n){void 0===n&&(n=!1);var r=e.split("."),i=r[0],s=r[1],o=this[i]();if(s){var u=i.indexOf(s);if(-1<u){if("string"==zn(t))switch(t.charAt(0)){case"+":case"-":o[u]+=+t;break;case"*":o[u]*=+t.substr(1);break;case"/":o[u]/=+t.substr(1);break;default:o[u]=+t}else{if("number"!==zn(t))throw new Error("unsupported value for Color.set");o[u]=t}var a=new p(o,i);return n?(this._rgb=a._rgb,this):a}throw new Error("unknown channel "+s+" in mode "+i)}return o},qn.rgb=function(e,t,n){var r=e._rgb,i=t._rgb;return new p(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};var Wn=Math.sqrt,Xn=Math.pow;qn.lrgb=function(e,t,n){var r=e._rgb,i=r[0],s=r[1],o=r[2],u=t._rgb,a=u[0],f=u[1],l=u[2];return new p(Wn(Xn(i,2)*(1-n)+Xn(a,2)*n),Wn(Xn(s,2)*(1-n)+Xn(f,2)*n),Wn(Xn(o,2)*(1-n)+Xn(l,2)*n),"rgb")},qn.lab=function(e,t,n){var r=e.lab(),i=t.lab();return new p(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};var Vn=function(e,t,n,r){var i,s,o,u,a,f,l,c,h,d,v,m;return"hsl"===r?(o=e.hsl(),u=t.hsl()):"hsv"===r?(o=e.hsv(),u=t.hsv()):"hcg"===r?(o=e.hcg(),u=t.hcg()):"hsi"===r?(o=e.hsi(),u=t.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",o=e.hcl(),u=t.hcl()),"h"===r.substr(0,1)&&(a=(i=o)[0],l=i[1],h=i[2],f=(s=u)[0],c=s[1],d=s[2]),isNaN(a)||isNaN(f)?isNaN(a)?isNaN(f)?m=Number.NaN:(m=f,1!=h&&0!=h||"hsv"==r||(v=c)):(m=a,1!=d&&0!=d||"hsv"==r||(v=l)):m=a+n*(a<f&&180<f-a?f-(a+360):f<a&&180<a-f?f+360-a:f-a),void 0===v&&(v=l+n*(c-l)),new p([m,v,h+n*(d-h)],r)},$n=function(e,t,n){return Vn(e,t,n,"lch")};qn.lch=$n,qn.hcl=$n,qn.num=function(e,t,n){var r=e.num(),i=t.num();return new p(r+n*(i-r),"num")},qn.hcg=function(e,t,n){return Vn(e,t,n,"hcg")},qn.hsi=function(e,t,n){return Vn(e,t,n,"hsi")},qn.hsl=function(e,t,n){return Vn(e,t,n,"hsl")},qn.hsv=function(e,t,n){return Vn(e,t,n,"hsv")};var Jn=u.clip_rgb,Kn=Math.pow,Qn=Math.sqrt,Gn=Math.PI,Yn=Math.cos,Zn=Math.sin,er=Math.atan2,tr=function(e,t){for(var n=e.length,r=[0,0,0,0],i=0;i<e.length;i++){var s=e[i],o=t[i]/n,u=s._rgb;r[0]+=Kn(u[0],2)*o,r[1]+=Kn(u[1],2)*o,r[2]+=Kn(u[2],2)*o,r[3]+=u[3]*o}return r[0]=Qn(r[0]),r[1]=Qn(r[1]),r[2]=Qn(r[2]),.9999999<r[3]&&(r[3]=1),new p(Jn(r))},nr=u.type,rr=Math.pow,ir=function(e){var t="rgb",n=v("#ccc"),r=0,i=[0,1],s=[],o=[0,0],u=!1,a=[],f=!1,l=0,c=1,h=!1,p={},d=!0,m=1,g=function(e){if((e=e||["#fff","#000"])&&"string"===nr(e)&&v.brewer&&v.brewer[e.toLowerCase()]&&(e=v.brewer[e.toLowerCase()]),"array"===nr(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(var t=0;t<e.length;t++)e[t]=v(e[t]);for(var n=s.length=0;n<e.length;n++)s.push(n/(e.length-1))}return E(),a=e},y=function(e){return e},b=function(e){return e},w=function(e,r){var i,f;if(null==r&&(r=!1),isNaN(e)||null===e)return n;r?f=e:f=u&&2<u.length?function(e){if(null==u)return 0;for(var t=u.length-1,n=0;n<t&&e>=u[n];)n++;return n-1}(e)/(u.length-2):c!==l?(e-l)/(c-l):1,f=b(f),r||(f=y(f)),1!==m&&(f=rr(f,m)),f=o[0]+f*(1-o[0]-o[1]),f=Math.min(1,Math.max(0,f));var h=Math.floor(1e4*f);if(d&&p[h])i=p[h];else{if("array"===nr(a))for(var g=0;g<s.length;g++){var w=s[g];if(f<=w){i=a[g];break}if(w<=f&&g===s.length-1){i=a[g];break}if(w<f&&f<s[g+1]){f=(f-w)/(s[g+1]-w),i=v.interpolate(a[g],a[g+1],f,t);break}}else"function"===nr(a)&&(i=a(f));d&&(p[h]=i)}return i},E=function(){return p={}};g(e);var S=function(e){var t=v(w(e));return f&&t[f]?t[f]():t};return S.classes=function(e){if(null==e)return u;if("array"===nr(e))i=[(u=e)[0],e[e.length-1]];else{var t=v.analyze(i);u=0===e?[t.min,t.max]:v.limits(t,"e",e)}return S},S.domain=function(e){if(!arguments.length)return i;l=e[0],c=e[e.length-1],s=[];var t=a.length;if(e.length===t&&l!==c)for(var n=0,r=Array.from(e);n<r.length;n+=1){var o=r[n];s.push((o-l)/(c-l))}else{for(var u=0;u<t;u++)s.push(u/(t-1));if(2<e.length){var f=e.map(function(t,n){return n/(e.length-1)}),h=e.map(function(e){return(e-l)/(c-l)});h.every(function(e,t){return f[t]===e})||(b=function(e){if(e<=0||1<=e)return e;for(var t=0;e>=h[t+1];)t++;var n=(e-h[t])/(h[t+1]-h[t]);return f[t]+n*(f[t+1]-f[t])})}}return i=[l,c],S},S.mode=function(e){return arguments.length?(t=e,E(),S):t},S.range=function(e,t){return g(e),S},S.out=function(e){return f=e,S},S.spread=function(e){return arguments.length?(r=e,S):r},S.correctLightness=function(e){return null==e&&(e=!0),h=e,E(),y=h?function(e){for(var t=w(0,!0).lab()[0],n=w(1,!0).lab()[0],r=n<t,i=w(e,!0).lab()[0],s=t+(n-t)*e,o=i-s,u=0,a=1,f=20;.01<Math.abs(o)&&0<f--;)r&&(o*=-1),e+=o<0?.5*(a-(u=e)):.5*(u-(a=e)),i=w(e,!0).lab()[0],o=i-s;return e}:function(e){return e},S},S.padding=function(e){return null!=e?("number"===nr(e)&&(e=[e,e]),o=e,S):o},S.colors=function(t,n){arguments.length<2&&(n="hex");var r=[];if(0===arguments.length)r=a.slice(0);else if(1===t)r=[S(.5)];else if(1<t){var s=i[0],o=i[1]-s;r=function(e,t,n){for(var r=[],i=e<t,s=n?i?t+1:t-1:t,o=e;i?o<s:s<o;i?o++:o--)r.push(o);return r}(0,t,!1).map(function(e){return S(s+e/(t-1)*o)})}else{e=[];var f=[];if(u&&2<u.length)for(var l=1,c=u.length,h=1<=c;h?l<c:c<l;h?l++:l--)f.push(.5*(u[l-1]+u[l]));else f=i;r=f.map(function(e){return S(e)})}return v[n]&&(r=r.map(function(e){return e[n]()})),r},S.cache=function(e){return null!=e?(d=e,S):d},S.gamma=function(e){return null!=e?(m=e,S):m},S.nodata=function(e){return null!=e?(n=v(e),S):n},S},sr=function(e){var t,n,r,i,s,o,u;if(2===(e=e.map(function(e){return new p(e)})).length)t=e.map(function(e){return e.lab()}),s=t[0],o=t[1],i=function(e){var t=[0,1,2].map(function(t){return s[t]+e*(o[t]-s[t])});return new p(t,"lab")};else if(3===e.length)n=e.map(function(e){return e.lab()}),s=n[0],o=n[1],u=n[2],i=function(e){var t=[0,1,2].map(function(t){return(1-e)*(1-e)*s[t]+2*(1-e)*e*o[t]+e*e*u[t]});return new p(t,"lab")};else if(4===e.length){var a;r=e.map(function(e){return e.lab()}),s=r[0],o=r[1],u=r[2],a=r[3],i=function(e){var t=[0,1,2].map(function(t){return(1-e)*(1-e)*(1-e)*s[t]+3*(1-e)*(1-e)*e*o[t]+3*(1-e)*e*e*u[t]+e*e*e*a[t]});return new p(t,"lab")}}else if(5===e.length){var f=sr(e.slice(0,3)),l=sr(e.slice(2,5));i=function(e){return e<.5?f(2*e):l(2*(e-.5))}}return i},or=function(e,t,n){if(!or[n])throw new Error("unknown blend mode "+n);return or[n](e,t)},ur=function(e){return function(t,n){var r=v(n).rgb(),i=v(t).rgb();return v.rgb(e(r,i))}},ar=function(e){return function(t,n){var r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r}};or.normal=ur(ar(function(e){return e})),or.multiply=ur(ar(function(e,t){return e*t/255})),or.screen=ur(ar(function(e,t){return 255*(1-(1-e/255)*(1-t/255))})),or.overlay=ur(ar(function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))})),or.darken=ur(ar(function(e,t){return t<e?t:e})),or.lighten=ur(ar(function(e,t){return t<e?e:t})),or.dodge=ur(ar(function(e,t){return 255===e?255:255<(e=t/255*255/(1-e/255))?255:e})),or.burn=ur(ar(function(e,t){return 255*(1-(1-t/255)/(e/255))}));for(var fr=or,lr=u.type,cr=u.clip_rgb,hr=u.TWOPI,pr=Math.pow,dr=Math.sin,vr=Math.cos,mr=Math.floor,gr=Math.random,yr=Math.log,br=Math.pow,wr=Math.floor,Er=Math.abs,Sr=function(e,t){void 0===t&&(t=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===s(e)&&(e=Object.values(e)),e.forEach(function(e){t&&"object"===s(e)&&(e=e[t]),null==e||isNaN(e)||(n.values.push(e),n.sum+=e,e<n.min&&(n.min=e),e>n.max&&(n.max=e),n.count+=1)}),n.domain=[n.min,n.max],n.limits=function(e,t){return xr(n,e,t)},n},xr=function(e,t,n){void 0===t&&(t="equal"),void 0===n&&(n=7),"array"==s(e)&&(e=Sr(e));var r=e.min,i=e.max,o=e.values.sort(function(e,t){return e-t});if(1===n)return[r,i];var u=[];if("c"===t.substr(0,1)&&(u.push(r),u.push(i)),"e"===t.substr(0,1)){u.push(r);for(var a=1;a<n;a++)u.push(r+a/n*(i-r));u.push(i)}else if("l"===t.substr(0,1)){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");var f=Math.LOG10E*yr(r),l=Math.LOG10E*yr(i);u.push(r);for(var c=1;c<n;c++)u.push(br(10,f+c/n*(l-f)));u.push(i)}else if("q"===t.substr(0,1)){u.push(r);for(var h=1;h<n;h++){var p=(o.length-1)*h/n,d=wr(p);if(d===p)u.push(o[d]);else{var v=p-d;u.push(o[d]*(1-v)+o[d+1]*v)}}u.push(i)}else if("k"===t.substr(0,1)){var m,g=o.length,y=new Array(g),b=new Array(n),w=!0,E=0,S=null;(S=[]).push(r);for(var x=1;x<n;x++)S.push(r+x/n*(i-r));for(S.push(i);w;){for(var T=0;T<n;T++)b[T]=0;for(var N=0;N<g;N++)for(var C=o[N],k=Number.MAX_VALUE,L=void 0,A=0;A<n;A++){var O=Er(S[A]-C);O<k&&(k=O,L=A),b[L]++,y[N]=L}for(var M=new Array(n),_=0;_<n;_++)M[_]=null;for(var D=0;D<g;D++)null===M[m=y[D]]?M[m]=o[D]:M[m]+=o[D];for(var P=0;P<n;P++)M[P]*=1/b[P];w=!1;for(var H=0;H<n;H++)if(M[H]!==S[H]){w=!0;break}S=M,200<++E&&(w=!1)}for(var B={},j=0;j<n;j++)B[j]=[];for(var F=0;F<g;F++)B[m=y[F]].push(o[F]);for(var I=[],q=0;q<n;q++)I.push(B[q][0]),I.push(B[q][B[q].length-1]);I=I.sort(function(e,t){return e-t}),u.push(I[0]);for(var R=1;R<I.length;R+=2){var U=I[R];isNaN(U)||-1!==u.indexOf(U)||u.push(U)}}return u},Tr={analyze:Sr,limits:xr},Nr=Math.sqrt,Cr=Math.atan2,kr=Math.abs,Lr=Math.cos,Ar=Math.PI,Or={cool:function(){return ir([v.hsl(180,1,.9),v.hsl(250,.7,.4)])},hot:function(){return ir(["#000","#f00","#ff0","#fff"]).mode("rgb")}},Mr={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},_r=0,Dr=Object.keys(Mr);_r<Dr.length;_r+=1){var Pr=Dr[_r];Mr[Pr.toLowerCase()]=Mr[Pr]}var Hr=Mr;return v.average=function(e,t,n){void 0===t&&(t="lrgb"),void 0===n&&(n=null);var r=e.length;n||(n=Array.from(new Array(r)).map(function(){return 1}));var i=r/n.reduce(function(e,t){return e+t});if(n.forEach(function(e,t){n[t]*=i}),e=e.map(function(e){return new p(e)}),"lrgb"===t)return tr(e,n);for(var s=e.shift(),o=s.get(t),u=[],a=0,f=0,l=0;l<o.length;l++)if(o[l]=(o[l]||0)*n[0],u.push(isNaN(o[l])?0:n[0]),"h"===t.charAt(l)&&!isNaN(o[l])){var c=o[l]/180*Gn;a+=Yn(c)*n[0],f+=Zn(c)*n[0]}var h=s.alpha()*n[0];e.forEach(function(e,r){var i=e.get(t);h+=e.alpha()*n[r+1];for(var s=0;s<o.length;s++)if(!isNaN(i[s]))if(u[s]+=n[r+1],"h"===t.charAt(s)){var l=i[s]/180*Gn;a+=Yn(l)*n[r+1],f+=Zn(l)*n[r+1]}else o[s]+=i[s]*n[r+1]});for(var d=0;d<o.length;d++)if("h"===t.charAt(d)){for(var v=er(f/u[d],a/u[d])/Gn*180;v<0;)v+=360;for(;360<=v;)v-=360;o[d]=v}else o[d]=o[d]/u[d];return h/=r,(new p(o,t)).alpha(.99999<h?1:h,!0)},v.bezier=function(e){var t=sr(e);return t.scale=function(){return ir(t)},t},v.blend=fr,v.cubehelix=function(e,t,n,r,i){void 0===e&&(e=300),void 0===t&&(t=-1.5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=[0,1]);var s,o=0;"array"===lr(i)?s=i[1]-i[0]:(s=0,i=[i,i]);var u=function(u){var a=hr*((e+120)/360+t*u),f=pr(i[0]+s*u,r),l=(0!==o?n[0]+u*o:n)*f*(1-f)/2,c=vr(a),h=dr(a);return v(cr([255*(f+l*(-0.14861*c+1.78277*h)),255*(f+l*(-0.29227*c-.90649*h)),255*(f+l*1.97294*c),1]))};return u.start=function(t){return null==t?e:(e=t,u)},u.rotations=function(e){return null==e?t:(t=e,u)},u.gamma=function(e){return null==e?r:(r=e,u)},u.hue=function(e){return null==e?n:("array"===lr(n=e)?0==(o=n[1]-n[0])&&(n=n[1]):o=0,u)},u.lightness=function(e){return null==e?i:(s="array"===lr(e)?(i=e)[1]-e[0]:(i=[e,e],0),u)},u.scale=function(){return v.scale(u)},u.hue(n),u},v.mix=v.interpolate=Un,v.random=function(){for(var e="#",t=0;t<6;t++)e+="0123456789abcdef".charAt(mr(16*gr()));return new p(e,"hex")},v.scale=ir,v.analyze=Tr.analyze,v.contrast=function(e,t){e=new p(e),t=new p(t);var n=e.luminance(),r=t.luminance();return r<n?(n+.05)/(r+.05):(r+.05)/(n+.05)},v.deltaE=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1),e=new p(e),t=new p(t);for(var i=Array.from(e.lab()),s=i[0],o=i[1],u=i[2],a=Array.from(t.lab()),f=a[0],l=a[1],c=a[2],h=Nr(o*o+u*u),d=Nr(l*l+c*c),v=s<16?.511:.040975*s/(1+.01765*s),m=.0638*h/(1+.0131*h)+.638,g=h<1e-6?0:180*Cr(u,o)/Ar;g<0;)g+=360;for(;360<=g;)g-=360;var y=164<=g&&g<=345?.56+kr(.2*Lr(Ar*(g+168)/180)):.36+kr(.4*Lr(Ar*(g+35)/180)),b=h*h*h*h,w=Nr(b/(b+1900)),E=m*(w*y+1-w),S=h-d,x=o-l,T=u-c,N=(s-f)/(n*v),C=S/(r*m);return Nr(N*N+C*C+(x*x+T*T-S*S)/(E*E))},v.distance=function(e,t,n){void 0===n&&(n="lab"),e=new p(e),t=new p(t);var r=e.get(n),i=t.get(n),s=0;for(var o in r){var u=(r[o]||0)-(i[o]||0);s+=u*u}return Math.sqrt(s)},v.limits=Tr.limits,v.valid=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];try{return new(Function.prototype.bind.apply(p,[null].concat(e))),!0}catch(e){return!1}},v.scales=Or,v.colors=wn,v.brewer=Hr,v}),n("map/clientlayer",["leaflet"],function(e){return e.TileLayer.Canvas.extend({setData:function(e){this.data=e,this.data.all().forEach(function(e){e.startAngle=parseInt(e.node.nodeinfo.node_id.substr(10,2),16)/255*2*Math.PI}),this.redraw()},drawTile:function(e,t){function n(e,t,n,r){var i=t.unproject([e.x-r,e.y-r]),s=t.unproject([e.x+r+n,e.y+r+n]);return{minX:s.lat,minY:i.lng,maxX:i.lat,maxY:s.lng}}if(!this.data)return;var r=this.options.tileSize,i=t.multiplyBy(r),s=this._map,o=50,u=n(i,s,r,o),a=this.data.search(u);if(a.length===0)return;var f=e.getContext("2d"),l=3,c=1.2,h=12;a.forEach(function(e){var t=s.project([e.node.nodeinfo.location.latitude,e.node.nodeinfo.location.longitude]),n=e.node.statistics&&e.node.statistics.clients?e.node.statistics.clients.total:0;if(n===0)return;t.x-=i.x,t.y-=i.y;for(var r=0,o=0;o<n;r++){var u=h+r*2*l*c,a=Math.floor(Math.PI*u/(c*l)),p=n-o;for(var d=0;d<Math.min(p,a);o++,d++){var v=2*Math.PI/a*d,m=t.x+u*Math.cos(v+e.startAngle),g=t.y+u*Math.sin(v+e.startAngle);f.beginPath(),f.moveTo(m,g),f.arc(m,g,l,0,2*Math.PI),f.fillStyle=x(e.node.statistics,o),f.fill()}}})}})}),function(e,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof n=="function"&&n.amd?n("rbush",t):(e=e||self,e.RBush=t())}(this,function(){"use strict";function e(e,n,i,s,o){t(e,n,i||0,s||e.length-1,o||r)}function t(e,r,i,s,o){while(s>i){if(s-i>600){var u=s-i+1,a=r-i+1,f=Math.log(u),l=.5*Math.exp(2*f/3),c=.5*Math.sqrt(f*l*(u-l)/u)*(a-u/2<0?-1:1),h=Math.max(i,Math.floor(r-a*l/u+c)),p=Math.min(s,Math.floor(r+(u-a)*l/u+c));t(e,r,h,p,o)}var d=e[r],v=i,m=s;n(e,i,r),o(e[s],d)>0&&n(e,i,s);while(v<m){n(e,v,m),v++,m--;while(o(e[v],d)<0)v++;while(o(e[m],d)>0)m--}o(e[i],d)===0?n(e,i,m):(m++,n(e,m,s)),m<=r&&(i=m+1),r<=m&&(s=m-1)}}function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t){return e<t?-1:e>t?1:0}function s(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function o(e,t){u(e,0,e.children.length,t,e)}function u(e,t,n,r,i){i||(i=g(null)),i.minX=Infinity,i.minY=Infinity,i.maxX=-Infinity,i.maxY=-Infinity;for(var s=t;s<n;s++){var o=e.children[s];a(i,e.leaf?r(o):o)}return i}function a(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function f(e,t){return e.minX-t.minX}function l(e,t){return e.minY-t.minY}function c(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function h(e){return e.maxX-e.minX+(e.maxY-e.minY)}function p(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function d(e,t){var n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,s-r)}function v(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function m(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function g(e){return{children:e,height:1,leaf:!0,minX:Infinity,minY:Infinity,maxX:-Infinity,maxY:-Infinity}}function y(t,n,r,i,s){var o=[n,r];while(o.length){r=o.pop(),n=o.pop();if(r-n<=i)continue;var u=n+Math.ceil((r-n)/i/2)*i;e(t,u,n,r,s),o.push(n,u,u,r)}}var i=function(t){t===void 0&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()};return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(t){var n=this.data,r=[];if(!m(t,n))return r;var i=this.toBBox,s=[];while(n){for(var o=0;o<n.children.length;o++){var u=n.children[o],a=n.leaf?i(u):u;m(t,a)&&(n.leaf?r.push(u):v(t,a)?this._all(u,r):s.push(u))}n=s.pop()}return r},i.prototype.collides=function(t){var n=this.data;if(!m(t,n))return!1;var r=[];while(n){for(var i=0;i<n.children.length;i++){var s=n.children[i],o=n.leaf?this.toBBox(s):s;if(m(t,o)){if(n.leaf||v(t,o))return!0;r.push(s)}}n=r.pop()}return!1},i.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var n=0;n<t.length;n++)this.insert(t[n]);return this}var r=this._build(t.slice(),0,t.length-1,0);if(!this.data.children.length)this.data=r;else if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}return this},i.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},i.prototype.clear=function(){return this.data=g([]),this},i.prototype.remove=function(t,n){if(!t)return this;var r=this.data,i=this.toBBox(t),o=[],u=[],a,f,l;while(r||o.length){r||(r=o.pop(),f=o[o.length-1],a=u.pop(),l=!0);if(r.leaf){var c=s(t,r.children,n);if(c!==-1)return r.children.splice(c,1),o.push(r),this._condense(o),this}!l&&!r.leaf&&v(r,i)?(o.push(r),u.push(a),a=0,f=r,r=r.children[0]):f?(a++,r=f.children[a],l=!1):r=null}return this},i.prototype.toBBox=function(t){return t},i.prototype.compareMinX=function(t,n){return t.minX-n.minX},i.prototype.compareMinY=function(t,n){return t.minY-n.minY},i.prototype.toJSON=function(){return this.data},i.prototype.fromJSON=function(t){return this.data=t,this},i.prototype._all=function(t,n){var r=[];while(t)t.leaf?n.push.apply(n,t.children):r.push.apply(r,t.children),t=r.pop();return n},i.prototype._build=function(t,n,r,i){var s=r-n+1,u=this._maxEntries,a;if(s<=u)return a=g(t.slice(n,r+1)),o(a,this.toBBox),a;i||(i=Math.ceil(Math.log(s)/Math.log(u)),u=Math.ceil(s/Math.pow(u,i-1))),a=g([]),a.leaf=!1,a.height=i;var f=Math.ceil(s/u),l=f*Math.ceil(Math.sqrt(u));y(t,n,r,l,this.compareMinX);for(var c=n;c<=r;c+=l){var h=Math.min(c+l-1,r);y(t,c,h,f,this.compareMinY);for(var p=c;p<=h;p+=f){var d=Math.min(p+f-1,h);a.children.push(this._build(t,p,d,i-1))}}return o(a,this.toBBox),a},i.prototype._chooseSubtree=function(t,n,r,i){for(;;){i.push(n);if(n.leaf||i.length-1===r)break;var s=Infinity,o=Infinity,u=void 0;for(var a=0;a<n.children.length;a++){var f=n.children[a],l=c(f),h=p(t,f)-l;h<o?(o=h,s=l<s?l:s,u=f):h===o&&l<s&&(s=l,u=f)}n=u||n.children[0]}return n},i.prototype._insert=function(t,n,r){var i=r?t:this.toBBox(t),s=[],o=this._chooseSubtree(i,this.data,n,s);o.children.push(t),a(o,i);while(n>=0){if(!(s[n].children.length>this._maxEntries))break;this._split(s,n),n--}this._adjustParentBBoxes(i,s,n)},i.prototype._split=function(t,n){var r=t[n],i=r.children.length,s=this._minEntries;this._chooseSplitAxis(r,s,i);var u=this._chooseSplitIndex(r,s,i),a=g(r.children.splice(u,r.children.length-u));a.height=r.height,a.leaf=r.leaf,o(r,this.toBBox),o(a,this.toBBox),n?t[n-1].children.push(a):this._splitRoot(r,a)},i.prototype._splitRoot=function(t,n){this.data=g([t,n]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(t,n,r){var i,s=Infinity,o=Infinity;for(var a=n;a<=r-n;a++){var f=u(t,0,a,this.toBBox),l=u(t,a,r,this.toBBox),h=d(f,l),p=c(f)+c(l);h<s?(s=h,i=a,o=p<o?p:o):h===s&&p<o&&(o=p,i=a)}return i||r-n},i.prototype._chooseSplitAxis=function(t,n,r){var i=t.leaf?this.compareMinX:f,s=t.leaf?this.compareMinY:l,o=this._allDistMargin(t,n,r,i),u=this._allDistMargin(t,n,r,s);o<u&&t.children.sort(i)},i.prototype._allDistMargin=function(t,n,r,i){t.children.sort(i);var s=this.toBBox,o=u(t,0,n,s),f=u(t,r-n,r,s),l=h(o)+h(f);for(var c=n;c<r-n;c++){var p=t.children[c];a(o,t.leaf?s(p):p),l+=h(o)}for(var d=r-n-1;d>=n;d--){var v=t.children[d];a(f,t.leaf?s(v):v),l+=h(f)}return l},i.prototype._adjustParentBBoxes=function(t,n,r){for(var i=r;i>=0;i--)a(n[i],t)},i.prototype._condense=function(t){for(var n=t.length-1,r=void 0;n>=0;n--)t[n].children.length===0?n>0?(r=t[n-1].children,r.splice(r.indexOf(t[n]),1)):this.clear():o(t[n],this.toBBox)},i}),n("map/labelslayer",["leaflet","rbush"],function(e,t){function o(e,t){return s.font=e,s.measureText(t)}function u(e){return{minX:e.position.lat,minY:e.position.lng,maxX:e.position.lat,maxY:e.position.lng,label:e}}function a(t,n,i,s,u){return function(a){var f=n+"px "+r;return{position:e.latLng(a.nodeinfo.location.latitude,a.nodeinfo.location.longitude),label:a.nodeinfo.hostname,offset:i,fillStyle:t,height:n*1.2,font:f,stroke:s,minZoom:u,width:o(f,a.nodeinfo.hostname).width}}}function f(e,t){return[e*Math.cos(t[2]*2*Math.PI),-e*Math.sin(t[2]*2*Math.PI)]}function l(e,t,n,r,i,s,o){var u=1+1.41*(1-(o-i)/(s-i)),a=r.width*u,f=r.height*u,l={left:0,right:-a,center:-a/2},c={top:0,ideographic:-f,middle:-f/2},h=e.x+t[0]+l[n[0]],p=e.y+t[1]+c[n[1]];return{minX:h,minY:p,maxX:h+a,maxY:p+f}}var n=[["left","middle",0],["center","top",.75],["right","middle",.5],["left","top",7/8],["left","ideographic",1/8],["right","top",5/8],["center","ideographic",.25],["right","ideographic",3/8]],r="Roboto",i=4,s=document.createElement("canvas").getContext("2d"),c=e.TileLayer.Canvas.extend({onAdd:function(t){e.TileLayer.Canvas.prototype.onAdd.call(this,t),this.data&&this.prepareLabels()},setData:function(e){this.data=e,this._map&&this.prepareLabels()},prepareLabels:function(){function g(e){return function(t){var n=m.project(t.position,e);return{minX:n.x-i,minY:n.y-i,maxX:n.x+i,maxY:n.y+i}}}var e=this.data,r=e.online.map(a("rgba(0, 0, 0, 0.9)",10,8,!0,13)),s=e.offline.map(a("rgba(212, 62, 42, 0.9)",9,5,!1,16)),o=e.new.map(a("rgba(48, 99, 20, 0.9)",11,8,!0,0)),c=e.lost.map(a("rgba(212, 62, 42, 0.9)",11,8,!0,0)),h=[].concat(o).concat(c).concat(r).concat(s),p=this.options.minZoom,d=this.options.maxZoom,v=[],m=this._map;for(var y=p;y<=d;y++)v[y]=new t(9),v[y].load(h.map(g(y)));h=h.map(function(e){var t=n.map(function(t){var n=f(e.offset,t),r;for(r=d;r>=e.minZoom;r--){var i=m.project(e.position,r),s=l(i,n,t,e,p,d,r),o=v[r].search(s);if(o.length>0)break}return{loc:t,z:r+1}}).filter(function(e){return e.z<=d}).sort(function(e,t){return e.z-t.z})[0];if(t!==undefined){e.offset=f(e.offset,t.loc),e.minZoom=t.z,e.anchor=t.loc;for(var r=d;r>=t.z;r--){var i=m.project(e.position,r),s=l(i,e.offset,t.loc,e,p,d,r);v[r].insert(s)}return e}return undefined}).filter(function(e){return e!==undefined}),this.margin=16,h.length>0&&(this.margin+=h.map(function(e){return e.width}).sort().reverse()[0]),this.labels=new t(9),this.labels.load(h.map(u)),this.redraw()},drawTile:function(e,t,n){function r(e,t,n,r){var i=t.unproject([e.x-r,e.y-r]),s=t.unproject([e.x+r+n,e.y+r+n]);return{minX:s.lat,minY:i.lng,maxX:i.lat,maxY:s.lng}}function u(e){var t=o.project(e.label.position);return t.x-=s.x,t.y-=s.y,{p:t,label:e.label}}function c(e){l.font=e.label.font,l.textAlign=e.label.anchor[0],l.textBaseline=e.label.anchor[1],l.fillStyle=e.label.fillStyle,e.label.stroke&&l.strokeText(e.label.label,e.p.x+e.label.offset[0],e.p.y+e.label.offset[1]),l.fillText(e.label.label,e.p.x+e.label.offset[0],e.p.y+e.label.offset[1])}if(!this.labels)return;var i=this.options.tileSize,s=t.multiplyBy(i),o=this._map,a=r(s,o,i,this.margin),f=this.labels.search(a).map(u),l=e.getContext("2d");l.lineWidth=5,l.strokeStyle="rgba(255, 255, 255, 0.8)",l.miterLimit=2,f.filter(function(e){return n>=e.label.minZoom}).forEach(c)}});return c}),!function(){function e(e){return e&&(e.ownerDocument||e.document||e).documentElement}function t(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}function r(e,t){return t>e?-1:e>t?1:e>=t?0:NaN}function i(e){return null===e?NaN:+e}function s(e){return!isNaN(e)}function o(e){return{left:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var s=r+i>>>1;e(t[s],n)<0?r=s+1:i=s}return r},right:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var s=r+i>>>1;e(t[s],n)>0?i=s:r=s+1}return r}}}function u(e){return e.length}function a(e){for(var t=1;e*t%1;)t*=10;return t}function f(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function l(){this._=Object.create(null)}function c(e){return(e+="")===Su||e[0]===xu?xu+e:e}function h(e){return(e+="")[0]===xu?e.slice(1):e}function p(e){return c(e)in this._}function d(e){return(e=c(e))in this._&&delete this._[e]}function v(){var e=[];for(var t in this._)e.push(h(t));return e}function m(){var e=0;for(var t in this._)++e;return e}function g(){for(var e in this._)return!1;return!0}function y(){this._=Object.create(null)}function b(e){return e}function w(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function E(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=Tu.length;r>n;++n){var i=Tu[n]+t;if(i in e)return i}}function S(){}function x(){}function T(e){function t(){for(var t,r=n,i=-1,s=r.length;++i<s;)(t=r[i].on)&&t.apply(this,arguments);return e}var n=[],r=new l;return t.on=function(t,i){var s,o=r.get(t);return arguments.length<2?o&&o.on:(o&&(o.on=null,n=n.slice(0,s=n.indexOf(o)).concat(n.slice(s+1)),r.remove(t)),i&&n.push(r.set(t,{on:i})),e)},t}function N(){fu.event.preventDefault()}function C(){for(var e,t=fu.event;e=t.sourceEvent;)t=e;return t}function k(e){for(var t=new x,n=0,r=arguments.length;++n<r;)t[arguments[n]]=T(t);return t.of=function(n,r){return function(i){try{var s=i.sourceEvent=fu.event;i.target=e,fu.event=i,t[i.type].apply(n,r)}finally{fu.event=s}}},t}function L(e){return Cu(e,Ou),e}function A(e){return"function"==typeof e?e:function(){return ku(e,this)}}function O(e){return"function"==typeof e?e:function(){return Lu(e,this)}}function M(e,t){function n(){this.removeAttribute(e)}function r(){this.removeAttributeNS(e.space,e.local)}function i(){this.setAttribute(e,t)}function s(){this.setAttributeNS(e.space,e.local,t)}function o(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}function u(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}return e=fu.ns.qualify(e),null==t?e.local?r:n:"function"==typeof t?e.local?u:o:e.local?s:i}function _(e){return e.trim().replace(/\s+/g," ")}function D(e){return new RegExp("(?:^|\\s+)"+fu.requote(e)+"(?:\\s+|$)","g")}function P(e){return(e+"").trim().split(/^|\s+/)}function H(e,t){function n(){for(var n=-1;++n<i;)e[n](this,t)}function r(){for(var n=-1,r=t.apply(this,arguments);++n<i;)e[n](this,r)}e=P(e).map(B);var i=e.length;return"function"==typeof t?r:n}function B(e){var t=D(e);return function(n,r){if(i=n.classList)return r?i.add(e):i.remove(e);var i=n.getAttribute("class")||"";r?(t.lastIndex=0,t.test(i)||n.setAttribute("class",_(i+" "+e))):n.setAttribute("class",_(i.replace(t," ")))}}function j(e,t,n){function r(){this.style.removeProperty(e)}function i(){this.style.setProperty(e,t,n)}function s(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}return null==t?r:"function"==typeof t?s:i}function F(e,t){function n(){delete this[e]}function r(){this[e]=t}function i(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}return null==t?n:"function"==typeof t?i:r}function I(e){function t(){var t=this.ownerDocument,n=this.namespaceURI;return n===Mu&&t.documentElement.namespaceURI===Mu?t.createElement(e):t.createElementNS(n,e)}function n(){return this.ownerDocument.createElementNS(e.space,e.local)}return"function"==typeof e?e:(e=fu.ns.qualify(e)).local?n:t}function q(){var e=this.parentNode;e&&e.removeChild(this)}function R(e){return{__data__:e}}function U(e){return function(){return Au(this,e)}}function z(e){return arguments.length||(e=r),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function W(e,t){for(var n=0,r=e.length;r>n;n++)for(var i,s=e[n],o=0,u=s.length;u>o;o++)(i=s[o])&&t(i,o,n);return e}function X(e){return Cu(e,Du),e}function V(e){var t,n;return function(r,i,s){var o,u=e[s].update,a=u.length;for(s!=n&&(n=s,t=0),i>=t&&(t=i+1);!(o=u[t])&&++t<a;);return o}}function $(e,t,n){function r(){var t=this[o];t&&(this.removeEventListener(e,t,t.$),delete this[o])}function i(){var i=a(t,cu(arguments));r.call(this),this.addEventListener(e,this[o]=i,i.$=n),i._=t}function s(){var t,n=new RegExp("^__on([^.]+)"+fu.requote(e)+"$");for(var r in this)if(t=r.match(n)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}var o="__on"+e,u=e.indexOf("."),a=J;u>0&&(e=e.slice(0,u));var f=Pu.get(e);return f&&(e=f,a=K),u?t?i:r:t?S:s}function J(e,t){return function(n){var r=fu.event;fu.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{fu.event=r}}}function K(e,t){var n=J(e,t);return function(e){var t=this,r=e.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||n.call(t,e)}}function Q(n){var r=".dragsuppress-"+ ++Bu,i="click"+r,s=fu.select(t(n)).on("touchmove"+r,N).on("dragstart"+r,N).on("selectstart"+r,N);if(null==Hu&&(Hu="onselectstart"in n?!1:E(n.style,"userSelect")),Hu){var o=e(n).style,u=o[Hu];o[Hu]="none"}return function(e){if(s.on(r,null),Hu&&(o[Hu]=u),e){var t=function(){s.on(i,null)};s.on(i,function(){N(),t()},!0),setTimeout(t,0)}}}function G(e,n){n.changedTouches&&(n=n.changedTouches[0]);var r=e.ownerSVGElement||e;if(r.createSVGPoint){var i=r.createSVGPoint();if(0>ju){var s=t(e);if(s.scrollX||s.scrollY){r=fu.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var o=r[0][0].getScreenCTM();ju=!o.f&&!o.e,r.remove()}}return ju?(i.x=n.pageX,i.y=n.pageY):(i.x=n.clientX,i.y=n.clientY),i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}var u=e.getBoundingClientRect();return[n.clientX-u.left-e.clientLeft,n.clientY-u.top-e.clientTop]}function Y(){return fu.event.changedTouches[0].identifier}function Z(e){return e>0?1:0>e?-1:0}function et(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function tt(e){return e>1?0:-1>e?qu:Math.acos(e)}function nt(e){return e>1?zu:-1>e?-zu:Math.asin(e)}function rt(e){return((e=Math.exp(e))-1/e)/2}function it(e){return((e=Math.exp(e))+1/e)/2}function st(e){return((e=Math.exp(2*e))-1)/(e+1)}function ot(e){return(e=Math.sin(e/2))*e}function ut(){}function at(e,t,n){return this instanceof at?(this.h=+e,this.s=+t,void (this.l=+n)):arguments.length<2?e instanceof at?new at(e.h,e.s,e.l):St(""+e,xt,at):new at(e,t,n)}function ft(e,t,n){function r(e){return e>360?e-=360:0>e&&(e+=360),60>e?s+(o-s)*e/60:180>e?o:240>e?s+(o-s)*(240-e)/60:s}function i(e){return Math.round(255*r(e))}var s,o;return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:0>t?0:t>1?1:t,n=0>n?0:n>1?1:n,o=.5>=n?n*(1+t):n+t-n*t,s=2*n-o,new yt(i(e+120),i(e),i(e-120))}function lt(e,t,n){return this instanceof lt?(this.h=+e,this.c=+t,void (this.l=+n)):arguments.length<2?e instanceof lt?new lt(e.h,e.c,e.l):e instanceof ht?dt(e.l,e.a,e.b):dt((e=Tt((e=fu.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new lt(e,t,n)}function ct(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new ht(n,Math.cos(e*=Wu)*t,Math.sin(e)*t)}function ht(e,t,n){return this instanceof ht?(this.l=+e,this.a=+t,void (this.b=+n)):arguments.length<2?e instanceof ht?new ht(e.l,e.a,e.b):e instanceof lt?ct(e.h,e.c,e.l):Tt((e=yt(e)).r,e.g,e.b):new ht(e,t,n)}function pt(e,t,n){var r=(e+16)/116,i=r+t/500,s=r-n/200;return i=vt(i)*ta,r=vt(r)*na,s=vt(s)*ra,new yt(gt(3.2404542*i-1.5371385*r-.4985314*s),gt(-0.969266*i+1.8760108*r+.041556*s),gt(.0556434*i-.2040259*r+1.0572252*s))}function dt(e,t,n){return e>0?new lt(Math.atan2(n,t)*Xu,Math.sqrt(t*t+n*n),e):new lt(NaN,NaN,e)}function vt(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function mt(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function gt(e){return Math.round(255*(.00304>=e?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function yt(e,t,n){return this instanceof yt?(this.r=~~e,this.g=~~t,void (this.b=~~n)):arguments.length<2?e instanceof yt?new yt(e.r,e.g,e.b):St(""+e,yt,ft):new yt(e,t,n)}function bt(e){return new yt(e>>16,e>>8&255,255&e)}function wt(e){return bt(e)+""}function Et(e){return 16>e?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function St(e,t,n){var r,i,s,o=0,u=0,a=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(Ct(i[0]),Ct(i[1]),Ct(i[2]))}return(s=oa.get(e))?t(s.r,s.g,s.b):(null==e||"#"!==e.charAt(0)||isNaN(s=parseInt(e.slice(1),16))||(4===e.length?(o=(3840&s)>>4,o=o>>4|o,u=240&s,u=u>>4|u,a=15&s,a=a<<4|a):7===e.length&&(o=(16711680&s)>>16,u=(65280&s)>>8,a=255&s)),t(o,u,a))}function xt(e,t,n){var r,i,s=Math.min(e/=255,t/=255,n/=255),o=Math.max(e,t,n),u=o-s,a=(o+s)/2;return u?(i=.5>a?u/(o+s):u/(2-o-s),r=e==o?(t-n)/u+(n>t?6:0):t==o?(n-e)/u+2:(e-t)/u+4,r*=60):(r=NaN,i=a>0&&1>a?0:r),new at(r,i,a)}function Tt(e,t,n){e=Nt(e),t=Nt(t),n=Nt(n);var r=mt((.4124564*e+.3575761*t+.1804375*n)/ta),i=mt((.2126729*e+.7151522*t+.072175*n)/na),s=mt((.0193339*e+.119192*t+.9503041*n)/ra);return ht(116*i-16,500*(r-i),200*(i-s))}function Nt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ct(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}function kt(e){return"function"==typeof e?e:function(){return e}}function Lt(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),At(t,n,e,r)}}function At(e,t,n,r){function i(){var e,t=a.status;if(!t&&Mt(a)||t>=200&&300>t||304===t){try{e=n.call(s,a)}catch(r){return void o.error.call(s,r)}o.load.call(s,e)}else o.error.call(s,a)}var s={},o=fu.dispatch("beforesend","progress","load","error"),u={},a=new XMLHttpRequest,f=null;return!this.XDomainRequest||"withCredentials"in a||!/^(http(s)?:)?\/\//.test(e)||(a=new XDomainRequest),"onload"in a?a.onload=a.onerror=i:a.onreadystatechange=function(){a.readyState>3&&i()},a.onprogress=function(e){var t=fu.event;fu.event=e;try{o.progress.call(s,a)}finally{fu.event=t}},s.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?u[e]:(null==t?delete u[e]:u[e]=t+"",s)},s.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",s):t},s.responseType=function(e){return arguments.length?(f=e,s):f},s.response=function(e){return n=e,s},["get","post"].forEach(function(e){s[e]=function(){return s.send.apply(s,[e].concat(cu(arguments)))}}),s.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),a.open(n,e,!0),null==t||"accept"in u||(u.accept=t+",*/*"),a.setRequestHeader)for(var l in u)a.setRequestHeader(l,u[l]);return null!=t&&a.overrideMimeType&&a.overrideMimeType(t),null!=f&&(a.responseType=f),null!=i&&s.on("error",i).on("load",function(e){i(null,e)}),o.beforesend.call(s,a),a.send(null==r?null:r),s},s.abort=function(){return a.abort(),s},fu.rebind(s,o,"on"),null==r?s:s.get(Ot(r))}function Ot(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}function Mt(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}function _t(e,t,n){var r=arguments.length;2>r&&(t=0),3>r&&(n=Date.now());var i=n+t,s={c:e,t:i,n:null};return aa?aa.n=s:ua=s,aa=s,fa||(la=clearTimeout(la),fa=1,ca(Dt)),s}function Dt(){var e=Pt(),t=Ht()-e;t>24?(isFinite(t)&&(clearTimeout(la),la=setTimeout(Dt,t)),fa=0):(fa=1,ca(Dt))}function Pt(){for(var e=Date.now(),t=ua;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Ht(){for(var e,t=ua,n=1/0;t;)t.c?(t.t<n&&(n=t.t),t=(e=t).n):t=e?e.n=t.n:ua=t.n;return aa=e,n}function Bt(e,t){return t-(e?Math.ceil(Math.log(e)/Math.LN10):1)}function jt(e,t){var n=Math.pow(10,3*Eu(8-t));return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}function Ft(e){var t=e.decimal,n=e.thousands,r=e.grouping,i=e.currency,s=r&&n?function(e,t){for(var i=e.length,s=[],o=0,u=r[0],a=0;i>0&&u>0&&(a+u+1>t&&(u=Math.max(1,t-a)),s.push(e.substring(i-=u,i+u)),!((a+=u+1)>t));)u=r[o=(o+1)%r.length];return s.reverse().join(n)}:b;return function(e){var n=pa.exec(e),r=n[1]||" ",o=n[2]||">",u=n[3]||"-",a=n[4]||"",f=n[5],l=+n[6],c=n[7],h=n[8],p=n[9],d=1,v="",m="",g=!1,y=!0;switch(h&&(h=+h.substring(1)),(f||"0"===r&&"="===o)&&(f=r="0",o="="),p){case"n":c=!0,p="g";break;case"%":d=100,m="%",p="f";break;case"p":d=100,m="%",p="r";break;case"b":case"o":case"x":case"X":"#"===a&&(v="0"+p.toLowerCase());case"c":y=!1;case"d":g=!0,h=0;break;case"s":d=-1,p="r"}"$"===a&&(v=i[0],m=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=da.get(p)||It;var b=f&&c;return function(e){var n=m;if(g&&e%1)return"";var i=0>e||0===e&&0>1/e?(e=-e,"-"):"-"===u?"":u;if(0>d){var a=fu.formatPrefix(e,h);e=a.scale(e),n=a.symbol+m}else e*=d;e=p(e,h);var w,E,S=e.lastIndexOf(".");if(0>S){var x=y?e.lastIndexOf("e"):-1;0>x?(w=e,E=""):(w=e.substring(0,x),E=e.substring(x))}else w=e.substring(0,S),E=t+e.substring(S+1);!f&&c&&(w=s(w,1/0));var T=v.length+w.length+E.length+(b?0:i.length),N=l>T?(new Array(T=l-T+1)).join(r):"";return b&&(w=s(N+w,N.length?l-E.length:1/0)),i+=v,e=w+E,("<"===o?i+e+N:">"===o?N+i+e:"^"===o?N.substring(0,T>>=1)+i+e+N.substring(T):i+(b?e:N+e))+n}}}function It(e){return e+""}function qt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Rt(e,t,n){function r(t){var n=e(t),r=s(n,1);return r-t>t-n?n:r}function i(n){return t(n=e(new ma(n-1)),1),n}function s(e,n){return t(e=new ma(+e),n),e}function o(e,r,s){var o=i(e),u=[];if(s>1)for(;r>o;)n(o)%s||u.push(new Date(+o)),t(o,1);else for(;r>o;)u.push(new Date(+o)),t(o,1);return u}function u(e,t,n){try{ma=qt;var r=new qt;return r._=e,o(r,t,n)}finally{ma=Date}}e.floor=e,e.round=r,e.ceil=i,e.offset=s,e.range=o;var a=e.utc=Ut(e);return a.floor=a,a.round=Ut(r),a.ceil=Ut(i),a.offset=Ut(s),a.range=u,e}function Ut(e){return function(t,n){try{ma=qt;var r=new qt;return r._=t,e(r,n)._}finally{ma=Date}}}function zt(e){function t(e){function t(t){for(var n,i,s,o=[],u=-1,a=0;++u<r;)37===e.charCodeAt(u)&&(o.push(e.slice(a,u)),null!=(i=ya[n=e.charAt(++u)])&&(n=e.charAt(++u)),(s=L[n])&&(n=s(t,null==i?"e"===n?" ":"0":i)),o.push(n),a=u+1);return o.push(e.slice(a,u)),o.join("")}var r=e.length;return t.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=n(r,e,t,0);if(i!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var s=null!=r.Z&&ma!==qt,o=new(s?qt:ma);return"j"in r?o.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),o.setFullYear(r.y,0,1),o.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(o.getDay()+5)%7:r.w+7*r.U-(o.getDay()+6)%7)):o.setFullYear(r.y,r.m,r.d),o.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),s?o._:o},t.toString=function(){return e},t}function n(e,t,n,r){for(var i,s,o,u=0,a=t.length,f=n.length;a>u;){if(r>=f)return-1;if(i=t.charCodeAt(u++),37===i){if(o=t.charAt(u++),s=A[o in ya?t.charAt(u++):o],!s||(r=s(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function r(e,t,n){S.lastIndex=0;var r=S.exec(t.slice(n));return r?(e.w=x.get(r[0].toLowerCase()),n+r[0].length):-1}function i(e,t,n){w.lastIndex=0;var r=w.exec(t.slice(n));return r?(e.w=E.get(r[0].toLowerCase()),n+r[0].length):-1}function s(e,t,n){C.lastIndex=0;var r=C.exec(t.slice(n));return r?(e.m=k.get(r[0].toLowerCase()),n+r[0].length):-1}function o(e,t,n){T.lastIndex=0;var r=T.exec(t.slice(n));return r?(e.m=N.get(r[0].toLowerCase()),n+r[0].length):-1}function u(e,t,r){return n(e,L.c.toString(),t,r)}function a(e,t,r){return n(e,L.x.toString(),t,r)}function f(e,t,r){return n(e,L.X.toString(),t,r)}function l(e,t,n){var r=b.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)}var c=e.dateTime,h=e.date,p=e.time,d=e.periods,v=e.days,m=e.shortDays,g=e.months,y=e.shortMonths;t.utc=function(e){function n(e){try{ma=qt;var t=new ma;return t._=e,r(t)}finally{ma=Date}}var r=t(e);return n.parse=function(e){try{ma=qt;var t=r.parse(e);return t&&t._}finally{ma=Date}},n.toString=r.toString,n},t.multi=t.utc.multi=ln;var b=fu.map(),w=Xt(v),E=Vt(v),S=Xt(m),x=Vt(m),T=Xt(g),N=Vt(g),C=Xt(y),k=Vt(y);d.forEach(function(e,t){b.set(e.toLowerCase(),t)});var L={a:function(e){return m[e.getDay()]},A:function(e){return v[e.getDay()]},b:function(e){return y[e.getMonth()]},B:function(e){return g[e.getMonth()]},c:t(c),d:function(e,t){return Wt(e.getDate(),t,2)},e:function(e,t){return Wt(e.getDate(),t,2)},H:function(e,t){return Wt(e.getHours(),t,2)},I:function(e,t){return Wt(e.getHours()%12||12,t,2)},j:function(e,t){return Wt(1+va.dayOfYear(e),t,3)},L:function(e,t){return Wt(e.getMilliseconds(),t,3)},m:function(e,t){return Wt(e.getMonth()+1,t,2)},M:function(e,t){return Wt(e.getMinutes(),t,2)},p:function(e){return d[+(e.getHours()>=12)]},S:function(e,t){return Wt(e.getSeconds(),t,2)},U:function(e,t){return Wt(va.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Wt(va.mondayOfYear(e),t,2)},x:t(h),X:t(p),y:function(e,t){return Wt(e.getFullYear()%100,t,2)},Y:function(e,t){return Wt(e.getFullYear()%1e4,t,4)},Z:an,"%":function(){return"%"}},A={a:r,A:i,b:s,B:o,c:u,d:tn,e:tn,H:rn,I:rn,j:nn,L:un,m:en,M:sn,p:l,S:on,U:Jt,w:$t,W:Kt,x:a,X:f,y:Gt,Y:Qt,Z:Yt,"%":fn};return t}function Wt(e,t,n){var r=0>e?"-":"",i=(r?-e:e)+"",s=i.length;return r+(n>s?(new Array(n-s+1)).join(t)+i:i)}function Xt(e){return new RegExp("^(?:"+e.map(fu.requote).join("|")+")","i")}function Vt(e){for(var t=new l,n=-1,r=e.length;++n<r;)t.set(e[n].toLowerCase(),n);return t}function $t(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Jt(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n));return r?(e.U=+r[0],n+r[0].length):-1}function Kt(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n));return r?(e.W=+r[0],n+r[0].length):-1}function Qt(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Gt(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+2));return r?(e.y=Zt(+r[0]),n+r[0].length):-1}function Yt(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function Zt(e){return e+(e>68?1900:2e3)}function en(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function tn(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function nn(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function rn(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function sn(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function on(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function un(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function an(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=Eu(t)/60|0,i=Eu(t)%60;return n+Wt(r,"0",2)+Wt(i,"0",2)}function fn(e,t,n){wa.lastIndex=0;var r=wa.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ln(e){for(var t=e.length,n=-1;++n<t;)e[n][0]=this(e[n][0]);return function(t){for(var n=0,r=e[n];!r[1](t);)r=e[++n];return r[0](t)}}function cn(){}function hn(e,t,n){var r=n.s=e+t,i=r-e,s=r-i;n.t=e-s+(t-i)}function pn(e,t){e&&Ta.hasOwnProperty(e.type)&&Ta[e.type](e,t)}function dn(e,t,n){var r,i=-1,s=e.length-n;for(t.lineStart();++i<s;)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function vn(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)dn(e[n],t,1);t.polygonEnd()}function mn(){function e(e,t){e*=Wu,t=t*Wu/2+qu/4;var n=e-r,o=n>=0?1:-1,u=o*n,a=Math.cos(t),f=Math.sin(t),l=s*f,c=i*a+l*Math.cos(u),h=l*o*Math.sin(u);Ca.add(Math.atan2(h,c)),r=e,i=a,s=f}var t,n,r,i,s;ka.point=function(o,u){ka.point=e,r=(t=o)*Wu,i=Math.cos(u=(n=u)*Wu/2+qu/4),s=Math.sin(u)},ka.lineEnd=function(){e(t,n)}}function gn(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function yn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function bn(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function wn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function En(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Sn(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function xn(e){return[Math.atan2(e[1],e[0]),nt(e[2])]}function Tn(e,t){return Eu(e[0]-t[0])<Fu&&Eu(e[1]-t[1])<Fu}function Nn(e,t){e*=Wu;var n=Math.cos(t*=Wu);Cn(n*Math.cos(e),n*Math.sin(e),Math.sin(t))}function Cn(e,t,n){++La,Oa+=(e-Oa)/La,Ma+=(t-Ma)/La,_a+=(n-_a)/La}function kn(){function e(e,i){e*=Wu;var s=Math.cos(i*=Wu),o=s*Math.cos(e),u=s*Math.sin(e),a=Math.sin(i),f=Math.atan2(Math.sqrt((f=n*a-r*u)*f+(f=r*o-t*a)*f+(f=t*u-n*o)*f),t*o+n*u+r*a);Aa+=f,Da+=f*(t+(t=o)),Pa+=f*(n+(n=u)),Ha+=f*(r+(r=a)),Cn(t,n,r)}var t,n,r;Ia.point=function(i,s){i*=Wu;var o=Math.cos(s*=Wu);t=o*Math.cos(i),n=o*Math.sin(i),r=Math.sin(s),Ia.point=e,Cn(t,n,r)}}function Ln(){Ia.point=Nn}function An(){function e(e,t){e*=Wu;var n=Math.cos(t*=Wu),o=n*Math.cos(e),u=n*Math.sin(e),a=Math.sin(t),f=i*a-s*u,l=s*o-r*a,c=r*u-i*o,h=Math.sqrt(f*f+l*l+c*c),p=r*o+i*u+s*a,d=h&&-tt(p)/h,v=Math.atan2(h,p);Ba+=d*f,ja+=d*l,Fa+=d*c,Aa+=v,Da+=v*(r+(r=o)),Pa+=v*(i+(i=u)),Ha+=v*(s+(s=a)),Cn(r,i,s)}var t,n,r,i,s;Ia.point=function(o,u){t=o,n=u,Ia.point=e,o*=Wu;var a=Math.cos(u*=Wu);r=a*Math.cos(o),i=a*Math.sin(o),s=Math.sin(u),Cn(r,i,s)},Ia.lineEnd=function(){e(t,n),Ia.lineEnd=Ln,Ia.point=Nn}}function On(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}function Mn(){return!0}function _n(e,t,n,r,i){var s=[],o=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t];if(Tn(n,r)){i.lineStart();for(var u=0;t>u;++u)i.point((n=e[u])[0],n[1]);return void i.lineEnd()}var a=new Pn(n,e,null,!0),f=new Pn(n,null,a,!1);a.o=f,s.push(a),o.push(f),a=new Pn(r,e,null,!1),f=new Pn(r,null,a,!0),a.o=f,s.push(a),o.push(f)}}),o.sort(t),Dn(s),Dn(o),s.length){for(var u=0,a=n,f=o.length;f>u;++u)o[u].e=a=!a;for(var l,c,h=s[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;l=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(var u=0,f=l.length;f>u;++u)i.point((c=l[u])[0],c[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(d){l=p.p.z;for(var u=l.length-1;u>=0;--u)i.point((c=l[u])[0],c[1])}else r(p.x,p.p.x,-1,i);p=p.p}p=p.o,l=p.z,d=!d}while(!p.v);i.lineEnd()}}}function Dn(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}function Pn(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Hn(e,t,n,r){return function(i,s){function o(t,n){var r=i(t,n);e(t=r[0],n=r[1])&&s.point(t,n)}function u(e,t){var n=i(e,t);m.point(n[0],n[1])}function a(){y.point=u,m.lineStart()}function f(){y.point=o,m.lineEnd()}function l(e,t){v.push([e,t]);var n=i(e,t);w.point(n[0],n[1])}function c(){w.lineStart(),v=[]}function h(){l(v[0][0],v[0][1]),w.lineEnd();var e,t=w.clean(),n=b.buffer(),r=n.length;if(v.pop(),d.push(v),v=null,r)if(1&t){e=n[0];var i,r=e.length-1,o=-1;if(r>0){for(E||(s.polygonStart(),E=!0),s.lineStart();++o<r;)s.point((i=e[o])[0],i[1]);s.lineEnd()}}else r>1&&2&t&&n.push(n.pop().concat(n.shift())),p.push(n.filter(Bn))}var p,d,v,m=t(s),g=i.invert(r[0],r[1]),y={point:o,lineStart:a,lineEnd:f,polygonStart:function(){y.point=l,y.lineStart=c,y.lineEnd=h,p=[],d=[]},polygonEnd:function(){y.point=o,y.lineStart=a,y.lineEnd=f,p=fu.merge(p);var e=Un(g,d);p.length?(E||(s.polygonStart(),E=!0),_n(p,Fn,e,n,s)):e&&(E||(s.polygonStart(),E=!0),s.lineStart(),n(null,null,1,s),s.lineEnd()),E&&(s.polygonEnd(),E=!1),p=d=null},sphere:function(){s.polygonStart(),s.lineStart(),n(null,null,1,s),s.lineEnd(),s.polygonEnd()}},b=jn(),w=t(b),E=!1;return y}}function Bn(e){return e.length>1}function jn(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:S,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Fn(e,t){return((e=e.x)[0]<0?e[1]-zu-Fu:zu-e[1])-((t=t.x)[0]<0?t[1]-zu-Fu:zu-t[1])}function In(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(s,o){var u=s>0?qu:-qu,a=Eu(s-n);Eu(a-qu)<Fu?(e.point(n,r=(r+o)/2>0?zu:-zu),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(u,r),e.point(s,r),t=0):i!==u&&a>=qu&&(Eu(n-i)<Fu&&(n-=i*Fu),Eu(s-u)<Fu&&(s-=u*Fu),r=qn(n,r,s,o),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(u,r),t=0),e.point(n=s,r=o),i=u},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}function qn(e,t,n,r){var i,s,o=Math.sin(e-n);return Eu(o)>Fu?Math.atan((Math.sin(t)*(s=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(t))*Math.sin(e))/(i*s*o)):(t+r)/2}function Rn(e,t,n,r){var i;if(null==e)i=n*zu,r.point(-qu,i),r.point(0,i),r.point(qu,i),r.point(qu,0),r.point(qu,-i),r.point(0,-i),r.point(-qu,-i),r.point(-qu,0),r.point(-qu,i);else if(Eu(e[0]-t[0])>Fu){var s=e[0]<t[0]?qu:-qu;i=n*s/2,r.point(-s,i),r.point(0,i),r.point(s,i)}else r.point(t[0],t[1])}function Un(e,t){var n=e[0],r=e[1],i=[Math.sin(n),-Math.cos(n),0],s=0,o=0;Ca.reset();for(var u=0,a=t.length;a>u;++u){var f=t[u],l=f.length;if(l)for(var c=f[0],h=c[0],p=c[1]/2+qu/4,d=Math.sin(p),v=Math.cos(p),m=1;;){m===l&&(m=0),e=f[m];var g=e[0],y=e[1]/2+qu/4,b=Math.sin(y),w=Math.cos(y),E=g-h,S=E>=0?1:-1,x=S*E,T=x>qu,N=d*b;if(Ca.add(Math.atan2(N*S*Math.sin(x),v*w+N*Math.cos(x))),s+=T?E+S*Ru:E,T^h>=n^g>=n){var C=bn(gn(c),gn(e));Sn(C);var k=bn(i,C);Sn(k);var L=(T^E>=0?-1:1)*nt(k[2]);(r>L||r===L&&(C[0]||C[1]))&&(o+=T^E>=0?1:-1)}if(!(m++))break;h=g,d=b,v=w,c=e}}return(-Fu>s||Fu>s&&-Fu>Ca)^1&o}function zn(e){function t(e,t){return Math.cos(e)*Math.cos(t)>s}function n(e){var n,s,a,f,l;return{lineStart:function(){f=a=!1,l=1},point:function(c,h){var p,d=[c,h],v=t(c,h),m=o?v?0:i(c,h):v?i(c+(0>c?qu:-qu),h):0;if(!n&&(f=a=v)&&e.lineStart(),v!==a&&(p=r(n,d),(Tn(n,p)||Tn(d,p))&&(d[0]+=Fu,d[1]+=Fu,v=t(d[0],d[1]))),v!==a)l=0,v?(e.lineStart(),p=r(d,n),e.point(p[0],p[1])):(p=r(n,d),e.point(p[0],p[1]),e.lineEnd()),n=p;else if(u&&n&&o^v){var g;m&s||!(g=r(d,n,!0))||(l=0,o?(e.lineStart(),e.point(g[0][0],g[0][1]),e.point(g[1][0],g[1][1]),e.lineEnd()):(e.point(g[1][0],g[1][1]),e.lineEnd(),e.lineStart(),e.point(g[0][0],g[0][1])))}!v||n&&Tn(n,d)||e.point(d[0],d[1]),n=d,a=v,s=m},lineEnd:function(){a&&e.lineEnd(),n=null},clean:function(){return l|(f&&a)<<1}}}function r(e,t,n){var r=gn(e),i=gn(t),o=[1,0,0],u=bn(r,i),a=yn(u,u),f=u[0],l=a-f*f;if(!l)return!n&&e;var c=s*a/l,h=-s*f/l,p=bn(o,u),d=En(o,c),v=En(u,h);wn(d,v);var m=p,g=yn(d,m),y=yn(m,m),b=g*g-y*(yn(d,d)-1);if(!(0>b)){var w=Math.sqrt(b),E=En(m,(-g-w)/y);if(wn(E,d),E=xn(E),!n)return E;var S,x=e[0],T=t[0],N=e[1],C=t[1];x>T&&(S=x,x=T,T=S);var k=T-x,L=Eu(k-qu)<Fu,A=L||Fu>k;if(!L&&N>C&&(S=N,N=C,C=S),A?L?N+C>0^E[1]<(Eu(E[0]-x)<Fu?N:C):N<=E[1]&&E[1]<=C:k>qu^(x<=E[0]&&E[0]<=T)){var O=En(m,(-g+w)/y);return wn(O,d),[E,xn(O)]}}}function i(t,n){var r=o?e:qu-e,i=0;return-r>t?i|=1:t>r&&(i|=2),-r>n?i|=4:n>r&&(i|=8),i}var s=Math.cos(e),o=s>0,u=Eu(s)>Fu,a=mr(e,6*Wu);return Hn(t,n,a,o?[0,-e]:[-qu,e-qu])}function Wn(e,t,n,r){return function(i){var s,o=i.a,u=i.b,a=o.x,f=o.y,l=u.x,c=u.y,h=0,p=1,d=l-a,v=c-f;if(s=e-a,d||!(s>0)){if(s/=d,0>d){if(h>s)return;p>s&&(p=s)}else if(d>0){if(s>p)return;s>h&&(h=s)}if(s=n-a,d||!(0>s)){if(s/=d,0>d){if(s>p)return;s>h&&(h=s)}else if(d>0){if(h>s)return;p>s&&(p=s)}if(s=t-f,v||!(s>0)){if(s/=v,0>v){if(h>s)return;p>s&&(p=s)}else if(v>0){if(s>p)return;s>h&&(h=s)}if(s=r-f,v||!(0>s)){if(s/=v,0>v){if(s>p)return;s>h&&(h=s)}else if(v>0){if(h>s)return;p>s&&(p=s)}return h>0&&(i.a={x:a+h*d,y:f+h*v}),1>p&&(i.b={x:a+p*d,y:f+p*v}),i}}}}}}function Xn(e,t,n,r){function i(r,i){return Eu(r[0]-e)<Fu?i>0?0:3:Eu(r[0]-n)<Fu?i>0?2:1:Eu(r[1]-t)<Fu?i>0?1:0:i>0?3:2}function s(e,t){return o(e.x,t.x)}function o(e,t){var n=i(e,1),r=i(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(u){function a(e){for(var t=0,n=m.length,r=e[1],i=0;n>i;++i)for(var s,o=1,u=m[i],a=u.length,f=u[0];a>o;++o)s=u[o],f[1]<=r?s[1]>r&&et(f,s,e)>0&&++t:s[1]<=r&&et(f,s,e)<0&&--t,f=s;return 0!==t}function f(s,u,a,f){var l=0,c=0;if(null==s||(l=i(s,a))!==(c=i(u,a))||o(s,u)<0^a>0){do f.point(0===l||3===l?e:n,l>1?r:t);while((l=(l+a+4)%4)!==c)}else f.point(u[0],u[1])}function l(i,s){return i>=e&&n>=i&&s>=t&&r>=s}function c(e,t){l(e,t)&&u.point(e,t)}function h(){A.point=d,m&&m.push(g=[]),T=!0,x=!1,E=S=NaN}function p(){v&&(d(y,b),w&&x&&k.rejoin(),v.push(k.buffer())),A.point=c,x&&u.lineEnd()}function d(e,t){e=Math.max(-Ra,Math.min(Ra,e)),t=Math.max(-Ra,Math.min(Ra,t));var n=l(e,t);if(m&&g.push([e,t]),T)y=e,b=t,w=n,T=!1,n&&(u.lineStart(),u.point(e,t));else if(n&&x)u.point(e,t);else{var r={a:{x:E,y:S},b:{x:e,y:t}};L(r)?(x||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),N=!1):n&&(u.lineStart(),u.point(e,t),N=!1)}E=e,S=t,x=n}var v,m,g,y,b,w,E,S,x,T,N,C=u,k=jn(),L=Wn(e,t,n,r),A={point:c,lineStart:h,lineEnd:p,polygonStart:function(){u=k,v=[],m=[],N=!0},polygonEnd:function(){u=C,v=fu.merge(v);var t=a([e,r]),n=N&&t,i=v.length;(n||i)&&(u.polygonStart(),n&&(u.lineStart(),f(null,null,1,u),u.lineEnd()),i&&_n(v,s,t,f,u),u.polygonEnd()),v=m=g=null}};return A}}function Vn(e){var t=0,n=qu/3,r=ar(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*qu/180,n=e[1]*qu/180):[t/qu*180,n/qu*180]},i}function $n(e,t){function n(e,t){var n=Math.sqrt(s-2*i*Math.sin(t))/i;return[n*Math.sin(e*=i),o-n*Math.cos(e)]}var r=Math.sin(e),i=(r+Math.sin(t))/2,s=1+r*(2*i-r),o=Math.sqrt(s)/i;return n.invert=function(e,t){var n=o-t;return[Math.atan2(e,n)/i,nt((s-(e*e+n*n)*i*i)/(2*i))]},n}function Jn(){function e(e,t){za+=i*e-r*t,r=e,i=t}var t,n,r,i;Ja.point=function(s,o){Ja.point=e,t=r=s,n=i=o},Ja.lineEnd=function(){e(t,n)}}function Kn(e,t){Wa>e&&(Wa=e),e>Va&&(Va=e),Xa>t&&(Xa=t),t>$a&&($a=t)}function Qn(){function e(e,t){o.push("M",e,",",t,s)}function t(e,t){o.push("M",e,",",t),u.point=n}function n(e,t){o.push("L",e,",",t)}function r(){u.point=e}function i(){o.push("Z")}var s=Gn(4.5),o=[],u={point:e,lineStart:function(){u.point=t},lineEnd:r,polygonStart:function(){u.lineEnd=i},polygonEnd:function(){u.lineEnd=r,u.point=e},pointRadius:function(e){return s=Gn(e),u},result:function(){if(o.length){var e=o.join("");return o=[],e}}};return u}function Gn(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+ -2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function Yn(e,t){Oa+=e,Ma+=t,++_a}function Zn(){function e(e,r){var i=e-t,s=r-n,o=Math.sqrt(i*i+s*s);Da+=o*(t+e)/2,Pa+=o*(n+r)/2,Ha+=o,Yn(t=e,n=r)}var t,n;Qa.point=function(r,i){Qa.point=e,Yn(t=r,n=i)}}function er(){Qa.point=Yn}function tr(){function e(e,t){var n=e-r,s=t-i,o=Math.sqrt(n*n+s*s);Da+=o*(r+e)/2,Pa+=o*(i+t)/2,Ha+=o,o=i*e-r*t,Ba+=o*(r+e),ja+=o*(i+t),Fa+=3*o,Yn(r=e,i=t)}var t,n,r,i;Qa.point=function(s,o){Qa.point=e,Yn(t=r=s,n=i=o)},Qa.lineEnd=function(){e(t,n)}}function nr(e){function t(t,n){e.moveTo(t+o,n),e.arc(t,n,o,0,Ru)}function n(t,n){e.moveTo(t,n),u.point=r}function r(t,n){e.lineTo(t,n)}function i(){u.point=t}function s(){e.closePath()}var o=4.5,u={point:t,lineStart:function(){u.point=n},lineEnd:i,polygonStart:function(){u.lineEnd=s},polygonEnd:function(){u.lineEnd=i,u.point=t},pointRadius:function(e){return o=e,u},result:S};return u}function rr(e){function t(e){return(u?r:n)(e)}function n(t){return or(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})}function r(t){function n(n,r){n=e(n,r),t.point(n[0],n[1])}function r(){b=NaN,T.point=s,t.lineStart()}function s(n,r){var s=gn([n,r]),o=e(n,r);i(b,w,y,E,S,x,b=o[0],w=o[1],y=n,E=s[0],S=s[1],x=s[2],u,t),t.point(b,w)}function o(){T.point=n,t.lineEnd()}function a(){r(),T.point=f,T.lineEnd=l}function f(e,t){s(c=e,h=t),p=b,d=w,v=E,m=S,g=x,T.point=s}function l(){i(b,w,y,E,S,x,p,d,c,v,m,g,u,t),T.lineEnd=o,o()}var c,h,p,d,v,m,g,y,b,w,E,S,x,T={point:n,lineStart:r,lineEnd:o,polygonStart:function(){t.polygonStart(),T.lineStart=a},polygonEnd:function(){t.polygonEnd(),T.lineStart=r}};return T}function i(t,n,r,u,a,f,l,c,h,p,d,v,m,g){var y=l-t,b=c-n,w=y*y+b*b;if(w>4*s&&m--){var E=u+p,S=a+d,x=f+v,T=Math.sqrt(E*E+S*S+x*x),N=Math.asin(x/=T),C=Eu(Eu(x)-1)<Fu||Eu(r-h)<Fu?(r+h)/2:Math.atan2(S,E),k=e(C,N),L=k[0],A=k[1],O=L-t,M=A-n,_=b*O-y*M;(_*_/w>s||Eu((y*O+b*M)/w-.5)>.3||o>u*p+a*d+f*v)&&(i(t,n,r,u,a,f,L,A,C,E/=T,S/=T,x,m,g),g.point(L,A),i(L,A,C,E,S,x,l,c,h,p,d,v,m,g))}}var s=.5,o=Math.cos(30*Wu),u=16;return t.precision=function(e){return arguments.length?(u=(s=e*e)>0&&16,t):Math.sqrt(s)},t}function ir(e){var t=rr(function(t,n){return e([t*Xu,n*Xu])});return function(e){return fr(t(e))}}function sr(e){this.stream=e}function or(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function ur(e){return ar(function(){return e})()}function ar(e){function t(e){return e=u(e[0]*Wu,e[1]*Wu),[e[0]*h+a,f-e[1]*h]}function n(e){return e=u.invert((e[0]-a)/h,(f-e[1])/h),e&&[e[0]*Xu,e[1]*Xu]}function r(){u=On(o=hr(g,y,w),s);var e=s(v,m);return a=p-e[0]*h,f=d+e[1]*h,i()}function i(){return l&&(l.valid=!1,l=null),t}var s,o,u,a,f,l,c=rr(function(e,t){return e=s(e,t),[e[0]*h+a,f-e[1]*h]}),h=150,p=480,d=250,v=0,m=0,g=0,y=0,w=0,E=qa,S=b,x=null,T=null;return t.stream=function(e){return l&&(l.valid=!1),l=fr(E(o,c(S(e)))),l.valid=!0,l},t.clipAngle=function(e){return arguments.length?(E=null==e?(x=e,qa):zn((x=+e)*Wu),i()):x},t.clipExtent=function(e){return arguments.length?(T=e,S=e?Xn(e[0][0],e[0][1],e[1][0],e[1][1]):b,i()):T},t.scale=function(e){return arguments.length?(h=+e,r()):h},t.translate=function(e){return arguments.length?(p=+e[0],d=+e[1],r()):[p,d]},t.center=function(e){return arguments.length?(v=e[0]%360*Wu,m=e[1]%360*Wu,r()):[v*Xu,m*Xu]},t.rotate=function(e){return arguments.length?(g=e[0]%360*Wu,y=e[1]%360*Wu,w=e.length>2?e[2]%360*Wu:0,r()):[g*Xu,y*Xu,w*Xu]},fu.rebind(t,c,"precision"),function(){return s=e.apply(this,arguments),t.invert=s.invert&&n,r()}}function fr(e){return or(e,function(t,n){e.point(t*Wu,n*Wu)})}function lr(e,t){return[e,t]}function cr(e,t){return[e>qu?e-Ru:-qu>e?e+Ru:e,t]}function hr(e,t,n){return e?t||n?On(dr(e),vr(t,n)):dr(e):t||n?vr(t,n):cr}function pr(e){return function(t,n){return t+=e,[t>qu?t-Ru:-qu>t?t+Ru:t,n]}}function dr(e){var t=pr(e);return t.invert=pr(-e),t}function vr(e,t){function n(e,t){var n=Math.cos(t),u=Math.cos(e)*n,a=Math.sin(e)*n,f=Math.sin(t),l=f*r+u*i;return[Math.atan2(a*s-l*o,u*r-f*i),nt(l*s+a*o)]}var r=Math.cos(e),i=Math.sin(e),s=Math.cos(t),o=Math.sin(t);return n.invert=function(e,t){var n=Math.cos(t),u=Math.cos(e)*n,a=Math.sin(e)*n,f=Math.sin(t),l=f*s-a*o;return[Math.atan2(a*s+f*o,u*r+l*i),nt(l*r-u*i)]},n}function mr(e,t){var n=Math.cos(e),r=Math.sin(e);return function(i,s,o,u){var a=o*t;null!=i?(i=gr(n,i),s=gr(n,s),(o>0?s>i:i>s)&&(i+=o*Ru)):(i=e+o*Ru,s=e-.5*a);for(var f,l=i;o>0?l>s:s>l;l-=a)u.point((f=xn([n,-r*Math.cos(l),-r*Math.sin(l)]))[0],f[1])}}function gr(e,t){var n=gn(t);n[0]-=e,Sn(n);var r=tt(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Fu)%(2*Math.PI)}function yr(e,t,n){var r=fu.range(e,t-Fu,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function br(e,t,n){var r=fu.range(e,t-Fu,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function wr(e){return e.source}function Er(e){return e.target}function Sr(e,t,n,r){var i=Math.cos(t),s=Math.sin(t),o=Math.cos(r),u=Math.sin(r),a=i*Math.cos(e),f=i*Math.sin(e),l=o*Math.cos(n),c=o*Math.sin(n),h=2*Math.asin(Math.sqrt(ot(r-t)+i*o*ot(n-e))),p=1/Math.sin(h),d=h?function(e){var t=Math.sin(e*=h)*p,n=Math.sin(h-e)*p,r=n*a+t*l,i=n*f+t*c,o=n*s+t*u;return[Math.atan2(i,r)*Xu,Math.atan2(o,Math.sqrt(r*r+i*i))*Xu]}:function(){return[e*Xu,t*Xu]};return d.distance=h,d}function xr(){function e(e,i){var s=Math.sin(i*=Wu),o=Math.cos(i),u=Eu((e*=Wu)-t),a=Math.cos(u);Ga+=Math.atan2(Math.sqrt((u=o*Math.sin(u))*u+(u=r*s-n*o*a)*u),n*s+r*o*a),t=e,n=s,r=o}var t,n,r;Ya.point=function(i,s){t=i*Wu,n=Math.sin(s*=Wu),r=Math.cos(s),Ya.point=e},Ya.lineEnd=function(){Ya.point=Ya.lineEnd=S}}function Tr(e,t){function n(t,n){var r=Math.cos(t),i=Math.cos(n),s=e(r*i);return[s*i*Math.sin(t),s*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),i=t(r),s=Math.sin(i),o=Math.cos(i);return[Math.atan2(e*s,r*o),Math.asin(r&&n*s/r)]},n}function Nr(e,t){function n(e,t){o>0?-zu+Fu>t&&(t=-zu+Fu):t>zu-Fu&&(t=zu-Fu);var n=o/Math.pow(i(t),s);return[n*Math.sin(s*e),o-n*Math.cos(s*e)]}var r=Math.cos(e),i=function(e){return Math.tan(qu/4+e/2)},s=e===t?Math.sin(e):Math.log(r/Math.cos(t))/Math.log(i(t)/i(e)),o=r*Math.pow(i(e),s)/s;return s?(n.invert=function(e,t){var n=o-t,r=Z(s)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/s,2*Math.atan(Math.pow(o/r,1/s))-zu]},n):kr}function Cr(e,t){function n(e,t){var n=s-t;return[n*Math.sin(i*e),s-n*Math.cos(i*e)]}var r=Math.cos(e),i=e===t?Math.sin(e):(r-Math.cos(t))/(t-e),s=r/i+e;return Eu(i)<Fu?lr:(n.invert=function(e,t){var n=s-t;return[Math.atan2(e,n)/i,s-Z(i)*Math.sqrt(e*e+n*n)]},n)}function kr(e,t){return[e,Math.log(Math.tan(qu/4+t/2))]}function Lr(e){var t,n=ur(e),r=n.scale,i=n.translate,s=n.clipExtent;return n.scale=function(){var e=r.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.translate=function(){var e=i.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.clipExtent=function(e){var o=s.apply(n,arguments);if(o===n){if(t=null==e){var u=qu*r(),a=i();s([[a[0]-u,a[1]-u],[a[0]+u,a[1]+u]])}}else t&&(o=null);return o},n.clipExtent(null)}function Ar(e,t){return[Math.log(Math.tan(qu/4+t/2)),-e]}function Or(e){return e[0]}function Mr(e){return e[1]}function _r(e){for(var t=e.length,n=[0,1],r=2,i=2;t>i;i++){for(;r>1&&et(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Dr(e,t){return e[0]-t[0]||e[1]-t[1]}function Pr(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function Hr(e,t,n,r){var i=e[0],s=n[0],o=t[0]-i,u=r[0]-s,a=e[1],f=n[1],l=t[1]-a,c=r[1]-f,h=(u*(a-f)-c*(i-s))/(c*o-u*l);return[i+h*o,a+h*l]}function Br(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}function jr(){ii(this),this.edge=this.site=this.circle=null}function Fr(e){var t=cf.pop()||new jr;return t.site=e,t}function Ir(e){Kr(e),af.remove(e),cf.push(e),ii(e)}function qr(e){var t=e.circle,n=t.x,r=t.cy,i={x:n,y:r},s=e.P,o=e.N,u=[e];Ir(e);for(var a=s;a.circle&&Eu(n-a.circle.x)<Fu&&Eu(r-a.circle.cy)<Fu;)s=a.P,u.unshift(a),Ir(a),a=s;u.unshift(a),Kr(a);for(var f=o;f.circle&&Eu(n-f.circle.x)<Fu&&Eu(r-f.circle.cy)<Fu;)o=f.N,u.push(f),Ir(f),f=o;u.push(f),Kr(f);var l,c=u.length;for(l=1;c>l;++l)f=u[l],a=u[l-1],ti(f.edge,a.site,f.site,i);a=u[0],f=u[c-1],f.edge=Zr(a.site,f.site,null,i),Jr(a),Jr(f)}function Rr(e){for(var t,n,r,i,s=e.x,o=e.y,u=af._;u;)if(r=Ur(u,o)-s,r>Fu)u=u.L;else{if(i=s-zr(u,o),!(i>Fu)){r>-Fu?(t=u.P,n=u):i>-Fu?(t=u,n=u.N):t=n=u;break}if(!u.R){t=u;break}u=u.R}var a=Fr(e);if(af.insert(t,a),t||n){if(t===n)return Kr(t),n=Fr(t.site),af.insert(a,n),a.edge=n.edge=Zr(t.site,a.site),Jr(t),void Jr(n);if(!n)return void (a.edge=Zr(t.site,a.site));Kr(t),Kr(n);var f=t.site,l=f.x,c=f.y,h=e.x-l,p=e.y-c,d=n.site,v=d.x-l,m=d.y-c,g=2*(h*m-p*v),y=h*h+p*p,b=v*v+m*m,w={x:(m*y-p*b)/g+l,y:(h*b-v*y)/g+c};ti(n.edge,f,d,w),a.edge=Zr(f,e,null,w),n.edge=Zr(e,d,null,w),Jr(t),Jr(n)}}function Ur(e,t){var n=e.site,r=n.x,i=n.y,s=i-t;if(!s)return r;var o=e.P;if(!o)return-1/0;n=o.site;var u=n.x,a=n.y,f=a-t;if(!f)return u;var l=u-r,c=1/s-1/f,h=l/f;return c?(-h+Math.sqrt(h*h-2*c*(l*l/(-2*f)-a+f/2+i-s/2)))/c+r:(r+u)/2}function zr(e,t){var n=e.N;if(n)return Ur(n,t);var r=e.site;return r.y===t?r.x:1/0}function Wr(e){this.site=e,this.edges=[]}function Xr(e){for(var t,n,r,i,s,o,u,a,f,l,c=e[0][0],h=e[1][0],p=e[0][1],d=e[1][1],v=uf,m=v.length;m--;)if(s=v[m],s&&s.prepare())for(u=s.edges,a=u.length,o=0;a>o;)l=u[o].end(),r=l.x,i=l.y,f=u[++o%a].start(),t=f.x,n=f.y,(Eu(r-t)>Fu||Eu(i-n)>Fu)&&(u.splice(o,0,new ni(ei(s.site,l,Eu(r-c)<Fu&&d-i>Fu?{x:c,y:Eu(t-c)<Fu?n:d}:Eu(i-d)<Fu&&h-r>Fu?{x:Eu(n-d)<Fu?t:h,y:d}:Eu(r-h)<Fu&&i-p>Fu?{x:h,y:Eu(t-h)<Fu?n:p}:Eu(i-p)<Fu&&r-c>Fu?{x:Eu(n-p)<Fu?t:c,y:p}:null),s.site,null)),++a)}function Vr(e,t){return t.angle-e.angle}function $r(){ii(this),this.x=this.y=this.arc=this.site=this.cy=null}function Jr(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,s=n.site;if(r!==s){var o=i.x,u=i.y,a=r.x-o,f=r.y-u,l=s.x-o,c=s.y-u,h=2*(a*c-f*l);if(!(h>=-Iu)){var p=a*a+f*f,d=l*l+c*c,v=(c*p-f*d)/h,m=(a*d-l*p)/h,c=m+u,g=hf.pop()||new $r;g.arc=e,g.site=i,g.x=v+o,g.y=c+Math.sqrt(v*v+m*m),g.cy=c,e.circle=g;for(var y=null,b=lf._;b;)if(g.y<b.y||g.y===b.y&&g.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}lf.insert(y,g),y||(ff=g)}}}}function Kr(e){var t=e.circle;t&&(t.P||(ff=t.N),lf.remove(t),hf.push(t),ii(t),e.circle=null)}function Qr(e){for(var t,n=of,r=Wn(e[0][0],e[0][1],e[1][0],e[1][1]),i=n.length;i--;)t=n[i],(!Gr(t,e)||!r(t)||Eu(t.a.x-t.b.x)<Fu&&Eu(t.a.y-t.b.y)<Fu)&&(t.a=t.b=null,n.splice(i,1))}function Gr(e,t){var n=e.b;if(n)return!0;var r,i,s=e.a,o=t[0][0],u=t[1][0],a=t[0][1],f=t[1][1],l=e.l,c=e.r,h=l.x,p=l.y,d=c.x,v=c.y,m=(h+d)/2,g=(p+v)/2;if(v===p){if(o>m||m>=u)return;if(h>d){if(s){if(s.y>=f)return}else s={x:m,y:a};n={x:m,y:f}}else{if(s){if(s.y<a)return}else s={x:m,y:f};n={x:m,y:a}}}else if(r=(h-d)/(v-p),i=g-r*m,-1>r||r>1)if(h>d){if(s){if(s.y>=f)return}else s={x:(a-i)/r,y:a};n={x:(f-i)/r,y:f}}else{if(s){if(s.y<a)return}else s={x:(f-i)/r,y:f};n={x:(a-i)/r,y:a}}else if(v>p){if(s){if(s.x>=u)return}else s={x:o,y:r*o+i};n={x:u,y:r*u+i}}else{if(s){if(s.x<o)return}else s={x:u,y:r*u+i};n={x:o,y:r*o+i}}return e.a=s,e.b=n,!0}function Yr(e,t){this.l=e,this.r=t,this.a=this.b=null}function Zr(e,t,n,r){var i=new Yr(e,t);return of.push(i),n&&ti(i,e,t,n),r&&ti(i,t,e,r),uf[e.i].edges.push(new ni(i,e,t)),uf[t.i].edges.push(new ni(i,t,e)),i}function ei(e,t,n){var r=new Yr(e,null);return r.a=t,r.b=n,of.push(r),r}function ti(e,t,n,r){e.a||e.b?e.l===n?e.b=r:e.a=r:(e.a=r,e.l=t,e.r=n)}function ni(e,t,n){var r=e.a,i=e.b;this.edge=e,this.site=t,this.angle=n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function ri(){this._=null}function ii(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function si(e,t){var n=t,r=t.R,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function oi(e,t){var n=t,r=t.L,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function ui(e){for(;e.L;)e=e.L;return e}function ai(e,t){var n,r,i,s=e.sort(fi).pop();for(of=[],uf=new Array(e.length),af=new ri,lf=new ri;;)if(i=ff,s&&(!i||s.y<i.y||s.y===i.y&&s.x<i.x))s.x===n&&s.y===r||(uf[s.i]=new Wr(s),Rr(s),n=s.x,r=s.y),s=e.pop();else{if(!i)break;qr(i.arc)}t&&(Qr(t),Xr(t));var o={cells:uf,edges:of};return af=lf=of=uf=null,o}function fi(e,t){return t.y-e.y||t.x-e.x}function li(e,t,n){return(e.x-n.x)*(t.y-e.y)-(e.x-t.x)*(n.y-e.y)}function ci(e){return e.x}function hi(e){return e.y}function pi(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function di(e,t,n,r,i,s){if(!e(t,n,r,i,s)){var o=.5*(n+i),u=.5*(r+s),a=t.nodes;a[0]&&di(e,a[0],n,r,o,u),a[1]&&di(e,a[1],o,r,i,u),a[2]&&di(e,a[2],n,u,o,s),a[3]&&di(e,a[3],o,u,i,s)}}function vi(e,t,n,r,i,s,o){var u,a=1/0;return function f(e,l,c,h,p){if(!(l>s||c>o||r>h||i>p)){if(d=e.point){var d,v=t-e.x,m=n-e.y,g=v*v+m*m;if(a>g){var y=Math.sqrt(a=g);r=t-y,i=n-y,s=t+y,o=n+y,u=d}}for(var b=e.nodes,w=.5*(l+h),E=.5*(c+p),S=t>=w,x=n>=E,T=x<<1|S,N=T+4;N>T;++T)if(e=b[3&T])switch(3&T){case 0:f(e,l,c,w,E);break;case 1:f(e,w,c,h,E);break;case 2:f(e,l,E,w,p);break;case 3:f(e,w,E,h,p)}}}(e,r,i,s,o),u}function mi(e,t){e=fu.rgb(e),t=fu.rgb(t);var n=e.r,r=e.g,i=e.b,s=t.r-n,o=t.g-r,u=t.b-i;return function(e){return"#"+Et(Math.round(n+s*e))+Et(Math.round(r+o*e))+Et(Math.round(i+u*e))}}function gi(e,t){var n,r={},i={};for(n in e)n in t?r[n]=wi(e[n],t[n]):i[n]=e[n];for(n in t)n in e||(i[n]=t[n]);return function(e){for(n in r)i[n]=r[n](e);return i}}function yi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function bi(e,t){var n,r,i,s=df.lastIndex=vf.lastIndex=0,o=-1,u=[],a=[];for(e+="",t+="";(n=df.exec(e))&&(r=vf.exec(t));)(i=r.index)>s&&(i=t.slice(s,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,a.push({i:o,x:yi(n,r)})),s=vf.lastIndex;return s<t.length&&(i=t.slice(s),u[o]?u[o]+=i:u[++o]=i),u.length<2?a[0]?(t=a[0].x,function(e){return t(e)+""}):function(){return t}:(t=a.length,function(e){for(var n,r=0;t>r;++r)u[(n=a[r]).i]=n.x(e);return u.join("")})}function wi(e,t){for(var n,r=fu.interpolators.length;--r>=0&&!(n=fu.interpolators[r](e,t)););return n}function Ei(e,t){var n,r=[],i=[],s=e.length,o=t.length,u=Math.min(e.length,t.length);for(n=0;u>n;++n)r.push(wi(e[n],t[n]));for(;s>n;++n)i[n]=e[n];for(;o>n;++n)i[n]=t[n];return function(e){for(n=0;u>n;++n)i[n]=r[n](e);return i}}function Si(e){return function(t){return 0>=t?0:t>=1?1:e(t)}}function xi(e){return function(t){return 1-e(1-t)}}function Ti(e){return function(t){return.5*(.5>t?e(2*t):2-e(2-2*t))}}function Ni(e){return e*e}function Ci(e){return e*e*e}function ki(e){if(0>=e)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(.5>e?n:3*(e-t)+n-.75)}function Li(e){return function(t){return Math.pow(t,e)}}function Ai(e){return 1-Math.cos(e*zu)}function Oi(e){return Math.pow(2,10*(e-1))}function Mi(e){return 1-Math.sqrt(1-e*e)}function _i(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/Ru*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Ru/t)}}function Di(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}}function Pi(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Hi(e,t){e=fu.hcl(e),t=fu.hcl(t);var n=e.h,r=e.c,i=e.l,s=t.h-n,o=t.c-r,u=t.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?t.c:r),isNaN(s)?(s=0,n=isNaN(n)?t.h:n):s>180?s-=360:-180>s&&(s+=360),function(e){return ct(n+s*e,r+o*e,i+u*e)+""}}function Bi(e,t){e=fu.hsl(e),t=fu.hsl(t);var n=e.h,r=e.s,i=e.l,s=t.h-n,o=t.s-r,u=t.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?t.s:r),isNaN(s)?(s=0,n=isNaN(n)?t.h:n):s>180?s-=360:-180>s&&(s+=360),function(e){return ft(n+s*e,r+o*e,i+u*e)+""}}function ji(e,t){e=fu.lab(e),t=fu.lab(t);var n=e.l,r=e.a,i=e.b,s=t.l-n,o=t.a-r,u=t.b-i;return function(e){return pt(n+s*e,r+o*e,i+u*e)+""}}function Fi(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function Ii(e){var t=[e.a,e.b],n=[e.c,e.d],r=Ri(t),i=qi(t,n),s=Ri(Ui(n,t,-i))||0;t[0]*n[1]<n[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-n[0],n[1]))*Xu,this.translate=[e.e,e.f],this.scale=[r,s],this.skew=s?Math.atan2(i,s)*Xu:0}function qi(e,t){return e[0]*t[0]+e[1]*t[1]}function Ri(e){var t=Math.sqrt(qi(e,e));return t&&(e[0]/=t,e[1]/=t),t}function Ui(e,t,n){return e[0]+=n*t[0],e[1]+=n*t[1],e}function zi(e){return e.length?e.pop()+",":""}function Wi(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:yi(e[0],t[0])},{i:i-2,x:yi(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}function Xi(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(zi(n)+"rotate(",null,")")-2,x:yi(e,t)})):t&&n.push(zi(n)+"rotate("+t+")")}function Vi(e,t,n,r){e!==t?r.push({i:n.push(zi(n)+"skewX(",null,")")-2,x:yi(e,t)}):t&&n.push(zi(n)+"skewX("+t+")")}function $i(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push(zi(n)+"scale(",null,",",null,")");r.push({i:i-4,x:yi(e[0],t[0])},{i:i-2,x:yi(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(zi(n)+"scale("+t+")")}function Ji(e,t){var n=[],r=[];return e=fu.transform(e),t=fu.transform(t),Wi(e.translate,t.translate,n,r),Xi(e.rotate,t.rotate,n,r),Vi(e.skew,t.skew,n,r),$i(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,i=-1,s=r.length;++i<s;)n[(t=r[i]).i]=t.x(e);return n.join("")}}function Ki(e,t){return t=(t-=e=+e)||1/t,function(n){return(n-e)/t}}function Qi(e,t){return t=(t-=e=+e)||1/t,function(n){return Math.max(0,Math.min(1,(n-e)/t))}}function Gi(e){for(var t=e.source,n=e.target,r=Zi(t,n),i=[t];t!==r;)t=t.parent,i.push(t);for(var s=i.length;n!==r;)i.splice(s,0,n),n=n.parent;return i}function Yi(e){for(var t=[],n=e.parent;null!=n;)t.push(e),e=n,n=n.parent;return t.push(e),t}function Zi(e,t){if(e===t)return e;for(var n=Yi(e),r=Yi(t),i=n.pop(),s=r.pop(),o=null;i===s;)o=i,i=n.pop(),s=r.pop();return o}function es(e){e.fixed|=2}function ts(e){e.fixed&=-7}function ns(e){e.fixed|=4,e.px=e.x,e.py=e.y}function rs(e){e.fixed&=-5}function is(e,t,n){var r=0,i=0;if(e.charge=0,!e.leaf)for(var s,o=e.nodes,u=o.length,a=-1;++a<u;)s=o[a],null!=s&&(is(s,t,n),e.charge+=s.charge,r+=s.charge*s.cx,i+=s.charge*s.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var f=t*n[e.point.index];e.charge+=e.pointCharge=f,r+=f*e.point.x,i+=f*e.point.y}e.cx=r/e.charge,e.cy=i/e.charge}function ss(e,t){return fu.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=cs,e}function os(e,t){for(var n=[e];null!=(e=n.pop());)if(t(e),(i=e.children)&&(r=i.length))for(var r,i;--r>=0;)n.push(i[r])}function us(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(s=e.children)&&(i=s.length))for(var i,s,o=-1;++o<i;)n.push(s[o]);for(;null!=(e=r.pop());)t(e)}function as(e){return e.children}function fs(e){return e.value}function ls(e,t){return t.value-e.value}function cs(e){return fu.merge(e.map(function(e){return(e.children||[]).map(function(t){return{source:e,target:t}})}))}function hs(e){return e.x}function ps(e){return e.y}function ds(e,t,n){e.y0=t,e.y=n}function vs(e){return fu.range(e.length)}function ms(e){for(var t=-1,n=e[0].length,r=[];++t<n;)r[t]=0;return r}function gs(e){for(var t,n=1,r=0,i=e[0][1],s=e.length;s>n;++n)(t=e[n][1])>i&&(r=n,i=t);return r}function ys(e){return e.reduce(bs,0)}function bs(e,t){return e+t[1]}function ws(e,t){return Es(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Es(e,t){for(var n=-1,r=+e[0],i=(e[1]-r)/t,s=[];++n<=t;)s[n]=i*n+r;return s}function Ss(e){return[fu.min(e),fu.max(e)]}function xs(e,t){return e.value-t.value}function Ts(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function Ns(e,t){e._pack_next=t,t._pack_prev=e}function Cs(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return.999*i*i>n*n+r*r}function ks(e){function t(e){l=Math.min(e.x-e.r,l),c=Math.max(e.x+e.r,c),h=Math.min(e.y-e.r,h),p=Math.max(e.y+e.r,p)}if((n=e.children)&&(f=n.length)){var n,r,i,s,o,u,a,f,l=1/0,c=-1/0,h=1/0,p=-1/0;if(n.forEach(Ls),r=n[0],r.x=-r.r,r.y=0,t(r),f>1&&(i=n[1],i.x=i.r,i.y=0,t(i),f>2))for(s=n[2],Ms(r,i,s),t(s),Ts(r,s),r._pack_prev=s,Ts(s,i),i=r._pack_next,o=3;f>o;o++){Ms(r,i,s=n[o]);var d=0,v=1,m=1;for(u=i._pack_next;u!==i;u=u._pack_next,v++)if(Cs(u,s)){d=1;break}if(1==d)for(a=r._pack_prev;a!==u._pack_prev&&!Cs(a,s);a=a._pack_prev,m++);d?(m>v||v==m&&i.r<r.r?Ns(r,i=u):Ns(r=a,i),o--):(Ts(r,s),i=s,t(s))}var g=(l+c)/2,y=(h+p)/2,b=0;for(o=0;f>o;o++)s=n[o],s.x-=g,s.y-=y,b=Math.max(b,s.r+Math.sqrt(s.x*s.x+s.y*s.y));e.r=b,n.forEach(As)}}function Ls(e){e._pack_next=e._pack_prev=e}function As(e){delete e._pack_next,delete e._pack_prev}function Os(e,t,n,r){var i=e.children;if(e.x=t+=r*e.x,e.y=n+=r*e.y,e.r*=r,i)for(var s=-1,o=i.length;++s<o;)Os(i[s],t,n,r)}function Ms(e,t,n){var r=e.r+n.r,i=t.x-e.x,s=t.y-e.y;if(r&&(i||s)){var o=t.r+n.r,u=i*i+s*s;o*=o,r*=r;var a=.5+(r-o)/(2*u),f=Math.sqrt(Math.max(0,2*o*(r+u)-(r-=u)*r-o*o))/(2*u);n.x=e.x+a*i+f*s,n.y=e.y+a*s-f*i}else n.x=e.x+r,n.y=e.y}function _s(e,t){return e.parent==t.parent?1:2}function Ds(e){var t=e.children;return t.length?t[0]:e.t}function Ps(e){var t,n=e.children;return(t=n.length)?n[t-1]:e.t}function Hs(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Bs(e){for(var t,n=0,r=0,i=e.children,s=i.length;--s>=0;)t=i[s],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function js(e,t,n){return e.a.parent===t.parent?e.a:n}function Fs(e){return 1+fu.max(e,function(e){return e.y})}function Is(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}function qs(e){var t=e.children;return t&&t.length?qs(t[0]):e}function Rs(e){var t,n=e.children;return n&&(t=n.length)?Rs(n[t-1]):e}function Us(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function zs(e,t){var n=e.x+t[3],r=e.y+t[0],i=e.dx-t[1]-t[3],s=e.dy-t[0]-t[2];return 0>i&&(n+=i/2,i=0),0>s&&(r+=s/2,s=0),{x:n,y:r,dx:i,dy:s}}function Ws(e){var t=e[0],n=e[e.length-1];return n>t?[t,n]:[n,t]}function Xs(e){return e.rangeExtent?e.rangeExtent():Ws(e.range())}function Vs(e,t,n,r){var i=n(e[0],e[1]),s=r(t[0],t[1]);return function(e){return s(i(e))}}function $s(e,t){var n,r=0,i=e.length-1,s=e[r],o=e[i];return s>o&&(n=r,r=i,i=n,n=s,s=o,o=n),e[r]=t.floor(s),e[i]=t.ceil(o),e}function Js(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:Cf}function Ks(e,t,n,r){var i=[],s=[],o=0,u=Math.min(e.length,t.length)-1;for(e[u]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<=u;)i.push(n(e[o-1],e[o])),s.push(r(t[o-1],t[o]));return function(t){var n=fu.bisect(e,t,1,u)-1;return s[n](i[n](t))}}function Qs(e,t,n,r){function i(){var i=Math.min(e.length,t.length)>2?Ks:Vs,a=r?Qi:Ki;return o=i(e,t,a,n),u=i(t,e,a,wi),s}function s(e){return o(e)}var o,u;return s.invert=function(e){return u(e)},s.domain=function(t){return arguments.length?(e=t.map(Number),i()):e},s.range=function(e){return arguments.length?(t=e,i()):t},s.rangeRound=function(e){return s.range(e).interpolate(Fi)},s.clamp=function(e){return arguments.length?(r=e,i()):r},s.interpolate=function(e){return arguments.length?(n=e,i()):n},s.ticks=function(t){return eo(e,t)},s.tickFormat=function(t,n){return to(e,t,n)},s.nice=function(t){return Ys(e,t),i()},s.copy=function(){return Qs(e,t,n,r)},i()}function Gs(e,t){return fu.rebind(e,t,"range","rangeRound","interpolate","clamp")}function Ys(e,t){return $s(e,Js(Zs(e,t)[2])),$s(e,Js(Zs(e,t)[2])),e}function Zs(e,t){null==t&&(t=10);var n=Ws(e),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),s=t/r*i;return.15>=s?i*=10:.35>=s?i*=5:.75>=s&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function eo(e,t){return fu.range.apply(fu,Zs(e,t))}function to(e,t,n){var r=Zs(e,t);if(n){var i=pa.exec(n);if(i.shift(),"s"===i[8]){var s=fu.formatPrefix(Math.max(Eu(r[0]),Eu(r[1])));return i[7]||(i[7]="."+no(s.scale(r[2]))),i[8]="f",n=fu.format(i.join("")),function(e){return n(s.scale(e))+s.symbol}}i[7]||(i[7]="."+ro(i[8],r)),n=i.join("")}else n=",."+no(r[2])+"f";return fu.format(n)}function no(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function ro(e,t){var n=no(t[2]);return e in kf?Math.abs(n-no(Math.max(Eu(t[0]),Eu(t[1]))))+ +("e"!==e):n-2*("%"===e)}function io(e,t,n,r){function i(e){return(n?Math.log(0>e?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function s(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function o(t){return e(i(t))}return o.invert=function(t){return s(e.invert(t))},o.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(i)),o):r},o.base=function(n){return arguments.length?(t=+n,e.domain(r.map(i)),o):t},o.nice=function(){var t=$s(r.map(i),n?Math:Af);return e.domain(t),r=t.map(s),o},o.ticks=function(){var e=Ws(r),o=[],u=e[0],a=e[1],f=Math.floor(i(u)),l=Math.ceil(i(a)),c=t%1?2:t;if(isFinite(l-f)){if(n){for(;l>f;f++)for(var h=1;c>h;h++)o.push(s(f)*h);o.push(s(f))}else for(o.push(s(f));f++<l;)for(var h=c-1;h>0;h--)o.push(s(f)*h);for(f=0;o[f]<u;f++);for(l=o.length;o[l-1]>a;l--);o=o.slice(f,l)}return o},o.tickFormat=function(e,n){if(!arguments.length)return Lf;arguments.length<2?n=Lf:"function"!=typeof n&&(n=fu.format(n));var r=Math.max(1,t*e/o.ticks().length);return function(e){var o=e/s(Math.round(i(e)));return t-.5>o*t&&(o*=t),r>=o?n(e):""}},o.copy=function(){return io(e.copy(),t,n,r)},Gs(o,e)}function so(e,t,n){function r(t){return e(i(t))}var i=oo(t),s=oo(1/t);return r.invert=function(t){return s(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),r):n},r.ticks=function(e){return eo(n,e)},r.tickFormat=function(e,t){return to(n,e,t)},r.nice=function(e){return r.domain(Ys(n,e))},r.exponent=function(o){return arguments.length?(i=oo(t=o),s=oo(1/t),e.domain(n.map(i)),r):t},r.copy=function(){return so(e.copy(),t,n)},Gs(r,e)}function oo(e){return function(t){return 0>t?-Math.pow(-t,e):Math.pow(t,e)}}function uo(e,t){function n(n){return s[((i.get(n)||("range"===t.t?i.set(n,e.push(n)):NaN))-1)%s.length]}function r(t,n){return fu.range(e.length).map(function(e){return t+n*e})}var i,s,o;return n.domain=function(r){if(!arguments.length)return e;e=[],i=new l;for(var s,o=-1,u=r.length;++o<u;)i.has(s=r[o])||i.set(s,e.push(s));return n[t.t].apply(n,t.a)},n.range=function(e){return arguments.length?(s=e,o=0,t={t:"range",a:arguments},n):s},n.rangePoints=function(i,u){arguments.length<2&&(u=0);var a=i[0],f=i[1],l=e.length<2?(a=(a+f)/2,0):(f-a)/(e.length-1+u);return s=r(a+l*u/2,l),o=0,t={t:"rangePoints",a:arguments},n},n.rangeRoundPoints=function(i,u){arguments.length<2&&(u=0);var a=i[0],f=i[1],l=e.length<2?(a=f=Math.round((a+f)/2),0):(f-a)/(e.length-1+u)|0;return s=r(a+Math.round(l*u/2+(f-a-(e.length-1+u)*l)/2),l),o=0,t={t:"rangeRoundPoints",a:arguments},n},n.rangeBands=function(i,u,a){arguments.length<2&&(u=0),arguments.length<3&&(a=u);var f=i[1]<i[0],l=i[f-0],c=i[1-f],h=(c-l)/(e.length-u+2*a);return s=r(l+h*a,h),f&&s.reverse(),o=h*(1-u),t={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(i,u,a){arguments.length<2&&(u=0),arguments.length<3&&(a=u);var f=i[1]<i[0],l=i[f-0],c=i[1-f],h=Math.floor((c-l)/(e.length-u+2*a));return s=r(l+Math.round((c-l-(e.length-u)*h)/2),h),f&&s.reverse(),o=Math.round(h*(1-u)),t={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return o},n.rangeExtent=function(){return Ws(t.a[0])},n.copy=function(){return uo(e,t)},n.domain(e)}function ao(e,t){function n(){var n=0,r=t.length;for(u=[];++n<r;)u[n-1]=fu.quantile(e,n/r);return o}function o(e){return isNaN(e=+e)?void 0:t[fu.bisect(u,e)]}var u;return o.domain=function(t){return arguments.length?(e=t.map(i).filter(s).sort(r),n()):e},o.range=function(e){return arguments.length?(t=e,n()):t},o.quantiles=function(){return u},o.invertExtent=function(n){return n=t.indexOf(n),0>n?[NaN,NaN]:[n>0?u[n-1]:e[0],n<u.length?u[n]:e[e.length-1]]},o.copy=function(){return ao(e,t)},n()}function fo(e,t,n){function r(t){return n[Math.max(0,Math.min(o,Math.floor(s*(t-e))))]}function i(){return s=n.length/(t-e),o=n.length-1,r}var s,o;return r.domain=function(n){return arguments.length?(e=+n[0],t=+n[n.length-1],i()):[e,t]},r.range=function(e){return arguments.length?(n=e,i()):n},r.invertExtent=function(t){return t=n.indexOf(t),t=0>t?NaN:t/s+e,[t,t+1/s]},r.copy=function(){return fo(e,t,n)},i()}function lo(e,t){function n(n){return n>=n?t[fu.bisect(e,n)]:void 0}return n.domain=function(t){return arguments.length?(e=t,n):e},n.range=function(e){return arguments.length?(t=e,n):t},n.invertExtent=function(n){return n=t.indexOf(n),[e[n-1],e[n]]},n.copy=function(){return lo(e,t)},n}function co(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=n.map(t),t):e},t.ticks=function(t){return eo(e,t)},t.tickFormat=function(t,n){return to(e,t,n)},t.copy=function(){return co(e)},t}function ho(){return 0}function po(e){return e.innerRadius}function vo(e){return e.outerRadius}function mo(e){return e.startAngle}function go(e){return e.endAngle}function yo(e){return e&&e.padAngle}function bo(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function wo(e,t,n,r,i){var s=e[0]-t[0],o=e[1]-t[1],u=(i?r:-r)/Math.sqrt(s*s+o*o),a=u*o,f=-u*s,l=e[0]+a,c=e[1]+f,h=t[0]+a,p=t[1]+f,d=(l+h)/2,v=(c+p)/2,m=h-l,g=p-c,y=m*m+g*g,b=n-r,w=l*p-h*c,E=(0>g?-1:1)*Math.sqrt(Math.max(0,b*b*y-w*w)),S=(w*g-m*E)/y,x=(-w*m-g*E)/y,T=(w*g+m*E)/y,N=(-w*m+g*E)/y,C=S-d,k=x-v,L=T-d,A=N-v;return C*C+k*k>L*L+A*A&&(S=T,x=N),[[S-a,x-f],[S*n/b,x*n/b]]}function Eo(e){function t(t){function o(){f.push("M",s(e(l),u))}for(var a,f=[],l=[],c=-1,h=t.length,p=kt(n),d=kt(r);++c<h;)i.call(this,a=t[c],c)?l.push([+p.call(this,a,c),+d.call(this,a,c)]):l.length&&(o(),l=[]);return l.length&&o(),f.length?f.join(""):null}var n=Or,r=Mr,i=Mn,s=So,o=s.key,u=.7;return t.x=function(e){return arguments.length?(n=e,t):n},t.y=function(e){return arguments.length?(r=e,t):r},t.defined=function(e){return arguments.length?(i=e,t):i},t.interpolate=function(e){return arguments.length?(o="function"==typeof e?s=e:(s=Hf.get(e)||So).key,t):o},t.tension=function(e){return arguments.length?(u=e,t):u},t}function So(e){return e.length>1?e.join("L"):e+"Z"}function xo(e){return e.join("L")+"Z"}function To(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t<n;)i.push("H",(r[0]+(r=e[t])[0])/2,"V",r[1]);return n>1&&i.push("H",r[0]),i.join("")}function No(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t<n;)i.push("V",(r=e[t])[1],"H",r[0]);return i.join("")}function Co(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t<n;)i.push("H",(r=e[t])[0],"V",r[1]);return i.join("")}function ko(e,t){return e.length<4?So(e):e[1]+Oo(e.slice(1,-1),Mo(e,t))}function Lo(e,t){return e.length<3?xo(e):e[0]+Oo((e.push(e[0]),e),Mo([e[e.length-2]].concat(e,[e[1]]),t))}function Ao(e,t){return e.length<3?So(e):e[0]+Oo(e,Mo(e,t))}function Oo(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return So(e);var n=e.length!=t.length,r="",i=e[0],s=e[1],o=t[0],u=o,a=1;if(n&&(r+="Q"+(s[0]-2*o[0]/3)+","+(s[1]-2*o[1]/3)+","+s[0]+","+s[1],i=e[1],a=2),t.length>1){u=t[1],s=e[a],a++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(s[0]-u[0])+","+(s[1]-u[1])+","+s[0]+","+s[1];for(var f=2;f<t.length;f++,a++)s=e[a],u=t[f],r+="S"+(s[0]-u[0])+","+(s[1]-u[1])+","+s[0]+","+s[1]}if(n){var l=e[a];r+="Q"+(s[0]+2*u[0]/3)+","+(s[1]+2*u[1]/3)+","+l[0]+","+l[1]}return r}function Mo(e,t){for(var n,r=[],i=(1-t)/2,s=e[0],o=e[1],u=1,a=e.length;++u<a;)n=s,s=o,o=e[u],r.push([i*(o[0]-n[0]),i*(o[1]-n[1])]);return r}function _o(e){if(e.length<3)return So(e);var t=1,n=e.length,r=e[0],i=r[0],s=r[1],o=[i,i,i,(r=e[1])[0]],u=[s,s,s,r[1]],a=[i,",",s,"L",Bo(Ff,o),",",Bo(Ff,u)];for(e.push(e[n-1]);++t<=n;)r=e[t],o.shift(),o.push(r[0]),u.shift(),u.push(r[1]),jo(a,o,u);return e.pop(),a.push("L",r),a.join("")}function Do(e){if(e.length<4)return So(e);for(var t,n=[],r=-1,i=e.length,s=[0],o=[0];++r<3;)t=e[r],s.push(t[0]),o.push(t[1]);for(n.push(Bo(Ff,s)+","+Bo(Ff,o)),--r;++r<i;)t=e[r],s.shift(),s.push(t[0]),o.shift(),o.push(t[1]),jo(n,s,o);return n.join("")}function Po(e){for(var t,n,r=-1,i=e.length,s=i+4,o=[],u=[];++r<4;)n=e[r%i],o.push(n[0]),u.push(n[1]);for(t=[Bo(Ff,o),",",Bo(Ff,u)],--r;++r<s;)n=e[r%i],o.shift(),o.push(n[0]),u.shift(),u.push(n[1]),jo(t,o,u);return t.join("")}function Ho(e,t){var n=e.length-1;if(n)for(var r,i,s=e[0][0],o=e[0][1],u=e[n][0]-s,a=e[n][1]-o,f=-1;++f<=n;)r=e[f],i=f/n,r[0]=t*r[0]+(1-t)*(s+i*u),r[1]=t*r[1]+(1-t)*(o+i*a);return _o(e)}function Bo(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function jo(e,t,n){e.push("C",Bo(Bf,t),",",Bo(Bf,n),",",Bo(jf,t),",",Bo(jf,n),",",Bo(Ff,t),",",Bo(Ff,n))}function Fo(e,t){return(t[1]-e[1])/(t[0]-e[0])}function Io(e){for(var t=0,n=e.length-1,r=[],i=e[0],s=e[1],o=r[0]=Fo(i,s);++t<n;)r[t]=(o+(o=Fo(i=s,s=e[t+1])))/2;return r[t]=o,r}function qo(e){for(var t,n,r,i,s=[],o=Io(e),u=-1,a=e.length-1;++u<a;)t=Fo(e[u],e[u+1]),Eu(t)<Fu?o[u]=o[u+1]=0:(n=o[u]/t,r=o[u+1]/t,i=n*n+r*r,i>9&&(i=3*t/Math.sqrt(i),o[u]=i*n,o[u+1]=i*r));for(u=-1;++u<=a;)i=(e[Math.min(a,u+1)][0]-e[Math.max(0,u-1)][0])/(6*(1+o[u]*o[u])),s.push([i||0,o[u]*i||0]);return s}function Ro(e){return e.length<3?So(e):e[0]+Oo(e,qo(e))}function Uo(e){for(var t,n,r,i=-1,s=e.length;++i<s;)t=e[i],n=t[0],r=t[1]-zu,t[0]=n*Math.cos(r),t[1]=n*Math.sin(r);return e}function zo(e){function t(t){function a(){v.push("M",u(e(g),c),l,f(e(m.reverse()),c),"Z")}for(var h,p,d,v=[],m=[],g=[],y=-1,b=t.length,w=kt(n),E=kt(i),S=n===r?function(){return p}:kt(r),x=i===s?function(){return d}:kt(s);++y<b;)o.call(this,h=t[y],y)?(m.push([p=+w.call(this,h,y),d=+E.call(this,h,y)]),g.push([+S.call(this,h,y),+x.call(this,h,y)])):m.length&&(a(),m=[],g=[]);return m.length&&a(),v.length?v.join(""):null}var n=Or,r=Or,i=0,s=Mr,o=Mn,u=So,a=u.key,f=u,l="L",c=.7;return t.x=function(e){return arguments.length?(n=r=e,t):r},t.x0=function(e){return arguments.length?(n=e,t):n},t.x1=function(e){return arguments.length?(r=e,t):r},t.y=function(e){return arguments.length?(i=s=e,t):s},t.y0=function(e){return arguments.length?(i=e,t):i},t.y1=function(e){return arguments.length?(s=e,t):s},t.defined=function(e){return arguments.length?(o=e,t):o},t.interpolate=function(e){return arguments.length?(a="function"==typeof e?u=e:(u=Hf.get(e)||So).key,f=u.reverse||u,l=u.closed?"M":"L",t):a},t.tension=function(e){return arguments.length?(c=e,t):c},t}function Wo(e){return e.radius}function Xo(e){return[e.x,e.y]}function Vo(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-zu;return[n*Math.cos(r),n*Math.sin(r)]}}function $o(){return 64}function Jo(){return"circle"}function Ko(e){var t=Math.sqrt(e/qu);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+ -t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Qo(e){return function(){var t,n,r;(t=this[e])&&(r=t[n=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[n]:delete this[e],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Go(e,t,n){return Cu(e,Xf),e.namespace=t,e.id=n,e}function Yo(e,t,n,r){var i=e.id,s=e.namespace;return W(e,"function"==typeof n?function(e,o,u){e[s][i].tween.set(t,r(n.call(e,e.__data__,o,u)))}:(n=r(n),function(e){e[s][i].tween.set(t,n)}))}function Zo(e){return null==e&&(e=""),function(){this.textContent=e}}function eu(e){return null==e?"__transition__":"__transition_"+e+"__"}function tu(e,t,n,r,i){function s(e){var t=v.delay;return f.t=t+a,e>=t?o(e-t):void (f.c=o)}function o(n){var i=d.active,s=d[i];s&&(s.timer.c=null,s.timer.t=NaN,--d.count,delete d[i],s.event&&s.event.interrupt.call(e,e.__data__,s.index));for(var o in d)if(r>+o){var l=d[o];l.timer.c=null,l.timer.t=NaN,--d.count,delete d[o]}f.c=u,_t(function(){return f.c&&u(n||1)&&(f.c=null,f.t=NaN),1},0,a),d.active=r,v.event&&v.event.start.call(e,e.__data__,t),p=[],v.tween.forEach(function(n,r){(r=r.call(e,e.__data__,t))&&p.push(r)}),h=v.ease,c=v.duration}function u(i){for(var s=i/c,o=h(s),u=p.length;u>0;)p[--u].call(e,o);return s>=1?(v.event&&v.event.end.call(e,e.__data__,t),--d.count?delete d[r]:delete e[n],1):void 0}var a,f,c,h,p,d=e[n]||(e[n]={active:0,count:0}),v=d[r];v||(a=i.time,f=_t(s,0,a),v=d[r]={tween:new l,time:a,timer:f,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++d.count)}function nu(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"})}function ru(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"})}function iu(e){return e.toISOString()}function su(e,t,n){function r(t){return e(t)}function i(e,n){var r=e[1]-e[0],i=r/n,s=fu.bisect(el,i);return s==el.length?[t.year,Zs(e.map(function(e){return e/31536e6}),n)[2]]:s?t[i/el[s-1]<el[s]/i?s-1:s]:[rl,Zs(e,n)[2]]}return r.invert=function(t){return ou(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain(t),r):e.domain().map(ou)},r.nice=function(e,t){function n(n){return!isNaN(n)&&!e.range(n,ou(+n+1),t).length}var s=r.domain(),o=Ws(s),u=null==e?i(o,10):"number"==typeof e&&i(o,e);return u&&(e=u[0],t=u[1]),r.domain($s(s,t>1?{floor:function(t){for(;n(t=e.floor(t));)t=ou(t-1);return t},ceil:function(t){for(;n(t=e.ceil(t));)t=ou(+t+1);return t}}:e))},r.ticks=function(e,t){var n=Ws(r.domain()),s=null==e?i(n,10):"number"==typeof e?i(n,e):!e.range&&[{range:e},t];return s&&(e=s[0],t=s[1]),e.range(n[0],ou(+n[1]+1),1>t?1:t)},r.tickFormat=function(){return n},r.copy=function(){return su(e.copy(),t,n)},Gs(r,e)}function ou(e){return new Date(e)}function uu(e){return JSON.parse(e.responseText)}function au(e){var t=hu.createRange();return t.selectNode(hu.body),t.createContextualFragment(e.responseText)}var fu={version:"3.5.17"},lu=[].slice,cu=function(e){return lu.call(e)},hu=this.document;if(hu)try{cu(hu.documentElement.childNodes)[0].nodeType}catch(pu){cu=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+(new Date)}),hu)try{hu.createElement("DIV").style.setProperty("opacity",0,"")}catch(du){var vu=this.Element.prototype,mu=vu.setAttribute,gu=vu.setAttributeNS,yu=this.CSSStyleDeclaration.prototype,bu=yu.setProperty;vu.setAttribute=function(e,t){mu.call(this,e,t+"")},vu.setAttributeNS=function(e,t,n){gu.call(this,e,t,n+"")},yu.setProperty=function(e,t,n){bu.call(this,e,t+"",n)}}fu.ascending=r,fu.descending=function(e,t){return e>t?-1:t>e?1:t>=e?0:NaN},fu.min=function(e,t){var n,r,i=-1,s=e.length;if(1===arguments.length){for(;++i<s;)if(null!=(r=e[i])&&r>=r){n=r;break}for(;++i<s;)null!=(r=e[i])&&n>r&&(n=r)}else{for(;++i<s;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=r;break}for(;++i<s;)null!=(r=t.call(e,e[i],i))&&n>r&&(n=r)}return n},fu.max=function(e,t){var n,r,i=-1,s=e.length;if(1===arguments.length){for(;++i<s;)if(null!=(r=e[i])&&r>=r){n=r;break}for(;++i<s;)null!=(r=e[i])&&r>n&&(n=r)}else{for(;++i<s;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=r;break}for(;++i<s;)null!=(r=t.call(e,e[i],i))&&r>n&&(n=r)}return n},fu.extent=function(e,t){var n,r,i,s=-1,o=e.length;if(1===arguments.length){for(;++s<o;)if(null!=(r=e[s])&&r>=r){n=i=r;break}for(;++s<o;)null!=(r=e[s])&&(n>r&&(n=r),r>i&&(i=r))}else{for(;++s<o;)if(null!=(r=t.call(e,e[s],s))&&r>=r){n=i=r;break}for(;++s<o;)null!=(r=t.call(e,e[s],s))&&(n>r&&(n=r),r>i&&(i=r))}return[n,i]},fu.sum=function(e,t){var n,r=0,i=e.length,o=-1;if(1===arguments.length)for(;++o<i;)s(n=+e[o])&&(r+=n);else for(;++o<i;)s(n=+t.call(e,e[o],o))&&(r+=n);return r},fu.mean=function(e,t){var n,r=0,o=e.length,u=-1,a=o;if(1===arguments.length)for(;++u<o;)s(n=i(e[u]))?r+=n:--a;else for(;++u<o;)s(n=i(t.call(e,e[u],u)))?r+=n:--a;return a?r/a:void 0},fu.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],s=n-r;return s?i+s*(e[r]-i):i},fu.median=function(e,t){var n,o=[],u=e.length,a=-1;if(1===arguments.length)for(;++a<u;)s(n=i(e[a]))&&o.push(n);else for(;++a<u;)s(n=i(t.call(e,e[a],a)))&&o.push(n);return o.length?fu.quantile(o.sort(r),.5):void 0},fu.variance=function(e,t){var n,r,o=e.length,u=0,a=0,f=-1,l=0;if(1===arguments.length)for(;++f<o;)s(n=i(e[f]))&&(r=n-u,u+=r/++l,a+=r*(n-u));else for(;++f<o;)s(n=i(t.call(e,e[f],f)))&&(r=n-u,u+=r/++l,a+=r*(n-u));return l>1?a/(l-1):void 0},fu.deviation=function(){var e=fu.variance.apply(this,arguments);return e?Math.sqrt(e):e};var wu=o(r);fu.bisectLeft=wu.left,fu.bisect=fu.bisectRight=wu.right,fu.bisector=function(e){return o(1===e.length?function(t,n){return r(e(t),n)}:e)},fu.shuffle=function(e,t,n){(s=arguments.length)<3&&(n=e.length,2>s&&(t=0));for(var r,i,s=n-t;s;)i=Math.random()*s--|0,r=e[s+t],e[s+t]=e[i+t],e[i+t]=r;return e},fu.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},fu.pairs=function(e){for(var t,n=0,r=e.length-1,i=e[0],s=new Array(0>r?0:r);r>n;)s[n]=[t=i,i=e[++n]];return s},fu.transpose=function(e){if(!(i=e.length))return[];for(var t=-1,n=fu.min(e,u),r=new Array(n);++t<n;)for(var i,s=-1,o=r[t]=new Array(i);++s<i;)o[s]=e[s][t];return r},fu.zip=function(){return fu.transpose(arguments)},fu.keys=function(e){var t=[];for(var n in e)t.push(n);return t},fu.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},fu.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},fu.merge=function(e){for(var t,n,r,i=e.length,s=-1,o=0;++s<i;)o+=e[s].length;for(n=new Array(o);--i>=0;)for(r=e[i],t=r.length;--t>=0;)n[--o]=r[t];return n};var Eu=Math.abs;fu.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n===1/0)throw new Error("infinite range");var r,i=[],s=a(Eu(n)),o=-1;if(e*=s,t*=s,n*=s,0>n)for(;(r=e+n*++o)>t;)i.push(r/s);else for(;(r=e+n*++o)<t;)i.push(r/s);return i},fu.map=function(e,t){var n=new l;if(e instanceof l)e.forEach(function(e,t){n.set(e,t)});else if(Array.isArray(e)){var r,i=-1,s=e.length;if(1===arguments.length)for(;++i<s;)n.set(i,e[i]);else for(;++i<s;)n.set(t.call(e,r=e[i],i),r)}else for(var o in e)n.set(o,e[o]);return n};var Su="__proto__",xu="\0";f(l,{has:p,get:function(e){return this._[c(e)]},set:function(e,t){return this._[c(e)]=t},remove:d,keys:v,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:h(t),value:this._[t]});return e},size:m,empty:g,forEach:function(e){for(var t in this._)e.call(this,h(t),this._[t])}}),fu.nest=function(){function e(t,o,u){if(u>=s.length)return r?r.call(i,o):n?o.sort(n):o;for(var a,f,c,h,p=-1,d=o.length,v=s[u++],m=new l;++p<d;)(h=m.get(a=v(f=o[p])))?h.push(f):m.set(a,[f]);return t?(f=t(),c=function(n,r){f.set(n,e(t,r,u))}):(f={},c=function(n,r){f[n]=e(t,r,u)}),m.forEach(c),f}function t(e,n){if(n>=s.length)return e;var r=[],i=o[n++];return e.forEach(function(e,i){r.push({key:e,values:t(i,n)})}),i?r.sort(function(e,t){return i(e.key,t.key)}):r}var n,r,i={},s=[],o=[];return i.map=function(t,n){return e(n,t,0)},i.entries=function(n){return t(e(fu.map,n,0),0)},i.key=function(e){return s.push(e),i},i.sortKeys=function(e){return o[s.length-1]=e,i},i.sortValues=function(e){return n=e,i},i.rollup=function(e){return r=e,i},i},fu.set=function(e){var t=new y;if(e)for(var n=0,r=e.length;r>n;++n)t.add(e[n]);return t},f(y,{has:p,add:function(e){return this._[c(e+="")]=!0,e},remove:d,values:v,size:m,empty:g,forEach:function(e){for(var t in this._)e.call(this,h(t))}}),fu.behavior={},fu.rebind=function(e,t){for(var n,r=1,i=arguments.length;++r<i;)e[n=arguments[r]]=w(e,t,t[n]);return e};var Tu=["webkit","ms","moz","Moz","o","O"];fu.dispatch=function(){for(var e=new x,t=-1,n=arguments.length;++t<n;)e[arguments[t]]=T(e);return e},x.prototype.on=function(e,t){var n=e.indexOf("."),r="";if(n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},fu.event=null,fu.requote=function(e){return e.replace(Nu,"\\$&")};var Nu=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Cu={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]},ku=function(e,t){return t.querySelector(e)},Lu=function(e,t){return t.querySelectorAll(e)},Au=function(e,t){var n=e.matches||e[E(e,"matchesSelector")];return(Au=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(ku=function(e,t){return Sizzle(e,t)[0]||null},Lu=Sizzle,Au=Sizzle.matchesSelector),fu.selection=function(){return fu.select(hu.documentElement)};var Ou=fu.selection.prototype=[];Ou.select=function(e){var t,n,r,i,s=[];e=A(e);for(var o=-1,u=this.length;++o<u;){s.push(t=[]),t.parentNode=(r=this[o]).parentNode;for(var a=-1,f=r.length;++a<f;)(i=r[a])?(t.push(n=e.call(i,i.__data__,a,o)),n&&"__data__"in i&&(n.__data__=i.__data__)):t.push(null)}return L(s)},Ou.selectAll=function(e){var t,n,r=[];e=O(e);for(var i=-1,s=this.length;++i<s;)for(var o=this[i],u=-1,a=o.length;++u<a;)(n=o[u])&&(r.push(t=cu(e.call(n,n.__data__,u,i))),t.parentNode=n);return L(r)};var Mu="http://www.w3.org/1999/xhtml",_u={svg:"http://www.w3.org/2000/svg",xhtml:Mu,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};fu.ns={prefix:_u,qualify:function(e){var t=e.indexOf(":"),n=e;return t>=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),_u.hasOwnProperty(n)?{space:_u[n],local:e}:e}},Ou.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return e=fu.ns.qualify(e),e.local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(M(t,e[t]));return this}return this.each(M(e,t))},Ou.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=P(e)).length,i=-1;if(t=n.classList){for(;++i<r;)if(!t.contains(e[i]))return!1}else for(t=n.getAttribute("class");++i<r;)if(!D(e[i]).test(t))return!1;return!0}for(t in e)this.each(H(t,e[t]));return this}return this.each(H(e,t))},Ou.style=function(e,n,r){var i=arguments.length;if(3>i){if("string"!=typeof e){2>i&&(n="");for(r in e)this.each(j(r,e[r],n));return this}if(2>i){var s=this.node();return t(s).getComputedStyle(s,null).getPropertyValue(e)}r=""}return this.each(j(e,n,r))},Ou.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(F(t,e[t]));return this}return this.each(F(e,t))},Ou.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},Ou.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},Ou.append=function(e){return e=I(e),this.select(function(){return this.appendChild(e.apply(this,arguments))})},Ou.insert=function(e,t){return e=I(e),t=A(t),this.select(function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)})},Ou.remove=function(){return this.each(q)},Ou.data=function(e,t){function n(e,n){var r,i,s,o=e.length,c=n.length,h=Math.min(o,c),p=new Array(c),d=new Array(c),v=new Array(o);if(t){var m,g=new l,y=new Array(o);for(r=-1;++r<o;)(i=e[r])&&(g.has(m=t.call(i,i.__data__,r))?v[r]=i:g.set(m,i),y[r]=m);for(r=-1;++r<c;)(i=g.get(m=t.call(n,s=n[r],r)))?i!==!0&&(p[r]=i,i.__data__=s):d[r]=R(s),g.set(m,!0);for(r=-1;++r<o;)r in y&&g.get(y[r])!==!0&&(v[r]=e[r])}else{for(r=-1;++r<h;)i=e[r],s=n[r],i?(i.__data__=s,p[r]=i):d[r]=R(s);for(;c>r;++r)d[r]=R(n[r]);for(;o>r;++r)v[r]=e[r]}d.update=p,d.parentNode=p.parentNode=v.parentNode=e.parentNode,u.push(d),a.push(p),f.push(v)}var r,i,s=-1,o=this.length;if(!arguments.length){for(e=new Array(o=(r=this[0]).length);++s<o;)(i=r[s])&&(e[s]=i.__data__);return e}var u=X([]),a=L([]),f=L([]);if("function"==typeof e)for(;++s<o;)n(r=this[s],e.call(r,r.parentNode.__data__,s));else for(;++s<o;)n(r=this[s],e);return a.enter=function(){return u},a.exit=function(){return f},a},Ou.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},Ou.filter=function(e){var t,n,r,i=[];"function"!=typeof e&&(e=U(e));for(var s=0,o=this.length;o>s;s++){i.push(t=[]),t.parentNode=(n=this[s]).parentNode;for(var u=0,a=n.length;a>u;u++)(r=n[u])&&e.call(r,r.__data__,u,s)&&t.push(r)}return L(i)},Ou.order=function(){for(var e=-1,t=this.length;++e<t;)for(var n,r=this[e],i=r.length-1,s=r[i];--i>=0;)(n=r[i])&&(s&&s!==n.nextSibling&&s.parentNode.insertBefore(n,s),s=n);return this},Ou.sort=function(e){e=z.apply(this,arguments);for(var t=-1,n=this.length;++t<n;)this[t].sort(e);return this.order()},Ou.each=function(e){return W(this,function(t,n,r){e.call(t,t.__data__,n,r)})},Ou.call=function(e){var t=cu(arguments);return e.apply(t[0]=this,t),this},Ou.empty=function(){return!this.node()},Ou.node=function(){for(var e=0,t=this.length;t>e;e++)for(var n=this[e],r=0,i=n.length;i>r;r++){var s=n[r];if(s)return s}return null},Ou.size=function(){var e=0;return W(this,function(){++e}),e};var Du=[];fu.selection.enter=X,fu.selection.enter.prototype=Du,Du.append=Ou.append,Du.empty=Ou.empty,Du.node=Ou.node,Du.call=Ou.call,Du.size=Ou.size,Du.select=function(e){for(var t,n,r,i,s,o=[],u=-1,a=this.length;++u<a;){r=(i=this[u]).update,o.push(t=[]),t.parentNode=i.parentNode;for(var f=-1,l=i.length;++f<l;)(s=i[f])?(t.push(r[f]=n=e.call(i.parentNode,s.__data__,f,u)),n.__data__=s.__data__):t.push(null)}return L(o)},Du.insert=function(e,t){return arguments.length<2&&(t=V(this)),Ou.insert.call(this,e,t)},fu.select=function(t){var n;return"string"==typeof t?(n=[ku(t,hu)],n.parentNode=hu.documentElement):(n=[t],n.parentNode=e(t)),L([n])},fu.selectAll=function(e){var t;return"string"==typeof e?(t=cu(Lu(e,hu)),t.parentNode=hu.documentElement):(t=cu(e),t.parentNode=null),L([t])},Ou.on=function(e,t,n){var r=arguments.length;if(3>r){if("string"!=typeof e){2>r&&(t=!1);for(n in e)this.each($(n,e[n],t));return this}if(2>r)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each($(e,t,n))};var Pu=fu.map({mouseenter:"mouseover",mouseleave:"mouseout"});hu&&Pu.forEach(function(e){"on"+e in hu&&Pu.remove(e)});var Hu,Bu=0;fu.mouse=function(e){return G(e,C())};var ju=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;fu.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=C().changedTouches),t)for(var r,i=0,s=t.length;s>i;++i)if((r=t[i]).identifier===n)return G(e,r)},fu.behavior.drag=function(){function e(){this.on("mousedown.drag",s).on("touchstart.drag",o)}function n(e,t,n,s,o){return function(){function u(){var e,n,r=t(h,v);r&&(e=r[0]-b[0],n=r[1]-b[1],d|=e|n,b=r,p({type:"drag",x:r[0]+f[0],y:r[1]+f[1],dx:e,dy:n}))}function a(){t(h,v)&&(g.on(s+m,null).on(o+m,null),y(d),p({type:"dragend"}))}var f,l=this,c=fu.event.target.correspondingElement||fu.event.target,h=l.parentNode,p=r.of(l,arguments),d=0,v=e(),m=".drag"+(null==v?"":"-"+v),g=fu.select(n(c)).on(s+m,u).on(o+m,a),y=Q(c),b=t(h,v);i?(f=i.apply(l,arguments),f=[f.x-b[0],f.y-b[1]]):f=[0,0],p({type:"dragstart"})}}var r=k(e,"drag","dragstart","dragend"),i=null,s=n(S,fu.mouse,t,"mousemove","mouseup"),o=n(Y,fu.touch,b,"touchmove","touchend");return e.origin=function(t){return arguments.length?(i=t,e):i},fu.rebind(e,r,"on")},fu.touches=function(e,t){return arguments.length<2&&(t=C().touches),t?cu(t).map(function(t){var n=G(e,t);return n.identifier=t.identifier,n}):[]};var Fu=1e-6,Iu=Fu*Fu,qu=Math.PI,Ru=2*qu,Uu=Ru-Fu,zu=qu/2,Wu=qu/180,Xu=180/qu,Vu=Math.SQRT2,$u=2,Ju=4;fu.interpolateZoom=function(e,t){var n,r,i=e[0],s=e[1],o=e[2],u=t[0],a=t[1],f=t[2],l=u-i,c=a-s,h=l*l+c*c;if(Iu>h)r=Math.log(f/o)/Vu,n=function(e){return[i+e*l,s+e*c,o*Math.exp(Vu*e*r)]};else{var p=Math.sqrt(h),d=(f*f-o*o+Ju*h)/(2*o*$u*p),v=(f*f-o*o-Ju*h)/(2*f*$u*p),m=Math.log(Math.sqrt(d*d+1)-d),g=Math.log(Math.sqrt(v*v+1)-v);r=(g-m)/Vu,n=function(e){var t=e*r,n=it(m),u=o/($u*p)*(n*st(Vu*t+m)-rt(m));return[i+u*l,s+u*c,o*n/it(Vu*t+m)]}}return n.duration=1e3*r,n},fu.behavior.zoom=function(){function e(e){e.on(M,c).on(Qu+".zoom",p).on("dblclick.zoom",d).on(P,h)}function n(e){return[(e[0]-T.x)/T.k,(e[1]-T.y)/T.k]}function r(e){return[e[0]*T.k+T.x,e[1]*T.k+T.y]}function i(e){T.k=Math.max(L[0],Math.min(L[1],e))}function s(e,t){t=r(t),T.x+=e[0]-t[0],T.y+=e[1]-t[1]}function o(t,n,r,o){t.__chart__={x:T.x,y:T.y,k:T.k},i(Math.pow(2,o)),s(m=n,r),t=fu.select(t),A>0&&(t=t.transition().duration(A)),t.call(e.event)}function u(){E&&E.domain(w.range().map(function(e){return(e-T.x)/T.k}).map(w.invert)),x&&x.domain(S.range().map(function(e){return(e-T.y)/T.k}).map(S.invert))}function a(e){O++||e({type:"zoomstart"})}function f(e){u(),e({type:"zoom",scale:T.k,translate:[T.x,T.y]})}function l(e){--O||(e({type:"zoomend"}),m=null)}function c(){function e(){u=1,s(fu.mouse(i),h),f(o)}function r(){c.on(_,null).on(D,null),p(u),l(o)}var i=this,o=H.of(i,arguments),u=0,c=fu.select(t(i)).on(_,e).on(D,r),h=n(fu.mouse(i)),p=Q(i);Wf.call(i),a(o)}function h(){function e(){var e=fu.touches(d);return p=T.k,e.forEach(function(e){e.identifier in m&&(m[e.identifier]=n(e))}),e}function t(){var t=fu.event.target;fu.select(t).on(w,r).on(E,u),S.push(t);for(var n=fu.event.changedTouches,i=0,s=n.length;s>i;++i)m[n[i].identifier]=null;var a=e(),f=Date.now();if(1===a.length){if(500>f-b){var l=a[0];o(d,l,m[l.identifier],Math.floor(Math.log(T.k)/Math.LN2)+1),N()}b=f}else if(a.length>1){var l=a[0],c=a[1],h=l[0]-c[0],p=l[1]-c[1];g=h*h+p*p}}function r(){var e,t,n,r,o=fu.touches(d);Wf.call(d);for(var u=0,a=o.length;a>u;++u,r=null)if(n=o[u],r=m[n.identifier]){if(t)break;e=n,t=r}if(r){var l=(l=n[0]-e[0])*l+(l=n[1]-e[1])*l,c=g&&Math.sqrt(l/g);e=[(e[0]+n[0])/2,(e[1]+n[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],i(c*p)}b=null,s(e,t),f(v)}function u(){if(fu.event.touches.length){for(var t=fu.event.changedTouches,n=0,r=t.length;r>n;++n)delete m[t[n].identifier];for(var i in m)return void e()}fu.selectAll(S).on(y,null),x.on(M,c).on(P,h),C(),l(v)}var p,d=this,v=H.of(d,arguments),m={},g=0,y=".zoom-"+fu.event.changedTouches[0].identifier,w="touchmove"+y,E="touchend"+y,S=[],x=fu.select(d),C=Q(d);t(),a(v),x.on(M,null).on(P,t)}function p(){var e=H.of(this,arguments);y?clearTimeout(y):(Wf.call(this),v=n(m=g||fu.mouse(this)),a(e)),y=setTimeout(function(){y=null,l(e)},50),N(),i(Math.pow(2,.002*Ku())*T.k),s(m,v),f(e)}function d(){var e=fu.mouse(this),t=Math.log(T.k)/Math.LN2;o(this,e,n(e),fu.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}var v,m,g,y,b,w,E,S,x,T={x:0,y:0,k:1},C=[960,500],L=Gu,A=250,O=0,M="mousedown.zoom",_="mousemove.zoom",D="mouseup.zoom",P="touchstart.zoom",H=k(e,"zoomstart","zoom","zoomend");return Qu||(Qu="onwheel"in hu?(Ku=function(){return-fu.event.deltaY*(fu.event.deltaMode?120:1)},"wheel"):"onmousewheel"in hu?(Ku=function(){return fu.event.wheelDelta},"mousewheel"):(Ku=function(){return-fu.event.detail},"MozMousePixelScroll")),e.event=function(e){e.each(function(){var e=H.of(this,arguments),t=T;Uf?fu.select(this).transition().each("start.zoom",function(){T=this.__chart__||{x:0,y:0,k:1},a(e)}).tween("zoom:zoom",function(){var n=C[0],r=C[1],i=m?m[0]:n/2,s=m?m[1]:r/2,o=fu.interpolateZoom([(i-T.x)/T.k,(s-T.y)/T.k,n/T.k],[(i-t.x)/t.k,(s-t.y)/t.k,n/t.k]);return function(t){var r=o(t),u=n/r[2];this.__chart__=T={x:i-r[0]*u,y:s-r[1]*u,k:u},f(e)}}).each("interrupt.zoom",function(){l(e)}).each("end.zoom",function(){l(e)}):(this.__chart__=T,a(e),f(e),l(e))})},e.translate=function(t){return arguments.length?(T={x:+t[0],y:+t[1],k:T.k},u(),e):[T.x,T.y]},e.scale=function(t){return arguments.length?(T={x:T.x,y:T.y,k:null},i(+t),u(),e):T.k},e.scaleExtent=function(t){return arguments.length?(L=null==t?Gu:[+t[0],+t[1]],e):L},e.center=function(t){return arguments.length?(g=t&&[+t[0],+t[1]],e):g},e.size=function(t){return arguments.length?(C=t&&[+t[0],+t[1]],e):C},e.duration=function(t){return arguments.length?(A=+t,e):A},e.x=function(t){return arguments.length?(E=t,w=t.copy(),T={x:0,y:0,k:1},e):E},e.y=function(t){return arguments.length?(x=t,S=t.copy(),T={x:0,y:0,k:1},e):x},fu.rebind(e,H,"on")};var Ku,Qu,Gu=[0,1/0];fu.color=ut,ut.prototype.toString=function(){return this.rgb()+""},fu.hsl=at;var Yu=at.prototype=new ut;Yu.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new at(this.h,this.s,this.l/e)},Yu.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new at(this.h,this.s,e*this.l)},Yu.rgb=function(){return ft(this.h,this.s,this.l)},fu.hcl=lt;var Zu=lt.prototype=new ut;Zu.brighter=function(e){return new lt(this.h,this.c,Math.min(100,this.l+ea*(arguments.length?e:1)))},Zu.darker=function(e){return new lt(this.h,this.c,Math.max(0,this.l-ea*(arguments.length?e:1)))},Zu.rgb=function(){return ct(this.h,this.c,this.l).rgb()},fu.lab=ht;var ea=18,ta=.95047,na=1,ra=1.08883,ia=ht.prototype=new ut;ia.brighter=function(e){return new ht(Math.min(100,this.l+ea*(arguments.length?e:1)),this.a,this.b)},ia.darker=function(e){return new ht(Math.max(0,this.l-ea*(arguments.length?e:1)),this.a,this.b)},ia.rgb=function(){return pt(this.l,this.a,this.b)},fu.rgb=yt;var sa=yt.prototype=new ut;sa.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,i=30;return t||n||r?(t&&i>t&&(t=i),n&&i>n&&(n=i),r&&i>r&&(r=i),new yt(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new yt(i,i,i)},sa.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new yt(e*this.r,e*this.g,e*this.b)},sa.hsl=function(){return xt(this.r,this.g,this.b)},sa.toString=function(){return"#"+Et(this.r)+Et(this.g)+Et(this.b)};var oa=fu.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});oa.forEach(function(e,t){oa.set(e,bt(t))}),fu.functor=kt,fu.xhr=Lt(b),fu.dsv=function(e,t){function n(e,n,s){arguments.length<3&&(s=n,n=null);var o=At(e,t,null==n?r:i(n),s);return o.row=function(e){return arguments.length?o.response(null==(n=e)?r:i(e)):n},o}function r(e){return n.parse(e.responseText)}function i(e){return function(t){return n.parse(t.responseText,e)}}function s(t){return t.map(o).join(e)}function o(e){return u.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}var u=new RegExp('["'+e+"\n]"),a=e.charCodeAt(0);return n.parse=function(e,t){var r;return n.parseRows(e,function(e,n){if(r)return r(e,n-1);var i=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");r=t?function(e,n){return t(i(e),n)}:i})},n.parseRows=function(e,t){function n(){if(l>=f)return o;if(i)return i=!1,s;var t=l;if(34===e.charCodeAt(t)){for(var n=t;n++<f;)if(34===e.charCodeAt(n)){if(34!==e.charCodeAt(n+1))break;++n}l=n+2;var r=e.charCodeAt(n+1);return 13===r?(i=!0,10===e.charCodeAt(n+2)&&++l):10===r&&(i=!0),e.slice(t+1,n).replace(/""/g,'"')}for(;f>l;){var r=e.charCodeAt(l++),u=1;if(10===r)i=!0;else if(13===r)i=!0,10===e.charCodeAt(l)&&(++l,++u);else if(r!==a)continue;return e.slice(t,l-u)}return e.slice(t)}for(var r,i,s={},o={},u=[],f=e.length,l=0,c=0;(r=n())!==o;){for(var h=[];r!==s&&r!==o;)h.push(r),r=n();t&&null==(h=t(h,c++))||u.push(h)}return u},n.format=function(t){if(Array.isArray(t[0]))return n.formatRows(t);var r=new y,i=[];return t.forEach(function(e){for(var t in e)r.has(t)||i.push(r.add(t))}),[i.map(o).join(e)].concat(t.map(function(t){return i.map(function(e){return o(t[e])}).join(e)})).join("\n")},n.formatRows=function(e){return e.map(s).join("\n")},n},fu.csv=fu.dsv(",","text/csv"),fu.tsv=fu.dsv(" ","text/tab-separated-values");var ua,aa,fa,la,ca=this[E(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};fu.timer=function(){_t.apply(this,arguments)},fu.timer.flush=function(){Pt(),Ht()},fu.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var ha=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(jt);fu.formatPrefix=function(e,t){var n=0;return(e=+e)&&(0>e&&(e*=-1),t&&(e=fu.round(e,Bt(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),ha[8+n/3]};var pa=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,da=fu.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=fu.round(e,Bt(e,t))).toFixed(Math.max(0,Math.min(20,Bt(e*(1+1e-15),t))))}}),va=fu.time={},ma=Date;qt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){ga.setUTCDate.apply(this._,arguments)},setDay:function(){ga.setUTCDay.apply(this._,arguments)},setFullYear:function(){ga.setUTCFullYear.apply(this._,arguments)},setHours:function(){ga.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ga.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ga.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ga.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ga.setUTCSeconds.apply(this._,arguments)},setTime:function(){ga.setTime.apply(this._,arguments)}};var ga=Date.prototype;va.year=Rt(function(e){return e=va.day(e),e.setMonth(0,1),e},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e){return e.getFullYear()}),va.years=va.year.range,va.years.utc=va.year.utc.range,va.day=Rt(function(e){var t=new ma(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},function(e,t){e.setDate(e.getDate()+t)},function(e){return e.getDate()-1}),va.days=va.day.range,va.days.utc=va.day.utc.range,va.dayOfYear=function(e){var t=va.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(e,t){t=7-t;var n=va[e]=Rt(function(e){return(e=va.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e},function(e,t){e.setDate(e.getDate()+7*Math.floor(t))},function(e){var n=va.year(e).getDay();return Math.floor((va.dayOfYear(e)+(n+t)%7)/7)-(n!==t)});va[e+"s"]=n.range,va[e+"s"].utc=n.utc.range,va[e+"OfYear"]=function(e){var n=va.year(e).getDay();return Math.floor((va.dayOfYear(e)+(n+t)%7)/7)}}),va.week=va.sunday,va.weeks=va.sunday.range,va.weeks.utc=va.sunday.utc.range,va.weekOfYear=va.sundayOfYear;var ya={"-":"",_:" ",0:"0"},ba=/^\s*\d+/,wa=/^%/;fu.locale=function(e){return{numberFormat:Ft(e),timeFormat:zt(e)}};var Ea=fu.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});fu.format=Ea.numberFormat,fu.geo={},cn.prototype={s:0,t:0,add:function(e){hn(e,this.t,Sa),hn(Sa.s,this.s,this),this.s?this.t+=Sa.t:this.s=Sa.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Sa=new cn;fu.geo.stream=function(e,t){e&&xa.hasOwnProperty(e.type)?xa[e.type](e,t):pn(e,t)};var xa={Feature:function(e,t){pn(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)pn(n[r].geometry,t)}},Ta={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){dn(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)dn(n[r],t,0)},Polygon:function(e,t){vn(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)vn(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)pn(n[r],t)}};fu.geo.area=function(e){return Na=0,fu.geo.stream(e,ka),Na};var Na,Ca=new cn,ka={sphere:function(){Na+=4*qu},point:S,lineStart:S,lineEnd:S,polygonStart:function(){Ca.reset(),ka.lineStart=mn},polygonEnd:function(){var e=2*Ca;Na+=0>e?4*qu+e:e,ka.lineStart=ka.lineEnd=ka.point=S}};fu.geo.bounds=function(){function e(e,t){b.push(w=[l=e,h=e]),c>t&&(c=t),t>p&&(p=t)}function t(t,n){var r=gn([t*Wu,n*Wu]);if(g){var i=bn(g,r),s=[i[1],-i[0],0],o=bn(s,i);Sn(o),o=xn(o);var a=t-d,f=a>0?1:-1,v=o[0]*Xu*f,m=Eu(a)>180;if(m^(v>f*d&&f*t>v)){var y=o[1]*Xu;y>p&&(p=y)}else if(v=(v+360)%360-180,m^(v>f*d&&f*t>v)){var y=-o[1]*Xu;c>y&&(c=y)}else c>n&&(c=n),n>p&&(p=n);m?d>t?u(l,t)>u(l,h)&&(h=t):u(t,h)>u(l,h)&&(l=t):h>=l?(l>t&&(l=t),t>h&&(h=t)):t>d?u(l,t)>u(l,h)&&(h=t):u(t,h)>u(l,h)&&(l=t)}else e(t,n);g=r,d=t}function n(){E.point=t}function r(){w[0]=l,w[1]=h,E.point=e,g=null}function i(e,n){if(g){var r=e-d;y+=Eu(r)>180?r+(r>0?360:-360):r}else v=e,m=n;ka.point(e,n),t(e,n)}function s(){ka.lineStart()}function o(){i(v,m),ka.lineEnd(),Eu(y)>Fu&&(l=-(h=180)),w[0]=l,w[1]=h,g=null}function u(e,t){return(t-=e)<0?t+360:t}function a(e,t){return e[0]-t[0]}function f(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var l,c,h,p,d,v,m,g,y,b,w,E={point:e,lineStart:n,lineEnd:r,polygonStart:function(){E.point=i,E.lineStart=s,E.lineEnd=o,y=0,ka.polygonStart()},polygonEnd:function(){ka.polygonEnd(),E.point=e,E.lineStart=n,E.lineEnd=r,0>Ca?(l=-(h=180),c=-(p=90)):y>Fu?p=90:-Fu>y&&(c=-90),w[0]=l,w[1]=h}};return function(e){p=h=-(l=c=1/0),b=[],fu.geo.stream(e,E);var t=b.length;if(t){b.sort(a);for(var n,r=1,i=b[0],s=[i];t>r;++r)n=b[r],f(n[0],i)||f(n[1],i)?(u(i[0],n[1])>u(i[0],i[1])&&(i[1]=n[1]),u(n[0],i[1])>u(i[0],i[1])&&(i[0]=n[0])):s.push(i=n);for(var o,n,d=-1/0,t=s.length-1,r=0,i=s[t];t>=r;i=n,++r)n=s[r],(o=u(i[1],n[0]))>d&&(d=o,l=n[0],h=i[1])}return b=w=null,l===1/0||c===1/0?[[NaN,NaN],[NaN,NaN]]:[[l,c],[h,p]]}}(),fu.geo.centroid=function(e){La=Aa=Oa=Ma=_a=Da=Pa=Ha=Ba=ja=Fa=0,fu.geo.stream(e,Ia);var t=Ba,n=ja,r=Fa,i=t*t+n*n+r*r;return Iu>i&&(t=Da,n=Pa,r=Ha,Fu>Aa&&(t=Oa,n=Ma,r=_a),i=t*t+n*n+r*r,Iu>i)?[NaN,NaN]:[Math.atan2(n,t)*Xu,nt(r/Math.sqrt(i))*Xu]};var La,Aa,Oa,Ma,_a,Da,Pa,Ha,Ba,ja,Fa,Ia={sphere:S,point:Nn,lineStart:kn,lineEnd:Ln,polygonStart:function(){Ia.lineStart=An},polygonEnd:function(){Ia.lineStart=kn}},qa=Hn(Mn,In,Rn,[-qu,-qu/2]),Ra=1e9;fu.geo.clipExtent=function(){var e,t,n,r,i,s,o={stream:function(e){return i&&(i.valid=!1),i=s(e),i.valid=!0,i},extent:function(u){return arguments.length?(s=Xn(e=+u[0][0],t=+u[0][1],n=+u[1][0],r=+u[1][1]),i&&(i.valid=!1,i=null),o):[[e,t],[n,r]]}};return o.extent([[0,0],[960,500]])},(fu.geo.conicEqualArea=function(){return Vn($n)}).raw=$n,fu.geo.albers=function(){return fu.geo.conicEqualArea().rotate([96,0]).center([-0.6,38.7]).parallels([29.5,45.5]).scale(1070)},fu.geo.albersUsa=function(){function e(e){var s=e[0],o=e[1];return t=null,n(s,o),t||(r(s,o),t)||i(s,o),t}var t,n,r,i,s=fu.geo.albers(),o=fu.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=fu.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),a={point:function(e,n){t=[e,n]}};return e.invert=function(e){var t=s.scale(),n=s.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&.234>i&&r>=-0.425&&-0.214>r?o:i>=.166&&.234>i&&r>=-0.214&&-0.115>r?u:s).invert(e)},e.stream=function(e){var t=s.stream(e),n=o.stream(e),r=u.stream(e);return{point:function(e,i){t.point(e,i),n.point(e,i),r.point(e,i)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},e.precision=function(t){return arguments.length?(s.precision(t),o.precision(t),u.precision(t),e):s.precision()},e.scale=function(t){return arguments.length?(s.scale(t),o.scale(.35*t),u.scale(t),e.translate(s.translate())):s.scale()},e.translate=function(t){if(!arguments.length)return s.translate();var f=s.scale(),l=+t[0],c=+t[1];return n=s.translate(t).clipExtent([[l-.455*f,c-.238*f],[l+.455*f,c+.238*f]]).stream(a).point,r=o.translate([l-.307*f,c+.201*f]).clipExtent([[l-.425*f+Fu,c+.12*f+Fu],[l-.214*f-Fu,c+.234*f-Fu]]).stream(a).point,i=u.translate([l-.205*f,c+.212*f]).clipExtent([[l-.214*f+Fu,c+.166*f+Fu],[l-.115*f-Fu,c+.234*f-Fu]]).stream(a).point,e},e.scale(1070)};var Ua,za,Wa,Xa,Va,$a,Ja={point:S,lineStart:S,lineEnd:S,polygonStart:function(){za=0,Ja.lineStart=Jn},polygonEnd:function(){Ja.lineStart=Ja.lineEnd=Ja.point=S,Ua+=Eu(za/2)}},Ka={point:Kn,lineStart:S,lineEnd:S,polygonStart:S,polygonEnd:S},Qa={point:Yn,lineStart:Zn,lineEnd:er,polygonStart:function(){Qa.lineStart=tr},polygonEnd:function(){Qa.point=Yn,Qa.lineStart=Zn,Qa.lineEnd=er}};fu.geo.path=function(){function e(e){return e&&("function"==typeof u&&s.pointRadius(+u.apply(this,arguments)),o&&o.valid||(o=i(s)),fu.geo.stream(e,o)),s.result()}function t(){return o=null,e}var n,r,i,s,o,u=4.5;return e.area=function(e){return Ua=0,fu.geo.stream(e,i(Ja)),Ua},e.centroid=function(e){return Oa=Ma=_a=Da=Pa=Ha=Ba=ja=Fa=0,fu.geo.stream(e,i(Qa)),Fa?[Ba/Fa,ja/Fa]:Ha?[Da/Ha,Pa/Ha]:_a?[Oa/_a,Ma/_a]:[NaN,NaN]},e.bounds=function(e){return Va=$a=-(Wa=Xa=1/0),fu.geo.stream(e,i(Ka)),[[Wa,Xa],[Va,$a]]},e.projection=function(e){return arguments.length?(i=(n=e)?e.stream||ir(e):b,t()):n},e.context=function(e){return arguments.length?(s=null==(r=e)?new Qn:new nr(e),"function"!=typeof u&&s.pointRadius(u),t()):r},e.pointRadius=function(t){return arguments.length?(u="function"==typeof t?t:(s.pointRadius(+t),+t),e):u},e.projection(fu.geo.albersUsa()).context(null)},fu.geo.transform=function(e){return{stream:function(t){var n=new sr(t);for(var r in e)n[r]=e[r];return n}}},sr.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},fu.geo.projection=ur,fu.geo.projectionMutator=ar,(fu.geo.equirectangular=function(){return ur(lr)}).raw=lr.invert=lr,fu.geo.rotation=function(e){function t(t){return t=e(t[0]*Wu,t[1]*Wu),t[0]*=Xu,t[1]*=Xu,t}return e=hr(e[0]%360*Wu,e[1]*Wu,e.length>2?e[2]*Wu:0),t.invert=function(t){return t=e.invert(t[0]*Wu,t[1]*Wu),t[0]*=Xu,t[1]*=Xu,t},t},cr.invert=lr,fu.geo.circle=function(){function e(){var e="function"==typeof r?r.apply(this,arguments):r,t=hr(-e[0]*Wu,-e[1]*Wu,0).invert,i=[];return n(null,null,1,{point:function(e,n){i.push(e=t(e,n)),e[0]*=Xu,e[1]*=Xu}}),{type:"Polygon",coordinates:[i]}}var t,n,r=[0,0],i=6;return e.origin=function(t){return arguments.length?(r=t,e):r},e.angle=function(r){return arguments.length?(n=mr((t=+r)*Wu,i*Wu),e):t},e.precision=function(r){return arguments.length?(n=mr(t*Wu,(i=+r)*Wu),e):i},e.angle(90)},fu.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Wu,i=e[1]*Wu,s=t[1]*Wu,o=Math.sin(r),u=Math.cos(r),a=Math.sin(i),f=Math.cos(i),l=Math.sin(s),c=Math.cos(s);return Math.atan2(Math.sqrt((n=c*o)*n+(n=f*l-a*c*u)*n),a*l+f*c*u)},fu.geo.graticule=function(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return fu.range(Math.ceil(s/m)*m,i,m).map(h).concat(fu.range(Math.ceil(f/g)*g,a,g).map(p)).concat(fu.range(Math.ceil(r/d)*d,n,d).filter(function(e){return Eu(e%m)>Fu}).map(l)).concat(fu.range(Math.ceil(u/v)*v,o,v).filter(function(e){return Eu(e%g)>Fu}).map(c))}var n,r,i,s,o,u,a,f,l,c,h,p,d=10,v=d,m=90,g=360,y=2.5;return e.lines=function(){return t().map(function(e){return{type:"LineString",coordinates:e}})},e.outline=function(){return{type:"Polygon",coordinates:[h(s).concat(p(a).slice(1),h(i).reverse().slice(1),p(f).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(s=+t[0][0],i=+t[1][0],f=+t[0][1],a=+t[1][1],s>i&&(t=s,s=i,i=t),f>a&&(t=f,f=a,a=t),e.precision(y)):[[s,f],[i,a]]},e.minorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],u=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),u>o&&(t=u,u=o,o=t),e.precision(y)):[[r,u],[n,o]]},e.step=function(t){return arguments.length?e.majorStep(t).minorStep(t):e.minorStep()},e.majorStep=function(t){return arguments.length?(m=+t[0],g=+t[1],e):[m,g]},e.minorStep=function(t){return arguments.length?(d=+t[0],v=+t[1],e):[d,v]},e.precision=function(t){return arguments.length?(y=+t,l=yr(u,o,90),c=br(r,n,y),h=yr(f,a,90),p=br(s,i,y),e):y},e.majorExtent([[-180,-90+Fu],[180,90-Fu]]).minorExtent([[-180,-80-Fu],[180,80+Fu]])},fu.geo.greatArc=function(){function e(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),n||i.apply(this,arguments)]}}var t,n,r=wr,i=Er;return e.distance=function(){return fu.geo.distance(t||r.apply(this,arguments),n||i.apply(this,arguments))},e.source=function(n){return arguments.length?(r=n,t="function"==typeof n?null:n,e):r},e.target=function(t){return arguments.length?(i=t,n="function"==typeof t?null:t,e):i},e.precision=function(){return arguments.length?e:0},e},fu.geo.interpolate=function(e,t){return Sr(e[0]*Wu,e[1]*Wu,t[0]*Wu,t[1]*Wu)},fu.geo.length=function(e){return Ga=0,fu.geo.stream(e,Ya),Ga};var Ga,Ya={sphere:S,point:S,lineStart:xr,lineEnd:S,polygonStart:S,polygonEnd:S},Za=Tr(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(fu.geo.azimuthalEqualArea=function(){return ur(Za)}).raw=Za;var ef=Tr(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},b);(fu.geo.azimuthalEquidistant=function(){return ur(ef)}).raw=ef,(fu.geo.conicConformal=function(){return Vn(Nr)}).raw=Nr,(fu.geo.conicEquidistant=function(){return Vn(Cr)}).raw=Cr;var tf=Tr(function(e){return 1/e},Math.atan);(fu.geo.gnomonic=function(){return ur(tf)}).raw=tf,kr.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-zu]},(fu.geo.mercator=function(){return Lr(kr)}).raw=kr;var nf=Tr(function(){return 1},Math.asin);(fu.geo.orthographic=function(){return ur(nf)}).raw=nf;var rf=Tr(function(e){return 1/(1+e)},function(e){return 2*Math.atan(e)});(fu.geo.stereographic=function(){return ur(rf)}).raw=rf,Ar.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-zu]},(fu.geo.transverseMercator=function(){var e=Lr(Ar),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90])}).raw=Ar,fu.geom={},fu.geom.hull=function(e){function t(e){if(e.length<3)return[];var t,i=kt(n),s=kt(r),o=e.length,u=[],a=[];for(t=0;o>t;t++)u.push([+i.call(this,e[t],t),+s.call(this,e[t],t),t]);for(u.sort(Dr),t=0;o>t;t++)a.push([u[t][0],-u[t][1]]);var f=_r(u),l=_r(a),c=l[0]===f[0],h=l[l.length-1]===f[f.length-1],p=[];for(t=f.length-1;t>=0;--t)p.push(e[u[f[t]][2]]);for(t=+c;t<l.length-h;++t)p.push(e[u[l[t]][2]]);return p}var n=Or,r=Mr;return arguments.length?t(e):(t.x=function(e){return arguments.length?(n=e,t):n},t.y=function(e){return arguments.length?(r=e,t):r},t)},fu.geom.polygon=function(e){return Cu(e,sf),e};var sf=fu.geom.polygon.prototype=[];sf.area=function(){for(var e,t=-1,n=this.length,r=this[n-1],i=0;++t<n;)e=r,r=this[t],i+=e[1]*r[0]-e[0]*r[1];return.5*i},sf.centroid=function(e){var t,n,r=-1,i=this.length,s=0,o=0,u=this[i-1];for(arguments.length||(e=-1/(6*this.area()));++r<i;)t=u,u=this[r],n=t[0]*u[1]-u[0]*t[1],s+=(t[0]+u[0])*n,o+=(t[1]+u[1])*n;return[s*e,o*e]},sf.clip=function(e){for(var t,n,r,i,s,o,u=Br(e),a=-1,f=this.length-Br(this),l=this[f-1];++a<f;){for(t=e.slice(),e.length=0,i=this[a],s=t[(r=t.length-u)-1],n=-1;++n<r;)o=t[n],Pr(o,l,i)?(Pr(s,l,i)||e.push(Hr(s,o,l,i)),e.push(o)):Pr(s,l,i)&&e.push(Hr(s,o,l,i)),s=o;u&&e.push(e[0]),l=i}return e};var of,uf,af,ff,lf,cf=[],hf=[];Wr.prototype.prepare=function(){for(var e,t=this.edges,n=t.length;n--;)e=t[n].edge,e.b&&e.a||t.splice(n,1);return t.sort(Vr),t.length},ni.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},ri.prototype={insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=ui(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(si(this,n),e=n,n=e.U),n.C=!1,r.C=!0,oi(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(oi(this,n),e=n,n=e.U),n.C=!1,r.C=!0,si(this,r))),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,s=e.L,o=e.R;if(n=s?o?ui(o):s:o,i?i.L===e?i.L=n:i.R=n:this._=n,s&&o?(r=n.C,n.C=e.C,n.L=s,s.U=n,n!==o?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=o,o.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r){if(e&&e.C)return void (e.C=!1);do{if(e===this._)break;if(e===i.L){if(t=i.R,t.C&&(t.C=!1,i.C=!0,si(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,oi(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,si(this,i),e=this._;break}}else if(t=i.L,t.C&&(t.C=!1,i.C=!0,oi(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,si(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,oi(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}},fu.geom.voronoi=function(e){function t(e){var t=new Array(e.length),r=u[0][0],i=u[0][1],s=u[1][0],o=u[1][1];return ai(n(e),u).cells.forEach(function(n,u){var a=n.edges,f=n.site,l=t[u]=a.length?a.map(function(e){var t=e.start();return[t.x,t.y]}):f.x>=r&&f.x<=s&&f.y>=i&&f.y<=o?[[r,o],[s,o],[s,i],[r,i]]:[];l.point=e[u]}),t}function n(e){return e.map(function(e,t){return{x:Math.round(s(e,t)/Fu)*Fu,y:Math.round(o(e,t)/Fu)*Fu,i:t}})}var r=Or,i=Mr,s=r,o=i,u=pf;return e?t(e):(t.links=function(e){return ai(n(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},t.triangles=function(e){var t=[];return ai(n(e)).cells.forEach(function(n,r){for(var i,s,o=n.site,u=n.edges.sort(Vr),a=-1,f=u.length,l=u[f-1].edge,c=l.l===o?l.r:l.l;++a<f;)i=l,s=c,l=u[a].edge,c=l.l===o?l.r:l.l,r<s.i&&r<c.i&&li(o,s,c)<0&&t.push([e[r],e[s.i],e[c.i]])}),t},t.x=function(e){return arguments.length?(s=kt(r=e),t):r},t.y=function(e){return arguments.length?(o=kt(i=e),t):i},t.clipExtent=function(e){return arguments.length?(u=null==e?pf:e,t):u===pf?null:u},t.size=function(e){return arguments.length?t.clipExtent(e&&[[0,0],e]):u===pf?null:u&&u[1]},t)};var pf=[[-1e6,-1e6],[1e6,1e6]];fu.geom.delaunay=function(e){return fu.geom.voronoi().triangles(e)},fu.geom.quadtree=function(e,t,n,r,i){function s(e){function s(e,t,n,r,i,s,o,u){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var a=e.x,l=e.y;if(null!=a)if(Eu(a-n)+Eu(l-r)<.01)f(e,t,n,r,i,s,o,u);else{var c=e.point;e.x=e.y=e.point=null,f(e,c,a,l,i,s,o,u),f(e,t,n,r,i,s,o,u)}else e.x=n,e.y=r,e.point=t}else f(e,t,n,r,i,s,o,u)}function f(e,t,n,r,i,o,u,a){var f=.5*(i+u),l=.5*(o+a),c=n>=f,h=r>=l,p=h<<1|c;e.leaf=!1,e=e.nodes[p]||(e.nodes[p]=pi()),c?i=f:u=f,h?o=l:a=l,s(e,t,n,r,i,o,u,a)}var l,c,h,p,d,v,m,g,y,b=kt(u),w=kt(a);if(null!=t)v=t,m=n,g=r,y=i;else if(g=y=-(v=m=1/0),c=[],h=[],d=e.length,o)for(p=0;d>p;++p)l=e[p],l.x<v&&(v=l.x),l.y<m&&(m=l.y),l.x>g&&(g=l.x),l.y>y&&(y=l.y),c.push(l.x),h.push(l.y);else for(p=0;d>p;++p){var E=+b(l=e[p],p),S=+w(l,p);v>E&&(v=E),m>S&&(m=S),E>g&&(g=E),S>y&&(y=S),c.push(E),h.push(S)}var x=g-v,T=y-m;x>T?y=m+x:g=v+T;var N=pi();if(N.add=function(e){s(N,e,+b(e,++p),+w(e,p),v,m,g,y)},N.visit=function(e){di(e,N,v,m,g,y)},N.find=function(e){return vi(N,e[0],e[1],v,m,g,y)},p=-1,null==t){for(;++p<d;)s(N,e[p],c[p],h[p],v,m,g,y);--p}else e.forEach(N.add);return c=h=e=l=null,N}var o,u=Or,a=Mr;return(o=arguments.length)?(u=ci,a=hi,3===o&&(i=n,r=t,n=t=0),s(e)):(s.x=function(e){return arguments.length?(u=e,s):u},s.y=function(e){return arguments.length?(a=e,s):a},s.extent=function(e){return arguments.length?(null==e?t=n=r=i=null:(t=+e[0][0],n=+e[0][1],r=+e[1][0],i=+e[1][1]),s):null==t?null:[[t,n],[r,i]]},s.size=function(e){return arguments.length?(null==e?t=n=r=i=null:(t=n=0,r=+e[0],i=+e[1]),s):null==t?null:[r-t,i-n]},s)},fu.interpolateRgb=mi,fu.interpolateObject=gi,fu.interpolateNumber=yi,fu.interpolateString=bi;var df=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vf=new RegExp(df.source,"g");fu.interpolate=wi,fu.interpolators=[function(e,t){var n=typeof t;return("string"===n?oa.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?mi:bi:t instanceof ut?mi:Array.isArray(t)?Ei:"object"===n&&isNaN(t)?gi:yi)(e,t)}],fu.interpolateArray=Ei;var mf=function(){return b},gf=fu.map({linear:mf,poly:Li,quad:function(){return Ni},cubic:function(){return Ci},sin:function(){return Ai},exp:function(){return Oi},circle:function(){return Mi},elastic:_i,back:Di,bounce:function(){return Pi}}),yf=fu.map({"in":b,out:xi,"in-out":Ti,"out-in":function(e){return Ti(xi(e))}});fu.ease=function(e){var t=e.indexOf("-"),n=t>=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=gf.get(n)||mf,r=yf.get(r)||b,Si(r(n.apply(null,lu.call(arguments,1))))},fu.interpolateHcl=Hi,fu.interpolateHsl=Bi,fu.interpolateLab=ji,fu.interpolateRound=Fi,fu.transform=function(e){var t=hu.createElementNS(fu.ns.prefix.svg,"g");return(fu.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new Ii(n?n.matrix:bf)})(e)},Ii.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var bf={a:1,b:0,c:0,d:1,e:0,f:0};fu.interpolateTransform=Ji,fu.layout={},fu.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++n<r;)t.push(Gi(e[n]));return t}},fu.layout.chord=function(){function e(){var e,f,c,h,p,d={},v=[],m=fu.range(s),g=[];for(n=[],r=[],e=0,h=-1;++h<s;){for(f=0,p=-1;++p<s;)f+=i[h][p];v.push(f),g.push(fu.range(s)),e+=f}for(o&&m.sort(function(e,t){return o(v[e],v[t])}),u&&g.forEach(function(e,t){e.sort(function(e,n){return u(i[t][e],i[t][n])})}),e=(Ru-l*s)/e,f=0,h=-1;++h<s;){for(c=f,p=-1;++p<s;){var y=m[h],b=g[y][p],w=i[y][b],E=f,S=f+=w*e;d[y+"-"+b]={index:y,subindex:b,startAngle:E,endAngle:S,value:w}}r[y]={index:y,startAngle:c,endAngle:f,value:v[y]},f+=l}for(h=-1;++h<s;)for(p=h-1;++p<s;){var x=d[h+"-"+p],T=d[p+"-"+h];(x.value||T.value)&&n.push(x.value<T.value?{source:T,target:x}:{source:x,target:T})}a&&t()}function t(){n.sort(function(e,t){return a((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)})}var n,r,i,s,o,u,a,f={},l=0;return f.matrix=function(e){return arguments.length?(s=(i=e)&&i.length,n=r=null,f):i},f.padding=function(e){return arguments.length?(l=e,n=r=null,f):l},f.sortGroups=function(e){return arguments.length?(o=e,n=r=null,f):o},f.sortSubgroups=function(e){return arguments.length?(u=e,n=null,f):u},f.sortChords=function(e){return arguments.length?(a=e,n&&t(),f):a},f.chords=function(){return n||e(),n},f.groups=function(){return r||e(),r},f},fu.layout.force=function(){function e(e){return function(t,n,r,i){if(t.point!==e){var s=t.cx-e.x,o=t.cy-e.y,u=i-n,a=s*s+o*o;if(a>u*u/g){if(v>a){var f=t.charge/a;e.px-=s*f,e.py-=o*f}return!0}if(t.point&&a&&v>a){var f=t.pointCharge/a;e.px-=s*f,e.py-=o*f}}return!t.charge}}function t(e){e.px=fu.event.x,e.py=fu.event.y,a.resume()}var n,r,i,s,o,u,a={},f=fu.dispatch("start","tick","end"),l=[1,1],c=.9,h=wf,p=Ef,d=-30,v=Sf,m=.1,g=.64,y=[],w=[];return a.tick=function(){if((i*=.99)<.005)return n=null,f.end({type:"end",alpha:i=0}),!0;var t,r,a,h,p,v,g,b,E,S=y.length,x=w.length;for(r=0;x>r;++r)a=w[r],h=a.source,p=a.target,b=p.x-h.x,E=p.y-h.y,(v=b*b+E*E)&&(v=i*o[r]*((v=Math.sqrt(v))-s[r])/v,b*=v,E*=v,p.x-=b*(g=h.weight+p.weight?h.weight/(h.weight+p.weight):.5),p.y-=E*g,h.x+=b*(g=1-g),h.y+=E*g);if((g=i*m)&&(b=l[0]/2,E=l[1]/2,r=-1,g))for(;++r<S;)a=y[r],a.x+=(b-a.x)*g,a.y+=(E-a.y)*g;if(d)for(is(t=fu.geom.quadtree(y),i,u),r=-1;++r<S;)(a=y[r]).fixed||t.visit(e(a));for(r=-1;++r<S;)a=y[r],a.fixed?(a.x=a.px,a.y=a.py):(a.x-=(a.px-(a.px=a.x))*c,a.y-=(a.py-(a.py=a.y))*c);f.tick({type:"tick",alpha:i})},a.nodes=function(e){return arguments.length?(y=e,a):y},a.links=function(e){return arguments.length?(w=e,a):w},a.size=function(e){return arguments.length?(l=e,a):l},a.linkDistance=function(e){return arguments.length?(h="function"==typeof e?e:+e,a):h},a.distance=a.linkDistance,a.linkStrength=function(e){return arguments.length?(p="function"==typeof e?e:+e,a):p},a.friction=function(e){return arguments.length?(c=+e,a):c},a.charge=function(e){return arguments.length?(d="function"==typeof e?e:+e,a):d},a.chargeDistance=function(e){return arguments.length?(v=e*e,a):Math.sqrt(v)},a.gravity=function(e){return arguments.length?(m=+e,a):m},a.theta=function(e){return arguments.length?(g=e*e,a):Math.sqrt(g)},a.alpha=function(e){return arguments.length?(e=+e,i?e>0?i=e:(n.c=null,n.t=NaN,n=null,f.end({type:"end",alpha:i=0})):e>0&&(f.start({type:"start",alpha:i=e}),n=_t(a.tick)),a):i},a.start=function(){function e(e,r){if(!n){for(n=new Array(i),a=0;i>a;++a)n[a]=[];for(a=0;f>a;++a){var s=w[a];n[s.source.index].push(s.target),n[s.target.index].push(s.source)}}for(var o,u=n[t],a=-1,l=u.length;++a<l;)if(!isNaN(o=u[a][e]))return o;return Math.random()*r}var t,n,r,i=y.length,f=w.length,c=l[0],v=l[1];for(t=0;i>t;++t)(r=y[t]).index=t,r.weight=0;for(t=0;f>t;++t)r=w[t],"number"==typeof r.source&&(r.source=y[r.source]),"number"==typeof r.target&&(r.target=y[r.target]),++r.source.weight,++r.target.weight;for(t=0;i>t;++t)r=y[t],isNaN(r.x)&&(r.x=e("x",c)),isNaN(r.y)&&(r.y=e("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(s=[],"function"==typeof h)for(t=0;f>t;++t)s[t]=+h.call(this,w[t],t);else for(t=0;f>t;++t)s[t]=h;if(o=[],"function"==typeof p)for(t=0;f>t;++t)o[t]=+p.call(this,w[t],t);else for(t=0;f>t;++t)o[t]=p;if(u=[],"function"==typeof d)for(t=0;i>t;++t)u[t]=+d.call(this,y[t],t);else for(t=0;i>t;++t)u[t]=d;return a.resume()},a.resume=function(){return a.alpha(.1)},a.stop=function(){return a.alpha(0)},a.drag=function(){return r||(r=fu.behavior.drag().origin(b).on("dragstart.force",es).on("drag.force",t).on("dragend.force",ts)),arguments.length?void this.on("mouseover.force",ns).on("mouseout.force",rs).call(r):r},fu.rebind(a,f,"on")};var wf=20,Ef=1,Sf=1/0;fu.layout.hierarchy=function(){function e(i){var s,o=[i],u=[];for(i.depth=0;null!=(s=o.pop());)if(u.push(s),(f=n.call(e,s,s.depth))&&(a=f.length)){for(var a,f,l;--a>=0;)o.push(l=f[a]),l.parent=s,l.depth=s.depth+1;r&&(s.value=0),s.children=f}else r&&(s.value=+r.call(e,s,s.depth)||0),delete s.children;return us(i,function(e){var n,i;t&&(n=e.children)&&n.sort(t),r&&(i=e.parent)&&(i.value+=e.value)}),u}var t=ls,n=as,r=fs;return e.sort=function(n){return arguments.length?(t=n,e):t},e.children=function(t){return arguments.length?(n=t,e):n},e.value=function(t){return arguments.length?(r=t,e):r},e.revalue=function(t){return r&&(os(t,function(e){e.children&&(e.value=0)}),us(t,function(t){var n;t.children||(t.value=+r.call(e,t,t.depth)||0),(n=t.parent)&&(n.value+=t.value)})),t},e},fu.layout.partition=function(){function e(t,n,r,i){var s=t.children;if(t.x=n,t.y=t.depth*i,t.dx=r,t.dy=i,s&&(o=s.length)){var o,u,a,f=-1;for(r=t.value?r/t.value:0;++f<o;)e(u=s[f],n,a=u.value*r,i),n+=a}}function t(e){var n=e.children,r=0;if(n&&(i=n.length))for(var i,s=-1;++s<i;)r=Math.max(r,t(n[s]));return 1+r}function n(n,s){var o=r.call(this,n,s);return e(o[0],0,i[0],i[1]/t(o[0])),o}var r=fu.layout.hierarchy(),i=[1,1];return n.size=function(e){return arguments.length?(i=e,n):i},ss(n,r)},fu.layout.pie=function(){function e(o){var u,a=o.length,f=o.map(function(n,r){return+t.call(e,n,r)}),l=+("function"==typeof r?r.apply(this,arguments):r),c=("function"==typeof i?i.apply(this,arguments):i)-l,h=Math.min(Math.abs(c)/a,+("function"==typeof s?s.apply(this,arguments):s)),p=h*(0>c?-1:1),d=fu.sum(f),v=d?(c-a*p)/d:0,m=fu.range(a),g=[];return null!=n&&m.sort(n===xf?function(e,t){return f[t]-f[e]}:function(e,t){return n(o[e],o[t])}),m.forEach(function(e){g[e]={data:o[e],value:u=f[e],startAngle:l,endAngle:l+=u*v+p,padAngle:h}}),g}var t=Number,n=xf,r=0,i=Ru,s=0;return e.value=function(n){return arguments.length?(t=n,e):t},e.sort=function(t){return arguments.length?(n=t,e):n},e.startAngle=function(t){return arguments.length?(r=t,e):r},e.endAngle=function(t){return arguments.length?(i=t,e):i},e.padAngle=function(t){return arguments.length?(s=t,e):s},e};var xf={};fu.layout.stack=function(){function e(u,a){if(!(h=u.length))return u;var f=u.map(function(n,r){return t.call(e,n,r)}),l=f.map(function(t){return t.map(function(t,n){return[s.call(e,t,n),o.call(e,t,n)]})}),c=n.call(e,l,a);f=fu.permute(f,c),l=fu.permute(l,c);var h,p,d,v,m=r.call(e,l,a),g=f[0].length;for(d=0;g>d;++d)for(i.call(e,f[0][d],v=m[d],l[0][d][1]),p=1;h>p;++p)i.call(e,f[p][d],v+=l[p-1][d][1],l[p][d][1]);return u}var t=b,n=vs,r=ms,i=ds,s=hs,o=ps;return e.values=function(n){return arguments.length?(t=n,e):t},e.order=function(t){return arguments.length?(n="function"==typeof t?t:Tf.get(t)||vs,e):n},e.offset=function(t){return arguments.length?(r="function"==typeof t?t:Nf.get(t)||ms,e):r},e.x=function(t){return arguments.length?(s=t,e):s},e.y=function(t){return arguments.length?(o=t,e):o},e.out=function(t){return arguments.length?(i=t,e):i},e};var Tf=fu.map({"inside-out":function(e){var t,n,r=e.length,i=e.map(gs),s=e.map(ys),o=fu.range(r).sort(function(e,t){return i[e]-i[t]}),u=0,a=0,f=[],l=[];for(t=0;r>t;++t)n=o[t],a>u?(u+=s[n],f.push(n)):(a+=s[n],l.push(n));return l.reverse().concat(f)},reverse:function(e){return fu.range(e.length).reverse()},"default":vs}),Nf=fu.map({silhouette:function(e){var t,n,r,i=e.length,s=e[0].length,o=[],u=0,a=[];for(n=0;s>n;++n){for(t=0,r=0;i>t;t++)r+=e[t][n][1];r>u&&(u=r),o.push(r)}for(n=0;s>n;++n)a[n]=(u-o[n])/2;return a},wiggle:function(e){var t,n,r,i,s,o,u,a,f,l=e.length,c=e[0],h=c.length,p=[];for(p[0]=a=f=0,n=1;h>n;++n){for(t=0,i=0;l>t;++t)i+=e[t][n][1];for(t=0,s=0,u=c[n][0]-c[n-1][0];l>t;++t){for(r=0,o=(e[t][n][1]-e[t][n-1][1])/(2*u);t>r;++r)o+=(e[r][n][1]-e[r][n-1][1])/u;s+=o*e[t][n][1]}p[n]=a-=i?s/i*u:0,f>a&&(f=a)}for(n=0;h>n;++n)p[n]-=f;return p},expand:function(e){var t,n,r,i=e.length,s=e[0].length,o=1/i,u=[];for(n=0;s>n;++n){for(t=0,r=0;i>t;t++)r+=e[t][n][1];if(r)for(t=0;i>t;t++)e[t][n][1]/=r;else for(t=0;i>t;t++)e[t][n][1]=o}for(n=0;s>n;++n)u[n]=0;return u},zero:ms});fu.layout.histogram=function(){function e(e,s){for(var o,u,a=[],f=e.map(n,this),l=r.call(this,f,s),c=i.call(this,l,f,s),s=-1,h=f.length,p=c.length-1,d=t?1:1/h;++s<p;)o=a[s]=[],o.dx=c[s+1]-(o.x=c[s]),o.y=0;if(p>0)for(s=-1;++s<h;)u=f[s],u>=l[0]&&u<=l[1]&&(o=a[fu.bisect(c,u,1,p)-1],o.y+=d,o.push(e[s]));return a}var t=!0,n=Number,r=Ss,i=ws;return e.value=function(t){return arguments.length?(n=t,e):n},e.range=function(t){return arguments.length?(r=kt(t),e):r},e.bins=function(t){return arguments.length?(i="number"==typeof t?function(e){return Es(e,t)}:kt(t),e):i},e.frequency=function(n){return arguments.length?(t=!!n,e):t},e},fu.layout.pack=function(){function e(e,s){var o=n.call(this,e,s),u=o[0],a=i[0],f=i[1],l=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(u.x=u.y=0,us(u,function(e){e.r=+l(e.value)}),us(u,ks),r){var c=r*(t?1:Math.max(2*u.r/a,2*u.r/f))/2;us(u,function(e){e.r+=c}),us(u,ks),us(u,function(e){e.r-=c})}return Os(u,a/2,f/2,t?1:1/Math.max(2*u.r/a,2*u.r/f)),o}var t,n=fu.layout.hierarchy().sort(xs),r=0,i=[1,1];return e.size=function(t){return arguments.length?(i=t,e):i},e.radius=function(n){return arguments.length?(t=null==n||"function"==typeof n?n:+n,e):t},e.padding=function(t){return arguments.length?(r=+t,e):r},ss(e,n)},fu.layout.tree=function(){function e(e,i){var l=o.call(this,e,i),c=l[0],h=t(c);if(us(h,n),h.parent.m=-h.z,os(h,r),f)os(c,s);else{var p=c,d=c,v=c;os(c,function(e){e.x<p.x&&(p=e),e.x>d.x&&(d=e),e.depth>v.depth&&(v=e)});var m=u(p,d)/2-p.x,g=a[0]/(d.x+u(d,p)/2+m),y=a[1]/(v.depth||1);os(c,function(e){e.x=(e.x+m)*g,e.y=e.depth*y})}return l}function t(e){for(var t,n={A:null,children:[e]},r=[n];null!=(t=r.pop());)for(var i,s=t.children,o=0,u=s.length;u>o;++o)r.push((s[o]=i={_:s[o],parent:t,children:(i=s[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return n.children[0]}function n(e){var t=e.children,n=e.parent.children,r=e.i?n[e.i-1]:null;if(t.length){Bs(e);var s=(t[0].z+t[t.length-1].z)/2;r?(e.z=r.z+u(e._,r._),e.m=e.z-s):e.z=s}else r&&(e.z=r.z+u(e._,r._));e.parent.A=i(e,r,e.parent.A||n[0])}function r(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function i(e,t,n){if(t){for(var r,i=e,s=e,o=t,a=i.parent.children[0],f=i.m,l=s.m,c=o.m,h=a.m;o=Ps(o),i=Ds(i),o&&i;)a=Ds(a),s=Ps(s),s.a=e,r=o.z+c-i.z-f+u(o._,i._),r>0&&(Hs(js(o,e,n),e,r),f+=r,l+=r),c+=o.m,f+=i.m,h+=a.m,l+=s.m;o&&!Ps(s)&&(s.t=o,s.m+=c-l),i&&!Ds(a)&&(a.t=i,a.m+=f-h,n=e)}return n}function s(e){e.x*=a[0],e.y=e.depth*a[1]}var o=fu.layout.hierarchy().sort(null).value(null),u=_s,a=[1,1],f=null;return e.separation=function(t){return arguments.length?(u=t,e):u},e.size=function(t){return arguments.length?(f=null==(a=t)?s:null,e):f?null:a},e.nodeSize=function(t){return arguments.length?(f=null==(a=t)?null:s,e):f?a:null},ss(e,o)},fu.layout.cluster=function(){function e(e,s){var o,u=t.call(this,e,s),a=u[0],f=0;us(a,function(e){var t=e.children;t&&t.length?(e.x=Is(t),e.y=Fs(t)):(e.x=o?f+=n(e,o):0,e.y=0,o=e)});var l=qs(a),c=Rs(a),h=l.x-n(l,c)/2,p=c.x+n(c,l)/2;return us(a,i?function(e){e.x=(e.x-a.x)*r[0],e.y=(a.y-e.y)*r[1]}:function(e){e.x=(e.x-h)/(p-h)*r[0],e.y=(1-(a.y?e.y/a.y:1))*r[1]}),u}var t=fu.layout.hierarchy().sort(null).value(null),n=_s,r=[1,1],i=!1;return e.separation=function(t){return arguments.length?(n=t,e):n},e.size=function(t){return arguments.length?(i=null==(r=t),e):i?null:r},e.nodeSize=function(t){return arguments.length?(i=null!=(r=t),e):i?r:null},ss(e,t)},fu.layout.treemap=function(){function e(e,t){for(var n,r,i=-1,s=e.length;++i<s;)r=(n=e[i]).value*(0>t?0:t),n.area=isNaN(r)||0>=r?0:r}function t(n){var s=n.children;if(s&&s.length){var o,u,a,f=c(n),l=[],h=s.slice(),d=1/0,v="slice"===p?f.dx:"dice"===p?f.dy:"slice-dice"===p?1&n.depth?f.dy:f.dx:Math.min(f.dx,f.dy);for(e(h,f.dx*f.dy/n.value),l.area=0;(a=h.length)>0;)l.push(o=h[a-1]),l.area+=o.area,"squarify"!==p||(u=r(l,v))<=d?(h.pop(),d=u):(l.area-=l.pop().area,i(l,v,f,!1),v=Math.min(f.dx,f.dy),l.length=l.area=0,d=1/0);l.length&&(i(l,v,f,!0),l.length=l.area=0),s.forEach(t)}}function n(t){var r=t.children;if(r&&r.length){var s,o=c(t),u=r.slice(),a=[];for(e(u,o.dx*o.dy/t.value),a.area=0;s=u.pop();)a.push(s),a.area+=s.area,null!=s.z&&(i(a,s.z?o.dx:o.dy,o,!u.length),a.length=a.area=0);r.forEach(n)}}function r(e,t){for(var n,r=e.area,i=0,s=1/0,o=-1,u=e.length;++o<u;)(n=e[o].area)&&(s>n&&(s=n),n>i&&(i=n));return r*=r,t*=t,r?Math.max(t*i*d/r,r/(t*s*d)):1/0}function i(e,t,n,r){var i,s=-1,o=e.length,u=n.x,f=n.y,l=t?a(e.area/t):0;if(t==n.dx){for((r||l>n.dy)&&(l=n.dy);++s<o;)i=e[s],i.x=u,i.y=f,i.dy=l,u+=i.dx=Math.min(n.x+n.dx-u,l?a(i.area/l):0);i.z=!0,i.dx+=n.x+n.dx-u,n.y+=l,n.dy-=l}else{for((r||l>n.dx)&&(l=n.dx);++s<o;)i=e[s],i.x=u,i.y=f,i.dx=l,f+=i.dy=Math.min(n.y+n.dy-f,l?a(i.area/l):0);i.z=!1,i.dy+=n.y+n.dy-f,n.x+=l,n.dx-=l}}function s(r){var i=o||u(r),s=i[0];return s.x=s.y=0,s.value?(s.dx=f[0],s.dy=f[1]):s.dx=s.dy=0,o&&u.revalue(s),e([s],s.dx*s.dy/s.value),(o?n:t)(s),h&&(o=i),i}var o,u=fu.layout.hierarchy(),a=Math.round,f=[1,1],l=null,c=Us,h=!1,p="squarify",d=.5*(1+Math.sqrt(5));return s.size=function(e){return arguments.length?(f=e,s):f},s.padding=function(e){function t(t){var n=e.call(s,t,t.depth);return null==n?Us(t):zs(t,"number"==typeof n?[n,n,n,n]:n)}function n(t){return zs(t,e)}if(!arguments.length)return l;var r;return c=null==(l=e)?Us:"function"==(r=typeof e)?t:"number"===r?(e=[e,e,e,e],n):n,s},s.round=function(e){return arguments.length?(a=e?Math.round:Number,s):a!=Number},s.sticky=function(e){return arguments.length?(h=e,o=null,s):h},s.ratio=function(e){return arguments.length?(d=e,s):d},s.mode=function(e){return arguments.length?(p=e+"",s):p},ss(s,u)},fu.random={normal:function(e,t){var n=arguments.length;return 2>n&&(t=1),1>n&&(e=0),function(){var n,r,i;do n=2*Math.random()-1,r=2*Math.random()-1,i=n*n+r*r;while(!i||i>1);return e+t*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=fu.random.normal.apply(fu,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=fu.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;e>n;n++)t+=Math.random();return t}}},fu.scale={};var Cf={floor:b,ceil:b};fu.scale.linear=function(){return Qs([0,1],[0,1],wi,!1)};var kf={s:1,g:1,p:1,r:1,e:1};fu.scale.log=function(){return io(fu.scale.linear().domain([0,1]),10,!0,[1,10])};var Lf=fu.format(".0e"),Af={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};fu.scale.pow=function(){return so(fu.scale.linear(),1,[0,1])},fu.scale.sqrt=function(){return fu.scale.pow().exponent(.5)},fu.scale.ordinal=function(){return uo([],{t:"range",a:[[]]})},fu.scale.category10=function(){return fu.scale.ordinal().range(Of)},fu.scale.category20=function(){return fu.scale.ordinal().range(Mf)},fu.scale.category20b=function(){return fu.scale.ordinal().range(_f)},fu.scale.category20c=function(){return fu.scale.ordinal().range(Df)};var Of=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(wt),Mf=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(wt),_f=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(wt),Df=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(wt);fu.scale.quantile=function(){return ao([],[])},fu.scale.quantize=function(){return fo(0,1,[0,1])},fu.scale.threshold=function(){return lo([.5],[0,1])},fu.scale.identity=function(){return co([0,1])},fu.svg={},fu.svg.arc=function(){function e(){var e=Math.max(0,+n.apply(this,arguments)),f=Math.max(0,+r.apply(this,arguments)),l=o.apply(this,arguments)-zu,c=u.apply(this,arguments)-zu,h=Math.abs(c-l),p=l>c?0:1;if(e>f&&(d=f,f=e,e=d),h>=Uu)return t(f,p)+(e?t(e,1-p):"")+"Z";var d,v,m,g,y,b,w,E,S,x,T,N,C=0,k=0,L=[];if((g=(+a.apply(this,arguments)||0)/2)&&(m=s===Pf?Math.sqrt(e*e+f*f):+s.apply(this,arguments),p||(k*=-1),f&&(k=nt(m/f*Math.sin(g))),e&&(C=nt(m/e*Math.sin(g)))),f){y=f*Math.cos(l+k),b=f*Math.sin(l+k),w=f*Math.cos(c-k),E=f*Math.sin(c-k);var A=Math.abs(c-l-2*k)<=qu?0:1;if(k&&bo(y,b,w,E)===p^A){var O=(l+c)/2;y=f*Math.cos(O),b=f*Math.sin(O),w=E=null}}else y=b=0;if(e){S=e*Math.cos(c-C),x=e*Math.sin(c-C),T=e*Math.cos(l+C),N=e*Math.sin(l+C);var M=Math.abs(l-c+2*C)<=qu?0:1;if(C&&bo(S,x,T,N)===1-p^M){var _=(l+c)/2;S=e*Math.cos(_),x=e*Math.sin(_),T=N=null}}else S=x=0;if(h>Fu&&(d=Math.min(Math.abs(f-e)/2,+i.apply(this,arguments)))>.001){v=f>e^p?0:1;var D=d,P=d;if(qu>h){var H=null==T?[S,x]:null==w?[y,b]:Hr([y,b],[T,N],[w,E],[S,x]),B=y-H[0],j=b-H[1],F=w-H[0],I=E-H[1],q=1/Math.sin(Math.acos((B*F+j*I)/(Math.sqrt(B*B+j*j)*Math.sqrt(F*F+I*I)))/2),R=Math.sqrt(H[0]*H[0]+H[1]*H[1]);P=Math.min(d,(e-R)/(q-1)),D=Math.min(d,(f-R)/(q+1))}if(null!=w){var U=wo(null==T?[S,x]:[T,N],[y,b],f,D,p),z=wo([w,E],[S,x],f,D,p);d===D?L.push("M",U[0],"A",D,",",D," 0 0,",v," ",U[1],"A",f,",",f," 0 ",1-p^bo(U[1][0],U[1][1],z[1][0],z[1][1]),",",p," ",z[1],"A",D,",",D," 0 0,",v," ",z[0]):L.push("M",U[0],"A",D,",",D," 0 1,",v," ",z[0])}else L.push("M",y,",",b);if(null!=T){var W=wo([y,b],[T,N],e,-P,p),X=wo([S,x],null==w?[y,b]:[w,E],e,-P,p);d===P?L.push("L",X[0],"A",P,",",P," 0 0,",v," ",X[1],"A",e,",",e," 0 ",p^bo(X[1][0],X[1][1],W[1][0],W[1][1]),",",1-p," ",W[1],"A",P,",",P," 0 0,",v," ",W[0]):L.push("L",X[0],"A",P,",",P," 0 0,",v," ",W[0])}else L.push("L",S,",",x)}else L.push("M",y,",",b),null!=w&&L.push("A",f,",",f," 0 ",A,",",p," ",w,",",E),L.push("L",S,",",x),null!=T&&L.push("A",e,",",e," 0 ",M,",",1-p," ",T,",",N);return L.push("Z"),L.join("")}function t(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+ -e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}var n=po,r=vo,i=ho,s=Pf,o=mo,u=go,a=yo;return e.innerRadius=function(t){return arguments.length?(n=kt(t),e):n},e.outerRadius=function(t){return arguments.length?(r=kt(t),e):r},e.cornerRadius=function(t){return arguments.length?(i=kt(t),e):i},e.padRadius=function(t){return arguments.length?(s=t==Pf?Pf:kt(t),e):s},e.startAngle=function(t){return arguments.length?(o=kt(t),e):o},e.endAngle=function(t){return arguments.length?(u=kt(t),e):u},e.padAngle=function(t){return arguments.length?(a=kt(t),e):a},e.centroid=function(){var e=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+o.apply(this,arguments)+ +u.apply(this,arguments))/2-zu;return[Math.cos(t)*e,Math.sin(t)*e]},e};var Pf="auto";fu.svg.line=function(){return Eo(b)};var Hf=fu.map({linear:So,"linear-closed":xo,step:To,"step-before":No,"step-after":Co,basis:_o,"basis-open":Do,"basis-closed":Po,bundle:Ho,cardinal:Ao,"cardinal-open":ko,"cardinal-closed":Lo,monotone:Ro});Hf.forEach(function(e,t){t.key=e,t.closed=/-closed$/.test(e)});var Bf=[0,2/3,1/3,0],jf=[0,1/3,2/3,0],Ff=[0,1/6,2/3,1/6];fu.svg.line.radial=function(){var e=Eo(Uo);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},No.reverse=Co,Co.reverse=No,fu.svg.area=function(){return zo(b)},fu.svg.area.radial=function(){var e=zo(Uo);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},fu.svg.chord=function(){function e(e,u){var a=t(this,s,e,u),f=t(this,o,e,u);return"M"+a.p0+r(a.r,a.p1,a.a1-a.a0)+(n(a,f)?i(a.r,a.p1,a.r,a.p0):i(a.r,a.p1,f.r,f.p0)+r(f.r,f.p1,f.a1-f.a0)+i(f.r,f.p1,a.r,a.p0))+"Z"}function t(e,t,n,r){var i=t.call(e,n,r),s=u.call(e,i,r),o=a.call(e,i,r)-zu,l=f.call(e,i,r)-zu;return{r:s,a0:o,a1:l,p0:[s*Math.cos(o),s*Math.sin(o)],p1:[s*Math.cos(l),s*Math.sin(l)]}}function n(e,t){return e.a0==t.a0&&e.a1==t.a1}function r(e,t,n){return"A"+e+","+e+" 0 "+ +(n>qu)+",1 "+t}function i(e,t,n,r){return"Q 0,0 "+r}var s=wr,o=Er,u=Wo,a=mo,f=go;return e.radius=function(t){return arguments.length?(u=kt(t),e):u},e.source=function(t){return arguments.length?(s=kt(t),e):s},e.target=function(t){return arguments.length?(o=kt(t),e):o},e.startAngle=function(t){return arguments.length?(a=kt(t),e):a},e.endAngle=function(t){return arguments.length?(f=kt(t),e):f},e},fu.svg.diagonal=function(){function e(e,i){var s=t.call(this,e,i),o=n.call(this,e,i),u=(s.y+o.y)/2,a=[s,{x:s.x,y:u},{x:o.x,y:u},o];return a=a.map(r),"M"+a[0]+"C"+a[1]+" "+a[2]+" "+a[3]}var t=wr,n=Er,r=Xo;return e.source=function(n){return arguments.length?(t=kt(n),e):t},e.target=function(t){return arguments.length?(n=kt(t),e):n},e.projection=function(t){return arguments.length?(r=t,e):r},e},fu.svg.diagonal.radial=function(){var e=fu.svg.diagonal(),t=Xo,n=e.projection;return e.projection=function(e){return arguments.length?n(Vo(t=e)):t},e},fu.svg.symbol=function(){function e(e,r){return(If.get(t.call(this,e,r))||Ko)(n.call(this,e,r))}var t=Jo,n=$o;return e.type=function(n){return arguments.length?(t=kt(n),e):t},e.size=function(t){return arguments.length?(n=kt(t),e):n},e};var If=fu.map({circle:Ko,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+ -3*t+","+ -t+"H"+ -t+"V"+ -3*t+"H"+t+"V"+ -t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+ -t+"V"+t+"H"+ -3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Rf)),n=t*Rf;return"M0,"+ -t+"L"+n+",0 0,"+t+" "+ -n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+ -t+","+ -t+"L"+t+","+ -t+" "+t+","+t+" "+ -t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/qf),n=t*qf/2;return"M0,"+n+"L"+t+","+ -n+" "+ -t+","+ -n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/qf),n=t*qf/2;return"M0,"+ -n+"L"+t+","+n+" "+ -t+","+n+"Z"}});fu.svg.symbolTypes=If.keys();var qf=Math.sqrt(3),Rf=Math.tan(30*Wu);Ou.transition=function(e){for(var t,n,r=Uf||++Vf,i=eu(e),s=[],o=zf||{time:Date.now(),ease:ki,delay:0,duration:250},u=-1,a=this.length;++u<a;){s.push(t=[]);for(var f=this[u],l=-1,c=f.length;++l<c;)(n=f[l])&&tu(n,l,i,r,o),t.push(n)}return Go(s,i,r)},Ou.interrupt=function(e){return this.each(null==e?Wf:Qo(eu(e)))};var Uf,zf,Wf=Qo(eu()),Xf=[],Vf=0;Xf.call=Ou.call,Xf.empty=Ou.empty,Xf.node=Ou.node,Xf.size=Ou.size,fu.transition=function(e,t){return e&&e.transition?Uf?e.transition(t):e:fu.selection().transition(e)},fu.transition.prototype=Xf,Xf.select=function(e){var t,n,r,i=this.id,s=this.namespace,o=[];e=A(e);for(var u=-1,a=this.length;++u<a;){o.push(t=[]);for(var f=this[u],l=-1,c=f.length;++l<c;)(r=f[l])&&(n=e.call(r,r.__data__,l,u))?("__data__"in r&&(n.__data__=r.__data__),tu(n,l,s,i,r[s][i]),t.push(n)):t.push(null)}return Go(o,s,i)},Xf.selectAll=function(e){var t,n,r,i,s,o=this.id,u=this.namespace,a=[];e=O(e);for(var f=-1,l=this.length;++f<l;)for(var c=this[f],h=-1,p=c.length;++h<p;)if(r=c[h]){s=r[u][o],n=e.call(r,r.__data__,h,f),a.push(t=[]);for(var d=-1,v=n.length;++d<v;)(i=n[d])&&tu(i,d,u,o,s),t.push(i)}return Go(a,u,o)},Xf.filter=function(e){var t,n,r,i=[];"function"!=typeof e&&(e=U(e));for(var s=0,o=this.length;o>s;s++){i.push(t=[]);for(var n=this[s],u=0,a=n.length;a>u;u++)(r=n[u])&&e.call(r,r.__data__,u,s)&&t.push(r)}return Go(i,this.namespace,this.id)},Xf.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):W(this,null==t?function(t){t[r][n].tween.remove(e)}:function(i){i[r][n].tween.set(e,t)})},Xf.attr=function(e,t){function n(){this.removeAttribute(u)}function r(){this.removeAttributeNS(u.space,u.local)}function i(e){return null==e?n:(e+="",function(){var t,n=this.getAttribute(u);return n!==e&&(t=o(n,e),function(e){this.setAttribute(u,t(e))})})}function s(e){return null==e?r:(e+="",function(){var t,n=this.getAttributeNS(u.space,u.local);return n!==e&&(t=o(n,e),function(e){this.setAttributeNS(u.space,u.local,t(e))})})}if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var o="transform"==e?Ji:wi,u=fu.ns.qualify(e);return Yo(this,"attr."+e,t,u.local?s:i)},Xf.attrTween=function(e,t){function n(e,n){var r=t.call(this,e,n,this.getAttribute(i));return r&&function(e){this.setAttribute(i,r(e))}}function r(e,n){var r=t.call(this,e,n,this.getAttributeNS(i.space,i.local));return r&&function(e){this.setAttributeNS(i.space,i.local,r(e))}}var i=fu.ns.qualify(e);return this.tween("attr."+e,i.local?r:n)},Xf.style=function(e,n,r){function i(){this.style.removeProperty(e)}function s(n){return null==n?i:(n+="",function(){var i,s=t(this).getComputedStyle(this,null).getPropertyValue(e);return s!==n&&(i=wi(s,n),function(t){this.style.setProperty(e,i(t),r)})})}var o=arguments.length;if(3>o){if("string"!=typeof e){2>o&&(n="");for(r in e)this.style(r,e[r],n);return this}r=""}return Yo(this,"style."+e,n,s)},Xf.styleTween=function(e,n,r){function i(i,s){var o=n.call(this,i,s,t(this).getComputedStyle(this,null).getPropertyValue(e));return o&&function(t){this.style.setProperty(e,o(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+e,i)},Xf.text=function(e){return Yo(this,"text",e,Zo)},Xf.remove=function(){var e=this.namespace;return this.each("end.transition",function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Xf.ease=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].ease:("function"!=typeof e&&(e=fu.ease.apply(fu,arguments)),W(this,function(r){r[n][t].ease=e}))},Xf.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:W(this,"function"==typeof e?function(r,i,s){r[n][t].delay=+e.call(r,r.__data__,i,s)}:(e=+e,function(r){r[n][t].delay=e}))},Xf.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:W(this,"function"==typeof e?function(r,i,s){r[n][t].duration=Math.max(1,e.call(r,r.__data__,i,s))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},Xf.each=function(e,t){var n=this.id,r=this.namespace;if(arguments.length<2){var i=zf,s=Uf;try{Uf=n,W(this,function(t,i,s){zf=t[r][n],e.call(t,t.__data__,i,s)})}finally{zf=i,Uf=s}}else W(this,function(i){var s=i[r][n];(s.event||(s.event=fu.dispatch("start","end","interrupt"))).on(e,t)});return this},Xf.transition=function(){for(var e,t,n,r,i=this.id,s=++Vf,o=this.namespace,u=[],a=0,f=this.length;f>a;a++){u.push(e=[]);for(var t=this[a],l=0,c=t.length;c>l;l++)(n=t[l])&&(r=n[o][i],tu(n,l,o,s,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),e.push(n)}return Go(u,o,s)},fu.svg.axis=function(){function e(e){e.each(function(){var e,f=fu.select(this),l=this.__chart__||n,c=this.__chart__=n.copy(),h=null==a?c.ticks?c.ticks.apply(c,u):c.domain():a,p=null==t?c.tickFormat?c.tickFormat.apply(c,u):b:t,d=f.selectAll(".tick").data(h,c),v=d.enter().insert("g",".domain").attr("class","tick").style("opacity",Fu),m=fu.transition(d.exit()).style("opacity",Fu).remove(),g=fu.transition(d.order()).style("opacity",1),y=Math.max(i,0)+o,w=Xs(c),E=f.selectAll(".domain").data([0]),S=(E.enter().append("path").attr("class","domain"),fu.transition(E));v.append("line"),v.append("text");var x,T,N,C,k=v.select("line"),L=g.select("line"),A=d.select("text").text(p),O=v.select("text"),M=g.select("text"),_="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(e=nu,x="x",N="y",T="x2",C="y2",A.attr("dy",0>_?"0em":".71em").style("text-anchor","middle"),S.attr("d","M"+w[0]+","+_*s+"V0H"+w[1]+"V"+_*s)):(e=ru,x="y",N="x",T="y2",C="x2",A.attr("dy",".32em").style("text-anchor",0>_?"end":"start"),S.attr("d","M"+_*s+","+w[0]+"H0V"+w[1]+"H"+_*s)),k.attr(C,_*i),O.attr(N,_*y),L.attr(T,0).attr(C,_*i),M.attr(x,0).attr(N,_*y),c.rangeBand){var D=c,P=D.rangeBand()/2;l=c=function(e){return D(e)+P}}else l.rangeBand?l=c:m.call(e,c,l);v.call(e,l,c),g.call(e,c,c)})}var t,n=fu.scale.linear(),r=$f,i=6,s=6,o=3,u=[10],a=null;return e.scale=function(t){return arguments.length?(n=t,e):n},e.orient=function(t){return arguments.length?(r=t in Jf?t+"":$f,e):r},e.ticks=function(){return arguments.length?(u=cu(arguments),e):u},e.tickValues=function(t){return arguments.length?(a=t,e):a},e.tickFormat=function(n){return arguments.length?(t=n,e):t},e.tickSize=function(t){var n=arguments.length;return n?(i=+t,s=+arguments[n-1],e):i},e.innerTickSize=function(t){return arguments.length?(i=+t,e):i},e.outerTickSize=function(t){return arguments.length?(s=+t,e):s},e.tickPadding=function(t){return arguments.length?(o=+t,e):o},e.tickSubdivide=function(){return arguments.length&&e},e};var $f="bottom",Jf={top:1,right:1,bottom:1,left:1};fu.svg.brush=function(){function e(t){t.each(function(){var t=fu.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",s).on("touchstart.brush",s),o=t.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var u=t.selectAll(".resize").data(v,b);u.exit().remove(),u.enter().append("g").attr("class",function(e){return"resize "+e}).style("cursor",function(e){return Kf[e]}).append("rect").attr("x",function(e){return/[ew]$/.test(e)?-3:null}).attr("y",function(e){return/^[ns]/.test(e)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),u.style("display",e.empty()?"none":null);var a,c=fu.transition(t),h=fu.transition(o);f&&(a=Xs(f),h.attr("x",a[0]).attr("width",a[1]-a[0]),r(c)),l&&(a=Xs(l),h.attr("y",a[0]).attr("height",a[1]-a[0]),i(c)),n(c)})}function n(e){e.selectAll(".resize").attr("transform",function(e){return"translate("+c[+/e$/.test(e)]+","+h[+/^s/.test(e)]+")"})}function r(e){e.select(".extent").attr("x",c[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",c[1]-c[0])}function i(e){e.select(".extent").attr("y",h[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function s(){function s(){32==fu.event.keyCode&&(A||(b=null,M[0]-=c[1],M[1]-=h[1],A=2),N())}function v(){32==fu.event.keyCode&&2==A&&(M[0]+=c[1],M[1]+=h[1],A=0,N())}function m(){var e=fu.mouse(E),t=!1;w&&(e[0]+=w[0],e[1]+=w[1]),A||(fu.event.altKey?(b||(b=[(c[0]+c[1])/2,(h[0]+h[1])/2]),M[0]=c[+(e[0]<b[0])],M[1]=h[+(e[1]<b[1])]):b=null),k&&g(e,f,0)&&(r(T),t=!0),L&&g(e,l,1)&&(i(T),t=!0),t&&(n(T),x({type:"brush",mode:A?"move":"resize"}))}function g(e,t,n){var r,i,s=Xs(t),a=s[0],f=s[1],l=M[n],v=n?h:c,m=v[1]-v[0];return A&&(a-=l,f-=m+l),r=(n?d:p)?Math.max(a,Math.min(f,e[n])):e[n],A?i=(r+=l)+m:(b&&(l=Math.max(a,Math.min(f,2*b[n]-r))),r>l?(i=r,r=l):i=l),v[0]!=r||v[1]!=i?(n?u=null:o=null,v[0]=r,v[1]=i,!0):void 0}function y(){m(),T.style("pointer-events","all").selectAll(".resize").style("display",e.empty()?"none":null),fu.select("body").style("cursor",null),_.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),O(),x({type:"brushend"})}var b,w,E=this,S=fu.select(fu.event.target),x=a.of(E,arguments),T=fu.select(E),C=S.datum(),k=!/^(n|s)$/.test(C)&&f,L=!/^(e|w)$/.test(C)&&l,A=S.classed("extent"),O=Q(E),M=fu.mouse(E),_=fu.select(t(E)).on("keydown.brush",s).on("keyup.brush",v);if(fu.event.changedTouches?_.on("touchmove.brush",m).on("touchend.brush",y):_.on("mousemove.brush",m).on("mouseup.brush",y),T.interrupt().selectAll("*").interrupt(),A)M[0]=c[0]-M[0],M[1]=h[0]-M[1];else if(C){var D=+/w$/.test(C),P=+/^n/.test(C);w=[c[1-D]-M[0],h[1-P]-M[1]],M[0]=c[D],M[1]=h[P]}else fu.event.altKey&&(b=M.slice());T.style("pointer-events","none").selectAll(".resize").style("display",null),fu.select("body").style("cursor",S.style("cursor")),x({type:"brushstart"}),m()}var o,u,a=k(e,"brushstart","brush","brushend"),f=null,l=null,c=[0,0],h=[0,0],p=!0,d=!0,v=Qf[0];return e.event=function(e){e.each(function(){var e=a.of(this,arguments),t={x:c,y:h,i:o,j:u},n=this.__chart__||t;this.__chart__=t,Uf?fu.select(this).transition().each("start.brush",function(){o=n.i,u=n.j,c=n.x,h=n.y,e({type:"brushstart"})}).tween("brush:brush",function(){var n=Ei(c,t.x),r=Ei(h,t.y);return o=u=null,function(i){c=t.x=n(i),h=t.y=r(i),e({type:"brush",mode:"resize"})}}).each("end.brush",function(){o=t.i,u=t.j,e({type:"brush",mode:"resize"}),e({type:"brushend"})}):(e({type:"brushstart"}),e({type:"brush",mode:"resize"}),e({type:"brushend"}))})},e.x=function(t){return arguments.length?(f=t,v=Qf[!f<<1|!l],e):f},e.y=function(t){return arguments.length?(l=t,v=Qf[!f<<1|!l],e):l},e.clamp=function(t){return arguments.length?(f&&l?(p=!!t[0],d=!!t[1]):f?p=!!t:l&&(d=!!t),e):f&&l?[p,d]:f?p:l?d:null},e.extent=function(t){var n,r,i,s,a;return arguments.length?(f&&(n=t[0],r=t[1],l&&(n=n[0],r=r[0]),o=[n,r],f.invert&&(n=f(n),r=f(r)),n>r&&(a=n,n=r,r=a),n==c[0]&&r==c[1]||(c=[n,r])),l&&(i=t[0],s=t[1],f&&(i=i[1],s=s[1]),u=[i,s],l.invert&&(i=l(i),s=l(s)),i>s&&(a=i,i=s,s=a),i==h[0]&&s==h[1]||(h=[i,s])),e):(f&&(o?(n=o[0],r=o[1]):(n=c[0],r=c[1],f.invert&&(n=f.invert(n),r=f.invert(r)),n>r&&(a=n,n=r,r=a))),l&&(u?(i=u[0],s=u[1]):(i=h[0],s=h[1],l.invert&&(i=l.invert(i),s=l.invert(s)),i>s&&(a=i,i=s,s=a))),f&&l?[[n,i],[r,s]]:f?[n,r]:l&&[i,s])},e.clear=function(){return e.empty()||(c=[0,0],h=[0,0],o=u=null),e},e.empty=function(){return!!f&&c[0]==c[1]||!!l&&h[0]==h[1]},fu.rebind(e,a,"on")};var Kf={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Qf=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Gf=va.format=Ea.timeFormat,Yf=Gf.utc,Zf=Yf("%Y-%m-%dT%H:%M:%S.%LZ");Gf.iso=Date.prototype.toISOString&&+(new Date("2000-01-01T00:00:00.000Z"))?iu:Zf,iu.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},iu.toString=Zf.toString,va.second=Rt(function(e){return new ma(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),va.seconds=va.second.range,va.seconds.utc=va.second.utc.range,va.minute=Rt(function(e){return new ma(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),va.minutes=va.minute.range,va.minutes.utc=va.minute.utc.range,va.hour=Rt(function(e){var t=e.getTimezoneOffset()/60;return new ma(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),va.hours=va.hour.range,va.hours.utc=va.hour.utc.range,va.month=Rt(function(e){return e=va.day(e),e.setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),va.months=va.month.range,va.months.utc=va.month.utc.range;var el=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],tl=[[va.second,1],[va.second,5],[va.second,15],[va.second,30],[va.minute,1],[va.minute,5],[va.minute,15],[va.minute,30],[va.hour,1],[va.hour,3],[va.hour,6],[va.hour,12],[va.day,1],[va.day,2],[va.week,1],[va.month,1],[va.month,3],[va.year,1]],nl=Gf.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Mn]]),rl={range:function(e,t,n){return fu.range(Math.ceil(e/n)*n,+t,n).map(ou)},floor:b,ceil:b};tl.year=va.year,va.scale=function(){return su(fu.scale.linear(),tl,nl)};var il=tl.map(function(e){return[e[0].utc,e[1]]}),sl=Yf.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Mn]]);il.year=va.year.utc,va.scale.utc=function(){return su(fu.scale.linear(),il,sl)},fu.text=Lt(function(e){return e.responseText}),fu.json=function(e,t){return At(e,"application/json",uu,t)},fu.html=function(e,t){return At(e,"text/html",au,t)},fu.xml=Lt(function(e){return e.responseXML}),"function"==typeof n&&n.amd?(this.d3=fu,n("d3",fu)):"object"==typeof module&&module.exports?module.exports=fu:this.d3=fu}(),n("locationmarker",["leaflet"],function(e){return e.CircleMarker.extend({outerCircle:{stroke:!1,color:"#4285F4",opacity:1,fillOpacity:.3,clickable:!1,radius:16},innerCircle:{stroke:!0,color:"#ffffff",fillColor:"#4285F4",weight:1.5,clickable:!1,opacity:1,fillOpacity:1,radius:7},accuracyCircle:{stroke:!0,color:"#4285F4",weight:1,clickable:!1,opacity:.7,fillOpacity:.2},initialize:function(t){this.accuracyCircle=e.circle(t,0,this.accuracyCircle),this.outerCircle=e.circleMarker(t,this.outerCircle),e.CircleMarker.prototype.initialize.call(this,t,this.innerCircle),this.on("remove",function(){this._map.removeLayer(this.accuracyCircle),this._map.removeLayer(this.outerCircle)})},setLatLng:function(t){this.accuracyCircle.setLatLng(t),this.outerCircle.setLatLng(t),e.CircleMarker.prototype.setLatLng.call(this,t)},setAccuracy:function(e){this.accuracyCircle.setRadius(e)},onAdd:function(t){this.accuracyCircle.addTo(t).bringToBack(),this.outerCircle.addTo(t),e.CircleMarker.prototype.onAdd.call(this,t)}})}),!function(e){var t=e.L;t.labelVersion="0.2.2-dev",t.Label=t.Class.extend({includes:t.Mixin.Events,options:{className:"",clickable:!1,direction:"right",noHide:!1,offset:[12,-15],opacity:1,zoomAnimation:!0},initialize:function(e,n){t.setOptions(this,e),this._source=n,this._animated=t.Browser.any3d&&this.options.zoomAnimation,this._isOpen=!1},onAdd:function(e){this._map=e,this._pane=this.options.pane?e._panes[this.options.pane]:this._source instanceof t.Marker?e._panes.markerPane:e._panes.popupPane,this._container||this._initLayout(),this._pane.appendChild(this._container),this._initInteraction(),this._update(),this.setOpacity(this.options.opacity),e.on("moveend",this._onMoveEnd,this).on("viewreset",this._onViewReset,this),this._animated&&e.on("zoomanim",this._zoomAnimation,this),t.Browser.touch&&!this.options.noHide&&(t.DomEvent.on(this._container,"click",this.close,this),e.on("click",this.close,this))},onRemove:function(e){this._pane.removeChild(this._container),e.off({zoomanim:this._zoomAnimation,moveend:this._onMoveEnd,viewreset:this._onViewReset},this),this._removeInteraction(),this._map=null},setLatLng:function(e){return this._latlng=t.latLng(e),this._map&&this._updatePosition(),this},setContent:function(e){return this._previousContent=this._content,this._content=e,this._updateContent(),this},close:function(){var e=this._map;e&&(t.Browser.touch&&!this.options.noHide&&(t.DomEvent.off(this._container,"click",this.close),e.off("click",this.close,this)),e.removeLayer(this))},updateZIndex:function(e){this._zIndex=e,this._container&&this._zIndex&&(this._container.style.zIndex=e)},setOpacity:function(e){this.options.opacity=e,this._container&&t.DomUtil.setOpacity(this._container,e)},_initLayout:function(){this._container=t.DomUtil.create("div","leaflet-label "+this.options.className+" leaflet-zoom-animated"),this.updateZIndex(this._zIndex)},_update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updatePosition(),this._container.style.visibility="")},_updateContent:function(){this._content&&this._map&&this._prevContent!==this._content&&"string"==typeof this._content&&(this._container.innerHTML=this._content,this._prevContent=this._content,this._labelWidth=this._container.offsetWidth)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},_setPosition:function(e){var n=this._map,r=this._container,i=n.latLngToContainerPoint(n.getCenter()),s=n.layerPointToContainerPoint(e),o=this.options.direction,u=this._labelWidth,a=t.point(this.options.offset);"right"===o||"auto"===o&&s.x<i.x?(t.DomUtil.addClass(r,"leaflet-label-right"),t.DomUtil.removeClass(r,"leaflet-label-left"),e=e.add(a)):(t.DomUtil.addClass(r,"leaflet-label-left"),t.DomUtil.removeClass(r,"leaflet-label-right"),e=e.add(t.point(-a.x-u,a.y))),t.DomUtil.setPosition(r,e)},_zoomAnimation:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPosition(t)},_onMoveEnd:function(){this._animated&&"auto"!==this.options.direction||this._updatePosition()},_onViewReset:function(e){e&&e.hard&&this._update()},_initInteraction:function(){if(this.options.clickable){var e=this._container,n=["dblclick","mousedown","mouseover","mouseout","contextmenu"];t.DomUtil.addClass(e,"leaflet-clickable"),t.DomEvent.on(e,"click",this._onMouseClick,this);for(var r=0;r<n.length;r++)t.DomEvent.on(e,n[r],this._fireMouseEvent,this)}},_removeInteraction:function(){if(this.options.clickable){var e=this._container,n=["dblclick","mousedown","mouseover","mouseout","contextmenu"];t.DomUtil.removeClass(e,"leaflet-clickable"),t.DomEvent.off(e,"click",this._onMouseClick,this);for(var r=0;r<n.length;r++)t.DomEvent.off(e,n[r],this._fireMouseEvent,this)}},_onMouseClick:function(e){this.hasEventListeners(e.type)&&t.DomEvent.stopPropagation(e),this.fire(e.type,{originalEvent:e})},_fireMouseEvent:function(e){this.fire(e.type,{originalEvent:e}),"contextmenu"===e.type&&this.hasEventListeners(e.type)&&t.DomEvent.preventDefault(e),"mousedown"!==e.type?t.DomEvent.stopPropagation(e):t.DomEvent.preventDefault(e)}}),t.BaseMarkerMethods={showLabel:function(){return this.label&&this._map&&(this.label.setLatLng(this._latlng),this._map.showLabel(this.label)),this},hideLabel:function(){return this.label&&this.label.close(),this},setLabelNoHide:function(e){this._labelNoHide!==e&&(this._labelNoHide=e,e?(this._removeLabelRevealHandlers(),this.showLabel()):(this._addLabelRevealHandlers(),this.hideLabel()))},bindLabel:function(e,n){var r=this.options.icon?this.options.icon.options.labelAnchor:this.options.labelAnchor,i=t.point(r)||t.point(0,0);return i=i.add(t.Label.prototype.options.offset),n&&n.offset&&(i=i.add(n.offset)),n=t.Util.extend({offset:i},n),this._labelNoHide=n.noHide,this.label||(this._labelNoHide||this._addLabelRevealHandlers(),this.on("remove",this.hideLabel,this).on("move",this._moveLabel,this).on("add",this._onMarkerAdd,this),this._hasLabelHandlers=!0),this.label=(new t.Label(n,this)).setContent(e),this},unbindLabel:function(){return this.label&&(this.hideLabel(),this.label=null,this._hasLabelHandlers&&(this._labelNoHide||this._removeLabelRevealHandlers(),this.off("remove",this.hideLabel,this).off("move",this._moveLabel,this).off("add",this._onMarkerAdd,this)),this._hasLabelHandlers=!1),this},updateLabelContent:function(e){this.label&&this.label.setContent(e)},getLabel:function(){return this.label},_onMarkerAdd:function(){this._labelNoHide&&this.showLabel()},_addLabelRevealHandlers:function(){this.on("mouseover",this.showLabel,this).on("mouseout",this.hideLabel,this),t.Browser.touch&&this.on("click",this.showLabel,this)},_removeLabelRevealHandlers:function(){this.off("mouseover",this.showLabel,this).off("mouseout",this.hideLabel,this),t.Browser.touch&&this.off("click",this.showLabel,this)},_moveLabel:function(e){this.label.setLatLng(e.latlng)}},t.Icon.Default.mergeOptions({labelAnchor:new t.Point(9,-20)}),t.Marker.mergeOptions({icon:new t.Icon.Default}),t.Marker.include(t.BaseMarkerMethods),t.Marker.include({_originalUpdateZIndex:t.Marker.prototype._updateZIndex,_updateZIndex:function(e){var t=this._zIndex+e;this._originalUpdateZIndex(e),this.label&&this.label.updateZIndex(t)},_originalSetOpacity:t.Marker.prototype.setOpacity,setOpacity:function(e,t){this.options.labelHasSemiTransparency=t,this._originalSetOpacity(e)},_originalUpdateOpacity:t.Marker.prototype._updateOpacity,_updateOpacity:function(){var e=0===this.options.opacity?0:1;this._originalUpdateOpacity(),this.label&&this.label.setOpacity(this.options.labelHasSemiTransparency?this.options.opacity:e)},_originalSetLatLng:t.Marker.prototype.setLatLng,setLatLng:function(e){return this.label&&!this._labelNoHide&&this.hideLabel(),this._originalSetLatLng(e)}}),t.CircleMarker.mergeOptions({labelAnchor:new t.Point(0,0)}),t.CircleMarker.include(t.BaseMarkerMethods),t.Path.include({bindLabel:function(e,n){return this.label&&this.label.options===n||(this.label=new t.Label(n,this)),this.label.setContent(e),this._showLabelAdded||(this.on("mouseover",this._showLabel,this).on("mousemove",this._moveLabel,this).on("mouseout remove",this._hideLabel,this),t.Browser.touch&&this.on("click",this._showLabel,this),this._showLabelAdded=!0),this},unbindLabel:function(){return this.label&&(this._hideLabel(),this.label=null,this._showLabelAdded=!1,this.off("mouseover",this._showLabel,this).off("mousemove",this._moveLabel,this).off("mouseout remove",this._hideLabel,this)),this},updateLabelContent:function(e){this.label&&this.label.setContent(e)},_showLabel:function(e){this.label.setLatLng(e.latlng),this._map.showLabel(this.label)},_moveLabel:function(e){this.label.setLatLng(e.latlng)},_hideLabel:function(){this.label.close()}}),t.Map.include({showLabel:function(e){return this.addLayer(e)}}),t.FeatureGroup.include({clearLayers:function(){return this.unbindLabel(),this.eachLayer(this.removeLayer,this),this},bindLabel:function(e,t){return this.invoke("bindLabel",e,t)},unbindLabel:function(){return this.invoke("unbindLabel")},updateLabelContent:function(e){this.invoke("updateLabelContent",e)}})}(this,document),n("leaflet.label",["leaflet"],function(){}),function(e,r){typeof n=="function"&&n.amd?n("leaflet.providers",["leaflet"],r):typeof modules=="object"&&module.exports?module.exports=r(t("leaflet")):r(L)}(this,function(e){"use strict";return e.TileLayer.Provider=e.TileLayer.extend({initialize:function(t,n){var r=e.TileLayer.Provider.providers,i=t.split("."),s=i[0],o=i[1];if(!r[s])throw"No such provider ("+s+")";var u={url:r[s].url,options:r[s].options};if(o&&"variants"in r[s]){if(!(o in r[s].variants))throw"No such variant of "+s+" ("+o+")";var a=r[s].variants[o],f;typeof a=="string"?f={variant:a}:f=a.options,u={url:a.url||u.url,options:e.Util.extend({},u.options,f)}}var l=function(e){return e.indexOf("{attribution.")===-1?e:e.replace(/\{attribution.(\w*)\}/g,function(e,t){return l(r[t].options.attribution)})};u.options.attribution=l(u.options.attribution);var c=e.Util.extend({},u.options,n);e.TileLayer.prototype.initialize.call(this,u.url,c)}}),e.TileLayer.Provider.providers={OpenStreetMap:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'},variants:{Mapnik:{},DE:{url:"https://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png",options:{maxZoom:18}},CH:{url:"https://tile.osm.ch/switzerland/{z}/{x}/{y}.png",options:{maxZoom:18,bounds:[[45,5],[48,11]]}},France:{url:"https://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",options:{maxZoom:20,attribution:"&copy; Openstreetmap France | {attribution.OpenStreetMap}"}},HOT:{url:"https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap}, Tiles style by <a href="https://www.hotosm.org/" target="_blank">Humanitarian OpenStreetMap Team</a> hosted by <a href="https://openstreetmap.fr/" target="_blank">OpenStreetMap France</a>'}},BZH:{url:"https://tile.openstreetmap.bzh/br/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap}, Tiles courtesy of <a href="http://www.openstreetmap.bzh/" target="_blank">Breton OpenStreetMap Team</a>',bounds:[[46.2,-5.5],[50,.7]]}}}},OpenSeaMap:{url:"https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",options:{attribution:'Map data: &copy; <a href="http://www.openseamap.org">OpenSeaMap</a> contributors'}},OpenPtMap:{url:"http://openptmap.org/tiles/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: &copy; <a href="http://www.openptmap.org">OpenPtMap</a> contributors'}},OpenTopoMap:{url:"https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: {attribution.OpenStreetMap}, <a href="http://viewfinderpanoramas.org">SRTM</a> | Map style: &copy; <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'}},OpenRailwayMap:{url:"https://{s}.tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: &copy; <a href="https://www.OpenRailwayMap.org">OpenRailwayMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'}},OpenFireMap:{url:"http://openfiremap.org/hytiles/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: &copy; <a href="http://www.openfiremap.org">OpenFireMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'}},SafeCast:{url:"https://s3.amazonaws.com/te512.safecast.org/{z}/{x}/{y}.png",options:{maxZoom:16,attribution:'Map data: {attribution.OpenStreetMap} | Map style: &copy; <a href="https://blog.safecast.org/about/">SafeCast</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'}},Thunderforest:{url:"https://{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png?apikey={apikey}",options:{attribution:'&copy; <a href="http://www.thunderforest.com/">Thunderforest</a>, {attribution.OpenStreetMap}',variant:"cycle",apikey:"<insert your api key here>",maxZoom:22},variants:{OpenCycleMap:"cycle",Transport:{options:{variant:"transport"}},TransportDark:{options:{variant:"transport-dark"}},SpinalMap:{options:{variant:"spinal-map"}},Landscape:"landscape",Outdoors:"outdoors",Pioneer:"pioneer",MobileAtlas:"mobile-atlas",Neighbourhood:"neighbourhood"}},CyclOSM:{url:"https://dev.{s}.tile.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png",options:{maxZoom:20,attribution:'<a href="https://github.com/cyclosm/cyclosm-cartocss-style/releases" title="CyclOSM - Open Bicycle render">CyclOSM</a> | Map data: {attribution.OpenStreetMap}'}},OpenMapSurfer:{url:"https://maps.heigit.org/openmapsurfer/tiles/{variant}/webmercator/{z}/{x}/{y}.png",options:{maxZoom:19,variant:"roads",attribution:'Imagery from <a href="http://giscience.uni-hd.de/">GIScience Research Group @ University of Heidelberg</a> | Map data '},variants:{Roads:{options:{variant:"roads",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},Hybrid:{options:{variant:"hybrid",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},AdminBounds:{options:{variant:"adminb",maxZoom:18,attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},ContourLines:{options:{variant:"asterc",maxZoom:18,minZoom:13,attribution:'{attribution.OpenMapSurfer} <a href="https://lpdaac.usgs.gov/products/aster_policies">ASTER GDEM</a>'}},Hillshade:{options:{variant:"asterh",maxZoom:18,attribution:'{attribution.OpenMapSurfer} <a href="https://lpdaac.usgs.gov/products/aster_policies">ASTER GDEM</a>, <a href="http://srtm.csi.cgiar.org/">SRTM</a>'}},ElementsAtRisk:{options:{variant:"elements_at_risk",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}}}},Hydda:{url:"https://{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png",options:{maxZoom:18,variant:"full",attribution:'Tiles courtesy of <a href="http://openstreetmap.se/" target="_blank">OpenStreetMap Sweden</a> &mdash; Map data {attribution.OpenStreetMap}'},variants:{Full:"full",Base:"base",RoadsAndLabels:"roads_and_labels"}},MapBox:{url:"https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}{r}.png?access_token={accessToken}",options:{attribution:'<a href="https://www.mapbox.com/about/maps/" target="_blank">&copy; Mapbox</a> {attribution.OpenStreetMap} <a href="https://www.mapbox.com/map-feedback/" target="_blank">Improve this map</a>',subdomains:"abcd",id:"mapbox.streets",accessToken:"<insert your access token here>"}},Stamen:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}{r}.{ext}",options:{attribution:'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data {attribution.OpenStreetMap}',subdomains:"abcd",minZoom:0,maxZoom:20,variant:"toner",ext:"png"},variants:{Toner:"toner",TonerBackground:"toner-background",TonerHybrid:"toner-hybrid",TonerLines:"toner-lines",TonerLabels:"toner-labels",TonerLite:"toner-lite",Watercolor:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{variant:"watercolor",ext:"jpg",minZoom:1,maxZoom:16}},Terrain:{options:{variant:"terrain",minZoom:0,maxZoom:18}},TerrainBackground:{options:{variant:"terrain-background",minZoom:0,maxZoom:18}},TerrainLabels:{options:{variant:"terrain-labels",minZoom:0,maxZoom:18}},TopOSMRelief:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{variant:"toposm-color-relief",ext:"jpg",bounds:[[22,-132],[51,-56]]}},TopOSMFeatures:{options:{variant:"toposm-features",bounds:[[22,-132],[51,-56]],opacity:.9}}}},TomTom:{url:"https://{s}.api.tomtom.com/map/1/tile/{variant}/{style}/{z}/{x}/{y}.{ext}?key={apikey}",options:{variant:"basic",maxZoom:22,attribution:'<a href="https://tomtom.com" target="_blank">&copy; 1992 - '+(new Date).getFullYear()+" TomTom.</a> ",subdomains:"abcd",style:"main",ext:"png",apikey:"<insert your API key here>"},variants:{Basic:"basic",Hybrid:"hybrid",Labels:"labels"}},Esri:{url:"https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}",options:{variant:"World_Street_Map",attribution:"Tiles &copy; Esri"},variants:{WorldStreetMap:{options:{attribution:"{attribution.Esri} &mdash; Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012"}},DeLorme:{options:{variant:"Specialty/DeLorme_World_Base_Map",minZoom:1,maxZoom:11,attribution:"{attribution.Esri} &mdash; Copyright: &copy;2012 DeLorme"}},WorldTopoMap:{options:{variant:"World_Topo_Map",attribution:"{attribution.Esri} &mdash; Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community"}},WorldImagery:{options:{variant:"World_Imagery",attribution:"{attribution.Esri} &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"}},WorldTerrain:{options:{variant:"World_Terrain_Base",maxZoom:13,attribution:"{attribution.Esri} &mdash; Source: USGS, Esri, TANA, DeLorme, and NPS"}},WorldShadedRelief:{options:{variant:"World_Shaded_Relief",maxZoom:13,attribution:"{attribution.Esri} &mdash; Source: Esri"}},WorldPhysical:{options:{variant:"World_Physical_Map",maxZoom:8,attribution:"{attribution.Esri} &mdash; Source: US National Park Service"}},OceanBasemap:{options:{variant:"Ocean_Basemap",maxZoom:13,attribution:"{attribution.Esri} &mdash; Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri"}},NatGeoWorldMap:{options:{variant:"NatGeo_World_Map",maxZoom:16,attribution:"{attribution.Esri} &mdash; National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC"}},WorldGrayCanvas:{options:{variant:"Canvas/World_Light_Gray_Base",maxZoom:16,attribution:"{attribution.Esri} &mdash; Esri, DeLorme, NAVTEQ"}}}},OpenWeatherMap:{url:"http://{s}.tile.openweathermap.org/map/{variant}/{z}/{x}/{y}.png?appid={apiKey}",options:{maxZoom:19,attribution:'Map data &copy; <a href="http://openweathermap.org">OpenWeatherMap</a>',apiKey:"<insert your api key here>",opacity:.5},variants:{Clouds:"clouds",CloudsClassic:"clouds_cls",Precipitation:"precipitation",PrecipitationClassic:"precipitation_cls",Rain:"rain",RainClassic:"rain_cls",Pressure:"pressure",PressureContour:"pressure_cntr",Wind:"wind",Temperature:"temp",Snow:"snow"}},HERE:{url:"https://{s}.{base}.maps.api.here.com/maptile/2.1/{type}/{mapID}/{variant}/{z}/{x}/{y}/{size}/{format}?app_id={app_id}&app_code={app_code}&lg={language}",options:{attribution:"Map &copy; 1987-"+(new Date).getFullYear()+' <a href="http://developer.here.com">HERE</a>',subdomains:"1234",mapID:"newest",app_id:"<insert your app_id here>",app_code:"<insert your app_code here>",base:"base",variant:"normal.day",maxZoom:20,type:"maptile",language:"eng",format:"png8",size:"256"},variants:{normalDay:"normal.day",normalDayCustom:"normal.day.custom",normalDayGrey:"normal.day.grey",normalDayMobile:"normal.day.mobile",normalDayGreyMobile:"normal.day.grey.mobile",normalDayTransit:"normal.day.transit",normalDayTransitMobile:"normal.day.transit.mobile",normalDayTraffic:{options:{variant:"normal.traffic.day",base:"traffic",type:"traffictile"}},normalNight:"normal.night",normalNightMobile:"normal.night.mobile",normalNightGrey:"normal.night.grey",normalNightGreyMobile:"normal.night.grey.mobile",normalNightTransit:"normal.night.transit",normalNightTransitMobile:"normal.night.transit.mobile",reducedDay:"reduced.day",reducedNight:"reduced.night",basicMap:{options:{type:"basetile"}},mapLabels:{options:{type:"labeltile",format:"png"}},trafficFlow:{options:{base:"traffic",type:"flowtile"}},carnavDayGrey:"carnav.day.grey",hybridDay:{options:{base:"aerial",variant:"hybrid.day"}},hybridDayMobile:{options:{base:"aerial",variant:"hybrid.day.mobile"}},hybridDayTransit:{options:{base:"aerial",variant:"hybrid.day.transit"}},hybridDayGrey:{options:{base:"aerial",variant:"hybrid.grey.day"}},hybridDayTraffic:{options:{variant:"hybrid.traffic.day",base:"traffic",type:"traffictile"}},pedestrianDay:"pedestrian.day",pedestrianNight:"pedestrian.night",satelliteDay:{options:{base:"aerial",variant:"satellite.day"}},terrainDay:{options:{base:"aerial",variant:"terrain.day"}},terrainDayMobile:{options:{base:"aerial",variant:"terrain.day.mobile"}}}},FreeMapSK:{url:"http://t{s}.freemap.sk/T/{z}/{x}/{y}.jpeg",options:{minZoom:8,maxZoom:16,subdomains:"1234",bounds:[[47.204642,15.996093],[49.830896,22.576904]],attribution:'{attribution.OpenStreetMap}, vizualization CC-By-SA 2.0 <a href="http://freemap.sk">Freemap.sk</a>'}},MtbMap:{url:"http://tile.mtbmap.cz/mtbmap_tiles/{z}/{x}/{y}.png",options:{attribution:"{attribution.OpenStreetMap} &amp; USGS"}},CartoDB:{url:"https://{s}.basemaps.cartocdn.com/{variant}/{z}/{x}/{y}{r}.png",options:{attribution:'{attribution.OpenStreetMap} &copy; <a href="https://carto.com/attributions">CARTO</a>',subdomains:"abcd",maxZoom:19,variant:"light_all"},variants:{Positron:"light_all",PositronNoLabels:"light_nolabels",PositronOnlyLabels:"light_only_labels",DarkMatter:"dark_all",DarkMatterNoLabels:"dark_nolabels",DarkMatterOnlyLabels:"dark_only_labels",Voyager:"rastertiles/voyager",VoyagerNoLabels:"rastertiles/voyager_nolabels",VoyagerOnlyLabels:"rastertiles/voyager_only_labels",VoyagerLabelsUnder:"rastertiles/voyager_labels_under"}},HikeBike:{url:"https://tiles.wmflabs.org/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:"{attribution.OpenStreetMap}",variant:"hikebike"},variants:{HikeBike:{},HillShading:{options:{maxZoom:15,variant:"hillshading"}}}},BasemapAT:{url:"https://maps{s}.wien.gv.at/basemap/{variant}/{type}/google3857/{z}/{y}/{x}.{format}",options:{maxZoom:19,attribution:'Datenquelle: <a href="https://www.basemap.at">basemap.at</a>',subdomains:["","1","2","3","4"],type:"normal",format:"png",bounds:[[46.35877,8.782379],[49.037872,17.189532]],variant:"geolandbasemap"},variants:{basemap:{options:{maxZoom:20,variant:"geolandbasemap"}},grau:"bmapgrau",overlay:"bmapoverlay",terrain:{options:{variant:"bmapgelaende",type:"grau",format:"jpeg"}},surface:{options:{variant:"bmapoberflaeche",type:"grau",format:"jpeg"}},highdpi:{options:{variant:"bmaphidpi",format:"jpeg"}},orthofoto:{options:{maxZoom:20,variant:"bmaporthofoto30cm",format:"jpeg"}}}},nlmaps:{url:"https://geodata.nationaalgeoregister.nl/tiles/service/wmts/{variant}/EPSG:3857/{z}/{x}/{y}.png",options:{minZoom:6,maxZoom:19,bounds:[[50.5,3.25],[54,7.6]],attribution:'Kaartgegevens &copy; <a href="kadaster.nl">Kadaster</a>'},variants:{standaard:"brtachtergrondkaart",pastel:"brtachtergrondkaartpastel",grijs:"brtachtergrondkaartgrijs",luchtfoto:{url:"https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wmts/2018_ortho25/EPSG:3857/{z}/{x}/{y}.png"}}},NASAGIBS:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}{maxZoom}/{z}/{y}/{x}.{format}",options:{attribution:'Imagery provided by services from the Global Imagery Browse Services (GIBS), operated by the NASA/GSFC/Earth Science Data and Information System (<a href="https://earthdata.nasa.gov">ESDIS</a>) with funding provided by NASA/HQ.',bounds:[[-85.0511287776,-179.999999975],[85.0511287776,179.999999975]],minZoom:1,maxZoom:9,format:"jpg",time:"",tilematrixset:"GoogleMapsCompatible_Level"},variants:{ModisTerraTrueColorCR:"MODIS_Terra_CorrectedReflectance_TrueColor",ModisTerraBands367CR:"MODIS_Terra_CorrectedReflectance_Bands367",ViirsEarthAtNight2012:{options:{variant:"VIIRS_CityLights_2012",maxZoom:8}},ModisTerraLSTDay:{options:{variant:"MODIS_Terra_Land_Surface_Temp_Day",format:"png",maxZoom:7,opacity:.75}},ModisTerraSnowCover:{options:{variant:"MODIS_Terra_Snow_Cover",format:"png",maxZoom:8,opacity:.75}},ModisTerraAOD:{options:{variant:"MODIS_Terra_Aerosol",format:"png",maxZoom:6,opacity:.75}},ModisTerraChlorophyll:{options:{variant:"MODIS_Terra_Chlorophyll_A",format:"png",maxZoom:7,opacity:.75}}}},NLS:{url:"https://nls-{s}.tileserver.com/nls/{z}/{x}/{y}.jpg",options:{attribution:'<a href="http://geo.nls.uk/maps/">National Library of Scotland Historic Maps</a>',bounds:[[49.6,-12],[61.7,3]],minZoom:1,maxZoom:18,subdomains:"0123"}},JusticeMap:{url:"http://www.justicemap.org/tile/{size}/{variant}/{z}/{x}/{y}.png",options:{attribution:'<a href="http://www.justicemap.org/terms.php">Justice Map</a>',size:"county",bounds:[[14,-180],[72,-56]]},variants:{income:"income",americanIndian:"indian",asian:"asian",black:"black",hispanic:"hispanic",multi:"multi",nonWhite:"nonwhite",white:"white",plurality:"plural"}},Wikimedia:{url:"https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}{r}.png",options:{attribution:'<a href="https://wikimediafoundation.org/wiki/Maps_Terms_of_Use">Wikimedia</a>',minZoom:1,maxZoom:19}},GeoportailFrance:{url:"https://wxs.ign.fr/{apikey}/geoportail/wmts?REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0&STYLE={style}&TILEMATRIXSET=PM&FORMAT={format}&LAYER={variant}&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}",options:{attribution:'<a target="_blank" href="https://www.geoportail.gouv.fr/">Geoportail France</a>',bounds:[[-75,-180],[81,180]],minZoom:2,maxZoom:18,apikey:"choisirgeoportail",format:"image/jpeg",style:"normal",variant:"GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN-EXPRESS.STANDARD"},variants:{parcels:{options:{variant:"CADASTRALPARCELS.PARCELS",maxZoom:20,style:"bdparcellaire",format:"image/png"}},ignMaps:"GEOGRAPHICALGRIDSYSTEMS.MAPS",maps:"GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN-EXPRESS.STANDARD",orthos:{options:{maxZoom:19,variant:"ORTHOIMAGERY.ORTHOPHOTOS"}}}},OneMapSG:{url:"https://maps-{s}.onemap.sg/v3/{variant}/{z}/{x}/{y}.png",options:{variant:"Default",minZoom:11,maxZoom:18,bounds:[[1.56073,104.11475],[1.16,103.502]],attribution:'<img src="https://docs.onemap.sg/maps/images/oneMap64-01.png" style="height:20px;width:20px;"/> New OneMap | Map data &copy; contributors, <a href="http://SLA.gov.sg">Singapore Land Authority</a>'},variants:{Default:"Default",Night:"Night",Original:"Original",Grey:"Grey",LandLot:"LandLot"}}},e.tileLayer.provider=function(t,n){return new e.TileLayer.Provider(t,n)},e}),n("map",["map/clientlayer","map/labelslayer","d3","leaflet","moment","locationmarker","rbush","leaflet.label","leaflet.providers"],function(e,t,n,r,i,s,o){function h(e,t,n){return function(i){var s=r.circleMarker([i.nodeinfo.location.latitude,i.nodeinfo.location.longitude],t(i));return s.resetStyle=function(){s.setStyle(t(i))},s.on("click",n.node(i)),s.bindLabel(i.nodeinfo.hostname),e[i.nodeinfo.node_id]=s,s}}function b(e,t,n,i){n=n.filter(function(e){return"distance"in e&&e.type!=="VPN"});var s=n.map(function(n){var s={color:n.type==="Kabel"?"#50B0F0":t(n.tq).hex(),weight:4,opacity:.5,dashArray:"none"},o=r.polyline(n.latlngs,s);return o.resetStyle=function(){o.setStyle(s)},o.bindLabel(n.source.node.nodeinfo.hostname+" "+n.target.node.nodeinfo.hostname+"<br><strong>"+g(n)+" / "+y(n)+"</strong>"),o.on("click",i.link(n)),e[n.id]=o,o});return s}var u={worldCopyJump:!0,zoomControl:!1},a=r.Control.extend({options:{position:"bottomright"},initialize:function(e,t){r.Util.setOptions(this,t),this.f=e},onAdd:function(){var e=r.DomUtil.create("button","add-layer");return e.textContent="",r.DomEvent.addListener(e,"click",this.f,this),this.button=e,e}}),f=r.Control.extend({options:{position:"bottomright"},active:!1,button:undefined,initialize:function(e,t){r.Util.setOptions(this,t),this.f=e},onAdd:function(){var e=r.DomUtil.create("button","locate-user");return e.textContent="",r.DomEvent.disableClickPropagation(e),r.DomEvent.addListener(e,"click",this.onClick,this),this.button=e,e},update:function(){this.button.classList.toggle("active",this.active)},set:function(e){this.active=e,this.update()},onClick:function(){this.f(!this.active)}}),l=r.Control.extend({options:{position:"bottomright"},active:!1,button:undefined,initialize:function(e,t){r.Util.setOptions(this,t),this.f=e},onAdd:function(){var e=r.DomUtil.create("button","coord-picker");return e.textContent="",r.DomEvent.addListener(e,"click",this.onClick,this),this.button=e,e},update:function(){this.button.classList.toggle("active",this.active)},set:function(e){this.active=e,this.update()},onClick:function(e){r.DomEvent.stopPropagation(e),this.f(!this.active)}}),w={color:"#1566A9",fillColor:"#1566A9",radius:6,fillOpacity:.5,opacity:.5,weight:2,className:"stroke-first"},E={color:"#D43E2A",fillColor:"#D43E2A",radius:3,fillOpacity:.5,opacity:.5,weight:1,className:"stroke-first"},S={color:"#D43E2A",fillColor:"#D43E2A",radius:6,fillOpacity:.8,opacity:.8,weight:1,className:"stroke-first"},x={color:"#D43E2A",fillColor:"#D43E2A",radius:6,fillOpacity:.8,opacity:.8,weight:2,className:"stroke-first node-alert"},T={color:"#1566A9",fillColor:"#93E929",radius:6,fillOpacity:1,opacity:.5,weight:2};return function(g,y,N,C,k){function W(e){var t=e.onAdd();z.push(t),k.appendChild(t)}function X(){z.forEach(function(e){k.removeChild(e)})}function $(){B={center:j.getCenter(),zoom:j.getZoom()}}function J(){j.locate({watch:!0,enableHighAccuracy:!0,setView:!0}),U.set(!0)}function K(){j.stopLocate(),et(),U.set(!1)}function Q(){j.getContainer().classList.add("pick-coordinates"),j.on("click",Y),V.set(!0)}function G(){j.getContainer().classList.remove("pick-coordinates"),j.off("click",Y),V.set(!1)}function Y(e){C.gotoLocation(e.latlng),G()}function Z(e){F||(F=(new s(e.latlng)).addTo(j)),F.setLatLng(e.latlng),F.setAccuracy(e.accuracy)}function et(){F&&(j.removeLayer(F),F=null)}function tt(e){if(e in R)return;if(e in q)return;try{var t=r.tileLayer.provider(e);I.addBaseLayer(t,e),q[e]=t,c()&&localStorage.setItem("map/customLayers",JSON.stringify(Object.keys(q)))}catch(n){return}}function nt(e){C.gotoLocation(e.latlng)}function ct(e,t){Object.keys(e).forEach(function(t){e[t].resetStyle()}),Object.keys(t).forEach(function(e){t[e].resetStyle()})}function ht(e){var t=null,n=j.getZoom();"maxGotoZoom"in g&&(t=n===undefined?g.maxGotoZoom:Math.max(g.maxGotoZoom,j.getZoom())),j.fitBounds(e,{paddingTopLeft:[N(),0],maxZoom:t})}function pt(){O&&ht(O.getBounds())}function dt(e){var t;return"getBounds"in e?t=e.getBounds():t=r.latLngBounds([e.getLatLng()]),ht(t),e}function vt(e){ct(at,ft);var t;lt!==undefined&&(lt.type==="node"?(t=at[lt.o.nodeinfo.node_id],t&&t.setStyle({color:"orange",weight:20,fillOpacity:1,opacity:.7,className:"stroke-first"})):lt.type==="link"&&(t=ft[lt.o.id],t&&t.setStyle({weight:7,opacity:1,dashArray:"10, 10"}))),e||(t?dt(t):B?j.setView(B.center,B.zoom):pt())}function mt(e){e=e.map(function(e){return e.nodeinfo.location});if(e.length===0)return undefined;var t=e.map(function(e){return e.latitude}),i=e.map(function(e){return e.longitude}),s=r.latLng(n.median(t),n.median(i)),o=[n.deviation(t),n.deviation(i)];o[0]===undefined&&(o[0]=0),o[1]===undefined&&(o[1]=0);var u=r.latLng(s.lat+o[0],s.lng+o[1]),a=s.distanceTo(u);return r.circle(s,a*g.mapSigmaScale)}function gt(e){return{minX:e.nodeinfo.location.latitude,minY:e.nodeinfo.location.longitude,maxX:e.nodeinfo.location.latitude,maxY:e.nodeinfo.location.longitude,node:e}}var A=this,O,M,_,D,P,H,B,j,F,I,q={},R={},U=new f(function(e){e?J():K()}),z=[],V=new l(function(e){e?Q():G()}),rt=document.createElement("div");rt.classList.add("map"),j=r.map(rt,u);var it=g.mapLayers.map(function(e){return{name:e.name,layer:"url"in e?"layers"in e.config?r.tileLayer.wms(e.url,e.config):r.tileLayer(e.url,e.config):r.tileLayer.provider(e.name)}});it[0].layer.addTo(j),it.forEach(function(e){R[e.name]=e.layer}),j.on("locationfound",Z),j.on("locationerror",et),j.on("dragend",$),j.on("contextmenu",nt),W(U),W(V),W(new a(function(){var e=prompt("Leaflet Provider:");tt(e)})),I=r.control.layers(R,[],{position:"bottomright"}),I.addTo(j);if(c()){var st=JSON.parse(localStorage.getItem("map/customLayers"));st&&st.forEach(tt),st=JSON.parse(localStorage.getItem("map/selectedLayer")),st=st&&st.name in R?R[st.name]:st&&st.name in q?q[st.name]:!1,st&&(j.removeLayer(it[0].layer),j.addLayer(st))}var ot=new e({minZoom:15});ot.addTo(j),ot.setZIndex(5);var ut=new t({});ut.addTo(j),ut.setZIndex(6),j.on("baselayerchange",function(e){j.options.maxZoom=e.layer.options.maxZoom,ot.options.maxZoom=j.options.maxZoom,ut.options.maxZoom=j.options.maxZoom,j.getZoom()>j.options.maxZoom&&j.setZoom(j.options.maxZoom),c()&&localStorage.setItem("map/selectedLayer",JSON.stringify({name:e.name}))});var at={},ft={},lt;return A.setData=function(e){at={},ft={},_&&_.clearLayers(),M&&M.clearLayers(),D&&D.clearLayers(),P&&P.clearLayers(),H&&H.clearLayers();var t=b(ft,y,e.graph.links,C);H=r.featureGroup(t).addTo(j),typeof g.fixedCenter=="undefined"?O=mt(e.nodes.all.filter(v)):O=r.circle(r.latLng(new r.LatLng(g.fixedCenter.lat,g.fixedCenter.lng)),g.fixedCenter.radius*1e3);var n=m(e.nodes.all.filter(d),e.nodes.new),s=m(e.nodes.all.filter(p),e.nodes.lost),u=n.filter(v).map(h(at,function(){return w},C)),a=s.filter(v).map(h(at,function(){return E},C)),f=e.nodes.new.filter(v).map(h(at,function(){return T},C)),l=e.nodes.lost.filter(v).map(h(at,function(t){return t.lastseen.isAfter(i(e.now).subtract(3,"days"))?x:S},C));_=r.featureGroup(a).addTo(j),M=r.featureGroup(u).addTo(j),P=r.featureGroup(l).addTo(j),D=r.featureGroup(f).addTo(j);var c=new o(9);c.load(e.nodes.all.filter(d).filter(v).map(gt)),ot.setData(c),ut.setData({online:n.filter(v),offline:s.filter(v),"new":e.nodes.new.filter(v),lost:e.nodes.lost.filter(v)}),vt(!0)},A.resetView=function(){K(),lt=undefined,vt()},A.gotoNode=function(e){K(),lt={type:"node",o:e},vt()},A.gotoLink=function(e){K(),lt={type:"link",o:e},vt()},A.gotoLocation=function(){},A.destroy=function(){X(),j.remove(),rt.parentNode&&rt.parentNode.removeChild(rt)},A.render=function(e){e.appendChild(rt),j.invalidateSize()},A}}),n("sidebar",[],function(){return function(e){var t=this,n=document.createElement("div");n.classList.add("sidebar"),e.appendChild(n);var r=document.createElement("button");n.appendChild(r),r.classList.add("sidebarhandle"),r.onclick=function(){n.classList.toggle("hidden")};var i=document.createElement("div");return i.classList.add("container"),n.appendChild(i),t.getWidth=function(){if(n.classList.contains("hidden"))return 0;var e=window.matchMedia("(max-width: 630pt)");return e.matches?0:n.offsetWidth},t.add=function(e){e.render(i)},t.ensureVisible=function(){n.classList.remove("hidden")},t.hide=function(){i.classList.add("hidden")},t.reveal=function(){i.classList.remove("hidden")},t.container=n,t}}),n("tabs",[],function(){return function(){function r(e){for(var r=0;r<t.children.length;r++)t.children[r].classList.remove("visible");while(n.firstChild)n.removeChild(n.firstChild);e.classList.add("visible");var i=document.createElement("div");i.classList.add("tab"),n.appendChild(i),e.child.render(i)}function i(){return r(this),!1}var e=this,t=document.createElement("ul");t.classList.add("tabs");var n=document.createElement("div");return e.add=function(e,n){var s=document.createElement("li");s.textContent=e,s.onclick=i,s.child=n,t.appendChild(s);var o=!1;for(var u=0;u<t.children.length;u++)if(t.children[u].classList.contains("visible")){o=!0;break}o||r(s)},e.render=function(e){e.appendChild(t),e.appendChild(n)},e}}),n("container",[],function(){return function(e){e||(e="div");var t=this,n=document.createElement(e);return t.add=function(e){e.render(n)},t.render=function(e){e.appendChild(n)},t}}),n("meshstats",[],function(){return function(e){var t=this,n,r;return t.setData=function(e){var t=u(e.nodes.all.map(a)),i=u(e.nodes.all.filter(d).map(a)),s=u(e.nodes.all.filter(function(e){return!e.flags.online}).map(a)),o=u(e.nodes.new.map(a)),f=u(e.nodes.lost.map(a)),l=u(e.nodes.all.filter(d).map(function(e){return e.statistics.clients?e.statistics.clients.total:0})),c=u(Array.from(new Set(e.nodes.all.filter(d).map(function(e){return"gateway"in e.statistics&&e.statistics.gateway.id?e.statistics.gateway.id:e.statistics.gateway}).concat(e.nodes.all.filter(function(e){return e.flags.gateway})))).map(function(e){return typeof e=="string"?1:0})),h=[{count:i,label:"online"},{count:s,label:"offline"},{count:o,label:"neu"},{count:f,label:"verschwunden"}].filter(function(e){return e.count>0}).map(function(e){return[e.count,e.label].join(" ")}).join(", ");n.textContent=t+" Knoten "+"("+h+"), "+l+" Client"+(l===1?", ":"s, ")+c+" Gateways",r.textContent="Diese Daten sind von "+e.timestamp.format("LLLL")+"."},t.render=function(t){var i=document.createElement("h2");i.textContent=e.siteName,t.appendChild(i);var s=document.createElement("p");t.appendChild(s),n=document.createTextNode(""),s.appendChild(n),s.appendChild(document.createElement("br")),r=document.createTextNode(""),s.appendChild(r)},t}}),n("legend",[],function(){return function(){var e=this;return e.render=function(e){var t=document.createElement("p");t.setAttribute("class","legend"),e.appendChild(t);var n=document.createElement("span");n.setAttribute("class","legend-new");var r=document.createElement("span");r.setAttribute("class","symbol");var i=document.createTextNode(" Neuer Knoten");n.appendChild(r),n.appendChild(i),t.appendChild(n);var s=document.createElement("span");s.setAttribute("class","legend-online");var o=document.createElement("span");o.setAttribute("class","symbol");var u=document.createTextNode(" Knoten ist online");s.appendChild(o),s.appendChild(u),t.appendChild(s);var a=document.createElement("span");a.setAttribute("class","legend-offline");var f=document.createElement("span");f.setAttribute("class","symbol");var l=document.createTextNode(" Knoten ist offline");a.appendChild(f),a.appendChild(l),t.appendChild(a)},e}}),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof n&&n.amd)n("virtual-dom",[],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.virtualDom=e()}}(function(){var e,n,r;return function i(e,n,r){function s(u,a){if(!n[u]){if(!e[u]){var f=typeof t=="function"&&t;if(!a&&f)return f(u,!0);if(o)return o(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[u]={exports:{}};e[u][0].call(c.exports,function(t){var n=e[u][1][t];return s(n?n:t)},c,c.exports,i,e,n,r)}return n[u].exports}var o=typeof t=="function"&&t;for(var u=0;u<r.length;u++)s(r[u]);return s}({1:[function(e,t,n){var r=e("./vdom/create-element.js");t.exports=r},{"./vdom/create-element.js":15}],2:[function(e,t,n){var r=e("./vtree/diff.js");t.exports=r},{"./vtree/diff.js":35}],3:[function(e,t,n){var r=e("./virtual-hyperscript/index.js");t.exports=r},{"./virtual-hyperscript/index.js":22}],4:[function(e,t,n){var r=e("./diff.js"),i=e("./patch.js"),s=e("./h.js"),o=e("./create-element.js"),u=e("./vnode/vnode.js"),a=e("./vnode/vtext.js");t.exports={diff:r,patch:i,h:s,create:o,VNode:u,VText:a}},{"./create-element.js":1,"./diff.js":2,"./h.js":3,"./patch.js":13,"./vnode/vnode.js":31,"./vnode/vtext.js":33}],5:[function(e,t,n){t.exports=function(t){var n=String.prototype.split,r=/()??/.exec("")[1]===t,i;return i=function(e,i,s){if(Object.prototype.toString.call(i)!=="[object RegExp]")return n.call(e,i,s);var o=[],u=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":""),a=0,i=new RegExp(i.source,u+"g"),f,l,c,h;e+="",r||(f=new RegExp("^"+i.source+"$(?!\\s)",u)),s=s===t?-1>>>0:s>>>0;while(l=i.exec(e)){c=l.index+l[0].length;if(c>a){o.push(e.slice(a,l.index)),!r&&l.length>1&&l[0].replace(f,function(){for(var e=1;e<arguments.length-2;e++)arguments[e]===t&&(l[e]=t)}),l.length>1&&l.index<e.length&&Array.prototype.push.apply(o,l.slice(1)),h=l[0].length,a=c;if(o.length>=s)break}i.lastIndex===l.index&&i.lastIndex++}return a===e.length?(h||!i.test(""))&&o.push(""):o.push(e.slice(a)),o.length>s?o.slice(0,s):o},i}()},{}],6:[function(e,t,n){},{}],7:[function(e,t,n){"use strict";function o(e){var t=e[s];return t||(t=e[s]={}),t}var r=e("individual/one-version"),i="7";r("ev-store",i);var s="__EV_STORE_KEY@"+i;t.exports=o},{"individual/one-version":9}],8:[function(e,t,n){(function(e){"use strict";function r(e,t){return e in n?n[e]:(n[e]=t,t)}var n=typeof window!="undefined"?window:typeof e!="undefined"?e:{};t.exports=r}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],9:[function(e,t,n){"use strict";function i(e,t,n){var i="__INDIVIDUAL_ONE_VERSION_"+e,s=i+"_ENFORCE_SINGLETON",o=r(s,t);if(o!==t)throw new Error("Can only have one copy of "+e+".\n"+"You already have version "+o+" installed.\n"+"This means you cannot install version "+t);return r(i,n)}var r=e("./index.js");t.exports=i},{"./index.js":8}],10:[function(e,t,n){(function(n){var r=typeof n!="undefined"?n:typeof window!="undefined"?window:{},i=e("min-document");if(typeof document!="undefined")t.exports=document;else{var s=r["__GLOBAL_DOCUMENT_CACHE@4"];s||(s=r["__GLOBAL_DOCUMENT_CACHE@4"]=i),t.exports=s}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"min-document":6}],11:[function(e,t,n){"use strict";t.exports=function(t){return typeof t=="object"&&t!==null}},{}],12:[function(e,t,n){function s(e){return i.call(e)==="[object Array]"}var r=Array.isArray,i=Object.prototype.toString;t.exports=r||s},{}],13:[function(e,t,n){var r=e("./vdom/patch.js");t.exports=r},{"./vdom/patch.js":18}],14:[function(e,t,n){function s(e,t,n){for(var s in t){var a=t[s];a===undefined?o(e,s,a,n):i(a)?(o(e,s,a,n),a.hook&&a.hook(e,s,n?n[s]:undefined)):r(a)?u(e,t,n,s,a):e[s]=a}}function o(e,t,n,r){if(r){var s=r[t];if(!i(s))if(t==="attributes")for(var o in s)e.removeAttribute(o);else if(t==="style")for(var u in s)e.style[u]="";else typeof s=="string"?e[t]="":e[t]=null;else s.unhook&&s.unhook(e,t,n)}}function u(e,t,n,i,s){var o=n?n[i]:undefined;if(i==="attributes"){for(var u in s){var f=s[u];f===undefined?e.removeAttribute(u):e.setAttribute(u,f)}return}if(o&&r(o)&&a(o)!==a(s)){e[i]=s;return}r(e[i])||(e[i]={});var l=i==="style"?"":undefined;for(var c in s){var h=s[c];e[i][c]=h===undefined?l:h}}function a(e){if(Object.getPrototypeOf)return Object.getPrototypeOf(e);if(e.__proto__)return e.__proto__;if(e.constructor)return e.constructor.prototype}var r=e("is-object"),i=e("../vnode/is-vhook.js");t.exports=s},{"../vnode/is-vhook.js":26,"is-object":11}],15:[function(e,t,n){function f(e,t){var n=t?t.document||r:r,l=t?t.warn:null;e=a(e).a;if(u(e))return e.init();if(o(e))return n.createTextNode(e.text);if(!s(e))return l&&l("Item is not a valid virtual dom node",e),null;var c=e.namespace===null?n.createElement(e.tagName):n.createElementNS(e.namespace,e.tagName),h=e.properties;i(c,h);var p=e.children;for(var d=0;d<p.length;d++){var v=f(p[d],t);v&&c.appendChild(v)}return c}var r=e("global/document"),i=e("./apply-properties"),s=e("../vnode/is-vnode.js"),o=e("../vnode/is-vtext.js"),u=e("../vnode/is-widget.js"),a=e("../vnode/handle-thunk.js");t.exports=f},{"../vnode/handle-thunk.js":24,"../vnode/is-vnode.js":27,"../vnode/is-vtext.js":28,"../vnode/is-widget.js":29,"./apply-properties":14,"global/document":10}],16:[function(e,t,n){function i(e,t,n,r){return!n||n.length===0?{}:(n.sort(u),s(e,t,n,r,0))}function s(e,t,n,i,u){i=i||{};if(e){o(n,u,u)&&(i[u]=e);var a=t.children;if(a){var f=e.childNodes;for(var l=0;l<t.children.length;l++){u+=1;var c=a[l]||r,h=u+(c.count||0);o(n,u,h)&&s(f[l],c,n,i,u),u=h}}}return i}function o(e,t,n){if(e.length===0)return!1;var r=0,i=e.length-1,s,o;while(r<=i){s=(i+r)/2>>0,o=e[s];if(r===i)return o>=t&&o<=n;if(o<t)r=s+1;else{if(!(o>n))return!0;i=s-1}}return!1}function u(e,t){return e>t?1:-1}var r={};t.exports=i},{}],17:[function(e,t,n){function u(e,t,n){var i=e.type,o=e.vNode,u=e.patch;switch(i){case s.REMOVE:return a(t,o);case s.INSERT:return f(t,u,n);case s.VTEXT:return l(t,o,u,n);case s.WIDGET:return c(t,o,u,n);case s.VNODE:return h(t,o,u,n);case s.ORDER:return d(t,u),t;case s.PROPS:return r(t,u,o.properties),t;case s.THUNK:return v(t,n.patch(t,u,n));default:return t}}function a(e,t){var n=e.parentNode;return n&&n.removeChild(e),p(e,t),null}function f(e,t,n){var r=n.render(t,n);return e&&e.appendChild(r),e}function l(e,t,n,r){var i;if(e.nodeType===3)e.replaceData(0,e.length,n.text),i=e;else{var s=e.parentNode;i=r.render(n,r),s&&i!==e&&s.replaceChild(i,e)}return i}function c(e,t,n,r){var i=o(t,n),s;i?s=n.update(t,e)||e:s=r.render(n,r);var u=e.parentNode;return u&&s!==e&&u.replaceChild(s,e),i||p(e,t),s}function h(e,t,n,r){var i=e.parentNode,s=r.render(n,r);return i&&s!==e&&i.replaceChild(s,e),s}function p(e,t){typeof t.destroy=="function"&&i(t)&&t.destroy(e)}function d(e,t){var n=e.childNodes,r={},i,s,o;for(var u=0;u<t.removes.length;u++)s=t.removes[u],i=n[s.from],s.key&&(r[s.key]=i),e.removeChild(i);var a=n.length;for(var f=0;f<t.inserts.length;f++)o=t.inserts[f],i=r[o.key],e.insertBefore(i,o.to>=a++?null:n[o.to])}function v(e,t){return e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e),t}var r=e("./apply-properties"),i=e("../vnode/is-widget.js"),s=e("../vnode/vpatch.js"),o=e("./update-widget");t.exports=u},{"../vnode/is-widget.js":29,"../vnode/vpatch.js":32,"./apply-properties":14,"./update-widget":19}],18:[function(e,t,n){function a(e,t,n){return n=n||{},n.patch=n.patch&&n.patch!==a?n.patch:f,n.render=n.render||s,n.patch(e,t,n)}function f(e,t,n){var i=c(t);if(i.length===0)return e;var s=o(e,t.a,i),u=e.ownerDocument;!n.document&&u!==r&&(n.document=u);for(var a=0;a<i.length;a++){var f=i[a];e=l(e,s[f],t[f],n)}return e}function l(e,t,n,r){if(!t)return e;var s;if(i(n))for(var o=0;o<n.length;o++)s=u(n[o],t,r),t===e&&(e=s);else s=u(n,t,r),t===e&&(e=s);return e}function c(e){var t=[];for(var n in e)n!=="a"&&t.push(Number(n));return t}var r=e("global/document"),i=e("x-is-array"),s=e("./create-element"),o=e("./dom-index"),u=e("./patch-op");t.exports=a},{"./create-element":15,"./dom-index":16,"./patch-op":17,"global/document":10,"x-is-array":12}],19:[function(e,t,n){function i(e,t){return r(e)&&r(t)?"name"in e&&"name"in t?e.id===t.id:e.init===t.init:!1}var r=e("../vnode/is-widget.js");t.exports=i},{"../vnode/is-widget.js":29}],20:[function(e,t,n){"use strict";function i(e){if(!(this instanceof i))return new i(e);this.value=e}var r=e("ev-store");t.exports=i,i.prototype.hook=function(e,t){var n=r(e),i=t.substr(3);n[i]=this.value},i.prototype.unhook=function(e,t){var n=r(e),i=t.substr(3);n[i]=undefined}},{"ev-store":7}],21:[function(e,t,n){"use strict";function r(e){if(!(this instanceof r))return new r(e);this.value=e}t.exports=r,r.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)}},{}],22:[function(e,t,n){"use strict";function d(e,t,n){var r=[],s,o,u,a;return!n&&y(t)&&(n=t,o={}),o=o||t||{},s=c(e,o),o.hasOwnProperty("key")&&(u=o.key,o.key=undefined),o.hasOwnProperty("namespace")&&(a=o.namespace,o.namespace=undefined),s==="INPUT"&&!a&&o.hasOwnProperty("value")&&o.value!==undefined&&!f(o.value)&&(o.value=h(o.value)),m(o),n!==undefined&&n!==null&&v(n,r,s,o),new i(s,o,r,u,a)}function v(e,t,n,i){if(typeof e=="string")t.push(new s(e));else if(typeof e=="number")t.push(new s(String(e)));else if(g(e))t.push(e);else{if(!r(e)){if(e===null||e===undefined)return;throw b({foreignObject:e,parentVnode:{tagName:n,properties:i}})}for(var o=0;o<e.length;o++)v(e[o],t,n,i)}}function m(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if(f(n))continue;t.substr(0,3)==="ev-"&&(e[t]=p(n))}}function g(e){return o(e)||u(e)||a(e)||l(e)}function y(e){return typeof e=="string"||r(e)||g(e)}function b(e){var t=new Error;return t.type="virtual-hyperscript.unexpected.virtual-element",t.message="Unexpected virtual child passed to h().\nExpected a VNode / Vthunk / VWidget / string but:\ngot:\n"+w(e.foreignObject)+".\n"+"The parent vnode is:\n"+w(e.parentVnode),"\nSuggested fix: change your `h(..., [ ... ])` callsite.",t.foreignObject=e.foreignObject,t.parentVnode=e.parentVnode,t}function w(e){try{return JSON.stringify(e,null," ")}catch(t){return String(e)}}var r=e("x-is-array"),i=e("../vnode/vnode.js"),s=e("../vnode/vtext.js"),o=e("../vnode/is-vnode"),u=e("../vnode/is-vtext"),a=e("../vnode/is-widget"),f=e("../vnode/is-vhook"),l=e("../vnode/is-thunk"),c=e("./parse-tag.js"),h=e("./hooks/soft-set-hook.js"),p=e("./hooks/ev-hook.js");t.exports=d},{"../vnode/is-thunk":25,"../vnode/is-vhook":26,"../vnode/is-vnode":27,"../vnode/is-vtext":28,"../vnode/is-widget":29,"../vnode/vnode.js":31,"../vnode/vtext.js":33,"./hooks/ev-hook.js":20,"./hooks/soft-set-hook.js":21,"./parse-tag.js":23,"x-is-array":12}],23:[function(e,t,n){"use strict";function o(e,t){if(!e)return"DIV";var n=!t.hasOwnProperty("id"),o=r(e,i),u=null;s.test(o[1])&&(u="DIV");var a,f,l,c;for(c=0;c<o.length;c++){f=o[c];if(!f)continue;l=f.charAt(0),u?l==="."?(a=a||[],a.push(f.substring(1,f.length))):l==="#"&&n&&(t.id=f.substring(1,f.length)):u=f}return a&&(t.className&&a.push(t.className),t.className=a.join(" ")),t.namespace?u:u.toUpperCase()}var r=e("browser-split"),i=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,s=/^\.|#/;t.exports=o},{"browser-split":5}],24:[function(e,t,n){function u(e,t){var n=e,r=t;return o(t)&&(r=a(t,e)),o(e)&&(n=a(e,null)),{a:n,b:r}}function a(e,t){var n=e.vnode;n||(n=e.vnode=e.render(t));if(!(r(n)||i(n)||s(n)))throw new Error("thunk did not return a valid node");return n}var r=e("./is-vnode"),i=e("./is-vtext"),s=e("./is-widget"),o=e("./is-thunk");t.exports=u},{"./is-thunk":25,"./is-vnode":27,"./is-vtext":28,"./is-widget":29}],25:[function(e,t,n){function r(e){return e&&e.type==="Thunk"}t.exports=r},{}],26:[function(e,t,n){function r(e){return e&&(typeof e.hook=="function"&&!e.hasOwnProperty("hook")||typeof e.unhook=="function"&&!e.hasOwnProperty("unhook"))}t.exports=r},{}],27:[function(e,t,n){function i(e){return e&&e.type==="VirtualNode"&&e.version===r}var r=e("./version");t.exports=i},{"./version":30}],28:[function(e,t,n){function i(e){return e&&e.type==="VirtualText"&&e.version===r}var r=e("./version");t.exports=i},{"./version":30}],29:[function(e,t,n){function r(e){return e&&e.type==="Widget"}t.exports=r},{}],30:[function(e,t,n){t.exports="2"},{}],31:[function(e,t,n){function l(e,t,n,r,l){this.tagName=e,this.properties=t||a,this.children=n||f,this.key=r!=null?String(r):undefined,this.namespace=typeof l=="string"?l:null;var c=n&&n.length||0,h=0,p=!1,d=!1,v=!1,m;for(var g in t)if(t.hasOwnProperty(g)){var y=t[g];u(y)&&y.unhook&&(m||(m={}),m[g]=y)}for(var b=0;b<c;b++){var w=n[b];i(w)?(h+=w.count||0,!p&&w.hasWidgets&&(p=!0),!d&&w.hasThunks&&(d=!0),!v&&(w.hooks||w.descendantHooks)&&(v=!0)):!p&&s(w)?typeof w.destroy=="function"&&(p=!0):!d&&o(w)&&(d=!0)}this.count=c+h,this.hasWidgets=p,this.hasThunks=d,this.hooks=m,this.descendantHooks=v}var r=e("./version"),i=e("./is-vnode"),s=e("./is-widget"),o=e("./is-thunk"),u=e("./is-vhook");t.exports=l;var a={},f=[];l.prototype.version=r,l.prototype.type="VirtualNode"},{"./is-thunk":25,"./is-vhook":26,"./is-vnode":27,"./is-widget":29,"./version":30}],32:[function(e,t,n){function i(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}var r=e("./version");i.NONE=0,i.VTEXT=1,i.VNODE=2,i.WIDGET=3,i.PROPS=4,i.ORDER=5,i.INSERT=6,i.REMOVE=7,i.THUNK=8,t.exports=i,i.prototype.version=r,i.prototype.type="VirtualPatch"},{"./version":30}],33:[function(e,t,n){function i(e){this.text=String(e)}var r=e("./version");t.exports=i,i.prototype.version=r,i.prototype.type="VirtualText"},{"./version":30}],34:[function(e,t,n){function s(e,t){var n;for(var u in e){u in t||(n=n||{},n[u]=undefined);var a=e[u],f=t[u];if(a===f)continue;if(r(a)&&r(f))if(o(f)!==o(a))n=n||{},n[u]=f;else if(i(f))n=n||{},n[u]=f;else{var l=s(a,f);l&&(n=n||{},n[u]=l)}else n=n||{},n[u]=f}for(var c in t)c in e||(n=n||{},n[c]=t[c]);return n}function o(e){if(Object.getPrototypeOf)return Object.getPrototypeOf(e);if(e.__proto__)return e.__proto__;if(e.constructor)return e.constructor.prototype}var r=e("is-object"),i=e("../vnode/is-vhook");t.exports=s},{"../vnode/is-vhook":26,"is-object":11}],35:[function(e,t,n){function c(e,t){var n={a:e};return h(e,t,n,0),n}function h(e,t,n,r){if(e===t)return;var f=n[r],c=!1;if(a(e)||a(t))m(e,t,n,r);else if(t==null)u(e)||(d(e,n,r),f=n[r]),f=x(f,new i(i.REMOVE,e,t));else if(s(t))if(s(e))if(e.tagName===t.tagName&&e.namespace===t.namespace&&e.key===t.key){var h=l(e.properties,t.properties);h&&(f=x(f,new i(i.PROPS,e,h))),f=p(e,t,n,f,r)}else f=x(f,new i(i.VNODE,e,t)),c=!0;else f=x(f,new i(i.VNODE,e,t)),c=!0;else o(t)?o(e)?e.text!==t.text&&(f=x(f,new i(i.VTEXT,e,t))):(f=x(f,new i(i.VTEXT,e,t)),c=!0):u(t)&&(u(e)||(c=!0),f=x(f,new i(i.WIDGET,e,t)));f&&(n[r]=f),c&&d(e,n,r)}function p(e,t,n,r,o){var u=e.children,a=w(u,t.children),f=a.children,l=u.length,c=f.length,p=l>c?l:c;for(var d=0;d<p;d++){var v=u[d],m=f[d];o+=1,v?h(v,m,n,o):m&&(r=x(r,new i(i.INSERT,null,m))),s(v)&&v.count&&(o+=v.count)}return a.moves&&(r=x(r,new i(i.ORDER,e,a.moves))),r}function d(e,t,n){y(e,t,n),v(e,t,n)}function v(e,t,n){if(u(e))typeof e.destroy=="function"&&(t[n]=x(t[n],new i(i.REMOVE,e,null)));else if(s(e)&&(e.hasWidgets||e.hasThunks)){var r=e.children,o=r.length;for(var f=0;f<o;f++){var l=r[f];n+=1,v(l,t,n),s(l)&&l.count&&(n+=l.count)}}else a(e)&&m(e,null,t,n)}function m(e,t,n,r){var s=f(e,t),o=c(s.a,s.b);g(o)&&(n[r]=new i(i.THUNK,null,o))}function g(e){for(var t in e)if(t!=="a")return!0;return!1}function y(e,t,n){if(s(e)){e.hooks&&(t[n]=x(t[n],new i(i.PROPS,e,b(e.hooks))));if(e.descendantHooks||e.hasThunks){var r=e.children,o=r.length;for(var u=0;u<o;u++){var f=r[u];n+=1,y(f,t,n),s(f)&&f.count&&(n+=f.count)}}}else a(e)&&m(e,null,t,n)}function b(e){var t={};for(var n in e)t[n]=undefined;return t}function w(e,t){var n=S(t),r=n.keys,i=n.free;if(i.length===t.length)return{children:t,moves:null};var s=S(e),o=s.keys,u=s.free;if(u.length===e.length)return{children:t,moves:null};var a=[],f=0,l=i.length,c=0;for(var h=0;h<e.length;h++){var p=e[h],d;p.key?r.hasOwnProperty(p.key)?(d=r[p.key],a.push(t[d])):(d=h-c++,a.push(null)):f<l?(d=i[f++],a.push(t[d])):(d=h-c++,a.push(null))}var v=f>=i.length?t.length:i[f];for(var m=0;m<t.length;m++){var g=t[m];g.key?o.hasOwnProperty(g.key)||a.push(g):m>=v&&a.push(g)}var y=a.slice(),b=0,w=[],x=[],T;for(var N=0;N<t.length;){var C=t[N];T=y[b];while(T===null&&y.length)w.push(E(y,b,null)),T=y[b];!T||T.key!==C.key?C.key?(T&&T.key?r[T.key]!==N+1?(w.push(E(y,b,T.key)),T=y[b],!T||T.key!==C.key?x.push({key:C.key,to:N}):b++):x.push({key:C.key,to:N}):x.push({key:C.key,to:N}),N++):T&&T.key&&w.push(E(y,b,T.key)):(b++,N++)}while(b<y.length)T=y[b],w.push(E(y,b,T&&T.key));return w.length===c&&!x.length?{children:a,moves:null}:{children:a,moves:{removes:w,inserts:x}}}function E(e,t,n){return e.splice(t,1),{from:t,key:n}}function S(e){var t={},n=[],r=e.length;for(var i=0;i<r;i++){var s=e[i];s.key?t[s.key]=i:n.push(i)}return{keys:t,free:n}}function x(e,t){return e?(r(e)?e.push(t):e=[e,t],e):t}var r=e("x-is-array"),i=e("../vnode/vpatch"),s=e("../vnode/is-vnode"),o=e("../vnode/is-vtext"),u=e("../vnode/is-widget"),a=e("../vnode/is-thunk"),f=e("../vnode/handle-thunk"),l=e("./diff-props");t.exports=c},{"../vnode/handle-thunk":24,"../vnode/is-thunk":25,"../vnode/is-vnode":27,"../vnode/is-vtext":28,"../vnode/is-widget":29,"../vnode/vpatch":32,"./diff-props":34,"x-is-array":12}]},{},[4])(4)}),n("sorttable",["virtual-dom"],function(e){return function(t,n,r){function a(e){s=e===n?!s:!1,n=e,l()}function f(e){return function(){a(e)}}function l(){var a=[];if(i.length!==0){var l=t.map(function(t,r){var i={onclick:f(r),className:"sort-header"};return n===r&&(i.className+=s?" sort-up":" sort-down"),e.h("th",i,t.name)}),c=i.slice(0).sort(t[n].sort);if(t[n].reverse?!s:s)c=c.reverse();a.push(e.h("thead",e.h("tr",l))),a.push(e.h("tbody",c.map(r)))}var h=e.h("table",a);o=e.patch(o,e.diff(u,h)),u=h}var i,s=!1,o=document.createElement("table"),u=e.h("table");return this.setData=function(e){i=e,l()},this.el=o,this}}),n("linklist",["sorttable","virtual-dom"],function(e,t){function n(e){return(e.source.node?e.source.node.nodeinfo.hostname:e.source.id)+" "+e.target.node.nodeinfo.hostname}var r=[{name:"Knoten",sort:function(e,t){return n(e).localeCompare(n(t))},reverse:!1},{name:"TQ",sort:function(e,t){return e.tq-t.tq},reverse:!0},{name:"Typ",sort:function(e,t){return e.type.localeCompare(t.type)},reverse:!1},{name:"Entfernung",sort:function(e,t){return(e.distance===undefined?-1:e.distance)-(t.distance===undefined?-1:t.distance)},reverse:!0}];return function(i,s){function u(e){var r=[t.h("a",{href:"#",onclick:s.link(e)},n(e))],o=t.h("td",r),u=t.h("td",{style:{color:i(e.tq).hex()}},y(e)),a=t.h("td",e.type),f=t.h("td",g(e));return t.h("tr",[o,u,a,f])}var o=new e(r,2,u);this.render=function(e){var n=document.createElement("div");n.last=t.h("div"),e.appendChild(n);var r=document.createElement("h2");r.textContent="Verbindungen",n.appendChild(r),n.appendChild(o.el)},this.setData=function(e){o.setData(e.graph.links)}}}),function(){function e(e){this._value=e}function t(e,t,n,r){var i,s,o=Math.pow(10,t);return s=(n(e*o)/o).toFixed(t),r&&(i=new RegExp("0{1,"+r+"}$"),s=s.replace(i,"")),s}function r(e,t,n){var r;return r=t.indexOf("$")>-1?s(e,t,n):t.indexOf("%")>-1?o(e,t,n):t.indexOf(":")>-1?u(e,t):f(e._value,t,n)}function i(e,t){var n,r,i,s,o,u=t,f=["KB","MB","GB","TB","PB","EB","ZB","YB"],l=!1;if(t.indexOf(":")>-1)e._value=a(t);else if(t===g)e._value=0;else{for("."!==v[m].delimiters.decimal&&(t=t.replace(/\./g,"").replace(v[m].delimiters.decimal,".")),n=new RegExp("[^a-zA-Z]"+v[m].abbreviations.thousand+"(?:\\)|(\\"+v[m].currency.symbol+")?(?:\\))?)?$"),r=new RegExp("[^a-zA-Z]"+v[m].abbreviations.million+"(?:\\)|(\\"+v[m].currency.symbol+")?(?:\\))?)?$"),i=new RegExp("[^a-zA-Z]"+v[m].abbreviations.billion+"(?:\\)|(\\"+v[m].currency.symbol+")?(?:\\))?)?$"),s=new RegExp("[^a-zA-Z]"+v[m].abbreviations.trillion+"(?:\\)|(\\"+v[m].currency.symbol+")?(?:\\))?)?$"),o=0;o<=f.length&&!(l=t.indexOf(f[o])>-1?Math.pow(1024,o+1):!1);o++);e._value=(l?l:1)*(u.match(n)?Math.pow(10,3):1)*(u.match(r)?Math.pow(10,6):1)*(u.match(i)?Math.pow(10,9):1)*(u.match(s)?Math.pow(10,12):1)*(t.indexOf("%")>-1?.01:1)*((t.split("-").length+Math.min(t.split("(").length-1,t.split(")").length-1))%2?1:-1)*Number(t.replace(/[^0-9\.]+/g,"")),e._value=l?Math.ceil(e._value):e._value}return e._value}function s(e,t,n){var r,i,s=t.indexOf("$"),o=t.indexOf("("),u=t.indexOf("-"),a="";return t.indexOf(" $")>-1?(a=" ",t=t.replace(" $","")):t.indexOf("$ ")>-1?(a=" ",t=t.replace("$ ","")):t=t.replace("$",""),i=f(e._value,t,n),1>=s?i.indexOf("(")>-1||i.indexOf("-")>-1?(i=i.split(""),r=1,(o>s||u>s)&&(r=0),i.splice(r,0,v[m].currency.symbol+a),i=i.join("")):i=v[m].currency.symbol+a+i:i.indexOf(")")>-1?(i=i.split(""),i.splice(-1,0,a+v[m].currency.symbol),i=i.join("")):i=i+a+v[m].currency.symbol,i}function o(e,t,n){var r,i="",s=100*e._value;return t.indexOf(" %")>-1?(i=" ",t=t.replace(" %","")):t=t.replace("%",""),r=f(s,t,n),r.indexOf(")")>-1?(r=r.split(""),r.splice(-1,0,i+"%"),r=r.join("")):r=r+i+"%",r}function u(e){var t=Math.floor(e._value/60/60),n=Math.floor((e._value-60*t*60)/60),r=Math.round(e._value-60*t*60-60*n);return t+":"+(10>n?"0"+n:n)+":"+(10>r?"0"+r:r)}function a(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}function f(e,n,r){var i,s,o,u,a,f,l=!1,c=!1,h=!1,p="",d=!1,y=!1,b=!1,w=!1,E=!1,S="",x="",T=Math.abs(e),N=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],C="",k=!1;if(0===e&&null!==g)return g;if(n.indexOf("(")>-1?(l=!0,n=n.slice(1,-1)):n.indexOf("+")>-1&&(c=!0,n=n.replace(/\+/g,"")),n.indexOf("a")>-1&&(d=n.indexOf("aK")>=0,y=n.indexOf("aM")>=0,b=n.indexOf("aB")>=0,w=n.indexOf("aT")>=0,E=d||y||b||w,n.indexOf(" a")>-1?(p=" ",n=n.replace(" a","")):n=n.replace("a",""),T>=Math.pow(10,12)&&!E||w?(p+=v[m].abbreviations.trillion,e/=Math.pow(10,12)):T<Math.pow(10,12)&&T>=Math.pow(10,9)&&!E||b?(p+=v[m].abbreviations.billion,e/=Math.pow(10,9)):T<Math.pow(10,9)&&T>=Math.pow(10,6)&&!E||y?(p+=v[m].abbreviations.million,e/=Math.pow(10,6)):(T<Math.pow(10,6)&&T>=Math.pow(10,3)&&!E||d)&&(p+=v[m].abbreviations.thousand,e/=Math.pow(10,3))),n.indexOf("b")>-1)for(n.indexOf(" b")>-1?(S=" ",n=n.replace(" b","")):n=n.replace("b",""),o=0;o<=N.length;o++)if(i=Math.pow(1024,o),s=Math.pow(1024,o+1),e>=i&&s>e){S+=N[o],i>0&&(e/=i);break}return n.indexOf("o")>-1&&(n.indexOf(" o")>-1?(x=" ",n=n.replace(" o","")):n=n.replace("o",""),x+=v[m].ordinal(e)),n.indexOf("[.]")>-1&&(h=!0,n=n.replace("[.]",".")),u=e.toString().split(".")[0],a=n.split(".")[1],f=n.indexOf(","),a?(a.indexOf("[")>-1?(a=a.replace("]",""),a=a.split("["),C=t(e,a[0].length+a[1].length,r,a[1].length)):C=t(e,a.length,r),u=C.split(".")[0],C=C.split(".")[1].length?v[m].delimiters.decimal+C.split(".")[1]:"",h&&0===Number(C.slice(1))&&(C="")):u=t(e,null,r),u.indexOf("-")>-1&&(u=u.slice(1),k=!0),f>-1&&(u=u.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+v[m].delimiters.thousands)),0===n.indexOf(".")&&(u=""),(l&&k?"(":"")+(!l&&k?"-":"")+(!k&&c?"+":"")+u+C+(x?x:"")+(p?p:"")+(S?S:"")+(l&&k?")":"")}function l(e,t){v[e]=t}function c(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)}function h(){var e=Array.prototype.slice.call(arguments);return e.reduce(function(e,t){var n=c(e),r=c(t);return n>r?n:r},-1/0)}var p,d="1.5.3",v={},m="en",g=null,y="0,0",b="undefined"!=typeof module&&module.exports;p=function(t){return p.isNumeral(t)?t=t.value():0===t||"undefined"==typeof t?t=0:Number(t)||(t=p.fn.unformat(t)),new e(Number(t))},p.version=d,p.isNumeral=function(t){return t instanceof e},p.language=function(e,t){if(!e)return m;if(e&&!t){if(!v[e])throw new Error("Unknown language : "+e);m=e}return(t||!v[e])&&l(e,t),p},p.languageData=function(e){if(!e)return v[m];if(!v[e])throw new Error("Unknown language : "+e);return v[e]},p.language("en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),p.zeroFormat=function(e){g="string"==typeof e?e:null},p.defaultFormat=function(e){y="string"==typeof e?e:"0.0"},"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(e,t){"use strict";if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var n,r,i=this.length>>>0,s=!1;for(1<arguments.length&&(r=t,s=!0),n=0;i>n;++n)this.hasOwnProperty(n)&&(s?r=e(r,this[n],n,this):(r=this[n],s=!0));if(!s)throw new TypeError("Reduce of empty array with no initial value");return r}),p.fn=e.prototype={clone:function(){return p(this)},format:function(e,t){return r(this,e?e:y,void 0!==t?t:Math.round)},unformat:function(e){return"[object Number]"===Object.prototype.toString.call(e)?e:i(this,e?e:y)},value:function(){return this._value},valueOf:function(){return this._value},set:function(e){return this._value=Number(e),this},add:function(e){function t(e,t,r,i){return e+n*t}var n=h.call(null,this._value,e);return this._value=[this._value,e].reduce(t,0)/n,this},subtract:function(e){function t(e,t,r,i){return e-n*t}var n=h.call(null,this._value,e);return this._value=[e].reduce(t,this._value*n)/n,this},multiply:function(e){function t(e,t,n,r){var i=h(e,t);return e*i*t*i/(i*i)}return this._value=[this._value,e].reduce(t,1),this},divide:function(e){function t(e,t,n,r){var i=h(e,t);return e*i/(t*i)}return this._value=[this._value,e].reduce(t),this},difference:function(e){return Math.abs(p(this._value).subtract(e).value())}},b&&(module.exports=p),"undefined"==typeof ender&&(this.numeral=p),"function"==typeof n&&n.amd&&n("numeral",[],function(){return p})}.call(this),n("nodelist",["sorttable","virtual-dom","numeral"],function(e,t,n){function r(e,t){if(t.flags.online&&"uptime"in t.statistics)return Math.round(t.statistics.uptime);if(!t.flags.online&&"lastseen"in t)return Math.round(-(e.unix()-t.lastseen.unix()))}function i(e){var t="";return e/=3600,e!==undefined&&(Math.abs(e)>=24?t=Math.round(e/24)+"d":t=Math.round(e)+"h"),t}var s=[{name:"Knoten",sort:function(e,t){var n=typeof e.nodeinfo.hostname=="string"?e.nodeinfo.hostname:e.nodeinfo.node_id,r=typeof t.nodeinfo.hostname=="string"?t.nodeinfo.hostname:t.nodeinfo.node_id;return typeof n=="string"&&typeof r=="string"?n.localeCompare(r):typeof n=="string"?1:typeof r=="string"?-1:0},reverse:!1},{name:"Uptime",sort:function(e,t){return e.uptime-t.uptime},reverse:!0},{name:"#Links",sort:function(e,t){return e.meshlinks-t.meshlinks},reverse:!0},{name:"Clients",sort:function(e,t){return("clients"in e.statistics?e.statistics.clients.total:-1)-("clients"in t.statistics?t.statistics.clients.total:-1)},reverse:!0}];return function(o){function u(e){var r=[],s=["hostname",e.flags.online?"online":"offline"];r.push(t.h("a",{className:s.join(" "),onclick:o.node(e),href:"#!n:"+e.nodeinfo.node_id},e.nodeinfo.hostname)),v(e)&&r.push(t.h("span",{className:"icon ion-location"}));var u=t.h("td",r),a=t.h("td",i(e.uptime)),f=t.h("td",e.meshlinks.toString()),l=t.h("td",n("clients"in e.statistics?e.statistics.clients.total:"").format("0,0"));return t.h("tr",[u,a,f,l])}var a=new e(s,0,u);this.render=function(e){var t=document.createElement("div");e.appendChild(t);var n=document.createElement("h2");n.textContent="Alle Knoten",t.appendChild(n),t.appendChild(a.el)},this.setData=function(e){var t=e.nodes.all.map(function(t){var n=Object.create(t);return n.uptime=r(e.now,t)||0,n.meshlinks=t.meshlinks||0,n});a.setData(t)}}}),n("simplenodelist",["moment","virtual-dom"],function(e,t){return function(n,r,i,s){var o=this,u,a;return o.render=function(e){u=document.createElement("div"),e.appendChild(u)},o.setData=function(o){var f=o.nodes[n];if(f.length===0){while(u.firstChild)u.removeChild(u.firstChild);a=null;return}if(!a){var l=document.createElement("h2");l.textContent=s,u.appendChild(l);var c=document.createElement("table");u.appendChild(c),a=document.createElement("tbody"),a.last=t.h("tbody"),c.appendChild(a)}var h=f.map(function(n){var s=e(n[r]).from(o.now),u=[],a=["hostname",n.flags.online?"online":"offline"];u.push(t.h("a",{className:a.join(" "),onclick:i.node(n),href:"#!n:"+n.nodeinfo.node_id},n.nodeinfo.hostname)),v(n)&&u.push(t.h("span",{className:"icon ion-location"}));var f=t.h("td",u),l=t.h("td",s);return t.h("tr",[f,l])}),p=t.h("tbody",h);a=t.patch(a,t.diff(a.last,p)),a.last=p},o}}),n("infobox/link",[],function(){function e(e,t){var n={};return n["{SOURCE}"]=t.source.node_id,n["{SOURCE_NAME}"]=t.source.node.nodeinfo.hostname?t.source.node.nodeinfo.hostname:"unknown",n["{TARGET}"]=t.target.node_id,n["{TARGET_NAME}"]=t.target.node.nodeinfo.hostname?t.target.node.nodeinfo.hostname:"unknown",E(e,n)}return function(t,n,r,i){var s=!i.source.node,o=document.createElement("h2"),u=document.createElement("a");s||(u.href="#",u.onclick=r.node(i.source.node)),u.textContent=s?i.source.id:i.source.node.nodeinfo.hostname,o.appendChild(u),o.appendChild(document.createTextNode(" → "));var a=document.createElement("a");a.href="#",a.onclick=r.node(i.target.node),a.textContent=i.target.node.nodeinfo.hostname,o.appendChild(a),n.appendChild(o);var f=document.createElement("table");f.classList.add("attributes"),b(f,"TQ",y(i)),b(f,"Entfernung",g(i)),b(f,"Typ",i.type);var c=s?null:l(i.source.node.nodeinfo,["hardware","model"]),h=l(i.target.node.nodeinfo,["hardware","model"]);b(f,"Hardware",(c!=null?c:"unbekannt")+" "+(h!=null?h:"unbekannt")),n.appendChild(f),t.linkInfos&&t.linkInfos.forEach(function(t){var r=document.createElement("h4");r.textContent=t.name,n.appendChild(r),n.appendChild(e(t,i))})}}),!function(){function e(e,t){if(!e||"TABLE"!==e.tagName)throw new Error("Element must be a table");this.init(e,t||{})}var t=[],n=function(e){var t;return window.CustomEvent&&"function"==typeof window.CustomEvent?t=new CustomEvent(e):(t=document.createEvent("CustomEvent"),t.initCustomEvent(e,!1,!1,void 0)),t},r=function(e){return e.getAttribute("data-sort")||e.textContent||e.innerText||""},i=function(e,t){return e=e.toLowerCase(),t=t.toLowerCase(),e===t?0:t>e?1:-1},s=function(e,t){return function(n,r){var i=e(n.td,r.td);return 0===i?t?r.index-n.index:n.index-r.index:i}};e.extend=function(e,n,r){if("function"!=typeof n||"function"!=typeof r)throw new Error("Pattern and sort must be a function");t.push({name:e,pattern:n,sort:r})},e.prototype={init:function(e,t){var n,r,i,s,o=this;if(o.table=e,o.thead=!1,o.options=t,e.rows&&e.rows.length>0&&(e.tHead&&e.tHead.rows.length>0?(n=e.tHead.rows[e.tHead.rows.length-1],o.thead=!0):n=e.rows[0]),n){var u=function(){o.current&&o.current!==this&&(o.current.classList.remove("sort-up"),o.current.classList.remove("sort-down")),o.current=this,o.sortTable(this)};for(i=0;i<n.cells.length;i++)s=n.cells[i],s.classList.contains("no-sort")||(s.classList.add("sort-header"),s.addEventListener("click",u,!1),s.classList.contains("sort-default")&&(r=s));r&&(o.current=r,o.sortTable(r))}},sortTable:function(e,o){var u=this,a=e.cellIndex,f=i,l="",c=[],h=u.thead?0:1,p=e.getAttribute("data-sort-method");if(u.table.dispatchEvent(n("beforeSort")),!(u.table.rows.length<2)){if(!p){for(;c.length<3&&h<u.table.tBodies[0].rows.length;)l=r(u.table.tBodies[0].rows[h].cells[a]),l=l.trim(),l.length>0&&c.push(l),h++;if(!c)return}for(h=0;h<t.length;h++)if(l=t[h],p){if(l.name===p){f=l.sort;break}}else if(c.every(l.pattern)){f=l.sort;break}u.col=a;var d,v,m=[],g={},y=0,b=0;for(h=0;h<u.table.tBodies.length;h++)for(d=0;d<u.table.tBodies[h].rows.length;d++)l=u.table.tBodies[h].rows[d],l.classList.contains("no-sort")?g[y]=l:m.push({tr:l,td:r(l.cells[u.col]),index:y}),y++;for(o?v=e.classList.contains("sort-up")?"sort-up":"sort-down":(v=e.classList.contains("sort-up")?"sort-down":e.classList.contains("sort-down")?"sort-up":u.options.descending?"sort-up":"sort-down",e.classList.remove("sort-down"===v?"sort-up":"sort-down"),e.classList.add(v)),"sort-down"===v?(m.sort(s(f,!0)),m.reverse()):m.sort(s(f,!1)),h=0;y>h;h++)g[h]?(l=g[h],b++):l=m[h-b].tr,u.table.tBodies[0].appendChild(l);u.table.dispatchEvent(n("afterSort"))}},refresh:function(){void 0!==this.current&&this.sortTable(this.current,!0)}},"undefined"!=typeof module&&module.exports?module.exports=e:window.Tablesort=e}(),n("tablesort",function(e){return function(){var t,n;return t||e.Tablesort}}(this)),function(){var e=function(e){return e.replace(/[^\-?0-9.]/g,"")},t=function(e,t){return e=parseFloat(e),t=parseFloat(t),e=isNaN(e)?0:e,t=isNaN(t)?0:t,e-t};Tablesort.extend("number",function(e){return e.match(/^-?[£\x24Û¢´€]?\d+\s*([,\.]\d{0,2})/)||e.match(/^-?\d+\s*([,\.]\d{0,2})?[£\x24Û¢´€]/)||e.match(/^-?(\d)*-?([,\.]){0,1}-?(\d)+([E,e][\-+][\d]+)?%?$/)},function(n,r){return n=e(n),r=e(r),t(r,n)})}(),n("tablesort.numeric",["tablesort"],function(){}),n("infobox/node",["moment","numeral","tablesort","tablesort.numeric"],function(e,t,n){function r(e){function n(e){var n=Math.sign(e)>-1?"'N":"'S";e=Math.abs(e);var r=Math.floor(e),i=e*60%60;return r=(r<10?"0":"")+r,r+"° "+t(i).format("0.000")+n}function r(e){var n=Math.sign(e)>-1?"'E":"'W";e=Math.abs(e);var r=Math.floor(e),i=e*60%60;return r=(r<100?"0"+(r<10?"0":""):"")+r,r+"° "+t(i).format("0.000")+n}return v(e)?function(t){var i=e.nodeinfo.location.latitude,s=e.nodeinfo.location.longitude,o=document.createElement("a");o.textContent=n(i)+" "+r(s),o.href="geo:"+i+","+s,t.appendChild(o)}:undefined}function i(e){return function(t){t.classList.add(e.flags.unseen?"unseen":e.flags.online?"online":"offline"),e.flags.online?t.textContent="online, letzte Nachricht "+e.lastseen.fromNow()+" ("+e.lastseen.format("DD.MM.YYYY, H:mm:ss")+")":t.textContent="offline, letzte Nachricht "+e.lastseen.fromNow()+" ("+e.lastseen.format("DD.MM.YYYY, H:mm:ss")+")"}}function s(e){var t=l(e.nodeinfo,["software","firmware","release"]),n=l(e.nodeinfo,["software","firmware","base"]);return t===null||n===null?undefined:t+" / "+n}function o(e,t){var n=l(e.nodeinfo,["system","site_code"]),r=null;return t.siteNames&&(r=n,t.siteNames.forEach(function(e){n===e.site&&(r=e.name)})),r}function u(e,t){var n=l(e.nodeinfo,["system","domain_code"]),r=null;return t.domainNames&&(r=n,t.domainNames.forEach(function(e){n===e.domain&&(r=e.name)})),r}function a(t){return"uptime"in t.statistics?e.duration(t.statistics.uptime,"seconds").humanize():undefined}function f(e){return"firstseen"in e?e.firstseen.fromNow(!0):undefined}function c(e){if(!e.flags.online)return undefined;var t=h(e);p(e);var n=" (",r=" in der lokalen Wolke)";return function(i){const s=e.statistics&&e.statistics.clients&&!Number.isNaN(e.statistics.clients.total)?e.statistics.clients.total:0;i.appendChild(document.createTextNode(s>0?s:"keine")),i.appendChild(document.createTextNode(n)),i.appendChild(document.createTextNode(t>0?t:"keine")),i.appendChild(document.createTextNode(r)),i.appendChild(document.createElement("br"));var o=S(e.statistics);for(var u in o){var a=o[u],f=document.createElement("span");f.classList.add("clients"),f.textContent=" ".repeat(a.count),f.style.color=a.color,i.appendChild(f)}var l=document.createElement("span");l.classList.add("clientsMesh"),l.textContent=" ".repeat(t-s),i.appendChild(l)}}function h(e){var t=0;return e.statistics&&e.statistics.clients&&!isNaN(e.statistics.clients.total)&&(t=e.statistics.clients.total),e?e.parsed?0:(e.parsed=1,e.neighbours.forEach(function(e){!e.link.isVPN&&e.node&&(t+=h(e.node))}),t):0}function p(e){if(!e.parsed)return;e.parsed=0,e.neighbours.forEach(function(e){!e.link.isVPN&&e.node&&p(e.node)});return}function d(e){if(!e.flags.online)return undefined;var t=h(e);return p(e),function(e){e.appendChild(document.createTextNode(t>0?t:"keine")),e.appendChild(document.createElement("br"))}}function m(e){var t=l(e.nodeinfo,["network","addresses"]);return t===null?undefined:(t.sort(),function(e){t.forEach(function(t,n){var r=!t.startsWith("fe80:");n>0&&e.appendChild(document.createElement("br"));if(r){var i=document.createElement("a");t.includes(".")?i.href="http://"+t+"/":i.href="http://["+t+"]/",i.textContent=t,e.appendChild(i)}else e.appendChild(document.createTextNode(t))})})}function w(e,t){var n=document.createElement("span");n.classList.add("bar"),n.classList.add(e);var r=document.createElement("span");r.style.width=t*100+"%",n.appendChild(r);var i=document.createElement("label");return i.textContent=Math.round(t*100)+" %",n.appendChild(i),n}function x(e,t){var n=document.createElement("span");n.classList.add("bar"),n.classList.add(e);var r=document.createElement("span");t>=1?(r.style.width=t*100%100+"%",r.style.background="rgba(255, 50, 50, 0.9)",n.style.background="rgba(255, 50, 50, 0.6)",n.appendChild(r)):(r.style.width=t*100+"%",n.appendChild(r));var i=document.createElement("label");return i.textContent=+(Math.round(t+"e+2")+"e-2"),n.appendChild(i),n}function T(e){return"loadavg"in e.statistics?function(t){t.appendChild(x("load-avg",e.statistics.loadavg))}:undefined}function N(e){return"memory_usage"in e.statistics?function(t){t.appendChild(w("memory-usage",e.statistics.memory_usage))}:undefined}function C(e){e.wait=e.busy-e.rx-e.tx;var t=document.createElement("span");t.classList.add("bar"),t.classList.add("airtime"),t.setAttribute("title","RX:"+Math.round(e.rx*100)+"%, TX:"+Math.round(e.tx*100)+"%, Wait:"+Math.round(e.wait*100)+"%");var n=document.createElement("span");n.style.width=e.rx*100+"%",n.style.background="rgba(85, 128, 32, 0.8)",t.appendChild(n);var r=document.createElement("span");r.style.width=e.tx*100+"%",r.style.background="rgba(233, 85, 32, 1)",t.appendChild(r);var i=document.createElement("span");i.style.width=e.wait*100+"%",i.style.background="rgba(32, 85, 128, 1)",t.appendChild(i),t.style.background="rgba(85, 128, 32, 0.5)";var s=document.createElement("label");return s.textContent=Math.round(e.busy*100)+" %",t.appendChild(s),function(e){e.appendChild(t)}}function k(e,t){if(!e)return document.createTextNode("unknown");var n=!e.node,r=n?e.id?e.id:e:e.node.nodeinfo.hostname;if(!n){var i=document.createElement("a");return i.classList.add("hostname-link"),i.href="#",i.onclick=t.node(e.node),i.textContent=r,i}return document.createTextNode(r)}function L(e,t){var n;l(e.statistics,["nexthop"])&&(n=l(e.statistics,["nexthop"])),l(e.statistics,["gateway_nexthop"])&&(n=l(e.statistics,["gateway_nexthop"]));var r=l(e.statistics,["gateway"]);return r?function(e){var i=0;while(r&&n&&r.id!==n.id&&i<10){i!==0&&e.appendChild(document.createTextNode(" -> ")),e.appendChild(k(n,t)),i++;if(!n.node||!n.node.statistics)break;if(!l(n.node.statistics,["gateway"])||!l(n.node.statistics,["gateway"]).id)break;if(l(n.node.statistics,["gateway"]).id!==r.id)break;if(l(n.node.statistics,["gateway_nexthop"]))n=l(n.node.statistics,["gateway_nexthop"]);else{if(!l(n.node.statistics,["nexthop"]))break;n=l(n.node.statistics,["nexthop"])}}r&&n&&r.id!==n.id&&(i!==0&&e.appendChild(document.createTextNode(" -> ")),i++,e.appendChild(document.createTextNode("..."))),i!==0&&e.appendChild(document.createTextNode(" -> ")),e.appendChild(k(r,t))}:null}function A(e){var t=l(e.nodeinfo,["pages"]);return t===null?undefined:(t.sort(),function(e){t.forEach(function(t,n){n>0&&e.appendChild(document.createElement("br"));var r=document.createElement("span"),i=document.createElement("a");i.href=t;if(t.search(/^https:\/\//i)!==-1){var s=document.createElement("span");s.className="ion-android-lock",r.appendChild(s);var o=document.createTextNode(" ");r.appendChild(o),i.textContent=t.replace(/^https:\/\//i,"")}else i.textContent=t.replace(/^http:\/\//i,"");r.appendChild(i),e.appendChild(r)})})}function O(e){var t=l(e.nodeinfo,["software","autoupdater"]);return t?t.enabled?"aktiviert ("+t.branch+")":"deaktiviert":undefined}function M(e,t){if(!t)return document.createTextNode("Knotenname");var n,r,i=t.split("").reduce(function(e,t){return e=(e<<5)-e+t.charCodeAt(0),e&e},0);n=document.createElement("img"),n.id="routerpicture",n.classList.add("nodeImg"),n.src=e.thumbnail.replace("{MODELHASH}",i),n.onerror=function(){document.getElementById("routerpicdiv").outerHTML="Knotenname"},e.caption&&(r=e.caption.replace("{MODELHASH}",i),n||(n=document.createTextNode(r)));var s=document.createElement("p");return s.appendChild(n),n}function _(e,t){var n={};return n["{NODE_ID}"]=t.nodeinfo.node_id?t.nodeinfo.node_id:"unknown",n["{NODE_NAME}"]=t.nodeinfo.hostname?t.nodeinfo.hostname:"unknown",E(e,n)}return function(e,t,h,p){var w=document.createElement("table");w.classList.add("attributes");if(e.hwImg){var E=document.createElement("div");E.id="routerpicdiv";try{e.hwImg.forEach(function(e){try{E.appendChild(M(e,l(p,["nodeinfo","hardware","model"])))}catch(t){console.log(t.message)}})}catch(S){console.log(S.message)}b(w,E,p.nodeinfo.hostname)}else{var x=document.createElement("h2");x.textContent=p.nodeinfo.hostname,t.appendChild(x)}b(w,"Status",i(p)),b(w,"Gateway",p.flags.gateway?"ja":null),b(w,"Koordinaten",r(p)),e.showContact&&b(w,"Kontakt",l(p.nodeinfo,["owner","contact"])),b(w,"Hardware",l(p.nodeinfo,["hardware","model"])),b(w,"Primäre MAC",l(p.nodeinfo,["network","mac"])),b(w,"Node ID",l(p.nodeinfo,["node_id"])),b(w,"Firmware",s(p)),b(w,"Site",o(p,e)),b(w,"Domain",u(p,e)),b(w,"Uptime",a(p)),b(w,"Teil des Netzes",f(p));if("airtime"in p.statistics){var D=p.statistics.airtime.sort(function(e,t){return e.frequency-t.frequency});for(var P in D){var H=D[P],B=Math.floor(H.frequency/1e3),j;B===2?j="Kanal "+(H.frequency-2407)/5:B===5?j="Kanal "+(H.frequency-5e3)/5:j=H.frequency.toString()+" MHz",b(w,"Airtime "+j,C(H))}}b(w,"Systemlast",T(p)),b(w,"Arbeitsspeicher",N(p)),b(w,"IP Adressen",m(p)),b(w,"Webseite",A(p)),b(w,"Gewähltes Gateway",L(p,h)),b(w,"Autom. Updates",O(p)),b(w,"Clients",c(p),d(p)),t.appendChild(w),e.nodeInfos&&e.nodeInfos.forEach(function(e){var n=document.createElement("h4");n.textContent=e.name,t.appendChild(n),t.appendChild(_(e,p))});if(p.neighbours.length>0){var F=document.createElement("h3");F.textContent="Links ("+p.neighbours.length+")",t.appendChild(F);var I=document.createElement("table"),q=document.createElement("thead"),R=document.createElement("tr"),U=document.createElement("th");U.textContent=" ",R.appendChild(U);var z=document.createElement("th");z.textContent="Knoten",z.classList.add("sort-default"),R.appendChild(z);var W=document.createElement("th");W.textContent="TQ",R.appendChild(W);var X=document.createElement("th");X.textContent="Typ",R.appendChild(X);var V=document.createElement("th");V.textContent="Entfernung",R.appendChild(V),q.appendChild(R),I.appendChild(q);var $=document.createElement("tbody");p.neighbours.forEach(function(e){var t=!e.node,n=document.createElement("tr"),r=document.createElement("td");r.appendChild(document.createTextNode(e.incoming?" ← ":" → ")),n.appendChild(r);var i=document.createElement("td");i.appendChild(k(e,h));if(!t&&v(e.node)){var s=document.createElement("span");s.classList.add("icon"),s.classList.add("ion-location"),i.appendChild(s)}n.appendChild(i);var o=document.createElement("td"),u=document.createElement("a");u.href="#",u.textContent=y(e.link),u.onclick=h.link(e.link),o.appendChild(u),n.appendChild(o);var a=document.createElement("td"),f=document.createElement("a");f.href="#",f.textContent=e.link.type,f.onclick=h.link(e.link),a.appendChild(f),n.appendChild(a);var l=document.createElement("td"),c=document.createElement("a");c.href="#",c.textContent=g(e.link),c.onclick=h.link(e.link),l.appendChild(c),l.setAttribute("data-sort",e.link.distance!==undefined?-e.link.distance:1),n.appendChild(l),$.appendChild(n)}),I.appendChild($),I.className="node-links",new n(I),t.appendChild(I)}}}),n("infobox/location",[],function(){return function(e,t,n,r){function h(e,t,n,r){var i=typeof r!="undefined"?r:!0,s=document.createElement("div"),o=document.createElement("h3");o.textContent=t,s.appendChild(o);var u=document.createElement("button");u.className="ion-ios-copy",u.title="Kopieren",u.onclick=function(){p(n.id)},n.id="location-"+e,n.readOnly=!0;var a=document.createElement("p");return a.appendChild(n),a.appendChild(u),s.appendChild(a),s.id="box-"+e,s.style.display=i?"block":"none",s}function p(e){var t=document.querySelector("#"+e);t.select();try{document.execCommand("copy")}catch(n){console.log(n)}}function d(){document.getElementById("box-uci").style.display="none",document.getElementById("box-lat").style.display="block",document.getElementById("box-lng").style.display="block"}function v(){document.getElementById("box-uci").style.display="block",document.getElementById("box-lat").style.display="none",document.getElementById("box-lng").style.display="none"}var s=document.createElement("h2");s.textContent="Location: "+r.toString(),t.appendChild(s),i("https://nominatim.openstreetmap.org/reverse?format=json&lat="+r.lat+"&lon="+r.lng+"&zoom=18&addressdetails=0").then(function(e){e.display_name&&(s.textContent=e.display_name)});var o=document.createElement("input");o.type="text",o.value=r.lat.toFixed(9),t.appendChild(h("lat","Breitengrad",o));var u=document.createElement("input");u.type="text",u.value=r.lng.toFixed(9),t.appendChild(h("lng","Längengrad",u));var a=document.createElement("textarea");a.value="uci set gluon-node-info.@location[0]='location'; uci set gluon-node-info.@location[0].share_location='1';uci set gluon-node-info.@location[0].latitude='"+r.lat.toFixed(9)+"';"+"uci set gluon-node-info.@location[0].longitude='"+r.lng.toFixed(9)+"';"+"uci commit gluon-node-info",t.appendChild(h("uci","Befehl",a,!1));var f=document.createElement("a");f.textContent="plain",f.onclick=function(){return d(),!1},f.href="#";var l=document.createElement("a");l.textContent="uci",l.onclick=function(){return v(),!1},l.href="#";var c=document.createElement("p");c.appendChild(document.createTextNode("Du kannst zwischen ")),c.appendChild(f),c.appendChild(document.createTextNode(" und ")),c.appendChild(l),c.appendChild(document.createTextNode(" wechseln.")),t.appendChild(c)}}),n("infobox/main",["infobox/link","infobox/node","infobox/location"],function(e,t,n){return function(r,i,s){function a(){u&&u.parentNode&&(u.parentNode.removeChild(u),u=undefined,i.reveal())}function f(){a(),i.ensureVisible(),i.hide(),u=document.createElement("div"),i.container.insertBefore(u,i.container.firstChild),u.scrollIntoView(!1),u.classList.add("infobox"),u.destroy=a;var e=document.createElement("button");e.classList.add("close"),e.onclick=s.reset,u.appendChild(e)}var o=this,u;return o.resetView=a,o.gotoNode=function(e){f(),new t(r,u,s,e)},o.gotoLink=function(t){f(),new e(r,u,s,t)},o.gotoLocation=function(e){f(),new n(r,u,s,e)},o}}),!function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(e){var t=e%100;return 0!==e&&1>=t||8===t||t>=20?"ste":"de"},currency:{symbol:"€ "}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("be-nl",e)}(),function(){var e={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(e){return"."},currency:{symbol:"¥"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("chs",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Kč"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("cs",e)}(),function(){var e={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(e){return"."},currency:{symbol:"DKK"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("da-dk",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"CHF"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("de-ch",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("de",e)}(),function(){var e={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"£"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("en-gb",e)}(),function(){var e={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"£"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("en",e)}(),function(){var e={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("es",e)}(),function(){var e={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("es",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(e){return"."},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("et",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("fi",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"$"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("fr-CA",e)}(),function(){var e={delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"CHF"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("fr-ch",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("fr",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:" Ft"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("hu",e)}(),function(){var e={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(e){return"º"},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("it",e)}(),function(){var e={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(e){return"."},currency:{symbol:"¥"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("ja",e)}(),function(){var e={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&1>=t||8===t||t>=20?"ste":"de"},currency:{symbol:"€ "}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("nl-nl",e)}(),function(){var e={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&1>=t||8===t||t>=20?"ste":"de"},currency:{symbol:"€ "}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("nl",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(e){return"."},currency:{symbol:"PLN"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("pl",e)}(),function(){var e={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(e){return"º"},currency:{symbol:"R$"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("pt-br",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"º"},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("pt-pt",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("ru-UA",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"руб."}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("ru",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("sk",e)}(),function(){var e={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(e){return"."},currency:{symbol:"฿"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("th",e)}(),function(){var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},t={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(t){if(0===t)return"'ıncı";var n=t%10,r=t%100-n,i=t>=100?100:null;return e[n]||e[r]||e[i]},currency:{symbol:"₺"}};"undefined"!=typeof module&&module.exports&&(module.exports=t),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("tr",t)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:function(){return""},currency:{symbol:"₴"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("uk-UA",e)}(),n("numeral-intl",["numeral"],function(e){return function(){var t,n;return t||e.numeral}}(this)),n("filters/genericnode",[],function(){return function(e,t,n,r){function a(e){var s=l(e,t.slice(0));return r&&(s=r(s)),s===n?!i:i}function f(e){s=e}function c(e){i?e.parentNode.classList.add("not"):e.parentNode.classList.remove("not"),u.textContent=(i?"¬":"")+n}function h(e){e.appendChild(o),c(e),o.onclick=function(){i=!i,c(e),s&&s()}}var i=!1,s,o=document.createElement("label"),u=document.createElement("strong");return o.textContent=e+" ",o.appendChild(u),{run:a,setRefresh:f,render:h}}}),n("vercomp",[],function(){function e(e){return/^\d$/.test(e)?0:/^[a-z]$/i.test(e)?e.charCodeAt(0):e==="~"?-1:e?e.charCodeAt(0)+256:0}function t(t,n){var r=0,i=0;while(r<t.length||i<n.length){var s=0;while(r<t.length&&!/^\d$/.test(t[r])||i<n.length&&!/^\d$/.test(n[i])){var o=e(t[r]),u=e(n[i]);if(o!==u)return o-u;r++,i++}while(t[r]==="0")r++;while(n[i]==="0")i++;while(/^\d$/.test(t[r])&&/^\d$/.test(n[i]))s===0&&(s=t.charCodeAt(r)-n.charCodeAt(i)),r++,i++;if(/^\d$/.test(t[r]))return 1;if(/^\d$/.test(n[i]))return-1;if(s!==0)return s}return 0}return t}),n("proportions",["chroma-js","virtual-dom","numeral-intl","filters/genericnode","vercomp"],function(e,t,n,r,i){return function(s,o){function S(e){return E(e)}function x(e,t,n){var r={};return e.forEach(function(e){var i=l(e,t.slice(0));n!==undefined&&(i=n(i));if(i===null)return;r[i]=1+(i in r?r[i]:0)}),Object.keys(r).map(function(e){return[e,r[e],t,n]})}function T(e,t,n){var r={};return e.forEach(function(e){var i=l(e,t.slice(0));n!==undefined&&(i=n(i));if(i===null)return;r[i]=e.statistics.clients.total+(i in r?r[i]:0)}),Object.keys(r).map(function(e){return[e,r[e],t,n]})}function N(e){return function(){return o.addFilter(e),!1}}function C(i,s,o){s.last||(s.last=t.h("table"));var u=0;o.forEach(function(e){e[1]>u&&(u=e[1])});var f=o.map(function(s){var o=s[1]/u,f=e.contrast(a(o),"white"),l=e.contrast(a(o),"black"),c=new r(i,s[2],s[0],s[3]),h=t.h("a",{href:"#",onclick:N(c)},s[0]),p=t.h("th",h),d=t.h("td",t.h("span",{style:{width:Math.round(o*100)+"%",backgroundColor:a(o).hex(),color:f>l?"white":"black"}},n(s[1]).format("0,0")));return t.h("tr",[p,d])}),l=t.h("table",f);s=t.patch(s,t.diff(s.last,l)),s.last=l}var u=this,a=e.scale("YlGnBu").mode("lab"),f=document.createElement("table");f.classList.add("proportion");var c=document.createElement("table");c.classList.add("proportion");var h=document.createElement("table");h.classList.add("proportion");var p=document.createElement("table");p.classList.add("proportion");var v=document.createElement("table");v.classList.add("proportion");var m=document.createElement("table");m.classList.add("proportion");var g=document.createElement("table");g.classList.add("proportion");var y=document.createElement("table");y.classList.add("proportion");var b=document.createElement("table");b.classList.add("proportion");var w=document.createElement("table");return w.classList.add("proportion"),u.setData=function(e){var t=e.nodes.all.filter(d),n=t.concat(e.nodes.lost),r={};e.nodes.all.forEach(function(e){r[e.nodeinfo.node_id]=e});var o=x(n,["flags","online"],function(e){return e?"online":"offline"}),u=x(n,["nodeinfo","software","firmware","release"]),a=x(n,["nodeinfo","hardware","model"],function(e){return e&&(e=e.replace(/\(r\)|\(tm\)/gi,"").replace(/AMD |Intel |TP-Link | CPU| Processor/g,""),e.indexOf("@")>0&&(e=e.substring(0,e.indexOf("@")))),e}),l=x(n,["nodeinfo","location"],function(e){return e&&e.longitude&&e.latitude?"ja":"nein"}),E=x(n,["nodeinfo","software","autoupdater"],function(e){return e===null?null:e.enabled?e.branch:"(deaktiviert)"}),S=x(n,["flags","uplink"],function(e){return e?"ja":"nein"}),N=x(t,["statistics","gateway"],function(e){return e===null?null:e.node?e.node.nodeinfo.hostname:e.id?e.id:e}),k=T(t,["statistics","gateway"],function(e){return e===null?null:e.node?e.node.nodeinfo.hostname:e.id?e.id:e}),L=x(n,["nodeinfo","system","site_code"],function(e){var t=e;return s.siteNames&&s.siteNames.forEach(function(n){e===n.site&&(t=n.name)}),t}),A=x(n,["nodeinfo","system","domain_code"],function(e){var t=e;return s.domainNames&&s.domainNames.forEach(function(n){e===n.domain&&(t=n.name)}),t});C("Status",f,o.sort(function(e,t){return t[1]-e[1]})),C("Firmware",c,u.sort(function(e,t){return i(t[0],e[0])})),C("Hardware",h,a.sort(function(e,t){return t[1]-e[1]})),C("Koordinaten",p,l.sort(function(e,t){return t[1]-e[1]})),C("Uplink",m,S.sort(function(e,t){return t[1]-e[1]})),C("Autom. Updates",v,E.sort(function(e,t){return t[1]-e[1]})),C("Gateway",g,N.sort(function(e,t){return t[1]-e[1]})),C("Gateway",y,k.sort(function(e,t){return t[1]-e[1]})),C("Site",b,L.sort(function(e,t){return t[1]-e[1]})),C("Domain",w,A.sort(function(e,t){return t[1]-e[1]}))},u.render=function(e){var t;u.renderSingle(e,"Status",f),u.renderSingle(e,"Nodes an Gateway",g),u.renderSingle(e,"Clients an Gateway",y),u.renderSingle(e,"Firmwareversionen",c),u.renderSingle(e,"Uplink",m),u.renderSingle(e,"Hardwaremodelle",h),u.renderSingle(e,"Auf der Karte sichtbar",p),u.renderSingle(e,"Autoupdater",v),s.siteNames&&u.renderSingle(e,"Site",b),s.domainNames&&u.renderSingle(e,"Domain",w),s.globalInfos&&s.globalInfos.forEach(function(n){t=document.createElement("h2"),t.textContent=n.name,e.appendChild(t),e.appendChild(S(n))})},u.renderSingle=function(e,t,n){var r;r=document.createElement("h2"),r.textContent=t,r.onclick=function(){n.classList.toggle("hidden")},e.appendChild(r),e.appendChild(n)},u}}),n("forcegraph",["d3"],function(e){var t=200,n=15,r=7;return function(i,s,o,u){function D(e){return Math.sqrt(e.length/Math.PI)*_*1.41}function P(){if(!c())return;var e=b.map(function(e){return{id:e.o.id,x:e.x,y:e.y}});localStorage.setItem("graph/nodeposition",JSON.stringify(e))}function H(e){return e.o.node&&e.o.node.nodeinfo?e.o.node.nodeinfo.hostname:e.o.id}function B(){var t=rt(e.mouse(g)),r=b.filter(function(e){return tt(t,e)<n});if(r.length===0)return;M=r[0],e.event.sourceEvent.stopPropagation(),e.event.sourceEvent.preventDefault(),M.fixed|=2,M.px=M.x,M.py=M.y}function j(){if(M){var t=rt(e.mouse(g));M.px=t.x,M.py=t.y,m.resume()}}function F(){M&&(e.event.sourceEvent.stopPropagation(),e.event.sourceEvent.preventDefault(),M.fixed&=-3,M=undefined)}function q(t,n){var r=v.translate(),i=v.scale();if(!y)v.translate(t),v.scale(n),U();else{var s={x:r[0],y:r[1],scale:i},o={x:t[0],y:t[1],scale:n},u=e.interpolateObject(s,o),a=500,f=e.ease("cubic-in-out");e.timer(function(e){if(e>=a)return!0;var t=u(f(e/a));return v.translate([t.x,t.y]),v.scale(t.scale),U(),!1})}}function R(){O={translate:v.translate(),scale:v.scale()},U()}function U(){var e=v.translate(),t=v.scale();z(e,t)}function z(e,t){h={left:-e[0]/t,top:-e[1]/t,right:(f.width-e[0])/t,bottom:(f.height-e[1])/t},requestAnimationFrame(G)}function W(){var e=o(),t=g.offsetWidth-e,n=g.offsetHeight;return[t,n]}function X(e,t){var n=o(),r=W(),i=Math.max(1,t[0]-e[0]),s=Math.max(1,t[1]-e[1]),u=r[0]/i,a=r[1]/s,f=v.scaleExtent()[1],l=.5*Math.min(f,Math.min(u,a)),c=[(e[0]+t[0])/2,(e[1]+t[1])/2],h=-c[0]*l+r[0]/2,p=-c[1]*l+r[1]/2,d=[h+n,p];q(d,l)}function V(t){S=[],T=[];if(E!==undefined){if(E.type==="node"){var n=p[E.o.nodeinfo.node_id];n&&(S=[n],t||X([n.x,n.y],[n.x,n.y]));return}if(E.type==="link"){var r=d[E.o.id];if(r){T=[r];if(!t){var i=e.extent([r.source,r.target],function(e){return e.x}),s=e.extent([r.source,r.target],function(e){return e.y});X([i[0],s[0]],[i[1],s[1]])}}return}}t||(O?q(O.translate,O.scale):X([0,0],m.size()))}function $(e){var t=e.neighbours.filter(function(e){return!e.link.o.isVPN}),n=t.reduce(function(e,t){return[e[0]+t.node.x,e[1]+t.node.y]},[0,0]),r=n[0]-e.x*t.length,i=n[1]-e.y*t.length,s=Math.PI/2;t.length>0&&(s=Math.PI+Math.atan2(i,r));var o=Math.cos(s),u=Math.sin(s),a=e.labelWidth,f=e.labelHeight,c=e.x+e.labelA*Math.pow(Math.abs(o),.4)*Math.sign(o)-a/2,h=e.y+e.labelB*Math.pow(Math.abs(u),.4)*Math.sign(u)-f/2;l.drawImage(e.label,c,h,a,f)}function J(e){return e.o.isVPN||e.source.x>h.left&&e.source.x<h.right&&e.source.y>h.top&&e.source.y<h.bottom||e.target.x>h.left&&e.target.x<h.right&&e.target.y>h.top&&e.target.y<h.bottom}function K(e){return e.x+t>h.left&&e.x-t<h.right&&e.y+t>h.top&&e.y-t<h.bottom}function Q(e,t,n,r){var i=document.createElement("canvas");i.width=n*t*8*r,i.height=i.width;var s=i.getContext("2d");return s.scale(n*r,n*r),s.save(),s.translate(-i.width/n,-i.height/n),s.lineWidth=t,s.beginPath(),s.moveTo(t,0),s.arc(0,0,t,0,2*Math.PI),s.strokeStyle="rgba(255, 0, 0, 1)",s.shadowOffsetX=i.width*1.5+0,s.shadowOffsetY=i.height*1.5+3,s.shadowBlur=12,s.shadowColor="rgba(0, 0, 0, 0.16)",s.stroke(),s.shadowOffsetX=i.width*1.5+0,s.shadowOffsetY=i.height*1.5+3,s.shadowBlur=12,s.shadowColor="rgba(0, 0, 0, 0.23)",s.stroke(),s.restore(),s.translate(i.width/2/n/r,i.height/2/n/r),s.beginPath(),s.moveTo(t,0),s.arc(0,0,t,0,2*Math.PI),s.strokeStyle=e,s.lineWidth=t,s.stroke(),i}function G(){var e=window.devicePixelRatio,t=v.translate(),n=v.scale(),r=w.filter(J);l.save(),l.setTransform(1,0,0,1,0,0),l.clearRect(0,0,f.width,f.height),l.restore(),l.save(),l.translate(t[0],t[1]),l.scale(n,n);var i="#D10E2A",s="#F2E3C6",o="#5BAAEB",u="#FFA726",a="rgba(252, 227, 198, 0.15)",c=6,h="#50B0F0";l.save(),r.forEach(function(e){var t=e.target.x-e.source.x,n=e.target.y-e.source.y,r=Math.sqrt(t*t+n*n)*2;t/=r,n/=r;var i=e.target.x-e.source.x-10*t,s=e.target.y-e.source.y-10*n;l.beginPath(),l.moveTo(e.source.x+t*c,e.source.y+n*c),l.lineTo(e.target.x-i/2-t*c,e.target.y-s/2-n*c),l.strokeStyle=e.o.type==="Kabel"?h:e.color,l.globalAlpha=e.o.isVPN?.1:.8,l.lineWidth=e.o.isVPN?1.5:2.5,l.stroke()}),l.restore(),l.beginPath(),A.filter(K).forEach(function(e){l.moveTo(e.x+c,e.y),l.arc(e.x,e.y,c,0,2*Math.PI)}),l.strokeStyle=i,l.lineWidth=c,l.stroke(),l.save(),l.scale(1/n/e,1/n/e);var p=Q(s,c,n,e);k.filter(K).forEach(function(t){l.drawImage(p,n*e*t.x-p.width/2,n*e*t.y-p.height/2)});var d=Q(o,c,n,e);C.filter(K).forEach(function(t){l.drawImage(d,n*e*t.x-d.width/2,n*e*t.y-d.height/2)});var m=Q(u,c,n,e);L.filter(K).forEach(function(t){l.drawImage(m,n*e*t.x-m.width/2,n*e*t.y-m.height/2)}),l.restore(),l.save(),l.beginPath(),n>.9&&N.filter(K).forEach(function(e){var t=e.o.node.statistics.clients.total;if(t===0)return;var n=16,r=3,i=1.2,s=Math.PI;for(var o=0,u=0;u<t;o++){var a=n+o*2*r*i,f=Math.floor(Math.PI*a/(i*r)),c=t-u;for(var h=0;h<Math.min(c,f);u++,h++){var p=2*Math.PI/f*h,d=e.x+a*Math.cos(p+s),v=e.y+a*Math.sin(p+s);l.beginPath(),l.moveTo(d,v),l.arc(d,v,r,0,2*Math.PI),l.fillStyle=x(e.o.node.statistics,u),l.fill()}}}),l.restore(),S.length&&(l.save(),l.shadowColor="rgba(255, 255, 255, 1.0)",l.shadowBlur=10*c,l.shadowOffsetX=0,l.shadowOffsetY=0,l.globalCompositeOperation="lighten",l.fillStyle=a,l.beginPath(),S.forEach(function(e){l.moveTo(e.x+5*c,e.y),l.arc(e.x,e.y,5*c,0,2*Math.PI)}),l.fill(),l.restore()),T.length&&(l.save(),l.lineWidth=10*c,l.shadowColor="rgba(255, 255, 255, 1.0)",l.shadowBlur=10*c,l.shadowOffsetX=0,l.shadowOffsetY=0,l.globalCompositeOperation="lighten",l.strokeStyle=a,l.lineCap="round",l.beginPath(),T.forEach(function(e){l.moveTo(e.source.x,e.source.y),l.lineTo(e.target.x,e.target.y)}),l.stroke(),l.restore()),n>.9&&b.filter(K).forEach($,n),l.restore()}function Y(){G()}function Z(){var e=window.devicePixelRatio;f.width=g.offsetWidth*e,f.height=g.offsetHeight*e,f.style.width=g.offsetWidth+"px",f.style.height=g.offsetHeight+"px",l.setTransform(1,0,0,1,0,0),l.scale(e,e),requestAnimationFrame(G)}function et(e,t,n,r){return Math.pow(e-n,2)+Math.pow(t-r,2)}function tt(e,t){return Math.sqrt(et(e.x,e.y,t.x,t.y))}function nt(e,t,n){var r=n.x-(n.x-t.x)/2,i=n.y-(n.y-t.y)/2,s=et(t.x,t.y,r,i);if(s===0)return et(e.x,e.y,t.x,t.y);var o=((e.x-t.x)*(r-t.x)+(e.y-t.y)*(i-t.y))/s;return o<0?et(e.x,e.y,t.x,t.y):o>1?et(e.x,e.y,r,i):Math.sqrt(et(e.x,e.y,t.x+o*(r-t.x),t.y+o*(i-t.y)))}function rt(e){var t=v.translate(),n=v.scale();return{x:(e[0]-t[0])/n,y:(e[1]-t[1])/n}}function it(){if(e.event.defaultPrevented)return;var t=rt(e.mouse(g)),i=b.filter(function(e){return tt(t,e)<n});if(i.length>0){u.node(i[0].o.node)();return}var s=w.filter(function(e){return!e.o.isVPN}).filter(function(e){return nt(t,e.source,e.target)<r});if(s.length>0){u.link(s[0].o)();return}}function st(e,t){var n=W(),r=[n[0]/t,n[1]/t],i=o(),s=[n[0]-r[0],n[1]-r[1]],u=e.translate(),a=[i+(u[0]-i-s[0]/2)*t,(u[1]-s[1]/2)*t];q(a,e.scale()*t)}function ot(t){return function(){var n=e.event;if(n.altKey||n.ctrlKey||n.metaKey)return;n.keyCode===43&&st(t,1.41),n.keyCode===45&&st(t,1/1.41)}}var a=this,f,l,h,p,d,v,m,g,y=!1,b=[],w=[],E,S=[],T=[],N=[],C=[],k=[],L=[],A=[],O,M,_=70,I=e.behavior.drag().on("dragstart",B).on("drag",j).on("dragend",F);return g=document.createElement("div"),g.classList.add("graph"),v=e.behavior.zoom().scaleExtent([1/3,3]).on("zoom",R).translate([o(),0]),f=e.select(g).attr("tabindex",1).on("keypress",ot(v)).call(v).append("canvas").on("click",it).call(I).node(),l=f.getContext("2d"),m=e.layout.force().charge(-250).gravity(.1).linkDistance(function(e){return e.o.isVPN?0:_}).linkStrength(function(e){return e.o.isVPN?0:Math.max(.5,1/e.o.tq)}).on("tick",Y).on("end",P),window.addEventListener("resize",Z),U(),a.setData=function(e){var t={};b.forEach(function(e){t[e.o.id]=e}),b=e.graph.nodes.map(function(e){var n;return e.id in t?n=t[e.id]:n={},n.o=e,n});var n={};b.forEach(function(e){n[e.o.id]=e});var r={};w.forEach(function(e){r[e.o.id]=e}),w=e.graph.links.map(function(e){var t;return e.id in r?t=r[e.id]:t={},t.o=e,t.source=n[e.source.id],t.target=n[e.target.id],e.isVPN?t.color="rgba(255, 255, 255, "+.6/e.tq+")":t.color=s(e.tq).hex(),t}),d={},p={},b.forEach(function(e){e.neighbours={},e.o.node&&(p[e.o.node.nodeinfo.node_id]=e);var t=H(e),n=5,r=3,i=document.createElement("canvas"),s=window.devicePixelRatio,o=i.getContext("2d");o.font="11px Roboto";var u=o.measureText(t).width,a=v.scaleExtent()[1]*s;i.width=(u+2*r)*a,i.height=(16+2*r)*a,o.scale(a,a),o.textBaseline="middle",o.textAlign="center",o.fillStyle="rgba(242, 227, 198, 1.0)",o.shadowColor="rgba(0, 0, 0, 1)",o.shadowBlur=5,o.fillText(t,i.width/(2*a),i.height/(2*a)),e.label=i,e.labelWidth=i.width/a,e.labelHeight=i.height/a,e.labelA=n+i.width/(2*a),e.labelB=n+i.height/(2*a)}),w.forEach(function(e){e.source.neighbours[e.target.o.id]={node:e.target,link:e},e.target.neighbours[e.source.o.id]={node:e.source,link:e},e.o.source&&e.o.target&&(d[e.o.id]=e)}),w.forEach(function(e){if(d[e.target.o.node_id+"-"+e.source.o.node_id])return;var t={source:e.target,target:e.source,o:{isVPN:e.o.isVPN,type:"dead",id:e.target.o.node_id+"-"+e.source.o.node_id,tq:1},color:"rgba(255, 255, 255, 0.6)"};w.push(t),d[e.target.o.node_id+"-"+e.source.o.node_id]=t}),b.forEach(function(e){e.neighbours=Object.keys(e.neighbours).map(function(t){return e.neighbours[t]})}),N=b.filter(function(e){return!e.o.unseen&&e.o.node}),C=N.filter(function(e){return e.o.node.flags.uplink}),k=N.filter(function(e){return!e.o.node.flags.uplink}),L=b.filter(function(e){return e.o.unseen&&e.o.node}),A=b.filter(function(e){return!e.o.node});if(c()){var i=JSON.parse(localStorage.getItem("graph/nodeposition"));if(i){var o={};i.forEach(function(e){o[e.id]=e}),b.forEach(function(e){o[e.o.id]&&(e.x===undefined||e.y===undefined)&&(e.x=o[e.o.id].x,e.y=o[e.o.id].y)})}}var u=D(b);m.nodes(b).links(w).size([u,u]),V(!0),m.start(),Z()},a.resetView=function(){E=undefined,V(),y=!0},a.gotoNode=function(e){E={type:"node",o:e},V(),y=!0},a.gotoLink=function(e){E={type:"link",o:e},V(),y=!0},a.destroy=function(){m.stop(),f.remove(),m=null,g.parentNode&&g.parentNode.removeChild(g)},a.render=function(e){e.appendChild(g),Z(),V()},a}}),n("title",[],function(){return function(e){function t(t){var n=[e.siteName];t!==undefined&&n.push(t),document.title=n.join(": ")}return this.resetView=function(){t()},this.gotoNode=function(e){e&&t(e.nodeinfo.hostname)},this.gotoLink=function(e){e&&t((e.source.node?e.source.node.nodeinfo.hostname:e.source.id)+" "+e.target.node.nodeinfo.hostname)},this.gotoLocation=function(){},this.destroy=function(){},this}}),n("about",[],function(){return function(){this.render=function(e){var t=document.createElement("div");e.appendChild(t);var n="<h2>Über HopGlass</h2>";n+="<p>Mit Doppelklick und Shift+Doppelklick kann man in der Karte ",n+="auch zoomen.</p>",n+="<h3>AGPL 3</h3>",n+="<p>Copyright (C) Milan Pässler</p>",n+="<p>Copyright (C) Nils Schneider</p>",n+="<p>This program is free software: you can redistribute it and/or ",n+="modify it under the terms of the GNU Affero General Public ",n+="License as published by the Free Software Foundation, either ",n+="version 3 of the License, or (at your option) any later version.</p>",n+="<p>This program is distributed in the hope that it will be useful, ",n+="but WITHOUT ANY WARRANTY; without even the implied warranty of ",n+="MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ",n+="GNU Affero General Public License for more details.</p>",n+="<p>You should have received a copy of the GNU Affero General ",n+="Public License along with this program. If not, see ",n+='<a href="https://www.gnu.org/licenses/">',n+="https://www.gnu.org/licenses/</a>.</p>",n+="<p>The source code is available at ",n+='<a href="https://github.com/hopglass/hopglass">',n+="https://github.com/hopglass/hopglass</a>.",t.innerHTML=n}}}),n("filters/nodefilter",[],function(){return function(e){return function(t){var n=Object.create(t);n.nodes={};for(var r in t.nodes)n.nodes[r]=t.nodes[r].filter(e);var i=new Set;return n.graph={},n.graph.nodes=t.graph.nodes.filter(function(t){var n;return t.node?n=e(t.node):n=e({}),n&&i.add(t.id),n}),n.graph.links=t.graph.links.filter(function(e){return i.has(e.source.id)&&i.has(e.target.id)}),n}}}),n("datadistributor",["filters/nodefilter"],function(e){return function(){function o(e){t=t.filter(function(t){return e!==t})}function u(e){t.push(e),i!==undefined&&e.setData(i)}function a(e){s=e,f()}function f(){if(s===undefined)return;var n=r.reduce(function(e,t){return function(n){return e(n)&&t.run(n)}},function(){return!0});i=(new e(n))(s),t.forEach(function(e){e.setData(i)})}function l(){n.forEach(function(e){e.filtersChanged(r)})}function c(e){r.push(e),l(),e.setRefresh(f),f()}function h(e){r=r.filter(function(t){return e!==t}),l(),f()}function p(e){return n.push(e),e.filtersChanged(r),function(){n=n.filter(function(t){return e!==t})}}var t=[],n=[],r=[],i,s;return{add:u,remove:o,setData:a,addFilter:c,removeFilter:h,watchFilters:p,refresh:f}}}),n("filters/filtergui",[],function(){return function(e){function r(e){e.appendChild(n)}function i(r){while(t.firstChild)t.removeChild(t.firstChild);r.forEach(function(n){var r=document.createElement("li"),i=document.createElement("div");t.appendChild(r),r.appendChild(i),n.render(i);var s=document.createElement("button");s.textContent="",s.onclick=function(){e.removeFilter(n)},r.appendChild(s)}),t.parentNode===n&&r.length===0?n.removeChild(t):r.length>0&&n.appendChild(t)}var t=document.createElement("ul");t.classList.add("filters");var n=document.createElement("div");return{render:r,filtersChanged:i}}}),n("gui",["chroma-js","map","sidebar","tabs","container","meshstats","legend","linklist","nodelist","simplenodelist","infobox/main","proportions","forcegraph","title","about","datadistributor","filters/filtergui"],function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m){return function(g,y){function k(){if(!w)return;y.removeTarget(w),N.remove(w),w.destroy(),w=null}function L(e){k(),w=new e(g,S,x.getWidth,y,T),w.render(E),N.add(w),y.addTarget(w)}function A(e){return function(){L(e)}}var b=this,w,E,S=e.scale(e.bezier(["#04C714","#FF5500","#F02311"])).domain([1,5]),x,T=document.createElement("div");T.classList.add("buttons");var N=new v,C=new v;C.add(N);var O=document.getElementsByClassName("loader")[0];O.classList.add("hide"),E=document.createElement("div"),E.classList.add("content"),document.body.appendChild(E),x=new n(document.body),E.appendChild(T);var M=document.createElement("button");M.textContent="",M.onclick=function(){w.constructor===t?y.view("g"):y.view("m")},T.appendChild(M);var _=new p(g),D=new i("header"),P=new l(g,x,y),H=new r,B=new i,j=new s(g),F=new o,I=new f("new","firstseen",y,"Neue Knoten"),q=new f("lost","lastseen",y,"Verschwundene Knoten"),R=new a(y),U=new u(S,y),z=new c(g,N),W=new d;C.add(j),C.add(I),C.add(q),N.add(R),N.add(U),N.add(z),x.add(D),D.add(j),D.add(F),B.add(I),B.add(q);var X=new m(N);return N.watchFilters(X),D.add(X),x.add(H),H.add("Aktuelles",B),H.add("Knoten",R),H.add("Verbindungen",U),H.add("Statistiken",z),H.add("Über",W),y.addTarget(_),y.addTarget(P),y.addView("m",A(t)),y.addView("g",A(h)),y.view("m"),b.setData=C.setData,b}}),n("main",["moment","router","leaflet","gui","numeral"],function(e,t,n,r,u){return function(a){function f(t){function u(e){e.source+=i.batadv.nodes.length,e.target+=i.batadv.nodes.length}function c(e){var t=r.nodeIds.indexOf(e.nodeinfo.node_id);t===-1?(r.nodes.push(e),r.nodeIds.push(e.nodeinfo.node_id)):e.flags.online===!0&&(r.nodes[t]=e)}var r={};r.nodes=[],r.nodeIds=[];var i={};i.batadv={},i.batadv.nodes=[],i.batadv.links=[];for(var f=0;f<t.length;++f){var l;f%2?t[f].version!==1?(l="Unsupported graph version: "+t[f].version,console.log(l)):(t[f].batadv.links.forEach(u),i.batadv.nodes=i.batadv.nodes.concat(t[f].batadv.nodes),i.batadv.links=i.batadv.links.concat(t[f].batadv.links),i.timestamp=t[f].timestamp):t[f].version!==2?(l="Unsupported nodes version: "+t[f].version,console.log(l)):(t[f].nodes.forEach(c),r.timestamp=t[f].timestamp)}var h=r.nodes.filter(function(e){return"firstseen"in e&&"lastseen"in e});h.forEach(function(t){t.firstseen=e.utc(t.firstseen).local(),t.lastseen=e.utc(t.lastseen).local()});var v=e(),m=e(v).subtract(a.maxAge,"days"),g=o("firstseen",m,s("firstseen",h).filter(d)),y=o("lastseen",m,s("lastseen",h).filter(p)),b={};r.nodes.forEach(function(e){b[e.nodeinfo.node_id]=e});var w=i.batadv;w.nodes.forEach(function(e){e.node_id in b&&(e.node=b[e.node_id],e.unseen&&(e.node.flags.online=!0,e.node.flags.unseen=!0))}),w.links.forEach(function(e){e.source=w.nodes[e.source],w.nodes[e.target].node?e.target=w.nodes[e.target]:e.target=undefined});var E=w.links.filter(function(e){return e.target!==undefined});return E.forEach(function(e){var t=e.source.node===undefined,r;t?r=[e.source.id.replace(/:/g,""),e.target.node.nodeinfo.node_id]:r=[e.source.node.nodeinfo.node_id,e.target.node.nodeinfo.node_id],e.id=r.join("-");if(t||!e.source.node.nodeinfo.location||!e.target.node.nodeinfo.location||isNaN(e.source.node.nodeinfo.location.latitude)||isNaN(e.source.node.nodeinfo.location.longitude)||isNaN(e.target.node.nodeinfo.location.latitude)||isNaN(e.target.node.nodeinfo.location.longitude))return;e.latlngs=[],e.latlngs.push(n.latLng(e.source.node.nodeinfo.location.latitude,e.source.node.nodeinfo.location.longitude)),e.latlngs.push(n.latLng(e.target.node.nodeinfo.location.latitude,e.target.node.nodeinfo.location.longitude)),e.distance=e.latlngs[0].distanceTo(e.latlngs[1])}),h.forEach(function(e){e.neighbours=[],e.statistics&&("gateway"in e.statistics&&e.statistics.gateway in b&&(e.statistics.gateway={node:b[e.statistics.gateway],id:e.statistics.gateway}),"nexthop"in e.statistics&&e.statistics.nexthop in b&&(e.statistics.nexthop={node:b[e.statistics.nexthop],id:e.statistics.nexthop}),"gateway_nexthop"in e.statistics&&e.statistics.gateway_nexthop in b&&(e.statistics.gateway_nexthop={node:b[e.statistics.gateway_nexthop],id:e.statistics.gateway_nexthop}))}),E.forEach(function(e){e.type==="tunnel"||e.vpn?(e.type="VPN",e.isVPN=!0):e.type==="fastd"?(e.type="fastd",e.isVPN=!0):e.type==="l2tp"?(e.type="L2TP",e.isVPN=!0):e.type==="gre"?(e.type="GRE",e.isVPN=!0):e.type==="wireless"?(e.type="Wifi",e.isVPN=!1):e.type==="other"?(e.type="Kabel",e.isVPN=!1):(e.type="N/A",e.isVPN=!1),e.isVPN&&e.target.node&&(e.target.node.flags.uplink=!0);var t=e.source.node===undefined;if(t){e.target.node.neighbours.push({id:e.source.id,link:e,incoming:!0});return}e.source.node.neighbours.push({node:e.target.node,link:e,incoming:!1}),e.target.node.neighbours.push({node:e.source.node,link:e,incoming:!0}),e.isVPN||(e.source.node.meshlinks=e.source.node.meshlinks?e.source.node.meshlinks+1:1)}),E.sort(function(e,t){return t.tq-e.tq}),{now:v,timestamp:e.utc(r.timestamp).local(),nodes:{all:h,"new":g,lost:y},graph:{links:E,nodes:w.nodes}}}function v(){return Promise.all(c.map(i)).then(f)}u.language("de"),e.locale("de");var l=new t,c=[];if(typeof a.dataPath=="string"||a.dataPath instanceof String)a.dataPath=[a.dataPath];for(var h in a.dataPath)c.push(a.dataPath[h]+"nodes.json"),c.push(a.dataPath[h]+"graph.json");v().then(function(e){var t=new r(a,l);t.setData(e),l.setData(e),l.start(),window.setInterval(function(){v().then(function(e){t.setData(e),l.setData(e)})},6e4)}).catch(function(e){document.body.textContent=e,console.log(e)})}}),n("helper",["numeral-intl"],function(){}),t.config({baseUrl:"lib",paths:{leaflet:"../node_modules/leaflet/dist/leaflet","leaflet.label":"../node_modules/leaflet-label/dist/leaflet.label","leaflet.providers":"../node_modules/leaflet-providers/leaflet-providers","chroma-js":"../node_modules/chroma-js/chroma.min",moment:"../node_modules/moment/min/moment-with-locales.min",tablesort:"../node_modules/tablesort/tablesort.min","tablesort.numeric":"../node_modules/tablesort/src/sorts/tablesort.numeric",d3:"../node_modules/d3/d3.min",numeral:"../node_modules/numeraljs/min/numeral.min","numeral-intl":"../node_modules/numeraljs/min/languages.min","virtual-dom":"../node_modules/virtual-dom/dist/virtual-dom",rbush:"../node_modules/rbush/rbush",helper:"../helper",jshashes:"../node_modules/jshashes/hashes"},shim:{"leaflet.label":["leaflet"],"leaflet.providers":["leaflet"],tablesort:{exports:"Tablesort"},"numeral-intl":{deps:["numeral"],exports:"numeral"},"tablesort.numeric":["tablesort"],helper:["numeral-intl"]}}),t(["main","helper"],function(e){i("config.json").then(e)}),n("../app",function(){})})();