function initComponents(){registerEvents();updateButtonState()}
function registerEvents(){$("#tmb-maps__ibus__opcio__linia").on("change",function(){inicializeTrasportInputs();$("#origen-tab").val(2)});$("#tmb-maps__ibus__opcio__linia:checked").on("change",function(){inicializeTrasportInputs();$("#origen-tab").val(2)});$("#tmb-maps__ibus__opcio__codi").on("change",function(){$("#origen-tab").val(1);updateButtonState()});$("#tmb-maps__ibus__linia").on("change",function(){var a=$(this).find("option:selected").data("nomlinia");initBusTrajectes(this.value,a,"1","1,2")});
$(".button-ibus-search__direct").click(function(){var a=getValueParadaiBus(),c=iBusMapsURL();checkStopiBus(a,c)});$("#tmb-maps__ibus__parada").on("change",updateButtonState);$("#tmb-maps__jotmbe__parada").on("change",updateButtonState);$("#tmb-ibus__codi").on("keyup",updateButtonState)}
function inicializeTrasportInputs(){jQuery.ajax({url:apiGisTransit+"/linies/bus/?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26cql_filter\x3d(CODI_FAMILIA+IN+(1,3,5,6,7,11))\x26propertyName\x3dID_LINIA,NOM_LINIA,DESC_LINIA,CODI_LINIA,ORIGEN_LINIA,DESTI_LINIA,NOM_TIPUS_TRANSPORT,ORDRE_FAMILIA,COLOR_LINIA,COLOR_TEXT_LINIA,ID_OPERADOR\x26sortBy\x3dORDRE_FAMILIA,CODI_LINIA\x26srsName\x3dEPSG:3857",type:"GET",dataType:"json",async:!0,success:function(a){var c=!0,b="",d;for(d in a.features)c&&
(initBusTrajectes(a.features[d].properties.CODI_LINIA,a.features[d].properties.NOM_LINIA,"1","1,2"),c=!1),b+='\x3coption value\x3d"'+a.features[d].properties.CODI_LINIA+'" data-nomlinia\x3d"'+a.features[d].properties.NOM_LINIA+'"\x3e'+a.features[d].properties.NOM_LINIA+"  "+a.features[d].properties.DESC_LINIA+"\x3c/option\x3e";$("#tmb-maps__ibus__linia").html(b);$("#tmb-ibus__codi").removeAttr("required");TMB.customInput.init()}})}
function getDestinationsInfo(a,c){""==$("#dd-tooltip-"+c+" .dd-tooltip__description").html().trim()&&jQuery.ajax({url:apiGisTransit+"/linies/bus/"+c+"/trajectes/recs?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26propertyName\x3dID_LINIA,NOM_LINIA,DESC_LINIA,CODI_LINIA,DESC_PAQUET,TIPUS_PAQUET,ID_SENTIT\x26sortBy\x3dTIPUS_PAQUET,ID_SENTIT",type:"GET",dataType:"json",async:!1,success:function(b){var d=b.features,f="";if(2<=b.totalFeatures)for(var h in d)1==d[h].properties.ID_SENTIT&&(f+=
'\x3ch3 class\x3d"dd-tooltip__title"\x3e'+d[h].properties.DESC_PAQUET+'\x3c/h3\x3e\x3cp class\x3d"dd-tooltip__text"\x3e\x3c/p\x3e');$("#dd-tooltip-"+c+" .dd-tooltip__description").html(f)}});$("#dd-tooltip-"+c).addClass("dd-tooltip--visible");$("#dd-tooltip-"+c).parents(".tmb-maps__panel--ibus").addClass("tmb-maps__panel--ibus-with-tooltip");TMB.doubleDestination.init();a.preventDefault()}
function getInfoDobleDestinacio(a,c){$("#tmb-maps__ibus__opcio__linia__contingut .option-group__title").append('\x3cspan class\x3d"dd-tooltip dd-tooltip--widget js__dd-tooltip" id\x3d"dd-tooltip-'+a+'"\x3e\x3ca href\x3d"" class\x3d"dd-tooltip__icon js__dd-tooltip-icon" onclick\x3d"return false;" onmouseover\x3d"getDestinationsInfo(event, '+a+')"\x3e?\x3c/a\x3e\x3cdiv class\x3d"dd-tooltip__panel js__dd-tooltip-panel"\x3e\x3cdiv class\x3d"dd-tooltip__panel-inner"\x3e\x3cdiv class\x3d"dd-tooltip__panel-line"\x3e\x3cspan class\x3d"line line--bus line--bus-'+
c.charAt(0).toLowerCase()+' line--med-alt"\x3e'+c+'\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"dd-tooltip__panel-content"\x3e\x3cdiv class\x3d"dd-tooltip__destination"\x3e'+TMB.l10n.vullanar.get("label.line.double.destination.text")+'\x3c/div\x3e\x3cdiv class\x3d"dd-tooltip__description"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/span\x3e')}
function initBusTrajectes(a,c,b,d){0==a?($("#busStop option:gt(0)").remove(),$("#tmb-maps__ibus__label__direccio__a").html('\x3cinput id\x3d"tmb-maps__ibus__direccio__a" name\x3d"tmb-maps__ibus__direccio" value\x3d"" type\x3d"radio" checked\x3d"checked"\x3e'+langDirection1),$("#tmb-maps__ibus__label__direccio__b").html('\x3cinput id\x3d"tmb-maps__ibus__direccio__b" name\x3d"tmb-maps__ibus__direccio" value\x3d"" type\x3d"radio"\x3e'+langDirection2)):jQuery.ajax({url:apiGisTransit+"/linies/bus/"+a+
"/trajectes/recs?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26propertyName\x3dORIGEN_TRAJECTE,DESTI_TRAJECTE,TIPUS_PAQUET,ID_SENTIT,ORIGEN_TRAJECTE,DESTI_TRAJECTE\x26sortBy\x3dTIPUS_PAQUET,ID_SENTIT",type:"GET",dataType:"json",async:!0,success:function(f){var h={},e;for(e in f.features){var k=f.features[e],g=k.properties.TIPUS_PAQUET,l=k.properties.ID_SENTIT;h.hasOwnProperty(l)||(h[l]=[]);h[l].push({tipus_paquet:g,desti_trajecte:k.properties.DESTI_TRAJECTE})}for(var m in h){f=b==m?
'checked\x3d"checked"':"";g=k="";l=1==m?"a":"b";for(e in h[m])k=""==k?h[m][e].tipus_paquet:k+","+h[m][e].tipus_paquet,""==g?g=h[m][e].desti_trajecte:g.includes(h[m][e].desti_trajecte)||(g+=" / "+h[m][e].desti_trajecte);$("#tmb-maps__ibus__label__direccio__"+l).html('\x3cinput id\x3d"tmb-maps__ibus__direccio__'+l+'" name\x3d"tmb-maps__ibus__direccio" value\x3d"'+a+"_"+m+"_"+k+'" type\x3d"radio" '+f+"\x3e"+g)}initLiniaBus(a,b,d)}})}
function initLiniaBus(a,c,b){jQuery.ajax({url:apiGisTransit+"/linies/bus/"+a+"/trajectes/parades?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26propertyName\x3dGEOMETRY,CODI_PARADA,NOM_PARADA,ORDRE\x26cql_filter\x3d(TIPUS_PAQUET+IN+("+b+")+AND+ID_SENTIT+IN+("+c+"))\x26sortBy\x3dORDRE",type:"GET",dataType:"json",async:!0,success:function(d){var f={},h=[];h.push($("\x3coption\x3e",{value:"",disabled:"disabled",selected:"true",text:langSelectStop}));for(var e in d.features){var k=d.features[e].properties,
g=$("\x3coption\x3e",{value:k.CODI_PARADA,text:k.NOM_PARADA+" ("+k.CODI_PARADA+")"});f[k.CODI_PARADA]||(h.push(g),f[k.CODI_PARADA]=k.NOM_PARADA)}$("#tmb-maps__ibus__parada option:gt(0)").remove();$("#tmb-maps__ibus__parada").html(h);$("#tmb-maps__ibus__direccio__b").change(function(){var l=this.value.split("_");initLiniaBus(l[0],l[1],l[2])});$("#tmb-maps__ibus__direccio__a").change(function(){var l=this.value.split("_");initLiniaBus(l[0],l[1],l[2])});$("#tmb-maps__ibus__parada").change();TMB.customInput.init()}})}
function iBusMapsURL(){var a="",c=getValueParadaiBus();c&&(a=iBusProximsBusosUrl+"/-/lineabus/parada-ibus/"+c);return a}function getValueParadaiBus(){var a;1==$("#origen-tab").val()?(a=$("#tmb-ibus__codi").val())||(a=$("#tmb-maps__jotmbe__parada").val()):a=$("#tmb-maps__ibus__parada option:selected").val();return a}
function checkStopiBus(a,c){jQuery.ajax({url:apiGisTransit+"/parades/"+a+"?app_id\x3d5befbceb\x26app_key\x3d3f91fc27fdc37cb88d1804760552f7d2",type:"GET",dataType:"json",async:!0,success:function(b){b.numberMatched&&0!=b.numberMatched?($("#tmb-maps-panel-3 .tmb-maps-text-err").hide(),$("#label-codi-ibus").css("color","#656565"),$("#tmb-ibus__codi").css("border","1px solid transparent"),c&&(window.location.href=c)):(b=$(".form-field--autosuggest-ibus .ui-autocomplete .ui-menu-item a").first().attr("href"))?
window.location.href=b:($("#tmb-maps-panel-3 .tmb-maps-text-err").show(),$("#label-codi-ibus").css("color","#E20110"),$("#tmb-ibus__codi").css("border","1px solid #E20110"))},error:function(){var b=$(".form-field--autosuggest-ibus .ui-autocomplete .ui-menu-item a").first().attr("href");b?window.location.href=b:($("#tmb-maps-panel-3 .tmb-maps-text-err").show(),$("#label-codi-ibus").css("color","#E20110"),$("#tmb-ibus__codi").css("border","1px solid #E20110"))}})}
function sortLines(a){a.sort(function(c,b){return c["t-in-s"]<b["t-in-s"]?-1:c["t-in-s"]>b["t-in-s"]?1:0})}
function onSocMapsURL(){var a=$("#tmb-maps__onsoc__carrer").val(),c=$("#tmb-maps__onsoc__carrer-lng").val(),b=$("#tmb-maps__onsoc__carrer-lat").val();if(a&&c&&b){var d=onSocTransportsPropersUrl+"/-/transportes-cercanos/resultados";d+="?coords\x3d"+b+encodeURIComponent(",")+c;d+="\x26loc\x3d"+$("#tmb-maps__onsoc__carrer").val();d=d+"\x26origen-tab\x3d1\x26soc__transport__direccio\x3don\x26isPoisO\x3d"+$("#tmb-maps__onsoc__carrer-isPoisO").val()}return d}
function vullAnarMapsURL(a,c,b,d,f,h,e,k,g){var l=getDateTime().split("/");if(a&&c&&b&&d&&f&&h&&e&&k&&g)var m=g;else a=$("#tmb-maps__origen__carrer").val(),c=$("#tmb-maps__origen__carrer-lng").val(),b=$("#tmb-maps__origen__carrer-lat").val(),d=$("#tmb-maps__desti__carrer").val(),f=$("#tmb-maps__desti__carrer-lng").val(),h=$("#tmb-maps__desti__carrer-lat").val(),e=$("#tmb-maps__origen__carrer-isPoisO").val(),k=$("#tmb-maps__desti__carrer-isPoisD").val();if(a&&d&&c&&b&&f&&h){var n=vullAnarTrajectesUrl+
"/-/trayectos-recomendados/resultados";n+="?coords__ori\x3d"+b+encodeURIComponent(",")+c;n+="\x26loc__ori\x3d"+encodeURIComponent(a);n+="\x26coords__dest\x3d"+h+encodeURIComponent(",")+f;n+="\x26loc__dest\x3d"+encodeURIComponent(d);n=n+"\x26origen-tab\x3d1\x26origen__carrer\x3d"+encodeURIComponent(a);n=n+"\x26soc__transport__transport\x3d1\x26soc__transport__linia__metro\x3d1\x26soc__transport__linia__bus\x3d1\x26soc__transport__direccio\x3don\x26soc__transport__parada\x3d1\x26desti-tab\x3d1\x26desti__carrer\x3d"+
encodeURIComponent(d);n=n+"\x26desti__transport__transport\x3d1\x26desti__transport__linia__metro\x3d1\x26desti__lloc__linia__bus\x3d1\x26desti__lloc__direccio\x3don\x26desti__transport__parada\x3d1\x26f__hora\x3dfalse\x26f__horari__dia\x3d"+l[0];n+="\x26f__horari__hora\x3d"+encodeURIComponent(l[1]);n=n+"\x26f__condicionant__bus\x3don\x26f__condicionant__metro\x3don\x26f__condicionants__caminar-durant\x3d10\x26f__condicionants__caminar-pas\x3d1\x26f__condicionants__transbordaments\x3d3\x26isPoisO\x3d"+
encodeURIComponent(e);n+="\x26isPoisD\x3d"+encodeURIComponent(k);n+="\x26isRoute\x3d"+encodeURIComponent(m)}return n}function getDateTime(){var a=new Date,c=a.getFullYear(),b=a.getMonth()+1,d=a.getDate(),f=a.getHours(),h=a.getMinutes();a.getSeconds();1===b.toString().length&&(b="0"+b);1===d.toString().length&&(d="0"+d);1===f.toString().length&&(f="0"+f);1===h.toString().length&&(h="0"+h);return c+"-"+b+"-"+d+"/"+f+":"+h}
function selectPlace(a,c,b){b=b.split(",");b=[parseFloat(b[0]),parseFloat(b[1])];coordinatesArray=ol.proj.transform(b,"EPSG:4326","EPSG:3857");c?$(".suggest-active").find("input[type\x3dtext]").val(c):$(".suggest-active").find("input[type\x3dtext]").val(a);$(".suggest-active").find("input[type\x3dhidden]").eq(0).val(coordinatesArray[1]);$(".suggest-active").find("input[type\x3dhidden]").eq(1).val(coordinatesArray[0]);$(".form__field__datalist--suggested.jotmbe-suggested-location").remove();0<$(".suggest-active").find("input[type\x3dhidden]").eq(2).length&&
("tmb-maps__origen__carrer-isPoisO"==$(".suggest-active").find("input[type\x3dhidden]").eq(2).attr("id")?updateLastPois("origen"):"tmb-maps__desti__carrer-isPoisD"==$(".suggest-active").find("input[type\x3dhidden]").eq(2).attr("id")?updateLastPois("desti"):"tmb-maps__onsoc__carrer-isPoisO"==$(".suggest-active").find("input[type\x3dhidden]").eq(2).attr("id")&&updateLastPois("soc"))}
function updateLastPois(a){"origen"==a?$("#tmb-maps__origen__carrer-isPoisO").val("true"):"desti"==a?$("#tmb-maps__desti__carrer-isPoisD").val("true"):$("#tmb-maps__onsoc__carrer-isPoisO").val("true")}
function suggestedLocationSuccess(a){var c=$(".tmb-maps__form--vull-anar .form__field"),b="",d="",f="",h;for(h in a.data.pois){var e=a.data.pois[h],k="";k=e.properties.alias?e.properties.alias:e.properties.address;f="CASA"===e.properties.type?f+('\x3cli class\x3d"datalist__item datalist__item--home" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+e.properties.address+"','"+e.properties.alias+"','"+e.geometry.coordinates+'\');" aria-label\x3d"'+langHome+'"\x3e'+k+" \x3c/a\x3e\x3c/li\x3e"):
"FEINA"===e.properties.type?f+('\x3cli class\x3d"datalist__item datalist__item--work" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+e.properties.address+"','"+e.properties.alias+"','"+e.geometry.coordinates+'\');" aria-label\x3d"'+langWork+'"\x3e'+k+" \x3c/a\x3e\x3c/li\x3e"):f+('\x3cli class\x3d"datalist__item datalist__item--place" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+e.properties.address+"','"+e.properties.alias+"','"+e.geometry.coordinates+'\');" aria-label\x3d"'+
e.properties.alias+'"\x3e'+k+" \x3c/a\x3e\x3c/li\x3e")}""!=f&&(b='\x3cul class\x3d"form__field__datalist form__field__datalist--suggested datalist jotmbe-suggested-location" role\x3d"list"\x3e \x3cli class\x3d"datalist__item datalist__item--title"\x3e'+langMyPlaces+"\x3c/li\x3e"+f+"\x3c/ul\x3e",d='\x3cul class\x3d"form__field__datalist form__field__datalist--suggested datalist jotmbe-suggested-location" role\x3d"list"\x3e\x3cli class\x3d"datalist__item datalist__item--title"\x3e'+langMyPlaces+"\x3c/li\x3e"+
f+"\x3c/ul\x3e",c.find("input[type\x3dtext]").on("focus",function(g){$(".form__field__datalist--suggested.jotmbe-suggested-location").remove();$(".suggest-active").removeClass("suggest-active");$(this).parents(".form__field--suggest-location").addClass("suggest-active");1>$(this).parents(".form__field--suggest-location").find(".form__field__datalist--suggested").length&&(1==$(this).parents(".form__field--suggest-location").data("suggestfull")?$(this).parent().append(b):2==$(this).parents(".form__field--suggest-location").data("suggestfull")?
$(this).parent().append(d):3==$(this).parents(".form__field--suggest-location").data("suggestfull")?$(this).parent().append(b):$(this).parent().append(""));$(this).parents(".form__field__control").removeClass("form__field__control--error").find("form__tooltip").remove();$(this).parents(".form__field--suggest-location").on("focusout",function(l){$(l.target).closest(".form__field--suggest-location").hasClass("suggest-active")||($(".suggest-active").removeClass("suggest-active"),$(this).find(".form__field__datalist--suggested.jotmbe-suggested-location").remove())})}));
$("body").on("click focusin",function(g){$(".suggest-active").length&&1>$(g.target).parents(".suggest-active").length&&($(".form__field__datalist--suggested.jotmbe-suggested-location").remove(),$(".suggest-active").removeClass("suggest-active"))});c.find("input[type\x3dtext]").on("keypress",function(g){$(this).parents(".form__field--suggest-location").find(".form__field__datalist--suggested.jotmbe-suggested-location").remove()});c.on("mousedown",".datalist__item--get-location",function(g){g.preventDefault()}).on("click",
".datalist__item--get-location",function(){initGeoSuggestedLocation();0===$(this).parents("form__field__control").find("form__field__control--error__tooltip").length&&$(this).parents(".form__field__control").append("").children(":last").hide().fadeIn(400,function(){$("#errorbox-1").click(function(g){$(this).is(":visible")&&$(this).fadeOut(400,function(){$(".suggest-active").removeClass("suggest-active");$(this).remove()})})})})}
function suggestedLocationError(){console.error("Error getting pois info")}var token=localStorage.getItem("kc_token");function suggestedLocation(){$(".tmb-maps__form--vull-anar .form__field");var a=localStorage.getItem("uuid");locations(a,"GET",null,suggestedLocationSuccess,suggestedLocationError,token)}
function suggestedLocationWidgetSuccess(a){var c=$(".form__field--suggest-location"),b="",d="",f=$(".tmb-maps__vull-anar__trajectes"),h=$(".js-maps-panel-vull-anar"),e="",k;for(k in a.data.pois){var g=a.data.pois[k],l="";l=g.properties.alias?g.properties.alias:g.properties.address;e="CASA"===g.properties.type?e+('\x3cli class\x3d"datalist__item datalist__item--home" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+g.properties.address+"','"+g.properties.alias+"','"+g.geometry.coordinates+
'\');" aria-label\x3d"'+langHome+'"\x3e'+l+" \x3c/a\x3e\x3c/li\x3e"):"FEINA"===g.properties.type?e+('\x3cli class\x3d"datalist__item datalist__item--work" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+g.properties.address+"','"+g.properties.alias+"','"+g.geometry.coordinates+'\');" aria-label\x3d"'+langWork+'"\x3e'+l+" \x3c/a\x3e\x3c/li\x3e"):e+('\x3cli class\x3d"datalist__item datalist__item--place" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+g.properties.address+
"','"+g.properties.alias+"','"+g.geometry.coordinates+'\');" aria-label\x3d"'+g.properties.alias+'"\x3e'+l+" \x3c/a\x3e\x3c/li\x3e")}""!=e&&(b='\x3cul class\x3d"form__field__datalist form__field__datalist--suggested datalist jotmbe-suggested-location" role\x3d"list"\x3e\x3cli class\x3d"datalist__item datalist__item--title"\x3e'+langMyPlaces+"\x3c/li\x3e"+e+"\x3c/ul\x3e",d='\x3cul class\x3d"form__field__datalist form__field__datalist--suggested datalist jotmbe-suggested-location" role\x3d"list"\x3e\x3cli class\x3d"datalist__item datalist__item--title"\x3e'+
langMyPlaces+"\x3c/li\x3e"+e+"\x3c/ul\x3e",c.find("input[type\x3dtext]").on("focus",function(m){$(".form__field__datalist--suggested.jotmbe-suggested-location").remove();$(".suggest-active").removeClass("suggest-active");$(this).parents(".form__field--suggest-location").addClass("suggest-active");f.css("visibility","hidden");h.css("overflow","visible");1>$(this).parents(".form__field--suggest-location").find(".form__field__datalist--suggested").length&&(1==$(this).parents(".form__field--suggest-location").data("suggestfull")?
$(this).parent().append(b):2==$(this).parents(".form__field--suggest-location").data("suggestfull")?$(this).parent().append(d):3==$(this).parents(".form__field--suggest-location").data("suggestfull")?$(this).parent().append(b):$(this).parent().append(""));$(this).parents(".form__field__control").removeClass("form__field__control--error").find("form__tooltip").remove();$(this).parents(".form__field--suggest-location").on("focusout",function(n){$(n.target).closest(".form__field--suggest-location").hasClass("suggest-active")||
($(".suggest-active").removeClass("suggest-active"),$(this).find(".form__field__datalist--suggested.jotmbe-suggested-location").remove())})}));$("body").on("click focusin",function(m){$(".suggest-active").length&&1>$(m.target).parents(".suggest-active").length&&($(".form__field__datalist--suggested.jotmbe-suggested-location").remove(),$(".suggest-active").removeClass("suggest-active"),h.removeAttr("style"))});c.find("input[type\x3dtext]").on("keypress",function(m){$(this).parents(".form__field--suggest-location").find(".form__field__datalist--suggested.jotmbe-suggested-location").remove()});
c.on("mousedown",".datalist__item--get-location",function(m){m.preventDefault()}).on("click",".datalist__item--get-location",function(){initGeoSuggestedLocation();0===$(this).parents("form__field__control").find("form__field__control--error__tooltip").length&&$(this).parents(".form__field__control").append("").children(":last").hide().fadeIn(400,function(){$("#errorbox-1").click(function(m){$(this).is(":visible")&&$(this).fadeOut(400,function(){$(".suggest-active").removeClass("suggest-active");$(this).remove()})})})})}
function suggestedLocationWidgetError(){console.error("Error getting pois info")}function suggestedLocationWidget(){$(".form__field--suggest-location");$(".tmb-maps__vull-anar__trajectes");$(".js-maps-panel-vull-anar");var a=localStorage.getItem("uuid");locations(a,"GET",null,suggestedLocationWidgetSuccess,suggestedLocationWidgetError,token)}
function initGeoSuggestedLocation(){navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition(function(a){successSuggestedLocation(a)},function(a){switch(a.code){case a.PERMISSION_DENIED:console.log(langErrorPermissionDenied);break;case a.POSITION_UNAVAILABLE:console.log(langErrorPositionUnavailable);break;case a.PERMISSION_DENIED_TIMEOUT:console.log(langErrorPermissionTimeout);break;case a.UNKNOWN_ERROR:console.log(langErrorUnknown);break;case a.TIMEOUT:console.log(langErrorPermissionDenied)}},
{enableHighAccuracy:!0,timeout:5E3}):error("Geo Location is not supported")}
function successSuggestedLocation(a){var c=new google.maps.Geocoder,b=new google.maps.LatLng(a.coords.latitude,a.coords.longitude);c.geocode({latLng:b},function(d,f){f==google.maps.GeocoderStatus.OK?d[0]&&(f=ol.proj.transform([a.coords.longitude,a.coords.latitude],"EPSG:4326","EPSG:3857"),$(".suggest-active").find("input[type\x3dtext]").val(d[0].formatted_address),$(".suggest-active").find("input[type\x3dhidden]").eq(0).val(f[0]),$(".suggest-active").find("input[type\x3dhidden]").eq(1).val(f[1]),
$(".form__field__datalist--suggested.jotmbe-suggested-location").remove()):console.log("Geocode was not successful for the following reason: "+f)})}function toggleButton(a){a?($(".button-ibus-search__direct").removeClass("button--disabled"),$(".button-ibus-search__direct").removeAttr("disabled")):($(".button-ibus-search__direct").addClass("button--disabled"),$(".button-ibus-search__direct").attr("disabled","disabled"))}
function updateButtonState(){if("1"===$("#origen-tab").val()){var a;codiStop=(a=TJS.velocity.getCookie("JoTMBeKCSession")?$("#tmb-maps__jotmbe__parada").val():$("#tmb-ibus__codi").val())?a:""}else codiStop=(a=$("#tmb-maps__ibus__parada").val())&&"0"!==a?a:"";toggleButton(codiStop)};
//     Underscore.js 1.8.3
//     http://underscorejs.org
//     (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
//     Underscore may be freely distributed under the MIT license.
(function(){function n(n){function t(t,r,e,u,i,o){for(;i>=0&&o>i;i+=n){var a=u?u[i]:i;e=r(e,t[a],a,t)}return e}return function(r,e,u,i){e=b(e,i,4);var o=!k(r)&&m.keys(r),a=(o||r).length,c=n>0?0:a-1;return arguments.length<3&&(u=r[o?o[c]:c],c+=n),t(r,e,u,o,c,a)}}function t(n){return function(t,r,e){r=x(r,e);for(var u=O(t),i=n>0?0:u-1;i>=0&&u>i;i+=n)if(r(t[i],i,t))return i;return-1}}function r(n,t,r){return function(e,u,i){var o=0,a=O(e);if("number"==typeof i)n>0?o=i>=0?i:Math.max(i+a,o):a=i>=0?Math.min(i+1,a):i+a+1;else if(r&&i&&a)return i=r(e,u),e[i]===u?i:-1;if(u!==u)return i=t(l.call(e,o,a),m.isNaN),i>=0?i+o:-1;for(i=n>0?o:a-1;i>=0&&a>i;i+=n)if(e[i]===u)return i;return-1}}function e(n,t){var r=I.length,e=n.constructor,u=m.isFunction(e)&&e.prototype||a,i="constructor";for(m.has(n,i)&&!m.contains(t,i)&&t.push(i);r--;)i=I[r],i in n&&n[i]!==u[i]&&!m.contains(t,i)&&t.push(i)}var u=this,i=u._,o=Array.prototype,a=Object.prototype,c=Function.prototype,f=o.push,l=o.slice,s=a.toString,p=a.hasOwnProperty,h=Array.isArray,v=Object.keys,g=c.bind,y=Object.create,d=function(){},m=function(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=m),exports._=m):u._=m,m.VERSION="1.8.3";var b=function(n,t,r){if(t===void 0)return n;switch(null==r?3:r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,i){return n.call(t,r,e,u,i)}}return function(){return n.apply(t,arguments)}},x=function(n,t,r){return null==n?m.identity:m.isFunction(n)?b(n,t,r):m.isObject(n)?m.matcher(n):m.property(n)};m.iteratee=function(n,t){return x(n,t,1/0)};var _=function(n,t){return function(r){var e=arguments.length;if(2>e||null==r)return r;for(var u=1;e>u;u++)for(var i=arguments[u],o=n(i),a=o.length,c=0;a>c;c++){var f=o[c];t&&r[f]!==void 0||(r[f]=i[f])}return r}},j=function(n){if(!m.isObject(n))return{};if(y)return y(n);d.prototype=n;var t=new d;return d.prototype=null,t},w=function(n){return function(t){return null==t?void 0:t[n]}},A=Math.pow(2,53)-1,O=w("length"),k=function(n){var t=O(n);return"number"==typeof t&&t>=0&&A>=t};m.each=m.forEach=function(n,t,r){t=b(t,r);var e,u;if(k(n))for(e=0,u=n.length;u>e;e++)t(n[e],e,n);else{var i=m.keys(n);for(e=0,u=i.length;u>e;e++)t(n[i[e]],i[e],n)}return n},m.map=m.collect=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=Array(u),o=0;u>o;o++){var a=e?e[o]:o;i[o]=t(n[a],a,n)}return i},m.reduce=m.foldl=m.inject=n(1),m.reduceRight=m.foldr=n(-1),m.find=m.detect=function(n,t,r){var e;return e=k(n)?m.findIndex(n,t,r):m.findKey(n,t,r),e!==void 0&&e!==-1?n[e]:void 0},m.filter=m.select=function(n,t,r){var e=[];return t=x(t,r),m.each(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e},m.reject=function(n,t,r){return m.filter(n,m.negate(x(t)),r)},m.every=m.all=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(!t(n[o],o,n))return!1}return!0},m.some=m.any=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(t(n[o],o,n))return!0}return!1},m.contains=m.includes=m.include=function(n,t,r,e){return k(n)||(n=m.values(n)),("number"!=typeof r||e)&&(r=0),m.indexOf(n,t,r)>=0},m.invoke=function(n,t){var r=l.call(arguments,2),e=m.isFunction(t);return m.map(n,function(n){var u=e?t:n[t];return null==u?u:u.apply(n,r)})},m.pluck=function(n,t){return m.map(n,m.property(t))},m.where=function(n,t){return m.filter(n,m.matcher(t))},m.findWhere=function(n,t){return m.find(n,m.matcher(t))},m.max=function(n,t,r){var e,u,i=-1/0,o=-1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],e>i&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(u>o||u===-1/0&&i===-1/0)&&(i=n,o=u)});return i},m.min=function(n,t,r){var e,u,i=1/0,o=1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],i>e&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(o>u||1/0===u&&1/0===i)&&(i=n,o=u)});return i},m.shuffle=function(n){for(var t,r=k(n)?n:m.values(n),e=r.length,u=Array(e),i=0;e>i;i++)t=m.random(0,i),t!==i&&(u[i]=u[t]),u[t]=r[i];return u},m.sample=function(n,t,r){return null==t||r?(k(n)||(n=m.values(n)),n[m.random(n.length-1)]):m.shuffle(n).slice(0,Math.max(0,t))},m.sortBy=function(n,t,r){return t=x(t,r),m.pluck(m.map(n,function(n,r,e){return{value:n,index:r,criteria:t(n,r,e)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index-t.index}),"value")};var F=function(n){return function(t,r,e){var u={};return r=x(r,e),m.each(t,function(e,i){var o=r(e,i,t);n(u,e,o)}),u}};m.groupBy=F(function(n,t,r){m.has(n,r)?n[r].push(t):n[r]=[t]}),m.indexBy=F(function(n,t,r){n[r]=t}),m.countBy=F(function(n,t,r){m.has(n,r)?n[r]++:n[r]=1}),m.toArray=function(n){return n?m.isArray(n)?l.call(n):k(n)?m.map(n,m.identity):m.values(n):[]},m.size=function(n){return null==n?0:k(n)?n.length:m.keys(n).length},m.partition=function(n,t,r){t=x(t,r);var e=[],u=[];return m.each(n,function(n,r,i){(t(n,r,i)?e:u).push(n)}),[e,u]},m.first=m.head=m.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:m.initial(n,n.length-t)},m.initial=function(n,t,r){return l.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},m.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:m.rest(n,Math.max(0,n.length-t))},m.rest=m.tail=m.drop=function(n,t,r){return l.call(n,null==t||r?1:t)},m.compact=function(n){return m.filter(n,m.identity)};var S=function(n,t,r,e){for(var u=[],i=0,o=e||0,a=O(n);a>o;o++){var c=n[o];if(k(c)&&(m.isArray(c)||m.isArguments(c))){t||(c=S(c,t,r));var f=0,l=c.length;for(u.length+=l;l>f;)u[i++]=c[f++]}else r||(u[i++]=c)}return u};m.flatten=function(n,t){return S(n,t,!1)},m.without=function(n){return m.difference(n,l.call(arguments,1))},m.uniq=m.unique=function(n,t,r,e){m.isBoolean(t)||(e=r,r=t,t=!1),null!=r&&(r=x(r,e));for(var u=[],i=[],o=0,a=O(n);a>o;o++){var c=n[o],f=r?r(c,o,n):c;t?(o&&i===f||u.push(c),i=f):r?m.contains(i,f)||(i.push(f),u.push(c)):m.contains(u,c)||u.push(c)}return u},m.union=function(){return m.uniq(S(arguments,!0,!0))},m.intersection=function(n){for(var t=[],r=arguments.length,e=0,u=O(n);u>e;e++){var i=n[e];if(!m.contains(t,i)){for(var o=1;r>o&&m.contains(arguments[o],i);o++);o===r&&t.push(i)}}return t},m.difference=function(n){var t=S(arguments,!0,!0,1);return m.filter(n,function(n){return!m.contains(t,n)})},m.zip=function(){return m.unzip(arguments)},m.unzip=function(n){for(var t=n&&m.max(n,O).length||0,r=Array(t),e=0;t>e;e++)r[e]=m.pluck(n,e);return r},m.object=function(n,t){for(var r={},e=0,u=O(n);u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},m.findIndex=t(1),m.findLastIndex=t(-1),m.sortedIndex=function(n,t,r,e){r=x(r,e,1);for(var u=r(t),i=0,o=O(n);o>i;){var a=Math.floor((i+o)/2);r(n[a])<u?i=a+1:o=a}return i},m.indexOf=r(1,m.findIndex,m.sortedIndex),m.lastIndexOf=r(-1,m.findLastIndex),m.range=function(n,t,r){null==t&&(t=n||0,n=0),r=r||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;e>i;i++,n+=r)u[i]=n;return u};var E=function(n,t,r,e,u){if(!(e instanceof t))return n.apply(r,u);var i=j(n.prototype),o=n.apply(i,u);return m.isObject(o)?o:i};m.bind=function(n,t){if(g&&n.bind===g)return g.apply(n,l.call(arguments,1));if(!m.isFunction(n))throw new TypeError("Bind must be called on a function");var r=l.call(arguments,2),e=function(){return E(n,e,t,this,r.concat(l.call(arguments)))};return e},m.partial=function(n){var t=l.call(arguments,1),r=function(){for(var e=0,u=t.length,i=Array(u),o=0;u>o;o++)i[o]=t[o]===m?arguments[e++]:t[o];for(;e<arguments.length;)i.push(arguments[e++]);return E(n,r,this,this,i)};return r},m.bindAll=function(n){var t,r,e=arguments.length;if(1>=e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=m.bind(n[r],n);return n},m.memoize=function(n,t){var r=function(e){var u=r.cache,i=""+(t?t.apply(this,arguments):e);return m.has(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return r.cache={},r},m.delay=function(n,t){var r=l.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},m.defer=m.partial(m.delay,m,1),m.throttle=function(n,t,r){var e,u,i,o=null,a=0;r||(r={});var c=function(){a=r.leading===!1?0:m.now(),o=null,i=n.apply(e,u),o||(e=u=null)};return function(){var f=m.now();a||r.leading!==!1||(a=f);var l=t-(f-a);return e=this,u=arguments,0>=l||l>t?(o&&(clearTimeout(o),o=null),a=f,i=n.apply(e,u),o||(e=u=null)):o||r.trailing===!1||(o=setTimeout(c,l)),i}},m.debounce=function(n,t,r){var e,u,i,o,a,c=function(){var f=m.now()-o;t>f&&f>=0?e=setTimeout(c,t-f):(e=null,r||(a=n.apply(i,u),e||(i=u=null)))};return function(){i=this,u=arguments,o=m.now();var f=r&&!e;return e||(e=setTimeout(c,t)),f&&(a=n.apply(i,u),i=u=null),a}},m.wrap=function(n,t){return m.partial(t,n)},m.negate=function(n){return function(){return!n.apply(this,arguments)}},m.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},m.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},m.before=function(n,t){var r;return function(){return--n>0&&(r=t.apply(this,arguments)),1>=n&&(t=null),r}},m.once=m.partial(m.before,2);var M=!{toString:null}.propertyIsEnumerable("toString"),I=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];m.keys=function(n){if(!m.isObject(n))return[];if(v)return v(n);var t=[];for(var r in n)m.has(n,r)&&t.push(r);return M&&e(n,t),t},m.allKeys=function(n){if(!m.isObject(n))return[];var t=[];for(var r in n)t.push(r);return M&&e(n,t),t},m.values=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},m.mapObject=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=u.length,o={},a=0;i>a;a++)e=u[a],o[e]=t(n[e],e,n);return o},m.pairs=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},m.invert=function(n){for(var t={},r=m.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},m.functions=m.methods=function(n){var t=[];for(var r in n)m.isFunction(n[r])&&t.push(r);return t.sort()},m.extend=_(m.allKeys),m.extendOwn=m.assign=_(m.keys),m.findKey=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=0,o=u.length;o>i;i++)if(e=u[i],t(n[e],e,n))return e},m.pick=function(n,t,r){var e,u,i={},o=n;if(null==o)return i;m.isFunction(t)?(u=m.allKeys(o),e=b(t,r)):(u=S(arguments,!1,!1,1),e=function(n,t,r){return t in r},o=Object(o));for(var a=0,c=u.length;c>a;a++){var f=u[a],l=o[f];e(l,f,o)&&(i[f]=l)}return i},m.omit=function(n,t,r){if(m.isFunction(t))t=m.negate(t);else{var e=m.map(S(arguments,!1,!1,1),String);t=function(n,t){return!m.contains(e,t)}}return m.pick(n,t,r)},m.defaults=_(m.allKeys,!0),m.create=function(n,t){var r=j(n);return t&&m.extendOwn(r,t),r},m.clone=function(n){return m.isObject(n)?m.isArray(n)?n.slice():m.extend({},n):n},m.tap=function(n,t){return t(n),n},m.isMatch=function(n,t){var r=m.keys(t),e=r.length;if(null==n)return!e;for(var u=Object(n),i=0;e>i;i++){var o=r[i];if(t[o]!==u[o]||!(o in u))return!1}return!0};var N=function(n,t,r,e){if(n===t)return 0!==n||1/n===1/t;if(null==n||null==t)return n===t;n instanceof m&&(n=n._wrapped),t instanceof m&&(t=t._wrapped);var u=s.call(n);if(u!==s.call(t))return!1;switch(u){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!==+n?+t!==+t:0===+n?1/+n===1/t:+n===+t;case"[object Date]":case"[object Boolean]":return+n===+t}var i="[object Array]"===u;if(!i){if("object"!=typeof n||"object"!=typeof t)return!1;var o=n.constructor,a=t.constructor;if(o!==a&&!(m.isFunction(o)&&o instanceof o&&m.isFunction(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)return!1}r=r||[],e=e||[];for(var c=r.length;c--;)if(r[c]===n)return e[c]===t;if(r.push(n),e.push(t),i){if(c=n.length,c!==t.length)return!1;for(;c--;)if(!N(n[c],t[c],r,e))return!1}else{var f,l=m.keys(n);if(c=l.length,m.keys(t).length!==c)return!1;for(;c--;)if(f=l[c],!m.has(t,f)||!N(n[f],t[f],r,e))return!1}return r.pop(),e.pop(),!0};m.isEqual=function(n,t){return N(n,t)},m.isEmpty=function(n){return null==n?!0:k(n)&&(m.isArray(n)||m.isString(n)||m.isArguments(n))?0===n.length:0===m.keys(n).length},m.isElement=function(n){return!(!n||1!==n.nodeType)},m.isArray=h||function(n){return"[object Array]"===s.call(n)},m.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},m.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(n){m["is"+n]=function(t){return s.call(t)==="[object "+n+"]"}}),m.isArguments(arguments)||(m.isArguments=function(n){return m.has(n,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(m.isFunction=function(n){return"function"==typeof n||!1}),m.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},m.isNaN=function(n){return m.isNumber(n)&&n!==+n},m.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===s.call(n)},m.isNull=function(n){return null===n},m.isUndefined=function(n){return n===void 0},m.has=function(n,t){return null!=n&&p.call(n,t)},m.noConflict=function(){return u._=i,this},m.identity=function(n){return n},m.constant=function(n){return function(){return n}},m.noop=function(){},m.property=w,m.propertyOf=function(n){return null==n?function(){}:function(t){return n[t]}},m.matcher=m.matches=function(n){return n=m.extendOwn({},n),function(t){return m.isMatch(t,n)}},m.times=function(n,t,r){var e=Array(Math.max(0,n));t=b(t,r,1);for(var u=0;n>u;u++)e[u]=t(u);return e},m.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},m.now=Date.now||function(){return(new Date).getTime()};var B={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},T=m.invert(B),R=function(n){var t=function(t){return n[t]},r="(?:"+m.keys(n).join("|")+")",e=RegExp(r),u=RegExp(r,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,t):n}};m.escape=R(B),m.unescape=R(T),m.result=function(n,t,r){var e=null==n?void 0:n[t];return e===void 0&&(e=r),m.isFunction(e)?e.call(n):e};var q=0;m.uniqueId=function(n){var t=++q+"";return n?n+t:t},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},D=/\\|'|\r|\n|\u2028|\u2029/g,L=function(n){return"\\"+z[n]};m.template=function(n,t,r){!t&&r&&(t=r),t=m.defaults({},t,m.templateSettings);var e=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,function(t,r,e,o,a){return i+=n.slice(u,a).replace(D,L),u=a+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var o=new Function(t.variable||"obj","_",i)}catch(a){throw a.source=i,a}var c=function(n){return o.call(this,n,m)},f=t.variable||"obj";return c.source="function("+f+"){\n"+i+"}",c},m.chain=function(n){var t=m(n);return t._chain=!0,t};var P=function(n,t){return n._chain?m(t).chain():t};m.mixin=function(n){m.each(m.functions(n),function(t){var r=m[t]=n[t];m.prototype[t]=function(){var n=[this._wrapped];return f.apply(n,arguments),P(this,r.apply(m,n))}})},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=o[n];m.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==n&&"splice"!==n||0!==r.length||delete r[0],P(this,r)}}),m.each(["concat","join","slice"],function(n){var t=o[n];m.prototype[n]=function(){return P(this,t.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},m.prototype.valueOf=m.prototype.toJSON=m.prototype.value,m.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return m})}).call(this);
//# sourceMappingURL=underscore-min.map
$(function(){$(window).on("load",function(){console.log("Serveis de Google");if(void 0!==google.maps.places){console.log("google.maps.places");var u=new google.maps.Map(document.createElement("div")),v=new google.maps.places.PlacesService(u),n=new google.maps.places.AutocompleteService,p=new google.maps.Circle({center:{lat:41.383333,lng:2.183333},radius:50});$(".google-autocomplete").each(function(z,b){b=$(b);var k=!1;b.autocomplete({html:!0,minLength:3,autoFocus:!0,source:function(f,d){n.getPredictions({bounds:p.getBounds(),
input:$("#"+b.attr("id")).val(),componentRestrictions:{country:"es"}},function(a,g){var c=[],e;for(e in a){g=a[e];var q=g.description,h=q.toLowerCase(),m=!1;if(-1!=h.indexOf("aero")&&-1!=h.indexOf("barcelona")){if(-1!=h.indexOf("t1")||-1!=h.indexOf("t2")||-1!=h.indexOf("aerob"))m=!0}else m=!0;m&&c.push({label:q,valor:g})}0>=c.length&&c.push({label:"",valor:null});var r=$("#"+b.attr("id")).val();a=r.toLowerCase();if(-1!=a.indexOf("aerop")||-1!=a.indexOf("airp"))c=[],n.getPredictions({bounds:p.getBounds(),
input:"aeroport t",componentRestrictions:{country:"es"}},function(t,l){for(var w in t){$("#"+b.attr("id")).val(r.toLowerCase());l=t[w];var x=l.description,y;for(y in l);c.push({label:x,valor:l})}d(c)});d(c)})},open:function(f,d){k&&=!1;$(".ui-autocomplete").append('\x3cli\x3e\x3cdiv class\x3d"powered-by-google-image"\x3e\x3cimg src\x3d"'+window.pathTheme+'/images/powered-by-google-on-white.png" alt\x3d""\x3e\x3c/div\x3e\x3c/li\x3e');$("#tmb-maps-panel-1").css("overflow","visible")},select:function(f,
d){d.item&&d.item.valor&&v.getDetails({placeId:d.item.valor.place_id},function(a,g){if("OK"==g){g=a.geometry.location.lng();a=a.geometry.location.lat();var c=d.item.label;$("#"+b.attr("id")).val(c);a=[parseFloat(g),parseFloat(a)];a=ol.proj.transform(a,"EPSG:4326","EPSG:4326");$("#"+b.attr("id")+"-lng").val(a[1]);$("#"+b.attr("id")+"-lat").val(a[0]);void 0!==$("."+b.attr("id")+"-coords").val&&$("."+b.attr("id")+"-coords").val(a[0]+","+a[1]);void 0!==$("."+b.attr("id")+"-loc").val&&$("."+b.attr("id")+
"-loc").val(c);void 0!==$("#coords").val&&$("#coords").val(a[0]+","+a[1]);void 0!==$("#loc").val&&$("#loc").val(c);k=!0;$("#"+b.attr("id")).blur();$("."+b.attr("id")+"-isPoisO").val("false");$("."+b.attr("id")+"-isPoisD").val("false");$(".form__field__datalist--suggested.jotmbe-suggested-location").remove();a=b.attr("id").split("__");1<a.length&&($("."+a[0]+"__lloc_btn").attr("disabled",!1),$("."+a[0]+"__lloc_btn").removeClass("button--disabled"),$("."+a[0]+"__lloc_btn").unbind("click"),$("."+a[0]+
"__lloc_btn").bind("click",function(){if(TJS.velocity.getCookie("JoTMBeKCSession")){TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__with-actions","edit-favourite-d-fragment","");var e=$("#edit-favourite-d-fragment");$(this).hasClass("origen__lloc_btn")?(Analytics.JT.LocationesRoutes.initSaveLoc2("Vull Anar"),e.find(".jotmbe__selection--place p").text(c),e.find(".button--a").attr("onclick",'addLocation("origen")')):$(this).hasClass("desti__lloc_btn")?
(Analytics.JT.LocationesRoutes.initSaveLoc2("Vull Anar"),e.find(".jotmbe__selection--place p").text(c),e.find(".button--a").attr("onclick",'addLocation("desti")')):$(this).hasClass("soc__lloc_btn")&&(Analytics.JT.LocationesRoutes.initSaveLoc2("On S\u00f3c"),e.find(".jotmbe__selection--place p").text(c),e.find(".button--a").attr("onclick",'addLocation("origen")'))}else $(this).hasClass("origen__lloc_btn")||$(this).hasClass("desti__lloc_btn")?initKeycloakTMB("Vull Anar","2","Sol\u00b7licitar guardar lloc"):
$(this).hasClass("soc__lloc_btn")&&initKeycloakTMB("On S\u00f3c","2","Sol\u00b7licitar guardar lloc")}))}else console.error(g,a)});return!1},messages:{noResults:"",results:function(){}},appendTo:"."+b.attr("id")+"-wrapper",close:function(f,d){k||$("#"+b.attr("id")).val("")}}).blur(function(){k||$("."+b.attr("id")+"-wrapper ul.ui-autocomplete li:first a").trigger("click")}).data("ui-autocomplete")._renderItem=function(f,d){f.addClass("form__field__datalist form__field__datalist--suggested datalist");
f.attr("aria-live","polite");f.attr("aria-relevant","additions");return $('\x3cli class\x3d"datalist__item"\x3e\x3c/li\x3e').data("item.autocomplete",d).append('\x3ca href\x3d"#" onclick\x3d"return false;"\x3e\x3cspan class\x3d"pac-icon pac-icon-marker"\x3e\x3c/span\x3e'+d.label+"\x3c/a\x3e").appendTo(f)}})}})});
/*
 jQuery JavaScript Library v3.6.0
 https://jquery.com/

 Includes Sizzle.js
 https://sizzlejs.com/

 Copyright OpenJS Foundation and other contributors
 Released under the MIT license
 https://jquery.org/license

 Date: 2021-03-02T17:08Z
 Sizzle CSS Selector Engine v2.3.6
 https://sizzlejs.com/

 Copyright JS Foundation and other contributors
 Released under the MIT license
 https://js.foundation/

 Date: 2021-02-16
 jQuery Migrate - v3.3.2 - 2020-11-17T23:22Z
 Copyright OpenJS Foundation and other contributors
*/
(function(g,p){"function"===typeof define&&define.amd?define([],p):"object"===typeof exports?module.exports=p():g.ol=p()})(this,function(){function g(a){return void 0!==a}function p(a,b,c){a=a.split(".");c=c||gb;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&g(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}}function A(){}function r(a){a.Ia=function(){return a.jg?a.jg:a.jg=new a}}function B(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";
if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";
return b}function t(a){return"array"==B(a)}function H(a){var b=B(a);return"array"==b||"object"==b&&"number"==typeof a.length}function E(a){return"string"==typeof a}function D(a){return"number"==typeof a}function x(a){return"function"==B(a)}function v(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function C(a){return a[Uo]||(a[Uo]=++Nt)}function L(a,b,c){return a.call.apply(a.bind,arguments)}function Q(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,
2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}function J(a,b,c){J=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?L:Q;return J.apply(null,arguments)}function X(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}function I(a,b){function c(){}c.prototype=b.prototype;
a.S=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Mo=function(d,e,f){for(var h=Array(arguments.length-2),m=2;m<arguments.length;m++)h[m-2]=arguments[m];return b.prototype[e].apply(d,h)}}function ka(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ka);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}function ua(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function ra(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,
1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}function Za(a){if(!Ot.test(a))return a;-1!=a.indexOf("\x26")&&(a=a.replace(Pt,"\x26amp;"));-1!=a.indexOf("\x3c")&&(a=a.replace(Qt,"\x26lt;"));-1!=a.indexOf("\x3e")&&(a=a.replace(Rt,"\x26gt;"));-1!=a.indexOf('"')&&(a=a.replace(St,"\x26quot;"));-1!=a.indexOf("'")&&(a=a.replace(Tt,"\x26#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ut,"\x26#0;"));return a}function Na(a){a=g(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==
b&&(b=a.length);b=Math.max(0,2-b);return Array(b+1).join("0")+a}function Mb(a,b){var c=0;a=vg(String(a)).split(".");b=vg(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"",m=RegExp("(\\d*)(\\D*)","g"),q=RegExp("(\\d*)(\\D*)","g");do{var w=m.exec(f)||["","",""],F=q.exec(h)||["","",""];if(0==w[0].length&&0==F[0].length)break;c=fb(0==w[1].length?0:parseInt(w[1],10),0==F[1].length?0:parseInt(F[1],10))||fb(0==w[2].length,0==F[2].length)||fb(w[2],F[2])}while(0==
c)}return c}function fb(a,b){return a<b?-1:a>b?1:0}function Nb(a,b){return of.indexOf.call(a,b,void 0)}function Oa(a,b,c){of.forEach.call(a,b,c)}function ke(a,b){return of.filter.call(a,b,void 0)}function Jc(a,b,c){return of.map.call(a,b,c)}function pf(a,b){return of.some.call(a,b,void 0)}function Ud(a,b){b=ce(a,b,void 0);return 0>b?null:E(a)?a.charAt(b):a[b]}function ce(a,b,c){for(var d=a.length,e=E(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1}function Nc(a,b){return 0<=
Nb(a,b)}function Ee(a,b){b=Nb(a,b);var c;(c=0<=b)&&of.splice.call(a,b,1);return c}function td(a){return of.concat.apply(of,arguments)}function Pe(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Tb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(H(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}}function de(a,b,c,d){of.splice.apply(a,Qe(arguments,1))}function Qe(a,b,c){return 2>=arguments.length?
of.slice.call(a,b):of.slice.call(a,b,c)}function Bd(a,b){a.sort(b||bf)}function rd(a,b){if(!H(a)||!H(b)||a.length!=b.length)return!1;for(var c=a.length,d=ha,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0}function bf(a,b){return a>b?1:a<b?-1:0}function ha(a,b){return a===b}function pa(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(t(d))for(var e=0;e<d.length;e+=8192)for(var f=pa.apply(null,Qe(d,e,e+8192)),h=0;h<f.length;h++)b.push(f[h]);else b.push(d)}return b}function Pa(a){return-1!=
nj.indexOf(a)}function ob(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function ic(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function ud(a){var b=0,c;for(c in a)b++;return b}function Vd(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Fd(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function ag(a,b){return b in a}function Dk(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function oj(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c}function le(a){for(var b in a)return!1;
return!0}function bg(a){for(var b in a)delete a[b]}function Fe(a,b){b in a&&delete a[b]}function qc(a,b,c){return b in a?a[b]:c}function pj(a,b){var c=[];return b in a?a[b]:a[b]=c}function Gd(a){var b={},c;for(c in a)b[c]=a[c];return b}function vd(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Vo.length;f++)c=Vo[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function ii(a){var b=arguments.length;if(1==b&&t(arguments[0]))return ii.apply(null,
arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c}function xh(){var a=gb.document;return a?a.documentMode:void 0}function Cd(a){return Wo[a]||(Wo[a]=0<=Mb(Tl,a))}function Hd(a,b,c){return Math.min(Math.max(a,b),c)}function Gf(a,b){a%=b;return 0>a*b?a+b:a}function yh(a,b,c){return a+c*(b-a)}function me(a){return a*Math.PI/180}function Sc(a){return function(b){if(g(b))return[Hd(b[0],a[0],a[2]),Hd(b[1],a[1],a[3])]}}function Wb(a){return a}function cg(a,b,c){var d=a.length;if(a[0]<=b)return 0;
if(!(b<=a[d-1]))if(0<c)for(c=1;c<d;++c){if(a[c]<b)return c-1}else if(0>c)for(c=1;c<d;++c){if(a[c]<=b)return c}else for(c=1;c<d;++c){if(a[c]==b)return c;if(a[c]<b)return a[c-1]-b<b-a[c]?c-1:c}return d-1}function rc(a){return function(b,c,d){if(g(b))return b=cg(a,b,d),b=Hd(b+c,0,a.length-1),a[b]}}function Ul(a,b,c){return function(d,e,f){if(g(d))return f=0<f?0:0>f?1:.5,d=Math.floor(Math.log(b/d)/Math.log(a)+f),e=Math.max(d+e,0),g(c)&&(e=Math.min(e,c)),b/Math.pow(a,e)}}function z(a){if(g(a))return 0}
function dg(a,b){if(g(a))return a+b}function Rg(a){var b=2*Math.PI/a;return function(c,d){if(g(c))return Math.floor((c+d)/b+.5)*b}}function Ek(){var a=me(5);return function(b,c){if(g(b))return Math.abs(b+c)<=a?0:b+c}}function Fk(a,b,c){this.center=a;this.resolution=b;this.rotation=c}function Re(){0!=Xo&&(Yo[C(this)]=this);this.U=this.U;this.V=this.V}function eg(a,b){b=X(qf,b);a.U?b.call(void 0):(a.V||(a.V=[]),a.V.push(g(void 0)?J(b,void 0):b))}function qf(a){a&&"function"==typeof a.Yc&&a.Yc()}function tc(a,
b){this.type=a;this.c=this.target=b;this.f=!1;this.rh=!0}function Gk(a){a.fb()}function Hf(a){a.preventDefault()}function qj(a){qj[" "](a);return a}function Se(a,b){tc.call(this,a?a.type:"");this.relatedTarget=this.c=this.target=null;this.q=this.e=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.l=this.d=this.a=this.i=!1;this.state=null;this.g=!1;this.b=null;a&&rf(this,a,b)}function rf(a,b,c){a.b=b;var d=a.type=b.type;a.target=b.target||b.srcElement;
a.c=c;if(c=b.relatedTarget){if(sf){a:{try{qj(c.nodeName);var e=!0;break a}catch(f){}e=!1}e||(c=null)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.relatedTarget=c;Object.defineProperties?Object.defineProperties(a,{offsetX:{configurable:!0,enumerable:!0,get:a.Zf,set:a.bo},offsetY:{configurable:!0,enumerable:!0,get:a.$f,set:a.co}}):(a.offsetX=a.Zf(),a.offsetY=a.$f());a.clientX=void 0!==b.clientX?b.clientX:b.pageX;a.clientY=void 0!==b.clientY?b.clientY:b.pageY;a.screenX=b.screenX||
0;a.screenY=b.screenY||0;a.button=b.button;a.e=b.keyCode||0;a.q=b.charCode||("keypress"==d?b.keyCode:0);a.i=b.ctrlKey;a.a=b.altKey;a.d=b.shiftKey;a.l=b.metaKey;a.g=wg?b.metaKey:b.ctrlKey;a.state=b.state;b.defaultPrevented&&a.preventDefault()}function rj(a){return(Vt?0==a.b.button:"click"==a.type?!0:!!(a.b.button&Wt[0]))&&!(Wd&&wg&&a.i)}function Sg(a){return!(!a||!a[Zo])}function zh(a,b,c,d,e){this.$b=a;this.b=null;this.src=b;this.type=c;this.Qc=!!d;this.Sd=e;this.key=++Xt;this.Hc=this.vd=!1}function pb(a){a.Hc=
!0;a.$b=null;a.b=null;a.src=null;a.Sd=null}function ee(a){this.src=a;this.b={};this.a=0}function sj(a,b){var c=b.type;if(!(c in a.b))return!1;var d=Ee(a.b[c],b);d&&(pb(b),0==a.b[c].length&&(delete a.b[c],a.a--));return d}function tj(a,b,c,d,e){a=a.b[b.toString()];b=-1;a&&(b=xg(a,c,d,e));return-1<b?a[b]:null}function uj(a,b,c){var d=g(b),e=d?b.toString():"",f=g(c);return ic(a.b,function(h){for(var m=0;m<h.length;++m)if(!(d&&h[m].type!=e||f&&h[m].Qc!=c))return!0;return!1})}function xg(a,b,c,d){for(var e=
0;e<a.length;++e){var f=a[e];if(!f.Hc&&f.$b==b&&f.Qc==!!c&&f.Sd==d)return e}return-1}function ma(a,b,c,d,e){if(t(b)){for(var f=0;f<b.length;f++)ma(a,b[f],c,d,e);return null}c=Ah(c);return Sg(a)?a.Ka(b,c,d,e):fg(a,b,c,!1,d,e)}function fg(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=!!e,m=Tg(a);m||(a[Vl]=m=new ee(a));c=m.add(b,c,d,e,f);if(c.b)return c;d=Ug();c.b=d;d.src=a;d.$b=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(Vg(b.toString()),d);$o++;return c}function Ug(){var a=
cf,b=ap?function(c){return a.call(b.src,b.$b,c)}:function(c){c=a.call(b.src,b.$b,c);if(!c)return c};return b}function If(a,b,c,d,e){if(t(b)){for(var f=0;f<b.length;f++)If(a,b[f],c,d,e);return null}c=Ah(c);return Sg(a)?a.ab.add(String(b),c,!0,d,e):fg(a,b,c,!0,d,e)}function Ge(a,b,c,d,e){if(t(b))for(var f=0;f<b.length;f++)Ge(a,b[f],c,d,e);else c=Ah(c),Sg(a)?a.wf(b,c,d,e):(a&&=Tg(a))&&(b=tj(a,b,c,!!d,e))&&Hb(b)}function Hb(a){if(D(a)||!a||a.Hc)return!1;var b=a.src;if(Sg(b))return sj(b.ab,a);var c=a.type,
d=a.b;b.removeEventListener?b.removeEventListener(c,d,a.Qc):b.detachEvent&&b.detachEvent(Vg(c),d);$o--;(c=Tg(b))?(sj(c,a),0==c.a&&(c.src=null,b[Vl]=null)):pb(a);return!0}function Vg(a){return a in Wl?Wl[a]:Wl[a]="on"+a}function vj(a,b,c,d){var e=!0;if(a=Tg(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.Qc==c&&!f.Hc&&(f=wj(f,d),e=e&&!1!==f)}return e}function wj(a,b){var c=a.$b,d=a.Sd||a.src;a.vd&&Hb(a);return c.call(d,b)}function cf(a,b){if(a.Hc)return!0;if(!ap){if(!b)a:{b=
["window","event"];for(var c=gb,d;d=b.shift();)if(null!=c[d])c=c[d];else{b=null;break a}b=c}d=b;b=new Se(d,this);c=!0;if(!(0>d.keyCode||void 0!=d.returnValue)){a:{var e=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(h){e=!0}if(e||void 0==d.returnValue)d.returnValue=!0}d=[];for(e=b.c;e;e=e.parentNode)d.push(e);e=a.type;for(a=d.length-1;!b.f&&0<=a;a--){b.c=d[a];var f=vj(d[a],e,!0,b);c=c&&f}for(a=0;!b.f&&a<d.length;a++)b.c=d[a],f=vj(d[a],e,!1,b),c=c&&f}return c}return wj(a,new Se(b,this))}function Tg(a){a=
a[Vl];return a instanceof ee?a:null}function Ah(a){if(x(a))return a;a[Xl]||(a[Xl]=function(b){return a.handleEvent(b)});return a[Xl]}function Tc(){Re.call(this);this.ab=new ee(this);this.rc=this;this.sa=null}function ji(a,b,c,d){b=a.ab.b[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.Hc&&h.Qc==c){var m=h.$b,q=h.Sd||h.src;h.vd&&sj(a.ab,h);e=!1!==m.call(q,d)&&e}}return e&&0!=d.rh}function Jf(a,b,c){return uj(a.ab,g(b)?String(b):void 0,c)}function Id(){Tc.call(this);
this.b=0}function Wg(a){Hb(a)}function gg(a,b,c){tc.call(this,a);this.key=b;this.oldValue=c}function ub(a){Id.call(this);C(this);this.q={};g(a)&&this.t(a)}function Uc(a){return Yl.hasOwnProperty(a)?Yl[a]:Yl[a]="change:"+a}function xj(a,b,c){var d=Uc(b);a.dispatchEvent(new gg(d,b,c));a.dispatchEvent(new gg("propertychange",b,c))}function yj(a,b,c){g(c)||(c=[0,0]);c[0]=a[0]+2*b;c[1]=a[1]+2*b;return c}function Bh(a,b,c){g(c)||(c=[0,0]);c[0]=a[0]*b+.5|0;c[1]=a[1]*b+.5|0;return c}function Xd(a,b){if(t(a))return a;
g(b)?(b[0]=a,b[1]=a):b=[a,a];return b}function Xg(a,b){a[0]+=b[0];a[1]+=b[1];return a}function ki(a,b){var c=a[0];a=a[1];var d=b[0];b=b[1];var e=d[0];d=d[1];var f=b[0];b=b[1];var h=f-e,m=b-d;c=0===h&&0===m?0:(h*(c-e)+m*(a-d))/(h*h+m*m||0);0>=c||(1<=c?(e=f,d=b):(e+=c*h,d+=c*m));return[e,d]}function yg(a,b){a=Gf(a+180,360)-180;var c=Math.abs(Math.round(3600*a));return Math.floor(c/3600)+"\u00b0 "+Math.floor(c/60%60)+"\u2032 "+Math.floor(c%60)+"\u2033 "+b.charAt(0>a?1:0)}function Ch(a,b,c){return g(a)?
b.replace("{x}",a[0].toFixed(c)).replace("{y}",a[1].toFixed(c)):""}function Yg(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function Zg(a,b){var c=Math.cos(b);b=Math.sin(b);var d=a[1]*c+a[0]*b;a[0]=a[0]*c-a[1]*b;a[1]=d;return a}function tf(a,b){var c=a[0]-b[0];a=a[1]-b[1];return c*c+a*a}function li(a,b){return tf(a,ki(a,b))}function Hk(a,b){return Ch(a,"{x}, {y}",b)}function uf(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}function vf(a){this.length=
a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}function Ik(a,b,c,d,e){a[0]=b;a[1]=c;a[2]=d;a[3]=e}function fd(){var a=Array(16);$g(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function Kf(){var a=Array(16);$g(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function $g(a,b,c,d,e,f,h,m,q,w,F,M,S,Y,N,O,Z){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=h;a[6]=m;a[7]=q;a[8]=w;a[9]=F;a[10]=M;a[11]=S;a[12]=Y;a[13]=N;a[14]=O;a[15]=Z}function Dh(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];
a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function wf(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}function zg(a,b,c){var d=a[0],e=a[1],f=a[2],h=a[3],m=a[4],q=a[5],w=a[6],F=a[7],M=a[8],S=a[9],Y=a[10],N=a[11],O=a[12],Z=a[13],ca=a[14];a=a[15];var ea=b[0],ia=b[1],ja=b[2],va=b[3],na=b[4],Ia=b[5],cb=b[6],wa=b[7],zb=b[8],Ub=b[9],Ib=b[10],ec=b[11],ze=b[12],wd=
b[13],Pd=b[14];b=b[15];c[0]=d*ea+m*ia+M*ja+O*va;c[1]=e*ea+q*ia+S*ja+Z*va;c[2]=f*ea+w*ia+Y*ja+ca*va;c[3]=h*ea+F*ia+N*ja+a*va;c[4]=d*na+m*Ia+M*cb+O*wa;c[5]=e*na+q*Ia+S*cb+Z*wa;c[6]=f*na+w*Ia+Y*cb+ca*wa;c[7]=h*na+F*Ia+N*cb+a*wa;c[8]=d*zb+m*Ub+M*Ib+O*ec;c[9]=e*zb+q*Ub+S*Ib+Z*ec;c[10]=f*zb+w*Ub+Y*Ib+ca*ec;c[11]=h*zb+F*Ub+N*Ib+a*ec;c[12]=d*ze+m*wd+M*Pd+O*b;c[13]=e*ze+q*wd+S*Pd+Z*b;c[14]=f*ze+w*wd+Y*Pd+ca*b;c[15]=h*ze+F*wd+N*Pd+a*b}function mi(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],h=a[4],m=a[5],q=a[6],w=
a[7],F=a[8],M=a[9],S=a[10],Y=a[11],N=a[12],O=a[13],Z=a[14];a=a[15];var ca=c*m-d*h,ea=c*q-e*h,ia=c*w-f*h,ja=d*q-e*m,va=d*w-f*m,na=e*w-f*q,Ia=F*O-M*N,cb=F*Z-S*N,wa=F*a-Y*N,zb=M*Z-S*O,Ub=M*a-Y*O,Ib=S*a-Y*Z,ec=ca*Ib-ea*Ub+ia*zb+ja*wa-va*cb+na*Ia;0!=ec&&(ec=1/ec,b[0]=(m*Ib-q*Ub+w*zb)*ec,b[1]=(-d*Ib+e*Ub-f*zb)*ec,b[2]=(O*na-Z*va+a*ja)*ec,b[3]=(-M*na+S*va-Y*ja)*ec,b[4]=(-h*Ib+q*wa-w*cb)*ec,b[5]=(c*Ib-e*wa+f*cb)*ec,b[6]=(-N*na+Z*ia-a*ea)*ec,b[7]=(F*na-S*ia+Y*ea)*ec,b[8]=(h*Ub-m*wa+w*Ia)*ec,b[9]=(-c*Ub+d*
wa-f*Ia)*ec,b[10]=(N*va-O*ia+a*ca)*ec,b[11]=(-F*va+M*ia-Y*ca)*ec,b[12]=(-h*zb+m*cb-q*Ia)*ec,b[13]=(c*zb-d*cb+e*Ia)*ec,b[14]=(-N*ja+O*ea-Z*ca)*ec,b[15]=(F*ja-M*ea+S*ca)*ec)}function xf(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}function Qf(a,b,c){$g(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}function ni(a,b){var c=a[0],
d=a[1],e=a[2],f=a[3],h=a[4],m=a[5],q=a[6],w=a[7],F=Math.cos(b);b=Math.sin(b);a[0]=c*F+h*b;a[1]=d*F+m*b;a[2]=e*F+q*b;a[3]=f*F+w*b;a[4]=c*-b+h*F;a[5]=d*-b+m*F;a[6]=e*-b+q*F;a[7]=f*-b+w*F}function ne(a){for(var b=Yd(),c=0,d=a.length;c<d;++c)Jk(b,a[c]);return b}function Kk(a,b,c){var d=Math.min.apply(null,a),e=Math.min.apply(null,b);a=Math.max.apply(null,a);b=Math.max.apply(null,b);return He(d,e,a,b,c)}function yf(a,b,c){return g(c)?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+
b,a[3]+b]}function zj(a,b){return g(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function hg(a,b,c){b=b<a[0]?a[0]-b:a[2]<b?b-a[2]:0;a=c<a[1]?a[1]-c:a[3]<c?c-a[3]:0;return b*b+a*a}function qe(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}function Eh(a,b,c){return a[0]<=b&&b<=a[2]&&a[1]<=c&&c<=a[3]}function Fh(a,b){var c=a[1],d=a[2],e=a[3],f=b[0];b=b[1];var h=0;f<a[0]?h|=16:f>d&&(h|=4);b<c?h|=8:b>e&&(h|=2);0===h&&(h=1);return h}function Yd(){return[Infinity,Infinity,-Infinity,
-Infinity]}function He(a,b,c,d,e){return g(e)?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function oi(a,b){var c=a[0];a=a[1];return He(c,a,c,a,b)}function Gh(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function Lk(a,b){b[0]<a[0]&&(a[0]=b[0]);b[2]>a[2]&&(a[2]=b[2]);b[1]<a[1]&&(a[1]=b[1]);b[3]>a[3]&&(a[3]=b[3]);return a}function Jk(a,b){b[0]<a[0]&&(a[0]=b[0]);b[0]>a[2]&&(a[2]=b[0]);b[1]<a[1]&&(a[1]=b[1]);b[1]>a[3]&&(a[3]=b[1])}function Aj(a,b,c,d,e){for(;c<d;c+=e){var f=a,h=b[c],m=b[c+
1];f[0]=Math.min(f[0],h);f[1]=Math.min(f[1],m);f[2]=Math.max(f[2],h);f[3]=Math.max(f[3],m)}return a}function k(a,b){var c;return(c=b.call(void 0,n(a)))||(c=b.call(void 0,u(a)))||(c=b.call(void 0,W(a)))?c:(c=b.call(void 0,U(a)))?c:!1}function n(a){return[a[0],a[1]]}function u(a){return[a[2],a[1]]}function y(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}function G(a,b){var c;"bottom-left"===b?c=n(a):"bottom-right"===b?c=u(a):"top-left"===b?c=U(a):"top-right"===b&&(c=W(a));return c}function K(a,b,c,d){var e=
b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);c=Math.sin(c);e=[-e,-e,e,e];d=[-d,d,-d,d];var f;for(f=0;4>f;++f){var h=e[f];var m=d[f];e[f]=a[0]+h*b-m*c;d[f]=a[1]+h*c+m*b}return Kk(e,d,void 0)}function R(a){return a[3]-a[1]}function aa(a,b,c){c=g(c)?c:Yd();sa(a,b)&&(c[0]=a[0]>b[0]?a[0]:b[0],c[1]=a[1]>b[1]?a[1]:b[1],c[2]=a[2]<b[2]?a[2]:b[2],c[3]=a[3]<b[3]?a[3]:b[3]);return c}function U(a){return[a[0],a[3]]}function W(a){return[a[2],a[3]]}function la(a){return a[2]-a[0]}function sa(a,b){return a[0]<=b[2]&&a[2]>=
b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Ja(a){return a[2]<a[0]||a[3]<a[1]}function Vc(a,b){var c=(a[2]-a[0])/2*(b-1);b=(a[3]-a[1])/2*(b-1);a[0]-=c;a[2]+=c;a[1]-=b;a[3]+=b}function vb(a,b,c){a=[a[0],a[1],a[0],a[3],a[2],a[1],a[2],a[3]];b(a,a,2);return Kk([a[0],a[2],a[4],a[6]],[a[1],a[3],a[5],a[7]],c)}function nd(a){this.radius=a}function Cb(a){this.b=a.code;this.a=a.units;this.f=g(a.extent)?a.extent:null;this.g=g(a.worldExtent)?a.worldExtent:null;this.d=g(a.axisOrientation)?a.axisOrientation:"enu";this.c=
(this.e=g(a.global)?a.global:!1)&&null!==this.f;this.q=g(a.getPointResolution)?a.getPointResolution:this.rj;this.i=null;if("function"==typeof proj4){var b=a.code,c=proj4.defs(b);if(g(c)){g(c.axis)&&!g(a.axisOrientation)&&(this.d=c.axis);g(a.units)||(a=c.units,!g(a)&&g(c.to_meter)&&(a=c.to_meter.toString(),Rf[a]=c.to_meter),this.a=a);a=Zl;var d;for(d in a){var e=proj4.defs(d);g(e)&&(a=Ka(d),e===c?Ie([a,this]):(e=proj4(d,b),Je(a,this,e.forward,e.inverse)))}}}}function Ie(a){fe(a);Oa(a,function(b){Oa(a,
function(c){b!==c&&Oc(b,c,Ag)})})}function Ab(){var a=bp,b=Yt,c=Zt;Oa(cp,function(d){Oa(a,function(e){Oc(d,e,b);Oc(e,d,c)})})}function Jd(a){Zl[a.b]=a;Oc(a,a,Ag)}function fe(a){var b=[];Oa(a,function(c){b.push(Jd(c))})}function ac(a){return null!=a?E(a)?Ka(a):a:Ka("EPSG:3857")}function Oc(a,b,c){a=a.b;b=b.b;a in pi||(pi[a]={});pi[a][b]=c}function Je(a,b,c,d){a=Ka(a);b=Ka(b);Oc(a,b,Ob(c));Oc(b,a,Ob(d))}function Ob(a){return function(b,c,d){var e=b.length;d=g(d)?d:2;c=g(c)?c:Array(e);var f;for(f=0;f<
e;f+=d){var h=a([b[f],b[f+1]]);c[f]=h[0];c[f+1]=h[1];for(h=d-1;2<=h;--h)c[f+h]=b[f+h]}return c}}function Ka(a){var b;a instanceof Cb?b=a:E(a)?(b=Zl[a],!g(b)&&"function"==typeof proj4&&g(proj4.defs(a))&&(b=new Cb({code:a}),Jd(b))):b=null;return b}function sd(a,b){return a===b?!0:a.b===b.b?!0:a.a!=b.a?!1:Qd(a,b)===Ag}function Wc(a,b){a=Ka(a);b=Ka(b);return Qd(a,b)}function Qd(a,b){a=a.b;b=b.b;var c;a in pi&&b in pi[a]&&(c=pi[a][b]);g(c)||(c=ah);return c}function ah(a,b){if(g(b)&&a!==b){for(var c=0,
d=a.length;c<d;++c)b[c]=a[c];a=b}return a}function Ag(a,b){if(g(b)){var c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c}function od(a,b,c){return Wc(b,c)(a,void 0,a.length)}function Te(a,b,c){b=Wc(b,c);return vb(a,b)}function Ma(a){ub.call(this);a=g(a)?a:{};this.c=[0,0];var b={};b.center=g(a.center)?a.center:null;this.e=ac(a.projection);var c=g(a.minZoom)?a.minZoom:0;var d=g(a.maxZoom)?a.maxZoom:28;var e=g(a.zoomFactor)?a.zoomFactor:2;if(g(a.resolutions)){d=a.resolutions;var f=
d[0];var h=d[d.length-1];d=rc(d)}else{f=ac(a.projection);h=f.G();var m=(null===h?360*Rf.degrees/Rf[f.a]:Math.max(la(h),R(h)))/256/Math.pow(2,0),q=m/Math.pow(2,28);f=a.maxResolution;g(f)?c=0:f=m/Math.pow(e,c);h=a.minResolution;g(h)||(h=g(a.maxZoom)?g(a.maxResolution)?f/Math.pow(e,d):m/Math.pow(e,d):q);d=c+Math.floor(Math.log(f/h)/Math.log(e));h=f/Math.pow(e,d-c);d=Ul(e,f,d-c)}this.a=f;this.g=h;this.d=c;c=g(a.extent)?Sc(a.extent):Wb;(g(a.enableRotation)?a.enableRotation:1)?(f=a.constrainRotation,f=
g(f)&&!0!==f?!1===f?dg:D(f)?Rg(f):dg:Ek()):f=z;this.f=new Fk(c,d,f);g(a.resolution)?b.resolution=a.resolution:g(a.zoom)&&(b.resolution=this.constrainResolution(this.a,a.zoom-this.d));b.rotation=g(a.rotation)?a.rotation:0;this.t(b)}function Bj(a,b){return Math.max(la(a)/b[0],R(a)/b[1])}function Mk(a){var b=a.a,c=Math.log(b/a.g)/Math.log(2);return function(d){return b/Math.pow(2,d*c)}}function Nk(a){var b=a.a,c=Math.log(b/a.g)/Math.log(2);return function(d){return Math.log(b/d)/Math.log(2)/c}}function bh(a){var b=
a.Ca(),c=a.e,d=a.ya();a=a.Da();return{center:b.slice(),projection:g(c)?c:null,resolution:d,rotation:a}}function Hh(a){return null!=a.Ca()&&g(a.ya())}function Ke(a,b){a.c[1]+=b}function Sf(a){return 1-Math.pow(1-a,3)}function df(a){return 3*a*a-2*a*a*a}function Ok(a){return a}function Pk(a){return.5>a?df(2*a):1-df(2*(a-.5))}function Ue(a){var b=a.source,c=g(a.start)?a.start:Lf(),d=b[0],e=b[1],f=g(a.duration)?a.duration:1E3,h=g(a.easing)?a.easing:df;return function(m,q){if(q.time<c)return q.animate=
!0,q.viewHints[0]+=1,!0;if(q.time<c+f){m=1-h((q.time-c)/f);var w=d-q.viewState.center[0],F=e-q.viewState.center[1];q.animate=!0;q.viewState.center[0]+=m*w;q.viewState.center[1]+=m*F;q.viewHints[0]+=1;return!0}return!1}}function qi(a){var b=g(a.rotation)?a.rotation:0,c=g(a.start)?a.start:Lf(),d=g(a.duration)?a.duration:1E3,e=g(a.easing)?a.easing:df,f=g(a.anchor)?a.anchor:null;return function(h,m){if(m.time<c)return m.animate=!0,m.viewHints[0]+=1,!0;if(m.time<c+d){h=1-e((m.time-c)/d);h*=b-m.viewState.rotation;
m.animate=!0;m.viewState.rotation+=h;if(null!==f){var q=m.viewState.center;q[0]-=f[0];q[1]-=f[1];Zg(q,h);Xg(q,f)}m.viewHints[0]+=1;return!0}return!1}}function zf(a){var b=a.resolution,c=g(a.start)?a.start:Lf(),d=g(a.duration)?a.duration:1E3,e=g(a.easing)?a.easing:df;return function(f,h){if(h.time<c)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<c+d){f=1-e((h.time-c)/d);var m=b-h.viewState.resolution;h.animate=!0;h.viewState.resolution+=f*m;h.viewHints[0]+=1;return!0}return!1}}function ri(a,b,
c,d){return g(d)?(d[0]=a,d[1]=b,d[2]=c,d):[a,b,c]}function Ih(a,b,c){return a+"/"+b+"/"+c}function ig(a){return Ih(a[0],a[1],a[2])}function jg(a,b,c,d){this.b=a;this.d=b;this.c=c;this.a=d}function si(a,b,c,d,e){return g(e)?(e.b=a,e.d=b,e.c=c,e.a=d,e):new jg(a,b,c,d)}function Cj(a,b,c){return a.b<=b&&b<=a.d&&a.c<=c&&c<=a.a}function $l(a,b){return a.b==b.b&&a.c==b.c&&a.d==b.d&&a.a==b.a}function ef(a){return a.d-a.b+1}function Dj(a,b){return a.b<=b.d&&a.d>=b.b&&a.c<=b.a&&a.a>=b.c}function ff(a){this.a=
a.html;this.b=g(a.tileRanges)?a.tileRanges:null}function Tf(a,b,c){tc.call(this,a,c);this.element=b}function Sa(a){ub.call(this);this.a=g(a)?a:[];Ej(this)}function Ej(a){a.set("length",a.a.length)}function ti(a){return t(a)?a:$t(a)}function pd(a){if(!E(a)){var b=a[0];b!=(b|0)&&(b=b+.5|0);var c=a[1];c!=(c|0)&&(c=c+.5|0);var d=a[2];d!=(d|0)&&(d=d+.5|0);a="rgba("+b+","+c+","+d+","+a[3]+")"}return a}function Mf(a,b){b=g(b)?b:[];b[0]=Hd(a[0]+.5|0,0,255);b[1]=Hd(a[1]+.5|0,0,255);b[2]=Hd(a[2]+.5|0,0,255);
b[3]=Hd(a[3],0,1);return b}function Fj(){this.g=fd();this.a=void 0;this.b=fd();this.d=void 0;this.c=fd();this.f=void 0;this.e=fd();this.q=void 0;this.i=fd()}function Gj(a,b,c,d,e){var f=!1;g(b)&&b!==a.a&&(f=a.b,wf(f),f[12]=b,f[13]=b,f[14]=b,f[15]=1,a.a=b,f=!0);if(g(c)&&c!==a.d){f=a.c;wf(f);f[0]=c;f[5]=c;f[10]=c;f[15]=1;var h=-.5*c+.5;f[12]=h;f[13]=h;f[14]=h;f[15]=1;a.d=c;f=!0}g(d)&&d!==a.f&&(f=Math.cos(d),h=Math.sin(d),$g(a.e,.213+.787*f-.213*h,.213-.213*f+.143*h,.213-.213*f-.787*h,0,.715-.715*f-
.715*h,.715+.285*f+.14*h,.715-.715*f+.715*h,0,.072-.072*f+.928*h,.072-.072*f-.283*h,.072+.928*f+.072*h,0,0,0,0,1),a.f=d,f=!0);g(e)&&e!==a.q&&($g(a.i,.213+.787*e,.213-.213*e,.213-.213*e,0,.715-.715*e,.715+.285*e,.715-.715*e,0,.072-.072*e,.072-.072*e,.072+.928*e,0,0,0,0,1),a.q=e,f=!0);f&&(f=a.g,wf(f),g(c)&&zg(f,a.c,f),g(b)&&zg(f,a.b,f),g(e)&&zg(f,a.i,f),g(d)&&zg(f,a.e,f));return a.g}function Ve(a,b){this.x=g(a)?a:0;this.y=g(b)?b:0}function Af(a,b){this.width=a;this.height=b}function Fc(a){return a?
new xa(Da(a)):au||=new xa}function Hj(a){var b=document;return E(a)?b.getElementById(a):a}function kg(a,b){ob(b,function(c,d){"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:d in dp?a.setAttribute(dp[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})}function ui(a){a=a.document.documentElement;return new Af(a.clientWidth,a.clientHeight)}function db(a,b,c){var d=arguments,e=document,f=d[0],h=d[1];if(!bu&&h&&(h.name||h.type)){f=["\x3c",
f];h.name&&f.push(' name\x3d"',Za(h.name),'"');if(h.type){f.push(' type\x3d"',Za(h.type),'"');var m={};vd(m,h);delete m.type;h=m}f.push("\x3e");f=f.join("")}f=e.createElement(f);h&&(E(h)?f.className=h:t(h)?f.className=h.join(" "):kg(f,h));2<d.length&&Jh(e,f,d,2);return f}function Jh(a,b,c,d){function e(h){h&&b.appendChild(E(h)?a.createTextNode(h):h)}for(;d<c.length;d++){var f=c[d];!H(f)||v(f)&&0<f.nodeType?e(f):Oa(xb(f)?Pe(f):f,e)}}function Kd(a){return document.createElement(a)}function Qk(a,b){Jh(Da(a),
a,arguments,1)}function P(a){for(var b;b=a.firstChild;)a.removeChild(b)}function V(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function T(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function fa(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function oa(a){if(void 0!=a.firstElementChild)a=a.firstElementChild;else for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a}function za(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==
b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function Da(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function xb(a){if(a&&"number"==typeof a.length){if(v(a))return"function"==typeof a.item||"string"==typeof a.item;if(x(a))return"function"==typeof a.item}return!1}function xa(a){this.b=a||gb.document||document}function kb(){return!0}function Xb(a){var b=a.b;a=Wd?b.body||b.documentElement:b.documentElement;b=b.parentWindow||b.defaultView;return jc&&Cd("10")&&
b.pageYOffset!=a.scrollTop?new Ve(a.scrollLeft,a.scrollTop):new Ve(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}function wb(a){if(a.classList)return a.classList;a=a.className;return E(a)&&a.match(/\S+/g)||[]}function Pc(a,b){return a.classList?a.classList.contains(b):Nc(wb(a),b)}function Xc(a,b){a.classList?a.classList.add(b):Pc(a,b)||(a.className+=0<a.className.length?" "+b:b)}function xd(a,b){a.classList?a.classList.remove(b):Pc(a,b)&&(a.className=ke(wb(a),function(c){return c!=b}).join(" "))}
function yb(a,b){Pc(a,b)?xd(a,b):Xc(a,b)}function re(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}function kd(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}function gf(a,b){var c=Da(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function We(a,b){return gf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function vi(a,b,c){var d;b instanceof Ve?(d=b.x,b=b.y):(d=b,b=c);
a.style.left=ep(d);a.style.top=ep(b)}function am(a){try{var b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}jc&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}function Ij(a){if(1==a.nodeType)return a=am(a),new Ve(a.left,a.top);var b=x(a.Qi),c=a;a.targetTouches&&a.targetTouches.length?c=a.targetTouches[0]:b&&a.b.targetTouches&&a.b.targetTouches.length&&(c=a.b.targetTouches[0]);
return new Ve(c.clientX,c.clientY)}function ep(a){"number"==typeof a&&(a+="px");return a}function bm(a){var b=cu;if("none"!=We(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}function cu(a){var b=a.offsetWidth,c=a.offsetHeight,d=Wd&&!b&&!c;return g(b)&&!d||!a.getBoundingClientRect?new Af(b,c):(a=am(a),new Af(a.right-a.left,a.bottom-a.top))}function ge(a,
b){a.style.display=b?"":"none"}function Rk(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b}function Sk(a,b){return(b=a.currentStyle?a.currentStyle[b]:null)?Rk(a,b,"left","pixelLeft"):0}function cm(a,b){if(jc){var c=Sk(a,b+"Left"),d=Sk(a,b+"Right"),e=Sk(a,b+"Top");a=Sk(a,b+"Bottom");return new re(e,d,a,c)}c=gf(a,b+"Left");d=gf(a,b+"Right");e=gf(a,b+"Top");
a=gf(a,b+"Bottom");return new re(parseFloat(e),parseFloat(d),parseFloat(a),parseFloat(c))}function Tk(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;b=a.currentStyle?a.currentStyle[b+"Width"]:null;return b in fp?fp[b]:Rk(a,b,"left","pixelLeft")}function gp(a){if(jc&&!(jc&&9<=wi)){var b=Tk(a,"borderLeft"),c=Tk(a,"borderRight"),d=Tk(a,"borderTop");a=Tk(a,"borderBottom");return new re(d,c,a,b)}b=gf(a,"borderLeftWidth");c=gf(a,"borderRightWidth");d=gf(a,"borderTopWidth");a=gf(a,
"borderBottomWidth");return new re(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}function Bg(a,b,c){tc.call(this,a);this.map=b;this.frameState=g(c)?c:null}function qb(a){ub.call(this);this.element=g(a.element)?a.element:null;this.a=this.L=null;this.l=[];this.render=g(a.render)?a.render:A;g(a.target)&&this.c(a.target)}function Uk(){this.c=0;this.d={};this.a=this.b=null}function lg(a,b){return a.d.hasOwnProperty(b)}function hp(a){Uk.call(this);this.e=g(a)?a:2048}function ip(a){return a.Tb()>
a.e}function Uf(a,b){Tc.call(this);this.b=a;this.state=b}function Jj(a){a.dispatchEvent("change")}function fc(a){ub.call(this);this.f=Ka(a.projection);this.d=g(a.attributions)?a.attributions:null;this.L=a.logo;this.o=g(a.state)?a.state:"ready";this.H=a.wrapX}function xi(a,b){a.o=b;a.k()}function Kj(a){return function(){return a}}function dm(a){return a}function du(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}function eu(a){var b=arguments,c=b.length;
return function(){for(var d,e=0;e<c;e++)d=b[e].apply(this,arguments);return d}}function jp(a){var b=arguments,c=b.length;return function(){for(var d=0;d<c;d++)if(!b[d].apply(this,arguments))return!1;return!0}}function yd(a){this.minZoom=g(a.minZoom)?a.minZoom:0;this.b=a.resolutions;this.maxZoom=this.b.length-1;this.f=g(a.origin)?a.origin:null;this.i=null;g(a.origins)&&(this.i=a.origins);this.c=null;g(a.tileSizes)&&(this.c=a.tileSizes);this.g=g(a.tileSize)?a.tileSize:null===this.c?256:null;this.a=
[0,0];this.d=null;g(a.widths)&&(this.d=a.widths)}function Vk(a,b,c,d){Wk(a,b[0],b[1],c,!1,yi);var e=yi[1],f=yi[2];Wk(a,b[2],b[3],c,!0,yi);return si(e,yi[1],f,yi[2],d)}function Xe(a,b,c,d){return Vk(a,b,a.ma(c),d)}function kp(a,b){var c=a.Mb(b[0]),d=a.ma(b[0]);a=Xd(a.na(b[0]),a.a);return[c[0]+(b[1]+.5)*a[0]*d,c[1]+(b[2]+.5)*a[1]*d]}function Bf(a,b,c){var d=a.Mb(b[0]),e=a.ma(b[0]);a=Xd(a.na(b[0]),a.a);var f=d[0]+b[1]*a[0]*e;b=d[1]+b[2]*a[1]*e;return He(f,b,f+a[0]*e,b+a[1]*e,c)}function Wk(a,b,c,d,e,
f){var h=Kh(a,d),m=d/a.ma(h),q=a.Mb(h);a=Xd(a.na(h),a.a);b=m*(b-q[0])/(d*a[0]);c=m*(c-q[1])/(d*a[1]);e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));return ri(h,b,c,f)}function em(a,b,c){c=Xe(a,zi(c),b);a=lp(a,b);g(a)||(a=ef(c));return si(0,a-1,0,c.a-c.c+1,void 0)}function lp(a,b){if(null!==a.d)return a.d[b]}function Kh(a,b){b=cg(a.b,b,0);return Hd(b,a.minZoom,a.maxZoom)}function mp(a){var b=a.i;if(null===b){b=zi(a);for(var c=g(void 0)?Xd(void 0):Xd(256),d=g(void 0)?void 0:
"bottom-left",e=np(b,void 0,Xd(c)),f=Array(e.length),h=la(b),m=e.length-1;0<=m;--m)f[m]=h/c[0]/e[m];b=new yd({origin:G(b,d),resolutions:e,tileSize:g(void 0)?void 0:256,widths:f});a.i=b}return b}function np(a,b,c){b=g(b)?b:42;var d=R(a);a=la(a);c=g(c)?c:Xd(256);c=Math.max(a/c[0],d/c[1]);b+=1;d=Array(b);for(a=0;a<b;++a)d[a]=c/Math.pow(2,a);return d}function zi(a){a=Ka(a);var b=a.G();null===b&&(a=180*Rf.degrees/a.Gd(),b=He(-a,-a,a,a));return b}function Yb(a){fc.call(this,{attributions:a.attributions,
extent:a.extent,logo:a.logo,projection:a.projection,state:a.state,wrapX:a.wrapX});this.X=g(a.opaque)?a.opaque:!1;this.ba=g(a.tilePixelRatio)?a.tilePixelRatio:1;this.tileGrid=g(a.tileGrid)?a.tileGrid:null;this.a=new hp;this.c=[0,0]}function op(a,b,c,d){for(var e=!0,f,h,m=c.b;m<=c.d;++m)for(var q=c.c;q<=c.a;++q)f=a.bb(b,m,q),h=!1,lg(a.a,f)&&(f=a.a.get(f),(h=2===f.state)&&(h=!1!==d(f))),h||(e=!1);return e}function Cg(a,b){return null===a.tileGrid?mp(b):a.tileGrid}function Ai(a,b){tc.call(this,a);this.tile=
b}function bc(a){a=g(a)?a:{};this.p=Kd("UL");this.o=Kd("LI");this.p.appendChild(this.o);ge(this.o,!1);this.d=g(a.collapsed)?a.collapsed:!0;(this.g=g(a.collapsible)?a.collapsible:!0)||(this.d=!1);var b=g(a.className)?a.className:"ol-attribution",c=g(a.tipLabel)?a.tipLabel:"Attributions",d=g(a.collapseLabel)?a.collapseLabel:"\u00bb";this.H=E(d)?db("SPAN",{},d):d;d=g(a.label)?a.label:"i";this.J=E(d)?db("SPAN",{},d):d;c=db("BUTTON",{type:"button",title:c},this.g&&!this.d?this.H:this.J);ma(c,"click",this.gl,
!1,this);ma(c,["mouseout",Lh],function(){this.blur()},!1);b=db("DIV",b+" ol-unselectable ol-control"+(this.d&&this.g?" ol-collapsed":"")+(this.g?"":" ol-uncollapsible"),this.p,c);qb.call(this,{element:b,render:g(a.render)?a.render:pp,target:a.target});this.n=!0;this.i={};this.f={};this.N={}}function pp(a){a=a.frameState;if(null===a)this.n&&(ge(this.element,!1),this.n=!1);else{var b,c,d,e,f,h,m,q=a.layerStatesArray,w=Gd(a.attributions),F={},M=a.viewState.projection;var S=0;for(b=q.length;S<b;S++)if(d=
q[S].layer.da(),null!==d&&(m=C(d).toString(),h=d.d,null!==h)){var Y=0;for(c=h.length;Y<c;Y++)if(e=h[Y],f=C(e).toString(),!(f in w)){var N=a.usedTiles[m];if(g(N)){var O=Cg(d,M);a:{var Z=e;var ca=M;if(null===Z.b)Z=!0;else{var ea,ia=void 0;for(ia in N)if(ia in Z.b){var ja=N[ia];var va=0;for(ea=Z.b[ia].length;va<ea;++va){var na=Z.b[ia][va];if(Dj(na,ja)){Z=!0;break a}var Ia=em(O,parseInt(ia,10),ca),cb=ef(Ia);if(ja.b<Ia.b||ja.d>Ia.d)if(Dj(na,new jg(Gf(ja.b,cb),Gf(ja.d,cb),ja.c,ja.a))||ef(ja)>cb&&Dj(na,
Ia)){Z=!0;break a}}}Z=!1}}}else Z=!1;Z?(f in F&&delete F[f],w[f]=e):F[f]=e}}b=[w,F];S=b[0];b=b[1];for(var wa in this.i)wa in S?(this.f[wa]||(ge(this.i[wa],!0),this.f[wa]=!0),delete S[wa]):wa in b?(this.f[wa]&&(ge(this.i[wa],!1),delete this.f[wa]),delete b[wa]):(T(this.i[wa]),delete this.i[wa],delete this.f[wa]);for(wa in S)Y=Kd("LI"),Y.innerHTML=S[wa].a,this.p.appendChild(Y),this.i[wa]=Y,this.f[wa]=!0;for(wa in b)Y=Kd("LI"),Y.innerHTML=b[wa].a,ge(Y,!1),this.p.appendChild(Y),this.i[wa]=Y;wa=!le(this.f)||
!le(a.logos);this.n!=wa&&(ge(this.element,wa),this.n=wa);wa&&le(this.f)?Xc(this.element,"ol-logo-only"):xd(this.element,"ol-logo-only");var zb;a=a.logos;wa=this.N;for(zb in wa)zb in a||(T(wa[zb]),delete wa[zb]);for(var Ub in a)Ub in wa||(zb=new Image,zb.src=Ub,S=a[Ub],""===S?S=zb:(S=db("A",{href:S}),S.appendChild(zb)),this.o.appendChild(S),wa[Ub]=S);ge(this.o,!le(a))}}function fm(a){yb(a.element,"ol-collapsed");a.d?fa(a.H,a.J):fa(a.J,a.H);a.d=!a.d}function Gc(a){a=g(a)?a:{};var b=g(a.className)?a.className:
"ol-rotate",c=g(a.label)?a.label:"\u21e7";this.d=null;E(c)?this.d=db("SPAN","ol-compass",c):(this.d=c,Xc(this.d,"ol-compass"));c=db("BUTTON",{"class":b+"-reset",type:"button",title:g(a.tipLabel)?a.tipLabel:"Reset rotation"},this.d);ma(c,"click",Gc.prototype.o,!1,this);ma(c,["mouseout",Lh],function(){this.blur()},!1);b=db("DIV",b+" ol-unselectable ol-control",c);qb.call(this,{element:b,render:g(a.render)?a.render:qp,target:a.target});this.g=g(a.duration)?a.duration:250;this.f=g(a.autoHide)?a.autoHide:
!0;this.i=void 0;this.f&&Xc(this.element,"ol-hidden")}function qp(a){a=a.frameState;if(null!==a){a=a.viewState.rotation;if(a!=this.i){var b="rotate("+180*a/Math.PI+"deg)";if(this.f){var c=this.element;0===a?Xc(c,"ol-hidden"):xd(c,"ol-hidden")}this.d.style.msTransform=b;this.d.style.webkitTransform=b;this.d.style.transform=b}this.i=a}}function Ac(a){a=g(a)?a:{};var b=g(a.className)?a.className:"ol-zoom",c=g(a.delta)?a.delta:1,d=g(a.zoomOutLabel)?a.zoomOutLabel:"\u2212",e=g(a.zoomOutTipLabel)?a.zoomOutTipLabel:
"Zoom out",f=db("BUTTON",{"class":b+"-in",type:"button",title:g(a.zoomInTipLabel)?a.zoomInTipLabel:"Zoom in"},g(a.zoomInLabel)?a.zoomInLabel:"+");ma(f,"click",X(Ac.prototype.f,c),!1,this);ma(f,["mouseout",Lh],function(){this.blur()},!1);d=db("BUTTON",{"class":b+"-out",type:"button",title:e},d);ma(d,"click",X(Ac.prototype.f,-c),!1,this);ma(d,["mouseout",Lh],function(){this.blur()},!1);b=db("DIV",b+" ol-unselectable ol-control",f,d);qb.call(this,{element:b,target:a.target});this.d=g(a.duration)?a.duration:
250}function rp(a){a=g(a)?a:{};var b=new Sa;(g(a.zoom)?a.zoom:1)&&b.push(new Ac(a.zoomOptions));(g(a.rotate)?a.rotate:1)&&b.push(new Gc(a.rotateOptions));(g(a.attribution)?a.attribution:1)&&b.push(new bc(a.attributionOptions));return b}function sp(){var a=Fc().b,b=a.body;return!!(b.webkitRequestFullscreen||b.mozRequestFullScreen&&a.mozFullScreenEnabled||b.msRequestFullscreen&&a.msFullscreenEnabled||b.requestFullscreen&&a.fullscreenEnabled)}function tp(a){a.webkitRequestFullscreen?a.webkitRequestFullscreen():
a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.requestFullscreen&&a.requestFullscreen()}function gm(){var a=Fc().b;return!!(a.webkitIsFullScreen||a.mozFullScreen||a.msFullscreenElement||a.fullscreenElement)}function Kc(a){a=g(a)?a:{};this.d=g(a.className)?a.className:"ol-full-screen";var b=g(a.label)?a.label:"\u2194";this.f=E(b)?document.createTextNode(String(b)):b;b=g(a.labelActive)?a.labelActive:"\u00d7";this.g=E(b)?document.createTextNode(String(b)):
b;b=g(a.tipLabel)?a.tipLabel:"Toggle full-screen";b=db("BUTTON",{"class":this.d+"-"+gm(),type:"button",title:b},this.f);ma(b,"click",this.n,!1,this);ma(b,["mouseout",Lh],function(){this.blur()},!1);ma(gb.document,fu,this.i,!1,this);var c=this.d+" ol-unselectable ol-control "+(sp()?"":"ol-unsupported");b=db("DIV",c,b);qb.call(this,{element:b,target:a.target});this.o=g(a.keys)?a.keys:!1}function cc(a){a=g(a)?a:{};var b=db("DIV",g(a.className)?a.className:"ol-mouse-position");qb.call(this,{element:b,
render:g(a.render)?a.render:up,target:a.target});ma(this,Uc("projection"),this.jl,!1,this);g(a.coordinateFormat)&&this.vh(a.coordinateFormat);g(a.projection)&&this.yg(Ka(a.projection));this.o=g(a.undefinedHTML)?a.undefinedHTML:"";this.i=b.innerHTML;this.g=this.f=this.d=null}function up(a){a=a.frameState;null===a?this.d=null:this.d!=a.viewState.projection&&(this.d=a.viewState.projection,this.f=null);hm(this,this.g)}function hm(a,b){var c=a.o;if(null!==b&&null!==a.d){if(null===a.f){var d=a.xg();a.f=
g(d)?Qd(a.d,d):ah}d=a.a.ka(b);null!==d&&(a.f(d,d),c=a.Uf(),c=g(c)?c(d):d.toString())}g(a.i)&&c==a.i||(a.element.innerHTML=c,a.i=c)}function Xk(a,b,c){Re.call(this);this.d=a;this.c=c;this.b=b||window;this.a=J(this.Pf,this)}function im(a){if(null!=a.$){var b=vp(a),c=wp(a);b&&!c&&a.b.mozRequestAnimationFrame?Hb(a.$):b&&c?c.call(a.b,a.$):a.b.clearTimeout(a.$)}a.$=null}function vp(a){a=a.b;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||
a.msRequestAnimationFrame||null}function wp(a){a=a.b;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null}function xp(a){gb.setTimeout(function(){throw a;},0)}function Yk(a,b){var c=a;b&&(c=J(a,b));c=gu(c);!x(gb.setImmediate)||gb.Window&&gb.Window.prototype.setImmediate==gb.setImmediate?(yp||=hu(),yp(c)):gb.setImmediate(c)}function hu(){var a=gb.MessageChannel;
"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&(a=function(){var e=document.createElement("iframe");e.style.display="none";e.src="";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.write("");e.close();var h="callImmediate"+Math.random(),m="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=J(function(q){if(("*"==m||q.origin==m)&&q.data==h)this.port1.onmessage()},this);f.addEventListener("message",
e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,m)}}});if("undefined"!==typeof a&&!Pa("Trident")&&!Pa("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(g(c.next)){c=c.next;var e=c.Lf;c.Lf=null;e()}};return function(e){d.next={Lf:e};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(e){var f=document.createElement("script");f.onreadystatechange=function(){f.onreadystatechange=null;
f.parentNode.removeChild(f);f=null;e();e=null};document.documentElement.appendChild(f)}:function(e){gb.setTimeout(e,0)}}function iu(a){if("function"==typeof a.cb)return a.cb();if(E(a))return a.split("");if(H(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Vd(a)}function ju(a,b){if("function"==typeof a.forEach)a.forEach(b,void 0);else if(H(a)||E(a))Oa(a,b,void 0);else{if("function"==typeof a.C)var c=a.C();else if("function"!=typeof a.cb)if(H(a)||E(a)){c=[];for(var d=a.length,e=
0;e<d;e++)c.push(e)}else c=Fd(a);else c=void 0;d=iu(a);e=d.length;for(var f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)}}function Lj(a,b){this.a={};this.b=[];this.c=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Lj?(c=a.C(),d=a.cb()):(c=Fd(a),d=Vd(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}function jm(a){if(a.c!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];Mh(a.a,d)&&
(a.b[c++]=d);b++}a.b.length=c}if(a.c!=a.b.length){var e={};for(c=b=0;b<a.b.length;)d=a.b[b],Mh(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}}function Mh(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function km(){this.b=Lf()}function Zk(a){Tc.call(this);this.pd=a||window;this.Md=ma(this.pd,"resize",this.ik,!1,this);this.Nd=ui(this.pd||window)}function ku(a,b,c,d,e){if(!(jc||Wd&&Cd("525")))return!0;if(wg&&e)return $k(a);if(e&&!d)return!1;D(b)&&(b=lm(b));if(!c&&(17==b||18==b||wg&&91==b))return!1;
if(Wd&&d&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(jc&&d&&b==a)return!1;switch(a){case 13:return!0;case 27:return!Wd}return $k(a)}function $k(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||Wd&&0==a)return!0;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}}
function lm(a){if(sf)a=lu(a);else if(wg&&Wd)switch(a){case 93:a=91}return a}function lu(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}}function ch(a,b){Tc.call(this);a&&zp(this,a,b)}function zp(a,b,c){a.Vd&&mm(a);a.Z=b;a.Ud=ma(a.Z,"keypress",a,c);a.Ye=ma(a.Z,"keydown",a.b,c,a);a.Vd=ma(a.Z,"keyup",a.a,c,a)}function mm(a){a.Ud&&(Hb(a.Ud),Hb(a.Ye),Hb(a.Vd),a.Ud=null,a.Ye=null,a.Vd=null);a.Z=null;a.Ja=-1;a.Hb=-1}function Ap(a,
b,c,d){Se.call(this,d);this.type="key";this.e=a;this.q=b}function Mj(a,b){Tc.call(this);a=this.Z=a;(a=v(a)&&1==a.nodeType?this.Z:this.Z?this.Z.body:null)&&We(a,"direction");this.b=ma(this.Z,sf?"DOMMouseScroll":"mousewheel",this,b)}function nm(a,b){return Wd&&(wg||mu)&&0!=a%b?a:a/b}function Bp(a,b,c,d){Se.call(this,b);this.type="mousewheel";this.detail=a;this.o=d}function Nj(a,b,c){tc.call(this,a);this.b=b;a=g(c)?c:{};this.buttons=nu(a);this.pressure=ou(a,this.buttons);this.bubbles=qc(a,"bubbles",
!1);this.cancelable=qc(a,"cancelable",!1);this.view=qc(a,"view",null);this.detail=qc(a,"detail",null);this.screenX=qc(a,"screenX",0);this.screenY=qc(a,"screenY",0);this.clientX=qc(a,"clientX",0);this.clientY=qc(a,"clientY",0);this.button=qc(a,"button",0);this.relatedTarget=qc(a,"relatedTarget",null);this.pointerId=qc(a,"pointerId",0);this.width=qc(a,"width",0);this.height=qc(a,"height",0);this.pointerType=qc(a,"pointerType","");this.isPrimary=qc(a,"isPrimary",!1);b.preventDefault&&(this.preventDefault=
function(){b.preventDefault()})}function nu(a){if(a.buttons||Cp)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a}function ou(a,b){var c=0;a.pressure?c=a.pressure:c=b?.5:0;return c}function se(a,b){var c=Kd("CANVAS");g(a)&&(c.width=a);g(b)&&(c.height=b);return c.getContext("2d")}function Dp(a,b){var c=a.style;c.WebkitTransform=b;c.MozTransform=b;c.b=b;c.msTransform=b;c.transform=b;jc&&!pu&&(a.style.transformOrigin="0 0")}function om(a,b){var c;
if(qu()){if(g(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");Dp(a,"matrix3d("+c+")")}else if(ru()){d=[b[0],b[1],b[4],b[5],b[12],b[13]];if(g(6)){b=Array(6);for(c=0;6>c;++c)b[c]=d[c].toFixed(6);c=b.join(",")}else c=d.join(",");Dp(a,"matrix("+c+")")}else a.style.left=Math.round(b[12])+"px",a.style.top=Math.round(b[13])+"px"}function Ep(a,b){var c,d,e=Fp.length;for(d=0;d<e;++d)try{if(c=a.getContext(Fp[d],b),null!==c)return c}catch(f){}return null}function dh(a,
b){this.b=a;this.e=b}function pm(a){dh.call(this,a,{mousedown:this.tk,mousemove:this.uk,mouseup:this.xk,mouseover:this.wk,mouseout:this.vk});this.a=a.a;this.c=[]}function Oj(a,b){a=a.c;var c=b.clientX;b=b.clientY;for(var d=0,e=a.length,f;d<e&&(f=a[d]);d++){var h=Math.abs(b-f[1]);if(25>=Math.abs(c-f[0])&&25>=h)return!0}return!1}function Bi(a){var b=qm(a,a.b),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.isPrimary=!0;b.pointerType="mouse";return b}function rm(a){dh.call(this,
a,{MSPointerDown:this.Ck,MSPointerMove:this.Dk,MSPointerUp:this.Gk,MSPointerOut:this.Ek,MSPointerOver:this.Fk,MSPointerCancel:this.Bk,MSGotPointerCapture:this.zk,MSLostPointerCapture:this.Ak});this.a=a.a;this.c=["","unavailable","touch","pen","mouse"]}function Ci(a,b){var c=b;D(b.b.pointerType)&&(c=qm(b,b.b),c.pointerType=a.c[b.b.pointerType]);return c}function sm(a){dh.call(this,a,{pointerdown:this.nn,pointermove:this.pn,pointerup:this.sn,pointerout:this.qn,pointerover:this.rn,pointercancel:this.mn,
gotpointercapture:this.Fj,lostpointercapture:this.sk})}function tm(a,b){dh.call(this,a,{touchstart:this.so,touchmove:this.ro,touchend:this.qo,touchcancel:this.po});this.a=a.a;this.g=b;this.c=void 0;this.f=0;this.d=void 0}function su(a,b,c){b=qm(b,c);b.pointerId=c.identifier+2;b.bubbles=!0;b.cancelable=!0;b.detail=a.f;b.button=0;b.buttons=1;b.width=c.webkitRadiusX||c.radiusX||0;b.height=c.webkitRadiusY||c.radiusY||0;b.pressure=c.webkitForce||c.force||.5;b.isPrimary=a.c===c.identifier;b.pointerType=
"touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b}function al(a,b,c){function d(){b.preventDefault()}var e=Array.prototype.slice.call(b.b.changedTouches),f=e.length,h;for(h=0;h<f;++h){var m=su(a,b,e[h]);m.preventDefault=d;c.call(a,b,m)}}function Gp(a,b){var c=a.g.c;b=b.b.changedTouches[0];if(a.c===b.identifier){var d=[b.clientX,b.clientY];c.push(d);gb.setTimeout(function(){Ee(c,d)},2500)}}function eh(a){Tc.call(this);this.Z=a;this.a={};this.c={};this.b=
[];tu?bl(this,new sm(this)):uu?bl(this,new rm(this)):(a=new pm(this),bl(this,a),um&&bl(this,new tm(this,a)));a=this.b.length;for(var b,c=0;c<a;c++)b=this.b[c],vu(this,Fd(b.e))}function bl(a,b){var c=Fd(b.e);c&&(Oa(c,function(d){var e=b.e[d];e&&(this.c[d]=J(e,b))},a),a.b.push(b))}function vu(a,b){Oa(b,function(c){ma(this.Z,c,this.d,!1,this)},a)}function wu(a,b){Oa(b,function(c){Ge(this.Z,c,this.d,!1,this)},a)}function qm(a,b){for(var c={},d,e=0,f=vm.length;e<f;e++)d=vm[e][0],c[d]=a[d]||b[d]||vm[e][1];
return c}function wm(a,b,c){a.ec(b,c);var d=b.relatedTarget;null!==d&&za(b.target,d)||(b.bubbles=!1,te(a,xm,b,c))}function ym(a,b,c){b.bubbles=!0;te(a,Hp,b,c);var d=b.relatedTarget;null!==d&&za(b.target,d)||(b.bubbles=!1,te(a,Ip,b,c))}function te(a,b,c,d){a.dispatchEvent(new Nj(b,d,c))}function fh(a,b){a.dispatchEvent(new Nj(b.type,b,b.b))}function Dd(a,b,c,d,e){Bg.call(this,a,b,e);this.b=c;this.originalEvent=c.b;this.pixel=b.Bd(this.originalEvent);this.coordinate=b.ka(this.pixel);this.dragging=g(d)?
d:!1}function zd(a,b,c,d,e){Dd.call(this,a,b,c.b,d,e);this.a=c}function cl(a){Tc.call(this);this.c=a;this.f=0;this.g=!1;this.a=this.i=this.d=null;a=this.c.a;this.o=0;this.l={};this.e=new eh(a);this.b=null;this.i=ma(this.e,dl,this.dk,!1,this);this.q=ma(this.e,el,this.Kn,!1,this)}function xu(a,b){var c=new zd(zm,a.c,b);a.dispatchEvent(c);0!==a.f?(gb.clearTimeout(a.f),a.f=0,c=new zd(fl,a.c,b),a.dispatchEvent(c)):a.f=gb.setTimeout(J(function(){this.f=0;var d=new zd(Am,this.c,b);this.dispatchEvent(d)},
a),250)}function Jp(a,b){b.type==Nh||b.type==Bm?delete a.l[b.pointerId]:b.type==Oh&&(a.l[b.pointerId]=!0);a.o=ud(a.l)}function Xa(a){ub.call(this);var b=Gd(a);b.brightness=g(a.brightness)?a.brightness:0;b.contrast=g(a.contrast)?a.contrast:1;b.hue=g(a.hue)?a.hue:0;b.opacity=g(a.opacity)?a.opacity:1;b.saturation=g(a.saturation)?a.saturation:1;b.visible=g(a.visible)?a.visible:!0;b.maxResolution=g(a.maxResolution)?a.maxResolution:Infinity;b.minResolution=g(a.minResolution)?a.minResolution:0;this.t(b)}
function Kp(a){var b=a.Bb(),c=a.Cb(),d=a.Db(),e=a.Kb(),f=a.Gb(),h=a.We(),m=a.eb(),q=a.G(),w=a.Eb(),F=a.Fb();return{layer:a,brightness:Hd(b,-1,1),contrast:Math.max(c,0),hue:d,opacity:Hd(e,0,1),saturation:Math.max(f,0),i:h,visible:m,extent:q,maxResolution:w,minResolution:Math.max(F,0)}}function La(a){var b=Gd(a);delete b.source;Xa.call(this,b);this.f=null;ma(this,Uc("source"),this.kk,!1,this);this.Jc(g(a.source)?a.source:null)}function gh(a,b){return a.visible&&b>=a.minResolution&&b<a.maxResolution}
function Di(a,b,c,d,e){Tc.call(this);this.f=e;this.extent=a;this.e=c;this.resolution=b;this.state=d}function Ae(a,b,c,d,e,f,h,m){wf(a);0===b&&0===c||xf(a,b,c);1==d&&1==e||Qf(a,d,e);0!==f&&ni(a,f);0===h&&0===m||xf(a,h,m);return a}function Cm(a,b){return a[0]==b[0]&&a[1]==b[1]&&a[4]==b[4]&&a[5]==b[5]&&a[12]==b[12]&&a[13]==b[13]}function Cf(a,b,c){var d=a[1],e=a[5],f=a[13],h=b[0];b=b[1];c[0]=a[0]*h+a[4]*b+a[12];c[1]=d*h+e*b+f;return c}function he(a){Id.call(this);this.a=a}function Dm(a,b){var c=b.state;
2!=c&&3!=c&&ma(b,"change",a.Ol,!1,a);0==c&&(b.load(),c=b.state);return 2==c}function gl(a){var b=a.a;b.eb()&&"ready"==b.We()&&a.k()}function Em(a,b){ip(b.a)&&a.postRenderFunctions.push(X(function(c,d,e){d=C(c).toString();c=c.a;e=e.usedTiles[d];for(var f;ip(c)&&!(d=c.b.qc,f=d.b[0].toString(),f in e&&e[f].contains(d.b));)c.pop().Yc()},b))}function Ei(a,b){if(null!=b){var c;var d=0;for(c=b.length;d<c;++d){var e=b[d];a[C(e).toString()]=e}}}function Dg(a,b){b=b.L;g(b)&&(E(b)?a.logos[b]="":v(b)&&(a.logos[b.src]=
b.href))}function Fm(a,b,c,d){b=C(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],d.b<a.b&&(a.b=d.b),d.d>a.d&&(a.d=d.d),d.c<a.c&&(a.c=d.c),d.a>a.a&&(a.a=d.a)):a[b][c]=d:(a[b]={},a[b][c]=d)}function Gm(a,b,c){return[b*(Math.round(a[0]/b)+c[0]%2/2),b*(Math.round(a[1]/b)+c[1]%2/2)]}function Hm(a,b,c,d,e,f,h,m,q,w){var F=C(b).toString();F in a.wantedTiles||(a.wantedTiles[F]={});var M=a.wantedTiles[F];a=a.tileQueue;var S=c.minZoom,Y,N,O,Z;for(Z=h;Z>=S;--Z){var ca=Xe(c,f,Z,ca);var ea=c.ma(Z);for(N=
ca.b;N<=ca.d;++N)for(O=ca.c;O<=ca.a;++O)h-Z<=m?(Y=b.Vb(Z,N,O,d,e),0==Y.state&&(M[ig(Y.b)]=!0,Y.gb()in a.c||Lp(a,[Y,F,kp(c,Y.b),ea])),g(q)&&q.call(w,Y)):b.yf(Z,N,O)}}function Rd(a){this.U=a.opacity;this.V=a.rotateWithView;this.q=a.rotation;this.l=a.scale;this.n=a.snapToPixel}function ld(a){a=g(a)?a:{};this.e=g(a.anchor)?a.anchor:[.5,.5];this.d=null;this.a=g(a.anchorOrigin)?a.anchorOrigin:"top-left";this.g=g(a.anchorXUnits)?a.anchorXUnits:"fraction";this.i=g(a.anchorYUnits)?a.anchorYUnits:"fraction";
var b=g(a.crossOrigin)?a.crossOrigin:null,c=g(a.img)?a.img:null,d=g(a.imgSize)?a.imgSize:null,e=a.src;g(e)&&0!==e.length||null===c||(e=c.src);var f=g(a.src)?0:2,h=Fi.Ia(),m=h.get(e,b);null===m&&(m=new Pj(c,e,d,b,f),h.set(e,b,m));this.b=m;this.p=g(a.offset)?a.offset:[0,0];this.c=g(a.offsetOrigin)?a.offsetOrigin:"top-left";this.f=null;this.o=g(a.size)?a.size:null;Rd.call(this,{opacity:g(a.opacity)?a.opacity:1,rotation:g(a.rotation)?a.rotation:0,scale:g(a.scale)?a.scale:1,snapToPixel:g(a.snapToPixel)?
a.snapToPixel:!0,rotateWithView:g(a.rotateWithView)?a.rotateWithView:!1})}function Pj(a,b,c,d,e){Tc.call(this);this.e=null;this.b=null===a?new Image:a;null!==d&&(this.b.crossOrigin=d);this.d=null;this.c=e;this.a=c;this.f=b;this.i=!1}function Fi(){this.b={};this.a=0}function mg(a,b){Re.call(this);this.g=b;this.c=null;this.f={};this.o={}}function Im(a){var b=a.viewState,c=a.coordinateToPixelMatrix;Ae(c,a.size[0]/2,a.size[1]/2,1/b.resolution,-1/b.resolution,-b.rotation,-b.center[0],-b.center[1]);mi(c,
a.pixelToCoordinateMatrix)}function Jm(){var a=Fi.Ia();if(32<a.a){var b=0,c;for(c in a.b){var d=a.b[c];var e;if(e=0===(b++&3))Sg(d)?d=Jf(d,void 0,void 0):(d=Tg(d),d=!!d&&uj(d,void 0,void 0)),e=!d;e&&(delete a.b[c],--a.a)}}}function Eg(a,b){var c=C(b).toString();if(c in a.f)return a.f[c];b=a.Ke(b);a.f[c]=b;a.o[c]=ma(b,"change",a.Tj,!1,a);return b}function Km(a,b){for(var c in a.f)if(!(c in b.layerStates)){b.postRenderFunctions.push(J(a.Pn,a));break}}function Gi(a,b){this.g=a;this.e=b;this.b=[];this.a=
[];this.c={}}function Mp(a){var b=a.b,c=a.a,d=b[0];1==b.length?(b.length=0,c.length=0):(b[0]=b.pop(),c[0]=c.pop(),Np(a,0));b=a.e(d);delete a.c[b];return d}function Lp(a,b){var c=a.g(b);Infinity!=c&&(a.b.push(b),a.a.push(c),a.c[a.e(b)]=!0,Op(a,0,a.b.length-1))}function Np(a,b){for(var c=a.b,d=a.a,e=c.length,f=c[b],h=d[b],m=b;b<e>>1;){var q=2*b+1,w=2*b+2;q=w<e&&d[w]<d[q]?w:q;c[b]=c[q];d[b]=d[q];b=q}c[b]=f;d[b]=h;Op(a,m,b)}function Op(a,b,c){var d=a.b;a=a.a;for(var e=d[c],f=a[c];c>b;){var h=c-1>>1;if(a[h]>
f)d[c]=d[h],a[c]=a[h],c=h;else break}d[c]=e;a[c]=f}function Pp(a){var b=a.g,c=a.b,d=a.a,e=0,f=c.length,h;for(h=0;h<f;++h){var m=c[h];var q=b(m);Infinity==q?delete a.c[a.e(m)]:(d[e]=q,c[e++]=m)}c.length=e;d.length=e;for(b=(a.b.length>>1)-1;0<=b;b--)Np(a,b)}function Lm(a,b){Gi.call(this,function(c){return a.apply(null,c)},function(c){return c[0].gb()});this.i=b;this.d=0}function Mm(a,b,c){this.d=a;this.c=b;this.f=c;this.b=[];this.a=this.e=0}function yu(a,b){var c=a.d,d=a.a,e=a.c-d,f=Math.log(a.c/a.a)/
a.d;return Ue({source:b,duration:f,easing:function(h){return d*(Math.exp(c*h*f)-1)/e}})}function Jb(a){ub.call(this);this.l=null;this.d(!0);this.handleEvent=a.handleEvent}function Hi(a,b,c,d,e){if(null!=c){var f=b.Da(),h=b.Ca();g(f)&&g(h)&&g(e)&&0<e&&(a.Ha(qi({rotation:f,duration:e,easing:Sf})),g(d)&&a.Ha(Ue({source:h,duration:e,easing:Sf})));b.rotate(c,d)}}function Nm(a,b,c,d,e){var f=b.ya();c=b.constrainResolution(f,c,0);Ii(a,b,c,d,e)}function Ii(a,b,c,d,e){if(null!=c){var f=b.ya(),h=b.Ca();g(f)&&
g(h)&&g(e)&&0<e&&(a.Ha(zf({resolution:f,duration:e,easing:Sf})),g(d)&&a.Ha(Ue({source:h,duration:e,easing:Sf})));if(null!=d){var m;a=b.Ca();e=b.ya();g(a)&&g(e)&&(m=[d[0]-c*(d[0]-a[0])/e,d[1]-c*(d[1]-a[1])/e]);b.Na(m)}b.tb(c)}}function gd(a){a=g(a)?a:{};this.a=g(a.delta)?a.delta:1;Jb.call(this,{handleEvent:Qp});this.e=g(a.duration)?a.duration:250}function Qp(a){var b=!1,c=a.b;if(a.type==fl){b=a.map;var d=a.coordinate;c=c.d?-this.a:this.a;var e=b.R();Nm(b,e,c,d,this.e);a.preventDefault();b=!0}return!b}
function Rp(a){a=a.b;return a.a&&!a.g&&a.d}function Sp(a){return"pointermove"==a.type}function Om(a){return a.type==Am}function Qj(a){a=a.b;return!a.a&&!a.g&&!a.d}function Rj(a){a=a.b;return!a.a&&!a.g&&a.d}function Pm(a){a=a.b.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function ng(a){return 1==a.a.pointerId}function Db(a){a=g(a)?a:{};Jb.call(this,{handleEvent:g(a.handleEvent)?a.handleEvent:Sj});this.vb=g(a.handleDownEvent)?a.handleDownEvent:hf;this.wb=g(a.handleDragEvent)?a.handleDragEvent:
A;this.xb=g(a.handleMoveEvent)?a.handleMoveEvent:A;this.sc=g(a.handleUpEvent)?a.handleUpEvent:hf;this.o=!1;this.J={};this.e=[]}function Qm(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return[c/b,d/b]}function Sj(a){if(!(a instanceof zd))return!0;var b=!1,c=a.type;if(c===Oh||c===Tj||c===Nh)c=a.a,a.type==Nh?delete this.J[c.pointerId]:a.type==Oh?this.J[c.pointerId]=c:c.pointerId in this.J&&(this.J[c.pointerId]=c),this.e=Vd(this.J);this.o&&(a.type==Tj?this.wb(a):a.type==Nh&&
(this.o=this.sc(a)));a.type==Oh?(this.o=a=this.vb(a),b=this.nc(a)):a.type==Uj&&this.xb(a);return!b}function Yc(a){Db.call(this,{handleDownEvent:zu,handleDragEvent:Au,handleUpEvent:Bu});a=g(a)?a:{};this.a=a.kinetic;this.f=this.g=null;this.n=g(a.condition)?a.condition:Qj;this.i=!1}function Au(a){var b=Qm(this.e);this.a&&this.a.update(b[0],b[1]);if(null!==this.f){var c=this.f[0]-b[0],d=b[1]-this.f[1];a=a.map;var e=a.R(),f=bh(e);d=c=[c,d];var h=f.resolution;d[0]*=h;d[1]*=h;Zg(c,f.rotation);Xg(c,f.center);
c=e.xd(c);a.render();e.Na(c)}this.f=b}function Bu(a){a=a.map;var b=a.R();if(0===this.e.length){var c;if(c=!this.i&&this.a)if(c=this.a,6>c.b.length)c=!1;else{var d=Lf()-c.f,e=c.b.length-3;if(c.b[e+2]<d)c=!1;else{for(var f=e-3;0<f&&c.b[f+2]>d;)f-=3;d=c.b[e+2]-c.b[f+2];var h=c.b[e]-c.b[f];e=c.b[e+1]-c.b[f+1];c.e=Math.atan2(e,h);c.a=Math.sqrt(h*h+e*e)/d;c=c.a>c.c}}c&&(c=this.a,c=(c.c-c.a)/c.d,e=this.a.e,f=b.Ca(),this.g=yu(this.a,f),a.Ha(this.g),f=a.ta(f),c=a.ka([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),
c=b.xd(c),b.Na(c));Ke(b,-1);a.render();return!1}this.f=null;return!0}function zu(a){if(0<this.e.length&&this.n(a)){var b=a.map,c=b.R();this.f=null;this.o||Ke(c,1);b.render();null!==this.g&&Ee(b.H,this.g)&&(c.Na(a.frameState.viewState.center),this.g=null);this.a&&(a=this.a,a.b.length=0,a.e=0,a.a=0);this.i=1<this.e.length;return!0}return!1}function Zc(a){a=g(a)?a:{};Db.call(this,{handleDownEvent:Cu,handleDragEvent:Du,handleUpEvent:Eu});this.f=g(a.condition)?a.condition:Rp;this.a=void 0;this.g=g(a.duration)?
a.duration:250}function Du(a){if(ng(a)){var b=a.map,c=b.xa();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(g(this.a)){a=c-this.a;var d=b.R(),e=d.Da();b.render();Hi(b,d,e-a)}this.a=c}}function Eu(a){if(!ng(a))return!0;a=a.map;var b=a.R();Ke(b,-1);var c=b.Da(),d=this.g;c=b.constrainRotation(c,0);Hi(a,b,c,void 0,d);return!1}function Cu(a){return ng(a)&&rj(a.b)&&this.f(a)?(a=a.map,Ke(a.R(),1),a.render(),this.a=void 0,!0):!1}function gc(){ub.call(this);this.o=Yd();this.n=-1;this.f={};this.l=this.g=
0}function Ji(a,b,c,d,e,f){var h=e[0],m=e[1],q=e[4],w=e[5],F=e[12];e=e[13];for(var M=g(f)?f:[],S=0;b<c;b+=d){var Y=a[b],N=a[b+1];M[S++]=h*Y+q*N+F;M[S++]=m*Y+w*N+e}g(f)&&M.length!=S&&(M.length=S);return M}function mb(){gc.call(this);this.a="XY";this.s=2;this.j=null}function Rm(a){if("XY"==a)return 2;if("XYZ"==a||"XYM"==a)return 3;if("XYZM"==a)return 4}function Df(a,b,c){a.s=Rm(b);a.a=b;a.j=c}function hh(a,b,c,d){if(g(b))c=Rm(b);else{for(b=0;b<d;++b){if(0===c.length){a.a="XY";a.s=2;return}c=c[0]}c=
c.length;b=2==c?"XY":3==c?"XYZ":4==c?"XYZM":void 0}a.a=b;a.s=c}function Tp(a,b,c,d){for(var e=0,f=a[c-d],h=a[c-d+1];b<c;b+=d){var m=a[b],q=a[b+1];e+=h*m-f*q;f=m;h=q}return e/2}function Up(a,b,c,d){var e=0,f;var h=0;for(f=c.length;h<f;++h){var m=c[h];e+=Tp(a,b,m,d);b=m}return e}function Vp(a,b,c,d,e,f){var h=e-c,m=f-d;if(0!==h||0!==m){var q=((a-c)*h+(b-d)*m)/(h*h+m*m);1<q?(c=e,d=f):0<q&&(c+=h*q,d+=m*q)}return Ph(a,b,c,d)}function Ph(a,b,c,d){a=c-a;b=d-b;return a*a+b*b}function Wp(a,b,c,d,e,f,h){var m=
a[b],q=a[b+1],w=a[c]-m,F=a[c+1]-q;if(0!==w||0!==F)if(f=((e-m)*w+(f-q)*F)/(w*w+F*F),1<f)b=c;else if(0<f){for(e=0;e<d;++e)h[e]=yh(a[b+e],a[c+e],f);h.length=d;return}for(e=0;e<d;++e)h[e]=a[b+e];h.length=d}function Sm(a,b,c,d,e){var f=a[b],h=a[b+1];for(b+=d;b<c;b+=d){var m=a[b],q=a[b+1];f=Ph(f,h,m,q);f>e&&(e=f);f=m;h=q}return e}function Tm(a,b,c,d,e){var f;var h=0;for(f=c.length;h<f;++h){var m=c[h];e=Sm(a,b,m,d,e);b=m}return e}function Um(a,b,c,d,e,f,h,m,q,w,F){if(b==c)return w;if(0===e){var M=Ph(h,m,
a[b],a[b+1]);if(M<w){for(F=0;F<d;++F)q[F]=a[b+F];q.length=d;return M}return w}for(var S=g(F)?F:[NaN,NaN],Y=b+d;Y<c;)if(Wp(a,Y-d,Y,d,h,m,S),M=Ph(h,m,S[0],S[1]),M<w){w=M;for(F=0;F<d;++F)q[F]=S[F];q.length=d;Y+=d}else Y+=d*Math.max((Math.sqrt(M)-Math.sqrt(w))/e|0,1);if(f&&(Wp(a,c-d,b,d,h,m,S),M=Ph(h,m,S[0],S[1]),M<w)){w=M;for(F=0;F<d;++F)q[F]=S[F];q.length=d}return w}function Vm(a,b,c,d,e,f,h,m,q,w,F){F=g(F)?F:[NaN,NaN];var M;var S=0;for(M=c.length;S<M;++S){var Y=c[S];w=Um(a,b,Y,d,e,f,h,m,q,w,F);b=Y}return w}
function Xp(a,b){var c=0,d;var e=0;for(d=b.length;e<d;++e)a[c++]=b[e];return c}function hl(a,b,c,d){var e;var f=0;for(e=c.length;f<e;++f){var h=c[f],m;for(m=0;m<d;++m)a[b++]=h[m]}return b}function Wm(a,b,c,d,e){e=g(e)?e:[];var f=0,h;var m=0;for(h=c.length;m<h;++m)b=hl(a,b,c[m],d),e[f++]=b;e.length=f;return e}function Vj(a,b,c,d,e){e=g(e)?e:[];for(var f=0;b<c;b+=d)e[f++]=a.slice(b,b+d);e.length=f;return e}function Xm(a,b,c,d,e){e=g(e)?e:[];var f=0,h;var m=0;for(h=c.length;m<h;++m){var q=c[m];e[f++]=
Vj(a,b,q,d,e[f]);b=q}e.length=f;return e}function Ym(a,b,c,d,e,f,h){var m=(c-b)/d;if(3>m){for(;b<c;b+=d)f[h++]=a[b],f[h++]=a[b+1];return h}var q=Array(m);q[0]=1;q[m-1]=1;c=[b,c-d];for(var w=0,F;0<c.length;){var M=c.pop(),S=c.pop(),Y=0,N=a[S],O=a[S+1],Z=a[M],ca=a[M+1];for(F=S+d;F<M;F+=d){var ea=Vp(a[F],a[F+1],N,O,Z,ca);ea>Y&&(w=F,Y=ea)}Y>e&&(q[(w-b)/d]=1,S+d<w&&c.push(S,w),w+d<M&&c.push(w,M))}for(F=0;F<m;++F)q[F]&&(f[h++]=a[b+F*d],f[h++]=a[b+F*d+1]);return h}function Yp(a,b,c,d,e,f,h,m){var q;var w=
0;for(q=c.length;w<q;++w){var F=c[w];a:{var M=a,S=F,Y=d,N=e,O=f;if(b!=S){var Z=N*Math.round(M[b]/N),ca=N*Math.round(M[b+1]/N);b+=Y;O[h++]=Z;O[h++]=ca;var ea,ia;do if(ea=N*Math.round(M[b]/N),ia=N*Math.round(M[b+1]/N),b+=Y,b==S){O[h++]=ea;O[h++]=ia;break a}while(ea==Z&&ia==ca);for(;b<S;){var ja=N*Math.round(M[b]/N);var va=N*Math.round(M[b+1]/N);b+=Y;if(ja!=ea||va!=ia){var na=ea-Z,Ia=ia-ca,cb=ja-Z,wa=va-ca;na*wa==Ia*cb&&(0>na&&cb<na||na==cb||0<na&&cb>na)&&(0>Ia&&wa<Ia||Ia==wa||0<Ia&&wa>Ia)||(O[h++]=
ea,O[h++]=ia,Z=ea,ca=ia);ea=ja;ia=va}}O[h++]=ea;O[h++]=ia}}m.push(h);b=F}return h}function lb(a,b){mb.call(this);this.c=this.i=-1;this.W(a,b)}function Ki(a,b,c){Df(a,b,c);a.k()}function Ta(a,b){mb.call(this);this.W(a,b)}function Li(a,b,c){Df(a,b,c);a.k()}function Fu(a,b,c,d,e){return!k(e,function(f){return!Qh(a,b,c,d,f[0],f[1])})}function Qh(a,b,c,d,e,f){for(var h=!1,m=a[c-d],q=a[c-d+1];b<c;b+=d){var w=a[b],F=a[b+1];q>f!=F>f&&e<(w-m)*(f-q)/(F-q)+m&&(h=!h);m=w;q=F}return h}function Zm(a,b,c,d,e,f){if(0===
c.length||!Qh(a,b,c[0],d,e,f))return!1;var h;b=1;for(h=c.length;b<h;++b)if(Qh(a,c[b-1],c[b],d,e,f))return!1;return!0}function Zp(a,b,c,d,e,f,h){var m,q=e[f+1],w=[],F=c[0];var M=a[F-d];var S=a[F-d+1];for(m=b;m<F;m+=d){var Y=a[m];var N=a[m+1];if(q<=S&&N<=q||S<=q&&q<=N)M=(q-S)/(N-S)*(Y-M)+M,w.push(M);M=Y;S=N}F=NaN;S=-Infinity;w.sort();M=w[0];m=1;for(N=w.length;m<N;++m){Y=w[m];var O=Math.abs(Y-M);O>S&&(M=(M+Y)/2,Zm(a,b,c,d,M,q)&&(F=M,S=O));M=Y}isNaN(F)&&(F=e[f]);return g(h)?(h.push(F,q),h):[F,q]}function $p(a,
b,c,d,e,f){for(var h=[a[b],a[b+1]],m=[],q;b+d<c;b+=d){m[0]=a[b+d];m[1]=a[b+d+1];if(q=e.call(f,h,m))return q;h[0]=m[0];h[1]=m[1]}return!1}function $m(a,b,c,d,e){var f=Aj(Yd(),a,b,c,d);return sa(e,f)?qe(e,f)||f[0]>=e[0]&&f[2]<=e[2]||f[1]>=e[1]&&f[3]<=e[3]?!0:$p(a,b,c,d,function(h,m){var q=!1,w=Fh(e,h),F=Fh(e,m);if(1===w||1===F)q=!0;else{var M=e[0],S=e[1],Y=e[2],N=e[3],O=m[0];m=m[1];h=(m-h[1])/(O-h[0]);F&2&&!(w&2)&&(q=O-(m-N)/h,q=q>=M&&q<=Y);q||!(F&4)||w&4||(q=m-(O-Y)*h,q=q>=S&&q<=N);q||!(F&8)||w&8||
(q=O-(m-S)/h,q=q>=M&&q<=Y);q||!(F&16)||w&16||(q=m-(O-M)*h,q=q>=S&&q<=N)}return q}):!1}function aq(a,b,c,d,e){var f=c[0];if(!($m(a,b,f,d,e)||Qh(a,b,f,d,e[0],e[1])||Qh(a,b,f,d,e[0],e[3])||Qh(a,b,f,d,e[2],e[1])||Qh(a,b,f,d,e[2],e[3])))return!1;if(1===c.length)return!0;b=1;for(f=c.length;b<f;++b)if(Fu(a,c[b-1],c[b],d,e))return!1;return!0}function an(a,b,c,d){for(var e=0,f=a[c-d],h=a[c-d+1];b<c;b+=d){var m=a[b],q=a[b+1];e+=(m-f)*(q+h);f=m;h=q}return 0<e}function bq(a,b,c,d){var e=0;d=g(d)?d:!1;var f;var h=
0;for(f=b.length;h<f;++h){var m=b[h];e=an(a,e,m,c);if(0===h){if(d&&e||!d&&!e)return!1}else if(d&&!e||!d&&e)return!1;e=m}return!0}function bn(a,b,c,d,e){e=g(e)?e:!1;var f;var h=0;for(f=c.length;h<f;++h){var m=c[h],q=an(a,b,m,d);if(0===h?e&&q||!e&&!q:e&&!q||!e&&q){q=a;for(var w=m,F=d;b<w-F;){var M;for(M=0;M<F;++M){var S=q[b+M];q[b+M]=q[w-F+M];q[w-F+M]=S}b+=F;w-=F}}b=m}return b}function cq(a,b,c,d){var e=0,f;var h=0;for(f=b.length;h<f;++h)e=bn(a,e,b[h],c,d);return e}function Fa(a,b){mb.call(this);this.c=
[];this.p=-1;this.H=null;this.N=this.J=this.L=-1;this.i=null;this.W(a,b)}function cn(a){if(a.p!=a.b){var b=y(a.G());a.H=Zp(Rh(a),0,a.c,a.s,b,0);a.p=a.b}return a.H}function Rh(a){if(a.N!=a.b){var b=a.j;bq(b,a.c,a.s)?a.i=b:(a.i=b.slice(),a.i.length=bn(a.i,0,a.c,a.s));a.N=a.b}return a.i}function Nf(a,b,c,d){Df(a,b,c);a.c=d;a.k()}function dq(a,b,c,d){var e=g(d)?d:32;d=[];var f;for(f=0;f<e;++f)Tb(d,a.offset(b,c,2*Math.PI*f/e));d.push(d[0],d[1]);a=new Fa(null);Nf(a,"XY",d,[d.length]);return a}function il(){}
function Ye(a,b,c,d,e,f,h){tc.call(this,a,b);this.vectorContext=c;this.b=d;this.frameState=e;this.context=f;this.glContext=h}function Mi(a){this.c=this.a=this.e=this.d=this.b=null;this.f=a}function eq(a){var b=a.e,c=a.a;a=Jc([b,[b[0],c[1]],c,[c[0],b[1]]],a.b.ka,a.b);a[4]=a[0].slice();return new Fa([a])}function dn(a){null===a.b||null===a.e||null===a.a||a.b.render()}function Wj(a,b){tc.call(this,a);this.coordinate=b}function Bc(a){Db.call(this,{handleDownEvent:Gu,handleDragEvent:Hu,handleUpEvent:Iu});
a=g(a)?a:{};this.f=new Mi(g(a.style)?a.style:null);this.a=null;this.i=g(a.condition)?a.condition:Le}function Hu(a){if(ng(a)){var b=this.f;a=a.pixel;b.e=this.a;b.a=a;b.c=eq(b);dn(b)}}function Iu(a){if(!ng(a))return!0;this.f.setMap(null);var b=a.pixel[0]-this.a[0],c=a.pixel[1]-this.a[1];64<=b*b+c*c&&(this.g(a),this.dispatchEvent(new Wj("boxend",a.coordinate)));return!1}function Gu(a){if(ng(a)&&rj(a.b)&&this.i(a)){this.a=a.pixel;this.f.setMap(a.map);var b=this.f,c=this.a;b.e=this.a;b.a=c;b.c=eq(b);dn(b);
this.dispatchEvent(new Wj("boxstart",a.coordinate));return!0}return!1}function en(){this.a=64;this.b=Array(4);this.e=Array(this.a);this.b[0]=1732584193;this.b[1]=4023233417;this.b[2]=2562383102;this.b[3]=271733878;this.d=this.c=0}function fn(a,b,c){c||=0;var d=Array(16);if(E(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.b[0];c=a.b[1];e=a.b[2];var f=a.b[3];var h=b+
(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);
h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|
h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|
h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|
h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>
16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+
3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+3873151461&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;
f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;
b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;
a.b[0]=a.b[0]+b&4294967295;a.b[1]=a.b[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.b[2]=a.b[2]+e&4294967295;a.b[3]=a.b[3]+f&4294967295}function Lc(a){a=g(a)?a:{};this.b=g(a.color)?a.color:null;this.d=a.lineCap;this.c=g(a.lineDash)?a.lineDash:null;this.e=a.lineJoin;this.f=a.miterLimit;this.a=a.width;this.g=void 0}function jf(a){a=g(a)?a:{};this.b=g(a.color)?a.color:null;this.a=void 0}function Qc(a){a=g(a)?a:{};this.f=this.b=this.e=null;this.d=g(a.fill)?a.fill:null;this.a=g(a.stroke)?a.stroke:null;
this.c=a.radius;this.o=[0,0];this.i=this.p=this.g=null;var b=a.atlasManager,c,d=null,e,f=0;null!==this.a&&(e=pd(this.a.b),f=this.a.a,g(f)||(f=1),d=this.a.c,Ni||(d=null));var h=2*(this.c+f)+1;e={strokeStyle:e,md:f,size:h,lineDash:d};g(b)?(h=Math.round(h),(d=null===this.d)&&(c=J(this.Rg,this,e)),f=this.nb(),e=b.add(f,h,h,J(this.Sg,this,e),c),this.b=e.image,this.o=[e.offsetX,e.offsetY],c=e.image.width,this.f=d?e.ig:this.b):(this.b=Kd("CANVAS"),this.b.height=h,this.b.width=h,c=h=this.b.width,b=this.b.getContext("2d"),
this.Sg(e,b,0,0),null===this.d?(b=this.f=Kd("CANVAS"),b.height=e.size,b.width=e.size,b=b.getContext("2d"),this.Rg(e,b,0,0)):this.f=this.b);this.g=[h/2,h/2];this.p=[h,h];this.i=[c,c];Rd.call(this,{opacity:1,rotateWithView:!1,rotation:0,scale:1,snapToPixel:g(a.snapToPixel)?a.snapToPixel:!0})}function qd(a){a=g(a)?a:{};this.g=null;this.d=fq;g(a.geometry)&&this.Vg(a.geometry);this.e=g(a.fill)?a.fill:null;this.f=g(a.image)?a.image:null;this.c=g(a.stroke)?a.stroke:null;this.a=g(a.text)?a.text:null;this.b=
a.zIndex}function gn(a){x(a)||(a=t(a)?a:[a],a=Kj(a));return a}function Xj(){var a=new jf({color:"rgba(255,255,255,0.4)"}),b=new Lc({color:"#3399CC",width:1.25}),c=[new qd({image:new Qc({fill:a,stroke:b,radius:5}),fill:a,stroke:b})];Xj=function(){return c};return c}function hn(){var a={},b=[255,255,255,1],c=[0,153,255,1];a.Polygon=[new qd({fill:new jf({color:[255,255,255,.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new qd({stroke:new Lc({color:b,width:5})}),new qd({stroke:new Lc({color:c,width:3})})];
a.MultiLineString=a.LineString;a.Circle=a.Polygon.concat(a.LineString);a.Point=[new qd({image:new Qc({radius:6,fill:new jf({color:c}),stroke:new Lc({color:b,width:1.5})}),zIndex:Infinity})];a.MultiPoint=a.Point;a.GeometryCollection=a.Polygon.concat(a.Point);return a}function fq(a){return a.Q()}function Mc(a){var b=g(a)?a:{};a=g(b.condition)?b.condition:Rj;this.n=g(b.duration)?b.duration:200;b=g(b.style)?b.style:new qd({stroke:new Lc({color:[0,0,255,1]})});Bc.call(this,{condition:a,style:b})}function hd(a){Jb.call(this,
{handleEvent:gq});a=g(a)?a:{};this.a=g(a.condition)?a.condition:jp(Qj,Pm);this.e=g(a.duration)?a.duration:100;this.f=g(a.pixelDelta)?a.pixelDelta:128}function gq(a){var b=!1;if("key"==a.type){var c=a.b.e;if(this.a(a)&&(40==c||37==c||39==c||38==c)){var d=a.map;b=d.R();var e=bh(b),f=e.resolution*this.f,h=0,m=0;40==c?m=-f:37==c?h=-f:39==c?h=f:m=f;c=[h,m];Zg(c,e.rotation);e=this.e;f=b.Ca();g(f)&&(g(e)&&0<e&&d.Ha(Ue({source:f,duration:e,easing:Ok})),d=b.xd([f[0]+c[0],f[1]+c[1]]),b.Na(d));a.preventDefault();
b=!0}}return!b}function id(a){Jb.call(this,{handleEvent:hq});a=g(a)?a:{};this.e=g(a.condition)?a.condition:Pm;this.a=g(a.delta)?a.delta:1;this.f=g(a.duration)?a.duration:100}function hq(a){var b=!1;if("key"==a.type){var c=a.b.q;if(this.e(a)&&(43==c||45==c)){b=a.map;c=43==c?this.a:-this.a;b.render();var d=b.R();Nm(b,d,c,void 0,this.f);a.preventDefault();b=!0}}return!b}function $c(a){Jb.call(this,{handleEvent:iq});a=g(a)?a:{};this.a=0;this.o=g(a.duration)?a.duration:250;this.f=null;this.g=this.e=void 0}
function iq(a){var b=!1;if("mousewheel"==a.type){b=a.map;var c=a.b;this.f=a.coordinate;this.a+=c.o;g(this.e)||(this.e=Lf());c=Math.max(80-(Lf()-this.e),0);gb.clearTimeout(this.g);this.g=gb.setTimeout(J(this.i,this,b),c);a.preventDefault();b=!0}return!b}function ad(a){Db.call(this,{handleDownEvent:Ju,handleDragEvent:Ku,handleUpEvent:Lu});a=g(a)?a:{};this.f=null;this.g=void 0;this.a=!1;this.i=0;this.p=g(a.threshold)?a.threshold:.3;this.n=g(a.duration)?a.duration:250}function Ku(a){var b=0,c=this.e[0],
d=this.e[1];c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);g(this.g)&&(b=c-this.g,this.i+=b,!this.a&&Math.abs(this.i)>this.p&&(this.a=!0));this.g=c;a=a.map;c=Ij(a.a);d=Qm(this.e);d[0]-=c.x;d[1]-=c.y;this.f=a.ka(d);this.a&&(c=a.R(),d=c.Da(),a.render(),Hi(a,c,d+b,this.f))}function Lu(a){if(2>this.e.length){a=a.map;var b=a.R();Ke(b,-1);if(this.a){var c=b.Da(),d=this.f,e=this.n;c=b.constrainRotation(c,0);Hi(a,b,c,d,e)}return!1}return!0}function Ju(a){return 2<=this.e.length?(a=a.map,this.f=null,
this.g=void 0,this.a=!1,this.i=0,this.o||Ke(a.R(),1),a.render(),!0):!1}function bd(a){Db.call(this,{handleDownEvent:Mu,handleDragEvent:Nu,handleUpEvent:Ou});a=g(a)?a:{};this.f=null;this.i=g(a.duration)?a.duration:400;this.a=void 0;this.g=1}function Nu(a){var b=1,c=this.e[0],d=this.e[1],e=c.clientX-d.clientX;c=c.clientY-d.clientY;e=Math.sqrt(e*e+c*c);g(this.a)&&(b=this.a/e);this.a=e;1!=b&&(this.g=b);a=a.map;e=a.R();c=e.ya();d=Ij(a.a);var f=Qm(this.e);f[0]-=d.x;f[1]-=d.y;this.f=a.ka(f);a.render();Ii(a,
e,c*b,this.f)}function Ou(a){if(2>this.e.length){a=a.map;var b=a.R();Ke(b,-1);var c=b.ya(),d=this.f,e=this.i;c=b.constrainResolution(c,0,this.g-1);Ii(a,b,c,d,e);return!1}return!0}function Mu(a){return 2<=this.e.length?(a=a.map,this.f=null,this.a=void 0,this.g=1,this.o||Ke(a.R(),1),a.render(),!0):!1}function jq(a){a=g(a)?a:{};var b=new Sa,c=new Mm(-.005,.05,100);(g(a.altShiftDragRotate)?a.altShiftDragRotate:1)&&b.push(new Zc);(g(a.doubleClickZoom)?a.doubleClickZoom:1)&&b.push(new gd({delta:a.zoomDelta,
duration:a.zoomDuration}));(g(a.dragPan)?a.dragPan:1)&&b.push(new Yc({kinetic:c}));(g(a.pinchRotate)?a.pinchRotate:1)&&b.push(new ad);(g(a.pinchZoom)?a.pinchZoom:1)&&b.push(new bd({duration:a.zoomDuration}));if(g(a.keyboard)?a.keyboard:1)b.push(new hd),b.push(new id({delta:a.zoomDelta,duration:a.zoomDuration}));(g(a.mouseWheelZoom)?a.mouseWheelZoom:1)&&b.push(new $c({duration:a.zoomDuration}));(g(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Mc);return b}function Ua(a){var b=g(a)?a:{};a=Gd(b);delete a.layers;
b=b.layers;Xa.call(this,a);this.c=[];this.a={};ma(this,Uc("layers"),this.Vj,!1,this);null!=b?t(b)&&(b=new Sa(b.slice())):b=new Sa;this.Ah(b)}function jn(a){Cb.call(this,{code:a,units:"m",extent:kq,global:!0,worldExtent:Pu})}function Yt(a,b,c){var d=a.length;c=1<c?c:2;g(b)||(2<c?b=a.slice():b=Array(d));for(var e=0;e<d;e+=c)b[e]=6378137*Math.PI*a[e]/180,b[e+1]=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b}function Zt(a,b,c){var d=a.length;c=1<c?c:2;g(b)||(2<c?b=a.slice():b=Array(d));
for(var e=0;e<d;e+=c)b[e]=180*a[e]/(6378137*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b}function og(a,b){Cb.call(this,{code:a,units:"degrees",extent:lq,axisOrientation:b,global:!0,worldExtent:lq})}function mq(){Ie(bp);Ie(cp);Ab()}function Va(a){La.call(this,g(a)?a:{})}function Ea(a){a=g(a)?a:{};var b=Gd(a);delete b.preload;delete b.useInterimTilesOnError;La.call(this,b);this.d(g(a.preload)?a.preload:0);this.e(g(a.useInterimTilesOnError)?a.useInterimTilesOnError:!0)}
function Ga(a){a=g(a)?a:{};var b=Gd(a);delete b.style;delete b.renderBuffer;delete b.updateWhileAnimating;delete b.updateWhileInteracting;La.call(this,b);this.c=g(a.renderBuffer)?a.renderBuffer:100;this.g=null;this.a=void 0;this.e(a.style);this.o=g(a.updateWhileAnimating)?a.updateWhileAnimating:!1;this.n=g(a.updateWhileInteracting)?a.updateWhileInteracting:!1}function uc(a,b,c,d,e){this.U={};this.c=a;this.n=b;this.e=c;this.H=d;this.Nc=e;this.f=this.b=this.a=this.oa=this.ba=this.X=null;this.Ga=this.Fa=
this.o=this.N=this.L=this.J=0;this.Ra=!1;this.g=this.rc=0;this.vb=!1;this.T=0;this.d="";this.q=this.p=this.xb=this.wb=0;this.sa=this.l=this.i=null;this.V=[];this.sc=fd()}function nq(a,b,c){if(null!==a.f){b=Ji(b,0,c,2,a.H,a.V);c=a.c;var d=a.sc,e=c.globalAlpha;1!=a.o&&(c.globalAlpha=e*a.o);var f=a.rc;a.Ra&&(f+=a.Nc);var h;var m=0;for(h=b.length;m<h;m+=2){var q=b[m]-a.J,w=b[m+1]-a.L;a.vb&&(q=q+.5|0,w=w+.5|0);if(0!==f||1!=a.g){var F=q+a.J,M=w+a.L;Ae(d,F,M,a.g,a.g,f,-F,-M);c.setTransform(d[0],d[1],d[4],
d[5],d[12],d[13])}c.drawImage(a.f,a.Fa,a.Ga,a.T,a.N,q,w,a.T,a.N)}0===f&&1==a.g||c.setTransform(1,0,0,1,0,0);1!=a.o&&(c.globalAlpha=e)}}function Sh(a,b,c,d){var e=0;if(null!==a.sa&&""!==a.d){null===a.i||jl(a,a.i);null===a.l||Oi(a,a.l);var f=a.sa,h=a.c,m=a.oa;null===m?(h.font=f.font,h.textAlign=f.textAlign,h.textBaseline=f.textBaseline,a.oa={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline}):(m.font!=f.font&&(m.font=h.font=f.font),m.textAlign!=f.textAlign&&(m.textAlign=h.textAlign=f.textAlign),
m.textBaseline!=f.textBaseline&&(m.textBaseline=h.textBaseline=f.textBaseline));b=Ji(b,e,c,d,a.H,a.V);for(f=a.c;e<c;e+=d){h=b[e]+a.wb;m=b[e+1]+a.xb;if(0!==a.p||1!=a.q){var q=Ae(a.sc,h,m,a.q,a.q,a.p,-h,-m);f.setTransform(q[0],q[1],q[4],q[5],q[12],q[13])}null===a.l||f.strokeText(a.d,h,m);null===a.i||f.fillText(a.d,h,m)}0===a.p&&1==a.q||f.setTransform(1,0,0,1,0,0)}}function kn(a,b,c,d,e,f){var h=a.c;a=Ji(b,c,d,e,a.H,a.V);h.moveTo(a[0],a[1]);for(b=2;b<a.length;b+=2)h.lineTo(a[b],a[b+1]);f&&h.lineTo(a[0],
a[1]);return d}function oq(a,b,c,d,e){var f=a.c,h;var m=0;for(h=d.length;m<h;++m)c=kn(a,b,c,d[m],e,!0),f.closePath();return c}function kl(a){var b=Jc(Fd(a.U),Number);Bd(b);var c,d;var e=0;for(c=b.length;e<c;++e){var f=a.U[b[e].toString()];var h=0;for(d=f.length;h<d;++h)f[h](a)}}function jl(a,b){var c=a.c,d=a.X;null===d?(c.fillStyle=b.fillStyle,a.X={fillStyle:b.fillStyle}):d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle)}function Oi(a,b){var c=a.c,d=a.ba;null===d?(c.lineCap=b.lineCap,
Ni&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.ba={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle}):(d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap),Ni&&!rd(d.lineDash,b.lineDash)&&c.setLineDash(d.lineDash=b.lineDash),d.lineJoin!=b.lineJoin&&(d.lineJoin=c.lineJoin=b.lineJoin),d.lineWidth!=b.lineWidth&&(d.lineWidth=c.lineWidth=
b.lineWidth),d.miterLimit!=b.miterLimit&&(d.miterLimit=c.miterLimit=b.miterLimit),d.strokeStyle!=b.strokeStyle&&(d.strokeStyle=c.strokeStyle=b.strokeStyle))}function Vf(a,b,c){this.oa=a;this.T=b;this.d=null;this.e=0;this.resolution=c;this.L=this.J=null;this.a=[];this.coordinates=[];this.X=fd();this.b=[];this.sa=[];this.ba=fd()}function Pi(a,b,c,d,e,f){var h=a.coordinates.length,m=a.Pe(),q=[b[c],b[c+1]],w=[NaN,NaN],F=!0,M;for(M=c+e;M<d;M+=e){w[0]=b[M];w[1]=b[M+1];var S=Fh(m,w);S!==Y?(F&&(a.coordinates[h++]=
q[0],a.coordinates[h++]=q[1]),a.coordinates[h++]=w[0],a.coordinates[h++]=w[1],F=!1):1===S?(a.coordinates[h++]=w[0],a.coordinates[h++]=w[1],F=!1):F=!0;q[0]=w[0];q[1]=w[1];var Y=S}M===c+e&&(a.coordinates[h++]=q[0],a.coordinates[h++]=q[1]);f&&(a.coordinates[h++]=b[c],a.coordinates[h++]=b[c+1]);return h}function ih(a,b){a.J=[0,b,0];a.a.push(a.J);a.L=[0,b,0];a.b.push(a.L)}function pq(a,b,c,d,e,f,h,m,q){var w;Cm(d,a.X)?w=a.sa:(w=Ji(a.coordinates,0,a.coordinates.length,2,d,a.sa),Dh(a.X,d));d=0;var F=h.length,
M=0;for(a=a.ba;d<F;){var S=h[d];switch(S[0]){case 0:M=S[1];var Y=C(M).toString();g(f[Y])?d=S[2]:g(q)&&!sa(q,M.Q().G())?d=S[2]:++d;break;case 1:b.beginPath();++d;break;case 2:M=S[1];Y=w[M];var N=w[M+1],O=w[M+2]-Y;M=w[M+3]-N;b.arc(Y,N,Math.sqrt(O*O+M*M),0,2*Math.PI,!0);++d;break;case 3:b.closePath();++d;break;case 4:M=S[1];Y=S[2];var Z=S[3];var ca=S[4]*c;var ea=S[5]*c,ia=S[6];var ja=S[7];var va=S[8],na=S[9];N=S[11];O=S[12];var Ia=S[13],cb=S[14];for(S[10]&&(N+=e);M<Y;M+=2){S=w[M]-ca;var wa=w[M+1]-ea;
Ia&&(S=S+.5|0,wa=wa+.5|0);if(1!=O||0!==N){var zb=S+ca,Ub=wa+ea;Ae(a,zb,Ub,O,O,N,-zb,-Ub);b.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])}zb=b.globalAlpha;1!=ja&&(b.globalAlpha=zb*ja);b.drawImage(Z,va,na,cb,ia,S,wa,cb*c,ia*c);1!=ja&&(b.globalAlpha=zb);1==O&&0===N||b.setTransform(1,0,0,1,0,0)}++d;break;case 5:M=S[1];Y=S[2];ca=S[3];ea=S[4]*c;ia=S[5]*c;N=S[6];O=S[7]*c;Z=S[8];for(ja=S[9];M<Y;M+=2){S=w[M]+ea;wa=w[M+1]+ia;if(1!=O||0!==N)Ae(a,S,wa,O,O,N,-S,-wa),b.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]);
ja&&b.strokeText(ca,S,wa);Z&&b.fillText(ca,S,wa);1==O&&0===N||b.setTransform(1,0,0,1,0,0)}++d;break;case 6:if(g(m)&&(M=S[1],M=m(M)))return M;++d;break;case 7:b.fill();++d;break;case 8:M=S[1];Y=S[2];b.moveTo(w[M],w[M+1]);for(M+=2;M<Y;M+=2)b.lineTo(w[M],w[M+1]);++d;break;case 9:b.fillStyle=S[1];++d;break;case 10:M=g(S[7])?S[7]:!0;Y=S[2];b.strokeStyle=S[1];b.lineWidth=M?Y*c:Y;b.lineCap=S[3];b.lineJoin=S[4];b.miterLimit=S[5];Ni&&b.setLineDash(S[6]);++d;break;case 11:b.font=S[1];b.textAlign=S[2];b.textBaseline=
S[3];++d;break;case 12:b.stroke();++d;break;default:++d}}}function ln(a){var b=a.b;b.reverse();var c,d=b.length,e,f,h=-1;for(c=0;c<d;++c)if(e=b[c],f=e[0],6==f)h=c;else if(0==f){e[2]=c;e=a.b;for(f=c;h<f;){var m=e[h];e[h]=e[f];e[f]=m;++h;--f}h=-1}}function jh(a,b){a.J[2]=a.a.length;a.J=null;a.L[2]=a.b.length;a.L=null;b=[6,b];a.a.push(b);a.b.push(b)}function Qi(a,b,c){Vf.call(this,a,b,c);this.i=this.N=null;this.H=this.p=this.n=this.V=this.U=this.o=this.l=this.q=this.g=this.f=this.c=void 0}function mn(a,
b,c){Vf.call(this,a,b,c);this.c={Xc:void 0,Sc:void 0,Tc:null,Uc:void 0,Vc:void 0,Wc:void 0,Ze:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function qq(a,b,c,d,e){var f=a.coordinates.length;b=Pi(a,b,c,d,e,!1);f=[8,f,b];a.a.push(f);a.b.push(f);return d}function rq(a){var b=a.c,c=b.strokeStyle,d=b.lineCap,e=b.lineDash,f=b.lineJoin,h=b.lineWidth,m=b.miterLimit;b.Xc==c&&b.Sc==d&&rd(b.Tc,e)&&b.Uc==f&&b.Vc==h&&b.Wc==m||(b.Ze!=a.coordinates.length&&
(a.a.push([12]),b.Ze=a.coordinates.length),a.a.push([10,c,h,d,f,m,e],[1]),b.Xc=c,b.Sc=d,b.Tc=e,b.Uc=f,b.Vc=h,b.Wc=m)}function nn(a,b,c){Vf.call(this,a,b,c);this.c={Mf:void 0,Xc:void 0,Sc:void 0,Tc:null,Uc:void 0,Vc:void 0,Wc:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function sq(a,b,c,d,e){var f=a.c,h=[1];a.a.push(h);a.b.push(h);var m;h=0;for(m=d.length;h<m;++h){var q=d[h],w=a.coordinates.length;c=Pi(a,b,c,q,e,!0);c=
[8,w,c];w=[3];a.a.push(c,w);a.b.push(c,w);c=q}b=[7];a.b.push(b);g(f.fillStyle)&&a.a.push(b);g(f.strokeStyle)&&(f=[12],a.a.push(f),a.b.push(f));return c}function on(a){var b=a.c,c=b.fillStyle,d=b.strokeStyle,e=b.lineCap,f=b.lineDash,h=b.lineJoin,m=b.lineWidth,q=b.miterLimit;g(c)&&b.Mf!=c&&(a.a.push([9,c]),b.Mf=b.fillStyle);!g(d)||b.Xc==d&&b.Sc==e&&b.Tc==f&&b.Uc==h&&b.Vc==m&&b.Wc==q||(a.a.push([10,d,m,e,h,q,f]),b.Xc=d,b.Sc=e,b.Tc=f,b.Uc=h,b.Vc=m,b.Wc=q)}function ll(a,b,c){Vf.call(this,a,b,c);this.p=
this.n=this.V=null;this.i="";this.U=this.o=this.l=this.q=0;this.g=this.f=this.c=null}function kh(a,b,c,d){this.q=a;this.d=b;this.i=c;this.e=d;this.a={};this.f=se(1,1);this.g=fd()}function Yj(a){for(var b in a.a){var c=a.a[b],d;for(d in c)c[d].de()}}function lh(a,b,c,d,e,f){var h=Jc(Fd(a.a),Number);Bd(h);var m=a.d,q=m[0],w=m[1],F=m[2];m=m[3];q=[q,w,q,m,F,m,F,w];Ji(q,0,8,2,d,q);b.save();b.beginPath();b.moveTo(q[0],q[1]);b.lineTo(q[2],q[3]);b.lineTo(q[4],q[5]);b.lineTo(q[6],q[7]);b.closePath();b.clip();
q=0;for(w=h.length;q<w;++q){var M=a.a[h[q].toString()];F=0;for(m=pg.length;F<m;++F){var S=M[pg[F]];g(S)&&pq(S,b,c,d,e,f,S.a,void 0)}}b.restore()}function Qu(a,b,c,d,e,f,h){var m=Jc(Fd(a.a),Number);Bd(m,function(Y,N){return N-Y});var q,w,F;var M=0;for(q=m.length;M<q;++M){var S=a.a[m[M].toString()];for(w=pg.length-1;0<=w;--w)if(F=S[pg[w]],g(F)&&(F=pq(F,b,1,c,d,e,F.b,f,h)))return F}}function ie(a){he.call(this,a);this.J=fd()}function Zj(a,b,c,d,e){var f=a.a;Jf(f,b)&&(a=g(e)?e:ml(a,d,0),a=new uc(c,d.pixelRatio,
d.extent,a,d.viewState.rotation),f.dispatchEvent(new Ye(b,f,a,null,d,c,null)),kl(a))}function ml(a,b,c){var d=b.viewState,e=b.pixelRatio;return Ae(a.J,e*b.size[0]/2,e*b.size[1]/2,e/d.resolution,-e/d.resolution,-d.rotation,-d.center[0]+c,-d.center[1])}function tq(a,b){var c=[0,0];Cf(b,a,c);return c}function hb(a,b,c){mb.call(this);this.uh(a,g(b)?b:0,c)}function uq(a){var b=a.j[a.s]-a.j[0];a=a.j[a.s+1]-a.j[1];return b*b+a*a}function sb(a){gc.call(this);this.d=g(a)?a:null;pn(this)}function vq(a){var b=
[],c;var d=0;for(c=a.length;d<c;++d)b.push(a[d].clone());return b}function qn(a){var b;if(null!==a.d){var c=0;for(b=a.d.length;c<b;++c)Ge(a.d[c],"change",a.k,!1,a)}}function pn(a){var b;if(null!==a.d){var c=0;for(b=a.d.length;c<b;++c)ma(a.d[c],"change",a.k,!1,a)}}function wq(a,b,c,d,e){var f=NaN,h=NaN,m=(c-b)/d;if(0!==m)if(1==m)f=a[b],h=a[b+1];else if(2==m)f=.5*a[b]+.5*a[b+d],h=.5*a[b+1]+.5*a[b+d+1];else{h=a[b];m=a[b+1];var q=0;f=[0];var w;for(w=b+d;w<c;w+=d){var F=a[w],M=a[w+1];q+=Math.sqrt((F-h)*
(F-h)+(M-m)*(M-m));f.push(q);h=F;m=M}c=.5*q;var S;h=bf;m=0;for(q=f.length;m<q;)w=m+q>>1,F=h(c,f[w]),0<F?m=w+1:(q=w,S=!F);S=S?m:~m;0>S?(c=(c-f[-S-2])/(f[-S-1]-f[-S-2]),b+=(-S-2)*d,f=yh(a[b],a[b+d],c),h=yh(a[b+1],a[b+d+1],c)):(f=a[b+S*d],h=a[b+S*d+1])}return null!=e?(e[0]=f,e[1]=h,e):[f,h]}function rn(a,b,c,d,e,f){if(c==b)return null;if(e<a[b+d-1])return f?(c=a.slice(b,b+d),c[d-1]=e,c):null;if(a[c-1]<e)return f?(c=a.slice(c-d,c),c[d-1]=e,c):null;if(e==a[b+d-1])return a.slice(b,b+d);b/=d;for(c/=d;b<
c;)f=b+c>>1,e<a[(f+1)*d-1]?c=f:b=f+1;c=a[b*d-1];if(e==c)return a.slice((b-1)*d,(b-1)*d+d);f=(e-c)/(a[(b+1)*d-1]-c);c=[];var h;for(h=0;h<d-1;++h)c.push(yh(a[(b-1)*d+h],a[b*d+h],f));c.push(e);return c}function Ru(a,b,c,d,e,f){var h=0;if(f)return rn(a,h,b[b.length-1],c,d,e);if(d<a[c-1])return e?(a=a.slice(0,c),a[c-1]=d,a):null;if(a[a.length-1]<d)return e?(a=a.slice(a.length-c),a[c-1]=d,a):null;e=0;for(f=b.length;e<f;++e){var m=b[e];if(h!=m){if(d<a[h+c-1])break;if(d<=a[m-1])return rn(a,h,m,c,d,!1);h=
m}}return null}function Ha(a,b){mb.call(this);this.c=null;this.p=this.H=this.i=-1;this.W(a,b)}function xq(a){a.i!=a.b&&(a.c=wq(a.j,0,a.j.length,a.s,a.c),a.i=a.b);return a.c}function kf(a,b,c){Df(a,b,c);a.k()}function Qa(a,b){mb.call(this);this.c=[];this.i=this.p=-1;this.W(a,b)}function yq(a){var b=[],c=a.j,d=0,e=a.c;a=a.s;var f;var h=0;for(f=e.length;h<f;++h){var m=e[h];d=wq(c,d,m,a);Tb(b,d);d=m}return b}function ak(a,b,c,d){Df(a,b,c);a.c=d;a.k()}function nl(a,b){var c="XY",d=[],e=[],f;var h=0;for(f=
b.length;h<f;++h){var m=b[h];0===h&&(c=m.a);Tb(d,m.j);e.push(d.length)}ak(a,c,d,e)}function $a(a,b){mb.call(this);this.W(a,b)}function Ra(a,b){mb.call(this);this.c=[];this.p=-1;this.H=null;this.N=this.J=this.L=-1;this.i=null;this.W(a,b)}function sn(a){if(a.p!=a.b){var b=a.j,c=a.c,d=a.s,e=0,f=[],h;Yd();var m=0;for(h=c.length;m<h;++m){var q=c[m];var w=Aj(He(Infinity,Infinity,-Infinity,-Infinity,void 0),b,e,q[0],d);f.push((w[0]+w[2])/2,(w[1]+w[3])/2);e=q[q.length-1]}b=mh(a);c=a.c;d=a.s;e=0;m=[];h=0;
for(w=c.length;h<w;++h)q=c[h],m=Zp(b,e,q,d,f,2*h,m),e=q[q.length-1];a.H=m;a.p=a.b}return a.H}function mh(a){if(a.N!=a.b){var b=a.j;a:{var c=a.c;var d;var e=0;for(d=c.length;e<d;++e)if(!bq(b,c[e],a.s,void 0)){c=!1;break a}c=!0}c?a.i=b:(a.i=b.slice(),a.i.length=cq(a.i,a.c,a.s));a.N=a.b}return a.i}function pl(a,b,c,d){Df(a,b,c);a.c=d;a.k()}function tn(a,b){var c="XY",d=[],e=[],f;var h=0;for(f=b.length;h<f;++h){var m=b[h];0===h&&(c=m.a);var q=d.length;var w=m.c;var F;var M=0;for(F=w.length;M<F;++M)w[M]+=
q;Tb(d,m.j);e.push(w)}pl(a,c,d,e)}function un(a,b){return C(a)-C(b)}function bk(a,b){a=.5*a/b;return a*a}function ck(a,b,c,d,e,f){var h=!1,m;var q=c.f;null!==q&&(m=q.gd(),2==m||3==m?q.xf(e,f):(0==m&&q.load(),q.$e(e,f),h=!0));e=(0,c.d)(b);null!=e&&(d=e.Ve(d),(0,zq[d.M()])(a,d,c,b));return h}function vn(a,b,c,d,e){Di.call(this,a,b,c,2,d);this.a=e}function Zb(a){fc.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.l=g(a.resolutions)?a.resolutions:
null}function wn(a,b){null!==a.l&&(b=cg(a.l,b,0),b=a.l[b]);return b}function xn(a,b){a.b().src=b}function Ri(a,b){tc.call(this,a);this.image=b}function vc(a){Zb.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions,state:g(a.state)?a.state:void 0});this.T=a.canvasFunction;this.J=null;this.N=0;this.X=g(a.ratio)?a.ratio:1.5}function Aq(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function Bq(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}}
function ql(a,b){rl||Su();yn||(rl(),yn=!0);sl.push(new Tu(a,b))}function Su(){if(gb.Promise&&gb.Promise.resolve){var a=gb.Promise.resolve();rl=function(){a.then(Cq)}}else rl=function(){Yk(Cq)}}function Cq(){for(;sl.length;){var a=sl;sl=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.b.call(c.a)}catch(d){xp(d)}}}yn=!1}function Tu(a,b){this.b=a;this.a=b}function nh(a,b){this.a=Th;this.f=void 0;this.b=this.c=null;this.d=this.e=!1;try{var c=this;a.call(b,function(d){Si(c,tl,d)},function(d){Si(c,Fg,d)})}catch(d){Si(this,
Fg,d)}}function Dq(a,b){if(a.a==Th)if(a.c){var c=a.c;if(c.b){for(var d=0,e=-1,f=0,h;h=c.b[f];f++)if(h=h.Rc)if(d++,h==a&&(e=f),0<=e&&1<d)break;0<=e&&(c.a==Th&&1==d?Dq(c,b):(d=c.b.splice(e,1)[0],Eq(c,d,Fg,b)))}}else Si(a,Fg,b)}function Uu(a,b){a.b&&a.b.length||a.a!=tl&&a.a!=Fg||a.e||(a.e=!0,ql(a.q,a));a.b||(a.b=[]);a.b.push(b)}function Vu(a,b,c,d){var e={Rc:null,Wg:null,Yg:null};e.Rc=new nh(function(f,h){e.Wg=b?function(m){try{var q=b.call(d,m);f(q)}catch(w){h(w)}}:f;e.Yg=c?function(m){try{var q=c.call(d,
m);!g(q)&&m instanceof dk?h(m):f(q)}catch(w){h(w)}}:h});e.Rc.c=a;Uu(a,e);return e.Rc}function Si(a,b,c){if(a.a==Th){if(a==c)b=Fg,c=new TypeError("Promise cannot resolve to itself");else{if(Bq(c)){a.a=1;c.then(a.g,a.i,a);return}if(v(c))try{var d=c.then;if(x(d)){Wu(a,c,d);return}}catch(e){b=Fg,c=e}}a.f=c;a.a=b;a.e||(a.e=!0,ql(a.q,a));b!=Fg||c instanceof dk||Xu(a,c)}}function Wu(a,b,c){function d(h){f||(f=!0,a.i(h))}function e(h){f||(f=!0,a.g(h))}a.a=1;var f=!1;try{c.call(b,e,d)}catch(h){d(h)}}function Eq(a,
b,c,d){if(c==tl)b.Wg(d);else{if(b.Rc)for(;a&&a.d;a=a.c)a.d=!1;b.Yg(d)}}function Xu(a,b){a.d=!0;ql(function(){a.d&&Yu.call(null,b)})}function dk(a){ka.call(this,a)}function Fq(a,b,c){if(x(a))c&&(a=J(a,c));else if(a&&"function"==typeof a.handleEvent)a=J(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:gb.setTimeout(a,b||0)}function Gq(){}function Hq(a){var b;(b=a.b)||(b={},Iq(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b}function Jq(){}function Kq(a){return(a=Iq(a))?new ActiveXObject(a):
new XMLHttpRequest}function Iq(a){if(!a.a&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.a=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.a}function zn(a){if(An){An=!1;var b=gb.location;if(b){var c=b.href;if((c&&=(c=zn(c)[3]||null)?decodeURI(c):
c)&&c!=b.hostname)throw An=!0,Error();}}return a.match(Zu)}function $u(a,b){a=a.split("\x26");for(var c=0;c<a.length;c++){var d=a[c].indexOf("\x3d"),e=null,f=null;0<=d?(e=a[c].substring(0,d),f=a[c].substring(d+1)):e=a[c];b(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}function Ti(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")}function Lq(a,b,c){if(t(b))for(var d=0;d<b.length;d++)Lq(a,
String(b[d]),c);else null!=b&&c.push("\x26",a,""===b?"":"\x3d",encodeURIComponent(String(b)))}function Ui(a,b){for(var c in b)Lq(c,b[c],a);return a}function ul(a){Tc.call(this);this.H=new Lj;this.i=a||null;this.b=!1;this.g=this.Y=null;this.e=this.o="";this.a=this.l=this.d=this.q=!1;this.f=0;this.c=null;this.n=av;this.p=this.J=!1}function bv(a){return jc&&Cd(9)&&D(a.timeout)&&g(a.ontimeout)}function cv(a){return"content-type"==a.toLowerCase()}function Mq(a,b){a.b=!1;a.Y&&(a.a=!0,a.Y.abort(),a.a=!1);
a.e=b;Nq(a);vl(a)}function Nq(a){a.q||(a.q=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}function Oq(a){if(a.b&&"undefined"!=typeof Bn&&(!a.g[1]||4!=ek(a)||2!=Cn(a)))if(a.d&&4==ek(a))Fq(a.Xg,0,a);else if(a.dispatchEvent("readystatechange"),4==ek(a)){a.b=!1;try{if(Pq(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{try{var b=2<ek(a)?a.Y.statusText:""}catch(c){b=""}a.e=b+" ["+Cn(a)+"]";Nq(a)}}finally{vl(a)}}}function vl(a,b){if(a.Y){Qq(a);var c=a.Y,d=a.g[0]?A:null;a.Y=null;
a.g=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}}function Qq(a){a.Y&&a.p&&(a.Y.ontimeout=null);D(a.c)&&(gb.clearTimeout(a.c),a.c=null)}function Pq(a){var b=Cn(a);a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=zn(String(a.o))[1]||null,!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1)),b=!dv.test(a?a.toLowerCase():"");c=b}return c}function ek(a){return a.Y?a.Y.readyState:0}function Cn(a){try{return 2<
ek(a)?a.Y.status:-1}catch(b){return-1}}function Dn(a){try{return a.Y?a.Y.responseText:""}catch(b){return""}}function En(a){if("undefined"!=typeof XMLSerializer)return(new XMLSerializer).serializeToString(a);if(a=a.xml)return a;throw Error("Your browser does not support serializing XML documents");}function ev(a,b){return Vi.createElementNS(a,b)}function fv(a,b){null===a&&(a="");return Vi.createNode(1,b,a)}function Me(a,b){return Rq(a,b,[]).join("")}function Rq(a,b,c){if(4==a.nodeType||3==a.nodeType)b?
c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else for(a=a.firstChild;null!==a;a=a.nextSibling)Rq(a,b,c);return c}function gv(a){return a.localName}function hv(a){var b=a.localName;return g(b)?b:a.baseName}function iv(a){return a instanceof Document}function jv(a){return v(a)&&9==a.nodeType}function kv(a){return a instanceof Node}function lv(a){return v(a)&&g(a.nodeType)}function mv(a,b,c){return a.getAttributeNS(b,c)||""}function nv(a,b,c){var d="";a=ov(a,b,c);g(a)&&
(d=a.nodeValue);return d}function pv(a,b,c){return a.getAttributeNodeNS(b,c)}function qv(a,b,c){var d=null;a=a.attributes;for(var e,f,h=0,m=a.length;h<m;++h)if(e=a[h],e.namespaceURI==b&&(f=e.prefix?e.prefix+":"+c:c,f==e.nodeName)){d=e;break}return d}function rv(a,b,c,d){a.setAttributeNS(b,c,d)}function sv(a,b,c,d){null===b?a.setAttribute(c,d):(b=a.ownerDocument.createNode(2,c,b),b.nodeValue=d,a.setAttributeNode(b))}function Wf(a){return(new DOMParser).parseFromString(a,"application/xml")}function tv(a,
b){return function(c,d){c=a.call(b,c,d);g(c)&&Tb(d[d.length-1],c)}}function mc(a,b){return function(c,d){c=a.call(g(b)?b:this,c,d);g(c)&&d[d.length-1].push(c)}}function Cc(a,b){return function(c,d){c=a.call(g(b)?b:this,c,d);g(c)&&(d[d.length-1]=c)}}function Ed(a){return function(b,c){var d=a.call(g(void 0)?void 0:this,b,c);g(d)&&pj(c[c.length-1],g(void 0)?void 0:b.localName).push(d)}}function da(a,b){return function(c,d){var e=a.call(g(void 0)?void 0:this,c,d);g(e)&&(d[d.length-1][g(b)?b:c.localName]=
e)}}function Ca(a,b,c){return cd(a,b,c)}function qa(a,b){return function(c,d,e){a.call(g(b)?b:this,c,d,e);e[e.length-1].P.appendChild(c)}}function Sq(a){var b,c;return function(d,e,f){if(!g(b)){b={};var h={};h[d.localName]=a;b[d.namespaceURI]=h;c=Zd(d.localName)}Tq(b,c,e,f)}}function Zd(a,b){return function(c,d,e){c=d[d.length-1].P;d=a;g(d)||(d=e);e=b;g(b)||(e=c.namespaceURI);return jd(e,d)}}function Xf(a,b){for(var c=b.length,d=Array(c),e=0;e<c;++e)d[e]=a[b[e]];return d}function cd(a,b,c){c=g(c)?
c:{};var d;var e=0;for(d=a.length;e<d;++e)c[a[e]]=b;return c}function Of(a,b,c,d){for(b=b.firstElementChild;null!==b;b=b.nextElementSibling){var e=a[b.namespaceURI];g(e)&&(e=e[b.localName],g(e)&&e.call(d,b,c))}}function ta(a,b,c,d,e){d.push(a);Of(b,c,d,e);return d.pop()}function Tq(a,b,c,d,e,f){for(var h=(g(e)?e:c).length,m,q,w=0;w<h;++w)m=c[w],g(m)&&(q=b.call(f,m,d,g(e)?e[w]:void 0),g(q)&&a[q.namespaceURI][q.localName].call(f,q,m,d))}function wc(a,b,c,d,e,f,h){e.push(a);Tq(b,c,d,e,f,h);e.pop()}function Uq(a,
b,c){return function(d,e,f){d=new ul;d.n="text";ma(d,"complete",function(h){h=h.target;if(Pq(h)){var m=b.M();if("json"==m)var q=Dn(h);else if("text"==m)q=Dn(h);else if("xml"==m){if(!jc)try{q=h.Y?h.Y.responseXML:null}catch(w){q=null}null!=q||(q=Wf(Dn(h)))}null!=q&&(q=b.ja(q,{featureProjection:f}),c.call(this,q))}qf(h)},!1,this);d.send(a)}}function Vq(a,b){return Uq(a,b,function(c){this.Oc(c)})}function Wq(){return[[-Infinity,-Infinity,Infinity,Infinity]]}function fk(a){this.a=Xq(a);this.b={}}function Yq(a){a=
a.a.all();return Jc(a,function(b){return b[4]})}function gk(a,b){a=a.a.search(b);return Jc(a,function(c){return c[4]})}function Wi(a,b,c,d){return Zq(gk(a,b),c,d)}function Zq(a,b,c){for(var d,e=0,f=a.length;e<f&&!(d=b.call(c,a[e]));e++);return d}function bb(a){a=g(a)?a:{};fc.call(this,{attributions:a.attributions,logo:a.logo,projection:void 0,state:"ready",wrapX:g(a.wrapX)?a.wrapX:!0});this.J=A;g(a.loader)?this.J=a.loader:g(a.url)&&(this.J=Vq(a.url,a.format));this.oa=g(a.strategy)?a.strategy:Wq;this.a=
new fk;this.N=new fk;this.c={};this.e={};this.g={};this.i={};g(a.features)&&$q(this,a.features)}function ar(a,b,c){a.i[b]=[ma(c,"change",a.Pg,!1,a),ma(c,"propertychange",a.Pg,!1,a)]}function br(a,b,c){var d=!0,e=c.$;g(e)?e.toString()in a.e?d=!1:a.e[e.toString()]=c:a.g[b]=c;return d}function $q(a,b){var c,d=[],e=[],f=[];var h=0;for(c=b.length;h<c;h++){var m=b[h];var q=C(m).toString();br(a,q,m)&&e.push(m)}h=0;for(c=e.length;h<c;h++)m=e[h],q=C(m).toString(),ar(a,q,m),b=m.Q(),null!=b?(q=b.G(),d.push(q),
f.push(m)):a.c[q]=m;a.a.load(d,f);h=0;for(c=e.length;h<c;h++)a.dispatchEvent(new qg("addfeature",e[h]))}function uv(a,b,c){a.$c([b[0],b[1],b[0],b[1]],function(d){if(d.Q().Jb(b[0],b[1]))return c.call(void 0,d)})}function cr(a,b){for(var c in a.e)if(a.e[c]===b){delete a.e[c];break}}function qg(a,b){tc.call(this,a);this.feature=b}function Pb(a){this.a=a.source;this.ba=fd();this.c=se();this.e=[0,0];this.n=null;vc.call(this,{attributions:a.attributions,canvasFunction:J(this.zi,this),logo:a.logo,projection:a.projection,
ratio:a.ratio,resolutions:a.resolutions,state:this.a.o});this.p=null;this.g=void 0;this.Mg(a.style);ma(this.a,"change",this.am,void 0,this)}function vv(a,b,c,d,e){return Ae(a.ba,e[0]/2,e[1]/2,d/c,-d/c,0,-b[0],-b[1])}function Ze(a){ie.call(this,a);this.e=null;this.f=fd();this.c=this.d=null}function ue(a){ie.call(this,a);this.c=this.f=null;this.q=!1;this.g=null;this.l=fd();this.e=null;this.p=this.H=this.n=NaN;this.i=this.d=null;this.L=[0,0]}function ve(a){ie.call(this,a);this.d=!1;this.q=-1;this.i=
NaN;this.f=Yd();this.c=this.g=null;this.e=se()}function hk(a,b){mg.call(this,0,b);this.d=se();this.b=this.d.canvas;this.b.style.width="100%";this.b.style.height="100%";this.b.className="ol-unselectable";V(a,this.b,0);this.a=!0;this.e=fd()}function dr(a,b,c){var d=a.g,e=a.d;if(Jf(d,b)){var f=c.extent,h=c.pixelRatio,m=c.viewState,q=m.projection,w=m.resolution;m=m.rotation;var F=0;if(q.c){var M=q.G();q=la(M);var S=c.focus[0];if(S<M[0]||S>M[2])F=Math.ceil((M[0]-S)/q),F*=q,f=[f[0]+F,f[1],f[2]+F,f[3]]}q=
c.pixelRatio;M=c.viewState;S=M.resolution;F=Ae(a.e,a.b.width/2,a.b.height/2,q/S,-q/S,-M.rotation,-M.center[0]-F,-M.center[1]);w=new kh(.5*w/h,f,w);f=new uc(e,h,f,F,m);d.dispatchEvent(new Ye(b,d,f,w,c,e,null));Yj(w);w.la()||lh(w,e,h,F,m,{});kl(f);a.c=w}}function $d(a,b){he.call(this,a);this.target=b}function Be(a){var b=Kd("DIV");b.style.position="absolute";$d.call(this,a,b);this.c=null;this.d=Kf()}function Ne(a){var b=Kd("DIV");b.style.position="absolute";$d.call(this,a,b);this.d=!0;this.q=1;this.g=
0;this.c={}}function wv(a,b){this.target=Kd("DIV");this.target.style.position="absolute";this.target.style.width="100%";this.target.style.height="100%";this.d=a;this.c=b;this.f=U(Bf(a,b));this.g=a.ma(b[0]);this.a={};this.b=null;this.e=Kf();this.i=[0,0]}function we(a){this.g=se();var b=this.g.canvas;b.style.maxWidth="none";b.style.position="absolute";$d.call(this,a,b);this.d=!1;this.n=-1;this.o=NaN;this.q=Yd();this.c=this.l=null;this.H=fd();this.p=fd()}function Fn(a,b,c,d){var e=a.g;a=a.a;Jf(a,b)&&
(d=new uc(e,c.pixelRatio,c.extent,d,c.viewState.rotation),a.dispatchEvent(new Ye(b,a,d,null,c,e,null)),kl(d))}function Uh(a,b){mg.call(this,0,b);this.a=null;this.a=se();b=this.a.canvas;b.style.position="absolute";b.style.width="100%";b.style.height="100%";b.className="ol-unselectable";V(a,b,0);this.e=fd();this.b=Kd("DIV");this.b.className="ol-unselectable";b=this.b.style;b.position="absolute";b.width="100%";b.height="100%";ma(this.b,"touchstart",Hf);V(a,this.b,0);this.d=!0}function er(a,b,c){var d=
a.g;if(Jf(d,b)){var e=c.extent,f=c.pixelRatio,h=c.viewState,m=h.resolution,q=h.rotation,w=a.a,F=w.canvas;Ae(a.e,F.width/2,F.height/2,f/h.resolution,-f/h.resolution,-h.rotation,-h.center[0],-h.center[1]);h=new uc(w,f,e,a.e,q);e=new kh(.5*m/f,e,m);d.dispatchEvent(new Ye(b,d,h,e,c,w,null));Yj(e);e.la()||lh(e,w,f,a.e,q,{});kl(h);a.c=e}}function fr(a){this.b=a}function Vh(a){this.b=a}function Wh(a){this.b=a}function Gn(){this.b="precision mediump float;varying vec2 a;varying float b;uniform mat4 k;uniform float l;uniform sampler2D m;void main(void){vec4 texColor\x3dtexture2D(m,a);float alpha\x3dtexColor.a*b*l;if(alpha\x3d\x3d0.0){discard;}gl_FragColor.a\x3dalpha;gl_FragColor.rgb\x3d(k*vec4(texColor.rgb,1.)).rgb;}"}
function Hn(){this.b="varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix\x3di;if(g\x3d\x3d1.0){offsetMatrix\x3di*j;}vec4 offsets\x3doffsetMatrix*vec4(e,0.,0.);gl_Position\x3dh*vec4(c,0.,1.)+offsets;a\x3dd;b\x3df;}"}function xv(a,b){this.l=a.getUniformLocation(b,"k");this.i=a.getUniformLocation(b,"j");this.q=a.getUniformLocation(b,"i");this.f=a.getUniformLocation(b,
"l");this.g=a.getUniformLocation(b,"h");this.b=a.getAttribLocation(b,"e");this.a=a.getAttribLocation(b,"f");this.d=a.getAttribLocation(b,"c");this.c=a.getAttribLocation(b,"g");this.e=a.getAttribLocation(b,"d")}function In(){this.b="precision mediump float;varying vec2 a;varying float b;uniform float k;uniform sampler2D l;void main(void){vec4 texColor\x3dtexture2D(l,a);gl_FragColor.rgb\x3dtexColor.rgb;float alpha\x3dtexColor.a*b*k;if(alpha\x3d\x3d0.0){discard;}gl_FragColor.a\x3dalpha;}"}function Jn(){this.b=
"varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix\x3di;if(g\x3d\x3d1.0){offsetMatrix\x3di*j;}vec4 offsets\x3doffsetMatrix*vec4(e,0.,0.);gl_Position\x3dh*vec4(c,0.,1.)+offsets;a\x3dd;b\x3df;}"}function yv(a,b){this.i=a.getUniformLocation(b,"j");this.q=a.getUniformLocation(b,"i");this.f=a.getUniformLocation(b,"k");this.g=a.getUniformLocation(b,"h");this.b=
a.getAttribLocation(b,"e");this.a=a.getAttribLocation(b,"f");this.d=a.getAttribLocation(b,"c");this.c=a.getAttribLocation(b,"g");this.e=a.getAttribLocation(b,"d")}function wl(a){this.b=g(a)?a:[];this.a=g(void 0)?void 0:35044}function Gg(a,b){this.l=a;this.b=b;this.a={};this.f={};this.e={};this.i=this.q=this.d=this.g=null;(this.c=Nc(zv,"OES_element_index_uint"))&&b.getExtension("OES_element_index_uint");ma(this.l,"webglcontextlost",this.Ym,!1,this);ma(this.l,"webglcontextrestored",this.Zm,!1,this)}
function Xi(a,b,c){var d=a.b,e=c.b,f=C(c);if(f in a.a)d.bindBuffer(b,a.a[f].buffer);else{var h=d.createBuffer();d.bindBuffer(b,h);var m;34962==b?m=new Float32Array(e):34963==b&&(m=a.c?new Uint32Array(e):new Uint16Array(e));d.bufferData(b,m,c.a);a.a[f]={c,buffer:h}}}function Kn(a,b){var c=a.b;b=C(b);var d=a.a[b];c.isContextLost()||c.deleteBuffer(d.buffer);delete a.a[b]}function gr(a,b){var c=C(b);if(c in a.f)return a.f[c];var d=a.b,e=d.createShader(b.M());d.shaderSource(e,b.b);d.compileShader(e);return a.f[c]=
e}function Ln(a,b,c){var d=C(b)+"/"+C(c);if(d in a.e)return a.e[d];var e=a.b,f=e.createProgram();e.attachShader(f,gr(a,b));e.attachShader(f,gr(a,c));e.linkProgram(f);return a.e[d]=f}function hr(a,b,c){var d=a.createTexture();a.bindTexture(a.TEXTURE_2D,d);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR);g(b)&&a.texParameteri(3553,10242,b);g(c)&&a.texParameteri(3553,10243,c);return d}function ir(a,b,c){var d=hr(a,void 0,void 0);
a.texImage2D(a.TEXTURE_2D,0,a.RGBA,b,c,0,a.RGBA,a.UNSIGNED_BYTE,null);return d}function jr(a,b){var c=hr(a,33071,33071);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);return c}function ik(a,b){this.n=this.V=void 0;this.wb=new Fj;this.q=y(b);this.U=[];this.f=[];this.J=void 0;this.e=[];this.d=[];this.N=this.L=void 0;this.a=[];this.H=this.p=this.i=null;this.T=void 0;this.rc=Kf();this.vb=Kf();this.X=this.sa=void 0;this.xb=Kf();this.Fa=this.oa=this.ba=void 0;this.Ra=[];this.g=[];this.b=[];
this.o=null;this.c=[];this.l=[];this.Ga=void 0}function Mn(a,b){var c=a.o,d=a.i,e=a.Ra,f=a.g,h=b.b;return function(){if(!h.isContextLost()){var m;var q=0;for(m=e.length;q<m;++q)h.deleteTexture(e[q]);q=0;for(m=f.length;q<m;++q)h.deleteTexture(f[q])}Kn(b,c);Kn(b,d)}}function kr(a,b,c,d){var e=a.V,f=a.n,h=a.J,m=a.L,q=a.N,w=a.T,F=a.sa,M=a.X,S=a.ba?1:0,Y=a.oa,N=a.Fa,O=a.Ga,Z=Math.cos(Y);Y=Math.sin(Y);var ca=a.a.length,ea=a.b.length,ia;for(ia=0;ia<c;ia+=d){var ja=b[ia]-a.q[0];var va=b[ia+1]-a.q[1];var na=
ea/8;var Ia=-N*e;var cb=-N*(h-f);a.b[ea++]=ja;a.b[ea++]=va;a.b[ea++]=Ia*Z-cb*Y;a.b[ea++]=Ia*Y+cb*Z;a.b[ea++]=F/q;a.b[ea++]=(M+h)/m;a.b[ea++]=w;a.b[ea++]=S;Ia=N*(O-e);cb=-N*(h-f);a.b[ea++]=ja;a.b[ea++]=va;a.b[ea++]=Ia*Z-cb*Y;a.b[ea++]=Ia*Y+cb*Z;a.b[ea++]=(F+O)/q;a.b[ea++]=(M+h)/m;a.b[ea++]=w;a.b[ea++]=S;Ia=N*(O-e);cb=N*f;a.b[ea++]=ja;a.b[ea++]=va;a.b[ea++]=Ia*Z-cb*Y;a.b[ea++]=Ia*Y+cb*Z;a.b[ea++]=(F+O)/q;a.b[ea++]=M/m;a.b[ea++]=w;a.b[ea++]=S;Ia=-N*e;cb=N*f;a.b[ea++]=ja;a.b[ea++]=va;a.b[ea++]=Ia*Z-cb*
Y;a.b[ea++]=Ia*Y+cb*Z;a.b[ea++]=F/q;a.b[ea++]=M/m;a.b[ea++]=w;a.b[ea++]=S;a.a[ca++]=na;a.a[ca++]=na+1;a.a[ca++]=na+2;a.a[ca++]=na;a.a[ca++]=na+2;a.a[ca++]=na+3}}function Nn(a,b){var c=b.b;a.U.push(a.a.length);a.f.push(a.a.length);a.o=new wl(a.b);Xi(b,34962,a.o);a.i=new wl(a.a);Xi(b,34963,a.i);b={};lr(a.Ra,a.e,b,c);lr(a.g,a.d,b,c);a.V=void 0;a.n=void 0;a.J=void 0;a.e=null;a.d=null;a.L=void 0;a.N=void 0;a.a=null;a.T=void 0;a.sa=void 0;a.X=void 0;a.ba=void 0;a.oa=void 0;a.Fa=void 0;a.b=null;a.Ga=void 0}
function lr(a,b,c,d){var e,f=b.length;for(e=0;e<f;++e){var h=b[e];var m=C(h).toString();m in c?h=c[m]:(h=jr(d,h),c[m]=h);a[e]=h}}function jk(a,b,c,d,e,f,h,m,q,w,F,M,S,Y,N){var O=b.b;Xi(b,34962,a.o);Xi(b,34963,a.i);var Z=m||1!=q||w||1!=F,ca,ea;Z?(ca=Gn.Ia(),ea=Hn.Ia()):(ca=In.Ia(),ea=Jn.Ia());ea=Ln(b,ca,ea);Z?null===a.p?(ca=new xv(O,ea),a.p=ca):ca=a.p:null===a.H?(ca=new yv(O,ea),a.H=ca):ca=a.H;b.oe(ea);O.enableVertexAttribArray(ca.d);O.vertexAttribPointer(ca.d,2,5126,!1,32,0);O.enableVertexAttribArray(ca.b);
O.vertexAttribPointer(ca.b,2,5126,!1,32,8);O.enableVertexAttribArray(ca.e);O.vertexAttribPointer(ca.e,2,5126,!1,32,16);O.enableVertexAttribArray(ca.a);O.vertexAttribPointer(ca.a,1,5126,!1,32,24);O.enableVertexAttribArray(ca.c);O.vertexAttribPointer(ca.c,1,5126,!1,32,28);ea=a.xb;Ae(ea,0,0,2/(d*f[0]),2/(d*f[1]),-e,-(c[0]-a.q[0]),-(c[1]-a.q[1]));c=a.vb;d=2/f[0];f=2/f[1];wf(c);c[0]=d;c[5]=f;c[10]=1;c[15]=1;f=a.rc;wf(f);0!==e&&ni(f,-e);O.uniformMatrix4fv(ca.g,!1,ea);O.uniformMatrix4fv(ca.q,!1,c);O.uniformMatrix4fv(ca.i,
!1,f);O.uniform1f(ca.f,h);Z&&O.uniformMatrix4fv(ca.l,!1,Gj(a.wb,m,q,w,F));if(g(S)){if(Y)a:{e=b.c?5125:5123;b=b.c?4:2;w=a.c.length-1;for(h=a.g.length-1;0<=h;--h)for(O.bindTexture(3553,a.g[h]),m=0<h?a.f[h-1]:0,F=a.f[h];0<=w&&a.c[w]>=m;){q=a.c[w];Y=a.l[w];Z=C(Y).toString();if(!g(M[Z])&&(!g(N)||sa(N,Y.Q().G()))&&(O.clear(O.COLOR_BUFFER_BIT|O.DEPTH_BUFFER_BIT),O.drawElements(4,F-q,e,q*b),F=S(Y))){a=F;break a}F=q;w--}a=void 0}else O.clear(O.COLOR_BUFFER_BIT|O.DEPTH_BUFFER_BIT),mr(a,O,b,M,a.g,a.f),a=(a=
S(null))?a:void 0;var ia=a}else mr(a,O,b,M,a.Ra,a.U);O.disableVertexAttribArray(ca.d);O.disableVertexAttribArray(ca.b);O.disableVertexAttribArray(ca.e);O.disableVertexAttribArray(ca.a);O.disableVertexAttribArray(ca.c);return ia}function mr(a,b,c,d,e,f){var h=c.c?5125:5123;c=c.c?4:2;if(le(d)){var m;a=0;d=e.length;for(m=0;a<d;++a){b.bindTexture(3553,e[a]);var q=f[a];b.drawElements(4,q-m,h,m*c);m=q}}else{m=0;var w;q=0;for(w=e.length;q<w;++q){b.bindTexture(3553,e[q]);for(var F=0<q?f[q-1]:0,M=f[q],S=F;m<
a.c.length&&a.c[m]<=M;){var Y=C(a.l[m]).toString();g(d[Y])?(S!==F&&b.drawElements(4,F-S,h,S*c),F=S=m===a.c.length-1?M:a.c[m+1]):F=m===a.c.length-1?M:a.c[m+1];m++}S!==F&&b.drawElements(4,F-S,h,S*c)}}}function Xh(a,b,c){this.e=b;this.f=a;this.d=c;this.a={}}function On(a,b){var c=[],d;for(d in a.a)c.push(Mn(a.a[d],b));return eu.apply(null,c)}function nr(a,b){for(var c in a.a)Nn(a.a[c],b)}function or(a,b,c,d,e,f,h,m,q,w,F,M,S,Y){var N=Av,O,Z;for(O=pg.length-1;0<=O;--O)if(Z=a.a[pg[O]],g(Z)&&(Z=jk(Z,b,
c,d,e,N,f,h,m,q,w,F,M,S,Y)))return Z}function Pn(a,b,c,d,e,f,h,m,q,w,F){var M=c.b;M.bindFramebuffer(M.FRAMEBUFFER,c.Te());a=or(a,c,b,d,e,f,h,m,q,w,F,function(){var S=new Uint8Array(4);M.readPixels(0,0,1,1,M.RGBA,M.UNSIGNED_BYTE,S);return 0<S[3]},!1);return g(a)}function Hc(a,b,c,d,e,f){this.a=a;this.e=b;this.d=f;this.i=e;this.g=d;this.f=c;this.c=null;this.b={}}function Qn(){this.b="precision mediump float;varying vec2 a;uniform mat4 f;uniform float g;uniform sampler2D h;void main(void){vec4 texColor\x3dtexture2D(h,a);gl_FragColor.rgb\x3d(f*vec4(texColor.rgb,1.)).rgb;gl_FragColor.a\x3dtexColor.a*g;}"}
function Rn(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position\x3de*vec4(b,0.,1.);a\x3d(d*vec4(c,0.,1.)).st;}"}function Bv(a,b){this.g=a.getUniformLocation(b,"f");this.c=a.getUniformLocation(b,"g");this.d=a.getUniformLocation(b,"e");this.f=a.getUniformLocation(b,"d");this.e=a.getUniformLocation(b,"h");this.b=a.getAttribLocation(b,"b");this.a=a.getAttribLocation(b,"c")}function Sn(){this.b="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor\x3dtexture2D(g,a);gl_FragColor.rgb\x3dtexColor.rgb;gl_FragColor.a\x3dtexColor.a*f;}"}
function Tn(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position\x3de*vec4(b,0.,1.);a\x3d(d*vec4(c,0.,1.)).st;}"}function Cv(a,b){this.c=a.getUniformLocation(b,"f");this.d=a.getUniformLocation(b,"e");this.f=a.getUniformLocation(b,"d");this.e=a.getUniformLocation(b,"g");this.b=a.getAttribLocation(b,"b");this.a=a.getAttribLocation(b,"c")}function ae(a,b){he.call(this,b);this.c=a;this.N=new wl([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);this.e=
this.Qa=null;this.f=void 0;this.q=fd();this.n=Kf();this.T=new Fj;this.o=this.l=null}function Dv(a,b,c){var d=a.c.e;if(g(a.f)&&a.f==c)d.bindFramebuffer(36160,a.e);else{b.postRenderFunctions.push(X(function(f,h,m){f.isContextLost()||(f.deleteFramebuffer(h),f.deleteTexture(m))},d,a.e,a.Qa));b=ir(d,c,c);var e=d.createFramebuffer();d.bindFramebuffer(36160,e);d.framebufferTexture2D(36160,36064,3553,b,0);a.Qa=b;a.e=e;a.f=c}}function pr(a,b,c,d){a=a.a;if(Jf(a,b)){var e=d.viewState;a.dispatchEvent(new Ye(b,
a,new Hc(c,e.center,e.resolution,e.rotation,d.size,d.extent),null,d,null,c))}}function xe(a,b){ae.call(this,a,b);this.i=this.g=this.d=null}function Ev(a,b){b=b.b();return jr(a.c.e,b)}function Fv(a,b,c,d,e,f,h,m){b*=f;c*=f;a=a.n;wf(a);Qf(a,2*d/b,2*d/c);ni(a,-h);xf(a,m[0]-e[0],m[1]-e[1]);Qf(a,(m[2]-m[0])/2,(m[3]-m[1])/2);xf(a,1,1)}function Un(){this.b="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor\x3dtexture2D(e,a);}"}function Vn(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position\x3dvec4(b*d.xy+d.zw,0.,1.);a\x3dc;}"}
function Gv(a,b){this.c=a.getUniformLocation(b,"e");this.d=a.getUniformLocation(b,"d");this.b=a.getAttribLocation(b,"b");this.a=a.getAttribLocation(b,"c")}function Ce(a,b){ae.call(this,a,b);this.J=Un.Ia();this.X=Vn.Ia();this.d=null;this.H=new wl([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]);this.p=this.g=null;this.i=-1;this.L=[0,0]}function Oe(a,b){ae.call(this,a,b);this.i=!1;this.L=-1;this.J=NaN;this.p=Yd();this.g=this.d=this.H=null}function xl(a,b){mg.call(this,0,b);this.b=Kd("CANVAS");this.b.style.width=
"100%";this.b.style.height="100%";this.b.className="ol-unselectable";V(a,this.b,0);this.p=this.H=0;this.J=se();this.l=!0;this.e=Ep(this.b,{antialias:!0,depth:!1,Ei:!0,preserveDrawingBuffer:!1,stencil:!0});this.d=new Gg(this.b,this.e);ma(this.b,"webglcontextlost",this.Pl,!1,this);ma(this.b,"webglcontextrestored",this.Ql,!1,this);this.a=new Uk;this.n=null;this.q=new Gi(J(function(c){var d=c[1];c=c[2];var e=d[0]-this.n[0];d=d[1]-this.n[1];return 65536*Math.log(c)+Math.sqrt(e*e+d*d)/c},this),function(c){return c[0].gb()});
this.L=J(function(){if(!this.q.la()){Pp(this.q);var c=Mp(this.q);qr(this,c[0],c[3],c[4])}},this);this.i=0;rr(this)}function qr(a,b,c,d){var e=a.e,f=b.gb();if(lg(a.a,f))a=a.a.get(f),e.bindTexture(3553,a.Qa),9729!=a.lg&&(e.texParameteri(3553,10240,9729),a.lg=9729),9729!=a.mg&&(e.texParameteri(3553,10240,9729),a.mg=9729);else{var h=e.createTexture();e.bindTexture(3553,h);if(0<d){var m=a.J.canvas,q=a.J;a.H!==c[0]||a.p!==c[1]?(m.width=c[0],m.height=c[1],a.H=c[0],a.p=c[1]):q.clearRect(0,0,c[0],c[1]);q.drawImage(b.Ma(),
d,d,c[0],c[1],0,0,c[0],c[1]);e.texImage2D(3553,0,6408,6408,5121,m)}else e.texImage2D(3553,0,6408,6408,5121,b.Ma());e.texParameteri(3553,10240,9729);e.texParameteri(3553,10241,9729);e.texParameteri(3553,10242,33071);e.texParameteri(3553,10243,33071);a.a.set(f,{Qa:h,lg:9729,mg:9729})}}function sr(a,b,c){var d=a.g;if(Jf(d,b)){var e=a.d,f=c.extent,h=c.size,m=c.viewState,q=m.resolution,w=m.center,F=m.rotation;m=new Hc(e,w,q,F,h,f);f=new Xh(.5*q/c.pixelRatio,f);d.dispatchEvent(new Ye(b,d,m,f,c,null,e));
nr(f,e);if(!f.la()){var M=yl;b=M.opacity;c=M.brightness;d=M.contrast;var S=M.hue;M=M.saturation;var Y={},N;var O=0;for(N=pg.length;O<N;++O){var Z=f.a[pg[O]];g(Z)&&jk(Z,e,w,q,F,h,b,c,d,S,M,Y,void 0,!1)}}On(f,e)();e=Jc(Fd(m.b),Number);Bd(e);h=0;for(q=e.length;h<q;++h)for(w=m.b[e[h].toString()],F=0,b=w.length;F<b;++F)w[F](m);a.c=f}}function rr(a){a=a.e;a.activeTexture(33984);a.blendFuncSeparate(770,771,1,771);a.disable(2884);a.disable(2929);a.disable(3089);a.disable(2960)}function ya(a){ub.call(this);
var b=Hv(a);this.wb=g(a.loadTilesWhileAnimating)?a.loadTilesWhileAnimating:!1;this.xb=g(a.loadTilesWhileInteracting)?a.loadTilesWhileInteracting:!1;this.Nc=g(a.pixelRatio)?a.pixelRatio:tr;this.sc=b.logos;this.o=new Xk(this.Qn,void 0,this);eg(this,this.o);this.Ra=fd();this.Ee=fd();this.vb=0;this.c=null;this.oa=Yd();this.g=this.J=null;this.a=db("DIV","ol-viewport");this.a.style.position="relative";this.a.style.overflow="hidden";this.a.style.width="100%";this.a.style.height="100%";this.a.style.msTouchAction=
"none";um&&(this.a.className="ol-touch");this.X=db("DIV","ol-overlaycontainer");this.a.appendChild(this.X);this.p=db("DIV","ol-overlaycontainer-stopevent");ma(this.p,["click","dblclick","mousedown","touchstart","MSPointerDown",Oh,sf?"DOMMouseScroll":"mousewheel"],Gk);this.a.appendChild(this.p);a=new cl(this);ma(a,Vd(Iv),this.eg,!1,this);eg(this,a);this.T=b.keyboardEventTarget;this.n=new ch;ma(this.n,"key",this.dg,!1,this);eg(this,this.n);a=new Mj(this.a);ma(a,"mousewheel",this.dg,!1,this);eg(this,
a);this.e=b.controls;this.d=b.interactions;this.f=b.overlays;this.i=new b.Sn(this.a,this);eg(this,this.i);this.Ga=new Zk;eg(this,this.Ga);this.L=this.l=null;this.H=[];this.ba=[];this.Fa=new Lm(J(this.zj,this),J(this.bl,this));this.N={};ma(this,Uc("layergroup"),this.Qj,!1,this);ma(this,Uc("view"),this.mk,!1,this);ma(this,Uc("size"),this.jk,!1,this);ma(this,Uc("target"),this.lk,!1,this);this.t(b.values);this.e.forEach(function(c){c.setMap(this)},this);ma(this.e,"add",function(c){c.element.setMap(this)},
!1,this);ma(this.e,"remove",function(c){c.element.setMap(null)},!1,this);this.d.forEach(function(c){c.setMap(this)},this);ma(this.d,"add",function(c){c.element.setMap(this)},!1,this);ma(this.d,"remove",function(c){c.element.setMap(null)},!1,this);this.f.forEach(function(c){c.setMap(this)},this);ma(this.f,"add",function(c){c.element.setMap(this)},!1,this);ma(this.f,"remove",function(c){c.element.setMap(null)},!1,this)}function Hv(a){var b=null;g(a.keyboardEventTarget)&&(b=E(a.keyboardEventTarget)?
document.getElementById(a.keyboardEventTarget):a.keyboardEventTarget);var c={},d={};if(!g(a.logo)||"boolean"==typeof a.logo&&a.logo)d["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]=
"http://openlayers.org/";else{var e=a.logo;E(e)?d[e]="":v(e)&&(d[e.src]=e.href)}e=a.layers instanceof Ua?a.layers:new Ua({layers:a.layers});c.layergroup=e;c.target=a.target;c.view=g(a.view)?a.view:new Ma;e=mg;var f;g(a.renderer)?t(a.renderer)?f=a.renderer:E(a.renderer)&&(f=[a.renderer]):f=Jv;var h;var m=0;for(h=f.length;m<h;++m){var q=f[m];if("canvas"==q){if(ur){e=hk;break}}else if("dom"==q){e=Uh;break}else if("webgl"==q&&vr){e=xl;break}}var w;g(a.controls)?w=t(a.controls)?new Sa(a.controls.slice()):
a.controls:w=rp();var F;g(a.interactions)?F=t(a.interactions)?new Sa(a.interactions.slice()):a.interactions:F=jq();a=g(a.overlays)?t(a.overlays)?new Sa(a.overlays.slice()):a.overlays:new Sa;return{controls:w,interactions:F,keyboardEventTarget:b,logos:d,overlays:a,Sn:e,values:c}}function Gb(a){ub.call(this);this.g=g(a.insertFirst)?a.insertFirst:!0;this.i=g(a.stopEvent)?a.stopEvent:!0;this.Z=db("DIV",{"class":"ol-overlay-container"});this.Z.style.position="absolute";this.f=g(a.autoPan)?a.autoPan:!1;
this.d=g(a.autoPanAnimation)?a.autoPanAnimation:{};this.e=g(a.autoPanMargin)?a.autoPanMargin:20;this.a={ud:"",Xd:"",ve:"",we:"",visible:!0};this.c=null;ma(this,Uc("element"),this.Kj,!1,this);ma(this,Uc("map"),this.Yj,!1,this);ma(this,Uc("offset"),this.ck,!1,this);ma(this,Uc("position"),this.ek,!1,this);ma(this,Uc("positioning"),this.fk,!1,this);g(a.element)&&this.wh(a.element);this.Bh(g(a.offset)?a.offset:[0,0]);this.Ch(g(a.positioning)?a.positioning:"top-left");g(a.position)&&this.uf(a.position)}
function wr(a,b){var c=Da(a);We(a,"position");var d=new Ve(0,0);var e=c?Da(c):document;e=!jc||jc&&9<=wi||kb(Fc(e))?e.documentElement:e.body;a!=e&&(e=am(a),c=Xb(Fc(c)),d.x=e.left+c.x,d.y=e.top+c.y);return[d.x,d.y,d.x+b[0],d.y+b[1]]}function kk(a){var b=a.ae(),c=a.wg();if(g(b)&&null!==b.c&&g(c)){c=b.ta(c);var d=b.xa();b=a.Z.style;var e=a.Yf(),f=a.ag(),h=e[0];e=e[1];if("bottom-right"==f||"center-right"==f||"top-right"==f)""!==a.a.Xd&&(a.a.Xd=b.left=""),h=Math.round(d[0]-c[0]-h)+"px",a.a.ve!=h&&(a.a.ve=
b.right=h);else{""!==a.a.ve&&(a.a.ve=b.right="");if("bottom-center"==f||"center-center"==f||"top-center"==f)h-=bm(a.Z).width/2;h=Math.round(c[0]+h)+"px";a.a.Xd!=h&&(a.a.Xd=b.left=h)}if("bottom-left"==f||"bottom-center"==f||"bottom-right"==f)""!==a.a.we&&(a.a.we=b.top=""),c=Math.round(d[1]-c[1]-e)+"px",a.a.ud!=c&&(a.a.ud=b.bottom=c);else{""!==a.a.ud&&(a.a.ud=b.bottom="");if("center-left"==f||"center-center"==f||"center-right"==f)e-=bm(a.Z).height/2;c=Math.round(c[1]+e)+"px";a.a.we!=c&&(a.a.we=b.top=
c)}a.a.visible||(ge(a.Z,!0),a.a.visible=!0)}else a.a.visible&&(ge(a.Z,!1),a.a.visible=!1)}function dc(a){a=g(a)?a:{};this.f=g(a.collapsed)?a.collapsed:!0;(this.g=g(a.collapsible)?a.collapsible:!0)||(this.f=!1);var b=g(a.className)?a.className:"ol-overviewmap",c=g(a.tipLabel)?a.tipLabel:"Overview map",d=g(a.collapseLabel)?a.collapseLabel:"\u00ab";this.o=E(d)?db("SPAN",{},d):d;d=g(a.label)?a.label:"\u00bb";this.n=E(d)?db("SPAN",{},d):d;c=db("BUTTON",{type:"button",title:c},this.g&&!this.f?this.o:this.n);
ma(c,"click",this.ml,!1,this);ma(c,["mouseout",Lh],function(){this.blur()},!1);d=db("DIV","ol-overviewmap-map");var e=this.d=new ya({controls:new Sa,interactions:new Sa,target:d});g(a.layers)&&a.layers.forEach(function(h){e.Jf(h)},this);var f=db("DIV","ol-overviewmap-box");this.i=new Gb({position:[0,0],positioning:"bottom-left",element:f});this.d.Kf(this.i);b=db("DIV",b+" ol-unselectable ol-control"+(this.f&&this.g?" ol-collapsed":"")+(this.g?"":" ol-uncollapsible"),d,c);qb.call(this,{element:b,render:g(a.render)?
a.render:xr,target:a.target})}function xr(){var a=this.a,b=this.d;if(null!==a.c&&null!==b.c){var c=a.xa();a=a.R().Pc(c);var d=b.xa();c=b.R().Pc(d);var e=b.ta(U(a));b=b.ta(u(a));b=new Af(Math.abs(e[0]-b[0]),Math.abs(e[1]-b[1]));e=d[0];d=d[1];b.width<.1*e||b.height<.1*d||b.width>.75*e||b.height>.75*d?Wn(this):qe(c,a)||(a=this.d,c=this.a.R(),a.R().Na(c.Ca()))}yr(this)}function Wn(a){var b=a.a;a=a.d;var c=b.xa();b=b.R().Pc(c);c=a.xa();a=a.R();Vc(b,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2)));a.Me(b,c)}
function yr(a){var b=a.a,c=a.d;if(null!==b.c&&null!==c.c){var d=b.xa(),e=b.R(),f=c.R();c.xa();b=e.Da();var h=a.i;c=a.i.$d();e=e.Pc(d);d=f.ya();f=n(e);e=W(e);var m;a=a.a.R().Ca();g(a)&&(m=[f[0]-a[0],f[1]-a[1]],Zg(m,b),Xg(m,a));h.uf(m);null!=c&&(m=new Af(Math.abs((f[0]-e[0])/d),Math.abs((e[1]-f[1])/d)),b=kb(Fc(Da(c))),!jc||Cd("10")||b&&Cd("8")?(c=c.style,sf?c.MozBoxSizing="border-box":Wd?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(m.width,0)+"px",c.height=Math.max(m.height,
0)+"px"):(a=c.style,b?(b=cm(c,"padding"),c=gp(c),a.pixelWidth=m.width-c.left-b.left-b.right-c.right,a.pixelHeight=m.height-c.top-b.top-b.bottom-c.bottom):(a.pixelWidth=m.width,a.pixelHeight=m.height)))}}function Xn(a){yb(a.element,"ol-collapsed");a.f?fa(a.o,a.n):fa(a.n,a.o);a.f=!a.f;var b=a.d;a.f||null!==b.c||(b.Kc(),Wn(a),If(b,"postrender",function(){yr(this)},!1,a))}function nc(a){a=g(a)?a:{};var b=g(a.className)?a.className:"ol-scale-line";this.g=db("DIV",b+"-inner");this.Z=db("DIV",b+" ol-unselectable",
this.g);this.o=null;this.i=g(a.minWidth)?a.minWidth:64;this.d=!1;this.H=void 0;this.n="";this.f=null;qb.call(this,{element:this.Z,render:g(a.render)?a.render:zr,target:a.target});ma(this,Uc("units"),this.N,!1,this);this.J(a.units||"metric")}function zr(a){a=a.frameState;null===a?this.o=null:this.o=a.viewState;Ar(this)}function Ar(a){var b=a.o;if(null===b)a.d&&(ge(a.Z,!1),a.d=!1);else{var c=b.center,d=b.projection;b=d.getPointResolution(b.resolution,c);var e=d.a,f=a.p();"degrees"!=e||"metric"!=f&&
"imperial"!=f&&"us"!=f&&"nautical"!=f?"degrees"!=e&&"degrees"==f?(null===a.f&&(a.f=Qd(d,Ka("EPSG:4326"))),c=Math.cos(me(a.f(c)[1])),d=lk.radius,d/=Rf[e],b*=180/(Math.PI*c*d)):a.f=null:(a.f=null,c=Math.cos(me(c[1])),b*=Math.PI*c*lk.radius/180);c=a.i*b;e="";"degrees"==f?c<1/60?(e="\u2033",b*=3600):1>c?(e="\u2032",b*=60):e="\u00b0":"imperial"==f?.9144>c?(e="in",b/=.0254):1609.344>c?(e="ft",b/=.3048):(e="mi",b/=1609.344):"nautical"==f?(b/=1852,e="nm"):"metric"==f?1>c?(e="mm",b*=1E3):1E3>c?e="m":(e="km",
b/=1E3):"us"==f&&(.9144>c?(e="in",b*=39.37):1609.344>c?(e="ft",b/=.30480061):(e="mi",b/=1609.3472));for(c=3*Math.floor(Math.log(a.i*b)/Math.log(10));;){d=Kv[c%3]*Math.pow(10,Math.floor(c/3));f=Math.round(d/b);if(isNaN(f)){ge(a.Z,!1);a.d=!1;return}if(f>=a.i)break;++c}b=d+" "+e;a.n!=b&&(a.g.innerHTML=b,a.n=b);a.H!=f&&(a.g.style.width=f+"px",a.H=f);a.d||(ge(a.Z,!0),a.d=!0)}}function oh(a){Re.call(this);this.a=a;this.b={}}function Yn(a){ob(a.b,Hb);a.b={}}function zl(a,b,c){Tc.call(this);this.target=a;
this.handle=b||a;this.b=c||new kd(NaN,NaN,NaN,NaN);this.c=Da(a);this.a=new oh(this);eg(this,this.a);ma(this.handle,["touchstart","mousedown"],this.cg,!1,this)}function Zn(a){var b=a.type;"touchstart"==b||"touchmove"==b?rf(a,a.b.targetTouches[0],a.c):"touchend"!=b&&"touchcancel"!=b||rf(a,a.b.changedTouches[0],a.c)}function Br(a,b,c){var d=Xb(Fc(a.c));b+=d.x-a.d.x;c+=d.y-a.d.y;a.d=d;a.yc+=b;a.zc+=c;b=Cr(a,a.yc);a=Dr(a,a.zc);return new Ve(b,a)}function Er(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=
d+"px";a.dispatchEvent(new Yi("drag",a,b.clientX,b.clientY,0,c,d))}function Cr(a,b){a=a.b;var c=isNaN(a.left)?null:a.left;a=isNaN(a.width)?0:a.width;return Math.min(null!=c?c+a:Infinity,Math.max(null!=c?c:-Infinity,b))}function Dr(a,b){a=a.b;var c=isNaN(a.top)?null:a.top;a=isNaN(a.height)?0:a.height;return Math.min(null!=c?c+a:Infinity,Math.max(null!=c?c:-Infinity,b))}function Yi(a,b,c,d,e,f,h){tc.call(this,a);this.clientX=c;this.clientY=d;this.left=g(f)?f:b.yc;this.top=g(h)?h:b.zc}function dd(a){a=
g(a)?a:{};this.f=void 0;this.g=Fr;this.i=null;this.n=!1;this.o=g(a.duration)?a.duration:200;var b=g(a.className)?a.className:"ol-zoomslider",c=db("DIV",[b+"-thumb","ol-unselectable"]);b=db("DIV",[b,"ol-unselectable","ol-control"],c);this.d=new zl(c);eg(this,this.d);ma(this.d,"start",this.Jj,!1,this);ma(this.d,"drag",this.Hj,!1,this);ma(this.d,"end",this.Ij,!1,this);ma(b,"click",this.Gj,!1,this);ma(c,"click",Gk);qb.call(this,{element:b,render:g(a.render)?a.render:Gr})}function Gr(a){if(null!==a.frameState){if(!this.n){var b=
this.element,c=bm(b),d=oa(b);b=cm(d,"margin");var e=new Af(d.offsetWidth,d.offsetHeight);d=e.width+b.right+b.left;b=e.height+b.top+b.bottom;this.i=[d,b];d=c.width-d;b=c.height-b;c.width>c.height?(this.g=1,c=new kd(0,0,d,0)):(this.g=Fr,c=new kd(0,0,0,b));this.d.b=c||new kd(NaN,NaN,NaN,NaN);this.n=!0}a=a.frameState.viewState.resolution;a!==this.f&&(this.f=a,a=1-Nk(this.a.R())(a),c=this.d,b=oa(this.element),1==this.g?vi(b,c.b.left+c.b.width*a):vi(b,c.b.left,c.b.top+c.b.height*a))}}function Hr(a,b,c){var d=
a.d.b;return Hd(1===a.g?(b-d.left)/d.width:(c-d.top)/d.height,0,1)}function Ir(a,b){return Mk(a.a.R())(1-b)}function Rc(a){a=g(a)?a:{};this.d=g(a.extent)?a.extent:null;var b=g(a.className)?a.className:"ol-zoom-extent",c=db("BUTTON",{type:"button",title:g(a.tipLabel)?a.tipLabel:"Fit to extent"},g(a.label)?a.label:"E");ma(c,"click",this.f,!1,this);ma(c,["mouseout",Lh],function(){this.blur()},!1);b=db("DIV",b+" ol-unselectable ol-control",c);qb.call(this,{element:b,target:a.target})}function kc(a){ub.call(this);
a=g(a)?a:{};this.a=null;ma(this,Uc("tracking"),this.Jk,!1,this);this.bf(g(a.tracking)?a.tracking:!1)}function Wa(a){ub.call(this);this.$=void 0;this.a="geometry";this.e=null;this.c=void 0;this.d=null;ma(this,Uc(this.a),this.Pd,!1,this);g(a)&&(a instanceof gc||null===a?this.La(a):this.t(a))}function Ld(a){a=g(a)?a:{};this.g=this.e=this.d=this.a=this.c=this.b=null;this.f=void 0;this.rg(g(a.style)?a.style:Xj);g(a.features)?t(a.features)?this.ld(new Sa(a.features.slice())):this.ld(a.features):this.ld(new Sa);
g(a.map)&&this.setMap(a.map)}function Yh(a){null===a.d||a.d.render()}function Al(){this.defaultDataProjection=null}function Ef(a,b,c){var d;g(c)&&(d={dataProjection:g(c.dataProjection)?c.dataProjection:a.za(b),featureProjection:c.featureProjection});return oe(a,d)}function oe(a,b){var c;g(b)&&(c={featureProjection:b.featureProjection,dataProjection:null!=b.dataProjection?b.dataProjection:a.defaultDataProjection,rightHanded:b.rightHanded});return c}function Sd(a,b,c){var d=g(c)?Ka(c.featureProjection):
null;c=g(c)?Ka(c.dataProjection):null;return null===d||null===c||sd(d,c)?a:a instanceof gc?(b?a.clone():a).transform(b?d:c,b?c:d):Te(b?a.slice():a,b?d:c,b?c:d)}function mk(){this.defaultDataProjection=null}function Bl(a){return v(a)?a:E(a)?(a=Lv(a),g(a)?a:null):null}function Md(a){a=g(a)?a:{};this.defaultDataProjection=null;this.b=a.geometryName}function Jr(a,b){if(null===a)return null;if(D(a.x)&&D(a.y))var c="Point";else if(null!=a.points)c="MultiPoint";else if(null!=a.paths)c=1===a.paths.length?
"LineString":"MultiLineString";else if(null!=a.rings){var d=a.rings,e=Zi(a),f=[];c=[];var h;var m=0;for(h=d.length;m<h;++m){var q=pa(d[m]);an(q,0,q.length,e.length)?f.push([d[m]]):c.push(d[m])}for(;c.length;){d=c.shift();e=!1;for(m=f.length-1;0<=m;m--)if(qe((new lb(f[m][0])).G(),(new lb(d)).G())){f[m].push(d);e=!0;break}e||f.push([d.reverse()])}a=Gd(a);1===f.length?(c="Polygon",a.rings=f[0]):(c="MultiPolygon",a.rings=f)}return Sd((0,Mv[c])(a),!1,b)}function Zi(a){var b="XY";!0===a.hasZ&&!0===a.hasM?
b="XYZM":!0===a.hasZ?b="XYZ":!0===a.hasM&&(b="XYM");return b}function nk(a){a=a.a;return{hasZ:"XYZ"===a||"XYZM"===a,hasM:"XYM"===a||"XYZM"===a}}function Kr(a,b){return(0,Nv[a.M()])(Sd(a,!0,b),b)}function Nd(a){a=g(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ka(null!=a.defaultDataProjection?a.defaultDataProjection:"EPSG:4326");this.b=a.geometryName}function $n(a,b){return null===a?null:Sd((0,Ov[a.type])(a),!1,b)}function ao(a,b){return(0,Pv[a.M()])(Sd(a,!0,b),b)}function ph(){this.defaultDataProjection=
null}function Lr(a,b,c){a=bo(a,b,c);return 0<a.length?a[0]:null}function bo(a,b,c){var d=[];for(b=b.firstChild;null!==b;b=b.nextSibling)1==b.nodeType&&Tb(d,a.Ob(b,c));return d}function oc(a){a=g(a)?a:{};this.featureType=a.featureType;this.featureNS=a.featureNS;this.srsName=a.srsName;this.schemaLocation="";this.b={};this.b["http://www.opengis.net/gml"]={featureMember:Cc(oc.prototype.jd),featureMembers:Cc(oc.prototype.jd)};this.defaultDataProjection=null}function Zh(a){a=Me(a,!1);return $h(a)}function $h(a){if(a=
/^\s*(true|1)|(false|0)\s*$/.exec(a))return g(a[1])||!1}function co(a){a=Me(a,!1);if(a=/^\s*(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?))\s*$/.exec(a)){var b=Date.UTC(parseInt(a[1],10),parseInt(a[2],10)-1,parseInt(a[3],10),parseInt(a[4],10),parseInt(a[5],10),parseInt(a[6],10))/1E3;if("Z"!=a[7]){var c="-"==a[8]?-1:1;b+=60*c*parseInt(a[9],10);g(a[10])&&(b+=3600*c*parseInt(a[10],10))}return b}}function Od(a){a=Me(a,!1);return Hg(a)}function Hg(a){if(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))return parseFloat(a[1])}
function lf(a){a=Me(a,!1);return Yf(a)}function Yf(a){if(a=/^\s*(\d+)\s*$/.exec(a))return parseInt(a[1],10)}function Aa(a){a=Me(a,!1);return vg(a)}function Mr(a,b){sc(a,b?"1":"0")}function mf(a,b){a.appendChild(Vi.createTextNode(b.toPrecision()))}function Cl(a,b){a.appendChild(Vi.createTextNode(b.toString()))}function sc(a,b){a.appendChild(Vi.createTextNode(b))}function Ya(a){a=g(a)?a:{};oc.call(this,a);this.i=g(a.surface)?a.surface:!1;this.e=g(a.curve)?a.curve:!1;this.f=g(a.multiCurve)?a.multiCurve:
!0;this.g=g(a.multiSurface)?a.multiSurface:!0;this.schemaLocation=g(a.schemaLocation)?a.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}function Nr(a,b,c){c=c[c.length-1].srsName;b=b.K();for(var d=b.length,e=Array(d),f,h=0;h<d;++h){f=b[h];var m=h,q="enu";null!=c&&(q=Ka(c).d);e[m]="en"===q.substr(0,2)?f[0]+" "+f[1]:f[1]+" "+f[0]}sc(a,e.join(" "))}function Zf(a){a=g(a)?a:{};oc.call(this,a);this.b["http://www.opengis.net/gml"].featureMember=
mc(oc.prototype.jd);this.schemaLocation=g(a.schemaLocation)?a.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}function $e(a){a=g(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ka("EPSG:4326");this.b=a.readExtensions}function eo(a,b,c){a.push(parseFloat(b.getAttribute("lon")),parseFloat(b.getAttribute("lat")));"ele"in c?(a.push(c.ele),Fe(c,"ele")):a.push(0);"time"in c?(a.push(c.time),Fe(c,"time")):a.push(0);return a}function fo(a,b){var c=
b[b.length-1],d=a.getAttribute("href");null===d||(c.link=d);Of(Qv,a,b)}function go(a,b){b[b.length-1].extensionsNode_=a}function Or(a,b){var c=b[0];a=ta({flatCoordinates:[]},Rv,a,b);if(g(a)){b=a.flatCoordinates;Fe(a,"flatCoordinates");var d=new Ha(null);kf(d,"XYZM",b);Sd(d,!1,c);c=new Wa(d);c.t(a);return c}}function Pr(a,b){var c=b[0];a=ta({flatCoordinates:[],ends:[]},Sv,a,b);if(g(a)){b=a.flatCoordinates;Fe(a,"flatCoordinates");var d=a.ends;Fe(a,"ends");var e=new Qa(null);ak(e,"XYZM",b,d);Sd(e,!1,
c);c=new Wa(e);c.t(a);return c}}function Qr(a,b){var c=b[0];b=ta({},Tv,a,b);if(g(b))return a=eo([],a,b),a=new Ta(a,"XYZM"),Sd(a,!1,c),c=new Wa(a),c.t(b),c}function Rr(a,b){null===b&&(b=[]);for(var c=0,d=b.length;c<d;++c){var e=b[c];if(g(a.b)){var f=e.get("extensionsNode_")||null;a.b(e,f)}e.set("extensionsNode_",void 0)}}function ho(a,b,c){a.setAttribute("href",b);b=c[c.length-1].properties;wc({P:a},Uv,Pf,[b.linkText,b.linkType],c,Vv)}function io(a,b,c){var d=c[c.length-1],e=d.P.namespaceURI,f=d.properties;
$f(a,null,"lat",b[1]);$f(a,null,"lon",b[0]);switch(d.geometryLayout){case "XYZM":0!==b[3]&&(f.time=b[3]);case "XYZ":0!==b[2]&&(f.ele=b[2]);break;case "XYM":0!==b[2]&&(f.time=b[2])}b=Wv[e];d=Xf(f,b);wc({P:a,properties:f},Xv,Pf,d,c,b)}function Yv(a,b){a=a.Q();if(g(a))return jd(b[b.length-1].P.namespaceURI,Zv[a.M()])}function $v(a){a=aw(a);return Jc(a,function(b){return b.c.substring(b.a,b.b)})}function Sr(a,b,c){this.c=a;this.a=b;this.b=c}function aw(a){for(var b=RegExp("\r\n|\r|\n","g"),c=0,d,e=[];d=
b.exec(a);)c=new Sr(a,c,d.index),e.push(c),c=b.lastIndex;c<a.length&&(c=new Sr(a,c,a.length),e.push(c));return e}function ok(){this.defaultDataProjection=null}function rg(a){a=g(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ka("EPSG:4326");this.b=g(a.altitudeMode)?a.altitudeMode:"none"}function Ig(a,b){var c;a instanceof Ig?(this.Yb=g(b)?b:a.Yb,jo(this,a.Pb),this.pc=a.pc,this.ib=a.ib,ko(this,a.Ec),this.hb=a.hb,lo(this,a.b.clone()),this.Sb=a.Sb):a&&(c=zn(String(a)))?(this.Yb=!!b,
jo(this,c[1]||"",!0),this.pc=$i(c[2]||""),this.ib=$i(c[3]||"",!0),ko(this,c[4]),this.hb=$i(c[5]||"",!0),lo(this,c[6]||"",!0),this.Sb=$i(c[7]||"")):(this.Yb=!!b,this.b=new pk(null,0,this.Yb))}function jo(a,b,c){a.Pb=c?$i(b,!0):b;a.Pb&&(a.Pb=a.Pb.replace(/:$/,""))}function ko(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Ec=b}else a.Ec=null}function lo(a,b,c){b instanceof pk?(a.b=b,bw(a.b,a.Yb)):(c||(b=qk(b,cw)),a.b=new pk(b,0,a.Yb))}function Tr(a){return a instanceof Ig?
a.clone():new Ig(a,void 0)}function Dl(a,b){a instanceof Ig||(a=Tr(a));b instanceof Ig||(b=Tr(b));var c=a.clone(),d=!!b.Pb;d?jo(c,b.Pb):d=!!b.pc;d?c.pc=b.pc:d=!!b.ib;d?c.ib=b.ib:d=null!=b.Ec;var e=b.hb;if(d)ko(c,b.Ec);else if(d=!!b.hb)if("/"!=e.charAt(0)&&(a.ib&&!a.hb?e="/"+e:(a=c.hb.lastIndexOf("/"),-1!=a&&(e=c.hb.substr(0,a+1)+e))),a=e,".."==a||"."==a)e="";else if(-1!=a.indexOf("./")||-1!=a.indexOf("/.")){e=0==a.lastIndexOf("/",0);a=a.split("/");for(var f=[],h=0;h<a.length;){var m=a[h++];"."==m?
e&&h==a.length&&f.push(""):".."==m?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&h==a.length&&f.push("")):(f.push(m),e=!0)}e=f.join("/")}else e=a;d?c.hb=e:d=""!==b.b.toString();d?lo(c,$i(b.b.toString())):d=!!b.Sb;d&&(c.Sb=b.Sb);return c}function $i(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function qk(a,b,c){return E(a)?(a=encodeURI(a).replace(b,dw),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function dw(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}
function pk(a,b,c){this.b=a||null;this.a=!!c}function Jg(a){a.ia||(a.ia=new Lj,a.va=0,a.b&&$u(a.b,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))}function Ur(a,b){Jg(a);b=aj(a,b);return Mh(a.ia.a,b)}function mo(a,b,c){a.remove(b);0<c.length&&(a.b=null,a.ia.set(aj(a,b),Pe(c)),a.va+=c.length)}function aj(a,b){b=String(b);a.a&&(b=b.toLowerCase());return b}function bw(a,b){b&&!a.a&&(Jg(a),a.b=null,a.ia.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),mo(this,e,c))},
a));a.a=b}function lc(a){a=g(a)?a:{};this.d=a.font;this.e=a.rotation;this.a=a.scale;this.c=a.text;this.g=a.textAlign;this.i=a.textBaseline;this.b=g(a.fill)?a.fill:null;this.f=g(a.stroke)?a.stroke:null;this.q=g(a.offsetX)?a.offsetX:0;this.l=g(a.offsetY)?a.offsetY:0}function ye(a){function b(e){return t(e)?e:E(e)?(!(e in d)&&"#"+e in d&&(e="#"+e),b(d[e])):c}a=g(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ka("EPSG:4326");var c=g(a.defaultStyle)?a.defaultStyle:ew,d={};this.c=g(a.extractStyles)?
a.extractStyles:!0;this.b=d;this.d=function(){var e=this.get("Style");if(g(e))return e;e=this.get("styleUrl");return g(e)?b(e):c}}function no(a){a=Me(a,!1);if(a=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(a))return a=a[1],[parseInt(a.substr(6,2),16),parseInt(a.substr(4,2),16),parseInt(a.substr(2,2),16),parseInt(a.substr(0,2),16)/255]}function Vr(a){a=Me(a,!1);for(var b=[],c=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i,d;d=c.exec(a);)b.push(parseFloat(d[1]),
parseFloat(d[2]),d[3]?parseFloat(d[3]):0),a=a.substr(d[0].length);return""!==a?void 0:b}function oo(a){var b=Me(a,!1);return null!=a.baseURI?Dl(a.baseURI,vg(b)).toString():vg(b)}function Wr(a){a=Od(a);if(g(a))return Math.sqrt(a)}function Xr(a,b){return ta(null,fw,a,b)}function Yr(a,b){a=ta({j:[],Kh:[]},gw,a,b);if(g(a)){b=a.j;a=a.Kh;var c;var d=0;for(c=Math.min(b.length,a.length);d<c;++d)b[4*d+3]=a[d];a=new Ha(null);kf(a,"XYZM",b);return a}}function Zr(a,b){var c=ta({},El,a,b);a=ta(null,po,a,b);if(g(a))return b=
new Ha(null),kf(b,"XYZ",a),b.t(c),b}function $r(a,b){var c=ta({},El,a,b);a=ta(null,po,a,b);if(g(a))return b=new Fa(null),Nf(b,"XYZ",a,[a.length]),b.t(c),b}function as(a,b){a=ta([],hw,a,b);if(!g(a))return null;if(0===a.length)return new sb(a);b=!0;var c=a[0].M(),d,e;var f=1;for(e=a.length;f<e;++f)if(d=a[f],d.M()!=c){b=!1;break}if(b){if("Point"==c){d=a[0];b=d.a;c=d.j;f=1;for(e=a.length;f<e;++f)d=a[f],Tb(c,d.j);d=new $a(null);Df(d,b,c);d.k();qo(d,a);return d}return"LineString"==c?(d=new Qa(null),nl(d,
a),qo(d,a),d):"Polygon"==c?(d=new Ra(null),tn(d,a),qo(d,a),d):"GeometryCollection"==c?new sb(a):null}return new sb(a)}function bs(a,b){var c=ta({},El,a,b);a=ta(null,po,a,b);if(null!=a)return b=new Ta(null),Li(b,"XYZ",a),b.t(c),b}function cs(a,b){var c=ta({},El,a,b);a=ta([null],iw,a,b);if(null!=a&&null!==a[0]){b=new Fa(null);var d=a[0],e=[d.length],f;var h=1;for(f=a.length;h<f;++h)Tb(d,a[h]),e.push(d.length);Nf(b,"XYZ",d,e);b.t(c);return b}}function ro(a,b){a=ta({},jw,a,b);if(!g(a))return null;b=qc(a,
"fillStyle",so);var c=a.fill;g(c)&&!c&&(b=null);c=qc(a,"imageStyle",ds);var d=qc(a,"textStyle",es),e=qc(a,"strokeStyle",to);a=a.outline;g(a)&&!a&&(e=null);return[new qd({fill:b,image:c,stroke:e,text:d,zIndex:void 0})]}function qo(a,b){var c=b.length,d=Array(b.length),e=Array(b.length),f,h;var m=h=!1;for(f=0;f<c;++f){var q=b[f];d[f]=q.get("extrude");e[f]=q.get("altitudeMode");m=m||g(d[f]);h=h||g(e[f])}m&&a.set("extrude",d);h&&a.set("altitudeMode",e)}function fs(a,b){Of(kw,a,b)}function gs(a,b){for(b=
b.firstChild;null!==b;b=b.nextSibling)if(1==b.nodeType){var c=uo(a,b);if(g(c))return c}}function uo(a,b){var c;for(c=b.firstElementChild;null!==c;c=c.nextElementSibling)if(Nc(Bb,c.namespaceURI)&&"name"==c.localName)return Aa(c);for(c=b.firstElementChild;null!==c;c=c.nextElementSibling)if(b=ai(c),Nc(Bb,c.namespaceURI)&&("Document"==b||"Folder"==b||"Placemark"==b||"kml"==b)&&(b=uo(a,c),g(b)))return b}function hs(a,b){var c=[];for(b=b.firstChild;null!==b;b=b.nextSibling)1==b.nodeType&&Tb(c,vo(a,b));
return c}function vo(a,b){var c,d=[];for(c=b.firstElementChild;null!==c;c=c.nextElementSibling)if(Nc(Bb,c.namespaceURI)&&"NetworkLink"==c.localName){var e=ta({},lw,c,[]);d.push(e)}for(c=b.firstElementChild;null!==c;c=c.nextElementSibling)e=ai(c),!Nc(Bb,c.namespaceURI)||"Document"!=e&&"Folder"!=e&&"kml"!=e||Tb(d,vo(a,c));return d}function wo(a,b){b=ti(b);b=[255*(4==b.length?b[3]:1),b[2],b[1],b[0]];var c;for(c=0;4>c;++c){var d=parseInt(b[c],10).toString(16);b[c]=1==d.length?"0"+d:d}sc(a,b.join(""))}
function is(a,b,c){wc({P:a},mw,nw,[b],c)}function js(a,b,c){var d={P:a};null!=b.$&&a.setAttribute("id",b.$);a=b.D();var e=b.c;g(e)&&(e=e.call(b,0),null!==e&&0<e.length&&(a.Style=e[0],e=e[0].a,null===e||(a.name=e.c)));e=ow[c[c.length-1].P.namespaceURI];a=Xf(a,e);wc(d,ks,Pf,a,c,e);a=c[0];b=b.Q();null!=b&&(b=Sd(b,!0,a));wc(d,ks,pw,[b],c)}function bj(a,b,c){var d=b.j;a={P:a};a.layout=b.a;a.stride=b.s;wc(a,qw,rw,[d],c)}function ls(a,b,c){b=b.Ed();var d=b.shift();a={P:a};wc(a,ms,sw,b,c);wc(a,ms,tw,[d],
c)}function ns(a,b){mf(a,b*b)}function uw(a,b,c){return jd(Kg[0],"gx:"+c)}function vw(a,b){return jd(b[b.length-1].P.namespaceURI,"Placemark")}function pw(a,b){if(null!=a)return jd(b[b.length-1].P.namespaceURI,ww[a.M()])}function bi(){this.defaultDataProjection=null;this.defaultDataProjection=Ka("EPSG:4326")}function os(a,b){b[b.length-1].od[a.getAttribute("k")]=a.getAttribute("v")}function cj(a){return a.getAttributeNS("http://www.w3.org/1999/xlink","href")}function Fl(){}function Gl(){}function ps(a,
b,c,d){var e;g(d)?e=g(void 0)?void 0:0:(d=[],e=0);var f;for(f=0;f<b;){var h=a[f++];d[e++]=a[f++];d[e++]=h;for(h=2;h<c;++h)d[e++]=a[f++]}d.length=e}function Ff(a){a=g(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ka("EPSG:4326");this.b=g(a.factor)?a.factor:1E5;this.a=g(a.geometryLayout)?a.geometryLayout:"XY"}function qs(a,b,c){c=g(c)?c:1E5;var d,e=Array(b);for(d=0;d<b;++d)e[d]=0;var f;var h=0;for(f=a.length;h<f;)for(d=0;d<b;++d,++h){var m=a[h],q=m-e[d];e[d]=m;a[h]=q}return rs(a,
c)}function ss(a,b,c){var d=g(c)?c:1E5,e=Array(b);for(c=0;c<b;++c)e[c]=0;a=ts(a,d);var f;d=0;for(f=a.length;d<f;)for(c=0;c<b;++c,++d)e[c]+=a[d],a[d]=e[c];return a}function rs(a,b){b=g(b)?b:1E5;var c;var d=0;for(c=a.length;d<c;++d)a[d]=Math.round(a[d]*b);b=0;for(d=a.length;b<d;++b)c=a[b],a[b]=0>c?~(c<<1):c<<1;b="";d=0;for(c=a.length;d<c;++d){for(var e=a[d],f,h="";32<=e;)f=(32|e&31)+63,h+=String.fromCharCode(f),e>>=5;f=e+63;h+=String.fromCharCode(f);b+=h}return b}function ts(a,b){b=g(b)?b:1E5;var c=
[],d=0,e=0,f;var h=0;for(f=a.length;h<f;++h){var m=a.charCodeAt(h)-63;d|=(m&31)<<e;32>m?(c.push(d),e=d=0):e+=5}d=0;for(e=c.length;d<e;++d)h=c[d],c[d]=h&1?~(h>>1):h>>1;d=0;for(e=c.length;d<e;++d)c[d]/=b;return c}function qh(a){a=g(a)?a:{};this.defaultDataProjection=null;this.defaultDataProjection=Ka(null!=a.defaultDataProjection?a.defaultDataProjection:"EPSG:4326")}function Hl(a,b){var c=[],d,e;var f=0;for(e=a.length;f<e;++f){var h=a[f];0<f&&c.pop();0<=h?d=b[h]:d=b[~h].slice().reverse();c.push.apply(c,
d)}h=0;for(d=c.length;h<d;++h)c[h]=c[h].slice();return c}function us(a,b,c,d,e){var f=a.type,h=xw[f];b="Point"===f||"MultiPoint"===f?h(a,c,d):h(a,b);c=new Wa;c.La(Sd(b,!1,e));g(a.id)&&c.Qb(a.id);g(a.properties)&&c.t(a.properties);return c}function xo(a,b,c){a[0]=a[0]*b[0]+c[0];a[1]=a[1]*b[1]+c[1]}function be(a){a=g(a)?a:{};this.e=a.featureType;this.c=a.featureNS;this.b=g(a.gmlFormat)?a.gmlFormat:new Ya;this.d=g(a.schemaLocation)?a.schemaLocation:"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";
this.defaultDataProjection=null}function vs(a,b){for(b=b.firstChild;null!==b;b=b.nextSibling)if(1==b.nodeType)return ws(a,b)}function ws(a,b){var c={},d=Yf(b.getAttribute("numberOfFeatures"));c.numberOfFeatures=d;return ta(c,yw,b,[],a.b)}function xs(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return ta({},ys,a,[])}function zs(a,b){var c=jd("http://www.opengis.net/ogc","Filter"),d=jd("http://www.opengis.net/ogc","FeatureId");c.appendChild(d);d.setAttribute("fid",b);a.appendChild(c)}
function af(a){a=g(a)?a:{};this.defaultDataProjection=null;this.b=g(a.splitCollection)?a.splitCollection:!1}function As(a){a=a.K();return 0==a.length?"":a[0]+" "+a[1]}function yo(a){a=a.K();for(var b=[],c=0,d=a.length;c<d;++c)b.push(a[c][0]+" "+a[c][1]);return b.join(",")}function Bs(a){var b=[];a=a.Ed();for(var c=0,d=a.length;c<d;++c)b.push("("+yo(a[c])+")");return b.join(",")}function Cs(a){var b=a.M();a=(0,zw[b])(a);b=b.toUpperCase();return 0===a.length?b+" EMPTY":b+"("+a+")"}function Aw(a){this.a=
a;this.b=-1}function Ds(a,b){b=g(b)?b:!1;return"0"<=a&&"9">=a||"."==a&&!b}function Il(a){var b=a.a.charAt(++a.b),c={position:a.b,value:b};if("("==b)c.type=2;else if(","==b)c.type=5;else if(")"==b)c.type=3;else if(Ds(b)||"-"==b){c.type=4;b=a.b;var d=!1;do{"."==e&&(d=!0);var e=a.a.charAt(++a.b)}while(Ds(e,d));a=parseFloat(a.a.substring(b,a.b--));c.value=a}else if("a"<=b&&"z">=b||"A"<=b&&"Z">=b){c.type=1;b=a.b;do e=a.a.charAt(++a.b);while("a"<=e&&"z">=e||"A"<=e&&"Z">=e);a=a.a.substring(b,a.b--).toUpperCase();
c.value=a}else{if(" "==b||"\t"==b||"\r"==b||"\n"==b)return Il(a);if(""===b)c.type=6;else throw Error("Unexpected character: "+b);}return c}function rh(a){this.a=a}function Es(a){var b=a.b;if(a.match(1)){var c=b.value;if("GEOMETRYCOLLECTION"==c){a:{if(a.match(2)){b=[];do b.push(Es(a));while(a.match(5));if(a.match(3)){a=b;break a}}else if(ci(a)){a=[];break a}throw Error(Lg(a));}return new sb(a)}var d=Bw[c];b=Cw[c];if(!g(d)||!g(b))throw Error("Invalid geometry type: "+c);a=d.call(a);return new b(a)}throw Error(Lg(a));
}function zo(a){for(var b=[],c=0;2>c;++c){var d=a.b;if(a.match(4))b.push(d.value);else break}if(2==b.length)return b;throw Error(Lg(a));}function Fs(a){for(var b=[zo(a)];a.match(5);)b.push(zo(a));return b}function Gs(a){for(var b=[a.kf()];a.match(5);)b.push(a.kf());return b}function ci(a){var b=1==a.b.type&&"EMPTY"==a.b.value;b&&(a.b=Il(a.a));return b}function Lg(a){return"Unexpected `"+a.b.value+"` at position "+a.b.position+" in `"+a.a.a+"`"}function dj(){this.version=void 0}function Mg(a,b){return ta({},
Dw,a,b)}function Ao(a,b){return ta({},Ew,a,b)}function Hs(a,b){b=Mg(a,b);if(g(b))return a=[Yf(a.getAttribute("width")),Yf(a.getAttribute("height"))],b.size=a,b}function Is(a,b){return ta([],Fw,a,b)}function rk(){this.c="http://mapserver.gis.umn.edu/mapserver";this.b=new Zf;this.defaultDataProjection=null}function Gw(a,b,c){b.namespaceURI=a.c;var d=ai(b),e=[];if(0===b.childNodes.length)return e;"msGMLOutput"==d&&Oa(b.childNodes,function(f){if(1===f.nodeType){var h=c[0],m=f.localName,q=RegExp;var w=
"_layer".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08");q=new q(w,"");m=m.replace(q,"")+"_feature";h.featureType=m;h.featureNS=this.c;q={};q[m]=mc(this.b.nf,this.b);h=Ca([h.featureNS,null],q);f.namespaceURI=this.c;f=ta([],h,f,c,this.b);g(f)&&Tb(e,f)}},a);"FeatureCollection"==d&&(a=ta([],a.b.b,b,[{}],a.b),g(a)&&(e=a));return e}function ej(){this.d=new Gl}function Bo(a){var b=Aa(a).split(" ");if(g(b)&&2==b.length)return a=+b[0],b=+b[1],isNaN(a)||isNaN(b)?void 0:[a,b]}function tb(a){ub.call(this);
a=g(a)?a:{};this.a=null;this.d=ah;this.c=void 0;ma(this,Uc("projection"),this.Vk,!1,this);ma(this,Uc("tracking"),this.Wk,!1,this);g(a.projection)&&this.ug(Ka(a.projection));g(a.trackingOptions)&&this.Dh(a.trackingOptions);this.Zd(g(a.tracking)?a.tracking:!1)}function Js(a,b,c){for(var d=[],e=a(0),f=a(1),h=b(e),m=b(f),q=[f,e],w=[m,h],F=[1,0],M={},S=1E5,Y,N,O,Z,ca;0<--S&&0<F.length;)O=F.pop(),e=q.pop(),h=w.pop(),f=O.toString(),f in M||(d.push(h[0],h[1]),M[f]=!0),Z=F.pop(),f=q.pop(),m=w.pop(),ca=(O+
Z)/2,Y=a(ca),N=b(Y),Vp(N[0],N[1],h[0],h[1],m[0],m[1])<c?(d.push(m[0],m[1]),f=Z.toString(),M[f]=!0):(F.push(Z,ca,ca,O),w.push(m,N,N,h),q.push(f,Y,Y,e));return d}function Hw(a,b,c,d,e){var f=Ka("EPSG:4326");return Js(function(h){return[a,b+(c-b)*h]},Wc(f,d),e)}function Iw(a,b,c,d,e){var f=Ka("EPSG:4326");return Js(function(h){return[b+(c-b)*h,a]},Wc(f,d),e)}function sg(a){a=g(a)?a:{};this.i=this.g=null;this.d=this.c=Infinity;this.f=this.e=-Infinity;this.n=g(a.targetSize)?a.targetSize:100;this.U=g(a.maxLines)?
a.maxLines:100;this.b=[];this.a=[];this.V=g(a.strokeStyle)?a.strokeStyle:Jw;this.o=this.q=void 0;this.l=null;this.setMap(g(a.map)?a.map:null)}function Co(a,b,c,d,e){var f=e;b=Hw(b,a.e,a.c,a.i,c);f=g(a.b[f])?a.b[f]:new Ha(null);kf(f,"XY",b);sa(f.G(),d)&&(a.b[e++]=f);return e}function Do(a,b,c,d,e){var f=e;b=Iw(b,a.f,a.d,a.i,c);f=g(a.a[f])?a.a[f]:new Ha(null);kf(f,"XY",b);sa(f.G(),d)&&(a.a[e++]=f);return e}function tg(a,b,c,d,e,f,h){Di.call(this,a,b,c,0,d);this.i=e;this.a=new Image;null!==f&&(this.a.crossOrigin=
f);this.d={};this.c=null;this.state=0;this.g=h}function ug(a,b,c,d,e){Uf.call(this,a,b);this.g=c;this.a=new Image;null!==d&&(this.a.crossOrigin=d);this.c={};this.e=null;this.i=e}function Eo(a){Oa(a.e,Hb);a.e=null}function Kw(a,b,c){return function(d,e,f){return c(a,b,d,e,f)}}function Lw(){}function Jl(a,b){Tc.call(this);this.b=new oh(this);var c=a;b&&(c=Da(a));this.b.Ka(c,"dragenter",this.$m);c!=a&&this.b.Ka(c,"dragover",this.an);this.b.Ka(a,"dragover",this.bn);this.b.Ka(a,"drop",this.cn)}function sh(a,
b){this.e=[];this.U=a;this.o=b||null;this.d=this.b=!1;this.c=void 0;this.q=this.V=this.g=!1;this.f=0;this.a=null;this.i=0}function di(a,b,c){a.b=!0;a.c=c;a.d=!b;Ks(a)}function fj(a){if(a.b){if(!a.q)throw new Kl;a.q=!1}}function Ll(a,b,c,d){a.e.push([b,c,d]);a.b&&Ks(a)}function Ls(a){return pf(a.e,function(b){return x(b[1])})}function Ks(a){if(a.f&&a.b&&Ls(a)){var b=a.f,c=Ml[b];c&&(gb.clearTimeout(c.$),delete Ml[b]);a.f=0}a.a&&(a.a.i--,delete a.a);b=a.c;for(var d=c=!1;a.e.length&&!a.g;){var e=a.e.shift(),
f=e[0],h=e[1];e=e[2];if(f=a.d?h:f)try{var m=f.call(e||a.o,b);g(m)&&(a.d=a.d&&(m==b||m instanceof Error),a.c=b=m);Bq(b)&&(d=!0,a.g=!0)}catch(q){b=q,a.d=!0,Ls(a)||(c=!0)}}a.c=b;d&&(m=J(a.l,a,!0),d=J(a.l,a,!1),b instanceof sh?(Ll(b,m,d),b.V=!0):b.then(m,d));c&&(b=new Ms(b),Ml[b.$]=b,a.f=b.$)}function Kl(){ka.call(this)}function sk(){ka.call(this)}function Ms(a){this.$=gb.setTimeout(J(this.a,this),0);this.b=a}function Ns(a,b){g(a.name)?(this.name=a.name,this.code=Os[a.name]):(this.code=a.code,this.name=
Mw(a.code));ka.call(this,ra("%s %s",this.name,b))}function Mw(a){var b=oj(Os,function(c){return a==c});if(!g(b))throw Error("Invalid code: "+a);return b}function Ps(a,b){tc.call(this,a.type,b)}function gj(){Tc.call(this);this.Ya=new FileReader;this.Ya.onloadstart=J(this.b,this);this.Ya.onprogress=J(this.b,this);this.Ya.onload=J(this.b,this);this.Ya.onabort=J(this.b,this);this.Ya.onerror=J(this.b,this);this.Ya.onloadend=J(this.b,this)}function Nw(a){var b=new sh;a.Ka("loadend",X(function(c,d){var e=
d.Ya.result,f=d.getError();null==e||f?(fj(c),di(c,!1,f)):(fj(c),di(c,!0,e));d.Yc()},b,a));return b}function Dc(a){a=g(a)?a:{};Jb.call(this,{handleEvent:Le});this.f=g(a.formatConstructors)?a.formatConstructors:[];this.o=g(a.projection)?Ka(a.projection):null;this.e=null;this.a=void 0}function th(a,b,c,d,e){tc.call(this,a,b);this.features=d;this.file=c;this.projection=e}function ei(a,b){this.x=a;this.y=b}function md(a){a=g(a)?a:{};Db.call(this,{handleDownEvent:Ow,handleDragEvent:Pw,handleUpEvent:Qw});
this.i=g(a.condition)?a.condition:Rj;this.a=this.f=void 0;this.g=0;this.n=g(a.duration)?a.duration:400}function Pw(a){if(ng(a)){var b=a.map,c=b.xa();a=a.pixel;a=new ei(a[0]-c[0]/2,c[1]/2-a[1]);c=Math.atan2(a.y,a.x);a=Math.sqrt(a.x*a.x+a.y*a.y);var d=b.R(),e=bh(d);b.render();g(this.f)&&Hi(b,d,e.rotation-(c-this.f));this.f=c;g(this.a)&&Ii(b,d,e.resolution/a*this.a);g(this.a)&&(this.g=this.a/a);this.a=a}}function Qw(a){if(!ng(a))return!0;a=a.map;var b=a.R();Ke(b,-1);var c=bh(b),d=this.g-1,e=c.rotation;
e=b.constrainRotation(e,0);Hi(a,b,e,void 0,void 0);c=c.resolution;e=this.n;c=b.constrainResolution(c,0,d);Ii(a,b,c,void 0,e);this.g=0;return!1}function Ow(a){return ng(a)&&this.i(a)?(Ke(a.map.R(),1),this.a=this.f=void 0,!0):!1}function tk(a,b){tc.call(this,a);this.feature=b}function xc(a){Db.call(this,{handleDownEvent:Rw,handleEvent:Qs,handleUpEvent:Sw});this.N=null;this.H=!1;this.Ga=g(a.source)?a.source:null;this.oa=g(a.features)?a.features:null;this.gi=g(a.snapTolerance)?a.snapTolerance:12;this.Nc=
g(a.minPointsPerRing)?a.minPointsPerRing:3;var b=this.L=a.type,c;"Point"===b||"MultiPoint"===b?c=hj:"LineString"===b||"MultiLineString"===b?c=uh:"Polygon"===b||"MultiPolygon"===b?c=vh:"Circle"===b&&(c=uk);this.a=c;this.f=this.n=this.p=this.g=this.i=null;this.T=new Ld({style:g(a.style)?a.style:Tw()});this.Fa=a.geometryName;this.Ee=g(a.condition)?a.condition:Qj;this.ba=g(a.freehandCondition)?a.freehandCondition:Rj;ma(this,Uc("active"),this.Ra,!1,this)}function Tw(){var a=hn();return function(b){return a[b.Q().M()]}}
function Qs(a){var b=!this.H;this.H&&a.type===Tj?(Rs(this,a),b=!1):a.type===Uj?b=Ss(this,a):a.type===fl&&(b=!1);return Sj.call(this,a)&&b}function Rw(a){if(this.Ee(a))return this.N=a.pixel,!0;if(this.a!==uh&&this.a!==vh||!this.ba(a))return!1;this.N=a.pixel;this.H=!0;null===this.i&&Fo(this,a);return!0}function Sw(a){this.H=!1;var b=this.N,c=a.pixel,d=b[0]-c[0];b=b[1]-c[1];c=!0;4>=d*d+b*b&&(Ss(this,a),null===this.i?Fo(this,a):(this.a===hj||this.a===uk)&&null!==this.i||Ts(this,a)?this.X():Rs(this,a),
c=!1);return c}function Ss(a,b){if(a.a===hj&&null===a.i)Fo(a,b);else if(null===a.i){var c=b.coordinate.slice();null===a.p?(a.p=new Wa(new Ta(c)),Nl(a)):a.p.Q().W(c)}else{c=b.coordinate;var d=a.g.Q(),e,f;a.a===hj?(f=d.K(),f[0]=c[0],f[1]=c[1],d.W(f)):(a.a===uh?e=d.K():a.a===vh?e=a.f[0]:a.a===uk&&(e=d.dd()),Ts(a,b)&&(c=a.i.slice()),a.p.Q().W(c),f=e[e.length-1],f[0]=c[0],f[1]=c[1],a.a===uh?d.W(e):a.a===vh?(f=a.n.Q(),f.W(e),d.W(a.f)):a.a===uk&&(f=a.n.Q(),f.W([d.dd(),c]),d.Ag(f.Bg())));Nl(a)}return!0}function Ts(a,
b){var c=!1;if(null!==a.g){var d=a.g.Q(),e=!1,f=[a.i];a.a===uh?e=2<d.K().length:a.a===vh&&(e=d.K()[0].length>a.Nc,f=[a.f[0][0],a.f[0][a.f[0].length-2]]);if(e){d=b.map;e=0;for(var h=f.length;e<h;e++){var m=f[e],q=d.ta(m),w=b.pixel;c=w[0]-q[0];q=w[1]-q[1];w=a.H&&a.ba(b)?1:a.gi;if(c=Math.sqrt(c*c+q*q)<=w){a.i=m;break}}}}return c}function Fo(a,b){b=b.coordinate;a.i=b;var c;a.a===hj?c=new Ta(b.slice()):a.a===uh?c=new Ha([b.slice(),b.slice()]):a.a===vh?(a.n=new Wa(new Ha([b.slice(),b.slice()])),a.f=[[b.slice(),
b.slice()]],c=new Fa(a.f)):a.a===uk&&(c=new hb(b.slice(),0),a.n=new Wa(new Ha([b.slice(),b.slice()])));a.g=new Wa;g(a.Fa)&&a.g.Ic(a.Fa);a.g.La(c);Nl(a);a.dispatchEvent(new tk("drawstart",a.g))}function Rs(a,b){b=b.coordinate;var c=a.g.Q(),d;a.a===uh?(a.i=b.slice(),d=c.K(),d.push(b.slice()),c.W(d)):a.a===vh&&(a.f[0].push(b.slice()),c.W(a.f));Nl(a)}function Us(a){a.i=null;var b=a.g;null!==b&&(a.g=null,a.p=null,a.n=null,a.T.b.clear());return b}function Nl(a){var b=[];null===a.g||b.push(a.g);null===a.n||
b.push(a.n);null===a.p||b.push(a.p);a.T.ld(new Sa(b))}function ed(a){Db.call(this,{handleDownEvent:Uw,handleDragEvent:Vw,handleEvent:Vs,handleUpEvent:Ww});this.X=g(a.deleteCondition)?a.deleteCondition:jp(Qj,Om);this.T=this.f=null;this.L=[0,0];this.a=new fk;this.i=g(a.pixelTolerance)?a.pixelTolerance:10;this.N=!1;this.g=null;this.n=new Ld({style:g(a.style)?a.style:Xw()});this.H={Point:this.Bl,LineString:this.Dg,LinearRing:this.Dg,Polygon:this.Cl,MultiPoint:this.zl,MultiLineString:this.yl,MultiPolygon:this.Al,
GeometryCollection:this.xl};this.p=a.features;this.p.forEach(this.Cg,this);ma(this.p,"add",this.vl,!1,this);ma(this.p,"remove",this.wl,!1,this)}function Ws(a,b){var c=a.f;null===c?(c=new Wa(new Ta(b)),a.f=c,a.n.pg(c)):c.Q().W(b)}function Yw(a,b){return a.index-b.index}function Uw(a){Go(this,a.pixel,a.map);this.g=[];var b=this.f;if(null!==b){a=[];b=b.Q().K();var c=ne([b]);c=gk(this.a,c);var d={};c.sort(Yw);for(var e=0,f=c.length;e<f;++e){var h=c[e],m=h.aa,q=C(h.feature),w=h.depth;w&&(q+="-"+w.join("-"));
d[q]||(d[q]=Array(2));if(Yg(m[0],b)&&!d[q][0])this.g.push([h,0]),d[q][0]=h;else if(Yg(m[1],b)&&!d[q][1]){if("LineString"!==h.geometry.M()&&"MultiLineString"!==h.geometry.M()||!d[q][0]||0!==d[q][0].index)this.g.push([h,1]),d[q][1]=h}else C(m)in this.T&&!d[q][0]&&!d[q][1]&&a.push([h,b])}for(e=a.length-1;0<=e;--e)this.qk.apply(this,a[e])}return null!==this.f}function Vw(a){a=a.coordinate;for(var b=0,c=this.g.length;b<c;++b){var d=this.g[b],e=d[0],f=e.depth,h=e.geometry,m=h.K(),q=e.aa;for(d=d[1];a.length<
h.s;)a.push(0);switch(h.M()){case "Point":m=a;q[0]=q[1]=a;break;case "MultiPoint":m[e.index]=a;q[0]=q[1]=a;break;case "LineString":m[e.index+d]=a;q[d]=a;break;case "MultiLineString":m[f[0]][e.index+d]=a;q[d]=a;break;case "Polygon":m[f[0]][e.index+d]=a;q[d]=a;break;case "MultiPolygon":m[f[1]][f[0]][e.index+d]=a,q[d]=a}h.W(m)}Ws(this,a)}function Ww(){for(var a,b=this.g.length-1;0<=b;--b)a=this.g[b][0],this.a.update(ne(a.aa),a);return!1}function Vs(a){a.map.R().c.slice()[1]||a.type!=Uj||this.o||(this.L=
a.pixel,Go(this,a.pixel,a.map));if(null!==this.f&&this.X(a)){this.f.Q();var b=this.g;var c={},d,e,f,h,m,q,w,F,M;for(m=b.length-1;0<=m;--m)if(f=b[m],F=f[0],h=F.geometry,e=h.K(),M=C(F.feature),F.depth&&(M+="-"+F.depth.join("-")),d=w=q=void 0,0===f[1]?(w=F,q=F.index):1==f[1]&&(d=F,q=F.index+1),M in c||(c[M]=[d,w,q]),f=c[M],g(d)&&(f[0]=d),g(w)&&(f[1]=w),g(f[0])&&g(f[1])){d=e;M=!1;w=q-1;switch(h.M()){case "MultiLineString":e[F.depth[0]].splice(q,1);M=!0;break;case "LineString":e.splice(q,1);M=!0;break;
case "MultiPolygon":d=d[F.depth[1]];case "Polygon":d=d[F.depth[0]],4<d.length&&(q==d.length-1&&(q=0),d.splice(q,1),M=!0,0===q&&(d.pop(),d.push(d[0]),w=d.length-1))}M&&(this.a.remove(f[0]),this.a.remove(f[1]),h.W(e),e={depth:F.depth,feature:F.feature,geometry:F.geometry,index:w,aa:[f[0].aa[0],f[1].aa[1]]},this.a.ha(ne(e.aa),e),Xs(this,h,q,F.depth,-1),this.n.Yd(this.f),this.f=null)}b=!0}return Sj.call(this,a)&&!b}function Go(a,b,c){function d(w,F){return li(e,w.aa)-li(e,F.aa)}var e=c.ka(b),f=c.ka([b[0]-
a.i,b[1]+a.i]),h=c.ka([b[0]+a.i,b[1]-a.i]);f=ne([f,h]);f=gk(a.a,f);if(0<f.length){f.sort(d);h=f[0].aa;var m=ki(e,h),q=c.ta(m);if(Math.sqrt(tf(b,q))<=a.i){b=c.ta(h[0]);c=c.ta(h[1]);b=tf(q,b);c=tf(q,c);a.N=Math.sqrt(Math.min(b,c))<=a.i;a.N&&(m=b>c?h[1]:h[0]);Ws(a,m);c={};c[C(h)]=!0;b=1;for(q=f.length;b<q;++b)if(m=f[b].aa,Yg(h[0],m[0])&&Yg(h[1],m[1])||Yg(h[0],m[1])&&Yg(h[1],m[0]))c[C(m)]=!0;else break;a.T=c;return}}null!==a.f&&(a.n.Yd(a.f),a.f=null)}function Xs(a,b,c,d,e){Wi(a.a,b.G(),function(f){f.geometry===
b&&(!g(d)||rd(f.depth,d))&&f.index>c&&(f.index+=e)})}function Xw(){var a=hn();return function(){return a.Point}}function ij(a,b,c){tc.call(this,a);this.selected=b;this.deselected=c}function pc(a){Jb.call(this,{handleEvent:Ys});a=g(a)?a:{};this.o=g(a.condition)?a.condition:Om;this.g=g(a.addCondition)?a.addCondition:hf;this.H=g(a.removeCondition)?a.removeCondition:hf;this.L=g(a.toggleCondition)?a.toggleCondition:Rj;this.i=g(a.multi)?a.multi:!1;this.e=g(a.filter)?a.filter:Le;if(g(a.layers))if(x(a.layers))var b=
a.layers;else{var c=a.layers;b=function(d){return Nc(c,d)}}else b=Le;this.f=b;this.a=new Ld({style:g(a.style)?a.style:Zw()});a=this.a.b;ma(a,"add",this.n,!1,this);ma(a,"remove",this.J,!1,this)}function Ys(a){if(!this.o(a))return!0;var b=this.g(a),c=this.H(a),d=this.L(a),e=a.map,f=this.a.b,h=[],m=[],q=!1;if(b||c||d){e.Ne(a.pixel,function(w,F){-1==Nb(f.a,w)?(b||d)&&this.e(w,F)&&m.push(w):(c||d)&&h.push(w)},this,this.f);for(e=h.length-1;0<=e;--e)f.remove(h[e]);f.af(m);if(0<m.length||0<h.length)q=!0}else e.Ne(a.pixel,
function(w,F){if(this.e(w,F))return m.push(w),!this.i},this,this.f),0<m.length&&1==f.Ib()&&f.item(0)==m[0]||(q=!0,0!==f.Ib()&&(h=Array.prototype.concat(f.a),f.clear()),f.af(m));q&&this.dispatchEvent(new ij("select",m,h));return Sp(a)}function Zw(){var a=hn();Tb(a.Polygon,a.LineString);Tb(a.GeometryCollection,a.LineString);return function(b){return a[b.Q().M()]}}function Ec(a){Db.call(this,{handleEvent:$w,handleDownEvent:Le,handleUpEvent:ax});a=g(a)?a:{};this.i=g(a.source)?a.source:null;this.g=g(a.features)?
a.features:null;this.X=[];this.p={};this.H={};this.N={};this.n={};this.L=null;this.f=g(a.pixelTolerance)?a.pixelTolerance:10;this.ba=J(bx,this);this.a=new fk;this.T={Point:this.Il,LineString:this.Gg,LinearRing:this.Gg,Polygon:this.Jl,MultiPoint:this.Gl,MultiLineString:this.Fl,MultiPolygon:this.Hl,GeometryCollection:this.El}}function $w(a){var b=a.pixel,c=a.coordinate;var d=a.map;var e=d.ka([b[0]-this.f,b[1]+this.f]);var f=d.ka([b[0]+this.f,b[1]-this.f]);e=ne([e,f]);var h=gk(this.a,e);e=!1;var m=null;
f=null;0<h.length&&(this.L=c,h.sort(this.ba),h=h[0].aa,m=ki(c,h),f=d.ta(m),Math.sqrt(tf(b,f))<=this.f&&(e=!0,b=d.ta(h[0]),c=d.ta(h[1]),b=tf(f,b),c=tf(f,c),Math.sqrt(Math.min(b,c))<=this.f))&&(m=b>c?h[1]:h[0],f=d.ta(m),f=[Math.round(f[0]),Math.round(f[1])]);e&&(a.coordinate=m.slice(0,2),a.pixel=f);return Sj.call(this,a)}function ax(){var a=Vd(this.n);a.length&&(Oa(a,this.Jh,this),this.n={});return!1}function bx(a,b){return li(this.L,a.aa)-li(this.L,b.aa)}function Ba(a){a=g(a)?a:{};var b=Gd(a);delete b.gradient;
delete b.radius;delete b.blur;delete b.shadow;delete b.weight;Ga.call(this,b);this.d=null;this.L=g(a.shadow)?a.shadow:250;this.p=void 0;this.l=null;ma(this,Uc("gradient"),this.Pj,!1,this);this.yh(g(a.gradient)?a.gradient:cx);this.th(g(a.blur)?a.blur:15);this.Ig(g(a.radius)?a.radius:8);ma(this,[Uc("blur"),Uc("radius")],this.hg,!1,this);this.hg();var c=g(a.weight)?a.weight:"weight",d;E(c)?d=function(e){return e.get(c)}:d=c;this.e(J(function(e){e=d(e);e=g(e)?Hd(e,0,1):1;var f=255*e|0,h=this.l[f];g(h)||
(h=[new qd({image:new ld({opacity:e,src:this.p})})],this.l[f]=h);return h},this));this.set("renderOrder",null);ma(this,"render",this.hk,!1,this)}function dx(a,b){var c=b||{};b=c.document||document;var d=Kd("SCRIPT"),e={sh:d,oc:void 0},f=new sh(ex,e),h=null,m=null!=c.timeout?c.timeout:5E3;0<m&&(h=window.setTimeout(function(){Ol(d,!0);var q=new Ho(fx,"Timeout reached for loading script "+a);fj(f);di(f,!1,q)},m),e.oc=h);d.onload=d.onreadystatechange=function(){d.readyState&&"loaded"!=d.readyState&&"complete"!=
d.readyState||(Ol(d,c.Bi||!1,h),fj(f),di(f,!0,null))};d.onerror=function(){Ol(d,!0,h);var q=new Ho(gx,"Error while loading script "+a);fj(f);di(f,!1,q)};kg(d,{type:"text/javascript",charset:"UTF-8",src:a});hx(b).appendChild(d);return f}function hx(a){var b=a.getElementsByTagName("HEAD");return b&&0!=b.length?b[0]:a.documentElement}function ex(){if(this&&this.sh){var a=this.sh;a&&"SCRIPT"==a.tagName&&Ol(a,!0,this.oc)}}function Ol(a,b,c){null!=c&&gb.clearTimeout(c);a.onload=A;a.onerror=A;a.onreadystatechange=
A;b&&window.setTimeout(function(){T(a)},0)}function Ho(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ka.call(this,c);this.code=a}function jj(a,b){this.a=new Ig(a);this.b=b?b:"callback";this.oc=5E3}function ix(a,b,c){return function(){Io(a,!1);c&&c(b)}}function jx(a,b){return function(c){Io(a,!0);b.apply(void 0,arguments)}}function Io(a,b){gb._callbacks_[a]&&(b?delete gb._callbacks_[a]:gb._callbacks_[a]=A)}function kx(a){var b=/\{z\}/g,c=/\{x\}/g,d=/\{y\}/g,e=/\{-y\}/g;return function(f){return null===
f?void 0:a.replace(b,f[0].toString()).replace(c,f[1].toString()).replace(d,f[2].toString()).replace(e,function(){return((1<<f[0])-f[2]-1).toString()})}}function kj(a){return Jo(Jc(a,kx))}function Jo(a){return 1===a.length?a[0]:function(b,c,d){return null===b?void 0:a[Gf((b[1]<<b[0])+b[2],a.length)](b,c,d)}}function vk(){}function lj(a,b){var c=[0,0,0];return function(d,e,f){return null===d?void 0:b(a(d,f,c),e,f)}}function fi(a){var b=[],c=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(c){var d=
c[2].charCodeAt(0),e;for(e=c[1].charCodeAt(0);e<=d;++e)b.push(a.replace(c[0],String.fromCharCode(e)))}else b.push(a);return b}function ib(a){Yb.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:g(a.state)?a.state:void 0,tileGrid:a.tileGrid,tilePixelRatio:a.tilePixelRatio,wrapX:a.wrapX});this.tileUrlFunction=g(a.tileUrlFunction)?a.tileUrlFunction:vk;this.crossOrigin=g(a.crossOrigin)?a.crossOrigin:null;this.tileLoadFunction=g(a.tileLoadFunction)?
a.tileLoadFunction:lx;this.tileClass=g(a.tileClass)?a.tileClass:ug}function lx(a,b){a.Ma().src=b}function Ad(a){var b=g(a.extent)?a.extent:kq,c;g(a.tileSize)&&(c=Xd(a.tileSize));c=np(b,a.maxZoom,c);yd.call(this,{minZoom:a.minZoom,origin:G(b,"top-left"),resolutions:c,tileSize:a.tileSize})}function Qb(a){ib.call(this,{crossOrigin:"anonymous",opaque:!0,projection:Ka("EPSG:3857"),state:"loading",tileLoadFunction:a.tileLoadFunction,wrapX:g(a.wrapX)?a.wrapX:!0});this.g=g(a.culture)?a.culture:"en-us";this.e=
g(a.maxZoom)?a.maxZoom:-1;var b=new Ig("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.imagerySet);(new jj(b,"jsonp")).send({include:"ImageryProviders",uriScheme:"https",key:a.key},J(this.i,this))}function ab(a){bb.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.p=void 0;this.T=g(a.distance)?a.distance:20;this.n=[];this.l=a.source;this.l.r("change",ab.prototype.ba,this)}function Zs(a){if(g(a.p)){a.n.length=0;for(var b=Yd(),c=a.T*a.p,d=a.l.Dc(),
e={},f=0,h=d.length;f<h;f++){var m=d[f];ag(e,C(m).toString())||(m=m.Q().K(),oi(m,b),yf(b,c,b),m=a.l.Se(b),m=ke(m,function(q){q=C(q).toString();return q in e?!1:e[q]=!0}),a.n.push(mx(m)))}}}function mx(a){for(var b=a.length,c=[0,0],d=0;d<b;d++){var e=a[d].Q().K();Xg(c,e)}b=1/b;c[0]*=b;c[1]*=b;c=new Wa(new Ta(c));c.set("features",a);return c}function $b(a){Zb.call(this,{projection:a.projection,resolutions:a.resolutions});this.T=g(a.crossOrigin)?a.crossOrigin:null;this.g=g(a.displayDpi)?a.displayDpi:
96;this.e=g(a.params)?a.params:{};var b;g(a.url)?b=Kw(a.url,this.e,J(this.Ul,this)):b=Lw;this.J=b;this.a=g(a.imageLoadFunction)?a.imageLoadFunction:xn;this.X=g(a.hidpi)?a.hidpi:!0;this.N=g(a.metersPerUnit)?a.metersPerUnit:1;this.n=g(a.ratio)?a.ratio:1;this.ba=g(a.useOverlay)?a.useOverlay:!1;this.c=null;this.p=0}function Ic(a){var b=g(a.attributions)?a.attributions:null,c=a.imageExtent,d,e;g(a.imageSize)&&(d=R(c)/a.imageSize[1],e=[d]);var f=g(a.crossOrigin)?a.crossOrigin:null,h=g(a.imageLoadFunction)?
a.imageLoadFunction:xn;Zb.call(this,{attributions:b,logo:a.logo,projection:Ka(a.projection),resolutions:e});this.a=new tg(c,d,1,b,a.url,f,h);ma(this.a,"change",this.i,!1,this)}function Eb(a){a=g(a)?a:{};Zb.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.X=g(a.crossOrigin)?a.crossOrigin:null;this.e=a.url;this.n=g(a.imageLoadFunction)?a.imageLoadFunction:xn;this.c=a.params;this.g=!0;$s(this);this.T=a.serverType;this.ba=g(a.hidpi)?a.hidpi:!0;
this.a=null;this.p=[0,0];this.N=0;this.J=g(a.ratio)?a.ratio:1.5}function at(a,b,c,d,e,f){f[a.g?"CRS":"SRS"]=e.b;"STYLES"in a.c||(f.STYLES=new String(""));if(1!=d)switch(a.T){case "geoserver":d=90*d+.5|0;f.FORMAT_OPTIONS=g(f.FORMAT_OPTIONS)?f.FORMAT_OPTIONS+(";dpi:"+d):"dpi:"+d;break;case "mapserver":f.MAP_RESOLUTION=90*d;break;case "carmentaserver":case "qgis":f.DPI=90*d}f.WIDTH=c[0];f.HEIGHT=c[1];c=e.d;var h;a.g&&"ne"==c.substr(0,2)?h=[b[1],b[0],b[3],b[2]]:h=b;f.BBOX=h.join(",");return Ti(Ui([a.e],
f))}function $s(a){a.g=0<=Mb(qc(a.c,"VERSION","1.3.0"),"1.3")}function rb(a){var b=g(a.projection)?a.projection:"EPSG:3857",c=new Ad({extent:zi(b),maxZoom:a.maxZoom,tileSize:a.tileSize});ib.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,projection:b,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:vk,wrapX:g(a.wrapX)?a.wrapX:!0});this.l=c.yb();g(a.tileUrlFunction)?this.pa(a.tileUrlFunction):g(a.urls)?this.pa(kj(a.urls)):g(a.url)&&
this.e(a.url)}function Kb(a){a=g(a)?a:{};var b;g(a.attributions)?b=a.attributions:b=[wk];rb.call(this,{attributions:b,crossOrigin:g(a.crossOrigin)?a.crossOrigin:"anonymous",opaque:!0,maxZoom:g(a.maxZoom)?a.maxZoom:19,tileLoadFunction:a.tileLoadFunction,url:g(a.url)?a.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:a.wrapX})}function Fb(a){a=g(a)?a:{};var b=nx[a.layer];this.g=a.layer;rb.call(this,{attributions:b.attributions,crossOrigin:"anonymous",logo:"https://developer.mapquest.com/content/osm/mq_logo.png",
maxZoom:b.maxZoom,opaque:!0,tileLoadFunction:a.tileLoadFunction,url:g(a.url)?a.url:"https://otile{1-4}-s.mqcdn.com/tiles/1.0.0/"+this.g+"/{z}/{x}/{y}.jpg"})}function Lb(a){var b=a.layer.indexOf("-"),c=ox[a.layer];rb.call(this,{attributions:px,crossOrigin:"anonymous",maxZoom:qx[-1==b?a.layer:a.layer.slice(0,b)].maxZoom,opaque:c.opaque,tileLoadFunction:a.tileLoadFunction,url:g(a.url)?a.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+a.layer+"/{z}/{x}/{y}."+c.Ta})}function nb(a){a=g(a)?a:{};var b=
g(a.params)?a.params:{};ib.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:J(this.lm,this),wrapX:g(a.wrapX)?a.wrapX:!0});var c=a.urls;!g(c)&&g(a.url)&&(c=fi(a.url));this.g=null!=c?c:[];this.e=b;this.i=Yd()}function Ko(a,b){Uf.call(this,a,2);this.c=Xd(b.na(a[0]));this.a={}}function yc(a){Yb.call(this,{opaque:!1,projection:a.projection,tileGrid:a.tileGrid})}function Rb(a){ib.call(this,{attributions:a.attributions,
crossOrigin:a.crossOrigin,projection:Ka("EPSG:3857"),state:"loading",tileLoadFunction:a.tileLoadFunction,wrapX:g(a.wrapX)?a.wrapX:!0});(new jj(a.url)).send(void 0,J(this.e,this))}function hc(a){Yb.call(this,{projection:Ka("EPSG:3857"),state:"loading"});this.i=g(a.preemptive)?a.preemptive:!0;this.e=vk;this.g=void 0;(new jj(a.url)).send(void 0,J(this.om,this))}function Lo(a,b,c,d,e){Uf.call(this,a,b);this.g=c;this.a=d;this.i=e;this.d=this.e=this.c=null}function Mo(a,b){if(null===a.c||null===a.e||null==
a.d)return null;var c=a.c[Math.floor((1-(b[1]-a.a[1])/(a.a[3]-a.a[1]))*a.c.length)];if(!E(c))return null;c=c.charCodeAt(Math.floor((b[0]-a.a[0])/(a.a[2]-a.a[0])*c.length));93<=c&&c--;35<=c&&c--;c=a.e[c-32];return null!=c?a.d[c]:null}function rx(a,b,c,d,e){0==a.state&&!0===e?(If(a,"change",function(){c.call(d,Mo(this,b))},!1,a),bt(a)):!0===e?Yk(function(){c.call(d,Mo(this,b))},a):c.call(d,Mo(a,b))}function bt(a){0==a.state&&(a.state=1,(new jj(a.g)).send(void 0,J(a.Xj,a),J(a.Lj,a)))}function Sb(a){bb.call(this,
{attributions:a.attributions,logo:a.logo,projection:void 0,state:"ready"});this.T=a.format;this.n=a.tileGrid;this.p=vk;this.X=this.n.yb();this.l={};g(a.tileUrlFunction)?(this.p=a.tileUrlFunction,this.k()):g(a.urls)?(this.p=kj(a.urls),this.k()):g(a.url)&&(this.p=kj(fi(a.url)),this.k())}function sx(a,b,c,d){var e=a.l;a=a.n.Wb(b,c);e=e[a[0]+"/"+a[1]+"/"+a[2]];if(g(e))for(a=0,c=e.length;a<c;++a){var f=e[a];if(f.Q().Jb(b[0],b[1])&&d.call(void 0,f))break}}function jb(a){a=g(a)?a:{};var b=g(a.params)?a.params:
{};ib.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,opaque:!qc(b,"TRANSPARENT",!0),projection:a.projection,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:J(this.tm,this),wrapX:a.wrapX});var c=a.urls;!g(c)&&g(a.url)&&(c=fi(a.url));this.g=null!=c?c:[];this.l=g(a.gutter)?a.gutter:0;this.e=b;this.i=!0;this.n=a.serverType;this.J=g(a.hidpi)?a.hidpi:!0;this.p="";No(this);this.N=Yd();ct(this)}function dt(a,b,c,d,e,f,h){var m=a.g;if(0!=m.length){h.WIDTH=
c[0];h.HEIGHT=c[1];h[a.i?"CRS":"SRS"]=f.b;"STYLES"in a.e||(h.STYLES=new String(""));if(1!=e)switch(a.n){case "geoserver":c=90*e+.5|0;h.FORMAT_OPTIONS=g(h.FORMAT_OPTIONS)?h.FORMAT_OPTIONS+(";dpi:"+c):"dpi:"+c;break;case "mapserver":h.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":h.DPI=90*e}f=f.d;a.i&&"ne"==f.substr(0,2)&&(a=d[0],d[0]=d[1],d[1]=a,a=d[2],d[2]=d[3],d[3]=a);h.BBOX=d.join(",");return Ti(Ui([1==m.length?m[0]:m[Gf((b[1]<<b[0])+b[2],m.length)]],h))}}function No(a){var b=0,c=
[],d;var e=0;for(d=a.g.length;e<d;++e)c[b++]=a.g[e];for(var f in a.e)c[b++]=f+"-"+a.e[f];a.p=c.join("#")}function ct(a){a.i=0<=Mb(qc(a.e,"VERSION","1.3.0"),"1.3")}function Td(a){this.e=a.matrixIds;yd.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes,widths:a.widths})}function et(a){var b=[],c=[],d=[],e=[],f=[];var h=Ka(a.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var m=h.Gd(),q="ne"==h.d.substr(0,2);Bd(a.TileMatrix,
function(w,F){return F.ScaleDenominator-w.ScaleDenominator});Oa(a.TileMatrix,function(w){c.push(w.Identifier);q?d.push([w.TopLeftCorner[1],w.TopLeftCorner[0]]):d.push(w.TopLeftCorner);b.push(2.8E-4*w.ScaleDenominator/m);var F=w.TileWidth,M=w.TileHeight;e.push(F==M?F:[F,M]);f.push(w.MatrixWidth)});return new Td({origins:d,resolutions:b,matrixIds:c,tileSizes:e,widths:f})}function eb(a){function b(q){q="KVP"==d?Ti(Ui([q],f)):q.replace(/\{(\w+?)\}/g,function(w,F){return F.toLowerCase()in f?f[F.toLowerCase()]:
w});return function(w){if(null!==w){var F={TileMatrix:e.e[w[0]],TileCol:w[1],TileRow:w[2]};vd(F,h);w=q;return w="KVP"==d?Ti(Ui([w],F)):w.replace(/\{(\w+?)\}/g,function(M,S){return F[S]})}}}this.N=g(a.version)?a.version:"1.0.0";this.n=g(a.format)?a.format:"image/jpeg";this.e=g(a.dimensions)?a.dimensions:{};this.l="";ft(this);this.p=a.layer;this.i=a.matrixSet;this.J=a.style;var c=a.urls;!g(c)&&g(a.url)&&(c=fi(a.url));this.g=null!=c?c:[];var d=this.T=g(a.requestEncoding)?a.requestEncoding:"KVP",e=a.tileGrid,
f={layer:this.p,style:this.J,tilematrixset:this.i};"KVP"==d&&vd(f,{Service:"WMTS",Request:"GetTile",Version:this.N,Format:this.n});var h=this.e;c=0<this.g.length?Jo(Jc(this.g,b)):vk;var m=Yd();c=lj(function(q,w,F){if(e.b.length<=q[0])return null;var M=q[1],S=-q[2]-1,Y=Bf(e,q,m);w=w.G();return!sa(Y,w)||sa(Y,w)&&(Y[0]==w[2]||Y[2]==w[0]||Y[1]==w[3]||Y[3]==w[1])?null:ri(q[0],M,S,F)},c);ib.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,projection:a.projection,tileClass:a.tileClass,
tileGrid:e,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:c,wrapX:g(a.wrapX)?a.wrapX:!1})}function ft(a){var b=0,c=[],d;for(d in a.e)c[b++]=d+"-"+a.e[d];a.l=c.join("/")}function je(a){var b=g(a)?a:b;yd.call(this,{origin:[0,0],resolutions:b.resolutions})}function Vb(a){a=g(a)?a:{};var b=a.size,c=b[0],d=b[1],e=[],f=256;switch(g(a.tierSizeCalculation)?a.tierSizeCalculation:"default"){case "default":for(;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),f+=f;break;
case "truncated":for(;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),c>>=1,d>>=1}e.push([1,1]);e.reverse();f=[1];var h=[0];d=1;for(c=e.length;d<c;d++)f.push(1<<d),h.push(e[d-1][0]*e[d-1][1]+h[d-1]);f.reverse();f=new je({resolutions:f});var m=a.url;b=lj(f.yb({extent:[0,0,b[0],b[1]]}),function(q){if(null!==q){var w=q[0],F=q[1];q=q[2];return m+"TileGroup"+((F+q*e[w][0]+h[w])/256|0)+"/"+w+"-"+F+"-"+q+".jpg"}});ib.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,tileClass:Pl,
tileGrid:f,tileUrlFunction:b})}function Pl(a,b,c,d,e){ug.call(this,a,b,c,d,e);this.d={}}function gt(a){a=g(a)?a:{};this.a=g(a.initialSize)?a.initialSize:256;this.c=g(a.maxSize)?a.maxSize:g(ht)?ht:2048;this.b=g(a.space)?a.space:1;this.e=[new xk(this.a,this.b)];this.d=this.a;this.f=[new xk(this.d,this.b)]}function it(a,b,c,d,e,f,h){var m=b?a.f:a.e,q;var w=0;for(q=m.length;w<q;++w){var F=m[w];F=F.add(c,d,e,f,h);if(null!==F)return F;null===F&&w===q-1&&(b?(F=Math.min(2*a.d,a.c),a.d=F):(F=Math.min(2*a.a,
a.c),a.a=F),F=new xk(F,a.b),m.push(F),++q)}}function xk(a,b){this.b=b;this.a=[{x:0,y:0,width:a,height:a}];this.d={};this.c=Kd("CANVAS");this.c.width=a;this.c.height=a;this.e=this.c.getContext("2d")}function jt(a,b,c,d){b=[b,1];0<c.width&&0<c.height&&b.push(c);0<d.width&&0<d.height&&b.push(d);a.a.splice.apply(a.a,b)}function zc(a){this.o=this.d=this.e=null;this.i=g(a.fill)?a.fill:null;this.J=[0,0];this.b=a.points;this.c=g(a.radius)?a.radius:a.radius1;this.f=g(a.radius2)?a.radius2:this.c;this.g=g(a.angle)?
a.angle:0;this.a=g(a.stroke)?a.stroke:null;this.H=this.L=this.p=null;var b=a.atlasManager,c="",d="",e=0,f=null,h,m=0;null!==this.a&&(h=pd(this.a.b),m=this.a.a,g(m)||(m=1),f=this.a.c,Ni||(f=null),d=this.a.e,g(d)||(d="round"),c=this.a.d,g(c)||(c="round"),e=this.a.f,g(e)||(e=10));var q=2*(this.c+m)+1;c={strokeStyle:h,md:m,size:q,lineCap:c,lineDash:f,lineJoin:d,miterLimit:e};if(g(b)){q=Math.round(q);d=null===this.i;var w;d&&(w=J(this.Tg,this,c));e=this.nb();w=b.add(e,q,q,J(this.Ug,this,c),w);this.d=w.image;
this.J=[w.offsetX,w.offsetY];b=w.image.width;this.o=d?w.ig:this.d}else this.d=Kd("CANVAS"),this.d.height=q,this.d.width=q,b=q=this.d.width,w=this.d.getContext("2d"),this.Ug(c,w,0,0),null===this.i?(w=this.o=Kd("CANVAS"),w.height=c.size,w.width=c.size,w=w.getContext("2d"),this.Tg(c,w,0,0)):this.o=this.d;this.p=[q/2,q/2];this.L=[q,q];this.H=[b,b];Rd.call(this,{opacity:1,rotateWithView:!1,rotation:g(a.rotation)?a.rotation:0,scale:1,snapToPixel:g(a.snapToPixel)?a.snapToPixel:!0})}var ba={},Bn=Bn||{},gb=
this,Uo="closure_uid_"+(1E9*Math.random()>>>0),Nt=0,Lf=Date.now||function(){return+new Date};I(ka,Error);ka.prototype.name="CustomError";var au,vg=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Pt=/&/g,Qt=/</g,Rt=/>/g,St=/"/g,Tt=/'/g,Ut=/\x00/g,Ot=/[\x00&<>"']/,of=Array.prototype;a:{var kt=gb.navigator;if(kt){var lt=kt.userAgent;if(lt){var nj=lt;break a}}nj=""}var Vo="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),
Oo=Pa("Opera")||Pa("OPR"),jc=Pa("Trident")||Pa("MSIE"),sf=Pa("Gecko")&&-1==nj.toLowerCase().indexOf("webkit")&&!(Pa("Trident")||Pa("MSIE")),Wd=-1!=nj.toLowerCase().indexOf("webkit"),wg=Pa("Macintosh"),tx=Pa("Windows"),mu=Pa("Linux")||Pa("CrOS"),Tl=function(){var a="",b;if(Oo&&gb.opera)return a=gb.opera.version,x(a)?a():a;sf?b=/rv:([^\);]+)(\)|;)/:jc?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:Wd&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(nj))?a[1]:"");return jc&&(b=xh(),b>parseFloat(a))?String(b):a}(),Wo={},mt=
gb.document,wi=mt&&jc?xh()||("CSS1Compat"==mt.compatMode?parseInt(Tl,10):5):void 0,pu=jc&&!Cd("9.0")&&""!==Tl,Vt=!jc||jc&&9<=wi,ap=!jc||jc&&9<=wi,ux=jc&&!Cd("9");!Wd||Cd("528");sf&&Cd("1.9b")||jc&&Cd("8")||Oo&&Cd("9.5")||Wd&&Cd("528");sf&&!Cd("8")||jc&&Cd("9");var Xo=0,Yo={};Re.prototype.U=!1;Re.prototype.Yc=function(){if(!this.U&&(this.U=!0,this.O(),0!=Xo)){var a=C(this);delete Yo[a]}};Re.prototype.O=function(){if(this.V)for(;this.V.length;)this.V.shift()()};tc.prototype.fb=function(){this.f=!0};
tc.prototype.preventDefault=function(){this.rh=!1};var Lh=jc?"focusout":"DOMFocusOut";qj[" "]=A;I(Se,tc);var Wt=[1,4,2];var l=Se.prototype;l.fb=function(){Se.S.fb.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0};l.preventDefault=function(){Se.S.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,ux)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};l.Qi=function(){return this.b};l.Zf=function(){return Wd||
void 0!==this.b.offsetX?this.b.offsetX:this.b.layerX};l.bo=function(a){Object.defineProperties(this,{offsetX:{writable:!0,enumerable:!0,configurable:!0,value:a}})};l.$f=function(){return Wd||void 0!==this.b.offsetY?this.b.offsetY:this.b.layerY};l.co=function(a){Object.defineProperties(this,{offsetY:{writable:!0,enumerable:!0,configurable:!0,value:a}})};var Zo="closure_listenable_"+(1E6*Math.random()|0),Xt=0;ee.prototype.add=function(a,b,c,d,e){var f=a.toString();(a=this.b[f])||(a=this.b[f]=[],this.a++);
var h=xg(a,b,d,e);-1<h?(b=a[h],c||(b.vd=!1)):(b=new zh(b,this.src,f,!!d,e),b.vd=c,a.push(b));return b};ee.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.b))return!1;var e=this.b[a];b=xg(e,b,c,d);return-1<b?(pb(e[b]),of.splice.call(e,b,1),0==e.length&&(delete this.b[a],this.a--),!0):!1};var Vl="closure_lm_"+(1E6*Math.random()|0),Wl={},$o=0,Xl="__closure_events_fn_"+(1E9*Math.random()>>>0);I(Tc,Re);Tc.prototype[Zo]=!0;l=Tc.prototype;l.addEventListener=function(a,b,c,d){ma(this,a,b,
c,d)};l.removeEventListener=function(a,b,c,d){Ge(this,a,b,c,d)};l.dispatchEvent=function(a){var b,c=this.sa;if(c)for(b=[];c;c=c.sa)b.push(c);c=this.rc;var d=a.type||a;if(E(a))a=new tc(a,c);else if(a instanceof tc)a.target=a.target||c;else{var e=a;a=new tc(d,c);vd(a,e)}e=!0;if(b)for(var f=b.length-1;!a.f&&0<=f;f--){var h=a.c=b[f];e=ji(h,d,!0,a)&&e}a.f||(h=a.c=c,e=ji(h,d,!0,a)&&e,a.f||(e=ji(h,d,!1,a)&&e));if(b)for(f=0;!a.f&&f<b.length;f++)h=a.c=b[f],e=ji(h,d,!1,a)&&e;return e};l.O=function(){Tc.S.O.call(this);
if(this.ab){var a=this.ab,b=0,c;for(c in a.b){for(var d=a.b[c],e=0;e<d.length;e++)++b,pb(d[e]);delete a.b[c];a.a--}}this.sa=null};l.Ka=function(a,b,c,d){return this.ab.add(String(a),b,!1,c,d)};l.wf=function(a,b,c,d){return this.ab.remove(String(a),b,c,d)};I(Id,Tc);l=Id.prototype;l.k=function(){++this.b;this.dispatchEvent("change")};l.v=function(){return this.b};l.r=function(a,b,c){return ma(this,a,b,!1,c)};l.A=function(a,b,c){return If(this,a,b,!1,c)};l.u=function(a,b,c){Ge(this,a,b,!1,c)};l.B=Wg;
I(gg,tc);I(ub,Id);var Yl={};l=ub.prototype;l.get=function(a){var b;this.q.hasOwnProperty(a)&&(b=this.q[a]);return b};l.C=function(){return Fd(this.q)};l.D=function(){var a={},b;for(b in this.q)a[b]=this.q[b];return a};l.set=function(a,b){var c=this.q[a];this.q[a]=b;xj(this,a,c)};l.t=function(a){for(var b in a)this.set(b,a[b])};l.I=function(a){if(a in this.q){var b=this.q[a];delete this.q[a];xj(this,a,b)}};uf.prototype.b=4;uf.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+
c]=a[c]};uf.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(uf.BYTES_PER_ELEMENT=4,uf.prototype.BYTES_PER_ELEMENT=uf.prototype.b,uf.prototype.set=uf.prototype.set,uf.prototype.toString=uf.prototype.toString,p("Float32Array",uf,void 0));vf.prototype.b=8;vf.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};vf.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{vf.BYTES_PER_ELEMENT=8}catch(a){}vf.prototype.BYTES_PER_ELEMENT=
vf.prototype.b;vf.prototype.set=vf.prototype.set;vf.prototype.toString=vf.prototype.toString;p("Float64Array",vf,void 0)}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);nd.prototype.a=function(a){for(var b=0,c=a.length,d=a[c-1][0],e=a[c-1][1],f=0;f<c;f++){var h=a[f][0],m=a[f][1];b+=me(h-d)*(2+Math.sin(me(e))+Math.sin(me(m)));d=h;e=m}return b*this.radius*this.radius/2};nd.prototype.b=function(a,b){var c=me(a[1]),d=me(b[1]),e=
(d-c)/2;a=me(b[0]-a[0])/2;c=Math.sin(e)*Math.sin(e)+Math.sin(a)*Math.sin(a)*Math.cos(c)*Math.cos(d);return 2*this.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};nd.prototype.offset=function(a,b,c){var d=me(a[1]);b/=this.radius;var e=Math.asin(Math.sin(d)*Math.cos(b)+Math.cos(d)*Math.sin(b)*Math.cos(c));return[180*(me(a[0])+Math.atan2(Math.sin(c)*Math.sin(b)*Math.cos(d),Math.cos(b)-Math.sin(d)*Math.sin(e)))/Math.PI,180*e/Math.PI]};var lk=new nd(6370997),Rf={};Rf.degrees=2*Math.PI*lk.radius/360;Rf.ft=
.3048;Rf.m=1;Rf["us-ft"]=1200/3937;l=Cb.prototype;l.Ri=function(){return this.b};l.G=function(){return this.f};l.Ll=function(){return this.a};l.Gd=function(){return Rf[this.a]};l.Cj=function(){return this.g};l.Ml=function(){return this.e};l.Yn=function(a){this.c=(this.e=a)&&null!==this.f};l.Nl=function(a){this.f=a;this.c=this.e&&null!==a};l.lo=function(a){this.g=a};l.Xn=function(a){this.q=a};l.rj=function(a,b){if("degrees"==this.a)return a;var c=Qd(this,Ka("EPSG:4326"));a=[b[0]-a/2,b[1],b[0]+a/2,
b[1],b[0],b[1]-a/2,b[0],b[1]+a/2];a=c(a,a,2);c=(lk.b(a.slice(0,2),a.slice(2,4))+lk.b(a.slice(4,6),a.slice(6,8)))/2;a=this.Gd();g(a)&&(c/=a);return c};l.getPointResolution=function(a,b){return this.q(a,b)};var Zl={},pi={};I(Ma,ub);l=Ma.prototype;l.xd=function(a){return this.f.center(a)};l.constrainResolution=function(a,b,c){return this.f.resolution(a,b||0,c||0)};l.constrainRotation=function(a,b){return this.f.rotation(a,b||0)};l.Ca=function(){return this.get("center")};l.Pc=function(a){var b=this.Ca(),
c=this.ya();return[b[0]-c*a[0]/2,b[1]-c*a[1]/2,b[0]+c*a[0]/2,b[1]+c*a[1]/2]};l.dl=function(){return this.e};l.ya=function(){return this.get("resolution")};l.Da=function(){return this.get("rotation")};l.Ej=function(){var a=this.ya();if(g(a)){var b=0;do{var c=this.constrainResolution(this.a,b);if(c==a){var d=b;break}++b}while(c>this.g)}return g(d)?this.d+d:d};l.Me=function(a,b){Ja(a)||(this.Na(y(a)),a=Bj(a,b),b=this.constrainResolution(a,0,0),b<a&&(b=this.constrainResolution(b,-1,0)),this.tb(b))};l.Fi=
function(a,b,c){var d=g(c)?c:{};c=g(d.padding)?d.padding:[0,0,0,0];var e=g(d.constrainResolution)?d.constrainResolution:!0,f=g(d.nearest)?d.nearest:!1,h;g(d.minResolution)?h=d.minResolution:g(d.maxZoom)?h=this.constrainResolution(this.a,d.maxZoom-this.d,0):h=0;var m=a.j,q=this.Da();d=Math.cos(-q);q=Math.sin(-q);var w=Infinity,F=Infinity,M=-Infinity,S=-Infinity;a=a.s;for(var Y=0,N=m.length;Y<N;Y+=a){var O=m[Y]*d-m[Y+1]*q,Z=m[Y]*q+m[Y+1]*d;w=Math.min(w,O);F=Math.min(F,Z);M=Math.max(M,O);S=Math.max(S,
Z)}b=Bj([w,F,M,S],[b[0]-c[1]-c[3],b[1]-c[0]-c[2]]);b=isNaN(b)?h:Math.max(b,h);e&&(h=this.constrainResolution(b,0,0),!f&&h<b&&(h=this.constrainResolution(h,-1,0)),b=h);this.tb(b);q=-q;f=(w+M)/2+(c[1]-c[3])/2*b;c=(F+S)/2+(c[0]-c[2])/2*b;this.Na([f*d-c*q,c*d+f*q])};l.Ai=function(a,b,c){var d=this.Da(),e=Math.cos(-d);d=Math.sin(-d);var f=a[0]*e-a[1]*d;a=a[1]*e+a[0]*d;var h=this.ya();f+=(b[0]/2-c[0])*h;a+=(c[1]-b[1]/2)*h;d=-d;this.Na([f*e-a*d,a*e+f*d])};l.rotate=function(a,b){if(g(b)){var c,d=this.Ca();
g(d)&&(c=[d[0]-b[0],d[1]-b[1]],Zg(c,a-this.Da()),Xg(c,b));this.Na(c)}this.be(a)};l.Na=function(a){this.set("center",a)};l.tb=function(a){this.set("resolution",a)};l.be=function(a){this.set("rotation",a)};l.no=function(a){a=this.constrainResolution(this.a,a-this.d,0);this.tb(a)};jg.prototype.contains=function(a){return Cj(this,a[1],a[2])};ff.prototype.c=function(){return this.a};I(Tf,tc);I(Sa,ub);l=Sa.prototype;l.clear=function(){for(;0<this.Ib();)this.pop()};l.af=function(a){var b;var c=0;for(b=a.length;c<
b;++c)this.push(a[c]);return this};l.forEach=function(a,b){Oa(this.a,a,b)};l.Hk=function(){return this.a};l.item=function(a){return this.a[a]};l.Ib=function(){return this.get("length")};l.Td=function(a,b){de(this.a,a,0,b);Ej(this);this.dispatchEvent(new Tf("add",b,this))};l.pop=function(){return this.tf(this.Ib()-1)};l.push=function(a){var b=this.a.length;this.Td(b,a);return b};l.remove=function(a){var b=this.a,c;var d=0;for(c=b.length;d<c;++d)if(b[d]===a)return this.tf(d)};l.tf=function(a){var b=
this.a[a];of.splice.call(this.a,a,1);Ej(this);this.dispatchEvent(new Tf("remove",b,this));return b};l.Un=function(a,b){var c=this.Ib();if(a<c)c=this.a[a],this.a[a]=b,this.dispatchEvent(new Tf("remove",c,this)),this.dispatchEvent(new Tf("add",b,this));else{for(;c<a;++c)this.Td(c,void 0);this.Td(a,b)}};var vx=/^#(?:[0-9a-f]{3}){1,2}$/i,wx=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,xx=/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,10})\)$/i,
$t=function(){var a={},b=0;return function(c){if(a.hasOwnProperty(c))var d=a[c];else{if(1024<=b){d=0;for(var e in a)0===(d++&3)&&(delete a[e],--b)}var f,h;vx.exec(c)?(h=3==c.length-1?1:2,d=parseInt(c.substr(1+0*h,h),16),e=parseInt(c.substr(1+1*h,h),16),f=parseInt(c.substr(1+2*h,h),16),1==h&&(d=(d<<4)+d,e=(e<<4)+e,f=(f<<4)+f),d=[d,e,f,1]):(h=xx.exec(c))?(d=Number(h[1]),e=Number(h[2]),f=Number(h[3]),h=Number(h[4]),d=[d,e,f,h],d=Mf(d,d)):(h=wx.exec(c))?(d=Number(h[1]),e=Number(h[2]),f=Number(h[3]),d=
[d,e,f,1],d=Mf(d,d)):d=void 0;a[c]=d;++b}return d}}(),bu=!jc||jc&&9<=wi;!sf&&!jc||jc&&jc&&9<=wi||sf&&Cd("1.9.1");jc&&Cd("9");ii("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));l=Ve.prototype;l.clone=function(){return new Ve(this.x,this.y)};l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};l.round=function(){this.x=Math.round(this.x);this.y=
Math.round(this.y);return this};l.scale=function(a,b){b=D(b)?b:a;this.x*=a;this.y*=b;return this};l=Af.prototype;l.clone=function(){return new Af(this.width,this.height)};l.la=function(){return!(this.width*this.height)};l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);
return this};l.scale=function(a,b){b=D(b)?b:a;this.width*=a;this.height*=b;return this};var dp={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};xa.prototype.appendChild=function(a,b){a.appendChild(b)};xa.prototype.contains=za;l=re.prototype;l.clone=function(){return new re(this.top,this.right,this.bottom,this.left)};l.contains=
function(a){return this&&a?a instanceof re?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};l.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};l.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);
return this};l.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};l.scale=function(a,b){b=D(b)?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};l=kd.prototype;l.clone=function(){return new kd(this.left,this.top,this.width,this.height)};l.contains=function(a){return a instanceof kd?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=
a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};l.distance=function(a){var b=Math,c=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return b.sqrt.call(b,c*c+a*a)};l.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.left=Math.floor(this.left);
this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};l.scale=function(a,b){b=D(b)?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var fp={thin:2,medium:4,thick:6};I(Bg,tc);I(qb,ub);qb.prototype.O=function(){T(this.element);qb.S.O.call(this)};qb.prototype.e=
function(){return this.a};qb.prototype.setMap=function(a){null===this.a||T(this.element);0!=this.l.length&&(Oa(this.l,Hb),this.l.length=0);this.a=a;null!==this.a&&((null===this.L?a.p:this.L).appendChild(this.element),this.render!==A&&this.l.push(ma(a,"postrender",this.render,!1,this)),a.render())};qb.prototype.c=function(a){this.L=Hj(a)};l=Uk.prototype;l.clear=function(){this.c=0;this.d={};this.a=this.b=null};l.forEach=function(a,b){for(var c=this.b;null!==c;)a.call(b,c.qc,c.Wd,this),c=c.Wa};l.get=
function(a){a=this.d[a];if(a===this.a)return a.qc;a===this.b?(this.b=this.b.Wa,this.b.Nb=null):(a.Wa.Nb=a.Nb,a.Nb.Wa=a.Wa);a.Wa=null;a.Nb=this.a;this.a=this.a.Wa=a;return a.qc};l.Tb=function(){return this.c};l.C=function(){var a=Array(this.c),b=0,c;for(c=this.a;null!==c;c=c.Nb)a[b++]=c.Wd;return a};l.cb=function(){var a=Array(this.c),b=0,c;for(c=this.a;null!==c;c=c.Nb)a[b++]=c.qc;return a};l.pop=function(){var a=this.b;delete this.d[a.Wd];null!==a.Wa&&(a.Wa.Nb=null);this.b=a.Wa;null===this.b&&(this.a=
null);--this.c;return a.qc};l.set=function(a,b){b={Wd:a,Wa:null,Nb:this.a,qc:b};null===this.a?this.b=b:this.a.Wa=b;this.a=b;this.d[a]=b;++this.c};I(hp,Uk);I(Uf,Tc);Uf.prototype.gb=function(){return C(this).toString()};Uf.prototype.f=function(){return this.b};I(fc,ub);l=fc.prototype;l.ge=A;l.ea=function(){return this.d};l.ca=function(){return this.L};l.fa=function(){return this.f};l.ga=function(){return this.o};var hf=Kj(!1),Le=Kj(!0),yx=Kj(null),yi=[0,0,0];l=yd.prototype;l.yb=function(){return dm};
l.Ad=function(a,b,c,d,e){e=Bf(this,a,e);for(a=a[0]-1;a>=this.minZoom;){if(b.call(c,a,Xe(this,e,a,d)))return!0;--a}return!1};l.Fd=function(){return this.maxZoom};l.Hd=function(){return this.minZoom};l.Mb=function(a){return null===this.f?this.i[a]:this.f};l.ma=function(a){return this.b[a]};l.ne=function(){return this.b};l.Ld=function(a,b,c){return a[0]<this.maxZoom?(c=Bf(this,a,c),Xe(this,c,a[0]+1,b)):null};l.Wb=function(a,b,c){return Wk(this,a[0],a[1],b,!1,c)};l.cd=function(a,b,c){return Wk(this,a[0],
a[1],this.ma(b),!1,c)};l.na=function(a){return null===this.g?this.c[a]:this.g};I(Yb,fc);l=Yb.prototype;l.Cd=function(){return 0};l.bb=Ih;l.ua=function(){return this.tileGrid};l.Xb=function(a,b,c){b=Cg(this,c);return Bh(Xd(b.na(a),this.c),this.ba,this.c)};l.yf=A;I(Ai,tc);I(bc,qb);l=bc.prototype;l.gl=function(a){a.preventDefault();fm(this)};l.fl=function(){return this.g};l.il=function(a){this.g!==a&&(this.g=a,yb(this.element,"ol-uncollapsible"),!a&&this.d&&fm(this))};l.hl=function(a){this.g&&this.d!==
a&&fm(this)};l.el=function(){return this.d};I(Gc,qb);Gc.prototype.o=function(a){a.preventDefault();a=this.a;var b=a.R();if(null!==b){for(var c=b.Da();c<-Math.PI;)c+=2*Math.PI;for(;c>Math.PI;)c-=2*Math.PI;g(c)&&(0<this.g&&a.Ha(qi({rotation:c,duration:this.g,easing:Sf})),b.be(0))}};I(Ac,qb);Ac.prototype.f=function(a,b){b.preventDefault();b=this.a;var c=b.R();if(null!==c){var d=c.ya();g(d)&&(0<this.d&&b.Ha(zf({resolution:d,duration:this.d,easing:Sf})),b=c.constrainResolution(d,a),c.tb(b))}};var fu=Wd?
"webkitfullscreenchange":sf?"mozfullscreenchange":jc?"MSFullscreenChange":"fullscreenchange";I(Kc,qb);Kc.prototype.n=function(a){a.preventDefault();sp()&&(a=this.a,null!==a&&(gm()?(a=Fc().b,a.webkitCancelFullScreen?a.webkitCancelFullScreen():a.mozCancelFullScreen?a.mozCancelFullScreen():a.msExitFullscreen?a.msExitFullscreen():a.exitFullscreen&&a.exitFullscreen()):(a=a.df(),a=Hj(a),this.o?a.mozRequestFullScreenWithKeys?a.mozRequestFullScreenWithKeys():a.webkitRequestFullscreen?a.webkitRequestFullscreen():
tp(a):tp(a))))};Kc.prototype.i=function(){var a=this.d+"-true",b=this.d+"-false",c=oa(this.element),d=this.a;gm()?(Pc(c,b)&&(xd(c,b),Xc(c,a)),fa(this.g,this.f)):(Pc(c,a)&&(xd(c,a),Xc(c,b)),fa(this.f,this.g));null===d||d.Kc()};I(cc,qb);l=cc.prototype;l.jl=function(){this.f=null};l.Uf=function(){return this.get("coordinateFormat")};l.xg=function(){return this.get("projection")};l.$j=function(a){this.g=this.a.Bd(a.b);hm(this,this.g)};l.ak=function(){hm(this,null);this.g=null};l.setMap=function(a){cc.S.setMap.call(this,
a);null!==a&&(a=a.a,this.l.push(ma(a,"mousemove",this.$j,!1,this),ma(a,"mouseout",this.ak,!1,this)))};l.vh=function(a){this.set("coordinateFormat",a)};l.yg=function(a){this.set("projection",a)};I(Xk,Re);l=Xk.prototype;l.$=null;l.zf=!1;l.start=function(){im(this);this.zf=!1;var a=vp(this),b=wp(this);a&&!b&&this.b.mozRequestAnimationFrame?(this.$=ma(this.b,"MozBeforePaint",this.a),this.b.mozRequestAnimationFrame(null),this.zf=!0):this.$=a&&b?a.call(this.b,this.a):this.b.setTimeout(du(this.a),20)};l.Pf=
function(){this.zf&&this.$&&Hb(this.$);this.$=null;this.d.call(this.c,Lf())};l.O=function(){im(this);Xk.S.O.call(this)};var yp,gu=dm;l=Lj.prototype;l.Tb=function(){return this.c};l.cb=function(){jm(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.a[this.b[b]]);return a};l.C=function(){jm(this);return this.b.concat()};l.la=function(){return 0==this.c};l.clear=function(){this.a={};this.c=this.b.length=0};l.remove=function(a){return Mh(this.a,a)?(delete this.a[a],this.c--,this.b.length>2*this.c&&
jm(this),!0):!1};l.get=function(a,b){return Mh(this.a,a)?this.a[a]:b};l.set=function(a,b){Mh(this.a,a)||(this.c++,this.b.push(a));this.a[a]=b};l.forEach=function(a,b){for(var c=this.C(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};l.clone=function(){return new Lj(this)};new km;km.prototype.set=function(a){this.b=a};km.prototype.get=function(){return this.b};I(Zk,Tc);l=Zk.prototype;l.Md=null;l.pd=null;l.Nd=null;l.O=function(){Zk.S.O.call(this);this.Md&&(Hb(this.Md),this.Md=null);
this.Nd=this.pd=null};l.ik=function(){var a=ui(this.pd||window),b=this.Nd;a==b||a&&b&&a.width==b.width&&a.height==b.height||(this.Nd=a,this.dispatchEvent("resize"))};I(ch,Tc);l=ch.prototype;l.Z=null;l.Ud=null;l.Ye=null;l.Vd=null;l.Ja=-1;l.Hb=-1;l.Ge=!1;var nt={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},
ot={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},zx=jc||Wd&&Cd("525"),pt=wg&&sf;ch.prototype.b=function(a){Wd&&(17==this.Ja&&!a.i||18==this.Ja&&!a.a||wg&&91==this.Ja&&!a.l)&&(this.Hb=this.Ja=-1);-1==this.Ja&&(a.i&&17!=a.e?this.Ja=17:a.a&&18!=a.e?this.Ja=18:a.l&&91!=a.e&&(this.Ja=91));zx&&!ku(a.e,this.Ja,a.d,a.i,a.a)?this.handleEvent(a):(this.Hb=lm(a.e),pt&&
(this.Ge=a.a))};ch.prototype.a=function(a){this.Hb=this.Ja=-1;this.Ge=a.a};ch.prototype.handleEvent=function(a){var b=a.b,c,d,e=b.altKey;jc&&"keypress"==a.type?(c=this.Hb,d=13!=c&&27!=c?b.keyCode:0):Wd&&"keypress"==a.type?(c=this.Hb,d=0<=b.charCode&&63232>b.charCode&&$k(c)?b.charCode:0):Oo?(c=this.Hb,d=$k(c)?b.keyCode:0):(c=b.keyCode||this.Hb,d=b.charCode||0,pt&&(e=this.Ge),wg&&63==d&&224==c&&(c=191));var f=c=lm(c),h=b.keyIdentifier;c?63232<=c&&c in nt?f=nt[c]:25==c&&a.d&&(f=9):h&&h in ot&&(f=ot[h]);
this.Ja=f;a=new Ap(f,d,0,b);a.a=e;this.dispatchEvent(a)};ch.prototype.O=function(){ch.S.O.call(this);mm(this)};I(Ap,Se);I(Mj,Tc);Mj.prototype.handleEvent=function(a){var b=0,c=0;a=a.b;if("mousewheel"==a.type){c=1;if(jc||Wd&&(tx||Cd("532.0")))c=40;var d=nm(-a.wheelDelta,c);g(a.wheelDeltaX)?(b=nm(-a.wheelDeltaX,c),c=nm(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),g(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;D(this.a)&&Hd(b,-this.a,this.a);D(this.c)&&(c=Hd(c,-this.c,this.c));b=new Bp(d,
a,0,c);this.dispatchEvent(b)};Mj.prototype.O=function(){Mj.S.O.call(this);Hb(this.b);this.b=null};I(Bp,Se);I(Nj,tc);var Cp=!1;try{Cp=1===(new MouseEvent("click",{buttons:1})).buttons}catch(a){}var ru=function(){var a;return function(){if(!g(a))if(gb.getComputedStyle){var b=Kd("P"),c,d={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(b);for(var e in d)e in b.style&&(b.style[e]="translate(1px,1px)",
c=gb.getComputedStyle(b).getPropertyValue(d[e]));T(b);a=c&&"none"!==c}else a=!1;return a}}(),qu=function(){var a;return function(){if(!g(a))if(gb.getComputedStyle){var b=Kd("P"),c,d={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(b);for(var e in d)e in b.style&&(b.style[e]="translate3d(1px,1px,1px)",c=gb.getComputedStyle(b).getPropertyValue(d[e]));T(b);a=c&&"none"!==c}else a=!1;
return a}}(),Fp=["experimental-webgl","webgl","webkit-3d","moz-webgl"],tr=gb.devicePixelRatio||1,Ni=!1,ur=function(){if(!("HTMLCanvasElement"in gb))return!1;try{var a=se();if(null===a)return!1;g(a.setLineDash)&&(Ni=!0);return!0}catch(b){return!1}}(),qt="DeviceOrientationEvent"in gb,rt="geolocation"in gb.navigator,um="ontouchstart"in gb,tu="PointerEvent"in gb,uu=!!gb.navigator.msPointerEnabled,st=!1,tt,ut=[];if("WebGLRenderingContext"in gb)try{var Ql=Ep(Kd("CANVAS"),{Ei:!0});null!==Ql&&(st=!0,tt=Ql.getParameter(Ql.MAX_TEXTURE_SIZE),
ut=Ql.getSupportedExtensions())}catch(a){}var vr=st;var zv=ut;var ht=tt;I(pm,dh);l=pm.prototype;l.tk=function(a){if(!Oj(this,a)){(1).toString()in this.a&&this.cancel(a);var b=Bi(a);this.a[(1).toString()]=a;te(this.b,dl,b,a)}};l.uk=function(a){if(!Oj(this,a)){var b=Bi(a);te(this.b,el,b,a)}};l.xk=function(a){if(!Oj(this,a)){var b=this.a[(1).toString()];b&&b.button===a.button&&(b=Bi(a),te(this.b,Po,b,a),Fe(this.a,(1).toString()))}};l.wk=function(a){if(!Oj(this,a)){var b=Bi(a);ym(this.b,b,a)}};l.vk=function(a){if(!Oj(this,
a)){var b=Bi(a);wm(this.b,b,a)}};l.cancel=function(a){var b=Bi(a);this.b.cancel(b,a);Fe(this.a,(1).toString())};I(rm,dh);l=rm.prototype;l.Ck=function(a){this.a[a.b.pointerId]=a;var b=Ci(this,a);te(this.b,dl,b,a)};l.Dk=function(a){var b=Ci(this,a);te(this.b,el,b,a)};l.Gk=function(a){var b=Ci(this,a);te(this.b,Po,b,a);Fe(this.a,a.b.pointerId)};l.Ek=function(a){var b=Ci(this,a);wm(this.b,b,a)};l.Fk=function(a){var b=Ci(this,a);ym(this.b,b,a)};l.Bk=function(a){var b=Ci(this,a);this.b.cancel(b,a);Fe(this.a,
a.b.pointerId)};l.Ak=function(a){this.b.dispatchEvent(new Nj("lostpointercapture",a,a.b))};l.zk=function(a){this.b.dispatchEvent(new Nj("gotpointercapture",a,a.b))};I(sm,dh);l=sm.prototype;l.nn=function(a){fh(this.b,a)};l.pn=function(a){fh(this.b,a)};l.sn=function(a){fh(this.b,a)};l.qn=function(a){fh(this.b,a)};l.rn=function(a){fh(this.b,a)};l.mn=function(a){fh(this.b,a)};l.sk=function(a){fh(this.b,a)};l.Fj=function(a){fh(this.b,a)};I(tm,dh);l=tm.prototype;l.qh=function(){this.f=0;this.d=void 0};
l.so=function(a){var b=a.b.touches,c=Fd(this.a),d=c.length;if(d>=b.length){var e=[],f;for(f=0;f<d;++f){var h=c[f];var m=this.a[h];var q;if(!(q=1==h))a:{q=b.length;for(var w=void 0,F=0;F<q;F++)if(w=b[F],w.identifier===h-2){q=!0;break a}q=!1}q||e.push(m.ec)}for(f=0;f<e.length;++f)this.He(a,e[f])}b=ud(this.a);if(0===b||1===b&&(1).toString()in this.a)this.c=a.b.changedTouches[0].identifier,g(this.d)&&gb.clearTimeout(this.d);Gp(this,a);this.f++;al(this,a,this.hn)};l.hn=function(a,b){this.a[b.pointerId]=
{target:b.target,ec:b,Zg:b.target};var c=this.b;b.bubbles=!0;te(c,Hp,b,a);c=this.b;b.bubbles=!1;te(c,Ip,b,a);te(this.b,dl,b,a)};l.ro=function(a){a.preventDefault();al(this,a,this.yk)};l.yk=function(a,b){var c=this.a[b.pointerId];if(c){var d=c.ec,e=c.Zg;te(this.b,el,b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(wm(this.b,d,a),ym(this.b,b,a)):(b.target=e,b.relatedTarget=null,this.He(a,b)));c.ec=b;c.Zg=b.target}};l.qo=function(a){Gp(this,a);al(this,a,this.to)};
l.to=function(a,b){te(this.b,Po,b,a);this.b.ec(b,a);var c=this.b;b.bubbles=!1;te(c,xm,b,a);Fe(this.a,b.pointerId);b.isPrimary&&(this.c=void 0,this.d=gb.setTimeout(J(this.qh,this),200))};l.po=function(a){al(this,a,this.He)};l.He=function(a,b){this.b.cancel(b,a);this.b.ec(b,a);var c=this.b;b.bubbles=!1;te(c,xm,b,a);Fe(this.a,b.pointerId);b.isPrimary&&(this.c=void 0,this.d=gb.setTimeout(J(this.qh,this),200))};I(eh,Tc);eh.prototype.d=function(a){var b=this.c[a.type];b&&b(a)};eh.prototype.ec=function(a,
b){a.bubbles=!0;te(this,Ax,a,b)};eh.prototype.cancel=function(a,b){te(this,Bx,a,b)};eh.prototype.O=function(){for(var a=this.b.length,b,c=0;c<a;c++)b=this.b[c],wu(this,Fd(b.e));eh.S.O.call(this)};var el="pointermove",dl="pointerdown",Po="pointerup",Hp="pointerover",Ax="pointerout",Ip="pointerenter",xm="pointerleave",Bx="pointercancel",vm=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",
!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]];I(Dd,Bg);Dd.prototype.preventDefault=function(){Dd.S.preventDefault.call(this);this.b.preventDefault()};Dd.prototype.fb=function(){Dd.S.fb.call(this);this.b.fb()};I(zd,Dd);I(cl,Tc);l=cl.prototype;l.fg=function(a){Jp(this,a);var b=new zd(Nh,
this.c,a);this.dispatchEvent(b);!this.g&&0===a.button&&xu(this,this.a);0===this.o&&(Oa(this.d,Hb),this.d=null,this.g=!1,this.a=null,qf(this.b),this.b=null)};l.dk=function(a){Jp(this,a);var b=new zd(Oh,this.c,a);this.dispatchEvent(b);this.a=a;null===this.d&&(this.b=new eh(document),this.d=[ma(this.b,Uj,this.$k,!1,this),ma(this.b,Nh,this.fg,!1,this),ma(this.e,Bm,this.fg,!1,this)])};l.$k=function(a){if(a.clientX!=this.a.clientX||a.clientY!=this.a.clientY){this.g=!0;var b=new zd(Tj,this.c,a,this.g);this.dispatchEvent(b)}a.preventDefault()};
l.Kn=function(a){this.dispatchEvent(new zd(a.type,this.c,a,null!==this.a&&(a.clientX!=this.a.clientX||a.clientY!=this.a.clientY)))};l.O=function(){null!==this.q&&(Hb(this.q),this.q=null);null!==this.i&&(Hb(this.i),this.i=null);null!==this.d&&(Oa(this.d,Hb),this.d=null);null!==this.b&&(qf(this.b),this.b=null);null!==this.e&&(qf(this.e),this.e=null);cl.S.O.call(this)};var Am="singleclick",zm="click",fl="dblclick",Tj="pointerdrag",Uj="pointermove",Oh="pointerdown",Nh="pointerup",Bm="pointercancel",Iv=
{Ko:Am,zo:zm,Ao:fl,Do:Tj,Go:Uj,Co:Oh,Jo:Nh,Io:"pointerover",Ho:"pointerout",Eo:"pointerenter",Fo:"pointerleave",Bo:Bm};I(Xa,ub);l=Xa.prototype;l.Bb=function(){return this.get("brightness")};l.Cb=function(){return this.get("contrast")};l.Db=function(){return this.get("hue")};l.G=function(){return this.get("extent")};l.Eb=function(){return this.get("maxResolution")};l.Fb=function(){return this.get("minResolution")};l.Kb=function(){return this.get("opacity")};l.Gb=function(){return this.get("saturation")};
l.eb=function(){return this.get("visible")};l.gc=function(a){this.set("brightness",a)};l.hc=function(a){this.set("contrast",a)};l.ic=function(a){this.set("hue",a)};l.bc=function(a){this.set("extent",a)};l.jc=function(a){this.set("maxResolution",a)};l.kc=function(a){this.set("minResolution",a)};l.cc=function(a){this.set("opacity",a)};l.lc=function(a){this.set("saturation",a)};l.mc=function(a){this.set("visible",a)};I(La,Xa);l=La.prototype;l.Ue=function(a){a=g(a)?a:[];a.push(Kp(this));return a};l.da=
function(){var a=this.get("source");return g(a)?a:null};l.We=function(){var a=this.da();return null===a?"undefined":a.o};l.Kl=function(){this.k()};l.kk=function(){null!==this.f&&(Hb(this.f),this.f=null);var a=this.da();null!==a&&(this.f=ma(a,"change",this.Kl,!1,this));this.k()};l.Jc=function(a){this.set("source",a)};I(Di,Tc);Di.prototype.G=function(){return this.extent};I(he,Id);l=he.prototype;l.Pa=A;l.dc=function(a,b,c,d){a=a.slice();Cf(b.pixelToCoordinateMatrix,a,a);if(this.Pa(a,b,Le,this))return c.call(d,
this.a)};l.ee=hf;l.yd=function(a,b){return function(c,d){return op(a,c,d,function(e){b[c]||(b[c]={});b[c][e.b.toString()]=e})}};l.Ol=function(a){2===a.target.state&&gl(this)};l=Rd.prototype;l.ie=function(){return this.U};l.Jd=function(){return this.V};l.je=function(){return this.q};l.ke=function(){return this.l};l.Kd=function(){return this.n};l.le=function(a){this.q=a};l.me=function(a){this.l=a};I(ld,Rd);l=ld.prototype;l.mb=function(){if(null!==this.d)return this.d;var a=this.e,b=this.Xa();if("fraction"==
this.g||"fraction"==this.i){if(null===b)return null;a=this.e.slice();"fraction"==this.g&&(a[0]*=b[0]);"fraction"==this.i&&(a[1]*=b[1])}if("top-left"!=this.a){if(null===b)return null;a===this.e&&(a=this.e.slice());if("top-right"==this.a||"bottom-right"==this.a)a[0]=-a[0]+b[0];if("bottom-left"==this.a||"bottom-right"==this.a)a[1]=-a[1]+b[1]}return this.d=a};l.Lb=function(){return this.b.b};l.Dd=function(){return this.b.a};l.gd=function(){return this.b.c};l.he=function(){var a=this.b;if(null===a.e)if(a.i){var b=
a.a[0],c=a.a[1],d=se(b,c);d.fillRect(0,0,b,c);a.e=d.canvas}else a.e=a.b;return a.e};l.rb=function(){if(null!==this.f)return this.f;var a=this.p;if("top-left"!=this.c){var b=this.Xa(),c=this.b.a;if(null===b||null===c)return null;a=a.slice();if("top-right"==this.c||"bottom-right"==this.c)a[0]=c[0]-b[0]-a[0];if("bottom-left"==this.c||"bottom-right"==this.c)a[1]=c[1]-b[1]-a[1]}return this.f=a};l.Bm=function(){return this.b.f};l.Xa=function(){return null===this.o?this.b.a:this.o};l.$e=function(a,b){return ma(this.b,
"change",a,!1,b)};l.load=function(){this.b.load()};l.xf=function(a,b){Ge(this.b,"change",a,!1,b)};I(Pj,Tc);Pj.prototype.g=function(){this.c=3;Oa(this.d,Hb);this.d=null;this.dispatchEvent("change")};Pj.prototype.q=function(){this.c=2;this.a=[this.b.width,this.b.height];Oa(this.d,Hb);this.d=null;var a=se(1,1);a.drawImage(this.b,0,0);try{a.getImageData(0,0,1,1)}catch(b){this.i=!0}this.dispatchEvent("change")};Pj.prototype.load=function(){if(0==this.c){this.c=1;this.d=[If(this.b,"error",this.g,!1,this),
If(this.b,"load",this.q,!1,this)];try{this.b.src=this.f}catch(a){this.g()}}};r(Fi);Fi.prototype.clear=function(){this.b={};this.a=0};Fi.prototype.get=function(a,b){a=b+":"+a;return a in this.b?this.b[a]:null};Fi.prototype.set=function(a,b,c){this.b[b+":"+a]=c;++this.a};I(mg,Re);l=mg.prototype;l.O=function(){ob(this.f,qf);mg.S.O.call(this)};l.ef=function(a,b,c,d,e,f){function h(N){var O=C(N).toString();if(!(O in F))return F[O]=!0,c.call(d,N,null)}var m=b.viewState,q=m.resolution,w=m.rotation,F={},
M=m.projection;m=a;if(M.c){var S=M.G();M=la(S);var Y=a[0];if(Y<S[0]||Y>S[2])m=Math.ceil((S[0]-Y)/M),m=[Y+M*m,a[1]]}if(null!==this.c&&(Y=this.c.c(m,q,w,{},h)))return Y;w=b.layerStatesArray;for(M=w.length-1;0<=M;--M)if(Y=w[M],S=Y.layer,gh(Y,q)&&e.call(f,S)&&(Y=Eg(this,S).Pa(S.da().H?m:a,b,c,d)))return Y};l.Jg=function(a,b,c,d,e,f){var h,m=b.viewState,q=m.resolution;m=m.rotation;if(null!==this.c){var w=this.g.ka(a);if(this.c.c(w,q,m,{},Le)&&(h=c.call(d,null)))return h}m=b.layerStatesArray;for(w=m.length-
1;0<=w;--w){h=m[w];var F=h.layer;if(gh(h,q)&&e.call(f,F)&&(h=Eg(this,F).dc(a,b,c,d)))return h}};l.Kg=function(a,b,c,d){a=this.ef(a,b,Le,this,c,d);return g(a)};l.Tj=function(){this.g.render()};l.ue=A;l.Pn=function(a,b){for(var c in this.f)if(!(null!==b&&c in b.layerStates)){a=c;var d=this.f[a];delete this.f[a];Hb(this.o[a]);delete this.o[a];qf(d)}};Gi.prototype.clear=function(){this.b.length=0;this.a.length=0;bg(this.c)};Gi.prototype.Tb=function(){return this.b.length};Gi.prototype.la=function(){return 0===
this.b.length};I(Lm,Gi);Lm.prototype.f=function(a){a=a.target;var b=a.state;if(2===b||3===b||4===b)Ge(a,"change",this.f,!1,this),--this.d,this.i()};Mm.prototype.update=function(a,b){this.b.push(a,b,Lf())};I(Jb,ub);Jb.prototype.c=function(){return this.get("active")};Jb.prototype.d=function(a){this.set("active",a)};Jb.prototype.setMap=function(a){this.l=a};I(gd,Jb);I(Db,Jb);Db.prototype.nc=dm;I(Yc,Db);Yc.prototype.nc=hf;I(Zc,Db);Zc.prototype.nc=hf;I(gc,ub);gc.prototype.e=function(a,b){b=g(b)?b:[NaN,
NaN];this.Sa(a[0],a[1],b,Infinity);return b};gc.prototype.Jb=hf;gc.prototype.G=function(a){this.n!=this.b&&(this.o=this.wd(this.o),this.n=this.b);var b=this.o;g(a)?(a[0]=b[0],a[1]=b[1],a[2]=b[2],a[3]=b[3]):a=b;return a};gc.prototype.transform=function(a,b){this.qa(Wc(a,b));return this};I(mb,gc);l=mb.prototype;l.Jb=hf;l.wd=function(a){var b=this.j,c=this.j.length,d=this.s;a=He(Infinity,Infinity,-Infinity,-Infinity,a);return Aj(a,b,0,c,d)};l.ob=function(){return this.j.slice(0,this.s)};l.pb=function(){return this.j.slice(this.j.length-
this.s)};l.qb=function(){return this.a};l.Ve=function(a){this.l!=this.b&&(bg(this.f),this.g=0,this.l=this.b);if(0>a||0!==this.g&&a<=this.g)return this;var b=a.toString();if(this.f.hasOwnProperty(b))return this.f[b];var c=this.xc(a);if(c.j.length<this.j.length)return this.f[b]=c;this.g=a;return this};l.xc=function(){return this};l.qa=function(a){null!==this.j&&(a(this.j,this.j,this.s),this.k())};l.Oa=function(a,b){var c=this.j;if(null!==c){var d=c.length,e=this.s,f=g(c)?c:[],h=0,m,q;for(m=0;m<d;m+=
e)for(f[h++]=c[m]+a,f[h++]=c[m+1]+b,q=m+2;q<m+e;++q)f[h++]=c[q];g(c)&&f.length!=h&&(f.length=h);this.k()}};I(lb,mb);l=lb.prototype;l.clone=function(){var a=new lb(null);Ki(a,this.a,this.j.slice());return a};l.Sa=function(a,b,c,d){if(d<hg(this.G(),a,b))return d;this.c!=this.b&&(this.i=Math.sqrt(Sm(this.j,0,this.j.length,this.s,0)),this.c=this.b);return Um(this.j,0,this.j.length,this.s,this.i,!0,a,b,c,d)};l.rl=function(){return Tp(this.j,0,this.j.length,this.s)};l.K=function(){return Vj(this.j,0,this.j.length,
this.s)};l.xc=function(a){var b=[];b.length=Ym(this.j,0,this.j.length,this.s,a,b,0);a=new lb(null);Ki(a,"XY",b);return a};l.M=function(){return"LinearRing"};l.W=function(a,b){null===a?Ki(this,"XY",null):(hh(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=hl(this.j,0,a,this.s),this.k())};I(Ta,mb);l=Ta.prototype;l.clone=function(){var a=new Ta(null);Li(a,this.a,this.j.slice());return a};l.Sa=function(a,b,c,d){var e=this.j;a=Ph(a,b,e[0],e[1]);if(a<d){d=this.s;for(b=0;b<d;++b)c[b]=e[b];c.length=
d;return a}return d};l.K=function(){return null===this.j?[]:this.j.slice()};l.wd=function(a){return oi(this.j,a)};l.M=function(){return"Point"};l.ra=function(a){return Eh(a,this.j[0],this.j[1])};l.W=function(a,b){null===a?Li(this,"XY",null):(hh(this,b,a,0),null===this.j&&(this.j=[]),this.j.length=Xp(this.j,a),this.k())};I(Fa,mb);l=Fa.prototype;l.wi=function(a){null===this.j?this.j=a.j.slice():Tb(this.j,a.j);this.c.push(this.j.length);this.k()};l.clone=function(){var a=new Fa(null);Nf(a,this.a,this.j.slice(),
this.c.slice());return a};l.Sa=function(a,b,c,d){if(d<hg(this.G(),a,b))return d;this.J!=this.b&&(this.L=Math.sqrt(Tm(this.j,0,this.c,this.s,0)),this.J=this.b);return Vm(this.j,0,this.c,this.s,this.L,!0,a,b,c,d)};l.Jb=function(a,b){return Zm(Rh(this),0,this.c,this.s,a,b)};l.ul=function(){return Up(Rh(this),0,this.c,this.s)};l.K=function(a){var b;g(a)?(b=Rh(this).slice(),bn(b,0,this.c,this.s,a)):b=this.j;return Xm(b,0,this.c,this.s)};l.cj=function(){return new Ta(cn(this))};l.ij=function(){return this.c.length};
l.hj=function(a){if(0>a||this.c.length<=a)return null;var b=new lb(null);Ki(b,this.a,this.j.slice(0===a?0:this.c[a-1],this.c[a]));return b};l.Ed=function(){var a=this.a,b=this.j,c=this.c,d=[],e=0,f;var h=0;for(f=c.length;h<f;++h){var m=c[h],q=new lb(null);Ki(q,a,b.slice(e,m));d.push(q);e=m}return d};l.xc=function(a){var b=[],c=[];b.length=Yp(this.j,0,this.c,this.s,Math.sqrt(a),b,0,c);a=new Fa(null);Nf(a,"XY",b,c);return a};l.M=function(){return"Polygon"};l.ra=function(a){return aq(Rh(this),0,this.c,
this.s,a)};l.W=function(a,b){null===a?Nf(this,"XY",null,this.c):(hh(this,b,a,2),null===this.j&&(this.j=[]),a=Wm(this.j,0,a,this.s,this.c),this.j.length=0===a.length?0:a[a.length-1],this.k())};I(Ye,tc);I(Mi,Re);Mi.prototype.O=function(){this.setMap(null)};Mi.prototype.g=function(a){var b=this.c,c=this.f;a.vectorContext.tc(Infinity,function(d){d.Aa(c.e,c.c);d.Ba(c.a);d.Rb(b,null)})};Mi.prototype.Q=function(){return this.c};Mi.prototype.setMap=function(a){null!==this.d&&(Hb(this.d),this.d=null,this.b.render(),
this.b=null);this.b=a;null!==this.b&&(this.d=ma(a,"postcompose",this.g,!1,this),dn(this))};I(Wj,tc);I(Bc,Db);Bc.prototype.Q=function(){return this.f.Q()};Bc.prototype.g=A;I(en,function(){this.a=-1});en.prototype.update=function(a,b){g(b)||(b=a.length);for(var c=b-this.a,d=this.e,e=this.c,f=0;f<b;){if(0==e)for(;f<=c;)fn(this,a,f),f+=this.a;if(E(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.a){fn(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.a){fn(this,d);e=0;break}}this.c=e;this.d+=
b};l=Lc.prototype;l.Hm=function(){return this.b};l.ej=function(){return this.d};l.Im=function(){return this.c};l.fj=function(){return this.e};l.lj=function(){return this.f};l.Jm=function(){return this.a};l.Km=function(a){this.b=a;this.g=void 0};l.Zn=function(a){this.d=a;this.g=void 0};l.Lm=function(a){this.c=a;this.g=void 0};l.$n=function(a){this.e=a;this.g=void 0};l.ao=function(a){this.f=a;this.g=void 0};l.ko=function(a){this.a=a;this.g=void 0};l.nb=function(){if(!g(this.g)){var a="s"+(null===this.b?
"-":pd(this.b))+","+(g(this.d)?this.d.toString():"-")+","+(null===this.c?"-":this.c.toString())+","+(g(this.e)?this.e:"-")+","+(g(this.f)?this.f.toString():"-")+","+(g(this.a)?this.a.toString():"-"),b=new en;b.update(a);var c=Array((56>b.c?b.a:2*b.a)-b.c);c[0]=128;for(a=1;a<c.length-8;++a)c[a]=0;var d=8*b.d;for(a=c.length-8;a<c.length;++a)c[a]=d&255,d/=256;b.update(c);c=Array(16);for(a=d=0;4>a;++a)for(var e=0;32>e;e+=8)c[d++]=b.b[a]>>>e&255;if(8192>c.length)b=String.fromCharCode.apply(null,c);else for(b=
"",a=0;a<c.length;a+=8192)b+=String.fromCharCode.apply(null,Qe(c,a,a+8192));this.g=b}return this.g};var Ng=[0,0,0,1],yk=[],zk=[0,0,0,1];jf.prototype.c=function(){return this.b};jf.prototype.d=function(a){this.b=a;this.a=void 0};jf.prototype.nb=function(){g(this.a)||(this.a="f"+(null===this.b?"-":pd(this.b)));return this.a};I(Qc,Rd);l=Qc.prototype;l.mb=function(){return this.g};l.ym=function(){return this.d};l.he=function(){return this.f};l.Lb=function(){return this.b};l.gd=function(){return 2};l.Dd=
function(){return this.i};l.rb=function(){return this.o};l.zm=function(){return this.c};l.Xa=function(){return this.p};l.Am=function(){return this.a};l.$e=A;l.load=A;l.xf=A;l.Sg=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();b.arc(a.size/2,a.size/2,this.c,0,2*Math.PI,!0);null!==this.d&&(b.fillStyle=pd(this.d.b),b.fill());null!==this.a&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.md,null===a.lineDash||b.setLineDash(a.lineDash),b.stroke());b.closePath()};l.Rg=function(a,
b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();b.arc(a.size/2,a.size/2,this.c,0,2*Math.PI,!0);b.fillStyle=Ng;b.fill();null!==this.a&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.md,null===a.lineDash||b.setLineDash(a.lineDash),b.stroke());b.closePath()};l.nb=function(){var a=null===this.a?"-":this.a.nb(),b=null===this.d?"-":this.d.nb();if(null===this.e||a!=this.e[1]||b!=this.e[2]||this.c!=this.e[3])this.e=["c"+a+b+(g(this.c)?this.c.toString():"-"),a,b,this.c];return this.e[0]};l=qd.prototype;
l.Q=function(){return this.g};l.Zi=function(){return this.d};l.Mm=function(){return this.e};l.Nm=function(){return this.f};l.Om=function(){return this.c};l.Pm=function(){return this.a};l.Dj=function(){return this.b};l.Vg=function(a){x(a)?this.d=a:E(a)?this.d=function(b){return b.get(a)}:null===a?this.d=fq:g(a)&&(this.d=function(){return a});this.g=a};l.mo=function(a){this.b=a};I(Mc,Bc);Mc.prototype.g=function(){var a=this.l,b=a.R(),c=this.Q().G(),d=y(c),e=a.xa();c=Bj(c,e);e=this.n;c=b.constrainResolution(c,
0,void 0);Ii(a,b,c,d,e)};I(hd,Jb);I(id,Jb);I($c,Jb);$c.prototype.i=function(a){var b=Hd(this.a,-1,1),c=a.R();a.render();Nm(a,c,-b,this.f,this.o);this.a=0;this.f=null;this.g=this.e=void 0};I(ad,Db);ad.prototype.nc=hf;I(bd,Db);bd.prototype.nc=hf;I(Ua,Xa);l=Ua.prototype;l.Qd=function(){this.eb()&&this.k()};l.Vj=function(){Oa(this.c,Hb);this.c.length=0;var a=this.Bc();this.c.push(ma(a,"add",this.Uj,!1,this),ma(a,"remove",this.Wj,!1,this));ob(this.a,function(e){Oa(e,Hb)});bg(this.a);a=a.a;var b;var c=
0;for(b=a.length;c<b;c++){var d=a[c];this.a[C(d).toString()]=[ma(d,"propertychange",this.Qd,!1,this),ma(d,"change",this.Qd,!1,this)]}this.k()};l.Uj=function(a){a=a.element;var b=C(a).toString();this.a[b]=[ma(a,"propertychange",this.Qd,!1,this),ma(a,"change",this.Qd,!1,this)];this.k()};l.Wj=function(a){a=C(a.element).toString();Oa(this.a[a],Hb);delete this.a[a];this.k()};l.Bc=function(){return this.get("layers")};l.Ah=function(a){this.set("layers",a)};l.Ue=function(a){var b=g(a)?a:[],c=b.length;this.Bc().forEach(function(f){f.Ue(b)});
a=Kp(this);var d;for(d=b.length;c<d;c++){var e=b[c];e.brightness=Hd(e.brightness+a.brightness,-1,1);e.contrast*=a.contrast;e.hue+=a.hue;e.opacity*=a.opacity;e.saturation*=a.saturation;e.visible=e.visible&&a.visible;e.maxResolution=Math.min(e.maxResolution,a.maxResolution);e.minResolution=Math.max(e.minResolution,a.minResolution);g(a.extent)&&(e.extent=g(e.extent)?aa(e.extent,a.extent):a.extent)}return b};l.We=function(){return"ready"};I(jn,Cb);jn.prototype.getPointResolution=function(a,b){b=b[1]/
6378137;return a/((Math.exp(b)+Math.exp(-b))/2)};var Rl=6378137*Math.PI,kq=[-Rl,-Rl,Rl,Rl],Pu=[-180,-85,180,85],bp=Jc("EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" "),function(a){return new jn(a)});I(og,Cb);og.prototype.getPointResolution=function(a){return a};var lq=[-180,-90,180,90],cp=[new og("CRS:84"),new og("EPSG:4326","neu"),new og("urn:ogc:def:crs:EPSG::4326","neu"),new og("urn:ogc:def:crs:EPSG:6.6:4326",
"neu"),new og("urn:ogc:def:crs:OGC:1.3:CRS84"),new og("urn:ogc:def:crs:OGC:2:84"),new og("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new og("urn:x-ogc:def:crs:EPSG:4326","neu")];I(Va,La);I(Ea,La);Ea.prototype.a=function(){return this.get("preload")};Ea.prototype.d=function(a){this.set("preload",a)};Ea.prototype.c=function(){return this.get("useInterimTilesOnError")};Ea.prototype.e=function(a){this.set("useInterimTilesOnError",a)};I(Ga,La);Ga.prototype.H=function(){return this.g};Ga.prototype.J=
function(){return this.a};Ga.prototype.e=function(a){this.g=g(a)?a:Xj;this.a=null===a?void 0:gn(this.g);this.k()};l=uc.prototype;l.tc=function(a,b){a=a.toString();var c=this.U[a];g(c)?c.push(b):this.U[a]=[b]};l.uc=function(a){if(sa(this.e,a.G())){if(null!==this.a||null!==this.b){null===this.a||jl(this,this.a);null===this.b||Oi(this,this.b);var b=a.j;b=null===b?null:Ji(b,0,b.length,a.s,this.H,this.V);var c=b[2]-b[0],d=b[3]-b[1];c=Math.sqrt(c*c+d*d);d=this.c;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);
null===this.a||d.fill();null===this.b||d.stroke()}""!==this.d&&Sh(this,a.dd(),2,2)}};l.Le=function(a,b){var c=(0,b.d)(a);null!=c&&sa(this.e,c.G())&&(a=b.b,g(a)||(a=0),this.tc(a,function(d){d.Aa(b.e,b.c);d.Za(b.f);d.Ba(b.a);vt[c.M()].call(d,c,null)}))};l.zd=function(a,b){a=a.d;var c;var d=0;for(c=a.length;d<c;++d){var e=a[d];vt[e.M()].call(this,e,b)}};l.kb=function(a){var b=a.j;a=a.s;null===this.f||nq(this,b,b.length);""!==this.d&&Sh(this,b,b.length,a)};l.jb=function(a){var b=a.j;a=a.s;null===this.f||
nq(this,b,b.length);""!==this.d&&Sh(this,b,b.length,a)};l.zb=function(a){if(sa(this.e,a.G())){if(null!==this.b){Oi(this,this.b);var b=this.c,c=a.j;b.beginPath();kn(this,c,0,c.length,a.s,!1);b.stroke()}""!==this.d&&(a=xq(a),Sh(this,a,2,2))}};l.vc=function(a){var b=a.G();if(sa(this.e,b)){if(null!==this.b){Oi(this,this.b);b=this.c;var c=a.j,d=0,e=a.c,f=a.s;b.beginPath();var h;var m=0;for(h=e.length;m<h;++m)d=kn(this,c,d,e[m],f,!1);b.stroke()}""!==this.d&&(a=yq(a),Sh(this,a,a.length,2))}};l.Rb=function(a){if(sa(this.e,
a.G())){if(null!==this.b||null!==this.a){null===this.a||jl(this,this.a);null===this.b||Oi(this,this.b);var b=this.c;b.beginPath();oq(this,Rh(a),0,a.c,a.s);null===this.a||b.fill();null===this.b||b.stroke()}""!==this.d&&(a=cn(a),Sh(this,a,2,2))}};l.wc=function(a){if(sa(this.e,a.G())){if(null!==this.b||null!==this.a){null===this.a||jl(this,this.a);null===this.b||Oi(this,this.b);var b=this.c,c=mh(a),d=0,e=a.c,f=a.s,h;var m=0;for(h=e.length;m<h;++m){var q=e[m];b.beginPath();d=oq(this,c,d,q,f);null===this.a||
b.fill();null===this.b||b.stroke()}}""!==this.d&&(a=sn(a),Sh(this,a,a.length,2))}};l.Aa=function(a,b){null===a?this.a=null:(a=a.b,this.a={fillStyle:pd(null===a?Ng:a)});if(null===b)this.b=null;else{a=b.b;var c=b.d,d=b.c,e=b.e,f=b.a;b=b.f;this.b={lineCap:g(c)?c:"round",lineDash:null!=d?d:yk,lineJoin:g(e)?e:"round",lineWidth:this.n*(g(f)?f:1),miterLimit:g(b)?b:10,strokeStyle:pd(null===a?zk:a)}}};l.Za=function(a){if(null===a)this.f=null;else{var b=a.mb(),c=a.Lb(1),d=a.rb(),e=a.Xa();this.J=b[0];this.L=
b[1];this.N=e[1];this.f=c;this.o=a.U;this.Fa=d[0];this.Ga=d[1];this.Ra=a.V;this.rc=a.q;this.g=a.l;this.vb=a.n;this.T=e[0]}};l.Ba=function(a){if(null===a)this.d="";else{var b=a.b;null===b?this.i=null:(b=b.b,this.i={fillStyle:pd(null===b?Ng:b)});var c=a.f;if(null===c)this.l=null;else{b=c.b;var d=c.d,e=c.c,f=c.e,h=c.a;c=c.f;this.l={lineCap:g(d)?d:"round",lineDash:null!=e?e:yk,lineJoin:g(f)?f:"round",lineWidth:g(h)?h:1,miterLimit:g(c)?c:10,strokeStyle:pd(null===b?zk:b)}}b=a.d;d=a.q;e=a.l;f=a.e;h=a.a;
c=a.c;var m=a.g;a=a.i;this.sa={font:g(b)?b:"10px sans-serif",textAlign:g(m)?m:"center",textBaseline:g(a)?a:"middle"};this.d=g(c)?c:"";this.wb=g(d)?this.n*d:0;this.xb=g(e)?this.n*e:0;this.p=g(f)?f:0;this.q=this.n*(g(h)?h:1)}};var vt={Point:uc.prototype.kb,LineString:uc.prototype.zb,Polygon:uc.prototype.Rb,MultiPoint:uc.prototype.jb,MultiLineString:uc.prototype.vc,MultiPolygon:uc.prototype.wc,GeometryCollection:uc.prototype.zd,Circle:uc.prototype.uc},pg=["Polygon","LineString","Image","Text"];I(Vf,
il);Vf.prototype.de=A;Vf.prototype.Pe=function(){return this.T};I(Qi,Vf);Qi.prototype.kb=function(a,b){if(null!==this.i){ih(this,b);var c=a.j,d=this.coordinates.length;c=Pi(this,c,0,c.length,a.s,!1);this.a.push([4,d,c,this.i,this.c,this.f,this.g,this.q,this.l,this.o,this.U,this.V,this.n,this.p,this.H]);this.b.push([4,d,c,this.N,this.c,this.f,this.g,this.q,this.l,this.o,this.U,this.V,this.n,this.p,this.H]);jh(this,b)}};Qi.prototype.jb=function(a,b){if(null!==this.i){ih(this,b);var c=a.j,d=this.coordinates.length;
c=Pi(this,c,0,c.length,a.s,!1);this.a.push([4,d,c,this.i,this.c,this.f,this.g,this.q,this.l,this.o,this.U,this.V,this.n,this.p,this.H]);this.b.push([4,d,c,this.N,this.c,this.f,this.g,this.q,this.l,this.o,this.U,this.V,this.n,this.p,this.H]);jh(this,b)}};Qi.prototype.de=function(){ln(this);this.f=this.c=void 0;this.i=this.N=null;this.H=this.p=this.V=this.U=this.o=this.l=this.q=this.n=this.g=void 0};Qi.prototype.Za=function(a){var b=a.mb(),c=a.Xa(),d=a.he(1),e=a.Lb(1),f=a.rb();this.c=b[0];this.f=b[1];
this.N=d;this.i=e;this.g=c[1];this.q=a.U;this.l=f[0];this.o=f[1];this.U=a.V;this.V=a.q;this.n=a.l;this.p=a.n;this.H=c[0]};I(mn,Vf);l=mn.prototype;l.Pe=function(){null===this.d&&(this.d=zj(this.T),0<this.e&&yf(this.d,this.resolution*(this.e+1)/2,this.d));return this.d};l.zb=function(a,b){var c=this.c,d=c.lineWidth;g(c.strokeStyle)&&g(d)&&(rq(this),ih(this,b),this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]),c=a.j,qq(this,c,0,c.length,a.s),this.b.push([12]),
jh(this,b))};l.vc=function(a,b){var c=this.c,d=c.lineWidth;if(g(c.strokeStyle)&&g(d)){rq(this);ih(this,b);this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]);c=a.c;d=a.j;a=a.s;var e=0,f;var h=0;for(f=c.length;h<f;++h)e=qq(this,d,e,c[h],a);this.b.push([12]);jh(this,b)}};l.de=function(){this.c.Ze!=this.coordinates.length&&this.a.push([12]);ln(this);this.c=null};l.Aa=function(a,b){a=b.b;this.c.strokeStyle=pd(null===a?zk:a);a=b.d;this.c.lineCap=g(a)?a:"round";
a=b.c;this.c.lineDash=null===a?yk:a;a=b.e;this.c.lineJoin=g(a)?a:"round";a=b.a;this.c.lineWidth=g(a)?a:1;a=b.f;this.c.miterLimit=g(a)?a:10;this.c.lineWidth>this.e&&(this.e=this.c.lineWidth,this.d=null)};I(nn,Vf);l=nn.prototype;l.uc=function(a,b){var c=this.c,d=c.strokeStyle;if(g(c.fillStyle)||g(d)){on(this);ih(this,b);this.b.push([9,pd(Ng)]);g(c.strokeStyle)&&this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);var e=a.j;d=this.coordinates.length;Pi(this,e,0,e.length,
a.s,!1);e=[1];d=[2,d];this.a.push(e,d);this.b.push(e,d);d=[7];this.b.push(d);g(c.fillStyle)&&this.a.push(d);g(c.strokeStyle)&&(c=[12],this.a.push(c),this.b.push(c));jh(this,b)}};l.Rb=function(a,b){var c=this.c,d=c.strokeStyle;if(g(c.fillStyle)||g(d))on(this),ih(this,b),this.b.push([9,pd(Ng)]),g(c.strokeStyle)&&this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]),c=a.c,d=Rh(a),sq(this,d,0,c,a.s),jh(this,b)};l.wc=function(a,b){var c=this.c,d=c.strokeStyle;if(g(c.fillStyle)||
g(d)){on(this);ih(this,b);this.b.push([9,pd(Ng)]);g(c.strokeStyle)&&this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);c=a.c;d=mh(a);a=a.s;var e=0,f;var h=0;for(f=c.length;h<f;++h)e=sq(this,d,e,c[h],a);jh(this,b)}};l.de=function(){ln(this);this.c=null;var a=this.oa;if(0!==a){var b=this.coordinates,c;var d=0;for(c=b.length;d<c;++d)b[d]=a*Math.round(b[d]/a)}};l.Pe=function(){null===this.d&&(this.d=zj(this.T),0<this.e&&yf(this.d,this.resolution*(this.e+1)/2,this.d));
return this.d};l.Aa=function(a,b){var c=this.c;if(null===a)c.fillStyle=void 0;else{var d=a.b;c.fillStyle=pd(null===d?Ng:d)}null===b?(c.strokeStyle=void 0,c.lineCap=void 0,c.lineDash=null,c.lineJoin=void 0,c.lineWidth=void 0,c.miterLimit=void 0):(d=b.b,c.strokeStyle=pd(null===d?zk:d),d=b.d,c.lineCap=g(d)?d:"round",d=b.c,c.lineDash=null===d?yk:d.slice(),d=b.e,c.lineJoin=g(d)?d:"round",d=b.a,c.lineWidth=g(d)?d:1,d=b.f,c.miterLimit=g(d)?d:10,c.lineWidth>this.e&&(this.e=c.lineWidth,this.d=null))};I(ll,
Vf);ll.prototype.lb=function(a,b,c,d,e,f){if(""!==this.i&&null!==this.g&&(null!==this.c||null!==this.f)){if(null!==this.c){e=this.c;var h=this.V;if(null===h||h.fillStyle!=e.fillStyle){var m=[9,e.fillStyle];this.a.push(m);this.b.push(m);null===h?this.V={fillStyle:e.fillStyle}:h.fillStyle=e.fillStyle}}null!==this.f&&(e=this.f,h=this.n,null===h||h.lineCap!=e.lineCap||h.lineDash!=e.lineDash||h.lineJoin!=e.lineJoin||h.lineWidth!=e.lineWidth||h.miterLimit!=e.miterLimit||h.strokeStyle!=e.strokeStyle)&&(m=
[10,e.strokeStyle,e.lineWidth,e.lineCap,e.lineJoin,e.miterLimit,e.lineDash,!1],this.a.push(m),this.b.push(m),null===h?this.n={lineCap:e.lineCap,lineDash:e.lineDash,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle}:(h.lineCap=e.lineCap,h.lineDash=e.lineDash,h.lineJoin=e.lineJoin,h.lineWidth=e.lineWidth,h.miterLimit=e.miterLimit,h.strokeStyle=e.strokeStyle));e=this.g;h=this.p;if(null===h||h.font!=e.font||h.textAlign!=e.textAlign||h.textBaseline!=e.textBaseline)m=
[11,e.font,e.textAlign,e.textBaseline],this.a.push(m),this.b.push(m),null===h?this.p={font:e.font,textAlign:e.textAlign,textBaseline:e.textBaseline}:(h.font=e.font,h.textAlign=e.textAlign,h.textBaseline=e.textBaseline);ih(this,f);e=this.coordinates.length;a=Pi(this,a,b,c,d,!1);a=[5,e,a,this.i,this.q,this.l,this.o,this.U,null!==this.c,null!==this.f];this.a.push(a);this.b.push(a);jh(this,f)}};ll.prototype.Ba=function(a){if(null===a)this.i="";else{var b=a.b;null===b?this.c=null:(b=b.b,b=pd(null===b?
Ng:b),null===this.c?this.c={fillStyle:b}:this.c.fillStyle=b);var c=a.f;if(null===c)this.f=null;else{b=c.b;var d=c.d,e=c.c,f=c.e,h=c.a;c=c.f;d=g(d)?d:"round";e=null!=e?e.slice():yk;f=g(f)?f:"round";h=g(h)?h:1;c=g(c)?c:10;b=pd(null===b?zk:b);if(null===this.f)this.f={lineCap:d,lineDash:e,lineJoin:f,lineWidth:h,miterLimit:c,strokeStyle:b};else{var m=this.f;m.lineCap=d;m.lineDash=e;m.lineJoin=f;m.lineWidth=h;m.miterLimit=c;m.strokeStyle=b}}var q=a.d;b=a.q;d=a.l;e=a.e;h=a.a;c=a.c;f=a.g;m=a.i;a=g(q)?q:"10px sans-serif";
f=g(f)?f:"center";m=g(m)?m:"middle";null===this.g?this.g={font:a,textAlign:f,textBaseline:m}:(q=this.g,q.font=a,q.textAlign=f,q.textBaseline=m);this.i=g(c)?c:"";this.q=g(b)?b:0;this.l=g(d)?d:0;this.o=g(e)?e:0;this.U=g(h)?h:1}};kh.prototype.c=function(a,b,c,d,e){var f=this.g;Ae(f,.5,.5,1/b,-1/b,-c,-a[0],-a[1]);var h=this.f;h.clearRect(0,0,1,1);var m;g(this.e)&&(m=Yd(),Jk(m,a),yf(m,b*this.e,m));return Qu(this,h,f,c,d,function(q){if(0<h.getImageData(0,0,1,1).data[3]){if(q=e(q))return q;h.clearRect(0,
0,1,1)}},m)};kh.prototype.b=function(a,b){a=g(a)?a.toString():"0";var c=this.a[a];g(c)||(c={},this.a[a]=c);a=c[b];g(a)||(a=new Cx[b](this.q,this.d,this.i),c[b]=a);return a};kh.prototype.la=function(){return le(this.a)};var Cx={Image:Qi,LineString:mn,Polygon:nn,Text:ll};I(ie,he);ie.prototype.o=function(a,b,c){Zj(this,"precompose",c,a,void 0);var d=this.fe();if(null!==d){var e=b.extent,f=g(e);if(f){var h=a.pixelRatio,m=U(e),q=W(e),w=u(e);e=n(e);Cf(a.coordinateToPixelMatrix,m,m);Cf(a.coordinateToPixelMatrix,
q,q);Cf(a.coordinateToPixelMatrix,w,w);Cf(a.coordinateToPixelMatrix,e,e);c.save();c.beginPath();c.moveTo(m[0]*h,m[1]*h);c.lineTo(q[0]*h,q[1]*h);c.lineTo(w[0]*h,w[1]*h);c.lineTo(e[0]*h,e[1]*h);c.clip()}h=this.Xf();m=c.globalAlpha;c.globalAlpha=b.opacity;0===a.viewState.rotation?(b=h[13],q=d.width*h[0],w=d.height*h[5],c.drawImage(d,0,0,+d.width,+d.height,Math.round(h[12]),Math.round(b),Math.round(q),Math.round(w))):(c.setTransform(h[0],h[1],h[4],h[5],h[12],h[13]),c.drawImage(d,0,0),c.setTransform(1,
0,0,1,0,0));c.globalAlpha=m;f&&c.restore()}Zj(this,"postcompose",c,a,void 0)};var wt=function(){var a=null,b=null;return function(c){if(null===a){a=se(1,1);b=a.createImageData(1,1);var d=b.data;d[0]=42;d[1]=84;d[2]=126;d[3]=255}d=a.canvas;var e=c[0]<=d.width&&c[1]<=d.height;e||(d.width=c[0],d.height=c[1],d=c[0]-1,c=c[1]-1,a.putImageData(b,d,c),c=a.getImageData(d,c,1,1),e=rd(b.data,c.data));return e}}();I(hb,mb);l=hb.prototype;l.clone=function(){var a=new hb(null);Df(a,this.a,this.j.slice());a.k();
return a};l.Sa=function(a,b,c,d){var e=this.j;a-=e[0];var f=b-e[1];b=a*a+f*f;if(b<d){0===b?d=0:(d=this.zg()/Math.sqrt(b),c[0]=e[0]+d*a,c[1]=e[1]+d*f,d=2);for(;d<this.s;++d)c[d]=e[d];c.length=this.s;return b}return d};l.Jb=function(a,b){var c=this.j;a-=c[0];c=b-c[1];return a*a+c*c<=uq(this)};l.dd=function(){return this.j.slice(0,this.s)};l.wd=function(a){var b=this.j,c=b[this.s]-b[0];return He(b[0]-c,b[1]-c,b[0]+c,b[1]+c,a)};l.zg=function(){return Math.sqrt(uq(this))};l.M=function(){return"Circle"};
l.pl=function(a){var b=this.s,c=a.slice();c[b]=c[0]+(this.j[b]-this.j[0]);var d;for(d=1;d<b;++d)c[b+d]=a[d];Df(this,this.a,c);this.k()};l.uh=function(a,b,c){if(null===a)Df(this,"XY",null);else{hh(this,c,a,0);null===this.j&&(this.j=[]);c=this.j;a=Xp(c,a);c[a++]=c[0]+b;var d;b=1;for(d=this.s;b<d;++b)c[a++]=c[b];c.length=a}this.k()};l.Ag=function(a){this.j[this.s]=this.j[0]+a;this.k()};I(sb,gc);l=sb.prototype;l.clone=function(){var a=new sb(null);a.xh(this.d);return a};l.Sa=function(a,b,c,d){if(d<hg(this.G(),
a,b))return d;var e=this.d,f;var h=0;for(f=e.length;h<f;++h)d=e[h].Sa(a,b,c,d);return d};l.Jb=function(a,b){var c=this.d,d;var e=0;for(d=c.length;e<d;++e)if(c[e].Jb(a,b))return!0;return!1};l.wd=function(a){He(Infinity,Infinity,-Infinity,-Infinity,a);for(var b=this.d,c=0,d=b.length;c<d;++c)Lk(a,b[c].G());return a};l.Vf=function(){return vq(this.d)};l.Ve=function(a){this.l!=this.b&&(bg(this.f),this.g=0,this.l=this.b);if(0>a||0!==this.g&&a<this.g)return this;var b=a.toString();if(this.f.hasOwnProperty(b))return this.f[b];
var c=[],d=this.d,e=!1,f;var h=0;for(f=d.length;h<f;++h){var m=d[h],q=m.Ve(a);c.push(q);q!==m&&(e=!0)}if(e)return a=new sb(null),qn(a),a.d=c,pn(a),a.k(),this.f[b]=a;this.g=a;return this};l.M=function(){return"GeometryCollection"};l.ra=function(a){var b=this.d,c;var d=0;for(c=b.length;d<c;++d)if(b[d].ra(a))return!0;return!1};l.la=function(){return 0==this.d.length};l.xh=function(a){a=vq(a);qn(this);this.d=a;pn(this);this.k()};l.qa=function(a){var b=this.d,c;var d=0;for(c=b.length;d<c;++d)b[d].qa(a);
this.k()};l.Oa=function(a,b){var c=this.d,d;var e=0;for(d=c.length;e<d;++e)c[e].Oa(a,b);this.k()};l.O=function(){qn(this);sb.S.O.call(this)};I(Ha,mb);l=Ha.prototype;l.ui=function(a){null===this.j?this.j=a.slice():Tb(this.j,a);this.k()};l.clone=function(){var a=new Ha(null);kf(a,this.a,this.j.slice());return a};l.Sa=function(a,b,c,d){if(d<hg(this.G(),a,b))return d;this.p!=this.b&&(this.H=Math.sqrt(Sm(this.j,0,this.j.length,this.s,0)),this.p=this.b);return Um(this.j,0,this.j.length,this.s,this.H,!1,
a,b,c,d)};l.Ji=function(a,b){return $p(this.j,0,this.j.length,this.s,a,b)};l.ql=function(a,b){return"XYM"!=this.a&&"XYZM"!=this.a?null:rn(this.j,0,this.j.length,this.s,a,g(b)?b:!1)};l.K=function(){return Vj(this.j,0,this.j.length,this.s)};l.Bg=function(){var a=this.j,b=this.s,c=a[0],d=a[1],e=0,f;for(f=0+b;f<this.j.length;f+=b){var h=a[f],m=a[f+1];e+=Math.sqrt((h-c)*(h-c)+(m-d)*(m-d));c=h;d=m}return e};l.xc=function(a){var b=[];b.length=Ym(this.j,0,this.j.length,this.s,a,b,0);a=new Ha(null);kf(a,"XY",
b);return a};l.M=function(){return"LineString"};l.ra=function(a){return $m(this.j,0,this.j.length,this.s,a)};l.W=function(a,b){null===a?kf(this,"XY",null):(hh(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=hl(this.j,0,a,this.s),this.k())};I(Qa,mb);l=Qa.prototype;l.vi=function(a){null===this.j?this.j=a.j.slice():Tb(this.j,a.j.slice());this.c.push(this.j.length);this.k()};l.clone=function(){var a=new Qa(null);ak(a,this.a,this.j.slice(),this.c.slice());return a};l.Sa=function(a,b,c,d){if(d<hg(this.G(),
a,b))return d;this.i!=this.b&&(this.p=Math.sqrt(Tm(this.j,0,this.c,this.s,0)),this.i=this.b);return Vm(this.j,0,this.c,this.s,this.p,!1,a,b,c,d)};l.sl=function(a,b,c){return"XYM"!=this.a&&"XYZM"!=this.a||0===this.j.length?null:Ru(this.j,this.c,this.s,a,g(b)?b:!1,g(c)?c:!1)};l.K=function(){return Xm(this.j,0,this.c,this.s)};l.gj=function(a){if(0>a||this.c.length<=a)return null;var b=new Ha(null);kf(b,this.a,this.j.slice(0===a?0:this.c[a-1],this.c[a]));return b};l.ad=function(){var a=this.j,b=this.c,
c=this.a,d=[],e=0,f;var h=0;for(f=b.length;h<f;++h){var m=b[h],q=new Ha(null);kf(q,c,a.slice(e,m));d.push(q);e=m}return d};l.xc=function(a){var b=[],c=[],d=this.j,e=this.c,f=this.s,h=0,m=0,q;var w=0;for(q=e.length;w<q;++w){var F=e[w];m=Ym(d,h,F,f,a,b,m);c.push(m);h=F}b.length=m;a=new Qa(null);ak(a,"XY",b,c);return a};l.M=function(){return"MultiLineString"};l.ra=function(a){a:{var b=this.j,c=this.c,d=this.s,e=0,f;var h=0;for(f=c.length;h<f;++h){if($m(b,e,c[h],d,a)){a=!0;break a}e=c[h]}a=!1}return a};
l.W=function(a,b){null===a?ak(this,"XY",null,this.c):(hh(this,b,a,2),null===this.j&&(this.j=[]),a=Wm(this.j,0,a,this.s,this.c),this.j.length=0===a.length?0:a[a.length-1],this.k())};I($a,mb);l=$a.prototype;l.xi=function(a){null===this.j?this.j=a.j.slice():Tb(this.j,a.j);this.k()};l.clone=function(){var a=new $a(null);Df(a,this.a,this.j.slice());a.k();return a};l.Sa=function(a,b,c,d){if(d<hg(this.G(),a,b))return d;var e=this.j,f=this.s,h,m;var q=0;for(h=e.length;q<h;q+=f)if(m=Ph(a,b,e[q],e[q+1]),m<
d){d=m;for(m=0;m<f;++m)c[m]=e[q+m];c.length=f}return d};l.K=function(){return Vj(this.j,0,this.j.length,this.s)};l.qj=function(a){var b=null===this.j?0:this.j.length/this.s;if(0>a||b<=a)return null;b=new Ta(null);Li(b,this.a,this.j.slice(a*this.s,(a+1)*this.s));return b};l.ce=function(){var a=this.j,b=this.a,c=this.s,d=[],e;var f=0;for(e=a.length;f<e;f+=c){var h=new Ta(null);Li(h,b,a.slice(f,f+c));d.push(h)}return d};l.M=function(){return"MultiPoint"};l.ra=function(a){var b=this.j,c=this.s,d,e,f;
var h=0;for(d=b.length;h<d;h+=c)if(e=b[h],f=b[h+1],Eh(a,e,f))return!0;return!1};l.W=function(a,b){null===a?Df(this,"XY",null):(hh(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=hl(this.j,0,a,this.s));this.k()};I(Ra,mb);l=Ra.prototype;l.yi=function(a){if(null===this.j)this.j=a.j.slice(),a=a.c.slice(),this.c.push();else{var b=this.j.length;Tb(this.j,a.j);a=a.c.slice();var c;var d=0;for(c=a.length;d<c;++d)a[d]+=b}this.c.push(a);this.k()};l.clone=function(){var a=new Ra(null);pl(a,this.a,this.j.slice(),
this.c.slice());return a};l.Sa=function(a,b,c,d){if(d<hg(this.G(),a,b))return d;if(this.J!=this.b){var e=this.c,f=0,h=0,m;var q=0;for(m=e.length;q<m;++q){var w=e[q];h=Tm(this.j,f,w,this.s,h);f=w[w.length-1]}this.L=Math.sqrt(h);this.J=this.b}e=mh(this);f=this.c;h=this.s;q=this.L;m=0;w=g(void 0)?void 0:[NaN,NaN];var F;var M=0;for(F=f.length;M<F;++M){var S=f[M];d=Vm(e,m,S,h,q,!0,a,b,c,d,w);m=S[S.length-1]}return d};l.Jb=function(a,b){a:{var c=mh(this);var d=this.c,e=0;if(0!==d.length){var f;var h=0;
for(f=d.length;h<f;++h){var m=d[h];if(Zm(c,e,m,this.s,a,b)){c=!0;break a}e=m[m.length-1]}}c=!1}return c};l.tl=function(){var a=mh(this),b=this.c,c=0,d=0,e;var f=0;for(e=b.length;f<e;++f){var h=b[f];d+=Up(a,c,h,this.s);c=h[h.length-1]}return d};l.K=function(a){var b;g(a)?(b=mh(this).slice(),cq(b,this.c,this.s,a)):b=this.j;a=b;b=this.c;var c=this.s,d=0,e=g(void 0)?void 0:[],f=0,h;var m=0;for(h=b.length;m<h;++m){var q=b[m];e[f++]=Xm(a,d,q,c,e[f]);d=q[q.length-1]}e.length=f;return e};l.dj=function(){var a=
new $a(null),b=sn(this).slice();Df(a,"XY",b);a.k();return a};l.xc=function(a){var b=[],c=[],d=this.j,e=this.c,f=this.s;a=Math.sqrt(a);var h=0,m=0,q;var w=0;for(q=e.length;w<q;++w){var F=e[w],M=[];m=Yp(d,h,F,f,a,b,m,M);c.push(M);h=F[F.length-1]}b.length=m;d=new Ra(null);pl(d,"XY",b,c);return d};l.sj=function(a){if(0>a||this.c.length<=a)return null;var b;0===a?b=0:(b=this.c[a-1],b=b[b.length-1]);a=this.c[a].slice();var c=a[a.length-1];if(0!==b){var d;var e=0;for(d=a.length;e<d;++e)a[e]-=b}e=new Fa(null);
Nf(e,this.a,this.j.slice(b,c),a);return e};l.Id=function(){var a=this.a,b=this.j,c=this.c,d=[],e=0,f,h;var m=0;for(f=c.length;m<f;++m){var q=c[m].slice(),w=q[q.length-1];if(0!==e){var F=0;for(h=q.length;F<h;++F)q[F]-=e}F=new Fa(null);Nf(F,a,b.slice(e,w),q);d.push(F);e=w}return d};l.M=function(){return"MultiPolygon"};l.ra=function(a){a:{var b=mh(this),c=this.c,d=this.s,e=0,f;var h=0;for(f=c.length;h<f;++h){var m=c[h];if(aq(b,e,m,d,a)){a=!0;break a}e=m[m.length-1]}a=!1}return a};l.W=function(a,b){if(null===
a)pl(this,"XY",null,this.c);else{hh(this,b,a,3);null===this.j&&(this.j=[]);b=this.j;var c=this.s,d=this.c,e=0;d=g(d)?d:[];var f=0,h;var m=0;for(h=a.length;m<h;++m)e=Wm(b,e,a[m],c,d[f]),d[f++]=e,e=e[e.length-1];d.length=f;0===d.length?this.j.length=0:(b=d[d.length-1],this.j.length=0===b.length?0:b[b.length-1]);this.k()}};var zq={Point:function(a,b,c,d){var e=c.f;if(null!==e){if(2!=e.gd())return;var f=a.b(c.b,"Image");f.Za(e);f.kb(b,d)}e=c.a;null!==e&&(a=a.b(c.b,"Text"),a.Ba(e),a.lb(b.K(),0,2,2,b,d))},
LineString:function(a,b,c,d){var e=c.c;if(null!==e){var f=a.b(c.b,"LineString");f.Aa(null,e);f.zb(b,d)}e=c.a;null!==e&&(a=a.b(c.b,"Text"),a.Ba(e),a.lb(xq(b),0,2,2,b,d))},Polygon:function(a,b,c,d){var e=c.e,f=c.c;if(null!==e||null!==f){var h=a.b(c.b,"Polygon");h.Aa(e,f);h.Rb(b,d)}e=c.a;null!==e&&(a=a.b(c.b,"Text"),a.Ba(e),a.lb(cn(b),0,2,2,b,d))},MultiPoint:function(a,b,c,d){var e=c.f;if(null!==e){if(2!=e.gd())return;var f=a.b(c.b,"Image");f.Za(e);f.jb(b,d)}e=c.a;null!==e&&(a=a.b(c.b,"Text"),a.Ba(e),
c=b.j,a.lb(c,0,c.length,b.s,b,d))},MultiLineString:function(a,b,c,d){var e=c.c;if(null!==e){var f=a.b(c.b,"LineString");f.Aa(null,e);f.vc(b,d)}e=c.a;null!==e&&(a=a.b(c.b,"Text"),a.Ba(e),c=yq(b),a.lb(c,0,c.length,2,b,d))},MultiPolygon:function(a,b,c,d){var e=c.e,f=c.c;if(null!==f||null!==e){var h=a.b(c.b,"Polygon");h.Aa(e,f);h.wc(b,d)}e=c.a;null!==e&&(a=a.b(c.b,"Text"),a.Ba(e),c=sn(b),a.lb(c,0,c.length,2,b,d))},GeometryCollection:function(a,b,c,d){b=b.d;var e;var f=0;for(e=b.length;f<e;++f)(0,zq[b[f].M()])(a,
b[f],c,d)},Circle:function(a,b,c,d){var e=c.e,f=c.c;if(null!==e||null!==f){var h=a.b(c.b,"Polygon");h.Aa(e,f);h.uc(b,d)}e=c.a;null!==e&&(a=a.b(c.b,"Text"),a.Ba(e),a.lb(b.dd(),0,2,2,b,d))}};I(vn,Di);vn.prototype.b=function(){return this.a};I(Zb,fc);Zb.prototype.i=function(a){a=a.target;switch(a.state){case 1:this.dispatchEvent(new Ri(Dx,a));break;case 2:this.dispatchEvent(new Ri(Ex,a));break;case 3:this.dispatchEvent(new Ri(Fx,a))}};I(Ri,tc);var Dx="imageloadstart",Ex="imageloadend",Fx="imageloaderror";
I(vc,Zb);vc.prototype.Cc=function(a,b,c,d){b=wn(this,b);var e=this.J;if(null!==e&&this.N==this.b&&e.resolution==b&&e.e==c&&qe(e.G(),a))return e;a=a.slice();Vc(a,this.X);d=this.T(a,b,c,[la(a)/b*c,R(a)/b*c],d);null===d||(e=new vn(a,b,c,this.d,d));this.J=e;this.N=this.b;return e};var rl,yn=!1,sl=[],Th=0,tl=2,Fg=3;nh.prototype.then=function(a,b,c){return Vu(this,x(a)?a:null,x(b)?b:null,c)};Aq(nh);nh.prototype.cancel=function(a){this.a==Th&&ql(function(){var b=new dk(a);Dq(this,b)},this)};nh.prototype.g=
function(a){this.a=Th;Si(this,tl,a)};nh.prototype.i=function(a){this.a=Th;Si(this,Fg,a)};nh.prototype.q=function(){for(;this.b&&this.b.length;){var a=this.b;this.b=[];for(var b=0;b<a.length;b++)Eq(this,a[b],this.a,this.f)}this.e=!1};var Yu=xp;I(dk,ka);dk.prototype.name="cancel";var Lv=gb.JSON.parse,Qo=gb.JSON.stringify;Gq.prototype.b=null;I(Jq,Gq);var xt=new Jq;var Zu=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,An=Wd;I(ul,Tc);var av=
"",dv=/^https?$/i,Gx=["POST","PUT"];l=ul.prototype;l.send=function(a,b,c,d){if(this.Y)throw Error("[goog.net.XhrIo] Object is active with another request\x3d"+this.o+"; newUri\x3d"+a);b=b?b.toUpperCase():"GET";this.o=a;this.e="";this.q=!1;this.b=!0;this.Y=this.i?Kq(this.i):Kq(xt);this.g=this.i?Hq(this.i):Hq(xt);this.Y.onreadystatechange=J(this.Xg,this);try{this.l=!0,this.Y.open(b,String(a),!0),this.l=!1}catch(f){Mq(this,f);return}a=c||"";var e=this.H.clone();d&&ju(d,function(f,h){e.set(h,f)});d=Ud(e.C(),
cv);c=gb.FormData&&a instanceof gb.FormData;!Nc(Gx,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset\x3dutf-8");e.forEach(function(f,h){this.Y.setRequestHeader(h,f)},this);this.n&&(this.Y.responseType=this.n);"withCredentials"in this.Y&&(this.Y.withCredentials=this.J);try{Qq(this),0<this.f&&((this.p=bv(this.Y))?(this.Y.timeout=this.f,this.Y.ontimeout=J(this.oc,this)):this.c=Fq(this.oc,this.f,this)),this.d=!0,this.Y.send(a),this.d=!1}catch(f){Mq(this,f)}};l.oc=function(){"undefined"!=
typeof Bn&&this.Y&&(this.e="Timed out after "+this.f+"ms, aborting",this.dispatchEvent("timeout"),this.Y&&this.b&&(this.b=!1,this.a=!0,this.Y.abort(),this.a=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),vl(this)))};l.O=function(){this.Y&&(this.b&&(this.b=!1,this.a=!0,this.Y.abort(),this.a=!1),vl(this,!0));ul.S.O.call(this)};l.Xg=function(){this.U||(this.l||this.d||this.a?Oq(this):this.dn())};l.dn=function(){Oq(this)};a:if(document.implementation&&document.implementation.createDocument)var yt=
document.implementation.createDocument("","",null);else{if("undefined"!=typeof ActiveXObject){var gi=new ActiveXObject("MSXML2.DOMDocument");gi.resolveExternals=!1;gi.validateOnParse=!1;try{gi.setProperty("ProhibitDTD",!0),gi.setProperty("MaxXMLSize",2048),gi.setProperty("MaxElementDepth",256)}catch(a){}if(gi){yt=gi;break a}}throw Error("Your browser does not support creating new documents");}var Vi=yt,jd=document.implementation&&document.implementation.createDocument?ev:fv,ai=jc?hv:gv,Og=jc?jv:iv,
Pg=jc?lv:kv,Hx=document.implementation&&document.implementation.createDocument?mv:nv,ov=document.implementation&&document.implementation.createDocument?pv:qv,$f=document.implementation&&document.implementation.createDocument?rv:sv,Pf=Zd(),Xq;(function(){var a={Qf:{}};(function(){function b(N,O){if(!(this instanceof b))return new b(N,O);this.Fe=Math.max(4,N||9);this.Hf=Math.max(2,Math.ceil(.4*this.Fe));O&&this.qi(O);this.clear()}function c(N,O){N.bbox=d(N,0,N.children.length,O)}function d(N,O,Z,ca){for(var ea=
[Infinity,Infinity,-Infinity,-Infinity],ia;O<Z;O++)ia=N.children[O],e(ea,N.wa?ca(ia):ia.bbox);return ea}function e(N,O){N[0]=Math.min(N[0],O[0]);N[1]=Math.min(N[1],O[1]);N[2]=Math.max(N[2],O[2]);N[3]=Math.max(N[3],O[3])}function f(N,O){return N.bbox[0]-O.bbox[0]}function h(N,O){return N.bbox[1]-O.bbox[1]}function m(N){return(N[2]-N[0])*(N[3]-N[1])}function q(N){return N[2]-N[0]+(N[3]-N[1])}function w(N,O){return N[0]<=O[0]&&N[1]<=O[1]&&O[2]<=N[2]&&O[3]<=N[3]}function F(N,O){return O[0]<=N[2]&&O[1]<=
N[3]&&O[2]>=N[0]&&O[3]>=N[1]}function M(N,O,Z,ca,ea){for(var ia=[O,Z],ja;ia.length;)Z=ia.pop(),O=ia.pop(),Z-O<=ca||(ja=O+Math.ceil((Z-O)/ca/2)*ca,S(N,O,Z,ja,ea),ia.push(O,ja,ja,Z))}function S(N,O,Z,ca,ea){for(var ia,ja,va,na,Ia;Z>O;){600<Z-O&&(ia=Z-O+1,ja=ca-O+1,va=Math.log(ia),na=.5*Math.exp(2*va/3),Ia=.5*Math.sqrt(va*na*(ia-na)/ia)*(0>ja-ia/2?-1:1),va=Math.max(O,Math.floor(ca-ja*na/ia+Ia)),ja=Math.min(Z,Math.floor(ca+(ia-ja)*na/ia+Ia)),S(N,va,ja,ca,ea));ia=N[ca];ja=O;na=Z;Y(N,O,ca);for(0<ea(N[Z],
ia)&&Y(N,O,Z);ja<na;){Y(N,ja,na);ja++;for(na--;0>ea(N[ja],ia);)ja++;for(;0<ea(N[na],ia);)na--}0===ea(N[O],ia)?Y(N,O,na):(na++,Y(N,na,Z));na<=ca&&(O=na+1);ca<=na&&(Z=na-1)}}function Y(N,O,Z){var ca=N[O];N[O]=N[Z];N[Z]=ca}b.prototype={all:function(){return this.Df(this.data,[])},search:function(N){var O=this.data,Z=[],ca=this.Ea;if(!F(N,O.bbox))return Z;for(var ea=[],ia,ja,va,na;O;){ia=0;for(ja=O.children.length;ia<ja;ia++)va=O.children[ia],na=O.wa?ca(va):va.bbox,F(N,na)&&(O.wa?Z.push(va):w(N,na)?this.Df(va,
Z):ea.push(va));O=ea.pop()}return Z},load:function(N){if(!N||!N.length)return this;if(N.length<this.Hf){for(var O=0,Z=N.length;O<Z;O++)this.ha(N[O]);return this}N=this.Ff(N.slice(),0,N.length-1,0);this.data.children.length?this.data.height===N.height?this.If(this.data,N):(this.data.height<N.height&&(O=this.data,this.data=N,N=O),this.Gf(N,this.data.height-N.height-1,!0)):this.data=N;return this},ha:function(N){N&&this.Gf(N,this.data.height-1);return this},clear:function(){this.data={children:[],height:1,
bbox:[Infinity,Infinity,-Infinity,-Infinity],wa:!0};return this},remove:function(N){if(!N)return this;for(var O=this.data,Z=this.Ea(N),ca=[],ea=[],ia,ja,va,na;O||ca.length;){O||(O=ca.pop(),ja=ca[ca.length-1],ia=ea.pop(),na=!0);if(O.wa&&(va=O.children.indexOf(N),-1!==va)){O.children.splice(va,1);ca.push(O);this.pi(ca);break}na||O.wa||!w(O.bbox,Z)?ja?(ia++,O=ja.children[ia],na=!1):O=null:(ca.push(O),ea.push(ia),ia=0,ja=O,O=O.children[0])}return this},Ea:function(N){return N},Ie:function(N,O){return N[0]-
O[0]},Je:function(N,O){return N[1]-O[1]},toJSON:function(){return this.data},Df:function(N,O){for(var Z=[];N;)N.wa?O.push.apply(O,N.children):Z.push.apply(Z,N.children),N=Z.pop();return O},Ff:function(N,O,Z,ca){var ea=Z-O+1,ia=this.Fe,ja;if(ea<=ia)return ja={children:N.slice(O,Z+1),height:1,bbox:null,wa:!0},c(ja,this.Ea),ja;ca||(ca=Math.ceil(Math.log(ea)/Math.log(ia)),ia=Math.ceil(ea/Math.pow(ia,ca-1)));ja={children:[],height:ca,bbox:null};ea=Math.ceil(ea/ia);ia=ea*Math.ceil(Math.sqrt(ia));var va;
for(M(N,O,Z,ia,this.Ie);O<=Z;O+=ia){var na=Math.min(O+ia-1,Z);M(N,O,na,ea,this.Je);for(va=O;va<=na;va+=ea){var Ia=Math.min(va+ea-1,na);ja.children.push(this.Ff(N,va,Ia,ca-1))}}c(ja,this.Ea);return ja},oi:function(N,O,Z,ca){for(var ea,ia,ja,va,na,Ia,cb,wa;;){ca.push(O);if(O.wa||ca.length-1===Z)break;cb=wa=Infinity;ea=0;for(ia=O.children.length;ea<ia;ea++){ja=O.children[ea];na=m(ja.bbox);Ia=N;var zb=ja.bbox;Ia=(Math.max(zb[2],Ia[2])-Math.min(zb[0],Ia[0]))*(Math.max(zb[3],Ia[3])-Math.min(zb[1],Ia[1]))-
na;Ia<wa?(wa=Ia,cb=na<cb?na:cb,va=ja):Ia===wa&&na<cb&&(cb=na,va=ja)}O=va}return O},Gf:function(N,O,Z){var ca=this.Ea;Z=Z?N.bbox:ca(N);ca=[];var ea=this.oi(Z,this.data,O,ca);ea.children.push(N);for(e(ea.bbox,Z);0<=O;)if(ca[O].children.length>this.Fe)this.ri(ca,O),O--;else break;this.li(Z,ca,O)},ri:function(N,O){var Z=N[O],ca=Z.children.length,ea=this.Hf;this.mi(Z,ea,ca);ca={children:Z.children.splice(this.ni(Z,ea,ca)),height:Z.height};Z.wa&&(ca.wa=!0);c(Z,this.Ea);c(ca,this.Ea);O?N[O-1].children.push(ca):
this.If(Z,ca)},If:function(N,O){this.data={children:[N,O],height:N.height+1};c(this.data,this.Ea)},ni:function(N,O,Z){var ca,ea,ia;var ja=ea=Infinity;for(ca=O;ca<=Z-O;ca++){var va=d(N,0,ca,this.Ea);var na=d(N,ca,Z,this.Ea);var Ia=va,cb=na;var wa=Math.max(Ia[0],cb[0]);var zb=Math.max(Ia[1],cb[1]),Ub=Math.min(Ia[2],cb[2]);Ia=Math.min(Ia[3],cb[3]);wa=Math.max(0,Ub-wa)*Math.max(0,Ia-zb);va=m(va)+m(na);wa<ja?(ja=wa,ia=ca,ea=va<ea?va:ea):wa===ja&&va<ea&&(ea=va,ia=ca)}return ia},mi:function(N,O,Z){var ca=
N.wa?this.Ie:f,ea=N.wa?this.Je:h,ia=this.Ef(N,O,Z,ca);O=this.Ef(N,O,Z,ea);ia<O&&N.children.sort(ca)},Ef:function(N,O,Z,ca){N.children.sort(ca);ca=this.Ea;var ea=d(N,0,O,ca),ia=d(N,Z-O,Z,ca),ja=q(ea)+q(ia),va;for(va=O;va<Z-O;va++){var na=N.children[va];e(ea,N.wa?ca(na):na.bbox);ja+=q(ea)}for(va=Z-O-1;va>=O;va--)na=N.children[va],e(ia,N.wa?ca(na):na.bbox),ja+=q(ia);return ja},li:function(N,O,Z){for(;0<=Z;Z--)e(O[Z].bbox,N)},pi:function(N){for(var O=N.length-1,Z;0<=O;O--)0===N[O].children.length?0<O?
(Z=N[O-1].children,Z.splice(Z.indexOf(N[O]),1)):this.clear():c(N[O],this.Ea)},qi:function(N){var O=["return a"," - b",";"];this.Ie=new Function("a","b",O.join(N[0]));this.Je=new Function("a","b",O.join(N[1]));this.Ea=new Function("a","return [a"+N.join(", a")+"];")}};"function"===typeof define&&define.Lo?define("rbush",function(){return b}):"undefined"!==typeof a?a.Qf=b:"undefined"!==typeof self?self.b=b:window.b=b})();Xq=a.Qf})();l=fk.prototype;l.ha=function(a,b){a=[a[0],a[1],a[2],a[3],b];this.a.ha(a);
this.b[C(b)]=a};l.load=function(a,b){for(var c=Array(b.length),d=0,e=b.length;d<e;d++){var f=a[d],h=b[d];f=[f[0],f[1],f[2],f[3],h];c[d]=f;this.b[C(h)]=f}this.a.load(c)};l.remove=function(a){a=C(a);var b=this.b[a];Fe(this.b,a);return null!==this.a.remove(b)};l.update=function(a,b){var c=C(b);Gh(this.b[c].slice(0,4),a)||(this.remove(b),this.ha(a,b))};l.forEach=function(a,b){return Zq(Yq(this),a,b)};l.la=function(){return le(this.b)};l.clear=function(){this.a.clear();this.b={}};l.G=function(){return this.a.data.bbox};
I(bb,fc);l=bb.prototype;l.jf=function(a){var b=C(a).toString();if(br(this,b,a)){ar(this,b,a);var c=a.Q();null!=c?(b=c.G(),this.a.ha(b,a)):this.c[b]=a;this.dispatchEvent(new qg("addfeature",a))}this.k()};l.Oc=function(a){$q(this,a);this.k()};l.clear=function(a){if(a){for(var b in this.i)Oa(this.i[b],Hb);this.i={};this.e={};this.g={}}else a=this.ph,this.a.forEach(a,this),ob(this.c,a,this);this.a.clear();this.N.clear();this.c={};this.dispatchEvent(new qg("clear"));this.k()};l.Rf=function(a,b){return this.a.forEach(a,
b)};l.$c=function(a,b,c){return Wi(this.a,a,b,c)};l.Ab=function(a,b,c,d){return this.$c(a,c,d)};l.Oe=function(a,b,c){return this.$c(a,function(d){if(d.Q().ra(a)&&(d=b.call(c,d)))return d})};l.Dc=function(){var a=Yq(this.a);le(this.c)||Tb(a,Vd(this.c));return a};l.Re=function(a){var b=[];uv(this,a,function(c){b.push(c)});return b};l.Se=function(a){return gk(this.a,a)};l.Tf=function(a){var b=a[0],c=a[1],d=null,e=[NaN,NaN],f=Infinity,h=[-Infinity,-Infinity,Infinity,Infinity];Wi(this.a,h,function(m){var q=
m.Q(),w=f;f=q.Sa(b,c,e,f);f<w&&(d=m,m=Math.sqrt(f),h[0]=b-m,h[1]=c-m,h[2]=b+m,h[3]=c+m)});return d};l.G=function(){return this.a.G()};l.Qe=function(a){a=this.e[a.toString()];return g(a)?a:null};l.Pg=function(a){a=a.target;var b=C(a).toString(),c=a.Q();null!=c?(c=c.G(),b in this.c?(delete this.c[b],this.a.ha(c,a)):this.a.update(c,a)):b in this.c||(this.a.remove(a),this.c[b]=a);c=a.$;g(c)?(c=c.toString(),b in this.g?(delete this.g[b],this.e[c]=a):this.e[c]!==a&&(cr(this,a),this.e[c]=a)):b in this.g||
(cr(this,a),this.g[b]=a);this.k();this.dispatchEvent(new qg("changefeature",a))};l.la=function(){return this.a.la()&&le(this.c)};l.ac=function(a,b,c){var d=this.N;a=this.oa(a,b);var e;var f=0;for(e=a.length;f<e;++f){var h=a[f];Wi(d,h,function(m){return qe(m.extent,h)})||(this.J.call(this,h,b,c),d.ha(h,{extent:h.slice()}))}};l.Qg=function(a){var b=C(a).toString();b in this.c?delete this.c[b]:this.a.remove(a);this.ph(a);this.k()};l.ph=function(a){var b=C(a).toString();Oa(this.i[b],Hb);delete this.i[b];
var c=a.$;g(c)?delete this.e[c.toString()]:delete this.g[b];this.dispatchEvent(new qg("removefeature",a))};I(qg,tc);I(Pb,vc);l=Pb.prototype;l.zi=function(a,b,c,d,e){var f=new kh(.5*b/c,a,b);this.a.ac(a,b,e);var h=!1;this.a.Ab(a,b,function(m){var q;if(!(q=h)){var w;g(m.c)?w=m.c.call(m,b):g(this.g)&&(w=this.g(m,b));if(null!=w){var F,M=!1;q=0;for(F=w.length;q<F;++q)M=ck(f,m,w[q],bk(b,c),this.$l,this)||M;q=M}else q=!1}h=q},this);Yj(f);if(h)return null;this.e[0]!=d[0]||this.e[1]!=d[1]?(this.c.canvas.width=
d[0],this.c.canvas.height=d[1],this.e[0]=d[0],this.e[1]=d[1]):this.c.clearRect(0,0,d[0],d[1]);a=vv(this,y(a),b,c,d);lh(f,this.c,c,a,0,{});this.n=f;return this.c.canvas};l.ge=function(a,b,c,d,e){if(null!==this.n){var f={};return this.n.c(a,b,0,d,function(h){var m=C(h).toString();if(!(m in f))return f[m]=!0,e(h)})}};l.Xl=function(){return this.a};l.Yl=function(){return this.p};l.Zl=function(){return this.g};l.$l=function(){this.k()};l.am=function(){xi(this,this.a.o)};l.Mg=function(a){this.p=g(a)?a:
Xj;this.g=null===a?void 0:gn(this.p);this.k()};I(Ze,ie);l=Ze.prototype;l.Pa=function(a,b,c,d){var e=this.a;return e.da().ge(a,b.viewState.resolution,b.viewState.rotation,b.skippedFeatureUids,function(f){return c.call(d,f,e)})};l.dc=function(a,b,c,d){if(null!==this.fe())if(this.a.da()instanceof Pb){if(a=a.slice(),Cf(b.pixelToCoordinateMatrix,a,a),this.Pa(a,b,Le,this))return c.call(d,this.a)}else if(null===this.d&&(this.d=fd(),mi(this.f,this.d)),b=tq(a,this.d),null===this.c&&(this.c=se(1,1)),this.c.clearRect(0,
0,1,1),this.c.drawImage(this.fe(),b[0],b[1],1,1,0,0,1,1),0<this.c.getImageData(0,0,1,1).data[3])return c.call(d,this.a)};l.fe=function(){return null===this.e?null:this.e.b()};l.Xf=function(){return this.f};l.ff=function(a,b){var c=a.pixelRatio,d=a.viewState,e=d.center,f=d.resolution,h=d.rotation,m=this.a.da(),q=a.viewHints;var w=a.extent;g(b.extent)&&(w=aa(w,b.extent));q[0]||q[1]||Ja(w)||(d=d.projection,q=m.f,null===q||(d=q),w=m.Cc(w,f,c,d),null!==w&&Dm(this,w)&&(this.e=w));null!==this.e&&(w=this.e,
d=w.G(),q=w.resolution,b=w.e,f=c*q/(f*b),Ae(this.f,c*a.size[0]/2,c*a.size[1]/2,f,f,h,b*(d[0]-e[0])/q,b*(e[1]-d[3])/q),this.d=null,Ei(a.attributions,w.f),Dg(a,m));return!0};I(ue,ie);ue.prototype.fe=function(){return this.f};ue.prototype.Xf=function(){return this.l};ue.prototype.ff=function(a,b){var c=a.pixelRatio,d=a.viewState,e=d.projection,f=this.a,h=f.da(),m=Cg(h,e),q=h.Cd(),w=Kh(m,d.resolution),F=h.Xb(w,a.pixelRatio,e),M=F[0]/Xd(m.na(w),this.L)[0],S=m.ma(w);M=S/M;var Y=d.center,N;S==d.resolution?
(Y=Gm(Y,S,a.size),N=K(Y,S,d.rotation,a.size)):N=a.extent;g(b.extent)&&(N=aa(N,b.extent));if(Ja(N))return!1;b=Vk(m,N,S);var O=F[0]*ef(b),Z=F[1]*(b.a-b.c+1),ca,ea;null===this.f?(ea=se(O,Z),this.f=ea.canvas,this.c=[O,Z],this.g=ea,this.q=!wt(this.c)):(ca=this.f,ea=this.g,this.c[0]<O||this.c[1]<Z||this.H!==F[0]||this.p!==F[1]||this.q&&(this.c[0]>O||this.c[1]>Z)?(ca.width=O,ca.height=Z,this.c=[O,Z],this.q=!wt(this.c),this.d=null):(O=this.c[0],Z=this.c[1],(ca=w!=this.n)||(ca=this.d,ca=!(ca.b<=b.b&&b.d<=
ca.d&&ca.c<=b.c&&b.a<=ca.a)),ca&&(this.d=null)));var ia,ja;null===this.d?(O/=F[0],Z/=F[1],ia=b.b-Math.floor((O-ef(b))/2),ja=b.c-Math.floor((Z-(b.a-b.c+1))/2),this.n=w,this.H=F[0],this.p=F[1],this.d=new jg(ia,ia+O-1,ja,ja+Z-1),this.i=Array(O*Z),Z=this.d):(Z=this.d,O=ef(Z));ca={};ca[w]={};var va=[],na=this.yd(h,ca),Ia=f.c(),cb=Yd(),wa=new jg(0,0,0,0),zb,Ub;for(ja=b.b;ja<=b.d;++ja)for(Ub=b.c;Ub<=b.a;++Ub){var Ib=h.Vb(w,ja,Ub,c,e);ia=Ib.state;2==ia||4==ia||3==ia&&!Ia?ca[w][ig(Ib.b)]=Ib:(zb=m.Ad(Ib.b,
na,null,wa,cb),zb||(va.push(Ib),zb=m.Ld(Ib.b,wa,cb),null===zb||na(w+1,zb)))}na=0;for(zb=va.length;na<zb;++na)Ib=va[na],ja=F[0]*(Ib.b[1]-Z.b),Ub=F[1]*(Z.a-Ib.b[2]),ea.clearRect(ja,Ub,F[0],F[1]);va=Jc(Fd(ca),Number);Bd(va);var ec=h.X,ze=U(Bf(m,[w,Z.b,Z.a],cb)),wd,Pd,Qg;na=0;for(zb=va.length;na<zb;++na)if(wd=va[na],F=h.Xb(wd,c,e),Qg=ca[wd],wd==w)for(Pd in Qg){Ib=Qg[Pd];var wh=(Ib.b[2]-Z.c)*O+(Ib.b[1]-Z.b);this.i[wh]!=Ib&&(ja=F[0]*(Ib.b[1]-Z.b),Ub=F[1]*(Z.a-Ib.b[2]),ia=Ib.state,4!=ia&&(3!=ia||Ia)&&ec||
ea.clearRect(ja,Ub,F[0],F[1]),2==ia&&ea.drawImage(Ib.Ma(),q,q,F[0],F[1],ja,Ub,F[0],F[1]),this.i[wh]=Ib)}else for(Pd in wd=m.ma(wd)/S,Qg){Ib=Qg[Pd];wh=Bf(m,Ib.b,cb);ja=(wh[0]-ze[0])/M;Ub=(ze[1]-wh[3])/M;var zt=wd*F[0];var mj=wd*F[1];ia=Ib.state;4!=ia&&ec||ea.clearRect(ja,Ub,zt,mj);2==ia&&ea.drawImage(Ib.Ma(),q,q,F[0],F[1],ja,Ub,zt,mj);Ib=Xe(m,wh,w,wa);ia=Math.max(Ib.b,Z.b);Ub=Math.min(Ib.d,Z.d);ja=Math.max(Ib.c,Z.c);for(Ib=Math.min(Ib.a,Z.a);ia<=Ub;++ia)for(mj=ja;mj<=Ib;++mj)wh=(mj-Z.c)*O+(ia-Z.b),
this.i[wh]=void 0}Fm(a.usedTiles,h,w,b);Hm(a,h,m,c,e,N,w,f.a());Em(a,h);Dg(a,h);Ae(this.l,c*a.size[0]/2,c*a.size[1]/2,c*M/d.resolution,c*M/d.resolution,d.rotation,(ze[0]-Y[0])/M,(Y[1]-ze[1])/M);this.e=null;return!0};ue.prototype.dc=function(a,b,c,d){if(null!==this.g&&(null===this.e&&(this.e=fd(),mi(this.l,this.e)),a=tq(a,this.e),0<this.g.getImageData(a[0],a[1],1,1).data[3]))return c.call(d,this.a)};I(ve,ie);ve.prototype.o=function(a,b,c){var d=a.extent,e=a.focus,f=a.pixelRatio,h=a.skippedFeatureUids,
m=a.viewState,q=m.projection;m=m.rotation;var w=q.G(),F=this.a.da(),M=ml(this,a,0);Zj(this,"precompose",c,a,M);var S=this.c;if(null!==S&&!S.la()){var Y;Jf(this.a,"render")?(this.e.canvas.width=c.canvas.width,this.e.canvas.height=c.canvas.height,Y=this.e):Y=c;var N=Y.globalAlpha;Y.globalAlpha=b.opacity;b={};e=e[0];if(F.H&&q.c&&!qe(w,d)){q=w[0];F=w[2];lh(S,Y,f,M,m,q<=e&&e<=F?h:b);for(var O=d[0],Z=la(w),ca=0,ea;O<w[0];)--ca,ea=Z*ca,M=ml(this,a,ea),lh(S,Y,f,M,m,q+ea<=e&&e<=F+ea?h:b),O+=Z;ca=0;for(O=d[2];O>
w[2];)++ca,ea=Z*ca,M=ml(this,a,ea),lh(S,Y,f,M,m,q+ea<=e&&e<=F+ea?h:b),O-=Z}else lh(S,Y,f,M,m,h);Y!=c&&(Zj(this,"render",Y,a,M),c.drawImage(Y.canvas,0,0));Y.globalAlpha=N}Zj(this,"postcompose",c,a,M)};ve.prototype.Pa=function(a,b,c,d){if(null!==this.c){var e=this.a,f={};return this.c.c(a,b.viewState.resolution,b.viewState.rotation,b.skippedFeatureUids,function(h){var m=C(h).toString();if(!(m in f))return f[m]=!0,c.call(d,h,e)})}};ve.prototype.l=function(){gl(this)};ve.prototype.ff=function(a){function b(N){var O;
g(N.c)?O=N.c.call(N,w):g(c.a)&&(O=(0,c.a)(N,w));if(null!=O){if(null!=O){var Z,ca=!1;var ea=0;for(Z=O.length;ea<Z;++ea)ca=ck(S,N,O[ea],bk(w,F),this.l,this)||ca;N=ca}else N=!1;this.d=this.d||N}}var c=this.a,d=c.da();Ei(a.attributions,d.d);Dg(a,d);var e=a.viewHints[0],f=a.viewHints[1],h=c.o,m=c.n;if(!this.d&&!h&&e||!m&&f)return!0;var q=a.extent;e=a.viewState;f=e.projection;var w=e.resolution,F=a.pixelRatio;h=c.b;var M=c.c;m=c.get("renderOrder");g(m)||(m=un);q=yf(q,M*w);M=e.projection.G();d.H&&e.projection.c&&
!qe(M,a.extent)&&(q[0]=M[0],q[2]=M[2]);if(!this.d&&this.i==w&&this.q==h&&this.g==m&&qe(this.f,q))return!0;qf(this.c);this.c=null;this.d=!1;var S=new kh(.5*w/F,q,w,c.c);d.ac(q,w,f);if(null===m)d.Ab(q,w,b,this);else{var Y=[];d.Ab(q,w,function(N){Y.push(N)},this);Bd(Y,m);Oa(Y,b,this)}Yj(S);this.i=w;this.q=h;this.g=m;this.f=q;this.c=S;return!0};I(hk,mg);hk.prototype.Ke=function(a){return a instanceof Va?new Ze(a):a instanceof Ea?new ue(a):a instanceof Ga?new ve(a):null};hk.prototype.M=function(){return"canvas"};
hk.prototype.ue=function(a){if(null===a)this.a&&(ge(this.b,!1),this.a=!1);else{var b=this.d,c=a.size[0]*a.pixelRatio,d=a.size[1]*a.pixelRatio;this.b.width!=c||this.b.height!=d?(this.b.width=c,this.b.height=d):b.clearRect(0,0,this.b.width,this.b.height);Im(a);dr(this,"precompose",a);c=a.layerStatesArray;d=a.viewState.resolution;var e;var f=0;for(e=c.length;f<e;++f){var h=c[f];var m=h.layer;m=Eg(this,m);gh(h,d)&&"ready"==h.i&&m.ff(a,h)&&m.o(a,h,b)}dr(this,"postcompose",a);this.a||(ge(this.b,!0),this.a=
!0);Km(this,a);a.postRenderFunctions.push(Jm)}};I($d,he);$d.prototype.e=A;$d.prototype.i=A;I(Be,$d);Be.prototype.Pa=function(a,b,c,d){var e=this.a;return e.da().ge(a,b.viewState.resolution,b.viewState.rotation,b.skippedFeatureUids,function(f){return c.call(d,f,e)})};Be.prototype.e=function(){P(this.target);this.c=null};Be.prototype.f=function(a,b){var c=a.viewState,d=c.center,e=c.resolution,f=c.rotation,h=this.c,m=this.a.da(),q=a.viewHints,w=a.extent;g(b.extent)&&(w=aa(w,b.extent));q[0]||q[1]||Ja(w)||
(c=c.projection,q=m.f,null===q||(c=q),w=m.Cc(w,e,a.pixelRatio,c),null===w||Dm(this,w)&&(h=w));null!==h&&(c=h.G(),q=h.resolution,w=fd(),Ae(w,a.size[0]/2,a.size[1]/2,q/e,q/e,f,(c[0]-d[0])/q,(d[1]-c[3])/q),h!=this.c&&(d=h.b(this),d.style.maxWidth="none",d.style.position="absolute",P(this.target),this.target.appendChild(d),this.c=h),Cm(w,this.d)||(om(this.target,w),Dh(this.d,w)),Ei(a.attributions,h.f),Dg(a,m));return!0};I(Ne,$d);Ne.prototype.e=function(){P(this.target);this.g=0};Ne.prototype.f=function(a,
b){if(!b.visible)return this.d&&(ge(this.target,!1),this.d=!1),!0;var c=a.pixelRatio,d=a.viewState,e=d.projection,f=this.a,h=f.da(),m=Cg(h,e),q=h.Cd(),w=Kh(m,d.resolution),F=m.ma(w),M=d.center,S;F==d.resolution?(M=Gm(M,F,a.size),S=K(M,F,d.rotation,a.size)):S=a.extent;g(b.extent)&&(S=aa(S,b.extent));F=Vk(m,S,F);var Y={};Y[w]={};var N=this.yd(h,Y),O=f.c(),Z=Yd(),ca=new jg(0,0,0,0),ea,ia;for(ea=F.b;ea<=F.d;++ea)for(ia=F.c;ia<=F.a;++ia){var ja=h.Vb(w,ea,ia,c,e);var va=ja.state;2==va?Y[w][ig(ja.b)]=ja:
4==va||3==va&&!O||(va=m.Ad(ja.b,N,null,ca,Z),va||(ja=m.Ld(ja.b,ca,Z),null===ja||N(w+1,ja)))}if(this.g!=h.b){for(na in this.c)O=this.c[+na],T(O.target);this.c={};this.g=h.b}Z=Jc(Fd(Y),Number);Bd(Z);N={};ea=0;for(ia=Z.length;ea<ia;++ea){var na=Z[ea];na in this.c?O=this.c[na]:(O=m.cd(M,na),O=new wv(m,O),N[na]=!0,this.c[na]=O);na=Y[na];for(Pd in na){ja=O;va=na[Pd];var Ia=q,cb=va.b,wa=cb[0],zb=cb[1],Ub=cb[2];cb=ig(cb);if(!(cb in ja.a)){wa=Xd(ja.d.na(wa),ja.i);var Ib=va.Ma(ja),ec=Ib.style;ec.maxWidth="none";
var ze=void 0,wd=void 0;0<Ia?(ze=Kd("DIV"),wd=ze.style,wd.overflow="hidden",wd.width=wa[0]+"px",wd.height=wa[1]+"px",ec.position="absolute",ec.left=-Ia+"px",ec.top=-Ia+"px",ec.width=wa[0]+2*Ia+"px",ec.height=wa[1]+2*Ia+"px",ze.appendChild(Ib)):(ec.width=wa[0]+"px",ec.height=wa[1]+"px",ze=Ib,wd=ec);wd.position="absolute";wd.left=(zb-ja.c[1])*wa[0]+"px";wd.top=(ja.c[2]-Ub)*wa[1]+"px";null===ja.b&&(ja.b=document.createDocumentFragment());ja.b.appendChild(ze);ja.a[cb]=va}}null!==O.b&&(O.target.appendChild(O.b),
O.b=null)}q=Jc(Fd(this.c),Number);Bd(q);ea=fd();var Pd=0;for(Z=q.length;Pd<Z;++Pd)if(na=q[Pd],O=this.c[na],na in Y)if(ja=O.g,ia=O.f,Ae(ea,a.size[0]/2,a.size[1]/2,ja/d.resolution,ja/d.resolution,d.rotation,(ia[0]-M[0])/ja,(M[1]-ia[1])/ja),ia=O,ja=ea,Cm(ja,ia.e)||(om(ia.target,ja),Dh(ia.e,ja)),na in N){for(--na;0<=na;--na)if(na in this.c){ia=this.c[na].target;ia.parentNode&&ia.parentNode.insertBefore(O.target,ia.nextSibling);break}0>na&&V(this.target,O.target,0)}else{if(!a.viewHints[0]&&!a.viewHints[1]){va=
Xe(O.d,S,O.c[0],ca);na=[];ja=ia=void 0;for(ja in O.a)ia=O.a[ja],va.contains(ia.b)||na.push(ia);va=0;for(Ia=na.length;va<Ia;++va)ia=na[va],ja=ig(ia.b),T(ia.Ma(O)),delete O.a[ja]}}else T(O.target),delete this.c[na];b.opacity!=this.q&&(this.q=this.target.style.opacity=b.opacity);b.visible&&!this.d&&(ge(this.target,!0),this.d=!0);Fm(a.usedTiles,h,w,F);Hm(a,h,m,c,e,S,w,f.a());Em(a,h);Dg(a,h);return!0};I(we,$d);we.prototype.i=function(a,b){var c=a.viewState,d=c.center,e=c.rotation,f=c.resolution;c=a.pixelRatio;
var h=a.size[0],m=a.size[1],q=h*c,w=m*c;d=Ae(this.H,c*h/2,c*m/2,c/f,-c/f,-e,-d[0],-d[1]);f=this.g;f.canvas.width=q;f.canvas.height=w;h=Ae(this.p,0,0,1/c,1/c,0,-(q-h)/2*c,-(w-m)/2*c);om(f.canvas,h);Fn(this,"precompose",a,d);h=this.c;null===h||h.la()||(f.globalAlpha=b.opacity,lh(h,f,c,d,e,a.skippedFeatureUids),Fn(this,"render",a,d));Fn(this,"postcompose",a,d)};we.prototype.Pa=function(a,b,c,d){if(null!==this.c){var e=this.a,f={};return this.c.c(a,b.viewState.resolution,b.viewState.rotation,b.skippedFeatureUids,
function(h){var m=C(h).toString();if(!(m in f))return f[m]=!0,c.call(d,h,e)})}};we.prototype.J=function(){gl(this)};we.prototype.f=function(a){function b(S){var Y;g(S.c)?Y=S.c.call(S,q):g(c.a)&&(Y=(0,c.a)(S,q));if(null!=Y){if(null!=Y){var N,O=!1;var Z=0;for(N=Y.length;Z<N;++Z)O=ck(F,S,Y[Z],bk(q,w),this.J,this)||O;S=O}else S=!1;this.d=this.d||S}}var c=this.a,d=c.da();Ei(a.attributions,d.d);Dg(a,d);var e=a.viewHints[0],f=a.viewHints[1],h=c.o,m=c.n;if(!this.d&&!h&&e||!m&&f)return!0;f=a.extent;h=a.viewState;
e=h.projection;var q=h.resolution,w=a.pixelRatio;a=c.b;m=c.c;h=c.get("renderOrder");g(h)||(h=un);f=yf(f,m*q);if(!this.d&&this.o==q&&this.n==a&&this.l==h&&qe(this.q,f))return!0;qf(this.c);this.c=null;this.d=!1;var F=new kh(.5*q/w,f,q,c.c);d.ac(f,q,e);if(null===h)d.Ab(f,q,b,this);else{var M=[];d.Ab(f,q,function(S){M.push(S)},this);Bd(M,h);Oa(M,b,this)}Yj(F);this.o=q;this.n=a;this.l=h;this.q=f;this.c=F;return!0};I(Uh,mg);Uh.prototype.O=function(){T(this.b);Uh.S.O.call(this)};Uh.prototype.Ke=function(a){if(a instanceof
Va)a=new Be(a);else if(a instanceof Ea)a=new Ne(a);else if(a instanceof Ga)a=new we(a);else return null;return a};Uh.prototype.M=function(){return"dom"};Uh.prototype.ue=function(a){if(null===a)this.d&&(ge(this.b,!1),this.d=!1);else{var b=function(w,F){V(this.b,w,F)};var c=this.g;if(Jf(c,"precompose")||Jf(c,"postcompose")){c=this.a.canvas;var d=a.pixelRatio;c.width=a.size[0]*d;c.height=a.size[1]*d}er(this,"precompose",a);c=a.layerStatesArray;d=a.viewState.resolution;var e;var f=0;for(e=c.length;f<
e;++f){var h=c[f];var m=h.layer;m=Eg(this,m);b.call(this,m.target,f);gh(h,d)&&"ready"==h.i?m.f(a,h)&&m.i(a,h):m.e()}b=a.layerStates;for(var q in this.f)q in b||(m=this.f[q],T(m.target));this.d||(ge(this.b,!0),this.d=!0);Im(a);Km(this,a);a.postRenderFunctions.push(Jm);er(this,"postcompose",a)}};I(Vh,fr);Vh.prototype.M=function(){return 35632};I(Wh,fr);Wh.prototype.M=function(){return 35633};I(Gn,Vh);r(Gn);I(Hn,Wh);r(Hn);I(In,Vh);r(In);I(Jn,Wh);r(Jn);l=Gg.prototype;l.O=function(){var a=this.b;a.isContextLost()||
(ob(this.a,function(b){a.deleteBuffer(b.buffer)}),ob(this.e,function(b){a.deleteProgram(b)}),ob(this.f,function(b){a.deleteShader(b)}),a.deleteFramebuffer(this.d),a.deleteRenderbuffer(this.i),a.deleteTexture(this.q))};l.Xm=function(){return this.b};l.Te=function(){if(null===this.d){var a=this.b,b=a.createFramebuffer();a.bindFramebuffer(a.FRAMEBUFFER,b);var c=ir(a,1,1),d=a.createRenderbuffer();a.bindRenderbuffer(a.RENDERBUFFER,d);a.renderbufferStorage(a.RENDERBUFFER,a.DEPTH_COMPONENT16,1,1);a.framebufferTexture2D(a.FRAMEBUFFER,
a.COLOR_ATTACHMENT0,a.TEXTURE_2D,c,0);a.framebufferRenderbuffer(a.FRAMEBUFFER,a.DEPTH_ATTACHMENT,a.RENDERBUFFER,d);a.bindTexture(a.TEXTURE_2D,null);a.bindRenderbuffer(a.RENDERBUFFER,null);a.bindFramebuffer(a.FRAMEBUFFER,null);this.d=b;this.q=c;this.i=d}return this.d};l.Ym=function(){bg(this.a);bg(this.f);bg(this.e);this.i=this.q=this.d=this.g=null};l.Zm=function(){};l.oe=function(a){if(a==this.g)return!1;this.b.useProgram(a);this.g=a;return!0};I(ik,il);ik.prototype.jb=function(a,b){this.c.push(this.a.length);
this.l.push(b);b=a.j;kr(this,b,b.length,a.s)};ik.prototype.kb=function(a,b){this.c.push(this.a.length);this.l.push(b);b=a.j;kr(this,b,b.length,a.s)};ik.prototype.Za=function(a){var b=a.mb(),c=a.Lb(1),d=a.Dd(),e=a.he(1),f=a.U,h=a.rb(),m=a.V,q=a.q,w=a.Xa();a=a.l;var F;0===this.e.length?this.e.push(c):(F=this.e[this.e.length-1],C(F)!=C(c)&&(this.U.push(this.a.length),this.e.push(c)));0===this.d.length?this.d.push(e):(F=this.d[this.d.length-1],C(F)!=C(e)&&(this.f.push(this.a.length),this.d.push(e)));
this.V=b[0];this.n=b[1];this.J=w[1];this.L=d[1];this.N=d[0];this.T=f;this.sa=h[0];this.X=h[1];this.oa=q;this.ba=m;this.Fa=a;this.Ga=w[0]};Xh.prototype.b=function(a,b){a=this.a[b];g(a)||(a=new Ix[b](this.f,this.e),this.a[b]=a);return a};Xh.prototype.la=function(){return le(this.a)};Xh.prototype.c=function(a,b,c,d,e,f,h,m,q,w,F,M,S,Y){var N=b.b;N.bindFramebuffer(N.FRAMEBUFFER,b.Te());var O;g(this.d)&&(O=yf(oi(a),d*this.d));return or(this,b,a,d,e,m,q,w,F,M,S,function(Z){var ca=new Uint8Array(4);N.readPixels(0,
0,1,1,N.RGBA,N.UNSIGNED_BYTE,ca);if(0<ca[3]&&(Z=Y(Z)))return Z},!0,O)};var Ix={Image:ik},Av=[1,1];I(Hc,il);l=Hc.prototype;l.tc=function(a,b){a=a.toString();var c=this.b[a];g(c)?c.push(b):this.b[a]=[b]};l.uc=function(){};l.Le=function(a,b){var c=(0,b.d)(a);null!=c&&sa(this.d,c.G())&&(a=b.b,g(a)||(a=0),this.tc(a,function(d){d.Aa(b.e,b.c);d.Za(b.f);d.Ba(b.a);var e=At[c.M()];e&&e.call(d,c,null)}))};l.zd=function(a,b){a=a.d;var c;var d=0;for(c=a.length;d<c;++d){var e=a[d],f=At[e.M()];f&&f.call(this,e,
b)}};l.kb=function(a,b){var c=this.a,d=(new Xh(1,this.d)).b(0,"Image");d.Za(this.c);d.kb(a,b);Nn(d,c);jk(d,this.a,this.e,this.f,this.g,this.i,1,0,1,0,1,{},void 0,!1);Mn(d,c)()};l.zb=function(){};l.vc=function(){};l.jb=function(a,b){var c=this.a,d=(new Xh(1,this.d)).b(0,"Image");d.Za(this.c);d.jb(a,b);Nn(d,c);jk(d,this.a,this.e,this.f,this.g,this.i,1,0,1,0,1,{},void 0,!1);Mn(d,c)()};l.wc=function(){};l.Rb=function(){};l.lb=function(){};l.Aa=function(){};l.Za=function(a){this.c=a};l.Ba=function(){};
var At={Point:Hc.prototype.kb,MultiPoint:Hc.prototype.jb,GeometryCollection:Hc.prototype.zd};I(Qn,Vh);r(Qn);I(Rn,Wh);r(Rn);I(Sn,Vh);r(Sn);I(Tn,Wh);r(Tn);I(ae,he);ae.prototype.Lg=function(a,b,c){pr(this,"precompose",c,a);Xi(c,34962,this.N);var d=c.b,e=b.brightness||1!=b.contrast||b.hue||1!=b.saturation,f,h;e?(f=Qn.Ia(),h=Rn.Ia()):(f=Sn.Ia(),h=Tn.Ia());f=Ln(c,f,h);e?null===this.l?this.l=h=new Bv(d,f):h=this.l:null===this.o?this.o=h=new Cv(d,f):h=this.o;c.oe(f)&&(d.enableVertexAttribArray(h.b),d.vertexAttribPointer(h.b,
2,5126,!1,16,0),d.enableVertexAttribArray(h.a),d.vertexAttribPointer(h.a,2,5126,!1,16,8),d.uniform1i(h.e,0));d.uniformMatrix4fv(h.f,!1,this.q);d.uniformMatrix4fv(h.d,!1,this.n);e&&d.uniformMatrix4fv(h.g,!1,Gj(this.T,b.brightness,b.contrast,b.hue,b.saturation));d.uniform1f(h.c,b.opacity);d.bindTexture(3553,this.Qa);d.drawArrays(5,0,4);pr(this,"postcompose",c,a)};ae.prototype.gf=function(){this.e=this.Qa=null;this.f=void 0};I(xe,ae);xe.prototype.Pa=function(a,b,c,d){var e=this.a;return e.da().ge(a,
b.viewState.resolution,b.viewState.rotation,b.skippedFeatureUids,function(f){return c.call(d,f,e)})};xe.prototype.hf=function(a,b){var c=this.c.e,d=a.pixelRatio,e=a.viewState,f=e.center,h=e.resolution,m=e.rotation,q=this.d,w=this.Qa,F=this.a.da(),M=a.viewHints,S=a.extent;g(b.extent)&&(S=aa(S,b.extent));M[0]||M[1]||Ja(S)||(e=e.projection,M=F.f,null===M||(e=M),S=F.Cc(S,h,d,e),null!==S&&Dm(this,S)&&(q=S,w=Ev(this,S),null===this.Qa||a.postRenderFunctions.push(X(function(Y,N){Y.isContextLost()||Y.deleteTexture(N)},
c,this.Qa))));null!==q&&(c=this.c.d.l,Fv(this,c.width,c.height,d,f,h,m,q.G()),this.i=null,d=this.q,wf(d),Qf(d,1,-1),xf(d,0,-1),this.d=q,this.Qa=w,Ei(a.attributions,q.f),Dg(a,F));return!0};xe.prototype.ee=function(a,b){a=this.Pa(a,b,Le,this);return g(a)};xe.prototype.dc=function(a,b,c,d){if(null!==this.d&&null!==this.d.b())if(this.a.da()instanceof Pb){if(a=a.slice(),Cf(b.pixelToCoordinateMatrix,a,a),this.Pa(a,b,Le,this))return c.call(d,this.a)}else{var e=[this.d.b().width,this.d.b().height];if(null===
this.i){var f=b.size;b=fd();wf(b);xf(b,-1,-1);Qf(b,2/f[0],2/f[1]);xf(b,0,f[1]);Qf(b,1,-1);f=fd();mi(this.n,f);var h=fd();wf(h);xf(h,0,e[1]);Qf(h,1,-1);Qf(h,e[0]/2,e[1]/2);xf(h,1,1);var m=fd();zg(h,f,m);zg(m,b,m);this.i=m}b=[0,0];Cf(this.i,a,b);if(!(0>b[0]||b[0]>e[0]||0>b[1]||b[1]>e[1])&&(null===this.g&&(this.g=se(1,1)),this.g.clearRect(0,0,1,1),this.g.drawImage(this.d.b(),b[0],b[1],1,1,0,0,1,1),0<this.g.getImageData(0,0,1,1).data[3]))return c.call(d,this.a)}};I(Un,Vh);r(Un);I(Vn,Wh);r(Vn);I(Ce,ae);
l=Ce.prototype;l.O=function(){Kn(this.c.d,this.H);Ce.S.O.call(this)};l.yd=function(a,b){var c=this.c;return function(d,e){return op(a,d,e,function(f){var h=lg(c.a,f.gb());h&&(b[d]||(b[d]={}),b[d][f.b.toString()]=f);return h})}};l.gf=function(){Ce.S.gf.call(this);this.d=null};l.hf=function(a,b,c){var d=this.c,e=c.b,f=a.viewState,h=f.projection,m=this.a,q=m.da(),w=Cg(q,h),F=Kh(w,f.resolution),M=w.ma(F),S=q.Xb(F,a.pixelRatio,h),Y=S[0]/Xd(w.na(F),this.L)[0],N=M/Y,O=q.Cd(),Z=f.center,ca;M==f.resolution?
(Z=Gm(Z,M,a.size),ca=K(Z,M,f.rotation,a.size)):ca=a.extent;M=Vk(w,ca,M);if(null!==this.g&&$l(this.g,M)&&this.i==q.b)N=this.p;else{var ea=[ef(M),M.a-M.c+1];ea=Math.max(ea[0]*S[0],ea[1]*S[1]);var ia=Math.pow(2,Math.ceil(Math.log(ea)/Math.LN2));ea=N*ia;var ja=w.Mb(F),va=ja[0]+M.b*S[0]*N;N=ja[1]+M.c*S[1]*N;N=[va,N,va+ea,N+ea];Dv(this,a,ia);e.viewport(0,0,ia,ia);e.clearColor(0,0,0,0);e.clear(16384);e.disable(3042);ia=Ln(c,this.J,this.X);c.oe(ia);null===this.d&&(this.d=new Gv(e,ia));Xi(c,34962,this.H);
e.enableVertexAttribArray(this.d.b);e.vertexAttribPointer(this.d.b,2,5126,!1,16,0);e.enableVertexAttribArray(this.d.a);e.vertexAttribPointer(this.d.a,2,5126,!1,16,8);e.uniform1i(this.d.c,0);c={};c[F]={};var na=this.yd(q,c),Ia=m.c();ia=!0;va=Yd();var cb=new jg(0,0,0,0),wa,zb,Ub;for(zb=M.b;zb<=M.d;++zb)for(Ub=M.c;Ub<=M.a;++Ub)if(ja=q.Vb(F,zb,Ub,Y,h),!g(b.extent)||(wa=Bf(w,ja.b,va),sa(wa,b.extent))){wa=ja.state;if(2==wa){if(lg(d.a,ja.gb())){c[F][ig(ja.b)]=ja;continue}}else if(4==wa||3==wa&&!Ia)continue;
ia=!1;(wa=w.Ad(ja.b,na,null,cb,va))||(ja=w.Ld(ja.b,cb,va),null===ja||na(F+1,ja))}b=Jc(Fd(c),Number);Bd(b);na=new Float32Array(4);var Ib,ec;Ia=0;for(cb=b.length;Ia<cb;++Ia)for(Ib in ec=c[b[Ia]],ec){ja=ec[Ib];wa=Bf(w,ja.b,va);zb=2*(wa[2]-wa[0])/ea;Ub=2*(wa[3]-wa[1])/ea;var ze=2*(wa[0]-N[0])/ea-1;wa=2*(wa[1]-N[1])/ea-1;Ik(na,zb,Ub,ze,wa);e.uniform4fv(this.d.d,na);qr(d,ja,S,O*Y);e.drawArrays(5,0,4)}ia?(this.g=M,this.p=N,this.i=q.b):(this.p=this.g=null,this.i=-1,a.animate=!0)}Fm(a.usedTiles,q,F,M);var wd=
d.q;Hm(a,q,w,Y,h,ca,F,m.a(),function(Pd){var Qg;(Qg=2!=Pd.state||lg(d.a,Pd.gb()))||(Qg=Pd.gb()in wd.c);Qg||Lp(wd,[Pd,kp(w,Pd.b),w.ma(Pd.b[0]),S,O*Y])},this);Em(a,q);Dg(a,q);e=this.q;wf(e);xf(e,(Z[0]-N[0])/(N[2]-N[0]),(Z[1]-N[1])/(N[3]-N[1]));0!==f.rotation&&ni(e,f.rotation);Qf(e,a.size[0]*f.resolution/(N[2]-N[0]),a.size[1]*f.resolution/(N[3]-N[1]));xf(e,-.5,-.5);return!0};l.dc=function(a,b,c,d){if(null!==this.e){var e=[0,0];Cf(this.q,[a[0]/b.size[0],(b.size[1]-a[1])/b.size[1]],e);a=[e[0]*this.f,e[1]*
this.f];b=this.c.d.b;b.bindFramebuffer(b.FRAMEBUFFER,this.e);e=new Uint8Array(4);b.readPixels(a[0],a[1],1,1,b.RGBA,b.UNSIGNED_BYTE,e);if(0<e[3])return c.call(d,this.a)}};I(Oe,ae);l=Oe.prototype;l.Lg=function(a,b,c){this.g=b;var d=a.viewState,e=this.d;if(null!==e&&!e.la()){var f=d.center,h=d.resolution;d=d.rotation;var m=a.size,q=b.opacity,w=b.brightness,F=b.contrast,M=b.hue;b=b.saturation;a=a.skippedFeatureUids;var S;var Y=0;for(S=pg.length;Y<S;++Y){var N=e.a[pg[Y]];g(N)&&jk(N,c,f,h,d,m,q,w,F,M,b,
a,void 0,!1)}}};l.O=function(){var a=this.d;null!==a&&(On(a,this.c.d)(),this.d=null);Oe.S.O.call(this)};l.Pa=function(a,b,c,d){if(null!==this.d&&null!==this.g){var e=b.viewState,f=this.a,h=this.g,m={};return this.d.c(a,this.c.d,e.center,e.resolution,e.rotation,b.size,b.pixelRatio,h.opacity,h.brightness,h.contrast,h.hue,h.saturation,b.skippedFeatureUids,function(q){var w=C(q).toString();if(!(w in m))return m[w]=!0,c.call(d,q,f)})}};l.ee=function(a,b){if(null===this.d||null===this.g)return!1;var c=
b.viewState,d=this.g;return Pn(this.d,a,this.c.d,c.resolution,c.rotation,d.opacity,d.brightness,d.contrast,d.hue,d.saturation,b.skippedFeatureUids)};l.dc=function(a,b,c,d){a=a.slice();Cf(b.pixelToCoordinateMatrix,a,a);if(this.ee(a,b))return c.call(d,this.a)};l.Rl=function(){gl(this)};l.hf=function(a,b,c){function d(N){var O;g(N.c)?O=N.c.call(N,w):g(e.a)&&(O=(0,e.a)(N,w));if(null!=O){if(null!=O){var Z,ca=!1;var ea=0;for(Z=O.length;ea<Z;++ea)ca=ck(S,N,O[ea],bk(w,F),this.Rl,this)||ca;N=ca}else N=!1;
this.i=this.i||N}}var e=this.a;b=e.da();Ei(a.attributions,b.d);Dg(a,b);var f=a.viewHints[0],h=a.viewHints[1],m=e.o,q=e.n;if(!this.i&&!m&&f||!q&&h)return!0;h=a.extent;m=a.viewState;f=m.projection;var w=m.resolution,F=a.pixelRatio;m=e.b;var M=e.c;q=e.get("renderOrder");g(q)||(q=un);h=yf(h,M*w);if(!this.i&&this.J==w&&this.L==m&&this.H==q&&qe(this.p,h))return!0;null===this.d||a.postRenderFunctions.push(On(this.d,c));this.i=!1;var S=new Xh(.5*w/F,h,e.c);b.ac(h,w,f);if(null===q)b.Ab(h,w,d,this);else{var Y=
[];b.Ab(h,w,function(N){Y.push(N)},this);Bd(Y,q);Oa(Y,d,this)}nr(S,c);this.J=w;this.L=m;this.H=q;this.p=h;this.d=S;return!0};I(xl,mg);l=xl.prototype;l.Ke=function(a){return a instanceof Va?new xe(this,a):a instanceof Ea?new Ce(this,a):a instanceof Ga?new Oe(this,a):null};l.O=function(){var a=this.e;a.isContextLost()||this.a.forEach(function(b){null===b||a.deleteTexture(b.Qa)});qf(this.d);xl.S.O.call(this)};l.Ci=function(a,b){a=this.e;for(var c;1024<this.a.Tb()-this.i;){c=this.a.b.qc;if(null===c)if(+this.a.b.Wd==
b.index)break;else--this.i;else a.deleteTexture(c.Qa);this.a.pop()}};l.M=function(){return"webgl"};l.Pl=function(a){a.preventDefault();this.a.clear();this.i=0;ob(this.f,function(b){b.gf()})};l.Ql=function(){rr(this);this.g.render()};l.ue=function(a){var b=this.d,c=this.e;if(c.isContextLost())return!1;if(null===a)return this.l&&(ge(this.b,!1),this.l=!1),!1;this.n=a.focus;this.a.set((-a.index).toString(),null);++this.i;var d=[],e=a.layerStatesArray,f=a.viewState.resolution,h,m;var q=0;for(h=e.length;q<
h;++q){var w=e[q];gh(w,f)&&"ready"==w.i&&(m=Eg(this,w.layer),m.hf(a,w,b)&&d.push(w))}e=a.size[0]*a.pixelRatio;f=a.size[1]*a.pixelRatio;if(this.b.width!=e||this.b.height!=f)this.b.width=e,this.b.height=f;c.bindFramebuffer(36160,null);c.clearColor(0,0,0,0);c.clear(16384);c.enable(3042);c.viewport(0,0,this.b.width,this.b.height);sr(this,"precompose",a);q=0;for(h=d.length;q<h;++q)w=d[q],m=Eg(this,w.layer),m.Lg(a,w,b);this.l||(ge(this.b,!0),this.l=!0);Im(a);1024<this.a.Tb()-this.i&&a.postRenderFunctions.push(J(this.Ci,
this));this.q.la()||(a.postRenderFunctions.push(this.L),a.animate=!0);sr(this,"postcompose",a);Km(this,a);a.postRenderFunctions.push(Jm)};l.ef=function(a,b,c,d,e,f){var h;if(this.e.isContextLost())return!1;var m=this.d,q=b.viewState;if(null!==this.c){var w={},F=yl;if(h=this.c.c(a,m,q.center,q.resolution,q.rotation,b.size,b.pixelRatio,F.opacity,F.brightness,F.contrast,F.hue,F.saturation,{},function(S){var Y=C(S).toString();if(!(Y in w))return w[Y]=!0,c.call(d,S,null)}))return h}m=b.layerStatesArray;
for(F=m.length-1;0<=F;--F){h=m[F];var M=h.layer;if(gh(h,q.resolution)&&e.call(f,M)&&(h=Eg(this,M).Pa(a,b,c,d)))return h}};l.Kg=function(a,b,c,d){var e=!1;if(this.e.isContextLost())return!1;var f=this.d,h=b.viewState;if(null!==this.c&&(e=yl,e=Pn(this.c,a,f,h.resolution,h.rotation,e.opacity,e.brightness,e.contrast,e.hue,e.saturation,{})))return!0;f=b.layerStatesArray;var m;for(m=f.length-1;0<=m;--m){var q=f[m],w=q.layer;if(gh(q,h.resolution)&&c.call(d,w)&&(e=Eg(this,w).ee(a,b)))return!0}return e};l.Jg=
function(a,b,c,d,e){if(this.e.isContextLost())return!1;var f=this.d,h=b.viewState;if(null!==this.c){var m=yl;var q=this.g.ka(a);if(Pn(this.c,q,f,h.resolution,h.rotation,m.opacity,m.brightness,m.contrast,m.hue,m.saturation,{})&&(q=c.call(d,null)))return q}f=b.layerStatesArray;for(m=f.length-1;0<=m;--m){q=f[m];var w=q.layer;if(gh(q,h.resolution)&&e.call(d,w)&&(q=Eg(this,w).dc(a,b,c,d)))return q}};var yl={opacity:1,brightness:0,contrast:1,hue:0,saturation:1},Jv=["canvas","webgl","dom"];I(ya,ub);l=ya.prototype;
l.si=function(a){this.e.push(a)};l.ti=function(a){this.d.push(a)};l.Jf=function(a){this.Ub().Bc().push(a)};l.Kf=function(a){this.f.push(a)};l.Ha=function(a){this.render();Array.prototype.push.apply(this.H,arguments)};l.O=function(){T(this.a);ya.S.O.call(this)};l.Ne=function(a,b,c,d,e){if(null!==this.c)return a=this.ka(a),this.i.ef(a,this.c,b,g(c)?c:null,g(d)?d:Le,g(e)?e:null)};l.al=function(a,b,c,d,e){if(null!==this.c)return this.i.Jg(a,this.c,b,g(c)?c:null,g(d)?d:Le,g(e)?e:null)};l.ok=function(a,
b,c){if(null===this.c)return!1;a=this.ka(a);return this.i.Kg(a,this.c,g(b)?b:Le,g(c)?c:null)};l.Ui=function(a){return this.ka(this.Bd(a))};l.Bd=function(a){if(g(a.changedTouches)){var b=a.changedTouches[0];a=Ij(this.a);return[b.clientX-a.x,b.clientY-a.y]}b=this.a;a=Ij(a);b=Ij(b);b=new Ve(a.x-b.x,a.y-b.y);return[b.x,b.y]};l.df=function(){return this.get("target")};l.bd=function(){var a=this.df();return g(a)?Hj(a):null};l.ka=function(a){var b=this.c;if(null===b)return null;a=a.slice();return Cf(b.pixelToCoordinateMatrix,
a,a)};l.Si=function(){return this.e};l.oj=function(){return this.f};l.bj=function(){return this.d};l.Ub=function(){return this.get("layergroup")};l.vg=function(){return this.Ub().Bc()};l.ta=function(a){var b=this.c;if(null===b)return null;a=a.slice(0,2);return Cf(b.coordinateToPixelMatrix,a,a)};l.xa=function(){return this.get("size")};l.R=function(){return this.get("view")};l.Bj=function(){return this.a};l.zj=function(a,b,c,d){var e=this.c;if(!(null!==e&&b in e.wantedTiles&&e.wantedTiles[b][ig(a.b)]))return Infinity;
a=c[0]-e.focus[0];c=c[1]-e.focus[1];return 65536*Math.log(d)+Math.sqrt(a*a+c*c)/d};l.dg=function(a,b){a=new Dd(b||a.type,this,a);this.eg(a)};l.eg=function(a){if(null!==this.c){this.L=a.coordinate;a.frameState=this.c;var b=this.d.a,c;if(!1!==this.dispatchEvent(a))for(c=b.length-1;0<=c;c--){var d=b[c];if(d.c()&&!d.handleEvent(a))break}}};l.gk=function(){var a=this.c,b=this.Fa;if(!b.la()){var c=16,d=c,e=0;null!==a&&(e=a.viewHints,e[0]&&(c=this.wb?8:0,d=2),e[1]&&(c=this.xb?8:0,d=2),e=ud(a.wantedTiles));
c*=e;d*=e;if(b.d<c){Pp(b);c=Math.min(c-b.d,d,b.Tb());for(d=0;d<c;++d)e=Mp(b)[0],ma(e,"change",b.f,!1,b),e.load();b.d+=c}}b=this.ba;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};l.jk=function(){this.render()};l.lk=function(){var a=this.bd();mm(this.n);null===a?(T(this.a),null!==this.l&&(Hb(this.l),this.l=null)):(a.appendChild(this.a),zp(this.n,null===this.T?a:this.T),null===this.l&&(this.l=ma(this.Ga,"resize",this.Kc,!1,this)));this.Kc()};l.bl=function(){this.render()};l.nk=function(){this.render()};
l.mk=function(){null!==this.J&&(Hb(this.J),this.J=null);var a=this.R();null!==a&&(this.J=ma(a,"propertychange",this.nk,!1,this));this.render()};l.Rj=function(){this.render()};l.Sj=function(){this.render()};l.Qj=function(){if(null!==this.g){for(var a=this.g.length,b=0;b<a;++b)Hb(this.g[b]);this.g=null}a=this.Ub();null!=a&&(this.g=[ma(a,"propertychange",this.Sj,!1,this),ma(a,"change",this.Rj,!1,this)]);this.render()};l.Rn=function(){var a=this.o;im(a);a.Pf()};l.render=function(){null!=this.o.$||this.o.start()};
l.Ln=function(a){if(g(this.e.remove(a)))return a};l.Mn=function(a){var b;g(this.d.remove(a))&&(b=a);return b};l.Nn=function(a){return this.Ub().Bc().remove(a)};l.On=function(a){if(g(this.f.remove(a)))return a};l.Qn=function(a){var b,c=this.xa(),d=this.R(),e=null;if(g(c)&&0<c[0]&&0<c[1]&&null!==d&&Hh(d)){e=d.c.slice();var f=this.Ub().Ue(),h={};var m=0;for(b=f.length;m<b;++m)h[C(f[m].layer)]=f[m];var q=bh(d);e={animate:!1,attributions:{},coordinateToPixelMatrix:this.Ra,extent:null,focus:null===this.L?
q.center:this.L,index:this.vb++,layerStates:h,layerStatesArray:f,logos:Gd(this.sc),pixelRatio:this.Nc,pixelToCoordinateMatrix:this.Ee,postRenderFunctions:[],size:c,skippedFeatureUids:this.N,tileQueue:this.Fa,time:a,usedTiles:{},viewState:q,viewHints:e,wantedTiles:{}}}if(null!==e){a=this.H;m=c=0;for(b=a.length;m<b;++m)d=a[m],d(this,e)&&(a[c++]=d);a.length=c;e.extent=K(q.center,q.resolution,q.rotation,e.size)}this.c=e;this.i.ue(e);null!==e&&(e.animate&&this.render(),Array.prototype.push.apply(this.ba,
e.postRenderFunctions),0!==this.H.length||e.viewHints[0]||e.viewHints[1]||Gh(e.extent,this.oa)||(this.dispatchEvent(new Bg("moveend",this,e)),zj(e.extent,this.oa)));this.dispatchEvent(new Bg("postrender",this,e));Yk(this.gk,this)};l.zh=function(a){this.set("layergroup",a)};l.vf=function(a){this.set("size",a)};l.cl=function(a){this.set("target",a)};l.jo=function(a){this.set("view",a)};l.Eh=function(a){a=C(a).toString();this.N[a]=!0;this.render()};l.Kc=function(){var a=this.bd();if(null===a)this.vf(void 0);
else{var b=Da(a),c=jc&&a.currentStyle;c&&kb(Fc(b))&&"auto"!=c.width&&"auto"!=c.height&&!c.boxSizing?(b=Rk(a,c.width,"width","pixelWidth"),a=Rk(a,c.height,"height","pixelHeight"),a=new Af(b,a)):(c=new Af(a.offsetWidth,a.offsetHeight),b=cm(a,"padding"),a=gp(a),a=new Af(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom));this.vf([a.width,a.height])}};l.Ih=function(a){a=C(a).toString();delete this.N[a];this.render()};mq();I(Gb,ub);l=Gb.prototype;l.$d=function(){return this.get("element")};
l.ae=function(){return this.get("map")};l.Yf=function(){return this.get("offset")};l.wg=function(){return this.get("position")};l.ag=function(){return this.get("positioning")};l.Kj=function(){P(this.Z);var a=this.$d();null!=a&&Qk(this.Z,a)};l.Yj=function(){null!==this.c&&(T(this.Z),Hb(this.c),this.c=null);var a=this.ae();null!=a&&(this.c=ma(a,"postrender",this.render,!1,this),kk(this),a=this.i?a.p:a.X,this.g?V(a,this.Z,0):Qk(a,this.Z))};l.render=function(){kk(this)};l.ck=function(){kk(this)};l.ek=
function(){kk(this);if(g(this.get("position"))&&this.f){var a=this.ae();if(g(a)&&null!==a.bd()){var b=wr(a.bd(),a.xa()),c=this.$d(),d=c.offsetWidth,e=c.currentStyle||window.getComputedStyle(c);d+=parseInt(e.marginLeft,10)+parseInt(e.marginRight,10);e=c.offsetHeight;var f=c.currentStyle||window.getComputedStyle(c);e+=parseInt(f.marginTop,10)+parseInt(f.marginBottom,10);var h=wr(c,[d,e]);c=this.e;qe(b,h)||(d=h[0]-b[0],e=b[2]-h[2],f=h[1]-b[1],h=b[3]-h[3],b=[0,0],0>d?b[0]=d-c:0>e&&(b[0]=Math.abs(e)+c),
0>f?b[1]=f-c:0>h&&(b[1]=Math.abs(h)+c),0===b[0]&&0===b[1])||(c=a.R().Ca(),d=a.ta(c),b=[d[0]+b[0],d[1]+b[1]],null!==this.d&&(this.d.source=c,a.Ha(Ue(this.d))),a.R().Na(a.ka(b)))}}};l.fk=function(){kk(this)};l.wh=function(a){this.set("element",a)};l.setMap=function(a){this.set("map",a)};l.Bh=function(a){this.set("offset",a)};l.uf=function(a){this.set("position",a)};l.Ch=function(a){this.set("positioning",a)};I(dc,qb);l=dc.prototype;l.setMap=function(a){var b=this.a;a!==b&&((b&&=b.R())&&Ge(b,Uc("rotation"),
this.Rd,!1,this),dc.S.setMap.call(this,a),a&&(this.l.push(ma(a,"propertychange",this.Zj,!1,this)),0===this.d.vg().Ib()&&this.d.zh(a.Ub()),a=a.R()))&&(ma(a,Uc("rotation"),this.Rd,!1,this),Hh(a)&&(this.d.Kc(),Wn(this)))};l.Zj=function(a){"view"===a.key&&((a=a.oldValue)&&Ge(a,Uc("rotation"),this.Rd,!1,this),a=this.a.R(),ma(a,Uc("rotation"),this.Rd,!1,this))};l.Rd=function(){this.d.R().be(this.a.R().Da())};l.ml=function(a){a.preventDefault();Xn(this)};l.ll=function(){return this.g};l.ol=function(a){this.g!==
a&&(this.g=a,yb(this.element,"ol-uncollapsible"),!a&&this.f&&Xn(this))};l.nl=function(a){this.g&&this.f!==a&&Xn(this)};l.kl=function(){return this.f};I(nc,qb);var Kv=[1,2,5];nc.prototype.p=function(){return this.get("units")};nc.prototype.N=function(){Ar(this)};nc.prototype.J=function(a){this.set("units",a)};I(oh,Re);var Bt=[];oh.prototype.Ka=function(a,b,c,d){t(b)||(b&&(Bt[0]=b.toString()),b=Bt);for(var e=0;e<b.length;e++){var f=ma(a,b[e],c||this.handleEvent,d||!1,this.a||this);if(!f)break;this.b[f.key]=
f}return this};oh.prototype.wf=function(a,b,c,d,e){if(t(b))for(var f=0;f<b.length;f++)this.wf(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.a||this,c=Ah(c),d=!!d,(b=Sg(a)?tj(a.ab,String(b),c,d,e):a?(a=Tg(a))?tj(a,b,c,d,e):null:null)&&(Hb(b),delete this.b[b.key]);return this};oh.prototype.O=function(){oh.S.O.call(this);Yn(this)};oh.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};I(zl,Tc);var Sl=jc||sf&&Cd("1.9.3");l=zl.prototype;l.clientX=0;l.clientY=
0;l.screenX=0;l.screenY=0;l.Fh=0;l.Gh=0;l.yc=0;l.zc=0;l.Zb=!1;l.O=function(){zl.S.O.call(this);Ge(this.handle,["touchstart","mousedown"],this.cg,!1,this);Yn(this.a);Sl&&this.c.releaseCapture();this.handle=this.target=null};l.cg=function(a){var b="mousedown"==a.type;if(this.Zb||b&&!rj(a))this.dispatchEvent("earlycancel");else if(Zn(a),this.dispatchEvent(new Yi("start",this,a.clientX,a.clientY))){this.Zb=!0;a.preventDefault();b=this.c;var c=b.documentElement,d=!Sl;this.a.Ka(b,["touchmove","mousemove"],
this.bk,d);this.a.Ka(b,["touchend","mouseup"],this.Od,d);Sl?(c.setCapture(!1),this.a.Ka(c,"losecapture",this.Od)):this.a.Ka(b?b.parentWindow||b.defaultView:window,"blur",this.Od);this.e&&this.a.Ka(this.e,"scroll",this.en,d);this.clientX=this.Fh=a.clientX;this.clientY=this.Gh=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.yc=this.target.offsetLeft;this.zc=this.target.offsetTop;this.d=Xb(Fc(this.c));Lf()}};l.Od=function(a){Yn(this.a);Sl&&this.c.releaseCapture();if(this.Zb){Zn(a);this.Zb=
!1;var b=Cr(this,this.yc),c=Dr(this,this.zc);this.dispatchEvent(new Yi("end",this,a.clientX,a.clientY,0,b,c))}else this.dispatchEvent("earlycancel")};l.bk=function(a){Zn(a);var b=a.clientX-this.clientX,c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.Zb){var d=this.Fh-this.clientX,e=this.Gh-this.clientY;if(0<d*d+e*e)if(this.dispatchEvent(new Yi("start",this,a.clientX,a.clientY)))this.Zb=!0;else{this.U||this.Od(a);return}}c=
Br(this,b,c);b=c.x;c=c.y;this.Zb&&this.dispatchEvent(new Yi("beforedrag",this,a.clientX,a.clientY,0,b,c))&&(Er(this,a,b,c),a.preventDefault())};l.en=function(a){var b=Br(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Er(this,a,b.x,b.y)};I(Yi,tc);I(dd,qb);var Fr=0;l=dd.prototype;l.setMap=function(a){dd.S.setMap.call(this,a);null===a||a.render()};l.Gj=function(a){var b=this.a,c=b.R(),d=c.ya();b.Ha(zf({resolution:d,duration:this.o,easing:Sf}));a=Hr(this,a.offsetX-this.i[0]/2,a.offsetY-this.i[1]/
2);a=Ir(this,a);c.tb(c.constrainResolution(a))};l.Jj=function(){Ke(this.a.R(),1)};l.Hj=function(a){a=Hr(this,a.left,a.top);this.f=Ir(this,a);this.a.R().tb(this.f)};l.Ij=function(){var a=this.a,b=a.R();Ke(b,-1);a.Ha(zf({resolution:this.f,duration:this.o,easing:Sf}));a=b.constrainResolution(this.f);b.tb(a)};I(Rc,qb);Rc.prototype.f=function(a){a.preventDefault();var b=this.a;a=b.R();var c=null===this.d?a.e.G():this.d;b=b.xa();a.Me(c,b)};I(kc,ub);l=kc.prototype;l.O=function(){this.bf(!1);kc.S.O.call(this)};
l.fn=function(a){a=a.b;if(null!=a.alpha){var b=me(a.alpha);this.set("alpha",b);"boolean"==typeof a.absolute&&a.absolute?this.set("heading",b):null!=a.webkitCompassHeading&&null!=a.webkitCompassAccuracy&&-1!=a.webkitCompassAccuracy&&this.set("heading",me(a.webkitCompassHeading))}null!=a.beta&&this.set("beta",me(a.beta));null!=a.gamma&&this.set("gamma",me(a.gamma));this.k()};l.Mi=function(){return this.get("alpha")};l.Pi=function(){return this.get("beta")};l.Yi=function(){return this.get("gamma")};
l.Ik=function(){return this.get("heading")};l.og=function(){return this.get("tracking")};l.Jk=function(){if(qt){var a=this.og();a&&null===this.a?this.a=ma(gb,"deviceorientation",this.fn,!1,this):a||null===this.a||(Hb(this.a),this.a=null)}};l.bf=function(a){this.set("tracking",a)};I(Wa,ub);l=Wa.prototype;l.clone=function(){var a=new Wa(this.D());a.Ic(this.a);var b=this.Q();null!=b&&a.La(b.clone());b=this.e;null===b||a.cf(b);return a};l.Q=function(){return this.get(this.a)};l.aj=function(){return this.$};
l.$i=function(){return this.a};l.Qk=function(){return this.e};l.Rk=function(){return this.c};l.Sk=function(){this.k()};l.Pd=function(){null!==this.d&&(Hb(this.d),this.d=null);var a=this.Q();null!=a&&(this.d=ma(a,"change",this.Sk,!1,this));this.k()};l.La=function(a){this.set(this.a,a)};l.cf=function(a){this.e=a;null===a?a=void 0:x(a)||(a=t(a)?a:[a],a=Kj(a));this.c=a;this.k()};l.Qb=function(a){this.$=a;this.k()};l.Ic=function(a){Ge(this,Uc(this.a),this.Pd,!1,this);this.a=a;ma(this,Uc(this.a),this.Pd,
!1,this);this.Pd()};l=Ld.prototype;l.pg=function(a){this.b.push(a)};l.Kk=function(){return this.b};l.Lk=function(){return this.d};l.qg=function(){Yh(this)};l.Mj=function(a){a=a.element;this.a[C(a).toString()]=ma(a,"change",this.qg,!1,this);Yh(this)};l.Nj=function(a){a=C(a.element).toString();Hb(this.a[a]);delete this.a[a];Yh(this)};l.Ok=function(){Yh(this)};l.Pk=function(a){if(null!==this.b){var b=this.f;g(b)||(b=Xj);var c=a.b;a=a.frameState;var d=a.viewState.resolution,e=bk(d,a.pixelRatio),f,h,m,
q;this.b.forEach(function(w){q=w.c;m=g(q)?q.call(w,d):b(w,d);if(null!=m)for(h=m.length,f=0;f<h;++f)ck(c,w,m[f],e,this.Ok,this)},this)}};l.Yd=function(a){this.b.remove(a)};l.ld=function(a){null!==this.c&&(Oa(this.c,Hb),this.c=null);null!==this.a&&(Oa(Vd(this.a),Hb),this.a=null);this.b=a;null!==a&&(this.c=[ma(a,"add",this.Mj,!1,this),ma(a,"remove",this.Nj,!1,this)],this.a={},a.forEach(function(b){this.a[C(b).toString()]=ma(b,"change",this.qg,!1,this)},this));Yh(this)};l.setMap=function(a){null!==this.e&&
(Hb(this.e),this.e=null);Yh(this);this.d=a;null!==a&&(this.e=ma(a,"postcompose",this.Pk,!1,this),a.render())};l.rg=function(a){this.g=a;this.f=gn(a);Yh(this)};l.Mk=function(){return this.g};l.Nk=function(){return this.f};I(mk,Al);l=mk.prototype;l.M=function(){return"json"};l.sb=function(a,b){return this.Fc(Bl(a),Ef(this,a,b))};l.ja=function(a,b){return this.of(Bl(a),Ef(this,a,b))};l.Gc=function(a,b){return this.hh(Bl(a),Ef(this,a,b))};l.za=function(a){return this.nh(Bl(a))};l.qd=function(a,b){return Qo(this.Lc(a,
b))};l.ub=function(a,b){return Qo(this.ze(a,b))};l.Mc=function(a,b){return Qo(this.Be(a,b))};I(Md,mk);var Mv={Point:function(a){return null!=a.m&&null!=a.z?new Ta([a.x,a.y,a.z,a.m],"XYZM"):null!=a.z?new Ta([a.x,a.y,a.z],"XYZ"):null!=a.m?new Ta([a.x,a.y,a.m],"XYM"):new Ta([a.x,a.y])},LineString:function(a){return new Ha(a.paths[0],Zi(a))},Polygon:function(a){return new Fa(a.rings,Zi(a))},MultiPoint:function(a){return new $a(a.points,Zi(a))},MultiLineString:function(a){return new Qa(a.paths,Zi(a))},
MultiPolygon:function(a){return new Ra(a.rings,Zi(a))}},Nv={Point:function(a){var b=a.K();a=a.a;if("XYZ"===a)return{x:b[0],y:b[1],z:b[2]};if("XYM"===a)return{x:b[0],y:b[1],m:b[2]};if("XYZM"===a)return{x:b[0],y:b[1],z:b[2],m:b[3]};if("XY"===a)return{x:b[0],y:b[1]}},LineString:function(a){var b=nk(a);return{hasZ:b.hasZ,hasM:b.hasM,paths:[a.K()]}},Polygon:function(a){var b=nk(a);return{hasZ:b.hasZ,hasM:b.hasM,rings:a.K(!1)}},MultiPoint:function(a){var b=nk(a);return{hasZ:b.hasZ,hasM:b.hasM,points:a.K()}},
MultiLineString:function(a){var b=nk(a);return{hasZ:b.hasZ,hasM:b.hasM,paths:a.K()}},MultiPolygon:function(a){var b=nk(a);a=a.K(!1);for(var c=[],d=0;d<a.length;d++)for(var e=a[d].length-1;0<=e;e--)c.push(a[d][e]);return{hasZ:b.hasZ,hasM:b.hasM,rings:c}}};l=Md.prototype;l.Fc=function(a,b){var c=Jr(a.geometry,b),d=new Wa;g(this.b)&&d.Ic(this.b);d.La(c);g(b)&&g(b.Xe)&&g(a.attributes[b.Xe])&&d.Qb(a.attributes[b.Xe]);g(a.attributes)&&d.t(a.attributes);return d};l.of=function(a,b){b=g(b)?b:{};if(null!=
a.features){var c=[],d=a.features,e;b.Xe=a.objectIdFieldName;a=0;for(e=d.length;a<e;++a)c.push(this.Fc(d[a],b));return c}return[this.Fc(a,b)]};l.hh=function(a,b){return Jr(a,b)};l.nh=function(a){return null!=a.spatialReference&&null!=a.spatialReference.wkid?Ka("EPSG:"+a.spatialReference.wkid):null};l.Be=function(a,b){return Kr(a,oe(this,b))};l.Lc=function(a,b){b=oe(this,b);var c={},d=a.Q();null!=d&&(c.geometry=Kr(d,b));d=a.D();Fe(d,a.a);c.attributes=le(d)?{}:d;g(b)&&g(b.featureProjection)&&(c.spatialReference=
{wkid:Ka(b.featureProjection).b.split(":").pop()});return c};l.ze=function(a,b){b=oe(this,b);var c=[],d;var e=0;for(d=a.length;e<d;++e)c.push(this.Lc(a[e],b));return{features:c}};I(Nd,mk);var Ov={Point:function(a){return new Ta(a.coordinates)},LineString:function(a){return new Ha(a.coordinates)},Polygon:function(a){return new Fa(a.coordinates)},MultiPoint:function(a){return new $a(a.coordinates)},MultiLineString:function(a){return new Qa(a.coordinates)},MultiPolygon:function(a){return new Ra(a.coordinates)},
GeometryCollection:function(a,b){a=Jc(a.geometries,function(c){return $n(c,b)});return new sb(a)}},Pv={Point:function(a){return{type:"Point",coordinates:a.K()}},LineString:function(a){return{type:"LineString",coordinates:a.K()}},Polygon:function(a,b){var c;g(b)&&(c=b.rightHanded);return{type:"Polygon",coordinates:a.K(c)}},MultiPoint:function(a){return{type:"MultiPoint",coordinates:a.K()}},MultiLineString:function(a){return{type:"MultiLineString",coordinates:a.K()}},MultiPolygon:function(a,b){var c;
g(b)&&(c=b.rightHanded);return{type:"MultiPolygon",coordinates:a.K(c)}},GeometryCollection:function(a,b){return{type:"GeometryCollection",geometries:Jc(a.d,function(c){return ao(c,b)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};l=Nd.prototype;l.Fc=function(a,b){b=$n(a.geometry,b);var c=new Wa;g(this.b)&&c.Ic(this.b);c.La(b);g(a.id)&&c.Qb(a.id);g(a.properties)&&c.t(a.properties);return c};l.of=function(a,b){if("Feature"==a.type)return[this.Fc(a,b)];if("FeatureCollection"==
a.type){var c=[];a=a.features;var d;var e=0;for(d=a.length;e<d;++e)c.push(this.Fc(a[e],b));return c}return[]};l.hh=function(a,b){return $n(a,b)};l.nh=function(a){a=a.crs;return null!=a?"name"==a.type?Ka(a.properties.name):"EPSG"==a.type?Ka("EPSG:"+a.properties.code):null:this.defaultDataProjection};l.Lc=function(a,b){b=oe(this,b);var c={type:"Feature"},d=a.$;null!=d&&(c.id=d);d=a.Q();null!=d&&(c.geometry=ao(d,b));d=a.D();Fe(d,a.a);c.properties=le(d)?null:d;return c};l.ze=function(a,b){b=oe(this,b);
var c=[],d;var e=0;for(d=a.length;e<d;++e)c.push(this.Lc(a[e],b));return{type:"FeatureCollection",features:c}};l.Be=function(a,b){return ao(a,oe(this,b))};I(ph,Al);l=ph.prototype;l.M=function(){return"xml"};l.sb=function(a,b){return Og(a)?Lr(this,a,b):Pg(a)?this.fh(a,b):E(a)?(a=Wf(a),Lr(this,a,b)):null};l.ja=function(a,b){return Og(a)?bo(this,a,b):Pg(a)?this.Ob(a,b):E(a)?(a=Wf(a),bo(this,a,b)):[]};l.Gc=function(a,b){if(Og(a))return this.l(a,b);if(Pg(a)){var c=this.qe(a,[Ef(this,a,g(b)?b:{})]);return g(c)?
c:null}return E(a)?(c=Wf(a),this.l(c,b)):null};l.za=function(a){return Og(a)?this.sf(a):Pg(a)?this.te(a):E(a)?(a=Wf(a),this.sf(a)):null};l.sf=function(){return this.defaultDataProjection};l.te=function(){return this.defaultDataProjection};l.qd=function(a,b){a=this.U(a,b);return En(a)};l.ub=function(a,b){a=this.a(a,b);return En(a)};l.Mc=function(a,b){a=this.q(a,b);return En(a)};I(oc,ph);l=oc.prototype;l.jd=function(a,b){var c=ai(a),d;if("FeatureCollection"==c)"http://www.opengis.net/wfs"===a.namespaceURI?
d=ta([],this.b,a,b,this):d=ta(null,this.b,a,b,this);else if("featureMembers"==c||"featureMember"==c){var e=b[0],f=e.featureType;d=e.featureNS;var h;if(!g(f)&&null!=a.childNodes){f=[];d={};var m=0;for(h=a.childNodes.length;m<h;++m){var q=a.childNodes[m];if(1===q.nodeType){var w=q.nodeName.split(":").pop();if(-1===Nb(f,w)){var F;Dk(d,q.namespaceURI)?F=oj(d,function(S){return S===q.namespaceURI}):(F="p"+ud(d),d[F]=q.namespaceURI);f.push(F+":"+w)}}}e.featureType=f;e.featureNS=d}E(d)&&(m=d,d={},d.p0=m);
e={};f=t(f)?f:[f];for(var M in d){w={};m=0;for(h=f.length;m<h;++m)(-1===f[m].indexOf(":")?"p0":f[m].split(":")[0])===M&&(w[f[m].split(":").pop()]="featureMembers"==c?mc(this.nf,this):Cc(this.nf,this));e[d[M]]=w}d=ta([],e,a,b)}g(d)||(d=[]);return d};l.qe=function(a,b){var c=b[0];c.srsName=a.firstElementChild.getAttribute("srsName");a=ta(null,this.Cf,a,b,this);if(null!=a)return Sd(a,!1,c)};l.nf=function(a,b){var c=a.getAttribute("fid")||Hx(a,"http://www.opengis.net/gml","id"),d={},e;for(a=a.firstElementChild;null!==
a;a=a.nextElementSibling){var f=ai(a);if(0===a.childNodes.length||1===a.childNodes.length&&3===a.firstChild.nodeType){var h=Me(a,!1);/^[\s\xa0]*$/.test(h)&&(h=void 0);d[f]=h}else"boundedBy"!==f&&(e=f),d[f]=this.qe(a,b)}a=new Wa(d);g(e)&&a.Ic(e);c&&a.Qb(c);return a};l.mh=function(a,b){a=this.pe(a,b);if(null!=a)return b=new Ta(null),Li(b,"XYZ",a),b};l.kh=function(a,b){a=ta([],this.ai,a,b,this);if(g(a))return new $a(a)};l.jh=function(a,b){a=ta([],this.$h,a,b,this);if(g(a))return b=new Qa(null),nl(b,
a),b};l.lh=function(a,b){a=ta([],this.bi,a,b,this);if(g(a))return b=new Ra(null),tn(b,a),b};l.$g=function(a,b){Of(this.ei,a,b,this)};l.kg=function(a,b){Of(this.Yh,a,b,this)};l.ah=function(a,b){Of(this.fi,a,b,this)};l.re=function(a,b){a=this.pe(a,b);if(null!=a)return b=new Ha(null),kf(b,"XYZ",a),b};l.yn=function(a,b){a=ta(null,this.sd,a,b,this);if(null!=a)return a};l.ih=function(a,b){a=this.pe(a,b);if(g(a))return b=new lb(null),Ki(b,"XYZ",a),b};l.se=function(a,b){a=ta([null],this.De,a,b,this);if(g(a)&&
null!==a[0]){b=new Fa(null);var c=a[0],d=[c.length],e;var f=1;for(e=a.length;f<e;++f)Tb(c,a[f]),d.push(c.length);Nf(b,"XYZ",c,d);return b}};l.pe=function(a,b){return ta(null,this.sd,a,b,this)};l.ai=Object({"http://www.opengis.net/gml":{pointMember:mc(oc.prototype.$g),pointMembers:mc(oc.prototype.$g)}});l.$h=Object({"http://www.opengis.net/gml":{lineStringMember:mc(oc.prototype.kg),lineStringMembers:mc(oc.prototype.kg)}});l.bi=Object({"http://www.opengis.net/gml":{polygonMember:mc(oc.prototype.ah),
polygonMembers:mc(oc.prototype.ah)}});l.ei=Object({"http://www.opengis.net/gml":{Point:mc(oc.prototype.pe)}});l.Yh=Object({"http://www.opengis.net/gml":{LineString:mc(oc.prototype.re)}});l.fi=Object({"http://www.opengis.net/gml":{Polygon:mc(oc.prototype.se)}});l.td=Object({"http://www.opengis.net/gml":{LinearRing:Cc(oc.prototype.yn)}});l.Ob=function(a,b){var c={featureType:this.featureType,featureNS:this.featureNS};g(b)&&vd(c,Ef(this,a,b));return this.jd(a,[c])};l.te=function(a){return Ka(g(this.o)?
this.o:a.firstElementChild.getAttribute("srsName"))};I(Ya,oc);l=Ya.prototype;l.Bn=function(a,b){a=ta([],this.Zh,a,b,this);if(g(a))return b=new Qa(null),nl(b,a),b};l.Cn=function(a,b){a=ta([],this.ci,a,b,this);if(g(a))return b=new Ra(null),tn(b,a),b};l.Nf=function(a,b){Of(this.Vh,a,b,this)};l.Hh=function(a,b){Of(this.ji,a,b,this)};l.Fn=function(a,b){return ta([null],this.di,a,b,this)};l.Hn=function(a,b){return ta([null],this.ii,a,b,this)};l.Gn=function(a,b){return ta([null],this.De,a,b,this)};l.An=
function(a,b){return ta([null],this.sd,a,b,this)};l.rk=function(a,b){a=ta(void 0,this.td,a,b,this);g(a)&&b[b.length-1].push(a)};l.Di=function(a,b){a=ta(void 0,this.td,a,b,this);g(a)&&(b[b.length-1][0]=a)};l.oh=function(a,b){a=ta([null],this.ki,a,b,this);if(g(a)&&null!==a[0]){b=new Fa(null);var c=a[0],d=[c.length],e;var f=1;for(e=a.length;f<e;++f)Tb(c,a[f]),d.push(c.length);Nf(b,"XYZ",c,d);return b}};l.dh=function(a,b){a=ta([null],this.Wh,a,b,this);if(g(a))return b=new Ha(null),kf(b,"XYZ",a),b};l.xn=
function(a,b){a=ta([null],this.Xh,a,b,this);return He(a[1][0],a[1][1],a[2][0],a[2][1])};l.zn=function(a,b){a=Me(a,!1);for(var c=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/,d=[],e;e=c.exec(a);)d.push(parseFloat(e[1])),a=a.substr(e[0].length);if(""===a){a=b[0].srsName;c="enu";null===a||(c=Ka(a).d);if("neu"===c)for(a=0,c=d.length;a<c;a+=3)e=d[a],d[a]=d[a+1],d[a+1]=e;a=d.length;2==a&&d.push(0);return 0===a?void 0:d}};l.qf=function(a,b){var c=Me(a,!1).replace(/^\s*|\s*$/g,"");b=b[0].srsName;var d=a.parentNode.getAttribute("srsDimension"),
e="enu";null===b||(e=Ka(b).d);c=c.split(/\s+/);b=2;null===a.getAttribute("srsDimension")?null===a.getAttribute("dimension")?null===d||(b=Yf(d)):b=Yf(a.getAttribute("dimension")):b=Yf(a.getAttribute("srsDimension"));for(var f,h=[],m=0,q=c.length;m<q;m+=b)d=parseFloat(c[m]),a=parseFloat(c[m+1]),f=3===b?parseFloat(c[m+2]):0,"en"===e.substr(0,2)?h.push(d,a,f):h.push(a,d,f);return h};l.sd=Object({"http://www.opengis.net/gml":{pos:Cc(Ya.prototype.zn),posList:Cc(Ya.prototype.qf)}});l.De=Object({"http://www.opengis.net/gml":{interior:Ya.prototype.rk,
exterior:Ya.prototype.Di}});l.Cf=Object({"http://www.opengis.net/gml":{Point:Cc(oc.prototype.mh),MultiPoint:Cc(oc.prototype.kh),LineString:Cc(oc.prototype.re),MultiLineString:Cc(oc.prototype.jh),LinearRing:Cc(oc.prototype.ih),Polygon:Cc(oc.prototype.se),MultiPolygon:Cc(oc.prototype.lh),Surface:Cc(Ya.prototype.oh),MultiSurface:Cc(Ya.prototype.Cn),Curve:Cc(Ya.prototype.dh),MultiCurve:Cc(Ya.prototype.Bn),Envelope:Cc(Ya.prototype.xn)}});l.Zh=Object({"http://www.opengis.net/gml":{curveMember:mc(Ya.prototype.Nf),
curveMembers:mc(Ya.prototype.Nf)}});l.ci=Object({"http://www.opengis.net/gml":{surfaceMember:mc(Ya.prototype.Hh),surfaceMembers:mc(Ya.prototype.Hh)}});l.Vh=Object({"http://www.opengis.net/gml":{LineString:mc(oc.prototype.re),Curve:mc(Ya.prototype.dh)}});l.ji=Object({"http://www.opengis.net/gml":{Polygon:mc(oc.prototype.se),Surface:mc(Ya.prototype.oh)}});l.ki=Object({"http://www.opengis.net/gml":{patches:Cc(Ya.prototype.Fn)}});l.Wh=Object({"http://www.opengis.net/gml":{segments:Cc(Ya.prototype.Hn)}});
l.Xh=Object({"http://www.opengis.net/gml":{lowerCorner:mc(Ya.prototype.qf),upperCorner:mc(Ya.prototype.qf)}});l.di=Object({"http://www.opengis.net/gml":{PolygonPatch:Cc(Ya.prototype.Gn)}});l.ii=Object({"http://www.opengis.net/gml":{LineStringSegment:Cc(Ya.prototype.An)}});l.Rh=function(a,b,c){var d=c[c.length-1].srsName;null!=d&&a.setAttribute("srsName",d);d=jd(a.namespaceURI,"pos");a.appendChild(d);c=c[c.length-1].srsName;a="enu";null!=c&&(a=Ka(c).d);b=b.K();sc(d,"en"===a.substr(0,2)?b[0]+" "+b[1]:
b[1]+" "+b[0])};var Jx={"http://www.opengis.net/gml":{lowerCorner:qa(sc),upperCorner:qa(sc)}};l=Ya.prototype;l.wo=function(a,b,c){var d=c[c.length-1].srsName;g(d)&&a.setAttribute("srsName",d);wc({P:a},Jx,Pf,[b[0]+" "+b[1],b[2]+" "+b[3]],c,["lowerCorner","upperCorner"],this)};l.Oh=function(a,b,c){var d=c[c.length-1].srsName;null!=d&&a.setAttribute("srsName",d);d=jd(a.namespaceURI,"posList");a.appendChild(d);Nr(d,b,c)};l.hi=function(a,b){a=b[b.length-1];b=a.P;var c=a.exteriorWritten;g(c)||(a.exteriorWritten=
!0);return jd(b.namespaceURI,g(c)?"interior":"exterior")};l.Ce=function(a,b,c){var d=c[c.length-1].srsName;"PolygonPatch"!==a.nodeName&&null!=d&&a.setAttribute("srsName",d);"Polygon"===a.nodeName||"PolygonPatch"===a.nodeName?(b=b.Ed(),wc({P:a,srsName:d},Kx,this.hi,b,c,void 0,this)):"Surface"===a.nodeName&&(d=jd(a.namespaceURI,"patches"),a.appendChild(d),a=jd(d.namespaceURI,"PolygonPatch"),d.appendChild(a),this.Ce(a,b,c))};l.xe=function(a,b,c){var d=c[c.length-1].srsName;"LineStringSegment"!==a.nodeName&&
null!=d&&a.setAttribute("srsName",d);"LineString"===a.nodeName||"LineStringSegment"===a.nodeName?(d=jd(a.namespaceURI,"posList"),a.appendChild(d),Nr(d,b,c)):"Curve"===a.nodeName&&(d=jd(a.namespaceURI,"segments"),a.appendChild(d),a=jd(d.namespaceURI,"LineStringSegment"),d.appendChild(a),this.xe(a,b,c))};l.Qh=function(a,b,c){var d=c[c.length-1],e=d.srsName;d=d.surface;null!=e&&a.setAttribute("srsName",e);b=b.Id();wc({P:a,srsName:e,surface:d},Lx,this.d,b,c,void 0,this)};l.xo=function(a,b,c){var d=c[c.length-
1].srsName;null!=d&&a.setAttribute("srsName",d);b=b.ce();wc({P:a,srsName:d},Mx,Zd("pointMember"),b,c,void 0,this)};l.Ph=function(a,b,c){var d=c[c.length-1],e=d.srsName;d=d.curve;null!=e&&a.setAttribute("srsName",e);b=b.ad();wc({P:a,srsName:e,curve:d},Nx,this.d,b,c,void 0,this)};l.Sh=function(a,b,c){var d=jd(a.namespaceURI,"LinearRing");a.appendChild(d);this.Oh(d,b,c)};l.Th=function(a,b,c){var d=this.c(b,c);g(d)&&(a.appendChild(d),this.Ce(d,b,c))};l.yo=function(a,b,c){var d=jd(a.namespaceURI,"Point");
a.appendChild(d);this.Rh(d,b,c)};l.Nh=function(a,b,c){var d=this.c(b,c);g(d)&&(a.appendChild(d),this.xe(d,b,c))};l.Ae=function(a,b,c){var d=c[c.length-1],e=Gd(d);e.P=a;var f;t(b)?g(d.dataProjection)?f=Te(b,d.featureProjection,d.dataProjection):f=b:f=Sd(b,!0,d);wc(e,Ox,this.c,[f],c,void 0,this)};l.Lh=function(a,b,c){var d=b.$;g(d)&&a.setAttribute("fid",d);d=c[c.length-1];var e=d.featureNS,f=b.a;g(d.fc)||(d.fc={},d.fc[e]={});var h=b.D();b=[];var m=[];for(w in h){var q=h[w];null!==q&&(b.push(w),m.push(q),
w==f?w in d.fc[e]||(d.fc[e][w]=qa(this.Ae,this)):w in d.fc[e]||(d.fc[e][w]=qa(sc)))}var w=Gd(d);w.P=a;wc(w,d.fc,Zd(void 0,e),m,c,b)};var Lx={"http://www.opengis.net/gml":{surfaceMember:qa(Ya.prototype.Th),polygonMember:qa(Ya.prototype.Th)}},Mx={"http://www.opengis.net/gml":{pointMember:qa(Ya.prototype.yo)}},Nx={"http://www.opengis.net/gml":{lineStringMember:qa(Ya.prototype.Nh),curveMember:qa(Ya.prototype.Nh)}},Kx={"http://www.opengis.net/gml":{exterior:qa(Ya.prototype.Sh),interior:qa(Ya.prototype.Sh)}},
Ox={"http://www.opengis.net/gml":{Curve:qa(Ya.prototype.xe),MultiCurve:qa(Ya.prototype.Ph),Point:qa(Ya.prototype.Rh),MultiPoint:qa(Ya.prototype.xo),LineString:qa(Ya.prototype.xe),MultiLineString:qa(Ya.prototype.Ph),LinearRing:qa(Ya.prototype.Oh),Polygon:qa(Ya.prototype.Ce),MultiPolygon:qa(Ya.prototype.Qh),Surface:qa(Ya.prototype.Ce),MultiSurface:qa(Ya.prototype.Qh),Envelope:qa(Ya.prototype.wo)}},Px={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};
Ya.prototype.d=function(a,b){return jd("http://www.opengis.net/gml",Px[b[b.length-1].P.nodeName])};Ya.prototype.c=function(a,b){b=b[b.length-1];var c=b.multiSurface,d=b.surface,e=b.curve;b=b.multiCurve;var f;t(a)?f="Envelope":(f=a.M(),"MultiPolygon"===f&&!0===c?f="MultiSurface":"Polygon"===f&&!0===d?f="Surface":"LineString"===f&&!0===e?f="Curve":"MultiLineString"===f&&!0===b&&(f="MultiCurve"));return jd("http://www.opengis.net/gml",f)};Ya.prototype.q=function(a,b){b=oe(this,b);var c=jd("http://www.opengis.net/gml",
"geom"),d={P:c,srsName:this.srsName,curve:this.e,surface:this.i,multiSurface:this.g,multiCurve:this.f};g(b)&&vd(d,b);this.Ae(c,a,[d]);return c};Ya.prototype.a=function(a,b){b=oe(this,b);var c=jd("http://www.opengis.net/gml","featureMembers");$f(c,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);var d={srsName:this.srsName,curve:this.e,surface:this.i,multiSurface:this.g,multiCurve:this.f,featureNS:this.featureNS,featureType:this.featureType};g(b)&&vd(d,b);d=[d];
b=d[d.length-1];var e=b.featureType,f=b.featureNS,h={};h[f]={};h[f][e]=qa(this.Lh,this);b=Gd(b);b.P=c;wc(b,h,Zd(e,f),a,d);return c};I(Zf,oc);l=Zf.prototype;l.gh=function(a,b){var c=Me(a,!1).replace(/^\s*|\s*$/g,"");b=b[0].srsName;var d=a.parentNode.getAttribute("srsDimension"),e="enu";null===b||(e=Ka(b).d);c=c.split(/[\s,]+/);b=2;null===a.getAttribute("srsDimension")?null===a.getAttribute("dimension")?null===d||(b=Yf(d)):b=Yf(a.getAttribute("dimension")):b=Yf(a.getAttribute("srsDimension"));for(var f,
h=[],m=0,q=c.length;m<q;m+=b)d=parseFloat(c[m]),a=parseFloat(c[m+1]),f=3===b?parseFloat(c[m+2]):0,"en"===e.substr(0,2)?h.push(d,a,f):h.push(a,d,f);return h};l.wn=function(a,b){a=ta([null],this.Uh,a,b,this);return He(a[1][0],a[1][1],a[1][3],a[1][4])};l.pk=function(a,b){a=ta(void 0,this.td,a,b,this);g(a)&&b[b.length-1].push(a)};l.gn=function(a,b){a=ta(void 0,this.td,a,b,this);g(a)&&(b[b.length-1][0]=a)};l.sd=Object({"http://www.opengis.net/gml":{coordinates:Cc(Zf.prototype.gh)}});l.De=Object({"http://www.opengis.net/gml":{innerBoundaryIs:Zf.prototype.pk,
outerBoundaryIs:Zf.prototype.gn}});l.Uh=Object({"http://www.opengis.net/gml":{coordinates:mc(Zf.prototype.gh)}});l.Cf=Object({"http://www.opengis.net/gml":{Point:Cc(oc.prototype.mh),MultiPoint:Cc(oc.prototype.kh),LineString:Cc(oc.prototype.re),MultiLineString:Cc(oc.prototype.jh),LinearRing:Cc(oc.prototype.ih),Polygon:Cc(oc.prototype.se),MultiPolygon:Cc(oc.prototype.lh),Box:Cc(Zf.prototype.wn)}});I($e,ph);var pe=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"],Qx={rte:Or,
trk:Pr,wpt:Qr},Rx=Ca(pe,{rte:mc(Or),trk:mc(Pr),wpt:mc(Qr)}),Qv=Ca(pe,{text:da(Aa,"linkText"),type:da(Aa,"linkType")}),Rv=Ca(pe,{name:da(Aa),cmt:da(Aa),desc:da(Aa),src:da(Aa),link:fo,number:da(lf),extensions:go,type:da(Aa),rtept:function(a,b){var c=ta({},Sx,a,b);g(c)&&eo(b[b.length-1].flatCoordinates,a,c)}}),Sx=Ca(pe,{ele:da(Od),time:da(co)}),Sv=Ca(pe,{name:da(Aa),cmt:da(Aa),desc:da(Aa),src:da(Aa),link:fo,number:da(lf),type:da(Aa),extensions:go,trkseg:function(a,b){var c=b[b.length-1];Of(Tx,a,b);c.ends.push(c.flatCoordinates.length)}}),
Tx=Ca(pe,{trkpt:function(a,b){var c=ta({},Ux,a,b);g(c)&&eo(b[b.length-1].flatCoordinates,a,c)}}),Ux=Ca(pe,{ele:da(Od),time:da(co)}),Tv=Ca(pe,{ele:da(Od),time:da(co),magvar:da(Od),geoidheight:da(Od),name:da(Aa),cmt:da(Aa),desc:da(Aa),src:da(Aa),link:fo,sym:da(Aa),type:da(Aa),fix:da(Aa),sat:da(lf),hdop:da(Od),vdop:da(Od),pdop:da(Od),ageofdgpsdata:da(Od),dgpsid:da(lf),extensions:go});$e.prototype.fh=function(a,b){if(!Nc(pe,a.namespaceURI))return null;var c=Qx[a.localName];if(!g(c))return null;c=c(a,
[Ef(this,a,b)]);if(!g(c))return null;Rr(this,[c]);return c};$e.prototype.Ob=function(a,b){return Nc(pe,a.namespaceURI)?"gpx"==a.localName&&(a=ta([],Rx,a,[Ef(this,a,b)]),g(a))?(Rr(this,a),a):[]:[]};var Vv=["text","type"],Uv=cd(pe,{text:qa(sc),type:qa(sc)}),Vx=cd(pe,"name cmt desc src link number type rtept".split(" ")),Wx=cd(pe,{name:qa(sc),cmt:qa(sc),desc:qa(sc),src:qa(sc),link:qa(ho),number:qa(Cl),type:qa(sc),rtept:Sq(qa(io))}),Xx=cd(pe,"name cmt desc src link number type trkseg".split(" ")),$x=
cd(pe,{name:qa(sc),cmt:qa(sc),desc:qa(sc),src:qa(sc),link:qa(ho),number:qa(Cl),type:qa(sc),trkseg:Sq(qa(function(a,b,c){wc({P:a,geometryLayout:b.a,properties:{}},Yx,Zx,b.K(),c)}))}),Zx=Zd("trkpt"),Yx=cd(pe,{trkpt:qa(io)}),Wv=cd(pe,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),Xv=cd(pe,{ele:qa(mf),time:qa(function(a,b){b=new Date(1E3*b);b=b.getUTCFullYear()+"-"+Na(b.getUTCMonth()+1)+"-"+Na(b.getUTCDate())+"T"+Na(b.getUTCHours())+
":"+Na(b.getUTCMinutes())+":"+Na(b.getUTCSeconds())+"Z";a.appendChild(Vi.createTextNode(b))}),magvar:qa(mf),geoidheight:qa(mf),name:qa(sc),cmt:qa(sc),desc:qa(sc),src:qa(sc),link:qa(ho),sym:qa(sc),type:qa(sc),fix:qa(sc),sat:qa(Cl),hdop:qa(mf),vdop:qa(mf),pdop:qa(mf),ageofdgpsdata:qa(mf),dgpsid:qa(Cl)}),Zv={Point:"wpt",LineString:"rte",MultiLineString:"trk"},ay=cd(pe,{rte:qa(function(a,b,c){var d=c[0],e=b.D();a={P:a,properties:e};b=b.Q();g(b)&&(b=Sd(b,!0,d),a.geometryLayout=b.a,e.rtept=b.K());d=Vx[c[c.length-
1].P.namespaceURI];e=Xf(e,d);wc(a,Wx,Pf,e,c,d)}),trk:qa(function(a,b,c){var d=c[0],e=b.D();a={P:a,properties:e};b=b.Q();g(b)&&(b=Sd(b,!0,d),e.trkseg=b.ad());d=Xx[c[c.length-1].P.namespaceURI];e=Xf(e,d);wc(a,$x,Pf,e,c,d)}),wpt:qa(function(a,b,c){var d=c[0],e=c[c.length-1];e.properties=b.D();b=b.Q();g(b)&&(b=Sd(b,!0,d),e.geometryLayout=b.a,io(a,b.K(),c))})});$e.prototype.a=function(a,b){b=oe(this,b);var c=jd("http://www.topografix.com/GPX/1/1","gpx");wc({P:c},ay,Yv,a,[b]);return c};I(ok,Al);l=ok.prototype;
l.M=function(){return"text"};l.sb=function(a,b){return this.hd(E(a)?a:"",oe(this,b))};l.ja=function(a,b){return this.pf(E(a)?a:"",oe(this,b))};l.Gc=function(a,b){return this.kd(E(a)?a:"",oe(this,b))};l.za=function(){return this.defaultDataProjection};l.qd=function(a,b){return this.ye(a,oe(this,b))};l.ub=function(a,b){return this.Mh(a,oe(this,b))};l.Mc=function(a,b){return this.rd(a,oe(this,b))};I(rg,ok);var by=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,cy=
/^H.([A-Z]{3}).*?:(.*)/,Ct=/^HFDTE(\d{2})(\d{2})(\d{2})/;rg.prototype.hd=function(a,b){var c=this.b;a=$v(a);var d={},e=[],f=2E3,h=0,m=1,q;var w=0;for(q=a.length;w<q;++w){var F=a[w],M;if("B"==F.charAt(0)){if(M=by.exec(F)){F=parseInt(M[1],10);var S=parseInt(M[2],10),Y=parseInt(M[3],10),N=parseInt(M[4],10)+parseInt(M[5],10)/6E4;"S"==M[6]&&(N=-N);var O=parseInt(M[7],10)+parseInt(M[8],10)/6E4;"W"==M[9]&&(O=-O);e.push(O,N);"none"!=c&&e.push("gps"==c?parseInt(M[11],10):"barometric"==c?parseInt(M[12],10):
0);e.push(Date.UTC(f,h,m,F,S,Y)/1E3)}}else if("H"==F.charAt(0))if(M=Ct.exec(F))m=parseInt(M[1],10),h=parseInt(M[2],10)-1,f=2E3+parseInt(M[3],10);else if(M=cy.exec(F))d[M[1]]=vg(M[2]),Ct.exec(F)}if(0===e.length)return null;a=new Ha(null);kf(a,"none"==c?"XYM":"XYZM",e);c=new Wa(Sd(a,!1,b));c.t(d);return c};rg.prototype.pf=function(a,b){a=this.hd(a,b);return null===a?[]:[a]};l=Ig.prototype;l.Pb="";l.pc="";l.ib="";l.Ec=null;l.hb="";l.Sb="";l.Yb=!1;l.toString=function(){var a=[],b=this.Pb;b&&a.push(qk(b,
Dt,!0),":");if(b=this.ib){a.push("//");var c=this.pc;c&&a.push(qk(c,Dt,!0),"@");a.push(encodeURIComponent(String(b)).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Ec;null!=b&&a.push(":",String(b))}if(b=this.hb)this.ib&&"/"!=b.charAt(0)&&a.push("/"),a.push(qk(b,"/"==b.charAt(0)?dy:ey,!0));(b=this.b.toString())&&a.push("?",b);(b=this.Sb)&&a.push("#",qk(b,fy));return a.join("")};l.clone=function(){return new Ig(this)};var Dt=/[#\/\?@]/g,ey=/[#\?:]/g,dy=/[#\?]/g,cw=/[#\?@]/g,fy=/#/g;l=pk.prototype;l.ia=
null;l.va=null;l.Tb=function(){Jg(this);return this.va};l.add=function(a,b){Jg(this);this.b=null;a=aj(this,a);var c=this.ia.get(a);c||this.ia.set(a,c=[]);c.push(b);this.va++;return this};l.remove=function(a){Jg(this);a=aj(this,a);return Mh(this.ia.a,a)?(this.b=null,this.va-=this.ia.get(a).length,this.ia.remove(a)):!1};l.clear=function(){this.ia=this.b=null;this.va=0};l.la=function(){Jg(this);return 0==this.va};l.C=function(){Jg(this);for(var a=this.ia.cb(),b=this.ia.C(),c=[],d=0;d<b.length;d++)for(var e=
a[d],f=0;f<e.length;f++)c.push(b[d]);return c};l.cb=function(a){Jg(this);var b=[];if(E(a))Ur(this,a)&&(b=td(b,this.ia.get(aj(this,a))));else{a=this.ia.cb();for(var c=0;c<a.length;c++)b=td(b,a[c])}return b};l.set=function(a,b){Jg(this);this.b=null;a=aj(this,a);Ur(this,a)&&(this.va-=this.ia.get(a).length);this.ia.set(a,[b]);this.va++;return this};l.get=function(a,b){a=a?this.cb(a):[];return 0<a.length?String(a[0]):b};l.toString=function(){if(this.b)return this.b;if(!this.ia)return"";for(var a=[],b=
this.ia.C(),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.cb(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="\x3d"+encodeURIComponent(String(d[f])));a.push(h)}}return this.b=a.join("\x26")};l.clone=function(){var a=new pk;a.b=this.b;this.ia&&(a.ia=this.ia.clone(),a.va=this.va);return a};l=lc.prototype;l.Wi=function(){return this.d};l.mj=function(){return this.q};l.nj=function(){return this.l};l.Qm=function(){return this.b};l.Rm=function(){return this.e};l.Sm=function(){return this.a};
l.Tm=function(){return this.f};l.Um=function(){return this.c};l.xj=function(){return this.g};l.yj=function(){return this.i};l.Wn=function(a){this.d=a};l.Vn=function(a){this.b=a};l.Vm=function(a){this.e=a};l.Wm=function(a){this.a=a};l.eo=function(a){this.f=a};l.fo=function(a){this.c=a};l.ho=function(a){this.g=a};l.io=function(a){this.i=a};I(ye,ph);var Kg=["http://www.google.com/kml/ext/2.2"],Bb=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2",
"http://www.opengis.net/kml/2.2"],Ak=[255,255,255,1],so=new jf({color:Ak}),Et=[20,2],Ft=[64,64],ds=new ld({anchor:Et,anchorOrigin:"bottom-left",anchorXUnits:"pixels",anchorYUnits:"pixels",crossOrigin:"anonymous",rotation:0,scale:.5,size:Ft,src:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),to=new Lc({color:Ak,width:1}),es=new lc({font:"normal 16px Helvetica",fill:so,stroke:to,scale:1}),ew=[new qd({fill:so,image:ds,text:es,stroke:to,zIndex:0})],Gt={fraction:"fraction",pixels:"pixels"},
gy=Ca(Bb,{value:Cc(Aa)}),kw=Ca(Bb,{Data:function(a,b){var c=a.getAttribute("name");null!==c&&(a=ta(void 0,gy,a,b),g(a)&&(b[b.length-1][c]=a))},SchemaData:function(a,b){Of(hy,a,b)}}),El=Ca(Bb,{extrude:da(Zh),altitudeMode:da(Aa)}),fw=Ca(Bb,{coordinates:Cc(Vr)}),iw=Ca(Bb,{innerBoundaryIs:function(a,b){a=ta(void 0,iy,a,b);g(a)&&b[b.length-1].push(a)},outerBoundaryIs:function(a,b){a=ta(void 0,jy,a,b);g(a)&&(b[b.length-1][0]=a)}}),gw=Ca(Bb,{when:function(a,b){b=b[b.length-1].Kh;a=Me(a,!1);if(a=/^\s*(\d{4})($|-(\d{2})($|-(\d{2})($|T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?)))))\s*$/.exec(a)){var c=
Date.UTC(parseInt(a[1],10),g(a[3])?parseInt(a[3],10)-1:0,g(a[5])?parseInt(a[5],10):1,g(a[7])?parseInt(a[7],10):0,g(a[8])?parseInt(a[8],10):0,g(a[9])?parseInt(a[9],10):0);if(g(a[10])&&"Z"!=a[10]){var d="-"==a[11]?-1:1;c+=60*d*parseInt(a[12],10);g(a[13])&&(c+=3600*d*parseInt(a[13],10))}b.push(c)}else b.push(0)}},Ca(Kg,{coord:function(a,b){b=b[b.length-1].j;a=Me(a,!1);(a=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(a))?
b.push(parseFloat(a[1]),parseFloat(a[2]),parseFloat(a[3]),0):b.push(0,0,0,0)}})),po=Ca(Bb,{coordinates:Cc(Vr)}),ky=Ca(Bb,{href:da(oo)},Ca(Kg,{x:da(Od),y:da(Od),w:da(Od),h:da(Od)})),ly=Ca(Bb,{Icon:da(function(a,b){a=ta({},ky,a,b);return g(a)?a:null}),heading:da(Od),hotSpot:da(function(a){var b=a.getAttribute("xunits"),c=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),Af:Gt[b],y:parseFloat(a.getAttribute("y")),Bf:Gt[c]}}),scale:da(Wr)}),iy=Ca(Bb,{LinearRing:Cc(Xr)}),my=Ca(Bb,{color:da(no),
scale:da(Wr)}),ny=Ca(Bb,{color:da(no),width:da(Od)}),hw=Ca(Bb,{LineString:mc(Zr),LinearRing:mc($r),MultiGeometry:mc(as),Point:mc(bs),Polygon:mc(cs)}),oy=Ca(Kg,{Track:mc(Yr)}),lw=Ca(Bb,{ExtendedData:fs,Link:function(a,b){Of(py,a,b)},address:da(Aa),description:da(Aa),name:da(Aa),open:da(Zh),phoneNumber:da(Aa),visibility:da(Zh)}),py=Ca(Bb,{href:da(oo)}),jy=Ca(Bb,{LinearRing:Cc(Xr)}),qy=Ca(Bb,{Style:da(ro),key:da(Aa),styleUrl:da(function(a){var b=vg(Me(a,!1));return null!=a.baseURI?Dl(a.baseURI,b).toString():
b})}),ry=Ca(Bb,{ExtendedData:fs,MultiGeometry:da(as,"geometry"),LineString:da(Zr,"geometry"),LinearRing:da($r,"geometry"),Point:da(bs,"geometry"),Polygon:da(cs,"geometry"),Style:da(ro),StyleMap:function(a,b){a=ta(void 0,Ht,a,b);g(a)&&(b=b[b.length-1],t(a)?b.Style=a:E(a)&&(b.styleUrl=a))},address:da(Aa),description:da(Aa),name:da(Aa),open:da(Zh),phoneNumber:da(Aa),styleUrl:da(oo),visibility:da(Zh)},Ca(Kg,{MultiTrack:da(function(a,b){a=ta([],oy,a,b);if(g(a))return b=new Qa(null),nl(b,a),b},"geometry"),
Track:da(Yr,"geometry")})),sy=Ca(Bb,{color:da(no),fill:da(Zh),outline:da(Zh)}),hy=Ca(Bb,{SimpleData:function(a,b){var c=a.getAttribute("name");null!==c&&(a=Aa(a),b[b.length-1][c]=a)}}),jw=Ca(Bb,{IconStyle:function(a,b){a=ta({},ly,a,b);if(g(a)){b=b[b.length-1];var c=qc(a,"Icon",{});var d=c.href;d=g(d)?d:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png";var e,f,h,m=a.hotSpot;g(m)?(e=[m.x,m.y],f=m.Af,h=m.Bf):"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"===d?(e=Et,h=f="pixels"):
/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(d)&&(e=[.5,0],h=f="fraction");var q;m=c.x;var w=c.y;g(m)&&g(w)&&(q=[m,w]);var F;m=c.w;c=c.h;g(m)&&g(c)&&(F=[m,c]);var M;c=a.heading;g(c)&&(M=me(c));a=a.scale;"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"==d&&(F=Ft);e=new ld({anchor:e,anchorOrigin:"bottom-left",anchorXUnits:f,anchorYUnits:h,crossOrigin:"anonymous",offset:q,offsetOrigin:"bottom-left",rotation:M,scale:a,size:F,src:d});b.imageStyle=e}},LabelStyle:function(a,b){a=ta({},
my,a,b);g(a)&&(b[b.length-1].textStyle=new lc({fill:new jf({color:qc(a,"color",Ak)}),scale:a.scale}))},LineStyle:function(a,b){a=ta({},ny,a,b);g(a)&&(b[b.length-1].strokeStyle=new Lc({color:qc(a,"color",Ak),width:qc(a,"width",1)}))},PolyStyle:function(a,b){a=ta({},sy,a,b);if(g(a)){b=b[b.length-1];b.fillStyle=new jf({color:qc(a,"color",Ak)});var c=a.fill;g(c)&&(b.fill=c);a=a.outline;g(a)&&(b.outline=a)}}}),Ht=Ca(Bb,{Pair:function(a,b){a=ta({},qy,a,b);if(g(a)){var c=a.key;g(c)&&"normal"==c&&(c=a.styleUrl,
g(c)&&(b[b.length-1]=c),a=a.Style,g(a)&&(b[b.length-1]=a))}}});l=ye.prototype;l.eh=function(a,b){ai(a);var c=Ca(Bb,{Folder:tv(this.eh,this),Placemark:mc(this.rf,this),Style:J(this.Jn,this),StyleMap:J(this.In,this)});c=ta([],c,a,b,this);if(g(c))return c};l.rf=function(a,b){var c=ta({geometry:null},ry,a,b);if(g(c)){var d=new Wa;a=a.getAttribute("id");null===a||d.Qb(a);a=b[0];null!=c.geometry&&Sd(c.geometry,!1,a);d.t(c);this.c&&d.cf(this.d);return d}};l.Jn=function(a,b){var c=a.getAttribute("id");null!==
c&&(b=ro(a,b),g(b)&&(c=null!=a.baseURI?Dl(a.baseURI,"#"+c).toString():"#"+c,this.b[c]=b))};l.In=function(a,b){var c=a.getAttribute("id");null!==c&&(b=ta(void 0,Ht,a,b),g(b)&&(c=null!=a.baseURI?Dl(a.baseURI,"#"+c).toString():"#"+c,this.b[c]=b))};l.fh=function(a,b){if(!Nc(Bb,a.namespaceURI))return null;a=this.rf(a,[Ef(this,a,b)]);return g(a)?a:null};l.Ob=function(a,b){if(!Nc(Bb,a.namespaceURI))return[];var c=ai(a);if("Document"==c||"Folder"==c)return c=this.eh(a,[Ef(this,a,b)]),g(c)?c:[];if("Placemark"==
c)return c=this.rf(a,[Ef(this,a,b)]),g(c)?[c]:[];if("kml"==c){c=[];for(a=a.firstElementChild;null!==a;a=a.nextElementSibling){var d=this.Ob(a,b);g(d)&&Tb(c,d)}return c}return[]};l.Dn=function(a){if(Og(a))return gs(this,a);if(Pg(a))return uo(this,a);if(E(a))return a=Wf(a),gs(this,a)};l.En=function(a){var b=[];Og(a)?Tb(b,hs(this,a)):Pg(a)?Tb(b,vo(this,a)):E(a)&&(a=Wf(a),Tb(b,hs(this,a)));return b};var ty=cd(Bb,["Document","Placemark"]),vy=cd(Bb,{Document:qa(function(a,b,c){wc({P:a},uy,vw,b,c)}),Placemark:qa(js)}),
uy=cd(Bb,{Placemark:qa(js)}),ww={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry"},It=cd(Bb,["href"],cd(Kg,["x","y","w","h"])),Jt=cd(Bb,{href:qa(sc)},cd(Kg,{x:qa(mf),y:qa(mf),w:qa(mf),h:qa(mf)})),wy=cd(Bb,["scale","heading","Icon","hotSpot"]),xy=cd(Bb,{Icon:qa(function(a,b,c){a={P:a};var d=It[c[c.length-1].P.namespaceURI],e=Xf(b,d);wc(a,Jt,Pf,e,c,d);d=It[Kg[0]];e=Xf(b,d);wc(a,Jt,
uw,e,c,d)}),heading:qa(mf),hotSpot:qa(function(a,b){a.setAttribute("x",b.x);a.setAttribute("y",b.y);a.setAttribute("xunits",b.Af);a.setAttribute("yunits",b.Bf)}),scale:qa(ns)}),yy=cd(Bb,["color","scale"]),zy=cd(Bb,{color:qa(wo),scale:qa(ns)}),Ay=cd(Bb,["color","width"]),By=cd(Bb,{color:qa(wo),width:qa(mf)}),mw=cd(Bb,{LinearRing:qa(bj)}),Cy=cd(Bb,{LineString:qa(bj),Point:qa(bj),Polygon:qa(ls)}),ow=cd(Bb,"name open visibility address phoneNumber description styleUrl Style".split(" ")),ks=cd(Bb,{MultiGeometry:qa(function(a,
b,c){a={P:a};var d=b.M(),e,f;"MultiPoint"==d?(e=b.ce(),f=Dy):"MultiLineString"==d?(e=b.ad(),f=Ey):"MultiPolygon"==d&&(e=b.Id(),f=Fy);wc(a,Cy,f,e,c)}),LineString:qa(bj),LinearRing:qa(bj),Point:qa(bj),Polygon:qa(ls),Style:qa(function(a,b,c){a={P:a};var d={},e=b.e,f=b.c,h=b.f;b=b.a;null===h||(d.IconStyle=h);null===b||(d.LabelStyle=b);null===f||(d.LineStyle=f);null===e||(d.PolyStyle=e);b=Gy[c[c.length-1].P.namespaceURI];d=Xf(d,b);wc(a,Hy,Pf,d,c,b)}),address:qa(sc),description:qa(sc),name:qa(sc),open:qa(Mr),
phoneNumber:qa(sc),styleUrl:qa(sc),visibility:qa(Mr)}),qw=cd(Bb,{coordinates:qa(function(a,b,c){c=c[c.length-1];var d=c.layout;c=c.stride;var e;"XY"==d||"XYM"==d?e=2:("XYZ"==d||"XYZM"==d)&&(e=3);var f,h=b.length,m="";if(0<h){m+=b[0];for(d=1;d<e;++d)m+=","+b[d];for(f=c;f<h;f+=c)for(m+=" "+b[f],d=1;d<e;++d)m+=","+b[f+d]}sc(a,m)})}),ms=cd(Bb,{outerBoundaryIs:qa(is),innerBoundaryIs:qa(is)}),Iy=cd(Bb,{color:qa(wo)}),Gy=cd(Bb,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Hy=cd(Bb,{IconStyle:qa(function(a,
b,c){a={P:a};var d={},e=b.Xa(),f=b.Dd(),h={href:b.b.f};if(null!==e){h.w=e[0];h.h=e[1];var m=b.mb(),q=b.rb();null!==q&&null!==f&&0!==q[0]&&q[1]!==e[1]&&(h.x=q[0],h.y=f[1]-(q[1]+e[1]));null===m||0===m[0]||m[1]===e[1]||(d.hotSpot={x:m[0],Af:"pixels",y:e[1]-m[1],Bf:"pixels"})}d.Icon=h;e=b.l;1!==e&&(d.scale=e);b=b.q;0!==b&&(d.heading=b);b=wy[c[c.length-1].P.namespaceURI];d=Xf(d,b);wc(a,xy,Pf,d,c,b)}),LabelStyle:qa(function(a,b,c){a={P:a};var d={},e=b.b;null===e||(d.color=e.b);b=b.a;g(b)&&1!==b&&(d.scale=
b);b=yy[c[c.length-1].P.namespaceURI];d=Xf(d,b);wc(a,zy,Pf,d,c,b)}),LineStyle:qa(function(a,b,c){a={P:a};var d=Ay[c[c.length-1].P.namespaceURI];b=Xf({color:b.b,width:b.a},d);wc(a,By,Pf,b,c,d)}),PolyStyle:qa(function(a,b,c){wc({P:a},Iy,Jy,[b.b],c)})}),Jy=Zd("color"),rw=Zd("coordinates"),sw=Zd("innerBoundaryIs"),Dy=Zd("Point"),Ey=Zd("LineString"),nw=Zd("LinearRing"),Fy=Zd("Polygon"),tw=Zd("outerBoundaryIs");ye.prototype.a=function(a,b){b=oe(this,b);var c=jd(Bb[4],"kml");$f(c,"http://www.w3.org/2000/xmlns/",
"xmlns:gx",Kg[0]);$f(c,"http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");$f(c,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var d={P:c},e={};1<a.length?e.Document=a:1==a.length&&(e.Placemark=a[0]);a=ty[c.namespaceURI];e=Xf(e,a);wc(d,vy,Pf,e,[b],a);return c};I(bi,ph);var Ro=[null],Ky=Ca(Ro,{nd:function(a,b){b[b.length-1].Ac.push(a.getAttribute("ref"))},tag:os}),
My=Ca(Ro,{node:function(a,b){var c=b[0],d=b[b.length-1],e=a.getAttribute("id"),f=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];d.ng[e]=f;a=ta({od:{}},Ly,a,b);le(a.od)||(f=new Ta(f),Sd(f,!1,c),c=new Wa(f),c.Qb(e),c.t(a.od),d.features.push(c))},way:function(a,b){var c=b[0],d=a.getAttribute("id");a=ta({Ac:[],od:{}},Ky,a,b);b=b[b.length-1];for(var e=[],f=0,h=a.Ac.length;f<h;f++)Tb(e,b.ng[a.Ac[f]]);a.Ac[0]==a.Ac[a.Ac.length-1]?(f=new Fa(null),Nf(f,"XY",e,[e.length])):(f=new Ha(null),
kf(f,"XY",e));Sd(f,!1,c);c=new Wa(f);c.Qb(d);c.t(a.od);b.features.push(c)}}),Ly=Ca(Ro,{tag:os});bi.prototype.Ob=function(a,b){b=Ef(this,a,b);return"osm"==a.localName&&(b=ta({ng:{},features:[]},My,a,[b]),g(b.features))?b.features:[]};Fl.prototype.c=function(a){return Og(a)?this.a(a):Pg(a)?this.b(a):E(a)?(a=Wf(a),this.a(a)):null};I(Gl,Fl);Gl.prototype.a=function(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return this.b(a);return null};Gl.prototype.b=function(a){a=ta({},Ny,a,[]);
return g(a)?a:null};var nf=[null,"http://www.opengis.net/ows/1.1"],Ny=Ca(nf,{ServiceIdentification:da(function(a,b){return ta({},Oy,a,b)}),ServiceProvider:da(function(a,b){return ta({},Py,a,b)}),OperationsMetadata:da(function(a,b){return ta({},Qy,a,b)})}),Ry=Ca(nf,{DeliveryPoint:da(Aa),City:da(Aa),AdministrativeArea:da(Aa),PostalCode:da(Aa),Country:da(Aa),ElectronicMailAddress:da(Aa)}),Sy=Ca(nf,{Value:Ed(function(a){return Aa(a)})}),Ty=Ca(nf,{AllowedValues:da(function(a,b){return ta({},Sy,a,b)})}),
Vy=Ca(nf,{Phone:da(function(a,b){return ta({},Uy,a,b)}),Address:da(function(a,b){return ta({},Ry,a,b)})}),Xy=Ca(nf,{HTTP:da(function(a,b){return ta({},Wy,a,b)})}),Wy=Ca(nf,{Get:Ed(function(a,b){var c=cj(a);return g(c)?ta({href:c},Yy,a,b):void 0}),Post:void 0}),Zy=Ca(nf,{DCP:da(function(a,b){return ta({},Xy,a,b)})}),Qy=Ca(nf,{Operation:function(a,b){var c=a.getAttribute("name");a=ta({},Zy,a,b);g(a)&&(b[b.length-1][c]=a)}}),Uy=Ca(nf,{Voice:da(Aa),Facsimile:da(Aa)}),Yy=Ca(nf,{Constraint:Ed(function(a,
b){var c=a.getAttribute("name");return g(c)?ta({name:c},Ty,a,b):void 0})}),$y=Ca(nf,{IndividualName:da(Aa),PositionName:da(Aa),ContactInfo:da(function(a,b){return ta({},Vy,a,b)})}),Oy=Ca(nf,{Title:da(Aa),ServiceTypeVersion:da(Aa),ServiceType:da(Aa)}),Py=Ca(nf,{ProviderName:da(Aa),ProviderSite:da(cj),ServiceContact:da(function(a,b){return ta({},$y,a,b)})});I(Ff,ok);l=Ff.prototype;l.hd=function(a,b){a=this.kd(a,b);return new Wa(a)};l.pf=function(a,b){return[this.hd(a,b)]};l.kd=function(a,b){var c=Rm(this.a);
a=ss(a,c,this.b);ps(a,a.length,c,a);c=Vj(a,0,a.length,c);return Sd(new Ha(c,this.a),!1,oe(this,b))};l.ye=function(a,b){a=a.Q();return null!=a?this.rd(a,b):""};l.Mh=function(a,b){return this.ye(a[0],b)};l.rd=function(a,b){a=Sd(a,!0,oe(this,b));b=a.j;a=a.s;ps(b,b.length,a,b);return qs(b,a,this.b)};I(qh,mk);qh.prototype.of=function(a,b){if("Topology"==a.type){var c,d=null,e=null;g(a.transform)&&(c=a.transform,d=c.scale,e=c.translate);var f=a.arcs;if(g(c)){c=d;var h=e,m;var q=0;for(m=f.length;q<m;++q){var w=
f[q],F=c,M=h,S=0,Y=0,N;var O=0;for(N=w.length;O<N;++O){var Z=w[O];S+=Z[0];Y+=Z[1];Z[0]=S;Z[1]=Y;xo(Z,F,M)}}}c=[];h=Vd(a.objects);q=0;for(m=h.length;q<m;++q)if("GeometryCollection"===h[q].type){w=h[q];a=c.push;F=a.apply;M=c;Y=w;Z=f;O=d;N=e;var ca=b;Y=Y.geometries;var ea=[];S=0;for(w=Y.length;S<w;++S)ea[S]=us(Y[S],Z,O,N,ca);F.call(a,M,ea)}else w=h[q],c.push(us(w,f,d,e,b));return c}return[]};qh.prototype.za=function(){return this.defaultDataProjection};var xw={Point:function(a,b,c){a=a.coordinates;null===
b||null===c||xo(a,b,c);return new Ta(a)},LineString:function(a,b){a=Hl(a.arcs,b);return new Ha(a)},Polygon:function(a,b){var c=[],d;var e=0;for(d=a.arcs.length;e<d;++e)c[e]=Hl(a.arcs[e],b);return new Fa(c)},MultiPoint:function(a,b,c){a=a.coordinates;var d;if(null!==b&&null!==c){var e=0;for(d=a.length;e<d;++e)xo(a[e],b,c)}return new $a(a)},MultiLineString:function(a,b){var c=[],d;var e=0;for(d=a.arcs.length;e<d;++e)c[e]=Hl(a.arcs[e],b);return new Qa(c)},MultiPolygon:function(a,b){var c=[],d,e;var f=
0;for(e=a.arcs.length;f<e;++f){var h=a.arcs[f];var m=[];var q=0;for(d=h.length;q<d;++q)m[q]=Hl(h[q],b);c[f]=m}return new Ra(c)}};I(be,ph);be.prototype.Ob=function(a,b){var c={featureType:this.e,featureNS:this.c};vd(c,Ef(this,a,g(b)?b:{}));c=[c];this.b.b["http://www.opengis.net/gml"].featureMember=mc(oc.prototype.jd);c=ta([],this.b.b,a,c,this.b);g(c)||(c=[]);return c};be.prototype.g=function(a){if(Og(a))return xs(a);if(Pg(a))return ta({},ys,a,[]);if(E(a))return a=Wf(a),xs(a)};be.prototype.f=function(a){if(Og(a))return vs(this,
a);if(Pg(a))return ws(this,a);if(E(a))return a=Wf(a),vs(this,a)};var yw={"http://www.opengis.net/gml":{boundedBy:da(oc.prototype.qe,"bounds")}},az={"http://www.opengis.net/wfs":{totalInserted:da(lf),totalUpdated:da(lf),totalDeleted:da(lf)}},bz={"http://www.opengis.net/ogc":{FeatureId:mc(function(a){return a.getAttribute("fid")})}},cz={"http://www.opengis.net/wfs":{Feature:function(a,b){Of(bz,a,b)}}},ys={"http://www.opengis.net/wfs":{TransactionSummary:da(function(a,b){return ta({},az,a,b)},"transactionSummary"),
InsertResults:da(function(a,b){return ta([],cz,a,b)},"insertIds")}},dz={"http://www.opengis.net/wfs":{PropertyName:qa(sc)}},Bk={"http://www.opengis.net/wfs":{Insert:qa(function(a,b,c){var d=c[c.length-1];d=jd(d.featureNS,d.featureType);a.appendChild(d);Ya.prototype.Lh(d,b,c)}),Update:qa(function(a,b,c){var d=c[c.length-1],e=d.featureType,f=d.featurePrefix;f=g(f)?f:"feature";var h=d.featureNS;a.setAttribute("typeName",f+":"+e);$f(a,"http://www.w3.org/2000/xmlns/","xmlns:"+f,h);e=b.$;if(g(e)){f=b.C();
h=[];for(var m=0,q=f.length;m<q;m++){var w=b.get(f[m]);g(w)&&h.push({name:f[m],value:w})}wc({P:a,srsName:d.srsName},Bk,Zd("Property"),h,c);zs(a,e)}}),Delete:qa(function(a,b,c){var d=c[c.length-1];c=d.featureType;var e=d.featurePrefix;e=g(e)?e:"feature";d=d.featureNS;a.setAttribute("typeName",e+":"+c);$f(a,"http://www.w3.org/2000/xmlns/","xmlns:"+e,d);b=b.$;g(b)&&zs(a,b)}),Property:qa(function(a,b,c){var d=jd("http://www.opengis.net/wfs","Name");a.appendChild(d);sc(d,b.name);null!=b.value&&(d=jd("http://www.opengis.net/wfs",
"Value"),a.appendChild(d),b.value instanceof gc?Ya.prototype.Ae(d,b.value,c):sc(d,b.value))}),Native:qa(function(a,b){g(b.vo)&&a.setAttribute("vendorId",b.vo);g(b.Tn)&&a.setAttribute("safeToIgnore",b.Tn);g(b.value)&&sc(a,b.value)})}},ez={"http://www.opengis.net/wfs":{Query:qa(function(a,b,c){var d=c[c.length-1],e=d.featurePrefix,f=d.featureNS,h=d.propertyNames,m=d.srsName;a.setAttribute("typeName",(g(e)?e+":":"")+b);g(m)&&a.setAttribute("srsName",m);g(f)&&$f(a,"http://www.w3.org/2000/xmlns/","xmlns:"+
e,f);b=Gd(d);b.P=a;wc(b,dz,Zd("PropertyName"),h,c);d=d.bbox;g(d)&&(h=jd("http://www.opengis.net/ogc","Filter"),b=c[c.length-1].geometryName,e=jd("http://www.opengis.net/ogc","BBOX"),h.appendChild(e),f=jd("http://www.opengis.net/ogc","PropertyName"),sc(f,b),e.appendChild(f),Ya.prototype.Ae(e,d,c),a.appendChild(h))})}};be.prototype.i=function(a){var b=jd("http://www.opengis.net/wfs","GetFeature");b.setAttribute("service","WFS");b.setAttribute("version","1.1.0");g(a)&&(g(a.handle)&&b.setAttribute("handle",
a.handle),g(a.outputFormat)&&b.setAttribute("outputFormat",a.outputFormat),g(a.maxFeatures)&&b.setAttribute("maxFeatures",a.maxFeatures),g(a.resultType)&&b.setAttribute("resultType",a.resultType),g(a.oo)&&b.setAttribute("startIndex",a.oo),g(a.count)&&b.setAttribute("count",a.count));$f(b,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.d);var c=a.featureTypes;a=[{P:b,srsName:a.srsName,featureNS:g(a.featureNS)?a.featureNS:this.c,featurePrefix:a.featurePrefix,geometryName:a.geometryName,
bbox:a.bbox,bh:g(a.bh)?a.bh:[]}];var d=Gd(a[a.length-1]);d.P=b;wc(d,ez,Zd("Query"),c,a);return b};be.prototype.o=function(a,b,c,d){var e=[],f=jd("http://www.opengis.net/wfs","Transaction");f.setAttribute("service","WFS");f.setAttribute("version","1.1.0");var h,m;g(d)&&(h=g(d.gmlOptions)?d.gmlOptions:{},g(d.handle)&&f.setAttribute("handle",d.handle));$f(f,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.d);null!=a&&(m={P:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},
vd(m,h),wc(m,Bk,Zd("Insert"),a,e));null!=b&&(m={P:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},vd(m,h),wc(m,Bk,Zd("Update"),b,e));null!=c&&wc({P:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},Bk,Zd("Delete"),c,e);g(d.nativeElements)&&wc({P:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},Bk,Zd("Native"),d.nativeElements,e);return f};be.prototype.sf=function(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==
a.nodeType)return this.te(a);return null};be.prototype.te=function(a){if(null!=a.firstElementChild&&null!=a.firstElementChild.firstElementChild)for(a=a.firstElementChild.firstElementChild,a=a.firstElementChild;null!==a;a=a.nextElementSibling)if(0!==a.childNodes.length&&(1!==a.childNodes.length||3!==a.firstChild.nodeType)){var b=[{}];this.b.qe(a,b);return Ka(b.pop().srsName)}return null};I(af,ok);var zw={Point:As,LineString:yo,Polygon:Bs,MultiPoint:function(a){var b=[];a=a.ce();for(var c=0,d=a.length;c<
d;++c)b.push("("+As(a[c])+")");return b.join(",")},MultiLineString:function(a){var b=[];a=a.ad();for(var c=0,d=a.length;c<d;++c)b.push("("+yo(a[c])+")");return b.join(",")},MultiPolygon:function(a){var b=[];a=a.Id();for(var c=0,d=a.length;c<d;++c)b.push("("+Bs(a[c])+")");return b.join(",")},GeometryCollection:function(a){var b=[];a=a.Vf();for(var c=0,d=a.length;c<d;++c)b.push(Cs(a[c]));return b.join(",")}};l=af.prototype;l.hd=function(a,b){a=this.kd(a,b);return g(a)?(b=new Wa,b.La(a),b):null};l.pf=
function(a,b){var c=[];a=this.kd(a,b);this.b&&"GeometryCollection"==a.M()?c=a.d:c=[a];b=[];for(var d=0,e=c.length;d<e;++d)a=new Wa,a.La(c[d]),b.push(a);return b};l.kd=function(a,b){a=new rh(new Aw(a));a.b=Il(a.a);a=Es(a);return g(a)?Sd(a,!1,b):null};l.ye=function(a,b){a=a.Q();return g(a)?this.rd(a,b):""};l.Mh=function(a,b){if(1==a.length)return this.ye(a[0],b);for(var c=[],d=0,e=a.length;d<e;++d)c.push(a[d].Q());c=new sb(c);return this.rd(c,b)};l.rd=function(a,b){return Cs(Sd(a,!0,b))};l=rh.prototype;
l.match=function(a){if(a=this.b.type==a)this.b=Il(this.a);return a};l.lf=function(){if(this.match(2)){var a=zo(this);if(this.match(3))return a}else if(ci(this))return null;throw Error(Lg(this));};l.kf=function(){if(this.match(2)){var a=Fs(this);if(this.match(3))return a}else if(ci(this))return[];throw Error(Lg(this));};l.mf=function(){if(this.match(2)){var a=Gs(this);if(this.match(3))return a}else if(ci(this))return[];throw Error(Lg(this));};l.kn=function(){if(this.match(2)){var a;if(2==this.b.type)for(a=
[this.lf()];this.match(5);)a.push(this.lf());else a=Fs(this);if(this.match(3))return a}else if(ci(this))return[];throw Error(Lg(this));};l.jn=function(){if(this.match(2)){var a=Gs(this);if(this.match(3))return a}else if(ci(this))return[];throw Error(Lg(this));};l.ln=function(){if(this.match(2)){for(var a=[this.mf()];this.match(5);)a.push(this.mf());if(this.match(3))return a}else if(ci(this))return[];throw Error(Lg(this));};var Cw={POINT:Ta,LINESTRING:Ha,POLYGON:Fa,MULTIPOINT:$a,MULTILINESTRING:Qa,
MULTIPOLYGON:Ra},Bw={POINT:rh.prototype.lf,LINESTRING:rh.prototype.kf,POLYGON:rh.prototype.mf,MULTIPOINT:rh.prototype.kn,MULTILINESTRING:rh.prototype.jn,MULTIPOLYGON:rh.prototype.ln};I(dj,Fl);dj.prototype.a=function(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return this.b(a);return null};dj.prototype.b=function(a){this.version=vg(a.getAttribute("version"));a=ta({version:this.version},fz,a,[]);return g(a)?a:null};var De=[null,"http://www.opengis.net/wms"],fz=Ca(De,{Service:da(function(a,
b){return ta({},gz,a,b)}),Capability:da(function(a,b){return ta({},hz,a,b)})}),hz=Ca(De,{Request:da(function(a,b){return ta({},iz,a,b)}),Exception:da(function(a,b){return ta([],jz,a,b)}),Layer:da(function(a,b){return ta({},Kt,a,b)})}),gz=Ca(De,{Name:da(Aa),Title:da(Aa),Abstract:da(Aa),KeywordList:da(Is),OnlineResource:da(cj),ContactInformation:da(function(a,b){return ta({},kz,a,b)}),Fees:da(Aa),AccessConstraints:da(Aa),LayerLimit:da(lf),MaxWidth:da(lf),MaxHeight:da(lf)}),kz=Ca(De,{ContactPersonPrimary:da(function(a,
b){return ta({},lz,a,b)}),ContactPosition:da(Aa),ContactAddress:da(function(a,b){return ta({},mz,a,b)}),ContactVoiceTelephone:da(Aa),ContactFacsimileTelephone:da(Aa),ContactElectronicMailAddress:da(Aa)}),lz=Ca(De,{ContactPerson:da(Aa),ContactOrganization:da(Aa)}),mz=Ca(De,{AddressType:da(Aa),Address:da(Aa),City:da(Aa),StateOrProvince:da(Aa),PostCode:da(Aa),Country:da(Aa)}),jz=Ca(De,{Format:mc(Aa)}),Kt=Ca(De,{Name:da(Aa),Title:da(Aa),Abstract:da(Aa),KeywordList:da(Is),CRS:Ed(Aa),EX_GeographicBoundingBox:da(function(a,
b){a=ta({},nz,a,b);if(g(a)){b=a.westBoundLongitude;var c=a.southBoundLatitude,d=a.eastBoundLongitude;a=a.northBoundLatitude;return g(b)&&g(c)&&g(d)&&g(a)?[b,c,d,a]:void 0}}),BoundingBox:Ed(function(a){var b=[Hg(a.getAttribute("minx")),Hg(a.getAttribute("miny")),Hg(a.getAttribute("maxx")),Hg(a.getAttribute("maxy"))],c=[Hg(a.getAttribute("resx")),Hg(a.getAttribute("resy"))];return{crs:a.getAttribute("CRS"),extent:b,res:c}}),Dimension:Ed(function(a){return{name:a.getAttribute("name"),units:a.getAttribute("units"),
unitSymbol:a.getAttribute("unitSymbol"),"default":a.getAttribute("default"),multipleValues:$h(a.getAttribute("multipleValues")),nearestValue:$h(a.getAttribute("nearestValue")),current:$h(a.getAttribute("current")),values:Aa(a)}}),Attribution:da(function(a,b){return ta({},oz,a,b)}),AuthorityURL:Ed(function(a,b){b=Mg(a,b);if(g(b))return b.name=a.getAttribute("name"),b}),Identifier:Ed(Aa),MetadataURL:Ed(function(a,b){b=Mg(a,b);if(g(b))return b.type=a.getAttribute("type"),b}),DataURL:Ed(Mg),FeatureListURL:Ed(Mg),
Style:Ed(function(a,b){return ta({},pz,a,b)}),MinScaleDenominator:da(Od),MaxScaleDenominator:da(Od),Layer:Ed(function(a,b){var c=b[b.length-1],d=ta({},Kt,a,b);if(g(d))return b=$h(a.getAttribute("queryable")),g(b)||(b=c.queryable),d.queryable=g(b)?b:!1,b=Yf(a.getAttribute("cascaded")),g(b)||(b=c.cascaded),d.cascaded=b,b=$h(a.getAttribute("opaque")),g(b)||(b=c.opaque),d.opaque=g(b)?b:!1,b=$h(a.getAttribute("noSubsets")),g(b)||(b=c.noSubsets),d.noSubsets=g(b)?b:!1,b=Hg(a.getAttribute("fixedWidth")),
g(b)||(b=c.fixedWidth),d.fixedWidth=b,b=Hg(a.getAttribute("fixedHeight")),g(b)||(b=c.fixedHeight),d.fixedHeight=b,Oa(["Style","CRS","AuthorityURL"],function(e){var f=c[e];if(g(f)){var h=pj(d,e);h=h.concat(f);d[e]=h}}),Oa("EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" "),function(e){g(d[e])||(d[e]=c[e])}),d})}),oz=Ca(De,{Title:da(Aa),OnlineResource:da(cj),LogoURL:da(Hs)}),nz=Ca(De,{westBoundLongitude:da(Od),eastBoundLongitude:da(Od),southBoundLatitude:da(Od),
northBoundLatitude:da(Od)}),iz=Ca(De,{GetCapabilities:da(Ao),GetMap:da(Ao),GetFeatureInfo:da(Ao)}),Ew=Ca(De,{Format:Ed(Aa),DCPType:Ed(function(a,b){return ta({},qz,a,b)})}),qz=Ca(De,{HTTP:da(function(a,b){return ta({},rz,a,b)})}),rz=Ca(De,{Get:da(Mg),Post:da(Mg)}),pz=Ca(De,{Name:da(Aa),Title:da(Aa),Abstract:da(Aa),LegendURL:Ed(Hs),StyleSheetURL:da(Mg),StyleURL:da(Mg)}),Dw=Ca(De,{Format:da(Aa),OnlineResource:da(cj)}),Fw=Ca(De,{Keyword:mc(Aa)});I(rk,ph);rk.prototype.Ob=function(a,b){var c={featureType:this.featureType,
featureNS:this.featureNS};g(b)&&vd(c,Ef(this,a,b));return Gw(this,a,[c])};I(ej,Fl);ej.prototype.a=function(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return this.b(a);return null};ej.prototype.b=function(a){this.version=vg(a.getAttribute("version"));var b=this.d.b(a);if(!g(b))return null;b.version=this.version;b=ta(b,sz,a,[]);return g(b)?b:null};var hi=[null,"http://www.opengis.net/wmts/1.0"],Ck=[null,"http://www.opengis.net/ows/1.1"],sz=Ca(hi,{Contents:da(function(a,b){return ta({},
tz,a,b)})}),tz=Ca(hi,{Layer:Ed(function(a,b){return ta({},uz,a,b)}),TileMatrixSet:Ed(function(a,b){return ta({},vz,a,b)})}),uz=Ca(hi,{Style:Ed(function(a,b){b=ta({},wz,a,b);if(g(b))return a="true"===a.getAttribute("isDefault"),b.isDefault=a,b}),Format:Ed(Aa),TileMatrixSetLink:Ed(function(a,b){return ta({},xz,a,b)}),ResourceURL:Ed(function(a){var b=a.getAttribute("format"),c=a.getAttribute("template");a=a.getAttribute("resourceType");var d={};g(b)&&(d.format=b);g(c)&&(d.template=c);g(a)&&(d.resourceType=
a);return d})},Ca(Ck,{Title:da(Aa),Abstract:da(Aa),WGS84BoundingBox:da(function(a,b){a=ta([],yz,a,b);return 2!=a.length?void 0:ne(a)}),Identifier:da(Aa)})),wz=Ca(hi,{LegendURL:Ed(function(a){var b={};b.format=a.getAttribute("format");b.href=cj(a);return b})},Ca(Ck,{Title:da(Aa),Identifier:da(Aa)})),xz=Ca(hi,{TileMatrixSet:da(Aa)}),yz=Ca(Ck,{LowerCorner:mc(Bo),UpperCorner:mc(Bo)}),vz=Ca(hi,{WellKnownScaleSet:da(Aa),TileMatrix:Ed(function(a,b){return ta({},zz,a,b)})},Ca(Ck,{SupportedCRS:da(Aa),Identifier:da(Aa)})),
zz=Ca(hi,{TopLeftCorner:da(Bo),ScaleDenominator:da(Od),TileWidth:da(lf),TileHeight:da(lf),MatrixWidth:da(lf),MatrixHeight:da(lf)},Ca(Ck,{Identifier:da(Aa)})),Az=new nd(6378137);I(tb,ub);l=tb.prototype;l.O=function(){this.Zd(!1);tb.S.O.call(this)};l.Vk=function(){var a=this.sg();null!=a&&(this.d=Qd(Ka("EPSG:4326"),a),null===this.a||this.set("position",this.d(this.a)))};l.Wk=function(){if(rt){var a=this.tg();a&&!g(this.c)?this.c=gb.navigator.geolocation.watchPosition(J(this.tn,this),J(this.vn,this),
this.bg()):!a&&g(this.c)&&(gb.navigator.geolocation.clearWatch(this.c),this.c=void 0)}};l.tn=function(a){a=a.coords;this.set("accuracy",a.accuracy);this.set("altitude",null===a.altitude?void 0:a.altitude);this.set("altitudeAccuracy",null===a.altitudeAccuracy?void 0:a.altitudeAccuracy);this.set("heading",null===a.heading?void 0:me(a.heading));null===this.a?this.a=[a.longitude,a.latitude]:(this.a[0]=a.longitude,this.a[1]=a.latitude);var b=this.d(this.a);this.set("position",b);this.set("speed",null===
a.speed?void 0:a.speed);a=dq(Az,this.a,a.accuracy);a.qa(this.d);this.set("accuracyGeometry",a);this.k()};l.vn=function(a){a.type="error";this.Zd(!1);this.dispatchEvent(a)};l.Ki=function(){return this.get("accuracy")};l.Li=function(){return this.get("accuracyGeometry")||null};l.Ni=function(){return this.get("altitude")};l.Oi=function(){return this.get("altitudeAccuracy")};l.Tk=function(){return this.get("heading")};l.Uk=function(){return this.get("position")};l.sg=function(){return this.get("projection")};
l.vj=function(){return this.get("speed")};l.tg=function(){return this.get("tracking")};l.bg=function(){return this.get("trackingOptions")};l.ug=function(a){this.set("projection",a)};l.Zd=function(a){this.set("tracking",a)};l.Dh=function(a){this.set("trackingOptions",a)};var Jw=new Lc({color:"rgba(0,0,0,0.2)"}),So=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];l=sg.prototype;l.Xk=function(){return this.g};l.kj=function(){return this.b};l.pj=function(){return this.a};l.gg=function(a){var b=
a.vectorContext,c=a.frameState;a=c.extent;var d=c.viewState,e=d.center,f=d.projection;d=d.resolution;c=c.pixelRatio;c=d*d/(4*c*c);if(null===this.i||!sd(this.i,f)){var h=f.G(),m=f.g,q=m[2],w=m[1],F=m[0];this.c=m[3];this.d=q;this.e=w;this.f=F;m=Ka("EPSG:4326");this.q=Wc(m,f);this.o=Wc(f,m);this.l=this.o(y(h));this.i=f}f=this.l[0];h=this.l[1];m=-1;w=Math.pow(this.n*d,2);F=[];var M=[];d=0;for(q=So.length;d<q;++d){var S=So[d]/2;F[0]=f-S;F[1]=h-S;M[0]=f+S;M[1]=h+S;this.q(F,F);this.q(M,M);S=Math.pow(M[0]-
F[0],2)+Math.pow(M[1]-F[1],2);if(S<=w)break;m=So[d]}d=m;if(-1==d)this.b.length=this.a.length=0;else{f=this.o(e);e=f[0];f=f[1];h=this.U;e=Math.floor(e/d)*d;w=Hd(e,this.f,this.d);q=Co(this,w,c,a,0);for(m=0;w!=this.f&&m++<h;)w=Math.max(w-d,this.f),q=Co(this,w,c,a,q);w=Hd(e,this.f,this.d);for(m=0;w!=this.d&&m++<h;)w=Math.min(w+d,this.d),q=Co(this,w,c,a,q);this.b.length=q;f=Math.floor(f/d)*d;e=Hd(f,this.e,this.c);q=Do(this,e,c,a,0);for(m=0;e!=this.e&&m++<h;)e=Math.max(e-d,this.e),q=Do(this,e,c,a,q);e=
Hd(f,this.e,this.c);for(m=0;e!=this.c&&m++<h;)e=Math.min(e+d,this.c),q=Do(this,e,c,a,q);this.a.length=q}b.Aa(null,this.V);a=0;for(c=this.b.length;a<c;++a)e=this.b[a],b.zb(e,null);a=0;for(c=this.a.length;a<c;++a)e=this.a[a],b.zb(e,null)};l.setMap=function(a){null!==this.g&&(this.g.u("postcompose",this.gg,this),this.g.render());null!==a&&(a.r("postcompose",this.gg,this),a.render());this.g=a};I(tg,Di);tg.prototype.b=function(a){if(g(a)){var b=C(a);if(b in this.d)return this.d[b];a=le(this.d)?this.a:
this.a.cloneNode(!1);return this.d[b]=a}return this.a};tg.prototype.q=function(){this.state=3;Oa(this.c,Hb);this.c=null;this.dispatchEvent("change")};tg.prototype.l=function(){g(this.resolution)||(this.resolution=R(this.extent)/this.a.height);this.state=2;Oa(this.c,Hb);this.c=null;this.dispatchEvent("change")};tg.prototype.load=function(){0==this.state&&(this.state=1,this.dispatchEvent("change"),this.c=[If(this.a,"error",this.q,!1,this),If(this.a,"load",this.l,!1,this)],this.g(this,this.i))};I(ug,
Uf);l=ug.prototype;l.O=function(){1==this.state&&Eo(this);ug.S.O.call(this)};l.Ma=function(a){if(g(a)){var b=C(a);if(b in this.c)return this.c[b];a=le(this.c)?this.a:this.a.cloneNode(!1);return this.c[b]=a}return this.a};l.gb=function(){return this.g};l.Yk=function(){this.state=3;Eo(this);Jj(this)};l.Zk=function(){this.state=this.a.naturalWidth&&this.a.naturalHeight?2:4;Eo(this);Jj(this)};l.load=function(){0==this.state&&(this.state=1,Jj(this),this.e=[If(this.a,"error",this.Yk,!1,this),If(this.a,
"load",this.Zk,!1,this)],this.i(this,this.g))};I(Jl,Tc);l=Jl.prototype;l.Zc=!1;l.O=function(){Jl.S.O.call(this);this.b.Yc()};l.$m=function(a){var b=a.b.dataTransfer;(this.Zc=!(!b||!(b.types&&(Nc(b.types,"Files")||Nc(b.types,"public.file-url"))||b.files&&0<b.files.length)))&&a.preventDefault()};l.an=function(a){this.Zc&&(a.preventDefault(),a.b.dataTransfer.dropEffect="none")};l.bn=function(a){this.Zc&&(a.preventDefault(),a.fb(),a=a.b.dataTransfer,a.effectAllowed="all",a.dropEffect="copy")};l.cn=function(a){this.Zc&&
(a.preventDefault(),a.fb(),a=new Se(a.b),a.type="drop",this.dispatchEvent(a))};sh.prototype.cancel=function(a){if(this.b)this.c instanceof sh&&this.c.cancel();else{if(this.a){var b=this.a;delete this.a;a?b.cancel(a):(b.i--,0>=b.i&&b.cancel())}this.U?this.U.call(this.o,this):this.q=!0;this.b||(a=new sk,fj(this),di(this,!1,a))}};sh.prototype.l=function(a,b){this.g=!1;di(this,a,b)};sh.prototype.then=function(a,b,c){var d,e,f=new nh(function(h,m){d=h;e=m});Ll(this,d,function(h){h instanceof sk?f.cancel():
e(h)});return f.then(a,b,c)};Aq(sh);I(Kl,ka);Kl.prototype.message="Deferred has already fired";Kl.prototype.name="AlreadyCalledError";I(sk,ka);sk.prototype.message="Deferred was canceled";sk.prototype.name="CanceledError";Ms.prototype.a=function(){delete Ml[this.$];throw this.b;};var Ml={};I(Ns,ka);var Os={AbortError:3,EncodingError:5,InvalidModificationError:9,InvalidStateError:7,NotFoundError:1,NotReadableError:4,NoModificationAllowedError:6,PathExistsError:12,QuotaExceededError:10,SecurityError:2,
SyntaxError:8,TypeMismatchError:11};I(Ps,tc);I(gj,Tc);gj.prototype.getError=function(){return this.Ya.error&&new Ns(this.Ya.error,"reading file")};gj.prototype.b=function(a){this.dispatchEvent(new Ps(a,this))};gj.prototype.O=function(){gj.S.O.call(this);delete this.Ya};I(Dc,Jb);Dc.prototype.O=function(){g(this.a)&&Hb(this.a);Dc.S.O.call(this)};Dc.prototype.g=function(a){a=a.b.dataTransfer.files;var b,c;var d=0;for(b=a.length;d<b;++d){var e=c=a[d],f=new gj,h=Nw(f);f.Ya.readAsText(e,"");Ll(h,X(this.i,
c),null,this)}};Dc.prototype.i=function(a,b){var c=this.l,d=this.o;null===d&&(d=c.R().e);c=this.f;var e=[],f;var h=0;for(f=c.length;h<f;++h){var m=new c[h];try{var q=m.ja(b)}catch(Y){q=null}if(null!==q){m=m.za(b);m=Wc(m,d);var w;var F=0;for(w=q.length;F<w;++F){var M=q[F],S=M.Q();null!=S&&S.qa(m);e.push(M)}}}this.dispatchEvent(new th(Bz,this,a,e,d))};Dc.prototype.setMap=function(a){g(this.a)&&(Hb(this.a),this.a=void 0);null!==this.e&&(qf(this.e),this.e=null);Dc.S.setMap.call(this,a);null!==a&&(this.e=
new Jl(a.a),this.a=ma(this.e,"drop",this.g,!1,this))};var Bz="addfeatures";I(th,tc);I(ei,Ve);ei.prototype.clone=function(){return new ei(this.x,this.y)};ei.prototype.scale=Ve.prototype.scale;ei.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};ei.prototype.rotate=function(a){var b=Math.cos(a);a=Math.sin(a);var c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};I(md,Db);I(tk,tc);I(xc,Db);xc.prototype.setMap=function(a){xc.S.setMap.call(this,a);this.Ra()};xc.prototype.X=
function(){var a=Us(this),b,c=a.Q();this.a===hj?b=c.K():this.a===uh?(b=c.K(),b.pop(),c.W(b)):this.a===vh&&(this.f[0].pop(),this.f[0].push(this.f[0][0]),c.W(this.f),b=c.K());"MultiPoint"===this.L?a.La(new $a([b])):"MultiLineString"===this.L?a.La(new Qa([b])):"MultiPolygon"===this.L&&a.La(new Ra([b]));this.dispatchEvent(new tk("drawend",a));null===this.oa||this.oa.push(a);null===this.Ga||this.Ga.jf(a)};xc.prototype.nc=hf;xc.prototype.Ra=function(){var a=this.l,b=this.c();null!==a&&b||Us(this);this.T.setMap(b?
a:null)};var hj="Point",uh="LineString",vh="Polygon",uk="Circle";I(ed,Db);l=ed.prototype;l.Cg=function(a){var b=a.Q();g(this.H[b.M()])&&this.H[b.M()].call(this,a,b);a=this.l;null===a||Go(this,this.L,a)};l.setMap=function(a){this.n.setMap(a);ed.S.setMap.call(this,a)};l.vl=function(a){this.Cg(a.element)};l.wl=function(a){var b=a.element;a=this.a;var c,d=[];Wi(a,b.Q().G(),function(e){b===e.feature&&d.push(e)});for(c=d.length-1;0<=c;--c)a.remove(d[c]);null!==this.f&&0===this.p.Ib()&&(this.n.Yd(this.f),
this.f=null)};l.Bl=function(a,b){var c=b.K();c={feature:a,geometry:b,aa:[c,c]};this.a.ha(b.G(),c)};l.zl=function(a,b){var c=b.K(),d;var e=0;for(d=c.length;e<d;++e){var f=c[e];f={feature:a,geometry:b,depth:[e],index:e,aa:[f,f]};this.a.ha(b.G(),f)}};l.Dg=function(a,b){var c=b.K(),d;var e=0;for(d=c.length-1;e<d;++e){var f=c.slice(e,e+2);var h={feature:a,geometry:b,index:e,aa:f};this.a.ha(ne(f),h)}};l.yl=function(a,b){var c=b.K(),d,e;var f=0;for(e=c.length;f<e;++f){var h=c[f];var m=0;for(d=h.length-1;m<
d;++m){var q=h.slice(m,m+2);var w={feature:a,geometry:b,depth:[f],index:m,aa:q};this.a.ha(ne(q),w)}}};l.Cl=function(a,b){var c=b.K(),d,e;var f=0;for(e=c.length;f<e;++f){var h=c[f];var m=0;for(d=h.length-1;m<d;++m){var q=h.slice(m,m+2);var w={feature:a,geometry:b,depth:[f],index:m,aa:q};this.a.ha(ne(q),w)}}};l.Al=function(a,b){var c=b.K(),d,e,f;var h=0;for(f=c.length;h<f;++h){var m=c[h];var q=0;for(e=m.length;q<e;++q){var w=m[q];var F=0;for(d=w.length-1;F<d;++F){var M=w.slice(F,F+2);var S={feature:a,
geometry:b,depth:[q,h],index:F,aa:M};this.a.ha(ne(M),S)}}}};l.xl=function(a,b){var c=b.d;for(b=0;b<c.length;++b)this.H[c[b].M()].call(this,a,c[b])};l.qk=function(a,b){for(var c=a.aa,d=a.feature,e=a.geometry,f=a.depth,h=a.index,m;b.length<e.s;)b.push(0);switch(e.M()){case "MultiLineString":m=e.K();m[f[0]].splice(h+1,0,b);break;case "Polygon":m=e.K();m[f[0]].splice(h+1,0,b);break;case "MultiPolygon":m=e.K();m[f[1]][f[0]].splice(h+1,0,b);break;case "LineString":m=e.K();m.splice(h+1,0,b);break;default:return}e.W(m);
m=this.a;m.remove(a);Xs(this,e,h,f,1);a={aa:[c[0],b],feature:d,geometry:e,depth:f,index:h};m.ha(ne(a.aa),a);this.g.push([a,1]);c={aa:[b,c[1]],feature:d,geometry:e,depth:f,index:h+1};m.ha(ne(c.aa),c);this.g.push([c,0])};I(ij,tc);I(pc,Jb);pc.prototype.p=function(){return this.a.b};pc.prototype.setMap=function(a){var b=this.l,c=this.a.b;null===b||c.forEach(b.Ih,b);pc.S.setMap.call(this,a);this.a.setMap(a);null===a||c.forEach(a.Eh,a)};pc.prototype.n=function(a){a=a.element;var b=this.l;null===b||b.Eh(a)};
pc.prototype.J=function(a){a=a.element;var b=this.l;null===b||b.Ih(a)};I(Ec,Db);l=Ec.prototype;l.ed=function(a,b){b=g(b)?b:!0;var c=a.Q(),d=this.T[c.M()];if(g(d)){var e=C(a);this.N[e]=c.G(Yd());d.call(this,a,c);b&&(this.H[e]=c.r("change",J(this.Oj,this,a),this),this.p[e]=a.r(Uc(a.a),this.Dl,this))}};l.Hi=function(a){this.ed(a)};l.Ii=function(a){this.fd(a)};l.Eg=function(a){var b;a instanceof qg?b=a.feature:a instanceof Tf&&(b=a.element);this.ed(b)};l.Fg=function(a){var b;a instanceof qg?b=a.feature:
a instanceof Tf&&(b=a.element);this.fd(b)};l.Dl=function(a){a=a.c;this.fd(a,!0);this.ed(a,!0)};l.Oj=function(a){if(this.o){var b=C(a);b in this.n||(this.n[b]=a)}else this.Jh(a)};l.fd=function(a,b){b=g(b)?b:!0;var c=C(a),d=this.N[c];if(d){var e=this.a,f=[];Wi(e,d,function(h){a===h.feature&&f.push(h)});for(d=f.length-1;0<=d;--d)e.remove(f[d]);b&&(Hb(this.H[c]),delete this.H[c],Hb(this.p[c]),delete this.p[c])}};l.setMap=function(a){var b=this.l,c=this.X,d;null===this.g?null===this.i||(d=this.i.Dc()):
d=this.g;b&&(Oa(c,Wg),c.length=0,d.forEach(this.Ii,this));Ec.S.setMap.call(this,a);a&&(null!==this.g?(c.push(this.g.r("add",this.Eg,this)),c.push(this.g.r("remove",this.Fg,this))):null!==this.i&&(c.push(this.i.r("addfeature",this.Eg,this)),c.push(this.i.r("removefeature",this.Fg,this))),d.forEach(this.Hi,this))};l.nc=hf;l.Jh=function(a){this.fd(a,!1);this.ed(a,!1)};l.El=function(a,b){var c=b.d;for(b=0;b<c.length;++b)this.T[c[b].M()].call(this,a,c[b])};l.Gg=function(a,b){b=b.K();var c;var d=0;for(c=
b.length-1;d<c;++d){var e=b.slice(d,d+2);var f={feature:a,aa:e};this.a.ha(ne(e),f)}};l.Fl=function(a,b){b=b.K();var c,d;var e=0;for(d=b.length;e<d;++e){var f=b[e];var h=0;for(c=f.length-1;h<c;++h){var m=f.slice(h,h+2);var q={feature:a,aa:m};this.a.ha(ne(m),q)}}};l.Gl=function(a,b){var c=b.K(),d;var e=0;for(d=c.length;e<d;++e){var f=c[e];f={feature:a,aa:[f,f]};this.a.ha(b.G(),f)}};l.Hl=function(a,b){b=b.K();var c,d,e;var f=0;for(e=b.length;f<e;++f){var h=b[f];var m=0;for(d=h.length;m<d;++m){var q=
h[m];var w=0;for(c=q.length-1;w<c;++w){var F=q.slice(w,w+2);var M={feature:a,aa:F};this.a.ha(ne(F),M)}}}};l.Il=function(a,b){var c=b.K();c={feature:a,aa:[c,c]};this.a.ha(b.G(),c)};l.Jl=function(a,b){b=b.K();var c,d;var e=0;for(d=b.length;e<d;++e){var f=b[e];var h=0;for(c=f.length-1;h<c;++h){var m=f.slice(h,h+2);var q={feature:a,aa:m};this.a.ha(ne(m),q)}}};I(Ba,Ga);var cx=["#00f","#0ff","#0f0","#ff0","#f00"];l=Ba.prototype;l.Sf=function(){return this.get("blur")};l.Wf=function(){return this.get("gradient")};
l.Hg=function(){return this.get("radius")};l.Pj=function(){for(var a=this.Wf(),b=se(1,256),c=b.createLinearGradient(0,0,1,256),d=1/(a.length-1),e=0,f=a.length;e<f;++e)c.addColorStop(e*d,a[e]);b.fillStyle=c;b.fillRect(0,0,1,256);this.d=b.getImageData(0,0,1,256).data};l.hg=function(){var a=this.Hg(),b=this.Sf(),c=a+b+1,d=2*c;d=se(d,d);d.shadowOffsetX=d.shadowOffsetY=this.L;d.shadowBlur=b;d.shadowColor="#000";d.beginPath();b=c-this.L;d.arc(b,b,a,0,2*Math.PI,!0);d.fill();this.p=d.canvas.toDataURL();this.l=
Array(256);this.k()};l.hk=function(a){a=a.context;var b=a.canvas;b=a.getImageData(0,0,b.width,b.height);var c=b.data,d,e;var f=0;for(d=c.length;f<d;f+=4)if(e=4*c[f+3])c[f]=this.d[e],c[f+1]=this.d[e+1],c[f+2]=this.d[e+2];a.putImageData(b,0,0)};l.th=function(a){this.set("blur",a)};l.yh=function(a){this.set("gradient",a)};l.Ig=function(a){this.set("radius",a)};var gx=0,fx=1;I(Ho,ka);var Cz=0;jj.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(Cz++).toString(36)+Lf().toString(36);gb._callbacks_||
(gb._callbacks_={});var e=this.a.clone();if(a)for(var f in a)if(!a.hasOwnProperty||a.hasOwnProperty(f)){var h=e,m=f,q=a[f];t(q)||(q=[String(q)]);mo(h.b,m,q)}b&&(gb._callbacks_[d]=jx(d,b),b=this.b,f="_callbacks_."+d,t(f)||(f=[String(f)]),mo(e.b,b,f));b=dx(e.toString(),{timeout:this.oc,Bi:!0});Ll(b,null,ix(d,a,c),void 0);return{$:d,Of:b}};jj.prototype.cancel=function(a){a&&(a.Of&&a.Of.cancel(),a.$&&Io(a.$,!1))};I(ib,Yb);l=ib.prototype;l.Vb=function(a,b,c,d,e){var f=this.bb(a,b,c);if(lg(this.a,f))return this.a.get(f);
a=[a,b,c];b=g(e)?e:this.f;c=Cg(this,b);var h=this.H,m;if(m=g(h)){m=a[0];var q=lp(c,m);if(g(q)){var w=mp(b),F=b.G();m=Xd(c.na(m),c.a)[0]*q==w.na(m)*ef(Xe(w,F,m))}else m=b.e}m?h?(h=a[0],m=a[1],b=em(c,h,b),m<b.b||m>b.d?(m=Gf(m,ef(b)),b=[h,m,a[2]]):b=a):(h=a[1],b=em(c,a[0],b),b=h<b.b||h>b.d?null:a):b=a;d=null===b?void 0:this.tileUrlFunction(b,d,e);d=new this.tileClass(a,g(d)?0:4,g(d)?d:"",this.crossOrigin,this.tileLoadFunction);ma(d,"change",this.nm,!1,this);this.a.set(f,d);return d};l.Ua=function(){return this.tileLoadFunction};
l.Va=function(){return this.tileUrlFunction};l.nm=function(a){a=a.target;switch(a.state){case 1:this.dispatchEvent(new Ai("tileloadstart",a));break;case 2:this.dispatchEvent(new Ai("tileloadend",a));break;case 3:this.dispatchEvent(new Ai("tileloaderror",a))}};l.$a=function(a){this.a.clear();this.tileLoadFunction=a;this.k()};l.pa=function(a){this.a.clear();this.tileUrlFunction=a;this.k()};l.yf=function(a,b,c){a=this.bb(a,b,c);lg(this.a,a)&&this.a.get(a)};I(Ad,yd);Ad.prototype.yb=function(a){a=g(a)?
a:{};var b=this.minZoom,c=this.maxZoom,d=null;if(g(a.extent)){d=Array(c+1);var e;for(e=0;e<=c;++e)d[e]=e<b?null:Xe(this,a.extent,e)}return function(f,h,m){h=f[0];if(h<b||c<h)return null;var q=f[1];f=f[2];return f<-Math.pow(2,h)||-1<f||null!==d&&!Cj(d[h],q,f)?null:ri(h,q,-f-1,m)}};Ad.prototype.Ld=function(a,b){if(a[0]<this.maxZoom){var c=2*a[1];a=2*a[2];return si(c,c+1,a,a+1,b)}return null};Ad.prototype.Ad=function(a,b,c,d){d=si(0,a[1],0,a[2],d);for(a=a[0]-1;a>=this.minZoom;--a)if(d.b=d.d>>=1,d.c=
d.a>>=1,b.call(c,a,d))return!0;return!1};I(Qb,ib);var Lt=new ff({html:'\x3ca class\x3d"ol-attribution-bing-tos" href\x3d"http://www.microsoft.com/maps/product/terms.html"\x3eTerms of Use\x3c/a\x3e'});Qb.prototype.i=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)xi(this,"error");else{var b=a.brandLogoUri;-1==b.indexOf("https")&&(b=b.replace("http","https"));var c=a.resourceSets[0].resources[0],
d=-1==this.e?c.zoomMax:this.e,e=new Ad({extent:zi(this.f),minZoom:c.zoomMin,maxZoom:d,tileSize:c.imageWidth==c.imageHeight?c.imageWidth:[c.imageWidth,c.imageHeight]});this.tileGrid=e;var f=this.g;this.tileUrlFunction=lj(e.yb(),Jo(Jc(c.imageUrlSubdomains,function(m){var q=c.imageUrl.replace("{subdomain}",m).replace("{culture}",f);return function(w){if(null===w)var F=void 0;else{F=q.replace;var M=w[0],S=Array(M),Y=1<<M-1,N;for(N=0;N<M;++N){var O=48;w[1]&Y&&(O+=1);w[2]&Y&&(O+=2);S[N]=String.fromCharCode(O);
Y>>=1}w=S.join("");F=F.call(q,"{quadkey}",w)}return F}})));if(c.imageryProviders){var h=Qd(Ka("EPSG:4326"),this.f);a=Jc(c.imageryProviders,function(m){var q=m.attribution,w={};Oa(m.coverageAreas,function(F){var M=F.zoomMin,S=Math.min(F.zoomMax,d);F=F.bbox;F=vb([F[1],F[0],F[3],F[2]],h);var Y;for(Y=M;Y<=S;++Y){var N=Y.toString();M=Xe(e,F,Y);N in w?w[N].push(M):w[N]=[M]}});return new ff({html:q,tileRanges:w})});a.push(Lt);this.d=a}this.L=b;xi(this,"ready")}};I(ab,bb);ab.prototype.X=function(){return this.l};
ab.prototype.ac=function(a,b,c){b!==this.p&&(this.clear(),this.p=b,this.l.ac(a,b,c),Zs(this),this.Oc(this.n))};ab.prototype.ba=function(){this.clear();Zs(this);this.Oc(this.n);this.k()};I($b,Zb);l=$b.prototype;l.Tl=function(){return this.e};l.Cc=function(a,b,c,d){b=wn(this,b);c=this.X?c:1;var e=this.c;if(null!==e&&this.p==this.b&&e.resolution==b&&e.e==c&&qe(e.G(),a))return e;1!=this.n&&(a=a.slice(),Vc(a,this.n));d=this.J(a,[la(a)/b*c,R(a)/b*c],d);g(d)?(e=new tg(a,b,c,this.d,d,this.T,this.a),ma(e,
"change",this.i,!1,this)):e=null;this.c=e;this.p=this.b;return e};l.Sl=function(){return this.a};l.Wl=function(a){vd(this.e,a);this.k()};l.Ul=function(a,b,c,d){var e=this.N;var f=la(c),h=R(c),m=d[0],q=d[1],w=.0254/this.g;e=q*f>m*h?f*e/(m*w):h*e/(q*w);c=y(c);d={OPERATION:this.ba?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.g,SETDISPLAYWIDTH:Math.round(d[0]),SETDISPLAYHEIGHT:Math.round(d[1]),SETVIEWSCALE:e,
SETVIEWCENTERX:c[0],SETVIEWCENTERY:c[1]};vd(d,b);return Ti(Ui([a],d))};l.Vl=function(a){this.c=null;this.a=a;this.k()};I(Ic,Zb);Ic.prototype.Cc=function(a){return sa(a,this.a.G())?this.a:null};I(Eb,Zb);var Mt=[101,101];l=Eb.prototype;l.bm=function(a,b,c,d){if(g(this.e)){var e=K(a,b,0,Mt),f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.c.LAYERS};vd(f,this.c,d);d=Math.floor((e[3]-a[1])/b);f[this.g?"I":"X"]=Math.floor((a[0]-e[0])/b);f[this.g?
"J":"Y"]=d;return at(this,e,Mt,1,Ka(c),f)}};l.dm=function(){return this.c};l.Cc=function(a,b,c,d){if(!g(this.e))return null;b=wn(this,b);1==c||this.ba&&g(this.T)||(c=1);var e=this.a;if(null!==e&&this.N==this.b&&e.resolution==b&&e.e==c&&qe(e.G(),a))return e;e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};vd(e,this.c);a=a.slice();var f=(a[0]+a[2])/2,h=(a[1]+a[3])/2;if(1!=this.J){var m=this.J*la(a)/2,q=this.J*R(a)/2;a[0]=f-m;a[1]=h-q;a[2]=f+m;a[3]=h+q}m=b/c;q=Math.ceil(la(a)/
m);var w=Math.ceil(R(a)/m);a[0]=f-m*q/2;a[2]=f+m*q/2;a[1]=h-m*w/2;a[3]=h+m*w/2;this.p[0]=q;this.p[1]=w;d=at(this,a,this.p,c,d,e);this.a=new tg(a,b,c,this.d,d,this.X,this.n);this.N=this.b;ma(this.a,"change",this.i,!1,this);return this.a};l.cm=function(){return this.n};l.em=function(){return this.e};l.fm=function(a){this.a=null;this.n=a;this.k()};l.gm=function(a){a!=this.e&&(this.e=a,this.a=null,this.k())};l.hm=function(a){vd(this.c,a);$s(this);this.a=null;this.k()};I(rb,ib);rb.prototype.pa=function(a){rb.S.pa.call(this,
lj(this.l,a))};rb.prototype.e=function(a){this.pa(kj(fi(a)))};I(Kb,rb);var wk=new ff({html:'\x26copy; \x3ca href\x3d"http://www.openstreetmap.org/copyright"\x3eOpenStreetMap\x3c/a\x3e contributors.'});I(Fb,rb);var To=new ff({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/"\x3eMapQuest\x3c/a\x3e'}),nx={osm:{maxZoom:19,attributions:[To,wk]},sat:{maxZoom:18,attributions:[To,new ff({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,
attributions:[To,wk]}};Fb.prototype.i=function(){return this.g};var ox={terrain:{Ta:"jpg",opaque:!0},"terrain-background":{Ta:"jpg",opaque:!0},"terrain-labels":{Ta:"png",opaque:!1},"terrain-lines":{Ta:"png",opaque:!1},"toner-background":{Ta:"png",opaque:!0},toner:{Ta:"png",opaque:!0},"toner-hybrid":{Ta:"png",opaque:!1},"toner-labels":{Ta:"png",opaque:!1},"toner-lines":{Ta:"png",opaque:!1},"toner-lite":{Ta:"png",opaque:!0},watercolor:{Ta:"jpg",opaque:!0}},qx={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,
maxZoom:20},watercolor:{minZoom:3,maxZoom:16}};I(Lb,rb);var px=[new ff({html:'Map tiles by \x3ca href\x3d"http://stamen.com/"\x3eStamen Design\x3c/a\x3e, under \x3ca href\x3d"http://creativecommons.org/licenses/by/3.0/"\x3eCC BY 3.0\x3c/a\x3e.'}),wk];I(nb,ib);l=nb.prototype;l.im=function(){return this.e};l.Xb=function(a,b,c){a=nb.S.Xb.call(this,a,b,c);return 1==b?a:Bh(a,b,this.c)};l.jm=function(){return this.g};l.km=function(a){a=g(a)?fi(a):null;this.Ng(a)};l.Ng=function(a){this.g=null!=a?a:[];this.k()};
l.lm=function(a,b,c){var d=this.tileGrid;null===d&&(d=Cg(this,c));if(!(d.b.length<=a[0])){var e=Bf(d,a,this.i),f=Xd(d.na(a[0]),this.c);1!=b&&(f=Bh(f,b,this.c));d={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};vd(d,this.e);var h=this.g;0==h.length?a=void 0:(c=c.b.split(":").pop(),d.SIZE=f[0]+","+f[1],d.BBOX=e.join(","),d.BBOXSR=c,d.IMAGESR=c,d.DPI=90*b,a=1==h.length?h[0]:h[Gf((a[1]<<a[0])+a[2],h.length)],ua(a,"/")||(a+="/"),ua(a,"MapServer/")?a+="export":ua(a,"ImageServer/")&&(a+="exportImage"),a=Ti(Ui([a],
d)));return a}};l.mm=function(a){vd(this.e,a);this.k()};I(Ko,Uf);Ko.prototype.Ma=function(a){a=g(a)?C(a):-1;if(a in this.a)return this.a[a];var b=this.c,c=se(b[0],b[1]);c.strokeStyle="black";c.strokeRect(.5,.5,b[0]+.5,b[1]+.5);c.fillStyle="black";c.textAlign="center";c.textBaseline="middle";c.font="24px sans-serif";c.fillText(ig(this.b),b[0]/2,b[1]/2);return this.a[a]=c.canvas};I(yc,Yb);yc.prototype.Vb=function(a,b,c){var d=this.bb(a,b,c);if(lg(this.a,d))return this.a.get(d);a=new Ko([a,b,c],this.tileGrid);
this.a.set(d,a);return a};I(Rb,ib);Rb.prototype.e=function(a){var b=Ka("EPSG:4326"),c=this.f,d;g(a.bounds)&&(d=vb(a.bounds,Qd(b,c)));var e=a.minzoom||0,f=a.maxzoom||22;this.tileGrid=c=new Ad({extent:zi(c),maxZoom:f,minZoom:e});this.tileUrlFunction=lj(c.yb({extent:d}),kj(a.tiles));if(g(a.attribution)&&null===this.d){b=g(d)?d:b.G();d={};for(var h;e<=f;++e)h=e.toString(),d[h]=[Xe(c,b,e)];this.d=[new ff({html:a.attribution,tileRanges:d})]}xi(this,"ready")};I(hc,Yb);l=hc.prototype;l.wj=function(){return this.g};
l.Gi=function(a,b,c,d,e){null===this.tileGrid?!0===e?Yk(function(){c.call(d,null)}):c.call(d,null):(b=this.tileGrid.Wb(a,b),rx(this.Vb(b[0],b[1],b[2],1,this.f),a,c,d,e))};l.om=function(a){var b=Ka("EPSG:4326"),c=this.f,d;g(a.bounds)&&(d=vb(a.bounds,Qd(b,c)));var e=a.minzoom||0,f=a.maxzoom||22;this.tileGrid=c=new Ad({extent:zi(c),maxZoom:f,minZoom:e});this.g=a.template;var h=a.grids;if(null!=h){this.e=lj(c.yb({extent:d}),kj(h));if(g(a.attribution)){b=g(d)?d:b.G();for(d={};e<=f;++e)h=e.toString(),d[h]=
[Xe(c,b,e)];this.d=[new ff({html:a.attribution,tileRanges:d})]}xi(this,"ready")}else xi(this,"error")};l.Vb=function(a,b,c,d,e){var f=this.bb(a,b,c);if(lg(this.a,f))return this.a.get(f);a=[a,b,c];d=this.e(a,d,e);d=new Lo(a,g(d)?0:4,g(d)?d:"",Bf(this.tileGrid,a),this.i);this.a.set(f,d);return d};l.yf=function(a,b,c){a=this.bb(a,b,c);lg(this.a,a)&&this.a.get(a)};I(Lo,Uf);l=Lo.prototype;l.Ma=function(){return null};l.gb=function(){return this.g};l.Lj=function(){this.state=3;Jj(this)};l.Xj=function(a){this.c=
a.grid;this.e=a.keys;this.d=a.data;this.state=4;Jj(this)};l.load=function(){this.i&&bt(this)};I(Sb,bb);l=Sb.prototype;l.clear=function(){bg(this.l)};l.Ab=function(a,b,c,d){var e=this.n,f=this.l;b=Kh(e,b);a=Xe(e,a,b);var h;for(e=a.b;e<=a.d;++e)for(h=a.c;h<=a.a;++h){var m=f[b+"/"+e+"/"+h];if(g(m)){var q;var w=0;for(q=m.length;w<q;++w){var F=c.call(d,m[w]);if(F)return F}}}};l.Dc=function(){var a=this.l,b=[],c;for(c in a)Tb(b,a[c]);return b};l.Vi=function(a,b){var c=[];sx(this,a,b,function(d){c.push(d)});
return c};l.ac=function(a,b,c){function d(N,O){m[N]=O;this.k()}var e=this.X,f=this.n,h=this.p,m=this.l,q=Kh(f,b);f=Xe(f,a,q);var w=[q,0,0],F,M;for(F=f.b;F<=f.d;++F)for(M=f.c;M<=f.a;++M){var S=q+"/"+F+"/"+M;if(!(S in m)){w[0]=q;w[1]=F;w[2]=M;e(w,c,w);var Y=h(w,1,c);g(Y)&&(m[S]=[],Uq(Y,this.T,X(d,S)).call(this,a,b,c))}}};I(jb,ib);l=jb.prototype;l.pm=function(a,b,c,d){c=Ka(c);var e=this.tileGrid;null===e&&(e=Cg(this,c));b=e.Wb(a,b);if(!(e.b.length<=b[0])){var f=e.ma(b[0]),h=Bf(e,b,this.N);e=Xd(e.na(b[0]),
this.c);var m=this.l;0!==m&&(e=yj(e,m,this.c),h=yf(h,f*m,h));m={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.e.LAYERS};vd(m,this.e,d);d=Math.floor((h[3]-a[1])/f);m[this.i?"I":"X"]=Math.floor((a[0]-h[0])/f);m[this.i?"J":"Y"]=d;return dt(this,b,e,h,1,c,m)}};l.Cd=function(){return this.l};l.bb=function(a,b,c){return this.p+jb.S.bb.call(this,a,b,c)};l.qm=function(){return this.e};l.Xb=function(a,b,c){a=jb.S.Xb.call(this,a,b,c);return 1!=b&&
this.J&&g(this.n)?Bh(a,b,this.c):a};l.rm=function(){return this.g};l.sm=function(a){a=g(a)?fi(a):null;this.Og(a)};l.Og=function(a){this.g=null!=a?a:[];No(this);this.k()};l.tm=function(a,b,c){var d=this.tileGrid;null===d&&(d=Cg(this,c));if(!(d.b.length<=a[0])){1==b||this.J&&g(this.n)||(b=1);var e=d.ma(a[0]),f=Bf(d,a,this.N);d=Xd(d.na(a[0]),this.c);var h=this.l;0!==h&&(d=yj(d,h,this.c),f=yf(f,e*h,f));1!=b&&(d=Bh(d,b,this.c));e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};
vd(e,this.e);return dt(this,a,d,f,b,c,e)}};l.um=function(a){vd(this.e,a);No(this);ct(this);this.k()};I(Td,yd);Td.prototype.q=function(){return this.e};I(eb,ib);l=eb.prototype;l.Ti=function(){return this.e};l.Xi=function(){return this.n};l.bb=function(a,b,c){return this.l+eb.S.bb.call(this,a,b,c)};l.vm=function(){return this.p};l.jj=function(){return this.i};l.uj=function(){return this.T};l.wm=function(){return this.J};l.xm=function(){return this.g};l.Aj=function(){return this.N};l.uo=function(a){vd(this.e,
a);ft(this);this.k()};I(je,yd);je.prototype.yb=function(a){a=g(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=null;if(g(a.extent)){d=Array(c+1);var e;for(e=0;e<=c;++e)d[e]=e<b?null:Xe(this,a.extent,e)}return function(f,h,m){h=f[0];if(h<b||c<h)return null;var q=Math.pow(2,h),w=f[1];if(0>w||q<=w)return null;f=f[2];return f<-q||-1<f||null!==d&&!Cj(d[h],w,-f-1)?null:ri(h,w,-f-1,m)}};I(Vb,ib);I(Pl,ug);Pl.prototype.Ma=function(a){var b=g(a)?C(a).toString():"";if(b in this.d)return this.d[b];a=Pl.S.Ma.call(this,
a);if(2==this.state){if(256==a.width&&256==a.height)return this.d[b]=a;var c=se(256,256);c.drawImage(a,0,0);return this.d[b]=c.canvas}return a};gt.prototype.add=function(a,b,c,d,e,f){if(b+this.b>this.c||c+this.b>this.c)return null;d=it(this,!1,a,b,c,d,f);if(null===d)return null;a=it(this,!0,a,b,c,g(e)?e:yx,f);return{offsetX:d.offsetX,offsetY:d.offsetY,image:d.image,ig:a.image}};xk.prototype.get=function(a){return qc(this.d,a,null)};xk.prototype.add=function(a,b,c,d,e){var f,h;var m=0;for(h=this.a.length;m<
h;++m)if(f=this.a[m],f.width>=b+this.b&&f.height>=c+this.b)return h={offsetX:f.x+this.b,offsetY:f.y+this.b,image:this.c},this.d[a]=h,d.call(e,this.e,f.x+this.b,f.y+this.b),a=m,b+=this.b,c+=this.b,f.width-b>f.height-c?(d={x:f.x+b,y:f.y,width:f.width-b,height:f.height},e={x:f.x,y:f.y+c,width:b,height:f.height-c},jt(this,a,d,e)):(d={x:f.x+b,y:f.y,width:f.width-b,height:c},e={x:f.x,y:f.y+c,width:f.width,height:f.height-c},jt(this,a,d,e)),h;return null};I(zc,Rd);l=zc.prototype;l.mb=function(){return this.p};
l.Cm=function(){return this.g};l.Dm=function(){return this.i};l.he=function(){return this.o};l.Lb=function(){return this.d};l.Dd=function(){return this.H};l.gd=function(){return 2};l.rb=function(){return this.J};l.Em=function(){return this.b};l.Fm=function(){return this.c};l.tj=function(){return this.f};l.Xa=function(){return this.L};l.Gm=function(){return this.a};l.$e=A;l.load=A;l.xf=A;l.Ug=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();this.f!==this.c&&(this.b*=2);
for(c=0;c<=this.b;c++){d=2*c*Math.PI/this.b-Math.PI/2+this.g;var e=0===c%2?this.c:this.f;b.lineTo(a.size/2+e*Math.cos(d),a.size/2+e*Math.sin(d))}null!==this.i&&(b.fillStyle=pd(this.i.b),b.fill());null!==this.a&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.md,null===a.lineDash||b.setLineDash(a.lineDash),b.lineCap=a.lineCap,b.lineJoin=a.lineJoin,b.miterLimit=a.miterLimit,b.stroke());b.closePath()};l.Tg=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();this.f!==this.c&&(this.b*=
2);for(c=0;c<=this.b;c++){var e=2*c*Math.PI/this.b-Math.PI/2+this.g;d=0===c%2?this.c:this.f;b.lineTo(a.size/2+d*Math.cos(e),a.size/2+d*Math.sin(e))}b.fillStyle=Ng;b.fill();null!==this.a&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.md,null===a.lineDash||b.setLineDash(a.lineDash),b.stroke());b.closePath()};l.nb=function(){var a=null===this.a?"-":this.a.nb(),b=null===this.i?"-":this.i.nb();if(null===this.e||a!=this.e[1]||b!=this.e[2]||this.c!=this.e[3]||this.f!=this.e[4]||this.g!=this.e[5]||this.b!=this.e[6])this.e=
["r"+a+b+(g(this.c)?this.c.toString():"-")+(g(this.f)?this.f.toString():"-")+(g(this.g)?this.g.toString():"-")+(g(this.b)?this.b.toString():"-"),a,b,this.c,this.f,this.g,this.b];return this.e[0]};p("ol.animation.bounce",function(a){var b=a.resolution,c=g(a.start)?a.start:Lf(),d=g(a.duration)?a.duration:1E3,e=g(a.easing)?a.easing:Pk;return function(f,h){if(h.time<c)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<c+d){f=e((h.time-c)/d);var m=b-h.viewState.resolution;h.animate=!0;h.viewState.resolution+=
f*m;h.viewHints[0]+=1;return!0}return!1}},ba);p("ol.animation.pan",Ue,ba);p("ol.animation.rotate",qi,ba);p("ol.animation.zoom",zf,ba);p("ol.Attribution",ff,ba);ff.prototype.getHTML=ff.prototype.c;Tf.prototype.element=Tf.prototype.element;p("ol.Collection",Sa,ba);Sa.prototype.clear=Sa.prototype.clear;Sa.prototype.extend=Sa.prototype.af;Sa.prototype.forEach=Sa.prototype.forEach;Sa.prototype.getArray=Sa.prototype.Hk;Sa.prototype.item=Sa.prototype.item;Sa.prototype.getLength=Sa.prototype.Ib;Sa.prototype.insertAt=
Sa.prototype.Td;Sa.prototype.pop=Sa.prototype.pop;Sa.prototype.push=Sa.prototype.push;Sa.prototype.remove=Sa.prototype.remove;Sa.prototype.removeAt=Sa.prototype.tf;Sa.prototype.setAt=Sa.prototype.Un;p("ol.coordinate.add",Xg,ba);p("ol.coordinate.createStringXY",function(a){return function(b){return Hk(b,a)}},ba);p("ol.coordinate.format",Ch,ba);p("ol.coordinate.rotate",Zg,ba);p("ol.coordinate.toStringHDMS",function(a){return g(a)?yg(a[1],"NS")+" "+yg(a[0],"EW"):""},ba);p("ol.coordinate.toStringXY",
Hk,ba);p("ol.DeviceOrientation",kc,ba);kc.prototype.getAlpha=kc.prototype.Mi;kc.prototype.getBeta=kc.prototype.Pi;kc.prototype.getGamma=kc.prototype.Yi;kc.prototype.getHeading=kc.prototype.Ik;kc.prototype.getTracking=kc.prototype.og;kc.prototype.setTracking=kc.prototype.bf;p("ol.easing.easeIn",function(a){return Math.pow(a,3)},ba);p("ol.easing.easeOut",Sf,ba);p("ol.easing.inAndOut",df,ba);p("ol.easing.linear",Ok,ba);p("ol.easing.upAndDown",Pk,ba);p("ol.extent.boundingExtent",ne,ba);p("ol.extent.buffer",
yf,ba);p("ol.extent.containsCoordinate",function(a,b){return Eh(a,b[0],b[1])},ba);p("ol.extent.containsExtent",qe,ba);p("ol.extent.containsXY",Eh,ba);p("ol.extent.createEmpty",Yd,ba);p("ol.extent.equals",Gh,ba);p("ol.extent.extend",Lk,ba);p("ol.extent.getBottomLeft",n,ba);p("ol.extent.getBottomRight",u,ba);p("ol.extent.getCenter",y,ba);p("ol.extent.getHeight",R,ba);p("ol.extent.getIntersection",aa,ba);p("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]},ba);p("ol.extent.getTopLeft",U,ba);
p("ol.extent.getTopRight",W,ba);p("ol.extent.getWidth",la,ba);p("ol.extent.intersects",sa,ba);p("ol.extent.isEmpty",Ja,ba);p("ol.extent.applyTransform",vb,ba);p("ol.Feature",Wa,ba);Wa.prototype.clone=Wa.prototype.clone;Wa.prototype.getGeometry=Wa.prototype.Q;Wa.prototype.getId=Wa.prototype.aj;Wa.prototype.getGeometryName=Wa.prototype.$i;Wa.prototype.getStyle=Wa.prototype.Qk;Wa.prototype.getStyleFunction=Wa.prototype.Rk;Wa.prototype.setGeometry=Wa.prototype.La;Wa.prototype.setStyle=Wa.prototype.cf;
Wa.prototype.setId=Wa.prototype.Qb;Wa.prototype.setGeometryName=Wa.prototype.Ic;p("ol.featureloader.xhr",Vq,ba);p("ol.FeatureOverlay",Ld,ba);Ld.prototype.addFeature=Ld.prototype.pg;Ld.prototype.getFeatures=Ld.prototype.Kk;Ld.prototype.getMap=Ld.prototype.Lk;Ld.prototype.removeFeature=Ld.prototype.Yd;Ld.prototype.setFeatures=Ld.prototype.ld;Ld.prototype.setMap=Ld.prototype.setMap;Ld.prototype.setStyle=Ld.prototype.rg;Ld.prototype.getStyle=Ld.prototype.Mk;Ld.prototype.getStyleFunction=Ld.prototype.Nk;
p("ol.Geolocation",tb,ba);tb.prototype.getAccuracy=tb.prototype.Ki;tb.prototype.getAccuracyGeometry=tb.prototype.Li;tb.prototype.getAltitude=tb.prototype.Ni;tb.prototype.getAltitudeAccuracy=tb.prototype.Oi;tb.prototype.getHeading=tb.prototype.Tk;tb.prototype.getPosition=tb.prototype.Uk;tb.prototype.getProjection=tb.prototype.sg;tb.prototype.getSpeed=tb.prototype.vj;tb.prototype.getTracking=tb.prototype.tg;tb.prototype.getTrackingOptions=tb.prototype.bg;tb.prototype.setProjection=tb.prototype.ug;tb.prototype.setTracking=
tb.prototype.Zd;tb.prototype.setTrackingOptions=tb.prototype.Dh;p("ol.Graticule",sg,ba);sg.prototype.getMap=sg.prototype.Xk;sg.prototype.getMeridians=sg.prototype.kj;sg.prototype.getParallels=sg.prototype.pj;sg.prototype.setMap=sg.prototype.setMap;p("ol.has.DEVICE_PIXEL_RATIO",tr,ba);p("ol.has.CANVAS",ur,ba);p("ol.has.DEVICE_ORIENTATION",qt,ba);p("ol.has.GEOLOCATION",rt,ba);p("ol.has.TOUCH",um,ba);p("ol.has.WEBGL",vr,ba);tg.prototype.getImage=tg.prototype.b;ug.prototype.getImage=ug.prototype.Ma;p("ol.Kinetic",
Mm,ba);p("ol.loadingstrategy.all",Wq,ba);p("ol.loadingstrategy.bbox",function(a){return[a]},ba);p("ol.loadingstrategy.tile",function(a){return function(b,c){c=Kh(a,c);b=Xe(a,b,c);var d=[];c=[c,0,0];for(c[1]=b.b;c[1]<=b.d;++c[1])for(c[2]=b.c;c[2]<=b.a;++c[2])d.push(Bf(a,c));return d}},ba);p("ol.Map",ya,ba);ya.prototype.addControl=ya.prototype.si;ya.prototype.addInteraction=ya.prototype.ti;ya.prototype.addLayer=ya.prototype.Jf;ya.prototype.addOverlay=ya.prototype.Kf;ya.prototype.beforeRender=ya.prototype.Ha;
ya.prototype.forEachFeatureAtPixel=ya.prototype.Ne;ya.prototype.forEachLayerAtPixel=ya.prototype.al;ya.prototype.hasFeatureAtPixel=ya.prototype.ok;ya.prototype.getEventCoordinate=ya.prototype.Ui;ya.prototype.getEventPixel=ya.prototype.Bd;ya.prototype.getTarget=ya.prototype.df;ya.prototype.getTargetElement=ya.prototype.bd;ya.prototype.getCoordinateFromPixel=ya.prototype.ka;ya.prototype.getControls=ya.prototype.Si;ya.prototype.getOverlays=ya.prototype.oj;ya.prototype.getInteractions=ya.prototype.bj;
ya.prototype.getLayerGroup=ya.prototype.Ub;ya.prototype.getLayers=ya.prototype.vg;ya.prototype.getPixelFromCoordinate=ya.prototype.ta;ya.prototype.getSize=ya.prototype.xa;ya.prototype.getView=ya.prototype.R;ya.prototype.getViewport=ya.prototype.Bj;ya.prototype.renderSync=ya.prototype.Rn;ya.prototype.render=ya.prototype.render;ya.prototype.removeControl=ya.prototype.Ln;ya.prototype.removeInteraction=ya.prototype.Mn;ya.prototype.removeLayer=ya.prototype.Nn;ya.prototype.removeOverlay=ya.prototype.On;
ya.prototype.setLayerGroup=ya.prototype.zh;ya.prototype.setSize=ya.prototype.vf;ya.prototype.setTarget=ya.prototype.cl;ya.prototype.setView=ya.prototype.jo;ya.prototype.updateSize=ya.prototype.Kc;Dd.prototype.originalEvent=Dd.prototype.originalEvent;Dd.prototype.pixel=Dd.prototype.pixel;Dd.prototype.coordinate=Dd.prototype.coordinate;Dd.prototype.dragging=Dd.prototype.dragging;Dd.prototype.preventDefault=Dd.prototype.preventDefault;Dd.prototype.stopPropagation=Dd.prototype.fb;Bg.prototype.map=Bg.prototype.map;
Bg.prototype.frameState=Bg.prototype.frameState;gg.prototype.key=gg.prototype.key;gg.prototype.oldValue=gg.prototype.oldValue;p("ol.Object",ub,ba);ub.prototype.get=ub.prototype.get;ub.prototype.getKeys=ub.prototype.C;ub.prototype.getProperties=ub.prototype.D;ub.prototype.set=ub.prototype.set;ub.prototype.setProperties=ub.prototype.t;ub.prototype.unset=ub.prototype.I;p("ol.Observable",Id,ba);p("ol.Observable.unByKey",Wg,ba);Id.prototype.changed=Id.prototype.k;Id.prototype.getRevision=Id.prototype.v;
Id.prototype.on=Id.prototype.r;Id.prototype.once=Id.prototype.A;Id.prototype.un=Id.prototype.u;Id.prototype.unByKey=Id.prototype.B;p("ol.inherits",I,ba);p("ol.Overlay",Gb,ba);Gb.prototype.getElement=Gb.prototype.$d;Gb.prototype.getMap=Gb.prototype.ae;Gb.prototype.getOffset=Gb.prototype.Yf;Gb.prototype.getPosition=Gb.prototype.wg;Gb.prototype.getPositioning=Gb.prototype.ag;Gb.prototype.setElement=Gb.prototype.wh;Gb.prototype.setMap=Gb.prototype.setMap;Gb.prototype.setOffset=Gb.prototype.Bh;Gb.prototype.setPosition=
Gb.prototype.uf;Gb.prototype.setPositioning=Gb.prototype.Ch;p("ol.size.toSize",Xd,ba);Uf.prototype.getTileCoord=Uf.prototype.f;p("ol.View",Ma,ba);Ma.prototype.constrainCenter=Ma.prototype.xd;Ma.prototype.constrainResolution=Ma.prototype.constrainResolution;Ma.prototype.constrainRotation=Ma.prototype.constrainRotation;Ma.prototype.getCenter=Ma.prototype.Ca;Ma.prototype.calculateExtent=Ma.prototype.Pc;Ma.prototype.getProjection=Ma.prototype.dl;Ma.prototype.getResolution=Ma.prototype.ya;Ma.prototype.getRotation=
Ma.prototype.Da;Ma.prototype.getZoom=Ma.prototype.Ej;Ma.prototype.fitExtent=Ma.prototype.Me;Ma.prototype.fitGeometry=Ma.prototype.Fi;Ma.prototype.centerOn=Ma.prototype.Ai;Ma.prototype.rotate=Ma.prototype.rotate;Ma.prototype.setCenter=Ma.prototype.Na;Ma.prototype.setResolution=Ma.prototype.tb;Ma.prototype.setRotation=Ma.prototype.be;Ma.prototype.setZoom=Ma.prototype.no;p("ol.xml.getAllTextContent",Me,ba);p("ol.xml.parse",Wf,ba);p("ol.webgl.Context",Gg,ba);Gg.prototype.getGL=Gg.prototype.Xm;Gg.prototype.getHitDetectionFramebuffer=
Gg.prototype.Te;Gg.prototype.useProgram=Gg.prototype.oe;p("ol.tilegrid.TileGrid",yd,ba);yd.prototype.getMaxZoom=yd.prototype.Fd;yd.prototype.getMinZoom=yd.prototype.Hd;yd.prototype.getOrigin=yd.prototype.Mb;yd.prototype.getResolution=yd.prototype.ma;yd.prototype.getResolutions=yd.prototype.ne;yd.prototype.getTileCoordForCoordAndResolution=yd.prototype.Wb;yd.prototype.getTileCoordForCoordAndZ=yd.prototype.cd;yd.prototype.getTileSize=yd.prototype.na;p("ol.tilegrid.WMTS",Td,ba);Td.prototype.getMatrixIds=
Td.prototype.q;p("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",et,ba);p("ol.tilegrid.XYZ",Ad,ba);p("ol.tilegrid.Zoomify",je,ba);p("ol.style.AtlasManager",gt,ba);p("ol.style.Circle",Qc,ba);Qc.prototype.getAnchor=Qc.prototype.mb;Qc.prototype.getFill=Qc.prototype.ym;Qc.prototype.getImage=Qc.prototype.Lb;Qc.prototype.getOrigin=Qc.prototype.rb;Qc.prototype.getRadius=Qc.prototype.zm;Qc.prototype.getSize=Qc.prototype.Xa;Qc.prototype.getStroke=Qc.prototype.Am;p("ol.style.Fill",jf,ba);jf.prototype.getColor=
jf.prototype.c;jf.prototype.setColor=jf.prototype.d;p("ol.style.Icon",ld,ba);ld.prototype.getAnchor=ld.prototype.mb;ld.prototype.getImage=ld.prototype.Lb;ld.prototype.getOrigin=ld.prototype.rb;ld.prototype.getSrc=ld.prototype.Bm;ld.prototype.getSize=ld.prototype.Xa;p("ol.style.Image",Rd,ba);Rd.prototype.getOpacity=Rd.prototype.ie;Rd.prototype.getRotateWithView=Rd.prototype.Jd;Rd.prototype.getRotation=Rd.prototype.je;Rd.prototype.getScale=Rd.prototype.ke;Rd.prototype.getSnapToPixel=Rd.prototype.Kd;
Rd.prototype.setRotation=Rd.prototype.le;Rd.prototype.setScale=Rd.prototype.me;p("ol.style.RegularShape",zc,ba);zc.prototype.getAnchor=zc.prototype.mb;zc.prototype.getAngle=zc.prototype.Cm;zc.prototype.getFill=zc.prototype.Dm;zc.prototype.getImage=zc.prototype.Lb;zc.prototype.getOrigin=zc.prototype.rb;zc.prototype.getPoints=zc.prototype.Em;zc.prototype.getRadius=zc.prototype.Fm;zc.prototype.getRadius2=zc.prototype.tj;zc.prototype.getSize=zc.prototype.Xa;zc.prototype.getStroke=zc.prototype.Gm;p("ol.style.Stroke",
Lc,ba);Lc.prototype.getColor=Lc.prototype.Hm;Lc.prototype.getLineCap=Lc.prototype.ej;Lc.prototype.getLineDash=Lc.prototype.Im;Lc.prototype.getLineJoin=Lc.prototype.fj;Lc.prototype.getMiterLimit=Lc.prototype.lj;Lc.prototype.getWidth=Lc.prototype.Jm;Lc.prototype.setColor=Lc.prototype.Km;Lc.prototype.setLineCap=Lc.prototype.Zn;Lc.prototype.setLineDash=Lc.prototype.Lm;Lc.prototype.setLineJoin=Lc.prototype.$n;Lc.prototype.setMiterLimit=Lc.prototype.ao;Lc.prototype.setWidth=Lc.prototype.ko;p("ol.style.Style",
qd,ba);qd.prototype.getGeometry=qd.prototype.Q;qd.prototype.getGeometryFunction=qd.prototype.Zi;qd.prototype.getFill=qd.prototype.Mm;qd.prototype.getImage=qd.prototype.Nm;qd.prototype.getStroke=qd.prototype.Om;qd.prototype.getText=qd.prototype.Pm;qd.prototype.getZIndex=qd.prototype.Dj;qd.prototype.setGeometry=qd.prototype.Vg;qd.prototype.setZIndex=qd.prototype.mo;p("ol.style.Text",lc,ba);lc.prototype.getFont=lc.prototype.Wi;lc.prototype.getOffsetX=lc.prototype.mj;lc.prototype.getOffsetY=lc.prototype.nj;
lc.prototype.getFill=lc.prototype.Qm;lc.prototype.getRotation=lc.prototype.Rm;lc.prototype.getScale=lc.prototype.Sm;lc.prototype.getStroke=lc.prototype.Tm;lc.prototype.getText=lc.prototype.Um;lc.prototype.getTextAlign=lc.prototype.xj;lc.prototype.getTextBaseline=lc.prototype.yj;lc.prototype.setFont=lc.prototype.Wn;lc.prototype.setFill=lc.prototype.Vn;lc.prototype.setRotation=lc.prototype.Vm;lc.prototype.setScale=lc.prototype.Wm;lc.prototype.setStroke=lc.prototype.eo;lc.prototype.setText=lc.prototype.fo;
lc.prototype.setTextAlign=lc.prototype.ho;lc.prototype.setTextBaseline=lc.prototype.io;p("ol.Sphere",nd,ba);nd.prototype.geodesicArea=nd.prototype.a;nd.prototype.haversineDistance=nd.prototype.b;p("ol.source.BingMaps",Qb,ba);p("ol.source.BingMaps.TOS_ATTRIBUTION",Lt,ba);p("ol.source.Cluster",ab,ba);ab.prototype.getSource=ab.prototype.X;p("ol.source.ImageCanvas",vc,ba);p("ol.source.ImageMapGuide",$b,ba);$b.prototype.getParams=$b.prototype.Tl;$b.prototype.getImageLoadFunction=$b.prototype.Sl;$b.prototype.updateParams=
$b.prototype.Wl;$b.prototype.setImageLoadFunction=$b.prototype.Vl;p("ol.source.Image",Zb,ba);Ri.prototype.image=Ri.prototype.image;p("ol.source.ImageStatic",Ic,ba);p("ol.source.ImageVector",Pb,ba);Pb.prototype.getSource=Pb.prototype.Xl;Pb.prototype.getStyle=Pb.prototype.Yl;Pb.prototype.getStyleFunction=Pb.prototype.Zl;Pb.prototype.setStyle=Pb.prototype.Mg;p("ol.source.ImageWMS",Eb,ba);Eb.prototype.getGetFeatureInfoUrl=Eb.prototype.bm;Eb.prototype.getParams=Eb.prototype.dm;Eb.prototype.getImageLoadFunction=
Eb.prototype.cm;Eb.prototype.getUrl=Eb.prototype.em;Eb.prototype.setImageLoadFunction=Eb.prototype.fm;Eb.prototype.setUrl=Eb.prototype.gm;Eb.prototype.updateParams=Eb.prototype.hm;p("ol.source.MapQuest",Fb,ba);Fb.prototype.getLayer=Fb.prototype.i;p("ol.source.OSM",Kb,ba);p("ol.source.OSM.ATTRIBUTION",wk,ba);p("ol.source.Source",fc,ba);fc.prototype.getAttributions=fc.prototype.ea;fc.prototype.getLogo=fc.prototype.ca;fc.prototype.getProjection=fc.prototype.fa;fc.prototype.getState=fc.prototype.ga;p("ol.source.Stamen",
Lb,ba);p("ol.source.TileArcGISRest",nb,ba);nb.prototype.getParams=nb.prototype.im;nb.prototype.getUrls=nb.prototype.jm;nb.prototype.setUrl=nb.prototype.km;nb.prototype.setUrls=nb.prototype.Ng;nb.prototype.updateParams=nb.prototype.mm;p("ol.source.TileDebug",yc,ba);p("ol.source.TileImage",ib,ba);ib.prototype.getTileLoadFunction=ib.prototype.Ua;ib.prototype.getTileUrlFunction=ib.prototype.Va;ib.prototype.setTileLoadFunction=ib.prototype.$a;ib.prototype.setTileUrlFunction=ib.prototype.pa;p("ol.source.TileJSON",
Rb,ba);p("ol.source.Tile",Yb,ba);Yb.prototype.getTileGrid=Yb.prototype.ua;Ai.prototype.tile=Ai.prototype.tile;p("ol.source.TileUTFGrid",hc,ba);hc.prototype.getTemplate=hc.prototype.wj;hc.prototype.forDataAtCoordinateAndResolution=hc.prototype.Gi;p("ol.source.TileVector",Sb,ba);Sb.prototype.getFeatures=Sb.prototype.Dc;Sb.prototype.getFeaturesAtCoordinateAndResolution=Sb.prototype.Vi;p("ol.source.TileWMS",jb,ba);jb.prototype.getGetFeatureInfoUrl=jb.prototype.pm;jb.prototype.getParams=jb.prototype.qm;
jb.prototype.getUrls=jb.prototype.rm;jb.prototype.setUrl=jb.prototype.sm;jb.prototype.setUrls=jb.prototype.Og;jb.prototype.updateParams=jb.prototype.um;p("ol.source.Vector",bb,ba);bb.prototype.addFeature=bb.prototype.jf;bb.prototype.addFeatures=bb.prototype.Oc;bb.prototype.clear=bb.prototype.clear;bb.prototype.forEachFeature=bb.prototype.Rf;bb.prototype.forEachFeatureInExtent=bb.prototype.$c;bb.prototype.forEachFeatureIntersectingExtent=bb.prototype.Oe;bb.prototype.getFeatures=bb.prototype.Dc;bb.prototype.getFeaturesAtCoordinate=
bb.prototype.Re;bb.prototype.getFeaturesInExtent=bb.prototype.Se;bb.prototype.getClosestFeatureToCoordinate=bb.prototype.Tf;bb.prototype.getExtent=bb.prototype.G;bb.prototype.getFeatureById=bb.prototype.Qe;bb.prototype.removeFeature=bb.prototype.Qg;qg.prototype.feature=qg.prototype.feature;p("ol.source.WMTS",eb,ba);eb.prototype.getDimensions=eb.prototype.Ti;eb.prototype.getFormat=eb.prototype.Xi;eb.prototype.getLayer=eb.prototype.vm;eb.prototype.getMatrixSet=eb.prototype.jj;eb.prototype.getRequestEncoding=
eb.prototype.uj;eb.prototype.getStyle=eb.prototype.wm;eb.prototype.getUrls=eb.prototype.xm;eb.prototype.getVersion=eb.prototype.Aj;eb.prototype.updateDimensions=eb.prototype.uo;p("ol.source.WMTS.optionsFromCapabilities",function(a,b){var c=Ud(a.Contents.Layer,function(N){return N.Identifier==b.layer}),d;var e=1<c.TileMatrixSetLink.length?ce(c.TileMatrixSetLink,function(N){return N.TileMatrixSet==b.matrixSet}):g(b.projection)?ce(c.TileMatrixSetLink,function(N){return N.TileMatrixSet.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,
"$1:$3")==b.projection}):0;0>e&&(e=0);var f=c.TileMatrixSetLink[e].TileMatrixSet;e=c.WGS84BoundingBox;g(e)&&(d=Ka("EPSG:4326").G(),d=e[0]==d[0]&&e[2]==d[2]);var h=c.Format[0];g(b.format)&&(h=b.format);e=ce(c.Style,function(N){return g(b.style)?N.Title==b.style:N.isDefault});0>e&&(e=0);e=c.Style[e].Identifier;var m={};g(c.Dimension)&&Oa(c.Dimension,function(N){var O=N.Identifier,Z=N["default"];g(Z)||(Z=N.values[0]);m[O]=Z});var q=Ud(a.Contents.TileMatrixSet,function(N){return N.Identifier==f}),w=et(q);
q=g(b.projection)?Ka(b.projection):Ka(q.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var F=[],M=b.requestEncoding;M=g(M)?M:"";if(a.OperationsMetadata.hasOwnProperty("GetTile")&&0!=M.lastIndexOf("REST",0)){c=a.OperationsMetadata.GetTile.DCP.HTTP.Get;a=0;for(var S=c.length;a<S;++a){var Y=Ud(c[a].Constraint,function(N){return"GetEncoding"==N.name}).AllowedValues.Value;0<Y.length&&Nc(Y,"KVP")&&(M="KVP",F.push(c[a].href))}}else M="REST",Oa(c.ResourceURL,function(N){"tile"==N.resourceType&&
(h=N.format,F.push(N.template))});return{urls:F,layer:b.layer,matrixSet:f,format:h,projection:q,requestEncoding:M,tileGrid:w,style:e,dimensions:m,wrapX:d}},ba);p("ol.source.XYZ",rb,ba);rb.prototype.setTileUrlFunction=rb.prototype.pa;rb.prototype.setUrl=rb.prototype.e;p("ol.source.Zoomify",Vb,ba);Ye.prototype.vectorContext=Ye.prototype.vectorContext;Ye.prototype.frameState=Ye.prototype.frameState;Ye.prototype.context=Ye.prototype.context;Ye.prototype.glContext=Ye.prototype.glContext;p("ol.render.VectorContext",
il,ba);Hc.prototype.drawAsync=Hc.prototype.tc;Hc.prototype.drawCircleGeometry=Hc.prototype.uc;Hc.prototype.drawFeature=Hc.prototype.Le;Hc.prototype.drawGeometryCollectionGeometry=Hc.prototype.zd;Hc.prototype.drawPointGeometry=Hc.prototype.kb;Hc.prototype.drawLineStringGeometry=Hc.prototype.zb;Hc.prototype.drawMultiLineStringGeometry=Hc.prototype.vc;Hc.prototype.drawMultiPointGeometry=Hc.prototype.jb;Hc.prototype.drawMultiPolygonGeometry=Hc.prototype.wc;Hc.prototype.drawPolygonGeometry=Hc.prototype.Rb;
Hc.prototype.drawText=Hc.prototype.lb;Hc.prototype.setFillStrokeStyle=Hc.prototype.Aa;Hc.prototype.setImageStyle=Hc.prototype.Za;Hc.prototype.setTextStyle=Hc.prototype.Ba;uc.prototype.drawAsync=uc.prototype.tc;uc.prototype.drawCircleGeometry=uc.prototype.uc;uc.prototype.drawFeature=uc.prototype.Le;uc.prototype.drawPointGeometry=uc.prototype.kb;uc.prototype.drawMultiPointGeometry=uc.prototype.jb;uc.prototype.drawLineStringGeometry=uc.prototype.zb;uc.prototype.drawMultiLineStringGeometry=uc.prototype.vc;
uc.prototype.drawPolygonGeometry=uc.prototype.Rb;uc.prototype.drawMultiPolygonGeometry=uc.prototype.wc;uc.prototype.setFillStrokeStyle=uc.prototype.Aa;uc.prototype.setImageStyle=uc.prototype.Za;uc.prototype.setTextStyle=uc.prototype.Ba;p("ol.proj.common.add",mq,ba);p("ol.proj.METERS_PER_UNIT",Rf,ba);p("ol.proj.Projection",Cb,ba);Cb.prototype.getCode=Cb.prototype.Ri;Cb.prototype.getExtent=Cb.prototype.G;Cb.prototype.getUnits=Cb.prototype.Ll;Cb.prototype.getMetersPerUnit=Cb.prototype.Gd;Cb.prototype.getWorldExtent=
Cb.prototype.Cj;Cb.prototype.isGlobal=Cb.prototype.Ml;Cb.prototype.setGlobal=Cb.prototype.Yn;Cb.prototype.setExtent=Cb.prototype.Nl;Cb.prototype.setWorldExtent=Cb.prototype.lo;Cb.prototype.setGetPointResolution=Cb.prototype.Xn;Cb.prototype.getPointResolution=Cb.prototype.getPointResolution;p("ol.proj.addEquivalentProjections",Ie,ba);p("ol.proj.addProjection",Jd,ba);p("ol.proj.addCoordinateTransforms",Je,ba);p("ol.proj.fromLonLat",function(a,b){return od(a,"EPSG:4326",g(b)?b:"EPSG:3857")},ba);p("ol.proj.toLonLat",
function(a,b){return od(a,g(b)?b:"EPSG:3857","EPSG:4326")},ba);p("ol.proj.get",Ka,ba);p("ol.proj.getTransform",Wc,ba);p("ol.proj.transform",od,ba);p("ol.proj.transformExtent",Te,ba);p("ol.layer.Heatmap",Ba,ba);Ba.prototype.getBlur=Ba.prototype.Sf;Ba.prototype.getGradient=Ba.prototype.Wf;Ba.prototype.getRadius=Ba.prototype.Hg;Ba.prototype.setBlur=Ba.prototype.th;Ba.prototype.setGradient=Ba.prototype.yh;Ba.prototype.setRadius=Ba.prototype.Ig;p("ol.layer.Image",Va,ba);Va.prototype.getSource=Va.prototype.da;
p("ol.layer.Layer",La,ba);La.prototype.getSource=La.prototype.da;La.prototype.setSource=La.prototype.Jc;p("ol.layer.Base",Xa,ba);Xa.prototype.getBrightness=Xa.prototype.Bb;Xa.prototype.getContrast=Xa.prototype.Cb;Xa.prototype.getHue=Xa.prototype.Db;Xa.prototype.getExtent=Xa.prototype.G;Xa.prototype.getMaxResolution=Xa.prototype.Eb;Xa.prototype.getMinResolution=Xa.prototype.Fb;Xa.prototype.getOpacity=Xa.prototype.Kb;Xa.prototype.getSaturation=Xa.prototype.Gb;Xa.prototype.getVisible=Xa.prototype.eb;
Xa.prototype.setBrightness=Xa.prototype.gc;Xa.prototype.setContrast=Xa.prototype.hc;Xa.prototype.setHue=Xa.prototype.ic;Xa.prototype.setExtent=Xa.prototype.bc;Xa.prototype.setMaxResolution=Xa.prototype.jc;Xa.prototype.setMinResolution=Xa.prototype.kc;Xa.prototype.setOpacity=Xa.prototype.cc;Xa.prototype.setSaturation=Xa.prototype.lc;Xa.prototype.setVisible=Xa.prototype.mc;p("ol.layer.Group",Ua,ba);Ua.prototype.getLayers=Ua.prototype.Bc;Ua.prototype.setLayers=Ua.prototype.Ah;p("ol.layer.Tile",Ea,ba);
Ea.prototype.getPreload=Ea.prototype.a;Ea.prototype.getSource=Ea.prototype.da;Ea.prototype.setPreload=Ea.prototype.d;Ea.prototype.getUseInterimTilesOnError=Ea.prototype.c;Ea.prototype.setUseInterimTilesOnError=Ea.prototype.e;p("ol.layer.Vector",Ga,ba);Ga.prototype.getSource=Ga.prototype.da;Ga.prototype.getStyle=Ga.prototype.H;Ga.prototype.getStyleFunction=Ga.prototype.J;Ga.prototype.setStyle=Ga.prototype.e;p("ol.interaction.DoubleClickZoom",gd,ba);p("ol.interaction.DoubleClickZoom.handleEvent",Qp,
ba);p("ol.interaction.DragAndDrop",Dc,ba);p("ol.interaction.DragAndDrop.handleEvent",Le,ba);th.prototype.features=th.prototype.features;th.prototype.file=th.prototype.file;th.prototype.projection=th.prototype.projection;Wj.prototype.coordinate=Wj.prototype.coordinate;p("ol.interaction.DragBox",Bc,ba);Bc.prototype.getGeometry=Bc.prototype.Q;p("ol.interaction.DragPan",Yc,ba);p("ol.interaction.DragRotateAndZoom",md,ba);p("ol.interaction.DragRotate",Zc,ba);p("ol.interaction.DragZoom",Mc,ba);tk.prototype.feature=
tk.prototype.feature;p("ol.interaction.Draw",xc,ba);p("ol.interaction.Draw.handleEvent",Qs,ba);xc.prototype.finishDrawing=xc.prototype.X;p("ol.interaction.Interaction",Jb,ba);Jb.prototype.getActive=Jb.prototype.c;Jb.prototype.setActive=Jb.prototype.d;p("ol.interaction.defaults",jq,ba);p("ol.interaction.KeyboardPan",hd,ba);p("ol.interaction.KeyboardPan.handleEvent",gq,ba);p("ol.interaction.KeyboardZoom",id,ba);p("ol.interaction.KeyboardZoom.handleEvent",hq,ba);p("ol.interaction.Modify",ed,ba);p("ol.interaction.Modify.handleEvent",
Vs,ba);p("ol.interaction.MouseWheelZoom",$c,ba);p("ol.interaction.MouseWheelZoom.handleEvent",iq,ba);p("ol.interaction.PinchRotate",ad,ba);p("ol.interaction.PinchZoom",bd,ba);p("ol.interaction.Pointer",Db,ba);p("ol.interaction.Pointer.handleEvent",Sj,ba);ij.prototype.selected=ij.prototype.selected;ij.prototype.deselected=ij.prototype.deselected;p("ol.interaction.Select",pc,ba);pc.prototype.getFeatures=pc.prototype.p;p("ol.interaction.Select.handleEvent",Ys,ba);pc.prototype.setMap=pc.prototype.setMap;
p("ol.interaction.Snap",Ec,ba);Ec.prototype.addFeature=Ec.prototype.ed;Ec.prototype.removeFeature=Ec.prototype.fd;p("ol.geom.Circle",hb,ba);hb.prototype.clone=hb.prototype.clone;hb.prototype.getCenter=hb.prototype.dd;hb.prototype.getRadius=hb.prototype.zg;hb.prototype.getType=hb.prototype.M;hb.prototype.setCenter=hb.prototype.pl;hb.prototype.setCenterAndRadius=hb.prototype.uh;hb.prototype.setRadius=hb.prototype.Ag;hb.prototype.transform=hb.prototype.transform;p("ol.geom.Geometry",gc,ba);gc.prototype.getClosestPoint=
gc.prototype.e;gc.prototype.getExtent=gc.prototype.G;p("ol.geom.GeometryCollection",sb,ba);sb.prototype.clone=sb.prototype.clone;sb.prototype.getGeometries=sb.prototype.Vf;sb.prototype.getType=sb.prototype.M;sb.prototype.intersectsExtent=sb.prototype.ra;sb.prototype.setGeometries=sb.prototype.xh;sb.prototype.applyTransform=sb.prototype.qa;sb.prototype.translate=sb.prototype.Oa;p("ol.geom.LinearRing",lb,ba);lb.prototype.clone=lb.prototype.clone;lb.prototype.getArea=lb.prototype.rl;lb.prototype.getCoordinates=
lb.prototype.K;lb.prototype.getType=lb.prototype.M;lb.prototype.setCoordinates=lb.prototype.W;p("ol.geom.LineString",Ha,ba);Ha.prototype.appendCoordinate=Ha.prototype.ui;Ha.prototype.clone=Ha.prototype.clone;Ha.prototype.forEachSegment=Ha.prototype.Ji;Ha.prototype.getCoordinateAtM=Ha.prototype.ql;Ha.prototype.getCoordinates=Ha.prototype.K;Ha.prototype.getLength=Ha.prototype.Bg;Ha.prototype.getType=Ha.prototype.M;Ha.prototype.intersectsExtent=Ha.prototype.ra;Ha.prototype.setCoordinates=Ha.prototype.W;
p("ol.geom.MultiLineString",Qa,ba);Qa.prototype.appendLineString=Qa.prototype.vi;Qa.prototype.clone=Qa.prototype.clone;Qa.prototype.getCoordinateAtM=Qa.prototype.sl;Qa.prototype.getCoordinates=Qa.prototype.K;Qa.prototype.getLineString=Qa.prototype.gj;Qa.prototype.getLineStrings=Qa.prototype.ad;Qa.prototype.getType=Qa.prototype.M;Qa.prototype.intersectsExtent=Qa.prototype.ra;Qa.prototype.setCoordinates=Qa.prototype.W;p("ol.geom.MultiPoint",$a,ba);$a.prototype.appendPoint=$a.prototype.xi;$a.prototype.clone=
$a.prototype.clone;$a.prototype.getCoordinates=$a.prototype.K;$a.prototype.getPoint=$a.prototype.qj;$a.prototype.getPoints=$a.prototype.ce;$a.prototype.getType=$a.prototype.M;$a.prototype.intersectsExtent=$a.prototype.ra;$a.prototype.setCoordinates=$a.prototype.W;p("ol.geom.MultiPolygon",Ra,ba);Ra.prototype.appendPolygon=Ra.prototype.yi;Ra.prototype.clone=Ra.prototype.clone;Ra.prototype.getArea=Ra.prototype.tl;Ra.prototype.getCoordinates=Ra.prototype.K;Ra.prototype.getInteriorPoints=Ra.prototype.dj;
Ra.prototype.getPolygon=Ra.prototype.sj;Ra.prototype.getPolygons=Ra.prototype.Id;Ra.prototype.getType=Ra.prototype.M;Ra.prototype.intersectsExtent=Ra.prototype.ra;Ra.prototype.setCoordinates=Ra.prototype.W;p("ol.geom.Point",Ta,ba);Ta.prototype.clone=Ta.prototype.clone;Ta.prototype.getCoordinates=Ta.prototype.K;Ta.prototype.getType=Ta.prototype.M;Ta.prototype.intersectsExtent=Ta.prototype.ra;Ta.prototype.setCoordinates=Ta.prototype.W;p("ol.geom.Polygon",Fa,ba);Fa.prototype.appendLinearRing=Fa.prototype.wi;
Fa.prototype.clone=Fa.prototype.clone;Fa.prototype.getArea=Fa.prototype.ul;Fa.prototype.getCoordinates=Fa.prototype.K;Fa.prototype.getInteriorPoint=Fa.prototype.cj;Fa.prototype.getLinearRingCount=Fa.prototype.ij;Fa.prototype.getLinearRing=Fa.prototype.hj;Fa.prototype.getLinearRings=Fa.prototype.Ed;Fa.prototype.getType=Fa.prototype.M;Fa.prototype.intersectsExtent=Fa.prototype.ra;Fa.prototype.setCoordinates=Fa.prototype.W;p("ol.geom.Polygon.circular",dq,ba);p("ol.geom.Polygon.fromExtent",function(a){var b=
a[0],c=a[1],d=a[2];a=a[3];b=[b,c,b,a,d,a,d,c,b,c];c=new Fa(null);Nf(c,"XY",b,[b.length]);return c},ba);p("ol.geom.SimpleGeometry",mb,ba);mb.prototype.getFirstCoordinate=mb.prototype.ob;mb.prototype.getLastCoordinate=mb.prototype.pb;mb.prototype.getLayout=mb.prototype.qb;mb.prototype.applyTransform=mb.prototype.qa;mb.prototype.translate=mb.prototype.Oa;p("ol.format.EsriJSON",Md,ba);Md.prototype.readFeature=Md.prototype.sb;Md.prototype.readFeatures=Md.prototype.ja;Md.prototype.readGeometry=Md.prototype.Gc;
Md.prototype.readProjection=Md.prototype.za;Md.prototype.writeGeometry=Md.prototype.Mc;Md.prototype.writeGeometryObject=Md.prototype.Be;Md.prototype.writeFeature=Md.prototype.qd;Md.prototype.writeFeatureObject=Md.prototype.Lc;Md.prototype.writeFeatures=Md.prototype.ub;Md.prototype.writeFeaturesObject=Md.prototype.ze;p("ol.format.Feature",Al,ba);p("ol.format.GeoJSON",Nd,ba);Nd.prototype.readFeature=Nd.prototype.sb;Nd.prototype.readFeatures=Nd.prototype.ja;Nd.prototype.readGeometry=Nd.prototype.Gc;
Nd.prototype.readProjection=Nd.prototype.za;Nd.prototype.writeFeature=Nd.prototype.qd;Nd.prototype.writeFeatureObject=Nd.prototype.Lc;Nd.prototype.writeFeatures=Nd.prototype.ub;Nd.prototype.writeFeaturesObject=Nd.prototype.ze;Nd.prototype.writeGeometry=Nd.prototype.Mc;Nd.prototype.writeGeometryObject=Nd.prototype.Be;p("ol.format.GPX",$e,ba);$e.prototype.readFeature=$e.prototype.sb;$e.prototype.readFeatures=$e.prototype.ja;$e.prototype.readProjection=$e.prototype.za;$e.prototype.writeFeatures=$e.prototype.ub;
$e.prototype.writeFeaturesNode=$e.prototype.a;p("ol.format.IGC",rg,ba);rg.prototype.readFeature=rg.prototype.sb;rg.prototype.readFeatures=rg.prototype.ja;rg.prototype.readProjection=rg.prototype.za;p("ol.format.KML",ye,ba);ye.prototype.readFeature=ye.prototype.sb;ye.prototype.readFeatures=ye.prototype.ja;ye.prototype.readName=ye.prototype.Dn;ye.prototype.readNetworkLinks=ye.prototype.En;ye.prototype.readProjection=ye.prototype.za;ye.prototype.writeFeatures=ye.prototype.ub;ye.prototype.writeFeaturesNode=
ye.prototype.a;p("ol.format.OSMXML",bi,ba);bi.prototype.readFeatures=bi.prototype.ja;bi.prototype.readProjection=bi.prototype.za;p("ol.format.Polyline",Ff,ba);p("ol.format.Polyline.encodeDeltas",qs,ba);p("ol.format.Polyline.decodeDeltas",ss,ba);p("ol.format.Polyline.encodeFloats",rs,ba);p("ol.format.Polyline.decodeFloats",ts,ba);Ff.prototype.readFeature=Ff.prototype.sb;Ff.prototype.readFeatures=Ff.prototype.ja;Ff.prototype.readGeometry=Ff.prototype.Gc;Ff.prototype.readProjection=Ff.prototype.za;Ff.prototype.writeGeometry=
Ff.prototype.Mc;p("ol.format.TopoJSON",qh,ba);qh.prototype.readFeatures=qh.prototype.ja;qh.prototype.readProjection=qh.prototype.za;p("ol.format.WFS",be,ba);be.prototype.readFeatures=be.prototype.ja;be.prototype.readTransactionResponse=be.prototype.g;be.prototype.readFeatureCollectionMetadata=be.prototype.f;be.prototype.writeGetFeature=be.prototype.i;be.prototype.writeTransaction=be.prototype.o;be.prototype.readProjection=be.prototype.za;p("ol.format.WKT",af,ba);af.prototype.readFeature=af.prototype.sb;
af.prototype.readFeatures=af.prototype.ja;af.prototype.readGeometry=af.prototype.Gc;af.prototype.writeFeature=af.prototype.qd;af.prototype.writeFeatures=af.prototype.ub;af.prototype.writeGeometry=af.prototype.Mc;p("ol.format.WMSCapabilities",dj,ba);dj.prototype.read=dj.prototype.c;p("ol.format.WMSGetFeatureInfo",rk,ba);rk.prototype.readFeatures=rk.prototype.ja;p("ol.format.WMTSCapabilities",ej,ba);ej.prototype.read=ej.prototype.c;p("ol.format.GML2",Zf,ba);p("ol.format.GML3",Ya,ba);Ya.prototype.writeGeometryNode=
Ya.prototype.q;Ya.prototype.writeFeatures=Ya.prototype.ub;Ya.prototype.writeFeaturesNode=Ya.prototype.a;p("ol.format.GML",Ya,ba);Ya.prototype.writeFeatures=Ya.prototype.ub;Ya.prototype.writeFeaturesNode=Ya.prototype.a;oc.prototype.readFeatures=oc.prototype.ja;p("ol.events.condition.altKeyOnly",function(a){a=a.b;return a.a&&!a.g&&!a.d},ba);p("ol.events.condition.altShiftKeysOnly",Rp,ba);p("ol.events.condition.always",Le,ba);p("ol.events.condition.click",function(a){return a.type==zm},ba);p("ol.events.condition.never",
hf,ba);p("ol.events.condition.pointerMove",Sp,ba);p("ol.events.condition.singleClick",Om,ba);p("ol.events.condition.noModifierKeys",Qj,ba);p("ol.events.condition.platformModifierKeyOnly",function(a){a=a.b;return!a.a&&a.g&&!a.d},ba);p("ol.events.condition.shiftKeyOnly",Rj,ba);p("ol.events.condition.targetNotEditable",Pm,ba);p("ol.events.condition.mouseOnly",ng,ba);p("ol.control.Attribution",bc,ba);p("ol.control.Attribution.render",pp,ba);bc.prototype.getCollapsible=bc.prototype.fl;bc.prototype.setCollapsible=
bc.prototype.il;bc.prototype.setCollapsed=bc.prototype.hl;bc.prototype.getCollapsed=bc.prototype.el;p("ol.control.Control",qb,ba);qb.prototype.getMap=qb.prototype.e;qb.prototype.setMap=qb.prototype.setMap;qb.prototype.setTarget=qb.prototype.c;p("ol.control.defaults",rp,ba);p("ol.control.FullScreen",Kc,ba);p("ol.control.MousePosition",cc,ba);p("ol.control.MousePosition.render",up,ba);cc.prototype.getCoordinateFormat=cc.prototype.Uf;cc.prototype.getProjection=cc.prototype.xg;cc.prototype.setMap=cc.prototype.setMap;
cc.prototype.setCoordinateFormat=cc.prototype.vh;cc.prototype.setProjection=cc.prototype.yg;p("ol.control.OverviewMap",dc,ba);dc.prototype.setMap=dc.prototype.setMap;p("ol.control.OverviewMap.render",xr,ba);dc.prototype.getCollapsible=dc.prototype.ll;dc.prototype.setCollapsible=dc.prototype.ol;dc.prototype.setCollapsed=dc.prototype.nl;dc.prototype.getCollapsed=dc.prototype.kl;p("ol.control.Rotate",Gc,ba);p("ol.control.Rotate.render",qp,ba);p("ol.control.ScaleLine",nc,ba);nc.prototype.getUnits=nc.prototype.p;
p("ol.control.ScaleLine.render",zr,ba);nc.prototype.setUnits=nc.prototype.J;p("ol.control.Zoom",Ac,ba);p("ol.control.ZoomSlider",dd,ba);p("ol.control.ZoomSlider.render",Gr,ba);p("ol.control.ZoomToExtent",Rc,ba);p("ol.color.asArray",ti,ba);p("ol.color.asString",pd,ba);ub.prototype.changed=ub.prototype.k;ub.prototype.getRevision=ub.prototype.v;ub.prototype.on=ub.prototype.r;ub.prototype.once=ub.prototype.A;ub.prototype.un=ub.prototype.u;ub.prototype.unByKey=ub.prototype.B;Sa.prototype.get=Sa.prototype.get;
Sa.prototype.getKeys=Sa.prototype.C;Sa.prototype.getProperties=Sa.prototype.D;Sa.prototype.set=Sa.prototype.set;Sa.prototype.setProperties=Sa.prototype.t;Sa.prototype.unset=Sa.prototype.I;Sa.prototype.changed=Sa.prototype.k;Sa.prototype.getRevision=Sa.prototype.v;Sa.prototype.on=Sa.prototype.r;Sa.prototype.once=Sa.prototype.A;Sa.prototype.un=Sa.prototype.u;Sa.prototype.unByKey=Sa.prototype.B;kc.prototype.get=kc.prototype.get;kc.prototype.getKeys=kc.prototype.C;kc.prototype.getProperties=kc.prototype.D;
kc.prototype.set=kc.prototype.set;kc.prototype.setProperties=kc.prototype.t;kc.prototype.unset=kc.prototype.I;kc.prototype.changed=kc.prototype.k;kc.prototype.getRevision=kc.prototype.v;kc.prototype.on=kc.prototype.r;kc.prototype.once=kc.prototype.A;kc.prototype.un=kc.prototype.u;kc.prototype.unByKey=kc.prototype.B;Wa.prototype.get=Wa.prototype.get;Wa.prototype.getKeys=Wa.prototype.C;Wa.prototype.getProperties=Wa.prototype.D;Wa.prototype.set=Wa.prototype.set;Wa.prototype.setProperties=Wa.prototype.t;
Wa.prototype.unset=Wa.prototype.I;Wa.prototype.changed=Wa.prototype.k;Wa.prototype.getRevision=Wa.prototype.v;Wa.prototype.on=Wa.prototype.r;Wa.prototype.once=Wa.prototype.A;Wa.prototype.un=Wa.prototype.u;Wa.prototype.unByKey=Wa.prototype.B;tb.prototype.get=tb.prototype.get;tb.prototype.getKeys=tb.prototype.C;tb.prototype.getProperties=tb.prototype.D;tb.prototype.set=tb.prototype.set;tb.prototype.setProperties=tb.prototype.t;tb.prototype.unset=tb.prototype.I;tb.prototype.changed=tb.prototype.k;tb.prototype.getRevision=
tb.prototype.v;tb.prototype.on=tb.prototype.r;tb.prototype.once=tb.prototype.A;tb.prototype.un=tb.prototype.u;tb.prototype.unByKey=tb.prototype.B;ug.prototype.getTileCoord=ug.prototype.f;ya.prototype.get=ya.prototype.get;ya.prototype.getKeys=ya.prototype.C;ya.prototype.getProperties=ya.prototype.D;ya.prototype.set=ya.prototype.set;ya.prototype.setProperties=ya.prototype.t;ya.prototype.unset=ya.prototype.I;ya.prototype.changed=ya.prototype.k;ya.prototype.getRevision=ya.prototype.v;ya.prototype.on=
ya.prototype.r;ya.prototype.once=ya.prototype.A;ya.prototype.un=ya.prototype.u;ya.prototype.unByKey=ya.prototype.B;Dd.prototype.map=Dd.prototype.map;Dd.prototype.frameState=Dd.prototype.frameState;zd.prototype.originalEvent=zd.prototype.originalEvent;zd.prototype.pixel=zd.prototype.pixel;zd.prototype.coordinate=zd.prototype.coordinate;zd.prototype.dragging=zd.prototype.dragging;zd.prototype.preventDefault=zd.prototype.preventDefault;zd.prototype.stopPropagation=zd.prototype.fb;zd.prototype.map=zd.prototype.map;
zd.prototype.frameState=zd.prototype.frameState;Gb.prototype.get=Gb.prototype.get;Gb.prototype.getKeys=Gb.prototype.C;Gb.prototype.getProperties=Gb.prototype.D;Gb.prototype.set=Gb.prototype.set;Gb.prototype.setProperties=Gb.prototype.t;Gb.prototype.unset=Gb.prototype.I;Gb.prototype.changed=Gb.prototype.k;Gb.prototype.getRevision=Gb.prototype.v;Gb.prototype.on=Gb.prototype.r;Gb.prototype.once=Gb.prototype.A;Gb.prototype.un=Gb.prototype.u;Gb.prototype.unByKey=Gb.prototype.B;Ma.prototype.get=Ma.prototype.get;
Ma.prototype.getKeys=Ma.prototype.C;Ma.prototype.getProperties=Ma.prototype.D;Ma.prototype.set=Ma.prototype.set;Ma.prototype.setProperties=Ma.prototype.t;Ma.prototype.unset=Ma.prototype.I;Ma.prototype.changed=Ma.prototype.k;Ma.prototype.getRevision=Ma.prototype.v;Ma.prototype.on=Ma.prototype.r;Ma.prototype.once=Ma.prototype.A;Ma.prototype.un=Ma.prototype.u;Ma.prototype.unByKey=Ma.prototype.B;Td.prototype.getMaxZoom=Td.prototype.Fd;Td.prototype.getMinZoom=Td.prototype.Hd;Td.prototype.getOrigin=Td.prototype.Mb;
Td.prototype.getResolution=Td.prototype.ma;Td.prototype.getResolutions=Td.prototype.ne;Td.prototype.getTileCoordForCoordAndResolution=Td.prototype.Wb;Td.prototype.getTileCoordForCoordAndZ=Td.prototype.cd;Td.prototype.getTileSize=Td.prototype.na;Ad.prototype.getMaxZoom=Ad.prototype.Fd;Ad.prototype.getMinZoom=Ad.prototype.Hd;Ad.prototype.getOrigin=Ad.prototype.Mb;Ad.prototype.getResolution=Ad.prototype.ma;Ad.prototype.getResolutions=Ad.prototype.ne;Ad.prototype.getTileCoordForCoordAndResolution=Ad.prototype.Wb;
Ad.prototype.getTileCoordForCoordAndZ=Ad.prototype.cd;Ad.prototype.getTileSize=Ad.prototype.na;je.prototype.getMaxZoom=je.prototype.Fd;je.prototype.getMinZoom=je.prototype.Hd;je.prototype.getOrigin=je.prototype.Mb;je.prototype.getResolution=je.prototype.ma;je.prototype.getResolutions=je.prototype.ne;je.prototype.getTileCoordForCoordAndResolution=je.prototype.Wb;je.prototype.getTileCoordForCoordAndZ=je.prototype.cd;je.prototype.getTileSize=je.prototype.na;Qc.prototype.getOpacity=Qc.prototype.ie;Qc.prototype.getRotateWithView=
Qc.prototype.Jd;Qc.prototype.getRotation=Qc.prototype.je;Qc.prototype.getScale=Qc.prototype.ke;Qc.prototype.getSnapToPixel=Qc.prototype.Kd;Qc.prototype.setRotation=Qc.prototype.le;Qc.prototype.setScale=Qc.prototype.me;ld.prototype.getOpacity=ld.prototype.ie;ld.prototype.getRotateWithView=ld.prototype.Jd;ld.prototype.getRotation=ld.prototype.je;ld.prototype.getScale=ld.prototype.ke;ld.prototype.getSnapToPixel=ld.prototype.Kd;ld.prototype.setRotation=ld.prototype.le;ld.prototype.setScale=ld.prototype.me;
zc.prototype.getOpacity=zc.prototype.ie;zc.prototype.getRotateWithView=zc.prototype.Jd;zc.prototype.getRotation=zc.prototype.je;zc.prototype.getScale=zc.prototype.ke;zc.prototype.getSnapToPixel=zc.prototype.Kd;zc.prototype.setRotation=zc.prototype.le;zc.prototype.setScale=zc.prototype.me;fc.prototype.get=fc.prototype.get;fc.prototype.getKeys=fc.prototype.C;fc.prototype.getProperties=fc.prototype.D;fc.prototype.set=fc.prototype.set;fc.prototype.setProperties=fc.prototype.t;fc.prototype.unset=fc.prototype.I;
fc.prototype.changed=fc.prototype.k;fc.prototype.getRevision=fc.prototype.v;fc.prototype.on=fc.prototype.r;fc.prototype.once=fc.prototype.A;fc.prototype.un=fc.prototype.u;fc.prototype.unByKey=fc.prototype.B;Yb.prototype.getAttributions=Yb.prototype.ea;Yb.prototype.getLogo=Yb.prototype.ca;Yb.prototype.getProjection=Yb.prototype.fa;Yb.prototype.getState=Yb.prototype.ga;Yb.prototype.get=Yb.prototype.get;Yb.prototype.getKeys=Yb.prototype.C;Yb.prototype.getProperties=Yb.prototype.D;Yb.prototype.set=Yb.prototype.set;
Yb.prototype.setProperties=Yb.prototype.t;Yb.prototype.unset=Yb.prototype.I;Yb.prototype.changed=Yb.prototype.k;Yb.prototype.getRevision=Yb.prototype.v;Yb.prototype.on=Yb.prototype.r;Yb.prototype.once=Yb.prototype.A;Yb.prototype.un=Yb.prototype.u;Yb.prototype.unByKey=Yb.prototype.B;ib.prototype.getTileGrid=ib.prototype.ua;ib.prototype.getAttributions=ib.prototype.ea;ib.prototype.getLogo=ib.prototype.ca;ib.prototype.getProjection=ib.prototype.fa;ib.prototype.getState=ib.prototype.ga;ib.prototype.get=
ib.prototype.get;ib.prototype.getKeys=ib.prototype.C;ib.prototype.getProperties=ib.prototype.D;ib.prototype.set=ib.prototype.set;ib.prototype.setProperties=ib.prototype.t;ib.prototype.unset=ib.prototype.I;ib.prototype.changed=ib.prototype.k;ib.prototype.getRevision=ib.prototype.v;ib.prototype.on=ib.prototype.r;ib.prototype.once=ib.prototype.A;ib.prototype.un=ib.prototype.u;ib.prototype.unByKey=ib.prototype.B;Qb.prototype.getTileLoadFunction=Qb.prototype.Ua;Qb.prototype.getTileUrlFunction=Qb.prototype.Va;
Qb.prototype.setTileLoadFunction=Qb.prototype.$a;Qb.prototype.setTileUrlFunction=Qb.prototype.pa;Qb.prototype.getTileGrid=Qb.prototype.ua;Qb.prototype.getAttributions=Qb.prototype.ea;Qb.prototype.getLogo=Qb.prototype.ca;Qb.prototype.getProjection=Qb.prototype.fa;Qb.prototype.getState=Qb.prototype.ga;Qb.prototype.get=Qb.prototype.get;Qb.prototype.getKeys=Qb.prototype.C;Qb.prototype.getProperties=Qb.prototype.D;Qb.prototype.set=Qb.prototype.set;Qb.prototype.setProperties=Qb.prototype.t;Qb.prototype.unset=
Qb.prototype.I;Qb.prototype.changed=Qb.prototype.k;Qb.prototype.getRevision=Qb.prototype.v;Qb.prototype.on=Qb.prototype.r;Qb.prototype.once=Qb.prototype.A;Qb.prototype.un=Qb.prototype.u;Qb.prototype.unByKey=Qb.prototype.B;bb.prototype.getAttributions=bb.prototype.ea;bb.prototype.getLogo=bb.prototype.ca;bb.prototype.getProjection=bb.prototype.fa;bb.prototype.getState=bb.prototype.ga;bb.prototype.get=bb.prototype.get;bb.prototype.getKeys=bb.prototype.C;bb.prototype.getProperties=bb.prototype.D;bb.prototype.set=
bb.prototype.set;bb.prototype.setProperties=bb.prototype.t;bb.prototype.unset=bb.prototype.I;bb.prototype.changed=bb.prototype.k;bb.prototype.getRevision=bb.prototype.v;bb.prototype.on=bb.prototype.r;bb.prototype.once=bb.prototype.A;bb.prototype.un=bb.prototype.u;bb.prototype.unByKey=bb.prototype.B;ab.prototype.addFeature=ab.prototype.jf;ab.prototype.addFeatures=ab.prototype.Oc;ab.prototype.clear=ab.prototype.clear;ab.prototype.forEachFeature=ab.prototype.Rf;ab.prototype.forEachFeatureInExtent=ab.prototype.$c;
ab.prototype.forEachFeatureIntersectingExtent=ab.prototype.Oe;ab.prototype.getFeatures=ab.prototype.Dc;ab.prototype.getFeaturesAtCoordinate=ab.prototype.Re;ab.prototype.getFeaturesInExtent=ab.prototype.Se;ab.prototype.getClosestFeatureToCoordinate=ab.prototype.Tf;ab.prototype.getExtent=ab.prototype.G;ab.prototype.getFeatureById=ab.prototype.Qe;ab.prototype.removeFeature=ab.prototype.Qg;ab.prototype.getAttributions=ab.prototype.ea;ab.prototype.getLogo=ab.prototype.ca;ab.prototype.getProjection=ab.prototype.fa;
ab.prototype.getState=ab.prototype.ga;ab.prototype.get=ab.prototype.get;ab.prototype.getKeys=ab.prototype.C;ab.prototype.getProperties=ab.prototype.D;ab.prototype.set=ab.prototype.set;ab.prototype.setProperties=ab.prototype.t;ab.prototype.unset=ab.prototype.I;ab.prototype.changed=ab.prototype.k;ab.prototype.getRevision=ab.prototype.v;ab.prototype.on=ab.prototype.r;ab.prototype.once=ab.prototype.A;ab.prototype.un=ab.prototype.u;ab.prototype.unByKey=ab.prototype.B;Zb.prototype.getAttributions=Zb.prototype.ea;
Zb.prototype.getLogo=Zb.prototype.ca;Zb.prototype.getProjection=Zb.prototype.fa;Zb.prototype.getState=Zb.prototype.ga;Zb.prototype.get=Zb.prototype.get;Zb.prototype.getKeys=Zb.prototype.C;Zb.prototype.getProperties=Zb.prototype.D;Zb.prototype.set=Zb.prototype.set;Zb.prototype.setProperties=Zb.prototype.t;Zb.prototype.unset=Zb.prototype.I;Zb.prototype.changed=Zb.prototype.k;Zb.prototype.getRevision=Zb.prototype.v;Zb.prototype.on=Zb.prototype.r;Zb.prototype.once=Zb.prototype.A;Zb.prototype.un=Zb.prototype.u;
Zb.prototype.unByKey=Zb.prototype.B;vc.prototype.getAttributions=vc.prototype.ea;vc.prototype.getLogo=vc.prototype.ca;vc.prototype.getProjection=vc.prototype.fa;vc.prototype.getState=vc.prototype.ga;vc.prototype.get=vc.prototype.get;vc.prototype.getKeys=vc.prototype.C;vc.prototype.getProperties=vc.prototype.D;vc.prototype.set=vc.prototype.set;vc.prototype.setProperties=vc.prototype.t;vc.prototype.unset=vc.prototype.I;vc.prototype.changed=vc.prototype.k;vc.prototype.getRevision=vc.prototype.v;vc.prototype.on=
vc.prototype.r;vc.prototype.once=vc.prototype.A;vc.prototype.un=vc.prototype.u;vc.prototype.unByKey=vc.prototype.B;$b.prototype.getAttributions=$b.prototype.ea;$b.prototype.getLogo=$b.prototype.ca;$b.prototype.getProjection=$b.prototype.fa;$b.prototype.getState=$b.prototype.ga;$b.prototype.get=$b.prototype.get;$b.prototype.getKeys=$b.prototype.C;$b.prototype.getProperties=$b.prototype.D;$b.prototype.set=$b.prototype.set;$b.prototype.setProperties=$b.prototype.t;$b.prototype.unset=$b.prototype.I;$b.prototype.changed=
$b.prototype.k;$b.prototype.getRevision=$b.prototype.v;$b.prototype.on=$b.prototype.r;$b.prototype.once=$b.prototype.A;$b.prototype.un=$b.prototype.u;$b.prototype.unByKey=$b.prototype.B;Ic.prototype.getAttributions=Ic.prototype.ea;Ic.prototype.getLogo=Ic.prototype.ca;Ic.prototype.getProjection=Ic.prototype.fa;Ic.prototype.getState=Ic.prototype.ga;Ic.prototype.get=Ic.prototype.get;Ic.prototype.getKeys=Ic.prototype.C;Ic.prototype.getProperties=Ic.prototype.D;Ic.prototype.set=Ic.prototype.set;Ic.prototype.setProperties=
Ic.prototype.t;Ic.prototype.unset=Ic.prototype.I;Ic.prototype.changed=Ic.prototype.k;Ic.prototype.getRevision=Ic.prototype.v;Ic.prototype.on=Ic.prototype.r;Ic.prototype.once=Ic.prototype.A;Ic.prototype.un=Ic.prototype.u;Ic.prototype.unByKey=Ic.prototype.B;Pb.prototype.getAttributions=Pb.prototype.ea;Pb.prototype.getLogo=Pb.prototype.ca;Pb.prototype.getProjection=Pb.prototype.fa;Pb.prototype.getState=Pb.prototype.ga;Pb.prototype.get=Pb.prototype.get;Pb.prototype.getKeys=Pb.prototype.C;Pb.prototype.getProperties=
Pb.prototype.D;Pb.prototype.set=Pb.prototype.set;Pb.prototype.setProperties=Pb.prototype.t;Pb.prototype.unset=Pb.prototype.I;Pb.prototype.changed=Pb.prototype.k;Pb.prototype.getRevision=Pb.prototype.v;Pb.prototype.on=Pb.prototype.r;Pb.prototype.once=Pb.prototype.A;Pb.prototype.un=Pb.prototype.u;Pb.prototype.unByKey=Pb.prototype.B;Eb.prototype.getAttributions=Eb.prototype.ea;Eb.prototype.getLogo=Eb.prototype.ca;Eb.prototype.getProjection=Eb.prototype.fa;Eb.prototype.getState=Eb.prototype.ga;Eb.prototype.get=
Eb.prototype.get;Eb.prototype.getKeys=Eb.prototype.C;Eb.prototype.getProperties=Eb.prototype.D;Eb.prototype.set=Eb.prototype.set;Eb.prototype.setProperties=Eb.prototype.t;Eb.prototype.unset=Eb.prototype.I;Eb.prototype.changed=Eb.prototype.k;Eb.prototype.getRevision=Eb.prototype.v;Eb.prototype.on=Eb.prototype.r;Eb.prototype.once=Eb.prototype.A;Eb.prototype.un=Eb.prototype.u;Eb.prototype.unByKey=Eb.prototype.B;rb.prototype.getTileLoadFunction=rb.prototype.Ua;rb.prototype.getTileUrlFunction=rb.prototype.Va;
rb.prototype.setTileLoadFunction=rb.prototype.$a;rb.prototype.getTileGrid=rb.prototype.ua;rb.prototype.getAttributions=rb.prototype.ea;rb.prototype.getLogo=rb.prototype.ca;rb.prototype.getProjection=rb.prototype.fa;rb.prototype.getState=rb.prototype.ga;rb.prototype.get=rb.prototype.get;rb.prototype.getKeys=rb.prototype.C;rb.prototype.getProperties=rb.prototype.D;rb.prototype.set=rb.prototype.set;rb.prototype.setProperties=rb.prototype.t;rb.prototype.unset=rb.prototype.I;rb.prototype.changed=rb.prototype.k;
rb.prototype.getRevision=rb.prototype.v;rb.prototype.on=rb.prototype.r;rb.prototype.once=rb.prototype.A;rb.prototype.un=rb.prototype.u;rb.prototype.unByKey=rb.prototype.B;Fb.prototype.setTileUrlFunction=Fb.prototype.pa;Fb.prototype.setUrl=Fb.prototype.e;Fb.prototype.getTileLoadFunction=Fb.prototype.Ua;Fb.prototype.getTileUrlFunction=Fb.prototype.Va;Fb.prototype.setTileLoadFunction=Fb.prototype.$a;Fb.prototype.getTileGrid=Fb.prototype.ua;Fb.prototype.getAttributions=Fb.prototype.ea;Fb.prototype.getLogo=
Fb.prototype.ca;Fb.prototype.getProjection=Fb.prototype.fa;Fb.prototype.getState=Fb.prototype.ga;Fb.prototype.get=Fb.prototype.get;Fb.prototype.getKeys=Fb.prototype.C;Fb.prototype.getProperties=Fb.prototype.D;Fb.prototype.set=Fb.prototype.set;Fb.prototype.setProperties=Fb.prototype.t;Fb.prototype.unset=Fb.prototype.I;Fb.prototype.changed=Fb.prototype.k;Fb.prototype.getRevision=Fb.prototype.v;Fb.prototype.on=Fb.prototype.r;Fb.prototype.once=Fb.prototype.A;Fb.prototype.un=Fb.prototype.u;Fb.prototype.unByKey=
Fb.prototype.B;Kb.prototype.setTileUrlFunction=Kb.prototype.pa;Kb.prototype.setUrl=Kb.prototype.e;Kb.prototype.getTileLoadFunction=Kb.prototype.Ua;Kb.prototype.getTileUrlFunction=Kb.prototype.Va;Kb.prototype.setTileLoadFunction=Kb.prototype.$a;Kb.prototype.getTileGrid=Kb.prototype.ua;Kb.prototype.getAttributions=Kb.prototype.ea;Kb.prototype.getLogo=Kb.prototype.ca;Kb.prototype.getProjection=Kb.prototype.fa;Kb.prototype.getState=Kb.prototype.ga;Kb.prototype.get=Kb.prototype.get;Kb.prototype.getKeys=
Kb.prototype.C;Kb.prototype.getProperties=Kb.prototype.D;Kb.prototype.set=Kb.prototype.set;Kb.prototype.setProperties=Kb.prototype.t;Kb.prototype.unset=Kb.prototype.I;Kb.prototype.changed=Kb.prototype.k;Kb.prototype.getRevision=Kb.prototype.v;Kb.prototype.on=Kb.prototype.r;Kb.prototype.once=Kb.prototype.A;Kb.prototype.un=Kb.prototype.u;Kb.prototype.unByKey=Kb.prototype.B;Lb.prototype.setTileUrlFunction=Lb.prototype.pa;Lb.prototype.setUrl=Lb.prototype.e;Lb.prototype.getTileLoadFunction=Lb.prototype.Ua;
Lb.prototype.getTileUrlFunction=Lb.prototype.Va;Lb.prototype.setTileLoadFunction=Lb.prototype.$a;Lb.prototype.getTileGrid=Lb.prototype.ua;Lb.prototype.getAttributions=Lb.prototype.ea;Lb.prototype.getLogo=Lb.prototype.ca;Lb.prototype.getProjection=Lb.prototype.fa;Lb.prototype.getState=Lb.prototype.ga;Lb.prototype.get=Lb.prototype.get;Lb.prototype.getKeys=Lb.prototype.C;Lb.prototype.getProperties=Lb.prototype.D;Lb.prototype.set=Lb.prototype.set;Lb.prototype.setProperties=Lb.prototype.t;Lb.prototype.unset=
Lb.prototype.I;Lb.prototype.changed=Lb.prototype.k;Lb.prototype.getRevision=Lb.prototype.v;Lb.prototype.on=Lb.prototype.r;Lb.prototype.once=Lb.prototype.A;Lb.prototype.un=Lb.prototype.u;Lb.prototype.unByKey=Lb.prototype.B;nb.prototype.getTileLoadFunction=nb.prototype.Ua;nb.prototype.getTileUrlFunction=nb.prototype.Va;nb.prototype.setTileLoadFunction=nb.prototype.$a;nb.prototype.setTileUrlFunction=nb.prototype.pa;nb.prototype.getTileGrid=nb.prototype.ua;nb.prototype.getAttributions=nb.prototype.ea;
nb.prototype.getLogo=nb.prototype.ca;nb.prototype.getProjection=nb.prototype.fa;nb.prototype.getState=nb.prototype.ga;nb.prototype.get=nb.prototype.get;nb.prototype.getKeys=nb.prototype.C;nb.prototype.getProperties=nb.prototype.D;nb.prototype.set=nb.prototype.set;nb.prototype.setProperties=nb.prototype.t;nb.prototype.unset=nb.prototype.I;nb.prototype.changed=nb.prototype.k;nb.prototype.getRevision=nb.prototype.v;nb.prototype.on=nb.prototype.r;nb.prototype.once=nb.prototype.A;nb.prototype.un=nb.prototype.u;
nb.prototype.unByKey=nb.prototype.B;yc.prototype.getTileGrid=yc.prototype.ua;yc.prototype.getAttributions=yc.prototype.ea;yc.prototype.getLogo=yc.prototype.ca;yc.prototype.getProjection=yc.prototype.fa;yc.prototype.getState=yc.prototype.ga;yc.prototype.get=yc.prototype.get;yc.prototype.getKeys=yc.prototype.C;yc.prototype.getProperties=yc.prototype.D;yc.prototype.set=yc.prototype.set;yc.prototype.setProperties=yc.prototype.t;yc.prototype.unset=yc.prototype.I;yc.prototype.changed=yc.prototype.k;yc.prototype.getRevision=
yc.prototype.v;yc.prototype.on=yc.prototype.r;yc.prototype.once=yc.prototype.A;yc.prototype.un=yc.prototype.u;yc.prototype.unByKey=yc.prototype.B;Rb.prototype.getTileLoadFunction=Rb.prototype.Ua;Rb.prototype.getTileUrlFunction=Rb.prototype.Va;Rb.prototype.setTileLoadFunction=Rb.prototype.$a;Rb.prototype.setTileUrlFunction=Rb.prototype.pa;Rb.prototype.getTileGrid=Rb.prototype.ua;Rb.prototype.getAttributions=Rb.prototype.ea;Rb.prototype.getLogo=Rb.prototype.ca;Rb.prototype.getProjection=Rb.prototype.fa;
Rb.prototype.getState=Rb.prototype.ga;Rb.prototype.get=Rb.prototype.get;Rb.prototype.getKeys=Rb.prototype.C;Rb.prototype.getProperties=Rb.prototype.D;Rb.prototype.set=Rb.prototype.set;Rb.prototype.setProperties=Rb.prototype.t;Rb.prototype.unset=Rb.prototype.I;Rb.prototype.changed=Rb.prototype.k;Rb.prototype.getRevision=Rb.prototype.v;Rb.prototype.on=Rb.prototype.r;Rb.prototype.once=Rb.prototype.A;Rb.prototype.un=Rb.prototype.u;Rb.prototype.unByKey=Rb.prototype.B;hc.prototype.getTileGrid=hc.prototype.ua;
hc.prototype.getAttributions=hc.prototype.ea;hc.prototype.getLogo=hc.prototype.ca;hc.prototype.getProjection=hc.prototype.fa;hc.prototype.getState=hc.prototype.ga;hc.prototype.get=hc.prototype.get;hc.prototype.getKeys=hc.prototype.C;hc.prototype.getProperties=hc.prototype.D;hc.prototype.set=hc.prototype.set;hc.prototype.setProperties=hc.prototype.t;hc.prototype.unset=hc.prototype.I;hc.prototype.changed=hc.prototype.k;hc.prototype.getRevision=hc.prototype.v;hc.prototype.on=hc.prototype.r;hc.prototype.once=
hc.prototype.A;hc.prototype.un=hc.prototype.u;hc.prototype.unByKey=hc.prototype.B;Sb.prototype.forEachFeatureIntersectingExtent=Sb.prototype.Oe;Sb.prototype.getFeaturesAtCoordinate=Sb.prototype.Re;Sb.prototype.getFeatureById=Sb.prototype.Qe;Sb.prototype.getAttributions=Sb.prototype.ea;Sb.prototype.getLogo=Sb.prototype.ca;Sb.prototype.getProjection=Sb.prototype.fa;Sb.prototype.getState=Sb.prototype.ga;Sb.prototype.get=Sb.prototype.get;Sb.prototype.getKeys=Sb.prototype.C;Sb.prototype.getProperties=
Sb.prototype.D;Sb.prototype.set=Sb.prototype.set;Sb.prototype.setProperties=Sb.prototype.t;Sb.prototype.unset=Sb.prototype.I;Sb.prototype.changed=Sb.prototype.k;Sb.prototype.getRevision=Sb.prototype.v;Sb.prototype.on=Sb.prototype.r;Sb.prototype.once=Sb.prototype.A;Sb.prototype.un=Sb.prototype.u;Sb.prototype.unByKey=Sb.prototype.B;jb.prototype.getTileLoadFunction=jb.prototype.Ua;jb.prototype.getTileUrlFunction=jb.prototype.Va;jb.prototype.setTileLoadFunction=jb.prototype.$a;jb.prototype.setTileUrlFunction=
jb.prototype.pa;jb.prototype.getTileGrid=jb.prototype.ua;jb.prototype.getAttributions=jb.prototype.ea;jb.prototype.getLogo=jb.prototype.ca;jb.prototype.getProjection=jb.prototype.fa;jb.prototype.getState=jb.prototype.ga;jb.prototype.get=jb.prototype.get;jb.prototype.getKeys=jb.prototype.C;jb.prototype.getProperties=jb.prototype.D;jb.prototype.set=jb.prototype.set;jb.prototype.setProperties=jb.prototype.t;jb.prototype.unset=jb.prototype.I;jb.prototype.changed=jb.prototype.k;jb.prototype.getRevision=
jb.prototype.v;jb.prototype.on=jb.prototype.r;jb.prototype.once=jb.prototype.A;jb.prototype.un=jb.prototype.u;jb.prototype.unByKey=jb.prototype.B;eb.prototype.getTileLoadFunction=eb.prototype.Ua;eb.prototype.getTileUrlFunction=eb.prototype.Va;eb.prototype.setTileLoadFunction=eb.prototype.$a;eb.prototype.setTileUrlFunction=eb.prototype.pa;eb.prototype.getTileGrid=eb.prototype.ua;eb.prototype.getAttributions=eb.prototype.ea;eb.prototype.getLogo=eb.prototype.ca;eb.prototype.getProjection=eb.prototype.fa;
eb.prototype.getState=eb.prototype.ga;eb.prototype.get=eb.prototype.get;eb.prototype.getKeys=eb.prototype.C;eb.prototype.getProperties=eb.prototype.D;eb.prototype.set=eb.prototype.set;eb.prototype.setProperties=eb.prototype.t;eb.prototype.unset=eb.prototype.I;eb.prototype.changed=eb.prototype.k;eb.prototype.getRevision=eb.prototype.v;eb.prototype.on=eb.prototype.r;eb.prototype.once=eb.prototype.A;eb.prototype.un=eb.prototype.u;eb.prototype.unByKey=eb.prototype.B;Vb.prototype.getTileLoadFunction=Vb.prototype.Ua;
Vb.prototype.getTileUrlFunction=Vb.prototype.Va;Vb.prototype.setTileLoadFunction=Vb.prototype.$a;Vb.prototype.setTileUrlFunction=Vb.prototype.pa;Vb.prototype.getTileGrid=Vb.prototype.ua;Vb.prototype.getAttributions=Vb.prototype.ea;Vb.prototype.getLogo=Vb.prototype.ca;Vb.prototype.getProjection=Vb.prototype.fa;Vb.prototype.getState=Vb.prototype.ga;Vb.prototype.get=Vb.prototype.get;Vb.prototype.getKeys=Vb.prototype.C;Vb.prototype.getProperties=Vb.prototype.D;Vb.prototype.set=Vb.prototype.set;Vb.prototype.setProperties=
Vb.prototype.t;Vb.prototype.unset=Vb.prototype.I;Vb.prototype.changed=Vb.prototype.k;Vb.prototype.getRevision=Vb.prototype.v;Vb.prototype.on=Vb.prototype.r;Vb.prototype.once=Vb.prototype.A;Vb.prototype.un=Vb.prototype.u;Vb.prototype.unByKey=Vb.prototype.B;he.prototype.changed=he.prototype.k;he.prototype.getRevision=he.prototype.v;he.prototype.on=he.prototype.r;he.prototype.once=he.prototype.A;he.prototype.un=he.prototype.u;he.prototype.unByKey=he.prototype.B;ae.prototype.changed=ae.prototype.k;ae.prototype.getRevision=
ae.prototype.v;ae.prototype.on=ae.prototype.r;ae.prototype.once=ae.prototype.A;ae.prototype.un=ae.prototype.u;ae.prototype.unByKey=ae.prototype.B;xe.prototype.changed=xe.prototype.k;xe.prototype.getRevision=xe.prototype.v;xe.prototype.on=xe.prototype.r;xe.prototype.once=xe.prototype.A;xe.prototype.un=xe.prototype.u;xe.prototype.unByKey=xe.prototype.B;Ce.prototype.changed=Ce.prototype.k;Ce.prototype.getRevision=Ce.prototype.v;Ce.prototype.on=Ce.prototype.r;Ce.prototype.once=Ce.prototype.A;Ce.prototype.un=
Ce.prototype.u;Ce.prototype.unByKey=Ce.prototype.B;Oe.prototype.changed=Oe.prototype.k;Oe.prototype.getRevision=Oe.prototype.v;Oe.prototype.on=Oe.prototype.r;Oe.prototype.once=Oe.prototype.A;Oe.prototype.un=Oe.prototype.u;Oe.prototype.unByKey=Oe.prototype.B;$d.prototype.changed=$d.prototype.k;$d.prototype.getRevision=$d.prototype.v;$d.prototype.on=$d.prototype.r;$d.prototype.once=$d.prototype.A;$d.prototype.un=$d.prototype.u;$d.prototype.unByKey=$d.prototype.B;Be.prototype.changed=Be.prototype.k;
Be.prototype.getRevision=Be.prototype.v;Be.prototype.on=Be.prototype.r;Be.prototype.once=Be.prototype.A;Be.prototype.un=Be.prototype.u;Be.prototype.unByKey=Be.prototype.B;Ne.prototype.changed=Ne.prototype.k;Ne.prototype.getRevision=Ne.prototype.v;Ne.prototype.on=Ne.prototype.r;Ne.prototype.once=Ne.prototype.A;Ne.prototype.un=Ne.prototype.u;Ne.prototype.unByKey=Ne.prototype.B;we.prototype.changed=we.prototype.k;we.prototype.getRevision=we.prototype.v;we.prototype.on=we.prototype.r;we.prototype.once=
we.prototype.A;we.prototype.un=we.prototype.u;we.prototype.unByKey=we.prototype.B;ie.prototype.changed=ie.prototype.k;ie.prototype.getRevision=ie.prototype.v;ie.prototype.on=ie.prototype.r;ie.prototype.once=ie.prototype.A;ie.prototype.un=ie.prototype.u;ie.prototype.unByKey=ie.prototype.B;Ze.prototype.changed=Ze.prototype.k;Ze.prototype.getRevision=Ze.prototype.v;Ze.prototype.on=Ze.prototype.r;Ze.prototype.once=Ze.prototype.A;Ze.prototype.un=Ze.prototype.u;Ze.prototype.unByKey=Ze.prototype.B;ue.prototype.changed=
ue.prototype.k;ue.prototype.getRevision=ue.prototype.v;ue.prototype.on=ue.prototype.r;ue.prototype.once=ue.prototype.A;ue.prototype.un=ue.prototype.u;ue.prototype.unByKey=ue.prototype.B;ve.prototype.changed=ve.prototype.k;ve.prototype.getRevision=ve.prototype.v;ve.prototype.on=ve.prototype.r;ve.prototype.once=ve.prototype.A;ve.prototype.un=ve.prototype.u;ve.prototype.unByKey=ve.prototype.B;Xa.prototype.get=Xa.prototype.get;Xa.prototype.getKeys=Xa.prototype.C;Xa.prototype.getProperties=Xa.prototype.D;
Xa.prototype.set=Xa.prototype.set;Xa.prototype.setProperties=Xa.prototype.t;Xa.prototype.unset=Xa.prototype.I;Xa.prototype.changed=Xa.prototype.k;Xa.prototype.getRevision=Xa.prototype.v;Xa.prototype.on=Xa.prototype.r;Xa.prototype.once=Xa.prototype.A;Xa.prototype.un=Xa.prototype.u;Xa.prototype.unByKey=Xa.prototype.B;La.prototype.getBrightness=La.prototype.Bb;La.prototype.getContrast=La.prototype.Cb;La.prototype.getHue=La.prototype.Db;La.prototype.getExtent=La.prototype.G;La.prototype.getMaxResolution=
La.prototype.Eb;La.prototype.getMinResolution=La.prototype.Fb;La.prototype.getOpacity=La.prototype.Kb;La.prototype.getSaturation=La.prototype.Gb;La.prototype.getVisible=La.prototype.eb;La.prototype.setBrightness=La.prototype.gc;La.prototype.setContrast=La.prototype.hc;La.prototype.setHue=La.prototype.ic;La.prototype.setExtent=La.prototype.bc;La.prototype.setMaxResolution=La.prototype.jc;La.prototype.setMinResolution=La.prototype.kc;La.prototype.setOpacity=La.prototype.cc;La.prototype.setSaturation=
La.prototype.lc;La.prototype.setVisible=La.prototype.mc;La.prototype.get=La.prototype.get;La.prototype.getKeys=La.prototype.C;La.prototype.getProperties=La.prototype.D;La.prototype.set=La.prototype.set;La.prototype.setProperties=La.prototype.t;La.prototype.unset=La.prototype.I;La.prototype.changed=La.prototype.k;La.prototype.getRevision=La.prototype.v;La.prototype.on=La.prototype.r;La.prototype.once=La.prototype.A;La.prototype.un=La.prototype.u;La.prototype.unByKey=La.prototype.B;Ga.prototype.setSource=
Ga.prototype.Jc;Ga.prototype.getBrightness=Ga.prototype.Bb;Ga.prototype.getContrast=Ga.prototype.Cb;Ga.prototype.getHue=Ga.prototype.Db;Ga.prototype.getExtent=Ga.prototype.G;Ga.prototype.getMaxResolution=Ga.prototype.Eb;Ga.prototype.getMinResolution=Ga.prototype.Fb;Ga.prototype.getOpacity=Ga.prototype.Kb;Ga.prototype.getSaturation=Ga.prototype.Gb;Ga.prototype.getVisible=Ga.prototype.eb;Ga.prototype.setBrightness=Ga.prototype.gc;Ga.prototype.setContrast=Ga.prototype.hc;Ga.prototype.setHue=Ga.prototype.ic;
Ga.prototype.setExtent=Ga.prototype.bc;Ga.prototype.setMaxResolution=Ga.prototype.jc;Ga.prototype.setMinResolution=Ga.prototype.kc;Ga.prototype.setOpacity=Ga.prototype.cc;Ga.prototype.setSaturation=Ga.prototype.lc;Ga.prototype.setVisible=Ga.prototype.mc;Ga.prototype.get=Ga.prototype.get;Ga.prototype.getKeys=Ga.prototype.C;Ga.prototype.getProperties=Ga.prototype.D;Ga.prototype.set=Ga.prototype.set;Ga.prototype.setProperties=Ga.prototype.t;Ga.prototype.unset=Ga.prototype.I;Ga.prototype.changed=Ga.prototype.k;
Ga.prototype.getRevision=Ga.prototype.v;Ga.prototype.on=Ga.prototype.r;Ga.prototype.once=Ga.prototype.A;Ga.prototype.un=Ga.prototype.u;Ga.prototype.unByKey=Ga.prototype.B;Ba.prototype.getSource=Ba.prototype.da;Ba.prototype.getStyle=Ba.prototype.H;Ba.prototype.getStyleFunction=Ba.prototype.J;Ba.prototype.setStyle=Ba.prototype.e;Ba.prototype.setSource=Ba.prototype.Jc;Ba.prototype.getBrightness=Ba.prototype.Bb;Ba.prototype.getContrast=Ba.prototype.Cb;Ba.prototype.getHue=Ba.prototype.Db;Ba.prototype.getExtent=
Ba.prototype.G;Ba.prototype.getMaxResolution=Ba.prototype.Eb;Ba.prototype.getMinResolution=Ba.prototype.Fb;Ba.prototype.getOpacity=Ba.prototype.Kb;Ba.prototype.getSaturation=Ba.prototype.Gb;Ba.prototype.getVisible=Ba.prototype.eb;Ba.prototype.setBrightness=Ba.prototype.gc;Ba.prototype.setContrast=Ba.prototype.hc;Ba.prototype.setHue=Ba.prototype.ic;Ba.prototype.setExtent=Ba.prototype.bc;Ba.prototype.setMaxResolution=Ba.prototype.jc;Ba.prototype.setMinResolution=Ba.prototype.kc;Ba.prototype.setOpacity=
Ba.prototype.cc;Ba.prototype.setSaturation=Ba.prototype.lc;Ba.prototype.setVisible=Ba.prototype.mc;Ba.prototype.get=Ba.prototype.get;Ba.prototype.getKeys=Ba.prototype.C;Ba.prototype.getProperties=Ba.prototype.D;Ba.prototype.set=Ba.prototype.set;Ba.prototype.setProperties=Ba.prototype.t;Ba.prototype.unset=Ba.prototype.I;Ba.prototype.changed=Ba.prototype.k;Ba.prototype.getRevision=Ba.prototype.v;Ba.prototype.on=Ba.prototype.r;Ba.prototype.once=Ba.prototype.A;Ba.prototype.un=Ba.prototype.u;Ba.prototype.unByKey=
Ba.prototype.B;Va.prototype.setSource=Va.prototype.Jc;Va.prototype.getBrightness=Va.prototype.Bb;Va.prototype.getContrast=Va.prototype.Cb;Va.prototype.getHue=Va.prototype.Db;Va.prototype.getExtent=Va.prototype.G;Va.prototype.getMaxResolution=Va.prototype.Eb;Va.prototype.getMinResolution=Va.prototype.Fb;Va.prototype.getOpacity=Va.prototype.Kb;Va.prototype.getSaturation=Va.prototype.Gb;Va.prototype.getVisible=Va.prototype.eb;Va.prototype.setBrightness=Va.prototype.gc;Va.prototype.setContrast=Va.prototype.hc;
Va.prototype.setHue=Va.prototype.ic;Va.prototype.setExtent=Va.prototype.bc;Va.prototype.setMaxResolution=Va.prototype.jc;Va.prototype.setMinResolution=Va.prototype.kc;Va.prototype.setOpacity=Va.prototype.cc;Va.prototype.setSaturation=Va.prototype.lc;Va.prototype.setVisible=Va.prototype.mc;Va.prototype.get=Va.prototype.get;Va.prototype.getKeys=Va.prototype.C;Va.prototype.getProperties=Va.prototype.D;Va.prototype.set=Va.prototype.set;Va.prototype.setProperties=Va.prototype.t;Va.prototype.unset=Va.prototype.I;
Va.prototype.changed=Va.prototype.k;Va.prototype.getRevision=Va.prototype.v;Va.prototype.on=Va.prototype.r;Va.prototype.once=Va.prototype.A;Va.prototype.un=Va.prototype.u;Va.prototype.unByKey=Va.prototype.B;Ua.prototype.getBrightness=Ua.prototype.Bb;Ua.prototype.getContrast=Ua.prototype.Cb;Ua.prototype.getHue=Ua.prototype.Db;Ua.prototype.getExtent=Ua.prototype.G;Ua.prototype.getMaxResolution=Ua.prototype.Eb;Ua.prototype.getMinResolution=Ua.prototype.Fb;Ua.prototype.getOpacity=Ua.prototype.Kb;Ua.prototype.getSaturation=
Ua.prototype.Gb;Ua.prototype.getVisible=Ua.prototype.eb;Ua.prototype.setBrightness=Ua.prototype.gc;Ua.prototype.setContrast=Ua.prototype.hc;Ua.prototype.setHue=Ua.prototype.ic;Ua.prototype.setExtent=Ua.prototype.bc;Ua.prototype.setMaxResolution=Ua.prototype.jc;Ua.prototype.setMinResolution=Ua.prototype.kc;Ua.prototype.setOpacity=Ua.prototype.cc;Ua.prototype.setSaturation=Ua.prototype.lc;Ua.prototype.setVisible=Ua.prototype.mc;Ua.prototype.get=Ua.prototype.get;Ua.prototype.getKeys=Ua.prototype.C;Ua.prototype.getProperties=
Ua.prototype.D;Ua.prototype.set=Ua.prototype.set;Ua.prototype.setProperties=Ua.prototype.t;Ua.prototype.unset=Ua.prototype.I;Ua.prototype.changed=Ua.prototype.k;Ua.prototype.getRevision=Ua.prototype.v;Ua.prototype.on=Ua.prototype.r;Ua.prototype.once=Ua.prototype.A;Ua.prototype.un=Ua.prototype.u;Ua.prototype.unByKey=Ua.prototype.B;Ea.prototype.setSource=Ea.prototype.Jc;Ea.prototype.getBrightness=Ea.prototype.Bb;Ea.prototype.getContrast=Ea.prototype.Cb;Ea.prototype.getHue=Ea.prototype.Db;Ea.prototype.getExtent=
Ea.prototype.G;Ea.prototype.getMaxResolution=Ea.prototype.Eb;Ea.prototype.getMinResolution=Ea.prototype.Fb;Ea.prototype.getOpacity=Ea.prototype.Kb;Ea.prototype.getSaturation=Ea.prototype.Gb;Ea.prototype.getVisible=Ea.prototype.eb;Ea.prototype.setBrightness=Ea.prototype.gc;Ea.prototype.setContrast=Ea.prototype.hc;Ea.prototype.setHue=Ea.prototype.ic;Ea.prototype.setExtent=Ea.prototype.bc;Ea.prototype.setMaxResolution=Ea.prototype.jc;Ea.prototype.setMinResolution=Ea.prototype.kc;Ea.prototype.setOpacity=
Ea.prototype.cc;Ea.prototype.setSaturation=Ea.prototype.lc;Ea.prototype.setVisible=Ea.prototype.mc;Ea.prototype.get=Ea.prototype.get;Ea.prototype.getKeys=Ea.prototype.C;Ea.prototype.getProperties=Ea.prototype.D;Ea.prototype.set=Ea.prototype.set;Ea.prototype.setProperties=Ea.prototype.t;Ea.prototype.unset=Ea.prototype.I;Ea.prototype.changed=Ea.prototype.k;Ea.prototype.getRevision=Ea.prototype.v;Ea.prototype.on=Ea.prototype.r;Ea.prototype.once=Ea.prototype.A;Ea.prototype.un=Ea.prototype.u;Ea.prototype.unByKey=
Ea.prototype.B;Jb.prototype.get=Jb.prototype.get;Jb.prototype.getKeys=Jb.prototype.C;Jb.prototype.getProperties=Jb.prototype.D;Jb.prototype.set=Jb.prototype.set;Jb.prototype.setProperties=Jb.prototype.t;Jb.prototype.unset=Jb.prototype.I;Jb.prototype.changed=Jb.prototype.k;Jb.prototype.getRevision=Jb.prototype.v;Jb.prototype.on=Jb.prototype.r;Jb.prototype.once=Jb.prototype.A;Jb.prototype.un=Jb.prototype.u;Jb.prototype.unByKey=Jb.prototype.B;gd.prototype.getActive=gd.prototype.c;gd.prototype.setActive=
gd.prototype.d;gd.prototype.get=gd.prototype.get;gd.prototype.getKeys=gd.prototype.C;gd.prototype.getProperties=gd.prototype.D;gd.prototype.set=gd.prototype.set;gd.prototype.setProperties=gd.prototype.t;gd.prototype.unset=gd.prototype.I;gd.prototype.changed=gd.prototype.k;gd.prototype.getRevision=gd.prototype.v;gd.prototype.on=gd.prototype.r;gd.prototype.once=gd.prototype.A;gd.prototype.un=gd.prototype.u;gd.prototype.unByKey=gd.prototype.B;Dc.prototype.getActive=Dc.prototype.c;Dc.prototype.setActive=
Dc.prototype.d;Dc.prototype.get=Dc.prototype.get;Dc.prototype.getKeys=Dc.prototype.C;Dc.prototype.getProperties=Dc.prototype.D;Dc.prototype.set=Dc.prototype.set;Dc.prototype.setProperties=Dc.prototype.t;Dc.prototype.unset=Dc.prototype.I;Dc.prototype.changed=Dc.prototype.k;Dc.prototype.getRevision=Dc.prototype.v;Dc.prototype.on=Dc.prototype.r;Dc.prototype.once=Dc.prototype.A;Dc.prototype.un=Dc.prototype.u;Dc.prototype.unByKey=Dc.prototype.B;Db.prototype.getActive=Db.prototype.c;Db.prototype.setActive=
Db.prototype.d;Db.prototype.get=Db.prototype.get;Db.prototype.getKeys=Db.prototype.C;Db.prototype.getProperties=Db.prototype.D;Db.prototype.set=Db.prototype.set;Db.prototype.setProperties=Db.prototype.t;Db.prototype.unset=Db.prototype.I;Db.prototype.changed=Db.prototype.k;Db.prototype.getRevision=Db.prototype.v;Db.prototype.on=Db.prototype.r;Db.prototype.once=Db.prototype.A;Db.prototype.un=Db.prototype.u;Db.prototype.unByKey=Db.prototype.B;Bc.prototype.getActive=Bc.prototype.c;Bc.prototype.setActive=
Bc.prototype.d;Bc.prototype.get=Bc.prototype.get;Bc.prototype.getKeys=Bc.prototype.C;Bc.prototype.getProperties=Bc.prototype.D;Bc.prototype.set=Bc.prototype.set;Bc.prototype.setProperties=Bc.prototype.t;Bc.prototype.unset=Bc.prototype.I;Bc.prototype.changed=Bc.prototype.k;Bc.prototype.getRevision=Bc.prototype.v;Bc.prototype.on=Bc.prototype.r;Bc.prototype.once=Bc.prototype.A;Bc.prototype.un=Bc.prototype.u;Bc.prototype.unByKey=Bc.prototype.B;Yc.prototype.getActive=Yc.prototype.c;Yc.prototype.setActive=
Yc.prototype.d;Yc.prototype.get=Yc.prototype.get;Yc.prototype.getKeys=Yc.prototype.C;Yc.prototype.getProperties=Yc.prototype.D;Yc.prototype.set=Yc.prototype.set;Yc.prototype.setProperties=Yc.prototype.t;Yc.prototype.unset=Yc.prototype.I;Yc.prototype.changed=Yc.prototype.k;Yc.prototype.getRevision=Yc.prototype.v;Yc.prototype.on=Yc.prototype.r;Yc.prototype.once=Yc.prototype.A;Yc.prototype.un=Yc.prototype.u;Yc.prototype.unByKey=Yc.prototype.B;md.prototype.getActive=md.prototype.c;md.prototype.setActive=
md.prototype.d;md.prototype.get=md.prototype.get;md.prototype.getKeys=md.prototype.C;md.prototype.getProperties=md.prototype.D;md.prototype.set=md.prototype.set;md.prototype.setProperties=md.prototype.t;md.prototype.unset=md.prototype.I;md.prototype.changed=md.prototype.k;md.prototype.getRevision=md.prototype.v;md.prototype.on=md.prototype.r;md.prototype.once=md.prototype.A;md.prototype.un=md.prototype.u;md.prototype.unByKey=md.prototype.B;Zc.prototype.getActive=Zc.prototype.c;Zc.prototype.setActive=
Zc.prototype.d;Zc.prototype.get=Zc.prototype.get;Zc.prototype.getKeys=Zc.prototype.C;Zc.prototype.getProperties=Zc.prototype.D;Zc.prototype.set=Zc.prototype.set;Zc.prototype.setProperties=Zc.prototype.t;Zc.prototype.unset=Zc.prototype.I;Zc.prototype.changed=Zc.prototype.k;Zc.prototype.getRevision=Zc.prototype.v;Zc.prototype.on=Zc.prototype.r;Zc.prototype.once=Zc.prototype.A;Zc.prototype.un=Zc.prototype.u;Zc.prototype.unByKey=Zc.prototype.B;Mc.prototype.getGeometry=Mc.prototype.Q;Mc.prototype.getActive=
Mc.prototype.c;Mc.prototype.setActive=Mc.prototype.d;Mc.prototype.get=Mc.prototype.get;Mc.prototype.getKeys=Mc.prototype.C;Mc.prototype.getProperties=Mc.prototype.D;Mc.prototype.set=Mc.prototype.set;Mc.prototype.setProperties=Mc.prototype.t;Mc.prototype.unset=Mc.prototype.I;Mc.prototype.changed=Mc.prototype.k;Mc.prototype.getRevision=Mc.prototype.v;Mc.prototype.on=Mc.prototype.r;Mc.prototype.once=Mc.prototype.A;Mc.prototype.un=Mc.prototype.u;Mc.prototype.unByKey=Mc.prototype.B;xc.prototype.getActive=
xc.prototype.c;xc.prototype.setActive=xc.prototype.d;xc.prototype.get=xc.prototype.get;xc.prototype.getKeys=xc.prototype.C;xc.prototype.getProperties=xc.prototype.D;xc.prototype.set=xc.prototype.set;xc.prototype.setProperties=xc.prototype.t;xc.prototype.unset=xc.prototype.I;xc.prototype.changed=xc.prototype.k;xc.prototype.getRevision=xc.prototype.v;xc.prototype.on=xc.prototype.r;xc.prototype.once=xc.prototype.A;xc.prototype.un=xc.prototype.u;xc.prototype.unByKey=xc.prototype.B;hd.prototype.getActive=
hd.prototype.c;hd.prototype.setActive=hd.prototype.d;hd.prototype.get=hd.prototype.get;hd.prototype.getKeys=hd.prototype.C;hd.prototype.getProperties=hd.prototype.D;hd.prototype.set=hd.prototype.set;hd.prototype.setProperties=hd.prototype.t;hd.prototype.unset=hd.prototype.I;hd.prototype.changed=hd.prototype.k;hd.prototype.getRevision=hd.prototype.v;hd.prototype.on=hd.prototype.r;hd.prototype.once=hd.prototype.A;hd.prototype.un=hd.prototype.u;hd.prototype.unByKey=hd.prototype.B;id.prototype.getActive=
id.prototype.c;id.prototype.setActive=id.prototype.d;id.prototype.get=id.prototype.get;id.prototype.getKeys=id.prototype.C;id.prototype.getProperties=id.prototype.D;id.prototype.set=id.prototype.set;id.prototype.setProperties=id.prototype.t;id.prototype.unset=id.prototype.I;id.prototype.changed=id.prototype.k;id.prototype.getRevision=id.prototype.v;id.prototype.on=id.prototype.r;id.prototype.once=id.prototype.A;id.prototype.un=id.prototype.u;id.prototype.unByKey=id.prototype.B;ed.prototype.getActive=
ed.prototype.c;ed.prototype.setActive=ed.prototype.d;ed.prototype.get=ed.prototype.get;ed.prototype.getKeys=ed.prototype.C;ed.prototype.getProperties=ed.prototype.D;ed.prototype.set=ed.prototype.set;ed.prototype.setProperties=ed.prototype.t;ed.prototype.unset=ed.prototype.I;ed.prototype.changed=ed.prototype.k;ed.prototype.getRevision=ed.prototype.v;ed.prototype.on=ed.prototype.r;ed.prototype.once=ed.prototype.A;ed.prototype.un=ed.prototype.u;ed.prototype.unByKey=ed.prototype.B;$c.prototype.getActive=
$c.prototype.c;$c.prototype.setActive=$c.prototype.d;$c.prototype.get=$c.prototype.get;$c.prototype.getKeys=$c.prototype.C;$c.prototype.getProperties=$c.prototype.D;$c.prototype.set=$c.prototype.set;$c.prototype.setProperties=$c.prototype.t;$c.prototype.unset=$c.prototype.I;$c.prototype.changed=$c.prototype.k;$c.prototype.getRevision=$c.prototype.v;$c.prototype.on=$c.prototype.r;$c.prototype.once=$c.prototype.A;$c.prototype.un=$c.prototype.u;$c.prototype.unByKey=$c.prototype.B;ad.prototype.getActive=
ad.prototype.c;ad.prototype.setActive=ad.prototype.d;ad.prototype.get=ad.prototype.get;ad.prototype.getKeys=ad.prototype.C;ad.prototype.getProperties=ad.prototype.D;ad.prototype.set=ad.prototype.set;ad.prototype.setProperties=ad.prototype.t;ad.prototype.unset=ad.prototype.I;ad.prototype.changed=ad.prototype.k;ad.prototype.getRevision=ad.prototype.v;ad.prototype.on=ad.prototype.r;ad.prototype.once=ad.prototype.A;ad.prototype.un=ad.prototype.u;ad.prototype.unByKey=ad.prototype.B;bd.prototype.getActive=
bd.prototype.c;bd.prototype.setActive=bd.prototype.d;bd.prototype.get=bd.prototype.get;bd.prototype.getKeys=bd.prototype.C;bd.prototype.getProperties=bd.prototype.D;bd.prototype.set=bd.prototype.set;bd.prototype.setProperties=bd.prototype.t;bd.prototype.unset=bd.prototype.I;bd.prototype.changed=bd.prototype.k;bd.prototype.getRevision=bd.prototype.v;bd.prototype.on=bd.prototype.r;bd.prototype.once=bd.prototype.A;bd.prototype.un=bd.prototype.u;bd.prototype.unByKey=bd.prototype.B;pc.prototype.getActive=
pc.prototype.c;pc.prototype.setActive=pc.prototype.d;pc.prototype.get=pc.prototype.get;pc.prototype.getKeys=pc.prototype.C;pc.prototype.getProperties=pc.prototype.D;pc.prototype.set=pc.prototype.set;pc.prototype.setProperties=pc.prototype.t;pc.prototype.unset=pc.prototype.I;pc.prototype.changed=pc.prototype.k;pc.prototype.getRevision=pc.prototype.v;pc.prototype.on=pc.prototype.r;pc.prototype.once=pc.prototype.A;pc.prototype.un=pc.prototype.u;pc.prototype.unByKey=pc.prototype.B;Ec.prototype.getActive=
Ec.prototype.c;Ec.prototype.setActive=Ec.prototype.d;Ec.prototype.get=Ec.prototype.get;Ec.prototype.getKeys=Ec.prototype.C;Ec.prototype.getProperties=Ec.prototype.D;Ec.prototype.set=Ec.prototype.set;Ec.prototype.setProperties=Ec.prototype.t;Ec.prototype.unset=Ec.prototype.I;Ec.prototype.changed=Ec.prototype.k;Ec.prototype.getRevision=Ec.prototype.v;Ec.prototype.on=Ec.prototype.r;Ec.prototype.once=Ec.prototype.A;Ec.prototype.un=Ec.prototype.u;Ec.prototype.unByKey=Ec.prototype.B;gc.prototype.get=gc.prototype.get;
gc.prototype.getKeys=gc.prototype.C;gc.prototype.getProperties=gc.prototype.D;gc.prototype.set=gc.prototype.set;gc.prototype.setProperties=gc.prototype.t;gc.prototype.unset=gc.prototype.I;gc.prototype.changed=gc.prototype.k;gc.prototype.getRevision=gc.prototype.v;gc.prototype.on=gc.prototype.r;gc.prototype.once=gc.prototype.A;gc.prototype.un=gc.prototype.u;gc.prototype.unByKey=gc.prototype.B;mb.prototype.getClosestPoint=mb.prototype.e;mb.prototype.getExtent=mb.prototype.G;mb.prototype.get=mb.prototype.get;
mb.prototype.getKeys=mb.prototype.C;mb.prototype.getProperties=mb.prototype.D;mb.prototype.set=mb.prototype.set;mb.prototype.setProperties=mb.prototype.t;mb.prototype.unset=mb.prototype.I;mb.prototype.changed=mb.prototype.k;mb.prototype.getRevision=mb.prototype.v;mb.prototype.on=mb.prototype.r;mb.prototype.once=mb.prototype.A;mb.prototype.un=mb.prototype.u;mb.prototype.unByKey=mb.prototype.B;hb.prototype.getFirstCoordinate=hb.prototype.ob;hb.prototype.getLastCoordinate=hb.prototype.pb;hb.prototype.getLayout=
hb.prototype.qb;hb.prototype.applyTransform=hb.prototype.qa;hb.prototype.translate=hb.prototype.Oa;hb.prototype.getClosestPoint=hb.prototype.e;hb.prototype.getExtent=hb.prototype.G;hb.prototype.get=hb.prototype.get;hb.prototype.getKeys=hb.prototype.C;hb.prototype.getProperties=hb.prototype.D;hb.prototype.set=hb.prototype.set;hb.prototype.setProperties=hb.prototype.t;hb.prototype.unset=hb.prototype.I;hb.prototype.changed=hb.prototype.k;hb.prototype.getRevision=hb.prototype.v;hb.prototype.on=hb.prototype.r;
hb.prototype.once=hb.prototype.A;hb.prototype.un=hb.prototype.u;hb.prototype.unByKey=hb.prototype.B;sb.prototype.getClosestPoint=sb.prototype.e;sb.prototype.getExtent=sb.prototype.G;sb.prototype.get=sb.prototype.get;sb.prototype.getKeys=sb.prototype.C;sb.prototype.getProperties=sb.prototype.D;sb.prototype.set=sb.prototype.set;sb.prototype.setProperties=sb.prototype.t;sb.prototype.unset=sb.prototype.I;sb.prototype.changed=sb.prototype.k;sb.prototype.getRevision=sb.prototype.v;sb.prototype.on=sb.prototype.r;
sb.prototype.once=sb.prototype.A;sb.prototype.un=sb.prototype.u;sb.prototype.unByKey=sb.prototype.B;lb.prototype.getFirstCoordinate=lb.prototype.ob;lb.prototype.getLastCoordinate=lb.prototype.pb;lb.prototype.getLayout=lb.prototype.qb;lb.prototype.applyTransform=lb.prototype.qa;lb.prototype.translate=lb.prototype.Oa;lb.prototype.getClosestPoint=lb.prototype.e;lb.prototype.getExtent=lb.prototype.G;lb.prototype.get=lb.prototype.get;lb.prototype.getKeys=lb.prototype.C;lb.prototype.getProperties=lb.prototype.D;
lb.prototype.set=lb.prototype.set;lb.prototype.setProperties=lb.prototype.t;lb.prototype.unset=lb.prototype.I;lb.prototype.changed=lb.prototype.k;lb.prototype.getRevision=lb.prototype.v;lb.prototype.on=lb.prototype.r;lb.prototype.once=lb.prototype.A;lb.prototype.un=lb.prototype.u;lb.prototype.unByKey=lb.prototype.B;Ha.prototype.getFirstCoordinate=Ha.prototype.ob;Ha.prototype.getLastCoordinate=Ha.prototype.pb;Ha.prototype.getLayout=Ha.prototype.qb;Ha.prototype.applyTransform=Ha.prototype.qa;Ha.prototype.translate=
Ha.prototype.Oa;Ha.prototype.getClosestPoint=Ha.prototype.e;Ha.prototype.getExtent=Ha.prototype.G;Ha.prototype.get=Ha.prototype.get;Ha.prototype.getKeys=Ha.prototype.C;Ha.prototype.getProperties=Ha.prototype.D;Ha.prototype.set=Ha.prototype.set;Ha.prototype.setProperties=Ha.prototype.t;Ha.prototype.unset=Ha.prototype.I;Ha.prototype.changed=Ha.prototype.k;Ha.prototype.getRevision=Ha.prototype.v;Ha.prototype.on=Ha.prototype.r;Ha.prototype.once=Ha.prototype.A;Ha.prototype.un=Ha.prototype.u;Ha.prototype.unByKey=
Ha.prototype.B;Qa.prototype.getFirstCoordinate=Qa.prototype.ob;Qa.prototype.getLastCoordinate=Qa.prototype.pb;Qa.prototype.getLayout=Qa.prototype.qb;Qa.prototype.applyTransform=Qa.prototype.qa;Qa.prototype.translate=Qa.prototype.Oa;Qa.prototype.getClosestPoint=Qa.prototype.e;Qa.prototype.getExtent=Qa.prototype.G;Qa.prototype.get=Qa.prototype.get;Qa.prototype.getKeys=Qa.prototype.C;Qa.prototype.getProperties=Qa.prototype.D;Qa.prototype.set=Qa.prototype.set;Qa.prototype.setProperties=Qa.prototype.t;
Qa.prototype.unset=Qa.prototype.I;Qa.prototype.changed=Qa.prototype.k;Qa.prototype.getRevision=Qa.prototype.v;Qa.prototype.on=Qa.prototype.r;Qa.prototype.once=Qa.prototype.A;Qa.prototype.un=Qa.prototype.u;Qa.prototype.unByKey=Qa.prototype.B;$a.prototype.getFirstCoordinate=$a.prototype.ob;$a.prototype.getLastCoordinate=$a.prototype.pb;$a.prototype.getLayout=$a.prototype.qb;$a.prototype.applyTransform=$a.prototype.qa;$a.prototype.translate=$a.prototype.Oa;$a.prototype.getClosestPoint=$a.prototype.e;
$a.prototype.getExtent=$a.prototype.G;$a.prototype.get=$a.prototype.get;$a.prototype.getKeys=$a.prototype.C;$a.prototype.getProperties=$a.prototype.D;$a.prototype.set=$a.prototype.set;$a.prototype.setProperties=$a.prototype.t;$a.prototype.unset=$a.prototype.I;$a.prototype.changed=$a.prototype.k;$a.prototype.getRevision=$a.prototype.v;$a.prototype.on=$a.prototype.r;$a.prototype.once=$a.prototype.A;$a.prototype.un=$a.prototype.u;$a.prototype.unByKey=$a.prototype.B;Ra.prototype.getFirstCoordinate=Ra.prototype.ob;
Ra.prototype.getLastCoordinate=Ra.prototype.pb;Ra.prototype.getLayout=Ra.prototype.qb;Ra.prototype.applyTransform=Ra.prototype.qa;Ra.prototype.translate=Ra.prototype.Oa;Ra.prototype.getClosestPoint=Ra.prototype.e;Ra.prototype.getExtent=Ra.prototype.G;Ra.prototype.get=Ra.prototype.get;Ra.prototype.getKeys=Ra.prototype.C;Ra.prototype.getProperties=Ra.prototype.D;Ra.prototype.set=Ra.prototype.set;Ra.prototype.setProperties=Ra.prototype.t;Ra.prototype.unset=Ra.prototype.I;Ra.prototype.changed=Ra.prototype.k;
Ra.prototype.getRevision=Ra.prototype.v;Ra.prototype.on=Ra.prototype.r;Ra.prototype.once=Ra.prototype.A;Ra.prototype.un=Ra.prototype.u;Ra.prototype.unByKey=Ra.prototype.B;Ta.prototype.getFirstCoordinate=Ta.prototype.ob;Ta.prototype.getLastCoordinate=Ta.prototype.pb;Ta.prototype.getLayout=Ta.prototype.qb;Ta.prototype.applyTransform=Ta.prototype.qa;Ta.prototype.translate=Ta.prototype.Oa;Ta.prototype.getClosestPoint=Ta.prototype.e;Ta.prototype.getExtent=Ta.prototype.G;Ta.prototype.get=Ta.prototype.get;
Ta.prototype.getKeys=Ta.prototype.C;Ta.prototype.getProperties=Ta.prototype.D;Ta.prototype.set=Ta.prototype.set;Ta.prototype.setProperties=Ta.prototype.t;Ta.prototype.unset=Ta.prototype.I;Ta.prototype.changed=Ta.prototype.k;Ta.prototype.getRevision=Ta.prototype.v;Ta.prototype.on=Ta.prototype.r;Ta.prototype.once=Ta.prototype.A;Ta.prototype.un=Ta.prototype.u;Ta.prototype.unByKey=Ta.prototype.B;Fa.prototype.getFirstCoordinate=Fa.prototype.ob;Fa.prototype.getLastCoordinate=Fa.prototype.pb;Fa.prototype.getLayout=
Fa.prototype.qb;Fa.prototype.applyTransform=Fa.prototype.qa;Fa.prototype.translate=Fa.prototype.Oa;Fa.prototype.getClosestPoint=Fa.prototype.e;Fa.prototype.getExtent=Fa.prototype.G;Fa.prototype.get=Fa.prototype.get;Fa.prototype.getKeys=Fa.prototype.C;Fa.prototype.getProperties=Fa.prototype.D;Fa.prototype.set=Fa.prototype.set;Fa.prototype.setProperties=Fa.prototype.t;Fa.prototype.unset=Fa.prototype.I;Fa.prototype.changed=Fa.prototype.k;Fa.prototype.getRevision=Fa.prototype.v;Fa.prototype.on=Fa.prototype.r;
Fa.prototype.once=Fa.prototype.A;Fa.prototype.un=Fa.prototype.u;Fa.prototype.unByKey=Fa.prototype.B;Zf.prototype.readFeatures=Zf.prototype.ja;Ya.prototype.readFeatures=Ya.prototype.ja;Ya.prototype.readFeatures=Ya.prototype.ja;qb.prototype.get=qb.prototype.get;qb.prototype.getKeys=qb.prototype.C;qb.prototype.getProperties=qb.prototype.D;qb.prototype.set=qb.prototype.set;qb.prototype.setProperties=qb.prototype.t;qb.prototype.unset=qb.prototype.I;qb.prototype.changed=qb.prototype.k;qb.prototype.getRevision=
qb.prototype.v;qb.prototype.on=qb.prototype.r;qb.prototype.once=qb.prototype.A;qb.prototype.un=qb.prototype.u;qb.prototype.unByKey=qb.prototype.B;bc.prototype.getMap=bc.prototype.e;bc.prototype.setMap=bc.prototype.setMap;bc.prototype.setTarget=bc.prototype.c;bc.prototype.get=bc.prototype.get;bc.prototype.getKeys=bc.prototype.C;bc.prototype.getProperties=bc.prototype.D;bc.prototype.set=bc.prototype.set;bc.prototype.setProperties=bc.prototype.t;bc.prototype.unset=bc.prototype.I;bc.prototype.changed=
bc.prototype.k;bc.prototype.getRevision=bc.prototype.v;bc.prototype.on=bc.prototype.r;bc.prototype.once=bc.prototype.A;bc.prototype.un=bc.prototype.u;bc.prototype.unByKey=bc.prototype.B;Kc.prototype.getMap=Kc.prototype.e;Kc.prototype.setMap=Kc.prototype.setMap;Kc.prototype.setTarget=Kc.prototype.c;Kc.prototype.get=Kc.prototype.get;Kc.prototype.getKeys=Kc.prototype.C;Kc.prototype.getProperties=Kc.prototype.D;Kc.prototype.set=Kc.prototype.set;Kc.prototype.setProperties=Kc.prototype.t;Kc.prototype.unset=
Kc.prototype.I;Kc.prototype.changed=Kc.prototype.k;Kc.prototype.getRevision=Kc.prototype.v;Kc.prototype.on=Kc.prototype.r;Kc.prototype.once=Kc.prototype.A;Kc.prototype.un=Kc.prototype.u;Kc.prototype.unByKey=Kc.prototype.B;cc.prototype.getMap=cc.prototype.e;cc.prototype.setTarget=cc.prototype.c;cc.prototype.get=cc.prototype.get;cc.prototype.getKeys=cc.prototype.C;cc.prototype.getProperties=cc.prototype.D;cc.prototype.set=cc.prototype.set;cc.prototype.setProperties=cc.prototype.t;cc.prototype.unset=
cc.prototype.I;cc.prototype.changed=cc.prototype.k;cc.prototype.getRevision=cc.prototype.v;cc.prototype.on=cc.prototype.r;cc.prototype.once=cc.prototype.A;cc.prototype.un=cc.prototype.u;cc.prototype.unByKey=cc.prototype.B;dc.prototype.getMap=dc.prototype.e;dc.prototype.setTarget=dc.prototype.c;dc.prototype.get=dc.prototype.get;dc.prototype.getKeys=dc.prototype.C;dc.prototype.getProperties=dc.prototype.D;dc.prototype.set=dc.prototype.set;dc.prototype.setProperties=dc.prototype.t;dc.prototype.unset=
dc.prototype.I;dc.prototype.changed=dc.prototype.k;dc.prototype.getRevision=dc.prototype.v;dc.prototype.on=dc.prototype.r;dc.prototype.once=dc.prototype.A;dc.prototype.un=dc.prototype.u;dc.prototype.unByKey=dc.prototype.B;Gc.prototype.getMap=Gc.prototype.e;Gc.prototype.setMap=Gc.prototype.setMap;Gc.prototype.setTarget=Gc.prototype.c;Gc.prototype.get=Gc.prototype.get;Gc.prototype.getKeys=Gc.prototype.C;Gc.prototype.getProperties=Gc.prototype.D;Gc.prototype.set=Gc.prototype.set;Gc.prototype.setProperties=
Gc.prototype.t;Gc.prototype.unset=Gc.prototype.I;Gc.prototype.changed=Gc.prototype.k;Gc.prototype.getRevision=Gc.prototype.v;Gc.prototype.on=Gc.prototype.r;Gc.prototype.once=Gc.prototype.A;Gc.prototype.un=Gc.prototype.u;Gc.prototype.unByKey=Gc.prototype.B;nc.prototype.getMap=nc.prototype.e;nc.prototype.setMap=nc.prototype.setMap;nc.prototype.setTarget=nc.prototype.c;nc.prototype.get=nc.prototype.get;nc.prototype.getKeys=nc.prototype.C;nc.prototype.getProperties=nc.prototype.D;nc.prototype.set=nc.prototype.set;
nc.prototype.setProperties=nc.prototype.t;nc.prototype.unset=nc.prototype.I;nc.prototype.changed=nc.prototype.k;nc.prototype.getRevision=nc.prototype.v;nc.prototype.on=nc.prototype.r;nc.prototype.once=nc.prototype.A;nc.prototype.un=nc.prototype.u;nc.prototype.unByKey=nc.prototype.B;Ac.prototype.getMap=Ac.prototype.e;Ac.prototype.setMap=Ac.prototype.setMap;Ac.prototype.setTarget=Ac.prototype.c;Ac.prototype.get=Ac.prototype.get;Ac.prototype.getKeys=Ac.prototype.C;Ac.prototype.getProperties=Ac.prototype.D;
Ac.prototype.set=Ac.prototype.set;Ac.prototype.setProperties=Ac.prototype.t;Ac.prototype.unset=Ac.prototype.I;Ac.prototype.changed=Ac.prototype.k;Ac.prototype.getRevision=Ac.prototype.v;Ac.prototype.on=Ac.prototype.r;Ac.prototype.once=Ac.prototype.A;Ac.prototype.un=Ac.prototype.u;Ac.prototype.unByKey=Ac.prototype.B;dd.prototype.getMap=dd.prototype.e;dd.prototype.setTarget=dd.prototype.c;dd.prototype.get=dd.prototype.get;dd.prototype.getKeys=dd.prototype.C;dd.prototype.getProperties=dd.prototype.D;
dd.prototype.set=dd.prototype.set;dd.prototype.setProperties=dd.prototype.t;dd.prototype.unset=dd.prototype.I;dd.prototype.changed=dd.prototype.k;dd.prototype.getRevision=dd.prototype.v;dd.prototype.on=dd.prototype.r;dd.prototype.once=dd.prototype.A;dd.prototype.un=dd.prototype.u;dd.prototype.unByKey=dd.prototype.B;Rc.prototype.getMap=Rc.prototype.e;Rc.prototype.setMap=Rc.prototype.setMap;Rc.prototype.setTarget=Rc.prototype.c;Rc.prototype.get=Rc.prototype.get;Rc.prototype.getKeys=Rc.prototype.C;Rc.prototype.getProperties=
Rc.prototype.D;Rc.prototype.set=Rc.prototype.set;Rc.prototype.setProperties=Rc.prototype.t;Rc.prototype.unset=Rc.prototype.I;Rc.prototype.changed=Rc.prototype.k;Rc.prototype.getRevision=Rc.prototype.v;Rc.prototype.on=Rc.prototype.r;Rc.prototype.once=Rc.prototype.A;Rc.prototype.un=Rc.prototype.u;Rc.prototype.unByKey=Rc.prototype.B;return ba.ol});
ol.layer.AnimatedCluster=function(g){g=g||{};ol.layer.Vector.call(this,g);this.oldcluster=new ol.source.Vector;this.clusters=[];this.animation={start:!1};this.set("animationDuration","number"==typeof g.animationDuration?g.animationDuration:700);this.set("animationMethod",g.animationMethod||ol.easing.easeOut);this.getSource().on("change",this.saveCluster,this);this.on("precompose",this.animate,this);this.on("postcompose",this.postanimate,this)};ol.inherits(ol.layer.AnimatedCluster,ol.layer.Vector);
ol.layer.AnimatedCluster.prototype.saveCluster=function(){this.oldcluster.clear();if(this.get("animationDuration")){var g=this.getSource().getFeatures();g.length&&g[0].get("features")&&(this.oldcluster.addFeatures(this.clusters),this.clusters=g.slice(0),this.sourceChanged=!0)}};ol.layer.AnimatedCluster.prototype.getClusterForFeature=function(g,p){for(var A=0;p[A];A++){var r=p[A].get("features");if(r&&r.length)for(var B=0,t;t=r[B];B++)if(g===t)return p[A]}return!1};
ol.layer.AnimatedCluster.prototype.stopAnimation=function(){this.animation.start=!1;this.animation.cA=[];this.animation.cB=[]};
ol.layer.AnimatedCluster.prototype.animate=function(g){var p=this.get("animationDuration");if(p){var A=g.frameState.viewState.resolution,r=this.animation,B=g.frameState.time;if(r.resolution!=A&&this.sourceChanged){B=g.frameState.extent;r.resolution<A?(B=ol.extent.buffer(B,100*A),r.cA=this.oldcluster.getFeaturesInExtent(B),r.cB=this.getSource().getFeaturesInExtent(B),r.revers=!1):(B=ol.extent.buffer(B,100*A),r.cA=this.getSource().getFeaturesInExtent(B),r.cB=this.oldcluster.getFeaturesInExtent(B),r.revers=
!0);r.clusters=[];B=0;for(var t;t=r.cA[B];B++){var H=t.get("features");if(H&&H.length){var E=this.getClusterForFeature(H[0],r.cB);E&&r.clusters.push({f:t,pt:E.getGeometry().getCoordinates()})}}r.resolution=A;this.sourceChanged=!1;if(!r.clusters.length||1E3<r.clusters.length){this.stopAnimation();return}B=r.start=(new Date).getTime()}if(r.start){t=g.vectorContext;p=(B-r.start)/p;1<p&&(this.stopAnimation(),p=1);p=this.get("animationMethod")(p);var D=this.getStyle();H="function"==typeof D?D:D.length?
function(){return D}:function(){return[D]};g.context.save();g.context.globalAlpha=this.getOpacity();var x=g.frameState.pixelRatio;for(B=0;E=r.clusters[B];B++){var v=E.f.getGeometry().getCoordinates();r.revers?(v[0]=E.pt[0]+p*(v[0]-E.pt[0]),v[1]=E.pt[1]+p*(v[1]-E.pt[1])):(v[0]+=p*(E.pt[0]-v[0]),v[1]+=p*(E.pt[1]-v[1]));E=H(E.f,A);v=new ol.geom.Point(v);for(var C=0;s=E[C];C++){var L=s.getImage();if(L){var Q=L.getScale();L.setScale(Q*x)}t.setStyle?(t.setStyle(s),t.drawGeometry(v)):(t.setImageStyle(L),
t.setTextStyle(s.getText()),t.drawPointGeometry(v));L&&L.setScale(Q)}}g.context.restore();g.frameState.animate=!0;g.context.save();g.context.beginPath();g.context.rect(0,0,0,0);g.context.clip();this.clip_=!0}}};ol.layer.AnimatedCluster.prototype.postanimate=function(g){this.clip_&&(g.context.restore(),this.clip_=!1)};
ol.interaction.SelectCluster=function(g){g=g||{};this.pointRadius=g.pointRadius||12;this.circleMaxObjects=g.circleMaxObjects||10;this.maxObjects=g.maxObjects||60;this.spiral=!1!==g.spiral;this.animate=g.animate;this.animationDuration=g.animationDuration||500;this.selectCluster_=!1!==g.selectCluster;var p=this.overlayLayer_=new ol.layer.Vector({source:new ol.source.Vector({features:new ol.Collection,useSpatialIndex:!0}),name:"Cluster overlay",updateWhileAnimating:!0,updateWhileInteracting:!0,displayInLayerSwitcher:!1,
style:g.featureStyle});if(g.layers)if("function"==typeof g.layers){var A=g.layers;g.layers=function(r){return r===p||A(r)}}else g.layers.push&&g.layers.push(this.overlayLayer_);g.filter?(A=g.filter,g.filter=function(r,B){return!B&&r.get("selectclusterlink")?!1:A(r,B)}):g.filter=function(r,B){return!B&&r.get("selectclusterlink")?!1:!0};this.filter_=g.filter;ol.interaction.Select.call(this,g);this.on("select",this.selectCluster,this)};ol.inherits(ol.interaction.SelectCluster,ol.interaction.Select);
ol.interaction.SelectCluster.prototype.setMap=function(g){ol.interaction.Select.prototype.setMap.call(this,g);this.map_&&this.map_.getView()&&g.getView().un("change:resolution",this.clear,this);this.map_&&this.map_.removeLayer(this.overlayLayer_);this.map_=g;this.overlayLayer_.setMap(g);if(g&&g.getView())g.getView().on("change:resolution",this.clear,this)};ol.interaction.SelectCluster.prototype.clear=function(){this.getFeatures().clear();this.overlayLayer_.getSource().clear()};
ol.interaction.SelectCluster.prototype.getLayer=function(){return this.overlayLayer_};
ol.interaction.SelectCluster.prototype.selectCluster=function(g){if(g.selected.length){var p=g.selected[0];if(!p.get("selectclusterfeature")){g=this.overlayLayer_.getSource();g.clear();var A=p.get("features");if(A&&1!=A.length){this.selectCluster_||this.getFeatures().clear();p=p.getGeometry().getCoordinates();var r=this.map_.getView().getResolution(),B=r*this.pointRadius*(.5+A.length/4);if(!this.spiral||A.length<=this.circleMaxObjects){var t=Math.min(A.length,this.circleMaxObjects);for(i=0;i<t;i++){var H=
2*Math.PI*i/t;if(2==t||4==t)H+=Math.PI/4;var E=[p[0]+B*Math.sin(H),p[1]+B*Math.cos(H)],D=new ol.Feature({selectclusterfeature:!0,features:[A[i]],geometry:new ol.geom.Point(E)});D.setStyle(A[i].getStyle());g.addFeature(D);E=new ol.Feature({selectclusterlink:!0,geometry:new ol.geom.LineString([p,E])});g.addFeature(E)}}else{H=0;var x=2*this.pointRadius;t=Math.min(this.maxObjects,A.length);for(i=0;i<t;i++)B=x/2+x*H/(2*Math.PI),H+=(x+.1)/B,E=[p[0]+r*B*Math.sin(H),p[1]+r*B*Math.cos(H)],D=new ol.Feature({selectclusterfeature:!0,
features:[A[i]],geometry:new ol.geom.Point(E)}),D.setStyle(A[i].getStyle()),g.addFeature(D),E=new ol.Feature({selectclusterlink:!0,geometry:new ol.geom.LineString([p,E])}),g.addFeature(E)}this.animate&&this.animateCluster_(p)}}}else this.clear()};
ol.interaction.SelectCluster.prototype.animateCluster_=function(g){this.listenerKey_&&(this.overlayLayer_.setVisible(!0),ol.Observable.unByKey(this.listenerKey_));var p=this.overlayLayer_.getSource().getFeatures();if(p.length){this.overlayLayer_.setVisible(!1);var A=this.overlayLayer_.getStyle(),r="function"==typeof A?A:A.length?function(){return A}:function(){return[A]},B=this.animationDuration||500,t=(new Date).getTime();this.listenerKey_=this.map_.on("postcompose",function(H){for(var E=H.vectorContext,
D=H.frameState.pixelRatio,x=H.target.getView().getResolution(),v=ol.easing.easeOut((H.frameState.time-t)/B),C=0,L;L=p[C];C++)if(L.get("features")){var Q=L.getGeometry().getCoordinates();Q[0]=g[0]+v*(Q[0]-g[0]);Q[1]=g[1]+v*(Q[1]-g[1]);Q=new ol.geom.Point(Q);L=r(L,x);for(var J=0;J<L.length;J++){var X=L[J].getImage();if(X){var I=X.getScale();X.setScale(D)}E.setStyle?(E.setStyle(L[J]),E.drawGeometry(Q)):(E.setImageStyle(X),E.drawPointGeometry(Q));X&&X.setScale(I)}}1<v?(ol.Observable.unByKey(this.listenerKey_),
this.overlayLayer_.setVisible(!0),this.overlayLayer_.changed()):H.frameState.animate=!0},this)}};
!function(g){if("object"==typeof exports)module.exports=g();else if("function"==typeof define&&define.amd)define(g);else{var p;"undefined"!=typeof window?p=window:"undefined"!=typeof global?p=global:"undefined"!=typeof self&&(p=self);p.proj4=g()}}(function(){return function B(p,A,r){function t(D,x){if(!A[D]){if(!p[D]){var v="function"==typeof require&&require;if(!x&&v)return v(D,!0);if(H)return H(D,!0);throw Error("Cannot find module '"+D+"'");}x=A[D]={exports:{}};p[D][0].call(x.exports,function(C){var L=
p[D][1][C];return t(L?L:C)},x,x.exports,B,p,A,r)}return A[D].exports}for(var H="function"==typeof require&&require,E=0;E<r.length;E++)t(r[E]);return t}({1:[function(p,A){function r(t,H,E){if(!(this instanceof r))return new r(t,H,E);Array.isArray(t)?(this.x=t[0],this.y=t[1],this.z=t[2]||0):"object"==typeof t?(this.x=t.x,this.y=t.y,this.z=t.z||0):"string"==typeof t&&"undefined"==typeof H?(t=t.split(","),this.x=parseFloat(t[0],10),this.y=parseFloat(t[1],10),this.z=parseFloat(t[2],10)||0):(this.x=t,this.y=
H,this.z=E||0);console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}var B=p("mgrs");r.fromMGRS=function(t){return new r(B.toPoint(t))};r.prototype.toMGRS=function(t){return B.forward([this.x,this.y],t)};A.exports=r},{mgrs:66}],2:[function(p,A){function r(D,x){if(!(this instanceof r))return new r(D);x=x||function(L){if(L)throw L;};var v=B(D);if("object"!=typeof v)return void x(D);v=E(v);var C=r.projections.get(v.projName);C?(t(this,v),t(this,C),this.init(),x(null,this)):x(D)}
var B=p("./parseCode"),t=p("./extend"),H=p("./projections"),E=p("./deriveConstants");r.projections=H;r.projections.start();A.exports=r},{"./deriveConstants":32,"./extend":33,"./parseCode":36,"./projections":38}],3:[function(p,A){A.exports=function(r,B,t){var H,E,D,x=t.x,v=t.y,C=t.z||0;for(D=0;3>D;D++)if(!B||2!==D||void 0!==t.z)switch(0===D?(H=x,E="x"):1===D?(H=v,E="y"):(H=C,E="z"),r.axis[D]){case "e":t[E]=H;break;case "w":t[E]=-H;break;case "n":t[E]=H;break;case "s":t[E]=-H;break;case "u":void 0!==
t[E]&&(t.z=H);break;case "d":void 0!==t[E]&&(t.z=-H);break;default:return null}return t}},{}],4:[function(p,A){var r=Math.PI/2,B=p("./sign");A.exports=function(t){return Math.abs(t)<r?t:t-B(t)*Math.PI}},{"./sign":21}],5:[function(p,A){var r=2*Math.PI,B=p("./sign");A.exports=function(t){return Math.abs(t)<Math.PI?t:t-B(t)*r}},{"./sign":21}],6:[function(p,A){A.exports=function(r){return 1<Math.abs(r)&&(r=1<r?1:-1),Math.asin(r)}},{}],7:[function(p,A){A.exports=function(r){return 1-.25*r*(1+r/16*(3+1.25*
r))}},{}],8:[function(p,A){A.exports=function(r){return.375*r*(1+.25*r*(1+.46875*r))}},{}],9:[function(p,A){A.exports=function(r){return.05859375*r*r*(1+.75*r)}},{}],10:[function(p,A){A.exports=function(r){return 35/3072*r*r*r}},{}],11:[function(p,A){A.exports=function(r,B,t){B*=t;return r/Math.sqrt(1-B*B)}},{}],12:[function(p,A){A.exports=function(r,B,t,H,E){var D;var x=r/B;for(var v=0;15>v;v++)if(D=(r-(B*x-t*Math.sin(2*x)+H*Math.sin(4*x)-E*Math.sin(6*x)))/(B-2*t*Math.cos(2*x)+4*H*Math.cos(4*x)-
6*E*Math.cos(6*x)),x+=D,1E-10>=Math.abs(D))return x;return 0/0}},{}],13:[function(p,A){var r=Math.PI/2;A.exports=function(B,t){if(1E-6>Math.abs(Math.abs(t)-(1-(1-B*B)/(2*B)*Math.log((1-B)/(1+B)))))return 0>t?-1*r:r;for(var H,E,D,x,v=Math.asin(.5*t),C=0;30>C;C++)if(E=Math.sin(v),D=Math.cos(v),x=B*E,H=Math.pow(1-x*x,2)/(2*D)*(t/(1-B*B)-E/(1-x*x)+.5/B*Math.log((1-x)/(1+x))),v+=H,1E-10>=Math.abs(H))return v;return 0/0}},{}],14:[function(p,A){A.exports=function(r,B,t,H,E){return r*E-B*Math.sin(2*E)+t*
Math.sin(4*E)-H*Math.sin(6*E)}},{}],15:[function(p,A){A.exports=function(r,B,t){r*=B;return t/Math.sqrt(1-r*r)}},{}],16:[function(p,A){var r=Math.PI/2;A.exports=function(B,t){for(var H,E,D=.5*B,x=r-2*Math.atan(t),v=0;15>=v;v++)if(H=B*Math.sin(x),E=r-2*Math.atan(t*Math.pow((1-H)/(1+H),D))-x,x+=E,1E-10>=Math.abs(E))return x;return-9999}},{}],17:[function(p,A){A.exports=function(r){var B=[];B[0]=1-r*(.25+r*(.046875+r*(.01953125+.01068115234375*r)));B[1]=r*(.75-r*(.046875+r*(.01953125+.01068115234375*
r)));var t=r*r;return B[2]=t*(.46875-r*(.013020833333333334+.007120768229166667*r)),t*=r,B[3]=t*(.3645833333333333-.005696614583333333*r),B[4]=t*r*.3076171875,B}},{}],18:[function(p,A){var r=p("./pj_mlfn");A.exports=function(B,t,H){for(var E=1/(1-t),D=B,x=20;x;--x){var v=Math.sin(D),C=1-t*v*v;if(C=(r(D,v,Math.cos(D),H)-B)*C*Math.sqrt(C)*E,D-=C,1E-10>Math.abs(C))break}return D}},{"./pj_mlfn":19}],19:[function(p,A){A.exports=function(r,B,t,H){return t*=B,B*=B,H[0]*r-t*(H[1]+B*(H[2]+B*(H[3]+B*H[4])))}},
{}],20:[function(p,A){A.exports=function(r,B){var t;return 1E-7<r?(t=r*B,(1-r*r)*(B/(1-t*t)-.5/r*Math.log((1-t)/(1+t)))):2*B}},{}],21:[function(p,A){A.exports=function(r){return 0>r?-1:1}},{}],22:[function(p,A){A.exports=function(r,B){return Math.pow((1-r)/(1+r),B)}},{}],23:[function(p,A){A.exports=function(r){var B={x:r[0],y:r[1]};return 2<r.length&&(B.z=r[2]),3<r.length&&(B.m=r[3]),B}},{}],24:[function(p,A){var r=Math.PI/2;A.exports=function(B,t,H){H*=B;return H=Math.pow((1-H)/(1+H),.5*B),Math.tan(.5*
(r-t))/H}},{}],25:[function(p,A,r){r.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"};r.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"};r.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"};r.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"};r.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"};r.potsdam={towgs84:"606.0,23.0,413.0",
ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"};r.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"};r.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"};r.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"};r.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"};r.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",
ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"};r.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"};r.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"};r.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"};r.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"};r.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",
datumName:"Reseau National Belge 1972"}},{}],26:[function(p,A,r){r.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};r.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};r.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};r.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};r.airy={a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"};r.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};r.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};
r.mod_airy={a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"};r.andrae={a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};r.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl \x26 S. Amer. 1969"};r.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};r.bessel={a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"};r.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};r.clrk66={a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"};r.clrk80=
{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."};r.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"};r.CPM={a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};r.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};r.engelis={a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"};r.evrst30={a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"};r.evrst48={a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"};r.evrst56={a:6377301.243,rf:300.8017,
ellipseName:"Everest 1956"};r.evrst69={a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"};r.evrstSS={a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah \x26 Sarawak)"};r.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};r.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};r.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};r.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};r.hough={a:6378270,rf:297,ellipseName:"Hough"};r.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};
r.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};r.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};r.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};r.new_intl={a:6378157.5,b:6356772.2,ellipseName:"New International 1967"};r.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};r.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};r.SEasia={a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"};r.walbeck={a:6376896,b:6355834.8467,ellipseName:"Walbeck"};r.WGS60=
{a:6378165,rf:298.3,ellipseName:"WGS 60"};r.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};r.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};r.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};r.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r\x3d6370997)"}},{}],27:[function(p,A,r){r.greenwich=0;r.lisbon=-9.131906111111;r.paris=2.337229166667;r.bogota=-74.080916666667;r.madrid=-3.687938888889;r.rome=12.452333333333;r.bern=7.439583333333;r.jakarta=106.807719444444;r.ferro=-17.666666666667;
r.brussels=4.367975;r.stockholm=18.058277777778;r.athens=23.7163375;r.oslo=10.722916666667},{}],28:[function(p,A){function r(D,x,v){var C;return Array.isArray(v)?(C=H(D,x,v),3===v.length?[C.x,C.y,C.z]:[C.x,C.y]):H(D,x,v)}function B(D){return D instanceof t?D:D.oProj?D.oProj:t(D)}var t=p("./Proj"),H=p("./transform"),E=t("WGS84");A.exports=function(D,x,v){D=B(D);var C,L=!1;return"undefined"==typeof x?(x=D,D=E,L=!0):("undefined"!=typeof x.x||Array.isArray(x))&&(v=x,x=D,D=E,L=!0),x=B(x),v?r(D,x,v):(C=
{forward:function(Q){return r(D,x,Q)},inverse:function(Q){return r(x,D,Q)}},L&&(C.oProj=x),C)}},{"./Proj":2,"./transform":64}],29:[function(p,A){var r=Math.PI/2,B=function(t){if(!(this instanceof B))return new B(t);if(this.datum_type=4,t){if(t.datumCode&&"none"===t.datumCode&&(this.datum_type=5),t.datum_params){for(var H=0;H<t.datum_params.length;H++)t.datum_params[H]=parseFloat(t.datum_params[H]);0===t.datum_params[0]&&0===t.datum_params[1]&&0===t.datum_params[2]||(this.datum_type=1);3<t.datum_params.length&&
(0!==t.datum_params[3]||0!==t.datum_params[4]||0!==t.datum_params[5]||0!==t.datum_params[6])&&(this.datum_type=2,t.datum_params[3]*=4.84813681109536E-6,t.datum_params[4]*=4.84813681109536E-6,t.datum_params[5]*=4.84813681109536E-6,t.datum_params[6]=t.datum_params[6]/1E6+1)}this.datum_type=t.grids?3:this.datum_type;this.a=t.a;this.b=t.b;this.es=t.es;this.ep2=t.ep2;this.datum_params=t.datum_params;3===this.datum_type&&(this.grids=t.grids)}};B.prototype={compare_datums:function(t){return this.datum_type!==
t.datum_type?!1:this.a!==t.a||5E-11<Math.abs(this.es-t.es)?!1:1===this.datum_type?this.datum_params[0]===t.datum_params[0]&&this.datum_params[1]===t.datum_params[1]&&this.datum_params[2]===t.datum_params[2]:2===this.datum_type?this.datum_params[0]===t.datum_params[0]&&this.datum_params[1]===t.datum_params[1]&&this.datum_params[2]===t.datum_params[2]&&this.datum_params[3]===t.datum_params[3]&&this.datum_params[4]===t.datum_params[4]&&this.datum_params[5]===t.datum_params[5]&&this.datum_params[6]===
t.datum_params[6]:3===this.datum_type||3===t.datum_type?this.nadgrids===t.nadgrids:!0},geodetic_to_geocentric:function(t){var H,E,D,x,v,C,L,Q=t.x,J=t.y,X=t.z?t.z:0;if(-r>J&&J>-1.001*r)J=-r;else if(J>r&&1.001*r>J)J=r;else if(-r>J||J>r)return null;return Q>Math.PI&&(Q-=2*Math.PI),v=Math.sin(J),L=Math.cos(J),C=v*v,x=this.a/Math.sqrt(1-this.es*C),H=(x+X)*L*Math.cos(Q),E=(x+X)*L*Math.sin(Q),D=(x*(1-this.es)+X)*v,t.x=H,t.y=E,t.z=D,0},geocentric_to_geodetic:function(t){var H,E,D;var x=t.x;var v=t.y;var C=
t.z?t.z:0;if(H=Math.sqrt(x*x+v*v),E=Math.sqrt(x*x+v*v+C*C),1E-12>H/this.a){if(v=0,1E-12>E/this.a)return}else v=Math.atan2(v,x);x=C/E;E=H/E;var L=1/Math.sqrt(1-this.es*(2-this.es)*E*E);var Q=E*(1-this.es)*L;var J=x*L;var X=0;do{X++;var I=this.a/Math.sqrt(1-this.es*J*J);var ka=H*Q+C*J-I*(1-this.es*J*J);I=this.es*I/(I+ka);L=1/Math.sqrt(1-I*(2-I)*E*E);I=E*(1-I)*L;L*=x;var ua=L*Q-I*J;Q=I;J=L}while(1E-24<ua*ua&&30>X);return D=Math.atan(L/Math.abs(I)),t.x=v,t.y=D,t.z=ka,t},geocentric_to_geodetic_noniter:function(t){var H,
E,D,x,v,C,L,Q,J,X,I,ka,ua,ra,Za,Na=t.x,Mb=t.y,fb=t.z?t.z:0;if(Na=parseFloat(Na),Mb=parseFloat(Mb),fb=parseFloat(fb),Za=!1,0!==Na)var Nb=Math.atan2(Mb,Na);else if(0<Mb)Nb=r;else if(0>Mb)Nb=-r;else if(Za=!0,Nb=0,0<fb)var Oa=r;else{if(!(0>fb))return;Oa=-r}return D=Na*Na+Mb*Mb,E=Math.sqrt(D),x=1.0026*fb,C=Math.sqrt(x*x+D),Q=x/C,X=E/C,J=Q*Q*Q,v=fb+this.b*this.ep2*J,ra=E-this.a*this.es*X*X*X,L=Math.sqrt(v*v+ra*ra),I=v/L,ka=ra/L,ua=this.a/Math.sqrt(1-this.es*I*I),H=.3826834323650898<=ka?E/ka-ua:-.3826834323650898>=
ka?E/-ka-ua:fb/I+ua*(this.es-1),!1===Za&&(Oa=Math.atan(I/ka)),t.x=Nb,t.y=Oa,t.z=H,t},geocentric_to_wgs84:function(t){if(1===this.datum_type)t.x+=this.datum_params[0],t.y+=this.datum_params[1],t.z+=this.datum_params[2];else if(2===this.datum_type){var H=this.datum_params[3],E=this.datum_params[4],D=this.datum_params[5],x=this.datum_params[6],v=x*(D*t.x+t.y-H*t.z)+this.datum_params[1];H=x*(-E*t.x+H*t.y+t.z)+this.datum_params[2];t.x=x*(t.x-D*t.y+E*t.z)+this.datum_params[0];t.y=v;t.z=H}},geocentric_from_wgs84:function(t){if(1===
this.datum_type)t.x-=this.datum_params[0],t.y-=this.datum_params[1],t.z-=this.datum_params[2];else if(2===this.datum_type){var H=this.datum_params[3],E=this.datum_params[4],D=this.datum_params[5],x=this.datum_params[6],v=(t.x-this.datum_params[0])/x,C=(t.y-this.datum_params[1])/x;x=(t.z-this.datum_params[2])/x;t.x=v+D*C-E*x;t.y=-D*v+C+H*x;t.z=E*v-H*C+x}}};A.exports=B},{}],30:[function(p,A){A.exports=function(r,B,t){function H(J){return 1===J||2===J}var E;if(r.compare_datums(B)||5===r.datum_type||
5===B.datum_type)return t;var D=r.a,x=r.es,v=B.a,C=B.es;var L=r.datum_type;if(3===L)if(0===this.apply_gridshift(r,0,t))r.a=6378137,r.es=.006694379990141316;else{if(!r.datum_params)return r.a=D,r.es=r.es,t;L=1;var Q=0;for(E=r.datum_params.length;E>Q;Q++)L*=r.datum_params[Q];if(0===L)return r.a=D,r.es=r.es,t;L=3<r.datum_params.length?2:1}return 3===B.datum_type&&(B.a=6378137,B.es=.006694379990141316),(r.es!==B.es||r.a!==B.a||H(L)||H(B.datum_type))&&(r.geodetic_to_geocentric(t),H(r.datum_type)&&r.geocentric_to_wgs84(t),
H(B.datum_type)&&B.geocentric_from_wgs84(t),B.geocentric_to_geodetic(t)),3===B.datum_type&&this.apply_gridshift(B,1,t),r.a=D,r.es=x,B.a=v,B.es=C,t}},{}],31:[function(p,A){function r(E){var D=this;if(2===arguments.length){var x=arguments[1];r[E]="string"==typeof x?"+"===x[0]?t(arguments[1]):H(arguments[1]):x}else if(1===arguments.length){if(Array.isArray(E))return E.map(function(v){Array.isArray(v)?r.apply(D,v):r(v)});if("string"==typeof E){if(E in r)return r[E]}else"EPSG"in E?r["EPSG:"+E.EPSG]=E:
"ESRI"in E?r["ESRI:"+E.ESRI]=E:"IAU2000"in E?r["IAU2000:"+E.IAU2000]=E:console.log(E)}}var B=p("./global"),t=p("./projString"),H=p("./wkt");B(r);A.exports=r},{"./global":34,"./projString":37,"./wkt":65}],32:[function(p,A){var r=p("./constants/Datum"),B=p("./constants/Ellipsoid"),t=p("./extend"),H=p("./datum");A.exports=function(E){if(E.datumCode&&"none"!==E.datumCode){var D=r[E.datumCode];D&&(E.datum_params=D.towgs84?D.towgs84.split(","):null,E.ellps=D.ellipse,E.datumName=D.datumName?D.datumName:
E.datumCode)}E.a||t(E,B[E.ellps]?B[E.ellps]:B.WGS84);return E.rf&&!E.b&&(E.b=(1-1/E.rf)*E.a),(0===E.rf||1E-10>Math.abs(E.a-E.b))&&(E.sphere=!0,E.b=E.a),E.a2=E.a*E.a,E.b2=E.b*E.b,E.es=(E.a2-E.b2)/E.a2,E.e=Math.sqrt(E.es),E.R_A&&(E.a*=1-E.es*(.16666666666666666+E.es*(.04722222222222222+.022156084656084655*E.es)),E.a2=E.a*E.a,E.b2=E.b*E.b,E.es=0),E.ep2=(E.a2-E.b2)/E.b2,E.k0||(E.k0=1),E.axis||(E.axis="enu"),E.datum=H(E),E}},{"./constants/Datum":25,"./constants/Ellipsoid":26,"./datum":29,"./extend":33}],
33:[function(p,A){A.exports=function(r,B){r=r||{};var t;if(!B)return r;for(t in B){var H=B[t];void 0!==H&&(r[t]=H)}return r}},{}],34:[function(p,A){A.exports=function(r){r("EPSG:4326","+title\x3dWGS 84 (long/lat) +proj\x3dlonglat +ellps\x3dWGS84 +datum\x3dWGS84 +units\x3ddegrees");r("EPSG:4269","+title\x3dNAD83 (long/lat) +proj\x3dlonglat +a\x3d6378137.0 +b\x3d6356752.31414036 +ellps\x3dGRS80 +datum\x3dNAD83 +units\x3ddegrees");r("EPSG:3857","+title\x3dWGS 84 / Pseudo-Mercator +proj\x3dmerc +a\x3d6378137 +b\x3d6378137 +lat_ts\x3d0.0 +lon_0\x3d0.0 +x_0\x3d0.0 +y_0\x3d0 +k\x3d1.0 +units\x3dm +nadgrids\x3d@null +no_defs");
r.WGS84=r["EPSG:4326"];r["EPSG:3785"]=r["EPSG:3857"];r.GOOGLE=r["EPSG:3857"];r["EPSG:900913"]=r["EPSG:3857"];r["EPSG:102113"]=r["EPSG:3857"]}},{}],35:[function(p,A){var r=p("./core");r.defaultDatum="WGS84";r.Proj=p("./Proj");r.WGS84=new r.Proj("WGS84");r.Point=p("./Point");r.toPoint=p("./common/toPoint");r.defs=p("./defs");r.transform=p("./transform");r.mgrs=p("mgrs");r.version=p("../package.json").version;p("./includedProjections")(r);A.exports=r},{"../package.json":67,"./Point":1,"./Proj":2,"./common/toPoint":23,
"./core":28,"./defs":31,"./includedProjections":"gWUPNW","./transform":64,mgrs:66}],36:[function(p,A){function r(E){return["GEOGCS","GEOCCS","PROJCS","LOCAL_CS"].reduce(function(D,x){return D+1+E.indexOf(x)},0)}var B=p("./defs"),t=p("./wkt"),H=p("./projString");A.exports=function(E){return"string"==typeof E?E in B?B[E]:r(E)?t(E):"+"===E[0]?H(E):void 0:E}},{"./defs":31,"./projString":37,"./wkt":65}],37:[function(p,A){var r=p("./constants/PrimeMeridian");A.exports=function(B){var t={},H={};B.split("+").map(function(v){return v.trim()}).filter(function(v){return v}).forEach(function(v){v=
v.split("\x3d");v.push(!0);H[v[0].toLowerCase()]=v[1]});var E,D,x={proj:"projName",datum:"datumCode",rf:function(v){t.rf=parseFloat(v,10)},lat_0:function(v){t.lat0=.017453292519943295*v},lat_1:function(v){t.lat1=.017453292519943295*v},lat_2:function(v){t.lat2=.017453292519943295*v},lat_ts:function(v){t.lat_ts=.017453292519943295*v},lon_0:function(v){t.long0=.017453292519943295*v},lon_1:function(v){t.long1=.017453292519943295*v},lon_2:function(v){t.long2=.017453292519943295*v},alpha:function(v){t.alpha=
.017453292519943295*parseFloat(v)},lonc:function(v){t.longc=.017453292519943295*v},x_0:function(v){t.x0=parseFloat(v,10)},y_0:function(v){t.y0=parseFloat(v,10)},k_0:function(v){t.k0=parseFloat(v,10)},k:function(v){t.k0=parseFloat(v,10)},r_a:function(){t.R_A=!0},zone:function(v){t.zone=parseInt(v,10)},south:function(){t.utmSouth=!0},towgs84:function(v){t.datum_params=v.split(",").map(function(C){return parseFloat(C,10)})},to_meter:function(v){t.to_meter=parseFloat(v,10)},from_greenwich:function(v){t.from_greenwich=
.017453292519943295*v},pm:function(v){t.from_greenwich=.017453292519943295*(r[v]?r[v]:parseFloat(v,10))},nadgrids:function(v){"@null"===v?t.datumCode="none":t.nadgrids=v},axis:function(v){3===v.length&&-1!=="ewnsud".indexOf(v.substr(0,1))&&-1!=="ewnsud".indexOf(v.substr(1,1))&&-1!=="ewnsud".indexOf(v.substr(2,1))&&(t.axis=v)}};for(E in H)B=H[E],E in x?(D=x[E],"function"==typeof D?D(B):t[D]=B):t[E]=B;return"string"==typeof t.datumCode&&"WGS84"!==t.datumCode&&(t.datumCode=t.datumCode.toLowerCase()),
t}},{"./constants/PrimeMeridian":27}],38:[function(p,A,r){function B(D,x){var v=E.length;return D.names?(E[v]=D,D.names.forEach(function(C){H[C.toLowerCase()]=v}),this):(console.log(x),!0)}var t=[p("./projections/merc"),p("./projections/longlat")],H={},E=[];r.add=B;r.get=function(D){if(!D)return!1;D=D.toLowerCase();return"undefined"!=typeof H[D]&&E[H[D]]?E[H[D]]:void 0};r.start=function(){t.forEach(B)}},{"./projections/longlat":50,"./projections/merc":51}],39:[function(p,A,r){var B=p("../common/msfnz"),
t=p("../common/qsfnz"),H=p("../common/adjust_lon"),E=p("../common/asinz");r.init=function(){1E-10>Math.abs(this.lat1+this.lat2)||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=B(this.e3,this.sin_po,this.cos_po),this.qs1=t(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=B(this.e3,
this.sin_po,this.cos_po),this.qs2=t(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=t(this.e3,this.sin_po,this.cos_po),this.ns0=1E-10<Math.abs(this.lat1-this.lat2)?(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)};r.forward=function(D){var x=D.x,v=D.y;this.sin_phi=Math.sin(v);this.cos_phi=Math.cos(v);
v=t(this.e3,this.sin_phi,this.cos_phi);v=this.a*Math.sqrt(this.c-this.ns0*v)/this.ns0;x=this.ns0*H(x-this.long0);var C=this.rh-v*Math.cos(x)+this.y0;return D.x=v*Math.sin(x)+this.x0,D.y=C,D};r.inverse=function(D){var x,v,C,L,Q,J;return D.x-=this.x0,D.y=this.rh-D.y+this.y0,0<=this.ns0?(x=Math.sqrt(D.x*D.x+D.y*D.y),C=1):(x=-Math.sqrt(D.x*D.x+D.y*D.y),C=-1),L=0,0!==x&&(L=Math.atan2(C*D.x,C*D.y)),C=x*this.ns0/this.a,this.sphere?J=Math.asin((this.c-C*C)/(2*this.ns0)):(v=(this.c-C*C)/this.ns0,J=this.phi1z(this.e3,
v)),Q=H(L/this.ns0+this.long0),D.x=Q,D.y=J,D};r.phi1z=function(D,x){var v,C,L,Q,J,X=E(.5*x);if(1E-10>D)return X;for(var I=D*D,ka=1;25>=ka;ka++)if(v=Math.sin(X),C=Math.cos(X),L=D*v,Q=1-L*L,J=.5*Q*Q/C*(x/(1-I)-v/Q+.5/D*Math.log((1-L)/(1+L))),X+=J,1E-7>=Math.abs(J))return X;return null};r.names=["Albers_Conic_Equal_Area","Albers","aea"]},{"../common/adjust_lon":5,"../common/asinz":6,"../common/msfnz":15,"../common/qsfnz":20}],40:[function(p,A,r){var B=p("../common/adjust_lon"),t=Math.PI/2,H=p("../common/mlfn"),
E=p("../common/e0fn"),D=p("../common/e1fn"),x=p("../common/e2fn"),v=p("../common/e3fn"),C=p("../common/gN"),L=p("../common/asinz"),Q=p("../common/imlfn");r.init=function(){this.sin_p12=Math.sin(this.lat0);this.cos_p12=Math.cos(this.lat0)};r.forward=function(J){var X,I,ka,ua,ra,Za,Na,Mb,fb,Nb,Oa,ke,Jc,pf,Ud,ce,Nc,Ee,td,Pe,Tb,de,Qe,Bd=J.y,rd=Math.sin(J.y),bf=Math.cos(J.y),ha=B(J.x-this.long0);return this.sphere?1E-10>=Math.abs(this.sin_p12-1)?(J.x=this.x0+this.a*(t-Bd)*Math.sin(ha),J.y=this.y0-this.a*
(t-Bd)*Math.cos(ha),J):1E-10>=Math.abs(this.sin_p12+1)?(J.x=this.x0+this.a*(t+Bd)*Math.sin(ha),J.y=this.y0+this.a*(t+Bd)*Math.cos(ha),J):(Ee=this.sin_p12*rd+this.cos_p12*bf*Math.cos(ha),ce=Math.acos(Ee),Nc=ce/Math.sin(ce),J.x=this.x0+this.a*Nc*bf*Math.sin(ha),J.y=this.y0+this.a*Nc*(this.cos_p12*rd-this.sin_p12*bf*Math.cos(ha)),J):(X=E(this.es),I=D(this.es),ka=x(this.es),ua=v(this.es),1E-10>=Math.abs(this.sin_p12-1)?(ra=this.a*H(X,I,ka,ua,t),Za=this.a*H(X,I,ka,ua,Bd),J.x=this.x0+(ra-Za)*Math.sin(ha),
J.y=this.y0-(ra-Za)*Math.cos(ha),J):1E-10>=Math.abs(this.sin_p12+1)?(ra=this.a*H(X,I,ka,ua,t),Za=this.a*H(X,I,ka,ua,Bd),J.x=this.x0+(ra+Za)*Math.sin(ha),J.y=this.y0+(ra+Za)*Math.cos(ha),J):(Na=rd/bf,Mb=C(this.a,this.e,this.sin_p12),fb=C(this.a,this.e,rd),Nb=Math.atan((1-this.es)*Na+this.es*Mb*this.sin_p12/(fb*bf)),Oa=Math.atan2(Math.sin(ha),this.cos_p12*Math.tan(Nb)-this.sin_p12*Math.cos(ha)),td=0===Oa?Math.asin(this.cos_p12*Math.sin(Nb)-this.sin_p12*Math.cos(Nb)):1E-10>=Math.abs(Math.abs(Oa)-Math.PI)?
-Math.asin(this.cos_p12*Math.sin(Nb)-this.sin_p12*Math.cos(Nb)):Math.asin(Math.sin(ha)*Math.cos(Nb)/Math.sin(Oa)),ke=this.e*this.sin_p12/Math.sqrt(1-this.es),Jc=this.e*this.cos_p12*Math.cos(Oa)/Math.sqrt(1-this.es),pf=ke*Jc,Ud=Jc*Jc,Pe=td*td,Tb=Pe*td,de=Tb*td,Qe=de*td,ce=Mb*td*(1-Pe*Ud*(1-Ud)/6+Tb/8*pf*(1-2*Ud)+de/120*(Ud*(4-7*Ud)-3*ke*ke*(1-7*Ud))-Qe/48*pf),J.x=this.x0+ce*Math.sin(Oa),J.y=this.y0+ce*Math.cos(Oa),J))};r.inverse=function(J){J.x-=this.x0;J.y-=this.y0;var X,I,ka,ua,ra,Za,Na,Mb,fb,Nb,
Oa,ke,Jc,pf,Ud,ce,Nc,Ee,td,Pe,Tb,de,Qe;return this.sphere?(X=Math.sqrt(J.x*J.x+J.y*J.y),X>2*t*this.a)?void 0:(I=X/this.a,ka=Math.sin(I),ua=Math.cos(I),ra=this.long0,1E-10>=Math.abs(X)?Za=this.lat0:(Za=L(ua*this.sin_p12+J.y*ka*this.cos_p12/X),Na=Math.abs(this.lat0)-t,ra=B(1E-10>=Math.abs(Na)?0<=this.lat0?this.long0+Math.atan2(J.x,-J.y):this.long0-Math.atan2(-J.x,J.y):this.long0+Math.atan2(J.x*ka,X*this.cos_p12*ua-J.y*this.sin_p12*ka))),J.x=ra,J.y=Za,J):(Mb=E(this.es),fb=D(this.es),Nb=x(this.es),Oa=
v(this.es),1E-10>=Math.abs(this.sin_p12-1)?(ke=this.a*H(Mb,fb,Nb,Oa,t),X=Math.sqrt(J.x*J.x+J.y*J.y),Jc=ke-X,Za=Q(Jc/this.a,Mb,fb,Nb,Oa),ra=B(this.long0+Math.atan2(J.x,-1*J.y)),J.x=ra,J.y=Za,J):1E-10>=Math.abs(this.sin_p12+1)?(ke=this.a*H(Mb,fb,Nb,Oa,t),X=Math.sqrt(J.x*J.x+J.y*J.y),Jc=X-ke,Za=Q(Jc/this.a,Mb,fb,Nb,Oa),ra=B(this.long0+Math.atan2(J.x,J.y)),J.x=ra,J.y=Za,J):(X=Math.sqrt(J.x*J.x+J.y*J.y),ce=Math.atan2(J.x,J.y),pf=C(this.a,this.e,this.sin_p12),Nc=Math.cos(ce),Ee=this.e*this.cos_p12*Nc,td=
-Ee*Ee/(1-this.es),Pe=3*this.es*(1-td)*this.sin_p12*this.cos_p12*Nc/(1-this.es),Tb=X/pf,de=Tb-td*(1+td)*Math.pow(Tb,3)/6-Pe*(1+3*td)*Math.pow(Tb,4)/24,Qe=1-td*de*de/2-Tb*de*de*de/6,Ud=Math.asin(this.sin_p12*Math.cos(de)+this.cos_p12*Math.sin(de)*Nc),ra=B(this.long0+Math.asin(Math.sin(ce)*Math.sin(de)/Math.cos(Ud))),Za=Math.atan((1-this.es*Qe*this.sin_p12/Math.sin(Ud))*Math.tan(Ud)/(1-this.es)),J.x=ra,J.y=Za,J))};r.names=["Azimuthal_Equidistant","aeqd"]},{"../common/adjust_lon":5,"../common/asinz":6,
"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/gN":11,"../common/imlfn":12,"../common/mlfn":14}],41:[function(p,A,r){var B=p("../common/mlfn"),t=p("../common/e0fn"),H=p("../common/e1fn"),E=p("../common/e2fn"),D=p("../common/e3fn"),x=p("../common/gN"),v=p("../common/adjust_lon"),C=p("../common/adjust_lat"),L=p("../common/imlfn"),Q=Math.PI/2;r.init=function(){this.sphere||(this.e0=t(this.es),this.e1=H(this.es),this.e2=E(this.es),this.e3=D(this.es),this.ml0=this.a*
B(this.e0,this.e1,this.e2,this.e3,this.lat0))};r.forward=function(J){var X=J.x,I=J.y;if(X=v(X-this.long0),this.sphere){var ka=this.a*Math.asin(Math.cos(I)*Math.sin(X));var ua=this.a*(Math.atan2(Math.tan(I),Math.cos(X))-this.lat0)}else{ua=Math.sin(I);var ra=Math.cos(I),Za=x(this.a,this.e,ua),Na=Math.tan(I)*Math.tan(I);ka=X*Math.cos(I);X=ka*ka;var Mb=this.es*ra*ra/(1-this.es);I=this.a*B(this.e0,this.e1,this.e2,this.e3,I);ka=Za*ka*(1-X*Na*(1/6-(8-Na+8*Mb)*X/120));ua=I-this.ml0+Za*ua/ra*X*(.5+(5-Na+6*
Mb)*X/24)}return J.x=ka+this.x0,J.y=ua+this.y0,J};r.inverse=function(J){J.x-=this.x0;J.y-=this.y0;var X=J.x/this.a;var I=J.y/this.a;if(this.sphere){var ka=I+this.lat0;I=Math.asin(Math.sin(ka)*Math.cos(X));ka=Math.atan2(Math.tan(X),Math.cos(ka))}else{ka=L(this.ml0/this.a+I,this.e0,this.e1,this.e2,this.e3);if(1E-10>=Math.abs(Math.abs(ka)-Q))return J.x=this.long0,J.y=Q,0>I&&(J.y*=-1),J;I=x(this.a,this.e,Math.sin(ka));var ua=Math.pow(Math.tan(ka),2);X=X*this.a/I;var ra=X*X;I=ka-I*Math.tan(ka)/(I*I*I/
this.a/this.a*(1-this.es))*X*X*(.5-(1+3*ua)*X*X/24);ka=X*(1-ra*(ua/3+(1+3*ua)*ua*ra/15))/Math.cos(ka)}return J.x=v(ka+this.long0),J.y=C(I),J};r.names=["Cassini","Cassini_Soldner","cass"]},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/gN":11,"../common/imlfn":12,"../common/mlfn":14}],42:[function(p,A,r){var B=p("../common/adjust_lon"),t=p("../common/qsfnz"),H=p("../common/msfnz"),E=p("../common/iqsfnz");r.init=
function(){this.sphere||(this.k0=H(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))};r.forward=function(D){var x=D.y;var v=B(D.x-this.long0);this.sphere?(v=this.x0+this.a*v*Math.cos(this.lat_ts),x=this.y0+this.a*Math.sin(x)/Math.cos(this.lat_ts)):(x=t(this.e,Math.sin(x)),v=this.x0+this.a*this.k0*v,x=this.y0+this.a*x*.5/this.k0);return D.x=v,D.y=x,D};r.inverse=function(D){D.x-=this.x0;D.y-=this.y0;var x,v;return this.sphere?(x=B(this.long0+D.x/this.a/Math.cos(this.lat_ts)),v=Math.asin(D.y/this.a*
Math.cos(this.lat_ts))):(v=E(this.e,2*D.y*this.k0/this.a),x=B(this.long0+D.x/(this.a*this.k0))),D.x=x,D.y=v,D};r.names=["cea"]},{"../common/adjust_lon":5,"../common/iqsfnz":13,"../common/msfnz":15,"../common/qsfnz":20}],43:[function(p,A,r){var B=p("../common/adjust_lon"),t=p("../common/adjust_lat");r.init=function(){this.x0=this.x0||0;this.y0=this.y0||0;this.lat0=this.lat0||0;this.long0=this.long0||0;this.lat_ts=this.lat_ts||0;this.title=this.title||"Equidistant Cylindrical (Plate Carre)";this.rc=
Math.cos(this.lat_ts)};r.forward=function(H){var E=H.y,D=B(H.x-this.long0);E=t(E-this.lat0);return H.x=this.x0+this.a*D*this.rc,H.y=this.y0+this.a*E,H};r.inverse=function(H){var E=H.y;return H.x=B(this.long0+(H.x-this.x0)/(this.a*this.rc)),H.y=t(this.lat0+(E-this.y0)/this.a),H};r.names=["Equirectangular","Equidistant_Cylindrical","eqc"]},{"../common/adjust_lat":4,"../common/adjust_lon":5}],44:[function(p,A,r){var B=p("../common/e0fn"),t=p("../common/e1fn"),H=p("../common/e2fn"),E=p("../common/e3fn"),
D=p("../common/msfnz"),x=p("../common/mlfn"),v=p("../common/adjust_lon"),C=p("../common/adjust_lat"),L=p("../common/imlfn");r.init=function(){1E-10>Math.abs(this.lat1+this.lat2)||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=B(this.es),this.e1=t(this.es),this.e2=H(this.es),this.e3=E(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=D(this.e,this.sinphi,this.cosphi),this.ml1=x(this.e0,this.e1,
this.e2,this.e3,this.lat1),1E-10>Math.abs(this.lat1-this.lat2)?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=D(this.e,this.sinphi,this.cosphi),this.ml2=x(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=x(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))};r.forward=function(Q){var J=Q.x;var X=Q.y;this.sphere?X=this.a*(this.g-X):(X=x(this.e0,
this.e1,this.e2,this.e3,X),X=this.a*(this.g-X));J=this.ns*v(J-this.long0);var I=this.y0+this.rh-X*Math.cos(J);return Q.x=this.x0+X*Math.sin(J),Q.y=I,Q};r.inverse=function(Q){Q.x-=this.x0;Q.y=this.rh-Q.y+this.y0;var J,X,I,ka;0<=this.ns?(X=Math.sqrt(Q.x*Q.x+Q.y*Q.y),J=1):(X=-Math.sqrt(Q.x*Q.x+Q.y*Q.y),J=-1);var ua=0;return(0!==X&&(ua=Math.atan2(J*Q.x,J*Q.y)),this.sphere)?(ka=v(this.long0+ua/this.ns),I=C(this.g-X/this.a),Q.x=ka,Q.y=I,Q):(I=L(this.g-X/this.a,this.e0,this.e1,this.e2,this.e3),ka=v(this.long0+
ua/this.ns),Q.x=ka,Q.y=I,Q)};r.names=["Equidistant_Conic","eqdc"]},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/imlfn":12,"../common/mlfn":14,"../common/msfnz":15}],45:[function(p,A,r){var B=Math.PI/4,t=p("../common/srat"),H=Math.PI/2;r.init=function(){var E=Math.sin(this.lat0),D=Math.cos(this.lat0);D*=D;this.rc=Math.sqrt(1-this.es)/(1-this.es*E*E);this.C=Math.sqrt(1+this.es*D*D/(1-this.es));this.phic0=Math.asin(E/
this.C);this.ratexp=.5*this.C*this.e;this.K=Math.tan(.5*this.phic0+B)/(Math.pow(Math.tan(.5*this.lat0+B),this.C)*t(this.e*E,this.ratexp))};r.forward=function(E){var D=E.x,x=E.y;return E.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*x+B),this.C)*t(this.e*Math.sin(x),this.ratexp))-H,E.x=this.C*D,E};r.inverse=function(E){for(var D=E.x/this.C,x=E.y,v=Math.pow(Math.tan(.5*x+B)/this.K,1/this.C),C=20;0<C&&(x=2*Math.atan(v*t(this.e*Math.sin(E.y),-.5*this.e))-H,!(1E-14>Math.abs(x-E.y)));--C)E.y=x;return C?(E.x=
D,E.y=x,E):null};r.names=["gauss"]},{"../common/srat":22}],46:[function(p,A,r){var B=p("../common/adjust_lon"),t=p("../common/asinz");r.init=function(){this.sin_p14=Math.sin(this.lat0);this.cos_p14=Math.cos(this.lat0);this.infinity_dist=1E3*this.a;this.rc=1};r.forward=function(H){var E,D,x,v,C,L,Q,J=H.y;return x=B(H.x-this.long0),E=Math.sin(J),D=Math.cos(J),v=Math.cos(x),C=this.sin_p14*E+this.cos_p14*D*v,0<C||1E-10>=Math.abs(C)?(L=this.x0+1*this.a*D*Math.sin(x)/C,Q=this.y0+1*this.a*(this.cos_p14*
E-this.sin_p14*D*v)/C):(L=this.x0+this.infinity_dist*D*Math.sin(x),Q=this.y0+this.infinity_dist*(this.cos_p14*E-this.sin_p14*D*v)),H.x=L,H.y=Q,H};r.inverse=function(H){var E,D,x,v,C,L;return H.x=(H.x-this.x0)/this.a,H.y=(H.y-this.y0)/this.a,H.x/=this.k0,H.y/=this.k0,(E=Math.sqrt(H.x*H.x+H.y*H.y))?(v=Math.atan2(E,this.rc),D=Math.sin(v),x=Math.cos(v),L=t(x*this.sin_p14+H.y*D*this.cos_p14/E),C=Math.atan2(H.x*D,E*this.cos_p14*x-H.y*this.sin_p14*D),C=B(this.long0+C)):(L=this.phic0,C=0),H.x=C,H.y=L,H};
r.names=["gnom"]},{"../common/adjust_lon":5,"../common/asinz":6}],47:[function(p,A,r){var B=p("../common/adjust_lon");r.init=function(){this.a=6377397.155;this.es=.006674372230614;this.e=Math.sqrt(this.es);this.lat0||(this.lat0=.863937979737193);this.long0||(this.long0=.4334234309119251);this.k0||(this.k0=.9999);this.s45=.785398163397448;this.s90=2*this.s45;this.fi0=this.lat0;this.e2=this.es;this.e=Math.sqrt(this.e2);this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2));this.uq=
1.04216856380474;this.u0=Math.asin(Math.sin(this.fi0)/this.alfa);this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2);this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g;this.k1=this.k0;this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2));this.s0=1.37008346281555;this.n=Math.sin(this.s0);this.ro0=this.k1*this.n0/Math.tan(this.s0);this.ad=this.s90-this.uq};r.forward=function(t){var H,E,D,x,
v,C,L,Q=t.y,J=B(t.x-this.long0);return H=Math.pow((1+this.e*Math.sin(Q))/(1-this.e*Math.sin(Q)),this.alfa*this.e/2),E=2*(Math.atan(this.k*Math.pow(Math.tan(Q/2+this.s45),this.alfa)/H)-this.s45),D=-J*this.alfa,x=Math.asin(Math.cos(this.ad)*Math.sin(E)+Math.sin(this.ad)*Math.cos(E)*Math.cos(D)),v=Math.asin(Math.cos(E)*Math.sin(D)/Math.cos(x)),C=this.n*v,L=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(x/2+this.s45),this.n),t.y=L*Math.cos(C),t.x=L*Math.sin(C),this.czech||(t.y*=
-1,t.x*=-1),t};r.inverse=function(t){var H=t.x;t.x=t.y;t.y=H;this.czech||(t.y*=-1,t.x*=-1);H=Math.sqrt(t.x*t.x+t.y*t.y);var E=Math.atan2(t.y,t.x)/Math.sin(this.s0);var D=2*(Math.atan(Math.pow(this.ro0/H,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45);H=Math.asin(Math.cos(this.ad)*Math.sin(D)-Math.sin(this.ad)*Math.cos(D)*Math.cos(E));t.x=this.long0-Math.asin(Math.cos(D)*Math.sin(E)/Math.cos(H))/this.alfa;E=H;var x=D=0;do t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(H/2+this.s45),
1/this.alfa)*Math.pow((1+this.e*Math.sin(E))/(1-this.e*Math.sin(E)),this.e/2))-this.s45),1E-10>Math.abs(E-t.y)&&(D=1),E=t.y,x+=1;while(0===D&&15>x);return 15<=x?null:t};r.names=["Krovak","krovak"]},{"../common/adjust_lon":5}],48:[function(p,A,r){var B=Math.PI/2,t=Math.PI/4,H=p("../common/qsfnz"),E=p("../common/adjust_lon");r.S_POLE=1;r.N_POLE=2;r.EQUIT=3;r.OBLIQ=4;r.init=function(){var D=Math.abs(this.lat0);if(this.mode=1E-10>Math.abs(D-B)?0>this.lat0?this.S_POLE:this.N_POLE:1E-10>Math.abs(D)?this.EQUIT:
this.OBLIQ,0<this.es)switch(this.qp=H(this.e,1),this.mmf=.5/(1-this.es),this.apa=this.authset(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp);this.dd=1/this.rq;this.xmf=1;this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),D=Math.sin(this.lat0),this.sinb1=H(this.e,D)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*D*D)*this.rq*this.cosb1),this.ymf=
(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))};r.forward=function(D){var x,v,C,L,Q,J,X,I,ka=D.x,ua=D.y;if(ka=E(ka-this.long0),this.sphere)if(L=Math.sin(ua),C=Math.cos(ua),v=Math.cos(ka),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(x=this.mode===this.EQUIT?1+C*v:1+this.sinph0*L+this.cosph0*C*v,1E-10>=x)return null;x=Math.sqrt(2/x);var ra=x*C*Math.sin(ka);x*=this.mode===this.EQUIT?L:this.cosph0*L-this.sinph0*
C*v}else{if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(v=-v),1E-10>Math.abs(ua+this.phi0))return null;x=t-.5*ua;x=2*(this.mode===this.S_POLE?Math.cos(x):Math.sin(x));ra=x*Math.sin(ka);x*=v}}else{switch(J=0,X=0,I=0,v=Math.cos(ka),C=Math.sin(ka),L=Math.sin(ua),Q=H(this.e,L),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(J=Q/this.qp,X=Math.sqrt(1-J*J)),this.mode){case this.OBLIQ:I=1+this.sinb1*J+this.cosb1*X*v;break;case this.EQUIT:I=1+X*v;break;case this.N_POLE:I=
B+ua;Q=this.qp-Q;break;case this.S_POLE:I=ua-B,Q=this.qp+Q}if(1E-10>Math.abs(I))return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:I=Math.sqrt(2/I);x=this.mode===this.OBLIQ?this.ymf*I*(this.cosb1*J-this.sinb1*X*v):(I=Math.sqrt(2/(1+X*v)))*J*this.ymf;ra=this.xmf*I*X*C;break;case this.N_POLE:case this.S_POLE:0<=Q?(ra=(I=Math.sqrt(Q))*C,x=v*(this.mode===this.S_POLE?I:-I)):ra=x=0}}return D.x=this.a*ra+this.x0,D.y=this.a*x+this.y0,D};r.inverse=function(D){D.x-=this.x0;D.y-=this.y0;var x,v,C;
var L=D.x/this.a;var Q=D.y/this.a;if(this.sphere){var J=C=0;if(v=Math.sqrt(L*L+Q*Q),x=.5*v,1<x)return null;switch(x=2*Math.asin(x),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(J=Math.sin(x),C=Math.cos(x)),this.mode){case this.EQUIT:x=1E-10>=Math.abs(v)?0:Math.asin(Q*J/v);L*=J;Q=C*v;break;case this.OBLIQ:x=1E-10>=Math.abs(v)?this.phi0:Math.asin(C*this.sinph0+Q*J*this.cosph0/v);L*=J*this.cosph0;Q=(C-Math.sin(x)*this.sinph0)*v;break;case this.N_POLE:Q=-Q;x=B-x;break;case this.S_POLE:x-=B}L=0!==
Q||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(L,Q):0}else{if(x=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(L/=this.dd,Q*=this.dd,C=Math.sqrt(L*L+Q*Q),1E-10>C)return D.x=0,D.y=this.phi0,D;J=2*Math.asin(.5*C/this.rq);v=Math.cos(J);L*=J=Math.sin(J);this.mode===this.OBLIQ?(x=v*this.sinb1+Q*J*this.cosb1/C,Q=C*this.cosb1*v-Q*this.sinb1*J):(x=Q*J/C,Q=C*v)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(Q=-Q),J=L*L+Q*Q,!J)return D.x=0,D.y=this.phi0,
D;x=1-J/this.qp;this.mode===this.S_POLE&&(x=-x)}L=Math.atan2(L,Q);x=this.authlat(Math.asin(x),this.apa)}return D.x=E(this.long0+L),D.y=x,D};r.P00=.3333333333333333;r.P01=.17222222222222222;r.P02=.10257936507936508;r.P10=.06388888888888888;r.P11=.0664021164021164;r.P20=.016415012942191543;r.authset=function(D){var x,v=[];return v[0]=D*this.P00,x=D*D,v[0]+=x*this.P01,v[1]=x*this.P10,x*=D,v[0]+=x*this.P02,v[1]+=x*this.P11,v[2]=x*this.P20,v};r.authlat=function(D,x){var v=D+D;return D+x[0]*Math.sin(v)+
x[1]*Math.sin(v+v)+x[2]*Math.sin(v+v+v)};r.names=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"]},{"../common/adjust_lon":5,"../common/qsfnz":20}],49:[function(p,A,r){var B=p("../common/msfnz"),t=p("../common/tsfnz"),H=Math.PI/2,E=p("../common/sign"),D=p("../common/adjust_lon"),x=p("../common/phi2z");r.init=function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(1E-10>Math.abs(this.lat1+this.lat2))){var v=this.b/this.a;this.e=
Math.sqrt(1-v*v);v=Math.sin(this.lat1);var C=B(this.e,v,Math.cos(this.lat1)),L=t(this.e,this.lat1,v),Q=Math.sin(this.lat2),J=B(this.e,Q,Math.cos(this.lat2));Q=t(this.e,this.lat2,Q);var X=t(this.e,this.lat0,Math.sin(this.lat0));this.ns=1E-10<Math.abs(this.lat1-this.lat2)?Math.log(C/J)/Math.log(L/Q):v;isNaN(this.ns)&&(this.ns=v);this.f0=C/(this.ns*Math.pow(L,this.ns));this.rh=this.a*this.f0*Math.pow(X,this.ns);this.title||(this.title="Lambert Conformal Conic")}};r.forward=function(v){var C=v.x,L=v.y;
1E-10>=Math.abs(2*Math.abs(L)-Math.PI)&&(L=E(L)*(H-2E-10));var Q=Math.abs(Math.abs(L)-H);if(1E-10<Q)L=t(this.e,L,Math.sin(L)),L=this.a*this.f0*Math.pow(L,this.ns);else{if(Q=L*this.ns,0>=Q)return null;L=0}C=this.ns*D(C-this.long0);return v.x=this.k0*L*Math.sin(C)+this.x0,v.y=this.k0*(this.rh-L*Math.cos(C))+this.y0,v};r.inverse=function(v){var C,L,Q,J,X,I=(v.x-this.x0)/this.k0,ka=this.rh-(v.y-this.y0)/this.k0;0<this.ns?(C=Math.sqrt(I*I+ka*ka),L=1):(C=-Math.sqrt(I*I+ka*ka),L=-1);var ua=0;if(0!==C&&(ua=
Math.atan2(L*I,L*ka)),0!==C||0<this.ns){if(L=1/this.ns,Q=Math.pow(C/(this.a*this.f0),L),J=x(this.e,Q),-9999===J)return null}else J=-H;return X=D(ua/this.ns+this.long0),v.x=X,v.y=J,v};r.names=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]},{"../common/adjust_lon":5,"../common/msfnz":15,"../common/phi2z":16,"../common/sign":21,"../common/tsfnz":24}],50:[function(p,A,r){function B(t){return t}r.init=function(){};r.forward=B;r.inverse=B;
r.names=["longlat","identity"]},{}],51:[function(p,A,r){var B=p("../common/msfnz"),t=Math.PI/2,H=p("../common/adjust_lon"),E=Math.PI/4,D=p("../common/tsfnz"),x=p("../common/phi2z");r.init=function(){var v=this.b/this.a;this.es=1-v*v;"x0"in this||(this.x0=0);"y0"in this||(this.y0=0);this.e=Math.sqrt(this.es);this.lat_ts?this.k0=this.sphere?Math.cos(this.lat_ts):B(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k0=this.k?this.k:1)};r.forward=function(v){var C=v.x,L=v.y;if(90<57.29577951308232*
L&&-90>57.29577951308232*L&&180<57.29577951308232*C&&-180>57.29577951308232*C||1E-10>=Math.abs(Math.abs(L)-t))return null;this.sphere?(C=this.x0+this.a*this.k0*H(C-this.long0),L=this.y0+this.a*this.k0*Math.log(Math.tan(E+.5*L))):(L=D(this.e,L,Math.sin(L)),C=this.x0+this.a*this.k0*H(C-this.long0),L=this.y0-this.a*this.k0*Math.log(L));return v.x=C,v.y=L,v};r.inverse=function(v){var C,L=v.x-this.x0,Q=v.y-this.y0;if(this.sphere)var J=t-2*Math.atan(Math.exp(-Q/(this.a*this.k0)));else if(J=x(this.e,Math.exp(-Q/
(this.a*this.k0))),-9999===J)return null;return C=H(this.long0+L/(this.a*this.k0)),v.x=C,v.y=J,v};r.names=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{"../common/adjust_lon":5,"../common/msfnz":15,"../common/phi2z":16,"../common/tsfnz":24}],52:[function(p,A,r){var B=p("../common/adjust_lon");r.init=function(){};r.forward=function(t){var H=t.y,E=B(t.x-this.long0);H=this.y0+this.a*Math.log(Math.tan(Math.PI/4+H/2.5))*1.25;return t.x=this.x0+
this.a*E,t.y=H,t};r.inverse=function(t){t.x-=this.x0;t.y-=this.y0;var H=B(this.long0+t.x/this.a),E=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=H,t.y=E,t};r.names=["Miller_Cylindrical","mill"]},{"../common/adjust_lon":5}],53:[function(p,A,r){var B=p("../common/adjust_lon");r.init=function(){};r.forward=function(t){for(var H=t.y,E=B(t.x-this.long0),D=H,x=Math.PI*Math.sin(H),v=0;;v++){var C=-(D+Math.sin(D)-x)/(1+Math.cos(D));if(D+=C,1E-10>Math.abs(C))break}D/=2;1E-10>Math.PI/2-Math.abs(H)&&
(E=0);H=1.4142135623731*this.a*Math.sin(D)+this.y0;return t.x=.900316316158*this.a*E*Math.cos(D)+this.x0,t.y=H,t};r.inverse=function(t){t.x-=this.x0;t.y-=this.y0;var H=t.y/(1.4142135623731*this.a);.999999999999<Math.abs(H)&&(H=.999999999999);H=Math.asin(H);var E=B(this.long0+t.x/(.900316316158*this.a*Math.cos(H)));E<-Math.PI&&(E=-Math.PI);E>Math.PI&&(E=Math.PI);H=(2*H+Math.sin(2*H))/Math.PI;1<Math.abs(H)&&(H=1);H=Math.asin(H);return t.x=E,t.y=H,t};r.names=["Mollweide","moll"]},{"../common/adjust_lon":5}],
54:[function(p,A,r){r.iterations=1;r.init=function(){this.A=[];this.A[1]=.6399175073;this.A[2]=-.1358797613;this.A[3]=.063294409;this.A[4]=-.02526853;this.A[5]=.0117879;this.A[6]=-.0055161;this.A[7]=.0026906;this.A[8]=-.001333;this.A[9]=6.7E-4;this.A[10]=-3.4E-4;this.B_re=[];this.B_im=[];this.B_re[1]=.7557853228;this.B_im[1]=0;this.B_re[2]=.249204646;this.B_im[2]=.003371507;this.B_re[3]=-.001541739;this.B_im[3]=.04105856;this.B_re[4]=-.10162907;this.B_im[4]=.01727609;this.B_re[5]=-.26623489;this.B_im[5]=
-.36249218;this.B_re[6]=-.6870983;this.B_im[6]=-1.1651967;this.C_re=[];this.C_im=[];this.C_re[1]=1.3231270439;this.C_im[1]=0;this.C_re[2]=-.577245789;this.C_im[2]=-.007809598;this.C_re[3]=.508307513;this.C_im[3]=-.112208952;this.C_re[4]=-.15094762;this.C_im[4]=.18200602;this.C_re[5]=1.01418179;this.C_im[5]=1.64497696;this.C_re[6]=1.9660549;this.C_im[6]=2.5127645;this.D=[];this.D[1]=1.5627014243;this.D[2]=.5185406398;this.D[3]=-.03333098;this.D[4]=-.1052906;this.D[5]=-.0368594;this.D[6]=.007317;this.D[7]=
.0122;this.D[8]=.00394;this.D[9]=-.0013};r.forward=function(B){var t,H=B.x-this.long0,E=(B.y-this.lat0)/4.84813681109536E-6*1E-5,D=1,x=0;for(t=1;10>=t;t++)D*=E,x+=this.A[t]*D;var v;D=x;x=1;var C=v=0,L=0;for(t=1;6>=t;t++)E=x*D-v*H,v=v*D+x*H,x=E,C=C+this.B_re[t]*x-this.B_im[t]*v,L=L+this.B_im[t]*x+this.B_re[t]*v;return B.x=L*this.a+this.x0,B.y=C*this.a+this.y0,B};r.inverse=function(B){var t,H,E=(B.y-this.y0)/this.a,D=(B.x-this.x0)/this.a,x=1,v=H=0,C=0;for(t=1;6>=t;t++){var L=x*E-H*D;H=H*E+x*D;x=L;v=
v+this.C_re[t]*x-this.C_im[t]*H;C=C+this.C_im[t]*x+this.C_re[t]*H}for(L=0;L<this.iterations;L++){var Q=v;var J=C;x=E;H=D;for(t=2;6>=t;t++){var X=Q*v-J*C;J=J*v+Q*C;Q=X;x+=(t-1)*(this.B_re[t]*Q-this.B_im[t]*J);H+=(t-1)*(this.B_im[t]*Q+this.B_re[t]*J)}Q=1;J=0;var I=this.B_re[1],ka=this.B_im[1];for(t=2;6>=t;t++)X=Q*v-J*C,J=J*v+Q*C,Q=X,I+=t*(this.B_re[t]*Q-this.B_im[t]*J),ka+=t*(this.B_im[t]*Q+this.B_re[t]*J);C=I*I+ka*ka;v=(x*I+H*ka)/C;C=(H*I-x*ka)/C}E=v;D=1;v=0;for(t=1;9>=t;t++)D*=E,v+=this.D[t]*D;t=
this.lat0+.484813681109536*v;return B.x=this.long0+C,B.y=t,B};r.names=["New_Zealand_Map_Grid","nzmg"]},{}],55:[function(p,A,r){var B=p("../common/tsfnz"),t=p("../common/adjust_lon"),H=p("../common/phi2z"),E=Math.PI/2,D=Math.PI/4;r.init=function(){this.no_off=this.no_off||!1;this.no_rot=this.no_rot||!1;isNaN(this.k0)&&(this.k0=1);var x=Math.sin(this.lat0),v=Math.cos(this.lat0),C=this.e*x;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(v,4));this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-C*
C);x=B(this.e,this.lat0,x);v=this.bl/v*Math.sqrt((1-this.es)/(1-C*C));1>v*v&&(v=1);if(isNaN(this.longc)){C=B(this.e,this.lat1,Math.sin(this.lat1));var L=B(this.e,this.lat2,Math.sin(this.lat2));this.el=0<=this.lat0?(v+Math.sqrt(v*v-1))*Math.pow(x,this.bl):(v-Math.sqrt(v*v-1))*Math.pow(x,this.bl);C=Math.pow(C,this.bl);var Q=Math.pow(L,this.bl);L=this.el/C;x=.5*(L-1/L);L=(this.el*this.el-Q*C)/(this.el*this.el+Q*C);C=(Q-C)/(Q+C);Q=t(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(L*
Math.tan(.5*this.bl*Q)/C)/this.bl;this.long0=t(this.long0);C=t(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*C)/x);this.alpha=Math.asin(v*Math.sin(this.gamma0))}else L=0<=this.lat0?v+Math.sqrt(v*v-1):v-Math.sqrt(v*v-1),this.el=L*Math.pow(x,this.bl),this.gamma0=Math.asin(Math.sin(this.alpha)/v),this.long0=this.longc-Math.asin(.5*(L-1/L)*Math.tan(this.gamma0))/this.bl;this.uc=this.no_off?0:0<=this.lat0?this.al/this.bl*Math.atan2(Math.sqrt(v*v-1),Math.cos(this.alpha)):-1*this.al/this.bl*
Math.atan2(Math.sqrt(v*v-1),Math.cos(this.alpha))};r.forward=function(x){var v=x.y;var C=t(x.x-this.long0);if(1E-10>=Math.abs(Math.abs(v)-E))C=0<v?-1:1,v=this.al/this.bl*Math.log(Math.tan(D+C*this.gamma0*.5)),C=-1*C*E*this.al/this.bl;else{v=B(this.e,v,Math.sin(v));v=this.el/Math.pow(v,this.bl);var L=.5*(v-1/v),Q=Math.sin(this.bl*C);v=(L*Math.sin(this.gamma0)-Q*Math.cos(this.gamma0))/(.5*(v+1/v));v=1E-10>=Math.abs(Math.abs(v)-1)?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-v)/(1+v))/this.bl;C=1E-10>=
Math.abs(Math.cos(this.bl*C))?this.al*this.bl*C:this.al*Math.atan2(L*Math.cos(this.gamma0)+Q*Math.sin(this.gamma0),Math.cos(this.bl*C))/this.bl}return this.no_rot?(x.x=this.x0+C,x.y=this.y0+v):(C-=this.uc,x.x=this.x0+v*Math.cos(this.alpha)+C*Math.sin(this.alpha),x.y=this.y0+C*Math.cos(this.alpha)-v*Math.sin(this.alpha)),x};r.inverse=function(x){var v,C;this.no_rot?(C=x.y-this.y0,v=x.x-this.x0):(C=(x.x-this.x0)*Math.cos(this.alpha)-(x.y-this.y0)*Math.sin(this.alpha),v=(x.y-this.y0)*Math.cos(this.alpha)+
(x.x-this.x0)*Math.sin(this.alpha),v+=this.uc);var L=Math.exp(-1*this.bl*C/this.al);C=.5*(L-1/L);var Q=Math.sin(this.bl*v/this.al);L=(Q*Math.cos(this.gamma0)+C*Math.sin(this.gamma0))/(.5*(L+1/L));var J=Math.pow(this.el/Math.sqrt((1+L)/(1-L)),1/this.bl);return 1E-10>Math.abs(L-1)?(x.x=this.long0,x.y=E):1E-10>Math.abs(L+1)?(x.x=this.long0,x.y=-1*E):(x.y=H(this.e,J),x.x=t(this.long0-Math.atan2(C*Math.cos(this.gamma0)-Q*Math.sin(this.gamma0),Math.cos(this.bl*v/this.al))/this.bl)),x};r.names=["Hotine_Oblique_Mercator",
"Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]},{"../common/adjust_lon":5,"../common/phi2z":16,"../common/tsfnz":24}],56:[function(p,A,r){var B=p("../common/e0fn"),t=p("../common/e1fn"),H=p("../common/e2fn"),E=p("../common/e3fn"),D=p("../common/adjust_lon"),x=p("../common/adjust_lat"),v=p("../common/mlfn"),C=p("../common/gN");r.init=function(){this.temp=this.b/this.a;this.es=1-Math.pow(this.temp,2);this.e=Math.sqrt(this.es);
this.e0=B(this.es);this.e1=t(this.es);this.e2=H(this.es);this.e3=E(this.es);this.ml0=this.a*v(this.e0,this.e1,this.e2,this.e3,this.lat0)};r.forward=function(L){var Q,J,X,I=L.y,ka=D(L.x-this.long0);(X=ka*Math.sin(I),this.sphere)?1E-10>=Math.abs(I)?(Q=this.a*ka,J=-1*this.a*this.lat0):(Q=this.a*Math.sin(X)/Math.tan(I),J=this.a*(x(I-this.lat0)+(1-Math.cos(X))/Math.tan(I))):1E-10>=Math.abs(I)?(Q=this.a*ka,J=-1*this.ml0):(J=C(this.a,this.e,Math.sin(I))/Math.tan(I),Q=J*Math.sin(X),J=this.a*v(this.e0,this.e1,
this.e2,this.e3,I)-this.ml0+J*(1-Math.cos(X)));return L.x=Q+this.x0,L.y=J+this.y0,L};r.inverse=function(L){var Q,J,X;if(Q=L.x-this.x0,J=L.y-this.y0,this.sphere)if(1E-10>=Math.abs(J+this.a*this.lat0)){Q=D(Q/this.a+this.long0);var I=0}else{var ka=this.lat0+J/this.a;var ua=Q*Q/this.a/this.a+ka*ka;var ra=ka;var Za;for(J=20;J;--J)if(Za=Math.tan(ra),X=-1*(ka*(ra*Za+1)-ra-.5*(ra*ra+ua)*Za)/((ra-ka)/Za-1),ra+=X,1E-10>=Math.abs(X)){I=ra;break}Q=D(this.long0+Math.asin(Q*Math.tan(ra)/this.a)/Math.sin(I))}else if(1E-10>=
Math.abs(J+this.ml0))I=0,Q=D(this.long0+Q/this.a);else{ka=(this.ml0+J)/this.a;ua=Q*Q/this.a/this.a+ka*ka;ra=ka;var Na,Mb,fb,Nb,Oa;for(J=20;J;--J)if(Oa=this.e*Math.sin(ra),Na=Math.sqrt(1-Oa*Oa)*Math.tan(ra),Mb=this.a*v(this.e0,this.e1,this.e2,this.e3,ra),fb=this.e0-2*this.e1*Math.cos(2*ra)+4*this.e2*Math.cos(4*ra)-6*this.e3*Math.cos(6*ra),Nb=Mb/this.a,X=(ka*(Na*Nb+1)-Nb-.5*Na*(Nb*Nb+ua))/(this.es*Math.sin(2*ra)*(Nb*Nb+ua-2*ka*Nb)/(4*Na)+(ka-Nb)*(Na*fb-2/Math.sin(2*ra))-fb),ra-=X,1E-10>=Math.abs(X)){I=
ra;break}Na=Math.sqrt(1-this.es*Math.pow(Math.sin(I),2))*Math.tan(I);Q=D(this.long0+Math.asin(Q*Na/this.a)/Math.sin(I))}return L.x=Q,L.y=I,L};r.names=["Polyconic","poly"]},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/gN":11,"../common/mlfn":14}],57:[function(p,A,r){var B=p("../common/adjust_lon"),t=p("../common/adjust_lat"),H=p("../common/pj_enfn"),E=p("../common/pj_mlfn"),D=p("../common/pj_inv_mlfn"),x=
Math.PI/2,v=p("../common/asinz");r.init=function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=H(this.es)};r.forward=function(C){var L=C.x;var Q=C.y;if(L=B(L-this.long0),this.sphere){if(this.m)for(var J=this.n*Math.sin(Q),X=20;X;--X){var I=(this.m*Q+Math.sin(Q)-J)/(this.m+Math.cos(Q));if(Q-=I,1E-10>Math.abs(I))break}else Q=1!==this.n?Math.asin(this.n*Math.sin(Q)):Q;L=this.a*this.C_x*L*(this.m+Math.cos(Q));Q*=this.a*this.C_y}else J=
Math.sin(Q),X=Math.cos(Q),Q=this.a*E(Q,J,X,this.en),L=this.a*L*X/Math.sqrt(1-this.es*J*J);return C.x=L,C.y=Q,C};r.inverse=function(C){var L,Q,J,X;return C.x-=this.x0,J=C.x/this.a,C.y-=this.y0,L=C.y/this.a,this.sphere?(L/=this.C_y,J/=this.C_x*(this.m+Math.cos(L)),this.m?L=v((this.m*L+Math.sin(L))/this.n):1!==this.n&&(L=v(Math.sin(L)/this.n)),J=B(J+this.long0),L=t(L)):(L=D(C.y/this.a,this.es,this.en),X=Math.abs(L),x>X?(X=Math.sin(L),Q=this.long0+C.x*Math.sqrt(1-this.es*X*X)/(this.a*Math.cos(L)),J=B(Q)):
x>X-1E-10&&(J=this.long0)),C.x=J,C.y=L,C};r.names=["Sinusoidal","sinu"]},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/asinz":6,"../common/pj_enfn":17,"../common/pj_inv_mlfn":18,"../common/pj_mlfn":19}],58:[function(p,A,r){r.init=function(){var B=this.lat0;this.lambda0=this.long0;var t=Math.sin(B),H=this.a,E=1/this.rf;E=2*E-Math.pow(E,2);var D=this.e=Math.sqrt(E);this.R=this.k0*H*Math.sqrt(1-E)/(1-E*Math.pow(t,2));this.alpha=Math.sqrt(1+E/(1-E)*Math.pow(Math.cos(B),4));this.b0=Math.asin(t/
this.alpha);this.K=Math.log(Math.tan(Math.PI/4+this.b0/2))-this.alpha*Math.log(Math.tan(Math.PI/4+B/2))+this.alpha*D/2*Math.log((1+D*t)/(1-D*t))};r.forward=function(B){var t=2*(Math.atan(Math.exp(-this.alpha*(Math.log(Math.tan(Math.PI/4-B.y/2))+this.e/2*Math.log((1+this.e*Math.sin(B.y))/(1-this.e*Math.sin(B.y))))+this.K))-Math.PI/4),H=this.alpha*(B.x-this.lambda0),E=Math.atan(Math.sin(H)/(Math.sin(this.b0)*Math.tan(t)+Math.cos(this.b0)*Math.cos(H)));t=Math.asin(Math.cos(this.b0)*Math.sin(t)-Math.sin(this.b0)*
Math.cos(t)*Math.cos(H));return B.y=this.R/2*Math.log((1+Math.sin(t))/(1-Math.sin(t)))+this.y0,B.x=this.R*E+this.x0,B};r.inverse=function(B){var t=(B.x-this.x0)/this.R,H=2*(Math.atan(Math.exp((B.y-this.y0)/this.R))-Math.PI/4),E=Math.asin(Math.cos(this.b0)*Math.sin(H)+Math.sin(this.b0)*Math.cos(H)*Math.cos(t));t=this.lambda0+Math.atan(Math.sin(t)/(Math.cos(this.b0)*Math.cos(t)-Math.sin(this.b0)*Math.tan(H)))/this.alpha;for(var D=E,x=-1E3,v=0;1E-7<Math.abs(D-x);){if(20<++v)return;H=1/this.alpha*(Math.log(Math.tan(Math.PI/
4+E/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(D))/2));x=D;D=2*Math.atan(Math.exp(H))-Math.PI/2}return B.x=t,B.y=D,B};r.names=["somerc"]},{}],59:[function(p,A,r){var B=Math.PI/2,t=p("../common/sign"),H=p("../common/msfnz"),E=p("../common/tsfnz"),D=p("../common/phi2z"),x=p("../common/adjust_lon");r.ssfn_=function(v,C,L){return C*=L,Math.tan(.5*(B+v))*Math.pow((1-C)/(1+C),.5*L)};r.init=function(){this.coslat0=Math.cos(this.lat0);this.sinlat0=Math.sin(this.lat0);this.sphere?
1===this.k0&&!isNaN(this.lat_ts)&&1E-10>=Math.abs(this.coslat0)&&(this.k0=.5*(1+t(this.lat0)*Math.sin(this.lat_ts))):(1E-10>=Math.abs(this.coslat0)&&(this.con=0<this.lat0?1:-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&1E-10>=Math.abs(this.coslat0)&&(this.k0=.5*this.cons*H(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/E(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=H(this.e,this.sinlat0,this.coslat0),
this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-B,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))};r.forward=function(v){var C,L,Q,J,X,I,ka=v.x,ua=v.y,ra=Math.sin(ua),Za=Math.cos(ua),Na=x(ka-this.long0);return 1E-10>=Math.abs(Math.abs(ka-this.long0)-Math.PI)&&1E-10>=Math.abs(ua+this.lat0)?(v.x=0/0,v.y=0/0,v):this.sphere?(C=2*this.k0/(1+this.sinlat0*ra+this.coslat0*Za*Math.cos(Na)),v.x=this.a*C*Za*Math.sin(Na)+this.x0,v.y=this.a*C*(this.coslat0*ra-this.sinlat0*Za*Math.cos(Na))+
this.y0,v):(L=2*Math.atan(this.ssfn_(ua,ra,this.e))-B,J=Math.cos(L),Q=Math.sin(L),1E-10>=Math.abs(this.coslat0)?(X=E(this.e,ua*this.con,this.con*ra),I=2*this.a*this.k0*X/this.cons,v.x=this.x0+I*Math.sin(ka-this.long0),v.y=this.y0-this.con*I*Math.cos(ka-this.long0),v):(1E-10>Math.abs(this.sinlat0)?(C=2*this.a*this.k0/(1+J*Math.cos(Na)),v.y=C*Q):(C=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*Q+this.cosX0*J*Math.cos(Na))),v.y=C*(this.cosX0*Q-this.sinX0*J*Math.cos(Na))+this.y0),v.x=C*J*Math.sin(Na)+
this.x0,v))};r.inverse=function(v){v.x-=this.x0;v.y-=this.y0;var C,L,Q=Math.sqrt(v.x*v.x+v.y*v.y);if(this.sphere){var J=2*Math.atan(Q/(.5*this.a*this.k0));return C=this.long0,L=this.lat0,1E-10>=Q?(v.x=C,v.y=L,v):(L=Math.asin(Math.cos(J)*this.sinlat0+v.y*Math.sin(J)*this.coslat0/Q),C=x(1E-10>Math.abs(this.coslat0)?0<this.lat0?this.long0+Math.atan2(v.x,-1*v.y):this.long0+Math.atan2(v.x,v.y):this.long0+Math.atan2(v.x*Math.sin(J),Q*this.coslat0*Math.cos(J)-v.y*this.sinlat0*Math.sin(J))),v.x=C,v.y=L,v)}if(1E-10>=
Math.abs(this.coslat0)){if(1E-10>=Q)return L=this.lat0,C=this.long0,v.x=C,v.y=L,v;v.x*=this.con;v.y*=this.con;C=Q*this.cons/(2*this.a*this.k0);L=this.con*D(this.e,C);C=this.con*x(this.con*this.long0+Math.atan2(v.x,-1*v.y))}else L=2*Math.atan(Q*this.cosX0/(2*this.a*this.k0*this.ms1)),C=this.long0,1E-10>=Q?J=this.X0:(J=Math.asin(Math.cos(L)*this.sinX0+v.y*Math.sin(L)*this.cosX0/Q),C=x(this.long0+Math.atan2(v.x*Math.sin(L),Q*this.cosX0*Math.cos(L)-v.y*this.sinX0*Math.sin(L)))),L=-1*D(this.e,Math.tan(.5*
(B+J)));return v.x=C,v.y=L,v};r.names=["stere"]},{"../common/adjust_lon":5,"../common/msfnz":15,"../common/phi2z":16,"../common/sign":21,"../common/tsfnz":24}],60:[function(p,A,r){var B=p("./gauss"),t=p("../common/adjust_lon");r.init=function(){B.init.apply(this);this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))};r.forward=function(H){var E,D,x,v;return H.x=t(H.x-this.long0),B.forward.apply(this,
[H]),E=Math.sin(H.y),D=Math.cos(H.y),x=Math.cos(H.x),v=this.k0*this.R2/(1+this.sinc0*E+this.cosc0*D*x),H.x=v*D*Math.sin(H.x),H.y=v*(this.cosc0*E-this.sinc0*D*x),H.x=this.a*H.x+this.x0,H.y=this.a*H.y+this.y0,H};r.inverse=function(H){var E;if(H.x=(H.x-this.x0)/this.a,H.y=(H.y-this.y0)/this.a,H.x/=this.k0,H.y/=this.k0,E=Math.sqrt(H.x*H.x+H.y*H.y)){var D=2*Math.atan2(E,this.R2);var x=Math.sin(D);var v=Math.cos(D);D=Math.asin(v*this.sinc0+H.y*x*this.cosc0/E);x=Math.atan2(H.x*x,E*this.cosc0*v-H.y*this.sinc0*
x)}else D=this.phic0,x=0;return H.x=x,H.y=D,B.inverse.apply(this,[H]),H.x=t(H.x+this.long0),H};r.names=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative"]},{"../common/adjust_lon":5,"./gauss":45}],61:[function(p,A,r){var B=p("../common/e0fn"),t=p("../common/e1fn"),H=p("../common/e2fn"),E=p("../common/e3fn"),D=p("../common/mlfn"),x=p("../common/adjust_lon"),v=Math.PI/2,C=p("../common/sign"),L=p("../common/asinz");r.init=function(){this.e0=
B(this.es);this.e1=t(this.es);this.e2=H(this.es);this.e3=E(this.es);this.ml0=this.a*D(this.e0,this.e1,this.e2,this.e3,this.lat0)};r.forward=function(Q){var J=Q.y;var X=x(Q.x-this.long0);var I=Math.sin(J);var ka=Math.cos(J);if(this.sphere){var ua=ka*Math.sin(X);if(1E-10>Math.abs(Math.abs(ua)-1))return 93;var ra=.5*this.a*this.k0*Math.log((1+ua)/(1-ua));I=Math.acos(ka*Math.cos(X)/Math.sqrt(1-ua*ua));0>J&&(I=-I);J=this.a*this.k0*(I-this.lat0)}else{ra=ka*X;X=Math.pow(ra,2);ka=this.ep2*Math.pow(ka,2);
ua=Math.tan(J);var Za=Math.pow(ua,2);I=1-this.es*Math.pow(I,2);I=this.a/Math.sqrt(I);J=this.a*D(this.e0,this.e1,this.e2,this.e3,J);ra=this.k0*I*ra*(1+X/6*(1-Za+ka+X/20*(5-18*Za+Math.pow(Za,2)+72*ka-58*this.ep2)))+this.x0;J=this.k0*(J-this.ml0+I*ua*X*(.5+X/24*(5-Za+9*ka+4*Math.pow(ka,2)+X/30*(61-58*Za+Math.pow(Za,2)+600*ka-330*this.ep2))))+this.y0}return Q.x=ra,Q.y=J,Q};r.inverse=function(Q){var J;if(this.sphere){var X=Math.exp(Q.x/(this.a*this.k0));var I=.5*(X-1/X);var ka=this.lat0+Q.y/(this.a*this.k0);
var ua=Math.cos(ka);X=Math.sqrt((1-ua*ua)/(1+I*I));X=L(X);0>ka&&(X=-X);I=0===I&&0===ua?this.long0:x(Math.atan2(I,ua)+this.long0)}else{ka=Q.x-this.x0;var ra=Q.y-this.y0;I=X=(this.ml0+ra/this.k0)/this.a;for(J=0;ua=(X+this.e1*Math.sin(2*I)-this.e2*Math.sin(4*I)+this.e3*Math.sin(6*I))/this.e0-I,I+=ua,!(1E-10>=Math.abs(ua));J++)if(6<=J)return 95;if(Math.abs(I)<v){ua=Math.cos(I);var Za=Math.tan(I);J=this.ep2*Math.pow(ua,2);ra=Math.pow(J,2);var Na=Math.pow(Za,2),Mb=Math.pow(Na,2);X=1-this.es*Math.pow(Math.sin(I),
2);var fb=this.a/Math.sqrt(X);ka/=fb*this.k0;var Nb=Math.pow(ka,2);X=I-fb*Za*Nb/(fb*(1-this.es)/X)*(.5-Nb/24*(5+3*Na+10*J-4*ra-9*this.ep2-Nb/30*(61+90*Na+298*J+45*Mb-252*this.ep2-3*ra)));I=x(this.long0+ka*(1-Nb/6*(1+2*Na+J-Nb/20*(5-2*J+28*Na-3*ra+8*this.ep2+24*Mb)))/ua)}else X=v*C(ra),I=this.long0}return Q.x=I,Q.y=X,Q};r.names=["Transverse_Mercator","Transverse Mercator","tmerc"]},{"../common/adjust_lon":5,"../common/asinz":6,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,
"../common/mlfn":14,"../common/sign":21}],62:[function(p,A,r){var B=p("./tmerc");r.dependsOn="tmerc";r.init=function(){this.zone&&(this.lat0=0,this.long0=.017453292519943295*(6*Math.abs(this.zone)-183),this.x0=5E5,this.y0=this.utmSouth?1E7:0,this.k0=.9996,B.init.apply(this),this.forward=B.forward,this.inverse=B.inverse)};r.names=["Universal Transverse Mercator System","utm"]},{"./tmerc":61}],63:[function(p,A,r){var B=p("../common/adjust_lon"),t=Math.PI/2,H=p("../common/asinz");r.init=function(){this.R=
this.a};r.forward=function(E){var D,x=E.y;var v=B(E.x-this.long0);1E-10>=Math.abs(x)&&(D=this.y0);var C=H(2*Math.abs(x/Math.PI));(1E-10>=Math.abs(v)||1E-10>=Math.abs(Math.abs(x)-t))&&(D=0<=x?this.y0+Math.PI*this.R*Math.tan(.5*C):this.y0+Math.PI*this.R*-Math.tan(.5*C));var L=.5*Math.abs(Math.PI/v-v/Math.PI),Q=L*L,J=Math.sin(C);C=Math.cos(C);C/=J+C-1;J=C*(2/J-1);var X=J*J,I=Math.PI*this.R*(L*(C-X)+Math.sqrt(Q*(C-X)*(C-X)-(X+Q)*(C*C-X)))/(X+Q);0>v&&(I=-I);v=this.x0+I;C=Q+C;return I=Math.PI*this.R*(J*
C-L*Math.sqrt((X+Q)*(Q+1)-C*C))/(X+Q),D=0<=x?this.y0+I:this.y0-I,E.x=v,E.y=D,E};r.inverse=function(E){var D,x,v,C,L,Q,J,X,I,ka,ua,ra,Za;return E.x-=this.x0,E.y-=this.y0,ua=Math.PI*this.R,v=E.x/ua,C=E.y/ua,L=v*v+C*C,Q=-Math.abs(C)*(1+L),J=Q-2*C*C+v*v,X=-2*Q+1+2*C*C+L*L,Za=C*C/X+(2*J*J*J/X/X/X-9*Q*J/X/X)/27,I=(Q-J*J/3/X)/X,ka=2*Math.sqrt(-I/3),ua=3*Za/I/ka,1<Math.abs(ua)&&(ua=0<=ua?1:-1),ra=Math.acos(ua)/3,x=0<=E.y?(-ka*Math.cos(ra+Math.PI/3)-J/3/X)*Math.PI:-(-ka*Math.cos(ra+Math.PI/3)-J/3/X)*Math.PI,
D=1E-10>Math.abs(v)?this.long0:B(this.long0+Math.PI*(L-1+Math.sqrt(1+2*(v*v-C*C)+L*L))/2/v),E.x=D,E.y=x,E};r.names=["Van_der_Grinten_I","VanDerGrinten","vandg"]},{"../common/adjust_lon":5,"../common/asinz":6}],64:[function(p,A){var r=p("./datum_transform"),B=p("./adjust_axis"),t=p("./Proj"),H=p("./common/toPoint");A.exports=function C(D,x,v){var L;return Array.isArray(v)&&(v=H(v)),D.datum&&x.datum&&((1===D.datum.datum_type||2===D.datum.datum_type)&&"WGS84"!==x.datumCode||(1===x.datum.datum_type||
2===x.datum.datum_type)&&"WGS84"!==D.datumCode)&&(L=new t("WGS84"),C(D,L,v),D=L),"enu"!==D.axis&&B(D,!1,v),"longlat"===D.projName?(v.x*=.017453292519943295,v.y*=.017453292519943295):(D.to_meter&&(v.x*=D.to_meter,v.y*=D.to_meter),D.inverse(v)),D.from_greenwich&&(v.x+=D.from_greenwich),v=r(D.datum,x.datum,v),x.from_greenwich&&(v.x-=x.from_greenwich),"longlat"===x.projName?(v.x*=57.29577951308232,v.y*=57.29577951308232):(x.forward(v),x.to_meter&&(v.x/=x.to_meter,v.y/=x.to_meter)),"enu"!==x.axis&&B(x,
!0,v),v}},{"./Proj":2,"./adjust_axis":3,"./common/toPoint":23,"./datum_transform":30}],65:[function(p,A){function r(x,v,C){x[v]=C.map(function(L){var Q={};return B(L,Q),Q}).reduce(function(L,Q){return D(L,Q)},{})}function B(x,v){var C;return Array.isArray(x)?(C=x.shift(),"PARAMETER"===C&&(C=x.shift()),1===x.length?Array.isArray(x[0])?(v[C]={},B(x[0],v[C])):v[C]=x[0]:x.length?"TOWGS84"===C?v[C]=x:(v[C]={},-1<["UNIT","PRIMEM","VERT_DATUM"].indexOf(C)?(v[C]={name:x[0].toLowerCase(),convert:x[1]},3===
x.length&&(v[C].auth=x[2])):"SPHEROID"===C?(v[C]={name:x[0],a:x[1],rf:x[2]},4===x.length&&(v[C].auth=x[3])):-1<"GEOGCS GEOCCS DATUM VERT_CS COMPD_CS LOCAL_CS FITTED_CS LOCAL_DATUM".split(" ").indexOf(C)?(x[0]=["name",x[0]],r(v,C,x)):x.every(function(L){return Array.isArray(L)})?r(v,C,x):B(x,v[C])):v[C]=!0,void 0):void(v[x]=!0)}function t(x){return x*E}function H(x){function v(C){var L=x.to_meter||1;return parseFloat(C,10)*L}"GEOGCS"===x.type?x.projName="longlat":"LOCAL_CS"===x.type?(x.projName="identity",
x.local=!0):x.projName="object"==typeof x.PROJECTION?Object.keys(x.PROJECTION)[0]:x.PROJECTION;x.UNIT&&(x.units=x.UNIT.name.toLowerCase(),"metre"===x.units&&(x.units="meter"),x.UNIT.convert&&(x.to_meter=parseFloat(x.UNIT.convert,10)));x.GEOGCS&&(x.datumCode=x.GEOGCS.DATUM?x.GEOGCS.DATUM.name.toLowerCase():x.GEOGCS.name.toLowerCase(),"d_"===x.datumCode.slice(0,2)&&(x.datumCode=x.datumCode.slice(2)),("new_zealand_geodetic_datum_1949"===x.datumCode||"new_zealand_1949"===x.datumCode)&&(x.datumCode="nzgd49"),
"wgs_1984"===x.datumCode&&("Mercator_Auxiliary_Sphere"===x.PROJECTION&&(x.sphere=!0),x.datumCode="wgs84"),"_ferro"===x.datumCode.slice(-6)&&(x.datumCode=x.datumCode.slice(0,-6)),"_jakarta"===x.datumCode.slice(-8)&&(x.datumCode=x.datumCode.slice(0,-8)),~x.datumCode.indexOf("belge")&&(x.datumCode="rnb72"),x.GEOGCS.DATUM&&x.GEOGCS.DATUM.SPHEROID&&(x.ellps=x.GEOGCS.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke_18/,"clrk"),"international"===x.ellps.toLowerCase().slice(0,13)&&(x.ellps="intl"),
x.a=x.GEOGCS.DATUM.SPHEROID.a,x.rf=parseFloat(x.GEOGCS.DATUM.SPHEROID.rf,10)),~x.datumCode.indexOf("osgb_1936")&&(x.datumCode="osgb36"));x.b&&!isFinite(x.b)&&(x.b=x.a);[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_of_center"],
["lat0","latitude_of_center",t],["longitude_of_center","Longitude_Of_Center"],["longc","longitude_of_center",t],["x0","false_easting",v],["y0","false_northing",v],["long0","central_meridian",t],["lat0","latitude_of_origin",t],["lat0","standard_parallel_1",t],["lat1","standard_parallel_1",t],["lat2","standard_parallel_2",t],["alpha","azimuth",t],["srsCode","name"]].forEach(function(C){var L=C[0],Q=C[1];!(L in x)&&Q in x&&(x[L]=x[Q],3===C.length&&(x[L]=C[2](x[L])))});x.long0||!x.longc||"Albers_Conic_Equal_Area"!==
x.PROJECTION&&"Lambert_Azimuthal_Equal_Area"!==x.PROJECTION||(x.long0=x.longc)}var E=.017453292519943295,D=p("./extend");A.exports=function(x,v){x=JSON.parse((","+x).replace(/\s*,\s*([A-Z_0-9]+?)(\[)/g,',["$1",').slice(1).replace(/\s*,\s*([A-Z_0-9]+?)\]/g,',"$1"]'));var C=x.shift(),L=x.shift();x.unshift(["name",L]);x.unshift(["type",C]);x.unshift("output");C={};return B(x,C),H(C.output),D(v,C.output)}},{"./extend":33}],66:[function(p,A,r){function B(D){var x=D.easting,v=D.zoneNumber;if(0>v||60<v)return null;
var C=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562));var L=D.northing;"N">D.zoneLetter&&(L-=1E7);L=L/.9996/6367449.145945056;var Q=L+(3*C/2-27*C*C*C/32)*Math.sin(2*L)+(21*C*C/16-55*C*C*C*C/32)*Math.sin(4*L)+151*C*C*C/96*Math.sin(6*L);var J=6378137/Math.sqrt(1-.00669438*Math.sin(Q)*Math.sin(Q));C=Math.tan(Q)*Math.tan(Q);L=.006739496752268451*Math.cos(Q)*Math.cos(Q);var X=6335439.32722994/Math.pow(1-.00669438*Math.sin(Q)*Math.sin(Q),1.5);x=(x-5E5)/(.9996*J);J=Q-J*Math.tan(Q)/X*(x*x/2-(5+3*C+10*L-
4*L*L-.06065547077041606)*x*x*x*x/24+(61+90*C+298*L+45*C*C-1.6983531815716497-3*L*L)*x*x*x*x*x*x/720);J=J/Math.PI*180;x=(x-(1+2*C+L)*x*x*x/6+(5-2*L+28*C-3*L*L+.05391597401814761+24*C*C)*x*x*x*x*x/120)/Math.cos(Q);x=6*(v-1)-180+3+x/Math.PI*180;D.accuracy?(D=B({northing:D.northing+D.accuracy,easting:D.easting+D.accuracy,zoneLetter:D.zoneLetter,zoneNumber:D.zoneNumber}),D={top:D.lat,right:D.lon,bottom:J,left:x}):D={lat:J,lon:x};return D}function t(D){D%=E;return 0===D&&(D=E),D}function H(D){switch(D){case "C":var x=
11E5;break;case "D":x=2E6;break;case "E":x=28E5;break;case "F":x=37E5;break;case "G":x=46E5;break;case "H":x=55E5;break;case "J":x=64E5;break;case "K":x=73E5;break;case "L":x=82E5;break;case "M":x=91E5;break;case "N":x=0;break;case "P":x=8E5;break;case "Q":x=17E5;break;case "R":x=26E5;break;case "S":x=35E5;break;case "T":x=44E5;break;case "U":x=53E5;break;case "V":x=62E5;break;case "W":x=7E6;break;case "X":x=79E5;break;default:x=-1}if(0<=x)return x;throw"Invalid zone letter: "+D;}var E=6;r.forward=
function(D,x){var v=D[1];var C=D[0];var L=Math.PI/180*v;var Q=Math.PI/180*C;D=Math.floor((C+180)/6)+1;180===C&&(D=60);56<=v&&64>v&&3<=C&&12>C&&(D=32);72<=v&&84>v&&(0<=C&&9>C?D=31:9<=C&&21>C?D=33:21<=C&&33>C?D=35:33<=C&&42>C&&(D=37));var J=Math.PI/180*(6*(D-1)-180+3);C=6378137/Math.sqrt(1-.00669438*Math.sin(L)*Math.sin(L));var X=Math.tan(L)*Math.tan(L);var I=.006739496752268451*Math.cos(L)*Math.cos(L);Q=Math.cos(L)*(Q-J);L=.9996*(6378137*(.9983242984503243*L-.002514607064228144*Math.sin(2*L)+2.639046602129982E-6*
Math.sin(4*L)-3.4180461016968582E-9*Math.sin(6*L))+C*Math.tan(L)*(Q*Q/2+(5-X+9*I+4*I*I)*Q*Q*Q*Q/24+(61-58*X+X*X+600*I-2.2240339282485886)*Q*Q*Q*Q*Q*Q/720));0>v&&(L+=1E7);L=Math.round(L);Q=Math.round(.9996*C*(Q+(1-X+I)*Q*Q*Q/6+(5-18*X+X*X+72*I-.39089081163157013)*Q*Q*Q*Q*Q/120)+5E5);C="Z";J=(84>=v&&72<=v?C="X":72>v&&64<=v?C="W":64>v&&56<=v?C="V":56>v&&48<=v?C="U":48>v&&40<=v?C="T":40>v&&32<=v?C="S":32>v&&24<=v?C="R":24>v&&16<=v?C="Q":16>v&&8<=v?C="P":8>v&&0<=v?C="N":0>v&&-8<=v?C="M":-8>v&&-16<=v?C=
"L":-16>v&&-24<=v?C="K":-24>v&&-32<=v?C="J":-32>v&&-40<=v?C="H":-40>v&&-48<=v?C="G":-48>v&&-56<=v?C="F":-56>v&&-64<=v?C="E":-64>v&&-72<=v?C="D":-72>v&&-80<=v&&(C="C"),C);I=L;L=Q;X=D;C=J;x=x||5;D=""+L;v=""+I;C=X+C;Q=I;X=t(X);I=Math.floor(L/1E5);L=Math.floor(Q/1E5)%20;Q=X-1;X="AJSAJS".charCodeAt(Q);Q="AFAFAF".charCodeAt(Q);I=X+I-1;L=Q+L;J=!1;90<I&&(I=I-90+65-1,J=!0);(73===I||73>X&&73<I||(73<I||73>X)&&J)&&I++;(79===I||79>X&&79<I||(79<I||79>X)&&J)&&(I++,73===I&&I++);90<I&&(I=I-90+65-1);86<L?(L=L-86+65-
1,J=!0):J=!1;(73===L||73>Q&&73<L||(73<L||73>Q)&&J)&&L++;(79===L||79>Q&&79<L||(79<L||79>Q)&&J)&&(L++,73===L&&L++);86<L&&(L=L-86+65-1);X=String.fromCharCode(I)+String.fromCharCode(L);return C+X+D.substr(D.length-5,x)+v.substr(v.length-5,x)};r.inverse=function(D){if((D=D.toUpperCase())&&0===D.length)throw"MGRSPoint coverting from nothing";var x;var v=D.length;for(var C,L="",Q=0;!/[A-Z]/.test(x=D.charAt(Q));){if(2<=Q)throw"MGRSPoint bad conversion from: "+D;L+=x;Q++}x=parseInt(L,10);if(0===Q||Q+3>v)throw"MGRSPoint bad conversion from: "+
D;L=D.charAt(Q++);if("A">=L||"B"===L||"Y"===L||"Z"<=L||"I"===L||"O"===L)throw"MGRSPoint zone letter "+L+" not handled: "+D;C=D.substring(Q,Q+=2);var J=t(x);var X=C.charAt(0);for(var I="AJSAJS".charCodeAt(J-1),ka=1E5,ua=!1;I!==X.charCodeAt(0);){if(I++,73===I&&I++,79===I&&I++,90<I){if(ua)throw"Bad character: "+X;I=65;ua=!0}ka+=1E5}X=ka;C=C.charAt(1);if("V"<C)throw"MGRSPoint given invalid Northing "+C;J="AFAFAF".charCodeAt(J-1);I=0;for(ka=!1;J!==C.charCodeAt(0);){if(J++,73===J&&J++,79===J&&J++,86<J){if(ka)throw"Bad character: "+
C;J=65;ka=!0}I+=1E5}for(J=I;J<H(L);)J+=2E6;v-=Q;if(0!==v%2)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+D;var ra,Za,Na,Mb,fb;C=v/2;ka=I=0;v=(0<C&&(ra=1E5/Math.pow(10,C),Za=D.substring(Q,Q+C),I=parseFloat(Za)*ra,Na=D.substring(Q+C),ka=parseFloat(Na)*ra),Mb=I+X,fb=ka+J,{easting:Mb,northing:fb,zoneLetter:L,zoneNumber:x,accuracy:ra});ra=B(v);return[ra.left,ra.bottom,ra.right,ra.top]};
r.toPoint=function(D){D=r.inverse(D);return[(D[2]+D[0])/2,(D[3]+D[1])/2]}},{}],67:[function(p,A){A.exports={name:"proj4",version:"2.2.1",description:"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",main:"lib/index.js",directories:{test:"test",doc:"docs"},scripts:{test:"./node_modules/istanbul/lib/cli.js test ./node_modules/mocha/bin/_mocha test/test.js"},repository:{type:"git",url:"git://github.com/proj4js/proj4js.git"},
author:"",license:"MIT",jam:{main:"dist/proj4.js",include:["dist/proj4.js","README.md","AUTHORS","LICENSE.md"]},devDependencies:{"grunt-cli":"~0.1.13",grunt:"~0.4.2","grunt-contrib-connect":"~0.6.0","grunt-contrib-jshint":"~0.8.0",chai:"~1.8.1",mocha:"~1.17.1","grunt-mocha-phantomjs":"~0.4.0",browserify:"~3.24.5","grunt-browserify":"~1.3.0","grunt-contrib-uglify":"~0.3.2",curl:"git://github.com/cujojs/curl.git",istanbul:"~0.2.4",tin:"~0.4.0"},dependencies:{mgrs:"0.0.0"}}},{}],"./includedProjections":[function(p,
A){A.exports=p("gWUPNW")},{}],gWUPNW:[function(p,A){var r=[p("./lib/projections/tmerc"),p("./lib/projections/utm"),p("./lib/projections/sterea"),p("./lib/projections/stere"),p("./lib/projections/somerc"),p("./lib/projections/omerc"),p("./lib/projections/lcc"),p("./lib/projections/krovak"),p("./lib/projections/cass"),p("./lib/projections/laea"),p("./lib/projections/aea"),p("./lib/projections/gnom"),p("./lib/projections/cea"),p("./lib/projections/eqc"),p("./lib/projections/poly"),p("./lib/projections/nzmg"),
p("./lib/projections/mill"),p("./lib/projections/sinu"),p("./lib/projections/moll"),p("./lib/projections/eqdc"),p("./lib/projections/vandg"),p("./lib/projections/aeqd")];A.exports=function(B){r.forEach(function(t){B.Proj.projections.add(t)})}},{"./lib/projections/aea":39,"./lib/projections/aeqd":40,"./lib/projections/cass":41,"./lib/projections/cea":42,"./lib/projections/eqc":43,"./lib/projections/eqdc":44,"./lib/projections/gnom":46,"./lib/projections/krovak":47,"./lib/projections/laea":48,"./lib/projections/lcc":49,
"./lib/projections/mill":52,"./lib/projections/moll":53,"./lib/projections/nzmg":54,"./lib/projections/omerc":55,"./lib/projections/poly":56,"./lib/projections/sinu":57,"./lib/projections/somerc":58,"./lib/projections/stere":59,"./lib/projections/sterea":60,"./lib/projections/tmerc":61,"./lib/projections/utm":62,"./lib/projections/vandg":63}]},{},[35])(35)});
(function(g,p){"object"===typeof module&&"object"===typeof module.exports?module.exports=g.document?p(g,!0):function(A){if(!A.document)throw Error("jQuery requires a window with a document");return p(A)}:p(g)})("undefined"!==typeof window?window:this,function(g,p){function A(k,n,u){u=u||rc;var y,G=u.createElement("script");G.text=k;if(n)for(y in Ul)(k=n[y]||n.getAttribute&&n.getAttribute(y))&&G.setAttribute(y,k);u.head.appendChild(G).parentNode.removeChild(G)}function r(k){return null==k?k+"":"object"===
typeof k||"function"===typeof k?Cd[Hd.call(k)]||"object":typeof k}function B(k){var n=!!k&&"length"in k&&k.length,u=r(k);return Wb(k)||cg(k)?!1:"array"===u||0===n||"number"===typeof n&&0<n&&n-1 in k}function t(k,n){return k.nodeName&&k.nodeName.toLowerCase()===n.toLowerCase()}function H(k,n,u){return Wb(n)?z.grep(k,function(y,G){return!!n.call(y,G,y)!==u}):n.nodeType?z.grep(k,function(y){return y===n!==u}):"string"!==typeof n?z.grep(k,function(y){return-1<xh.call(n,y)!==u}):z.filter(n,k,u)}function E(k,
n){for(;(k=k[n])&&1!==k.nodeType;);return k}function D(k){var n={};z.each(k.match(Hf)||[],function(u,y){n[y]=!0});return n}function x(k){return k}function v(k){throw k;}function C(k,n,u,y){var G;try{k&&Wb(G=k.promise)?G.call(k).done(n).fail(u):k&&Wb(G=k.then)?G.call(k,n,u):n.apply(void 0,[k].slice(y))}catch(K){u.apply(void 0,[K])}}function L(){rc.removeEventListener("DOMContentLoaded",L);g.removeEventListener("load",L);z.ready()}function Q(k,n){return n.toUpperCase()}function J(k){return k.replace(rj,
"ms-").replace(Sg,Q)}function X(){this.expando=z.expando+X.uid++}function I(k,n,u){if(void 0===u&&1===k.nodeType)if(u="data-"+n.replace(tj,"-$\x26").toLowerCase(),u=k.getAttribute(u),"string"===typeof u){try{var y=u;u="true"===y?!0:"false"===y?!1:"null"===y?null:y===+y+""?+y:sj.test(y)?JSON.parse(y):y}catch(G){}ee.set(k,n,u)}else u=void 0;return u}function ka(k,n,u,y){var G,K=20,R=y?function(){return y.cur()}:function(){return z.css(k,n,"")},aa=R(),U=u&&u[3]||(z.cssNumber[n]?"":"px"),W=k.nodeType&&
(z.cssNumber[n]||"px"!==U&&+aa)&&xg.exec(z.css(k,n));if(W&&W[3]!==U){aa/=2;U=U||W[3];for(W=+aa||1;K--;)z.style(k,n,W+U),0>=(1-G)*(1-(G=R()/aa||.5))&&(K=0),W/=G;W*=2;z.style(k,n,W+U);u=u||[]}if(u){W=+W||+aa||0;var la=u[1]?W+(u[1]+1)*u[2]:+u[2];y&&(y.unit=U,y.start=W,y.end=la)}return la}function ua(k,n){for(var u,y,G=[],K=0,R=k.length;K<R;K++)if(y=k[K],y.style)if(u=y.style.display,n){if("none"===u&&(G[K]=pb.get(y,"display")||null,G[K]||(y.style.display="")),""===y.style.display&&Ge(y)){u=K;var aa=y.ownerDocument;
y=y.nodeName;var U=Hb[y];U||(aa=aa.body.appendChild(aa.createElement(y)),U=z.css(aa,"display"),aa.parentNode.removeChild(aa),"none"===U&&(U="block"),Hb[y]=U);aa=U;G[u]=aa}}else"none"!==u&&(G[K]="none",pb.set(y,"display",u));for(K=0;K<R;K++)null!=G[K]&&(k[K].style.display=G[K]);return k}function ra(k,n){var u="undefined"!==typeof k.getElementsByTagName?k.getElementsByTagName(n||"*"):"undefined"!==typeof k.querySelectorAll?k.querySelectorAll(n||"*"):[];return void 0===n||n&&t(k,n)?z.merge([k],u):u}
function Za(k,n){for(var u=0,y=k.length;u<y;u++)pb.set(k[u],"globalEval",!n||pb.get(n[u],"globalEval"))}function Na(k,n,u,y,G){for(var K,R,aa,U=n.createDocumentFragment(),W=[],la=0,sa=k.length;la<sa;la++)if((K=k[la])||0===K)if("object"===r(K))z.merge(W,K.nodeType?[K]:K);else if(Tg.test(K)){R=R||U.appendChild(n.createElement("div"));aa=(vj.exec(K)||["",""])[1].toLowerCase();aa=cf[aa]||cf._default;R.innerHTML=aa[1]+z.htmlPrefilter(K)+aa[2];for(aa=aa[0];aa--;)R=R.lastChild;z.merge(W,R.childNodes);R=
U.firstChild;R.textContent=""}else W.push(n.createTextNode(K));U.textContent="";for(la=0;K=W[la++];)if(y&&-1<z.inArray(K,y))G&&G.push(K);else if(k=Ug(K),R=ra(U.appendChild(K),"script"),k&&Za(R),u)for(aa=0;K=R[aa++];)wj.test(K.type||"")&&u.push(K);return U}function Mb(){return!0}function fb(){return!1}function Nb(k,n){a:{try{var u=rc.activeElement;break a}catch(y){}u=void 0}return k===u===("focus"===n)}function Oa(k,n,u,y,G,K){var R;if("object"===typeof n){"string"!==typeof u&&(y=y||u,u=void 0);for(R in n)Oa(k,
R,u,y,n[R],K);return k}null==y&&null==G?(G=u,y=u=void 0):null==G&&("string"===typeof u?(G=y,y=void 0):(G=y,y=u,u=void 0));if(!1===G)G=fb;else if(!G)return k;if(1===K){var aa=G;G=function(U){z().off(U);return aa.apply(this,arguments)};G.guid=aa.guid||(aa.guid=z.guid++)}return k.each(function(){z.event.add(this,n,G,y,u)})}function ke(k,n,u){u?(pb.set(k,n,!1),z.event.add(k,n,{namespace:!1,handler:function(y){var G=pb.get(this,n);if(y.isTrigger&1&&this[n])if(G.length)(z.event.special[n]||{}).delegateType&&
y.stopPropagation();else{G=Gd.call(arguments);pb.set(this,n,G);var K=u(this,n);this[n]();var R=pb.get(this,n);G!==R||K?pb.set(this,n,!1):R={};if(G!==R)return y.stopImmediatePropagation(),y.preventDefault(),R&&R.value}else G.length&&(pb.set(this,n,{value:z.event.trigger(z.extend(G[0],z.Event.prototype),G.slice(1),this)}),y.stopImmediatePropagation())}})):void 0===pb.get(k,n)&&z.event.add(k,n,Mb)}function Jc(k,n){return t(k,"table")&&t(11!==n.nodeType?n:n.firstChild,"tr")?z(k).children("tbody")[0]||
k:k}function pf(k){k.type=(null!==k.getAttribute("type"))+"/"+k.type;return k}function Ud(k){"true/"===(k.type||"").slice(0,5)?k.type=k.type.slice(5):k.removeAttribute("type");return k}function ce(k,n){var u,y,G;if(1===n.nodeType){if(pb.hasData(k)){var K=pb.get(k);if(G=K.events)for(y in pb.remove(n,"handle events"),G)for(K=0,u=G[y].length;K<u;K++)z.event.add(n,y,G[y][K])}ee.hasData(k)&&(k=ee.access(k),k=z.extend({},k),ee.set(n,k))}}function Nc(k,n,u,y){n=vd(n);var G,K=0,R=k.length,aa=R-1,U=n[0],W=
Wb(U);if(W||1<R&&"string"===typeof U&&!Sc.checkClone&&ji.test(U))return k.each(function(Vc){var vb=k.eq(Vc);W&&(n[0]=U.call(this,Vc,vb.html()));Nc(vb,n,u,y)});if(R){var la=Na(n,k[0].ownerDocument,!1,k,y);var sa=la.firstChild;1===la.childNodes.length&&(la=sa);if(sa||y){sa=z.map(ra(la,"script"),pf);for(G=sa.length;K<R;K++){var Ja=la;K!==aa&&(Ja=z.clone(Ja,!0,!0),G&&z.merge(sa,ra(Ja,"script")));u.call(k[K],Ja,K)}if(G)for(la=sa[sa.length-1].ownerDocument,z.map(sa,Ud),K=0;K<G;K++)Ja=sa[K],wj.test(Ja.type||
"")&&!pb.access(Ja,"globalEval")&&z.contains(la,Ja)&&(Ja.src&&"module"!==(Ja.type||"").toLowerCase()?z._evalUrl&&!Ja.noModule&&z._evalUrl(Ja.src,{nonce:Ja.nonce||Ja.getAttribute("nonce")},la):A(Ja.textContent.replace(Jf,""),Ja,la))}}return k}function Ee(k,n,u){for(var y=n?z.filter(n,k):k,G=0;null!=(n=y[G]);G++)u||1!==n.nodeType||z.cleanData(ra(n)),n.parentNode&&(u&&Ug(n)&&Za(ra(n,"script")),n.parentNode.removeChild(n));return k}function td(k,n,u){var y=k.style;if(u=u||Wg(k)){var G=u.getPropertyValue(n)||
u[n];""!==G||Ug(k)||(G=z.style(k,n));if(!Sc.pixelBoxStyles()&&Id.test(G)&&ub.test(n)){k=y.width;n=y.minWidth;var K=y.maxWidth;y.minWidth=y.maxWidth=y.width=G;G=u.width;y.width=k;y.minWidth=n;y.maxWidth=K}}return void 0!==G?G+"":G}function Pe(k,n){return{get:function(){if(k())delete this.get;else return(this.get=n).apply(this,arguments)}}}function Tb(k){var n=z.cssProps[k]||yj[k];if(n)return n;if(k in xj)return k;a:{n=k;for(var u=n[0].toUpperCase()+n.slice(1),y=Uc.length;y--;)if(n=Uc[y]+u,n in xj)break a;
n=void 0}return yj[k]=n||k}function de(k,n,u){return(k=xg.exec(n))?Math.max(0,k[2]-(u||0))+(k[3]||"px"):n}function Qe(k,n,u,y,G,K){var R="width"===n?1:0,aa=0,U=0;if(u===(y?"border":"content"))return 0;for(;4>R;R+=2)"margin"===u&&(U+=z.css(k,u+ma[R],!0,G)),y?("content"===u&&(U-=z.css(k,"padding"+ma[R],!0,G)),"margin"!==u&&(U-=z.css(k,"border"+ma[R]+"Width",!0,G))):(U+=z.css(k,"padding"+ma[R],!0,G),"padding"!==u?U+=z.css(k,"border"+ma[R]+"Width",!0,G):aa+=z.css(k,"border"+ma[R]+"Width",!0,G));!y&&0<=
K&&(U+=Math.max(0,Math.ceil(k["offset"+n[0].toUpperCase()+n.slice(1)]-K-U-aa-.5))||0);return U}function Bd(k,n,u){var y=Wg(k),G=(!Sc.boxSizingReliable()||u)&&"border-box"===z.css(k,"boxSizing",!1,y),K=G,R=td(k,n,y),aa="offset"+n[0].toUpperCase()+n.slice(1);if(Id.test(R)){if(!u)return R;R="auto"}(!Sc.boxSizingReliable()&&G||!Sc.reliableTrDimensions()&&t(k,"tr")||"auto"===R||!parseFloat(R)&&"inline"===z.css(k,"display",!1,y))&&k.getClientRects().length&&(G="border-box"===z.css(k,"boxSizing",!1,y),(K=
aa in k)&&(R=k[aa]));R=parseFloat(R)||0;return R+Qe(k,n,u||(G?"border":"content"),K,y,R)+"px"}function rd(k,n,u,y,G){return new rd.prototype.init(k,n,u,y,G)}function bf(){Ch&&(!1===rc.hidden&&g.requestAnimationFrame?g.requestAnimationFrame(bf):g.setTimeout(bf,z.fx.interval),z.fx.tick())}function ha(){g.setTimeout(function(){yg=void 0});return yg=Date.now()}function pa(k,n){var u=0,y={height:k};for(n=n?1:0;4>u;u+=2-n){var G=ma[u];y["margin"+G]=y["padding"+G]=k}n&&(y.opacity=y.width=k);return y}function Pa(k,
n,u){for(var y,G=(ic.tweeners[n]||[]).concat(ic.tweeners["*"]),K=0,R=G.length;K<R;K++)if(y=G[K].call(u,n,k))return y}function ob(k,n){var u,y;for(u in k){var G=J(u);var K=n[G];var R=k[u];Array.isArray(R)&&(K=R[1],R=k[u]=R[0]);u!==G&&(k[G]=R,delete k[u]);if((y=z.cssHooks[G])&&"expand"in y)for(u in R=y.expand(R),delete k[G],R)u in k||(k[u]=R[u],n[u]=K);else n[G]=K}}function ic(k,n,u){var y,G=0,K=ic.prefilters.length,R=z.Deferred().always(function(){delete aa.elem}),aa=function(){if(y)return!1;var W=
yg||ha();W=Math.max(0,U.startTime+U.duration-W);for(var la=1-(W/U.duration||0),sa=0,Ja=U.tweens.length;sa<Ja;sa++)U.tweens[sa].run(la);R.notifyWith(k,[U,la,W]);if(1>la&&Ja)return W;Ja||R.notifyWith(k,[U,1,0]);R.resolveWith(k,[U]);return!1},U=R.promise({elem:k,props:z.extend({},n),opts:z.extend(!0,{specialEasing:{},easing:z.easing._default},u),originalProperties:n,originalOptions:u,startTime:yg||ha(),duration:u.duration,tweens:[],createTween:function(W,la){W=z.Tween(k,U.opts,W,la,U.opts.specialEasing[W]||
U.opts.easing);U.tweens.push(W);return W},stop:function(W){var la=0,sa=W?U.tweens.length:0;if(y)return this;for(y=!0;la<sa;la++)U.tweens[la].run(1);W?(R.notifyWith(k,[U,1,0]),R.resolveWith(k,[U,W])):R.rejectWith(k,[U,W]);return this}});u=U.props;for(ob(u,U.opts.specialEasing);G<K;G++)if(n=ic.prefilters[G].call(U,k,u,U.opts))return Wb(n.stop)&&(z._queueHooks(U.elem,U.opts.queue).stop=n.stop.bind(n)),n;z.map(u,Pa,U);Wb(U.opts.start)&&U.opts.start.call(k,U);U.progress(U.opts.progress).done(U.opts.done,
U.opts.complete).fail(U.opts.fail).always(U.opts.always);z.fx.timer(z.extend(aa,{elem:k,anim:U,queue:U.opts.queue}));return U}function ud(k){return(k.match(Hf)||[]).join(" ")}function Vd(k){return k.getAttribute&&k.getAttribute("class")||""}function Fd(k){return Array.isArray(k)?k:"string"===typeof k?k.match(Hf)||[]:[]}function ag(k,n,u,y){var G;if(Array.isArray(n))z.each(n,function(K,R){u||wf.test(k)?y(k,R):ag(k+"["+("object"===typeof R&&null!=R?K:"")+"]",R,u,y)});else if(u||"object"!==r(n))y(k,
n);else for(G in n)ag(k+"["+G+"]",n[G],u,y)}function Dk(k){return function(n,u){"string"!==typeof n&&(u=n,n="*");var y=0,G=n.toLowerCase().match(Hf)||[];if(Wb(u))for(;n=G[y++];)"+"===n[0]?(n=n.slice(1)||"*",(k[n]=k[n]||[]).unshift(u)):(k[n]=k[n]||[]).push(u)}}function oj(k,n,u,y){function G(aa){var U;K[aa]=!0;z.each(k[aa]||[],function(W,la){W=la(n,u,y);if("string"===typeof W&&!R&&!K[W])return n.dataTypes.unshift(W),G(W),!1;if(R)return!(U=W)});return U}var K={},R=k===qe;return G(n.dataTypes[0])||!K["*"]&&
G("*")}function le(k,n){var u,y,G=z.ajaxSettings.flatOptions||{};for(u in n)void 0!==n[u]&&((G[u]?k:y||={})[u]=n[u]);y&&z.extend(!0,k,y);return k}function bg(k,n,u){for(var y,G,K,R,aa=k.contents,U=k.dataTypes;"*"===U[0];)U.shift(),void 0===y&&(y=k.mimeType||n.getResponseHeader("Content-Type"));if(y)for(G in aa)if(aa[G]&&aa[G].test(y)){U.unshift(G);break}if(U[0]in u)K=U[0];else{for(G in u){if(!U[0]||k.converters[G+" "+U[0]]){K=G;break}R||=G}K=K||R}if(K)return K!==U[0]&&U.unshift(K),u[K]}function Fe(k,
n,u,y){var G,K,R={},aa=k.dataTypes.slice();if(aa[1])for(W in k.converters)R[W.toLowerCase()]=k.converters[W];for(K=aa.shift();K;){k.responseFields[K]&&(u[k.responseFields[K]]=n);!U&&y&&k.dataFilter&&(n=k.dataFilter(n,k.dataType));var U=K;if(K=aa.shift())if("*"===K)K=U;else if("*"!==U&&U!==K){var W=R[U+" "+K]||R["* "+K];if(!W)for(G in R){var la=G.split(" ");if(la[1]===K&&(W=R[U+" "+la[0]]||R["* "+la[0]])){!0===W?W=R[G]:!0!==R[G]&&(K=la[0],aa.unshift(la[1]));break}}if(!0!==W)if(W&&k.throws)n=W(n);else try{n=
W(n)}catch(sa){return{state:"parsererror",error:W?sa:"No conversion from "+U+" to "+K}}}}return{state:"success",data:n}}var qc=[],pj=Object.getPrototypeOf,Gd=qc.slice,vd=qc.flat?function(k){return qc.flat.call(k)}:function(k){return qc.concat.apply([],k)},ii=qc.push,xh=qc.indexOf,Cd={},Hd=Cd.toString,Gf=Cd.hasOwnProperty,yh=Gf.toString,me=yh.call(Object),Sc={},Wb=function(k){return"function"===typeof k&&"number"!==typeof k.nodeType&&"function"!==typeof k.item},cg=function(k){return null!=k&&k===k.window},
rc=g.document,Ul={type:!0,src:!0,nonce:!0,noModule:!0},z=function(k,n){return new z.fn.init(k,n)};z.fn=z.prototype={jquery:"3.6.0",constructor:z,length:0,toArray:function(){return Gd.call(this)},get:function(k){return null==k?Gd.call(this):0>k?this[k+this.length]:this[k]},pushStack:function(k){k=z.merge(this.constructor(),k);k.prevObject=this;return k},each:function(k){return z.each(this,k)},map:function(k){return this.pushStack(z.map(this,function(n,u){return k.call(n,u,n)}))},slice:function(){return this.pushStack(Gd.apply(this,
arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(z.grep(this,function(k,n){return(n+1)%2}))},odd:function(){return this.pushStack(z.grep(this,function(k,n){return n%2}))},eq:function(k){var n=this.length;k=+k+(0>k?n:0);return this.pushStack(0<=k&&k<n?[this[k]]:[])},end:function(){return this.prevObject||this.constructor()},push:ii,sort:qc.sort,splice:qc.splice};z.extend=z.fn.extend=function(){var k,n,u,y=arguments[0]||{},G=
1,K=arguments.length,R=!1;"boolean"===typeof y&&(R=y,y=arguments[G]||{},G++);"object"===typeof y||Wb(y)||(y={});G===K&&(y=this,G--);for(;G<K;G++)if(null!=(k=arguments[G]))for(n in k){var aa=k[n];if("__proto__"!==n&&y!==aa)if(R&&aa&&(z.isPlainObject(aa)||(u=Array.isArray(aa)))){var U=y[n];U=u&&!Array.isArray(U)?[]:u||z.isPlainObject(U)?U:{};u=!1;y[n]=z.extend(R,U,aa)}else void 0!==aa&&(y[n]=aa)}return y};z.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(k){throw Error(k);
},noop:function(){},isPlainObject:function(k){if(!k||"[object Object]"!==Hd.call(k))return!1;k=pj(k);if(!k)return!0;k=Gf.call(k,"constructor")&&k.constructor;return"function"===typeof k&&yh.call(k)===me},isEmptyObject:function(k){for(var n in k)return!1;return!0},globalEval:function(k,n,u){A(k,{nonce:n&&n.nonce},u)},each:function(k,n){var u,y=0;if(B(k))for(u=k.length;y<u&&!1!==n.call(k[y],y,k[y]);y++);else for(y in k)if(!1===n.call(k[y],y,k[y]))break;return k},makeArray:function(k,n){n=n||[];null!=
k&&(B(Object(k))?z.merge(n,"string"===typeof k?[k]:k):ii.call(n,k));return n},inArray:function(k,n,u){return null==n?-1:xh.call(n,k,u)},merge:function(k,n){for(var u=+n.length,y=0,G=k.length;y<u;y++)k[G++]=n[y];k.length=G;return k},grep:function(k,n,u){for(var y=[],G=0,K=k.length,R=!u;G<K;G++)u=!n(k[G],G),u!==R&&y.push(k[G]);return y},map:function(k,n,u){var y,G=0,K=[];if(B(k))for(y=k.length;G<y;G++){var R=n(k[G],G,u);null!=R&&K.push(R)}else for(G in k)R=n(k[G],G,u),null!=R&&K.push(R);return vd(K)},
guid:1,support:Sc});"function"===typeof Symbol&&(z.fn[Symbol.iterator]=qc[Symbol.iterator]);z.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(k,n){Cd["[object "+n+"]"]=n.toLowerCase()});var dg=function(k){function n(P,V,T,fa){var oa,za,Da,xb,xa=V&&V.ownerDocument;var kb=V?V.nodeType:9;T=T||[];if("string"!==typeof P||!P||1!==kb&&9!==kb&&11!==kb)return T;if(!fa&&(kg(V),V=V||Ob,sd)){if(11!==kb&&(xb=Ej.exec(P)))if(oa=xb[1])if(9===kb)if(za=V.getElementById(oa)){if(za.id===
oa)return T.push(za),T}else return T;else{if(xa&&(za=xa.getElementById(oa))&&Ag(V,za)&&za.id===oa)return T.push(za),T}else{if(xb[2])return Ue.apply(T,V.getElementsByTagName(P)),T;if((oa=xb[3])&&Fc.getElementsByClassName&&V.getElementsByClassName)return Ue.apply(T,V.getElementsByClassName(oa)),T}if(!(!Fc.qsa||Hh[P+" "]||Wc&&Wc.test(P)||1===kb&&"object"===V.nodeName.toLowerCase())){oa=P;xa=V;if(1===kb&&(si.test(P)||jg.test(P))){xa=ti.test(P)&&sa(V.parentNode)||V;xa===V&&Fc.scope||((Da=V.getAttribute("id"))?
Da=Da.replace(Fj,Gj):V.setAttribute("id",Da=od));oa=Jh(P);for(kb=oa.length;kb--;)oa[kb]=(Da?"#"+Da:":scope")+" "+Vc(oa[kb]);oa=oa.join(",")}try{return Ue.apply(T,xa.querySelectorAll(oa)),T}catch(Xb){Hh(P,!0)}finally{Da===od&&V.removeAttribute("id")}}}return Qk(P.replace(Ih,"$1"),V,T,fa)}function u(){function P(T,fa){V.push(T+" ")>db.cacheLength&&delete P[V.shift()];return P[T+" "]=fa}var V=[];return P}function y(P){P[od]=!0;return P}function G(P){var V=Ob.createElement("fieldset");try{return!!P(V)}catch(T){return!1}finally{V.parentNode&&
V.parentNode.removeChild(V)}}function K(P,V){P=P.split("|");for(var T=P.length;T--;)db.attrHandle[P[T]]=V}function R(P,V){var T=V&&P,fa=T&&1===P.nodeType&&1===V.nodeType&&P.sourceIndex-V.sourceIndex;if(fa)return fa;if(T)for(;T=T.nextSibling;)if(T===V)return-1;return P?1:-1}function aa(P){return function(V){return"input"===V.nodeName.toLowerCase()&&V.type===P}}function U(P){return function(V){var T=V.nodeName.toLowerCase();return("input"===T||"button"===T)&&V.type===P}}function W(P){return function(V){return"form"in
V?V.parentNode&&!1===V.disabled?"label"in V?"label"in V.parentNode?V.parentNode.disabled===P:V.disabled===P:V.isDisabled===P||V.isDisabled!==!P&&Af(V)===P:V.disabled===P:"label"in V?V.disabled===P:!1}}function la(P){return y(function(V){V=+V;return y(function(T,fa){for(var oa,za=P([],T.length,V),Da=za.length;Da--;)T[oa=za[Da]]&&(T[oa]=!(fa[oa]=T[oa]))})})}function sa(P){return P&&"undefined"!==typeof P.getElementsByTagName&&P}function Ja(){}function Vc(P){for(var V=0,T=P.length,fa="";V<T;V++)fa+=
P[V].value;return fa}function vb(P,V,T){var fa=V.dir,oa=V.next,za=oa||fa,Da=T&&"parentNode"===za,xb=Bj++;return V.first?function(xa,kb,Xb){for(;xa=xa[fa];)if(1===xa.nodeType||Da)return P(xa,kb,Xb);return!1}:function(xa,kb,Xb){var wb,Pc=[Ma,xb];if(Xb)for(;xa=xa[fa];){if((1===xa.nodeType||Da)&&P(xa,kb,Xb))return!0}else for(;xa=xa[fa];)if(1===xa.nodeType||Da){var Xc=xa[od]||(xa[od]={});Xc=Xc[xa.uniqueID]||(Xc[xa.uniqueID]={});if(oa&&oa===xa.nodeName.toLowerCase())xa=xa[fa]||xa;else{if((wb=Xc[za])&&wb[0]===
Ma&&wb[1]===xb)return Pc[2]=wb[2];Xc[za]=Pc;if(Pc[2]=P(xa,kb,Xb))return!0}}return!1}}function nd(P){return 1<P.length?function(V,T,fa){for(var oa=P.length;oa--;)if(!P[oa](V,T,fa))return!1;return!0}:P[0]}function Cb(P,V,T,fa,oa){for(var za,Da=[],xb=0,xa=P.length,kb=null!=V;xb<xa;xb++)if(za=P[xb])if(!T||T(za,fa,oa))Da.push(za),kb&&V.push(xb);return Da}function Ie(P,V,T,fa,oa,za){fa&&!fa[od]&&(fa=Ie(fa));oa&&!oa[od]&&(oa=Ie(oa,za));return y(function(Da,xb,xa,kb){var Xb,wb=[],Pc=[],Xc=xb.length,xd;if(!(xd=
Da)){xd=V||"*";for(var yb=xa.nodeType?[xa]:xa,re=[],kd=0,gf=yb.length;kd<gf;kd++)n(xd,yb[kd],re);xd=re}xd=!P||!Da&&V?xd:Cb(xd,wb,P,xa,kb);yb=T?oa||(Da?P:Xc||fa)?[]:xb:xd;T&&T(xd,yb,xa,kb);if(fa){var We=Cb(yb,Pc);fa(We,[],xa,kb);for(xa=We.length;xa--;)if(Xb=We[xa])yb[Pc[xa]]=!(xd[Pc[xa]]=Xb)}if(Da){if(oa||P){if(oa){We=[];for(xa=yb.length;xa--;)(Xb=yb[xa])&&We.push(xd[xa]=Xb);oa(null,yb=[],We,kb)}for(xa=yb.length;xa--;)(Xb=yb[xa])&&-1<(We=oa?zf(Da,Xb):wb[xa])&&(Da[We]=!(xb[We]=Xb))}}else yb=Cb(yb===
xb?yb.splice(Xc,yb.length):yb),oa?oa(null,xb,yb,kb):Ue.apply(xb,yb)})}function Ab(P){var V,T,fa=P.length,oa=db.relative[P[0].type];var za=oa||db.relative[" "];for(var Da=oa?1:0,xb=vb(function(Xb){return Xb===V},za,!0),xa=vb(function(Xb){return-1<zf(V,Xb)},za,!0),kb=[function(Xb,wb,Pc){Xb=!oa&&(Pc||wb!==ac)||((V=wb).nodeType?xb(Xb,wb,Pc):xa(Xb,wb,Pc));V=null;return Xb}];Da<fa;Da++)if(za=db.relative[P[Da].type])kb=[vb(nd(kb),za)];else{za=db.filter[P[Da].type].apply(null,P[Da].matches);if(za[od]){for(T=
++Da;T<fa&&!db.relative[P[T].type];T++);return Ie(1<Da&&nd(kb),1<Da&&Vc(P.slice(0,Da-1).concat({value:" "===P[Da-2].type?"*":""})).replace(Ih,"$1"),za,Da<T&&Ab(P.slice(Da,T)),T<fa&&Ab(P=P.slice(T)),T<fa&&Vc(P))}kb.push(za)}return nd(kb)}function Jd(P,V){var T=0<V.length,fa=0<P.length,oa=function(za,Da,xb,xa,kb){var Xb,wb,Pc=0,Xc="0",xd=za&&[],yb=[],re=ac,kd=za||fa&&db.find.TAG("*",kb),gf=Ma+=null==re?1:Math.random()||.1,We=kd.length;for(kb&&(ac=Da==Ob||Da||kb);Xc!==We&&null!=(Xb=kd[Xc]);Xc++){if(fa&&
Xb){var vi=0;Da||Xb.ownerDocument==Ob||(kg(Xb),xb=!sd);for(;wb=P[vi++];)if(wb(Xb,Da||Ob,xb)){xa.push(Xb);break}kb&&(Ma=gf)}T&&((Xb=!wb&&Xb)&&Pc--,za&&xd.push(Xb))}Pc+=Xc;if(T&&Xc!==Pc){for(vi=0;wb=V[vi++];)wb(xd,yb,Da,xb);if(za){if(0<Pc)for(;Xc--;)xd[Xc]||yb[Xc]||(yb[Xc]=Ok.call(xa));yb=Cb(yb)}Ue.apply(xa,yb);kb&&!za&&0<yb.length&&1<Pc+V.length&&n.uniqueSort(xa)}kb&&(Ma=gf,ac=re);return xd};return T?y(oa):oa}var fe,ac,Oc,Je,Ob,Ka,sd,Wc,Qd,ah,Ag,od="sizzle"+1*new Date,Te=k.document,Ma=0,Bj=0,Mk=u(),
Nk=u(),bh=u(),Hh=u(),Ke=function(P,V){P===V&&(Je=!0);return 0},Sf={}.hasOwnProperty,df=[],Ok=df.pop,Pk=df.push,Ue=df.push,qi=df.slice,zf=function(P,V){for(var T=0,fa=P.length;T<fa;T++)if(P[T]===V)return T;return-1},ri=RegExp("[\\x20\\t\\r\\n\\f]+","g"),Ih=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),ig=RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),jg=RegExp("^[\\x20\\t\\r\\n\\f]*([\x3e+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),si=RegExp("[\\x20\\t\\r\\n\\f]|\x3e"),
Cj=RegExp(":((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)"),
$l=RegExp("^(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+$"),ef={ID:RegExp("^#((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)"),CLASS:RegExp("^\\.((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)"),TAG:RegExp("^((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+|[*])"),ATTR:RegExp("^\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\]"),
PSEUDO:RegExp("^:((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)"),
CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[\x3e+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?\x3d[^-]|$)",
"i")},Dj=/HTML$/i,ff=/^(?:input|select|textarea|button)$/i,Tf=/^h\d$/i,Sa=/^[^{]+\{\s*\[native \w/,Ej=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ti=/[+~]/,pd=RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),Mf=function(P,V){P="0x"+P.slice(1)-65536;return V?V:0>P?String.fromCharCode(P+65536):String.fromCharCode(P>>10|55296,P&1023|56320)},Fj=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Gj=function(P,V){return V?"\x00"===P?"\ufffd":P.slice(0,-1)+"\\"+P.charCodeAt(P.length-1).toString(16)+
" ":"\\"+P},Ve=function(){kg()},Af=vb(function(P){return!0===P.disabled&&"fieldset"===P.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Ue.apply(df=qi.call(Te.childNodes),Te.childNodes),df[Te.childNodes.length].nodeType}catch(P){Ue={apply:df.length?function(V,T){Pk.apply(V,qi.call(T))}:function(V,T){for(var fa=V.length,oa=0;V[fa++]=T[oa++];);V.length=fa-1}}}var Fc=n.support={};var Hj=n.isXML=function(P){var V=P&&(P.ownerDocument||P).documentElement;return!Dj.test(P&&P.namespaceURI||
V&&V.nodeName||"HTML")};var kg=n.setDocument=function(P){var V;P=P?P.ownerDocument||P:Te;if(P==Ob||9!==P.nodeType||!P.documentElement)return Ob;Ob=P;Ka=Ob.documentElement;sd=!Hj(Ob);Te!=Ob&&(V=Ob.defaultView)&&V.top!==V&&(V.addEventListener?V.addEventListener("unload",Ve,!1):V.attachEvent&&V.attachEvent("onunload",Ve));Fc.scope=G(function(T){Ka.appendChild(T).appendChild(Ob.createElement("div"));return"undefined"!==typeof T.querySelectorAll&&!T.querySelectorAll(":scope fieldset div").length});Fc.attributes=
G(function(T){T.className="i";return!T.getAttribute("className")});Fc.getElementsByTagName=G(function(T){T.appendChild(Ob.createComment(""));return!T.getElementsByTagName("*").length});Fc.getElementsByClassName=Sa.test(Ob.getElementsByClassName);Fc.getById=G(function(T){Ka.appendChild(T).id=od;return!Ob.getElementsByName||!Ob.getElementsByName(od).length});Fc.getById?(db.filter.ID=function(T){var fa=T.replace(pd,Mf);return function(oa){return oa.getAttribute("id")===fa}},db.find.ID=function(T,fa){if("undefined"!==
typeof fa.getElementById&&sd)return(T=fa.getElementById(T))?[T]:[]}):(db.filter.ID=function(T){var fa=T.replace(pd,Mf);return function(oa){return(oa="undefined"!==typeof oa.getAttributeNode&&oa.getAttributeNode("id"))&&oa.value===fa}},db.find.ID=function(T,fa){if("undefined"!==typeof fa.getElementById&&sd){var oa,za=fa.getElementById(T);if(za){if((oa=za.getAttributeNode("id"))&&oa.value===T)return[za];var Da=fa.getElementsByName(T);for(fa=0;za=Da[fa++];)if((oa=za.getAttributeNode("id"))&&oa.value===
T)return[za]}return[]}});db.find.TAG=Fc.getElementsByTagName?function(T,fa){if("undefined"!==typeof fa.getElementsByTagName)return fa.getElementsByTagName(T);if(Fc.qsa)return fa.querySelectorAll(T)}:function(T,fa){var oa=[],za=0;fa=fa.getElementsByTagName(T);if("*"===T){for(;T=fa[za++];)1===T.nodeType&&oa.push(T);return oa}return fa};db.find.CLASS=Fc.getElementsByClassName&&function(T,fa){if("undefined"!==typeof fa.getElementsByClassName&&sd)return fa.getElementsByClassName(T)};Qd=[];Wc=[];if(Fc.qsa=
Sa.test(Ob.querySelectorAll))G(function(T){Ka.appendChild(T).innerHTML="\x3ca id\x3d'"+od+"'\x3e\x3c/a\x3e\x3cselect id\x3d'"+od+"-\r\\' msallowcapture\x3d''\x3e\x3coption selected\x3d''\x3e\x3c/option\x3e\x3c/select\x3e";T.querySelectorAll("[msallowcapture^\x3d'']").length&&Wc.push("[*^$]\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");T.querySelectorAll("[selected]").length||Wc.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");
T.querySelectorAll("[id~\x3d"+od+"-]").length||Wc.push("~\x3d");var fa=Ob.createElement("input");fa.setAttribute("name","");T.appendChild(fa);T.querySelectorAll("[name\x3d'']").length||Wc.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");T.querySelectorAll(":checked").length||Wc.push(":checked");T.querySelectorAll("a#"+od+"+*").length||Wc.push(".#.+[+~]");T.querySelectorAll("\\\f");Wc.push("[\\r\\n\\f]")}),G(function(T){T.innerHTML="\x3ca href\x3d'' disabled\x3d'disabled'\x3e\x3c/a\x3e\x3cselect disabled\x3d'disabled'\x3e\x3coption/\x3e\x3c/select\x3e";
var fa=Ob.createElement("input");fa.setAttribute("type","hidden");T.appendChild(fa).setAttribute("name","D");T.querySelectorAll("[name\x3dd]").length&&Wc.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?\x3d");2!==T.querySelectorAll(":enabled").length&&Wc.push(":enabled",":disabled");Ka.appendChild(T).disabled=!0;2!==T.querySelectorAll(":disabled").length&&Wc.push(":enabled",":disabled");T.querySelectorAll("*,:x");Wc.push(",.*:")});(Fc.matchesSelector=Sa.test(ah=Ka.matches||Ka.webkitMatchesSelector||Ka.mozMatchesSelector||
Ka.oMatchesSelector||Ka.msMatchesSelector))&&G(function(T){Fc.disconnectedMatch=ah.call(T,"*");ah.call(T,"[s!\x3d'']:x");Qd.push("!\x3d",":((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")});
Wc=Wc.length&&new RegExp(Wc.join("|"));Qd=Qd.length&&new RegExp(Qd.join("|"));Ag=(V=Sa.test(Ka.compareDocumentPosition))||Sa.test(Ka.contains)?function(T,fa){var oa=9===T.nodeType?T.documentElement:T;fa=fa&&fa.parentNode;return T===fa||!!(fa&&1===fa.nodeType&&(oa.contains?oa.contains(fa):T.compareDocumentPosition&&T.compareDocumentPosition(fa)&16))}:function(T,fa){if(fa)for(;fa=fa.parentNode;)if(fa===T)return!0;return!1};Ke=V?function(T,fa){if(T===fa)return Je=!0,0;var oa=!T.compareDocumentPosition-
!fa.compareDocumentPosition;if(oa)return oa;oa=(T.ownerDocument||T)==(fa.ownerDocument||fa)?T.compareDocumentPosition(fa):1;return oa&1||!Fc.sortDetached&&fa.compareDocumentPosition(T)===oa?T==Ob||T.ownerDocument==Te&&Ag(Te,T)?-1:fa==Ob||fa.ownerDocument==Te&&Ag(Te,fa)?1:Oc?zf(Oc,T)-zf(Oc,fa):0:oa&4?-1:1}:function(T,fa){if(T===fa)return Je=!0,0;var oa=0,za=T.parentNode,Da=fa.parentNode,xb=[T],xa=[fa];if(!za||!Da)return T==Ob?-1:fa==Ob?1:za?-1:Da?1:Oc?zf(Oc,T)-zf(Oc,fa):0;if(za===Da)return R(T,fa);
for(;T=T.parentNode;)xb.unshift(T);for(T=fa;T=T.parentNode;)xa.unshift(T);for(;xb[oa]===xa[oa];)oa++;return oa?R(xb[oa],xa[oa]):xb[oa]==Te?-1:xa[oa]==Te?1:0};return Ob};n.matches=function(P,V){return n(P,null,null,V)};n.matchesSelector=function(P,V){kg(P);if(!(!Fc.matchesSelector||!sd||Hh[V+" "]||Qd&&Qd.test(V)||Wc&&Wc.test(V)))try{var T=ah.call(P,V);if(T||Fc.disconnectedMatch||P.document&&11!==P.document.nodeType)return T}catch(fa){Hh(V,!0)}return 0<n(V,Ob,null,[P]).length};n.contains=function(P,
V){(P.ownerDocument||P)!=Ob&&kg(P);return Ag(P,V)};n.attr=function(P,V){(P.ownerDocument||P)!=Ob&&kg(P);var T=db.attrHandle[V.toLowerCase()];T=T&&Sf.call(db.attrHandle,V.toLowerCase())?T(P,V,!sd):void 0;return void 0!==T?T:Fc.attributes||!sd?P.getAttribute(V):(T=P.getAttributeNode(V))&&T.specified?T.value:null};n.escape=function(P){return(P+"").replace(Fj,Gj)};n.error=function(P){throw Error("Syntax error, unrecognized expression: "+P);};n.uniqueSort=function(P){var V,T=[],fa=0,oa=0;Je=!Fc.detectDuplicates;
Oc=!Fc.sortStable&&P.slice(0);P.sort(Ke);if(Je){for(;V=P[oa++];)V===P[oa]&&(fa=T.push(oa));for(;fa--;)P.splice(T[fa],1)}Oc=null;return P};var ui=n.getText=function(P){var V="",T=0;var fa=P.nodeType;if(!fa)for(;fa=P[T++];)V+=ui(fa);else if(1===fa||9===fa||11===fa){if("string"===typeof P.textContent)return P.textContent;for(P=P.firstChild;P;P=P.nextSibling)V+=ui(P)}else if(3===fa||4===fa)return P.nodeValue;return V};var db=n.selectors={cacheLength:50,createPseudo:y,match:ef,attrHandle:{},find:{},relative:{"\x3e":{dir:"parentNode",
first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(P){P[1]=P[1].replace(pd,Mf);P[3]=(P[3]||P[4]||P[5]||"").replace(pd,Mf);"~\x3d"===P[2]&&(P[3]=" "+P[3]+" ");return P.slice(0,4)},CHILD:function(P){P[1]=P[1].toLowerCase();"nth"===P[1].slice(0,3)?(P[3]||n.error(P[0]),P[4]=+(P[4]?P[5]+(P[6]||1):2*("even"===P[3]||"odd"===P[3])),P[5]=+(P[7]+P[8]||"odd"===P[3])):P[3]&&n.error(P[0]);return P},PSEUDO:function(P){var V,T=!P[6]&&P[2];
if(ef.CHILD.test(P[0]))return null;P[3]?P[2]=P[4]||P[5]||"":T&&Cj.test(T)&&(V=Jh(T,!0))&&(V=T.indexOf(")",T.length-V)-T.length)&&(P[0]=P[0].slice(0,V),P[2]=T.slice(0,V));return P.slice(0,3)}},filter:{TAG:function(P){var V=P.replace(pd,Mf).toLowerCase();return"*"===P?function(){return!0}:function(T){return T.nodeName&&T.nodeName.toLowerCase()===V}},CLASS:function(P){var V=Mk[P+" "];return V||(V=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+P+"([\\x20\\t\\r\\n\\f]|$)"),Mk(P,function(T){return V.test("string"===
typeof T.className&&T.className||"undefined"!==typeof T.getAttribute&&T.getAttribute("class")||"")}))},ATTR:function(P,V,T){return function(fa){fa=n.attr(fa,P);if(null==fa)return"!\x3d"===V;if(!V)return!0;fa+="";return"\x3d"===V?fa===T:"!\x3d"===V?fa!==T:"^\x3d"===V?T&&0===fa.indexOf(T):"*\x3d"===V?T&&-1<fa.indexOf(T):"$\x3d"===V?T&&fa.slice(-T.length)===T:"~\x3d"===V?-1<(" "+fa.replace(ri," ")+" ").indexOf(T):"|\x3d"===V?fa===T||fa.slice(0,T.length+1)===T+"-":!1}},CHILD:function(P,V,T,fa,oa){var za=
"nth"!==P.slice(0,3),Da="last"!==P.slice(-4),xb="of-type"===V;return 1===fa&&0===oa?function(xa){return!!xa.parentNode}:function(xa,kb,Xb){var wb,Pc;kb=za!==Da?"nextSibling":"previousSibling";var Xc=xa.parentNode,xd=xb&&xa.nodeName.toLowerCase();Xb=!Xb&&!xb;var yb=!1;if(Xc){if(za){for(;kb;){for(wb=xa;wb=wb[kb];)if(xb?wb.nodeName.toLowerCase()===xd:1===wb.nodeType)return!1;var re=kb="only"===P&&!re&&"nextSibling"}return!0}re=[Da?Xc.firstChild:Xc.lastChild];if(Da&&Xb){wb=Xc;var kd=wb[od]||(wb[od]={});
kd=kd[wb.uniqueID]||(kd[wb.uniqueID]={});yb=kd[P]||[];yb=(Pc=yb[0]===Ma&&yb[1])&&yb[2];for(wb=Pc&&Xc.childNodes[Pc];wb=++Pc&&wb&&wb[kb]||(yb=Pc=0)||re.pop();)if(1===wb.nodeType&&++yb&&wb===xa){kd[P]=[Ma,Pc,yb];break}}else if(Xb&&(wb=xa,kd=wb[od]||(wb[od]={}),kd=kd[wb.uniqueID]||(kd[wb.uniqueID]={}),yb=kd[P]||[],yb=Pc=yb[0]===Ma&&yb[1]),!1===yb)for(;(wb=++Pc&&wb&&wb[kb]||(yb=Pc=0)||re.pop())&&((xb?wb.nodeName.toLowerCase()!==xd:1!==wb.nodeType)||!++yb||(Xb&&(kd=wb[od]||(wb[od]={}),kd=kd[wb.uniqueID]||
(kd[wb.uniqueID]={}),kd[P]=[Ma,yb]),wb!==xa)););yb-=oa;return yb===fa||0===yb%fa&&0<=yb/fa}}},PSEUDO:function(P,V){var T=db.pseudos[P]||db.setFilters[P.toLowerCase()]||n.error("unsupported pseudo: "+P);if(T[od])return T(V);if(1<T.length){var fa=[P,P,"",V];return db.setFilters.hasOwnProperty(P.toLowerCase())?y(function(oa,za){for(var Da,xb=T(oa,V),xa=xb.length;xa--;)Da=zf(oa,xb[xa]),oa[Da]=!(za[Da]=xb[xa])}):function(oa){return T(oa,0,fa)}}return T}},pseudos:{not:y(function(P){var V=[],T=[],fa=Kd(P.replace(Ih,
"$1"));return fa[od]?y(function(oa,za,Da,xb){xb=fa(oa,null,xb,[]);for(var xa=oa.length;xa--;)if(Da=xb[xa])oa[xa]=!(za[xa]=Da)}):function(oa,za,Da){V[0]=oa;fa(V,null,Da,T);V[0]=null;return!T.pop()}}),has:y(function(P){return function(V){return 0<n(P,V).length}}),contains:y(function(P){P=P.replace(pd,Mf);return function(V){return-1<(V.textContent||ui(V)).indexOf(P)}}),lang:y(function(P){$l.test(P||"")||n.error("unsupported lang: "+P);P=P.replace(pd,Mf).toLowerCase();return function(V){var T;do if(T=
sd?V.lang:V.getAttribute("xml:lang")||V.getAttribute("lang"))return T=T.toLowerCase(),T===P||0===T.indexOf(P+"-");while((V=V.parentNode)&&1===V.nodeType);return!1}}),target:function(P){var V=k.location&&k.location.hash;return V&&V.slice(1)===P.id},root:function(P){return P===Ka},focus:function(P){return P===Ob.activeElement&&(!Ob.hasFocus||Ob.hasFocus())&&!!(P.type||P.href||~P.tabIndex)},enabled:W(!1),disabled:W(!0),checked:function(P){var V=P.nodeName.toLowerCase();return"input"===V&&!!P.checked||
"option"===V&&!!P.selected},selected:function(P){P.parentNode&&P.parentNode.selectedIndex;return!0===P.selected},empty:function(P){for(P=P.firstChild;P;P=P.nextSibling)if(6>P.nodeType)return!1;return!0},parent:function(P){return!db.pseudos.empty(P)},header:function(P){return Tf.test(P.nodeName)},input:function(P){return ff.test(P.nodeName)},button:function(P){var V=P.nodeName.toLowerCase();return"input"===V&&"button"===P.type||"button"===V},text:function(P){var V;return"input"===P.nodeName.toLowerCase()&&
"text"===P.type&&(null==(V=P.getAttribute("type"))||"text"===V.toLowerCase())},first:la(function(){return[0]}),last:la(function(P,V){return[V-1]}),eq:la(function(P,V,T){return[0>T?T+V:T]}),even:la(function(P,V){for(var T=0;T<V;T+=2)P.push(T);return P}),odd:la(function(P,V){for(var T=1;T<V;T+=2)P.push(T);return P}),lt:la(function(P,V,T){for(V=0>T?T+V:T>V?V:T;0<=--V;)P.push(V);return P}),gt:la(function(P,V,T){for(T=0>T?T+V:T;++T<V;)P.push(T);return P})}};db.pseudos.nth=db.pseudos.eq;for(fe in{radio:!0,
checkbox:!0,file:!0,password:!0,image:!0})db.pseudos[fe]=aa(fe);for(fe in{submit:!0,reset:!0})db.pseudos[fe]=U(fe);Ja.prototype=db.filters=db.pseudos;db.setFilters=new Ja;var Jh=n.tokenize=function(P,V){var T,fa,oa,za,Da;if(za=Nk[P+" "])return V?0:za.slice(0);za=P;var xb=[];for(Da=db.preFilter;za;){if(!xa||(T=ig.exec(za)))T&&(za=za.slice(T[0].length)||za),xb.push(fa=[]);var xa=!1;if(T=jg.exec(za))xa=T.shift(),fa.push({value:xa,type:T[0].replace(Ih," ")}),za=za.slice(xa.length);for(oa in db.filter)!(T=
ef[oa].exec(za))||Da[oa]&&!(T=Da[oa](T))||(xa=T.shift(),fa.push({value:xa,type:oa,matches:T}),za=za.slice(xa.length));if(!xa)break}return V?za.length:za?n.error(P):Nk(P,xb).slice(0)};var Kd=n.compile=function(P,V){var T,fa=[],oa=[],za=bh[P+" "];if(!za){V||=Jh(P);for(T=V.length;T--;)za=Ab(V[T]),za[od]?fa.push(za):oa.push(za);za=bh(P,Jd(oa,fa));za.selector=P}return za};var Qk=n.select=function(P,V,T,fa){var oa,za,Da,xb="function"===typeof P&&P,xa=!fa&&Jh(P=xb.selector||P);T=T||[];if(1===xa.length){var kb=
xa[0]=xa[0].slice(0);if(2<kb.length&&"ID"===(za=kb[0]).type&&9===V.nodeType&&sd&&db.relative[kb[1].type]){V=(db.find.ID(za.matches[0].replace(pd,Mf),V)||[])[0];if(!V)return T;xb&&(V=V.parentNode);P=P.slice(kb.shift().value.length)}for(oa=ef.needsContext.test(P)?0:kb.length;oa--;){za=kb[oa];if(db.relative[Da=za.type])break;if(Da=db.find[Da])if(fa=Da(za.matches[0].replace(pd,Mf),ti.test(kb[0].type)&&sa(V.parentNode)||V)){kb.splice(oa,1);P=fa.length&&Vc(kb);if(!P)return Ue.apply(T,fa),T;break}}}(xb||
Kd(P,xa))(fa,V,!sd,T,!V||ti.test(P)&&sa(V.parentNode)||V);return T};Fc.sortStable=od.split("").sort(Ke).join("")===od;Fc.detectDuplicates=!!Je;kg();Fc.sortDetached=G(function(P){return P.compareDocumentPosition(Ob.createElement("fieldset"))&1});G(function(P){P.innerHTML="\x3ca href\x3d'#'\x3e\x3c/a\x3e";return"#"===P.firstChild.getAttribute("href")})||K("type|href|height|width",function(P,V,T){if(!T)return P.getAttribute(V,"type"===V.toLowerCase()?1:2)});Fc.attributes&&G(function(P){P.innerHTML="\x3cinput/\x3e";
P.firstChild.setAttribute("value","");return""===P.firstChild.getAttribute("value")})||K("value",function(P,V,T){if(!T&&"input"===P.nodeName.toLowerCase())return P.defaultValue});G(function(P){return null==P.getAttribute("disabled")})||K("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(P,V,T){var fa;if(!T)return!0===P[V]?V.toLowerCase():(fa=P.getAttributeNode(V))&&fa.specified?fa.value:null});return n}(g);z.find=
dg;z.expr=dg.selectors;z.expr[":"]=z.expr.pseudos;z.uniqueSort=z.unique=dg.uniqueSort;z.text=dg.getText;z.isXMLDoc=dg.isXML;z.contains=dg.contains;z.escapeSelector=dg.escape;var Rg=function(k,n,u){for(var y=[],G=void 0!==u;(k=k[n])&&9!==k.nodeType;)if(1===k.nodeType){if(G&&z(k).is(u))break;y.push(k)}return y},Ek=function(k,n){for(var u=[];k;k=k.nextSibling)1===k.nodeType&&k!==n&&u.push(k);return u},Fk=z.expr.match.needsContext,Re=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;z.filter=
function(k,n,u){var y=n[0];u&&(k=":not("+k+")");return 1===n.length&&1===y.nodeType?z.find.matchesSelector(y,k)?[y]:[]:z.find.matches(k,z.grep(n,function(G){return 1===G.nodeType}))};z.fn.extend({find:function(k){var n,u=this.length,y=this;if("string"!==typeof k)return this.pushStack(z(k).filter(function(){for(n=0;n<u;n++)if(z.contains(y[n],this))return!0}));var G=this.pushStack([]);for(n=0;n<u;n++)z.find(k,y[n],G);return 1<u?z.uniqueSort(G):G},filter:function(k){return this.pushStack(H(this,k||[],
!1))},not:function(k){return this.pushStack(H(this,k||[],!0))},is:function(k){return!!H(this,"string"===typeof k&&Fk.test(k)?z(k):k||[],!1).length}});var eg=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(z.fn.init=function(k,n,u){if(!k)return this;u=u||qf;if("string"===typeof k){var y="\x3c"===k[0]&&"\x3e"===k[k.length-1]&&3<=k.length?[null,k,null]:eg.exec(k);if(!y||!y[1]&&n)return!n||n.jquery?(n||u).find(k):this.constructor(n).find(k);if(y[1]){if(n=n instanceof z?n[0]:n,z.merge(this,z.parseHTML(y[1],n&&
n.nodeType?n.ownerDocument||n:rc,!0)),Re.test(y[1])&&z.isPlainObject(n))for(y in n)if(Wb(this[y]))this[y](n[y]);else this.attr(y,n[y])}else if(k=rc.getElementById(y[2]))this[0]=k,this.length=1;return this}return k.nodeType?(this[0]=k,this.length=1,this):Wb(k)?void 0!==u.ready?u.ready(k):k(z):z.makeArray(k,this)}).prototype=z.fn;var qf=z(rc);var tc=/^(?:parents|prev(?:Until|All))/,Gk={children:!0,contents:!0,next:!0,prev:!0};z.fn.extend({has:function(k){var n=z(k,this),u=n.length;return this.filter(function(){for(var y=
0;y<u;y++)if(z.contains(this,n[y]))return!0})},closest:function(k,n){var u,y=0,G=this.length,K=[],R="string"!==typeof k&&z(k);if(!Fk.test(k))for(;y<G;y++)for(u=this[y];u&&u!==n;u=u.parentNode)if(11>u.nodeType&&(R?-1<R.index(u):1===u.nodeType&&z.find.matchesSelector(u,k))){K.push(u);break}return this.pushStack(1<K.length?z.uniqueSort(K):K)},index:function(k){return k?"string"===typeof k?xh.call(z(k),this[0]):xh.call(this,k.jquery?k[0]:k):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},
add:function(k,n){return this.pushStack(z.uniqueSort(z.merge(this.get(),z(k,n))))},addBack:function(k){return this.add(null==k?this.prevObject:this.prevObject.filter(k))}});z.each({parent:function(k){return(k=k.parentNode)&&11!==k.nodeType?k:null},parents:function(k){return Rg(k,"parentNode")},parentsUntil:function(k,n,u){return Rg(k,"parentNode",u)},next:function(k){return E(k,"nextSibling")},prev:function(k){return E(k,"previousSibling")},nextAll:function(k){return Rg(k,"nextSibling")},prevAll:function(k){return Rg(k,
"previousSibling")},nextUntil:function(k,n,u){return Rg(k,"nextSibling",u)},prevUntil:function(k,n,u){return Rg(k,"previousSibling",u)},siblings:function(k){return Ek((k.parentNode||{}).firstChild,k)},children:function(k){return Ek(k.firstChild)},contents:function(k){if(null!=k.contentDocument&&pj(k.contentDocument))return k.contentDocument;t(k,"template")&&(k=k.content||k);return z.merge([],k.childNodes)}},function(k,n){z.fn[k]=function(u,y){var G=z.map(this,n,u);"Until"!==k.slice(-5)&&(y=u);y&&
"string"===typeof y&&(G=z.filter(y,G));1<this.length&&(Gk[k]||z.uniqueSort(G),tc.test(k)&&G.reverse());return this.pushStack(G)}});var Hf=/[^\x20\t\r\n\f]+/g;z.Callbacks=function(k){k="string"===typeof k?D(k):z.extend({},k);var n,u,y,G,K=[],R=[],aa=-1,U=function(){G=G||k.once;for(y=n=!0;R.length;aa=-1)for(u=R.shift();++aa<K.length;)!1===K[aa].apply(u[0],u[1])&&k.stopOnFalse&&(aa=K.length,u=!1);k.memory||(u=!1);n=!1;G&&(K=u?[]:"")},W={add:function(){K&&(u&&!n&&(aa=K.length-1,R.push(u)),function Ja(sa){z.each(sa,
function(Vc,vb){Wb(vb)?k.unique&&W.has(vb)||K.push(vb):vb&&vb.length&&"string"!==r(vb)&&Ja(vb)})}(arguments),u&&!n&&U());return this},remove:function(){z.each(arguments,function(la,sa){for(var Ja;-1<(Ja=z.inArray(sa,K,Ja));)K.splice(Ja,1),Ja<=aa&&aa--});return this},has:function(la){return la?-1<z.inArray(la,K):0<K.length},empty:function(){K&&=[];return this},disable:function(){G=R=[];K=u="";return this},disabled:function(){return!K},lock:function(){G=R=[];u||n||(K=u="");return this},locked:function(){return!!G},
fireWith:function(la,sa){G||(sa=sa||[],sa=[la,sa.slice?sa.slice():sa],R.push(sa),n||U());return this},fire:function(){W.fireWith(this,arguments);return this},fired:function(){return!!y}};return W};z.extend({Deferred:function(k){var n=[["notify","progress",z.Callbacks("memory"),z.Callbacks("memory"),2],["resolve","done",z.Callbacks("once memory"),z.Callbacks("once memory"),0,"resolved"],["reject","fail",z.Callbacks("once memory"),z.Callbacks("once memory"),1,"rejected"]],u="pending",y={state:function(){return u},
always:function(){G.done(arguments).fail(arguments);return this},"catch":function(K){return y.then(null,K)},pipe:function(){var K=arguments;return z.Deferred(function(R){z.each(n,function(aa,U){var W=Wb(K[U[4]])&&K[U[4]];G[U[1]](function(){var la=W&&W.apply(this,arguments);if(la&&Wb(la.promise))la.promise().progress(R.notify).done(R.resolve).fail(R.reject);else R[U[0]+"With"](this,W?[la]:arguments)})});K=null}).promise()},then:function(K,R,aa){function U(la,sa,Ja,Vc){return function(){var vb=this,
nd=arguments,Cb=function(){if(!(la<W)){var Ab=Ja.apply(vb,nd);if(Ab===sa.promise())throw new TypeError("Thenable self-resolution");var Jd=Ab&&("object"===typeof Ab||"function"===typeof Ab)&&Ab.then;Wb(Jd)?Vc?Jd.call(Ab,U(W,sa,x,Vc),U(W,sa,v,Vc)):(W++,Jd.call(Ab,U(W,sa,x,Vc),U(W,sa,v,Vc),U(W,sa,x,sa.notifyWith))):(Ja!==x&&(vb=void 0,nd=[Ab]),(Vc||sa.resolveWith)(vb,nd))}},Ie=Vc?Cb:function(){try{Cb()}catch(Ab){z.Deferred.exceptionHook&&z.Deferred.exceptionHook(Ab,Ie.stackTrace),la+1>=W&&(Ja!==v&&(vb=
void 0,nd=[Ab]),sa.rejectWith(vb,nd))}};la?Ie():(z.Deferred.getStackHook&&(Ie.stackTrace=z.Deferred.getStackHook()),g.setTimeout(Ie))}}var W=0;return z.Deferred(function(la){n[0][3].add(U(0,la,Wb(aa)?aa:x,la.notifyWith));n[1][3].add(U(0,la,Wb(K)?K:x));n[2][3].add(U(0,la,Wb(R)?R:v))}).promise()},promise:function(K){return null!=K?z.extend(K,y):y}},G={};z.each(n,function(K,R){var aa=R[2],U=R[5];y[R[1]]=aa.add;U&&aa.add(function(){u=U},n[3-K][2].disable,n[3-K][3].disable,n[0][2].lock,n[0][3].lock);aa.add(R[3].fire);
G[R[0]]=function(){G[R[0]+"With"](this===G?void 0:this,arguments);return this};G[R[0]+"With"]=aa.fireWith});y.promise(G);k&&k.call(G,G);return G},when:function(k){var n=arguments.length,u=n,y=Array(u),G=Gd.call(arguments),K=z.Deferred(),R=function(aa){return function(U){y[aa]=this;G[aa]=1<arguments.length?Gd.call(arguments):U;--n||K.resolveWith(y,G)}};if(1>=n&&(C(k,K.done(R(u)).resolve,K.reject,!n),"pending"===K.state()||Wb(G[u]&&G[u].then)))return K.then();for(;u--;)C(G[u],R(u),K.reject);return K.promise()}});
var qj=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;z.Deferred.exceptionHook=function(k,n){g.console&&g.console.warn&&k&&qj.test(k.name)&&g.console.warn("jQuery.Deferred exception: "+k.message,k.stack,n)};z.readyException=function(k){g.setTimeout(function(){throw k;})};var Se=z.Deferred();z.fn.ready=function(k){Se.then(k).catch(function(n){z.readyException(n)});return this};z.extend({isReady:!1,readyWait:1,ready:function(k){(!0===k?--z.readyWait:z.isReady)||(z.isReady=!0,!0!==k&&0<--z.readyWait||
Se.resolveWith(rc,[z]))}});z.ready.then=Se.then;"complete"===rc.readyState||"loading"!==rc.readyState&&!rc.documentElement.doScroll?g.setTimeout(z.ready):(rc.addEventListener("DOMContentLoaded",L),g.addEventListener("load",L));var rf=function(k,n,u,y,G,K,R){var aa=0,U=k.length,W=null==u;if("object"===r(u))for(aa in G=!0,u)rf(k,n,aa,u[aa],!0,K,R);else if(void 0!==y&&(G=!0,Wb(y)||(R=!0),W&&(R?(n.call(k,y),n=null):(W=n,n=function(la,sa,Ja){return W.call(z(la),Ja)})),n))for(;aa<U;aa++)n(k[aa],u,R?y:y.call(k[aa],
aa,n(k[aa],u)));return G?k:W?n.call(k):U?n(k[0],u):K},rj=/^-ms-/,Sg=/-([a-z])/g,zh=function(k){return 1===k.nodeType||9===k.nodeType||!+k.nodeType};X.uid=1;X.prototype={cache:function(k){var n=k[this.expando];n||(n={},zh(k)&&(k.nodeType?k[this.expando]=n:Object.defineProperty(k,this.expando,{value:n,configurable:!0})));return n},set:function(k,n,u){var y;k=this.cache(k);if("string"===typeof n)k[J(n)]=u;else for(y in n)k[J(y)]=n[y];return k},get:function(k,n){return void 0===n?this.cache(k):k[this.expando]&&
k[this.expando][J(n)]},access:function(k,n,u){if(void 0===n||n&&"string"===typeof n&&void 0===u)return this.get(k,n);this.set(k,n,u);return void 0!==u?u:n},remove:function(k,n){var u,y=k[this.expando];if(void 0!==y){if(void 0!==n)for(Array.isArray(n)?n=n.map(J):(n=J(n),n=n in y?[n]:n.match(Hf)||[]),u=n.length;u--;)delete y[n[u]];if(void 0===n||z.isEmptyObject(y))k.nodeType?k[this.expando]=void 0:delete k[this.expando]}},hasData:function(k){k=k[this.expando];return void 0!==k&&!z.isEmptyObject(k)}};
var pb=new X,ee=new X,sj=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tj=/[A-Z]/g;z.extend({hasData:function(k){return ee.hasData(k)||pb.hasData(k)},data:function(k,n,u){return ee.access(k,n,u)},removeData:function(k,n){ee.remove(k,n)},_data:function(k,n,u){return pb.access(k,n,u)},_removeData:function(k,n){pb.remove(k,n)}});z.fn.extend({data:function(k,n){var u,y=this[0],G=y&&y.attributes;if(void 0===k){if(this.length){var K=ee.get(y);if(1===y.nodeType&&!pb.get(y,"hasDataAttrs")){for(u=G.length;u--;)if(G[u]){var R=
G[u].name;0===R.indexOf("data-")&&(R=J(R.slice(5)),I(y,R,K[R]))}pb.set(y,"hasDataAttrs",!0)}}return K}return"object"===typeof k?this.each(function(){ee.set(this,k)}):rf(this,function(aa){if(y&&void 0===aa){var U=ee.get(y,k);if(void 0!==U)return U;U=I(y,k);if(void 0!==U)return U}else this.each(function(){ee.set(this,k,aa)})},null,n,1<arguments.length,null,!0)},removeData:function(k){return this.each(function(){ee.remove(this,k)})}});z.extend({queue:function(k,n,u){if(k){n=(n||"fx")+"queue";var y=pb.get(k,
n);u&&(!y||Array.isArray(u)?y=pb.access(k,n,z.makeArray(u)):y.push(u));return y||[]}},dequeue:function(k,n){n=n||"fx";var u=z.queue(k,n),y=u.length,G=u.shift(),K=z._queueHooks(k,n),R=function(){z.dequeue(k,n)};"inprogress"===G&&(G=u.shift(),y--);G&&("fx"===n&&u.unshift("inprogress"),delete K.stop,G.call(k,R,K));!y&&K&&K.empty.fire()},_queueHooks:function(k,n){var u=n+"queueHooks";return pb.get(k,u)||pb.access(k,u,{empty:z.Callbacks("once memory").add(function(){pb.remove(k,[n+"queue",u])})})}});z.fn.extend({queue:function(k,
n){var u=2;"string"!==typeof k&&(n=k,k="fx",u--);return arguments.length<u?z.queue(this[0],k):void 0===n?this:this.each(function(){var y=z.queue(this,k,n);z._queueHooks(this,k);"fx"===k&&"inprogress"!==y[0]&&z.dequeue(this,k)})},dequeue:function(k){return this.each(function(){z.dequeue(this,k)})},clearQueue:function(k){return this.queue(k||"fx",[])},promise:function(k,n){var u,y=1,G=z.Deferred(),K=this,R=this.length,aa=function(){--y||G.resolveWith(K,[K])};"string"!==typeof k&&(n=k,k=void 0);for(k=
k||"fx";R--;)(u=pb.get(K[R],k+"queueHooks"))&&u.empty&&(y++,u.empty.add(aa));aa();return G.promise(n)}});var uj=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,xg=new RegExp("^(?:([+-])\x3d|)("+uj+")([a-z%]*)$","i"),ma=["Top","Right","Bottom","Left"],fg=rc.documentElement,Ug=function(k){return z.contains(k.ownerDocument,k)},If={composed:!0};fg.getRootNode&&(Ug=function(k){return z.contains(k.ownerDocument,k)||k.getRootNode(If)===k.ownerDocument});var Ge=function(k,n){k=n||k;return"none"===k.style.display||
""===k.style.display&&Ug(k)&&"none"===z.css(k,"display")},Hb={};z.fn.extend({show:function(){return ua(this,!0)},hide:function(){return ua(this)},toggle:function(k){return"boolean"===typeof k?k?this.show():this.hide():this.each(function(){Ge(this)?z(this).show():z(this).hide()})}});var Vg=/^(?:checkbox|radio)$/i,vj=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,wj=/^$|^module$|\/(?:java|ecma)script/i;(function(){var k=rc.createDocumentFragment().appendChild(rc.createElement("div")),n=rc.createElement("input");
n.setAttribute("type","radio");n.setAttribute("checked","checked");n.setAttribute("name","t");k.appendChild(n);Sc.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked;k.innerHTML="\x3ctextarea\x3ex\x3c/textarea\x3e";Sc.noCloneChecked=!!k.cloneNode(!0).lastChild.defaultValue;k.innerHTML="\x3coption\x3e\x3c/option\x3e";Sc.option=!!k.lastChild})();var cf={thead:[1,"\x3ctable\x3e","\x3c/table\x3e"],col:[2,"\x3ctable\x3e\x3ccolgroup\x3e","\x3c/colgroup\x3e\x3c/table\x3e"],tr:[2,"\x3ctable\x3e\x3ctbody\x3e",
"\x3c/tbody\x3e\x3c/table\x3e"],td:[3,"\x3ctable\x3e\x3ctbody\x3e\x3ctr\x3e","\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e"],_default:[0,"",""]};cf.tbody=cf.tfoot=cf.colgroup=cf.caption=cf.thead;cf.th=cf.td;Sc.option||(cf.optgroup=cf.option=[1,"\x3cselect multiple\x3d'multiple'\x3e","\x3c/select\x3e"]);var Tg=/<|&#?\w+;/,Ah=/^([^.]*)(?:\.(.+)|)/;z.event={global:{},add:function(k,n,u,y,G){var K,R,aa,U;var W=pb.get(k);if(zh(k)){if(u.handler){var la=u;u=la.handler;G=la.selector}G&&z.find.matchesSelector(fg,
G);u.guid||(u.guid=z.guid++);(R=W.events)||(R=W.events=Object.create(null));(K=W.handle)||(K=W.handle=function(vb){return"undefined"!==typeof z&&z.event.triggered!==vb.type?z.event.dispatch.apply(k,arguments):void 0});n=(n||"").match(Hf)||[""];for(W=n.length;W--;){var sa=Ah.exec(n[W])||[];var Ja=aa=sa[1];var Vc=(sa[2]||"").split(".").sort();Ja&&(sa=z.event.special[Ja]||{},Ja=(G?sa.delegateType:sa.bindType)||Ja,sa=z.event.special[Ja]||{},aa=z.extend({type:Ja,origType:aa,data:y,handler:u,guid:u.guid,
selector:G,needsContext:G&&z.expr.match.needsContext.test(G),namespace:Vc.join(".")},la),(U=R[Ja])||(U=R[Ja]=[],U.delegateCount=0,sa.setup&&!1!==sa.setup.call(k,y,Vc,K)||k.addEventListener&&k.addEventListener(Ja,K)),sa.add&&(sa.add.call(k,aa),aa.handler.guid||(aa.handler.guid=u.guid)),G?U.splice(U.delegateCount++,0,aa):U.push(aa),z.event.global[Ja]=!0)}}},remove:function(k,n,u,y,G){var K,R,aa,U,W,la=pb.hasData(k)&&pb.get(k);if(la&&(aa=la.events)){n=(n||"").match(Hf)||[""];for(U=n.length;U--;){var sa=
Ah.exec(n[U])||[];var Ja=W=sa[1];var Vc=(sa[2]||"").split(".").sort();if(Ja){var vb=z.event.special[Ja]||{};Ja=(y?vb.delegateType:vb.bindType)||Ja;var nd=aa[Ja]||[];sa=sa[2]&&new RegExp("(^|\\.)"+Vc.join("\\.(?:.*\\.|)")+"(\\.|$)");for(R=K=nd.length;K--;){var Cb=nd[K];!G&&W!==Cb.origType||u&&u.guid!==Cb.guid||sa&&!sa.test(Cb.namespace)||y&&y!==Cb.selector&&("**"!==y||!Cb.selector)||(nd.splice(K,1),Cb.selector&&nd.delegateCount--,vb.remove&&vb.remove.call(k,Cb))}R&&!nd.length&&(vb.teardown&&!1!==vb.teardown.call(k,
Vc,la.handle)||z.removeEvent(k,Ja,la.handle),delete aa[Ja])}else for(Ja in aa)z.event.remove(k,Ja+n[U],u,y,!0)}z.isEmptyObject(aa)&&pb.remove(k,"handle events")}},dispatch:function(k){var n,u,y,G=Array(arguments.length),K=z.event.fix(k);var R=(pb.get(this,"events")||Object.create(null))[K.type]||[];var aa=z.event.special[K.type]||{};G[0]=K;for(n=1;n<arguments.length;n++)G[n]=arguments[n];K.delegateTarget=this;if(!aa.preDispatch||!1!==aa.preDispatch.call(this,K)){var U=z.event.handlers.call(this,K,
R);for(n=0;(y=U[n++])&&!K.isPropagationStopped();)for(K.currentTarget=y.elem,R=0;(u=y.handlers[R++])&&!K.isImmediatePropagationStopped();)if(!K.rnamespace||!1===u.namespace||K.rnamespace.test(u.namespace))K.handleObj=u,K.data=u.data,u=((z.event.special[u.origType]||{}).handle||u.handler).apply(y.elem,G),void 0!==u&&!1===(K.result=u)&&(K.preventDefault(),K.stopPropagation());aa.postDispatch&&aa.postDispatch.call(this,K);return K.result}},handlers:function(k,n){var u,y=[],G=n.delegateCount,K=k.target;
if(G&&K.nodeType&&!("click"===k.type&&1<=k.button))for(;K!==this;K=K.parentNode||this)if(1===K.nodeType&&("click"!==k.type||!0!==K.disabled)){var R=[];var aa={};for(u=0;u<G;u++){var U=n[u];var W=U.selector+" ";void 0===aa[W]&&(aa[W]=U.needsContext?-1<z(W,this).index(K):z.find(W,this,null,[K]).length);aa[W]&&R.push(U)}R.length&&y.push({elem:K,handlers:R})}G<n.length&&y.push({elem:this,handlers:n.slice(G)});return y},addProp:function(k,n){Object.defineProperty(z.Event.prototype,k,{enumerable:!0,configurable:!0,
get:Wb(n)?function(){if(this.originalEvent)return n(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[k]},set:function(u){Object.defineProperty(this,k,{enumerable:!0,configurable:!0,writable:!0,value:u})}})},fix:function(k){return k[z.expando]?k:new z.Event(k)},special:{load:{noBubble:!0},click:{setup:function(k){k=this||k;Vg.test(k.type)&&k.click&&t(k,"input")&&ke(k,"click",Mb);return!1},trigger:function(k){k=this||k;Vg.test(k.type)&&k.click&&t(k,"input")&&ke(k,"click");
return!0},_default:function(k){k=k.target;return Vg.test(k.type)&&k.click&&t(k,"input")&&pb.get(k,"click")||t(k,"a")}},beforeunload:{postDispatch:function(k){void 0!==k.result&&k.originalEvent&&(k.originalEvent.returnValue=k.result)}}}};z.removeEvent=function(k,n,u){k.removeEventListener&&k.removeEventListener(n,u)};z.Event=function(k,n){if(!(this instanceof z.Event))return new z.Event(k,n);k&&k.type?(this.originalEvent=k,this.type=k.type,this.isDefaultPrevented=k.defaultPrevented||void 0===k.defaultPrevented&&
!1===k.returnValue?Mb:fb,this.target=k.target&&3===k.target.nodeType?k.target.parentNode:k.target,this.currentTarget=k.currentTarget,this.relatedTarget=k.relatedTarget):this.type=k;n&&z.extend(this,n);this.timeStamp=k&&k.timeStamp||Date.now();this[z.expando]=!0};z.Event.prototype={constructor:z.Event,isDefaultPrevented:fb,isPropagationStopped:fb,isImmediatePropagationStopped:fb,isSimulated:!1,preventDefault:function(){var k=this.originalEvent;this.isDefaultPrevented=Mb;k&&!this.isSimulated&&k.preventDefault()},
stopPropagation:function(){var k=this.originalEvent;this.isPropagationStopped=Mb;k&&!this.isSimulated&&k.stopPropagation()},stopImmediatePropagation:function(){var k=this.originalEvent;this.isImmediatePropagationStopped=Mb;k&&!this.isSimulated&&k.stopImmediatePropagation();this.stopPropagation()}};z.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,
buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},z.event.addProp);z.each({focus:"focusin",blur:"focusout"},function(k,n){z.event.special[k]={setup:function(){ke(this,k,Nb);return!1},trigger:function(){ke(this,k);return!0},_default:function(){return!0},delegateType:n}});z.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(k,n){z.event.special[k]=
{delegateType:n,bindType:n,handle:function(u){var y=u.relatedTarget,G=u.handleObj;if(!y||y!==this&&!z.contains(this,y)){u.type=G.origType;var K=G.handler.apply(this,arguments);u.type=n}return K}}});z.fn.extend({on:function(k,n,u,y){return Oa(this,k,n,u,y)},one:function(k,n,u,y){return Oa(this,k,n,u,y,1)},off:function(k,n,u){if(k&&k.preventDefault&&k.handleObj){var y=k.handleObj;z(k.delegateTarget).off(y.namespace?y.origType+"."+y.namespace:y.origType,y.selector,y.handler);return this}if("object"===
typeof k){for(y in k)this.off(y,n,k[y]);return this}if(!1===n||"function"===typeof n)u=n,n=void 0;!1===u&&(u=fb);return this.each(function(){z.event.remove(this,k,u,n)})}});var Tc=/<script|<style|<link/i,ji=/checked\s*(?:[^=]|=\s*.checked.)/i,Jf=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;z.extend({htmlPrefilter:function(k){return k},clone:function(k,n,u){var y,G=k.cloneNode(!0),K=Ug(k);if(!(Sc.noCloneChecked||1!==k.nodeType&&11!==k.nodeType||z.isXMLDoc(k))){var R=ra(G);var aa=ra(k);var U=0;for(y=
aa.length;U<y;U++){var W=aa[U],la=R[U],sa=la.nodeName.toLowerCase();if("input"===sa&&Vg.test(W.type))la.checked=W.checked;else if("input"===sa||"textarea"===sa)la.defaultValue=W.defaultValue}}if(n)if(u)for(aa=aa||ra(k),R=R||ra(G),U=0,y=aa.length;U<y;U++)ce(aa[U],R[U]);else ce(k,G);R=ra(G,"script");0<R.length&&Za(R,!K&&ra(k,"script"));return G},cleanData:function(k){for(var n,u,y,G=z.event.special,K=0;void 0!==(u=k[K]);K++)if(zh(u)){if(n=u[pb.expando]){if(n.events)for(y in n.events)G[y]?z.event.remove(u,
y):z.removeEvent(u,y,n.handle);u[pb.expando]=void 0}u[ee.expando]&&(u[ee.expando]=void 0)}}});z.fn.extend({detach:function(k){return Ee(this,k,!0)},remove:function(k){return Ee(this,k)},text:function(k){return rf(this,function(n){return void 0===n?z.text(this):this.empty().each(function(){if(1===this.nodeType||11===this.nodeType||9===this.nodeType)this.textContent=n})},null,k,arguments.length)},append:function(){return Nc(this,arguments,function(k){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||
Jc(this,k).appendChild(k)})},prepend:function(){return Nc(this,arguments,function(k){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=Jc(this,k);n.insertBefore(k,n.firstChild)}})},before:function(){return Nc(this,arguments,function(k){this.parentNode&&this.parentNode.insertBefore(k,this)})},after:function(){return Nc(this,arguments,function(k){this.parentNode&&this.parentNode.insertBefore(k,this.nextSibling)})},empty:function(){for(var k,n=0;null!=(k=this[n]);n++)1===k.nodeType&&
(z.cleanData(ra(k,!1)),k.textContent="");return this},clone:function(k,n){k=null==k?!1:k;n=null==n?k:n;return this.map(function(){return z.clone(this,k,n)})},html:function(k){return rf(this,function(n){var u=this[0]||{},y=0,G=this.length;if(void 0===n&&1===u.nodeType)return u.innerHTML;if("string"===typeof n&&!Tc.test(n)&&!cf[(vj.exec(n)||["",""])[1].toLowerCase()]){n=z.htmlPrefilter(n);try{for(;y<G;y++)u=this[y]||{},1===u.nodeType&&(z.cleanData(ra(u,!1)),u.innerHTML=n);u=0}catch(K){}}u&&this.empty().append(n)},
null,k,arguments.length)},replaceWith:function(){var k=[];return Nc(this,arguments,function(n){var u=this.parentNode;0>z.inArray(this,k)&&(z.cleanData(ra(this)),u&&u.replaceChild(n,this))},k)}});z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(k,n){z.fn[k]=function(u){for(var y=[],G=z(u),K=G.length-1,R=0;R<=K;R++)u=R===K?this:this.clone(!0),z(G[R])[n](u),ii.apply(y,u.get());return this.pushStack(y)}});var Id=new RegExp("^("+
uj+")(?!px)[a-z%]+$","i"),Wg=function(k){var n=k.ownerDocument.defaultView;n&&n.opener||(n=g);return n.getComputedStyle(k)},gg=function(k,n,u){var y,G={};for(y in n)G[y]=k.style[y],k.style[y]=n[y];u=u.call(k);for(y in n)k.style[y]=G[y];return u},ub=new RegExp(ma.join("|"),"i");(function(){function k(){if(U){aa.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";U.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";
fg.appendChild(aa).appendChild(U);var W=g.getComputedStyle(U);n="1%"!==W.top;R=12===Math.round(parseFloat(W.marginLeft));U.style.right="60%";G=36===Math.round(parseFloat(W.right));u=36===Math.round(parseFloat(W.width));U.style.position="absolute";y=12===Math.round(parseFloat(U.offsetWidth/3));fg.removeChild(aa);U=null}}var n,u,y,G,K,R,aa=rc.createElement("div"),U=rc.createElement("div");U.style&&(U.style.backgroundClip="content-box",U.cloneNode(!0).style.backgroundClip="",Sc.clearCloneStyle="content-box"===
U.style.backgroundClip,z.extend(Sc,{boxSizingReliable:function(){k();return u},pixelBoxStyles:function(){k();return G},pixelPosition:function(){k();return n},reliableMarginLeft:function(){k();return R},scrollboxSize:function(){k();return y},reliableTrDimensions:function(){if(null==K){var W=rc.createElement("table");var la=rc.createElement("tr");var sa=rc.createElement("div");W.style.cssText="position:absolute;left:-11111px;border-collapse:separate";la.style.cssText="border:1px solid";la.style.height=
"1px";sa.style.height="9px";sa.style.display="block";fg.appendChild(W).appendChild(la).appendChild(sa);sa=g.getComputedStyle(la);K=parseInt(sa.height,10)+parseInt(sa.borderTopWidth,10)+parseInt(sa.borderBottomWidth,10)===la.offsetHeight;fg.removeChild(W)}return K}}))})();var Uc=["Webkit","Moz","ms"],xj=rc.createElement("div").style,yj={},Bh=/^(none|table(?!-c[ea]).+)/,Xd=/^--/,Xg={position:"absolute",visibility:"hidden",display:"block"},ki={letterSpacing:"0",fontWeight:"400"};z.extend({cssHooks:{opacity:{get:function(k,
n){if(n)return k=td(k,"opacity"),""===k?"1":k}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(k,n,u,y){if(k&&3!==k.nodeType&&8!==k.nodeType&&k.style){var G,K=J(n),R=Xd.test(n),aa=k.style;R||(n=Tb(K));var U=z.cssHooks[n]||z.cssHooks[K];
if(void 0!==u){var W=typeof u;"string"===W&&(G=xg.exec(u))&&G[1]&&(u=ka(k,n,G),W="number");null!=u&&u===u&&("number"!==W||R||(u+=G&&G[3]||(z.cssNumber[K]?"":"px")),Sc.clearCloneStyle||""!==u||0!==n.indexOf("background")||(aa[n]="inherit"),U&&"set"in U&&void 0===(u=U.set(k,u,y))||(R?aa.setProperty(n,u):aa[n]=u))}else return U&&"get"in U&&void 0!==(G=U.get(k,!1,y))?G:aa[n]}},css:function(k,n,u,y){var G;var K=J(n);Xd.test(n)||(n=Tb(K));(K=z.cssHooks[n]||z.cssHooks[K])&&"get"in K&&(G=K.get(k,!0,u));void 0===
G&&(G=td(k,n,y));"normal"===G&&n in ki&&(G=ki[n]);return""===u||u?(k=parseFloat(G),!0===u||isFinite(k)?k||0:G):G}});z.each(["height","width"],function(k,n){z.cssHooks[n]={get:function(u,y,G){if(y)return!Bh.test(z.css(u,"display"))||u.getClientRects().length&&u.getBoundingClientRect().width?Bd(u,n,G):gg(u,Xg,function(){return Bd(u,n,G)})},set:function(u,y,G){var K,R=Wg(u),aa=!Sc.scrollboxSize()&&"absolute"===R.position,U=(aa||G)&&"border-box"===z.css(u,"boxSizing",!1,R);G=G?Qe(u,n,G,U,R):0;U&&aa&&
(G-=Math.ceil(u["offset"+n[0].toUpperCase()+n.slice(1)]-parseFloat(R[n])-Qe(u,n,"border",!1,R)-.5));G&&(K=xg.exec(y))&&"px"!==(K[3]||"px")&&(u.style[n]=y,y=z.css(u,n));return de(u,y,G)}}});z.cssHooks.marginLeft=Pe(Sc.reliableMarginLeft,function(k,n){if(n)return(parseFloat(td(k,"marginLeft"))||k.getBoundingClientRect().left-gg(k,{marginLeft:0},function(){return k.getBoundingClientRect().left}))+"px"});z.each({margin:"",padding:"",border:"Width"},function(k,n){z.cssHooks[k+n]={expand:function(u){var y=
0,G={};for(u="string"===typeof u?u.split(" "):[u];4>y;y++)G[k+ma[y]+n]=u[y]||u[y-2]||u[0];return G}};"margin"!==k&&(z.cssHooks[k+n].set=de)});z.fn.extend({css:function(k,n){return rf(this,function(u,y,G){var K,R={},aa=0;if(Array.isArray(y)){G=Wg(u);for(K=y.length;aa<K;aa++)R[y[aa]]=z.css(u,y[aa],!1,G);return R}return void 0!==G?z.style(u,y,G):z.css(u,y)},k,n,1<arguments.length)}});z.Tween=rd;rd.prototype={constructor:rd,init:function(k,n,u,y,G,K){this.elem=k;this.prop=u;this.easing=G||z.easing._default;
this.options=n;this.start=this.now=this.cur();this.end=y;this.unit=K||(z.cssNumber[u]?"":"px")},cur:function(){var k=rd.propHooks[this.prop];return k&&k.get?k.get(this):rd.propHooks._default.get(this)},run:function(k){var n,u=rd.propHooks[this.prop];this.pos=this.options.duration?n=z.easing[this.easing](k,this.options.duration*k,0,1,this.options.duration):n=k;this.now=(this.end-this.start)*n+this.start;this.options.step&&this.options.step.call(this.elem,this.now,this);u&&u.set?u.set(this):rd.propHooks._default.set(this);
return this}};rd.prototype.init.prototype=rd.prototype;rd.propHooks={_default:{get:function(k){return 1!==k.elem.nodeType||null!=k.elem[k.prop]&&null==k.elem.style[k.prop]?k.elem[k.prop]:(k=z.css(k.elem,k.prop,""))&&"auto"!==k?k:0},set:function(k){if(z.fx.step[k.prop])z.fx.step[k.prop](k);else 1!==k.elem.nodeType||!z.cssHooks[k.prop]&&null==k.elem.style[Tb(k.prop)]?k.elem[k.prop]=k.now:z.style(k.elem,k.prop,k.now+k.unit)}}};rd.propHooks.scrollTop=rd.propHooks.scrollLeft={set:function(k){k.elem.nodeType&&
k.elem.parentNode&&(k.elem[k.prop]=k.now)}};z.easing={linear:function(k){return k},swing:function(k){return.5-Math.cos(k*Math.PI)/2},_default:"swing"};z.fx=rd.prototype.init;z.fx.step={};var yg,Ch,Yg=/^(?:toggle|show|hide)$/,Zg=/queueHooks$/;z.Animation=z.extend(ic,{tweeners:{"*":[function(k,n){var u=this.createTween(k,n);ka(u.elem,k,xg.exec(n),u);return u}]},tweener:function(k,n){Wb(k)?(n=k,k=["*"]):k=k.match(Hf);for(var u,y=0,G=k.length;y<G;y++)u=k[y],ic.tweeners[u]=ic.tweeners[u]||[],ic.tweeners[u].unshift(n)},
prefilters:[function(k,n,u){var y;var G="width"in n||"height"in n;var K=this,R={},aa=k.style,U=k.nodeType&&Ge(k),W=pb.get(k,"fxshow");if(!u.queue){var la=z._queueHooks(k,"fx");if(null==la.unqueued){la.unqueued=0;var sa=la.empty.fire;la.empty.fire=function(){la.unqueued||sa()}}la.unqueued++;K.always(function(){K.always(function(){la.unqueued--;z.queue(k,"fx").length||la.empty.fire()})})}for(y in n){var Ja=n[y];if(Yg.test(Ja)){delete n[y];var Vc=Vc||"toggle"===Ja;if(Ja===(U?"hide":"show"))if("show"===
Ja&&W&&void 0!==W[y])U=!0;else continue;R[y]=W&&W[y]||z.style(k,y)}}if((n=!z.isEmptyObject(n))||!z.isEmptyObject(R)){if(G&&1===k.nodeType){u.overflow=[aa.overflow,aa.overflowX,aa.overflowY];var vb=W&&W.display;null==vb&&(vb=pb.get(k,"display"));G=z.css(k,"display");"none"===G&&(vb?G=vb:(ua([k],!0),vb=k.style.display||vb,G=z.css(k,"display"),ua([k])));("inline"===G||"inline-block"===G&&null!=vb)&&"none"===z.css(k,"float")&&(n||(K.done(function(){aa.display=vb}),null==vb&&(G=aa.display,vb="none"===
G?"":G)),aa.display="inline-block")}u.overflow&&(aa.overflow="hidden",K.always(function(){aa.overflow=u.overflow[0];aa.overflowX=u.overflow[1];aa.overflowY=u.overflow[2]}));n=!1;for(y in R)n||(W?"hidden"in W&&(U=W.hidden):W=pb.access(k,"fxshow",{display:vb}),Vc&&(W.hidden=!U),U&&ua([k],!0),K.done(function(){U||ua([k]);pb.remove(k,"fxshow");for(y in R)z.style(k,y,R[y])})),n=Pa(U?W[y]:0,y,K),y in W||(W[y]=n.start,U&&(n.end=n.start,n.start=0))}}],prefilter:function(k,n){n?ic.prefilters.unshift(k):ic.prefilters.push(k)}});
z.speed=function(k,n,u){var y=k&&"object"===typeof k?z.extend({},k):{complete:u||!u&&n||Wb(k)&&k,duration:k,easing:u&&n||n&&!Wb(n)&&n};z.fx.off?y.duration=0:"number"!==typeof y.duration&&(y.duration=y.duration in z.fx.speeds?z.fx.speeds[y.duration]:z.fx.speeds._default);if(null==y.queue||!0===y.queue)y.queue="fx";y.old=y.complete;y.complete=function(){Wb(y.old)&&y.old.call(this);y.queue&&z.dequeue(this,y.queue)};return y};z.fn.extend({fadeTo:function(k,n,u,y){return this.filter(Ge).css("opacity",
0).show().end().animate({opacity:n},k,u,y)},animate:function(k,n,u,y){var G=z.isEmptyObject(k),K=z.speed(n,u,y);n=function(){var R=ic(this,z.extend({},k),K);(G||pb.get(this,"finish"))&&R.stop(!0)};n.finish=n;return G||!1===K.queue?this.each(n):this.queue(K.queue,n)},stop:function(k,n,u){var y=function(G){var K=G.stop;delete G.stop;K(u)};"string"!==typeof k&&(u=n,n=k,k=void 0);n&&this.queue(k||"fx",[]);return this.each(function(){var G=!0,K=null!=k&&k+"queueHooks",R=z.timers,aa=pb.get(this);if(K)aa[K]&&
aa[K].stop&&y(aa[K]);else for(K in aa)aa[K]&&aa[K].stop&&Zg.test(K)&&y(aa[K]);for(K=R.length;K--;)R[K].elem!==this||null!=k&&R[K].queue!==k||(R[K].anim.stop(u),G=!1,R.splice(K,1));!G&&u||z.dequeue(this,k)})},finish:function(k){!1!==k&&(k=k||"fx");return this.each(function(){var n=pb.get(this),u=n[k+"queue"];var y=n[k+"queueHooks"];var G=z.timers,K=u?u.length:0;n.finish=!0;z.queue(this,k,[]);y&&y.stop&&y.stop.call(this,!0);for(y=G.length;y--;)G[y].elem===this&&G[y].queue===k&&(G[y].anim.stop(!0),G.splice(y,
1));for(y=0;y<K;y++)u[y]&&u[y].finish&&u[y].finish.call(this);delete n.finish})}});z.each(["toggle","show","hide"],function(k,n){var u=z.fn[n];z.fn[n]=function(y,G,K){return null==y||"boolean"===typeof y?u.apply(this,arguments):this.animate(pa(n,!0),y,G,K)}});z.each({slideDown:pa("show"),slideUp:pa("hide"),slideToggle:pa("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(k,n){z.fn[k]=function(u,y,G){return this.animate(n,u,y,G)}});z.timers=[];z.fx.tick=
function(){var k=0,n=z.timers;for(yg=Date.now();k<n.length;k++){var u=n[k];u()||n[k]!==u||n.splice(k--,1)}n.length||z.fx.stop();yg=void 0};z.fx.timer=function(k){z.timers.push(k);z.fx.start()};z.fx.interval=13;z.fx.start=function(){Ch||(Ch=!0,bf())};z.fx.stop=function(){Ch=null};z.fx.speeds={slow:600,fast:200,_default:400};z.fn.delay=function(k,n){k=z.fx?z.fx.speeds[k]||k:k;return this.queue(n||"fx",function(u,y){var G=g.setTimeout(u,k);y.stop=function(){g.clearTimeout(G)}})};(function(){var k=rc.createElement("input"),
n=rc.createElement("select").appendChild(rc.createElement("option"));k.type="checkbox";Sc.checkOn=""!==k.value;Sc.optSelected=n.selected;k=rc.createElement("input");k.value="t";k.type="radio";Sc.radioValue="t"===k.value})();var tf=z.expr.attrHandle;z.fn.extend({attr:function(k,n){return rf(this,z.attr,k,n,1<arguments.length)},removeAttr:function(k){return this.each(function(){z.removeAttr(this,k)})}});z.extend({attr:function(k,n,u){var y,G,K=k.nodeType;if(3!==K&&8!==K&&2!==K){if("undefined"===typeof k.getAttribute)return z.prop(k,
n,u);1===K&&z.isXMLDoc(k)||(G=z.attrHooks[n.toLowerCase()]||(z.expr.match.bool.test(n)?li:void 0));if(void 0!==u){if(null===u){z.removeAttr(k,n);return}if(G&&"set"in G&&void 0!==(y=G.set(k,u,n)))return y;k.setAttribute(n,u+"");return u}if(G&&"get"in G&&null!==(y=G.get(k,n)))return y;y=z.find.attr(k,n);return null==y?void 0:y}},attrHooks:{type:{set:function(k,n){if(!Sc.radioValue&&"radio"===n&&t(k,"input")){var u=k.value;k.setAttribute("type",n);u&&(k.value=u);return n}}}},removeAttr:function(k,n){var u=
0,y=n&&n.match(Hf);if(y&&1===k.nodeType)for(;n=y[u++];)k.removeAttribute(n)}});var li={set:function(k,n,u){!1===n?z.removeAttr(k,u):k.setAttribute(u,u);return u}};z.each(z.expr.match.bool.source.match(/\w+/g),function(k,n){var u=tf[n]||z.find.attr;tf[n]=function(y,G,K){var R=G.toLowerCase();if(!K){var aa=tf[R];tf[R]=U;var U=null!=u(y,G,K)?R:null;tf[R]=aa}return U}});var Hk=/^(?:input|select|textarea|button)$/i,uf=/^(?:a|area)$/i;z.fn.extend({prop:function(k,n){return rf(this,z.prop,k,n,1<arguments.length)},
removeProp:function(k){return this.each(function(){delete this[z.propFix[k]||k]})}});z.extend({prop:function(k,n,u){var y,G=k.nodeType;if(3!==G&&8!==G&&2!==G){if(1!==G||!z.isXMLDoc(k)){n=z.propFix[n]||n;var K=z.propHooks[n]}return void 0!==u?K&&"set"in K&&void 0!==(y=K.set(k,u,n))?y:k[n]=u:K&&"get"in K&&null!==(y=K.get(k,n))?y:k[n]}},propHooks:{tabIndex:{get:function(k){var n=z.find.attr(k,"tabindex");return n?parseInt(n,10):Hk.test(k.nodeName)||uf.test(k.nodeName)&&k.href?0:-1}}},propFix:{"for":"htmlFor",
"class":"className"}});Sc.optSelected||(z.propHooks.selected={get:function(k){(k=k.parentNode)&&k.parentNode&&k.parentNode.selectedIndex;return null},set:function(k){if(k=k.parentNode)k.selectedIndex,k.parentNode&&k.parentNode.selectedIndex}});z.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),function(){z.propFix[this.toLowerCase()]=this});z.fn.extend({addClass:function(k){var n,u,y,G,K=0;if(Wb(k))return this.each(function(U){z(this).addClass(k.call(this,
U,Vd(this)))});var R=Fd(k);if(R.length)for(;n=this[K++];){var aa=Vd(n);if(u=1===n.nodeType&&" "+ud(aa)+" "){for(G=0;y=R[G++];)0>u.indexOf(" "+y+" ")&&(u+=y+" ");u=ud(u);aa!==u&&n.setAttribute("class",u)}}return this},removeClass:function(k){var n,u,y,G,K=0;if(Wb(k))return this.each(function(U){z(this).removeClass(k.call(this,U,Vd(this)))});if(!arguments.length)return this.attr("class","");var R=Fd(k);if(R.length)for(;n=this[K++];){var aa=Vd(n);if(u=1===n.nodeType&&" "+ud(aa)+" "){for(G=0;y=R[G++];)for(;-1<
u.indexOf(" "+y+" ");)u=u.replace(" "+y+" "," ");u=ud(u);aa!==u&&n.setAttribute("class",u)}}return this},toggleClass:function(k,n){var u=typeof k,y="string"===u||Array.isArray(k);return"boolean"===typeof n&&y?n?this.addClass(k):this.removeClass(k):Wb(k)?this.each(function(G){z(this).toggleClass(k.call(this,G,Vd(this),n),n)}):this.each(function(){var G,K;if(y){var R=0;var aa=z(this);for(K=Fd(k);G=K[R++];)aa.hasClass(G)?aa.removeClass(G):aa.addClass(G)}else if(void 0===k||"boolean"===u)(G=Vd(this))&&
pb.set(this,"__className__",G),this.setAttribute&&this.setAttribute("class",G||!1===k?"":pb.get(this,"__className__")||"")})},hasClass:function(k){var n,u=0;for(k=" "+k+" ";n=this[u++];)if(1===n.nodeType&&-1<(" "+ud(Vd(n))+" ").indexOf(k))return!0;return!1}});var vf=/\r/g;z.fn.extend({val:function(k){var n,u,y=this[0];if(arguments.length){var G=Wb(k);return this.each(function(K){1===this.nodeType&&(K=G?k.call(this,K,z(this).val()):k,null==K?K="":"number"===typeof K?K+="":Array.isArray(K)&&(K=z.map(K,
function(R){return null==R?"":R+""})),n=z.valHooks[this.type]||z.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&void 0!==n.set(this,K,"value")||(this.value=K))})}if(y){if((n=z.valHooks[y.type]||z.valHooks[y.nodeName.toLowerCase()])&&"get"in n&&void 0!==(u=n.get(y,"value")))return u;u=y.value;return"string"===typeof u?u.replace(vf,""):null==u?"":u}}});z.extend({valHooks:{option:{get:function(k){var n=z.find.attr(k,"value");return null!=n?n:ud(z.text(k))}},select:{get:function(k){var n=k.options,
u=k.selectedIndex,y="select-one"===k.type,G=y?null:[],K=y?u+1:n.length;for(k=0>u?K:y?u:0;k<K;k++){var R=n[k];if(!(!R.selected&&k!==u||R.disabled||R.parentNode.disabled&&t(R.parentNode,"optgroup"))){R=z(R).val();if(y)return R;G.push(R)}}return G},set:function(k,n){for(var u,y=k.options,G=z.makeArray(n),K=y.length;K--;)if(n=y[K],n.selected=-1<z.inArray(z.valHooks.option.get(n),G))u=!0;u||(k.selectedIndex=-1);return G}}}});z.each(["radio","checkbox"],function(){z.valHooks[this]={set:function(k,n){if(Array.isArray(n))return k.checked=
-1<z.inArray(z(k).val(),n)}};Sc.checkOn||(z.valHooks[this].get=function(k){return null===k.getAttribute("value")?"on":k.value})});Sc.focusin="onfocusin"in g;var Ik=/^(?:focusinfocus|focusoutblur)$/,fd=function(k){k.stopPropagation()};z.extend(z.event,{trigger:function(k,n,u,y){var G,K,R,aa=[u||rc],U=Gf.call(k,"type")?k.type:k;var W=Gf.call(k,"namespace")?k.namespace.split("."):[];var la=R=G=u=u||rc;if(3!==u.nodeType&&8!==u.nodeType&&!Ik.test(U+z.event.triggered)){-1<U.indexOf(".")&&(W=U.split("."),
U=W.shift(),W.sort());var sa=0>U.indexOf(":")&&"on"+U;k=k[z.expando]?k:new z.Event(U,"object"===typeof k&&k);k.isTrigger=y?2:3;k.namespace=W.join(".");k.rnamespace=k.namespace?new RegExp("(^|\\.)"+W.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;k.result=void 0;k.target||(k.target=u);n=null==n?[k]:z.makeArray(n,[k]);W=z.event.special[U]||{};if(y||!W.trigger||!1!==W.trigger.apply(u,n)){if(!y&&!W.noBubble&&!cg(u)){var Ja=W.delegateType||U;Ik.test(Ja+U)||(la=la.parentNode);for(;la;la=la.parentNode)aa.push(la),
G=la;G===(u.ownerDocument||rc)&&aa.push(G.defaultView||G.parentWindow||g)}for(G=0;(la=aa[G++])&&!k.isPropagationStopped();)R=la,k.type=1<G?Ja:W.bindType||U,(K=(pb.get(la,"events")||Object.create(null))[k.type]&&pb.get(la,"handle"))&&K.apply(la,n),(K=sa&&la[sa])&&K.apply&&zh(la)&&(k.result=K.apply(la,n),!1===k.result&&k.preventDefault());k.type=U;y||k.isDefaultPrevented()||W._default&&!1!==W._default.apply(aa.pop(),n)||!zh(u)||!sa||!Wb(u[U])||cg(u)||((G=u[sa])&&(u[sa]=null),z.event.triggered=U,k.isPropagationStopped()&&
R.addEventListener(U,fd),u[U](),k.isPropagationStopped()&&R.removeEventListener(U,fd),z.event.triggered=void 0,G&&(u[sa]=G));return k.result}}},simulate:function(k,n,u){k=z.extend(new z.Event,u,{type:k,isSimulated:!0});z.event.trigger(k,null,n)}});z.fn.extend({trigger:function(k,n){return this.each(function(){z.event.trigger(k,n,this)})},triggerHandler:function(k,n){var u=this[0];if(u)return z.event.trigger(k,n,u,!0)}});Sc.focusin||z.each({focus:"focusin",blur:"focusout"},function(k,n){var u=function(y){z.event.simulate(n,
y.target,z.event.fix(y))};z.event.special[n]={setup:function(){var y=this.ownerDocument||this.document||this,G=pb.access(y,n);G||y.addEventListener(k,u,!0);pb.access(y,n,(G||0)+1)},teardown:function(){var y=this.ownerDocument||this.document||this,G=pb.access(y,n)-1;G?pb.access(y,n,G):(y.removeEventListener(k,u,!0),pb.remove(y,n))}}});var Kf=g.location,$g=Date.now(),Dh=/\?/;z.parseXML=function(k){if(!k||"string"!==typeof k)return null;try{var n=(new g.DOMParser).parseFromString(k,"text/xml")}catch(y){}var u=
n&&n.getElementsByTagName("parsererror")[0];n&&!u||z.error("Invalid XML: "+(u?z.map(u.childNodes,function(y){return y.textContent}).join("\n"):k));return n};var wf=/\[\]$/,zg=/\r?\n/g,mi=/^(?:submit|button|image|reset|file)$/i,xf=/^(?:input|select|textarea|keygen)/i;z.param=function(k,n){var u,y=[],G=function(K,R){R=Wb(R)?R():R;y[y.length]=encodeURIComponent(K)+"\x3d"+encodeURIComponent(null==R?"":R)};if(null==k)return"";if(Array.isArray(k)||k.jquery&&!z.isPlainObject(k))z.each(k,function(){G(this.name,
this.value)});else for(u in k)ag(u,k[u],n,G);return y.join("\x26")};z.fn.extend({serialize:function(){return z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var k=z.prop(this,"elements");return k?z.makeArray(k):this}).filter(function(){var k=this.type;return this.name&&!z(this).is(":disabled")&&xf.test(this.nodeName)&&!mi.test(k)&&(this.checked||!Vg.test(k))}).map(function(k,n){k=z(this).val();return null==k?null:Array.isArray(k)?z.map(k,function(u){return{name:n.name,
value:u.replace(zg,"\r\n")}}):{name:n.name,value:k.replace(zg,"\r\n")}}).get()}});var Qf=/%20/g,ni=/#.*$/,ne=/([?&])_=[^&]*/,Kk=/^(.*?):[ \t]*([^\r\n]*)$/mg,yf=/^(?:GET|HEAD)$/,zj=/^\/\//,hg={},qe={},Eh="*/".concat("*"),Fh=rc.createElement("a");Fh.href=Kf.href;z.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Kf.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Kf.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset\x3dUTF-8",
accepts:{"*":Eh,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":z.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(k,n){return n?le(le(k,z.ajaxSettings),n):le(z.ajaxSettings,k)},ajaxPrefilter:Dk(hg),ajaxTransport:Dk(qe),
ajax:function(k,n){function u(ac,Oc,Je,Ob){var Ka,sd=Oc;if(!fe){fe=!0;R&&g.clearTimeout(R);y=void 0;G=Ob||"";Ab.readyState=0<ac?4:0;Ob=200<=ac&&300>ac||304===ac;Je&&(Ka=bg(W,Ab,Je));!Ob&&-1<z.inArray("script",W.dataTypes)&&0>z.inArray("json",W.dataTypes)&&(W.converters["text script"]=function(){});Ka=Fe(W,Ka,Ab,Ob);if(Ob)if(W.ifModified&&((Je=Ab.getResponseHeader("Last-Modified"))&&(z.lastModified[Jd]=Je),(Je=Ab.getResponseHeader("etag"))&&(z.etag[Jd]=Je)),204===ac||"HEAD"===W.type)sd="nocontent";
else if(304===ac)sd="notmodified";else{sd=Ka.state;var Wc=Ka.data;var Qd=Ka.error;Ob=!Qd}else if(Qd=sd,ac||!sd)sd="error",0>ac&&(ac=0);Ab.status=ac;Ab.statusText=(Oc||sd)+"";Ob?Ja.resolveWith(la,[Wc,sd,Ab]):Ja.rejectWith(la,[Ab,sd,Qd]);Ab.statusCode(vb);vb=void 0;aa&&sa.trigger(Ob?"ajaxSuccess":"ajaxError",[Ab,W,Ob?Wc:Qd]);Vc.fireWith(la,[Ab,sd]);aa&&(sa.trigger("ajaxComplete",[Ab,W]),--z.active||z.event.trigger("ajaxStop"))}}"object"===typeof k&&(n=k,k=void 0);n=n||{};var y,G,K,R,aa,U,W=z.ajaxSetup({},
n),la=W.context||W,sa=W.context&&(la.nodeType||la.jquery)?z(la):z.event,Ja=z.Deferred(),Vc=z.Callbacks("once memory"),vb=W.statusCode||{},nd={},Cb={},Ie="canceled",Ab={readyState:0,getResponseHeader:function(ac){var Oc;if(fe){if(!K)for(K={};Oc=Kk.exec(G);)K[Oc[1].toLowerCase()+" "]=(K[Oc[1].toLowerCase()+" "]||[]).concat(Oc[2]);Oc=K[ac.toLowerCase()+" "]}return null==Oc?null:Oc.join(", ")},getAllResponseHeaders:function(){return fe?G:null},setRequestHeader:function(ac,Oc){null==fe&&(ac=Cb[ac.toLowerCase()]=
Cb[ac.toLowerCase()]||ac,nd[ac]=Oc);return this},overrideMimeType:function(ac){null==fe&&(W.mimeType=ac);return this},statusCode:function(ac){var Oc;if(ac)if(fe)Ab.always(ac[Ab.status]);else for(Oc in ac)vb[Oc]=[vb[Oc],ac[Oc]];return this},abort:function(ac){ac=ac||Ie;y&&y.abort(ac);u(0,ac);return this}};Ja.promise(Ab);W.url=((k||W.url||Kf.href)+"").replace(zj,Kf.protocol+"//");W.type=n.method||n.type||W.method||W.type;W.dataTypes=(W.dataType||"*").toLowerCase().match(Hf)||[""];if(null==W.crossDomain){k=
rc.createElement("a");try{k.href=W.url,k.href=k.href,W.crossDomain=Fh.protocol+"//"+Fh.host!==k.protocol+"//"+k.host}catch(ac){W.crossDomain=!0}}W.data&&W.processData&&"string"!==typeof W.data&&(W.data=z.param(W.data,W.traditional));oj(hg,W,n,Ab);if(fe)return Ab;(aa=z.event&&W.global)&&0===z.active++&&z.event.trigger("ajaxStart");W.type=W.type.toUpperCase();W.hasContent=!yf.test(W.type);var Jd=W.url.replace(ni,"");W.hasContent?W.data&&W.processData&&0===(W.contentType||"").indexOf("application/x-www-form-urlencoded")&&
(W.data=W.data.replace(Qf,"+")):(k=W.url.slice(Jd.length),W.data&&(W.processData||"string"===typeof W.data)&&(Jd+=(Dh.test(Jd)?"\x26":"?")+W.data,delete W.data),!1===W.cache&&(Jd=Jd.replace(ne,"$1"),k=(Dh.test(Jd)?"\x26":"?")+"_\x3d"+$g++ +k),W.url=Jd+k);W.ifModified&&(z.lastModified[Jd]&&Ab.setRequestHeader("If-Modified-Since",z.lastModified[Jd]),z.etag[Jd]&&Ab.setRequestHeader("If-None-Match",z.etag[Jd]));(W.data&&W.hasContent&&!1!==W.contentType||n.contentType)&&Ab.setRequestHeader("Content-Type",
W.contentType);Ab.setRequestHeader("Accept",W.dataTypes[0]&&W.accepts[W.dataTypes[0]]?W.accepts[W.dataTypes[0]]+("*"!==W.dataTypes[0]?", "+Eh+"; q\x3d0.01":""):W.accepts["*"]);for(U in W.headers)Ab.setRequestHeader(U,W.headers[U]);if(W.beforeSend&&(!1===W.beforeSend.call(la,Ab,W)||fe))return Ab.abort();Ie="abort";Vc.add(W.complete);Ab.done(W.success);Ab.fail(W.error);if(y=oj(qe,W,n,Ab)){Ab.readyState=1;aa&&sa.trigger("ajaxSend",[Ab,W]);if(fe)return Ab;W.async&&0<W.timeout&&(R=g.setTimeout(function(){Ab.abort("timeout")},
W.timeout));try{var fe=!1;y.send(nd,u)}catch(ac){if(fe)throw ac;u(-1,ac)}}else u(-1,"No Transport");return Ab},getJSON:function(k,n,u){return z.get(k,n,u,"json")},getScript:function(k,n){return z.get(k,void 0,n,"script")}});z.each(["get","post"],function(k,n){z[n]=function(u,y,G,K){Wb(y)&&(K=K||G,G=y,y=void 0);return z.ajax(z.extend({url:u,type:n,dataType:K,data:y,success:G},z.isPlainObject(u)&&u))}});z.ajaxPrefilter(function(k){for(var n in k.headers)"content-type"===n.toLowerCase()&&(k.contentType=
k.headers[n]||"")});z._evalUrl=function(k,n,u){return z.ajax({url:k,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(y){z.globalEval(y,n,u)}})};z.fn.extend({wrapAll:function(k){this[0]&&(Wb(k)&&(k=k.call(this[0])),k=z(k,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&k.insertBefore(this[0]),k.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this));return this},wrapInner:function(k){return Wb(k)?
this.each(function(n){z(this).wrapInner(k.call(this,n))}):this.each(function(){var n=z(this),u=n.contents();u.length?u.wrapAll(k):n.append(k)})},wrap:function(k){var n=Wb(k);return this.each(function(u){z(this).wrapAll(n?k.call(this,u):k)})},unwrap:function(k){this.parent(k).not("body").each(function(){z(this).replaceWith(this.childNodes)});return this}});z.expr.pseudos.hidden=function(k){return!z.expr.pseudos.visible(k)};z.expr.pseudos.visible=function(k){return!!(k.offsetWidth||k.offsetHeight||
k.getClientRects().length)};z.ajaxSettings.xhr=function(){try{return new g.XMLHttpRequest}catch(k){}};var Yd={0:200,1223:204},He=z.ajaxSettings.xhr();Sc.cors=!!He&&"withCredentials"in He;Sc.ajax=He=!!He;z.ajaxTransport(function(k){var n,u;if(Sc.cors||He&&!k.crossDomain)return{send:function(y,G){var K,R=k.xhr();R.open(k.type,k.url,k.async,k.username,k.password);if(k.xhrFields)for(K in k.xhrFields)R[K]=k.xhrFields[K];k.mimeType&&R.overrideMimeType&&R.overrideMimeType(k.mimeType);k.crossDomain||y["X-Requested-With"]||
(y["X-Requested-With"]="XMLHttpRequest");for(K in y)R.setRequestHeader(K,y[K]);n=function(aa){return function(){n&&(n=u=R.onload=R.onerror=R.onabort=R.ontimeout=R.onreadystatechange=null,"abort"===aa?R.abort():"error"===aa?"number"!==typeof R.status?G(0,"error"):G(R.status,R.statusText):G(Yd[R.status]||R.status,R.statusText,"text"!==(R.responseType||"text")||"string"!==typeof R.responseText?{binary:R.response}:{text:R.responseText},R.getAllResponseHeaders()))}};R.onload=n();u=R.onerror=R.ontimeout=
n("error");void 0!==R.onabort?R.onabort=u:R.onreadystatechange=function(){4===R.readyState&&g.setTimeout(function(){n&&u()})};n=n("abort");try{R.send(k.hasContent&&k.data||null)}catch(aa){if(n)throw aa;}},abort:function(){n&&n()}}});z.ajaxPrefilter(function(k){k.crossDomain&&(k.contents.script=!1)});z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(k){z.globalEval(k);
return k}}});z.ajaxPrefilter("script",function(k){void 0===k.cache&&(k.cache=!1);k.crossDomain&&(k.type="GET")});z.ajaxTransport("script",function(k){if(k.crossDomain||k.scriptAttrs){var n,u;return{send:function(y,G){n=z("\x3cscript\x3e").attr(k.scriptAttrs||{}).prop({charset:k.scriptCharset,src:k.url}).on("load error",u=function(K){n.remove();u=null;K&&G("error"===K.type?404:200,K.type)});rc.head.appendChild(n[0])},abort:function(){u&&u()}}}});var oi=[],Gh=/(=)\?(?=&|$)|\?\?/;z.ajaxSetup({jsonp:"callback",
jsonpCallback:function(){var k=oi.pop()||z.expando+"_"+$g++;this[k]=!0;return k}});z.ajaxPrefilter("json jsonp",function(k,n,u){var y,G=!1!==k.jsonp&&(Gh.test(k.url)?"url":"string"===typeof k.data&&0===(k.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gh.test(k.data)&&"data");if(G||"jsonp"===k.dataTypes[0]){var K=k.jsonpCallback=Wb(k.jsonpCallback)?k.jsonpCallback():k.jsonpCallback;G?k[G]=k[G].replace(Gh,"$1"+K):!1!==k.jsonp&&(k.url+=(Dh.test(k.url)?"\x26":"?")+k.jsonp+"\x3d"+K);k.converters["script json"]=
function(){y||z.error(K+" was not called");return y[0]};k.dataTypes[0]="json";var R=g[K];g[K]=function(){y=arguments};u.always(function(){void 0===R?z(g).removeProp(K):g[K]=R;k[K]&&(k.jsonpCallback=n.jsonpCallback,oi.push(K));y&&Wb(R)&&R(y[0]);y=R=void 0});return"script"}});Sc.createHTMLDocument=function(){var k=rc.implementation.createHTMLDocument("").body;k.innerHTML="\x3cform\x3e\x3c/form\x3e\x3cform\x3e\x3c/form\x3e";return 2===k.childNodes.length}();z.parseHTML=function(k,n,u){if("string"!==
typeof k)return[];"boolean"===typeof n&&(u=n,n=!1);if(!n)if(Sc.createHTMLDocument){n=rc.implementation.createHTMLDocument("");var y=n.createElement("base");y.href=rc.location.href;n.head.appendChild(y)}else n=rc;y=Re.exec(k);u=!u&&[];if(y)return[n.createElement(y[1])];y=Na([k],n,u);u&&u.length&&z(u).remove();return z.merge([],y.childNodes)};z.fn.load=function(k,n,u){var y,G,K=this,R=k.indexOf(" ");if(-1<R){var aa=ud(k.slice(R));k=k.slice(0,R)}Wb(n)?(u=n,n=void 0):n&&"object"===typeof n&&(y="POST");
0<K.length&&z.ajax({url:k,type:y||"GET",dataType:"html",data:n}).done(function(U){G=arguments;K.html(aa?z("\x3cdiv\x3e").append(z.parseHTML(U)).find(aa):U)}).always(u&&function(U,W){K.each(function(){u.apply(this,G||[U.responseText,W,U])})});return this};z.expr.pseudos.animated=function(k){return z.grep(z.timers,function(n){return k===n.elem}).length};z.offset={setOffset:function(k,n,u){var y=z.css(k,"position"),G=z(k),K={};"static"===y&&(k.style.position="relative");var R=G.offset();var aa=z.css(k,
"top");var U=z.css(k,"left");("absolute"===y||"fixed"===y)&&-1<(aa+U).indexOf("auto")?(U=G.position(),aa=U.top,U=U.left):(aa=parseFloat(aa)||0,U=parseFloat(U)||0);Wb(n)&&(n=n.call(k,u,z.extend({},R)));null!=n.top&&(K.top=n.top-R.top+aa);null!=n.left&&(K.left=n.left-R.left+U);"using"in n?n.using.call(k,K):G.css(K)}};z.fn.extend({offset:function(k){if(arguments.length)return void 0===k?this:this.each(function(y){z.offset.setOffset(this,k,y)});var n;if(n=this[0]){if(!n.getClientRects().length)return{top:0,
left:0};var u=n.getBoundingClientRect();n=n.ownerDocument.defaultView;return{top:u.top+n.pageYOffset,left:u.left+n.pageXOffset}}},position:function(){if(this[0]){var k,n=this[0],u={top:0,left:0};if("fixed"===z.css(n,"position"))var y=n.getBoundingClientRect();else{y=this.offset();var G=n.ownerDocument;for(k=n.offsetParent||G.documentElement;k&&(k===G.body||k===G.documentElement)&&"static"===z.css(k,"position");)k=k.parentNode;k&&k!==n&&1===k.nodeType&&(u=z(k).offset(),u.top+=z.css(k,"borderTopWidth",
!0),u.left+=z.css(k,"borderLeftWidth",!0))}return{top:y.top-u.top-z.css(n,"marginTop",!0),left:y.left-u.left-z.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var k=this.offsetParent;k&&"static"===z.css(k,"position");)k=k.offsetParent;return k||fg})}});z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(k,n){var u="pageYOffset"===n;z.fn[k]=function(y){return rf(this,function(G,K,R){if(cg(G))var aa=G;else 9===G.nodeType&&(aa=G.defaultView);if(void 0===
R)return aa?aa[n]:G[K];aa?aa.scrollTo(u?aa.pageXOffset:R,u?R:aa.pageYOffset):G[K]=R},k,y,arguments.length)}});z.each(["top","left"],function(k,n){z.cssHooks[n]=Pe(Sc.pixelPosition,function(u,y){if(y)return y=td(u,n),Id.test(y)?z(u).position()[n]+"px":y})});z.each({Height:"height",Width:"width"},function(k,n){z.each({padding:"inner"+k,content:n,"":"outer"+k},function(u,y){z.fn[y]=function(G,K){var R=arguments.length&&(u||"boolean"!==typeof G),aa=u||(!0===G||!0===K?"margin":"border");return rf(this,
function(U,W,la){return cg(U)?0===y.indexOf("outer")?U["inner"+k]:U.document.documentElement["client"+k]:9===U.nodeType?(W=U.documentElement,Math.max(U.body["scroll"+k],W["scroll"+k],U.body["offset"+k],W["offset"+k],W["client"+k])):void 0===la?z.css(U,W,aa):z.style(U,W,la,aa)},n,R?G:void 0,R)}})});z.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(k,n){z.fn[n]=function(u){return this.on(n,u)}});z.fn.extend({bind:function(k,n,u){return this.on(k,null,n,u)},
unbind:function(k,n){return this.off(k,null,n)},delegate:function(k,n,u,y){return this.on(n,k,u,y)},undelegate:function(k,n,u){return 1===arguments.length?this.off(k,"**"):this.off(n,k||"**",u)},hover:function(k,n){return this.mouseenter(k).mouseleave(n||k)}});z.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(k,n){z.fn[n]=function(u,y){return 0<
arguments.length?this.on(n,null,u,y):this.trigger(n)}});var Lk=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;z.proxy=function(k,n){if("string"===typeof n){var u=k[n];n=k;k=u}if(Wb(k)){var y=Gd.call(arguments,2);u=function(){return k.apply(n||this,y.concat(Gd.call(arguments)))};u.guid=k.guid=k.guid||z.guid++;return u}};z.holdReady=function(k){k?z.readyWait++:z.ready(!0)};z.isArray=Array.isArray;z.parseJSON=JSON.parse;z.nodeName=t;z.isFunction=Wb;z.isWindow=cg;z.camelCase=J;z.type=r;z.now=Date.now;z.isNumeric=
function(k){var n=z.type(k);return("number"===n||"string"===n)&&!isNaN(k-parseFloat(k))};z.trim=function(k){return null==k?"":(k+"").replace(Lk,"")};"function"===typeof define&&define.amd&&define("jquery",[],function(){return z});var Jk=g.jQuery,Aj=g.$;z.noConflict=function(k){g.$===z&&(g.$=Aj);k&&g.jQuery===z&&(g.jQuery=Jk);return z};"undefined"===typeof p&&(g.jQuery=g.$=z);return z});
(function(g){"function"===typeof define&&define.amd?define(["jquery"],function(p){return g(p,window)}):"object"===typeof module&&module.exports?module.exports=g(require("jquery"),window):g(jQuery,window)})(function(g,p){function A(ha){a:{var pa=/^(\d+)\.(\d+)\.(\d+)/;var Pa=pa.exec(g.fn.jquery)||[];pa=pa.exec(ha)||[];for(ha=1;3>=ha;ha++){if(+Pa[ha]>+pa[ha]){Pa=1;break a}if(+Pa[ha]<+pa[ha]){Pa=-1;break a}}Pa=0}return 0<=Pa}function r(ha){var pa=p.console;g.migrateDeduplicateWarnings&&D[ha]||(D[ha]=
!0,g.migrateWarnings.push(ha),pa&&pa.warn&&!g.migrateMute&&(pa.warn("JQMIGRATE: "+ha),g.migrateTrace&&pa.trace&&pa.trace()))}function B(ha,pa,Pa,ob){Object.defineProperty(ha,pa,{configurable:!0,enumerable:!0,get:function(){r(ob);return Pa},set:function(ic){r(ob);Pa=ic}})}function t(ha,pa,Pa,ob){ha[pa]=function(){r(ob);return Pa.apply(this,arguments)}}function H(ha){return ha.replace(/-([a-z])/g,function(pa,Pa){return Pa.toUpperCase()})}function E(ha){return Mb.test(ha)&&fb.test(ha[0].toUpperCase()+
ha.slice(1))}g.migrateVersion="3.3.2";p.console&&p.console.log&&(g&&A("3.0.0")||p.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),g.migrateWarnings&&p.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),p.console.log("JQMIGRATE: Migrate is installed"+(g.migrateMute?"":" with logging active")+", version "+g.migrateVersion));var D={};g.migrateDeduplicateWarnings=!0;g.migrateWarnings=[];void 0===g.migrateTrace&&(g.migrateTrace=!0);g.migrateReset=function(){D={};g.migrateWarnings.length=0};
"BackCompat"===p.document.compatMode&&r("jQuery is not compatible with Quirks Mode");var x,v={},C=g.fn.init,L=g.find,Q=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,J=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,X=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;g.fn.init=function(ha){var pa=Array.prototype.slice.call(arguments);"string"===typeof ha&&"#"===ha&&(r("jQuery( '#' ) is not a valid selector"),pa[0]=[]);return C.apply(this,pa)};g.fn.init.prototype=g.fn;g.find=function(ha){var pa=
Array.prototype.slice.call(arguments);if("string"===typeof ha&&Q.test(ha))try{p.document.querySelector(ha)}catch(Pa){ha=ha.replace(J,function(ob,ic,ud,Vd){return"["+ic+ud+'"'+Vd+'"]'});try{p.document.querySelector(ha),r("Attribute selector with '#' must be quoted: "+pa[0]),pa[0]=ha}catch(ob){r("Attribute selector with '#' was not fixed: "+pa[0])}}return L.apply(this,pa)};for(x in L)Object.prototype.hasOwnProperty.call(L,x)&&(g.find[x]=L[x]);t(g.fn,"size",function(){return this.length},"jQuery.fn.size() is deprecated and removed; use the .length property");
t(g,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"jQuery.parseJSON is deprecated; use JSON.parse");t(g,"holdReady",g.holdReady,"jQuery.holdReady is deprecated");t(g,"unique",g.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort");B(g.expr,"filters",g.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos");B(g.expr,":",g.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos");A("3.1.1")&&t(g,"trim",function(ha){return null==ha?"":(ha+
"").replace(X,"")},"jQuery.trim is deprecated; use String.prototype.trim");A("3.2.0")&&(t(g,"nodeName",function(ha,pa){return ha.nodeName&&ha.nodeName.toLowerCase()===pa.toLowerCase()},"jQuery.nodeName is deprecated"),t(g,"isArray",Array.isArray,"jQuery.isArray is deprecated; use Array.isArray"));A("3.3.0")&&(t(g,"isNumeric",function(ha){var pa=typeof ha;return("number"===pa||"string"===pa)&&!isNaN(ha-parseFloat(ha))},"jQuery.isNumeric() is deprecated"),g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),
function(ha,pa){v["[object "+pa+"]"]=pa.toLowerCase()}),t(g,"type",function(ha){return null==ha?ha+"":"object"===typeof ha||"function"===typeof ha?v[Object.prototype.toString.call(ha)]||"object":typeof ha},"jQuery.type is deprecated"),t(g,"isFunction",function(ha){return"function"===typeof ha},"jQuery.isFunction() is deprecated"),t(g,"isWindow",function(ha){return null!=ha&&ha===ha.window},"jQuery.isWindow() is deprecated"));if(g.ajax){var I=g.ajax,ka=/(=)\?(?=&|$)|\?\?/;g.ajax=function(){var ha=
I.apply(this,arguments);ha.promise&&(t(ha,"success",ha.done,"jQXHR.success is deprecated and removed"),t(ha,"error",ha.fail,"jQXHR.error is deprecated and removed"),t(ha,"complete",ha.always,"jQXHR.complete is deprecated and removed"));return ha};A("4.0.0")||g.ajaxPrefilter("+json",function(ha){!1!==ha.jsonp&&(ka.test(ha.url)||"string"===typeof ha.data&&0===(ha.contentType||"").indexOf("application/x-www-form-urlencoded")&&ka.test(ha.data))&&r("JSON-to-JSONP auto-promotion is deprecated")})}var ua=
g.fn.removeAttr,ra=g.fn.toggleClass,Za=/\S+/g;g.fn.removeAttr=function(ha){var pa=this;g.each(ha.match(Za),function(Pa,ob){g.expr.match.bool.test(ob)&&(r("jQuery.fn.removeAttr no longer sets boolean properties: "+ob),pa.prop(ob,!1))});return ua.apply(this,arguments)};g.fn.toggleClass=function(ha){if(void 0!==ha&&"boolean"!==typeof ha)return ra.apply(this,arguments);r("jQuery.fn.toggleClass( boolean ) is deprecated");return this.each(function(){var pa=this.getAttribute&&this.getAttribute("class")||
"";pa&&g.data(this,"__className__",pa);this.setAttribute&&this.setAttribute("class",pa||!1===ha?"":g.data(this,"__className__")||"")})};var Na=!1,Mb=/^[a-z]/,fb=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;g.swap&&g.each(["height","width","reliableMarginRight"],function(ha,pa){var Pa=g.cssHooks[pa]&&g.cssHooks[pa].get;Pa&&(g.cssHooks[pa].get=function(){Na=!0;var ob=Pa.apply(this,arguments);Na=!1;return ob})});g.swap=
function(ha,pa,Pa,ob){var ic,ud={};Na||r("jQuery.swap() is undocumented and deprecated");for(ic in pa)ud[ic]=ha.style[ic],ha.style[ic]=pa[ic];Pa=Pa.apply(ha,ob||[]);for(ic in pa)ha.style[ic]=ud[ic];return Pa};A("3.4.0")&&"undefined"!==typeof Proxy&&(g.cssProps=new Proxy(g.cssProps||{},{set:function(){r("JQMIGRATE: jQuery.cssProps is deprecated");return Reflect.set.apply(this,arguments)}}));g.cssNumber||(g.cssNumber={});var Nb=g.fn.css;g.fn.css=function(ha,pa){var Pa=this;if(ha&&"object"===typeof ha&&
!Array.isArray(ha))return g.each(ha,function(ic,ud){g.fn.css.call(Pa,ic,ud)}),this;if("number"===typeof pa){var ob=H(ha);E(ob)||g.cssNumber[ob]||r('Number-typed values are deprecated for jQuery.fn.css( "'+ha+'", value )')}return Nb.apply(this,arguments)};var Oa=g.data;g.data=function(ha,pa,Pa){var ob;if(pa&&"object"===typeof pa&&2===arguments.length){var ic=g.hasData(ha)&&Oa.call(this,ha);var ud={};for(ob in pa)ob!==H(ob)?(r("jQuery.data() always sets/gets camelCased names: "+ob),ic[ob]=pa[ob]):ud[ob]=
pa[ob];Oa.call(this,ha,ud);return pa}return pa&&"string"===typeof pa&&pa!==H(pa)&&(ic=g.hasData(ha)&&Oa.call(this,ha))&&pa in ic?(r("jQuery.data() always sets/gets camelCased names: "+pa),2<arguments.length&&(ic[pa]=Pa),ic[pa]):Oa.apply(this,arguments)};if(g.fx){var ke=g.Tween.prototype.run,Jc=function(ha){return ha};g.Tween.prototype.run=function(){1<g.easing[this.easing].length&&(r("'jQuery.easing."+this.easing.toString()+"' should use only one argument"),g.easing[this.easing]=Jc);ke.apply(this,
arguments)};var pf=g.fx.interval||13;p.requestAnimationFrame&&Object.defineProperty(g.fx,"interval",{configurable:!0,enumerable:!0,get:function(){p.document.hidden||r("jQuery.fx.interval is deprecated");return pf},set:function(ha){r("jQuery.fx.interval is deprecated");pf=ha}})}var Ud=g.fn.load,ce=g.event.add,Nc=g.event.fix;g.event.props=[];g.event.fixHooks={};B(g.event.props,"concat",g.event.props.concat,"jQuery.event.props.concat() is deprecated and removed");g.event.fix=function(ha){var pa=ha.type;
var Pa=this.fixHooks[pa],ob=g.event.props;if(ob.length)for(r("jQuery.event.props are deprecated and removed: "+ob.join());ob.length;)g.event.addProp(ob.pop());if(Pa&&!Pa._migrated_&&(Pa._migrated_=!0,r("jQuery.event.fixHooks are deprecated and removed: "+pa),(ob=Pa.props)&&ob.length))for(;ob.length;)g.event.addProp(ob.pop());pa=Nc.call(this,ha);return Pa&&Pa.filter?Pa.filter(pa,ha):pa};g.event.add=function(ha,pa){ha===p&&"load"===pa&&"complete"===p.document.readyState&&r("jQuery(window).on('load'...) called after load event occurred");
return ce.apply(this,arguments)};g.each(["load","unload","error"],function(ha,pa){g.fn[pa]=function(){var Pa=Array.prototype.slice.call(arguments,0);if("load"===pa&&"string"===typeof Pa[0])return Ud.apply(this,Pa);r("jQuery.fn."+pa+"() is deprecated");Pa.splice(0,0,pa);if(arguments.length)return this.on.apply(this,Pa);this.triggerHandler.apply(this,Pa);return this}});g.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),
function(ha,pa){g.fn[pa]=function(Pa,ob){r("jQuery.fn."+pa+"() event shorthand is deprecated");return 0<arguments.length?this.on(pa,null,Pa,ob):this.trigger(pa)}});g(function(){g(p.document).triggerHandler("ready")});g.event.special.ready={setup:function(){this===p.document&&r("'ready' event is deprecated")}};g.fn.extend({bind:function(ha,pa,Pa){r("jQuery.fn.bind() is deprecated");return this.on(ha,null,pa,Pa)},unbind:function(ha,pa){r("jQuery.fn.unbind() is deprecated");return this.off(ha,null,pa)},
delegate:function(ha,pa,Pa,ob){r("jQuery.fn.delegate() is deprecated");return this.on(pa,ha,Pa,ob)},undelegate:function(ha,pa,Pa){r("jQuery.fn.undelegate() is deprecated");return 1===arguments.length?this.off(ha,"**"):this.off(pa,ha||"**",Pa)},hover:function(ha,pa){r("jQuery.fn.hover() is deprecated");return this.on("mouseenter",ha).on("mouseleave",pa||ha)}});var Ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,td=g.htmlPrefilter,Pe=function(ha){var pa=
p.document.implementation.createHTMLDocument("");pa.body.innerHTML=ha;return pa.body&&pa.body.innerHTML},Tb=function(ha){var pa=ha.replace(Ee,"\x3c$1\x3e\x3c/$2\x3e");pa!==ha&&Pe(ha)!==Pe(pa)&&r("HTML tags must be properly nested and closed: "+ha)};g.UNSAFE_restoreLegacyHtmlPrefilter=function(){g.htmlPrefilter=function(ha){Tb(ha);return ha.replace(Ee,"\x3c$1\x3e\x3c/$2\x3e")}};g.htmlPrefilter=function(ha){Tb(ha);return td(ha)};var de=g.fn.offset;g.fn.offset=function(){var ha=this[0];return!ha||ha.nodeType&&
ha.getBoundingClientRect?de.apply(this,arguments):(r("jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)};if(g.ajax){var Qe=g.param;g.param=function(ha,pa){var Pa=g.ajaxSettings&&g.ajaxSettings.traditional;void 0===pa&&Pa&&(r("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),pa=Pa);return Qe.call(this,ha,pa)}}var Bd=g.fn.andSelf||g.fn.addBack;g.fn.andSelf=function(){r("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()");return Bd.apply(this,
arguments)};if(g.Deferred){var rd=g.Deferred,bf=[["resolve","done",g.Callbacks("once memory"),g.Callbacks("once memory"),"resolved"],["reject","fail",g.Callbacks("once memory"),g.Callbacks("once memory"),"rejected"],["notify","progress",g.Callbacks("memory"),g.Callbacks("memory")]];g.Deferred=function(ha){var pa=rd(),Pa=pa.promise();pa.pipe=Pa.pipe=function(){var ob=arguments;r("deferred.pipe() is deprecated");return g.Deferred(function(ic){g.each(bf,function(ud,Vd){var Fd="function"===typeof ob[ud]&&
ob[ud];pa[Vd[1]](function(){var ag=Fd&&Fd.apply(this,arguments);if(ag&&"function"===typeof ag.promise)ag.promise().done(ic.resolve).fail(ic.reject).progress(ic.notify);else ic[Vd[0]+"With"](this===Pa?ic.promise():this,Fd?[ag]:arguments)})});ob=null}).promise()};ha&&ha.call(pa,pa);return pa};g.Deferred.exceptionHook=rd.exceptionHook}return g});"use strict";var ol=ol||{},google=google||{};
if(String.prototype.endsWith||(String.prototype.endsWith=function(g,p){var A=this.toString();("number"!=typeof p||!isFinite(p)||Math.floor(p)!==p||p>A.length)&&(p=A.length);p-=g.length;g=A.indexOf(g,p);return-1!==g&&g===p}),!ol)throw Error("OpenLayers is not loaded.");!google||!google.maps;var geoapi=geoapi||{};geoapi.jQuery=geoapi.jQuery||jQuery.noConflict();geoapi.proj4=proj4;proj4=null;
ol.proj.addProjection(new ol.proj.Projection({code:"EPSG:25831",units:"m",extent:[238379.2278,4265559.3497,761620.7722,6914547.3835]}));ol.proj.addProjection(new ol.proj.Projection({code:"EPSG:23031",units:"m",extent:[238730.0252,4276730.7754,761269.9748,7434723.1222]}));ol.proj.addProjection(new ol.proj.Projection({code:"urn:ogc:def:crs:EPSG::23031",units:"m",extent:[238730.0252,4276730.7754,761269.9748,7434723.1222]}));geoapi.proj4.defs("EPSG:25831","+proj\x3dutm +zone\x3d31 +ellps\x3dGRS80 +units\x3dm +no_defs");
geoapi.proj4.defs("EPSG:23031","+title\x3dED50 / UTM zone 31N  +proj\x3dutm +zone\x3d31 +ellps\x3dintl +units\x3dm +towgs84\x3d-87,-98,-121,0,0,0,0");geoapi.proj4.defs("urn:ogc:def:crs:EPSG::23031","+title\x3dED50 / UTM zone 31N  +proj\x3dutm +zone\x3d31 +ellps\x3dintl +units\x3dm +towgs84\x3d-87,-98,-121,0,0,0,0");geoapi.findIndex=function(g,p){for(var A=0;A<g.length;A++)if(p(g[A]))return A;return-1};geoapi.find=function(g,p){for(var A=0;A<g.length;A++)if(p(g[A]))return g[A];return null};
geoapi.version="1.1.0";
geoapi.BaseMap=function(g){if(g||={},!g.appKeyTMB)throw Error("APP key is mandatory.");if(!g.appIdTMB)throw Error("APP id is mandatory.");this.config={};this.config.debug=g.debug;this.config.appKeyTMB=g.appKeyTMB;this.config.appIdTMB=g.appIdTMB;this.config.projectionMap="EPSG:3857";this.dom={};this.dom.parentDiv=geoapi.jQuery(g.element?"#"+g.element:"body");this.dom.map=null;this.baseMaps={};this.baseMaps.enableCluster=g.enableCluster||!1;this.baseMaps.distanceCluster=g.distanceCluster||10;this.baseMaps.styleCluster=
g.styleCluster;this.layers={};this.markersLayer=null;this.functions={};this.functions.rightClick=g.rightClick?g.rightClick:null;this.functions.leftClick=g.leftClick?g.leftClick:null;this.functions.pointerMove=g.pointerMove?g.pointerMove:null;this.functions.featureClick=g.featureClick?g.featureClick:null;this.functions.changeZoom=g.changeZoom?g.changeZoom:null;this.functions.zoomInClick=g.zoomInClick?g.zoomInClick:null;this.functions.zoomOutClick=g.zoomOutClick?g.zoomOutClick:null;this.map=null;this.clickableFeaturesLayerList=
["GEOAPI_MARKERS"];this.cursorFeatureLayerList=["GEOAPI_MARKERS"]};geoapi.BaseMap.prototype.addFeatureToLayer=function(g,p){if(this.layers[g])return this.layers[g].getSource().addFeature(p);throw Error("Layer not found");};geoapi.BaseMap.prototype.removeInteraction=function(g){g&&this.map.removeInteraction(g)};geoapi.BaseMap.prototype.getMarkerLayer=function(){return this.markersLayer};
geoapi.BaseMap.prototype.isPointInPoly_=function(g,p){p=[[p[0],p[1]],[p[0],p[3]],[p[2],p[3]],[p[2],p[1]]];var A=g[0];g=g[1];for(var r=!1,B=0,t=p.length-1;B<p.length;t=B++){var H=p[B][0],E=p[B][1],D=p[t][0];t=p[t][1];E>g!=t>g&&(D-H)*(g-E)/(t-E)+H>A&&(r=!r)}return r};geoapi.BaseMap.prototype.addInteraction=function(g){this.map.addInteraction(g)};geoapi.BaseMap.prototype.addMarker=function(g){this.baseMaps.enableCluster?this.markersLayer.getSource().getSource().addFeature(g):this.markersLayer.getSource().addFeature(g)};
geoapi.BaseMap.prototype.addFeature=function(g){this.baseMaps.enableCluster?this.markersLayer.getSource().getSource().addFeature(g):this.markersLayer.getSource().addFeature(g)};geoapi.BaseMap.prototype.addOverlay=function(g){this.map.addOverlay(g)};geoapi.BaseMap.prototype.centerTo=function(g,p){null!=p&&0<p.length&&p!=this.config.projectionMap&&(g=geoapi.proj4(p,this.config.projectionMap,g));this.map.getView().setCenter(g)};
geoapi.BaseMap.prototype.centerToIf=function(g,p){null!=p&&0<p.length&&p!=this.config.projectionMap&&(g=geoapi.proj4(p,this.config.projectionMap,g));this.isPointInPoly_(g,this.map.getView().calculateExtent(this.map.getSize()))||this.map.getView().setCenter(g)};
geoapi.BaseMap.prototype.createVectorLayer=function(g,p,A){return this.getLayerByName(g)?null:(this.layers[g]=new ol.layer.Vector({source:new ol.source.Vector,renderBuffer:A||100}),this.layers[g].name=g,this.map.addLayer(this.layers[g]),p&&(this.clickableFeaturesLayerList.push(g),this.cursorFeatureLayerList.push(g)),this.markersLayer&&this.setLayerTop(this.markersLayer),this.getLayerByName(g))};
geoapi.BaseMap.prototype.deleteMarkersLayer=function(g){this.layers[g]?this.layers[g].getSource().clear():this.markersLayer.getSource().clear()};geoapi.BaseMap.prototype.fitCoords=function(g,p,A){null!=p&&0<p.length&&this.config.projectionMap!=p&&(g=ol.proj.transform(g,p,this.config.projectionMap));this.map.getView().setCenter(g);A&&"number"==typeof A&&this.map.getView().getZoom()>A&&this.map.getView().setZoom(A)};
geoapi.BaseMap.prototype.fitBounds=function(g,p,A,r){try{null!=p&&0<p.length&&this.config.projectionMap!=p&&(g=ol.proj.transformExtent(g,p,this.config.projectionMap));var B=this.map.getSize();"number"==typeof r?r=[r,r,r,r]:("object"!=typeof r||"object"==typeof r&&4!=r.length)&&(r=[0,0,0,0]);var t=new ol.geom.LineString([[g[0],g[1]],[g[2],g[3]]]);this.map.getView().fitGeometry(t,B,{constraintResolution:!1,nearest:!1,padding:r});A&&"number"==typeof A&&this.map.getView().getZoom()>A&&this.map.getView().setZoom(A)}catch(H){}};
geoapi.BaseMap.prototype.fitCoordIfLimits=function(g,p,A){null!=p&&0<p.length&&this.config.projectionMap!=p&&(g=ol.proj.transform(g,p,this.config.projectionMap));p=this.map.getView().getResolution();A=ol.extent.buffer(ol.extent.boundingExtent([g]),A*p);ol.extent.containsExtent(this.map.getView().calculateExtent(this.map.getSize()),A)||this.fitCoords(g)};geoapi.BaseMap.prototype.getContainer=function(){return this.dom.parentDiv};
geoapi.BaseMap.prototype.getExtensionMarkers=function(){return this.baseMaps.enableCluster?this.markersLayer.getSource().getSource().getExtent():this.markersLayer.getSource().getExtent()};
geoapi.BaseMap.prototype.getFeatureLine=function(g,p,A,r,B,t){var H;"string"==typeof g?H=geoapi.MapUtils.decodeFeature(g,this.config.projectionMap):(H=[],g.forEach(function(D,x,v){H[x]=geoapi.proj4(p,this.config.projectionMap,D)},this));B=B?B:5;t=t?parseInt(t):1;g=[];var E=new ol.Feature({geometry:new ol.geom.LineString(H)});return null!=r&&g.push(new ol.style.Style({stroke:new ol.style.Stroke({color:r,width:B+3}),zIndex:t+1})),g.push(new ol.style.Style({stroke:new ol.style.Stroke({color:A,width:B}),
zIndex:r?t+2:1})),E.setStyle(g),E};geoapi.BaseMap.prototype.getFeaturePoint=function(g,p,A,r,B,t){null!=p&&0<p.length&&this.config.projectionMap!=p&&(g=ol.proj.transform(g,p,this.config.projectionMap));"string"!=typeof t&&(t=r,B=0);"number"!=typeof B&&(B=5);var H;g=new ol.Feature(new ol.geom.Point(g));return H=new ol.style.Style({image:new ol.style.Circle({radius:A,fill:new ol.style.Fill({color:r}),stroke:new ol.style.Stroke({color:t,width:B})}),zIndex:800}),g.setStyle(H),g};
geoapi.BaseMap.prototype.getLayerIndex=function(g){for(var p=!1,A=0;A<this.map.getLayers().getLength();A++)this.map.getLayers().getArray()[A]===g&&(p=A);return p};geoapi.BaseMap.prototype.getLayerByName=function(g){return this.layers[g]};geoapi.BaseMap.prototype.getMap=function(){return this.map};geoapi.BaseMap.prototype.getMapProjection=function(){return this.map.getView().getProjection().getCode()};geoapi.BaseMap.prototype.getMapContainer=function(){return this.dom.map};
geoapi.BaseMap.prototype.getMarker=function(g,p,A){g.proj=g.proj||"EPSG:4326";g=this.config.projectionMap!=g.proj?geoapi.proj4(g.proj,this.config.projectionMap,g.coords):g.coords;g=new ol.Feature({geometry:new ol.geom.Point(g)});"function"!=typeof p?(p=new ol.style.Style({image:new ol.style.Icon({src:p.src,size:p.size,anchor:p.anchor?p.anchor:[.5,1],rotation:p.rotation?p.rotation:0,scale:p.scale?p.scale:1,anchorXUnits:p.anchorXUnits?p.anchorXUnits:"fraction",anchorYUnits:p.anchorXUnits?p.anchorXUnits:
"fraction",opacity:p.opacity?p.opacity:1}),zIndex:1E3}),g.setStyle(p)):g.setStyle(p);return g.set("name",A),g};geoapi.BaseMap.prototype.getMarkerAtPixel=function(g){var p=this,A=[];return this.map.forEachFeatureAtPixel(g,function(r,B){A.push(r)},null,function(r){return 0<=p.clickableFeaturesLayerList.indexOf(r.name)}),A};
geoapi.BaseMap.prototype.getClosestFeature=function(g,p){if(p||=!1,this.markersLayer){if(p=this.baseMaps.enableCluster&&p&&this.baseMaps.enableCluster?this.markersLayer.getSource().getSource().getClosestFeatureToCoordinate(g):this.markersLayer.getSource().getClosestFeatureToCoordinate(g)){var A=this.map.getView().getResolution();var r=p.getGeometry()instanceof ol.geom.Point?p.getGeometry().getCoordinates():ol.extent.getCenter(p.getGeometry().getExtent().getCoordinates());(Math.abs(parseInt(g[0]-r[0]))>
10*A||Math.abs(parseInt(g[1]-r[1]))>10*A)&&(p=null)}return p}return null};geoapi.BaseMap.prototype.hideLayer=function(g){this.layers[g]&&this.layers[g].setVisible(!1)};geoapi.BaseMap.prototype.isClusterActivated=function(){return this.baseMaps.enableCluster};
geoapi.BaseMap.prototype.moveMarker=function(g,p,A,r,B,t){var H=r?r:2E3;r=B?B:100;var E=(new Date).getTime();B=H/r;var D=g.getGeometry().getCoordinates(),x=geoapi.proj4(A,this.config.projectionMap,p),v=(x[0]-D[0])/r,C=(x[1]-D[1])/r,L=D[0],Q=D[1],J=function(ka){clearInterval(I);g.getGeometry().setCoordinates(x);t&&t()},X=0,I=setInterval(function(){(new Date).getTime()-E>=H?J(I):(L+=v,Q+=C,5>Math.abs(x[0]-L)||5>Math.abs(x[1]-Q)?J(I):g.getGeometry().setCoordinates([L,Q]));X++},.95*B)};
geoapi.BaseMap.prototype.removeLayer=function(g){if(this.layers[g]){this.deleteMarkersLayer(g);this.map.removeLayer(this.getLayerByName(g));var p=this.clickableFeaturesLayerList.indexOf(g),A=this.cursorFeatureLayerList.indexOf(g);0<=p&&this.clickableFeaturesLayerList.splice(p,1);0<=A&&this.cursorFeatureLayerList.splice(A,1);this.layers[g]=null}};
geoapi.BaseMap.prototype.removeMarker=function(g){var p=this.baseMaps.enableCluster?this.markersLayer.getSource().getSource():this.markersLayer.getSource();0<p.getFeatures().length&&p.removeFeature(g)};geoapi.BaseMap.prototype.setLayerBottom=function(g){if("string"==typeof g&&(g=this.getLayerByName(g)),"object"!=typeof g)throw Error("Layer is not an object");var p=this.getLayerIndex(g);0!=p&&(this.map.getLayers().getArray().splice(p,1),this.map.getLayers().getArray().splice(0,0,g),this.map.updateSize())};
geoapi.BaseMap.prototype.setLayerDown=function(g){if("string"==typeof g&&(g=this.getLayerByName(g)),"object"!=typeof g)throw Error("Layer is not an object");var p=this.getLayerIndex(g);if(0!=p&&0!=p){var A=this.map.getLayers().getArray()[p-1];this.map.getLayers().getArray()[p-1]=g;this.map.getLayers().getArray()[p]=A;this.map.updateSize()}};
geoapi.BaseMap.prototype.setLayerTop=function(g){if("string"==typeof g&&(g=this.getLayerByName(g)),"object"!=typeof g)throw Error("Layer is not an object");if(0!=this.getLayerIndex(g)){var p=this.map.getLayers().getLength();this.map.getLayers().remove(g);this.map.getLayers().insertAt(p,g)}};
geoapi.BaseMap.prototype.setLayerUp=function(g){if("string"==typeof g&&(g=this.getLayerByName(g)),"object"!=typeof g)throw Error("Layer is not an object");var p=this.getLayerIndex(g);if(0!=p&&p+1<this.map.getLayers().getLength()){var A=this.map.getLayers().getArray()[p+1];this.map.getLayers().getArray()[p+1]=g;this.map.getLayers().getArray()[p]=A;this.map.updateSize()}};geoapi.BaseMap.prototype.showLayer=function(g){this.layers[g]&&this.layers[g].setVisible(!0)};
geoapi.BaseMap.prototype.toogleCluster=function(){this.markersLayer&&(this.map.removeLayer(this.markersLayer),this.markersLayer=this.baseMaps.enableCluster?new ol.layer.Vector({source:this.markersLayer.getSource().getSource(),opacity:1,visible:!0}):new ol.layer.AnimatedCluster({name:"GEOAPI_MARKERS",opacity:1,visible:!0,source:new ol.source.Cluster({distance:this.baseMaps.distanceCluster,source:this.markersLayer.getSource()}),style:this.baseMaps.styleCluster}),this.markersLayer.name="GEOAPI_MARKERS",
this.map.addLayer(this.markersLayer),this.baseMaps.enableCluster=!this.baseMaps.enableCluster)};geoapi.BaseMap.prototype.updateSize=function(g){var p=this.map.getSize();g||=[];g[0]=g[0]?g[0]:p[0];g[1]=g[1]?g[1]:p[1];this.dom.parentDiv.css({height:g[1],width:g[0]});this.config.gmMode?(this.map.setSize(g),google.maps.event.trigger(this.gmap,"resize"),this.map.getView().setCenter(this.map.getView().getCenter())):this.map.updateSize()};
geoapi.Map=function(g){geoapi.BaseMap.call(this,g);this.config.minMapZoom=g.minMapZoom?g.minMapZoom:11;this.config.maxMapZoom=g.maxMapZoom?g.maxMapZoom:20;this.config.bcnExtent=g.extent?g.extent:[2.2148208302084074,41.34834335209742,2.087442290169345,41.42844106806185];this.config.gmMode="undefined"==typeof g.gmMode||null==g.gmMode?!0:g.gmMode;this.config.gmImageLocation=g.gmImageLocation?g.gmImageLocation:window.pathTheme+"/images/powered-by-google-on-white.png";this.config.styleGoogleMaps=[{featureType:"transit",
stylers:[{visibility:"off"}]},{featureType:"poi.business",stylers:[{visibility:"off"}]}];this.config.breakpointMobile=g.breakpointMobile?g.breakpointMobile:465;this.baseMaps.tmbSoft=null;this.baseMaps.tmbCarto=null;this.baseMaps.baseMapStart=g.baseMap;this.dom.gmap=null;this.dom.gimage=null;null!=g.wmsLayers&&"undefined"!=typeof g.wmsLayers||(g.wmsLayers=["PARADES_BUS","PARADES_METRO","TRAFFIC"]);this.wmsInfo={};this.wmsInfo.layers=g.wmsLayers;this.wmsInfo.urlServerMapsWMS=g.serverWMS?g.serverWMS:
["https://api1.tmb.cat/v1/maps/wms","https://api2.tmb.cat/v1/maps/wms","https://api3.tmb.cat/v1/maps/wms"];this.wmsInfo.urlServerMapsWFS=g.serverWFS?g.serverWFS:"https://api.tmb.cat/v1/maps/wfs";this.wmsInfo.urlServerMapsGWC=g.serverGWC?g.serverGWC:["https://api1.tmb.cat/v1/maps/gwc/wms","https://api2.tmb.cat/v1/maps/gwc/wms","https://api3.tmb.cat/v1/maps/gwc/wms"];this.wmsInfo.limits={wms_fons:[5E4,50],accessos_fisics:[2500,50],accessos:[15E3,2500],estacions_linia:[15E3,50],estacions:[5E4,15E3],
parades_actives:[25E3,50]};this.wmsLayers={};this.gmap=null;this.print=!1;this.createDivs_();this.inicialize_()};geoapi.Map.prototype=Object.create(geoapi.BaseMap.prototype);
geoapi.Map.prototype.createDivs_=function(){this.dom.parentDiv.addClass("mapContainer");this.dom.map=geoapi.jQuery("\x3cdiv /\x3e").addClass("map").appendTo(this.dom.parentDiv);this.dom.gmap=geoapi.jQuery("\x3cdiv /\x3e").addClass("gmap").appendTo(this.dom.parentDiv);this.config.gmMode?(this.dom.gimage=geoapi.jQuery("\x3cdiv /\x3e").addClass("gmapLogo").appendTo(this.dom.parentDiv),geoapi.jQuery("\x3cimg /\x3e").attr("alt","Powered by Google").attr("src",this.config.gmImageLocation).appendTo(this.dom.gimage)):
this.dom.gmap.hide()};
geoapi.Map.prototype.createWMSLayers_=function(){var g=[];return-1<this.wmsInfo.layers.indexOf("PARADES_BUS")&&(this.wmsLayers.PARADES_BUS=new ol.layer.Tile({source:new ol.source.TileWMS({params:{LAYERS:"PARADES_ACTIVES",FORMAT:"image/png",VERSION:"1.1.1",buffer:10,app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,CQL_FILTER:"TIPIFICACIO_PARADA NOT IN ('X') and NOM_TIPUS_PARADA NOT IN ('MONBBT')"},urls:this.wmsInfo.urlServerMapsWMS}),minResolution:geoapi.MapUtils.scale2Resolution(this.wmsInfo.limits.wms_fons[1],this.config.projectionMap),
maxResolution:geoapi.MapUtils.scale2Resolution(this.wmsInfo.limits.wms_fons[0],this.config.projectionMap)}),this.wmsLayers.PARADES_BUS.name="PARADES_BUS",g.push(this.wmsLayers.PARADES_BUS),g.push(this.createMouseOverLayer_("PARADES_BUS","PARADES_ACTIVES")),this.config.debug),-1<this.wmsInfo.layers.indexOf("PARADES_METRO")&&(this.wmsLayers.PARADES_METRO=new ol.layer.Tile({source:new ol.source.TileWMS({params:{LAYERS:"ESTACIONS_I_ACCESSOS",FORMAT:"image/png",VERSION:"1.1.1",buffer:10,app_key:this.config.appKeyTMB,
app_id:this.config.appIdTMB},urls:this.wmsInfo.urlServerMapsWMS}),minResolution:geoapi.MapUtils.scale2Resolution(this.wmsInfo.limits.wms_fons[1],this.config.projectionMap),maxResolution:geoapi.MapUtils.scale2Resolution(this.wmsInfo.limits.wms_fons[0],this.config.projectionMap)}),this.wmsLayers.PARADES_METRO.name="PARADES_METRO",g.push(this.wmsLayers.PARADES_METRO),g=g.concat(this.createMouseOverLayer_("PARADES_METRO",["ESTACIONS_LINIA","ACCESSOS_FISICS","ACCESSOS","ESTACIONS"])),this.config.debug),
g};
geoapi.Map.prototype.createMouseOverLayer_=function(g,p){var A=this,r=this.config.debug?.7:.01,B={ACCESSOS_FISICS:[220,36,31,r],ACCESSOS:[159,197,77,r],ESTACIONS_LINIA:[137,71,150,r],ESTACIONS:[0,171,255,r],PARADES_ACTIVES:[255,219,0,r]},t=[254,254,254,r];r=function(D){var x=A.wmsInfo.urlServerMapsWFS+"?app_key\x3d"+A.config.appKeyTMB;x+="\x26app_id\x3d"+A.config.appIdTMB;x=x+"\x26REQUEST\x3dGetFeature\x26TYPENAME\x3d"+D+"\x26outputFormat\x3djson";x+="\x26srsName\x3d"+A.config.projectionMap;x+="PARADES_BUS"==
g?"\x26CQL_FILTER\x3dTIPIFICACIO_PARADA NOT IN ('X')":"";D=new ol.layer.Vector({source:new ol.source.Vector({url:x,format:new ol.format.GeoJSON}),minResolution:geoapi.MapUtils.scale2Resolution(A.wmsInfo.limits[D.toLowerCase()][1],A.config.projectionMap),maxResolution:geoapi.MapUtils.scale2Resolution(A.wmsInfo.limits[D.toLowerCase()][0],A.config.projectionMap),style:new ol.style.Style({image:new ol.style.Circle({radius:6,fill:new ol.style.Fill({color:B[D]}),stroke:new ol.style.Stroke({color:t,width:2})})})});
return D.name=g,D.clicable=!0,D};var H=[];if("string"==typeof p)H=r(p);else if(1==p.length)H=r(p[0]);else for(var E in p)H.push(r(p[E]));return this.clickableFeaturesLayerList.push(g),this.cursorFeatureLayerList.push(g),this.layers[g]=H,H};
geoapi.Map.prototype.inicialize_=function(){var g=[];this.wmsInfo.urlServerMapsVTS="https://api.tmb.cat/v1/maps/vts/xyz/tmb-basic/{z}/{x}/{y}.png?app_id\x3d"+this.config.appIdTMB+"\x26app_key\x3d"+this.config.appKeyTMB;this.baseMaps.tmbCarto=new ol.layer.Tile({title:"TMB Carto",type:"base",source:new ol.source.XYZ({url:this.wmsInfo.urlServerMapsVTS})});g.push(this.baseMaps.tmbCarto);g=g.concat(this.createWMSLayers_());this.wmsLayers.XARXA_METRO=1<this.wmsInfo.urlServerMapsWMS.length?new ol.layer.Tile({source:new ol.source.TileWMS({params:{LAYERS:"XARXA_METRO",
FORMAT:"image/png",VERSION:"1.1.1",TRANSPARENT:!0,app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB},urls:this.wmsInfo.urlServerMapsWMS})}):new ol.layer.Image({source:new ol.source.ImageWMS({params:{LAYERS:"XARXA_METRO",FORMAT:"image/png",VERSION:"1.1.1",TRANSPARENT:!0,app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB},url:this.wmsInfo.urlServerMapsWMS[0]})});this.wmsLayers.XARXA_METRO.name="XARXA_METRO";this.wmsLayers.XARXA_METRO.setVisible(!1);g.push(this.wmsLayers.XARXA_METRO);
this.config.debug;this.wmsLayers.XARXA_BUS=1<this.wmsInfo.urlServerMapsWMS.length?new ol.layer.Tile({source:new ol.source.TileWMS({params:{LAYERS:"XARXA_BUS",FORMAT:"image/png",VERSION:"1.1.1",app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB},urls:this.wmsInfo.urlServerMapsWMS})}):new ol.layer.Image({source:new ol.source.ImageWMS({params:{LAYERS:"XARXA_BUS",FORMAT:"image/png",TRANSPARENT:!0,app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB},url:this.wmsInfo.urlServerMapsWMS[0]})});
this.wmsLayers.XARXA_BUS.name="XARXA_BUS";this.wmsLayers.XARXA_BUS.setVisible(!1);g.push(this.wmsLayers.XARXA_BUS);this.config.debug;this.wmsLayers.XARXA_BAD=1<this.wmsInfo.urlServerMapsWMS.length?new ol.layer.Tile({source:new ol.source.TileWMS({params:{LAYERS:"XARXA_BAD",FORMAT:"image/png",VERSION:"1.1.1",app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB},urls:this.wmsInfo.urlServerMapsWMS})}):new ol.layer.Image({source:new ol.source.ImageWMS({params:{LAYERS:"XARXA_BAD",FORMAT:"image/png",
TRANSPARENT:!0,app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB},url:this.wmsInfo.urlServerMapsWMS[0]})});this.wmsLayers.XARXA_BAD.name="XARXA_BAD";this.wmsLayers.XARXA_BAD.setVisible(!1);g.push(this.wmsLayers.XARXA_BAD);this.config.debug;this.markersLayer=this.baseMaps.enableCluster?new ol.layer.AnimatedCluster({name:"GEOAPI_MARKERS",opacity:1,visible:!0,source:new ol.source.Cluster({distance:this.baseMaps.distanceCluster,source:new ol.source.Vector({})}),style:this.baseMaps.styleCluster}):
new ol.layer.Vector({source:new ol.source.Vector({}),opacity:1,visible:!0});this.markersLayer.name="GEOAPI_MARKERS";g.push(this.markersLayer);this.config.debug;this.config.gmMode&&(this.gmap=new google.maps.Map(this.dom.gmap[0],{mapTypeId:google.maps.MapTypeId.ROADMAP,disableDefaultUI:!0,keyboardShortcuts:!1,draggable:!1,disableDoubleClickZoom:!0,scrollwheel:!1,streetViewControl:!1,panControl:!1,styles:this.config.styleGoogleMaps,mapTypeControlOptions:{mapTypeIds:["blank",google.maps.MapTypeId.ROADMAP,
google.maps.MapTypeId.SATELLITE]}}),this.gmap.mapTypes.set("blank",new geoapi.GMBlank(new google.maps.Size(256,256))),this.dom.gimage.hide(),-1<this.wmsInfo.layers.indexOf("TRAFFIC")&&(this.wmsLayers.TRAFFIC=new google.maps.TrafficLayer));var p=new ol.View({minZoom:this.config.minMapZoom,maxZoom:this.config.maxMapZoom,projection:this.config.projectionMap}),A=this;if(this.config.gmMode){var r=function(B){return 1<B.touches.length&&B.preventDefault(),!1};document.body.addEventListener("touchmove",r,
!0);this.dom.gmap[0].addEventListener("touchmove",r,!0);p.on("change:center",function(B){try{var t=ol.proj.transform(p.getCenter(),A.config.projectionMap,"EPSG:4326");A.gmap.setCenter(new google.maps.LatLng(t[1],t[0]))}catch(H){}});p.on("change:resolution",function(){try{A.gmap.setZoom(p.getZoom()),A.functions.changeZoom&&A.functions.changeZoom()}catch(B){}});geoapi.jQuery(window).resize(function(){var B=ol.proj.transform(p.getCenter(),A.config.projectionMap,"EPSG:4326");A.gmap.setCenter(new google.maps.LatLng(B[1],
B[0]))});google.maps.event.addListenerOnce(A.gmap,"idle",function(){})}else p.on("change:resolution",function(){A.functions.changeZoom&&A.functions.changeZoom()});this.map=new ol.Map({layers:g,interactions:ol.interaction.defaults({altShiftDragRotate:!1,pinchRotate:!1,dragPan:!1}).extend([new ol.interaction.DragPan({kinetic:null})]),target:this.dom.map[0],view:p,logo:!1});this.baseMaps.baseMapStart&&this.setBaseMap(this.baseMaps.baseMapStart);this.config.debug;this.dom.map.bind("contextmenu",function(B){B.preventDefault()});
this.dom.map.bind("mousedown",function(B){B.preventDefault();2!=B.button?null!=A.functions.rightClick&&A.functions.rightClick(B,A.map):null!=A.functions.leftClick&&A.functions.leftClick(B,A.map)});this.map.on("pointermove",function(B){if(!B.dragging){var t=A.map.getEventPixel(B.originalEvent);t=A.map.hasFeatureAtPixel(t,function(H){return 0<=A.cursorFeatureLayerList.indexOf(H.name)});A.map.getTarget().style.cursor=t?"pointer":"";null!=A.functions.pointerMove&&A.functions.pointerMove(B,A.map)}});this.map.on("singleclick",
function(B){null!=A.functions.featureClick&&A.functions.featureClick(B,A.map,A.config);B.preventDefault()});this.config.gmMode&&(this.dom.map.detach(),this.gmap.controls[google.maps.ControlPosition.TOP_LEFT].push(this.dom.map[0]));g=ol.proj.transformExtent(this.config.bcnExtent,"EPSG:4326",this.config.projectionMap);p.fitExtent(g,this.map.getSize());g=this.dom.map.find(".ol-zoom.ol-control button.ol-zoom-in");r=this.dom.map.find(".ol-zoom.ol-control button.ol-zoom-out");geoapi.jQuery(g).bind("click",
function(B){null!=A.functions.zoomInClick&&A.functions.zoomInClick(B)});geoapi.jQuery(r).bind("click",function(B){null!=A.functions.zoomOutClick&&A.functions.zoomOutClick(B)})};geoapi.Map.prototype.toRadians_=function(g){return g*Math.PI/180};
geoapi.Map.prototype.centerToAddedFeatures=function(g){this.baseMaps.enableCluster?this.fitBounds(this.markersLayer.getSource().getSource().getExtent(),this.config.projectionMap,void 0,g):this.fitBounds(this.markersLayer.getSource().getExtent(),this.config.projectionMap,void 0,g)};geoapi.Map.prototype.getGMap=function(){return null==this.gmap?this.gmapLogo:this.gmap};geoapi.Map.prototype.getGMapContainer=function(){return this.dom.gmap};
geoapi.Map.prototype.getLayerByName=function(g){return this.layers[g]||this.wmsLayers[g]};
geoapi.Map.prototype.getMarkerAtPixel=function(g){var p=this,A=this.map.forEachFeatureAtPixel(g,function(r,B){return[r,B]},null,function(r){return 0<=p.clickableFeaturesLayerList.indexOf(r.name)});return A?this.wmsLayers[A[1].name]?(A=this.wmsLayers[A[1].name],g=this.map.getCoordinateFromPixel(g),{url:A.getSource().getGetFeatureInfoUrl(g,this.map.getView().getResolution(),this.config.projectionMap,{INFO_FORMAT:"application/json"}),maxResolution:A.getMaxResolution(),name:A.name,type:"WMS"}):A[0]:null};
geoapi.Map.prototype.hideLayer=function(g){this.layers[g]&&(this.layers[g]instanceof Array?this.layers[g].forEach(function(p){p.setVisible(!1)}):this.layers[g].setVisible(!1));this.wmsLayers[g]&&("TRAFFIC"==g?this.gmap&&this.wmsLayers[g].setMap(null):this.wmsLayers[g].setVisible(!1))};geoapi.Map.prototype.isPrintMode=function(g){return this.print};
geoapi.Map.prototype.refreshWmsBusLines=function(g){this.wmsLayers.XARXA_BUS&&(g&&0<g.length?(this.wmsLayers.XARXA_BUS.setVisible(!0),this.wmsLayers.XARXA_BUS.getSource().updateParams({CQL_FILTER:"CODI_LINIA IN ("+g+")"})):this.wmsLayers.XARXA_BUS.setVisible(!1))};geoapi.Map.prototype.refreshWmsBusOnDemand=function(g){this.wmsLayers.XARXA_BAD&&(g&&0<g.length?(this.wmsLayers.XARXA_BAD.setVisible(!0),this.wmsLayers.XARXA_BAD.getSource().updateParams({CQL_FILTER:"CODI_LINIA IN ("+g+")"})):this.wmsLayers.XARXA_BAD.setVisible(!1))};
geoapi.Map.prototype.refreshWmsMetroLines=function(g){this.wmsLayers.XARXA_METRO&&(g&&0<g.length?(this.wmsLayers.XARXA_METRO.setVisible(!0),this.wmsLayers.XARXA_METRO.getSource().updateParams({CQL_FILTER:"CODI_LINIA IN ("+g+")"})):this.wmsLayers.XARXA_METRO.setVisible(!1))};
geoapi.Map.prototype.setBaseMap=function(g){if(!this.config.gmMode&&("ROADMAP"==g||"SATELLITE"==g))throw"No GoogleMaps loaded.";if("ROADMAP"==g||"SATELLITE"==g)this.baseMaps.tmbSoft.setVisible(!1),this.baseMaps.tmbCarto.setVisible(!1),this.gmap.setMapTypeId(google.maps.MapTypeId[g]);else if("SOFT_TMB"==g)this.config.gmMode&&this.gmap.setMapTypeId("blank"),this.baseMaps.tmbCarto.setVisible(!1),this.baseMaps.tmbSoft.setVisible(!0);else{if("CARTO_TMB"==g)this.config.gmMode&&this.gmap.setMapTypeId("blank"),
this.baseMaps.tmbCarto.setVisible(!0);else{if("NO_MAP"!=g)throw"Bad base map name.";this.config.gmMode&&this.gmap.setMapTypeId("blank");this.baseMaps.tmbCarto.setVisible(!1)}this.baseMaps.tmbSoft.setVisible(!1)}};geoapi.Map.prototype.setPrint=function(g){this.print=g};
geoapi.Map.prototype.showLayer=function(g){this.layers[g]&&(this.layers[g]instanceof Array?this.layers[g].forEach(function(p){p.setVisible(!0)}):this.layers[g].setVisible(!0));this.wmsLayers[g]&&("TRAFFIC"==g?this.gmap&&this.wmsLayers[g].setMap(this.gmap):this.wmsLayers[g].setVisible(!0))};
geoapi.SynopticMap=function(g){geoapi.BaseMap.call(this,g);this.config.projectionMap="EPSG:23031";this.config.svgFolder=g.svgFolder||"./img/svg/";this.config.svgFolder.endsWith("/")||(this.config.svgFolder+="/");this.config.gmImageLocation=window.pathTheme+"/images/powered-by-google-on-white.png";this.config.serverTMB=g.serverTMB||"https://tmbapi.tmb.cat/v1";this.config.placesStyleFunction=g.getPlacesStyle;this.config.isIE11=!!window.MSInputMethodContext&&!!document.documentMode;this.dom.gimage=null;
this.baseMaps.svgFons=[];this.IMAGE_SIZE=[585,411];this.IMAGE_EXTENT=[431865.557576,4571378.85886,441985.456834,4578469.67263];this.metrorList={1:{CODI_LINIA:1,ORDRE_SVG:6,OPACITY:1,VISIBLE:!0,STATIC_METRO:[434445,4577358]},2:{CODI_LINIA:2,ORDRE_SVG:8,OPACITY:1,VISIBLE:!0,STATIC_METRO:[434748,4577358]},3:{CODI_LINIA:3,ORDRE_SVG:5,OPACITY:1,VISIBLE:!0,STATIC_METRO:[435087,4577358]},4:{CODI_LINIA:4,ORDRE_SVG:4,OPACITY:1,VISIBLE:!0,STATIC_METRO:[435394,4577358]},5:{CODI_LINIA:5,ORDRE_SVG:3,OPACITY:1,
VISIBLE:!0,STATIC_METRO:[435702,4577358]},94:{CODI_LINIA:94,ORDRE_SVG:7,OPACITY:1,VISIBLE:!0,STATIC_METRO:[436009,4577358]},91:{CODI_LINIA:91,ORDRE_SVG:2,OPACITY:1,VISIBLE:!0},10:{CODI_LINIA:10,ORDRE_SVG:1,OPACITY:1,VISIBLE:!0},11:{CODI_LINIA:11,ORDRE_SVG:0,OPACITY:1,VISIBLE:!0}};this.placesList=[];var p=this;this.inicializeDivs_();this.inicialize_();this.inicializeData_().then(function(){p.inicializeLayers_()})};geoapi.SynopticMap.prototype=Object.create(geoapi.BaseMap.prototype);
geoapi.SynopticMap.prototype.getMetroLines_=function(){var g=(this.metrorList,geoapi.jQuery.Deferred()),p=this;return geoapi.jQuery.ajax(this.config.serverTMB+"/transit/linies/metro/",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,propertyName:"ID_LINIA,CODI_LINIA,NOM_LINIA,DESC_LINIA,ORIGEN_LINIA,DESTI_LINIA,COLOR_LINIA,COLOR_TEXT_LINIA,ID_OPERADOR,ORDRE_FAMILIA,NOM_TIPUS_TRANSPORT,ORDRE_LINIA",sortBy:"ORDRE_LINIA",srsName:this.config.projectionMap}}).done(function(A){if(!A.error)for(var r,
B=0;r=A.features[B];B++){var t=r.properties.NOM_LINIA,H=r.properties.NOM_TIPUS_TRANSPORT,E=(new RegExp(/([A-Z]+)([0-9]+)/)).exec(t);"FUNICULAR"!==H.toUpperCase()&&(null===E?r.properties.NOM_LINIA_TEXT=t:(r.properties.NOM_LINIA_TEXT=E[0],r.properties.NOM_LINIA_LLETRA=t.replace(E[0],"")),p.metrorList[r.properties.CODI_LINIA]=geoapi.jQuery.extend(p.metrorList[r.properties.CODI_LINIA]||{},r.properties))}g.resolve()}).fail(function(A,r){g.resolve()}),g.promise()};
geoapi.SynopticMap.prototype.getMetroPlaces_=function(g){var p=g?"linies/"+g.CODI_LINIA+"/":"",A=geoapi.jQuery.Deferred(),r=this;return geoapi.jQuery.ajax("https://tmbapi.tmb.cat/dev/transit/schematic/"+p+"emplacaments",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB}}).done(function(B){if(!B.error)for(var t in B.features){var H=B.features[t],E=geoapi.findIndex(r.placesList,function(D){return H.properties.ID_EMPLACAMENT==D.properties.ID_EMPLACAMENT});delete H.properties.CODI_LINIA;
delete H.properties.PICTO;H.properties.LINIES=g?[g]:[];0>E?r.placesList.push(H):0<=E&&g&&r.placesList[E].properties.LINIES.push(g)}A.resolve()}).fail(function(B,t){A.resolve()}),A.promise()};
geoapi.SynopticMap.prototype.inicializeData_=function(){var g=geoapi.jQuery.Deferred(),p=this;return this.getMetroLines_().then(function(A){var r=0,B=1,t;for(t in p.metrorList)B++,p.getMetroPlaces_(p.metrorList[t]).then(function(){r++;r>=B&&g.resolve()});p.getMetroPlaces_().then(function(){r++;r>=B&&g.resolve()})}),g.promise()};
geoapi.SynopticMap.prototype.inicializeDivs_=function(){this.dom.parentDiv.addClass("mapContainer");this.dom.map=geoapi.jQuery("\x3cdiv /\x3e").addClass("map").appendTo(this.dom.parentDiv);this.dom.gimage=geoapi.jQuery("\x3cdiv /\x3e").addClass("gmapLogo").appendTo(this.dom.parentDiv).hide();geoapi.jQuery("\x3cimg /\x3e").attr("alt","Powered by Google").attr("src",this.config.gmImageLocation).appendTo(this.dom.gimage)};
geoapi.SynopticMap.prototype.inicializeLayers_=function(){var g=this.createSvgLayer_(this.IMAGE_EXTENT,this.IMAGE_SIZE);this.config.debug;this.map.addLayer(g);this.setLayerBottom(g);g=this.createVectorLayer("EMPLACAMENTS",!0,500);var p=this,A;for(A in this.placesList){var r=new ol.Feature(new ol.geom.Point(this.placesList[A].geometry.coordinates));r.setStyle(function(B){return p.getPlacesStyle_(this,B)});r.name="EMPLACAMENT";r.info=this.placesList[A].properties;g.getSource().addFeature(r)}};
geoapi.SynopticMap.prototype.createSvgLayer_=function(g,p){var A=this,r=[],B=Object.keys(this.metrorList).map(function(D){return A.metrorList[D]});B=geoapi.jQuery.extend([],B).sort(function(D,x){return D.ordre-x.ordre});var t=function(D,x){D=D.getImage();D.width=p[0];D.height=p[1];D.src=x};g={url:this.config.svgFolder+"Fondo.svg",projection:this.config.projectionMap,imageExtent:g};this.config.isIE11&&(g.imageLoadFunction=t);this.baseMaps.svgFons.fons=new ol.layer.Image({source:new ol.source.ImageStatic(g)});
this.baseMaps.svgFons.fons.name="SVG FONS";r.push(this.baseMaps.svgFons.fons);this.baseMaps.svgFons.trens=new ol.layer.Vector({source:new ol.source.Vector});this.baseMaps.svgFons.fons.name="SVG TRENS";r.push(this.baseMaps.svgFons.trens);for(var H in B){var E=B[H].CODI_LINIA;if(g.url=this.config.svgFolder+B[H].NOM_LINIA+".svg",this.config.isIE11&&(g.imageLoadFunction=t),this.baseMaps.svgFons[E]=new ol.layer.Image({source:new ol.source.ImageStatic(g)}),this.baseMaps.svgFons[E].name="SVG "+B[H].NOM_LINIA,
this.baseMaps.svgFons[E].setOpacity(B[H].OPACITY),this.baseMaps.svgFons[E].setVisible(B[H].VISIBLE),r.push(this.baseMaps.svgFons[E]),B[H].STATIC_METRO)E=new ol.Feature({geometry:new ol.geom.Point(B[H].STATIC_METRO)}),E.setStyle(new ol.style.Style({image:new ol.style.Icon({src:this.config.svgFolder+"metro.png",size:[72,72],scale:.5,anchor:[.5,.5]}),zIndex:1E3})),this.baseMaps.svgFons.trens.getSource().addFeature(E)}return new ol.layer.Group({layers:r})};
geoapi.SynopticMap.prototype.refreshPlacesVisibility_=function(){var g=this.getLayerByName("EMPLACAMENTS");if(g){for(var p in g.getSource().getFeatures()){var A=g.getSource().getFeatures()[p];if(A.info){var r=A.info;var B=void 0;A=A.info.LINIES;if(0>=A.length)B=!0;else{var t=!1;for(B in A)t=A[B].VISIBLE||t;B=t}r.VISIBLE=B}}this.getLayerByName("EMPLACAMENTS").changed()}};
geoapi.SynopticMap.prototype.getPlacesStyle_=function(g,p){var A=[];return(void 0===g.info.VISIBLE||null===g.info.VISIBLE)&&(g.info.VISIBLE=!0),this.config.placesStyleFunction&&g.info.VISIBLE&&(A=this.config.placesStyleFunction(g,p)),A};
geoapi.SynopticMap.prototype.inicialize_=function(){var g=[],p=new ol.View({projection:this.config.projectionMap,center:ol.extent.getCenter(this.IMAGE_EXTENT),zoom:0,resolutions:[8,6,4,2]});this.markersLayer=this.baseMaps.enableCluster?new ol.layer.AnimatedCluster({name:"GEOAPI_MARKERS",opacity:1,visible:!0,source:new ol.source.Cluster({distance:this.baseMaps.distanceCluster,source:new ol.source.Vector({})}),style:this.baseMaps.styleCluster}):new ol.layer.Vector({source:new ol.source.Vector({}),opacity:1,
visible:!0});this.markersLayer.name="GEOAPI_MARKERS";g.push(this.markersLayer);this.config.debug;this.map=new ol.Map({layers:g,target:this.dom.map[0],view:p,logo:!1});var A=this;this.dom.map.bind("contextmenu",function(r){A.config.debug;r.preventDefault()});this.dom.map.bind("mousedown",function(r){r.preventDefault();var B=A.map.getEventPixel(r.originalEvent);A.map.getCoordinateFromPixel(B);A.config.debug;2!=r.button?(A.config.debug,null!=A.functions.rightClick&&A.functions.rightClick(r,A.map)):(A.config.debug,
null!=A.functions.leftClick&&A.functions.leftClick(r,A.map))});this.map.on("pointermove",function(r){if(!r.dragging){var B=A.map.getEventPixel(r.originalEvent);B=A.map.hasFeatureAtPixel(B,function(t){return 0<=A.cursorFeatureLayerList.indexOf(t.name)});A.map.getTarget().style.cursor=B?"pointer":"";null!=A.functions.pointerMove&&A.functions.pointerMove(r,A.map)}});this.map.on("singleclick",function(r){A.config.debug;null!=A.functions.featureClick&&A.functions.featureClick(r,A.map,A.config);r.preventDefault()});
p.on("change:resolution",function(){A.functions.changeZoom&&(A.config.debug,A.functions.changeZoom())});this.config.debug};geoapi.SynopticMap.prototype.getGoogleImatge=function(){return this.dom.gimage};geoapi.SynopticMap.prototype.getSvgLayersList=function(){var g=this;return Object.keys(this.metrorList).map(function(p){return g.metrorList[p]})};
geoapi.SynopticMap.prototype.hideBackLine=function(g){this.baseMaps.svgFons[g]&&this.metrorList[g].VISIBLE&&(this.baseMaps.svgFons[g].setVisible(!1),this.metrorList[g].VISIBLE=!1,this.refreshPlacesVisibility_())};geoapi.SynopticMap.prototype.setOpacity=function(g,p){this.baseMaps.svgFons[g]&&(this.config.isIE11?this.baseMaps.svgFons[g].setVisible(1==p):this.baseMaps.svgFons[g].setOpacity(p));this.metrorList[g].OPACITY=p};
geoapi.SynopticMap.prototype.showBackLine=function(g){this.baseMaps.svgFons[g]&&!this.metrorList[g].VISIBLE&&(this.baseMaps.svgFons[g].setVisible(!0),this.metrorList[g].VISIBLE=!0,this.refreshPlacesVisibility_())};geoapi.MapUtils={};geoapi.MapUtils.defaultOptions_=function(){return options={},options.precision=5,options.factor=Math.pow(10,options.precision),options.dimension=2,options};
geoapi.MapUtils.decodeDeltas_=function(g,p){p=this.defaultOptions_(p);var A=[];g=this.decodeFloats_(g,p);for(var r=0,B=g.length;B>r;)for(var t=0;t<p.dimension;++t,++r)g[r]=Math.round((A[t]=g[r]+(A[t]||0))*p.factor)/p.factor;return g};geoapi.MapUtils.decodeFloats_=function(g,p){g=this.decodeSignedIntegers_(g);for(var A=0,r=g.length;r>A;++A)g[A]/=p.factor;return g};
geoapi.MapUtils.decodeSignedIntegers_=function(g){g=this.decodeUnsignedIntegers_(g);for(var p=0,A=g.length;A>p;++p){var r=g[p];g[p]=1&r?~(r>>1):r>>1}return g};geoapi.MapUtils.decodeUnsignedIntegers_=function(g){for(var p=[],A=0,r=0,B=0,t=g.length;t>B;++B){var H=g.charCodeAt(B)-63;A|=(31&H)<<r;32>H?(p.push(A),A=0,r=0):r+=5}return p};geoapi.MapUtils.closeEnoughCoordinates=function(g,p,A){return Math.abs(parseInt(g[0]-p[0]))<=10*A||Math.abs(parseInt(g[1]-p[1]))<=10*A};
geoapi.MapUtils.decodeFeature=function(g,p){var A=this.defaultOptions_();g=this.decodeDeltas_(g,A);for(var r=[],B=0,t=g.length;B+(A.dimension-1)<t;){for(var H=[],E=0;E<A.dimension;++E)H.push(g[B++]);r.push(geoapi.proj4("EPSG:4326",p,[H[1],H[0]]))}return r};
geoapi.MapUtils.distanceTo=function(g,p){var A=this.toRadians_(g[1]),r=this.toRadians_(g[0]);g=this.toRadians_(p[1]);var B=this.toRadians_(p[0]);p=g-A;r=B-r;A=Math.sin(p/2)*Math.sin(p/2)+Math.cos(A)*Math.cos(g)*Math.sin(r/2)*Math.sin(r/2);return 12742E3*Math.atan2(Math.sqrt(A),Math.sqrt(1-A))};
geoapi.MapUtils.getExtendFrom=function(g){switch(g.type){case "MultiLineString":return g=new ol.geom.MultiLineString(g.coordinates),g.getExtent();case "Point":return g=new ol.geom.Point(g.coordinates),g.getExtent();default:return null}};geoapi.MapUtils.scale2Resolution=function(g,p){p=ol.proj.get(p).getUnits();return g/(25.4/.28*ol.proj.METERS_PER_UNIT[p]*39.37)};
geoapi.Service=function(g){this.config={};this.config.appKeyTMB=g.appKeyTMB;this.config.appIdTMB=g.appIdTMB;this.config.serverTMB=g.serverTMB?g.serverTMB:"https://api.tmb.cat/v1";this.config.serverTMBTransit=g.serverTMBTransit?g.serverTMBTransit:"https://api.tmb.cat/v1/transit";this.config.serverTMBPlanner=g.serverTMBPlanner?g.serverTMBPlanner:"https://api.tmb.cat/v1/planner";this.config.serverWFS=g.serverWFS||"https://tmbapi.tmb.cat/v1/maps/wfs";this.config.projectionMap=g.projectionMap?g.projectionMap:
"EPSG:3857";this.staticAeroport={};this.staticAeroport.aeroportT1LatLng=g.aeroportT1LatLng?g.aeroportT1LatLng:[2.071084018974261,41.288302426507215];this.staticAeroport.aeroportT2LatLng=g.aeroportT2LatLng?g.aeroportT2LatLng:[2.073257405552681,41.30367575635768];this.staticAeroport.portLatLng=g.portLatLng?g.portLatLng:[2.1779946,41.3739466];this.staticAeroport.airportNamesSearch=g.airportNamesSearch?g.airportNamesSearch:"airport;air;airp;airpo;airpor;aeropuerto;aeropuert;aeropuer;aeropue;aeropu;aerop;aero;aeroport;aeropor;aeropo;terminal;termina;termin;termi;term;ter;terminal ;terminal 1;terminal 2".split(";");
this.data={};this.data.allBusLines=null;this.data.allMetroLines=null;this.data.allOtherLines=null;this.requests={};this.requests.autocompleteRequest=null;this.requests.plannerRequest=null;this.requests.nearRequest=null;this.requests.busLinesRequest=null;this.requests.metroLinesRequest=null;this.requests.otherLinesRequest=null};
geoapi.Service.prototype.getNextBusTime_v2=function(g){var p=geoapi.jQuery.Deferred(),A=this;return geoapi.jQuery.ajax(this.config.serverTMB+"/ibus/stops/"+g,{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,numberOfPredictions:3}}).done(function(r){r=A.postSend(r);r.error?p.reject(r):(r.data.ibus&&0>=r.data.ibus.length&&r.data.ibus.push({"text-ca":"Sense info"}),p.resolve(r.data.ibus))}).fail(function(r,B){p.reject(r,B)}),p.promise()};
geoapi.Service.prototype.lineNotExist_=function(g,p,A){if(0>=A.length)return!0;for(var r in A){var B=A[r];if(B.CODI_LINIA==p&&B.ID_OPERADOR==g)return!1}return!0};geoapi.Service.prototype.operador2string_=function(g){return 1==g?"subway":2==g?"bus":"other"};
geoapi.Service.prototype.postSend=function(g){var p;if(g.crs&&0<=g.crs.properties.name.indexOf("urn:ogc:def:crs:")&&(g.crs.properties.name=g.crs.properties.name.replace("urn:ogc:def:crs:",""),g.crs.properties.name=g.crs.properties.name.replace("::",":"),p=g.crs),g.features)for(var A in g.features){var r=g.features[A];r.geometry&&(r.geometry.bbox=geoapi.MapUtils.getExtendFrom(r.geometry),r.geometry.crs=p)}return g};
geoapi.Service.prototype.autocompleteAddress=function(g){null!=this.requests.autocompleteRequest&&(this.requests.autocompleteRequest.resolve(),this.requests.autocompleteRequest=null);this.requests.autocompleteRequest=geoapi.jQuery.Deferred();var p=this;return geoapi.jQuery.ajax(this.config.serverTMB+"/geocode/icc/cercaCaixaUnica",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,entrada:g}}).done(function(A){p.requests.autocompleteRequest.resolve(A.ok?A.localitzacionsCaixaUnica.localitzacions.localitzacions:
[])}).fail(function(A,r){p.requests.autocompleteRequest.resolve([])}),this.requests.autocompleteRequest.promise()};
geoapi.Service.prototype.autocompletePlace=function(g,p){null!=this.requests.autocompleteRequest&&(this.requests.autocompleteRequest.resolve(),this.requests.autocompleteRequest=null);this.requests.autocompleteRequest=geoapi.jQuery.Deferred();var A=this;return geoapi.jQuery.ajax(this.config.serverTMB+"/geocode/icc/localitzaToponim",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,nomMunicipi:g,nom:p}}).done(function(r){if(r.ok){var B=[];"Barcelona"==g&&0<=A.staticAeroport.airportNamesSearch.indexOf(p.toLowerCase())&&
(B=manualToposAreo);A.requests.autocompleteRequest.resolve(B.concat(r.toponims.toponims))}else A.requests.autocompleteRequest.resolve([])}).fail(function(r,B){A.requests.autocompleteRequest.resolve([])}),this.requests.autocompleteRequest.promise()};
geoapi.Service.prototype.plannerRoute=function(g){null!=this.requests.plannerRequest&&(this.requests.plannerRequest.resolve(),this.requests.plannerRequest=null);this.requests.plannerRequest=geoapi.jQuery.Deferred();var p=this,A={app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,fromPlace:g.fromPlaceY+","+g.fromPlaceX,toPlace:g.toPlaceY+","+g.toPlaceX,date:g.date,time:g.time,arriveBy:g.arriveBy,mode:g.mode,maxWalkDistance:g.maxWalkDistance,showIntermediateStops:g.showIntermediateStops,optimizationMode:g.optimizationMode};
try{g.maxTransfers&&0<g.maxTransfers.length&&(A.maxTransfers=g.maxTransfers)}catch(r){}return geoapi.jQuery.ajax(this.config.serverTMBPlanner+"/plan",{data:A}).done(function(r){r.error&&p.requests.plannerRequest.resolve({});p.requests.plannerRequest.resolve(r)}).fail(function(r,B){p.requests.plannerRequest.resolve({})}),this.requests.plannerRequest.promise()};
geoapi.Service.prototype.nearStops=function(g){null!=this.requests.nearRequest&&(this.requests.nearRequest.resolve(),this.requests.nearRequest=null);this.requests.nearRequest=geoapi.jQuery.Deferred();var p="";switch(g.mode){case "subway":p="(CODI_TIPUS\x3d1)";break;case "bus":p="(CODI_TIPUS\x3d2)";break;default:p="( (CODI_TIPUS\x3d1) OR (CODI_TIPUS\x3d2) )"}var A=this;return geoapi.jQuery.ajax(this.config.serverTMB+"/maps/wfs",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,SERVICE:"WFS",
VERSION:"1.1.0",REQUEST:"GetFeature",TYPENAME:"ELEMENTS_SUPERFICIE",outputFormat:"json",srsName:"EPSG:4326",viewparams:"P_LON:"+g.lon+";P_LAT:"+g.lat+";P_DIST:"+g.radius,sortBy:"DISTANCE_IN_METERS",cql_filter:p}}).done(function(r){r=A.postSend(r);r.error&&A.requests.nearRequest.reject(r,status);var B=0,t=r.features.length,H=function(){if(B++,B>=t){var x=[],v;for(v in r.features){var C=r.features[v];0<C.properties.LINES.length&&x.push(C)}r.features=x;A.requests.nearRequest.resolve(r)}},E=function(x,
v){if(null==v||0>=v.features.length)x=null,H();else{var C=0,L=v.features.length,Q;for(Q in v.features)A[1==x.CODI_TIPUS?"getMetroLine":"getBusLine"](v.features[Q].properties.NOM_LINIA).then(function(J){if(null==J||null==J.properties,J.properties.mode=1==x.CODI_TIPUS?"subway":"bus",x.LINES[J.properties.CODI_LINIA]=J.properties,C++,C>=L){J=[];for(var X in x.LINES)J.push(x.LINES[X]);x.LINES=J;H()}})}},D=function(x){A.getLinesByStop(x.CODI,1==x.CODI_TIPUS?"METRO":"BUS").then(function(v){null==v||0>=v.features.length;
x.LINES={};E(x,v)})};r.features.forEach(function(x,v){D(x.properties)})}).fail(function(r,B){A.requests.nearRequest.reject(r,B)}),this.requests.nearRequest.promise()};
geoapi.Service.prototype.getGeometryById=function(g,p){var A=geoapi.jQuery.Deferred();g={app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,propertyName:"ID_LINIA,GEOMETRY",cql_filter:"(ID_LINIA IN ("+g+"))",srsName:this.config.projectionMap};var r=this.config.serverTMBTransit+"/linies/"+p+"/",B=this;return this.config.appViewParams&&null!==this.config.appViewParams&&0<=p.indexOf("metro")&&(r+=this.config.appViewParams),geoapi.jQuery.ajax(r,{data:g}).done(function(t){t=B.postSend(t);t.error?
A.reject(t):A.resolve(t)}).fail(function(t,H){A.reject(t,H)}),A.promise()};geoapi.Service.prototype.getLineExtension=function(g,p){var A=geoapi.jQuery.Deferred();return this.getGeometryById(g,p).then(function(r){r=r.features[0].geometry;r.bbox?A.resolve(r.bbox):A.reject(null)}),A.promise()};
geoapi.Service.prototype.getBusLines=function(g){if(this.data.allBusLines)return this.requests.busLinesRequest.resolve(this.data.allBusLines);if(this.requests.busLinesRequest)return this.requests.busLinesRequest.promise();this.requests.busLinesRequest=geoapi.jQuery.Deferred();var p=this;return geoapi.jQuery.ajax(this.config.serverTMBTransit+"/linies/bus/",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,propertyName:"ID_LINIA,NOM_LINIA,DESC_LINIA,CODI_LINIA,ORIGEN_LINIA,DESTI_LINIA,NOM_TIPUS_TRANSPORT,ORDRE_FAMILIA,COLOR_LINIA,COLOR_TEXT_LINIA,ID_OPERADOR",
cql_filter:g?"(CODI_FAMILIA IN (1,3,4,5,6,7,9,11))":"(CODI_FAMILIA IN (1,3,5,6,7,9,11))",srsName:this.config.projectionMap}}).done(function(A){A=p.postSend(A);A.error?this.requests.busLinesRequest.reject(A):(A.features&&0<A.features.length&&A.features.sort(function(r,B){var t=13<=r.properties.ORDRE_FAMILIA?13:r.properties.ORDRE_FAMILIA,H=13<=B.properties.ORDRE_FAMILIA?13:B.properties.ORDRE_FAMILIA;return t==H?r.properties.CODI_LINIA-B.properties.CODI_LINIA:t-H}),p.data.allBusLines=A,p.requests.busLinesRequest.resolve(A))}).fail(function(A,
r){p.requests.busLinesRequest.reject(A,r)}),this.requests.busLinesRequest.promise()};geoapi.Service.prototype.getBusLine=function(g){var p=geoapi.jQuery.Deferred();return this.getBusLines().then(function(A){a:{for(var r in A.features){var B=A.features[r];if(B.properties.NOM_LINIA==g){A=B;break a}}A=null}p.resolve(A)}),p.promise()};
geoapi.Service.prototype.getMetroLines=function(){if(this.data.allMetroLines)return this.requests.metroLinesRequest.resolve(this.data.allMetroLines);if(!this.requests.metroLinesRequest){this.requests.metroLinesRequest=geoapi.jQuery.Deferred();var g={app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,propertyName:"ID_LINIA,CODI_LINIA,NOM_LINIA,DESC_LINIA,ORIGEN_LINIA,DESTI_LINIA,COLOR_LINIA,COLOR_TEXT_LINIA,ID_OPERADOR,ORDRE_FAMILIA,NOM_TIPUS_TRANSPORT,ORDRE_LINIA",sortBy:"ORDRE_LINIA",srsName:this.config.projectionMap},
p=this,A=this.config.serverTMBTransit+"/linies/metro/";this.config.appViewParams&&null!==this.config.appViewParams&&(A+=this.config.appViewParams);geoapi.jQuery.ajax(A,{data:g}).done(function(r){if(r=p.postSend(r),r.error)p.requests.metroLinesRequest.reject(r);else{p.data.allMetroLines=r;for(var B,t=0;B=p.data.allMetroLines.features[t];t++){var H=B.properties.NOM_LINIA;"FUNICULAR"===B.properties.NOM_TIPUS_TRANSPORT.toUpperCase()&&(B.properties.DESC_LINIA="Funicular ("+B.properties.DESC_LINIA+")");
var E=(new RegExp(/([A-Z]+)([0-9]+)/)).exec(H);null===E?B.properties.NOM_LINIA_TEXT=H:(B.properties.NOM_LINIA_TEXT=E[0],B.properties.NOM_LINIA_LLETRA=H.replace(E[0],""))}p.requests.metroLinesRequest.resolve(r)}}).fail(function(r,B){p.requests.metroLinesRequest.reject(r,B)})}return this.requests.metroLinesRequest.promise()};
geoapi.Service.prototype.getMetroLine=function(g){var p=geoapi.jQuery.Deferred();return this.getMetroLines().then(function(A){a:{for(var r in A.features){var B=A.features[r],t=B.properties.NOM_LINIA,H=(new RegExp(/([A-Z]+)([0-9]+)/)).exec(t);if(null===H?B.properties.NOM_LINIA_TEXT=t:(B.properties.NOM_LINIA_TEXT=H[0],B.properties.NOM_LINIA_LLETRA=t.replace(H[0],"")),B.properties.NOM_LINIA==g){A=B;break a}}A=null}p.resolve(A)}),p.promise()};
geoapi.Service.prototype.getOtherLines=function(){if(this.data.allOtherLines)return this.requests.otherLinesRequest.resolve(this.data.allOtherLines);if(!this.requests.otherLinesRequest){this.requests.otherLinesRequest=geoapi.jQuery.Deferred();var g=this;geoapi.jQuery.ajax(this.config.serverTMBTransit+"/linies/altres/",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,propertyName:"ID_LINIA,CODI_LINIA,NOM_LINIA,DESC_LINIA,ORIGEN_LINIA,DESTI_LINIA,COLOR_LINIA,COLOR_TEXT_LINIA,ID_OPERADOR,ORDRE_FAMILIA,NOM_TIPUS_TRANSPORT,GEOMETRY",
sortBy:"CODI_LINIA",srsName:this.config.projectionMap}}).done(function(p){if(p=g.postSend(p),p.error)g.otherLinesRequest.reject(p);else{var A={},r;for(r in p.features){var B=p.features[r];A[B.properties.ID_OPERADOR]||(A[B.properties.ID_OPERADOR]=[]);A[B.properties.ID_OPERADOR].push(B)}p.features=A;g.data.allOtherLines=p;g.requests.otherLinesRequest.resolve(p)}}).fail(function(p,A){g.requests.otherLinesRequest.reject(p,A)})}return this.requests.otherLinesRequest.promise()};
geoapi.Service.prototype.getOtherLine=function(g,p,A){var r=geoapi.jQuery.Deferred();return this.getOtherLines().then(function(B){a:{B=B.features[p];for(H in B){var t=B[H];if(t.properties.NOM_LINIA==g&&t.properties.ID_LINIA==A){var H=t;break a}}H=null}r.resolve(H)}),r.promise()};
geoapi.Service.prototype.getAccess=function(g,p){var A=geoapi.jQuery.Deferred(),r={app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,srsName:this.config.projectionMap},B=this;g=this.config.serverTMBTransit+"/estacions"+(p?"/"+p:"")+"/accessos"+(g?"/"+g:"");return this.config.appViewParams&&null!==this.config.appViewParams&&(g+="/"+this.config.appViewParams),geoapi.jQuery.ajax(g,{data:r}).done(function(t){t=B.postSend(t);t.error?A.reject(t):A.resolve(t)}).fail(function(t,H){A.reject(t,H)}),
A.promise()};
geoapi.Service.prototype.getAccessLines=function(g){var p=geoapi.jQuery.Deferred(),A=this;return this.getAccess(g).then(function(r){var B=null;if(0<r.features.length){var t={app_key:A.config.appKeyTMB,app_id:A.config.appIdTMB,srsName:A.config.projectionMap,sortBy:"ORDRE_LINIA"};B=r.features[0].properties;geoapi.jQuery.ajax(A.config.serverTMBTransit+"/linies/metro/estacions/accessos/"+B.CODI_ACCES,{data:t}).done(function(H){H=A.postSend(H);H.error?p.reject(H):p.resolve(H)}).fail(function(H,E){p.reject(H,
E)})}}),p.promise()};
geoapi.Service.prototype.getStop=function(g,p,A,r){var B=geoapi.jQuery.Deferred();if("string"!=typeof A)return B.reject(null,"No type");var t="";"undefined"!=typeof g&&0<g.toString().length&&(t="/"+g);g="";"undefined"!=typeof p&&0<p.toString().length&&(g="/"+p);var H,E=p="",D="";"BUS"==A?(p="/bus",E="/parades",D=r?"(("+r+") AND (CODI_FAMILIA IN (1,3,5,6,7,9,11)) )":"(CODI_FAMILIA IN (1,3,5,6,7,9,11))",H="SENTIT,ORDRE"):(p="/metro",E="/estacions",D=r?"("+r+" and ID_TIPUS_SERVEI\x3d1)":"",H="ORDRE_ESTACIO");
A={app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,cql_filter:D,sortBy:H,srsName:this.config.projectionMap};var x=this;t=this.config.serverTMBTransit+"/linies"+p+t+E+g;return this.config.appViewParams&&null!==this.config.appViewParams&&0<=p.indexOf("metro")&&(t+="/"+this.config.appViewParams),geoapi.jQuery.ajax(t,{data:A}).done(function(v){if(v=x.postSend(v),v.error||v.exceptions)B.reject(v);else{for(var C in v.features)v.features[C].geometry.crs=v.crs;B.resolve(v)}}).fail(function(v,C){B.reject(v,
C)}),B.promise()};geoapi.Service.prototype.getStops=function(g,p){return this.getStop(g,void 0,p)};geoapi.Service.prototype.getLinesByStop=function(g,p){return this.getStop(void 0,g,p)};geoapi.Service.prototype.getLinesByGroupMetroStop=function(g){return this.getStop(void 0,void 0,"METRO","CODI_GRUP_ESTACIO\x3d"+g)};
geoapi.Service.prototype.existBusStop=function(g){var p=geoapi.jQuery.Deferred();return this.getStop(void 0,g,"BUS",void 0).then(function(A){p.resolve(0<A.totalFeatures?!0:!1)},function(){p.resolve(!1)}),p.promise()};
geoapi.Service.prototype.getLineConnections=function(g,p,A,r){var B=geoapi.jQuery.Deferred();if("string"!=typeof A)return B.reject(null,"No type");"string"!=typeof r&&(r="all");var t="";"undefined"!=typeof g&&0<g.toString().length&&(t="/"+g);g="";"undefined"!=typeof p&&0<p.toString().length&&(g="/"+p);var H=p="",E="";switch("BUS"==A?(p="/bus",H="/parades",E="NOM_LINIA,CODI_PARADA,ID_LINIA,CODI_LINIA,ID_OPERADOR"):(p="/metro",H="/estacions",E="NOM_LINIA,CODI_ESTACIO,ID_LINIA,CODI_LINIA,ID_OPERADOR"),
r){case "metro":r="ID_OPERADOR IN (1)";break;case "mfrt":r="ID_OPERADOR IN (1,3,4,5)";break;case "mb1f":r="(ID_OPERADOR IN (2) AND CODI_FAMILIA IN (5,6,7)) OR (ID_OPERADOR IN (1,3))";break;case "fgc":r="ID_OPERADOR NOT IN (1,2)";break;default:r="ID_OPERADOR IN (1)"}var D=this;return geoapi.jQuery.ajax(this.config.serverTMBTransit+"/linies"+p+t+H+g+"/corresp",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,propertyName:E,cql_filter:r?"("+r+")":"",srsName:this.config.projectionMap}}).done(function(x){if(x=
D.postSend(x),x.error)B.reject(x);else{var v=function(){if(Q++,Q>=L){for(var ua in J){var ra=J[ua],Za=[],Na={},Mb;for(Mb in ra){var fb=ra[Mb];3==fb.ID_OPERADOR||5==fb.ID_OPERADOR?Na[fb.ID_OPERADOR]?(Na[fb.ID_OPERADOR].CODI_LINIA.push(fb.CODI_LINIA),Na[fb.ID_OPERADOR].DESC_LINIA+=", "+fb.DESC_LINIA,Na[fb.ID_OPERADOR].NOM_LINIA+=", "+fb.NOM_LINIA):(Na[fb.ID_OPERADOR]=jQuery.extend({},fb),Na[fb.ID_OPERADOR].CODI_LINIA=[fb.CODI_LINIA],Na[fb.ID_OPERADOR].COLOR_LINIA="ffffff",Na[fb.ID_OPERADOR].COLOR_TEXT_LINIA=
"000000",Za.push(Na[fb.ID_OPERADOR])):Za.push(fb)}Za.sort(function(Nb,Oa){return Nb.ID_OPERADOR-Oa.ID_OPERADOR});J[ua]=Za}x.features=J;B.resolve(x)}},C=function(ua,ra){var Za=D.operador2string_(ua.ID_OPERADOR);D["subway"==Za?"getMetroLine":"bus"==Za?"getBusLine":"getOtherLine"](ua.NOM_LINIA,ua.ID_OPERADOR,ua.ID_LINIA).then(function(Na){null==Na||(Na.properties.mode=Za,J[ra][Na.properties.ID_LINIA]=Na.properties);v()})},L=x.features.length,Q=0,J={};if(0<x.features.length)for(var X in x.features){var I=
x.features[X],ka="BUS"==A?I.properties.CODI_PARADA:I.properties.CODI_ESTACIO;J[ka]||(J[ka]=[]);C(I.properties,ka)}else v()}}).fail(function(x,v){B.reject(x,v)}),B.promise()};
geoapi.Service.prototype.getBusStopInfo=function(g){var p=geoapi.jQuery.Deferred(),A=this;return geoapi.jQuery.ajax(this.config.serverTMBTransit+"/parades/"+g,{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,propertyName:"ID_PARADA,CODI_PARADA,DESC_PARADA,ADRECA,NOM_PARADA,GEOMETRY",srsName:this.config.projectionMap}}).done(function(r){r=A.postSend(r);r.error?p.reject(r):0<r.features.length?p.resolve(r.features[0]):p.reject(r,status)}).fail(function(r,B){p.reject(r,B)}),p.promise()};
geoapi.Service.prototype.getMetroStopInfo=function(g){var p=geoapi.jQuery.Deferred(),A=this;return this.getStop(void 0,g,"METRO",void 0).then(function(r){if(r.error)p.reject(r);else{var B=null;0<r.features.length?(B=r.features[0],B.lines=[],A.getLinesByGroupMetroStop(B.properties.CODI_GRUP_ESTACIO).then(function(t){var H=t.features.length,E=0,D=function(v){A.getMetroLine(v.NOM_LINIA).then(function(C){B.lines.push(C);E++;E>=H&&p.resolve(B)})},x;for(x in t.features)D(t.features[x].properties)})):p.reject(r)}}),
p.promise()};
geoapi.Service.prototype.getLinesByBusStop=function(g,p){var A=geoapi.jQuery.Deferred(),r=this;return geoapi.jQuery.ajax(this.config.serverTMBTransit+"/parades/"+g+"/corresp",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,cql_filter:"(ID_OPERADOR \x3d 1 OR (ID_OPERADOR \x3d 2 AND CODI_FAMILIA IN (1,3,5,6,7,9,11)) )",srsName:this.config.projectionMap}}).done(function(B){if(B=r.postSend(B),B.error)A.reject(B);else{B.features&&0<B.features.length&&B.features.sort(function(C,L){var Q=
13<=C.properties.ORDRE_FAMILIA?13:C.properties.ORDRE_FAMILIA,J=13<=L.properties.ORDRE_FAMILIA?13:L.properties.ORDRE_FAMILIA;return Q==J?C.properties.CODI_LINIA-L.properties.CODI_LINIA:Q-J});var t={busLines:[],busCorresp:[],metro:[],other:[]},H;for(H in B.features){var E=B.features[H].properties,D=E.NOM_LINIA,x=(new RegExp(/([A-Z]+)([0-9]+)/)).exec(D);null===x?B.features[H].properties.NOM_LINIA_TEXT=D:(B.features[H].properties.NOM_LINIA_TEXT=x[0],B.features[H].properties.NOM_LINIA_LLETRA=D.replace(x[0],
""));1==E.ID_OPERADOR?t.metro.push(B.features[H]):2==E.ID_OPERADOR&&(1==E.NUM_SENTITS&&0==E.DIST_AGR||2==E.NUM_SENTITS&&0==E.DIST_AGR.split(".")[0]||2==E.NUM_SENTITS&&0==E.DIST_AGR.split(".")[1])?t.busLines.push(B.features[H]):2==E.ID_OPERADOR&&(1==E.NUM_SENTITS&&0!=E.DIST_AGR||2==E.NUM_SENTITS&&0!=E.DIST_AGR)?t.busCorresp.push(B.features[H]):t.other.push(B.features[H])}if(p&&0<t.busLines.length){var v=t.busLines.length;(function(C){r.getNextBusTime_v2(C).then(function(L){for(var Q=0;t.busLines[Q];Q++){for(var J,
X=[],I=0;J=L[I];I++)t.busLines[Q].properties.NOM_LINIA===J.line&&X.push(J);t.busLines[Q].properties.nextBus=X;v--;0>=v&&A.resolve(t)}})})(g)}else A.resolve(t)}}).fail(function(B,t){A.reject(B,t)}),A.promise()};
geoapi.Service.prototype.getNextBusTime=function(g,p){var A=geoapi.jQuery.Deferred(),r=this;return geoapi.jQuery.ajax(this.config.serverTMB+"/ibus/lines/"+g+"/stops/"+p,{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,numberOfPredictions:3}}).done(function(B){B=r.postSend(B);B.error?A.reject(B):(B.data.ibus&&0>=B.data.ibus.length&&B.data.ibus.push({"text-ca":"Sense info"}),A.resolve(B.data.ibus))}).fail(function(B,t){A.reject(B,t)}),A.promise()};
geoapi.Service.prototype.getBusAffectations=function(g,p){var A=geoapi.jQuery.Deferred(),r="";g&&(r="/routes/"+g);p&&(r="/stops/"+p);var B=this;return geoapi.jQuery.ajax(this.config.serverTMB+"/alerts/bus/channels/WEB"+r,{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB}}).done(function(t){t=B.postSend(t);t.error?A.reject(t):A.resolve(t)}).fail(function(t,H){A.reject(t,H)}),A.promise()};
geoapi.Service.prototype.getMetroAffectations=function(g,p){var A=geoapi.jQuery.Deferred(),r="";p&&0<p.length&&g&&0<g.length?r="routes/"+g+"/stops/"+p:g&&0<g.length&&(r="routes/"+g);var B=this;return geoapi.jQuery.ajax(this.config.serverTMB+"/alerts/metro/channels/WEB/"+r,{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB}}).done(function(t){t=B.postSend(t);t.error?A.reject(t):A.resolve(t)}).fail(function(t,H){A.reject(t,H)}),A.promise()};
geoapi.Service.prototype.getMetroLocations=function(g){var p=geoapi.jQuery.Deferred(),A="";g&&(A="linies/"+g+"/");g={app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB};g={app_key:"9403af51251dc86df05a0c49f71df403",app_id:"62c5e646"};var r=this;return geoapi.jQuery.ajax("https://tmbapi.tmb.cat/dev/transit/schematic/"+A+"emplacaments",{data:g}).done(function(B){B=r.postSend(B);B.error?p.reject(B):p.resolve(B)}).fail(function(B,t){p.reject(B,t)}),p.promise()};
geoapi.Service.prototype.getMetroTimetable=function(g){var p=geoapi.jQuery.Deferred(),A={propertyName:"ID_HORARI,HORARI,PRIMERA_SORTIDA,ULTIMA_SORTIDA,ID_TIPUS_DIA,DESC_TIPUS_DIA",app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB};g=this.config.serverTMBTransit+"/linies/metro/"+g+"/horaris";var r=this;return this.config.appViewParams&&null!==this.config.appViewParams&&(g+="/"+this.config.appViewParams),geoapi.jQuery.ajax(g,{data:A}).done(function(B){B=r.postSend(B);B.error?p.reject(B):p.resolve(B)}).fail(function(B,
t){p.reject(B,t)}),p.promise()};geoapi.Service.prototype.getBusTimetable=function(g,p,A){var r=geoapi.jQuery.Deferred(),B=this;return geoapi.jQuery.ajax(this.config.serverTMBTransit+"/linies/bus/"+g+"/parades/"+p+"/horespas",{data:{app_key:this.config.appKeyTMB,app_id:this.config.appIdTMB,cql_filter:"SENTIT \x3d '"+A+"'",sortBy:"ID_TIPUS_DIA,ORDRE_LITERAL"}}).done(function(t){(t=B.postSend(t),t.error)?r.reject(t):r.resolve(t.features)}).fail(function(t,H){r.reject(t,H)}),r.promise()};
geoapi.Service.prototype.getJsonFromWfs=function(g,p){var A=this.config.serverWFS+"?SERVICE\x3dWFS\x26VERSION\x3d1.1.1\x26REQUEST\x3dGetFeature\x26outputFormat\x3djson";A=A+("\x26typeNames\x3d"+g)+("\x26app_key\x3d"+this.config.appKeyTMB);A+="\x26app_id\x3d"+this.config.appIdTMB;A+=p?"\x26CQL_FILTER\x3d"+p:"";var r=geoapi.jQuery.Deferred(),B=this;return geoapi.jQuery.ajax(A).done(function(t){t=B.postSend(t);t.error?r.reject(t):(t.crs="EPSG:4326",r.resolve(t))}).fail(function(t,H){r.reject(t,H)}),
r.promise()};
geoapi.Service.prototype.getTmbPoints=function(){var g=geoapi.jQuery.Deferred();if(0<=window.location.href.indexOf("www.tmb.cat")){var p=this;geoapi.jQuery.ajax(url,{data:getParams}).done(function(A){A=p.postSend(A);A.error?g.reject(A):(A.crs="EPSG:4326",g.resolve(A))}).fail(function(A,r){g.reject(A,r)})}else g.resolve({type:"FeatureCollection",features:[{type:"Feature",id:"VIEW_EXPORT_PUNTS.63858",geometry:{type:"Point",coordinates:[2.158764954437297,41.39435090750432]},geometry_name:"GEOMETRY",properties:{CODI:"PUNTTMB1",
NOM:"Punt TMB Diagonal",CODI_TIPUS:12,DESC_TIPUS:"Centre d'Informaci\u00f3 a Client",HORARI_CAT:"Dies feiners, de dilluns a divendres de 8.00 a 20.00 h. Dissabtes, de 9.00 a 14.00 i de 15.00 a 19.00 h. Diumenges i festius, de 9.00 a 14.00 h. Festius 1 de gener, 25 de desembre i 26 de desembre, tancat. Juliol, agost i fins al 13 de setembre incl\u00f2s, caps de setmana i festius, tancat. Del 3 d'agost al 4 de setembre incl\u00f2s, dies feiners, obert de 8.00 a 15.00 h. Vest\u00edbul de l'estaci\u00f3 de Diagonal. Entrada pel carrer Rossell\u00f3 - Rambla de Catalunya.",
CORRESPONDENCIES:"L3; L5",HORARI_CAST:"D\u00edas laborables, de lunes a viernes de 8.00 a 20.00 h. S\u00e1bados, de 9.00 a 14.00 y de 15.00 a 19.00 h. Domingos y festivos, de 9.00 a 14.00 h. Festivos 1 de enero, 25 de diciembre y 26 de diciembre, cerrado. Julio, agosto y hasta el 13 de septiembre incluido, fines de semana y festivos, cerrado. Del 3 de agosto al 4 de septiembre incluido, d\u00edas laborables, abierto de 8.00 a 15.00 h. Vest\u00edbulo de la estaci\u00f3n de Diagonal. Entrada por la calle Rossell\u00f3 - Rambla de Catalunya.",
HORARI_ENG:"Monday to Friday from 8.00 am to 8.00 pm. Saturday from 9.00 am to 2 pm and from 3 pm to 7.00 pm. Sundays and public holidays from 9.00 am to 2.00 pm. Public holidays 1 January, 25 and 26 December, closed. July, August and up to 13 September inclusive, weekends and public holidays, closed. From 3 August to 4 September inclusive, weekdays, from 8.00 am to 3.00 pm. Diagonal station lobby. Entrance: Carrer Rossell\u00f3 - Rambla de Catalunya."}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63862",
geometry:{type:"Point",coordinates:[2.1646529061362445,41.38583514326069]},geometry_name:"GEOMETRY",properties:{CODI:"PUNTTMB5",NOM:"Punt TMB Universitat",CODI_TIPUS:12,DESC_TIPUS:"Centre d'Informaci\u00f3 a Client",CORRESPONDENCIES:"L1; L2",HORARI_CAT:"Dies feiners, de dilluns a divendres de 8.00 a 20.00 h. Del 3 d'agost al 4 de setembre incl\u00f2s, dies feiners, obert de 8.00 a 15.00 h. Vest\u00edbul de l\u2019estaci\u00f3 d\u2019Universitat. Entrada pel carrer de Pelai.",HORARI_CAST:"D\u00edas laborables, de lunes a viernes de 8.00 a 20.00 h. Del 3 de agosto al 4 de septiembre incluido, d\u00edas laborables, abierto de 8.00 a 15.00 h. Vest\u00edbulo de la estaci\u00f3n de Universitat. Entrada por la calle Pelai.",
HORARI_ENG:"Monday to Friday from 8.00 am to 8.00 pm. From 3 August to 4 September inclusive, weekdays, from 8.00 am to 3.00 pm. Universitat station lobby. Entrance: Carrer Pelai."}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63860",geometry:{type:"Point",coordinates:[2.1872013991026362,41.42189137563292]},geometry_name:"GEOMETRY",properties:{CODI:"PUNTTMB3",NOM:"Punt TMB La Sagrera",CODI_TIPUS:12,DESC_TIPUS:"Centre d'Informaci\u00f3 a Client",CORRESPONDENCIES:"L1; L5; L9; L10",HORARI_CAT:"Dies feiners, de dilluns a divendres de 8.00 a 20.00 h. Del 29 de juny al 31 de juliol, tancat per treballs de millora. Del 3 d'agost al 10 de setembre incl\u00f2s, dies feiners, obert de 8.00 a 15.00 h. Vest\u00edbul de l'estaci\u00f3 de La Sagrera. Entrada pel carrer d'Hondures.",
HORARI_CAST:"D\u00edas laborables, de lunes a viernes de 8.00 a 20.00 h. Del 29 de junio al 31 de julio, cerrado por trabajos de mejora. Del 3 de agosto al 10 de septiembre incluido, d\u00edas laborables, abierto de 8.00 a 15.00 h. Vest\u00edbulo de la estaci\u00f3n de La Sagrera. Entrada por la calle Hondures.",HORARI_ENG:"Monday to Friday from 8.00 am to 8.00 pm. From 3 August to 10 September inclusive, weekdays, from 8.00 am to 3.00 pm. La Sagrera station lobby. Entrance: Carrer Hondures."}}],
crs:"EPSG:4326"});return g.promise()};
geoapi.Service.prototype.getPois=function(){var g=geoapi.jQuery.Deferred(),p=this;0<=window.location.href.indexOf("www.tmb.cat")?geoapi.jQuery.ajax(url,{data:getParams}).done(function(A){A=p.postSend(A);A.error?g.reject(A):(A.crs="EPSG:4326",g.resolve(A))}).fail(function(A,r){g.reject(A,r)}):g.resolve({type:"FeatureCollection",features:[{type:"Feature",id:"VIEW_EXPORT_PUNTS.63184",geometry:{type:"Point",coordinates:[2.170425518378345,41.38485890892246]},geometry_name:"GEOMETRY",properties:{CODI:"TUR589",
NOM:"La Rambla",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63185",geometry:{type:"Point",coordinates:[2.136959500506292,41.410409514242666]},geometry_name:"GEOMETRY",properties:{CODI:"TUR590",NOM:"Tramvia Blau",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63186",geometry:{type:"Point",coordinates:[2.133765744924558,41.39980286889365]},geometry_name:"GEOMETRY",properties:{CODI:"TUR591",NOM:"Col\u00b7legi de les Teresianes",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63187",geometry:{type:"Point",coordinates:[2.1189384476769817,41.38622080338176]},geometry_name:"GEOMETRY",properties:{CODI:"TUR592",NOM:"Museu de Cer\u00e0mica",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63188",geometry:{type:"Point",coordinates:[2.117113397386087,41.38824808700245]},geometry_name:"GEOMETRY",properties:{CODI:"TUR593",NOM:"Disseny HUB Barcelona",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63189",geometry:{type:"Point",coordinates:[2.11801461780206,41.387128674471526]},geometry_name:"GEOMETRY",properties:{CODI:"TUR594",NOM:"Jardins del Palau Reial de Pedralbes",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63190",geometry:{type:"Point",coordinates:[2.1214692720795387,41.38049552947651]},geometry_name:"GEOMETRY",properties:{CODI:"TUR595",NOM:"Estadi Camp Nou",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63191",geometry:{type:"Point",coordinates:[2.143259938072556,41.40877091394631]},geometry_name:"GEOMETRY",properties:{CODI:"TUR596",NOM:"Tur\u00f3 Parc",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63192",geometry:{type:"Point",coordinates:[2.1506089501820393,41.365656929185]},geometry_name:"GEOMETRY",properties:{CODI:"TUR597",NOM:"Piscines Picornell",CODI_TIPUS:401,
DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63193",geometry:{type:"Point",coordinates:[2.1570275595958144,41.36709700414309]},geometry_name:"GEOMETRY",properties:{CODI:"TUR598",NOM:"Jardins Laribal",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63194",geometry:{type:"Point",coordinates:[2.159736644310332,41.36951052396074]},geometry_name:"GEOMETRY",properties:{CODI:"TUR599",NOM:"Teatre Grec",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},
{type:"Feature",id:"VIEW_EXPORT_PUNTS.63195",geometry:{type:"Point",coordinates:[2.1634622647784734,41.36876491257836]},geometry_name:"GEOMETRY",properties:{CODI:"TUR600",NOM:"Telef\u00e8ric de Montju\u00efc",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63196",geometry:{type:"Point",coordinates:[2.1800707146347027,41.372122318225394]},geometry_name:"GEOMETRY",properties:{CODI:"TUR601",NOM:"Torre Jaume I (Transbordador aeri del port)",CODI_TIPUS:401,
DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63197",geometry:{type:"Point",coordinates:[2.182838814878103,41.375150078267424]},geometry_name:"GEOMETRY",properties:{CODI:"TUR602",NOM:"Maremagnum",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63198",geometry:{type:"Point",coordinates:[2.1966792616971578,41.38497145327588]},geometry_name:"GEOMETRY",properties:{CODI:"TUR603",NOM:"Platges",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},
{type:"Feature",id:"VIEW_EXPORT_PUNTS.63199",geometry:{type:"Point",coordinates:[2.183193000670056,41.387893530777404]},geometry_name:"GEOMETRY",properties:{CODI:"TUR604",NOM:"Museu de Ci\u00e8ncies Naturals de la Ciutadella",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63200",geometry:{type:"Point",coordinates:[2.181138101268424,41.38518743089442]},geometry_name:"GEOMETRY",properties:{CODI:"TUR605",NOM:"Museu Barbier-Mueller",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},
{type:"Feature",id:"VIEW_EXPORT_PUNTS.63201",geometry:{type:"Point",coordinates:[2.212263275309906,41.40575253522374]},geometry_name:"GEOMETRY",properties:{CODI:"TUR606",NOM:"Torre de les aig\u00fces del Bes\u00f2s",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.63202",geometry:{type:"Point",coordinates:[2.2207982077362773,41.41084562228309]},geometry_name:"GEOMETRY",properties:{CODI:"TUR607",NOM:"Edifici F\u00f2rum",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},
{type:"Feature",id:"VIEW_EXPORT_PUNTS.62741",geometry:{type:"Point",coordinates:[2.149435056980303,41.3705080532044]},geometry_name:"GEOMETRY",properties:{CODI:"TUR466",NOM:"CaixaForum",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62742",geometry:{type:"Point",coordinates:[2.168531056960876,41.367565053189416]},geometry_name:"GEOMETRY",properties:{CODI:"TUR467",NOM:"Castell de Montju\u00efc",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},
{type:"Feature",id:"VIEW_EXPORT_PUNTS.62744",geometry:{type:"Point",coordinates:[2.149201056980316,41.36977205320475]},geometry_name:"GEOMETRY",properties:{CODI:"TUR469",NOM:"El Poble Espanyol",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62745",geometry:{type:"Point",coordinates:[2.152138056976458,41.36638305320317]},geometry_name:"GEOMETRY",properties:{CODI:"TUR470",NOM:"Estadi Ol\u00edmpic Llu\u00eds Companys",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},
{type:"Feature",id:"VIEW_EXPORT_PUNTS.62747",geometry:{type:"Point",coordinates:[2.151550056978524,41.3714400532024]},geometry_name:"GEOMETRY",properties:{CODI:"TUR472",NOM:"Font M\u00e0gica",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62750",geometry:{type:"Point",coordinates:[2.159970056969376,41.368170053196316]},geometry_name:"GEOMETRY",properties:{CODI:"TUR475",NOM:"Fundaci\u00f3 Joan Mir\u00f3",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},
{type:"Feature",id:"VIEW_EXPORT_PUNTS.62753",geometry:{type:"Point",coordinates:[2.1685100569608435,41.36739005318949]},geometry_name:"GEOMETRY",properties:{CODI:"TUR478",NOM:"Mirador de l'Alcalde",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62755",geometry:{type:"Point",coordinates:[2.157687056972091,41.369847053197724]},geometry_name:"GEOMETRY",properties:{CODI:"TUR480",NOM:"Museu d'Arqueologia de Catalunya",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},
{type:"Feature",id:"VIEW_EXPORT_PUNTS.62756",geometry:{type:"Point",coordinates:[2.1532600569760953,41.36883005320165]},geometry_name:"GEOMETRY",properties:{CODI:"TUR481",NOM:"Museu Nacional d'Art de Catalunya",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62757",geometry:{type:"Point",coordinates:[2.157555056971211,41.36643405319868]},geometry_name:"GEOMETRY",properties:{CODI:"TUR482",NOM:"Museu Ol\u00edmpic i de l'Esport Joan A. Samaranch",CODI_TIPUS:401,
DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62758",geometry:{type:"Point",coordinates:[2.152386056974906,41.361952053203986]},geometry_name:"GEOMETRY",properties:{CODI:"TUR483",NOM:"Palau Sant Jordi",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62759",geometry:{type:"Point",coordinates:[2.1494910569803016,41.37066605320426]},geometry_name:"GEOMETRY",properties:{CODI:"TUR484",NOM:"Pavell\u00f3 Mies van der Rohe",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62761",geometry:{type:"Point",coordinates:[2.143914056987045,41.375150053207705]},geometry_name:"GEOMETRY",properties:{CODI:"TUR486",NOM:"Mercat d'Hostafrancs",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62764",geometry:{type:"Point",coordinates:[2.1398350569913966,41.376448053210815]},geometry_name:"GEOMETRY",properties:{CODI:"TUR489",NOM:"Parc de l'Espanya Industrial",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62769",geometry:{type:"Point",coordinates:[2.128910057012524,41.411900053210964]},geometry_name:"GEOMETRY",properties:{CODI:"TUR494",NOM:"CosmoCaixa - Museu de la Ci\u00e8ncia",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62773",geometry:{type:"Point",coordinates:[2.1188610570251596,41.42155405321683]},geometry_name:"GEOMETRY",properties:{CODI:"TUR498",NOM:"Parc d'Atraccions del Tibidabo",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62775",geometry:{type:"Point",coordinates:[2.1207190570168875,41.399810053220726]},geometry_name:"GEOMETRY",properties:{CODI:"TUR500",NOM:"Mercat de Sarri\u00e0",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62779",geometry:{type:"Point",coordinates:[2.165335056971163,41.391809053186066]},geometry_name:"GEOMETRY",properties:{CODI:"TUR504",NOM:"Casa Amatller",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62780",geometry:{type:"Point",coordinates:[2.165125056971422,41.39197605318623]},geometry_name:"GEOMETRY",properties:{CODI:"TUR505",NOM:"Casa Batll\u00f3",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62783",geometry:{type:"Point",coordinates:[2.165515056970805,41.39117905318615]},geometry_name:"GEOMETRY",properties:{CODI:"TUR508",NOM:"Casa Lle\u00f3 Morera",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62790",geometry:{type:"Point",coordinates:[2.1637840569725886,41.39153105318741]},geometry_name:"GEOMETRY",properties:{CODI:"TUR515",NOM:"Fundaci\u00f3 Antoni T\u00e0pies",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62791",geometry:{type:"Point",coordinates:[2.1653230569703257,41.3889570531868]},geometry_name:"GEOMETRY",properties:{CODI:"TUR516",NOM:"Fundaci\u00f3 Francisco Godia",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62798",geometry:{type:"Point",coordinates:[2.1647230569723046,41.39364905318608]},geometry_name:"GEOMETRY",properties:{CODI:"TUR523",NOM:"Museu Egipci de Barcelona",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62805",geometry:{type:"Point",coordinates:[2.1747040569653295,41.4028350531757]},geometry_name:"GEOMETRY",properties:{CODI:"TUR530",NOM:"Bas\u00edlica de la Sagrada Fam\u00edlia",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62806",geometry:{type:"Point",coordinates:[2.1743740569681993,41.41141605317383]},geometry_name:"GEOMETRY",properties:{CODI:"TUR531",NOM:"L'Hospital de la Santa Creu i Sant Pau",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62810",geometry:{type:"Point",coordinates:[2.147720056984548,41.37920005320361]},geometry_name:"GEOMETRY",properties:{CODI:"TUR535",NOM:"Parc de Joan Mir\u00f3",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62811",geometry:{type:"Point",coordinates:[2.1640420569708625,41.38657405318842]},geometry_name:"GEOMETRY",properties:{CODI:"TUR536",NOM:"Universitat de Barcelona",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62819",geometry:{type:"Point",coordinates:[2.158124056980011,41.39800305319049]},geometry_name:"GEOMETRY",properties:{CODI:"TUR544",NOM:"Casa Fuster",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62821",geometry:{type:"Point",coordinates:[2.1507110569888157,41.4034060531952]},geometry_name:"GEOMETRY",properties:{CODI:"TUR546",NOM:"Casa Vicens",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62827",geometry:{type:"Point",coordinates:[2.1529000569896333,41.413310053190976]},geometry_name:"GEOMETRY",properties:{CODI:"TUR552",NOM:"Park G\u00fcell",CODI_TIPUS:401,
DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62828",geometry:{type:"Point",coordinates:[2.155820056984079,41.404180053190856]},geometry_name:"GEOMETRY",properties:{CODI:"TUR553",NOM:"Places de Gr\u00e0cia",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62838",geometry:{type:"Point",coordinates:[2.1951170569415104,41.38939105316224]},geometry_name:"GEOMETRY",properties:{CODI:"TUR563",NOM:"Cementiri de Poblenou",CODI_TIPUS:401,
DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62842",geometry:{type:"Point",coordinates:[2.2027300569372557,41.40000005315346]},geometry_name:"GEOMETRY",properties:{CODI:"TUR567",NOM:"Rambla del Poblenou",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62664",geometry:{type:"Point",coordinates:[2.174033056959254,41.38015205318181]},geometry_name:"GEOMETRY",properties:{CODI:"TUR389",NOM:"Gran Teatre del Liceu",CODI_TIPUS:401,
DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62665",geometry:{type:"Point",coordinates:[2.171734056962196,41.382530053183096]},geometry_name:"GEOMETRY",properties:{CODI:"TUR390",NOM:"La Virreina. Centre de la Imatge",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62666",geometry:{type:"Point",coordinates:[2.172345056961424,41.38195105318275]},geometry_name:"GEOMETRY",properties:{CODI:"TUR391",NOM:"Mercat de la Boqueria",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62667",geometry:{type:"Point",coordinates:[2.1785750569538327,41.37673705317898]},geometry_name:"GEOMETRY",properties:{CODI:"TUR392",NOM:"Mirador de Colom",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62668",geometry:{type:"Point",coordinates:[2.1774070569550967,41.377169053179806]},geometry_name:"GEOMETRY",properties:{CODI:"TUR393",NOM:"Museu de Cera",CODI_TIPUS:401,
DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62669",geometry:{type:"Point",coordinates:[2.172551056961288,41.382165053182504]},geometry_name:"GEOMETRY",properties:{CODI:"TUR394",NOM:"Museu de l'Er\u00f2tica",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62670",geometry:{type:"Point",coordinates:[2.1755740569565525,41.37607605318156]},geometry_name:"GEOMETRY",properties:{CODI:"TUR395",NOM:"Museu Mar\u00edtim de Barcelona",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62672",geometry:{type:"Point",coordinates:[2.170372056962907,41.38047405318478]},geometry_name:"GEOMETRY",properties:{CODI:"TUR397",NOM:"Antic Hospital de la Santa Creu",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62673",geometry:{type:"Point",coordinates:[2.166866056967312,41.38384505318682]},geometry_name:"GEOMETRY",properties:{CODI:"TUR398",NOM:"CCCB - Centre de Cultura Contempor\u00e0nia de Barcelona.",
CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62675",geometry:{type:"Point",coordinates:[2.1675150569664585,41.38309705318646]},geometry_name:"GEOMETRY",properties:{CODI:"TUR400",NOM:"MACBA - Museu d'Art Contemporani de Barcelona",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62676",geometry:{type:"Point",coordinates:[2.1741600569588004,41.37902005318203]},geometry_name:"GEOMETRY",properties:{CODI:"TUR401",
NOM:"Palau G\u00fcell",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62678",geometry:{type:"Point",coordinates:[2.16913305696279,41.37602605318684]},geometry_name:"GEOMETRY",properties:{CODI:"TUR403",NOM:"Sant Pau del Camp",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62682",geometry:{type:"Point",coordinates:[2.1759940569586638,41.384601053179175]},geometry_name:"GEOMETRY",properties:{CODI:"TUR407",
NOM:"Catedral",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62683",geometry:{type:"Point",coordinates:[2.1771430569572003,41.383437053178504]},geometry_name:"GEOMETRY",properties:{CODI:"TUR408",NOM:"Columnes del Temple d'August",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62693",geometry:{type:"Point",coordinates:[2.1773870569571794,41.384136053178075]},geometry_name:"GEOMETRY",properties:{CODI:"TUR418",
NOM:"MUHBA - Museu d'Hist\u00f2ria de Barcelona",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62698",geometry:{type:"Point",coordinates:[2.176791056957773,41.38417605317855]},geometry_name:"GEOMETRY",properties:{CODI:"TUR423",NOM:"Museu Frederic Mar\u00e8s",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62701",geometry:{type:"Point",coordinates:[2.1750370569582302,41.37999005318106]},geometry_name:"GEOMETRY",
properties:{CODI:"TUR426",NOM:"Pla\u00e7a Reial",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62703",geometry:{type:"Point",coordinates:[2.177217056956937,41.38277905317858]},geometry_name:"GEOMETRY",properties:{CODI:"TUR428",NOM:"Pla\u00e7a Sant Jaume",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62705",geometry:{type:"Point",coordinates:[2.1828600569520265,41.384720053173524]},geometry_name:"GEOMETRY",
properties:{CODI:"TUR430",NOM:"Antic Mercat del Born",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62710",geometry:{type:"Point",coordinates:[2.180828056954142,41.38516405317505]},geometry_name:"GEOMETRY",properties:{CODI:"TUR435",NOM:"Museu Picasso",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62712",geometry:{type:"Point",coordinates:[2.1817850569527155,41.38349705317464]},geometry_name:"GEOMETRY",
properties:{CODI:"TUR437",NOM:"Santa Maria del Mar",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62716",geometry:{type:"Point",coordinates:[2.1748370569605187,41.3870320531795]},geometry_name:"GEOMETRY",properties:{CODI:"TUR441",NOM:"Palau de la M\u00fasica Catalana",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62724",geometry:{type:"Point",coordinates:[2.183830056949125,41.37809005317425]},geometry_name:"GEOMETRY",
properties:{CODI:"TUR449",NOM:"Imax Port Vell",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62725",geometry:{type:"Point",coordinates:[2.183900056948757,41.37707005317452]},geometry_name:"GEOMETRY",properties:{CODI:"TUR450",NOM:"L'Aqu\u00e0rium de Barcelona",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62727",geometry:{type:"Point",coordinates:[2.1851950569490737,41.38236905317211]},geometry_name:"GEOMETRY",
properties:{CODI:"TUR452",NOM:"Museu d'Hist\u00f2ria de Catalunya",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62729",geometry:{type:"Point",coordinates:[2.179890056952538,41.37667005317789]},geometry_name:"GEOMETRY",properties:{CODI:"TUR454",NOM:"Pailebot Santa Eul\u00e0lia",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62733",geometry:{type:"Point",coordinates:[2.1839980569522672,41.3892570531714]},
geometry_name:"GEOMETRY",properties:{CODI:"TUR458",NOM:"Parlament de Catalunya",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62734",geometry:{type:"Point",coordinates:[2.1839980569522672,41.3892570531714]},geometry_name:"GEOMETRY",properties:{CODI:"TUR459",NOM:"Zoo de Barcelona",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62735",geometry:{type:"Point",coordinates:[2.1129040570232562,41.39567905322809]},
geometry_name:"GEOMETRY",properties:{CODI:"TUR460",NOM:"Reial Monestir de Santa Maria de Pedralbes",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}},{type:"Feature",id:"VIEW_EXPORT_PUNTS.62739",geometry:{type:"Point",coordinates:[2.1208600570133744,41.38840005322346]},geometry_name:"GEOMETRY",properties:{CODI:"TUR464",NOM:"Pavellons de la Finca G\u00fcell",CODI_TIPUS:401,DESC_TIPUS:"Element turistic principal"}}],crs:"EPSG:4326"});return g.promise()};
geoapi.GMBlank=function(g){this.tileSize=g};geoapi.GMBlank.prototype.maxZoom=19;geoapi.GMBlank.prototype.name="Blank";geoapi.GMBlank.prototype.alt="Blank Map";geoapi.GMBlank.prototype.getTile=function(g,p,A){g=A.createElement("div");return g.style.width=this.tileSize.width+"px",g.style.height=this.tileSize.height+"px",g.style.backgroundColor="#FFFFFF",g};
/*
 For license information please see vullWidget.js.LICENSE.txt */
!function(y,J){"object"==typeof exports&&"object"==typeof module?module.exports=J():"function"==typeof define&&define.amd?define("widget",[],J):"object"==typeof exports?exports.widget=J():y.widget=J()}(window,function(){return function(y){function J(u){if(F[u])return F[u].exports;var p=F[u]={i:u,l:!1,exports:{}};return y[u].call(p.exports,p,p.exports,J),p.l=!0,p.exports}var F={};return J.m=y,J.c=F,J.d=function(u,p,C){J.o(u,p)||Object.defineProperty(u,p,{enumerable:!0,get:C})},J.r=function(u){"undefined"!=
typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"});Object.defineProperty(u,"__esModule",{value:!0})},J.t=function(u,p){if((1&p&&(u=J(u)),8&p)||4&p&&"object"==typeof u&&u&&u.__esModule)return u;var C=Object.create(null);if(J.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:u}),2&p&&"string"!=typeof u)for(var A in u)J.d(C,A,function(q){return u[q]}.bind(null,A));return C},J.n=function(u){var p=u&&u.__esModule?function(){return u.default}:function(){return u};
return J.d(p,"a",p),p},J.o=function(u,p){return Object.prototype.hasOwnProperty.call(u,p)},J.p="",J(J.s=6)}([function(y,J,F){y.exports={origin:"",desti:""}},function(y,J,F){var u,p=F(10),C=(u=F(0))&&u.__esModule?u:{default:u},A=null,q=null,r=null,x=null,v=null,m=[];y.exports={cleanMap:function(){window.geoWrapper.map.deleteMarkersLayer();this.removeMarker(!0);this.removeMarker()},checkIfResultAndClick:function(){return $("#tmb-maps__origen__carrer-lng").val()&&($(".form__tooltip--geolocation-error").hide(),
$(".has-geolocation .form__field__control").removeClass("form__field__control--error")),!(""==$("#tmb-maps__origen__carrer-lng").val()||""==$("#tmb-maps__desti__carrer-lng").val()&&!$("#f__va_near").is(":checked")||(this.removeLines(),$(".js__va-widget-submit").prop("disabled",!1),$(".js__va-widget-submit").removeClass("button--disabled"),$(".js__va-widget-submit").data("fromClick",2),$(".js__va-widget-submit").click(),0))},reloadMarkers:function(){A&&window.geoWrapper.map.removeInteraction(A.translateInteraction);
q&&window.geoWrapper.map.removeInteraction(q.translateInteraction);window.geoWrapper.map.deleteMarkersLayer();r&&this.addMarker(r,!0);x&&this.addMarker(x)},removeMarker:function(b){b?(A&&window.geoWrapper.map.removeInteraction(A.translateInteraction),r=null):(q&&window.geoWrapper.map.removeInteraction(q.translateInteraction),x=null);$("#tooltip-bus").hide();$("#tooltip-metro").hide();window.geoWrapper.map.removeMarker(b?A:q);b?A=null:q=null},removeLines:function(){window.geoWrapper.map.deleteMarkersLayer();
A&&(window.geoWrapper.map.addMarker(A),q&&window.geoWrapper.map.addMarker(q))},addMouseoverLinesInteraction:function(){v||((v=new ol.interaction.Select({condition:ol.events.condition.pointerMove,filter:function(b,f){return b&&null!=b.get("type")&&"line"===b.get("type")}})).on("select",function(b){0<b.selected.length&&Array.isArray(m)&&m.forEach(function(f){f&&"[object Function]"==={}.toString.call(f)&&f(b)})}),window.geoWrapper.map.addInteraction(v))},onMouseoverLine:function(b){this.mouseoverLinesInteraction||
this.addMouseoverLinesInteraction();m.push(b)},removeMouseoverLinesInteraction:function(){if(null!=v&&(v.getFeatures().clear(),window.geoWrapper.map.removeInteraction(v)),Array.isArray(m))for(;m.length;)m.pop()},clearMouseoverLinesSelected:function(){null!=v&&v.getFeatures().clear()},onMouseoverMap:function(b){b&&window.geoWrapper.map&&window.geoWrapper.map.functions&&(window.geoWrapper.map.functions.pointerMove=b)},clearOnMouseoverMap:function(){window.geoWrapper.map&&window.geoWrapper.map.functions&&
(window.geoWrapper.map.functions.pointerMove=null)},centerInRoute:function(b,f){window.geoWrapper.map.fitCoords([(parseFloat(f[0])+parseFloat(b[0]))/2,(parseFloat(b[1])+parseFloat(f[1]))/2],"EPSG:4326")},setMarkerAndCenter:function(b,f){y.exports.addMarker(b,f);window.geoWrapper.map.fitCoords([b.lon,b.lat],"EPSG:4326")},setNewMarkerPosition:function(b,f,c,d){var n=this,k=b?"origen":"desti",h=d||"";$("#tmb-maps__"+k+"__carrer-lng"+h).val(f[1]);$("#tmb-maps__"+k+"__carrer-lat"+h).val(f[0]);(new google.maps.Geocoder).geocode({latLng:new google.maps.LatLng(f[1],
f[0])},function(l,z){z===google.maps.GeocoderStatus.OK?l[1]?($("#tmb-maps__"+k+"__carrer"+h).val(l[1].formatted_address),$("#tmb-maps__"+k+"__carrer"+h).change(),c)||(l=y.exports.checkIfResultAndClick(),C.default["origen"==k?"origin":"desti"]="search",l&&0==$("#widget-portlet").length&&("traject"==C.default.origin||"traject"==C.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRoute(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRouteWhereIAm()):
"pois"==C.default.origin||"pois"==C.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchLocation(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchLocationWhereIAm()):(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearch(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchWhereIAm()),Analytics&&Analytics.VullAnar.eventVirtualPage())):console.warn("No results found"):(y.exports.removeLines(),
$(document).trigger("deleteItineraries",b),setTimeout(function(){return n.removeMarker(b)},0),console.warn("Geocoder failed due to: "+z))})},addMarker:function(b,f,c){f&&null!=A?this.removeMarker(f):f||null==q||this.removeMarker();var d=window.geoWrapper.map.getMarker({coords:[b.lon,b.lat],proj:"EPSG:4326"},{src:f?window.pathTheme+"/images/A.png":window.pathTheme+"/images/B.png",size:[19,25],anchor:[9.5,25],anchorXUnits:"pixels",anchorYUnits:"pixels"});d.origin=!!f;var n,k,h=new ol.interaction.Modify({features:new ol.Collection([d])});
return window.geoWrapper.map.addInteraction(h),d.translateInteraction=h,d.on("change",(n=function(l,z){l=ol.proj.transform(l.target.getGeometry().getCoordinates(),"EPSG:3857","EPSG:4326");y.exports.setNewMarkerPosition(f,l)},400,function(){var l=this,z=arguments;clearTimeout(k);k=setTimeout(function(){k=null;n.apply(l,z)},400)}),d),d.type="marker",window.geoWrapper.map.addMarker(d),f?(A=d,window.markerA=d,r=b):(q=d,x=b),c&&y.exports.checkIfResultAndClick(),d},showItinerary:function(b){var f=1<arguments.length&&
void 0!==arguments[1]?arguments[1]:0,c=2<arguments.length?arguments[2]:void 0,d=3<arguments.length?arguments[3]:void 0;A&&this.cleanMap();this.addMarker({lon:b.from.lon,lat:b.from.lat},!0);this.addMarker({lon:b.to.lon,lat:b.to.lat});var n={bicing:"D51B24",ambici:"FF3B0F",donkey:"FF6400",bolt:"32BA78",cooltra:"07E501"};if(b.itineraries.forEach(function(h,l){for(var z in h.legs){var w=h.legs[z],B=f==l?w.routeColor?w.routeColor:n[w.transitNamespace]?n[w.transitNamespace]:"BICYCLE"===w.mode?"323232":
"656565":"cccccc",G=f==l?3:2,E=geoapi.MapUtils.decodeFeature(w.legGeometry.points,"EPSG:4326");w=window.geoWrapper.map.getFeatureLine(E,"EPSG:4326","#"+B,"#"+B,2,G,"WALK"===w.mode);w.setProperties({type:"line",itineraryIndex:l});window.geoWrapper.map.addFeature(w);c&&l&&window.geoWrapper.map.fitBounds("left",window.geoWrapper.map.getMarkerLayer().getSource().getExtent(),"EPSG:3857")}}),d&&0<Object.keys(d).length){var k=[];d.fromInZone&&k.push(d.fromInZone.codiLinia);d.toInZone&&k.push(d.toInZone.codiLinia);
"true"===window.busDemanda&&window.geoWrapper.map.refreshWmsBusOnDemand(k.join(","))}},showNear:function(b){A&&this.cleanMap();b=this.addMarker({lon:b.lon,lat:b.lat},!0);b=ol.proj.transform(b.getGeometry().getCoordinates(),"EPSG:3857","EPSG:4326");window.geoWrapper.map.fitCoords(b,"EPSG:4326");window.geoWrapper.map.getMap().getView().setZoom(18)},getNearPlan:function(b){var f=this;return window.geoWrapper.service.nearStops(jQuery.extend({},b)).then(function(c){return c&&c.features&&c.features.length?
(c=c.features,f.showNear(b),c):[]})},setPlan:function(b,f){var c=(0,p.getDateTime)().split("/");return b.fromPlaceText=b.fromPlaceText,b.arriveBy=b.arriveBy||!1,b.toPlaceText=b.toPlaceText,b.date=b.date||c[0],b.time=b.time||c[1],b.fromClick?$(".main__container .screen-reader-vullanar-reload").html("-"):$(".main__container .screen-reader-vullanar-reload").html(window.translate("journey.reloaded")),f&&f.plan?(f.plan.itineraries&&f.plan.itineraries.forEach(function(d){d.arriveBy=b.arriveBy;d.date=b.date;
d.time=b.time;d.origin=b.fromPlaceText;d.desti=b.toPlaceText}),$(document).trigger("searchPlan"),$(document).trigger("initTooltips"),this.showItinerary(f.plan,0,!0,f.zonesBaDMetadata),f):(y.exports.removeLines(),f)},getPlan:function(b){var f=this,c=(0,p.getDateTime)().split("/");return b.fromAlternativa=b.fromAlternativa||"Alternativafom",b.fromPlaceY=b.fromPlaceY,b.fromPlaceX=b.fromPlaceX,b.fromPlaceText=b.fromPlaceText,b.arriveBy=b.arriveBy||!1,b.toAlternativa=b.toAlternativa||"Alternativato",b.toPlaceY=
b.toPlaceY,b.toPlaceX=b.toPlaceX,b.toPlaceText=b.toPlaceText,b.mode=b.mode||"TRANSIT,WALK",b.date=b.date||c[0],b.time=b.time||c[1],b.ruteId=b.ruteId||1,b.optimizationMode=b.optimizationMode||"BEST_ROUTE",b.showIntermediateStops=!0,window.geoWrapper.service.plannerRoute(jQuery.extend({},b)).then(function(d){return b.fromClick?$(".main__container .screen-reader-vullanar-reload").html("-"):$(".main__container .screen-reader-vullanar-reload").html(window.translate("journey.reloaded")),d&&d.plan?(d.plan.itineraries&&
d.plan.itineraries.forEach(function(n){n.arriveBy=b.arriveBy;n.date=b.date;n.time=b.time;n.origin=b.fromPlaceText;n.desti=b.toPlaceText}),$(document).trigger("searchPlan"),$(document).trigger("initTooltips"),f.showItinerary(d.plan,0,!0,d.zonesBaDMetadata),d):(y.exports.removeLines(),d)})},getPlanData:function(b){var f=(0,p.getDateTime)().split("/");return b.fromAlternativa=b.fromAlternativa||"Alternativafom",b.fromPlaceY=b.fromPlaceY,b.fromPlaceX=b.fromPlaceX,b.fromPlaceText=b.fromPlaceText,b.arriveBy=
b.arriveBy||!1,b.toAlternativa=b.toAlternativa||"Alternativato",b.toPlaceY=b.toPlaceY,b.toPlaceX=b.toPlaceX,b.toPlaceText=b.toPlaceText,b.mode=b.mode||"TRANSIT,WALK",b.date=b.date||f[0],b.time=b.time||f[1],b.ruteId=b.ruteId||1,b.optimizationMode=b.optimizationMode||"BEST_ROUTE",b.showIntermediateStops=!0,window.geoWrapper.service.plannerRouteAsync(jQuery.extend({},b)).then(function(c){return c&&c.plan?(c.plan.itineraries&&c.plan.itineraries.forEach(function(d){d.arriveBy=b.arriveBy;d.date=b.date;
d.time=b.time;d.origin=b.fromPlaceText;d.desti=b.toPlaceText}),c):c})}}},function(y,J,F){var u,p=(u=F(3))&&u.__esModule?u:{default:u};y.exports={data:[],searchData:!1,retrieveData:function(){var C=p.default.getLogin();if(C){y.exports.searchData=!0;var A=C.getLocations("routings");C=C.getLocations();y.exports.data=Promise.all([A,C]).then(function(q){var r=[],x=[];q[0].data&&q[0].data.routings&&q[0].data.routings.forEach(function(v){r.push({label:v.alias,valor:{from:{lat:v.originPoint.coordinates[0],
lon:v.originPoint.coordinates[1],label:v.originText},to:{lat:v.destinationPoint.coordinates[0],lon:v.destinationPoint.coordinates[1],label:v.destinationText}},category:window.translate("myTrips")})});q[1].data&&q[1].data.pois&&q[1].data.pois.forEach(function(v){var m=v.geometry.coordinates;x.push({label:v.properties.alias,valor:{lat:m[0],lon:m[1],label:v.properties.address},category:window.translate("pois")})});q=[].concat(r,x);return y.exports.data=q,y.exports.searchData=!1,q}).catch(function(q){return console.error(q),
y.exports.searchData=!1,y.exports.data=[],[]})}},getData:function(){return{search:y.exports.searchData,data:y.exports.data}}}},function(y,J,F){function u(p,C){function A(q,r){var x=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},v=3<arguments.length?arguments[3]:void 0;return new Promise(function(m,b){return v?q(C,r,v,x,function(f){return m(f)},function(f){return b(f)},p):q(C,r,x,function(f){return m(f)},function(f){return b(f)},p)})}this.getFavs=function(q){return A("lines"==q?favouriteLines:
favouriteStops,"GET")};this.addFavs=function(q,r){return A("lines"==q?favouriteLines:favouriteStops,"POST",r)};this.updateFavs=function(q){return A("lines"==q?favouriteLineById:favouriteStopById,"PUT",1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},2<arguments.length?arguments[2]:void 0)};this.delFavs=function(q,r){return A("lines"==q?favouriteLineById:favouriteStopById,"DELETE",{},r)};this.getLocations=function(q){return A("routings"==q?routes:locations,"GET")};this.addLocations=function(q,
r){return A("routings"==q?routes:locations,"POST",r)};this.delLocation=function(q,r){return A("routings"==q?routeById:locationById,"DELETE",{},r)}}y.exports={getLogin:function(){var p=localStorage.getItem("uuid"),C=localStorage.getItem("kc_token");return null!=C&&""!=C&&null!=p&&""!=p?new u(C,p):null}}},function(y,J,F){function u(c){return c&&c.__esModule?c:{default:c}}var p=u(F(14)),C=u(F(18)),A=u(F(3)),q=u(F(19)),r=F(20),x=F(21),v=F(22),m=F(23),b=F(24),f=F(25);F(26);y.exports={deleteLineOrStop:function(c,
d,n){var k="Bus"==c.transport,h=langJotmbeClose;n?k?q.default.deleteBusLineOfFavourites(c.id,c.code,c.name,d):q.default.deleteMetroLineOfFavourites(c.id,c.code,c.name,d):k?q.default.deleteBusStopOfFavourites(c.id,c.code,c.name,d):q.default.deleteMetroStationOfFavourites(c.id,c.code,c.name,d);TMB.dialog.newModal(h,"dialog--medium","delete-a-fragment",null)},addLineOrStop:function(c,d,n){var k="Bus"==c.transport,h=k?"edit-favourite-b-fragment":"edit-favourite-a-fragment",l=langJotmbeClose;n?k?q.default.addBusLineToFavourites(c.code,
c.name,c.description,d):q.default.addMetroLineToFavourites(c.code,c.name,c.description,d):k?q.default.addBusStopToFavourites(c.code,c.name,d):q.default.addMetroStationToFavourites(c.code,c.name,d);TMB.dialog.newModal(l,"dialog--medium",h,null)},modalChoose:function(c,d,n){c=new p.default(b,c,!1);c.onCancel=function(){n&&n()};c.onConfirm=function(){d&&d()}},sendRequest:function(c,d,n,k){A.default.getLogin().updateFavs(c?"lines":"stops",$.extend(k,{transportNotification:{status:"ENABLED",channelNotifications:[{channel:"APP_PUSH",
status:"DISABLED"},{channel:"EMAIL",status:d}]}}),n.data.route||n.data.stop)},confirmLineOrStop:function(c,d){y.exports.confirmModal(window.pathTheme+"/images/jotmbe/48px/svg/48px_Favorit_gris.svg",window.translate(c?d?"lineDeleted":"lineAdded":d?"stopDeleted":"stopAdded"),window.translate("modalRemember"),window.translate("myFavourites"),"els-meus-favorits")},deleteTrajecte:function(c,d,n){var k=A.default.getLogin();k&&Analytics&&Analytics.VullAnar.eventRemoveRoute();k&&y.exports.modalChoose({text1:window.translate("deleteTrajecteText1"),
text2:window.translate("deleteTrajecteText2"),button1:window.translate("delete")},function(){return k.delLocation("routings",c).then(function(){y.exports.confirmTrajecte(!0);d&&d()})},function(){n&&n()})},confirmTrajecte:function(c){y.exports.confirmModal(window.pathTheme+"/images/jotmbe/48px/svg/48px_Trajecte_gris.svg",window.translate(c?"trajecteDeleted":"trajecteAdded"),c?window.translate("modalRememberTrajecte"):"",c?window.translate("llocsAndTrajects"):"","llocs-i-trajectes")},addTrajecte:function(c,
d){var n=new p.default(x,{text1:window.translate("trajectText1"),text2:window.translate("trajectText2"),button1:window.translate("b.saveRoute"),disabled:"disabled",origen:window.translate("m.origin"),desti:window.translate("m.destination"),text3:window.translate("alias"),carrerOrLoc:window.translate("carrerOrLoc")},!0,function(){function k(){0<$("#modal-trajectes-area-privada #f__camp__trajectes__1").val().length&&0<$("#modal-trajectes-area-privada #f__camp__trajectes__2").val().length&&0<$("#modal-trajectes-area-privada #f__camp__trajectes__1-lat").val().length&&
0<$("#modal-trajectes-area-privada #f__camp__trajectes__2-lat").val().length&&0<$("#modal-trajectes-area-privada #f__camp__trajectes__3").val().length?($("#modal-trajectes-area-privada .button.button--a").removeClass("disabled"),$("#modal-trajectes-area-privada .button.button--a").removeAttr("disabled")):($("#modal-trajectes-area-privada .button.button--a").addClass("disabled"),$("#modal-trajectes-area-privada .button.button--a").attr("disabled",!0))}$("#stopsPopup").css("display","none");$("#modal-trajectes-area-privada #f__camp__trajectes__1, #modal-trajectes-area-privada #f__camp__trajectes__2, #modal-trajectes-area-privada #f__camp__trajectes__3").on("input",
k);$("#modal-trajectes-area-privada #f__camp__trajectes__1, #modal-trajectes-area-privada #f__camp__trajectes__2, #modal-trajectes-area-privada #f__camp__trajectes__3").on("blur",k);$("#modal-trajectes-area-privada .button--close").focus();d&&($("#modal-trajectes-area-privada #f__camp__trajectes__1").val(d.origin.name),$("#modal-trajectes-area-privada #f__camp__trajectes__1-lat").val(d.origin.lat),$("#modal-trajectes-area-privada #f__camp__trajectes__1-lon").val(d.origin.lon),$("#modal-trajectes-area-privada #f__camp__trajectes__2").val(d.desti.name),
$("#modal-trajectes-area-privada #f__camp__trajectes__2-lat").val(d.desti.lat),$("#modal-trajectes-area-privada #f__camp__trajectes__2-lon").val(d.desti.lon))});return n.removeEvents=function(){$("#modal-trajectes-area-privada #f__camp__trajectes__1, #modal-trajectes-area-privada #f__camp__trajectes__2, #modal-trajectes-area-privada #f__camp__trajectes__3").off("input");$("#modal-trajectes-area-privada #f__camp__trajectes__1, #modal-trajectes-area-privada #f__camp__trajectes__2, #modal-trajectes-area-privada #f__camp__trajectes__3").off("blur")},
n.onConfirm=function(){var k=C.default.prepareRoutingsObject($("#modal-trajectes-area-privada #f__camp__trajectes__3").val(),$("#modal-trajectes-area-privada #f__camp__trajectes__1").val(),$("#modal-trajectes-area-privada #f__camp__trajectes__1-lat").val(),$("#modal-trajectes-area-privada #f__camp__trajectes__1-lon").val(),$("#modal-trajectes-area-privada #f__camp__trajectes__2").val(),$("#modal-trajectes-area-privada #f__camp__trajectes__2-lat").val(),$("#modal-trajectes-area-privada #f__camp__trajectes__2-lon").val()),
h=A.default.getLogin();h&&Analytics&&Analytics.VullAnar.eventSaveRouteOK();h&&h.addLocations("routings",C.default.prepareRoutingsObject($("#modal-trajectes-area-privada #f__camp__trajectes__3").val(),$("#modal-trajectes-area-privada #f__camp__trajectes__1").val(),parseFloat($("#modal-trajectes-area-privada #f__camp__trajectes__1-lat").val()),parseFloat($("#modal-trajectes-area-privada #f__camp__trajectes__1-lon").val()),$("#modal-trajectes-area-privada #f__camp__trajectes__2").val(),parseFloat($("#modal-trajectes-area-privada #f__camp__trajectes__2-lat").val()),
parseFloat($("#modal-trajectes-area-privada #f__camp__trajectes__2-lon").val()))).then(function(l){c&&c(k);$(document).trigger("refreshTrajectes");y.exports.confirmTrajecte(!1)})},n},addLocation:function(c,d){var n=new p.default(v,{text1:window.translate("modalAddLocationText1"),text2:window.translate("modalAddLocationText3"),text3:window.translate("modalAddLocationText3"),rb1:window.translate("other"),rb2:window.translate("house"),rb3:window.translate("work"),button1:window.translate("b.saveLocation"),
alias:window.translate("alias"),carrerOrLoc:window.translate("carrerOrLoc")},!0,function(){function k(){0<$("#modal-llocs-area-privada #f__camp__llocs-ap__1").val().length&&0<$("#modal-llocs-area-privada #f__camp__llocs-ap__1-lat").val().length?($("#modal-llocs-area-privada .button.button--a").removeClass("disabled"),$("#modal-llocs-area-privada .button.button--a").removeAttr("disabled")):($("#modal-llocs-area-privada .button.button--a").addClass("disabled"),$("#modal-llocs-area-privada .button.button--a").attr("disabled"))}
$("#modal-llocs-area-privada #f__camp__llocs-ap__1, #modal-llocs-area-privada #f__camp__llocs-ap__2").on("input",k);$("#modal-llocs-area-privada #f__camp__llocs-ap__1, #modal-llocs-area-privada #f__camp__llocs-ap__2").on("blur",k);$("#modal-llocs-area-privada .button--close").focus();var h=$("#modal-llocs-area-privada .option-group__items--pois .radio");h.on("click",function(l){h.removeClass("checked");$("#modal-llocs-area-privada .option-group__items--pois .radio input").attr("checked",!1);$("#modal-llocs-area-privada .option-group__items--pois .radio input").removeClass("checked");
$(l.target).parent().addClass("checked");$(l.target).attr("checked",!0);$(l.target).addClass("checked");console.dir(l);$(l.target).children().attr("checked",!0);$("#modal-llocs-area-privada #f__camp__llocs-ap__2").val($(l.target).children().data("alias"))});d&&($("#modal-llocs-area-privada #f__camp__llocs-ap__1").val(d.name),$("#modal-llocs-area-privada #f__camp__llocs-ap__1-lat").val(d.lat),$("#modal-llocs-area-privada #f__camp__llocs-ap__1-lon").val(d.lon))});n.removeEvents=function(){$("#modal-llocs-area-privada #f__camp__llocs-ap__1, #modal-llocs-area-privada #f__camp__llocs-ap__2").off("input");
$("#modal-llocs-area-privada #f__camp__llocs-ap__1, #modal-llocs-area-privada #f__camp__llocs-ap__2").off("blur");$("#modal-llocs-area-privada .option-group__items--pois .radio").off("click")};n.onConfirm=function(){var k=A.default.getLogin(),h=$("#modal-llocs-area-privada #f__camp__llocs-ap__2").val();""==h&&(h=$("#modal-llocs-area-privada #f__camp__llocs-ap__1").val());k&&Analytics&&Analytics.VullAnar.eventSaveLocOK();k&&k.addLocations("pois",C.default.prepareLocationsObject(h,$("#modal-llocs-area-privada #f__camp__llocs-ap__1").val(),
parseFloat($("#modal-llocs-area-privada #f__camp__llocs-ap__1-lat").val()),parseFloat($("#modal-llocs-area-privada #f__camp__llocs-ap__1-lon").val()),$('input[name\x3d"f__camp-llocs_poi"]:checked').data("val"))).then(function(l){c&&c(l);y.exports.confirmLocation()})}},confirmLocation:function(){y.exports.confirmModal(window.pathTheme+"/images/jotmbe/48px/svg/48px_Trajecte_gris.svg",window.translate("modalConfirmLocation"),"","")},confirmModal:function(c,d,n,k,h){(new p.default(r,{icon:c,text1:d,text2:n,
favourites:k,link:h},!1,function(){$(".dialog-vullanar #modal-link").on("click",function(){y.exports.modalExit(h)});$(".dialog__header .button--close").focus()})).removeEvents=function(){$(".dialog-vullanar #modal-link").off("click")}},horariModal:function(c,d){(new p.default(f,{title:c,content:d},!1,function(){$(".dialog-vullanar #modal-link").on("click",function(){y.exports.modalExit(link)})})).removeEvents=function(){$(".dialog-vullanar #modal-link").off("click")}},modalExit:function(c,d){localStorage.getItem("notShowExitDialog")?
location.href=c:(d=new p.default(m,{accept:window.translate("b.accept"),cancel:window.translate("b.cancel"),text1:d||window.translate("exitText"),attention:window.translate("attention"),noShowAgain:window.translate("noShowAgain"),closeIcon:"../images/basic/16px/svg/close.svg",url:c},!1,function(){$("#exit-dialog .checkbox").on("click",function(){$("#exit-dialog .checkbox").toggleClass("checked")})}),d.onConfirm=function(){$("#exit-dialog .checkbox").hasClass("checked")&&localStorage.setItem("notShowExitDialog",
!0);location.href=c},d.removeEvents=function(){$(".exit-dialog .checkbox").off("click")})},genericModal:function(c,d){new p.default(f,{title:c,content:d},!1,function(){$(".dialog-vullanar #modal-link").on("click",function(){y.exports.modalExit(link)})})}}},function(y,J,F){function u(m){return m&&m.__esModule?m:{default:m}}function p(m,b){var f="undefined"!=typeof Symbol&&m[Symbol.iterator]||m["@@iterator"];if(!f){if(Array.isArray(m)||(f=function(h,l){if(h){if("string"==typeof h)return C(h,l);var z=
Object.prototype.toString.call(h).slice(8,-1);return"Object"===z&&h.constructor&&(z=h.constructor.name),"Map"===z||"Set"===z?Array.from(h):"Arguments"===z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?C(h,l):void 0}}(m))||b&&m&&"number"==typeof m.length){f&&(m=f);var c=0;b=function(){};return{s:b,n:function(){return c>=m.length?{done:!0}:{done:!1,value:m[c++]}},e:function(h){throw h;},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}var d,n=!0,k=!1;return{s:function(){f=f.call(m)},n:function(){var h=f.next();return n=h.done,h},e:function(h){k=!0;d=h},f:function(){try{n||null==f.return||f.return()}finally{if(k)throw d;}}}}function C(m,b){(null==b||b>m.length)&&(b=m.length);for(var f=0,c=Array(b);f<b;f++)c[f]=m[f];return c}var A=u(F(2)),q=u(F(1)),r=u(F(0)),x=F(16),v=null;String.prototype.supplant||(String.prototype.supplant=function(m){return this.replace(/{([^{}]*)}/g,function(b,f){f=m[f];return"string"==typeof f||"number"==
typeof f?f:b})});y.exports={init:function(m){$.widget("custom.vullcomplete",$.ui.autocomplete,{_create:function(){return this._super(),this.widget().menu("option","items","\x3e :not(.va-suggest__title)"),this},_renderMenu:function(b,f){var c=this,d="";b.addClass("va-suggest__list");b.attr("aria-live","polite");b.attr("aria-relevant","additions");$.each(f,function(n,k){k.category!=d&&(b.append("\x3cli class\x3d'va-suggest__title'\x3e"+k.category+"\x3c/li\x3e"),d=k.category);c._renderItemData(b,k)});
$(".autocomplete-screen-reader").html(f.length+" "+translate("helpSearch.results"))}});window.translate||(window.translate=function(b){switch(b.substr(0,2)){case "m.":b="map.goingTo."+b.substr(2);break;case "r.":b="radio.goingTo."+b.substr(2);break;case "b.":b="button.goingTo."+b.substr(2);break;case "a.":b="access.goingTo."+b.substr(2);break;case "s.":b="step.goingTo."+b.substr(2);break;case "t.":b="text.goingTo."+b.substr(2);break;case "o.":b="option.goingTo."+b.substr(2);break;case "e.":b="error.goingTo."+
b.substr(2);break;default:b="label.goingTo."+b}return TMB.l10n.vullanar.get(b)});$(m).each(function(b,f){$(f).on("focus",function(c){c.stopPropagation();A.default.retrieveData();$(this).data("customVullcomplete").search("")})})},setHistory:function(m,b,f){y.exports.paintMarker([parseFloat(b.valor.lat),parseFloat(b.valor.lon)],f,b.label);$(document).trigger("changeInput",{input:-1!=f.attr("id").indexOf("origen"),label:b.label});setTimeout(function(){""!=$("#tmb-maps__origen__carrer").val()&&""!=$("#tmb-maps__desti__carrer").val()||
""!=$("#tmb-maps__origen__carrer").val()&&$("#f__va_near").is(":checked")?($(".js__va-widget-submit").prop("disabled",!1),$(".js__va-widget-submit").removeClass("button--disabled"),$(".js-search-vullanar").prop("disabled",!1),$(".js-search-vullanar").removeClass("disabled")):($(".js__va-widget-submit").prop("disabled",!0),$(".js__va-widget-submit").addClass("button--disabled"),$(".js-search-vullanar").prop("disabled",!0),$(".js-search-vullanar").addClass("disabled"))},0)},setStop:function(m,b,f){window.geoWrapper.service.getBusStopInfo(b.valor.code).then(function(c){var d=
ol.proj.transform(c.geometry.coordinates,"EPSG:3857","EPSG:4326");y.exports.paintMarker(d,f,b.label);y.exports.showPopup($(f).parent(),"stop",c.properties);$(document).trigger("changeInput",{input:-1!=f.attr("id").indexOf("origen"),label:b.label})})},setStation:function(m,b,f){window.geoWrapper.service.getMetroStopInfo(b.valor.code).then(function(c){var d=ol.proj.transform(c.geometry.coordinates,"EPSG:3857","EPSG:4326");y.exports.paintMarker(d,f,b.label);y.exports.showPopup($(f).parent(),"station",
c.properties);$(document).trigger("changeInput",{input:-1!=f.attr("id").indexOf("origen"),label:b.label})})},setTraject:function(m,b,f){-1<m.target.id.indexOf("origen")?(b.value=b.valor.from.label,b.label=b.valor.from.label):(b.value=b.valor.to.label,b.label=b.valor.to.label);y.exports.paintMarker([parseFloat(b.valor.from.lat),parseFloat(b.valor.from.lon)],$("#tmb-maps__origen__carrer"),b.valor.from.label,!0,!0);b.valor.near?($("#f__va_near").click(),$("#tmb-maps__desti__carrer").prop("disabled",
!0),$(".js-search-vullanar").prop("disabled",!0)):(y.exports.paintMarker([parseFloat(b.valor.to.lat),parseFloat(b.valor.to.lon)],$("#tmb-maps__desti__carrer"),b.valor.to.label,!0,!0),q.default.centerInRoute([parseFloat(b.valor.from.lat),parseFloat(b.valor.from.lon)],[parseFloat(b.valor.to.lat),parseFloat(b.valor.to.lon)]));$(".js__va-widget-submit").prop("disabled",!1);$(".js__va-widget-submit").removeClass("button--disabled");$(".js-search-vullanar").prop("disabled",!1);$(".js-search-vullanar").removeClass("disabled");
var c=q.default.checkIfResultAndClick();setTimeout(function(){c&&c&&0==$("#widget-portlet").length&&("traject"==r.default.origin||"traject"==r.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRoute(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRouteWhereIAm()):"pois"==r.default.origin||"pois"==r.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchLocation(),$("#f__va_near").is(":checked")&&
Analytics&&Analytics.VullAnar.eventSearchLocationWhereIAm()):(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearch(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchWhereIAm()),Analytics&&Analytics.VullAnar.eventVirtualPage())},0);$(document).trigger("changeInput",{input:!0,label:b.valor.from.label});$(document).trigger("changeInput",{input:!1,label:b.valor.to.label})},setPoi:function(m,b,f){y.exports.paintMarker([b.valor.lat,b.valor.lon],f,b.valor.label);
$(document).trigger("changeInput",{input:-1!=f.attr("id").indexOf("origen"),label:b.valor.label});setTimeout(function(){""!=$("#tmb-maps__origen__carrer").val()&&""!=$("#tmb-maps__desti__carrer").val()||""!=$("#tmb-maps__origen__carrer").val()&&$("#f__va_near").is(":checked")?($(".js__va-widget-submit").prop("disabled",!1),$(".js__va-widget-submit").removeClass("button--disabled"),$(".js-search-vullanar").prop("disabled",!1),$(".js-search-vullanar").removeClass("disabled")):($(".js__va-widget-submit").prop("disabled",
!0),$(".js__va-widget-submit").addClass("button--disabled"),$(".js-search-vullanar").prop("disabled",!0),$(".js-search-vullanar").addClass("disabled"))},0)},paintMarker:function(m,b,f,c,d){c?q.default.addMarker({lon:m[0],lat:m[1]},-1!=b.attr("id").indexOf("origen")):q.default.setMarkerAndCenter({lon:m[0],lat:m[1]},-1!=b.attr("id").indexOf("origen"));$("#"+b.attr("id")+"-lng").val(m[1]);$("#"+b.attr("id")+"-lat").val(m[0]);$("#"+b.attr("id")).val(f);$(document).trigger("changeInput",{input:-1!=b.attr("id").indexOf("origen"),
label:f});setTimeout(function(){q.default.checkIfResultAndClick()&&!d&&0==$("#widget-portlet").length&&("traject"==r.default.origin||"traject"==r.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRoute(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRouteWhereIAm()):"pois"==r.default.origin||"pois"==r.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchLocation(),$("#f__va_near").is(":checked")&&
Analytics&&Analytics.VullAnar.eventSearchLocationWhereIAm()):(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearch(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchWhereIAm()),Analytics&&Analytics.VullAnar.eventVirtualPage())},0)},setSearch:function(m,b,f,c){f.geocode({placeId:b.item.valor.place_id},function(d,n){if("OK"==n){var k=d[0];d=k.geometry.location.lng();n=k.geometry.location.lat();var h=b.item.label;d=[parseFloat(d),parseFloat(n)];d=ol.proj.transform(d,
"EPSG:4326","EPSG:4326");$("#"+c.attr("id")+"-lng").val(d[1]);$("#"+c.attr("id")+"-lat").val(d[0]);$("#"+c.attr("id")).val(h);q.default.setMarkerAndCenter({lon:d[0],lat:d[1]},-1!=c.attr("id").indexOf("origen"));q.default.checkIfResultAndClick()&&0==$("#widget-portlet").length&&("traject"==r.default.origin||"traject"==r.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRoute(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchRouteWhereIAm()):
"pois"==r.default.origin||"pois"==r.default.desti?(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchLocation(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchLocationWhereIAm()):(!$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearch(),$("#f__va_near").is(":checked")&&Analytics&&Analytics.VullAnar.eventSearchWhereIAm()),Analytics&&Analytics.VullAnar.eventVirtualPage());$(document).trigger("changeInput",{input:-1!=c.attr("id").indexOf("origen"),
label:h});n=JSON.parse(window.localStorage.getItem("searchHistory"))||[];n.find(function(l){return l.label===h})||(5<=n.length&&n.shift(),n.push({label:h,valor:{lat:d[0],lon:d[1]}}),window.localStorage.setItem("searchHistory",JSON.stringify(n)));y.exports.showPopup($(c).parent(),"location",k)}else console.error(n,k)})},renderItem:function(m,b){var f="",c="";switch(b.category){case window.translate("search"):f='\x3cspan class\x3d"icon suggest-icon '+(-1!=b.types.indexOf("point_of_interest")?"ico--poi":
-1!=b.types.indexOf("street_address")?"ico--dir":-1!=b.types.indexOf("bus_station")?"ico--bus":-1!=b.types.indexOf("train_station")?"ico--metro":-1!=b.types.indexOf("transit_station")?"ico--transit":"ico--dir")+'"\x3e\x3c/span\x3e';break;case window.translate("lastSearchs"):f='\x3cspan class\x3d"icon suggest-icon icon--history-clock"\x3e\x3c/span\x3e';break;case window.translate("pois"):f='\x3cspan class\x3d"icon suggest-icon icon--place"\x3e\x3c/span\x3e';break;case window.translate("myTrips"):f=
'\x3cspan class\x3d"icon suggest-icon label-icon--trajecte"\x3e\x3c/span\x3e';break;case window.translate("Parades"):f='\x3cspan style\x3d"display: table-cell;vertical-align: middle;padding-right:8px;"\x3e\x3cimg src\x3d"'+window.pathTheme+'/images/basic/32px/svg/bus_home.svg" alt\x3d"" class\x3d"va-view__stop-icon" style\x3d"position: relative;width: 1.5rem;height: 1.5rem;top: 0;transform: none;left: -3px;"\x3e\x3c/span\x3e';break;case window.translate("Estacions"):var d=b.valor.icon.split("L"),
n;for(n in d.shift(),f="",d)d[n].split("9")[1]?f+='\x3cspan class\x3d"line line--l9" style\x3d"position: relative;display: table-cell;vertical-align: middle;transform: none;left: -1px;"\x3eL'+d[n]+"\x3c/span\x3e":d[n].split("10")[1]?f+='\x3cspan class\x3d"line line--l10" style\x3d"position: relative;display: table-cell;vertical-align: middle;transform: none;left: 3px;"\x3eL'+d[n]+"\x3c/span\x3e":f+='\x3cspan class\x3d"line line--'+b.valor.icon.toLowerCase()+'" style\x3d"position: relative;display: table-cell;vertical-align: middle;transform: none;left: -1px;"\x3e'+
b.valor.icon+"\x3c/span\x3e",c="padding-left:8px;"}return $('\x3cli class\x3d"datalist__item" role\x3d"presentation"\x3e\x3c/li\x3e').data("item.autocomplete",b).append('\x3ca href\x3d"#" onclick\x3d"return false;" class\x3d"suggest-item"\x3e'+f+'\x3cspan class\x3d"suggest-text" style\x3d'+c+"\x3e"+b.label+"\x3c/span\x3e\x3c/a\x3e").appendTo(m)},showPopup:function(m,b,f){if($("#popup-autocomplete").length&&(v&&(v.disconnect(),v=null),$("#popup-autocomplete").unbind("DOMNodeRemoved"),y.exports.removePopup()),
!window.localStorage.getItem("noPopup")){var c=function(){$("#popup-autocomplete .checkbox").hasClass("checked")&&window.localStorage.setItem("noPopup",!0)},d="undefined"!=typeof TJS?TJS.velocity.getCookie("JoTMBeKCSession"):window.getCookie("JoTMBeKCSession"),n=window.translate("popupAddButton1"),k="location"!=b?window.translate("popupText"):window.translate("popupLocations"),h=f.CODI_ESTACIO,l={name:h?f.NOM_ESTACIO:f.NOM_PARADA,description:h?f.NOM_ESTACIO?f.NOM_ESTACIO:f.DESC_ESTACIO:f.NOM_PARADA?
f.NOM_PARADA:f.DESC_PARADA,transport:"stop"==b?"Bus":"Metro",code:h||f.CODI_PARADA};!function w(){$(m).append(x.supplant({pathTheme:window.pathTheme,noShowAgain:window.translate("noShowAgain"),button1:n,text:k}));$("#popup-autocomplete .popup-autocomplete-button").on("click",function(){if($("#popup-autocomplete").unbind("DOMNodeRemoved"),v&&(v.disconnect(),v=null),d){if("location"!=b)window.widget.modals.addLineOrStop(l,function(){c();y.exports.removePopup()},!1);else{var B=m.children("input").first().attr("id");
B={name:$("#"+B).val(),lat:$("#"+B+"-lat").val(),lon:$("#"+B+"-lng").val()};window.widget.modals.addLocation(void 0,B)}0==$("#widget-portlet").length&&Analytics&&Analytics.VullAnar.eventFavorite();0<$("#widget-portlet").length&&Analytics&&Analytics.Widget.VullAnar.eventFavorite()}else c(),B=m.children("input").first().attr("id"),B={inputId:B,name:$("#"+B).val(),lat:$("#"+B+"-lat").val(),lon:$("#"+B+"-lng").val()},"location"==b?localStorage.setItem("signup_add_location",JSON.stringify(B)):(B=Object.assign(B,
l),localStorage.setItem("signup_add_line_or_stop",JSON.stringify(B))),initModalRegister("Flyout JOTMBE"),0==$("#widget-portlet").length&&Analytics&&Analytics.VullAnar.eventFavoriteSignUp(),0<$("#widget-portlet").length&&Analytics&&Analytics.Widget.VullAnar.eventFavoriteSignUp();y.exports.removePopup()});$("#popup-autocomplete .checkbox").on("click",function(B){B.preventDefault();$("#popup-autocomplete .checkbox").toggleClass("checked")});$("#popup-autocomplete .popup-close").on("click",function(){c();
$("#popup-autocomplete").unbind("DOMNodeRemoved");v&&(v.disconnect(),v=null);y.exports.removePopup()});$("#popup-autocomplete").bind("DOMNodeRemoved",function(){w();$("#popup-autocomplete").unbind("DOMNodeRemoved")});v&&(v.disconnect(),v=null);(v=new MutationObserver(function(B,G){var E;B=p(B);try{for(B.s();!(E=B.n()).done;)"childList"!==E.value.type||$("#popup-autocomplete").length||w()}catch(I){B.e(I)}finally{B.f()}})).observe(document.body,{childList:!0,subtree:!0})}()}},removePopup:function(){$("#popup-autocomplete").remove();
$("#popup-autocomplete .checkbox").off("click");$("#popup-autocomplete .popup-autocomplete-button").off("click");$("#popup-autocomplete .popup-close").off("click")},throttle:function(m,b,f){var c,d;return function(){var n=this,k=arguments;f.closed?(m.apply(n,k),d=Date.now()):d?(clearTimeout(c),c=setTimeout(function(){Date.now()-d>=b&&(m.apply(n,k),d=Date.now())},b-(Date.now()-d))):(m.apply(n,k),d=Date.now())}}}},function(y,J,F){y.exports=F(7)},function(y,J,F){function u(r){return r&&r.__esModule?
r:{default:r}}J=u(F(8));var p=u(F(1)),C=u(F(27)),A=u(F(0)),q=u(F(4));F=u(F(28));y.exports={geoMap:J.default,mapCtrl:p.default,autoComplete:C.default,autoCompleteAnalytics:A.default,modals:q.default,portalUtils:F.default}},function(y,J,F){function u(c){return c&&c.__esModule?c:{default:c}}function p(c){var d=new ol.interaction.Select({condition:ol.events.condition.click});d.on("select",function(n){var k=n.selected[0];if(k&&"marker"!=k.type)if(d.getFeatures().clear(),k.getProperties().CODI_PARADA)window.geoWrapper.service.getBusStopInfo(k.getProperties().CODI_PARADA).then(function(l){!function(z,
w,B){var G={stopInfo:B};G.url="../barcelona/autobusos/-/lineabus/parada/"+B.CODI_PARADA;B=window.geoWrapper.service.getLinesByBusStop_v3(w,!0).then(function(E){return E});w=window.geoWrapper.service.getBusAffectations(void 0,w).then(function(E){return 0<E.data.alerts.length?E.data.alerts:null});Promise.all([B,w]).then(function(E){G.linesParada=E[0].busLines.map(function(I){return I.properties});G.linesCorresp=E[0].busCorresp.concat(E[0].metro).map(function(I){return I.properties});G.stopAlerts=E[1];
$(document).trigger("show-bus-tooltip",G);A("bus",z,G.url)},function(E){console.error("Promise all reason \x3d\x3e",E)})}(k,k.getProperties().CODI_PARADA,l.properties)});else if(k.getProperties().ID_ACCES){var h=k.getProperties();window.geoWrapper.service.getStops(void 0,"METRO").then(function(l){if(l=l.features.find(function(z){return z.properties.NOM_ESTACIO==h.NOM_ESTACIO}))l=l.properties,l.NOM_ESTACIO=h.NOM_ACCES,l.ID_TIPUS_ACCESSIBILITAT=h.ID_TIPUS_ACCES||h.ID_TIPUS_ACCESSIBILITAT,C(k,l.CODI_ESTACIO,
l,h.CODI_ACCES)})}else null==k.getProperties().CODI_ESTACIO?k.getProperties().ID_ESTACIO&&window.geoWrapper.service.getMetroStopInfo(k.getProperties().ID_ESTACIO).then(function(l){C(k,k.getProperties().ID_ESTACIO,l.properties)}):window.geoWrapper.service.getMetroStopInfo(k.getProperties().CODI_ESTACIO).then(function(l){C(k,k.getProperties().CODI_ESTACIO,l.properties)});else d.getFeatures().clear()});c.addInteraction(d)}function C(c,d,n,k){var h={stopInfo:n};h.url="../barcelona/metro/-/lineametro/estacion/"+
d;h.code=k||d;d=[];k||d.push(window.geoWrapper.service.getAccess(void 0,n.CODI_GRUP_ESTACIO).then(function(l){return l.features}));d.push(window.geoWrapper.service.getMetroTimetable(n.CODI_LINIA).then(function(l){return l.features}));d.push(window.geoWrapper.service.getMetroAffectations(n.NOM_LINIA,n.CODI_ESTACIO.toString()).then(function(l){return 0<l.data.alerts.length?l.data.alerts:null}));d.push($.ajax({url:varApiGisTransit+"/linies/metro/estacions/"+n.CODI_ESTACIO+"/corresp?app_id\x3d"+varTmbApiId+
"\x26app_key\x3d"+varTmbApiKey+"\x26cql_filter\x3d(ID_OPERADOR+IN+(1,3,4,5))\x26sortBy\x3dCODI_ESTACIO,ID_OPERADOR,NOM_LINIA\x26srsName\x3dEPSG:3857",contentType:"application/json; charset\x3dutf-8",dataType:"json",type:"GET",error:function(l,z,w){return console.error(z,l.status,w),l}}));Promise.all(d).then(function(l){if(k)h.linesByStop=l[2].features.map(function(w){return w.properties}),h.metroTimetable=l[0].map(function(w){return w.properties}),h.stopAlerts=l[1],$(document).trigger("show-metro-tooltip",
h),A("metro",c,h.url);else{h.accesses=l[0].map(function(w){return w.properties});h.linesByStop=l[3].features.map(function(w){return w.properties});h.metroTimetable=l[1].map(function(w){return w.properties});h.stopAlerts=l[2];var z=[];l=h.linesByStop.findIndex(function(w){return w.CODI_LINIA==h.stopInfo.CODI_LINIA});-1!=l&&h.linesByStop.splice(l,1);h.accesses.forEach(function(w){z.push(window.geoWrapper.service.getAccessLines(w.CODI_ACCES).then(function(B){return B.features.map(function(G){return G.properties})}))});
Promise.all(z).then(function(w){h.accesses.forEach(function(B,G){B.lines=w[G]});$(document).trigger("show-metro-tooltip",h);A("metro",c,h.url)})}},function(l){console.error("Promise all reason \x3d\x3e",l)})}function A(c,d,n){var k=$("#tooltip-"+c),h=window.geoWrapper.map;d=d.getGeometry().getCoordinates();var l=h.map.getPixelFromCoordinate(d),z=h.map.getSize()[1],w="bottom-center";l[1]>2*z/3&&(w="top-center");k.removeClass("va-popup-up-orientation va-popup-down-orientation");k.addClass("top-center"===
w?"va-popup-up-orientation":"va-popup-down-orientation");l=new ol.Overlay({element:k,positioning:w});setTimeout(function(){k.show();$(".link-"+c+"-popup").on("click",function(){v.default.modalExit(n)})},100);l.setPosition(d);h.addOverlay(l)}var q=u(F(9)),r=u(F(12)),x=u(F(13)),v=u(F(4)),m=varApiGis,b=varApiGisTransit,f=varApiGisPlanner;y.exports=function(c,d){var n=this;if(this.service=new r.default(varTmbApiId,varTmbApiKey,m,b,f),this.created=!1,document.getElementById(c))this.map=new q.default(varTmbApiId,
varTmbApiKey,c),p(this.map),this.created=!0,null!=d&&d.showResizeHandler&&(this.resizeHandler=new x.default(c,d.minContainerHeight),this.resizeHandler&&d.onResizing&&this.resizeHandler.onResizing(function(h){d.onResizing(h);n.map.updateSize()}));else var k=setInterval(function(){document.getElementById(c)&&(n.map=new q.default(varTmbApiId,varTmbApiKey,c),p(n.map),n.created=!0,null!=d&&d.showResizeHandler&&(n.resizeHandler=new x.default(c,d.minContainerHeight),n.resizeHandler&&d.onResizing&&n.resizeHandler.onResizing(function(h){d.onResizing(h);
n.map.updateSize()})),clearInterval(k))},100)}},function(y,J,F){function u(f){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(f)}function p(f){return f&&f.__esModule?f:{default:f}}function C(f,c){for(var d=0;d<c.length;d++){var n=c[d];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);var k=Object,h=k.defineProperty;
var l=n.key;a:if("object"==u(l)&&l){var z=l[Symbol.toPrimitive];if(void 0!==z){l=z.call(l,"string");if("object"!=u(l))break a;throw new TypeError("@@toPrimitive must return a primitive value.");}l=String(l)}l="symbol"==u(l)?l:String(l);h.call(k,f,l,n)}}function A(f,c,d){return c=r(c),function(n,k){if(k&&("object"===u(k)||"function"==typeof k))return k;if(void 0!==k)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return n}(f,function(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(k){}return!!n}()?Reflect.construct(c,d||[],r(f).constructor):c.apply(f,d))}function q(){return(q="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(f,c,d){var n;for(n=f;!Object.prototype.hasOwnProperty.call(n,c)&&null!==(n=r(n)););if(n)return n=Object.getOwnPropertyDescriptor(n,c),n.get?n.get.call(3>arguments.length?f:d):n.value}).apply(this,arguments)}function r(f){return(r=
Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)})(f)}function x(f,c){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,n){return d.__proto__=n,d})(f,c)}var v=p(F(1)),m=p(F(11)),b=function(f,c){var d=c?"origen":"destination";$("#contextMenu ."+d).off("click");$("#contextMenu ."+d).on("click",function(){$("#contextMenu").hide();v.default.addMarker({lon:f[0],lat:f[1]},c);v.default.setNewMarkerPosition(c,f)})};y.exports=
function(f){function c(n,k,h){var l;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");return(l=A(this,c,[{gmMode:!1,element:h,appIdTMB:n,appKeyTMB:k,rightClick:function(z,w){$("#contextMenu").hide()},leftClick:function(z,w){l.showContextMenu(z.originalEvent,w,ol)}}])).tapMap(l.map,ol,h),l}var d;return function(n,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(k&&k.prototype,{constructor:{value:n,
writable:!0,configurable:!0}});Object.defineProperty(n,"prototype",{writable:!1});k&&x(n,k)}(c,geoapi.Map),d=[{key:"fitBounds",value:function(n,k,h,l,z){return q(r(c.prototype),"fitBounds",this).call(this,k,h,l,z)}},{key:"showContextMenu",value:function(n,k,h){n=k.getEventPixel(n);var l=h.proj.transform(k.getCoordinateFromPixel(n),"EPSG:3857","EPSG:4326");h=new h.Overlay({element:$("#contextMenu"),positioning:"top-right"});h.setPosition(k.getCoordinateFromPixel(n));k.addOverlay(h);$("#contextMenu").show();
b(l,!0);b(l)}},{key:"tapMap",value:function(n,k,h){var l=this,z=setInterval(function(){if(document.getElementById(h)){var w=new m.default.Manager(document.getElementById(h));w.add(new m.default.Press({time:500}));w.on("press",function(B){l.showContextMenu(B.srcEvent,n,k)});clearInterval(z)}},100)}},{key:"updateSize",value:function(){this.map&&this.map.updateSize()}}],C(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c}()},function(y,J,F){var u=y.exports={dateTime:null,getDateTime:function(p){var C=
(p=p||new Date).getFullYear(),A=p.getMonth()+1,q=p.getDate(),r=p.getHours(),x=p.getMinutes();p.getSeconds();return 1===A.toString().length&&(A="0"+A),1===q.toString().length&&(q="0"+q),1===r.toString().length&&(r="0"+r),1===x.toString().length&&(x="0"+x),C+"-"+A+"-"+q+"/"+r+":"+x},setDateTime:function(){u.dateTime=u.getDateTime().split("/").join(" - ")+"h"},formatDate:function(p){if(p){var C=p.split("/")[0].split("-")[0],A=p.split("/")[0].split("-")[1];return p.split("/")[0].split("-")[2]+"-"+A+"-"+
C+" - "+p.split("/")[1].split(":")[0]+":"+p.split("/")[1].split(":")[1]+"h"}},formatDateWithSlash:function(p){if(p){var C=p.split("/")[0].split("-")[0],A=p.split("/")[0].split("-")[1];return p.split("/")[0].split("-")[2]+"/"+A+"/"+C+" - "+p.split("/")[1].split(":")[0]+":"+p.split("/")[1].split(":")[1]+"h"}},getFormatDate:function(p){var C=p.split(" - ")[0].split("-")[2],A=p.split(" - ")[0].split("-")[1]-1,q=p.split(" - ")[0].split("-")[0],r=p.split(" - ")[1].split(":")[0];p=p.split(" - ")[1].split(":")[1].replace("h",
"");return new Date(C,A,q,r,p)},addMinutes:function(p,C){return new Date(p.getTime()+6E4*C)}}},function(y,J,F){var u;!function(p,C,A,q){function r(a,e,g){return setTimeout(f(a,g),e)}function x(a,e,g){return!!Array.isArray(a)&&(v(a,g[e],g),!0)}function v(a,e,g){var t;if(a)if(a.forEach)a.forEach(e,g);else if(a.length!==q)for(t=0;t<a.length;)e.call(g,a[t],t,a),t++;else for(t in a)a.hasOwnProperty(t)&&e.call(g,a[t],t,a)}function m(a,e,g){var t="DEPRECATED METHOD: "+e+"\n"+g+" AT \n";return function(){var D=
Error("get-stack-trace");D=D&&D.stack?D.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace";var K=p.console&&(p.console.warn||p.console.log);return K&&K.call(p.console,t,D),a.apply(this,arguments)}}function b(a,e,g){var t=e.prototype;(e=a.prototype=Object.create(t)).constructor=a;e._super=t;g&&pa(e,g)}function f(a,e){return function(){return a.apply(e,arguments)}}function c(a,e){return"function"==typeof a?a.apply(e&&
e[0]||q,e):a}function d(a,e,g){v(h(e),function(t){a.addEventListener(t,g,!1)})}function n(a,e,g){v(h(e),function(t){a.removeEventListener(t,g,!1)})}function k(a,e){for(;a;){if(a==e)return!0;a=a.parentNode}return!1}function h(a){return a.trim().split(/\s+/g)}function l(a,e,g){if(a.indexOf&&!g)return a.indexOf(e);for(var t=0;t<a.length;){if(g&&a[t][g]==e||!g&&a[t]===e)return t;t++}return-1}function z(a){return Array.prototype.slice.call(a,0)}function w(a,e,g){for(var t=[],D=[],K=0;K<a.length;){var R=
e?a[K][e]:a[K];0>l(D,R)&&t.push(a[K]);D[K]=R;K++}return g&&(t=e?t.sort(function(M,fa){return M[e]>fa[e]}):t.sort()),t}function B(a,e){for(var g,t,D=e[0].toUpperCase()+e.slice(1),K=0;K<Fa.length;){if((t=(g=Fa[K])?g+D:e)in a)return t;K++}return q}function G(a){a=a.ownerDocument||a;return a.defaultView||a.parentWindow||p}function E(a,e){var g=this;this.manager=a;this.callback=e;this.element=a.element;this.target=a.options.inputTarget;this.domHandler=function(t){c(a.options.enable,[a])&&g.handler(t)};
this.init()}function I(a,e,g){var t=g.pointers.length,D=g.changedPointers.length,K=1&e&&0==t-D;g.isFirst=!!K;g.isFinal=!!(12&e&&0==t-D);K&&(a.session={});g.eventType=e;(function(R,M){var fa=R.session,wa=M.pointers,qa=wa.length;fa.firstInput||(fa.firstInput=H(M));1<qa&&!fa.firstMultiple?fa.firstMultiple=H(M):1===qa&&(fa.firstMultiple=!1);var ma=fa.firstInput,Ga=(qa=fa.firstMultiple)?qa.center:ma.center,Ha=M.center=L(wa);M.timeStamp=Ba();M.deltaTime=M.timeStamp-ma.timeStamp;M.angle=W(Ga,Ha);M.distance=
P(Ga,Ha);(function(ka,ba){var da=ba.center,na=ka.offsetDelta||{},oa=ka.prevDelta||{},ha=ka.prevInput||{};1!==ba.eventType&&4!==ha.eventType||(oa=ka.prevDelta={x:ha.deltaX||0,y:ha.deltaY||0},na=ka.offsetDelta={x:da.x,y:da.y});ba.deltaX=oa.x+(da.x-na.x);ba.deltaY=oa.y+(da.y-na.y)})(fa,M);M.offsetDirection=N(M.deltaX,M.deltaY);var Ca;ma=O(M.deltaTime,M.deltaX,M.deltaY);M.overallVelocityX=ma.x;M.overallVelocityY=ma.y;M.overallVelocity=sa(ma.x)>sa(ma.y)?ma.x:ma.y;M.scale=qa?(Ca=qa.pointers,P(wa[0],wa[1],
ya)/P(Ca[0],Ca[1],ya)):1;M.rotation=qa?function(ka,ba){return W(ba[1],ba[0],ya)+W(ka[1],ka[0],ya)}(qa.pointers,wa):0;M.maxPointers=fa.prevInput?M.pointers.length>fa.prevInput.maxPointers?M.pointers.length:fa.prevInput.maxPointers:M.pointers.length;(function(ka,ba){var da=ka.lastInterval||ba;var na=ba.timeStamp-da.timeStamp;if(8!=ba.eventType&&(25<na||da.velocity===q)){var oa=ba.deltaX-da.deltaX;da=ba.deltaY-da.deltaY;var ha=O(na,oa,da);na=ha.x;var Ia=ha.y;ha=sa(ha.x)>sa(ha.y)?ha.x:ha.y;oa=N(oa,da);
ka.lastInterval=ba}else ha=da.velocity,na=da.velocityX,Ia=da.velocityY,oa=da.direction;ba.velocity=ha;ba.velocityX=na;ba.velocityY=Ia;ba.direction=oa})(fa,M);R=R.element;k(M.srcEvent.target,R)&&(R=M.srcEvent.target);M.target=R})(a,g);a.emit("hammer.input",g);a.recognize(g);a.session.prevInput=g}function H(a){for(var e=[],g=0;g<a.pointers.length;)e[g]={clientX:va(a.pointers[g].clientX),clientY:va(a.pointers[g].clientY)},g++;return{timeStamp:Ba(),pointers:e,center:L(e),deltaX:a.deltaX,deltaY:a.deltaY}}
function L(a){var e=a.length;if(1===e)return{x:va(a[0].clientX),y:va(a[0].clientY)};for(var g=0,t=0,D=0;D<e;)g+=a[D].clientX,t+=a[D].clientY,D++;return{x:va(g/e),y:va(t/e)}}function O(a,e,g){return{x:e/a||0,y:g/a||0}}function N(a,e){return a===e?1:sa(a)>=sa(e)?0>a?2:4:0>e?8:16}function P(a,e,g){g||=Ja;var t=e[g[0]]-a[g[0]];a=e[g[1]]-a[g[1]];return Math.sqrt(t*t+a*a)}function W(a,e,g){g||=Ja;return 180*Math.atan2(e[g[1]]-a[g[1]],e[g[0]]-a[g[0]])/Math.PI}function Q(){this.evEl="mousedown";this.evWin=
"mousemove mouseup";this.pressed=!1;E.apply(this,arguments)}function S(){this.evEl=Ka;this.evWin=La;E.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}function V(){this.evTarget="touchstart";this.evWin="touchstart touchmove touchend touchcancel";this.started=!1;E.apply(this,arguments)}function T(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};E.apply(this,arguments)}function X(a,e){var g=z(a.touches),t=this.targetIds;if(3&e&&1===g.length)return t[g[0].identifier]=
!0,[g,g];var D;a=z(a.changedTouches);var K=[],R=this.target;if(D=g.filter(function(M){return k(M.target,R)}),1===e)for(g=0;g<D.length;)t[D[g].identifier]=!0,g++;for(g=0;g<a.length;)t[a[g].identifier]&&K.push(a[g]),12&e&&delete t[a[g].identifier],g++;return K.length?[w(D.concat(K),"identifier",!0),K]:void 0}function Z(){E.apply(this,arguments);var a=f(this.handler,this);this.touch=new T(this.manager,a);this.mouse=new Q(this.manager,a);this.primaryTouch=null;this.lastTouches=[]}function ca(a){a=a.changedPointers[0];
if(a.identifier===this.primaryTouch){var e={x:a.clientX,y:a.clientY};this.lastTouches.push(e);var g=this.lastTouches;setTimeout(function(){var t=g.indexOf(e);-1<t&&g.splice(t,1)},2500)}}function ea(a,e){this.manager=a;this.set(e)}function aa(a){this.options=pa({},this.defaults,a||{});this.id=Ra++;this.manager=null;a=this.options.enable;this.options.enable=a===q?!0:a;this.state=1;this.simultaneous={};this.requireFail=[]}function la(a){return 16&a?"cancel":8&a?"end":4&a?"move":2&a?"start":""}function ia(a){return 16==
a?"down":8==a?"up":2==a?"left":4==a?"right":""}function ja(a,e){return(e=e.manager)?e.get(a):a}function U(){aa.apply(this,arguments)}function Y(){U.apply(this,arguments);this.pY=this.pX=null}function ta(){U.apply(this,arguments)}function ra(){aa.apply(this,arguments);this._input=this._timer=null}function xa(){U.apply(this,arguments)}function Da(){U.apply(this,arguments)}function za(){aa.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}function ua(a,e){var g=
e=e||{},t=e.recognizers;return g.recognizers=t===q?ua.defaults.preset:t,new Ea(a,e)}function Ea(a,e){this.options=pa({},ua.defaults,e||{});this.options.inputTarget=this.options.inputTarget||a;this.handlers={};this.session={};this.recognizers=[];this.oldCssProps={};this.element=a;this.input=new (this.options.inputClass||(Sa?S:Ta?T:Ma?Z:Q))(this,I);this.touchAction=new ea(this,this.options.touchAction);Na(this,!0);v(this.options.recognizers,function(g){var t=this.add(new g[0](g[1]));g[2]&&t.recognizeWith(g[2]);
g[3]&&t.requireFailure(g[3])},this)}function Na(a,e){var g,t=a.element;t.style&&(v(a.options.cssProps,function(D,K){g=B(t.style,K);e?(a.oldCssProps[g]=t.style[g],t.style[g]=D):t.style[g]=a.oldCssProps[g]||""}),e||(a.oldCssProps={}))}var Fa=" webkit Moz MS ms o".split(" ");A=C.createElement("div");var va=Math.round,sa=Math.abs,Ba=Date.now;var pa="function"!=typeof Object.assign?function(a){if(a===q||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(a),g=1;g<
arguments.length;g++){var t=arguments[g];if(t!==q&&null!==t)for(var D in t)t.hasOwnProperty(D)&&(e[D]=t[D])}return e}:Object.assign;var Oa=m(function(a,e,g){for(var t=Object.keys(e),D=0;D<t.length;)(!g||g&&a[t[D]]===q)&&(a[t[D]]=e[t[D]]),D++;return a},"extend","Use `assign`."),Ua=m(function(a,e){return Oa(a,e,!0)},"merge","Use `assign`."),Ra=1,Ma="ontouchstart"in p,Sa=B(p,"PointerEvent")!==q,Ta=Ma&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Ja=["x","y"],ya=["clientX","clientY"];
E.prototype={handler:function(){},init:function(){this.evEl&&d(this.element,this.evEl,this.domHandler);this.evTarget&&d(this.target,this.evTarget,this.domHandler);this.evWin&&d(G(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&n(this.element,this.evEl,this.domHandler);this.evTarget&&n(this.target,this.evTarget,this.domHandler);this.evWin&&n(G(this.element),this.evWin,this.domHandler)}};var Va={mousedown:1,mousemove:2,mouseup:4};b(Q,E,{handler:function(a){var e=Va[a.type];
1&e&&0===a.button&&(this.pressed=!0);2&e&&1!==a.which&&(e=4);this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[a],changedPointers:[a],pointerType:"mouse",srcEvent:a}))}});var Wa={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Xa={2:"touch",3:"pen",4:"mouse",5:"kinect"},Ka="pointerdown",La="pointermove pointerup pointercancel";p.MSPointerEvent&&!p.PointerEvent&&(Ka="MSPointerDown",La="MSPointerMove MSPointerUp MSPointerCancel");b(S,E,{handler:function(a){var e=
this.store,g=!1,t=a.type.toLowerCase().replace("ms","");t=Wa[t];var D=Xa[a.pointerType]||a.pointerType,K="touch"==D,R=l(e,a.pointerId,"pointerId");1&t&&(0===a.button||K)?0>R&&(e.push(a),R=e.length-1):12&t&&(g=!0);0>R||(e[R]=a,this.callback(this.manager,t,{pointers:e,changedPointers:[a],pointerType:D,srcEvent:a}),g&&e.splice(R,1))}});var Ya={touchstart:1,touchmove:2,touchend:4,touchcancel:8};b(V,E,{handler:function(a){var e=Ya[a.type];if(1===e&&(this.started=!0),this.started){var g=z(a.touches),t=
z(a.changedTouches);var D=(12&e&&(g=w(g.concat(t),"identifier",!0)),[g,t]);12&e&&0==D[0].length-D[1].length&&(this.started=!1);this.callback(this.manager,e,{pointers:D[0],changedPointers:D[1],pointerType:"touch",srcEvent:a})}}});var Za={touchstart:1,touchmove:2,touchend:4,touchcancel:8};b(T,E,{handler:function(a){var e=Za[a.type],g=X.call(this,a,e);g&&this.callback(this.manager,e,{pointers:g[0],changedPointers:g[1],pointerType:"touch",srcEvent:a})}});b(Z,E,{handler:function(a,e,g){var t="touch"==
g.pointerType,D="mouse"==g.pointerType;if(!(D&&g.sourceCapabilities&&g.sourceCapabilities.firesTouchEvents)){if(t)1&e?(this.primaryTouch=g.changedPointers[0].identifier,ca.call(this,g)):12&e&&ca.call(this,g);else{if(t=D)a:{t=g.srcEvent.clientX;D=g.srcEvent.clientY;for(var K=0;K<this.lastTouches.length;K++){var R=this.lastTouches[K],M=Math.abs(D-R.y);if(25>=Math.abs(t-R.x)&&25>=M){t=!0;break a}}t=!1}if(t)return}this.callback(a,e,g)}},destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Pa=B(A.style,"touchAction"),Qa=Pa!==q,Aa=function(){if(!Qa)return!1;var a={},e=p.CSS&&p.CSS.supports;return"auto;manipulation;pan-y;pan-x;pan-x pan-y;none".split(";").forEach(function(g){a[g]=!e||p.CSS.supports("touch-action",g)}),a}();ea.prototype={set:function(a){"compute"==a&&(a=this.compute());Qa&&this.manager.element.style&&Aa[a]&&(this.manager.element.style[Pa]=a);this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=
[];return v(this.manager.recognizers,function(e){c(e.options.enable,[e])&&(a=a.concat(e.getTouchAction()))}),function(e){if(-1<e.indexOf("none"))return"none";var g=-1<e.indexOf("pan-x"),t=-1<e.indexOf("pan-y");return g&&t?"none":g||t?g?"pan-x":"pan-y":-1<e.indexOf("manipulation")?"manipulation":"auto"}(a.join(" "))},preventDefaults:function(a){var e=a.srcEvent,g=a.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var t=this.actions,D=-1<t.indexOf("none")&&!Aa.none,K=-1<t.indexOf("pan-y")&&
!Aa["pan-y"];t=-1<t.indexOf("pan-x")&&!Aa["pan-x"];if(D){var R=2>a.distance,M=250>a.deltaTime;if(1===a.pointers.length&&R&&M)return}if(!t||!K)return D||K&&6&g||t&&g&24?this.preventSrc(e):void 0}},preventSrc:function(a){this.manager.session.prevented=!0;a.preventDefault()}};aa.prototype={defaults:{},set:function(a){return pa(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(x(a,"recognizeWith",this))return this;var e=this.simultaneous;return e[(a=ja(a,
this)).id]||(e[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return x(a,"dropRecognizeWith",this)||(a=ja(a,this),delete this.simultaneous[a.id]),this},requireFailure:function(a){if(x(a,"requireFailure",this))return this;var e=this.requireFail;return-1===l(e,a=ja(a,this))&&(e.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(x(a,"dropRequireFailure",this))return this;a=ja(a,this);a=l(this.requireFail,a);return-1<a&&this.requireFail.splice(a,1),this},hasRequireFailures:function(){return 0<
this.requireFail.length},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function e(D){g.manager.emit(D,a)}var g=this,t=this.state;8>t&&e(g.options.event+la(t));e(g.options.event);a.additionalEvent&&e(a.additionalEvent);8<=t&&e(g.options.event+la(t))},tryEmit:function(a){if(this.canEmit())return this.emit(a);this.state=32},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(33&this.requireFail[a].state))return!1;a++}return!0},recognize:function(a){a=pa({},
a);if(!c(this.options.enable,[this,a]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1);this.state=this.process(a);30&this.state&&this.tryEmit(a)},process:function(a){},getTouchAction:function(){},reset:function(){}};b(U,aa,{defaults:{pointers:1},attrTest:function(a){var e=this.options.pointers;return 0===e||a.pointers.length===e},process:function(a){var e=this.state,g=a.eventType,t=6&e;a=this.attrTest(a);return t&&(8&g||!a)?16|e:t||a?4&g?8|e:2&e?4|e:2:32}});b(Y,U,{defaults:{event:"pan",
threshold:10,pointers:1,direction:30},getTouchAction:function(){var a=this.options.direction,e=[];return 6&a&&e.push("pan-y"),a&24&&e.push("pan-x"),e},directionTest:function(a){var e=this.options,g=!0,t=a.distance,D=a.direction,K=a.deltaX,R=a.deltaY;return D&e.direction||(6&e.direction?(D=0===K?1:0>K?2:4,g=K!=this.pX,t=Math.abs(a.deltaX)):(D=0===R?1:0>R?8:16,g=R!=this.pY,t=Math.abs(a.deltaY))),a.direction=D,g&&t>e.threshold&&D&e.direction},attrTest:function(a){return U.prototype.attrTest.call(this,
a)&&(2&this.state||!(2&this.state)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX;this.pY=a.deltaY;var e=ia(a.direction);e&&(a.additionalEvent=this.options.event+e);this._super.emit.call(this,a)}});b(ta,U,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||2&this.state)},emit:function(a){1!==a.scale&&(a.additionalEvent=this.options.event+(1>
a.scale?"in":"out"));this._super.emit.call(this,a)}});b(ra,aa,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(a){var e=this.options,g=a.pointers.length===e.pointers,t=a.distance<e.threshold,D=a.deltaTime>e.time;if(this._input=a,!t||!g||12&a.eventType&&!D)this.reset();else if(1&a.eventType)this.reset(),this._timer=r(function(){this.state=8;this.tryEmit()},e.time,this);else if(4&a.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},
emit:function(a){8===this.state&&(a&&4&a.eventType?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=Ba(),this.manager.emit(this.options.event,this._input)))}});b(xa,U,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||2&this.state)}});b(Da,U,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Y.prototype.getTouchAction.call(this)},
attrTest:function(a){var e,g=this.options.direction;return 30&g?e=a.overallVelocity:6&g?e=a.overallVelocityX:g&24&&(e=a.overallVelocityY),this._super.attrTest.call(this,a)&&g&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&sa(e)>this.options.velocity&&4&a.eventType},emit:function(a){var e=ia(a.offsetDirection);e&&this.manager.emit(this.options.event+e,a);this.manager.emit(this.options.event,a)}});b(za,aa,{defaults:{event:"tap",pointers:1,taps:1,interval:300,
time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(a){var e=this.options,g=a.pointers.length===e.pointers,t=a.distance<e.threshold,D=a.deltaTime<e.time;if(this.reset(),1&a.eventType&&0===this.count)return this.failTimeout();if(t&&D&&g){if(4!=a.eventType)return this.failTimeout();g=!this.pTime||a.timeStamp-this.pTime<e.interval;t=!this.pCenter||P(this.pCenter,a.center)<e.posThreshold;if(this.pTime=a.timeStamp,this.pCenter=a.center,t&&g?this.count+=
1:this.count=1,this._input=a,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=r(function(){this.state=8;this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=r(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});ua.VERSION="2.0.7";ua.defaults={domEvents:!1,touchAction:"compute",
enable:!0,inputTarget:null,inputClass:null,preset:[[xa,{enable:!1}],[ta,{enable:!1},["rotate"]],[Da,{direction:6}],[Y,{direction:6},["swipe"]],[za],[za,{event:"doubletap",taps:2},["tap"]],[ra]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Ea.prototype={set:function(a){return pa(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,
this.input.init()),this},stop:function(a){this.session.stopped=a?2:1},recognize:function(a){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(a);var g=this.recognizers,t=e.curRecognizer;(!t||t&&8&t.state)&&(t=e.curRecognizer=null);for(var D=0;D<g.length;){var K=g[D];2===e.stopped||t&&K!=t&&!K.canRecognizeWith(t)?K.reset():K.recognize(a);!t&&14&K.state&&(t=e.curRecognizer=K);D++}}},get:function(a){if(a instanceof aa)return a;for(var e=this.recognizers,g=0;g<e.length;g++)if(e[g].options.event==
a)return e[g];return null},add:function(a){if(x(a,"add",this))return this;var e=this.get(a.options.event);return e&&this.remove(e),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},remove:function(a){if(x(a,"remove",this))return this;if(a=this.get(a)){var e=this.recognizers;a=l(e,a);-1!==a&&(e.splice(a,1),this.touchAction.update())}return this},on:function(a,e){if(a!==q&&e!==q){var g=this.handlers;return v(h(a),function(t){g[t]=g[t]||[];g[t].push(e)}),this}},off:function(a,e){if(a!==
q){var g=this.handlers;return v(h(a),function(t){e?g[t]&&g[t].splice(l(g[t],e),1):delete g[t]}),this}},emit:function(a,e){this.options.domEvents&&function(t,D){var K=C.createEvent("Event");K.initEvent(t,!0,!0);K.gesture=D;D.target.dispatchEvent(K)}(a,e);var g=this.handlers[a]&&this.handlers[a].slice();if(g&&g.length)for(e.type=a,e.preventDefault=function(){e.srcEvent.preventDefault()},a=0;a<g.length;)g[a](e),a++},destroy:function(){this.element&&Na(this,!1);this.handlers={};this.session={};this.input.destroy();
this.element=null}};pa(ua,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Ea,Input:E,TouchAction:ea,TouchInput:T,MouseInput:Q,PointerEventInput:S,TouchMouseInput:Z,SingleTouchInput:V,Recognizer:aa,AttrRecognizer:U,Tap:za,Pan:Y,
Swipe:Da,Pinch:ta,Rotate:xa,Press:ra,on:d,off:n,each:v,merge:Ua,extend:Oa,assign:pa,inherit:b,bindFn:f,prefixed:B});(void 0!==p?p:"undefined"!=typeof self?self:{}).Hammer=ua;(u=ua)===q||(y.exports=u)}(window,document)},function(y,J,F){function u(r){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(x){return typeof x}:function(x){return x&&"function"==typeof Symbol&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x})(r)}function p(r,x){for(var v=0;v<x.length;v++){var m=
x[v];m.enumerable=m.enumerable||!1;m.configurable=!0;"value"in m&&(m.writable=!0);var b=Object,f=b.defineProperty;var c=m.key;a:if("object"==u(c)&&c){var d=c[Symbol.toPrimitive];if(void 0!==d){c=d.call(c,"string");if("object"!=u(c))break a;throw new TypeError("@@toPrimitive must return a primitive value.");}c=String(c)}c="symbol"==u(c)?c:String(c);f.call(b,r,c,m)}}function C(r,x,v){return x=A(x),function(m,b){if(b&&("object"===u(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");
if(void 0===m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}(r,function(){try{var m=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(b){}return!!m}()?Reflect.construct(x,v||[],A(r).constructor):x.apply(r,v))}function A(r){return(A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)})(r)}function q(r,x){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():
function(v,m){return v.__proto__=m,v})(r,x)}y.exports=function(r){function x(m,b,f,c,d){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");return C(this,x,[{appIdTMB:m,appKeyTMB:b,serverTMB:f,serverTMBTransit:c,serverTMBPlanner:d}])}var v;return function(m,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,writable:!0,configurable:!0}});Object.defineProperty(m,
"prototype",{writable:!1});b&&q(m,b)}(x,geoapi.Service),v=[{key:"nearStops",value:function(m){var b=this.config.appKeyTMB,f=this.config.appIdTMB;return new Promise(function(c,d){$.ajax({url:varApiGisTransit+"/elements/superficie/"+m.lon+"/"+m.lat+"/"+m.radius+"?app_key\x3d"+b+"\x26app_id\x3d"+f,contentType:"application/json; charset\x3dutf-8",dataType:"json",type:"GET",success:function(n){c(n)},error:function(n,k,h){console.error(k,n.status,h);d(h)}})})}},{key:"getStationWithHours",value:function(m,
b,f){var c=this.config.appKeyTMB,d=this.config.appIdTMB;return new Promise(function(n,k){$.ajax({url:varApiGisTransit+"/linies/bus/"+m+"/parades/"+b+"/horespas?app_id\x3d"+d+"\x26app_key\x3d"+c+"\x26cql_filter\x3dSENTIT+%3D+%27"+f+"%27\x26sortBy\x3dID_TIPUS_DIA,ORDRE_LITERAL",contentType:"application/json; charset\x3dutf-8",dataType:"json",type:"GET",success:function(h){n(h)},error:function(h,l,z){console.error(l,h.status,z);k(z)}})})}},{key:"searchStations",value:function(m){var b=this.config.appKeyTMB,
f=this.config.appIdTMB;return new Promise(function(c,d){$.ajax({url:varApiGis+"/itransit/nearby/search?\x26app_key\x3d"+b+"\x26app_id\x3d"+f+"\x26q\x3d"+m+"\x26transit_namespace\x3dbus,metro",contentType:"application/json; charset\x3dutf-8",dataType:"json",type:"GET",success:function(n){c(n.features||[])},error:function(n,k,h){console.error(k,n.status,h);d(h)}})})}},{key:"getInfoNextTrain",value:function(m,b){var f=this.config.appKeyTMB,c=this.config.appIdTMB,d=varApiGis+"/imetro";return m&&(d+="/linia/"+
m),b&&(d+="/estacio/"+b),new Promise(function(n,k){$.ajax({url:d+"?app_key\x3d"+f+"\x26app_id\x3d"+c,contentType:"application/json; charset\x3dutf-8",dataType:"json",type:"GET",success:function(h){n(h)},error:function(h,l,z){console.error(l,h.status,z);k(z)}})})}}],p(x.prototype,v),Object.defineProperty(x,"prototype",{writable:!1}),x}()},function(y,J,F){function u(C){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==
typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(C)}function p(C,A){for(var q=0;q<A.length;q++){var r=A[q];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);var x=Object,v=x.defineProperty;var m=r.key;a:if("object"==u(m)&&m){var b=m[Symbol.toPrimitive];if(void 0!==b){m=b.call(m,"string");if("object"!=u(m))break a;throw new TypeError("@@toPrimitive must return a primitive value.");}m=String(m)}m="symbol"==u(m)?m:String(m);v.call(x,C,m,r)}}y.exports=
function(){function C(q,r){if(!(this instanceof C))throw new TypeError("Cannot call a class as a function");!0;null!=q&&(this.containerId=q,this.minContainerHeight=r,this.container=document.getElementById(q),this.createResizeHandlerElement(),this.createResizeHandlerStyles(),this.applyFuncionalityToResizeHandler())}var A;return A=[{key:"onResizing",value:function(q){null!=q&&q instanceof Function&&(this.resizingCallback=q)}},{key:"createResizeHandlerElement",value:function(){if(null!=this.container){this.resizeHandler=
document.createElement("div");this.resizeHandler.className="va-map__resizer-handler";var q=document.createElement("div");q.className="arrow-up";this.resizeHandler.appendChild(q);q=document.createElement("div");q.className="arrows-separator";this.resizeHandler.appendChild(q);q=document.createElement("div");q.className="arrow-down-wrapper";var r=document.createElement("div");r.className="arrow-down";q.appendChild(r);this.resizeHandler.appendChild(q);this.container.appendChild(this.resizeHandler);null!=
this.container.className?this.container.className+=" va-map__wrapper_map":this.container.className="va-map__wrapper_map"}}},{key:"createResizeHandlerStyles",value:function(){this.writeStyles("resizer_handler_"+this.containerId,"#"+this.containerId+".va-map__wrapper_map .va-map__resizer-handler { display: none }@media (max-width: 767px) {#"+this.containerId+".va-map__wrapper_map { position: relative !important; border-bottom: 0; }#"+this.containerId+".va-map__wrapper_map .va-map__resizer-handler {display: block; content: ''; position: absolute; bottom: 0; cursor: s-resize;width: 100%; }#"+
this.containerId+".va-map__wrapper_map .va-map__resizer-handler .arrow-up {width: 0; height: 0; border-right: 10px solid transparent; border-left: 10px solid transparent; border-bottom: 6px solid #000000;margin-bottom: 2px; margin: 0 auto 1px; }#"+this.containerId+".va-map__wrapper_map .va-map__resizer-handler .arrow-down-wrapper {background-color: #FFFFFF; padding-top: 1px; }#"+this.containerId+".va-map__wrapper_map .va-map__resizer-handler .arrow-down {width: 0; height: 0; border-right: 10px solid transparent; border-left: 10px solid transparent; border-top: 6px solid #000000;margin: 0 auto; }#"+
this.containerId+".va-map__wrapper_map .va-map__resizer-handler .arrows-separator {height: 2px; background-color: #000000; }}")}},{key:"applyFuncionalityToResizeHandler",value:function(){if(null!=this.resizeHandler){var q=function(m){if(m instanceof MouseEvent)(b=x(m.clientY))&&v.resizingCallback&&v.resizingCallback(b);else if(m instanceof TouchEvent&&1===m.touches.length){var b;(b=x(m.touches[0].clientY))&&v.resizingCallback&&v.resizingCallback(b)}},r=function b(){window.removeEventListener("mousemove",
q);window.removeEventListener("mouseup",b);window.removeEventListener("touchmove",q);window.removeEventListener("touchend",b)},x=function(b){var f=document.body.getBoundingClientRect();b=b-(v.container.getBoundingClientRect().top-f.top)+8;if(!(null!=v.minContainerHeight&&v.minContainerHeight>b))return f=[].slice.call(v.container.classList).map(function(c){return".".concat(c)}).join("").concat("#").concat(v.containerId),v.writeStyles("map_container_"+v.containerId,"@media (max-width: 767px) { "+f+
" { height: "+b+"px !important; } }"),b},v=this;this.resizeHandler.addEventListener("mousedown",function(b){b.preventDefault();window.addEventListener("mousemove",q);window.addEventListener("mouseup",r)});this.resizeHandler.addEventListener("touchstart",function(b){b.preventDefault();window.addEventListener("touchmove",q);window.addEventListener("touchend",r)})}}},{key:"writeStyles",value:function(q,r){var x=document.getElementById(q);x&&document.getElementsByTagName("head")[0].removeChild(x);(x=
document.createElement("style")).type="text/css";x.id=q;x.styleSheet?x.styleSheet.cssText=r:x.appendChild(document.createTextNode(r));document.getElementsByTagName("head")[0].appendChild(x)}}],p(C.prototype,A),Object.defineProperty(C,"prototype",{writable:!1}),C}()},function(y,J,F){function u(r){return r&&r.__esModule?r:{default:r}}function p(r){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(x){return typeof x}:function(x){return x&&"function"==typeof Symbol&&x.constructor===
Symbol&&x!==Symbol.prototype?"symbol":typeof x})(r)}function C(r,x){for(var v=0;v<x.length;v++){var m=x[v];m.enumerable=m.enumerable||!1;m.configurable=!0;"value"in m&&(m.writable=!0);var b=Object,f=b.defineProperty;var c=m.key;a:if("object"==p(c)&&c){var d=c[Symbol.toPrimitive];if(void 0!==d){c=d.call(c,"string");if("object"!=p(c))break a;throw new TypeError("@@toPrimitive must return a primitive value.");}c=String(c)}c="symbol"==p(c)?c:String(c);f.call(b,r,c,m)}}var A=u(F(15)),q=u(F(17));String.prototype.supplant||
(String.prototype.supplant=function(r){return this.replace(/{([^{}]*)}/g,function(x,v){v=r[v];return"string"==typeof v||"number"==typeof v?v:x})});y.exports=function(){function r(v,m,b,f){var c=this;if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");!0;$("body").append(v.supplant($.extend({disabled:"",close:window.translate("close"),pathTheme:window.pathTheme,button1:window.translate("delete"),button2:window.translate("b.cancel")},m)));$("body").css("overflow","hidden");
$(".dialog-vullanar .button--close, .dialog-vullanar .button--b").on("click",function(){var d=c.onCancel();d&&"function"==typeof d.then?c.onCancel().then(function(){return c.close()}):c.close()});$(".dialog-vullanar #modal-link").on("click",function(){c.close()});$(".dialog-vullanar .button--a").on("click",function(){var d=c.onConfirm();d&&"function"==typeof d.then?c.onConfirm().then(function(){return c.close()}):c.close()});$(".dialog-vullanar .button--close").focus();q.default.setKeyboardSupportToDialog(".dialog-vullanar",
this);f&&f();b&&A.default.init()}var x;return x=[{key:"close",value:function(){var v=this,m=this.onClose();m&&"function"==typeof m.then?m.then(function(){$(".dialog-vullanar .button--close, .dialog-vullanar .button--b").off("click");$(".dialog-vullanar .button--a").off("click");$(".dialog-vullanar").remove();$("body").css("overflow","auto");$(".dialog-vullanar #modal-link").off("click");v.removeEvents()}):($(".dialog-vullanar .button--close, .dialog-vullanar .button--b").off("click"),$(".dialog-vullanar .button--a").off("click"),
$(".dialog-vullanar").remove(),$("body").css("overflow","auto"),$(".dialog-vullanar #modal-link").off("click"),this.removeEvents())}},{key:"onConfirm",value:function(){}},{key:"onCancel",value:function(){}},{key:"onClose",value:function(){}},{key:"removeEvents",value:function(){}}],C(r.prototype,x),Object.defineProperty(r,"prototype",{writable:!1}),r}()},function(y,J,F){function u(r){return r&&r.__esModule?r:{default:r}}function p(r){var x;(x=function(v){if(Array.isArray(v))return C(v)}(r))||(x="undefined"!=
typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"]?Array.from(r):void 0);if(!(r=x||function(v,m){if(v){if("string"==typeof v)return C(v,m);var b=Object.prototype.toString.call(v).slice(8,-1);return"Object"===b&&v.constructor&&(b=v.constructor.name),"Map"===b||"Set"===b?Array.from(v):"Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?C(v,m):void 0}}(r)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
return r}function C(r,x){(null==x||x>r.length)&&(x=r.length);for(var v=0,m=Array(x);v<x;v++)m[v]=r[v];return m}var A=u(F(5)),q=u(F(2));y.exports={init:function(){var r=new google.maps.Geocoder,x=new google.maps.Map(document.createElement("div")),v=(new google.maps.places.PlacesService(x),new google.maps.places.AutocompleteService({placeIdOnly:!0})),m=new google.maps.Circle({center:{lat:41.383333,lng:2.183333},radius:50}),b={closed:!0};A.default.init(".modal-autocomplete");$(".modal-autocomplete").each(function(f,
c){c=$(c);var d=!1;c.vullcomplete({html:!0,autoFocus:!0,minChars:0,minLength:0,source:A.default.throttle(function(n,k){var h=$("#"+c.attr("data-parent")+" #"+c.attr("id")).val(),l=[];h&&4<=h.length&&v.getPredictions({bounds:m.getBounds(),input:$("#"+c.attr("data-parent")+" #"+c.attr("id")).val(),componentRestrictions:{country:"es"},fields:"address_component adr_address alt_id formatted_address geometry icon id name permanently_closed photo place_id plus_code scope type url utc_offset vicinity".split(" ")},
function(z,w){w=[];for(var B in z){var G=z[B],E=G.description,I=E.toLowerCase(),H=!1,L=h.toLowerCase();h&&4<=h.length&&(-1!=I.indexOf("aero")&&-1!=I.indexOf("barcelona")&&-1==I.indexOf("t1")&&-1==I.indexOf("t2")&&-1==I.indexOf("aerob")||(H=!0),H&&w.push({label:E,valor:G,category:window.translate("search"),types:G.types}))}!L||-1==L.indexOf("aerop")&&-1==L.indexOf("airp")||-1!=L.indexOf("aeroport t")||v.getPredictions({bounds:m.getBounds(),input:"aeroport t",componentRestrictions:{country:"es"},fields:"formatted_address geometry icon id name place_id plus_code scope types".split(" ")},
function(O,N){for(var P in O){$("#"+c.attr("id")).val(h.toLowerCase());var W=O[P];N=W.description;for(var Q in W)W[Q];-1==l.findIndex(function(S){return S.valor.id==W.id})&&l.unshift({label:N,valor:W,category:window.translate("search"),types:W.types})}k(l)});l=[].concat(w,p(l));k(l)});n=JSON.parse(window.localStorage.getItem("searchHistory"))||[];(0<n.length&&(!h||0==h.length)&&(n.forEach(function(z){z.category=window.translate("lastSearchs");l.push(z)}),k(l)),"modal-trajectes-area-privada"!=c.attr("data-parent")||
h&&0!=h.length)||(n=q.default.getData(),n.search?n.data.then(function(z){z=z.filter(function(w){return w.category==window.translate("pois")});(l=[].concat(p(l),p(z)))&&0<l.length&&k(l)}):(n=n.data.filter(function(z){return z.category==window.translate("pois")}),(l=[].concat(p(l),p(n)))&&0<l.length&&k(l)))},3E3,b),open:function(n,k){b.closed=!1;n=$(".ui-autocomplete");k="".concat(window.pathTheme,"/images/powered-by-google-on-white.png");n.addClass("va-suggest");n.css({"max-width":"300px","min-width":"300px"});
n.append('\x3cli\x3e\x3cdiv class\x3d"powered-by-google-image"\x3e\x3cimg src\x3d"'+k+'" alt\x3d""\x3e\x3c/div\x3e\x3c/li\x3e');$("#tmb-maps-panel-1").css("overflow","visible")},select:function(n,k){setTimeout(function(){c.val(k.item.valor&&k.item.valor.label||k.item.label)},0);k.item.category==window.translate("search")?r.geocode({placeId:k.item.valor.place_id},function(h,l){if("OK"==l){var z=h[0];h=z.geometry.location.lng();z=z.geometry.location.lat();z=[parseFloat(h),parseFloat(z)];z=ol.proj.transform(z,
"EPSG:4326","EPSG:4326");$("#"+c.attr("data-parent")+" #"+c.attr("id")+"-lat").val(z[0]);$("#"+c.attr("data-parent")+" #"+c.attr("id")+"-lon").val(z[1]);setTimeout(function(){""!=$("#tmb-maps__origen__carrer-lng").val()&&""!=$("#tmb-maps__desti__carrer-lng").val()?($(".js-search-vullanar").prop("disabled",!1),$(".js-search-vullanar").removeClass("disabled")):($(".js-search-vullanar").prop("disabled",!0),$(".js-search-vullanar").addClass("disabled"))},200)}else console.error(l,z)}):($("#"+c.attr("data-parent")+
" #"+c.attr("id")+"-lon").val(k.item.valor.lon),$("#"+c.attr("data-parent")+" #"+c.attr("id")+"-lat").val(k.item.valor.lat),setTimeout(function(){""!=$("#tmb-maps__origen__carrer-lng").val()&&""!=$("#tmb-maps__desti__carrer-lng").val()?($(".js-search-vullanar").prop("disabled",!1),$(".js-search-vullanar").removeClass("disabled")):($(".js-search-vullanar").prop("disabled",!0),$(".js-search-vullanar").addClass("disabled"))},200));$("#"+c.attr("data-parent")+" #"+c.attr("id")).parent().removeClass("form__field__control--error").addClass("form__field__control--correct");
$("#"+c.attr("data-parent")+" #"+c.attr("id")).parent().find(".form__tooltip.form__field__control--error__tooltip").hide()},close:function(n,k){d||$("#"+c.attr("data-parent")+" #"+c.attr("id")).val("");d=!1;b.closed=!0}}).blur(function(){$("."+c.attr("id")+"-wrapper ul.ui-autocomplete li:first a").trigger("click")}).data("customVullcomplete")._renderItem=A.default.renderItem})}}},function(y,J){y.exports='\x3cdiv class\x3d"va-suggest__flyout" id\x3d"popup-autocomplete"\x3e \x3ca style\x3d"cursor:pointer" class\x3d"va-suggest__flyout-close popup-close" href\x3d"javascript: void(0)"\x3eX\x3c/a\x3e \x3ca class\x3d"button--a popup-autocomplete-button" href\x3d"javascript: void(0)" style\x3d"cursor:pointer;margin:.75rem 0;padding:.625rem 1rem;width:100%;display:inline-block;line-height:normal;text-align:center"\x3e {button1} \x3c/a\x3e \x3clabel for\x3d"va-flyout-2" class\x3d"js__va-flyout-cookie checkbox" data-cookie\x3d"va-flyout-2"\x3e\x3cinput id\x3d"va-flyout-2" type\x3d"checkbox"/\x3e{noShowAgain}\x3c/label\x3e \x3c/div\x3e '},
function(y,J,F){y.exports={getMetroLineClass:function(u){return u.split("9")[1]?"l9":u.split("10")[1]?"l10":u.toLowerCase()},formatImetroDate:function(u,p){p=parseInt((u-p)/1E3);u=p%60;p=(p-u)/60;return 0==p&&15>u?translate("imminent"):p+" min "+u+" sec"},backFocusElementId:null,setKeyboardSupportToDialog:function(u,p){u=$(u);var C=u.find("a[href], area[href], input:not([disabled]),select:not([disabled]), textarea:not([disabled]),button:not([disabled]), iframe, object, embed, *[tabindex],*[contenteditable]"),
A=C[0],q=C[C.length-1];A.focus();u.on("keydown",function(r){27===r.keyCode&&(p.cancel&&p.cancel(),p.close&&p.close(),varBackFocusDialogCallback&&varBackFocusDialogCallback());9===r.keyCode&&(r.target!==q||r.shiftKey?r.target===A&&r.shiftKey&&(r.preventDefault(),q.focus()):(r.preventDefault(),A.focus()))})}}},function(y,J,F){y.exports={prepareRoutingsObject:function(u,p,C,A,q,r,x){return{alias:u,originText:p,originPoint:{type:"Point",coordinates:[C,A]},destinationText:q,destinationPoint:{type:"Point",
coordinates:[r,x]}}},prepareLocationsObject:function(u,p,C,A,q){return{type:"Feature",geometry:{type:"Point",coordinates:[C,A]},properties:{address:p,alias:u,type:q}}}}},function(y,J,F){function u(){l("a")}function p(){l("a")}function C(){$("#edit-favourite-a-fragment").find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&($("#edit-favourite-a-fragment").find(".jotmbe__dialog__fav-switch__info-right").click(),$("#edit-favourite-a-fragment").find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&
$("#edit-favourite-a-fragment").find(".jotmbe__dialog__fav-switch__info-right").click());$('label[for\x3d"f__checkbox__4"]').hasClass("checked")||$("#f__checkbox__4").click()}function A(){l("a")}function q(){l("a")}function r(){l("a")}function x(){l("a")}function v(w){$("#edit-favourite-b-fragment").find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&($("#edit-favourite-b-fragment").find(".jotmbe__dialog__fav-switch__info-right").click(),$("#edit-favourite-b-fragment").find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&
$("#edit-favourite-b-fragment").find(".jotmbe__dialog__fav-switch__info-right").click());w&&!$('label[for\x3d"f__checkbox__3"]').hasClass("checked")&&$("#f__checkbox__3").click()}function m(){l("a")}function b(){l("a")}function f(w){w&&1<w.find(".dialog__body--jotmbe p").length&&w.find(".dialog__body--jotmbe p").eq(1).text(langJotmbeEditFavouriteStopInfo)}function c(){l("a")}function d(){l("a")}function n(){l("a")}function k(){l("a")}function h(w,B){var G=$("#error-"+B+"-fragment");w=(TMB.dialog.newModal(langJotmbeClose,
"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__error","error-"+B+"-fragment",""),0<=w.indexOf("1000"))?langJotmbeError1000:0<=w.indexOf("2000")?langJotmbeError2000:0<=w.indexOf("3000")?langJotmbeError3000:0<=w.indexOf("1001")?langJotmbeError1001:0<=w.indexOf("1002")?langJotmbeError1002:0<=w.indexOf("1003")?langJotmbeError1003:0<=w.indexOf("1004")?langJotmbeError1004:0<=w.indexOf("1005")?langJotmbeError1005:0<=w.indexOf("1006")?langJotmbeError1006:0<=w.indexOf("1007")?
langJotmbeError1007:0<=w.indexOf("1008")?langJotmbeError1008:0<=w.indexOf("4001")?langJotmbeError4001:0<=w.indexOf("4002")?langJotmbeError4002:0<=w.indexOf("4003")?langJotmbeError4003:0<=w.indexOf("4004")?langJotmbeError4004:0<=w.indexOf("4007")?langJotmbeError4007:0<=w.indexOf("2001")?langJotmbeError2001:0<=w.indexOf("2012")?langJotmbeError2012:0<=w.indexOf("2015")?langJotmbeError2015:0<=w.indexOf("2002")?langJotmbeError2002:0<=w.indexOf("2014")?langJotmbeError2014:langJotmbeErrorDESC;G.find(".dialog__body p").html(w.replace("--",
"/"))}function l(w){var B=$("#error-"+w+"-fragment");TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__error","error-"+w+"-fragment","");w=langJotmbeErrorDESC;B.find(".dialog__body p").html(w.replace("--","/"))}function z(w,B){var G=$('label[for\x3d"f__checkbox__1-1-1"]').hasClass("checked")?"ENABLED":"DISABLED",E=$('label[for\x3d"f__checkbox__1-2-1"]').hasClass("checked")?"ENABLED":"DISABLED",I=$('label[for\x3d"f__checkbox__2-1-1"]').hasClass("checked")?
"ENABLED":"DISABLED",H=JSON.parse($('label[for\x3d"weekday_0"]').attr("aria-checked"))?"ENABLED":"DISABLED",L=JSON.parse($('label[for\x3d"weekday_1"]').attr("aria-checked"))?"ENABLED":"DISABLED",O=JSON.parse($('label[for\x3d"weekday_2"]').attr("aria-checked"))?"ENABLED":"DISABLED",N=JSON.parse($('label[for\x3d"weekday_3"]').attr("aria-checked"))?"ENABLED":"DISABLED",P=JSON.parse($('label[for\x3d"weekday_4"]').attr("aria-checked"))?"ENABLED":"DISABLED",W=JSON.parse($('label[for\x3d"weekday_5"]').attr("aria-checked"))?
"ENABLED":"DISABLED",Q=JSON.parse($('label[for\x3d"weekday_6"]').attr("aria-checked"))?"ENABLED":"DISABLED",S=$('label[for\x3d"f__radio__2"]').hasClass("checked")?"TIME_INTERVAL":"ALLDAY",V=$('label[for\x3d"f__radio__2"]').hasClass("checked")?$("#f__camp__de1-1").val():"",T=$('label[for\x3d"f__radio__2"]').hasClass("checked")?$("#f__camp__fins1-1").val():"",X=$('label[for\x3d"f__radio__2"]').hasClass("checked")&&$(".form__time-range__row--2").is(":visible")?$("#f__camp__de2-1").val():"",Z=$('label[for\x3d"f__radio__2"]').hasClass("checked")&&
$(".form__time-range__row--2").is(":visible")?$("#f__camp__fins2-1").val():"";w={transport:"Metro",code:w,description:B,transportNotification:{status:"ENABLED",channelNotifications:[{channel:"APP_PUSH",status:E},{channel:"EMAIL",status:G}],unplannedNotification:{status:I,weekdayStatus:{monday:H,tuesday:L,wednesday:O,thursday:N,friday:P,saturday:W,sunday:Q},scheduleFrequency:{scheduleType:S}}}};return""!=V&&(w.transportNotification.unplannedNotification.scheduleFrequency.intervals=[],w.transportNotification.unplannedNotification.scheduleFrequency.intervals.push({startInterval:V,
endInterval:T}),""!=X&&w.transportNotification.unplannedNotification.scheduleFrequency.intervals.push({startInterval:X,endInterval:Z})),w}y.exports={addMetroLineToFavourites:function(w,B,G,E){B=B?B.replace("-","/"):"";C();var I="".concat(window.translate("favourites.edit-favourite-line-title1")).concat(" ").concat(w).concat(" ").concat(B).concat(" ").concat(window.translate("favourites.edit-favourite-line-title2")),H="".concat(window.translate("favourites.edit-favourite-line-message")),L=$("#edit-favourite-a-fragment");
L.find(".dialog__body h2").html(I);L.find(".dialog__body--jotmbe p").text(H);L.find(".dialog__body input").val(B.replace("/","-"));L.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&L.find(".jotmbe__dialog__fav-switch__info-right").click();L.find(".button--a").unbind("click");L.find(".button--a").click(function(){!function(O,N,P){var W=localStorage.getItem("kc_token"),Q=localStorage.getItem("uuid"),S={transport:"Metro",code:O,description:N};favouriteLines(Q,"POST",S,function(V){!function(T,
X,Z){if(""!=T.data.route)if((ca=$("#edit-favourite-a-fragment")).find(".dialog__body--jotmbe p").text(langJotmbeEditFavouriteLineInfo),ca.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked"))!function(ea,aa,la,ia){var ja=localStorage.getItem("kc_token"),U=localStorage.getItem("uuid");aa=z(aa,la.replace("/","--"));favouriteLineById(U,"PUT",ea,aa,function(Y){"success"==Y.status?(""!=Y.route&&(TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio",
"confirm-a-fragment",""),Y=langJotmbeSuccessCreateLine,$("#confirm-a-fragment").find(".dialog__body h2").html(Y.replace("--","/"))),$dialog.find(".jotmbe__dialog__fav-switch__info-right").click(),ia&&ia({status:data.status,id:data.data.route})):h(JSON.stringify(Y.data),"a");!0},p,ja)}(T.data.route,X.code,X.description,Z);else{TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio","confirm-a-fragment","");var ca;X=langJotmbeSuccessCreateLine;
(ca=$("#confirm-a-fragment")).find(".dialog__body h2").html(X.replace("--","/"));C();Z&&Z({status:T.status,id:T.data.route})}else h(JSON.stringify(T.data),"a")}(V,S,P)},u,W)}(w,G,E)});addClickEvent();L.find("#form__time-range__add-row").hide();L.find("#f__checkbox__3-1-1").is(":checked")||L.find("#f__checkbox__3-1-1").click()},addMetroStationToFavourites:function(w,B,G){C();var E="".concat(window.translate("favourites.edit-favourite-station-title1")).concat(" ").concat(B).concat(" ").concat(window.translate("favourites.edit-favourite-station-title2")),
I="".concat(window.translate("favourites.edit-favourite-station-message")),H=$("#edit-favourite-a-fragment");H.find(".dialog__body h2").html(E);H.find(".dialog__body--jotmbe p").text(I);H.find(".dialog__body input").val(B);H.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&H.find(".jotmbe__dialog__fav-switch__info-right").click();H.find(".button--a").unbind("click");H.find(".button--a").click(function(){!function(L,O,N){var P=localStorage.getItem("kc_token"),W=localStorage.getItem("uuid"),
Q={transport:"Metro",code:L,description:O};favouriteStops(W,"POST",Q,function(S){!function(V,T,X){if(""!=V.data.stop){var Z=$("#edit-favourite-a-fragment");(Z.find(".dialog__body--jotmbe p").text(langJotmbeEditFavouriteStationInfo),Z.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked"))?!function(ca,ea,aa,la){var ia=localStorage.getItem("kc_token"),ja=localStorage.getItem("uuid");ea=z(ea,aa.replace("/","--"));favouriteStopById(ja,"PUT",ca,ea,function(U){if("success"==U.status){if(""!=U.data.stop){TMB.dialog.newModal(langJotmbeClose,
"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio","confirm-a-fragment","");var Y=langJotmbeSuccessCreateStation;$("#confirm-a-fragment").find(".dialog__body h2").html(Y.replace("--","/"));C();la&&la({status:U.success,id:U.data.stop})}else h(JSON.stringify(U.data),"a");$dialog.find(".jotmbe__dialog__fav-switch__info-right").click()}!0},q,ia)}(V.data.stop,T.code,T.description,X):(TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio",
"confirm-a-fragment",""),T=langJotmbeSuccessCreateStation,$("#confirm-a-fragment").find(".dialog__body h2").html(T.replace("--","/")),C(),X&&X({status:V.success,id:V.data.stop}))}else h(JSON.stringify(V.data),"a")}(S,Q,N)},A,P)}(w,B,G)});addClickEvent();H.find("#form__time-range__add-row").hide();H.find("#f__checkbox__3-1-1").is(":checked")||H.find("#f__checkbox__3-1-1").click()},addBusLineToFavourites:function(w,B,G,E){v(!1);B=B.replace("-","/");var I="".concat(window.translate("favourites.edit-favourite-line-title1")).concat(" ").concat(w).concat(" ").concat(B).concat(" ").concat(window.translate("favourites.edit-favourite-line-title2")),
H=$("#edit-favourite-b-fragment");if(H.find(".dialog__body h2").html(I),H&&1<H.find(".dialog__body--jotmbe p").length)I="".concat(window.translate("favourites.edit-favourite-line-message")),H.find(".dialog__body--jotmbe p").eq(1).text(I);H.find("#p_stop").hide();H.find("#div_stop").hide();H.find(".dialog__body input").val(B.replace("/","-"));H.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&H.find(".jotmbe__dialog__fav-switch__info-right").click();H.find(".button--a").unbind("click");
H.find(".button--a").click(function(){!function(L,O,N){var P=localStorage.getItem("kc_token"),W=localStorage.getItem("uuid");favouriteLines(W,"POST",{transport:"Bus",code:L,description:O},function(Q){!function(S,V,T,X){if(""!=S.data.route)if((ca=$("#edit-favourite-b-fragment")).find(".dialog__body--jotmbe p").eq(1).text(langJotmbeEditFavouriteLineInfo),ca.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")){var Z=ca="DISABLED";$('label[for\x3d"f__checkbox__1-1"]').hasClass("checked")&&
(ca="ENABLED");$('label[for\x3d"f__checkbox__1-2"]').hasClass("checked")&&(Z="ENABLED");(function(ea,aa,la,ia,ja,U){var Y=localStorage.getItem("kc_token"),ta=localStorage.getItem("uuid");ea={transport:"Bus",code:ia,description:ja.replace("/","--"),transportNotification:{status:"ENABLED",channelNotifications:[{channel:"APP_PUSH",status:aa},{channel:"EMAIL",status:ea}]}};favouriteLineById(ta,"PUT",la,ea,function(ra){if(ra.data.route){$("#edit-favourite-b-fragment").find(".dialog__body--jotmbe p").eq(1).text(langJotmbeEditFavouriteLineInfo);
TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio","confirm-a-fragment","");var xa=langJotmbeSuccessCreateLine;$("#confirm-a-fragment").find(".dialog__body h2").html(xa.replace("--","/"));v(!1);U&&U({status:ra.status,id:ra.data.route})}else h(JSON.stringify(ra.data),"a");$dialog.find(".jotmbe__dialog__fav-switch__info-right").click();!0},x,Y)})(ca,Z,S.data.route,V,T,X)}else{TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio",
"confirm-a-fragment","");var ca;V=langJotmbeSuccessCreateLine;(ca=$("#confirm-a-fragment")).find(".dialog__body h2").html(V.replace("--","/"));v(!1);X&&X({status:S.status,id:S.data.route})}else h(S.data,"a")}(Q,L,O,N)},r,P)}(w,G,E)});H.find(".dialog__actions .button--a").hasClass("button--disabled")&&(H.find(".dialog__actions .button--a").removeClass("button--disabled"),H.find(".dialog__actions .button--a").removeAttr("disabled"));addClickEvent()},addBusStopToFavourites:function(w,B,G){v();var E=
"".concat(window.translate("favourites.edit-favourite-stop-title1")).concat(" ").concat(B).concat(" ").concat(window.translate("favourites.edit-favourite-stop-title2")),I=$("#edit-favourite-b-fragment");if(I.find(".dialog__body h2").html(E),I&&1<I.find(".dialog__body--jotmbe p").length)E="".concat(window.translate("favourites.edit-favourite-stop-message")),I.find(".dialog__body--jotmbe p").eq(1).text(E);I.find("#p_stop").show();I.find("#div_stop").show();I.find(".dialog__body input").val(B);I.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")&&
I.find(".jotmbe__dialog__fav-switch__info-right").click();I.find(".button--update").unbind("click");I.find(".button--update").click(function(){var H=$("#edit-favourite-b-fragment");f(H);H.find("#f__camp__parada-ap__2").val(B);H.find(".dialog__body input").trigger("change");!0});I.find(".button--a").unbind("click");I.find(".button--a").click(function(){!function(H,L){var O=localStorage.getItem("kc_token"),N=localStorage.getItem("uuid"),P={transport:"Bus",code:H,description:$("#edit-favourite-b-fragment #f__camp__parada-ap__2").val()};
favouriteStops(N,"POST",P,function(W){!function(Q,S,V){if(""!=Q.data.stop){var T=$("#edit-favourite-b-fragment");if(f(T),T.find("#jotmbe__dialog__fav-switch").hasClass("switch--checked")){var X=T="DISABLED";$('label[for\x3d"f__checkbox__1-1"]').hasClass("checked")&&(T="ENABLED");$('label[for\x3d"f__checkbox__1-2"]').hasClass("checked")&&(X="ENABLED");!function(Z,ca,ea,aa,la,ia){var ja=localStorage.getItem("kc_token"),U=localStorage.getItem("uuid");Z={transport:"Bus",code:aa,description:la,transportNotification:{status:"ENABLED",
channelNotifications:[{channel:"APP_PUSH",status:ca},{channel:"EMAIL",status:Z}]}};f($("#edit-favourite-b-fragment"));favouriteStopById(U,"PUT",ea,Z,function(Y){if("success"==Y.status){if(""!=Y.data.stop){TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio","confirm-a-fragment","");var ta=langJotmbeSuccessCreateStop;$("#confirm-a-fragment").find(".dialog__body h2").html(ta.replace("--","/"));v(!0);ia&&ia({status:Y.success,
id:Y.data.stop})}else h(JSON.stringify(Y.data),"a");$dialog.find(".jotmbe__dialog__fav-switch__info-right").click()}!0},b,ja)}(T,X,Q.data.stop,S.code,S.description,V)}else TMB.dialog.newModal(langJotmbeClose,"dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio","confirm-a-fragment",""),S=langJotmbeSuccessCreateStop,$("#confirm-a-fragment").find(".dialog__body h2").html(S.replace("--","/")),v(!0),V&&V({status:Q.success,id:Q.data.stop})}else h(JSON.stringify(Q.responseJSON.data),
"a")}(W,P,L)},m,O)}(w,G)});I.find(".dialog__actions .button--a").hasClass("button--disabled")&&(I.find(".dialog__actions .button--a").removeClass("button--disabled"),I.find(".dialog__actions .button--a").removeAttr("disabled"));addClickEvent()},deleteMetroLineOfFavourites:function(w,B,G,E){G=G.replace("-","/");B="".concat(langJotmbeDeleteFavouriteTitle1).concat(" ").concat(B).concat(" ").concat(G).concat(" ").concat(langJotmbeDeleteFavouriteTitle2);$("#delete-a-fragment").find(".dialog__body h2").html(B);
$("#delete-a-fragment").find(".button--a").unbind("click");$("#delete-a-fragment").find(".button--a").click(function(){!function(I,H){var L=localStorage.getItem("kc_token"),O=localStorage.getItem("uuid");favouriteLineById(O,"DELETE",I,null,function(N){if("success"==N.status){TMB.dialog.newModal(langJotmbeClose,"dialog dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__confirmacio","confirm-a-fragment","");var P=langJotmbeSuccessDeleteLines;$("#confirm-a-fragment").find(".dialog__body h2").html(P.replace("--",
"/"));H&&H({status:N.status})}else h(JSON.stringify(N.data),"a");!0},c,L)}(w,E)})},deleteMetroStationOfFavourites:function(w,B,G,E){G=G.replace("-","/");B="".concat(langJotmbeDeleteFavouriteTitle1).concat(" ").concat(G).concat(" ").concat(langJotmbeDeleteFavouriteTitle2);$("#delete-a-fragment").find(".dialog__body h2").html(B);$("#delete-a-fragment").find(".button--a").unbind("click");$("#delete-a-fragment").find(".button--a").click(function(){!function(I,H){var L=localStorage.getItem("kc_token"),
O=localStorage.getItem("uuid");favouriteLineById(O,"DELETE",I,null,function(N){if("success"==N.status){TMB.dialog.newModal(langJotmbeClose,"dialog dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__confirmacio","confirm-a-fragment","");var P=langJotmbeSuccessDeleteStation;$("#confirm-a-fragment").find(".dialog__body h2").html(P.replace("--","/"));H&&H({status:N.status})}else h(JSON.stringify(N.data),"a");!0},d,L)}(w,E)})},deleteBusLineOfFavourites:function(w,B,G,E){G=G.replace("-","/");B="".concat(langJotmbeDeleteFavouriteTitle1).concat(" ").concat(B).concat(" ").concat(G).concat(" ").concat(langJotmbeDeleteFavouriteTitle2);
$("#delete-a-fragment").find(".dialog__body h2").html(B);$("#delete-a-fragment").find(".button--a").unbind("click");$("#delete-a-fragment").find(".button--a").click(function(){!function(I,H){var L=localStorage.getItem("kc_token"),O=localStorage.getItem("uuid");favouriteLineById(O,"DELETE",I,"",function(N){if("success"==N.status){TMB.dialog.newModal(langJotmbeClose,"dialog dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__confirmacio","confirm-a-fragment","");var P=langJotmbeSuccessDeleteLines;
$("#confirm-a-fragment").find(".dialog__body h2").html(P.replace("--","/"));H&&H({status:N.status})}else h(JSON.stringify(N.data),"a");!0},n,L)}(w,E)})},deleteBusStopOfFavourites:function(w,B,G,E){G=G.replace("-","/");B="".concat(langJotmbeDeleteFavouriteTitle1).concat(" ").concat(G).concat(" ").concat(langJotmbeDeleteFavouriteTitle2);$("#delete-a-fragment").find(".dialog__body h2").html(B.replace("--","/"));$("#delete-a-fragment").find(".button--a").unbind("click");$("#delete-a-fragment").find(".button--a").click(function(){!function(I,
H){var L=localStorage.getItem("kc_token"),O=localStorage.getItem("uuid");favouriteStopById(O,"DELETE",I,"",function(N){if("success"==N.status){TMB.dialog.newModal(langJotmbeClose,"dialog dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__confirmacio","confirm-a-fragment","");var P=langJotmbeSuccessDeleteStop;$("#confirm-a-fragment").find(".dialog__body h2").html(P.replace("--","/"));H&&H({status:N.status})}else"fail"==N.responseJSON.status&&h(JSON.stringify(N.responseJSON.data),"a");!0},k,L)}(w,
E)})}}},function(y,J){y.exports='\x3cdiv class\x3d"dialog-vullanar"\x3e \x3cdiv class\x3d"backdrop"\x3e\x3c/div\x3e \x3cdiv id\x3d"dialog" class\x3d"dialog dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio" role\x3d"dialog" aria-labelledby\x3d"dialog__title" tabindex\x3d"-1" open\x3d"open" aria-modal\x3d"true"\x3e \x3cheader class\x3d"dialog__header"\x3e \x3cbutton class\x3d"button button--icon button--close" type\x3d"button"\x3e \x3cimg src\x3d"{pathTheme}/images/basic/16px/svg/close.svg" alt\x3d"{close}" title\x3d"{close}"\x3e \x3c/button\x3e \x3c/header\x3e \x3cdiv class\x3d"dialog__container is-fragment"\x3e \x3cdiv class\x3d"spinner" style\x3d"display:none"\x3e\x3c/div\x3e \x3cdiv id\x3d"confirm-a-fragment" class\x3d""\x3e \x3cdiv class\x3d"dialog__icon"\x3e \x3cimg src\x3d"{icon}" alt\x3d""\x3e \x3c/div\x3e \x3cdiv class\x3d"dialog__body dialog__body--jotmbe"\x3e \x3ch2\x3e{text1}\x3c/h2\x3e \x3cp\x3e{text2} \x3ca style\x3d"cursor:pointer" id\x3d"modal-link" title\x3d"Els meus favorits"\x3e{favourites}\x3c/a\x3e \x3c/p\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e'},
function(y,J){y.exports='\x3cdiv class\x3d"dialog-vullanar"\x3e \x3cdiv class\x3d"backdrop"\x3e\x3c/div\x3e \x3cdiv id\x3d"modal-trajectes-area-privada" class\x3d"dialog dialog--jotmbe dialog--jotmbe__with-actions" role\x3d"dialog" aria-labelledby\x3d"dialog__title" aria-modal\x3d"true"\x3e \x3cheader class\x3d"dialog__header"\x3e \x3cbutton title\x3d"{close}" class\x3d"button button--icon button--close" type\x3d"button"\x3e \x3cimg class\x3d"js-image-hover" src\x3d"{pathTheme}/images/basic/16px/svg/close.svg" alt\x3d"{close}" title\x3d"{close}"\x3e \x3c/button\x3e \x3c/header\x3e \x3cdiv class\x3d"dialog__icon"\x3e \x3cimg src\x3d"{pathTheme}/images/jotmbe/48px/svg/48px_Trajecte_gris.svg" alt\x3d""\x3e \x3c/div\x3e \x3cdiv class\x3d"dialog__body dialog__body--jotmbe"\x3e \x3ch2\x3e{text1}\x3c/h2\x3e \x3c/div\x3e \x3cform action\x3d"#" class\x3d"form form--validate"\x3e \x3cdiv class\x3d"dialog__form dialog__form--centered"\x3e \x3cdiv class\x3d"form__field"\x3e \x3cdiv class\x3d"form__field__label"\x3e \x3clabel class\x3d"label-icon label-icon--place" for\x3d"f__camp__trajectes__1"\x3e{origen}*\x3c/label\x3e \x3c/div\x3e \x3cdiv class\x3d"form__field__control"\x3e \x3cinput title\x3d"{origen}" data-parent\x3d"modal-trajectes-area-privada" class\x3d"modal-autocomplete" required\x3d"required" placeholder\x3d"{carrerOrLoc}" aria-labelledby\x3d"f__camp__trajectes__1__ajuda" id\x3d"f__camp__trajectes__1" type\x3d"text"\x3e \x3cinput type\x3d"hidden" id\x3d"f__camp__trajectes__1-lat"\x3e \x3cinput type\x3d"hidden" id\x3d"f__camp__trajectes__1-lon"\x3e \x3c/div\x3e \x3c/div\x3e \x3cdiv class\x3d"form__field"\x3e \x3cdiv class\x3d"form__field__label"\x3e \x3clabel class\x3d"label-icon label-icon--place" for\x3d"f__camp__trajectes__2"\x3e{desti}*\x3c/label\x3e \x3c/div\x3e \x3cdiv class\x3d"form__field__control"\x3e \x3cinput title\x3d"{desti}" data-parent\x3d"modal-trajectes-area-privada" class\x3d"modal-autocomplete" required\x3d"required" placeholder\x3d"{carrerOrLoc}" aria-labelledby\x3d"f__camp__trajectes__2__ajuda" id\x3d"f__camp__trajectes__2" type\x3d"text"\x3e \x3cinput type\x3d"hidden" id\x3d"f__camp__trajectes__2-lat"\x3e \x3cinput type\x3d"hidden" id\x3d"f__camp__trajectes__2-lon"\x3e \x3c/div\x3e \x3c/div\x3e \x3cdiv class\x3d"form__field form__field--alias has-tip"\x3e \x3cdiv class\x3d"form__field__label"\x3e \x3clabel for\x3d"f__camp__trajectes__3"\x3e{text3}*\x3c/label\x3e \x3c/div\x3e \x3cdiv class\x3d"form__field__control"\x3e \x3cinput title\x3d"{text3}" aria-labelledby\x3d"f__camp__trajectes__3__ajuda" id\x3d"f__camp__trajectes__3" type\x3d"text" maxlength\x3d"95" required\x3d"required"\x3e \x3c/div\x3e \x3csmall class\x3d"form__field--alias__tip" id\x3d"f__camp__3__ajuda"\x3e{text2}\x3c/small\x3e \x3c/div\x3e \x3c/div\x3e \x3cfooter class\x3d"dialog__footer dialog__footer--jotmbe"\x3e \x3cdiv class\x3d"dialog__actions"\x3e \x3cbutton title\x3d"{button1}" class\x3d"button button--a {disabled}" {disabled} type\x3d"submit"\x3e{button1}\x3c/button\x3e \x3cbutton title\x3d"{button2}" class\x3d"button button--b" type\x3d"button"\x3e{button2}\x3c/button\x3e \x3c/div\x3e \x3c/footer\x3e \x3c/form\x3e \x3c/div\x3e \x3c/div\x3e'},
function(y,J){y.exports='\x3cdiv class\x3d"dialog-vullanar"\x3e \x3cdiv class\x3d"backdrop"\x3e\x3c/div\x3e \x3cdiv id\x3d"modal-llocs-area-privada" class\x3d"dialog dialog--jotmbe dialog--jotmbe__with-actions" role\x3d"dialog" aria-labelledby\x3d"dialog__title" aria-modal\x3d"true"\x3e \x3cheader class\x3d"dialog__header"\x3e \x3cbutton class\x3d"button button--icon button--close" type\x3d"button"\x3e \x3cimg class\x3d"js-image-hover" src\x3d"{pathTheme}/images/basic/16px/svg/close.svg" alt\x3d"{close}" title\x3d"{close}"\x3e \x3c/button\x3e \x3c/header\x3e \x3cdiv class\x3d"dialog__icon"\x3e \x3cimg src\x3d"{pathTheme}/images/jotmbe/48px/svg/48px_Lloc_gris.svg" alt\x3d""\x3e \x3c/div\x3e \x3cdiv class\x3d"dialog__body dialog__body--jotmbe"\x3e \x3ch2\x3e{text1}\x3c/h2\x3e \x3c/div\x3e \x3cform action\x3d"#" class\x3d"form form--validate"\x3e \x3cdiv class\x3d"dialog__form dialog__form--centered"\x3e \x3cdiv class\x3d"form__field"\x3e \x3cdiv class\x3d"form__field__label"\x3e \x3clabel class\x3d"label-icon label-icon--place" for\x3d"f__camp__llocs-ap__1"\x3e{text2}\x3c/label\x3e \x3c/div\x3e \x3cdiv class\x3d"form__field__control"\x3e \x3cinput title\x3d"{carrerOrLoc}" data-parent\x3d"modal-llocs-area-privada" required\x3d"required" placeholder\x3d"{carrerOrLoc}" aria-labelledby\x3d"f__camp__llocs-ap__1__ajuda" id\x3d"f__camp__llocs-ap__1" type\x3d"text" class\x3d"modal-autocomplete"\x3e \x3cinput type\x3d"hidden" id\x3d"f__camp__llocs-ap__1-lat"\x3e \x3cinput type\x3d"hidden" id\x3d"f__camp__llocs-ap__1-lon"\x3e \x3c/div\x3e \x3c/div\x3e \x3cfieldset class\x3d"option-group option-group--v"\x3e \x3cul class\x3d"option-group__items option-group__items--h option-group__items--pois"\x3e \x3cli class\x3d"option-group__item"\x3e \x3clabel for\x3d"f__camp-llocs_poi_1" class\x3d"radio checked"\x3e \x3cinput title\x3d"{rb1}" data-val\x3d"ALTRES" data-alias\x3d"" id\x3d"f__camp-llocs_poi_1" name\x3d"f__camp-llocs_poi" type\x3d"radio" class\x3d"checked" checked\x3d"checked"\x3e {rb1} \x3c/label\x3e \x3c/li\x3e \x3cli class\x3d"option-group__item"\x3e \x3clabel for\x3d"f__camp-llocs_poi_2" class\x3d"radio"\x3e \x3cinput title\x3d"{rb2}" data-val\x3d"CASA" data-alias\x3d"{rb2}" id\x3d"f__camp-llocs_poi_2" name\x3d"f__camp-llocs_poi" type\x3d"radio"\x3e {rb2} \x3c/label\x3e \x3c/li\x3e \x3cli class\x3d"option-group__item"\x3e \x3clabel for\x3d"f__camp-llocs_poi_3" class\x3d"radio"\x3e \x3cinput title\x3d"{rb3}" data-val\x3d"FEINA" data-alias\x3d"{rb3}" id\x3d"f__camp-llocs_poi_3" name\x3d"f__camp-llocs_poi" type\x3d"radio"\x3e {rb3} \x3c/label\x3e \x3c/li\x3e \x3c/ul\x3e \x3c/fieldset\x3e \x3cdiv class\x3d"form__field form__field--alias has-tip"\x3e \x3cdiv class\x3d"form__field__label"\x3e \x3clabel for\x3d"f__camp__llocs-ap__2"\x3e{alias}\x3c/label\x3e \x3c/div\x3e \x3cdiv class\x3d"form__field__control"\x3e \x3cinput aria-labelledby\x3d"f__camp__llocs-ap__2__ajuda" id\x3d"f__camp__llocs-ap__2" maxlength\x3d"95" type\x3d"text"\x3e \x3c/div\x3e \x3csmall class\x3d"form__field--alias__tip" id\x3d"f__camp__llocs-ap__2__ajuda"\x3e{text3}\x3c/small\x3e \x3c/div\x3e \x3c/div\x3e \x3cfooter class\x3d"dialog__footer dialog__footer--jotmbe"\x3e \x3cdiv class\x3d"dialog__actions"\x3e \x3cbutton title\x3d"{button1}" class\x3d"button button--a" type\x3d"submit"\x3e{button1}\x3c/button\x3e \x3cbutton title\x3d"{button2}" class\x3d"button button--b" type\x3d"button"\x3e{button2}\x3c/button\x3e \x3c/div\x3e \x3c/footer\x3e \x3c/form\x3e \x3c/div\x3e \x3c/div\x3e'},
function(y,J){y.exports='\x3cdiv class\x3d"dialog-vullanar"\x3e \x3cdiv class\x3d"backdrop"\x3e\x3c/div\x3e \x3cdiv id\x3d"exit-dialog" style\x3d"padding-bottom:0" class\x3d"dialog dialog--jotmbe dialog--jotmbe__no-footer dialog--jotmbe__no-icon dialog--jotmbe__confirmacio" role\x3d"dialog" aria-labelledby\x3d"dialog__title" tabindex\x3d"-1" open\x3d"open" aria-modal\x3d"true"\x3e \x3cdiv id\x3d"modal-exit" role\x3d"dialog" aria-labelledby\x3d"dialog__title" aria-modal\x3d"true"\x3e \x3cheader class\x3d"dialog__header"\x3e\x3cbutton class\x3d"button button--icon button--close" type\x3d"button"\x3e\x3cimg src\x3d"{pathTheme}/images/basic/16px/svg/close.svg" alt\x3d"{close}" title\x3d"{close}"\x3e\x3c/button\x3e\x3c/header\x3e \x3cdiv class\x3d"dialog__body dialog__body--jotmbe" style\x3d"margin-top:0"\x3e \x3ch2\x3e{attention}\x3c/h2\x3e \x3cp style\x3d"color:#656565;font-style:italic;font-size:.875rem;line-height:1.125rem"\x3e{text1}\x3c/p\x3e \x3c/div\x3e \x3clabel style\x3d"margin-left:40px" for\x3d"va-flyout-3" class\x3d"js__va-flyout-cookie checkbox" data-cookie\x3d"va-flyout-3"\x3e {noShowAgain} \x3c/label\x3e \x3cfooter class\x3d"dialog__footer dialog__footer--jotmbe"\x3e \x3cdiv class\x3d"dialog__actions"\x3e \x3cbutton title\x3d"{accept}" class\x3d"button button--a" type\x3d"submit"\x3e{accept}\x3c/button\x3e \x3cbutton title\x3d"{cancel}" class\x3d"button button--b" type\x3d"button"\x3e{cancel}\x3c/button\x3e \x3c/div\x3e \x3c/footer\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e'},
function(y,J){y.exports='\x3cdiv class\x3d"dialog-vullanar"\x3e \x3cdiv class\x3d"backdrop"\x3e\x3c/div\x3e \x3cdiv id\x3d"dialog-choose" class\x3d"dialog dialog--jotmbe dialog--jotmbe__no-icon dialog--jotmbe__confirmacio" role\x3d"dialog" aria-labelledby\x3d"dialog__title" tabindex\x3d"-1" open\x3d"open" aria-modal\x3d"true"\x3e \x3cheader class\x3d"dialog__header"\x3e \x3cbutton class\x3d"button button--icon button--close" type\x3d"button"\x3e \x3cimg src\x3d"{pathTheme}/images/basic/16px/svg/close.svg" alt\x3d"{close}" title\x3d"{close}"\x3e \x3c/button\x3e \x3c/header\x3e \x3cdiv class\x3d"dialog__container is-fragment"\x3e \x3cdiv class\x3d"spinner" style\x3d"display:none"\x3e\x3c/div\x3e \x3cdiv id\x3d"confirm-a-fragment" class\x3d""\x3e \x3cdiv class\x3d"dialog__icon"\x3e \x3cimg src\x3d"{icon}" alt\x3d""\x3e \x3c/div\x3e \x3cdiv class\x3d"dialog__body dialog__body--jotmbe"\x3e \x3ch2\x3e{text1}\x3c/h2\x3e \x3cp\x3e{text2}\x3c/p\x3e \x3c/div\x3e \x3cfooter class\x3d"dialog__footer dialog__footer--jotmbe"\x3e \x3cdiv class\x3d"dialog__actions"\x3e \x3cbutton title\x3d"{button1}" class\x3d"button button--a" type\x3d"submit"\x3e{button1}\x3c/button\x3e \x3cbutton title\x3d"{button2}" class\x3d"button button--b" type\x3d"button"\x3e{button2}\x3c/button\x3e \x3c/div\x3e \x3c/footer\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e'},
function(y,J){y.exports='\x3cdiv class\x3d"dialog-vullanar"\x3e \x3cdiv class\x3d"backdrop"\x3e\x3c/div\x3e \x3cdiv id\x3d"dialog" class\x3d"dialog dialog--jotmbe dialog--jotmbe__a dialog--jotmbe__timetable" role\x3d"dialog" aria-modal\x3d"true" aria-labelledby\x3d"dialog__title" tabindex\x3d"-1" open\x3d"open"\x3e \x3cheader class\x3d"dialog__header"\x3e \x3cbutton class\x3d"button button--icon button--close" type\x3d"button"\x3e \x3cimg class\x3d"js-image-hover" src\x3d"{pathTheme}/images/basic/16px/svg/close.svg" alt\x3d"Tancar" title\x3d"Tancar"/\x3e \x3c/button\x3e \x3c/header\x3e \x3cdiv class\x3d"dialog__body dialog__body--jotmbe"\x3e \x3ch2\x3e{title}\x3c/h2\x3e \x3cdiv class\x3d"dialog__content"\x3e {content} \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e'},
function(y,J){y.exports='\x3cdiv class\x3d"dialog-vullanar"\x3e \x3cdiv class\x3d"backdrop"\x3e\x3c/div\x3e \x3cdiv id\x3d"dialog" class\x3d"dialog dialog--jotmbe dialog--jotmbe__a dialog--jotmbe__timetable" role\x3d"dialog" aria-labelledby\x3d"dialog__title" tabindex\x3d"-1" aria-modal\x3d"true" open\x3d"open"\x3e \x3cheader class\x3d"dialog__header"\x3e \x3cbutton class\x3d"button button--icon button--close" type\x3d"button"\x3e \x3cimg class\x3d"js-image-hover" src\x3d"{pathTheme}/images/basic/16px/svg/close.svg" alt\x3d"Tancar" title\x3d"Tancar"/\x3e \x3c/button\x3e \x3c/header\x3e \x3cdiv class\x3d"dialog__body dialog__body--jotmbe"\x3e \x3ch2\x3e{title}\x3c/h2\x3e \x3cdiv class\x3d"dialog__content"\x3e {content} \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e'},
function(y,J,F){function u(m){return m&&m.__esModule?m:{default:m}}function p(m){var b;(b=function(f){if(Array.isArray(f))return C(f)}(m))||(b="undefined"!=typeof Symbol&&null!=m[Symbol.iterator]||null!=m["@@iterator"]?Array.from(m):void 0);if(!(m=b||function(f,c){if(f){if("string"==typeof f)return C(f,c);var d=Object.prototype.toString.call(f).slice(8,-1);return"Object"===d&&f.constructor&&(d=f.constructor.name),"Map"===d||"Set"===d?Array.from(f):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?
C(f,c):void 0}}(m)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return m}function C(m,b){(null==b||b>m.length)&&(b=m.length);for(var f=0,c=Array(b);f<b;f++)c[f]=m[f];return c}var A=u(F(2)),q=u(F(5)),r=u(F(0)),x=u(F(3)),v={closed:!0};y.exports={init:function(){$(window).on("load",function(){if(q.default.init(".all-autocomplete"),void 0!==google.maps.places){var m=new google.maps.Geocoder,
b=new google.maps.places.AutocompleteService({placeIdOnly:!0}),f=new google.maps.Circle({center:{lat:41.383333,lng:2.183333},radius:50});$(".all-autocomplete").each(function(c,d){d=$(d);var n=!1;d.vullcomplete({html:!0,autoFocus:!0,minChars:0,minLength:0,source:q.default.throttle(function(k,h){var l=$("#"+d.attr("id")).val(),z=[];l&&4<=l.length&&b.getPredictions({bounds:f.getBounds(),input:$("#"+d.attr("id")).val(),componentRestrictions:{country:"es"},fields:"address_component adr_address alt_id formatted_address geometry icon id name permanently_closed photo place_id plus_code scope type url utc_offset vicinity".split(" ")},
function(w,B){B=[];for(var G in w){var E=w[G],I=E.description,H=I.toLowerCase(),L=!1,O=l.toLowerCase();l&&4<=l.length&&(-1!=H.indexOf("aero")&&-1!=H.indexOf("barcelona")&&-1==H.indexOf("t1")&&-1==H.indexOf("t2")&&-1==H.indexOf("aerob")||(L=!0),L&&B.push({label:I,valor:E,category:window.translate("search"),types:E.types}))}!O||-1==O.indexOf("aerop")&&-1==O.indexOf("airp")||-1!=O.indexOf("aeroport t")||b.getPredictions({bounds:f.getBounds(),input:"aeroport t",componentRestrictions:{country:"es"},fields:"formatted_address geometry icon id name place_id plus_code scope types".split(" ")},
function(N,P){for(var W in N){$("#"+d.attr("id")).val(l.toLowerCase());var Q=N[W];P=Q.description;for(var S in Q)Q[S];-1==z.findIndex(function(V){return V.valor.id==Q.id})&&z.unshift({label:P,valor:Q,category:window.translate("search"),types:Q.types})}z&&0<z.length&&h(z)});(z=[].concat(B,p(z)))&&0<z.length&&h(z)});k=JSON.parse(window.localStorage.getItem("searchHistory"))||[];(0<k.length&&(!l||0==l.length)&&(k.forEach(function(w){w.category=window.translate("lastSearchs");z.push(w)}),z&&0<z.length&&
h(z)),!x.default.getLogin(!1)||l&&0!=l.length)||(k=A.default.getData(),k.search?k.data.then(function(w){(z=[].concat(p(z),p(w)))&&0<z.length&&h(z)}):(z=[].concat(p(z),p(k.data)))&&0<z.length&&h(z));l&&4<=l.length&&window.geoWrapper.service.searchStations($("#"+d.attr("id")).val()).then(function(w){var B=[];w.forEach(function(G){var E,I=(E=G.properties.TIPUS_ELEMENT)&&1<E.length?E.charAt(0).toUpperCase()+E.slice(1):E;E="Estacions"===I&&B.find(function(H){return H.valor.code===G.properties.CODI_ELEMENT});
"Linies"==I||"Accessos"==I||"Intercanviadors"==I||E||B.push({label:G.properties.NOM_ELEMENT+" ("+G.properties.CODI_ELEMENT+")",valor:{code:G.properties.CODI_ELEMENT,icon:"PARADA"===G.properties.PICTO?"Bus-Parada":G.properties.PICTO},category:window.translate(I)})});(z=[].concat(p(z),p(B.sort(function(G,E){return G.last_nom>E.last_nom?1:E.last_nom>G.last_nom?-1:0}))))&&0<z.length&&h(z)})},3E3,v),open:function(k,h){v.closed=!1;k=$(".ui-autocomplete");h="".concat(window.pathTheme,"/images/powered-by-google-on-white.png");
k.addClass("va-suggest");k.css({"max-width":"300px","min-width":"300px"});k.append('\x3cli\x3e\x3cdiv class\x3d"powered-by-google-image"\x3e\x3cimg src\x3d"'+h+'" alt\x3d""\x3e\x3c/div\x3e\x3c/li\x3e');$("#tmb-maps-panel-1").css("overflow","visible")},select:function(k,h){n=!0;var l=-1!=d.attr("id").indexOf("origen")?"origin":"desti";if(h.item){switch(h.item.category){case window.translate("search"):q.default.setSearch(k,h,m,d);r.default[l]="search";break;case window.translate("pois"):q.default.setPoi(k,
h.item,d);r.default[l]="pois";break;case window.translate("Parades"):q.default.setStop(k,h.item,d);r.default[l]="search";break;case window.translate("Estacions"):q.default.setStation(k,h.item,d);r.default[l]="search";break;case window.translate("lastSearchs"):q.default.setHistory(k,h.item,d);r.default[l]="search";break;default:q.default.setTraject(k,h.item,d),r.default[l]="traject"}d.change()}},close:function(k,h){n||$("#"+d.attr("id")).val("");n=!1;v.closed=!0}}).blur(function(){$("."+d.attr("id")+
"-wrapper ul.ui-autocomplete li:first a").trigger("click")}).data("customVullcomplete")._renderItem=q.default.renderItem})}})}}},function(y,J,F){y.exports={setJourneyPageTitle:function(u,p,C){var A=null;u&&0<u.trim().length&&(p&&0<p.trim().length?A=TMB.l10n.vullanar.get("page.header.title.journeyLabel")+" "+u+" - "+p:C&&(A=TMB.l10n.vullanar.get("page.header.title.journeyNearLabel")+" "+u));this.setPageTitle(A)},setPageTitle:function(u){var p=TMB.l10n.vullanar.get("page.header.title.platformName"),
C=TMB.l10n.vullanar.get("page.header.title.separator");null!=u&&0<u.trim().length?(null==window.originalTitle&&(window.originalTitle=document.title),document.title=u+" "+C+" "+p):null!=window.originalTitle&&0<window.originalTitle.trim().length?document.title=window.originalTitle:document.title=p}}}])});
function initSearchImetro(){function a(d){var c=[],b;for(b in d)"estacions"==d[b].properties.TIPUS_ELEMENT&&0!=c.length&&"estacions"==c[c.length-1].properties.TIPUS_ELEMENT?c[c.length-1].properties.CODI_ELEMENT!=d[b].properties.CODI_ELEMENT&&c.push(d[b]):c.push(d[b]);return c}$("#imetro-search-input").on("input",function(){$("#button-imetro-search__direct").addClass("button--disabled");$("#button-imetro-search__direct").attr("disabled","disabled")});$("#imetro-search-input").autocomplete({autoFocus:!0,
focus:function(d,c){d=$("#imetro-search-input").css("width");$(".form-field--autosuggest-imetro .ui-autocomplete").css("max-width",d);$(".form-field--autosuggest-imetro .ui-autocomplete").css("min-width",d)},source:function(d,c){var b=!1;"favorites"==d.term?"undefined"!==typeof favoriteStopsiBusiMetro&&0<favoriteStopsiBusiMetro.length&&""==$("#imetro-search-input").val()&&c($.map(favoriteStopsiBusiMetro,function(f){if("Metro"===f.transport)return b=!0,{entity:"Favorites",icon:"",name:f.description,
code:f.code,type:f.transport,tag:""}})):$.getJSON(varDomain+"/itransit/nearby/search?\x26app_key\x3d"+varTmbApiKey+"\x26app_id\x3d"+varTmbApiId+"\x26transit_namespace\x3dmetro\x26q\x3d"+d.term,function(f){var g=!1;c($.map(a(f.features),function(e){const h=capitalizeFirstLetter(e.properties.TIPUS_ELEMENT);if("Estacions"==h)return g=!0,{entity:h,icon:"PARADA"===e.properties.PICTO?"Bus-Parada":e.properties.PICTO,name:e.properties.NOM_ELEMENT,code:e.properties.CODI_ELEMENT,type:e.properties.SUBTIPUS_ELEMENT,
tag:e.properties.DESC_ELEMENT?e.properties.NOM_ELEMENT+": "+e.properties.DESC_ELEMENT:e.properties.CODI_ELEMENT+": "+e.properties.NOM_ELEMENT}}));g||""==$("#imetro-search-input").val()||($("#tmb-maps-panel-4 .tmb-maps-text-err").show(),$("#label-codi-imetro").css("color","#E20110"),$("#imetro-search-input").css("border","1px solid #E20110"))});b&&($("#tmb-maps-panel-4 .tmb-maps-text-err").hide(),$("#label-codi-imetro").css("color","#656565"),$("#imetro-search-input").css("border","1px solid transparent"))},
messages:{noResults:"",results:function(){}},select:function(d,c){$("#imetro-search-input").val(c.item.name.trim());$("#tmb-maps__imetro__codi").val(c.item.code);d=c.item.icon.split("L");d.shift();var b=c.item.icon;-1<b.indexOf("L9N")?(line="94",lineName="L9N"):-1<b.indexOf("L10N")?(line="104",lineName="L10N"):-1<b.indexOf("L9S")?(line="91",lineName="L9S"):-1<b.indexOf("L10S")?(line="101",lineName="L10S"):"FM"===b?(line="99",lineName="FM"):(line=d[0],lineName="L"+line);stopNameMetro=c.item.name.trim()+
" ("+c.item.code+")";$("#tmb-maps__imetro__line").val(line);$("#tmb-maps__imetro__stop__name").val(stopNameMetro);$("#tmb-maps__imetro__line__name").val(lineName);0<$("#button-imetro-search__direct").length&&(c=getMetroLineURL(),""!=c?($("#button-imetro-search__direct").attr("onclick","location.href\x3d'"+c+"';"),$("#button-imetro-search__direct").removeClass("button--disabled"),$("#button-imetro-search__direct").removeAttr("disabled")):($("#button-imetro-search__direct").addClass("button--disabled"),
$("#button-imetro-search__direct").attr("disabled","disabled")));0<$("#button-imetro-search__next").length&&$("#button-imetro-search__next").click();return!1},appendTo:".form__field.form-field--autosuggest-imetro"}).bind("focus",function(){$(this).autocomplete("search","favorites")}).data("ui-autocomplete")._renderItem=function(d,c){if("Estacions"==c.entity||"Favorites"==c.entity){var b=c.icon.split("L");b.shift();var f="";if(""!=b)for(var g in b)f=b[g].split("9")[1]?f+('\x3cspan style\x3d"margin-right: 5px;" class\x3d"line line--suffixed line--l9"\x3e\x3cspan class\x3d"line__name"\x3eL9\x3c/span\x3e\x3cspan class\x3d"line__suffix"\x3e'+
b[g].split("9")[1]+"\x3c/span\x3e\x3c/span\x3e "):b[g].split("10")[1]?f+('\x3cspan style\x3d"margin-right: 5px;" class\x3d"line line--suffixed line--l10"\x3e\x3cspan class\x3d"line__name"\x3eL10\x3c/span\x3e\x3cspan class\x3d"line__suffix"\x3e'+b[g].split("10")[1]+"\x3c/span\x3e\x3c/span\x3e "):f+('\x3cspan style\x3d"margin-right: 5px;" class\x3d"line line--l'+b[g].toLowerCase()+'"\x3eL'+b[g]+"\x3c/span\x3e ");else f='\x3cspan\x3e\x3cimg style\x3d"vertical-align: middle; margin-right: 4px;" src\x3d"'+
pathImages+'/gallery_pages/24px/png/metro_dist_hover.png"/\x3e\x3c/span\x3e';b=c.name.trim()+" "}c.url="#";d.addClass("form__field__datalist datalist");d.attr("aria-live","polite");d.attr("aria-relevant","additions");"Favorites"==c.entity?(g='\x3cdiv id\x3d"title-favorites-imetro"\x3e\x3cp style\x3d"margin-left: 15px; color: #656565;"\x3e'+favStationsTitle+"\x3c/p\x3e\x3c/div\x3e",0>=$("#title-favorites-imetro").length&&$(".form-field--autosuggest-imetro .ui-autocomplete").prepend(g)):0<$("#title-favorites-imetro").length&&
$("#title-favorites-imetro").remove();return $('\x3cli class\x3d"datalist__item"\x3e\x3c/li\x3e').data("item.autocomplete",c).append('\x3ca href\x3d"#"\x3e'+f+" "+b+"\x3c/a\x3e").appendTo(d)};$("#tmb-maps__imetro__linia").on("change",function(){var d=$(this).find("option:selected").data("nomlinia");initLiniaMetro(d,$(this).val())});$("#tmb-maps__imetro__parada").on("change",updateButtonStateMetro);$("#tmb-maps__jotmbe__metro__estacion").on("change",updateButtonStateMetro);$("#tmb-maps__imetro__codi").on("keyup",
updateButtonStateMetro);$("#tmb-maps__imetro__opcio__linia").on("change",function(){inicializeTrasportInputsMetro();$("#origen-tab-metro").val(2)});$("#tmb-maps__imetro__opcio__linia:checked").on("change",function(){inicializeTrasportInputsMetro();$("#origen-tab-metro").val(2)});$("#tmb-maps__imetro__opcio__codi").on("change",function(){$("#origen-tab-metro").val(1);updateButtonStateMetro()})}function capitalizeFirstLetter(a){return a&&1<a.length?a.charAt(0).toUpperCase()+a.slice(1):a}
function updateButtonStateMetro(){if("1"===$("#origen-tab-metro").val()){var a;codiStop=(a=TJS.velocity.getCookie("JoTMBeKCSession")?$("#tmb-maps__jotmbe__metro__estacion").val():$("#tmb-maps__imetro__codi").val())?a:""}else codiStop=(a=$("#tmb-maps__imetro__parada").val())&&"0"!==a?a:"";toggleButtonMetro(codiStop)}
function toggleButtonMetro(a){a?($("#button-imetro-search__next").removeClass("button--disabled"),$("#button-imetro-search__next").removeAttr("disabled")):($("#button-imetro-search__next").addClass("button--disabled"),$("#button-imetro-search__next").attr("disabled","disabled"))}
function goToResultsMetro(){if("1"===$('[name\x3d"tmb-imetro__tipus-cerca"]:checked').val()){var a=$("#tmb-maps__imetro__codi").val();var d=$("#tmb-maps__imetro__line__name").val();a||=$("#tmb-maps__jotmbe__metro__estacion").val()}else a=$("#tmb-maps__imetro__parada").val(),d=$("#tmb-maps__imetro__linia").find("option:selected").data("nomlinia");localStorage.setItem("favouriteCodeMetro",a);window.location=iMetroResultsUrl+"/-/lineametro/"+d+"/estacion-imetro/"+a}
function calcLineIcon(a){return a.split("9")[1]?'\x3cspan class\x3d"line line--suffixed line--l9"\x3e\x3cspan class\x3d"line__name"\x3eL9\x3c/span\x3e\x3cspan class\x3d"line__suffix"\x3e'+a.split("9")[1]+"\x3c/span\x3e\x3c/span\x3e":a.split("10")[1]?'\x3cspan class\x3d"line line--suffixed line--l10"\x3e\x3cspan class\x3d"line__name"\x3eL10\x3c/span\x3e\x3cspan class\x3d"line__suffix"\x3e'+a.split("10")[1]+"\x3c/span\x3e\x3c/span\x3e":'\x3cspan class\x3d"line line--'+a.toLowerCase()+'"\x3e'+a+"\x3c/span\x3e"}
function inicializeTrasportInputsMetro(){jQuery.ajax({url:apiGisTransit+"/linies/metro/?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26propertyName\x3dID_LINIA,CODI_LINIA,NOM_LINIA,DESC_LINIA,ORIGEN_LINIA,DESTI_LINIA,COLOR_LINIA,COLOR_TEXT_LINIA,ID_OPERADOR,ORDRE_FAMILIA,NOM_TIPUS_TRANSPORT\x26sortBy\x3dORDRE_LINIA",type:"GET",dataType:"json",async:!0,success:function(a){var d=!0,c="",b;for(b in a.features)d&&(initLiniaMetro(a.features[b].properties.NOM_LINIA,a.features[b].properties.CODI_LINIA),
d=!1),c+='\x3coption value\x3d"'+a.features[b].properties.CODI_LINIA+'" data-nomlinia\x3d"'+a.features[b].properties.NOM_LINIA+'"\x3e'+a.features[b].properties.NOM_LINIA+"  "+a.features[b].properties.DESC_LINIA+"\x3c/option\x3e";$("#tmb-maps__imetro__linia").html(c);$("#tmb-maps__imetro__codi").removeAttr("required");TMB.customInput.init()}})}
function initLiniaMetro(a,d){jQuery.ajax({url:apiGisTransit+"/linies/metro/nom/"+a+"/estacions?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26cql_filter\x3d\x26sortBy\x3dORDRE_ESTACIO\x26propertyName\x3dNOM_ESTACIO,CODI_LINIA,ORDRE_ESTACIO,CODI_ESTACIO,ID_TIPUS_ACCESSIBILITAT,NOM_LINIA,COLOR_LINIA,CODI_GRUP_ESTACIO,GEOMETRY",type:"GET",dataType:"json",async:!0,success:function(c){var b={},f=[];f.push($("\x3coption\x3e",{value:"",disabled:"disabled",selected:"true",text:langSelectStation}));
for(var g in c.features){var e=c.features[g].properties,h=$("\x3coption\x3e",{value:e.CODI_ESTACIO,text:e.NOM_ESTACIO+" ("+e.CODI_ESTACIO+")"});b[e.CODI_ESTACIO]||(f.push(h),b[e.CODI_ESTACIO]=e.NOM_ESTACIO)}$("#tmb-maps__imetro__parada option:gt(0)").remove();$("#tmb-maps__imetro__parada").html(f);$("#tmb-maps__imetro__parada").change();TMB.customInput.init()}})};
var codeLocated=null,codeLocatedBus=null,map=null,view,locatedPosition,markersVullAnarLayer,overlayFeatureDiv=document.getElementsByClassName("tmbPopup")[0],overlayFeatureType=null,overlayFeature=new ol.Overlay({positioning:"top-right",offset:[-18,-15]}),featureInfo=null,affectacionsType=null,affectacionsWhereItIs=null,arr_coord=[],iconFeature=null,olMapDiv;if("undefined"===typeof varDomain)var varDomain="https://api.tmb.cat/v1";if("undefined"===typeof apiGisTransit)var apiGisTransit=varDomain;
var urlServerMapsWFS=varDomain+"/maps/wfs",urlServerMapsWMS=["https://api1.tmb.cat/v1/maps/wms","https://api2.tmb.cat/v1/maps/wms","https://api3.tmb.cat/v1/maps/wms"],limit={accessos_fisics_over:[2500,50],accessos_over:[15E3,2500],estacions_linia_over:[15E3,50],estacions_over:[5E4,15E3],parades_actives_over:[25E3,50]};
function initCurrentGeolocation(a){navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition(function(b){localStorage.origin=a;onGetCurrentGeolocationPosition(b,urlGis)},function(b){switch(b.code){case b.PERMISSION_DENIED:$(".dialog__container").html(langErrorPermissionDenied);break;case b.POSITION_UNAVAILABLE:$(".dialog__container").html(langErrorPositionUnavailable);break;case b.PERMISSION_DENIED_TIMEOUT:$(".dialog__container").html(langErrorPermissionTimeout);break;case b.UNKNOWN_ERROR:$(".dialog__container").html(langErrorUnknown);
break;case b.TIMEOUT:$(".dialog__container").html(langErrorPermissionDenied)}},{enableHighAccuracy:!0,timeout:5E3}):error("Geo Location is not supported")}
function onGetCurrentGeolocationPosition(a,b){TMB.dialog.newModal(langJotmbeClose,"dialog--medium","initgeo-fragment","");dialog=$("#initgeo-fragment");dialog.find(".form__actions .button--a").attr("onclick","javascript:setValues("+a.coords.latitude+","+a.coords.longitude+");");null==map&&(initializeMap(b),b=new ol.style.Style({image:new ol.style.Icon({anchor:[.5,25],anchorXUnits:"fraction",anchorYUnits:"pixels",src:pathTheme+"/images/A.png"}),zIndex:1E3}),iconFeature.setStyle(b),b=new ol.source.Vector({features:[iconFeature]}),
b=new ol.layer.Vector({source:b,name:"mark"}),map.addLayer(b),b=ol.proj.transform([a.coords.longitude,a.coords.latitude],"EPSG:4326","EPSG:3857"),iconFeature.setGeometry(new ol.geom.Point(b)),getAddressFromLatLang(a.coords.latitude,a.coords.longitude),map.on("singleclick",function(c){locatedPosition=c.coordinate;var f=ol.proj.transform(locatedPosition,"EPSG:3857","EPSG:4326");iconFeature.setGeometry(new ol.geom.Point(c.coordinate));getAddressFromLatLang(f[1],f[0])}))}
function showValueLocatedPoint(a){$(".dialog__container #street_name").html(a)}
function initializeMap(a){var b=document.getElementById("map");a=a+"/maps/vts/xyz/tmb-basic/{z}/{x}/{y}.png?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey;view=new ol.View({minZoom:11,maxZoom:20});a=new ol.layer.Tile({title:"TMB Carto",type:"base",source:new ol.source.XYZ({url:a})});wmsFons=new ol.layer.Tile({source:new ol.source.TileWMS({params:{LAYERS:"PARADES_ACTIVES,ESTACIONS_I_ACCESSOS",FORMAT:"image/png",VERSION:"1.1.1",buffer:10,app_key:varTmbApiKey,app_id:varTmbApiId},urls:urlServerMapsWMS}),
minResolution:scale2Resolution("50","EPSG:3857"),maxResolution:scale2Resolution("50000","EPSG:3857")});var c=createMouseOverLayer();map=new ol.Map({layers:[a,wmsFons,c],interactions:ol.interaction.defaults({altShiftDragRotate:!1,dragPan:!1,rotate:!1}).extend([new ol.interaction.DragPan({kinetic:null})]),target:b,view,logo:!1});view.setCenter([243182.4475019037,5068818.472291455]);view.setZoom(13);markersVullAnarLayer=new ol.layer.Vector({source:new ol.source.Vector({}),opacity:1,visible:!0});markersVullAnarLayer.name=
"MARKERS_VULLANAR";map.addLayer(markersVullAnarLayer)}function initGeo2Medium(a){TMB.dialog.newModal(langJotmbeClose,"dialog--medium","initgeo-fragment","");dialog=$("#initgeo-fragment");dialog.find(".form__actions .button--a").attr("onclick",'javascript:setValueLocatedPoint("'+a+'");');TMB.mapMobile.init()}
function initGeo2Large(a){TMB.dialog.newModal(langJotmbeClose,"dialog--large","initgeo-fragment","");dialog=$("#initgeo-fragment");dialog.find(".form__actions .button--a").attr("onclick",'javascript:setValueLocatedPoint("'+a+'");');TMB.mapMobile.init()}
function getAddressFromLatLang(a,b){var c=new google.maps.Geocoder;a=new google.maps.LatLng(a,b);c.geocode({latLng:a},function(f,d){d==google.maps.GeocoderStatus.OK?f[0]&&showValueLocatedPoint(f[0].formatted_address):console.log("Geocode was not successful for the following reason: "+d)})}
function initMapUbicaMapa(){if(null==map){initializeMap();iconFeature=new ol.Feature({name:"Null Island",population:4E3,rainfall:500});var a=new ol.style.Style({image:new ol.style.Icon({anchor:[.5,25],anchorXUnits:"fraction",anchorYUnits:"pixels",src:pathTheme+"/images/A.png"}),zIndex:1E3});iconFeature.setStyle(a);a=new ol.source.Vector({features:[iconFeature]});a=new ol.layer.Vector({source:a,name:"mark"});map.addLayer(a);map.on("singleclick",function(b){locatedPosition=b.coordinate;var c=ol.proj.transform(locatedPosition,
"EPSG:3857","EPSG:4326");iconFeature.setGeometry(new ol.geom.Point(b.coordinate));getAddressFromLatLang(c[1],c[0])})}}function scale2Resolution(a,b){b=ol.proj.get(b).getUnits();return a/(25.4/.28*ol.proj.METERS_PER_UNIT[b]*39.37)}
function createMouseOverLayer(){var a=new ol.Collection,b=["ACCESSOS_FISICS","ACCESSOS","ESTACIONS_LINIA","ESTACIONS","PARADES_ACTIVES"],c=[[220,36,31,.01],[159,197,77,.01],[137,71,150,.01],[0,171,255,.01],[255,219,0,.01]],f=[254,254,254,.01],d;for(d in b){var g=b[d],e=g+"_OVER",h=urlServerMapsWFS+"?app_key\x3d"+varTmbApiKey+"\x26app_id\x3d"+varTmbApiId+"\x26REQUEST\x3dGetFeature\x26TYPENAME\x3d"+g+"\x26outputFormat\x3djson\x26srsName\x3dEPSG:3857";"PARADES_ACTIVES"==g&&(h+="\x26CQL_FILTER\x3dTIPIFICACIO_PARADA NOT IN ('X')");
g=new ol.layer.Vector({source:new ol.source.Vector({url:h,format:new ol.format.GeoJSON}),minResolution:scale2Resolution(limit[e.toLowerCase()][1],"EPSG:3857"),maxResolution:scale2Resolution(limit[e.toLowerCase()][0],"EPSG:3857"),style:new ol.style.Style({image:new ol.style.Circle({radius:6,fill:new ol.style.Fill({color:c[d]}),stroke:new ol.style.Stroke({color:f,width:2})})})});g.name=e;a.push(g)}return new ol.layer.Group({layers:a})}
function showPopup(a){$(overlayFeatureDiv).hide();overlayFeatureType="feature";var b=a.geometry.coordinates;changeOverlayData(a);$(overlayFeatureDiv).show();overlayFeature.setPosition(b)}function fitCoords(a,b,c){"EPSG:3857"!=b&&(a=ol.proj.transform(a,b,"EPSG:3857"));b=map.getSize();b=[parseInt(2*(b[0]-0)/3),parseInt(b[1]/3)];map.getView().centerOn(a,map.getSize(),b);c&&"number"==typeof c&&map.getView().getZoom()>c&&map.getView().setZoom(c)}
function changeOverlayData(a){featureInfo={type:a.properties.NOM_ACCES?"access":a.properties.NOM_ESTACIO?"metro":"bus",title:a.properties.NOM_ACCES?a.properties.NOM_ACCES:a.properties.NOM_ESTACIO?a.properties.NOM_ESTACIO:a.properties.NOM_PARADA,stopCode:a.properties.CODI_PARADA?a.properties.CODI_PARADA:-1,viewMore:a.properties.NOM_ACCES?!1:!0,viewMoreUrl:"/"+a.properties.MODE+"/"+("metro"==a.properties.MODE?"estacio/":"parada/")+("metro"==a.properties.MODE?a.properties.CODI_ESTACIO?a.properties.CODI_ESTACIO:
a.properties.ID_ESTACIO:a.properties.CODI_PARADA),access:a.properties.ID_TIPUS_ACCESSIBILITAT&&3!=a.properties.ID_TIPUS_ACCESSIBILITAT,lift:a.properties.NUM_ASCENSORS&&0<a.properties.NUM_ASCENSORS||a.properties.ID_TIPUS_ACCES&&3==a.properties.ID_TIPUS_ACCES,lines:"undefined"!==typeof a.properties.LINES?a.properties.LINES.sort(function(b,c){var f=13<=b.ORDRE_FAMILIA?13:b.ORDRE_FAMILIA,d=13<=c.ORDRE_FAMILIA?13:c.ORDRE_FAMILIA;return f==d?b.CODI_LINIA-c.CODI_LINIA:f-d}):{},info:{},position:ol.proj.transform(a.geometry.coordinates,
"EPSG:23031","EPSG:3857")};"access"===featureInfo.type?(affectacionsType="Metro",affectacionsWhereItIs="Vinyeta Acc\u00e9s Metro"):"metro"===featureInfo.type?(affectacionsType="Metro",affectacionsWhereItIs="Vinyeta Estaci\u00f3 Metro"):(affectacionsType="Bus",affectacionsWhereItIs="Vinyeta Parada Bus");setInfoPopup()}
function setInfoPopup(){var a=getTmbTypeClass();$(".panel.panel-default").addClass(a);a=getStopIcon();$(".icons").removeClass().addClass("icons "+a);a=$(".tmbPopup-heading-txt");a.empty();$("\x3cp\x3e",{"class":"panel-title",text:featureInfo.title}).appendTo(a);-1!==featureInfo.stopCode&&$("\x3cspan\x3e",{text:"Parada "+featureInfo.stopCode}).appendTo(a)}
function getTmbTypeClass(){return featureInfo.type&&"tmb"==featureInfo.type?"tmbPopup-tmb":featureInfo.type&&"pois"==featureInfo.type?"tmbPopup-pois":""}function getStopIcon(){return"bus"==featureInfo.type?"bus-red-icon":"metro"==featureInfo.type||"access"==featureInfo.type?"metro-red-icon":"tmb"==featureInfo.type?"tmb-point-vermell-icon":"loading"==featureInfo.type?"":"turistic-point-vermell-icon"}
function closePopup(){$(overlayFeatureDiv).hide();$(overlayFeatureDiv).find(".tmbPopup-heading-txt").empty();overlayFeatureType=null}
function initiBus(){var a=$(".dialog__container #map")[0],b="https://api.tmb.cat/v1/maps/vts/xyz/tmb-basic/{z}/{x}/{y}.png?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey;view=new ol.View({maxZoom:21});b=new ol.layer.Tile({title:"TMB Carto",type:"base",source:new ol.source.XYZ({url:b})});wmsFons=new ol.layer.Tile({source:new ol.source.TileWMS({params:{LAYERS:"PARADES_ACTIVES,ESTACIONS_I_ACCESSOS",FORMAT:"image/png",VERSION:"1.1.1",buffer:10,app_key:varTmbApiKey,app_id:varTmbApiId},urls:urlServerMapsWMS}),
minResolution:scale2Resolution("50","EPSG:3857"),maxResolution:scale2Resolution("50000","EPSG:3857")});map=new ol.Map({layers:[b,wmsFons],interactions:ol.interaction.defaults({altShiftDragRotate:!1,dragPan:!1,rotate:!1}).extend([new ol.interaction.DragPan({kinetic:null})]),target:a,view,logo:!1});view.setCenter([243182.4475019037,5068818.472291455]);view.setZoom(13);markersVullAnarLayer=new ol.layer.Vector({source:new ol.source.Vector({}),opacity:1,visible:!0});markersVullAnarLayer.name="MARKERS_VULLANAR";
map.addLayer(markersVullAnarLayer)}function initChooseLocation(){$("#modalText").text(langMapModalSelectPositionText)}
function initMapiBusCurrentGeoLocation(){navigator&&navigator.geolocation?(navigator.geolocation.getCurrentPosition(function(a){onGetMapiBusCurrentGeolocationPosition(a)},function(a){switch(a.code){case a.PERMISSION_DENIED:$(".dialog__container").html(langErrorPermissionDenied);break;case a.POSITION_UNAVAILABLE:$(".dialog__container").html(langErrorPositionUnavailable);break;case a.PERMISSION_DENIED_TIMEOUT:$(".dialog__container").html(langErrorPermissionTimeout);break;case a.UNKNOWN_ERROR:$(".dialog__container").html(langErrorUnknown);
break;case a.TIMEOUT:$(".dialog__container").html(langErrorPermissionDenied)}},{enableHighAccuracy:!0,timeout:5E3}),$("#modalText").text(langMapModalCurrentPositionText)):error("Geo Location is not supported")}
function onGetMapiBusCurrentGeolocationPosition(a){initMapiBus();initMapiBusLocateMap();getAddressFromLatLang(a.coords.latitude,a.coords.longitude);var b=ol.proj.transform([a.coords.longitude,a.coords.latitude],"EPSG:4326","EPSG:3857");iconFeature.setGeometry(new ol.geom.Point(b));view.setCenter([b[0],b[1]]);view.setZoom(18);showStops([a.coords.longitude,a.coords.latitude])}function initMapiBus(){$(".dialog__container").html($("#ibus-dialog-maps").html())}
function initMapiBusLocateMap(){initiBus();iconFeature=new ol.Feature({name:"Null Island",population:4E3,rainfall:500});var a=new ol.style.Style({image:new ol.style.Icon({anchor:[.5,25],anchorXUnits:"fraction",anchorYUnits:"pixels",src:pathTheme+"/images/A.png"}),zIndex:1E3});iconFeature.setStyle(a);a=new ol.source.Vector({features:[iconFeature]});a=new ol.layer.Vector({source:a,name:"mark"});map.addLayer(a);map.on("singleclick",function(b){locatedPosition=ol.proj.transform(b.coordinate,"EPSG:3857",
"EPSG:4326");iconFeature.setGeometry(new ol.geom.Point(b.coordinate));getAddressFromLatLang(locatedPosition[1],locatedPosition[0]);showStops(locatedPosition)})}
function showStops(a){jQuery.ajax({url:apiGisTransit+"/elements/superficie/"+a[0]+"/"+a[1]+"/200?app_key\x3d"+varTmbApiKey+"\x26app_id\x3d"+varTmbApiId,type:"GET",dataType:"json",success:function(b){var c=[],f=[],d=!0,g='\x3cdiv class\x3d"holder holder--near-transports"\x3e\x3ctable class\x3d"near-transports" summary\x3d"Sumari de la taula"\x3e\x3ccaption class\x3d"near-transports__caption"\x3e'+transportNear+'\x3c/caption\x3e\x3cthead class\x3d"near-transports__head"\x3e\x3ctr\x3e\x3cth scope\x3d"col"\x3e'+
lines+'\x3c/th\x3e\x3cth scope\x3d"col"\x3e'+langLocation+'\x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3ctbody class\x3d"near-transports__body"\x3e',e;for(e in b.features)if(2==b.features[e].properties.CODI_TIPUS){d&&(codeLocated=b.features[e].properties.CODI,d=!1);var h=b.features[e].properties.NOM.replace("'","\\'");g+='\x3ctr\x3e\x3cth class\x3d"near-transports__lines" scope\x3d"row"\x3e\x3cul class\x3d"lines" id\x3d"ul_'+b.features[e].properties.CODI+'"\x3e\x3c/ul\x3e\x3c/th\x3e\x3ctd\x3e';g+='\x3ca href\x3d"javascript:void(0);" onclick\x3d"showStopData(\''+
e+"', '"+h+"', '"+b.features[e].properties.CODI+'\');" \x3e\x3cdl class\x3d"near-transports__route"\x3e\x3cdt class\x3d"near-transports__route__address"\x3e'+b.features[e].properties.NOM+" ("+b.features[e].properties.CODI+')\x3c/dt\x3e\x3cdd class\x3d"near-transports__route__directions"\x3eA '+Math.round(b.features[e].properties.DISTANCE_IN_METERS)+" m.\x3c/dd\x3e\x3c/dl\x3e\x3c/a\x3e\x3c/td\x3e\x3c/tr\x3e";c.push(b.features[e].properties.CODI_TIPUS+","+b.features[e].properties.CODI);f.push(b.features[e].geometry.coordinates)}g+=
"\x3c/tbody\x3e\x3c/table\x3e\x3c/div\x3e";$(".dialog__container #panel-stops").html(g);initStopsData(c);setCoordinatesStop(f)}})}function setCoordinatesStop(a){arr_coord=a}
function showStopData(a,b,c){a=a?a:0;var f=ol.proj.transform(arr_coord[a],"EPSG:4326","EPSG:3857");view.setCenter([f[0],f[1]]);view.setZoom(18);$(".dialog__container #street_name").html("S'ha seleccionat la parada \x3cb\x3e"+b+"\x3c/b\x3e");a=ol.proj.transform(arr_coord[a],"EPSG:4326","EPSG:3857");iconFeature.setGeometry(new ol.geom.Point(a));codeLocated=c}
function initStopsData(a){for(var b,c,f=0;f<a.length;f++)parada_key=a[f].split(","),b=parada_key[1],jQuery.ajax({url:apiGisTransit+"/linies/bus/parades/"+b+"?app_id\x3d"+varTmbApiId+"\x26app_key\x3d"+varTmbApiKey+"\x26cql_filter\x3d(CODI_FAMILIA+IN+(1,3,5,6,7,11))\x26sortBy\x3dSENTIT,ORDRE\x26srsName\x3dEPSG:3857",type:"GET",dataType:"json",async:!0,success:function(d){c="";for(var g in d.features)c+='\x3cli class\x3d"lines__item"\x3e\x3cspan class\x3d"line line--bus line--bus-'+d.features[g].properties.NOM_LINIA.charAt(0).toLowerCase()+
'"\x3e'+d.features[g].properties.NOM_LINIA+"\x3c/span\x3e\x3c/li\x3e";0<d.features.length&&void 0!=d.features[g]&&$("#ul_"+d.features[g].properties.CODI_PARADA).html(c)}})}function setValueCodeLocated(){null!=codeLocated&&($("#tmb-ibus__codi").val(codeLocated),TMB.dialog.close(),$("#tmb-ibus__codi").focusout(),$("#tmb-ibus__codi").focus());$("#tmb-ibus__opcio__linia:checked")&&($("#tmb-ibus__opcio__codi").click(),TMB.customInput.init())}
function suggestedLocationSuccess(a){var b=$(".tmb-maps__form--vull-anar .form__field"),c="",f="",d="",g;for(g in a.data.pois){var e=a.data.pois[g],h="";h=e.properties.alias?e.properties.alias:e.properties.address;d="CASA"===e.properties.type?d+('\x3cli class\x3d"datalist__item datalist__item--home" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+e.properties.address+"','"+e.properties.alias+"','"+e.geometry.coordinates+'\');" aria-label\x3d"'+langHome+'"\x3e'+h+" \x3c/a\x3e\x3c/li\x3e"):
"FEINA"===e.properties.type?d+('\x3cli class\x3d"datalist__item datalist__item--work" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+e.properties.address+"','"+e.properties.alias+"','"+e.geometry.coordinates+'\');" aria-label\x3d"'+langWork+'"\x3e'+h+" \x3c/a\x3e\x3c/li\x3e"):d+('\x3cli class\x3d"datalist__item datalist__item--place" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:selectPlace(\''+e.properties.address+"','"+e.properties.alias+"','"+e.geometry.coordinates+'\');" aria-label\x3d"'+
e.properties.alias+'"\x3e'+h+" \x3c/a\x3e\x3c/li\x3e")}""!=d&&(c='\x3cul class\x3d"form__field__datalist form__field__datalist--suggested datalist jotmbe-suggested-location" role\x3d"list"\x3e \x3cli class\x3d"datalist__item datalist__item--get-location" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:void(0);" aria-label\x3d"'+langCurrentLocation+'"\x3e'+langCurrentLocation+' \x3c/a\x3e\x3c/li\x3e\x3cli class\x3d"datalist__item datalist__item--title"\x3e'+langMyPlaces+"\x3c/li\x3e"+d+"\x3c/ul\x3e",
f='\x3cul class\x3d"form__field__datalist form__field__datalist--suggested datalist jotmbe-suggested-location" role\x3d"list"\x3e\x3cli class\x3d"datalist__item datalist__item--title"\x3e'+langMyPlaces+"\x3c/li\x3e"+d+"\x3c/ul\x3e",b.find("input[type\x3dtext]").on("focus",function(k){$(".form__field__datalist--suggested.jotmbe-suggested-location").remove();$(".suggest-active").removeClass("suggest-active");$(this).parents(".form__field--suggest-location").addClass("suggest-active");1>$(this).parents(".form__field--suggest-location").find(".form__field__datalist--suggested.jotmbe-suggested-location").length&&
(1==$(this).parents(".form__field--suggest-location").data("suggestfull")?$(this).parent().append(c):2==$(this).parents(".form__field--suggest-location").data("suggestfull")?$(this).parent().append(f):3==$(this).parents(".form__field--suggest-location").data("suggestfull")&&$(this).parent().append(c));$(this).parents(".form__field__control").removeClass("form__field__control--error").find("form__tooltip").remove();$(this).parents(".form__field--suggest-location").on("focusout",function(l){$(l.target).closest(".form__field--suggest-location").hasClass("suggest-active")||
($(".suggest-active").removeClass("suggest-active"),$(this).find(".form__field__datalist--suggested.jotmbe-suggested-location").remove())})}));$("body").on("click focusin",function(k){$(".suggest-active").length&&1>$(k.target).parents(".suggest-active").length&&($(".form__field__datalist--suggested.jotmbe-suggested-location").remove(),$(".suggest-active").removeClass("suggest-active"))});b.find("input[type\x3dtext]").on("keypress",function(k){$(this).parents(".form__field--suggest-location").find(".form__field__datalist--suggested.jotmbe-suggested-location").remove()});
b.on("mousedown",".datalist__item--get-location",function(k){k.preventDefault()}).on("click",".datalist__item--get-location",function(){initGeoSuggestedLocation();0===$(this).parents("form__field__control").find("form__field__control--error__tooltip").length&&$(this).parents(".form__field__control").append("").children(":last").hide().fadeIn(400,function(){$("#errorbox-1").click(function(k){$(this).is(":visible")&&$(this).fadeOut(400,function(){$(".suggest-active").removeClass("suggest-active");$(this).remove()})})})})}
function suggestedLocationError(){console.error("Error getting pois info")}var token=localStorage.getItem("kc_token");function suggestedLocation(){$(".tmb-maps__form--vull-anar .form__field");var a=localStorage.getItem("uuid");locations(a,"GET",null,suggestedLocationSuccess,suggestedLocationError,token)}
function initGeoSuggestedLocation(){navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition(function(a){successSuggestedLocation(a)},function(a){switch(a.code){case a.PERMISSION_DENIED:console.log(langErrorPermissionDenied);break;case a.POSITION_UNAVAILABLE:console.log(langErrorPositionUnavailable);break;case a.PERMISSION_DENIED_TIMEOUT:console.log(langErrorPermissionTimeout);break;case a.UNKNOWN_ERROR:console.log(langErrorUnknown);break;case a.TIMEOUT:console.log(langErrorPermissionDenied)}},
{enableHighAccuracy:!0,timeout:5E3}):error("Geo Location is not supported")}
function successSuggestedLocation(a){var b=new google.maps.Geocoder,c=new google.maps.LatLng(a.coords.latitude,a.coords.longitude);b.geocode({latLng:c},function(f,d){d==google.maps.GeocoderStatus.OK?f[0]&&(d=ol.proj.transform([a.coords.longitude,a.coords.latitude],"EPSG:4326","EPSG:3857"),$(".suggest-active").find("input[type\x3dtext]").val(f[0].formatted_address),$(".suggest-active").find("input[type\x3dhidden]").eq(0).val(d[0]),$(".suggest-active").find("input[type\x3dhidden]").eq(1).val(d[1]),
$(".form__field__datalist--suggested.jotmbe-suggested-location").remove()):console.log("Geocode was not successful for the following reason: "+d)})};
