]> git.openstreetmap.org Git - nominatim-ui.git/blob - dist/build/bundle.js
Rebundle latest version
[nominatim-ui.git] / dist / build / bundle.js
1 var app=function(){"use strict";var t=!1,e=Array.isArray,i=Array.prototype.indexOf,n=Array.from,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyDescriptors,a=Object.prototype,l=Array.prototype,c=Object.getPrototypeOf,h=Object.isExtensible;const u=()=>{};function d(t){return t()}function p(t){for(var e=0;e<t.length;e++)t[e]()}const f=32,m=64,_=256,g=512,v=1024,y=2048,b=4096,w=8192,x=16384,P=32768,T=65536,k=1<<17,M=1<<19,C=1<<20,E=1<<21,A=1<<22,S=1<<23,O=Symbol("$state"),z=Symbol("legacy props"),I=Symbol(""),D=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};const N=Symbol();function B(t){return t===this.v}function Z(t){return e=t,i=this.v,!(e!=e?i==i:e!==i||null!==e&&"object"==typeof e||"function"==typeof e);var e,i}let j=!1;let R=null;function $(t){R=t}function F(t,e=!1,i){R={p:R,c:null,e:null,s:t,x:null,l:j&&!e?{s:null,u:null,$:[]}:null}}function H(t){var e=R,i=e.e;if(null!==i)for(var n of(e.e=null,i))qt(n);return R=e.p,{}}function q(){return!j||null!==R&&null===R.l}const W=new WeakMap;function U(t,e){for(;null!==e;){if(128&e.f)try{return void e.b.error(t)}catch(e){t=e}e=e.parent}throw t instanceof Error&&V(t),t}function V(t){const e=W.get(t);e&&(o(t,"message",{value:e.message}),o(t,"stack",{value:e.stack}))}let K=[];function G(){var t=K;K=[],p(t)}function Y(t){0===K.length&&queueMicrotask(G),K.push(t)}function X(){for(var t=de.b;null!==t&&!t.has_pending_snippet();)t=t.parent;return null===t&&function(){throw new Error("https://svelte.dev/e/await_outside_boundary")}(),t}function J(t){var e=2050,i=null!==ce&&2&ce.f?ce:null;null===de||null!==i&&0!==(i.f&_)?e|=_:de.f|=M;return{ctx:R,deps:null,effects:null,equals:B,f:e,fn:t,reactions:null,rv:0,v:N,wv:0,parent:i??de,ac:null}}function Q(t,e){let i=de;null===i&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var n=i.b,o=void 0,s=xt(N),r=null,a=!ce;return function(t){$t(4718592,t,!0)}((()=>{try{var e=t()}catch(t){e=Promise.reject(t)}var i=()=>e;o=r?.then(i,i)??Promise.resolve(e),r=o;var l=lt,c=n.pending;a&&(n.update_pending_count(1),c||l.increment());const h=(t,e=void 0)=>{r=null,c||l.activate(),e?e!==D&&(s.f|=S,Tt(s,e)):(0!==(s.f&S)&&(s.f^=S),Tt(s,t)),a&&(n.update_pending_count(-1),c||l.decrement()),rt()};if(o.then(h,(t=>h(null,t||"unknown"))),l)return()=>{queueMicrotask((()=>l.neuter()))}})),new Promise((t=>{!function e(i){function n(){i===o?t(s):e(o)}i.then(n,n)}(o)}))}function tt(t){const e=J(t);return me(e),e}function et(t){const e=J(t);return e.equals=Z,e}function it(t){var e=t.effects;if(null!==e){t.effects=null;for(var i=0;i<e.length;i+=1)Xt(e[i])}}function nt(t){var e,i=de;pe(function(t){for(var e=t.parent;null!==e;){if(!(2&e.f))return e;e=e.parent}return null}(t));try{it(t),e=Me(t)}finally{pe(i)}return e}function ot(t){var e=nt(t);(t.equals(e)||(t.v=e,t.wv=Pe()),ae)||(null!==ht?ht.set(t,t.v):De(t,!Le&&0===(t.f&_)||null===t.deps?v:b))}function st(t,e,i){const n=q()?J:et;if(0!==e.length){var o,s,r,a=lt,l=de,c=(o=de,s=ce,r=R,function(){pe(o),ue(s),$(r)}),h=X();Promise.all(e.map((t=>Q(t)))).then((e=>{a?.activate(),c();try{i([...t.map(n),...e])}catch(t){0===(l.f&x)&&U(t,l)}a?.deactivate(),rt()})).catch((t=>{h.error(t)}))}else i(t.map(n))}function rt(){pe(null),ue(null),$(null)}const at=new Set;let lt=null,ct=null,ht=null,ut=new Set,dt=[];function pt(){const t=dt.shift();dt.length>0&&queueMicrotask(pt),t()}let ft=[],mt=null,_t=!1;class gt{current=new Map;#t=new Map;#e=new Set;#i=0;#n=null;#o=!1;#s=[];#r=[];#a=[];#l=[];#c=[];#h=[];#u=[];skipped_effects=new Set;process(t){ft=[],ct=null;var e=null;if(at.size>1){e=new Map,ht=new Map;for(const[t,i]of this.current)e.set(t,{v:t.v,wv:t.wv}),t.v=i;for(const t of at)if(t!==this)for(const[i,n]of t.#t)e.has(i)||(e.set(i,{v:i.v,wv:i.wv}),i.v=n)}for(const e of t)this.#d(e);if(0===this.#s.length&&0===this.#i){this.#p();var i=this.#a,n=this.#l;this.#a=[],this.#l=[],this.#c=[],ct=lt,lt=null,yt(i),yt(n),null===lt?lt=this:at.delete(this),this.#n?.resolve()}else this.#f(this.#a),this.#f(this.#l),this.#f(this.#c);if(e){for(const[t,{v:i,wv:n}]of e)t.wv<=n&&(t.v=i);ht=null}for(const t of this.#s)Ae(t);for(const t of this.#r)Ae(t);this.#s=[],this.#r=[]}#d(t){t.f^=v;for(var e=t.first;null!==e;){var i=e.f,n=!!(96&i);if(!(n&&0!==(i&v)||0!==(i&w)||this.skipped_effects.has(e))&&null!==e.fn){if(n)e.f^=v;else if(0===(i&v))if(4&i)this.#l.push(e);else if(0!==(i&A)){(e.b?.pending?this.#r:this.#s).push(e)}else Te(e)&&(16&e.f&&this.#c.push(e),Ae(e));var o=e.first;if(null!==o){e=o;continue}}var s=e.parent;for(e=e.next;null===e&&null!==s;)e=s.next,s=s.parent}}#f(t){for(const e of t){(0!==(e.f&y)?this.#h:this.#u).push(e),De(e,v)}t.length=0}capture(t,e){this.#t.has(t)||this.#t.set(t,e),this.current.set(t,t.v)}activate(){lt=this}deactivate(){lt=null,ct=null;for(const t of ut)if(ut.delete(t),t(),null!==lt)break}neuter(){this.#o=!0}flush(){ft.length>0?function(){var e=se;_t=!0;try{var i=0;for(re(!0);ft.length>0;){var n=gt.ensure();if(i++>1e3)t,vt();n.process(ft),wt.clear()}}finally{_t=!1,re(e),mt=null}}():this.#p(),lt===this&&(0===this.#i&&at.delete(this),this.deactivate())}#p(){if(!this.#o)for(const t of this.#e)t();this.#e.clear()}increment(){this.#i+=1}decrement(){if(this.#i-=1,0===this.#i){for(const t of this.#h)De(t,y),bt(t);for(const t of this.#u)De(t,b),bt(t);this.#a=[],this.#l=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#n??={promise:new Promise(((i,n)=>{t=i,e=n})),resolve:t,reject:e}).promise;var t,e}static ensure(){if(null===lt){const t=lt=new gt;at.add(lt),gt.enqueue((()=>{lt===t&&t.flush()}))}return lt}static enqueue(t){0===dt.length&&queueMicrotask(pt),dt.unshift(t)}}function vt(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(t){U(t,mt)}}function yt(t){var e=t.length;if(0!==e){for(var i=0;i<e;){var n=t[i++];if(!(24576&n.f)&&Te(n)){var o=lt?lt.current.size:0;if(Ae(n),null===n.deps&&null===n.first&&null===n.nodes_start&&(null===n.teardown&&null===n.ac?Qt(n):n.fn=null),null!==lt&&lt.current.size>o&&0!==(n.f&C))break}}for(;i<e;)bt(t[i++])}}function bt(t){for(var e=mt=t;null!==e.parent;){var i=(e=e.parent).f;if(_t&&e===de&&16&i)return;if(96&i){if(0===(i&v))return;e.f^=v}}ft.push(e)}const wt=new Map;function xt(t,e){return{f:0,v:t,reactions:null,equals:B,rv:0,wv:0}}function Lt(t,e){const i=xt(t);return me(i),i}function Pt(t,e,i=!1){return null!==ce&&(!he||0!==(ce.f&k))&&q()&&4325394&ce.f&&!fe?.includes(t)&&function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),Tt(t,i?Ct(e):e)}function Tt(t,e){if(!t.equals(e)){var i=t.v;ae?wt.set(t,e):wt.set(t,i),t.v=e,gt.ensure().capture(t,i),2&t.f&&(0!==(t.f&y)&&nt(t),De(t,0===(t.f&_)?v:b)),t.wv=Pe(),Mt(t,y),!q()||null===de||0===(de.f&v)||96&de.f||(null===ve?function(t){ve=t}([t]):ve.push(t))}return e}function kt(t){Pt(t,t.v+1)}function Mt(t,e){var i=t.reactions;if(null!==i)for(var n=q(),o=i.length,s=0;s<o;s++){var r=i[s],a=r.f;if(n||r!==de){var l=0===(a&y);l&&De(r,e),2&a?Mt(r,b):l&&bt(r)}}}function Ct(t){if("object"!=typeof t||null===t||O in t)return t;const i=c(t);if(i!==a&&i!==l)return t;var n=new Map,o=e(t),r=Lt(0),h=we,u=t=>{if(we===h)return t();var e=ce,i=we;ue(null),xe(h);var n=t();return ue(e),xe(i),n};return o&&n.set("length",Lt(t.length)),new Proxy(t,{defineProperty(t,e,i){"value"in i&&!1!==i.configurable&&!1!==i.enumerable&&!1!==i.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var o=n.get(e);return void 0===o?o=u((()=>{var t=Lt(i.value);return n.set(e,t),t})):Pt(o,i.value,!0),!0},deleteProperty(t,e){var i=n.get(e);if(void 0===i){if(e in t){const t=u((()=>Lt(N)));n.set(e,t),kt(r)}}else Pt(i,N),kt(r);return!0},get(e,i,o){if(i===O)return t;var r=n.get(i),a=i in e;if(void 0!==r||a&&!s(e,i)?.writable||(r=u((()=>Lt(Ct(a?e[i]:N)))),n.set(i,r)),void 0!==r){var l=Se(r);return l===N?void 0:l}return Reflect.get(e,i,o)},getOwnPropertyDescriptor(t,e){var i=Reflect.getOwnPropertyDescriptor(t,e);if(i&&"value"in i){var o=n.get(e);o&&(i.value=Se(o))}else if(void 0===i){var s=n.get(e),r=s?.v;if(void 0!==s&&r!==N)return{enumerable:!0,configurable:!0,value:r,writable:!0}}return i},has(t,e){if(e===O)return!0;var i=n.get(e),o=void 0!==i&&i.v!==N||Reflect.has(t,e);if((void 0!==i||null!==de&&(!o||s(t,e)?.writable))&&(void 0===i&&(i=u((()=>Lt(o?Ct(t[e]):N))),n.set(e,i)),Se(i)===N))return!1;return o},set(t,e,i,a){var l=n.get(e),c=e in t;if(o&&"length"===e)for(var h=i;h<l.v;h+=1){var d=n.get(h+"");void 0!==d?Pt(d,N):h in t&&(d=u((()=>Lt(N))),n.set(h+"",d))}void 0===l?c&&!s(t,e)?.writable||(Pt(l=u((()=>Lt(void 0))),Ct(i)),n.set(e,l)):(c=l.v!==N,Pt(l,u((()=>Ct(i)))));var p=Reflect.getOwnPropertyDescriptor(t,e);if(p?.set&&p.set.call(a,i),!c){if(o&&"string"==typeof e){var f=n.get("length"),m=Number(e);Number.isInteger(m)&&m>=f.v&&Pt(f,m+1)}kt(r)}return!0},ownKeys(t){Se(r);var e=Reflect.ownKeys(t).filter((t=>{var e=n.get(t);return void 0===e||e.v!==N}));for(var[i,o]of n)o.v===N||i in t||e.push(i);return e},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function Et(t){try{if(null!==t&&"object"==typeof t&&O in t)return t[O]}catch{}return t}var At,St,Ot,zt;function It(t=""){return document.createTextNode(t)}function Dt(t){return Ot.call(t)}function Nt(t){return zt.call(t)}function Bt(t,e){return Dt(t)}function Zt(t,e){var i=Dt(t);return i instanceof Comment&&""===i.data?Nt(i):i}function jt(t,e=1,i=!1){let n=t;for(;e--;)n=Nt(n);return n}function Rt(t){null===de&&null===ce&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),null!==ce&&0!==(ce.f&_)&&null===de&&function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}(),ae&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function $t(t,e,i,n=!0){var o=de;null!==o&&0!==(o.f&w)&&(t|=w);var s={ctx:R,deps:null,nodes_start:null,nodes_end:null,f:t|y,first:null,fn:e,last:null,next:null,parent:o,b:o&&o.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(i)try{Ae(s),s.f|=P}catch(t){throw Xt(s),t}else null!==e&&bt(s);if(!(i&&null===s.deps&&null===s.first&&null===s.nodes_start&&null===s.teardown&&0===(s.f&M))&&n&&(null!==o&&function(t,e){var i=e.last;null===i?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}(s,o),null!==ce&&2&ce.f&&0===(t&m))){var r=ce;(r.effects??=[]).push(s)}return s}function Ft(t){const e=$t(8,null,!1);return De(e,v),e.teardown=t,e}function Ht(t){Rt();var e=de.f;if(!(!ce&&0!==(e&f)&&0===(e&P)))return qt(t);var i=R;(i.e??=[]).push(t)}function qt(t){return $t(1048580,t,!1)}function Wt(t){return $t(4,t,!1)}function Ut(t,e=[],i=[]){st(e,i,(e=>{$t(8,(()=>t(...e.map(Se))),!0)}))}function Vt(t,e=0){return $t(16|e,t,!0)}function Kt(t,e=!0){return $t(f,t,!0,e)}function Gt(t){var e=t.teardown;if(null!==e){const t=ae,i=ce;le(!0),ue(null);try{e.call(null)}finally{le(t),ue(i)}}}function Yt(t,e=!1){var i=t.first;for(t.first=t.last=null;null!==i;){i.ac?.abort(D);var n=i.next;0!==(i.f&m)?i.parent=null:Xt(i,e),i=n}}function Xt(t,e=!0){var i=!1;(e||262144&t.f)&&null!==t.nodes_start&&null!==t.nodes_end&&(Jt(t.nodes_start,t.nodes_end),i=!0),Yt(t,e&&!i),Ee(t,0),De(t,x);var n=t.transitions;if(null!==n)for(const t of n)t.stop();Gt(t);var o=t.parent;null!==o&&null!==o.first&&Qt(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Jt(t,e){for(;null!==t;){var i=t===e?null:Nt(t);t.remove(),t=i}}function Qt(t){var e=t.parent,i=t.prev,n=t.next;null!==i&&(i.next=n),null!==n&&(n.prev=i),null!==e&&(e.first===t&&(e.first=n),e.last===t&&(e.last=i))}function te(t,e){var i=[];ie(t,i,!0),ee(i,(()=>{Xt(t),e&&e()}))}function ee(t,e){var i=t.length;if(i>0){var n=()=>--i||e();for(var o of t)o.out(n)}else e()}function ie(t,e,i){if(0===(t.f&w)){if(t.f^=w,null!==t.transitions)for(const n of t.transitions)(n.is_global||i)&&e.push(n);for(var n=t.first;null!==n;){var o=n.next;ie(n,e,!!(0!==(n.f&T)||0!==(n.f&f))&&i),n=o}}}function ne(t){oe(t,!0)}function oe(t,e){if(0!==(t.f&w)){t.f^=w,0===(t.f&v)&&(De(t,y),bt(t));for(var i=t.first;null!==i;){var n=i.next;oe(i,!!(0!==(i.f&T)||0!==(i.f&f))&&e),i=n}if(null!==t.transitions)for(const i of t.transitions)(i.is_global||e)&&i.in()}}let se=!1;function re(t){se=t}let ae=!1;function le(t){ae=t}let ce=null,he=!1;function ue(t){ce=t}let de=null;function pe(t){de=t}let fe=null;function me(t){null!==ce&&(null===fe?fe=[t]:fe.push(t))}let _e=null,ge=0,ve=null;let ye=1,be=0,we=be;function xe(t){we=t}let Le=!1;function Pe(){return++ye}function Te(t){var e=t.f;if(0!==(e&y))return!0;if(0!==(e&b)){var i=t.deps,n=0!==(e&_);if(null!==i){var o,s,r=0!==(e&g),a=n&&null!==de&&!Le,l=i.length;if((r||a)&&(null===de||0===(de.f&x))){var c=t,h=c.parent;for(o=0;o<l;o++)s=i[o],!r&&s?.reactions?.includes(c)||(s.reactions??=[]).push(c);r&&(c.f^=g),a&&null!==h&&0===(h.f&_)&&(c.f^=_)}for(o=0;o<l;o++)if(Te(s=i[o])&&ot(s),s.wv>t.wv)return!0}n&&(null===de||Le)||De(t,v)}return!1}function ke(t,e,i=!0){var n=t.reactions;if(null!==n&&!fe?.includes(t))for(var o=0;o<n.length;o++){var s=n[o];2&s.f?ke(s,e,!1):e===s&&(i?De(s,y):0!==(s.f&v)&&De(s,b),bt(s))}}function Me(t){var e=_e,i=ge,n=ve,o=ce,s=Le,r=fe,a=R,l=he,c=we,h=t.f;_e=null,ge=0,ve=null,Le=0!==(h&_)&&(he||!se||null===ce),ce=96&h?null:t,fe=null,$(t.ctx),he=!1,we=++be,null!==t.ac&&(t.ac.abort(D),t.ac=null);try{t.f|=E;var u=(0,t.fn)(),d=t.deps;if(null!==_e){var p;if(Ee(t,ge),null!==d&&ge>0)for(d.length=ge+_e.length,p=0;p<_e.length;p++)d[ge+p]=_e[p];else t.deps=d=_e;if(!Le||2&h&&null!==t.reactions)for(p=ge;p<d.length;p++)(d[p].reactions??=[]).push(t)}else null!==d&&ge<d.length&&(Ee(t,ge),d.length=ge);if(q()&&null!==ve&&!he&&null!==d&&!(6146&t.f))for(p=0;p<ve.length;p++)ke(ve[p],t);return null!==o&&o!==t&&(be++,null!==ve&&(null===n?n=ve:n.push(...ve))),0!==(t.f&S)&&(t.f^=S),u}catch(t){return function(t){var e=de;if(null===e)return ce.f|=S,t;if(0===(e.f&P)){if(!(128&e.f))throw!e.parent&&t instanceof Error&&V(t),t;e.b.error(t)}else U(t,e)}(t)}finally{t.f^=E,_e=e,ge=i,ve=n,ce=o,Le=s,fe=r,$(a),he=l,we=c}}function Ce(t,e){let n=e.reactions;if(null!==n){var o=i.call(n,t);if(-1!==o){var s=n.length-1;0===s?n=e.reactions=null:(n[o]=n[s],n.pop())}}null===n&&2&e.f&&(null===_e||!_e.includes(e))&&(De(e,b),768&e.f||(e.f^=g),it(e),Ee(e,0))}function Ee(t,e){var i=t.deps;if(null!==i)for(var n=e;n<i.length;n++)Ce(t,i[n])}function Ae(t){var e=t.f;if(0===(e&x)){De(t,v);var i=de,n=se;de=t,se=!0;try{16&e?function(t){for(var e=t.first;null!==e;){var i=e.next;0===(e.f&f)&&Xt(e),e=i}}(t):Yt(t),Gt(t);var o=Me(t);t.teardown="function"==typeof o?o:null,t.wv=ye}finally{se=n,de=i}}}function Se(t){var e=!!(2&t.f);if(null===ce||he){if(e&&null===t.deps&&null===t.effects){var i=t,n=i.parent;null!==n&&0===(n.f&_)&&(i.f^=_)}}else if(!(null!==de&&0!==(de.f&x))&&!fe?.includes(t)){var o=ce.deps;if(0!==(ce.f&E))t.rv<be&&(t.rv=be,null===_e&&null!==o&&o[ge]===t?ge++:null===_e?_e=[t]:Le&&_e.includes(t)||_e.push(t));else{(ce.deps??=[]).push(t);var s=t.reactions;null===s?t.reactions=[ce]:s.includes(ce)||s.push(ce)}}if(ae){if(wt.has(t))return wt.get(t);if(e){var r=(i=t).v;return(0===(i.f&v)&&null!==i.reactions||Oe(i))&&(r=nt(i)),wt.set(i,r),r}}else if(e){if(i=t,ht?.has(i))return ht.get(i);Te(i)&&ot(i)}if(0!==(t.f&S))throw t.v;return t.v}function Oe(t){if(t.v===N)return!0;if(null===t.deps)return!1;for(const e of t.deps){if(wt.has(e))return!0;if(2&e.f&&Oe(e))return!0}return!1}function ze(t){var e=he;try{return he=!0,t()}finally{he=e}}const Ie=-7169;function De(t,e){t.f=t.f&Ie|e}function Ne(t,e=new Set){if(!("object"!=typeof t||null===t||t instanceof EventTarget||e.has(t))){e.add(t),t instanceof Date&&t.getTime();for(let i in t)try{Ne(t[i],e)}catch(t){}const i=c(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const e=r(i);for(let i in e){const n=e[i].get;if(n)try{n.call(t)}catch(t){}}}}}const Be=["touchstart","touchmove"];function Ze(t){return Be.includes(t)}let je=!1;function Re(t){var e=ce,i=de;ue(null),pe(null);try{return t()}finally{ue(e),pe(i)}}function $e(t,e,i,n=i){t.addEventListener(e,(()=>Re(i)));const o=t.__on_r;t.__on_r=o?()=>{o(),n(!0)}:()=>n(!0),je||(je=!0,document.addEventListener("reset",(t=>{Promise.resolve().then((()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()}))}),{capture:!0}))}const Fe=new Set,He=new Set;function qe(t,e,i,n,o){var s={capture:n,passive:o},r=function(t,e,i,n={}){function o(t){if(n.capture||Ve.call(e,t),!t.cancelBubble)return Re((()=>i?.call(this,t)))}return t.startsWith("pointer")||t.startsWith("touch")||"wheel"===t?Y((()=>{e.addEventListener(t,o,n)})):e.addEventListener(t,o,n),o}(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ft((()=>{e.removeEventListener(t,r,s)}))}function We(t){for(var e=0;e<t.length;e++)Fe.add(t[e]);for(var i of He)i(t)}let Ue=null;function Ve(t){var i=this,n=i.ownerDocument,s=t.type,r=t.composedPath?.()||[],a=r[0]||t.target;Ue=t;var l=0,c=Ue===t&&t.__root;if(c){var h=r.indexOf(c);if(-1!==h&&(i===document||i===window))return void(t.__root=i);var u=r.indexOf(i);if(-1===u)return;h<=u&&(l=h)}if((a=r[l]||t.target)!==i){o(t,"currentTarget",{configurable:!0,get:()=>a||n});var d=ce,p=de;ue(null),pe(null);try{for(var f,m=[];null!==a;){var _=a.assignedSlot||a.parentNode||a.host||null;try{var g=a["__"+s];if(null!=g&&(!a.disabled||t.target===a))if(e(g)){var[v,...y]=g;v.apply(a,[t,...y])}else g.call(a,t)}catch(t){f?m.push(t):f=t}if(t.cancelBubble||_===i||null===_)break;a=_}if(f){for(let t of m)queueMicrotask((()=>{throw t}));throw f}}finally{t.__root=i,delete t.currentTarget,ue(d),pe(p)}}}function Ke(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","\x3c!----\x3e"),e.content}function Ge(t,e){var i=de;null===i.nodes_start&&(i.nodes_start=t,i.nodes_end=e)}function Ye(t,e){var i,n=!!(1&e),o=!!(2&e),s=!t.startsWith("<!>");return()=>{void 0===i&&(i=Ke(s?t:"<!>"+t),n||(i=Dt(i)));var e=o||St?document.importNode(i,!0):i.cloneNode(!0);n?Ge(Dt(e),e.lastChild):Ge(e,e);return e}}function Xe(t=""){var e=It(t+"");return Ge(e,e),e}function Je(){var t=document.createDocumentFragment(),e=document.createComment(""),i=It();return t.append(e,i),Ge(e,i),t}function Qe(t,e){null!==t&&t.before(e)}function ti(t,e){var i=null==e?"":"object"==typeof e?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}const ei=new Map;let ii=new WeakMap;function ni(t,e,i=!1){var n=t,o=null,s=null,r=N,a=!1;const l=(t,e=!0)=>{a=!0,u(e,t)};var c=null;function h(){null!==c&&(c.lastChild.remove(),n.before(c),c=null);var t=r?o:s,e=r?s:o;t&&ne(t),e&&te(e,(()=>{r?s=null:o=null}))}const u=(t,e)=>{if(r!==(r=t)){var i=!1,a=n;i,r?o??=e&&Kt((()=>e(a))):s??=e&&Kt((()=>e(a))),h()}};Vt((()=>{a=!1,e(l),a||u(null,null)}),i?T:0)}function oi(t,e){return e}function si(t,i,o,s,r,a=null){var l=t,c={flags:i,items:new Map,first:null};!(4&i)||(l=t.appendChild(It()));var h,u,d=null,p=!1,f=new Map,m=et((()=>{var t=o();return e(t)?t:null==t?[]:n(t)}));function _(){!function(t,e,i,o,s,r,a,l,c){var h,u,d,p,f,m,_=!!(8&a),g=!!(3&a),v=e.length,y=i.items,b=i.first,x=b,L=null,P=[],T=[];if(_)for(m=0;m<v;m+=1)p=l(d=e[m],m),void 0!==(f=y.get(p))&&(f.a?.measure(),(u??=new Set).add(f));for(m=0;m<v;m+=1)if(p=l(d=e[m],m),void 0!==(f=y.get(p))){if(g&&ri(f,d,m,a),0!==(f.e.f&w)&&(ne(f.e),_&&(f.a?.unfix(),(u??=new Set).delete(f))),f!==x){if(void 0!==h&&h.has(f)){if(P.length<T.length){var k,M=T[0];L=M.prev;var C=P[0],E=P[P.length-1];for(k=0;k<P.length;k+=1)li(P[k],M,s);for(k=0;k<T.length;k+=1)h.delete(T[k]);ci(i,C.prev,E.next),ci(i,L,C),ci(i,E,M),x=M,L=E,m-=1,P=[],T=[]}else h.delete(f),li(f,x,s),ci(i,f.prev,f.next),ci(i,f,null===L?i.first:L.next),ci(i,L,f),L=f;continue}for(P=[],T=[];null!==x&&x.k!==p;)0===(x.e.f&w)&&(h??=new Set).add(x),T.push(x),x=x.next;if(null===x)continue;f=x}P.push(f),L=f,x=f.next}else{var A=o.get(p);if(void 0!==A){o.delete(p),y.set(p,A);var S=L?L.next:x;ci(i,L,A),ci(i,A,S),li(A,S,s),L=A}else{L=ai(x?x.e.nodes_start:s,i,L,null===L?i.first:L.next,d,p,m,r,a,c)}y.set(p,L),P=[],T=[],x=L.next}if(null!==x||void 0!==h){for(var O=void 0===h?[]:n(h);null!==x;)0===(x.e.f&w)&&O.push(x),x=x.next;var z=O.length;if(z>0){var I=4&a&&0===v?s:null;if(_){for(m=0;m<z;m+=1)O[m].a?.measure();for(m=0;m<z;m+=1)O[m].a?.fix()}!function(t,e,i){for(var n=t.items,o=[],s=e.length,r=0;r<s;r++)ie(e[r].e,o,!0);var a=s>0&&0===o.length&&null!==i;if(a){var l=i.parentNode;l.textContent="",l.append(i),n.clear(),ci(t,e[0].prev,e[s-1].next)}ee(o,(()=>{for(var i=0;i<s;i++){var o=e[i];a||(n.delete(o.k),ci(t,o.prev,o.next)),Xt(o.e,!a)}}))}(i,O,I)}}_&&Y((()=>{if(void 0!==u)for(f of u)f.a?.apply()}));for(var D of(t.first=i.first&&i.first.e,t.last=L&&L.e,o.values()))Xt(D.e);o.clear()}(u,h,c,f,l,r,i,s,o),null!==a&&(0===h.length?d?ne(d):d=Kt((()=>a(l))):null!==d&&te(d,(()=>{d=null})))}Vt((()=>{u??=de;var t=(h=Se(m)).length;p&&0===t||(p=0===t,_(),Se(m))}))}function ri(t,e,i,n){1&n&&Tt(t.v,e),2&n?Tt(t.i,i):t.i=i}function ai(t,e,i,n,o,s,r,a,l,c,h){var u=!!(1&l)?!(16&l)?function(t,e=!1,i=!0){const n=xt(t);return e||(n.equals=Z),j&&i&&null!==R&&null!==R.l&&(R.l.s??=[]).push(n),n}(o,!1,!1):xt(o):o,d=2&l?xt(r):r,p={i:d,v:u,k:s,a:null,e:null,prev:i,next:n};try{if(null===t)document.createDocumentFragment().append(t=It());return p.e=Kt((()=>a(t,u,d,c)),false),p.e.prev=i&&i.e,p.e.next=n&&n.e,null===i?h||(e.first=p):(i.next=p,i.e.next=p.e),null!==n&&(n.prev=p,n.e.prev=p.e),p}finally{}}function li(t,e,i){for(var n=t.next?t.next.e.nodes_start:i,o=e?e.e.nodes_start:i,s=t.e.nodes_start;null!==s&&s!==n;){var r=Nt(s);o.before(s),s=r}}function ci(t,e,i){null===e?t.first=i:(e.next=i,e.e.next=i&&i.e),null!==i&&(i.prev=e,i.e.prev=e&&e.e)}function hi(t,e,...i){var n,o=t,s=u;Vt((()=>{s!==(s=e())&&(n&&(Xt(n),n=null),n=Kt((()=>s(o,...i))))}),T)}function ui(t){var e,i,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(i=ui(t[e]))&&(n&&(n+=" "),n+=i)}else for(i in t)t[i]&&(n&&(n+=" "),n+=i);return n}function di(t){return"object"==typeof t?function(){for(var t,e,i=0,n="",o=arguments.length;i<o;i++)(t=arguments[i])&&(e=ui(t))&&(n&&(n+=" "),n+=e);return n}(t):t??""}const pi=[..." \t\n\r\f \v\ufeff"];function fi(t,e=!1){var i=e?" !important;":";",n="";for(var o in t){var s=t[o];null!=s&&""!==s&&(n+=" "+o+": "+s+i)}return n}function mi(t,e,i,n,o,s){var r=t.__className;if(r!==i||void 0===r){var a=function(t,e,i){var n=null==t?"":""+t;if(e&&(n=n?n+" "+e:e),i)for(var o in i)if(i[o])n=n?n+" "+o:o;else if(n.length)for(var s=o.length,r=0;(r=n.indexOf(o,r))>=0;){var a=r+s;0!==r&&!pi.includes(n[r-1])||a!==n.length&&!pi.includes(n[a])?r=a:n=(0===r?"":n.substring(0,r))+n.substring(a+1)}return""===n?null:n}(i,n,s);null==a?t.removeAttribute("class"):t.className=a,t.__className=i}else if(s&&o!==s)for(var l in s){var c=!!s[l];null!=o&&c===!!o[l]||t.classList.toggle(l,c)}return s}function _i(t,e={},i,n){for(var o in i){var s=i[o];e[o]!==s&&(null==i[o]?t.style.removeProperty(o):t.style.setProperty(o,s,n))}}function gi(t,e,i,n){if(t.__style!==e){var o=function(t,e){if(e){var i,n,o="";return Array.isArray(e)?(i=e[0],n=e[1]):i=e,i&&(o+=fi(i)),n&&(o+=fi(n,!0)),""===(o=o.trim())?null:o}return String(t)}(e,n);null==o?t.removeAttribute("style"):t.style.cssText=o,t.__style=e}else n&&(Array.isArray(n)?(_i(t,i?.[0],n[0]),_i(t,i?.[1],n[1],"important")):_i(t,i,n));return n}function vi(t,i,n=!1){if(t.multiple){if(null==i)return;if(!e(i))return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");for(var o of t.options)o.selected=i.includes(bi(o))}else{for(o of t.options){var s=bi(o);if(r=s,a=i,Object.is(Et(r),Et(a)))return void(o.selected=!0)}var r,a;n&&void 0===i||(t.selectedIndex=-1)}}function yi(t,e,i=e){var n=!0;$e(t,"change",(e=>{var n,o=e?"[selected]":":checked";if(t.multiple)n=[].map.call(t.querySelectorAll(o),bi);else{var s=t.querySelector(o)??t.querySelector("option:not([disabled])");n=s&&bi(s)}i(n)})),Wt((()=>{var o=e();if(vi(t,o,n),n&&void 0===o){var s=t.querySelector(":checked");null!==s&&(o=bi(s),i(o))}t.__value=o,n=!1})),function(t){var e=new MutationObserver((()=>{vi(t,t.__value)}));e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ft((()=>{e.disconnect()}))}(t)}function bi(t){return"__value"in t?t.__value:t.value}const wi=Symbol("is custom element"),xi=Symbol("is html");function Li(t,e){var i=ki(t);i.value!==(i.value=e??void 0)&&(t.value!==e||0===e&&"PROGRESS"===t.nodeName)&&(t.value=e??"")}function Pi(t,e){var i=ki(t);i.checked!==(i.checked=e??void 0)&&(t.checked=e)}function Ti(t,e,i,n){var o=ki(t);o[e]!==(o[e]=i)&&("loading"===e&&(t[I]=i),null==i?t.removeAttribute(e):"string"!=typeof i&&function(t){var e,i=Mi.get(t.nodeName);if(i)return i;Mi.set(t.nodeName,i=[]);var n=t,o=Element.prototype;for(;o!==n;){for(var s in e=r(n))e[s].set&&i.push(s);n=c(n)}return i}(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function ki(t){return t.__attributes??={[wi]:t.nodeName.includes("-"),[xi]:"http://www.w3.org/1999/xhtml"===t.namespaceURI}}var Mi=new Map;function Ci(t,e,i=e){var n=q(),o=new WeakSet;$e(t,"input",(s=>{var r=s?t.defaultValue:t.value;if(r=Ei(t)?Ai(r):r,i(r),null!==lt&&o.add(lt),n&&r!==(r=e())){var a=t.selectionStart,l=t.selectionEnd;t.value=r??"",null!==l&&(t.selectionStart=a,t.selectionEnd=Math.min(l,t.value.length))}})),null==ze(e)&&t.value&&(i(Ei(t)?Ai(t.value):t.value),null!==lt&&o.add(lt)),function(t,e=0){$t(8|e,t,!0)}((()=>{var i=e();if(t===document.activeElement){var n=ct??lt;if(o.has(n))return}Ei(t)&&i===Ai(t.value)||("date"!==t.type||i||t.value)&&i!==t.value&&(t.value=i??"")}))}function Ei(t){var e=t.type;return"number"===e||"range"===e}function Ai(t){return""===t?null:+t}function Si(t=!1){const e=R,i=e.l.u;if(!i)return;let n=()=>function(t){if("object"==typeof t&&t&&!(t instanceof EventTarget))if(O in t)Ne(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];"object"==typeof i&&i&&O in i&&Ne(i)}}(e.s);if(t){let t=0,i={};const o=J((()=>{let n=!1;const o=e.s;for(const t in o)o[t]!==i[t]&&(i[t]=o[t],n=!0);return n&&t++,t}));n=()=>Se(o)}var o;i.b.length&&(o=()=>{Oi(e,n),p(i.b)},Rt(),$t(1048584,o,!0)),Ht((()=>{const t=ze((()=>i.m.map(d)));return()=>{for(const e of t)"function"==typeof e&&e()}})),i.a.length&&Ht((()=>{Oi(e,n),p(i.a)}))}function Oi(t,e){if(t.l.s)for(const e of t.l.s)Se(e);e()}let zi=!1;function Ii(t,e,i,n){var o,r,a=!j||!!(2&i),l=!!(8&i),c=!!(16&i),h=n,u=!0,d=()=>(u&&(u=!1,h=c?ze(n):n),h);if(l){var p=O in t||z in t;o=s(t,e)?.set??(p&&e in t?i=>t[e]=i:void 0)}var f,m=!1;if(l?[r,m]=function(t){var e=zi;try{return zi=!1,[t(),zi]}finally{zi=e}}((()=>t[e])):r=t[e],void 0===r&&void 0!==n&&(r=d(),o&&(a&&function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),o(r))),f=a?()=>{var i=t[e];return void 0===i?d():(u=!0,i)}:()=>{var i=t[e];return void 0!==i&&(h=void 0),void 0===i?h:i},a&&!(4&i))return f;if(o){var _=t.$$legacy;return function(t,e){return arguments.length>0?(a&&e&&!_&&!m||o(e?f():t),t):f()}}var g=!1,v=(1&i?J:et)((()=>(g=!1,f())));l&&Se(v);var y=de;return function(t,e){if(arguments.length>0){const i=e?Se(v):a&&l?Ct(t):t;return Pt(v,i),g=!0,void 0!==h&&(h=i),t}return ae&&g||0!==(y.f&x)?v.v:Se(v)}}function Di(t){var e,i;null===R&&function(){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}(),j&&null!==R.l?(e=R,i=e.l,i.u??={a:[],b:[],m:[]}).m.push(t):Ht((()=>{const e=ze(t);if("function"==typeof e)return e}))}function Ni(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}"undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5"),j=!0;var Bi,Zi={exports:{}};
2 /*!
3           * Bootstrap v5.3.7 (https://getbootstrap.com/)
4           * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
5           * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
6           */Bi||(Bi=1,Zi.exports=function(){const t=new Map,e={set(e,i,n){t.has(e)||t.set(e,new Map);const o=t.get(e);o.has(i)||0===o.size?o.set(i,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`)},get:(e,i)=>t.has(e)&&t.get(e).get(i)||null,remove(e,i){if(!t.has(e))return;const n=t.get(e);n.delete(i),0===n.size&&t.delete(e)}},i=1e6,n=1e3,o="transitionend",s=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),r=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),a=t=>{do{t+=Math.floor(Math.random()*i)}while(document.getElementById(t));return t},l=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const o=Number.parseFloat(e),s=Number.parseFloat(i);return o||s?(e=e.split(",")[0],i=i.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(i))*n):0},c=t=>{t.dispatchEvent(new Event(o))},h=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),u=t=>h(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(s(t)):null,d=t=>{if(!h(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},p=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),f=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?f(t.parentNode):null},m=()=>{},_=t=>{t.offsetHeight},g=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,v=[],y=t=>{"loading"===document.readyState?(v.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of v)t()})),v.push(t)):t()},b=()=>"rtl"===document.documentElement.dir,w=t=>{y((()=>{const e=g();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}}))},x=(t,e=[],i=t)=>"function"==typeof t?t.call(...e):i,L=(t,e,i=!0)=>{if(!i)return void x(t);const n=5,s=l(e)+n;let r=!1;const a=({target:i})=>{i===e&&(r=!0,e.removeEventListener(o,a),x(t))};e.addEventListener(o,a),setTimeout((()=>{r||c(e)}),s)},P=(t,e,i,n)=>{const o=t.length;let s=t.indexOf(e);return-1===s?!i&&n?t[o-1]:t[0]:(s+=i?1:-1,n&&(s=(s+o)%o),t[Math.max(0,Math.min(s,o-1))])},T=/[^.]*(?=\..*)\.|.*/,k=/\..*/,M=/::\d+$/,C={};let E=1;const A={mouseenter:"mouseover",mouseleave:"mouseout"},S=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function O(t,e){return e&&`${e}::${E++}`||t.uidEvent||E++}function z(t){const e=O(t);return t.uidEvent=e,C[e]=C[e]||{},C[e]}function I(t,e){return function i(n){return H(n,{delegateTarget:t}),i.oneOff&&F.off(t,n.type,e),e.apply(t,[n])}}function D(t,e,i){return function n(o){const s=t.querySelectorAll(e);for(let{target:r}=o;r&&r!==this;r=r.parentNode)for(const a of s)if(a===r)return H(o,{delegateTarget:r}),n.oneOff&&F.off(t,o.type,e,i),i.apply(r,[o])}}function N(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function B(t,e,i){const n="string"==typeof e,o=n?i:e||i;let s=$(t);return S.has(s)||(s=t),[n,o,s]}function Z(t,e,i,n,o){if("string"!=typeof e||!t)return;let[s,r,a]=B(e,i,n);if(e in A){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=z(t),c=l[a]||(l[a]={}),h=N(c,r,s?i:null);if(h)return void(h.oneOff=h.oneOff&&o);const u=O(r,e.replace(T,"")),d=s?D(t,i,r):I(t,r);d.delegationSelector=s?i:null,d.callable=r,d.oneOff=o,d.uidEvent=u,c[u]=d,t.addEventListener(a,d,s)}function j(t,e,i,n,o){const s=N(e[i],n,o);s&&(t.removeEventListener(i,s,Boolean(o)),delete e[i][s.uidEvent])}function R(t,e,i,n){const o=e[i]||{};for(const[s,r]of Object.entries(o))s.includes(n)&&j(t,e,i,r.callable,r.delegationSelector)}function $(t){return t=t.replace(k,""),A[t]||t}const F={on(t,e,i,n){Z(t,e,i,n,!1)},one(t,e,i,n){Z(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[o,s,r]=B(e,i,n),a=r!==e,l=z(t),c=l[r]||{},h=e.startsWith(".");if(void 0===s){if(h)for(const i of Object.keys(l))R(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const o=i.replace(M,"");a&&!e.includes(o)||j(t,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;j(t,l,r,s,o?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=g();let o=null,s=!0,r=!0,a=!1;e!==$(e)&&n&&(o=n.Event(e,i),n(t).trigger(o),s=!o.isPropagationStopped(),r=!o.isImmediatePropagationStopped(),a=o.isDefaultPrevented());const l=H(new Event(e,{bubbles:s,cancelable:!0}),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&o&&o.preventDefault(),l}};function H(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function q(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function W(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const U={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${W(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${W(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1),e[i]=q(t.dataset[n])}return e},getDataAttribute:(t,e)=>q(t.getAttribute(`data-bs-${W(e)}`))};class V{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=h(e)?U.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...h(e)?U.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,n]of Object.entries(e)){const e=t[i],o=h(e)?"element":r(e);if(!new RegExp(n).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${n}".`)}}}const K="5.3.7";class G extends V{constructor(t,i){super(),(t=u(t))&&(this._element=t,this._config=this._getConfig(i),e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){e.remove(this._element,this.constructor.DATA_KEY),F.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){L(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return e.get(u(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return K}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Y=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e?e.split(",").map((t=>s(t))).join(","):null},X={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!p(t)&&d(t)))},getSelectorFromElement(t){const e=Y(t);return e&&X.findOne(e)?e:null},getElementFromSelector(t){const e=Y(t);return e?X.findOne(e):null},getMultipleElementsFromSelector(t){const e=Y(t);return e?X.find(e):[]}},J=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;F.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),p(this))return;const o=X.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(o)[e]()}))},Q="alert",tt=".bs.alert",et=`close${tt}`,it=`closed${tt}`,nt="fade",ot="show";class st extends G{static get NAME(){return Q}close(){if(F.trigger(this._element,et).defaultPrevented)return;this._element.classList.remove(ot);const t=this._element.classList.contains(nt);this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),F.trigger(this._element,it),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=st.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}J(st,"close"),w(st);const rt="button",at="active",lt='[data-bs-toggle="button"]',ct="click.bs.button.data-api";class ht extends G{static get NAME(){return rt}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(at))}static jQueryInterface(t){return this.each((function(){const e=ht.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}F.on(document,ct,lt,(t=>{t.preventDefault();const e=t.target.closest(lt);ht.getOrCreateInstance(e).toggle()})),w(ht);const ut="swipe",dt=".bs.swipe",pt=`touchstart${dt}`,ft=`touchmove${dt}`,mt=`touchend${dt}`,_t=`pointerdown${dt}`,gt=`pointerup${dt}`,vt="touch",yt="pen",bt="pointer-event",wt=40,xt={endCallback:null,leftCallback:null,rightCallback:null},Lt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Pt extends V{constructor(t,e){super(),this._element=t,t&&Pt.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return xt}static get DefaultType(){return Lt}static get NAME(){return ut}dispose(){F.off(this._element,dt)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),x(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=wt)return;const e=t/this._deltaX;this._deltaX=0,e&&x(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(F.on(this._element,_t,(t=>this._start(t))),F.on(this._element,gt,(t=>this._end(t))),this._element.classList.add(bt)):(F.on(this._element,pt,(t=>this._start(t))),F.on(this._element,ft,(t=>this._move(t))),F.on(this._element,mt,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===yt||t.pointerType===vt)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Tt="carousel",kt=".bs.carousel",Mt=".data-api",Ct="ArrowLeft",Et="ArrowRight",At=500,St="next",Ot="prev",zt="left",It="right",Dt=`slide${kt}`,Nt=`slid${kt}`,Bt=`keydown${kt}`,Zt=`mouseenter${kt}`,jt=`mouseleave${kt}`,Rt=`dragstart${kt}`,$t=`load${kt}${Mt}`,Ft=`click${kt}${Mt}`,Ht="carousel",qt="active",Wt="slide",Ut="carousel-item-end",Vt="carousel-item-start",Kt="carousel-item-next",Gt="carousel-item-prev",Yt=".active",Xt=".carousel-item",Jt=Yt+Xt,Qt=".carousel-item img",te=".carousel-indicators",ee="[data-bs-slide], [data-bs-slide-to]",ie='[data-bs-ride="carousel"]',ne={[Ct]:It,[Et]:zt},oe={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},se={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class re extends G{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=X.findOne(te,this._element),this._addEventListeners(),this._config.ride===Ht&&this.cycle()}static get Default(){return oe}static get DefaultType(){return se}static get NAME(){return Tt}next(){this._slide(St)}nextWhenVisible(){!document.hidden&&d(this._element)&&this.next()}prev(){this._slide(Ot)}pause(){this._isSliding&&c(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?F.one(this._element,Nt,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void F.one(this._element,Nt,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?St:Ot;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&F.on(this._element,Bt,(t=>this._keydown(t))),"hover"===this._config.pause&&(F.on(this._element,Zt,(()=>this.pause())),F.on(this._element,jt,(()=>this._maybeEnableCycle()))),this._config.touch&&Pt.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of X.find(Qt,this._element))F.on(t,Rt,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(zt)),rightCallback:()=>this._slide(this._directionToOrder(It)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),At+this._config.interval))}};this._swipeHelper=new Pt(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=ne[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=X.findOne(Yt,this._indicatorsElement);e.classList.remove(qt),e.removeAttribute("aria-current");const i=X.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(qt),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===St,o=e||P(this._getItems(),i,n,this._config.wrap);if(o===i)return;const s=this._getItemIndex(o),r=e=>F.trigger(this._element,e,{relatedTarget:o,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:s});if(r(Dt).defaultPrevented)return;if(!i||!o)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=o;const l=n?Vt:Ut,c=n?Kt:Gt;o.classList.add(c),_(o),i.classList.add(l),o.classList.add(l);const h=()=>{o.classList.remove(l,c),o.classList.add(qt),i.classList.remove(qt,c,l),this._isSliding=!1,r(Nt)};this._queueCallback(h,i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains(Wt)}_getActive(){return X.findOne(Jt,this._element)}_getItems(){return X.find(Xt,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return b()?t===zt?Ot:St:t===zt?St:Ot}_orderToDirection(t){return b()?t===Ot?zt:It:t===Ot?It:zt}static jQueryInterface(t){return this.each((function(){const e=re.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}F.on(document,Ft,ee,(function(t){const e=X.getElementFromSelector(this);if(!e||!e.classList.contains(Ht))return;t.preventDefault();const i=re.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===U.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),F.on(window,$t,(()=>{const t=X.find(ie);for(const e of t)re.getOrCreateInstance(e)})),w(re);const ae="collapse",le=".bs.collapse",ce=`show${le}`,he=`shown${le}`,ue=`hide${le}`,de=`hidden${le}`,pe=`click${le}.data-api`,fe="show",me="collapse",_e="collapsing",ge="collapsed",ve=`:scope .${me} .${me}`,ye="collapse-horizontal",be="width",we="height",xe=".collapse.show, .collapse.collapsing",Le='[data-bs-toggle="collapse"]',Pe={parent:null,toggle:!0},Te={parent:"(null|element)",toggle:"boolean"};class ke extends G{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=X.find(Le);for(const t of i){const e=X.getSelectorFromElement(t),i=X.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Pe}static get DefaultType(){return Te}static get NAME(){return ae}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(xe).filter((t=>t!==this._element)).map((t=>ke.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(F.trigger(this._element,ce).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(me),this._element.classList.add(_e),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(_e),this._element.classList.add(me,fe),this._element.style[e]="",F.trigger(this._element,he)},n=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[e]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(F.trigger(this._element,ue).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,_(this._element),this._element.classList.add(_e),this._element.classList.remove(me,fe);for(const t of this._triggerArray){const e=X.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;const e=()=>{this._isTransitioning=!1,this._element.classList.remove(_e),this._element.classList.add(me),F.trigger(this._element,de)};this._element.style[t]="",this._queueCallback(e,this._element,!0)}_isShown(t=this._element){return t.classList.contains(fe)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=u(t.parent),t}_getDimension(){return this._element.classList.contains(ye)?be:we}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Le);for(const e of t){const t=X.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=X.find(ve,this._config.parent);return X.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle(ge,!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=ke.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}F.on(document,pe,Le,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of X.getMultipleElementsFromSelector(this))ke.getOrCreateInstance(t,{toggle:!1}).toggle()})),w(ke);var Me="top",Ce="bottom",Ee="right",Ae="left",Se="auto",Oe=[Me,Ce,Ee,Ae],ze="start",Ie="end",De="clippingParents",Ne="viewport",Be="popper",Ze="reference",je=Oe.reduce((function(t,e){return t.concat([e+"-"+ze,e+"-"+Ie])}),[]),Re=[].concat(Oe,[Se]).reduce((function(t,e){return t.concat([e,e+"-"+ze,e+"-"+Ie])}),[]),$e="beforeRead",Fe="read",He="afterRead",qe="beforeMain",We="main",Ue="afterMain",Ve="beforeWrite",Ke="write",Ge="afterWrite",Ye=[$e,Fe,He,qe,We,Ue,Ve,Ke,Ge];function Xe(t){return t?(t.nodeName||"").toLowerCase():null}function Je(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Qe(t){return t instanceof Je(t).Element||t instanceof Element}function ti(t){return t instanceof Je(t).HTMLElement||t instanceof HTMLElement}function ei(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Je(t).ShadowRoot||t instanceof ShadowRoot)}function ii(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},o=e.elements[t];ti(o)&&Xe(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))}function ni(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],o=e.attributes[t]||{},s=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});ti(n)&&Xe(n)&&(Object.assign(n.style,s),Object.keys(o).forEach((function(t){n.removeAttribute(t)})))}))}}const oi={name:"applyStyles",enabled:!0,phase:"write",fn:ii,effect:ni,requires:["computeStyles"]};function si(t){return t.split("-")[0]}var ri=Math.max,ai=Math.min,li=Math.round;function ci(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function hi(){return!/^((?!chrome|android).)*safari/i.test(ci())}function ui(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),o=1,s=1;e&&ti(t)&&(o=t.offsetWidth>0&&li(n.width)/t.offsetWidth||1,s=t.offsetHeight>0&&li(n.height)/t.offsetHeight||1);var r=(Qe(t)?Je(t):window).visualViewport,a=!hi()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/o,c=(n.top+(a&&r?r.offsetTop:0))/s,h=n.width/o,u=n.height/s;return{width:h,height:u,top:c,right:l+h,bottom:c+u,left:l,x:l,y:c}}function di(t){var e=ui(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function pi(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&ei(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function fi(t){return Je(t).getComputedStyle(t)}function mi(t){return["table","td","th"].indexOf(Xe(t))>=0}function _i(t){return((Qe(t)?t.ownerDocument:t.document)||window.document).documentElement}function gi(t){return"html"===Xe(t)?t:t.assignedSlot||t.parentNode||(ei(t)?t.host:null)||_i(t)}function vi(t){return ti(t)&&"fixed"!==fi(t).position?t.offsetParent:null}function yi(t){var e=/firefox/i.test(ci());if(/Trident/i.test(ci())&&ti(t)&&"fixed"===fi(t).position)return null;var i=gi(t);for(ei(i)&&(i=i.host);ti(i)&&["html","body"].indexOf(Xe(i))<0;){var n=fi(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}function bi(t){for(var e=Je(t),i=vi(t);i&&mi(i)&&"static"===fi(i).position;)i=vi(i);return i&&("html"===Xe(i)||"body"===Xe(i)&&"static"===fi(i).position)?e:i||yi(t)||e}function wi(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function xi(t,e,i){return ri(t,ai(e,i))}function Li(t,e,i){var n=xi(t,e,i);return n>i?i:n}function Pi(){return{top:0,right:0,bottom:0,left:0}}function Ti(t){return Object.assign({},Pi(),t)}function ki(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}var Mi=function(t,e){return Ti("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:ki(t,Oe))};function Ci(t){var e,i=t.state,n=t.name,o=t.options,s=i.elements.arrow,r=i.modifiersData.popperOffsets,a=si(i.placement),l=wi(a),c=[Ae,Ee].indexOf(a)>=0?"height":"width";if(s&&r){var h=Mi(o.padding,i),u=di(s),d="y"===l?Me:Ae,p="y"===l?Ce:Ee,f=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],_=bi(s),g=_?"y"===l?_.clientHeight||0:_.clientWidth||0:0,v=f/2-m/2,y=h[d],b=g-u[c]-h[p],w=g/2-u[c]/2+v,x=xi(y,w,b),L=l;i.modifiersData[n]=((e={})[L]=x,e.centerOffset=x-w,e)}}function Ei(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&pi(e.elements.popper,n)&&(e.elements.arrow=n)}const Ai={name:"arrow",enabled:!0,phase:"main",fn:Ci,effect:Ei,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Si(t){return t.split("-")[1]}var Oi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zi(t,e){var i=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:li(i*o)/o||0,y:li(n*o)/o||0}}function Ii(t){var e,i=t.popper,n=t.popperRect,o=t.placement,s=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,u=t.isFixed,d=r.x,p=void 0===d?0:d,f=r.y,m=void 0===f?0:f,_="function"==typeof h?h({x:p,y:m}):{x:p,y:m};p=_.x,m=_.y;var g=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),y=Ae,b=Me,w=window;if(c){var x=bi(i),L="clientHeight",P="clientWidth";x===Je(i)&&"static"!==fi(x=_i(i)).position&&"absolute"===a&&(L="scrollHeight",P="scrollWidth"),(o===Me||(o===Ae||o===Ee)&&s===Ie)&&(b=Ce,m-=(u&&x===w&&w.visualViewport?w.visualViewport.height:x[L])-n.height,m*=l?1:-1),o!==Ae&&(o!==Me&&o!==Ce||s!==Ie)||(y=Ee,p-=(u&&x===w&&w.visualViewport?w.visualViewport.width:x[P])-n.width,p*=l?1:-1)}var T,k=Object.assign({position:a},c&&Oi),M=!0===h?zi({x:p,y:m},Je(i)):{x:p,y:m};return p=M.x,m=M.y,l?Object.assign({},k,((T={})[b]=v?"0":"",T[y]=g?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",T)):Object.assign({},k,((e={})[b]=v?m+"px":"",e[y]=g?p+"px":"",e.transform="",e))}function Di(t){var e=t.state,i=t.options,n=i.gpuAcceleration,o=void 0===n||n,s=i.adaptive,r=void 0===s||s,a=i.roundOffsets,l=void 0===a||a,c={placement:si(e.placement),variation:Si(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Ii(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ii(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Ni={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Di,data:{}};var Bi={passive:!0};function Zi(t){var e=t.state,i=t.instance,n=t.options,o=n.scroll,s=void 0===o||o,r=n.resize,a=void 0===r||r,l=Je(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach((function(t){t.addEventListener("scroll",i.update,Bi)})),a&&l.addEventListener("resize",i.update,Bi),function(){s&&c.forEach((function(t){t.removeEventListener("scroll",i.update,Bi)})),a&&l.removeEventListener("resize",i.update,Bi)}}const ji={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Zi,data:{}};var Ri={left:"right",right:"left",bottom:"top",top:"bottom"};function $i(t){return t.replace(/left|right|bottom|top/g,(function(t){return Ri[t]}))}var Fi={start:"end",end:"start"};function Hi(t){return t.replace(/start|end/g,(function(t){return Fi[t]}))}function qi(t){var e=Je(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Wi(t){return ui(_i(t)).left+qi(t).scrollLeft}function Ui(t,e){var i=Je(t),n=_i(t),o=i.visualViewport,s=n.clientWidth,r=n.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;var c=hi();(c||!c&&"fixed"===e)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a+Wi(t),y:l}}function Vi(t){var e,i=_i(t),n=qi(t),o=null==(e=t.ownerDocument)?void 0:e.body,s=ri(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=ri(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Wi(t),l=-n.scrollTop;return"rtl"===fi(o||i).direction&&(a+=ri(i.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}function Ki(t){var e=fi(t),i=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function Gi(t){return["html","body","#document"].indexOf(Xe(t))>=0?t.ownerDocument.body:ti(t)&&Ki(t)?t:Gi(gi(t))}function Yi(t,e){var i;void 0===e&&(e=[]);var n=Gi(t),o=n===(null==(i=t.ownerDocument)?void 0:i.body),s=Je(n),r=o?[s].concat(s.visualViewport||[],Ki(n)?n:[]):n,a=e.concat(r);return o?a:a.concat(Yi(gi(r)))}function Xi(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ji(t,e){var i=ui(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function Qi(t,e,i){return e===Ne?Xi(Ui(t,i)):Qe(e)?Ji(e,i):Xi(Vi(_i(t)))}function tn(t){var e=Yi(gi(t)),i=["absolute","fixed"].indexOf(fi(t).position)>=0&&ti(t)?bi(t):t;return Qe(i)?e.filter((function(t){return Qe(t)&&pi(t,i)&&"body"!==Xe(t)})):[]}function en(t,e,i,n){var o="clippingParents"===e?tn(t):[].concat(e),s=[].concat(o,[i]),r=s[0],a=s.reduce((function(e,i){var o=Qi(t,i,n);return e.top=ri(o.top,e.top),e.right=ai(o.right,e.right),e.bottom=ai(o.bottom,e.bottom),e.left=ri(o.left,e.left),e}),Qi(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function nn(t){var e,i=t.reference,n=t.element,o=t.placement,s=o?si(o):null,r=o?Si(o):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(s){case Me:e={x:a,y:i.y-n.height};break;case Ce:e={x:a,y:i.y+i.height};break;case Ee:e={x:i.x+i.width,y:l};break;case Ae:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=s?wi(s):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case ze:e[c]=e[c]-(i[h]/2-n[h]/2);break;case Ie:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function on(t,e){void 0===e&&(e={});var i=e,n=i.placement,o=void 0===n?t.placement:n,s=i.strategy,r=void 0===s?t.strategy:s,a=i.boundary,l=void 0===a?De:a,c=i.rootBoundary,h=void 0===c?Ne:c,u=i.elementContext,d=void 0===u?Be:u,p=i.altBoundary,f=void 0!==p&&p,m=i.padding,_=void 0===m?0:m,g=Ti("number"!=typeof _?_:ki(_,Oe)),v=d===Be?Ze:Be,y=t.rects.popper,b=t.elements[f?v:d],w=en(Qe(b)?b:b.contextElement||_i(t.elements.popper),l,h,r),x=ui(t.elements.reference),L=nn({reference:x,element:y,placement:o}),P=Xi(Object.assign({},y,L)),T=d===Be?P:x,k={top:w.top-T.top+g.top,bottom:T.bottom-w.bottom+g.bottom,left:w.left-T.left+g.left,right:T.right-w.right+g.right},M=t.modifiersData.offset;if(d===Be&&M){var C=M[o];Object.keys(k).forEach((function(t){var e=[Ee,Ce].indexOf(t)>=0?1:-1,i=[Me,Ce].indexOf(t)>=0?"y":"x";k[t]+=C[i]*e}))}return k}function sn(t,e){void 0===e&&(e={});var i=e,n=i.placement,o=i.boundary,s=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Re:l,h=Si(n),u=h?a?je:je.filter((function(t){return Si(t)===h})):Oe,d=u.filter((function(t){return c.indexOf(t)>=0}));0===d.length&&(d=u);var p=d.reduce((function(e,i){return e[i]=on(t,{placement:i,boundary:o,rootBoundary:s,padding:r})[si(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}function rn(t){if(si(t)===Se)return[];var e=$i(t);return[Hi(t),e,Hi(e)]}function an(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=i.mainAxis,s=void 0===o||o,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,u=i.rootBoundary,d=i.altBoundary,p=i.flipVariations,f=void 0===p||p,m=i.allowedAutoPlacements,_=e.options.placement,g=si(_),v=l||(g!==_&&f?rn(_):[$i(_)]),y=[_].concat(v).reduce((function(t,i){return t.concat(si(i)===Se?sn(e,{placement:i,boundary:h,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:m}):i)}),[]),b=e.rects.reference,w=e.rects.popper,x=new Map,L=!0,P=y[0],T=0;T<y.length;T++){var k=y[T],M=si(k),C=Si(k)===ze,E=[Me,Ce].indexOf(M)>=0,A=E?"width":"height",S=on(e,{placement:k,boundary:h,rootBoundary:u,altBoundary:d,padding:c}),O=E?C?Ee:Ae:C?Ce:Me;b[A]>w[A]&&(O=$i(O));var z=$i(O),I=[];if(s&&I.push(S[M]<=0),a&&I.push(S[O]<=0,S[z]<=0),I.every((function(t){return t}))){P=k,L=!1;break}x.set(k,I)}if(L)for(var D=function(t){var e=y.find((function(e){var i=x.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return P=e,"break"},N=f?3:1;N>0&&"break"!==D(N);N--);e.placement!==P&&(e.modifiersData[n]._skip=!0,e.placement=P,e.reset=!0)}}const ln={name:"flip",enabled:!0,phase:"main",fn:an,requiresIfExists:["offset"],data:{_skip:!1}};function cn(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function hn(t){return[Me,Ee,Ce,Ae].some((function(e){return t[e]>=0}))}function un(t){var e=t.state,i=t.name,n=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,r=on(e,{elementContext:"reference"}),a=on(e,{altBoundary:!0}),l=cn(r,n),c=cn(a,o,s),h=hn(l),u=hn(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}const dn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:un};function pn(t,e,i){var n=si(t),o=[Ae,Me].indexOf(n)>=0?-1:1,s="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=s[0],a=s[1];return r=r||0,a=(a||0)*o,[Ae,Ee].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}function fn(t){var e=t.state,i=t.options,n=t.name,o=i.offset,s=void 0===o?[0,0]:o,r=Re.reduce((function(t,i){return t[i]=pn(i,e.rects,s),t}),{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}const mn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fn};function _n(t){var e=t.state,i=t.name;e.modifiersData[i]=nn({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const gn={name:"popperOffsets",enabled:!0,phase:"read",fn:_n,data:{}};function vn(t){return"x"===t?"y":"x"}function yn(t){var e=t.state,i=t.options,n=t.name,o=i.mainAxis,s=void 0===o||o,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,u=i.padding,d=i.tether,p=void 0===d||d,f=i.tetherOffset,m=void 0===f?0:f,_=on(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:h}),g=si(e.placement),v=Si(e.placement),y=!v,b=wi(g),w=vn(b),x=e.modifiersData.popperOffsets,L=e.rects.reference,P=e.rects.popper,T="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,k="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,C={x:0,y:0};if(x){if(s){var E,A="y"===b?Me:Ae,S="y"===b?Ce:Ee,O="y"===b?"height":"width",z=x[b],I=z+_[A],D=z-_[S],N=p?-P[O]/2:0,B=v===ze?L[O]:P[O],Z=v===ze?-P[O]:-L[O],j=e.elements.arrow,R=p&&j?di(j):{width:0,height:0},$=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Pi(),F=$[A],H=$[S],q=xi(0,L[O],R[O]),W=y?L[O]/2-N-q-F-k.mainAxis:B-q-F-k.mainAxis,U=y?-L[O]/2+N+q+H+k.mainAxis:Z+q+H+k.mainAxis,V=e.elements.arrow&&bi(e.elements.arrow),K=V?"y"===b?V.clientTop||0:V.clientLeft||0:0,G=null!=(E=null==M?void 0:M[b])?E:0,Y=z+U-G,X=xi(p?ai(I,z+W-G-K):I,z,p?ri(D,Y):D);x[b]=X,C[b]=X-z}if(a){var J,Q="x"===b?Me:Ae,tt="x"===b?Ce:Ee,et=x[w],it="y"===w?"height":"width",nt=et+_[Q],ot=et-_[tt],st=-1!==[Me,Ae].indexOf(g),rt=null!=(J=null==M?void 0:M[w])?J:0,at=st?nt:et-L[it]-P[it]-rt+k.altAxis,lt=st?et+L[it]+P[it]-rt-k.altAxis:ot,ct=p&&st?Li(at,et,lt):xi(p?at:nt,et,p?lt:ot);x[w]=ct,C[w]=ct-et}e.modifiersData[n]=C}}const bn={name:"preventOverflow",enabled:!0,phase:"main",fn:yn,requiresIfExists:["offset"]};function wn(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function xn(t){return t!==Je(t)&&ti(t)?wn(t):qi(t)}function Ln(t){var e=t.getBoundingClientRect(),i=li(e.width)/t.offsetWidth||1,n=li(e.height)/t.offsetHeight||1;return 1!==i||1!==n}function Pn(t,e,i){void 0===i&&(i=!1);var n=ti(e),o=ti(e)&&Ln(e),s=_i(e),r=ui(t,o,i),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!i)&&(("body"!==Xe(e)||Ki(s))&&(a=xn(e)),ti(e)?((l=ui(e,!0)).x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=Wi(s))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function Tn(t){var e=new Map,i=new Set,n=[];function o(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&o(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||o(t)})),n}function kn(t){var e=Tn(t);return Ye.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}function Mn(t){var e;return function(){return e||(e=new Promise((function(i){Promise.resolve().then((function(){e=void 0,i(t())}))}))),e}}function Cn(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}var En={placement:"bottom",modifiers:[],strategy:"absolute"};function An(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Sn(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,o=e.defaultOptions,s=void 0===o?En:o;return function(t,e,i){void 0===i&&(i=s);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},En,s),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},r=[],a=!1,l={state:o,setOptions:function(i){var r="function"==typeof i?i(o.options):i;h(),o.options=Object.assign({},s,o.options,r),o.scrollParents={reference:Qe(t)?Yi(t):t.contextElement?Yi(t.contextElement):[],popper:Yi(e)};var a=kn(Cn([].concat(n,o.options.modifiers)));return o.orderedModifiers=a.filter((function(t){return t.enabled})),c(),l.update()},forceUpdate:function(){if(!a){var t=o.elements,e=t.reference,i=t.popper;if(An(e,i)){o.rects={reference:Pn(e,bi(i),"fixed"===o.options.strategy),popper:di(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var s=o.orderedModifiers[n],r=s.fn,c=s.options,h=void 0===c?{}:c,u=s.name;"function"==typeof r&&(o=r({state:o,options:h,name:u,instance:l})||o)}else o.reset=!1,n=-1}}},update:Mn((function(){return new Promise((function(t){l.forceUpdate(),t(o)}))})),destroy:function(){h(),a=!0}};if(!An(t,e))return l;function c(){o.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var a=s({state:o,name:e,instance:l,options:n}),c=function(){};r.push(a||c)}}))}function h(){r.forEach((function(t){return t()})),r=[]}return l.setOptions(i).then((function(t){!a&&i.onFirstUpdate&&i.onFirstUpdate(t)})),l}}var On=Sn(),zn=Sn({defaultModifiers:[ji,gn,Ni,oi]}),In=Sn({defaultModifiers:[ji,gn,Ni,oi,mn,ln,bn,Ai,dn]});const Dn=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Ue,afterRead:He,afterWrite:Ge,applyStyles:oi,arrow:Ai,auto:Se,basePlacements:Oe,beforeMain:qe,beforeRead:$e,beforeWrite:Ve,bottom:Ce,clippingParents:De,computeStyles:Ni,createPopper:In,createPopperBase:On,createPopperLite:zn,detectOverflow:on,end:Ie,eventListeners:ji,flip:ln,hide:dn,left:Ae,main:We,modifierPhases:Ye,offset:mn,placements:Re,popper:Be,popperGenerator:Sn,popperOffsets:gn,preventOverflow:bn,read:Fe,reference:Ze,right:Ee,start:ze,top:Me,variationPlacements:je,viewport:Ne,write:Ke},Symbol.toStringTag,{value:"Module"})),Nn="dropdown",Bn=".bs.dropdown",Zn=".data-api",jn="Escape",Rn="Tab",$n="ArrowUp",Fn="ArrowDown",Hn=2,qn=`hide${Bn}`,Wn=`hidden${Bn}`,Un=`show${Bn}`,Vn=`shown${Bn}`,Kn=`click${Bn}${Zn}`,Gn=`keydown${Bn}${Zn}`,Yn=`keyup${Bn}${Zn}`,Xn="show",Jn="dropup",Qn="dropend",to="dropstart",eo="dropup-center",io="dropdown-center",no='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',oo=`${no}.${Xn}`,so=".dropdown-menu",ro=".navbar",ao=".navbar-nav",lo=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",co=b()?"top-end":"top-start",ho=b()?"top-start":"top-end",uo=b()?"bottom-end":"bottom-start",po=b()?"bottom-start":"bottom-end",fo=b()?"left-start":"right-start",mo=b()?"right-start":"left-start",_o="top",go="bottom",vo={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},yo={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class bo extends G{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=X.next(this._element,so)[0]||X.prev(this._element,so)[0]||X.findOne(so,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return vo}static get DefaultType(){return yo}static get NAME(){return Nn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(p(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!F.trigger(this._element,Un,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(ao))for(const t of[].concat(...document.body.children))F.on(t,"mouseover",m);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Xn),this._element.classList.add(Xn),F.trigger(this._element,Vn,t)}}hide(){if(p(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!F.trigger(this._element,qn,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))F.off(t,"mouseover",m);this._popper&&this._popper.destroy(),this._menu.classList.remove(Xn),this._element.classList.remove(Xn),this._element.setAttribute("aria-expanded","false"),U.removeDataAttribute(this._menu,"popper"),F.trigger(this._element,Wn,t),this._element.focus()}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!h(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Nn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===Dn)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;"parent"===this._config.reference?t=this._parent:h(this._config.reference)?t=u(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=In(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Xn)}_getPlacement(){const t=this._parent;if(t.classList.contains(Qn))return fo;if(t.classList.contains(to))return mo;if(t.classList.contains(eo))return _o;if(t.classList.contains(io))return go;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains(Jn)?e?ho:co:e?po:uo}_detectNavbar(){return null!==this._element.closest(ro)}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(U.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...x(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){const i=X.find(lo,this._menu).filter((t=>d(t)));i.length&&P(i,e,t===Fn,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=bo.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(t.button===Hn||"keyup"===t.type&&t.key!==Rn)return;const e=X.find(oo);for(const i of e){const e=bo.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),o=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!o||"outside"===e._config.autoClose&&o)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&t.key===Rn||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const s={relatedTarget:e._element};"click"===t.type&&(s.clickEvent=t),e._completeHide(s)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i=t.key===jn,n=[$n,Fn].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const o=this.matches(no)?this:X.prev(this,no)[0]||X.next(this,no)[0]||X.findOne(no,t.delegateTarget.parentNode),s=bo.getOrCreateInstance(o);if(n)return t.stopPropagation(),s.show(),void s._selectMenuItem(t);s._isShown()&&(t.stopPropagation(),s.hide(),o.focus())}}F.on(document,Gn,no,bo.dataApiKeydownHandler),F.on(document,Gn,so,bo.dataApiKeydownHandler),F.on(document,Kn,bo.clearMenus),F.on(document,Yn,bo.clearMenus),F.on(document,Kn,no,(function(t){t.preventDefault(),bo.getOrCreateInstance(this).toggle()})),w(bo);const wo="backdrop",xo="fade",Lo="show",Po=`mousedown.bs.${wo}`,To={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ko={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Mo extends V{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return To}static get DefaultType(){return ko}static get NAME(){return wo}show(t){if(!this._config.isVisible)return void x(t);this._append();const e=this._getElement();this._config.isAnimated&&_(e),e.classList.add(Lo),this._emulateAnimation((()=>{x(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Lo),this._emulateAnimation((()=>{this.dispose(),x(t)}))):x(t)}dispose(){this._isAppended&&(F.off(this._element,Po),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(xo),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=u(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),F.on(t,Po,(()=>{x(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){L(t,this._getElement(),this._config.isAnimated)}}const Co="focustrap",Eo=".bs.focustrap",Ao=`focusin${Eo}`,So=`keydown.tab${Eo}`,Oo="Tab",zo="forward",Io="backward",Do={autofocus:!0,trapElement:null},No={autofocus:"boolean",trapElement:"element"};class Bo extends V{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Do}static get DefaultType(){return No}static get NAME(){return Co}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),F.off(document,Eo),F.on(document,Ao,(t=>this._handleFocusin(t))),F.on(document,So,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,F.off(document,Eo))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=X.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===Io?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){t.key===Oo&&(this._lastTabNavDirection=t.shiftKey?Io:zo)}}const Zo=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",jo=".sticky-top",Ro="padding-right",$o="margin-right";class Fo{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Ro,(e=>e+t)),this._setElementAttributes(Zo,Ro,(e=>e+t)),this._setElementAttributes(jo,$o,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ro),this._resetElementAttributes(Zo,Ro),this._resetElementAttributes(jo,$o)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth(),o=t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const o=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(o))}px`)};this._applyManipulationCallback(t,o)}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&U.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){const i=t=>{const i=U.getDataAttribute(t,e);null!==i?(U.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,e){if(h(t))e(t);else for(const i of X.find(t,this._element))e(i)}}const Ho="modal",qo=".bs.modal",Wo="Escape",Uo=`hide${qo}`,Vo=`hidePrevented${qo}`,Ko=`hidden${qo}`,Go=`show${qo}`,Yo=`shown${qo}`,Xo=`resize${qo}`,Jo=`click.dismiss${qo}`,Qo=`mousedown.dismiss${qo}`,ts=`keydown.dismiss${qo}`,es=`click${qo}.data-api`,is="modal-open",ns="fade",os="show",ss="modal-static",rs=".modal.show",as=".modal-dialog",ls=".modal-body",cs='[data-bs-toggle="modal"]',hs={backdrop:!0,focus:!0,keyboard:!0},us={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ds extends G{constructor(t,e){super(t,e),this._dialog=X.findOne(as,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Fo,this._addEventListeners()}static get Default(){return hs}static get DefaultType(){return us}static get NAME(){return Ho}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||F.trigger(this._element,Go,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(is),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(F.trigger(this._element,Uo).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(os),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){F.off(window,qo),F.off(this._dialog,qo),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Mo({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Bo({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=X.findOne(ls,this._dialog);e&&(e.scrollTop=0),_(this._element),this._element.classList.add(os);const i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,F.trigger(this._element,Yo,{relatedTarget:t})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){F.on(this._element,ts,(t=>{t.key===Wo&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),F.on(window,Xo,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),F.on(this._element,Qo,(t=>{F.one(this._element,Jo,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(is),this._resetAdjustments(),this._scrollBar.reset(),F.trigger(this._element,Ko)}))}_isAnimated(){return this._element.classList.contains(ns)}_triggerBackdropTransition(){if(F.trigger(this._element,Vo).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(ss)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(ss),this._queueCallback((()=>{this._element.classList.remove(ss),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=b()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=b()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=ds.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}F.on(document,es,cs,(function(t){const e=X.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),F.one(e,Go,(t=>{t.defaultPrevented||F.one(e,Ko,(()=>{d(this)&&this.focus()}))}));const i=X.findOne(rs);i&&ds.getInstance(i).hide(),ds.getOrCreateInstance(e).toggle(this)})),J(ds),w(ds);const ps="offcanvas",fs=".bs.offcanvas",ms=".data-api",_s=`load${fs}${ms}`,gs="Escape",vs="show",ys="showing",bs="hiding",ws="offcanvas-backdrop",xs=".offcanvas.show",Ls=`show${fs}`,Ps=`shown${fs}`,Ts=`hide${fs}`,ks=`hidePrevented${fs}`,Ms=`hidden${fs}`,Cs=`resize${fs}`,Es=`click${fs}${ms}`,As=`keydown.dismiss${fs}`,Ss='[data-bs-toggle="offcanvas"]',Os={backdrop:!0,keyboard:!0,scroll:!1},zs={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Is extends G{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Os}static get DefaultType(){return zs}static get NAME(){return ps}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(F.trigger(this._element,Ls,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Fo).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ys);const e=()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(vs),this._element.classList.remove(ys),F.trigger(this._element,Ps,{relatedTarget:t})};this._queueCallback(e,this._element,!0)}hide(){if(!this._isShown)return;if(F.trigger(this._element,Ts).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(bs),this._backdrop.hide();const t=()=>{this._element.classList.remove(vs,bs),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Fo).reset(),F.trigger(this._element,Ms)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{"static"!==this._config.backdrop?this.hide():F.trigger(this._element,ks)},e=Boolean(this._config.backdrop);return new Mo({className:ws,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new Bo({trapElement:this._element})}_addEventListeners(){F.on(this._element,As,(t=>{t.key===gs&&(this._config.keyboard?this.hide():F.trigger(this._element,ks))}))}static jQueryInterface(t){return this.each((function(){const e=Is.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}F.on(document,Es,Ss,(function(t){const e=X.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),p(this))return;F.one(e,Ms,(()=>{d(this)&&this.focus()}));const i=X.findOne(xs);i&&i!==e&&Is.getInstance(i).hide(),Is.getOrCreateInstance(e).toggle(this)})),F.on(window,_s,(()=>{for(const t of X.find(xs))Is.getOrCreateInstance(t).show()})),F.on(window,Cs,(()=>{for(const t of X.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Is.getOrCreateInstance(t).hide()})),J(Is),w(Is);const Ds={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ns=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Bs=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Zs=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Ns.has(i)||Boolean(Bs.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))};function js(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),o=[].concat(...n.body.querySelectorAll("*"));for(const t of o){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),o=[].concat(e["*"]||[],e[i]||[]);for(const e of n)Zs(e,o)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}const Rs="TemplateFactory",$s={allowList:Ds,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Fs={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Hs={entry:"(string|element|function|null)",selector:"(string|element)"};class qs extends V{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return $s}static get DefaultType(){return Fs}static get NAME(){return Rs}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Hs)}_setContent(t,e,i){const n=X.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?h(e)?this._putElementInTemplate(u(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?js(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return x(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const Ws="tooltip",Us=new Set(["sanitize","allowList","sanitizeFn"]),Vs="fade",Ks="show",Gs=".tooltip-inner",Ys=".modal",Xs="hide.bs.modal",Js="hover",Qs="focus",tr="click",er="manual",ir="hide",nr="hidden",or="show",sr="shown",rr="inserted",ar="click",lr="focusin",cr="focusout",hr="mouseenter",ur="mouseleave",dr={AUTO:"auto",TOP:"top",RIGHT:b()?"left":"right",BOTTOM:"bottom",LEFT:b()?"right":"left"},pr={allowList:Ds,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},fr={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class mr extends G{constructor(t,e){if(void 0===Dn)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return pr}static get DefaultType(){return fr}static get NAME(){return Ws}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),F.off(this._element.closest(Ys),Xs,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=F.trigger(this._element,this.constructor.eventName(or)),e=(f(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),F.trigger(this._element,this.constructor.eventName(rr))),this._popper=this._createPopper(i),i.classList.add(Ks),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))F.on(t,"mouseover",m);const o=()=>{F.trigger(this._element,this.constructor.eventName(sr)),!1===this._isHovered&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(F.trigger(this._element,this.constructor.eventName(ir)).defaultPrevented)return;if(this._getTipElement().classList.remove(Ks),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))F.off(t,"mouseover",m);this._activeTrigger[tr]=!1,this._activeTrigger[Qs]=!1,this._activeTrigger[Js]=!1,this._isHovered=null;const t=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),F.trigger(this._element,this.constructor.eventName(nr)))};this._queueCallback(t,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Vs,Ks),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=a(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Vs),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new qs({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Gs]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Vs)}_isShown(){return this.tip&&this.tip.classList.contains(Ks)}_createPopper(t){const e=x(this._config.placement,[this,t,this._element]),i=dr[e.toUpperCase()];return In(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return x(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...x(this._config.popperConfig,[void 0,e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)F.on(this._element,this.constructor.eventName(ar),this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[tr]=!(e._isShown()&&e._activeTrigger[tr]),e.toggle()}));else if(e!==er){const t=e===Js?this.constructor.eventName(hr):this.constructor.eventName(lr),i=e===Js?this.constructor.eventName(ur):this.constructor.eventName(cr);F.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Qs:Js]=!0,e._enter()})),F.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Qs:Js]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},F.on(this._element.closest(Ys),Xs,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=U.getDataAttributes(this._element);for(const t of Object.keys(e))Us.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:u(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=mr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}w(mr);const _r="popover",gr=".popover-header",vr=".popover-body",yr={...mr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},br={...mr.DefaultType,content:"(null|string|element|function)"};class wr extends mr{static get Default(){return yr}static get DefaultType(){return br}static get NAME(){return _r}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[gr]:this._getTitle(),[vr]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=wr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}w(wr);const xr="scrollspy",Lr=".bs.scrollspy",Pr=`activate${Lr}`,Tr=`click${Lr}`,kr=`load${Lr}.data-api`,Mr="dropdown-item",Cr="active",Er='[data-bs-spy="scroll"]',Ar="[href]",Sr=".nav, .list-group",Or=".nav-link",zr=`${Or}, .nav-item > ${Or}, .list-group-item`,Ir=".dropdown",Dr=".dropdown-toggle",Nr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Br={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Zr extends G{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Nr}static get DefaultType(){return Br}static get NAME(){return xr}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=u(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(F.off(this._config.target,Tr),F.on(this._config.target,Tr,Ar,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,o=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const s of t){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(s));continue}const t=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&t){if(i(s),!n)return}else o||t||i(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=X.find(Ar,this._config.target);for(const e of t){if(!e.hash||p(e))continue;const t=X.findOne(decodeURI(e.hash),this._element);d(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Cr),this._activateParents(t),F.trigger(this._element,Pr,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(Mr))X.findOne(Dr,t.closest(Ir)).classList.add(Cr);else for(const e of X.parents(t,Sr))for(const t of X.prev(e,zr))t.classList.add(Cr)}_clearActiveClass(t){t.classList.remove(Cr);const e=X.find(`${Ar}.${Cr}`,t);for(const t of e)t.classList.remove(Cr)}static jQueryInterface(t){return this.each((function(){const e=Zr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}F.on(window,kr,(()=>{for(const t of X.find(Er))Zr.getOrCreateInstance(t)})),w(Zr);const jr="tab",Rr=".bs.tab",$r=`hide${Rr}`,Fr=`hidden${Rr}`,Hr=`show${Rr}`,qr=`shown${Rr}`,Wr=`click${Rr}`,Ur=`keydown${Rr}`,Vr=`load${Rr}`,Kr="ArrowLeft",Gr="ArrowRight",Yr="ArrowUp",Xr="ArrowDown",Jr="Home",Qr="End",ta="active",ea="fade",ia="show",na="dropdown",oa=".dropdown-toggle",sa=".dropdown-menu",ra=`:not(${oa})`,aa='.list-group, .nav, [role="tablist"]',la=".nav-item, .list-group-item",ca='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ha=`.nav-link${ra}, .list-group-item${ra}, [role="tab"]${ra}, ${ca}`,ua=`.${ta}[data-bs-toggle="tab"], .${ta}[data-bs-toggle="pill"], .${ta}[data-bs-toggle="list"]`;class da extends G{constructor(t){super(t),this._parent=this._element.closest(aa),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),F.on(this._element,Ur,(t=>this._keydown(t))))}static get NAME(){return jr}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?F.trigger(e,$r,{relatedTarget:t}):null;F.trigger(t,Hr,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(ta),this._activate(X.getElementFromSelector(t));const i=()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),F.trigger(t,qr,{relatedTarget:e})):t.classList.add(ia)};this._queueCallback(i,t,t.classList.contains(ea))}_deactivate(t,e){if(!t)return;t.classList.remove(ta),t.blur(),this._deactivate(X.getElementFromSelector(t));const i=()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),F.trigger(t,Fr,{relatedTarget:e})):t.classList.remove(ia)};this._queueCallback(i,t,t.classList.contains(ea))}_keydown(t){if(![Kr,Gr,Yr,Xr,Jr,Qr].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!p(t)));let i;if([Jr,Qr].includes(t.key))i=e[t.key===Jr?0:e.length-1];else{const n=[Gr,Xr].includes(t.key);i=P(e,t.target,n,!0)}i&&(i.focus({preventScroll:!0}),da.getOrCreateInstance(i).show())}_getChildren(){return X.find(ha,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=X.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains(na))return;const n=(t,n)=>{const o=X.findOne(t,i);o&&o.classList.toggle(n,e)};n(oa,ta),n(sa,ia),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(ta)}_getInnerElement(t){return t.matches(ha)?t:X.findOne(ha,t)}_getOuterElement(t){return t.closest(la)||t}static jQueryInterface(t){return this.each((function(){const e=da.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}F.on(document,Wr,ca,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),p(this)||da.getOrCreateInstance(this).show()})),F.on(window,Vr,(()=>{for(const t of X.find(ua))da.getOrCreateInstance(t)})),w(da);const pa="toast",fa=".bs.toast",ma=`mouseover${fa}`,_a=`mouseout${fa}`,ga=`focusin${fa}`,va=`focusout${fa}`,ya=`hide${fa}`,ba=`hidden${fa}`,wa=`show${fa}`,xa=`shown${fa}`,La="fade",Pa="hide",Ta="show",ka="showing",Ma={animation:"boolean",autohide:"boolean",delay:"number"},Ca={animation:!0,autohide:!0,delay:5e3};class Ea extends G{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Ca}static get DefaultType(){return Ma}static get NAME(){return pa}show(){if(F.trigger(this._element,wa).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(La);const t=()=>{this._element.classList.remove(ka),F.trigger(this._element,xa),this._maybeScheduleHide()};this._element.classList.remove(Pa),_(this._element),this._element.classList.add(Ta,ka),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown())return;if(F.trigger(this._element,ya).defaultPrevented)return;const t=()=>{this._element.classList.add(Pa),this._element.classList.remove(ka,Ta),F.trigger(this._element,ba)};this._element.classList.add(ka),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Ta),super.dispose()}isShown(){return this._element.classList.contains(Ta)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){F.on(this._element,ma,(t=>this._onInteraction(t,!0))),F.on(this._element,_a,(t=>this._onInteraction(t,!1))),F.on(this._element,ga,(t=>this._onInteraction(t,!0))),F.on(this._element,va,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Ea.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}return J(Ea),w(Ea),{Alert:st,Button:ht,Carousel:re,Collapse:ke,Dropdown:bo,Modal:ds,Offcanvas:Is,Popover:wr,ScrollSpy:Zr,Tab:da,Toast:Ea,Tooltip:mr}}());var ji,Ri,$i={};async function Fi(t,e){if(window.location.protocol.match(/^http/))if($i[t])e.innerHTML=$i[t];else try{await fetch(t).then((t=>t.text())).then((i=>{i=i.replace("Nominatim_API_Endpoint",Hi()),e.innerHTML=i,$i[t]=i}))}catch(i){e.innerHTML=`Error fetching content from ${t} (${i})`}else e.innerHTML=`Cannot display data from ${t} here. Browser security prevents loading content from file:// URLs.`}function Hi(t){var e=Nominatim_Config.Nominatim_API_Endpoint;return"function"==typeof e?e(t):t?e+t:e}function qi(t,e){return 1===e.dedupe&&delete e.dedupe,function(t,e){for(var i=Object.keys(e),n=0;n<i.length;n+=1)t[i[n]]=e[i[n]]}(e,Nominatim_Config.Nominatim_API_Endpoint_Params),Hi(t)+"?"+Object.keys(function(t){for(var e=Object.keys(t),i=0;i<e.length;i+=1){var n=t[e[i]];void 0!==n&&""!==n&&null!==n||delete t[e[i]]}return t}(e)).map((t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t]))).join("&")}function Wi(t){document.title=[t,Nominatim_Config.Page_Title].filter((t=>t&&t.length>1)).join(" | ")}
7 /*!
8          * escape-html
9          * Copyright(c) 2012-2013 TJ Holowaychuk
10          * Copyright(c) 2015 Andreas Lubbe
11          * Copyright(c) 2015 Tiancheng "Timothy" Gu
12          * MIT Licensed
13          */var Ui=function(){if(Ri)return ji;Ri=1;var t=/["'&<>]/;return ji=function(e){var i,n=""+e,o=t.exec(n);if(!o)return n;var s="",r=0,a=0;for(r=o.index;r<n.length;r++){switch(n.charCodeAt(r)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}a!==r&&(s+=n.substring(a,r)),a=r+1,s+=i}return a!==r?s+n.substring(a,r):s},ji}(),Vi=Ni(Ui);function Ki(t,e){return"N"===t?"node":"W"===t?"way":"R"===t?"relation":e&&("T"===t||"I"===t)?"way":""}function Gi(t){return(" "===t[0]?"*":"")+Vi(t)}function Yi(){return["Continent / Sea","","","Country","","State","Region","","County","","City","","Town / Borough","Village / Suburb","Neighbourhood","Locality","Major Street","Minor Street","Building"]}const Xi=Nominatim_Config.Reverse_Only?"reverse":"search",Ji=[Xi,"reverse","details","deletable","polygons","status","about"];const Qi=new class{#m=Lt();get page(){return Se(this.#m)}set page(t){Pt(this.#m,t,!0)}#_=Lt(null);get lastApiRequestURL(){return Se(this.#_)}set lastApiRequestURL(t){Pt(this.#_,t,!0)}#g=Lt(null);get errorMessage(){return Se(this.#g)}set errorMessage(t){Pt(this.#g,t,!0)}#v=Lt("finish");get requestProgress(){return Se(this.#v)}set requestProgress(t){Pt(this.#v,t,!0)}#y;constructor(){this.refreshPage()}refreshPage(t,e){if(void 0===t)t=window.location.pathname.replace(".html","").replace(/^.*\//,""),Ji.includes(t)||(t=Xi),e=new URLSearchParams(window.location.search);else{Ji.includes(t)||(t=Xi),void 0===e&&(e=new URLSearchParams);let i=e.toString();i&&(i="?"+i);let n=t+".html"+i;window.location.protocol.match(/^http/)?window.history.pushState([],"",n):window.location.href=n}if("search"===t&&e.has("q")){const i=function(t){if(!t)return;const e=t.match(/\/(relation|way|node)\/(-?\d+)/)||t.match(/^([nwr])(-?\d+)$/i);return e?[e[1][0].toUpperCase(),Number(e[2])]:void 0}(e.get("q"));i instanceof Array&&(t="details",e=new URLSearchParams({osmtype:i[0],osmid:i[1]}))}ze((()=>{this.page?.tab!==t&&this.#y&&(this.#y.abort(),this.#y=void 0),this.page={tab:t,params:e},this.lastApiRequestURL=null,this.errorMessage=null}))}async fetchFromApi(t,e,i){const n=qi(t,e),o=new URLSearchParams(window.location.search).get("mock_api_error"),s={};this.requestProgress="start","status"!==t&&(this.lastApiRequestURL=null,this.#y?.abort(),this.#y=new AbortController,s.signal=this.#y.signal),Nominatim_Config.Nominatim_API_Endpoint_Headers&&(s.headers=Nominatim_Config.Nominatim_API_Endpoint_Headers);try{await fetch(n,s).then((async t=>{if((t.status>=200&&t.status<300||404===t.status)&&"fetch"!==o){var e;try{e="parse"===o?JSON.parse("{"):await t.json()}catch(t){return void(this.errorMessage=`Error parsing JSON data from ${n} (${t})`)}return e}this.errorMessage=`Error fetching data from ${n} (${t.statusText})`})).then((t=>{t&&(t.error&&(this.errorMessage=t.error.message),i(t)),this.requestProgress="finish"}))}catch(t){"AbortError"!==t.name&&(this.errorMessage=`Error fetching data from ${n} (${t})`,this.requestProgress="finish")}"status"!==t&&(this.lastApiRequestURL=n)}};var tn=Ye('<footer class="svelte-1f2bd8l"><p class="disclaimer svelte-1f2bd8l">Addresses and postcodes are approximate.\n    Blue circle is the result.\n    In case of reverse geocoding the smaller red circle is at the search position.</p> <p class="copyright svelte-1f2bd8l">&copy; <a href="https://osm.org/copyright">OpenStreetMap</a> contributors</p></footer>');function en(t,e,i){t.preventDefault(),t.stopPropagation(),Qi.refreshPage(e.page,new URLSearchParams(i()))}var nn=Ye("<a><!></a>");function on(t,e){F(e,!0);let i=Ii(e,"params_hash",19,(()=>({}))),n=Ii(e,"extra_classes",3,"");const o=tt((()=>{const t=new URLSearchParams(i()).toString();return e.page+".html"+(t?"?":"")+t}));var s=nn();s.__click=[en,e,i];var r=Bt(s),a=t=>{var i=Je();hi(Zt(i),(()=>e.text_snippet)),Qe(t,i)},l=t=>{var i=Xe();Ut((()=>ti(i,e.text))),Qe(t,i)};ni(r,(t=>{e.text_snippet?t(a):t(l,!1)})),Ut((()=>{Ti(s,"href",Se(o)),mi(s,0,di(n()))})),Qe(t,s),H()}function sn(t,e){t.preventDefault(),t.stopPropagation(),Qi.refreshPage("reverse",Se(e))}We(["click"]);var rn=Ye("<a> </a>");We(["click"]);var an=["second","minute","hour","day","week","month","year"];var ln=["秒","分钟","小时","天","周","个月","年"];var cn={},hn=function(t,e){cn[t]=e},un=[60,60,24,7,365/7/12,12];function dn(t,e){var i;return(+new Date-+((i=t)instanceof Date?i:!isNaN(i)||/^\d+$/.test(i)?new Date(parseInt(i)):(i=(i||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(i))))/1e3}var pn=function(t,e,i){return function(t,e){for(var i=t<0?1:0,n=t=Math.abs(t),o=0;t>=un[o]&&o<un.length;o++)t/=un[o];return(t=Math.floor(t))>(0==(o*=2)?9:1)&&(o+=1),e(t,o,n)[i].replace("%s",t.toString())}(dn(t),function(t){return cn[t]||cn.en_US}(e))};hn("en_US",(function(t,e){if(0===e)return["just now","right now"];var i=an[Math.floor(e/2)];return t>1&&(i+="s"),[t+" "+i+" ago","in "+t+" "+i]})),hn("zh_CN",(function(t,e){if(0===e)return["刚刚","片刻后"];var i=ln[~~(e/2)];return[t+" "+i+"前",t+" "+i+"后"]}));var fn=Ye('<div id="api-request">Data from <a>API request</a> <span id="api-request-debug">(<a>debug output</a>)</span></div>'),mn=Ye('Data last updated: <abbr id="data-date"> </abbr>',1),_n=Ye('<div id="last-updated" class="container-fluid py-2 px-4 mb-3 svelte-tufc94"><div id="loading" class="py-2 px-4 svelte-tufc94"><div class="spinner-border spinner-border-sm text-primary me-1" role="status"></div> Loading data from API ...</div> <div class="row"><div class="col-sm-6"><!></div> <div class="col-sm-6 text-end"><!> (<!>)</div></div></div>');var gn,vn,yn=(gn=()=>Qi,vn=xt(0),function(){return 1===arguments.length?(Pt(vn,Se(vn)+1),arguments[0]):(Se(vn),gn())}),bn=Ye('<div id="error" class="container-fluid alert-danger py-3 px-4"> <button type="button" class="btn-close float-end" aria-label="dismiss"></button></div>');We(["click"]);const wn=new class{#b=Lt();get center(){return Se(this.#b)}set center(t){Pt(this.#b,t,!0)}#w=Lt();get zoom(){return Se(this.#w)}set zoom(t){Pt(this.#w,t,!0)}#x=Lt();get viewboxStr(){return Se(this.#x)}set viewboxStr(t){Pt(this.#x,t,!0)}#L=Lt();get lastClick(){return Se(this.#L)}set lastClick(t){Pt(this.#L,t,!0)}#P=Lt();get mousePos(){return Se(this.#P)}set mousePos(t){Pt(this.#P,t,!0)}reset(){this.center=void 0,this.zoom=void 0,this.viewboxStr="",this.lastClick=void 0,this.mousePos=void 0}};
14 /*!
15          * https://getbootstrap.com/docs/5.3/customize/color-modes/#javascript
16          *
17          * Color mode toggler for Bootstrap's docs (https://getbootstrap.com/)
18          * Copyright 2011-2025 The Bootstrap Authors
19          * Licensed under the Creative Commons Attribution 3.0 Unported License.
20          */function xn(){const t=()=>localStorage.getItem("theme"),e=()=>{const e=t();return e||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")},i=t=>{"auto"===t?document.documentElement.setAttribute("data-bs-theme",window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"):document.documentElement.setAttribute("data-bs-theme",t)};i(e());const n=(t,e=!1)=>{const i=document.querySelector("#bd-theme");if(!i)return;const n=document.querySelector("#bd-theme-text"),o=document.querySelector(`[data-bs-theme-value="${t}"]`);document.querySelectorAll("[data-bs-theme-value]").forEach((t=>{t.classList.remove("active"),t.setAttribute("aria-pressed","false")})),o.classList.add("active"),o.setAttribute("aria-pressed","true");const s=`${n.textContent} (${o.dataset.bsThemeValue})`;i.setAttribute("aria-label",s),e&&i.focus()};window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(()=>{const n=t();"light"!==n&&"dark"!==n&&i(e())})),n(e()),document.querySelectorAll("[data-bs-theme-value]").forEach((t=>{t.addEventListener("click",(()=>{const e=t.getAttribute("data-bs-theme-value");(t=>{localStorage.setItem("theme",t)})(e),i(e),n(e,!0)}))}))}var Ln=Ye('<img alt="logo" id="theme-logo" src="theme/logo.png" class="svelte-1eewt5"/> <h1 class="svelte-1eewt5"> </h1>',1),Pn=Ye('<li class="nav-item svelte-1eewt5"><!></li>'),Tn=Ye('<header class="container-fluid"><nav class="navbar navbar-expand-sm navbar-light"><div class="container-fluid"><div class="navbar-brand svelte-1eewt5"><!></div> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button> <div class="collapse navbar-collapse" id="navbarSupportedContent"><ul class="navbar-nav me-auto"><!> <li class="nav-item svelte-1eewt5"><!></li> <li class="nav-item svelte-1eewt5"><!></li></ul></div> <ul class="navbar-nav"><li class="nav-item position-relative svelte-1eewt5"><button class="btn nav-link dropdown-toggle" id="bd-theme" type="button" data-bs-toggle="dropdown" aria-label="Toggle color theme"><span id="bd-theme-text">Color</span></button> <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="bd-theme-text"><li><button type="button" class="dropdown-item" data-bs-theme-value="light">Light</button></li> <li><button type="button" class="dropdown-item" data-bs-theme-value="dark">Dark</button></li> <li><button type="button" class="dropdown-item" data-bs-theme-value="auto">Auto</button></li></ul></li> <li class="nav-item svelte-1eewt5"><!></li></ul></div></nav></header> <section class="page-title-section svelte-1eewt5"><h2> </h2></section> <section class="search-section svelte-1eewt5"><!></section> <!> <!>',1);function kn(t,e){F(e,!0);const i=t=>{var e=Ln(),i=Bt(jt(Zt(e),2));Ut((()=>ti(i,n))),Qe(t,e)},n=Nominatim_Config.Page_Title,o=Nominatim_Config.Reverse_Only;let s=tt((()=>Qi.page.tab));Di(xn);var r=Tn(),a=Zt(r),l=Bt(a),c=Bt(l),h=Bt(c),d=Bt(h);{let t=tt((()=>o?"reverse":"search"));on(d,{get text_snippet(){return i},get page(){return Se(t)}})}var p=jt(h,4),f=Bt(p),m=Bt(f),_=t=>{var e=Pn(),i=Bt(e);{let t=tt((()=>"search"===Se(s)?"active":""));on(i,{page:"search",text:"Search",get extra_classes(){return`nav-link ${Se(t)??""}`}})}Qe(t,e)};ni(m,(t=>{o||t(_)}));var g=jt(m,2),v=Bt(g);{let t=tt((()=>wn.center?.lat)),e=tt((()=>wn.center?.lng)),i=tt((()=>"reverse"===Se(s)?"active":""));!function(t,e){F(e,!0);let i=Ii(e,"lat",3,null),n=Ii(e,"lon",3,null),o=Ii(e,"zoom",3,null),s=Ii(e,"extra_classes",3,"");const r=tt((()=>{const t={};return i()&&n()&&(t.lat=i(),t.lon=n(),o()&&t.set("zoom",o())),new URLSearchParams(t)})),a=tt((()=>{let t=Se(r).toString();return"reverse.html"+(t?"?":"")+t}));var l=rn();l.__click=[sn,r];var c=Bt(l);Ut((()=>{Ti(l,"href",Se(a)),mi(l,0,di(s())),ti(c,e.text)})),Qe(t,l),H()}(v,{get lat(){return Se(t)},get lon(){return Se(e)},text:"Reverse",get extra_classes(){return`nav-link ${Se(i)??""}`}})}var y=Bt(jt(g,2));{let t=tt((()=>"details"===Se(s)?"active":""));on(y,{page:"details",text:"Search By ID",get extra_classes(){return`nav-link ${Se(t)??""}`}})}var b=jt(p,2),w=jt(Bt(b),2),x=Bt(w);{let t=tt((()=>"about"===Se(s)?"active":""));on(x,{page:"about",text:"Abount & Help",get extra_classes(){return`nav-link ${Se(t)??""}`}})}var L=jt(a,2),P=Bt(L),T=Bt(P),k=jt(L,2);hi(Bt(k),(()=>e.subheader??u));var M=jt(k,2);!function(t,e){F(e,!1),Si();var i=Je(),n=Zt(i),o=t=>{var e=bn(),i=Bt(e);jt(i).__click=()=>yn(yn().errorMessage=null),Ut((()=>ti(i,`${yn().errorMessage??""} `))),Qe(t,e)};ni(n,(t=>{yn().errorMessage&&t(o)})),Qe(t,i),H()}(M,{}),function(t,e){F(e,!0);let i=Lt(void 0),n=tt((()=>{const t=Qi.lastApiRequestURL;if(t){const e=new URL(t,window.location.origin);return e.searchParams.delete("polygon_geojson"),e.toString()}}));Di((()=>{Qi.fetchFromApi("status",{format:"json"},(function(t){Pt(i,t.data_updated,!0)}))}));var o=_n(),s=Bt(o);let r;var a=Bt(jt(s,2)),l=Bt(a),c=t=>{var e=fn(),i=jt(Bt(e)),o=jt(i,2),s=jt(Bt(o));Ut((()=>{Ti(i,"href",Se(n)),Ti(s,"href",`${Se(n)??""}&debug=1`)})),Qe(t,e)};ni(l,(t=>{Se(n)&&t(c)}));var h=Bt(jt(a,2)),u=t=>{var e=mn(),n=jt(Zt(e)),o=Bt(n);Ut((t=>{Ti(n,"title",`${Se(i)??""} (UTC timezone)`),ti(o,t)}),[()=>pn(new Date(Se(i)))]),Qe(t,e)};ni(h,(t=>{Se(i)&&t(u)})),on(jt(h,2),{page:"status",text:"Details"}),Ut((t=>r=gi(s,"",r,t)),[()=>({display:"start"===Qi.requestProgress?"block":"none"})]),Qe(t,o),H()}(jt(M,2),{}),Ut((()=>ti(T,Se(s)))),Qe(t,r),H()}const Mn=Symbol();class Cn extends URLSearchParams{#T=Lt(0);#k=function(){return En}();#M=!1;#C(){if(!this.#k||this.#M)return;this.#M=!0;const t=this.toString();this.#k.search=t&&`?${t}`,this.#M=!1}[Mn](t){if(!this.#M){this.#M=!0;for(const t of[...super.keys()])super.delete(t);for(const[e,i]of t)super.append(e,i);kt(this.#T),this.#M=!1}}append(t,e){super.append(t,e),this.#C(),kt(this.#T)}delete(t,e){var i=super.has(t,e);super.delete(t,e),i&&(this.#C(),kt(this.#T))}get(t){return Se(this.#T),super.get(t)}getAll(t){return Se(this.#T),super.getAll(t)}has(t,e){return Se(this.#T),super.has(t,e)}keys(){return Se(this.#T),super.keys()}set(t,e){var i=super.getAll(t).join("");super.set(t,e),i!==super.getAll(t).join("")&&(this.#C(),kt(this.#T))}sort(){super.sort(),this.#C(),kt(this.#T)}toString(){return Se(this.#T),super.toString()}values(){return Se(this.#T),super.values()}entries(){return Se(this.#T),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return Se(this.#T),super.size}}let En=null;var An=Ye('<form class="form-inline" role="search" accept-charset="UTF-8" action=""><div class="row g-2"><!></div></form>');function Sn(t,e){F(e,!0);var i=An(),n=Bt(i);hi(Bt(n),(()=>e.content??u)),qe("submit",i,(function(t){t.preventDefault();let i=t.target,n=!0;Array.prototype.slice.call(i.elements).forEach((function(t){(function(t){return!("hidden"===t.type&&t.value.length&&t.pattern&&!t.value.match(t.pattern))&&t.checkValidity()})(t)||(alert("Invalid input in "+t.name),n=!1)})),n&&Qi.refreshPage(e.page,function(t){var e=new Cn;return Array.prototype.slice.call(t.elements).forEach((function(t){!t.name||t.disabled||["submit","button"].indexOf(t.type)>-1||["checkbox","radio"].indexOf(t.type)>-1&&!t.checked||void 0!==t.value&&""!==t.value&&("dedupe"!==t.name||1!==t.value&&"1"!==t.value)&&e.set(t.name,t.value)})),e}(i))})),Qe(t,i),H()}function On(t){document.querySelector("input[name=bounded]").value=t.target.checked?1:""}function zn(t){document.querySelector("input[name=dedupe]").value=t.target.checked?1:0}function In(t){document.querySelector("input[name="+t.target.dataset.apiParam+"]").value=t.target.value}var Dn=Ye('<div class="col-auto"><button type="submit" class="btn btn-primary btn-sm">Search</button> <input type="hidden" name="viewbox"/> <input type="hidden" name="dedupe"/> <input type="hidden" name="bounded"/> <input type="hidden" name="accept-language"/> <input type="hidden" name="countrycodes"/> <input type="hidden" name="limit"/> <input type="hidden" name="polygon_threshold"/> <input type="hidden" name="layer"/></div>'),Nn=Ye('<div class="col-auto"><input id="q" name="q" type="text" class="form-control form-control-sm svelte-1u2ltgo" placeholder="Search"/></div> <!>',1),Bn=Ye('<div class="col-auto"><input name="street" type="text" class="form-control form-control-sm me-1" placeholder="House number/Street"/></div> <div class="col-auto"><input name="city" type="text" class="form-control form-control-sm me-1" placeholder="City"/></div> <div class="col-auto"><input id="county" name="county" type="text" class="form-control form-control-sm me-1" placeholder="County"/></div> <div class="col-auto"><input name="state" type="text" class="form-control form-control-sm me-1" placeholder="State"/></div> <div class="col-auto"><input name="country" type="text" class="form-control form-control-sm me-1" placeholder="Country"/></div> <div class="col-auto"><input name="postalcode" type="text" class="form-control form-control-sm me-1" placeholder="Postal Code"/></div> <!>',1),Zn=(t,e)=>Pt(e,!Se(e)),jn=Ye('<ul class="nav nav-tabs svelte-1u2ltgo"><li class="nav-item"><a data-bs-toggle="tab" href="#simple">Simple</a></li> <li class="nav-item"><a data-bs-toggle="tab" href="#structured">Structured</a></li></ul> <div class="tab-content py-2"><div id="simple" role="tabpanel"><!></div> <div id="structured" role="tabpanel"><!></div></div>  <details id="searchAdvancedOptions" class="svelte-1u2ltgo"><summary><small>Advanced options</small></summary> <ul class="svelte-1u2ltgo"><li class="svelte-1u2ltgo"><div class="form-check form-check-inline"><label class="form-check-label svelte-1u2ltgo" for="use_viewbox">apply viewbox</label> <input type="checkbox" class="form-check-input api-param-setting" id="use_viewbox"/></div></li> <li class="svelte-1u2ltgo"><div class="form-check form-check-inline"><label class="form-check-label svelte-1u2ltgo" for="option_bounded">bounded to viewbox</label> <input type="checkbox" class="form-check-input api-param-setting" id="option_bounded"/></div></li> <li class="svelte-1u2ltgo"><div class="form-check form-check-inline"><label class="form-check-label svelte-1u2ltgo" for="option_dedupe">deduplicate results</label> <input type="checkbox" class="form-check-input api-param-setting" id="option_dedupe"/></div></li> <li class="svelte-1u2ltgo"><label for="option_limit" class="svelte-1u2ltgo">Maximum number of results</label> <input type="number" class="form-control form-control-sm d-inline w-auto api-param-setting" data-api-param="limit" id="option_limit" min="1" max="50"/></li> <li class="svelte-1u2ltgo"><label for="option_polygon_threshold" class="svelte-1u2ltgo">Polygon simplification</label> <input type="number" class="form-control form-control-sm d-inline w-auto api-param-setting" data-api-param="polygon_threshold" id="option_polygon_threshold" min="0.0" max="1.0" step="0.001"/></li> <li class="svelte-1u2ltgo"><label for="accept_lang" class="svelte-1u2ltgo">Languages</label> <input type="text" placeholder="e.g. en,zh-Hant" class="form-control form-control-sm d-inline w-auto api-param-setting" data-api-param="accept-language" id="accept_lang" size="15"/></li> <li class="svelte-1u2ltgo"><label for="option_ccode" class="svelte-1u2ltgo">Country Codes</label> <input type="text" placeholder="e.g. de,gb" class="form-control form-control-sm d-inline w-auto api-param-setting" data-api-param="countrycodes" id="option_ccode" size="15"/></li> <li class="svelte-1u2ltgo"><label for="option_layer" class="svelte-1u2ltgo">Layer</label> <input id="option_layer" name="layer" placeholder="e.g. address,poi,railway,natural,manmade" data-api-param="layer" class="form-control form-control-sm d-inline w-auto api-param-setting"/></li></ul></details>',1);function Rn(t,e){t.preventDefault(),t.stopPropagation(),Qi.refreshPage("details",Se(e))}We(["change"]);var $n=Ye("<a> </a>");function Fn(t,e){F(e,!0);let i=Ii(e,"text",3,"details"),n=Ii(e,"extra_classes",3,""),o=Ii(e,"feature",3,null);const s=tt((()=>{const t={};var e;return null!==o()&&(o().osm_type?(1===o().osm_type.length?t.osmtype=o().osm_type:t.osmtype="node"===(e=o().osm_type)?"N":"way"===e?"W":"relation"===e?"R":"",t.osmid=o().osm_id,o().class?t.class=o().class:o().category&&(t.class=o().category)):o().place_id&&(t.place_id=o().place_id)),new URLSearchParams(t)})),r=tt((()=>{const t=Se(s).toString();return"details.html"+(t?"?":"")+t}));var a=$n();a.__click=[Rn,s];var l=Bt(a);Ut((()=>{Ti(a,"href",Se(r)),mi(a,0,di(n())),ti(l,i())})),Qe(t,a),H()}We(["click"]);var Hn=Ye('<div id="welcome"></div>');var qn=Ye('<img class="mapicon svelte-180cawe"/>');function Wn(t,e){F(e,!0);const i=tt((()=>{return t=e.aPlace.category,i=e.aPlace.type,{"boundary:administrative":"poi_boundary_administrative","place:city":"poi_place_city","place:town":"poi_place_town","place:village":"poi_place_village","place:hamlet":"poi_place_village","place:suburb":"poi_place_village","place:locality":"poi_place_village","place:airport":"transport_airport2","aeroway:aerodrome":"transport_airport2","railway:station":"transport_train_station2","amenity:place_of_worship":"place_of_worship_unknown3","amenity:pub":"food_pub","amenity:bar":"food_bar","amenity:university":"education_university","tourism:museum":"tourist_museum","amenity:arts_centre":"tourist_art_gallery2","tourism:zoo":"tourist_zoo","tourism:theme_park":"poi_point_of_interest","tourism:attraction":"poi_point_of_interest","leisure:golf_course":"sport_golf","historic:castle":"tourist_castle","amenity:hospital":"health_hospital","amenity:school":"education_school","amenity:theatre":"tourist_theatre","amenity:library":"amenity_library","amenity:fire_station":"amenity_firestation3","amenity:police":"amenity_police2","amenity:bank":"money_bank2","amenity:post_office":"amenity_post_office","tourism:hotel":"accommodation_hotel2","amenity:cinema":"tourist_cinema","tourism:artwork":"tourist_art_gallery2","historic:archaeological_site":"tourist_archaeological2","amenity:doctors":"health_doctors","leisure:sports_centre":"sport_leisure_centre","leisure:swimming_pool":"sport_swimming_outdoor","shop:supermarket":"shopping_supermarket","shop:convenience":"shopping_convenience","amenity:restaurant":"food_restaurant","amenity:fast_food":"food_fastfood","amenity:cafe":"food_cafe","tourism:guest_house":"accommodation_bed_and_breakfast","amenity:pharmacy":"health_pharmacy_dispensing","amenity:fuel":"transport_fuel","natural:peak":"poi_peak","natural:wood":"landuse_coniferous_and_deciduous","shop:bicycle":"shopping_bicycle","shop:clothes":"shopping_clothes","shop:hairdresser":"shopping_hairdresser","shop:doityourself":"shopping_diy","shop:estate_agent":"shopping_estateagent2","shop:car":"shopping_car","shop:garden_centre":"shopping_garden_centre","shop:car_repair":"shopping_car_repair","shop:bakery":"shopping_bakery","shop:butcher":"shopping_butcher","shop:apparel":"shopping_clothes","shop:laundry":"shopping_laundrette","shop:beverages":"shopping_alcohol","shop:alcohol":"shopping_alcohol","shop:optician":"health_opticians","shop:chemist":"health_pharmacy","shop:gallery":"tourist_art_gallery2","shop:jewelry":"shopping_jewelry","tourism:information":"amenity_information","historic:ruins":"tourist_ruin","amenity:college":"education_school","historic:monument":"tourist_monument","historic:memorial":"tourist_monument","historic:mine":"poi_mine","tourism:caravan_site":"accommodation_caravan_park","amenity:bus_station":"transport_bus_station","amenity:atm":"money_atm2","tourism:viewpoint":"tourist_view_point","tourism:guesthouse":"accommodation_bed_and_breakfast","railway:tram":"transport_tram_stop","amenity:courthouse":"amenity_court","amenity:recycling":"amenity_recycling","amenity:dentist":"health_dentist","natural:beach":"tourist_beach","railway:tram_stop":"transport_tram_stop","amenity:prison":"amenity_prison","highway:bus_stop":"transport_bus_stop2"}[t+":"+i];var t,i})),n=tt((()=>"icon for "+e.aPlace.category+" "+e.aPlace.type)),o=tt((()=>Nominatim_Config.Images_Base_Url+Se(i)+".p.20.png"));var s=Je(),r=Zt(s),a=t=>{var e=qn();Ut((()=>{Ti(e,"src",Se(o)),Ti(e,"alt",Se(n))})),Qe(t,e)};ni(r,(t=>{Se(i)&&t(a)})),Qe(t,s),H()}var Un=Ye('<div role="listitem"><div style="float:right"><!></div> <span class="name"> </span> <span class="type svelte-vvmo5q"> </span> <p class="coords svelte-vvmo5q"> </p> <!></div>'),Vn=Ye('<div class="more svelte-vvmo5q"><a class="btn btn-primary">Search for more results</a></div>'),Kn=Ye('<div id="searchresults" role="list"><!> <!></div>'),Gn=Ye('<div id="intro" class="sidebar">Search for coordinates or click anywhere on the map.</div>'),Yn=Ye('<div class="noresults svelte-vvmo5q">No search results found</div>');function Xn(t,e){F(e,!0);let i=Ii(e,"reverse_search",3,!1),n=Ii(e,"current_result",15),o=Lt(void 0),s=tt((()=>{const t=new URLSearchParams(window.location.search),i=e.results;let n=[];t.has("exclude_place_ids")&&(n=t.get("exclude_place_ids").split(","));for(var o=0;o<i.length;o+=1)n.push(i[o].place_id);var s=new Cn(window.location.search);return s.set("exclude_place_ids",n.join(",")),"?"+s.toString()}));function r(t){t.stopPropagation();let e=t.target;e.className.match("result")||(e=e.parentElement);let i=Number(e.dataset.position);Pt(o,i,!0)}Ht((()=>{e.results&&Pt(o,0)})),Ht((()=>{n(e.results&&e.results.length>Se(o)?e.results[Se(o)]:null)}));var a=Je(),l=Zt(a),c=t=>{var n=Kn(),a=Bt(n);si(a,17,(()=>e.results),oi,((t,e,i)=>{var n=Un();let s;Ti(n,"data-position",i),n.__click=r;var a=Bt(n);Wn(Bt(a),{get aPlace(){return Se(e)}});var l=jt(a,2),c=Bt(l),h=jt(l,2),u=Bt(h),d=jt(h,2),p=Bt(d);Fn(jt(d,2),{extra_classes:"btn btn-outline-secondary btn-sm",get feature(){return Se(e)}}),Ut(((t,i)=>{s=mi(n,0,"result svelte-vvmo5q",null,s,t),ti(c,Se(e).display_name),ti(u,i),ti(p,`${Se(e).lat??""},${Se(e).lon??""}`)}),[()=>({highlight:i===Se(o)}),()=>function(t){if(t.label)return t.label;function e(t){return t&&t[0].toUpperCase()+t.slice(1)}return t.type&&"yes"===t.type&&t.category?e(t.category.replace(/_/g," ")):t.type?e(t.type.replace(/_/g," ")):""}(Se(e))]),qe("keypress",n,r),Qe(t,n)}));var l=jt(a,2),c=t=>{var e=Vn(),i=Bt(e);Ut((()=>Ti(i,"href",Se(s)))),Qe(t,e)};ni(l,(t=>{Se(s)&&!i()&&t(c)})),Qe(t,n)},h=t=>{var n=Je(),o=Zt(n),s=t=>{var e=Je(),n=Zt(e),o=t=>{Qe(t,Gn())},s=t=>{Qe(t,Yn())};ni(n,(t=>{i()?t(o):t(s,!1)})),Qe(t,e)},r=t=>{!function(t,e){F(e,!1),Di((()=>{Fi("theme/welcome.html",document.getElementById("welcome"))})),Si(),Qe(t,Hn()),H()}(t,{})};ni(o,(t=>{e.results?t(s):t(r,!1)}),!0),Qe(t,n)};ni(l,(t=>{e.results&&e.results.length>0?t(c):t(h,!1)})),Qe(t,a),H()}We(["click"]);var Jn,Qn={exports:{}};
21 /* @preserve
22          * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
23          * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
24          */function to(){return Jn||(Jn=1,function(t){var e="1.9.4";function i(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++)for(e in o=arguments[i])t[e]=o[e];return t}var n=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function o(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var s=0;function r(t){return"_leaflet_id"in t||(t._leaflet_id=++s),t._leaflet_id}function a(t,e,i){var n,o,s,r;return r=function(){n=!1,o&&(s.apply(i,o),o=!1)},s=function(){n?o=arguments:(t.apply(i,arguments),setTimeout(r,e),n=!0)},s}function l(t,e,i){var n=e[1],o=e[0],s=n-o;return t===n&&i?t:((t-o)%s+s)%s+o}function c(){return!1}function h(t,e){if(!1===e)return t;var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function d(t){return u(t).split(/\s+/)}function p(t,e){for(var i in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),e)t.options[i]=e[i];return t.options}function f(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function _(t,e){return t.replace(m,(function(t,i){var n=e[i];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(e)),n}))}var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function v(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var w=0;function x(t){var e=+new Date,i=Math.max(0,16-(e-w));return w=e+i,window.setTimeout(t,i)}var P=window.requestAnimationFrame||b("RequestAnimationFrame")||x,T=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function k(t,e,i){if(!i||P!==x)return P.call(window,o(t,e));t.call(e)}function M(t){t&&T.call(window,t)}var C={__proto__:null,extend:i,create:n,bind:o,get lastId(){return s},stamp:r,throttle:a,wrapNum:l,falseFn:c,formatNum:h,trim:u,splitWords:d,setOptions:p,getParamString:f,template:_,isArray:g,indexOf:v,emptyImageUrl:y,requestFn:P,cancelFn:T,requestAnimFrame:k,cancelAnimFrame:M};function E(){}function A(t){if("undefined"!=typeof L&&L&&L.Mixin){t=g(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}E.extend=function(t){var e=function(){p(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=e.__super__=this.prototype,s=n(o);for(var r in s.constructor=e,e.prototype=s,this)Object.prototype.hasOwnProperty.call(this,r)&&"prototype"!==r&&"__super__"!==r&&(e[r]=this[r]);return t.statics&&i(e,t.statics),t.includes&&(A(t.includes),i.apply(null,[s].concat(t.includes))),i(s,t),delete s.statics,delete s.includes,s.options&&(s.options=o.options?n(o.options):{},i(s.options,t.options)),s._initHooks=[],s.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=s._initHooks.length;t<e;t++)s._initHooks[t].call(this)}},e},E.include=function(t){var e=this.prototype.options;return i(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},E.mergeOptions=function(t){return i(this.prototype.options,t),this},E.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var S={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var o=0,s=(t=d(t)).length;o<s;o++)this._on(t[o],e,i);return this},off:function(t,e,i){if(arguments.length)if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else{t=d(t);for(var o=1===arguments.length,s=0,r=t.length;s<r;s++)o?this._off(t[s]):this._off(t[s],e,i)}else delete this._events;return this},_on:function(t,e,i,n){if("function"==typeof e){if(!1===this._listens(t,e,i)){i===this&&(i=void 0);var o={fn:e,ctx:i};n&&(o.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(o)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,i){var n,o,s;if(this._events&&(n=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var r=this._listens(t,e,i);if(!1!==r){var a=n[r];this._firingCount&&(a.fn=c,this._events[t]=n=n.slice()),n.splice(r,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(o=0,s=n.length;o<s;o++)n[o].fn=c;delete this._events[t]}},fire:function(t,e,n){if(!this.listens(t,n))return this;var o=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var r=0,a=s.length;r<a;r++){var l=s[r],c=l.fn;l.once&&this.off(t,c,l.ctx),c.call(l.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,e,i,n){"string"!=typeof t&&console.warn('"string" type argument expected');var o=e;"function"!=typeof e&&(n=!!e,o=void 0,i=void 0);var s=this._events&&this._events[t];if(s&&s.length&&!1!==this._listens(t,o,i))return!0;if(n)for(var r in this._eventParents)if(this._eventParents[r].listens(t,e,i,n))return!0;return!1},_listens:function(t,e,i){if(!this._events)return!1;var n=this._events[t]||[];if(!e)return!!n.length;i===this&&(i=void 0);for(var o=0,s=n.length;o<s;o++)if(n[o].fn===e&&n[o].ctx===i)return o;return!1},once:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e,!0);else for(var o=0,s=(t=d(t)).length;o<s;o++)this._on(t[o],e,i,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[r(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[r(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),!0)}};S.addEventListener=S.on,S.removeEventListener=S.clearAllEventListeners=S.off,S.addOneTimeEventListener=S.once,S.fireEvent=S.fire,S.hasEventListeners=S.listens;var O=E.extend(S);function z(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var I=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function D(t,e,i){return t instanceof z?t:g(t)?new z(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new z(t.x,t.y):new z(t,e,i)}function N(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function B(t,e){return!t||t instanceof N?t:new N(t,e)}function Z(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function j(t,e){return t instanceof Z?t:new Z(t,e)}function R(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function $(t,e,i){return t instanceof R?t:g(t)&&"object"!=typeof t[0]?3===t.length?new R(t[0],t[1],t[2]):2===t.length?new R(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new R(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new R(t,e,i)}z.prototype={clone:function(){return new z(this.x,this.y)},add:function(t){return this.clone()._add(D(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(D(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new z(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new z(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=I(this.x),this.y=I(this.y),this},distanceTo:function(t){var e=(t=D(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=D(t)).x===this.x&&t.y===this.y},contains:function(t){return t=D(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+h(this.x)+", "+h(this.y)+")"}},N.prototype={extend:function(t){var e,i;if(!t)return this;if(t instanceof z||"number"==typeof t[0]||"x"in t)e=i=D(t);else if(e=(t=B(t)).min,i=t.max,!e||!i)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(i.y,this.max.y)):(this.min=e.clone(),this.max=i.clone()),this},getCenter:function(t){return D((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return D(this.min.x,this.max.y)},getTopRight:function(){return D(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof z?D(t):B(t))instanceof N?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=B(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,r=o.y>=e.y&&n.y<=i.y;return s&&r},overlaps:function(t){t=B(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.x<i.x,r=o.y>e.y&&n.y<i.y;return s&&r},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t,o=Math.abs(e.y-i.y)*t;return B(D(e.x-n,e.y-o),D(i.x+n,i.y+o))},equals:function(t){return!!t&&(t=B(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},Z.prototype={extend:function(t){var e,i,n=this._southWest,o=this._northEast;if(t instanceof R)e=t,i=t;else{if(!(t instanceof Z))return t?this.extend($(t)||j(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||o?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),o.lat=Math.max(i.lat,o.lat),o.lng=Math.max(i.lng,o.lng)):(this._southWest=new R(e.lat,e.lng),this._northEast=new R(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new Z(new R(e.lat-n,e.lng-o),new R(i.lat+n,i.lng+o))},getCenter:function(){return new R((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new R(this.getNorth(),this.getWest())},getSouthEast:function(){return new R(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof R||"lat"in t?$(t):j(t);var e,i,n=this._southWest,o=this._northEast;return t instanceof Z?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=j(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,r=o.lng>=e.lng&&n.lng<=i.lng;return s&&r},overlaps:function(t){t=j(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.lat<i.lat,r=o.lng>e.lng&&n.lng<i.lng;return s&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=j(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},R.prototype={equals:function(t,e){return!!t&&(t=$(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+h(this.lat,t)+", "+h(this.lng,t)+")"},distanceTo:function(t){return q.distance(this,$(t))},wrap:function(){return q.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return j([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new R(this.lat,this.lng,this.alt)}};var F,H={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new N(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new R(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,o=e.lng-i.lng;if(0===n&&0===o)return t;var s=t.getSouthWest(),r=t.getNorthEast();return new Z(new R(s.lat-n,s.lng-o),new R(r.lat-n,r.lng-o))}},q=i({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,s=Math.sin((e.lat-t.lat)*i/2),r=Math.sin((e.lng-t.lng)*i/2),a=s*s+Math.cos(n)*Math.cos(o)*r*r,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}}),W=6378137,U={R:W,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=Math.sin(n*e);return new z(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new R((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(F=W*Math.PI,new N([-F,-F],[F,F]))};function V(t,e,i,n){if(g(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function K(t,e,i,n){return new V(t,e,i,n)}V.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new z((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var G=i({},q,{code:"EPSG:3857",projection:U,transformation:function(){var t=.5/(Math.PI*U.R);return K(t,.5,-t,.5)}()}),Y=i({},G,{code:"EPSG:900913"});function X(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function J(t,e){var i,n,o,s,r,a,l="";for(i=0,o=t.length;i<o;i++){for(n=0,s=(r=t[i]).length;n<s;n++)l+=(n?"L":"M")+(a=r[n]).x+" "+a.y;l+=e?Zt.svg?"z":"x":""}return l||"M0 0"}var Q,tt=document.documentElement.style,et="ActiveXObject"in window,it=et&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),ot=Bt("webkit"),st=Bt("android"),rt=Bt("android 2")||Bt("android 3"),at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),lt=st&&Bt("Google")&&at<537&&!("AudioNode"in window),ct=!!window.opera,ht=!nt&&Bt("chrome"),ut=Bt("gecko")&&!ot&&!ct&&!et,dt=!ht&&Bt("safari"),pt=Bt("phantom"),ft="OTransition"in tt,mt=0===navigator.platform.indexOf("Win"),_t=et&&"transition"in tt,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!rt,vt="MozPerspective"in tt,yt=!window.L_DISABLE_3D&&(_t||gt||vt)&&!ft&&!pt,bt="undefined"!=typeof orientation||Bt("mobile"),wt=bt&&ot,xt=bt&&gt,Lt=!window.PointerEvent&&window.MSPointerEvent,Pt=!(!window.PointerEvent&&!Lt),Tt="ontouchstart"in window||!!window.TouchEvent,kt=!window.L_NO_TOUCH&&(Tt||Pt),Mt=bt&&ct,Ct=bt&&ut,Et=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,At=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",c,e),window.removeEventListener("testPassiveEventSupport",c,e)}catch(t){}return t}(),St=!!document.createElement("canvas").getContext,Ot=!(!document.createElementNS||!X("svg").createSVGRect),zt=!!Ot&&((Q=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(Q.firstChild&&Q.firstChild.namespaceURI)),It=!Ot&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),Dt=0===navigator.platform.indexOf("Mac"),Nt=0===navigator.platform.indexOf("Linux");function Bt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Zt={ie:et,ielt9:it,edge:nt,webkit:ot,android:st,android23:rt,androidStock:lt,opera:ct,chrome:ht,gecko:ut,safari:dt,phantom:pt,opera12:ft,win:mt,ie3d:_t,webkit3d:gt,gecko3d:vt,any3d:yt,mobile:bt,mobileWebkit:wt,mobileWebkit3d:xt,msPointer:Lt,pointer:Pt,touch:kt,touchNative:Tt,mobileOpera:Mt,mobileGecko:Ct,retina:Et,passiveEvents:At,canvas:St,svg:Ot,vml:It,inlineSvg:zt,mac:Dt,linux:Nt},jt=Zt.msPointer?"MSPointerDown":"pointerdown",Rt=Zt.msPointer?"MSPointerMove":"pointermove",$t=Zt.msPointer?"MSPointerUp":"pointerup",Ft=Zt.msPointer?"MSPointerCancel":"pointercancel",Ht={touchstart:jt,touchmove:Rt,touchend:$t,touchcancel:Ft},qt={touchstart:te,touchmove:Qt,touchend:Qt,touchcancel:Qt},Wt={},Ut=!1;function Vt(t,e,i){return"touchstart"===e&&Jt(),qt[e]?(i=qt[e].bind(this,i),t.addEventListener(Ht[e],i,!1),i):(console.warn("wrong event specified:",e),c)}function Kt(t,e,i){Ht[e]?t.removeEventListener(Ht[e],i,!1):console.warn("wrong event specified:",e)}function Gt(t){Wt[t.pointerId]=t}function Yt(t){Wt[t.pointerId]&&(Wt[t.pointerId]=t)}function Xt(t){delete Wt[t.pointerId]}function Jt(){Ut||(document.addEventListener(jt,Gt,!0),document.addEventListener(Rt,Yt,!0),document.addEventListener($t,Xt,!0),document.addEventListener(Ft,Xt,!0),Ut=!0)}function Qt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Wt)e.touches.push(Wt[i]);e.changedTouches=[e],t(e)}}function te(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ge(e),Qt(t,e)}function ee(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return t=n,n.type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}var ie=200;function ne(t,e){t.addEventListener("dblclick",e);var i,n=0;function o(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var o=Xe(t);if(!o.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||o.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var s=Date.now();s-n<=ie?2===++i&&e(ee(t)):i=1,n=s}}}else i=t.detail}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function oe(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var se,re,ae,le,ce,he=Me(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ue=Me(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),de="webkitTransition"===ue||"OTransition"===ue?ue+"End":"transitionend";function pe(t){return"string"==typeof t?document.getElementById(t):t}function fe(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function me(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function _e(t){var e=t.parentNode;e&&e.removeChild(t)}function ge(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ve(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ye(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function be(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=Pe(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function we(t,e){if(void 0!==t.classList)for(var i=d(e),n=0,o=i.length;n<o;n++)t.classList.add(i[n]);else if(!be(t,e)){var s=Pe(t);Le(t,(s?s+" ":"")+e)}}function xe(t,e){void 0!==t.classList?t.classList.remove(e):Le(t,u((" "+Pe(t)+" ").replace(" "+e+" "," ")))}function Le(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function Pe(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function Te(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&ke(t,e)}function ke(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}function Me(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function Ce(t,e,i){var n=e||new z(0,0);t.style[he]=(Zt.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function Ee(t,e){t._leaflet_pos=e,Zt.any3d?Ce(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Ae(t){return t._leaflet_pos||new z(0,0)}if("onselectstart"in document)se=function(){je(window,"selectstart",Ge)},re=function(){$e(window,"selectstart",Ge)};else{var Se=Me(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);se=function(){if(Se){var t=document.documentElement.style;ae=t[Se],t[Se]="none"}},re=function(){Se&&(document.documentElement.style[Se]=ae,ae=void 0)}}function Oe(){je(window,"dragstart",Ge)}function ze(){$e(window,"dragstart",Ge)}function Ie(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(De(),le=t,ce=t.style.outlineStyle,t.style.outlineStyle="none",je(window,"keydown",De))}function De(){le&&(le.style.outlineStyle=ce,le=void 0,ce=void 0,$e(window,"keydown",De))}function Ne(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Be(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ze={__proto__:null,TRANSFORM:he,TRANSITION:ue,TRANSITION_END:de,get:pe,getStyle:fe,create:me,remove:_e,empty:ge,toFront:ve,toBack:ye,hasClass:be,addClass:we,removeClass:xe,setClass:Le,getClass:Pe,setOpacity:Te,testProp:Me,setTransform:Ce,setPosition:Ee,getPosition:Ae,get disableTextSelection(){return se},get enableTextSelection(){return re},disableImageDrag:Oe,enableImageDrag:ze,preventOutline:Ie,restoreOutline:De,getSizedParentNode:Ne,getScale:Be};function je(t,e,i,n){if(e&&"object"==typeof e)for(var o in e)qe(t,o,e[o],i);else for(var s=0,r=(e=d(e)).length;s<r;s++)qe(t,e[s],i,n);return this}var Re="_leaflet_events";function $e(t,e,i,n){if(1===arguments.length)Fe(t),delete t[Re];else if(e&&"object"==typeof e)for(var o in e)We(t,o,e[o],i);else if(e=d(e),2===arguments.length)Fe(t,(function(t){return-1!==v(e,t)}));else for(var s=0,r=e.length;s<r;s++)We(t,e[s],i,n);return this}function Fe(t,e){for(var i in t[Re]){var n=i.split(/\d/)[0];e&&!e(n)||We(t,n,null,null,i)}}var He={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function qe(t,e,i,n){var o=e+r(i)+(n?"_"+r(n):"");if(t[Re]&&t[Re][o])return this;var s=function(e){return i.call(n||t,e||window.event)},a=s;!Zt.touchNative&&Zt.pointer&&0===e.indexOf("touch")?s=Vt(t,e,s):Zt.touch&&"dblclick"===e?s=ne(t,s):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(He[e]||e,s,!!Zt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(s=function(e){e=e||window.event,ei(t,e)&&a(e)},t.addEventListener(He[e],s,!1)):t.addEventListener(e,a,!1):t.attachEvent("on"+e,s),t[Re]=t[Re]||{},t[Re][o]=s}function We(t,e,i,n,o){o=o||e+r(i)+(n?"_"+r(n):"");var s=t[Re]&&t[Re][o];if(!s)return this;!Zt.touchNative&&Zt.pointer&&0===e.indexOf("touch")?Kt(t,e,s):Zt.touch&&"dblclick"===e?oe(t,s):"removeEventListener"in t?t.removeEventListener(He[e]||e,s,!1):t.detachEvent("on"+e,s),t[Re][o]=null}function Ue(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ve(t){return qe(t,"wheel",Ue),this}function Ke(t){return je(t,"mousedown touchstart dblclick contextmenu",Ue),t._leaflet_disable_click=!0,this}function Ge(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ye(t){return Ge(t),Ue(t),this}function Xe(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function Je(t,e){if(!e)return new z(t.clientX,t.clientY);var i=Be(e),n=i.boundingClientRect;return new z((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Qe=Zt.linux&&Zt.chrome?window.devicePixelRatio:Zt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function ti(t){return Zt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Qe:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function ei(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}var ii={__proto__:null,on:je,off:$e,stopPropagation:Ue,disableScrollPropagation:Ve,disableClickPropagation:Ke,preventDefault:Ge,stop:Ye,getPropagationPath:Xe,getMousePosition:Je,getWheelDelta:ti,isExternalTarget:ei,addListener:je,removeListener:$e},ni=O.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Ae(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=k(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),Ee(this._el,i),this.fire("step")},_complete:function(){M(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),oi=O.extend({options:{crs:G,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=p(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView($(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ue&&Zt.any3d&&!Zt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),je(this._proxy,de,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter($(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=i({animate:n.animate},n.zoom),n.pan=i({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,n.pan&&n.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Zt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Zt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),s=(t instanceof z?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),r=this.containerPointToLatLng(o.add(s));return this.setView(r,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():j(t);var i=D(e.paddingTopLeft||e.padding||[0,0]),n=D(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var s=n.subtract(i).divideBy(2),r=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o);return{center:this.unproject(r.add(a).divideBy(2).add(s),o),zoom:o}},fitBounds:function(t,e){if(!(t=j(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=D(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new ni,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){we(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!Zt.any3d)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),o=this.project(t),s=this.getSize(),r=this._zoom;t=$(t),e=void 0===e?r:e;var a=Math.max(s.x,s.y),l=a*this.getZoomScale(r,e),c=o.distanceTo(n)||1,h=1.42,u=h*h;function d(t){var e=(l*l-a*a+(t?-1:1)*u*u*c*c)/(2*(t?l:a)*u*c),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return p(t)/f(t)}var _=d(0);function g(t){return a*(f(_)/f(_+h*t))}function v(t){return a*(f(_)*m(_+h*t)-p(_))/u}function y(t){return 1-Math.pow(1-t,1.5)}var b=Date.now(),w=(d(1)-_)/h,x=i.duration?1e3*i.duration:1e3*w*.8;function L(){var i=(Date.now()-b)/x,s=y(i)*w;i<=1?(this._flyToFrame=k(L,this),this._move(this.unproject(n.add(o.subtract(n).multiplyBy(v(s)/c)),r),this.getScaleZoom(a/g(s),r),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,i.noMoveStart),L.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return t=j(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,j(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=D((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=D(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),s=this.project(t),r=this.getPixelBounds(),a=B([r.min.add(i),r.max.subtract(n)]),l=a.getSize();if(!a.contains(s)){this._enforcingBounds=!0;var c=s.subtract(a.getCenter()),h=a.extend(s).getSize().subtract(l);o.x+=c.x<0?-h.x:h.x,o.y+=c.y<0?-h.y:h.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),s=e.divideBy(2).round(),r=n.divideBy(2).round(),a=s.subtract(r);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new R(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(o,n.maxZoom):o)}var s={latlng:e,bounds:i,timestamp:t.timestamp};for(var r in t.coords)"number"==typeof t.coords[r]&&(s[r]=t.coords[r]);this.fire("locationfound",s)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),_e(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(M(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)_e(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=me("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new Z(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=j(t),i=D(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(i),c=B(this.project(a,n),this.project(r,n)).getSize(),h=Zt.any3d?this.options.zoomSnap:1,u=l.x/c.x,d=l.y/c.y,p=e?Math.max(u,d):Math.min(u,d);return n=this.getScaleZoom(p,n),h&&(n=Math.round(n/(h/100))*(h/100),n=e?Math.ceil(n/h)*h:Math.floor(n/h)*h),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new N(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint($(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(D(t),e)},layerPointToLatLng:function(t){var e=D(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project($(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng($(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(j(t))},distance:function(t,e){return this.options.crs.distance($(t),$(e))},containerPointToLayerPoint:function(t){return D(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return D(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(D(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint($(t)))},mouseEventToContainerPoint:function(t){return Je(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=pe(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");je(e,"scroll",this._onScroll,this),this._containerId=r(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Zt.any3d,we(t,"leaflet-container"+(Zt.touch?" leaflet-touch":"")+(Zt.retina?" leaflet-retina":"")+(Zt.ielt9?" leaflet-oldie":"")+(Zt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=fe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ee(this._mapPane,new z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(we(t.markerPane,"leaflet-zoom-hide"),we(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){Ee(this._mapPane,new z(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return M(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Ee(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[r(this._container)]=this;var e=t?$e:je;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Zt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){M(this._resizeRequest),this._resizeRequest=k((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],o="mouseout"===e||"mouseover"===e,s=t.target||t.srcElement,a=!1;s;){if((i=this._targets[r(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){a=!0;break}if(i&&i.listens(e,!0)){if(o&&!ei(s,t))break;if(n.push(i),o)break}if(s===this._container)break;s=s.parentNode}return n.length||a||o||!this.listens(e,!0)||(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var i=t.type;"mousedown"===i&&Ie(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var o=i({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}var s=this._findEventTargets(t,e);if(n){for(var r=[],a=0;a<n.length;a++)n[a].listens(e,!0)&&r.push(n[a]);s=r.concat(s)}if(s.length){"contextmenu"===e&&Ge(t);var l=s[0],c={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var h=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=h?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=h?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(a=0;a<s.length;a++)if(s[a].fire(e,c,!0),c.originalEvent._stopped||!1===s[a].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Ae(this._mapPane)||new z(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return B([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),o=this.getSize().divideBy(2),s=new N(n.subtract(o),n.add(o)),r=this._getBoundsOffset(s,i,e);return Math.abs(r.x)<=1&&Math.abs(r.y)<=1?t:this.unproject(n.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new N(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=B(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),o=n.min.subtract(t.min),s=n.max.subtract(t.max);return new z(this._rebound(o.x,-s.x),this._rebound(o.y,-s.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Zt.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){xe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=me("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=he,i=this._proxy.style[e];Ce(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){_e(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Ce(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(o)||(k((function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,we(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&xe(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function si(t,e){return new oi(t,e)}var ri=E.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return we(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(_e(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ai=function(t){return new ri(t)};oi.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=me("div",e+"control-container",this._container);function n(n,o){var s=e+n+" "+e+o;t[n+o]=me("div",s,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)_e(this._controlCorners[t]);_e(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var li=ri.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in p(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return ri.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(r(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){we(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(we(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):xe(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return xe(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=me("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Ke(e),Ve(e);var n=this._section=me("section",t+"-list");i&&(this._map.on("click",this.collapse,this),je(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var o=this._layersLink=me("a",t+"-toggle",e);o.href="#",o.title="Layers",o.setAttribute("role","button"),je(o,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Ge(t),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=me("div",t+"-base",n),this._separator=me("div",t+"-separator",n),this._overlaysList=me("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&r(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(o((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ge(this._baseLayersList),ge(this._overlaysList),this._layerControlInputs=[];var t,e,i,n,o=0;for(i=0;i<this._layers.length;i++)n=this._layers[i],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,o+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(r(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+r(this),n),this._layerControlInputs.push(e),e.layerId=r(t.layer),je(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("span");return i.appendChild(s),s.appendChild(e),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=i.length-1;s>=0;s--)t=i[s],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<n.length;s++)this._map.hasLayer(n[s])||this._map.addLayer(n[s]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),o=i.length-1;o>=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,je(t,"click",Ge),this.expand();var e=this;setTimeout((function(){$e(t,"click",Ge),e._preventClick=!1}))}}),ci=function(t,e,i){return new li(t,e,i)},hi=ri.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=me("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var s=me("a",i,n);return s.innerHTML=t,s.href="#",s.title=e,s.setAttribute("role","button"),s.setAttribute("aria-label",e),Ke(s),je(s,"click",Ye),je(s,"click",o,this),je(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";xe(this._zoomInButton,e),xe(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(we(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(we(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});oi.mergeOptions({zoomControl:!0}),oi.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new hi,this.addControl(this.zoomControl))}));var ui=function(t){return new hi(t)},di=ri.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=me("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=me("div",e,i)),t.imperial&&(this._iScale=me("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,o=3.2808399*t;o>5280?(e=o/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),pi=function(t){return new di(t)},fi='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',mi=ri.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Zt.inlineSvg?fi+" ":"")+"Leaflet</a>"},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=me("div","leaflet-control-attribution"),Ke(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}});oi.mergeOptions({attributionControl:!0}),oi.addInitHook((function(){this.options.attributionControl&&(new mi).addTo(this)}));var _i=function(t){return new mi(t)};ri.Layers=li,ri.Zoom=hi,ri.Scale=di,ri.Attribution=mi,ai.layers=ci,ai.zoom=ui,ai.scale=pi,ai.attribution=_i;var gi=E.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});gi.addTo=function(t,e){return t.addHandler(e,this),this};var vi={Events:S},yi=Zt.touch?"touchstart mousedown":"mousedown",bi=O.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){p(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(je(this._dragStartTarget,yi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(bi._dragging===this&&this.finishDrag(!0),$e(this._dragStartTarget,yi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!be(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)bi._dragging===this&&this.finishDrag();else if(!(bi._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(bi._dragging=this,this._preventOutline&&Ie(this._element),Oe(),se(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,i=Ne(this._element);this._startPoint=new z(e.clientX,e.clientY),this._startPos=Ae(this._element),this._parentScale=Be(i);var n="mousedown"===t.type;je(document,n?"mousemove":"touchmove",this._onMove,this),je(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new z(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,Ge(t),this._moved||(this.fire("dragstart"),this._moved=!0,we(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),we(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Ee(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){xe(document.body,"leaflet-dragging"),this._lastTarget&&(xe(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),$e(document,"mousemove touchmove",this._onMove,this),$e(document,"mouseup touchend touchcancel",this._onUp,this),ze(),re();var e=this._moved&&this._moving;this._moving=!1,bi._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function wi(t,e,i){var n,o,s,r,a,l,c,h,u,d=[1,4,2,8];for(o=0,c=t.length;o<c;o++)t[o]._code=Ii(t[o],e);for(r=0;r<4;r++){for(h=d[r],n=[],o=0,s=(c=t.length)-1;o<c;s=o++)a=t[o],l=t[s],a._code&h?l._code&h||((u=zi(l,a,h,e,i))._code=Ii(u,e),n.push(u)):(l._code&h&&((u=zi(l,a,h,e,i))._code=Ii(u,e),n.push(u)),n.push(a));t=n}return t}function xi(t,e){var i,n,o,s,r,a,l,c,h;if(!t||0===t.length)throw new Error("latlngs not passed");Bi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=$([0,0]),d=j(t);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(u=Li(t));var p=t.length,f=[];for(i=0;i<p;i++){var m=$(t[i]);f.push(e.project($([m.lat-u.lat,m.lng-u.lng])))}for(a=l=c=0,i=0,n=p-1;i<p;n=i++)o=f[i],s=f[n],r=o.y*s.x-s.y*o.x,l+=(o.x+s.x)*r,c+=(o.y+s.y)*r,a+=3*r;h=0===a?f[0]:[l/a,c/a];var _=e.unproject(D(h));return $([_.lat+u.lat,_.lng+u.lng])}function Li(t){for(var e=0,i=0,n=0,o=0;o<t.length;o++){var s=$(t[o]);e+=s.lat,i+=s.lng,n++}return $([e/n,i/n])}var Pi,Ti={__proto__:null,clipPolygon:wi,polygonCenter:xi,centroid:Li};function ki(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=Ei(t=Si(t,i),i)}function Mi(t,e,i){return Math.sqrt(Ni(t,e,i,!0))}function Ci(t,e,i){return Ni(t,e,i)}function Ei(t,e){var i=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,Ai(t,n,e,0,i-1);var o,s=[];for(o=0;o<i;o++)n[o]&&s.push(t[o]);return s}function Ai(t,e,i,n,o){var s,r,a,l=0;for(r=n+1;r<=o-1;r++)(a=Ni(t[r],t[n],t[o],!0))>l&&(s=r,l=a);l>i&&(e[s]=1,Ai(t,e,i,n,s),Ai(t,e,i,s,o))}function Si(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;n<s;n++)Di(t[n],t[o])>e&&(i.push(t[n]),o=n);return o<s-1&&i.push(t[s-1]),i}function Oi(t,e,i,n,o){var s,r,a,l=n?Pi:Ii(t,i),c=Ii(e,i);for(Pi=c;;){if(!(l|c))return[t,e];if(l&c)return!1;a=Ii(r=zi(t,e,s=l||c,i,o),i),s===l?(t=r,l=a):(e=r,c=a)}}function zi(t,e,i,n,o){var s,r,a=e.x-t.x,l=e.y-t.y,c=n.min,h=n.max;return 8&i?(s=t.x+a*(h.y-t.y)/l,r=h.y):4&i?(s=t.x+a*(c.y-t.y)/l,r=c.y):2&i?(s=h.x,r=t.y+l*(h.x-t.x)/a):1&i&&(s=c.x,r=t.y+l*(c.x-t.x)/a),new z(s,r,o)}function Ii(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function Di(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Ni(t,e,i,n){var o,s=e.x,r=e.y,a=i.x-s,l=i.y-r,c=a*a+l*l;return c>0&&((o=((t.x-s)*a+(t.y-r)*l)/c)>1?(s=i.x,r=i.y):o>0&&(s+=a*o,r+=l*o)),a=t.x-s,l=t.y-r,n?a*a+l*l:new z(s,r)}function Bi(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Zi(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Bi(t)}function ji(t,e){var i,n,o,s,r,a,l,c;if(!t||0===t.length)throw new Error("latlngs not passed");Bi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var h=$([0,0]),u=j(t);u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest())<1700&&(h=Li(t));var d=t.length,p=[];for(i=0;i<d;i++){var f=$(t[i]);p.push(e.project($([f.lat-h.lat,f.lng-h.lng])))}for(i=0,n=0;i<d-1;i++)n+=p[i].distanceTo(p[i+1])/2;if(0===n)c=p[0];else for(i=0,s=0;i<d-1;i++)if(r=p[i],a=p[i+1],(s+=o=r.distanceTo(a))>n){l=(s-n)/o,c=[a.x-l*(a.x-r.x),a.y-l*(a.y-r.y)];break}var m=e.unproject(D(c));return $([m.lat+h.lat,m.lng+h.lng])}var Ri={__proto__:null,simplify:ki,pointToSegmentDistance:Mi,closestPointOnSegment:Ci,clipSegment:Oi,_getEdgeIntersection:zi,_getBitCode:Ii,_sqClosestPointOnSegment:Ni,isFlat:Bi,_flat:Zi,polylineCenter:ji},$i={project:function(t){return new z(t.lng,t.lat)},unproject:function(t){return new R(t.y,t.x)},bounds:new N([-180,-90],[180,90])},Fi={R:6378137,R_MINOR:6356752.314245179,bounds:new N([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,s=Math.sqrt(1-o*o),r=s*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2);return n=-i*Math.log(Math.max(a,1e-10)),new z(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)e=s*Math.sin(a),e=Math.pow((1-e)/(1+e),s/2),a+=c=Math.PI/2-2*Math.atan(r*e)-a;return new R(a*i,t.x*i/n)}},Hi={__proto__:null,LonLat:$i,Mercator:Fi,SphericalMercator:U},qi=i({},q,{code:"EPSG:3395",projection:Fi,transformation:function(){var t=.5/(Math.PI*Fi.R);return K(t,.5,-t,.5)}()}),Wi=i({},q,{code:"EPSG:4326",projection:$i,transformation:K(1/180,1,-1/180,.5)}),Ui=i({},H,{projection:$i,transformation:K(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});H.Earth=q,H.EPSG3395=qi,H.EPSG3857=G,H.EPSG900913=Y,H.EPSG4326=Wi,H.Simple=Ui;var Vi=O.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});oi.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=r(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=r(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return r(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?g(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[r(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=r(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ki=Vi.extend({initialize:function(t,e){var i,n;if(p(this,e),this._layers={},t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return r(t)}}),Gi=function(t,e){return new Ki(t,e)},Yi=Ki.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ki.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ki.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new Z;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Xi=function(t,e){return new Yi(t,e)},Ji=E.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(n,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var o=D(n),s=D("shadow"===e&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Zt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Qi(t){return new Ji(t)}var tn=Ji.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof tn.imagePath&&(tn.imagePath=this._detectIconPath()),(this.options.imagePath||tn.imagePath)+Ji.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var n=e.exec(t);return n&&n[i]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=me("div","leaflet-default-icon-path",document.body),e=fe(t,"background-image")||fe(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var i=document.querySelector('link[href$="leaflet.css"]');return i?i.href.substring(0,i.href.length-11-1):""}}),en=gi.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new bi(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),we(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&xe(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,s=Ae(e._icon),r=i.getPixelBounds(),a=i.getPixelOrigin(),l=B(r.min._subtract(a).add(o),r.max._subtract(a).subtract(o));if(!l.contains(s)){var c=D((Math.max(l.max.x,s.x)-l.max.x)/(r.max.x-l.max.x)-(Math.min(l.min.x,s.x)-l.min.x)/(r.min.x-l.min.x),(Math.max(l.max.y,s.y)-l.max.y)/(r.max.y-l.max.y)-(Math.min(l.min.y,s.y)-l.min.y)/(r.min.y-l.min.y)).multiplyBy(n);i.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),Ee(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=k(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(M(this._panRequest),this._panRequest=k(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=Ae(e._icon),o=e._map.layerPointToLatLng(n);i&&Ee(i,n),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){M(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),nn=Vi.extend({options:{icon:new tn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){p(this,e),this._latlng=$(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=$(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),we(i,e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&je(i,"focus",this._panOnFocus,this);var o=t.icon.createShadow(this._shadow),s=!1;o!==this._shadow&&(this._removeShadow(),s=!0),o&&(we(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&s&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&$e(this._icon,"focus",this._panOnFocus,this),_e(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&_e(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Ee(this._icon,t),this._shadow&&Ee(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(we(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),en)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new en(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&Te(this._icon,t),this._shadow&&Te(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,i=e.iconSize?D(e.iconSize):D(0,0),n=e.iconAnchor?D(e.iconAnchor):D(0,0);t.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:i.subtract(n)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function on(t,e){return new nn(t,e)}var sn=Vi.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return p(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),rn=sn.extend({options:{fill:!0,radius:10},initialize:function(t,e){p(this,e),this._latlng=$(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=$(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return sn.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new N(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function an(t,e){return new rn(t,e)}var ln=rn.extend({initialize:function(t,e,n){if("number"==typeof e&&(e=i({},n,{radius:e})),p(this,e),this._latlng=$(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new Z(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:sn.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===q.distance){var o=Math.PI/180,s=this._mRadius/q.R/o,r=i.project([e+s,t]),a=i.project([e-s,t]),l=r.add(a).divideBy(2),c=i.unproject(l).lat,h=Math.acos((Math.cos(s*o)-Math.sin(e*o)*Math.sin(c*o))/(Math.cos(e*o)*Math.cos(c*o)))/o;(isNaN(h)||0===h)&&(h=s/Math.cos(Math.PI/180*e)),this._point=l.subtract(i.getPixelOrigin()),this._radius=isNaN(h)?0:l.x-i.project([c,t-h]).x,this._radiusY=l.y-r.y}else{var u=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(u).x}this._updateBounds()}});function cn(t,e,i){return new ln(t,e,i)}var hn=sn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){p(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,i,n=1/0,o=null,s=Ni,r=0,a=this._parts.length;r<a;r++)for(var l=this._parts[r],c=1,h=l.length;c<h;c++){var u=s(t,e=l[c-1],i=l[c],!0);u<n&&(n=u,o=s(t,e,i))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ji(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=$(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new Z,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Bi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=Bi(t),n=0,o=t.length;n<o;n++)i?(e[n]=$(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new N;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new z(t,t);this._rawPxBounds&&(this._pxBounds=new N([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,i){var n,o,s=t[0]instanceof R,r=t.length;if(s){for(o=[],n=0;n<r;n++)o[n]=this._map.latLngToLayerPoint(t[n]),i.extend(o[n]);e.push(o)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,i,n,o,s,r,a,l=this._parts;for(e=0,n=0,o=this._rings.length;e<o;e++)for(i=0,s=(a=this._rings[e]).length;i<s-1;i++)(r=Oi(a[i],a[i+1],t,i,!0))&&(l[n]=l[n]||[],l[n].push(r[0]),r[1]===a[i+1]&&i!==s-2||(l[n].push(r[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=ki(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,o,s,r,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,s=this._parts.length;i<s;i++)for(n=0,o=(r=(a=this._parts[i]).length)-1;n<r;o=n++)if((e||0!==n)&&Mi(t,a[o],a[n])<=l)return!0;return!1}});function un(t,e){return new hn(t,e)}hn._flat=Zi;var dn=hn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return xi(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=hn.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof R&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){hn.prototype._setLatLngs.call(this,t),Bi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Bi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new z(e,e);if(t=new N(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,s=this._rings.length;o<s;o++)(n=wi(this._rings[o],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,o,s,r,a,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(s=0,r=(l=(e=this._parts[o]).length)-1;s<l;r=s++)i=e[s],n=e[r],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(c=!c);return c||hn.prototype._containsPoint.call(this,t,!0)}});function pn(t,e){return new dn(t,e)}var fn=Yi.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=g(t)?t:t.features;if(o){for(e=0,i=o.length;e<i;e++)((n=o[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s=this.options;if(s.filter&&!s.filter(t))return this;var r=mn(t,s);return r?(r.feature=xn(t),r.defaultOptions=r.options,this.resetStyle(r),s.onEachFeature&&s.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=i({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function mn(t,e){var i,n,o,s,r="Feature"===t.type?t.geometry:t,a=r?r.coordinates:null,l=[],c=e&&e.pointToLayer,h=e&&e.coordsToLatLng||gn;if(!a&&!r)return null;switch(r.type){case"Point":return _n(c,t,i=h(a),e);case"MultiPoint":for(o=0,s=a.length;o<s;o++)i=h(a[o]),l.push(_n(c,t,i,e));return new Yi(l);case"LineString":case"MultiLineString":return n=vn(a,"LineString"===r.type?0:1,h),new hn(n,e);case"Polygon":case"MultiPolygon":return n=vn(a,"Polygon"===r.type?1:2,h),new dn(n,e);case"GeometryCollection":for(o=0,s=r.geometries.length;o<s;o++){var u=mn({geometry:r.geometries[o],type:"Feature",properties:t.properties},e);u&&l.push(u)}return new Yi(l);case"FeatureCollection":for(o=0,s=r.features.length;o<s;o++){var d=mn(r.features[o],e);d&&l.push(d)}return new Yi(l);default:throw new Error("Invalid GeoJSON object.")}}function _n(t,e,i,n){return t?t(e,i):new nn(i,n&&n.markersInheritOptions&&n)}function gn(t){return new R(t[1],t[0],t[2])}function vn(t,e,i){for(var n,o=[],s=0,r=t.length;s<r;s++)n=e?vn(t[s],e-1,i):(i||gn)(t[s]),o.push(n);return o}function yn(t,e){return void 0!==(t=$(t)).alt?[h(t.lng,e),h(t.lat,e),h(t.alt,e)]:[h(t.lng,e),h(t.lat,e)]}function bn(t,e,i,n){for(var o=[],s=0,r=t.length;s<r;s++)o.push(e?bn(t[s],Bi(t[s])?0:e-1,i,n):yn(t[s],n));return!e&&i&&o.length>0&&o.push(o[0].slice()),o}function wn(t,e){return t.feature?i({},t.feature,{geometry:e}):xn(e)}function xn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Ln={toGeoJSON:function(t){return wn(this,{type:"Point",coordinates:yn(this.getLatLng(),t)})}};function Pn(t,e){return new fn(t,e)}nn.include(Ln),ln.include(Ln),rn.include(Ln),hn.include({toGeoJSON:function(t){var e=!Bi(this._latlngs);return wn(this,{type:(e?"Multi":"")+"LineString",coordinates:bn(this._latlngs,e?1:0,!1,t)})}}),dn.include({toGeoJSON:function(t){var e=!Bi(this._latlngs),i=e&&!Bi(this._latlngs[0]),n=bn(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),wn(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),Ki.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)})),wn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(i)n.push(o.geometry);else{var s=xn(o);"FeatureCollection"===s.type?n.push.apply(n,s.features):n.push(s)}}})),i?wn(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var Tn=Pn,kn=Vi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=j(e),p(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(we(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){_e(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ve(this._image),this},bringToBack:function(){return this._map&&ye(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=j(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:me("img");we(e,"leaflet-image-layer"),this._zoomAnimated&&we(e,"leaflet-zoom-animated"),this.options.className&&we(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=o(this.fire,this,"load"),e.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Ce(this._image,i,e)},_reset:function(){var t=this._image,e=new N(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();Ee(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){Te(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Mn=function(t,e,i){return new kn(t,e,i)},Cn=kn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:me("video");if(we(e,"leaflet-image-layer"),this._zoomAnimated&&we(e,"leaflet-zoom-animated"),this.options.className&&we(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=o(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],s=0;s<i.length;s++)n.push(i[s].src);this._url=i.length>0?n:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var r=0;r<this._url.length;r++){var a=me("source");a.src=this._url[r],e.appendChild(a)}}}});function En(t,e,i){return new Cn(t,e,i)}var An=kn.extend({_initImage:function(){var t=this._image=this._url;we(t,"leaflet-image-layer"),this._zoomAnimated&&we(t,"leaflet-zoom-animated"),this.options.className&&we(t,this.options.className),t.onselectstart=c,t.onmousemove=c}});function Sn(t,e,i){return new An(t,e,i)}var On=Vi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof R||g(t))?(this._latlng=$(t),p(this,e)):(p(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&Te(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&Te(this._container,1),this.bringToFront(),this.options.interactive&&(we(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(Te(this._container,0),this._removeTimeout=setTimeout(o(_e,void 0,this._container),200)):_e(this._container),this.options.interactive&&(xe(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=$(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ve(this._container),this},bringToBack:function(){return this._map&&ye(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Yi){e=null;var i=this._source._layers;for(var n in i)if(i[n]._map){e=i[n];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=D(this.options.offset),i=this._getAnchor();this._zoomAnimated?Ee(this._container,t.add(i)):e=e.add(t).add(i);var n=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}});oi.include({_initOverlay:function(t,e,i,n){var o=e;return o instanceof t||(o=new t(n).setContent(e)),i&&o.setLatLng(i),o}}),Vi.include({_initOverlay:function(t,e,i,n){var o=i;return o instanceof t?(p(o,n),o._source=this):(o=e&&!n?e:new t(n,this)).setContent(i),o}});var zn=On.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,On.prototype.openOn.call(this,t)},onAdd:function(t){On.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof sn||this._source.on("preclick",Ue))},onRemove:function(t){On.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof sn||this._source.off("preclick",Ue))},getEvents:function(){var t=On.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=me("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=me("div",t+"-content-wrapper",e);if(this._contentNode=me("div",t+"-content",i),Ke(e),Ve(this._contentNode),je(e,"contextmenu",Ue),this._tipContainer=me("div",t+"-tip-container",e),this._tip=me("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=me("a",t+"-close-button",e);n.setAttribute("role","button"),n.setAttribute("aria-label","Close popup"),n.href="#close",n.innerHTML='<span aria-hidden="true">&#215;</span>',je(n,"click",(function(t){Ge(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,o=this.options.maxHeight,s="leaflet-popup-scrolled";o&&n>o?(e.height=o+"px",we(t,s)):xe(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();Ee(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(fe(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new z(this._containerLeft,-i-this._containerBottom);o._add(Ae(this._container));var s=t.layerPointToContainerPoint(o),r=D(this.options.autoPanPadding),a=D(this.options.autoPanPaddingTopLeft||r),l=D(this.options.autoPanPaddingBottomRight||r),c=t.getSize(),h=0,u=0;s.x+n+l.x>c.x&&(h=s.x+n-c.x+l.x),s.x-h-a.x<0&&(h=s.x-a.x),s.y+i+l.y>c.y&&(u=s.y+i-c.y+l.y),s.y-u-a.y<0&&(u=s.y-a.y),(h||u)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([h,u]))}},_getAnchor:function(){return D(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),In=function(t,e){return new zn(t,e)};oi.mergeOptions({closePopupOnClick:!0}),oi.include({openPopup:function(t,e,i){return this._initOverlay(zn,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Vi.include({bindPopup:function(t,e){return this._popup=this._initOverlay(zn,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Yi||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ye(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof sn?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Dn=On.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){On.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){On.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=On.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=me("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+r(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,s=n.latLngToContainerPoint(n.getCenter()),r=n.layerPointToContainerPoint(t),a=this.options.direction,l=o.offsetWidth,c=o.offsetHeight,h=D(this.options.offset),u=this._getAnchor();"top"===a?(e=l/2,i=c):"bottom"===a?(e=l/2,i=0):"center"===a?(e=l/2,i=c/2):"right"===a?(e=0,i=c/2):"left"===a?(e=l,i=c/2):r.x<s.x?(a="right",e=0,i=c/2):(a="left",e=l+2*(h.x+u.x),i=c/2),t=t.subtract(D(e,i,!0)).add(h).add(u),xe(o,"leaflet-tooltip-right"),xe(o,"leaflet-tooltip-left"),xe(o,"leaflet-tooltip-top"),xe(o,"leaflet-tooltip-bottom"),we(o,"leaflet-tooltip-"+a),Ee(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Te(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return D(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Nn=function(t,e){return new Dn(t,e)};oi.include({openTooltip:function(t,e,i){return this._initOverlay(Dn,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Vi.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Dn,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,i.click=this._openTooltip,this._map?this._addFocusListeners():i.add=this._addFocusListeners),this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Yi||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(je(e,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),je(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",(function(){e._openOnceFlag=!1,e._openTooltip(t)}))}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,i,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),n=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(n)}});var Bn=Ji.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(ge(e),e.appendChild(i.html)):e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var n=D(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Zn(t){return new Bn(t)}Ji.Default=tn;var jn=Vi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Zt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),_e(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ve(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ye(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof z?t:new z(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,n=-t(-1/0,1/0),o=0,s=i.length;o<s;o++)e=i[o].style.zIndex,i[o]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Zt.ielt9){Te(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var n in this._tiles){var o=this._tiles[n];if(o.current&&o.loaded){var s=Math.min(1,(t-o.loaded)/200);Te(o.el,s),s<1?e=!0:(o.active?i=!0:this._onOpaqueTile(o),o.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(M(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=me("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(_e(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=me("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),c(n.el.offsetWidth),this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var n=e.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)_e(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,n){var o=Math.floor(t/2),s=Math.floor(e/2),r=i-1,a=new z(+o,+s);a.z=+r;var l=this._tileCoordsToKey(a),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),r>n&&this._retainParent(o,s,r,n))},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var r=new z(o,s);r.z=i+1;var a=this._tileCoordsToKey(r),l=this._tiles[a];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),i+1<n&&this._retainChildren(o,s,i+1,n))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var o=Math.round(e);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var s=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();Zt.any3d?Ce(t.el,o,n):Ee(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),o=e.project(t,this._tileZoom).floor(),s=e.getSize().divideBy(2*n);return new N(o.subtract(s),o.add(s))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),s=o.getCenter(),r=[],a=this.options.keepBuffer,l=new N(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var h=this._tiles[c].coords;h.z===this._tileZoom&&l.contains(new z(h.x,h.y))||(this._tiles[c].current=!1)}if(Math.abs(i-this._tileZoom)>1)this._setView(t,i);else{for(var u=o.min.y;u<=o.max.y;u++)for(var d=o.min.x;d<=o.max.x;d++){var p=new z(d,u);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:r.push(p)}}if(r.sort((function(t,e){return t.distanceTo(s)-e.distanceTo(s)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;d<r.length;d++)this._addTile(r[d],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return j(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i);return[e.unproject(n,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new Z(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new z(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(_e(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){we(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,Zt.ielt9&&this.options.opacity<1&&Te(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&k(o(this._tileReady,this,t,null,s)),Ee(s,i),this._tiles[n]={el:s,coords:t,current:!0},e.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(Te(i.el,0),M(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(we(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Zt.ielt9||!this._map._fadeAnimated?k(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new z(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new N(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Rn(t){return new jn(t)}var $n=jn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=p(this,e)).detectRetina&&Zt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return je(i,"load",o(this._tileOnLoad,this,e,i)),je(i,"error",o(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:Zt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return _(this._url,i(e,this.options))},_tileOnLoad:function(t,e){Zt.ielt9?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=c,e.onerror=c,!e.complete)){e.src=y;var i=this._tiles[t].coords;_e(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",y),jn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return jn.prototype._tileReady.call(this,t,e,i)}});function Fn(t,e){return new $n(t,e)}var Hn=$n.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);var s=(e=p(this,e)).detectRetina&&Zt.retina?2:1,r=this.getTileSize();n.width=r.x*s,n.height=r.y*s,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,$n.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=B(i.project(e[0]),i.project(e[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===Wi?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=$n.prototype.getTileUrl.call(this,t);return a+f(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});function qn(t,e){return new Hn(t,e)}$n.WMS=Hn,Fn.wms=qn;var Wn=Vi.extend({options:{padding:.1},initialize:function(t){p(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),we(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),s=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));Zt.any3d?Ce(this._container,s,i):Ee(this._container,s)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new N(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Un=Wn.extend({options:{tolerance:0},getEvents:function(){var t=Wn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Wn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");je(t,"mousemove",this._onMouseMove,this),je(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),je(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){M(this._redrawRequest),delete this._ctx,_e(this._container),$e(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Wn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Zt.retina?2:1;Ee(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Zt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Wn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[r(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,i,n=t.options.dashArray.split(/[, ]+/),o=[];for(i=0;i<n.length;i++){if(e=Number(n[i]),isNaN(e))return;o.push(e)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||k(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new N,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,o,s,r=t._parts,a=r.length,l=this._ctx;if(a){for(l.beginPath(),i=0;i<a;i++){for(n=0,o=r[i].length;n<o;n++)s=r[i][n],l[n?"lineTo":"moveTo"](s.x,s.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||n)/n;1!==o&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(e.x,e.y/o,n,0,2*Math.PI,!1),1!==o&&i.restore(),this._fillStroke(i,t)}},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(n)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(i=e);this._fireEvent(!!i&&[i],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(xe(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,n,s=this._drawFirst;s;s=s.next)(i=s.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(we(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(o((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;i&&(i.prev=n,n?n.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;n&&(n.next=i,i?i.prev=n:n&&(this._drawLast=n),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function Vn(t){return Zt.canvas?new Un(t):null}var Kn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Gn={_initContainer:function(){this._container=me("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Wn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Kn("shape");we(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Kn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;_e(e),t.removeInteractiveTarget(e),delete this._layers[r(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=Kn("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=Kn("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ve(t._container)},_bringToBack:function(t){ye(t._container)}},Yn=Zt.vml?Kn:X,Xn=Wn.extend({_initContainer:function(){this._container=Yn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Yn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){_e(this._container),$e(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Wn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),Ee(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Yn("path");t.options.className&&we(e,t.options.className),t.options.interactive&&we(e,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){_e(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,J(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ve(t._path)},_bringToBack:function(t){ye(t._path)}});function Jn(t){return Zt.svg||Zt.vml?new Xn(t):null}Zt.vml&&Xn.include(Gn),oi.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Vn(t)||Jn(t)}});var Qn=dn.extend({initialize:function(t,e){dn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=j(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function to(t,e){return new Qn(t,e)}Xn.create=Yn,Xn.pointsToPath=J,fn.geometryToLayer=mn,fn.coordsToLatLng=gn,fn.coordsToLatLngs=vn,fn.latLngToCoords=yn,fn.latLngsToCoords=bn,fn.getFeature=wn,fn.asFeature=xn,oi.mergeOptions({boxZoom:!0});var eo=gi.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){je(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){$e(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){_e(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),se(),Oe(),this._startPoint=this._map.mouseEventToContainerPoint(t),je(document,{contextmenu:Ye,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=me("div","leaflet-zoom-box",this._container),we(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new N(this._point,this._startPoint),i=e.getSize();Ee(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(_e(this._box),xe(this._container,"leaflet-crosshair")),re(),ze(),$e(document,{contextmenu:Ye,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new Z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});oi.addInitHook("addHandler","boxZoom",eo),oi.mergeOptions({doubleClickZoom:!0});var io=gi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});oi.addInitHook("addHandler","doubleClickZoom",io),oi.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var no=gi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new bi(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}we(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){xe(this._map._container,"leaflet-grab"),xe(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=j(this._map.options.maxBounds);this._offsetLimit=B(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,r=Math.abs(o+i)<Math.abs(s+i)?o:s;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),s=(this._lastTime-this._times[0])/1e3,r=i.easeLinearity,a=o.multiplyBy(r/s),l=a.distanceTo([0,0]),c=Math.min(i.inertiaMaxSpeed,l),h=a.multiplyBy(c/l),u=c/(i.inertiaDeceleration*r),d=h.multiplyBy(-u/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),k((function(){e.panBy(d,{duration:u,easeLinearity:r,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});oi.addInitHook("addHandler","dragging",no),oi.mergeOptions({keyboard:!0,keyboardPanDelta:80});var oo=gi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),je(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),$e(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(n,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,i,n=this._panKeys={},o=this.keyCodes;for(e=0,i=o.left.length;e<i;e++)n[o.left[e]]=[-1*t,0];for(e=0,i=o.right.length;e<i;e++)n[o.right[e]]=[t,0];for(e=0,i=o.down.length;e<i;e++)n[o.down[e]]=[0,t];for(e=0,i=o.up.length;e<i;e++)n[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,i,n=this._zoomKeys={},o=this.keyCodes;for(e=0,i=o.zoomIn.length;e<i;e++)n[o.zoomIn[e]]=t;for(e=0,i=o.zoomOut.length;e<i;e++)n[o.zoomOut[e]]=-t},_addHooks:function(){je(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){$e(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,n=this._map;if(i in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress)if(e=this._panKeys[i],t.shiftKey&&(e=D(e).multiplyBy(3)),n.options.maxBounds&&(e=n._limitOffset(D(e),n.options.maxBounds)),n.options.worldCopyJump){var o=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(e)));n.panTo(o)}else n.panBy(e)}else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Ye(t)}}});oi.addInitHook("addHandler","keyboard",oo),oi.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var so=gi.extend({addHooks:function(){je(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){$e(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=ti(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),n),Ye(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,s=i?Math.ceil(o/i)*i:o,r=t._limitZoom(e+(this._delta>0?s:-s))-e;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});oi.addInitHook("addHandler","scrollWheelZoom",so);var ro=600;oi.mergeOptions({tapHold:Zt.touchNative&&Zt.safari&&Zt.mobile,tapTolerance:15});var ao=gi.extend({addHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){$e(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new z(e.clientX,e.clientY),this._holdTimeout=setTimeout(o((function(){this._cancel(),this._isTapValid()&&(je(document,"touchend",Ge),je(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),ro),je(document,"touchend touchcancel contextmenu",this._cancel,this),je(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){$e(document,"touchend",Ge),$e(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),$e(document,"touchend touchcancel contextmenu",this._cancel,this),$e(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new z(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});oi.addInitHook("addHandler","tapHold",ao),oi.mergeOptions({touchZoom:Zt.touch,bounceAtZoomLimits:!0});var lo=gi.extend({addHooks:function(){we(this._map._container,"leaflet-touch-zoom"),je(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){xe(this._map._container,"leaflet-touch-zoom"),$e(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),je(document,"touchmove",this._onTouchMove,this),je(document,"touchend touchcancel",this._onTouchEnd,this),Ge(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),s=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(s,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&s<1||this._zoom>e.getMaxZoom()&&s>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var r=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===r.x&&0===r.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),M(this._animRequest);var a=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=k(a,this,!0),Ge(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,M(this._animRequest),$e(document,"touchmove",this._onTouchMove,this),$e(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});oi.addInitHook("addHandler","touchZoom",lo),oi.BoxZoom=eo,oi.DoubleClickZoom=io,oi.Drag=no,oi.Keyboard=oo,oi.ScrollWheelZoom=so,oi.TapHold=ao,oi.TouchZoom=lo,t.Bounds=N,t.Browser=Zt,t.CRS=H,t.Canvas=Un,t.Circle=ln,t.CircleMarker=rn,t.Class=E,t.Control=ri,t.DivIcon=Bn,t.DivOverlay=On,t.DomEvent=ii,t.DomUtil=Ze,t.Draggable=bi,t.Evented=O,t.FeatureGroup=Yi,t.GeoJSON=fn,t.GridLayer=jn,t.Handler=gi,t.Icon=Ji,t.ImageOverlay=kn,t.LatLng=R,t.LatLngBounds=Z,t.Layer=Vi,t.LayerGroup=Ki,t.LineUtil=Ri,t.Map=oi,t.Marker=nn,t.Mixin=vi,t.Path=sn,t.Point=z,t.PolyUtil=Ti,t.Polygon=dn,t.Polyline=hn,t.Popup=zn,t.PosAnimation=ni,t.Projection=Hi,t.Rectangle=Qn,t.Renderer=Wn,t.SVG=Xn,t.SVGOverlay=An,t.TileLayer=$n,t.Tooltip=Dn,t.Transformation=V,t.Util=C,t.VideoOverlay=Cn,t.bind=o,t.bounds=B,t.canvas=Vn,t.circle=cn,t.circleMarker=an,t.control=ai,t.divIcon=Zn,t.extend=i,t.featureGroup=Xi,t.geoJSON=Pn,t.geoJson=Tn,t.gridLayer=Rn,t.icon=Qi,t.imageOverlay=Mn,t.latLng=$,t.latLngBounds=j,t.layerGroup=Gi,t.map=si,t.marker=on,t.point=D,t.polygon=pn,t.polyline=un,t.popup=In,t.rectangle=to,t.setOptions=p,t.stamp=r,t.svg=Jn,t.svgOverlay=Sn,t.tileLayer=Fn,t.tooltip=Nn,t.transformation=K,t.version=e,t.videoOverlay=En;var co=window.L;t.noConflict=function(){return window.L=co,this},window.L=t}(Qn.exports)),Qn.exports}var eo,io,no=to(),oo={exports:{}};eo||(eo=1,io=oo,function(t,e){io.exports=t(to()),void 0!==e&&e.L&&(e.L.Control.MiniMap=t(L),e.L.control.minimap=function(t,i){return new e.L.Control.MiniMap(t,i)})}((function(t){var e=t.Control.extend({includes:t.Evented?t.Evented.prototype:t.Mixin.Events,options:{position:"bottomright",toggleDisplay:!1,zoomLevelOffset:-5,zoomLevelFixed:!1,centerFixed:!1,zoomAnimation:!1,autoToggleDisplay:!1,minimized:!1,width:150,height:150,collapsedWidth:19,collapsedHeight:19,aimingRectOptions:{color:"#ff7800",weight:1,clickable:!1},shadowRectOptions:{color:"#000000",weight:1,clickable:!1,opacity:0,fillOpacity:0},strings:{hideText:"Hide MiniMap",showText:"Show MiniMap"},mapOptions:{}},initialize:function(e,i){t.Util.setOptions(this,i),this.options.aimingRectOptions.clickable=!1,this.options.shadowRectOptions.clickable=!1,this._layer=e},onAdd:function(e){this._mainMap=e,this._container=t.DomUtil.create("div","leaflet-control-minimap"),this._container.style.width=this.options.width+"px",this._container.style.height=this.options.height+"px",t.DomEvent.disableClickPropagation(this._container),t.DomEvent.on(this._container,"mousewheel",t.DomEvent.stopPropagation);var i={attributionControl:!1,dragging:!this.options.centerFixed,zoomControl:!1,zoomAnimation:this.options.zoomAnimation,autoToggleDisplay:this.options.autoToggleDisplay,touchZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),scrollWheelZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),doubleClickZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),boxZoom:!this._isZoomLevelFixed(),crs:e.options.crs};return i=t.Util.extend(this.options.mapOptions,i),this._miniMap=new t.Map(this._container,i),this._miniMap.addLayer(this._layer),this._mainMapMoving=!1,this._miniMapMoving=!1,this._userToggledDisplay=!1,this._minimized=!1,this.options.toggleDisplay&&this._addToggleButton(),this._miniMap.whenReady(t.Util.bind((function(){this._aimingRect=t.rectangle(this._mainMap.getBounds(),this.options.aimingRectOptions).addTo(this._miniMap),this._shadowRect=t.rectangle(this._mainMap.getBounds(),this.options.shadowRectOptions).addTo(this._miniMap),this._mainMap.on("moveend",this._onMainMapMoved,this),this._mainMap.on("move",this._onMainMapMoving,this),this._miniMap.on("movestart",this._onMiniMapMoveStarted,this),this._miniMap.on("move",this._onMiniMapMoving,this),this._miniMap.on("moveend",this._onMiniMapMoved,this)}),this)),this._container},addTo:function(e){t.Control.prototype.addTo.call(this,e);var i=this.options.centerFixed||this._mainMap.getCenter();return this._miniMap.setView(i,this._decideZoom(!0)),this._setDisplay(this.options.minimized),this},onRemove:function(t){this._mainMap.off("moveend",this._onMainMapMoved,this),this._mainMap.off("move",this._onMainMapMoving,this),this._miniMap.off("moveend",this._onMiniMapMoved,this),this._miniMap.removeLayer(this._layer)},changeLayer:function(t){this._miniMap.removeLayer(this._layer),this._layer=t,this._miniMap.addLayer(this._layer)},_addToggleButton:function(){this._toggleDisplayButton=this.options.toggleDisplay?this._createButton("",this._toggleButtonInitialTitleText(),"leaflet-control-minimap-toggle-display leaflet-control-minimap-toggle-display-"+this.options.position,this._container,this._toggleDisplayButtonClicked,this):void 0,this._toggleDisplayButton.style.width=this.options.collapsedWidth+"px",this._toggleDisplayButton.style.height=this.options.collapsedHeight+"px"},_toggleButtonInitialTitleText:function(){return this.options.minimized?this.options.strings.showText:this.options.strings.hideText},_createButton:function(e,i,n,o,s,r){var a=t.DomUtil.create("a",n,o);a.innerHTML=e,a.href="#",a.title=i;var l=t.DomEvent.stopPropagation;return t.DomEvent.on(a,"click",l).on(a,"mousedown",l).on(a,"dblclick",l).on(a,"click",t.DomEvent.preventDefault).on(a,"click",s,r),a},_toggleDisplayButtonClicked:function(){this._userToggledDisplay=!0,this._minimized?this._restore():this._minimize()},_setDisplay:function(t){t!==this._minimized&&(this._minimized?this._restore():this._minimize())},_minimize:function(){this.options.toggleDisplay?(this._container.style.width=this.options.collapsedWidth+"px",this._container.style.height=this.options.collapsedHeight+"px",this._toggleDisplayButton.className+=" minimized-"+this.options.position,this._toggleDisplayButton.title=this.options.strings.showText):this._container.style.display="none",this._minimized=!0,this._onToggle()},_restore:function(){this.options.toggleDisplay?(this._container.style.width=this.options.width+"px",this._container.style.height=this.options.height+"px",this._toggleDisplayButton.className=this._toggleDisplayButton.className.replace("minimized-"+this.options.position,""),this._toggleDisplayButton.title=this.options.strings.hideText):this._container.style.display="block",this._minimized=!1,this._onToggle()},_onMainMapMoved:function(t){if(this._miniMapMoving)this._miniMapMoving=!1;else{var e=this.options.centerFixed||this._mainMap.getCenter();this._mainMapMoving=!0,this._miniMap.setView(e,this._decideZoom(!0)),this._setDisplay(this._decideMinimized())}this._aimingRect.setBounds(this._mainMap.getBounds())},_onMainMapMoving:function(t){this._aimingRect.setBounds(this._mainMap.getBounds())},_onMiniMapMoveStarted:function(t){if(!this.options.centerFixed){var e=this._aimingRect.getBounds(),i=this._miniMap.latLngToContainerPoint(e.getSouthWest()),n=this._miniMap.latLngToContainerPoint(e.getNorthEast());this._lastAimingRectPosition={sw:i,ne:n}}},_onMiniMapMoving:function(e){this.options.centerFixed||!this._mainMapMoving&&this._lastAimingRectPosition&&(this._shadowRect.setBounds(new t.LatLngBounds(this._miniMap.containerPointToLatLng(this._lastAimingRectPosition.sw),this._miniMap.containerPointToLatLng(this._lastAimingRectPosition.ne))),this._shadowRect.setStyle({opacity:1,fillOpacity:.3}))},_onMiniMapMoved:function(t){this._mainMapMoving?this._mainMapMoving=!1:(this._miniMapMoving=!0,this._mainMap.setView(this._miniMap.getCenter(),this._decideZoom(!1)),this._shadowRect.setStyle({opacity:0,fillOpacity:0}))},_isZoomLevelFixed:function(){var t=this.options.zoomLevelFixed;return this._isDefined(t)&&this._isInteger(t)},_decideZoom:function(t){if(this._isZoomLevelFixed())return t?this.options.zoomLevelFixed:this._mainMap.getZoom();if(t)return this._mainMap.getZoom()+this.options.zoomLevelOffset;var e,i=this._miniMap.getZoom()-this._mainMap.getZoom(),n=this._miniMap.getZoom()-this.options.zoomLevelOffset;return i>this.options.zoomLevelOffset&&this._mainMap.getZoom()<this._miniMap.getMinZoom()-this.options.zoomLevelOffset?this._miniMap.getZoom()>this._lastMiniMapZoom?(e=this._mainMap.getZoom()+1,this._miniMap.setZoom(this._miniMap.getZoom()-1)):e=this._mainMap.getZoom():e=n,this._lastMiniMapZoom=this._miniMap.getZoom(),e},_decideMinimized:function(){return this._userToggledDisplay?this._minimized:this.options.autoToggleDisplay?!!this._mainMap.getBounds().contains(this._miniMap.getBounds()):this._minimized},_isInteger:function(t){return"number"==typeof t},_isDefined:function(t){return void 0!==t},_onToggle:function(){t.Util.requestAnimFrame((function(){t.DomEvent.on(this._container,"transitionend",this._fireToggleEvents,this),t.Browser.any3d||t.Util.requestAnimFrame(this._fireToggleEvents,this)}),this)},_fireToggleEvents:function(){t.DomEvent.off(this._container,"transitionend",this._fireToggleEvents,this);var e={minimized:this._minimized};this.fire(this._minimized?"minimize":"restore",e),this.fire("toggle",e)}});return t.Map.mergeOptions({miniMapControl:!1}),t.Map.addInitHook((function(){this.options.miniMapControl&&(this.miniMapControl=(new e).addTo(this))})),e}),window));var so=(t,e)=>Pt(e,!1),ro=Ye('<div id="map-position-inner" class="svelte-1sakvg7"> <a target="_blank" rel="noreferrer">view on osm.org</a> <br/> <br/> <br/> <br/> </div> <div id="map-position-close" class="svelte-1sakvg7"><a href="#hide">hide</a></div>',1),ao=(t,e)=>Pt(e,!0),lo=Ye('<button id="show-map-position" class="btn btn-sm btn-outline-secondary svelte-1sakvg7">show map bounds</button>'),co=Ye('<div id="map-position" class="svelte-1sakvg7"><!></div>');We(["click"]);var ho=Ye('<div id="map" class="svelte-14h1bri"></div> <!>',1);function uo(t,e){F(e,!0);let i,n=Ii(e,"display_minimap",3,!1),o=Ii(e,"current_result",3,null),s=Ii(e,"position_marker",3,null),r=[];function a(){wn.viewboxStr=function(t){var e=t.getBounds(),i=e.getWest(),n=e.getEast();return n-i>=360&&(i=t.getCenter().lng-179.999,n=t.getCenter().lng+179.999),n=no.latLng(77,n).wrap().lng,[(i=no.latLng(77,i).wrap().lng).toFixed(5),e.getNorth().toFixed(5),n.toFixed(5),e.getSouth().toFixed(5)].join(",")}(i),wn.center=i.getCenter(),wn.zoom=i.getZoom()}function l(t){return function(t){const e=Nominatim_Config.Map_Tile_Attribution;if(i=new no.map(t,{attributionControl:!1,scrollWheelZoom:!0,touchZoom:!1,center:no.latLng(Nominatim_Config.Map_Default_Lat,Nominatim_Config.Map_Default_Lon),zoom:Nominatim_Config.Map_Default_Zoom}),void 0!==Nominatim_Config.Map_Default_Bounds&&Nominatim_Config.Map_Default_Bounds&&i.fitBounds(Nominatim_Config.Map_Default_Bounds),e&&e.length&&no.control.attribution({prefix:'<a href="https://leafletjs.com/">Leaflet</a>'}).addTo(i),a(),no.control.scale().addTo(i),no.tileLayer(Nominatim_Config.Map_Tile_URL,{attribution:e}).addTo(i),n()){let t=new no.TileLayer(Nominatim_Config.Map_Tile_URL,{minZoom:0,maxZoom:13,attribution:e});new no.Control.MiniMap(t,{toggleDisplay:!0}).addTo(i)}i.on("move",a),i.on("mousemove",(t=>{wn.mousePos=t.latlng})),i.on("click",(t=>{wn.lastClick=t.latlng}))}(t),c(s(),o()),{destroy:()=>{wn.reset(),i.remove()}}}function c(t,e){if(!i)return;if(i&&r.forEach((function(t){i.removeLayer(t)})),t){let e=no.circleMarker(t,{radius:5,weight:2,fillColor:"#ff7800",color:"red",opacity:.75,zIndexOffset:100,clickable:!1});e.bindTooltip(`Search (${t[0]},${t[1]})`).openTooltip(),e.addTo(i),r.push(e)}var n=new URLSearchParams(window.location.search).get("viewbox");if(n){let t=n.split(","),e=no.latLngBounds([t[1],t[0]],[t[3],t[2]]),o=no.rectangle(e,{color:"#69d53e",weight:3,dashArray:"5 5",opacity:.8,fill:!1,interactive:!1});i.addLayer(o),r.push(o)}if(!e)return;let o=e.centroid?e.centroid.coordinates[1]:e.lat,s=e.centroid?e.centroid.coordinates[0]:e.lon,a=e.geometry||e.geojson;if(o&&s){let e=no.circleMarker([o,s],{radius:10,weight:2,fillColor:"#ff7800",color:"blue",opacity:.75});t&&e.bindTooltip("Result").openTooltip(),i.addLayer(e),r.push(e)}if(a){var l=no.geoJson({type:"FeatureCollection",features:[{type:"Feature",geometry:a,properties:{}}]},{style:()=>({interactive:!1,color:"blue"})});i.addLayer(l),r.push(l),i.fitBounds(l.getBounds())}else o&&s&&t?i.fitBounds([[o,s],t],{padding:[50,50]}):o&&s&&i.setView([o,s],10)}Ht((()=>{c(s(),o())}));var h=ho(),u=Zt(h);!function(t,e,i){Wt((()=>{var n=ze((()=>e(t,i?.())||{}));if(n?.destroy)return()=>n.destroy()}))}(u,(t=>l?.(t))),function(t,e){F(e,!0);let i=Lt(!1);const n=tt((()=>`https://openstreetmap.org/#map=${wn.zoom}/${wn.center.lat.toFixed(5)}/${wn.center.lng.toFixed(5)}`));function o(t){return t?`${t.lat.toFixed(5)},${t.lng.toFixed(5)}`:"-"}var s=co(),r=Bt(s),a=t=>{var e=ro(),s=Zt(e),r=Bt(s),a=jt(r),l=jt(a,3),c=jt(l,2),h=jt(c,2),u=jt(h,2);Bt(jt(s,2)).__click=[so,i],Ut(((t,e,i)=>{ti(r,`map center: ${t??""} `),Ti(a,"href",Se(n)),ti(l,` map zoom: ${wn.zoom??""} `),ti(c,` viewbox: ${wn.viewboxStr??""} `),ti(h,` last click: ${e??""} `),ti(u,` mouse position: ${i??""}`)}),[()=>o(wn.center),()=>o(wn.lastClick),()=>o(wn.mousePos)]),Qe(t,e)},l=t=>{var e=lo();e.__click=[ao,i],Qe(t,e)};ni(r,(t=>{Se(i)?t(a):t(l,!1)})),Qe(t,s),H()}(jt(u,2),{}),Qe(t,h),H()}var po=Ye('<!> <div id="content" class="svelte-1d53ob0"><div class="sidebar svelte-1d53ob0"><!></div> <div id="map-wrapper" class="svelte-1d53ob0"><!></div></div>',1);function fo(t,e){F(e,!0);const i=t=>{!function(t,e){F(e,!0);const i=t=>{var e=Dn(),i=jt(Bt(e),2),n=jt(i,2),o=jt(n,2),s=jt(o,2),l=jt(s,2);Ti(l,"pattern","^[a-zA-Z]{2}(,[a-zA-Z]{2})*$");var c=jt(l,2),h=jt(c,2),u=jt(h,2);Ut((()=>{Li(i,Se(a)?wn.viewboxStr:""),Li(n,0===r().dedupe?0:1),Li(o,r().bounded?1:""),Li(s,r()["accept-language"]||""),Li(l,r().countrycodes||""),Li(c,r().limit||""),Li(h,r().polygon_threshold||""),Li(u,r().layer||"")})),Qe(t,e)},n=t=>{var e=Nn(),n=Zt(e),o=Bt(n),s=jt(n,2);i(s),Ut((()=>Li(o,r().q||""))),Qe(t,e)},o=t=>{var e=Bn(),n=Zt(e),o=Bt(n),s=jt(n,2),a=Bt(s),l=jt(s,2),c=Bt(l),h=jt(l,2),u=Bt(h),d=jt(h,2),p=Bt(d),f=jt(d,2),m=Bt(f),_=jt(f,2);i(_),Ut((()=>{Li(o,r().street||""),Li(a,r().city||""),Li(c,r().county||""),Li(u,r().state||""),Li(p,r().country||""),Li(m,r().postalcode||"")})),Qe(t,e)};let s=Ii(e,"bStructuredSearch",3,!1),r=Ii(e,"api_request_params",19,(()=>({}))),a=Lt(Ct(r().viewbox||!1));var l=jn(),c=Zt(l),h=Bt(c),u=Bt(h);let d;var p=Bt(jt(h,2));let f;var m=jt(c,2),_=Bt(m);let g;Sn(Bt(_),{page:"search",get content(){return n}});var v=jt(_,2);let y;Sn(Bt(v),{page:"search",get content(){return o}});var b=jt(m,2),w=jt(Bt(b),2),x=Bt(w),L=Bt(x),P=jt(Bt(L),2);P.__change=[Zn,a];var T=jt(x,2),k=Bt(T),M=jt(Bt(k),2);M.__change=[On];var C=jt(T,2),E=Bt(C),A=jt(Bt(E),2);A.__change=[zn];var S=jt(C,2),O=jt(Bt(S),2);O.__change=[In];var z=jt(S,2),I=jt(Bt(z),2);I.__change=[In];var D=jt(z,2),N=jt(Bt(D),2);N.__change=[In];var B=jt(D,2),Z=jt(Bt(B),2);Ti(Z,"pattern","^[a-zA-Z]{2}(,[a-zA-Z]{2})*$"),Z.__change=[In];var j=jt(B,2),R=jt(Bt(j),2);R.__change=[In],Ut(((t,e,i,n)=>{d=mi(u,0,"nav-link svelte-1u2ltgo",null,d,t),f=mi(p,0,"nav-link svelte-1u2ltgo",null,f,e),g=mi(_,0,"tab-pane",null,g,i),y=mi(v,0,"tab-pane",null,y,n),Pi(P,r().viewbox),Pi(M,!!r().bounded),Pi(A,0===r().dedupe?0:1),Li(O,r().limit||""),Li(I,r().polygon_threshold||""),Li(N,r()["accept-language"]||""),Li(Z,r().countrycodes||""),Li(R,r().layer||"")}),[()=>({active:!s()}),()=>({active:s()}),()=>({active:!s()}),()=>({active:s()})]),Qe(t,l),H()}(t,{get api_request_params(){return Se(s)},bStructuredSearch:n})};let n,o=Lt(void 0),s=Lt(void 0),r=Lt(void 0);Ht((()=>{if("search"===Qi.page.tab){const t=Qi.page.params;ze((()=>function(t){Wi(),Pt(s,{q:t.get("q"),street:t.get("street"),city:t.get("city"),county:t.get("county"),state:t.get("state"),country:t.get("country"),postalcode:t.get("postalcode"),polygon_geojson:Nominatim_Config.Search_AreaPolygons?1:0,viewbox:t.get("viewbox"),bounded:t.get("bounded"),dedupe:t.has("dedupe")&&"1"!==t.get("dedupe")?0:1,"accept-language":t.get("accept-language"),countrycodes:t.get("countrycodes"),layer:t.get("layer"),limit:t.get("limit"),polygon_threshold:t.get("polygon_threshold"),exclude_place_ids:t.get("exclude_place_ids"),format:"jsonv2"});let e=Se(s).street||Se(s).city||Se(s).county||Se(s).state||Se(s).country||Se(s).postalcode;Se(s).q||e?Qi.fetchFromApi("search",Se(s),(function(t){Pt(o,t,!0),e?(Wi("Result for "+[Se(s).street,Se(s).city,Se(s).county,Se(s).state,Se(s).country,Se(s).postalcode].filter((t=>t&&t.length>1)).join(", ")),document.querySelector(".nav-tabs a[href='#structured']").click(),document.querySelector("input[name=street]").focus()):(Wi("Result for "+Se(s).q),document.querySelector("input[name=q]").focus())})):Pt(o,void 0)}(t)))}}));var a=po(),l=Zt(a);kn(l,{get subheader(){return i}});var c=Bt(jt(l,2));Xn(Bt(c),{get results(){return Se(o)},reverse_search:!1,get current_result(){return Se(r)},set current_result(t){Pt(r,t,!0)}}),uo(Bt(jt(c,2)),{get current_result(){return Se(r)},display_minimap:!0}),Qe(t,a),H()}function mo(t){var e=t.target.value.split(/,|%2C/);2===e.length&&(document.querySelector("input[name=lat]").value=L.Util.trim(e[0]),document.querySelector("input[name=lon]").value=L.Util.trim(e[1]))}function _o(t){document.querySelector("input[name="+t.target.dataset.apiParam+"]").value=t.target.value}function go(t,e,i,n){t.preventDefault(),t.stopPropagation(),Qi.refreshPage("reverse",new URLSearchParams({lat:e()||"",lon:i()||"",zoom:n()}))}var vo=Ye("<option> </option>"),yo=Ye('<div class="col-auto"><label for="reverse-lat" class="svelte-1s4hp9x">lat</label></div> <div class="col-auto"><input id="reverse-lat" name="lat" type="text" class="form-control form-control-sm d-inline svelte-1s4hp9x" placeholder="latitude" pattern="^-?\\d+(\\.\\d+)?$"/></div> <div class="col-auto"><button id="switch-coords" class="btn btn-outline-secondary btn-sm svelte-1s4hp9x" title="switch lat and lon">&lt;&gt;</button></div> <div class="col-auto"><label for="reverse-lon" class="svelte-1s4hp9x">lon</label></div> <div class="col-auto"><input id="reverse-lon" name="lon" type="text" class="form-control form-control-sm svelte-1s4hp9x" placeholder="longitude" pattern="^-?\\d+(\\.\\d+)?$"/></div> <div class="col-auto"><label for="reverse-zoom" class="svelte-1s4hp9x">max zoom</label></div> <div class="col-auto"><select id="reverse-zoom" name="zoom" class="form-select form-select-sm svelte-1s4hp9x"><option>---</option><!></select></div> <input type="hidden" name="layer"/> <div class="col-auto"><button type="submit" class="btn btn-primary btn-sm mx-1">Search</button></div>',1),bo=Ye('<!> <details id="searchAdvancedOptions" class="mt-2 svelte-1s4hp9x"><summary><small>Advanced options</small></summary> <ul class="svelte-1s4hp9x"><li class="svelte-1s4hp9x"><label for="option_layer" class="svelte-1s4hp9x">Layer</label> <input id="option_layer" name="layer" placeholder="e.g. address,poi,railway,natural,manmade" data-api-param="layer" class="form-control form-control-sm d-inline w-auto api-param-setting"/></li></ul></details>',1);We(["change","click"]);var wo=Ye('<!> <div id="content" class="svelte-1d53ob0"><div class="sidebar svelte-1d53ob0"><!></div> <div id="map-wrapper" class="svelte-1d53ob0"><!></div></div>',1);function xo(t,e){F(e,!0);const i=t=>{{let e=tt((()=>Se(o)?.lat)),i=tt((()=>Se(o)?.lon)),n=tt((()=>Se(o)?.zoom));!function(t,e){F(e,!0);const i=t=>{var e=yo(),i=jt(Zt(e),2),a=Bt(i);a.__change=[mo];var l=jt(i,2);Bt(l).__click=[go,o,n,s];var c=jt(l,4),h=Bt(c),u=jt(c,4),d=Bt(u),p=Bt(d);p.value=p.__value="",si(jt(p),17,Yi,oi,((t,e,i)=>{var n=vo(),o=Bt(n);n.value=n.__value=i,Ut((()=>ti(o,`${i} - ${Se(e)??""}`))),Qe(t,n)}));var f=jt(u,2);Ut((()=>Li(f,r().layer||""))),Ci(a,n),Ci(h,o),yi(d,s),Qe(t,e)};let n=Ii(e,"lat",7,""),o=Ii(e,"lon",7,""),s=Ii(e,"zoom",7,""),r=Ii(e,"api_request_params",19,(()=>({})));Ht((()=>{const t=wn.lastClick;t&&Qi.refreshPage("reverse",new URLSearchParams({lat:t.lat,lon:t.lng,zoom:s()}))}));var a=bo(),l=Zt(a);Sn(l,{page:"reverse",get content(){return i}});var c=jt(l,2),h=jt(Bt(c),2),u=Bt(h),d=jt(Bt(u),2);d.__change=[_o],Ut((()=>Li(d,r().layer||""))),Qe(t,a),H()}(t,{get lat(){return Se(e)},get lon(){return Se(i)},get zoom(){return Se(n)},get api_request_params(){return Se(o)}})}};let n=Lt(void 0),o=Lt(void 0),s=Lt(void 0),r=Lt(void 0);Ht((()=>{if("reverse"===Qi.page.tab){const t=Qi.page.params;ze((()=>{return e=t,Wi(),Pt(o,{lat:e.get("lat"),lon:e.get("lon"),zoom:e.get("zoom")>1?Number(e.get("zoom")):Number(Nominatim_Config.Reverse_Default_Search_Zoom),layer:e.get("layer"),format:"jsonv2"}),void(Se(o).lat&&Se(o).lon?(Pt(r,[Se(o).lat,Se(o).lon],!0),Qi.fetchFromApi("reverse",Se(o),(function(t){t&&!t.error?Pt(n,[t]):Pt(n,[]),Wi("Reverse result for "+Se(o).lat+","+Se(o).lon),document.querySelector("input[name=lat]").focus()}))):Pt(n,void 0));var e}))}}));var a=wo(),l=Zt(a);kn(l,{get subheader(){return i}});var c=Bt(jt(l,2));Xn(Bt(c),{get results(){return Se(n)},reverse_search:!0,get current_result(){return Se(s)},set current_result(t){Pt(s,t,!0)}}),uo(Bt(jt(c,2)),{get current_result(){return Se(s)},get position_marker(){return Se(r)},display_minimap:!0}),Qe(t,a),H()}var Lo=Ye('<form class="form-inline svelte-1kvo9ki" action="details.html"><div class="row g-1"><div class="col-auto"><input type="edit" class="form-control form-control-sm me-1 svelte-1kvo9ki" pattern="^[1-9][0-9]*$|^[NWRnwr]-?[1-9][0-9]*$|.*openstreetmap.*"/></div> <div class="col-auto"><button type="submit" class="btn btn-primary btn-sm">Show</button></div></div></form> <small class="form-text text-muted svelte-1kvo9ki">OSM type+id (<em class="svelte-1kvo9ki">N123</em>, <em class="svelte-1kvo9ki">n123</em>, <em class="svelte-1kvo9ki">W123</em>, <em class="svelte-1kvo9ki">w123</em>, <em class="svelte-1kvo9ki">R123</em>, <em class="svelte-1kvo9ki">r123</em>),\n  Place id (<em class="svelte-1kvo9ki">1234</em>) or\n  URL (<em class="svelte-1kvo9ki">https://openstreetmap.org/way/123</em>)</small>',1);var Po=Ye("<a> </a>");function To(t,e){F(e,!0);const i=tt((()=>Ki(e.osmType,!1))),n=tt((()=>`https://www.openstreetmap.org/${Se(i)}/${e.osmId}`));var o=Je(),s=Zt(o),r=t=>{var o=Po(),s=Bt(o);Ut((()=>{Ti(o,"href",Se(n)),ti(s,`${Se(i)??""} ${e.osmId??""}`)})),Qe(t,o)};ni(s,(t=>{Se(i)&&t(r)})),Qe(t,o),H()}var ko=Ye('<span class="noname">No Name</span>'),Mo=Ye('<tr><td class="name fw-bold svelte-17hj2yg"><!></td><td class="svelte-17hj2yg"> </td><td class="svelte-17hj2yg"><!></td><td class="svelte-17hj2yg"> </td><td class="svelte-17hj2yg"> </td><td class="svelte-17hj2yg"><!></td><td class="svelte-17hj2yg"><!></td></tr>');function Co(t,e){F(e,!0);let i=Ii(e,"bMarkUnusedLines",3,!1);const n=tt((()=>e.addressLine.isaddress)),o=tt((()=>Nominatim_Config.Reverse_Only));var s=Mo();let r;var a=Bt(s),l=Bt(a),c=t=>{var i=Xe();Ut((()=>ti(i,e.addressLine.localname))),Qe(t,i)},h=t=>{Qe(t,ko())};ni(l,(t=>{e.addressLine.localname?t(c):t(h,!1)}));var u=jt(a),d=Bt(u),p=jt(u);To(Bt(p),{get osmType(){return e.addressLine.osm_type},get osmId(){return e.addressLine.osm_id}});var f=jt(p),m=Bt(f),_=jt(f),g=Bt(_),v=jt(_);!function(t,e,i=!1,n=!1){var o=t,s="";Ut((()=>{var t=de;if(s!==(s=e()??"")&&(null!==t.nodes_start&&(Jt(t.nodes_start,t.nodes_end),t.nodes_start=t.nodes_end=null),""!==s)){var r=s+"";i?r=`<svg>${r}</svg>`:n&&(r=`<math>${r}</math>`);var a=Ke(r);if((i||n)&&(a=Dt(a)),Ge(Dt(a),a.lastChild),i||n)for(;Dt(a);)o.before(Dt(a));else o.before(a)}}))}(Bt(v),(()=>{return t=e.addressLine.distance,e.bDistanceInMeters?t<1?"0":'<abbr class="distance" title="'+t+' meters">~'+(t>=1e3?Math.round(t/1e3,1)+" km":Math.round(t,0)+" m")+"</abbr>":0===t?"0":'<abbr class="distance" title="spheric distance '+t+'">~'+Math.round(1e3*t,4)/1e3+"</abbr>";var t}));var y=Bt(jt(v)),b=t=>{Fn(t,{get feature(){return e.addressLine}})},w=t=>{var i=Je(),n=Zt(i),s=t=>{{let i=tt((()=>({country:e.addressLine.localname})));on(t,{page:"search",text:"search by name",get params_hash(){return Se(i)}})}},r=t=>{var i=Je(),n=Zt(i),s=t=>{{let i=tt((()=>({postalcode:e.addressLine.localname,country:e.sCountryCode})));on(t,{page:"search",text:"search by name",get params_hash(){return Se(i)}})}};ni(n,(t=>{Se(o)||"postcode"!==e.addressLine.type||t(s)}),!0),Qe(t,i)};ni(n,(t=>{!Se(o)&&e.addressLine.type.match(/^country/)?t(s):t(r,!1)}),!0),Qe(t,i)};ni(y,(t=>{e.addressLine.osm_id?t(b):t(w,!1)})),Ut(((t,i,n)=>{r=mi(s,0,"svelte-17hj2yg",null,r,t),ti(d,i),ti(m,e.addressLine.rank_address),ti(g,n)}),[()=>({notused:i()&&!Se(n)}),()=>{return t=e.addressLine,i=t.class+":"+t.type,t.type&&"administrative"===t.type&&t.place_type&&(i=i+" ("+t.place_type+")"),Vi(i);var t,i},()=>{return(t=e.addressLine.admin_level)&&t<15?t:"";var t}]),Qe(t,s),H()}function Eo(t){t.preventDefault(),t.stopPropagation(),document.getElementById("postcode-hint").style.display="block"}function Ao(t){t.stopPropagation(),document.getElementById("postcode-hint").style.display="none"}var So=Ye('(<a href="#openHint">how?</a>) <div id="postcode-hint" class="my-2 p-2 svelte-vgllow"><button type="button" class="btn-close float-end m-1" aria-label="Close"></button> <p>Nightly calculated from nearby places having this postcode. <a href="https://nominatim.org/release-docs/latest/admin/Maintenance/#updating-postcodes">Documentation</a>.</p> <p>You can search for those with an <a target="_blank" rel="noreferrer">Overpass Turbo query</a>.</p> <p><a href="https://nominatim.org/2022/06/26/state-of-postcodes.html" target="_blank" rel="noreferrer">How Nominatim uses postcodes</a>.</p></div>',1);We(["click"]);var Oo=Ye('<div class="line"><span class="name svelte-ndknvb"> </span> </div>');function zo(t,e){F(e,!0);var i=Je();si(Zt(i),17,(()=>Object.keys(e.items)),oi,((t,i)=>{var n=Oo(),o=Bt(n),s=Bt(o),r=jt(o);Ut((()=>{ti(s,e.items[Se(i)]),ti(r,` (${Se(i)??""})`)})),Qe(t,n)})),Qe(t,i),H()}var Io=Ye('<a target="_blank"> </a>');var Do=Ye('<span class="noname fw-bold">No Name</span>'),No=Ye('<tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">Admin Level</td><td class="svelte-1ms9ffa"> </td></tr>'),Bo=Ye('<tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">Importance</td><td class="svelte-1ms9ffa"> <!></td></tr>'),Zo=Ye('<tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">Wikipedia Calculated</td><td class="svelte-1ms9ffa"><!></td></tr>'),jo=Ye(" <!>",1),Ro=Ye('<tr class="all-columns svelte-1ms9ffa"><td colspan="7" class="svelte-1ms9ffa"><h2 class="svelte-1ms9ffa">Linked Places</h2></td></tr> <!>',1),$o=Ye("<td> </td>"),Fo=Ye("<tr><td> </td><!></tr>"),Ho=Ye("<td> </td>"),qo=Ye("<tr><td> </td><!></tr>"),Wo=Ye('<tr class="all-columns svelte-1ms9ffa"><td colspan="7" class="svelte-1ms9ffa"><h3 class="svelte-1ms9ffa">Address Keywords</h3></td></tr> <!>',1),Uo=Ye('<tr class="all-columns svelte-1ms9ffa"><td colspan="7" class="svelte-1ms9ffa"><h3 class="svelte-1ms9ffa">Name Keywords</h3></td></tr> <!> <!>',1),Vo=Ye("<tr><td>Place has no keywords</td></tr>"),Ko=Ye('<tr><td><a class="btn btn-outline-secondary btn-sm">display keywords</a></td></tr>'),Go=Ye('<tr class="all-columns svelte-1ms9ffa"><td colspan="7" class="svelte-1ms9ffa"><h2 class="svelte-1ms9ffa">Keywords</h2></td></tr> <!>',1),Yo=Ye('<tr class="all-columns svelte-1ms9ffa"><td colspan="7" class="svelte-1ms9ffa"><h3 class="svelte-1ms9ffa"> </h3></td></tr> <!>',1),Xo=Ye("<tr><td><p>There are more child objects which are not shown.</p></td></tr>"),Jo=Ye("<!> <!>",1),Qo=Ye("<tr><td>Place is not parent of other places</td></tr>"),ts=Ye('<tr><td><a class="btn btn-outline-secondary btn-sm">display child places</a></td></tr>'),es=Ye('<div class="row"><div class="col-sm-10"><h1 class="svelte-1ms9ffa"> <small class="svelte-1ms9ffa"><!></small></h1></div> <div class="col-sm-2 text-end"><!></div></div> <div class="row"><div class="col-md-6"><table id="locationdetails" class="table table-striped table-responsive"><tbody><tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">Name</td><td class="svelte-1ms9ffa"><!></td></tr><tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">Type</td><td class="svelte-1ms9ffa"> </td></tr><tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">Last Updated</td><td class="svelte-1ms9ffa"> </td></tr><!><tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">Search Rank</td><td class="svelte-1ms9ffa"> </td></tr><tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">Address Rank</td><td class="svelte-1ms9ffa"> </td></tr><!><tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">Coverage</td><td class="svelte-1ms9ffa"> </td></tr><tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">Centre Point (lat,lon)</td><td class="svelte-1ms9ffa"> </td></tr><tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">OSM</td><td class="svelte-1ms9ffa"><!></td></tr><tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">Place Id</td><td class="svelte-1ms9ffa"> <a href="https://nominatim.org/release-docs/develop/api/Output/#place_id-is-not-a-persistent-id">on this server</a>)</td></tr><!><tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">Computed Postcode</td><td class="svelte-1ms9ffa"><!></td></tr><tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">Address Tags</td><td class="svelte-1ms9ffa"><!></td></tr><tr class="info-row svelte-1ms9ffa"><td class="svelte-1ms9ffa">Extra Tags</td><td class="svelte-1ms9ffa"><!></td></tr></tbody></table></div> <div class="col-md-6"><div id="map-wrapper" class="svelte-1ms9ffa"><!></div></div></div> <div class="row"><div class="col-md-12"><h2 class="svelte-1ms9ffa">Address</h2> <table id="address" class="table table-striped table-small"><thead><tr><th>Local name</th><th>Type</th><th>OSM</th><th>Address rank</th><th>Admin level</th><th>Distance</th><th></th></tr></thead><tbody><!><!><!><tr class="all-columns svelte-1ms9ffa"><td colspan="7" class="svelte-1ms9ffa"><h2 class="svelte-1ms9ffa">Parent Of</h2></td></tr><!></tbody></table></div></div>',1),is=Ye('<!> <div class="container"><!></div>',1);function ns(t,e){F(e,!0);const i=t=>{!function(t,e){F(e,!0);let i=Ii(e,"api_request_params",19,(()=>({})));var n=Lo(),o=Zt(n),s=Bt(o),r=Bt(s),a=Bt(r);Ut((()=>Li(a,(i().osmtype||"")+(i().osmid||"")+(i().place_id||"")))),qe("submit",o,(function(t){t.preventDefault();let e=t.target.querySelector("input[type=edit]").value.trim(),i=e.match(/^\s*([NWR])(-?\d+)\s*$/i)||e.match(/\/(relation|way|node)\/(-?\d+)\s*$/);const n={};if(i)n.osmtype=i[1].charAt(0).toUpperCase(),n.osmid=i[2];else{if(!e.match(/^\d+$/))return void alert("invalid input");n.place_id=e}Qi.refreshPage("details",new URLSearchParams(n))})),Qe(t,n),H()}(t,{get api_request_params(){return Se(s)}})};let n=Lt(void 0),o=Lt(void 0),s=Lt(void 0),r=Lt(!1);Ht((()=>{if("details"===Qi.page.tab){const t=Qi.page.params;ze((()=>{var e;Pt(s,{place_id:(e=t).get("place_id"),osmtype:e.get("osmtype"),osmid:e.get("osmid"),class:e.get("class"),keywords:e.get("keywords"),addressdetails:1,hierarchy:"1"===e.get("hierarchy")?1:0,group_hierarchy:1,polygon_geojson:1,format:"json"}),Pt(r,!1),Se(s).place_id||Se(s).osmtype&&Se(s).osmid?(Se(s).place_id?Wi("Details for "+Se(s).place_id):Wi("Details for "+Se(s).osmtype+Se(s).osmid),Qi.fetchFromApi("details",Se(s),(function(t){window.scrollTo(0,0),Pt(r,!0),Pt(n,t&&!t.error?t:void 0,!0)}))):Pt(n,void 0),Pt(o,window.location.search,!0)}))}}));const a=Nominatim_Config.Reverse_Only;var l=is(),c=Zt(l);kn(c,{get subheader(){return i}});var h=Bt(jt(c,2)),u=t=>{var e=es(),i=Zt(e),r=Bt(i),l=Bt(r),c=Bt(l);Fn(Bt(jt(c)),{get feature(){return Se(n)},text:"link to this page"}),Wn(Bt(jt(r,2)),{get aPlace(){return Se(n)}});var h=jt(i,2),u=Bt(h),d=Bt(u),p=Bt(d),f=Bt(p),m=jt(Bt(f)),_=Bt(m),g=t=>{zo(t,{get items(){return Se(n).names}})},v=t=>{Qe(t,Do())};ni(_,(t=>{Se(n).names&&"object"==typeof Se(n).names&&Object.keys(Se(n).names).length?t(g):t(v,!1)}));var y=jt(f),b=jt(Bt(y)),w=Bt(b),x=jt(y),L=jt(Bt(x)),P=Bt(L),T=jt(x),k=t=>{var e=No(),i=jt(Bt(e)),o=Bt(i);Ut((()=>ti(o,Se(n).admin_level))),Qe(t,e)};ni(T,(t=>{(function(t){return"boundary"===t.category&&"administrative"===t.type})(Se(n))&&t(k)}));var M=jt(T),C=jt(Bt(M)),E=Bt(C),A=jt(M),S=jt(Bt(A)),O=Bt(S),z=jt(A),I=t=>{var e=Bo(),i=jt(Bt(e)),o=Bt(i),s=jt(o),r=t=>{Qe(t,Xe("(estimated)"))};ni(s,(t=>{Se(n).importance||t(r)})),Ut((()=>ti(o,`${Se(n).calculated_importance??""} `))),Qe(t,e)};ni(z,(t=>{Se(n).calculated_importance&&t(I)}));var D=jt(z),N=jt(Bt(D)),B=Bt(N),Z=jt(D),j=jt(Bt(Z)),R=Bt(j),$=jt(Z),q=jt(Bt($));To(Bt(q),{get osmType(){return Se(n).osm_type},get osmId(){return Se(n).osm_id}});var W=jt($),U=jt(Bt(W)),V=Bt(U),K=jt(W),G=t=>{var e=Zo(),i=jt(Bt(e));!function(t,e){F(e,!0);const i=tt((()=>e.wikipedia?e.wikipedia.split(":",2):null)),n=tt((()=>`https://${Vi(Se(i)[0])}.wikipedia.org/wiki/${Vi(Se(i)[1])}`));var o=Je(),s=Zt(o),r=t=>{var i=Io(),o=Bt(i);Ut((()=>{Ti(i,"href",Se(n)),ti(o,e.wikipedia)})),Qe(t,i)};ni(s,(t=>{e.wikipedia&&t(r)})),Qe(t,o),H()}(Bt(i),{get wikipedia(){return Se(n).calculated_wikipedia}}),Qe(t,e)};ni(K,(t=>{Se(n).calculated_wikipedia&&t(G)}));var Y=jt(K),X=jt(Bt(Y)),J=Bt(X),Q=t=>{var e=jo(),i=Zt(e);!function(t,e){F(e,!0);const i=tt((()=>`\n    // Based on the map bounds, you can zoom out and rerun the query\n\n    [timeout:30]; // in seconds\n\n    // we define a shortcut\n    // https://wiki.openstreetmap.org/wiki/Overpass_turbo/Extended_Overpass_Turbo_Queries\n    {{postcode=${e.postcode}}}\n\n    (\n      node["addr:postcode"="{{postcode}}"]({{bbox}});\n      way["addr:postcode"="{{postcode}}"]({{bbox}});\n      relation["addr:postcode"="{{postcode}}"]({{bbox}});\n\n      node["postal_code"="{{postcode}}"]({{bbox}});\n      way["postal_code"="{{postcode}}"]({{bbox}});\n      relation["postal_code"="{{postcode}}"]({{bbox}});\n    );\n\n    out body;\n    >;\n    out skel qt;\n  `.replace(/^ {4}/gm,""))),n=tt((()=>"https://overpass-turbo.eu/?Q="+encodeURIComponent(Se(i))+"&C="+encodeURIComponent([e.lat,e.lon,15].join(";"))+"&R"));var o=So(),s=jt(Zt(o));s.__click=[Eo];var r=Bt(jt(s,2));r.__click=[Ao];var a=jt(r,4),l=jt(Bt(a));Ut((()=>Ti(l,"href",Se(n)))),Qe(t,o),H()}(jt(i),{get postcode(){return Se(n).calculated_postcode},get lat(){return Se(n).centroid.coordinates[1]},get lon(){return Se(n).centroid.coordinates[0]}}),Ut((()=>ti(i,`${Se(n).calculated_postcode??""} `))),Qe(t,e)};ni(J,(t=>{Se(n).calculated_postcode&&t(Q)}));var et=jt(Y),it=jt(Bt(et));zo(Bt(it),{get items(){return Se(n).addresstags}});var nt=jt(et),ot=jt(Bt(nt));zo(Bt(ot),{get items(){return Se(n).extratags}});var st=Bt(jt(u,2));uo(Bt(st),{get current_result(){return Se(n)}});var rt=Bt(jt(h,2)),at=jt(Bt(rt),2),lt=jt(Bt(at)),ct=Bt(lt),ht=t=>{var e=Je();si(Zt(e),17,(()=>Se(n).address),oi,((t,e)=>{{let i=tt((()=>function(t){let e=t.address.find((t=>"country_code"===t.type));return e?e.localname:null}(Se(n))));Co(t,{get addressLine(){return Se(e)},bMarkUnusedLines:!0,bDistanceInMeters:!1,get sCountryCode(){return Se(i)}})}})),Qe(t,e)};ni(ct,(t=>{Se(n).address&&t(ht)}));var ut=jt(ct),dt=t=>{var e=Ro();si(jt(Zt(e),2),17,(()=>Se(n).linked_places),oi,((t,e)=>{Co(t,{get addressLine(){return Se(e)},bMarkUnusedLines:!0,bDistanceInMeters:!0})})),Qe(t,e)};ni(ut,(t=>{Se(n).linked_places&&t(dt)}));var pt=jt(ut),ft=t=>{var e=Go(),i=jt(Zt(e),2),r=t=>{var e=Je(),i=Zt(e),o=t=>{var e=Uo(),i=jt(Zt(e),2);si(i,17,(()=>Se(n).keywords.name),oi,((t,e)=>{var i=Fo(),n=Bt(i),o=Bt(n),s=jt(n),r=t=>{var i=$o(),n=Bt(i);Ut((()=>ti(n,`word id: ${Se(e).id??""}`))),Qe(t,i)};ni(s,(t=>{Se(e).id&&t(r)})),Ut((t=>ti(o,t)),[()=>Gi(Se(e).token)]),Qe(t,i)}));var o=jt(i,2),s=t=>{var e=Wo();si(jt(Zt(e),2),17,(()=>Se(n).keywords.address),oi,((t,e)=>{var i=qo(),n=Bt(i),o=Bt(n),s=jt(n),r=t=>{var i=Ho(),n=Bt(i);Ut((()=>ti(n,`word id: ${Se(e).id??""}`))),Qe(t,i)};ni(s,(t=>{Se(e).id&&t(r)})),Ut((t=>ti(o,t)),[()=>Gi(Se(e).token)]),Qe(t,i)})),Qe(t,e)};ni(o,(t=>{Se(n).keywords.address&&t(s)})),Qe(t,e)},s=t=>{Qe(t,Vo())};ni(i,(t=>{var e;(e=Se(n)).keywords&&e.keywords.name&&e.keywords.address&&(e.keywords.name.length>0||e.keywords.address.length>0)?t(o):t(s,!1)})),Qe(t,e)},a=t=>{var e=Ko(),i=Bt(e),n=Bt(i);Ut((()=>Ti(n,"href",`${Se(o)??""}&keywords=1`))),Qe(t,e)};ni(i,(t=>{Se(s).keywords?t(r):t(a,!1)})),Qe(t,e)};ni(pt,(t=>{a||t(ft)}));var mt=jt(pt,2),_t=t=>{var e=Je(),i=Zt(e),o=t=>{var e=Jo(),i=Zt(e);si(i,17,(()=>Object.keys(Se(n).hierarchy)),oi,((t,e)=>{var i=Yo(),o=Zt(i),s=Bt(o),r=Bt(s),a=Bt(r);si(jt(o,2),17,(()=>Se(n).hierarchy[Se(e)]),oi,((t,e)=>{Co(t,{get addressLine(){return Se(e)},bDistanceInMeters:!0})})),Ut((()=>ti(a,Se(e)))),Qe(t,i)}));var o=jt(i,2),s=t=>{Qe(t,Xo())};ni(o,(t=>{Object.keys(Se(n).hierarchy)>500&&t(s)})),Qe(t,e)},s=t=>{Qe(t,Qo())};ni(i,(t=>{Se(n).hierarchy&&"object"==typeof Se(n).hierarchy&&Object.keys(Se(n).hierarchy).length?t(o):t(s,!1)})),Qe(t,e)},gt=t=>{var e=ts(),i=Bt(e),n=Bt(i);Ut((()=>Ti(n,"href",`${Se(o)??""}&hierarchy=1`))),Qe(t,e)};ni(mt,(t=>{Se(s).hierarchy?t(_t):t(gt,!1)})),Ut(((t,e,i)=>{ti(c,`${t??""} `),ti(w,`${Se(n).category??""}:${Se(n).type??""}`),ti(P,Se(n).indexed_date),ti(E,Se(n).rank_search),ti(O,`${Se(n).rank_address??""} (${e??""})`),ti(B,i),ti(R,`${Se(n).centroid.coordinates[1]??""},${Se(n).centroid.coordinates[0]??""}`),ti(V,`${Se(n).place_id??""}\n               (`)}),[()=>Se(n).localname||`${Ki(Se(n).osm_type)} ${Se(n).osm_id}`,()=>{return(t=Se(n).rank_address)<4?"other":t<6?"country":t<8?"region":t<10?"state":t<12?"state district":t<14?"county":t<16?"municipality":t<18?"city / town / village":t<20?"city / village district":t<22?"suburb / hamlet":t<24?"neighbourhood":t<26?"city block / square":26===t?"major street":27===t?"minory street / path":t<=30?"house / building":"other";var t},()=>function(t){return t.isarea?"Polygon":"Point"}(Se(n))]),Qe(t,e)},d=t=>{var e=Je(),i=Zt(e),n=t=>{Qe(t,Xe("No such place found."))};ni(i,(t=>{""!==window.location.search&&Se(r)&&t(n)}),!0),Qe(t,e)};ni(h,(t=>{Se(n)?t(u):t(d,!1)})),Qe(t,l),H()}var os=Ye('<tr><td><!></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td><a target="josm">josm</a></td></tr>'),ss=Ye('<!> <div class="container"><div class="row"><div class="col-sm-12"><h1>Broken polygons</h1> <p> </p> <table class="table table-striped table-hover"><thead><tr><th>OSM object</th><th>Class</th><th>Type</th><th>Name</th><th>Country Code</th><th>Error message</th><th>Updated</th><th></th></tr></thead><tbody></tbody></table></div></div></div>',1);var rs=Ye("<tr><td><!></td><td> </td><td> </td><td><!></td><td> </td><td> </td></tr>"),as=Ye('<!> <div class="container"><div class="row"><div class="col-sm-12"><h1>Deletable</h1> <p> </p> <table class="table table-striped table-hover"><thead><tr><th>Place id</th><th>Country Code</th><th>Name</th><th>OSM object</th><th>Class</th><th>Type</th></tr></thead><tbody></tbody></table></div></div></div>',1);var ls=Ye('<!> <div class="container"><div class="row"><div class="col-sm-12"><h1>Server status</h1> <dl><dt>API Endpoint</dt> <dd><a> </a></dd> <dt>Software version</dt> <dd> </dd> <dt>Database version</dt> <dd> </dd> <dt>Data last updated</dt> <dd> </dd></dl></div></div></div>',1);var cs=Ye('<!> <div id="about-help" class="container svelte-1l5yrvt"></div>',1);var hs=Ye("<!> <!>",1);const us=(ds=function(t,e){F(e,!1),Si();var i=hs();qe("popstate",At,(()=>Qi.refreshPage()));var n=Zt(i),o=t=>{fo(t,{})},s=t=>{var e=Je(),i=Zt(e),n=t=>{xo(t,{})},o=t=>{var e=Je(),i=Zt(e),n=t=>{ns(t,{})},o=t=>{var e=Je(),i=Zt(e),n=t=>{!function(t,e){F(e,!0);let i=Lt(Ct([]));Di((function(){Qi.fetchFromApi("deletable",{format:"json"},(function(t){Pt(i,t,!0)})),Wi("Deletable objects")}));var n=as(),o=Zt(n);kn(o,{});var s=Bt(jt(o,2)),r=Bt(s),a=jt(Bt(r),2),l=Bt(a),c=jt(a,2);si(jt(Bt(c)),21,(()=>Se(i)),oi,((t,e)=>{var i=rs(),n=Bt(i);Fn(Bt(n),{get feature(){return Se(e)},get text(){return Se(e).place_id}});var o=jt(n),s=Bt(o),r=jt(o),a=Bt(r),l=jt(r);To(Bt(l),{get osmType(){return Se(e).osm_type},get osmId(){return Se(e).osm_id}});var c=jt(l),h=Bt(c),u=Bt(jt(c));Ut((()=>{ti(s,Se(e).country_code),ti(a,Se(e).name),ti(h,Se(e).class),ti(u,Se(e).type)})),Qe(t,i)})),Ut((()=>ti(l,`${Se(i).length??""} objects have been deleted in OSM but\n        are still in the Nominatim database.`))),Qe(t,n),H()}(t,{})},o=t=>{var e=Je(),i=Zt(e),n=t=>{!function(t,e){F(e,!0);let i=Lt(Ct([]));Di((function(){Qi.fetchFromApi("polygons",{format:"json"},(function(t){Pt(i,t,!0)})),Wi("Broken polygons")}));var n=ss(),o=Zt(n);kn(o,{});var s=Bt(jt(o,2)),r=Bt(s),a=jt(Bt(r),2),l=Bt(a),c=jt(a,2);si(jt(Bt(c)),21,(()=>Se(i)),oi,((t,e)=>{var i=os(),n=Bt(i);To(Bt(n),{osmType:"(polygon.osm_type}",get osmId(){return Se(e).osm_id}});var o=jt(n),s=Bt(o),r=jt(o),a=Bt(r),l=jt(r),c=Bt(l),h=jt(l),u=Bt(h),d=jt(h),p=Bt(d),f=jt(d),m=Bt(f),_=Bt(jt(f));Ut((t=>{ti(s,Se(e).class),ti(a,Se(e).type),ti(c,Se(e).name),ti(u,Se(e).country_code||""),ti(p,Se(e).errormessage),ti(m,Se(e).updated),Ti(_,"href",`http://localhost:8111/import?url=https://www.openstreetmap.org/api/0.6/${t??""}/${Se(e).osm_id??""}/full`)}),[()=>Ki(Se(e).osm_type)]),Qe(t,i)})),Ut((()=>ti(l,`Total number of broken polygons: ${Se(i).length??""}.`))),Qe(t,n),H()}(t,{})},o=t=>{var e=Je(),i=Zt(e),n=t=>{!function(t,e){F(e,!0);let i=Lt(Ct({}));const n=Nominatim_Config,o="function"==typeof n.Nominatim_API_Endpoint?n.Nominatim_API_Endpoint():n.Nominatim_API_Endpoint;Di((function(){Qi.fetchFromApi("status",{format:"json"},(function(t){Pt(i,t,!0)})),Wi("Server status")}));var s=ls(),r=Zt(s);kn(r,{});var a=Bt(jt(r,2)),l=Bt(a),c=jt(Bt(l),2),h=jt(Bt(c),2),u=Bt(h),d=Bt(u),p=jt(h,4),f=Bt(p),m=jt(p,4),_=Bt(m),g=Bt(jt(m,4));Ut((()=>{Ti(u,"href",o),ti(d,o),ti(f,Se(i).software_version),ti(_,Se(i).database_version),ti(g,Se(i).data_updated)})),Qe(t,s),H()}(t,{})},o=t=>{var e=Je(),i=Zt(e),n=t=>{!function(t,e){F(e,!1),Di((()=>{Fi("theme/about-help.html",document.getElementById("about-help"))})),Si();var i=cs();kn(Zt(i),{}),Qe(t,i),H()}(t,{})};ni(i,(t=>{"about"===Qi.page.tab&&t(n)}),!0),Qe(t,e)};ni(i,(t=>{"status"===Qi.page.tab?t(n):t(o,!1)}),!0),Qe(t,e)};ni(i,(t=>{"polygons"===Qi.page.tab?t(n):t(o,!1)}),!0),Qe(t,e)};ni(i,(t=>{"deletable"===Qi.page.tab?t(n):t(o,!1)}),!0),Qe(t,e)};ni(i,(t=>{"details"===Qi.page.tab?t(n):t(o,!1)}),!0),Qe(t,e)};ni(i,(t=>{"reverse"===Qi.page.tab?t(n):t(o,!1)}),!0),Qe(t,e)};ni(n,(t=>{"search"===Qi.page.tab?t(o):t(s,!1)})),function(t){Qe(t,tn())}(jt(n,2)),Qe(t,i),H()},ps={target:document.body},function(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){!function(){if(void 0===At){At=window,St=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Ot=s(e,"firstChild").get,zt=s(e,"nextSibling").get,h(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),h(i)&&(i.__t=void 0)}}();var c=new Set,u=t=>{for(var i=0;i<t.length;i++){var n=t[i];if(!c.has(n)){c.add(n);var o=Ze(n);e.addEventListener(n,Ve,{passive:o});var s=ei.get(n);void 0===s?(document.addEventListener(n,Ve,{passive:o}),ei.set(n,1)):ei.set(n,s+1)}}};u(n(Fe)),He.add(u);var d=void 0,p=function(t){gt.ensure();const e=$t(m,t,!0);return(t={})=>new Promise((i=>{t.outro?te(e,(()=>{Xt(e),i(void 0)})):(Xt(e),i(void 0))}))}((()=>{var n=i??e.appendChild(It());return Kt((()=>{a&&(F({}),R.c=a),r&&(o.$$events=r),d=t(n,o)||{},a&&H()})),()=>{for(var t of c){e.removeEventListener(t,Ve);var o=ei.get(t);0===--o?(document.removeEventListener(t,Ve),ei.delete(t)):ei.set(t,o)}He.delete(u),n!==i&&n.parentNode?.removeChild(n)}}));return ii.set(d,p),d}(ds,ps));var ds,ps;return us}();
25 //# sourceMappingURL=bundle.js.map