1/*! For license information please see coordinates-picker.2c29f083.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7231],{47902:(t,e,n)=>{n.r(e),n.d(e,{default:()=>Q});var r=n(53481),o=n.n(r);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,s(t,e)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function c(t,e,n){return c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&s(o,n.prototype),o},c.apply(null,arguments)}function u(t,e,n,r){void 0===e&&(e=""),void 0===r&&(r={});var o=document.createElement(t);return e&&(o.className=e),Object.keys(r).forEach((function(t){if("function"==typeof r[t]){var e=0===t.indexOf("on")?t.substr(2).toLowerCase():t;o.addEventListener(e,r[t])}else"html"===t?o.innerHTML=r[t]:"text"===t?o.innerText=r[t]:o.setAttribute(t,r[t])})),n&&n.appendChild(o),o}function l(t){t.preventDefault(),t.stopPropagation()}var h=function(){return[].slice.call(arguments).filter(Boolean).join(" ").trim()};function f(t,e){t&&t.classList&&(Array.isArray(e)?e:[e]).forEach((function(e){t.classList.contains(e)||t.classList.add(e)}))}function p(t,e){t&&t.classList&&(Array.isArray(e)?e:[e]).forEach((function(e){t.classList.contains(e)&&t.classList.remove(e)}))}var d,m,v=13,y=40,g=38,b=[v,27,y,g,37,39],w=function(){function t(t){var e=this,n=t.handleSubmit,r=t.searchLabel,o=t.classNames,i=void 0===o?{}:o;this.container=void 0,this.form=void 0,this.input=void 0,this.handleSubmit=void 0,this.hasError=!1,this.container=u("div",h("geosearch",i.container)),this.form=u("form",["",i.form].join(" "),this.container,{autocomplete:"none",onClick:l,onDblClick:l,touchStart:l,touchEnd:l}),this.input=u("input",["glass",i.input].join(" "),this.form,{type:"text",placeholder:r||"search",onInput:this.onInput,onKeyUp:function(t){return e.onKeyUp(t)},onKeyPress:function(t){return e.onKeyPress(t)},onFocus:this.onFocus,onBlur:this.onBlur,onClick:function(){e.input.focus(),e.input.dispatchEvent(new Event("focus"))}}),this.handleSubmit=n}var e=t.prototype;return e.onFocus=function(){f(this.form,"active")},e.onBlur=function(){p(this.form,"active")},e.onSubmit=function(t){try{var e=this;return l(t),p(n=e.container,"error"),f(n,"pending"),Promise.resolve(e.handleSubmit({query:e.input.value})).then((function(){p(e.container,"pending")}))}catch(t){return Promise.reject(t)}var n},e.onInput=function(){this.hasError&&(p(this.container,"error"),this.hasError=!1)},e.onKeyUp=function(t){27===t.keyCode&&(p(this.container,["pending","active"]),this.input.value="",document.body.focus(),document.body.blur())},e.onKeyPress=function(t){t.keyCode===v&&this.onSubmit(t)},e.setQuery=function(t){this.input.value=t},t}(),E=function(){function t(t){var e=this,n=t.handleClick,r=t.classNames,o=void 0===r?{}:r,i=t.notFoundMessage;this.handleClick=void 0,this.selected=-1,this.results=[],this.container=void 0,this.resultItem=void 0,this.notFoundMessage=void 0,this.onClick=function(t){if("function"==typeof e.handleClick){var n=t.target;if(n&&e.container.contains(n)&&n.hasAttribute("data-key")){var r=Number(n.getAttribute("data-key"));e.handleClick({result:e.results[r]})}}},this.handleClick=n,this.notFoundMessage=i?u("div",h(o.notfound),void 0,{html:i}):void 0,this.container=u("div",h("results",o.resultlist)),this.container.addEventListener("click",this.onClick,!0),this.resultItem=u("div",h(o.item))}var e=t.prototype;return e.render=function(t,e){var n=this;void 0===t&&(t=[]),this.clear(),t.forEach((function(t,r){var o=n.resultItem.cloneNode(!0);o.setAttribute("data-key",""+r),o.innerHTML=e({result:t}),n.container.appendChild(o)})),t.length>0?(f(this.container.parentElement,"open"),f(this.container,"active")):this.notFoundMessage&&(this.container.appendChild(this.notFoundMessage),f(this.container.parentElement,"open")),this.results=t},e.select=function(t){return Array.from(this.container.children).forEac
vendor: 5,884 bytes, line 2
2h((function(e,n){return n===t?f(e,"active"):p(e,"active")})),this.selected=t,this.results[t]},e.count=function(){return this.results?this.results.length:0},e.clear=function(){for(this.selected=-1;this.container.lastChild;)this.container.removeChild(this.container.lastChild);p(this.container.parentElement,"open"),p(this.container,"active")},t}(),L={position:"topleft",style:"button",showMarker:!0,showPopup:!1,popupFormat:function(t){return""+t.result.label},resultFormat:function(t){return""+t.result.label},marker:{icon:r&&r.Icon?new r.Icon.Default:void 0,draggable:!1},maxMarkers:1,maxSuggestions:5,retainZoomLevel:!1,animateZoom:!0,searchLabel:"Enter address",clearSearchLabel:"Clear search",notFoundMessage:"",messageHideDelay:3e3,zoomLevel:18,classNames:{container:"leaflet-bar leaflet-control leaflet-control-geosearch",button:"leaflet-bar-part leaflet-bar-part-single",resetButton:"reset",msgbox:"leaflet-bar message",form:"",input:"",resultlist:"",item:"",notfound:"leaflet-bar-notfound"},autoComplete:!0,autoCompleteDelay:250,autoClose:!1,keepResult:!1,updateMap:!0,resetButton:"Ã"},k="Leaflet must be loaded before instantiating the GeoSearch control",C={options:i({},L),classNames:i({},L.classNames),initialize:function(t){var e,n,o,a,s=this;if(!r)throw new Error(k);if(!t.provider)throw new Error("Provider is missing from options");this.options=i({},L,t),this.classNames=i({},this.classNames,t.classNames),this.markers=new r.FeatureGroup,this.classNames.container+=" leaflet-geosearch-"+this.options.style,this.searchElement=new w({searchLabel:this.options.searchLabel,classNames:{container:this.classNames.container,form:this.classNames.form,input:this.classNames.input},handleSubmit:function(t){return s.onSubmit(t)}}),this.button=u("a",this.classNames.button,this.searchElement.container,{title:this.options.searchLabel,href:"#",onClick:function(t){return s.onClick(t)}}),r.DomEvent.disableClickPropagation(this.button),this.resetButton=u("button",this.classNames.resetButton,this.searchElement.form,{text:this.options.resetButton,"aria-label":this.options.clearSearchLabel,onClick:function(){""===s.searchElement.input.value?s.close():s.clearResults(null,!0)}}),r.DomEvent.disableClickPropagation(this.resetButton),this.options.autoComplete&&(this.resultList=new E({handleClick:function(t){var e=t.result;s.searchElement.input.value=e.label,s.onSubmit({query:e.label,data:e})},classNames:{resultlist:this.classNames.resultlist,item:this.classNames.item,notfound:this.classNames.notfound},notFoundMessage:this.options.notFoundMessage}),this.searchElement.form.appendChild(this.resultList.container),this.searchElement.input.addEventListener("keyup",(e=function(t){return s.autoSearch(t)},void 0===(n=this.options.autoCompleteDelay)&&(n=250),void 0===o&&(o=!1),function(){var t=[].slice.call(arguments);a&&clearTimeout(a),a=setTimeout((function(){a=null,o||e.apply(void 0,t)}),n),o&&!a&&e.apply(void 0,t)}),!0),this.searchElement.input.addEventListener("keydown",(function(t){return s.selectResult(t)}),!0),this.searchElement.input.addEventListener("keydown",(function(t){return s.clearResults(t,!0)}),!0)),this.searchElement.form.addEventListener("click",(function(t){t.preventDefault()}),!1)},onAdd:function(t){var e=this.options,n=e.showMarker,o=e.style;if(this.map=t,n&&this.markers.addTo(t),"bar"===o){var i=t.getContainer().querySelector(".leaflet-control-container");this.container=u("div","leaflet-control-geosearch leaflet-geosearch-bar"),this.container.appendChild(this.searchElement.form),i.appendChild(this.container)}return r.DomEvent.disableClickPropagation(this.searchElement.form),this.searchElement.container},onRemove:function(){var t;return null==(t=this.container)||t.remove(),this},open:function(){var t=this.searchElement,e=t.input;f(t.container,"active"),e.focus()},close:function(){p(this.searchElement.container,"active"),this.clearResults()},onClick:function(t){t.preventDefault(),t.stopPropagation(),this.searchElement.container.classList.contains("active")?this.close():this.open()},selectResult:function(t){if(-1!==[v,y,g].indexOf(t.keyCode))if(t.preventDefault(),t.keyCode!==v){var e=this.resultList.count()-1;if(!(e<0)){var n=this.resultList.selected,r=t.keyCode===y?n+1:n-1,o=this.resultList.select(r<0?e:r>e?0:r);this.searchElement.input.value=o.label}}else{var i=this.resultList.select(this.resultList.selected);this.onSubmit({query:this.searchElement.input.value,data:i})}},clearResults:function(t,e){if(void 0===e&&(e=!1),!t||27===t.keyCode){var n=this.options,r=n.autoComplete;!e&&n.keepResult||(this.searchElement.input.value="",this.markers.clearLayers()),r&&this.resultList.clear()}},autoSearch:function(t){try{var e=this;if(b.indexOf(t.keyCode)>-1)return Promise.resolve();var n=t.target.value,r=e.options.provider,o=function(){if(n.length)return Promise.resolve(r.search({query:n})).then((function(t){t=t.slice(0,e.options.maxSuggestions),e.resultList.render(t,e.options.resultFormat)}));e.resultList.clear()}();return Promise.resolve(o&&o.then?o.then((function(){})):void 0)}catch(t){return Promise.reject(t)}},onSubmit:function(t){try{var e=this;return e.resultList.clear(),Promise.resolve(e.options.provider.search(t)).then((function(n){n&&n.length>0&&e.showResult(n[0],t)}))}catch(t){return Promise.reject(t)}},showResult:function(t,e){var n=this.options,r=n.autoClose,o=n.updateMap,i=this.markers.getLayers();i.length>=this.options.maxMarkers&&this.markers.removeLayer(i[0]);var a=this.addMarker(t,e);o&&this.centerMap(t),this.map.fireEvent("geosearch/showlocation",{location:t,marker:a}),r&&this.closeResults()},closeResults:function(){var t=this.searchElement.container;t.classList.contains("active")&&p(t,"active"),this.clearResults()},addMarker:function(t,e){var n=this,o=this.options,i=o.marker,a=o.showPopup,s=o.popupFormat,c=new r.Marker([t.y,t.x],i),u=t.label;return"function"==typeof s&&(u=s({query:e,result:t}
2)),c.bindPopup(u),this.markers.addLayer(c),a&&c.openPopup(),i.draggable&&c.on("dragend",(function(t){n.map.fireEvent("geosearch/marker/dragend",{location:c.getLatLng(),event:t})})),c},centerMap:function(t){var e=this.options,n=e.retainZoomLevel,o=e.animateZoom,i=t.bounds?new r.LatLngBounds(t.bounds):new r.LatLng(t.y,t.x).toBounds(10),a=i.isValid()?i:this.markers.getBounds();!n&&i.isValid()&&!t.bounds||n||!i.isValid()?this.map.setView(a.getCenter(),this.getZoom(),{animate:o}):this.map.fitBounds(a,{animate:o})},getZoom:function(){var t=this.options,e=t.zoomLevel;return t.retainZoomLevel?this.map.getZoom():e}};function S(){if(!r)throw new Error(k);return c(r.Control.extend(C),[].slice.call(arguments))}(m=d||(d={}))[m.SEARCH=0]="SEARCH",m[m.REVERSE=1]="REVERSE";var x=function(){function t(t){void 0===t&&(t={}),this.options=void 0,this.options=t}var e=t.prototype;return e.getParamString=function(t){void 0===t&&(t={});var e=i({},this.options.params,t);return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},e.getUrl=function(t,e){return t+"?"+this.getParamString(e)},e.search=function(t){try{var e=this,n=e.endpoint({query:t.query,type:d.SEARCH});return Promise.resolve(fetch(n)).then((function(t){return Promise.resolve(t.json()).then((function(t){return e.parse({data:t})}))}))}catch(t){return Promise.reject(t)}},t}();"function"==typeof SuppressedError&&SuppressedError;var P;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(P||(P={}));var j=function(t){function e(e){var n;void 0===e&&(e={}),(n=t.call(this,e)||this).searchUrl=void 0,n.reverseUrl=void 0;var r="https://nominatim.openstreetmap.org";return n.searchUrl=e.searchUrl||r+"/search",n.reverseUrl=e.reverseUrl||r+"/reverse",n}a(e,t);var n=e.prototype;return n.endpoint=function(t){var e=t.query,n=t.type,r="string"==typeof e?{q:e}:e;return r.format="json",this.getUrl(n===d.REVERSE?this.reverseUrl:this.searchUrl,r)},n.parse=function(t){return(Array.isArray(t.data)?t.data:[t.data]).map((function(t){return{x:Number(t.lon),y:Number(t.lat),label:t.display_name,bounds:[[parseFloat(t.boundingbox[0]),parseFloat(t.boundingbox[2])],[parseFloat(t.boundingbox[1]),parseFloat(t.boundingbox[3])]],raw:t}}))},e}(x),O=n(68980),N=n(71272);function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function A(){A=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new N(r||[]);return o(a,"_invoke",{value:x(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",p="suspendedYield",d="executing",m="completed",v={};function y(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(I([])));L&&L!==n&&r.call(L,a)&&(w=L);var k=b.prototype=y.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=h(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==R(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function x(e,n,r){var o=f;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=P(s,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=h(e,n,r);if("normal"===u.type){if(o=r.done?m:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function P(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&
vendor: 4,343 bytes, line 2
2(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(R(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},C(S.prototype),u(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(k),u(k,c,"Generator"),u(k,a,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function I(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];
2if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function F(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,U(r.key),r)}}function T(t,e,n){return e&&_(t.prototype,e),n&&_(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function U(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==R(e)?e:e+""}function B(t,e){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.add(t)}function D(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var q=/^-?([1-8]?[1-9]|[1-9]0)\.\d+,-?([1-8]?[1-9]|[1-9]0)\.\d+$/,G=[46.8182,8.2275],Z=new WeakSet,V=T((function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),B(this,Z),this.config=JSON.parse(e.dataset.coordinatesPicker),this.el=e,D(Z,this,H).call(this),D(Z,this,z).call(this)}));function z(){var t=this;this.inputEl=this.el.querySelector("[data-coordinates-picker-input]"),this.inputOsmIdEl=this.el.querySelector("[data-coordinates-picker-input-osm-id]"),this.inputEl.addEventListener("change",(function(){return D(Z,t,J).call(t)})),D(Z,this,J).call(this)}function H(){var t=this;this.map=o().map(this.el.querySelector("[data-coordinates-picker-map]")).setView(G,8),o().tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>'}).addTo(this.map);var e=new j({params:{"accept-language":this.config.language,countrycodes:"ch,li"}});this.map.addControl(new S({autoClose:!0,keepResult:!0,provider:e,showMarker:!1,showPopup:!1,style:"bar"})),this.map.on("geosearch/showlocation",(function(e){D(Z,t,$).call(t,[e.location.y,e.location.x]),t.inputOsmIdEl&&(t.inputOsmIdEl.value=e.location.raw.osm_id?"".concat(e.location.raw.osm_type,"/").concat(e.location.raw.osm_id):"")})),this.onMapClickCallback=function(e){return D(Z,t,K).call(t,e)},this.map.on("click",this.onMapClickCallback)}function K(t){void 0===this.marker?D(Z,this,$).call(this,t.latlng):this.map.off("click",this.onMapClickCallback)}function Y(t){this.inputEl.value=t.lat+","+t.lng}function $(t){var e=this;void 0===this.marker?(this.marker=o().marker(t,{draggable:!0,icon:o().icon({iconSize:[25,41],iconAnchor:[10,41],popupAnchor:[2,-40],iconUrl:N,shadowUrl:O})}).addTo(this.map),this.marker.on("moveend",(function(){return D(Z,e,Y).call(e,e.marker.getLatLng())})),this.map.panTo(t)):this.marker.setLatLng(t),D(Z,this,Y).call(this,this.marker.getLatLng())}function J(){q.test(this.inputEl.value)&&D(Z,this,$).call(this,this.inputEl.value.split(","))}const Q=function(){var t,e=(t=A().mark((function t(e){var n,r,o;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=I(e);try{for(n.s();!(r=n.n()).done;)o=r.value,new V(o)}catch(t){n.e(t)}finally{n.f()}case 2:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){F(i,r,o,a,s,"next",t)}function s(t){F(i,r,o,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.