1!function(t){var e={};function i(s){if(e[s])return e[s].exports;var n=e[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(s,n,function(e){return t[e]}.bind(null,n));return s},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=57)}({0:function(t,e){"document"in window.self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){"use strict";if("Element"in t){var e=t.Element.prototype,i=Object,s=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},n=Array.prototype.indexOf||function(t){for(var e=0,i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1},o=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new o("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new o("INVALID_CHARACTER_ERR","String contains an invalid character");return n.call(t,e)},r=function(t){for(var e=s.call(t.getAttribute("class")||""),i=e?e.split(/\s+/):[],n=0,o=i.length;n<o;n++)this.push(i[n]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=r.prototype=[],h=function(){return new r(this)};if(o.prototype=Error.prototype,l.item=function(t){return this[t]||null},l.contains=function(t){return-1!==a(this,t+="")},l.add=function(){var t,e=arguments,i=0,s=e.length,n=!1;do{t=e[i]+"",-1===a(this,t)&&(this.push(t),n=!0)}while(++i<s);n&&this._updateClassName()},l.remove=function(){var t,e,i=arguments,s=0,n=i.length,o=!1;do{for(t=i[s]+"",e=a(this,t);-1!==e;)this.splice(e,1),o=!0,e=a(this,t)}while(++s<n);o&&this._updateClassName()},l.toggle=function(t,e){t+="";var i=this.contains(t),s=i?!0!==e&&"remove":!1!==e&&"add";return s&&this[s](t),!0===e||!1===e?e:!i},l.toString=function(){return this.join(" ")},i.defineProperty){var u={get:h,enumerable:!0,configurable:!0};try{i.defineProperty(e,"classList",u)}catch(t){void 0!==t.number&&-2146823252!==t.number||(u.enumerable=!1,i.defineProperty(e,"classList",u))}}else i.prototype.__defineGetter__&&e.__defineGetter__("classList",h)}}(window.self),function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var i,s=arguments.length;for(i=0;i<s;i++)t=arguments[i],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:i.call(this,t)}}t=null}())},1:function(t,e,i){"use strict";e.a=t=>{const e=document.querySelector(t),i=e.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select, [tabindex]:not([tabindex="-1"])'),s=i[0],n=i[i.length-1];e.addEventListener("keydown",t=>{"Tab"===t.key&&(t.shiftKey?document.activeElement===s&&(t.preventDefault(),n.focus()):document.activeElement===n&&(t.preventDefault(),s.focus()))})}},13:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var s=i(14),n=i.n(s),o=i(8);class a{constructor(){this.config=o.a.api,this.errors=[400,404,406,500]}async getRequest(t){const e={method:"GET",headers:{"Content-Type":"application/json"}};return window.getCsrf&&await window.getCsrf().then(t=>{e.headers={...e.headers,"X-CSRF-TOKEN":t}}),this.createRequest(`${this.config.url}${t}`,e)}async postRequest(t,e){const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)};return window.getCsrf&&await window.getCsrf().then(t=>{i.headers={...i.headers,"X-CSRF-TOKEN":t}}),this.createRequest(`${this.config.url}${t}`,i)}
1putRequest(t,e){return this.createRequest(`${this.config.url}${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}deleteRequest(t){return this.createRequest(`${this.config.url}${t}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})}createRequest(t,e){return n()(t,e).then(t=>{for(let e=0;e<this.errors.length;e++)if(t.status===this.errors[e])return t.status;return t.json()}).catch(t=>(console.error("Occurs an error during creating request: "+t.message),t))}}},14:function(t,e,i){i(19),t.exports=self.fetch.bind(self)},17:function(t,e,i){!function(t){"use strict";function e(t){var e,i,s,n;for(i=1,s=arguments.length;i<s;i++)for(e in n=arguments[i])t[e]=n[e];return t}var i=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function s(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var s=i.call(arguments,2);return function(){return t.apply(e,s.length?s.concat(i.call(arguments)):arguments)}}var n=0;function o(t){return"_leaflet_id"in t||(t._leaflet_id=++n),t._leaflet_id}function a(t,e,i){var s,n,o,a;return a=function(){s=!1,n&&(o.apply(i,n),n=!1)},o=function(){s?n=arguments:(t.apply(i,arguments),setTimeout(a,e),s=!0)}}function r(t,e,i){var s=e[1],n=e[0],o=s-n;return t===s&&i?t:((t-n)%o+o)%o+n}function l(){return!1}function h(t,e){if(!1===e)return t;var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function d(t){return u(t).split(/\s+/)}function c(t,e){for(var s in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?i(t.options):{}),e)t.options[s]=e[s];return t.options}function p(t,e,i){var s=[];for(var n in t)s.push(encodeURIComponent(i?n.toUpperCase():n)+"="+encodeURIComponent(t[n]));return(e&&-1!==e.indexOf("?")?"&":"?")+s.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function f(t,e){return t.replace(m,(function(t,i){var s=e[i];if(void 0===s)throw new Error("No value provided for variable "+t);return"function"==typeof s&&(s=s(e)),s}))}var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function v(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var _="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function y(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var b=0;function w(t){var e=+new Date,i=Math.max(0,16-(e-b));return b=e+i,window.setTimeout(t,i)}var x=window.requestAnimationFrame||y("RequestAnimationFrame")||w,E=window.cancelAnimationFrame||y("CancelAnimationFrame")||y("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function T(t,e,i){if(!i||x!==w)return x.call(window,s(t,e));t.call(e)}function S(t){t&&E.call(window,t)}var C={__proto__:null,extend:e,create:i,bind:s,get lastId(){return n},stamp:o,throttle:a,wrapNum:r,falseFn:l,formatNum:h,trim:u,splitWords:d,setOptions:c,getParamString:p,template:f,isArray:g,indexOf:v,emptyImageUrl:_,requestFn:x,cancelFn:E,requestAnimFrame:T,cancelAnimFrame:S};function k(){}k.extend=function(t){var s=function(){c(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},n=s.__super__=this.prototype,o=i(n);for(var a in o.constructor=s,s.prototype=o,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(s[a]=this[a]);return t.statics&&e(s,t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=g(t)?t:[t];for(var e=0;e<t.length;
vendor: 6,406 bytes, line 1
1e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),e.apply(null,[o].concat(t.includes))),e(o,t),delete o.statics,delete o.includes,o.options&&(o.options=n.options?i(n.options):{},e(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},s},k.include=function(t){var i=this.prototype.options;return e(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},k.mergeOptions=function(t){return e(this.prototype.options,t),this},k.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var P={on:function(t,e,i){if("object"==typeof t)for(var s in t)this._on(s,t[s],e);else for(var n=0,o=(t=d(t)).length;n<o;n++)this._on(t[n],e,i);return this},off:function(t,e,i){if(arguments.length)if("object"==typeof t)for(var s in t)this._off(s,t[s],e);else{t=d(t);for(var n=1===arguments.length,o=0,a=t.length;o<a;o++)n?this._off(t[o]):this._off(t[o],e,i)}else delete this._events;return this},_on:function(t,e,i,s){if("function"==typeof e){if(!1===this._listens(t,e,i)){i===this&&(i=void 0);var n={fn:e,ctx:i};s&&(n.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(n)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,i){var s,n,o;if(this._events&&(s=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var a=this._listens(t,e,i);if(!1!==a){var r=s[a];this._firingCount&&(r.fn=l,this._events[t]=s=s.slice()),s.splice(a,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(n=0,o=s.length;n<o;n++)s[n].fn=l;delete this._events[t]}},fire:function(t,i,s){if(!this.listens(t,s))return this;var n=e({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,r=o.length;a<r;a++){var l=o[a],h=l.fn;l.once&&this.off(t,h,l.ctx),h.call(l.ctx||this,n)}this._firingCount--}}return s&&this._propagateEvent(n),this},listens:function(t,e,i,s){"string"!=typeof t&&console.warn('"string" type argument expected');var n=e;"function"!=typeof e&&(s=!!e,n=void 0,i=void 0);var o=this._events&&this._events[t];if(o&&o.length&&!1!==this._listens(t,n,i))return!0;if(s)for(var a in this._eventParents)if(this._eventParents[a].listens(t,e,i,s))return!0;return!1},_listens:function(t,e,i){if(!this._events)return!1;var s=this._events[t]||[];if(!e)return!!s.length;i===this&&(i=void 0);for(var n=0,o=s.length;n<o;n++)if(s[n].fn===e&&s[n].ctx===i)return n;return!1},once:function(t,e,i){if("object"==typeof t)for(var s in t)this._on(s,t[s],e,!0);else for(var n=0,o=(t=d(t)).length;n<o;n++)this._on(t[n],e,i,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[o(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[o(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};P.addEventListener=P.on,P.removeEventListener=P.clearAllEventListeners=P.off,P.addOneTimeEventListener=P.once,P.fireEvent=P.fire,P.hasEventListeners=P.listens;var M=k.extend(P);function A(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var B=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function z(t,e,i){return t instanceof A?t:g(t)?new A(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,e,i)}function I(t,e){if(t)for(var i=e?[t,e]:t,s=0,n=i.length;s<n;s++)this.extend(i[s])}function O(t,e){return!t||t instanceof I?t:new I(t,e)}function D(t,e){if(t)for(var i=e?[t,e]:t,s=0,n=i.length;s<n;s++)this.extend(i[s])}function F(t,e){return t instanceof D?t:new D(t,e)}function $(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function N(t,e,i){return t instanceof $?t:g(t)&&"object"!=typeof t[0]?3===t.length?new $(t[0],t[1],t[2]):2===t.length?new $(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new $(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new $(t,e,i)}A.prototype={clone:function(){return new A(this.x,this.y)},add:function(t){return this.clone()._add(z(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(z(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new A(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new A(this.x/t.x,this.y/t.y)},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},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=B(this.x),this.y=B(this.y),this},distanceTo:function(t){var e=(t=z(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=z(t)).x===this.x&&t.y===this.y},contains:function(t){return t=z(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+h(this.x)+", "+h(this.y)+")"}},I.prototype={extend:function(t){var e,i;if(!t)return this;if(t instanceof A||"number"==typeof t[0]||"x"in t)e=i=z(t);else if(e=(t=O(t)).min,i=t.max,!e||!i)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(i.y,this.max.y)):(this.min=e.clone(),this.max=i.
vendor: 2,346 bytes, line 1
1clone()),this},getCenter:function(t){return z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return z(this.min.x,this.max.y)},getTopRight:function(){return z(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof A?z(t):O(t))instanceof I?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=O(t);var e=this.min,i=this.max,s=t.min,n=t.max,o=n.x>=e.x&&s.x<=i.x,a=n.y>=e.y&&s.y<=i.y;return o&&a},overlaps:function(t){t=O(t);var e=this.min,i=this.max,s=t.min,n=t.max,o=n.x>e.x&&s.x<i.x,a=n.y>e.y&&s.y<i.y;return o&&a},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,i=this.max,s=Math.abs(e.x-i.x)*t,n=Math.abs(e.y-i.y)*t;return O(z(e.x-s,e.y-n),z(i.x+s,i.y+n))},equals:function(t){return!!t&&(t=O(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},D.prototype={extend:function(t){var e,i,s=this._southWest,n=this._northEast;if(t instanceof $)e=t,i=t;else{if(!(t instanceof D))return t?this.extend(N(t)||F(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return s||n?(s.lat=Math.min(e.lat,s.lat),s.lng=Math.min(e.lng,s.lng),n.lat=Math.max(i.lat,n.lat),n.lng=Math.max(i.lng,n.lng)):(this._southWest=new $(e.lat,e.lng),this._northEast=new $(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,s=Math.abs(e.lat-i.lat)*t,n=Math.abs(e.lng-i.lng)*t;return new D(new $(e.lat-s,e.lng-n),new $(i.lat+s,i.lng+n))},getCenter:function(){return new $((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 $(this.getNorth(),this.getWest())},getSouthEast:function(){return new $(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(t){t="number"==typeof t[0]||t instanceof $||"lat"in t?N(t):F(t);var e,i,s=this._southWest,n=this._northEast;
vendor: 2,213 bytes, line 1
1return t instanceof D?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=s.lat&&i.lat<=n.lat&&e.lng>=s.lng&&i.lng<=n.lng},intersects:function(t){t=F(t);var e=this._southWest,i=this._northEast,s=t.getSouthWest(),n=t.getNorthEast(),o=n.lat>=e.lat&&s.lat<=i.lat,a=n.lng>=e.lng&&s.lng<=i.lng;return o&&a},overlaps:function(t){t=F(t);var e=this._southWest,i=this._northEast,s=t.getSouthWest(),n=t.getNorthEast(),o=n.lat>e.lat&&s.lat<i.lat,a=n.lng>e.lng&&s.lng<i.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=F(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},$.prototype={equals:function(t,e){return!!t&&(t=N(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+h(this.lat,t)+", "+h(this.lng,t)+")"},distanceTo:function(t){return V.distance(this,N(t))},wrap:function(){return V.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return F([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new $(this.lat,this.lng,this.alt)}};var R,Z={latLngToPoint:function(t,e){var i=this.projection.project(t),s=this.scale(e);return this.transformation._transform(i,s)},pointToLatLng:function(t,e){var i=this.scale(e),s=this.transformation.untransform(t,i);return this.projection.unproject(s)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new I(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?r(t.lng,this.wrapLng,!0):t.lng;return new $(this.wrapLat?r(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),s=e.lat-i.lat,n=e.lng-i.lng;if(0===s&&0===n)return t;
vendor: 4,283 bytes, line 1
1var o=t.getSouthWest(),a=t.getNorthEast();return new D(new $(o.lat-s,o.lng-n),new $(a.lat-s,a.lng-n))}},V=e({},Z,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,s=t.lat*i,n=e.lat*i,o=Math.sin((e.lat-t.lat)*i/2),a=Math.sin((e.lng-t.lng)*i/2),r=o*o+Math.cos(s)*Math.cos(n)*a*a,l=2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r));return this.R*l}}),j={R:6378137,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,s=Math.max(Math.min(i,t.lat),-i),n=Math.sin(s*e);return new A(this.R*t.lng*e,this.R*Math.log((1+n)/(1-n))/2)},unproject:function(t){var e=180/Math.PI;return new $((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(R=6378137*Math.PI,new I([-R,-R],[R,R]))};function H(t,e,i,s){if(g(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=s}function q(t,e,i,s){return new H(t,e,i,s)}H.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new A((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var W=e({},V,{code:"EPSG:3857",projection:j,transformation:function(){var t=.5/(Math.PI*j.R);return q(t,.5,-t,.5)}()}),G=e({},W,{code:"EPSG:900913"});function Y(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function U(t,e){var i,s,n,o,a,r,l="";for(i=0,n=t.length;i<n;i++){for(s=0,o=(a=t[i]).length;s<o;s++)l+=(s?"L":"M")+(r=a[s]).x+" "+r.y;l+=e?Ot.svg?"z":"x":""}return l||"M0 0"}var X,K=document.documentElement.style,J="ActiveXObject"in window,Q=J&&!document.addEventListener,tt="msLaunchUri"in navigator&&!("documentMode"in document),et=It("webkit"),it=It("android"),st=It("android 2")||It("android 3"),nt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ot=it&&It("Google")&&nt<537&&!("AudioNode"in window),at=!!window.opera,rt=!tt&&It("chrome"),lt=It("gecko")&&!et&&!at&&!J,ht=!rt&&It("safari"),ut=It("phantom"),dt="OTransition"in K,ct=0===navigator.platform.indexOf("Win"),pt=J&&"transition"in K,mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!st,ft="MozPerspective"in K,gt=!window.L_DISABLE_3D&&(pt||mt||ft)&&!dt&&!ut,vt="undefined"!=typeof orientation||It("mobile"),_t=vt&&et,yt=vt&&mt,bt=!window.PointerEvent&&window.MSPointerEvent,wt=!(!window.PointerEvent&&!bt),xt="ontouchstart"in window||!!window.TouchEvent,Et=!window.L_NO_TOUCH&&(xt||wt),Tt=vt&&at,St=vt&<,Ct=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,kt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",l,e),window.removeEventListener("testPassiveEventSupport",l,e)}catch(t){}return t}(),Pt=!!document.createElement("canvas").getContext,Mt=!(!document.createElementNS||!Y("svg").createSVGRect),Lt=!!Mt&&((X=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(X.firstChild&&X.firstChild.namespaceURI)),At=!Mt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),Bt=0===navigator.platform.indexOf("Mac"),zt=0===navigator.platform.indexOf("Linux");function It(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Ot={ie:J,ielt9:Q,edge:tt,webkit:et,android:it,android23:st,androidStock:ot,opera:at,chrome:rt,gecko:lt,safari:ht,phantom:ut,opera12:dt,win:ct,ie3d:pt,webkit3d:mt,gecko3d:ft,any3d:gt,mobile:vt,mobileWebkit:_t,mobileWebkit3d:yt,msPointer:bt,pointer:wt,touch:Et,touchNative:xt,mobileOpera:Tt,mobileGecko:St,retina:Ct,passiveEvents:kt,canvas:Pt,svg:Mt,vml:At,inlineSvg:Lt,mac:Bt,linux:zt},Dt=Ot.msPointer?"MSPointerDown":"pointerdown",Ft=Ot.msPointer?"MSPointerMove":"pointermove",$t=Ot.msPointer?"MSPointerUp":"pointerup",Nt=Ot.msPointer?"MSPointerCancel":"pointercancel",Rt={touchstart:Dt,touchmove:Ft,touchend:$t,touchcancel:Nt},Zt={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&$e(e),Yt(t,e)},touchmove:Yt,touchend:Yt,touchcancel:Yt},Vt={},jt=!1;function Ht(t,e,i){return"touchstart"===e&&(jt||(document.addEventListener(
vendor: 9,633 bytes, line 1
1Dt,qt,!0),document.addEventListener(Ft,Wt,!0),document.addEventListener($t,Gt,!0),document.addEventListener(Nt,Gt,!0),jt=!0)),Zt[e]?(i=Zt[e].bind(this,i),t.addEventListener(Rt[e],i,!1),i):(console.warn("wrong event specified:",e),l)}function qt(t){Vt[t.pointerId]=t}function Wt(t){Vt[t.pointerId]&&(Vt[t.pointerId]=t)}function Gt(t){delete Vt[t.pointerId]}function Yt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Vt)e.touches.push(Vt[i]);e.changedTouches=[e],t(e)}}var Ut,Xt,Kt,Jt,Qt,te=ge(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ee=ge(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ie="webkitTransition"===ee||"OTransition"===ee?ee+"End":"transitionend";function se(t){return"string"==typeof t?document.getElementById(t):t}function ne(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var s=document.defaultView.getComputedStyle(t,null);i=s?s[e]:null}return"auto"===i?null:i}function oe(t,e,i){var s=document.createElement(t);return s.className=e||"",i&&i.appendChild(s),s}function ae(t){var e=t.parentNode;e&&e.removeChild(t)}function re(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function le(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function he(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ue(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=me(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function de(t,e){if(void 0!==t.classList)for(var i=d(e),s=0,n=i.length;s<n;s++)t.classList.add(i[s]);else if(!ue(t,e)){var o=me(t);pe(t,(o?o+" ":"")+e)}}function ce(t,e){void 0!==t.classList?t.classList.remove(e):pe(t,u((" "+me(t)+" ").replace(" "+e+" "," ")))}function pe(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function me(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function fe(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var i=!1,s="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(s)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+s+"(opacity="+e+")"}(t,e)}function ge(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function ve(t,e,i){var s=e||new A(0,0);t.style[te]=(Ot.ie3d?"translate("+s.x+"px,"+s.y+"px)":"translate3d("+s.x+"px,"+s.y+"px,0)")+(i?" scale("+i+")":"")}function _e(t,e){t._leaflet_pos=e,Ot.any3d?ve(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function ye(t){return t._leaflet_pos||new A(0,0)}if("onselectstart"in document)Ut=function(){Pe(window,"selectstart",$e)},Xt=function(){Le(window,"selectstart",$e)};else{var be=ge(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Ut=function(){if(be){var t=document.documentElement.style;Kt=t[be],t[be]="none"}},Xt=function(){be&&(document.documentElement.style[be]=Kt,Kt=void 0)}}function we(){Pe(window,"dragstart",$e)}function xe(){Le(window,"dragstart",$e)}function Ee(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Te(),Jt=t,Qt=t.style.outlineStyle,t.style.outlineStyle="none",Pe(window,"keydown",Te))}function Te(){Jt&&(Jt.style.outlineStyle=Qt,Jt=void 0,Qt=void 0,Le(window,"keydown",Te))}function Se(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Ce(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var ke={__proto__:null,TRANSFORM:te,TRANSITION:ee,TRANSITION_END:ie,get:se,getStyle:ne,create:oe,remove:ae,empty:re,toFront:le,toBack:he,hasClass:ue,addClass:de,removeClass:ce,setClass:pe,getClass:me,setOpacity:fe,testProp:ge,setTransform:ve,setPosition:_e,getPosition:ye,get disableTextSelection(){return Ut},get enableTextSelection(){return Xt},disableImageDrag:we,enableImageDrag:xe,preventOutline:Ee,restoreOutline:Te,getSizedParentNode:Se,getScale:Ce};function Pe(t,e,i,s){if(e&&"object"==typeof e)for(var n in e)ze(t,n,e[n],i);else for(var o=0,a=(e=d(e)).length;o<a;o++)ze(t,e[o],i,s);return this}var Me="_leaflet_events";function Le(t,e,i,s){if(1===arguments.length)Ae(t),delete t[Me];else if(e&&"object"==typeof e)for(var n in e)Ie(t,n,e[n],i);else if(e=d(e),2===arguments.length)Ae(t,(function(t){return-1!==v(e,t)}));else for(var o=0,a=e.length;o<a;o++)Ie(t,e[o],i,s);return this}function Ae(t,e){for(var i in t[Me]){var s=i.split(/\d/)[0];e&&!e(s)||Ie(t,s,null,null,i)}}var Be={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ze(t,e,i,s){var n=e+o(i)+(s?"_"+o(s):"");if(t[Me]&&t[Me][n])return this;var a=function(e){return i.call(s||t,e||window.event)},r=a;!Ot.touchNative&&Ot.pointer&&0===e.indexOf("touch")?a=Ht(t,e,a):Ot.touch&&"dblclick"===e?a=function(t,e){t.addEventListener("dblclick",e);var i,s=0;function n(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var n=Re(t);if(!n.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||n.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var o=Date.now();o-s<=200?2==++i&&e(function(t){var e,i,s={};for(i in t)e=t[i],s[i]=e&&e.bind?e.bind(t):e;return t=s,s.type="dblclick",s.detail=2,s.isTrusted=!1,s._simulated=!0,s}(t)):i=1,s=o}}}else i=t.detail}return t.addEventListener("click",n),{dblclick:e,simDblclick:n}}(t,a):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Be[e]||e,a,!!Ot.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(a=function(e){e=e||window.event,He(t,e)&&r(e)},t.addEventListener(Be[e],a,!1)):t.addEventListener(e,r,!1):t.attachEvent("on"+e,a),t[Me]=t[Me]||{},t[Me][n]=a}function Ie(t,e,i,s,n){n=n||e+o(i)+(s?"_"+o(s):"");var a=t[Me]&&t[Me][n];if(!a)return this;!Ot.touchNative&&Ot.pointer&&0===e.indexOf("touch")?function(t,e,i){Rt[e]?t.removeEventListener(Rt[e],i,!1):console.warn("wrong event specified:",e)}(t,e,a):Ot.touch&&"dblclick"===e?function(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}(t,a):"removeEventListener"in t?t.removeEventListener(Be[e]||e,a,!1):t.detachEvent("on"+e,a),t[Me][n]=null}function Oe(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function De(t){return ze(t,"wheel",Oe),this}function Fe(t){return Pe(t,"mousedown touchstart dblclick contextmenu",Oe),t._leaflet_disable_click=!0,this}function $e(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ne(t){return $e(t),Oe(t),this}function Re(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function Ze(t,e){if(!e)return new A(t.clientX,t.clientY);var i=Ce(e),s=i.boundingClientRect;return new A((t.clientX-s.left)/i.x-e.clientLeft,(t.clientY-s.top)/i.y-e.clientTop)}var Ve=Ot.linux&&Ot.chrome?window.devicePixelRatio:Ot.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function je(t){return Ot.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Ve:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function He(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}var qe={__proto__:null,on:Pe,off:Le,stopPropagation:Oe,disableScrollPropagation:De,disableClickPropagation:Fe,preventDefault:$e,stop:Ne,getPropagationPath:Re,getMousePosition:Ze,getWheelDelta:je,isExternalTarget:He,addListener:Pe,removeListener:Le},We=M.extend({run:function(t,e,i,s){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(s||.5,.2),this._startPos=ye(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=T(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),_e(this._el,i),this.fire("step")},_complete:function(){S(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Ge=M.extend({options:{crs:W,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=c(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(N(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ee&&Ot.any3d&&!Ot.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Pe(this._proxy,ie,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 1,335 bytes, line 1
1,setView:function(t,i,s){return i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(N(t),i,this.options.maxBounds),s=s||{},this._stop(),this._loaded&&!s.reset&&!0!==s&&(void 0!==s.animate&&(s.zoom=e({animate:s.animate},s.zoom),s.pan=e({animate:s.animate,duration:s.duration},s.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,s.zoom):this._tryAnimatedPan(t,s.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,i,s.pan&&s.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Ot.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Ot.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var s=this.getZoomScale(e),n=this.getSize().divideBy(2),o=(t instanceof A?t:this.latLngToContainerPoint(t)).subtract(n).multiplyBy(1-1/s),a=this.containerPointToLatLng(n.add(o));return this.setView(a,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():F(t);var i=z(e.paddingTopLeft||e.padding||[0,0]),s=z(e.paddingBottomRight||e.padding||[0,0]),n=this.getBoundsZoom(t,!1,i.add(s));if((n="number"==typeof e.maxZoom?Math.min(e.maxZoom,n):n)===1/0)return{center:t.getCenter(),zoom:n};
1var o=s.subtract(i).divideBy(2),a=this.project(t.getSouthWest(),n),r=this.project(t.getNorthEast(),n);return{center:this.unproject(a.add(r).divideBy(2).add(o),n),zoom:n}},fitBounds:function(t,e){if(!(t=F(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=z(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new We,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){de(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!Ot.any3d)return this.setView(t,e,i);this._stop();var s=this.project(this.getCenter()),n=this.project(t),o=this.getSize(),a=this._zoom;t=N(t),e=void 0===e?a:e;var r=Math.max(o.x,o.y),l=r*this.getZoomScale(a,e),h=n.distanceTo(s)||1;function u(t){var e=(l*l-r*r+2.0164*(t?-1:1)*2.0164*h*h)/(2*(t?l:r)*2.0164*h),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function c(t){return(Math.exp(t)+Math.exp(-t))/2}var p=u(0);function m(t){return r*(c(p)*(d(e=p+1.42*t)/c(e))-d(p))/2.0164;var e}var f=Date.now(),g=(u(1)-p)/1.42,v=i.duration?1e3*i.duration:1e3*g*.8;return this._moveStart(!0,i.noMoveStart),function i(){var o=(Date.now()-f)/v,l=function(t){return 1-Math.pow(1-t,1.5)}(o)*g;o<=1?(this._flyToFrame=T(i,this),this._move(this.unproject(s.add(n.subtract(s).multiplyBy(m(l)/h)),a),this.get
vendor: 5,124 bytes, line 1
1ScaleZoom(r/function(t){return r*(c(p)/c(p+1.42*t))}(l),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return t=F(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),s=this._limitCenter(i,this._zoom,F(t));return i.equals(s)||this.panTo(s,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=z((e=e||{}).paddingTopLeft||e.padding||[0,0]),s=z(e.paddingBottomRight||e.padding||[0,0]),n=this.project(this.getCenter()),o=this.project(t),a=this.getPixelBounds(),r=O([a.min.add(i),a.max.subtract(s)]),l=r.getSize();if(!r.contains(o)){this._enforcingBounds=!0;var h=o.subtract(r.getCenter()),u=r.extend(o).getSize().subtract(l);n.x+=h.x<0?-u.x:u.x,n.y+=h.y<0?-u.y:u.y,this.panTo(this.unproject(n),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),o=i.divideBy(2).round(),a=n.divideBy(2).round(),r=o.subtract(a);return r.x||r.y?(t.animate&&t.pan?this.panBy(r):(t.pan&&this._rawPanBy(r),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=s(this._handleGeolocationResponse,this),n=s(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,n,t):navigator.geolocation.getCurrentPosition(i,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new $(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),s=this._locateOptions;if(s.setView){var n=this.getBoundsZoom(i);this.setView(e,s.maxZoom?Math.min(n,s.maxZoom):n)}var o={latlng:e,bounds:i,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(o[a]=t.coords[a]);this.fire("locationfound",o)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ae(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(S(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ae(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=oe("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new D(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZo
vendor: 12,727 bytes, line 1
1om?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=F(t),i=z(i||[0,0]);var s=this.getZoom()||0,n=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),r=t.getSouthEast(),l=this.getSize().subtract(i),h=O(this.project(r,s),this.project(a,s)).getSize(),u=Ot.any3d?this.options.zoomSnap:1,d=l.x/h.x,c=l.y/h.y,p=e?Math.max(d,c):Math.min(d,c);return s=this.getScaleZoom(p,s),u&&(s=Math.round(s/(u/100))*(u/100),s=e?Math.ceil(s/u)*u:Math.floor(s/u)*u),Math.max(n,Math.min(o,s))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new I(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var s=i.zoom(t*i.scale(e));return isNaN(s)?1/0:s},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(N(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(z(t),e)},layerPointToLatLng:function(t){var e=z(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(N(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(N(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(F(t))},distance:function(t,e){return this.options.crs.distance(N(t),N(e))},containerPointToLayerPoint:function(t){return z(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return z(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(z(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(N(t)))},mouseEventToContainerPoint:function(t){return Ze(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=se(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Pe(e,"scroll",this._onScroll,this),this._containerId=o(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ot.any3d,de(t,"leaflet-container"+(Ot.touch?" leaflet-touch":"")+(Ot.retina?" leaflet-retina":"")+(Ot.ielt9?" leaflet-oldie":"")+(Ot.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ne(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),_e(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(de(t.markerPane,"leaflet-zoom-hide"),de(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){_e(this._mapPane,new A(0,0));var s=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var n=this._zoom!==e;this._moveStart(n,i)._move(t,e)._moveEnd(n),this.fire("viewreset"),s&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,s){void 0===e&&(e=this._zoom);var n=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),s?i&&i.pinch&&this.fire("zoom",i):((n||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return S(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){_e(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[o(this._container)]=this;var e=t?Le:Pe;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Ot.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){S(this._resizeRequest),this._resizeRequest=T((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,s=[],n="mouseout"===e||"mouseover"===e,a=t.target||t.srcElement,r=!1;a;){if((i=this._targets[o(a)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){r=!0;break}if(i&&i.listens(e,!0)){if(n&&!He(a,t))break;if(s.push(i),n)break}if(a===this._container)break;a=a.parentNode}return s.length||r||n||!this.listens(e,!0)||(s=[this]),s},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var i=t.type;"mousedown"===i&&Ee(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,s){if("click"===t.type){var n=e({},t);n.type="preclick",this._fireDOMEvent(n,n.type,s)}var o=this._findEventTargets(t,i);if(s){for(var a=[],r=0;r<s.length;r++)s[r].listens(i,!0)&&a.push(s[r]);o=a.concat(o)}if(o.length){"contextmenu"===i&&$e(t);var l=o[0],h={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var u=l.getLatLng&&(!l._radius||l._radius<=10);h.containerPoint=u?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),h.layerPoint=this.containerPointToLayerPoint(h.containerPoint),h.latlng=u?l.getLatLng():this.layerPointToLatLng(h.layerPoint)}for(r=0;r<o.length;r++)if(o[r].fire(i,h,!0),h.originalEvent._stopped||!1===o[r].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,i))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return ye(this._mapPane)||new A(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var s=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(s)},_latLngBoundsToNewLayerBounds:function(t,e,i){var s=this._getNewPixelOrigin(i,e);return O([this.project(t.getSouthWest(),e)._subtract(s),this.project(t.getNorthWest(),e)._subtract(s),this.project(t.getSouthEast(),e)._subtract(s),this.project(t.getNorthEast(),e)._subtract(s)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var s=this.project(t,e),n=this.getSize().divideBy(2),o=new I(s.subtract(n),s.add(n)),a=this._getBoundsOffset(o,i,e);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?t:this.unproject(s.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),s=new I(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(s,e))},_getBoundsOffset:function(t,e,i){var s=O(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),n=s.min.subtract(t.min),o=s.max.subtract(t.max);return new A(this._rebound(n.x,-o.x),this._rebound(n.y,-o.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),s=Ot.any3d?this.options.zoomSnap:1;return s&&(t=Math.round(t/s)*s),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ce(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=oe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=te,i=this._proxy.style[e];ve(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ae(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ve(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var s=this.getZoomScale(e),n=this._getCenterOffset(t)._divideBy(1-1/s);return!(!0!==i.animate&&!this.getSize().contains(n)||(T((function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,de(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ce(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}}),Ye=k.extend({options:{position:"topright"},initialize:function(t){c(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),s=t._controlCorners[i];return de(e,"leaflet-control"),-1!==i.indexOf("bottom")?s.insertBefore(e,s.firstChild):s.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ae(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ue=function(t){return new Ye(t)};Ge.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this}
vendor: 11,517 bytes, line 1
1,_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=oe("div",e+"control-container",this._container);function s(s,n){var o=e+s+" "+e+n;t[s+n]=oe("div",o,i)}s("top","left"),s("top","right"),s("bottom","left"),s("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ae(this._controlCorners[t]);ae(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Xe=Ye.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,s){return i<s?-1:s<i?1:0}},initialize:function(t,e,i){for(var s in c(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[s],s);for(s in e)this._addLayer(e[s],s,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Ye.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(o(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){de(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(de(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):ce(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ce(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=oe("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Fe(e),De(e);var s=this._section=oe("section",t+"-list");i&&(this._map.on("click",this.collapse,this),Pe(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var n=this._layersLink=oe("a",t+"-toggle",e);n.href="#",n.title="Layers",n.setAttribute("role","button"),Pe(n,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){$e(t),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=oe("div",t+"-base",s),this._separator=oe("div",t+"-separator",s),this._overlaysList=oe("div",t+"-overlays",s),e.appendChild(s)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&o(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(s((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;re(this._baseLayersList),re(this._overlaysList),this._layerControlInputs=[];var t,e,i,s,n=0;for(i=0;i<this._layers.length;i++)s=this._layers[i],this._addItem(s),e=e||s.overlay,t=t||!s.overlay,n+=s.overlay?0:1;return this.options.hideSingleBase&&(t=t&&n>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(o(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",s=document.createElement("div");return s.innerHTML=i,s.firstChild},_addItem:function(t){var e,i=document.createElement("label"),s=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=s):e=this._createRadioElement("leaflet-base-layers_"+o(this),s),this._layerControlInputs.push(e),e.layerId=o(t.layer),Pe(e,"click",this._onInputClick,this);var n=document.createElement("span");n.innerHTML=" "+t.name;var a=document.createElement("span");return i.appendChild(a),a.appendChild(e),a.appendChild(n),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,s=[],n=[];this._handlingClick=!0;for(var o=i.length-1;o>=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.checked?s.push(e):t.checked||n.push(e);for(o=0;o<n.length;o++)this._map.hasLayer(n[o])&&this._map.removeLayer(n[o]);for(o=0;o<s.length;o++)this._map.hasLayer(s[o])||this._map.addLayer(s[o]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,s=this._map.getZoom(),n=i.length-1;n>=0;n--)t=i[n],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&s<e.options.minZoom||void 0!==e.options.maxZoom&&s>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Pe(t,"click",$e),this.expand();var e=this;setTimeout((function(){Le(t,"click",$e),e._preventClick=!1}))}}),Ke=Ye.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=oe("div",e+" leaflet-bar"),s=this.options;return this._zoomInButton=this._createButton(s.zoomInText,s.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(s.zoomOutText,s.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,s,n){var o=oe("a",i,s);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Fe(o),Pe(o,"click",Ne),Pe(o,"click",n,this),Pe(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";ce(this._zoomInButton,e),ce(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(de(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(de(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ge.mergeOptions({zoomControl:!0}),Ge.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Ke,this.addControl(this.zoomControl))}));var Je=Ye.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e=oe("div","leaflet-control-scale"),i=this.options;return this._addScales(i,"leaflet-control-scale-line",e),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=oe("div",e,i)),t.imperial&&(this._iScale=oe("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,s,n=3.2808399*t;n>5280?(e=n/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(s=this._getRoundNum(n),this._updateScale(this._iScale,s+" ft",s/n))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),Qe=Ye.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ot.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){c(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=oe("div","leaflet-control-attribution"),Fe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}});Ge.mergeOptions({attributionControl:!0}),Ge.addInitHook((function(){this.options.attributionControl&&(new Qe).addTo(this)})),Ye.Layers=Xe,Ye.Zoom=Ke,Ye.Scale=Je,Ye.Attribution=Qe,Ue.layers=function(t,e,i){return new Xe(t,e,i)},Ue.zoom=function(t){return new Ke(t)},Ue.scale=function(t){return new Je(t)},Ue.attribution=function(t){return new Qe(t)};var ti=k.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ti.addTo=function(t,e){return t.addHandler(e,this),this};var ei={Events:P},ii=Ot.touch?"touchstart mousedown":"mousedown",si=M.extend({options:{clickTolerance:3}
vendor: 2,894 bytes, line 1
1,initialize:function(t,e,i,s){c(this,s),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Pe(this._dragStartTarget,ii,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(si._dragging===this&&this.finishDrag(!0),Le(this._dragStartTarget,ii,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ue(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)si._dragging===this&&this.finishDrag();else if(!(si._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(si._dragging=this,this._preventOutline&&Ee(this._element),we(),Ut(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,i=Se(this._element);this._startPoint=new A(e.clientX,e.clientY),this._startPos=ye(this._element),this._parentScale=Ce(i);var s="mousedown"===t.type;Pe(document,s?"mousemove":"touchmove",this._onMove,this),Pe(document,s?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new A(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,$e(t),this._moved||(this.fire("dragstart"),this._moved=!0,de(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),de(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),_e(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){ce(document.body,"leaflet-dragging"),this._lastTarget&&(ce(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Le(document,"mousemove touchmove",this._onMove,this),Le(document,"mouseup touchend touchcancel",this._onUp,this),xe(),Xt();var e=this._moved&&this._moving;this._moving=!1,si._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function ni(t,e,i){var s,n,o,a,r,l,h,u,d,c=[1,4,2,8];for(n=0,h=t.length;n<h;n++)t[n]._code=pi(t[n],e);for(a=0;a<4;a++){for(u=c[a],s=[],n=0,o=(h=t.length)-1;n<h;o=n++)r=t[n],l=t[o],r._code&u?l._code&u||((d=ci(l,r,u,e,i))._code=pi(d,e),s.push(d)):(l._code&u&&((d=ci(l,r,u,e,i))._code=pi(d,e),s.push(d)),s.push(r));t=s}return t}function oi(t,e){var i,s,n,o,a,r,l,h,u;if(!t||0===t.length)throw new Error("latlngs not passed");fi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var d=N([0,0]),c=F(t);
1c.getNorthWest().distanceTo(c.getSouthWest())*c.getNorthEast().distanceTo(c.getNorthWest())<1700&&(d=ai(t));var p=t.length,m=[];for(i=0;i<p;i++){var f=N(t[i]);m.push(e.project(N([f.lat-d.lat,f.lng-d.lng])))}for(r=l=h=0,i=0,s=p-1;i<p;s=i++)n=m[i],o=m[s],a=n.y*o.x-o.y*n.x,l+=(n.x+o.x)*a,h+=(n.y+o.y)*a,r+=3*a;u=0===r?m[0]:[l/r,h/r];var g=e.unproject(z(u));return N([g.lat+d.lat,g.lng+d.lng])}function ai(t){for(var e=0,i=0,s=0,n=0;n<t.length;n++){var o=N(t[n]);e+=o.lat,i+=o.lng,s++}return N([e/s,i/s])}var ri,li={__proto__:null,clipPolygon:ni,polygonCenter:oi,centroid:ai};function hi(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=function(t,e){var i=t.length,s=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);s[0]=s[i-1]=1,function t(e,i,s,n,o){var a,r,l,h=0;for(r=n+1;r<=o-1;r++)(l=mi(e[r],e[n],e[o],!0))>h&&(a=r,h=l);h>s&&(i[a]=1,t(e,i,s,n,a),t(e,i,s,a,o))}(t,s,e,0,i-1);var n,o=[];for(n=0;n<i;n++)s[n]&&o.push(t[n]);return o}(t=function(t,e){for(var i=[t[0]],s=1,n=0,o=t.length;s<o;s++)a=t[s],r=t[n],l=void 0,h=void 0,l=r.x-a.x,h=r.y-a.y,l*l+h*h>e&&(i.push(t[s]),n=s);var a,r,l,h;return n<o-1&&i.push(t[o-1]),i}(t,i),i)}function ui(t,e,i){return Math.sqrt(mi(t,e,i,!0))}function di(t,e,i,s,n){var o,a,r,l=s?ri:pi(t,i),h=pi(e,i);for(ri=h;;){if(!(l|h))return[t,e];if(l&h)return!1;r=pi(a=ci(t,e,o=l||h,i,n),i),o===l?(t=a,l=r):(e=a,h=r)}}function ci(t,e,i,s,n){var o,a,r=e.x-t.x,l=e.y-t.y,h=s.min,u=s.max;return 8&i?(o=t.x+r*(u.y-t.y)/l,a=u.y):4&i?(o=t.x+r*(h.y-t.y)/l,a=h.y):2&i?(o=u.x,a=t.y+l*(u.x-t.x)/r):1&i&&(o=h.x,a=t.y+l*(h.x-t.x)/r),new A(o,a,n)}function pi(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function mi(t,e,i,s){var n,o=e.x,a=e.y,r=i.x-o,l=i.y-a,h=r*r+l*l;return h>0&&((n=((t.x-o)*r+(t.y-a)*l)/h)>1?(o=i.x,a=i.y):n>0&&(o+=r*n,a+=l*n)),r=t.x-o,l=t.y-a,s?r*r+l*l:new A(o,a)}function fi(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function gi(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),fi(t)}function vi(t,e){var i,s,n,o,a,r,l,h;if(!t||0===t.length)throw new Error("latlngs not passed");fi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=N([0,0]),d=F(t);
vendor: 4,226 bytes, line 1
1d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(u=ai(t));var c=t.length,p=[];for(i=0;i<c;i++){var m=N(t[i]);p.push(e.project(N([m.lat-u.lat,m.lng-u.lng])))}for(i=0,s=0;i<c-1;i++)s+=p[i].distanceTo(p[i+1])/2;if(0===s)h=p[0];else for(i=0,o=0;i<c-1;i++)if(a=p[i],r=p[i+1],(o+=n=a.distanceTo(r))>s){l=(o-s)/n,h=[r.x-l*(r.x-a.x),r.y-l*(r.y-a.y)];break}var f=e.unproject(z(h));return N([f.lat+u.lat,f.lng+u.lng])}var _i={__proto__:null,simplify:hi,pointToSegmentDistance:ui,closestPointOnSegment:function(t,e,i){return mi(t,e,i)},clipSegment:di,_getEdgeIntersection:ci,_getBitCode:pi,_sqClosestPointOnSegment:mi,isFlat:fi,_flat:gi,polylineCenter:vi},yi={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new $(t.y,t.x)},bounds:new I([-180,-90],[180,90])},bi={R:6378137,R_MINOR:6356752.314245179,bounds:new I([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,s=t.lat*e,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),a=o*Math.sin(s),r=Math.tan(Math.PI/4-s/2)/Math.pow((1-a)/(1+a),o/2);return s=-i*Math.log(Math.max(r,1e-10)),new A(t.lng*e*i,s)},unproject:function(t){for(var e,i=180/Math.PI,s=this.R,n=this.R_MINOR/s,o=Math.sqrt(1-n*n),a=Math.exp(-t.y/s),r=Math.PI/2-2*Math.atan(a),l=0,h=.1;l<15&&Math.abs(h)>1e-7;l++)e=o*Math.sin(r),e=Math.pow((1-e)/(1+e),o/2),r+=h=Math.PI/2-2*Math.atan(a*e)-r;return new $(r*i,t.x*i/s)}},wi={__proto__:null,LonLat:yi,Mercator:bi,SphericalMercator:j},xi=e({},V,{code:"EPSG:3395",projection:bi,transformation:function(){var t=.5/(Math.PI*bi.R);return q(t,.5,-t,.5)}()}),Ei=e({},V,{code:"EPSG:4326",projection:yi,transformation:q(1/180,1,-1/180,.5)}),Ti=e({},Z,{projection:yi,transformation:q(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,s=e.lat-t.lat;return Math.sqrt(i*i+s*s)},infinite:!0});Z.Earth=V,Z.EPSG3395=xi,Z.EPSG3857=W,Z.EPSG900913=G,Z.EPSG4326=Ei,Z.Simple=Ti;var Si=M.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[o(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[o(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});Ge.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=o(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=o(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return o(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?g(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[o(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=o(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var s in this._zoomBoundLayers){var n=this._zoomBoundLayers[s].options;t=void 0===n.minZoom?t:Math.min(t,n.minZoom),e=void 0===n.maxZoom?e:Math.max(e,n.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZo
vendor: 13,670 bytes, line 1
1om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ci=Si.extend({initialize:function(t,e){var i,s;if(c(this,e),this._layers={},t)for(i=0,s=t.length;i<s;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,s=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,s);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return o(t)}}),ki=Ci.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ci.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ci.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new D;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Pi=k.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){c(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var s=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(s,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(s.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),s},_setIconStyles:function(t,e){var i=this.options,s=i[e+"Size"];"number"==typeof s&&(s=[s,s]);var n=z(s),o=z("shadow"===e&&i.shadowAnchor||i.iconAnchor||n&&n.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),n&&(t.style.width=n.x+"px",t.style.height=n.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Ot.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),Mi=Pi.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof Mi.imagePath&&(Mi.imagePath=this._detectIconPath()),(this.options.imagePath||Mi.imagePath)+Pi.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var s=e.exec(t);return s&&s[i]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=oe("div","leaflet-default-icon-path",document.body),e=ne(t,"background-image")||ne(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var i=document.querySelector('link[href$="leaflet.css"]');return i?i.href.substring(0,i.href.length-"leaflet.css".length-1):""}}),Li=ti.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new si(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),de(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ce(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,s=this._marker.options.autoPanSpeed,n=this._marker.options.autoPanPadding,o=ye(e._icon),a=i.getPixelBounds(),r=i.getPixelOrigin(),l=O(a.min._subtract(r).add(n),a.max._subtract(r).subtract(n));if(!l.contains(o)){var h=z((Math.max(l.max.x,o.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(s);i.panBy(h,{animate:!1}),this._draggable._newPos._add(h),this._draggable._startPos._add(h),_e(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=T(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(S(this._panRequest),this._panRequest=T(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,s=ye(e._icon),n=e._map.layerPointToLatLng(s);i&&_e(i,s),e._latlng=n,t.latlng=n,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){S(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Ai=Si.extend({options:{icon:new Mi,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){c(this,e),this._latlng=N(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=N(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),s=!1;i!==this._icon&&(this._icon&&this._removeIcon(),s=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),de(i,e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Pe(i,"focus",this._panOnFocus,this);var n=t.icon.createShadow(this._shadow),o=!1;n!==this._shadow&&(this._removeShadow(),o=!0),n&&(de(n,e),n.alt=""),this._shadow=n,t.opacity<1&&this._updateOpacity(),s&&this.getPane().appendChild(this._icon),this._initInteraction(),n&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Le(this._icon,"focus",this._panOnFocus,this),ae(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ae(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&_e(this._icon,t),this._shadow&&_e(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(de(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Li)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Li(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&fe(this._icon,t),this._shadow&&fe(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,i=e.iconSize?z(e.iconSize):z(0,0),s=e.iconAnchor?z(e.iconAnchor):z(0,0);t.panInside(this._latlng,{paddingTopLeft:s,paddingBottomRight:i.subtract(s)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),Bi=Si.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return c(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),zi=Bi.extend({options:{fill:!0,radius:10},initialize:function(t,e){c(this,e),this._latlng=N(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=N(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return Bi.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),s=[t+i,e+i];this._pxBounds=new I(this._point.subtract(s),this._point.add(s))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),Ii=zi.extend({initialize:function(t,i,s){if("number"==typeof i&&(i=e({},s,{radius:i})),c(this,i),this._latlng=N(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new D(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Bi.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,s=i.options.crs;if(s.distance===V.distance){var n=Math.PI/180,o=this._mRadius/V.R/n,a=i.project([e+o,t]),r=i.project([e-o,t]),l=a.add(r).divideBy(2),h=i.unproject(l).lat,u=Math.acos((Math.cos(o*n)-Math.sin(e*n)*Math.sin(h*n))/(Math.cos(e*n)*Math.cos(h*n)))/n;(isNaN(u)||0===u)&&(u=o/Math.cos(Math.PI/180*e)),this._point=l.subtract(i.getPixelOrigin()),this._radius=isNaN(u)?0:l.x-i.project([h,t-u]).x,this._radiusY=l.y-a.y}else{var d=s.unproject(s.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(d).x}this._updateBounds()}}),Oi=Bi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){c(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,i,s=1/0,n=null,o=mi,a=0,r=this._parts.length;a<r;a++)for(var l=this._parts[a],h=1,u=l.length;h<u;h++){var d=o(t,e=l[h-1],i=l[h],!0);d<s&&(s=d,n=o(t,e,i))}return n&&(n.distance=Math.sqrt(s)),n}
vendor: 2,255 bytes, line 1
1,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return vi(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=N(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new D,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return fi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=fi(t),s=0,n=t.length;s<n;s++)i?(e[s]=N(t[s]),this._bounds.extend(e[s])):e[s]=this._convertLatLngs(t[s]);return e},_project:function(){var t=new I;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new A(t,t);this._rawPxBounds&&(this._pxBounds=new I([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,i){var s,n,o=t[0]instanceof $,a=t.length;if(o){for(n=[],s=0;s<a;s++)n[s]=this._map.latLngToLayerPoint(t[s]),i.extend(n[s]);e.push(n)}else for(s=0;s<a;s++)this._projectLatlngs(t[s],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,i,s,n,o,a,r,l=this._parts;for(e=0,s=0,n=this._rings.length;e<n;e++)for(i=0,o=(r=this._rings[e]).length;i<o-1;i++)(a=di(r[i],r[i+1],t,i,!0))&&(l[s]=l[s]||[],l[s].push(a[0]),a[1]===r[i+1]&&i!==o-2||(l[s].push(a[1]),s++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,s=t.length;i<s;i++)t[i]=hi(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,s,n,o,a,r,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,o=this._parts.length;i<o;i++)for(s=0,n=(a=(r=this._parts[i]).length)-1;s<a;n=s++)if((e||0!==s)&&ui(t,r[n],r[s])<=l)return!0;return!1}});Oi._flat=gi;var Di=Oi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
vendor: 11,675 bytes, line 1
1,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return oi(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=Oi.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof $&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){Oi.prototype._setLatLngs.call(this,t),fi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return fi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new A(e,e);if(t=new I(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var s,n=0,o=this._rings.length;n<o;n++)(s=ni(this._rings[n],t,!0)).length&&this._parts.push(s)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,s,n,o,a,r,l,h=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,r=this._parts.length;n<r;n++)for(o=0,a=(l=(e=this._parts[n]).length)-1;o<l;a=o++)i=e[o],s=e[a],i.y>t.y!=s.y>t.y&&t.x<(s.x-i.x)*(t.y-i.y)/(s.y-i.y)+i.x&&(h=!h);return h||Oi.prototype._containsPoint.call(this,t,!0)}}),Fi=ki.extend({initialize:function(t,e){c(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,s,n=g(t)?t:t.features;if(n){for(e=0,i=n.length;e<i;e++)((s=n[e]).geometries||s.geometry||s.features||s.coordinates)&&this.addData(s);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var a=$i(t,o);return a?(a.feature=qi(t),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function $i(t,e){var i,s,n,o,a="Feature"===t.type?t.geometry:t,r=a?a.coordinates:null,l=[],h=e&&e.pointToLayer,u=e&&e.coordsToLatLng||Ri;if(!r&&!a)return null;switch(a.type){case"Point":return Ni(h,t,i=u(r),e);case"MultiPoint":for(n=0,o=r.length;n<o;n++)i=u(r[n]),l.push(Ni(h,t,i,e));return new ki(l);case"LineString":case"MultiLineString":return s=Zi(r,"LineString"===a.type?0:1,u),new Oi(s,e);case"Polygon":case"MultiPolygon":return s=Zi(r,"Polygon"===a.type?1:2,u),new Di(s,e);case"GeometryCollection":for(n=0,o=a.geometries.length;n<o;n++){var d=$i({geometry:a.geometries[n],type:"Feature",properties:t.properties},e);d&&l.push(d)}return new ki(l);case"FeatureCollection":for(n=0,o=a.features.length;n<o;n++){var c=$i(a.features[n],e);c&&l.push(c)}return new ki(l);default:throw new Error("Invalid GeoJSON object.")}}function Ni(t,e,i,s){return t?t(e,i):new Ai(i,s&&s.markersInheritOptions&&s)}function Ri(t){return new $(t[1],t[0],t[2])}function Zi(t,e,i){for(var s,n=[],o=0,a=t.length;o<a;o++)s=e?Zi(t[o],e-1,i):(i||Ri)(t[o]),n.push(s);return n}function Vi(t,e){return void 0!==(t=N(t)).alt?[h(t.lng,e),h(t.lat,e),h(t.alt,e)]:[h(t.lng,e),h(t.lat,e)]}function ji(t,e,i,s){for(var n=[],o=0,a=t.length;o<a;o++)n.push(e?ji(t[o],fi(t[o])?0:e-1,i,s):Vi(t[o],s));return!e&&i&&n.length>0&&n.push(n[0].slice()),n}function Hi(t,i){return t.feature?e({},t.feature,{geometry:i}):qi(i)}function qi(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Wi={toGeoJSON:function(t){return Hi(this,{type:"Point",coordinates:Vi(this.getLatLng(),t)})}};function Gi(t,e){return new Fi(t,e)}Ai.include(Wi),Ii.include(Wi),zi.include(Wi),Oi.include({toGeoJSON:function(t){var e=!fi(this._latlngs);return Hi(this,{type:(e?"Multi":"")+"LineString",coordinates:ji(this._latlngs,e?1:0,!1,t)})}}),Di.include({toGeoJSON:function(t){var e=!fi(this._latlngs),i=e&&!fi(this._latlngs[0]),s=ji(this._latlngs,i?2:e?1:0,!0,t);return e||(s=[s]),Hi(this,{type:(i?"Multi":"")+"Polygon",coordinates:s})}}),Ci.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)})),Hi(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,s=[];return this.eachLayer((function(e){if(e.toGeoJSON){var n=e.toGeoJSON(t);if(i)s.push(n.geometry);else{var o=qi(n);"FeatureCollection"===o.type?s.push.apply(s,o.features):s.push(o)}}})),i?Hi(this,{geometries:s,type:"GeometryCollection"}):{type:"FeatureCollection",features:s}}});var Yi=Gi,Ui=Si.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=F(e),c(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(de(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ae(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&le(this._image),this},bringToBack:function(){return this._map&&he(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=F(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:oe("img");de(e,"leaflet-image-layer"),this._zoomAnimated&&de(e,"leaflet-zoom-animated"),this.options.className&&de(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onload=s(this.fire,this,"load"),e.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ve(this._image,i,e)},_reset:function(){var t=this._image,e=new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();_e(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){fe(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Xi=Ui.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:oe("video");if(de(e,"leaflet-image-layer"),this._zoomAnimated&&de(e,"leaflet-zoom-animated"),this.options.className&&de(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onloadeddata=s(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],o=0;o<i.length;o++)n.push(i[o].src);this._url=i.length>0?n:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var r=oe("source");r.src=this._url[a],e.appendChild(r)}}}}),Ki=Ui.extend({_initImage:function(){var t=this._image=this._url;de(t,"leaflet-image-layer"),this._zoomAnimated&&de(t,"leaflet-zoom-animated"),this.options.className&&de(t,this.options.className),t.onselectstart=l,t.onmousemove=l}}),Ji=Si.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof $||g(t))?(this._latlng=N(t),c(this,e)):(c(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&fe(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&fe(this._container,1),this.bringToFront(),this.options.interactive&&(de(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(fe(this._container,0),this._removeTimeout=setTimeout(s(ae,void 0,this._container),200)):ae(this._container),this.options.interactive&&(ce(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=N(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&le(this._container),this},bringToBack:function(){return this._map&&he(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof ki){e=null;var i=this._source._layers;for(var s in i)if(i[s]._map){e=i[s];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=z(this.options.offset),i=this._getAnchor();this._zoomAnimated?_e(this._container,t.add(i)):e=e.add(t).add(i);var s=this._containerBottom=-e.y,n=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=s+"px",this._container.style.left=n+"px"}},_getAnchor:function(){return[0,0]}});
vendor: 14,478 bytes, line 1
1Ge.include({_initOverlay:function(t,e,i,s){var n=e;return n instanceof t||(n=new t(s).setContent(e)),i&&n.setLatLng(i),n}}),Si.include({_initOverlay:function(t,e,i,s){var n=i;return n instanceof t?(c(n,s),n._source=this):(n=e&&!s?e:new t(s,this)).setContent(i),n}});var Qi=Ji.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Ji.prototype.openOn.call(this,t)},onAdd:function(t){Ji.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Bi||this._source.on("preclick",Oe))},onRemove:function(t){Ji.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Bi||this._source.off("preclick",Oe))},getEvents:function(){var t=Ji.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=oe("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=oe("div",t+"-content-wrapper",e);if(this._contentNode=oe("div",t+"-content",i),Fe(e),De(this._contentNode),Pe(e,"contextmenu",Oe),this._tipContainer=oe("div",t+"-tip-container",e),this._tip=oe("div",t+"-tip",this._tipContainer),this.options.closeButton){var s=this._closeButton=oe("a",t+"-close-button",e);s.setAttribute("role","button"),s.setAttribute("aria-label","Close popup"),s.href="#close",s.innerHTML='<span aria-hidden="true">×</span>',Pe(s,"click",(function(t){$e(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var s=t.offsetHeight,n=this.options.maxHeight;n&&s>n?(e.height=n+"px",de(t,"leaflet-popup-scrolled")):ce(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();_e(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(ne(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,s=this._containerWidth,n=new A(this._containerLeft,-i-this._containerBottom);n._add(ye(this._container));var o=t.layerPointToContainerPoint(n),a=z(this.options.autoPanPadding),r=z(this.options.autoPanPaddingTopLeft||a),l=z(this.options.autoPanPaddingBottomRight||a),h=t.getSize(),u=0,d=0;o.x+s+l.x>h.x&&(u=o.x+s-h.x+l.x),o.x-u-r.x<0&&(u=o.x-r.x),o.y+i+l.y>h.y&&(d=o.y+i-h.y+l.y),o.y-d-r.y<0&&(d=o.y-r.y),(u||d)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([u,d]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ge.mergeOptions({closePopupOnClick:!0}),Ge.include({openPopup:function(t,e,i){return this._initOverlay(Qi,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Si.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Qi,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof ki||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ne(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof Bi?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var ts=Ji.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Ji.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Ji.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Ji.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=oe("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+o(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,s=this._map,n=this._container,o=s.latLngToContainerPoint(s.getCenter()),a=s.layerPointToContainerPoint(t),r=this.options.direction,l=n.offsetWidth,h=n.offsetHeight,u=z(this.options.offset),d=this._getAnchor();"top"===r?(e=l/2,i=h):"bottom"===r?(e=l/2,i=0):"center"===r?(e=l/2,i=h/2):"right"===r?(e=0,i=h/2):"left"===r?(e=l,i=h/2):a.x<o.x?(r="right",e=0,i=h/2):(r="left",e=l+2*(u.x+d.x),i=h/2),t=t.subtract(z(e,i,!0)).add(u).add(d),ce(n,"leaflet-tooltip-right"),ce(n,"leaflet-tooltip-left"),ce(n,"leaflet-tooltip-top"),ce(n,"leaflet-tooltip-bottom"),de(n,"leaflet-tooltip-"+r),_e(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&fe(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Ge.include({openTooltip:function(t,e,i){return this._initOverlay(ts,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Si.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ts,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,i.click=this._openTooltip,this._map?this._addFocusListeners():i.add=this._addFocusListeners),this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof ki||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(Pe(e,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),Pe(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",(function(){e._openOnceFlag=!1,e._openTooltip(t)}))}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,i,s=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),s=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(s)}});var es=Pi.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(re(e),e.appendChild(i.html)):e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var s=z(i.bgPos);e.style.backgroundPosition=-s.x+"px "+-s.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});Pi.Default=Mi;var is=Si.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ot.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){c(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ae(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(le(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(he(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof A?t:new A(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,s=-t(-1/0,1/0),n=0,o=i.length;n<o;n++)e=i[n].style.zIndex,i[n]!==this._container&&e&&(s=t(s,+e));isFinite(s)&&(this.options.zIndex=s+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ot.ielt9){fe(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var s in this._tiles){var n=this._tiles[s];if(n.current&&n.loaded){var o=Math.min(1,(t-n.loaded)/200);fe(n.el,o),o<1?e=!0:(n.active?i=!0:this._onOpaqueTile(n),n.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(S(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this))}},_onOpaqueTile:l,_initContainer:function(){this._container||(this._container=oe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(ae(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var s=this._levels[t],n=this._map;return s||((s=this._levels[t]={}).el=oe("div","leaflet-tile-container leaflet-zoom-animated",this._container),s.el.style.zIndex=e,s.origin=n.project(n.unproject(n.getPixelOrigin()),t).round(),s.zoom=t,this._setZoomTransform(s,n.getCenter(),n.getZoom()),s.el.offsetWidth,this._onCreateLevel(s)),this._level=s,s}},_onUpdateLevel:l,_onRemoveLevel:l,_onCreateLevel:l,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var s=e.coords;this._retainParent(s.x,s.y,s.z,s.z-5)||this._retainChildren(s.x,s.y,s.z,s.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ae(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0}
vendor: 4,957 bytes, line 1
1,_retainParent:function(t,e,i,s){var n=Math.floor(t/2),o=Math.floor(e/2),a=i-1,r=new A(+n,+o);r.z=+a;var l=this._tileCoordsToKey(r),h=this._tiles[l];return h&&h.active?(h.retain=!0,!0):(h&&h.loaded&&(h.retain=!0),a>s&&this._retainParent(n,o,a,s))},_retainChildren:function(t,e,i,s){for(var n=2*t;n<2*t+2;n++)for(var o=2*e;o<2*e+2;o++){var a=new A(n,o);a.z=i+1;var r=this._tileCoordsToKey(a),l=this._tiles[r];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),i+1<s&&this._retainChildren(n,o,i+1,s))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,s){var n=Math.round(e);n=void 0!==this.options.maxZoom&&n>this.options.maxZoom||void 0!==this.options.minZoom&&n<this.options.minZoom?void 0:this._clampZoom(n);var o=this.options.updateWhenZooming&&n!==this._tileZoom;s&&!o||(this._tileZoom=n,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==n&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var s=this._map.getZoomScale(i,t.zoom),n=t.origin.multiplyBy(s).subtract(this._map._getNewPixelOrigin(e,i)).round();Ot.any3d?ve(t.el,n,s):_e(t.el,n)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),s=this._tileZoom,n=this._map.getPixelWorldBounds(this._tileZoom);n&&(this._globalTileRange=this._pxBoundsToTileRange(n)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],s).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],s).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],s).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],s).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),s=e.getZoomScale(i,this._tileZoom),n=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*s);return new I(n.subtract(o),n.add(o))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var s=this._getTiledPixelBounds(t),n=this._pxBoundsToTileRange(s),o=n.getCenter(),a=[],r=this.options.keepBuffer,l=new I(n.getBottomLeft().subtract([r,-r]),n.getTopRight().add([r,-r]));if(!(isFinite(n.min.x)&&isFinite(n.min.y)&&isFinite(n.max.x)&&isFinite(n.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var h in this._tiles){var u=this._tiles[h].coords;u.z===this._tileZoom&&l.contains(new A(u.x,u.y))||(this._tiles[h].current=!1)}if(Math.abs(i-this._tileZoom)>1)this._setView(t,i);else{for(var d=n.min.y;d<=n.max.y;d++)for(var c=n.min.x;c<=n.max.x;c++){var p=new A(c,d);if(p.z=this._tileZoom,this._isValidTile(p)){var m=this._tiles[this._tileCoordsToKey(p)];m?m.current=!0:a.push(p)}}if(a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var f=document.createDocumentFragment();for(c=0;c<a.length;c++)this._addTile(a[c],f);this._level.el.appendChild(f)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var s=this._tileCoordsToBounds(t);return F(this.options.bounds).overlaps(s)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),s=t.scaleBy(i),n=s.add(i);return[e.unproject(s,t.z),e.unproject(n,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new D(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new A(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(ae(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){de(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onmousemove=l,Ot.ielt9&&this.options.opacity<1&&fe(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),s(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&T(s(this._tileReady,this,t,null,o)),_e(o,i),this._tiles[n]={el:o,c
vendor: 6,067 bytes, line 1
1oords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(fe(i.el,0),S(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(de(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ot.ielt9||!this._map._fadeAnimated?T(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new A(this._wrapX?r(t.x,this._wrapX):t.x,this._wrapY?r(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new I(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),ss=is.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=c(this,e)).detectRetina&&Ot.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return Pe(i,"load",s(this._tileOnLoad,this,e,i)),Pe(i,"error",s(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var i={r:Ot.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var s=this._globalTileRange.max.y-t.y;this.options.tms&&(i.y=s),i["-y"]=s}return f(this._url,e(i,this.options))},_tileOnLoad:function(t,e){Ot.ielt9?setTimeout(s(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var s=this.options.errorTileUrl;s&&e.getAttribute("src")!==s&&(e.src=s),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,!e.complete)){e.src=_;var i=this._tiles[t].coords;ae(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",_),is.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==_))return is.prototype._tileReady.call(this,t,e,i)}});function ns(t,e){return new ss(t,e)}var os=ss.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var s=e({},this.defaultWmsParams);for(var n in i)n in this.options||(s[n]=i[n]);var o=(i=c(this,i)).detectRetina&&Ot.retina?2:1,a=this.getTileSize();s.width=a.x*o,s.height=a.y*o,this.wmsParams=s},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ss.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,s=O(i.project(e[0]),i.project(e[1])),n=s.min,o=s.max,a=(this._wmsVersion>=1.3&&this._crs===Ei?[n.y,n.x,o.y,o.x]:[n.x,n.y,o.x,o.y]).join(","),r=ss.prototype.getTileUrl.call(this,t);return r+p(this.wmsParams,r,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,i){return e(this.wmsParams,t),i||this.redraw(),this}});ss.WMS=os,ns.wms=function(t,e){return new os(t,e)};var as=Si.extend({options:{padding:.1},initialize:function(t){c(this,t),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),de(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),s=this._map.getSize().multiplyBy(.5+this.options.padding),n=this._map.project(this._center,e),o=s.multiplyBy(-i).add(n).subtract(this._map._getNewPixelOrigin(t,e));Ot.any3d?ve(this._container,o,i):_e(this._container,o)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).roun
vendor: 5,441 bytes, line 1
1d();this._bounds=new I(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),rs=as.extend({options:{tolerance:0},getEvents:function(){var t=as.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){as.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Pe(t,"mousemove",this._onMouseMove,this),Pe(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Pe(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){S(this._redrawRequest),delete this._ctx,ae(this._container),Le(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){as.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),s=Ot.retina?2:1;_e(e,t.min),e.width=s*i.x,e.height=s*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Ot.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){as.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[o(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,s=e.prev;i?i.prev=s:this._drawLast=s,s?s.next=i:this._drawFirst=i,delete t._order,delete this._layers[o(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,i,s=t.options.dashArray.split(/[, ]+/),n=[];for(i=0;i<s.length;i++){if(e=Number(s[i]),isNaN(e))return;n.push(e)}t.options._dashArray=n}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||T(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new I,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var s=this._drawFirst;s;s=s.next)t=s.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,s,n,o,a=t._parts,r=a.length,l=this._ctx;if(r){for(l.beginPath(),i=0;i<r;i++){for(s=0,n=a[i].length;s<n;s++)o=a[i][s],l[s?"lineTo":"moveTo"](o.x,o.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,s=Math.max(Math.round(t._radius),1),n=(Math.max(Math.round(t._radiusY),1)||s)/s;1!==n&&(i.save(),i.scale(1,n)),i.beginPath(),i.arc(e.x,e.y/n,s,0,2*Math.PI,!1),1!==n&&i.restore(),this._fillStroke(i,t)}},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,s=this._map.mouseEventToLayerPoint(t),n=this._drawFirst;n;n=n.next)(e=n.layer).options.interactive&&e._containsPoint(s)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(i=e);this._fireEvent(!!i&&[i],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(ce(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,n,o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(de(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(s((function(){this._mouseHoverThrottled=!1}),this),32)}}
vendor: 5,351 bytes, line 1
1,_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var i=e.next,s=e.prev;i&&(i.prev=s,s?s.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var i=e.next,s=e.prev;s&&(s.next=i,i?i.prev=s:s&&(this._drawLast=s),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function ls(t){return Ot.canvas?new rs(t):null}var hs=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),us={_initContainer:function(){this._container=oe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(as.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=hs("shape");de(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=hs("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ae(e),t.removeInteractiveTarget(e),delete this._layers[o(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,s=t.options,n=t._container;n.stroked=!!s.stroke,n.filled=!!s.fill,s.stroke?(e||(e=t._stroke=hs("stroke")),n.appendChild(e),e.weight=s.weight+"px",e.color=s.color,e.opacity=s.opacity,s.dashArray?e.dashStyle=g(s.dashArray)?s.dashArray.join(" "):s.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=s.lineCap.replace("butt","flat"),e.joinstyle=s.lineJoin):e&&(n.removeChild(e),t._stroke=null),s.fill?(i||(i=t._fill=hs("fill")),n.appendChild(i),i.color=s.fillColor||s.color,i.opacity=s.fillOpacity):i&&(n.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),s=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+s+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){le(t._container)},_bringToBack:function(t){he(t._container)}},ds=Ot.vml?hs:Y,cs=as.extend({_initContainer:function(){this._container=ds("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ds("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ae(this._container),Le(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){as.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),_e(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=ds("path");t.options.className&&de(e,t.options.className),t.options.interactive&&de(e,"leaflet-interactive"),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ae(t._path),t.removeInteractiveTarget(t._path),delete this._layers[o(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,U(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),s="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",n=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+s+2*i+",0 "+s+2*-i+",0 ";this._setPath(t,n)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){le(t._path)},_bringToBack:function(t){he(t._path)}});function ps(t){return Ot.svg||Ot.vml?new cs(t):null}Ot.vml&&cs.include(us),Ge.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&ls(t)||ps(t)}});var ms=Di.extend({initialize:function(t,e){Di.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))}
vendor: 12,265 bytes, line 1
1,_boundsToLatLngs:function(t){return[(t=F(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});cs.create=ds,cs.pointsToPath=U,Fi.geometryToLayer=$i,Fi.coordsToLatLng=Ri,Fi.coordsToLatLngs=Zi,Fi.latLngToCoords=Vi,Fi.latLngsToCoords=ji,Fi.getFeature=Hi,Fi.asFeature=qi,Ge.mergeOptions({boxZoom:!0});var fs=ti.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Pe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Le(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ae(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Ut(),we(),this._startPoint=this._map.mouseEventToContainerPoint(t),Pe(document,{contextmenu:Ne,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=oe("div","leaflet-zoom-box",this._container),de(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new I(this._point,this._startPoint),i=e.getSize();_e(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(ae(this._box),ce(this._container,"leaflet-crosshair")),Xt(),xe(),Le(document,{contextmenu:Ne,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var e=new D(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ge.addInitHook("addHandler","boxZoom",fs),Ge.mergeOptions({doubleClickZoom:!0});var gs=ti.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),s=e.options.zoomDelta,n=t.originalEvent.shiftKey?i-s:i+s;"center"===e.options.doubleClickZoom?e.setZoom(n):e.setZoomAround(t.containerPoint,n)}});Ge.addInitHook("addHandler","doubleClickZoom",gs),Ge.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var vs=ti.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new si(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}de(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ce(this._map._container,"leaflet-grab"),ce(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=F(this._map.options.maxBounds);this._offsetLimit=O(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,s=this._draggable._newPos.x,n=(s-e+i)%t+e-i,o=(s+e+i)%t-e-i,a=Math.abs(n+i)<Math.abs(o+i)?n:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,i=e.options,s=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),s)e.fire("moveend");else{this._prunePositions(+new Date);var n=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=i.easeLinearity,r=n.multiplyBy(a/o),l=r.distanceTo([0,0]),h=Math.min(i.inertiaMaxSpeed,l),u=r.multiplyBy(h/l),d=h/(i.inertiaDeceleration*a),c=u.multiplyBy(-d/2).round();c.x||c.y?(c=e._limitOffset(c,e.options.maxBounds),T((function(){e.panBy(c,{duration:d,easeLinearity:a,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});Ge.addInitHook("addHandler","dragging",vs),Ge.mergeOptions({keyboard:!0,keyboardPanDelta:80});var _s=ti.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Pe(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Le(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,s=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(s,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,i,s=this._panKeys={},n=this.keyCodes;for(e=0,i=n.left.length;e<i;e++)s[n.left[e]]=[-1*t,0];for(e=0,i=n.right.length;e<i;e++)s[n.right[e]]=[t,0];for(e=0,i=n.down.length;e<i;e++)s[n.down[e]]=[0,t];for(e=0,i=n.up.length;e<i;e++)s[n.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,i,s=this._zoomKeys={},n=this.keyCodes;for(e=0,i=n.zoomIn.length;e<i;e++)s[n.zoomIn[e]]=t;for(e=0,i=n.zoomOut.length;e<i;e++)s[n.zoomOut[e]]=-t},_addHooks:function(){Pe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Le(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,s=this._map;if(i in this._panKeys){if(!s._panAnim||!s._panAnim._inProgress)if(e=this._panKeys[i],t.shiftKey&&(e=z(e).multiplyBy(3)),s.options.maxBounds&&(e=s._limitOffset(z(e),s.options.maxBounds)),s.options.worldCopyJump){var n=s.wrapLatLng(s.unproject(s.project(s.getCenter()).add(e)));s.panTo(n)}else s.panBy(e)}else if(i in this._zoomKeys)s.setZoom(s.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!s._popup||!s._popup.options.closeOnEscapeKey)return;s.closePopup()}Ne(t)}}});Ge.addInitHook("addHandler","keyboard",_s),Ge.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ys=ti.extend({addHooks:function(){Pe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Le(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=je(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),n),Ne(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var s=this._delta/(4*this._map.options.wheelPxPerZoomLevel),n=4*Math.log(2/(1+Math.exp(-Math.abs(s))))/Math.LN2,o=i?Math.ceil(n/i)*i:n,a=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});Ge.addInitHook("addHandler","scrollWheelZoom",ys),Ge.mergeOptions({tapHold:Ot.touchNative&&Ot.safari&&Ot.mobile,tapTolerance:15});var bs=ti.extend({addHooks:function(){Pe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Le(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new A(e.clientX,e.clientY),this._holdTimeout=setTimeout(s((function(){this._cancel(),this._isTapValid()&&(Pe(document,"touchend",$e),Pe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),600),Pe(document,"touchend touchcancel contextmenu",this._cancel,this),Pe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Le(document,"touchend",$e),Le(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Le(document,"touchend touchcancel contextmenu",this._cancel,this),Le(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new A(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});Ge.addInitHook("addHandler","tapHold",bs),Ge.mergeOptions({touchZoom:Ot.touch,bounceAtZoomLimits:!0});var ws=ti.extend({addHooks:function(){de(this._map._container,"leaflet-touch-zoom"),Pe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ce(this._map._container,"leaflet-touch-zoom"),Le(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),s=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(s)._divideBy(2))),this._startDist=i.distanceTo(s),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Pe(document,"touchmove",this._onTouchMove,this),Pe(document,"touchend touchcancel",this._onTouchEnd,this),$e(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMin
1Zoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),S(this._animRequest);var r=s(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=T(r,this,!0),$e(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,S(this._animRequest),Le(document,"touchmove",this._onTouchMove,this),Le(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ge.addInitHook("addHandler","touchZoom",ws),Ge.BoxZoom=fs,Ge.DoubleClickZoom=gs,Ge.Drag=vs,Ge.Keyboard=_s,Ge.ScrollWheelZoom=ys,Ge.TapHold=bs,Ge.TouchZoom=ws,t.Bounds=I,t.Browser=Ot,t.CRS=Z,t.Canvas=rs,t.Circle=Ii,t.CircleMarker=zi,t.Class=k,t.Control=Ye,t.DivIcon=es,t.DivOverlay=Ji,t.DomEvent=qe,t.DomUtil=ke,t.Draggable=si,t.Evented=M,t.FeatureGroup=ki,t.GeoJSON=Fi,t.GridLayer=is,t.Handler=ti,t.Icon=Pi,t.ImageOverlay=Ui,t.LatLng=$,t.LatLngBounds=D,t.Layer=Si,t.LayerGroup=Ci,t.LineUtil=_i,t.Map=Ge,t.Marker=Ai,t.Mixin=ei,t.Path=Bi,t.Point=A,t.PolyUtil=li,t.Polygon=Di,t.Polyline=Oi,t.Popup=Qi,t.PosAnimation=We,t.Projection=wi,t.Rectangle=ms,t.Renderer=as,t.SVG=cs,t.SVGOverlay=Ki,t.TileLayer=ss,t.Tooltip=ts,t.Transformation=H,t.Util=C,t.VideoOverlay=Xi,t.bind=s,t.bounds=O,t.canvas=ls,t.circle=function(t,e,i){return new Ii(t,e,i)},t.circleMarker=function(t,e){return new zi(t,e)},t.control=Ue,t.divIcon=function(t){return new es(t)},t.extend=e,t.featureGroup=function(t,e){return new ki(t,e)},t.geoJSON=Gi,t.geoJson=Yi,t.gridLayer=function(t){return new is(t)},t.icon=function(t){return new Pi(t)},t.imageOverlay=function(t,e,i){return new Ui(t,e,i)},t.latLng=N,t.latLngBounds=F,t.layerGroup=function(t,e){return new Ci(t,e)},t.map=function(t,e){return new Ge(t,e)},t.marker=function(t,e){return new Ai(t,e)},t.point=z,t.polygon=function(t,e){return new Di(t,e)},t.polyline=function(t,e){return new Oi(t,e)},t.popup=function(t,e){return new Qi(t,e)},t.rectangle=function(t,e){return new ms(t,e)},t.setOptions=c,t.stamp=o,t.svg=ps,t.svgOverlay=function(t,e,i){return new Ki(t,e,i)},t.tileLayer=ns,t.tooltip=function(t,e){return new ts(t,e)},t.transformation=q,t.version="1.9.4",t.videoOverlay=function(t,e,i){return new Xi(t,e,i)};var xs=window.L;t.noConflict=function(){return window.L=xs,this},window.L=t}(e)},19:function(t,e,i){"use strict";i.r(e),function(t){i.d(e,"Headers",(function(){return m})),i.d(e,"Request",(function(){return w})),i.d(e,"Response",(function(){return E})),i.d(e,"DOMException",(function(){return S})),i.d(e,"fetch",(function(){return C}));var s="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==t&&t||{},n="URLSearchParams"in s,o="Symbol"in s&&"iterator"in Symbol,a="FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch(t){return!1}}(),r="FormData"in s,l="ArrayBuffer"in s;if(l)var h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&h.indexOf(Object.prototype.toString.call(t))>-1};function d(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o&&(e[Symbol.iterator]=function(){return e}),e}function m(t){this.map={},t instanceof m?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function f(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function g(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function v(t){var e=new FileReader,i=g(e);return e.readAsArrayBuffer(t),i}function _(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:a&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:r&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():l&&a&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=_(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=_(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var t=f(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=f(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}
vendor: 4,723 bytes, line 1
1if(a)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,i,s,n,o=f(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,i=g(e),s=/charset=([A-Za-z0-9_-]+)/.exec(t.type),n=s?s[1]:"utf-8",e.readAsText(t,n),i;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),s=0;s<e.length;s++)i[s]=String.fromCharCode(e[s]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(t,e){t=d(t),e=c(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},m.prototype.delete=function(t){delete this.map[d(t)]},m.prototype.get=function(t){return t=d(t),this.has(t)?this.map[t]:null},m.prototype.has=function(t){return this.map.hasOwnProperty(d(t))},m.prototype.set=function(t,e){this.map[d(t)]=c(e)},m.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},m.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),p(t)},m.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),p(t)},m.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),p(t)},o&&(m.prototype[Symbol.iterator]=m.prototype.entries);var b=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function w(t,e){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,n,o=(e=e||{}).body;if(t instanceof w){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new m(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new m(e.headers)),this.method=(i=e.method||this.method||"GET",n=i.toUpperCase(),b.indexOf(n)>-1?n:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in s)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function x(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),s=i.shift().replace(/\+/g," "),n=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(s),decodeURIComponent(n))}})),e}function E(t,e){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new m(e.headers),this.url=e.url||"",this._initBody(t)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},y.call(w.prototype),y.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},E.error=function(){var t=new E(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var T=[301,302,303,307,308];E.redirect=function(t,e){if(-1===T.indexOf(e))throw new RangeError("Invalid status code");return new E(null,{status:e,headers:{location:t}})};var S=s.DOMException;try{new S}catch(t){(S=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function C(t,e){return new Promise((function(i,n){var o=new w(t,e);if(o.signal&&o.signal.aborted)return n(new S("Aborted","AbortError"));var r=new XMLHttpRequest;function h(){r.abort()}if(r.onload=function(){var t,e,s={statusText:r.statusText,headers:(t=r.getAllResponseHeaders()||"",e=new m,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}
1)).forEach((function(t){var i=t.split(":"),s=i.shift().trim();if(s){var n=i.join(":").trim();try{e.append(s,n)}catch(t){console.warn("Response "+t.message)}}})),e)};0===o.url.indexOf("file://")&&(r.status<200||r.status>599)?s.status=200:s.status=r.status,s.url="responseURL"in r?r.responseURL:s.headers.get("X-Request-URL");var n="response"in r?r.response:r.responseText;setTimeout((function(){i(new E(n,s))}),0)},r.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},r.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},r.onabort=function(){setTimeout((function(){n(new S("Aborted","AbortError"))}),0)},r.open(o.method,function(t){try{return""===t&&s.location.href?s.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?r.withCredentials=!0:"omit"===o.credentials&&(r.withCredentials=!1),"responseType"in r&&(a?r.responseType="blob":l&&(r.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof m||s.Headers&&e.headers instanceof s.Headers)){var u=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){u.push(d(t)),r.setRequestHeader(t,c(e.headers[t]))})),o.headers.forEach((function(t,e){-1===u.indexOf(e)&&r.setRequestHeader(e,t)}))}else o.headers.forEach((function(t,e){r.setRequestHeader(e,t)}));o.signal&&(o.signal.addEventListener("abort",h),r.onreadystatechange=function(){4===r.readyState&&o.signal.removeEventListener("abort",h)}),r.send(void 0===o._bodyInit?null:o._bodyInit)}))}C.polyfill=!0,s.fetch||(s.fetch=C,s.Headers=m,s.Request=w,s.Response=E)}.call(this,i(20))},2:function(t,e,i){"use strict";e.a=t=>{if(t.match(/[a-zA-ZÐ-Яа-Ñ+<>{}[\]\\*#:;=),(_^$@!'"~£|?&%-]+/gi))return!1;let e=!0;const i=t.split("/");return i.length<3?e=!1:((0===i[0].length||i[0].length>2||i[0]>31)&&(e=!1),(i[1].length<1||i[1].length>2||i[1]>12)&&(e=!1),(i[2].length<4||i[2].length>4)&&(e=!1)),e}},20:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},21:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var s=i(8),n=i(13);class o{constructor(){this.settings(),this.checkElements(),this.getLocalisation(),this.text(),this.bindEvents()}checkElements(){const t=t=>{console.log("%cElement required","background: #222; color: #bada55",', selector ="',t,'"')};!this.subscribeForm&&t("#subscribeForm , also must have input type email"),!this.loadMore&&t("#loadMoreSubscribe"),!this.errorMSGBlock&&t("#errorMSGBlock")}settings(){this.apiService=new n.a,this.localisationName="",this.confirmUrl="/subscribeconfirm",this.subscribeForm=document.getElementById("subscribeForm"),this.loadMore=document.getElementById("loadMoreSubscribe"),this.errorMSGBlock=document.getElementById("errorMSGBlock"),this.emailRegex=/^(([^<>()[\]\\.,;:\s@\\"]+(\.[^<>()[\]\\.,;:\s@\\"]+)*)|(\\".+\\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}text(){this.errorText="en"===this.localisationName?"Something went wrong. Maybe e-mail already exists":"ЩоÑÑ Ð¿ÑÑло не Ñак. Ðожливо e-mail вже ÑÑнÑÑ",this.checkValid="en"===this.localisationName?"Check the typed e-mail":"ÐеÑевÑÑÑе введений e-mail",this.emailEmpty="en"===this.localisationName?"Enter your e-mail":"ÐведÑÑÑ ÑвÑй e-mail"}getLocalisation(){const t=document.querySelector("html");this.localisationName=t.hasAttribute("lang")?t.getAttribute("lang"):"ua"}bindEvents(){this.subscribeForm&&(this.subscribeForm.onsubmit=()=>{this.submitForm(event)}),this.subscribeForm&&(this.subscribeForm.elements.email.onkeyup=()=>{this.checkEmailInput(this.subscribeForm.elements.email)})}cleanMss(){let t=document.querySelector("#errorMSGBlock .error");t&&t.remove()}appendMss(t){this.cleanMss();let e=document.createElement("div");e.className="error active",e.innerHTML=t,this.errorMSGBlock.appendChild(e)}validateEmail(t){return this.emailRegex.test(t)}checkEmailInput(t){this.validateEmail(t.value)||0===t.value.length?this.cleanMss():this.appendMss(this.checkValid)}submitForm(t){if(t.preventDefault(),0===this.subscribeForm.elements.email.value.length)this.appendMss(this.emailEmpty);else{let t=this.subscribeForm.elements.email.value;this.loadMore.style.display="block",this.apiService.postRequest(`${s.a.api.subscribeEmail}?email=${t}`,null).then(t=>{this.loadMore.style.display="none","success"===t?window.location.href=`/${this.localisationName}${this.confirmUrl}`:400===t||404===t?this.appendMss(this.errorText):this.appendMss(t)}).catch(t=>{console.log(t)})}}}}
1,3:function(t,e,i){"use strict";i.d(e,"a",(function(){return ft}));var s=i(2);i(0);function n(){const t=document.querySelectorAll(".js-search-toggle"),e=document.getElementById("searchPortal"),i=document.getElementById("searchNPA"),s=document.getElementById("searchPortalForm"),n=document.getElementById("searchNPAForm"),o=document.getElementById("closeSearch"),a=document.getElementById("searchFormWrap");t.forEach(t=>{t.addEventListener("click",()=>{"true"===t.getAttribute("aria-expanded")?t.setAttribute("aria-expanded","false"):t.setAttribute("aria-expanded","true"),a.classList.toggle("d-block"),setTimeout(()=>{o.focus()},300)})}),window.innerWidth<=992&&t.forEach(t=>{t.onclick=function(){document.body.classList.add("active"),$("html, body").animate({scrollTop:0},500)}}),e&&(e.onclick=function(){i.classList.remove("active"),n.classList.remove("active"),e.classList.add("active"),s.classList.add("active")}),i&&(i.onclick=function(){i.classList.add("active"),n.classList.add("active"),e.classList.remove("active"),s.classList.remove("active")}),o&&(o.onclick=function(){document.body.classList.remove("active"),a.classList.remove("d-block"),t.forEach(t=>{t.setAttribute("aria-expanded","false")})}),document.addEventListener("keyup",e=>{"Escape"===e.key&&a.classList.contains("d-block")&&(a.classList.remove("d-block"),t.forEach(t=>{t.setAttribute("aria-expanded","false")}))}),document.addEventListener("click",e=>{a.contains(e.target)||[...t].includes(e.target)||(t.forEach(t=>{t.setAttribute("aria-expanded","false")}),a.classList.remove("d-block"))})}var o=i(1);i(4);var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=window.device,l={},h=[];window.device=l;var u=window.document.documentElement,d=window.navigator.userAgent.toLowerCase(),c=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","pov_tv","hbbtv","ce-html"];function p(t,e){return-1!==t.indexOf(e)}function m(t){return p(d,t)}function f(t){return u.className.match(new RegExp(t,"i"))}function g(t){var e=null;f(t)||(e=u.className.replace(/^\s+|\s+$/g,""),u.className=e+" "+t)}function v(t){f(t)&&(u.className=u.className.replace(" "+t,""))}function _(){l.landscape()?(v("portrait"),g("landscape"),y("landscape")):(v("landscape"),g("portrait"),y("portrait")),x()}function y(t){for(var e=0;e<h.length;e++)h[e](t)}l.macos=function(){return m("mac")},l.ios=function(){return l.iphone()||l.ipod()||l.ipad()},l.iphone=function(){return!l.windows()&&m("iphone")},l.ipod=function(){return m("ipod")}
1,l.ipad=function(){var t="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;return m("ipad")||t},l.android=function(){return!l.windows()&&m("android")},l.androidPhone=function(){return l.android()&&m("mobile")},l.androidTablet=function(){return l.android()&&!m("mobile")},l.blackberry=function(){return m("blackberry")||m("bb10")},l.blackberryPhone=function(){return l.blackberry()&&!m("tablet")},l.blackberryTablet=function(){return l.blackberry()&&m("tablet")},l.windows=function(){return m("windows")},l.windowsPhone=function(){return l.windows()&&m("phone")},l.windowsTablet=function(){return l.windows()&&m("touch")&&!l.windowsPhone()},l.fxos=function(){return(m("(mobile")||m("(tablet"))&&m(" rv:")},l.fxosPhone=function(){return l.fxos()&&m("mobile")},l.fxosTablet=function(){return l.fxos()&&m("tablet")},l.meego=function(){return m("meego")},l.cordova=function(){return window.cordova&&"file:"===location.protocol},l.nodeWebkit=function(){return"object"===a(window.process)},l.mobile=function(){return l.androidPhone()||l.iphone()||l.ipod()||l.windowsPhone()||l.blackberryPhone()||l.fxosPhone()||l.meego()},l.tablet=function(){return l.ipad()||l.androidTablet()||l.blackberryTablet()||l.windowsTablet()||l.fxosTablet()},l.desktop=function(){return!l.tablet()&&!l.mobile()},l.television=function(){for(var t=0;t<c.length;){if(m(c[t]))return!0;t++}return!1},l.portrait=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?p(screen.orientation.type,"portrait"):l.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?90!==Math.abs(window.orientation):window.innerHeight/window.innerWidth>1},l.landscape=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?p(screen.orientation.type,"landscape"):l.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?90===Math.abs(window.orientation):window.innerHeight/window.innerWidth<1},l.noConflict=function(){return window.device=r,this},l.ios()?l.ipad()?g("ios ipad tablet"):l.iphone()?g("ios iphone mobile"):l.ipod()&&g("ios ipod mobile"):l.macos()?g("macos desktop"):l.android()?l.androidTablet()?g("android tablet"):g("android mobile"):l.blackberry()?l.blackberryTablet()?g("blackberry tablet"):g("blackberry mobile"):l.windows()?l.windowsTablet()?g("windows tablet"):l.windowsPhone()?g("windows mobile"):g("windows desktop"):l.fxos()?l.fxosTablet()?g("fxos tablet"):g("fxos mobile"):l.meego()?g("meego mobile"):l.nodeWebkit()?g("node-webkit"):l.television()?g("television"):l.desktop()&&g("desktop"),l.cordova()&&g("cordova"),l.onChangeOrientation=function(t){"function"==typeof t&&h.push(t)};var b="resize";function w(t){for(var e=0;e<t.length;e++)if(l[t[e]]())return t[e];return"unknown"}function x(){l.orientation=w(["portrait","landscape"])}Object.prototype.hasOwnProperty.call(window,"onorientationchange")&&(b="orientationchange"),window.addEventListener?window.addEventListener(b,_,!1):window.attachEvent?window.attachEvent(b,_):window[b]=_,_(),l.type=w(["mobile","tablet","desktop"]),l.os=w(["ios","iphone","ipad","ipod","android","blackberry","macos","windows","fxos","meego","television"]),x();var E=l;const{detect:T}=i(6);function S(t,e){if(null==t)return{};var i,s,n={},o=Object.keys(t);for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||(n[i]=t[i]);return n}function C(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new C.InputMask(t,e)}class k{constructor(t){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},t)}aggregate(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}function P(t){return"string"==typeof t||t instanceof String}C.ChangeDetails=k;const M="NONE",L="LEFT",A="FORCE_LEFT",B="RIGHT",z="FORCE_RIGHT";function I(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function O(t){return Array.isArray(t)?t:[t,new k]}function D(t,e){if(e===t)return!0;var i,s=Array.isArray(e),n=Array.isArray(t);
1if(s&&n){if(e.length!=t.length)return!1;for(i=0;i<e.length;i++)if(!D(e[i],t[i]))return!1;return!0}if(s!=n)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){var o=e instanceof Date,a=t instanceof Date;if(o&&a)return e.getTime()==t.getTime();if(o!=a)return!1;var r=e instanceof RegExp,l=t instanceof RegExp;if(r&&l)return e.toString()==t.toString();if(r!=l)return!1;var h=Object.keys(e);for(i=0;i<h.length;i++)if(!Object.prototype.hasOwnProperty.call(t,h[i]))return!1;for(i=0;i<h.length;i++)if(!D(t[h[i]],e[h[i]]))return!1;return!0}return!(!e||!t||"function"!=typeof e||"function"!=typeof t)&&e.toString()===t.toString()}class F{constructor(t,e,i,s){for(this.value=t,this.cursorPos=e,this.oldValue=i,this.oldSelection=s;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?M:this.oldSelection.end!==this.cursorPos&&this.oldSelection.start!==this.cursorPos||this.oldSelection.end!==this.oldSelection.start?L:B}}class N{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;this.value=t,this.from=e,this.stop=i}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||null!=t&&this.from>=t)return"";const e=this.value[0];return this.value=this.value.slice(1),e}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}}class R{constructor(t){this._value="",this._update(Object.assign({},R.DEFAULTS,t)),this.isInitialized=!0}updateOptions(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t)}resolve(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{input:!0};return this.reset(),this.append(t,e,""),this.doCommit(),this.value}get unmaskedValue(){return this.value}set unmaskedValue(t){this.reset(),this.append(t,{},""),this.doCommit()}get typedValue(){return this.doParse(this.value)}set typedValue(t){this.value=this.doFormat(t)}get rawInputValue(){return this.extractInput(0,this.value.length,{raw:!0})}set rawInputValue(t){this.reset(),this.append(t,{raw:!0},""),this.doCommit()}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(t,e){return t}totalInputPositions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return Math.min(this.value.length,e-t)}extractInput(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(t,e)}extractTail(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return new N(this.extractInput(t,e),t)}appendTail(t){return P(t)&&(t=new N(String(t))),t.appendTo(this)}_appendCharRaw(t){return t?(this._value+=t,new k({inserted:t,rawInserted:t})):new k}_appendChar(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;const s=this.state;let n;if([t,n]=O(this.doPrepare(t,e)),n=n.aggregate(this._appendCharRaw(t,e)),n.inserted){let t,o=!1!==this.doValidate(e);if(o&&null!=i){const e=this.state;!0===this.overwrite&&(t=i.state,i.unshift(this.value.length-n.tailShift));let s=this.appendTail(i);o=s.rawInserted===i.toString(),o&&s.inserted||"shift"!==this.overwrite||(this.state=e,t=i.state,i.shift(),s=this.appendTail(i),o=s.rawInserted===i.toString()),o&&s.inserted&&(this.state=e)}o||(n=new k,this.state=s,i&&t&&(i.state=t))}return n}_appendPlaceholder(){return new k}_appendEager(){return new k}append(t,e,i){if(!P(t))throw new Error("value should be string");const s=new k,n=P(i)?new N(String(i)):i;null!=e&&e.tail&&(e._beforeTailState=this.state);for(let i=0;i<t.length;++i){const o=this._appendChar(t[i],e,n);if(!o.rawInserted&&!this.doSkipInvalid(t[i],e,n))break;s.aggregate(o)}return(!0===this.eager||"append"===this.eager)&&null!=e&&e.input&&t&&s.aggregate(this._appendEager()),null!=n&&(s.tailShift+=this.appendTail(n).tailShift),s}remove(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this._value=this.value.slice(0,t)+this.value.slice(e),new k}withValueRefresh(t){if(this._refreshing||!this.isInitialized)return t();this._refreshing=!0;const e=this.rawInputValue,i=this.value,s=t();return this.rawInputValue=e,this.value&&this.value!==i&&0===i.indexOf(this.value)&&this.append(i.slice(this.value.length),{},""),delete this._refreshing,s}runIsolated(t){if(this._isolated||!this.isInitialized)return t(this);this._isolated=!0;const e=this.state,i=t(this);return this.state=e,delete this._isolated,i}doSkipInvalid(t){return this.skipInvalid}doPrepare(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.prepare?this.prepare(t,this,e):t}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){this.commit&&this.commit(this.value,this)}doFormat(t){return this.format?this.format(t,this):t}doParse(t){return this.parse?this.parse(t,this):t}splice(t,e,i,s){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{input:!0};const o=t+e,a=this.extractTail(o),r=!0===this.eager||"remove"===this.eager;let l;r&&(s=function(t){switch(t){case L:return A;case B:return z;default:return t}}(s),l=this.extractInput(0,o,{raw:!0}));let h=t;const u=new k;if(s!==M&&(h=this.nearestInputPos(t,e>1&&0!==t&&!r?M:s),u.tailShift=h-t),u.aggregate(this.remove(h)),r&&s!==M&&l===this.rawInputValue)if(s===A){let t;for(;l===this.rawInputValue&&(t=this.value.length);)u.aggregate(new k({tailShift:-1})).aggregate(this.remove(t-1))}else s===z&&a.unshift();return u.aggregate(this.append(i,n,a))}maskEquals(t){return this.mask===t}typedValueEquals(t){const e=this.typedValue;return t===e||R.EMPTY_VALUES.includes(t)&&R.EMPTY_VALUES.includes(e)||this.doFormat(t)===this.doFormat(this.t
1ypedValue)}}function Z(t){if(null==t)throw new Error("mask property should be defined");return t instanceof RegExp?C.MaskedRegExp:P(t)?C.MaskedPattern:t instanceof Date||t===Date?C.MaskedDate:t instanceof Number||"number"==typeof t||t===Number?C.MaskedNumber:Array.isArray(t)||t===Array?C.MaskedDynamic:C.Masked&&t.prototype instanceof C.Masked?t:t instanceof C.Masked?t.constructor:t instanceof Function?C.MaskedFunction:(console.warn("Mask not found for mask",t),C.Masked)}function V(t){if(C.Masked&&t instanceof C.Masked)return t;const e=(t=Object.assign({},t)).mask;if(C.Masked&&e instanceof C.Masked)return e;const i=Z(e);if(!i)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new i(t)}R.DEFAULTS={format:String,parse:t=>t,skipInvalid:!0},R.EMPTY_VALUES=[void 0,null,""],C.Masked=R,C.createMask=V;const j=["parent","isOptional","placeholderChar","displayChar","lazy","eager"],H={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
1D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class q{constructor(t){const{parent:e,isOptional:i,placeholderChar:s,displayChar:n,lazy:o,eager:a}=t,r=S(t,j);this.masked=V(r),Object.assign(this,{parent:e,isOptional:i,placeholderChar:s,displayChar:n,lazy:o,eager:a})}reset(){this.isFilled=!1,this.masked.reset()}remove(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return 0===t&&e>=1?(this.isFilled=!1,this.masked.remove(t,e)):new k}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isFilled)return new k;const i=this.masked.state,s=this.masked._appendChar(t,e);return s.inserted&&!1===this.doValidate(e)&&(s.inserted=s.rawInserted="",this.masked.state=i),s.inserted||this.isOptional||this.lazy||e.input||(s.inserted=this.placeholderChar),s.skip=!s.inserted&&!this.isOptional,this.isFilled=Boolean(s.inserted),s}append(){return this.masked.append(...arguments)}_appendPlaceholder(){const t=new k;return this.isFilled||this.isOptional||(this.isFilled=!0,t.inserted=this.placeholderChar),t}_appendEager(){return new k}extractTail(){return this.masked.extractTail(...arguments)}appendTail(){return this.masked.appendTail(...arguments)}extractInput(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(t,e,i)}nearestInputPos(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M;const i=this.value.length,s=Math.min(Math.max(t,0),i);switch(e){case L:case A:return this.isComplete?s:0;case B:case z:return this.isComplete?s:i;case M:default:return s}}totalInputPositions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(t,e).length}doValidate(){return this.masked.doValidate(...arguments)&&(!this.parent||this.parent.doValidate(...arguments))}doCommit(){this.masked.doCommit()}get state(){return{masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked,this.isFilled=t.isFilled}}class W{constructor(t){Object.assign(this,t),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._value=this._value.slice(0,t)+this._value.slice(e),this._value||(this._isRawInput=!1),new k}nearestInputPos(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M;const i=this._value.length;switch(e){case L:case A:return 0;case M:case B:case z:default:return i}}totalInputPositions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._isRawInput?e-t:0}extractInput(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice(t,e)||""}get isComplete(){return!0}get isFilled(){return Boolean(this._value)}_appendChar(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=new k;if(this.isFilled)return i;const s=!0===this.eager||"append"===this.eager,n=this.char===t&&(this.isUnmasking||e.input||e.raw)&&(!e.raw||!s)&&!e.tail;return n&&(i.rawInserted=this.char),this._value=i.inserted=this.char,this._isRawInput=n&&(e.raw||e.input),i}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const t=new k;return this.isFilled||(this._value=t.inserted=this.char),t}extractTail(){return arguments.length>1&&void 0!==arguments[1]||this.value.length,new N("")}appendTail(t){return P(t)&&(t=new N(String(t))),t.appendTo(this)}append(t,e,i){const s=this._appendChar(t[0],e);return null!=i&&(s.tailShift+=this.appendTail(i).tailShift),s}doCommit(){}get state(){return{_value:this._value,_isRawInput:this._isRawInput}}set state(t){Object.assign(this,t)}}const G=["chunks"];class Y{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.chunks=t,this.from=e}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;P(t)&&(t=new N(String(t)));const e=this.chunks[this.chunks.length-1],i=e&&(e.stop===t.stop||null==t.stop)&&t.from===e.from+e.toString().length;if(t instanceof N)i?e.extend(t.toString()):this.chunks.push(t);else if(t instanceof Y){if(null==t.stop){let e;for(;t.chunks.length&&null==t.chunks[0].stop;)e=t.chunks.shift(),e.from+=t.from,this.extend(e)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof C.MaskedPattern)){return new N(this.toString()).appendTo(t)}const e=new k;for(let i=0;i<this.chunks.length&&!e.skip;++i){const s=this.chunks[i],n=t._mapPosToBlock(t.value.length),o=s.stop;let a;if(null!=o&&(!n||n.index<=o)){if(s instanceof Y||t._stops.indexOf(o)>=0){const i=t._appendPlaceholder(o);e.aggregate(i)}a=s instanceof Y&&t._blocks[o]}if(a){const i=a.appendTail(s);i.skip=!1,e.aggregate(i),t._value+=i.inserted;const n=s.toString().slice(i.rawInserted.length);n&&e.aggregate(t.append(n,{tail:!0}))}else e.aggregate(t.append(s.toString(),{tail:!0}))}return e}get state(){return{chunks:this.chunks.map(t=>t.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:e}=t,i=S(t,G);Object.assign(this,i),this.chunks=e.map(t=>{const e="chunks"in t?new Y:new N;return e.state=t,e})}unshift(t){if(!this.chunks.length||null!=t&&this.from>=t)return"";const e=null!=t?t-this.from:t;let i=0;for(;i<this.chunks.length;){const t=this.chunks[i],s=t.unshift(e);if(t.toString()){if(!s)break;++i}else this.chunks.splice(i,1);if(s)return s}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;for(;0<=t;){const e=this.chunks[t],i=e.shift();if(e.toString()){if(!i)break;--t}else this.chunks.splice(t,1);if(i)return i}return""}}class U{constructor(t,e){this.masked=t,this._log=[];const{offset:i,index:s}=t._mapPosToBlock(e)||(e<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=i,this.index=s,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();return this.state=t,t}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}_pushLeft(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(null===(e=this.block)||void 0===e?void 0:e.value.length)||0){var e;if(t())return this.ok=!0}return this.ok=!1}_pushRight(t){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(t())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!this.block.isFixed&&this.block.value)return this.offset=this.block.nearestInputPos(this.offset,A),0!==this.offset||void 0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,L),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,L),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!this.block.isFixed&&this.block.value)return this.offset=this.block.nearestInputPos(this.offset,z),this.offset!==this.block.value.length||void 0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,M),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,M),!0})}}C.MaskedRegExp=class extends R{_update(t){t.mask&&(t.validate=e=>e.search(t.mask)>=0),super._update(t)}};const X=["_blocks"];class K extends R{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.definitions=Object.assign({},H,t.definitions),super(Object.assign({},K.DEFAULTS,t))}
1_update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.definitions=Object.assign({},this.definitions,t.definitions),super._update(t),this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};let e=this.mask;if(!e||!t)return;let i=!1,s=!1;for(let a=0;a<e.length;++a){var n,o;if(this.blocks){const t=e.slice(a),i=Object.keys(this.blocks).filter(e=>0===t.indexOf(e));i.sort((t,e)=>e.length-t.length);const s=i[0];if(s){const t=V(Object.assign({parent:this,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite},this.blocks[s]));t&&(this._blocks.push(t),this._maskedBlocks[s]||(this._maskedBlocks[s]=[]),this._maskedBlocks[s].push(this._blocks.length-1)),a+=s.length-1;continue}}let r=e[a],l=r in t;if(r===K.STOP_CHAR){this._stops.push(this._blocks.length);continue}if("{"===r||"}"===r){i=!i;continue}if("["===r||"]"===r){s=!s;continue}if(r===K.ESCAPE_CHAR){if(++a,r=e[a],!r)break;l=!1}const h=null===(n=t[r])||void 0===n||!n.mask||(null===(o=t[r])||void 0===o?void 0:o.mask.prototype)instanceof C.Masked?{mask:t[r]}:t[r],u=l?new q(Object.assign({parent:this,isOptional:s,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},h)):new W({char:r,eager:this.eager,isUnmasking:i});this._blocks.push(u)}}get state(){return Object.assign({},super.state,{_blocks:this._blocks.map(t=>t.state)})}set state(t){const{_blocks:e}=t,i=S(t,X);this._blocks.forEach((t,i)=>t.state=e[i]),super.state=i}reset(){super.reset(),this._blocks.forEach(t=>t.reset())}get isComplete(){return this._blocks.every(t=>t.isComplete)}get isFilled(){return this._blocks.every(t=>t.isFilled)}get isFixed(){return this._blocks.every(t=>t.isFixed)}get isOptional(){return this._blocks.every(t=>t.isOptional)}doCommit(){this._blocks.forEach(t=>t.doCommit()),super.doCommit()}get unmaskedValue(){return this._blocks.reduce((t,e)=>t+e.unmaskedValue,"")}set unmaskedValue(t){super.unmaskedValue=t}get value(){return this._blocks.reduce((t,e)=>t+e.value,"")}set value(t){super.value=t}get displayValue(){return this._blocks.reduce((t,e)=>t+e.displayValue,"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const e=new k;let i=null===(t=this._mapPosToBlock(this.value.length))||void 0===t?void 0:t.index;if(null==i)return e;this._blocks[i].isFilled&&++i;for(let t=i;t<this._blocks.length;++t){const i=this._blocks[t]._appendEager();if(!i.inserted)break;e.aggregate(i)}return e}_appendCharRaw(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=this._mapPosToBlock(this.value.length),s=new k;if(!i)return s;for(let a=i.index;;++a){var n,o;const i=this._blocks[a];if(!i)break;const r=i._appendChar(t,Object.assign({},e,{_beforeTailState:null===(n=e._beforeTailState)||void 0===n||null===(o=n._blocks)||void 0===o?void 0:o[a]})),l=r.skip;if(s.aggregate(r),l||r.rawInserted)break}return s}extractTail(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;const i=new Y;return t===e||this._forEachBlocksInRange(t,e,(t,e,s,n)=>{const o=t.extractTail(s,n);o.stop=this._findStopBefore(e),o.from=this._blockStartPos(e),o instanceof Y&&(o.blockIndex=e),i.extend(o)}),i}extractInput(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t===e)return"";let s="";return this._forEachBlocksInRange(t,e,(t,e,n,o)=>{s+=t.extractInput(n,o,i)}),s}_findStopBefore(t){let e;for(let i=0;i<this._stops.length;++i){const s=this._stops[i];if(!(s<=t))break;e=s}return e}_appendPlaceholder(t){const e=new k;if(this.lazy&&null==t)return e;const i=this._mapPosToBlock(this.value.length);if(!i)return e;const s=i.index,n=null!=t?t:this._blocks.length;return this._blocks.slice(s,n).forEach(i=>{if(!i.lazy||null!=t){const t=null!=i._blocks?[i._blocks.length]:[],s=i._appendPlaceholder(...t);this._value+=s.inserted,e.aggregate(s)}}),e}_mapPosToBlock(t){let e="";for(let i=0;i<this._blocks.length;++i){const s=this._blocks[i],n=e.length;if(e+=s.value,t<=e.length)return{index:i,offset:t-n}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce((t,e)=>t+e.value.length,0)}_forEachBlocksInRange(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=arguments.length>2?arguments[2]:void 0;const s=this._mapPosToBlock(t);if(s){const t=this._mapPosToBlock(e),n=t&&s.index===t.index,o=s.offset,a=t&&n?t.offset:this._blocks[s.index].value.length;if(i(this._blocks[s.index],s.index,o,a),t&&!n){for(let e=s.index+1;e<t.index;++e)i(this._blocks[e],e,0,this._blocks[e].value.length);i(this._blocks[t.index],t.index,0,t.offset)}}}remove(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;const i=super.remove(t,e);
1return this._forEachBlocksInRange(t,e,(t,e,s,n)=>{i.aggregate(t.remove(s,n))}),i}nearestInputPos(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M;if(!this._blocks.length)return 0;const i=new U(this,t);if(e===M)return i.pushRightBeforeInput()?i.pos:(i.popState(),i.pushLeftBeforeInput()?i.pos:this.value.length);if(e===L||e===A){if(e===L){if(i.pushRightBeforeFilled(),i.ok&&i.pos===t)return t;i.popState()}if(i.pushLeftBeforeInput(),i.pushLeftBeforeRequired(),i.pushLeftBeforeFilled(),e===L){if(i.pushRightBeforeInput(),i.pushRightBeforeRequired(),i.ok&&i.pos<=t)return i.pos;if(i.popState(),i.ok&&i.pos<=t)return i.pos;i.popState()}return i.ok?i.pos:e===A?0:(i.popState(),i.ok?i.pos:(i.popState(),i.ok?i.pos:0))}return e===B||e===z?(i.pushRightBeforeInput(),i.pushRightBeforeRequired(),i.pushRightBeforeFilled()?i.pos:e===z?this.value.length:(i.popState(),i.ok?i.pos:(i.popState(),i.ok?i.pos:this.nearestInputPos(t,L)))):t}totalInputPositions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=0;return this._forEachBlocksInRange(t,e,(t,e,s,n)=>{i+=t.totalInputPositions(s,n)}),i}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const e=this._maskedBlocks[t];return e?e.map(t=>this._blocks[t]):[]}}K.DEFAULTS={lazy:!0,placeholderChar:"_"},K.STOP_CHAR="`",K.ESCAPE_CHAR="\\",K.InputDefinition=q,K.FixedDefinition=W,C.MaskedPattern=K;class J extends K{get _matchFrom(){return this.maxLength-String(this.from).length}_update(t){t=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},t);let e=String(t.to).length;null!=t.maxLength&&(e=Math.max(e,t.maxLength)),t.maxLength=e;const i=String(t.from).padStart(e,"0"),s=String(t.to).padStart(e,"0");let n=0;for(;n<s.length&&s[n]===i[n];)++n;t.mask=s.slice(0,n).replace(/0/g,"\\0")+"0".repeat(e-n),super._update(t)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(t){let e="",i="";const[,s,n]=t.match(/^(\D*)(\d*)(\D*)/)||[];return n&&(e="0".repeat(s.length)+n,i="9".repeat(s.length)+n),e=e.padEnd(this.maxLength,"0"),i=i.padEnd(this.maxLength,"9"),[e,i]}doPrepare(t){let e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if([t,e]=O(super.doPrepare(t.replace(/\D/g,""),i)),!this.autofix||!t)return t;const s=String(this.from).padStart(this.maxLength,"0"),n=String(this.to).padStart(this.maxLength,"0");let o=this.value+t;if(o.length>this.maxLength)return"";const[a,r]=this.boundaries(o);return Number(r)<this.from?s[o.length-1]:Number(a)>this.to?"pad"===this.autofix&&o.length<this.maxLength?["",e.aggregate(this.append(s[o.length-1]+t,i))]:n[o.length-1]:t}doValidate(){const t=this.value;if(-1===t.search(/[^0]/)&&t.length<=this._matchFrom)return!0;const[e,i]=this.boundaries(t);return this.from<=Number(i)&&Number(e)<=this.to&&super.doValidate(...arguments)}}C.MaskedRange=J;class Q extends K{constructor(t){super(Object.assign({},Q.DEFAULTS,t))}_update(t){t.mask===Date&&delete t.mask,t.pattern&&(t.mask=t.pattern);const e=t.blocks;t.blocks=Object.assign({},Q.GET_DEFAULT_BLOCKS()),t.min&&(t.blocks.Y.from=t.min.getFullYear()),t.max&&(t.blocks.Y.to=t.max.getFullYear()),t.min&&t.max&&t.blocks.Y.from===t.blocks.Y.to&&(t.blocks.m.from=t.min.getMonth()+1,t.blocks.m.to=t.max.getMonth()+1,t.blocks.m.from===t.blocks.m.to&&(t.blocks.d.from=t.min.getDate(),t.blocks.d.to=t.max.getDate())),Object.assign(t.blocks,this.blocks,e),Object.keys(t.blocks).forEac
1h(e=>{const i=t.blocks[e];!("autofix"in i)&&"autofix"in t&&(i.autofix=t.autofix)}),super._update(t)}doValidate(){const t=this.date;return super.doValidate(...arguments)&&(!this.isComplete||this.isDateExist(this.value)&&null!=t&&(null==this.min||this.min<=t)&&(null==this.max||t<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}}Q.DEFAULTS={pattern:"d{.}`m{.}`Y",format:t=>{if(!t)return"";return[String(t.getDate()).padStart(2,"0"),String(t.getMonth()+1).padStart(2,"0"),t.getFullYear()].join(".")},parse:t=>{const[e,i,s]=t.split(".");return new Date(s,i-1,e)}},Q.GET_DEFAULT_BLOCKS=()=>({d:{mask:J,from:1,to:31,maxLength:2},m:{mask:J,from:1,to:12,maxLength:2},Y:{mask:J,from:1900,to:9999}}),C.MaskedDate=Q;class tt{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch(t){}return null!=t?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch(t){}return null!=t?t:this.value.length}select(t,e){if(null!=t&&null!=e&&(t!==this.selectionStart||e!==this.selectionEnd))try{this._unsafeSelect(t,e)}catch(t){}}_unsafeSelect(t,e){}get isActive(){return!1}bindEvents(t){}unbindEvents(){}}C.MaskElement=tt;class et extends tt{constructor(t){super(),this.input=t,this._handlers={}}get rootElement(){var t,e,i;return null!==(t=null===(e=(i=this.input).getRootNode)||void 0===e?void 0:e.call(i))&&void 0!==t?t:document}get isActive(){return this.input===this.rootElement.activeElement}get _unsafeSelectionStart(){return this.input.selectionStart}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,e){this.input.setSelectionRange(t,e)}get value(){return this.input.value}set value(t){this.input.value=t}bindEvents(t){Object.keys(t).forEach(e=>this._toggleEventHandler(et.EVENTS_MAP[e],t[e]))}unbindEvents(){Object.keys(this._handlers).forEach(t=>this._toggleEventHandler(t))}_toggleEventHandler(t,e){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),e&&(this.input.addEventListener(t,e),this._handlers[t]=e)}}et.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},C.HTMLMaskElement=et;class it extends et{get _unsafeSelectionStart(){const t=this.rootElement,e=t.getSelection&&t.getSelection(),i=e&&e.anchorOffset,s=e&&e.focusOffset;return null==s||null==i||i<s?i:s}get _unsafeSelectionEnd(){const t=this.rootElement,e=t.getSelection&&t.getSelection(),i=e&&e.anchorOffset,s=e&&e.focusOffset;return null==s||null==i||i>s?i:s}_unsafeSelect(t,e){if(!this.rootElement.createRange)return;const i=this.rootElement.createRange();i.setStart(this.input.firstChild||this.input,t),i.setEnd(this.input.lastChild||this.input,e);const s=this.rootElement,n=s.getSelection&&s.getSelection();n&&(n.removeAllRanges(),n.addRange(i))}get value(){return this.input.textContent}set value(t){this.input.textContent=t}}C.HTMLContenteditableMaskElement=it;const st=["mask"];C.InputMask=class{constructor(t,e){this.el=t instanceof tt?t:t.isContentEditable&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName?new it(t):new et(t),this.masked=V(e),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}get mask(){return this.masked.mask}maskEquals(t){var e;return null==t||(null===(e=this.masked)||void 0===e?void 0:e.maskEquals(t))}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof C.Masked)&&this.masked.constructor===Z(t))return void this.masked.updateOptions({mask:t});const e=V({mask:t});e.unmaskedValue=this.masked.unmaskedValue,this.masked=e}get value(){return this._value}set value(t){this.value!==t&&(this.masked.value=t,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){this.unmaskedValue!==t&&(this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(t){this.masked.typedValueEquals(t)||(this.masked.typedValue=t,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];const n=this._listeners[t];
1n&&n.forEach(t=>t(...i))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){this.el&&this.el.isActive&&(this.el.select(t,t),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const t=this.masked.unmaskedValue,e=this.masked.value,i=this.displayValue,s=this.unmaskedValue!==t||this.value!==e;this._unmaskedValue=t,this._value=e,this.el.value!==i&&(this.el.value=i),s&&this._fireChangeEvents()}updateOptions(t){const{mask:e}=t,i=S(t,st),s=!this.maskEquals(e),n=!D(this.masked,i);s&&(this.mask=e),n&&this.masked.updateOptions(i),(s||n)&&this.updateControl()}updateCursor(t){null!=t&&(this.cursorPos=t,this._delayUpdateCursor(t))}_delayUpdateCursor(t){this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,L))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(t,e){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e),this}off(t,e){if(!this._listeners[t])return this;if(!e)return delete this._listeners[t],this;const i=this._listeners[t].indexOf(e);return i>=0&&this._listeners[t].splice(i,1),this}_onInput(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();const e=new F(this.el.value,this.cursorPos,this.displayValue,this._selection),i=this.masked.rawInputValue,s=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection,{input:!0,raw:!0}).offset,n=i===this.masked.rawInputValue?e.removeDirection:M;let o=this.masked.nearestInputPos(e.startChangePos+s,n);n!==M&&(o=this.masked.nearestInputPos(o,M)),this.updateControl(),this.updateCursor(o),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(t){t.preventDefault(),t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};C.MaskedEnum=class extends K{_update(t){t.enum&&(t.mask="*".repeat(t.enum[0].length)),super._update(t)}doValidate(){return this.enum.some(t=>t.indexOf(this.unmaskedValue)>=0)&&super.doValidate(...arguments)}};class nt extends R{constructor(t){super(Object.assign({},nt.DEFAULTS,t))}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){let t="^"+(this.allowNegative?"[+|\\-]?":""),e=(this.scale?"(".concat(I(this.radix),"\\d{0,").concat(this.scale,"})?"):"")+"$";this._numberRegExp=new RegExp(t+"\\d*"+e),this._mapToRadixRegExp=new RegExp("[".concat(this.mapToRadix.map(I).join(""),"]"),"g"),this._thousandsSeparatorRegExp=new RegExp(I(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const e=t.split(this.radix);return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),e.join(this.radix)}doPrepare(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(e.input&&e.raw||!e.input&&!e.raw)?t.replace(this._mapToRadixRegExp,this.radix):t);const[i,s]=O(super.doPrepare(t,e));return t&&!i&&(s.skip=!0),[i,s]}_separatorsCount(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;for(let s=0;s<t;++s)this._value.indexOf(this.thousandsSeparator,s)===s&&(++i,e&&(t+=this.thousandsSeparator.length));return i}_separatorsCountFromSlice(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=arguments.length>2?arguments[2]:void 0;return[t,e]=this._adjustRangeWithSeparators(t,e),this._removeThousandsSeparators(super.extractInput(t,e,i))}_appendCharRaw(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return super._appendCharRaw(t,e);const i=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,s=this._separatorsCountFromSlice(i);this._value=this._removeThousandsSeparators(this.value);const n=super._appendCharRaw(t,e);this._value=this._insertThousandsSeparators(this._value);const o=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,a=this._separatorsCountFromSlice(o);return n.tailShift+=(a-s)*this.thousandsSeparator.length,n.skip=!n.rawInserted&&t===this.thousandsSeparator,n}_findSeparatorAround(t){if(this.thousandsSeparator){const e=t-this.thousandsSeparator.length+1,i=this.value.indexOf(this.thousandsSeparator,e);if(i<=t)return i}return-1}_adjustRangeWithSeparators(t,e){const i=this._findSeparatorAround(t);i>=0&&(t=i);const s=this._findSeparatorAround(e);return s>=0&&(e=s+this.thousandsSeparator.length),[t,e]}remove(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;[t,e]=this._adjustRangeWithSeparators(t,e);const i=this.value.slice(0,t),s=this.value.slice(e),n=this._separatorsCount(i.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(i+s));const o=this._separatorsCountFromSlice(i);return new k({tailShift:(o-n)*this.thousandsSeparator.length})}nearestInputPos(t,e){if(!this.thousandsSeparator)return t;switch(e){case M:case L:case A:{const i=this._findSeparatorAround(t-1);if(i>=0){const s=i+this.thousandsSeparator.length;if(t<s||this.value.length<=s||e===A)return i}break}case B:case z:{const e=this._findSeparatorAround(t);if(e>=0)return e+this.thousandsSeparator.length}}return t}doValidate(t){let e=Boolean(this._removeThousandsSeparators(this.value).match(this._numberRegExp));if(e){const t=this.number;e=e&&!isNaN(t)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return e&&super.doValidate(t)}doCommit(){if(this.value){const t=this.number;let e=t;null!=this.min&&(e=Math.max(e,this.min)),null!=this.max&&(e=Math.min(e,this.max)),e!==t&&(this.unmaskedValue=this.doFormat(e));let i=this.value;this.normalizeZeros&&(i=this._normalizeZeros(i)),this.padFractionalZeros&&this.scale>0&&(i=this._padFractionalZeros(i)),this._value=i}super.doCommit()}_normalizeZeros(t){const e=this._removeThousandsSeparators(t).split(this.radix);return e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,(t,e,i,s)=>e+s),t.length&&!/\d$/.test(e[0])&&(e[0]=e[0]+"0"),e.length>1&&(e[1]=e[1].replace(/0*$/,""),e[1].length||(e.length=1)),this._insertThousandsSeparators(e.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const e=t.split(this.radix);return e.length<2&&e.push(""),e[1]=e[1].padEnd(this.scale,"0"),e.join(this.radix)}doSkipInvalid(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;const s=0===this.scale&&t!==this.thousandsSeparator&&(t===this.radix||t===nt.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,e,i)&&!s}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,nt.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.doParse(this.unmaskedValue)}set typedValue(t){this.rawInputValue=this.doFormat(t).replace(nt.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}typedValueEquals(t){return(super.typedValueEquals(t)||nt.EMPTY_VALUES.includes(t)&&nt.EMPTY_VALUES.includes(this.typedValue))&&!(0===t&&""===this.value)}}nt.UNMASKED_RADIX=".",nt.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:[nt.UNMASKED_RADIX],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:t=>
1t.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},nt.EMPTY_VALUES=[...R.EMPTY_VALUES,0],C.MaskedNumber=nt;C.MaskedFunction=class extends R{_update(t){t.mask&&(t.validate=t.mask),super._update(t)}};const ot=["compiledMasks","currentMaskRef","currentMask"],at=["mask"];class rt extends R{constructor(t){super(Object.assign({},rt.DEFAULTS,t)),this.currentMask=null}_update(t){super._update(t),"mask"in t&&(this.compiledMasks=Array.isArray(t.mask)?t.mask.map(t=>V(t)):[])}_appendCharRaw(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=this._applyDispatch(t,e);return this.currentMask&&i.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(e))),i}_applyDispatch(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const s=e.tail&&null!=e._beforeTailState?e._beforeTailState._value:this.value,n=this.rawInputValue,o=e.tail&&null!=e._beforeTailState?e._beforeTailState._rawInputValue:n,a=n.slice(o.length),r=this.currentMask,l=new k,h=null==r?void 0:r.state;if(this.currentMask=this.doDispatch(t,Object.assign({},e),i),this.currentMask)if(this.currentMask!==r){if(this.currentMask.reset(),o){const t=this.currentMask.append(o,{raw:!0});l.tailShift=t.inserted.length-s.length}a&&(l.tailShift+=this.currentMask.append(a,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=h;return l}_appendPlaceholder(){const t=this._applyDispatch(...arguments);return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){const t=this._applyDispatch(...arguments);return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){const e=new k;return t&&e.aggregate(this._applyDispatch("",{},t)),e.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var e,i;return Object.assign({},t,{_beforeTailState:(null===(e=t._beforeTailState)||void 0===e?void 0:e.currentMaskRef)===this.currentMask&&(null===(i=t._beforeTailState)||void 0===i?void 0:i.currentMask)||t._beforeTailState})}doDispatch(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return this.dispatch(t,this,e,i)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[i,s]=O(super.doPrepare(t,e));if(this.currentMask){let t;[i,t]=O(super.doPrepare(i,this.currentMaskFlags(e))),s=s.aggregate(t)}return[i,s]}reset(){var t;null===(t=this.currentMask)||void 0===t||t.reset(),this.compiledMasks.forEach(t=>t.reset())}get value(){return this.currentMask?this.currentMask.value:""}set value(t){super.value=t}get unmaskedValue(){return this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.currentMask?this.currentMask.typedValue:""}set typedValue(t){let e=String(t);this.currentMask&&(this.currentMask.typedValue=t,e=this.currentMask.unmaskedValue),this.unmaskedValue=e}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return Boolean(null===(t=this.currentMask)||void 0===t?void 0:t.isComplete)}get isFilled(){var t;return Boolean(null===(t=this.currentMask)||void 0===t?void 0:t.isFilled)}remove(){const t=new k;return this.currentMask&&t.aggregate(this.currentMask.remove(...arguments)).aggregate(this._applyDispatch()),t}get state(){var t;return Object.assign({},super.state,{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(t=>t.state),currentMaskRef:this.currentMask,currentMask:null===(t=this.currentMask)||void 0===t?void 0:t.state})}set state(t){const{compiledMasks:e,currentMaskRef:i,currentMask:s}=t,n=S(t,ot);this.compiledMasks.forEach((t,i)=>t.state=e[i]),null!=i&&(this.currentMask=i,this.currentMask.state=s),super.state=n}extractInput(){return this.currentMask?this.currentMask.extractInput(...arguments):""}extractTail(){return this.currentMask?this.currentMask.extractTail(...arguments):super.extractTail(...arguments)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(){return this.currentMask?this.currentMask.nearestInputPos(...arguments):super.nearestInputPos(...arguments)}get overwrite(){return this.currentMask?this.currentMask.overwrite:super.overwrite}set overwrite(t){console.warn('"overwrite" option is not available in dynamic mask, use this option in siblings')}get eager(){return this.currentMask?this.currentMask.eager:super.eager}set eager(t){console.warn('"eager" option is not available in dynamic mask, use this option in siblings')}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:super.skipInvalid}set skipInvalid(t){(this.isInitialized||t!==R.DEFAULTS.skipInvalid)&&console.warn('"skipInvalid" option is not available in dynamic mask, use this option in siblings')}maskEquals(t){return Array.isArray(t)&&this.compiledMasks.every((e,i)=>{if(!t[i])return;const s=t[i],{mask:n}=s;return D(e,S(s,at))&&e.maskEquals(n)})}typedValueEquals(t){var e;return Boolean(null===(e=this.currentMask)||void 0===e?void 0:e.typedValueEquals(t))}}
1rt.DEFAULTS={dispatch:(t,e,i,s)=>{if(!e.compiledMasks.length)return;const n=e.rawInputValue,o=e.compiledMasks.map((o,a)=>{const r=e.currentMask===o,l=r?o.value.length:o.nearestInputPos(o.value.length,A);return o.rawInputValue!==n?(o.reset(),o.append(n,{raw:!0})):r||o.remove(l),o.append(t,e.currentMaskFlags(i)),o.appendTail(s),{index:a,weight:o.rawInputValue.length,totalInputPositions:o.totalInputPositions(0,Math.max(l,o.nearestInputPos(o.value.length,A)))}});return o.sort((t,e)=>e.weight-t.weight||e.totalInputPositions-t.totalInputPositions),e.compiledMasks[o[0].index]}},C.MaskedDynamic=rt;const lt={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function ht(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lt.MASKED,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:lt.MASKED;const s=V(t);return t=>s.runIsolated(s=>(s[e]=t,s[i]))}C.PIPE_TYPE=lt,C.createPipe=ht,C.pipe=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];return ht(...i)(t)};try{globalThis.IMask=C}catch(t){}class ut{constructor(){this.settings(),this.bindEvents(),this.imask()}settings(){this.forms=document.querySelectorAll(".wcag-form"),this.inputTypeFiles="",this.clearButtons="",this.inputMasks=""}bindEvents(){this.forms.length&&this.forms.forEach(t=>{this.inputTypeFiles=[...this.inputTypeFiles,...t.querySelectorAll('input[type="file"]')],this.clearButtons=[...this.clearButtons,...t.querySelectorAll(".btn-file-clear")],this.inputMasks=[...this.inputMasks,...t.querySelectorAll("[data-imask]")]}),this.inputTypeFiles.length&&this.inputTypeFiles.forEach(t=>{t.addEventListener("change",this.callBackInputs)}),this.clearButtons.length&&this.clearButtons.forEach(t=>{t.addEventListener("click",this.callBackClearBtn),t.addEventListener("keyup",t=>{this.callBackClearBtn(t,!0)})})}callBackInputs(){const t=this,e=t.files;if(console.log(t.files),e.length){const i=e[0],s=i.name&&i.name.length?i.name:"";t.nextElementSibling.textContent=s}else t.nextElementSibling.textContent=""}callBackClearBtn(t,e=!1){if(e){if("Enter"===t.key){const t=this.clearButtons[0];if(t.parentElement&&t.parentElement.nextElementSibling){const e=t.parentElement.nextElementSibling;e.files.length&&(e.value="",e.nextElementSibling.textContent="",console.log(e.files))}}return}const i=this;if(i.parentElement&&i.parentElement.nextElementSibling){const t=i.parentElement.nextElementSibling;t.files.length&&(t.value="",t.nextElementSibling.textContent="",console.log(t.files))}}imask(){this.inputMasks.length&&this.inputMasks.forEach(t=>{const e=t,i=C(e,{mask:"+{38}(000)000-00-00",lazy:!1,placeholderChar:"_"});i.on("accept",()=>{e.nextElementSibling.value=""}),i.on("complete",()=>{const t=i.value.replace(/[+()-]/gi,"");e.nextElementSibling.value=t})})}}function dt(t,e=[]){const i=document.querySelector(t);if(!i)return;i.querySelectorAll(".tab-pane").forEach(t=>{let s=Array.from(t.querySelectorAll('a[href], button, textarea, input, select, [tabindex]:not([tabindex="-1"])')).filter(t=>function(t){const e=window.getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility&&!t.closest('[hidden], .d-none, [aria-hidden="true"]')}(t)&&!t.disabled);if(e.length&&(s=[...i.querySelectorAll(e.join(",")),...s]),!s.length)return;const n=s[0],o=s[s.length-1];i.addEventListener("keydown",t=>{"Tab"===t.key&&(t.shiftKey&&document.activeElement===n?(t.preventDefault(),o.focus()):t.shiftKey||document.activeElement!==o||(t.preventDefault(),n.focus()))})})}function ct(t,e){e.forEach(e=>{Object.entries(e).forEach(e=>{t.setAttribute(...e)})})}function pt(t,e){e.forEach(e=>{t.removeAttribute(e)})}var mt=()=>{const t=document.querySelectorAll(".js-custom-checkbox-event"),e=document.querySelectorAll(".js-custom-radio-event"),i=document.querySelectorAll(".btn-file-add");function s(t){let e=t.getAttribute("aria-checked");e="false"===e?"true":"false",t.setAttribute("aria-checked",e)}function n(t,e){let i=t.getAttribute("aria-checked");const s=document.querySelectorAll(`[name=${e}]+.js-custom-radio-event`);"false"===i&&(i="true",s.forEach(t=>
1t.setAttribute("aria-checked","false"))),t.setAttribute("aria-checked",i)}t.forEach(t=>{t.addEventListener("keypress",(function(e){"Enter"===e.key&&(this.previousElementSibling.click(),s(t))})),t.addEventListener("click",(function(e){this.previousElementSibling.click(),s(t)}))}),e.forEach(t=>{t.addEventListener("keypress",(function(e){if("Enter"===e.key){this.previousElementSibling.click();const e=this.previousElementSibling.getAttribute("name");n(t,e)}})),t.addEventListener("click",(function(){this.previousElementSibling.click();const e=this.previousElementSibling.getAttribute("name");n(t,e)}))}),i.forEach(t=>{t.addEventListener("keypress",(function(t){"Enter"===t.key&&this.previousElementSibling.click()}))})};function ft(){-1!==window.location.href.indexOf("#home")&&$(".nav-item a")[2].click(),-1!==window.location.href.indexOf("#tab1")&&$(".nav-item a")[0].click(),-1!==window.location.href.indexOf("#tab2")&&$(".nav-item a")[1].click(),$(".js-save-category-name").click((function(){localStorage.setItem("serviceForRedirect",$(this).attr("id")),localStorage.setItem("serviceForRedirectName",$(this).attr("name")),localStorage.setItem("serviceForRedirectTab",$(this).attr("data-tab"))})),$(".js-save-category-name").on("mousedown",(function(t){2===t.which&&(localStorage.setItem("serviceForRedirect",$(this).attr("id")),localStorage.setItem("serviceForRedirectName",$(this).attr("name")),localStorage.setItem("serviceForRedirectTab",$(this).attr("data-tab")),window.open($(this).attr("href"),"_blank"))})),$(".table .capital_letter").each((function(){$(this).removeClass("capital_letter")})),function(){const t="capital_letter",e=["<a","<table","href","<img","<tr","<td","<ol","<ul","<li","<h1","<h2","<h3","<h4","<h5","<h6","<strong","<video","<blockquote"],i=["&","@",'"',"-","=","/","*","?","%","#",".",",","^","«"];let s=document.querySelector(".editor-content p:first-child");if(s){s.classList.add(t);let n=s.innerHTML,o=null===n.match(/<(.*)>(.*)<\/(.*)>/)?n:n.match(/<(.*)>(.*)<\/(.*)>/),a=null===n.match(/<(.*)>(.*)<\/(.*)>/)?o:o[0];for(let i=0;i<e.length;i++)-1!==a.indexOf(e[i])&&s.classList.remove(t);let r=null!==o?`<${o[3]}( .*)>(.*)</(${o[3]})>`:new RegExp(".*"),l=null!==o?o[0].match(r):o;r=null===l?new RegExp(`<${o[3]}>(.*)</(${o[3]})>`):new RegExp(".*"),l=null===l?o[0].match(r)?o[0].match(r)[1]:o:l[2];const h=l.slice(0,1);for(let e=0;e<i.length;e++)h!==i[e]&&isNaN(h)||s.classList.remove(t);document.querySelectorAll("."+t).forEach((function(e,i){0!==i&&e.classList.remove(t)}))}}(),function(){const t=document.getElementById("menuSm"),e=document.getElementById("shomMenuSm"),i=document.querySelectorAll(".closeMenuSm"),s=document.querySelectorAll(".backMenu");$(".showSubSubmenu").click((function(){$(this).hasClass("active")?$(this).removeClass("active"):$(this).addClass("active")})),$(".showSubmenu").on("click",(function(){$(this).hasClass("active")?($(this).removeClass("active"),this.setAttribute("aria-expanded",!1)):($(".showSubmenu").removeClass("active"),$(this).addClass("active"),this.setAttribute("aria-expanded",!0))})),$(".showSubmenu").on("keydown",(function(t){if("Enter"===t.key){const t=$(this).next().find(".backMenu");this.setAttribute("aria-expanded",!0);const e="#"+$(this).next().children()[0].id;Object(o.a)(e),setTimeout(()=>{t&&t[0].focus()},300)}})),e.onclick=function(){t.classList.add("active"),t.setAttribute("tabindex","0"),"true"===e.getAttribute("aria-expanded")?e.setAttribute("aria-expanded","false"):e.setAttribute("aria-expanded","true"),document.body.classList.add("active")},e.onkeypress=function(i){if("Enter"===i.key){t.classList.add("active"),t.setAttribute("tabindex","0"),document.body.classList.add("active");const i=$("#menuSm .closeMenuSm");"true"===e.getAttribute("aria-expanded")?e.setAttribute("aria-expanded","false"):e.setAttribute("aria-expanded","true"),i&&setTimeout(()=>{i[0].focus()},300)}};for(let t=0;t<s.length;t++)s[t].addEventListener("click",(function(){$(this).closest(".submenu").prev().removeClass("active"),e.setAttribute("aria-expanded","false")}),!1),s[t].addEventListener("keypress",(function(t){"Enter"===t.key&&($(this).closest(".submenu").prev().removeClass("active"),$(this).closest(".submenu").prev().attr("aria-expanded",!1),setTimeout(()=>{const t=$("#menuSm .closeMenuSm");t&&t[0].focus()},300))}),!1);for(let s=0;s<i.length;s++)i[s].addEventListener("click",()=>{t.classList.remove("active"),t.removeAttribute("tabindex"),e.setAttribute("aria-expanded","fal
1se"),$(".showSubmenu").removeClass("active"),document.body.classList.remove("active")},!1),i[s].addEventListener("keypress",i=>{"Enter"===i.key&&(t.classList.remove("active"),t.removeAttribute("tabindex"),e.setAttribute("aria-expanded","false"),$(".showSubmenu").removeClass("active"),document.body.classList.remove("active"),setTimeout(()=>{e&&e.focus()},300))},!1);$(document).mouseup(t=>{const e=$(".submenu"),i=$(".menu");e.is(t.target)||0!==e.has(t.target).length||i.is(t.target)||0!==i.has(t.target).length||e.prev().removeClass("active")})}(),n(),function(t){const e=$(t);if(e)for(let t=0;t<e.length;t++){let i=e[t];$(i).on("click",()=>{if($(i).hasClass("active"))return $(i).removeClass("active"),void $(i).next().slideUp();$(e[t]).removeClass("active"),$(i).addClass("active"),$(i).next().slideDown()})}}(".slideToogle"),function(){const t=document.querySelectorAll("a.fr-file");if(0!==t.length)for(let e=0;e<t.length;e++){let i=document.createElement("span"),s=t[e].getAttribute("data-extension"),n=t[e].getAttribute("data-size");if(null!==s&&null!==n){let o,a;n>=1e6?(o="Ðб",a=n/1e6):n<1e6&&(o="Ðб",a=n/1e3),i.className="link-addition-info",i.innerHTML=` ( .${s} , ${a.toFixed(2)} ${o} )`,t[e].appendChild(i)}}}(),function(){const t=document.getElementById("searchPortalForm"),e=document.getElementById("searchNPAForm");if(t&&(t.onsubmit=function(){const t=this.elements.key.value.replace(/[+<>{}*#:;%]/gi," ").trim();localStorage.setItem("searchKey",t.replace(/\s+/g," "))}),e){const{from:t,to:i}=e.elements;t.onchange=()=>{if(0!==t.value.length){Object(s.a)(t.value)||(t.value=(new Date).toLocaleDateString())}},i.onchange=()=>{if(0!==i.value.length){Object(s.a)(i.value)||(i.value=(new Date).toLocaleDateString())}},e.addEventListener("submit",t=>{t.preventDefault();const i=e.elements.key.value.replace(/[+<>{}*#:;%]/gi," ").trim(),s=e.elements.num.value.replace(/[+<>{}*#:;%]/gi," ").trim();e.elements.key.value=i.replace(/\s+/g," "),e.elements.num.value=s.replace(/\s+/g," ");const n=Object.fromEntries(new FormData(e));let o="";Object.entries(n).forEach(([t,e])=>{if(e)if("from"===t||"to"===t){const i=e.split("/");o+=`&${t}=${i[2]}-${i[1]}-${i[0]}`}else o+=`&${t}=${e}`}),window.location.href=`${e.getAttribute("action")}?${o}`})}}(),function(){if($("a").each((function(){$(this).hasClass("online-mss-btn")&&($(this).addClass("btn"),$(this).addClass("button"),$(this).addClass("button__accreditation")),-1!==$(this).html().indexOf("<img")&&$(this).addClass("inside-photo")})),$(".editor-content a").each((function(){"_blank"!==$(this).attr("target")||$(this).hasClass("inside-photo")||$(this).html("<span>"+$(this).html()+'</span><span class="icon"></span>')})),-1!==window.location.pathname.indexOf("/en")&&($(".npa-search").hide(),$("#searchNPA").hide(),$(".btns-wrap .or").hide()),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){({}).hasOwnProperty.call(t,"remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})})),Array.prototype.forEach||(Array.prototype.forEach=function(t){let e,i;if(null===this)throw new TypeError("this is null or not defined");let s=Object(this),n=s.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(e=arguments[1]),i=0;i<n;){let n;i in s&&(n=s[i],t.call(e,n,i,s)),i++}}),-1!==window.location.pathname.indexOf("pro-vnesennya-zmini-do-punktu-11-postanovi-kabinetu-ministriv-ukrayini-vid-3-veresnya-2008-r-777")){const t=document.querySelector(".news__title--text"),e=document.querySelector(".breadcrumb-item.active");t&&(t.innerHTML=t.innerHTML.replace("11","1<sup>1</sup>")),e&&(e.innerHTML=e.innerHTML.replace("11","1<sup>1</sup>"))}const t=document.querySelectorAll('a[target="_blank"]');if(t.length)for(let e=0;e<t.length;e++)t[e].hasAttribute("rel")||t[e].setAttribute("rel","nofollow")}(),$(document).ready(()=>{$("#siteMapBtn").click((function(){$(".site-map_content").toggleClass("active"),$(this).toggleClass("active")}))}),$(window).scroll((function(){$(this).scrollTop()>100?$(".scrollToTop").fadeIn():$(".scrollToTop").fadeOut()})),$(".scrollToTop").click((function(){return $("html, body").animate({scrollTop:0},500),!1})),function(){const t=document.getElementById("showFilters"),e=t=>{-1!==t.className.indexOf("active")?(t.classList.remove("active"),t.setAttribute("aria-expanded",!1)):(t.classList.add("active"),t.setAttribute("aria-expanded",!0))};t&&(t.addEventListener("click",()=>{e(t)}),t.addEventListener("keypress",i=>{"Enter"===i.key&&e(t)}))}(),function(){const t=$("table:not(.js-datepicker-table)");t&&$.each(t,(function(){$(this).parent().hasClass("table-responsive")||($(this).addClass("table"),$(this).wrap('<div class="table-responsive">'))}))}(),function(){const t=T();if(t){E.noConflict();const e=t.name,i=t.os.split(" ")[0].toLowerCase();$("body").addClass(`${e} ${i}`),$("html").addClass(""+e)}}(),function(){const t=document.querySelector("#menuDesktop .menu"),e=document.getElementById("show_more");let i;function s(){const s=t.offsetWidth-30;let n=0;
1[...t.querySelectorAll(".js-menu-link")].forEach(t=>{n+=t.offsetWidth,s<n?t.setAttribute("tabindex","-1"):t.setAttribute("tabindex","0")}),s<n?e.classList.remove("d-none"):(e.classList.add("d-none"),t.classList.remove("active")),i=$('.js-menu-link[tabindex="-1"]')}t&&e&&e.addEventListener("click",()=>{t.classList.toggle("active"),e.classList.toggle("active"),t.classList.contains("active")?(e.setAttribute("aria-expanded","true"),i.length&&(i[0].focus(),i.attr("tabindex","0"))):(e.setAttribute("aria-expanded","false"),i.attr("tabindex","-1"),[...t.querySelectorAll(".js-menu-link")].forEach(t=>t.classList.remove("active")))}),t&&e&&(window.addEventListener("load",s),window.addEventListener("resize",s))}(),new ut,window.getCsrf&&setInterval(()=>{window.getCsrf().then(t=>{$('[name="csrf-token"]').attr("content",t)})},6e5),[...document.querySelectorAll(".js-choice_single")].forEach(t=>{const e=new Choices(t,{searchEnabled:!0,sorter:()=>!1,loadingText:window.multiLang.allPages.loadingText,noResultsText:window.multiLang.allPages.notFoundText,noChoicesText:window.multiLang.allPages.noChoicesText,itemSelectText:"",callbackOnInit(){[...document.querySelectorAll(".choices__item")].forEach(t=>{t.removeAttribute("aria-selected")})}}),i=$(e.containerOuter.element),s=i.prev().attr("id");s&&i.attr("aria-labelledby",s),e.passedElement.element.addEventListener("change",t=>{const e=t.target.closest(".choices__inner").querySelector(".choices__item--selectable");e&&e.removeAttribute("aria-selected")})}),Object(o.a)("#menuSm"),Object(o.a)("#govModal"),dt("#searchFormWrap",["#nav-search-portal-tab","#nav-search-npa-tab","#closeSearch"]),(t=>{const e=document.getElementById(t);if(e){const i=document.querySelector(`[data-bs-target="${t}"]`),s=e.querySelector("[data-bs-dismiss]");e.addEventListener("shown.bs.modal",()=>{s&&s.focus()}),e.addEventListener("hidden.bs.modal",()=>{i&&i.focus()})}})("govModal"),(()=>{document.querySelectorAll(".editor-content figure").forEach(t=>{const e=t.getAttribute("data-video"),i=t.getAttribute("data-audio");e&&(e.match("youtube")?t.insertAdjacentHTML("afterend",`<iframe src="${e}" frameborder="0" allowfullscreen="allowfullscreen"></iframe>`):t.insertAdjacentHTML("afterend",`<video controls preload="metadata"><source src="${e}"></video>`),t.remove()),i&&(t.insertAdjacentHTML("afterend",`<audio controls preload="metadata"><source src="${i}"></video>`),t.remove())});document.querySelectorAll("video").forEach(t=>{t.addEventListener("canplay",()=>{t.play().then(()=>{t.pause()})}),t.load()});document.querySelectorAll(".editor-content img").forEach(t=>{t.getAttribute("alt")||t.setAttribute("alt","");const e=t.parentElement;e&&"a"===e.tagName.toLowerCase()&&e.classList.add("d-block")});const t=document.querySelector('embed[src$=".pdf"]');if(t){t.setAttribute("aria-label","ÐеÑеглÑд PDF-докÑменÑа");const e=document.getElementById("printBtn");e&&e.classList.add("d-none")}})(),(()=>{const t=document.querySelector(".js-services-short_item-title"),e=document.querySelector(".js-footer-contacts-title"),i=document.querySelectorAll(".js-set-aria-labelledby");window.innerWidth<=991&&(t&&ct(t,[{role:"button",tabindex:0,"aria-expanded":!1}]),e&&ct(e,[{role:"button",tabindex:0,"aria-expanded":!1}])),window.addEventListener("resize",()=>{t&&(window.innerWidth<=991?ct(t,[{role:"button",tabindex:0,"aria-expanded":!1}]):pt(t,["role","tabindex","aria-expanded"])),e&&(window.innerWidth<=991?ct(e,[{role:"button",tabindex:0,"aria-expanded":!1}]):pt(t,["role","tabindex","aria-expanded"]))}),i.length>0&&i.forEach((t,e)=>{const i=t.querySelector(".month-year-label"),s=t.querySelector(".js-datepicker-table");i&&(i.id="id-grid-label-"+e),s&&s.setAttribute("aria-labelledby","id-grid-label-"+e)})})(),mt()}},32:function(t,e){!function(){L.Control.FullScreen=L.Control.extend({options:{position:"topleft",title:"Full Screen",titleCancel:"Exit Full Screen",forceSeparateButton:!1,forcePseudoFullscreen:!1,fullscreenElement:!1},onAdd:function(t){var e,i="leaflet-control-zoom-fullscreen",s="";return e=t.zoomControl&&!this.options.forceSeparateButton?t.zoomControl._container:L.DomUtil.create("div","leaflet-bar"),this.options.content?s=this.options.content:i+=" fullscreen-icon",this._createButton(this.options.title,i,s,e,this.toggleFullScreen,this),this._map.fullscreenControl=this,this._map.on("enterFullscreen exitFullscreen",this._toggleTitle,this),e},onRemove:function(e){L.DomEvent.off(this.link,"click",L.DomEvent.stopPropagation).off(this.link,"click",L.DomEvent.preventDefault).off(this.link,"click",this.toggleFullScreen,this),L.DomEvent.off(this._container,t.fullScreenEventName,L.DomEvent.stopPropagation).off(this._container,t.fullScreenEventName,L.DomEvent.preventDefault).off(this._container,t.fullScreenEventName,this._handleFullscreenChange,this),L.DomEvent.off(document,t.fullScreenEventName,L.DomEvent.stopPropagation).off(document,t.fullScreenEventName,L.DomEvent.preventDefault).off(document,t.fullScreenEventName,this._handleFullscreenChange,this)},_createButton:function(e,i,s,n,o,a){return this.link=L.DomUtil.create("a",i,n),this.link.href="#",this.link.title=e,this.link.innerHTML=s,this.link.setAttribute("role","button"),this.link.setAttribute("aria-label",e),L.DomEvent.on(this.link,"click",L.DomEvent.stopPropagation).on(this.link,"click",L.DomEvent.preventDefault).on(this.link,"click",o,a),L.DomEvent.on(n,t.fullScreenEventName,L.DomEvent.stopPropagation).on(n,t.fullScreenEventName,L.DomEvent.preventDefault).on(n,t.fullScreenEventName,this._handleFullscreenChange,a),L.DomEvent.on(document,t.fullScreenEventName,L.DomEvent.stopPropagation).on(document,t.fullScreenEventName,L.DomEvent.preventDefault).on(document,t.fullScreenEventName,this._handleFullscreenChange,a),this.link},toggleFullScreen:function(){var e=this._map;e._exitFired=!1,e._isFullscreen?(t.supportsFullScreen&&!this.options.forcePseudoFullscreen?t.cancelFullScreen():L.DomUtil.removeClass(this.options.fullscreenElement?this.options.fullscreenElement:e._container,"leaflet-pseudo-fullscreen"),e.fire("exitFullscreen"),e._exitFired=!0,e._isFullscreen=!1):(t.supportsFullScreen&&!this.options.forcePseudoFullscreen?t.requestFullScreen(this.options.fullscreenElement?this.options.fullscreenElement:e._container):L.DomUtil.addClass(this.options.fullscreenElement?this.options.fullscreenElement:e._container,"leaflet-pseudo-fullscreen"),e.fire("enterFullscreen"),e._isFullscreen=!0)},_toggleTitle:function(){this.link.title=this._map._isFullscreen?this.options.title:this.options.titleCancel},_handleFullscreenChange:function(){var e=this._map;
1e.invalidateSize(),t.isFullScreen()||e._exitFired||(e.fire("exitFullscreen"),e._exitFired=!0,e._isFullscreen=!1)}}),L.Map.include({toggleFullscreen:function(){this.fullscreenControl.toggleFullScreen()}}),L.Map.addInitHook((function(){this.options.fullscreenControl&&this.addControl(L.control.fullscreen(this.options.fullscreenControlOptions))})),L.control.fullscreen=function(t){return new L.Control.FullScreen(t)};var t={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",prefix:""},e="webkit moz o ms khtml".split(" ");if(void 0!==document.exitFullscreen)t.supportsFullScreen=!0;else{for(var i=0,s=e.length;i<s;i++)if(t.prefix=e[i],void 0!==document[t.prefix+"CancelFullScreen"]){t.supportsFullScreen=!0;break}void 0!==document.msExitFullscreen&&(t.prefix="ms",t.supportsFullScreen=!0)}t.supportsFullScreen&&("ms"===t.prefix?t.fullScreenEventName="MSFullscreenChange":t.fullScreenEventName=t.prefix+"fullscreenchange",t.isFullScreen=function(){switch(this.prefix){case"":return document.fullscreen;case"webkit":return document.webkitIsFullScreen;case"ms":return document.msFullscreenElement;default:return document[this.prefix+"FullScreen"]}},t.requestFullScreen=function(t){switch(this.prefix){case"":return t.requestFullscreen();case"ms":return t.msRequestFullscreen();default:return t[this.prefix+"RequestFullScreen"]()}},t.cancelFullScreen=function(){switch(this.prefix){case"":return document.exitFullscreen();case"ms":return document.msExitFullscreen();default:return document[this.prefix+"CancelFullScreen"]()}}),"undefined"!=typeof jQuery&&(jQuery.fn.requestFullScreen=function(){return this.each((function(){var e=jQuery(this);t.supportsFullScreen&&t.requestFullScreen(e)}))}),window.fullScreenApi=t}()},4:function(t,e){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var i=0;i<this.length;i++)t.call(e,this[i],i,this)})},5:function(t,e){var i,s,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function r(t){if(i===setTimeout)return setTimeout(t,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{s="function"==typeof clearTimeout?clearTimeout:a}catch(t){s=a}}();var l,h=[],u=!1,d=-1;function c(){u&&l&&(u=!1,l.length?h=l.concat(h):d=-1,h.length&&p())}function p(){if(!u){var t=r(c);u=!0;for(var e=h.length;e;){for(l=h,h=[];++d<e;)l&&l[d].run();d=-1,e=h.length}l=null,u=!1,function(t){if(s===clearTimeout)return clearTimeout(t);if((s===a||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(t);try{s(t)}catch(e){try{return s.call(null,t)}catch(e){return s.call(this,t)}}}(t)}}function m(t,e){this.fun=t,this.array=e}function f(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];h.push(new m(t,e)),1!==h.length||u||r(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},57:function(t,e,i){"use strict";i.r(e);var s=i(3);function n(){let t={init:()=>{t.settings(),t.getLocalisation(),t.bindEvents()},bindEvents:()=>{$(".js_update_tabs").on("click",(function(){t.tabHref=$(this).attr("href"),t.categoryId=$(this).data("category"),t.tagId=$(this).data("tag"),0!==t.tagId&&-1===t.prevTabs.indexOf(t.tabHref)&&(t.prevTabs.push(t.tabHref),t.loadNews())}))},settings:()=>{t.tabHref="",t.categoryId=null,t.tagId=null,t.prevTabs=[],t.localisationName=""},getLocalisation:()=>{const e=document.querySelector("html");t.localisationName=e.getAttribute("lang")||"","en"===this.localisationName?moment.locale("en"):moment.locale("uk")},loadNews:()=>{$("#loadMore").show(),$.ajax({url:"/api/blog",data:{category:t.categoryId,tag:t.tagId,lang:t.localisationName}}).done(e=>{$("#loadMore").hide(),e.main?(t.renderMainNews(e.data),t.renderOtherNews(e.data)):t.renderGovNews(e.data)})},renderMainNews:e=>{let s="";$.each(e,(function(e,n){if(e>5)return;let o="<li>";if(e<=1){let e=n.featured_images.length>0?"white":"",a=i(n);o+='<div class="main-item">'+t.renderImageForMainNews(n,n.slug)+'<div class="addition">'+t.renderNewsTag(n)+'<div class="time">'+a+'</div></div></div><div class="main_item_text updated"><a href="/'+t.localisationName+"/news/"+n.slug+'" class="title '+e+'"><span>'+n.title+"</span></a></div></li>",s+=o}e>1&&e<=5&&(o+='<div class="news-item" style="height: 169px;"><a href="'+t.localisationName+"/news/"+n.slug+'" class="title"><span>'+n.title+'<span></a><div class="addition"><div class="time">
1'+i(n)+"</div>"+t.renderNewsTag(n)+'</div><div class="clearfix"></div></div></li>',s+=o)})),$(t.tabHref).find(".main-page-news-list").empty(),$(t.tabHref).find(".main-page-news-list").append(s+'<div class="clearfix"></div>')},renderOtherNews:i=>{let s="";$.each(i,(function(i,n){if(i>5){let i='<ul class="news-list"><li><div class="date">'+e(n)+'</div><a href="'+t.localisationName+"/news/"+n.slug+'" class="title"><span>'+n.title+"</span></a></li></ul>";s+=i}})),$(t.tabHref).find(".other-news").append(s)},renderNewsTag:e=>{if(e.tags.length>0){return'<a href="'+t.localisationName+"/tag/"+e.tags[0].slug+'" class="tag">'+e.tags[0].name+"</a>"}},renderImageForMainNews:(e,i)=>{if(e.featured_images.length>0){return'<div class="background" style="background-image:url('+e.featured_images[0].path+')"><a href="/'+t.localisationName+"/news/"+i+'" class="title white"></a></div><div class="background-filter"></div>'}return'<div class="background"><a href="/'+t.localisationName+"/news/"+i+'" class="title white"></a></div>'},renderGovNews:i=>{let s=$(i).length,n="";$.each(i,(function(i,o){let a="";(i+1)%4==1&&(a+='<div class="col-md-4"><ul class="news-list">'),a+="<li>",o.featured_images.length>0&&(a+='<div class="preview" style="background-image:url('+o.featured_images[0].path+');"></div>'),a+='<div class="date">'+e(o)+"</div>",a+='<a href="'+t.localisationName+"/news/"+o.slug+'" class="title"><span>'+o.title+"</span></a>",a+="</li>",(i+1)%4!=0&&i!==s-1||(a+="</ul></div>"),n+=a})),$(t.tabHref).find(".gov-news").append(n)}};function e(t){return moment(t.published_at).format("H:mm, DD MMMM YYYY")}function i(t){return moment(t.published_at).format("DD MMMM H:mm")}return t}function o(){function t(t,e,i){let s=0;const n=$(t).width();$(e).each((function(){s+=$(this).width(),window.innerWidth>=992&&s+200>n&&($(i).parent().show(),$(i).prev().show(),$(i).append(`<li class="nav-item js-count-tabs updateEvents">${$(this).html().trim()}</li>`),$(this).remove())})),window.innerWidth<=992&&$(t+" .tags-inner").width(s+500)}if($(".newsTab.nav-item").click((function(){let e=this;setTimeout((function(){let i=$(e).find(".nav-link").attr("href");t(i+" .newsTags",i+" .js-count-tabs",i+" .news-more-tags")}),500)})),$(".eventsTab").click((function(){setTimeout((function(){t(".eventsTags",".eventsTags .js-count-tabs",".events-more-tags")}),500)})),$(".yet-themes").click((function(t){t.preventDefault(),$(".more-tags").slideToggle(),$(this).next().children().children().each((function(){if($(this).hasClass("binded"))return!1;{let t=new n;t.settings=()=>{t.tabHref="",t.categoryId=null,t.tagId=null,t.prevTabs=[]},t.bindEvents=e=>{$(e).on("click",(function(){t.tabHref=$(this).attr("href"),t.categoryId=$(this).data("category"),t.tagId=$(this).data("tag"),0!==t.tagId&&(t.prevTabs.includes(t.tabHref)||(t.prevTabs.push(t.tabHref),t.loadNews()))}))},t.settings(),t.getLocalisation(),t.bindEvents($(this)),$(this).addClass("binded")}}))})),t("#news_tab_0 .newsTags","#news_tab_0 .js-count-tabs","#news_tab_0 .news-more-tags"),window.innerWidth<=992){const t=$(".tabs_default");t.unbind("click"),t.click((function(){$(this).hasClass("active")?$(this).removeClass("active"):$(this).addClass("active")})),$(".services-tabs").click((function(){$(this).hasClass("active")?$(this).removeClass("active"):$(this).addClass("active")})),$(".digest-subscribe-form .icon").click((function(){$("#subscribeEmail").focus()}))}$(document).mouseup((function(t){const e=$(".more-tags"),i=$(".yet-themes");e.is(t.target)||0!==e.has(t.target).length||i.is(t.target)||0!==i.has(t.target).length||e.hide("slow")}))}i(0);var a=i(21);function r(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function l(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach((function(i){void 0===t[i]?t[i]=e[i]:r(e[i])&&r(t[i])&&Object.keys(e[i]).length>0&&l(t[i],e[i])}))}var h="undefined"!=typeof document?document:{},u={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};l(h,u);var d="undefined"!=typeof window?window:{};l(d,{document:u,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}});class c{constructor(t){const e=this;for(let i=0;i<t.length;i+=1)e[i]=t[i];return e.length=t.length,this}}function p(t,e){const i=[];let s=0;if(t&&!e&&t instanceof c)return t;if(t)if("string"==typeof t){let n,o;const a=t.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){let t="div";for(0===a.indexOf("<li")&&(t="ul"),0===a.indexOf("<tr")&&(t="tbody"),0!==a.indexOf("<td")&&0!==a.indexOf("<th")||(t="tr"),0===a.indexOf("<tbody")&&(t="table"),0===a.indexOf("<option")&&(t="select"),o=h.createElement(t),o.innerHTML=a,s=0;s<o.childNodes.length;s+=1)i.push(o.childNodes[s])}else for(n=e||"#"!==t[0]||t.match(/[ .<>:~]/)?(e||h).querySelectorAll(t.trim()):[h.getElementById(t.trim().split("#")[1])],s=0;s<n.length;s+=1)n[s]&&i.push(n[s])}else if(t.nodeType||t===d||t===h)i.push(t);else if(t.length>0&&t[0].nodeType)for(s=0;s<t.length;s+=1)i.push(t[s]);return new c(i)}function m(t){const e=[];for(let i=0;i<t.length;i+=1)-1===e.indexOf(t[i])&&e.push(t[i]);return e}p.fn=c.prototype,p.Class=c,p.Dom7=c;"resize scroll".split(" ");const f={addClass:function(t){if(void 0===t)return this;const e=t.split(" ");for(let t=0;t<e.length;t+=1)for(let i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.add(e[t]);return this},removeClass:function(t){const e=t.split(" ");for(let t=0;t<e.length;t+=1)for(let i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.remove(e[t]);return this},hasClass:function(t){return!!this[0]&&this[0].classList.contains(t)},toggleClass:function(t){const e=t.split(" ");for(let t=0;t<e.length;t+=1)for(let i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.toggle(e[t]);return this},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(t,e);else for(const e in t)this[i][e]=t[e],this[i].setAttribute(e,t[e]);return this},removeAttr:function(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},data:function(t,e){let i;if(void 0!==e){for(let s=0;s<this.length;s+=1)i=this[s],i.dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[t]=e;return this}
vendor: 9,163 bytes, line 1
1if(i=this[0],i){if(i.dom7ElementDataStorage&&t in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[t];const e=i.getAttribute("data-"+t);return e||void 0}},transform:function(t){for(let e=0;e<this.length;e+=1){const i=this[e].style;i.webkitTransform=t,i.transform=t}return this},transition:function(t){"string"!=typeof t&&(t+="ms");for(let e=0;e<this.length;e+=1){const i=this[e].style;i.webkitTransitionDuration=t,i.transitionDuration=t}return this},on:function(...t){let[e,i,s,n]=t;function o(t){const e=t.target;if(!e)return;const n=t.target.dom7EventData||[];if(n.indexOf(t)<0&&n.unshift(t),p(e).is(i))s.apply(e,n);else{const t=p(e).parents();for(let e=0;e<t.length;e+=1)p(t[e]).is(i)&&s.apply(t[e],n)}}function a(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),s.apply(this,e)}"function"==typeof t[1]&&([e,s,n]=t,i=void 0),n||(n=!1);const r=e.split(" ");let l;for(let t=0;t<this.length;t+=1){const e=this[t];if(i)for(l=0;l<r.length;l+=1){const t=r[l];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:s,proxyListener:o}),e.addEventListener(t,o,n)}else for(l=0;l<r.length;l+=1){const t=r[l];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:s,proxyListener:a}),e.addEventListener(t,a,n)}}return this},off:function(...t){let[e,i,s,n]=t;"function"==typeof t[1]&&([e,s,n]=t,i=void 0),n||(n=!1);const o=e.split(" ");for(let t=0;t<o.length;t+=1){const e=o[t];for(let t=0;t<this.length;t+=1){const o=this[t];let a;if(!i&&o.dom7Listeners?a=o.dom7Listeners[e]:i&&o.dom7LiveListeners&&(a=o.dom7LiveListeners[e]),a&&a.length)for(let t=a.length-1;t>=0;t-=1){const i=a[t];s&&i.listener===s||s&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===s?(o.removeEventListener(e,i.proxyListener,n),a.splice(t,1)):s||(o.removeEventListener(e,i.proxyListener,n),a.splice(t,1))}}}return this},trigger:function(...t){const e=t[0].split(" "),i=t[1];for(let s=0;s<e.length;s+=1){const n=e[s];for(let e=0;e<this.length;e+=1){const s=this[e];let o;try{o=new d.CustomEvent(n,{detail:i,bubbles:!0,cancelable:!0})}catch(t){o=h.createEvent("Event"),o.initEvent(n,!0,!0),o.detail=i}s.dom7EventData=t.filter((t,e)=>e>0),s.dispatchEvent(o),s.dom7EventData=[],delete s.dom7EventData}}return this},transitionEnd:function(t){const e=["webkitTransitionEnd","transitionend"],i=this;let s;function n(o){if(o.target===this)for(t.call(this,o),s=0;s<e.length;s+=1)i.off(e[s],n)}if(t)for(s=0;s<e.length;s+=1)i.on(e[s],n);return this},outerWidth:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){const t=this[0],e=t.getBoundingClientRect(),i=h.body,s=t.clientTop||i.clientTop||0,n=t.clientLeft||i.clientLeft||0,o=t===d?d.scrollY:t.scrollTop,a=t===d?d.scrollX:t.scrollLeft;return{top:e.top+o-s,left:e.left+a-n}}return null},css:function(t,e){let i;if(1===arguments.length){if("string"!=typeof t){for(i=0;i<this.length;i+=1)for(let e in t)this[i].style[e]=t[e];return this}if(this[0])return d.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(i=0;i<this.length;i+=1)this[i].style[t]=e;return this}return this},each:function(t){if(!t)return this;for(let e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(t){const e=this[0];let i,s;if(!e||void 0===t)return!1;if("string"==typeof t){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(i=p(t),s=0;s<i.length;s+=1)if(i[s]===e)return!0;return!1}if(t===h)return e===h;if(t===d)return e===d;if(t.nodeType||t instanceof c){for(i=t.nodeType?[t]:t,s=0;s<i.length;s+=1)if(i[s]===e)return!0;return!1}return!1},index:function(){let t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;const e=this.length;let i;return t>e-1?new c([]):t<0?(i=e+t,new c(i<0?[]:[this[i]])):new c([this[t]])},append:function(...t){let e;for(let i=0;i<t.length;i+=1){e=t[i];for(let t=0;t<this.length;t+=1)if("string"==typeof e){const i=h.createElement("div");for(i.innerHTML=e;i.firstChild;)this[t].appendChild(i.firstChild)}else if(e instanceof c)for(let i=0;i<e.length;i+=1)this[t].appendChild(e[i]);else this[t].appendChild(e)}return this},prepend:function(t){let e,i;for(e=0;e<this.length;e+=1)if("string"==typeof t){const s=h.createElement("div");for(s.innerHTML=t,i=s.childNodes.length-1;i>=0;i-=1)this[e].insertBefore(s.childNodes[i],this[e].childNodes[0])}else if(t instanceof c)for(i=0;i<t.length;i+=1)this[e].insertBefore(t[i],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&p(this[0].nextElementSibling).is(t)?new c([this[0].nextElementSibling]):new c([]):this[0].nextElementSibling?new c([this[0].nextElementSibling]):new c([]):new c([])},nextAll:function(t){const e=[];let i=this[0];if(!i)return new c([]);for(;i.nextElementSibling;){const s=i.nextElementSibling;t?p(s).is(t)&&e.push(s):e.push(s),i=s}return new c(e)},prev:function(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&p(e.previousElementSibling).is(t)?new c([e.previousElementSibling]):new c([]):e.previousElementSibling?new c([e.previousElementSibling]):new c([])}return new c([])},prevAll:function(t){const e=[];let i=this[0];if(!i)return new c([]);for(;i.previousElementSibling;){const s=i.previousElementSibling;t?p(s).is(t)&&e.push(s):e.push(s),i=s}return new c(e)},parent:function(t){const e=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(t?p(this[i].parentNode).is(t)&&e.push(this[i].parentNode):e.push(this[i].parentNode));return p(m(e))},parents:function(t){const e=[];for(let i=0;i<this.length;i+=1){let s=this[i].parentNode;for(;s;)t?p(s).is(t)&&e.push(s):e.push(s),s=s.parentNode}return p(m(e))},closest:function(t){let e=this;return void 0===t?new c([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){const e=[];for(let i=0;i<this.length;i+=1){const s=this[i].querySelectorAll(t);for(let t=0;t<s.length;t+=1)e.push(s[t])}return new c(e)},children:function(t){const e=[];for(let i=0;i<this.length;i+=1){const s=this[i].childNodes;for(let i=0;i<s.length;i+=1)t?1===s[i].nodeType&&p(s[i]).is(t)&&e.push(s[i]):1===s[i].nodeType&&e.push(s[i])}return new c(m(e))},filter:function(t){const e=[],i=this;for(let s=0;s<i.length;s+=1)t.call(i[s],s,i[s])&&e.push(i[s]);return new c(e)},remove:function(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this},add:function(...t){const e=this;let i,s;for(i=0;i<t.length;i+=1){const n=p(t[i]);for(s=0;s<n.length;s+=1)e[e.length]=n[s],e.length+=1}return e},styles:function(){return this[0]?d.getComputedStyle(this[0],null):{}}};Object.keys(f).forEach(t=>{p.fn[t]=p.fn[t]||f[t]});const g={deleteProps(t){const e=t;Object.keys(e).forEach(t=>{try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}})},nextTick:(t,e=0)=>setTimeout(t,e),now:()=>Date.now(),getTranslate(t,e="x"){let i,s,n;const o=d.getComputedStyle(t,null);return d.WebKitCSSMatrix?(s=o.transform||o.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(t=>t.replace(",",".")).join(", ")),n=new d.WebKitCSSMatrix("none"===s?"":s)):(n=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=n.toString().split(",")),"x"===e&&(s=d.WebKitCSSMatrix?n.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===e&&(s=d.WebKitCSSMatrix?n.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0},parseUrlQuery(t){const e={};let i,s,n,o,a=t||d.location.href;if("string"==typeof a&&a.length)for(a=a.indexOf("?")>-1?a.replace(/\S*\?/,""):"",s=a.split("&").filter(t=>""!==t),o=s.length,i=0;i<o;i+=1)n=s[i].replace(/#\S+/g,"").split("="),e[decodeURIComponent(n[0])]=void 0===n[1]?void 0:decodeURIComponent(n[1])||"";return e},isObject:t=>"object"==typeof t&&null!==t&&t.constructor&&t.constructor===Object,extend(...t){const e=Object(t[0]);for(let i=1;i<t.length;i+=1){const s=t[i];if(null!=s){const t=Object.keys(Object(s));for(let i=0,n=t.length;i<n;i+=1){const n=t[i],o=Object.getOwnPropertyDescriptor(s,n);void 0!==o&&o.enumerable&&(g.isObject(e[n])&&g.isObject(s[n])?g.extend(e[n],s[n]):!g.isObject(e[n])&&g.isObject(s[n])?(e[n]={}
1,g.extend(e[n],s[n])):e[n]=s[n])}}}return e}},v={touch:!!("ontouchstart"in d||d.DocumentTouch&&h instanceof d.DocumentTouch),pointerEvents:!!d.PointerEvent&&"maxTouchPoints"in d.navigator&&d.navigator.maxTouchPoints>=0,observer:"MutationObserver"in d||"WebkitMutationObserver"in d,passiveListener:function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get(){t=!0}});d.addEventListener("testPassiveListener",null,e)}catch(t){}return t}(),gestures:"ongesturestart"in d};class _{constructor(t={}){const e=this;e.params=t,e.eventsListeners={},e.params&&e.params.on&&Object.keys(e.params.on).forEach(t=>{e.on(t,e.params.on[t])})}on(t,e,i){const s=this;if("function"!=typeof e)return s;const n=i?"unshift":"push";return t.split(" ").forEach(t=>{s.eventsListeners[t]||(s.eventsListeners[t]=[]),s.eventsListeners[t][n](e)}),s}once(t,e,i){const s=this;if("function"!=typeof e)return s;function n(...i){s.off(t,n),n.f7proxy&&delete n.f7proxy,e.apply(s,i)}return n.f7proxy=e,s.on(t,n,i)}off(t,e){const i=this;return i.eventsListeners?(t.split(" ").forEach(t=>{void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].length&&i.eventsListeners[t].forEach((s,n)=>{(s===e||s.f7proxy&&s.f7proxy===e)&&i.eventsListeners[t].splice(n,1)})}),i):i}emit(...t){const e=this;if(!e.eventsListeners)return e;let i,s,n;"string"==typeof t[0]||Array.isArray(t[0])?(i=t[0],s=t.slice(1,t.length),n=e):(i=t[0].events,s=t[0].data,n=t[0].context||e);return(Array.isArray(i)?i:i.split(" ")).forEach(t=>{if(e.eventsListeners&&e.eventsListeners[t]){const i=[];e.eventsListeners[t].forEach(t=>{i.push(t)}),i.forEach(t=>{t.apply(n,s)})}}),e}useModulesParams(t){const e=this;e.modules&&Object.keys(e.modules).forEach(i=>{const s=e.modules[i];s.params&&g.extend(t,s.params)})}useModules(t={}){const e=this;e.modules&&Object.keys(e.modules).forEach(i=>{const s=e.modules[i],n=t[i]||{};s.instance&&Object.keys(s.instance).forEach(t=>{const i=s.instance[t];e[t]="function"==typeof i?i.bind(e):i}),s.on&&e.on&&Object.keys(s.on).forEach(t=>{e.on(t,s.on[t])}),s.create&&s.create.bind(e)(n)})}static set components(t){this.use&&this.use(t)}static installModule(t,...e){const i=this;i.prototype.modules||(i.prototype.modules={});const s=t.name||`${Object.keys(i.prototype.modules).length}_${g.now()}`;return i.prototype.modules[s]=t,t.proto&&Object.keys(t.proto).forEach(e=>{i.prototype[e]=t.proto[e]}),t.static&&Object.keys(t.static).forEach(e=>{i[e]=t.static[e]}),t.install&&t.install.apply(i,e),i}static use(t,...e){const i=this;return Array.isArray(t)?(t.forEach(t=>i.installModule(t)),i):i.installModule(t,...e)}}var y={updateSize:function(){const t=this;let e,i;const s=t.$el;e=void 0!==t.params.width?t.params.width:s[0].clientWidth,i=void 0!==t.params.height?t.params.height:s[0].clientHeight,0===e&&t.isHorizontal()||0===i&&t.isVertical()||(e=e-parseInt(s.css("padding-left"),10)-parseInt(s.css("padding-right"),10),i=i-parseInt(s.css("padding-top"),10)-parseInt(s.css("padding-bottom"),10),g.extend(t,{width:e,height:i,size:t.isHorizontal()?e:i}))},updateSlides:function(){const t=this,e=t.params,{$wrapperEl:i,size:s,rtlTranslate:n,wrongRTL:o}=t,a=t.virtual&&e.virtual.enabled,r=a?t.virtual.slides.length:t.slides.length,l=i.children("."+t.params.slideClass),h=a?t.virtual.slides.length:l.length;let u=[];const c=[],p=[];function m(t){return!e.cssMode||t!==l.length-1}let f=e.slidesOffsetBefore;"function"==typeof f&&(f=e.slidesOffsetBefore.call(t));let v=e.slidesOffsetAfter;"function"==typeof v&&(v=e.slidesOffsetAfter.call(t));const _=t.snapGrid.length,y=t.snapGrid.length;let b,w,x=e.spaceBetween,E=-f,T=0,S=0;if(void 0===s)return;"string"==typeof x&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*s),t.virtualSize=-x,n?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(b=Math.floor(h/e.slidesPerColumn)===h/t.params.slidesPerColumn?h:Math.ceil(h/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(b=Math.max(b,e.slidesPerView*e.slidesPerColumn)));const C=e.slidesPerColumn,k=b/C,P=Math.floor(h/e.slidesPerColumn);for(let i=0;i<h;i+=1){w=0;const n=l.eq(i);if(e.slidesPerColumn>1){let s,o,a;if("row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){const t=Math.floor(i/(e.slidesPerGroup*e.slidesPerColumn)),r=i-e.slidesPerColumn*e.slidesPerGroup*t,l=0===t?e.slidesPerGroup:Math.min(Math.ceil((h-t*C*e.slidesPerGroup)/C),e.slidesPerGroup);a=Math.floor(r/l),o=r-a*l+t*e.slidesPerGroup,s=o+a*b/C,n.css({"-webkit-box-ordinal-group":s,"-moz-box-ordinal-group":s,"-ms-flex-order":s,"-webkit-order":s,order:s})}else"column"===e.slidesPerColumnFill?(o=Math.floor(i/C),a=i-o*C,(o>P||o===P&&a===C-1)&&(a+=1,a>=C&&(a=0,o+=1))):(a=Math.floor(i/k),o=i-a*k);n.css("margin-"+(t.isHorizontal()?"top":"left"),0!==a&&e.spaceBetween&&e.spaceBetween+"px")}if("none"!==n.css("display")){if("auto"===e.slidesPerView){const i=d.getComputedStyle(n[0],null),s=n[0].style.transform,o=n[0].style.webkitTransform;if(s&&(n[0].style.transform="none"),o&&(n[0].style.webkitTransform="none"),e.roundLengths)w=t.isHorizontal()?n.outerWidth(!0):n.outerHeight(!0);else if(t.isHorizontal()){const t=parseFloat(i.getPropertyValue("width")),e=parseFloat(i.getPropertyValue("padding-left")),s=parseFloat(i.getPropertyValue("padding-right")),n=parseFloat(i.getPropertyValue("margin-left")),o=parseFloat(i.getPropertyValue("margin-right")),a=i.getPropertyValue("box-sizing");w=a&&"border-box"===a?t+n+o:t+e+s+n+o}else{const t=parseFloat(i.getPropertyValue("height")),e=parseFloat(i.getPropertyValue("padding-top")),s=parseFloat(i.getPropertyValue("padding-bottom")),n=parseFloat(i.getPropertyValue("margin-top")),o=parseFloat(i.getPropertyValue("margin-bottom")),a=i.getPropertyValue("box-sizing");w=a&&"border-box"===a?t+n+o:t+e+s+n+o}s&&(n[0].style.transform=s),o&&(n[0].style.webkitTransform=o),e.roundLengths&&(w=Math.floor(w))}else w=(s-(e.slidesPerView-1)*x)/e.slidesPerView,e.roundLengths&&(w=Math.floor(w)),l[i]&&(t.isHorizontal()?l[i].style.width=w+"px":l[i].style.height=w+"px");l[i]&&(l[i].swiperSlideSize=w),p.push(w),e.centeredSlides?(E=E+w/2+T/2+x,0===T&&0!==i&&(E=E-s/2-x),0===i&&(E=E-s/2-x),Math.abs(E)<.001&&(E=0),e.roundLengths&&(E=Math.floor(E)),S%e.slidesPerGroup==0&&u.push(E),c.push(E)):(e.roundLengths&&(E=Math.floor(E)),(S-Math.min(t.params.slidesPerGroupSkip,S))%t.params.slidesPerGroup==0&&u.push(E),c.push(E),E=E+w+x),t.virtualSize+=w+x,T=w,S+=1}}let M;if(t.virtualSize=Math.max(t.virtualSize,s)+v,n&&o&&("slide"===e.effect||"coverflow"===e.effect)&&i.css({width:t.virtualSize+e.spaceBetween+"px"}),e.setWrapperSize&&(t.isHorizontal()?i.css({width:t.virtualSize+e.spaceBetween+"px"}):i.css({height:t.virtualSize+e.spaceBetween+"px"})),e.slidesPerColumn>1&&(t.virtualSize=(w+e.spaceBetween)*b,t.virtualSize=Math.ceil(t.virtualSize/e.slidesPerColumn)-e.spaceBetween,t.isHorizontal()?i.css({width:t.virtualSize+e.spaceBetween+"px"}):i.css({height:t.virtualSize+e.spaceBetween+"px"}),e.centeredSlides)){M=[];for(let i=0;i<u.length;i+=1){let s=u[i];e.roundLengths&&(s=Math.floor(s)),u[i]<t.virtualSize+u[0]&&M.push(s)}u=M}if(!e.centeredSlides){M=[];for(let i=0;i<u.length;i+=1){let n=u[i];e.roundLengths&&(n=Math.floor(n)),u[i]<=t.virtualSize-s&&M.push(n)}u=M,Math.floor(t.virtualSize-s)-Math.floor(u[u.length-1])>1&&u.push(t.virtualSize-s)}if(0===u.length&&(u=[0]),0!==e.spaceBetween&&(t.isHorizontal()?n?l.filter(m).css({marginLeft:x+"px"}):l.filter(m).css({marginRight:x+"px"}):l.filter(m).css({marginBottom:x+"px"}
1)),e.centeredSlides&&e.centeredSlidesBounds){let t=0;p.forEach(i=>{t+=i+(e.spaceBetween?e.spaceBetween:0)}),t-=e.spaceBetween;const i=t-s;u=u.map(t=>t<0?-f:t>i?i+v:t)}if(e.centerInsufficientSlides){let t=0;if(p.forEach(i=>{t+=i+(e.spaceBetween?e.spaceBetween:0)}),t-=e.spaceBetween,t<s){const e=(s-t)/2;u.forEach((t,i)=>{u[i]=t-e}),c.forEach((t,i)=>{c[i]=t+e})}}g.extend(t,{slides:l,snapGrid:u,slidesGrid:c,slidesSizesGrid:p}),h!==r&&t.emit("slidesLengthChange"),u.length!==_&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),c.length!==y&&t.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&t.updateSlidesOffset()},updateAutoHeight:function(t){const e=this,i=[];let s,n=0;if("number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed),"auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)e.visibleSlides.each((t,e)=>{i.push(e)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const t=e.activeIndex+s;if(t>e.slides.length)break;i.push(e.slides.eq(t)[0])}else i.push(e.slides.eq(e.activeIndex)[0]);for(s=0;s<i.length;s+=1)if(void 0!==i[s]){const t=i[s].offsetHeight;n=t>n?t:n}n&&e.$wrapperEl.css("height",n+"px")},updateSlidesOffset:function(){const t=this,e=t.slides;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=t.isHorizontal()?e[i].offsetLeft:e[i].offsetTop},updateSlidesProgress:function(t=this&&this.translate||0){const e=this,i=e.params,{slides:s,rtlTranslate:n}=e;if(0===s.length)return;void 0===s[0].swiperSlideOffset&&e.updateSlidesOffset();let o=-t;n&&(o=t),s.removeClass(i.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let t=0;t<s.length;t+=1){const a=s[t],r=(o+(i.centeredSlides?e.minTranslate():0)-a.swiperSlideOffset)/(a.swiperSlideSize+i.spaceBetween);if(i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight){const n=-(o-a.swiperSlideOffset),r=n+e.slidesSizesGrid[t];(n>=0&&n<e.size-1||r>1&&r<=e.size||n<=0&&r>=e.size)&&(e.visibleSlides.push(a),e.visibleSlidesIndexes.push(t),s.eq(t).addClass(i.slideVisibleClass))}a.progress=n?-r:r}e.visibleSlides=p(e.visibleSlides)},updateProgress:function(t){const e=this;if(void 0===t){const i=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*i||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:o,isEnd:a}=e;const r=o,l=a;0===s?(n=0,o=!0,a=!0):(n=(t-e.minTranslate())/s,o=n<=0,a=n>=1),g.extend(e,{progress:n,isBeginning:o,isEnd:a}),(i.watchSlidesProgress||i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),o&&!r&&e.emit("reachBeginning toEdge"),a&&!l&&e.emit("reachEnd toEdge"),(r&&!o||l&&!a)&&e.emit("fromEdge"),e.emit("progress",n)},updateSlidesClasses:function(){const t=this,{slides:e,params:i,$wrapperEl:s,activeIndex:n,realIndex:o}=t,a=t.virtual&&i.virtual.enabled;let r;e.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),r=a?t.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${n}"]`):e.eq(n),r.addClass(i.slideActiveClass),i.loop&&(r.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${o}"]`).addClass(i.slideDuplicateActiveClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${o}"]`).addClass(i.slideDuplicateActiveClass));let l=r.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=e.eq(0),l.addClass(i.slideNextClass));let h=r.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===h.length&&(h=e.eq(-1),h.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),h.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass))},updateActiveIndex:function(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:s,snapGrid:n,params:o,activeIndex:a,realIndex:r,snapIndex:l}=e;let h,u=t;if(void 0===u){for(let t=0;t<s.length;t+=1)void 0!==s[t+1]?i>=s[t]&&i<s[t+1]-(s[t+1]-s[t])/2?u=t:i>=s[t]&&i<s[t+1]&&(u=t+1):i>=s[t]&&(u=t);o.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(n.indexOf(i)>=0)h=n.indexOf(i);else{const t=Math.min(o.slidesPerGroupSkip,u);h=t+Math.floor((u-t)/o.slidesPerGroup)}if(h>=n.length&&(h=n.length-1),u===a)return void(h!==l&&(e.snapIndex=h,e.emit("snapIndexChange")));const d=parseInt(e.slides.eq(u).attr("data-swiper-slide-index")||u,10);g.extend(e,{snapIndex:h,realIndex:d,previousIndex:a,activeIndex:u}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),r!==d&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")},updateClickedSlide:function(t){const e=this,i=e.params,s=p(t.target).closest("."+i.slideClass)[0];let n=!1;if(s)for(let t=0;t<e.slides.length;t+=1)e.slides[t]===s&&(n=!0);if(!s||!n)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=s,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(p(s).attr("data-swiper-slide-index"),10):e.clickedIndex=p(s).index(),i.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}};var b={getTranslate:function(t=(this.isHorizontal()?"x":"y")){const{params:e,rtlTranslate:i,translate:s,$wrapperEl:n}=this;if(e.virtualTranslate)return i?-s:s;if(e.cssMode)return s;let o=g.getTranslate(n[0],t);return i&&(o=-o),o||0},setTranslate:function(t,e){const i=this,{rtlTranslate:s,params:n,$wrapperEl:o,wrapperEl:a,progress:r}=i;let l,h=0,u=0;i.isHorizontal()?h=s?-t:t:u=t,n.roundLengths&&(h=Math.floor(h),u=Math.floor(u)),n.cssMode?a[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-h:-u:n.virtualTranslate||o.transform(`translate3d(${h}px, ${u}px, 0px)`),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?h:u;const d=i.maxTranslate()-i.minTranslate();l=0===d?0:(t-i.minTranslate())/d,l!==r&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t=0,e=this.params.speed,i=!0,s=!0,n){const o=this,{params:a,wrapperEl:r}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),h=o.maxTranslate();let u;if(u=s&&t>l?l:s&&t<h?h:t,o.updateProgress(u),a.cssMode){const t=o.isHorizontal();return 0===e?r[t?"scrollLeft":"scrollTop"]=-u:r.scrollTo?r.scrollTo({[t?"left"
vendor: 14,792 bytes, line 1
1:"top"]:-u,behavior:"smooth"}):r[t?"scrollLeft":"scrollTop"]=-u,!0}return 0===e?(o.setTransition(0),o.setTranslate(u),i&&(o.emit("beforeTransitionStart",e,n),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(u),i&&(o.emit("beforeTransitionStart",e,n),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,i&&o.emit("transitionEnd"))}),o.$wrapperEl[0].addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd))),!0}};var w={setTransition:function(t,e){const i=this;i.params.cssMode||i.$wrapperEl.transition(t),i.emit("setTransition",t,e)},transitionStart:function(t=!0,e){const i=this,{activeIndex:s,params:n,previousIndex:o}=i;if(n.cssMode)return;n.autoHeight&&i.updateAutoHeight();let a=e;if(a||(a=s>o?"next":s<o?"prev":"reset"),i.emit("transitionStart"),t&&s!==o){if("reset"===a)return void i.emit("slideResetTransitionStart");i.emit("slideChangeTransitionStart"),"next"===a?i.emit("slideNextTransitionStart"):i.emit("slidePrevTransitionStart")}},transitionEnd:function(t=!0,e){const i=this,{activeIndex:s,previousIndex:n,params:o}=i;if(i.animating=!1,o.cssMode)return;i.setTransition(0);let a=e;if(a||(a=s>n?"next":s<n?"prev":"reset"),i.emit("transitionEnd"),t&&s!==n){if("reset"===a)return void i.emit("slideResetTransitionEnd");i.emit("slideChangeTransitionEnd"),"next"===a?i.emit("slideNextTransitionEnd"):i.emit("slidePrevTransitionEnd")}}};var x={slideTo:function(t=0,e=this.params.speed,i=!0,s){const n=this;let o=t;o<0&&(o=0);const{params:a,snapGrid:r,slidesGrid:l,previousIndex:h,activeIndex:u,rtlTranslate:d,wrapperEl:c}=n;if(n.animating&&a.preventInteractionOnTransition)return!1;const p=Math.min(n.params.slidesPerGroupSkip,o);let m=p+Math.floor((o-p)/n.params.slidesPerGroup);m>=r.length&&(m=r.length-1),(u||a.initialSlide||0)===(h||0)&&i&&n.emit("beforeSlideChangeStart");const f=-r[m];if(n.updateProgress(f),a.normalizeSlideIndex)for(let t=0;t<l.length;t+=1)-Math.floor(100*f)>=Math.floor(100*l[t])&&(o=t);if(n.initialized&&o!==u){if(!n.allowSlideNext&&f<n.translate&&f<n.minTranslate())return!1;if(!n.allowSlidePrev&&f>n.translate&&f>n.maxTranslate()&&(u||0)!==o)return!1}let g;if(g=o>u?"next":o<u?"prev":"reset",d&&-f===n.translate||!d&&f===n.translate)return n.updateActiveIndex(o),a.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),"slide"!==a.effect&&n.setTranslate(f),"reset"!==g&&(n.transitionStart(i,g),n.transitionEnd(i,g)),!1;if(a.cssMode){const t=n.isHorizontal();let i=-f;return d&&(i=c.scrollWidth-c.offsetWidth-i),0===e?c[t?"scrollLeft":"scrollTop"]=i:c.scrollTo?c.scrollTo({[t?"left":"top"]:i,behavior:"smooth"}):c[t?"scrollLeft":"scrollTop"]=i,!0}return 0===e?(n.setTransition(0),n.setTranslate(f),n.updateActiveIndex(o),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,s),n.transitionStart(i,g),n.transitionEnd(i,g)):(n.setTransition(e),n.setTranslate(f),n.updateActiveIndex(o),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,s),n.transitionStart(i,g),n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(t){n&&!n.destroyed&&t.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,g))}),n.$wrapperEl[0].addEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].addEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(t=0,e=this.params.speed,i=!0,s){const n=this;let o=t;return n.params.loop&&(o+=n.loopedSlides),n.slideTo(o,e,i,s)},slideNext:function(t=this.params.speed,e=!0,i){const s=this,{params:n,animating:o}=s,a=s.activeIndex<n.slidesPerGroupSkip?1:n.slidesPerGroup;if(n.loop){if(o)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}return s.slideTo(s.activeIndex+a,t,e,i)},slidePrev:function(t=this.params.speed,e=!0,i){const s=this,{params:n,animating:o,snapGrid:a,slidesGrid:r,rtlTranslate:l}=s;if(n.loop){if(o)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}function h(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const u=h(l?s.translate:-s.translate),d=a.map(t=>h(t));r.map(t=>h(t)),a[d.indexOf(u)];let c,p=a[d.indexOf(u)-1];return void 0===p&&n.cssMode&&a.forEach(t=>{!p&&u>=t&&(p=t)}),void 0!==p&&(c=r.indexOf(p),c<0&&(c=s.activeIndex-1)),s.slideTo(c,t,e,i)},slideReset:function(t=this.params.speed,e=!0,i){return this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(t=this.params.speed,e=!0,i,s=.5){const n=this;let o=n.activeIndex;const a=Math.min(n.params.slidesPerGroupSkip,o),r=a+Math.floor((o-a)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[r]){const t=n.snapGrid[r];l-t>(n.snapGrid[r+1]-t)*s&&(o+=n.params.slidesPerGroup)}else{const t=n.snapGrid[r-1];l-t<=(n.snapGrid[r]-t)*s&&(o-=n.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,n.slidesGrid.length-1),n.slideTo(o,t,e,i)},slideToClickedSlide:function(){const t=this,{params:e,$wrapperEl:i}=t,s="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let n,o=t.clickedIndex;if(e.loop){if(t.animating)return;n=parseInt(p(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?o<t.loopedSlides-s/2||o>t.slides.length-t.loopedSlides+s/2?(t.loopFix(),o=i.children(`.${e.slideClass}[data-swiper-slide-index="${n}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),g.nextTick(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-s?(t.loopFix(),o=i.children(`.${e.slideClass}[data-swiper-slide-index="${n}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),g.nextTick(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}};var E={loopCreate:function(){const t=this,{params:e,$wrapperEl:i}=t;i.children(`.${e.slideClass}.${e.slideDuplicateClass}`).remove();let s=i.children("."+e.slideClass);if(e.loopFillGroupWithBlank){const t=e.slidesPerGroup-s.length%e.slidesPerGroup;if(t!==e.slidesPerGroup){for(let s=0;s<t;s+=1){const t=p(h.createElement("div")).addClass(`${e.slideClass} ${e.slideBlankClass}`);i.append(t)}s=i.children("."+e.slideClass)}}"auto"!==e.slidesPerView||e.loopedSlides||(e.loopedSlides=s.length),t.loopedSlides=Math.ceil(parseFloat(e.loopedSlides||e.slidesPerView,10)),t.loopedSlides+=e.loopAdditionalSlides,t.loopedSlides>s.length&&(t.loopedSlides=s.length);const n=[],o=[];s.each((e,i)=>{const a=p(i);e<t.loopedSlides&&o.push(i),e<s.length&&e>=s.length-t.loopedSlides&&n.push(i),a.attr("data-swiper-slide-index",e)});for(let t=0;t<o.length;t+=1)i.append(p(o[t].cloneNode(!0)).addClass(e.slideDuplicateClass));for(let t=n.length-1;t>=0;t-=1)i.prepend(p(n[t].cloneNode(!0)).addClass(e.slideDuplicateClass))},loopFix:function(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:i,loopedSlides:s,allowSlidePrev:n,allowSlideNext:o,snapGrid:a,rtlTranslate:r}=t;let l;t.allowSlidePrev=!0,t.allowSlideNext=!0;const h=-a[e]-t.getTranslate();if(e<s){l=i.length-3*s+e,l+=s;t.slideTo(l,0,!1,!0)&&0!==h&&t.setTranslate((r?-t.translate:t.translate)-h)}else if(e>=i.length-s){l=-i.length+e+s,l+=s;t.slideTo(l,0,!1,!0)&&0!==h&&t.setTranslate((r?-t.translate:t.translate)-h)}t.allowSlidePrev=n,t.allowSlideNext=o,t.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:t,params:e,slides:i}=this;t.children(`.${e.slideClass}.${e.slideDuplicateClass},.${e.slideClass}.${e.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}};var T={setGrabCursor:function(t){if(v.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)return;const e=this.el;e.style.cursor="move",e.style.cursor=t?"-webkit-grabbing":"-webkit-grab",e.style.cursor=t?"-moz-grabbin":"-moz-grab",e.style.cursor=t?"grabbing":"grab"},unsetGrabCursor:function(){v.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}};var S={appendSlide:function(t){const e=this,{$wrapperEl:i,params:s}=e;if(s.loop&&e.loopDestroy(),"object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&i.append(t[e]);else i.append(t);s.loop&&e.loopCreate(),s.observer&&v.observer||e.update()},prependSlide:function(t){const e=this,{params:i,$wrapperEl:s,activeIndex:n}=e;i.loop&&e.loopDestroy();let o=n+1;if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&s.prepend(t[e]);o=n+t.length}else s.prepend(t);i.loop&&e.loopCreate(),i.observer&&v.observer||e.update(),e.slideTo(o,0,!1)},addSlide:function(t,e){const i=this,{$wrapperEl:s,params:n,activeIndex:o}=i;let a=o;n.loop&&(a-=i.loopedSlides,i.loopDestroy(),i.slides=s.children("."+n.slideClass));const r=i.slides.length;if(t<=0)return void i.prependSlide(e);if(t>=r)return void i.appendSlide(e);let l=a>t?a+1:a;const h=[];for(let e=r-1;e>=t;e-=1){const t=i.slides.eq(e);t.remove(),h.unshift(t)}if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&s.append(e[t]);l=a>t?a+e.length:a}else s.append(e);for(let t=0;t<h.length;t+=1)s.append(h[t]);n.loop&&i.loopCreate(),n.observer&&v.observer||i.update(),n.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)},removeSlide:function(t){const e=this,{params:i,$wrapperEl:s,activeIndex:n}=e;let o=n;i.loop&&(o-=e.loopedSlides,e.loopDestroy(),e.slides=s.children("."+i.slideClass));let a,r=o;if("object"==typeof t&&"length"in t){for(let i=0;i<t.length;i+=1)a=t[i],e.slides[a]&&e.slides.eq(a).remove(),a<r&&(r-=1);r=Math.max(r,0)}else a=t,e.slides[a]&&e.slides.eq(a).remove(),a<r&&(r-=1),r=Math.max(r,0);i.loop&&e.loopCreate(),i.observer&&v.observer||e.update(),i.loop?e.slideTo(r+e.loopedSlides,0,!1):e.slideTo(r,0,!1)},removeAllSlides:function(){const t=this,e=[];for(let i=0;i<t.slides.length;i+=1)e.push(i);t.removeSlide(e)}};const C=function(){const t=d.navigator.platform,e=d.navigator.userAgent,i={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!d.cordova&&!d.phonegap),phonegap:!(!d.cordova&&!d.phonegap),electron:!1},s=d.screen.width,n=d.screen.height,o=e.match(/(Android);?[\s\/]+([\d.]+)?/);let a=e.match(/(iPad).*OS\s([\d_]+)/);const r=e.match(/(iPod)(.*OS\s([\d_]+))?/),l=!a&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0,u=e.indexOf("Edge/")>=0,c=e.indexOf("Gecko/")>=0&&e.indexOf("Firefox/")>=0,p="Win32"===t,m=e.toLowerCase().indexOf("electron")>=0;let f="MacIntel"===t;return!a&&f&&v.touch&&(1024===s&&1366===n||834===s&&1194===n||834===s&&1112===n||768===s&&1024===n)&&(a=e.match(/(Version)\/([\d.]+)/),f=!1),i.ie=h,i.edge=u,i.firefox=c,o&&!p&&(i.os="android",i.osVersion=o[2],i.android=!0,i.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(a||l||r)&&(i.os="ios",i.ios=!0),l&&!r&&(i.osVersion=l[2].replace(/_/g,"."),i.iphone=!0),a&&(i.osVersion=a[2].replace(/_/g,"."),i.ipad=!0),r&&(i.osVersion=r[3]?r[3].replace(/_/g,"."):null,i.ipod=!0),i.ios&&i.osVersion&&e.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),i.webView=!(!(l||a||r)||!e.match(/.*AppleWebKit(?!.*Safari)/i)&&!d.navigator.standalone)||d.matchMedia&&d.matchMedia("(display-mode: standalone)").matches,i.webview=i.webView,i.standalone=i.webView,i.desktop=!(i.ios||i.android)||m,i.desktop&&(i.electron=m,i.macos=f,i.windows=p,i.macos&&(i.os="macos"),i.windows&&(i.os="windows")),i.pixelRatio=d.devicePixelRatio||1,i}();function k(t){const e=this,i=e.touchEventsData,{params:s,touches:n}=e;if(e.animating&&s.preventInteractionOnTransition)return;let o=t;o.originalEvent&&(o=o.originalEvent);const a=p(o.target);if("wrapper"===s.touchEventsTarget&&!a.closest(e.wrapperEl).length)return;if(i.isTouchEvent="touchstart"===o.type,!i.isTouchEvent&&"which"in o&&3===o.which)return;if(!i.isTouchEvent&&"button"in o&&o.button>0)return;if(i.isTouched&&i.isMoved)return;if(s.noSwiping&&a.closest(s.noSwipingSelector?s.noSwipingSelector:"."+s.noSwipingClass)[0])return void(e.allowClick=!0);if(s.swipeHandler&&!a.closest(s.swipeHandler)[0])return;n.currentX="touchstart"===o.type?o.targetTouches[0].pageX:o.pageX,n.currentY="touchstart"===o.type?o.targetTouches[0].pageY:o.pageY;const r=n.currentX,l=n.currentY,u=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,c=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(!u||!(r<=c||r>=d.screen.width-c)){if(g.extend(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),n.startX=r,n.startY=l,i.touchStartTime=g.now(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==o.type){let t=!0;a.is(i.formElements)&&(t=!1),h.activeElement&&p(h.activeElement).is(i.formElements)&&h.activeElement!==a[0]&&h.activeElement.blur();const n=t&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||n)&&o.preventDefault()}e.emit("touchStart",o)}}function P(t){const e=this,i=e.touchEventsData,{params:s,touches:n,rtlTranslate:o}=e;let a=t;if(a.originalEvent&&(a=a.originalEvent),!i.isTouched)return void(i.startMoving&&i.isScrolling&&e.emit("touchMoveOpposite",a));if(i.isTouchEvent&&"touchmove"!==a.type)return;const r="touchmove"===a.type&&a.targetTouches&&(a.targetTouches[0]||a.changedTouches[0]),l="touchmove"===a.type?r.pageX:a.pageX,u="touchmove"===a.type?r.pageY:a.pageY;if(a.preventedByNestedSwiper)return n.startX=l,void(n.startY=u);if(!e.allowTouchMove)return e.allowClick=!1,void(i.isTouched&&(g.extend(n,{startX:l,startY:u,currentX:l,currentY:u}),i.touchStartTime=g.now()));if(i.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop)if(e.isVertical()){if(u<n.startY&&e.translate<=e.maxTranslate()||u>n.startY&&e.translate>=e.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(l<n.startX&&e.translate<=e.maxTranslate()||l>n.startX&&e.translate>=e.minTranslate())return;if(i.isTouchEvent&&h.activeElement&&a.target===h.activeElement&&p(a.target).is(i.formElements))return i.isMoved=!0,void(e.allowClick=!1);if(i.allowTouchCallbacks&&e.emit("touchMove",a),a.targetTouches&&a.targetTouches.length>1)return;n.currentX=l,n.currentY=u;const d=n.currentX-n.startX,c=n.currentY-n.startY;if(e.params.threshold&&Math.sqrt(d**2+c**2)<e.params.threshold)return;if(void 0===i.isScrolling){let t;e.isHorizontal()&&n.currentY===n.startY||e.isVertical()&&n.currentX===n.startX?i.isScrolling=!1:d*d+c*c>
vendor: 1,650 bytes, line 1
1=25&&(t=180*Math.atan2(Math.abs(c),Math.abs(d))/Math.PI,i.isScrolling=e.isHorizontal()?t>s.touchAngle:90-t>s.touchAngle)}if(i.isScrolling&&e.emit("touchMoveOpposite",a),void 0===i.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(i.startMoving=!0)),i.isScrolling)return void(i.isTouched=!1);if(!i.startMoving)return;e.allowClick=!1,!s.cssMode&&a.cancelable&&a.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&a.stopPropagation(),i.isMoved||(s.loop&&e.loopFix(),i.startTranslate=e.getTranslate(),e.setTransition(0),e.animating&&e.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!s.grabCursor||!0!==e.allowSlideNext&&!0!==e.allowSlidePrev||e.setGrabCursor(!0),e.emit("sliderFirstMove",a)),e.emit("sliderMove",a),i.isMoved=!0;let m=e.isHorizontal()?d:c;n.diff=m,m*=s.touchRatio,o&&(m=-m),e.swipeDirection=m>0?"prev":"next",i.currentTranslate=m+i.startTranslate;let f=!0,v=s.resistanceRatio;if(s.touchReleaseOnEdges&&(v=0),m>0&&i.currentTranslate>e.minTranslate()?(f=!1,s.resistance&&(i.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+i.startTranslate+m)**v)):m<0&&i.currentTranslate<e.maxTranslate()&&(f=!1,s.resistance&&(i.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-i.startTranslate-m)**v)),f&&(a.preventedByNestedSwiper=!0),!e.allowSlideNext&&"next"===e.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!e.allowSlidePrev&&"prev"===e.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),s.threshold>0){if(!(Math.abs(m)>s.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);
1if(!i.allowThresholdMove)return i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,void(n.diff=e.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}s.followFinger&&!s.cssMode&&((s.freeMode||s.watchSlidesProgress||s.watchSlidesVisibility)&&(e.updateActiveIndex(),e.updateSlidesClasses()),s.freeMode&&(0===i.velocities.length&&i.velocities.push({position:n[e.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:n[e.isHorizontal()?"currentX":"currentY"],time:g.now()})),e.updateProgress(i.currentTranslate),e.setTranslate(i.currentTranslate))}function M(t){const e=this,i=e.touchEventsData,{params:s,touches:n,rtlTranslate:o,$wrapperEl:a,slidesGrid:r,snapGrid:l}=e;let h=t;if(h.originalEvent&&(h=h.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",h),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const u=g.now(),d=u-i.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(h),e.emit("tap click",h),d<300&&u-i.lastClickTime<300&&e.emit("doubleTap doubleClick",h)),i.lastClickTime=g.now(),g.nextTick(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||0===n.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let c;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,c=s.followFinger?o?e.translate:-e.translate:-i.currentTranslate,s.cssMode)return;if(s.freeMode){if(c<-e.minTranslate())return void e.slideTo(e.activeIndex);if(c>-e.maxTranslate())return void(e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1));if(s.freeModeMomentum){if(i.velocities.length>1){const t=i.velocities.pop(),n=i.velocities.pop(),o=t.position-n.position,a=t.time-n.time;e.velocity=o/a,e.velocity/=2,Math.abs(e.velocity)<s.freeModeMinimumVelocity&&(e.velocity=0),(a>150||g.now()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=s.freeModeMomentumVelocityRatio,i.velocities.length=0;let t=1e3*s.freeModeMomentumRatio;const n=e.velocity*t;let r=e.translate+n;o&&(r=-r);let h,u=!1;const d=20*Math.abs(e.velocity)*s.freeModeMomentumBounceRatio;let c;if(r<e.maxTranslate())s.freeModeMomentumBounce?(r+e.maxTranslate()<-d&&(r=e.maxTranslate()-d),h=e.maxTranslate(),u=!0,i.allowMomentumBounce=!0):r=e.maxTranslate(),s.loop&&s.centeredSlides&&(c=!0);else if(r>e.minTranslate())s.freeModeMomentumBounce?(r-e.minTranslate()>d&&(r=e.minTranslate()+d),h=e.minTranslate(),u=!0,i.allowMomentumBounce=!0):r=e.minTranslate(),s.loop&&s.centeredSlides&&(c=!0);else if(s.freeModeSticky){let t;for(let e=0;e<l.length;e+=1)if(l[e]>-r){t=e;break}r=Math.abs(l[t]-r)<Math.abs(l[t-1]-r)||"next"===e.swipeDirection?l[t]:l[t-1],r=-r}if(c&&e.once("transitionEnd",()=>{e.loopFix()}),0!==e.velocity){if(t=o?Math.abs((-r-e.translate)/e.velocity):Math.abs((r-e.translate)/e.velocity),s.freeModeSticky){const i=Math.abs((o?-r:r)-e.translate),n=e.slidesSizesGrid[e.activeIndex];t=i<n?s.speed:i<2*n?1.5*s.speed:2.5*s.speed}}else if(s.freeModeSticky)return void e.slideToClosest();s.freeModeMomentumBounce&&u?(e.updateProgress(h),e.setTransition(t),e.setTranslate(r),e.transitionStart(!0,e.swipeDirection),e.animating=!0,a.transitionEnd(()=>{e&&!e.destroyed&&i.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(s.speed),setTimeout(()=>{e.setTranslate(h),a.transitionEnd(()=>{e&&!e.destroyed&&e.transitionEnd()})},0))})):e.velocity?(e.updateProgress(r),e.setTransition(t),e.setTranslate(r),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,a.transitionEnd(()=>{e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(r),e.updateActiveIndex(),e.updateSlidesClasses()}else if(s.freeModeSticky)return void e.slideToClosest();return void((!s.freeModeMomentum||d>=s.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses()))}let p=0,m=e.slidesSizesGrid[0];for(let t=0;t<r.length;t+=t<s.slidesPerGroupSkip?1:s.slidesPerGroup){const e=t<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==r[t+e]?c>=r[t]&&c<r[t+e]&&(p=t,m=r[t+e]-r[t]):c>=r[t]&&(p=t,m=r[r.length-1]-r[r.length-2])}const f=(c-r[p])/m,v=p<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(d>s.longSwipesMs){if(!s.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(f>=s.longSwipesRatio?e.slideTo(p+v):e.slideTo(p)),"prev"===e.swipeDirection&&(f>1-s.longSwipesRatio?e.slideTo(p+v):e.slideTo(p))}else{if(!s.shortSwipes)return void e.slideTo(e.activeIndex);e.navigation&&(h.target===e.navigation.nextEl||h.target===e.navigation.prevEl)?h.target===e.navigation.nextEl?e.slideTo(p+v):e.slideTo(p):("next"===e.swipeDirection&&e.slideTo(p+v),"prev"===e.swipeDirection&&e.slideTo(p))}}function L(){const t=this,{params:e,el:i}=t;if(i&&0===i.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:o}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=n,t.allowSlideNext=s,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function A(t){const e=this;e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function B(){const t=this,{wrapperEl:e,rtlTranslate:i}=t;let s;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=i?e.
1scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:t.translate=-e.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const n=t.maxTranslate()-t.minTranslate();s=0===n?0:(t.translate-t.minTranslate())/n,s!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let z=!1;function I(){}var O={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0};const D={update:y,translate:b,transition:w,slide:x,loop:E,grabCursor:T,manipulation:S,events:{attachEvents:function(){const t=this,{params:e,touchEvents:i,el:s,wrapperEl:n}=t;t.onTouchStart=k.bind(t),t.onTouchMove=P.bind(t),t.onTouchEnd=M.bind(t),e.cssMode&&(t.onScroll=B.bind(t)),t.onClick=A.bind(t);const o=!!e.nested;if(!v.touch&&v.pointerEvents)s.addEventListener(i.start,t.onTouchStart,!1),h.addEventListener(i.move,t.onTouchMove,o),h.addEventListener(i.end,t.onTouchEnd,!1);else{if(v.touch){const n=!("touchstart"!==i.start||!v.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};s.addEventListener(i.start,t.onTouchStart,n),s.addEventListener(i.move,t.onTouchMove,v.passiveListener?{passive:!1,capture:o}:o),s.addEventListener(i.end,t.onTouchEnd,n),i.cancel&&s.addEventListener(i.cancel,t.onTouchEnd,n),z||(h.addEventListener("touchstart",I),z=!0)}(e.simulateTouch&&!C.ios&&!C.android||e.simulateTouch&&!v.touch&&C.ios)&&(s.addEventListener("mousedown",t.onTouchStart,!1),h.addEventListener("mousemove",t.onTouchMove,o),h.addEventListener("mouseup",t.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&s.addEventListener("click",t.onClick,!0),e.cssMode&&n.addEventListener("scroll",t.onScroll),e.updateOnWindowResize?t.on(C.ios||C.android?"resize orientationchange observerUpdate":"resize observerUpdate",L,!0):t.on("observerUpdate",L,!0)},detachEvents:function(){const t=this,{params:e,touchEvents:i,el:s,wrapperEl:n}=t,o=!!e.nested;if(!v.touch&&v.pointerEvents)s.removeEventListener(i.start,t.onTouchStart,!1),h.removeEventListener(i.move,t.onTouchMove,o),h.removeEventListener(i.end,t.onTouchEnd,!1);else{if(v.touch){const n=!("onTouchStart"!==i.start||!v.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};s.removeEventListener(i.start,t.onTouchStart,n),s.removeEventListener(i.move,t.onTouchMove,o),s.removeEventListener(i.end,t.onTouchEnd,n),i.cancel&&s.removeEventListener(i.cancel,t.onTouchEnd,n)}(e.simulateTouch&&!C.ios&&!C.android||e.simulateTouch&&!v.touch&&C.ios)&&(s.removeEventListener("mousedown",t.onTouchStart,!1),h.removeEventListener("mousemove",t.onTouchMove,o),h.removeEventListener("mouseup",t.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&s.removeEventListener("click",t.onClick,!0),e.cssMode&&n.removeEventListener("scroll",t.onScroll),t.off(C.ios||C.android?"resize orientationchange observerUpdate":"resize observerUpdate",L)}},breakpoints:{setBreakpoint:function(){const t=this,{activeIndex:e,initialized:i,loopedSlides:s=0,params:n,$el:o}=t,a=n.breakpoints;if(!a||a&&0===Object.keys(a).length)return;
1const r=t.getBreakpoint(a);if(r&&t.currentBreakpoint!==r){const l=r in a?a[r]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(t=>{const e=l[t];void 0!==e&&(l[t]="slidesPerView"!==t||"AUTO"!==e&&"auto"!==e?"slidesPerView"===t?parseFloat(e):parseInt(e,10):"auto")});const h=l||t.originalParams,u=n.slidesPerColumn>1,d=h.slidesPerColumn>1;u&&!d?o.removeClass(`${n.containerModifierClass}multirow ${n.containerModifierClass}multirow-column`):!u&&d&&(o.addClass(n.containerModifierClass+"multirow"),"column"===h.slidesPerColumnFill&&o.addClass(n.containerModifierClass+"multirow-column"));const c=h.direction&&h.direction!==n.direction,p=n.loop&&(h.slidesPerView!==n.slidesPerView||c);c&&i&&t.changeDirection(),g.extend(t.params,h),g.extend(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),t.currentBreakpoint=r,p&&i&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-s+t.loopedSlides,0,!1)),t.emit("breakpoint",h)}},getBreakpoint:function(t){if(!t)return;let e=!1;const i=Object.keys(t).map(t=>{if("string"==typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1));return{value:d.innerHeight*e,point:t}}return{value:t,point:t}});i.sort((t,e)=>parseInt(t.value,10)-parseInt(e.value,10));for(let t=0;t<i.length;t+=1){const{point:s,value:n}=i[t];n<=d.innerWidth&&(e=s)}return e||"max"}},checkOverflow:{checkOverflow:function(){const t=this,e=t.params,i=t.isLocked,s=t.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(t.slides.length-1)+t.slides[0].offsetWidth*t.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&s?t.isLocked=s<=t.size:t.isLocked=1===t.snapGrid.length,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,i!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),i&&i!==t.isLocked&&(t.isEnd=!1,t.navigation&&t.navigation.update())}},classes:{addClasses:function(){const{classNames:t,params:e,rtl:i,$el:s}=this,n=[];n.push("initialized"),n.push(e.direction),e.freeMode&&n.push("free-mode"),e.autoHeight&&n.push("autoheight"),i&&n.push("rtl"),e.slidesPerColumn>1&&(n.push("multirow"),"column"===e.slidesPerColumnFill&&n.push("multirow-column")),C.android&&n.push("android"),C.ios&&n.push("ios"),e.cssMode&&n.push("css-mode"),n.forEach(i=>{t.push(e.containerModifierClass+i)}),s.addClass(t.join(" "))},removeClasses:function(){const{$el:t,classNames:e}=this;t.removeClass(e.join(" "))}},images:{loadImage:function(t,e,i,s,n,o){let a;function r(){o&&o()}p(t).parent("picture")[0]||t.complete&&n?r():e?(a=new d.Image,a.onload=r,a.onerror=r,s&&(a.sizes=s),i&&(a.srcset=i),e&&(a.src=e)):r()},preloadImages:function(){const t=this;function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(let i=0;i<t.imagesToLoad.length;i+=1){const s=t.imagesToLoad[i];t.loadImage(s,s.currentSrc||s.getAttribute("src"),s.srcset||s.getAttribute("srcset"),s.sizes||s.getAttribute("sizes"),!0,e)}}}},F={};class N extends _{constructor(...t){let e,i;1===t.length&&t[0].constructor&&t[0].constructor===Object?i=t[0]:[e,i]=t,i||(i={}),i=g.extend({},i),e&&!i.el&&(i.el=e),super(i),Object.keys(D).forEach(t=>{Object.keys(D[t]).forEach(e=>{N.prototype[e]||(N.prototype[e]=D[t][e])})});const s=this;void 0===s.modules&&(s.modules={}),Object.keys(s.modules).forEach(t=>{const e=s.modules[t];if(e.params){const t=Object.keys(e.params)[0],s=e.params[t];if("object"!=typeof s||null===s)return;if(!(t in i)||!("enabled"in s))return;!0===i[t]&&(i[t]={enabled:!0}),"object"!=typeof i[t]||"enabled"in i[t]||(i[t].enabled=!0),i[t]||(i[t]={enabled:!1})}});const n=g.extend({},O);s.useModulesParams(n),s.params=g.extend({},n,F,i),s.originalParams=g.extend({},s.params),s.passedParams=g.extend({},i),s.$=p;const o=p(s.params.el);if(e=o[0],!e)return;if(o.length>1){const t=[];return o.each((e,s)=>{const n=g.extend({},i,{el:s});t.push(new N(n))}),t}let a;return e.swiper=s,o.data("swiper",s),e&&e.shadowRoot&&e.shadowRoot.querySelector?(a=p(e.shadowRoot.querySelector("."+s.params.wrapperClass)),a.children=t=>o.children(t)):a=o.children("."+s.params.wrapperClass),g.extend(s,{$el:o,el:e,$wrapperEl:a,wrapperEl:a[0],classNames:[],slides:p(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.params.direction,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===o.css("direction"),rtlTranslate:"horizontal"===s.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===o.css("direction")),wrongRTL:"-webkit-box"===a.css("display"),activeIndex:0,realIndex:0,isBeg
1inning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEvents:function(){const t=["touchstart","touchmove","touchend","touchcancel"];let e=["mousedown","mousemove","mouseup"];return v.pointerEvents&&(e=["pointerdown","pointermove","pointerup"]),s.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]},s.touchEventsDesktop={start:e[0],move:e[1],end:e[2]},v.touch||!s.params.simulateTouch?s.touchEventsTouch:s.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:g.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.useModules(),s.params.init&&s.init(),s}slidesPerViewDynamic(){const{params:t,slides:e,slidesGrid:i,size:s,activeIndex:n}=this;let o=1;if(t.centeredSlides){let t,i=e[n].swiperSlideSize;for(let a=n+1;a<e.length;a+=1)e[a]&&!t&&(i+=e[a].swiperSlideSize,o+=1,i>s&&(t=!0));for(let a=n-1;a>=0;a-=1)e[a]&&!t&&(i+=e[a].swiperSlideSize,o+=1,i>s&&(t=!0))}else for(let t=n+1;t<e.length;t+=1)i[t]-i[n]<s&&(o+=1);return o}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:i}=t;function s(){const e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}let n;i.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode?(s(),t.params.autoHeight&&t.updateAutoHeight()):(n=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),n||s()),i.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e=!0){const i=this,s=i.params.direction;return t||(t="horizontal"===s?"vertical":"horizontal"),t===s||"horizontal"!==t&&"vertical"!==t||(i.$el.removeClass(`${i.params.containerModifierClass}${s}`).addClass(`${i.params.containerModifierClass}${t}`),i.params.direction=t,i.slides.each((e,i)=>{"vertical"===t?i.style.width="":i.style.height=""}),i.emit("changeDirection"),e&&i.update()),i}init(){const t=this;t.initialized||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit),t.attachEvents(),t.initialized=!0,t.emit("init"))}destroy(t=!0,e=!0){const i=this,{params:s,$el:n,$wrapperEl:o,slides:a}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),e&&(i.removeClasses(),n.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(t=>{i.off(t)}),!1!==t&&(i.$el[0].swiper=null,i.$el.data("swiper",null),g.deleteProps(i)),i.destroyed=!0),null}static extendDefaults(t){g.extend(F,t)}static get extendedDefaults(){return F}static get defaults(){return O}static get Class(){return _}static get $(){return p}}var R={name:"device",proto:{device:C},static:{device:C}},Z={name:"support",proto:{support:v},static:{support:v}};const V={isEdge:!!d.navigator.userAgent.match(/Edge/g),isSafari:function(){const t=d.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}
1(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(d.navigator.userAgent)};var j={name:"browser",proto:{browser:V},static:{browser:V}},H={name:"resize",create(){const t=this;g.extend(t,{resize:{resizeHandler(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init(){d.addEventListener("resize",this.resize.resizeHandler),d.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy(){d.removeEventListener("resize",this.resize.resizeHandler),d.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}};const q={func:d.MutationObserver||d.WebkitMutationObserver,attach(t,e={}){const i=this,s=new(0,q.func)(t=>{if(1===t.length)return void i.emit("observerUpdate",t[0]);const e=function(){i.emit("observerUpdate",t[0])};d.requestAnimationFrame?d.requestAnimationFrame(e):d.setTimeout(e,0)});s.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),i.observer.observers.push(s)},init(){const t=this;if(v.observer&&t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let i=0;i<e.length;i+=1)t.observer.attach(e[i])}t.observer.attach(t.$el[0],{childList:t.params.observeSlideChildren}),t.observer.attach(t.$wrapperEl[0],{attributes:!1})}},destroy(){this.observer.observers.forEach(t=>{t.disconnect()}),this.observer.observers=[]}};var W={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){g.extend(this,{observer:{init:q.init.bind(this),attach:q.attach.bind(this),destroy:q.destroy.bind(this),observers:[]}})},on:{init(){this.observer.init()},destroy(){this.observer.destroy()}}};const G={update(t){const e=this,{slidesPerView:i,slidesPerGroup:s,centeredSlides:n}=e.params,{addSlidesBefore:o,addSlidesAfter:a}=e.params.virtual,{from:r,to:l,slides:h,slidesGrid:u,renderSlide:d,offset:c}=e.virtual;e.updateActiveIndex();const p=e.activeIndex||0;let m,f,v;m=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",n?(f=Math.floor(i/2)+s+o,v=Math.floor(i/2)+s+a):(f=i+(s-1)+o,v=s+a);const _=Math.max((p||0)-v,0),y=Math.min((p||0)+f,h.length-1),b=(e.slidesGrid[_]||0)-(e.slidesGrid[0]||0);function w(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(g.extend(e.virtual,{from:_,to:y,offset:b,slidesGrid:e.slidesGrid}),r===_&&l===y&&!t)return e.slidesGrid!==u&&b!==c&&e.slides.css(m,b+"px"),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:b,from:_,to:y,slides:function(){const t=[];for(let e=_;e<=y;e+=1)t.push(h[e]);return t}()}),void w();const x=[],E=[];if(t)e.$wrapperEl.find("."+e.params.slideClass).remove();else for(let t=r;t<=l;t+=1)(t<_||t>y)&&e.$wrapperEl.find(`.${e.params.slideClass}[data-swiper-slide-index="${t}"]`).remove();for(let e=0;e<h.length;e+=1)e>=_&&e<=y&&(void 0===l||t?E.push(e):(e>l&&E.push(e),e<r&&x.push(e)));E.forEach(t=>{e.$wrapperEl.append(d(h[t],t))}),x.sort((t,e)=>e-t).forEach(t=>{e.$wrapperEl.prepend(d(h[t],t))}),e.$wrapperEl.children(".swiper-slide").css(m,b+"px"),w()},renderSlide(t,e){const i=this,s=i.params.virtual;if(s.cache&&i.virtual.cache[e])return i.virtual.cache[e];const n=s.renderSlide?p(s.renderSlide.call(i,t,e)):p(`<div class="${i.params.slideClass}" data-swiper-slide-index="${e}">${t}</div>`);return n.attr("data-swiper-slide-index")||n.attr("data-swiper-slide-index",e),s.cache&&(i.virtual.cache[e]=n),n},appendSlide(t){const e=this;if("object"==typeof t&&"length"in t)for(let i=0;i<t.length;i+=1)t[i]&&e.virtual.slides.push(t[i]);else e.virtual.slides.push(t);e.virtual.update(!0)},prependSlide(t){const e=this,i=e.activeIndex;let s=i+1,n=1;if(Array.isArray(t)){for(let i=0;i<t.length;i+=1)t[i]&&e.virtual.slides.unshift(t[i]);s=i+t.length,n=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){const t=e.virtual.cache,i={};Object.keys(t).forEach(e=>{const s=t[e],o=s.attr("data-swiper-slide-index");o&&s.attr("data-swiper-slide-index",parseInt(o,10)+1),i[parseInt(e,10)+n]=s}),e.virtual.cache=i}
1e.virtual.update(!0),e.slideTo(s,0)},removeSlide(t){const e=this;if(null==t)return;let i=e.activeIndex;if(Array.isArray(t))for(let s=t.length-1;s>=0;s-=1)e.virtual.slides.splice(t[s],1),e.params.virtual.cache&&delete e.virtual.cache[t[s]],t[s]<i&&(i-=1),i=Math.max(i,0);else e.virtual.slides.splice(t,1),e.params.virtual.cache&&delete e.virtual.cache[t],t<i&&(i-=1),i=Math.max(i,0);e.virtual.update(!0),e.slideTo(i,0)},removeAllSlides(){const t=this;t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),t.virtual.update(!0),t.slideTo(0,0)}};var Y={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){g.extend(this,{virtual:{update:G.update.bind(this),appendSlide:G.appendSlide.bind(this),prependSlide:G.prependSlide.bind(this),removeSlide:G.removeSlide.bind(this),removeAllSlides:G.removeAllSlides.bind(this),renderSlide:G.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit(){const t=this;if(!t.params.virtual.enabled)return;t.classNames.push(t.params.containerModifierClass+"virtual");const e={watchSlidesProgress:!0};g.extend(t.params,e),g.extend(t.originalParams,e),t.params.initialSlide||t.virtual.update(
1)},setTranslate(){this.params.virtual.enabled&&this.virtual.update()}}};const U={handle(t){const e=this,{rtlTranslate:i}=e;let s=t;s.originalEvent&&(s=s.originalEvent);const n=s.keyCode||s.charCode,o=e.params.keyboard.pageUpDown,a=o&&33===n,r=o&&34===n,l=37===n,u=39===n,c=38===n,p=40===n;if(!e.allowSlideNext&&(e.isHorizontal()&&u||e.isVertical()&&p||r))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&l||e.isVertical()&&c||a))return!1;if(!(s.shiftKey||s.altKey||s.ctrlKey||s.metaKey||h.activeElement&&h.activeElement.nodeName&&("input"===h.activeElement.nodeName.toLowerCase()||"textarea"===h.activeElement.nodeName.toLowerCase()))){if(e.params.keyboard.onlyInViewport&&(a||r||l||u||c||p)){let t=!1;if(e.$el.parents("."+e.params.slideClass).length>0&&0===e.$el.parents("."+e.params.slideActiveClass).length)return;const s=d.innerWidth,n=d.innerHeight,o=e.$el.offset();i&&(o.left-=e.$el[0].scrollLeft);const a=[[o.left,o.top],[o.left+e.width,o.top],[o.left,o.top+e.height],[o.left+e.width,o.top+e.height]];for(let e=0;e<a.length;e+=1){const i=a[e];i[0]>=0&&i[0]<=s&&i[1]>=0&&i[1]<=n&&(t=!0)}if(!t)return}e.isHorizontal()?((a||r||l||u)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),((r||u)&&!i||(a||l)&&i)&&e.slideNext(),((a||l)&&!i||(r||u)&&i)&&e.slidePrev()):((a||r||c||p)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),(r||p)&&e.slideNext(),(a||c)&&e.slidePrev()),e.emit("keyPress",n)}},enable(){this.keyboard.enabled||(p(h).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable(){this.keyboard.enabled&&(p(h).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}};var X={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create(){g.extend(this,{keyboard:{enabled:!1,enable:U.enable.bind(this),disable:U.disable.bind(this),handle:U.handle.bind(this)}})},on:{init(){const t=this;t.params.keyboard.enabled&&t.keyboard.enable()},destroy(){const t=this;t.keyboard.enabled&&t.keyboard.disable()}}};const K={lastScrollTime:g.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:()=>d.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){let t="onwheel"in h;if(!t){const e=h.createElement("div");e.setAttribute("onwheel","return;"),t="function"==typeof e.onwheel}return!t&&h.implementation&&h.implementation.hasFeature&&!0!==h.implementation.hasFeature("","")&&(t=h.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel",normalize(t){let e=0,i=0,s=0,n=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),s=10*e,n=10*i,"deltaY"in t&&(n=t.deltaY),"deltaX"in t&&(s=t.deltaX),t.shiftKey&&!s&&(s=n,n=0),(s||n)&&t.deltaMode&&(1===t.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!e&&(e=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:e,spinY:i,pixelX:s,pixelY:n}},handleMouseEnter(){this.mouseEntered=!0},handleMouseLeave(){this.mouseEntered=!1},handle(t){let e=t;const i=this,s=i.params.mousewheel;i.params.cssMode&&e.preventDefault();let n=i.$el;if("container"!==i.params.mousewheel.eventsTarged&&(n=p(i.params.mousewheel.eventsTarged)),!i.mouseEntered&&!n[0].contains(e.target)&&!s.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);let o=0;const a=i.rtlTranslate?-1:1,r=K.normalize(e);if(s.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(r.pixelX)>Math.abs(r.pixelY)))return!0;o=-r.pixelX*a}else{if(!(Math.abs(r.pixelY)>Math.abs(r.pixelX)))return!0;o=-r.pixelY}else o=Math.abs(r.pixelX)>Math.abs(r.pixelY)?-r.pixelX*a:-r.pixelY;if(0===o)return!0;if(s.invert&&(o=-o),i.params.freeMode){const t={time:g.now(),delta:Math.abs(o),direction:Math.sign(o)},{lastEventBeforeSnap:n}=i.mousewheel,a=n&&t.time<n.time+500&&t.delta<=n.delta&&t.direction===n.direction;if(!a){i.mousewheel.lastEventBeforeSnap=void 0,i.params.loop&&i.loopFix();let n=i.getTranslate()+o*s.sensitivity;const r=i.isBeginning,l=i.isEnd;if(n>=i.minTranslate()&&(n=i.minTranslate()),n<=i.maxTranslate()&&(n=i.maxTranslate()),i.setTransition(0),i.setTranslate(n),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!r&&i.isBeginning||!l&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky){clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0;const e=i.mousewheel.recentWheelEvents;e.length>=15&&e.shift();const s=e.length?e[e.length-1]:void 0,n=e[0];if(e.push(t),s&&(t.delta>s.delta||t.direction!==s.direction))e.splice(0);else if(e.length>=15&&t.time-n.time<500&&n.delta-t.delta>=1&&t.delta<=6){const s=o>0?.8:.2;i.mousewheel.lastEventBeforeSnap=t,e.splice(0),i.mousewheel.timeout=g.nextTick(()=>{i.slideToClosest(i.params.speed,!0,void 0,s)},0)}i.mousewheel.timeout||(i.mousewheel.timeout=g.nextTick(()=>{i.mousewheel.lastEventBeforeSnap=t,e.splice(0),i.slideToClosest(i.params.speed,!0,void 0,.5)},500))}if(a||i.emit("scroll",e),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),n===i.minTranslate()||n===i.maxTranslate())return!0}}
1else{const e={time:g.now(),delta:Math.abs(o),direction:Math.sign(o),raw:t},s=i.mousewheel.recentWheelEvents;s.length>=2&&s.shift();const n=s.length?s[s.length-1]:void 0;if(s.push(e),n?(e.direction!==n.direction||e.delta>n.delta||e.time>n.time+150)&&i.mousewheel.animateSlider(e):i.mousewheel.animateSlider(e),i.mousewheel.releaseScroll(e))return!0}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},animateSlider(t){const e=this;return t.delta>=6&&g.now()-e.mousewheel.lastScrollTime<60||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),e.emit("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),e.emit("scroll",t.raw)),e.mousewheel.lastScrollTime=(new d.Date).getTime(),!1)},releaseScroll(t){const e=this,i=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&i.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&i.releaseOnEdges)return!0;return!1},enable(){const t=this,e=K.event();if(t.params.cssMode)return t.wrapperEl.removeEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(t.mousewheel.enabled)return!1;let i=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(i=p(t.params.mousewheel.eventsTarged)),i.on("mouseenter",t.mousewheel.handleMouseEnter),i.on("mouseleave",t.mousewheel.handleMouseLeave),i.on(e,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable(){const t=this,e=K.event();if(t.params.cssMode)return t.wrapperEl.addEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(!t.mousewheel.enabled)return!1;let i=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(i=p(t.params.mousewheel.eventsTarged)),i.off(e,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}};const J={update(){const t=this,e=t.params.navigation;if(t.params.loop)return;const{$nextEl:i,$prevEl:s}=t.navigation;s&&s.length>0&&(t.isBeginning?s.addClass(e.disabledClass):s.removeClass(e.disabledClass),s[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass)),i&&i.length>0&&(t.isEnd?i.addClass(e.disabledClass):i.removeClass(e.disabledClass),i[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass))},onPrevClick(t){t.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick(t){t.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init(){const t=this,e=t.params.navigation;if(!e.nextEl&&!e.prevEl)return;let i,s;e.nextEl&&(i=p(e.nextEl),t.params.uniqueNavElements&&"string"==typeof e.nextEl&&i.length>1&&1===t.$el.find(e.nextEl).length&&(i=t.$el.find(e.nextEl))),e.prevEl&&(s=p(e.prevEl),t.params.uniqueNavElements&&"string"==typeof e.prevEl&&s.length>1&&1===t.$el.find(e.prevEl).length&&(s=t.$el.find(e.prevEl))),i&&i.length>0&&i.on("click",t.navigation.onNextClick),s&&s.length>0&&s.on("click",t.navigation.onPrevClick),g.extend(t.navigation,{$nextEl:i,nextEl:i&&i[0],$prevEl:s,prevEl:s&&s[0]})},destroy(){const t=this,{$nextEl:e,$prevEl:i}=t.navigation;e&&e.length&&(e.off("click",t.navigation.onNextClick),e.removeClass(t.params.navigation.disabledClass)),i&&i.length&&(i.off("click",t.navigation.onPrevClick),i.removeClass(t.params.navigation.disabledClass))}};const Q={update(){const t=this,e=t.rtl,i=t.params.pagination;if(!i.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length)return;const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,n=t.pagination.$el;let o;const a=t.params.loop?Math.ceil((s-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(o=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),o>s-1-2*t.loopedSlides&&(o-=s-2*t.loopedSlides),o>a-1&&(o-=a),o<0&&"bullets"!==t.params.paginationType&&(o=a+o)):o=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const s=t.pagination.bullets;let a,r,l;if(i.dynamicBullets&&(t.pagination.bulletSize=s.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),n.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=o-t.previousIndex,t.pagination.dynamicBulletIndex>i.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=i.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),a=o-t.pagination.dynamicBulletIndex,r=a+(Math.min(s.length,i.dynamicMainBullets)-1),l=(r+a)/2),s.removeClass(`${i.bulletActiveClass} ${i.bulletActiveClass}-next ${i.bulletActiveClass}-next-next ${i.bulletActiveClass}-prev ${i.bulletActiveClass}-prev-prev ${i.bulletActiveClass}-main`),n.length>1)s.each((t,e)=>{const s=p(e),n=s.index();n===o&&s.addClass(i.bulletActiveClass),i.dynamicBullets&&(n>=a&&n<=r&&s.addClass(i.bulletActiveClass+"-main"),n===a&&s.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),n===r&&s.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next"))});else{const e=s.eq(o),n=e.index();if(e.addClass(i.bulletActiveClass),i.dynamicBullets){const e=s.eq(a),o=s.eq(r);for(let t=a;t<=r;t+=1)s.eq(t).addClass(i.bulletActiveClass+"-main");if(t.params.loop)if(n>=s.length-i.dynamicMainBullets){for(let t=i.dynamicMainBullets;t>=0;t-=1)s.eq(s.length-t).addClass(i.bulletActiveClass+"-main");s.eq(s.length-i.dynamicMainBullets-1).addClass(i.bulletActiveClass+"-prev")}else e.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),o.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next");else e.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),o.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next")}}if(i.dynamicBullets){const n=Math.min(s.length,i.dynamicMainBullets+4),o=(t.pagination.bulletSize*n-t.pagination.bulletSize)/2-l*t.pagination.bulletSize,a=e?"right":"left";s.css(t.isHorizontal()?a:"top",o+"px")}}
1if("fraction"===i.type&&(n.find("."+i.currentClass).text(i.formatFractionCurrent(o+1)),n.find("."+i.totalClass).text(i.formatFractionTotal(a))),"progressbar"===i.type){let e;e=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const s=(o+1)/a;let r=1,l=1;"horizontal"===e?r=s:l=s,n.find("."+i.progressbarFillClass).transform(`translate3d(0,0,0) scaleX(${r}) scaleY(${l})`).transition(t.params.speed)}"custom"===i.type&&i.renderCustom?(n.html(i.renderCustom(t,o+1,a)),t.emit("paginationRender",t,n[0])):t.emit("paginationUpdate",t,n[0]),n[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](i.lockClass)},render(){const t=this,e=t.params.pagination;if(!e.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length)return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,s=t.pagination.$el;let n="";if("bullets"===e.type){const o=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;for(let i=0;i<o;i+=1)e.renderBullet?n+=e.renderBullet.call(t,i,e.bulletClass):n+=`<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`;s.html(n),t.pagination.bullets=s.find("."+e.bulletClass)}"fraction"===e.type&&(n=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`,s.html(n)),"progressbar"===e.type&&(n=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`,s.html(n)),"custom"!==e.type&&t.emit("paginationRender",t.pagination.$el[0])},init(){const t=this,e=t.params.pagination;if(!e.el)return;let i=p(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&(i=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(i.addClass(`${e.modifierClass}${e.type}-dynamic`),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.addClass(e.progressbarOppositeClass),e.clickable&&i.on("click","."+e.bulletClass,(function(e){e.preventDefault();let i=p(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)})),g.extend(t.pagination,{$el:i,el:i[0]}))},destroy(){const t=this.params.pagination;if(!t.el||!this.pagination.el||!this.pagination.$el||0===this.pagination.$el.length)return;const e=this.pagination.$el;e.removeClass(t.hiddenClass),e.removeClass(t.modifierClass+t.type),this.pagination.bullets&&this.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&e.off("click","."+t.bulletClass)}};const tt={setTranslate(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:i,progress:s}=t,{dragSize:n,trackSize:o,$dragEl:a,$el:r}=e,l=t.params.scrollbar;let h=n,u=(o-n)*s;i?(u=-u,u>0?(h=n-u,u=0):-u+n>o&&(h=o+u)):u<0?(h=n+u,u=0):u+n>o&&(h=o-u),t.isHorizontal()?(a.transform(`translate3d(${u}px, 0, 0)`),a[0].style.width=h+"px"):(a.transform(`translate3d(0px, ${u}px, 0)`),a[0].style.height=h+"px"),l.hide&&(clearTimeout(t.scrollbar.timeout),r[0].style.opacity=1,t.scrollbar.timeout=setTimeout(()=>{r[0].style.opacity=0,r.transition(400)},1e3))},setTransition(t){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(t)},updateSize(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:i,$el:s}=e;i[0].style.width="",i[0].style.height="";const n=t.isHorizontal()?s[0].offsetWidth:s[0].offsetHeight,o=t.size/t.virtualSize,a=o*(n/t.size);let r;r="auto"===t.params.scrollbar.dragSize?n*o:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?i[0].style.width=r+"px":i[0].style.height=r+"px",s[0].style.display=o>=1?"none":"",t.params.scrollbar.hide&&(s[0].style.opacity=0),g.extend(e,{trackSize:n,divider:o,moveDivider:a,dragSize:r}),e.$el[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)},getPointerPosition(t){return this.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientX:t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientY:t.clientY},setDragPosition(t){const{scrollbar:e,rtlTranslate:i}=this,{$el:s,dragSize:n,trackSize:o,dragStartPos:a}=e;let r;r=(e.getPointerPosition(t)-s.offset()[this.isHorizontal()?"left":"top"]-(null!==a?a:n/2))/(o-n),r=Math.max(Math.min(r,1),0),i&&(r=1-r);const l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*r;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart(t){const e=this,i=e.params.scrollbar,{scrollbar:s,$wrapperEl:n}=e,{$el:o,$dragEl:a}=s;e.scrollbar.isTouched=!0,e.scrollbar.dragStartPos=t.target===a[0]||t.target===a?s.getPointerPosition(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),n.transition(100),a.transition(100),s.setDragPosition(t),clearTimeout(e.scrollbar.dragTimeout),o.transition(0),i.hide&&o.css("opacity",1),e.params.cssMode&&e.$wrapperEl.css("scroll-snap-type","none"),e.emit("scrollbarDragStart",t)},onDragMove(t){const{scrollbar:e,$wrapperEl:i}=this,{$el:s,$dragEl:n}=e;this.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,e.setDragPosition(t),i.transition(0),s.transition(0),n.transition(0),this.emit
1("scrollbarDragMove",t))},onDragEnd(t){const e=this,i=e.params.scrollbar,{scrollbar:s,$wrapperEl:n}=e,{$el:o}=s;e.scrollbar.isTouched&&(e.scrollbar.isTouched=!1,e.params.cssMode&&(e.$wrapperEl.css("scroll-snap-type",""),n.transition("")),i.hide&&(clearTimeout(e.scrollbar.dragTimeout),e.scrollbar.dragTimeout=g.nextTick(()=>{o.css("opacity",0),o.transition(400)},1e3)),e.emit("scrollbarDragEnd",t),i.snapOnRelease&&e.slideToClosest())},enableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,touchEventsTouch:i,touchEventsDesktop:s,params:n}=t,o=e.$el[0],a=!(!v.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},r=!(!v.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};v.touch?(o.addEventListener(i.start,t.scrollbar.onDragStart,a),o.addEventListener(i.move,t.scrollbar.onDragMove,a),o.addEventListener(i.end,t.scrollbar.onDragEnd,r)):(o.addEventListener(s.start,t.scrollbar.onDragStart,a),h.addEventListener(s.move,t.scrollbar.onDragMove,a),h.addEventListener(s.end,t.scrollbar.onDragEnd,r))},disableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,touchEventsTouch:i,touchEventsDesktop:s,params:n}=t,o=e.$el[0],a=!(!v.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},r=!(!v.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};v.touch?(o.removeEventListener(i.start,t.scrollbar.onDragStart,a),o.removeEventListener(i.move,t.scrollbar.onDragMove,a),o.removeEventListener(i.end,t.scrollbar.onDragEnd,r)):(o.removeEventListener(s.start,t.scrollbar.onDragStart,a),h.removeEventListener(s.move,t.scrollbar.onDragMove,a),h.removeEventListener(s.end,t.scrollbar.onDragEnd,r))},init(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,$el:i}=t,s=t.params.scrollbar;let n=p(s.el);t.params.uniqueNavElements&&"string"==typeof s.el&&n.length>1&&1===i.find(s.el).length&&(n=i.find(s.el));let o=n.find("."+t.params.scrollbar.dragClass);0===o.length&&(o=p(`<div class="${t.params.scrollbar.dragClass}"></div>`),n.append(o)),g.extend(e,{$el:n,el:n[0],$dragEl:o,dragEl:o[0]}),s.draggable&&e.enableDraggable()},destroy(){this.scrollbar.disableDraggable()}};const et={setTransform(t,e){const{rtl:i}=this,s=p(t),n=i?-1:1,o=s.attr("data-swiper-parallax")||"0";let a=s.attr("data-swiper-parallax-x"),r=s.attr("data-swiper-parallax-y");const l=s.attr("data-swiper-parallax-scale"),h=s.attr("data-swiper-parallax-opacity");if(a||r?(a=a||"0",r=r||"0"):this.isHorizontal()?(a=o,r="0"):(r=o,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*e*n+"%":a*e*n+"px",r=r.indexOf("%")>=0?parseInt(r,10)*e+"%":r*e+"px",null!=h){const t=h-(h-1)*(1-Math.abs(e));s[0].style.opacity=t}if(null==l)s.transform(`translate3d(${a}, ${r}, 0px)`);else{const t=l-(l-1)*(1-Math.abs(e));s.transform(`translate3d(${a}, ${r}, 0px) scale(${t})`)}},setTranslate(){const t=this,{$el:e,slides:i,progress:s,snapGrid:n}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,i)=>{t.parallax.setTransform(i,s)}),i.each((e,i)=>{let o=i.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(o+=Math.ceil(e/2)-s*(n.length-1)),o=Math.min(Math.max(o,-1),1),p(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,i)=>{t.parallax.setTransform(i,o)})})},setTransition(t=this.params.speed){const{$el:e}=this;e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,i)=>{const s=p(i);let n=parseInt(s.attr("data-swiper-parallax-duration"),10)||t;0===t&&(n=0),s.transition(n)})}};const it={getDistanceBetweenTouches(t){if(t.targetTouches.length<2)return 1;const e=t.targetTouches[0].pageX,i=t.targetTouches[0].pageY,s=t.targetTouches[1].pageX,n=t.targetTouches[1].pageY;return Math.sqrt((s-e)**2+(n-i)**2)},onGestureStart(t){const e=this,i=e.params.zoom,s=e.zoom,{gesture:n}=s;if(s.fakeGestureTouched=!1,s.fakeGestureMoved=!1,!v.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;s.fakeGestureTouched=!0,n.scaleStart=it.getDistanceBetweenTouches(t)}n.$slideEl&&n.$slideEl.length||(n.$slideEl=p(t.target).closest("."+e.params.slideClass),0===n.$slideEl.length&&(n.$slideEl=e.slides.eq(e.activeIndex)),n.$imageEl=n.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),n.$imageWrapEl=n.$imageEl.parent("."+i.containerClass),n.maxRatio=n.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,0!==n.$imageWrapEl.length)?(n.$imageEl&&n.$imageEl.transition(0),e.zoom.isScaling=!0):n.$imageEl=void 0},onGestureChange(t){const e=this.params.zoom,i=this.zoom,{gesture:s}=i;if(!v.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;i.fakeGestureMoved=!0,s.scaleMove=it.getDistanceBetweenTouches(t)}s.$imageEl&&0!==s.$imageEl.length&&(i.scale=v.gestures?t.scale*i.currentScale:s.scaleMove/s.scaleStart*i.currentScale,i.scale>s.maxRatio&&(i.scale=s.maxRatio-1+(i.scale-s.maxRatio+1)**.5),i.scale<e.minRatio&&(i.scale=e.minRatio+1-(e.minRatio-i.scale+1)**.5),s.$imageEl.transform(`translate3d(0,
10,0) scale(${i.scale})`))},onGestureEnd(t){const e=this.params.zoom,i=this.zoom,{gesture:s}=i;if(!v.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!C.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}s.$imageEl&&0!==s.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,s.maxRatio),e.minRatio),s.$imageEl.transition(this.params.speed).transform(`translate3d(0,0,0) scale(${i.scale})`),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(s.$slideEl=void 0))},onTouchStart(t){const e=this.zoom,{gesture:i,image:s}=e;i.$imageEl&&0!==i.$imageEl.length&&(s.isTouched||(C.android&&t.cancelable&&t.preventDefault(),s.isTouched=!0,s.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,s.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove(t){const e=this,i=e.zoom,{gesture:s,image:n,velocity:o}=i;if(!s.$imageEl||0===s.$imageEl.length)return;if(e.allowClick=!1,!n.isTouched||!s.$slideEl)return;n.isMoved||(n.width=s.$imageEl[0].offsetWidth,n.height=s.$imageEl[0].offsetHeight,n.startX=g.getTranslate(s.$imageWrapEl[0],"x")||0,n.startY=g.getTranslate(s.$imageWrapEl[0],"y")||0,s.slideWidth=s.$slideEl[0].offsetWidth,s.slideHeight=s.$slideEl[0].offsetHeight,s.$imageWrapEl.transition(0),e.rtl&&(n.startX=-n.startX,n.startY=-n.startY));const a=n.width*i.scale,r=n.height*i.scale;if(!(a<s.slideWidth&&r<s.slideHeight)){if(n.minX=Math.min(s.slideWidth/2-a/2,0),n.maxX=-n.minX,n.minY=Math.min(s.slideHeight/2-r/2,0),n.maxY=-n.minY,n.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,n.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!n.isMoved&&!i.isScaling){if(e.isHorizontal()&&(Math.floor(n.minX)===Math.floor(n.startX)&&n.touchesCurrent.x<n.touchesStart.x||Math.floor(n.maxX)===Math.floor(n.startX)&&n.touchesCurrent.x>n.touchesStart.x))return void(n.isTouched=!1);if(!e.isHorizontal()&&(Math.floor(n.minY)===Math.floor(n.startY)&&n.touchesCurrent.y<n.touchesStart.y||Math.floor(n.maxY)===Math.floor(n.startY)&&n.touchesCurrent.y>n.touchesStart.y))return void(n.isTouched=!1)}t.cancelable&&t.preventDefault(),t.stopPropagation(),n.isMoved=!0,n.currentX=n.touchesCurrent.x-n.touchesStart.x+n.startX,n.currentY=n.touchesCurrent.y-n.touchesStart.y+n.startY,n.currentX<n.minX&&(n.currentX=n.minX+1-(n.minX-n.currentX+1)**.8),n.currentX>n.maxX&&(n.currentX=n.maxX-1+(n.currentX-n.maxX+1)**.8),n.currentY<n.minY&&(n.currentY=n.minY+1-(n.minY-n.currentY+1)**.8),n.currentY>n.maxY&&(n.currentY=n.maxY-1+(n.currentY-n.maxY+1)**.8),o.prevPositionX||(o.prevPositionX=n.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=n.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(n.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(n.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(n.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(n.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=n.touchesCurrent.x,o.prevPositionY=n.touchesCurrent.y,o.prevTime=Date.now(),s.$imageWrapEl.transform(`translate3d(${n.currentX}px, ${n.currentY}px,0)`)}},onTouchEnd(){const t=this.zoom,{gesture:e,image:i,velocity:s}=t;if(!e.$imageEl||0===e.$imageEl.length)return;if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;let n=300,o=300;const a=s.x*n,r=i.currentX+a,l=s.y*o,h=i.currentY+l;0!==s.x&&(n=Math.abs((r-i.currentX)/s.x)),0!==s.y&&(o=Math.abs((h-i.currentY)/s.y));const u=Math.max(n,o);i.currentX=r,i.currentY=h;const d=i.width*t.scale,c=i.height*t.scale;i.minX=Math.min(e.slideWidth/2-d/2,0),i.maxX=-i.minX,i.minY=Math.min(e.slideHeight/2-c/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),e.$imageWrapEl.transition(u).transform(`translate3d(${i.currentX}px, ${i.currentY}px,0)`)},onTransitionEnd(){const t=this.zoom,{gesture:e}=t;e.$slideEl&&this.previousIndex!==this.activeIndex&&(e.$imageEl&&e.$imageEl.transform("translate3d(0,0,0) scale(1)"),e.$imageWrapEl&&e.$imageWrapEl.transform("translate3d(0,
10,0)"),t.scale=1,t.currentScale=1,e.$slideEl=void 0,e.$imageEl=void 0,e.$imageWrapEl=void 0)},toggle(t){const e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in(t){const e=this,i=e.zoom,s=e.params.zoom,{gesture:n,image:o}=i;if(n.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?n.$slideEl=e.$wrapperEl.children("."+e.params.slideActiveClass):n.$slideEl=e.slides.eq(e.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),n.$imageWrapEl=n.$imageEl.parent("."+s.containerClass)),!n.$imageEl||0===n.$imageEl.length)return;let a,r,l,h,u,d,c,p,m,f,g,v,_,y,b,w,x,E;n.$slideEl.addClass(""+s.zoomedSlideClass),void 0===o.touchesStart.x&&t?(a="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,r="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(a=o.touchesStart.x,r=o.touchesStart.y),i.scale=n.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,i.currentScale=n.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,t?(x=n.$slideEl[0].offsetWidth,E=n.$slideEl[0].offsetHeight,l=n.$slideEl.offset().left,h=n.$slideEl.offset().top,u=l+x/2-a,d=h+E/2-r,m=n.$imageEl[0].offsetWidth,f=n.$imageEl[0].offsetHeight,g=m*i.scale,v=f*i.scale,_=Math.min(x/2-g/2,0),y=Math.min(E/2-v/2,0),b=-_,w=-y,c=u*i.scale,p=d*i.scale,c<_&&(c=_),c>b&&(c=b),p<y&&(p=y),p>w&&(p=w)):(c=0,p=0),n.$imageWrapEl.transition(300).transform(`translate3d(${c}px, ${p}px,0)`),n.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${i.scale})`)},out(){const t=this,e=t.zoom,i=t.params.zoom,{gesture:s}=e;s.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?s.$slideEl=t.$wrapperEl.children("."+t.params.slideActiveClass):s.$slideEl=t.slides.eq(t.activeIndex),s.$imageEl=s.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),s.$imageWrapEl=s.$imageEl.parent("."+i.containerClass)),s.$imageEl&&0!==s.$imageEl.length&&(e.scale=1,e.currentScale=1,s.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),s.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),s.$slideEl.removeClass(""+i.zoomedSlideClass),s.$slideEl=void 0)},enable(){const t=this,e=t.zoom;if(e.enabled)return;e.enabled=!0;const i=!("touchstart"!==t.touchEvents.start||!v.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},s=!v.passiveListener||{passive:!1,capture:!0},n="."+t.params.slideClass;v.gestures?(t.$wrapperEl.on("gesturestart",n,e.onGestureStart,i),t.$wrapperEl.on("gesturechange",n,e.onGestureChange,i),t.$wrapperEl.on("gestureend",n,e.onGestureEnd,i)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,n,e.onGestureStart,i),t.$wrapperEl.on(t.touchEvents.move,n,e.onGestureChange,s),t.$wrapperEl.on(t.touchEvents.end,n,e.onGestureEnd,i),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,n,e.onGestureEnd,i)),t.$wrapperEl.on(t.touchEvents.move,"."+t.params.zoom.containerClass,e.onTouchMove,s)},disable(){const t=this,e=t.zoom;if(!e.enabled)return;t.zoom.enabled=!1;const i=!("touchstart"!==t.touchEvents.start||!v.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},s=!v.passiveListener||{passive:!1,capture:!0},n="."+t.params.slideClass;v.gestures?(t.$wrapperEl.off("gesturestart",n,e.onGestureStart,i),t.$wrapperEl.off("gesturechange",n,e.onGestureChange,i),t.$wrapperEl.off("gestureend",n,e.onGestureEnd,i)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,n,e.onGestureStart,i),t.$wrapperEl.off(t.touchEvents.move,n,e.onGestureChange,s),t.$wrapperEl.off(t.touchEvents.end,n,e.onGestureEnd,i),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,n,e.onGestureEnd,i)),t.$wrapperEl.off(t.touchEvents.move,"."+t.params.zoom.containerClass,e.onTouchMove,s)}};const st={loadInSlide(t,e=!0){const i=this,s=i.params.lazy;if(void 0===t)return;if(0===i.slides.length)return;const n=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children(`.${i.params.slideClass}[data-swiper-slide-index="${t}"]`):i.slides.eq(t);let o=n.find(`.${s.elementClass}:not(.${s.loadedClass}):not(.${s.loadingClass})`);!n.hasClass(s.elementClass)||n.hasClass(s.loadedClass)||n.hasClass(s.loadingClass)||(o=o.add(n[0])),0!==o.length&&o.each((t,o)=>{const a=p(o);a.addClass(s.loadingClass);const r=a.attr("data-background"),l=a.attr("data-src"),h=a.attr("data-srcset"),u=a.attr("data-sizes"),d=a.parent("picture");i.loadImage(a[0],l||r,h,u,!1,()=>
1{if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(r?(a.css("background-image",`url("${r}")`),a.removeAttr("data-background")):(h&&(a.attr("srcset",h),a.removeAttr("data-srcset")),u&&(a.attr("sizes",u),a.removeAttr("data-sizes")),d.length&&d.children("source").each((t,e)=>{const i=p(e);i.attr("data-srcset")&&(i.attr("srcset",i.attr("data-srcset")),i.removeAttr("data-srcset"))}),l&&(a.attr("src",l),a.removeAttr("data-src"))),a.addClass(s.loadedClass).removeClass(s.loadingClass),n.find("."+s.preloaderClass).remove(),i.params.loop&&e){const t=n.attr("data-swiper-slide-index");if(n.hasClass(i.params.slideDuplicateClass)){const e=i.$wrapperEl.children(`[data-swiper-slide-index="${t}"]:not(.${i.params.slideDuplicateClass})`);i.lazy.loadInSlide(e.index(),!1)}else{const e=i.$wrapperEl.children(`.${i.params.slideDuplicateClass}[data-swiper-slide-index="${t}"]`);i.lazy.loadInSlide(e.index(),!1)}}i.emit("lazyImageReady",n[0],a[0]),i.params.autoHeight&&i.updateAutoHeight()}}),i.emit("lazyImageLoad",n[0],a[0])})},load(){const t=this,{$wrapperEl:e,params:i,slides:s,activeIndex:n}=t,o=t.virtual&&i.virtual.enabled,a=i.lazy;let r=i.slidesPerView;function l(t){if(o){if(e.children(`.${i.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(s[t])return!0;return!1}function h(t){return o?p(t).attr("data-swiper-slide-index"):p(t).index()}if("auto"===r&&(r=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children("."+i.slideVisibleClass).each((e,i)=>{const s=o?p(i).attr("data-swiper-slide-index"):p(i).index();t.lazy.loadInSlide(s)});else if(r>1)for(let e=n;e<n+r;e+=1)l(e)&&t.lazy.loadInSlide(e);else t.lazy.loadInSlide(n);if(a.loadPrevNext)if(r>1||a.loadPrevNextAmount&&a.loadPrevNextAmount>1){const e=a.loadPrevNextAmount,i=r,o=Math.min(n+i+Math.max(e,i),s.length),h=Math.max(n-Math.max(i,e),0);for(let e=n+r;e<o;e+=1)l(e)&&t.lazy.loadInSlide(e);for(let e=h;e<n;e+=1)l(e)&&t.lazy.loadInSlide(e)}else{const s=e.children("."+i.slideNextClass);s.length>0&&t.lazy.loadInSlide(h(s));const n=e.children("."+i.slidePrevClass);n.length>0&&t.lazy.loadInSlide(h(n))}}};const nt={LinearSpline:function(t,e){const i=function(){let t,e,i;return(s,n)=>{for(e=-1,t=s.length;t-e>1;)i=t+e>>1,s[i]<=n?e=i:t=i;return t}}();let s,n;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(n=i(this.x,t),s=n-1,(t-this.x[s])*(this.y[n]-this.y[s])/(this.x[n]-this.x[s])+this.y[s]):0},this},getInterpolateFunction(t){const e=this;e.controller.spline||(e.controller.spline=e.params.loop?new nt.LinearSpline(e.slidesGrid,t.slidesGrid):new nt.LinearSpline(e.snapGrid,t.snapGrid))},setTranslate(t,e){const i=this,s=i.controller.control;let n,o;function a(t){const e=i.rtlTranslate?-i.translate:i.translate;"slide"===i.params.controller.by&&(i.controller.getInterpolateFunction(t),o=-i.controller.spline.interpolate(-e)),o&&"container"!==i.params.controller.by||(n=(t.maxTranslate()-t.minTranslate())/(i.maxTranslate()-i.minTranslate()),o=(e-i.minTranslate())*n+t.minTranslate()),i.params.controller.inverse&&(o=t.maxTranslate()-o),t.updateProgress(o),t.setTranslate(o,i),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(s))for(let t=0;t<s.length;t+=1)s[t]!==e&&s[t]instanceof N&&a(s[t]);else s instanceof N&&e!==s&&a(s)},setTransition(t,e){const i=this,s=i.controller.control;let n;function o(e){e.setTransition(t,i),0!==t&&(e.transitionStart(),e.params.autoHeight&&g.nextTick(()=>{e.updateAutoHeight()}),e.$wrapperEl.transitionEnd(()=>{s&&(e.params.loop&&"slide"===i.params.controller.by&&e.loopFix(),e.transitionEnd())}))}if(Array.isArray(s))for(n=0;n<s.length;n+=1)s[n]!==e&&s[n]instanceof N&&o(s[n]);else s instanceof N&&e!==s&&o(s)}};const ot={makeElFocusable:t=>(t.attr("tabIndex","0"),t),makeElNotFocusable:t=>(t.attr("tabIndex","-1"),t),addElRole:(t,e)=>(t.attr("role",e),t),addElLabel:(t,e)=>(t.attr("aria-label",e),t),disableEl:t=>(t.attr("aria-disabled",!0),t),enableEl:t=>(t.attr("aria-disabled",!1),t),onEnterKey(t){const e=this,i=e.params.a11y;if(13!==t.keyCode)return;const s=p(t.target);e.navigation&&e.navigation.$nextEl&&s.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?e.a11y.notify(i.lastSlideMessage):e.a11y.notify(i.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&s.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?e.a11y.notify(i.firstSlideMessage):e.a11y.notify(i.prevSlideMessage)),e.pagination&&s.is("."+e.params.pagination.bulletClass)&&s[0].click()},notify(t){const e=this.a11y.liveRegion;0!==e.length&&(e.html(""),e.html(t))},updateNavigation(){const t=this;if(t.params.loop||!t.navigation)return;const{$nextEl:e,$prevEl:i}=t.navigation;i&&i.length>0&&(t.isBeginning?(t.a11y.disableEl(i),t.a11y.makeElNotFocusable(i)):(t.a11y.enableEl(i),t.a11y.makeElFocusable(i))),e&&e.length>0&&(t.isEnd?(t.a11y.disableEl(e),t.a11y.makeElNotFocusable(e)):(t.a11y.enableEl(e),t.a11y.makeElFocusable(e)))},updatePagination(){const t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((i,s)=>{const n=p(s);t.a11y.makeElFocusable(n),t.a11y.addElRole(n,"button"),t.a11y.addElLabel(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,n.index()+1))})},init(){const t=this;t.$el.append(t.a11y.liveRegion);const e=t.params.a11y;let i,s;t.navigation&&t.navigation.$nextEl&&(i=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(s=t.navigation.$prevEl),i&&(t.a11y.makeElFocusable(i),t.a11y.addElRole(i,"button"),t.a11y.addElLabel(i,e.nextSlideMessage),i.on("keydown",t.a11y.onEnterKey)),s&&(t.a11y.makeElFocusable(s),t.a11y.addElRole(s,"button"),t.a11y.addElLabel(s,e.prevSlideMessage),s.on("keydown",t.a11y.onEnterKey)),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.on("key
1down","."+t.params.pagination.bulletClass,t.a11y.onEnterKey)},destroy(){const t=this;let e,i;t.a11y.liveRegion&&t.a11y.liveRegion.length>0&&t.a11y.liveRegion.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(i=t.navigation.$prevEl),e&&e.off("keydown",t.a11y.onEnterKey),i&&i.off("keydown",t.a11y.onEnterKey),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.off("keydown","."+t.params.pagination.bulletClass,t.a11y.onEnterKey)}};const at={init(){const t=this;if(!t.params.history)return;if(!d.history||!d.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);const e=t.history;e.initialized=!0,e.paths=at.getPathValues(),(e.paths.key||e.paths.value)&&(e.scrollToSlide(0,e.paths.value,t.params.runCallbacksOnInit),t.params.history.replaceState||d.addEventListener("popstate",t.history.setHistoryPopState))},destroy(){const t=this;t.params.history.replaceState||d.removeEventListener("popstate",t.history.setHistoryPopState)},setHistoryPopState(){this.history.paths=at.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues(){const t=d.location.pathname.slice(1).split("/").filter(t=>""!==t),e=t.length;return{key:t[e-2],value:t[e-1]}},setHistory(t,e){if(!this.history.initialized||!this.params.history.enabled)return;const i=this.slides.eq(e);let s=at.slugify(i.attr("data-history"));d.location.pathname.includes(t)||(s=`${t}/${s}`);const n=d.history.state;n&&n.value===s||(this.params.history.replaceState?d.history.replaceState({value:s},null,s):d.history.pushState({value:s},null,s))},slugify:t=>t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),scrollToSlide(t,e,i){const s=this;if(e)for(let n=0,o=s.slides.length;n<o;n+=1){const o=s.slides.eq(n);if(at.slugify(o.attr("data-history"))===e&&!o.hasClass(s.params.slideDuplicateClass)){const e=o.index();s.slideTo(e,t,i)}}else s.slideTo(0,t,i)}};const rt={onHashCange(){const t=this;t.emit("hashChange");const e=h.location.hash.replace("#","");if(e!==t.slides.eq(t.activeIndex).attr("data-hash")){const i=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if(void 0===i)return;t.slideTo(i)}},setHash(){const t=this;if(t.hashNavigation.initialized&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&d.history&&d.history.replaceState)d.history.replaceState(null,null,"#"+t.slides.eq(t.activeIndex).attr("data-hash")||""),t.emit("hashSet");else{const e=t.slides.eq(t.activeIndex),i=e.attr("data-hash")||e.attr("data-history");h.location.hash=i||"",t.emit("hashSet")}},init(){const t=this;if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;t.hashNavigation.initialized=!0;const e=h.location.hash.replace("#","");if(e){const i=0;for(let s=0,n=t.slides.length;s<n;s+=1){const n=t.slides.eq(s);if((n.attr("data-hash")||n.attr("data-history"))===e&&!n.hasClass(t.params.slideDuplicateClass)){const e=n.index();t.slideTo(e,i,t.params.runCallbacksOnInit,!0)}}}t.params.hashNavigation.watchState&&p(d).on("hashchange",t.hashNavigation.onHashCange)},destroy(){const t=this;t.params.hashNavigation.watchState&&p(d).off("hashchange",t.hashNavigation.onHashCange)}};const lt={run(){const t=this,e=t.slides.eq(t.activeIndex);let i=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(i=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=g.nextTick(()=>{t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,
1!0),t.emit("autoplay")),t.params.cssMode&&t.autoplay.running&&t.autoplay.run()},i)},start(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop(){const t=this;return!!t.autoplay.running&&(void 0!==t.autoplay.timeout&&(t.autoplay.timeout&&(clearTimeout(t.autoplay.timeout),t.autoplay.timeout=void 0),t.autoplay.running=!1,t.emit("autoplayStop"),!0))},pause(t){const e=this;e.autoplay.running&&(e.autoplay.paused||(e.autoplay.timeout&&clearTimeout(e.autoplay.timeout),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?(e.$wrapperEl[0].addEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].addEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd)):(e.autoplay.paused=!1,e.autoplay.run())))}};const ht={setTranslate(){const t=this,{slides:e}=t;for(let i=0;i<e.length;i+=1){const e=t.slides.eq(i);let s=-e[0].swiperSlideOffset;t.params.virtualTranslate||(s-=t.translate);let n=0;t.isHorizontal()||(n=s,s=0);const o=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e[0].progress),0):1+Math.min(Math.max(e[0].progress,-1),0);e.css({opacity:o}).transform(`translate3d(${s}px, ${n}px, 0px)`)}},setTransition(t){const e=this,{slides:i,$wrapperEl:s}=e;if(i.transition(t),e.params.virtualTranslate&&0!==t){let t=!1;i.transitionEnd(()=>{if(t)return;if(!e||e.destroyed)return;t=!0,e.animating=!1;const i=["webkitTransitionEnd","transitionend"];for(let t=0;t<i.length;t+=1)s.trigger(i[t])})}}};const ut={setTranslate(){const{$el:t,$wrapperEl:e,slides:i,width:s,height:n,rtlTranslate:o,size:a}=this,r=this.params.cubeEffect,l=this.isHorizontal(),h=this.virtual&&this.params.virtual.enabled;let u,d=0;r.shadow&&(l?(u=e.find(".swiper-cube-shadow"),0===u.length&&(u=p('<div class="swiper-cube-shadow"></div>'),e.append(u)),u.css({height:s+"px"})):(u=t.find(".swiper-cube-shadow"),0===u.length&&(u=p('<div class="swiper-cube-shadow"></div>'),t.append(u))));for(let t=0;t<i.length;t+=1){const e=i.eq(t);let s=t;h&&(s=parseInt(e.attr("data-swiper-slide-index"),10));let n=90*s,u=Math.floor(n/360);o&&(n=-n,u=Math.floor(-n/360));const c=Math.max(Math.min(e[0].progress,1),-1);let m=0,f=0,g=0;s%4==0?(m=4*-u*a,g=0):(s-1)%4==0?(m=0,g=4*-u*a):(s-2)%4==0?(m=a+4*u*a,g=a):(s-3)%4==0&&(m=-a,g=3*a+4*a*u),o&&(m=-m),l||(f=m,m=0);const v=`rotateX(${l?0:-n}deg) rotateY(${l?n:0}deg) translate3d(${m}px, ${f}px, ${g}px)`;if(c<=1&&c>-1&&(d=90*s+90*c,o&&(d=90*-s-90*c)),e.transform(v),r.slideShadows){let t=l?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),i=l?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=p(`<div class="swiper-slide-shadow-${l?"left":"top"}"></div>`),e.append(t)),0===i.length&&(i=p(`<div class="swiper-slide-shadow-${l?"right":"bottom"}"></div>`),e.append(i)),t.length&&(t[0].style.opacity=Math.max(-c,0)),i.length&&(i[0].style.opacity=Math.max(c,0))}}if(e.css({"-webkit-transform-origin":`50% 50% -${a/2}px`,"-moz-transform-origin":`50% 50% -${a/2}px`,"-ms-transform-origin":`50% 50% -${a/2}px`,"transform-origin":`50% 50% -${a/2}px`}),r.shadow)if(l)u.transform(`translate3d(0px, ${s/2+r.shadowOffset}px, ${-s/2}px) rotateX(90deg) rotateZ(0deg) scale(${r.shadowScale})`);else{const t=Math.abs(d)-90*Math.floor(Math.abs(d)/90),e=1.5-(Math.sin(2*t*Math.PI/360)/2+Math.cos(2*t*Math.PI/360)/2),i=r.shadowScale,s=r.shadowScale/e,o=r.shadowOffset;u.transform(`scale3d(${i}, 1, ${s}) translate3d(0px, ${n/2+o}px, ${-n/2/s}px) rotateX(-90deg)`)}const c=V.isSafari||V.isWebView?-a/2:0;e.transform(`translate3d(0px,0,${c}px) rotateX(${this.isHorizontal()?0:d}deg) rotateY(${this.isHorizontal()?-d:0}deg)`)},setTransition(t){const{$el:e,slides:i}=this;i.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),this.params.cubeEffect.shadow&&!this.isHorizontal()&&e.find(".swiper-cube-shadow").transition(t)}};const dt={setTranslate(){const t=this,{slides:e,rtlTranslate:i}=t;for(let s=0;s<e.length;s+=1){const n=e.eq(s);let o=n[0].progress;t.params.flipEffect.limitRotation&&(o=Math.max(Math.min(n[0].progress,
11),-1));let a=-180*o,r=0,l=-n[0].swiperSlideOffset,h=0;if(t.isHorizontal()?i&&(a=-a):(h=l,l=0,r=-a,a=0),n[0].style.zIndex=-Math.abs(Math.round(o))+e.length,t.params.flipEffect.slideShadows){let e=t.isHorizontal()?n.find(".swiper-slide-shadow-left"):n.find(".swiper-slide-shadow-top"),i=t.isHorizontal()?n.find(".swiper-slide-shadow-right"):n.find(".swiper-slide-shadow-bottom");0===e.length&&(e=p(`<div class="swiper-slide-shadow-${t.isHorizontal()?"left":"top"}"></div>`),n.append(e)),0===i.length&&(i=p(`<div class="swiper-slide-shadow-${t.isHorizontal()?"right":"bottom"}"></div>`),n.append(i)),e.length&&(e[0].style.opacity=Math.max(-o,0)),i.length&&(i[0].style.opacity=Math.max(o,0))}n.transform(`translate3d(${l}px, ${h}px, 0px) rotateX(${r}deg) rotateY(${a}deg)`)}},setTransition(t){const e=this,{slides:i,activeIndex:s,$wrapperEl:n}=e;if(i.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){let t=!1;i.eq(s).transitionEnd((function(){if(t)return;if(!e||e.destroyed)return;t=!0,e.animating=!1;const i=["webkitTransitionEnd","transitionend"];for(let t=0;t<i.length;t+=1)n.trigger(i[t])}))}}};const ct={setTranslate(){const{width:t,height:e,slides:i,$wrapperEl:s,slidesSizesGrid:n}=this,o=this.params.coverflowEffect,a=this.isHorizontal(),r=this.translate,l=a?t/2-r:e/2-r,h=a?o.rotate:-o.rotate,u=o.depth;for(let t=0,e=i.length;t<e;t+=1){const e=i.eq(t),s=n[t],r=(l-e[0].swiperSlideOffset-s/2)/s*o.modifier;let d=a?h*r:0,c=a?0:h*r,m=-u*Math.abs(r),f=o.stretch;"string"==typeof f&&-1!==f.indexOf("%")&&(f=parseFloat(o.stretch)/100*s);let g=a?0:f*r,v=a?f*r:0,_=1-(1-o.scale)*Math.abs(r);Math.abs(v)<.001&&(v=0),Math.abs(g)<.001&&(g=0),Math.abs(m)<.001&&(m=0),Math.abs(d)<.001&&(d=0),Math.abs(c)<.001&&(c=0),Math.abs(_)<.001&&(_=0);const y=`translate3d(${v}px,${g}px,${m}
1px) rotateX(${c}deg) rotateY(${d}deg) scale(${_})`;if(e.transform(y),e[0].style.zIndex=1-Math.abs(Math.round(r)),o.slideShadows){let t=a?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),i=a?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=p(`<div class="swiper-slide-shadow-${a?"left":"top"}"></div>`),e.append(t)),0===i.length&&(i=p(`<div class="swiper-slide-shadow-${a?"right":"bottom"}"></div>`),e.append(i)),t.length&&(t[0].style.opacity=r>0?r:0),i.length&&(i[0].style.opacity=-r>0?-r:0)}}if(v.pointerEvents||v.prefixedPointerEvents){s[0].style.perspectiveOrigin=l+"px 50%"}},setTransition(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}};const pt={init(){const t=this,{thumbs:e}=t.params,i=t.constructor;e.swiper instanceof i?(t.thumbs.swiper=e.swiper,g.extend(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),g.extend(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):g.isObject(e.swiper)&&(t.thumbs.swiper=new i(g.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),t.thumbs.swiperCreated=!0),t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",t.thumbs.onThumbClick)},onThumbClick(){const t=this,e=t.thumbs.swiper;if(!e)return;const i=e.clickedIndex,s=e.clickedSlide;if(s&&p(s).hasClass(t.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let n;if(n=e.params.loop?parseInt(p(e.clickedSlide).attr("data-swiper-slide-index"),10):i,t.params.loop){let e=t.activeIndex;t.slides.eq(e).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,e=t.activeIndex);const i=t.slides.eq(e).prevAll(`[data-swiper-slide-index="${n}"]`).eq(0).index(),s=t.slides.eq(e).nextAll(`[data-swiper-slide-index="${n}"]`).eq(0).index();n=void 0===i?s:void 0===s?i:s-e<e-i?s:i}t.slideTo(n)},update(t){const e=this,i=e.thumbs.swiper;if(!i)return;const s="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView,n=e.params.thumbs.autoScrollOffset,o=n&&!i.params.loop;if(e.realIndex!==i.realIndex||o){let a,r,l=i.activeIndex;if(i.params.loop){i.slides.eq(l).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,l=i.activeIndex);const t=i.slides.eq(l).prevAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(),s=i.slides.eq(l).nextAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index();a=void 0===t?s:void 0===s?t:s-l==l-t?l:s-l<l-t?s:t,r=e.activeIndex>e.previousIndex?"next":"prev"}else a=e.realIndex,r=a>e.previousIndex?"next":"prev";o&&(a+="next"===r?n:-1*n),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(a)<0&&(i.params.centeredSlides?a=a>l?a-Math.floor(s/2)+1:a+Math.floor(s/2)-1:a>l&&(a=a-s+1),i.slideTo(a,t?0:void 0))}let a=1;const r=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(a=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(a=1),a=Math.floor(a),i.slides.removeClass(r),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let t=0;t<a;t+=1)i.$wrapperEl.children(`[data-swiper-slide-index="${e.realIndex+t}"]`).addClass(r);else for(let t=0;t<a;t+=1)i.slides.eq(e.realIndex+t).addClass(r)}};const mt=[R,Z,j,H,W,Y,X,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){g.extend(this,{mousewheel:{enabled:!1,enable:K.enable.bind(this),disable:K.disable.bind(this),handle:K.handle.bind(this),handleMouseEnter:K.handleMouseEnter.bind(this),handleMouseLeave:K.handleMouseLeave.bind(this),animateSlider:K.animateSlider.bind(this),releaseScroll:K.releaseScroll.bind(this),lastScrollTime:g.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init(){const t=this;!t.params.mousewheel.enabled&&t.params.cssMode&&t.mousewheel.disable(),t.params.mousewheel.enabled&&t.mousewheel.enable()},destroy(){const t=this;t.params.cssMode&&t.mousewheel.enable(),t.mousewheel.enabled&&t.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create(){g.extend(this,{navigation:{init:J.init.bind(this),update:J.update.bind(this),destroy:J.destroy.bind(this),onNextClick:J.onNextClick.bind(this),onPrevClick:J.onPrevClick.bind(this)}})},on:{init(){this.navigation.init(),this.navigation.update()},toEdge(){this.navigation.update()},fromEdge(){this.navigation.update()},destroy(){this.navigation.destroy()},click(t){const e=this,{$nextEl:i,$prevEl:s}=e.navigation;if(e.params.navigation.hideOnClick&&!p(t.target).is(s)&&!p(t.target).is(i)){let t;i?t=i.hasClass(e.params.navigation.hiddenClass):s&&(t=s.hasClass(e.params.navigation.hiddenClass)),!0===t?e.emit("navigationShow",e):e.emit("navigationHide",e),i&&i.toggleClass(e.params.navigation.hiddenClass),s&&s.toggleClass(e.params.navigation.hiddenClass)}}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create(){g.extend(this,{pagination:{init:Q.init.bind(this),render:Q.render.bind(this),update:Q.update.bind(this),destroy:Q.destroy.bind(this),dynamicBulletIndex:0}})},on:{init(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange(){const t=this;(t.params.loop||void 0===t.snapIndex)&&t.pagination.update()},snapIndexChange(){const t=this;t.params.loop||t.pagination.update()},slidesLengthChange(){const t=this;t.params.loop&&(t.pagination.render(),t.pagination.update())},snapGridLengthChange(){const t=this;t.params.loop||(t.pagination.render(),t.pagination.update())},destroy(){this.pagination.destroy()},click(t){const e=this;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&e.pagination.$el.length>0&&!p(t.target).hasClass(e.params.pagination.bulletClass)){!0===e.pagination.$el.hasClass(e.params.pagination.hiddenClass)?e.emit("paginationShow",e):e.emit("paginationHide",e),e.pagination.$el.toggleClass(e.params.pagination.hiddenClass)}}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create(){g.extend(this,{scrollbar:{init:tt.init.bind(this),destroy:tt.destroy.bind(this),updateSize:tt.updateSize.bind(this),setTranslate:tt.setTranslate.bind(this),setTransition:tt.setTransition.bind(this),enableDraggable:tt.enableDraggable.bind(this),disableDraggable:tt.disableDraggable.bind(this),setDragPosition:tt.setDragPosition.bind(this),getPointerPosition:tt.getPointerPosition.bind(this),onDragStart:tt.onDragStart.bind(this),onDragMove:tt.onDragMove.bind(this),onDragEnd:tt.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update(){this.scrollbar.updateSize()},resize(){this.scrollbar.updateSize()},observerUpdate(){this.scrollbar.updateSize()},setTranslate(){this.scrollbar.setTranslate()},setTransition(t){this.scrollbar.setTransition(t)},destroy(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create(){g.extend(this,{parallax:{setTransform:et.setTransform.bind(this),setTranslate:et.setTranslate.bind(this),setTransition:et.setTransition.bind(this)}})},on:{beforeInit(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition(t){this.params.parallax.enabled&&this.parallax.setTransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create(){const t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(i=>
1{e[i]=it[i].bind(t)}),g.extend(t,{zoom:e});let i=1;Object.defineProperty(t.zoom,"scale",{get:()=>i,set(e){if(i!==e){const i=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,s=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,i,s)}i=e}})},on:{init(){const t=this;t.params.zoom.enabled&&t.zoom.enable()},destroy(){this.zoom.disable()},touchStart(t){this.zoom.enabled&&this.zoom.onTouchStart(t)},touchEnd(t){this.zoom.enabled&&this.zoom.onTouchEnd(t)},doubleTap(t){const e=this;e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionEnd(){const t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.zoom.onTransitionEnd()},slideChange(){const t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&t.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create(){g.extend(this,{lazy:{initialImageLoaded:!1,load:st.load.bind(this),loadInSlide:st.loadInSlide.bind(this)}})},on:{beforeInit(){const t=this;t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)},init(){const t=this;t.params.lazy.enabled&&!t.params.loop&&0===t.params.initialSlide&&t.lazy.load()},scroll(){const t=this;t.params.freeMode&&!t.params.freeModeSticky&&t.lazy.load()},resize(){const t=this;t.params.lazy.enabled&&t.lazy.load()},scrollbarDragMove(){const t=this;t.params.lazy.enabled&&t.lazy.load()},transitionStart(){const t=this;t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!t.lazy.initialImageLoaded)&&t.lazy.load()},transitionEnd(){const t=this;t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&t.lazy.load()},slideChange(){const t=this;t.params.lazy.enabled&&t.params.cssMode&&t.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){g.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:nt.getInterpolateFunction.bind(this),setTranslate:nt.setTranslate.bind(this),setTransition:nt.setTransition.bind(this)}})},on:{update(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},resize(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},observerUpdate(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},setTranslate(t,e){this.controller.control&&this.controller.setTranslate(t,e)},setTransition(t,e){this.controller.control&&this.controller.setTransition(t,e)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create(){const t=this;g.extend(t,{a11y:{liveRegion:p(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(ot).forEach(e=>{t.a11y[e]=ot[e].bind(t)})},on:{init(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){g.extend(this,{history:{init:at.init.bind(this),setHistory:at.setHistory.bind(this),setHistoryPopState:at.setHistoryPopState.bind(this),scrollToSlide:at.scrollToSlide.bind(this),destroy:at.destroy.bind(this)}})},on:{init(){const t=this;t.params.history.enabled&&t.history.init()},destroy(){const t=this;t.params.history.enabled&&t.history.destroy()},transitionEnd(){const t=this;t.history.initialized&&t.history.setHistory(t.params.history.key,t.activeIndex)},slideChange(){const t=this;t.history.initialized&&t.params.cssMode&&t.history.setHistory(t.params.history.key,t.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){g.extend(this,{hashNavigation:{initialized:!1,init:rt.init.bind(this),destroy:rt.destroy.bind(this),setHash:rt.setHash.bind(this),onHashCange:rt.onHashCange.bind(this)}})},on:{init(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.init()},destroy(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.destroy()},transitionEnd(){const t=this;t.hashNavigation.initialized&&t.hashNavigation.setHash()},slideChange(){const t=this;t.hashNavigation.initialized&&t.params.cssMode&&t.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const t=this;g.extend(t,{autoplay:{running:!1,paused:!1,run:lt.run.bind(t),start:lt.start.bind(t),stop:lt.stop.bind(t),pause:lt.pause.bind(t),onVisibilityChange(){"hidden"===document.visibilityState&&t.autoplay.running&&t.autoplay.pause(),"visible"===document.visibilityState&&t.autoplay.paused&&(t.auto
1play.run(),t.autoplay.paused=!1)},onTransitionEnd(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init(){const t=this;t.params.autoplay.enabled&&(t.autoplay.start(),document.addEventListener("visibilitychange",t.autoplay.onVisibilityChange))},beforeTransitionStart(t,e){const i=this;i.autoplay.running&&(e||!i.params.autoplay.disableOnInteraction?i.autoplay.pause(t):i.autoplay.stop())},sliderFirstMove(){const t=this;t.autoplay.running&&(t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause())},touchEnd(){const t=this;t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&t.autoplay.run()},destroy(){const t=this;t.autoplay.running&&t.autoplay.stop(),document.removeEventListener("visibilitychange",t.autoplay.onVisibilityChange)}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){g.extend(this,{fadeEffect:{setTranslate:ht.setTranslate.bind(this),setTransition:ht.setTransition.bind(this)}})},on:{beforeInit(){if("fade"!==this.params.effect)return;this.classNames.push(this.params.containerModifierClass+"fade");const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};g.extend(this.params,t),g.extend(this.originalParams,t)},setTranslate(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition(t){"fade"===this.params.effect&&this.fadeEffect.setTransition(t)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){g.extend(this,{cubeEffect:{setTranslate:ut.setTranslate.bind(this),setTransition:ut.setTransition.bind(this)}})},on:{beforeInit(){if("cube"!==this.params.effect)return;this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};g.extend(this.params,t),g.extend(this.originalParams,t)},setTranslate(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition(t){"cube"===this.params.effect&&this.cubeEffect.setTransition(t)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){g.extend(this,{flipEffect:{setTranslate:dt.setTranslate.bind(this),setTransition:dt.setTransition.bind(this)}})},on:{beforeInit(){if("flip"!==this.params.effect)return;this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};g.extend(this.params,t),g.extend(this.originalParams,t)},setTranslate(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition(t){"flip"===this.params.effect&&this.flipEffect.setTransition(t)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create(){g.extend(this,{coverflowEffect:{setTranslate:ct.setTranslate.bind(this),setTransition:ct.setTransition.bind(this)}})},on:{beforeInit(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition(t){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){g.extend(this,{thumbs:{swiper:null,init:pt.init.bind(this),update:pt.update.bind(this),onThumbClick:pt.onThumbClick.bind(this)}})},on:{beforeInit(){const{thumbs:t}=this.params;t&&t.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange(){this.thumbs.swiper&&this.thumbs.update()},update(){this.thumbs.swiper&&this.thumbs.update()},resize(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate(){this.thumbs.swiper&&this.thumbs.update()},setTransition(t){const e=this.thumbs.swiper;e&&e.setTransition(t)},beforeDestroy(){const t=this.thumbs.swiper;t&&this.thumbs.swiperCreated&&t&&t.destroy()}}}];void 0===N.use&&(N.use=N.Class.use,N.installModule=N.Class.installModule),N.use(mt);var ft=N;const gt=()=>{const t=document.querySelectorAll(".custom-swiper-button-next"),e=document.querySelectorAll(".custom-swiper-button-prev"),i=document.querySelectorAll(".swiper-button-prev"),s=document.querySelectorAll(".swiper-button-next");[...i,...e].forEach(t=>{t.classList.contains("swiper-button-disabled")?(t.setAttribute("aria-disabled","true"),t.setAttribute("tabindex","-1")):(t.removeAttribute("aria-disabled"),t.removeAttribute("tabindex"))}),[...s,...t].forEach(t=>{t.classList.contains("swiper-button-disabled")?(t.setAttribute("aria-disabled","true"),t.setAttribute("tabindex","-1")):(t.removeAttribute("aria-disabled"),t.removeAttribute("tabindex"))})};let vt=null,_t=null;const yt=window.innerWidth<500;function bt(t,e,i=!1){const s=e?e.offsetWidth:0;t.forEach(t=>
1{(function(t,e,i){const s=t.getBoundingClientRect();return vt||(vt=s.left),i?(_t||(_t=s.left),yt?s.left<=e&&s.right>0+vt:s.left<=e+s.width+vt&&s.right>=_t+s.width/4):s.left-vt+s.width/3<e&&s.right-vt-s.width/2>0})(t,s,i)?t.classList.remove("visibility-hidden"):t.classList.add("visibility-hidden")})}function wt(t,e=!1){const i=t||document.querySelector(".swiper-wrapper");bt(i.querySelectorAll(".swiper-slide"),i,e)}function xt(){$((function(){const t=document.querySelector(".js_team_slider"),e=document.getElementById("team-slider-live-region"),i=document.getElementById("news-slider-live-region");t&&new ft(t,{slidesPerView:1,spaceBetween:20,a11y:{enabled:!1},on:{init(){wt(),gt()},slideChange(){if(e){const t=this.realIndex,i=this.slides.length;e.innerText=`${window.multiLang.allPages.slideTitle} ${t+1} ${window.multiLang.allPages.slideFrom.toLowerCase()} ${i}`}},transitionEnd(){gt(),wt()}},navigation:{nextEl:".team-button-next",prevEl:".team-button-prev"},breakpoints:{576:{slidesPerView:1,spaceBetween:20},768:{slidesPerView:3,spaceBetween:20},991:{slidesPerView:4,spaceBetween:20},1200:{slidesPerView:5,spaceBetween:20}}});const s=document.querySelectorAll(".main-slider__card"),n=document.querySelector(".js_main_slider");if(s.length>3){!function(t,e){const i=e.querySelectorAll(".swiper_services-slide-hover");i.forEach((s,n)=>{s.onkeydown=e=>{e.shiftKey||9!==e.which||0===n||t.slideNext(),e.shiftKey&&9===e.which&&n!==i.length-1&&t.slidePrev()},window.innerWidth>=992&&(s.onfocus=()=>{if(!(s.getBoundingClientRect().left>=280)){e.querySelector(".swiper-slide-active a").focus()}})})}(new ft(n,{slidesPerView:1,spaceBetween:30,a11y:{enabled:!1},on:{init(){wt(),gt()},slideChange(){if(i){const t=this.realIndex,e=this.slides[t];i.innerText=e.getAttribute("data-caption")}gt()},transitionEnd(){wt()}},pagination:{el:".custom-swiper-pagination"},navigation:{nextEl:".main-button-next",prevEl:".main-button-prev"},breakpoints:{576:{slidesPerView:1,spaceBetween:20},768:{slidesPerView:2,spaceBetween:30},991:{slidesPerView:3,spaceBetween:30}}}),n)}}));const t=document.querySelector(".js-home-slider");$(document).ready(()=>{let e=document.querySelectorAll(".home-slider-img");const i=document.getElementById("slider-live-region");1===e.length?new ft(t,{slidesPerView:1,spaceBetween:30,a11y:{enabled:!1},on:{init(){wt(),gt()},slideChange(){if(i){const t=this.realIndex,e=this.slides[t];i.innerText=e.getAttribute("data-caption")}gt()},transitionEnd(){wt()}}}):new ft(t,{slidesPerView:1,spaceBetween:30,loop:!1,a11y:{enabled:!1},breakpoints:{576:{slidesPerView:"auto",spaceBetween:20}},on:{init(){wt(t,!0),gt()},slideChange(){if(i){const t=this.realIndex,e=this.slides.length;i.innerText=`${window.multiLang.allPages.slideTitle} ${t+1} ${window.multiLang.allPages.slideFrom.toLowerCase()} ${e}`}gt()},transitionEnd(){wt(t,!0)}},pagination:{el:".swiper-pagination"},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}})}),setTimeout(()=>{gt()},100)}var Et=i(17),Tt=i.n(Et);i(32);new class{constructor(){this.initModules()}initModules(){var t;!function(){const t=document.getElementById("bunnersWrapper"),e=document.querySelectorAll(".js-bunners");t&&(e.length>=9?t.classList.add("bunners-more"):t.classList.add("bunners-"+e.length))}(),Object(s.a)(),new a.a,function(){const t=document.getElementById("homeNpaSearchForm");t&&(t.onsubmit=function(){let e="";isNaN(t.elements.key.value)?(e=`&key=${t.elements.key.value}&num=`,localStorage.setItem("searchKey",t.elements.key.value)):e="&key=&num="+t.elements.key.value;let i=`&from=${t.elements.date.value}&to=${t.elements.date.value}`,s="&category="+t.elements.category.value;localStorage.setItem("searchKeyNpa",e+s+i)}),localStorage.setItem("searchKey",""),localStorage.setItem("searchKeyNpa","")}(),function(){if((!window.addtocalendar||"function"!=typeof window.addtocalendar.start)&&void 0===window.ifaddtocalendar){window.ifaddtocalendar=1;let t=document,e=t.createElement("script"),i="getElementsByTagName";e.type="text/javascript",e.charset="UTF-8",e.async=!0,e.src=("https:"===window.location.protocol?"https":"http")+"://addtocalendar.com/atc/1.5/atc.min.js",t[i]("body")[0].appendChild(e)}}(),$(".translation-item .video").click((function(){$(this).find("a").click()})),o(),function(){const t="#videoPlayer iframe";$(".js-youtube-parent").click((function(){let e=$(this).attr("data-id");-1!==e.indexOf("www.youtube.com")?(e=e.split("=")[1],$(t).attr("src","https://youtube.com/embed/"+e),$(t).attr("data-link","https://www.youtube.com/watch?v="+e)):($(t).attr("src","https://youtube.com/embed/"+e),$(t).attr("data-link","https://www.youtube.com/watch?v="+e))})),$("#videoPlayer").on("hidden.bs.modal",(function(){$(t).attr("src",""),$(t).attr("data-link","")})),$(".js-photo-parent").click((function(){$(this).find(".inside-photo")[0].click()})),setInterval((function(){$("#events_tab .gov-news .news-list .li").length>3&&$("#events_tab .gov-news").addClass("columns")}),100)}(),window.innerWidth>=992&&function(t){let e=0;t.each((function(){let t=$(this).height();t>e&&(e=t)})),t.height(e)}($(".reforms_second .reform-item")),t="contacts_map",new class{constructor(t){this.mapId=t||"",this.settings(),this.bindEvents()}settings(){this.map="",this.mainLayer="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",this.mainIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAYAAAAWy4frAAAABmJLR0QA/wD/AP+gvaeTAAAA
1CXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QwKDjs3RqjPCQAAD/hJREFUeNrdm3uMXUd9xz+/mTnnPtYb2yRxiOOAE4hxQowhb0hbSqsK0VIFSKRWVdWKqqJQKpBQqarGdkx4lqeIE0ihtBRalRa1hogkDSAogYQ8jPH7lQBx1q+11/Y+7+vMzK9/zL3X77u79q4DHWv+2OtzZuY7v/d35oiq8v+huZke8OYvLbtUyBcJcZHC5aq6SAwZsAeVATHsCRoGbhpftO/e9zwUZmpeOVeJvPMZkU0/WH5zVLkDw+3A4im+ehhYq6pfl3L1e0/88eP+BQFy05dvWGiK8NfAHcDlJwxqwFqLsxmSAwZogS8CIQRijCcPdwRYa0Q++vifr//ZeQFy8xeurRqx748qfwNUO79XKhXMRWAuFFxme44RfCQMR3QIGhPN44G1gDX41oee/Mttw7MG5OYvLv9TVD4CLARwzlG6NEMuShI4uakqUZIZGLWIyCnPxBiJR5Vib6DVanV+HgJW39hYeP9U7WhKQG68Z0luy9X7gbcDiAiVSyq4heaExXkt8M2QAMQIJ2uQSe+KFWxucJJhMMfeHwzU9zWOl9BDlWD/8Pvv+snYOQP59fuWX1hk8t/AbwBULqhirwSxCUDQgG95oo8wXXM1YJzBVSy27UBjjOhuoXak1nlqs+Lf/OQ7tjx/1kBu/sK1SxH7LSIvA+hbVMW+OO2gEmk1C2IjMhORyOYGV3ZYSSoahiO1ZxtoEuuBKHrb0+/Y9NS0gdz6+dcsjiY+FeFiI5bKkhy5IP1f4T2xHlDPzDYRbNWQ5Uk6Og6NnQUhegxMRLWvffKd6zdPGchv3nPLnFpWfwx4lXOO8rK2GwWKmic0A7PZTNmQV7IEplCaWzxFywP8IkZuXPfujYdPo6UnIXvmfVLL6l8FXmUwlF+RQKgqzfHWrIMAiI1Ic7yFqiKZUHpF1lG5Kwx8/ZZ/fZ2bFMiN3/nualTfgirVxWWoJhCtkQJtavJE56Frsz2nKpShckUJVEH0DXFk4uM9VeuG+5YvEdWtgJtzSR9yZXKDrYmC2Jy+SYsVxCWXGwtFw/THMCUh72ur2XOG8f0TAAGxy55+90+3nzZpFNWPAS7Pc8wVigJFw08LhK0ajBWMM6cEQAVCCNCC0AxonIKaNZXCFGSVDFkcKQ+XaNSb1uA/Abz5FNW67r5lt6rqW1WV0kszVJRWjIRanNrOZUJpfkZWdtjsWBTXGjAmiAoCOGtxFUs+N8OUZEpjh7oSimSb2UscqkqI/N71973yt06RiA3ySRWl0lfBX5QW78c9ZrLILwJVgyk7AkAN3IDF1wPNZjNJADDGUCqVyCoZXBYI/WD6MowLNGseO8l++YmAzrPwokh5TpXGeA2J5pPyzPuu16s+raKq3LRm+Q0xxqcB+pf3of2B2Ir4sck9lJvnMO0obwcyJgYm8MdltyKSbOSk3/ov7qe4qsCKohGKkeLUlObk1mfJy4YwbqhvqHXGuvXp92x6vB15wttAKFVKFP1p8XEi4CeRRqnfEq1gm0LcZhiZSCnRgv5LuG7pdbx87lVcdcESrMt4duRZdg8/y7p96xgYGGD04CilkRJuqcP3B1y/pTHcO8K6esCXDcyJlKtlGrUGSnwrkIBEldsB8jk5MSY3Gz04zqzDkhtMZiGC3wL1+gRWhde++td4+9V/wUvyl2DMMYNfWrkGvUTZd/UED+z4Eg8+9QCNZhPdGsivz1BryCuW2MsmPZi6IiXBzs1o1Bqg8hbg/XLTZ5ZdG0Q3A8x5dRVfjTAWaPUIfE6EbJ4jWMHuzpjYO4ao8Fe/815uu+x2rLVdEF2jV01GGgLeex4ffpSPP/QxamGC/rn9FK8sUuYw7FF/ZjB5yUK/RWrH1MuqLDNB9Y2qSl7KEgigVQS07S5P26uGYAVXM9T2jaOqvOE1v81bFt1BlmU457DWdgEZY7p/O+fI85xb57+et73uDlSV0eFRskO26757zd1qey+tRvI8T5uj+rsGeKmo4EpZqiN8TMlgr8jr0g7LLywalBf3X8pbl/5BF0Bn8cd3EekCMsbgnONPFv8ZS16+BFGh9bxHVXFukojvIbYiqkpWdogKqnqlUdVFqoozbU88hbBhXAo/zUYDVeWWq1/Lsr5rT1Cnk4Ph8b8fL6Xfv+K2lAI1UnUYJGUDUwq+LsUUYGEXiJZjN9vsGTY6k0Ro1VMu9PJ5S07Y+dOVtCcD6jz/0nlXYlUIIWDGbDe16dU6a9Q8dmzvMmNVFokKoZKMMbaN8kwdK6gqZiSplcFw00U39lz8mcCICFdXXsmF1QWICu6ISSrbnuNMPcYEIFQ0ZQwqC12EOQBqgCAQtKd6SZI/0krqVbYVLi5fesIip9tK/SWYgFhIGlukt4rHtAY9lrv3mag6EFWxNUDSjvdM4oKCKNIfiKpMFBM8NvToCczJVFpnd1tWOXBoP1EVuSCCKMHHSSWKpDXHpEV7DJHniBDr0iXXerY2Y1OUAnmWQYRdh3eejnTrCaCjIk8f+iHNVgtRwc8NU7LTToYY69LxZs8bgd0CqPcQp2Bo2q4rIthKhgCbBzcmfirGY7bUA0Tn2RgjGw6sR4Asd0STKKRJgZikXt57JEnoeaOqu1WVouFR0WOJvegZeywUFcXNS+5v/Zb1PLD7v7p06GSGGmMkhMBTR3/Mw08+iKqSX1BGpc2H9Zi749VUlNjwnY193ojKjwGaY82uAUsmaOSMPdSTChSXNynNraBEvvq/X2HX2A5CCKcF1Fl8CIGiKNjDGF98/H7qRZ2slBGX+G693mvuDgkiQWiONTsy+om95Zor9w73N98LlMulMvGCxFNpS3t7DSsYJ9i5Fj/oGW+Os+nABi6cfyGLKpcfo0yPU6NOnrVhdD2fffzD7PrFTlChenUfoeqJhRImKR1M1WKc4PZntI62AGoXmf532e1P7on3//DeG0TkGiMOuRhEhVCP9E56wGYGSlA2FYqjBcMTR3l0xw847A6RlXIudgu6UgghsHN8Cw899y0+98ga9h7ck/zmi/uJizwo+OGQNqnHvK7fYsQQn1d8vQB45LG/3fBVl2pp8zBRb2+NNsg1B9fWwx5kgapSjHuyeY5iYYu+vj7qzzQpai2+8dhavvHYWhZUF7Bw8UJyl7P/uQPsHRsgth2BK1kqV/ThF7QSiLEwKTkhWYoxqkpzpJHUTeTBriNzrfg/waGhGcQedIQFHlM1+LFiklQB/IhgLzD4uQXZdYbyz/qZODCOxsjBiUEObh08cTHGUJ5fQZaAzxN3FWqR0JictnTlxKbYA47YqgNEMf7BE+igV3/omocQfVM2r4x9VTtWDHniFLLIKEJ5jkOOIxPcWIYcMRQTqYTN+jKYr/i5RfKOHRZxLCBxanNULkxAwkalGGkSVR7YtGLbbSfTQfdp5E3FcIOs3kesBExFiPUpZMOqtMYK8Ja8YhEDvr+A/mPPFDRPZEbGI77hmWpCk1dSQmkmLI2RieTBjKw5hUVxg9sfbl38iuc0sFj3AFeB5gZfmwZTXfP4mk+ZrTNJpx1YEXxQTFPxQbvMynSSTFtOoSEOKDEoYti+8c6t3z2F11q3RiOi9wM0D9VT5LaCzSxGdFodDcSiINRa+NEWzZEmYbxFURRo9NMeL3MGC3gPzcP19rmM3ndG7jdK6UsCzdAMuD05EiHPTc9IfT46FYtEKA1knepwlKD/ckYgW1ZsGgL+syMVD8TcoBgCvCDdSIZYwQONwSQNI/LlLat3jfc+Voh8DqA12qI0mkwoK2Uv2I0GU01LLA25TgBUwdw76bHChtU7ngDWAxT7kqGbSpvSET2v3YrF5GmJ9QONzkY/smHVtmcmBdKO2p8CaA41yMbTI3k5P++2USo7UMUetYSjKTir4RNnyuxP9dlDu74GbEEVPxC6x2EGc95UKpMMbQfYYiDFoADf37hqx/emDGTdGo2orAJoDTW67EZezs+fWvVZFLBHHGGkaAc9s7JXrXXatvGu7WuBdQBhoEBiOkK2amddpTLNsMYgEcJANyN4eMOqbY9NG0jbulcA+CMt7LBDoUtTzmZ35TSXHXIU7cRVVFdOVv3SQyqPSORHAK19ja6tdFnJWbKNjqcq9qa4EVXXbrhr50/OGghAtHonQBz2uCMJQKlUmjUgeTnVsnbQEiYCQHSS7PWcgGxaufNRFf12Ryqds29nHEqc0Z5JlvgCVYq2BgD/8dNVO7acM5Dk9+wKgDjqsUNJKnme9z56OIt+vDRiIjhCtLJ6ivdzJm+bVm97GvgmgN+fvIjJTfL1MySNkpSQLMUN35GGyFc237l914wBaacnKwGN4x47mOJKOS/PuG3IAUNsRIDCqtw9j
1RtTU2ubVu7cDHwNoLW/mVjJTMil1JOHmkovmXJiOCPH28Y/rl+17bkZB5I8mKwGAvWAGTKoKKWsdO5RPE8ZA/sFSbcsGl7lw9O8wzb1tvnO7buipoKmtfeYVEq21Jvm7NHLroyzghRCHGx29PjzW+/avnfWgAC46O5WaEkjYg6mguusbUUFl5UIgAwq2lQUJgrRj027bpnuCz/9wNbdIvJFgGJ/ExvTcVzJlKetUmVXxjmwHsJg0aFj79m2asfBWQcCYMV+GKhLU+FgOj0qu/L06vBIUskg6KB2jhJGougnzqqSPJuX1q/Ysj/AvQA6WICHYCCTCj4ypV4yZYKB4IGDvkPCfXrLXTuPnjcgKdoXfw+MaVORQ4oFKlkFC5PSOyc8e6grjcPWNj9z1rX92b645QM/OyyqnwGIBz0SBGsgt5VJmZHcVsCAegMHfCfD/fiGv/v52HkHApCHyqeAI1ooeijxuZ2dPpNtiAqVrJKc1mCXgT+gtnTvObEt5/LyU3dvGFXVdFHygCcW6Ugst5WenkpFkUIwh7rU6Ue3rNhUe8GApGhfWgMMalBoL6xiK507IqdKwyZp+GPSGIhF/R/Omf861wHaO/kRAHMwYpvpPmPVVE95tuqq6fpGy3Sloaof2vzB3c0XHAhAe0cHNChxyJ9WKqJCRZI04gHfudnw85cdnv9PM8JIzsQgmz+4uymqHwQwh0K66GyS4Xdso+qq6bOLRsQMtS/wwAfW3vOE/6UBAnDF4fn/jMqzRDCDSW2qpopp/+vYBgdj53Bnx6J5b/y3GeOIZ2qgtfc84YWYytLDKQHs2EXVJXvRpsJh7SSMdz30ns+GXzogAG5o178rbBXAHoxdqXQN/1BI0lDZuOmP3vT1GWXtZ3KwdWs0Soe6OU4qHWm4oS5Jvkqv+vSMfskps/Fl6PK7l64Dro8vgnhZ+xBzIGDSd2xPbVy14+YZP0eZDZItwAoAcyRdpIyN2AFBJK6YjTlltr7VXX730h8Bt8b250xmFIBHN67a8fpZOdmaLepTNFGtZrQLokMp8SsFZMNdO3+AyneO48W+vWnlzkd/5YC0W9ceJJqVszmRzPb37MvvXvpNgI2rdtw2m/O4WZYIKmEV56H9H2yJEaIodXKjAAAAAElFTkSuQmCC",this.shadowUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACJ0lEQVR4Ae3ShY6bQRADYIeZ3v+9yszMDZPlkSWtslPuiS6+C+8n/zNp4p/froi8Jq/Jxk+TkwmHX//Wz8lG3jNjTeaguabD6HAVbphMwIIzqtd+rzKYhsgUNNcqo3fEBlyyOWmwhbbS4b8SaLBu7SGlpL9gklw3YpYR6J5Bm0zAguspZjvqSVQxqvxsPSJJKYIFKh5A2VIDyMgYfYB9hvcmI0VPTxVZS81ER7qiBoFqBAa9MKOKLzzv2BE3EOnlmDTrNRXryToGOGR65nhvSphjMP6b6WJ6xMYYxSW7l1Pp6CSzbLFPgAN3NGLKPRn3c59qxzapCTPUFNVKh0vUe24azMkW+uRm/B8UU3O3Eiw4nOrrafOSF5gS7PqHUotBQQ6f11p22HDOi+66i2LIHcWJOZrTP+rkhOl7n8YcTzCQIuIvyZPQrvs5Br0OdTsyB+YYrwKokXvsgOIXZzbeQ0DMnhHIqGOdBMEl9qKYAo3pBbbDNkijUSgjv/PrMFhwRwS2YbbMzqg+SzdukoxbeiSEVlgyK6yFmjSYtDxhTXRv1OsgsCb2jflu8hLMyC0P7Qg54NE1qc/MF5PqeAHWSfDL3zxN9dsQ+YD3zEeRS4GeYgFm5I7HNiJPfP4V7/CKeUvwsxpqhkwFzMgjj33Vwe+EnuIxngn8FvNTSCkwmJG+rQm8J/MId/EQL3nZwe2EmSNm9ufkFq9xHzcJPscnLGMRomBKqdzOY2EH+IPOLMEAAAAASUVORK5CYII=",this.marker={lat:50.4385274,lng:30.5211735},this.mapOptionsElement="",this.mapZoomMax=18,this.mapZoomStartMin=15,this.mapZoomStart=this.mapZoomStartMin,this.zoomInText=window.multiLang.allPages.zoomInText,this.zoomOutText=window.multiLang.allPages.zoomOutText,this.fullscreenText=window.multiLang.allPages.fullscreenText,this.mapText=window.multiLang.allPages.mapText}bindEvents(){document.getElementById(this.mapId)&&(this.initLeaflet(),this.disableScroll(),this.renderMarkers(),this.resizeMap())}initLeaflet(){this.map=Tt.a.map(this.mapId,{fullscreenControl:!0}),Tt.a.tileLayer(this.mainLayer,{maxZoom:this.mapZoomMax,id:"mapbox.streets"}).addTo(this.map),$(".leaflet-control-zoom-in").attr("aria-label",this.zoomInText),$(".leaflet-control-zoom-out").attr("aria-label",this.zoomOutText),$(".leaflet-control-zoom-fullscreen").attr("aria-label",this.fullscreenText),$("#contacts_map").attr("aria-label",this.mapText)}renderMarkers(){if(this.mapOptionsElement=document.getElementById(this.mapId),this.mapOptionsElement){let t=this.mapOptionsElement.getAttribute("data-coordinates"),e=this.mapOptionsElement.getAttribute("data-zoom");null!==t&&(t=t.split(",")),t&&(this.marker.lat=t[0],this.marker.lng=t[1]),e&&(parseInt(e)>this.mapZoomMax?this.mapZoomStart=this.mapZoomMax:this.mapZoomStart=e)}const t=Tt.a.icon({iconUrl:this.mainIcon,shadowUrl:this.shadowUrl,iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]});Tt.a.marker([this.marker.lat,this.marker.lng],{icon:t}).addTo(this.map),this.map.setView([this.marker.lat,this.marker.lng],this.mapZoomStart).setMaxZoom(this.mapZoomMax)}resizeMap(){this.map.on("resize",()=>{this.map.invalidateSize()})}disableScroll(){this.map.scrollWheelZoom.disable(),this.map.on("click",()=>{this.map.scrollWheelZoom.enabled()?this.map.scrollWheelZoom.disable():this.map.scrollWheelZoom.enable()})}}(t),window.addEventListener("resize",o),function(){const t=document.querySelector(".main-short__box")||"",e=document.querySelectorAll(".main-short__box > .item")||"",i=e.length;if(t&&e&&i)switch(i){case 1:t.classList.add("main-short_1");break;case 2:t.classList.add("main-short_2");break;case 3:t.classList.add("main-short_3");break;default:t.classList.add("main-short_more")}}(),xt(),function(){var t=$(".last_news_announce li"),e=t.length;t.slice(0,Math.floor(e/2)).addClass("first"),t.slice(e-Math.floor(e/2)).addClass("second");var i=$(".last_news_announce-item.second");$(".last_news_announce_right").html(i)}()}}}
vendor: 4,495 bytes, line 1
1,6:function(t,e,i){"use strict";i.r(e),function(t){i.d(e,"BrowserInfo",(function(){return n})),i.d(e,"NodeInfo",(function(){return o})),i.d(e,"SearchBotDeviceInfo",(function(){return a})),i.d(e,"BotInfo",(function(){return r})),i.d(e,"ReactNativeInfo",(function(){return l})),i.d(e,"detect",(function(){return c})),i.d(e,"browserName",(function(){return m})),i.d(e,"parseUserAgent",(function(){return f})),i.d(e,"detectOS",(function(){return g})),i.d(e,"getNodeVersion",(function(){return v}));var s=function(t,e,i){if(i||2===arguments.length)for(var s,n=0,o=e.length;n<o;n++)!s&&n in e||(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))},n=function(t,e,i){this.name=t,this.version=e,this.os=i,this.type="browser"},o=function(e){this.version=e,this.type="node",this.name="node",this.os=t.platform},a=function(t,e,i,s){this.name=t,this.version=e,this.os=i,this.bot=s,this.type="bot-device"},r=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},l=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},h=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],d=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function c(t){return t?f(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new l:"undefined"!=typeof navigator?f(navigator.userAgent):v()}function p(t){return""!==t&&u.reduce((function(e,i){var s=i[0],n=i[1];if(e)return e;var o=n.exec(t);return!!o&&[s,o]}),!1)}function m(t){var e=p(t);return e?e[0]:null}function f(t){var e=p(t);if(!e)return null;var i=e[0],o=e[1];if("searchbot"===i)return new r;var l=o[1]&&o[1].split(".").join("_").split("_").slice(0,3);l?l.length<3&&(l=s(s([],l,!0),function(t){for(var e=[],i=0;i<t;i++)e.push("0");return e}(3-l.length),!0)):l=[];var u=l.join("."),d=g(t),c=h.exec(t);return c&&c[1]?new a(i,u,d,c[1]):new n(i,u,d)}function g(t){for(var e=0,i=d.length;e<i;e++){var s=d[e],n=s[0];if(s[1].exec(t))return n}return null}
1function v(){return void 0!==t&&t.version?new o(t.version.slice(1)):null}}.call(this,i(5))},8:function(t,e,i){"use strict";e.a={api:{url:"/api",timeline:"/timeline",search:"/search",subscribeEmail:"/mail/create",share:"/base/sharing?url="}}}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.