PageSourceSearch

https://peres-family.eu/_Photos_de_voyage/Allemagne_2025/res/all.min.js?v=8.0.2

js peres-family.eu collected 2026-10-08 19:11:05 UTC 380,927 bytes, 24 lines download raw bytes

1/* all.min.js - Tiger skin scripts */
2var VER='8.0.2',DEBUG=false,LOCALE='fr-FR';
3;Texts = {and:'et',from:'De {0}',tooLong:'Ce texte est trop long pour être envoyé directement à l&apos;application de messagerie.',to:'À',subject:'Sujet',copyInstructions:'Le texte a été copié dans le presse-papier. Maintenant basculez dans votre messagerie (ou messagerie en ligne) et coller le. Déplacez "À" et "Object" dans les champs appropriés !',okButton:'OK',warning:'Avertissement',copiedToClipboard:'Copié dans le presse-papier !',continueBrowsing:'Continuer la navigation',removeAll:'Supprimer tout',feedbackButtonExplanation:'Essayez "Envoi" si vous utilisez une application de messagerie, ou "Copier" si c&apos;est une messagerie en ligne !',removeAllItems:'Supprimer tous les éléments?',yes:'Oui',no:'Non',rating:'Évaluation',print:'Imprimer',printLabel:'Imprimer cette photo sur votre imprimante',download:'Télécharger',addCart:'Ajouter au panier',shopLabel:'Ajouter cet article au panier',viewCart:'Voir le panier',viewCartLabel:'Afficher le panier d&apos;achat',fotomotoBtn:'Acheter / Partager',fotomotoTooltip:'Acheter des tirages ou des fichiers numériques, partager, envoyer des cartes électroniques gratuites',metaBtn:'Données photos',metaLabel:'Afficher les données photographiques (Exif/Iptc)',regionsBtn:'Gens',regionsLabel:'Afficher les personnes marquées',mapBtn:'Carte',mapLabel:'Afficher la localisation de la photo sur la carte',mostphotosBtn:'Achat',mostphotosLabel:'Télécharger cette image à partir de <b>mostphotos.com</b> !',share:'Partager',shareLabel:'Partager cette photo sur les réseaux sociaux',shareOn:'Partager sur',play:'Jouer',audioClipLabel:'Jouer / pause le fichier audio lié',startOver:'Recommencer',upOneLevel:'Remonter d&apos;un niveau',backToHome:'Retour à l&apos;accueil',backToIndex:'Retour à la page d&apos;index',nextFolder:'Dossier suivant',nextIndex:'Page d&apos;index suivante',atLastPageQuestion:'Où aller ensuite ?',atLastPage:'À la dernière page',clickToOpen:'Cliquer pour ouvrir ce document avec le lecteur associé',pauseShort:'Pause',startSlideshowShort:'Jouer',previousPicture:'Image précédente',previousPictureShort:'Précédente',upOneLevelShort:'Monter',zoom:'Zoom',oneToOneSize:'Taille 1:1',oneToOneSizeShort:'1:1',fitToScreen:'Adapter à l&apos;écran',fitToScreenShort:'Adapter',showThumbs:'Afficher les vignettes',showThumbsShort:'Vignettes',hideThumbs:'Cacher les vignettes',hideThumbsShort:'Cacher vignettes',showInfo:'Afficher légende / info',showInfoShort:'Info',hideInfo:'Cacher légende / info',hideInfoShort:'Cacher info',slideshow:'Diaporama',timing:'Minutage',startStopSlideshow:'Démarrer / arrêter le diaporama',fullscreen:'Plein écran',fullscreenShort:'Pleinécran',exitFullscreen:'Quitter le plein écran',exitFullscreenShort:'Normal',nextPicture:'Image suivante',nextPictureShort:'Suivante',closeWindow:'Fermer fenêtre',noMoreItems:'Vous ne pouvez pas acheter plus de 99 articles à la fois sur PayPal. Seuls les premiers 99 ont été ajoutés.',maxNItems:'Maximum <b>{0}</b> articles autorisés !',items:'articles',item:'article',couponRemoved:'Le coupon a été supprimé.',addMoreItems:'Ajouter {0} autre(s) article(s) pour utiliser ce coupon !',validAbove:'Valide seulement au-dessus {0} de valeur de panier.',amountLowerThan:'Le montant est inférieur à la remise <b>{0}</b>.',cartIsEmpty:'Le panier est vide',minimumCartValue:'La valeur minimale du panier est <b>{0}</b>',proceedToPayPal:'Passez à PayPal !',expired:'Le code coupon <b> {0} </b> a expiré !',minAmountWarning:'Ce coupon ne peut être utilisé que si le montant total est supérieur à <b>{0}</b>.',minQuantityWarning:'Ce coupon ne peut être utilisé que si le nombre d’éléments est supérieur à <b>{0}</b>.',lowerThanCurrent:'Ce coupon vous offre une réduction inférieure à l&apos;actuelle <b>{0}</b>.',couponAccepted:'Code coupon accepté, remise <b>{0}</b>.',success:'Succès',reclaimed:'Ce coupon a déjà été utilisé !',higherThanTotal:'Le coupon offre une remise (<b>{0}</b>) plus élevée que le total du panier.',noSuch:'Un tel coupon n&apos;existe pas !',cart:'Panier',view:'Voir',addSelectedItems:'Ajouter les articles sélectionnés !',addThisItem:'Ajouter cet article !',shoppingCart:'Panier d&apos;achat',edit:'Modifier',subtotal:'Sous-total',couponCode:'Code coupon',remove:'Supprimer',discount:'Remise',shippingAndHandling:'Frais de port et de manutention',tax:'Taxe',total:'Total',continueShopping:'Continuer les achats',emptyCart:'Panier vide',buyNow:'Acheter maintenant',processedByPaypal:'Paiement par PayPal',scrollTopTooltip:'Haut',checkThisOut:'Cet album vaut le détour',copied:'
3Copié',copy:'Copier',email:'Email',today:'aujourd&apos;hui',yesterday:'hier',yearsAgo:'il y a {0} années',monthsAgo:'il y a {0} mois',daysAgo:'il y a {0} jours',inThePast24Hours:'dans les 24 dernières heures',inThePast48Hours:'dans les 48 dernières heures',inThePastNYears:'ces {0} dernières années',inThePastNMonths:'ces {0} derniers mois',inThePastNDays:'ces {0} derniers jours',close:'Fermer',cookiePolicyText:'Cet album utilise des cookies pour mémoriser vos préférences. Il ne vous suit pas et ne stocke aucune donnée personnelle.',cookiePolicyAgree:'Bien compris',gdprComplianceText:'Ce site utilise les services externes suivants qui peuvent enregistrer vos visites de manière anonyme. La désactivation du suivi empêchera leur fonctionnement.',allowAll:'Autoriser tout',denyAll:'Refuser tout',allowSelected:'Autoriser sélectionnés',cookiePolicyLearnMore:'En savoir plus',restrictedLinkTitle:'Contenu restreint',restrictedLinkQuestion:'Merci de confirmer votre âge afin de continuer !',restrictedLinkYes:'J&apos;ai plus de 18 ans',restrictedLinkNo:'J&apos;ai moins de 18 ans',return:'retour',rendering:'Rendu',selectedItems:'Articles sélectionnés',label:'Étiquette',search:'Recherche',searchNew:'Rechercher nouvelles photos',loading:'Chargement',foundNTimes:'{0} photo(s)',foundTooMany:'{0} photos ; affichage uniquement des {1} premières',notFound:'aucun résultat',searchPlaceholder:'Recherche...',more:'plus',less:'moins',imagesTaken:'Images prises',imagesModified:'Images modifiées',imagesAdded:'Images ajoutées',betweenDays:'Entre {0} et {1} jour(s)',onDay:'Le jour {0}',afterDay:'Après le jour {0}',beforeDay:'Avant le jour {0}',sinceMyLastVisit:'depuis ma dernière visite',results:'Résultats',sortedBy:'Triés par',ascending:'ascendante',descending:'descendante',noRating:'Pas d&apos;évaluation',multipleSelectHint:'Utilisez MAJ pour sélectionner une plage, CTRL pour plusieurs entrées',select:'Sélectionner',reset:'Réinitialiser',sortBy:'Trier par',image:'image',images:'images',audio:'audio',audios:'audios',video:'vidéo',videos:'vidéos',other:'autre',others:'autres',fatalError:'Erreur fatale !'};
4!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).leaflet={})}(this,function(t){"use strict";function e(t){for(var e,i,n=1,o=arguments.length;n<o;n++)for(e in i=arguments[n])t[e]=i[e];return t}function i(){}function n(t,e){var i,n=Array.prototype.slice;return t.bind?t.bind.apply(t,n.call(arguments,1)):(i=n.call(arguments,2),function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)})}function o(t){return"_leaflet_id"in t||(t._leaflet_id=++Gt),t._leaflet_id}function s(t,e,i){var n,o,s=function(){n=!1,o&&(r.apply(i,o),o=!1)},r=function(){n?o=arguments:(t.apply(i,arguments),setTimeout(s,e),n=!0)};return r}function r(t,e,i){var n=e[1],o=n-(e=e[0]);return t===n&&i?t:((t-e)%o+o)%o+e}function a(){return!1}function h(t,e){return!1===e?t:(e=Math.pow(10,void 0===e?6:e),Math.round(t*e)/e)}function l(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return l(t).split(/\s+/)}function c(t,e){for(var i in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?qt(t.options):{}),e)t.options[i]=e[i];return t.options}function d(t,e,i){var n,o=[];for(n in t)o.push(encodeURIComponent(i?n.toUpperCase():n)+"="+encodeURIComponent(t[n]));return(e&&-1!==e.indexOf("?")?"&":"?")+o.join("&")}function _(t,e){return t.replace(Kt,function(t,i){if(void 0===(i=e[i]))throw new Error("No value provided for variable "+t);return i="function"==typeof i?i(e):i})}function p(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}function m(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}function f(t){var e=+new Date,i=Math.max(0,16-(e-Jt));return Jt=e+i,window.setTimeout(t,i)}function g(t,e,i){if(!i||$t!==f)return $t.call(window,n(t,e));t.call(e)}function v(t){t&&Qt.call(window,t)}function y(){}function x(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}function w(t,e,i){return t instanceof x?t:Yt(t)?new x(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new x(t.x,t.y):new x(t,e,i)}function b(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function P(t,e){return!t||t instanceof b?t:new b(t,e)}function T(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function M(t,e){return t instanceof T?t:new T(t,e)}function z(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 C(t,e,i){return t instanceof z?t:Yt(t)&&"object"!=typeof t[0]?3===t.length?new z(t[0],t[1],t[2]):2===t.length?new z(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new z(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new z(t,e,i)}
vendor: 4,230 bytes, line 4
4function Z(t,e,i,n){Yt(t)?(this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3]):(this._a=t,this._b=e,this._c=i,this._d=n)}function S(t,e,i,n){return new Z(t,e,i,n)}function E(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function k(t,e){for(var i,n,o,s,r="",a=0,h=t.length;a<h;a++){for(i=0,n=(o=t[a]).length;i<n;i++)r+=(i?"L":"M")+(s=o[i]).x+" "+s.y;r+=e?qe.svg?"z":"x":""}return r||"M0 0"}function O(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}function A(t){Qe[t.pointerId]=t}function B(t){Qe[t.pointerId]&&(Qe[t.pointerId]=t)}function I(t){delete Qe[t.pointerId]}function R(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Qe)e.touches.push(Qe[i]);e.changedTouches=[e],t(e)}}function N(t){return"string"==typeof t?document.getElementById(t):t}function D(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];return"auto"===(i=i&&"auto"!==i||!document.defaultView?i:(t=document.defaultView.getComputedStyle(t,null))?t[e]:null)?null:i}function j(t,e,i){return t=document.createElement(t),t.className=e||"",i&&i.appendChild(t),t}function H(t){var e=t.parentNode;e&&e.removeChild(t)}function W(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function F(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function U(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function V(t,e){return void 0!==t.classList?t.classList.contains(e):0<(t=Y(t)).length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t)}function q(t,e){var i;if(void 0!==t.classList)for(var n=u(e),o=0,s=n.length;o<s;o++)t.classList.add(n[o]);else V(t,e)||K(t,((i=Y(t))?i+" ":"")+e)}function G(t,e){void 0!==t.classList?t.classList.remove(e):K(t,l((" "+Y(t)+" ").replace(" "+e+" "," ")))}function K(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function Y(t){return void 0===(t=t.correspondingElement?t.correspondingElement:t).className.baseVal?t.className:t.className.baseVal}function X(t,e){if("opacity"in t.style)t.style.opacity=e;else if("filter"in t.style){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}}function J(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function $(t,e,i){e=e||new x(0,0),t.style[ii]=(qe.ie3d?"translate("+e.x+"px,"+e.y+"px)":"translate3d("+e.x+"px,"+e.y+"px,0)")+(i?" scale("+i+")":"")}function Q(t,e){t._leaflet_pos=e,qe.any3d?$(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function tt(t){return t._leaflet_pos||new x(0,0)}function et(){at(window,"dragstart",mt)}function it(){ht(window,"dragstart",mt)}function nt(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(ot(),de=(ce=t).style.outlineStyle,t.style.outlineStyle="none",at(window,"keydown",ot))}function ot(){ce&&(ce.style.outlineStyle=de,de=ce=void 0,ht(window,"keydown",ot))}function st(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function rt(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}function at(t,e,i,n){if(e&&"object"==typeof e)for(var o in e)ut(t,o,e[o],i);else for(var s=0,r=(e=u(e)).length;s<r;s++)ut(t,e[s],i,n);return this}function ht(t,e,i,n){if(1===arguments.length)lt(t),delete t[ri];else if(e&&"object"==typeof e)for(var o in e)ct(t,o,e[o],i);else if(e=u(e),2===arguments.length)lt(t,function(t){return-1!==p(e,t)});else for(var s=0,r=e.length;s<r;s++)ct(t,e[s],i,n);return this}function lt(t,e){for(var i in t[ri]){var n=i.split(/\d/)[0];e&&!e(n)||ct(t,n,null,null,i)}}function ut(t,e,i,n){var s,r,h=e+o(i)+(n?"_"+o(n):"");t[ri]&&t[ri][h]||(r=s=function(e){return i.call(n||t,e||window.event)},!qe.touchNative&&qe.pointer&&0===e.indexOf("touch")?s=function(t,e,i){return"touchstart"!==e||ti||(document.addEventListener(Ge,A,!0),document.addEventListener(Ke,B,!0),document.addEventListener(Ye,I,!0),document.addEventListener(Xe,I,!0),ti=!0),$e[e]?(i=$e[e].bind(this,i),t.addEventListener(Je[e],i,!1),i):(console.warn("wrong event specified:",e),a)}(t,e,s):qe.touch&&"dblclick"===e?s=function(t,e){function i(t){var i;
vendor: 13,895 bytes, line 4
41!==t.detail?n=t.detail:"mouse"===t.pointerType||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents||(i=gt(t)).some(function(t){return t instanceof HTMLLabelElement&&t.attributes.for})&&!i.some(function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement})||((i=Date.now())-o<=ei?2==++n&&e(function(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return(t=n).type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}(t)):n=1,o=i)}t.addEventListener("dblclick",e);var n,o=0;return t.addEventListener("click",i),{dblclick:e,simDblclick:i}}(t,s):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(ai[e]||e,s,!!qe.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?t.addEventListener(ai[e],s=function(e){e=e||window.event,xt(t,e)&&r(e)},!1):t.addEventListener(e,r,!1):t.attachEvent("on"+e,s),t[ri]=t[ri]||{},t[ri][h]=s)}function ct(t,e,i,n,s){s=s||e+o(i)+(n?"_"+o(n):"");var r,a;(i=t[ri]&&t[ri][s])&&(!qe.touchNative&&qe.pointer&&0===e.indexOf("touch")?(n=t,a=i,Je[r=e]?n.removeEventListener(Je[r],a,!1):console.warn("wrong event specified:",r)):qe.touch&&"dblclick"===e?(n=i,(a=t).removeEventListener("dblclick",n.dblclick),a.removeEventListener("click",n.simDblclick)):"removeEventListener"in t?t.removeEventListener(ai[e]||e,i,!1):t.detachEvent("on"+e,i),t[ri][s]=null)}function dt(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function _t(t){return ut(t,"wheel",dt),this}function pt(t){return at(t,"mousedown touchstart dblclick contextmenu",dt),t._leaflet_disable_click=!0,this}function mt(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function ft(t){return mt(t),dt(t),this}function gt(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function vt(t,e){var i,n;return e?(n=(i=rt(e)).boundingClientRect,new x((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)):new x(t.clientX,t.clientY)}function yt(t){return qe.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/hi: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 xt(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}function wt(t){return new ci(t)}function bt(t,e,i){for(var n,o,s,r,a,h,l,u=[1,4,2,8],c=0,d=t.length;c<d;c++)t[c]._code=Zt(t[c],e);for(s=0;s<4;s++){for(h=u[s],n=[],c=0,o=(d=t.length)-1;c<d;o=c++)r=t[c],a=t[o],r._code&h?a._code&h||((l=Ct(a,r,h,e,i))._code=Zt(l,e),n.push(l)):(a._code&h&&((l=Ct(a,r,h,e,i))._code=Zt(l,e),n.push(l)),n.push(r));t=n}return t}function Pt(t,e){var i,n,o,s,r,a,h;if(!t||0===t.length)throw new Error("latlngs not passed");Et(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);for(var l=C([0,0]),u=M(t),c=(u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest())<1700&&(l=Lt(t)),t.length),d=[],_=0;_<c;_++){var p=C(t[_]);d.push(e.project(C([p.lat-l.lat,p.lng-l.lng])))}for(_=r=a=h=0,i=c-1;_<c;i=_++)n=d[_],o=d[i],s=n.y*o.x-o.y*n.x,a+=(n.x+o.x)*s,h+=(n.y+o.y)*s,r+=3*s;return u=0===r?d[0]:[a/r,h/r],u=e.unproject(w(u)),C([u.lat+l.lat,u.lng+l.lng])}function Lt(t){for(var e=0,i=0,n=0,o=0;o<t.length;o++){var s=C(t[o]);e+=s.lat,i+=s.lng,n++}return C([e/n,i/n])}function Tt(t,e){if(e&&t.length){var i=t=function(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;n<s;n++)(function(t,e){var i=e.x-t.x;return i*i+(e=e.y-t.y)*e})(t[n],t[o])>e&&(i.push(t[n]),o=n);return o<s-1&&i.push(t[s-1]),i}(t,e*=e),n=i.length,o=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);o[0]=o[n-1]=1,function t(e,i,n,o,s){var r,a,h,l=0;for(a=o+1;a<=s-1;a++)h=St(e[a],e[o],e[s],!0),l<h&&(r=a,l=h);n<l&&(i[r]=1,t(e,i,n,o,r),t(e,i,n,r,s))}(i,o,e,0,n-1);var s,r=[];for(s=0;s<n;s++)o[s]&&r.push(i[s]);return r}return t.slice()}function Mt(t,e,i){return Math.sqrt(St(t,e,i,!0))}function zt(t,e,i,n,o){var s,r,a,h=n?si:Zt(t,i),l=Zt(e,i);for(si=l;;){if(!(h|l))return[t,e];if(h&l)return!1;a=Zt(r=Ct(t,e,s=h||l,i,o),i),s===h?(t=r,h=a):(e=r,l=a)}}function Ct(t,e,i,n,o){var s,r,a=e.x-t.x,e=e.y-t.y,h=n.min,n=n.max;return 8&i?(s=t.x+a*(n.y-t.y)/e,r=n.y):4&i?(s=t.x+a*(h.y-t.y)/e,r=h.y):2&i?(s=n.x,r=t.y+e*(n.x-t.x)/a):1&i&&(s=h.x,r=t.y+e*(h.x-t.x)/a),new x(s,r,o)}function Zt(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 St(t,e,i,n){var o=e.x,e=e.y,s=i.x-o,r=i.y-e,a=s*s+r*r;return 0<a&&(1<(a=((t.x-o)*s+(t.y-e)*r)/a)?(o=i.x,e=i.y):0<a&&(o+=s*a,e+=r*a)),s=t.x-o,r=t.y-e,n?s*s+r*r:new x(o,e)}function Et(t){return!Yt(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function kt(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Et(t)}function Ot(t,e){var i,n,o,s,r,a;if(!t||0===t.length)throw new Error("latlngs not passed");Et(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);for(var h=C([0,0]),l=M(t),u=(l.getNorthWest().distanceTo(l.getSouthWest())*l.getNorthEast().distanceTo(l.getNorthWest())<1700&&(h=Lt(t)),t.length),c=[],d=0;d<u;d++){var _=C(t[d]);c.push(e.project(C([_.lat-h.lat,_.lng-h.lng])))}for(i=d=0;d<u-1;d++)i+=c[d].distanceTo(c[d+1])/2;if(0===i)a=c[0];else for(n=d=0;d<u-1;d++)if(o=c[d],s=c[d+1],i<(n+=r=o.distanceTo(s))){a=[s.x-(r=(n-i)/r)*(s.x-o.x),s.y-r*(s.y-o.y)];break}return l=e.unproject(w(a)),C([l.lat+h.lat,l.lng+h.lng])}function At(t,e){var i,n,o,s,r="Feature"===t.type?t.geometry:t,a=r?r.coordinates:null,h=[],l=e&&e.pointToLayer,u=e&&e.coordsToLatLng||It;if(!a&&!r)return null;switch(r.type){case"Point":return Bt(l,t,i=u(a),e);case"MultiPoint":for(o=0,s=a.length;o<s;o++)i=u(a[o]),h.push(Bt(l,t,i,e));return new xi(h);case"LineString":case"MultiLineString":return n=Rt(a,"LineString"===r.type?0:1,u),new Ci(n,e);case"Polygon":case"MultiPolygon":return n=Rt(a,"Polygon"===r.type?1:2,u),new Zi(n,e);case"GeometryCollection":for(o=0,s=r.geometries.length;o<s;o++){var c=At({geometry:r.geometries[o],type:"Feature",properties:t.properties},e);c&&h.push(c)}return new xi(h);case"FeatureCollection":for(o=0,s=r.features.length;o<s;o++){var d=At(r.features[o],e);d&&h.push(d)}return new xi(h);default:throw new Error("Invalid GeoJSON object.")}}function Bt(t,e,i,n){return t?t(e,i):new Li(i,n&&n.markersInheritOptions&&n)}function It(t){return new z(t[1],t[0],t[2])}function Rt(t,e,i){for(var n,o=[],s=0,r=t.length;s<r;s++)n=e?Rt(t[s],e-1,i):(i||It)(t[s]),o.push(n);return o}function Nt(t,e){return void 0!==(t=C(t)).alt?[h(t.lng,e),h(t.lat,e),h(t.alt,e)]:[h(t.lng,e),h(t.lat,e)]}function Dt(t,e,i,n){for(var o=[],s=0,r=t.length;s<r;s++)o.push(e?Dt(t[s],Et(t[s])?0:e-1,i,n):Nt(t[s],n));return!e&&i&&0<o.length&&o.push(o[0].slice()),o}function jt(t,i){return t.feature?e({},t.feature,{geometry:i}):Ht(i)}function Ht(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}function Wt(t,e){return new Si(t,e)}function Ft(t,e){return new Di(t,e)}function Ut(t){return qe.canvas?new Wi(t):null}function Vt(t){return qe.svg||qe.vml?new Vi(t):null}var qt=Object.create||function(t){return i.prototype=t,new i},Gt=0,Kt=/\{ *([\w_ -]+) *\}/g,Yt=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},Xt="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",Jt=0,$t=window.requestAnimationFrame||m("RequestAnimationFrame")||f,Qt=window.cancelAnimationFrame||m("CancelAnimationFrame")||m("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)},te={__proto__:null,extend:e,create:qt,bind:n,get lastId(){return Gt},stamp:o,throttle:s,wrapNum:r,falseFn:a,formatNum:h,trim:l,splitWords:u,setOptions:c,getParamString:d,template:_,isArray:Yt,indexOf:p,emptyImageUrl:Xt,requestFn:$t,cancelFn:Qt,requestAnimFrame:g,cancelAnimFrame:v};y.extend=function(t){function i(){c(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var n,o=i.__super__=this.prototype,s=qt(o);for(n in(s.constructor=i).prototype=s,this)Object.prototype.hasOwnProperty.call(this,n)&&"prototype"!==n&&"__super__"!==n&&(i[n]=this[n]);if(t.statics&&e(i,t.statics),t.includes){var r=t.includes;if("undefined"!=typeof L&&L&&L.Mixin){r=Yt(r)?r:[r];for(var a=0;a<r.length;a++)r[a]===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)}e.apply(null,[s].concat(t.includes))}return e(s,t),delete s.statics,delete s.includes,s.options&&(s.options=o.options?qt(o.options):{},e(s.options,t.options)),s._initHooks=[],s.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=s._initHooks.length;t<e;t++)s._initHooks[t].call(this)}},i},y.include=function(t){var i=this.prototype.options;return e(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},y.mergeOptions=function(t){return e(this.prototype.options,t),this},y.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 ee={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var o=0,s=(t=u(t)).length;o<s;o++)this._on(t[o],e,i);return this},off:function(t,e,i){if(arguments.length)if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else{t=u(t);for(var o=1===arguments.length,s=0,r=t.length;s<r;s++)o?this._off(t[s]):this._off(t[s],e,i)}else delete this._events;return this},_on:function(t,e,i,n){"function"!=typeof e?console.warn("wrong listener type: "+typeof e):!1===this._listens(t,e,i)&&(e={fn:e,ctx:i=i===this?void 0:i},n&&(e.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e))},_off:function(t,e,i){var n,o,s;if(this._events&&(n=this._events[t]))if(1===arguments.length){if(this._firingCount)for(o=0,s=n.length;o<s;o++)n[o].fn=a;delete this._events[t]}else"function"!=typeof e?console.warn("wrong listener type: "+typeof e):!1!==(e=this._listens(t,e,i))&&(i=n[e],this._firingCount&&(i.fn=a,this._events[t]=n=n.slice()),n.splice(e,1))},fire:function(t,i,n){if(this.listens(t,n)){var o=e({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var r=0,a=s.length;r<a;r++){var h=s[r],l=h.fn;h.once&&this.off(t,l,h.ctx),l.call(h.ctx||this,o)}this._firingCount--}}n&&this._propagateEvent(o)}return this},listens:function(t,e,i,n){"string"!=typeof t&&console.warn('"string" type argument expected');var o=e,s=("function"!=typeof e&&(n=!!e,i=o=void 0),this._events&&this._events[t]);if(s&&s.length&&!1!==this._listens(t,o,i))return!0;if(n)for(var r in this._eventParents)if(this._eventParents[r].listens(t,e,i,n))return!0;return!1},_listens:function(t,e,i){if(this._events){var n=this._events[t]||[];if(!e)return!!n.length;i===this&&(i=void 0);for(var o=0,s=n.length;o<s;o++)if(n[o].fn===e&&n[o].ctx===i)return o}return!1},once:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e,!0);else for(var o=0,s=(t=u(t)).length;o<s;o++)this._on(t[o],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)}},ie=(ee.addEventListener=ee.on,ee.removeEventListener=ee.clearAllEventListeners=ee.off,ee.addOneTimeEventListener=ee.once,ee.fireEvent=ee.fire,ee.hasEventListeners=ee.listens,y.extend(ee)),ne=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};x.prototype={clone:function(){return new x(this.x,this.y)},add:function(t){return this.clone()._add(w(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(w(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 x(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new x(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=ne(this.x),this.y=ne(this.y),this},distanceTo:function(t){var e=(t=w(t)).x-this.x,t=t.y-this.y;return Math.sqrt(e*e+t*t)},equals:function(t){return(t=w(t)).x===this.x&&t.y===this.y},contains:function(t){return t=w(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)+")"}},b.prototype={extend:function(t){var e,i;if(t){if(t instanceof x||"number"==typeof t[0]||"x"in t)e=i=w(t);else if(e=(t=P(t)).min,i=t.max,!e||!i)return this;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,349 bytes, line 4
4clone())}return this},getCenter:function(t){return w((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return w(this.min.x,this.max.y)},getTopRight:function(){return w(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 x?w:P)(t))instanceof b?(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=P(t);var e=this.min,i=this.max,n=t.min,o=(t=t.max).x>=e.x&&n.x<=i.x,t=t.y>=e.y&&n.y<=i.y;return o&&t},overlaps:function(t){t=P(t);var e=this.min,i=this.max,n=t.min,o=(t=t.max).x>e.x&&n.x<i.x,t=t.y>e.y&&n.y<i.y;return o&&t},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t,t=Math.abs(e.y-i.y)*t;return P(w(e.x-n,e.y-t),w(i.x+n,i.y+t))},equals:function(t){return!!t&&(t=P(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},T.prototype={extend:function(t){var e,i,n=this._southWest,o=this._northEast;if(t instanceof z)i=e=t;else{if(!(t instanceof T))return t?this.extend(C(t)||M(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||o?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),o.lat=Math.max(i.lat,o.lat),o.lng=Math.max(i.lng,o.lng)):(this._southWest=new z(e.lat,e.lng),this._northEast=new z(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,t=Math.abs(e.lng-i.lng)*t;return new T(new z(e.lat-n,e.lng-t),new z(i.lat+n,i.lng+t))},getCenter:function(){return new z((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 z(this.getNorth(),this.getWest())},getSouthEast:function(){return new z(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 z||"lat"in t?C:M)(t);var e,i,n=this._southWest,o=this._northEast;
vendor: 2,175 bytes, line 4
4return t instanceof T?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=M(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=(t=t.getNorthEast()).lat>=e.lat&&n.lat<=i.lat,t=t.lng>=e.lng&&n.lng<=i.lng;return o&&t},overlaps:function(t){t=M(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=(t=t.getNorthEast()).lat>e.lat&&n.lat<i.lat,t=t.lng>e.lng&&n.lng<i.lng;return o&&t},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=M(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}};var oe={latLngToPoint:function(t,e){return t=this.projection.project(t),e=this.scale(e),this.transformation._transform(t,e)},pointToLatLng:function(t,e){return e=this.scale(e),t=this.transformation.untransform(t,e),this.projection.unproject(t)},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){var e;return this.infinite?null:(e=this.projection.bounds,t=this.scale(t),new b(this.transformation.transform(e.min,t),this.transformation.transform(e.max,t)))},infinite:!(z.prototype={equals:function(t,e){return!!t&&(t=C(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 se.distance(this,C(t))},wrap:function(){return se.wrapLatLng(this)},toBounds:function(t){var e=(t=180*t/40075017)/Math.cos(Math.PI/180*this.lat);return M([this.lat-t,this.lng-e],[this.lat+t,this.lng+e])},clone:function(){return new z(this.lat,this.lng,this.alt)}}),wrapLatLng:function(t){var e=this.wrapLng?r(t.lng,this.wrapLng,!0):t.lng;return new z(this.wrapLat?r(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,e=e.lng-i.lng;
vendor: 4,157 bytes, line 4
4return 0==n&&0==e?t:(i=t.getSouthWest(),t=t.getNorthEast(),new T(new z(i.lat-n,i.lng-e),new z(t.lat-n,t.lng-e)))}},se=e({},oe,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,s=Math.sin((e.lat-t.lat)*i/2),e=Math.sin((e.lng-t.lng)*i/2),t=s*s+Math.cos(n)*Math.cos(o)*e*e,i=2*Math.atan2(Math.sqrt(t),Math.sqrt(1-t));return this.R*i}}),re={R:re=6378137,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,i=Math.max(Math.min(i,t.lat),-i),i=Math.sin(i*e);return new x(this.R*t.lng*e,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(t){var e=180/Math.PI;return new z((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:new b([-(re*=Math.PI),-re],[re,re])};Z.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return t.x=(e=e||1)*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return new x((t.x/(e=e||1)-this._b)/this._a,(t.y/e-this._d)/this._c)}};var ae,he,le,ue,ce,de,_e=e({},se,{code:"EPSG:3857",projection:re,transformation:S(_e=.5/(Math.PI*re.R),.5,-_e,.5)}),pe=e({},_e,{code:"EPSG:900913"}),me=document.documentElement.style,fe="ActiveXObject"in window,ge=fe&&!document.addEventListener,ve="msLaunchUri"in navigator&&!("documentMode"in document),ye=O("webkit"),xe=O("android"),we=O("android 2")||O("android 3"),be=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),be=xe&&O("Google")&&be<537&&!("AudioNode"in window),Pe=!!window.opera,Le=!ve&&O("chrome"),Te=O("gecko")&&!ye&&!Pe&&!fe,Me=!Le&&O("safari"),ze=O("phantom"),Ce="OTransition"in me,Ze=0===navigator.platform.indexOf("Win"),Se=fe&&"transition"in me,Ee="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!we,me="MozPerspective"in me,ke=!window.L_DISABLE_3D&&(Se||Ee||me)&&!Ce&&!ze,Oe=(Gi="undefined"!=typeof orientation||O("mobile"))&&ye,Ae=Gi&&Ee,Be=!window.PointerEvent&&window.MSPointerEvent,Ie=!(!window.PointerEvent&&!Be),Re="ontouchstart"in window||!!window.TouchEvent,Ne=!window.L_NO_TOUCH&&(Re||Ie),De=Gi&&Pe,je=Gi&&Te,He=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),We=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",a,e),window.removeEventListener("testPassiveEventSupport",a,e)}catch(t){}return t}(),Fe=!!document.createElement("canvas").getContext,Ue=!(!document.createElementNS||!E("svg").createSVGRect),Ve=!!Ue&&((Ve=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(Ve.firstChild&&Ve.firstChild.namespaceURI)),qe={ie:fe,ielt9:ge,edge:ve,webkit:ye,android:xe,android23:we,androidStock:be,opera:Pe,chrome:Le,gecko:Te,safari:Me,phantom:ze,opera12:Ce,win:Ze,ie3d:Se,webkit3d:Ee,gecko3d:me,any3d:ke,mobile:Gi,mobileWebkit:Oe,mobileWebkit3d:Ae,msPointer:Be,pointer:Ie,touch:Ne,touchNative:Re,mobileOpera:De,mobileGecko:je,retina:He,passiveEvents:We,canvas:Fe,svg:Ue,vml:!Ue&&function(){try{var t=document.createElement("div"),e=(t.innerHTML='<v:shape adj="1"/>',t.firstChild);return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),inlineSvg:Ve,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Ge=qe.msPointer?"MSPointerDown":"pointerdown",Ke=qe.msPointer?"MSPointerMove":"pointermove",Ye=qe.msPointer?"MSPointerUp":"pointerup",Xe=qe.msPointer?"MSPointerCancel":"pointercancel",Je={touchstart:Ge,touchmove:Ke,touchend:Ye,touchcancel:Xe},$e={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&mt(e),R(t,e)},touchmove:R,touchend:R,touchcancel:R},Qe={},ti=!1,ei=200,ii=J(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ni=J(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),oi="webkitTransition"===ni||"OTransition"===ni?ni+"End":"transitionend";ue="onselectstart"in document?(le=function(){at(window,"selectstart",mt)},function(){ht(window,"selectstart",mt)}):(he=J(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),le=function(){var t;
vendor: 4,099 bytes, line 4
4he&&(t=document.documentElement.style,ae=t[he],t[he]="none")},function(){he&&(document.documentElement.style[he]=ae,ae=void 0)}),fe={__proto__:null,TRANSFORM:ii,TRANSITION:ni,TRANSITION_END:oi,get:N,getStyle:D,create:j,remove:H,empty:W,toFront:F,toBack:U,hasClass:V,addClass:q,removeClass:G,setClass:K,getClass:Y,setOpacity:X,testProp:J,setTransform:$,setPosition:Q,getPosition:tt,get disableTextSelection(){return le},get enableTextSelection(){return ue},disableImageDrag:et,enableImageDrag:it,preventOutline:nt,restoreOutline:ot,getSizedParentNode:st,getScale:rt};var si,ri="_leaflet_events",ai={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"},hi=qe.linux&&qe.chrome?window.devicePixelRatio:qe.mac?3*window.devicePixelRatio:0<window.devicePixelRatio?2*window.devicePixelRatio:1,ge={__proto__:null,on:at,off:ht,stopPropagation:dt,disableScrollPropagation:_t,disableClickPropagation:pt,preventDefault:mt,stop:ft,getPropagationPath:gt,getMousePosition:vt,getWheelDelta:yt,isExternalTarget:xt,addListener:at,removeListener:ht},li=ie.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=tt(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=g(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){t=this._startPos.add(this._offset.multiplyBy(t)),e&&t._round(),Q(this._el,t),this.fire("step")},_complete:function(){v(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),ui=ie.extend({options:{crs:_e,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=n(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(C(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ni&&qe.any3d&&!qe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),at(this._proxy,oi,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,n){return i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(C(t),i,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=e({animate:n.animate},n.zoom),n.pan=e({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,i,n.pan&&n.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||(qe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(qe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),t=(t instanceof x?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),n=this.containerPointToLatLng(o.add(t));return this.setView(n,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():M(t);var i=w(e.paddingTopLeft||e.padding||[0,0]),n=w(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));return(o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0?{center:t.getCenter(),zoom:o}
vendor: 4,087 bytes, line 4
4:(e=n.subtract(i).divideBy(2),n=this.project(t.getSouthWest(),o),i=this.project(t.getNorthEast(),o),{center:this.unproject(n.add(i).divideBy(2).add(e),o),zoom:o})},fitBounds:function(t,e){if((t=M(t)).isValid())return t=this._getBoundsCenterZoom(t,e),this.setView(t.center,t.zoom,e);throw new Error("Bounds are not valid.")},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){var i;return e=e||{},(t=w(t).round()).x||t.y?(!0===e.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new li,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate?(q(this._mapPane,"leaflet-pan-anim"),i=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)):(this._rawPanBy(t),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this):this.fire("moveend")},flyTo:function(t,e,i){function n(t){return t=(c*c-u*u+(t?-1:1)*p*p*d*d)/(2*(t?c:u)*p*d),(t=Math.sqrt(t*t+1)-t)<1e-9?-18:Math.log(t)}function o(t){return(Math.exp(t)-Math.exp(-t))/2}function s(t){return(Math.exp(t)+Math.exp(-t))/2}if(!1===(i=i||{}).animate||!qe.any3d)return this.setView(t,e,i);this._stop();var r=this.project(this.getCenter()),a=this.project(t),h=this.getSize(),l=this._zoom,u=(t=C(t),e=void 0===e?l:e,Math.max(h.x,h.y)),c=u*this.getZoomScale(l,e),d=a.distanceTo(r)||1,_=1.42,p=_*_,m=n(0),f=Date.now(),v=(n(1)-m)/_,y=i.duration?1e3*i.duration:1e3*v*.8;return this._moveStart(!0,i.noMoveStart),function i(){var n=(Date.now()-f)/y,h=(1-Math.pow(1-n,1.5))*v;n<=1?(this._flyToFrame=g(i,this),this._move(this.unproject(r.add(a.subtract(r).multiplyBy(function(t){return u*(s(m)*(o(t=m+_*t)/s(t))-o(m))/p}(h)/d)),l),this.getScaleZoom(u/(n=h,u*(s(m)/s(m+_*n))),l),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){return t=this._getBoundsCenterZoom(t,e),this.flyTo(t.center,t.zoom,e)},setMaxBounds:function(t){return t=M(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(),t=this._limitCenter(i,this._zoom,M(t));return i.equals(t)||this.panTo(t,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=w((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=w(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),t=this.project(t),s=(i=P([(s=this.getPixelBounds()).min.add(i),s.max.subtract(n)])).getSize();return i.contains(t)||(this._enforcingBounds=!0,n=t.subtract(i.getCenter()),i=i.extend(t).getSize().subtract(s),o.x+=n.x<0?-i.x:i.x,o.y+=n.y<0?-i.y:i.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize(),o=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),s=i.divideBy(2).round(),r=o.divideBy(2).round();return(s=s.subtract(r)).x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(n(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){var i,o;
vendor: 6,586 bytes, line 4
4return t=this._locateOptions=e({timeout:1e4,watch:!1},t),"geolocation"in navigator?(i=n(this._handleGeolocationResponse,this),o=n(this._handleGeolocationError,this),t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,o,t):navigator.geolocation.getCurrentPosition(i,o,t)):this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e;this._container._leaflet_id&&(e=t.code,t=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: "+t+"."}))},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e,i,n=new z(t.coords.latitude,t.coords.longitude),o=n.toBounds(2*t.coords.accuracy),s=this._locateOptions,r=(s.setView&&(e=this.getBoundsZoom(o),this.setView(n,s.maxZoom?Math.min(e,s.maxZoom):e)),{latlng:n,bounds:o,timestamp:t.timestamp});for(i in t.coords)"number"==typeof t.coords[i]&&(r[i]=t.coords[i]);this.fire("locationfound",r)}},addHandler:function(t,e){return e&&(e=this[t]=new e(this),this._handlers.push(e),this.options[t]&&e.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}for(var t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),H(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(v(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)H(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){return e=j("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane),t&&(this._panes[t]=e),e},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 T(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._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=M(t),i=w(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),t=t.getSouthEast(),i=this.getSize().subtract(i),t=P(this.project(t,n),this.project(r,n)).getSize(),r=qe.any3d?this.options.zoomSnap:1,a=i.x/t.x,i=i.y/t.y,t=e?Math.max(a,i):Math.min(a,i),n=this.getScaleZoom(t,n);return r&&(n=Math.round(n/(r/100))*(r/100),n=e?Math.ceil(n/r)*r:Math.floor(n/r)*r),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new x(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){return t=this._getTopLeftPoint(t,e),new b(t,t.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,t=(e=void 0===e?this._zoom:e,i.zoom(t*i.scale(e)));return isNaN(t)?1/0:t},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(C(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(w(t),e)},layerPointToLatLng:function(t){return t=w(t).add(this.getPixelOrigin()),this.unproject(t)},latLngToLayerPoint:function(t){return this.project(C(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(C(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(M(t))},distance:function(t,e){return this.options.crs.distance(C(t),C(e))},containerPointToLayerPoint:function(t){return w(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return w(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){return t=this.containerPointToLayerPoint(w(t)),this.layerPointToLatLng(t)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(C(t)))},mouseEventToContainerPoint:function(t){return vt(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){if(!(t=this._container=N(t)))throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");at(t,"scroll",this._onScroll,this),this._containerId=o(t)},_initLayout:function(){var t=this._container,e=(this._fadeAnimated=this.options.fadeAnimation&&qe.any3d,q(t,"leaflet-container"+(qe.touch?" leaflet-touch":"")+(qe.retina?" leaflet-retina":"")+(qe.ielt9?" leaflet-oldie":"")+(qe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),D(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),Q(this._mapPane,new x(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(q(t.markerPane,"leaflet-zoom-hide"),q(t.shadowPane,"leaflet-zoom-hide"))}
vendor: 4,158 bytes, line 4
4,_resetView:function(t,e,i){Q(this._mapPane,new x(0,0));var n=!this._loaded,o=(this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset"),this._zoom!==e);this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||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 v(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Q(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={};var e=t?ht:at;e((this._targets[o(this._container)]=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),qe.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){v(this._resizeRequest),this._resizeRequest=g(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,n=[],s="mouseout"===e||"mouseover"===e,r=t.target||t.srcElement,a=!1;r;){if((i=this._targets[o(r)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){a=!0;break}if(i&&i.listens(e,!0)){if(s&&!xt(r,t))break;if(n.push(i),s)break}if(r===this._container)break;r=r.parentNode}return n=n.length||a||s||!this.listens(e,!0)?n:[this]},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e,i=t.target||t.srcElement;!this._loaded||i._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(i)||("mousedown"===(e=t.type)&&nt(i),this._fireDOMEvent(t,e))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,n){"click"===t.type&&((h=e({},t)).type="preclick",this._fireDOMEvent(h,h.type,n));var o=this._findEventTargets(t,i);if(n){for(var s=[],r=0;r<n.length;r++)n[r].listens(i,!0)&&s.push(n[r]);o=s.concat(o)}if(o.length){"contextmenu"===i&&mt(t);var a,h=o[0],l={originalEvent:t};for("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(a=h.getLatLng&&(!h._radius||h._radius<=10),l.containerPoint=a?this.latLngToContainerPoint(h.getLatLng()):this.mouseEventToContainerPoint(t),l.layerPoint=this.containerPointToLayerPoint(l.containerPoint),l.latlng=a?h.getLatLng():this.layerPointToLatLng(l.layerPoint)),r=0;r<o.length;r++)if(o[r].fire(i,l,!0),l.originalEvent._stopped||!1===o[r].options.bubblingMouseEvents&&-1!==p(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 tt(this._mapPane)||new x(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()}
vendor: 11,498 bytes, line 4
4,_latLngToNewLayerPoint:function(t,e,i){return i=this._getNewPixelOrigin(i,e),this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,i){return i=this._getNewPixelOrigin(i,e),P([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){var n,o;return!i||(n=this.project(t,e),o=this.getSize().divideBy(2),o=new b(n.subtract(o),n.add(o)),o=this._getBoundsOffset(o,i,e),Math.abs(o.x)<=1&&Math.abs(o.y)<=1)?t:this.unproject(n.add(o),e)},_limitOffset:function(t,e){var i;return e?(i=new b((i=this.getPixelBounds()).min.add(t),i.max.add(t)),t.add(this._getBoundsOffset(i,e))):t},_getBoundsOffset:function(t,e,i){return e=P(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),i=e.min.subtract(t.min),e=e.max.subtract(t.max),new x(this._rebound(i.x,-e.x),this._rebound(i.y,-e.y))},_rebound:function(t,e){return 0<t+e?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(),n=qe.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){G(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){return t=this._getCenterOffset(t)._trunc(),!(!0!==(e&&e.animate)&&!this.getSize().contains(t)||(this.panBy(t,e),0))},_createAnimProxy:function(){var t=this._proxy=j("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=ii,i=this._proxy.style[e];$(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(){H(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();$(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(!this._animatingZoom){if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),n=this._getCenterOffset(t)._divideBy(1-1/n);if(!0!==i.animate&&!this.getSize().contains(n))return!1;g(function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)},this)}return!0},_animateZoom:function(t,e,i,o){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,q(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(n(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&G(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))}}),ci=y.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(),t=t._controlCorners[i];return q(e,"leaflet-control"),-1!==i.indexOf("bottom")?t.insertBefore(e,t.firstChild):t.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(H(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0<t.screenX&&0<t.screenY&&this._map.getContainer().focus()}}),di=(ui.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){function t(t,o){e[t+o]=j("div",i+t+" "+i+o,n)}var e=this._controlCorners={},i="leaflet-",n=this._controlContainer=j("div",i+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)H(this._controlCorners[t]);H(this._controlContainer),delete this._controlCorners,delete this._controlContainer}}),ci.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in c(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),(this._map=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 ci.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){return t.off("add remove",this._onLayerChange,this),(t=this._getLayer(o(t)))&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){q(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?(q(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):G(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return G(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=j("div",t),i=this.options.collapsed,n=(e.setAttribute("aria-haspopup",!0),pt(e),_t(e),this._section=j("section",t+"-list")),o=(i&&(this._map.on("click",this.collapse,this),at(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)),this._layersLink=j("a",t+"-toggle",e));o.href="#",o.title="Layers",o.setAttribute("role","button"),at(o,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){mt(t),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=j("div",t+"-base",n),this._separator=j("div",t+"-separator",n),this._overlaysList=j("div",t+"-overlays",n),e.appendChild(n)},_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(n(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){W(this._baseLayersList),W(this._overlaysList),this._layerControlInputs=[];for(var t,e,i,n=0,o=0;o<this._layers.length;o++)i=this._layers[o],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,n+=i.overlay?0:1;this.options.hideSingleBase&&(this._baseLayersList.style.display=(t=t&&1<n)?"":"none"),this._separator.style.display=e&&t?"":"none"}return this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(o(t.target));(t=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null)&&this._map.fire(t,e)},_createRadioElement:function(t,e){return t='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",e=document.createElement("div"),e.innerHTML=t,e.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer),s=((n=(t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+o(this),n),this._layerControlInputs.push(e),e.layerId=o(t.layer),at(e,"click",this._onInputClick,this),document.createElement("span"))).innerHTML=" "+t.name,document.createElement("span"));return i.appendChild(s),s.appendChild(e),s.appendChild(n),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=i.length-1;0<=s;s--)t=i[s],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<n.length;s++)this._map.hasLayer(n[s])||this._map.addLayer(n[s]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),o=i.length-1;0<=o;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section,e=(this._preventClick=!0,at(t,"click",mt),this.expand(),this);setTimeout(function(){ht(t,"click",mt),e._preventClick=!1})}})),_i=ci.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=j("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.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))}
vendor: 4,592 bytes, line 4
4,_createButton:function(t,e,i,n,o){return i=j("a",i,n),i.innerHTML=t,i.href="#",i.title=e,i.setAttribute("role","button"),i.setAttribute("aria-label",e),pt(i),at(i,"click",ft),at(i,"click",o,this),at(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";G(this._zoomInButton,e),G(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),!this._disabled&&t._zoom!==t.getMinZoom()||(q(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),!this._disabled&&t._zoom!==t.getMaxZoom()||(q(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}}),pi=(ui.mergeOptions({zoomControl:!0}),ui.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new _i,this.addControl(this.zoomControl))}),ci.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=j("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=j("div",e,i)),t.imperial&&(this._iScale=j("div",e,i))},_update:function(){var t=(e=this._map).getSize().y/2,e=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(e)},_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);this._updateScale(this._mScale,e<1e3?e+" m":e/1e3+" km",e/t)},_updateImperial:function(t){var e,i;5280<(t=3.2808399*t)?(i=this._getRoundNum(e=t/5280),this._updateScale(this._iScale,i+" mi",i/e)):(i=this._getRoundNum(t),this._updateScale(this._iScale,i+" ft",i/t))},_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);return e*(t=10<=(t=t/e)?10:5<=t?5:3<=t?3:2<=t?2:1)}})),mi=ci.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(qe.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)._container=j("div","leaflet-control-attribution"),pt(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},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t,e=[];for(t in this._attributions)this._attributions[t]&&e.push(t);var i=[];this.options.prefix&&i.push(this.options.prefix),e.length&&i.push(e.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}}),ye=((ve=(ui.mergeOptions({attributionControl:!0}),ui.addInitHook(function(){this.options.attributionControl&&(new mi).addTo(this)}),ci.Layers=di,ci.Zoom=_i,ci.Scale=pi,ci.Attribution=mi,wt.layers=function(t,e,i){return new di(t,e,i)},wt.zoom=function(t){return new _i(t)},wt.scale=function(t){return new pi(t)},wt.attribution=function(t){return new mi(t)},y.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},enabled:function(){return!!this._enabled}}))).addTo=function(t,e){return t.addHandler(e,this),this},{Events:ee}),fi=qe.touch?"touchstart mousedown":"mousedown",gi=ie.extend({options:{clickTolerance:3}
vendor: 13,753 bytes, line 4
4,initialize:function(t,e,i,n){c(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(at(this._dragStartTarget,fi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(gi._dragging===this&&this.finishDrag(!0),ht(this._dragStartTarget,fi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var e,i;this._enabled&&(this._moved=!1,V(this._element,"leaflet-zoom-anim")||(t.touches&&1!==t.touches.length?gi._dragging===this&&this.finishDrag():gi._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((gi._dragging=this)._preventOutline&&nt(this._element),et(),le(),this._moving||(this.fire("down"),i=t.touches?t.touches[0]:t,e=st(this._element),this._startPoint=new x(i.clientX,i.clientY),this._startPos=tt(this._element),this._parentScale=rt(e),i="mousedown"===t.type,at(document,i?"mousemove":"touchmove",this._onMove,this),at(document,i?"mouseup":"touchend touchcancel",this._onUp,this)))))},_onMove:function(t){var e;this._enabled&&(t.touches&&1<t.touches.length?this._moved=!0:!(e=new x((e=t.touches&&1===t.touches.length?t.touches[0]:t).clientX,e.clientY)._subtract(this._startPoint)).x&&!e.y||Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance||(e.x/=this._parentScale.x,e.y/=this._parentScale.y,mt(t),this._moved||(this.fire("dragstart"),this._moved=!0,q(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),q(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(e),this._moving=!0,this._lastEvent=t,this._updatePosition()))},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Q(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){G(document.body,"leaflet-dragging"),this._lastTarget&&(G(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),ht(document,"mousemove touchmove",this._onMove,this),ht(document,"mouseup touchend touchcancel",this._onUp,this),it(),ue();var e=this._moved&&this._moving;this._moving=!1,gi._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}}),xe={__proto__:null,clipPolygon:bt,polygonCenter:Pt,centroid:Lt},we={__proto__:null,simplify:Tt,pointToSegmentDistance:Mt,closestPointOnSegment:function(t,e,i){return St(t,e,i)},clipSegment:zt,_getEdgeIntersection:Ct,_getBitCode:Zt,_sqClosestPointOnSegment:St,isFlat:Et,_flat:kt,polylineCenter:Ot},Le={__proto__:null,LonLat:be={project:function(t){return new x(t.lng,t.lat)},unproject:function(t){return new z(t.y,t.x)},bounds:new b([-180,-90],[180,90])},Mercator:Pe={R:6378137,R_MINOR:6356752.314245179,bounds:new b([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,s=(o=Math.sqrt(1-o*o))*Math.sin(n),s=Math.tan(Math.PI/4-n/2)/Math.pow((1-s)/(1+s),o/2),n=-i*Math.log(Math.max(s,1e-10));return new x(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),h=0,l=.1;h<15&&1e-7<Math.abs(l);h++)e=s*Math.sin(a),e=Math.pow((1-e)/(1+e),s/2),a+=l=Math.PI/2-2*Math.atan(r*e)-a;return new z(a*i,t.x*i/n)}},SphericalMercator:re},Me=e({},se,{code:"EPSG:3395",projection:Pe,transformation:S(Te=.5/(Math.PI*Pe.R),.5,-Te,.5)}),vi=e({},se,{code:"EPSG:4326",projection:be,transformation:S(1/180,1,-1/180,.5)}),ze=e({},oe,{projection:be,transformation:S(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,e=e.lat-t.lat;return Math.sqrt(i*i+e*e)},infinite:!0}),Ce=(oe.Earth=se,oe.EPSG3395=Me,oe.EPSG3857=_e,oe.EPSG900913=pe,oe.EPSG4326=vi,oe.Simple=ze,ie.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},removeInteractiveTarget:function(t){return delete this._map._targets[o(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e,i=t.target;i.hasLayer(this)&&(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents&&(e=this.getEvents(),i.on(e,this),this.once("remove",function(){i.off(e,this)},this)),this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this}))}})),yi=(ui.include({addLayer:function(t){var e;if(t._layerAdd)return e=o(t),this._layers[e]||((this._layers[e]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this;throw new Error("The provided object is not a Layer.")},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},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?Yt(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){t=o(t),this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var t,e=1/0,i=-1/0,n=this._getZoomSpan();for(t in this._zoomBoundLayers)var o=this._zoomBoundLayers[t].options,e=void 0===o.minZoom?e:Math.min(e,o.minZoom),i=void 0===o.maxZoom?i:Math.max(i,o.maxZoom);this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}}),Ce.extend({initialize:function(t,e){var i,n;if(c(this,e),this._layers={},t)for(i=0,n=t.length;i<n;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){return t=t in this._layers?t:this.getLayerId(t),this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],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,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);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:o})),xi=yi.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),yi.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?((t=t in this._layers?this._layers[t]:t).removeEventParent(this),yi.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,e=new T;for(t in this._layers){var i=this._layers[t];e.extend(i.getBounds?i.getBounds():i.getLatLng())}return e}}),wi=y.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)return i=this._createImg(i,e&&"IMG"===e.tagName?e:null),this._setIconStyles(i,t),!this.options.crossOrigin&&""!==this.options.crossOrigin||(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i;if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null},_setIconStyles:function(t,e){var i=this.options,n=w(n="number"==typeof(n=i[e+"Size"])?[n,n]:n),o=w("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 qe.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),bi=wi.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 bi.imagePath&&(bi.imagePath=this._detectIconPath()),(this.options.imagePath||bi.imagePath)+wi.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){function e(t,e,i){return(e=e.exec(t))&&e[i]}return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=j("div","leaflet-default-icon-path",document.body),e=D(t,"background-image")||D(t,"backgroundImage");return document.body.removeChild(t),(e=this._stripUrl(e))?e:(t=document.querySelector('link[href$="leaflet.css"]'))?t.href.substring(0,t.href.length-"leaflet.css".length-1):""}}),Pi=ve.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new gi(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),q(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&&G(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,s=tt(e._icon),r=i.getPixelBounds(),a=i.getPixelOrigin();(a=P(r.min._subtract(a).add(o),r.max._subtract(a).subtract(o))).contains(s)||(o=w((Math.max(a.max.x,s.x)-a.max.x)/(r.max.x-a.max.x)-(Math.min(a.min.x,s.x)-a.min.x)/(r.min.x-a.min.x),(Math.max(a.max.y,s.y)-a.max.y)/(r.max.y-a.max.y)-(Math.min(a.min.y,s.y)-a.min.y)/(r.min.y-a.min.y)).multiplyBy(n),i.panBy(o,{animate:!1}),this._draggable._newPos._add(o),this._draggable._startPos._add(o),Q(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=g(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&&(v(this._panRequest),this._panRequest=g(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=tt(e._icon),o=e._map.layerPointToLatLng(n);i&&Q(i,n),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){v(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Li=Ce.extend({options:{icon:new bi,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=C(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=C(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(){var t;return this._icon&&this._map&&(t=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(t)),this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1,o=!1;(i=(i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),q(i,e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}
vendor: 6,021 bytes, line 4
4),this.options.autoPanOnFocus&&at(i,"focus",this._panOnFocus,this),t.icon.createShadow(this._shadow)))!==this._shadow&&(this._removeShadow(),o=!0),i&&(q(i,e),i.alt=""),this._shadow=i,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ht(this._icon,"focus",this._panOnFocus,this),H(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&H(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Q(this._icon,t),this._shadow&&Q(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){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round(),this._setPos(t)},_initInteraction:function(){var t;this.options.interactive&&(q(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Pi&&(t=this.options.draggable,this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Pi(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&&X(this._icon,t),this._shadow&&X(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t,e,i=this._map;i&&(t=(e=this.options.icon.options).iconSize?w(e.iconSize):w(0,0),e=e.iconAnchor?w(e.iconAnchor):w(0,0),i.panInside(this._latlng,{paddingTopLeft:e,paddingBottomRight:t.subtract(e)}))},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),Ti=Ce.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)}}),Mi=Ti.extend({options:{fill:!0,radius:10},initialize:function(t,e){c(this,e),this._latlng=C(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=C(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 Ti.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(),t=[t+i,e+i];this._pxBounds=new b(this._point.subtract(t),this._point.add(t))},_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()}}),zi=Mi.extend({initialize:function(t,i,n){if(c(this,i="number"==typeof i?e({},n,{radius:i}):i),this._latlng=C(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 T(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Ti.prototype.setStyle,_project:function(){var t,e,i,n,o,s=this._latlng.lng,r=this._latlng.lat,a=this._map,h=a.options.crs;h.distance===se.distance?(n=Math.PI/180,o=this._mRadius/se.R/n,t=a.project([r+o,s]),e=a.project([r-o,s]),e=t.add(e).divideBy(2),i=a.unproject(e).lat,n=Math.acos((Math.cos(o*n)-Math.sin(r*n)*Math.sin(i*n))/(Math.cos(r*n)*Math.cos(i*n)))/n,!isNaN(n)&&0!==n||(n=o/Math.cos(Math.PI/180*r)),this._point=e.subtract(a.getPixelOrigin()),this._radius=isNaN(n)?0:e.x-a.project([i,s-n]).x,this._radiusY=e.y-t.y):(o=h.unproject(h.project(this._latlng).subtract([this._mRadius,0])),this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(o).x),this._updateBounds()}}),Ci=Ti.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=1/0,i=null,n=St,o=0,s=this._parts.length;o<s;o++)for(var r=this._parts[o],a=1,h=r.length;a<h;a++){var l,u,c=n(t,l=r[a-1],u=r[a],!0);c<e&&(e=c,i=n(t,l,u))}return i&&(i.distance=Math.sqrt(e)),i},getCenter:function(){if(this._map)return Ot(this._defaultShape(),this._map.options.crs);
vendor: 17,085 bytes, line 4
4throw new Error("Must add layer to map before using getCenter()")},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=C(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new T,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Et(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=Et(t),n=0,o=t.length;n<o;n++)i?(e[n]=C(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new b;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=new x(t=this._clickTolerance(),t);this._rawPxBounds&&(this._pxBounds=new b([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(t,e,i){var n,o,s=t[0]instanceof z,r=t.length;if(s){for(o=[],n=0;n<r;n++)o[n]=this._map.latLngToLayerPoint(t[n]),i.extend(o[n]);e.push(o)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],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 for(var e,i,n,o,s=this._parts,r=0,a=0,h=this._rings.length;r<h;r++)for(e=0,i=(o=this._rings[r]).length;e<i-1;e++)(n=zt(o[e],o[e+1],t,e,!0))&&(s[a]=s[a]||[],s[a].push(n[0]),n[1]===o[e+1]&&e!==i-2||(s[a].push(n[1]),a++))},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=Tt(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,n,o,s,r,a,h=this._clickTolerance();if(this._pxBounds&&this._pxBounds.contains(t))for(i=0,s=this._parts.length;i<s;i++)for(n=0,o=(r=(a=this._parts[i]).length)-1;n<r;o=n++)if((e||0!==n)&&Mt(t,a[o],a[n])<=h)return!0;return!1}});Ci._flat=kt;var Zi=Ci.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(this._map)return Pt(this._defaultShape(),this._map.options.crs);throw new Error("Must add layer to map before using getCenter()")},_convertLatLngs:function(t){var e=(t=Ci.prototype._convertLatLngs.call(this,t)).length;return 2<=e&&t[0]instanceof z&&t[0].equals(t[e-1])&&t.pop(),t},_setLatLngs:function(t){Ci.prototype._setLatLngs.call(this,t),Et(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return(Et(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints:function(){var t=this._renderer._bounds,e=new x(e=this.options.weight,e),t=new b(t.min.subtract(e),t.max.add(e));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,n=0,o=this._rings.length;n<o;n++)(i=bt(this._rings[n],t,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,o,s,r,a,h,l=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(s=0,r=(h=(e=this._parts[o]).length)-1;s<h;r=s++)i=e[s],n=e[r],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(l=!l);return l||Ci.prototype._containsPoint.call(this,t,!0)}}),Si=xi.extend({initialize:function(t,e){c(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=Yt(t)?t:t.features;if(o){for(e=0,i=o.length;e<i;e++)((n=o[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s,r=this.options;return r.filter&&!r.filter(t)||!(s=At(t,r))?this:(s.feature=Ht(t),s.defaultOptions=s.options,this.resetStyle(s),r.onEachFeature&&r.onEachFeature(t,s),this.addLayer(s))},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))}});Ze={toGeoJSON:function(t){return jt(this,{type:"Point",coordinates:Nt(this.getLatLng(),t)})}},Li.include(Ze),zi.include(Ze),Mi.include(Ze),Ci.include({toGeoJSON:function(t){var e=!Et(this._latlngs);return jt(this,{type:(e?"Multi":"")+"LineString",coordinates:Dt(this._latlngs,e?1:0,!1,t)})}}),Zi.include({toGeoJSON:function(t){var e=!Et(this._latlngs),i=e&&!Et(this._latlngs[0]),t=Dt(this._latlngs,i?2:e?1:0,!0,t);return jt(this,{type:(i?"Multi":"")+"Polygon",coordinates:t=e?t:[t]})}}),yi.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),jt(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e,i,n=this.feature&&this.feature.geometry&&this.feature.geometry.type;return"MultiPoint"===n?this.toMultiPoint(t):(e="GeometryCollection"===n,i=[],this.eachLayer(function(n){n.toGeoJSON&&(n=n.toGeoJSON(t),e?i.push(n.geometry):"FeatureCollection"===(n=Ht(n)).type?i.push.apply(i,n.features):i.push(n))}),e?jt(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i})}});var Se=Wt,Ei=Ce.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=M(e),c(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(q(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){H(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&&F(this._image),this},bringToBack:function(){return this._map&&U(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=M(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:j("img");q(e,"leaflet-image-layer"),this._zoomAnimated&&q(e,"leaflet-zoom-animated"),this.options.className&&q(e,this.options.className),e.onselectstart=a,e.onmousemove=a,e.onload=n(this.fire,this,"load"),e.onerror=n(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),t=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;$(this._image,t,e)},_reset:function(){var t=this._image,e=new b(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();Q(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){X(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()}}),ki=Ei.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:j("video");if(q(e,"leaflet-image-layer"),this._zoomAnimated&&q(e,"leaflet-zoom-animated"),this.options.className&&q(e,this.options.className),e.onselectstart=a,e.onmousemove=a,e.onloadeddata=n(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),o=[],s=0;s<i.length;s++)o.push(i[s].src);this._url=0<i.length?o:[e.src]}else{Yt(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 r=0;r<this._url.length;r++){var h=j("source");h.src=this._url[r],e.appendChild(h)}}}}),Oi=Ei.extend({_initImage:function(){var t=this._image=this._url;q(t,"leaflet-image-layer"),this._zoomAnimated&&q(t,"leaflet-zoom-animated"),this.options.className&&q(t,this.options.className),t.onselectstart=a,t.onmousemove=a}}),Ai=Ce.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof z||Yt(t))?(this._latlng=C(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&&X(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&X(this._container,1),this.bringToFront(),this.options.interactive&&(q(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(X(this._container,0),this._removeTimeout=setTimeout(n(H,void 0,this._container),200)):H(this._container),this.options.interactive&&(G(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=C(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&&F(this._container),this},bringToBack:function(){return this._map&&U(this._container),this},_prepareOpen:function(t){if(!(i=this._source)._map)return!1;if(i instanceof xi){var e,i=null,n=this._source._layers;for(e in n)if(n[e]._map){i=n[e];break}if(!i)return!1;this._source=i}if(!t)if(i.getCenter)t=i.getCenter();else if(i.getLatLng)t=i.getLatLng();else{if(!i.getBounds)throw new Error("Unable to get source layer LatLng.");t=i.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(){var t,e,i;this._map&&(e=this._map.latLngToLayerPoint(this._latlng),t=w(this.options.offset),i=this._getAnchor(),this._zoomAnimated?Q(this._container,e.add(i)):t=t.add(e).add(i),e=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x,this._container.style.bottom=e+"px",this._container.style.left=i+"px")},_getAnchor:function(){return[0,0]}}),Bi=(ui.include({_initOverlay:function(t,e,i,n){var o=e;return o instanceof t||(o=new t(n).setContent(e)),i&&o.setLatLng(i),o}}),Ce.include({_initOverlay:function(t,e,i,n){var o=i;return o instanceof t?(c(o,n),o._source=this):(o=e&&!n?e:new t(n,this)).setContent(i),o}}),Ai.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,Ai.prototype.openOn.call(this,t)},onAdd:function(t){Ai.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ti||this._source.on("preclick",dt))},onRemove:function(t){Ai.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ti||this._source.off("preclick",dt))},getEvents:function(){var t=Ai.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=j("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=j("div",t+"-content-wrapper",e);this._contentNode=j("div",t+"-content",i),pt(e),_t(this._contentNode),at(e,"contextmenu",dt),this._tipContainer=j("div",t+"-tip-container",e),this._tip=j("div",t+"-tip",this._tipContainer),this.options.closeButton&&((i=this._closeButton=j("a",t+"-close-button",e)).setAttribute("role","button"),i.setAttribute("aria-label","Close popup"),i.href="#close",i.innerHTML='<span aria-hidden="true">&#215;</span>',at(i,"click",function(t){mt(t),this.close()},this))},_updateLayout:function(){var t=this._contentNode,e=t.style,i=(e.width="",e.whiteSpace="nowrap",t.offsetWidth),i=Math.min(i,this.options.maxWidth),i=(i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="",t.offsetHeight),n=this.options.maxHeight;(n&&n<i?(e.height=n+"px",q):G)(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();Q(this._container,t.add(e))},_adjustPan:function(){var t,e,i,n,o,s,r,a;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning?this._autopanning=!1:(t=this._map,e=parseInt(D(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+e,a=this._containerWidth,(i=new x(this._containerLeft,-e-this._containerBottom))._add(tt(this._container)),i=t.layerPointToContainerPoint(i),o=w(this.options.autoPanPadding),n=w(this.options.autoPanPaddingTopLeft||o),o=w(this.options.autoPanPaddingBottomRight||o),s=t.getSize(),r=0,i.x+a+o.x>s.x&&(r=i.x+a-s.x+o.x),i.x-r-n.x<(a=0)&&(r=i.x-n.x),i.y+e+o.y>s.y&&(a=i.y+e-s.y+o.y),i.y-a-n.y<0&&(a=i.y-n.y),(r||a)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([r,a]))))},_getAnchor:function(){return w(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),Ii=(ui.mergeOptions({closePopupOnClick:!0}),ui.include({openPopup:function(t,e,i){return this._initOverlay(Bi,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Ce.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Bi,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 xi||(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){var e;this._popup&&this._map&&(ft(t),e=t.layer||t.target,this._popup._source!==e||e instanceof Ti?(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)}
vendor: 7,698 bytes, line 4
4,_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}}),Ai.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Ai.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){Ai.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=Ai.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=j("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=this._map,n=this._container,o=i.latLngToContainerPoint(i.getCenter()),i=i.layerPointToContainerPoint(t),s=this.options.direction,r=n.offsetWidth,a=n.offsetHeight,h=w(this.options.offset),l=this._getAnchor(),i="top"===s?(e=r/2,a):"bottom"===s?(e=r/2,0):(e="center"===s?r/2:"right"===s?0:"left"===s?r:i.x<o.x?(s="right",0):(s="left",r+2*(h.x+l.x)),a/2);t=t.subtract(w(e,i,!0)).add(h).add(l),G(n,"leaflet-tooltip-right"),G(n,"leaflet-tooltip-left"),G(n,"leaflet-tooltip-top"),G(n,"leaflet-tooltip-bottom"),q(n,"leaflet-tooltip-"+s),Q(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&X(this._container,t)},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),this._setPosition(t)},_getAnchor:function(){return w(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}})),Ri=(ui.include({openTooltip:function(t,e,i){return this._initOverlay(Ii,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Ce.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ii,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){var e,i;!t&&this._tooltipHandlersAdded||(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 xi||(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&&(at(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),at(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){(t="function"==typeof t.getElement&&t.getElement())&&t.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){var e;this._tooltip&&this._map&&(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag?(this._openOnceFlag=!0,(e=this)._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)})):(this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)))},_moveTooltip:function(t){var e=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(t=this._map.mouseEventToContainerPoint(t.originalEvent),t=this._map.containerPointToLayerPoint(t),e=this._map.layerPointToLatLng(t)),this._tooltip.setLatLng(e)}}),wi.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var t=t&&"DIV"===t.tagName?t:document.createElement("div"),e=this.options;return e.html instanceof Element?(W(t),t.appendChild(e.html)):t.innerHTML=!1!==e.html?e.html:"",e.bgPos&&(e=w(e.bgPos),t.style.backgroundPosition=-e.x+"px "+-e.y+"px"),this._setIconStyles(t,"icon"),t},createShadow:function(){return null}}));wi.Default=bi;var Ni=Ce.extend({options:{tileSize:256,opacity:1,updateWhenIdle:qe.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(),H(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(F(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(U(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(){var t;return this._map&&(this._removeAllTiles(),(t=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()),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=s(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 x?t:new x(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,n=-t(-1/0,1/0),o=0,s=i.length;o<s;o++)e=i[o].style.zIndex,i[o]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!qe.ielt9){X(this._container,this.options.opacity);var t,e=+new Date,i=!1,n=!1;for(t in this._tiles){var o,s=this._tiles[t];s.current&&s.loaded&&(o=Math.min(1,(e-s.loaded)/200),X(s.el,o),o<1?i=!0:(s.active?n=!0:this._onOpaqueTile(s),s.active=!0))}n&&!this._noPrune&&this._pruneTiles(),i&&(v(this._fadeFrame),this._fadeFrame=g(this._updateOpacity,this))}}
vendor: 14,849 bytes, line 4
4,_onOpaqueTile:a,_initContainer:function(){this._container||(this._container=j("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)):(H(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=j("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),n.el.offsetWidth,this._onCreateLevel(n)),this._level=n}},_onUpdateLevel:a,_onRemoveLevel:a,_onCreateLevel:a,_pruneTiles:function(){if(this._map){var t,e,i,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(i=this._tiles[t]).retain=i.current;for(t in this._tiles)(i=this._tiles[t]).current&&!i.active&&(e=i.coords,this._retainParent(e.x,e.y,e.z,e.z-5)||this._retainChildren(e.x,e.y,e.z,e.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)H(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,n){var i=i-1,o=((o=new x(+(t=Math.floor(t/2)),+(e=Math.floor(e/2)))).z=i,this._tileCoordsToKey(o));return(o=this._tiles[o])&&o.active?o.retain=!0:(o&&o.loaded&&(o.retain=!0),n<i&&this._retainParent(t,e,i,n))},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var r=((r=new x(o,s)).z=i+1,this._tileCoordsToKey(r));(r=this._tiles[r])&&r.active?r.retain=!0:(r&&r.loaded&&(r.retain=!0),i+1<n&&this._retainChildren(o,s,i+1,n))}},_resetView:function(t){t=t&&(t.pinch||t.flyTo),this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_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,n){var o=Math.round(e),o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o),s=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&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 n=this._map.getZoomScale(i,t.zoom),e=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();qe.any3d?$(t.el,e,n):Q(t.el,e)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=(i=this._map)._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),e=i.getZoomScale(e,this._tileZoom),t=i.project(t,this._tileZoom).floor(),i=i.getSize().divideBy(2*e);return new b(t.subtract(i),t.add(i))},_update:function(t){if(n=this._map){var e=this._clampZoom(n.getZoom());if(void 0===t&&(t=n.getCenter()),void 0!==this._tileZoom){var i,n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),s=o.getCenter(),r=[],n=this.options.keepBuffer,a=new b(o.getBottomLeft().subtract([n,-n]),o.getTopRight().add([n,-n]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(i in this._tiles){var h=this._tiles[i].coords;h.z===this._tileZoom&&a.contains(new x(h.x,h.y))||(this._tiles[i].current=!1)}if(1<Math.abs(e-this._tileZoom))this._setView(t,e);else{for(var l=o.min.y;l<=o.max.y;l++)for(_=o.min.x;_<=o.max.x;_++){var u,c=new x(_,l);c.z=this._tileZoom,this._isValidTile(c)&&((u=this._tiles[this._tileCoordsToKey(c)])?u.current=!0:r.push(c))}if(r.sort(function(t,e){return t.distanceTo(s)-e.distanceTo(s)}),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));for(var d=document.createDocumentFragment(),_=0;_<r.length;_++)this._addTile(r[_],d);this._level.el.appendChild(d)}}}}},_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}return!this.options.bounds||(e=this._tileCoordsToBounds(t),M(this.options.bounds).overlaps(e))},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),i=n.add(i);return[e.unproject(n,t.z),e.unproject(i,t.z)]},_tileCoordsToBounds:function(t){return t=this._tileCoordsToNwSe(t),t=new T(t[0],t[1]),t=this.options.noWrap?t:this._map.wrapLatLngBounds(t)},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=new x(+(t=t.split(":"))[0],+t[1]);return e.z=+t[2],e},_removeTile:function(t){var e=this._tiles[t];e&&(H(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){q(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=a,t.onmousemove=a,qe.ielt9&&this.options.opacity<1&&X(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),o=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),n(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&g(n(this._tileReady,this,t,null,s)),Q(s,i),this._tiles[o]={el:s,coords:t,current:!0},e.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var o=this._tileCoordsToKey(t);(i=this._tiles[o])&&(i.loaded=+new Date,this._map._fadeAnimated?(X(i.el,0),v(this._fadeFrame),this._fadeFrame=g(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(q(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),qe.ielt9||!this._map._fadeAnimated?g(this._pruneTiles,this):setTimeout(n(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new x(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 b(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}}),Di=Ni.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&&qe.retina&&0<e.maxZoom?(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 at(i,"load",n(this._tileOnLoad,this,e,i)),at(i,"error",n(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:qe.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(t=this._globalTileRange.max.y-t.y,this.options.tms&&(i.y=t),i["-y"]=t),_(this._url,e(i,this.options))},_tileOnLoad:function(t,e){qe.ielt9?setTimeout(n(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return(t=this.options.zoomReverse?e-t:t)+this.options.zoomOffset},_getSubdomain:function(t){return t=Math.abs(t.x+t.y)%this.options.subdomains.length,this.options.subdomains[t]},_abortLoading:function(){var t,e,i;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((i=this._tiles[t].el).onload=a,i.onerror=a,i.complete||(i.src=Xt,e=this._tiles[t].coords,H(i),delete this._tiles[t],this.fire("tileabort",{tile:i,coords:e})))},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",Xt),Ni.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==Xt))return Ni.prototype._tileReady.call(this,t,e,i)}}),ji=Di.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 n,o=e({},this.defaultWmsParams);for(n in i)n in this.options||(o[n]=i[n]);var t=(i=c(this,i)).detectRetina&&qe.retina?2:1,s=this.getTileSize();o.width=s.x*t,o.height=s.y*t,this.wmsParams=o},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,Di.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),e=(i=P((i=this._crs).project(e[0]),i.project(e[1]))).min,i=i.max,e=(1.3<=this._wmsVersion&&this._crs===vi?[e.y,e.x,i.y,i.x]:[e.x,e.y,i.x,i.y]).join(",");return(i=Di.prototype.getTileUrl.call(this,t))+d(this.wmsParams,i,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+e},setParams:function(t,i){return e(this.wmsParams,t),i||this.redraw(),this}});Di.WMS=ji,Ft.wms=function(t,e){return new ji(t,e)};var Hi=Ce.extend({options:{padding:.1},initialize:function(t){c(this,t),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),q(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),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),n=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));qe.any3d?$(this._container,n,i):Q(this._container,n)},_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)).round();this._bounds=new b(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Wi=Hi.extend({options:{tolerance:0},getEvents:function(){var t=Hi.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Hi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");at(t,"mousemove",this._onMouseMove,this),at(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),at(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){v(this._redrawRequest),delete this._ctx,H(this._container),ht(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(){var t,e,i,n;this._map._animatingZoom&&this._bounds||(Hi.prototype._update.call(this),t=this._bounds,e=this._container,i=t.getSize(),n=qe.retina?2:1,Q(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",qe.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update"))},_reset:function(){Hi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),t=(this._layers[o(t)]=t)._order={layer:t,prev:this._drawLast,next:null},this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=(i=t._order).next,i=i.prev;e?e.prev=i:this._drawLast=i,i?i.next=e:this._drawFirst=e,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){for(var e,i=t.options.dashArray.split(/[, ]+/),n=[],o=0;o<i.length;
vendor: 14,132 bytes, line 4
4o++){if(e=Number(i[o]),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||g(this._redraw,this))},_extendRedrawBounds:function(t){var e;t._pxBounds&&(e=(t.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new b,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,e=this._redrawBounds;e?(t=e.getSize(),this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)):(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,i=this._redrawBounds;this._ctx.save(),i&&(e=i.getSize(),this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,e.x,e.y),this._ctx.clip()),this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,o,s,r=t._parts,a=r.length,h=this._ctx;if(a){for(h.beginPath(),i=0;i<a;i++){for(n=0,o=r[i].length;n<o;n++)s=r[i][n],h[n?"lineTo":"moveTo"](s.x,s.y);e&&h.closePath()}this._fillStroke(h,t)}}},_updateCircle:function(t){var e,i,n,o;this._drawing&&!t._empty()&&(e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),1!=(o=(Math.max(Math.round(t._radiusY),1)||n)/n)&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(e.x,e.y/o,n,0,2*Math.PI,!1),1!=o&&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,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(n)&&(("click"===t.type||"preclick"===t.type)&&this._map._draggableMoved(e)||(i=e));this._fireEvent(!!i&&[i],t)},_onMouseMove:function(t){var e;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(e=this._map.mouseEventToLayerPoint(t),this._handleMouseHover(t,e))},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(G(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,o,s=this._drawFirst;s;s=s.next)(i=s.layer).options.interactive&&i._containsPoint(e)&&(o=i);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(q(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(n(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e,i,n=t._order;n&&(e=n.next,i=n.prev,e&&((e.prev=i)?i.next=e:e&&(this._drawFirst=e),n.prev=this._drawLast,(this._drawLast.next=n).next=null,this._drawLast=n,this._requestRedraw(t)))},_bringToBack:function(t){var e,i,n=t._order;n&&(e=n.next,(i=n.prev)&&((i.next=e)?e.prev=i:i&&(this._drawLast=i),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(t)))}}),Fi=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">')}}(),Ee={_initContainer:function(){this._container=j("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Hi.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Fi("shape");q(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Fi("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;H(e),t.removeInteractiveTarget(e),delete this._layers[o(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e=e||(t._stroke=Fi("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=Yt(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i=i||(t._fill=Fi("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){F(t._container)},_bringToBack:function(t){U(t._container)}},Ui=qe.vml?Fi:E,Vi=Hi.extend({_initContainer:function(){this._container=Ui("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ui("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){H(this._container),ht(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var t,e,i;this._map._animatingZoom&&this._bounds||(Hi.prototype._update.call(this),e=(t=this._bounds).getSize(),i=this._container,this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),Q(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=Ui("path");t.options.className&&q(e,t.options.className),t.options.interactive&&q(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){H(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,t=t.options;e&&(t.stroke?(e.setAttribute("stroke",t.color),e.setAttribute("stroke-opacity",t.opacity),e.setAttribute("stroke-width",t.weight),e.setAttribute("stroke-linecap",t.lineCap),e.setAttribute("stroke-linejoin",t.lineJoin),t.dashArray?e.setAttribute("stroke-dasharray",t.dashArray):e.removeAttribute("stroke-dasharray"),t.dashOffset?e.setAttribute("stroke-dashoffset",t.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),t.fill?(e.setAttribute("fill",t.fillColor||t.color),e.setAttribute("fill-opacity",t.fillOpacity),e.setAttribute("fill-rule",t.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,k(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",e=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,e)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){F(t._path)},_bringToBack:function(t){U(t._path)}});qe.vml&&Vi.include(Ee),ui.include({getRenderer:function(t){return t=(t=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(t){var e;return"overlayPane"!==t&&void 0!==t&&(void 0===(e=this._paneRenderers[t])&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e)},_createRenderer:function(t){return this.options.preferCanvas&&Ut(t)||Vt(t)}});var qi=Zi.extend({initialize:function(t,e){Zi.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=M(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});Vi.create=Ui,Vi.pointsToPath=k,Si.geometryToLayer=At,Si.coordsToLatLng=It,Si.coordsToLatLngs=Rt,Si.latLngToCoords=Nt,Si.latLngsToCoords=Dt,Si.getFeature=jt,Si.asFeature=Ht,ui.mergeOptions({boxZoom:!0});var me=ve.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(){at(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ht(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){H(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(),le(),et(),this._startPoint=this._map.mouseEventToContainerPoint(t),at(document,{contextmenu:ft,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=j("div","leaflet-zoom-box",this._container),q(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=(t=new b(this._point,this._startPoint)).getSize();Q(this._box,t.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(H(this._box),G(this._container,"leaflet-crosshair")),ue(),it(),ht(document,{contextmenu:ft,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(n(this._resetState,this),0),t=new T(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})))},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),ke=(ui.addInitHook("addHandler","boxZoom",me),ui.mergeOptions({doubleClickZoom:!0}),ve.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(),n=e.options.zoomDelta,i=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}})),Gi=(ui.addInitHook("addHandler","doubleClickZoom",ke),ui.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),ve.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new gi(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))),q(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){G(this._map._container,"leaflet-grab"),G(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,e=this._map;e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=M(this._map.options.maxBounds),this._offsetLimit=P(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var e,i;this._map.options.inertia&&(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(;1<this._positions.length&&50<t-this._times[0];)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(){var t,e;this._viscosity&&this._offsetLimit&&(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,n=((o=this._draggable._newPos.x)-e+i)%t+e-i,o=(o+e+i)%t-e-i,t=Math.abs(n+i)<Math.abs(o+i)?n:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=t},_onDragEnd:function(t){var e,i,n,o,s=this._map,r=s.options,a=!r.inertia||t.noInertia||this._times.length<2;
vendor: 10,399 bytes, lines 4-7
4s.fire("dragend",t),!a&&(this._prunePositions(+new Date),t=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,e=r.easeLinearity,a=(t=t.multiplyBy(e/a)).distanceTo([0,0]),i=Math.min(r.inertiaMaxSpeed,a),t=t.multiplyBy(i/a),n=i/(r.inertiaDeceleration*e),(o=t.multiplyBy(-n/2).round()).x||o.y)?(o=s._limitOffset(o,s.options.maxBounds),g(function(){s.panBy(o,{duration:n,easeLinearity:e,noMoveStart:!0,animate:!0})})):s.fire("moveend")}})),Oe=(ui.addInitHook("addHandler","dragging",Gi),ui.mergeOptions({keyboard:!0,keyboardPanDelta:80}),ve.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"),at(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(),ht(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(){var t,e,i;this._focused||(i=document.body,t=document.documentElement,e=i.scrollTop||t.scrollTop,i=i.scrollLeft||t.scrollLeft,this._map._container.focus(),window.scrollTo(i,e))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){for(var e=this._panKeys={},i=this.keyCodes,n=0,o=i.left.length;n<o;n++)e[i.left[n]]=[-1*t,0];for(n=0,o=i.right.length;n<o;n++)e[i.right[n]]=[t,0];for(n=0,o=i.down.length;n<o;n++)e[i.down[n]]=[0,t];for(n=0,o=i.up.length;n<o;n++)e[i.up[n]]=[0,-1*t]},_setZoomDelta:function(t){for(var e=this._zoomKeys={},i=this.keyCodes,n=0,o=i.zoomIn.length;n<o;n++)e[i.zoomIn[n]]=t;for(n=0,o=i.zoomOut.length;n<o;n++)e[i.zoomOut[n]]=-t},_addHooks:function(){at(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){ht(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i,n=t.keyCode,o=this._map;if(n in this._panKeys)o._panAnim&&o._panAnim._inProgress||(i=this._panKeys[n],t.shiftKey&&(i=w(i).multiplyBy(3)),o.options.maxBounds&&(i=o._limitOffset(w(i),o.options.maxBounds)),o.options.worldCopyJump?(e=o.wrapLatLng(o.unproject(o.project(o.getCenter()).add(i))),o.panTo(e)):o.panBy(i));else if(n in this._zoomKeys)o.setZoom(o.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!o._popup||!o._popup.options.closeOnEscapeKey)return;o.closePopup()}ft(t)}}})),Ae=(ui.addInitHook("addHandler","keyboard",Oe),ui.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),ve.extend({addHooks:function(){at(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){ht(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=yt(t),i=this._map.options.wheelDebounceTime,e=(this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date),Math.max(i-(+new Date-this._startTime),0));clearTimeout(this._timer),this._timer=setTimeout(n(this._performZoom,this),e),ft(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0,n=(t._stop(),this._delta/(4*this._map.options.wheelPxPerZoomLevel)),n=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,i=i?Math.ceil(n/i)*i:n,n=t._limitZoom(e+(0<this._delta?i:-i))-e;this._delta=0,this._startTime=null,n&&("center"===t.options.scrollWheelZoom?t.setZoom(e+n):t.setZoomAround(this._lastMousePos,e+n))}})),Be=(ui.addInitHook("addHandler","scrollWheelZoom",Ae),ui.mergeOptions({tapHold:qe.touchNative&&qe.safari&&qe.mobile,tapTolerance:15}),ve.extend({addHooks:function(){at(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ht(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){var e;clearTimeout(this._holdTimeout),1===t.touches.length&&(e=t.touches[0],this._startPos=this._newPos=new x(e.clientX,e.clientY),this._holdTimeout=setTimeout(n(function(){this._cancel(),this._isTapValid()&&(at(document,"touchend",mt),at(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),600),at(document,"touchend touchcancel contextmenu",this._cancel,this),at(document,"touchmove",this._onMove,this))},_cancelClickPrevent:function t(){ht(document,"touchend",mt),ht(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),ht(document,"touchend touchcancel contextmenu",this._cancel,this),ht(document,"touchmove",this._onMove,this)},_onMove:function(t){t=t.touches[0],this._newPos=new x(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){(t=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY}))._simulated=!0,e.target.dispatchEvent(t)}})),Ie=(ui.addInitHook("addHandler","tapHold",Be),ui.mergeOptions({touchZoom:qe.touch,bounceAtZoomLimits:!0}),ve.extend({addHooks:function(){q(this._map._container,"leaflet-touch-zoom"),at(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){G(this._map._container,"leaflet-touch-zoom"),ht(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e,i,n=this._map;!t.touches||2!==t.touches.length||n._animatingZoom||this._zooming||(e=n.mouseEventToContainerPoint(t.touches[0]),i=n.mouseEventToContainerPoint(t.touches[1]),this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),"center"!==n.options.touchZoom&&(this._pinchStartLatLng=n.containerPointToLatLng(e.add(i)._divideBy(2))),this._startDist=e.distanceTo(i),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),at(document,"touchmove",this._onTouchMove,this),at(document,"touchend touchcancel",this._onTouchEnd,this),mt(t))},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),s=i.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(s,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&s<1||this._zoom>e.getMaxZoom()&&1<s)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1==s)return}else{if(i=i._add(o)._divideBy(2)._subtract(this._centerPoint),1==s&&0===i.x&&0===i.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(i),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),v(this._animRequest),o=n(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0),this._animRequest=g(o,this,!0),mt(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,v(this._animRequest),ht(document,"touchmove",this._onTouchMove,this),ht(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}})),Ki=(ui.addInitHook("addHandler","touchZoom",Ie),ui.BoxZoom=me,ui.DoubleClickZoom=ke,ui.Drag=Gi,ui.Keyboard=Oe,ui.ScrollWheelZoom=Ae,ui.TapHold=Be,ui.TouchZoom=Ie,t.Bounds=b,t.Browser=qe,t.CRS=oe,t.Canvas=Wi,t.Circle=zi,t.CircleMarker=Mi,t.Class=y,t.Control=ci,t.DivIcon=Ri,t.DivOverlay=Ai,t.DomEvent=ge,t.DomUtil=fe,t.Draggable=gi,t.Evented=ie,t.FeatureGroup=xi,t.GeoJSON=Si,t.GridLayer=Ni,t.Handler=ve,t.Icon=wi,t.ImageOverlay=Ei,t.LatLng=z,t.LatLngBounds=T,t.Layer=Ce,t.LayerGroup=yi,t.LineUtil=we,t.Map=ui,t.Marker=Li,t.Mixin=ye,t.Path=Ti,t.Point=x,t.PolyUtil=xe,t.Polygon=Zi,t.Polyline=Ci,t.Popup=Bi,t.PosAnimation=li,t.Projection=Le,t.Rectangle=qi,t.Renderer=Hi,t.SVG=Vi,t.SVGOverlay=Oi,t.TileLayer=Di,t.Tooltip=Ii,t.Transformation=Z,t.Util=te,t.VideoOverlay=ki,t.bind=n,t.bounds=P,t.canvas=Ut,t.circle=function(t,e,i){return new zi(t,e,i)},t.circleMarker=function(t,e){return new Mi(t,e)},t.control=wt,t.divIcon=function(t){return new Ri(t)},t.extend=e,t.featureGroup=function(t,e){return new xi(t,e)},t.geoJSON=Wt,t.geoJson=Se,t.gridLayer=function(t){return new Ni(t)},t.icon=function(t){return new wi(t)},t.imageOverlay=function(t,e,i){return new Ei(t,e,i)},t.latLng=C,t.latLngBounds=M,t.layerGroup=function(t,e){return new yi(t,e)},t.map=function(t,e){return new ui(t,e)},t.marker=function(t,e){return new Li(t,e)},t.point=w,t.polygon=function(t,e){return new Zi(t,e)},t.polyline=function(t,e){return new Ci(t,e)},t.popup=function(t,e){return new Bi(t,e)},t.rectangle=function(t,e){return new qi(t,e)},t.setOptions=c,t.stamp=o,t.svg=Vt,t.svgOverlay=function(t,e,i){return new Oi(t,e,i)},t.tileLayer=Ft,t.tooltip=function(t,e){return new Ii(t,e)},t.transformation=S,t.version="1.9.4",t.videoOverlay=function(t,e,i){return new ki(t,e,i)},window.L);t.noConflict=function(){return window.L=Ki,this},window.L=t});
5/*! modernizr 3.6.0 (Custom Build) | MIT *
6 * https://modernizr.com/download/?-adownload-backgroundsize-bgsizecover-cssanimations-cssgradients-csstransforms-csstransforms3d-csstransitions-cssvhunit-hiddenscroll-preserve3d-svg-touchevents-setclasses !*/
7!function(e,t,n){function r(t,n,r){var s;if("getComputedStyle"in e){s=getComputedStyle.call(e,t,n);var o=e.console;if(null!==s)r&&(s=s.getPropertyValue(r));else if(o){var i=o.error?"error":"log";o[i].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else s=!n&&t.currentStyle&&t.currentStyle[r];return s}function s(e){var t=z.className,n=Modernizr._config.classPrefix||"";if(k&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(t+=" "+n+e.join(" "+n),k?z.className.baseVal=t:z.className=t)}function o(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):k?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function i(e,t){return typeof e===t}function a(){var e,t,n,r,s,o,a;
7for(var l in C)if(C.hasOwnProperty(l)){if(e=[],t=C[l],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(r=i(t.fn,"function")?t.fn():t.fn,s=0;s<e.length;s++)o=e[s],a=o.split("."),1===a.length?Modernizr[a[0]]=r:(!Modernizr[a[0]]||Modernizr[a[0]]instanceof Boolean||(Modernizr[a[0]]=new Boolean(Modernizr[a[0]])),Modernizr[a[0]][a[1]]=r),S.push((r?"":"no-")+a.join("-"))}}function l(e,t){return e-1===t||e===t||e+1===t}function u(){var e=t.body;return e||(e=o(k?"svg":"body"),e.fake=!0),e}function d(e,n,r,s){var i,a,l,d,f="modernizr",c=o("div"),p=u();if(parseInt(r,10))for(;r--;)l=o("div"),l.id=s?s[r]:f+(r+1),c.appendChild(l);return i=o("style"),i.type="text/css",i.id="s"+f,(p.fake?p:c).appendChild(i),p.appendChild(c),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),c.id=f,p.fake&&(p.style.background="",p.style.overflow="hidden",d=z.style.overflow,z.style.overflow="hidden",z.appendChild(p)),a=n(c,e),p.fake?(p.parentNode.removeChild(p),z.style.overflow=d,z.offsetHeight):c.parentNode.removeChild(c),!!a}function f(e,t){return!!~(""+e).indexOf(t)}function c(e,t){return function(){return e.apply(t,arguments)}}function p(e,t,n){var r;for(var s in e)if(e[s]in t)return n===!1?e[s]:(r=t[e[s]],i(r,"function")?c(r,n||t):r);return!1}function m(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function g(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function h(t,s){var o=t.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(g(t[o]),s))return!0;return!1}if("CSSSupportsRule"in e){for(var i=[];o--;)i.push("("+g(t[o])+":"+s+")");return i=i.join(" or "),d("@supports ("+i+") { #modernizr { position: absolute; } }",function(e){return"absolute"==r(e,null,"position")})}return n}function v(e,t,r,s){function a(){u&&(delete O.style,delete O.modElem)}if(s=i(s,"undefined")?!1:s,!i(r,"undefined")){var l=h(e,r);if(!i(l,"undefined"))return l}for(var u,d,c,p,g,v=["modernizr","tspan","samp"];!O.style&&v.length;)u=!0,O.modElem=o(v.shift()),O.style=O.modElem.style;for(c=e.length,d=0;c>d;d++)if(p=e[d],g=O.style[p],f(p,"-")&&(p=m(p)),O.style[p]!==n){if(s||i(r,"undefined"))return a(),"pfx"==t?p:!0;try{O.style[p]=r}catch(y){}if(O.style[p]!=g)return a(),"pfx"==t?p:!0}return a(),!1}function y(e,t,n,r,s){var o=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+N.join(o+" ")+o).split(" ");return i(t,"string")||i(t,"undefined")?v(a,t,r,s):(a=(e+" "+j.join(o+" ")+o).split(" "),p(a,t,n))}function w(e,t,r){return y(e,n,n,t,r)}var S=[],C=[],x={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){C.push({name:e,fn:t,options:n})},addAsyncTest:function(e){C.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=x,Modernizr=new Modernizr,Modernizr.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);var b=x._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];x._prefixes=b;var T="CSS"in e&&"supports"in e.CSS,_="supportsCSS"in e;Modernizr.addTest("supports",T||_);var z=t.documentElement,k="svg"===z.nodeName.toLowerCase();Modernizr.addTest("cssgradients",function(){for(var e,t="background-image:",n="gradient(linear,left top,right bottom,from(#9f9),to(white));",r="",s=0,i=b.length-1;i>s;s++)e=0===s?"to ":"",r+=t+b[s]+"linear-gradient("+e+"left top, #9f9, white);";Modernizr._config.usePrefixes&&(r+=t+"-webkit-"+n);var a=o("a"),l=a.style;return l.cssText=r,(""+l.backgroundImage).indexOf("gradient")>-1}),Modernizr.addTest("preserve3d",function(){var t,n,r=e.CSS,s=!1;return r&&r.supports&&r.supports("(transform-style: preserve-3d)")?!0:(t=o("a"),n=o("a"),t.style.cssText="display: block; transform-style: preserve-3d; transform-origin: right; transform: rotateY(40deg);",n.style.cssText="display: block; width: 9px; height: 1px; background: #000; transform-origin: right; transform: rotateY(40deg);",t.appendChild(n),z.appendChild(t),s=n.getBoundingClientRect(),z.removeChild(t),s=s.width&&s.width<4)});var P=x.testStyles=d;Modernizr.addTest("touchevents",function(){var n;if("ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch)n=!0;else{var r=["@media (",b.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");P(r,function(e){n=9===e.offsetTop})}return n}),Modernizr.addTest("hiddenscroll",function(){return P("#modernizr {width:100px;height:100px;overflow:scroll}",function(e){return e.offsetWidth===e.clientWidth}
7)}),P("#modernizr { height: 50vh; }",function(t){var n=parseInt(e.innerHeight/2,10),s=parseInt(r(t,null,"height"),10);Modernizr.addTest("cssvhunit",l(s,n))});var E="Moz O ms Webkit",N=x._config.usePrefixes?E.split(" "):[];x._cssomPrefixes=N;var j=x._config.usePrefixes?E.toLowerCase().split(" "):[];x._domPrefixes=j;var A={elem:o("modernizr")};Modernizr._q.push(function(){delete A.elem});var O={style:A.elem.style};Modernizr._q.unshift(function(){delete O.style}),x.testAllProps=y,x.testAllProps=w,Modernizr.addTest("backgroundsize",w("backgroundSize","100%",!0)),Modernizr.addTest("cssanimations",w("animationName","a",!0)),Modernizr.addTest("bgsizecover",w("backgroundSize","cover")),Modernizr.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&w("transform","scale(1)",!0)}),Modernizr.addTest("csstransitions",w("transition","all",!0)),Modernizr.addTest("csstransforms3d",function(){return!!w("perspective","1px",!0)}),Modernizr.addTest("adownload",!e.externalHost&&"download"in o("a")),a(),s(S),delete x.addTest,delete x.addAsyncTest;for(var q=0;q<Modernizr._q.length;q++)Modernizr._q[q]();e.Modernizr=Modernizr}(window,document);
8!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("whatInput",[],t):"object"==typeof exports?exports.whatInput=t():e.whatInput=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var e=document.documentElement,t=null,n="initial",o=n,i=Date.now();try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(o=window.sessionStorage.getItem("what-intent"))}catch(e){}var r=["button","input","select","textarea"],s=[],a=[16,17,18,91,93],u=[],d={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},c=!1,w={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},f=!1;try{var l=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("test",null,l)}catch(e){}var h=function(){var e=!!f&&{passive:!0};window.PointerEvent?(window.addEventListener("pointerdown",m),window.addEventListener("pointermove",y)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",m),window.addEventListener("MSPointerMove",y)):(window.addEventListener("mousedown",m),window.addEventListener("mousemove",y),"ontouchstart"in window&&(window.addEventListener("touchstart",m,e),window.addEventListener("touchend",m))),window.addEventListener(b(),y,e),window.addEventListener("keydown",m),window.addEventListener("keyup",m),window.addEventListener("focusin",g),window.addEventListener("focusout",E)},m=function(e){var t=e.which,i=d[e.type];"pointer"===i&&(i=L(e));var s=!u.length&&-1===a.indexOf(t),c=u.length&&-1!==u.indexOf(t),w="keyboard"===i&&t&&(s||c)||"mouse"===i||"touch"===i;if(x(i)&&(w=!1),w&&n!==i){n=i;try{window.sessionStorage.setItem("what-input",n)}catch(e){}v("input")}if(w&&o!==i){var p=document.activeElement;if(p&&p.nodeName&&-1===r.indexOf(p.nodeName.toLowerCase())||"button"===p.nodeName.toLowerCase()&&!k(p,"form")){o=i;try{window.sessionStorage.setItem("what-intent",o)}catch(e){}v("intent")}}},v=function(t){e.setAttribute("data-what"+t,"input"===t?n:o),S(t)},y=function(e){var t=d[e.type];if("pointer"===t&&(t=L(e)),M(e),!c&&!x(t)&&o!==t){o=t;try{window.sessionStorage.setItem("what-intent",o)}catch(e){}v("intent")}},g=function(n){n.target.nodeName?(t=n.target.nodeName.toLowerCase(),e.setAttribute("data-whatelement",t),n.target.classList&&n.target.classList.length&&e.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):E()},E=function(){t=null,e.removeAttribute("data-whatelement"),e.removeAttribute("data-whatclasses")},L=function(e){return"number"==typeof e.pointerType?p[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},x=function(e){var t=Date.now(),o="mouse"===e&&"touch"===n&&t-i<200;return i=t,o},b=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},S=function(e){for(var t=0,i=s.length;t<i;t++)s[t].type===e&&s[t].fn.call(void 0,"input"===e?n:o)},M=function(e){w.x!==e.screenX||w.y!==e.screenY?(c=!1,w.x=e.screenX,w.y=e.screenY):c=!0},k=function(e,t){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(d[b()]="mouse",h(),v("input"),v("intent")),{ask:function(e){return"intent"===e?o:n},element:function(){return t},ignoreKeys:function(e){a=e},specificKeys:function(e){u=e},registerOnChange:function(e,t){s.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=function(e){for(var t=0,n=s.length;t<n;t++)if(s[t].fn===e)return t}(e);(t||0===t)&&s.splice(t,1)}}}()}])});
9window.console=window.console||{log:function(t){}}
9;var log=function(){},UNDEF="undefined",OBJECT="object",FUNCTION="function",STRING="string",NUMBER="number",BOOLEAN="boolean",NOLINK="javascript:void(0)",LOCAL="file:"===document.location.protocol,ONEDAY_S=86400,ONEDAY_MS=864e5,STARS='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="80" height="16" viewBox="0 0 80 16" xml:space="preserve"><path d="M12,10.094l0.938,5.5L8,13l-4.938,2.594L4,10.094L0,6.219l5.531-0.813l2.469-5l2.469,5L16,6.219L12,10.094z"/><path d="M28,10.094l0.938,5.5L24,13l-4.938,2.594l0.938-5.5l-4-3.875l5.531-0.813l2.469-5l2.469,5L32,6.219L28,10.094z"/><path d="M44,10.094l0.938,5.5L40,13l-4.938,2.594l0.938-5.5l-4-3.875l5.531-0.813l2.469-5l2.469,5L48,6.219L44,10.094z"/><path d="M60,10.094l0.938,5.5L56,13l-4.938,2.594l0.938-5.5l-4-3.875l5.531-0.813l2.469-5l2.469,5L64,6.219L60,10.094z"/><path d="M76,10.094l0.938,5.5L72,13l-4.938,2.594l0.938-5.5l-4-3.875l5.531-0.813l2.469-5l2.469,5L80,6.219L76,10.094z"/></svg>';if(DIR_PATH=function(){let t=window.location.pathname,e=document.getElementsByTagName("html")[0].getAttribute("data-level")||0;for(let n=0;n<e;n++)t=t.substring(0,t.lastIndexOf("/"));return t+"/"}(),LOCALSTORAGE=function(){try{return localStorage.setItem("_t",UNDEF),localStorage.removeItem("_t"),!0}catch(t){return!1}}(),HISTORY=function(){let t=navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),VEND=function(){let t=navigator.userAgent;return t.indexOf("Trident")>0||t.indexOf("Edge")>0?"ms":t.indexOf("AppleWebKit")>0?"webkit":t.indexOf("Gecko")>0?"moz":t.indexOf("Presto")>0?"o":t.indexOf("Blink")>0?"webkit":""}(),JAVAFXBROWSER=navigator.userAgent.indexOf("JavaFX/14")>0,BACKFACEBUG=function(){var t=navigator.userAgent.match(/Edge\/(\d+\.\d+)/);return t&&parseInt(t[1])<=16}(),TOUCH=/Trident|Edge/.test(navigator.userAgent)?window.navigator.pointerEnabled?{START:"pointerdown",MOVE:"pointermove",END:"pointerup",CANCEL:"pointercancel"}:{START:"MSPointerDown",MOVE:"MSPointerMove",END:"MSPointerUp",CANCEL:"MSPointerCancel"}:{START:"touchstart",MOVE:"touchmove",END:"touchend",CANCEL:"touchcancel"},TOUCHENABLED=/Trident/.test(navigator.userAgent)?typeof navigator.maxTouchPoints!==UNDEF&&navigator.maxTouchPoints:/Edge/.test(navigator.userAgent)?0==scrollbarWidth():/(Chrome|CriOS)/.test(navigator.userAgent)?/Mobile/.test(navigator.userAgent)||"ontouchstart"in window:"ontouchstart"in window,ISIOSDEVICE=/^iP/.test(navigator.platform)||/^Mac/.test(navigator.platform)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>4,ISSEPARATEHOVER=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,SMALLSCREEN=window.innerWidth<=480||window.innerHeight<=480||window.innerWidth<=640&&window.innerHeight<=640,PIXELRATIO=window.hasOwnProperty("devicePixelRatio")?window.devicePixelRatio:1,ZOOM=window.hasOwnProperty("visualViewport")?window.visualViewport.scale:1,HIDPI=PIXELRATIO>1.9,HASPDFVIEWER=navigator.pdfViewerEnabled,LANGUAGE=navigator.hasOwnProperty("languages")?navigator.languages[0]:navigator.language,WEBP_LOSSY=!1,WEBP_LOSSLESS=!1,checkWebpSupport=function(t,e){let n=new Image;n.onload=function(){e(n.width>0&&n.height>0)},n.onerror=function(){e(!1)},n.src="data:image/webp;base64,"+t},checkWebpSupport("UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",function(t){WEBP_LOSSY=t}),checkWebpSupport("UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",function(t){WEBP_LOSSLESS=t}),typeof DEBUG===UNDEF)var DEBUG=!1;if(typeof REL_PATH===UNDEF)var REL_PATH="";if(typeof PAGE_NAME===UNDEF)var PAGE_NAME="index.html";if(typeof THUMBS_DIR===UNDEF)var THUMBS_DIR="thumbs";if(typeof SLIDES_DIR===UNDEF)var SLIDES_DIR="slides";String.prototype.hasOwnProperty("trim")||(String.wsp=[],String.wsp[9]=!0,String.wsp[10]=!0,String.wsp[11]=!0,String.wsp[12]=!0,String.wsp[13]=!0,String.wsp[32]=!0,String.wsp[133]=!0,String.wsp[160]=!0,String.wsp[5760]=!0,String.wsp[6158]=!0,String.wsp[8192]=!0,Str
9ing.wsp[8193]=!0,String.wsp[8194]=!0,String.wsp[8195]=!0,String.wsp[8196]=!0,String.wsp[8197]=!0,String.wsp[8198]=!0,String.wsp[8199]=!0,String.wsp[8200]=!0,String.wsp[8201]=!0,String.wsp[8202]=!0,String.wsp[8203]=!0,String.wsp[8232]=!0,String.wsp[8233]=!0,String.wsp[8239]=!0,String.wsp[8287]=!0,String.wsp[12288]=!0,String.prototype.trim=function(){var t=this+"",e=t.length;if(e){var n=String.wsp,r=0;for(--e;e>=0&&n[t.charCodeAt(e)];)--e;for(++e;r<e&&n[t.charCodeAt(r)];)++r;t=t.substring(r,e)}return t}),String.prototype.hasOwnProperty("trunc")||(String.prototype.trunc=function(t){var e=this+"";if(e.length<=t)return e.toString();var n=e.substring(0,t-1),r=n.lastIndexOf(" ");return(r>6&&n.length-r<20?n.substring(0,r):n)+"..."}),String.prototype.hasOwnProperty("startsWith")||(String.prototype.startsWith=function(t){return(this+"").substring(0,t.length)===t}),String.prototype.hasOwnProperty("endsWith")||(String.prototype.endsWith=function(t){return(this+"").substring(this.length-t.length)===t}),String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},String.prototype.unCamelCase=function(){return this.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},String.prototype.getExt=function(){var t=this+"",e=t.lastIndexOf(".");return e<=0||e>=t.length-1?"":t.substring(e+1)},String.prototype.stripExt=function(){var t=this+"",e=t.lastIndexOf(".");return e<=0||e>t.length-1?t:t.substring(0,e)},String.prototype.hasExt=function(t){var e=this+"",n=e.lastIndexOf(".");return n>=0&&(e=e.substring(n+1).toLowerCase(),(t+",").indexOf(e+",")>=0)},String.prototype.replaceExt=function(t){var e=this+"",n=e.lastIndexOf(".");return n<=0?e:e.substring(0,n+1)+t},String.prototype.fixExtension=function(){return(this+"").replace(/.gif$/gi,".png").replace(/.tif+$/gi,".jpg")},String.prototype.getDir=function(){var t=(this+"").split("#")[0];return t.substring(0,t.lastIndexOf("/")+1)},String.prototype.getFile=function(){var t=(this+"").split("#")[0];return t.substring(t.lastIndexOf("/")+1)},String.prototype.getRelpath=function(t){var e=this+"",n=e.lastIndexOf("#");for(-1===n?n=e.length-1:n--;n>=0&&("/"!==e[n]||0!=t--);n--);return e.substring(n+1)},String.prototype.fixUrl=function(){for(var t,e,n=this+"";(t=n.indexOf("../"))>0;){if(1===t||-1===(e=n.lastIndexOf("/",t-2)))return n.substring(t+3);n=n.substring(0,e)+n.substring(t+2)}return n},String.prototype.fullUrl=function(){var t=this+"";return t.match(/^(http|ftp|file)/)||(t=window.location.href.getDir()+t),t.fixUrl()},String.prototype.cleanupHTML=function(){for(var t=[[/<(b|h)r\/?>/gi,"\n"],[/\&amp;/g,"&"],[/\&nbsp;/g," "],[/\&lt;/g,"<"],[/\&gt;/g,">"],[/\&(m|n)dash;/g,"-"],[/\&apos;/g,"'"],[/\&quot;/g,'"']],e=this+"",n=t.length-1;n>=0;n--)e=e.replace(t[n][0],t[n][1]);return e},String.prototype.stripHTML=function(t){var e=this+"";return t&&(e=e.cleanupHTML()),e.replace(/<\/?[^>]+>/g," ")},String.prototype.stripQuote=function(){return(this+"").replace(/\"/gi,"&quot;")},String.prototype.appendSep=function(t,e){return(this.length?this+(e||" &middot; "):"")+t},String.prototype.rgb2hex=function(){var t=this+"";if("#"===t.charAt(0)||"transparent"===t)return t;var e,n=t.match(/\d+/g),r="";if(n){for(var o=0;o<n.length&&o<3;++o)r+=((e=parseInt(n[o],10).toString(16)).length<2?"0":"")+e;return"#"+r}return"transparent"},String.prototype.template=function(t){if(typeof t===UNDEF||!this)return this;!isNaN(parseFloat(t))&&isFinite(t)&&(t+="");var e=this+"";if(t.constructor===Array)for(var n=0;n<t.length;++n)e=e.replace(new RegExp("\\{"+n+"\\}","gi"),t[n]);else e=e.replace(/\{0\}/gi,t);return e},String.prototype.getSearchTerms=function(){var t=this+"";if(-1===t.indexOf('"'))return t.split(" ");var e,n=[];do{if((e=t.indexOf('"'))>0&&n.push.apply(n,t.substring(0,e).split(" ")),t=t.substring(e+1),(e=t.indexOf('"'))<0){n.push(t);break}n.push(t.substring(0,e)),t=t.substring(e+1)}while(t.length);return n},String.prototype.objectify=function(){if(!this||!this.length)return this;var t=this+"";"?"!==t.charAt(0)&&"#"!==t.charAt(0)||(t=t.substring(1));for(var e,n={},r=t.split("&"),o=0,i=r.length;o<i;++o)(e=r[o].split("=")).length>1?"img"===e[0]?n.img=e[1]:n[e[0]]=decodeURIComponent(e[1]):n[e[0]]=null;return n},String.prototype.testIn=function(t){return"string"!=typeof t&&(t+=""),new RegExp(this,"i").test(t)},String.prototype.testExactMatch=function(t){if(t.constructor!==Array)return this==t+"";for(var e=0,n=t.length;e<n;++e)if(this==t[e])return!0;return!1},String.prototype.fixjAlbumPaths=function(t,e,n){var r=(this+"").replace(/\%24/g,"$");return t&&(r=r.replace(/\${resPath}/g,t)),e&&(r=r.replace(/\${rootPath}/g,e)),n&&(r=r.replace(/\${relPath}/g,n)),r},String.prototype.testMatch=function(t){if(typeof t===UNDEF)return!1;var e=this.toLowerCase();if(t.constructor!==Array)return e===(t+"").toLowerCase();for(var n=0,r=t.length;n<r;++n)if(e===t[n].toLowerCase())return!0;return!1},String.prototype.searchTerm=function(t,e,n,r){if(typeof t===UNDEF||!this.length)return!1;var o=typeof r!==UNDEF&&r,i=this+"",e=typeof e!==UNDEF&&e,n=typeof n!==UNDEF&&n,a=function(t,n){return e?o?t===n:t===n.toLowerCase():-1!==(" "+t).indexOf(" "+(o?n:n.toLowerCase()))};if(t.constructor===Array&&1===t.length&&(t=t[0]),o||(i=i.toLowerCase()),Array.isArray(t)){var s,l=t.length,c=0;for(s=0;s<l;s++)if(a(i,t[s])){if(!n)return!0;c++}else if(n)return!1;return c===l}return a(i,t)},String.prototype.hashCode=function(){for(var t=0,e=0,n=this.length;e<n;++e)t=(t<<5)-t+this.charCodeAt(e),t&=t;return t},Math.minMax=function(t,e,n){return(e=isNaN(e)?parseFloat(e):e)<t?t:e>n?n:e},Math.getRange=function(t,e){if(e.constructor!==Array)return t>=e?1:0;if(1===e.length)return t>=e[0]?1:0;if(t<e[0])return 0;for(var n=1;n<e.length&&!(t>=e[n-1]&&t<e[n]);n++);return n};var encodeJ=[];encodeJ[33]="%21",encodeJ[35]="%23",encodeJ[36]="%24",encodeJ[38]="
9%26",encodeJ[39]="%27",encodeJ[40]="%28",encodeJ[41]="%29",encodeJ[43]="%2B",encodeJ[44]="%2C",encodeJ[59]="%3B",encodeJ[60]="%3C",encodeJ[61]="%3D",encodeJ[62]="%3E",encodeJ[63]="%3F",encodeJ[64]="%40",encodeJ[123]="%7B",encodeJ[124]="%7C",encodeJ[125]="%7D";var transCodeJ=[];transCodeJ[33]="%21",transCodeJ[39]="%27",transCodeJ[40]="%28",transCodeJ[41]="%29";var isEmpty=function(t){return null==t||0===Object.getOwnPropertyNames(t).length},paramize=function(t){if("number"==typeof t)return""+t;if("string"==typeof t)return t;if("object"==typeof t){for(var e="",n=Object.getOwnPropertyNames(t),r=n.length,o=0;o<r;o++)null!==t[n[o]]&&("img"===n[o]?e+="&img="+t[n[o]]:e+="&"+n[o]+"="+encodeURIComponent(t[n[o]]));if(e.length)return e.substring(1)}return""},allTrue=function(t){if(t&&t.constructor===Array){for(var e=0;e<t.length;++e)if(!t[e])return!1;return!0}return!0===t},removeEmpty=function(t){if(t&&t.constructor===Array){var e,n=new Array;for(e=0;e<t.length;e++)typeof t[e]===STRING&&t[e].length&&n.push(t[e]);return n}return t},getCoords=function(t){return t.touches?1==t.touches.length?{x:t.touches[0].clientX,y:t.touches[0].clientY}:t.changedTouches&&1==t.changedTouches.length?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:null:{x:t.clientX,y:t.clientY}},translate=function(t,e){if(t=t.trim(),typeof Texts!==UNDEF&&Texts.hasOwnProperty(t))return Texts[t];if(typeof e!==UNDEF)return DEBUG&&console&&console.log("Using default translation: "+t+"="+e),e;DEBUG&&console&&console.log("Missing translation: "+t);var n=t.replace(/([A-Z])/g," $1").toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)},getKeys=function(t,e){var n,r={},o=t.split(","),i=o.length;for(n=0;n<i;n++)r[o[n]]=translate(o[n],e[o[n]]);return r},getTranslations=function(t){var e,n={};for(e in t)"object"==typeof t[e]?n[e]=getTranslations(t[e]):n[e]=translate(e,t[e]);return n},readData=function(t,e){var n={};if(t&&t.length&&e){e=e.split(",");for(var r,o=0;o<e.length;o++)null!=(r=t.data(e[o]))&&(n[e[o]]=r)}return n},niceByte=function(t){var e=parseFloat(t),n=Math.abs(e),r=function(t){return t<10?t.toFixed(1):Math.round(t)};return n<1e-4?"0":n<.1?e.toFixed(3):n<1?e.toFixed(2):n<1e3?r(e):n<1e6?r(e/1e3)+"k":n<1e9?r(e/1e6)+"M":n<1e12?r(e/1e9)+"G":e.toExponential()},niceTime=function(t){var e,n,r=parseFloat(t),o=Math.abs(r),i=function(t){return t<10?"0"+t:""+t},a=function(t){return t<10?t.toFixed(1):Math.round(t)};return o<1e-6?"0s":o<.001?a(1e6*r)+"&#181;s":o<1?a(1e3*r)+"ms":o<60?a(r)+"s":(e=Math.round(o)%60,n=Math.floor(o)/60%60,o<3600?n+"m"+i(e)+"s":Math.floor(o/3600)+"h"+i(n)+"m"+i(e)+"s")},toCurrency=function(t,e){return parseFloat(t).toLocaleString(LANGUAGE,{style:"currency",currency:e||"EUR"})},getRelativeDate=function(t){if(!t)return translate("today");if(1===t)return translate("yesterday");var e,n;return t>=730?(e=translate("yearsAgo"),n=Math.round(t/365)):t>=60?(e=translate("monthsAgo"),n=Math.round(t/30.5)):(e=translate("daysAgo"),n=t),e.replace("{0}",n)},getTimespan=function(t){if(!t)return translate("inThePast24Hours");if(t<2)return translate("inThePast48Hours");var e,n;return t>=730?(e=translate("inThePastNYears"),n=Math.round(t/365)):t>=60?(e=translate("inThePastNMonths"),n=Math.round(t/30.42)):(e=translate("inThePastNDays"),n=Math.round(t)),e.replace("{0}",n)},getFractionValue=function(t){var e=t.match(/^([\d\.]+)\/([\d\.]+)/);return e&&e.length>1&&0!==parseFloat(e[2])?e[1]/e[2]:t},getExposure=function(t){return t=t.includes("/")?getFractionValue(t):parseFloat(t)},getRelativePath=function(t,e){if(typeof e===UNDEF||typeof t===UNDEF)return"";if("./"===t&&(t=REL_PATH),"./"===e&&(e=REL_PATH),e.endsWith("/")||(e+="/"),t.endsWith("/")||(t+="/"),t===e)return"";if("/"===t)return e;var n=t.split("/").filter(Boolean);if("/"===e)return getParentFolderLink(n.length);for(var r=e.split("/").filter(Boolean);n.length&&r.length&&n[0]===r[0];)n.shift(),r.shift();return getParentFolderLink(n.length)+(r.length?r.join("/")+"/":"")},getParentFolderLink=function(t){return t>0?"../../../../../../../../../../../../../../../../../../../../".substring(0,3*t):""},encodeAsJava=function(t){var e="";t=/^(https?:|file:)?\/\//i.test(t)?encodeURI(t):encodeURIComponent(t);for(var n=0;n<t.length;n++)e+=encodeJ[t.charCodeAt(n)]||t.charAt(n);return e},transcodeJavaURIComponent=function(t){for(var e="",n=0;n<t.length;n++)e+=transCodeJ[t.charCodeAt(n)]||t.charAt(n);return e},extend=function(){if(arguments.length<2)return arguments[0]||{};for(var t=arguments[0],e=1;e<arguments.length;e++)if(null!=arguments[e])for(var n in arguments[e])arguments[e].hasOwnProperty(n)&&(t[n]=arguments[e][n]);return t},passDefaults=function(t,e,n){if(t&&e)if(typeof n!==UNDEF){n=n.split(",");for(var r=0;r<n.length;r++)t.hasOwnProperty(n[r])&&(e[n[r]]=t[n[r]])}else for(var o in t)e[o]=t[o]},readUserPrefs=function(t,e){if(typeof e!==UNDEF&&t){e=e.split(",");for(var n,r=0;r<e.length;r++)null!==(n=$.cookie(e[r]))&&(t[e[r]]=n)}},savePrefs=function(t,e,n){var r,o,i={};
9for(r in e)o=e[r],t.hasOwnProperty(o)&&(i[o]=t[o]);i&&$.cookie(typeof n===UNDEF?"lb_pref":n,i)},loadPrefs=function(t,e,n){var r,o,i=$.cookie(typeof n===UNDEF?"lb_pref":n);if(i)for(r in e)o=e[r],i.hasOwnProperty(o)&&(t[o]="true"===i[o]||"false"===i[o]?!!i[o]:i[o])},addParam=function(t,e,n){if(HISTORY){var r=window.location.hash;r&&(history.state?(typeof history.state===STRING&&(history.state=history.state.objectify()),history.state.hasOwnProperty("img")&&(history.state.img=encodeURIComponent(history.state.img)),e=extend(history.state,e)):("#"===r.charAt(0)&&(r=r.substring(1)),e=extend(r.objectify(),e))),(r="#"+paramize(e))!==window.location.hash&&history.pushState(e,typeof n===UNDEF?"":n,r.length>1?r:t||"index.html")}},setParam=function(t,e,n){if(HISTORY){var r="#"+paramize(e);r!==window.location.hash&&history.pushState(e,typeof n===UNDEF?"":n,r.length>1?r:t||"index.html")}},removeParam=function(t,e,n){if(HISTORY){var r,o=window.location.hash;o&&(typeof e===UNDEF?(o="",history.pushState("","",t||"index.html")):("#"===o.charAt(0)&&(o=o.substring(1)),(r=o.objectify()).hasOwnProperty(e)&&(delete r[e],o="#"+paramize(r)),history.pushState(r,typeof n===UNDEF?"":n,o.length>1?o:t||"index.html")))}},readParam=function(){if(HISTORY){if(history.state)return typeof history.state===STRING&&(history.state=history.state.objectify()),history.state.hasOwnProperty("img")&&(history.state.img=encodeURIComponent(history.state.img)),history.state;var t=window.location.hash;return"#"===t.charAt(0)&&(t=t.substring(1)),t.objectify()}return null},removeSearch=function(t){HISTORY&&history.replaceState(history.state,typeof t===UNDEF?"":t,window.location.href.replace(window.location.search,""))},restoreScrollPosition=function(){if(LOCALSTORAGE){var t=$.cookie("last-touch"),e=(new Date).valueOf(),n=$.cookie(REL_PATH+PAGE_NAME+":scroll-pos"),r=function(t,e){$("html").height()>=t?$("html").scrollTop(t):e&&setTimeout(r,1e3,t,e-1)};t&&e-t<2e3&&n&&r(n,6)}},saveScrollPosition=function(){if(LOCALSTORAGE){var t=$("html").scrollTop();$.cookie(REL_PATH+PAGE_NAME+":scroll-pos",t||null,300),$.cookie("last-touch",(new Date).valueOf(),300)}},pushAll=function(t,e){if(t instanceof Array)if(e instanceof Array)for(var n=0,r=e.length;n<r;n++)t.push(e[n]);else t.push(e)},pushNew=function(t,e){if(t instanceof Array)if(e instanceof Array)for(var n=0,r=e.length;n<r;n++)t.includes(e[n])||t.push(e[n]);else t.includes(e)||t.push(e)},videoDurationMs=function(t){var e=t.match(/(\d{2})\:(\d{2})\:(\d{2})(\.(\d+))?/);return e?(e[5]?Math.round(1e3*parseFloat("0."+e[5])):0)+1e3*parseInt(e[3])+6e4*parseInt(e[2])+36e5*parseInt(e[1]):null},guessDimensions=function(t){var e,n,r=[];return t?(e=t.match(/<\w+\s[^>]*\swidth="([\d\.]+)"/i)||t.match(/<\w+\s[^>]*\sstyle=".*width:\s?([\d\.]+)(r?em|px)"/i),n=t.match(/<\w+\s[^>]*\sheight="([\d\.]+)"/i)||t.match(/<\w+\s[^>]*\sstyle=".*height:\s?([\d\.]+)(r?em|px)"/i),e?(r[0]=parseFloat(e[1]),e.length>2&&"px"!==e[2]&&(r[0]*=16),n?(r[1]=parseFloat(n[1]),n.length>2&&"px"!==n[2]&&(r[1]*=16)):r[1]=.75*r[0],r):null):null},currencyToHtml={USD:"US$",EUR:"&euro;",GBP:"GB&pound;",JPY:"&yen;",HUF:"Ft",CAD:"CAN$",AUD:"AU$",RUB:"&#8381;"},codeToCurrency=function(t){return currencyToHtml.hasOwnProperty(t)?currencyToHtml[t]:t},currencyToHtmlShort={USD:"$",EUR:"&euro;",GBP:"&pound;",JPY:"&yen;",HUF:"Ft",CAD:"$",AUD:"$",RUB:"&#8381;"},codeToShortCurrency=function(t){return currencyToHtmlShort.hasOwnProperty(t)?currencyToHtmlShort[t]:t},printImage=function(t,e,n){if(t){var r=window.open("about:blank","print","location=no,status=no,titlebar=no");
9r.document.open(),r.document.write('<!DOCTYPE html>\n<html>\n<head>\n<meta charset="utf-8">\n<title>'+(e||"Print")+'</title>\n<script>printOut=function(){window.print();window.close();}<\/script>\n<style>body{margin:0;padding:0;text-align:center;overflow:hidden;}\nimg{display:block;width:100%;height:auto;vertical-align:top;}</style>\n</head>\n<body onLoad="setTimeout(printOut,100)"><img src="'+t+'">'+(n||"")+"</body>\n</html>"),r.document.close()}},getFileSize=function(t,e,n){var r=new XMLHttpRequest;r.open("HEAD",t,!0),r.onreadystatechange=function(){this.readyState==this.DONE&&200===this.status&&typeof e===FUNCTION&&(typeof n!==UNDEF?e.call(this,[this.getResponseHeader("content-length")],n):e.call(this,[this.getResponseHeader("content-length")]))},r.send()},moveInView=function(t){var e=$(t);if(e.length&&e.is(":visible")){var n=e.offset().top,r=navigator.userAgent.match(/(iPod|iPhone|iPad)/)?$("body"):$("html"),o=r.scrollTop();(n<o||n>o+window.outerHeight-80)&&(navigator.userAgent.match(/(iPod|iPhone|iPad)/)?window.scrollTo(0,n):r.animate({scrollTop:n},500,function(){r.clearQueue()}))}},xDecrypt=function(t){if("string"!=typeof t)return"";var e,n,r,o=[147,163,87,254,153,4,198,23],i=t.length,a=5*Math.ceil(i/8),s=new Array(a),l="",c=0;for(e=0;e<a;e++)s[e]=0;for(e=0;e<i;e++)(r=t.charCodeAt(e)-48)>9&&(r-=7),r<<=11-c%8,(n=c>>3)<a&&(s[n]|=r>>8,++n<a&&(s[n]|=255&r)),c+=5;for(e=0;e<a;e++)s[e]^=o[e%8];for(a=s[0]|s[1]<<8,r=0,e=4;e<a;e++)l+=String.fromCharCode(s[e]),r+=s[e];return r!=(255&s[2]|s[3]<<8)&&(l=""),l},getStyle=function(t,e){if(t instanceof Element){if(document.defaultView&&document.defaultView.getComputedStyle)return document.defaultView.getComputedStyle(t,"").getPropertyValue(e.unCamelCase());if(t.currentStyle)return t.currentStyle[e]}return null},scrollbarWidth=function(){var t=document.createElement("div"),e=0;return t.style.cssText="width:100px;height:100px;overflow:scroll !important;position:absolute;top:-9999px",document.body&&(document.body.appendChild(t),e=t.offsetWidth-t.clientWidth,document.body.removeChild(t)),e},addClass=function(t,e){t.classList?t.classList.add(e):t.className+=" "+e},pageZoomed=function(){return!!window.hasOwnProperty("visualViewport")&&window.visualViewport.scale>ZOOM},playVideo=function(t,e){if(t&&"VIDEO"===t.nodeName)if(t.paused){let n=t.play();typeof n!==UNDEF&&n.then(()=>{addClass(t,"playing"),typeof e===FUNCTION&&e.call(null)}).catch(n=>{"NotAllowedError"===n.name?(t.muted=!0,t.play().then(()=>{console.log("Falling back to muted autoplay! Unmute the video manually!"),addClass(t,"playing"),typeof e===FUNCTION&&e.call(null)}).catch(t=>{console.log("Autoplay rejected. Try starting the video manually!")})):console.log("Video format not supported!")})}else typeof e===FUNCTION&&e.call(null)},fullscreenChanged=0,fullscreenChangedSince=function(){return new Date-fullscreenChanged},hasFullscreen=function(){return document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled},isFullscreen=function(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)},onFullscreenChange=function(t){let e=function(e){t(isFullscreen())};typeof t===FUNCTION&&["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","msfullscreenchange"].forEach(t=>document.addEventListener(t,e,!1))},requestFullscreen=function(t,e){if(hasFullscreen())if(isFullscreen())typeof t===FUNCTION&&t.call();else{let n=document.documentElement;n.requestFullscreen?n.requestFullscreen().then(t||(()=>{})).catch(t=>{typeof e===FUNCTION?e.call():console.log("Full-screen error: "+t.message+" ("+t.name+")")}):n.mozRequestFullscreen?(n.mozRequestFullscreen(),t.call()):n.webkitRequestFullscreen?(n.webkitRequestFullscreen(),t.call()):n.msRequestFullscreen&&(n.msRequestFullscreen(),t.call()),fullscreenChanged=new Date}},exitFullscreen=function(t,e){hasFullscreen()&&(isFullscreen()?(typeof t!==FUNCTION&&(t=function(){}),typeof e!==FUNCTION&&(e=function(t){console.log("Full-screen error: "+t.message+" ("+t.name+")")}
9),document.exitFullscreen?document.exitFullscreen().then(t).catch(e):document.mozExitFullscreen?document.mozExitFullscreen().then(t).catch(e):document.webkitExitFullscreen?(document.webkitExitFullscreen(),t.call()):document.msExitFullscreen&&document.msExitFullscreen().then(t).catch(e),fullscreenChanged=new Date):typeof t===FUNCTION&&t.call())},orientationChanged=function(t,e){"change"===t.type?t.target.type.startsWith("landscape")&&!isFullscreen()&&requestFullscreen(e):"orientationchange"===t.type&&t.target.innerWidth>t.target.innerHeight&&!isFullscreen()&&requestFullscreen(e)},goFullscreenOnLandscapeChange=function(){(document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled)&&(typeof screen!==UNDEF&&screen.hasOwnProperty("orientation")?screen.orientation.addEventListener("change",orientationChanged):window.addEventListener("orientationchange",orientationChanged))},wakeLock=null,requestWakeLock=async(t,e)=>{if("wakeLock"in navigator&&"request"in navigator.wakeLock){wakeLock=null;try{wakeLock=await navigator.wakeLock.request("screen"),typeof t===FUNCTION&&t.call()}catch(t){typeof e===FUNCTION&&e.call(t)}}},releaseWakeLock=(t,e)=>{wakeLock&&wakeLock.release().then(()=>{wakeLock=null,typeof t===FUNCTION&&t.call()})},loadExternal=function(t,e){return t.endsWith(PAGE_NAME)&&(t=t.slice(0,-PAGE_NAME.length)),t.endsWith("/")||(t+="/"),$.getJSON(t+"data1.json").done(function(t){typeof e===FUNCTION&&e.call(t)}).fail(function(e,n,r){DEBUG&&console.log('Not an album, or cannot load album database for: "'+t+'".')})},loadGoogleAnalytics=function(t,e,n){if(!LOCAL){var r=xDecrypt(t);"universal"===e?(!function(t,e,n,r,o,i,a){t.GoogleAnalyticsObject=o,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*new Date,i=e.createElement(n),a=e.getElementsByTagName(n)[0],i.async=1,i.src="https://www.google-analytics.com/analytics.js",a.parentNode.insertBefore(i,a)}(window,document,"script",0,"ga"),ga("create",r,"auto"),n&&ga("require","displayfeatures"),ga("send","pageview")):(window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)},window.gtag("js",new Date),DEBUG?(window.gtag("config",r,{debug_mode:!0}),console.log("gtag:",typeof gtag),console.log("dataLayer:",window.dataLayer)):window.gtag("config",r))}},loadGoogleAPI=function(t,e){if(!LOCAL){!function(t,e,n,r,o,i,a){(i=e.createElement(n)).appendChild(e.createTextNode("{parsetags:'explicit',lang:'${lang}'}")),a=e.getElementsByTagName(n)[0],i.async=1,i.src=r,a.parentNode.insertBefore(i,a)}(window,document,"script",("https:"==document.location.protocol?"https:":"http:")+"//apis.google.com/js/platform.js");var n=30,r=function(){typeof gapi===UNDEF?n--?setTimeout(r,200):"console"in window&&console.log("Google Plus API failed to load!"):setTimeout(function(){gapi[e].go()},200)};t&&r()}},loadFacebookAPI=function(t,e){LOCAL||(window.fbAsyncInit=function(){typeof jQuery!==UNDEF&&jQuery(".social-links").trigger("updateLinks")},function(n,r,o){var i,a=n.getElementsByTagName(r)[0];n.getElementById(o)||((i=n.createElement(r)).id=o,i.src="https://connect.facebook.net/"+(e||"en_US")+"/sdk.js#xfbml=1&version=v3.0&appId="+xDecrypt(t),a.parentNode.insertBefore(i,a))}(document,"script","facebook-jssdk"))},loadDisqusAPI=function(t){LOCAL||function(e,n){(n=e.createElement(n)).async=1,n.src="https://"+xDecrypt(t)+".disqus.com/embed.js",n.setAttribute("data-timestamp",+new Date),(e.head||e.body).appendChild(n)}(document,"script")},loadPinterestAPI=function(){LOCAL||function(t,e){(e=t.createElement(e)).async=1,e.src="https://assets.pinterest.com/js/pinit.js",(t.head||t.body).appendChild(e)}(document,"script")},loadAPIs=function(t,e){if(t&&!isEmpty(t))for(var n in t)if(typeof e===UNDEF||e[n])switch(n){case"googleAnalytics":loadGoogleAnalytics(t[n][0],t[n][1],t[n][2]);break;case"googlePlus":loadGoogleAPI(t[n][0],t[n][1]);break;case"facebook":loadFacebookAPI(t[n][0]);break;case"disqus":loadDisqusAPI(t[n][0]);break;case"pinterest":loadPinterestAPI()}},askTrackingConsent=function(t,e){if((e&&!isEmpty(e)||t.cookiePolicy)&&!LOCAL){t=$.extend({},{stay:15,buttonClass:"button"},t),e=e||{};var n=getTranslations({close:"Close",cookiePolicyText:"This album is using cookies to remember your preferences. It does not track you, nor does it store personal data.",cookiePolicyAgree:"Got it",gdprComplianceText:"This site uses the following external services that may track y
9our visits anonymously. Disabling tracking will stop their functionality.",allowAll:"Allow all",denyAll:"Deny all",allowSelected:"Allow selected",cookiePolicyLearnMore:"Learn more"}),r=$.albumCookie("trackingConsent"),o=!1,i=!1,a="icon-checkmark",s=function(t){var e=$(t.target),n=e.hasClass(a);e.toggleClass(a,!n),l()},l=function(){var t=$("#trackingConsent span."+a).length>0;$("#allow,#deny").toggle(!t),$("#allowsel").toggle(t)},c=function(t){var n,r=$("#trackingConsent span");return n=$.extend({},$.albumCookie("trackingConsent"),{cookie:1}),"allow"===this.id?r.each(function(){$(this).addClass(a),n[$(this).attr("id")]=1}):"deny"===this.id?r.each(function(){$(this).removeClass(a),n[$(this).attr("id")]=0}):"allowsel"===this.id&&r.each(function(t){n[$(this).attr("id")]=$(this).hasClass(a)}),$.albumCookie("trackingConsent",n,31622400),u(),loadAPIs(e,n),!1},u=function(){$("#cookiepolicy").on("transitionend",function(){$(this).remove()}).css({opacity:0,transform:"translate(-50%,120%)"})};if(r?(o=!function(){for(var t in e)if(!r.hasOwnProperty(t))return!1;return!0}(),i=t.hasOwnProperty("cookiePolicy")&&t.cookiePolicy&&!r.hasOwnProperty("cookie")):(o=!isEmpty(e),i=t.hasOwnProperty("cookiePolicy")&&t.cookiePolicy),o||i){var d,f=$("<div>",{id:"cookiepolicy"}).appendTo($("body")),p=$("<div>",{class:"texts"}).appendTo(f),h=$("<div>",{class:"buttons"}).appendTo(f);if(f.append($("<a>",{class:"close icon-close "+t.buttonClass,title:n.close}).on("click",u)),i&&(d=$("<p>",{id:"cookiePolicy",html:n.cookiePolicyText}).appendTo(p),o||h.append($("<a>",{id:"agree",class:"icon-ok "+t.buttonClass,text:" "+n.cookiePolicyAgree}).on("click",c))),o){d=$("<p>",{id:"trackingConsent",html:n.gdprComplianceText}).appendTo(p);for(var g in e)d.append($("<span>",{id:g,class:"checkbox"+(r&&r[g]?" "+a:""),html:"&nbsp;"+g.capitalize()}).on("click",s));h.append($("<a>",{id:"allow",class:"icon-ok "+t.buttonClass,text:" "+n.allowAll}).on("click",c)),h.append($("<a>",{id:"deny",class:"alert icon-close "+t.buttonClass,text:" "+n.denyAll}).on("click",c)),h.append($("<a>",{id:"allowsel",class:"icon-ok "+t.buttonClass,text:" "+n.allowSelected}).on("click",c)),l()}t.cookiePolicyUrl&&p.append(" ").append($("<a>",{text:n.cookiePolicyLearnMore,target:"_blank",href:t.cookiePolicyUrl})),f.css({opacity:1,transform:"translate(-50%,0)"}),setTimeout(u,1e3*t.stay)}else loadAPIs(e,r)}};addClass(document.getElementsByTagName("html")[0],(TOUCHENABLED?"":"no-")+"touch"),addClass(document.getElementsByTagName("html")[0],(HIDPI?"":"no-")+"hidpi"),function(t,e){"use strict";var n,r,o=!1,i=1;log=function(e){var a=function(t){if(Array.isArray(t)){for(var e="",n=0;n<t.length;n++)e+=a(t[n])+", ";return"[ "+e.substring(0,e.length-2)+" ]"}if("object"==typeof t){e="";for(var n in t)e+=n+": "+a(t[n])+",<br>";return"{ "+e+" }"}return isNaN(t)?t:parseInt(t)===t?t:t.toFixed(4)};DEBUG&&!o&&(n||(n=t('<div id="log" style="position:fixed;left:0;top:0;width:200px;bottom:0;overflow:auto;padding:10px;background-color:rgba(0,0,0,0.5);color:#fff;font-size:0.75em;z-index:999999"></div>').hover(function(){o=!0},function(){o=!1}).appendTo("body")),e===r?n.children().first().empty().html(r+" <sup>("+ ++i+")</sup>"):(t('<div style="height:3em;overflow:auto;">'+a(e)+"</div>").prependTo(n),r=e,i=1))},t.fn.logEvents=function(e){if(DEBUG){var n=e||"mousedown mouseup mouseover mouseout mousewheel wheel dragstart click blur focus load unload reset submit change abort cut copy paste selection drag drop orientationchange touchstart touchmove touchend touchcancel pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp gesturestart gesturechange gestureend";return this.each(function(){t(this).on(n,function(t){return typeof t===UNDEF?log("Undefined event"):t.target?"log"!==t.target.id&&log(t.type+' <span style="padding:0 4px;font-size:0.75em;background-color:#000;border-radius:4px;"><b>'+(t.target.nodeName?t.target.nodeName.toLowerCase():"???")+"</b>"+(t.target.id?":"+t.target.id:"")+"</span>"+(t.relatedTarget?' <span style="padding:0 4px;font-size:0.6em;background-color:#800;border-radius:4px;"><b>'+t.relatedTarget.nodeName.toLowerCase()+"</b>"+(t.relatedTarget.id?":"+t.relatedTarget.id:"")+"</span>":"")):log("No event target!"),!0})})}},t.fn.logCss=function(e,n,r){if(DEBUG){r=r||20,n=n||2e3;var o=new Date;return this.each(function(){var i=t(this),a=function(t){var e=new Date-o;log(e+"&nbsp;::&nbsp;"+t+" = "+i.css(t)),e>n&&clearInterval(s)},s=setInterval(function(){if(Array.isArray(e))for(var t=0;t<e.length;t++)a(e[t]);else a(e)},r)})}},t.fn.setFocus=function(t){this.length&&(typeof t!==UNDEF?this[0].focus(t):this[0].focus())},void 0===t.fn.deserialize&&(t.fn.deserialize=function(e){if(!e)return this;var n=t(this),r=e.replace(/\+/g,"%20").split("&");return t.each(r,function(t,e){var r=e.split("="),o=decodeURIComponent(r[0]),i=null!==r[1]?decodeURIComponent(r[1]):"",a=n.find("[name="+o+"]");if(!a.length)return!0;
9if("radio"===a[0].type||"checkbox"===a[0].type){var s=a.filter('[value="'+i+'"]'),l=s.length;l||"on"!==i?s.prop("checked",l):a.eq(0).prop("checked",!0)}else a.val(i)}),this}),void 0===t.when.all&&(t.when.all=function(e){var n=new t.Deferred;return t.when.apply(t,e).then(function(){n.resolve(Array.prototype.slice.call(arguments))},function(){n.reject(Array.prototype.slice.call(arguments))}),n}),t.fn.getRotate=function(){if(this&&this.length){var t,e=window.getComputedStyle(this[0],null),n=e.getPropertyValue("transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-webkit-transform");if(n&&(t=n.match(/matrix3d\(([^\)]+)\)/))&&t&&t.length>2)return t=t[1].split(/\s*,/),Math.round(Math.atan2(parseFloat(t[1]),parseFloat(t[0]))*(180/Math.PI))}return 0},t.fn.getMatrix=function(){if(this&&this.length){var t,e=window.getComputedStyle(this[0],null),n=e.getPropertyValue("transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-webkit-transform"),r=[];if(n&&(t=n.match(/matrix(3d)?\(([^\)]+)\)/))&&t&&t.length>2)return(t=t[2].split(/,\s*/)).forEach(function(t){r.push(parseFloat(t))}),r}return[1,0,0,1,0,0]},t.fn.getTranslate=function(){if(this&&this.length){var t=this.getMatrix();return[t[4],t[5]]}return[0,0]},t.fn.getScale=function(){if(this&&this.length){var t=this.getMatrix();return[t[0],t[3]]}return[1,1]},t.fn.backwards=[].reverse,t.fn.waitAllImg=function(e,n,r){if(this&&this.length){var o=t(this),i=[];return function(e){return e.filter("img[src]").not('[src=""]').each(function(){i.push(function(e){var n=new t.Deferred,r=new Image;return r.onload=function(){n.resolve(e)},r.onerror=function(){n.reject(new Error("Image not found: "+e.src))},r.src=e.src,n}(this))}),e.filter("video[src]").not('[src=""]').each(function(){i.push(function(e){var n=new t.Deferred,r=document.createElement("VIDEO");return r.addEventListener("loadedmetadata",function(){n.resolve(e)}),r.addEventListener("error",function(){n.reject(new Error("Video not found: "+e.src))}),r.src=e.src,n}(this))}),t.when.all(i)}(o).then(function(t){typeof n===FUNCTION&&n!==e&&n.call(t)},function(t){typeof r===FUNCTION&&r.call(t)}).then(function(){typeof e===FUNCTION&&e.call(o)}),this}e.call(this)},t.fn.askPermission=function(e){var n=getTranslations({restrictedLinkTitle:"Restricted material",restrictedLinkQuestion:"Please verify your age to proceed!",restrictedLinkYes:"I´m over 18",restrictedLinkNo:"I´m below 18"});return t(this).filter("[href]").each(function(){t(this).data("href",t(this).attr("href")),t(this).attr("href",null),t(this).on("click._lap_",function(e){var r=t.extend({},n,function(t){var e={},n=t.data("ask-permission");return n&&null!==(n=n.split("::"))[0]&&(e.restrictedLinkTitle=n[0],null!==n[1]&&(e.restrictedLinkQuestion=n[1],null!==n[2]&&(e.restrictedLinkYes=n[2],null!==n[3]&&(e.restrictedLinkNo=n[3])))),e}(t(this)));return e.preventDefault(),r.link=t(this).data("href"),t("body").modal(t('<div class="text-center">'+r.restrictedLinkQuestion+"</div>"),[{t:r.restrictedLinkYes,c:"icon-checkmark",h:function(){window.location.href=r.link}},{t:r.restrictedLinkNo,c:"icon-close alert",h:function(){return!0}}],{icon:"warning",class:"small warning",title:r.restrictedLinkTitle}),!1})})}}(jQuery);
10const J={ALBUM:"album",FOLDERS:"folders",NAME:"name",PATH:"path",THUMB:"thumb",IMAGE:"image",WIDTH:"width",HEIGHT:"height",RENDITIONS:"renditions",ORIGINAL:"original",OBJECTS:"objects",FILEDATE:"fileDate",COMMENT:"comment",TITLE:"title",KEYWORDS:"keywords",COUNTERS:"counters",DEEPCOUNTERS:"deepCounters",FILESIZE:"fileSize",CATEGORY:"category",RATING:"rating",PRICE:"price",CAMERA:"camera",VIDEO:"video",DURATION:"duration",FPS:"fps",HIDDEN:"hidden",VIEW:"view",INTERNALLINK:"internalLink",LEVEL:"level",PATHREF:"pathRef",PARENTREF:"parentRef",RELPATH:"relPath",FOLDERCAPTION:"folderCaption",IMAGECAPTION:"imageCaption",THUMBCAPTION:"thumbCaption",PHOTODATA:"photodata",LOCATION:"location",HIDELOCATION:"hideLocation",DISABLEFEEDBACK:"disableFeedback",REGIONS:"regions",SHOP:"shop",EXTERNAL:"external",PROJECTIONTYPE:"projectionType",GPANO:"gpano",ORIGINALFILE:"originalFile",SLIDESHOWINTERVAL:"slideshowInterval",TRANSITIONSPEED:"transitionSpeed",DATES:"dates",ADDED:"added",DATETAKEN:"dateTaken",FILEMODIFIED:"fileModified",DATERANGE:"dateRange",MOSTPHOTOS:"mostphotos",HIDEFOTOMOTO:"hideFotomoto",FOTOMOTOCOLLECTION:"fotomotoCollection",AUDIOCLIP:"audioClip",PANORAMA:"panorama",FILTERS:"filters",SORT
10:"sort",VISITORRATING:"visitorRating",OBJ:"obj",LOADCOUNTER:"loadcounter",TOTAL:"total",FOLDERINDEX:"folderindex",READY:"ready",ONREADY:"onReady",DEEP:"deep",SIZE:"size",CONT:"cont",TYPE:"type"},JCAMERAFIELDS=["aperture","exposureTime","originalDate","cameraModel","location","focusDistance","focalLength35mm","cameraMake","resolution","isoEquivalent","flash","focalLength"];var Album=function(e,t){let r,n,a,E=null,l={treeFile:"tree.json",dataFile:"data1.json",deepDataFile:"deep-data.json",indexName:"index.html",folderImageFile:"folderimage.jpg",folderImageDims:[1200,800],folderThumbFile:"folderthumb.jpg",folderThumbDims:[1024,768],thumbDims:[240,180],thumbsDir:"thumbs",slidesDir:"slides",hiresDir:"hi-res",hiDpiThumbs:!1,hiDpiImages:!1,useOriginals:!1,thumbsFillFrame:!0,audioPoster:"audio.poster.png",defaultAudioPosterSize:[628,360],videoPoster:"video.poster.png",defaultVideoPosterSize:[628,360],rootPath:"",relPath:"",loadDeep:!1,lazy:!0,fatalError:(e,t)=>y("Error: "+(typeof t===UNDEF?translate(e):translate(e).replace(/\{0\}/g,t))),possibleTypes:["folder","webPage","webLocation","image","video","audio","other"],locale:"en-US"},i=getTranslations({and:"and",from:"From {0}"}),s=new RegExp(`\\s+(?:&|${i.and})\\s+`,"gu"),O=null,h="",p=[],f=[],T=[],u=!1,D=!1,A=[],I=()=>n&&n.hasOwnProperty(J.DEEP)&&n[J.DEEP],y=e=>{console&&typeof e!==UNDEF&&(e.match(/^Error\:/i)&&console.error("jalbum-album.js "+e),typeof DEBUG!==UNDEF&&DEBUG&&(e.match(/^Warning\:/i)?console.warn("jalbum-album.js "+e):e.match(/^Info\:/i)?console.info("jalbum-album.js "+e):console.log("jalbum-album.js "+e)))},c=e=>decodeURIComponent(e.slice(e.lastIndexOf("/")+1)),P=e=>{var t=b(e).match(/\.(\w+)$/);return t?t[1]:""},N=e=>e.hasOwnProperty(J.CATEGORY)&&-1!=="image.video.audio.other".indexOf(e[J.CATEGORY]),R=function(){if(arguments.length){let e=[];for(let t,r=0;r<arguments.length;r++)(t=arguments[r]).length&&("/"===t?e=[]:("/"===t[0]&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t.length&&e.push(t)));return e.join("/")}return""},g=e=>e&&e.hasOwnProperty(J.PATHREF)&&e[J.PATHREF]?p[e[J.PATHREF]-1]:"",L=e=>e&&e.hasOwnProperty(J.RELPATH)&&e[J.RELPATH]?f[e[J.RELPATH]-1]:"",F=e=>typeof e!==UNDEF?null!==O?R(O,g(e)):L(e):O||"",C=e=>typeof e!==UNDEF?g(e):"",S=e=>{if(typeof e!==UNDEF){let t=F(e),r=e[J.CATEGORY]||"folder";return"folder"===r?t:"video"===r?R(t,e[J.VIDEO][J.PATH]):"audio"===r||"other"===r||e.hasOwnProperty(J.ORIGINAL)?R(t,e[J.ORIGINAL][J.PATH]):"image"===r?R(t,e[J.IMAGE][J.PATH]):"webPage"===r?R(t,e[J.PATH]):e[J.PATH]}return null},m=e=>typeof e!==UNDEF?g(e)+("folder"!==e[J.CATEGORY]?e[J.PATH]:""):null,H=e=>{if(typeof e!==UNDEF){if("video"===e[J.CATEGORY])return[e[J.VIDEO][J.WIDTH],e[J.VIDEO][J.HEIGHT]];if(e.hasOwnProperty(J.ORIGINAL))return[e[J.ORIGINAL][J.WIDTH],e[J.ORIGINAL][J.HEIGHT]]}return null},G=e=>typeof e!==NUMBER||e<=0?n:--e>p.length?(y("Error: out of bounds path reference ("+e+")!"),null):U(p[e]),U=e=>{if(typeof e===UNDEF)return null;if(!e.length)return n;e.endsWith("/")&&(e=e.slice(0,-1)),e.startsWith("/")&&(e=e.slice(1));let t,r=n,o=e.split("/");for(t=0;t<o.length;t++){if(I()){if(r.hasOwnProperty(J.OBJECTS)&&(r=r[J.OBJECTS].find(e=>"folder"===e[J.CATEGORY]&&e[J.PATH]===o[t])))continue}else if(r.hasOwnProperty(J.FOLDERS)&&(r=r[J.FOLDERS].find(e=>e[J.PATH]===o[t])))continue;return null}return t===o.length?r:null},B=e=>{if(typeof e===UNDEF&&(e=a),e===n)return null;let t=G(e.hasOwnProperty(J.PARENTREF)?e[J.PARENTREF]:e[J.PATHREF]);return t===e?null:t},M=function(e,t,r){if(typeof t!==FUNCTION)return;let o=function(e,t){let n=t[0],o=t[1];if(e.hasOwnProperty(J.OBJECTS)){let t;n.endsWith(".webloc")?(n=n.slice(0,-7),t=e[J.OBJECTS].find(function(e){return"webLocation"===e[J.CATEGORY]&&e[J.IMAGE][J.PATH].slice(7).stripExt()===n})):t=e[J.OBJECTS].find(function(e){return e.hasOwnProperty(J.ORIGINAL)&&e[J.ORIGINAL][J.PATH]===n||e.hasOwnProperty(J.IMAGE)&&(e[J.IMAGE][J.PATH]===n||e[J.IMAGE][J.PATH]===SLIDES_DIR+"/"+n)||e[J.PATH]===n}),typeof t===UNDEF&&(t=null),typeof r!==UNDEF?o.call(t,r):o.call(t)}};if(e)if(e.endsWith("/"))typeof r!==UNDEF?t.call(U(e),r):t.call(U(e));else{let r=e.lastIndexOf("/"),a=-1===r?n:U(e.substring(0,r)),E=e.substring(r+1);a&&(D||a.hasOwnProperty(J.READY)&&a.ready?o(a,[E,t]):I()?Je(a,o,[E,t]):oe(a,o,[E,t]))}else typeof r!==UNDEF?t.call(n,r):t.call(n);return null},b=e=>"video"===e[J.CATEGORY]?c(e[J.VIDEO][J.PATH]):e.hasOwnProperty(J.ORIGINAL)?c(e[J.ORIGINAL][J.PATH]):e[J.NAME],x=e=>(e=e||a).hasOwnProperty(J.LEVEL)?e[J.LEVEL]:x(B(e)),Y=e=>(e||a)[J.TITLE]||"",v=e=>((e||a)[J.NAME]||"").replace(/\.\w+$/,"").replace(/_/g," "),W=e=>R(F(e),e.hasOwnProperty(J.LEVEL)?e[J.THUMB][J.PATH].replace(e[J.PATH]+"/",""):e[J.THUMB][J.PATH]),V=e=>R(F(e),e.hasOwnProperty(J.LEVEL)?e[J.THUMB][J.PATH].replace(l.thumbsDir+"/",l.slidesDir+"/"):e.hasOwnProperty(J.ORIGINALFILE)?e[J.ORIGINALFILE]:e.hasOwnProperty(J.IMAGE)?e[J.IMAGE][J.PATH]:e[J.THUMB][J.PATH]),j=e=>e.hasOwnProperty(J.ORIGINALFILE)?R(F(e),e[J.ORIGINALFILE]):e.hasOwnProperty(J.ORIGINAL)?R(F(e),e[J.ORIGINAL][J.PATH]):null,k=(e,t,r)=>{if(WEBP_LOSSY||(e=e.filter(e=>!e.name.endsWith(".webp"))),e.length>1){let n=t[0]*PIXELRATIO,o=t[1]*PIXELRATIO;
10e.forEach(e=>{let t=r?Math.max(n/e.width,o/e.height):Math.min(n/e.width,o/e.height);e.match=t>1?3*(1-1/t):1-t}),e.sort((e,t)=>e.match-t.match)}return e[0]},X=(e,t)=>e.slice(0,e.lastIndexOf("/")+1)+t,_=(e,t,r,n)=>n?t[0]*r>=e[0]&&t[1]*r>=e[1]:t[0]*r>=e[0]||t[1]*r>=e[1],K=e=>{let t=0,r=typeof e===UNDEF?a:e;return r.hasOwnProperty(J.DEEPCOUNTERS)&&r[J.DEEPCOUNTERS].hasOwnProperty(J.FOLDERS)?r[J.DEEPCOUNTERS][J.FOLDERS]+1:(I()?r.hasOwnProperty(J.OBJECTS)&&r[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]||e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||(t+=K(e))}):r.hasOwnProperty(J.FOLDERS)&&r[J.FOLDERS].forEach(e=>{e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||(t+=K(e))}),r.hasOwnProperty(J.DEEPCOUNTERS)||(r[J.DEEPCOUNTERS]={}),r[J.DEEPCOUNTERS][J.FOLDERS]=t,t+1)},z=e=>n.hasOwnProperty(e)?n[e]:null,Z=(t,r)=>{let n={};do{t.hasOwnProperty(r)&&(n=e.extend(!0,{},t[r],n))}while(t=B(t));return Object.getOwnPropertyNames(n).length?n:null},$=(t,r)=>{if(r.indexOf(".")>=0){if("album"===(r=r.split("."))[0])return z(r[1]);do{if(t.hasOwnProperty(r[0]))return e.extend(!0,{},t[r[0]][r[1]])}while(t=B(t));return null}do{if(t.hasOwnProperty(r))return e.extend(!0,{},t[r])}while(t=B(t));return null},q=(e,t)=>{let r=t[J.PATH],n=-1;return I()?e.hasOwnProperty(J.OBJECTS)&&(n=e[J.OBJECTS].findIndex(e=>"folder"===e[J.CATEGORY]&&e[J.PATH]===r)):e.hasOwnProperty(J.FOLDERS)&&(n=e[J.FOLDERS].findIndex(e=>e[J.PATH]===r)),n},Q=function(t,r,n){if(!Array.isArray(t))return null;Array.isArray(r)||(n=r||{},r=null);let o=e.extend({sortBy:"original",reference:J.DATETAKEN,reverse:!1,foldersFirst:!0},n);switch(o.sortBy){case"random":t.sort(()=>.5-Math.random()),r&&r.sort(()=>.5-Math.random());break;case"date":let e=o.reference;o.reverse?(t.sort((t,r)=>(t.hasOwnProperty(J.DATES)?t[J.DATES][e]:t[J.FILEDATE])-(r.hasOwnProperty(J.DATES)?r[J.DATES][e]:r[J.FILEDATE])),r&&r.sort((e,t)=>e[J.FILEDATE]-t[J.FILEDATE])):(t.sort((t,r)=>(r.hasOwnProperty(J.DATES)?r[J.DATES][e]:r[J.FILEDATE])-(t.hasOwnProperty(J.DATES)?t[J.DATES][e]:t[J.FILEDATE])),r&&r.sort((e,t)=>t[J.FILEDATE]-e[J.FILEDATE]));break;case J.NAME:o.reverse?(t.sort((e,t)=>(""+t[J.NAME]).localeCompare(""+e[J.NAME])),r&&r.sort((e,t)=>(""+t[J.NAME]).localeCompare(""+e[J.NAME]))):(t.sort((e,t)=>(""+e[J.NAME]).localeCompare(""+t[J.NAME])),r&&r.sort((e,t)=>(""+e[J.NAME]).localeCompare(""+t[J.NAME])));break;case J.FILESIZE:o.reverse?t.sort((e,t)=>e[J.FILESIZE]-t[J.FILESIZE]):t.sort((e,t)=>t[J.FILESIZE]-e[J.FILESIZE]);break;default:o.reverse&&(t.reverse(),r&&r.reverse())}return r?o.foldersFirst?r.concat(t):t.concat(r):t},ee=function(e,t){if(typeof e!==UNDEF&&typeof t===STRING){if("label"===t)return v(e);if("fileLabel"===t)return e.hasOwnProperty(J.TITLE)?e[J.TITLE]:v(e);if("originalTime"===t&&e.hasOwnProperty(J.DATES)&&e[J.DATES].hasOwnProperty(J.DATETAKEN))return new Date(1e3*e[J.DATES][J.DATETAKEN]).toLocaleString(l.locale,{month:"2-digit",day:"2-digit",hour12:!1,hour:"2-digit",minute:"2-digit"});if(e.hasOwnProperty(t))return e[t]}return""},te="../../../../../../../../../../../../../../../../../../../../",re=function(){let e=function(t,r,n,o){let a=r?R(n,t[J.PATH]):"",E=r?(e=>{if(typeof e===UNDEF||!e)return 0;"/"!==e.slice(-1)&&(e+="/");let t=p.indexOf(e);return t>=0?t+1:p.push(e)})(a):0,i=null===O?(e=>{if(typeof e===UNDEF||!e)return 0;"/"!==e.slice(-1)&&(e+="/");let t=f.indexOf(e);return t>=0?t+1:f.push(e)})(function(e,t){if(typeof e===UNDEF||!e.length||"/"===e)return t||"";if(typeof t===UNDEF||!t.length||"/"===t)return te.slice(0,3*e.split("/").length);if(e===t)return"";for(e=e.split("/"),t=t.split("/");e.length&&t.length&&e[0]===t[0];)e.shift(),t.shift();return te.slice(0,3*e.length)+t.join("/")}(l.relPath,a)):-1;if(t[J.LEVEL]=r,t[J.PATHREF]=E,null===O&&(t[J.RELPATH]=i),t.hasOwnProperty(J.CATEGORY)||(t[J.CATEGORY]="folder"),r&&(t[J.PARENTREF]=o),t[J.THUMB][J.PATH].startsWith(t[J.PATH]+"/"+l.thumbsDir)&&(t[J.THUMB][J.PATH]=t[J.THUMB][J.PATH].slice(t[J.PATH].length+1)),l.loadDeep&&t.hasOwnProperty(J.OBJECTS)){t[J.OBJECTS].filter(e=>"folder"!==e[J.CATEGORY]).forEach(e=>{e[J.PATHREF]=E,null===O&&(e[J.RELPATH]=i)});let n=0;t[J.OBJECTS].filter(e=>
10"folder"===e[J.CATEGORY]).forEach(o=>{n||(t[J.FOLDERS]=[]),t[J.FOLDERS].push(n++),e(o,r+1,a,E)})}else t.hasOwnProperty(J.FOLDERS)&&t[J.FOLDERS].forEach(t=>e(t,r+1,a,E))};e(n,0,"",0)},ne=function(e){e.hasOwnProperty(J.ONREADY)&&Array.isArray(e[J.ONREADY])&&(e[J.ONREADY].forEach(t=>{t.length>1?t[0](e,t[1]):t[0](e)}),e[J.ONREADY]=[])},oe=function(e,t,r){e&&typeof t===FUNCTION&&!e.hasOwnProperty(J.INTERNALLINK)&&(D||e.hasOwnProperty(J.READY)&&e[J.READY]?typeof r!==UNDEF?t(e,r):t(e):(e.hasOwnProperty(J.ONREADY)||ae(e),typeof r!==UNDEF?e[J.ONREADY].push([t,Array.isArray(r)?r:[r]]):e[J.ONREADY].push([t])))},ae=function(t,r){if(!t.hasOwnProperty(J.INTERNALLINK))if(t.hasOwnProperty(J.ONREADY)||(t[J.ONREADY]=[]),t.hasOwnProperty(J.OBJECTS)&&t[J.OBJECTS].length)ne(t);else{let o=R(F(t),l.dataFile)+h;T||(T=[]),T.push(e.getJSON(o).done(function(e){!function(e,t){let r,o=0;e[J.OBJECTS]=[],t[J.OBJECTS].forEach(t=>{if(n[J.LOADCOUNTER][t[J.CATEGORY]]++,n[J.LOADCOUNTER][J.TOTAL]++,"folder"===t[J.CATEGORY])if(o<e[J.FOLDERS].length){r=e[J.FOLDERS][o];for(let e in t)e===J.OBJECTS||e===J.ALBUM||r.hasOwnProperty(e)||(r[e]=t[e]);(t={})[J.FOLDERINDEX]=o++}else y('Database error: Folder count inconsistency in folder "'+e[J.NAME]+'". tree.json <> data1.json');else t[J.PATHREF]=e[J.PATHREF],t[J.RELPATH]=e[J.RELPATH];e[J.OBJECTS].push(t)}),e[J.READY]=!0,ne(e)}(t,e)}).fail(function(e,t,r){y('Error: Objects could not be loaded for "'+o+'": '+t+", "+r)})),r&&t.hasOwnProperty(J.FOLDERS)&&t[J.FOLDERS].forEach(e=>ae(e,!0))}},Ee=function(){n&&(n[J.LOADCOUNTER]={},n[J.LOADCOUNTER][J.TOTAL]=0,l.possibleTypes.forEach(e=>{n[J.LOADCOUNTER][e]=0}))},le=function(){return null!==(a=U(l.relPath))||(typeof l.fatalError===FUNCTION&&l.fatalError.call(this,"noSuchFolder",l.relPath),!1)},ie=function(){T=[],ae(l.lazy?a:n,!l.lazy),e.when.apply(e,T).done(function(){let e=new Date;typeof DEBUG!==UNDEF&&DEBUG&&y(T.length+" folder(s) loaded: "+(e-E)+"ms"),u=!0,T=null,typeof l.ready===FUNCTION?(l.ready.call(this),l.ready=null):n.hasOwnProperty(J.FOLDERS)||typeof l.deepReady===FUNCTION&&(l.deepReady.call(this),l.deepReady=null)}).fail(function(e,t,r){typeof l.fatalError===FUNCTION&&l.fatalError.call(this,"cantLoadDataForFolder",a[J.PATH])})},se=function(e){e.hasOwnProperty(J.READY)||(e[J.READY]=!1),l.loadDeep?e.hasOwnProperty(J.OBJECTS)&&e[J.OBJECTS].forEach(e=>{"folder"===e[J.CATEGORY]&&se(e)}):e.hasOwnProperty(J.FOLDERS)&&e[J.FOLDERS].forEach(e=>se(e))},Je=function(e,t,r){e&&typeof t===FUNCTION&&(D?typeof r!==UNDEF?t(e,r):t(e):typeof r!==UNDEF?A.push([e,t,Array.isArray(r)?r:[r]]):A.push([e,t]))},Oe=function(t,r){if(D)return void t.call(n);let o=new Date,a=R(O||l.rootPath,l.deepDataFile)+h;return e.getJSON(a).done(function(e){typeof DEBUG!==UNDEF&&DEBUG&&(y("Deep data loaded: "+(new Date-o)+"ms"),o=new Date),function(e){if(l.loadDeep=!0,typeof n===UNDEF)(n=e)[J.DEEP]=!0,Ee(),re();else{let t=n,r=function(e,t){for(let r in e)r===J.FOLDERS||r===J.ALBUM||r===J.OBJECTS||r===J.READY||r===J.ON
10READY||t.hasOwnProperty(r)||(t[r]=e[r]);if(e.hasOwnProperty(J.ONREADY)&&e[J.ONREADY].forEach(e=>e.length>1?e[0](t,e[1]):e[0](t)),t.hasOwnProperty(J.OBJECTS)){let n=e[J.PATHREF],o=e[J.RELPATH]||null,a=0;t[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]?(e[J.PATHREF]=n,o&&(e[J.RELPATH]=o)):(a||(t[J.FOLDERS]=[]),t[J.FOLDERS].push(a++))}),e.hasOwnProperty(J.FOLDERS)&&e[J.FOLDERS].forEach(n=>{const o=t[J.OBJECTS].find(e=>"folder"===e[J.CATEGORY]&&e[J.PATH]===n[J.PATH]);o?r(n,o):y('Database inconsistency when accessing folder "'+e[J.NAME]+'"!')})}};(n=e)[J.DEEP]=!0,r(t,n)}}(e),le()&&(D=!0,typeof t===FUNCTION?t.call(this):(typeof l.ready===FUNCTION&&(l.ready.call(this),l.ready=null),typeof l.deepReady===FUNCTION&&(l.deepReady.call(this),l.deepReady=null)),A.length&&(A.forEach(e=>e.length>2?e[1](e[0],e[2]):e[1](e[0])),A=[]))}).fail(function(e,t,n){typeof l.fatalError===FUNCTION&&l.fatalError.call(this,"databaseAccessDenied",a),typeof r===FUNCTION&&r.call(this)})};return t&&(typeof DEBUG!==UNDEF&&DEBUG&&y("new Album("+JSON.stringify(t)+");"),(t=>{if(E)return E;E=new Date,typeof t!==UNDEF&&e.extend(l,t),u=D=!1,l.hasOwnProperty("albumPath")&&"/"!==(O=l.albumPath).slice(-1)&&(O+="/"),r=(e=>{if(typeof e===UNDEF)return window.location.href.substring(0,window.location.href.lastIndexOf("/"));if(e.match(/^https?\:\/\//i))return e;if("/"===e[0])return window.location.origin+e;{let t=window.location.href;for(t=t.substring(0,t.lastIndexOf("/")),e.endsWith("..")&&(e+="/");e.startsWith("../");)t=t.substring(0,t.lastIndexOf("/",t.length-2)),e=e.slice(3);return t+(e?"/"+e:"")}})(O||l.rootPath),l.hasOwnProperty("makeDate")&&(h="?"+l.makeDate),l.loadDeep||l.hasOwnProperty("deepReady")?Oe():function(t){let r=new Date,o=R(O||l.rootPath,l.treeFile)+h;l.loadDeep=!1,e.getJSON(o).done(function(e){n=e,Ee(),se(n),typeof DEBUG!==UNDEF&&DEBUG&&(y("Tree loaded: "+(new Date-r)+"ms"),r=new Date),le()&&(re(),typeof t===FUNCTION&&t.call(this))}).fail(function(e,t,r){typeof l.fatalError===FUNCTION&&l.fatalError.call(this,"localAccessBlocked",o)})}(ie)})(t)),{isImage:e=>e.hasOwnProperty(J.CATEGORY)&&"image"===e[J.CATEGORY],isAudio:e=>e.hasOwnProperty(J.CATEGORY)&&"audio"===e[J.CATEGORY],isVideo:e=>e.hasOwnProperty(J.CATEGORY)&&"video"===e[J.CATEGORY],isPage:e=>e.hasOwnProperty(J.CATEGORY)&&"webPage"===e[J.CATEGORY],isFolder:e=>e.hasOwnProperty(J.FOLDERINDEX)||e.hasOwnProperty(J.LEVEL),isView:e=>e.hasOwnProperty(J.VIEW),isLightboxable:N,isCurrentFolder:e=>e===a,getAlbumPath:()=>{if(null!==O)return O;let e=window.location.pathname,t=a[J.LEVEL];do{e=e.substring(0,e.lastIndexOf("/")),t-=1}while(t>=0);return e},getAlbumRootPath:()=>r,getPath:F,getAbsolutePath:e=>e.hasOwnProperty(J.LEVEL)?R(O||r,C(e)):R(O||r,C(e),l.indexName+"#img="+e[J.PATH]),getItemPath:S,getAudioClipPath:e=>typeof e!==UNDEF&&e.hasOwnProperty(J.AUDIOCLIP)?R(F(e),e[J.AUDIOCLIP][J.PATH]):null,getDimensions:e=>{if(typeof e===UNDEF||"other"===e[J.CATEGORY]&&"pdf"===P(e).toLowerCase())return null;if(e.hasOwnProperty(J.EXTERNAL)){let t=e[J.EXTERNAL][J.SIZE];return t?(t=t.split("x"),[t[0],t[1]||Math.round(.75*t[0])]):(t=guessDimensions(e[J.EXTERNAL][J.CONT]))||(e[J.EXTERNAL][J.CONT].includes("vimeo.com")||e[J.EXTERNAL][J.CONT].includes("youtube.com")||e[J.EXTERNAL][J.CONT].includes("youtu.be")?(t=e[J.EXTERNAL][J.CONT].match(/.*style="padding(-bottom)?:\s?([\d\.]+)%/))&&t&&t.length>1?[1280,Math.round(w*parseFloat(t[2])/100)]:[1280,720]:[e[J.IMAGE][J.WIDTH],e[J.IMAGE][J.HEIGHT]])}return"audio"===e[J.CATEGORY]&&e[J.IMAGE][J.PATH].endsWith("res/audio.png")?[l.defaultAudioPosterSize[0],l.defaultAudioPosterSize[1]]:"video"===e[J.CATEGORY]?[e[J.VIDEO][J.WIDTH],e[J.VIDEO][J.HEIGHT]]:l.hiDpiImages?[e[J.IMAGE][J.WIDTH]/2,e[J.IMAGE][J.HEIGHT]/2]:[e[J.IMAGE][J.WIDTH],e[J.IMAGE][J.HEIGHT]]},getOriginalDimensions:H,getMaxDimensions:e=>{if(typeof e!==UNDEF){let t;if(l.useOriginals&&(t=H(e)))return t;if(e.hasOwnProperty(J.IMAGE)){let r=e[J.IMAGE];if(r.hasOwnProperty(J.RENDITIONS)){t=[r[J.RENDITIONS][0][J.WIDTH],r[J.RENDITIONS][0][J.HEIGHT]];for(let e=1;e<r[J.RENDITIONS].length;e++)r[J.RENDITIONS][e][J.WIDTH]>t[0]&&(t=[r[J.RENDITIONS][e][J.WIDTH],r[J.RENDITIONS][e][J.HEIGHT]]);return t}return l.hiDpiImages?[2*r[J.WIDTH],2*r[J.HEIGHT]]:[r[J.WIDTH],r[J.HEIGHT]]}}return null},getRegions:function(e){return typeof e!==UNDEF&&e.hasOwnProperty(J.REGIONS)?JSON.parse(e[J.REGIONS]):[]},getLink:function(e){if(typeof e!==UNDEF)switch(e[J.CATEGORY]){case"folder":return F(e);case"webLocation":return e[J.PATH];case"webPage":return R(F(e),e[J.PATH]);default:return R(F(e),"#img="+e[J.PATH])}return null},getRootPath:e=>typeof e!==UNDEF?R(F(e),e[J.PATH]):null,getFolderPath:C,getRelativeFolderPath:e=>typeof e!==UNDEF?(t=>{let r,n,o=l.rootPath+g(e)+"";for(;(r=o.indexOf("../"))>0;){if(1===r||-1===(n=o.lastIndexOf("/",r-2)))return o.substring(r+3);o=o.substring(0,n)+o.substring(r+2)}return o}
10)():null,getFolder:U,getCurrentFolder:()=>a,getParent:B,getItem:M,getObjects:e=>{let t=typeof e===UNDEF?a:e,r=[];return t.hasOwnProperty(J.OBJECTS)&&t[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]&&r.push(e)}),r},getImages:e=>{let t=typeof e===UNDEF?a:e,r=[];return t.hasOwnProperty(J.OBJECTS)&&t[J.OBJECTS].forEach(e=>{N(e)&&r.push(e)}),r},getFolders:e=>{let t=typeof e===UNDEF?a:e,r=[],n=e=>{let t={};for(let r in e)r!==J.OBJECTS&&r!==J.ALBUM&&r!==J.FOLDERS&&(t[r]=e[r]);return t};return t&&(I()?t.hasOwnProperty(J.OBJECTS)&&t[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]||e.hasOwnProperty(J.HIDDEN)&&e.hidden||r.push(n(e))}):t.hasOwnProperty(J.FOLDERS)&&t[J.FOLDERS].forEach(e=>{e.hasOwnProperty(J.HIDDEN)&&e.hidden||r.push(n(e))})),r},getFoldersAndWeblocs:e=>{let t=typeof e===UNDEF?a:e,r=[];return t.hasOwnProperty(J.OBJECTS)&&t[J.OBJECTS].forEach(e=>{e.hasOwnProperty(J.FOLDERINDEX)?r.push(t[J.FOLDERS][e[J.FOLDERINDEX]]):"folder"!==e[J.CATEGORY]&&"webLocation"!==e[J.CATEGORY]||r.push(e)}),r},getAllObjects:e=>{let t=typeof e===UNDEF?a:e,r=[];return t.hasOwnProperty(J.OBJECTS)&&t[J.OBJECTS].forEach(e=>{e.hasOwnProperty(J.FOLDERINDEX)?r.push(t[J.FOLDERS][e[J.FOLDERINDEX]]):r.push(e)}),r},getMakeDate:()=>new Date(n[J.FILEDATE]),getAlbumTitle:()=>n[J.TITLE]||n[J.NAME],getItemName:b,getExtension:P,getLevel:x,getTitle:Y,getName:e=>(e||a)[J.NAME]||"",getLabel:v,getAlt:e=>Y(e)||v(e),getComment:e=>(e||a)[J.COMMENT]||"",getThumbPath:W,getIconPath:e=>e[J.THUMB][J.PATH].match(/res\/\w+\.png$/)?e[J.THUMB][J.PATH]:"",getImagePath:V,getAbsoluteImagePath:e=>R(r,(e=>R(g(e),e.hasOwnProperty(J.ORIGINALFILE)?e[J.ORIGINALFILE]:e.hasOwnProperty(J.IMAGE)?e[J.IMAGE][J.PATH]:e[J.THUMB][J.PATH]))(e)),getThemeImagePath:e=>R(F(e),l.folderImageFile),getOriginalPath:j,getVideoPath:e=>e.hasOwnProperty(J.VIDEO)?R(F(e),e[J.VIDEO][J.PATH]):null,getPosterPath:e=>{let t=e[J.CATEGORY],r=e[J.IMAGE][J.PATH];return"audio"===t&&r.endsWith("res/audio.png")||"video"===t&&r.endsWith("res/movie.png")?R(l.rootPath,"res",l[t+"Poster"]):R(F(e),e[J.IMAGE][J.PATH])},getOptimalImagePath:(e,t,r,n)=>{n=typeof n!==UNDEF&&n;if(e.hasOwnProperty(J.LEVEL))return L(e)+"/"+l.folderImageFile;if("webLocation"===e[J.CATEGORY])return V(e);if(e.hasOwnProperty(J.ORIGINALFILE))return j(e);let o=e[J.IMAGE].hasOwnProperty(J.RENDITIONS)?k(e[J.IMAGE][J.RENDITIONS],t||[window.outerWidth,window.outerHeight],n):l.hiDpiImages?{width:2*e[J.IMAGE][J.WIDTH],height:2*e[J.IMAGE][J.HEIGHT]}:{width:e[J.IMAGE][J.WIDTH],height:e[J.IMAGE][J.HEIGHT]};return typeof r!==UNDEF&&r&&e.hasOwnProperty(J.ORIGINAL)&&(t[0]>o.width||t[1]>o.height)&&e[J.ORIGINAL][J.WIDTH]>e[J.IMAGE][J.WIDTH]&&(t=>{var r=e[J.ORIGINAL][J.PATH].match(/\.\w+$/);return!!r&&-1!==".jpg.jpeg.png.webp.webm.gif".indexOf(r[0].toLowerCase())})()?j(e):o.hasOwnProperty(J.NAME)?X(V(e),o[J.NAME]):V(e)},getOptimalThumbPath:(e,t,r)=>{if(e[J.THUMB].hasOwnProperty(J.RENDITIONS)){let n=k(e[J.THUMB][J.RENDITIONS],t,l.thumbsFillFrame);if("folder"===e[J.CATEGORY])return R(F(e),X(e[J.THUMB][J.PATH],n[J.NAME]));if("video"===e[J.CATEGORY]||_(t,[n[J.WIDTH],n[J.HEIGHT]],1.07,l.thumbsFillFrame))return X(W(e),n[J.NAME]);if(typeof r!==UNDEF&&r&&e[J.IMAGE].hasOwnProperty(J.RENDITIONS))return n=k(e[J.IMAGE][J.RENDITIONS],t,l.thumbsFillFrame),X(V(e),n[J.NAME])}let n=[e[J.THUMB][J.WIDTH],e[J.THUMB][J.HEIGHT]];return l.hiDpiTHumbs&&(n[0]*=2,n[1]*=2),typeof r!==UNDEF&&r&&"video"!==e[J.CATEGORY]&&e.hasOwnProperty(J.IMAGE)&&!_(t,n,1.15,l.thumbsFillFrame)?V(e):W(e)},getSourcePath:e=>R(F(e),e.hasOwnProperty(J.ORIGINAL)?e[J.ORIGINAL][J.PATH]:e.hasOwnProperty(J.IMAGE)?e[J.IMAGE][J.PATH]:e[J.THUMB][J.PATH]),getAbsoluteItemPath:e=>R(r,S(e)),getVideoDuration:e=>{let t=e[J.VIDEO];return t&&t.hasOwnProperty(J.DURATION)?videoDurationMs(t[J.DURATION]):null},hasShop:e=>{if(typeof e===UNDEF)return n.hasOwnProperty(J.SHOP)&&n.shop.hasOwnProperty("options")&&"-"!==n.shop.options.trim();let t=Z(e,J.SHOP);return t&&(t.hasOwnProperty("usePrice")&&t.usePrice&&e.hasOwnProperty(J.PRICE)&&e.price||t.hasOwnProperty("options")&&"-"!==t.options.trim())},hasLocation:e=>(!e.hasOwnProperty(J.HIDELOCATION)||!e[J.HIDELOCATION])&&(e.hasOwnProperty(J.LOCATION)||e.hasOwnProperty(J.CAMERA)&&e[J.CAMERA].hasOwnProperty(J.LOCATION)),getLocation:e=>e.hasOwnProperty(J.HIDELOCATION)&&e[J.HIDELOCATION]?null:e.hasOwnProperty(J.LOCATION)?e[J.LOCATION]:e.hasOwnProperty(J.CAMERA)&&e[J.CAMERA].hasOwnProperty(J.LOCATION)?e[J.CAMERA][J.LOCATION].lat+","+e[J.CAMERA][J.LOCATION].long:null,disableFeedback:e=>e.hasOwnProperty(J.DISABLEFEEDBACK)?e[J.DISABLEFEEDBACK]:$(e,J.DISABLEFEEDBACK)||!1,hideFotomoto:e=>e.hasOwnProperty(J.HIDEFOTOMOTO)?e[J.HIDEFOTOMOTO]:$(e,J.HIDEFOTOMOTO)||!1,getPriceRange:e=>{let t=Z(e||n,J.SHOP);if(t&&"-"!==t.options&&t.showPriceRange){let e=t.options.split("::"),r=Number.MAX_VALUE,n=Number.MIN_VALUE;if(e.length>1){for(let t=0;t<e.length;t++)r=Math.min(parseFloat(e[t].split("=")[1].split("+")[0]),r);if("minmax"===t.showPriceRange){for(let t=0;t<e.length;t++)n=Math.max(parseFloat(e[t].split("=")[1].split("+")[0]),n);return toCurrency(r,t.currency)+"&ndash;"+toCurrency(n,t.currency)}return i.from.template(toCurrency(r,t.currency))}return toCurrency(e[0].split("=")[1].split("+")[0],t.currency)}return""},getCurrency:()=>z(J.SHOP).currency||"EUR",getDeepFolderCount:K,getRootProperty:z,getInheritedPropertyObject:Z,getInheritedProperty:$,getProperty:(t,r,n)=>{let o;return n?o=$(t,r):r.indexOf(".")>0?(r=r.split("."),o=t.hasOwnProperty(r[0])?t[r[0]][r[1]]:null):t.hasOwnProperty(r)&&(o=t[r]),e.extend(!0,{},o)},getPropertyObject:(t,r,n)=>n?Z(t,r):t.hasOwnProperty(r)?e.extend(!0,{},t[r]):null,getNextFoldersFirstImage:function(e){let t=function(e){let t=a||a,r=B(t),n=q(r,t);if(n>=0)if(l.loadDeep){if(r.hasOwnProperty(J.OBJECTS))for(let e=n+1;e<r[J.OBJECTS].length;e++)if(!("folder"!==r[J.OBJECTS][e][J.CATEGORY]||r[J.OBJECTS][e].hasOwnProperty(J.HIDDEN)&&r[J.OBJECTS][e][J.HIDDEN]))return r[J.OBJECTS][e]}
10else if(r.hasOwnProperty(J.FOLDERS))for(let e=n+1;e<r[J.FOLDERS].length;e++)if(!r[J.FOLDERS][e].hasOwnProperty(J.HIDDEN)||!r[J.FOLDERS][e][J.HIDDEN])return r[J.FOLDERS][e];return null}(),r=function(e){if(e.hasOwnProperty(J.OBJECTS))for(let t=0;t<e[J.OBJECTS].length;t++)if(N(e[J.OBJECTS][t]))return e[J.OBJECTS][t]};t&&(t.hasOwnProperty(J.READY)&&t.ready?e(r(t)):oe(t,function(e,t){t[0](r(e))},[e]))},getPreviousFoldersLastImage:function(e){let t=function(e){let t=a||a,r=B(t),n=q(r,t);if(n>=0)if(l.loadDeep){if(r.hasOwnProperty(J.OBJECTS))for(let e=n-1;e>=0;e--)if(!("folder"!==r[J.OBJECTS][e][J.CATEGORY]||r[J.OBJECTS][e].hasOwnProperty(J.HIDDEN)&&r[J.OBJECTS][e][J.HIDDEN]))return r[J.OBJECTS][e]}else if(r.hasOwnProperty(J.FOLDERS))for(let e=n-1;e>=0;e--)if(!r[J.FOLDERS][e].hasOwnProperty(J.HIDDEN)||!r[J.FOLDERS][e][J.HIDDEN])return r[J.FOLDERS][e];return null}(),r=function(e){if(e.hasOwnProperty(J.OBJECTS))for(let t=o.length-1;t>=0;t--)if(N(e[J.OBJECTS][t]))return e[J.OBJECTS][t]};return t&&(t.hasOwnProperty(J.READY)&&t.ready?e(r(t)):oe(t,function(e,t){t[0](r(e))},[e])),null},sortItems:Q,collectByPath:function(t){if(typeof t===UNDEF||!t.hasOwnProperty("paths")||!Array.isArray(t.paths)||typeof t.ready!==FUNCTION)return[];let r,n=[],o=e.extend({folder:"",levels:0,sortBy:"original",reference:"dateTaken",reverse:!1},t),a=o.paths.length,E=0,l=(U(o.folder),function(){clearTimeout(r),E<a&&(y("Error: Timeout collecting items. Image set is incomplete ("+E+"/"+a+")!"),n=function(e){let t=[];for(let r of e)r&&t.push(r);return t}(n)),n=Q(n,{sortBy:o.sortBy,reference:o.reference,reverse:o.reverse}),o.ready.call(n,o)});r=setTimeout(l,25*a);for(let e=0;e<a;e++)M(o.paths[e],function(e){this&&typeof e!==UNDEF&&this!==window&&(n[e]=this,++E===a&&(clearTimeout(r),l(
10)))},e)},collectNItem:function(t){if(typeof t===UNDEF||typeof t.ready!==FUNCTION)return;let r=e.extend({folder:"",levels:0,include:"images",max:0,sortBy:"original",sortOrder:0},t),n=[],o=[],E=U(r.folder),i=r.levels?((e,t)=>{let r=typeof e===UNDEF?a:e,n=r[J.LEVEL]+(typeof t===UNDEF?0:t),o=e=>{let t=1;return e[J.LEVEL]<=n&&(I()?e.hasOwnProperty(J.OBJECTS)&&e[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]||e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||(t+=o(e))}):e.hasOwnProperty(J.FOLDERS)&&e[J.FOLDERS].forEach(e=>{e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||(t+=o(e))})),t};return o(r)})(E,r.levels):1,s=0,O=!1,h=-1!==r.include.indexOf("images"),p=-1!==r.include.indexOf("folders"),f=function(e){e[J.OBJECTS].forEach(e=>{"image"===e[J.CATEGORY]&&(!r.arRange||e[J.IMAGE][J.WIDTH]/e[J.IMAGE][J.HEIGHT]>=r.arRange[0]&&e[J.IMAGE][J.WIDTH]/e[J.IMAGE][J.HEIGHT]<=r.arRange[1])&&n.push(e)})},u=function(e){p&&o.push(e),h&&(e.hasOwnProperty(J.OBJECTS)?f(e):e[J.READY]||oe(e,f)),e[J.LEVEL]<=maxLevel&&(I()?e.hasOwnProperty(J.OBJECTS)&&e[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]||e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||u(e)}):e.hasOwnProperty(J.FOLDERS)&&e[J.FOLDERS].forEach(e=>{e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||u(e)})),s++},D=function(){u(E),setTimeout(function(){T.length?e.when.apply(e,T).done(A):A()},20)},A=function(){O||(r.max&&r.quick&&n.length+o.length>=r.max||!T.length||s>=i?(n=Q(n,o,{sortBy:-1===r.sortOrder?"random":r.sortBy||"original",reference:r.reference||J.FILEDATE,reverse:0===r.sortOrder,foldersFirst:r.include.startsWith("folders")}),r.max&&r.max<n.length&&(n=n.slice(0,r.max)),O=!0,r.ready.call(n,r)):setTimeout(A,50))};T=[],O=!1,r.hasOwnProperty("quick")||(r.quick=r.max&&"original"!==r.sortBy),maxLevel=E[J.LEVEL]+r.levels,random=-1===r.sortOrder,random&&(l.sortBy="original"),D()},collectByDate:function(t){if(typeof t===UNDEF||typeof t.ready!==FUNCTION)return;let r,o,E=e.extend({sort:!0,reverse:!1,reference:J.DATETAKEN,depth:"current"},t),l=[],i="current"===E.depth?1:K("tree"===E.depth?n:a),s=0,O=!1,h="tree"===E.depth&&n.hasOwnProperty(J.FOLDERS)||"subfolders"===E.depth&&a.hasOwnProperty(J.FOLDERS)&&a[J.LEVEL]<3,p=function(e){e&&e.hasOwnProperty(J.OBJECTS)&&(e[J.OBJECTS].forEach(e=>{N(e)&&(d=e[J.DATES])&&(d=d[E.reference])&&d>=r&&d<=o&&l.push(e)}),s++)},f=function(e){!e||e.hasOwnProperty(J.HIDDEN)&&e.hidden||(e.hasOwnProperty(J.OBJECTS)?p(e):e[J.READY]||oe(e,p),I()?e.hasOwnProperty(J.OBJECTS)&&e[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]||e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||f(e)}):e.hasOwnProperty(J.FOLDERS)&&e[J.FOLDERS].forEach(e=>{e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||f(e)}))},u=function(){f("tree"===E.depth?n:a),setTimeout(y,20)},A=function(){f("tree"===E.depth?n:a),setTimeout(function(){T.length?e.when.apply(e,T).done(y):y()},20)},y=function(){O||(T.length&&i>s?setTimeout(y,20):(E.sort&&(l=Q(l,{sortBy:E.sortBy||"date",reference:E.reference||J.DATETAKEN,reverse:E.reverse||!1})),E.max&&E.max<l.length&&(l=l.slice(0,E.max)),O=!0,E.ready.call(l,E)))};T=[],O=!1,E.hasOwnProperty("end")&&(o=E.end*ONEDAY_S),E.hasOwnProperty("start")&&(r=E.start*ONEDAY_S),E.hasOwnProperty("range")&&(typeof r!==UNDEF?o=r+E.range*ONEDAY_S:typeof o!==UNDEF?r=o-E.range*ONEDAY_S:(o=Math.round(new Date/1e3),r=o-E.range*ONEDAY_S)),typeof r===UNDEF&&(r=0),typeof o===UNDEF&&(o=Math.round(new Date/1e3)),h&&!D?Oe(u,A):A()},collectItems:function(t){if(typeof t===UNDEF||!t.hasOwnProperty("terms")||typeof t.ready!==FUNCTION)return;let r,o,E,i=e.extend({fields:"creator,keywords,name,title,comment,regions",types:"all",depth:"current",divisible:"name,title,comment,photodata",exact:!1,caseSensitive:!1},t),O=[],h=Array.isArray(i.fields)?i.fields:i.fields.split(/,\s?/),p=h.length,f=new Array(p),u=!1,A=!1,d="all"===i.types,y={},c="current"===i.depth?1:K("tree"===i.depth?n:a),P=0,N=!1,R="tree"===i.depth&&n.hasOwnProperty(J.FOLDERS)||"subfolders"===i.depth&&a.hasOwnProperty(J.FOLDERS)&&a[J.LEVEL]<3,w=function(e,t){let n=new Array(o.length).fill(!1),a=function(e,t,r){return t=t.replaceAll('"',""),i.caseSensitive||(t=t.toLowerCase()),r?(" "+(t=t.replace(E," "))).includes(" "+e):u?e===t:t.startsWith(e)},l=function(e,t,r){if(!Array.isArray(t))return u?(t=t.toLowerCase(),r?t.slice(0,e.length)===e||-1!==t.indexOf(" "+e):t===e):a(e,t,r);let n=!1;for(let o=0;o<t.length;o++)a(e,t[o],r)&&(n=!0);return n},s=function(e,t,r){let o=!1;if(u&&t.includes(";
10")&&(t=t.split(";")),Array.isArray(e)){for(let a=0;a<e.length;a++)if(l(e[a],t,r)&&(o=n[a]=!0,!A))return!0}else l(e,t,r)&&(o=n[0]=!0);return o};for(let n,a,E=0;E<p;E++){if(h[E].length>1){if(h[E][0]!==t)continue;n=h[E][1]}else n=h[E][0];if(JCAMERAFIELDS.indexOf(n)>=0&&e.hasOwnProperty(J.CAMERA)?typeof(a=e[J.CAMERA][n])===UNDEF&&(a=e[n]):n===J.NAME?(a=e.hasOwnProperty(J.ORIGINAL)?decodeURIComponent(e[J.ORIGINAL][J.PATH].getFile()):e[J.NAME],a=a+" "+a.replace(/[\.\-_]/g," ")):n===J.REGIONS?e.hasOwnProperty(J.REGIONS)?(a=[],JSON.parse(e[J.REGIONS]).forEach(e=>a.push(e.split(";")[0]+"")),a=a.filter(Boolean)):a=null:a=e[n],typeof a!==UNDEF&&null!==a&&a.length)if(Array.isArray(a)&&!f[E]){for(let e=0;e<a.length;e++)if(s(A||!u?o:r,a[e],f[E])&&!A)return!0}else if(n===J.COMMENT||n.endsWith("Caption")?a=a.stripHTML():Array.isArray(a)?a=a.join(" "):a+="",s(A||!u?o:r,a,f[E])&&!A)return!0}return A?n.every(e=>!!e):n.some(e=>!!e)},g=function(e){e&&(e.hasOwnProperty(J.OBJECTS)&&e[J.OBJECTS].forEach(t=>{t.hasOwnProperty(J.FOLDERINDEX)?(d||y.folder)&&w(e[J.FOLDERS][t[J.FOLDERINDEX]],"folder")&&O.push(t):t.hasOwnProperty(J.CATEGORY)&&(d||y[t[J.CATEGORY]])&&w(t,t[J.CATEGORY])&&O.push(t)}),P++)},L=function(e){!e||e.hasOwnProperty(J.HIDDEN)&&e.hidden||(e.hasOwnProperty(J.OBJECTS)?g(e):e[J.READY]||oe(e,g),I()?e.hasOwnProperty(J.OBJECTS)&&e[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]||e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||L(e)}):"current"!==i.depth&&e.hasOwnProperty(J.FOLDERS)&&e[J.FOLDERS].forEach(e=>{e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||L(e)}))},F=function(){L("tree"===i.depth?n:a),setTimeout(S,20)},C=function(){L("tree"===i.depth?n:a),setTimeout(function(){T.length?e.when.apply(e,T).done(S):S()},20)},S=function(){N||(T.length&&c>P?setTimeout(S,20):(i.max&&i.max<O.length&&(O=O.slice(0,i.max)),N=!0,i.ready.call(O,i)))};if(T=[],N=!1,r=i.terms.trim(),i.caseSensitive||(r=r.toLowerCase()),'"'===i.terms[0]&&'"'===i.terms[i.terms.length-1])r=r.slice(1,-1).trim(),o=[r],u=!t.hasOwnProperty("exact")||t.exact;else{let e=r.toLowerCase();s.test(e)?(o=r.split(s),r=r.replace(s," "),A=!0):(o=r.split(" "),A=!1),o=o.filter(Boolean),E=new RegExp("[,\\|\\:"+(r.includes("(")||r.includes(")")?"":"\\(\\)")+(r.includes("-")?"":"\\-")+(r.includes(".")?"":"\\.")+(r.includes("_")?"":"_")+"]","g"),u=!!t.hasOwnProperty("exact")&&t.exact}for(let e=0,t=i.divisible.split(",");e<p;e++)h[e]=h[e].split(":"),f[e]=t.indexOf(h[e][1]||h[e][0])>=0;d||("-"===i.types.charAt(0)?l.possibleTypes.forEach(e=>{-1===i.types.indexOf(e)&&(y[e]=!0)}):i.types.split(/,\s?/).forEach(e=>{y[e]=!0})),R?D?F():Oe(F,C):C()},collectTags:function(t){if(typeof t===UNDEF||typeof t.ready!==FUNCTION)return;let r=e.extend({fields:"creator,keywords,folder:title,webLocation:title,regions",types:"all",depth:"current",minLength:1,divisible:"comment,title"},t),o=[],E=Array.isArray(r.fields)?r.fields:r.fields.split(/,\s?/),i=E.length,s=new Array(i),O="all"===r.types,h={},p=function(e,t){let n="^",a="^",l=function(e,t,o){if(!e)return;let E,l;o?(("comment"===t||t.endsWith("Caption"))&&(e=e.stripHTML()),l=e.split(/[\s,_\.\?\!\-\(\)\[\]]/),l=removeEmpty(l)):l=e.toString().split(";");for(let e=0,t=l.length;e<t;e++)(E=l[e].trim()).length<r.minLength||1===E.length&&-1!=="!@#$%^&*()-_=+[{]};:'\",<.>/?\\|".indexOf(E.charCodeAt(0))||-1===a.indexOf("^"+E.toUpperCase()+"^")&&(n+=E+"^",a+=E.toUpperCase()+"^")};for(let r,n,o=0;o<i;o++){if(E[o].length>1){if(E[o][0]!==t)continue;r=E[o][1]}else r=E[o][0];if(JCAMERAFIELDS.indexOf(r)>=0&&e.hasOwnProperty(J.CAMERA)?typeof(n=e[J.CAMERA][r])===UNDEF&&(n=e[r]):n=r===J.REGIONS?e.hasOwnProperty(J.REGIONS)?JSON.parse(e[J.REGIONS]):null:e[r],typeof n!==UNDEF&&null!=n)if(r===J.REGIONS)for(let e=0;e<n.length;e++)l(n[e].split(";")[0],r,s[o]);else if(Array.isArray(n))for(let e=0;e<n.length;e++)l(n[e],r,s[o]);else l(n,r,s[o])}n.length>1&&function(e,t){let a=n.split("^").filter(e=>e.length>=r.minLength);for(let t,r,n,E=0;E<a.length;E++)r=a[E].toUpperCase(),null!==(n=m(e))&&(o&&o.length?(t=o.findIndex(e=>e[2]===r))>=0?-1===o[t][1].indexOf(n)&&o[t][1].push(n):o.push([a[E],[n],r]):o=[[a[E],[n],r]])}(e)},f=function(e){if(e&&(e!==n&&(O||h.folder)&&p(e,"folder"),e.hasOwnProperty(J.OBJECTS)))for(let t,r=0,n=e[J.OBJECTS];r<n.length;r++)n[r].hasOwnProperty(J.CATEGORY)&&(t=n[r][J.CATEGORY],(O||h[t])&&p(n[r],t))},u=function(e){!e||e.hasOwnProperty(J.HIDDEN)&&e.hidden||(oe(e,f),I()?e.hasOwnProperty(J.OBJECTS)&&e[J.OBJECTS].forEac
10h(e=>{"folder"!==e[J.CATEGORY]||e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||u(e)}):"current"!==r.depth&&e.hasOwnProperty(J.FOLDERS)&&e[J.FOLDERS].forEach(e=>{e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||u(e)}))},D=function(){"name"===r.sort?o.sort((e,t)=>(""+e[2]).localeCompare(""+t[2])):"frequency"===r.sort&&o.sort((e,t)=>t[1].length-e[1].length),r.max&&r.max<o.length&&(o=o.slice(0,r.max)),r.ready.call(o,r)};T=[];for(let e=0,t=r.divisible.split(",");e<i;e++)E[e]=E[e].split(":"),s[e]=-1!==t.indexOf(E[e][1]||E[e][0]);O||("-"===r.types.charAt(0)?l.possibleTypes.forEach(e=>{-1===r.types.indexOf(e)&&(h[e]=!0)}):r.types.split(/,\s?/).forEach(e=>{h[e]=!0})),u("tree"===r.depth?n:a),T.length?e.when.apply(e,T).done(D):D()},processTemplate:function(e,t,r){let n,o,E,l,i=typeof r!==UNDEF&&r,s=t||a;if(e&&e.indexOf("${")>=0)for(;E=e.match(/\$\{([\w\.|]+)\}/);){if(E[1].indexOf("|")>0)for(let e=0,t=E[1].split("|");e<t.length&&!(l=ee(s,t[e]));e++);else l=ee(s,E[1]);e=null===l&&i&&(n=E.index-1,o=n+E[0].length,n>0&&">"===e[n]&&o<e.length-1&&"<"===e[o]&&(n=e.lastIndexOf("<",n),o=e.indexOf(">",o),n>=0&&o>=0))?e.slice(0,n)+e.slice(o):e.slice(0,E.index)+(l||"")+e.slice(E.index+E[0].length)}return e}}};
11!function(e){"use strict";var t=function(){try{return localStorage.setItem("_t","1"),localStorage.removeItem("_t"),!0}catch(e){return!1}}(),r="undefined"!=typeof DIR_PATH&&DIR_PATH?DIR_PATH:"/",n=function(e){return!!/^(true|yes)$/.test(e)||!/^(false|no)$/.test(e)&&(/^[\d.]+$/.test(e)?parseFloat(e):e)},o=function(e){if("string"!=typeof e)return e;if("["===e[0]||"{"===e[0]){e=JSON.parse(e);for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&"string"==typeof e[t]&&(e[t]=n(e[t]));return e}return n(e)},i=function(e,r,n,i){var l=encodeURIComponent(r),u=e+l+"=",a=new Date;if(arguments.length>2){if(null===n)return t?localStorage.removeItem(u):document.cookie=l+"=; expires="+a.toGMTString()+"; path="+e+"; SameSite=Strict",null;var c="object"==typeof n?JSON.stringify(n):String(n),s="number"==typeof i?i:3600;return a.setTime(a.getTime()+1e3*s),t?localStorage.setItem(u,c+"; @"+String(a.getTime())):document.cookie=l+"="+encodeURIComponent(c)+"; expires="+a.toGMTString()+"; path="+e+"; SameSite=Strict",n}if(t){var g=localStorage.getItem(u);if(g){var f=g.split("; @");if(1===f.length&&(f=g.split("; ")),!(f.length>1))return o(f[0]);if(a.getTime()<parseInt(f[1],10))return o(f[0]);localStorage.removeItem(u)}}else{var m,p=document.cookie.split(/;\s*/),S=l+"=";for(m=0;m<p.length;m++)if(p[m].substring(0,S.length)===S)return o(decodeURIComponent(p[m].substring(S.length)))}return null};e.cookie=function(e,t,n){return arguments.length>1?i(r,e,t,n):i(r,e)},e.albumCookie=function(e,t,r){return arguments.length>1?i("/",e,t,r):i("/",e)}}(jQuery);
12!function(e){"use strict";getCoords=function(e){return e.touches?1==e.touches.length?{x:e.touches[0].clientX,y:e.touches[0].clientY}:e.changedTouches&&1==e.changedTouches.length?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:null:{x:e.clientX,y:e.clientY}},e.fn.dropdownMenu=function(n){return n=e.extend({},e.fn.dropdownMenu.defaults,n),this.each(function(){var t=e(this),i="_ldm_"+(e.fn.dropdownMenu._counter=(e.fn.dropdownMenu._counter||0)+1),s=new Date;t.find("."+n.hasDropdownClass+"> a").each(function(){e(this).on("click."+i,function(a){if(new Date-s>300){var o=e(this),h=getCoords(a).x-o.offset().left>o.outerWidth()-32,d=o.parent().hasClass(n.openMenuClass);if(!d||h)return a.stopImmediatePropagation(),s=new Date,window.requestAnimationFrame(function(){!function(s,a){var o=e(),h=e(),d=!1,u=s.parents("."+n.openMenuClass);if(a&&(u=u.slice(1)),t.find("."+n.openMenuClass).not(u).each(function(){var t=e(this).find("."+n.menuClass);if(t.length){if(!t.data("height"))if(n.fixed){var i=t[0].getBoundingClientRect();t.data("height",Math.min(window.innerHeight-i.top,t.outerHeight()))}else t.data("height",t.outerHeight());o=o.add(t)}e(this).removeClass(n.openMenuClass)}),o.one("transitionend."+i,function(){e(this).css({display:"none",transition:"none"})}).css({overflow:"hidden"}),!a){if(!(u=s.parent()).hasClass(n.openMenuClass)){if((h=u.children("."+n.menuClass)).length){if(!h.data("height"))if(h.css({display:"flex",visibility:"hidden"}),n.fixed){var l=h[0].getBoundingClientRect();h.data("height",Math.min(window.innerHeight-l.top,h.outerHeight()))}else h.data("height",h.outerHeight());d=h.hasClass(n.hasDropdownClass)}u.addClass(n.openMenuClass)}h.parents("."+n.menuClass).css({maxHeight:"none"}),h.on("transitionend."+i,function(){e(this).css({display:"flex",overflow:d?"visible":"auto"})}).css({maxHeight:0,display:"flex",overflow:"hidden",visibility:"visible"})}window.requestAnimationFrame(function(){o.css({transition:"max-height 500ms ease-out",maxHeight:0}),h.css({transition:"max-height 500ms ease-out",maxHeight:h.data("height")||"100vh"})})}(o,h&&d)}),!1}return!0})})})},e.fn.dropdownMenu.defaults={hasDropdownClass:"has-submenu",menuClass:"menu",openMenuClass:"opened",fixed:!1}}(jQuery);
13!function(o,l){"use strict";o.fn.scrollToTopBtn=function(){var t=o(this).eq(0),n="lst_"+(o.fn.scrollToTopBtn._counter=(o.fn.scrollToTopBtn._counter||0)+1),r=getTranslations({scrollTopTooltip:"Top"}),s=o("<a>",{class:"scrollup icon-arrow-up",role:"button",title:r.scrollTopTooltip}).appendTo(t);return l.on("scroll."+n,function(){return s.toggleClass("show",l.scrollTop()>16),!0}),s.on("click."+n,function(){if(o(this).hasClass("show")){return o(o("html").scrollTop()?"html":"body").animate({scrollTop:0},500),!1}}),s.addTooltip({pos:[2,1,0,1]}),t.on("removeScrollToTopBtn."+n,function(){l.off("."+n),t.off("."+n),s.remove()}),this}}(jQuery,jQuery(window));
14!function(t,o){"use strict";t.fn.alignTo=function(e,s){if(s=t.extend({},t.fn.alignTo.defaults,s),"string"==typeof e&&(e=t(e)),e instanceof t&&e.length){var n,p,i,a=t(window).width(),r=t(window).height(),l=function(o){for(;o.length&&"BODY"!==o[0].nodeName;){if("fixed"===o.css("position"))return o;o=o.parent()}return t()}(e);if("AREA"===e[0].nodeName){var f=e[0].shape.toUpperCase();if("RECT"===f||"CIRCLE"===f||"POLY"===f){var d=e[0].coords.split(",");(n=e.parent().offset()).left+=parseInt(d[0],10),n.top+=parseInt(d[1],10),p=parseInt(d[2]||0,10)-parseInt(d[0],10),i=parseInt(d[3]||
140,10)-parseInt(d[1],10)}}else n=e.offset(),p=e.outerWidth(),i=e.outerHeight();return n.left-=o.scrollLeft(),n.top-=o.scrollTop(),this.each(function(){var o,e,f=t(this),d=f.find("."+s.nubClass),u=s.pos[2],g=s.pos[3];f.css("maxHeight","none");var h=f.outerWidth(),c=f.outerHeight(),b=Math.round(n.left+s.pos[2]*p/2+(1===s.pos[1]?(s.pos[2]-1)*s.gap:(s.pos[0]-s.pos[2])*s.nubSize)),m=Math.round(n.top+s.pos[3]*i/2+(1!==s.pos[1]?(s.pos[3]-1)*s.gap:0)),w=Math.round(b-s.pos[0]*h/2),I=Math.round(m-s.pos[1]*c/2);if((I<0||I+c>r)&&(1!==s.pos[2]?I=2*I+c>r?r-c:0:0===s.pos[3]?r>2*n.top+i&&(I=n.top+i+s.gap,g=2):2===s.pos[3]&&r<2*n.top+i&&(I=Math.max(0,n.top-c-s.gap),g=0),I<0&&(I=0)),(w<0||w+h>a)&&(1!==s.pos[3]?w=2*w+h>a?a-h:0:0===s.pos[2]?a>2*n.left+p&&(w=n.left+p+s.gap,u=2):2===s.pos[2]&&a<2*n.left+p&&(w=Math.max(0,n.left-h-s.gap),u=0),w<0&&(w=0),w+h>a&&f.css({maxWidth:a-w-(parseInt(f.css("paddingLeft"),10)+parseInt(f.css("paddingRight"),10)+parseInt(f.css("borderLeftWidth"),10)+parseInt(f.css("borderRightWidth"),10))})),s.fixNub&&d.length&&(1!==u||1!==g)){var C={left:"auto",right:"auto",top:"auto",bottom:"auto"};1!==s.pos[1]?(C.left=n.left-w+u*p/2-u*s.nubSize,0===g?(C.bottom=-2*s.nubSize,o="top"):(C.top=-2*s.nubSize,o="bottom"),e=0===s.pos[0]?"left":2===s.pos[0]?"right":"center"):(C.top=n.top-I+g*i/2-g*s.nubSize,0===u?(C.right=-2*s.nubSize,o="left"):(C.left=-2*s.nubSize,o="right"),e=0===s.pos[1]?"top":2===s.pos[1]?"bottom":"middle"),d.css(C)}l.length?f.css({position:"fixed",left:w,top:I}):f.css({position:"absolute",left:w+t(window).scrollLeft(),top:I+t(window).scrollTop()}),f.removeClass("align-left align-right align-top align-bottom").removeClass("sec-left sec-right sec-top sec-bottom sec-center sec-middle"),o&&f.addClass("align-"+o),e&&f.addClass("sec-"+e)})}},t.fn.alignTo.defaults={gap:0,pos:[1,2,1,0],fixNub:!0,nubClass:"nub",nubSize:5}}(jQuery,jQuery(window));
15!function(t){"use strict";t.fn.hideAllTooltips=function(e){return this.each(function(){t(this).data("suppressTooltips",!0).find("[data-tooltip-id]").each(function(){if(!t(this).data("tooltip-keep")){var o=t(this).attr("data-tooltip-id");o&&o.length&&o!==e&&t("#"+o).hide()}}),t(this).data("suppressTooltips",!1)})},t.fn.destroyAllTooltips=function(e){return this.each(function(){t(this).data("suppressTooltips",!0).find("[data-tooltip-id]").each(function(){var o=t(this).attr("data-tooltip-id");o&&o.length&&o!==e&&t("#"+o).remove()})})},t(document).on("mouseleave._ltt_",function(){t(document.body).hideAllTooltips()}),t.fn.addTooltip=function(e,o){typeof e===UNDEF||typeof e===STRING||e&&e.jquery||(o=e,e=null),o=t.extend({},t.fn.addTooltip.defaults,o);var i=function(e){if(typeof e!==UNDEF&&e&&e.length){if(e.is(":hidden")||e.css("opacity")<.25)return!1;var o=!0;return e.parents().each(function(){if(t(this).is(":hidden")||t(this).css("opacity")<.25)return o=!1,!1}),o}return!0};return this.each(function(){if(t(this).data("tooltip-id"))return!0;var a,n,s,l,r,u=t(this),d=o,p=!1,c=!1,f=!1,h="_ltt_"+(t.fn.addTooltip._counter=(t.fn.addTooltip._counter||0)+1),T=function(e){p=!0,i(t(this))&&clearTimeout(s)},m=function(t){c||(p=!1,clearTimeout(s),s=setTimeout(y,Math.max(d.stay,500)))},y=function(){clearTimeout(s),!1===p&&(f=!1,clearTimeout(n),a&&a.css({opacity:0}).one("transitionend",function(){t(this).css({display:"none"})}))},v=function(){clearTimeout(s),s=setTimeout(y,d.stay)},g=function(){var e=u.offset();u.data("suppressTooltips")||(clearTimeout(s),(!l||Math.abs(e.top-l.top)<1&&Math.abs(e.left-l.left)<1)&&(d.exclusive&&(u.data("tooltip-keep",!0),t(document.body).hideAllTooltips(u.data("tooltip-id")),u.data("tooltip-keep",null)),a.css({opacity:0,display:"block"}).alignTo(u,{gap:d.gap,pos:d.pos}).css({opacity:1}).one("transitionend",function(){t(this).css({display:"block"}),v()}),setTimeout(v,50),f=!0),l=e)},b=function(){return!!a&&a.is(":visible")&&a.css("opacity")>.99},k=function(t){var e=t.closest("a");return e.length&&e.attr("href")&&!e.attr("href").startsWith("javascript")&&"#"!==e.attr("href")},A=function(e){u.off("."+h),clearTimeout(n),clearTimeout(s),u.data("suppressTooltips",!0),t("#"+u.attr("data-tooltip-id")).remove(),u.attr("data-tooltip-id",null)};u.attr("data-tooltip")&&typeof u.data("tooltip")===OBJECT&&(d=t.extend({},d,u.data("tooltip")),u.removeAttr("data-tooltip")),u.attr("data-tooltip-id",h).data("suppressTooltips",!1).on("destroyTooltip",A).on("removeTooltip",y).on("focus."+h+" mouseenter."+h,function(p){if(!u.data("suppressTooltips")&&i(t(p.target).closest("[data-tooltip-id]"))){if
15(f=b(),r=new Date,l=u.offset(),(a=t("#"+u.data("tooltip-id"))).length)clearTimeout(s);else if(u.data("suppressTooltips")||!(a=function(e,i){var a;if(i)if(typeof i===STRING)a=t("<div>",{html:i}).appendTo("body");else{if(!i.jquery)return t();a=t.contains(document.body,i[0])?i:i.appendTo("body")}else{if((i=e.data("tooltip"))?i.jquery?i.removeClass("hidden"):typeof i===STRING?"."===i.charAt(0)?i=e.find(i).eq(0):"#"===i.charAt(0)&&(i=t(i)):(typeof i===OBJECT&&(o=t.extend({},o,i)),o.hasOwnProperty("html")?i=o.html.replaceAll(""",'"'):(i=e.attr("title"),e.removeAttr("title"))):(i=e.attr("title"),e.removeAttr("title")),!i||!i.length)return t();a=t("<div>",{html:i}).appendTo("body")}return 0===a.length?t():(a.attr("id",e.attr("data-tooltip-id")).addClass(o.className).attr("role","tooltip").append(t("<span>",{class:o.nub})).data("display","none"===a.css("display")?"block":a.css("display")).attr("aria-hidden","true").hide(),a)}(u,e))||(a.on("mouseenter."+h,T).on("mouseleave."+h,m),a.find("input, textarea").on("focus."+h,function(){c=!0,T(this)}).on("blur."+h,function(){c=!1}),a.find("[data-closer]").on("click."+h,function(){return setTimeout(v,1e3),!0}),0))return A(),!0;clearTimeout(n),n=null,"mouse"===whatInput.ask("intent")&&(n=setTimeout(g,d.delay))}return!0}).on("blur."+h+" mouseleave."+h,function(e){return clearTimeout(n),n=null,i(t(e.target).closest("[data-tooltip-id]"))&&(clearTimeout(s),s="mouse"===whatInput.ask("intent")?setTimeout(y,500):setTimeout(y,3e3)),!1}).on("click."+h,function(e){if(i(t(e.target).closest("[data-tooltip-id]"))){if(clearTimeout(n),d.touchToggle||"mouse"!==whatInput.ask("intent")){var o=new Date;if(d.touchToggle||o-r>1e3)return!(!k(t(e.target))||!b())||(function(t){t.preventDefault(),clearTimeout(n),clearTimeout(s)}(e),f?y():g(),!1)}else if(k(t(e.target)))return!0;f&&(clearTimeout(s),y()),p=!1}return!0})})},t.fn.addTooltip.defaults={delay:150,className:"tooltip",nub:"nub",stay:2e3,exclusive:!0,touchToggle:!1,pos:[1,2,1,0],gap:6}}(jQuery);
16!function(a){"use strict";a.fn.modal=function(s,o,t){var e=a(document.body);if("string"==typeof s&&(s=a(document.createTextNode(s))),s instanceof a&&s.length){typeof o===UNDEF||Array.isArray(o)||(t=o,o=null),s.data("modal")&&(t=a.extend({},t,s.data("modal"))),t=a.extend({},a.fn.modal.defaults,t);var l=a(this),n=l.find("."+t.modalClass),d=n.length?parseInt(n.last().css("zIndex")):3e5,i=getTranslations(a.fn.modal.text),c=function(a){a.length&&(clearTimeout(a.data("to")),a.destroyAllTooltips(),a.one("transitionend",function(){a.data("keep")?a.css({display:"none"}):a.remove(),e.toggleClass(t.hasModalClass,l.find("."+t.modalClass).length>0)}).css({transition:"opacity "+t.speed+"ms ease-out"}).css({opacity:0}))};return function(s,o){var n=document.body.contains(s[0])?function(a){var s=a.hasClass(t.modalClass)?a:a.parents("."+t.modalClass);return s.length&&s.parent()[0]===l[0]||l.append(s),s.data("keep",!0),s}(s):function(s,o){var e,n,r;if(a.fn.modal._zIndex=Math.max(a.fn.modal._zIndex||3e5,d)+1,(e=a("<div>",{class:t.modalClass,zIndex:a.fn.modal._zIndex}).appendTo(l)).data("modal-ns","lmo_"+(a.fn.modal._counter=(a.fn.modal._counter||0)+1)),n=a("<div>",{class:t.windowClass+(t.hasOwnProperty("class")?" "+t.class:""),role:"dialog"}).appendTo(e),a("<a>",{class:t.closeClass,title:i.closeWindow}).appendTo(t.alignTo?e:n).addTooltip(),r=a("<div>",{class:t.contentClass+" scrollable"}).appendTo(n),t.title&&n.addClass(t.hasHeaderClass).prepend(a("<header>",{class:t.headerClass+(t.icon?" icon-"+t.icon:""),html:t.title})),r.append(s.show()),typeof o!==UNDEF&&o){var p,u,f=a("<div>",{class:t.buttonsClass}).appendTo(r),h=function(s){s.preventDefault();var o=s.target;return typeof o.handler===FUNCTION&&!1!==o.handler.call(l[0])&&c(a(o).closest("."+t.modalClass)),!1};for(p=0;p<o.length;p++)u=a("<button>",{class:[t.buttonClass,o[p].c].filter(Boolean).join(" "),html:" "+o[p].t}).on("click",h).appendTo(f),typeof o[p].h===FUNCTION&&(u[0].handler=o[p].h)}return e}(s,o);t.hasOwnProperty("closeOnClick")&&a(t.closeOnClick).on("click",function(){c(a(this).closest("."+t.modalClass))});var r=t.hasOwnProperty("alignTo")?t.alignTo instanceof jQuery?t.alignTo:a(t.alignTo):a();return r.length&&r.is(":visible")&&function(s,o){o.jquery||(o=a(o));var e,l,n=o.position(),d=[o.outerWidth(),o.outerHeight()],i=[s.outerWidth(),s.outerHeight()],c=[(n.left+d[0]/2)/i[0],(n.top+d[1]/2)/i[1]],r=null,p=null,u=null,f=null,h={},m={};c[0]>.333&&c[0]<.667?r="50%":c[0]<=.333?r=n.left+"px":(p=i[0]-(n.left+d[0])+"px",r="auto"),c[1]<=.5?(u=n.top+d[1]+4+"px",e=n.top+d[1]-t.closeSize+"px"):(f=i[1]-n.top+4+"px",u="auto",l=i[1]-n.top-t.closeSize+"px",e="auto"),h.left=m.left=r,null!==p&&(h.right=m.right=p),h.top=u,m.top=e,null!==f&&(h.bottom=f,m.bottom=l),h.transform=m.transform="50%"===r?"translateX(-50%)":"none",s.children("."+t.windowClass).css(h),s.children("."+t.closeClass).css(m)}(n,r),n.css({display:"block",opacity:0,transition:"opacity "+t.speed+"ms ease-out"}).removeClass("hidden"),n[0].offsetHeight,n.css({opacity:1}),e.addClass(t.hasModalClass),n.on("destroy",function(){c(a(this))}),n.on("close",function(){c(a(this))}),n.find("."+t.closeClass).add(n).on("click."+n.data("modal-ns"),function(s){if(s.target===this)return c(a(this).closest("."+t.modalClass)),typeof t.onClose===FUNCTION&&t.onClose.call(l[0]),!1}),t.autoFade&&n.data("to",setTimeout(function(){c(n)},t.autoFade)),n}(s,o)}},a.fn.modal.defaults={modalClass:"modal",windowClass:"window",headerClass:"header",closeClass:"close",contentClass:"content",buttonsClass:"buttons",buttonClass:"button",hasHeaderClass:"has-header",hasModalClass:"has-modal",speed:300,autoFade:0,width:400,type:"normal",closeSize:40},a.fn.modal.text={closeWindow:"Close window"}}(jQuery);
17!function(e){"use strict";e.fn.renderShares=function(t){t=e.extend({},e.fn.renderShares.defaults,t);var i,a,n,r,s,o=e(this),l=getTranslations(e.fn.renderShares.text),c=t.emailSubject||l.checkThisOut,p=t.emailBody||"{title}\n\r{description}\n\r{link}",d=function(e){var t,i=this.querySelector("input[name=url]");return i&&(t=i.value,i.focus(),i.setSelectionRange(0,t.length),navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(t).then(function(){i.value=l.copied+"...",i.classList.add("copied"),setTimeout(function(){i.value=t,i.classList.remove("copied")},500)}):(i.focus(),i.setSelectionRange(0,t.length))),!1},h=function(e){var t=this.checked,i=this.name,a=this.parentNode.querySelector("input[name=url]");t?a.value.indexOf("#")>=0?-1===a.value.search(new RegExp("[#&]"+i))&&(a.value+="&"+i):a.value+="#"+i:a.value=a.value.replace(new RegExp("[#&]"+i,"g"),"")},u=function(i){typeof i===UNDEF?i=t:((i=e.extend({},t,i)).hasOwnProperty("href")||(i.href=window.location.href),i.title=(i.title||"").stripHTML(),i.description=(i.description||"").stripHTML()),i.image&&!i.image.startsWith("http")&&(i.image=window.location.href.getDir()+i.image);var r=e(i.currCardHook);if(r.length){if(!i.hasOwnProperty("title")&&(i.title=r.find(".caption .title").text(),!i.title)){var u=r.find("img, video");i.title=u.length?u.attr("title")||u.attr("alt")||(u.attr("src")?u.attr("src").getFile().replace(/\.(jpg|gif|png|mp4)$/i,"").replace(/_/g," "):""):""}if(i.hasOwnProperty("description")||(i.description=r.find(".caption .comment").text()),!i.hasOwnProperty("image")){var m=e(i.currCardHook+" img");
17m.length?i.image=m.attr("src"):(m=e(i.currCardHook+" video")).length?i.image=m.attr("src").replaceExt("jpg"):(m=e("link[rel=image_src]"),i.image=m.length?m.attr("href"):window.location.href.getDir()+"folderthumb.jpg")}i.usePreview&&(i.hasOwnProperty("image")&&a.attr("src",i.image),n.empty(),i.hasOwnProperty("title")&&n.append(e("<h3>",{class:"title",text:i.title})),i.hasOwnProperty("description")&&n.append(e("<div>",{class:"description",text:i.description})))}else a&&a.attr("src",void 0),n&&n.html(s);var g,f=encodeURIComponent(i.href),b=i.href.indexOf("#img=")>0?i.href.replace(t.indexName,"").replace("#img=","slides/").replaceExt(i.pageExt):i.href,w=encodeURIComponent(i.title),k=encodeURIComponent(i.description),v=encodeURIComponent(i.image);o.find("."+t.sharesClass+" a").each(function(){var a=e(this);switch(a.data("share")){case"facebook":if(typeof FB!==UNDEF)return void a.off(".share").on("click.share",function(){return FB.ui({method:"share",href:b,caption:i.title,description:i.description,picture:i.image}),!1});g="https://www.facebook.com/sharer.php?s=100&p%5Burl%5D="+i.href+"&p%5Bimages%5D%5B0%5D="+i.image+"&p%5Btitle%5D="+w;break;case"threads":g="https://threads.net/intent/post?text="+w+":%20"+b;break;case"bluesky":g="https://bsky.app/intent/compose?text="+w+":%20"+b;break;case"twitter":g="https://twitter.com/intent/tweet?text="+w+":%20"+f;break;case"tumblr":g="https://www.tumblr.com/share/link?url="+f+"&name="+w;break;case"pinterest":g="https://pinterest.com/pin/create/button/?url="+f+"&media="+v+"&description="+w;break;case"linkedin":g="https://www.linkedin.com/shareArticle?mini=true&url="+f+"&title="+w+"&summary="+k;break;case"digg":g="https://digg.com/submit?url="+i.href;break;case"reddit":g="https://www.reddit.com/submit?url="+i.href;break;case"email":g="mailto:?subject="+encodeURIComponent(c.replace("{title}",i.title).replace("{description}",i.description).replace("{album}",t.albumTitle||""))+"&body="+encodeURIComponent(p.replace("{title}",i.title).replace("{description}",i.description).replace("{link}",i.href).replace("{album}",t.albumTitle||""));break;case"link":var n=e('<form class="copy-url"><input name="url" type="text" readonly value="'+i.href+'"><input name="slideshow" id="slideshowcb" type="checkbox"><label for="slideshowcb">'+l.slideshow+'</label> <button type="submit" class="button icon-copy" data-closer> '+l.copy+"</button></form>");return n.on("submit",d),n.find("[name=slideshow]").on("change",h),void a.addClass("copy-url-btn").trigger("destroyTooltip").addTooltip(n,{stay:4e3,pos:t.pos,touchToggle:!0});default:return}a.attr({href:g,target:"_blank"})})};if(t.hasOwnProperty("href")||(t.href=window.location.href),!t.hasOwnProperty("image")){var m=e("link[rel=image_src]");t.image=m.length?m.attr("href"):window.location.href.getDir()+"folderthumb.jpg"}return t.hasOwnProperty("title")||(t.title=function(){var t=o.find("h3,.title");return t.length&&(t=t.text())?t:(t=e('meta[property="og:title"]')).length&&(t=t.attr("content"))?t:e("title").text()||""}()),t.hasOwnProperty("description")||(t.description=function(){var t=o.find(".description,.comment");return t.length&&(t=t.text())?t:(t=e('meta[property="og:description"]')).length&&(t=t.attr("content"))?t:(t=e("meta[name=description]")).length&&(t=t.attr("content"))?t:""}()),t.hasOwnProperty("pageExt")||(t.pageExt=t.indexName.getExt()),t.usePreview?((i=o.find("."+t.contClass)).length||(i=e("<div>",{class:t.contClass}).appendTo(o)),(a=i.find("img")).length||(t.image?a=e("<img>",{src:t.image}).appendTo(i):i.addClass("no-image")),(n=i.find("."+t.captionClass)).length||(n=e("<div>",{class:t.captionClass,html:'<h3 class="title">'+t.title+"</h3>"+(t.description?'<div class="description">'+t.description+"</div>":"")}).appendTo(i)),s=n.html(),(r=i.find("."+t.socialLinksClass)).length||(r=e("<div>",{class:t.socialLinksClass}).appendTo(i))):r=o,function(i){for(var a,n,r=e("<div>",{class:t.sharesClass}).appendTo(i||o),s=t.sites.split(","),c=["facebook","threads","bluesky","twitter","tumblr","pinterest","linkedin","digg","reddit","email","link"],p=0;p<s.length;p++)a=s[p],c.indexOf(a.trim())>=0&&(n=e("<a>",{class:t.btnClass+" icon-"+("twitter"===a?"x":a),rel:"noopener",text:" "+(t.buttonLabels?a.capitalize():"")}).data("share",a).appendTo(r),"email"===a?n.data("tooltip",l.email):"link"!==a&&n.data("tooltip",l.shareOn+" "+("twitter"===a?"X":a.capitalize())));u(),r.children("a").not(".copy-url-btn").addTooltip({pos:t.pos})}(r),t.hasOwnProperty("buttons")&&!LOCAL&&function(i){for(var a=t.buttons.split(","),n=encodeURIComponent(window.location.href.split("#")[0]),r=encodeURIComponent(t.title||e("meta[name=title]").attr("content")||e("title").text()),s=t.image?(t.image.startsWith("http")?"":window.location.href.getDir())+encodeURIComponent(t.image):e("link[rel=image_src]").attr("href"),l=e("<div>",{class:t.buttonsClass}).appendTo(i||o),c=0;c<a.length;c++)switch(a[c]){case"facebook":l.append('<div class="likebtn fb-like" data-href="'+n+'" data-layout="button_count" data-action="like" data-size="large" data-show-faces="false" data-share="false"></div>');break;case"twitter":l.append('<a class="likebtn twitter-share-button icon-x" href="https://twitter.com/intent/tweet?text='+r+"&url="+n+'" data-size="large" target="_blank"> Tweet</a>');break;case"pinterest":l.append('<div class="likebtn"><a data-pin-count="beside" data-pin-tall="true" data-pin-save="true" href="https://www.pinterest.com/pin/create/button/?url='+n+"&media="+s+"&description="+r+'" data-pin-do="buttonPin"></a></div>')}}(r),o.closest(".modal").length&&o.find("."+t.sharesClass+" a").not(".copy-url-btn").on("click",function(){return e(this).closest(".modal").trigger("close"),!0}),o.on("updateLinks",function(e,t){u(t)}),this},e.fn.renderShares.defaults={buttonLabels:!1,usePreview:!0,contClass:"preview",captionClass:"caption",socialLinksClass:"social-links",sharesClass:"shares",buttonsClass:"buttons",btnClass:"btn",sites:"facebook,twitter,tumblr",indexName:"index.html",currCardHook:".lightbox .curr",emailSubject:"",emailBody:"",pos:[2,1,0,1]},e.fn.renderShares.text={checkThisOut:"This album is worth checking out",copied:"Copied",slideshow:"Slideshow",copy:"Copy",email:"Email",shareOn:"Share on"}}(jQuery);
18!function(s,t){"use strict";s.fn.sticky=function(i){i=s.extend({stickyClass:"sticky",stickToEdge:"st-stick",topmostClass:"st-topmost",bottommost
18Class:"st-bottommost",topClass:"st-top",bottomClass:"st-bottom",placeholderClass:"st-placeholder",controlsClass:"st-controls",minimizedClass:"minimized",maximizedClass:"maximized",watch:".thumbnails",watchThreshold:100,minimizableThreshold:80,placeBelow:".top-bar.sticky"},i);var a="lst_"+(s.fn.sticky._counter=(s.fn.sticky._counter||0)+1),e=[],o=-999,l=function(t){var a=s("[data-sticky-rel="+e[t].id+"]"),o=s("#"+e[t].id);a.length&&a.hasClass(i.stickyClass)&&(o.css("height",""),a.removeClass(i.stickyClass+" "+i.topClass+" "+i.bottomClass))},c=function(t){var a=t?s("."+i.bottomClass+"."+i.stickyClass+":visible").backwards():s("."+i.topClass+"."+i.stickyClass+":visible"),e=t?0:s(i.placeBelow+":visible").outerHeight()||0;a.each(function(){s(this).css(t?"bottom":"top",e),e+=s(this).outerHeight()})},h=function(){var a,c,h,n,r,d=t.scrollTop(),C=t.outerHeight(),m=s(i.watch+":visible");if(!(Math.abs(d-o)<=2)){if(o=d,m.length&&(r=m.position().top),!m.length||r>d+C-i.watchThreshold||r+m.outerHeight()<=d+i.watchThreshold)!function(){for(var s=0;s<e.length;s++)l(s)}();else{a=s(i.placeBelow+":visible").outerHeight()||0,h=!0,s("."+i.topClass+"."+i.stickyClass+":visible").each(function(){a+=s(this).outerHeight(),h=!1}),c=0,n=!0,s("."+i.bottomClass+"."+i.stickyClass+":visible").each(function(){c+=s(this).outerHeight(),n=!1});for(var u,g,p,b=0;b<e.length;b++)u=s("[data-sticky-rel="+e[b].id+"]"),g=s("#"+e[b].id),u.length&&g.length&&((p=g.position().top)<d+a||p+e[b].height>d+C-c?u.hasClass(i.stickyClass)||(g.height(e[b].height),u.addClass(i.stickyClass),p<d+a?(a?u.removeClass(i.stickToEdge).css("top",a):u.addClass(i.stickToEdge),a+=e[b].height,h&&(u.addClass(i.topmostClass),h=!1),u.addClass(i.topClass).removeClass(i.bottomClass)):u.addClass(i.bottomClass).removeClass(i.topClass)):l(b));c=0,s("."+i.bottomClass+"."+i.stickyClass).backwards().each(function(){s(this).css("bottom",c),c?s(this).removeClass(i.stickToEdge):s(this).addClass(i.stickToEdge),c+=s(this).outerHeight(),n&&(s(this).addClass(i.bottommostClass),n=!1)})}return!0}};this.each(function(t){var o=s(this),l=o.children().first(),h=a+"_"+t,n=o.outerHeight();o.before(s("<div>",{id:h,class:i.placeholderClass})),n>i.minimizableThreshold&&l.prepend(s("<div>",{class:i.controlsClass}).append(s("<a>",{class:"minimize"}).on("click",function(s){return function(){o.removeClass(i.maximizedClass).addClass(i.minimizedClass),e[s].height=o.outerHeight(),c(o.hasClass(i.bottomClass))}}(t))).append(s("<a>",{class:"maximize"}).on("click",function(){o.removeClass(i.minimizedClass).addClass(i.maximizedClass),c(o.hasClass(i.bottomClass))}))),o.attr("data-sticky-rel",h).addClass(i.maximizedClass),e.push({id:h,height:n})});var n=s(this);return n.on("stickyRefresh",function(){n.each(function(t){e[t].height=s(this).outerHeight()}),o=-999,h()}),t.on("scroll."+a+" resize."+a,function(){h()}),h(),this}}(jQuery,jQuery(window));
19!function(t){"use strict";t.fn.swipe=function(e){e=t.extend({onSwipedLeft:!1,onSwipedRight:!1,onSwipedUp:!1,onSwipedDown:!1,onSmallSwipe:!1,onSwipeStart:!1,onPinchZoom:!1,onClick:!1,onDoubleClick:!1,onFinished:!1,threshold:20,clickThreshold:150,doubleClickThreshold:350,noSwipeInside:".caption",stopAutoPano:!0,swipeoutDuration:300,avoidNavigationOnZoomed:!0,overThreshold:.2},e);var o=function(t){return[t.outerWidth(),t.outerHeight()]},n=function(t){return t.touches?t.touches.length>1?[t.touches[0].clientX,t.touches[0].clientY,t.touches[1].clientX,t.touches[1].clientY]:[t.touches[0].clientX,t.touches[0].clientY]:null===t.clientX?null:[t.clientX,t.clientY]};return this.each(function(){var i,a,u,l,r,s,p,c,h,d,f,w,g=t(this),m=g.parent(),T=g.data("lsw_ns")||(t.fn.swipe._counter=(t.fn.swipe._counter||0)+1),N=!1,D=!0,S=!0,C=!1,v=!0,U=!0,y=!1,O=!0,I=!1,F=!1,E=null,b=function(t){g.data("scrolling",!1),typeof e.onFinished===FUNCTION&&e.onFinished.call(g[0],t)},k=function(t){P(t),g.data("scrolling",!1),F||typeof e.onClick!==FUNCTION||e.onClick.call(g[0],t)},M=function(t){S||typeof e.onSwipedDown!==FUNCTION||(P(t),S=!0,e.onSwipedDown.call(g[0],t))},A=function(t){S||typeof e.onSwipedUp!==FUNCTION||(P(t),S=!0,e.onSwipedUp.c
19all(g[0],t))},R=function(t){S||typeof e.onSwipedRight!==FUNCTION||(P(t),S=!0,e.onSwipedRight.call(g[0],t))},H=function(t){S||typeof e.onSwipedLeft!==FUNCTION||(P(t),S=!0,e.onSwipedLeft.call(g[0],t))},P=function(e){"mouseup"===e.type||"mouseout"===e.type?(g.off("mouseup."+T+" mouseout."+T),t(document).off("mousemove."+T)):e.type===TOUCH.END&&g.off(TOUCH.END+"."+T)},Z=function(t){return Math.hypot(t[2]-t[0],t[3]-t[1])},x=function(t,e,o,n){var i,a,u={};if(4===t.length){l=Z(t)/f;var r=(t[0]+t[2])/2,s=(t[1]+t[3])/2,c=(p[0]+p[2])/2,d=(p[1]+p[3])/2;i=r-c,a=s-d,i+=(c-h[0])*(1-l),a+=(d-h[1])*(1-l)}else i=t[0]-p[0],a=t[1]-p[1];u.transform="matrix("+w[0]*l+","+w[1]+","+w[2]+","+w[3]*l+","+(w[4]+i)+","+(w[5]+a)+")",typeof o!==UNDEF&&o?(u.transition="transform "+o+"ms ease-in-out",null!==e&&(u.transition+=",opacity "+o+"ms ease-in-out",u.opacity=e)):u.transition="none",typeof n===FUNCTION&&g.one("transitionend",n),g.css(u)},X=function(t){if(D||O||t.originalEvent.touches&&t.originalEvent.touches.length>2)return!0;t.preventDefault();var e=c?c[0]:0,o=c?c[1]:0,i=(new Date).getTime(),a=i-s||1;if(c=n(t.originalEvent),null===p||p.length<c.length){for(var u=p.length||0;u<c.length;u++)p[u]=c[u];f=Z(c)}if(v&&U)c[1]=p[1],d[0]=(d[0]+2*(c[0]-e)/a)/3;else{var l=c[0]-p[0],r=c[1]-p[1],h=Math.abs(l),w=0!==r?Math.abs(l/r):1/0;y&&(h>30||h>8&&w>.25)&&(v=U=!0),(v&&c[1]<p[1]||U&&c[1]>p[1])&&(c[1]=p[1]),d=[(d[0]+2*(c[0]-e)/a)/3,(d[1]+2*(c[1]-o)/a)/3]}return s=i,x(c),!1},Y=function(t){if(O)return!0;if(t.preventDefault(),E&&(clearTimeout(E),E=null,I=!1),N=!1,D=!0,4===c.length)!function(t){S||typeof e.onPinchZoom!==FUNCTION||(P(t),S=!0,e.onPinchZoom.call(g[0],t))}(t);else{var o=c[0]-p[0],n=c[1]-p[1],i=(new Date).getTime()-r,s=a[0]*l*w[0],h=a[1]*l*w[3];if(i>50&&Math.hypot(o,n)>e.threshold){if(g.data({scrolling:!0,swipeEnded:!0,taplength:i}),v&&U){m=d[0]*e.swipeoutDuration/2;u[0]>=s||o&&(w[4]+o+m>u[0]*(e.overThreshold-.5)||w[4]+o+m<u[0]*(.5-e.overThreshold)-s)?(x([c[0]+m,p[1]],0,e.swipeoutDuration,b),C&&(o>0?R(t):H(t))):(x([c[0]+m,p[1]],null,e.swipeoutDuration),P(t))}else{var f=Math.abs(n)>1.5*Math.abs(o),m=[d[0]*e.swipeoutDuration/2,d[1]*e.swipeoutDuration/2],T=[0,0];o>0?T[0]=Math.max(0,w[4]+o+m[0]-u[0]*(e.overThreshold-.5)):o<0&&(T[0]=Math.min(0,w[4]+o+m[0]+s-u[0]*(.5-e.overThreshold))),n>0?T[1]=Math.max(0,w[5]+n+m[1]-u[1]*(e.overThreshold-.5)):n<0&&(T[1]=Math.min(0,w[5]+n+m[1]+h-u[1]*(.5-e.overThreshold))),s<1.1*u[0]||h<1.1*u[1]?C?typeof e.onSwipedDown===FUNCTION&&f&&n>0?(x([p[0],c[1]+m[1]],0,e.swipeoutDuration,b),M(t)):typeof e.onSwipedUp===FUNCTION&&f&&n<0?(x([p[0],c[1]+m[1]],0,e.swipeoutDuration,b),A(t)):(x([c[0]+m[0],p[1]],0,e.swipeoutDuration,b),o>0?R(t):H(t)):(x([c[0]+m[0]-T[0],c[1]+m[1]-T[1]],1,e.swipeoutDuration),P(t)):T[0]||T[1]?C?typeof e.onSwipedDown===FUNCTION&&f&&T[1]>u[1]/2?(x([p[0],c[1]+m[1]],0,e.swipeoutDuration,b),M(t)):typeof e.onSwipedUp===FUNCTION&&f&&-T[1]>u[1]/2?(x([p[0],c[1]+m[1]],0,e.swipeoutDuration,b),A(t)):Math.abs(T[0])>u[0]/2?(x([c[0]+m[0],p[1]],0,e.swipeoutDuration,b),o>0?R(t):H(t)):(x([c[0]+m[0]-T[0],c[1]+m[1]-T[1]],null,e.swipeoutDuration),P(t)):(x([c[0]+m[0]-T[0],c[1]+m[1]-T[1]],null,e.swipeoutDuration),P(t)):(x([c[0]+m[0],c[1]+m[1]],null,e.swipeoutDuration),P(t))}I=!1}else o||n?(!function(t){P(t),g.data("scrolling",!1),typeof e.onSmallSwipe===FUNCTION&&e.onSmallSwipe.call(g[0],t)}(t),x(p,null,100),I=!1):e.onDoubleClick?I?(i<e.doubleClickThreshold?function(t){P(t),g.data("scrolling",!1),typeof e.onDoubleClick===FUNCTION&&e.onDoubleClick.call(g[0],t)}(t):k(t),I=!1):(I=!0,E=setTimeout(function(t){k(t),I=!1},e.doubleClickThreshold+10,t)):k(t)}return!1};g.add(t(document)).off("."+T),g.data("lsw_ns",T),t(window).on("resize."+T,function(){clearTimeout(i),i=setTimeout(function(){u=o(m)},50)}),g.attr("draggable","false").on(TOUCH.START+"."+T+" dragstart."+T+" mousedown."+T,function(i){if(pageZoomed()||i.originalEvent.touches&&i.originalEvent.touches.length>2||e.noSwipeInside&&t(i.target).closest(e.noSwipeInside).length||"A"===i.target.nodeName||"INPUT"===i.target.nodeName||"BUTTON"===i.target.nodeName||"AUDIO"===i.target.nodeName||"VIDEO"===i.target.nodeName&&(!i.target.paused||i.target.controls&&(ISIOSDEVICE||i.offsetY>t(i.target).height()-60)))return O=!0,!0;
19if("mousedown"===i.type&&1!==i.which)return e.stopAutoPano&&m.data("panomove")&&g.trigger("autopanoStop"),function(t){P(t),typeof e.onRightClick===FUNCTION&&e.onRightClick.call(g[0],t)}(i),!0;if(N||I)return!1;"touchstart"!==i.type&&i.preventDefault(),N=!0,O=!1,D=!1,I=!1,e.stopAutoPano&&m.data("panomove")?(g.trigger("autopanoStop"),F=!0):F=!1,g.data({scrolling:!0,swipeEnded:!1,taplength:0}),r=s=(new Date).getTime(),p=n(i.originalEvent),c=p.slice(),d=[0,0],4===p.length&&(f=Z(p)),u=o(m),a=o(g),w=g.getMatrix(),l=1;var E=m[0].getBoundingClientRect();return h=[E.left+E.width/2+w[4]+a[0]*w[0]/2,E.top+E.height/2+w[5]+a[1]*w[3]/2],y=F||u[1]>=a[1]*w[3]&&u[0]>=a[0]*w[0],C=!(e.avoidNavigationOnZoomed&&(u[1]<a[1]*w[3]||u[0]<a[0]*w[0]))||y,y?(v=typeof e.onSwipedUp!==FUNCTION,U=typeof e.onSwipedDown!==FUNCTION):v=U=!1,function(e){"mousedown"===e.type?(g.on("mouseup."+T+" mouseout."+T,Y),t(document).on("mousemove."+T,X)):e.type===TOUCH.START&&g.on(TOUCH.END+"."+T,Y),I=!1}(i),function(t){typeof e.onSwipeStart===FUNCTION&&e.onSwipeStart.call(g[0],t)}(i),S=!1,"touchstart"===i.type}).on(TOUCH.MOVE+"."+T+" drag."+T,X).on("removeSwipe."+T,function(){setTimeout(function(){g.data("scrolling",!1)},20),g.removeAttr("draggable"),g.add(t(document)).off("."+T)}
19).on("selectstart."+T,function(t){return t.preventDefault(),!1})})}}(jQuery);
20!function(n,t){"use strict";n.fn.autopano=function(o){o=n.extend({},n.fn.autopano.defaults,o);var a,e,i,r=n(this),s=r.parent(),u=!1,d=!1,c=0,f=1600/o.speed,p=120/o.speed,m=!1,l=r.data("lap_ns"),M=function(n){var t=r.getMatrix(),o=r[0].scrollWidth,i=r[0].scrollHeight,u=s[0].clientWidth,d=s[0].clientHeight;o/u<i/d?(a=i,e=d,m||(m=!0,n||(t[4]=-o/2,r.css({transition:"none",transform:"matrix("+t.join(",")+")"})))):(a=o,e=u,m&&(m=!1,n||(t[5]=-i/2,r.css({transition:"none",transform:"matrix("+t.join(",")+")"})))),a>e?n||!c?setTimeout(j,100):c>0?y():g():b()},h=function(){b(),setTimeout(function(){s.data("panomove",!1)},20),r.removeAttr("draggable"),r.add(t).off("."+l)},v=function(n){u=!0,c&&(!d||o.loop?y():b())},x=function(n){d=!0,c&&(!u||o.loop?g():b())},g=function(){var n,t=-e/2,a=r.getMatrix();m?(n=1e3*Math.minMax(p,Math.abs(a[5]-t)/o.speed,f),a[5]=t):(n=1e3*Math.minMax(p,Math.abs(a[4]-t)/o.speed,f),a[4]=t),d=!1,c=-1,r[0].style.transition="none",r.one("transitionend",v).css({transition:"transform "+n+"ms "+o.easing,transform:"matrix("+a.join(",")+")"})},y=function(){var n,t=e/2-a,i=r.getMatrix();m?(n=1e3*Math.minMax(p,Math.abs(i[5]-t)/o.speed,f),i[5]=t):(n=1e3*Math.minMax(p,Math.abs(i[4]-t)/o.speed,f),i[4]=t),u=!1,c=1,r[0].style.transition="none",r.one("transitionend",x).css({transition:"transform "+n+"ms "+o.easing,transform:"matrix("+i.join(",")+")"})},j=function(){var n=r.getMatrix(),t=m?r[0].scrollHeight/2+n[5]:r[0].scrollWidth/2+n[4];o.direction<0||0===o.direction&&t>0?g():y(),s.addClass(o.panoMoveClass),s.data("panomove",!0)},b=function(){var n=r.getMatrix();c=0,r.off("transitionend"),r.css({transition:"none",transform:"matrix("+n.join(",")+")"}),s.data("panomove",!1),s.removeClass(o.panoMoveClass)};return l&&n(window).add(n(document)).off("."+l),r.data("lap_ns",l="lap_"+(n.fn.autopano._counter=(n.fn.autopano._counter||0)+1)),n(window).on("resize."+l,function(){return clearTimeout(i),i=setTimeout(M,50,!1),!0}),r.data("hasAutoPano",!0).on("autopanoRemove."+l,function(){return c=0,h(),!1}).on("autopanoStart."+l,function(){return j(),!1}).on("autopanoStop."+l,function(){return c=0,b(),!1}).on("autopanoAdjust",function(){M(!1)}),M(!0),o.hasOwnProperty("onReady")&&typeof o.onReady===FUNCTION&&o.onReady(r[0]),this},n.fn.autopano.defaults={direction:-1,speed:80,easing:"cubic-bezier(0.2, 0, 0.8, 1)",autoStart:!0,loop:!0,panoMoveClass:"pano-move"}}(jQuery,jQuery(document));
21!function(e){"use strict";e.fn.audioPlayer=function(t){e(this).data("audioplayer")&&(t=e.extend({},t,e(this).data("audioplayer"))),(t=e.extend({},e.fn.audioPlayer.defaults,t)).hasOwnProperty("rootPath")&&"."!==t.rootPath||(t.rootPath="");const o="lap_ns",a=(t.rootPath?t.rootPath+"/":"")+t.folder+"/",n="paused";return this.each(function(){let l,r,s,i=e(this),u=e(),d=e(),p=e(),c=e(),f=e(),m=0,y=t.volume,h=!1,v=!1,P=function(o){if((typeof o===UNDEF||o instanceof e.Event)&&(o=m),f.attr("src")&&o===m){if(!c[0].paused)return}else!function(e){c[0].pause(),(e>=l.length||e<0)&&(e=(e%l.length+l.length)%l.length),f.attr({src:a+l[e]}),c[0].load(),m=e,p.children().removeClass("active"),p.children().eq(e).addClass("active")}(o);(r=c[0].play())&&r.then(function(){i.addClass("active"),i.data(n,!1),typeof t.onPlaying===FUNCTION&&t.onPlaying.call(i)},function(e){i.removeClass("active"),i.data(n,!0),typeof t.onPaused===FUNCTION&&t.onPaused.call(i),console.log("Autoplay has been prevented by the browser. Interact with the page first!")})},g=function(){c[0].pause(),r=null,i.removeClass("active"),i.data(n,!0)},T=function(){clearTimeout(s);let e=c[0].volume;if("number"==typeof e||"number"==typeof(e=parseFloat(e))){if((e=Math.min(e+t.step,1))>=y)return c[0].volume=y,void setTimeout(function(){h=!1},50);c[0].volume=e,s=setTimeout(T,t.stepFreq)}},C=function(){c[0].paused&&(c[0].volume=.01,P()),h=!0,v=!1,s=setTimeout(T,t.stepFreq),i.data(n,!1)},F=function(){clearTimeout(s);let e=c[0].volume;if("number"==typeof e||"number"==typeof(e=parseFloat(e))){if((e=Math.max(e-t.step,0))<.01)return c[0].volume=0,g(),void setTimeout(function(){v=!1},50);c[0].volume=e,s=setTimeout(F,t.stepFreq)}},w=function(){c[0].paused||(v=!0,h=!1,s=setTimeout(F,t.stepFreq)),i.data(n,!0)},k=function(){m>=l.length-1?t.loop&&P(0):P(m+1)},O=function(){e.cookie&&e.cookie("ap-status",(c[0].paused?"0":"1")+"::"+(c[0].currentTime||0)+"::"+(
21h||v||c[0].paused?y:c[0].volume)+(m?"::"+m:""))};if(i.data("src"))l=i.data("src").split("::");else{if(!t.hasOwnProperty("src"))return;l="string"==typeof t.src?t.src.split("::"):t.src}t.saveStatus&&function(){if(e.cookie){let o=e.cookie("ap-status");o&&(o=o.split("::"),t.autoPlay="1"===o[0],t.startTime=parseFloat(o[1]||0),y=t.volume=parseFloat(o[2])||.2,((m=parseInt(o[3]||0,10))<0||m>l.length)&&(m=0))}}(),function(){if(d=t.hasOwnProperty("target")?e("#"+t.target):e("<div>",{class:t.playerHook}),(c=e("<audio>",{preload:"auto",controls:!0,controlsList:"nofullscreen nodownload noremote"}).appendTo(d))[0].pause(),i.data(n,!0),f=e("<source>",{src:a+l[m]}).appendTo(c),setTimeout(function(){c.on("ended."+o,function(){return k(),!0}),c.on("pause."+o,function(){i.data(n,!0),i.removeClass("active"),typeof t.onPaused===FUNCTION&&t.onPaused.call(i)}),c.on("playing."+o,function(){i.data(n,!1),0===c[0].volume&&(c[0].volume=y||t.volume),i.addClass("active"),typeof t.onPlaying===FUNCTION&&t.onPlaying.call(i)}),c.on("volumechange."+o,function(){h||v||(y=c[0].volume)})},100),l.length){p=e("<ul>",{class:t.playListHook}).appendTo(d);for(var r=0;r<l.length;r++)p.append(e("<li>").append(e("<a>",{text:decodeURIComponent(l[r].replace(/\.[^\.]*$/,""))}).on("click."+o,function(t){var o=p.children().index(e(t.target).parent());return P(o),!1})));p.children().eq(m).addClass("active")}}(),t.hasOwnProperty("target")&&(u=e("#"+i.data("rel"))),u.length?u.append(d):i.addTooltip(d,{pos:t.pos,delay:500}),i.on("click."+o,function(){return!(!u.length||u.is(":hidden"))||(i.data(n)?C():w(),!1)}),i.on("removePlayer."+o,function(){d.trigger("removeTooltip"),d.add(i).off("."+o),d.remove()}),i.on("startPlayer."+o,P),i.on("pausePlayer."+o,g),i.on("togglePlayer."+o,function(){c[0].paused?P():g()}),i.on("fadeInPlayer."+o,C),i.on("fadeOutPlayer."+o,w),i.on("fadeTogglePlayer."+o,function(){h||!c[0].paused?w():C()}),i.data("slideshowControl",t.slideshowControl),setTimeout(function(){c[0].volume=t.volume,t.hasOwnProperty("startTime")&&(c[0].currentTime=t.startTime),t.autoPlay&&C(),e(window).on("pagehide."+o,O)},50)})},e.fn.audioPlayer.defaults={autoPlay:!0,loop:!0,volume:.25,stepFreq:30,step:.02,saveStatus:!0,playerHook:"player",playListHook:"play-list",folder:"res",rootPath:"",pos:[1,2,1,0],onPlaying:null,onPaused:null}}(jQuery);
22!function(e){"use strict";e.fn.addMap=function(t){t=e.extend({},e.fn.addMap.defaults,t);var n=L.icon({iconUrl:[t.resPath,"normalpin.png"].join("/"),iconSize:[24,30],iconAnchor:[12,30],shadowUrl:[t.resPath,"pinshadow.png"].join("/"),shadowSize:[30,30],shadowAnchor:[12,30]}),o=L.icon({iconUrl:[t.resPath,"activepin.png"].join("/"),iconSize:[24,30],iconAnchor:[12,30],shadowUrl:[t.resPath,"pinshadow.png"].join("/"),shadowSize:[30,30],shadowAnchor:[12,30]});return this.each(function(){var a=e(this),r=a.data("map_ns");if(typeof r===UNDEF){a.data("map_ns",r="map_"+Math.floor(1e4*Math.random())),this.id||(this.id=r);var s,i,l=e.extend({},t,readData(a,"location,type,zoom,label,markers,overlay,current")),h=[],d=-1,c=!1,p=!1,f=function(e,t){(t=typeof t===UNDEF?-1:typeof t===NUMBER?t:function(e){for(var t=0;t<h.length;t++)if(h[t].link===e)return t;return-1}(t))!==d&&(d>=0&&h[d].setIcon(n),t>=0&&t<h.length&&h[t].setIcon(o),d=t)},m=function(){s.invalidateSize(),l.fitBounds&&c&&!p&&u(),-1!==d&&s.setView(h[d].getLatLng())},u=function(){a.is(":visible")&&(s.fitBounds(i,{maxZoom:l.zoom}),setTimeout(function(){p=!0},200))},g=function(){h&&h.length&&d>=0&&(h[d].setIcon(n),d=-1),l.fitBounds&&c?u():h&&h.length&&s.setView(h[0].getLatLng())},y=function(){if(h&&h.length){var e=h.indexOf(this);d>=0&&h[d].setIcon(n),this.setIcon(o),d=e}typeof l.onMarkerClick===FUNCTION&&l.onMarkerClick.call(this)},k=function(e,t){var n=new XMLHttpRequest;n.open("GET",e[0],!0),n.onreadystatechange=function(){if(4===n.readyState&&200===n.status){for(var o=n.responseXML.getElementsByTagName("trkpt"),a=[],r=0;r<o.length;r++)a.push([parseFloat(o[r].getAttribute("lat")),parseFloat(o[r].getAttribute("lon"))]);if(a.length){var l=L.polyline(a,{color:"#FF0000",weight:3}).addTo(s);s.fitBounds(l.getBounds()),i.extend(l.getBounds()),c=!0}e.length>1?k(e.slice(1),t):typeof t===FUNCTION&&t.call(null)}},n.send()},w=function(){if(!a.data("rendered")){var e,t=10,o=null,r=function(e){clearTimeout(o),e<l.markers.length?(l.markers[e].hasOwnProperty("latLng")&&(h[e]=L.marker(l.markers[e].latLng,{icon:n,title:l.markers[e].hasOwnProperty("title")?l.markers[e].title:""}).addTo(s),l.markers[e].hasOwnProperty("link")&&(h[e].link=l.markers[e].link,h[e].on("click",y))),o=setTimeout(r,t,e+1)):l.markers.length>1&&u()},d=function(){if(l.hasOwnProperty("markers")){if(t=Math.minMax(10,Math.round(1e3/l.markers.length),100),l.markers.length>1){for(var e=0;e<l.markers.length;e++)i.extend(l.markers[e].latLng);c=!0,s.fitBounds(i)}
22else s.setZoom(l.zoom),s.setView(l.markers[0].latLng);r(0)}};i=L.latLngBounds(),e=a.parents(":hidden"),a.is(":hidden")&&e.add(a),e.each(function(){this.style.display="block",this.style.visibility="hidden"}),setTimeout(function(){if(s=new L.Map(a[0],{zoom:l.zoom,scrollWheelZoom:l.enableScrollWheel,zoomControl:l.zoomControl}),L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(s),l.hasOwnProperty("markers"))for(var t=0;t<l.markers.length;t++)l.markers[t].hasOwnProperty("pos")&&!l.markers[t].hasOwnProperty("latLng")&&(n=l.markers[t].pos.split(","),l.markers[t].latLng={lat:parseFloat(n[0]),lng:parseFloat(n[1])});else if(l.hasOwnProperty("location")){var n=l.location.split(",");l.markers=[{latLng:{lat:parseFloat(n[0]),lng:parseFloat(n[1])}}]}else l.hasOwnProperty("overlay")||(console.log("Error in AddMap: Nothing to display on the map!"),l.markers=[{latLng:{lat:0,lng:0}}]);l.hasOwnProperty("overlay")?k(l.overlay.split(","),d):l.markers&&d(),e&&e.each(function(){this.style.display="",this.style.visibility=""}),a.data("rendered",!0),a.on({setActive:f,resetMarkers:g,refresh:m})},20)}};!async function(){l.autoLoad&&w(),a.on("render",w)}()}})},e.fn.addMap.defaults={zoom:15,fitBounds:!0,zoomControl:!0,enableScrollWheel:!1,autoLoad:!0}}(jQuery);
23!function(e,t,o){"use strict";var a=jQuery("body");e.fn.lightbox=function(n,i){if(typeof n===UNDEF)return this;i=e.extend({},e.fn.lightbox.defaults,i);var s,l,r,c,d,u,p,h,m,f,g,b,C,v,w,T,y,x,S,O,P,A,k,I,E,D,N=e(this),F=getTranslations(e.fn.lightbox.text),M=e([]),L=e(),V=e(),R=e(),U=e(),z=e(),B=e(),H=e(),G=e(),q=e(),Z=!0,W=!1,j=!1,K=!1,_=!1,Y=!1,Q=!1,X=!1,$=!1,ee=null,te=!1,oe=i.slideshowDelay,ae=i.transitionSpeed,ne=null,ie=null,se=null,le=null,re=!1,ce=i.maxZoom,de=i.fitImages,ue=i.thumbsVisible,pe=i.captionVisible,he=-1,me=0,fe=0,ge=i.fitPadding,be=N.data("llb_ns"),Ce=!!i.hasOwnProperty("extraSizes")&&i.extraSizes.split(/,\s*/),ve=e("[data-audioplayer]"),we=function(){return"screen"!==i.fitBetween&&i.thumbsVisible&&M.length>1&&m&&m.length?m[0].clientHeight:0},Te=function(){return"screen"!==i.fitBetween&&d.hasClass(i.captionVisibleClass)&&B&&B.length?B[0].offsetHeight:0},ye=function(e){i.useZoom&&i.zoomSlider?(de=!0,Ae(l=l>50?0:100)):de=!de,typeof e===UNDEF?De(!0):De(!0,e)},xe=function(e,t){l=e,Ae(e),typeof t===UNDEF?De(!0):De(!0,t)},Se=function(e,t){var o=i.zoomSlider?Pe():l;o<100&&(o=Math.min(100,o+(typeof e!==UNDEF?e:25))),typeof t===UNDEF?xe(o):xe(o,t)},Oe=function(e,t){var o=i.zoomSlider?Pe():l;o>0&&(o=Math.max(0,o-(typeof e!==UNDEF?e:25))),typeof t===UNDEF?xe(o):xe(o,t)},Pe=function(){return parseInt(T.val())},Ae=function(e){T.val(e)},ke=function(e,t){i.zoomSlider?e||t?(d.addClass("show-zoom-level"),0===l?C.removeClass("icon-zoom-out icon-zoom-level").addClass("icon-zoom-in"):100===l?C.removeClass("icon-zoom-in icon-zoom-level").addClass("icon-zoom-out"):C.removeClass("icon-zoom-in icon-zoom-out").addClass("icon-zoom-level")):d.removeClass("show-zoom-level"):(d.toggleClass("show-zoom-out",t),d.toggleClass("show-zoom-in",e&&!t))},Ie=function(e){E.html(e>=1e3?Math.round(e/1e3)+"s":e+"ms")},Ee=function(){var e=[d.width(),d.height()];return[e[0]-2*ge,e[1]-Math.max(we(),ge)-Math.max(Te(),ge)]},De=function(e,t,o){var a=M.eq(he).data(J.OBJ),s=[d.width(),d.height()],r=n.getDimensions(a),u=n.getMaxDimensions(a),p=Y||K||_||"all"===i.fitBetween&&!i.autohideControls?G[0].clientHeight:0,h=we(),m=Te(),f=function(e){return i.autoPano&&(e[0]/e[1]>i.horzPanoThreshold||e[0]/e[1]<i.vertPanoThreshold)},g=function(e){return e[0]/s[0]>=i.panoramaAutoDetect||e[1]/s[1]>=i.panoramaAutoDetect},b=function(e,t){return[e[0]*t,e[1]*t]},C=function(e){return Math.max((s[0]-2*ge-2*c)/e[0],(s[1]-Math.max(h+p,ge)-Math.max(m,ge)-2*c)/e[1])},v=function(e){return Math.min((s[0]-2*ge-2*c)/e[0],(s[1]-Math.max(h+p,ge)-Math.max(m,ge)-2*c)/e[1])};if(typeof c===UNDEF&&(c=parseInt(V.css("paddingTop"))),typeof ge===UNDEF&&(ge=0),typeof l!==UNDEF&&null!==l||(l=de?0:100,i.useZoom&&i.zoomSlider&&Ae(l)),Y||K||_||j&&U.hasClass("default")){var w=Math.max(h+(Y||K||_?p:0),ge),T=Math.max(m,ge),y=s[0]-2*ge,x=s[1]-(w+T);if(_)r[0]<y&&r[1]<x&&(y=Math.min(r[0],y)+2*c,x=Math.min(r[1],x)+2*c);else if(j)if(r[0]>y||r[1]>x){var S=Math.min(y/r[0],x/r[1]);y=r[0]*S,x=r[1]*S}else y=r[0],x=r[1];V.data("fitted",!0).css({display:"block",width:y,height:x,transition:"none",transform:"matrix(1,0,0,1,"+Math.round((0-y)/2)+","+Math.round((w-T-x)/2)+")",opacity:1}),i.useZoom&&ke(!1,!1),typeof o===FUNCTION&&o.call(null)}else{var O,P,A,k,I,E=V.getMatrix(),D=!1;if(d.data("panomove")&&V.trigger("autopanoStop"),O=Math.min(1,v(r)),P=W||j?Math.min(ce,v(r)):u&&u[0]>r[0]?Math.max(1,u[0]/r[0]):ce,O>P){var N=O;O=P,P=N}if(i.useZoom&&i.zoomSlider?V.data("inited")?(k=b(r,A=O+l*(P-O)/100),D=A==O,I=!!d.data("hasAutoPano")):(X||f(r)?(k=b(r,A=Math.min(P,C(r))),I=g(k),D=!0):i.fitImages?(k=b(r,A=Math.min(P,v(r))),I=!1,D=!0):(k=r,I=!1,D=(A=1)==O),l=100*Math.minMax(0,(A-O)/(P-O),1),Ae(l)):X||f(r)?(k=b(r,A=Math.min(ce,de?C(r):v(r))),I=g(k),D=de):(D=(A=V.data("inited")?de?Math.min(1,v(r)):P:(de=i.fitImages)||W||j?Math.min(ce,v(r)):1)==O,k=b(r,A)),Z&&!D&&(u[0]>r[0]||u[1]>r[1])&&(k[0]>r[0]||k[1]>r[1])&&(!V.data("lastDims")||V.data("lastDims")[0]<k[0])&&(V.data("optSource",n.getOptimalImagePath(a,k,i.displayOriginals)),V.data("lastDims",k)),k=[k[0]+2*c,k[1]+2*c],E[0]=E[3]=1,!V.data("inited")||!I&&D)V.data("inited",!0),E[4]=0-k[0]/2,E[5]=0-k[1]/2+(D?(Math.max(h+p,ge)-Math.max(m,ge))/2:0);else{var F=(k[0]-2*c)/V.width(),x=V.height();if(typeof t!==UNDEF&&t){var L=t.x-s[0]/2,R=t.y-s[1]/2;E[4]=L-(L-E[4])*F,E[5]=R-(R-E[5])*F}else E[4]*=F,E[5]*=F}Z&&I&&(V.data("hasAutoPano")||D&&(k[0]>s[0]+10||k[1]>s[1]+10)&&(k[0]/k[1]>s[0]/s[1]?E[4]-=i.autoPanoStart*(k[0]-s[0])/2:E[5]-=i.autoPanoStart*(k[1]-s[1])/2));var B=null,H=function(){if(V.data("optSource")){var e=V.children("img").eq(0);e.length&&(e.attr("src",V.data("optSource")),console.log("src replaced: "+e.attr("src")),V.removeData("optSource"))}!Z||!I||typeof t!==UNDEF&&t||(V.data("hasAutoPano")?V.trigger("autopanoAdjust"):V.autopano({direction:-i.autoPanoStart||fe,speed:i.autoPanoSpeed})),W&&i.videoAuto&&z[0].paused&&playVideo(z[0])},q=function(){clearTimeout(B),typeof o===FUNCTION?o(H):H()};V.css({display:"block",transition:e?"transform "+i.transitionProps+", width "+i.transitionProps+", height "+i.transitionProps:"none"}),e&&(V.one("transitionend",q),B=setTimeout(q,320)),V.data({fitted:D,minRatio:O,maxRatio:P}).css({transform:"matrix("+E.join(",")+")",width:k[0],height:k[1]}),i.useZoom&&(P>A?ke(!0,!1):O<A?ke(!1,!0):ke(!1,!1)),e||(B=setTimeout(q,20))}},Ne=function(){var e=d.find("."+i.regionsClass);return e.length&&(i.regionsVisible=!i.regionsVisible,e.is(":visible")?e.fadeOut():e.fadeIn()),!1},Fe=function(t){var o="touch"===e("html").data("whatinput")||"touchend"===t.type;if(W||j){var a=z[0];return a.paused?(a.play(),"ms"!==VEND&&(a.controls=!1),o&&(st(),d.hasClass(i.thumbsVisibleClass)&&ct(),d.hasClass(i.captionVisibleClass)&&ut())):(a.pause(),"ms"!==VEND&&(a.controls=!0),o&&("togglecontrols"===i.clickAction?st():"toggleall"===i.clickAction&&(o&&d.hasClass(i.controlsHideClass)?d.removeClass(i.
23controlsHideClass):pt()))),!1}Z&&("nextimage"===i.clickAction?(getCoords(t).x-V.position().left>V.width()/2?mt():ht(),o&&nt()):"togglecontrols"===i.clickAction?st():"toggleall"===i.clickAction&&(o&&d.hasClass(i.controlsHideClass)?d.removeClass(i.controlsHideClass):pt()))},Me=function(){R.length&&(R.remove(),R=e())},Le=function(t){switch(i.transitionType){case"crossFadeAndSlide":var o=(a=V.getMatrix())[4];fe&&(a[4]+=100*fe,V.css({transition:"none",transform:"matrix("+a.join(",")+")"})),window.requestAnimationFrame(function(){if(R.length&&R!==V)if("swipe"===R.data("swipe"))setTimeout(Me,ae/2);else{var e=R.getMatrix();e[4]-=100*fe,R.one("transitionend",Me).css({transition:"transform "+ae/2+"ms ease-out, opacity "+ae/2+"ms ease-out"}).css({transform:"matrix("+e.join(",")+")",opacity:0})}V.one("transitionend",function(){Je(t)}),setTimeout(function(){fe?(a[4]=o,V.css({transition:"transform "+ae+"ms ease-out, opacity "+ae+"ms ease-out"}).css({transform:"matrix("+a.join(",")+")",opacity:1})):V.css({transition:"transform "+ae+"ms ease-out, opacity "+ae+"ms ease-out"}).css({opacity:1})},TOUCHENABLED?350:50)});break;case"crossFadeAndZoom":var a=V.getMatrix(),n=a[0],s=a[3];fe&&(a[0]*=1-fe/40,a[3]*=1-fe/40,V.css({transition:"none",transform:"matrix("+a.join(",")+")"})),window.requestAnimationFrame(function(){if(R.length&&R!==V)if("swipe"===R.data("swipe"))setTimeout(Me,ae/2);else{var o=R.getMatrix();o[0]*=1+fe/20,o[3]*=1+fe/20,R.one("transitionend",function(){R.remove(),R=e()}).css({transition:"transform "+ae/2+"ms ease-out, opacity "+ae/2+"ms ease-out",transform:"matrix("+o.join(",")+")",opacity:0}
23)}V.one("transitionend",function(){Je(t)}),setTimeout(function(){fe?(a[0]=n,a[3]=s,V.css({transition:"transform "+ae+"ms ease-out, opacity "+ae+"ms ease-out",transform:"matrix("+a.join(",")+")",opacity:1})):V.css({transition:"transform "+ae+"ms ease-out, opacity "+ae+"ms ease-out",opacity:1})},TOUCHENABLED?350:50)});break;default:V.css({transition:"none",opacity:0}),window.requestAnimationFrame(function(){R.length&&R!==V&&("swipe"===R.data("swipe")?setTimeout(Me,ae/2):R.one("transitionend",function(){R.remove(),R=e()}).css({transition:"opacity "+ae/2+"ms ease-out",opacity:0})),V.one("transitionend",function(){Je(t)}).css({transition:"opacity "+ae+"ms ease-out",opacity:1})})}},Je=function(e){typeof e===FUNCTION&&e.call(),typeof i.onLoadEnd===FUNCTION&&i.onLoadEnd(M.eq(he)),i.preloadNext&&function(){var e;fe<0&&he>0?e=M.eq(he-1).data(J.OBJ):he<M.length-1&&(e=M.eq(he+1).data(J.OBJ)),e&&"image"===e[J.CATEGORY]&&((new Image).src=n.getOptimalImagePath(e,Ee(),i.displayOriginals))}()},Ve=function(){if(!(--me>0)){if(p.hide(),DEBUG){var t=new Date;_||Y?console.log((_?"External content":"360 player")+" loaded: "+(t-r)+"ms"):U.length&&(console.log((W||j?"Media":"Image")+" ["+he+"] loaded: "+(t-r)+'ms src="'+U[0].src+'"'),typeof U[0]!==UNDEF&&typeof z[0]!==UNDEF||console.log("Premature "+(typeof U[0]===UNDEF?"loadImage.done("+U[0].src+")":"loadMedia.done("+z[0].src+")")))}if(typeof window.gtag===FUNCTION){var o=W||j?z[0].src:Y?V.children().eq(0).data("src"):U[0].src,a=o.getDir().replace(/^(https?\:\/\/[^\/]+\/)/,"");window.gtag("event","image_view",{image_name:o,album_name:a,image_index:he+1})}(Z||W||j)&&i.rightClickProtect&&z.on("contextmenu",function(e){return e.preventDefault(),!1}),(W||j)&&(z.attr({autoplay:i.videoAuto,loop:i.videoLoop}),z[0].volume=i.volume,z.on("volumechange."+be,function(){i.volume=this.volume})),H.length&&(H.find(".buttons a").trigger("removeTooltip"),H.length>1&&(H.eq(-1).prevAll("."+i.lightboxCaptionClass).remove(),H=d.find("."+i.lightboxCaptionClass)),d.hasClass(i.captionVisibleClass)?H.one("transitionend",function(){H.remove(),H=e()}).css({transition:"opacity "+ae/2+"ms ease-out",opacity:0}):H.remove()),Y||Q||W||_&&V.children("iframe").length?V.on("click."+be+" "+TOUCH.END+"."+be,function(e){V.data("clickhandled")||(V.data("swipe","click"),V.data("clickhandled",!0),setTimeout(function(){V.removeData("clickhandled")},200),Fe(e))}):V.swipe({avoidNavigationOnZoomed:i.avoidNavigationOnZoomed,onSwipeStart:function(){e(this).trigger("autopanoStop"),e(this).hideAllTooltips()},onSwipedLeft:function(){V.data("swipe","swipe"),mt()},onSwipedRight:function(){V.data("swipe","swipe"),ht()},onSwipedDown:function(){V.data("swipe","down"),ze()},onPinchZoom:function(t){V.data("swipe","pinch"),d.data("panomove")&&(t.preventDefault(),e(this).trigger("autopanoStop")),function(e,t){if(i.useZoom&&i.zoomSlider){if(1===e)return;var o=V.data("minRatio")||1,a=V.data("maxRatio")||1.4,n=o+l*(a-o)/100;n=Math.minMax(o,n*e,a),l=(n-o)/(a-o)*100,Ae(e),ke(l<50,l>=50)}}(V.getScale()[0],getCoords(t))},onFinished:function(){$||(e(this).trigger("removeSwipe"),e(this).remove())},onClick:function(t){d.data("panomove")?(V.data("swipe","panostop"),t.preventDefault(),e(this).trigger("autopanoStop")):(V.data("swipe","click"),Fe(t))},onRightClick:function(e){Ke(!0)},onDoubleClick:i.useZoom&&i.doubleClickZoom?function(e){var t=getCoords(e);V.data("swipe","doubleclick"),i.zoomSlider?l<100?Se(50,t):xe(0):ye(t)}:null}),De(!1,null,function(e){Le(e)}),W&&i.videoAuto&&z[0].paused&&playVideo(z[0]),ee||te?(j||W)&&i.videoAuto?(_e(),z[0].onended=function(){je()}):(clearTimeout(ee),ee=setTimeout(mt,oe),I&&(I.show(),function(e){var t=20/oe,o=function(e){I.css("width",100*e+"%"),e<1&&(e=Math.min(1,e+t),le=setTimeout(o,20,e))};clearTimeout(le),le=setTimeout(o,20,0)}())):i.autohideControls&&it()}},Re=function(e){if("swipe"===(e=e||V).data("swipe")){var t=V.getMatrix();t[4]=-V.width()/2,e.one("transitionend",function(){e.data("swipe",null)}).css({opacity:1,transition:"opacity "+2*i.transitionSpeed+"ms ease-out, transform "+2*i.transitionSpeed+"ms ease-out",transform:"matrix("+t.join(",")+")"})}},Ue=function(o,l){var c;if("number"!=typeof o&&(o=M.index(o)),$=!1,o<0||o>=M.length)if(o<0)switch(i.afterLast){case"donothing":$=!0,o=0,"swipe"===V.data("swipe")&&Re();break;case"startover":o=M.length-1;break;case"onelevelup":i.level&&(window.location.href="../"+i.indexName),o=0;break;case"nextfolder":i.baseSet&&i.previousFoldersLast?window.location.href=i.previousFoldersLast:(o=0,"swipe"===V.data("swipe")&&Re());break;case"nextindex":i.baseSet&&i.previousFolderPath?window.location.href=i.previousFolderPath:(o=0,"swipe"===V.data("swipe")&&Re());break;default:return o=0,void ze()}else switch(i.afterLast){case"donothing":$=!0,o=M.length-1,Ke(),"swipe"===V.data("swipe")&&Re();break;case"startover":o=0;break;case"onelevelup":i.level&&(window.location.href="../"+i.indexName),o=M.length-1,Ke();break;case"nextfolder":i.baseSet&&i.nextFoldersFirst?window.location.href=i.nextFoldersFirst+(ee?"&slideshow":""):(o=M.length-1,Ke(),"swipe"===V.data("swipe")&&Re());break;case"nextindex":i.baseSet&&i.nextFolderPath?window.location.href=i.nextFolderPath:(o=M.length-1,Ke(),"swipe"===V.data("swipe")&&Re());break;case"ask":var u=Ke(),h=new Array;return $=!0,"swipe"===V.data("swipe")&&Re(),o=M.length-1,M.length>1&&h.push({t:F.startOver,c:"icon-loop",h:function(e){Ue(0)}}),i.level&&h.push({t:i.level?F.upOneLevel:i.homepageLinkText||F.backToHome,c:"icon-one-level-up",h:function(){window.location.href="../"+i.indexName}}),h.push({t:F.backToIndex,c:"icon-arrow-up",h:function(){ze()}}),i.baseSet&&(i.nextFoldersFirst&&h.push({t:F.nextFolder,c:"icon-arrow-right",h:function(){window.location.href=i.nextFoldersFirst+(u?"&slideshow":"")}}),i.nextFolderPath&&h.push({t:F.nextIndex,c:"icon-thumbnails",h:function(){window.location.href=i.nextFolderPath}})),void d.modal(e("<p>",{class:"text-center",text:F.atLastPageQuestion}),h,{onClose:function(){Ue(M.length-1)},class:"secondary",icon:"info",title:F.atLastPage});default:return o=ee?0:M.length-1,Ke(),void ze(M[0])}if(d.is(":visible")){if(fe=Math.abs(o-he)>=M.length-1&&"startover"===i.afterLast?1:he>o?-1:he<o?1:0,he===o)return;V.hideAllTooltips(),i.autoHideControls&&it()}else re=!0,a.add(e("html")).css("overflow","hidden"),a.addClass(i.lightboxOnClass),fe=0,!isFullscreen()&&i.lightboxFullscreen&&SMALLSCREEN===i.lightboxFullscreenOnlyMobiles&&requestFullscreen(),i.useRating&&function(e){he>
23=0&&(typeof e===UNDEF&&(e=M.eq(he).data(J.OBJ)[J.VISITORRATING]||0),d.find("."+i.lightboxCaptionClass+" .ratingbox span").removeClass("r0 r1 r2 r3 r4 r5").addClass("r"+e))}(),d.css({display:"block",visibility:"visible",transition:"opacity "+i.transitionSpeed+"ms ease-out"}).one("transitionend",function(){i.autoStart&&We()}).css("opacity",1),bt(Ct);d.find(".modal").trigger("destroy"),he=o,L=M.eq(he),c=L.data(J.OBJ),i.useThumbstrip&&M.length>1&&gt(),c?(p.show(),I&&(clearTimeout(le),I.hide()),function(e){if(W=j=K=Z=Y=Q=X=!1,_=e.hasOwnProperty(J.EXTERNAL),Y=!_&&i.use360Player&&(e.hasOwnProperty(J.PROJECTIONTYPE)&&"equirectangular"===e[J.PROJECTIONTYPE]||"video"===e[J.CATEGORY]&&e.hasOwnProperty(J.PANORAMA)&&e[J.PANORAMA]),!_&&!Y)switch(e[J.CATEGORY]){case"video":W=!0;break;case"audio":j=!0;break;case"other":K=!0,Q="pdf"===n.getExtension(e).toLowerCase();break;default:Z=!0,X=e.hasOwnProperty(J.PANORAMA)&&e[J.PANORAMA]||i.autoPano&&(e[J.IMAGE][J.WIDTH]>d.width()||e[J.IMAGE][J.HEIGHT]>d.height())&&(e[J.IMAGE][J.WIDTH]/e[J.IMAGE][J.HEIGHT]>i.horzPanoThreshold||e[J.IMAGE][J.WIDTH]/e[J.IMAGE][J.HEIGHT]<i.vertPanoThreshold)}}(c),function(e){oe=e.hasOwnProperty(J.SLIDESHOWINTERVAL)?e[J.SLIDESHOWINTERVAL]:i.slideshowDelay,ae=e.hasOwnProperty(J.TRANSITIONSPEED)?e[J.TRANSITIONSPEED]:i.transitionSpeed}(c),typeof l===FUNCTION&&l.call(this),setTimeout(function(){if(R=d.find("."+i.lightboxMainClass),H=d.find("."+i.lightboxCaptionClass),R.length&&(R.trigger("autopanoRemove").off("."+be).removeClass(i.currClass),i.muteBackgroundAudio&&(j||W)&&qe(),at(R),Xe(),R.off("click.nonimage")),me=1,r=new Date,V=e("<div>",{class:"lightbox-main "+i.currClass+" "+(_?"external":Y?"vr":Q?"pdf":c[J.CATEGORY])}).css({opacity:0,transform:"matrix(1,0,0,1,-50%,-50%)"}).appendTo(d),(i.hasOwnProperty("shop")&&n.hasShop(c)||i.hasOwnProperty("feedback")&&i.feedback.root&&!n.disableFeedback(c))&&(V.append(e("<a>",{class:i.checkboxClass+(L.hasClass(i.selectedClass)?" "+i.checkmarkClass:"")}).on("click",function(){return e(this).toggleClass(i.checkmarkClass),L.trigger("toggleCard"),!1})),i.hasOwnProperty("shop")&&n.hasShop(c)?V.append(e("<a>",{class:"icon-shopping-cart-add add-cart-btn"}).addTooltip(F.addCart,{pos:[0,1,2,1]}).on("click",function(e){return ee&&(_e(),i.shop.root.trigger("onClose",function(){te&&je(),i.shop.root.trigger("onClose",null)})),i.shop.root.trigger("addItems",c),!1})):V.append(e("<a>",{class:"icon-email-send add-cart-btn",text:" "+i.feedbackAddBtnLabel}).on("click",function(e){return ee&&(_e(),i.feedback.root.trigger("onClose",function(){te&&je(),i.feedback.root.trigger("onClose",null)})),i.feedback.root.trigger("addItems",c),!1}))),Y){var o=Math.round(d.width()-2*ge),a=Math.round(d.height()-2*ge);V.css({width:o,height:a}).attr("id","vr"+he).addClass("vr").show().one("DOMReady",Ve),typeof PhotoSphereViewer!==UNDEF?setTimeout(function(){var t,o,a={container:V[0]};"video"===c[J.CATEGORY]?(a.panorama=n.getVideoPath(c),a.adapter=PhotoSphereViewer.EquirectangularVideoAdapter,a.plugins=[PhotoSphereViewer.VideoPlugin,{}],a.navbar=["zoom","fullscreen"]):(a.panorama=n.getOriginalPath(c)||n.getImagePath(c),a.navbar=["autorotate","zoom","fullscreen"],i.autoRotate360&&i.rotateSpeed360&&(a.autorotateDelay=1e3),a.autorotateSpeed=i.rotateSpeed360+"rpm"),(o=c.gpano)&&(o.fov&&(a.defaultZoomLvl=o.fov),(o.pan||o.tilt||o.roll)&&(a.sphereCorrection={pan:Math.PI*o.pan/180,tilt:Math.PI*o.tilt/180,roll:Math.PI*o.roll/180})),t=new PhotoSphereViewer.Viewer(a),e(t.container).data("src",a.panorama),setTimeout(Ve,100)},50):console.log('Fatal Error: Missing "photo-sphere-viewer.min.js"!')}else if(Z)z=U=e("<img>").appendTo(V),DEBUG&&console.log("Loading image ["+he+'] src="'+n.getOptimalImagePath(c,Ee(),i.displayOriginals)+'"'),U[0].complete&&U[0].naturalWidth>0?Ve():U.one("load."+be,function(e){Ve()}),U[0].src=n.getOptimalImagePath(c,Ee(),i.displayOriginals);else if(j||W){if(W){var l=n.getVideoDuration(c);z=U=e("<video>",{preload:"auto",controlsList:"nodownload",poster:n.getPosterPath(c)}),null===l||l>=2e3?z[0].controls="true":z[0].loop="true"}else{var u=n.getPosterPath(c);me=2,U=e("<img>",{class:"poster"+(u.endsWith("poster.png")?" default":"")}).one("load",function(e){Ve()}).attr("src",u).appendTo(V),z=e("<audio>",{preload:"auto",controls:"true",controlsList:"nofullscreen nodownload"})}z.one("loadedmetadata",function(e){Ve()}).attr("src",n.getSourcePath(c)).appendTo(V),z.on({playing:et,pause:tt,ended:ot})}else if(_){var p=c[J.EXTERNAL].cont,h=c[J.EXTERNAL].size;h&&(h=h.split("x"),V.data({oWidth:parseInt(h[0]),oHeight:parseInt(h[1])})),V.one("DOMReady",function(e){Ve()}),p.match(/^https?\:\/\//i)||p.match(/\.html?$/i)||p.match(/^\.\.\//)?V.addClass("iframe").append(e("<iframe>",{width:"100%",height:"100%",src:p,frameborder:0,allowfullscreen:"allowfullscreen"})):(p.match(/^<iframe/i)&&V.addClass("iframe"),V.append(p)),setTimeout(Ve,200)}else{var m=function(t,o){t.append(e("<div>",{class:"icon",html:'<a href="'+n.getSourcePath(o)+'" target="_blank"><img class="other" src="'+n.getImagePath(o)+'"></a><p class="icon-external"> '+F.clickToOpen+"</p></div>"}))};if(Q&&HASPDFVIEWER&&!ISIOSDEVICE){var f=e("<object>",{type:"application/pdf"}).attr("data",n.getSourcePath(c));
23m(f,c),V.append(f),setTimeout(Ve,400)}else if(i.useGoogleDocs&&!LOCAL&&".docx.xlsx.txt.pdf".indexOf("."+(c.hasOwnProperty(J.ORIGINAL)?c[J.ORIGINAL][J.PATH]:c[J.NAME]).getExt())>=0){V.addClass("iframe");var g=e("<iframe>",{width:"100%",height:"100%",frameborder:0,allowfullscreen:"allowfullscreen"}).appendTo(V);setTimeout(function(e,t){e.attr("src","https://docs.google.com/viewer?url="+window.location.href.getDir()+n.getSourcePath(t)+"&embedded=true"),setTimeout(Ve,400)},100,g,c)}else m(V,c),Ve()}!function(o){B=e("<div>",{class:[i.lightboxCaptionClass,"scrollable",ee||te?"slideshow":"",i.infoPanelAdapt?"adapt-width":"fixed-width"].filter(Boolean).join(" ")});var a,l=e("<div>",{class:"caption"}),r=e("<div>",{class:"buttons"}),c=i.buttonLabels;if(o[J.IMAGECAPTION]&&l.append(o[J.IMAGECAPTION]),_||!o[J.PHOTODATA]||i.metaAsPopup||l.append(e("<div>",{class:"photodata",html:o[J.PHOTODATA]})),l.is(":empty")?B.addClass("no-caption"):(l.find("[data-tooltip]").addTooltip(),B.append(l)),i.useRating){var u=o[J.RATING]||0;if(i.visitorRating||u){var p;(s=e("<div>",{class:"ratingbox"}).appendTo(r)).append(e("<label>",{html:F.rating})),p=e("<span>",{class:"rating",html:STARS}).appendTo(s),i.visitorRating?(o.hasOwnProperty(J.VISITORRATING)?u=o[J.VISITORRATING]:(i.useJalbumRating||(u=0),o[J.VISITORRATING]=u),p.addClass("r"+u+(i.useJalbumRating?"":" icon-close")).on("click."+be,function(t){var a=e(this),n=Math.minMax(0,Math.floor((getCoords(t).x-a.offset().left-parseFloat(a.css("paddingLeft")))/16),5);return a.removeClass("r0 r1 r2 r3 r4 r5").addClass("r"+n),o[J.VISITORRATING]=n,N.trigger("refreshRating",M.eq(he)),!1})):p.addClass("r"+u)}}if(!_&&Ce&&"image"===o[J.CATEGORY]){var h=n.getImagePath(o);s=e("<div>",{class:"download icon-download"}).appendTo(r);for(var m=0;m<Ce.length;m++)s.append(e("<a>",{text:Ce[m],href:h.replace("slides/","dl/"+Ce[m]+"/"),download:""}))}if(i.printImage&&"image"===o[J.CATEGORY]&&!i.rightClickProtect&&(s=e("<a>",{class:i.buttonClass+" icon-printer"}).appendTo(r),c&&s.html("<span>"+F.print+"</span>"),ISSEPARATEHOVER||s.data("tooltip",c?F.printLabel:F.print),s.on("click",function(e){printImage(o[J.ORIGINAL]&&i.showDownload?n.getOriginalPath(o):n.getImagePath(o),o[J.TITLE]||"",o[J.THUMBCAPTION]||"")})),!_&&i.showDownload){var f;o[J.ORIGINAL]&&(Z||Q||i.allowDownloadOthers)?f=n.getOriginalPath(o):Z&&i.allowDownloadScaled&&(f=n.getImagePath(o)),f&&(s=e("<a>",{class:i.buttonClass+" icon-download download-btn",href:f,html:c?"<span>"+F.download+"</span>":"",download:""}).appendTo(r),ISSEPARATEHOVER||getFileSize(f,function(e,t){e&&t&&t.addTooltip(c?niceByte(e):F.download+" ["+niceByte(e)+"]")},s))}(a=i.hasOwnProperty("shop")&&n.hasShop(o)&&i.showShop)&&(l=n.getPriceRange(o),l=F.addCart+(l?" <b>"+l+"</b>":""),(s=e("<a>",{class:i.buttonClass+" icon-shopping-cart-add add-cart-btn"}).on("click",function(e){return ee&&(_e(),i.shop.root.trigger("onClose",function(){te&&je(),i.shop.root.trigger("onClose",null)})),i.shop.root.trigger("addItems",o),!1}).appendTo(r)).html("<span>"+l+"</span>").data("tooltip",F.shopLabel),(s=e("<a>",{class:i.buttonClass+" secondary icon-shopping-cart view-cart-btn"}).on("click",function(e){return i.shop.root.trigger("showCart"),!1}).appendTo(r)).html("<span>"+F.viewCart+"</span>").data("tooltip",F.viewCartLabel));if(i.hasOwnProperty("feedback")&&i.feedback.root&&i.showFeedback&&(s=e("<a>",{class:i.buttonClass+" icon-email-send feedback-btn"}).on("click",function(e){return ee&&(_e(),i.feedback.root.trigger("onClose",function(){te&&je(),i.feedback.root.trigger("onClose",null)})),i.feedback.root.trigger("addItems",o),!1}).appendTo(r),c?s.html("<span>"+i.feedbackBtnLabel+"</span>").data("tooltip",i.feedbackBtnTooltip):s.data("tooltip",i.feedbackBtnLabel)),LOCAL&&!DEBUG||!i.hasOwnProperty("fotomoto")||n.hideFotomoto(o)||(s=e("<a>",{class:i.buttonClass+" "+(a?"icon-fotomoto":"icon-shopping-cart")+" fotomoto-btn"}).on("click",function(e){return e.preventDefault(),ee&&Ke(!0),typeof FOTOMOTO!==UNDEF&&FOTOMOTO.API.showWindow(10,n.getOriginalPath(o)||n.getItemPath(o)),!1}).appendTo(r)).html("<span>"+F.fotomotoBtn+"</span>").data("tooltip",F.fotomotoTooltip),!_&&o[J.PHOTODATA]&&i.metaAsPopup&&(s=e("<a>",{class:i.buttonClass+" icon-camera photodata-btn"}).appendTo(r),c?s.html("<span>"+F.metaBtn+"</span>").data("tooltip",F.metaLabel):s.data("tooltip",F.metaBtn),s.on("click",function(){return ee&&_e(),d.modal(e("<div>",{class:"photodata",html:o[J.PHOTODATA]}),{title:F.metaBtn,icon:"camera",onClose:function(){te&&je()}}),!1})),!_&&i.showRegions&&o[J.REGIONS]&&(s=e("<a>",{class:i.buttonClass+" icon-facetag regions-btn"}).appendTo(r),c?s.html("<span>"+(i.regionsBtn||F.regionsBtn)+"</span>").data("tooltip",F.regionsLabel):s.data("tooltip",i.regionsBtn||F.regionsBtn),function(t,o){for(var a,n=e("<div>",{class:i.regionsClass}).appendTo(V),s=0;s<t.length;s++)a=t[s].split(";"),n.append(e("<div>").css({left:100*parseFloat(a[1])+"%",top:100*parseFloat(a[2])+"%",width:100*parseFloat(a[3])+"%",height:100*parseFloat(a[4])+"%"}).append("<span>"+a[0]+"</span>"));n.toggle(typeof o!==UNDEF&&o)}(JSON.parse(o[J.REGIONS]),i.regionsVisible),s.on("click",Ne)),i.showMap&&o[J.LOCATION]&&(s=e("<a>",{class:i.buttonClass+" icon-location map-btn"}).appendTo(r),c?s.html("<span>"+F.mapBtn+"</span>").data("tooltip",F.mapLabel):s.data("tooltip",F.mapBtn),s.on("click",function(){var a=e("<div>",{class:"map-cont"});return ee&&_e(),a.height(t.height()*i.mapHeight),d.modal(a,{class:"no-padding large",onClose:function(){te&&je()}}),setTimeout(function(){i.hasOwnProperty("mapApiKey")&&i.mapApiKey?a.addMap({apiKey:i.mapApiKey,type:i.mapType||"hybrid",zoom:i.mapZoom||16,location:o[J.LOCATION],fitBounds:!1,fullscreenControl:!1,onTypeChanged:function(e){i.mapType=e},onZoomChanged:function(e){i.mapZoom=e}}):a.addMap({resPath:i.resPath,zoom:i.mapZoom||16,location:o[J.LOCATION],fitBounds:!1})},100),!1})),LOCAL||_||!o[J.MOSTPHOTOS]||(s=e("<a>",{class:i.buttonClass+" icon-shopping-cart mostphotos-btn",target:"_blank",href:"https://mostphotos.com/"+o[J.MOSTPHOTOS]}).appendTo(r),c?s.html("<span>"+F.mostphotosBtn+"</span>").data("tooltip",F.mostphotosLabel):s.data("tooltip",F.mostphotosBtn)),(DEBUG||!LOCAL)&&i.share&&i.showShare&&(s=e("<a>",{class:i.buttonClass+" icon-connect share-btn"}).appendTo(r),c?s.html("<span>"+F.share+"</span>").data("tooltip",F.shareLabel):s.data("tooltip",F.share),s.on("click",function(){var t=e("<div>",{class:"social"});return ee&&_e(),d.modal(t,{title:F.shareOn,icon:"connect",onClose:function(){te&&je()}}),setTimeout(function(){t.renderShares({sites:i.share,title:o[J.TITLE]||o[J.NAME].stripExt().replace(/[-_]/g," ").capitalize(),description:o[J.COMMENT],image:n.getOptimalThumbPath(o,[960,640],!1),href:n.getAbsolutePath(o)})},100),!1})),i.showNumbers&&r.prepend(e("<div>",{class:"numbers",html:"<span>"+(he+1)+"&nbsp;</span>/&nbsp;"+M.length})),!j&&o[J.AUDIOCLIP]){s=e("<div>",{class:"audio-clip paused"}).appendTo(r);var g=e("<a>",{class:i.buttonClass+" icon-volume-up audioclip-btn"}).appendTo(s);g.on("click",function(){return g.hasClass("icon-pause")?Xe():Qe(),!1}),q=e("<audio>",{class:"audioclip",src:n.getAudioClipPath(o),controlsList:"nofullscreen nodownload noremote noplaybackrate"}).appendTo(s),o[J.AUDIOCLIP].hasOwnProperty(J.TYPE)&&(q[0].type=o[J.AUDIOCLIP][J.TYPE],o[J.AUDIOCLIP].hasOwnProperty(J.DURATION)&&q.data("duration",o[J.AUDIOCLIP][J.DURATION]));var b=e('<input class="volume" type="range" name="volume" min="0" max="100" value="'+100*i.audioClipVolume+'">');c?(g.append("<span>"+F.play+"</span>").data("tooltip",F.audioClipLabel),s.append(b)):g.data("tooltip",b),b.on("change",function(t){var o=e(this).val();
23typeof o!==UNDEF&&(i.audioClipVolume=o/100),q[0].volume=i.audioClipVolume,savePrefs(i,i.prefsKept,"lb_pref"),typeof i.onVolumeChange===FUNCTION&&i.onVolumeChange(i.audioClipVolume)}),q[0].volume=i.audioClipVolume,i.autoplayAudioClips&&Qe()}else q=e();r.is(":empty")||(B.addClass(i.hasbuttonsClass),B.append(r),r.find(".button").not("[download]").addTooltip()),B.is(":empty")?(d.removeClass(i.captionVisibleClass),d.addClass("no-caption")):(d.toggleClass(i.captionVisibleClass,i.captionVisible),d.removeClass("no-caption"),d.append(B))}(c),typeof i.onLoadStart===FUNCTION&&i.onLoadStart(L)},30)):console.log("Fatal error: image ("+he+") is missing from the database! (Upload data1.json again!)")},ze=function(t){if(Ke(!0),N.hideAllTooltips(),re=!1,a.add(e("html")).css("overflow",""),a.removeClass(i.lightboxOnClass),a.hideAllTooltips(),q.remove(),i.muteBackgroundAudio&&Ze(),V.length){if(d.data("panomove")&&V.trigger("autopanoStop"),(j||W)&&z){var o=z[0].volume,n=ae/(50*o),s=function(){if(z){var e=Math.max(z[0].volume-.02,0);e>.005?(z[0].volume=e,setTimeout(s,n)):z[0].pause()}};z.off("."+be),s()}window.requestAnimationFrame(function(){d.css({transition:"opacity "+i.transitionSpeed+"ms ease-out"}).one("transitionend",function(){d.css("visibility","hidden"),setTimeout(function(){d.css("display","none")},20),SMALLSCREEN||exitFullscreen(),V.length&&(V.remove(),V=e()),B.length&&(B.remove(),B=e())}).css({opacity:0})}),typeof i.onClose===FUNCTION&&(typeof t!==UNDEF?i.onClose(t):i.onClose()),a.hideAllTooltips()}else SMALLSCREEN||exitFullscreen(),typeof i.onClose===FUNCTION&&(typeof t!==UNDEF?i.onClose(t):i.onClose())},Be=function(e){k&&(e?(k.removeClass("icon-play").addClass("icon-pause"),k.children(".lbl").text(F.pauseShort)):(k.removeClass("icon-pause").addClass("icon-play").removeClass("show-progress"),k.children(".lbl").text(F.startSlideshowShort)))},He=function(){ee?Ke():We()},Ge=function(){return ve.length&&!ve.data("paused")},qe=function(){Ge()&&ve.data("muted",!0).trigger("fadeOutPlayer")},Ze=function(){!Ge()&&ve.data("muted")&&ve.data("muted",!1).trigger("fadeInPlayer")},We=function(e){clearTimeout(ee),Be(!0),a.add(d).addClass(i.immerseClass),i.autohideControls&&it(),B.addClass("slideshow"),de=i.fitImages,!0!==e&&i.backgroundAudioSlideshowControl&&ve.trigger("fadeInPlayer"),i.slideshowFullscreen&&requestFullscreen(),requestWakeLock(),ne?(ee=null,te=!0,$e(mt)):(te=!1,ee=setTimeout(mt,i.slideshowDelay/4)),!1!==i.onSlideshowStart&&i.onSlideshowStart(L)},je=function(){Be(!0),i.autohideControls&&it(),a.add(d).addClass(i.immerseClass),ee=setTimeout(mt,i.slideshowDelay/4),te=!1,i.backgroundAudioSlideshowControl&&ve.trigger("fadeInPlayer")},Ke=function(e){var t=null!==ee;return!1!==i.onSlideshowPause&&i.onSlideshowPause(L),!0!==e&&i.backgroundAudioSlideshowControl&&ve.trigger("fadeOutPlayer"),Be(!1),clearTimeout(ee),ee=null,te=!1,B.show().removeClass("slideshow"),a.add(d).removeClass(i.immerseClass),nt(),isFullscreen()&&i.slideshowFullscreen&&SMALLSCREEN===i.lightboxFullscreenOnlyMobiles&&exitFullscreen(),releaseWakeLock(),t},_e=function(){i.backgroundAudioSlideshowControl&&qe(),clearTimeout(ee),ee=null,te=!0},Ye=function(e){q.length&&e.length&&e.css("width",100*q[0].currentTime/q[0].duration+"%")},Qe=function(){q.length&&q[0].play().then(function(){var t=q.siblings(".audioclip-btn"),o=t.children(".progress");t.removeClass("icon-volume-up").addClass("icon-pause"),q.parent().removeClass("paused").addClass("playing"),ee&&_e(),o.length||(o=e("<div>",{class:"progress"}).appendTo(t)),Ye(o),ne=setInterval(Ye,100,o),q.on("ended",function(){t.removeClass("icon-pause").addClass("icon-volume-up"),q.parent().removeClass("playing").addClass("paused"),te&&je(),o.remove(),clearInterval(ne)})},function(e){btn.removeClass("icon-pause").addClass("icon-volume-up"),console.log(e)})},Xe=function(){if(q.length){var e=q.siblings(".audioclip-btn");q[0].pause(),clearInterval(ne),ne=null,e.removeClass("icon-pause").addClass("icon-volume-up"),q.parent().removeClass("playing").addClass("paused"),te&&je()}},$e=function(e,t){q.length&&typeof e===FUNCTION&&(q[0].paused?typeof t!==UNDEF?e.apply(null,t):e.call(null):q.on("ended",e,t))}
23,et=function(){i.muteBackgroundAudio&&qe(),Qe(),V.addClass(i.playingClass)},tt=function(){i.muteBackgroundAudio&&setTimeout(Ze,500),Xe(),V.removeClass(i.playingClass)},ot=function(){Xe(),V.removeClass(i.playingClass)},at=function(e){var t=(e||d).find("audio,video").eq(0);if(t.length){var o=t[0].volume,a=i.transitionSpeed/(50*o),n=function(){if(t){var e=Math.max(t[0].volume-.02,0);e>.005?(t[0].volume=e,setTimeout(n,a)):t[0].pause()}};t.off("volumechange."+be),n()}},nt=function(){clearTimeout(ie),d.removeClass(i.controlsHideClass)},it=function(){clearTimeout(ie),ie=setTimeout(function(){clearTimeout(ie),G.hideAllTooltips(),d.addClass(i.controlsHideClass)},i.hideControlsDelay)},st=function(){clearTimeout(ie),d.toggleClass(i.controlsHideClass,!lt())},lt=function(){return d.hasClass(i.controlsHideClass)},rt=function(){G.hideAllTooltips(),d.addClass(i.thumbsVisibleClass),i.thumbsVisible=ue=!0,savePrefs(i,i.prefsKept,"lb_pref"),V.data("fitted")&&De(!0)},ct=function(){G.hideAllTooltips(),d.removeClass(i.thumbsVisibleClass),i.thumbsVisible=ue=!1,savePrefs(i,i.prefsKept,"lb_pref"),V.data("fitted")&&De(!0)},dt=function(){d.addClass(i.captionVisibleClass),i.captionVisible=pe=!0,savePrefs(i,i.prefsKept,"lb_pref"),V.data("fitted")&&De(!0)},ut=function(){G.hideAllTooltips(),d.removeClass(i.captionVisibleClass),i.captionVisible=pe=!1,savePrefs(i,i.prefsKept,"lb_pref"),V.data("fitted")&&De(!0)},pt=function(){i.captionVisible||i.thumbsVisible?(ue=i.thumbsVisible,pe=i.captionVisible,G.hideAllTooltips(),clearTimeout(ie),d.addClass(i.controlsHideClass),d.removeClass(i.thumbsVisibleClass+" "+i.captionVisibleClass),i.thumbsVisible=i.captionVisible=!1):(nt(),!ue&&pe||i.thumbsVisible||(d.addClass(i.thumbsVisibleClass),i.thumbsVisible=!0),!pe&&ue||i.captionVisible||(d.addClass(i.captionVisibleClass),i.captionVisible=!0)),savePrefs(i,i.prefsKept,"lb_pref"),"screen"!==i.fitBetween&&V.data("fitted")&&De(!0)},ht=function(){Ue(he-1)},mt=function(){Ue(he+1)},ft=function(e){f.css({transition:"transform "+i.thumbSpeed+"ms ease-out",transform:"translateX("+e+"px)"}),bt()},gt=function(){if(i.useThumbstrip&&!(M.length<2)){var e=f.children().eq(he<0?0:he),t=e.position().left,o=e.width(),a=f.getTranslate()[0],n=m.width(),s=f.width();f.children().removeClass(i.activeClass),e.addClass(i.activeClass),t<-a?ft(Math.min(0,i.thumbOverhead-t)):t+o>n-a?ft(Math.max(n-t-o-i.thumbOverhead,n-s)):n-a>s&&ft(n-s)}},bt=function(t){if(d.is(":visible")&&i.useThumbstrip&&!(M.length<2)){var o=m.width(),a=f.getTranslate()[0];f.children("."+i.lazyloadClass).each(function(){var t=e(this),n=t.position().left,s=t.width();if(n+a<7*o/4&&n+s+a>0-3*o/4)t.removeClass(i.lazyloadClass),function(t){if(t.length){var o=e("<img>",{class:"hide-image"}).one("load",function(){e(this).removeClass("hide-image").addClass("show-image"),e(this).parent().removeClass(i.lazyloadClass)}).attr("src",t.attr("href"));i.rightClickProtect&&o.on("contextmenu",function(e){return e.preventDefault(),!1}),t.append(o).removeAttr("href")}}(t);else if(n+a>=o)return!1}),typeof t===FUNCTION&&t.call(this)}},Ct=function(){if(d.is(":visible")){var e=f.children(":last-child");e.position().left+e.outerWidth()>m.width()?(h.addClass(i.scrollClass),gt()):(h.removeClass(i.scrollClass),ft(0))}},vt=function(e){var t=m.width(),o=f.getTranslate()[0];t>f.width()?o&&ft(0):(o=e<0?Math.min(0,o+t):Math.max(t-f.width(),o-t),ft(o))};if(be&&function(o){t.add(document).off("."+o),e("#"+o).remove()}(be),N.data("llb_ns",be="llb_"+Math.floor(1e4*Math.random())),M=N.find(i.delegate),i.useThumbstrip||i.prefsKept.splice(0,1),loadPrefs(i,i.prefsKept,"lb_pref"),d=e("<div>",{id:be,class:"lightbox"}).hide().appendTo(N),u=e("<div>",{class:"lightbox-overlay"}).appendTo(d),p=e("<div>",{class:"lightbox-loading"}).append("<div>").append("<div>").append("<div>").appendTo(d),d.toggleClass(i.thumbsVisibleClass,i.thumbsVisible&&M.length>1),d.toggleClass(i.captionVisibleClass,i.captionVisible),function(){if(G=e("<div>",{class:i.controlsClass+(i.controlsUseText?" use-text":"")}).appendTo(d),M.length>1&&(g=e("<button>",{type:"button",class:"previous",title:F.previousPicture,text:i.controlsUseText?F.previousPictureShort:""}).on("click."+be,ht).appendTo(G)),b=e("<button>",{type:"button",class:"up icon-arrow-up",title:F.upOneLevel,text:i.controlsUseText?F.upOneLevelShort:""}).on("click."+be,function(){ze()}).appendTo(G),i.useZoom)if(i.zoomSlider){var t=e("<div>",{class:"zoom-control"}),o=e("<a>",{class:"zoom-out button"}).appendTo(t);T=e("<input>",{name:"zoom-level",type:"range"}).appendTo(t);var a=e("<a>",{class:"zoom-in button"}).appendTo(t);C=e("<button>",{type:"button",class:"zoom-level icon-zoom-level",text:i.controlsUseText?F.zoom:""}).on("click."+be,function(){return!(!re||(setTimeout(ye,50),"touch"!==e("html").data("whatinput")))}).addTooltip(e("<div>",{class:"zoom-panel"}).append(t),{touchToggle:!0,pos:[1,0,1,2]}).appendTo(G),T.on("change",function(){return xe(parseInt(T.val())),!0}),a.on("click",function(){return Se(),!1}),o.on("click",function(){return Oe(),!1})}
23else v=e("<button>",{type:"button",class:"zoom-in icon-expand",title:F.oneToOneSize,text:i.controlsUseText?F.oneToOneSizeShort:""}).on("click."+be,function(){return ye(),!1}).appendTo(G),w=e("<button>",{type:"button",class:"zoom-out icon-contract",title:F.fitToScreen,text:i.controlsUseText?F.fitToScreenShort:""}).on("click."+be,function(){return ye(),!1}).appendTo(G);if(i.useThumbstrip&&M.length>1&&(S=e("<button>",{type:"button",class:"show-thumbs icon-show-top-panel",title:F.showThumbs,text:i.controlsUseText?F.showThumbsShort:""}).on("click."+be,rt).appendTo(G),O=e("<button>",{type:"button",class:"hide-thumbs icon-hide-top-panel",title:F.hideThumbs,text:i.controlsUseText?F.hideThumbsShort:""}).on("click."+be,ct).appendTo(G)),P=e("<button>",{type:"button",class:"show-caption icon-show-bottom-panel",title:F.showInfo,text:i.controlsUseText?F.showInfoShort:""}).on("click."+be,dt).appendTo(G),A=e("<button>",{type:"button",class:"hide-caption icon-hide-bottom-panel",title:F.hideInfo,text:i.controlsUseText?F.hideInfoShort:""}).on("click."+be,ut).appendTo(G),i.useSlideshow&&M.length>1)if(k=e("<button>",{type:"button",class:"play-pause icon-play",title:F.slideshow}).appendTo(G),i.controlsUseText&&k.append(e("<span>",{class:"lbl",html:F.startSlideshowShort})),I=e("<span>",{class:"progress"}).appendTo(k),k.on("click."+be,function(){return!(!re||(He(),"touch"!==e("html").data("whatinput")))}),i.timingControl){var n=e("<div>",{id:"timing-control",class:"timing-control"}),s=e("<a>",{class:"decr-time"}).appendTo(n);E=e("<span>").appendTo(n);var l=e("<a>",{class:"incr-time"}).appendTo(n);k.addTooltip(e("<div>",{class:"timing-panel"}).append(e("<div>",{class:"label",html:F.timing})).append(n),{touchToggle:!0,delay:600,pos:[1,0,1,2]}),l.on("click",function(){return i.slideshowDelay>1e3?i.slideshowDelay+=1e3:i.slideshowDelay+=100,Ie(i.slideshowDelay),!1}),s.on("click",function(){return i.slideshowDelay>500&&(i.slideshowDelay>1e3?i.slideshowDelay-=1e3:i.slideshowDelay-=100),Ie(i.slideshowDelay),!1}),setTimeout(function(){Ie(i.slideshowDelay)},500)}else k.attr("title",F.startStopSlideshow);i.showFullscreen&&hasFullscreen()&&(y=e("<button>",{type:"button",class:"gofullscreen icon-fullscreen",title:F.fullscreen,text:i.controlsUseText?F.fullscreenShort:""}).on("click."+be,requestFullscreen).appendTo(G),x=e("<button>",{type:"button",class:"exitfullscreen icon-fullscreen-off",title:F.exitFullscreen,text:i.controlsUseText?F.exitFullscreenShort:""}).on("click."+be,exitFullscreen).appendTo(G),isFullscreen()&&d.addClass("fullscreen")),M.length>1&&(D=e("<button>",{type:"button",class:"next",title:F.nextPicture,text:i.controlsUseText?F.nextPictureShort:""}).on("click."+be,mt).appendTo(G)),G.children("button").not(".zoom-level").not(".pause").addTooltip({delay:1e3,pos:[1,0,1,2]})}(),i.useThumbstrip&&M.length>1&&function(){i.thumbsVisible&&d.addClass(i.thumbsVisibleClass),(h=e("<div>",{class:"thumb-strip"}).appendTo(d)).append(e("<button>",{class:"left icon-caret-left"}).on("click."+be,function(e){return vt(-1),!1})),h.append(e("<button>",{class:"right icon-caret-right"}).on("click."+be,function(e){return vt(1),!1})),(m=e("<div>",{class:"thumb-cont"}).appendTo(h)).on("selectstart."+be,function(e){return!1});var t,o,a,s=(f=e("<div>",{class:"thumbs"}).appendTo(m)).height()||60,l=0;M.each(function(r){t=e(this).data(J.OBJ),(a=e("<a>",{class:i.lazyloadClass,title:t[J.THUMBCAPTION]||"",href:n.getThumbPath(t)}).appendTo(f)).on("click",function(t){var o=e(t.target).closest("a");return Ue(f.children().index(o)),!1}),o=Math.floor(Math.max(3*(s-4)/4,Math.min(t[J.THUMB][J.WIDTH],(s-4)*t[J.THUMB][J.WIDTH]/t[J.THUMB][J.HEIGHT]))),a.width(o),l+=o})}(),i.hasOwnProperty("slideshowDelay")||(oe=i.slideshowDelay=4e3),i.hasOwnProperty("transitionSpeed")||(ae=i.transitionSpeed=400),i.quitOnDocClick||u.on("click."+be,function(e){if(re)return this===e.target&&(getCoords(e).x>=d.width()/2?mt():ht()),!1}),t.on("resize."+be,function(){clearTimeout(se),se=setTimeout(function(){clearTimeout(se),!V||!V.length||Y&&isFullscreen()||De(),bt(Ct)},50)}),i.quitOnDocClick&&u.on("click."+be,function(t){if(re){if(i.auto
23hideControls&&lt())return nt(),!1;if(V.length&&!e(t.target).is(V))return ze(),!1}return!0}),i.autohideControls&&o.on("mousemove."+be,function(){nt(),it()}),i.enableKeyboard&&o.on("keyup."+be,function(e){if(!re||!V.length||d.children(".modal:visible").length||document.activeElement&&("INPUT"===document.activeElement.nodeName||"TEXTAREA"===document.activeElement.nodeName))return!0;switch(e.preventDefault(),e.keyCode){case 27:ze();break;case 33:case 37:ht();break;case 34:case 39:mt();break;case 97:case 35:Ue(M.length-1);break;case 103:case 36:Ue(0);break;case 106:case 179:He();break;case 107:i.useZoom?i.zoomSlider?Se():ye():i.captionVisible?ut():dt();break;case 109:i.useZoom?i.zoomSlider?Oe():ye():pt();break;case 32:W?z[0].paused?playVideo(z[0]):z[0].pause():j?z[0].paused?z[0].play():z[0].pause():He();break;default:return!0}return!1}),i.mouseWheelAction){var wt=null;d.on("mousewheel."+be+" DOMMouseScroll."+be,function(t){if(re){if(clearTimeout(wt),!V.length||e(t.target).closest("."+i.lightboxCaptionClass).length||V.hasClass("pdf")||V.hasClass("external")||d.children(".modal:visible").length)return!0;if(1==t.ctrlKey||"zoom"===i.mouseWheelAction)i.useZoom&&(wt=i.zoomSlider?setTimeout(t.originalEvent.wheelDelta>0||t.originalEvent.detail<0?function(e){Se()}:function(e){Oe()},100):setTimeout(t.originalEvent.wheelDelta>0||t.originalEvent.detail<0?function(e){de||(de=!0,De(!0))}:function(e){de&&(de=!1,De(!0))},100));else if("navigation"===i.mouseWheelAction){var o=new Date;(typeof d.data("lastWheel")===UNDEF||o-d.data("lastWheel")>250)&&(wt=setTimeout(function(e){d.data("lastWheel",new Date),e?ht():mt()},100,t.originalEvent.wheelDelta>0||t.originalEvent.detail<0))}}return!1})}return N.on("lightboxLoad."+be,function(t,o,a){o=typeof o===NUMBER?Math.minMax(0,o,M.length):typeof o===OBJECT?M.index(e(o)):0,!1!==i.onStart&&i.onStart(M.eq(o)),(ee||te)&&Ke(!0),Ue(o,function(){a&&We()})}).on("lightboxQuit."+be,function(){return ze(),!1}).on("lightboxRemove."+be,function(){return function(){var n=function(){isFullscreen()&&i.lightboxFullscreen&&SMALLSCREEN===i.lightboxFullscreenOnlyMobiles&&exitFullscreen(),d.remove()};Ke(!0),re=!1,M.off("."+be),o.add(t).add(d).off("."+be),a.add(e("html")).css("overflow",""),a.removeClass(i.lightboxOnClass),V.length?d.css("transition","opacity "+i.transitionSpeed+"ms ease-out").one("transitionend",n).css("opacity",0):n()}(),!1}).on("stopAutoHide."+be,function(){clearTimeout(ie)}).on("lightboxContainer."+be,function(){return d}).on("lightboxNext."+be,function(){return Ke(!0),mt(),!1}).on("lightboxPrevious."+be,function(){return Ke(!0),ht(),!1}),i.hasOwnProperty("onReady")&&typeof i.onReady===FUNCTION&&i.onReady(M.eq(he)),i.autoStart&&i.baseSet&&We(),this},e.fn.lightbox.defaults={delegate:".card.lbable",lightboxMainClass:"lightbox-main",currClass:"curr",lightboxCaptionClass:"lightbox-caption",lightboxOnClass:"lightbox-on",controlsClass:"controls",buttonClass:"button",lazyloadClass:"lazyload",activeClass:"active",scrollClass:"scroll",regionsClass:"regions",captionVisibleClass:"caption-visible",thumbsVisibleClass:"thumbs-visible",hasbuttonsClass:"hasbuttons",immerseClass:"immerse",controlsVisibleClass:"controls-visible",controlsHideClass:"controls-hide",checkboxClass:"checkbox",checkmarkClass:"icon-checkmark",selectedClass:"checked",playingClass:"playing",transitionProps:"300ms ease-out",slideshowDelay:4e3,timingControl:!1,hideControlsDelay:2500,prefsKept:["thumbsVisible","captionVisible","audioClipVolume"],controlsUseText:!1,thumbsVisible:!0,useThumbstrip:!0,captionVisible:!0,fitImages:!0,fitBetween:"screen",maxZoom:1,horzPanoThreshold:1.8,vertPanoThreshold:.5,displayOriginals:!0,useZoom:!0,zoomSlider:!1,useOriginals:!1,hiDpiThumbs:!1,hiDpiImages:!1,show
23Fullscreen:!1,indexName:"index.html",baseSet:!0,autohideControls:!1,autoStart:!1,clickAction:"donothing",mouseWheelAction:"navigation",useSlideshow:!0,autoplayAudioClips:!0,backgroundAudioSlideshowControl:!1,muteBackgroundAudio:!0,use360Player:!0,autoRotate360:!0,rotateSpeed360:-2,useGoogleDocs:!0,lightboxFullscreen:!1,slideshowFullscreen:!1,afterLast:"donothing",avoidNavigationOnZoomed:!0,doubleClickZoom:!0,mapHeight:.8,mapApiKey:"",mapType:"hybrid",mapZoom:15,showShop:!1,showFeedback:!1,showLowestPrice:!1,videoAuto:!1,videoLoop:!1,autoPano:!1,autoPanoStart:0,autoPanoSpeed:80,volume:.5,audioClipVolume:.75,rightClickProtect:!1,useRating:!1,jalbumRating:!1,visitorRating:!1,buttonLabels:!0,showNumbers:!1,infoPanelAdapt:!1,showShare:!1,showDownload:!1,allowDownloadScaled:!1,allowDownloadOthers:!1,showMap:!1,showRegions:!0,regionsVisible:!1,printImage:!1,metaAsPopup:!0,transitionType:"crossFadeAndSlide",transitionSpeed:400,panoramaAutoDetect:1.3333,panoramaTreshold:[2.5,2.5],defaultPosterSize:[628,360],thumbSpeed:400,thumbOverhead:40,preloadNext:!0,enableKeyboard:!0,enableMouseWheel:!0,quitOnEnd:!0,quitOnDocClick:!0,onStart:!1,onClose:!1,onLoadStart:!1,onLoadEnd:!1,onAfterLast:!1,onBeforeFirst:!1,onReady:!1,onSlideshowStart:!1,onSlideshowPause:!1,onVolumeChange:!1,feedbackBtnLabel:"Write feedback",feedbackBtnTooltip:"View feedback window"},e.fn.lightbox.text={rating:"Rating",print:"Print",printLabel:"Print out this photo on your printer",download:"Download",addCart:"Add to Cart",shopLabel:"Add this item to the shopping cart",viewCart:"View Cart",viewCartLabel:"View shopping cart",fotomotoBtn:"Buy / Share",fotomotoTooltip:"Buy prints or digital files, share, send free eCards",metaBtn:"Photo data",metaLabel:"Display photographic (Exif/Iptc) data",regionsBtn:"People",regionsLabel:"Show tagged people",mapBtn:"Map",mapLabel:"Show the photo location on the map",mostphotosBtn:"Purchase",mostphotosLabel:"Download this image from <b>mostphotos.com</b>!",share:"Share",shareLabel:"Share this photo over social sites",shareOn:"Share on",play:"Play",audioClipLabel:"Play / pause the attached audio clip",startOver:"Start over",upOneLevel:"Up one level",backToHome:"Back to home",backToIndex:"Back to index page",nextFolder:"Next folder",nextIndex:"Next index page",atLastPageQuestion:"Where to go next?",atLastPage:"At last page",clickToOpen:"Click to open this document with the associated viewer",pauseShort:"Pause",startSlideshowShort:"Play",previousPicture:"Previous picture",previousPictureShort:"Prev",upOneLevelShort:"Exit",zoom:"Zoom",oneToOneSize:"1:1 size",oneToOneSizeShort:"1:1",fitToScreen:"Fit to screen",fitToScreenShort:"Fit",showThumbs:"Show thumbnails",showThumbsShort:"Thumbnails",hideThumbs:"Hide thumbnails",hideThumbsShort:"Hide thumbs",showInfo:"Show caption / info",showInfoShort:"Info",hideInfo:"Hide caption / info",hideInfoShort:"Hide info",slideshow:"Slideshow",timing:"Timing",startStopSlideshow:"Start / stop slideshow",fullscreen:"Fullscreen",fullscreenShort:"Fullscr",exitFullscreen:"Exit fullscreen",exitFullscreenShort:"Normal",nextPicture:"Next picture",nextPictureShort:"Next"}}(jQuery,jQuery(window),jQuery(document));
24!function(e,t,a,s,n){"use strict";e.fn.selectable=function(t){t=e.extend({cardClass:"card",thumbClass:"thumb",checkboxClass:"checkbox",selectedClass:"checked",checkmarkClass:"icon-checkmark",hasSelectedClass:"has-selected",allSelectedClass:"all-selected",selectionChange:null},t);var a,n=e(this).eq(0),l=function(e){typeof t.selectionChange===FUNCTION&&t.selectionChange.call(n[0],e),s.toggleClass(t.hasSelectedClass,e>0).toggleClass(t.allSelectedClass,e===a.length)},r=function(){return a.filter("."+t.selectedClass).length},o=function(a){(a instanceof e?a:e(this)).addClass(t.selectedClass).find("."+t.checkboxClass).addClass(t.checkmarkClass)},i=function(a){(a instanceof e?a:e(this)).removeClass(t.selectedClass).find("."+t.checkboxClass).removeClass(t.checkmarkClass)},c=function(a){var s=a instanceof e?a:e(this);s.hasClass(t.selectedClass)?i(s):o(s)},d=function(a){var s=e(a.target).closest("."+t.cardClass),n=r();return s.hasClass(t.selectedClass)?(i(s),n-=1):(o(s),n+=1),l(n),!1},h=function(){var s,l;(a=t.selector?n.find(t.selector):n.find("."+t.cardClass)).each(function(){e(this).find("span."+t.checkboxClass).length||(s=e(this).children("."+t.thumbClass).eq(0),(l=s.length?e("<span>",{class:t.checkboxClass}).appendTo(s):e("<span>",{class:t.checkboxClass}).prependTo(e(this))).on({click:d}),e(this).on({selectCard:o,unselectCard:i,toggleCard:c}))}),typeof t.selectionChange===FUNCTION&&t.selectionChange.call(n[0],r()
24)};return h(),n.on({selectAll:function(){if(n.is(":visible")){var s=r();s<a.length&&(s=a.length,a.not("."+t.selectedClass).each(function(){o(e(this))})),l(s)}},selectNone:function(){if(n.is(":visible")){var s=r();s>0&&(s=0,a.filter("."+t.selectedClass).each(function(){i(e(this))})),l(s)}},selectInverse:function(){if(n.is(":visible")){var t=a.length-r();0===t?a.each(function(){i(e(this))}):a.each(function(){c(e(this))}),l(t)}},selectRefresh:h}),this},e.fn.skin=function(a){a=e.extend({},e.fn.skin.defaults,a);var n,l,r=e(this),o=r.find("#main-cont"),i=getTranslations({return:"return",rendering:"Rendering",addCart:"Add to Cart",fotomotoBtn:"Buy / Share",fotomotoTooltip:"Buy prints or digital files, share, send free eCards",audioClipLabel:"Play / pause the attached audio clip",selectedItems:"Selected items",label:"Label",search:"Search",searchNew:"Search new",loading:"Loading",foundNTimes:"{0} image(s)",foundTooMany:"{0} images; displaying only the first {1}",notFound:"not found",searchPlaceholder:"Search...",more:"more",less:"less",imagesTaken:"Images taken",imagesModified:"Images modified",imagesAdded:"Images added",betweenDays:"between {0} and {1}",onDay:"on {0}",afterDay:"after {0}",beforeDay:"before {0}",sinceMyLastVisit:"since my last visit",results:"Results",sortedBy:"Sorted by",ascending:"ascending",desce
24nding:"descending",noRating:"No rating",multipleSelectHint:"Use SHIFT to select range, CTRL for multiple entries",select:"Select",reset:"Reset",sortBy:"Sort by",image:"image",images:"images",audio:"audio",audios:"audios",video:"video",videos:"videos",other:"other",others:"others",fatalError:"Fatal error!"}),c=e(),d=e(),h=e(),u=e(),f="tiger_skin",p="",g=!1,m=a.indexName.split(".")[1]||"html",C=""!==window.location.hash,v=new Date/1e3,y="EUR",b=t.scrollTop(),T=function(e){var t=o.find("."+a.thumbnailsClass).last();return!t.length&&typeof e!==UNDEF&&e&&(t=E()),t},w=function(){return o.find("."+a.baseOverlayClass)},O=function(){return o.find("."+a.overlayClass+":visible").length>0},P=function(e){return(typeof e===UNDEF?T():e).hasClass(a.baseOverlayClass)},x=function(){return"oly_"+Math.floor(1e4*Math.random())},N=function(e){if((e=typeof e===UNDEF?T():e).length){var t=e.data("overlay");return t||(t=e.hasClass(a.baseOverlayClass)?"base":x(),e.attr("data-overlay",t),t)}return""},A=function(e,t){return t=typeof t===UNDEF?T():t,e=typeof e===UNDEF?t.hasClass(a.baseOverlayClass)?"base":x():e,t.attr("data-overlay",e),e},E=function(){var t=x(),s=e("<section>",{class:a.thumbnailsClass+" "+a.overlayClass}).attr({id:t,"data-overlay":t}),n=w();return n.length?n.after(s):(n=o.find("."+a.foldersClass)).length?n.after(s):o.prepend(s),B(s),o.addClass(a.hasOverlayClass),s},k=function(){return T().children("header").eq(0)},R=function(){return k().find("h"+a.overlayHeadLevel).eq(0)},I=function(t){var a=R();return a.length?t.appendTo(a):e()},D=function(t){var s=k().find("."+a.progressClass);return s.length?s.empty():s=e("<div>",{class:a.progressClass}).insertAfter(R()),typeof t!==UNDEF&&t&&s.append('<div class="title">'+t+"</div>"),s.append('<div class="'+a.progressbarClass+'"><span></span></div>'),l=setTimeout(function(){s.addClass("animate")},500),s},M=function(e){clearTimeout(l);var t=k().find("."+a.progressClass);t.removeClass("animate"),t.find("."+a.progressbarClass+" span").width(100*e+"%")},F=function(e){k().find("."+a.progressClass).remove()},S=function(t){if(t.length){var a=N();t.each(function(){e(this).attr("data-rel",a)})}},B=function(t){return t=typeof t===UNDEF?T():t,e("<div>",{class:[a.contClass,a.thumbLayout,"caption-"+a.captionPlacement,"below"!==a.captionPlacement&&a.captionShowOnHover?"caption-on-hover":""].filter(Boolean).join(" ")}).appendTo(t)},U=function(){return o.find("."+a.thumbnailsClass+":not(."+a.overlayClass+")").first().children("div."+a.contClass)},L=function(e){var t=o.find("."+a.thumbnailsClass).last().children("div."+a.contClass);return!t.length&&e&&(t=B(T(!0))),t},H=function(){return w().find("."+a.mapRootClass)},G=function(e){return U().find("."+a.cardClass+(e||""))},q=function(e){return L().find("."+a.cardClass+(e||""))},j=function(e){return L().find("."+a.cardClass+" ."+a.thumbClass+(e||""))},V=function(){return L().find("."+a.cardClass+"."+a.selectableClass)},W=function(){var s=T();if(s.length&&!P()){var n=s.data("overlay");t.off("."+n),s.trigger("removeLightbox"),function(e){(e=e||N())&&o.find("[data-rel="+e+"]").remove()}(n),r.removeClass(a.noMapClass+" "+a.hasMapClass),s.trigger("overlayRemoved"),s.remove(),o.removeClass(a.hasOverlayClass),function(){var t=w();t.length&&(e("[data-rel="+t.data("overlay")+"]").not(".hidden").show(),t.trigger("refresh"),Qe(),H().trigger("refresh"))}(),a.hasOwnProperty("search")&&le(),Ce(),je(),V().length||e(".hide-on-empty").hide(),o.hideAllTooltips(),o.find("[data-sticky-rel]").trigger("stickyRefresh")}},_=function(t,s){var n,l=e();return n=typeof s!==UNDEF&&s?G():q(),t=decodeURIComponent(t),n.find("."+a.thumbClass).each(function(){var s=e(this).data("name")||function(e){var t=e.data("href")||e.attr("href");return t?t.substring(t.lastIndexOf("/")+1).replace("#img=",""):""}(e(this));if(s===t||function(e,t){return e.slice(-m.length)===m&&e.substring(0,e.lastIndexOf("."))===t.substring(0,t.lastIndexOf("."))}(s,t))return l=e(this).closest("."+a.cardClass),!1}),l},z=function(t){var s=o.find("."+a.foldersClass+" ."+a.contClass);return s.length?s.find("."+a.cardClass+(t||"")):e()},Y=function(t){var s=o.find(a.mapBoxHook);if("page"!==a.pageType){var n=N();s=s.filter(function(){return e(this).data("rel")===n})}if(s.length&&s.is(":visible"))return s.find("."+a.mapRootClass);if(t){var l=e('<section class="map show-on-overlay"><div class="cont box"><div class="'+a.mapRootClass+'" data-map-root></div></div></section>');return s.length?s.after(l):T().before(l),S(l),l.find("."+a.mapRootClass)}return e()}
24,K=function(){return L().find("."+a.lightboxClass).last()},Q=function(){return K().is(":visible")},Z=function(e,t){ie(j(" .playing")),L().trigger("lightboxLoad",typeof t===UNDEF?e:[e,t])},$=function(){var t=[];return L().find("."+a.cardClass+"."+a.selectedClass).each(function(){t.push(e(this).data(J.OBJ))}),t},X=function(){var t=[];return q().each(function(){t.push(e(this).data(J.OBJ))}),t},ee=function(){var t=[];return G().each(function(){t.push(e(this).data(J.OBJ))}),t},te=function(){var e=L().find("."+a.cardClass+"."+a.activeClass);return e.length?e.data(J.OBJ):null},ae=function(e,t){var s=c.add(h);typeof t!==UNDEF&&t?(s.find("."+a.selectBoxClass).show(),s.find("."+a.selectNoneClass+",."+a.addSelectedClass+",."+a.keepSelectedClass).toggleClass(a.disabledClass,typeof e===UNDEF||0===e),s.find("."+a.selectAllClass).toggleClass(a.disabledClass,typeof t!==UNDEF&&e===t)):s.find("."+a.selectBoxClass).hide()},se=function(e){h.add(c).toggleClass(a.disabledClass,!e)},ne=function(e){r.toggleClass(a.hasImagesClass,e).toggleClass(a.noImagesClass,!e)},le=function(){e(a.search.hook).find("input").val("")},re=function(t){var s,n=e(this);return t.preventDefault(),n[0].hasAttribute("rel")&&(s=e("#"+n.attr("rel"))),s&&s.length||(n.attr("rel","PL_"+Math.floor(1e4*Math.random())),s=function(t){var s=e("<audio>",{class:"audioclip-player",src:t.attr("href"),id:t.attr("rel"),controlsList:"nofullscreen nodownload noremote noplaybackrate"}).hide().insertAfter(t);return s[0].volume=a.audioClipVolume,s}(n)),s[0].paused?(oe(),s[0].play().then(function(){n.removeClass("icon-volume-up paused").addClass("icon-pause playing"),s.on("ended",function(){n.removeClass("icon-pause playing").addClass("icon-volume-up paused")})},function(e){n.removeClass("icon-pause playing").addClass("icon-volume-up paused"),console.log(e)})):(s[0].pause(),n.removeClass("icon-pause playing").addClass("icon-volume-up paused")),!1},oe=function(){ie(j(" .playing"))},ie=function(t){t.each(function(){var t=e("#"+e(this).attr("rel"));t.length&&(t[0].pause(),e(this).removeClass("icon-pause playing").addClass("icon-volume-up paused"))})},ce=function(t){if(typeof t!==UNDEF&&t.length){for(var a=[],s=0;s<t.length;s++)a.push(t[s].hasOwnProperty(J.VISITORRATING)?t[s][J.VISITORRATING]:-1);e.cookie(REL_PATH+PAGE_NAME+":ratings",a,604800)}},de=null,he=null,ue=function(l,o,d){if(l&&o&&o.length){Array.isArray(o)||(o=[o]),D(DEBUG?i.rendering:"");var u=P(),f=N(),p=L(!0),g=q(),m=0,C=o.length,y=0,b=a.hasOwnProperty("markNew")?v-a.markNew.days*ONEDAY_S:null,T=function(){if(m>=C)w();else{for(var t,s,l,r,d,v,O,P,x,N,A,k,R=Math.min(m+a.thumbsPerBatch,C),I=m;I<R;I++){if(t=o[I],s="folder"===t[J.CATEGORY],l=!s&&n.isLightboxable(t),r="video"===t[J.CATEGORY]||"audio"===t[J.CATEGORY],d=!!t.hasOwnProperty(J.THUMB)&&/res\/\w+\.png$/.test(t[J.THUMB][J.PATH]),O=t[J.THUMBCAPTION],I<g.length?P=g.eq(I):(v=t.hasOwnProperty(J.THUMB)?t[J.THUMB][J.WIDTH]/t[J.THUMB][J.HEIGHT]:1,P=e("<div>",{class:[a.cardClass,a.lazyloadClass,t[J.CATEGORY],O?"hascaption":"",t.hasOwnProperty(J.THUMB)&&t[J.THUMB][J.WIDTH]<a.thumbDims[0]&&t[J.THUMB][J.HEIGHT]<a.thumbDims[1]?"tiny":"",d?"icon":"",v>=1.25?"landscape":v<=.8?"portrait":"square"].filter(Boolean).join(" ")}).appendTo(p)),l&&P.addClass(a.lbableClass),P.data(J.OBJ,t),(x=P.children("."+a.thumbClass)).length||(x=e("<a>",{class:a.thumbClass}).appendTo(P)),(N=x.find("img").eq(0)).length?A=!0:(N=e("<div>",{class:a.placeholderClass}).appendTo(x),A=!1),d?x.addClass("iconthumb"):(t[J.THUMB].hasOwnProperty(J.RENDITIONS)&&"fixgrid"!==a.thumbLayout&&"grid"!==a.thumbLayout&&N.data("hasrenditions",!0),r||(A?N.attr({width:t[J.THUMB][J.WIDTH],height:t[J.THUMB][J.HEIGHT]}):N.css({width:t[J.THUMB][J.WIDTH],height:t[J.THUMB][J.HEIGHT]}),t[J.THUMB][J.HEIGHT]/t[J.THUMB][J.WIDTH]<.5&&P.addClass(a.panoClass))),"justified"===a.thumbLayout&&P.data("width",t[J.THUMB][J.WIDTH]),x.data("name")||x.attr("data-name",n.getItemName(t)),O&&(P.children("."+a.captionClass).length||e("<div>",{class:a.captionClass,html:O}).appendTo(P),P.addClass(a.hascaptionClass)),l){x.on("click."+f,E),x.data("href")||x.attr("data-href",x.attr("href")||n.getOptimalImagePath(t,[x[0].offsetWidth,x[0].offsetHeight])),x[0].hasAttribute("href")&&x.attr("href","");var D=c.length&&n.hasShop(t),F=h.length&&!n.disableFeedback(t);if((D||F)&&P.addClass(a.selectableClass),D&&((k=e("<a>",{class:"icon-shopping-cart add-cart",text:" "+i.addCart}).on("click."+f,function(t){var s=e(t.target).closest("."+a.cardClass);return s.length&&c.trigger("addItems",s.data(J.OBJ)),!1}).appendTo(x)).addTooltip(n.getPriceRange(t),{delay:100}),y+=1,P.addClass(a.shoppableClass)),!D&&F&&(k=e("<a>",{class:"icon-email-send add-cart",text:" "+a.feedback.addBtnLabel}).on("click."+f,function(t){var s=e(t.target).closest("."+a.cardClass);return s.length&&h.trigger("addItems",s.data(J.OBJ)),!1}).appendTo(x)),LOCAL&&!DEBUG||D||!a.hasOwnProperty("fotomoto")||n.hideFotomoto(t)||(k=e("<a>",{class:"icon-shopping-cart add-cart fotomoto-btn",text:" "+i.fotomotoBtn}).on("click."+f,function(t){if(t.preventDefault(),typeof FOTOMOTO!==UNDEF){var s=e(t.target).closest("."+a.cardClass);s.length&&FOTOMOTO.API.showWindow(10,n.getOriginalPath(s.data(J.OBJ))||n.getItemPath(s.data(J.OBJ)))}return!1}).appendTo(x)).addTooltip(i.fotomotoTooltip),!u&&a.linkToFolder){var S=n.getPath(t);S&&x.append(e("<a>",{class:"icon-folder folder-link",href:S+a.indexName}))}a.useAudioClipButton&&t.hasOwnProperty(J.AUDIOCLIP)&&(O=e("<a>",{class:"icon-volume-up audioclip",href:t[J.AUDIOCLIP][J.PATH]}).on("click",re).appendTo(x),TOUCHENABLED||O.data("tooltip",i.audioClipLabel).addTooltip())}else P.addClass(t[J.CATEGORY]),x[0].href||x.attr("href",n.getItemPath(t));if(null!=b&&(k=t[J.DATES])&&(k=k[a.markNew.reference])&&k>=b&&(O=a.markNew.text?e("<span>",{class:"new-image",text:a.markNew.text}):e("<span>",{class:"icon-new-fill new-image"}),x.append(O),TOUCHENABLED||O.data("tooltip",new Date(1e3*k).toLocaleDateString(LOCALE)).addTooltip({delay:100})),a.useRating&&l){var B=t[J.RATING]||0;(a.visitorRating||B)&&(O=e("<span>",{class:"rating",html:STARS}).appendTo(x),a.visitorRating?(t.hasOwnProperty(J.VISITORRATING)?B=t[J.VISITORRATING]:(a.useJalbumRating||(B=0),t[J.VISITORRATING]=B),O.addClass("r"+B+(a.useJalbumRating?"":" icon-close")).on("click."+f,function(t){var s=e(this),n=Math.minMax(0,Math.floor((getCoords(t).x-s.offset().left-parseFloat(s.css("paddingLeft")))/16),5),l=s.closest("."+a.cardClass).data(J.OBJ);return s.removeClass("r0 r1 r2 r3 r4 r5").addClass("r"+n),l[J.VISITORRATING]=n,u?ce(o):(s=_(l[J.NAME],!0)).length&&(s.find(".rating").removeClass("r0 r1 r2 r3 r4 r5").addClass("r"+n),s.data(J.OBJ)[J.VISITORRATING]=n,ce(ee())),!1})):O.addClass("r"+B))}a.rightClickProtect&&x.on("contextmenu",function(e){return e.preventDefault(),!1}),u||M(I/C)}m=R,window.requestAnimationFrame(T)}},w=function(){F(),r.toggleClass(a.hasShopClass,y>0),r.toggleClass(a.noShopClass,!y),l.on({setactivecard:function(t,a){k(e(a
24))},refreshRating:function(t,a){R(e(a))},refresh:function(e){x()}}),typeof d===FUNCTION&&(typeof u!==UNDEF?d.call(void 0,l,u):d.call(void 0,l)),t.on("resize."+f,function(e){return clearTimeout(he),he=setTimeout(x,500),!0}),x()},O=function(t){if(clearTimeout(he),l.length)if(l.is(":visible")){var s=l.children("."+a.contClass).width();a.thumbGap;if(l.innerWidth()<a.pageWidth&&l.hasClass("overlay")&&(s+=32),l.data("fixedfor")!==s){var n=function(t,s){s>1.6&&(s=1.6);var n=Math.floor(a.thumbDims[1]*s);t.each(function(){var t=this.querySelector("."+a.thumbClass);t&&(1===s?(this.style.width="",t.style.height=n+"px"):(this.style.width=e(this).data("width")*s+"px",t.style.height=n+"px",(t=this.querySelector("."+a.captionClass))&&t.style.removeProperty("max-width")))})};!function(e){if(e.length){for(var t,r=0,o=0;e.length&&r<e.length;)o+(t=e.eq(r).data("width")+2*a.thumbGap)>=s?(o+t*a.justifyWrapThreshold>=s?(n(e.slice(0,r),.9999*(s-2*r*a.thumbGap)/(o-2*r*a.thumbGap)),e=e.slice(r)):(n(e.slice(0,r+1),.9999*(s-2*(r+1)*a.thumbGap)/(o+t-2*(r+1)*a.thumbGap)),e=e.slice(r+1)),r=0,o=0):(r++,o+=t);if(e.length>1){var i=.9999*(s-2*e.length*a.thumbGap)/(o-2*e.length*a.thumbGap);n(e,i>1.2?1:i)}else n(e,1);l.data("fixedfor",s)}}(l.find("."+a.cardClass)),typeof t===FUNCTION&&t.call()}else typeof t===FUNCTION&&t.call()}else he=setTimeout(O,100)},x=function(){clearTimeout(he),he="justified"===a.thumbLayout?setTimeout(O,100,fe):setTimeout(fe,a.scrollCheckInterval/2)},E=function(t){return!("A"!==t.target.nodeName||!e(t.target).closest("."+a.commentClass).length&&!e(t.target).hasClass("folder-link"))||(s.hideAllTooltips(),!isFullscreen()&&a.lightboxFullscreen&&SMALLSCREEN===a.lightboxFullscreenOnlyMobiles&&requestFullscreen(),Z(e(this).closest("."+a.cardClass)),!1)},k=function(e){if(!(typeof e===UNDEF||e instanceof Event)&&e.length){var s=e.data(J.OBJ),l=t.height(),r=t.scrollTop(),o=e.offset().top,i=e.outerHeight();q("."+a.activeClass).removeClass(a.activeClass),e.addClass(a.activeClass),a.hasOwnProperty("map")&&(n.hasLocation(s)?Y().trigger("setActive",s[J.NAME]):Y().trigger("resetMarkers")),o+i>r+l?window.scrollTo({top:Math.round(o-l+i+30),behavior:"smooth"}):o<r&&window.scrollTo({top:Math.round(Math.max(o-30,0)),behavior:"smooth"})}},R=function(e,t){if(typeof e!==UNDEF&&e.length){var s=e.data(J.OBJ),n=(typeof t!==UNDEF?t:a.visitorRating?s[J.VISITORRATING]:s[J.RATING])||0;e.find(".rating").removeClass("r0 r1 r2 r3 r4 r5").addClass("r"+n),P()?ce(o):_(s[J.NAME],!0).find(".rating").removeClass("r0 r1 r2 r3 r4 r5").addClass("r"+n)}};f||(f=A()),u&&a.useRating&&a.visitorRating&&function(t){if(typeof t!==UNDEF&&t.length){var a=e.cookie(REL_PATH+PAGE_NAME+":ratings");if(a){typeof a===STRING&&(a=a.split(":"));for(var s=0;s<t.length&&s<a.length;s++)-1!==a[s]&&(t[s][J.VISITORRATING]=a[s])}}}(o),window.requestAnimationFrame(T)}},fe=function(){if(clearTimeout(de),de=null,Q())de=setTimeout(fe,100);else{var s,n=t.scrollTop(),l=t.height(),o=T(),i=P();if(Math.abs(n-b)>20)return b=n,void(de=setTimeout(fe,a.scrollCheckInterval));(s=(s=o.length?o.find("."+a.cardClass).not(":empty"):r.find("."+a.foldersClass+" ."+a.cardClass).not(":empty")).filter(function(){if(e(this).hasClass(a.lazyloadClass))return!0;if(e(this).hasClass(a.preloadClass)){var t=e(this).find("."+a.thumbClass),s=t.find("img").eq(0);return e(this).removeClass(a.preloadClass),!a.fixedShapeThumbs&&s.data("hasrenditions")&&(1.1*s[0].width<t.width()||1.1*s[0].height<t.height())}return!1})).length?(s.each(function(){var t=e(this),s=t.offset().top;if(s+t.height()>b-l){if(!(s<b+1.5*l))return!1;i&&t.hasClass(a.folderClass)?pe(t):ge(t)}}),b=n,de=setTimeout(fe,a.scrollCheckInterval)):t.off("scroll."+f)}},pe=function(t){if(typeof t!==UNDEF&&t.length){var s=function(){e(this).css({display:"block",opacity:1})};t.find(".thumb[data-src]").each(function(){var t=e(this),a=t.find("img:not(.mosimg)").eq(0);a.length||(a=e("<img>",{alt:t.data("alt")||""}).css({opacity:0}).appendTo(t)),typeof a.attr("src")!==UNDEF&&!1!==a.attr("src")?s.call(a[0]):(a.one("load",s),a.attr("src",t.data("src")),t.removeData("src"))}),t.find(".mosaic [data-src]").each(function(){var t=e(this),a=t.children("img").eq(0);a.length||(a=e("<img>").css({opacity:0}
24).appendTo(t)),a.one("load",s),a.attr("src",t.data("src")),t.removeData("src")}),t.removeClass(a.lazyloadClass)}},ge=function(t){if(typeof t!==UNDEF&&t.length){var s=t.data(J.OBJ);if(s){var l=t.children("."+a.thumbClass).eq(0),r=l.find("img"),o=function(){var t=e(this),s=t.parents("."+a.cardClass).eq(0),n=s.find("."+a.placeholderClass);n.length&&n.remove(),t.css({display:"block",opacity:1}),s.removeClass(a.lazyloadClass+" "+a.preloadClass)};r.length||(r=e("<img>",{alt:n.getAlt(s)}).css({aspectRatio:s[J.THUMB][J.WIDTH]+"/"+s[J.THUMB][J.HEIGHT],display:"none",opacity:0}).appendTo(l)),t.hasClass(a.lazyloadClass)&&typeof r.attr("src")!==UNDEF&&!1!==r.attr("src")?o.call(r[0]):(r.one("load",o),r.attr("src",r.data("hasrenditions")?n.getOptimalThumbPath(t.data(J.OBJ),[l.outerWidth(),l.outerHeight()],!a.fixedShapeThumbs):n.getThumbPath(s)))}}},me=function(t,s){if(n){typeof t===UNDEF?(t=w(),s=!0):typeof s===UNDEF&&(s=P(t));var l=q().filter("."+a.lbableClass);if(t.trigger("refresh"),(l.length>1||a.showEmptyFilters)&&e(".filter-cont").length&&qe(s),l.length){if(n.hasShop()||a.feedback){var r=V();ae(0,r.length),se(r.length),r.length&&(t.selectable({cardClass:a.selectableClass,selectedClass:a.selectedClass,selectionChange:function(e){ae(e,r.length),c.add(h).trigger("itemsSelected",e)}}),d.add(u).find("."+a.keepSelectedClass).on("click."+f,function(){return we(i.selectedItems,function(){Ce()}),!1}),o.find("[data-sticky-rel]").trigger("stickyRefresh"),o.find("[data-sticky]").not("[data-sticky-rel]").sticky())}a.hasOwnProperty("map")&&(a.map.hasOwnProperty("apiKey")&&(e.fn.lightbox.defaults.mapApiKey=a.map.apiKey),a.map.hasOwnProperty("type")&&(e.fn.lightbox.defaults.mapType=a.map.type),a.map.hasOwnProperty("zoom")&&(e.fn.lightbox.defaults.mapZoom=a.map.zoom),a.map.index&&We(X(),a.map)),t.trigger("lightboxRemove"),t.lightbox(n,{baseSet:s,onLoadStart:function(e){var t=e.data(J.OBJ);t&&addParam(a.pageName||a.indexName,{img:n.getItemName(t)},t[J.TITLE])},onLoadEnd:function(e){typeof e!==UNDEF&&t.trigger("setactivecard",e),setTimeout(je,100)},onClose:function(e){a.slideshowFullscreen&&!a.slideshowFullscreenOnlyMobiles&&exitFullscreen(),typeof e!==UNDEF&&t.trigger("setactivecard",e),je(),t.trigger("refresh"),Ce()},onVolumeChange:function(e){a.audioClipVolume=e},onReady:function(){if(C&&window.location.hash){C=!1;var t=readParam();if(g=!0,t.hasOwnProperty("label")&&null!==t.label)xe(t.label,function(){addParam(a.indexName,{label:t.label+"",search:null,newimages:null,date:null},i.label+": "+t.label)});else if(t.hasOwnProperty("search")&&null!==t.search)Oe(t.search,function(){addParam(a.indexName,{search:t.search+"",label:null,newimages:null,date:null},i.search+": "+t.search)});else if(t.hasOwnProperty("newimages"))Re(Ae(t.newimages),function(){addParam(a.indexName,{newimages:t.newimages,search:null,label:null,date:null},i.searchNew+": "+t.newimages)});else if(t.hasOwnProperty("date")){var s=Ee(t.date);Re(s,function(){addParam(a.indexName,{date:t.date,newimages:null,search:null,label:null},ke(s.reference)+": "+t.date)})}else if(t.hasOwnProperty("img")&&null!==t.img){var n=_(t.img);n.length?t.hasOwnProperty("slideshow")?Z(n,2e3):Z(n):removeParam(a.pageName||a.indexName,"img")}else t.hasOwnProperty("slideshow")&&Z(0,2e3)}e("."+a.startshowClass).fadeIn().on("click",function(){return e(this).trigger("removeTooltip"),ye(),!1})}})}else e("."+a.startshowClass).fadeOut()}},Ce=function(e,t){(typeof e===UNDEF?"":"#"+paramize(e))!==window.location.hash&&(g=!0,e?setParam(a.pageName||a.indexName,e,t||""):removeParam(a.pageName||a.indexName),setTimeout(function(){g=!1},1e3))},ve=function(){if(window.location.hash!==p&&!g){p=window.location.hash,g=!1,C=!1;var e=readParam();if(e.hasOwnProperty("label")&&null!==e.label)xe(e.label,function(){je()});else if(e.hasOwnProperty("search")&&null!==e.search)Oe(e.search,function(){je()});else if(e.hasOwnProperty("newimages")&&null!==e.newimages)Re(Ae(e.newimages),function(){je()});else if(e.hasOwnProperty("date")&&null!==e.date){var t=Ee(e.date);Re(t,function(){je()})}else if(e.hasOwnProperty("img")&&null!==e.img){var s=_(e.img);s.length?e.hasOwnProperty("slideshow")?Z(s,2e3):Z(s):removeParam(a.indexName,"img")}else e.hasOwnProperty("slideshow")?Z(0,2e3):(L().trigger("lightboxQuit"),W())}},ye=function(t){var s=e();return a.restartSlideshow||(s=q("."+a.activeClass)),s.length||(s=q().eq(0)),!a.slideshowFullscreen||a.slideshowFullscreenOnlyMobiles&&!SMALLSCREEN||requestFullscreen(),Z(s,2e3),!1},be=function(s){var n=function(t){O()&&W(),o.hideAllTooltips();var s=E();return function(t,s){var n=e("<header>",{class:[a.contClass,a.overlayTitleClass,t&&t.hasOwnProperty("icon")?t.icon:""].filter(
24Boolean).join(" ")}).prependTo(typeof s===UNDEF?T():s);t&&t.hasOwnProperty("title")&&n.append(e("<h"+a.overlayHeadLevel+">",{html:t.title})),n.append(e("<a>",{class:"close",href:"",text:i.return}).on("click",function(){return W(),!1}))}(t,s),o.trigger("overlayReady",s),o.find("[data-sticky-rel]").trigger("stickyRefresh"),s}(s);return D(DEBUG?i.loading:""),function(e){((e=typeof e===UNDEF?T():e).length&&e.offset().top<t.scrollTop()||e.offset().top>t.scrollTop()+t.height()-100)&&t.scrollTop(e.offset().top)}(),n},Te=function(e,t,a){F(),ue(e,t,me),ae(0,t.length),se(t.length),ne(t.length),typeof a===FUNCTION&&a.call()},we=function(t,s){var n=$();if(n.length&&n.length!==q("."+a.lbableClass).length){var l=be({className:"selected-items",icon:"icon-checkbox-checked",title:"&ldquo;"+t+"&rdquo;"});setTimeout(function(){I(e("<small>",{text:i.foundNTimes.replace("{0}",n.length)})),Te(l,n,s)},50)}},Oe=function(t,s){var l=be({className:"search-results",icon:"icon-search",title:"&ldquo;"+t+"&rdquo;"});n.collectItems(e.extend(a.search,{terms:t,depth:"tree",ready:function(){var t=this.length;this.length>a.maxResults&&this.splice(a.maxResults),I(e("<small>",{text:t>a.maxResults?i.foundTooMany.replace("{0}",t).replace("{1}",this.length):t?i.foundNTimes.replace("{0}",t):i.notFound})),Te(l,this,s)}}))},Pe=function(t){if(t.length&&n){a.search=e.extend({depth:"tree",fields:"creator,keywords,title,comment"},a.search);var s=function(e){var t=e.find("input").eq(0).val();return t&&t.length>1&&Oe(t,function(){Ce({search:t},i.search+": "+t),je()}),!1};t.find(".search-btn").on("click",function(){return t.hasClass(a.activeClass)?(s(t),t.removeClass(a.activeClass)):(t.find("input").eq(0).focus(),t.addClass(a.activeClass)),!1}),t.on("submit",function(e){return e.preventDefault(),s(t),t.removeClass(a.activeClass),!1}),t.find("input").on("focus",function(){t.addClass(a.activeClass)})}},xe=function(t,s,l){var r=be({className:"tags-found",icon:"icon-tag",title:"&ldquo;"+t+"&rdquo;"});typeof s===UNDEF?s=!1:typeof s===FUNCTION&&(l=s,s=!1),n.collectItems(e.extend(a.tagCloud,{caseSensitive:s,exact:!0,terms:t,ready:function(){var t=this.length;this.length>a.maxResults&&this.splice(a.maxResults),I(e("<small>",{text:t>a.maxResults?i.foundTooMany.replace("{0}",t).replace("{1}",this.length):t?i.foundNTimes.replace("{0}",t):i.notFound})),Te(r,this,l)}}))},Ne=function(t){var s=e(a.tagCloud.hook||".tag-cloud-cont");if(s.length){if(t.length){var l=s.children("."+a.tagCloudClass),r=function(){var t=e(this).children("span").eq(0).text();return t&&function(t,s,l){var r=be({className:"tags-found",icon:"icon-tag",title:"&ldquo;"+t+"&rdquo;"});n.collectByPath({paths:s,ready:function(){var t=this.length;this.length>a.maxResults&&this.splice(a.maxResults),I(e("<small>",{text:t>a.maxResults?i.foundTooMany.replace("{0}",t).replace("{1}",this.length):t?i.foundNTimes.replace("{0}",t):i.notFound})),Te(r,this,l)}})}(t,e(this).data("paths"),function(){Ce({label:t},i.label+": "+t),je()}),!1};l.length||(l=e("<div>",{class:a.tagCloudClass}).appendTo(s));for(var o,c,d,h=0,u=t.length;h<u;h++){if(o=e("<a>",{class:"tag"}).on("click",r).data("paths",t[h][1]).append(e("<span>",{html:t[h][0]})),t[h][1].length>1){if(a.tagCloud.fontVaries){for(c=0,d=Math.min(64,t[h][1].length);d>1;)c++,d>>=1;o.addClass("size-"+c)}o.append("&nbsp;").append(e("<sup>",{text:t[h][1].length}))}l.append(o)}l.outerHeight()>175&&function(t){var s;t.css({maxHeight:150,overflow:"hidden"}),(s=e("<div>",{class:"toggle-height"}).insertAfter(t)).append(e("<a>",{class:"icon-caret-down",text:i.more}).on("click",function(){var e=t.parent();e.css({height:e.height(),overflow:"hidden"}),t.css({maxHeight:"none"}),setTimeout(function(){var n=t.prop("scrollHeight");e.css({height:"auto",overflow:"visible"}),t.css({maxHeight:150}),setTimeout(function(){t.css({maxHeight:n+20})},25),s.addClass(a.activeClass)},50)})).append(e("<a>",{class:"icon-caret-up",text:i.less}).on("click",function(){t.css({maxHeight:150}),s.removeClass(a.activeClass)}))}(l)}a.tagCloud.useSearch?function(t){var s=t.find("."+a.tagSearchClass),n=function(e){var t=e.find("input").eq(0).val();return t&&xe(t,function(){Ce({label:t},i.label+": "+t),je()}),!1};s.length||((s=e("<form>",{class:a.tagSearchClass}).appendTo(t)).append(e("<div>",{class:"search-input"}).append(e("<input>",{type:"text",placeholder:i.searchPlaceholder,ariaLabel:i.search}))),s.append(e("<a>",{class:"search-btn icon-search"}))),s.find(".search-btn").on("click",function(){var t=e(this).closest("form");return t.find("input").eq(0).focus(),n(t),!1}),s.on("submit",function(t){return t.preventDefault(),n(e(this)),!1})}(s.parent()):t.length||s.parents(".box").eq(0).hide()}},Ae=function(e){return a.hasOwnProperty("searchNew")?{reference:a.searchNew.reference||"dateTaken",depth:a.searchNew.depth||"subfolders",start:v/ONEDAY_S-e}:{reference:"dateTaken",depth:"subfolders",start:v/ONEDAY_S-e}},Ee=function(e){var t=e.match(/^([amt])?([cts])?\:?(\d+)\-?(\d+)?/i),a={range:0,reference:"dateTaken",depth:"current"};return t&&(t[1]&&("a"===t[1]?a.added="added":"m"===t[1]?a.added="fileModified":"t"===t[1]&&(a.added="dateTaken")),t[2]&&("c"===t[2]?a.depth="current":"t"===t[2]?a.depth="tree":"s"===t[2]&&(a.depth="subfolders")),t[4]?(a.start=parseInt(t[3])||0,a.end=parseInt(t[4])):t[3]&&(a.start=parseInt(t[3]),a.range=1)),a},ke=function(e){return"dateTaken"===e?i.imagesTaken:"fileModified"===e?i.imagesModified:i.imagesAdded},Je=function(e){var t,a=ke(e.reference),s=(Math.floor(new Date/ONEDAY_MS),function(e){return new Date(e*ONEDAY_MS).toLocaleDateString(LOCALE)});return e.hasOwnProperty("end")||e.hasOwnProperty("start")?e.hasOwnProperty("end")?t=i.beforeDay.template(s(e.end)):e.hasOwnProperty("start")&&(t=e.hasOwnProperty("range")?e.range>1?i.betweenDays.template(s(e.start),s(e.start+e.range)):i.onDay.template(s(e.start)):getTimespan(v/ONEDAY_S-e.start)):t=getTimespan(e.range),a+" "+t},Re=function(t,s){var l=be({className:"search-results",icon:"icon-calendar",title:Je(t)});n.collectByDate(e.extend(t,{ready:function(){var t=this.length;this.length>a.maxResults&&this.splice(a.maxResults),I(e("<small>",{text:t>a.maxResults?i.foundTooMany.replace("{0}",t).replace("{1}",this.length):t?i.foundNTimes.replace("{0}",t):i.notFound})),Te(l,this,s)}}))},Ie=function(t){return t&&Re(e.extend(a.searchNew,{start:v/ONEDAY_S-t}),function(){Ce({newimages:t},ke(a.searchNew.reference)),je()}),!1},De=function(e,t){return e.hasOwnProperty(J.DATES)?"addedDate"===t?e[J.DATES].added:"originalDate"===t?e[J.DATES].dateTaken:e[J.DATES].fileModified:null},Me=function(t,s){var n=e(t.target).closest("form"),l=X(),r=l.length,o={},c=[];if(n.find("select:visible:not(:disabled),input[type=range],input[type=date]").each(function(){var t=this.name,s=n.find("label[for="+t+"]").text(),r=e(this).data("type"),i=e(this).val(),d=function(a){return"rating"===t?Math.round(a):"fileSize"===t?niceByte(a):"date"===r?new Date(1e3*a).toLocaleDateString(LOCALE):"numeric"===r?"seconds"===e(this).data("unit")?niceTime(a):"byte"===e(this).data("unit")?niceByte(a):a>=10?Math.round(a):a>=1?a.toFixed(1):a>=.1?a.toFixed(2):a:toCurrency(a,y)};if("numeric"===r||"date"===r||"financial"===r){var h=e(this).data("low"),u=e(this).data("high");if(h>this.min||u<this.max){if(t.endsWith("Date"))for(f=l.length-1;f>=0;f--)null!==(m=De(l[f],t))&&m>=h&&m<=u||l.splice(f,1);else if(-1!==JCAMERAFIELDS.indexOf(t))if("exposureTime"===t)for(f=l.length-1;f>=0;f--)l[f].hasOwnProperty(J.CAMERA)&&l[f][J.CAMERA].hasOwnProperty(t)&&(m=getExposure(l[f][J.CAMERA][t]))&&m>=h&&m<=u||l.splice(f,1);else if(t.startsWith("focalLength"))for(f=l.length-1;f>=0;f--)l[f].hasOwnProperty(J.CAMERA)&&l[f][J.CAMERA].hasOwnProperty(t)&&!isNaN(m=parseFloat(l[f][J.CAMERA][t]))&&m>=h&&m<=u||l.splice(f,1);else for(f=l.length-1;f>=0;f--)l[f].hasOwnProperty(J.CAMERA)&&l[f][J.CAMERA].hasOwnProperty(t)&&!isNaN(m=parseFloat(l[f][J.CAMERA][t]))&&m>=h&&m<=u||l.splice(f,1);else if("rating"===t)for(var f=l.length-1,p=a.visitorRating?J.VISITORRATING:J.RATING;f>=0;f--)(m=l[f][p]||0)>=h&&m<=u||l.splice(f,1);else for(f=l.length-1;f>=0;f--)!isNaN(m=parseFloat(l[f][t]))&&m>=h&&m<=u||l.splice(f,1);c.push(s+"="+d(h)+"&ndash;"+d(u))}}else if("SELECT"===this.nodeName&&null!==i&&i.length){if(Array.isArray(i)||(i=[i]),-1!==JCAMERAFIELDS.indexOf(t))for(f=l.length-1;f>=0;f--)l[f].hasOwnProperty(J.CAMERA)&&l[f][J.CAMERA].hasOwnProperty(t)&&null!==(m=l[f][J.CAMERA][t])&&i.includes(m)||l.splice(f,1);else for(var g,m,f=l.length-1;f>=0;f--){if(l[f].hasOwnProperty(t))if(m=l[f][t],Array.isArray(m)){g=!1;for(var C=0;C<i.length;
24C++)if(m.includes(i[C])){g=!0;break}if(g)continue}else if(i.includes(m))continue;l.splice(f,1)}o[t]=i,this.multiple?c.push(t+"=["+i.join(",")+"]"):c.push(s+"="+i)}}),l.length<r){var d=be({className:"filtered-items",icon:"icon-filter",title:i.results});isEmpty(o)||d.data("sbd",o),setTimeout(function(){I(e("<small>",{html:c.join(", ")+": "+i.foundNTimes.replace("{0}",l.length)})),d.on("overlayRemoved",He),Te(d,l,s)},50)}return!1},Fe=function(t,s){var n=this.selectedOptions[0],l=this.value;if(!n||!l)return!0;var r,o,c=X(),d=e(n).data("sort"),h=d.type,u=d.ascending;if("numeric"===h||"financial"===h||"date"===h)if(l.endsWith("Date"))c=c.sort(function(e,t){return r=De(e,l),o=De(t,l),u?(r||0)-(o||0):(o||0)-(r||0)});else if(-1!==JCAMERAFIELDS.indexOf(l))c="exposureTime"===l?c.sort(function(e,t){return r=e.hasOwnProperty(J.CAMERA)&&e[J.CAMERA].hasOwnProperty(l)?e[J.CAMERA][l]:0,o=t.hasOwnProperty(J.CAMERA)&&t[J.CAMERA].hasOwnProperty(l)?t[J.CAMERA][l]:0,u?getExposure(r||0)-getExposure(o||0):getExposure(o||0)-getExposure(r||0)}):c.sort(function(e,t){return r=e.hasOwnProperty(J.CAMERA)&&e[J.CAMERA].hasOwnProperty(l)?parseFloat(e[J.CAMERA][l]):0,o=t.hasOwnProperty(J.CAMERA)&&t[J.CAMERA].hasOwnProperty(l)?parseFloat(t[J.CAMERA][l]):0,u?(r||0)-(o||0):(o||0)-(r||0)});else if("rating"===l){var f=a.visitorRating?J.VISITORRATING:J.RATING;c=c.sort(function(e,t){return u?(e[f]||0)-(t[f]||0):(t[f]||0)-(e[f]||0)})}else c=c.sort(function(e,t){return e.hasOwnProperty(l)&&t.hasOwnProperty(l)?u?parseFloat(e[l])-parseFloat(t[l]):parseFloat(t[l])-parseFloat(e[l]):u?e.hasOwnProperty(l)?1:0:t.hasOwnProperty(l)?-1:0});else c=c.sort(function(e,t){return e.hasOwnProperty(l)&&t.hasOwnProperty(l)?u?(e[l]+"").localeCompare(t[l]+""):(t[l]+"").localeCompare(e[l]+""):u?e.hasOwnProperty(l)?1:0:t.hasOwnProperty(l)?-1:0});var p=be({className:"sorted-items",icon:"icon-ordering",title:i.sortedBy+"<small>"+d.label+" ("+(d.ascending?i.ascending:i.descending)+")</small>"});return setTimeout(function(){p.on("overlayRemoved",Ge),Te(p,c,s)},50),!1},Se=function(t){(typeof t===UNDEF||t.hasOwnProperty("target")?e(this).closest("form"):t).find("button[type=reset]").removeClass("disabled")},Be=function(t){(typeof t===UNDEF||t.hasOwnProperty("target")?e(this).closest("form"):t).find("button[type=reset]").addClass("disabled")},Ue=function(t){t.find("select").each(function(){e(this).prop("selectedIndex",this.multiple?-1:0)}),t.find("input[type=range]").each(function(){e(this).trigger("resetRange")}),Be(t)},Le=function(t){return Ue(e(t.target).closest("form")),!1},He=function(){Ge(),Ue(e("#filters form.filter"))},Ge=function(){e("#filters form.sort select").prop("selectedIndex",0)},qe=function(t){var s=X(),l=T().data("sbd"),r=n.getPropertyObject(n.getCurrentFolder(),J.FILTERS,!0),o=n.getPropertyObject(n.getCurrentFolder(),J.SORT,!0),c=e("#filters");if((r||o)&&s.length){var d,h,u,p,g,m=c.find("."+a.boxClass),C=m.find("form.filter"),v=m.find("form.sort");if(t?m.addClass(a.hideOnOverlayClass):((m=e("<div>",{class:a.contClass+" "+a.boxClass+" small-column",id:"filters_"+N()}).appendTo(c)).append(e("<h4>",{class:"icon-"+(r?"filter":"ordering"),text:c.find("h4").text()})),r&&(C=e("<form>",{class:"filter"}).appendTo(m)),o&&(v=e("<form>",{class:"sort"}).appendTo(m)),S(m)),p=e("<div>",{class:"buttons"}).appendTo(C),r){r=function(e,t){if(t&&e.length){var s=function(e,t){e.hasOwnProperty("min")&&e.hasOwnProperty("max")?e.min>t?e.min=t:e.max<t&&(e.max=t):e.min=e.max=t};for(var n in t){var l=t[n],r=l.type;if("numeric"===r||"date"===r||"financial"===r)if(n.endsWith("Date"))for(o=e.length-1;o>=0;o--)null!==(c=De(e[o],n))&&s(l,c);else if(-1!==JCAMERAFIELDS.indexOf(n))if("exposureTime"===n)for(o=e.length-1;o>=0;o--)e[o].hasOwnProperty(J.CAMERA)&&e[o][J.CAMERA].hasOwnProperty(n)&&(c=getExposure(e[o][J.CAMERA][n]))&&s(l,c);else if(n.startsWith("focalLength"))for(o=e.length-1;o>=0;o--)e[o].hasOwnProperty(J.CAMERA)&&e[o][J.CAMERA].hasOwnProperty(n)&&!isNaN(c=parseFloat(e[o][J.CAMERA][n]))&&s(l,c);else for(o=e.length-1;o>=0;o--)e[o].hasOwnProperty(J.CAMERA)&&e[o][J.CAMERA].hasOwnProperty(n)&&!isNaN(c=parseFloat(e[o][J.CAMERA][n]))&&s(l,c);else if("rating"===n)for(var o=e.length-1,i=a.visitorRating?J.VISITORRATING:J.RATING;o>=0;o--)s(l,c=e[o][i]||0);else for(o=e.length-1;o>=0;o--)isNaN(c=parseFloat(e[o][n]))||s(l,c);else if(l.hasOwnProperty("values")||(l.values=[]),-1!==JCAMERAFIELDS.indexOf(n))for(o=0;o<e.length;o++)e[o].hasOwnProperty(J.CAMERA)&&e[o][J.CAMERA].hasOwnProperty(n)&&pushNew(l.values,(e[o][J.CAMERA][n]+"").trim());else{for(var c,o=0;o<e.length;o++)e[o].hasOwnProperty(n)&&pushNew(l.values,e[o][n]);l.values.length>1&&(l.values=l.values.sort(function(e,t){return e.localeCompare(t)}))}}return t}}(s,r);var y;for(var b in r){if(u=r[b].type,d=e("<div>",{class:"group "+("multiple_string"===u||"single_string"===u?"select":"range")}).insertBefore(p),r[b].label&&e("<label>",{for:b,text:r[b].label}).appendTo(d),"multiple_string"===u||"single_string"===u)if("rating"===b&&(r[b].values=[i.noRating,1,2,3,4,5]),h=e("<select>",{id:b,name:b}).appendTo(d),"multiple_string"===u&&(h.attr("multiple",!0),h.addTooltip(i.multipleSelectHint,{delay:600,stay:3e3})),r[b].hasOwnProperty("values")&&r[b].values.length){if((t||"single_string"===u&&r[b].values.length>1)&&h.prepend(e("<option>",{text:i.select,disabled:"",selected:""})),r[b].values)for(var w=0;w<r[b].values.length;w++)h.append(e("<option>",{text:r[b].values[w]}));t||(1===r[b].values.length?(h.prop("disabled",!0),h.children().first().prop("selected",!0)):l&&l.hasOwnProperty(b)&&h.children("option:enabled").each(function(t){l[b].includes(r[b].values[t])&&e(this).prop("selected",!0)})),h.on("change",Se)}else d.remove();else h=e("<input>",{id:b,name:b,type:"range"}).data("type",u).prependTo(d),"rating"===b&&(r[b].step=1,r[b].min=0,r[b].max=5),r[b].hasOwnProperty("min")&&r[b].hasOwnProperty("max")&&r[b].min!==r[b].max?("financial"===u&&(y=r[b].label.match(/\S+\s+[\(\[](\S+)[\)\]]/))?r[b].currency=y[1]:"numeric"===u&&("exposureTime.shutterSpeed".indexOf(b)>=0?r[b].unit="seconds":"fileSize"===b&&(r[b].unit="byte",r[b].step=1)),r[b].onChanged=Se,r[b].onReseted=Be,h.rangeSlider(r[b])):d.remove();h.attr("data-type",u||"single_string")}(h=C.find("input,select")).length&&(C.data("single",1===h.length&&"SELECT"===h[0].nodeName&&!h.attr("multiple")),t&&C.data("single")||(g=e("<button>",{type:"reset",class:(t?"disabled secondary":"alert")+" button",text:" "+i.reset}).appendTo(p),t?g.on("click."+f,Le):g.on("click."+f,function(){He(),W()})),C.data("single")?h.on("change."+f,Me):((g=C.find("button[type=submit]")).length||(g=e("<button>",{type:"submit",class:"button",text:" "+i.search}).appendTo(p)),g.on("click."+f,Me)),C.on("submit."+f,Me))}if(p.is(":empty")&&p.remove(),o){e("<label>",{class:"icon-ordering",for:"sortby",text:" "}).appendTo(v),(h=e("<select>",{class:"small",id:"sortby",name:"sortby"}).appendTo(v)).prepend(e("<option>",{text:i.sortBy,disabled:"",selected:""}));for(var O in o)h.append(e("<option>",{html:"&#8613; "+o[O].label,value:O}).data("sort",{type:o[O].type,label:o[O].label,ascending:!0})),h.append(e("<option>",{html:"&#8615; "+o[O].label,value:O}).data("sort",{type:o[O].type,label:o[O].label,ascending:!1}));h.on("change."+f,Fe)}v&&v.length&&!v.is(":empty")||C&&C.length&&!C.is(":empty")||c.hide()}else t&&c.hide()},je=function(){if(a.hasOwnProperty("share"))if(Q()){var t=te();t&&e(a.share.hook).trigger("updateLinks",{sites:a.share,title:t[J.TITLE]||t[J.NAME].stripExt().replace(/[-_]/g," ").capitalize(),description:t[J.COMMENT]||"",image:n.getOptimalImagePath(t,[1200,800]),href:n.getAbsolutePath(t)})}else e(a.share.hook).trigger("updateLinks",{href:window.location.href})}
24,Ve=function(t){typeof t!==UNDEF&&(e.fn.renderShares.defaults.buttonTheme=t.buttonTheme||"dark",e.fn.renderShares.defaults.indexName=a.indexName,e.fn.renderShares.defaults.facebookAppId=t.facebookAppId||"",e.fn.renderShares.defaults.albumTitle=n.getAlbumTitle(),t.hasOwnProperty("emailSubject")&&(e.fn.renderShares.defaults.emailSubject=t.emailSubject),t.hasOwnProperty("emailBody")&&(e.fn.renderShares.defaults.emailBody=t.emailBody),e(t.hook).renderShares(t),t.hasOwnProperty("sites")&&(e.fn.lightbox.defaults.share=t.sites,e.fn.lightbox.defaults.shareHook=t.hook))},We=function(e,t){if(e&&e.length&&(t.markers=function(e){for(var t,a=[],s=0;s<e.length;s++)e[s]&&(t=n.getLocation(e[s]))&&a.push({title:[s+1+".",e[s].title,e[s].comment].filter(Boolean).join(" "),pos:t,link:e[s].path});return a}(e)),t.hasOwnProperty("markers")&&t.markers.length||t.hasOwnProperty("overlay")){var s=Y(!0);if(s.length)return s.data("inited")||(t.resPath=a.resPath,t.onMarkerClick=function(){if(this.hasOwnProperty("link")){var e=_(this.link);e.length&&(isFullscreen()&&exitFullscreen(),T().trigger("setactivecard",e),Z(e))}},t.hasOwnProperty("apiKey")&&(t.streetViewControl=t.typeControl=window.innerWidth>=640&&window.innerHeight>=640),s.closest("section").removeClass("hidden"),s.addMap(t),s.data("inited",!0)),void r.removeClass(a.noMapClass).addClass(a.hasMapClass)}r.removeClass(a.hasMapClass).addClass(a.noMapClass)},_e=function(){a.hasOwnProperty("tagCloud")&&"current"!==a.tagCloud.depth&&n.collectTags(e.extend(a.tagCloud,{ready:function(){Ne(this)}}))},ze=function(){if(n){var t,s,l=n.getFoldersAndWeblocs(),r=a.markNew.days*ONEDAY_S;z().each(function(n){n<l.length&&(s=l[n][J.DATES])&&(s=s[a.markNew.reference]||s[J.DATERANGE]&&(s[J.DATERANGE][1]||s[J.DATERANGE][0]))&&v-s<r&&(t=a.markNew.text?e("<span>",{class:"new-image",text:a.markNew.text}):e("<span>",{class:"icon-new-fill new-image"}),TOUCHENABLED||t.data("tooltip",new Date(1e3*s).toLocaleDateString(LOCALE)).addTooltip({delay:100}),e(this).find("."+a.thumbClass).eq(0).append(t))})}},Ye=null,Ke=!1,Qe=function(){if(Ke||K().is(":visible")||O())clearTimeout(Ye);else{Ye&&(clearTimeout(Ye),Ye=null);var s=t.scrollTop();if(Math.abs(s-b)>20)return b=s,void(Ye=setTimeout(Qe,a.scrollCheckInterval));var n=z("."+a.lazyloadClass);if(n.length){var l=t.height();Ke=!0,n.each(function(){var t=e(this),a=t.offset().top;if(a+t.height()>b-l){if(!(a<b+l))return!1;pe(t)}}),clearTimeout(Ye),Ye=setTimeout(Qe,a.scrollCheckInterval)}else t.off(".lazy");Ke=!1,b=s}},Ze=function(e){var t={images:0,audios:0,videos:0,others:0};return e.children().each(function(e){var a=this.innerText.split(/\W/),s=this.classList[0];if(!s&&a.length>1)switch(a[1]){case i.image:case i.images:s="images";break;case i.audio:case i.audios:s="audios";break;case i.video:case i.videos:s="videos";break;case i.other:case i.others:s="others";break;default:s="images"}t[s]+=parseInt(a[0])||0}),t},$e=function(e){var t="";return e.images&&(t+='<span class="image">'+e.images+"&nbsp;"+translate(e.images>1?"images":"image")+"</span>"),e.audios&&(t+='<span class="audio">'+e.audios+"&nbsp;"+translate(e.audios>1?"audios":"audio")+"</span>"),e.videos&&(t+='<span class="video">'+e.videos+"&nbsp;"+translate(e.videos>1?"videos":"video")+"</span>"),e.others&&(t+='<span class="other">'+e.others+"&nbsp;"+translate(e.others>1?"others":"other")+"</span>"),t},Xe=function(t,s){typeof t!==UNDEF&&t.length&&(a.hasOwnProperty("markNew")&&setTimeout(ze,300),setTimeout(function(){(!LOCAL||DEBUG)&&a.hasOwnProperty("weblocationCounts")&&a.weblocationCounts&&t.filter(".webloc.has-count").each(function(){var t,a=e(this).children(".caption"),s=Ze(a.find(".counts"));loadExternal(e(this).children(".thumb").attr("href"),function(){typeof this===OBJECT&&this.hasOwnProperty(J.DEEPCOUNTERS)&&(function(e){for(var t in e)if(0!==e[t])return!1;return!0}(t=function(e,t){var a={images:0,audios:0,videos:0,others:0};for(var s in e)t.hasOwnProperty(s)&&e[s]!==t[s]&&(a[s]=e[s]-t[s]);return a}(this[J.DEEPCOUNTERS],s))||(a.find(".counts").empty().append($e(this[J.DEEPCOUNTERS])),function(t){var a=e(".footer .counts"),s=Ze(a);for(var n in s)0!==t[n]&&(s[n]+=t[n]);a.empty().append($e(s))}(t)))})}),t.find(".mosaic").each(function(){var t=e(this).siblings(".thumb");e(this).children().each(function(a){var s=e(this).data("imgsrc")||e(this).children("img").eq(0).attr("src")||e(this).data("src");if(s){var n=e("<img>",{class:"mosimg hide-image",src:s.replace("/thumbs/","/slides/"),id:"mi"+a}).appendTo(t);e(this).on("mouseenter",function(e){setTimeout(function(){n.removeClass("hide-image").addClass("show-image")},100)}).on("mouseleave",function(e){setTimeout(function(){n.addClass("hide-image").removeClass("show-image")},200)})}})})},500),typeof s===FUNCTION&&s.call(self[0]))};return window.location.search&&removeSearch(),restoreScrollPosition(),e(window).on("beforeunload."+f,saveScrollPosition),loadPrefs(a,["audioClipVolume"],"lb_pref"),passDefaults(a,e.fn.lightbox.defaults,"indexName,level,resPath,useOriginals,previousFoldersLast,previousFolderPath,nextFoldersFirst,nextFolderPath,extraSizes,hiDpiThumbs,hiDpiImages,audioClipVolume,lightboxFullscreen,lightboxFullscreenOnlyMobiles,slideshowFullscreen,rightClickProtect,enableKeyboard,mouseWheelAction,fotomoto,useRating,visitorRating,lbableClass"),passDefaults(a.lightbox,e.fn.lightbox.defaults),function(){typeof Album===UNDEF&&console.log("Critical Error: Missing jalbum.album.js library!");var t=a.hasOwnProperty("tagCloud")&&"current"!==a.tagCloud.depth||"page"===a.pageType&&"newimages"===a.originalPage,l={makeDate:a.makeDate,rootPath:a.rootPath,relPath:a.relPath,hiDpiImages:a.hiDpiImages||!1,hiDpiThumbs:a.hiDpiThumbs||!1,folderImageFile:a.folderImageFileName,folderThumbFile:a.folderThumbFileName,thumbDims:a.thumbDims||[418,209],thumbsFillFrame:a.thumbsFill||!1,ready:"index"===a.pageType?function(){if(n){var t=n.getImages(),s=z(),l=t.length>0,o=s.length>0,f=e.fn.hasOwnProperty("paypal")&&n.hasShop(),p=a.hasOwnProperty("feedback");r.data("baseHasImages",l),ne(l),l&&function(e){return U().find("."+a.cardClass+" ."+a.thumbClass+(e||""))}().each(function(){this.dataset.href=this.href,this.href=""}),f?(c=e("#shop-root"),d=e("#shop-cont,#shop-box").eq(0),c.length&&(y=n.getCurrency(),e.fn.hasOwnProperty("rangeSlider")&&y&&(e.fn.rangeSlider.defaults.currency=y),c.paypal(n,{resPath:a.resPath,relPath:a.relPath,rootPath:a.rootPath,currency:y,getSelected:$,selectNone:function(){w().trigger("selectNone")},getCurrent:te,useFloatButton:!(c.parents(".shop-cont[data-sticky]").length||document.body.clientWidth>=640)}),c.find("."+a.addSelectedClass).on("click",function(){return c.trigger("addItems",$()),w().trigger("selectNone"),!1}),e.fn.lightbox.defaults.hasOwnProperty("shop")||(e.fn.lightbox.defaults.shop={}
24),e.fn.lightbox.defaults.shop.root=c)):(c=e(),d=e()),p?(h=e("#feedback-root"),u=e("#feedback"),h.length&&(h.feedback(n,e.extend({},a.feedback,{resPath:a.resPath,relPath:a.relPath,rootPath:a.rootPath,getSelected:$,selectNone:function(){w().trigger("selectNone")},getCurrent:te,useFloatButton:!(h.parents(".feedback-cont[data-sticky]").length||document.body.clientWidth>=640)})),h.find("."+a.addSelectedClass).on("click",function(){return h.trigger("addItems",$()),w().trigger("selectNone"),!1}),e.fn.lightbox.defaults.hasOwnProperty("feedback")||(e.fn.lightbox.defaults.feedback={}),e.fn.lightbox.defaults.feedback.root=h,e.fn.lightbox.defaults.feedbackBtnLabel=a.feedback.viewBtnLabel,e.fn.lightbox.defaults.feedbackAddBtnLabel=a.feedback.addBtnLabel,e.fn.lightbox.defaults.feedbackBtnTooltip=a.feedback.addBtnTooltip)):(h=e(),u=e()),(f||p)&&(d.add(u).find("."+a.selectAllClass).on("click",function(){return T().trigger("selectAll"),!1}),d.add(u).find("."+a.selectNoneClass).on("click",function(){return T().trigger("selectNone"),!1})),o&&Xe(s,Qe),l?(ue(w(),t,me),e(a.startSlideshowHook).on("click",ye)):(window.location.hash&&ve(),e(a.startSlideshowHook).hide()),a.hasOwnProperty("tagCloud")&&"current"===a.tagCloud.depth&&n.collectTags(e.extend(a.tagCloud,{ready:function(){Ne(this)}})),a.hasOwnProperty("search")&&Pe(e(a.search.hook)),a.hasOwnProperty("searchNew")&&function(t){if(t.length&&n){a.searchNew=e.extend({days:"3,30,90",depth:"folder",reference:"dateTaken",sinceLastVisit:!0},a.searchNew);var s=a.searchNew.days.split(",");t.append(e("<label>",{text:ke(a.searchNew.reference)})),t=e("<div>",{class:"buttons"}).appendTo(t);for(var l=0;l<s.length;l++)t.append(e("<a>",{class:"small button",text:getTimespan(s[l])}).data("days",parseInt(s[l],10)).on("click",function(){Ie(e(this).data("days"))}));if(a.searchNew.sinceLastVisit){var r=e.cookie("lastVisit"),o=Math.round(new Date/1e3);r&&r<o-ONEDAY_S&&t.append(e("<a>",{class:"small button",text:i.sinceMyLastVisit}).on("click",function(){Ie((o-r)/ONEDAY_S)})),e.cookie("lastVisit",o,31536e4)}}}(e(a.searchNew.hook)),a.hasOwnProperty("share")&&Ve(a.share);var g=e("[data-slider]");if(g.length){var m=g.data("slider")||{},C=[g.innerWidth(),g.innerHeight()];if(m.hasOwnProperty("names")){for(var v=0;v<m.names.length;v++)m.names[v]=[a.relPath,m.names[v]].filter(Boolean).join("/");n.collectByPath({folder:a.relPath,paths:m.names,levels:0,ready:function(){m.src=[];for(var e=0;e<this.length;e++)m.src.push(n.getOptimalImagePath(this[e],C,!0,!0));g.easySlider(m)}})}else n.collectNItem({folder:a.relPath,max:50,quick:!0,levels:2,include:"images",sortBy:"random",arRange:[Math.min(1,.5*C[0]/C[1]),Math.max(1,2*C[0]/C[1])],ready:function(){m.src=[];for(var e=0;e<this.length;e++)m.src.push(n.getOptimalImagePath(this[e],C,!0,!0));g.easySlider(m)}})}var b=e(".pages-cont [data-map]");b.length&&a.hasOwnProperty("map")&&(a.map.resPath=a.resPath,b.addMap(e.extend(a.map,b.data("map"))));var O=e("[data-jalbum-query]");if(O.length){var P=O.data("jalbum-query");P.hasOwnProperty("fn")&&n[P.fn](e.extend(P,{ready:function(t){for(var s,l=0,r=Math.min(this.length,10);l<r;l++)s=this[l],e("<a>",{href:n.getLink(s)}).appendTo(O).append(e("<img>",{src:n.getThumbPath(s),alt:s[J.TITLE]||s[J.NAME]}));this.length>10&&O.append(e("<a>",{class:"more",href:P.linkMore,text:"+"+(this.length-10)})),a.rightClickProtect&&O.on("contextmenu","img",function(e){return e.preventDefault(),!1})}}))}}}:function(){a.hasOwnProperty("search")&&Pe(e(a.search.hook)),a.hasOwnProperty("share")&&Ve(a.share),a.pageName=window.location.pathname.getFile();var t=[];if(q().each(function(){var s=e(this).find("."+a.thumbClass);s.data("href",s.attr("href")),s.attr("href",""),t.push(e(this).data(J.PATH))}),t.length)A(),n.collectByPath({paths:t,ready:function(){this.length?(r.data("baseHasImages",!0),ne(!0),ue(w(),this,me)):ne(!1)}});else{var s=e("[data-map]");s.length&&We(null,extend(a.map,s.data("map"))),r.data("baseHasImages",!1),ne(!1)}},loadDeep:t,fatalError:function(e,t){s.modal(typeof t===UNDEF?translate(e):translate(e).replace(/\{0\}/g,t),{title:i.fatalError,icon:"error",class:"small alert"})},locale:a.locale||"en-US"};a.indexName!==e.fn.skin.defaults.indexName&&(l.indexName=a.indexName),a.audioPoster!==e.fn.skin.defaults.audioPoster&&(l.audioPoster=a.audioPoster),a.videoPoster!==e.fn.skin.defaults.videoPoster&&(l.videoPoster=a.videoPoster),a.useOriginals&&(l.useOriginals=!0),t&&(l.deepReady=_e),n=new Album(e,l)}
24(),a.rightClickProtect&&j().add(z()).on("contextmenu","img",function(e){return e.preventDefault(),!1}),function(e){e.length&&e.audioPlayer({rootPath:a.rootPath})}(e("[data-audioPlayer]")),t.on("hashchange."+f,ve),r.on("overlayReady."+f,function(e,t){moveInView(t)}),e("[data-topnav-toggle]").on({click:function(){return s.toggleClass("menu-on"),!1},selectstart:function(e){return e.preventDefault(),!1}}),a.scrollToTopButton&&s.scrollToTopBtn(),hasFullscreen()&&(onFullscreenChange(function(e){s.toggleClass(a.fullscreenClass,e)}),e(".hero .controls .gofullscreen").on("click",requestFullscreen),e(".hero .controls .exitfullscreen").on("click",exitFullscreen),window.innerWidth<640&&goFullscreenOnLandscapeChange()),this.getAlbum=function(){return n},this},e.fn.skin.defaults={locale:"en-US",contentClass:"content",contClass:"cont",startSlideshowHook:".hero .start-show",hasOverlayClass:"has-overlay",baseOverlayClass:"base-overlay",hideOnOverlayClass:"hide-on-overlay",overlayClass:"overlay",overlayTitleClass:"title",overlayHeadLevel:3,hasImagesClass:"has-images",noImagesClass:"no-images",hasMapClass:"has-map",noMapClass:"no-map",hasShopClass:"has-shop",noShopClass:"no-shop",shoppableClass:"shoppable",progressClass:"progress",progressbarClass:"progressbar",maxResults:1e3,lightboxClass:"lightbox",sliderClass:"slider",belowfoldClass:"below-fold",foldersClass:"folders",folderClass:"folder",thumbnailsClass:"thumbnails",thumbClass:"thumb",boxClass:"box",mapBoxHook:"section.map,.map-cont",mapRootClass:"map-root",tagCloudClass:"tag-cloud",tagSearchClass:"tag-search",thumbLayout:"fixgrid",thumbsFill:!0,useAudioClipButton:!1,columns:5,thumbsPerBatch:20,thumbDims:[418,209],thumbGap:6,fixedShapeThumbs:!1,justifyWrapThreshold:.333333,imageClass:"image",captionClasses:"over bottom hover",cardClass:"card",folderCardClass:"foldercard",mosaicClass:"mosaic",captionPlacement:"below",lbableClass:"lbable",captionClass:"caption",commentClass:"comment",hascaptionClass:"hascaption",selectableClass:"selectable",selectedClass:"checked",activeClass:"active",preloadClass:"preload",lazyloadClass:"lazyload",placeholderClass:"placeholder",startshowClass:"start-btn",fullscreenClass:"fullscreen-on",panoClass:"pano",selectBoxClass:"select-box",selectAllClass:"select-all",selectNoneClass:"select-none",keepSelectedClass:"keep-selected",addSelectedClass:"add-selected",scrollCheckInterval:120,indexName:"index.html",folderImageFileName:"folderimage.jpg",folderThumbFileName:"folderthumb.jpg",audioPoster:"audio.poster.png",videoPoster:"video.poster.png",dateFormat:"M/d/yyyy",audioClipVolume:.75,lightboxFullscreen:!1,lightboxFullscreenOnlyMobiles:!1,slideshowFullscreen:!1,rightClickProtect:!1,useRating:!1,jalbumRating:!1,visitorRating:!1,showEmptyFilters:!1,enableKeyboard:!0,videoAuto:!0,linkToFolder:!0,useOriginals:!1,scrollToTopButton:!0}}(jQuery,jQuery(window),jQuery(document),jQuery("body"));

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.