From cfc04981aac1a36fbf3c4ce9274a9fcb77c830c1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 29 Aug 2023 22:18:00 +0000 Subject: [PATCH] Deploy to GitHub pages --- README.md | 1 + assets/about-e9757560.js | 1 + assets/home-ca63a6ec.js | 1 + assets/index-1d3c42eb.js | 32 ++++++++++++++++++++++++++++++++ assets/index-53538fcf.css | 1 + favicon.ico | Bin 0 -> 4286 bytes index.html | 21 +++++++++++++++++++++ robots.txt | 2 ++ 8 files changed, 59 insertions(+) create mode 100644 README.md create mode 100644 assets/about-e9757560.js create mode 100644 assets/home-ca63a6ec.js create mode 100644 assets/index-1d3c42eb.js create mode 100644 assets/index-53538fcf.css create mode 100644 favicon.ico create mode 100644 index.html create mode 100644 robots.txt diff --git a/README.md b/README.md new file mode 100644 index 00000000..e3cc6cd4 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Assets in this directory will be served at root path. diff --git a/assets/about-e9757560.js b/assets/about-e9757560.js new file mode 100644 index 00000000..28b0bf9c --- /dev/null +++ b/assets/about-e9757560.js @@ -0,0 +1 @@ +import{d as i,o as n,c as l,a as e,t,f as o}from"./index-1d3c42eb.js";const s={class:"!container mx-auto p-4 sm:pl-0 sm:pr-0 prose dark:prose-invert box-border"},c={id:"%7B%7Bfrontmatter.title%7D%7D",tabindex:"-1"},h=o('

Dig deeper

Please contact us if you need extended access to the data underlying here. The TaxonWorks interfaces used to curate these data include wide range of additional filtering, reporting, and curatorial functionality. With a little training from us we’d be happy to provide you access to this additional functionality. Over time we expect this site to gradually mirror that extended functionality.

Contact

If you have a question, want to report new data relevant to the project, or have error our preferred means of contact is to file an issue on our project tracker. You can also chat live with us. We can also be reached via email.

Team

Please contact us if you would like to join this effort.

Made possible by the wonderful:

Citing

',9),p=e("li",null,"Individual taxon pages - See citation at the bottom of each page.",-1),d=o('

Data

Data for these pages is collaboratively curated online in a TaxonWorks project. All data behind this site served as JSON through calls to a TaxonWorks API. You can follow along by using the Console of your browser to explore the Network tab.

Technical

Want to create your own site? This website is built completely on open-source software. There is a site template with more information. Data are curated in a TaxonWorks project then shared via a TaxonWorks API. Come chat with the TaxonWorks community at any time.

',5),a={title:"About",contact_email:"user@example.com",copyright:"All content is CC 0 so that it maybe be shared throughout the world in places like Wikipedia.",citation:"Project collaborative. 2022. Website title. Available at https://example.com."},g="",x=i({__name:"about",setup(u,{expose:r}){return r({frontmatter:{title:"About",contact_email:"user@example.com",copyright:"All content is CC 0 so that it maybe be shared throughout the world in places like Wikipedia.",citation:"Project collaborative. 2022. Website title. Available at https://example.com."},excerpt:void 0}),(m,f)=>(n(),l("div",s,[e("h1",c,t(a.title),1),h,e("ul",null,[e("li",null,"This website - "+t(a.citation),1),p]),d,e("p",null,[e("em",null,t(a.copyright),1)])]))}});export{x as default,g as excerpt,a as frontmatter}; diff --git a/assets/home-ca63a6ec.js b/assets/home-ca63a6ec.js new file mode 100644 index 00000000..919a6cd9 --- /dev/null +++ b/assets/home-ca63a6ec.js @@ -0,0 +1 @@ +import{d as c,r as a,o as d,c as p,a as e,t as o,b as t,e as r,w as m}from"./index-1d3c42eb.js";const u={class:"!container mx-auto p-4 sm:pl-0 sm:pr-0 prose dark:prose-invert box-border"},_={id:"%7B%7Bfrontmatter.title%7D%7D",tabindex:"-1"},h=e("h2",{id:"overview",tabindex:"-1"},"Overview",-1),x=e("a",{href:"https://taxonworks.org",rel:"noopener noreferrer",target:"_blank"},"TaxonWorks",-1),b=e("h2",{id:"get-started!",tabindex:"-1"},"Get started!",-1),f=e("h2",{id:"announcements",tabindex:"-1"},"Announcements",-1),v=e("ul",null,[e("li",null,"5/1/2022 - We’ve grown!"),e("li",null,"1/1/2022 - Our website is live!")],-1),w=e("h2",{id:"find-out-more",tabindex:"-1"},"Find out more",-1),n={title:"The title",lead:"Taxa from your imagination to the web",project:"Your project"},B="",C=c({__name:"home",setup(g,{expose:i}){return i({frontmatter:{title:"The title",lead:"Taxa from your imagination to the web",project:"Your project"},excerpt:void 0}),(j,k)=>{const s=a("autocomplete-otu"),l=a("router-link");return d(),p("div",u,[e("h1",_,o(n.title),1),e("p",null,[e("em",null,o(n.lead),1)]),h,e("p",null,[t("Welcome to "),e("em",null,o(n.project),1),t(", a website of taxon pages generated from the "+o(n.project)+" Project, a comprehensive collaborative effort managed in ",1),x,t(".")]),b,r(s,{class:"w-80"}),f,v,w,e("p",null,[t("Learn how to collaborate with the "+o(n.title)+" project. Contact information, technical details, and more are available at ",1),r(l,{to:"/about"},{default:m(()=>[t("About")]),_:1}),t(".")])])}}});export{C as default,B as excerpt,n as frontmatter}; diff --git a/assets/index-1d3c42eb.js b/assets/index-1d3c42eb.js new file mode 100644 index 00000000..d7e85e67 --- /dev/null +++ b/assets/index-1d3c42eb.js @@ -0,0 +1,32 @@ +(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function o(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(l){if(l.ep)return;l.ep=!0;const c=o(l);fetch(l.href,c)}})();function Ua(t,n){const o=Object.create(null),i=t.split(",");for(let l=0;l!!o[l.toLowerCase()]:l=>!!o[l]}const Ee={},di=[],Tn=()=>{},gf=()=>!1,_f=/^on[^a-z]/,_o=t=>_f.test(t),Ga=t=>t.startsWith("onUpdate:"),je=Object.assign,Za=(t,n)=>{const o=t.indexOf(n);o>-1&&t.splice(o,1)},yf=Object.prototype.hasOwnProperty,me=(t,n)=>yf.call(t,n),Kt=Array.isArray,fi=t=>ms(t)==="[object Map]",Eu=t=>ms(t)==="[object Set]",oe=t=>typeof t=="function",De=t=>typeof t=="string",qa=t=>typeof t=="symbol",Oe=t=>t!==null&&typeof t=="object",Tu=t=>Oe(t)&&oe(t.then)&&oe(t.catch),Ou=Object.prototype.toString,ms=t=>Ou.call(t),vf=t=>ms(t).slice(8,-1),Ru=t=>ms(t)==="[object Object]",Ka=t=>De(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Qi=Ua(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gs=t=>{const n=Object.create(null);return o=>n[o]||(n[o]=t(o))},bf=/-(\w)/g,Fn=gs(t=>t.replace(bf,(n,o)=>o?o.toUpperCase():"")),wf=/\B([A-Z])/g,xi=gs(t=>t.replace(wf,"-$1").toLowerCase()),_s=gs(t=>t.charAt(0).toUpperCase()+t.slice(1)),ea=gs(t=>t?`on${_s(t)}`:""),so=(t,n)=>!Object.is(t,n),Wo=(t,n)=>{for(let o=0;o{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value:o})},va=t=>{const n=parseFloat(t);return isNaN(n)?t:n},xf=t=>{const n=De(t)?Number(t):NaN;return isNaN(n)?t:n};let ec;const ba=()=>ec||(ec=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function $r(t){if(Kt(t)){const n={};for(let o=0;o{if(o){const i=o.split(Lf);i.length>1&&(n[i[0].trim()]=i[1].trim())}}),n}function hn(t){let n="";if(De(t))n=t;else if(Kt(t))for(let o=0;oDe(t)?t:t==null?"":Kt(t)||Oe(t)&&(t.toString===Ou||!oe(t.toString))?JSON.stringify(t,Bu,2):String(t),Bu=(t,n)=>n&&n.__v_isRef?Bu(t,n.value):fi(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((o,[i,l])=>(o[`${i} =>`]=l,o),{})}:Eu(n)?{[`Set(${n.size})`]:[...n.values()]}:Oe(n)&&!Kt(n)&&!Ru(n)?String(n):n;let un;class Iu{constructor(n=!1){this.detached=n,this._active=!0,this.effects=[],this.cleanups=[],this.parent=un,!n&&un&&(this.index=(un.scopes||(un.scopes=[])).push(this)-1)}get active(){return this._active}run(n){if(this._active){const o=un;try{return un=this,n()}finally{un=o}}}on(){un=this}off(){un=this.parent}stop(n){if(this._active){let o,i;for(o=0,i=this.effects.length;o{const n=new Set(t);return n.w=0,n.n=0,n},ju=t=>(t.w&xr)>0,Nu=t=>(t.n&xr)>0,Of=({deps:t})=>{if(t.length)for(let n=0;n{const{deps:n}=t;if(n.length){let o=0;for(let i=0;i{(y==="length"||y>=m)&&f.push(g)})}else switch(o!==void 0&&f.push(h.get(o)),n){case"add":Kt(t)?Ka(o)&&f.push(h.get("length")):(f.push(h.get(Ur)),fi(t)&&f.push(h.get(xa)));break;case"delete":Kt(t)||(f.push(h.get(Ur)),fi(t)&&f.push(h.get(xa)));break;case"set":fi(t)&&f.push(h.get(Ur));break}if(f.length===1)f[0]&&ka(f[0]);else{const m=[];for(const g of f)g&&m.push(...g);ka(Wa(m))}}function ka(t,n){const o=Kt(t)?t:[...t];for(const i of o)i.computed&&rc(i);for(const i of o)i.computed||rc(i)}function rc(t,n){(t!==Sn||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function Af(t,n){var o;return(o=is.get(t))==null?void 0:o.get(n)}const Bf=Ua("__proto__,__v_isRef,__isVue"),Vu=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(qa)),If=Ya(),Df=Ya(!1,!0),zf=Ya(!0),ic=jf();function jf(){const t={};return["includes","indexOf","lastIndexOf"].forEach(n=>{t[n]=function(...o){const i=pe(this);for(let c=0,h=this.length;c{t[n]=function(...o){ki();const i=pe(this)[n].apply(this,o);return Li(),i}}),t}function Nf(t){const n=pe(this);return sn(n,"has",t),n.hasOwnProperty(t)}function Ya(t=!1,n=!1){return function(i,l,c){if(l==="__v_isReactive")return!t;if(l==="__v_isReadonly")return t;if(l==="__v_isShallow")return n;if(l==="__v_raw"&&c===(t?n?ep:qu:n?Zu:Gu).get(i))return i;const h=Kt(i);if(!t){if(h&&me(ic,l))return Reflect.get(ic,l,c);if(l==="hasOwnProperty")return Nf}const f=Reflect.get(i,l,c);return(qa(l)?Vu.has(l):Bf(l))||(t||sn(i,"get",l),n)?f:Ie(f)?h&&Ka(l)?f:f.value:Oe(f)?t?Wu(f):yo(f):f}}const Hf=$u(),Ff=$u(!0);function $u(t=!1){return function(o,i,l,c){let h=o[i];if(gi(h)&&Ie(h)&&!Ie(l))return!1;if(!t&&(!os(l)&&!gi(l)&&(h=pe(h),l=pe(l)),!Kt(o)&&Ie(h)&&!Ie(l)))return h.value=l,!0;const f=Kt(o)&&Ka(i)?Number(i)t,ys=t=>Reflect.getPrototypeOf(t);function Fo(t,n,o=!1,i=!1){t=t.__v_raw;const l=pe(t),c=pe(n);o||(n!==c&&sn(l,"get",n),sn(l,"get",c));const{has:h}=ys(l),f=i?Xa:o?el:ao;if(h.call(l,n))return f(t.get(n));if(h.call(l,c))return f(t.get(c));t!==l&&t.get(n)}function Vo(t,n=!1){const o=this.__v_raw,i=pe(o),l=pe(t);return n||(t!==l&&sn(i,"has",t),sn(i,"has",l)),t===l?o.has(t):o.has(t)||o.has(l)}function $o(t,n=!1){return t=t.__v_raw,!n&&sn(pe(t),"iterate",Ur),Reflect.get(t,"size",t)}function oc(t){t=pe(t);const n=pe(this);return ys(n).has.call(n,t)||(n.add(t),er(n,"add",t,t)),this}function sc(t,n){n=pe(n);const o=pe(this),{has:i,get:l}=ys(o);let c=i.call(o,t);c||(t=pe(t),c=i.call(o,t));const h=l.call(o,t);return o.set(t,n),c?so(n,h)&&er(o,"set",t,n):er(o,"add",t,n),this}function ac(t){const n=pe(this),{has:o,get:i}=ys(n);let l=o.call(n,t);l||(t=pe(t),l=o.call(n,t)),i&&i.call(n,t);const c=n.delete(t);return l&&er(n,"delete",t,void 0),c}function lc(){const t=pe(this),n=t.size!==0,o=t.clear();return n&&er(t,"clear",void 0,void 0),o}function Uo(t,n){return function(i,l){const c=this,h=c.__v_raw,f=pe(h),m=n?Xa:t?el:ao;return!t&&sn(f,"iterate",Ur),h.forEach((g,y)=>i.call(l,m(g),m(y),c))}}function Go(t,n,o){return function(...i){const l=this.__v_raw,c=pe(l),h=fi(c),f=t==="entries"||t===Symbol.iterator&&h,m=t==="keys"&&h,g=l[t](...i),y=o?Xa:n?el:ao;return!n&&sn(c,"iterate",m?xa:Ur),{next(){const{value:x,done:M}=g.next();return M?{value:x,done:M}:{value:f?[y(x[0]),y(x[1])]:y(x),done:M}},[Symbol.iterator](){return this}}}}function ur(t){return function(...n){return t==="delete"?!1:this}}function qf(){const t={get(c){return Fo(this,c)},get size(){return $o(this)},has:Vo,add:oc,set:sc,delete:ac,clear:lc,forEach:Uo(!1,!1)},n={get(c){return Fo(this,c,!1,!0)},get size(){return $o(this)},has:Vo,add:oc,set:sc,delete:ac,clear:lc,forEach:Uo(!1,!0)},o={get(c){return Fo(this,c,!0)},get size(){return $o(this,!0)},has(c){return Vo.call(this,c,!0)},add:ur("add"),set:ur("set"),delete:ur("delete"),clear:ur("clear"),forEach:Uo(!0,!1)},i={get(c){return Fo(this,c,!0,!0)},get size(){return $o(this,!0)},has(c){return Vo.call(this,c,!0)},add:ur("add"),set:ur("set"),delete:ur("delete"),clear:ur("clear"),forEach:Uo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(c=>{t[c]=Go(c,!1,!1),o[c]=Go(c,!0,!1),n[c]=Go(c,!1,!0),i[c]=Go(c,!0,!0)}),[t,o,n,i]}const[Kf,Wf,Jf,Yf]=qf();function Qa(t,n){const o=n?t?Yf:Jf:t?Wf:Kf;return(i,l,c)=>l==="__v_isReactive"?!t:l==="__v_isReadonly"?t:l==="__v_raw"?i:Reflect.get(me(o,l)&&l in i?o:i,l,c)}const Xf={get:Qa(!1,!1)},Qf={get:Qa(!1,!0)},tp={get:Qa(!0,!1)},Gu=new WeakMap,Zu=new WeakMap,qu=new WeakMap,ep=new WeakMap;function np(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rp(t){return t.__v_skip||!Object.isExtensible(t)?0:np(vf(t))}function yo(t){return gi(t)?t:tl(t,!1,Uu,Xf,Gu)}function Ku(t){return tl(t,!1,Zf,Qf,Zu)}function Wu(t){return tl(t,!0,Gf,tp,qu)}function tl(t,n,o,i,l){if(!Oe(t)||t.__v_raw&&!(n&&t.__v_isReactive))return t;const c=l.get(t);if(c)return c;const h=rp(t);if(h===0)return t;const f=new Proxy(t,h===2?i:o);return l.set(t,f),f}function br(t){return gi(t)?br(t.__v_raw):!!(t&&t.__v_isReactive)}function gi(t){return!!(t&&t.__v_isReadonly)}function os(t){return!!(t&&t.__v_isShallow)}function Ju(t){return br(t)||gi(t)}function pe(t){const n=t&&t.__v_raw;return n?pe(n):t}function vs(t){return rs(t,"__v_skip",!0),t}const ao=t=>Oe(t)?yo(t):t,el=t=>Oe(t)?Wu(t):t;function Yu(t){vr&&Sn&&(t=pe(t),Fu(t.dep||(t.dep=Wa())))}function Xu(t,n){t=pe(t);const o=t.dep;o&&ka(o)}function Ie(t){return!!(t&&t.__v_isRef===!0)}function Xt(t){return Qu(t,!1)}function ip(t){return Qu(t,!0)}function Qu(t,n){return Ie(t)?t:new op(t,n)}class op{constructor(n,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?n:pe(n),this._value=o?n:ao(n)}get value(){return Yu(this),this._value}set value(n){const o=this.__v_isShallow||os(n)||gi(n);n=o?n:pe(n),so(n,this._rawValue)&&(this._rawValue=n,this._value=o?n:ao(n),Xu(this))}}function qt(t){return Ie(t)?t.value:t}const sp={get:(t,n,o)=>qt(Reflect.get(t,n,o)),set:(t,n,o,i)=>{const l=t[n];return Ie(l)&&!Ie(o)?(l.value=o,!0):Reflect.set(t,n,o,i)}};function th(t){return br(t)?t:new Proxy(t,sp)}function ap(t){const n=Kt(t)?new Array(t.length):{};for(const o in t)n[o]=cp(t,o);return n}class lp{constructor(n,o,i){this._object=n,this._key=o,this._defaultValue=i,this.__v_isRef=!0}get value(){const n=this._object[this._key];return n===void 0?this._defaultValue:n}set value(n){this._object[this._key]=n}get dep(){return Af(pe(this._object),this._key)}}function cp(t,n,o){const i=t[n];return Ie(i)?i:new lp(t,n,o)}class up{constructor(n,o,i,l){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ja(n,()=>{this._dirty||(this._dirty=!0,Xu(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=i}get value(){const n=pe(this);return Yu(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}function hp(t,n,o=!1){let i,l;const c=oe(t);return c?(i=t,l=Tn):(i=t.get,l=t.set),new up(i,l,c||!l,o)}function wr(t,n,o,i){let l;try{l=i?t(...i):t()}catch(c){bs(c,n,o)}return l}function wn(t,n,o,i){if(oe(t)){const c=wr(t,n,o,i);return c&&Tu(c)&&c.catch(h=>{bs(h,n,o)}),c}const l=[];for(let c=0;c>>1;co(Je[i])Nn&&Je.splice(n,1)}function mp(t){Kt(t)?pi.push(...t):(!Qn||!Qn.includes(t,t.allowRecurse?Nr+1:Nr))&&pi.push(t),nh()}function cc(t,n=lo?Nn+1:0){for(;nco(o)-co(i)),Nr=0;Nrt.id==null?1/0:t.id,gp=(t,n)=>{const o=co(t)-co(n);if(o===0){if(t.pre&&!n.pre)return-1;if(n.pre&&!t.pre)return 1}return o};function rh(t){La=!1,lo=!0,Je.sort(gp);const n=Tn;try{for(Nn=0;NnDe(D)?D.trim():D)),x&&(l=o.map(va))}let f,m=i[f=ea(n)]||i[f=ea(Fn(n))];!m&&c&&(m=i[f=ea(xi(n))]),m&&wn(m,t,6,l);const g=i[f+"Once"];if(g){if(!t.emitted)t.emitted={};else if(t.emitted[f])return;t.emitted[f]=!0,wn(g,t,6,l)}}function ih(t,n,o=!1){const i=n.emitsCache,l=i.get(t);if(l!==void 0)return l;const c=t.emits;let h={},f=!1;if(!oe(t)){const m=g=>{const y=ih(g,n,!0);y&&(f=!0,je(h,y))};!o&&n.mixins.length&&n.mixins.forEach(m),t.extends&&m(t.extends),t.mixins&&t.mixins.forEach(m)}return!c&&!f?(Oe(t)&&i.set(t,null),null):(Kt(c)?c.forEach(m=>h[m]=null):je(h,c),Oe(t)&&i.set(t,h),h)}function xs(t,n){return!t||!_o(n)?!1:(n=n.slice(2).replace(/Once$/,""),me(t,n[0].toLowerCase()+n.slice(1))||me(t,xi(n))||me(t,n))}let Ue=null,ks=null;function as(t){const n=Ue;return Ue=t,ks=t&&t.type.__scopeId||null,n}function oh(t){ks=t}function sh(){ks=null}function mt(t,n=Ue,o){if(!n||t._n)return t;const i=(...l)=>{i._d&&wc(-1);const c=as(n);let h;try{h=t(...l)}finally{as(c),i._d&&wc(1)}return h};return i._n=!0,i._c=!0,i._d=!0,i}function na(t){const{type:n,vnode:o,proxy:i,withProxy:l,props:c,propsOptions:[h],slots:f,attrs:m,emit:g,render:y,renderCache:x,data:M,setupState:D,ctx:O,inheritAttrs:S}=t;let U,C;const R=as(t);try{if(o.shapeFlag&4){const E=l||i;U=Pn(y.call(E,E,x,c,D,M,O)),C=m}else{const E=n;U=Pn(E.length>1?E(c,{attrs:m,slots:f,emit:g}):E(c,null)),C=n.props?m:yp(m)}}catch(E){no.length=0,bs(E,t,1),U=rt(dn)}let V=U;if(C&&S!==!1){const E=Object.keys(C),{shapeFlag:z}=V;E.length&&z&7&&(h&&E.some(Ga)&&(C=vp(C,h)),V=kr(V,C))}return o.dirs&&(V=kr(V),V.dirs=V.dirs?V.dirs.concat(o.dirs):o.dirs),o.transition&&(V.transition=o.transition),U=V,as(R),U}const yp=t=>{let n;for(const o in t)(o==="class"||o==="style"||_o(o))&&((n||(n={}))[o]=t[o]);return n},vp=(t,n)=>{const o={};for(const i in t)(!Ga(i)||!(i.slice(9)in n))&&(o[i]=t[i]);return o};function bp(t,n,o){const{props:i,children:l,component:c}=t,{props:h,children:f,patchFlag:m}=n,g=c.emitsOptions;if(n.dirs||n.transition)return!0;if(o&&m>=0){if(m&1024)return!0;if(m&16)return i?uc(i,h,g):!!h;if(m&8){const y=n.dynamicProps;for(let x=0;xt.__isSuspense;function ah(t,n){n&&n.pendingBranch?Kt(t)?n.effects.push(...t):n.effects.push(t):mp(t)}const Zo={};function Ke(t,n,o){return lh(t,n,o)}function lh(t,n,{immediate:o,deep:i,flush:l,onTrack:c,onTrigger:h}=Ee){var f;const m=zu()===((f=He)==null?void 0:f.scope)?He:null;let g,y=!1,x=!1;if(Ie(t)?(g=()=>t.value,y=os(t)):br(t)?(g=()=>t,i=!0):Kt(t)?(x=!0,y=t.some(E=>br(E)||os(E)),g=()=>t.map(E=>{if(Ie(E))return E.value;if(br(E))return Vr(E);if(oe(E))return wr(E,m,2)})):oe(t)?n?g=()=>wr(t,m,2):g=()=>{if(!(m&&m.isUnmounted))return M&&M(),wn(t,m,3,[D])}:g=Tn,n&&i){const E=g;g=()=>Vr(E())}let M,D=E=>{M=R.onStop=()=>{wr(E,m,4)}},O;if(fo)if(D=Tn,n?o&&wn(n,m,3,[g(),x?[]:void 0,D]):g(),l==="sync"){const E=mm();O=E.__watcherHandles||(E.__watcherHandles=[])}else return Tn;let S=x?new Array(t.length).fill(Zo):Zo;const U=()=>{if(R.active)if(n){const E=R.run();(i||y||(x?E.some((z,W)=>so(z,S[W])):so(E,S)))&&(M&&M(),wn(n,m,3,[E,S===Zo?void 0:x&&S[0]===Zo?[]:S,D]),S=E)}else R.run()};U.allowRecurse=!!n;let C;l==="sync"?C=U:l==="post"?C=()=>rn(U,m&&m.suspense):(U.pre=!0,m&&(U.id=m.uid),C=()=>rl(U));const R=new Ja(g,C);n?o?U():S=R.run():l==="post"?rn(R.run.bind(R),m&&m.suspense):R.run();const V=()=>{R.stop(),m&&m.scope&&Za(m.scope.effects,R)};return O&&O.push(V),V}function kp(t,n,o){const i=this.proxy,l=De(t)?t.includes(".")?ch(i,t):()=>i[t]:t.bind(i,i);let c;oe(n)?c=n:(c=n.handler,o=n);const h=He;yi(this);const f=lh(l,c.bind(i),o);return h?yi(h):Gr(),f}function ch(t,n){const o=n.split(".");return()=>{let i=t;for(let l=0;l{Vr(o,n)});else if(Ru(t))for(const o in t)Vr(t[o],n);return t}function il(t,n){const o=Ue;if(o===null)return t;const i=Ps(o)||o.proxy,l=t.dirs||(t.dirs=[]);for(let c=0;c{t.isMounted=!0}),Lr(()=>{t.isUnmounting=!0}),t}const yn=[Function,Array],uh={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:yn,onEnter:yn,onAfterEnter:yn,onEnterCancelled:yn,onBeforeLeave:yn,onLeave:yn,onAfterLeave:yn,onLeaveCancelled:yn,onBeforeAppear:yn,onAppear:yn,onAfterAppear:yn,onAppearCancelled:yn},Mp={name:"BaseTransition",props:uh,setup(t,{slots:n}){const o=Th(),i=Lp();let l;return()=>{const c=n.default&&dh(n.default(),!0);if(!c||!c.length)return;let h=c[0];if(c.length>1){for(const S of c)if(S.type!==dn){h=S;break}}const f=pe(t),{mode:m}=f;if(i.isLeaving)return ra(h);const g=hc(h);if(!g)return ra(h);const y=Ma(g,f,i,o);Ca(g,y);const x=o.subTree,M=x&&hc(x);let D=!1;const{getTransitionKey:O}=g.type;if(O){const S=O();l===void 0?l=S:S!==l&&(l=S,D=!0)}if(M&&M.type!==dn&&(!Hr(g,M)||D)){const S=Ma(M,f,i,o);if(Ca(M,S),m==="out-in")return i.isLeaving=!0,S.afterLeave=()=>{i.isLeaving=!1,o.update.active!==!1&&o.update()},ra(h);m==="in-out"&&g.type!==dn&&(S.delayLeave=(U,C,R)=>{const V=hh(i,M);V[String(M.key)]=M,U._leaveCb=()=>{C(),U._leaveCb=void 0,delete y.delayedLeave},y.delayedLeave=R})}return h}}},Cp=Mp;function hh(t,n){const{leavingVNodes:o}=t;let i=o.get(n.type);return i||(i=Object.create(null),o.set(n.type,i)),i}function Ma(t,n,o,i){const{appear:l,mode:c,persisted:h=!1,onBeforeEnter:f,onEnter:m,onAfterEnter:g,onEnterCancelled:y,onBeforeLeave:x,onLeave:M,onAfterLeave:D,onLeaveCancelled:O,onBeforeAppear:S,onAppear:U,onAfterAppear:C,onAppearCancelled:R}=n,V=String(t.key),E=hh(o,t),z=(Y,ot)=>{Y&&wn(Y,i,9,ot)},W=(Y,ot)=>{const ct=ot[1];z(Y,ot),Kt(Y)?Y.every(gt=>gt.length<=1)&&ct():Y.length<=1&&ct()},it={mode:c,persisted:h,beforeEnter(Y){let ot=f;if(!o.isMounted)if(l)ot=S||f;else return;Y._leaveCb&&Y._leaveCb(!0);const ct=E[V];ct&&Hr(t,ct)&&ct.el._leaveCb&&ct.el._leaveCb(),z(ot,[Y])},enter(Y){let ot=m,ct=g,gt=y;if(!o.isMounted)if(l)ot=U||m,ct=C||g,gt=R||y;else return;let at=!1;const bt=Y._enterCb=Lt=>{at||(at=!0,Lt?z(gt,[Y]):z(ct,[Y]),it.delayedLeave&&it.delayedLeave(),Y._enterCb=void 0)};ot?W(ot,[Y,bt]):bt()},leave(Y,ot){const ct=String(t.key);if(Y._enterCb&&Y._enterCb(!0),o.isUnmounting)return ot();z(x,[Y]);let gt=!1;const at=Y._leaveCb=bt=>{gt||(gt=!0,ot(),bt?z(O,[Y]):z(D,[Y]),Y._leaveCb=void 0,E[ct]===t&&delete E[ct])};E[ct]=t,M?W(M,[Y,at]):at()},clone(Y){return Ma(Y,n,o,i)}};return it}function ra(t){if(Ls(t))return t=kr(t),t.children=null,t}function hc(t){return Ls(t)?t.children?t.children[0]:void 0:t}function Ca(t,n){t.shapeFlag&6&&t.component?Ca(t.component.subTree,n):t.shapeFlag&128?(t.ssContent.transition=n.clone(t.ssContent),t.ssFallback.transition=n.clone(t.ssFallback)):t.transition=n}function dh(t,n=!1,o){let i=[],l=0;for(let c=0;c1)for(let c=0;cje({name:t.name},n,{setup:t}))():t}const mi=t=>!!t.type.__asyncLoader,Ls=t=>t.type.__isKeepAlive;function Pp(t,n){ph(t,"a",n)}function Sp(t,n){ph(t,"da",n)}function ph(t,n,o=He){const i=t.__wdc||(t.__wdc=()=>{let l=o;for(;l;){if(l.isDeactivated)return;l=l.parent}return t()});if(Ms(n,i,o),o){let l=o.parent;for(;l&&l.parent;)Ls(l.parent.vnode)&&Ep(i,n,o,l),l=l.parent}}function Ep(t,n,o,i){const l=Ms(n,t,i,!0);Zr(()=>{Za(i[n],l)},o)}function Ms(t,n,o=He,i=!1){if(o){const l=o[t]||(o[t]=[]),c=n.__weh||(n.__weh=(...h)=>{if(o.isUnmounted)return;ki(),yi(o);const f=wn(n,o,t,h);return Gr(),Li(),f});return i?l.unshift(c):l.push(c),c}}const rr=t=>(n,o=He)=>(!fo||t==="sp")&&Ms(t,(...i)=>n(...i),o),mh=rr("bm"),an=rr("m"),Tp=rr("bu"),Op=rr("u"),Lr=rr("bum"),Zr=rr("um"),ol=rr("sp"),Rp=rr("rtg"),Ap=rr("rtc");function Bp(t,n=He){Ms("ec",t,n)}const sl="components";function ft(t,n){return _h(sl,t,!0,n)||t}const gh=Symbol.for("v-ndc");function Pa(t){return De(t)?_h(sl,t,!1)||t:t||gh}function _h(t,n,o=!0,i=!1){const l=Ue||He;if(l){const c=l.type;if(t===sl){const f=dm(c,!1);if(f&&(f===n||f===Fn(n)||f===_s(Fn(n))))return c}const h=dc(l[t]||c[t],n)||dc(l.appContext[t],n);return!h&&i?c:h}}function dc(t,n){return t&&(t[n]||t[Fn(n)]||t[_s(Fn(n))])}function Le(t,n,o,i){let l;const c=o&&o[i];if(Kt(t)||De(t)){l=new Array(t.length);for(let h=0,f=t.length;hn(h,f,void 0,c&&c[f]));else{const h=Object.keys(t);l=new Array(h.length);for(let f=0,m=h.length;fus(n)?!(n.type===dn||n.type===Gt&&!yh(n.children)):!0)?t:null}const Sa=t=>t?Oh(t)?Ps(t)||t.proxy:Sa(t.parent):null,to=je(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Sa(t.parent),$root:t=>Sa(t.root),$emit:t=>t.emit,$options:t=>al(t),$forceUpdate:t=>t.f||(t.f=()=>rl(t.update)),$nextTick:t=>t.n||(t.n=ws.bind(t.proxy)),$watch:t=>kp.bind(t)}),ia=(t,n)=>t!==Ee&&!t.__isScriptSetup&&me(t,n),Ip={get({_:t},n){const{ctx:o,setupState:i,data:l,props:c,accessCache:h,type:f,appContext:m}=t;let g;if(n[0]!=="$"){const D=h[n];if(D!==void 0)switch(D){case 1:return i[n];case 2:return l[n];case 4:return o[n];case 3:return c[n]}else{if(ia(i,n))return h[n]=1,i[n];if(l!==Ee&&me(l,n))return h[n]=2,l[n];if((g=t.propsOptions[0])&&me(g,n))return h[n]=3,c[n];if(o!==Ee&&me(o,n))return h[n]=4,o[n];Ea&&(h[n]=0)}}const y=to[n];let x,M;if(y)return n==="$attrs"&&sn(t,"get",n),y(t);if((x=f.__cssModules)&&(x=x[n]))return x;if(o!==Ee&&me(o,n))return h[n]=4,o[n];if(M=m.config.globalProperties,me(M,n))return M[n]},set({_:t},n,o){const{data:i,setupState:l,ctx:c}=t;return ia(l,n)?(l[n]=o,!0):i!==Ee&&me(i,n)?(i[n]=o,!0):me(t.props,n)||n[0]==="$"&&n.slice(1)in t?!1:(c[n]=o,!0)},has({_:{data:t,setupState:n,accessCache:o,ctx:i,appContext:l,propsOptions:c}},h){let f;return!!o[h]||t!==Ee&&me(t,h)||ia(n,h)||(f=c[0])&&me(f,h)||me(i,h)||me(to,h)||me(l.config.globalProperties,h)},defineProperty(t,n,o){return o.get!=null?t._.accessCache[n]=0:me(o,"value")&&this.set(t,n,o.value,null),Reflect.defineProperty(t,n,o)}};function Dp(){return zp().slots}function zp(){const t=Th();return t.setupContext||(t.setupContext=Ah(t))}function fc(t){return Kt(t)?t.reduce((n,o)=>(n[o]=null,n),{}):t}let Ea=!0;function jp(t){const n=al(t),o=t.proxy,i=t.ctx;Ea=!1,n.beforeCreate&&pc(n.beforeCreate,t,"bc");const{data:l,computed:c,methods:h,watch:f,provide:m,inject:g,created:y,beforeMount:x,mounted:M,beforeUpdate:D,updated:O,activated:S,deactivated:U,beforeDestroy:C,beforeUnmount:R,destroyed:V,unmounted:E,render:z,renderTracked:W,renderTriggered:it,errorCaptured:Y,serverPrefetch:ot,expose:ct,inheritAttrs:gt,components:at,directives:bt,filters:Lt}=n;if(g&&Np(g,i,null),h)for(const Ft in h){const wt=h[Ft];oe(wt)&&(i[Ft]=wt.bind(o))}if(l){const Ft=l.call(o,o);Oe(Ft)&&(t.data=yo(Ft))}if(Ea=!0,c)for(const Ft in c){const wt=c[Ft],de=oe(wt)?wt.bind(o,o):oe(wt.get)?wt.get.bind(o,o):Tn,Dt=!oe(wt)&&oe(wt.set)?wt.set.bind(o):Tn,Bt=_e({get:de,set:Dt});Object.defineProperty(i,Ft,{enumerable:!0,configurable:!0,get:()=>Bt.value,set:$t=>Bt.value=$t})}if(f)for(const Ft in f)vh(f[Ft],i,o,Ft);if(m){const Ft=oe(m)?m.call(o):m;Reflect.ownKeys(Ft).forEach(wt=>{Jo(wt,Ft[wt])})}y&&pc(y,t,"c");function Ct(Ft,wt){Kt(wt)?wt.forEach(de=>Ft(de.bind(o))):wt&&Ft(wt.bind(o))}if(Ct(mh,x),Ct(an,M),Ct(Tp,D),Ct(Op,O),Ct(Pp,S),Ct(Sp,U),Ct(Bp,Y),Ct(Ap,W),Ct(Rp,it),Ct(Lr,R),Ct(Zr,E),Ct(ol,ot),Kt(ct))if(ct.length){const Ft=t.exposed||(t.exposed={});ct.forEach(wt=>{Object.defineProperty(Ft,wt,{get:()=>o[wt],set:de=>o[wt]=de})})}else t.exposed||(t.exposed={});z&&t.render===Tn&&(t.render=z),gt!=null&&(t.inheritAttrs=gt),at&&(t.components=at),bt&&(t.directives=bt)}function Np(t,n,o=Tn){Kt(t)&&(t=Ta(t));for(const i in t){const l=t[i];let c;Oe(l)?"default"in l?c=xn(l.from||i,l.default,!0):c=xn(l.from||i):c=xn(l),Ie(c)?Object.defineProperty(n,i,{enumerable:!0,configurable:!0,get:()=>c.value,set:h=>c.value=h}):n[i]=c}}function pc(t,n,o){wn(Kt(t)?t.map(i=>i.bind(n.proxy)):t.bind(n.proxy),n,o)}function vh(t,n,o,i){const l=i.includes(".")?ch(o,i):()=>o[i];if(De(t)){const c=n[t];oe(c)&&Ke(l,c)}else if(oe(t))Ke(l,t.bind(o));else if(Oe(t))if(Kt(t))t.forEach(c=>vh(c,n,o,i));else{const c=oe(t.handler)?t.handler.bind(o):n[t.handler];oe(c)&&Ke(l,c,t)}}function al(t){const n=t.type,{mixins:o,extends:i}=n,{mixins:l,optionsCache:c,config:{optionMergeStrategies:h}}=t.appContext,f=c.get(n);let m;return f?m=f:!l.length&&!o&&!i?m=n:(m={},l.length&&l.forEach(g=>ls(m,g,h,!0)),ls(m,n,h)),Oe(n)&&c.set(n,m),m}function ls(t,n,o,i=!1){const{mixins:l,extends:c}=n;c&&ls(t,c,o,!0),l&&l.forEach(h=>ls(t,h,o,!0));for(const h in n)if(!(i&&h==="expose")){const f=Hp[h]||o&&o[h];t[h]=f?f(t[h],n[h]):n[h]}return t}const Hp={data:mc,props:gc,emits:gc,methods:Xi,computed:Xi,beforeCreate:Xe,created:Xe,beforeMount:Xe,mounted:Xe,beforeUpdate:Xe,updated:Xe,beforeDestroy:Xe,beforeUnmount:Xe,destroyed:Xe,unmounted:Xe,activated:Xe,deactivated:Xe,errorCaptured:Xe,serverPrefetch:Xe,components:Xi,directives:Xi,watch:Vp,provide:mc,inject:Fp};function mc(t,n){return n?t?function(){return je(oe(t)?t.call(this,this):t,oe(n)?n.call(this,this):n)}:n:t}function Fp(t,n){return Xi(Ta(t),Ta(n))}function Ta(t){if(Kt(t)){const n={};for(let o=0;o1)return o&&oe(n)?n.call(i&&i.proxy):n}}function Gp(){return!!(He||Ue||uo)}function Zp(t,n,o,i=!1){const l={},c={};rs(c,Cs,1),t.propsDefaults=Object.create(null),wh(t,n,l,c);for(const h in t.propsOptions[0])h in l||(l[h]=void 0);o?t.props=i?l:Ku(l):t.type.props?t.props=l:t.props=c,t.attrs=c}function qp(t,n,o,i){const{props:l,attrs:c,vnode:{patchFlag:h}}=t,f=pe(l),[m]=t.propsOptions;let g=!1;if((i||h>0)&&!(h&16)){if(h&8){const y=t.vnode.dynamicProps;for(let x=0;x{m=!0;const[M,D]=xh(x,n,!0);je(h,M),D&&f.push(...D)};!o&&n.mixins.length&&n.mixins.forEach(y),t.extends&&y(t.extends),t.mixins&&t.mixins.forEach(y)}if(!c&&!m)return Oe(t)&&i.set(t,di),di;if(Kt(c))for(let y=0;y-1,D[1]=S<0||O-1||me(D,"default"))&&f.push(x)}}}const g=[h,f];return Oe(t)&&i.set(t,g),g}function _c(t){return t[0]!=="$"}function yc(t){const n=t&&t.toString().match(/^\s*(function|class) (\w+)/);return n?n[2]:t===null?"null":""}function vc(t,n){return yc(t)===yc(n)}function bc(t,n){return Kt(n)?n.findIndex(o=>vc(o,t)):oe(n)&&vc(n,t)?0:-1}const kh=t=>t[0]==="_"||t==="$stable",ll=t=>Kt(t)?t.map(Pn):[Pn(t)],Kp=(t,n,o)=>{if(n._n)return n;const i=mt((...l)=>ll(n(...l)),o);return i._c=!1,i},Lh=(t,n,o)=>{const i=t._ctx;for(const l in t){if(kh(l))continue;const c=t[l];if(oe(c))n[l]=Kp(l,c,i);else if(c!=null){const h=ll(c);n[l]=()=>h}}},Mh=(t,n)=>{const o=ll(n);t.slots.default=()=>o},Wp=(t,n)=>{if(t.vnode.shapeFlag&32){const o=n._;o?(t.slots=pe(n),rs(n,"_",o)):Lh(n,t.slots={})}else t.slots={},n&&Mh(t,n);rs(t.slots,Cs,1)},Jp=(t,n,o)=>{const{vnode:i,slots:l}=t;let c=!0,h=Ee;if(i.shapeFlag&32){const f=n._;f?o&&f===1?c=!1:(je(l,n),!o&&f===1&&delete l._):(c=!n.$stable,Lh(n,l)),h=n}else n&&(Mh(t,n),h={default:1});if(c)for(const f in l)!kh(f)&&!(f in h)&&delete l[f]};function cs(t,n,o,i,l=!1){if(Kt(t)){t.forEach((M,D)=>cs(M,n&&(Kt(n)?n[D]:n),o,i,l));return}if(mi(i)&&!l)return;const c=i.shapeFlag&4?Ps(i.component)||i.component.proxy:i.el,h=l?null:c,{i:f,r:m}=t,g=n&&n.r,y=f.refs===Ee?f.refs={}:f.refs,x=f.setupState;if(g!=null&&g!==m&&(De(g)?(y[g]=null,me(x,g)&&(x[g]=null)):Ie(g)&&(g.value=null)),oe(m))wr(m,f,12,[h,y]);else{const M=De(m),D=Ie(m);if(M||D){const O=()=>{if(t.f){const S=M?me(x,m)?x[m]:y[m]:m.value;l?Kt(S)&&Za(S,c):Kt(S)?S.includes(c)||S.push(c):M?(y[m]=[c],me(x,m)&&(x[m]=y[m])):(m.value=[c],t.k&&(y[t.k]=m.value))}else M?(y[m]=h,me(x,m)&&(x[m]=h)):D&&(m.value=h,t.k&&(y[t.k]=h))};h?(O.id=-1,rn(O,o)):O()}}}let hr=!1;const qo=t=>/svg/.test(t.namespaceURI)&&t.tagName!=="foreignObject",Ko=t=>t.nodeType===8;function Yp(t){const{mt:n,p:o,o:{patchProp:i,createText:l,nextSibling:c,parentNode:h,remove:f,insert:m,createComment:g}}=t,y=(C,R)=>{if(!R.hasChildNodes()){o(null,C,R),ss(),R._vnode=C;return}hr=!1,x(R.firstChild,C,null,null,null),ss(),R._vnode=C,hr&&console.error("Hydration completed but contains mismatches.")},x=(C,R,V,E,z,W=!1)=>{const it=Ko(C)&&C.data==="[",Y=()=>S(C,R,V,E,z,it),{type:ot,ref:ct,shapeFlag:gt,patchFlag:at}=R;let bt=C.nodeType;R.el=C,at===-2&&(W=!1,R.dynamicChildren=null);let Lt=null;switch(ot){case _i:bt!==3?R.children===""?(m(R.el=l(""),h(C),C),Lt=C):Lt=Y():(C.data!==R.children&&(hr=!0,C.data=R.children),Lt=c(C));break;case dn:bt!==8||it?Lt=Y():Lt=c(C);break;case eo:if(it&&(C=c(C),bt=C.nodeType),bt===1||bt===3){Lt=C;const Et=!R.children.length;for(let Ct=0;Ct{W=W||!!R.dynamicChildren;const{type:it,props:Y,patchFlag:ot,shapeFlag:ct,dirs:gt}=R,at=it==="input"&>||it==="option";if(at||ot!==-1){if(gt&&jn(R,null,V,"created"),Y)if(at||!W||ot&48)for(const Lt in Y)(at&&Lt.endsWith("value")||_o(Lt)&&!Qi(Lt))&&i(C,Lt,null,Y[Lt],!1,void 0,V);else Y.onClick&&i(C,"onClick",null,Y.onClick,!1,void 0,V);let bt;if((bt=Y&&Y.onVnodeBeforeMount)&&bn(bt,V,R),gt&&jn(R,null,V,"beforeMount"),((bt=Y&&Y.onVnodeMounted)||gt)&&ah(()=>{bt&&bn(bt,V,R),gt&&jn(R,null,V,"mounted")},E),ct&16&&!(Y&&(Y.innerHTML||Y.textContent))){let Lt=D(C.firstChild,R,C,V,E,z,W);for(;Lt;){hr=!0;const Et=Lt;Lt=Lt.nextSibling,f(Et)}}else ct&8&&C.textContent!==R.children&&(hr=!0,C.textContent=R.children)}return C.nextSibling},D=(C,R,V,E,z,W,it)=>{it=it||!!R.dynamicChildren;const Y=R.children,ot=Y.length;for(let ct=0;ct{const{slotScopeIds:it}=R;it&&(z=z?z.concat(it):it);const Y=h(C),ot=D(c(C),R,Y,V,E,z,W);return ot&&Ko(ot)&&ot.data==="]"?c(R.anchor=ot):(hr=!0,m(R.anchor=g("]"),Y,ot),ot)},S=(C,R,V,E,z,W)=>{if(hr=!0,R.el=null,W){const ot=U(C);for(;;){const ct=c(C);if(ct&&ct!==ot)f(ct);else break}}const it=c(C),Y=h(C);return f(C),o(null,R,Y,it,V,E,qo(Y),z),it},U=C=>{let R=0;for(;C;)if(C=c(C),C&&Ko(C)&&(C.data==="["&&R++,C.data==="]")){if(R===0)return c(C);R--}return C};return[y,x]}const rn=ah;function Xp(t){return Qp(t,Yp)}function Qp(t,n){const o=ba();o.__VUE__=!0;const{insert:i,remove:l,patchProp:c,createElement:h,createText:f,createComment:m,setText:g,setElementText:y,parentNode:x,nextSibling:M,setScopeId:D=Tn,insertStaticContent:O}=t,S=(H,K,J,ht=null,yt=null,xt=null,Ot=!1,B=null,b=!!K.dynamicChildren)=>{if(H===K)return;H&&!Hr(H,K)&&(ht=dt(H),$t(H,yt,xt,!0),H=null),K.patchFlag===-2&&(b=!1,K.dynamicChildren=null);const{type:k,ref:T,shapeFlag:I}=K;switch(k){case _i:U(H,K,J,ht);break;case dn:C(H,K,J,ht);break;case eo:H==null&&R(K,J,ht,Ot);break;case Gt:at(H,K,J,ht,yt,xt,Ot,B,b);break;default:I&1?z(H,K,J,ht,yt,xt,Ot,B,b):I&6?bt(H,K,J,ht,yt,xt,Ot,B,b):(I&64||I&128)&&k.process(H,K,J,ht,yt,xt,Ot,B,b,St)}T!=null&&yt&&cs(T,H&&H.ref,xt,K||H,!K)},U=(H,K,J,ht)=>{if(H==null)i(K.el=f(K.children),J,ht);else{const yt=K.el=H.el;K.children!==H.children&&g(yt,K.children)}},C=(H,K,J,ht)=>{H==null?i(K.el=m(K.children||""),J,ht):K.el=H.el},R=(H,K,J,ht)=>{[H.el,H.anchor]=O(H.children,K,J,ht,H.el,H.anchor)},V=({el:H,anchor:K},J,ht)=>{let yt;for(;H&&H!==K;)yt=M(H),i(H,J,ht),H=yt;i(K,J,ht)},E=({el:H,anchor:K})=>{let J;for(;H&&H!==K;)J=M(H),l(H),H=J;l(K)},z=(H,K,J,ht,yt,xt,Ot,B,b)=>{Ot=Ot||K.type==="svg",H==null?W(K,J,ht,yt,xt,Ot,B,b):ot(H,K,yt,xt,Ot,B,b)},W=(H,K,J,ht,yt,xt,Ot,B)=>{let b,k;const{type:T,props:I,shapeFlag:N,transition:Q,dirs:nt}=H;if(b=H.el=h(H.type,xt,I&&I.is,I),N&8?y(b,H.children):N&16&&Y(H.children,b,null,ht,yt,xt&&T!=="foreignObject",Ot,B),nt&&jn(H,null,ht,"created"),it(b,H,H.scopeId,Ot,ht),I){for(const Tt in I)Tt!=="value"&&!Qi(Tt)&&c(b,Tt,null,I[Tt],xt,H.children,ht,yt,Nt);"value"in I&&c(b,"value",null,I.value),(k=I.onVnodeBeforeMount)&&bn(k,ht,H)}nt&&jn(H,null,ht,"beforeMount");const vt=(!yt||yt&&!yt.pendingBranch)&&Q&&!Q.persisted;vt&&Q.beforeEnter(b),i(b,K,J),((k=I&&I.onVnodeMounted)||vt||nt)&&rn(()=>{k&&bn(k,ht,H),vt&&Q.enter(b),nt&&jn(H,null,ht,"mounted")},yt)},it=(H,K,J,ht,yt)=>{if(J&&D(H,J),ht)for(let xt=0;xt{for(let k=b;k{const B=K.el=H.el;let{patchFlag:b,dynamicChildren:k,dirs:T}=K;b|=H.patchFlag&16;const I=H.props||Ee,N=K.props||Ee;let Q;J&&Dr(J,!1),(Q=N.onVnodeBeforeUpdate)&&bn(Q,J,K,H),T&&jn(K,H,J,"beforeUpdate"),J&&Dr(J,!0);const nt=yt&&K.type!=="foreignObject";if(k?ct(H.dynamicChildren,k,B,J,ht,nt,xt):Ot||wt(H,K,B,null,J,ht,nt,xt,!1),b>0){if(b&16)gt(B,K,I,N,J,ht,yt);else if(b&2&&I.class!==N.class&&c(B,"class",null,N.class,yt),b&4&&c(B,"style",I.style,N.style,yt),b&8){const vt=K.dynamicProps;for(let Tt=0;Tt{Q&&bn(Q,J,K,H),T&&jn(K,H,J,"updated")},ht)},ct=(H,K,J,ht,yt,xt,Ot)=>{for(let B=0;B{if(J!==ht){if(J!==Ee)for(const B in J)!Qi(B)&&!(B in ht)&&c(H,B,J[B],null,Ot,K.children,yt,xt,Nt);for(const B in ht){if(Qi(B))continue;const b=ht[B],k=J[B];b!==k&&B!=="value"&&c(H,B,k,b,Ot,K.children,yt,xt,Nt)}"value"in ht&&c(H,"value",J.value,ht.value)}},at=(H,K,J,ht,yt,xt,Ot,B,b)=>{const k=K.el=H?H.el:f(""),T=K.anchor=H?H.anchor:f("");let{patchFlag:I,dynamicChildren:N,slotScopeIds:Q}=K;Q&&(B=B?B.concat(Q):Q),H==null?(i(k,J,ht),i(T,J,ht),Y(K.children,J,T,yt,xt,Ot,B,b)):I>0&&I&64&&N&&H.dynamicChildren?(ct(H.dynamicChildren,N,J,yt,xt,Ot,B),(K.key!=null||yt&&K===yt.subTree)&&Ch(H,K,!0)):wt(H,K,J,T,yt,xt,Ot,B,b)},bt=(H,K,J,ht,yt,xt,Ot,B,b)=>{K.slotScopeIds=B,H==null?K.shapeFlag&512?yt.ctx.activate(K,J,ht,Ot,b):Lt(K,J,ht,yt,xt,Ot,b):Et(H,K,b)},Lt=(H,K,J,ht,yt,xt,Ot)=>{const B=H.component=lm(H,ht,yt);if(Ls(H)&&(B.ctx.renderer=St),cm(B),B.asyncDep){if(yt&&yt.registerDep(B,Ct),!H.el){const b=B.subTree=rt(dn);C(null,b,K,J)}return}Ct(B,H,K,J,yt,xt,Ot)},Et=(H,K,J)=>{const ht=K.component=H.component;if(bp(H,K,J))if(ht.asyncDep&&!ht.asyncResolved){Ft(ht,K,J);return}else ht.next=K,pp(ht.update),ht.update();else K.el=H.el,ht.vnode=K},Ct=(H,K,J,ht,yt,xt,Ot)=>{const B=()=>{if(H.isMounted){let{next:T,bu:I,u:N,parent:Q,vnode:nt}=H,vt=T,Tt;Dr(H,!1),T?(T.el=nt.el,Ft(H,T,Ot)):T=nt,I&&Wo(I),(Tt=T.props&&T.props.onVnodeBeforeUpdate)&&bn(Tt,Q,T,nt),Dr(H,!0);const jt=na(H),Wt=H.subTree;H.subTree=jt,S(Wt,jt,x(Wt.el),dt(Wt),H,yt,xt),T.el=jt.el,vt===null&&wp(H,jt.el),N&&rn(N,yt),(Tt=T.props&&T.props.onVnodeUpdated)&&rn(()=>bn(Tt,Q,T,nt),yt)}else{let T;const{el:I,props:N}=K,{bm:Q,m:nt,parent:vt}=H,Tt=mi(K);if(Dr(H,!1),Q&&Wo(Q),!Tt&&(T=N&&N.onVnodeBeforeMount)&&bn(T,vt,K),Dr(H,!0),I&&le){const jt=()=>{H.subTree=na(H),le(I,H.subTree,H,yt,null)};Tt?K.type.__asyncLoader().then(()=>!H.isUnmounted&&jt()):jt()}else{const jt=H.subTree=na(H);S(null,jt,J,ht,H,yt,xt),K.el=jt.el}if(nt&&rn(nt,yt),!Tt&&(T=N&&N.onVnodeMounted)){const jt=K;rn(()=>bn(T,vt,jt),yt)}(K.shapeFlag&256||vt&&mi(vt.vnode)&&vt.vnode.shapeFlag&256)&&H.a&&rn(H.a,yt),H.isMounted=!0,K=J=ht=null}},b=H.effect=new Ja(B,()=>rl(k),H.scope),k=H.update=()=>b.run();k.id=H.uid,Dr(H,!0),k()},Ft=(H,K,J)=>{K.component=H;const ht=H.vnode.props;H.vnode=K,H.next=null,qp(H,K.props,ht,J),Jp(H,K.children,J),ki(),cc(),Li()},wt=(H,K,J,ht,yt,xt,Ot,B,b=!1)=>{const k=H&&H.children,T=H?H.shapeFlag:0,I=K.children,{patchFlag:N,shapeFlag:Q}=K;if(N>0){if(N&128){Dt(k,I,J,ht,yt,xt,Ot,B,b);return}else if(N&256){de(k,I,J,ht,yt,xt,Ot,B,b);return}}Q&8?(T&16&&Nt(k,yt,xt),I!==k&&y(J,I)):T&16?Q&16?Dt(k,I,J,ht,yt,xt,Ot,B,b):Nt(k,yt,xt,!0):(T&8&&y(J,""),Q&16&&Y(I,J,ht,yt,xt,Ot,B,b))},de=(H,K,J,ht,yt,xt,Ot,B,b)=>{H=H||di,K=K||di;const k=H.length,T=K.length,I=Math.min(k,T);let N;for(N=0;NT?Nt(H,yt,xt,!0,!1,I):Y(K,J,ht,yt,xt,Ot,B,b,I)},Dt=(H,K,J,ht,yt,xt,Ot,B,b)=>{let k=0;const T=K.length;let I=H.length-1,N=T-1;for(;k<=I&&k<=N;){const Q=H[k],nt=K[k]=b?_r(K[k]):Pn(K[k]);if(Hr(Q,nt))S(Q,nt,J,null,yt,xt,Ot,B,b);else break;k++}for(;k<=I&&k<=N;){const Q=H[I],nt=K[N]=b?_r(K[N]):Pn(K[N]);if(Hr(Q,nt))S(Q,nt,J,null,yt,xt,Ot,B,b);else break;I--,N--}if(k>I){if(k<=N){const Q=N+1,nt=QN)for(;k<=I;)$t(H[k],yt,xt,!0),k++;else{const Q=k,nt=k,vt=new Map;for(k=nt;k<=N;k++){const ue=K[k]=b?_r(K[k]):Pn(K[k]);ue.key!=null&&vt.set(ue.key,k)}let Tt,jt=0;const Wt=N-nt+1;let Qt=!1,ve=0;const Yt=new Array(Wt);for(k=0;k=Wt){$t(ue,yt,xt,!0);continue}let be;if(ue.key!=null)be=vt.get(ue.key);else for(Tt=nt;Tt<=N;Tt++)if(Yt[Tt-nt]===0&&Hr(ue,K[Tt])){be=Tt;break}be===void 0?$t(ue,yt,xt,!0):(Yt[be-nt]=k+1,be>=ve?ve=be:Qt=!0,S(ue,K[be],J,null,yt,xt,Ot,B,b),jt++)}const ye=Qt?tm(Yt):di;for(Tt=ye.length-1,k=Wt-1;k>=0;k--){const ue=nt+k,be=K[ue],Re=ue+1{const{el:xt,type:Ot,transition:B,children:b,shapeFlag:k}=H;if(k&6){Bt(H.component.subTree,K,J,ht);return}if(k&128){H.suspense.move(K,J,ht);return}if(k&64){Ot.move(H,K,J,St);return}if(Ot===Gt){i(xt,K,J);for(let I=0;IB.enter(xt),yt);else{const{leave:I,delayLeave:N,afterLeave:Q}=B,nt=()=>i(xt,K,J),vt=()=>{I(xt,()=>{nt(),Q&&Q()})};N?N(xt,nt,vt):vt()}else i(xt,K,J)},$t=(H,K,J,ht=!1,yt=!1)=>{const{type:xt,props:Ot,ref:B,children:b,dynamicChildren:k,shapeFlag:T,patchFlag:I,dirs:N}=H;if(B!=null&&cs(B,null,J,H,!0),T&256){K.ctx.deactivate(H);return}const Q=T&1&&N,nt=!mi(H);let vt;if(nt&&(vt=Ot&&Ot.onVnodeBeforeUnmount)&&bn(vt,K,H),T&6)ae(H.component,J,ht);else{if(T&128){H.suspense.unmount(J,ht);return}Q&&jn(H,null,K,"beforeUnmount"),T&64?H.type.remove(H,K,J,yt,St,ht):k&&(xt!==Gt||I>0&&I&64)?Nt(k,K,J,!1,!0):(xt===Gt&&I&384||!yt&&T&16)&&Nt(b,K,J),ht&&Me(H)}(nt&&(vt=Ot&&Ot.onVnodeUnmounted)||Q)&&rn(()=>{vt&&bn(vt,K,H),Q&&jn(H,null,K,"unmounted")},J)},Me=H=>{const{type:K,el:J,anchor:ht,transition:yt}=H;if(K===Gt){fe(J,ht);return}if(K===eo){E(H);return}const xt=()=>{l(J),yt&&!yt.persisted&&yt.afterLeave&&yt.afterLeave()};if(H.shapeFlag&1&&yt&&!yt.persisted){const{leave:Ot,delayLeave:B}=yt,b=()=>Ot(J,xt);B?B(H.el,xt,b):b()}else xt()},fe=(H,K)=>{let J;for(;H!==K;)J=M(H),l(H),H=J;l(K)},ae=(H,K,J)=>{const{bum:ht,scope:yt,update:xt,subTree:Ot,um:B}=H;ht&&Wo(ht),yt.stop(),xt&&(xt.active=!1,$t(Ot,H,K,J)),B&&rn(B,K),rn(()=>{H.isUnmounted=!0},K),K&&K.pendingBranch&&!K.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===K.pendingId&&(K.deps--,K.deps===0&&K.resolve())},Nt=(H,K,J,ht=!1,yt=!1,xt=0)=>{for(let Ot=xt;OtH.shapeFlag&6?dt(H.component.subTree):H.shapeFlag&128?H.suspense.next():M(H.anchor||H.el),Pt=(H,K,J)=>{H==null?K._vnode&&$t(K._vnode,null,null,!0):S(K._vnode||null,H,K,null,null,null,J),cc(),ss(),K._vnode=H},St={p:S,um:$t,m:Bt,r:Me,mt:Lt,mc:Y,pc:wt,pbc:ct,n:dt,o:t};let zt,le;return n&&([zt,le]=n(St)),{render:Pt,hydrate:zt,createApp:Up(Pt,zt)}}function Dr({effect:t,update:n},o){t.allowRecurse=n.allowRecurse=o}function Ch(t,n,o=!1){const i=t.children,l=n.children;if(Kt(i)&&Kt(l))for(let c=0;c>1,t[o[f]]0&&(n[i]=o[c-1]),o[c]=i)}}for(c=o.length,h=o[c-1];c-- >0;)o[c]=h,h=n[h];return o}const em=t=>t.__isTeleport,Gt=Symbol.for("v-fgt"),_i=Symbol.for("v-txt"),dn=Symbol.for("v-cmt"),eo=Symbol.for("v-stc"),no=[];let En=null;function q(t=!1){no.push(En=t?null:[])}function nm(){no.pop(),En=no[no.length-1]||null}let ho=1;function wc(t){ho+=t}function Ph(t){return t.dynamicChildren=ho>0?En||di:null,nm(),ho>0&&En&&En.push(t),t}function st(t,n,o,i,l,c){return Ph(et(t,n,o,i,l,c,!0))}function At(t,n,o,i,l){return Ph(rt(t,n,o,i,l,!0))}function us(t){return t?t.__v_isVNode===!0:!1}function Hr(t,n){return t.type===n.type&&t.key===n.key}const Cs="__vInternal",Sh=({key:t})=>t??null,Yo=({ref:t,ref_key:n,ref_for:o})=>(typeof t=="number"&&(t=""+t),t!=null?De(t)||Ie(t)||oe(t)?{i:Ue,r:t,k:n,f:!!o}:t:null);function et(t,n=null,o=null,i=0,l=null,c=t===Gt?0:1,h=!1,f=!1){const m={__v_isVNode:!0,__v_skip:!0,type:t,props:n,key:n&&Sh(n),ref:n&&Yo(n),scopeId:ks,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:i,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Ue};return f?(cl(m,o),c&128&&t.normalize(m)):o&&(m.shapeFlag|=De(o)?8:16),ho>0&&!h&&En&&(m.patchFlag>0||c&6)&&m.patchFlag!==32&&En.push(m),m}const rt=rm;function rm(t,n=null,o=null,i=0,l=null,c=!1){if((!t||t===gh)&&(t=dn),us(t)){const f=kr(t,n,!0);return o&&cl(f,o),ho>0&&!c&&En&&(f.shapeFlag&6?En[En.indexOf(t)]=f:En.push(f)),f.patchFlag|=-2,f}if(fm(t)&&(t=t.__vccOpts),n){n=im(n);let{class:f,style:m}=n;f&&!De(f)&&(n.class=hn(f)),Oe(m)&&(Ju(m)&&!Kt(m)&&(m=je({},m)),n.style=$r(m))}const h=De(t)?1:xp(t)?128:em(t)?64:Oe(t)?4:oe(t)?2:0;return et(t,n,o,i,l,h,c,!0)}function im(t){return t?Ju(t)||Cs in t?je({},t):t:null}function kr(t,n,o=!1){const{props:i,ref:l,patchFlag:c,children:h}=t,f=n?om(i||{},n):i;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:f,key:f&&Sh(f),ref:n&&n.ref?o&&l?Kt(l)?l.concat(Yo(n)):[l,Yo(n)]:Yo(n):l,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:h,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:n&&t.type!==Gt?c===-1?16:c|16:c,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&kr(t.ssContent),ssFallback:t.ssFallback&&kr(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function ie(t=" ",n=0){return rt(_i,null,t,n)}function Eh(t,n){const o=rt(eo,null,t);return o.staticCount=n,o}function Vt(t="",n=!1){return n?(q(),At(dn,null,t)):rt(dn,null,t)}function Pn(t){return t==null||typeof t=="boolean"?rt(dn):Kt(t)?rt(Gt,null,t.slice()):typeof t=="object"?_r(t):rt(_i,null,String(t))}function _r(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:kr(t)}function cl(t,n){let o=0;const{shapeFlag:i}=t;if(n==null)n=null;else if(Kt(n))o=16;else if(typeof n=="object")if(i&65){const l=n.default;l&&(l._c&&(l._d=!1),cl(t,l()),l._c&&(l._d=!0));return}else{o=32;const l=n._;!l&&!(Cs in n)?n._ctx=Ue:l===3&&Ue&&(Ue.slots._===1?n._=1:(n._=2,t.patchFlag|=1024))}else oe(n)?(n={default:n,_ctx:Ue},o=32):(n=String(n),i&64?(o=16,n=[ie(n)]):o=8);t.children=n,t.shapeFlag|=o}function om(...t){const n={};for(let o=0;oHe||Ue;let ul,li,xc="__VUE_INSTANCE_SETTERS__";(li=ba()[xc])||(li=ba()[xc]=[]),li.push(t=>He=t),ul=t=>{li.length>1?li.forEach(n=>n(t)):li[0](t)};const yi=t=>{ul(t),t.scope.on()},Gr=()=>{He&&He.scope.off(),ul(null)};function Oh(t){return t.vnode.shapeFlag&4}let fo=!1;function cm(t,n=!1){fo=n;const{props:o,children:i}=t.vnode,l=Oh(t);Zp(t,o,l,n),Wp(t,i);const c=l?um(t,n):void 0;return fo=!1,c}function um(t,n){const o=t.type;t.accessCache=Object.create(null),t.proxy=vs(new Proxy(t.ctx,Ip));const{setup:i}=o;if(i){const l=t.setupContext=i.length>1?Ah(t):null;yi(t),ki();const c=wr(i,t,0,[t.props,l]);if(Li(),Gr(),Tu(c)){if(c.then(Gr,Gr),n)return c.then(h=>{kc(t,h,n)}).catch(h=>{bs(h,t,0)});t.asyncDep=c}else kc(t,c,n)}else Rh(t,n)}function kc(t,n,o){oe(n)?t.type.__ssrInlineRender?t.ssrRender=n:t.render=n:Oe(n)&&(t.setupState=th(n)),Rh(t,o)}let Lc;function Rh(t,n,o){const i=t.type;if(!t.render){if(!n&&Lc&&!i.render){const l=i.template||al(t).template;if(l){const{isCustomElement:c,compilerOptions:h}=t.appContext.config,{delimiters:f,compilerOptions:m}=i,g=je(je({isCustomElement:c,delimiters:f},h),m);i.render=Lc(l,g)}}t.render=i.render||Tn}yi(t),ki(),jp(t),Li(),Gr()}function hm(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(n,o){return sn(t,"get","$attrs"),n[o]}}))}function Ah(t){const n=o=>{t.exposed=o||{}};return{get attrs(){return hm(t)},slots:t.slots,emit:t.emit,expose:n}}function Ps(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(th(vs(t.exposed)),{get(n,o){if(o in n)return n[o];if(o in to)return to[o](t)},has(n,o){return o in n||o in to}}))}function dm(t,n=!0){return oe(t)?t.displayName||t.name:t.name||n&&t.__name}function fm(t){return oe(t)&&"__vccOpts"in t}const _e=(t,n)=>hp(t,n,fo);function hl(t,n,o){const i=arguments.length;return i===2?Oe(n)&&!Kt(n)?us(n)?rt(t,null,[n]):rt(t,n):rt(t,null,n):(i>3?o=Array.prototype.slice.call(arguments,2):i===3&&us(o)&&(o=[o]),rt(t,n,o))}const pm=Symbol.for("v-scx"),mm=()=>xn(pm),gm="3.3.4",_m="http://www.w3.org/2000/svg",Fr=typeof document<"u"?document:null,Mc=Fr&&Fr.createElement("template"),ym={insert:(t,n,o)=>{n.insertBefore(t,o||null)},remove:t=>{const n=t.parentNode;n&&n.removeChild(t)},createElement:(t,n,o,i)=>{const l=n?Fr.createElementNS(_m,t):Fr.createElement(t,o?{is:o}:void 0);return t==="select"&&i&&i.multiple!=null&&l.setAttribute("multiple",i.multiple),l},createText:t=>Fr.createTextNode(t),createComment:t=>Fr.createComment(t),setText:(t,n)=>{t.nodeValue=n},setElementText:(t,n)=>{t.textContent=n},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Fr.querySelector(t),setScopeId(t,n){t.setAttribute(n,"")},insertStaticContent(t,n,o,i,l,c){const h=o?o.previousSibling:n.lastChild;if(l&&(l===c||l.nextSibling))for(;n.insertBefore(l.cloneNode(!0),o),!(l===c||!(l=l.nextSibling)););else{Mc.innerHTML=i?`${t}`:t;const f=Mc.content;if(i){const m=f.firstChild;for(;m.firstChild;)f.appendChild(m.firstChild);f.removeChild(m)}n.insertBefore(f,o)}return[h?h.nextSibling:n.firstChild,o?o.previousSibling:n.lastChild]}};function vm(t,n,o){const i=t._vtc;i&&(n=(n?[n,...i]:[...i]).join(" ")),n==null?t.removeAttribute("class"):o?t.setAttribute("class",n):t.className=n}function bm(t,n,o){const i=t.style,l=De(o);if(o&&!l){if(n&&!De(n))for(const c in n)o[c]==null&&Ra(i,c,"");for(const c in o)Ra(i,c,o[c])}else{const c=i.display;l?n!==o&&(i.cssText=o):n&&t.removeAttribute("style"),"_vod"in t&&(i.display=c)}}const Cc=/\s*!important$/;function Ra(t,n,o){if(Kt(o))o.forEach(i=>Ra(t,n,i));else if(o==null&&(o=""),n.startsWith("--"))t.setProperty(n,o);else{const i=wm(t,n);Cc.test(o)?t.setProperty(xi(i),o.replace(Cc,""),"important"):t[i]=o}}const Pc=["Webkit","Moz","ms"],oa={};function wm(t,n){const o=oa[n];if(o)return o;let i=Fn(n);if(i!=="filter"&&i in t)return oa[n]=i;i=_s(i);for(let l=0;lsa||(Pm.then(()=>sa=0),sa=Date.now());function Em(t,n){const o=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=o.attached)return;wn(Tm(i,o.value),n,5,[i])};return o.value=t,o.attached=Sm(),o}function Tm(t,n){if(Kt(n)){const o=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{o.call(t),t._stopped=!0},n.map(i=>l=>!l._stopped&&i&&i(l))}else return n}const Tc=/^on[a-z]/,Om=(t,n,o,i,l=!1,c,h,f,m)=>{n==="class"?vm(t,i,l):n==="style"?bm(t,o,i):_o(n)?Ga(n)||Mm(t,n,o,i,h):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):Rm(t,n,i,l))?km(t,n,i,c,h,f,m):(n==="true-value"?t._trueValue=i:n==="false-value"&&(t._falseValue=i),xm(t,n,i,l))};function Rm(t,n,o,i){return i?!!(n==="innerHTML"||n==="textContent"||n in t&&Tc.test(n)&&oe(o)):n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&t.tagName==="INPUT"||n==="type"&&t.tagName==="TEXTAREA"||Tc.test(n)&&De(o)?!1:n in t}const dr="transition",Zi="animation",dl=(t,{slots:n})=>hl(Cp,Am(t),n);dl.displayName="Transition";const Bh={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};dl.props=je({},uh,Bh);const zr=(t,n=[])=>{Kt(t)?t.forEach(o=>o(...n)):t&&t(...n)},Oc=t=>t?Kt(t)?t.some(n=>n.length>1):t.length>1:!1;function Am(t){const n={};for(const at in t)at in Bh||(n[at]=t[at]);if(t.css===!1)return n;const{name:o="v",type:i,duration:l,enterFromClass:c=`${o}-enter-from`,enterActiveClass:h=`${o}-enter-active`,enterToClass:f=`${o}-enter-to`,appearFromClass:m=c,appearActiveClass:g=h,appearToClass:y=f,leaveFromClass:x=`${o}-leave-from`,leaveActiveClass:M=`${o}-leave-active`,leaveToClass:D=`${o}-leave-to`}=t,O=Bm(l),S=O&&O[0],U=O&&O[1],{onBeforeEnter:C,onEnter:R,onEnterCancelled:V,onLeave:E,onLeaveCancelled:z,onBeforeAppear:W=C,onAppear:it=R,onAppearCancelled:Y=V}=n,ot=(at,bt,Lt)=>{jr(at,bt?y:f),jr(at,bt?g:h),Lt&&Lt()},ct=(at,bt)=>{at._isLeaving=!1,jr(at,x),jr(at,D),jr(at,M),bt&&bt()},gt=at=>(bt,Lt)=>{const Et=at?it:R,Ct=()=>ot(bt,at,Lt);zr(Et,[bt,Ct]),Rc(()=>{jr(bt,at?m:c),fr(bt,at?y:f),Oc(Et)||Ac(bt,i,S,Ct)})};return je(n,{onBeforeEnter(at){zr(C,[at]),fr(at,c),fr(at,h)},onBeforeAppear(at){zr(W,[at]),fr(at,m),fr(at,g)},onEnter:gt(!1),onAppear:gt(!0),onLeave(at,bt){at._isLeaving=!0;const Lt=()=>ct(at,bt);fr(at,x),zm(),fr(at,M),Rc(()=>{at._isLeaving&&(jr(at,x),fr(at,D),Oc(E)||Ac(at,i,U,Lt))}),zr(E,[at,Lt])},onEnterCancelled(at){ot(at,!1),zr(V,[at])},onAppearCancelled(at){ot(at,!0),zr(Y,[at])},onLeaveCancelled(at){ct(at),zr(z,[at])}})}function Bm(t){if(t==null)return null;if(Oe(t))return[aa(t.enter),aa(t.leave)];{const n=aa(t);return[n,n]}}function aa(t){return xf(t)}function fr(t,n){n.split(/\s+/).forEach(o=>o&&t.classList.add(o)),(t._vtc||(t._vtc=new Set)).add(n)}function jr(t,n){n.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const{_vtc:o}=t;o&&(o.delete(n),o.size||(t._vtc=void 0))}function Rc(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Im=0;function Ac(t,n,o,i){const l=t._endId=++Im,c=()=>{l===t._endId&&i()};if(o)return setTimeout(c,o);const{type:h,timeout:f,propCount:m}=Dm(t,n);if(!h)return i();const g=h+"end";let y=0;const x=()=>{t.removeEventListener(g,M),c()},M=D=>{D.target===t&&++y>=m&&x()};setTimeout(()=>{y(o[O]||"").split(", "),l=i(`${dr}Delay`),c=i(`${dr}Duration`),h=Bc(l,c),f=i(`${Zi}Delay`),m=i(`${Zi}Duration`),g=Bc(f,m);let y=null,x=0,M=0;n===dr?h>0&&(y=dr,x=h,M=c.length):n===Zi?g>0&&(y=Zi,x=g,M=m.length):(x=Math.max(h,g),y=x>0?h>g?dr:Zi:null,M=y?y===dr?c.length:m.length:0);const D=y===dr&&/\b(transform|all)(,|$)/.test(i(`${dr}Property`).toString());return{type:y,timeout:x,propCount:M,hasTransform:D}}function Bc(t,n){for(;t.lengthIc(o)+Ic(t[i])))}function Ic(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function zm(){return document.body.offsetHeight}const Dc=t=>{const n=t.props["onUpdate:modelValue"]||!1;return Kt(n)?o=>Wo(n,o):n};function jm(t){t.target.composing=!0}function zc(t){const n=t.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const Nm={created(t,{modifiers:{lazy:n,trim:o,number:i}},l){t._assign=Dc(l);const c=i||l.props&&l.props.type==="number";ui(t,n?"change":"input",h=>{if(h.target.composing)return;let f=t.value;o&&(f=f.trim()),c&&(f=va(f)),t._assign(f)}),o&&ui(t,"change",()=>{t.value=t.value.trim()}),n||(ui(t,"compositionstart",jm),ui(t,"compositionend",zc),ui(t,"change",zc))},mounted(t,{value:n}){t.value=n??""},beforeUpdate(t,{value:n,modifiers:{lazy:o,trim:i,number:l}},c){if(t._assign=Dc(c),t.composing||document.activeElement===t&&t.type!=="range"&&(o||i&&t.value.trim()===n||(l||t.type==="number")&&va(t.value)===n))return;const h=n??"";t.value!==h&&(t.value=h)}},Hm=["ctrl","shift","alt","meta"],Fm={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,n)=>Hm.some(o=>t[`${o}Key`]&&!n.includes(o))},hs=(t,n)=>(o,...i)=>{for(let l=0;l{qi(t,!1)}):qi(t,n))},beforeUnmount(t,{value:n}){qi(t,n)}};function qi(t,n){t.style.display=n?t._vod:"none"}const Vm=je({patchProp:Om},ym);let la,jc=!1;function $m(){return la=jc?la:Xp(Vm),jc=!0,la}const Um=(...t)=>{const n=$m().createApp(...t),{mount:o}=n;return n.mount=i=>{const l=Gm(i);if(l)return o(l,!0,l instanceof SVGElement)},n};function Gm(t){return De(t)?document.querySelector(t):t}function Aa(t,n={},o){for(const i in t){const l=t[i],c=o?`${o}:${i}`:i;typeof l=="object"&&l!==null?Aa(l,n,c):typeof l=="function"&&(n[c]=l)}return n}const Zm={run:t=>t()},qm=()=>Zm,Dh=typeof console.createTask<"u"?console.createTask:qm;function Km(t,n){const o=n.shift(),i=Dh(o);return t.reduce((l,c)=>l.then(()=>i.run(()=>c(...n))),Promise.resolve())}function Wm(t,n){const o=n.shift(),i=Dh(o);return Promise.all(t.map(l=>i.run(()=>l(...n))))}function ca(t,n){for(const o of[...t])o(n)}class Jm{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(n,o,i={}){if(!n||typeof o!="function")return()=>{};const l=n;let c;for(;this._deprecatedHooks[n];)c=this._deprecatedHooks[n],n=c.to;if(c&&!i.allowDeprecated){let h=c.message;h||(h=`${l} hook has been deprecated`+(c.to?`, please use ${c.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(h)||(console.warn(h),this._deprecatedMessages.add(h))}if(!o.name)try{Object.defineProperty(o,"name",{get:()=>"_"+n.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[n]=this._hooks[n]||[],this._hooks[n].push(o),()=>{o&&(this.removeHook(n,o),o=void 0)}}hookOnce(n,o){let i,l=(...c)=>(typeof i=="function"&&i(),i=void 0,l=void 0,o(...c));return i=this.hook(n,l),i}removeHook(n,o){if(this._hooks[n]){const i=this._hooks[n].indexOf(o);i!==-1&&this._hooks[n].splice(i,1),this._hooks[n].length===0&&delete this._hooks[n]}}deprecateHook(n,o){this._deprecatedHooks[n]=typeof o=="string"?{to:o}:o;const i=this._hooks[n]||[];delete this._hooks[n];for(const l of i)this.hook(n,l)}deprecateHooks(n){Object.assign(this._deprecatedHooks,n);for(const o in n)this.deprecateHook(o,n[o])}addHooks(n){const o=Aa(n),i=Object.keys(o).map(l=>this.hook(l,o[l]));return()=>{for(const l of i.splice(0,i.length))l()}}removeHooks(n){const o=Aa(n);for(const i in o)this.removeHook(i,o[i])}removeAllHooks(){for(const n in this._hooks)delete this._hooks[n]}callHook(n,...o){return o.unshift(n),this.callHookWith(Km,n,...o)}callHookParallel(n,...o){return o.unshift(n),this.callHookWith(Wm,n,...o)}callHookWith(n,o,...i){const l=this._before||this._after?{name:o,args:i,context:{}}:void 0;this._before&&ca(this._before,l);const c=n(o in this._hooks?[...this._hooks[o]]:[],i);return c instanceof Promise?c.finally(()=>{this._after&&l&&ca(this._after,l)}):(this._after&&l&&ca(this._after,l),c)}beforeEach(n){return this._before=this._before||[],this._before.push(n),()=>{if(this._before!==void 0){const o=this._before.indexOf(n);o!==-1&&this._before.splice(o,1)}}}afterEach(n){return this._after=this._after||[],this._after.push(n),()=>{if(this._after!==void 0){const o=this._after.indexOf(n);o!==-1&&this._after.splice(o,1)}}}}function Ym(){return new Jm}function Xm(t){return Array.isArray(t)?t:[t]}const Qm=["title","script","style","noscript"],Xo=["base","meta","link","style","script","noscript"],tg=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],eg=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],Nc=["tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent"],ng=typeof window<"u";function zh(t){let n=9;for(let o=0;o>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Hc(t){return t._h||zh(t._d?t._d:`${t.tag}:${t.textContent||t.innerHTML||""}:${Object.entries(t.props).map(([n,o])=>`${n}:${String(o)}`).join(",")}`)}function jh(t,n){const{props:o,tag:i}=t;if(eg.includes(i))return i;if(i==="link"&&o.rel==="canonical")return"canonical";if(o.charset)return"charset";const l=["id"];i==="meta"&&l.push("name","property","http-equiv");for(const c of l)if(typeof o[c]<"u"){const h=String(o[c]);return n&&!n(h)?!1:`${i}:${c}:${h}`}return!1}function Fc(t,n){return t==null?n||null:typeof t=="function"?t(n):t}async function rg(t,n,o){const i={tag:t,props:{}};return n instanceof Promise&&(n=await n),t==="templateParams"?(i.props=n,i):["title","titleTemplate"].includes(t)?(n&&typeof n=="object"?(i.textContent=n.textContent,n.tagPriority&&(i.tagPriority=n.tagPriority)):i.textContent=n,i):typeof n=="string"?["script","noscript","style"].includes(t)?(t==="script"&&(/^(https?:)?\/\//.test(n)||n.startsWith("/"))?i.props.src=n:i.innerHTML=n,i):!1:(n.body&&(n.tagPosition="bodyClose",delete n.body),n.children&&(n.innerHTML=n.children,delete n.children),i.props=await og({...n}),Object.keys(i.props).filter(l=>Nc.includes(l)).forEach(l=>{(!["innerHTML","textContent"].includes(l)||Qm.includes(i.tag))&&(i[l]=i.props[l]),delete i.props[l]}),Nc.forEach(l=>{!i[l]&&o[l]&&(i[l]=o[l])}),["innerHTML","textContent"].forEach(l=>{if(i.tag==="script"&&typeof i[l]=="string"&&["application/ld+json","application/json"].includes(i.props.type))try{i[l]=JSON.parse(i[l])}catch{i[l]=""}typeof i[l]=="object"&&(i[l]=JSON.stringify(i[l]))}),i.props.class&&(i.props.class=ig(i.props.class)),i.props.content&&Array.isArray(i.props.content)?i.props.content.map(l=>({...i,props:{...i.props,content:l}})):i)}function ig(t){return typeof t=="object"&&!Array.isArray(t)&&(t=Object.keys(t).filter(n=>t[n])),(Array.isArray(t)?t.join(" "):t).split(" ").filter(n=>n.trim()).filter(Boolean).join(" ")}async function og(t){for(const n of Object.keys(t)){const o=n.startsWith("data-");t[n]instanceof Promise&&(t[n]=await t[n]),String(t[n])==="true"?t[n]=o?"true":"":String(t[n])==="false"&&(o?t[n]="false":delete t[n])}return t}const sg=10;async function ag(t){const n=[];return Object.entries(t.resolvedInput).filter(([o,i])=>typeof i<"u"&&tg.includes(o)).forEach(([o,i])=>{const l=Xm(i);n.push(...l.map(c=>rg(o,c,t)).flat())}),(await Promise.all(n)).flat().filter(Boolean).map((o,i)=>(o._e=t._i,t.mode&&(o._m=t.mode),o._p=(t._i<m&&m[g]||void 0,n):f=n[h],typeof f<"u"?f||"":!1}let i=t;try{i=decodeURI(t)}catch{}(i.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(h=>{const f=o(h.slice(1));typeof f=="string"&&(t=t.replace(new RegExp(`\\${h}(\\W|$)`,"g"),(m,g)=>`${f}${g}`).trim())});const c=n.separator;return t.includes(c)&&(t.endsWith(c)&&(t=t.slice(0,-c.length).trim()),t.startsWith(c)&&(t=t.slice(c.length).trim()),t=t.replace(new RegExp(`\\${c}\\s*\\${c}`,"g"),c)),t}function cg(t){const n={tag:t.tagName.toLowerCase(),props:t.getAttributeNames().reduce((o,i)=>({...o,[i]:t.getAttribute(i)}),{}),innerHTML:t.innerHTML};return n._d=jh(n),n}async function ug(t,n={}){var y;const o=n.document||t.resolvedOptions.document;if(!o)return;const i=(await t.resolveTags()).map(x=>({tag:x,id:Xo.includes(x.tag)?Hc(x):x.tag,shouldRender:!0})),l={shouldRender:!0,tags:i};if(await t.hooks.callHook("dom:beforeRender",l),!l.shouldRender)return;let c=t._dom;if(!c){c={elMap:{htmlAttrs:o.documentElement,bodyAttrs:o.body}};for(const x of["body","head"]){const M=(y=o==null?void 0:o[x])==null?void 0:y.children;for(const D of[...M].filter(O=>Xo.includes(O.tagName.toLowerCase())))c.elMap[D.getAttribute("data-hid")||Hc(cg(D))]=D}}c.pendingSideEffects={...c.sideEffects||{}},c.sideEffects={};function h(x,M,D){const O=`${x}:${M}`;c.sideEffects[O]=D,delete c.pendingSideEffects[O]}function f({id:x,$el:M,tag:D}){const O=D.tag.endsWith("Attrs");c.elMap[x]=M,O||(["textContent","innerHTML"].forEach(S=>{D[S]&&D[S]!==M[S]&&(M[S]=D[S])}),h(x,"el",()=>{c.elMap[x].remove(),delete c.elMap[x]})),Object.entries(D.props).forEach(([S,U])=>{U=String(U);const C=`attr:${S}`;if(S==="class")for(const R of(U||"").split(" ").filter(Boolean))O&&h(x,`${C}:${R}`,()=>M.classList.remove(R)),!M.classList.contains(R)&&M.classList.add(R);else M.getAttribute(S)!==U&&M.setAttribute(S,U),O&&h(x,C,()=>M.removeAttribute(S))})}const m=[],g={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const x of i){const{tag:M,shouldRender:D,id:O}=x;if(D){if(M.tag==="title"){o.title=M.textContent;continue}x.$el=x.$el||c.elMap[O],x.$el?f(x):Xo.includes(M.tag)&&m.push(x)}}for(const x of m){const M=x.tag.tagPosition||"head";x.$el=o.createElement(x.tag.tag),f(x),g[M]=g[M]||o.createDocumentFragment(),g[M].appendChild(x.$el)}for(const x of i)await t.hooks.callHook("dom:renderTag",x,o,h);g.head&&o.head.appendChild(g.head),g.bodyOpen&&o.body.insertBefore(g.bodyOpen,o.body.firstChild),g.bodyClose&&o.body.appendChild(g.bodyClose),Object.values(c.pendingSideEffects).forEach(x=>x()),t._dom=c,await t.hooks.callHook("dom:rendered",{renders:i})}async function hg(t,n={}){const o=n.delayFn||(i=>setTimeout(i,10));return t._domUpdatePromise=t._domUpdatePromise||new Promise(i=>o(async()=>{await ug(t,n),delete t._domUpdatePromise,i()}))}function dg(t){return n=>{var i,l;const o=((l=(i=n.resolvedOptions.document)==null?void 0:i.head.querySelector('script[id="unhead:payload"]'))==null?void 0:l.innerHTML)||!1;return o&&n.push(JSON.parse(o)),{mode:"client",hooks:{"entries:updated":function(c){hg(c,t)}}}}}const fg=["templateParams","htmlAttrs","bodyAttrs"],pg={hooks:{"tag:normalise":function({tag:t}){["hid","vmid","key"].forEach(i=>{t.props[i]&&(t.key=t.props[i],delete t.props[i])});const o=jh(t)||(t.key?`${t.tag}:${t.key}`:!1);o&&(t._d=o)},"tags:resolve":function(t){const n={};t.tags.forEach(i=>{const l=(i.key?`${i.tag}:${i.key}`:i._d)||i._p,c=n[l];if(c){let f=i==null?void 0:i.tagDuplicateStrategy;if(!f&&fg.includes(i.tag)&&(f="merge"),f==="merge"){const m=c.props;["class","style"].forEach(g=>{i.props[g]&&m[g]&&(g==="style"&&!m[g].endsWith(";")&&(m[g]+=";"),i.props[g]=`${m[g]} ${i.props[g]}`)}),n[l].props={...m,...i.props};return}else if(i._e===c._e){c._duped=c._duped||[],i._d=`${c._d}:${c._duped.length+1}`,c._duped.push(i);return}else if(ds(i)>ds(c))return}const h=Object.keys(i.props).length+(i.innerHTML?1:0)+(i.textContent?1:0);if(Xo.includes(i.tag)&&h===0){delete n[l];return}n[l]=i});const o=[];Object.values(n).forEach(i=>{const l=i._duped;delete i._duped,o.push(i),l&&o.push(...l)}),t.tags=o}}},mg=t=>({mode:"server",hooks:{"tags:resolve":function(n){const o={};n.tags.filter(i=>["titleTemplate","templateParams"].includes(i.tag)&&i._m==="server").forEach(i=>{o[i.tag]=i.tag==="titleTemplate"?i.textContent:i.props}),Object.keys(o).length&&n.tags.push({tag:"script",innerHTML:JSON.stringify(o),props:{type:"text/javascript",id:"unhead:payload"}})}}}),Uc=["script","link","bodyAttrs"];function Gc(t){const n={},o={};return Object.entries(t.props).forEach(([i,l])=>{i.startsWith("on")&&typeof l=="function"?o[i]=l:n[i]=l}),{props:n,eventHandlers:o}}const gg={hooks:{"ssr:render":function(t){t.tags=t.tags.map(n=>(!Uc.includes(n.tag)||!Object.entries(n.props).find(([o,i])=>o.startsWith("on")&&typeof i=="function")||(n.props=Gc(n).props),n))},"tags:resolve":function(t){t.tags=t.tags.map(n=>{if(!Uc.includes(n.tag))return n;const{props:o,eventHandlers:i}=Gc(n);return Object.keys(i).length&&(n.props=o,n._eventHandlers=i),n})},"dom:renderTag":function(t,n,o){if(!t.tag._eventHandlers)return;const i=t.tag.tag==="bodyAttrs"?n.defaultView:t.$el;Object.entries(t.tag._eventHandlers).forEach(([l,c])=>{const h=`${t.tag._d||t.tag._p}:${l}`,f=l.slice(2).toLowerCase(),m=`data-h-${f}`;if(o(t.id,h,()=>{}),t.$el.hasAttribute(m))return;const g=c;t.$el.setAttribute(m,""),i.addEventListener(f,g),t.entry&&o(t.id,h,()=>{i.removeEventListener(f,g),t.$el.removeAttribute(m)})})}}},_g=["link","style","script","noscript"],yg={hooks:{"tag:normalise":({tag:t})=>{t.key&&_g.includes(t.tag)&&(t.props["data-hid"]=t._h=zh(t.key))}}},vg={hooks:{"tags:resolve":t=>{const n=o=>{var i;return(i=t.tags.find(l=>l._d===o))==null?void 0:i._p};for(const{prefix:o,offset:i}of lg)for(const l of t.tags.filter(c=>typeof c.tagPriority=="string"&&c.tagPriority.startsWith(o))){const c=n(l.tagPriority.replace(o,""));typeof c<"u"&&(l._p=c+i)}t.tags.sort((o,i)=>o._p-i._p).sort((o,i)=>ds(o)-ds(i))}}},bg={hooks:{"tags:resolve":t=>{var c;const{tags:n}=t,o=(c=n.find(h=>h.tag==="title"))==null?void 0:c.textContent,i=n.findIndex(h=>h.tag==="templateParams"),l=i!==-1?n[i].props:{};l.separator=l.separator||"|",l.pageTitle=Ki(l.pageTitle||o||"",l);for(const h of n)if(["titleTemplate","title"].includes(h.tag)&&typeof h.textContent=="string")h.textContent=Ki(h.textContent,l);else if(h.tag==="meta"&&typeof h.props.content=="string")h.props.content=Ki(h.props.content,l);else if(h.tag==="link"&&typeof h.props.href=="string")h.props.href=Ki(h.props.href,l);else if(h.tag==="script"&&["application/json","application/ld+json"].includes(h.props.type)&&typeof h.innerHTML=="string")try{h.innerHTML=JSON.stringify(JSON.parse(h.innerHTML),(f,m)=>typeof m=="string"?Ki(m,l):m)}catch{}t.tags=n.filter(h=>h.tag!=="templateParams")}}},wg={hooks:{"tags:resolve":t=>{const{tags:n}=t;let o=n.findIndex(l=>l.tag==="titleTemplate");const i=n.findIndex(l=>l.tag==="title");if(i!==-1&&o!==-1){const l=Fc(n[o].textContent,n[i].textContent);l!==null?n[i].textContent=l||n[i].textContent:delete n[i]}else if(o!==-1){const l=Fc(n[o].textContent);l!==null&&(n[o].textContent=l,n[o].tag="title",o=-1)}o!==-1&&delete n[o],t.tags=n.filter(Boolean)}}};let Nh;function xg(t={}){const n=kg(t);return n.use(dg()),Nh=n}function Zc(t,n){return!t||t==="server"&&n||t==="client"&&!n}function kg(t={}){const n=Ym();n.addHooks(t.hooks||{}),t.document=t.document||(ng?document:void 0);const o=!t.document;t.plugins=[pg,mg,gg,yg,vg,bg,wg,...(t==null?void 0:t.plugins)||[]];const i=()=>n.callHook("entries:updated",h);let l=0,c=[];const h={resolvedOptions:t,hooks:n,headEntries(){return c},use(f){const m=typeof f=="function"?f(h):f;Zc(m.mode,o)&&n.addHooks(m.hooks||{})},push(f,m){const g={_i:l++,input:f,...m};return Zc(g.mode,o)&&(c.push(g),i()),{dispose(){c=c.filter(y=>y._i!==g._i),n.callHook("entries:updated",h),i()},patch(y){c=c.map(x=>(x._i===g._i&&(x.input=g.input=y),x)),i()}}},async resolveTags(){const f={tags:[],entries:[...c]};await n.callHook("entries:resolve",f);for(const m of f.entries){const g=m.resolvedInput||m.input;if(m.resolvedInput=await(m.transform?m.transform(g):g),m.resolvedInput)for(const y of await ag(m)){const x={tag:y,entry:m,resolvedOptions:h.resolvedOptions};await n.callHook("tag:normalise",x),f.tags.push(x.tag)}}return await n.callHook("tags:beforeResolve",f),await n.callHook("tags:resolve",f),f.tags},ssr:o};return t.plugins.forEach(f=>h.use(f)),h.hooks.callHook("init",h),h}function Lg(){return Nh}function fl(t,n={}){var o;return(o=Lg())==null?void 0:o.push(t,n)}const Mg=["title"],Cg={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Pg=et("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"},null,-1),Sg=[Pg],Eg={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Tg=et("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"},null,-1),Og=[Tg],Hh={__name:"SwitchTheme",setup(t){const n={dark:"dark",light:"light"},o=Xt(null);window!==void 0&&(localStorage.theme==="dark"||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?o.value="dark":o.value="light",Ke(o,(l,c)=>{document.documentElement.classList.add(l),document.documentElement.classList.remove(c),localStorage.setItem("theme",l)},{immediate:!0}));const i=()=>{o.value===n.dark?o.value=n.light:o.value=n.dark};return(l,c)=>(q(),st("button",{type:"button",onClick:i,title:o.value===n.light?"Change to dark mode":"Change to light mode"},[o.value===n.dark?(q(),st("svg",Cg,Sg)):(q(),st("svg",Eg,Og))],8,Mg))}},Rg=["aria-expanded"],Ag=et("span",{class:"sr-only"},"Open main menu",-1),Bg={key:0,class:"absolute top-full left-0 w-full z-50 bg-base-foreground text-base-content block shadow-md md:hidden print:hidden"},Ig={class:"font-normal container mx-auto"},Dg={class:"flex flex-col m-0 p-0 border-t border-base-border"},zg={__name:"NavbarMobile",setup(t){const{header_links:n}={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',url:null,project_token:null,copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],project_name:"My project",project_citation:null,project_url:null,project_authors:null},o=Xt(!1),i=()=>{o.value=!o.value};return(l,c)=>{const h=ft("IconClose"),f=ft("IconHamburger"),m=ft("router-link"),g=ft("ClientOnly"),y=ft("TrackerReport"),x=ft("AnimationOpacity");return q(),st(Gt,null,[et("button",{type:"button",class:"inline-flex items-center p-2 z-50 ml-3 text-sm text-primary-content rounded-lg md:hidden print:hidden",title:"Menu","aria-controls":"mobile-menu","aria-expanded":o.value,onClick:i},[Ag,o.value?(q(),At(h,{key:0})):(q(),At(f,{key:1,class:"w-6 h-6"}))],8,Rg),rt(x,null,{default:mt(()=>[o.value?(q(),st("div",Bg,[et("nav",Ig,[et("ul",Dg,[(q(!0),st(Gt,null,Le(qt(n),(M,D)=>(q(),st("li",{key:D,class:"border-b border-base-border"},[rt(m,{to:M.link,class:"text-base-content w-full p-4 pt-3 pb-3 block box-border"},{default:mt(()=>[ie(se(M.label),1)]),_:2},1032,["to"])]))),128)),et("li",null,[rt(g,null,{default:mt(()=>[rt(Hh,{class:"text-base-content w-full p-4 pt-3 pb-3 block box-border border-b border-b-base-border"})]),_:1})]),et("li",null,[rt(y,{icon:"","button-class":"text-base-content w-full p-4 pt-3 pb-3 block box-border border-b border-b-base-border"})])])])])):Vt("",!0)]),_:1})],64)}}};function jg(t){try{return new URL(t),!0}catch{return!1}}const Ng={class:"relative bg-header px-2 sm:px-4 py-2.5 shadow-sm shadow-base-muted pl-4 pr-4 h-9 align-middle flex items-center bg-primary-color"},Hg={class:"container flex flex-wrap justify-between items-center mx-auto font-medium text-secondary-content"},Fg=["src","alt"],Vg={class:"relative hidden md:flex items-center ml-auto"},$g={class:"text-sm leading-6 font-normal"},Ug={class:"flex space-x-8"},Gg={class:"flex items-center border-l ml-6 pl-6 border-base-muted border-opacity-50"},Zg={class:"flex items-center ml-6 border-base-muted"},qg={__name:"LayoutHeader",setup(t){const{header_links:n,header_logo_text:o,header_logo_url:i,base_url:l,project_name:c}={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',url:null,project_token:null,copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],project_name:"My project",project_citation:null,project_url:null,project_authors:null},h=jg(i)?i:(l+i).replace("//","/");return(f,m)=>{const g=ft("RouterLink"),y=ft("router-link"),x=ft("ClientOnly"),M=ft("TrackerReport");return q(),st("header",Ng,[et("div",Hg,[rt(g,{to:"/",class:"flex items-center text-primary-content"},{default:mt(()=>[qt(i)?(q(),st("img",{key:0,class:"mr-3 h-10",src:qt(h),alt:qt(o)},null,8,Fg)):Vt("",!0),et("span",null,se(qt(o)||qt(c)),1)]),_:1}),rt(zg),et("div",Vg,[et("nav",$g,[et("ul",Ug,[(q(!0),st(Gt,null,Le(qt(n),(D,O)=>(q(),st("li",{key:O},[rt(y,{to:D.link,class:"hover:text-primary-content text-primary-content"},{default:mt(()=>[ie(se(D.label),1)]),_:2},1032,["to"])]))),128))])]),et("div",Gg,[rt(x,null,{default:mt(()=>[rt(Hh,{class:"text-primary-content"})]),_:1})]),et("div",Zg,[rt(M,{icon:""})])])])])}}},Kg={class:"footer text-white bottom-0 border-gray-200 bg-zinc-800 pl-4 pr-4"},Wg={class:"container mx-auto text-sm pt-2 pb-4"},Jg={class:"pt-4 pb-2"},Yg={key:0},Xg=["href"],Qg={class:"flex items-center text-xs gap-2"},t_=["src"],e_=et("hr",{class:"mt-3 mb-3 border-gray-500"},null,-1),n_={class:"flex justify-between"},r_=Eh('
Data provided by TaxonWorks | Pages by TaxonPages | Support (Services) by Species File Group
',1),i_={__name:"LayoutFooter",setup(t){const{project_authors:n,project_citation:o,project_url:i,copyright_text:l,copyright_image:c,copyright_image_link:h}={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',url:null,project_token:null,copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],project_name:"My project",project_citation:null,project_url:null,project_authors:null};return(f,m)=>{const g=ft("TrackerReport");return q(),st("footer",Kg,[et("div",Wg,[et("div",Jg,[ie(se(qt(n))+" "+se(qt(o))+" ",1),qt(i)?(q(),st("span",Yg,[ie(" < "),et("a",{class:"text-secondary-color",href:qt(i)},se(qt(i)),9,Xg),ie(" > ")])):Vt("",!0)]),et("div",Qg,[(q(),At(Pa(qt(h)?"a":"span"),{href:qt(h),class:"min-w-fit"},{default:mt(()=>[qt(c)?(q(),st("img",{key:0,src:qt(c),alt:"copyright"},null,8,t_)):Vt("",!0)]),_:1},8,["href"])),et("span",null,se(qt(l)),1)]),e_,et("div",n_,[r_,rt(g,{icon:"",label:"Report a problem"})])])])}}},o_={class:"min-h-screen h-screen flex flex-col justify-between"},s_={class:"flex flex-col flex-grow"},a_={__name:"Application",setup(t){return(n,o)=>(q(),st("div",o_,[et("div",s_,[rt(qg),Te(n.$slots,"default")]),rt(i_)]))}},l_={__name:"App",setup(t){return fl({title:"My project",meta:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}]}),(n,o)=>{const i=ft("router-view");return q(),At(a_,null,{default:mt(()=>[rt(i)]),_:1})}}},re=(t,n)=>{const o=t.__vccOpts||t;for(const[i,l]of n)o[i]=l;return o},c_={},u_={class:"mx-auto"},h_=et("div",{class:"container mx-auto flex flex-col items-center h-screen justify-center"},[et("h1",{class:"text-4xl font-medium"}," Welcome to TaxonPages "),et("p",{class:"text-xl p-4"}," We're almost there! If you're seeing this, it's because you haven't configured API access yet. ")],-1),d_=[h_];function f_(t,n){return q(),st("div",u_,d_)}const p_=re(c_,[["render",f_]]);function Fh(t){const n={...t};for(const o in t){const i=t[o];(!i||Array.isArray(i)&&!i.length)&&delete n[o]}return n}function m_(t,n){const{hash_mode:o,base_url:i=""}={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',url:null,project_token:null,copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],project_name:"My project",project_citation:null,project_url:null,project_authors:null},l=(i+(o?"/#"+n:n)).replaceAll("//","/");return[t,l].join("")}function g_({id:t,childTaxon:n,parentTaxon:o,taxonRank:i,name:l,scientificName:c,identifier:h,commonNames:f,alternateName:m},{host:g}){return Fh({"@type":"Taxon","@id":m_(g,t),"http://purl.org/dc/terms/conformsTo":{"@id":"https://bioschemas.org/profiles/Taxon/1.0-RELEASE"},additionalType:["dwc:Taxon","http://rs.tdwg.org/ontology/voc/TaxonConcept#TaxonConcept"],"dwc:vernacularName":v_(f),name:l,alternateName:m.map(y=>y.replaceAll(/<\/?i>/g,"")),childTaxon:n,scientificName:__(c),identifier:h,taxonRank:i,parentTaxon:y_(o)})}function __({name:t,author:n,taxonRank:o}){return Fh({"@type":"TaxonName",author:n,name:t,taxonRank:o})}function y_({name:t,taxonRank:n}){return{"@type":"Taxon",name:t,taxonRank:n}}function v_(t){return t.map(({name:n,language:o})=>({"@language":o,"@value":n}))}function b_(t){switch(t){case"taxon":return g_;default:return()=>({})}}function w_(t,{host:n}){return b_(t._resolver)(t,{host:n})}function x_({host:t}){return{hooks:{"tags:resolve":async function(n){for(const o of n.tags)o.tag==="script"&&o.key==="schema-org-graph"&&(o.innerHTML=JSON.stringify({"@context":"https://schema.org","@graph":o.props.nodes.map(i=>w_(i,{host:t}))},null,2),delete o.props.nodes)}}}}var k_=!1;/*! + * pinia v2.1.6 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let Vh;const Ss=t=>Vh=t,$h=Symbol();function Ba(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ro;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ro||(ro={}));function L_(){const t=Du(!0),n=t.run(()=>Xt({}));let o=[],i=[];const l=vs({install(c){Ss(l),l._a=c,c.provide($h,l),c.config.globalProperties.$pinia=l,i.forEach(h=>o.push(h)),i=[]},use(c){return!this._a&&!k_?i.push(c):o.push(c),this},_p:o,_a:null,_e:t,_s:new Map,state:n});return l}const Uh=()=>{};function qc(t,n,o,i=Uh){t.push(n);const l=()=>{const c=t.indexOf(n);c>-1&&(t.splice(c,1),i())};return!o&&zu()&&Tf(l),l}function ci(t,...n){t.slice().forEach(o=>{o(...n)})}const M_=t=>t();function Ia(t,n){t instanceof Map&&n instanceof Map&&n.forEach((o,i)=>t.set(i,o)),t instanceof Set&&n instanceof Set&&n.forEach(t.add,t);for(const o in n){if(!n.hasOwnProperty(o))continue;const i=n[o],l=t[o];Ba(l)&&Ba(i)&&t.hasOwnProperty(o)&&!Ie(i)&&!br(i)?t[o]=Ia(l,i):t[o]=i}return t}const C_=Symbol();function P_(t){return!Ba(t)||!t.hasOwnProperty(C_)}const{assign:gr}=Object;function S_(t){return!!(Ie(t)&&t.effect)}function E_(t,n,o,i){const{state:l,actions:c,getters:h}=n,f=o.state.value[t];let m;function g(){f||(o.state.value[t]=l?l():{});const y=ap(o.state.value[t]);return gr(y,c,Object.keys(h||{}).reduce((x,M)=>(x[M]=vs(_e(()=>{Ss(o);const D=o._s.get(t);return h[M].call(D,D)})),x),{}))}return m=Gh(t,g,n,o,i,!0),m}function Gh(t,n,o={},i,l,c){let h;const f=gr({actions:{}},o),m={deep:!0};let g,y,x=[],M=[],D;const O=i.state.value[t];!c&&!O&&(i.state.value[t]={}),Xt({});let S;function U(Y){let ot;g=y=!1,typeof Y=="function"?(Y(i.state.value[t]),ot={type:ro.patchFunction,storeId:t,events:D}):(Ia(i.state.value[t],Y),ot={type:ro.patchObject,payload:Y,storeId:t,events:D});const ct=S=Symbol();ws().then(()=>{S===ct&&(g=!0)}),y=!0,ci(x,ot,i.state.value[t])}const C=c?function(){const{state:ot}=o,ct=ot?ot():{};this.$patch(gt=>{gr(gt,ct)})}:Uh;function R(){h.stop(),x=[],M=[],i._s.delete(t)}function V(Y,ot){return function(){Ss(i);const ct=Array.from(arguments),gt=[],at=[];function bt(Ct){gt.push(Ct)}function Lt(Ct){at.push(Ct)}ci(M,{args:ct,name:Y,store:z,after:bt,onError:Lt});let Et;try{Et=ot.apply(this&&this.$id===t?this:z,ct)}catch(Ct){throw ci(at,Ct),Ct}return Et instanceof Promise?Et.then(Ct=>(ci(gt,Ct),Ct)).catch(Ct=>(ci(at,Ct),Promise.reject(Ct))):(ci(gt,Et),Et)}}const E={_p:i,$id:t,$onAction:qc.bind(null,M),$patch:U,$reset:C,$subscribe(Y,ot={}){const ct=qc(x,Y,ot.detached,()=>gt()),gt=h.run(()=>Ke(()=>i.state.value[t],at=>{(ot.flush==="sync"?y:g)&&Y({storeId:t,type:ro.direct,events:D},at)},gr({},m,ot)));return ct},$dispose:R},z=yo(E);i._s.set(t,z);const W=i._a&&i._a.runWithContext||M_,it=i._e.run(()=>(h=Du(),W(()=>h.run(n))));for(const Y in it){const ot=it[Y];if(Ie(ot)&&!S_(ot)||br(ot))c||(O&&P_(ot)&&(Ie(ot)?ot.value=O[Y]:Ia(ot,O[Y])),i.state.value[t][Y]=ot);else if(typeof ot=="function"){const ct=V(Y,ot);it[Y]=ct,f.actions[Y]=ot}}return gr(z,it),gr(pe(z),it),Object.defineProperty(z,"$state",{get:()=>i.state.value[t],set:Y=>{U(ot=>{gr(ot,Y)})}}),i._p.forEach(Y=>{gr(z,h.run(()=>Y({store:z,app:i._a,pinia:i,options:f})))}),O&&c&&o.hydrate&&o.hydrate(z.$state,O),g=!0,y=!0,z}function Es(t,n,o){let i,l;const c=typeof n=="function";typeof t=="string"?(i=t,l=c?o:n):(l=t,i=t.id);function h(f,m){const g=Gp();return f=f||(g?xn($h,null):null),f&&Ss(f),f=Vh,f._s.has(i)||(c?Gh(i,n,l,f):E_(i,l,f)),f._s.get(i)}return h.$id=i,h}const T_={},O_={class:"container mx-auto text-center relative top-1/4"},R_=et("h1",{class:"text-4xl sm:text-5xl text-base-lighter"}," Welcome to TaxonPages ",-1),A_=et("p",{class:"m-4 my-8 text-xl"}," It seems you don't have a index or home file in your /pages folder, create one to replace this page. ",-1),B_=[R_,A_];function I_(t,n){return q(),st("div",O_,B_)}const D_=re(T_,[["render",I_]]),z_=[{name:"homepage",path:"/",alias:"/home",component:D_}],j_={},N_={class:"container mx-auto text-center relative top-1/4"},H_=et("h1",{class:"text-7xl text-base-lighter"},"500",-1),F_=et("p",null,"Internal Server Error.",-1),V_=et("p",{class:"m-4 my-10 text-xl"},[ie(" Uh oh, looks like something went wrong!"),et("br"),ie(" We track these errors automatically, but if the problem persists feel free to contact us. ")],-1),$_=[H_,F_,V_];function U_(t,n){return q(),st("div",N_,$_)}const G_=re(j_,[["render",U_]]),Z_={},q_={class:"container mx-auto text-center relative top-1/4"},K_=et("h1",{class:"text-7xl text-base-lighter"},"404",-1),W_=et("p",null,"Page not found.",-1),J_=et("p",{class:"m-4 my-10 text-xl"}," Uh oh, we can't seem to find the page you're looking for. Try going back to the previous page. ",-1),Y_=[K_,W_,J_];function X_(t,n){return q(),st("div",q_,Y_)}const Q_=re(Z_,[["render",X_]]),ty=[{path:"/500",name:"httpError500",component:G_},{path:"/:pathMatch(.*)*",name:"httpError400",component:Q_}];/*! + * vue-router v4.2.4 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */const hi=typeof window<"u";function ey(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const ke=Object.assign;function ua(t,n){const o={};for(const i in n){const l=n[i];o[i]=On(l)?l.map(t):t(l)}return o}const io=()=>{},On=Array.isArray,ny=/\/$/,ry=t=>t.replace(ny,"");function ha(t,n,o="/"){let i,l={},c="",h="";const f=n.indexOf("#");let m=n.indexOf("?");return f=0&&(m=-1),m>-1&&(i=n.slice(0,m),c=n.slice(m+1,f>-1?f:n.length),l=t(c)),f>-1&&(i=i||n.slice(0,f),h=n.slice(f,n.length)),i=ay(i??n,o),{fullPath:i+(c&&"?")+c+h,path:i,query:l,hash:h}}function iy(t,n){const o=n.query?t(n.query):"";return n.path+(o&&"?")+o+(n.hash||"")}function Kc(t,n){return!n||!t.toLowerCase().startsWith(n.toLowerCase())?t:t.slice(n.length)||"/"}function oy(t,n,o){const i=n.matched.length-1,l=o.matched.length-1;return i>-1&&i===l&&vi(n.matched[i],o.matched[l])&&Zh(n.params,o.params)&&t(n.query)===t(o.query)&&n.hash===o.hash}function vi(t,n){return(t.aliasOf||t)===(n.aliasOf||n)}function Zh(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const o in t)if(!sy(t[o],n[o]))return!1;return!0}function sy(t,n){return On(t)?Wc(t,n):On(n)?Wc(n,t):t===n}function Wc(t,n){return On(n)?t.length===n.length&&t.every((o,i)=>o===n[i]):t.length===1&&t[0]===n}function ay(t,n){if(t.startsWith("/"))return t;if(!t)return n;const o=n.split("/"),i=t.split("/"),l=i[i.length-1];(l===".."||l===".")&&i.push("");let c=o.length-1,h,f;for(h=0;h1&&c--;else break;return o.slice(0,c).join("/")+"/"+i.slice(h-(h===i.length?1:0)).join("/")}var po;(function(t){t.pop="pop",t.push="push"})(po||(po={}));var oo;(function(t){t.back="back",t.forward="forward",t.unknown=""})(oo||(oo={}));function ly(t){if(!t)if(hi){const n=document.querySelector("base");t=n&&n.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),ry(t)}const cy=/^[^#]+#/;function uy(t,n){return t.replace(cy,"#")+n}function hy(t,n){const o=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{behavior:n.behavior,left:i.left-o.left-(n.left||0),top:i.top-o.top-(n.top||0)}}const Ts=()=>({left:window.pageXOffset,top:window.pageYOffset});function dy(t){let n;if("el"in t){const o=t.el,i=typeof o=="string"&&o.startsWith("#"),l=typeof o=="string"?i?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!l)return;n=hy(l,t)}else n=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(n.left!=null?n.left:window.pageXOffset,n.top!=null?n.top:window.pageYOffset)}function Jc(t,n){return(history.state?history.state.position-n:-1)+t}const Da=new Map;function fy(t,n){Da.set(t,n)}function py(t){const n=Da.get(t);return Da.delete(t),n}let my=()=>location.protocol+"//"+location.host;function qh(t,n){const{pathname:o,search:i,hash:l}=n,c=t.indexOf("#");if(c>-1){let f=l.includes(t.slice(c))?t.slice(c).length:1,m=l.slice(f);return m[0]!=="/"&&(m="/"+m),Kc(m,"")}return Kc(o,t)+i+l}function gy(t,n,o,i){let l=[],c=[],h=null;const f=({state:M})=>{const D=qh(t,location),O=o.value,S=n.value;let U=0;if(M){if(o.value=D,n.value=M,h&&h===O){h=null;return}U=S?M.position-S.position:0}else i(D);l.forEach(C=>{C(o.value,O,{delta:U,type:po.pop,direction:U?U>0?oo.forward:oo.back:oo.unknown})})};function m(){h=o.value}function g(M){l.push(M);const D=()=>{const O=l.indexOf(M);O>-1&&l.splice(O,1)};return c.push(D),D}function y(){const{history:M}=window;M.state&&M.replaceState(ke({},M.state,{scroll:Ts()}),"")}function x(){for(const M of c)M();c=[],window.removeEventListener("popstate",f),window.removeEventListener("beforeunload",y)}return window.addEventListener("popstate",f),window.addEventListener("beforeunload",y,{passive:!0}),{pauseListeners:m,listen:g,destroy:x}}function Yc(t,n,o,i=!1,l=!1){return{back:t,current:n,forward:o,replaced:i,position:window.history.length,scroll:l?Ts():null}}function _y(t){const{history:n,location:o}=window,i={value:qh(t,o)},l={value:n.state};l.value||c(i.value,{back:null,current:i.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function c(m,g,y){const x=t.indexOf("#"),M=x>-1?(o.host&&document.querySelector("base")?t:t.slice(x))+m:my()+t+m;try{n[y?"replaceState":"pushState"](g,"",M),l.value=g}catch(D){console.error(D),o[y?"replace":"assign"](M)}}function h(m,g){const y=ke({},n.state,Yc(l.value.back,m,l.value.forward,!0),g,{position:l.value.position});c(m,y,!0),i.value=m}function f(m,g){const y=ke({},l.value,n.state,{forward:m,scroll:Ts()});c(y.current,y,!0);const x=ke({},Yc(i.value,m,null),{position:y.position+1},g);c(m,x,!1),i.value=m}return{location:i,state:l,push:f,replace:h}}function Kh(t){t=ly(t);const n=_y(t),o=gy(t,n.state,n.location,n.replace);function i(c,h=!0){h||o.pauseListeners(),history.go(c)}const l=ke({location:"",base:t,go:i,createHref:uy.bind(null,t)},n,o);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>n.state.value}),l}function yy(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),Kh(t)}function vy(t){return typeof t=="string"||t&&typeof t=="object"}function Wh(t){return typeof t=="string"||typeof t=="symbol"}const pr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Jh=Symbol("");var Xc;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Xc||(Xc={}));function bi(t,n){return ke(new Error,{type:t,[Jh]:!0},n)}function Xn(t,n){return t instanceof Error&&Jh in t&&(n==null||!!(t.type&n))}const Qc="[^/]+?",by={sensitive:!1,strict:!1,start:!0,end:!0},wy=/[.+*?^${}()[\]/\\]/g;function xy(t,n){const o=ke({},by,n),i=[];let l=o.start?"^":"";const c=[];for(const g of t){const y=g.length?[]:[90];o.strict&&!g.length&&(l+="/");for(let x=0;xn.length?n.length===1&&n[0]===40+40?1:-1:0}function Ly(t,n){let o=0;const i=t.score,l=n.score;for(;o0&&n[n.length-1]<0}const My={type:0,value:""},Cy=/[a-zA-Z0-9_]/;function Py(t){if(!t)return[[]];if(t==="/")return[[My]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function n(D){throw new Error(`ERR (${o})/"${g}": ${D}`)}let o=0,i=o;const l=[];let c;function h(){c&&l.push(c),c=[]}let f=0,m,g="",y="";function x(){g&&(o===0?c.push({type:0,value:g}):o===1||o===2||o===3?(c.length>1&&(m==="*"||m==="+")&&n(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:g,regexp:y,repeatable:m==="*"||m==="+",optional:m==="*"||m==="?"})):n("Invalid state to consume buffer"),g="")}function M(){g+=m}for(;f{h(R)}:io}function h(y){if(Wh(y)){const x=i.get(y);x&&(i.delete(y),o.splice(o.indexOf(x),1),x.children.forEach(h),x.alias.forEach(h))}else{const x=o.indexOf(y);x>-1&&(o.splice(x,1),y.record.name&&i.delete(y.record.name),y.children.forEach(h),y.alias.forEach(h))}}function f(){return o}function m(y){let x=0;for(;x=0&&(y.record.path!==o[x].record.path||!Yh(y,o[x]));)x++;o.splice(x,0,y),y.record.name&&!nu(y)&&i.set(y.record.name,y)}function g(y,x){let M,D={},O,S;if("name"in y&&y.name){if(M=i.get(y.name),!M)throw bi(1,{location:y});S=M.record.name,D=ke(eu(x.params,M.keys.filter(R=>!R.optional).map(R=>R.name)),y.params&&eu(y.params,M.keys.map(R=>R.name))),O=M.stringify(D)}else if("path"in y)O=y.path,M=o.find(R=>R.re.test(O)),M&&(D=M.parse(O),S=M.record.name);else{if(M=x.name?i.get(x.name):o.find(R=>R.re.test(x.path)),!M)throw bi(1,{location:y,currentLocation:x});S=M.record.name,D=ke({},x.params,y.params),O=M.stringify(D)}const U=[];let C=M;for(;C;)U.unshift(C.record),C=C.parent;return{name:S,path:O,params:D,matched:U,meta:Ry(U)}}return t.forEach(y=>c(y)),{addRoute:c,resolve:g,removeRoute:h,getRoutes:f,getRecordMatcher:l}}function eu(t,n){const o={};for(const i of n)i in t&&(o[i]=t[i]);return o}function Ty(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:Oy(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function Oy(t){const n={},o=t.props||!1;if("component"in t)n.default=o;else for(const i in t.components)n[i]=typeof o=="object"?o[i]:o;return n}function nu(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Ry(t){return t.reduce((n,o)=>ke(n,o.meta),{})}function ru(t,n){const o={};for(const i in t)o[i]=i in n?n[i]:t[i];return o}function Yh(t,n){return n.children.some(o=>o===t||Yh(t,o))}const Xh=/#/g,Ay=/&/g,By=/\//g,Iy=/=/g,Dy=/\?/g,Qh=/\+/g,zy=/%5B/g,jy=/%5D/g,td=/%5E/g,Ny=/%60/g,ed=/%7B/g,Hy=/%7C/g,nd=/%7D/g,Fy=/%20/g;function pl(t){return encodeURI(""+t).replace(Hy,"|").replace(zy,"[").replace(jy,"]")}function Vy(t){return pl(t).replace(ed,"{").replace(nd,"}").replace(td,"^")}function za(t){return pl(t).replace(Qh,"%2B").replace(Fy,"+").replace(Xh,"%23").replace(Ay,"%26").replace(Ny,"`").replace(ed,"{").replace(nd,"}").replace(td,"^")}function $y(t){return za(t).replace(Iy,"%3D")}function Uy(t){return pl(t).replace(Xh,"%23").replace(Dy,"%3F")}function Gy(t){return t==null?"":Uy(t).replace(By,"%2F")}function fs(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function Zy(t){const n={};if(t===""||t==="?")return n;const i=(t[0]==="?"?t.slice(1):t).split("&");for(let l=0;lc&&za(c)):[i&&za(i)]).forEach(c=>{c!==void 0&&(n+=(n.length?"&":"")+o,c!=null&&(n+="="+c))})}return n}function qy(t){const n={};for(const o in t){const i=t[o];i!==void 0&&(n[o]=On(i)?i.map(l=>l==null?null:""+l):i==null?i:""+i)}return n}const Ky=Symbol(""),ou=Symbol(""),Os=Symbol(""),ml=Symbol(""),ja=Symbol("");function Wi(){let t=[];function n(i){return t.push(i),()=>{const l=t.indexOf(i);l>-1&&t.splice(l,1)}}function o(){t=[]}return{add:n,list:()=>t.slice(),reset:o}}function yr(t,n,o,i,l){const c=i&&(i.enterCallbacks[l]=i.enterCallbacks[l]||[]);return()=>new Promise((h,f)=>{const m=x=>{x===!1?f(bi(4,{from:o,to:n})):x instanceof Error?f(x):vy(x)?f(bi(2,{from:n,to:x})):(c&&i.enterCallbacks[l]===c&&typeof x=="function"&&c.push(x),h())},g=t.call(i&&i.instances[l],n,o,m);let y=Promise.resolve(g);t.length<3&&(y=y.then(m)),y.catch(x=>f(x))})}function da(t,n,o,i){const l=[];for(const c of t)for(const h in c.components){let f=c.components[h];if(!(n!=="beforeRouteEnter"&&!c.instances[h]))if(Wy(f)){const g=(f.__vccOpts||f)[n];g&&l.push(yr(g,o,i,c,h))}else{let m=f();l.push(()=>m.then(g=>{if(!g)return Promise.reject(new Error(`Couldn't resolve component "${h}" at "${c.path}"`));const y=ey(g)?g.default:g;c.components[h]=y;const M=(y.__vccOpts||y)[n];return M&&yr(M,o,i,c,h)()}))}}return l}function Wy(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function su(t){const n=xn(Os),o=xn(ml),i=_e(()=>n.resolve(qt(t.to))),l=_e(()=>{const{matched:m}=i.value,{length:g}=m,y=m[g-1],x=o.matched;if(!y||!x.length)return-1;const M=x.findIndex(vi.bind(null,y));if(M>-1)return M;const D=au(m[g-2]);return g>1&&au(y)===D&&x[x.length-1].path!==D?x.findIndex(vi.bind(null,m[g-2])):M}),c=_e(()=>l.value>-1&&Qy(o.params,i.value.params)),h=_e(()=>l.value>-1&&l.value===o.matched.length-1&&Zh(o.params,i.value.params));function f(m={}){return Xy(m)?n[qt(t.replace)?"replace":"push"](qt(t.to)).catch(io):Promise.resolve()}return{route:i,href:_e(()=>i.value.href),isActive:c,isExactActive:h,navigate:f}}const Jy=fh({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:su,setup(t,{slots:n}){const o=yo(su(t)),{options:i}=xn(Os),l=_e(()=>({[lu(t.activeClass,i.linkActiveClass,"router-link-active")]:o.isActive,[lu(t.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const c=n.default&&n.default(o);return t.custom?c:hl("a",{"aria-current":o.isExactActive?t.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:l.value},c)}}}),Yy=Jy;function Xy(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const n=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return t.preventDefault&&t.preventDefault(),!0}}function Qy(t,n){for(const o in n){const i=n[o],l=t[o];if(typeof i=="string"){if(i!==l)return!1}else if(!On(l)||l.length!==i.length||i.some((c,h)=>c!==l[h]))return!1}return!0}function au(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const lu=(t,n,o)=>t??n??o,tv=fh({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:n,slots:o}){const i=xn(ja),l=_e(()=>t.route||i.value),c=xn(ou,0),h=_e(()=>{let g=qt(c);const{matched:y}=l.value;let x;for(;(x=y[g])&&!x.components;)g++;return g}),f=_e(()=>l.value.matched[h.value]);Jo(ou,_e(()=>h.value+1)),Jo(Ky,f),Jo(ja,l);const m=Xt();return Ke(()=>[m.value,f.value,t.name],([g,y,x],[M,D,O])=>{y&&(y.instances[x]=g,D&&D!==y&&g&&g===M&&(y.leaveGuards.size||(y.leaveGuards=D.leaveGuards),y.updateGuards.size||(y.updateGuards=D.updateGuards))),g&&y&&(!D||!vi(y,D)||!M)&&(y.enterCallbacks[x]||[]).forEach(S=>S(g))},{flush:"post"}),()=>{const g=l.value,y=t.name,x=f.value,M=x&&x.components[y];if(!M)return cu(o.default,{Component:M,route:g});const D=x.props[y],O=D?D===!0?g.params:typeof D=="function"?D(g):D:null,U=hl(M,ke({},O,n,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(x.instances[y]=null)},ref:m}));return cu(o.default,{Component:U,route:g})||U}}});function cu(t,n){if(!t)return null;const o=t(n);return o.length===1?o[0]:o}const ev=tv;function nv(t){const n=Ey(t.routes,t),o=t.parseQuery||Zy,i=t.stringifyQuery||iu,l=t.history,c=Wi(),h=Wi(),f=Wi(),m=ip(pr);let g=pr;hi&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const y=ua.bind(null,dt=>""+dt),x=ua.bind(null,Gy),M=ua.bind(null,fs);function D(dt,Pt){let St,zt;return Wh(dt)?(St=n.getRecordMatcher(dt),zt=Pt):zt=dt,n.addRoute(zt,St)}function O(dt){const Pt=n.getRecordMatcher(dt);Pt&&n.removeRoute(Pt)}function S(){return n.getRoutes().map(dt=>dt.record)}function U(dt){return!!n.getRecordMatcher(dt)}function C(dt,Pt){if(Pt=ke({},Pt||m.value),typeof dt=="string"){const J=ha(o,dt,Pt.path),ht=n.resolve({path:J.path},Pt),yt=l.createHref(J.fullPath);return ke(J,ht,{params:M(ht.params),hash:fs(J.hash),redirectedFrom:void 0,href:yt})}let St;if("path"in dt)St=ke({},dt,{path:ha(o,dt.path,Pt.path).path});else{const J=ke({},dt.params);for(const ht in J)J[ht]==null&&delete J[ht];St=ke({},dt,{params:x(J)}),Pt.params=x(Pt.params)}const zt=n.resolve(St,Pt),le=dt.hash||"";zt.params=y(M(zt.params));const H=iy(i,ke({},dt,{hash:Vy(le),path:zt.path})),K=l.createHref(H);return ke({fullPath:H,hash:le,query:i===iu?qy(dt.query):dt.query||{}},zt,{redirectedFrom:void 0,href:K})}function R(dt){return typeof dt=="string"?ha(o,dt,m.value.path):ke({},dt)}function V(dt,Pt){if(g!==dt)return bi(8,{from:Pt,to:dt})}function E(dt){return it(dt)}function z(dt){return E(ke(R(dt),{replace:!0}))}function W(dt){const Pt=dt.matched[dt.matched.length-1];if(Pt&&Pt.redirect){const{redirect:St}=Pt;let zt=typeof St=="function"?St(dt):St;return typeof zt=="string"&&(zt=zt.includes("?")||zt.includes("#")?zt=R(zt):{path:zt},zt.params={}),ke({query:dt.query,hash:dt.hash,params:"path"in zt?{}:dt.params},zt)}}function it(dt,Pt){const St=g=C(dt),zt=m.value,le=dt.state,H=dt.force,K=dt.replace===!0,J=W(St);if(J)return it(ke(R(J),{state:typeof J=="object"?ke({},le,J.state):le,force:H,replace:K}),Pt||St);const ht=St;ht.redirectedFrom=Pt;let yt;return!H&&oy(i,zt,St)&&(yt=bi(16,{to:ht,from:zt}),Bt(zt,zt,!0,!1)),(yt?Promise.resolve(yt):ct(ht,zt)).catch(xt=>Xn(xt)?Xn(xt,2)?xt:Dt(xt):wt(xt,ht,zt)).then(xt=>{if(xt){if(Xn(xt,2))return it(ke({replace:K},R(xt.to),{state:typeof xt.to=="object"?ke({},le,xt.to.state):le,force:H}),Pt||ht)}else xt=at(ht,zt,!0,K,le);return gt(ht,zt,xt),xt})}function Y(dt,Pt){const St=V(dt,Pt);return St?Promise.reject(St):Promise.resolve()}function ot(dt){const Pt=fe.values().next().value;return Pt&&typeof Pt.runWithContext=="function"?Pt.runWithContext(dt):dt()}function ct(dt,Pt){let St;const[zt,le,H]=rv(dt,Pt);St=da(zt.reverse(),"beforeRouteLeave",dt,Pt);for(const J of zt)J.leaveGuards.forEach(ht=>{St.push(yr(ht,dt,Pt))});const K=Y.bind(null,dt,Pt);return St.push(K),Nt(St).then(()=>{St=[];for(const J of c.list())St.push(yr(J,dt,Pt));return St.push(K),Nt(St)}).then(()=>{St=da(le,"beforeRouteUpdate",dt,Pt);for(const J of le)J.updateGuards.forEach(ht=>{St.push(yr(ht,dt,Pt))});return St.push(K),Nt(St)}).then(()=>{St=[];for(const J of H)if(J.beforeEnter)if(On(J.beforeEnter))for(const ht of J.beforeEnter)St.push(yr(ht,dt,Pt));else St.push(yr(J.beforeEnter,dt,Pt));return St.push(K),Nt(St)}).then(()=>(dt.matched.forEach(J=>J.enterCallbacks={}),St=da(H,"beforeRouteEnter",dt,Pt),St.push(K),Nt(St))).then(()=>{St=[];for(const J of h.list())St.push(yr(J,dt,Pt));return St.push(K),Nt(St)}).catch(J=>Xn(J,8)?J:Promise.reject(J))}function gt(dt,Pt,St){f.list().forEach(zt=>ot(()=>zt(dt,Pt,St)))}function at(dt,Pt,St,zt,le){const H=V(dt,Pt);if(H)return H;const K=Pt===pr,J=hi?history.state:{};St&&(zt||K?l.replace(dt.fullPath,ke({scroll:K&&J&&J.scroll},le)):l.push(dt.fullPath,le)),m.value=dt,Bt(dt,Pt,St,K),Dt()}let bt;function Lt(){bt||(bt=l.listen((dt,Pt,St)=>{if(!ae.listening)return;const zt=C(dt),le=W(zt);if(le){it(ke(le,{replace:!0}),zt).catch(io);return}g=zt;const H=m.value;hi&&fy(Jc(H.fullPath,St.delta),Ts()),ct(zt,H).catch(K=>Xn(K,12)?K:Xn(K,2)?(it(K.to,zt).then(J=>{Xn(J,20)&&!St.delta&&St.type===po.pop&&l.go(-1,!1)}).catch(io),Promise.reject()):(St.delta&&l.go(-St.delta,!1),wt(K,zt,H))).then(K=>{K=K||at(zt,H,!1),K&&(St.delta&&!Xn(K,8)?l.go(-St.delta,!1):St.type===po.pop&&Xn(K,20)&&l.go(-1,!1)),gt(zt,H,K)}).catch(io)}))}let Et=Wi(),Ct=Wi(),Ft;function wt(dt,Pt,St){Dt(dt);const zt=Ct.list();return zt.length?zt.forEach(le=>le(dt,Pt,St)):console.error(dt),Promise.reject(dt)}function de(){return Ft&&m.value!==pr?Promise.resolve():new Promise((dt,Pt)=>{Et.add([dt,Pt])})}function Dt(dt){return Ft||(Ft=!dt,Lt(),Et.list().forEach(([Pt,St])=>dt?St(dt):Pt()),Et.reset()),dt}function Bt(dt,Pt,St,zt){const{scrollBehavior:le}=t;if(!hi||!le)return Promise.resolve();const H=!St&&py(Jc(dt.fullPath,0))||(zt||!St)&&history.state&&history.state.scroll||null;return ws().then(()=>le(dt,Pt,H)).then(K=>K&&dy(K)).catch(K=>wt(K,dt,Pt))}const $t=dt=>l.go(dt);let Me;const fe=new Set,ae={currentRoute:m,listening:!0,addRoute:D,removeRoute:O,hasRoute:U,getRoutes:S,resolve:C,options:t,push:E,replace:z,go:$t,back:()=>$t(-1),forward:()=>$t(1),beforeEach:c.add,beforeResolve:h.add,afterEach:f.add,onError:Ct.add,isReady:de,install(dt){const Pt=this;dt.component("RouterLink",Yy),dt.component("RouterView",ev),dt.config.globalProperties.$router=Pt,Object.defineProperty(dt.config.globalProperties,"$route",{enumerable:!0,get:()=>qt(m)}),hi&&!Me&&m.value===pr&&(Me=!0,E(l.location).catch(le=>{}));const St={};for(const le in pr)Object.defineProperty(St,le,{get:()=>m.value[le],enumerable:!0});dt.provide(Os,Pt),dt.provide(ml,Ku(St)),dt.provide(ja,m);const zt=dt.unmount;fe.add(dt),dt.unmount=function(){fe.delete(dt),fe.size<1&&(g=pr,bt&&bt(),bt=null,m.value=pr,Me=!1,Ft=!1),zt()}}};function Nt(dt){return dt.reduce((Pt,St)=>Pt.then(()=>ot(St)),Promise.resolve())}return ae}function rv(t,n){const o=[],i=[],l=[],c=Math.max(n.matched.length,t.matched.length);for(let h=0;hvi(g,f))?i.push(f):o.push(f));const m=t.matched[h];m&&(n.matched.find(g=>vi(g,m))||l.push(m))}return[o,i,l]}function rd(){return xn(Os)}function iv(){return xn(ml)}function id(t,n){return function(){return t.apply(n,arguments)}}const{toString:ov}=Object.prototype,{getPrototypeOf:gl}=Object,Rs=(t=>n=>{const o=ov.call(n);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Vn=t=>(t=t.toLowerCase(),n=>Rs(n)===t),As=t=>n=>typeof n===t,{isArray:Mi}=Array,mo=As("undefined");function sv(t){return t!==null&&!mo(t)&&t.constructor!==null&&!mo(t.constructor)&&kn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const od=Vn("ArrayBuffer");function av(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&od(t.buffer),n}const lv=As("string"),kn=As("function"),sd=As("number"),Bs=t=>t!==null&&typeof t=="object",cv=t=>t===!0||t===!1,Qo=t=>{if(Rs(t)!=="object")return!1;const n=gl(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},uv=Vn("Date"),hv=Vn("File"),dv=Vn("Blob"),fv=Vn("FileList"),pv=t=>Bs(t)&&kn(t.pipe),mv=t=>{let n;return t&&(typeof FormData=="function"&&t instanceof FormData||kn(t.append)&&((n=Rs(t))==="formdata"||n==="object"&&kn(t.toString)&&t.toString()==="[object FormData]"))},gv=Vn("URLSearchParams"),_v=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vo(t,n,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let i,l;if(typeof t!="object"&&(t=[t]),Mi(t))for(i=0,l=t.length;i0;)if(l=o[i],n===l.toLowerCase())return l;return null}const ld=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),cd=t=>!mo(t)&&t!==ld;function Na(){const{caseless:t}=cd(this)&&this||{},n={},o=(i,l)=>{const c=t&&ad(n,l)||l;Qo(n[c])&&Qo(i)?n[c]=Na(n[c],i):Qo(i)?n[c]=Na({},i):Mi(i)?n[c]=i.slice():n[c]=i};for(let i=0,l=arguments.length;i(vo(n,(l,c)=>{o&&kn(l)?t[c]=id(l,o):t[c]=l},{allOwnKeys:i}),t),vv=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),bv=(t,n,o,i)=>{t.prototype=Object.create(n.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),o&&Object.assign(t.prototype,o)},wv=(t,n,o,i)=>{let l,c,h;const f={};if(n=n||{},t==null)return n;do{for(l=Object.getOwnPropertyNames(t),c=l.length;c-- >0;)h=l[c],(!i||i(h,t,n))&&!f[h]&&(n[h]=t[h],f[h]=!0);t=o!==!1&&gl(t)}while(t&&(!o||o(t,n))&&t!==Object.prototype);return n},xv=(t,n,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=n.length;const i=t.indexOf(n,o);return i!==-1&&i===o},kv=t=>{if(!t)return null;if(Mi(t))return t;let n=t.length;if(!sd(n))return null;const o=new Array(n);for(;n-- >0;)o[n]=t[n];return o},Lv=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&gl(Uint8Array)),Mv=(t,n)=>{const i=(t&&t[Symbol.iterator]).call(t);let l;for(;(l=i.next())&&!l.done;){const c=l.value;n.call(t,c[0],c[1])}},Cv=(t,n)=>{let o;const i=[];for(;(o=t.exec(n))!==null;)i.push(o);return i},Pv=Vn("HTMLFormElement"),Sv=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,i,l){return i.toUpperCase()+l}),uu=(({hasOwnProperty:t})=>(n,o)=>t.call(n,o))(Object.prototype),Ev=Vn("RegExp"),ud=(t,n)=>{const o=Object.getOwnPropertyDescriptors(t),i={};vo(o,(l,c)=>{n(l,c,t)!==!1&&(i[c]=l)}),Object.defineProperties(t,i)},Tv=t=>{ud(t,(n,o)=>{if(kn(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const i=t[o];if(kn(i)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Ov=(t,n)=>{const o={},i=l=>{l.forEach(c=>{o[c]=!0})};return Mi(t)?i(t):i(String(t).split(n)),o},Rv=()=>{},Av=(t,n)=>(t=+t,Number.isFinite(t)?t:n),fa="abcdefghijklmnopqrstuvwxyz",hu="0123456789",hd={DIGIT:hu,ALPHA:fa,ALPHA_DIGIT:fa+fa.toUpperCase()+hu},Bv=(t=16,n=hd.ALPHA_DIGIT)=>{let o="";const{length:i}=n;for(;t--;)o+=n[Math.random()*i|0];return o};function Iv(t){return!!(t&&kn(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Dv=t=>{const n=new Array(10),o=(i,l)=>{if(Bs(i)){if(n.indexOf(i)>=0)return;if(!("toJSON"in i)){n[l]=i;const c=Mi(i)?[]:{};return vo(i,(h,f)=>{const m=o(h,l+1);!mo(m)&&(c[f]=m)}),n[l]=void 0,c}}return i};return o(t,0)},zv=Vn("AsyncFunction"),jv=t=>t&&(Bs(t)||kn(t))&&kn(t.then)&&kn(t.catch),_t={isArray:Mi,isArrayBuffer:od,isBuffer:sv,isFormData:mv,isArrayBufferView:av,isString:lv,isNumber:sd,isBoolean:cv,isObject:Bs,isPlainObject:Qo,isUndefined:mo,isDate:uv,isFile:hv,isBlob:dv,isRegExp:Ev,isFunction:kn,isStream:pv,isURLSearchParams:gv,isTypedArray:Lv,isFileList:fv,forEach:vo,merge:Na,extend:yv,trim:_v,stripBOM:vv,inherits:bv,toFlatObject:wv,kindOf:Rs,kindOfTest:Vn,endsWith:xv,toArray:kv,forEachEntry:Mv,matchAll:Cv,isHTMLForm:Pv,hasOwnProperty:uu,hasOwnProp:uu,reduceDescriptors:ud,freezeMethods:Tv,toObjectSet:Ov,toCamelCase:Sv,noop:Rv,toFiniteNumber:Av,findKey:ad,global:ld,isContextDefined:cd,ALPHABET:hd,generateString:Bv,isSpecCompliantForm:Iv,toJSONObject:Dv,isAsyncFn:zv,isThenable:jv};function ge(t,n,o,i,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),o&&(this.config=o),i&&(this.request=i),l&&(this.response=l)}_t.inherits(ge,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_t.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const dd=ge.prototype,fd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{fd[t]={value:t}});Object.defineProperties(ge,fd);Object.defineProperty(dd,"isAxiosError",{value:!0});ge.from=(t,n,o,i,l,c)=>{const h=Object.create(dd);return _t.toFlatObject(t,h,function(m){return m!==Error.prototype},f=>f!=="isAxiosError"),ge.call(h,t.message,n,o,i,l),h.cause=t,h.name=t.name,c&&Object.assign(h,c),h};const Nv=null;function Ha(t){return _t.isPlainObject(t)||_t.isArray(t)}function pd(t){return _t.endsWith(t,"[]")?t.slice(0,-2):t}function du(t,n,o){return t?t.concat(n).map(function(l,c){return l=pd(l),!o&&c?"["+l+"]":l}).join(o?".":""):n}function Hv(t){return _t.isArray(t)&&!t.some(Ha)}const Fv=_t.toFlatObject(_t,{},null,function(n){return/^is[A-Z]/.test(n)});function Is(t,n,o){if(!_t.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,o=_t.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,U){return!_t.isUndefined(U[S])});const i=o.metaTokens,l=o.visitor||y,c=o.dots,h=o.indexes,m=(o.Blob||typeof Blob<"u"&&Blob)&&_t.isSpecCompliantForm(n);if(!_t.isFunction(l))throw new TypeError("visitor must be a function");function g(O){if(O===null)return"";if(_t.isDate(O))return O.toISOString();if(!m&&_t.isBlob(O))throw new ge("Blob is not supported. Use a Buffer instead.");return _t.isArrayBuffer(O)||_t.isTypedArray(O)?m&&typeof Blob=="function"?new Blob([O]):Buffer.from(O):O}function y(O,S,U){let C=O;if(O&&!U&&typeof O=="object"){if(_t.endsWith(S,"{}"))S=i?S:S.slice(0,-2),O=JSON.stringify(O);else if(_t.isArray(O)&&Hv(O)||(_t.isFileList(O)||_t.endsWith(S,"[]"))&&(C=_t.toArray(O)))return S=pd(S),C.forEach(function(V,E){!(_t.isUndefined(V)||V===null)&&n.append(h===!0?du([S],E,c):h===null?S:S+"[]",g(V))}),!1}return Ha(O)?!0:(n.append(du(U,S,c),g(O)),!1)}const x=[],M=Object.assign(Fv,{defaultVisitor:y,convertValue:g,isVisitable:Ha});function D(O,S){if(!_t.isUndefined(O)){if(x.indexOf(O)!==-1)throw Error("Circular reference detected in "+S.join("."));x.push(O),_t.forEach(O,function(C,R){(!(_t.isUndefined(C)||C===null)&&l.call(n,C,_t.isString(R)?R.trim():R,S,M))===!0&&D(C,S?S.concat(R):[R])}),x.pop()}}if(!_t.isObject(t))throw new TypeError("data must be an object");return D(t),n}function fu(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return n[i]})}function _l(t,n){this._pairs=[],t&&Is(t,this,n)}const md=_l.prototype;md.append=function(n,o){this._pairs.push([n,o])};md.toString=function(n){const o=n?function(i){return n.call(this,i,fu)}:fu;return this._pairs.map(function(l){return o(l[0])+"="+o(l[1])},"").join("&")};function Vv(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gd(t,n,o){if(!n)return t;const i=o&&o.encode||Vv,l=o&&o.serialize;let c;if(l?c=l(n,o):c=_t.isURLSearchParams(n)?n.toString():new _l(n,o).toString(i),c){const h=t.indexOf("#");h!==-1&&(t=t.slice(0,h)),t+=(t.indexOf("?")===-1?"?":"&")+c}return t}class $v{constructor(){this.handlers=[]}use(n,o,i){return this.handlers.push({fulfilled:n,rejected:o,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){_t.forEach(this.handlers,function(i){i!==null&&n(i)})}}const pu=$v,_d={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uv=typeof URLSearchParams<"u"?URLSearchParams:_l,Gv=typeof FormData<"u"?FormData:null,Zv=typeof Blob<"u"?Blob:null,qv=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Kv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Hn={isBrowser:!0,classes:{URLSearchParams:Uv,FormData:Gv,Blob:Zv},isStandardBrowserEnv:qv,isStandardBrowserWebWorkerEnv:Kv,protocols:["http","https","file","blob","url","data"]};function Wv(t,n){return Is(t,new Hn.classes.URLSearchParams,Object.assign({visitor:function(o,i,l,c){return Hn.isNode&&_t.isBuffer(o)?(this.append(i,o.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},n))}function Jv(t){return _t.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function Yv(t){const n={},o=Object.keys(t);let i;const l=o.length;let c;for(i=0;i=o.length;return h=!h&&_t.isArray(l)?l.length:h,m?(_t.hasOwnProp(l,h)?l[h]=[l[h],i]:l[h]=i,!f):((!l[h]||!_t.isObject(l[h]))&&(l[h]=[]),n(o,i,l[h],c)&&_t.isArray(l[h])&&(l[h]=Yv(l[h])),!f)}if(_t.isFormData(t)&&_t.isFunction(t.entries)){const o={};return _t.forEachEntry(t,(i,l)=>{n(Jv(i),l,o,0)}),o}return null}const Xv={"Content-Type":void 0};function Qv(t,n,o){if(_t.isString(t))try{return(n||JSON.parse)(t),_t.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(o||JSON.stringify)(t)}const Ds={transitional:_d,adapter:["xhr","http"],transformRequest:[function(n,o){const i=o.getContentType()||"",l=i.indexOf("application/json")>-1,c=_t.isObject(n);if(c&&_t.isHTMLForm(n)&&(n=new FormData(n)),_t.isFormData(n))return l&&l?JSON.stringify(yd(n)):n;if(_t.isArrayBuffer(n)||_t.isBuffer(n)||_t.isStream(n)||_t.isFile(n)||_t.isBlob(n))return n;if(_t.isArrayBufferView(n))return n.buffer;if(_t.isURLSearchParams(n))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let f;if(c){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Wv(n,this.formSerializer).toString();if((f=_t.isFileList(n))||i.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Is(f?{"files[]":n}:n,m&&new m,this.formSerializer)}}return c||l?(o.setContentType("application/json",!1),Qv(n)):n}],transformResponse:[function(n){const o=this.transitional||Ds.transitional,i=o&&o.forcedJSONParsing,l=this.responseType==="json";if(n&&_t.isString(n)&&(i&&!this.responseType||l)){const h=!(o&&o.silentJSONParsing)&&l;try{return JSON.parse(n)}catch(f){if(h)throw f.name==="SyntaxError"?ge.from(f,ge.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Hn.classes.FormData,Blob:Hn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};_t.forEach(["delete","get","head"],function(n){Ds.headers[n]={}});_t.forEach(["post","put","patch"],function(n){Ds.headers[n]=_t.merge(Xv)});const yl=Ds,tb=_t.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eb=t=>{const n={};let o,i,l;return t&&t.split(` +`).forEach(function(h){l=h.indexOf(":"),o=h.substring(0,l).trim().toLowerCase(),i=h.substring(l+1).trim(),!(!o||n[o]&&tb[o])&&(o==="set-cookie"?n[o]?n[o].push(i):n[o]=[i]:n[o]=n[o]?n[o]+", "+i:i)}),n},mu=Symbol("internals");function Ji(t){return t&&String(t).trim().toLowerCase()}function ts(t){return t===!1||t==null?t:_t.isArray(t)?t.map(ts):String(t)}function nb(t){const n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=o.exec(t);)n[i[1]]=i[2];return n}const rb=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function pa(t,n,o,i,l){if(_t.isFunction(i))return i.call(this,n,o);if(l&&(n=o),!!_t.isString(n)){if(_t.isString(i))return n.indexOf(i)!==-1;if(_t.isRegExp(i))return i.test(n)}}function ib(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,o,i)=>o.toUpperCase()+i)}function ob(t,n){const o=_t.toCamelCase(" "+n);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+o,{value:function(l,c,h){return this[i].call(this,n,l,c,h)},configurable:!0})})}class zs{constructor(n){n&&this.set(n)}set(n,o,i){const l=this;function c(f,m,g){const y=Ji(m);if(!y)throw new Error("header name must be a non-empty string");const x=_t.findKey(l,y);(!x||l[x]===void 0||g===!0||g===void 0&&l[x]!==!1)&&(l[x||m]=ts(f))}const h=(f,m)=>_t.forEach(f,(g,y)=>c(g,y,m));return _t.isPlainObject(n)||n instanceof this.constructor?h(n,o):_t.isString(n)&&(n=n.trim())&&!rb(n)?h(eb(n),o):n!=null&&c(o,n,i),this}get(n,o){if(n=Ji(n),n){const i=_t.findKey(this,n);if(i){const l=this[i];if(!o)return l;if(o===!0)return nb(l);if(_t.isFunction(o))return o.call(this,l,i);if(_t.isRegExp(o))return o.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,o){if(n=Ji(n),n){const i=_t.findKey(this,n);return!!(i&&this[i]!==void 0&&(!o||pa(this,this[i],i,o)))}return!1}delete(n,o){const i=this;let l=!1;function c(h){if(h=Ji(h),h){const f=_t.findKey(i,h);f&&(!o||pa(i,i[f],f,o))&&(delete i[f],l=!0)}}return _t.isArray(n)?n.forEach(c):c(n),l}clear(n){const o=Object.keys(this);let i=o.length,l=!1;for(;i--;){const c=o[i];(!n||pa(this,this[c],c,n,!0))&&(delete this[c],l=!0)}return l}normalize(n){const o=this,i={};return _t.forEach(this,(l,c)=>{const h=_t.findKey(i,c);if(h){o[h]=ts(l),delete o[c];return}const f=n?ib(c):String(c).trim();f!==c&&delete o[c],o[f]=ts(l),i[f]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const o=Object.create(null);return _t.forEach(this,(i,l)=>{i!=null&&i!==!1&&(o[l]=n&&_t.isArray(i)?i.join(", "):i)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,o])=>n+": "+o).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...o){const i=new this(n);return o.forEach(l=>i.set(l)),i}static accessor(n){const i=(this[mu]=this[mu]={accessors:{}}).accessors,l=this.prototype;function c(h){const f=Ji(h);i[f]||(ob(l,h),i[f]=!0)}return _t.isArray(n)?n.forEach(c):c(n),this}}zs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_t.freezeMethods(zs.prototype);_t.freezeMethods(zs);const tr=zs;function ma(t,n){const o=this||yl,i=n||o,l=tr.from(i.headers);let c=i.data;return _t.forEach(t,function(f){c=f.call(o,c,l.normalize(),n?n.status:void 0)}),l.normalize(),c}function vd(t){return!!(t&&t.__CANCEL__)}function bo(t,n,o){ge.call(this,t??"canceled",ge.ERR_CANCELED,n,o),this.name="CanceledError"}_t.inherits(bo,ge,{__CANCEL__:!0});function sb(t,n,o){const i=o.config.validateStatus;!o.status||!i||i(o.status)?t(o):n(new ge("Request failed with status code "+o.status,[ge.ERR_BAD_REQUEST,ge.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const ab=Hn.isStandardBrowserEnv?function(){return{write:function(o,i,l,c,h,f){const m=[];m.push(o+"="+encodeURIComponent(i)),_t.isNumber(l)&&m.push("expires="+new Date(l).toGMTString()),_t.isString(c)&&m.push("path="+c),_t.isString(h)&&m.push("domain="+h),f===!0&&m.push("secure"),document.cookie=m.join("; ")},read:function(o){const i=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(o){this.write(o,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function lb(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function cb(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}function bd(t,n){return t&&!lb(n)?cb(t,n):n}const ub=Hn.isStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let i;function l(c){let h=c;return n&&(o.setAttribute("href",h),h=o.href),o.setAttribute("href",h),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return i=l(window.location.href),function(h){const f=_t.isString(h)?l(h):h;return f.protocol===i.protocol&&f.host===i.host}}():function(){return function(){return!0}}();function hb(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function db(t,n){t=t||10;const o=new Array(t),i=new Array(t);let l=0,c=0,h;return n=n!==void 0?n:1e3,function(m){const g=Date.now(),y=i[c];h||(h=g),o[l]=m,i[l]=g;let x=c,M=0;for(;x!==l;)M+=o[x++],x=x%t;if(l=(l+1)%t,l===c&&(c=(c+1)%t),g-h{const c=l.loaded,h=l.lengthComputable?l.total:void 0,f=c-o,m=i(f),g=c<=h;o=c;const y={loaded:c,total:h,progress:h?c/h:void 0,bytes:f,rate:m||void 0,estimated:m&&h&&g?(h-c)/m:void 0,event:l};y[n?"download":"upload"]=!0,t(y)}}const fb=typeof XMLHttpRequest<"u",pb=fb&&function(t){return new Promise(function(o,i){let l=t.data;const c=tr.from(t.headers).normalize(),h=t.responseType;let f;function m(){t.cancelToken&&t.cancelToken.unsubscribe(f),t.signal&&t.signal.removeEventListener("abort",f)}_t.isFormData(l)&&(Hn.isStandardBrowserEnv||Hn.isStandardBrowserWebWorkerEnv?c.setContentType(!1):c.setContentType("multipart/form-data;",!1));let g=new XMLHttpRequest;if(t.auth){const D=t.auth.username||"",O=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";c.set("Authorization","Basic "+btoa(D+":"+O))}const y=bd(t.baseURL,t.url);g.open(t.method.toUpperCase(),gd(y,t.params,t.paramsSerializer),!0),g.timeout=t.timeout;function x(){if(!g)return;const D=tr.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),S={data:!h||h==="text"||h==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:D,config:t,request:g};sb(function(C){o(C),m()},function(C){i(C),m()},S),g=null}if("onloadend"in g?g.onloadend=x:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(x)},g.onabort=function(){g&&(i(new ge("Request aborted",ge.ECONNABORTED,t,g)),g=null)},g.onerror=function(){i(new ge("Network Error",ge.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let O=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const S=t.transitional||_d;t.timeoutErrorMessage&&(O=t.timeoutErrorMessage),i(new ge(O,S.clarifyTimeoutError?ge.ETIMEDOUT:ge.ECONNABORTED,t,g)),g=null},Hn.isStandardBrowserEnv){const D=(t.withCredentials||ub(y))&&t.xsrfCookieName&&ab.read(t.xsrfCookieName);D&&c.set(t.xsrfHeaderName,D)}l===void 0&&c.setContentType(null),"setRequestHeader"in g&&_t.forEach(c.toJSON(),function(O,S){g.setRequestHeader(S,O)}),_t.isUndefined(t.withCredentials)||(g.withCredentials=!!t.withCredentials),h&&h!=="json"&&(g.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&g.addEventListener("progress",gu(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",gu(t.onUploadProgress)),(t.cancelToken||t.signal)&&(f=D=>{g&&(i(!D||D.type?new bo(null,t,g):D),g.abort(),g=null)},t.cancelToken&&t.cancelToken.subscribe(f),t.signal&&(t.signal.aborted?f():t.signal.addEventListener("abort",f)));const M=hb(y);if(M&&Hn.protocols.indexOf(M)===-1){i(new ge("Unsupported protocol "+M+":",ge.ERR_BAD_REQUEST,t));return}g.send(l||null)})},es={http:Nv,xhr:pb};_t.forEach(es,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const mb={getAdapter:t=>{t=_t.isArray(t)?t:[t];const{length:n}=t;let o,i;for(let l=0;lt instanceof tr?t.toJSON():t;function wi(t,n){n=n||{};const o={};function i(g,y,x){return _t.isPlainObject(g)&&_t.isPlainObject(y)?_t.merge.call({caseless:x},g,y):_t.isPlainObject(y)?_t.merge({},y):_t.isArray(y)?y.slice():y}function l(g,y,x){if(_t.isUndefined(y)){if(!_t.isUndefined(g))return i(void 0,g,x)}else return i(g,y,x)}function c(g,y){if(!_t.isUndefined(y))return i(void 0,y)}function h(g,y){if(_t.isUndefined(y)){if(!_t.isUndefined(g))return i(void 0,g)}else return i(void 0,y)}function f(g,y,x){if(x in n)return i(g,y);if(x in t)return i(void 0,g)}const m={url:c,method:c,data:c,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:f,headers:(g,y)=>l(yu(g),yu(y),!0)};return _t.forEach(Object.keys(Object.assign({},t,n)),function(y){const x=m[y]||l,M=x(t[y],n[y],y);_t.isUndefined(M)&&x!==f||(o[y]=M)}),o}const wd="1.4.0",vl={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{vl[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});const vu={};vl.transitional=function(n,o,i){function l(c,h){return"[Axios v"+wd+"] Transitional option '"+c+"'"+h+(i?". "+i:"")}return(c,h,f)=>{if(n===!1)throw new ge(l(h," has been removed"+(o?" in "+o:"")),ge.ERR_DEPRECATED);return o&&!vu[h]&&(vu[h]=!0,console.warn(l(h," has been deprecated since v"+o+" and will be removed in the near future"))),n?n(c,h,f):!0}};function gb(t,n,o){if(typeof t!="object")throw new ge("options must be an object",ge.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let l=i.length;for(;l-- >0;){const c=i[l],h=n[c];if(h){const f=t[c],m=f===void 0||h(f,c,t);if(m!==!0)throw new ge("option "+c+" must be "+m,ge.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new ge("Unknown option "+c,ge.ERR_BAD_OPTION)}}const Fa={assertOptions:gb,validators:vl},mr=Fa.validators;class ps{constructor(n){this.defaults=n,this.interceptors={request:new pu,response:new pu}}request(n,o){typeof n=="string"?(o=o||{},o.url=n):o=n||{},o=wi(this.defaults,o);const{transitional:i,paramsSerializer:l,headers:c}=o;i!==void 0&&Fa.assertOptions(i,{silentJSONParsing:mr.transitional(mr.boolean),forcedJSONParsing:mr.transitional(mr.boolean),clarifyTimeoutError:mr.transitional(mr.boolean)},!1),l!=null&&(_t.isFunction(l)?o.paramsSerializer={serialize:l}:Fa.assertOptions(l,{encode:mr.function,serialize:mr.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let h;h=c&&_t.merge(c.common,c[o.method]),h&&_t.forEach(["delete","get","head","post","put","patch","common"],O=>{delete c[O]}),o.headers=tr.concat(h,c);const f=[];let m=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(o)===!1||(m=m&&S.synchronous,f.unshift(S.fulfilled,S.rejected))});const g=[];this.interceptors.response.forEach(function(S){g.push(S.fulfilled,S.rejected)});let y,x=0,M;if(!m){const O=[_u.bind(this),void 0];for(O.unshift.apply(O,f),O.push.apply(O,g),M=O.length,y=Promise.resolve(o);x{if(!i._listeners)return;let c=i._listeners.length;for(;c-- >0;)i._listeners[c](l);i._listeners=null}),this.promise.then=l=>{let c;const h=new Promise(f=>{i.subscribe(f),c=f}).then(l);return h.cancel=function(){i.unsubscribe(c)},h},n(function(c,h,f){i.reason||(i.reason=new bo(c,h,f),o(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const o=this._listeners.indexOf(n);o!==-1&&this._listeners.splice(o,1)}static source(){let n;return{token:new bl(function(l){n=l}),cancel:n}}}const _b=bl;function yb(t){return function(o){return t.apply(null,o)}}function vb(t){return _t.isObject(t)&&t.isAxiosError===!0}const Va={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Va).forEach(([t,n])=>{Va[n]=t});const bb=Va;function xd(t){const n=new ns(t),o=id(ns.prototype.request,n);return _t.extend(o,ns.prototype,n,{allOwnKeys:!0}),_t.extend(o,n,null,{allOwnKeys:!0}),o.create=function(l){return xd(wi(t,l))},o}const Fe=xd(yl);Fe.Axios=ns;Fe.CanceledError=bo;Fe.CancelToken=_b;Fe.isCancel=vd;Fe.VERSION=wd;Fe.toFormData=Is;Fe.AxiosError=ge;Fe.Cancel=Fe.CanceledError;Fe.all=function(n){return Promise.all(n)};Fe.spread=yb;Fe.isAxiosError=vb;Fe.mergeConfig=wi;Fe.AxiosHeaders=tr;Fe.formToJSON=t=>yd(_t.isHTMLForm(t)?new FormData(t):t);Fe.HttpStatusCode=bb;Fe.default=Fe;const wb=Fe,{url:xb,project_token:kb}={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',url:null,project_token:null,copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],project_name:"My project",project_citation:null,project_url:null,project_authors:null},Qe=wb.create({baseURL:xb,params:{project_token:kb}});class on{static getTaxonNameCitations(n,o){return Qe.get(`/taxon_names/${n}/inventory/catalog`,o)}static getOtu(n){return Qe.get(`/otus/${n}`,{params:{extend:["parents"]}})}static getOtus(n){return Qe.get("/otus.json",{params:n})}static getTaxon(n,o){return Qe.get(`/taxon_names/${n}`,o)}static summary(n,o){return Qe.get(`/taxon_names/${n}/inventory/summary`,o)}static getTaxonTypeDesignation(n){return Qe.get(`/taxon_names/${n}`,{params:{extend:["type_taxon_name_relationship"]}})}static getOtuImages(n,o){return Qe.get(`/otus/${n}/inventory/images.json`,o)}static getTaxonomy(n,o){return Qe.get(`/otus/${n}/inventory/taxonomy.json`,o)}static getOtuTypeMaterial(n){return Qe.get(`/otus/${n}/inventory/type_material.json`)}static getOtuDistribution(n,o={}){return Qe.get(`/otus/${n}/inventory/distribution.json`,o)}static getOtuGeoJSONDistribution(n){return Qe.get(`/otus/${n}/inventory/distribution.geojson`)}static getCachedMap(n,o){return Qe.get(`/cached_maps/${n}`,o)}static getOtuContent(n,o){return Qe.get(`/otus/${n}/inventory/content`,o)}static getCachedMap(n){return Qe.get(`/cached_maps/${n}`)}}const js=Es("otuPageRequest",{state:()=>({requests:{}}),getters:{getRequest:t=>n=>t.requests[n],sitemap:t=>{const n=Object.keys(t.requests).sort();return Object.fromEntries(n.map(o=>[o,t.requests[o].url]))}},actions:{setRequest(t,{data:n,request:o}){var l;const i=((l=o.res)==null?void 0:l.responseUrl)||o.responseURL;this.requests[t]={url:i,data:n}}}}),Lb="FamilyGroup",Mb="GenusGroup",Cb="SpeciesGroup",go={CanceledError:"CanceledError"},bu=["neotype","holotype","neolectotype","lectotype","syntype","paratype","paratypes"];function nr(t,n){const o=js(),i=n();return i.then(l=>{o.setRequest(t,l)}).catch(l=>{l.name!==go.CanceledError&&o.setRequest(t,l.response)}),i}const Ci=Es("otuStore",{state:()=>({otu:null,taxon:null,images:null,catalog:{sources:[],stats:{},timeline:[],isLoading:!1},taxonomy:{commonNames:[],synonyms:[]}}),actions:{async loadTaxon(t,{signal:n}){const o=await nr("summary",()=>on.summary(t,{signal:n}));this.taxon=o.data},async loadOtu(t,{signal:n}){const o=await on.getOtu(t,{signal:n});this.otu=o.data},async loadTaxonomy(t,{signal:n}){const{data:o}=await on.getTaxonomy(t,{params:{max_descendants_depth:0,extend:["common_names"]},signal:n});this.taxonomy={commonNames:o.common_names,synonyms:o.nomenclatural_synonyms}},async loadCatalog(t,{signal:n}){this.catalog.isLoading=!0;const o=await nr("taxonomy",()=>on.getTaxonNameCitations(t,{signal:n}));this.catalog={...o.data,sources:o.data.sources.map(({cached:i,url:l})=>i.replace(l,`${l}`)),isLoading:!1}},async loadInit({otuId:t,controller:n}){js().$reset();try{await this.loadOtu(t,n),await this.loadTaxon(this.otu.taxon_name_id,n),await this.loadCatalog(this.otu.taxon_name_id,n),await this.loadTaxonomy(t,n)}catch(i){return Promise.reject(i)}}}});function Pb(t,n){return t||(t={}),t._resolver=n,t}function Sb(t){return Pb(t,"taxon")}function Eb(t){return fl({script:[{type:"application/ld+json",key:"schema-org-graph",nodes:t}]})}const Tb=et("h3",{class:"font-medium"},"Sitemap",-1),Ob={class:"p-4 pt-0"},Rb=et("p",{class:"text-sm mb-2"}," The following links provide the information present on this page in JSON format. ",-1),Ab=["href"],Bb={__name:"SiteMap",setup(t){const n=Xt(!1),o=js();return(i,l)=>{const c=ft("IconJson"),h=ft("VButton"),f=ft("VTableHeaderCell"),m=ft("VTableHeaderRow"),g=ft("VTableHeader"),y=ft("VTableBodyCell"),x=ft("VTableBodyRow"),M=ft("VTableBody"),D=ft("VTable"),O=ft("VModal");return q(),st("div",null,[rt(h,{primary:"",class:"text-sm md:flex items-center gap-1 hidden",title:"Links used to obtain the information present on this page in JSON format.",onClick:l[0]||(l[0]=S=>n.value=!0)},{default:mt(()=>[rt(c,{class:"w-4 h-4"}),ie(" Sitemap ")]),_:1}),n.value?(q(),At(O,{key:0,onClose:l[1]||(l[1]=S=>n.value=!1)},{header:mt(()=>[Tb]),default:mt(()=>[et("div",Ob,[Rb,rt(D,null,{default:mt(()=>[rt(g,null,{default:mt(()=>[rt(m,null,{default:mt(()=>[rt(f,null,{default:mt(()=>[ie(" Request Key ")]),_:1}),rt(f,null,{default:mt(()=>[ie(" URL ")]),_:1})]),_:1})]),_:1}),rt(M,null,{default:mt(()=>[(q(!0),st(Gt,null,Le(qt(o).sitemap,(S,U)=>(q(),At(x,{key:U},{default:mt(()=>[rt(y,{class:"capitalize"},{default:mt(()=>[ie(se(U.replaceAll(":"," ")),1)]),_:2},1024),rt(y,null,{default:mt(()=>[et("a",{href:S},se(S),9,Ab)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})])]),_:1})):Vt("",!0)])}}},Ib={class:"relative"},Db=et("svg",{class:"h-5 w-5 text-primary-500 print:hidden",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[et("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),zb={key:1,class:"absolute right-0 py-2 bg-white dark:bg-gray-900 rounded-md shadow-xl z-20"},jb={__name:"BreadcrumbDropdown",props:{list:{type:Array,required:!0}},setup(t){const n=Xt(!1);return(o,i)=>{const l=ft("router-link");return q(),st("div",Ib,[et("div",null,[et("button",{class:"inline-flex items-center text-sm hover:text-gray-900 text-primary-500 dark:hover:text-gray-500",onClick:i[0]||(i[0]=c=>n.value=!n.value)},[Te(o.$slots,"default"),Db]),n.value?(q(),st("div",{key:0,class:"fixed inset-0 h-full w-full z-10",onClick:i[1]||(i[1]=c=>n.value=!1)})):Vt("",!0),n.value?(q(),st("div",zb,[(q(!0),st(Gt,null,Le(t.list,c=>(q(),At(l,{key:c.id,class:"block px-4 py-2 text-sm capitalize hover:bg-secondary-color hover:bg-opacity-5",to:{name:"otus-id",params:{id:c.id}}},{default:mt(()=>[ie(se(c.name||o.key),1)]),_:2},1032,["to"]))),128))])):Vt("",!0)])])}}},Nb={class:"inline-flex items-center flex-wrap"},Hb={class:"inline-flex items-center ml-0 text-sm"},Fb=["innerHTML"],Vb={__name:"Breadcrumb",props:{list:{type:Object,default:()=>({})},current:{type:Object,required:!0}},setup(t){return(n,o)=>{const i=ft("IconArrowRight"),l=ft("router-link");return q(),st("ul",Nb,[(q(!0),st(Gt,null,Le(t.list,(c,h,f)=>(q(),st("li",{key:c.id,class:"inline-flex items-center"},[f?(q(),At(i,{key:0,class:"w-3 h-3 mr-0.5 ml-0.5 opacity-50"})):Vt("",!0),c.length===1?(q(),At(l,{key:1,class:"inline-flex items-center text-sm text-accent-100 hover:text-gray-900 dark:hover:text-gray-500 text-secondary-color",to:{name:"otus-id",params:{id:c[0].id}}},{default:mt(()=>[ie(se(h),1)]),_:2},1032,["to"])):(q(),At(jb,{key:2,list:c.map(m=>({...m,name:m.name||h}))},{default:mt(()=>[ie(se(h),1)]),_:2},1032,["list"]))]))),128)),et("li",Hb,[rt(i,{class:"w-3 h-3 mr-0.5 ml-0.5 opacity-50"}),et("span",{innerHTML:t.current.full_name_tag},null,8,Fb)])])}}},$b={__name:"CommonNames",setup(t){const n=Ci(),o=_e(()=>n.taxonomy.commonNames.map(i=>i.name).join("; "));return(i,l)=>(q(),st("span",null,se(o.value),1))}},Ub={class:"text-1xl capitalize"},Gb={class:"text-xl dark:text-gray-100"},Zb=["title","innerHTML"],qb={key:0,class:"ml-1 text-red-600",title:"Invalid"},Kb={class:"text-1xl"},Wb={__name:"TaxaInfo",setup(t){const n=Ci();return(o,i)=>(q(),st("div",null,[et("h2",Ub,se(qt(n).taxon.rank||"Combination"),1),et("h1",Gb,[et("span",null,[et("span",{title:qt(n).taxon.short_status,innerHTML:qt(n).taxon.full_name_tag},null,8,Zb),qt(n).taxon.is_valid?Vt("",!0):(q(),st("span",qb," ✕ "))])]),et("h2",Kb,[rt($b)])]))}},Jb={__name:"DWCDownload",props:{otu:{type:Object,required:!0}},setup(t){const n=t,{url:o,project_token:i}={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',url:null,project_token:null,copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],project_name:"My project",project_citation:null,project_url:null,project_authors:null};function l(){window.open(`${o}/otus/${n.otu.id}/inventory/dwc?project_token=${i}`,"_self")}return(c,h)=>{const f=ft("IconDownload"),m=ft("VButton");return q(),At(m,{primary:"",class:"text-sm flex items-center",title:"Download DwC Occurrences",onClick:h[0]||(h[0]=()=>{l()})},{default:mt(()=>[rt(f,{class:"w-4 h-4 mr-1"}),ie(" DwC ")]),_:1})}}},Yb={class:"bg-base-foreground border-b border-base-muted pl-4 pr-4"},Xb={class:"container mx-auto pt-6 pb-6"},Qb={class:"flex flex-col-reverse md:flex-row justify-between items-start"},t0={class:"mt-8 flex justify-between items-end"},e0={class:"flex flex-row gap-2"},n0={class:"pt-3 pb-4"},r0={class:"container mx-auto box-border"},i0={__name:"Index",setup(t){const n=iv(),o=rd(),i=Xt(n.params),l=[],c=Ci();let h=new AbortController;o.afterEach(O=>{i.value=O.params});const f=_e(()=>c.otu),m=_e(()=>c.taxon),g=_e(()=>{var O,S;return((O=f.value)==null?void 0:O.id)&&((S=m.value)==null?void 0:S.id)});ol(async()=>{await y()}),Ke(()=>n.fullPath,async()=>{h.abort(),h=new AbortController,y()}),an(async()=>{var O,S;((O=f.value)==null?void 0:O.id)!==Number(n.params.id)||!((S=m.value)!=null&&S.id)?await y():M()}),Lr(()=>{c.$reset()});async function y(){c.$reset();try{await c.loadInit({otuId:n.params.id,controller:h}),M()}catch(O){O.name!==go.CanceledError&&x(O)}}function x(O){var S;switch((S=O==null?void 0:O.response)==null?void 0:S.status){case 404:o.replace({name:"httpError400"});break;case 500:o.replace({name:"httpError500"});break}}function M(){fl({title:`My project - ${m.value.full_name}`}),Eb([Sb({id:n.fullPath,name:m.value.full_name,scientificName:{name:m.value.full_name,author:m.value.author,taxonRank:m.value.rank},parentTaxon:{name:m.value.parent.full_name,taxonRank:m.value.parent.rank},commonNames:c.taxonomy.commonNames,alternateName:c.taxonomy.synonyms})])}function D({id:O,otu_valid_id:S}){o.push({name:"otus-id-overview",params:{id:S||O}})}return(O,S)=>{const U=ft("VSkeleton"),C=ft("Autocomplete"),R=ft("ClientOnly"),V=ft("TabItem"),E=ft("TabMenu"),z=ft("router-view");return q(),st("main",null,[et("div",Yb,[et("div",Xb,[et("div",Qb,[rt(U,{class:"w-full md:w-3/4"},{default:mt(()=>{var W;return[g.value?(q(),At(Vb,{key:0,class:"w-full md:w-3/4",list:((W=f.value)==null?void 0:W.parents)||{},current:m.value},null,8,["list","current"])):Vt("",!0)]}),_:1}),rt(C,{class:"print:hidden min-w-full mb-2 md:min-w-fit md:ml-2 md:mb-0 md:w-96",url:"/otus/autocomplete","query-param":"term",label:"label_html",placeholder:"Search name...",params:{having_taxon_name_only:!0},onSelect:D})]),et("div",t0,[rt(U,{lines:2,class:"w-96"},{default:mt(()=>[g.value?(q(),At(Wb,{key:0})):Vt("",!0)]),_:1}),et("div",e0,[rt(R,null,{default:mt(()=>[rt(Bb)]),_:1}),g.value?(q(),At(Jb,{key:0,otu:f.value},null,8,["otu"])):Vt("",!0)])]),l.length?(q(),At(E,{key:0,class:"m-[-1px] print:hidden"},{default:mt(()=>[(q(),st(Gt,null,Le(l,({name:W,label:it})=>rt(V,{key:W,to:{name:W}},{default:mt(()=>[ie(se(it),1)]),_:2},1032,["to"])),64))]),_:1})):Vt("",!0)])]),et("div",n0,[et("div",r0,[g.value?(q(),At(z,{key:qt(n).fullPath,"taxon-id":m.value.id,taxon:m.value,"taxon-rank":m.value.rank_string,"otu-id":f.value.id,otu:f.value},null,8,["taxon-id","taxon","taxon-rank","otu-id","otu"])):Vt("",!0)])])])}}},o0=Es("imageStore",{state:()=>({images:null,controller:null}),actions:{resetRequest(){var t;(t=this.controller)==null||t.abort()},async loadImages(t){const n={extend:["depictions","attribution","source","citations"],otu_scope:["all"]};this.controller=new AbortController;try{const o=await nr("panel:images",()=>on.getOtuImages(t,{params:n,signal:this.controller.signal}));this.images=o.data,this.controller=null}catch(o){o.name!==go.CanceledError&&(this.controller=null)}}}}),s0={__name:"Gallery",props:{otuId:{type:[String,Number],required:!0}},setup(t){const n=t,o=o0(),i=_e(()=>o.images||[]);return ol(async()=>{await o.loadImages(n.otuId)}),an(()=>{o.images||o.loadImages(n.otuId)}),Lr(()=>{o.resetRequest(),o.$reset()}),(l,c)=>{const h=ft("GalleryImage"),f=ft("VCardContent"),m=ft("VCard");return i.value.length?(q(),At(m,{key:0},{default:mt(()=>[rt(f,null,{default:mt(()=>[rt(h,{images:i.value},null,8,["images"])]),_:1})]),_:1})):Vt("",!0)}}},a0=et("h3",null,"JSON Data",-1),l0={key:0,class:"p-5 font-normal"},c0={class:"pb-2 text-sm"},u0=["href"],h0={class:"relative"},d0=["innerHTML"],Pi={__name:"PanelDropdown",props:{panelKey:{type:String,required:!0},menuOptions:{type:Array,default:()=>[]}},setup(t){const n=t,o=_e(()=>i.getRequest(n.panelKey)),i=js(),l=Xt(!1),c=_e(()=>[...n.menuOptions,{label:"JSON Data",action:()=>l.value=!0}]);return(h,f)=>{const m=ft("IconHamburger"),g=ft("Dropdown"),y=ft("VClipboard"),x=ft("VModal");return q(),st(Gt,null,[rt(g,{items:c.value},{button:mt(()=>[rt(m,{class:"text-base-soft h-4"})]),_:1},8,["items"]),l.value?(q(),At(x,{key:0,onClose:f[0]||(f[0]=M=>l.value=!1)},{header:mt(()=>[a0]),default:mt(()=>[o.value?(q(),st("div",l0,[et("h3",c0,[ie(" URL: "),et("a",{href:o.value.url},se(o.value.url),9,u0)]),et("div",h0,[et("p",{class:"bg-base-background p-2 text-sm font-normal whitespace-pre-wrap",innerHTML:JSON.stringify(o.value.data,null,4)},null,8,d0),rt(y,{class:"absolute right-2 top-2 opacity-75",text:JSON.stringify(o.value.data,null,2)},null,8,["text"])])])):Vt("",!0)]),_:1})):Vt("",!0)],64)}}},f0=et("h2",{class:"text-md"},"Type specimen",-1),p0={__name:"PanelTypeSpecimen",props:{otuId:{type:[String,Number],required:!0}},setup(t){const n=t,o=Xt([]);return Ke(()=>n.otuId,()=>{n.otuId&&nr("panel:typeMaterial",()=>on.getOtuTypeMaterial(n.otuId)).then(({data:i})=>{o.value=i.type_materials_catalog_labels.sort((l,c)=>bu.indexOf(l.type_type)-bu.indexOf(c.type_type))})},{immediate:!0}),(i,l)=>{const c=ft("VCardHeader"),h=ft("VCardContent"),f=ft("VCard");return o.value.length?(q(),At(f,{key:0},{default:mt(()=>[rt(c,{class:"flex justify-between"},{default:mt(()=>[f0,rt(Pi,{"panel-key":"panel:typeMaterial"})]),_:1}),rt(h,{class:"text-sm"},{default:mt(()=>[et("p",null,se(o.value[0].label),1)]),_:1})]),_:1})):Vt("",!0)}}},m0=et("h2",{class:"text-md"},"Type",-1),g0=["innerHTML"],_0={__name:"PanelTypeDesignation",props:{taxonId:{type:[String,Number],required:!0}},setup(t){const n=t,o=Xt({}),i=_e(()=>[o.value.subject_object_tag||"",o.value.subject_status_tag||"",o.value.object_object_tag||""].join(" "));return Ke(()=>n.taxonId,async()=>{n.taxonId&&nr("panel:type",()=>on.getTaxonTypeDesignation(n.taxonId)).then(({data:l})=>{o.value=l.type_taxon_name_relationship||{}})},{immediate:!0}),(l,c)=>{const h=ft("VCardHeader"),f=ft("VCardContent"),m=ft("VCard");return q(),At(m,null,{default:mt(()=>[rt(h,{class:"flex justify-between"},{default:mt(()=>[m0,rt(Pi,{"panel-key":"panel:type"})]),_:1}),rt(f,{class:"text-sm"},{default:mt(()=>[et("p",{innerHTML:i.value},null,8,g0)]),_:1})]),_:1})}}};function kd(t,n){const o=t.slice(),i=o.splice(0,n),l=o.splice(-n);return{first:i,middle:o,last:l}}const y0={class:"border-b border-base-muted p-3 px-5"},v0=["title","innerHTML"],b0=["innerHTML"],_a={__name:"PanelCitationRow",props:{citation:{type:Object,required:!0}},setup(t){return(n,o)=>(q(),st("li",y0,[et("span",{class:"break-all block",title:t.citation.label,innerHTML:t.citation.label},null,8,v0),t.citation.type_label?(q(),st("span",{key:0,class:"ml-4 text-base-soft",innerHTML:t.citation.type_label},null,8,b0)):Vt("",!0)]))}},w0={class:"flex justify-start border-b p-3 px-4 cursor-pointer border-base-muted"},Ld={__name:"PanelNomenclatureShowMore",props:{count:{type:Number,required:!0}},setup(t){return(n,o)=>{const i=ft("IconPlusCircle");return q(),st("li",w0,[et("div",{class:"h-5 w-5 text-secondary-color opacity-60 mr-2 cursor-pointer",onClick:o[0]||(o[0]=()=>n.isExpanded=!n.isExpanded)},[rt(i,{class:"h-5 w-5"})]),et("span",null,"... Show all ... ("+se(t.count)+")",1)])}}},x0={class:"text-md"},k0={class:"text-sm"},L0={class:"text-sm"},M0={class:"text-sm"},C0=2,P0={__name:"PanelNomenclature",props:{otuId:{type:[Number,String],required:!0},taxonId:{type:[Number,String],required:!0},taxon:{type:Object,default:void 0},otu:{type:Object,default:void 0}},setup(t){const n=Ci(),o=Xt(!1),i=_e(()=>kd(n.catalog.timeline,C0)),l=_e(()=>[{label:o.value?"Show less":"Show all",action:()=>o.value=!o.value}]);return(c,h)=>{const f=ft("VSpinner"),m=ft("VCardHeader"),g=ft("AnimationOpacity"),y=ft("VCard");return q(),At(y,null,{default:mt(()=>[qt(n).catalog.isLoading?(q(),At(f,{key:0,"logo-class":"w-8 h-8",legend:""})):Vt("",!0),rt(m,{class:"flex justify-between"},{default:mt(()=>[et("h2",x0," Nomenclature ("+se(qt(n).catalog.timeline.length)+") ",1),rt(Pi,{"menu-options":l.value,"panel-key":"taxonomy"},null,8,["menu-options"])]),_:1}),et("ul",k0,[(q(!0),st(Gt,null,Le(i.value.first,x=>(q(),At(_a,{key:x.label,citation:x},null,8,["citation"]))),128)),!o.value&&i.value.middle.length?(q(),At(Ld,{key:0,count:i.value.middle.length,onClick:h[0]||(h[0]=x=>o.value=!0)},null,8,["count"])):Vt("",!0)]),rt(g,null,{default:mt(()=>[il(et("ul",L0,[(q(!0),st(Gt,null,Le(i.value.middle,x=>(q(),At(_a,{key:x.label,citation:x},null,8,["citation"]))),128))],512),[[Ih,o.value]])]),_:1}),et("ul",M0,[(q(!0),st(Gt,null,Le(i.value.last,x=>(q(),At(_a,{key:x.label,citation:x},null,8,["citation"]))),128))])]),_:1})}}},S0={class:"border-b border-base-muted p-3 px-5"},E0=["title","innerHTML"],ya={__name:"PanelReferenceRow",props:{reference:{type:String,required:!0}},setup(t){return(n,o)=>(q(),st("li",S0,[et("span",{class:"break-all block",title:t.reference,innerHTML:t.reference},null,8,E0)]))}},T0={class:"text-md"},O0={class:"text-sm"},R0=2,A0={__name:"PanelNomenclatureReferences",setup(t){const n=Ci(),o=Xt(!1),i=_e(()=>kd(n.catalog.sources,R0)),l=_e(()=>[{label:o.value?"Show less":"Show all",action:()=>o.value=!o.value}]);return(c,h)=>{const f=ft("VSpinner"),m=ft("VCardHeader"),g=ft("AnimationOpacity"),y=ft("VCard");return q(),At(y,null,{default:mt(()=>[qt(n).catalog.isLoading?(q(),At(f,{key:0,"logo-class":"w-8 h-8",legend:""})):Vt("",!0),rt(m,{class:"flex justify-between"},{default:mt(()=>[et("h2",T0," Nomenclature references ("+se(qt(n).catalog.sources.length)+") ",1),rt(Pi,{"menu-options":l.value,"panel-key":"taxonomy"},null,8,["menu-options"])]),_:1}),et("ul",O0,[(q(!0),st(Gt,null,Le(i.value.first,x=>(q(),At(ya,{key:x,reference:x},null,8,["reference"]))),128)),!o.value&&i.value.middle.length?(q(),At(Ld,{key:0,count:i.value.middle.length,onClick:h[0]||(h[0]=x=>o.value=!0)},null,8,["count"])):Vt("",!0),rt(g,null,{default:mt(()=>[il(et("div",null,[(q(!0),st(Gt,null,Le(i.value.middle,x=>(q(),At(ya,{key:x,reference:x},null,8,["reference"]))),128))],512),[[Ih,o.value]])]),_:1}),(q(!0),st(Gt,null,Le(i.value.last,x=>(q(),At(ya,{key:x,reference:x},null,8,["reference"]))),128))])]),_:1})}}};function B0(t,n){return n.split("::").at(2)===t}function I0(t,n){return{type:"Feature",geometry:t,properties:{base:[{type:n}]}}}function D0(t){const n=[],o=[];return t.features.forEach(i=>{const l=i.properties.shape.id,c=i.properties.shape.type;o.includes(i.properties.base.type)||o.push(i.properties.base.type);const h=n.findIndex(f=>f.properties.shape.id===l&&f.properties.shape.type===c);if(h>-1){const f=n[h];f.properties.base.push(i.properties.base),f.properties.target.push(i.properties.target)}else{const f=structuredClone(i);f.properties.base=[f.properties.base],f.properties.target=[f.properties.target],n.push(f)}}),o.sort(),{shapeTypes:o,features:n}}const z0=Es("distributionStore",{state:()=>({distribution:{geojson:null,errorMessage:null,currentShapeTypes:[],cachedMap:null},controller:null}),actions:{resetRequest(){var t;(t=this.controller)==null||t.abort()},loadCachedMap(t){on.getCachedMap(t,{signal:this.controller.signal}).then(n=>{this.distribution.cachedMap=n.data})},async getAggregateShape(t){nr("panel:map",()=>on.getOtuDistribution(t,{signal:this.controller.signal})).then(({data:n})=>{const o=JSON.parse(n.cached_map.geo_json);this.distribution.currentShapeTypes=["Aggregate"],this.distribution.geojson={features:[I0(o,"Aggregate")]},this.loadCachedMap(n.cached_map.id)}).catch(n=>{n.name!=go.CanceledError&&(this.distribution.errorMessage=n.response.data.error,this.distribution.currentShapeTypes=[],this.distribution.geojson=[])})},async loadDistribution({otuId:t,rankString:n}){const o=n&&B0("SpeciesGroup",n);this.controller=new AbortController,o?nr("panel:map",()=>on.getOtuGeoJSONDistribution(t,{signal:this.controller.signal})).then(({data:i})=>{if(i.request_too_large)this.distribution.geojson=null,this.distribution.errorMessage=i.message;else{const{features:l,shapeTypes:c}=D0(i);this.distribution.currentShapeTypes=c,this.distribution.geojson={features:l}}}).catch(i=>{i.name!==go.CanceledError&&this.getAggregateShape(t)}):this.getAggregateShape(t)}}});const j0=et("h3",{class:"font-medium"},"Cached map",-1),N0={class:"p-4 pt-0"},H0={key:0,class:"text-success flex text-sm items-center"},F0=et("span",{class:"ml-1"}," Map is synchronized with the latest changes * ",-1),V0={key:1,class:"text-warning flex text-sm items-center"},$0=et("span",{class:"ml-1"}," Map is not synchronized with the latest changes * ",-1),U0=et("p",{class:"italic text-xs pt-4"}," * Aggregate maps are generated from georeference and asserted distribution data. Map computation takes time, and as such they are re-calculated periodically rather than when individual georeferences and asserted distributions are created, destroyed, or updated. When a warning notice is present then the map is not syncronized with the latest changes to the underlying data. ",-1),G0={__name:"CachedMap",props:{cachedMap:{type:Object,required:!0}},setup(t){const n=Xt(!1);return(o,i)=>{const l=ft("IconCheck"),c=ft("IconWarning"),h=ft("VButton"),f=ft("VTableHeaderCell"),m=ft("VTableHeaderRow"),g=ft("VTableHeader"),y=ft("VTableBodyCell"),x=ft("VTableBodyRow"),M=ft("VTableBody"),D=ft("VTable"),O=ft("VModal");return q(),st(Gt,null,[rt(h,{class:"left-2 bottom-2 !px-2 py-2 rounded-full absolute z-[1500]",primary:"",title:"Cached map",onClick:i[0]||(i[0]=S=>n.value=!0)},{default:mt(()=>[t.cachedMap.synced?(q(),At(l,{key:0,class:"w-4 h-4"})):(q(),At(c,{key:1,class:"w-4 h-4"}))]),_:1}),n.value?(q(),At(O,{key:0,onClose:i[1]||(i[1]=()=>n.value=!1)},{header:mt(()=>[j0]),default:mt(()=>[et("div",N0,[rt(D,null,{default:mt(()=>[rt(g,null,{default:mt(()=>[rt(m,null,{default:mt(()=>[rt(f,null,{default:mt(()=>[ie("Data")]),_:1}),rt(f)]),_:1})]),_:1}),rt(M,null,{default:mt(()=>[rt(x,null,{default:mt(()=>[rt(y,null,{default:mt(()=>[ie(" Is synced ")]),_:1}),rt(y,null,{default:mt(()=>[t.cachedMap.synced?(q(),st("p",H0,[rt(l,{class:"w-4 h-4"}),F0])):(q(),st("p",V0,[rt(c,{class:"w-4 h-4"}),$0]))]),_:1})]),_:1}),rt(x,null,{default:mt(()=>[rt(y,null,{default:mt(()=>[ie(" Last update ")]),_:1}),rt(y,null,{default:mt(()=>[ie(se(new Date(t.cachedMap.updated_at)),1)]),_:1})]),_:1})]),_:1}),rt(g,null,{default:mt(()=>[rt(m,null,{default:mt(()=>[rt(f,null,{default:mt(()=>[ie("Source")]),_:1}),rt(f,null,{default:mt(()=>[ie("Total")]),_:1})]),_:1})]),_:1}),rt(M,null,{default:mt(()=>[(q(!0),st(Gt,null,Le(t.cachedMap.source_scope,(S,U)=>(q(),At(x,{key:U},{default:mt(()=>[rt(y,{class:"capitalize"},{default:mt(()=>[ie(se(U.replaceAll("_"," ")),1)]),_:2},1024),rt(y,null,{default:mt(()=>[ie(se(S),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),U0])]),_:1})):Vt("",!0)],64)}}},Z0={class:"bottom-0 w-screen bg-base-foreground z-[1000] left-0 p-4 text-sm flex flex-row justify-between align-middle box-border border-b border-base-muted"},q0=["innerHTML"],K0={__name:"SearchBar",props:{label:{type:String,required:!0}},emits:["close"],setup(t,{emit:n}){return(o,i)=>{const l=ft("IconClose");return q(),st("div",Z0,[et("div",null,[et("span",{class:"ml-2",innerHTML:t.label},null,8,q0)]),rt(l,{class:"cursor-pointer",onClick:i[0]||(i[0]=()=>n("close"))})])}}},W0={key:1,class:"text-lg text-center text-base-lighter align-middle p-4"},J0={__name:"ListResults",props:{list:{type:Array,default:()=>[]}},emits:["close","close:table"],setup(t,{emit:n}){return(o,i)=>{const l=ft("IconArrowRight"),c=ft("VTableHeaderCell"),h=ft("VTableHeaderRow"),f=ft("VTableHeader"),m=ft("RouterLink"),g=ft("VTableBodyCell"),y=ft("VTableBodyRow"),x=ft("VTableBody"),M=ft("VTable");return t.list.length?(q(),At(M,{key:0,class:"shadow-md"},{default:mt(()=>[rt(f,null,{default:mt(()=>[rt(h,null,{default:mt(()=>[rt(c,{class:"w-full flex justify-between box-border items-center"},{default:mt(()=>[et("span",null,"OTU ("+se(t.list.length)+")",1),rt(l,{class:"opacity-50 cursor-pointer w-4 h-4",onClick:i[0]||(i[0]=D=>n("close:table"))})]),_:1})]),_:1})]),_:1}),rt(x,null,{default:mt(()=>[(q(!0),st(Gt,null,Le(t.list,D=>(q(),At(y,{key:D.id},{default:mt(()=>[rt(g,null,{default:mt(()=>[rt(m,{innerHTML:D.object_tag,to:{name:"otus-id",params:{id:D.id}},onClick:i[1]||(i[1]=()=>n("close"))},null,8,["innerHTML","to"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):(q(),st("div",W0," No OTUs found in this area "))}}};const Y0={__name:"OtuSearch",props:{otu:{type:Array,default:()=>[]},shapes:{type:Object,default:void 0}},emits:["close"],setup(t,{emit:n}){const o=t,i=Xt(),l=Xt(null),c=Xt([]),h=Xt(!1),f=Xt(),m=Xt(6),g=Xt(6),y=_e(()=>!!o.shapes&&g.value<=m.value);an(()=>{document.addEventListener("keyup",x),document.body.classList.add("overflow-hidden")}),Zr(()=>{document.removeEventListener("keyup",x),document.body.classList.remove("overflow-hidden")});const x=({key:U})=>{switch(U){case"Escape":n("close");break}};function M(U){const C={geo_json:U,taxon_name_id:[o.otu.taxon_name_id],descendants:!0,per:5e3};f.value=!0,on.getOtus(C).then(({data:R})=>{c.value=R,h.value=!0}).finally(R=>{f.value=!1})}function D(U){O(),y.value&&l.value.resizeMap()}function O(){g.value=l.value.getMapObject().getZoom()}function S(){m.value=l.value.getMapObject().getZoom(),O()}return(U,C)=>{const R=ft("VSpinner"),V=ft("VMap");return q(),st("div",{ref_key:"root",ref:i,class:"w-screen h-screen fixed top-0 left-0 z-[5000] flex flex-col"},[f.value?(q(),At(R,{key:0})):Vt("",!0),rt(K0,{label:t.otu.object_tag,onClose:C[0]||(C[0]=()=>n("close"))},null,8,["label"]),et("div",{class:hn(["w-full h-full relative",{"disable-zoom-out":y.value}])},[rt(V,{ref_key:"mapRef",ref:l,class:"w-full h-full",controls:"",dragging:!y.value,"zoom-bounds":m.value,geojson:t.shapes,"onGeojson:ready":S,"onAdd:layer":C[1]||(C[1]=E=>M(JSON.stringify(E.geometry))),"onEdit:layer":C[2]||(C[2]=E=>M(JSON.stringify(E.geometry))),"onDrag:layer":C[3]||(C[3]=E=>M(JSON.stringify(E.geometry))),"onZoom:change":D,zoom:4},null,8,["dragging","zoom-bounds","geojson"]),et("div",{class:hn(["h-full md:w-96 absolute top-0 bg-base-background z-[2000] overflow-auto ease-in-out duration-300 w-full",{"md:-right-96 -right-full":!h.value,"right-0":h.value}])},[h.value?(q(),At(J0,{key:0,list:c.value,onClose:C[4]||(C[4]=()=>n("close")),"onClose:table":C[5]||(C[5]=()=>h.value=!1)},null,8,["list"])):Vt("",!0)],2)],2)],512)}}},X0=re(Y0,[["__scopeId","data-v-3caf981b"]]),Q0={class:"relative"},tw={key:0,class:"flex flex-row p-2 text-xs italic"},ew={key:1,class:"flex flex-row p-2 gap-2 text-xs"},nw=2,rw={__name:"PanelMap",props:{otuId:{type:[String,Number],required:!0},otu:{type:Object,required:!0},taxon:{type:Object,required:!0}},setup(t){const n=t,o=Xt(!0),i=Xt(!1),l=z0(),c={AssertedDistribution:{label:"Asserted distribution",background:"bg-map-asserted"},Georeference:{label:"Georeference",background:"bg-map-georeference"},TypeMaterial:{label:"Type material",background:"bg-map-type-material"},CollectionObject:{label:"Collection object",background:"bg-map-collection-object"},Aggregate:{label:"Aggregate (Asserted distribution & Georeference)",background:"bg-map-aggregate"}};return an(()=>{o.value=!0,l.loadDistribution({otuId:n.otuId,rankString:n.taxon.rank_string})}),Lr(()=>{l.resetRequest(),l.$reset()}),(h,f)=>{const m=ft("VSpinner"),g=ft("VMap"),y=ft("VButton"),x=ft("ClientOnly"),M=ft("VCard");return q(),At(M,null,{default:mt(()=>[et("div",Q0,[rt(x,null,{default:mt(()=>[o.value?(q(),At(m,{key:0})):Vt("",!0),rt(g,{class:"h-96 max-h-96",dragging:"",zoom:nw,geojson:qt(l).distribution.geojson,"onGeojson:ready":f[0]||(f[0]=()=>o.value=!1)},null,8,["geojson"]),rt(y,{class:"h-6 text-sm absolute right-3 top-3 z-[400]",primary:"",onClick:f[1]||(f[1]=()=>i.value=!0)},{default:mt(()=>[ie(" Search ")]),_:1}),i.value?(q(),At(X0,{key:1,otu:t.otu,shapes:qt(l).distribution.geojson,onClose:f[2]||(f[2]=()=>i.value=!1)},null,8,["otu","shapes"])):Vt("",!0),qt(l).distribution.cachedMap?(q(),At(G0,{key:2,"cached-map":qt(l).distribution.cachedMap},null,8,["cached-map"])):Vt("",!0)]),_:1})]),qt(l).distribution.errorMessage?(q(),st("div",tw," * "+se(qt(l).distribution.errorMessage),1)):Vt("",!0),qt(l).distribution.currentShapeTypes.length?(q(),st("div",ew,[(q(!0),st(Gt,null,Le(qt(l).distribution.currentShapeTypes,D=>(q(),st("div",{key:D,class:"flex flex-row items-center"},[et("div",{class:hn(["w-3 h-3 m-1 rounded-sm",c[D].background])},null,2),et("span",null,se(c[D].label),1)]))),128))])):Vt("",!0)]),_:1})}}},iw={class:"synonyms"},ow=et("span",{class:"text-orange-500 mr-1"},"=",-1),sw=["innerHTML"],aw={__name:"DescendantsSynonymList",props:{list:{type:Array,required:!0}},setup(t){const n=t;return(o,i)=>(q(),st("ul",iw,[(q(!0),st(Gt,null,Le(n.list,l=>(q(),st("li",{key:l},[ow,et("span",{innerHTML:l},null,8,sw)]))),128))]))}};const lw={key:0,class:"tree"},cw={__name:"DescendantsTree",props:{taxonomy:{type:Object,required:!0},level:{type:Number,default:1}},setup(t){const n=t,o=Xt(!!n.taxonomy.descendants.length),i=Xt([...n.taxonomy.descendants]);Ke(o,c=>{c&&l()});const l=()=>{i.value.length||on.getTaxonomy(n.taxonomy.otu_id,{params:{max_descendants_depth:1}}).then(({data:c})=>{i.value=c.descendants})};return(c,h)=>{const f=ft("button-expand"),m=ft("router-link"),g=ft("AnimationOpacity");return Object.keys(t.taxonomy).length?(q(),st("li",{key:t.taxonomy.otu_id},[t.taxonomy.leaf_node?Vt("",!0):(q(),At(f,{key:0,modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=y=>o.value=y),class:"absolute -left-2.5"},null,8,["modelValue"])),rt(m,{class:"text-primary-500",to:{name:"otus-id",params:{id:t.taxonomy.otu_id}},innerHTML:t.taxonomy.name},null,8,["to","innerHTML"]),t.taxonomy.nomenclatural_synonyms.length?(q(),At(aw,{key:1,class:"pb-4",list:t.taxonomy.nomenclatural_synonyms},null,8,["list"])):Vt("",!0),rt(g,null,{default:mt(()=>[i.value.length?(q(),st("ul",lw,[(q(!0),st(Gt,null,Le(i.value,y=>(q(),At(g,{key:y.otu_id},{default:mt(()=>[o.value?(q(),At(Md,{key:0,taxonomy:y},null,8,["taxonomy"])):Vt("",!0)]),_:2},1024))),128))])):Vt("",!0)]),_:1})])):Vt("",!0)}}},Md=re(cw,[["__scopeId","data-v-b79ba271"]]);const uw=t=>(oh("data-v-a4e98ef8"),t=t(),sh(),t),hw=uw(()=>et("h2",{class:"text-md"},"Descendants and synonyms",-1)),dw={class:"tree ml-2"},fw={__name:"Descendants",props:{otuId:{type:[String,Number],required:!0}},setup(t){const n=t,o=Xt(null),i=Xt(!1);return Ke(()=>n.otuId,async()=>{n.otuId&&(i.value=!0,nr("panel:descendants",()=>on.getTaxonomy(n.otuId,{params:{max_descendants_depth:1}})).then(({data:l})=>{o.value=l}).finally(()=>i.value=!1))},{immediate:!0}),(l,c)=>{const h=ft("VSpinner"),f=ft("ClientOnly"),m=ft("VCardHeader"),g=ft("AnimationOpacity"),y=ft("VCardContent"),x=ft("VCard");return q(),At(x,null,{default:mt(()=>[rt(f,null,{default:mt(()=>[i.value?(q(),At(h,{key:0,"logo-class":"w-8 h-8",legend:""})):Vt("",!0)]),_:1}),rt(m,{class:"flex justify-between"},{default:mt(()=>[hw,rt(Pi,{"panel-key":"panel:descendants"})]),_:1}),rt(y,{class:"text-sm"},{default:mt(()=>[et("ul",dw,[rt(g,null,{default:mt(()=>[o.value&&(o.value.nomenclatural_synonyms.length||o.value.descendants.length)?(q(),At(Md,{key:0,taxonomy:o.value},null,8,["taxonomy"])):Vt("",!0)]),_:1})])]),_:1})]),_:1})}}},pw=re(fw,[["__scopeId","data-v-a4e98ef8"]]),mw=["innerHTML"],gw={__name:"PanelContentTopic",props:{title:{type:String,required:!0},textList:{type:Array,required:!0}},setup(t){return(n,o)=>{const i=ft("VCardHeader"),l=ft("VCardContent");return q(),st(Gt,null,[rt(i,{class:"border-t border-base-muted first:border-t-0"},{default:mt(()=>[ie(se(t.title),1)]),_:1}),rt(l,null,{default:mt(()=>[(q(!0),st(Gt,null,Le(t.textList,(c,h)=>(q(),st("ul",{key:h,class:"pt-1 text-sm"},[et("li",{innerHTML:c},null,8,mw)]))),128))]),_:1})],64)}}},_w={__name:"PanelContent",props:{otuId:{type:Number,required:!0}},setup(t){const n=t,o=Xt([]),i=new AbortController,l=_e(()=>o.value.reduce((c,h)=>(c[h.name]?c[h.name].push(h.text):c[h.name]=[h.text],c),{}));return mh(()=>{nr("panel:content",()=>on.getOtuContent(n.otuId,{params:{extend:["depiction"]},signal:i.signal})).then(({data:c})=>{o.value=c}).catch(c=>{})}),Lr(()=>{i.abort()}),(c,h)=>{const f=ft("VCard");return o.value.length?(q(),At(f,{key:0},{default:mt(()=>[(q(!0),st(Gt,null,Le(l.value,(m,g)=>(q(),At(gw,{key:g,title:g,"text-list":m},null,8,["title","text-list"]))),128))]),_:1})):Vt("",!0)}}},yw=et("h2",{class:"text-md"},"Stats",-1),vw={__name:"PanelStats",props:{otuId:{type:[Number,String],required:!0},taxonId:{type:[Number,String],required:!0},taxon:{type:Object,default:void 0},otu:{type:Object,default:void 0}},setup(t){const n=Ci();return(o,i)=>{const l=ft("VSpinner"),c=ft("VCardHeader"),h=ft("VTableHeaderCell"),f=ft("VTableHeaderRow"),m=ft("VTableHeader"),g=ft("VTableBodyCell"),y=ft("VTableBodyRow"),x=ft("VTableBody"),M=ft("VTable"),D=ft("VCardContent"),O=ft("VCard");return q(),At(O,null,{default:mt(()=>[qt(n).catalog.isLoading?(q(),At(l,{key:0,"logo-class":"w-8 h-8",legend:""})):Vt("",!0),rt(c,{class:"flex justify-between"},{default:mt(()=>[yw,rt(Pi,{"panel-key":"taxonomy"})]),_:1}),rt(D,{class:"text-sm"},{default:mt(()=>[rt(M,null,{default:mt(()=>[rt(m,null,{default:mt(()=>[rt(f,null,{default:mt(()=>[rt(h,{class:"bg-base-foreground"}),rt(h,{title:"OTUs linked to valid protonyms"},{default:mt(()=>[ie(" Taxa ")]),_:1}),rt(h,{title:"Taxon names",class:"border-l border-base-border"},{default:mt(()=>[ie(" Names ")]),_:1}),rt(h,{colspan:"2",class:"bg-base-foreground"})]),_:1}),rt(f,null,{default:mt(()=>[rt(h,null,{default:mt(()=>[ie("Rank")]),_:1}),rt(h,{title:"OTUs linked to valid protonyms"},{default:mt(()=>[ie("Total")]),_:1}),rt(h,{title:"Taxon names",class:"border-l border-base-border"},{default:mt(()=>[ie(" Total ")]),_:1}),rt(h,null,{default:mt(()=>[ie(" Valid ")]),_:1}),rt(h,null,{default:mt(()=>[ie(" Invalid ")]),_:1})]),_:1})]),_:1}),rt(x,null,{default:mt(()=>[(q(!0),st(Gt,null,Le(qt(n).catalog.stats.taxa,(S,U)=>(q(),At(y,{key:U},{default:mt(()=>[rt(g,{class:"capitalize"},{default:mt(()=>[ie(se(U),1)]),_:2},1024),rt(g,null,{default:mt(()=>[ie(se(S),1)]),_:2},1024),rt(g,{class:"border-l border-base-border"},{default:mt(()=>[ie(se(qt(n).catalog.stats.names[U].invalid+qt(n).catalog.stats.names[U].valid),1)]),_:2},1024),rt(g,null,{default:mt(()=>[ie(se(qt(n).catalog.stats.names[U].valid),1)]),_:2},1024),rt(g,null,{default:mt(()=>[ie(se(qt(n).catalog.stats.names[U].invalid),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})}}},wu={left:[{component:s0},{component:p0,available:[Cb]},{component:_0,available:[Lb,Mb]},{component:P0},{component:A0}],right:[{component:rw},{component:pw},{component:_w},{component:vw}]},bw={class:"grid grid-cols-1 gap-3 md:grid-cols-2"},ww={class:"grid grid-cols-1 gap-3 auto-rows-min"},xw={class:"grid grid-cols-1 auto-rows-min gap-3"},kw={__name:"Overview",props:{taxonId:{type:[Number,String],required:!0},taxonRank:{type:[String,null],required:!0},otuId:{type:[Number,String],required:!0},otu:{type:Object,required:!0},taxon:{type:Object,required:!0}},setup(t){const n=(o,i)=>o.some(l=>i==null?void 0:i.includes(l));return(o,i)=>(q(),st("div",null,[et("div",bw,[et("div",ww,[(q(!0),st(Gt,null,Le(qt(wu).left,({component:l,available:c})=>(q(),st(Gt,{key:l},[!c||n(c,t.taxonRank)?(q(),At(Pa(l),{key:0,"otu-id":t.otuId,otu:t.otu,"taxon-id":t.taxonId,taxon:t.taxon},null,8,["otu-id","otu","taxon-id","taxon"])):Vt("",!0)],64))),128))]),et("div",xw,[(q(!0),st(Gt,null,Le(qt(wu).right,({component:l,available:c})=>(q(),st(Gt,{key:l},[!c||n(c,t.taxonRank)?(q(),At(Pa(l),{key:0,"otu-id":t.otuId,otu:t.otu,"taxon-id":t.taxonId,taxon:t.taxon},null,8,["otu-id","otu","taxon-id","taxon"])):Vt("",!0)],64))),128))])])]))}},Lw=[{name:"otus-id",path:"/otus/:id",component:i0,redirect:{name:"otus-id-overview"},children:[{path:"overview",name:"otus-id-overview",component:kw}]}],Mw="modulepreload",Cw=function(t){return"/taxonpages/"+t},xu={},Cd=function(n,o,i){if(!o||o.length===0)return n();const l=document.getElementsByTagName("link");return Promise.all(o.map(c=>{if(c=Cw(c),c in xu)return;xu[c]=!0;const h=c.endsWith(".css"),f=h?'[rel="stylesheet"]':"";if(!!i)for(let y=l.length-1;y>=0;y--){const x=l[y];if(x.href===c&&(!h||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${f}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":Mw,h||(g.as="script",g.crossOrigin=""),g.href=c,document.head.appendChild(g),h)return new Promise((y,x)=>{g.addEventListener("load",y),g.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${c}`)))})})).then(()=>n()).catch(c=>{const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=c,window.dispatchEvent(h),!h.defaultPrevented)throw c})},Pw=()=>Cd(()=>import("./home-ca63a6ec.js"),[]),Sw=()=>Cd(()=>import("./about-e9757560.js"),[]),Ew=[{name:"home",path:"/",component:Pw,props:!0,alias:"/home"},{name:"about",path:"/about",component:Sw,props:!0}],Tw=Object.assign({"/src/modules/home/router/index.js":z_,"/src/modules/httpErrorPages/router/index.js":ty,"/src/modules/otus/router/index.js":Lw}),Ow=Object.assign({}),{base_url:ku,hash_mode:Rw}={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',url:null,project_token:null,copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],project_name:"My project",project_citation:null,project_url:null,project_authors:null},Aw=[].concat(...Object.values(Tw),...Object.values(Ow)),Bw=[...Ew,...Aw];function Iw(){return Rw?yy(ku):Kh(ku)}function Dw(){return nv({history:Iw(),routes:Bw,scrollBehavior(t,n,o){if(t.hash)return{el:t.hash}}})}function zw({originUrl:t}){const{url:n,project_token:o}={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',url:null,project_token:null,copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],project_name:"My project",project_citation:null,project_url:null,project_authors:null},l=Um(n&&o?l_:p_),c=Dw(),h=L_();return xg({plugins:[x_({host:t})]}),l.use(c),l.use(h),{app:l,router:c,store:h}}var jw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var $a={exports:{}};/* @preserve + * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com + * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade + */(function(t,n){(function(o,i){i(n)})(jw,function(o){var i="1.9.4";function l(e){var s,u,p,v;for(u=1,p=arguments.length;u"u"||!L||!L.Mixin)){e=V(e)?e:[e];for(var s=0;s0?Math.floor(e):Math.ceil(e)};wt.prototype={clone:function(){return new wt(this.x,this.y)},add:function(e){return this.clone()._add(Dt(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(Dt(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new wt(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new wt(this.x/e.x,this.y/e.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=de(this.x),this.y=de(this.y),this},distanceTo:function(e){e=Dt(e);var s=e.x-this.x,u=e.y-this.y;return Math.sqrt(s*s+u*u)},equals:function(e){return e=Dt(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=Dt(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+M(this.x)+", "+M(this.y)+")"}};function Dt(e,s,u){return e instanceof wt?e:V(e)?new wt(e[0],e[1]):e==null?e:typeof e=="object"&&"x"in e&&"y"in e?new wt(e.x,e.y):new wt(e,s,u)}function Bt(e,s){if(e)for(var u=s?[e,s]:e,p=0,v=u.length;p=this.min.x&&u.x<=this.max.x&&s.y>=this.min.y&&u.y<=this.max.y},intersects:function(e){e=$t(e);var s=this.min,u=this.max,p=e.min,v=e.max,P=v.x>=s.x&&p.x<=u.x,Z=v.y>=s.y&&p.y<=u.y;return P&&Z},overlaps:function(e){e=$t(e);var s=this.min,u=this.max,p=e.min,v=e.max,P=v.x>s.x&&p.xs.y&&p.y=s.lat&&v.lat<=u.lat&&p.lng>=s.lng&&v.lng<=u.lng},intersects:function(e){e=fe(e);var s=this._southWest,u=this._northEast,p=e.getSouthWest(),v=e.getNorthEast(),P=v.lat>=s.lat&&p.lat<=u.lat,Z=v.lng>=s.lng&&p.lng<=u.lng;return P&&Z},overlaps:function(e){e=fe(e);var s=this._southWest,u=this._northEast,p=e.getSouthWest(),v=e.getNorthEast(),P=v.lat>s.lat&&p.lats.lng&&p.lng1,Ne=function(){var e=!1;try{var s=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",x,s),window.removeEventListener("testPassiveEventSupport",x,s)}catch{}return e}(),Rn=function(){return!!document.createElement("canvas").getContext}(),qr=!!(document.createElementNS&&ht("svg").createSVGRect),Si=!!qr&&function(){var e=document.createElement("div");return e.innerHTML="",(e.firstChild&&e.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Mr=!qr&&function(){try{var e=document.createElement("div");e.innerHTML='';var s=e.firstChild;return s.style.behavior="url(#default#VML)",s&&typeof s.adj=="object"}catch{return!1}}(),Ns=navigator.platform.indexOf("Mac")===0,Ei=navigator.platform.indexOf("Linux")===0;function tn(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var Ht={ie:Ot,ielt9:B,edge:b,webkit:k,android:T,android23:I,androidStock:Q,opera:nt,chrome:vt,gecko:Tt,safari:jt,phantom:Wt,opera12:Qt,win:ve,ie3d:Yt,webkit3d:ye,gecko3d:ue,any3d:be,mobile:Re,mobileWebkit:Ge,mobileWebkit3d:Ze,msPointer:fn,pointer:ln,touch:cn,touchNative:We,mobileOpera:Ln,mobileGecko:$n,retina:qe,passiveEvents:Ne,canvas:Rn,svg:qr,vml:Mr,inlineSvg:Si,mac:Ns,linux:Ei},Ti=Ht.msPointer?"MSPointerDown":"pointerdown",An=Ht.msPointer?"MSPointerMove":"pointermove",Bn=Ht.msPointer?"MSPointerUp":"pointerup",wo=Ht.msPointer?"MSPointerCancel":"pointercancel",Cr={touchstart:Ti,touchmove:An,touchend:Bn,touchcancel:wo},ir={touchstart:Wr,touchmove:Kr,touchend:Kr,touchcancel:Kr},or={},Oi=!1;function xo(e,s,u){return s==="touchstart"&&Bi(),ir[s]?(u=ir[s].bind(this,u),e.addEventListener(Cr[s],u,!1),u):(console.warn("wrong event specified:",s),x)}function Hs(e,s,u){if(!Cr[s]){console.warn("wrong event specified:",s);return}e.removeEventListener(Cr[s],u,!1)}function ko(e){or[e.pointerId]=e}function Ri(e){or[e.pointerId]&&(or[e.pointerId]=e)}function Ai(e){delete or[e.pointerId]}function Bi(){Oi||(document.addEventListener(Ti,ko,!0),document.addEventListener(An,Ri,!0),document.addEventListener(Bn,Ai,!0),document.addEventListener(wo,Ai,!0),Oi=!0)}function Kr(e,s){if(s.pointerType!==(s.MSPOINTER_TYPE_MOUSE||"mouse")){s.touches=[];for(var u in or)s.touches.push(or[u]);s.changedTouches=[s],e(s)}}function Wr(e,s){s.MSPOINTER_TYPE_TOUCH&&s.pointerType===s.MSPOINTER_TYPE_TOUCH&&G(s),Kr(e,s)}function Lo(e){var s={},u,p;for(p in e)u=e[p],s[p]=u&&u.bind?u.bind(e):u;return e=s,s.type="dblclick",s.detail=2,s.isTrusted=!1,s._simulated=!0,s}var Fs=200;function Pr(e,s){e.addEventListener("dblclick",s);var u=0,p;function v(P){if(P.detail!==1){p=P.detail;return}if(!(P.pointerType==="mouse"||P.sourceCapabilities&&!P.sourceCapabilities.firesTouchEvents)){var Z=pt(P);if(!(Z.some(function(lt){return lt instanceof HTMLLabelElement&<.attributes.for})&&!Z.some(function(lt){return lt instanceof HTMLInputElement||lt instanceof HTMLSelectElement}))){var tt=Date.now();tt-u<=Fs?(p++,p===2&&s(Lo(P))):p=1,u=tt}}}return e.addEventListener("click",v),{dblclick:s,simDblclick:v}}function Vs(e,s){e.removeEventListener("dblclick",s.dblclick),e.removeEventListener("click",s.simDblclick)}var Jr=Xr(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Un=Xr(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Mo=Un==="webkitTransition"||Un==="OTransition"?Un+"End":"transitionend";function Co(e){return typeof e=="string"?document.getElementById(e):e}function sr(e,s){var u=e.style[s]||e.currentStyle&&e.currentStyle[s];if((!u||u==="auto")&&document.defaultView){var p=document.defaultView.getComputedStyle(e,null);u=p?p[s]:null}return u==="auto"?null:u}function he(e,s,u){var p=document.createElement(e);return p.className=s||"",u&&u.appendChild(p),p}function Ce(e){var s=e.parentNode;s&&s.removeChild(e)}function Sr(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function Gn(e){var s=e.parentNode;s&&s.lastChild!==e&&s.appendChild(e)}function Zn(e){var s=e.parentNode;s&&s.firstChild!==e&&s.insertBefore(e,s.firstChild)}function Yr(e,s){if(e.classList!==void 0)return e.classList.contains(s);var u=Er(e);return u.length>0&&new RegExp("(^|\\s)"+s+"(\\s|$)").test(u)}function ee(e,s){if(e.classList!==void 0)for(var u=O(s),p=0,v=u.length;p0?2*window.devicePixelRatio:1;function Rt(e){return Ht.edge?e.wheelDeltaY/2:e.deltaY&&e.deltaMode===0?-e.deltaY/Mt:e.deltaY&&e.deltaMode===1?-e.deltaY*20:e.deltaY&&e.deltaMode===2?-e.deltaY*60:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?-e.detail*20:e.detail?e.detail/-32765*60:0}function Zt(e,s){var u=s.relatedTarget;if(!u)return!0;try{for(;u&&u!==e;)u=u.parentNode}catch{return!1}return u!==e}var ne={__proto__:null,on:te,off:a,stopPropagation:j,disableScrollPropagation:$,disableClickPropagation:F,preventDefault:G,stop:X,getPropagationPath:pt,getMousePosition:ut,getWheelDelta:Rt,isExternalTarget:Zt,addListener:te,removeListener:a},we=Ft.extend({run:function(e,s,u,p){this.stop(),this._el=e,this._inProgress=!0,this._duration=u||.25,this._easeOutPower=1/Math.max(p||.5,.2),this._startPos=pn(e),this._offset=s.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=gt(this._animate,this),this._step()},_step:function(e){var s=+new Date-this._startTime,u=this._duration*1e3;sthis.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,s){this._enforcingBounds=!0;var u=this.getCenter(),p=this._limitCenter(u,this._zoom,fe(e));return u.equals(p)||this.panTo(p,s),this._enforcingBounds=!1,this},panInside:function(e,s){s=s||{};var u=Dt(s.paddingTopLeft||s.padding||[0,0]),p=Dt(s.paddingBottomRight||s.padding||[0,0]),v=this.project(this.getCenter()),P=this.project(e),Z=this.getPixelBounds(),tt=$t([Z.min.add(u),Z.max.subtract(p)]),lt=tt.getSize();if(!tt.contains(P)){this._enforcingBounds=!0;var kt=P.subtract(tt.getCenter()),It=tt.extend(P).getSize().subtract(lt);v.x+=kt.x<0?-It.x:It.x,v.y+=kt.y<0?-It.y:It.y,this.panTo(this.unproject(v),s),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=l({animate:!1,pan:!0},e===!0?{animate:!0}:e);var s=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var u=this.getSize(),p=s.divideBy(2).round(),v=u.divideBy(2).round(),P=p.subtract(v);return!P.x&&!P.y?this:(e.animate&&e.pan?this.panBy(P):(e.pan&&this._rawPanBy(P),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(h(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:s,newSize:u}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=l({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var s=h(this._handleGeolocationResponse,this),u=h(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(s,u,e):navigator.geolocation.getCurrentPosition(s,u,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var s=e.code,u=e.message||(s===1?"permission denied":s===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:s,message:"Geolocation error: "+u+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var s=e.coords.latitude,u=e.coords.longitude,p=new ae(s,u),v=p.toBounds(e.coords.accuracy*2),P=this._locateOptions;if(P.setView){var Z=this.getBoundsZoom(v);this.setView(p,P.maxZoom?Math.min(Z,P.maxZoom):Z)}var tt={latlng:p,bounds:v,timestamp:e.timestamp};for(var lt in e.coords)typeof e.coords[lt]=="number"&&(tt[lt]=e.coords[lt]);this.fire("locationfound",tt)}},addHandler:function(e,s){if(!s)return this;var u=this[e]=new s(this);return this._handlers.push(u),this.options[e]&&u.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{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Ce(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(at(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var e;for(e in this._layers)this._layers[e].remove();for(e in this._panes)Ce(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,s){var u="leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),p=he("div",u,s||this._mapPane);return e&&(this._panes[e]=p),p},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds(),s=this.unproject(e.getBottomLeft()),u=this.unproject(e.getTopRight());return new Me(s,u)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,s,u){e=fe(e),u=Dt(u||[0,0]);var p=this.getZoom()||0,v=this.getMinZoom(),P=this.getMaxZoom(),Z=e.getNorthWest(),tt=e.getSouthEast(),lt=this.getSize().subtract(u),kt=$t(this.project(tt,p),this.project(Z,p)).getSize(),It=Ht.any3d?this.options.zoomSnap:1,Jt=lt.x/kt.x,ce=lt.y/kt.y,Ye=s?Math.max(Jt,ce):Math.min(Jt,ce);return p=this.getScaleZoom(Ye,p),It&&(p=Math.round(p/(It/100))*(It/100),p=s?Math.ceil(p/It)*It:Math.floor(p/It)*It),Math.max(v,Math.min(P,p))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new wt(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,s){var u=this._getTopLeftPoint(e,s);return new Bt(u,u.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(e===void 0?this.getZoom():e)},getPane:function(e){return typeof e=="string"?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,s){var u=this.options.crs;return s=s===void 0?this._zoom:s,u.scale(e)/u.scale(s)},getScaleZoom:function(e,s){var u=this.options.crs;s=s===void 0?this._zoom:s;var p=u.zoom(e*u.scale(s));return isNaN(p)?1/0:p},project:function(e,s){return s=s===void 0?this._zoom:s,this.options.crs.latLngToPoint(Nt(e),s)},unproject:function(e,s){return s=s===void 0?this._zoom:s,this.options.crs.pointToLatLng(Dt(e),s)},layerPointToLatLng:function(e){var s=Dt(e).add(this.getPixelOrigin());return this.unproject(s)},latLngToLayerPoint:function(e){var s=this.project(Nt(e))._round();return s._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(Nt(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(fe(e))},distance:function(e,s){return this.options.crs.distance(Nt(e),Nt(s))},containerPointToLayerPoint:function(e){return Dt(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return Dt(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var s=this.containerPointToLayerPoint(Dt(e));return this.layerPointToLatLng(s)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Nt(e)))},mouseEventToContainerPoint:function(e){return ut(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var s=this._container=Co(e);if(s){if(s._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");te(s,"scroll",this._onScroll,this),this._containerId=m(s)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ht.any3d,ee(e,"leaflet-container"+(Ht.touch?" leaflet-touch":"")+(Ht.retina?" leaflet-retina":"")+(Ht.ielt9?" leaflet-oldie":"")+(Ht.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var s=sr(e,"position");s!=="absolute"&&s!=="relative"&&s!=="fixed"&&s!=="sticky"&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Se(this._mapPane,new wt(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ee(e.markerPane,"leaflet-zoom-hide"),ee(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,s,u){Se(this._mapPane,new wt(0,0));var p=!this._loaded;this._loaded=!0,s=this._limitZoom(s),this.fire("viewprereset");var v=this._zoom!==s;this._moveStart(v,u)._move(e,s)._moveEnd(v),this.fire("viewreset"),p&&this.fire("load")},_moveStart:function(e,s){return e&&this.fire("zoomstart"),s||this.fire("movestart"),this},_move:function(e,s,u,p){s===void 0&&(s=this._zoom);var v=this._zoom!==s;return this._zoom=s,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),p?u&&u.pinch&&this.fire("zoom",u):((v||u&&u.pinch)&&this.fire("zoom",u),this.fire("move",u)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return at(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){Se(this._mapPane,this._getMapPanePos().subtract(e))},_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(e){this._targets={},this._targets[m(this._container)]=this;var s=e?a:te;s(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&s(window,"resize",this._onResize,this),Ht.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){at(this._resizeRequest),this._resizeRequest=gt(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,s){for(var u=[],p,v=s==="mouseout"||s==="mouseover",P=e.target||e.srcElement,Z=!1;P;){if(p=this._targets[m(P)],p&&(s==="click"||s==="preclick")&&this._draggableMoved(p)){Z=!0;break}if(p&&p.listens(s,!0)&&(v&&!Zt(P,e)||(u.push(p),v))||P===this._container)break;P=P.parentNode}return!u.length&&!Z&&!v&&this.listens(s,!0)&&(u=[this]),u},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var s=e.target||e.srcElement;if(!(!this._loaded||s._leaflet_disable_events||e.type==="click"&&this._isClickDisabled(s))){var u=e.type;u==="mousedown"&&ji(s),this._fireDOMEvent(e,u)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,s,u){if(e.type==="click"){var p=l({},e);p.type="preclick",this._fireDOMEvent(p,p.type,u)}var v=this._findEventTargets(e,s);if(u){for(var P=[],Z=0;Z0?Math.round(e-s)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(s))},_limitZoom:function(e){var s=this.getMinZoom(),u=this.getMaxZoom(),p=Ht.any3d?this.options.zoomSnap:1;return p&&(e=Math.round(e/p)*p),Math.max(s,Math.min(u,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ae(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,s){var u=this._getCenterOffset(e)._trunc();return(s&&s.animate)!==!0&&!this.getSize().contains(u)?!1:(this.panBy(u,s),!0)},_createAnimProxy:function(){var e=this._proxy=he("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",function(s){var u=Jr,p=this._proxy.style[u];In(this._proxy,this.project(s.center,s.zoom),this.getZoomScale(s.zoom,1)),p===this._proxy.style[u]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ce(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),s=this.getZoom();In(this._proxy,this.project(e,s),this.getZoomScale(s,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,s,u){if(this._animatingZoom)return!0;if(u=u||{},!this._zoomAnimated||u.animate===!1||this._nothingToAnimate()||Math.abs(s-this._zoom)>this.options.zoomAnimationThreshold)return!1;var p=this.getZoomScale(s),v=this._getCenterOffset(e)._divideBy(1-1/p);return u.animate!==!0&&!this.getSize().contains(v)?!1:(gt(function(){this._moveStart(!0,u.noMoveStart||!1)._animateZoom(e,s,!0)},this),!0)},_animateZoom:function(e,s,u,p){this._mapPane&&(u&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=s,ee(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:s,noUpdate:p}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(h(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ae(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 xe(e,s){return new Ut(e,s)}var Pe=Lt.extend({options:{position:"topright"},initialize:function(e){S(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var s=this._map;return s&&s.removeControl(this),this.options.position=e,s&&s.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var s=this._container=this.onAdd(e),u=this.getPosition(),p=e._controlCorners[u];return ee(s,"leaflet-control"),u.indexOf("bottom")!==-1?p.insertBefore(s,p.firstChild):p.appendChild(s),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ce(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),Ve=function(e){return new Pe(e)};Ut.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},s="leaflet-",u=this._controlContainer=he("div",s+"control-container",this._container);function p(v,P){var Z=s+v+" "+s+P;e[v+P]=he("div",Z,u)}p("top","left"),p("top","right"),p("bottom","left"),p("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)Ce(this._controlCorners[e]);Ce(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Mn=Pe.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,s,u,p){return u1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=s&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var s=this._getLayer(m(e.target)),u=s.overlay?e.type==="add"?"overlayadd":"overlayremove":e.type==="add"?"baselayerchange":null;u&&this._map.fire(u,s)},_createRadioElement:function(e,s){var u='",p=document.createElement("div");return p.innerHTML=u,p.firstChild},_addItem:function(e){var s=document.createElement("label"),u=this._map.hasLayer(e.layer),p;e.overlay?(p=document.createElement("input"),p.type="checkbox",p.className="leaflet-control-layers-selector",p.defaultChecked=u):p=this._createRadioElement("leaflet-base-layers_"+m(this),u),this._layerControlInputs.push(p),p.layerId=m(e.layer),te(p,"click",this._onInputClick,this);var v=document.createElement("span");v.innerHTML=" "+e.name;var P=document.createElement("span");s.appendChild(P),P.appendChild(p),P.appendChild(v);var Z=e.overlay?this._overlaysList:this._baseLayersList;return Z.appendChild(s),this._checkDisabledLayers(),s},_onInputClick:function(){if(!this._preventClick){var e=this._layerControlInputs,s,u,p=[],v=[];this._handlingClick=!0;for(var P=e.length-1;P>=0;P--)s=e[P],u=this._getLayer(s.layerId).layer,s.checked?p.push(u):s.checked||v.push(u);for(P=0;P=0;v--)s=e[v],u=this._getLayer(s.layerId).layer,s.disabled=u.options.minZoom!==void 0&&pu.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,te(e,"click",G),this.expand();var s=this;setTimeout(function(){a(e,"click",G),s._preventClick=!1})}}),Po=function(e,s,u){return new Mn(e,s,u)},Ar=Pe.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(e){var s="leaflet-control-zoom",u=he("div",s+" leaflet-bar"),p=this.options;return this._zoomInButton=this._createButton(p.zoomInText,p.zoomInTitle,s+"-in",u,this._zoomIn),this._zoomOutButton=this._createButton(p.zoomOutText,p.zoomOutTitle,s+"-out",u,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),u},onRemove:function(e){e.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(e){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,s,u,p,v){var P=he("a",u,p);return P.innerHTML=e,P.href="#",P.title=s,P.setAttribute("role","button"),P.setAttribute("aria-label",s),F(P),te(P,"click",X),te(P,"click",v,this),te(P,"click",this._refocusOnMap,this),P},_updateDisabled:function(){var e=this._map,s="leaflet-disabled";Ae(this._zoomInButton,s),Ae(this._zoomOutButton,s),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(ee(this._zoomOutButton,s),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(ee(this._zoomInButton,s),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ut.mergeOptions({zoomControl:!0}),Ut.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ar,this.addControl(this.zoomControl))});var qn=function(e){return new Ar(e)},Hi=Pe.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var s="leaflet-control-scale",u=he("div",s),p=this.options;return this._addScales(p,s+"-line",u),e.on(p.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),u},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,s,u){e.metric&&(this._mScale=he("div",s,u)),e.imperial&&(this._iScale=he("div",s,u))},_update:function(){var e=this._map,s=e.getSize().y/2,u=e.distance(e.containerPointToLatLng([0,s]),e.containerPointToLatLng([this.options.maxWidth,s]));this._updateScales(u)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var s=this._getRoundNum(e),u=s<1e3?s+" m":s/1e3+" km";this._updateScale(this._mScale,u,s/e)},_updateImperial:function(e){var s=e*3.2808399,u,p,v;s>5280?(u=s/5280,p=this._getRoundNum(u),this._updateScale(this._iScale,p+" mi",p/u)):(v=this._getRoundNum(s),this._updateScale(this._iScale,v+" ft",v/s))},_updateScale:function(e,s,u){e.style.width=Math.round(this.options.maxWidth*u)+"px",e.innerHTML=s},_getRoundNum:function(e){var s=Math.pow(10,(Math.floor(e)+"").length-1),u=e/s;return u=u>=10?10:u>=5?5:u>=3?3:u>=2?2:1,s*u}}),So=function(e){return new Hi(e)},Us='',Br=Pe.extend({options:{position:"bottomright",prefix:''+(Ht.inlineSvg?Us+" ":"")+"Leaflet"},initialize:function(e){S(this,e),this._attributions={}},onAdd:function(e){e.attributionControl=this,this._container=he("div","leaflet-control-attribution"),F(this._container);for(var s in e._layers)e._layers[s].getAttribution&&this.addAttribution(e._layers[s].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",function(){this.removeAttribution(e.layer.getAttribution())},this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var s in this._attributions)this._attributions[s]&&e.push(s);var u=[];this.options.prefix&&u.push(this.options.prefix),e.length&&u.push(e.join(", ")),this._container.innerHTML=u.join(' ')}}});Ut.mergeOptions({attributionControl:!0}),Ut.addInitHook(function(){this.options.attributionControl&&new Br().addTo(this)});var Gs=function(e){return new Br(e)};Pe.Layers=Mn,Pe.Zoom=Ar,Pe.Scale=Hi,Pe.Attribution=Br,Ve.layers=Po,Ve.zoom=qn,Ve.scale=So,Ve.attribution=Gs;var mn=Lt.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});mn.addTo=function(e,s){return e.addHandler(s,this),this};var Td={Events:Ct},kl=Ht.touch?"touchstart mousedown":"mousedown",lr=Ft.extend({options:{clickTolerance:3},initialize:function(e,s,u,p){S(this,p),this._element=e,this._dragStartTarget=s||e,this._preventOutline=u},enable:function(){this._enabled||(te(this._dragStartTarget,kl,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(lr._dragging===this&&this.finishDrag(!0),a(this._dragStartTarget,kl,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!Yr(this._element,"leaflet-zoom-anim"))){if(e.touches&&e.touches.length!==1){lr._dragging===this&&this.finishDrag();return}if(!(lr._dragging||e.shiftKey||e.which!==1&&e.button!==1&&!e.touches)&&(lr._dragging=this,this._preventOutline&&ji(this._element),Rr(),Tr(),!this._moving)){this.fire("down");var s=e.touches?e.touches[0]:e,u=ei(this._element);this._startPoint=new wt(s.clientX,s.clientY),this._startPos=pn(this._element),this._parentScale=Ni(u);var p=e.type==="mousedown";te(document,p?"mousemove":"touchmove",this._onMove,this),te(document,p?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1){this._moved=!0;return}var s=e.touches&&e.touches.length===1?e.touches[0]:e,u=new wt(s.clientX,s.clientY)._subtract(this._startPoint);!u.x&&!u.y||Math.abs(u.x)+Math.abs(u.y)P&&(Z=tt,P=lt);P>u&&(s[Z]=1,qs(e,s,u,p,Z),qs(e,s,u,Z,v))}function Bd(e,s){for(var u=[e[0]],p=1,v=0,P=e.length;ps&&(u.push(e[p]),v=p);return vs.max.x&&(u|=2),e.ys.max.y&&(u|=8),u}function Id(e,s){var u=s.x-e.x,p=s.y-e.y;return u*u+p*p}function Fi(e,s,u,p){var v=s.x,P=s.y,Z=u.x-v,tt=u.y-P,lt=Z*Z+tt*tt,kt;return lt>0&&(kt=((e.x-v)*Z+(e.y-P)*tt)/lt,kt>1?(v=u.x,P=u.y):kt>0&&(v+=Z*kt,P+=tt*kt)),Z=e.x-v,tt=e.y-P,p?Z*Z+tt*tt:new wt(v,P)}function gn(e){return!V(e[0])||typeof e[0][0]!="object"&&typeof e[0][0]<"u"}function Tl(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),gn(e)}function Ol(e,s){var u,p,v,P,Z,tt,lt,kt;if(!e||e.length===0)throw new Error("latlngs not passed");gn(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var It=Nt([0,0]),Jt=fe(e),ce=Jt.getNorthWest().distanceTo(Jt.getSouthWest())*Jt.getNorthEast().distanceTo(Jt.getNorthWest());ce<1700&&(It=Zs(e));var Ye=e.length,$e=[];for(u=0;up){lt=(P-p)/v,kt=[tt.x-lt*(tt.x-Z.x),tt.y-lt*(tt.y-Z.y)];break}var nn=s.unproject(Dt(kt));return Nt([nn.lat+It.lat,nn.lng+It.lng])}var Dd={__proto__:null,simplify:Cl,pointToSegmentDistance:Pl,closestPointOnSegment:Rd,clipSegment:El,_getEdgeIntersection:Eo,_getBitCode:Ir,_sqClosestPointOnSegment:Fi,isFlat:gn,_flat:Tl,polylineCenter:Ol},Ks={project:function(e){return new wt(e.lng,e.lat)},unproject:function(e){return new ae(e.y,e.x)},bounds:new Bt([-180,-90],[180,90])},Ws={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Bt([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(e){var s=Math.PI/180,u=this.R,p=e.lat*s,v=this.R_MINOR/u,P=Math.sqrt(1-v*v),Z=P*Math.sin(p),tt=Math.tan(Math.PI/4-p/2)/Math.pow((1-Z)/(1+Z),P/2);return p=-u*Math.log(Math.max(tt,1e-10)),new wt(e.lng*s*u,p)},unproject:function(e){for(var s=180/Math.PI,u=this.R,p=this.R_MINOR/u,v=Math.sqrt(1-p*p),P=Math.exp(-e.y/u),Z=Math.PI/2-2*Math.atan(P),tt=0,lt=.1,kt;tt<15&&Math.abs(lt)>1e-7;tt++)kt=v*Math.sin(Z),kt=Math.pow((1-kt)/(1+kt),v/2),lt=Math.PI/2-2*Math.atan(P*kt)-Z,Z+=lt;return new ae(Z*s,e.x*s/u)}},zd={__proto__:null,LonLat:Ks,Mercator:Ws,SphericalMercator:zt},jd=l({},Pt,{code:"EPSG:3395",projection:Ws,transformation:function(){var e=.5/(Math.PI*Ws.R);return H(e,.5,-e,.5)}()}),Rl=l({},Pt,{code:"EPSG:4326",projection:Ks,transformation:H(1/180,1,-1/180,.5)}),Nd=l({},dt,{projection:Ks,transformation:H(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,s){var u=s.lng-e.lng,p=s.lat-e.lat;return Math.sqrt(u*u+p*p)},infinite:!0});dt.Earth=Pt,dt.EPSG3395=jd,dt.EPSG3857=K,dt.EPSG900913=J,dt.EPSG4326=Rl,dt.Simple=Nd;var Cn=Ft.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[m(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[m(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var s=e.target;if(s.hasLayer(this)){if(this._map=s,this._zoomAnimated=s._zoomAnimated,this.getEvents){var u=this.getEvents();s.on(u,this),this.once("remove",function(){s.off(u,this)},this)}this.onAdd(s),this.fire("add"),s.fire("layeradd",{layer:this})}}});Ut.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var s=m(e);return this._layers[s]?this:(this._layers[s]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e),this)},removeLayer:function(e){var s=m(e);return this._layers[s]?(this._loaded&&e.onRemove(this),delete this._layers[s],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return m(e)in this._layers},eachLayer:function(e,s){for(var u in this._layers)e.call(s,this._layers[u]);return this},_addLayers:function(e){e=e?V(e)?e:[e]:[];for(var s=0,u=e.length;sthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&s[0]instanceof ae&&s[0].equals(s[u-1])&&s.pop(),s},_setLatLngs:function(e){Wn.prototype._setLatLngs.call(this,e),gn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return gn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,s=this.options.weight,u=new wt(s,s);if(e=new Bt(e.min.subtract(u),e.max.add(u)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(e))){if(this.options.noClip){this._parts=this._rings;return}for(var p=0,v=this._rings.length,P;pe.y!=v.y>e.y&&e.x<(v.x-p.x)*(e.y-p.y)/(v.y-p.y)+p.x&&(s=!s);return s||Wn.prototype._containsPoint.call(this,e,!0)}});function qd(e,s){return new ii(e,s)}var Jn=Kn.extend({initialize:function(e,s){S(this,s),this._layers={},e&&this.addData(e)},addData:function(e){var s=V(e)?e:e.features,u,p,v;if(s){for(u=0,p=s.length;u0&&v.push(v[0].slice()),v}function oi(e,s){return e.feature?l({},e.feature,{geometry:s}):Io(s)}function Io(e){return e.type==="Feature"||e.type==="FeatureCollection"?e:{type:"Feature",properties:{},geometry:e}}var Qs={toGeoJSON:function(e){return oi(this,{type:"Point",coordinates:Xs(this.getLatLng(),e)})}};To.include(Qs),Js.include(Qs),Oo.include(Qs),Wn.include({toGeoJSON:function(e){var s=!gn(this._latlngs),u=Bo(this._latlngs,s?1:0,!1,e);return oi(this,{type:(s?"Multi":"")+"LineString",coordinates:u})}}),ii.include({toGeoJSON:function(e){var s=!gn(this._latlngs),u=s&&!gn(this._latlngs[0]),p=Bo(this._latlngs,u?2:s?1:0,!0,e);return s||(p=[p]),oi(this,{type:(u?"Multi":"")+"Polygon",coordinates:p})}}),ni.include({toMultiPoint:function(e){var s=[];return this.eachLayer(function(u){s.push(u.toGeoJSON(e).geometry.coordinates)}),oi(this,{type:"MultiPoint",coordinates:s})},toGeoJSON:function(e){var s=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(s==="MultiPoint")return this.toMultiPoint(e);var u=s==="GeometryCollection",p=[];return this.eachLayer(function(v){if(v.toGeoJSON){var P=v.toGeoJSON(e);if(u)p.push(P.geometry);else{var Z=Io(P);Z.type==="FeatureCollection"?p.push.apply(p,Z.features):p.push(Z)}}}),u?oi(this,{geometries:p,type:"GeometryCollection"}):{type:"FeatureCollection",features:p}}});function Il(e,s){return new Jn(e,s)}var Kd=Il,Do=Cn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,s,u){this._url=e,this._bounds=fe(s),S(this,u)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ee(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ce(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&Gn(this._image),this},bringToBack:function(){return this._map&&Zn(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=fe(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e=this._url.tagName==="IMG",s=this._image=e?this._url:he("img");if(ee(s,"leaflet-image-layer"),this._zoomAnimated&&ee(s,"leaflet-zoom-animated"),this.options.className&&ee(s,this.options.className),s.onselectstart=x,s.onmousemove=x,s.onload=h(this.fire,this,"load"),s.onerror=h(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(s.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e){this._url=s.src;return}s.src=this._url,s.alt=this.options.alt},_animateZoom:function(e){var s=this._map.getZoomScale(e.zoom),u=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;In(this._image,u,s)},_reset:function(){var e=this._image,s=new Bt(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),u=s.getSize();Se(e,s.min),e.style.width=u.x+"px",e.style.height=u.y+"px"},_updateOpacity:function(){en(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),Wd=function(e,s,u){return new Do(e,s,u)},Dl=Do.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e=this._url.tagName==="VIDEO",s=this._image=e?this._url:he("video");if(ee(s,"leaflet-image-layer"),this._zoomAnimated&&ee(s,"leaflet-zoom-animated"),this.options.className&&ee(s,this.options.className),s.onselectstart=x,s.onmousemove=x,s.onloadeddata=h(this.fire,this,"load"),e){for(var u=s.getElementsByTagName("source"),p=[],v=0;v0?p:[s.src];return}V(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(s.style,"objectFit")&&(s.style.objectFit="fill"),s.autoplay=!!this.options.autoplay,s.loop=!!this.options.loop,s.muted=!!this.options.muted,s.playsInline=!!this.options.playsInline;for(var P=0;Pv?(s.height=v+"px",ee(e,P)):Ae(e,P),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var s=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),u=this._getAnchor();Se(this._container,s.add(u))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var e=this._map,s=parseInt(sr(this._container,"marginBottom"),10)||0,u=this._container.offsetHeight+s,p=this._containerWidth,v=new wt(this._containerLeft,-u-this._containerBottom);v._add(pn(this._container));var P=e.layerPointToContainerPoint(v),Z=Dt(this.options.autoPanPadding),tt=Dt(this.options.autoPanPaddingTopLeft||Z),lt=Dt(this.options.autoPanPaddingBottomRight||Z),kt=e.getSize(),It=0,Jt=0;P.x+p+lt.x>kt.x&&(It=P.x+p-kt.x+lt.x),P.x-It-tt.x<0&&(It=P.x-tt.x),P.y+u+lt.y>kt.y&&(Jt=P.y+u-kt.y+lt.y),P.y-Jt-tt.y<0&&(Jt=P.y-tt.y),(It||Jt)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([It,Jt]))}},_getAnchor:function(){return Dt(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Xd=function(e,s){return new zo(e,s)};Ut.mergeOptions({closePopupOnClick:!0}),Ut.include({openPopup:function(e,s,u){return this._initOverlay(zo,e,s,u).openOn(this),this},closePopup:function(e){return e=arguments.length?e:this._popup,e&&e.close(),this}}),Cn.include({bindPopup:function(e,s){return this._popup=this._initOverlay(zo,this._popup,e,s),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(e){return this._popup&&(this instanceof Kn||(this._popup._source=this),this._popup._prepareOpen(e||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():!1},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(!(!this._popup||!this._map)){X(e);var s=e.layer||e.target;if(this._popup._source===s&&!(s instanceof cr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng);return}this._popup._source=s,this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){e.originalEvent.keyCode===13&&this._openPopup(e)}});var jo=zn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){zn.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){zn.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=zn.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip",s=e+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=he("div",s),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+m(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var s,u,p=this._map,v=this._container,P=p.latLngToContainerPoint(p.getCenter()),Z=p.layerPointToContainerPoint(e),tt=this.options.direction,lt=v.offsetWidth,kt=v.offsetHeight,It=Dt(this.options.offset),Jt=this._getAnchor();tt==="top"?(s=lt/2,u=kt):tt==="bottom"?(s=lt/2,u=0):tt==="center"?(s=lt/2,u=kt/2):tt==="right"?(s=0,u=kt/2):tt==="left"?(s=lt,u=kt/2):Z.xthis.options.maxZoom||up?this._retainParent(v,P,Z,p):!1)},_retainChildren:function(e,s,u,p){for(var v=2*e;v<2*e+2;v++)for(var P=2*s;P<2*s+2;P++){var Z=new wt(v,P);Z.z=u+1;var tt=this._tileCoordsToKey(Z),lt=this._tiles[tt];if(lt&<.active){lt.retain=!0;continue}else lt&<.loaded&&(lt.retain=!0);u+1this.options.maxZoom||this.options.minZoom!==void 0&&v1){this._setView(e,u);return}for(var Jt=v.min.y;Jt<=v.max.y;Jt++)for(var ce=v.min.x;ce<=v.max.x;ce++){var Ye=new wt(ce,Jt);if(Ye.z=this._tileZoom,!!this._isValidTile(Ye)){var $e=this._tiles[this._tileCoordsToKey(Ye)];$e?$e.current=!0:Z.push(Ye)}}if(Z.sort(function(nn,ai){return nn.distanceTo(P)-ai.distanceTo(P)}),Z.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var _n=document.createDocumentFragment();for(ce=0;ceu.max.x)||!s.wrapLat&&(e.yu.max.y))return!1}if(!this.options.bounds)return!0;var p=this._tileCoordsToBounds(e);return fe(this.options.bounds).overlaps(p)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var s=this._map,u=this.getTileSize(),p=e.scaleBy(u),v=p.add(u),P=s.unproject(p,e.z),Z=s.unproject(v,e.z);return[P,Z]},_tileCoordsToBounds:function(e){var s=this._tileCoordsToNwSe(e),u=new Me(s[0],s[1]);return this.options.noWrap||(u=this._map.wrapLatLngBounds(u)),u},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var s=e.split(":"),u=new wt(+s[0],+s[1]);return u.z=+s[2],u},_removeTile:function(e){var s=this._tiles[e];s&&(Ce(s.el),delete this._tiles[e],this.fire("tileunload",{tile:s.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){ee(e,"leaflet-tile");var s=this.getTileSize();e.style.width=s.x+"px",e.style.height=s.y+"px",e.onselectstart=x,e.onmousemove=x,Ht.ielt9&&this.options.opacity<1&&en(e,this.options.opacity)},_addTile:function(e,s){var u=this._getTilePos(e),p=this._tileCoordsToKey(e),v=this.createTile(this._wrapCoords(e),h(this._tileReady,this,e));this._initTile(v),this.createTile.length<2&>(h(this._tileReady,this,e,null,v)),Se(v,u),this._tiles[p]={el:v,coords:e,current:!0},s.appendChild(v),this.fire("tileloadstart",{tile:v,coords:e})},_tileReady:function(e,s,u){s&&this.fire("tileerror",{error:s,tile:u,coords:e});var p=this._tileCoordsToKey(e);u=this._tiles[p],u&&(u.loaded=+new Date,this._map._fadeAnimated?(en(u.el,0),at(this._fadeFrame),this._fadeFrame=gt(this._updateOpacity,this)):(u.active=!0,this._pruneTiles()),s||(ee(u.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:u.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ht.ielt9||!this._map._fadeAnimated?gt(this._pruneTiles,this):setTimeout(h(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var s=new wt(this._wrapX?y(e.x,this._wrapX):e.x,this._wrapY?y(e.y,this._wrapY):e.y);return s.z=e.z,s},_pxBoundsToTileRange:function(e){var s=this.getTileSize();return new Bt(e.min.unscaleBy(s).floor(),e.max.unscaleBy(s).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function ef(e){return new $i(e)}var si=$i.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,s){this._url=e,s=S(this,s),s.detectRetina&&Ht.retina&&s.maxZoom>0?(s.tileSize=Math.floor(s.tileSize/2),s.zoomReverse?(s.zoomOffset--,s.minZoom=Math.min(s.maxZoom,s.minZoom+1)):(s.zoomOffset++,s.maxZoom=Math.max(s.minZoom,s.maxZoom-1)),s.minZoom=Math.max(0,s.minZoom)):s.zoomReverse?s.minZoom=Math.min(s.maxZoom,s.minZoom):s.maxZoom=Math.max(s.minZoom,s.maxZoom),typeof s.subdomains=="string"&&(s.subdomains=s.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,s){return this._url===e&&s===void 0&&(s=!0),this._url=e,s||this.redraw(),this},createTile:function(e,s){var u=document.createElement("img");return te(u,"load",h(this._tileOnLoad,this,s,u)),te(u,"error",h(this._tileOnError,this,s,u)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(u.referrerPolicy=this.options.referrerPolicy),u.alt="",u.src=this.getTileUrl(e),u},getTileUrl:function(e){var s={r:Ht.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var u=this._globalTileRange.max.y-e.y;this.options.tms&&(s.y=u),s["-y"]=u}return R(this._url,l(s,this.options))},_tileOnLoad:function(e,s){Ht.ielt9?setTimeout(h(e,this,null,s),0):e(null,s)},_tileOnError:function(e,s,u){var p=this.options.errorTileUrl;p&&s.getAttribute("src")!==p&&(s.src=p),e(u,s)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,s=this.options.maxZoom,u=this.options.zoomReverse,p=this.options.zoomOffset;return u&&(e=s-e),e+p},_getSubdomain:function(e){var s=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[s]},_abortLoading:function(){var e,s;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&(s=this._tiles[e].el,s.onload=x,s.onerror=x,!s.complete)){s.src=z;var u=this._tiles[e].coords;Ce(s),delete this._tiles[e],this.fire("tileabort",{tile:s,coords:u})}},_removeTile:function(e){var s=this._tiles[e];if(s)return s.el.setAttribute("src",z),$i.prototype._removeTile.call(this,e)},_tileReady:function(e,s,u){if(!(!this._map||u&&u.getAttribute("src")===z))return $i.prototype._tileReady.call(this,e,s,u)}});function Nl(e,s){return new si(e,s)}var Hl=si.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,s){this._url=e;var u=l({},this.defaultWmsParams);for(var p in s)p in this.options||(u[p]=s[p]);s=S(this,s);var v=s.detectRetina&&Ht.retina?2:1,P=this.getTileSize();u.width=P.x*v,u.height=P.y*v,this.wmsParams=u},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var s=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[s]=this._crs.code,si.prototype.onAdd.call(this,e)},getTileUrl:function(e){var s=this._tileCoordsToNwSe(e),u=this._crs,p=$t(u.project(s[0]),u.project(s[1])),v=p.min,P=p.max,Z=(this._wmsVersion>=1.3&&this._crs===Rl?[v.y,v.x,P.y,P.x]:[v.x,v.y,P.x,P.y]).join(","),tt=si.prototype.getTileUrl.call(this,e);return tt+U(this.wmsParams,tt,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Z},setParams:function(e,s){return l(this.wmsParams,e),s||this.redraw(),this}});function nf(e,s){return new Hl(e,s)}si.WMS=Hl,Nl.wms=nf;var Yn=Cn.extend({options:{padding:.1},initialize:function(e){S(this,e),m(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ee(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 e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,s){var u=this._map.getZoomScale(s,this._zoom),p=this._map.getSize().multiplyBy(.5+this.options.padding),v=this._map.project(this._center,s),P=p.multiplyBy(-u).add(v).subtract(this._map._getNewPixelOrigin(e,s));Ht.any3d?In(this._container,P,u):Se(this._container,P)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var e in this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,s=this._map.getSize(),u=this._map.containerPointToLayerPoint(s.multiplyBy(-e)).round();this._bounds=new Bt(u,u.add(s.multiplyBy(1+e*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Fl=Yn.extend({options:{tolerance:0},getEvents:function(){var e=Yn.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Yn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");te(e,"mousemove",this._onMouseMove,this),te(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),te(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){at(this._redrawRequest),delete this._ctx,Ce(this._container),a(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var e;this._redrawBounds=null;for(var s in this._layers)e=this._layers[s],e._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Yn.prototype._update.call(this);var e=this._bounds,s=this._container,u=e.getSize(),p=Ht.retina?2:1;Se(s,e.min),s.width=p*u.x,s.height=p*u.y,s.style.width=u.x+"px",s.style.height=u.y+"px",Ht.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Yn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[m(e)]=e;var s=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=s),this._drawLast=s,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var s=e._order,u=s.next,p=s.prev;u?u.prev=p:this._drawLast=p,p?p.next=u:this._drawFirst=u,delete e._order,delete this._layers[m(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if(typeof e.options.dashArray=="string"){var s=e.options.dashArray.split(/[, ]+/),u=[],p,v;for(v=0;v')}}catch{}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),rf={_initContainer:function(){this._container=he("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Yn.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var s=e._container=Ui("shape");ee(s,"leaflet-vml-shape "+(this.options.className||"")),s.coordsize="1 1",e._path=Ui("path"),s.appendChild(e._path),this._updateStyle(e),this._layers[m(e)]=e},_addPath:function(e){var s=e._container;this._container.appendChild(s),e.options.interactive&&e.addInteractiveTarget(s)},_removePath:function(e){var s=e._container;Ce(s),e.removeInteractiveTarget(s),delete this._layers[m(e)]},_updateStyle:function(e){var s=e._stroke,u=e._fill,p=e.options,v=e._container;v.stroked=!!p.stroke,v.filled=!!p.fill,p.stroke?(s||(s=e._stroke=Ui("stroke")),v.appendChild(s),s.weight=p.weight+"px",s.color=p.color,s.opacity=p.opacity,p.dashArray?s.dashStyle=V(p.dashArray)?p.dashArray.join(" "):p.dashArray.replace(/( *, *)/g," "):s.dashStyle="",s.endcap=p.lineCap.replace("butt","flat"),s.joinstyle=p.lineJoin):s&&(v.removeChild(s),e._stroke=null),p.fill?(u||(u=e._fill=Ui("fill")),v.appendChild(u),u.color=p.fillColor||p.color,u.opacity=p.fillOpacity):u&&(v.removeChild(u),e._fill=null)},_updateCircle:function(e){var s=e._point.round(),u=Math.round(e._radius),p=Math.round(e._radiusY||u);this._setPath(e,e._empty()?"M0 0":"AL "+s.x+","+s.y+" "+u+","+p+" 0,"+65535*360)},_setPath:function(e,s){e._path.v=s},_bringToFront:function(e){Gn(e._container)},_bringToBack:function(e){Zn(e._container)}},No=Ht.vml?Ui:ht,Gi=Yn.extend({_initContainer:function(){this._container=No("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=No("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ce(this._container),a(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Yn.prototype._update.call(this);var e=this._bounds,s=e.getSize(),u=this._container;(!this._svgSize||!this._svgSize.equals(s))&&(this._svgSize=s,u.setAttribute("width",s.x),u.setAttribute("height",s.y)),Se(u,e.min),u.setAttribute("viewBox",[e.min.x,e.min.y,s.x,s.y].join(" ")),this.fire("update")}},_initPath:function(e){var s=e._path=No("path");e.options.className&&ee(s,e.options.className),e.options.interactive&&ee(s,"leaflet-interactive"),this._updateStyle(e),this._layers[m(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){Ce(e._path),e.removeInteractiveTarget(e._path),delete this._layers[m(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var s=e._path,u=e.options;s&&(u.stroke?(s.setAttribute("stroke",u.color),s.setAttribute("stroke-opacity",u.opacity),s.setAttribute("stroke-width",u.weight),s.setAttribute("stroke-linecap",u.lineCap),s.setAttribute("stroke-linejoin",u.lineJoin),u.dashArray?s.setAttribute("stroke-dasharray",u.dashArray):s.removeAttribute("stroke-dasharray"),u.dashOffset?s.setAttribute("stroke-dashoffset",u.dashOffset):s.removeAttribute("stroke-dashoffset")):s.setAttribute("stroke","none"),u.fill?(s.setAttribute("fill",u.fillColor||u.color),s.setAttribute("fill-opacity",u.fillOpacity),s.setAttribute("fill-rule",u.fillRule||"evenodd")):s.setAttribute("fill","none"))},_updatePoly:function(e,s){this._setPath(e,yt(e._parts,s))},_updateCircle:function(e){var s=e._point,u=Math.max(Math.round(e._radius),1),p=Math.max(Math.round(e._radiusY),1)||u,v="a"+u+","+p+" 0 1,0 ",P=e._empty()?"M0 0":"M"+(s.x-u)+","+s.y+v+u*2+",0 "+v+-u*2+",0 ";this._setPath(e,P)},_setPath:function(e,s){e._path.setAttribute("d",s)},_bringToFront:function(e){Gn(e._path)},_bringToBack:function(e){Zn(e._path)}});Ht.vml&&Gi.include(rf);function $l(e){return Ht.svg||Ht.vml?new Gi(e):null}Ut.include({getRenderer:function(e){var s=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return s||(s=this._renderer=this._createRenderer()),this.hasLayer(s)||this.addLayer(s),s},_getPaneRenderer:function(e){if(e==="overlayPane"||e===void 0)return!1;var s=this._paneRenderers[e];return s===void 0&&(s=this._createRenderer({pane:e}),this._paneRenderers[e]=s),s},_createRenderer:function(e){return this.options.preferCanvas&&Vl(e)||$l(e)}});var Ul=ii.extend({initialize:function(e,s){ii.prototype.initialize.call(this,this._boundsToLatLngs(e),s)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return e=fe(e),[e.getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function of(e,s){return new Ul(e,s)}Gi.create=No,Gi.pointsToPath=yt,Jn.geometryToLayer=Ro,Jn.coordsToLatLng=Ys,Jn.coordsToLatLngs=Ao,Jn.latLngToCoords=Xs,Jn.latLngsToCoords=Bo,Jn.getFeature=oi,Jn.asFeature=Io,Ut.mergeOptions({boxZoom:!0});var Gl=mn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){te(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){a(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ce(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||e.which!==1&&e.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Tr(),Rr(),this._startPoint=this._map.mouseEventToContainerPoint(e),te(document,{contextmenu:X,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=he("div","leaflet-zoom-box",this._container),ee(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var s=new Bt(this._point,this._startPoint),u=s.getSize();Se(this._box,s.min),this._box.style.width=u.x+"px",this._box.style.height=u.y+"px"},_finish:function(){this._moved&&(Ce(this._box),Ae(this._container,"leaflet-crosshair")),Or(),zi(),a(document,{contextmenu:X,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if(!(e.which!==1&&e.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(h(this._resetState,this),0);var s=new Me(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(s).fire("boxzoomend",{boxZoomBounds:s})}},_onKeyDown:function(e){e.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ut.addInitHook("addHandler","boxZoom",Gl),Ut.mergeOptions({doubleClickZoom:!0});var Zl=mn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var s=this._map,u=s.getZoom(),p=s.options.zoomDelta,v=e.originalEvent.shiftKey?u-p:u+p;s.options.doubleClickZoom==="center"?s.setZoom(v):s.setZoomAround(e.containerPoint,v)}});Ut.addInitHook("addHandler","doubleClickZoom",Zl),Ut.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ql=mn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new lr(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}ee(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ae(this._map._container,"leaflet-grab"),Ae(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 e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var s=fe(this._map.options.maxBounds);this._offsetLimit=$t(this._map.latLngToContainerPoint(s.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(s.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var s=this._lastTime=+new Date,u=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(u),this._times.push(s),this._prunePositions(s)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),s=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=s.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,s){return e-(e-s)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var e=this._draggable._newPos.subtract(this._draggable._startPos),s=this._offsetLimit;e.xs.max.x&&(e.x=this._viscousLimit(e.x,s.max.x)),e.y>s.max.y&&(e.y=this._viscousLimit(e.y,s.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,s=Math.round(e/2),u=this._initialWorldOffset,p=this._draggable._newPos.x,v=(p-s+u)%e+s-u,P=(p+s+u)%e-s-u,Z=Math.abs(v+u)0?P:-P))-s;this._delta=0,this._startTime=null,Z&&(e.options.scrollWheelZoom==="center"?e.setZoom(s+Z):e.setZoomAround(this._lastMousePos,s+Z))}});Ut.addInitHook("addHandler","scrollWheelZoom",Wl);var sf=600;Ut.mergeOptions({tapHold:Ht.touchNative&&Ht.safari&&Ht.mobile,tapTolerance:15});var Jl=mn.extend({addHooks:function(){te(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){a(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),e.touches.length===1){var s=e.touches[0];this._startPos=this._newPos=new wt(s.clientX,s.clientY),this._holdTimeout=setTimeout(h(function(){this._cancel(),this._isTapValid()&&(te(document,"touchend",G),te(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",s))},this),sf),te(document,"touchend touchcancel contextmenu",this._cancel,this),te(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){a(document,"touchend",G),a(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),a(document,"touchend touchcancel contextmenu",this._cancel,this),a(document,"touchmove",this._onMove,this)},_onMove:function(e){var s=e.touches[0];this._newPos=new wt(s.clientX,s.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,s){var u=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:s.screenX,screenY:s.screenY,clientX:s.clientX,clientY:s.clientY});u._simulated=!0,s.target.dispatchEvent(u)}});Ut.addInitHook("addHandler","tapHold",Jl),Ut.mergeOptions({touchZoom:Ht.touch,bounceAtZoomLimits:!0});var Yl=mn.extend({addHooks:function(){ee(this._map._container,"leaflet-touch-zoom"),te(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ae(this._map._container,"leaflet-touch-zoom"),a(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var s=this._map;if(!(!e.touches||e.touches.length!==2||s._animatingZoom||this._zooming)){var u=s.mouseEventToContainerPoint(e.touches[0]),p=s.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=s.getSize()._divideBy(2),this._startLatLng=s.containerPointToLatLng(this._centerPoint),s.options.touchZoom!=="center"&&(this._pinchStartLatLng=s.containerPointToLatLng(u.add(p)._divideBy(2))),this._startDist=u.distanceTo(p),this._startZoom=s.getZoom(),this._moved=!1,this._zooming=!0,s._stop(),te(document,"touchmove",this._onTouchMove,this),te(document,"touchend touchcancel",this._onTouchEnd,this),G(e)}},_onTouchMove:function(e){if(!(!e.touches||e.touches.length!==2||!this._zooming)){var s=this._map,u=s.mouseEventToContainerPoint(e.touches[0]),p=s.mouseEventToContainerPoint(e.touches[1]),v=u.distanceTo(p)/this._startDist;if(this._zoom=s.getScaleZoom(v,this._startZoom),!s.options.bounceAtZoomLimits&&(this._zooms.getMaxZoom()&&v>1)&&(this._zoom=s._limitZoom(this._zoom)),s.options.touchZoom==="center"){if(this._center=this._startLatLng,v===1)return}else{var P=u._add(p)._divideBy(2)._subtract(this._centerPoint);if(v===1&&P.x===0&&P.y===0)return;this._center=s.unproject(s.project(this._pinchStartLatLng,this._zoom).subtract(P),this._zoom)}this._moved||(s._moveStart(!0,!1),this._moved=!0),at(this._animRequest);var Z=h(s._move,s,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=gt(Z,this,!0),G(e)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,at(this._animRequest),a(document,"touchmove",this._onTouchMove,this),a(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))}});Ut.addInitHook("addHandler","touchZoom",Yl),Ut.BoxZoom=Gl,Ut.DoubleClickZoom=Zl,Ut.Drag=ql,Ut.Keyboard=Kl,Ut.ScrollWheelZoom=Wl,Ut.TapHold=Jl,Ut.TouchZoom=Yl,o.Bounds=Bt,o.Browser=Ht,o.CRS=dt,o.Canvas=Fl,o.Circle=Js,o.CircleMarker=Oo,o.Class=Lt,o.Control=Pe,o.DivIcon=jl,o.DivOverlay=zn,o.DomEvent=ne,o.DomUtil=$s,o.Draggable=lr,o.Evented=Ft,o.FeatureGroup=Kn,o.GeoJSON=Jn,o.GridLayer=$i,o.Handler=mn,o.Icon=ri,o.ImageOverlay=Do,o.LatLng=ae,o.LatLngBounds=Me,o.Layer=Cn,o.LayerGroup=ni,o.LineUtil=Dd,o.Map=Ut,o.Marker=To,o.Mixin=Td,o.Path=cr,o.Point=wt,o.PolyUtil=Od,o.Polygon=ii,o.Polyline=Wn,o.Popup=zo,o.PosAnimation=we,o.Projection=zd,o.Rectangle=Ul,o.Renderer=Yn,o.SVG=Gi,o.SVGOverlay=zl,o.TileLayer=si,o.Tooltip=jo,o.Transformation=le,o.Util=bt,o.VideoOverlay=Dl,o.bind=h,o.bounds=$t,o.canvas=Vl,o.circle=Gd,o.circleMarker=Ud,o.control=Ve,o.divIcon=tf,o.extend=l,o.featureGroup=Fd,o.geoJSON=Il,o.geoJson=Kd,o.gridLayer=ef,o.icon=Vd,o.imageOverlay=Wd,o.latLng=Nt,o.latLngBounds=fe,o.layerGroup=Hd,o.map=xe,o.marker=$d,o.point=Dt,o.polygon=qd,o.polyline=Zd,o.popup=Xd,o.rectangle=of,o.setOptions=S,o.stamp=m,o.svg=$l,o.svgOverlay=Yd,o.tileLayer=Nl,o.tooltip=Qd,o.transformation=H,o.version=i,o.videoOverlay=Jd;var af=window.L;o.noConflict=function(){return window.L=af,this},window.L=o})})($a,$a.exports);var Hw=$a.exports;const vn=Nw(Hw),Fw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",Vw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",$w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",Uw={className:"bg-map-asserted rounded-full map-point-marker",iconSize:[8,8],iconAnchor:[4,4]},Gw={className:"bg-map-collection-object rounded-full map-point-marker",iconSize:[8,8],iconAnchor:[4,4]},Pd={className:"bg-map-georeference rounded-full map-point-marker",iconSize:[8,8],iconAnchor:[4,4]},Zw={className:"bg-map-type-material map-point-marker rounded-full",iconSize:[8,8],iconAnchor:[4,4]},qw=Object.freeze(Object.defineProperty({__proto__:null,AssertedDistribution:Uw,CollectionObject:Gw,Georeference:Pd,TypeMaterial:Zw},Symbol.toStringTag,{value:"Module"})),Kw={color:"rgb(var(--color-map-aggregate))",weight:1,dashArray:"3",dashOffset:"3",fillOpacity:"var(--color-map-shape-opacity)"},Ww={color:"rgb(var(--color-map-asserted))",weight:1,dashArray:"3",dashOffset:"3",fillOpacity:"var(--color-map-shape-opacity)"},Jw={color:"rgb(var(--color-map-collection-object))",weight:1,fillOpacity:"var(--color-map-shape-opacity)"},Yw={color:"rgb(var(--color-map-type-material))",weight:1,fillOpacity:"var(--color-map-shape-opacity)"},Lu=Object.freeze(Object.defineProperty({__proto__:null,Aggregate:Kw,AssertedDistribution:Ww,CollectionObject:Jw,TypeMaterial:Yw},Symbol.toStringTag,{value:"Module"})),Mu=["TypeMaterial","CollectionObject","AssertedDistribution","Georeference","Aggregate"],Cu={allowEditing:!1,allowRemoval:!1,allowCutting:!1,allowRotation:!1,draggable:!1};function Pu(t){const n=t.map(o=>o.type);return n.sort((o,i)=>Mu.indexOf(o)-Mu.indexOf(i)),n[0]}const Xw=t=>({onEachFeature:(n,o)=>{const i=(n.properties.base||[]).map(c=>c.label).filter(Boolean);if(!i.length)return;const l=` +
+
    + ${i.map(c=>` +
  • + ${c} +
  • + `).join("")} +
+
`;o.pm.setOptions(Cu),o.pm.disable(),o.bindPopup(l)},pointToLayer:(n,o)=>{const i=Pu(n.properties.base),l=qw[i]||Pd,c=t.marker(o,{icon:t.divIcon(l)});return c.pm.setOptions(Cu),c},style:n=>{var i;const o=Pu((i=n.properties)==null?void 0:i.base);if(Lu[o])return Lu[o]}}),{map_tile_server:Qw,map_tile_attribution:tx,map_tiles:ex}={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',url:null,project_token:null,copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],project_name:"My project",project_citation:null,project_url:null,project_authors:null};function nx(t,n){return Object.fromEntries((ex||[{label:"tile",server:Qw,attribution:tx}]).map(({server:i,attribution:l,label:c})=>[c,t.tileLayer(i,{...n,attribution:l})]))}(()=>{var t={9705:(i,l,c)=>{var h=c(1540);function f(m){var g=[1/0,1/0,-1/0,-1/0];return h.coordEach(m,function(y){g[0]>y[0]&&(g[0]=y[0]),g[1]>y[1]&&(g[1]=y[1]),g[2]{function c(C,R,V){V===void 0&&(V={});var E={type:"Feature"};return(V.id===0||V.id)&&(E.id=V.id),V.bbox&&(E.bbox=V.bbox),E.properties=R||{},E.geometry=C,E}function h(C,R,V){if(V===void 0&&(V={}),!C)throw new Error("coordinates is required");if(!Array.isArray(C))throw new Error("coordinates must be an Array");if(C.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!U(C[0])||!U(C[1]))throw new Error("coordinates must contain numbers");return c({type:"Point",coordinates:C},R,V)}function f(C,R,V){V===void 0&&(V={});for(var E=0,z=C;E=0))throw new Error("precision must be a positive number");var V=Math.pow(10,R||0);return Math.round(C*V)/V},l.radiansToLength=D,l.lengthToRadians=O,l.lengthToDegrees=function(C,R){return S(O(C,R))},l.bearingToAzimuth=function(C){var R=C%360;return R<0&&(R+=360),R},l.radiansToDegrees=S,l.degreesToRadians=function(C){return C%360*Math.PI/180},l.convertLength=function(C,R,V){if(R===void 0&&(R="kilometers"),V===void 0&&(V="kilometers"),!(C>=0))throw new Error("length must be a positive number");return D(O(C,R),V)},l.convertArea=function(C,R,V){if(R===void 0&&(R="meters"),V===void 0&&(V="kilometers"),!(C>=0))throw new Error("area must be a positive number");var E=l.areaFactors[R];if(!E)throw new Error("invalid original units");var z=l.areaFactors[V];if(!z)throw new Error("invalid final units");return C/E*z},l.isNumber=U,l.isObject=function(C){return!!C&&C.constructor===Object},l.validateBBox=function(C){if(!C)throw new Error("bbox is required");if(!Array.isArray(C))throw new Error("bbox must be an Array");if(C.length!==4&&C.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");C.forEach(function(R){if(!U(R))throw new Error("bbox must only contain numbers")})},l.validateId=function(C){if(!C)throw new Error("id is required");if(["string","number"].indexOf(typeof C)===-1)throw new Error("id must be a number or a string")}},1540:(i,l,c)=>{Object.defineProperty(l,"__esModule",{value:!0});var h=c(4102);function f(O,S,U){if(O!==null)for(var C,R,V,E,z,W,it,Y,ot=0,ct=0,gt=O.type,at=gt==="FeatureCollection",bt=gt==="Feature",Lt=at?O.features.length:1,Et=0;EtW||at>it||bt>Y)return z=ot,W=C,it=at,Y=bt,void(V=0);var Lt=h.lineString([z,ot],U.properties);if(S(Lt,C,R,bt,V)===!1)return!1;V++,z=ot})!==!1&&void 0}}})}function D(O,S){if(!O)throw new Error("geojson is required");x(O,function(U,C,R){if(U.geometry!==null){var V=U.geometry.type,E=U.geometry.coordinates;switch(V){case"LineString":if(S(U,C,R,0,0)===!1)return!1;break;case"Polygon":for(var z=0;z{c(7107);var h=c(2492),f=c.n(h);const m=JSON.parse('{"tooltips":{"placeMarker":"Click to place marker","firstVertex":"Click to place first vertex","continueLine":"Click to continue drawing","finishLine":"Click any existing marker to finish","finishPoly":"Click first marker to finish","finishRect":"Click to finish","startCircle":"Click to place circle center","finishCircle":"Click to finish circle","placeCircleMarker":"Click to place circle marker","placeText":"Click to place text"},"actions":{"finish":"Finish","cancel":"Cancel","removeLastVertex":"Remove Last Vertex"},"buttonTitles":{"drawMarkerButton":"Draw Marker","drawPolyButton":"Draw Polygons","drawLineButton":"Draw Polyline","drawCircleButton":"Draw Circle","drawRectButton":"Draw Rectangle","editButton":"Edit Layers","dragButton":"Drag Layers","cutButton":"Cut Layers","deleteButton":"Remove Layers","drawCircleMarkerButton":"Draw Circle Marker","snappingButton":"Snap dragged marker to other layers and vertices","pinningButton":"Pin shared vertices together","rotateButton":"Rotate Layers","drawTextButton":"Draw Text","scaleButton":"Scale Layers","autoTracingButton":"Auto trace Line"},"measurements":{"totalLength":"Length","segmentLength":"Segment length","area":"Area","radius":"Radius","perimeter":"Perimeter","height":"Height","width":"Width","coordinates":"Position","coordinatesMarker":"Position Marker"}}'),g=JSON.parse('{"tooltips":{"placeMarker":"Platziere den Marker mit Klick","firstVertex":"Platziere den ersten Marker mit Klick","continueLine":"Klicke, um weiter zu zeichnen","finishLine":"Beende mit Klick auf existierenden Marker","finishPoly":"Beende mit Klick auf ersten Marker","finishRect":"Beende mit Klick","startCircle":"Platziere das Kreiszentrum mit Klick","finishCircle":"Beende den Kreis mit Klick","placeCircleMarker":"Platziere den Kreismarker mit Klick","placeText":"Platziere den Text mit Klick"},"actions":{"finish":"Beenden","cancel":"Abbrechen","removeLastVertex":"Letzten Vertex löschen"},"buttonTitles":{"drawMarkerButton":"Marker zeichnen","drawPolyButton":"Polygon zeichnen","drawLineButton":"Polyline zeichnen","drawCircleButton":"Kreis zeichnen","drawRectButton":"Rechteck zeichnen","editButton":"Layer editieren","dragButton":"Layer bewegen","cutButton":"Layer schneiden","deleteButton":"Layer löschen","drawCircleMarkerButton":"Kreismarker zeichnen","snappingButton":"Bewegter Layer an andere Layer oder Vertexe einhacken","pinningButton":"Vertexe an der gleichen Position verknüpfen","rotateButton":"Layer drehen","drawTextButton":"Text zeichnen","scaleButton":"Layer skalieren","autoTracingButton":"Linie automatisch nachzeichen"},"measurements":{"totalLength":"Länge","segmentLength":"Segment Länge","area":"Fläche","radius":"Radius","perimeter":"Umfang","height":"Höhe","width":"Breite","coordinates":"Position","coordinatesMarker":"Position Marker"}}'),y=JSON.parse(`{"tooltips":{"placeMarker":"Clicca per posizionare un Marker","firstVertex":"Clicca per posizionare il primo vertice","continueLine":"Clicca per continuare a disegnare","finishLine":"Clicca qualsiasi marker esistente per terminare","finishPoly":"Clicca il primo marker per terminare","finishRect":"Clicca per terminare","startCircle":"Clicca per posizionare il punto centrale del cerchio","finishCircle":"Clicca per terminare il cerchio","placeCircleMarker":"Clicca per posizionare un Marker del cherchio"},"actions":{"finish":"Termina","cancel":"Annulla","removeLastVertex":"Rimuovi l'ultimo vertice"},"buttonTitles":{"drawMarkerButton":"Disegna Marker","drawPolyButton":"Disegna Poligoni","drawLineButton":"Disegna Polilinea","drawCircleButton":"Disegna Cerchio","drawRectButton":"Disegna Rettangolo","editButton":"Modifica Livelli","dragButton":"Sposta Livelli","cutButton":"Ritaglia Livelli","deleteButton":"Elimina Livelli","drawCircleMarkerButton":"Disegna Marker del Cerchio","snappingButton":"Snap ha trascinato il pennarello su altri strati e vertici","pinningButton":"Pin condiviso vertici insieme"}}`),x=JSON.parse('{"tooltips":{"placeMarker":"Klik untuk menempatkan marker","firstVertex":"Klik untuk menempatkan vertex pertama","continueLine":"Klik untuk meneruskan digitasi","finishLine":"Klik pada sembarang marker yang ada untuk mengakhiri","finishPoly":"Klik marker pertama untuk mengakhiri","finishRect":"Klik untuk mengakhiri","startCircle":"Klik untuk menempatkan titik pusat lingkaran","finishCircle":"Klik untuk mengakhiri lingkaran","placeCircleMarker":"Klik untuk menempatkan penanda lingkarann"},"actions":{"finish":"Selesai","cancel":"Batal","removeLastVertex":"Hilangkan Vertex Terakhir"},"buttonTitles":{"drawMarkerButton":"Digitasi Marker","drawPolyButton":"Digitasi Polygon","drawLineButton":"Digitasi Polyline","drawCircleButton":"Digitasi Lingkaran","drawRectButton":"Digitasi Segi Empat","editButton":"Edit Layer","dragButton":"Geser Layer","cutButton":"Potong Layer","deleteButton":"Hilangkan Layer","drawCircleMarkerButton":"Digitasi Penanda Lingkaran","snappingButton":"Jepretkan penanda yang ditarik ke lapisan dan simpul lain","pinningButton":"Sematkan simpul bersama bersama"}}'),M=JSON.parse('{"tooltips":{"placeMarker":"Adaugă un punct","firstVertex":"Apasă aici pentru a adăuga primul Vertex","continueLine":"Apasă aici pentru a continua desenul","finishLine":"Apasă pe orice obiect pentru a finisa desenul","finishPoly":"Apasă pe primul obiect pentru a finisa","finishRect":"Apasă pentru a finisa","startCircle":"Apasă pentru a desena un cerc","finishCircle":"Apasă pentru a finisa un cerc","placeCircleMarker":"Adaugă un punct"},"actions":{"finish":"Termină","cancel":"Anulează","removeLastVertex":"Șterge ultimul Vertex"},"buttonTitles":{"drawMarkerButton":"Adaugă o bulină","drawPolyButton":"Desenează un poligon","drawLineButton":"Desenează o linie","drawCircleButton":"Desenează un cerc","drawRectButton":"Desenează un dreptunghi","editButton":"Editează straturile","dragButton":"Mută straturile","cutButton":"Taie straturile","deleteButton":"Șterge straturile","drawCircleMarkerButton":"Desenează marcatorul cercului","snappingButton":"Fixați marcatorul glisat pe alte straturi și vârfuri","pinningButton":"Fixați vârfurile partajate împreună"}}'),D=JSON.parse('{"tooltips":{"placeMarker":"Нажмите, чтобы нанести маркер","firstVertex":"Нажмите, чтобы нанести первый объект","continueLine":"Нажмите, чтобы продолжить рисование","finishLine":"Нажмите любой существующий маркер для завершения","finishPoly":"Выберите первую точку, чтобы закончить","finishRect":"Нажмите, чтобы закончить","startCircle":"Нажмите, чтобы добавить центр круга","finishCircle":"Нажмите, чтобы задать радиус","placeCircleMarker":"Нажмите, чтобы нанести круговой маркер"},"actions":{"finish":"Завершить","cancel":"Отменить","removeLastVertex":"Отменить последнее действие"},"buttonTitles":{"drawMarkerButton":"Добавить маркер","drawPolyButton":"Рисовать полигон","drawLineButton":"Рисовать кривую","drawCircleButton":"Рисовать круг","drawRectButton":"Рисовать прямоугольник","editButton":"Редактировать слой","dragButton":"Перенести слой","cutButton":"Вырезать слой","deleteButton":"Удалить слой","drawCircleMarkerButton":"Добавить круговой маркер","snappingButton":"Привязать перетаскиваемый маркер к другим слоям и вершинам","pinningButton":"Связать общие точки вместе"}}'),O=JSON.parse('{"tooltips":{"placeMarker":"Presiona para colocar un marcador","firstVertex":"Presiona para colocar el primer vértice","continueLine":"Presiona para continuar dibujando","finishLine":"Presiona cualquier marcador existente para finalizar","finishPoly":"Presiona el primer marcador para finalizar","finishRect":"Presiona para finalizar","startCircle":"Presiona para colocar el centro del círculo","finishCircle":"Presiona para finalizar el círculo","placeCircleMarker":"Presiona para colocar un marcador de círculo"},"actions":{"finish":"Finalizar","cancel":"Cancelar","removeLastVertex":"Eliminar último vértice"},"buttonTitles":{"drawMarkerButton":"Dibujar Marcador","drawPolyButton":"Dibujar Polígono","drawLineButton":"Dibujar Línea","drawCircleButton":"Dibujar Círculo","drawRectButton":"Dibujar Rectángulo","editButton":"Editar Capas","dragButton":"Arrastrar Capas","cutButton":"Cortar Capas","deleteButton":"Eliminar Capas","drawCircleMarkerButton":"Dibujar Marcador de Círculo","snappingButton":"El marcador de Snap arrastrado a otras capas y vértices","pinningButton":"Fijar juntos los vértices compartidos"}}'),S=JSON.parse('{"tooltips":{"placeMarker":"Klik om een marker te plaatsen","firstVertex":"Klik om het eerste punt te plaatsen","continueLine":"Klik om te blijven tekenen","finishLine":"Klik op een bestaand punt om te beëindigen","finishPoly":"Klik op het eerst punt om te beëindigen","finishRect":"Klik om te beëindigen","startCircle":"Klik om het middelpunt te plaatsen","finishCircle":"Klik om de cirkel te beëindigen","placeCircleMarker":"Klik om een marker te plaatsen"},"actions":{"finish":"Bewaar","cancel":"Annuleer","removeLastVertex":"Verwijder laatste punt"},"buttonTitles":{"drawMarkerButton":"Plaats Marker","drawPolyButton":"Teken een vlak","drawLineButton":"Teken een lijn","drawCircleButton":"Teken een cirkel","drawRectButton":"Teken een vierkant","editButton":"Bewerk","dragButton":"Verplaats","cutButton":"Knip","deleteButton":"Verwijder","drawCircleMarkerButton":"Plaats Marker","snappingButton":"Snap gesleepte marker naar andere lagen en hoekpunten","pinningButton":"Speld gedeelde hoekpunten samen"}}'),U=JSON.parse(`{"tooltips":{"placeMarker":"Cliquez pour placer un marqueur","firstVertex":"Cliquez pour placer le premier sommet","continueLine":"Cliquez pour continuer à dessiner","finishLine":"Cliquez sur n'importe quel marqueur pour terminer","finishPoly":"Cliquez sur le premier marqueur pour terminer","finishRect":"Cliquez pour terminer","startCircle":"Cliquez pour placer le centre du cercle","finishCircle":"Cliquez pour finir le cercle","placeCircleMarker":"Cliquez pour placer le marqueur circulaire"},"actions":{"finish":"Terminer","cancel":"Annuler","removeLastVertex":"Retirer le dernier sommet"},"buttonTitles":{"drawMarkerButton":"Placer des marqueurs","drawPolyButton":"Dessiner des polygones","drawLineButton":"Dessiner des polylignes","drawCircleButton":"Dessiner un cercle","drawRectButton":"Dessiner un rectangle","editButton":"Éditer des calques","dragButton":"Déplacer des calques","cutButton":"Couper des calques","deleteButton":"Supprimer des calques","drawCircleMarkerButton":"Dessiner un marqueur circulaire","snappingButton":"Glisser le marqueur vers d'autres couches et sommets","pinningButton":"Épingler ensemble les sommets partagés","rotateButton":"Tourner des calques"}}`),C=JSON.parse('{"tooltips":{"placeMarker":"单击放置标记","firstVertex":"单击放置首个顶点","continueLine":"单击继续绘制","finishLine":"单击任何存在的标记以完成","finishPoly":"单击第一个标记以完成","finishRect":"单击完成","startCircle":"单击放置圆心","finishCircle":"单击完成圆形","placeCircleMarker":"点击放置圆形标记"},"actions":{"finish":"完成","cancel":"取消","removeLastVertex":"移除最后的顶点"},"buttonTitles":{"drawMarkerButton":"绘制标记","drawPolyButton":"绘制多边形","drawLineButton":"绘制线段","drawCircleButton":"绘制圆形","drawRectButton":"绘制长方形","editButton":"编辑图层","dragButton":"拖拽图层","cutButton":"剪切图层","deleteButton":"删除图层","drawCircleMarkerButton":"画圆圈标记","snappingButton":"将拖动的标记捕捉到其他图层和顶点","pinningButton":"将共享顶点固定在一起"}}'),R=JSON.parse('{"tooltips":{"placeMarker":"單擊放置標記","firstVertex":"單擊放置第一個頂點","continueLine":"單擊繼續繪製","finishLine":"單擊任何存在的標記以完成","finishPoly":"單擊第一個標記以完成","finishRect":"單擊完成","startCircle":"單擊放置圓心","finishCircle":"單擊完成圓形","placeCircleMarker":"點擊放置圓形標記"},"actions":{"finish":"完成","cancel":"取消","removeLastVertex":"移除最後一個頂點"},"buttonTitles":{"drawMarkerButton":"放置標記","drawPolyButton":"繪製多邊形","drawLineButton":"繪製線段","drawCircleButton":"繪製圓形","drawRectButton":"繪製方形","editButton":"編輯圖形","dragButton":"移動圖形","cutButton":"裁切圖形","deleteButton":"刪除圖形","drawCircleMarkerButton":"畫圓圈標記","snappingButton":"將拖動的標記對齊到其他圖層和頂點","pinningButton":"將共享頂點固定在一起"}}'),V={en:m,de:g,it:y,id:x,ro:M,ru:D,es:O,nl:S,fr:U,pt_br:JSON.parse('{"tooltips":{"placeMarker":"Clique para posicionar o marcador","firstVertex":"Clique para posicionar o primeiro vértice","continueLine":"Clique para continuar desenhando","finishLine":"Clique em qualquer marcador existente para finalizar","finishPoly":"Clique no primeiro ponto para fechar o polígono","finishRect":"Clique para finalizar","startCircle":"Clique para posicionar o centro do círculo","finishCircle":"Clique para fechar o círculo","placeCircleMarker":"Clique para posicionar o marcador circular"},"actions":{"finish":"Finalizar","cancel":"Cancelar","removeLastVertex":"Remover último vértice"},"buttonTitles":{"drawMarkerButton":"Desenhar um marcador","drawPolyButton":"Desenhar um polígono","drawLineButton":"Desenhar uma polilinha","drawCircleButton":"Desenhar um círculo","drawRectButton":"Desenhar um retângulo","editButton":"Editar camada(s)","dragButton":"Mover camada(s)","cutButton":"Recortar camada(s)","deleteButton":"Remover camada(s)","drawCircleMarkerButton":"Marcador de círculos de desenho","snappingButton":"Marcador arrastado para outras camadas e vértices","pinningButton":"Vértices compartilhados de pinos juntos"}}'),zh:C,zh_tw:R,pl:JSON.parse('{"tooltips":{"placeMarker":"Kliknij, aby ustawić znacznik","firstVertex":"Kliknij, aby ustawić pierwszy punkt","continueLine":"Kliknij, aby kontynuować rysowanie","finishLine":"Kliknij dowolny punkt, aby zakończyć","finishPoly":"Kliknij pierwszy punkt, aby zakończyć","finishRect":"Kliknij, aby zakończyć","startCircle":"Kliknij, aby ustawić środek koła","finishCircle":"Kliknij, aby zakończyć rysowanie koła","placeCircleMarker":"Kliknij, aby ustawić okrągły znacznik"},"actions":{"finish":"Zakończ","cancel":"Anuluj","removeLastVertex":"Usuń ostatni punkt"},"buttonTitles":{"drawMarkerButton":"Narysuj znacznik","drawPolyButton":"Narysuj wielokąt","drawLineButton":"Narysuj ścieżkę","drawCircleButton":"Narysuj koło","drawRectButton":"Narysuj prostokąt","editButton":"Edytuj","dragButton":"Przesuń","cutButton":"Wytnij","deleteButton":"Usuń","drawCircleMarkerButton":"Narysuj okrągły znacznik","snappingButton":"Snap przeciągnięty marker na inne warstwy i wierzchołki","pinningButton":"Sworzeń wspólne wierzchołki razem"}}'),sv:JSON.parse('{"tooltips":{"placeMarker":"Klicka för att placera markör","firstVertex":"Klicka för att placera första hörnet","continueLine":"Klicka för att fortsätta rita","finishLine":"Klicka på en existerande punkt för att slutföra","finishPoly":"Klicka på den första punkten för att slutföra","finishRect":"Klicka för att slutföra","startCircle":"Klicka för att placera cirkelns centrum","finishCircle":"Klicka för att slutföra cirkeln","placeCircleMarker":"Klicka för att placera cirkelmarkör"},"actions":{"finish":"Slutför","cancel":"Avbryt","removeLastVertex":"Ta bort sista hörnet"},"buttonTitles":{"drawMarkerButton":"Rita Markör","drawPolyButton":"Rita Polygoner","drawLineButton":"Rita Linje","drawCircleButton":"Rita Cirkel","drawRectButton":"Rita Rektangel","editButton":"Redigera Lager","dragButton":"Dra Lager","cutButton":"Klipp i Lager","deleteButton":"Ta bort Lager","drawCircleMarkerButton":"Rita Cirkelmarkör","snappingButton":"Snäpp dra markören till andra lager och hörn","pinningButton":"Fäst delade hörn tillsammans"}}'),el:JSON.parse('{"tooltips":{"placeMarker":"Κάντε κλικ για να τοποθετήσετε Δείκτη","firstVertex":"Κάντε κλικ για να τοποθετήσετε το πρώτο σημείο","continueLine":"Κάντε κλικ για να συνεχίσετε να σχεδιάζετε","finishLine":"Κάντε κλικ σε οποιονδήποτε υπάρχον σημείο για να ολοκληρωθεί","finishPoly":"Κάντε κλικ στο πρώτο σημείο για να τελειώσετε","finishRect":"Κάντε κλικ για να τελειώσετε","startCircle":"Κάντε κλικ για να τοποθετήσετε κέντρο Κύκλου","finishCircle":"Κάντε κλικ για να ολοκληρώσετε τον Κύκλο","placeCircleMarker":"Κάντε κλικ για να τοποθετήσετε Κυκλικό Δείκτη"},"actions":{"finish":"Τέλος","cancel":"Ακύρωση","removeLastVertex":"Κατάργηση τελευταίου σημείου"},"buttonTitles":{"drawMarkerButton":"Σχεδίαση Δείκτη","drawPolyButton":"Σχεδίαση Πολυγώνου","drawLineButton":"Σχεδίαση Γραμμής","drawCircleButton":"Σχεδίαση Κύκλου","drawRectButton":"Σχεδίαση Ορθογωνίου","editButton":"Επεξεργασία Επιπέδων","dragButton":"Μεταφορά Επιπέδων","cutButton":"Αποκοπή Επιπέδων","deleteButton":"Κατάργηση Επιπέδων","drawCircleMarkerButton":"Σχεδίαση Κυκλικού Δείκτη","snappingButton":"Προσκόλληση του Δείκτη μεταφοράς σε άλλα Επίπεδα και Κορυφές","pinningButton":"Περικοπή κοινών κορυφών μαζί"}}'),hu:JSON.parse('{"tooltips":{"placeMarker":"Kattintson a jelölő elhelyezéséhez","firstVertex":"Kattintson az első pont elhelyezéséhez","continueLine":"Kattintson a következő pont elhelyezéséhez","finishLine":"A befejezéshez kattintson egy meglévő pontra","finishPoly":"A befejezéshez kattintson az első pontra","finishRect":"Kattintson a befejezéshez","startCircle":"Kattintson a kör középpontjának elhelyezéséhez","finishCircle":"Kattintson a kör befejezéséhez","placeCircleMarker":"Kattintson a körjelölő elhelyezéséhez"},"actions":{"finish":"Befejezés","cancel":"Mégse","removeLastVertex":"Utolsó pont eltávolítása"},"buttonTitles":{"drawMarkerButton":"Jelölő rajzolása","drawPolyButton":"Poligon rajzolása","drawLineButton":"Vonal rajzolása","drawCircleButton":"Kör rajzolása","drawRectButton":"Négyzet rajzolása","editButton":"Elemek szerkesztése","dragButton":"Elemek mozgatása","cutButton":"Elemek vágása","deleteButton":"Elemek törlése","drawCircleMarkerButton":"Kör jelölő rajzolása","snappingButton":"Kapcsolja a jelöltőt másik elemhez vagy ponthoz","pinningButton":"Közös pontok összekötése"}}'),da:JSON.parse('{"tooltips":{"placeMarker":"Tryk for at placere en markør","firstVertex":"Tryk for at placere det første punkt","continueLine":"Tryk for at fortsætte linjen","finishLine":"Tryk på et eksisterende punkt for at afslutte","finishPoly":"Tryk på det første punkt for at afslutte","finishRect":"Tryk for at afslutte","startCircle":"Tryk for at placere cirklens center","finishCircle":"Tryk for at afslutte cirklen","placeCircleMarker":"Tryk for at placere en cirkelmarkør"},"actions":{"finish":"Afslut","cancel":"Afbryd","removeLastVertex":"Fjern sidste punkt"},"buttonTitles":{"drawMarkerButton":"Placer markør","drawPolyButton":"Tegn polygon","drawLineButton":"Tegn linje","drawCircleButton":"Tegn cirkel","drawRectButton":"Tegn firkant","editButton":"Rediger","dragButton":"Træk","cutButton":"Klip","deleteButton":"Fjern","drawCircleMarkerButton":"Tegn cirkelmarkør","snappingButton":"Fastgør trukket markør til andre elementer","pinningButton":"Sammenlæg delte elementer"}}'),no:JSON.parse('{"tooltips":{"placeMarker":"Klikk for å plassere punkt","firstVertex":"Klikk for å plassere første punkt","continueLine":"Klikk for å tegne videre","finishLine":"Klikk på et eksisterende punkt for å fullføre","finishPoly":"Klikk første punkt for å fullføre","finishRect":"Klikk for å fullføre","startCircle":"Klikk for å sette sirkel midtpunkt","finishCircle":"Klikk for å fullføre sirkel","placeCircleMarker":"Klikk for å plassere sirkel"},"actions":{"finish":"Fullfør","cancel":"Kanseller","removeLastVertex":"Fjern forrige punkt"},"buttonTitles":{"drawMarkerButton":"Tegn Punkt","drawPolyButton":"Tegn Flate","drawLineButton":"Tegn Linje","drawCircleButton":"Tegn Sirkel","drawRectButton":"Tegn rektangel","editButton":"Rediger Objekter","dragButton":"Dra Objekter","cutButton":"Kutt Objekter","deleteButton":"Fjern Objekter","drawCircleMarkerButton":"Tegn sirkel-punkt","snappingButton":"Fest dratt punkt til andre objekter og punkt","pinningButton":"Pin delte punkt sammen"}}'),fa:JSON.parse('{"tooltips":{"placeMarker":"کلیک برای جانمایی نشان","firstVertex":"کلیک برای رسم اولین رأس","continueLine":"کلیک برای ادامه رسم","finishLine":"کلیک روی هر نشان موجود برای پایان","finishPoly":"کلیک روی اولین نشان برای پایان","finishRect":"کلیک برای پایان","startCircle":"کلیک برای رسم مرکز دایره","finishCircle":"کلیک برای پایان رسم دایره","placeCircleMarker":"کلیک برای رسم نشان دایره","placeText":"کلیک برای نوشتن متن"},"actions":{"finish":"پایان","cancel":"لفو","removeLastVertex":"حذف آخرین رأس"},"buttonTitles":{"drawMarkerButton":"درج نشان","drawPolyButton":"رسم چندضلعی","drawLineButton":"رسم خط","drawCircleButton":"رسم دایره","drawRectButton":"رسم چهارضلعی","editButton":"ویرایش لایه‌ها","dragButton":"جابجایی لایه‌ها","cutButton":"برش لایه‌ها","deleteButton":"حذف لایه‌ها","drawCircleMarkerButton":"رسم نشان دایره","snappingButton":"نشانگر را به لایه‌ها و رئوس دیگر بکشید","pinningButton":"رئوس مشترک را با هم پین کنید","rotateButton":"چرخش لایه","drawTextButton":"رسم متن"}}'),ua:JSON.parse(`{"tooltips":{"placeMarker":"Натисніть, щоб нанести маркер","firstVertex":"Натисніть, щоб нанести першу вершину","continueLine":"Натисніть, щоб продовжити малювати","finishLine":"Натисніть будь-який існуючий маркер для завершення","finishPoly":"Виберіть перший маркер, щоб завершити","finishRect":"Натисніть, щоб завершити","startCircle":"Натисніть, щоб додати центр кола","finishCircle":"Натисніть, щоб завершити коло","placeCircleMarker":"Натисніть, щоб нанести круговий маркер"},"actions":{"finish":"Завершити","cancel":"Відмінити","removeLastVertex":"Видалити попередню вершину"},"buttonTitles":{"drawMarkerButton":"Малювати маркер","drawPolyButton":"Малювати полігон","drawLineButton":"Малювати криву","drawCircleButton":"Малювати коло","drawRectButton":"Малювати прямокутник","editButton":"Редагувати шари","dragButton":"Перенести шари","cutButton":"Вирізати шари","deleteButton":"Видалити шари","drawCircleMarkerButton":"Малювати круговий маркер","snappingButton":"Прив’язати перетягнутий маркер до інших шарів та вершин","pinningButton":"Зв'язати спільні вершини разом"}}`),tr:JSON.parse('{"tooltips":{"placeMarker":"İşaretçi yerleştirmek için tıklayın","firstVertex":"İlk tepe noktasını yerleştirmek için tıklayın","continueLine":"Çizime devam etmek için tıklayın","finishLine":"Bitirmek için mevcut herhangi bir işaretçiyi tıklayın","finishPoly":"Bitirmek için ilk işaretçiyi tıklayın","finishRect":"Bitirmek için tıklayın","startCircle":"Daire merkezine yerleştirmek için tıklayın","finishCircle":"Daireyi bitirmek için tıklayın","placeCircleMarker":"Daire işaretçisi yerleştirmek için tıklayın"},"actions":{"finish":"Bitir","cancel":"İptal","removeLastVertex":"Son köşeyi kaldır"},"buttonTitles":{"drawMarkerButton":"Çizim İşaretçisi","drawPolyButton":"Çokgenler çiz","drawLineButton":"Çoklu çizgi çiz","drawCircleButton":"Çember çiz","drawRectButton":"Dikdörtgen çiz","editButton":"Katmanları düzenle","dragButton":"Katmanları sürükle","cutButton":"Katmanları kes","deleteButton":"Katmanları kaldır","drawCircleMarkerButton":"Daire işaretçisi çiz","snappingButton":"Sürüklenen işaretçiyi diğer katmanlara ve köşelere yapıştır","pinningButton":"Paylaşılan köşeleri birbirine sabitle"}}'),cz:JSON.parse('{"tooltips":{"placeMarker":"Kliknutím vytvoříte značku","firstVertex":"Kliknutím vytvoříte první objekt","continueLine":"Kliknutím pokračujte v kreslení","finishLine":"Kliknutí na libovolnou existující značku pro dokončení","finishPoly":"Vyberte první bod pro dokončení","finishRect":"Klikněte pro dokončení","startCircle":"Kliknutím přidejte střed kruhu","finishCircle":"Нажмите, чтобы задать радиус","placeCircleMarker":"Kliknutím nastavte poloměr"},"actions":{"finish":"Dokončit","cancel":"Zrušit","removeLastVertex":"Zrušit poslední akci"},"buttonTitles":{"drawMarkerButton":"Přidat značku","drawPolyButton":"Nakreslit polygon","drawLineButton":"Nakreslit křivku","drawCircleButton":"Nakreslit kruh","drawRectButton":"Nakreslit obdélník","editButton":"Upravit vrstvu","dragButton":"Přeneste vrstvu","cutButton":"Vyjmout vrstvu","deleteButton":"Smazat vrstvu","drawCircleMarkerButton":"Přidat kruhovou značku","snappingButton":"Navázat tažnou značku k dalším vrstvám a vrcholům","pinningButton":"Spojit společné body dohromady"}}'),ja:JSON.parse('{"tooltips":{"placeMarker":"クリックしてマーカーを配置","firstVertex":"クリックして最初の頂点を配置","continueLine":"クリックして描画を続ける","finishLine":"任意のマーカーをクリックして終了","finishPoly":"最初のマーカーをクリックして終了","finishRect":"クリックして終了","startCircle":"クリックして円の中心を配置","finishCircle":"クリックして円の描画を終了","placeCircleMarker":"クリックして円マーカーを配置","placeText":"クリックしてテキストを配置"},"actions":{"finish":"終了","cancel":"キャンセル","removeLastVertex":"最後の頂点を削除"},"buttonTitles":{"drawMarkerButton":"マーカーを描画","drawPolyButton":"ポリゴンを描画","drawLineButton":"折れ線を描画","drawCircleButton":"円を描画","drawRectButton":"矩形を描画","editButton":"レイヤーを編集","dragButton":"レイヤーをドラッグ","cutButton":"レイヤーを切り取り","deleteButton":"レイヤーを削除","drawCircleMarkerButton":"円マーカーを描画","snappingButton":"ドラッグしたマーカーを他のレイヤーや頂点にスナップする","pinningButton":"共有する頂点を同時に動かす","rotateButton":"レイヤーを回転","drawTextButton":"テキストを描画"}}'),fi:JSON.parse('{"tooltips":{"placeMarker":"Klikkaa asettaaksesi merkin","firstVertex":"Klikkaa asettaakseni ensimmäisen osuuden","continueLine":"Klikkaa jatkaaksesi piirtämistä","finishLine":"Klikkaa olemassa olevaa merkkiä lopettaaksesi","finishPoly":"Klikkaa ensimmäistä merkkiä lopettaaksesi","finishRect":"Klikkaa lopettaaksesi","startCircle":"Klikkaa asettaaksesi ympyrän keskipisteen","finishCircle":"Klikkaa lopettaaksesi ympyrän","placeCircleMarker":"Klikkaa asettaaksesi ympyrämerkin","placeText":"Klikkaa asettaaksesi tekstin"},"actions":{"finish":"Valmis","cancel":"Peruuta","removeLastVertex":"Poista viimeinen osuus"},"buttonTitles":{"drawMarkerButton":"Piirrä merkkejä","drawPolyButton":"Piirrä monikulmioita","drawLineButton":"Piirrä viivoja","drawCircleButton":"Piirrä ympyrä","drawRectButton":"Piirrä neliskulmioita","editButton":"Muokkaa","dragButton":"Siirrä","cutButton":"Leikkaa","deleteButton":"Poista","drawCircleMarkerButton":"Piirrä ympyrämerkki","snappingButton":"Kiinnitä siirrettävä merkki toisiin muotoihin","pinningButton":"Kiinnitä jaetut muodot yhteen","rotateButton":"Käännä","drawTextButton":"Piirrä tekstiä"}}'),ko:JSON.parse('{"tooltips":{"placeMarker":"마커 위치를 클릭하세요","firstVertex":"첫번째 꼭지점 위치을 클릭하세요","continueLine":"계속 그리려면 클릭하세요","finishLine":"끝내려면 기존 마커를 클릭하세요","finishPoly":"끝내려면 처음 마커를 클릭하세요","finishRect":"끝내려면 클릭하세요","startCircle":"원의 중심이 될 위치를 클릭하세요","finishCircle":"원을 끝내려면 클릭하세요","placeCircleMarker":"원 마커 위치를 클릭하세요","placeText":"텍스트 위치를 클릭하세요"},"actions":{"finish":"끝내기","cancel":"취소","removeLastVertex":"마지막 꼭지점 제거"},"buttonTitles":{"drawMarkerButton":"마커 그리기","drawPolyButton":"다각형 그리기","drawLineButton":"다각선 그리기","drawCircleButton":"원 그리기","drawRectButton":"직사각형 그리기","editButton":"레이어 편집하기","dragButton":"레이어 끌기","cutButton":"레이어 자르기","deleteButton":"레이어 제거하기","drawCircleMarkerButton":"원 마커 그리기","snappingButton":"잡아끈 마커를 다른 레이어 및 꼭지점에 들러붙게 하기","pinningButton":"공유 꼭지점을 함께 찍기","rotateButton":"레이어 회전하기","drawTextButton":"텍스트 그리기"}}')};function E(r,a){var d=Object.keys(r);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(r);a&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(r,w).enumerable})),d.push.apply(d,_)}return d}function z(r){for(var a=1;a0&&arguments[0]!==void 0?arguments[0]:this.globalOptions;this.globalEditModeEnabled()?this.disableGlobalEditMode():this.enableGlobalEditMode(r)},handleLayerAdditionInGlobalEditMode:function(){var r=this._addedLayers;for(var a in this._addedLayers={},r){var d=r[a];this._isRelevantForEdit(d)&&this.globalEditModeEnabled()&&d.pm.enable(z({},this.globalOptions))}},_layerAdded:function(r){var a=r.layer;this._addedLayers[L.stamp(a)]=a},_isRelevantForEdit:function(r){return r.pm&&!(r instanceof L.LayerGroup)&&(!L.PM.optIn&&!r.options.pmIgnore||L.PM.optIn&&r.options.pmIgnore===!1)&&!r._pmTempLayer&&r.pm.options.allowEditing}},Y={_globalDragModeEnabled:!1,enableGlobalDragMode:function(){var r=L.PM.Utils.findLayers(this.map);this._globalDragModeEnabled=!0,this._addedLayersDrag={},r.forEach(function(a){a.pm.enableLayerDrag()}),this.throttledReInitDrag||(this.throttledReInitDrag=L.Util.throttle(this.reinitGlobalDragMode,100,this)),this.map.on("layeradd",this._layerAddedDrag,this),this.map.on("layeradd",this.throttledReInitDrag,this),this.Toolbar.toggleButton("dragMode",this.globalDragModeEnabled()),this._fireGlobalDragModeToggled(!0)},disableGlobalDragMode:function(){var r=L.PM.Utils.findLayers(this.map);this._globalDragModeEnabled=!1,r.forEach(function(a){a.pm.disableLayerDrag()}),this.map.off("layeradd",this._layerAddedDrag,this),this.map.off("layeradd",this.throttledReInitDrag,this),this.Toolbar.toggleButton("dragMode",this.globalDragModeEnabled()),this._fireGlobalDragModeToggled(!1)},globalDragModeEnabled:function(){return!!this._globalDragModeEnabled},toggleGlobalDragMode:function(){this.globalDragModeEnabled()?this.disableGlobalDragMode():this.enableGlobalDragMode()},reinitGlobalDragMode:function(){var r=this._addedLayersDrag;for(var a in this._addedLayersDrag={},r){var d=r[a];this._isRelevantForDrag(d)&&this.globalDragModeEnabled()&&d.pm.enableLayerDrag()}},_layerAddedDrag:function(r){var a=r.layer;this._addedLayersDrag[L.stamp(a)]=a},_isRelevantForDrag:function(r){return r.pm&&!(r instanceof L.LayerGroup)&&(!L.PM.optIn&&!r.options.pmIgnore||L.PM.optIn&&r.options.pmIgnore===!1)&&!r._pmTempLayer&&r.pm.options.draggable}},ot={_globalRemovalModeEnabled:!1,enableGlobalRemovalMode:function(){var r=this;this._globalRemovalModeEnabled=!0,this.map.eachLayer(function(a){r._isRelevantForRemoval(a)&&(a.pm.disable(),a.on("click",r.removeLayer,r))}),this.throttledReInitRemoval||(this.throttledReInitRemoval=L.Util.throttle(this.reinitGlobalRemovalMode,100,this)),this.map.on("layeradd",this.throttledReInitRemoval,this),this.Toolbar.toggleButton("removalMode",this.globalRemovalModeEnabled()),this._fireGlobalRemovalModeToggled(!0)},disableGlobalRemovalMode:function(){var r=this;this._globalRemovalModeEnabled=!1,this.map.eachLayer(function(a){a.off("click",r.removeLayer,r)}),this.map.off("layeradd",this.throttledReInitRemoval,this),this.Toolbar.toggleButton("removalMode",this.globalRemovalModeEnabled()),this._fireGlobalRemovalModeToggled(!1)},globalRemovalEnabled:function(){return this.globalRemovalModeEnabled()},globalRemovalModeEnabled:function(){return!!this._globalRemovalModeEnabled},toggleGlobalRemovalMode:function(){this.globalRemovalModeEnabled()?this.disableGlobalRemovalMode():this.enableGlobalRemovalMode()},reinitGlobalRemovalMode:function(r){var a=r.layer;this._isRelevantForRemoval(a)&&this.globalRemovalModeEnabled()&&(this.disableGlobalRemovalMode(),this.enableGlobalRemovalMode())},removeLayer:function(r){var a=r.target;this._isRelevantForRemoval(a)&&!a.pm.dragging()&&(a.removeFrom(this.map.pm._getContainingLayer()),a.remove(),a instanceof L.LayerGroup?(this._fireRemoveLayerGroup(a),this._fireRemoveLayerGroup(this.map,a)):(a.pm._fireRemove(a),a.pm._fireRemove(this.map,a)))},_isRelevantForRemoval:function(r){return r.pm&&!(r instanceof L.LayerGroup)&&(!L.PM.optIn&&!r.options.pmIgnore||L.PM.optIn&&r.options.pmIgnore===!1)&&!r._pmTempLayer&&r.pm.options.allowRemoval}},ct={_globalRotateModeEnabled:!1,enableGlobalRotateMode:function(){var r=this;this._globalRotateModeEnabled=!0,L.PM.Utils.findLayers(this.map).filter(function(a){return a instanceof L.Polyline}).forEach(function(a){r._isRelevantForRotate(a)&&a.pm.enableRotate()}),this.throttledReInitRotate||(this.throttledReInitRotate=L.Util.throttle(this._reinitGlobalRotateMode,100,this)),this.map.on("layeradd",this.throttledReInitRotate,this),this.Toolbar.toggleButton("rotateMode",this.globalRotateModeEnabled()),this._fireGlobalRotateModeToggled()},disableGlobalRotateMode:function(){this._globalRotateModeEnabled=!1,L.PM.Utils.findLayers(this.map).filter(function(r){return r instanceof L.Polyline}).forEach(function(r){r.pm.disableRotate()}),this.map.off("layeradd",this.throttledReInitRotate,this),this.Toolbar.toggleButton("rotateMode",this.globalRotateModeEnabled()),this._fireGlobalRotateModeToggled()},globalRotateModeEnabled:function(){return!!this._globalRotateModeEnabled},toggleGlobalRotateMode:function(){this.globalRotateModeEnabled()?this.disableGlobalRotateMode():this.enableGlobalRotateMode()},_reinitGlobalRotateMode:function(r){var a=r.layer;this._isRelevantForRotate(a)&&this.globalRotateModeEnabled()&&(this.disableGlobalRotateMode(),this.enableGlobalRotateMode())},_isRelevantForRotate:function(r){return r.pm&&!(r instanceof L.LayerGroup)&&(!L.PM.optIn&&!r.options.pmIgnore||L.PM.optIn&&r.options.pmIgnore===!1)&&!r._pmTempLayer&&r.pm.options.allowRotation}};function gt(r,a){var d=Object.keys(r);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(r);a&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(r,w).enumerable})),d.push.apply(d,_)}return d}function at(r){for(var a=1;a0&&arguments[0]!==void 0?arguments[0]:"Draw",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__fire(this._map,"pm:drawstart",{shape:this._shape,workingLayer:this._layer},r,a)},_fireDrawEnd:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Draw",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__fire(this._map,"pm:drawend",{shape:this._shape},r,a)},_fireCreate:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Draw",d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.__fire(this._map,"pm:create",{shape:this._shape,marker:r,layer:r},a,d)},_fireCenterPlaced:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Draw",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=r==="Draw"?this._layer:void 0,_=r!=="Draw"?this._layer:void 0;this.__fire(this._layer,"pm:centerplaced",{shape:this._shape,workingLayer:d,layer:_,latlng:this._layer.getLatLng()},r,a)},_fireCut:function(r,a,d){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"Draw",w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};this.__fire(r,"pm:cut",{shape:this._shape,layer:a,originalLayer:d},_,w)},_fireEdit:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._layer,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Edit",d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.__fire(r,"pm:edit",{layer:this._layer,shape:this.getShape()},a,d)},_fireEnable:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Edit",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__fire(this._layer,"pm:enable",{layer:this._layer,shape:this.getShape()},r,a)},_fireDisable:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Edit",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__fire(this._layer,"pm:disable",{layer:this._layer,shape:this.getShape()},r,a)},_fireUpdate:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Edit",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__fire(this._layer,"pm:update",{layer:this._layer,shape:this.getShape()},r,a)},_fireMarkerDragStart:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Edit",_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};this.__fire(this._layer,"pm:markerdragstart",{layer:this._layer,markerEvent:r,shape:this.getShape(),indexPath:a},d,_)},_fireMarkerDrag:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Edit",_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};this.__fire(this._layer,"pm:markerdrag",{layer:this._layer,markerEvent:r,shape:this.getShape(),indexPath:a},d,_)},_fireMarkerDragEnd:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"Edit",w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};this.__fire(this._layer,"pm:markerdragend",{layer:this._layer,markerEvent:r,shape:this.getShape(),indexPath:a,intersectionReset:d},_,w)},_fireDragStart:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Edit",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__fire(this._layer,"pm:dragstart",{layer:this._layer,shape:this.getShape()},r,a)},_fireDrag:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Edit",d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.__fire(this._layer,"pm:drag",at(at({},r),{},{shape:this.getShape()}),a,d)},_fireDragEnd:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Edit",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__fire(this._layer,"pm:dragend",{layer:this._layer,shape:this.getShape()},r,a)},_fireDragEnable:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Edit",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__fire(this._layer,"pm:dragenable",{layer:this._layer,shape:this.getShape()},r,a)},_fireDragDisable:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Edit",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__fire(this._layer,"pm:dragdisable",{layer:this._layer,shape:this.getShape()},r,a)},_fireRemove:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Edit",_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};this.__fire(r,"pm:remove",{layer:a,shape:this.getShape()},d,_)},_fireVertexAdded:function(r,a,d){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"Edit",w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};this.__fire(this._layer,"pm:vertexadded",{layer:this._layer,workingLayer:this._layer,marker:r,indexPath:a,latlng:d,shape:this.getShape()},_,w)},_fireVertexRemoved:function(r,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Edit",_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};this.__fire(this._layer,"pm:vertexremoved",{layer:this._layer,marker:r,indexPath:a,shape:this.getShape()},d,_)},_fireVertexClick:function(r,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Edit",_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};this.__fire(this._layer,"pm:vertexclick",{layer:this._layer,markerEvent:r,indexPath:a,shape:this.getShape()},d,_)},_fireIntersect:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Edit",d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.__fire(this._layer,"pm:intersect",{layer:this._layer,intersection:r,shape:this.getShape()},a,d)},_fireLayerReset:function(r,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Edit",_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};this.__fire(this._layer,"pm:layerreset",{layer:this._layer,markerEvent:r,indexPath:a,shape:this.getShape()},d,_)},_fireChange:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Edit",d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.__fire(this._layer,"pm:change",{layer:this._layer,latlngs:r,shape:this.getShape()},a,d)},_fireTextChange:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Edit",d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.__fire(this._layer,"pm:textchange",{layer:this._layer,text:r,shape:this.getShape()},a,d)},_fireTextFocus:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Edit",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__fire(this._layer,"pm:textfocus",{layer:this._layer,shape:this.getShape()},r,a)},_fireTextBlur:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Edit",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__fire(this._layer,"pm:textblur",{layer:this._layer,shape:this.getShape()},r,a)},_fireSnapDrag:function(r,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Snapping",_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};this.__fire(r,"pm:snapdrag",a,d,_)},_fireSnap:function(r,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Snapping",_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};this.__fire(r,"pm:snap",a,d,_)},_fireUnsnap:function(r,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Snapping",_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};this.__fire(r,"pm:unsnap",a,d,_)},_fireRotationEnable:function(r,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Rotation",_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};this.__fire(r,"pm:rotateenable",{layer:this._layer,helpLayer:this._rotatePoly,shape:this.getShape()},d,_)},_fireRotationDisable:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Rotation",d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.__fire(r,"pm:rotatedisable",{layer:this._layer,shape:this.getShape()},a,d)},_fireRotationStart:function(r,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Rotation",_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};this.__fire(r,"pm:rotatestart",{layer:this._rotationLayer,helpLayer:this._layer,startAngle:this._startAngle,originLatLngs:a},d,_)},_fireRotation:function(r,a,d){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this._rotationLayer,w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"Rotation",A=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.__fire(r,"pm:rotate",{layer:_,helpLayer:this._layer,startAngle:this._startAngle,angle:_.pm.getAngle(),angleDiff:a,oldLatLngs:d,newLatLngs:_.getLatLngs()},w,A)},_fireRotationEnd:function(r,a,d){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"Rotation",w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};this.__fire(r,"pm:rotateend",{layer:this._rotationLayer,helpLayer:this._layer,startAngle:a,angle:this._rotationLayer.pm.getAngle(),originLatLngs:d,newLatLngs:this._rotationLayer.getLatLngs()},_,w)},_fireActionClick:function(r,a,d){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"Toolbar",w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};this.__fire(this._map,"pm:actionclick",{text:r.text,action:r,btnName:a,button:d},_,w)},_fireButtonClick:function(r,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Toolbar",_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};this.__fire(this._map,"pm:buttonclick",{btnName:r,button:a},d,_)},_fireLangChange:function(r,a,d,_){var w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"Global",A=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.__fire(this.map,"pm:langchange",{oldLang:r,activeLang:a,fallback:d,translations:_},w,A)},_fireGlobalDragModeToggled:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Global",d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.__fire(this.map,"pm:globaldragmodetoggled",{enabled:r,map:this.map},a,d)},_fireGlobalEditModeToggled:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Global",d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.__fire(this.map,"pm:globaleditmodetoggled",{enabled:r,map:this.map},a,d)},_fireGlobalRemovalModeToggled:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Global",d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.__fire(this.map,"pm:globalremovalmodetoggled",{enabled:r,map:this.map},a,d)},_fireGlobalCutModeToggled:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Global",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__fire(this._map,"pm:globalcutmodetoggled",{enabled:!!this._enabled,map:this._map},r,a)},_fireGlobalDrawModeToggled:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Global",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__fire(this._map,"pm:globaldrawmodetoggled",{enabled:this._enabled,shape:this._shape,map:this._map},r,a)},_fireGlobalRotateModeToggled:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Global",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__fire(this.map,"pm:globalrotatemodetoggled",{enabled:this.globalRotateModeEnabled(),map:this.map},r,a)},_fireRemoveLayerGroup:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Edit",_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};this.__fire(r,"pm:remove",{layer:a,shape:void 0},d,_)},_fireKeyeventEvent:function(r,a,d){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"Global",w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};this.__fire(this.map,"pm:keyevent",{event:r,eventType:a,focusOn:d},_,w)},__fire:function(r,a,d,_){var w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};d=f()(d,w,{source:_}),L.PM.Utils._fireEvent(r,a,d)}};const Et=Lt,Ct={_lastEvents:{keydown:void 0,keyup:void 0,current:void 0},_initKeyListener:function(r){this.map=r,L.DomEvent.on(document,"keydown keyup",this._onKeyListener,this),L.DomEvent.on(window,"blur",this._onBlur,this)},_onKeyListener:function(r){var a="document";this.map.getContainer().contains(r.target)&&(a="map");var d={event:r,eventType:r.type,focusOn:a};this._lastEvents[r.type]=d,this._lastEvents.current=d,this.map.pm._fireKeyeventEvent(r,r.type,a)},_onBlur:function(r){r.altKey=!1;var a={event:r,eventType:r.type,focusOn:"document"};this._lastEvents[r.type]=a,this._lastEvents.current=a},getLastKeyEvent:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"current";return this._lastEvents[r]},isShiftKeyPressed:function(){var r;return(r=this._lastEvents.current)===null||r===void 0?void 0:r.event.shiftKey},isAltKeyPressed:function(){var r;return(r=this._lastEvents.current)===null||r===void 0?void 0:r.event.altKey},isCtrlKeyPressed:function(){var r;return(r=this._lastEvents.current)===null||r===void 0?void 0:r.event.ctrlKey},isMetaKeyPressed:function(){var r;return(r=this._lastEvents.current)===null||r===void 0?void 0:r.event.metaKey},getPressedKey:function(){var r;return(r=this._lastEvents.current)===null||r===void 0?void 0:r.event.key}};var Ft=c(7361),wt=c.n(Ft),de=c(8721),Dt=c.n(de);function Bt(r){var a=L.PM.activeLang;return Dt()(V,a)||(a="en"),wt()(V[a],r)}function $t(r){for(var a=0;a1e-12;)_=Math.cos(2*xe+qn),Hi=qn,qn=pt/($*Po)+Ar*(w=Math.sin(qn))*(_+Ar/4*((A=Math.cos(qn))*(2*_*_-1)-Ar/6*_*(4*w*w-3)*(4*_*_-3)));var So=Ut*w-we*A*Zt,Us=Math.atan2(Ut*A+we*w*Zt,(1-F)*Math.sqrt(Pe*Pe+So*So)),Br=F/16*Ve*(4+F*(4-3*Ve)),Gs=G+180*(Math.atan2(w*Rt,we*A-Ut*w*Zt)-(1-Br)*F*Pe*(qn+Br*w*(_+Br*A*(2*_*_-1))))/ut,mn=180*Us/ut;return L.latLng(Gs,mn)}function ae(r,a,d,_){for(var w,A,j=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],$=[],F=0;F180?xe-360:xe<-180?xe+360:xe,L.latLng([Ut*G,xe])}(a,w,_)}function dt(r,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"asc";if(!a||Object.keys(a).length===0)return function(F,G){return F-G};for(var _,w=Object.keys(a),A=w.length-1,j={};A>=0;)_=w[A],j[_.toLowerCase()]=a[_],A-=1;function $(F){return F instanceof L.Marker?"Marker":F instanceof L.Circle?"Circle":F instanceof L.CircleMarker?"CircleMarker":F instanceof L.Rectangle?"Rectangle":F instanceof L.Polygon?"Polygon":F instanceof L.Polyline?"Line":void 0}return function(F,G){var X,pt;if(r==="instanceofShape"){if(X=$(F.layer).toLowerCase(),pt=$(G.layer).toLowerCase(),!X||!pt)return 0}else{if(!F.hasOwnProperty(r)||!G.hasOwnProperty(r))return 0;X=F[r].toLowerCase(),pt=G[r].toLowerCase()}var ut=X in j?j[X]:Number.MAX_SAFE_INTEGER,Mt=pt in j?j[pt]:Number.MAX_SAFE_INTEGER,Rt=0;return utMt&&(Rt=1),d==="desc"?-1*Rt:Rt}}function Pt(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.getLatLngs();return r instanceof L.Polygon?L.polygon(a).getLatLngs():L.polyline(a).getLatLngs()}function St(r,a){var d,_;if((d=a.options.crs)!==null&&d!==void 0&&(_=d.projection)!==null&&_!==void 0&&_.MAX_LATITUDE){var w,A,j=(w=a.options.crs)===null||w===void 0||(A=w.projection)===null||A===void 0?void 0:A.MAX_LATITUDE;r.lat=Math.max(Math.min(j,r.lat),-j)}return r}function zt(r){return r.options.renderer||r._map&&(r._map._getPaneRenderer(r.options.pane)||r._map.options.renderer||r._map._renderer)||r._renderer}const le=L.Class.extend({includes:[it,Y,ot,ct,Et],initialize:function(r){this.map=r,this.Draw=new L.PM.Draw(r),this.Toolbar=new L.PM.Toolbar(r),this.Keyboard=Ct,this.globalOptions={snappable:!0,layerGroup:void 0,snappingOrder:["Marker","CircleMarker","Circle","Line","Polygon","Rectangle"],panes:{vertexPane:"markerPane",layerPane:"overlayPane",markerPane:"markerPane"},draggable:!0},this.Keyboard._initKeyListener(r)},setLang:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"en",a=arguments.length>1?arguments[1]:void 0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"en",_=L.PM.activeLang;a&&(V[r]=f()(V[d],a)),L.PM.activeLang=r,this.map.pm.Toolbar.reinit(),this._fireLangChange(_,r,d,V[r])},addControls:function(r){this.Toolbar.addControls(r)},removeControls:function(){this.Toolbar.removeControls()},toggleControls:function(){this.Toolbar.toggleControls()},controlsVisible:function(){return this.Toolbar.isVisible},enableDraw:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Polygon",a=arguments.length>1?arguments[1]:void 0;r==="Poly"&&(r="Polygon"),this.Draw.enable(r,a)},disableDraw:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Polygon";r==="Poly"&&(r="Polygon"),this.Draw.disable(r)},setPathOptions:function(r){var a=this,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=d.ignoreShapes||[],w=d.merge||!1;this.map.pm.Draw.shapes.forEach(function(A){_.indexOf(A)===-1&&a.map.pm.Draw[A].setPathOptions(r,w)})},getGlobalOptions:function(){return this.globalOptions},setGlobalOptions:function(r){var a=this,d=f()(this.globalOptions,r),_=!1;this.map.pm.Draw.CircleMarker.enabled()&&!!this.map.pm.Draw.CircleMarker.options.editable!=!!d.editable&&(this.map.pm.Draw.CircleMarker.disable(),_=!0),this.map.pm.Draw.shapes.forEach(function(w){a.map.pm.Draw[w].setOptions(d)}),_&&this.map.pm.Draw.CircleMarker.enable(),L.PM.Utils.findLayers(this.map).forEach(function(w){w.pm.setOptions(d)}),this.map.fire("pm:globaloptionschanged"),this.globalOptions=d,this.applyGlobalOptions()},applyGlobalOptions:function(){L.PM.Utils.findLayers(this.map).forEach(function(r){r.pm.enabled()&&r.pm.applyOptions()})},globalDrawModeEnabled:function(){return!!this.Draw.getActiveShape()},globalCutModeEnabled:function(){return!!this.Draw.Cut.enabled()},enableGlobalCutMode:function(r){return this.Draw.Cut.enable(r)},toggleGlobalCutMode:function(r){return this.Draw.Cut.toggle(r)},disableGlobalCutMode:function(){return this.Draw.Cut.disable()},getGeomanLayers:function(){var r=arguments.length>0&&arguments[0]!==void 0&&arguments[0],a=L.PM.Utils.findLayers(this.map);if(!r)return a;var d=L.featureGroup();return d._pmTempLayer=!0,a.forEach(function(_){d.addLayer(_)}),d},getGeomanDrawLayers:function(){var r=arguments.length>0&&arguments[0]!==void 0&&arguments[0],a=L.PM.Utils.findLayers(this.map).filter(function(_){return _._drawnByGeoman===!0});if(!r)return a;var d=L.featureGroup();return d._pmTempLayer=!0,a.forEach(function(_){d.addLayer(_)}),d},_getContainingLayer:function(){return this.globalOptions.layerGroup&&this.globalOptions.layerGroup instanceof L.LayerGroup?this.globalOptions.layerGroup:this.map},_isCRSSimple:function(){return this.map.options.crs===L.CRS.Simple},_touchEventCounter:0,_addTouchEvents:function(r){this._touchEventCounter===0&&(L.DomEvent.on(r,"touchmove",this._canvasTouchMove,this),L.DomEvent.on(r,"touchstart touchend touchcancel",this._canvasTouchClick,this)),this._touchEventCounter+=1},_removeTouchEvents:function(r){this._touchEventCounter===1&&(L.DomEvent.off(r,"touchmove",this._canvasTouchMove,this),L.DomEvent.off(r,"touchstart touchend touchcancel",this._canvasTouchClick,this)),this._touchEventCounter=this._touchEventCounter<=1?0:this._touchEventCounter-1},_canvasTouchMove:function(r){zt(this.map)._onMouseMove(this._createMouseEvent("mousemove",r))},_canvasTouchClick:function(r){var a="";r.type==="touchstart"||r.type==="pointerdown"?a="mousedown":r.type==="touchend"||r.type==="pointerup"?a="mouseup":r.type!=="touchcancel"&&r.type!=="pointercancel"||(a="mouseup"),a&&zt(this.map)._onClick(this._createMouseEvent(a,r))},_createMouseEvent:function(r,a){var d,_=a.touches[0]||a.changedTouches[0];try{d=new MouseEvent(r,{bubbles:a.bubbles,cancelable:a.cancelable,view:a.view,detail:_.detail,screenX:_.screenX,screenY:_.screenY,clientX:_.clientX,clientY:_.clientY,ctrlKey:a.ctrlKey,altKey:a.altKey,shiftKey:a.shiftKey,metaKey:a.metaKey,button:a.button,relatedTarget:a.relatedTarget})}catch{(d=document.createEvent("MouseEvents")).initMouseEvent(r,a.bubbles,a.cancelable,a.view,_.detail,_.screenX,_.screenY,_.clientX,_.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget)}return d}}),H=L.Control.extend({includes:[Et],options:{position:"topleft",disableByOtherButtons:!0},initialize:function(r){this._button=L.Util.extend({},this.options,r)},onAdd:function(r){return this._map=r,this._map.pm.Toolbar.options.oneBlock?this._container=this._map.pm.Toolbar._createContainer(this.options.position):this._button.tool==="edit"?this._container=this._map.pm.Toolbar.editContainer:this._button.tool==="options"?this._container=this._map.pm.Toolbar.optionsContainer:this._button.tool==="custom"?this._container=this._map.pm.Toolbar.customContainer:this._container=this._map.pm.Toolbar.drawContainer,this.buttonsDomNode=this._makeButton(this._button),this._container.appendChild(this.buttonsDomNode),this._container},onRemove:function(){return this.buttonsDomNode.remove(),this._container},getText:function(){return this._button.text},getIconUrl:function(){return this._button.iconUrl},destroy:function(){this._button={},this._update()},toggle:function(r){return this._button.toggleStatus=typeof r=="boolean"?r:!this._button.toggleStatus,this._applyStyleClasses(),this._button.toggleStatus},toggled:function(){return this._button.toggleStatus},onCreate:function(){this.toggle(!1)},disable:function(){this.toggle(!1),this._button.disabled=!0,this._updateDisabled()},enable:function(){this._button.disabled=!1,this._updateDisabled()},_triggerClick:function(r){r&&r.preventDefault(),this._button.disabled||(this._button.onClick(r,{button:this,event:r}),this._clicked(r),this._button.afterClick(r,{button:this,event:r}))},_makeButton:function(r){var a=this,d=this.options.position.indexOf("right")>-1?"pos-right":"",_=L.DomUtil.create("div","button-container ".concat(d),this._container);r.title&&_.setAttribute("title",r.title);var w=L.DomUtil.create("a","leaflet-buttons-control-button",_);w.setAttribute("role","button"),w.setAttribute("tabindex","0"),w.href="#";var A=L.DomUtil.create("div","leaflet-pm-actions-container ".concat(d),_),j=r.actions,$={cancel:{text:Bt("actions.cancel"),onClick:function(){this._triggerClick()}},finishMode:{text:Bt("actions.finish"),onClick:function(){this._triggerClick()}},removeLastVertex:{text:Bt("actions.removeLastVertex"),onClick:function(){this._map.pm.Draw[r.jsClass]._removeLastVertex()}},finish:{text:Bt("actions.finish"),onClick:function(G){this._map.pm.Draw[r.jsClass]._finishShape(G)}}};j.forEach(function(G){var X,pt=typeof G=="string"?G:G.name;if($[pt])X=$[pt];else{if(!G.text)return;X=G}var ut=L.DomUtil.create("a","leaflet-pm-action ".concat(d," action-").concat(pt),A);ut.setAttribute("role","button"),ut.setAttribute("tabindex","0"),ut.href="#",ut.innerHTML=X.text,L.DomEvent.disableClickPropagation(ut),L.DomEvent.on(ut,"click",L.DomEvent.stop),!r.disabled&&X.onClick&&(L.DomEvent.addListener(ut,"click",function(Mt){Mt.preventDefault();var Rt="",Zt=a._map.pm.Toolbar.buttons;for(var ne in Zt)if(Zt[ne]._button===r){Rt=ne;break}a._fireActionClick(X,Rt,r)},a),L.DomEvent.addListener(ut,"click",X.onClick,a))}),r.toggleStatus&&L.DomUtil.addClass(_,"active");var F=L.DomUtil.create("div","control-icon",w);return r.iconUrl&&F.setAttribute("src",r.iconUrl),r.className&&L.DomUtil.addClass(F,r.className),L.DomEvent.disableClickPropagation(w),L.DomEvent.on(w,"click",L.DomEvent.stop),r.disabled||(L.DomEvent.addListener(w,"click",this._onBtnClick,this),L.DomEvent.addListener(w,"click",this._triggerClick,this)),r.disabled&&(L.DomUtil.addClass(w,"pm-disabled"),w.setAttribute("aria-disabled","true")),_},_applyStyleClasses:function(){this._container&&(this._button.toggleStatus&&this._button.cssToggle!==!1?(L.DomUtil.addClass(this.buttonsDomNode,"active"),L.DomUtil.addClass(this._container,"activeChild")):(L.DomUtil.removeClass(this.buttonsDomNode,"active"),L.DomUtil.removeClass(this._container,"activeChild")))},_onBtnClick:function(){this._button.disableOtherButtons&&this._map.pm.Toolbar.triggerClickOnToggledButtons(this);var r="",a=this._map.pm.Toolbar.buttons;for(var d in a)if(a[d]._button===this._button){r=d;break}this._fireButtonClick(r,this._button)},_clicked:function(){this._button.doToggle&&this.toggle()},_updateDisabled:function(){if(this._container){var r="pm-disabled",a=this.buttonsDomNode.children[0];this._button.disabled?(L.DomUtil.addClass(a,r),a.setAttribute("aria-disabled","true"),L.DomEvent.off(a,"click",this._triggerClick,this),L.DomEvent.off(a,"click",this._onBtnClick,this)):(L.DomUtil.removeClass(a,r),a.setAttribute("aria-disabled","false"),L.DomEvent.on(a,"click",this._triggerClick,this),L.DomEvent.on(a,"click",this._onBtnClick,this))}}});function K(r,a){var d=Object.keys(r);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(r);a&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(r,w).enumerable})),d.push.apply(d,_)}return d}function J(r){for(var a=1;a0&&arguments[0]!==void 0?arguments[0]:this.options;typeof r.editPolygon<"u"&&(r.editMode=r.editPolygon),typeof r.deleteLayer<"u"&&(r.removalMode=r.deleteLayer),L.Util.setOptions(this,r),this.applyIconStyle(),this.isVisible=!0,this._showHideButtons()},applyIconStyle:function(){var r=this.getButtons(),a={geomanIcons:{drawMarker:"control-icon leaflet-pm-icon-marker",drawPolyline:"control-icon leaflet-pm-icon-polyline",drawRectangle:"control-icon leaflet-pm-icon-rectangle",drawPolygon:"control-icon leaflet-pm-icon-polygon",drawCircle:"control-icon leaflet-pm-icon-circle",drawCircleMarker:"control-icon leaflet-pm-icon-circle-marker",editMode:"control-icon leaflet-pm-icon-edit",dragMode:"control-icon leaflet-pm-icon-drag",cutPolygon:"control-icon leaflet-pm-icon-cut",removalMode:"control-icon leaflet-pm-icon-delete",drawText:"control-icon leaflet-pm-icon-text"}};for(var d in r){var _=r[d];L.Util.setOptions(_,{className:a.geomanIcons[d]})}},removeControls:function(){var r=this.getButtons();for(var a in r)r[a].remove();this.isVisible=!1},toggleControls:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options;this.isVisible?this.removeControls():this.addControls(r)},_addButton:function(r,a){return this.buttons[r]=a,this.options[r]=this.options[r]||!1,this.buttons[r]},triggerClickOnToggledButtons:function(r){for(var a in this.buttons){var d=this.buttons[a];d._button.disableByOtherButtons&&d!==r&&d.toggled()&&d._triggerClick()}},toggleButton:function(r,a){var d=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return r==="editPolygon"&&(r="editMode"),r==="deleteLayer"&&(r="removalMode"),d&&this.triggerClickOnToggledButtons(this.buttons[r]),!!this.buttons[r]&&this.buttons[r].toggle(a)},_defineButtons:function(){var r=this,a={className:"control-icon leaflet-pm-icon-marker",title:Bt("buttonTitles.drawMarkerButton"),jsClass:"Marker",onClick:function(){},afterClick:function(Mt,Rt){r.map.pm.Draw[Rt.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},d={title:Bt("buttonTitles.drawPolyButton"),className:"control-icon leaflet-pm-icon-polygon",jsClass:"Polygon",onClick:function(){},afterClick:function(Mt,Rt){r.map.pm.Draw[Rt.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["finish","removeLastVertex","cancel"]},_={className:"control-icon leaflet-pm-icon-polyline",title:Bt("buttonTitles.drawLineButton"),jsClass:"Line",onClick:function(){},afterClick:function(Mt,Rt){r.map.pm.Draw[Rt.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["finish","removeLastVertex","cancel"]},w={title:Bt("buttonTitles.drawCircleButton"),className:"control-icon leaflet-pm-icon-circle",jsClass:"Circle",onClick:function(){},afterClick:function(Mt,Rt){r.map.pm.Draw[Rt.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},A={title:Bt("buttonTitles.drawCircleMarkerButton"),className:"control-icon leaflet-pm-icon-circle-marker",jsClass:"CircleMarker",onClick:function(){},afterClick:function(Mt,Rt){r.map.pm.Draw[Rt.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},j={title:Bt("buttonTitles.drawRectButton"),className:"control-icon leaflet-pm-icon-rectangle",jsClass:"Rectangle",onClick:function(){},afterClick:function(Mt,Rt){r.map.pm.Draw[Rt.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},$={title:Bt("buttonTitles.editButton"),className:"control-icon leaflet-pm-icon-edit",onClick:function(){},afterClick:function(){r.map.pm.toggleGlobalEditMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finishMode"]},F={title:Bt("buttonTitles.dragButton"),className:"control-icon leaflet-pm-icon-drag",onClick:function(){},afterClick:function(){r.map.pm.toggleGlobalDragMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finishMode"]},G={title:Bt("buttonTitles.cutButton"),className:"control-icon leaflet-pm-icon-cut",jsClass:"Cut",onClick:function(){},afterClick:function(Mt,Rt){r.map.pm.Draw[Rt.button._button.jsClass].toggle({snappable:!0,cursorMarker:!0,allowSelfIntersection:!1})},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finish","removeLastVertex","cancel"]},X={title:Bt("buttonTitles.deleteButton"),className:"control-icon leaflet-pm-icon-delete",onClick:function(){},afterClick:function(){r.map.pm.toggleGlobalRemovalMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finishMode"]},pt={title:Bt("buttonTitles.rotateButton"),className:"control-icon leaflet-pm-icon-rotate",onClick:function(){},afterClick:function(){r.map.pm.toggleGlobalRotateMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finishMode"]},ut={className:"control-icon leaflet-pm-icon-text",title:Bt("buttonTitles.drawTextButton"),jsClass:"Text",onClick:function(){},afterClick:function(Mt,Rt){r.map.pm.Draw[Rt.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]};this._addButton("drawMarker",new L.Control.PMButton(a)),this._addButton("drawPolyline",new L.Control.PMButton(_)),this._addButton("drawRectangle",new L.Control.PMButton(j)),this._addButton("drawPolygon",new L.Control.PMButton(d)),this._addButton("drawCircle",new L.Control.PMButton(w)),this._addButton("drawCircleMarker",new L.Control.PMButton(A)),this._addButton("drawText",new L.Control.PMButton(ut)),this._addButton("editMode",new L.Control.PMButton($)),this._addButton("dragMode",new L.Control.PMButton(F)),this._addButton("cutPolygon",new L.Control.PMButton(G)),this._addButton("removalMode",new L.Control.PMButton(X)),this._addButton("rotateMode",new L.Control.PMButton(pt))},_showHideButtons:function(){if(this.isVisible){this.removeControls(),this.isVisible=!0;var r=this.getButtons(),a=[];for(var d in this.options.drawControls===!1&&(a=a.concat(Object.keys(r).filter(function(w){return!r[w]._button.tool}))),this.options.editControls===!1&&(a=a.concat(Object.keys(r).filter(function(w){return r[w]._button.tool==="edit"}))),this.options.optionsControls===!1&&(a=a.concat(Object.keys(r).filter(function(w){return r[w]._button.tool==="options"}))),this.options.customControls===!1&&(a=a.concat(Object.keys(r).filter(function(w){return r[w]._button.tool==="custom"}))),r)if(this.options[d]&&a.indexOf(d)===-1){var _=r[d]._button.tool;_||(_="draw"),r[d].setPosition(this._getBtnPosition(_)),r[d].addTo(this.map)}}},_getBtnPosition:function(r){return this.options.positions&&this.options.positions[r]?this.options.positions[r]:this.options.position},setBlockPosition:function(r,a){this.options.positions[r]=a,this._showHideButtons(),this.changeControlOrder()},getBlockPositions:function(){return this.options.positions},copyDrawControl:function(r,a){if(!a)throw new TypeError("Button has no name");yt(a)!=="object"&&(a={name:a});var d=this._btnNameMapping(r);if(!a.name)throw new TypeError("Button has no name");if(this.buttons[a.name])throw new TypeError("Button with this name already exists");var _=this.map.pm.Draw.createNewDrawInstance(a.name,d);return a=J(J({},this.buttons[d]._button),a),{drawInstance:_,control:this.createCustomControl(a)}},createCustomControl:function(r){var a,d;if(!r.name)throw new TypeError("Button has no name");if(this.buttons[r.name])throw new TypeError("Button with this name already exists");r.onClick||(r.onClick=function(){}),r.afterClick||(r.afterClick=function(){}),r.toggle!==!1&&(r.toggle=!0),r.block&&(r.block=r.block.toLowerCase()),r.block&&r.block!=="draw"||(r.block=""),r.className?r.className.indexOf("control-icon")===-1&&(r.className="control-icon ".concat(r.className)):r.className="control-icon";var _={tool:r.block,className:r.className,title:r.title||"",jsClass:r.name,onClick:r.onClick,afterClick:r.afterClick,doToggle:r.toggle,toggleStatus:!1,disableOtherButtons:(a=r.disableOtherButtons)===null||a===void 0||a,disableByOtherButtons:(d=r.disableByOtherButtons)===null||d===void 0||d,cssToggle:r.toggle,position:this.options.position,actions:r.actions||[],disabled:!!r.disabled};this.options[r.name]!==!1&&(this.options[r.name]=!0);var w=this._addButton(r.name,new L.Control.PMButton(_));return this.changeControlOrder(),w},changeControlOrder:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=this._shapeMapping(),d=[];r.forEach(function(G){a[G]?d.push(a[G]):d.push(G)});var _=this.getButtons(),w={};d.forEach(function(G){_[G]&&(w[G]=_[G])});var A=Object.keys(_).filter(function(G){return!_[G]._button.tool});A.forEach(function(G){d.indexOf(G)===-1&&(w[G]=_[G])});var j=Object.keys(_).filter(function(G){return _[G]._button.tool==="edit"});j.forEach(function(G){d.indexOf(G)===-1&&(w[G]=_[G])});var $=Object.keys(_).filter(function(G){return _[G]._button.tool==="options"});$.forEach(function(G){d.indexOf(G)===-1&&(w[G]=_[G])});var F=Object.keys(_).filter(function(G){return _[G]._button.tool==="custom"});F.forEach(function(G){d.indexOf(G)===-1&&(w[G]=_[G])}),Object.keys(_).forEach(function(G){d.indexOf(G)===-1&&(w[G]=_[G])}),this.map.pm.Toolbar.buttons=w,this._showHideButtons()},getControlOrder:function(){var r=this.getButtons(),a=[];for(var d in r)a.push(d);return a},changeActionsOfControl:function(r,a){var d=this._btnNameMapping(r);if(!d)throw new TypeError("No name passed");if(!a)throw new TypeError("No actions passed");if(!this.buttons[d])throw new TypeError("Button with this name not exists");this.buttons[d]._button.actions=a,this.changeControlOrder()},setButtonDisabled:function(r,a){var d=this._btnNameMapping(r);a?this.buttons[d].disable():this.buttons[d].enable()},_shapeMapping:function(){return{Marker:"drawMarker",Circle:"drawCircle",Polygon:"drawPolygon",Rectangle:"drawRectangle",Polyline:"drawPolyline",Line:"drawPolyline",CircleMarker:"drawCircleMarker",Edit:"editMode",Drag:"dragMode",Cut:"cutPolygon",Removal:"removalMode",Rotate:"rotateMode",Text:"drawText"}},_btnNameMapping:function(r){var a=this._shapeMapping();return a[r]?a[r]:r}});function Ot(r,a){var d=Object.keys(r);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(r);a&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(r,w).enumerable})),d.push.apply(d,_)}return d}function B(r){for(var a=1;a2&&arguments[2]!==void 0?arguments[2]:1,w=[],A={};a.forEach(function($,F){if(!$._parentCopy||$._parentCopy!==d._layer){var G=d._calcLayerDistances(r,$);if(G.distance=Math.floor(G.distance),d.debugIndicatorLines){if(!d.debugIndicatorLines[F]){var X=L.polyline([],{color:"red",pmIgnore:!0});X._pmTempLayer=!0,d.debugIndicatorLines[F]=X}d.debugIndicatorLines[F].setLatLngs([r,G.latlng])}_===1&&(A.distance===void 0||G.distance<=A.distance)?(G.distance3&&arguments[3]!==void 0&&arguments[3],F=function X(pt){pt.forEach(function(ut,Mt){if(Array.isArray(ut))X(ut);else if(j.options.snapSegment){var Rt,Zt=ut;Rt=$?Mt+1===pt.length?0:Mt+1:Mt+1===pt.length?void 0:Mt+1;var ne=pt[Rt];if(ne){var we=j._getDistanceToSegment(d,r,Zt,ne);(w===void 0||we1&&arguments[1]!==void 0?arguments[1]:1;r=r.sort(function(j,$){return j._leaflet_id-$._leaflet_id});var d=["Marker","CircleMarker","Circle","Line","Polygon","Rectangle"],_=this._map.pm.globalOptions.snappingOrder||[],w=0,A={};return _.concat(d).forEach(function(j){A[j]||(w+=1,A[j]=w)}),r.sort(dt("instanceofShape",A)),a===1?r[0]||{}:r.slice(0,a)},_checkPrioritiySnapping:function(r){var a=this._map,d=r.segment[0],_=r.segment[1],w=r.latlng,A=this._getDistance(a,d,w),j=this._getDistance(a,_,w),$=A1&&arguments[1]!==void 0&&arguments[1];this.options.pathOptions=a?f()(this.options.pathOptions,r):r},getShapes:function(){return this.shapes},getShape:function(){return this._shape},enable:function(r,a){if(!r)throw new Error("Error: Please pass a shape as a parameter. Possible shapes are: ".concat(this.getShapes().join(",")));this.disable(),this[r].enable(a)},disable:function(){var r=this;this.shapes.forEach(function(a){r[a].disable()})},addControls:function(){var r=this;this.shapes.forEach(function(a){r[a].addButton()})},getActiveShape:function(){var r,a=this;return this.shapes.forEach(function(d){a[d]._enabled&&(r=d)}),r},_setGlobalDrawMode:function(){this._shape==="Cut"?this._fireGlobalCutModeToggled():this._fireGlobalDrawModeToggled();var r=L.PM.Utils.findLayers(this._map);this._enabled?r.forEach(function(a){L.PM.Utils.disablePopup(a)}):r.forEach(function(a){L.PM.Utils.enablePopup(a)})},createNewDrawInstance:function(r,a){var d=this._getShapeFromBtnName(a);if(this[r])throw new TypeError("Draw Type already exists");if(!L.PM.Draw[d])throw new TypeError("There is no class L.PM.Draw.".concat(d));return this[r]=new L.PM.Draw[d](this._map),this[r].toolbarButtonName=r,this[r]._shape=r,this.shapes.push(r),this[a]&&this[r].setOptions(this[a].options),this[r].setOptions(this[r].options),this[r]},_getShapeFromBtnName:function(r){var a={drawMarker:"Marker",drawCircle:"Circle",drawPolygon:"Polygon",drawPolyline:"Line",drawRectangle:"Rectangle",drawCircleMarker:"CircleMarker",editMode:"Edit",dragMode:"Drag",cutPolygon:"Cut",removalMode:"Removal",rotateMode:"Rotate",drawText:"Text"};return a[r]?a[r]:this[r]?this[r]._shape:r},_finishLayer:function(r){r.pm&&(r.pm.setOptions(this.options),r.pm._shape=this._shape,r.pm._map=this._map),this._addDrawnLayerProp(r)},_addDrawnLayerProp:function(r){r._drawnByGeoman=!0},_setPane:function(r,a){a==="layerPane"?r.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.layerPane||"overlayPane":a==="vertexPane"?r.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.vertexPane||"markerPane":a==="markerPane"&&(r.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.markerPane||"markerPane")},_isFirstLayer:function(){return(this._map||this._layer._map).pm.getGeomanLayers().length===0}});I.Marker=I.extend({initialize:function(r){this._map=r,this._shape="Marker",this.toolbarButtonName="drawMarker"},enable:function(r){var a=this;L.Util.setOptions(this,r),this._enabled=!0,this._map.on("click",this._createMarker,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._hintMarker=L.marker(this._map.getCenter(),this.options.markerStyle),this._setPane(this._hintMarker,"markerPane"),this._hintMarker._pmTempLayer=!0,this._hintMarker.addTo(this._map),this.options.tooltips&&this._hintMarker.bindTooltip(Bt("tooltips.placeMarker"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this._layer=this._hintMarker,this._map.on("mousemove",this._syncHintMarker,this),this.options.markerEditable&&this._map.eachLayer(function(d){a.isRelevantMarker(d)&&d.pm.enable()}),this._fireDrawStart(),this._setGlobalDrawMode()},disable:function(){var r=this;this._enabled&&(this._enabled=!1,this._map.off("click",this._createMarker,this),this._hintMarker.remove(),this._map.off("mousemove",this._syncHintMarker,this),this._map.eachLayer(function(a){r.isRelevantMarker(a)&&a.pm.disable()}),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping(),this._fireDrawEnd(),this._setGlobalDrawMode())},enabled:function(){return this._enabled},toggle:function(r){this.enabled()?this.disable():this.enable(r)},isRelevantMarker:function(r){return r instanceof L.Marker&&r.pm&&!r._pmTempLayer&&!r.pm._initTextMarker},_syncHintMarker:function(r){if(this._hintMarker.setLatLng(r.latlng),this.options.snappable){var a=r;a.target=this._hintMarker,this._handleSnapping(a)}this._fireChange(this._hintMarker.getLatLng(),"Draw")},_createMarker:function(r){if(r.latlng&&(!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer())){this._hintMarker._snapped||this._hintMarker.setLatLng(r.latlng);var a=this._hintMarker.getLatLng(),d=new L.Marker(a,this.options.markerStyle);this._setPane(d,"markerPane"),this._finishLayer(d),d.pm||(d.options.draggable=!1),d.addTo(this._map.pm._getContainingLayer()),d.pm&&this.options.markerEditable?d.pm.enable():d.dragging&&d.dragging.disable(),this._fireCreate(d),this._cleanupSnapping(),this.options.continueDrawing||this.disable()}},setStyle:function(){var r,a;(r=this.options.markerStyle)!==null&&r!==void 0&&r.icon&&((a=this._hintMarker)===null||a===void 0||a.setIcon(this.options.markerStyle.icon))}});var N=63710088e-1,Q={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260511392e-6,inches:39.37*N,kilometers:6371.0088,kilometres:6371.0088,meters:N,metres:N,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:N/1852,radians:1,yards:6967335223679999e-9};function nt(r,a,d){d===void 0&&(d={});var _={type:"Feature"};return(d.id===0||d.id)&&(_.id=d.id),d.bbox&&(_.bbox=d.bbox),_.properties=a||{},_.geometry=r,_}function vt(r,a,d){if(d===void 0&&(d={}),!r)throw new Error("coordinates is required");if(!Array.isArray(r))throw new Error("coordinates must be an Array");if(r.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!ye(r[0])||!ye(r[1]))throw new Error("coordinates must contain numbers");return nt({type:"Point",coordinates:r},a,d)}function Tt(r,a,d){if(d===void 0&&(d={}),r.length<2)throw new Error("coordinates must be an array of two or more positions");return nt({type:"LineString",coordinates:r},a,d)}function jt(r,a){a===void 0&&(a={});var d={type:"FeatureCollection"};return a.id&&(d.id=a.id),a.bbox&&(d.bbox=a.bbox),d.features=r,d}function Wt(r,a){a===void 0&&(a="kilometers");var d=Q[a];if(!d)throw new Error(a+" units is invalid");return r*d}function Qt(r,a){a===void 0&&(a="kilometers");var d=Q[a];if(!d)throw new Error(a+" units is invalid");return r/d}function ve(r){return 180*(r%(2*Math.PI))/Math.PI}function Yt(r){return r%360*Math.PI/180}function ye(r){return!isNaN(r)&&r!==null&&!Array.isArray(r)}function ue(r){var a,d,_={type:"FeatureCollection",features:[]};if((d=r.type==="Feature"?r.geometry:r).type==="LineString")a=[d.coordinates];else if(d.type==="MultiLineString")a=d.coordinates;else if(d.type==="MultiPolygon")a=[].concat.apply([],d.coordinates);else{if(d.type!=="Polygon")throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");a=d.coordinates}return a.forEach(function(w){a.forEach(function(A){for(var j=0;j=0&&G<=1&&(ut.onLine1=!0),X>=0&&X<=1&&(ut.onLine2=!0),!(!ut.onLine1||!ut.onLine2)&&[ut.x,ut.y])}function Re(r,a){var d=Object.keys(r);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(r);a&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(r,w).enumerable})),d.push.apply(d,_)}return d}function Ge(r){for(var a=1;a=2&&!Array.isArray(r[0])&&!Array.isArray(r[1]))return r;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Ne(r){if(Array.isArray(r))return r;if(r.type==="Feature"){if(r.geometry!==null)return r.geometry.coordinates}else if(r.coordinates)return r.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Rn(r){return r.type==="Feature"?r.geometry:r}function qr(r,a){return r.type==="FeatureCollection"?"FeatureCollection":r.type==="GeometryCollection"?"GeometryCollection":r.type==="Feature"&&r.geometry!==null?r.geometry.type:r.type}function Si(r,a,d){if(r!==null)for(var _,w,A,j,$,F,G,X,pt=0,ut=0,Mt=r.type,Rt=Mt==="FeatureCollection",Zt=Mt==="Feature",ne=Rt?r.features.length:1,we=0;we0){var a=r[r.length-1];this._hintline.setLatLngs([a,this._hintMarker.getLatLng()])}},_syncHintMarker:function(r){if(this._hintMarker.setLatLng(r.latlng),this.options.snappable){var a=r;a.target=this._hintMarker,this._handleSnapping(a)}this.options.allowSelfIntersection||this._handleSelfIntersection(!0,this._hintMarker.getLatLng());var d=this._layer._defaultShape().slice();d.push(this._hintMarker.getLatLng()),this._change(d)},hasSelfIntersection:function(){return ue(this._layer.toGeoJSON(15)).features.length>0},_handleSelfIntersection:function(r,a){var d=L.polyline(this._layer.getLatLngs());r&&(a||(a=this._hintMarker.getLatLng()),d.addLatLng(a));var _=ue(d.toGeoJSON(15));this._doesSelfIntersect=_.features.length>0,this._doesSelfIntersect?this._hintline.setStyle({color:"#f00000ff"}):this._hintline.isEmpty()||this._hintline.setStyle(this.options.hintlineStyle)},_createVertex:function(r){if(this.options.allowSelfIntersection||(this._handleSelfIntersection(!0,r.latlng),!this._doesSelfIntersect)){this._hintMarker._snapped||this._hintMarker.setLatLng(r.latlng);var a=this._hintMarker.getLatLng(),d=this._layer.getLatLngs(),_=d[d.length-1];if(a.equals(d[0])||d.length>0&&a.equals(_))this._finishShape();else{this._layer._latlngInfo=this._layer._latlngInfo||[],this._layer._latlngInfo.push({latlng:a,snapInfo:this._hintMarker._snapInfo}),this._layer.addLatLng(a);var w=this._createMarker(a);this._setTooltipText(),this._setHintLineAfterNewVertex(a),this._fireVertexAdded(w,void 0,a,"Draw"),this._change(this._layer.getLatLngs()),this.options.finishOn==="snap"&&this._hintMarker._snapped&&this._finishShape(r)}}},_setHintLineAfterNewVertex:function(r){this._hintline.setLatLngs([r,r])},_removeLastVertex:function(){var r=this._markers;if(r.length<=1)this.disable();else{var a=this._layer.getLatLngs(),d=r[r.length-1],_=L.PM.Utils.findDeepMarkerIndex(r,d).indexPath;r.pop(),this._layerGroup.removeLayer(d);var w=r[r.length-1],A=a.indexOf(w.getLatLng());a=a.slice(0,A+1),this._layer.setLatLngs(a),this._layer._latlngInfo.pop(),this._syncHintLine(),this._setTooltipText(),this._fireVertexRemoved(d,_,"Draw"),this._change(this._layer.getLatLngs())}},_finishShape:function(){if((this.options.allowSelfIntersection||(this._handleSelfIntersection(!1),!this._doesSelfIntersect))&&(!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer())){var r=this._layer.getLatLngs();if(!(r.length<=1)){var a=L.polyline(r,this.options.pathOptions);this._setPane(a,"layerPane"),this._finishLayer(a),a.addTo(this._map.pm._getContainingLayer()),this._fireCreate(a),this.options.snappable&&this._cleanupSnapping(),this.disable(),this.options.continueDrawing&&this.enable()}}},_createMarker:function(r){var a=new L.Marker(r,{draggable:!1,icon:L.divIcon({className:"marker-icon"})});return this._setPane(a,"vertexPane"),a._pmTempLayer=!0,this._layerGroup.addLayer(a),this._markers.push(a),a.on("click",this._finishShape,this),a},_setTooltipText:function(){var r="";r=Bt(this._layer.getLatLngs().flat().length<=1?"tooltips.continueLine":"tooltips.finishLine"),this._hintMarker.setTooltipContent(r)},_change:function(r){this._fireChange(r,"Draw")},setStyle:function(){var r,a;(r=this._layer)===null||r===void 0||r.setStyle(this.options.templineStyle),(a=this._hintline)===null||a===void 0||a.setStyle(this.options.hintlineStyle)}}),I.Polygon=I.Line.extend({initialize:function(r){this._map=r,this._shape="Polygon",this.toolbarButtonName="drawPolygon"},enable:function(r){L.PM.Draw.Line.prototype.enable.call(this,r),this._layer.pm._shape="Polygon"},_createMarker:function(r){var a=new L.Marker(r,{draggable:!1,icon:L.divIcon({className:"marker-icon"})});return this._setPane(a,"vertexPane"),a._pmTempLayer=!0,this._layerGroup.addLayer(a),this._markers.push(a),this._layer.getLatLngs().flat().length===1?(a.on("click",this._finishShape,this),this._tempSnapLayerIndex=this._otherSnapLayers.push(a)-1,this.options.snappable&&this._cleanupSnapping()):a.on("click",function(){return 1}),a},_setTooltipText:function(){var r="";r=Bt(this._layer.getLatLngs().flat().length<=2?"tooltips.continueLine":"tooltips.finishPoly"),this._hintMarker.setTooltipContent(r)},_finishShape:function(){if((this.options.allowSelfIntersection||(this._handleSelfIntersection(!0,this._layer.getLatLngs()[0]),!this._doesSelfIntersect))&&(!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer())){var r=this._layer.getLatLngs();if(!(r.length<=2)){var a=L.polygon(r,this.options.pathOptions);this._setPane(a,"layerPane"),this._finishLayer(a),a.addTo(this._map.pm._getContainingLayer()),this._fireCreate(a),this._cleanupSnapping(),this._otherSnapLayers.splice(this._tempSnapLayerIndex,1),delete this._tempSnapLayerIndex,this.disable(),this.options.continueDrawing&&this.enable()}}}}),I.Rectangle=I.extend({initialize:function(r){this._map=r,this._shape="Rectangle",this.toolbarButtonName="drawRectangle"},enable:function(r){if(L.Util.setOptions(this,r),this._enabled=!0,this._layerGroup=new L.FeatureGroup,this._layerGroup._pmTempLayer=!0,this._layerGroup.addTo(this._map),this._layer=L.rectangle([[0,0],[0,0]],this.options.pathOptions),this._setPane(this._layer,"layerPane"),this._layer._pmTempLayer=!0,this._startMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"marker-icon rect-start-marker"}),draggable:!1,zIndexOffset:-100,opacity:this.options.cursorMarker?1:0}),this._setPane(this._startMarker,"vertexPane"),this._startMarker._pmTempLayer=!0,this._layerGroup.addLayer(this._startMarker),this._hintMarker=L.marker(this._map.getCenter(),{zIndexOffset:150,icon:L.divIcon({className:"marker-icon cursor-marker"})}),this._setPane(this._hintMarker,"vertexPane"),this._hintMarker._pmTempLayer=!0,this._layerGroup.addLayer(this._hintMarker),this.options.cursorMarker&&L.DomUtil.addClass(this._hintMarker._icon,"visible"),this.options.tooltips&&this._hintMarker.bindTooltip(Bt("tooltips.firstVertex"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this.options.cursorMarker){this._styleMarkers=[];for(var a=0;a<2;a+=1){var d=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"marker-icon rect-style-marker"}),draggable:!1,zIndexOffset:100});this._setPane(d,"vertexPane"),d._pmTempLayer=!0,this._layerGroup.addLayer(d),this._styleMarkers.push(d)}}this._map._container.style.cursor="crosshair",this._map.on("click",this._placeStartingMarkers,this),this._map.on("mousemove",this._syncHintMarker,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._otherSnapLayers=[],this._fireDrawStart(),this._setGlobalDrawMode()},disable:function(){this._enabled&&(this._enabled=!1,this._map._container.style.cursor="",this._map.off("click",this._finishShape,this),this._map.off("click",this._placeStartingMarkers,this),this._map.off("mousemove",this._syncHintMarker,this),this._map.removeLayer(this._layerGroup),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping(),this._fireDrawEnd(),this._setGlobalDrawMode())},enabled:function(){return this._enabled},toggle:function(r){this.enabled()?this.disable():this.enable(r)},_placeStartingMarkers:function(r){this._hintMarker._snapped||this._hintMarker.setLatLng(r.latlng);var a=this._hintMarker.getLatLng();L.DomUtil.addClass(this._startMarker._icon,"visible"),this._startMarker.setLatLng(a),this.options.cursorMarker&&this._styleMarkers&&this._styleMarkers.forEach(function(d){L.DomUtil.addClass(d._icon,"visible"),d.setLatLng(a)}),this._map.off("click",this._placeStartingMarkers,this),this._map.on("click",this._finishShape,this),this._hintMarker.setTooltipContent(Bt("tooltips.finishRect")),this._setRectangleOrigin()},_setRectangleOrigin:function(){var r=this._startMarker.getLatLng();r&&(this._layerGroup.addLayer(this._layer),this._layer.setLatLngs([r,r]),this._hintMarker.on("move",this._syncRectangleSize,this))},_syncHintMarker:function(r){if(this._hintMarker.setLatLng(r.latlng),this.options.snappable){var a=r;a.target=this._hintMarker,this._handleSnapping(a)}var d=this._layerGroup&&this._layerGroup.hasLayer(this._layer)?this._layer.getLatLngs():[this._hintMarker.getLatLng()];this._fireChange(d,"Draw")},_syncRectangleSize:function(){var r=this,a=St(this._startMarker.getLatLng(),this._map),d=St(this._hintMarker.getLatLng(),this._map),_=L.PM.Utils._getRotatedRectangle(a,d,this.options.rectangleAngle||0,this._map);if(this._layer.setLatLngs(_),this.options.cursorMarker&&this._styleMarkers){var w=[];_.forEach(function(A){A.equals(a,1e-8)||A.equals(d,1e-8)||w.push(A)}),w.forEach(function(A,j){try{r._styleMarkers[j].setLatLng(A)}catch{}})}},_findCorners:function(){var r=this._layer.getBounds();return[r.getNorthWest(),r.getNorthEast(),r.getSouthEast(),r.getSouthWest()]},_finishShape:function(r){this._hintMarker._snapped||this._hintMarker.setLatLng(r.latlng);var a=this._hintMarker.getLatLng(),d=this._startMarker.getLatLng();if(!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer()){var _=L.rectangle([d,a],this.options.pathOptions);if(this.options.rectangleAngle){var w=L.PM.Utils._getRotatedRectangle(d,a,this.options.rectangleAngle||0,this._map);_.setLatLngs(w),_.pm&&_.pm._setAngle(this.options.rectangleAngle||0)}this._setPane(_,"layerPane"),this._finishLayer(_),_.addTo(this._map.pm._getContainingLayer()),this._fireCreate(_),this.disable(),this.options.continueDrawing&&this.enable()}},setStyle:function(){var r;(r=this._layer)===null||r===void 0||r.setStyle(this.options.pathOptions)}}),I.Circle=I.extend({initialize:function(r){this._map=r,this._shape="Circle",this.toolbarButtonName="drawCircle"},enable:function(r){L.Util.setOptions(this,r),this.options.radius=0,this._enabled=!0,this._layerGroup=new L.FeatureGroup,this._layerGroup._pmTempLayer=!0,this._layerGroup.addTo(this._map),this._layer=L.circle(this._map.getCenter(),ln(ln({},this.options.templineStyle),{},{radius:0})),this._setPane(this._layer,"layerPane"),this._layer._pmTempLayer=!0,this._centerMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"marker-icon"}),draggable:!1,zIndexOffset:100}),this._setPane(this._centerMarker,"vertexPane"),this._centerMarker._pmTempLayer=!0,this._hintMarker=L.marker(this._map.getCenter(),{zIndexOffset:110,icon:L.divIcon({className:"marker-icon cursor-marker"})}),this._setPane(this._hintMarker,"vertexPane"),this._hintMarker._pmTempLayer=!0,this._layerGroup.addLayer(this._hintMarker),this.options.cursorMarker&&L.DomUtil.addClass(this._hintMarker._icon,"visible"),this.options.tooltips&&this._hintMarker.bindTooltip(Bt("tooltips.startCircle"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this._hintline=L.polyline([],this.options.hintlineStyle),this._setPane(this._hintline,"layerPane"),this._hintline._pmTempLayer=!0,this._layerGroup.addLayer(this._hintline),this._map._container.style.cursor="crosshair",this._map.on("click",this._placeCenterMarker,this),this._map.on("mousemove",this._syncHintMarker,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._otherSnapLayers=[],this._fireDrawStart(),this._setGlobalDrawMode()},disable:function(){this._enabled&&(this._enabled=!1,this._map._container.style.cursor="",this._map.off("click",this._finishShape,this),this._map.off("click",this._placeCenterMarker,this),this._map.off("mousemove",this._syncHintMarker,this),this._map.removeLayer(this._layerGroup),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping(),this._fireDrawEnd(),this._setGlobalDrawMode())},enabled:function(){return this._enabled},toggle:function(r){this.enabled()?this.disable():this.enable(r)},_syncHintLine:function(){var r=this._centerMarker.getLatLng(),a=this._getNewDestinationOfHintMarker();this._hintline.setLatLngs([r,a])},_syncCircleRadius:function(){var r,a=this._centerMarker.getLatLng(),d=this._hintMarker.getLatLng();r=this._map.options.crs===L.CRS.Simple?this._map.distance(a,d):a.distanceTo(d),this.options.minRadiusCircle&&rthis.options.maxRadiusCircle?this._layer.setRadius(this.options.maxRadiusCircle):this._layer.setRadius(r)},_syncHintMarker:function(r){if(this._hintMarker.setLatLng(r.latlng),this._hintMarker.setLatLng(this._getNewDestinationOfHintMarker()),this.options.snappable){var a=r;a.target=this._hintMarker,this._handleSnapping(a)}this._handleHintMarkerSnapping();var d=this._layerGroup&&this._layerGroup.hasLayer(this._centerMarker)?this._centerMarker.getLatLng():this._hintMarker.getLatLng();this._fireChange(d,"Draw")},_placeCenterMarker:function(r){this._layerGroup.addLayer(this._layer),this._layerGroup.addLayer(this._centerMarker),this._hintMarker._snapped||this._hintMarker.setLatLng(r.latlng);var a=this._hintMarker.getLatLng();this._layerGroup.addLayer(this._layer),this._centerMarker.setLatLng(a),this._map.off("click",this._placeCenterMarker,this),this._map.on("click",this._finishShape,this),this._placeCircleCenter()},_placeCircleCenter:function(){var r=this._centerMarker.getLatLng();r&&(this._layer.setLatLng(r),this._hintMarker.on("move",this._syncHintLine,this),this._hintMarker.on("move",this._syncCircleRadius,this),this._hintMarker.setTooltipContent(Bt("tooltips.finishCircle")),this._fireCenterPlaced(),this._fireChange(this._layer.getLatLng(),"Draw"))},_finishShape:function(r){if(!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer()){this._hintMarker._snapped||this._hintMarker.setLatLng(r.latlng);var a,d=this._centerMarker.getLatLng(),_=this._hintMarker.getLatLng();a=this._map.options.crs===L.CRS.Simple?this._map.distance(d,_):d.distanceTo(_),this.options.minRadiusCircle&&athis.options.maxRadiusCircle&&(a=this.options.maxRadiusCircle);var w=ln(ln({},this.options.pathOptions),{},{radius:a}),A=L.circle(d,w);this._setPane(A,"layerPane"),this._finishLayer(A),A.addTo(this._map.pm._getContainingLayer()),A.pm&&A.pm._updateHiddenPolyCircle(),this._fireCreate(A),this.disable(),this.options.continueDrawing&&this.enable()}},_getNewDestinationOfHintMarker:function(){var r=this._hintMarker.getLatLng();if(!this._layerGroup.hasLayer(this._centerMarker))return r;var a=this._centerMarker.getLatLng(),d=a.distanceTo(r);return this.options.minRadiusCircle&&dthis.options.maxRadiusCircle&&(r=Nt(this._map,a,r,this.options.maxRadiusCircle)),r},_handleHintMarkerSnapping:function(){if(this._hintMarker._snapped){var r=this._centerMarker.getLatLng(),a=this._hintMarker.getLatLng(),d=r.distanceTo(a);this._layerGroup.hasLayer(this._centerMarker)&&(this.options.minRadiusCircle&&dthis.options.maxRadiusCircle)&&this._hintMarker.setLatLng(this._hintMarker._orgLatLng)}this._hintMarker.setLatLng(this._getNewDestinationOfHintMarker())},setStyle:function(){var r,a;(r=this._layer)===null||r===void 0||r.setStyle(this.options.templineStyle),(a=this._hintline)===null||a===void 0||a.setStyle(this.options.hintlineStyle)}}),I.CircleMarker=I.Marker.extend({initialize:function(r){this._map=r,this._shape="CircleMarker",this.toolbarButtonName="drawCircleMarker",this._layerIsDragging=!1},enable:function(r){var a=this;if(L.Util.setOptions(this,r),this._enabled=!0,this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this.options.editable){var d={};L.extend(d,this.options.templineStyle),d.radius=0,this._layerGroup=new L.FeatureGroup,this._layerGroup._pmTempLayer=!0,this._layerGroup.addTo(this._map),this._layer=L.circleMarker(this._map.getCenter(),d),this._setPane(this._layer,"layerPane"),this._layer._pmTempLayer=!0,this._centerMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"marker-icon"}),draggable:!1,zIndexOffset:100}),this._setPane(this._centerMarker,"vertexPane"),this._centerMarker._pmTempLayer=!0,this._hintMarker=L.marker(this._map.getCenter(),{zIndexOffset:110,icon:L.divIcon({className:"marker-icon cursor-marker"})}),this._setPane(this._hintMarker,"vertexPane"),this._hintMarker._pmTempLayer=!0,this._layerGroup.addLayer(this._hintMarker),this.options.cursorMarker&&L.DomUtil.addClass(this._hintMarker._icon,"visible"),this.options.tooltips&&this._hintMarker.bindTooltip(Bt("tooltips.startCircle"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this._hintline=L.polyline([],this.options.hintlineStyle),this._setPane(this._hintline,"layerPane"),this._hintline._pmTempLayer=!0,this._layerGroup.addLayer(this._hintline),this._map.on("click",this._placeCenterMarker,this),this._map._container.style.cursor="crosshair"}else this._map.on("click",this._createMarker,this),this._hintMarker=L.circleMarker(this._map.getCenter(),this.options.templineStyle),this._setPane(this._hintMarker,"layerPane"),this._hintMarker._pmTempLayer=!0,this._hintMarker.addTo(this._map),this._layer=this._hintMarker,this.options.tooltips&&this._hintMarker.bindTooltip(Bt("tooltips.placeCircleMarker"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip();this._map.on("mousemove",this._syncHintMarker,this),!this.options.editable&&this.options.markerEditable&&this._map.eachLayer(function(_){a.isRelevantMarker(_)&&_.pm.enable()}),this._layer.bringToBack(),this._fireDrawStart(),this._setGlobalDrawMode()},disable:function(){var r=this;this._enabled&&(this._enabled=!1,this.options.editable?(this._map._container.style.cursor="",this._map.off("click",this._finishShape,this),this._map.off("click",this._placeCenterMarker,this),this._map.removeLayer(this._layerGroup)):(this._map.off("click",this._createMarker,this),this._map.eachLayer(function(a){r.isRelevantMarker(a)&&a.pm.disable()}),this._hintMarker.remove()),this._map.off("mousemove",this._syncHintMarker,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping(),this._fireDrawEnd(),this._setGlobalDrawMode())},_placeCenterMarker:function(r){this._layerGroup.addLayer(this._layer),this._layerGroup.addLayer(this._centerMarker),this._hintMarker._snapped||this._hintMarker.setLatLng(r.latlng);var a=this._hintMarker.getLatLng();this._layerGroup.addLayer(this._layer),this._centerMarker.setLatLng(a),this._map.off("click",this._placeCenterMarker,this),this._map.on("click",this._finishShape,this),this._placeCircleCenter()},_placeCircleCenter:function(){var r=this._centerMarker.getLatLng();r&&(this._layer.setLatLng(r),this._hintMarker.on("move",this._syncHintLine,this),this._hintMarker.on("move",this._syncCircleRadius,this),this._hintMarker.setTooltipContent(Bt("tooltips.finishCircle")),this._fireCenterPlaced(),this._fireChange(this._layer.getLatLng(),"Draw"))},_syncHintLine:function(){var r=this._centerMarker.getLatLng(),a=this._getNewDestinationOfHintMarker();this._hintline.setLatLngs([r,a])},_syncCircleRadius:function(){var r=this._centerMarker.getLatLng(),a=this._hintMarker.getLatLng(),d=this._map.project(r).distanceTo(this._map.project(a));this.options.minRadiusCircleMarker&&dthis.options.maxRadiusCircleMarker?this._layer.setRadius(this.options.maxRadiusCircleMarker):this._layer.setRadius(d)},_syncHintMarker:function(r){if(this._hintMarker.setLatLng(r.latlng),this._hintMarker.setLatLng(this._getNewDestinationOfHintMarker()),this.options.snappable){var a=r;a.target=this._hintMarker,this._handleSnapping(a)}this._handleHintMarkerSnapping();var d=this._layerGroup&&this._layerGroup.hasLayer(this._centerMarker)?this._centerMarker.getLatLng():this._hintMarker.getLatLng();this._fireChange(d,"Draw")},isRelevantMarker:function(r){return r instanceof L.CircleMarker&&!(r instanceof L.Circle)&&r.pm&&!r._pmTempLayer},_createMarker:function(r){if((!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer())&&r.latlng&&!this._layerIsDragging){this._hintMarker._snapped||this._hintMarker.setLatLng(r.latlng);var a=this._hintMarker.getLatLng(),d=L.circleMarker(a,this.options.pathOptions);this._setPane(d,"layerPane"),this._finishLayer(d),d.addTo(this._map.pm._getContainingLayer()),d.pm&&this.options.markerEditable&&d.pm.enable(),this._fireCreate(d),this._cleanupSnapping(),this.options.continueDrawing||this.disable()}},_finishShape:function(r){if(!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer()){this._hintMarker._snapped||this._hintMarker.setLatLng(r.latlng);var a=this._centerMarker.getLatLng(),d=this._hintMarker.getLatLng(),_=this._map.project(a).distanceTo(this._map.project(d));this.options.editable&&(this.options.minRadiusCircleMarker&&_this.options.maxRadiusCircleMarker&&(_=this.options.maxRadiusCircleMarker));var w=Ln(Ln({},this.options.pathOptions),{},{radius:_}),A=L.circleMarker(a,w);this._setPane(A,"layerPane"),this._finishLayer(A),A.addTo(this._map.pm._getContainingLayer()),A.pm&&A.pm._updateHiddenPolyCircle(),this._fireCreate(A),this.disable(),this.options.continueDrawing&&this.enable()}},_getNewDestinationOfHintMarker:function(){var r=this._hintMarker.getLatLng();if(this.options.editable){if(!this._layerGroup.hasLayer(this._centerMarker))return r;var a=this._centerMarker.getLatLng(),d=this._map.project(a).distanceTo(this._map.project(r));this.options.minRadiusCircleMarker&&dthis.options.maxRadiusCircleMarker&&(r=Nt(this._map,a,r,this._pxRadiusToMeter(this.options.maxRadiusCircleMarker)))}return r},_handleHintMarkerSnapping:function(){if(this.options.editable){if(this._hintMarker._snapped){var r=this._centerMarker.getLatLng(),a=this._hintMarker.getLatLng(),d=this._map.project(r).distanceTo(this._map.project(a));this._layerGroup.hasLayer(this._centerMarker)&&(this.options.minRadiusCircleMarker&&dthis.options.maxRadiusCircleMarker)&&this._hintMarker.setLatLng(this._hintMarker._orgLatLng)}this._hintMarker.setLatLng(this._getNewDestinationOfHintMarker())}},_pxRadiusToMeter:function(r){var a=this._centerMarker.getLatLng(),d=this._map.project(a),_=L.point(d.x+r,d.y);return this._map.unproject(_).distanceTo(a)},setStyle:function(){var r,a,d={};L.extend(d,this.options.templineStyle),this.options.editable&&(d.radius=0),(r=this._layer)===null||r===void 0||r.setStyle(d),(a=this._hintline)===null||a===void 0||a.setStyle(this.options.hintlineStyle)}});const tn=function(r){if(!r)throw new Error("geojson is required");var a=[];return Ei(r,function(d){(function(_,w){var A=[],j=_.geometry;if(j!==null){switch(j.type){case"Polygon":A=Ne(j);break;case"LineString":A=[Ne(j)]}A.forEach(function($){var F=function(G,X){var pt=[];return G.reduce(function(ut,Mt){var Rt,Zt,ne,we,Ut,xe,Pe=Tt([ut,Mt],X);return Pe.bbox=(Zt=Mt,ne=(Rt=ut)[0],we=Rt[1],Ut=Zt[0],xe=Zt[1],[neUt?ne:Ut,we>xe?we:xe]),pt.push(Pe),Mt}),pt}($,_.properties);F.forEach(function(G){G.id=w.length,w.push(G)})})}})(d,a)}),jt(a)};var Ht=c(1787);function Ti(r,a){var d=Ne(r),_=Ne(a);if(d.length!==2)throw new Error(" line1 must only contain 2 coordinates");if(_.length!==2)throw new Error(" line2 must only contain 2 coordinates");var w=d[0][0],A=d[0][1],j=d[1][0],$=d[1][1],F=_[0][0],G=_[0][1],X=_[1][0],pt=_[1][1],ut=(pt-G)*(j-w)-(X-F)*($-A),Mt=(X-F)*(A-G)-(pt-G)*(w-F),Rt=(j-w)*(A-G)-($-A)*(w-F);if(ut===0)return null;var Zt=Mt/ut,ne=Rt/ut;return Zt>=0&&Zt<=1&&ne>=0&&ne<=1?vt([w+Zt*(j-w),A+Zt*($-A)]):null}const An=function(r,a){var d={},_=[];if(r.type==="LineString"&&(r=nt(r)),a.type==="LineString"&&(a=nt(a)),r.type==="Feature"&&a.type==="Feature"&&r.geometry!==null&&a.geometry!==null&&r.geometry.type==="LineString"&&a.geometry.type==="LineString"&&r.geometry.coordinates.length===2&&a.geometry.coordinates.length===2){var w=Ti(r,a);return w&&_.push(w),jt(_)}var A=Ht();return A.load(tn(a)),Mr(tn(r),function(j){Mr(A.search(j),function($){var F=Ti(j,$);if(F){var G=Ne(F).join(",");d[G]||(d[G]=!0,_.push(F))}})}),jt(_)},Bn=function(r,a,d){d===void 0&&(d={});var _=qe(r),w=qe(a),A=Yt(w[1]-_[1]),j=Yt(w[0]-_[0]),$=Yt(_[1]),F=Yt(w[1]),G=Math.pow(Math.sin(A/2),2)+Math.pow(Math.sin(j/2),2)*Math.cos($)*Math.cos(F);return Wt(2*Math.atan2(Math.sqrt(G),Math.sqrt(1-G)),d.units)},wo=function(r){var a=r[0],d=r[1],_=r[2],w=r[3];if(Bn(r.slice(0,2),[_,d])>=Bn(r.slice(0,2),[a,w])){var A=(d+w)/2;return[a,A-(_-a)/2,_,A+(_-a)/2]}var j=(a+_)/2;return[j-(w-d)/2,d,j+(w-d)/2,w]};function Cr(r){var a=[1/0,1/0,-1/0,-1/0];return Si(r,function(d){a[0]>d[0]&&(a[0]=d[0]),a[1]>d[1]&&(a[1]=d[1]),a[2] is required");if(typeof d!="number")throw new Error(" must be a number");if(typeof _!="number")throw new Error(" must be a number");w!==!1&&w!==void 0||(r=JSON.parse(JSON.stringify(r)));var A=Math.pow(10,d);return Si(r,function(j){(function($,F,G){$.length>G&&$.splice(G,$.length);for(var X=0;X<$.length;X++)$[X]=Math.round($[X]*F)/F})(j,A,_)}),r};function Oi(r,a,d){if(d===void 0&&(d={}),d.final===!0)return function(pt,ut){var Mt=Oi(ut,pt);return Mt=(Mt+180)%360}(r,a);var _=qe(r),w=qe(a),A=Yt(_[0]),j=Yt(w[0]),$=Yt(_[1]),F=Yt(w[1]),G=Math.sin(j-A)*Math.cos(F),X=Math.cos($)*Math.sin(F)-Math.sin($)*Math.cos(F)*Math.cos(j-A);return ve(Math.atan2(G,X))}function xo(r,a,d,_){_===void 0&&(_={});var w=qe(r),A=Yt(w[0]),j=Yt(w[1]),$=Yt(d),F=Qt(a,_.units),G=Math.asin(Math.sin(j)*Math.cos(F)+Math.cos(j)*Math.sin(F)*Math.cos($));return vt([ve(A+Math.atan2(Math.sin($)*Math.sin(F)*Math.cos(j),Math.cos(F)-Math.sin(j)*Math.sin(G))),ve(G)],_.properties)}const Hs=function(r,a,d){d===void 0&&(d={});var _=vt([1/0,1/0],{dist:1/0}),w=0;return Ei(r,function(A){for(var j=Ne(A),$=0;$0&&((ne=Zt.features[0]).properties.dist=Bn(a,ne,d),ne.properties.location=w+Bn(F,ne,d)),F.properties.dist<_.properties.dist&&((_=F).properties.index=$,_.properties.location=w),G.properties.dist<_.properties.dist&&((_=G).properties.index=$+1,_.properties.location=w+X),ne&&ne.properties.dist<_.properties.dist&&((_=ne).properties.index=$),w+=X}}),_};function ko(r,a){var d=[],_=Ht();return Ei(a,function(w){if(d.forEach(function($,F){$.id=F}),d.length){var A=_.search(w);if(A.features.length){var j=Ai(w,A);d=d.filter(function($){return $.id!==j.id}),_.remove(j),Mr(Ri(j,w),function($){d.push($),_.insert($)})}}else(d=Ri(r,w).features).forEach(function($){$.bbox||($.bbox=wo(ir($)))}),_.load(jt(d))}),jt(d)}function Ri(r,a){var d=[],_=Ne(r)[0],w=Ne(r)[r.geometry.coordinates.length-1];if(Bi(_,qe(a))||Bi(w,qe(a)))return jt([r]);var A=Ht(),j=tn(r);A.load(j);var $=A.search(a);if(!$.features.length)return jt([r]);var F=Ai(a,$),G=function(X,pt,ut){var Mt=ut;return Mr(X,function(Rt,Zt){Mt=Zt===0&&ut===void 0?Rt:pt(Mt,Rt,Zt)}),Mt}(j,function(X,pt,ut){var Mt=Ne(pt)[1],Rt=qe(a);return ut===F.id?(X.push(Rt),d.push(Tt(X)),Bi(Rt,Mt)?[Rt]:[Rt,Mt]):(X.push(Mt),X)},[_]);return G.length>1&&d.push(Tt(G)),jt(d)}function Ai(r,a){if(!a.features.length)throw new Error("lines must contain features");if(a.features.length===1)return a.features[0];var d,_=1/0;return Mr(a,function(w){var A=Hs(w,r).properties.dist;A<_&&(d=w,_=A)}),d}function Bi(r,a){return r[0]===a[0]&&r[1]===a[1]}const Kr=function(r,a){if(!r)throw new Error("line is required");if(!a)throw new Error("splitter is required");var d=qr(r),_=qr(a);if(d!=="LineString")throw new Error("line must be LineString");if(_==="FeatureCollection")throw new Error("splitter cannot be a FeatureCollection");if(_==="GeometryCollection")throw new Error("splitter cannot be a GeometryCollection");var w=or(a,{precision:7});switch(_){case"Point":return Ri(r,w);case"MultiPoint":return ko(r,w);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return ko(r,An(r,w))}};function Wr(r,a,d){if(d===void 0&&(d={}),!r)throw new Error("point is required");if(!a)throw new Error("polygon is required");var _=qe(r),w=Rn(a),A=w.type,j=a.bbox,$=w.coordinates;if(j&&function(ut,Mt){return Mt[0]<=ut[0]&&Mt[1]<=ut[1]&&Mt[2]>=ut[0]&&Mt[3]>=ut[1]}(_,j)===!1)return!1;A==="Polygon"&&($=[$]);for(var F=!1,G=0;G<$.length&&!F;G++)if(Lo(_,$[G][0],d.ignoreBoundary)){for(var X=!1,pt=1;pt<$[G].length&&!X;)Lo(_,$[G][pt],!d.ignoreBoundary)&&(X=!0),pt++;X||(F=!0)}return F}function Lo(r,a,d){var _=!1;a[0][0]===a[a.length-1][0]&&a[0][1]===a[a.length-1][1]&&(a=a.slice(0,a.length-1));for(var w=0,A=a.length-1;wr[1]!=G>r[1]&&r[0]<(F-j)*(r[1]-$)/(G-$)+j&&(_=!_)}return _}function Fs(r,a,d,_,w){var A=d[0],j=d[1],$=r[0],F=r[1],G=a[0],X=a[1],pt=G-$,ut=X-F,Mt=(d[0]-$)*ut-(d[1]-F)*pt;if(w!==null){if(Math.abs(Mt)>w)return!1}else if(Mt!==0)return!1;return _?_==="start"?Math.abs(pt)>=Math.abs(ut)?pt>0?$0?F=Math.abs(ut)?pt>0?$<=A&&A0?F<=j&&j=Math.abs(ut)?pt>0?$0?F=Math.abs(ut)?pt>0?$<=A&&A<=G:G<=A&&A<=$:ut>0?F<=j&&j<=X:X<=j&&j<=F}const Pr=function(r,a,d){d===void 0&&(d={});for(var _=qe(r),w=Ne(a),A=0;A"u"?null:d.epsilon))return!0}return!1};function Vs(r,a){var d=Rn(r),_=Rn(a),w=d.type,A=_.type,j=d.coordinates,$=_.coordinates;switch(w){case"Point":if(A==="Point")return Un(j,$);throw new Error("feature2 "+A+" geometry not supported");case"MultiPoint":switch(A){case"Point":return function(F,G){var X,pt=!1;for(X=0;Xa[0])&&!(r[2]a[1])&&!(r[3]1?a.forEach(function(w){_.push(function(A){return he({type:"LineString",coordinates:A})}(w))}):_.push(r),_}function Ae(r){var a=[];return r.eachLayer(function(d){a.push(Sr(d.toGeoJSON(15)))}),function(d){return he({type:"MultiLineString",coordinates:d})}(a)}function Ii(r,a){return function(d){if(Array.isArray(d))return d}(r)||function(d,_){var w=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(w!=null){var A,j,$=[],F=!0,G=!1;try{for(w=w.call(d);!(F=(A=w.next()).done)&&($.push(A.value),!_||$.length!==_);F=!0);}catch(X){G=!0,j=X}finally{try{F||w.return==null||w.return()}finally{if(G)throw j}}return $}}(r,a)||function(d,_){if(d){if(typeof d=="string")return Er(d,_);var w=Object.prototype.toString.call(d).slice(8,-1);if(w==="Object"&&d.constructor&&(w=d.constructor.name),w==="Map"||w==="Set")return Array.from(d);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return Er(d,_)}}(r,a)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Er(r,a){(a==null||a>r.length)&&(a=r.length);for(var d=0,_=new Array(a);dr.length)&&(a=r.length);for(var d=0,_=new Array(a);d0)||a.options.layersToCut.indexOf(w)>-1}).filter(function(w){return!a._layerGroup.hasLayer(w)}).filter(function(w){try{var A=!!An(r.toGeoJSON(15),w.toGeoJSON(15)).features.length>0;return A||w instanceof L.Polyline&&!(w instanceof L.Polygon)?A:(j=r.toGeoJSON(15),$=w.toGeoJSON(15),F=Ce(j),G=Ce($),!((X=sr().intersection(F.coordinates,G.coordinates)).length===0||!(X.length===1?Gn(X[0]):Zn(X))))}catch{return w instanceof L.Polygon&&console.error("You can't cut polygons with self-intersections"),!1}var j,$,F,G,X}).forEach(function(w){var A;if(w instanceof L.Polygon){var j=(A=L.polygon(w.getLatLngs())).getLatLngs();_.forEach(function(ut){if(ut&&ut.snapInfo){var Mt=ut.latlng,Rt=a._calcClosestLayer(Mt,[A]);if(Rt&&Rt.segment&&Rt.distance1?wt()(j,Ut):j).splice(xe,0,Mt)}}}})}else A=w;var $=a._cutLayer(r,A),F=L.geoJSON($,w.options);if(F.getLayers().length===1){var G=F.getLayers();F=Ii(G,1)[0]}a._setPane(F,"layerPane");var X=F.addTo(a._map.pm._getContainingLayer());if(X.pm.enable(w.pm.options),X.pm.disable(),w._pmTempLayer=!0,r._pmTempLayer=!0,w.remove(),w.removeFrom(a._map.pm._getContainingLayer()),r.remove(),r.removeFrom(a._map.pm._getContainingLayer()),X.getLayers&&X.getLayers().length===0&&a._map.pm.removeLayer({target:X}),X instanceof L.LayerGroup&&X.eachLayer(function(ut){a._addDrawnLayerProp(ut)}),a._addDrawnLayerProp(X),a.options.layersToCut&&L.Util.isArray(a.options.layersToCut)&&a.options.layersToCut.length>0){var pt=a.options.layersToCut.indexOf(w);pt>-1&&a.options.layersToCut.splice(pt,1)}a._editedLayers.push({layer:X,originalLayer:w})})},_cutLayer:function(r,a){var d,_,w,A,j,$,F=L.geoJSON();if(a instanceof L.Polygon)_=a.toGeoJSON(15),w=r.toGeoJSON(15),A=Ce(_),j=Ce(w),d=($=sr().difference(A.coordinates,j.coordinates)).length===0?null:$.length===1?Gn($[0]):Zn($);else{var G=ee(a);G.forEach(function(X){var pt=Kr(X,r.toGeoJSON(15));(pt&&pt.features.length>0?L.geoJSON(pt):L.geoJSON(X)).getLayers().forEach(function(ut){Vs(r.toGeoJSON(15),ut.toGeoJSON(15))||ut.addTo(F)})}),d=G.length>1?Ae(F):F.toGeoJSON(15)}return d},_change:L.Util.falseFn}),I.Text=I.extend({initialize:function(r){this._map=r,this._shape="Text",this.toolbarButtonName="drawText"},enable:function(r){L.Util.setOptions(this,r),this._enabled=!0,this._map.on("click",this._createMarker,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._hintMarker=L.marker(this._map.getCenter(),{interactive:!1,zIndexOffset:100,icon:L.divIcon({className:"marker-icon cursor-marker"})}),this._setPane(this._hintMarker,"vertexPane"),this._hintMarker._pmTempLayer=!0,this._hintMarker.addTo(this._map),this.options.cursorMarker&&L.DomUtil.addClass(this._hintMarker._icon,"visible"),this.options.tooltips&&this._hintMarker.bindTooltip(Bt("tooltips.placeText"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this._layer=this._hintMarker,this._map.on("mousemove",this._syncHintMarker,this),this._fireDrawStart(),this._setGlobalDrawMode()},disable:function(){this._enabled&&(this._enabled=!1,this._map.off("click",this._createMarker,this),this._hintMarker.remove(),this._map.off("mousemove",this._syncHintMarker,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping(),this._fireDrawEnd(),this._setGlobalDrawMode())},enabled:function(){return this._enabled},toggle:function(r){this.enabled()?this.disable():this.enable(r)},_syncHintMarker:function(r){if(this._hintMarker.setLatLng(r.latlng),this.options.snappable){var a=r;a.target=this._hintMarker,this._handleSnapping(a)}},_createMarker:function(r){var a;if(r.latlng&&(!this.options.requireSnapToFinish||this._hintMarker._snapped||this._isFirstLayer())){this._hintMarker._snapped||this._hintMarker.setLatLng(r.latlng);var d=this._hintMarker.getLatLng();if(this.textArea=this._createTextArea(),(a=this.options.textOptions)!==null&&a!==void 0&&a.className){var _,w=this.options.textOptions.className.split(" ");(_=this.textArea.classList).add.apply(_,en(w))}var A=this._createTextIcon(this.textArea),j=new L.Marker(d,{textMarker:!0,_textMarkerOverPM:!0,icon:A});if(this._setPane(j,"markerPane"),this._finishLayer(j),j.pm||(j.options.draggable=!1),j.addTo(this._map.pm._getContainingLayer()),j.pm){var $,F,G,X,pt;j.pm.textArea=this.textArea,L.setOptions(j.pm,{removeIfEmpty:($=(F=this.options.textOptions)===null||F===void 0?void 0:F.removeIfEmpty)===null||$===void 0||$});var ut=(G=(X=this.options.textOptions)===null||X===void 0?void 0:X.focusAfterDraw)===null||G===void 0||G;j.pm._createTextMarker(ut),(pt=this.options.textOptions)!==null&&pt!==void 0&&pt.text&&j.pm.setText(this.options.textOptions.text)}this._fireCreate(j),this._cleanupSnapping(),this.disable(),this.options.continueDrawing&&this.enable()}},_createTextArea:function(){var r=document.createElement("textarea");return r.autofocus=!0,r.readOnly=!0,r.classList.add("pm-textarea","pm-disabled"),r},_createTextIcon:function(r){return L.divIcon({className:"pm-text-marker",html:r})}});const Xr={enableLayerDrag:function(){if(this.options.draggable&&this._layer._map){this.disable(),this._layerDragEnabled=!0,this._map||(this._map=this._layer._map),(this._layer instanceof L.Marker||this._layer instanceof L.ImageOverlay)&&L.DomEvent.on(this._getDOMElem(),"dragstart",this._stopDOMImageDrag),this._layer.dragging&&this._layer.dragging.disable(),this._tempDragCoord=null,zt(this._layer)instanceof L.Canvas?(this._layer.on("mouseout",this.removeDraggingClass,this),this._layer.on("mouseover",this.addDraggingClass,this)):this.addDraggingClass(),this._originalMapDragState=this._layer._map.dragging._enabled,this._safeToCacheDragState=!0;var r=this._getDOMElem();r&&(zt(this._layer)instanceof L.Canvas?(this._layer.on("touchstart mousedown",this._dragMixinOnMouseDown,this),this._map.pm._addTouchEvents(r)):L.DomEvent.on(r,"touchstart mousedown",this._simulateMouseDownEvent,this)),this._fireDragEnable()}},disableLayerDrag:function(){this._layerDragEnabled=!1,zt(this._layer)instanceof L.Canvas?(this._layer.off("mouseout",this.removeDraggingClass,this),this._layer.off("mouseover",this.addDraggingClass,this)):this.removeDraggingClass(),this._originalMapDragState&&this._dragging&&this._map.dragging.enable(),this._safeToCacheDragState=!1,this._layer.dragging&&this._layer.dragging.disable();var r=this._getDOMElem();r&&(zt(this._layer)instanceof L.Canvas?(this._layer.off("touchstart mousedown",this._dragMixinOnMouseDown,this),this._map.pm._removeTouchEvents(r)):L.DomEvent.off(r,"touchstart mousedown",this._simulateMouseDownEvent,this)),this._layerDragged&&this._fireUpdate(),this._layerDragged=!1,this._fireDragDisable()},dragging:function(){return this._dragging},layerDragEnabled:function(){return!!this._layerDragEnabled},_simulateMouseDownEvent:function(r){var a=r.touches?r.touches[0]:r,d={originalEvent:a,target:this._layer};return d.containerPoint=this._map.mouseEventToContainerPoint(a),d.latlng=this._map.containerPointToLatLng(d.containerPoint),this._dragMixinOnMouseDown(d),!1},_simulateMouseMoveEvent:function(r){var a=r.touches?r.touches[0]:r,d={originalEvent:a,target:this._layer};return d.containerPoint=this._map.mouseEventToContainerPoint(a),d.latlng=this._map.containerPointToLatLng(d.containerPoint),this._dragMixinOnMouseMove(d),!1},_simulateMouseUpEvent:function(r){var a={originalEvent:r.touches?r.touches[0]:r,target:this._layer};return r.type.indexOf("touch")===-1&&(a.containerPoint=this._map.mouseEventToContainerPoint(r),a.latlng=this._map.containerPointToLatLng(a.containerPoint)),this._dragMixinOnMouseUp(a),!1},_dragMixinOnMouseDown:function(r){if(!(r.originalEvent.button>0)){this._overwriteEventIfItComesFromMarker(r);var a=r._fromLayerSync,d=this._syncLayers("_dragMixinOnMouseDown",r);this._layer instanceof L.Marker&&(!this.options.snappable||a||d?this._disableSnapping():this._initSnappableMarkers()),this._layer instanceof L.CircleMarker&&!(this._layer instanceof L.Circle)&&(!this.options.snappable||a||d?this._layer.pm.options.editable?this._layer.pm._disableSnapping():this._layer.pm._disableSnappingDrag():this._layer.pm.options.editable||this._initSnappableMarkersDrag()),this._safeToCacheDragState&&(this._originalMapDragState=this._layer._map.dragging._enabled,this._safeToCacheDragState=!1),this._tempDragCoord=r.latlng,L.DomEvent.on(this._map.getContainer(),"touchend mouseup",this._simulateMouseUpEvent,this),L.DomEvent.on(this._map.getContainer(),"touchmove mousemove",this._simulateMouseMoveEvent,this)}},_dragMixinOnMouseMove:function(r){this._overwriteEventIfItComesFromMarker(r);var a=this._getDOMElem();this._syncLayers("_dragMixinOnMouseMove",r),this._dragging||(this._dragging=!0,L.DomUtil.addClass(a,"leaflet-pm-dragging"),this._layer instanceof L.Marker||this._layer.bringToFront(),this._originalMapDragState&&this._map.dragging.disable(),this._fireDragStart()),this._tempDragCoord||(this._tempDragCoord=r.latlng),this._onLayerDrag(r),this._layer instanceof L.CircleMarker&&this._layer.pm._updateHiddenPolyCircle()},_dragMixinOnMouseUp:function(r){var a=this,d=this._getDOMElem();return this._syncLayers("_dragMixinOnMouseUp",r),this._originalMapDragState&&this._map.dragging.enable(),this._safeToCacheDragState=!0,L.DomEvent.off(this._map.getContainer(),"touchmove mousemove",this._simulateMouseMoveEvent,this),L.DomEvent.off(this._map.getContainer(),"touchend mouseup",this._simulateMouseUpEvent,this),!!this._dragging&&(this._layer instanceof L.CircleMarker&&this._layer.pm._updateHiddenPolyCircle(),this._layerDragged=!0,window.setTimeout(function(){a._dragging=!1,d&&L.DomUtil.removeClass(d,"leaflet-pm-dragging"),a._fireDragEnd(),a._fireEdit(),a._layerEdited=!0},10),!0)},_onLayerDrag:function(r){var a=r.latlng,d=a.lat-this._tempDragCoord.lat,_=a.lng-this._tempDragCoord.lng,w=function X(pt){return pt.map(function(ut){if(Array.isArray(ut))return X(ut);var Mt={lat:ut.lat+d,lng:ut.lng+_};return(ut.alt||ut.alt===0)&&(Mt.alt=ut.alt),Mt})};if(this._layer instanceof L.Circle||this._layer instanceof L.CircleMarker&&this._layer.options.editable){var A=w([this._layer.getLatLng()]);this._layer.setLatLng(A[0]),this._fireChange(this._layer.getLatLng(),"Edit")}else if(this._layer instanceof L.CircleMarker||this._layer instanceof L.Marker){var j=this._layer.getLatLng();this._layer._snapped&&(j=this._layer._orgLatLng);var $=w([j]);this._layer.setLatLng($[0]),this._fireChange(this._layer.getLatLng(),"Edit")}else if(this._layer instanceof L.ImageOverlay){var F=w([this._layer.getBounds().getNorthWest(),this._layer.getBounds().getSouthEast()]);this._layer.setBounds(F),this._fireChange(this._layer.getBounds(),"Edit")}else{var G=w(this._layer.getLatLngs());this._layer.setLatLngs(G),this._fireChange(this._layer.getLatLngs(),"Edit")}this._tempDragCoord=a,r.layer=this._layer,this._fireDrag(r)},addDraggingClass:function(){var r=this._getDOMElem();r&&L.DomUtil.addClass(r,"leaflet-pm-draggable")},removeDraggingClass:function(){var r=this._getDOMElem();r&&L.DomUtil.removeClass(r,"leaflet-pm-draggable")},_getDOMElem:function(){var r=null;return this._layer._path?r=this._layer._path:this._layer._renderer&&this._layer._renderer._container?r=this._layer._renderer._container:this._layer._image?r=this._layer._image:this._layer._icon&&(r=this._layer._icon),r},_overwriteEventIfItComesFromMarker:function(r){r.target.getLatLng&&(!r.target._radius||r.target._radius<=10)&&(r.containerPoint=this._map.mouseEventToContainerPoint(r.originalEvent),r.latlng=this._map.containerPointToLatLng(r.containerPoint))},_syncLayers:function(r,a){var d=this;if(this.enabled())return!1;if(!a._fromLayerSync&&this._layer===a.target&&this.options.syncLayersOnDrag){a._fromLayerSync=!0;var _=[];if(L.Util.isArray(this.options.syncLayersOnDrag))_=this.options.syncLayersOnDrag,this.options.syncLayersOnDrag.forEach(function(j){j instanceof L.LayerGroup&&(_=_.concat(j.pm.getLayers(!0)))});else if(this.options.syncLayersOnDrag===!0&&this._parentLayerGroup)for(var w in this._parentLayerGroup){var A=this._parentLayerGroup[w];A.pm&&(_=A.pm.getLayers(!0))}return L.Util.isArray(_)&&_.length>0&&(_=_.filter(function(j){return!!j.pm}).filter(function(j){return!!j.pm.options.draggable})).forEach(function(j){j!==d._layer&&j.pm[r]&&(j._snapped=!1,j.pm[r](a))}),_.length>0}return!1},_stopDOMImageDrag:function(r){return r.preventDefault(),!1}};function In(r,a,d){var _=d.getMaxZoom();if(_===1/0&&(_=d.getZoom()),L.Util.isArray(r)){var w=[];return r.forEach(function(A){w.push(In(A,a,d))}),w}return r instanceof L.LatLng?function(A,j,$,F){return $.unproject(j.transform($.project(A,F)),F)}(r,a,d,_):null}function Se(r,a){a instanceof L.Layer&&(a=a.getLatLng());var d=r.getMaxZoom();return d===1/0&&(d=r.getZoom()),r.project(a,d)}function pn(r,a){var d=r.getMaxZoom();return d===1/0&&(d=r.getZoom()),r.unproject(a,d)}var Tr={_onRotateStart:function(r){this._preventRenderingMarkers(!0),this._rotationOriginLatLng=this._getRotationCenter().clone(),this._rotationOriginPoint=Se(this._map,this._rotationOriginLatLng),this._rotationStartPoint=Se(this._map,r.target.getLatLng()),this._initialRotateLatLng=Pt(this._layer),this._startAngle=this.getAngle();var a=Pt(this._rotationLayer,this._rotationLayer.pm._rotateOrgLatLng);this._fireRotationStart(this._rotationLayer,a),this._fireRotationStart(this._map,a)},_onRotate:function(r){var a=Se(this._map,r.target.getLatLng()),d=this._rotationStartPoint,_=this._rotationOriginPoint,w=Math.atan2(a.y-_.y,a.x-_.x)-Math.atan2(d.y-_.y,d.x-_.x);this._layer.setLatLngs(this._rotateLayer(w,this._initialRotateLatLng,this._rotationOriginLatLng,L.PM.Matrix.init(),this._map));var A=this;(function G(X){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;if(ut>-1&&pt.push(ut),L.Util.isArray(X[0]))X.forEach(function(Rt,Zt){return G(Rt,pt.slice(),Zt)});else{var Mt=wt()(A._markers,pt);X.forEach(function(Rt,Zt){Mt[Zt].setLatLng(Rt)})}})(this._layer.getLatLngs());var j=Pt(this._rotationLayer);this._rotationLayer.setLatLngs(this._rotateLayer(w,this._rotationLayer.pm._rotateOrgLatLng,this._rotationOriginLatLng,L.PM.Matrix.init(),this._map));var $=180*w/Math.PI,F=($=$<0?$+360:$)+this._startAngle;this._setAngle(F),this._rotationLayer.pm._setAngle(F),this._fireRotation(this._rotationLayer,$,j),this._fireRotation(this._map,$,j),this._rotationLayer.pm._fireChange(this._rotationLayer.getLatLngs(),"Rotation")},_onRotateEnd:function(){var r=this._startAngle;delete this._rotationOriginLatLng,delete this._rotationOriginPoint,delete this._rotationStartPoint,delete this._initialRotateLatLng,delete this._startAngle;var a=Pt(this._rotationLayer,this._rotationLayer.pm._rotateOrgLatLng);this._rotationLayer.pm._rotateOrgLatLng=Pt(this._rotationLayer),this._fireRotationEnd(this._rotationLayer,r,a),this._fireRotationEnd(this._map,r,a),this._rotationLayer.pm._fireEdit(this._rotationLayer,"Rotation"),this._preventRenderingMarkers(!1),this._layerRotated=!0},_rotateLayer:function(r,a,d,_,w){var A=Se(w,d);return this._matrix=_.clone().rotate(r,A).flip(),In(a,this._matrix,w)},_setAngle:function(r){r=r<0?r+360:r,this._angle=r%360},_getRotationCenter:function(){var r=L.polygon(this._layer.getLatLngs(),{stroke:!1,fill:!1,pmIgnore:!0}).addTo(this._layer._map),a=r.getCenter();return r.removeFrom(this._layer._map),a},enableRotate:function(){this.options.allowRotation?(this.rotateEnabled()&&this.disableRotate(),this._rotatePoly=L.polygon(this._layer.getLatLngs(),{fill:!1,stroke:!1,pmIgnore:!1,snapIgnore:!0}),this._rotatePoly._pmTempLayer=!0,this._rotatePoly.addTo(this._layer._map),this._rotatePoly.pm._setAngle(this.getAngle()),this._rotatePoly.pm.setOptions(this._layer._map.pm.getGlobalOptions()),this._rotatePoly.pm.setOptions({rotate:!0,snappable:!1,hideMiddleMarkers:!0}),this._rotatePoly.pm._rotationLayer=this._layer,this._rotatePoly.pm.enable(),this._rotateOrgLatLng=Pt(this._layer),this._rotateEnabled=!0,this._layer.on("remove",this.disableRotate,this),this._fireRotationEnable(this._layer),this._fireRotationEnable(this._layer._map)):this.disableRotate()},disableRotate:function(){this.rotateEnabled()&&(this._rotatePoly.pm._layerRotated&&this._fireUpdate(),this._rotatePoly.pm._layerRotated=!1,this._rotatePoly.pm.disable(),this._rotatePoly.remove(),this._rotatePoly.pm.setOptions({rotate:!1}),this._rotatePoly=void 0,this._rotateOrgLatLng=void 0,this._layer.off("remove",this.disableRotate,this),this._rotateEnabled=!1,this._fireRotationDisable(this._layer),this._fireRotationDisable(this._layer._map))},rotateEnabled:function(){return this._rotateEnabled},rotateLayer:function(r){var a=this.getAngle(),d=this._layer.getLatLngs(),_=r*(Math.PI/180);this._layer.setLatLngs(this._rotateLayer(_,this._layer.getLatLngs(),this._getRotationCenter(),L.PM.Matrix.init(),this._layer._map)),this._rotateOrgLatLng=L.polygon(this._layer.getLatLngs()).getLatLngs(),this._setAngle(this.getAngle()+r),this.rotateEnabled()&&this._rotatePoly&&this._rotatePoly.pm.enabled()&&(this._rotatePoly.setLatLngs(this._rotateLayer(_,this._rotatePoly.getLatLngs(),this._getRotationCenter(),L.PM.Matrix.init(),this._rotatePoly._map)),this._rotatePoly.pm._initMarkers());var w=this.getAngle()-a;w=w<0?w+360:w,this._startAngle=a,this._fireRotation(this._layer,w,d,this._layer),this._fireRotation(this._map||this._layer._map,w,d,this._layer),delete this._startAngle,this._fireChange(this._layer.getLatLngs(),"Rotation")},rotateLayerToAngle:function(r){var a=r-this.getAngle();this.rotateLayer(a)},getAngle:function(){return this._angle||0},setInitAngle:function(r){this._setAngle(r)}};const Or=Tr,Be=L.Class.extend({includes:[Xr,T,Or,Et],options:{snappable:!0,snapDistance:20,allowSelfIntersection:!0,allowSelfIntersectionEdit:!1,preventMarkerRemoval:!1,removeLayerBelowMinVertexCount:!0,limitMarkersToCount:-1,hideMiddleMarkers:!1,snapSegment:!0,syncLayersOnDrag:!1,draggable:!0,allowEditing:!0,allowRemoval:!0,allowCutting:!0,allowRotation:!0,addVertexOn:"click",removeVertexOn:"contextmenu",removeVertexValidation:void 0,addVertexValidation:void 0,moveVertexValidation:void 0},setOptions:function(r){L.Util.setOptions(this,r)},getOptions:function(){return this.options},applyOptions:function(){},isPolygon:function(){return this._layer instanceof L.Polygon},getShape:function(){return this._shape},_setPane:function(r,a){a==="layerPane"?r.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.layerPane||"overlayPane":a==="vertexPane"?r.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.vertexPane||"markerPane":a==="markerPane"&&(r.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.markerPane||"markerPane")},remove:function(){(this._map||this._layer._map).pm.removeLayer({target:this._layer})},_vertexValidation:function(r,a){var d=a.target,_={layer:this._layer,marker:d,event:a},w="";return r==="move"?w="moveVertexValidation":r==="add"?w="addVertexValidation":r==="remove"&&(w="removeVertexValidation"),this.options[w]&&typeof this.options[w]=="function"&&!this.options[w](_)?(r==="move"&&(d._cancelDragEventChain=d.getLatLng()),!1):(d._cancelDragEventChain=null,!0)},_vertexValidationDrag:function(r){return!r._cancelDragEventChain||(r._latlng=r._cancelDragEventChain,r.update(),!1)},_vertexValidationDragEnd:function(r){return!r._cancelDragEventChain||(r._cancelDragEventChain=null,!1)}});function Dn(r){return function(a){if(Array.isArray(a))return Rr(a)}(r)||function(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}(r)||function(a,d){if(a){if(typeof a=="string")return Rr(a,d);var _=Object.prototype.toString.call(a).slice(8,-1);if(_==="Object"&&a.constructor&&(_=a.constructor.name),_==="Map"||_==="Set")return Array.from(a);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return Rr(a,d)}}(r)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Rr(r,a){(a==null||a>r.length)&&(a=r.length);for(var d=0,_=new Array(a);d0&&a._getMap()&&a._getMap().pm.globalEditModeEnabled()&&a.enabled()&&a.enable(a.getOptions())}},100,this),this),this._layerGroup.on("layerremove",function(d){a._removeLayerFromGroup(d.target)},this),this._layerGroup.on("layerremove",L.Util.throttle(function(d){d.target._pmTempLayer||(a._layers=a.getLayers())},100,this),this)},enable:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];a.length===0&&(this._layers=this.getLayers()),this._options=r,this._layers.forEach(function(d){d instanceof L.LayerGroup?a.indexOf(d._leaflet_id)===-1&&(a.push(d._leaflet_id),d.pm.enable(r,a)):d.pm.enable(r)})},disable:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];r.length===0&&(this._layers=this.getLayers()),this._layers.forEach(function(a){a instanceof L.LayerGroup?r.indexOf(a._leaflet_id)===-1&&(r.push(a._leaflet_id),a.pm.disable(r)):a.pm.disable()})},enabled:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];r.length===0&&(this._layers=this.getLayers());var a=this._layers.find(function(d){return d instanceof L.LayerGroup?r.indexOf(d._leaflet_id)===-1&&(r.push(d._leaflet_id),d.pm.enabled(r)):d.pm.enabled()});return!!a},toggleEdit:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];a.length===0&&(this._layers=this.getLayers()),this._options=r,this._layers.forEach(function(d){d instanceof L.LayerGroup?a.indexOf(d._leaflet_id)===-1&&(a.push(d._leaflet_id),d.pm.toggleEdit(r,a)):d.pm.toggleEdit(r)})},_initLayer:function(r){var a=L.Util.stamp(this._layerGroup);r.pm._parentLayerGroup||(r.pm._parentLayerGroup={}),r.pm._parentLayerGroup[a]=this._layerGroup},_removeLayerFromGroup:function(r){if(r.pm&&r.pm._layerGroup){var a=L.Util.stamp(this._layerGroup);delete r.pm._layerGroup[a]}},dragging:function(){if(this._layers=this.getLayers(),this._layers){var r=this._layers.find(function(a){return a.pm.dragging()});return!!r}return!1},getOptions:function(){return this.options},_getMap:function(){var r;return this._map||((r=this._layers.find(function(a){return!!a._map}))===null||r===void 0?void 0:r._map)||null},getLayers:function(){var r=arguments.length>0&&arguments[0]!==void 0&&arguments[0],a=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],d=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],w=[];return r?this._layerGroup.getLayers().forEach(function(A){w.push(A),A instanceof L.LayerGroup&&_.indexOf(A._leaflet_id)===-1&&(_.push(A._leaflet_id),w=w.concat(A.pm.getLayers(!0,!0,!0,_)))}):w=this._layerGroup.getLayers(),d&&(w=w.filter(function(A){return!(A instanceof L.LayerGroup)})),a&&(w=(w=(w=w.filter(function(A){return!!A.pm})).filter(function(A){return!A._pmTempLayer})).filter(function(A){return!L.PM.optIn&&!A.options.pmIgnore||L.PM.optIn&&A.options.pmIgnore===!1})),w},setOptions:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];a.length===0&&(this._layers=this.getLayers()),this.options=r,this._layers.forEach(function(d){d.pm&&(d instanceof L.LayerGroup?a.indexOf(d._leaflet_id)===-1&&(a.push(d._leaflet_id),d.pm.setOptions(r,a)):d.pm.setOptions(r))})}}),Be.Marker=Be.extend({_shape:"Marker",initialize:function(r){this._layer=r,this._enabled=!1,this._layer.on("dragend",this._onDragEnd,this)},enable:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{draggable:!0};L.Util.setOptions(this,r),this.options.allowEditing&&this._layer._map?(this._map=this._layer._map,this.enabled()&&this.disable(),this.applyOptions(),this._layer.on("remove",this.disable,this),this._enabled=!0,this._fireEnable()):this.disable()},disable:function(){this.enabled()&&(this.disableLayerDrag(),this._layer.off("remove",this.disable,this),this._layer.off("contextmenu",this._removeMarker,this),this._layerEdited&&this._fireUpdate(),this._layerEdited=!1,this._fireDisable(),this._enabled=!1)},enabled:function(){return this._enabled},toggleEdit:function(r){this.enabled()?this.disable():this.enable(r)},applyOptions:function(){this.options.snappable?this._initSnappableMarkers():this._disableSnapping(),this.options.draggable?this.enableLayerDrag():this.disableLayerDrag(),this.options.preventMarkerRemoval||this._layer.on("contextmenu",this._removeMarker,this)},_removeMarker:function(r){var a=r.target;a.remove(),this._fireRemove(a),this._fireRemove(this._map,a)},_onDragEnd:function(){this._fireEdit(),this._layerEdited=!0},_initSnappableMarkers:function(){var r=this._layer;this.options.snapDistance=this.options.snapDistance||30,this.options.snapSegment=this.options.snapSegment===void 0||this.options.snapSegment,r.off("pm:drag",this._handleSnapping,this),r.on("pm:drag",this._handleSnapping,this),r.off("pm:dragend",this._cleanupSnapping,this),r.on("pm:dragend",this._cleanupSnapping,this),r.off("pm:dragstart",this._unsnap,this),r.on("pm:dragstart",this._unsnap,this)},_disableSnapping:function(){var r=this._layer;r.off("pm:drag",this._handleSnapping,this),r.off("pm:dragend",this._cleanupSnapping,this),r.off("pm:dragstart",this._unsnap,this)}});const zi={filterMarkerGroup:function(){this.markerCache=[],this.createCache(),this._layer.on("pm:edit",this.createCache,this),this.applyLimitFilters({}),this.throttledApplyLimitFilters||(this.throttledApplyLimitFilters=L.Util.throttle(this.applyLimitFilters,100,this)),this._layer.on("pm:disable",this._removeMarkerLimitEvents,this),this.options.limitMarkersToCount>-1&&(this._layer.on("pm:vertexremoved",this._initMarkers,this),this._map.on("mousemove",this.throttledApplyLimitFilters,this))},_removeMarkerLimitEvents:function(){this._map.off("mousemove",this.throttledApplyLimitFilters,this),this._layer.off("pm:edit",this.createCache,this),this._layer.off("pm:disable",this._removeMarkerLimitEvents,this),this._layer.off("pm:vertexremoved",this._initMarkers,this)},createCache:function(){var r=[].concat(Dn(this._markerGroup.getLayers()),Dn(this.markerCache));this.markerCache=r.filter(function(a,d,_){return _.indexOf(a)===d})},renderLimits:function(r){var a=this;this.markerCache.forEach(function(d){r.includes(d)?a._markerGroup.addLayer(d):a._markerGroup.removeLayer(d)})},applyLimitFilters:function(r){var a=r.latlng,d=a===void 0?{lat:0,lng:0}:a;if(!this._preventRenderMarkers){var _=Dn(this._filterClosestMarkers(d));this.renderLimits(_)}},_filterClosestMarkers:function(r){var a=Dn(this.markerCache),d=this.options.limitMarkersToCount;return d===-1?a:(a.sort(function(_,w){return _._latlng.distanceTo(r)-w._latlng.distanceTo(r)}),a.filter(function(_,w){return!(d>-1)||wr.length)&&(a=r.length);for(var d=0,_=new Array(a);dr.length)&&(a=r.length);for(var d=0,_=new Array(a);d1?wt()(w,F):w,X=j.length>1?wt()(this._markers,F):this._markers;G.splice($+1,0,_),X.splice($+1,0,r),this._layer.setLatLngs(w),this.options.hideMiddleMarkers!==!0&&(this._createMiddleMarker(a,r),this._createMiddleMarker(r,d)),this._fireEdit(),this._layerEdited=!0,this._fireChange(this._layer.getLatLngs(),"Edit"),this._fireVertexAdded(r,L.PM.Utils.findDeepMarkerIndex(this._markers,r).indexPath,_),this.options.snappable&&this._initSnappableMarkers()},hasSelfIntersection:function(){return ue(this._layer.toGeoJSON(15)).features.length>0},_handleSelfIntersectionOnVertexRemoval:function(){this._handleLayerStyle(!0),this.hasSelfIntersection()&&(this._layer.setLatLngs(this._coordsBeforeEdit),this._coordsBeforeEdit=null,this._initMarkers())},_handleLayerStyle:function(r){var a=this._layer;if(this.hasSelfIntersection()){if(!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this._updateDisabledMarkerStyle(this._markers,!0),this.isRed)return;r?this._flashLayer():(a.setStyle({color:"#f00000ff"}),this.isRed=!0),this._fireIntersect(ue(this._layer.toGeoJSON(15)))}else a.setStyle({color:this.cachedColor}),this.isRed=!1,!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this._updateDisabledMarkerStyle(this._markers,!1)},_flashLayer:function(){var r=this;this.cachedColor||(this.cachedColor=this._layer.options.color),this._layer.setStyle({color:"#f00000ff"}),this.isRed=!0,window.setTimeout(function(){r._layer.setStyle({color:r.cachedColor}),r.isRed=!1},200)},_updateDisabledMarkerStyle:function(r,a){var d=this;r.forEach(function(_){Array.isArray(_)?d._updateDisabledMarkerStyle(_,a):_._icon&&(a&&!d._checkMarkerAllowedToDrag(_)?L.DomUtil.addClass(_._icon,"vertexmarker-disabled"):L.DomUtil.removeClass(_._icon,"vertexmarker-disabled"))})},_removeMarker:function(r){var a=r.target;if(this._vertexValidation("remove",r)){this.options.allowSelfIntersection||(this._coordsBeforeEdit=Pt(this._layer,this._layer.getLatLngs()));var d=this._layer.getLatLngs(),_=L.PM.Utils.findDeepMarkerIndex(this._markers,a),w=_.indexPath,A=_.index,j=_.parentPath;if(w){var $=w.length>1?wt()(d,j):d,F=w.length>1?wt()(this._markers,j):this._markers;if(this.options.removeLayerBelowMinVertexCount||!($.length<=2||this.isPolygon()&&$.length<=3)){$.splice(A,1),this._layer.setLatLngs(d),this.isPolygon()&&$.length<=2&&$.splice(0,$.length);var G=!1;if($.length<=1&&($.splice(0,$.length),j.length>1&&w.length>1&&(d=Me(d)),this._layer.setLatLngs(d),this._initMarkers(),G=!0),$t(d)||this._layer.remove(),d=Me(d),this._layer.setLatLngs(d),this._markers=Me(this._markers),!G&&(F=w.length>1?wt()(this._markers,j):this._markers,a._middleMarkerPrev&&this._markerGroup.removeLayer(a._middleMarkerPrev),a._middleMarkerNext&&this._markerGroup.removeLayer(a._middleMarkerNext),this._markerGroup.removeLayer(a),F)){var X,pt;if(this.isPolygon()?(X=(A+1)%F.length,pt=(A+(F.length-1))%F.length):(pt=A-1<0?void 0:A-1,X=A+1>=F.length?void 0:A+1),X!==pt){var ut=F[pt],Mt=F[X];this.options.hideMiddleMarkers!==!0&&this._createMiddleMarker(ut,Mt)}F.splice(A,1)}this._fireEdit(),this._layerEdited=!0,this._fireVertexRemoved(a,w),this._fireChange(this._layer.getLatLngs(),"Edit")}else this._flashLayer()}}},updatePolygonCoordsFromMarkerDrag:function(r){var a=this._layer.getLatLngs(),d=r.getLatLng(),_=L.PM.Utils.findDeepMarkerIndex(this._markers,r),w=_.indexPath,A=_.index,j=_.parentPath;(w.length>1?wt()(a,j):a).splice(A,1,d),this._layer.setLatLngs(a)},_getNeighborMarkers:function(r){var a=L.PM.Utils.findDeepMarkerIndex(this._markers,r),d=a.indexPath,_=a.index,w=a.parentPath,A=d.length>1?wt()(this._markers,w):this._markers,j=(_+1)%A.length;return{prevMarker:A[(_+(A.length-1))%A.length],nextMarker:A[j]}},_checkMarkerAllowedToDrag:function(r){var a=this._getNeighborMarkers(r),d=a.prevMarker,_=a.nextMarker,w=L.polyline([d.getLatLng(),r.getLatLng()]),A=L.polyline([r.getLatLng(),_.getLatLng()]),j=An(this._layer.toGeoJSON(15),w.toGeoJSON(15)).features.length,$=An(this._layer.toGeoJSON(15),A.toGeoJSON(15)).features.length;return r.getLatLng()===this._markers[0][0].getLatLng()?$+=1:r.getLatLng()===this._markers[0][this._markers[0].length-1].getLatLng()&&(j+=1),!(j<=2&&$<=2)},_onMarkerDragStart:function(r){var a=r.target;if(this.cachedColor||(this.cachedColor=this._layer.options.color),this._vertexValidation("move",r)){var d=L.PM.Utils.findDeepMarkerIndex(this._markers,a).indexPath;this._fireMarkerDragStart(r,d),this.options.allowSelfIntersection||(this._coordsBeforeEdit=Pt(this._layer,this._layer.getLatLngs())),!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this.hasSelfIntersection()?this._markerAllowedToDrag=this._checkMarkerAllowedToDrag(a):this._markerAllowedToDrag=null}},_onMarkerDrag:function(r){var a=r.target;if(this._vertexValidationDrag(a)){var d=L.PM.Utils.findDeepMarkerIndex(this._markers,a),_=d.indexPath,w=d.index,A=d.parentPath;if(_){if(!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this.hasSelfIntersection()&&this._markerAllowedToDrag===!1)return this._layer.setLatLngs(this._coordsBeforeEdit),this._initMarkers(),void this._handleLayerStyle();this.updatePolygonCoordsFromMarkerDrag(a);var j=_.length>1?wt()(this._markers,A):this._markers,$=(w+1)%j.length,F=(w+(j.length-1))%j.length,G=a.getLatLng(),X=j[F].getLatLng(),pt=j[$].getLatLng();if(a._middleMarkerNext){var ut=L.PM.Utils.calcMiddleLatLng(this._map,G,pt);a._middleMarkerNext.setLatLng(ut)}if(a._middleMarkerPrev){var Mt=L.PM.Utils.calcMiddleLatLng(this._map,G,X);a._middleMarkerPrev.setLatLng(Mt)}this.options.allowSelfIntersection||this._handleLayerStyle(),this._fireMarkerDrag(r,_),this._fireChange(this._layer.getLatLngs(),"Edit")}}},_onMarkerDragEnd:function(r){var a=r.target;if(this._vertexValidationDragEnd(a)){var d=L.PM.Utils.findDeepMarkerIndex(this._markers,a).indexPath,_=this.hasSelfIntersection();_&&this.options.allowSelfIntersectionEdit&&this._markerAllowedToDrag&&(_=!1);var w=!this.options.allowSelfIntersection&&_;if(this._fireMarkerDragEnd(r,d,w),w)return this._layer.setLatLngs(this._coordsBeforeEdit),this._coordsBeforeEdit=null,this._initMarkers(),this.options.snappable&&this._initSnappableMarkers(),this._handleLayerStyle(),void this._fireLayerReset(r,d);!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this._handleLayerStyle(),this._fireEdit(),this._layerEdited=!0,this._fireChange(this._layer.getLatLngs(),"Edit")}},_onVertexClick:function(r){var a=r.target;if(!a._dragging){var d=L.PM.Utils.findDeepMarkerIndex(this._markers,a).indexPath;this._fireVertexClick(r,d)}}}),Be.Polygon=Be.Line.extend({_shape:"Polygon",_checkMarkerAllowedToDrag:function(r){var a=this._getNeighborMarkers(r),d=a.prevMarker,_=a.nextMarker,w=L.polyline([d.getLatLng(),r.getLatLng()]),A=L.polyline([r.getLatLng(),_.getLatLng()]),j=An(this._layer.toGeoJSON(15),w.toGeoJSON(15)).features.length,$=An(this._layer.toGeoJSON(15),A.toGeoJSON(15)).features.length;return!(j<=2&&$<=2)}}),Be.Rectangle=Be.Polygon.extend({_shape:"Rectangle",_initMarkers:function(){var r=this,a=this._map,d=this._findCorners();this._markerGroup&&this._markerGroup.clearLayers(),this._markerGroup=new L.FeatureGroup,this._markerGroup._pmTempLayer=!0,a.addLayer(this._markerGroup),this._markers=[],this._markers[0]=d.map(this._createMarker,this);var _=Qr(this._markers,1);this._cornerMarkers=_[0],this._layer.getLatLngs()[0].forEach(function(w,A){var j=r._cornerMarkers.find(function($){return $._index===A});j&&j.setLatLng(w)})},applyOptions:function(){this.options.snappable?this._initSnappableMarkers():this._disableSnapping(),this._addMarkerEvents()},_createMarker:function(r,a){var d=new L.Marker(r,{draggable:!0,icon:L.divIcon({className:"marker-icon"})});return this._setPane(d,"vertexPane"),d._origLatLng=r,d._index=a,d._pmTempLayer=!0,this._markerGroup.addLayer(d),d},_addMarkerEvents:function(){var r=this;this._markers[0].forEach(function(a){a.on("dragstart",r._onMarkerDragStart,r),a.on("drag",r._onMarkerDrag,r),a.on("dragend",r._onMarkerDragEnd,r),r.options.preventMarkerRemoval||a.on("contextmenu",r._removeMarker,r)})},_removeMarker:function(){return null},_onMarkerDragStart:function(r){if(this._vertexValidation("move",r)){var a=r.target,d=this._cornerMarkers;a._oppositeCornerLatLng=d.find(function(_){return _._index===(a._index+2)%4}).getLatLng(),a._snapped=!1,this._fireMarkerDragStart(r)}},_onMarkerDrag:function(r){var a=r.target;this._vertexValidationDrag(a)&&a._index!==void 0&&(this._adjustRectangleForMarkerMove(a),this._fireMarkerDrag(r),this._fireChange(this._layer.getLatLngs(),"Edit"))},_onMarkerDragEnd:function(r){var a=r.target;this._vertexValidationDragEnd(a)&&(this._cornerMarkers.forEach(function(d){delete d._oppositeCornerLatLng}),this._fireMarkerDragEnd(r),this._fireEdit(),this._layerEdited=!0,this._fireChange(this._layer.getLatLngs(),"Edit"))},_adjustRectangleForMarkerMove:function(r){L.extend(r._origLatLng,r._latlng);var a=L.PM.Utils._getRotatedRectangle(r.getLatLng(),r._oppositeCornerLatLng,this._angle||0,this._map);this._layer.setLatLngs(a),this._adjustAllMarkers(),this._layer.redraw()},_adjustAllMarkers:function(){var r=this,a=this._layer.getLatLngs()[0];a&&a.length!==4&&a.length>0?(a.forEach(function(d,_){r._cornerMarkers[_].setLatLng(d)}),this._cornerMarkers.slice(a.length).forEach(function(d){d.setLatLng(a[0])})):a&&a.length?this._cornerMarkers.forEach(function(d){d.setLatLng(a[d._index])}):console.error("The layer has no LatLngs")},_findCorners:function(){var r=this._layer.getLatLngs()[0];return L.PM.Utils._getRotatedRectangle(r[0],r[2],this._angle||0,this._map)}}),Be.Circle=Be.extend({_shape:"Circle",initialize:function(r){this._layer=r,this._enabled=!1,this._updateHiddenPolyCircle()},enable:function(r){L.Util.setOptions(this,r),this._map=this._layer._map,this.options.allowEditing?(this.enabled()||this.disable(),this._enabled=!0,this._initMarkers(),this.applyOptions(),this._layer.on("remove",this.disable,this),this._updateHiddenPolyCircle(),this._fireEnable()):this.disable()},disable:function(){if(this.enabled()&&!this._dragging){this._centerMarker.off("dragstart",this._onCircleDragStart,this),this._centerMarker.off("drag",this._onCircleDrag,this),this._centerMarker.off("dragend",this._onCircleDragEnd,this),this._outerMarker.off("drag",this._handleOuterMarkerSnapping,this),this._layer.off("remove",this.disable,this),this._enabled=!1,this._helperLayers.clearLayers();var r=this._layer._path?this._layer._path:this._layer._renderer._container;L.DomUtil.removeClass(r,"leaflet-pm-draggable"),this._layerEdited&&this._fireUpdate(),this._layerEdited=!1,this._fireDisable()}},enabled:function(){return this._enabled},toggleEdit:function(r){this.enabled()?this.disable():this.enable(r)},_initMarkers:function(){var r=this._map;this._helperLayers&&this._helperLayers.clearLayers(),this._helperLayers=new L.FeatureGroup,this._helperLayers._pmTempLayer=!0,this._helperLayers.addTo(r);var a=this._layer.getLatLng(),d=this._layer._radius,_=this._getLatLngOnCircle(a,d);this._centerMarker=this._createCenterMarker(a),this._outerMarker=this._createOuterMarker(_),this._markers=[this._centerMarker,this._outerMarker],this._createHintLine(this._centerMarker,this._outerMarker)},applyOptions:function(){this.options.snappable?(this._initSnappableMarkers(),this._outerMarker.on("drag",this._handleOuterMarkerSnapping,this),this._outerMarker.on("move",this._syncHintLine,this),this._outerMarker.on("move",this._syncCircleRadius,this),this._centerMarker.on("move",this._moveCircle,this)):this._disableSnapping()},_createHintLine:function(r,a){var d=r.getLatLng(),_=a.getLatLng();this._hintline=L.polyline([d,_],this.options.hintlineStyle),this._setPane(this._hintline,"layerPane"),this._hintline._pmTempLayer=!0,this._helperLayers.addLayer(this._hintline)},_createCenterMarker:function(r){var a=this._createMarker(r);return L.DomUtil.addClass(a._icon,"leaflet-pm-draggable"),a.on("drag",this._moveCircle,this),a.on("dragstart",this._onCircleDragStart,this),a.on("drag",this._onCircleDrag,this),a.on("dragend",this._onCircleDragEnd,this),a},_createOuterMarker:function(r){var a=this._createMarker(r);return a.on("drag",this._resizeCircle,this),a},_createMarker:function(r){var a=new L.Marker(r,{draggable:!0,icon:L.divIcon({className:"marker-icon"})});return this._setPane(a,"vertexPane"),a._origLatLng=r,a._pmTempLayer=!0,a.on("dragstart",this._onMarkerDragStart,this),a.on("drag",this._onMarkerDrag,this),a.on("dragend",this._onMarkerDragEnd,this),this._helperLayers.addLayer(a),a},_resizeCircle:function(){this._outerMarker.setLatLng(this._getNewDestinationOfOuterMarker()),this._syncHintLine(),this._syncCircleRadius()},_moveCircle:function(r){if(!r.target._cancelDragEventChain){var a=r.latlng;this._layer.setLatLng(a);var d=this._layer._radius,_=this._getLatLngOnCircle(a,d);this._outerMarker._latlng=_,this._outerMarker.update(),this._syncHintLine(),this._updateHiddenPolyCircle(),this._fireCenterPlaced("Edit"),this._fireChange(this._layer.getLatLng(),"Edit")}},_syncCircleRadius:function(){var r=this._centerMarker.getLatLng(),a=this._outerMarker.getLatLng(),d=this._map.distance(r,a);this.options.minRadiusCircle&&dthis.options.maxRadiusCircle?this._layer.setRadius(this.options.maxRadiusCircle):this._layer.setRadius(d),this._updateHiddenPolyCircle(),this._fireChange(this._layer.getLatLng(),"Edit")},_syncHintLine:function(){var r=this._centerMarker.getLatLng(),a=this._outerMarker.getLatLng();this._hintline.setLatLngs([r,a])},_disableSnapping:function(){var r=this;this._markers.forEach(function(a){a.off("move",r._syncHintLine,r),a.off("move",r._syncCircleRadius,r),a.off("drag",r._handleSnapping,r),a.off("dragend",r._cleanupSnapping,r)}),this._layer.off("pm:dragstart",this._unsnap,this)},_onMarkerDragStart:function(r){this._vertexValidation("move",r)&&this._fireMarkerDragStart(r)},_onMarkerDrag:function(r){var a=r.target;this._vertexValidationDrag(a)&&this._fireMarkerDrag(r)},_onMarkerDragEnd:function(r){var a=r.target;this._vertexValidationDragEnd(a)&&(this._fireEdit(),this._layerEdited=!0,this._fireMarkerDragEnd(r))},_onCircleDragStart:function(r){this._vertexValidationDrag(r.target)?(delete this._vertexValidationReset,this._fireDragStart()):this._vertexValidationReset=!0},_onCircleDrag:function(r){this._vertexValidationReset||this._fireDrag(r)},_onCircleDragEnd:function(){this._vertexValidationReset?delete this._vertexValidationReset:this._fireDragEnd()},_updateHiddenPolyCircle:function(){var r=this._map&&this._map.pm._isCRSSimple();this._hiddenPolyCircle?this._hiddenPolyCircle.setLatLngs(L.PM.Utils.circleToPolygon(this._layer,200,!r).getLatLngs()):this._hiddenPolyCircle=L.PM.Utils.circleToPolygon(this._layer,200,!r),this._hiddenPolyCircle._parentCopy||(this._hiddenPolyCircle._parentCopy=this._layer)},_getLatLngOnCircle:function(r,a){var d=this._map.project(r),_=L.point(d.x+a,d.y);return this._map.unproject(_)},_getNewDestinationOfOuterMarker:function(){var r=this._centerMarker.getLatLng(),a=this._outerMarker.getLatLng(),d=this._map.distance(r,a);return this.options.minRadiusCircle&&dthis.options.maxRadiusCircle&&(a=Nt(this._map,r,a,this.options.maxRadiusCircle)),a},_handleOuterMarkerSnapping:function(){if(this._outerMarker._snapped){var r=this._centerMarker.getLatLng(),a=this._outerMarker.getLatLng(),d=this._map.distance(r,a);(this.options.minRadiusCircle&&dthis.options.maxRadiusCircle)&&this._outerMarker.setLatLng(this._outerMarker._orgLatLng)}this._outerMarker.setLatLng(this._getNewDestinationOfOuterMarker())}}),Be.CircleMarker=Be.extend({_shape:"CircleMarker",initialize:function(r){this._layer=r,this._enabled=!1,this._updateHiddenPolyCircle()},enable:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{draggable:!0,snappable:!0};L.Util.setOptions(this,r),this.options.allowEditing&&this._layer._map?(this._map=this._layer._map,this.enabled()&&this.disable(),this.applyOptions(),this._layer.on("remove",this.disable,this),this._enabled=!0,this._layer.on("pm:dragstart",this._onDragStart,this),this._layer.on("pm:drag",this._onMarkerDrag,this),this._layer.on("pm:dragend",this._onMarkerDragEnd,this),this._updateHiddenPolyCircle(),this._fireEnable()):this.disable()},disable:function(){this._dragging||(this._helperLayers&&this._helperLayers.clearLayers(),this._map||(this._map=this._layer._map),this._map||(this.options.editable?(this._map.off("move",this._syncMarkers,this),this._outerMarker&&this._outerMarker.on("drag",this._handleOuterMarkerSnapping,this)):this._map.off("move",this._updateHiddenPolyCircle,this)),this.disableLayerDrag(),this._layer.off("contextmenu",this._removeMarker,this),this._layer.off("remove",this.disable,this),this.enabled()&&(this._layerEdited&&this._fireUpdate(),this._layerEdited=!1,this._fireDisable()),this._enabled=!1)},enabled:function(){return this._enabled},toggleEdit:function(r){this.enabled()?this.disable():this.enable(r)},applyOptions:function(){!this.options.editable&&this.options.draggable?this.enableLayerDrag():this.disableLayerDrag(),this.options.editable?(this._initMarkers(),this._map.on("move",this._syncMarkers,this)):this._map.on("move",this._updateHiddenPolyCircle,this),this.options.snappable?this.options.editable?(this._initSnappableMarkers(),this._centerMarker.on("drag",this._moveCircle,this),this.options.editable&&this._outerMarker.on("drag",this._handleOuterMarkerSnapping,this),this._outerMarker.on("move",this._syncHintLine,this),this._outerMarker.on("move",this._syncCircleRadius,this)):this._initSnappableMarkersDrag():this.options.editable?this._disableSnapping():this._disableSnappingDrag(),this.options.preventMarkerRemoval||this._layer.on("contextmenu",this._removeMarker,this)},_initMarkers:function(){var r=this._map;this._helperLayers&&this._helperLayers.clearLayers(),this._helperLayers=new L.FeatureGroup,this._helperLayers._pmTempLayer=!0,this._helperLayers.addTo(r);var a=this._layer.getLatLng(),d=this._layer._radius,_=this._getLatLngOnCircle(a,d);this._centerMarker=this._createCenterMarker(a),this._outerMarker=this._createOuterMarker(_),this._markers=[this._centerMarker,this._outerMarker],this._createHintLine(this._centerMarker,this._outerMarker)},_getLatLngOnCircle:function(r,a){var d=this._map.project(r),_=L.point(d.x+a,d.y);return this._map.unproject(_)},_createHintLine:function(r,a){var d=r.getLatLng(),_=a.getLatLng();this._hintline=L.polyline([d,_],this.options.hintlineStyle),this._setPane(this._hintline,"layerPane"),this._hintline._pmTempLayer=!0,this._helperLayers.addLayer(this._hintline)},_createCenterMarker:function(r){var a=this._createMarker(r);return this.options.draggable?L.DomUtil.addClass(a._icon,"leaflet-pm-draggable"):a.dragging.disable(),a},_createOuterMarker:function(r){var a=this._createMarker(r);return a.on("drag",this._resizeCircle,this),a},_createMarker:function(r){var a=new L.Marker(r,{draggable:!0,icon:L.divIcon({className:"marker-icon"})});return this._setPane(a,"vertexPane"),a._origLatLng=r,a._pmTempLayer=!0,a.on("dragstart",this._onMarkerDragStart,this),a.on("drag",this._onMarkerDrag,this),a.on("dragend",this._onMarkerDragEnd,this),this._helperLayers.addLayer(a),a},_moveCircle:function(){var r=this._centerMarker.getLatLng();this._layer.setLatLng(r);var a=this._layer._radius,d=this._getLatLngOnCircle(r,a);this._outerMarker._latlng=d,this._outerMarker.update(),this._syncHintLine(),this._updateHiddenPolyCircle(),this._fireCenterPlaced("Edit"),this._fireChange(this._layer.getLatLng(),"Edit")},_syncMarkers:function(){var r=this._layer.getLatLng(),a=this._layer._radius,d=this._getLatLngOnCircle(r,a);this._outerMarker.setLatLng(d),this._centerMarker.setLatLng(r),this._syncHintLine(),this._updateHiddenPolyCircle()},_resizeCircle:function(){this._outerMarker.setLatLng(this._getNewDestinationOfOuterMarker()),this._syncHintLine(),this._syncCircleRadius()},_syncCircleRadius:function(){var r=this._centerMarker.getLatLng(),a=this._outerMarker.getLatLng(),d=this._map.project(r).distanceTo(this._map.project(a));this.options.minRadiusCircleMarker&&dthis.options.maxRadiusCircleMarker?this._layer.setRadius(this.options.maxRadiusCircleMarker):this._layer.setRadius(d),this._updateHiddenPolyCircle(),this._fireChange(this._layer.getLatLng(),"Edit")},_syncHintLine:function(){var r=this._centerMarker.getLatLng(),a=this._outerMarker.getLatLng();this._hintline.setLatLngs([r,a])},_removeMarker:function(){this.options.editable&&this.disable(),this._layer.remove(),this._fireRemove(this._layer),this._fireRemove(this._map,this._layer)},_onDragStart:function(){this._map.pm.Draw.CircleMarker._layerIsDragging=!0},_onMarkerDragStart:function(r){this._vertexValidation("move",r)&&this._fireMarkerDragStart(r)},_onMarkerDrag:function(r){var a=r.target;a instanceof L.Marker&&!this._vertexValidationDrag(a)||this._fireMarkerDrag(r)},_onMarkerDragEnd:function(r){this._map.pm.Draw.CircleMarker._layerIsDragging=!1;var a=r.target;this._vertexValidationDragEnd(a)&&(this.options.editable&&(this._fireEdit(),this._layerEdited=!0),this._fireMarkerDragEnd(r))},_initSnappableMarkersDrag:function(){var r=this._layer;this.options.snapDistance=this.options.snapDistance||30,this.options.snapSegment=this.options.snapSegment===void 0||this.options.snapSegment,r.off("pm:drag",this._handleSnapping,this),r.on("pm:drag",this._handleSnapping,this),r.off("pm:dragend",this._cleanupSnapping,this),r.on("pm:dragend",this._cleanupSnapping,this),r.off("pm:dragstart",this._unsnap,this),r.on("pm:dragstart",this._unsnap,this)},_disableSnappingDrag:function(){var r=this._layer;r.off("pm:drag",this._handleSnapping,this),r.off("pm:dragend",this._cleanupSnapping,this),r.off("pm:dragstart",this._unsnap,this)},_updateHiddenPolyCircle:function(){var r=this._layer._map||this._map;if(r){var a=L.PM.Utils.pxRadiusToMeterRadius(this._layer.getRadius(),r,this._layer.getLatLng()),d=L.circle(this._layer.getLatLng(),this._layer.options);d.setRadius(a);var _=r&&r.pm._isCRSSimple();this._hiddenPolyCircle?this._hiddenPolyCircle.setLatLngs(L.PM.Utils.circleToPolygon(d,200,!_).getLatLngs()):this._hiddenPolyCircle=L.PM.Utils.circleToPolygon(d,200,!_),this._hiddenPolyCircle._parentCopy||(this._hiddenPolyCircle._parentCopy=this._layer)}},_getNewDestinationOfOuterMarker:function(){var r=this._centerMarker.getLatLng(),a=this._outerMarker.getLatLng(),d=this._map.project(r).distanceTo(this._map.project(a));return this.options.minRadiusCircleMarker&&dthis.options.maxRadiusCircleMarker&&(a=Nt(this._map,r,a,L.PM.Utils.pxRadiusToMeterRadius(this.options.maxRadiusCircleMarker,this._map,r))),a},_handleOuterMarkerSnapping:function(){if(this._outerMarker._snapped){var r=this._centerMarker.getLatLng(),a=this._outerMarker.getLatLng(),d=this._map.project(r).distanceTo(this._map.project(a));(this.options.minRadiusCircleMarker&&dthis.options.maxRadiusCircleMarker)&&this._outerMarker.setLatLng(this._outerMarker._orgLatLng)}this._outerMarker.setLatLng(this._getNewDestinationOfOuterMarker())}}),Be.ImageOverlay=Be.extend({_shape:"ImageOverlay",initialize:function(r){this._layer=r,this._enabled=!1},toggleEdit:function(r){this.enabled()?this.disable():this.enable(r)},enabled:function(){return this._enabled},enable:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{draggable:!0,snappable:!0};L.Util.setOptions(this,r),this._map=this._layer._map,this._map&&(this.options.allowEditing?(this.enabled()||this.disable(),this.enableLayerDrag(),this._layer.on("remove",this.disable,this),this._enabled=!0,this._otherSnapLayers=this._findCorners(),this._fireEnable()):this.disable())},disable:function(){this._dragging||(this._map||(this._map=this._layer._map),this.disableLayerDrag(),this._layer.off("remove",this.disable,this),this.enabled()||(this._layerEdited&&this._fireUpdate(),this._layerEdited=!1,this._fireDisable()),this._enabled=!1)},_findCorners:function(){var r=this._layer.getBounds();return[r.getNorthWest(),r.getNorthEast(),r.getSouthEast(),r.getSouthWest()]}}),Be.Text=Be.extend({_shape:"Text",initialize:function(r){this._layer=r,this._enabled=!1},enable:function(r){L.Util.setOptions(this,r),this.textArea&&(this.options.allowEditing&&this._layer._map?(this._map=this._layer._map,this.enabled()&&this.disable(),this.applyOptions(),this._safeToCacheDragState=!0,this._focusChange(),this.textArea.readOnly=!1,this.textArea.classList.remove("pm-disabled"),this._layer.on("remove",this.disable,this),L.DomEvent.on(this.textArea,"input",this._autoResize,this),L.DomEvent.on(this.textArea,"focus",this._focusChange,this),L.DomEvent.on(this.textArea,"blur",this._focusChange,this),this._layer.on("dblclick",L.DomEvent.stop),L.DomEvent.off(this.textArea,"mousedown",this._preventTextSelection),this._enabled=!0,this._fireEnable()):this.disable())},disable:function(){if(this.enabled()){this._layer.off("remove",this.disable,this),L.DomEvent.off(this.textArea,"input",this._autoResize,this),L.DomEvent.off(this.textArea,"focus",this._focusChange,this),L.DomEvent.off(this.textArea,"blur",this._focusChange,this),L.DomEvent.off(document,"click",this._documentClick,this),this._focusChange(),this.textArea.readOnly=!0,this.textArea.classList.add("pm-disabled");var r=document.activeElement;this.textArea.focus(),this.textArea.selectionStart=0,this.textArea.selectionEnd=0,L.DomEvent.on(this.textArea,"mousedown",this._preventTextSelection),r.focus(),this._disableOnBlurActive=!1,this._layerEdited&&this._fireUpdate(),this._layerEdited=!1,this._fireDisable(),this._enabled=!1}},enabled:function(){return this._enabled},toggleEdit:function(r){this.enabled()?this.disable():this.enable(r)},applyOptions:function(){this.options.snappable?this._initSnappableMarkers():this._disableSnapping()},_initSnappableMarkers:function(){var r=this._layer;this.options.snapDistance=this.options.snapDistance||30,this.options.snapSegment=this.options.snapSegment===void 0||this.options.snapSegment,r.off("pm:drag",this._handleSnapping,this),r.on("pm:drag",this._handleSnapping,this),r.off("pm:dragend",this._cleanupSnapping,this),r.on("pm:dragend",this._cleanupSnapping,this),r.off("pm:dragstart",this._unsnap,this),r.on("pm:dragstart",this._unsnap,this)},_disableSnapping:function(){var r=this._layer;r.off("pm:drag",this._handleSnapping,this),r.off("pm:dragend",this._cleanupSnapping,this),r.off("pm:dragstart",this._unsnap,this)},_autoResize:function(){this.textArea.style.height="1px",this.textArea.style.width="1px";var r=this.textArea.scrollHeight>21?this.textArea.scrollHeight:21,a=this.textArea.scrollWidth>16?this.textArea.scrollWidth:16;this.textArea.style.height="".concat(r,"px"),this.textArea.style.width="".concat(a,"px"),this._layer.options.text=this.getText(),this._fireTextChange(this.getText())},_disableOnBlur:function(){var r=this;this._disableOnBlurActive=!0,setTimeout(function(){r.enabled()&&L.DomEvent.on(document,"click",r._documentClick,r)},100)},_documentClick:function(r){r.target!==this.textArea&&(this.disable(),!this.getText()&&this.options.removeIfEmpty&&this.remove())},_focusChange:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=this._hasFocus;this._hasFocus=r.type==="focus",!a!=!this._hasFocus&&(this._hasFocus?(this._applyFocus(),this._focusText=this.getText(),this._fireTextFocus()):(this._removeFocus(),this._fireTextBlur(),this._focusText!==this.getText()&&(this._fireEdit(),this._layerEdited=!0)))},_applyFocus:function(){this.textArea.classList.add("pm-hasfocus"),this._map.dragging&&(this._safeToCacheDragState&&(this._originalMapDragState=this._map.dragging._enabled,this._safeToCacheDragState=!1),this._map.dragging.disable())},_removeFocus:function(){this._map.dragging&&(this._originalMapDragState&&this._map.dragging.enable(),this._safeToCacheDragState=!0),this.textArea.classList.remove("pm-hasfocus")},focus:function(){if(!this.enabled())throw new TypeError("Layer is not enabled");this.textArea.focus()},blur:function(){if(!this.enabled())throw new TypeError("Layer is not enabled");this.textArea.blur(),this._disableOnBlurActive&&this.disable()},hasFocus:function(){return this._hasFocus},getElement:function(){return this.textArea},setText:function(r){this.textArea.value=r,this._autoResize()},getText:function(){return this.textArea.value},_initTextMarker:function(){if(this.textArea=L.PM.Draw.Text.prototype._createTextArea.call(this),this.options.className){var r,a=this.options.className.split(" ");(r=this.textArea.classList).add.apply(r,ji(a))}var d=L.PM.Draw.Text.prototype._createTextIcon.call(this,this.textArea);this._layer.setIcon(d),this._layer.once("add",this._createTextMarker,this)},_createTextMarker:function(){var r=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this._layer.off("add",this._createTextMarker,this),this._layer.getElement().tabIndex=-1,this.textArea.wrap="off",this.textArea.style.overflow="hidden",this.textArea.style.height=L.DomUtil.getStyle(this.textArea,"font-size"),this.textArea.style.width="1px",this._layer.options.text&&this.setText(this._layer.options.text),this._autoResize(),r===!0&&(this.enable(),this.focus(),this._disableOnBlur())},_preventTextSelection:function(r){r.preventDefault()}});var ei=function(r,a,d,_,w,A){this._matrix=[r,a,d,_,w,A]};ei.init=function(){return new L.PM.Matrix(1,0,0,1,0,0)},ei.prototype={transform:function(r){return this._transform(r.clone())},_transform:function(r){var a=this._matrix,d=r.x,_=r.y;return r.x=a[0]*d+a[1]*_+a[4],r.y=a[2]*d+a[3]*_+a[5],r},untransform:function(r){var a=this._matrix;return new L.Point((r.x/a[0]-a[4])/a[0],(r.y/a[2]-a[5])/a[2])},clone:function(){var r=this._matrix;return new L.PM.Matrix(r[0],r[1],r[2],r[3],r[4],r[5])},translate:function(r){return r===void 0?new L.Point(this._matrix[4],this._matrix[5]):(typeof r=="number"?(a=r,d=r):(a=r.x,d=r.y),this._add(1,0,0,1,a,d));var a,d},scale:function(r,a){return r===void 0?new L.Point(this._matrix[0],this._matrix[3]):(a=a||L.point(0,0),typeof r=="number"?(d=r,_=r):(d=r.x,_=r.y),this._add(d,0,0,_,a.x,a.y)._add(1,0,0,1,-a.x,-a.y));var d,_},rotate:function(r,a){var d=Math.cos(r),_=Math.sin(r);return a=a||new L.Point(0,0),this._add(d,_,-_,d,a.x,a.y)._add(1,0,0,1,-a.x,-a.y)},flip:function(){return this._matrix[1]*=-1,this._matrix[2]*=-1,this},_add:function(r,a,d,_,w,A){var j,$=[[],[],[]],F=this._matrix,G=[[F[0],F[2],F[4]],[F[1],F[3],F[5]],[0,0,1]],X=[[r,d,w],[a,_,A],[0,0,1]];r&&r instanceof L.PM.Matrix&&(X=[[(F=r._matrix)[0],F[2],F[4]],[F[1],F[3],F[5]],[0,0,1]]);for(var pt=0;pt<3;pt+=1)for(var ut=0;ut<3;ut+=1){j=0;for(var Mt=0;Mt<3;Mt+=1)j+=G[pt][Mt]*X[Mt][ut];$[pt][ut]=j}return this._matrix=[$[0][0],$[1][0],$[0][1],$[1][1],$[0][2],$[1][2]],this}};const Ni=ei;var $s={calcMiddleLatLng:function(r,a,d){var _=r.project(a),w=r.project(d);return r.unproject(_._add(w)._divideBy(2))},findLayers:function(r){var a=[];return r.eachLayer(function(d){(d instanceof L.Polyline||d instanceof L.Marker||d instanceof L.Circle||d instanceof L.CircleMarker||d instanceof L.ImageOverlay)&&a.push(d)}),a=(a=(a=a.filter(function(d){return!!d.pm})).filter(function(d){return!d._pmTempLayer})).filter(function(d){return!L.PM.optIn&&!d.options.pmIgnore||L.PM.optIn&&d.options.pmIgnore===!1})},circleToPolygon:function(r){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,d=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],_=r.getLatLng(),w=r.getRadius(),A=ae(_,w,a,0,d),j=[],$=0;$3&&arguments[3]!==void 0&&arguments[3];r.fire(a,d,_);var w=this.getAllParentGroups(r),A=w.groups;A.forEach(function(j){j.fire(a,d,_)})},getAllParentGroups:function(r){var a=[],d=[];return!r._pmLastGroupFetch||!r._pmLastGroupFetch.time||new Date().getTime()-r._pmLastGroupFetch.time>1e3?(function _(w){for(var A in w._eventParents)if(a.indexOf(A)===-1){a.push(A);var j=w._eventParents[A];d.push(j),_(j)}}(r),r._pmLastGroupFetch={time:new Date().getTime(),groups:d,groupIds:a},{groupIds:a,groups:d}):{groups:r._pmLastGroupFetch.groups,groupIds:r._pmLastGroupFetch.groupIds}},createGeodesicPolygon:ae,getTranslation:Bt,findDeepCoordIndex:function(r,a){var d,_=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],w=function j($){return function(F,G){var X=$.concat(G);if(_){if(F.lat&&F.lat===a.lat&&F.lng===a.lng)return d=X,!0}else if(F.lat&&L.latLng(F).equals(a))return d=X,!0;return Array.isArray(F)&&F.some(j(X))}};r.some(w([]));var A={};return d&&(A={indexPath:d,index:d[d.length-1],parentPath:d.slice(0,d.length-1)}),A},findDeepMarkerIndex:function(r,a){var d;r.some(function w(A){return function(j,$){var F=A.concat($);return j._leaflet_id===a._leaflet_id?(d=F,!0):Array.isArray(j)&&j.some(w(F))}}([]));var _={};return d&&(_={indexPath:d,index:d[d.length-1],parentPath:d.slice(0,d.length-1)}),_},_getIndexFromSegment:function(r,a){if(a&&a.length===2){var d=this.findDeepCoordIndex(r,a[0]),_=this.findDeepCoordIndex(r,a[1]),w=Math.max(d.index,_.index);return d.index!==0&&_.index!==0||w===1||(w+=1),{indexA:d,indexB:_,newIndex:w,indexPath:d.indexPath,parentPath:d.parentPath}}return null},_getRotatedRectangle:function(r,a,d,_){var w=Se(_,r),A=Se(_,a),j=d*Math.PI/180,$=Math.cos(j),F=Math.sin(j),G=(A.x-w.x)*$+(A.y-w.y)*F,X=(A.y-w.y)*$-(A.x-w.x)*F,pt=G*$+w.x,ut=G*F+w.y,Mt=-X*F+w.x,Rt=X*$+w.y;return[pn(_,w),pn(_,{x:pt,y:ut}),pn(_,A),pn(_,{x:Mt,y:Rt})]},pxRadiusToMeterRadius:function(r,a,d){var _=a.project(d),w=L.point(_.x+r,_.y);return a.distance(a.unproject(w),d)}};const te=$s;L.PM=L.PM||{version:"2.14.2",Map:le,Toolbar:xt,Draw:I,Edit:Be,Utils:te,Matrix:Ni,activeLang:"en",optIn:!1,initialize:function(r){this.addInitHooks(r)},setOptIn:function(r){this.optIn=!!r},addInitHooks:function(){L.Map.addInitHook(function(){this.pm=void 0,L.PM.optIn?this.options.pmIgnore===!1&&(this.pm=new L.PM.Map(this)):this.options.pmIgnore||(this.pm=new L.PM.Map(this)),this.pm&&this.pm.setGlobalOptions({})}),L.LayerGroup.addInitHook(function(){this.pm=void 0,L.PM.optIn?this.options.pmIgnore===!1&&(this.pm=new L.PM.Edit.LayerGroup(this)):this.options.pmIgnore||(this.pm=new L.PM.Edit.LayerGroup(this))}),L.Marker.addInitHook(function(){this.pm=void 0,L.PM.optIn?this.options.pmIgnore===!1&&(this.options.textMarker?(this.pm=new L.PM.Edit.Text(this),this.options._textMarkerOverPM||this.pm._initTextMarker(),delete this.options._textMarkerOverPM):this.pm=new L.PM.Edit.Marker(this)):this.options.pmIgnore||(this.options.textMarker?(this.pm=new L.PM.Edit.Text(this),this.options._textMarkerOverPM||this.pm._initTextMarker(),delete this.options._textMarkerOverPM):this.pm=new L.PM.Edit.Marker(this))}),L.CircleMarker.addInitHook(function(){this.pm=void 0,L.PM.optIn?this.options.pmIgnore===!1&&(this.pm=new L.PM.Edit.CircleMarker(this)):this.options.pmIgnore||(this.pm=new L.PM.Edit.CircleMarker(this))}),L.Polyline.addInitHook(function(){this.pm=void 0,L.PM.optIn?this.options.pmIgnore===!1&&(this.pm=new L.PM.Edit.Line(this)):this.options.pmIgnore||(this.pm=new L.PM.Edit.Line(this))}),L.Polygon.addInitHook(function(){this.pm=void 0,L.PM.optIn?this.options.pmIgnore===!1&&(this.pm=new L.PM.Edit.Polygon(this)):this.options.pmIgnore||(this.pm=new L.PM.Edit.Polygon(this))}),L.Rectangle.addInitHook(function(){this.pm=void 0,L.PM.optIn?this.options.pmIgnore===!1&&(this.pm=new L.PM.Edit.Rectangle(this)):this.options.pmIgnore||(this.pm=new L.PM.Edit.Rectangle(this))}),L.Circle.addInitHook(function(){this.pm=void 0,L.PM.optIn?this.options.pmIgnore===!1&&(this.pm=new L.PM.Edit.Circle(this)):this.options.pmIgnore||(this.pm=new L.PM.Edit.Circle(this))}),L.ImageOverlay.addInitHook(function(){this.pm=void 0,L.PM.optIn?this.options.pmIgnore===!1&&(this.pm=new L.PM.Edit.ImageOverlay(this)):this.options.pmIgnore||(this.pm=new L.PM.Edit.ImageOverlay(this))})},reInitLayer:function(r){var a=this;r instanceof L.LayerGroup&&r.eachLayer(function(d){a.reInitLayer(d)}),r.pm||L.PM.optIn&&r.options.pmIgnore!==!1||r.options.pmIgnore||(r instanceof L.Map?r.pm=new L.PM.Map(r):r instanceof L.Marker?r.options.textMarker?(r.pm=new L.PM.Edit.Text(r),r.pm._initTextMarker(),r.pm._createTextMarker(!1)):r.pm=new L.PM.Edit.Marker(r):r instanceof L.Circle?r.pm=new L.PM.Edit.Circle(r):r instanceof L.CircleMarker?r.pm=new L.PM.Edit.CircleMarker(r):r instanceof L.Rectangle?r.pm=new L.PM.Edit.Rectangle(r):r instanceof L.Polygon?r.pm=new L.PM.Edit.Polygon(r):r instanceof L.Polyline?r.pm=new L.PM.Edit.Line(r):r instanceof L.LayerGroup?r.pm=new L.PM.Edit.LayerGroup(r):r instanceof L.ImageOverlay&&(r.pm=new L.PM.Edit.ImageOverlay(r)))}},L.version==="1.7.1"&&L.Canvas.include({_onClick:function(r){for(var a,d,_=this._map.mouseEventToLayerPoint(r),w=this._drawFirst;w;w=w.next)(a=w.layer).options.interactive&&a._containsPoint(_)&&(r.type!=="click"&&r.type!=="preclick"||!this._map._draggableMoved(a))&&(d=a);d&&(L.DomEvent.fakeStop(r),this._fireEvent([d],r))}}),L.PM.initialize()},7107:()=>{Array.prototype.findIndex=Array.prototype.findIndex||function(i){if(this===null)throw new TypeError("Array.prototype.findIndex called on null or undefined");if(typeof i!="function")throw new TypeError("callback must be a function");for(var l=Object(this),c=l.length>>>0,h=arguments[1],f=0;f>>0,h=arguments[1],f=0;f>>0;if(h===0)return!1;for(var f,m,g=0|l,y=Math.max(g>=0?g:h-Math.abs(g),0);y{var h=c(2582),f=c(4102),m=c(1540),g=c(9705).Z,y=m.featureEach,x=(m.coordEach,f.polygon,f.featureCollection);function M(D){var O=new h(D);return O.insert=function(S){if(S.type!=="Feature")throw new Error("invalid feature");return S.bbox=S.bbox?S.bbox:g(S),h.prototype.insert.call(this,S)},O.load=function(S){var U=[];return Array.isArray(S)?S.forEach(function(C){if(C.type!=="Feature")throw new Error("invalid features");C.bbox=C.bbox?C.bbox:g(C),U.push(C)}):y(S,function(C){if(C.type!=="Feature")throw new Error("invalid features");C.bbox=C.bbox?C.bbox:g(C),U.push(C)}),h.prototype.load.call(this,U)},O.remove=function(S,U){if(S.type!=="Feature")throw new Error("invalid feature");return S.bbox=S.bbox?S.bbox:g(S),h.prototype.remove.call(this,S,U)},O.clear=function(){return h.prototype.clear.call(this)},O.search=function(S){var U=h.prototype.search.call(this,this.toBBox(S));return x(U)},O.collides=function(S){return h.prototype.collides.call(this,this.toBBox(S))},O.all=function(){var S=h.prototype.all.call(this);return x(S)},O.toJSON=function(){return h.prototype.toJSON.call(this)},O.fromJSON=function(S){return h.prototype.fromJSON.call(this,S)},O.toBBox=function(S){var U;if(S.bbox)U=S.bbox;else if(Array.isArray(S)&&S.length===4)U=S;else if(Array.isArray(S)&&S.length===6)U=[S[0],S[1],S[3],S[4]];else if(S.type==="Feature")U=g(S);else{if(S.type!=="FeatureCollection")throw new Error("invalid geojson");U=g(S)}return{minX:U[0],minY:U[1],maxX:U[2],maxY:U[3]}},O}i.exports=M,i.exports.default=M},1989:(i,l,c)=>{var h=c(1789),f=c(401),m=c(7667),g=c(1327),y=c(1866);function x(M){var D=-1,O=M==null?0:M.length;for(this.clear();++D{var h=c(7040),f=c(4125),m=c(2117),g=c(7518),y=c(4705);function x(M){var D=-1,O=M==null?0:M.length;for(this.clear();++D{var h=c(852)(c(5639),"Map");i.exports=h},3369:(i,l,c)=>{var h=c(4785),f=c(1285),m=c(6e3),g=c(9916),y=c(5265);function x(M){var D=-1,O=M==null?0:M.length;for(this.clear();++D{var h=c(8407),f=c(7465),m=c(3779),g=c(7599),y=c(4758),x=c(4309);function M(D){var O=this.__data__=new h(D);this.size=O.size}M.prototype.clear=f,M.prototype.delete=m,M.prototype.get=g,M.prototype.has=y,M.prototype.set=x,i.exports=M},2705:(i,l,c)=>{var h=c(5639).Symbol;i.exports=h},1149:(i,l,c)=>{var h=c(5639).Uint8Array;i.exports=h},6874:i=>{i.exports=function(l,c,h){switch(h.length){case 0:return l.call(c);case 1:return l.call(c,h[0]);case 2:return l.call(c,h[0],h[1]);case 3:return l.call(c,h[0],h[1],h[2])}return l.apply(c,h)}},4636:(i,l,c)=>{var h=c(2545),f=c(5694),m=c(1469),g=c(4144),y=c(5776),x=c(6719),M=Object.prototype.hasOwnProperty;i.exports=function(D,O){var S=m(D),U=!S&&f(D),C=!S&&!U&&g(D),R=!S&&!U&&!C&&x(D),V=S||U||C||R,E=V?h(D.length,String):[],z=E.length;for(var W in D)!O&&!M.call(D,W)||V&&(W=="length"||C&&(W=="offset"||W=="parent")||R&&(W=="buffer"||W=="byteLength"||W=="byteOffset")||y(W,z))||E.push(W);return E}},9932:i=>{i.exports=function(l,c){for(var h=-1,f=l==null?0:l.length,m=Array(f);++h{var h=c(9465),f=c(7813);i.exports=function(m,g,y){(y!==void 0&&!f(m[g],y)||y===void 0&&!(g in m))&&h(m,g,y)}},4865:(i,l,c)=>{var h=c(9465),f=c(7813),m=Object.prototype.hasOwnProperty;i.exports=function(g,y,x){var M=g[y];m.call(g,y)&&f(M,x)&&(x!==void 0||y in g)||h(g,y,x)}},8470:(i,l,c)=>{var h=c(7813);i.exports=function(f,m){for(var g=f.length;g--;)if(h(f[g][0],m))return g;return-1}},9465:(i,l,c)=>{var h=c(8777);i.exports=function(f,m,g){m=="__proto__"&&h?h(f,m,{configurable:!0,enumerable:!0,value:g,writable:!0}):f[m]=g}},3118:(i,l,c)=>{var h=c(3218),f=Object.create,m=function(){function g(){}return function(y){if(!h(y))return{};if(f)return f(y);g.prototype=y;var x=new g;return g.prototype=void 0,x}}();i.exports=m},8483:(i,l,c)=>{var h=c(5063)();i.exports=h},7786:(i,l,c)=>{var h=c(1811),f=c(327);i.exports=function(m,g){for(var y=0,x=(g=h(g,m)).length;m!=null&&y{var h=c(2705),f=c(9607),m=c(2333),g=h?h.toStringTag:void 0;i.exports=function(y){return y==null?y===void 0?"[object Undefined]":"[object Null]":g&&g in Object(y)?f(y):m(y)}},8565:i=>{var l=Object.prototype.hasOwnProperty;i.exports=function(c,h){return c!=null&&l.call(c,h)}},9454:(i,l,c)=>{var h=c(4239),f=c(7005);i.exports=function(m){return f(m)&&h(m)=="[object Arguments]"}},8458:(i,l,c)=>{var h=c(3560),f=c(5346),m=c(3218),g=c(346),y=/^\[object .+?Constructor\]$/,x=Function.prototype,M=Object.prototype,D=x.toString,O=M.hasOwnProperty,S=RegExp("^"+D.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");i.exports=function(U){return!(!m(U)||f(U))&&(h(U)?S:y).test(g(U))}},8749:(i,l,c)=>{var h=c(4239),f=c(1780),m=c(7005),g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g["[object Arguments]"]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g["[object Function]"]=g["[object Map]"]=g["[object Number]"]=g["[object Object]"]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1,i.exports=function(y){return m(y)&&f(y.length)&&!!g[h(y)]}},313:(i,l,c)=>{var h=c(3218),f=c(5726),m=c(3498),g=Object.prototype.hasOwnProperty;i.exports=function(y){if(!h(y))return m(y);var x=f(y),M=[];for(var D in y)(D!="constructor"||!x&&g.call(y,D))&&M.push(D);return M}},2980:(i,l,c)=>{var h=c(6384),f=c(6556),m=c(8483),g=c(9783),y=c(3218),x=c(1704),M=c(6390);i.exports=function D(O,S,U,C,R){O!==S&&m(S,function(V,E){if(R||(R=new h),y(V))g(O,S,E,U,D,C,R);else{var z=C?C(M(O,E),V,E+"",O,S,R):void 0;z===void 0&&(z=V),f(O,E,z)}},x)}},9783:(i,l,c)=>{var h=c(6556),f=c(4626),m=c(7133),g=c(278),y=c(8517),x=c(5694),M=c(1469),D=c(9246),O=c(4144),S=c(3560),U=c(3218),C=c(8630),R=c(6719),V=c(6390),E=c(9881);i.exports=function(z,W,it,Y,ot,ct,gt){var at=V(z,it),bt=V(W,it),Lt=gt.get(bt);if(Lt)h(z,it,Lt);else{var Et=ct?ct(at,bt,it+"",z,W,gt):void 0,Ct=Et===void 0;if(Ct){var Ft=M(bt),wt=!Ft&&O(bt),de=!Ft&&!wt&&R(bt);Et=bt,Ft||wt||de?M(at)?Et=at:D(at)?Et=g(at):wt?(Ct=!1,Et=f(bt,!0)):de?(Ct=!1,Et=m(bt,!0)):Et=[]:C(bt)||x(bt)?(Et=at,x(at)?Et=E(at):U(at)&&!S(at)||(Et=y(bt))):Ct=!1}Ct&&(gt.set(bt,Et),ot(Et,bt,Y,ct,gt),gt.delete(bt)),h(z,it,Et)}}},5976:(i,l,c)=>{var h=c(6557),f=c(5357),m=c(61);i.exports=function(g,y){return m(f(g,y,h),g+"")}},6560:(i,l,c)=>{var h=c(5703),f=c(8777),m=c(6557),g=f?function(y,x){return f(y,"toString",{configurable:!0,enumerable:!1,value:h(x),writable:!0})}:m;i.exports=g},2545:i=>{i.exports=function(l,c){for(var h=-1,f=Array(l);++h{var h=c(2705),f=c(9932),m=c(1469),g=c(3448),y=h?h.prototype:void 0,x=y?y.toString:void 0;i.exports=function M(D){if(typeof D=="string")return D;if(m(D))return f(D,M)+"";if(g(D))return x?x.call(D):"";var O=D+"";return O=="0"&&1/D==-1/0?"-0":O}},1717:i=>{i.exports=function(l){return function(c){return l(c)}}},1811:(i,l,c)=>{var h=c(1469),f=c(5403),m=c(5514),g=c(9833);i.exports=function(y,x){return h(y)?y:f(y,x)?[y]:m(g(y))}},4318:(i,l,c)=>{var h=c(1149);i.exports=function(f){var m=new f.constructor(f.byteLength);return new h(m).set(new h(f)),m}},4626:(i,l,c)=>{i=c.nmd(i);var h=c(5639),f=l&&!l.nodeType&&l,m=f&&i&&!i.nodeType&&i,g=m&&m.exports===f?h.Buffer:void 0,y=g?g.allocUnsafe:void 0;i.exports=function(x,M){if(M)return x.slice();var D=x.length,O=y?y(D):new x.constructor(D);return x.copy(O),O}},7133:(i,l,c)=>{var h=c(4318);i.exports=function(f,m){var g=m?h(f.buffer):f.buffer;return new f.constructor(g,f.byteOffset,f.length)}},278:i=>{i.exports=function(l,c){var h=-1,f=l.length;for(c||(c=Array(f));++h{var h=c(4865),f=c(9465);i.exports=function(m,g,y,x){var M=!y;y||(y={});for(var D=-1,O=g.length;++D{var h=c(5639)["__core-js_shared__"];i.exports=h},1463:(i,l,c)=>{var h=c(5976),f=c(6612);i.exports=function(m){return h(function(g,y){var x=-1,M=y.length,D=M>1?y[M-1]:void 0,O=M>2?y[2]:void 0;for(D=m.length>3&&typeof D=="function"?(M--,D):void 0,O&&f(y[0],y[1],O)&&(D=M<3?void 0:D,M=1),g=Object(g);++x{i.exports=function(l){return function(c,h,f){for(var m=-1,g=Object(c),y=f(c),x=y.length;x--;){var M=y[l?x:++m];if(h(g[M],M,g)===!1)break}return c}}},8777:(i,l,c)=>{var h=c(852),f=function(){try{var m=h(Object,"defineProperty");return m({},"",{}),m}catch{}}();i.exports=f},1957:(i,l,c)=>{var h=typeof c.g=="object"&&c.g&&c.g.Object===Object&&c.g;i.exports=h},5050:(i,l,c)=>{var h=c(7019);i.exports=function(f,m){var g=f.__data__;return h(m)?g[typeof m=="string"?"string":"hash"]:g.map}},852:(i,l,c)=>{var h=c(8458),f=c(7801);i.exports=function(m,g){var y=f(m,g);return h(y)?y:void 0}},5924:(i,l,c)=>{var h=c(5569)(Object.getPrototypeOf,Object);i.exports=h},9607:(i,l,c)=>{var h=c(2705),f=Object.prototype,m=f.hasOwnProperty,g=f.toString,y=h?h.toStringTag:void 0;i.exports=function(x){var M=m.call(x,y),D=x[y];try{x[y]=void 0;var O=!0}catch{}var S=g.call(x);return O&&(M?x[y]=D:delete x[y]),S}},7801:i=>{i.exports=function(l,c){return l==null?void 0:l[c]}},222:(i,l,c)=>{var h=c(1811),f=c(5694),m=c(1469),g=c(5776),y=c(1780),x=c(327);i.exports=function(M,D,O){for(var S=-1,U=(D=h(D,M)).length,C=!1;++S{var h=c(4536);i.exports=function(){this.__data__=h?h(null):{},this.size=0}},401:i=>{i.exports=function(l){var c=this.has(l)&&delete this.__data__[l];return this.size-=c?1:0,c}},7667:(i,l,c)=>{var h=c(4536),f=Object.prototype.hasOwnProperty;i.exports=function(m){var g=this.__data__;if(h){var y=g[m];return y==="__lodash_hash_undefined__"?void 0:y}return f.call(g,m)?g[m]:void 0}},1327:(i,l,c)=>{var h=c(4536),f=Object.prototype.hasOwnProperty;i.exports=function(m){var g=this.__data__;return h?g[m]!==void 0:f.call(g,m)}},1866:(i,l,c)=>{var h=c(4536);i.exports=function(f,m){var g=this.__data__;return this.size+=this.has(f)?0:1,g[f]=h&&m===void 0?"__lodash_hash_undefined__":m,this}},8517:(i,l,c)=>{var h=c(3118),f=c(5924),m=c(5726);i.exports=function(g){return typeof g.constructor!="function"||m(g)?{}:h(f(g))}},5776:i=>{var l=/^(?:0|[1-9]\d*)$/;i.exports=function(c,h){var f=typeof c;return!!(h=h??9007199254740991)&&(f=="number"||f!="symbol"&&l.test(c))&&c>-1&&c%1==0&&c{var h=c(7813),f=c(8612),m=c(5776),g=c(3218);i.exports=function(y,x,M){if(!g(M))return!1;var D=typeof x;return!!(D=="number"?f(M)&&m(x,M.length):D=="string"&&x in M)&&h(M[x],y)}},5403:(i,l,c)=>{var h=c(1469),f=c(3448),m=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/;i.exports=function(y,x){if(h(y))return!1;var M=typeof y;return!(M!="number"&&M!="symbol"&&M!="boolean"&&y!=null&&!f(y))||g.test(y)||!m.test(y)||x!=null&&y in Object(x)}},7019:i=>{i.exports=function(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}},5346:(i,l,c)=>{var h,f=c(4429),m=(h=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"";i.exports=function(g){return!!m&&m in g}},5726:i=>{var l=Object.prototype;i.exports=function(c){var h=c&&c.constructor;return c===(typeof h=="function"&&h.prototype||l)}},7040:i=>{i.exports=function(){this.__data__=[],this.size=0}},4125:(i,l,c)=>{var h=c(8470),f=Array.prototype.splice;i.exports=function(m){var g=this.__data__,y=h(g,m);return!(y<0)&&(y==g.length-1?g.pop():f.call(g,y,1),--this.size,!0)}},2117:(i,l,c)=>{var h=c(8470);i.exports=function(f){var m=this.__data__,g=h(m,f);return g<0?void 0:m[g][1]}},7518:(i,l,c)=>{var h=c(8470);i.exports=function(f){return h(this.__data__,f)>-1}},4705:(i,l,c)=>{var h=c(8470);i.exports=function(f,m){var g=this.__data__,y=h(g,f);return y<0?(++this.size,g.push([f,m])):g[y][1]=m,this}},4785:(i,l,c)=>{var h=c(1989),f=c(8407),m=c(7071);i.exports=function(){this.size=0,this.__data__={hash:new h,map:new(m||f),string:new h}}},1285:(i,l,c)=>{var h=c(5050);i.exports=function(f){var m=h(this,f).delete(f);return this.size-=m?1:0,m}},6e3:(i,l,c)=>{var h=c(5050);i.exports=function(f){return h(this,f).get(f)}},9916:(i,l,c)=>{var h=c(5050);i.exports=function(f){return h(this,f).has(f)}},5265:(i,l,c)=>{var h=c(5050);i.exports=function(f,m){var g=h(this,f),y=g.size;return g.set(f,m),this.size+=g.size==y?0:1,this}},4523:(i,l,c)=>{var h=c(8306);i.exports=function(f){var m=h(f,function(y){return g.size===500&&g.clear(),y}),g=m.cache;return m}},4536:(i,l,c)=>{var h=c(852)(Object,"create");i.exports=h},3498:i=>{i.exports=function(l){var c=[];if(l!=null)for(var h in Object(l))c.push(h);return c}},1167:(i,l,c)=>{i=c.nmd(i);var h=c(1957),f=l&&!l.nodeType&&l,m=f&&i&&!i.nodeType&&i,g=m&&m.exports===f&&h.process,y=function(){try{var x=m&&m.require&&m.require("util").types;return x||g&&g.binding&&g.binding("util")}catch{}}();i.exports=y},2333:i=>{var l=Object.prototype.toString;i.exports=function(c){return l.call(c)}},5569:i=>{i.exports=function(l,c){return function(h){return l(c(h))}}},5357:(i,l,c)=>{var h=c(6874),f=Math.max;i.exports=function(m,g,y){return g=f(g===void 0?m.length-1:g,0),function(){for(var x=arguments,M=-1,D=f(x.length-g,0),O=Array(D);++M{var h=c(1957),f=typeof self=="object"&&self&&self.Object===Object&&self,m=h||f||Function("return this")();i.exports=m},6390:i=>{i.exports=function(l,c){if((c!=="constructor"||typeof l[c]!="function")&&c!="__proto__")return l[c]}},61:(i,l,c)=>{var h=c(6560),f=c(1275)(h);i.exports=f},1275:i=>{var l=Date.now;i.exports=function(c){var h=0,f=0;return function(){var m=l(),g=16-(m-f);if(f=m,g>0){if(++h>=800)return arguments[0]}else h=0;return c.apply(void 0,arguments)}}},7465:(i,l,c)=>{var h=c(8407);i.exports=function(){this.__data__=new h,this.size=0}},3779:i=>{i.exports=function(l){var c=this.__data__,h=c.delete(l);return this.size=c.size,h}},7599:i=>{i.exports=function(l){return this.__data__.get(l)}},4758:i=>{i.exports=function(l){return this.__data__.has(l)}},4309:(i,l,c)=>{var h=c(8407),f=c(7071),m=c(3369);i.exports=function(g,y){var x=this.__data__;if(x instanceof h){var M=x.__data__;if(!f||M.length<199)return M.push([g,y]),this.size=++x.size,this;x=this.__data__=new m(M)}return x.set(g,y),this.size=x.size,this}},5514:(i,l,c)=>{var h=c(4523),f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,m=/\\(\\)?/g,g=h(function(y){var x=[];return y.charCodeAt(0)===46&&x.push(""),y.replace(f,function(M,D,O,S){x.push(O?S.replace(m,"$1"):D||M)}),x});i.exports=g},327:(i,l,c)=>{var h=c(3448);i.exports=function(f){if(typeof f=="string"||h(f))return f;var m=f+"";return m=="0"&&1/f==-1/0?"-0":m}},346:i=>{var l=Function.prototype.toString;i.exports=function(c){if(c!=null){try{return l.call(c)}catch{}try{return c+""}catch{}}return""}},5703:i=>{i.exports=function(l){return function(){return l}}},7813:i=>{i.exports=function(l,c){return l===c||l!=l&&c!=c}},7361:(i,l,c)=>{var h=c(7786);i.exports=function(f,m,g){var y=f==null?void 0:h(f,m);return y===void 0?g:y}},8721:(i,l,c)=>{var h=c(8565),f=c(222);i.exports=function(m,g){return m!=null&&f(m,g,h)}},6557:i=>{i.exports=function(l){return l}},5694:(i,l,c)=>{var h=c(9454),f=c(7005),m=Object.prototype,g=m.hasOwnProperty,y=m.propertyIsEnumerable,x=h(function(){return arguments}())?h:function(M){return f(M)&&g.call(M,"callee")&&!y.call(M,"callee")};i.exports=x},1469:i=>{var l=Array.isArray;i.exports=l},8612:(i,l,c)=>{var h=c(3560),f=c(1780);i.exports=function(m){return m!=null&&f(m.length)&&!h(m)}},9246:(i,l,c)=>{var h=c(8612),f=c(7005);i.exports=function(m){return f(m)&&h(m)}},4144:(i,l,c)=>{i=c.nmd(i);var h=c(5639),f=c(5062),m=l&&!l.nodeType&&l,g=m&&i&&!i.nodeType&&i,y=g&&g.exports===m?h.Buffer:void 0,x=(y?y.isBuffer:void 0)||f;i.exports=x},3560:(i,l,c)=>{var h=c(4239),f=c(3218);i.exports=function(m){if(!f(m))return!1;var g=h(m);return g=="[object Function]"||g=="[object GeneratorFunction]"||g=="[object AsyncFunction]"||g=="[object Proxy]"}},1780:i=>{i.exports=function(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=9007199254740991}},3218:i=>{i.exports=function(l){var c=typeof l;return l!=null&&(c=="object"||c=="function")}},7005:i=>{i.exports=function(l){return l!=null&&typeof l=="object"}},8630:(i,l,c)=>{var h=c(4239),f=c(5924),m=c(7005),g=Function.prototype,y=Object.prototype,x=g.toString,M=y.hasOwnProperty,D=x.call(Object);i.exports=function(O){if(!m(O)||h(O)!="[object Object]")return!1;var S=f(O);if(S===null)return!0;var U=M.call(S,"constructor")&&S.constructor;return typeof U=="function"&&U instanceof U&&x.call(U)==D}},3448:(i,l,c)=>{var h=c(4239),f=c(7005);i.exports=function(m){return typeof m=="symbol"||f(m)&&h(m)=="[object Symbol]"}},6719:(i,l,c)=>{var h=c(8749),f=c(1717),m=c(1167),g=m&&m.isTypedArray,y=g?f(g):h;i.exports=y},1704:(i,l,c)=>{var h=c(4636),f=c(313),m=c(8612);i.exports=function(g){return m(g)?h(g,!0):f(g)}},8306:(i,l,c)=>{var h=c(3369);function f(m,g){if(typeof m!="function"||g!=null&&typeof g!="function")throw new TypeError("Expected a function");var y=function(){var x=arguments,M=g?g.apply(this,x):x[0],D=y.cache;if(D.has(M))return D.get(M);var O=m.apply(this,x);return y.cache=D.set(M,O)||D,O};return y.cache=new(f.Cache||h),y}f.Cache=h,i.exports=f},2492:(i,l,c)=>{var h=c(2980),f=c(1463)(function(m,g,y){h(m,g,y)});i.exports=f},5062:i=>{i.exports=function(){return!1}},9881:(i,l,c)=>{var h=c(8363),f=c(1704);i.exports=function(m){return h(m,f(m))}},9833:(i,l,c)=>{var h=c(531);i.exports=function(f){return f==null?"":h(f)}},2676:function(i){i.exports=function(){function l(B,b){if(!(B instanceof b))throw new TypeError("Cannot call a class as a function")}function c(B,b){for(var k=0;kb?1:B0)||b.right===null||k(B,b.right.key)>0&&(nt=b.right,b.right=nt.left,nt.left=b,(b=nt).right===null))break;I.right=b,I=b,b=b.right}}return I.right=b.left,N.left=b.right,b.left=T.right,b.right=T.left,b}function y(B,b,k,T){var I=new f(B,b);if(k===null)return I.left=I.right=null,I;var N=T(B,(k=g(B,k,T)).key);return N<0?(I.left=k.left,I.right=k,k.left=null):N>=0&&(I.right=k.right,I.left=k,k.right=null),I}function x(B,b,k){var T=null,I=null;if(b){var N=k((b=g(B,b,k)).key,B);N===0?(T=b.left,I=b.right):N<0?(I=b.right,b.right=null,T=b):(T=b.left,b.left=null,I=b)}return{left:T,right:I}}function M(B,b,k){return b===null?B:(B===null||((b=g(B.key,b,k)).left=B),b)}function D(B,b,k,T,I){if(B){T(b+(k?"└── ":"├── ")+I(B)+` +`);var N=b+(k?" ":"│ ");B.left&&D(B.left,N,!1,T,I),B.right&&D(B.right,N,!0,T,I)}}var O=function(){function B(b){b===void 0&&(b=m),this._root=null,this._size=0,this._comparator=b}return B.prototype.insert=function(b,k){return this._size++,this._root=y(b,k,this._root,this._comparator)},B.prototype.add=function(b,k){var T=new f(b,k);this._root===null&&(T.left=T.right=null,this._size++,this._root=T);var I=this._comparator,N=g(b,this._root,I),Q=I(b,N.key);return Q===0?this._root=N:(Q<0?(T.left=N.left,T.right=N,N.left=null):Q>0&&(T.right=N.right,T.left=N,N.right=null),this._size++,this._root=T),this._root},B.prototype.remove=function(b){this._root=this._remove(b,this._root,this._comparator)},B.prototype._remove=function(b,k,T){var I;return k===null?null:T(b,(k=g(b,k,T)).key)===0?(k.left===null?I=k.right:(I=g(b,k.left,T)).right=k.right,this._size--,I):k},B.prototype.pop=function(){var b=this._root;if(b){for(;b.left;)b=b.left;return this._root=g(b.key,this._root,this._comparator),this._root=this._remove(b.key,this._root,this._comparator),{key:b.key,data:b.data}}return null},B.prototype.findStatic=function(b){for(var k=this._root,T=this._comparator;k;){var I=T(b,k.key);if(I===0)return k;k=I<0?k.left:k.right}return null},B.prototype.find=function(b){return this._root&&(this._root=g(b,this._root,this._comparator),this._comparator(b,this._root.key)!==0)?null:this._root},B.prototype.contains=function(b){for(var k=this._root,T=this._comparator;k;){var I=T(b,k.key);if(I===0)return!0;k=I<0?k.left:k.right}return!1},B.prototype.forEach=function(b,k){for(var T=this._root,I=[],N=!1;!N;)T!==null?(I.push(T),T=T.left):I.length!==0?(T=I.pop(),b.call(k,T),T=T.right):N=!0;return this},B.prototype.range=function(b,k,T,I){for(var N=[],Q=this._comparator,nt=this._root;N.length!==0||nt;)if(nt)N.push(nt),nt=nt.left;else{if(Q((nt=N.pop()).key,k)>0)break;if(Q(nt.key,b)>=0&&T.call(I,nt))return this;nt=nt.right}return this},B.prototype.keys=function(){var b=[];return this.forEach(function(k){var T=k.key;return b.push(T)}),b},B.prototype.values=function(){var b=[];return this.forEach(function(k){var T=k.data;return b.push(T)}),b},B.prototype.min=function(){return this._root?this.minNode(this._root).key:null},B.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},B.prototype.minNode=function(b){if(b===void 0&&(b=this._root),b)for(;b.left;)b=b.left;return b},B.prototype.maxNode=function(b){if(b===void 0&&(b=this._root),b)for(;b.right;)b=b.right;return b},B.prototype.at=function(b){for(var k=this._root,T=!1,I=0,N=[];!T;)if(k)N.push(k),k=k.left;else if(N.length>0){if(k=N.pop(),I===b)return k;I++,k=k.right}else T=!0;return null},B.prototype.next=function(b){var k=this._root,T=null;if(b.right){for(T=b.right;T.left;)T=T.left;return T}for(var I=this._comparator;k;){var N=I(b.key,k.key);if(N===0)break;N<0?(T=k,k=k.left):k=k.right}return T},B.prototype.prev=function(b){var k=this._root,T=null;if(b.left!==null){for(T=b.left;T.right;)T=T.right;return T}for(var I=this._comparator;k;){var N=I(b.key,k.key);if(N===0)break;N<0?k=k.left:(T=k,k=k.right)}return T},B.prototype.clear=function(){return this._root=null,this._size=0,this},B.prototype.toList=function(){return C(this._root)},B.prototype.load=function(b,k,T){k===void 0&&(k=[]),T===void 0&&(T=!1);var I=b.length,N=this._comparator;if(T&&E(b,k,0,I-1,N),this._root===null)this._root=S(b,k,0,I),this._size=I;else{var Q=V(this.toList(),U(b,k),N);I=this._size+I,this._root=R({head:Q},0,I)}return this},B.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(B.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),B.prototype.toString=function(b){b===void 0&&(b=function(T){return String(T.key)});var k=[];return D(this._root,"",!0,function(T){return k.push(T)},b),k.join("")},B.prototype.update=function(b,k,T){var I=this._comparator,N=x(b,this._root,I),Q=N.left,nt=N.right;I(b,k)<0?nt=y(k,T,nt,I):Q=y(k,T,Q,I),this._root=M(Q,nt,I)},B.prototype.split=function(b){return x(b,this._root,this._comparator)},B}();function S(B,b,k,T){var I=T-k;if(I>0){var N=k+Math.floor(I/2),Q=B[N],nt=b[N],vt=new f(Q,nt);return vt.left=S(B,b,k,N),vt.right=S(B,b,N+1,T),vt}return null}function U(B,b){for(var k=new f(null,null),T=k,I=0;I0?b=(b=N=N.next=k.pop()).right:T=!0;return N.next=null,I.next}function R(B,b,k){var T=k-b;if(T>0){var I=b+Math.floor(T/2),N=R(B,b,I),Q=B.head;return Q.left=N,B.head=B.head.next,Q.right=R(B,I+1,k),Q}return null}function V(B,b,k){for(var T=new f(null,null),I=T,N=B,Q=b;N!==null&&Q!==null;)k(N.key,Q.key)<0?(I.next=N,N=N.next):(I.next=Q,Q=Q.next),I=I.next;return N!==null?I.next=N:Q!==null&&(I.next=Q),T.next}function E(B,b,k,T,I){if(!(k>=T)){for(var N=B[k+T>>1],Q=k-1,nt=T+1;;){do Q++;while(I(B[Q],N)<0);do nt--;while(I(B[nt],N)>0);if(Q>=nt)break;var vt=B[Q];B[Q]=B[nt],B[nt]=vt,vt=b[Q],b[Q]=b[nt],b[nt]=vt}E(B,b,k,nt,I),E(B,b,nt+1,T,I)}}var z=function(B,b){return B.ll.x<=b.x&&b.x<=B.ur.x&&B.ll.y<=b.y&&b.y<=B.ur.y},W=function(B,b){if(b.ur.xk.x?1:b.yk.y?1:0}}]),h(B,[{key:"link",value:function(b){if(b.point===this.point)throw new Error("Tried to link already linked events");for(var k=b.point.events,T=0,I=k.length;T=0&&Wt>=0?TtQt?-1:0:vt<0&&Wt<0?TtQt?1:0:Wtvt?1:0}}}]),B}(),Me=0,fe=function(){function B(b,k,T,I){l(this,B),this.id=++Me,this.leftSE=b,b.segment=this,b.otherSE=k,this.rightSE=k,k.segment=this,k.otherSE=b,this.rings=T,this.windings=I}return h(B,null,[{key:"compare",value:function(b,k){var T=b.leftSE.point.x,I=k.leftSE.point.x,N=b.rightSE.point.x,Q=k.rightSE.point.x;if(Qnt&&vt>Tt)return-1;var Wt=b.comparePoint(k.leftSE.point);if(Wt<0)return 1;if(Wt>0)return-1;var Qt=k.comparePoint(b.rightSE.point);return Qt!==0?Qt:-1}if(T>I){if(ntvt&&nt>jt)return 1;var ve=k.comparePoint(b.leftSE.point);if(ve!==0)return ve;var Yt=b.comparePoint(k.rightSE.point);return Yt<0?1:Yt>0?-1:1}if(ntvt)return 1;if(NQ){var ue=b.comparePoint(k.rightSE.point);if(ue<0)return 1;if(ue>0)return-1}if(N!==Q){var be=Tt-nt,Re=N-T,Ge=jt-vt,Ze=Q-I;if(be>Re&&GeZe)return-1}return N>Q?1:Njt?1:b.idk.id?1:0}}]),h(B,[{key:"replaceRightSE",value:function(b){this.rightSE=b,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var b=this.leftSE.point.y,k=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:bk?b:k}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(b){return b.x===this.leftSE.point.x&&b.y===this.leftSE.point.y||b.x===this.rightSE.point.x&&b.y===this.rightSE.point.y}},{key:"comparePoint",value:function(b){if(this.isAnEndpoint(b))return 0;var k=this.leftSE.point,T=this.rightSE.point,I=this.vector();if(k.x===T.x)return b.x===k.x?0:b.x0&&nt.swapEvents(),$t.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),T&&(I.checkForConsuming(),N.checkForConsuming()),k}},{key:"swapEvents",value:function(){var b=this.rightSE;this.rightSE=this.leftSE,this.leftSE=b,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var k=0,T=this.windings.length;k0){var N=k;k=T,T=N}if(k.prev===T){var Q=k;k=T,T=Q}for(var nt=0,vt=T.rings.length;nt0))throw new Error("Tried to create degenerate segment at [".concat(b.x,", ").concat(b.y,"]"));I=k,N=b,Q=-1}return new B(new $t(I,!0),new $t(N,!1),[T],[Q])}}]),B}(),ae=function(){function B(b,k,T){if(l(this,B),!Array.isArray(b)||b.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=k,this.isExterior=T,this.segments=[],typeof b[0][0]!="number"||typeof b[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var I=at.round(b[0][0],b[0][1]);this.bbox={ll:{x:I.x,y:I.y},ur:{x:I.x,y:I.y}};for(var N=I,Q=1,nt=b.length;Qthis.bbox.ur.x&&(this.bbox.ur.x=vt.x),vt.y>this.bbox.ur.y&&(this.bbox.ur.y=vt.y),N=vt)}I.x===N.x&&I.y===N.y||this.segments.push(fe.fromRing(N,I,this))}return h(B,[{key:"getSweepEvents",value:function(){for(var b=[],k=0,T=this.segments.length;kthis.bbox.ur.x&&(this.bbox.ur.x=N.bbox.ur.x),N.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=N.bbox.ur.y),this.interiorRings.push(N)}this.multiPoly=k}return h(B,[{key:"getSweepEvents",value:function(){for(var b=this.exteriorRing.getSweepEvents(),k=0,T=this.interiorRings.length;kthis.bbox.ur.x&&(this.bbox.ur.x=N.bbox.ur.x),N.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=N.bbox.ur.y),this.polys.push(N)}this.isSubject=k}return h(B,[{key:"getSweepEvents",value:function(){for(var b=[],k=0,T=this.polys.length;k0&&(b=I)}for(var N=b.segment.prevInResult(),Q=N?N.prevInResult():null;;){if(!N)return null;if(!Q)return N.ringOut;if(Q.ringOut!==N.ringOut)return Q.ringOut.enclosingRing()!==N.ringOut?N.ringOut:N.ringOut.enclosingRing();N=Q.prevInResult(),Q=N?N.prevInResult():null}}}]),B}(),St=function(){function B(b){l(this,B),this.exteriorRing=b,b.poly=this,this.interiorRings=[]}return h(B,[{key:"addInterior",value:function(b){this.interiorRings.push(b),b.poly=this}},{key:"getGeom",value:function(){var b=[this.exteriorRing.getGeom()];if(b[0]===null)return null;for(var k=0,T=this.interiorRings.length;k1&&arguments[1]!==void 0?arguments[1]:fe.compare;l(this,B),this.queue=b,this.tree=new O(k),this.segments=[]}return h(B,[{key:"process",value:function(b){var k=b.segment,T=[];if(b.consumedBy)return b.isLeft?this.queue.remove(b.otherSE):this.tree.remove(k),T;var I=b.isLeft?this.tree.insert(k):this.tree.find(k);if(!I)throw new Error("Unable to find segment #".concat(k.id," ")+"[".concat(k.leftSE.point.x,", ").concat(k.leftSE.point.y,"] -> ")+"[".concat(k.rightSE.point.x,", ").concat(k.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var N=I,Q=I,nt=void 0,vt=void 0;nt===void 0;)(N=this.tree.prev(N))===null?nt=null:N.key.consumedBy===void 0&&(nt=N.key);for(;vt===void 0;)(Q=this.tree.next(Q))===null?vt=null:Q.key.consumedBy===void 0&&(vt=Q.key);if(b.isLeft){var Tt=null;if(nt){var jt=nt.getIntersection(k);if(jt!==null&&(k.isAnEndpoint(jt)||(Tt=jt),!nt.isAnEndpoint(jt)))for(var Wt=this._splitSafely(nt,jt),Qt=0,ve=Wt.length;Qt0?(this.tree.remove(k),T.push(b)):(this.segments.push(k),k.prev=nt)}else{if(nt&&vt){var We=nt.getIntersection(vt);if(We!==null){if(!nt.isAnEndpoint(We))for(var cn=this._splitSafely(nt,We),Ln=0,$n=cn.length;Ln<$n;Ln++)T.push(cn[Ln]);if(!vt.isAnEndpoint(We))for(var qe=this._splitSafely(vt,We),Ne=0,Rn=qe.length;NeH)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var Ze=new le(Yt),fn=Yt.size,ln=Yt.pop();ln;){var We=ln.key;if(Yt.size===fn){var cn=We.segment;throw new Error("Unable to pop() ".concat(We.isLeft?"left":"right"," SweepEvent ")+"[".concat(We.point.x,", ").concat(We.point.y,"] from segment #").concat(cn.id," ")+"[".concat(cn.leftSE.point.x,", ").concat(cn.leftSE.point.y,"] -> ")+"[".concat(cn.rightSE.point.x,", ").concat(cn.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(Yt.size>H)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(Ze.segments.length>K)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var Ln=Ze.process(We),$n=0,qe=Ln.length;$n1?b-1:0),T=1;T1?b-1:0),T=1;T1?b-1:0),T=1;T1?b-1:0),T=1;Tat;){if(bt-at>600){var Et=bt-at+1,Ct=gt-at+1,Ft=Math.log(Et),wt=.5*Math.exp(2*Ft/3),de=.5*Math.sqrt(Ft*wt*(Et-wt)/Et)*(Ct-Et/2<0?-1:1);ot(ct,gt,Math.max(at,Math.floor(gt-Ct*wt/Et+de)),Math.min(bt,Math.floor(gt+(Et-Ct)*wt/Et+de)),Lt)}var Dt=ct[gt],Bt=at,$t=bt;for(c(ct,at,gt),Lt(ct[bt],Dt)>0&&c(ct,at,bt);Bt<$t;){for(c(ct,Bt,$t),Bt++,$t--;Lt(ct[Bt],Dt)<0;)Bt++;for(;Lt(ct[$t],Dt)>0;)$t--}Lt(ct[at],Dt)===0?c(ct,at,$t):c(ct,++$t,bt),$t<=gt&&(at=$t+1),gt<=$t&&(bt=$t-1)}})(E,z,W||0,it||E.length-1,Y||h)}function c(E,z,W){var it=E[z];E[z]=E[W],E[W]=it}function h(E,z){return Ez?1:0}var f=function(E){E===void 0&&(E=9),this._maxEntries=Math.max(4,E),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function m(E,z,W){if(!W)return z.indexOf(E);for(var it=0;it=E.minX&&z.maxY>=E.minY}function R(E){return{children:E,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function V(E,z,W,it,Y){for(var ot=[z,W];ot.length;)if(!((W=ot.pop())-(z=ot.pop())<=it)){var ct=z+Math.ceil((W-z)/it/2)*it;l(E,ct,z,W,Y),ot.push(z,ct,ct,W)}}return f.prototype.all=function(){return this._all(this.data,[])},f.prototype.search=function(E){var z=this.data,W=[];if(!C(E,z))return W;for(var it=this.toBBox,Y=[];z;){for(var ot=0;ot=0&&Y[z].children.length>this._maxEntries;)this._split(Y,z),z--;this._adjustParentBBoxes(it,Y,z)},f.prototype._split=function(E,z){var W=E[z],it=W.children.length,Y=this._minEntries;this._chooseSplitAxis(W,Y,it);var ot=this._chooseSplitIndex(W,Y,it),ct=R(W.children.splice(ot,W.children.length-ot));ct.height=W.height,ct.leaf=W.leaf,g(W,this.toBBox),g(ct,this.toBBox),z?E[z-1].children.push(ct):this._splitRoot(W,ct)},f.prototype._splitRoot=function(E,z){this.data=R([E,z]),this.data.height=E.height+1,this.data.leaf=!1,g(this.data,this.toBBox)},f.prototype._chooseSplitIndex=function(E,z,W){for(var it,Y,ot,ct,gt,at,bt,Lt=1/0,Et=1/0,Ct=z;Ct<=W-z;Ct++){var Ft=y(E,0,Ct,this.toBBox),wt=y(E,Ct,W,this.toBBox),de=(Y=Ft,ot=wt,ct=void 0,gt=void 0,at=void 0,bt=void 0,ct=Math.max(Y.minX,ot.minX),gt=Math.max(Y.minY,ot.minY),at=Math.min(Y.maxX,ot.maxX),bt=Math.min(Y.maxY,ot.maxY),Math.max(0,at-ct)*Math.max(0,bt-gt)),Dt=O(Ft)+O(wt);de=z;Lt--){var Et=E.children[Lt];x(ct,E.leaf?Y(Et):Et),gt+=S(ct)}return gt},f.prototype._adjustParentBBoxes=function(E,z,W){for(var it=W;it>=0;it--)x(z[it],E)},f.prototype._condense=function(E){for(var z=E.length-1,W=void 0;z>=0;z--)E[z].children.length===0?z>0?(W=E[z-1].children).splice(W.indexOf(E[z]),1):this.clear():g(E[z],this.toBBox)},f}()}},n={};function o(i){var l=n[i];if(l!==void 0)return l.exports;var c=n[i]={id:i,loaded:!1,exports:{}};return t[i].call(c.exports,c,c.exports,o),c.loaded=!0,c.exports}o.n=i=>{var l=i&&i.__esModule?()=>i.default:()=>i;return o.d(l,{a:l}),l},o.d=(i,l)=>{for(var c in l)o.o(l,c)&&!o.o(i,c)&&Object.defineProperty(i,c,{enumerable:!0,get:l[c]})},o.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),o.o=(i,l)=>Object.prototype.hasOwnProperty.call(i,l),o.nmd=i=>(i.paths=[],i.children||(i.children=[]),i),o(5975)})();const rx={__name:"VMap.client",props:{controls:{type:Boolean,default:!1},dragging:{type:Boolean,default:!1},zoomAnimate:{type:Boolean,default:!1},width:{type:String,default:void 0},height:{type:String,default:void 0},zoom:{type:Number,default:18},maxZoom:{type:Number,default:18},minZoom:{type:Number,default:0},disableZoom:{type:Boolean,default:!1},center:{type:Array,default:()=>[0,0]},geojson:{type:Object,default:void 0},zoomBounds:{type:Number,default:void 0},geojsonOptions:{type:Object,default:()=>({})},prefix:{type:[String,Boolean],default:!1}},emits:["geojson:ready","geojson","add:layer","draw:start","edit:layer","drag:layer","zoom:change","zoom:start"],setup(t,{expose:n,emit:o}){const i=t;delete vn.Icon.Default.prototype._getIconUrl,vn.Icon.Default.mergeOptions({iconRetinaUrl:Fw,iconUrl:Vw,shadowUrl:$w});let l,c,h,f;const m=Xt(null),g=_e(()=>({maxZoom:i.zoomBounds,zoom:{animate:i.zoomAnimate}}));Ke(()=>i.geojson,C=>{f.clearLayers(),S(C)},{deep:!0}),Ke(()=>i.dragging,C=>{C?l.dragging.enable():l.dragging.disable()}),an(()=>{const C=nx(vn,{maxZoom:i.maxZoom,minZoom:i.minZoom,className:"map-tiles"}),[R]=Object.values(C),V={center:i.center,zoom:i.zoom,worldCopyJump:!0,dragging:i.dragging};i.disableZoom&&Object.assign(V,{scrollWheelZoom:!1,zoomControl:!1,doubleClickZoom:!1,touchZoom:!1,boxZoom:!1}),h=new vn.FeatureGroup,f=new vn.FeatureGroup,l=vn.map(m.value,V),l.attributionControl.setPrefix(i.prefix),l.pm.setGlobalOptions({layerGroup:h}),f.addTo(l),l.addLayer(h),l.addLayer(f),i.geojson&&S(i.geojson),i.controls&&(l.pm.addControls({position:"topleft",drawText:!1,drawCircle:!1,drawPolyline:!1,drawCircleMarker:!1,drawMarker:!1,cutPolygon:!1}),l.on("pm:create",E=>{o("geojson",y()),o("add:layer",M(E.layer))}),h.on("pm:edit",E=>{o("geojson",y()),o("edit:layer",M(E.layer))}),l.on("pm:drawstart",E=>{x(),o("draw:start",E)}),l.on("zoom",E=>o("zoom:change",E)),l.on("zoomstart",E=>o("zoom:start",E))),R.addTo(l),Object.keys(C).length>1&&vn.control.layers(C,{},{position:"topleft",collapsed:!1}).addTo(l),O()});function y(){const C=vn.featureGroup();return h.eachLayer(R=>{(R instanceof vn.Path||R instanceof vn.Marker)&&R.pm&&C.addLayer(R)}),C.toGeoJSON()}function x(){h.clearLayers()}function M(C){const R=C.toGeoJSON();return typeof C.getRadius=="function"&&(R.properties.radius=C.getRadius()),R}const D=()=>{if(!f)return;const C=f.getBounds();l.invalidateSize(),ws(()=>{Object.keys(C).length&&l.fitBounds(C,g.value)})},O=()=>{c=new ResizeObserver(C=>{C[0].contentRect,D()}),c.observe(m.value)};Zr(()=>{f.clearLayers(),c==null||c.disconnect()});function S(C){if(C){vn.geoJSON(C,{...Xw(vn),...i.geojsonOptions}).addTo(f);const R=f.getBounds();R.isValid()&&l.fitBounds(R,g.value)}o("geojson:ready",f)}function U(){return l}return n({clearDrawLayers:x,getMapObject:U,resizeMap:D}),(C,R)=>(q(),st("div",{ref_key:"leafletMap",ref:m,style:$r({width:i.width,height:i.height})},null,4))}},ix=Object.freeze(Object.defineProperty({__proto__:null,default:rx},Symbol.toStringTag,{value:"Module"}));function ox(t){sx(t,Object.assign({"/src/components/Map/VMap.client.vue":ix}))}function sx(t,n){Object.entries(n).forEach(([i,l])=>{const c=i.split("/").pop().replace(/\.client.\w+$/,"");t.component(c,l.default)})}const ax=["innerHTML"],lx={key:0,class:"h-4 inline",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},cx=et("path",{"stroke-linecap":"round",d:"M16.5 12a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0zm0 0c0 1.657 1.007 3 2.25 3S21 13.657 21 12a9 9 0 10-2.636 6.364M16.5 12V8.25"},null,-1),ux=[cx],hx={key:1,class:"inline h-4 w-1"},dx=et("circle",{cy:"calc(100% - 5px)",cx:"2.5",r:"1",fill:"currentColor"},null,-1),fx=[dx],px=["innerHTML"],mx={__name:"AddressMaker.global",props:{items:{type:Array,required:!0}},setup(t){const n=t,o=_e(()=>{const[l,...c]=n.items;return{username:l,host:c}});function i(){const[l,...c]=n.items;document.location.href=`mailto:${l}@${c.join(".")}`}return(l,c)=>(q(),st("span",{class:"text-secondary-color cursor-pointer whitespace-nowrap",onClick:i},[et("span",{innerHTML:o.value.username},null,8,ax),(q(!0),st(Gt,null,Le(o.value.host,(h,f)=>(q(),st(Gt,null,[f===0?(q(),st("svg",lx,ux)):(q(),st("svg",hx,fx)),et("span",{innerHTML:h},null,8,px)],64))),256))]))}},gx=Object.freeze(Object.defineProperty({__proto__:null,default:mx},Symbol.toStringTag,{value:"Module"})),_x={};function yx(t,n){return q(),At(dl,{"enter-active-class":"duration-500 ease-out origin-top","enter-from-class":"transform opacity-0 scale-y-0","enter-to-class":"opacity-100 scale-y-100","leave-active-class":"duration-200 ease-in origin-top","leave-from-class":"opacity-100 scale-y-100","leave-to-class":"transform opacity-0 scale-y-0"},{default:mt(()=>[Te(t.$slots,"default")]),_:3})}const vx=re(_x,[["render",yx]]),bx=Object.freeze(Object.defineProperty({__proto__:null,default:vx},Symbol.toStringTag,{value:"Module"})),wx={},xx={viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"green"},kx=Eh('',1),Lx=[kx];function Mx(t,n){return q(),st("svg",xx,Lx)}const Cx=re(wx,[["render",Mx]]);const Px={class:"autocomplete md:block md:mr-0 mr-3 relative w-fit"},Sx={class:"flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none"},Ex=["placeholder"],Tx={key:1,class:"autocomplete__list list absolute z-[500] max-h-52 w-full overflow-y-auto border bg-base-foreground border-base-border !m-0 shadow-md"},Ox=["onClick"],Rx=["innerHTML"],Ax=500,Bx={__name:"Autocomplete.global",props:{autofocus:{type:Boolean,default:!1},placeholder:{type:String,default:"Search..."},url:{type:String,required:!0},queryParam:{type:String,default:"term"},params:{type:Object,default:()=>({})},label:{type:String,default:"label"}},emits:["select"],setup(t,{emit:n}){const o=t,i=Xt(""),l=Xt([]),c=Xt(!1),h=Xt(null);let f;Ke(i,g=>{clearTimeout(f),g.length?f=setTimeout(()=>{c.value=!0,Qe.get(o.url,{params:{...o.params,[o.queryParam]:i.value}}).then(({data:y})=>{c.value=!1,l.value=y})},Ax):l.value=[]});const m=g=>{n("select",g),i.value=""};return an(()=>{o.autofocus&&h.value.focus()}),(g,y)=>{const x=ft("IconSearch");return q(),st("div",Px,[et("div",Sx,[rt(x,{class:"w-4 h-4 text-gray-500"})]),il(et("input",{"onUpdate:modelValue":y[0]||(y[0]=M=>i.value=M),type:"text",autocomplete:"none",class:"autocomplete__input block box-border min-w-full p-1.5 pl-10 text-base-content rounded border sm:text-sm placeholder:text-sm dark:border-slate-700 border-gray-300 dark:placeholder:text-slate-400 focus:ring-primary-500 focus:border-primary-500",placeholder:t.placeholder,ref_key:"inputElement",ref:h},null,8,Ex),[[Nm,i.value]]),c.value?(q(),At(Cx,{key:0,class:"absolute top-1/2 -translate-y-1/2 right-2 h-5 w-5"})):Vt("",!0),l.value.length?(q(),st("ul",Tx,[(q(!0),st(Gt,null,Le(l.value,M=>(q(),st("li",{key:M.id,class:"autocomplete__item px-3 py-2 border-b text-xs cursor-pointer hover:bg-secondary-color hover:bg-opacity-5 border-base-border truncate",onClick:D=>m(M)},[et("span",{innerHTML:M[t.label]},null,8,Rx)],8,Ox))),128))])):Vt("",!0)])}}},Sd=re(Bx,[["__scopeId","data-v-c5caf34f"]]),Ix=Object.freeze(Object.defineProperty({__proto__:null,default:Sd},Symbol.toStringTag,{value:"Module"})),Dx={__name:"AutocompleteOtu.global",props:{autofocus:{type:Boolean,default:!1}},setup(t){const n=rd(),o=({id:i,otu_valid_id:l})=>{n.push({name:"otus-id-overview",params:{id:l||i}})};return(i,l)=>(q(),At(Sd,{url:"/otus/autocomplete","query-param":"term",label:"label_html",autofocus:t.autofocus,params:{having_taxon_name_only:!0},onSelect:o},null,8,["autofocus"]))}},zx=Object.freeze(Object.defineProperty({__proto__:null,default:Dx},Symbol.toStringTag,{value:"Module"})),jx=["title"],Nx={__name:"ButtonExpand.global",props:{modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,i=_e({get(){return o.modelValue},set(l){n("update:modelValue",l)}});return(l,c)=>{const h=ft("IconMinusCircle"),f=ft("IconPlusCircle");return q(),st("button",{type:"button",title:i.value?"Close":"Expand",class:"button-expand bg-base-foreground text-secondary-color w-5 h-5",onClick:c[0]||(c[0]=m=>i.value=!i.value)},[i.value?(q(),At(h,{key:0,class:"w-5 h-5"})):(q(),At(f,{key:1,class:"w-5 h-5"}))],8,jx)}}},Hx=Object.freeze(Object.defineProperty({__proto__:null,default:Nx},Symbol.toStringTag,{value:"Module"})),Fx={__name:"VButton.global",props:{primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1}},setup(t){return(n,o)=>(q(),st("button",{type:"button",class:hn(["px-3 py-1 hover:bg-opacity-80",{"bg-primary-color":t.primary,"bg-secondary-color":t.secondary,"text-primary-content":t.primary,"text-secondary-content":t.secondary}])},[Te(n.$slots,"default")],2))}},Vx=Object.freeze(Object.defineProperty({__proto__:null,default:Fx},Symbol.toStringTag,{value:"Module"}));const $x={},Ux={class:"border-1 card border-base-muted bg-base-foreground print:shadow-none print:border-0 rounded"};function Gx(t,n){return q(),st("div",Ux,[Te(t.$slots,"default")])}const Zx=re($x,[["render",Gx]]),qx=Object.freeze(Object.defineProperty({__proto__:null,default:Zx},Symbol.toStringTag,{value:"Module"})),Kx={},Wx={class:"p-4 pl-5 pr-5"};function Jx(t,n){return q(),st("div",Wx,[Te(t.$slots,"default")])}const Yx=re(Kx,[["render",Jx]]),Xx=Object.freeze(Object.defineProperty({__proto__:null,default:Yx},Symbol.toStringTag,{value:"Module"})),Qx={},t1={class:"p-4 pl-5 pr-5 border-b font-medium border-base-muted"};function e1(t,n){return q(),st("div",t1,[Te(t.$slots,"default")])}const n1=re(Qx,[["render",e1]]),r1=Object.freeze(Object.defineProperty({__proto__:null,default:n1},Symbol.toStringTag,{value:"Module"})),i1={__name:"VClipboard.global",props:{text:{type:String,required:!0},delay:{type:Number,default:2e3}},setup(t){const n=t,o=Xt(!1);let i;function l(){navigator.clipboard.writeText(n.text).then(()=>{o.value=!0,i=setTimeout(()=>{o.value=!1},n.delay)})}return Lr(()=>{clearTimeout(i)}),(c,h)=>{const f=ft("IconCheck"),m=ft("IconClipboard"),g=ft("VButton");return q(),At(g,{class:"px-2 py-2 rounded-full",primary:"",onClick:l},{default:mt(()=>[o.value?(q(),At(f,{key:0,class:"w-4 h-4"})):(q(),At(m,{key:1,class:"w-4 h-4"}))]),_:1})}}},o1=Object.freeze(Object.defineProperty({__proto__:null,default:i1},Symbol.toStringTag,{value:"Module"})),s1={class:"relative inline"},a1=["onClick"],l1={__name:"Dropdown.global",props:{items:{type:Array,default:()=>[]}},setup(t){const n=Xt(null),o=Xt(!1),i=()=>{o.value=!o.value},l=h=>{o.value=!1,h.action()};function c(h){var f;(!h.target||!((f=n.value)!=null&&f.contains(h.target)))&&(o.value=!1)}return an(()=>{document.addEventListener("pointerdown",c,{passive:!0,capture:!0})}),Lr(()=>{document.removeEventListener("pointerdown",c,{capture:!0})}),(h,f)=>(q(),st("div",s1,[et("button",{title:"Menu",onClick:i},[Te(h.$slots,"button")]),o.value?(q(),st("ul",{key:0,ref_key:"element",ref:n,class:"bg-base-foreground absolute font-normal text-sm text-base-lighter right-0 z-10 mt-2 w-56 origin-top-right rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none"},[(q(!0),st(Gt,null,Le(t.items,m=>(q(),st("li",{key:m.label,class:"block w-full px-4 py-2 text-left cursor-pointer hover:bg-secondary-color hover:bg-opacity-5 box-border border-b border-base-border last:border-b-0",onClick:g=>l(m)},se(m.label),9,a1))),128))],512)):Vt("",!0)]))}},c1=Object.freeze(Object.defineProperty({__proto__:null,default:l1},Symbol.toStringTag,{value:"Module"})),u1=["title"],h1=["alt","src"],d1={__name:"GalleryThumbnail",props:{image:{type:Object,required:!0},title:{type:String,default:void 0}},setup(t){return(n,o)=>(q(),st("div",{class:"bg-base-background flex flex-col justify-center cursor-pointer w-24 max-h-20 h-20 border-base-muted rounded-md border",title:t.title},[et("img",{class:"max-h-20 max-w-24 h-20 w-24 object-contain rounded",alt:t.title,src:t.image.thumb},null,8,h1)],8,u1))}},f1={class:"flex flex-row overflow-x-auto print:flex-wrap"},Ed={__name:"GalleryThumbnailList",props:{images:{type:Array,default:()=>[]},current:{type:Number,default:void 0}},emits:["selectIndex"],setup(t,{emit:n}){return(o,i)=>(q(),st("div",f1,[(q(!0),st(Gt,null,Le(t.images,(l,c)=>(q(),st("div",{key:l.id,class:"pr-1.5 last:pr-0"},[rt(d1,{image:l,class:hn({"border border-secondary-color":t.current===c}),title:l.depictions.map(h=>h.label).join(";"),onClick:h=>n("selectIndex",c)},null,8,["image","class","title","onClick"])]))),128))]))}},p1={class:"h-80 max-h-80 flex items-center justify-center"},m1=["src","alt"],g1={__name:"GalleryMainImage",props:{image:{type:Object,required:!0}},emits:["open:viewer"],setup(t,{emit:n}){const o=t,i=Xt(!1),l=Xt(null);return Ke(()=>o.image,c=>{c.id&&(i.value=!0)}),an(()=>{l.value.addEventListener("load",()=>i.value=!1)}),(c,h)=>{const f=ft("VSpinner"),m=ft("ClientOnly");return q(),st("div",p1,[rt(m,null,{default:mt(()=>[i.value?(q(),At(f,{key:0})):Vt("",!0)]),_:1}),et("img",{ref_key:"imageElement",ref:l,class:"max-h-80 h-max w-100 cursor-zoom-in m-auto object-contain",src:t.image.original,alt:t.image.depictions.map(g=>g.label).join(";"),onClick:h[0]||(h[0]=g=>n("open:viewer"))},null,8,m1)])}}},_1={class:"flex flex-col"},y1={class:"flex justify-center border print:hidden bg-base-0 border-base-muted"},v1={__name:"GalleryImage.global",props:{images:{type:Array,default:()=>[]}},setup(t){const n=t,o=Xt(!1),i=Xt(0),l=_e(()=>n.images[i.value]||{}),c=()=>{i.value--},h=()=>{i.value++};return Ke(()=>n.images,()=>{i.value=0},{immediate:!0}),(f,m)=>{const g=ft("ImageViewer");return q(),st(Gt,null,[et("div",_1,[et("div",y1,[rt(g1,{image:l.value,"onOpen:viewer":m[0]||(m[0]=()=>o.value=!0)},null,8,["image"])]),rt(Ed,{class:"pt-2 pb-2",images:t.images,onSelectIndex:m[1]||(m[1]=y=>{i.value=y})},null,8,["images"])]),o.value?(q(),At(g,{key:0,index:i.value,images:t.images,next:i.value0,onSelectIndex:m[2]||(m[2]=y=>i.value=y),onNext:m[3]||(m[3]=y=>h()),onPrevious:m[4]||(m[4]=y=>c()),onClose:m[5]||(m[5]=y=>o.value=!1)},null,8,["index","images","next","previous"])):Vt("",!0)],64)}}},b1=Object.freeze(Object.defineProperty({__proto__:null,default:v1},Symbol.toStringTag,{value:"Module"})),w1={},x1={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},k1=et("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},null,-1),L1=[k1];function M1(t,n){return q(),st("svg",x1,L1)}const C1=re(w1,[["render",M1]]),P1=Object.freeze(Object.defineProperty({__proto__:null,default:C1},Symbol.toStringTag,{value:"Module"})),S1={},E1={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},T1=et("path",{class:"drop-shadow","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19l-7-7 7-7"},null,-1),O1=[T1];function R1(t,n){return q(),st("svg",E1,O1)}const A1=re(S1,[["render",R1]]),B1=Object.freeze(Object.defineProperty({__proto__:null,default:A1},Symbol.toStringTag,{value:"Module"})),I1={},D1={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},z1=et("path",{class:"drop-shadow","stroke-linecap":"round","stroke-linejoin":"round",d:"M9 5l7 7-7 7"},null,-1),j1=[z1];function N1(t,n){return q(),st("svg",D1,j1)}const H1=re(I1,[["render",N1]]),F1=Object.freeze(Object.defineProperty({__proto__:null,default:H1},Symbol.toStringTag,{value:"Module"})),V1={},$1={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},U1=et("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"},null,-1),G1=[U1];function Z1(t,n){return q(),st("svg",$1,G1)}const q1=re(V1,[["render",Z1]]),K1=Object.freeze(Object.defineProperty({__proto__:null,default:q1},Symbol.toStringTag,{value:"Module"})),W1={},J1={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Y1=et("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z"},null,-1),X1=[Y1];function Q1(t,n){return q(),st("svg",J1,X1)}const tk=re(W1,[["render",Q1]]),ek=Object.freeze(Object.defineProperty({__proto__:null,default:tk},Symbol.toStringTag,{value:"Module"})),nk={},rk={xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ik=et("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1),ok=[ik];function sk(t,n){return q(),st("svg",rk,ok)}const ak=re(nk,[["render",sk]]),lk=Object.freeze(Object.defineProperty({__proto__:null,default:ak},Symbol.toStringTag,{value:"Module"})),ck={},uk={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},hk=et("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"},null,-1),dk=[hk];function fk(t,n){return q(),st("svg",uk,dk)}const pk=re(ck,[["render",fk]]),mk=Object.freeze(Object.defineProperty({__proto__:null,default:pk},Symbol.toStringTag,{value:"Module"})),gk={},_k={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},yk=et("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"},null,-1),vk=[yk];function bk(t,n){return q(),st("svg",_k,vk)}const wk=re(gk,[["render",bk]]),xk=Object.freeze(Object.defineProperty({__proto__:null,default:wk},Symbol.toStringTag,{value:"Module"})),kk={},Lk={viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true"},Mk=et("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"},null,-1),Ck=[Mk];function Pk(t,n){return q(),st("svg",Lk,Ck)}const Sk=re(kk,[["render",Pk]]),Ek=Object.freeze(Object.defineProperty({__proto__:null,default:Sk},Symbol.toStringTag,{value:"Module"})),Tk={},Ok={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Rk=et("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 6h16M4 12h16M4 18h16"},null,-1),Ak=[Rk];function Bk(t,n){return q(),st("svg",Ok,Ak)}const Ik=re(Tk,[["render",Bk]]),Dk=Object.freeze(Object.defineProperty({__proto__:null,default:Ik},Symbol.toStringTag,{value:"Module"})),zk={},jk={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Nk=et("path",{fill:"currentColor",d:"M5 3h2v2H5v5a2 2 0 0 1-2 2a2 2 0 0 1 2 2v5h2v2H5c-1.07-.27-2-.9-2-2v-4a2 2 0 0 0-2-2H0v-2h1a2 2 0 0 0 2-2V5a2 2 0 0 1 2-2m14 0a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h1v2h-1a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-2v-2h2v-5a2 2 0 0 1 2-2a2 2 0 0 1-2-2V5h-2V3h2m-7 12a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m-4 0a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m8 0a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1Z"},null,-1),Hk=[Nk];function Fk(t,n){return q(),st("svg",jk,Hk)}const Vk=re(zk,[["render",Fk]]),$k=Object.freeze(Object.defineProperty({__proto__:null,default:Vk},Symbol.toStringTag,{value:"Module"})),Uk={},Gk={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Zk=et("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),qk=[Zk];function Kk(t,n){return q(),st("svg",Gk,qk)}const Wk=re(Uk,[["render",Kk]]),Jk=Object.freeze(Object.defineProperty({__proto__:null,default:Wk},Symbol.toStringTag,{value:"Module"})),Yk={},Xk={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Qk=et("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),tL=[Qk];function eL(t,n){return q(),st("svg",Xk,tL)}const nL=re(Yk,[["render",eL]]),rL=Object.freeze(Object.defineProperty({__proto__:null,default:nL},Symbol.toStringTag,{value:"Module"})),iL={},oL={xmlns:"http://www.w3.org/2000/svg",class:"text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},sL=et("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"},null,-1),aL=[sL];function lL(t,n){return q(),st("svg",oL,aL)}const cL=re(iL,[["render",lL]]),uL=Object.freeze(Object.defineProperty({__proto__:null,default:cL},Symbol.toStringTag,{value:"Module"})),hL={},dL={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},fL=et("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"},null,-1),pL=[fL];function mL(t,n){return q(),st("svg",dL,pL)}const gL=re(hL,[["render",mL]]),_L=Object.freeze(Object.defineProperty({__proto__:null,default:gL},Symbol.toStringTag,{value:"Module"})),yL={},vL={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},bL=et("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"},null,-1),wL=[bL];function xL(t,n){return q(),st("svg",vL,wL)}const kL=re(yL,[["render",xL]]),LL=Object.freeze(Object.defineProperty({__proto__:null,default:kL},Symbol.toStringTag,{value:"Module"})),ML={__name:"ImageAttribution",props:{attribution:{type:Object,default:()=>({})}},setup(t){return(n,o)=>(q(),st("div",null,[et("p",null,se(t.attribution.label),1)]))}},CL={__name:"ImageDepictions",props:{depictions:{type:Array,default:()=>[]}},setup(t){return(n,o)=>(q(),st("div",null,[(q(!0),st(Gt,null,Le(t.depictions,i=>(q(),st("div",{key:i.id},[et("p",null,se(i.label),1)]))),128))]))}},PL=["innerHTML"],SL={__name:"ImageSource",props:{source:{type:Object,default:()=>({})}},setup(t){return(n,o)=>(q(),st("div",null,[et("p",{innerHTML:t.source.label},null,8,PL)]))}},EL={class:"p-2 text-black dark:text-white opacity-50"},TL={__name:"ImageViewerCounter",props:{currentImage:{type:Number,required:!0},totalImages:{type:Number,required:!0}},setup(t){return(n,o)=>(q(),st("span",EL,se(t.currentImage+1)+"/"+se(t.totalImages),1))}},OL={},RL={type:"button",class:"p-2 cursor-pointer opacity-50 bg-base-content text-base-background",title:"Next image"};function AL(t,n){const o=ft("IconArrowRight");return q(),st("button",RL,[rt(o,{class:"h-8 w-8"})])}const BL=re(OL,[["render",AL]]),IL={},DL={type:"button",class:"p-2 cursor-pointer opacity-50 bg-base-content text-base-background",title:"Previous image"};function zL(t,n){const o=ft("IconArrowLeft");return q(),st("button",DL,[rt(o,{class:"h-8 w-8"})])}const jL=re(IL,[["render",zL]]),NL={},HL={class:"p-2 box-border flex justify-between"};function FL(t,n){return q(),st("div",HL,[et("div",null,[Te(t.$slots,"default")]),et("div",null,[Te(t.$slots,"right")])])}const VL=re(NL,[["render",FL]]),$L={},UL={type:"button",class:"p-2 cursor-pointer opacity-50 text-base-content"};function GL(t,n){const o=ft("IconClose");return q(),st("button",UL,[rt(o)])}const ZL=re($L,[["render",GL]]),qL={class:"fixed z-[10000] h-full overflow-y-hidden overflow-x-hidden w-full top-0 left-0 flex flex-col items-center justify-center backdrop-blur-md bg-base-foreground"},KL={class:"absolute rounded-t-lg w-auto max-h-full h-auto top-12 bottom-44 left-0 right-0 flex justify-center align-middle"},WL=["alt","src"],JL={class:"bottom-0 fixed max-w-full w-full"},YL={class:"text-base-content text-sm attributions p-6 align-middle flex justify-between flex-col text-center"},XL={class:"flex justify-center"},QL={__name:"ImageViewer.global",props:{index:{type:Number,required:!0},images:{type:Array,default:()=>[]},next:{type:Boolean,default:!1},previous:{type:Boolean,default:!1}},emits:["close","previous","next","selectIndex"],setup(t,{emit:n}){const o=t,i=({key:f})=>{switch(f){case"ArrowLeft":o.previous&&n("previous");break;case"ArrowRight":o.next&&n("next");break;case"Escape":n("close");break}},l=Xt(null),c=Xt(!1),h=_e(()=>o.images[o.index]);return document.addEventListener("keyup",i),an(()=>{l.value.addEventListener("load",()=>c.value=!1),document.body.classList.add("overflow-hidden")}),Zr(()=>{document.removeEventListener("keyup",i),document.body.classList.remove("overflow-hidden")}),Ke(()=>o.index,()=>c.value=!0),(f,m)=>{const g=ft("VSpinner");return q(),st("div",qL,[et("div",{class:"min-w-96 dark:bg-slate-900 rounded-lg shadow-sm mb-24",onClick:m[3]||(m[3]=hs(()=>{},["stop"]))},[et("div",KL,[c.value?(q(),At(g,{key:0})):Vt("",!0),et("img",{ref_key:"imageElement",ref:l,class:"mx-auto cursor-zoom-out w-auto max-w-full max-h-full h-auto my-auto",alt:h.value.depictions.map(y=>y.label).join(";"),src:h.value.original,onClick:m[0]||(m[0]=y=>n("close"))},null,8,WL),t.next?(q(),At(BL,{key:1,class:"right-0 absolute my-auto top-1/2 -translate-y-1/2",onClick:m[1]||(m[1]=y=>n("next"))})):Vt("",!0),t.previous?(q(),At(jL,{key:2,class:"left-0 absolute my-auto top-1/2 -translate-y-1/2",onClick:m[2]||(m[2]=y=>n("previous"))})):Vt("",!0)])]),et("div",JL,[et("div",YL,[rt(CL,{class:"my-auto",depictions:h.value.depictions},null,8,["depictions"]),rt(ML,{class:"my-auto",attribution:h.value.attribution},null,8,["attribution"]),rt(SL,{class:"my-auto",source:h.value.source},null,8,["source"])]),et("div",XL,[rt(Ed,{class:"pb-2",current:t.index,images:t.images,onSelectIndex:m[4]||(m[4]=y=>n("selectIndex",y)),onClick:m[5]||(m[5]=hs(()=>{},["stop"]))},null,8,["current","images"])])]),rt(VL,{class:"w-full absolute top-0 h-12 left-0 items-center"},{right:mt(()=>[rt(ZL,{onClick:m[6]||(m[6]=y=>n("close"))})]),default:mt(()=>[rt(TL,{"current-image":t.index,"total-images":t.images.length},null,8,["current-image","total-images"])]),_:1})])}}},tM=Object.freeze(Object.defineProperty({__proto__:null,default:QL},Symbol.toStringTag,{value:"Module"})),eM={class:"w-full p-4 md:p-4 flex flex-row box-border justify-between items-center"},nM=et("span",null,null,-1),rM={class:"bg-base-foreground overflow-x-auto h-full md:h-auto max-h-full"},iM={__name:"VModal.global",emits:["close"],setup(t,{emit:n}){const o=i=>{i.key==="Escape"&&(i.stopPropagation(),n("close"))};return an(()=>{document.addEventListener("keydown",o),document.body.classList.add("overflow-hidden")}),Zr(()=>{document.removeEventListener("keydown",o),document.body.classList.remove("overflow-hidden")}),(i,l)=>{const c=ft("IconClose");return q(),st("div",{class:"fixed top-0 left-0 w-full h-screen max-h-screen flex flex-col justify-center bg-black bg-opacity-50 z-[2000]",onClick:l[2]||(l[2]=h=>n("close")),onKey:l[3]||(l[3]=hs(h=>n("close"),["stop"]))},[et("div",{class:"h-full md:h-auto mx-auto md:max-h-[70vh] bg-base-foreground container",onClick:l[1]||(l[1]=hs(()=>{},["stop"]))},[et("div",eM,[Te(i.$slots,"header",{},()=>[nM]),rt(c,{class:"w-6 h-6 cursor-pointer opacity-50",onClick:l[0]||(l[0]=()=>n("close"))})]),et("div",rM,[Te(i.$slots,"default")]),et("div",null,[Te(i.$slots,"footer")])])],32)}}},oM=Object.freeze(Object.defineProperty({__proto__:null,default:iM},Symbol.toStringTag,{value:"Module"})),sM={key:1},aM={__name:"ClientOnly.global",setup(t){const n=Xt(!1);return an(()=>{n.value=!0}),(o,i)=>n.value?Te(o.$slots,"default",{key:0}):(q(),st("div",sM))}},lM=Object.freeze(Object.defineProperty({__proto__:null,default:aM},Symbol.toStringTag,{value:"Module"})),cM={class:"inline-flex items-center text-sm"},uM={__name:"TabItem.global",props:{to:{type:[String,Object],required:!0}},setup(t){return(n,o)=>{const i=ft("router-link");return q(),st("li",cM,[rt(i,{class:"p-2 pb-2 block py-2 pr-4 pl-3 text-gray-700 border-b-2 border-transparent","active-class":"border-b-2 border-blue-500 text-primary-500",to:t.to},{default:mt(()=>[Te(n.$slots,"default")]),_:3},8,["to"])])}}},hM=Object.freeze(Object.defineProperty({__proto__:null,default:uM},Symbol.toStringTag,{value:"Module"})),dM={},fM={class:"inline-flex items-center space-x-1 md:space-x-3"};function pM(t,n){return q(),st("ul",fM,[Te(t.$slots,"default")])}const mM=re(dM,[["render",pM]]),gM=Object.freeze(Object.defineProperty({__proto__:null,default:mM},Symbol.toStringTag,{value:"Module"})),_M={},yM={class:"relative sm:rounded-lg"},vM={class:"w-full text-sm text-left text-gray-500 dark:text-gray-400"};function bM(t,n){return q(),st("div",yM,[et("table",vM,[Te(t.$slots,"default")])])}const wM=re(_M,[["render",bM]]),xM=Object.freeze(Object.defineProperty({__proto__:null,default:wM},Symbol.toStringTag,{value:"Module"})),kM={},LM={class:"normal-case text-xs"};function MM(t,n){return q(),st("tbody",LM,[Te(t.$slots,"default")])}const CM=re(kM,[["render",MM]]),PM=Object.freeze(Object.defineProperty({__proto__:null,default:CM},Symbol.toStringTag,{value:"Module"})),SM={},EM={class:"px-4 py-4"};function TM(t,n){return q(),st("td",EM,[Te(t.$slots,"default")])}const OM=re(SM,[["render",TM]]),RM=Object.freeze(Object.defineProperty({__proto__:null,default:OM},Symbol.toStringTag,{value:"Module"})),AM={},BM={class:"bg-base-foreground border-b border-base-border"};function IM(t,n){return q(),st("tr",BM,[Te(t.$slots,"default")])}const DM=re(AM,[["render",IM]]),zM=Object.freeze(Object.defineProperty({__proto__:null,default:DM},Symbol.toStringTag,{value:"Module"})),jM={},NM={class:"text-xs text-base-content uppercase bg-base-background"};function HM(t,n){return q(),st("thead",NM,[Te(t.$slots,"default")])}const FM=re(jM,[["render",HM]]),VM=Object.freeze(Object.defineProperty({__proto__:null,default:FM},Symbol.toStringTag,{value:"Module"})),$M={},UM={class:"px-4 py-3"};function GM(t,n){return q(),st("th",UM,[Te(t.$slots,"default")])}const ZM=re($M,[["render",GM]]),qM=Object.freeze(Object.defineProperty({__proto__:null,default:ZM},Symbol.toStringTag,{value:"Module"})),KM={};function WM(t,n){return q(),st("tr",null,[Te(t.$slots,"default")])}const JM=re(KM,[["render",WM]]),YM=Object.freeze(Object.defineProperty({__proto__:null,default:JM},Symbol.toStringTag,{value:"Module"})),XM={key:1},QM=et("h1",{class:"font-medium text-base px-1"},"Report a problem",-1),tC={class:"font-normal p-5 pt-0 text-base"},eC=et("span",null,"My issue is with:",-1),nC={class:"mx-5 my-2"},rC=["href"],iC={key:0,class:"text-sm"},oC="https://github.com/SpeciesFileGroup/taxonpages/issues/new/choose",sC={__name:"TrackerReport.global",props:{buttonClass:{type:String,default:"pl-0 pr-0 pt-0 pb-0"},label:{type:String,default:void 0},icon:{type:Boolean,default:!1}},setup(t){const{issue_trackers:n}={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',url:null,project_token:null,copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],project_name:"My project",project_citation:null,project_url:null,project_authors:null},o=Xt(!1);function i(){n?o.value=!0:window.open(oC,"_self")}return(l,c)=>{const h=ft("IconGithub"),f=ft("VButton"),m=ft("VModal");return q(),st(Gt,null,[rt(f,{type:"button",title:"Report a problem",class:hn(["flex gap-2 items-center",t.buttonClass]),onClick:i},{default:mt(()=>[t.icon?(q(),At(h,{key:0,class:"w-5 h-5"})):Vt("",!0),t.label?(q(),st("span",XM,se(t.label),1)):Vt("",!0)]),_:1},8,["class"]),o.value?(q(),At(m,{key:0,class:"text-base-content",onClose:c[0]||(c[0]=g=>o.value=!1)},{header:mt(()=>[QM]),default:mt(()=>[et("div",tC,[eC,et("ul",nC,[(q(!0),st(Gt,null,Le(qt(n),g=>(q(),st("li",null,[et("a",{href:g.url},se(g.label),9,rC),g.description?(q(),st("span",iC," - "+se(g.description),1)):Vt("",!0)]))),256))])])]),_:1})):Vt("",!0)],64)}}},aC=Object.freeze(Object.defineProperty({__proto__:null,default:sC},Symbol.toStringTag,{value:"Module"})),lC={__name:"VSkeleton.global",props:{class:{type:String,default:"w-full"},lines:{type:Number,default:1}},setup(t){const n=Dp(),o=_e(()=>{var c;const l=(c=n.default)==null?void 0:c.call(n);return i(l)});function i(l){if(!l)return!0;const[c]=l;let h=c.children;return c.el!==null||h!==null}return(l,c)=>(q(),st(Gt,null,[Te(l.$slots,"default"),o.value?(q(),st("span",{key:0,class:hn(t.class)},[(q(!0),st(Gt,null,Le(t.lines,h=>(q(),st("span",{key:h,class:"inline-block w-full rounded-sm bg-base-muted leading-5 animate-pulse"}," ‌ "))),128))],2)):Vt("",!0)],64))}},cC=Object.freeze(Object.defineProperty({__proto__:null,default:lC},Symbol.toStringTag,{value:"Module"}));const wl=t=>(oh("data-v-b688ef4b"),t=t(),sh(),t),uC=wl(()=>et("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1)),hC=wl(()=>et("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)),dC=[uC,hC],fC=wl(()=>et("span",{class:"sr-only"},"Loading...",-1)),pC=["innerHTML"],mC={__name:"VSpinner.global",props:{target:{type:String,default:void 0},fullScreen:{type:Boolean,default:!1},legend:{type:String,default:"Loading, please wait."},resize:{type:Boolean,default:!0},legendStyle:{type:Object,default:()=>({})},legendClass:{type:String,default:"mt-5"},showLegend:{type:Boolean,default:!0},showSpinner:{type:Boolean,default:!0},spinnerPosition:{type:String,default:"top"},logoSize:{type:Object,default:()=>({})},logoClass:{type:String,default:"w-12 h-12"}},setup(t){const n=t,o={position:"fixed",width:"100vw",height:"100vh",top:"0px",left:"0px"},i=Xt(null),l=Xt({}),c=Xt(void 0);an(()=>{h(),n.resize&&!n.fullScreen&&m()}),Zr(()=>clearInterval(c.value));const h=()=>{const g=n.target?document.querySelector(n.target):i.value.parentNode;Object.assign(l.value,n.fullScreen?o:f(g))},f=g=>{const y=g.getBoundingClientRect(),x=window.getComputedStyle(g,null),M=parseInt(x.getPropertyValue("padding-left"),10),D=parseInt(x.getPropertyValue("padding-right"),10),O=parseInt(x.getPropertyValue("padding-top"),10),S=parseInt(x.getPropertyValue("padding-bottom"),10);return{position:"absolute",width:y.width-M-D+"px",height:y.height-O-S+"px"}},m=()=>{c.value=setInterval(h(),500)};return(g,y)=>(q(),st("div",{ref_key:"spinnerElement",ref:i,class:"box-spinner mx-spinner absolute bg-base-foreground opacity-90 h-full flex items-center",style:$r(l.value)},[et("div",{class:hn(["tw-spinner",[`tw-spinner-${t.spinnerPosition}`]])},[t.showSpinner?(q(),st("svg",{key:0,style:$r(t.logoSize),"aria-hidden":"true",class:hn(["text-base-lighter animate-spin fill-primary-color",t.logoClass]),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dC,6)):Vt("",!0),fC,t.legend.length?(q(),st("div",{key:1,class:hn(["text-base-content text-center",t.legendClass]),style:$r(t.legendStyle)},[t.showLegend?(q(),st("span",{key:0,innerHTML:t.legend},null,8,pC)):Vt("",!0),Te(g.$slots,"default",{},void 0,!0)],6)):Vt("",!0)],2)],4))}},gC=re(mC,[["__scopeId","data-v-b688ef4b"]]),_C=Object.freeze(Object.defineProperty({__proto__:null,default:gC},Symbol.toStringTag,{value:"Module"}));function yC(t){vC(t,Object.assign({"/src/components/AddressMaker.global.vue":gx,"/src/components/Animation/AnimationOpacity.global.vue":bx,"/src/components/Autocomplete/Autocomplete.global.vue":Ix,"/src/components/Autocomplete/AutocompleteOtu.global.vue":zx,"/src/components/Button/ButtonExpand.global.vue":Hx,"/src/components/Button/VButton.global.vue":Vx,"/src/components/Card/VCard.global.vue":qx,"/src/components/Card/VCardContent.global.vue":Xx,"/src/components/Card/VCardHeader.global.vue":r1,"/src/components/Clipboard/VClipboard.global.vue":o1,"/src/components/Dropdown/Dropdown.global.vue":c1,"/src/components/Gallery/GalleryImage.global.vue":b1,"/src/components/Icon/IconArrowDown.global.vue":P1,"/src/components/Icon/IconArrowLeft.global.vue":B1,"/src/components/Icon/IconArrowRight.global.vue":F1,"/src/components/Icon/IconCheck.global.vue":K1,"/src/components/Icon/IconClipboard.global.vue":ek,"/src/components/Icon/IconClose.global.vue":lk,"/src/components/Icon/IconDocument.global.vue":mk,"/src/components/Icon/IconDownload.global.vue":xk,"/src/components/Icon/IconGithub.global.vue":Ek,"/src/components/Icon/IconHamburger.global.vue":Dk,"/src/components/Icon/IconJson.global.vue":$k,"/src/components/Icon/IconMinusCircle.global.vue":Jk,"/src/components/Icon/IconPlusCircle.global.vue":rL,"/src/components/Icon/IconSearch.global.vue":uL,"/src/components/Icon/IconTrash.global.vue":_L,"/src/components/Icon/IconWarning.global.vue":LL,"/src/components/ImageViewer/ImageViewer.global.vue":tM,"/src/components/Modal/VModal.global.vue":oM,"/src/components/Ssr/ClientOnly.global.vue":lM,"/src/components/Tab/TabItem.global.vue":hM,"/src/components/Tab/TabMenu.global.vue":gM,"/src/components/Table/VTable.global.vue":xM,"/src/components/Table/VTableBody.global.vue":PM,"/src/components/Table/VTableBodyCell.global.vue":RM,"/src/components/Table/VTableBodyRow.global.vue":zM,"/src/components/Table/VTableHeader.global.vue":VM,"/src/components/Table/VTableHeaderCell.global.vue":qM,"/src/components/Table/VTableHeaderRow.global.vue":YM,"/src/components/TrackerReport.global.vue":aC,"/src/components/VSkeleton.global.vue":cC,"/src/components/VSpinner.global.vue":_C}))}function vC(t,n){Object.entries(n).forEach(([i,l])=>{const c=i.split("/").pop().replace(/\.client.global.\w+$/,"").replace(/\.global.\w+$/,"");t.component(c,l.default)})}const bC=window.location.origin,Su=window.initialState,{app:xl,router:wC,store:xC}=zw({originUrl:bC});Su&&(xC.state.value=Su);ox(xl);yC(xl);wC.isReady().then(()=>{xl.mount("#app")});export{et as a,ie as b,st as c,fh as d,rt as e,Eh as f,q as o,ft as r,se as t,mt as w}; diff --git a/assets/index-53538fcf.css b/assets/index-53538fcf.css new file mode 100644 index 00000000..4c43e809 --- /dev/null +++ b/assets/index-53538fcf.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,400;0,500;0,900;1,100;1,400&display=swap";:root{--color-primary: 0, 0, 0;--color-primary-content: 255, 255, 255;--color-secondary: 14, 165, 233;--color-secondary-content: 255, 255, 255;--color-success: 34, 197, 94;--color-warning: 245, 158, 11;--color-danger: 239, 68, 68;--color-base-foreground: 255, 255, 255;--color-base-background: 245, 247, 251;--color-base-muted: 226, 232, 240;--color-base-soft: 156, 163, 175;--color-base-lighter: 55, 65, 81;--color-base-border: 203, 213, 225;--color-base-content: 0, 0, 0;--color-map-georeference: 239, 68, 68;--color-map-aggregate: 3, 115, 22;--color-map-asserted: 249, 115, 22;--color-map-type-material: 51, 136, 255;--color-map-collection-object: 239, 68, 68;--color-scrollbar-thumb: 156, 163, 175;--color-scrollbar-track: 229, 231, 235;--color-map-shape-opacity: .5;--color-map-marker-opacity: .75}.dark{--color-primary: 23, 23, 23;--color-primary-content: 255, 255, 255;--color-secondary: 14, 165, 233;--color-secondary-content: 255, 255, 255;--color-success: 22, 163, 74;--color-warning: 217, 119, 6;--color-danger: 185, 28, 28;--color-base-background: 23, 23, 23;--color-base-foreground: 38, 38, 38;--color-base-muted: 48, 48, 48;--color-base-soft: 200, 200, 200;--color-base-lighter: 220, 220, 220;--color-base-border: 70, 70, 70;--color-base-content: 255, 255, 255;--color-scrollbar-thumb: 156, 163, 175;--color-scrollbar-track: 55, 65, 81}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure>*):not(:where([class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose] *)){vertical-align:top}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: rgb(var(--color-secondary));--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(video):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(hr+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-left-2{left:-.5rem}.-left-2\.5{left:-.625rem}.-right-full{right:-100%}.bottom-0{bottom:0}.bottom-2{bottom:.5rem}.bottom-44{bottom:11rem}.left-0{left:0}.left-2{left:.5rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.top-0{top:0}.top-1\/2{top:50%}.top-1\/4{top:25%}.top-12{top:3rem}.top-2{top:.5rem}.top-3{top:.75rem}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[10000\]{z-index:10000}.z-\[1000\]{z-index:1000}.z-\[1500\]{z-index:1500}.z-\[2000\]{z-index:2000}.z-\[400\]{z-index:400}.z-\[5000\]{z-index:5000}.z-\[500\]{z-index:500}.\!m-0{margin:0!important}.m-0{margin:0}.m-1{margin:.25rem}.m-4{margin:1rem}.m-\[-1px\]{margin:-1px}.m-auto{margin:auto}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.my-auto{margin-top:auto;margin-bottom:auto}.mb-2{margin-bottom:.5rem}.mb-24{margin-bottom:6rem}.mb-3{margin-bottom:.75rem}.ml-0{margin-left:0}.ml-0\.5{margin-left:.125rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-0\.5{margin-right:.125rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-auto{height:auto}.h-full{height:100%}.h-max{height:-moz-max-content;height:max-content}.h-screen{height:100vh}.max-h-20{max-height:5rem}.max-h-32{max-height:8rem}.max-h-52{max-height:13rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-screen{min-height:100vh}.w-1{width:.25rem}.w-12{width:3rem}.w-24{width:6rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-80{width:20rem}.w-96{width:24rem}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-full{min-width:100%}.max-w-full{max-width:100%}.flex-grow{flex-grow:1}.origin-top{transform-origin:top}.origin-top-right{transform-origin:top right}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-0{--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-100{--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.cursor-zoom-in{cursor:zoom-in}.cursor-zoom-out{cursor:zoom-out}.resize{resize:both}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-base-border{--tw-border-opacity: 1;border-color:rgba(var(--color-base-border),var(--tw-border-opacity))}.border-base-muted{--tw-border-opacity: 1;border-color:rgba(var(--color-base-muted),var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-secondary-color{--tw-border-opacity: 1;border-color:rgba(var(--color-secondary),var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-b-base-border{--tw-border-opacity: 1;border-bottom-color:rgba(var(--color-base-border),var(--tw-border-opacity))}.border-opacity-50{--tw-border-opacity: .5}.bg-base-background{--tw-bg-opacity: 1;background-color:rgba(var(--color-base-background),var(--tw-bg-opacity))}.bg-base-content{--tw-bg-opacity: 1;background-color:rgba(var(--color-base-content),var(--tw-bg-opacity))}.bg-base-foreground{--tw-bg-opacity: 1;background-color:rgba(var(--color-base-foreground),var(--tw-bg-opacity))}.bg-base-muted{--tw-bg-opacity: 1;background-color:rgba(var(--color-base-muted),var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-map-aggregate{--tw-bg-opacity: 1;background-color:rgba(var(--color-map-aggregate),var(--tw-bg-opacity))}.bg-map-asserted{--tw-bg-opacity: 1;background-color:rgba(var(--color-map-asserted),var(--tw-bg-opacity))}.bg-map-collection-object{--tw-bg-opacity: 1;background-color:rgba(var(--color-map-collection-object),var(--tw-bg-opacity))}.bg-map-georeference{--tw-bg-opacity: 1;background-color:rgba(var(--color-map-georeference),var(--tw-bg-opacity))}.bg-map-type-material{--tw-bg-opacity: 1;background-color:rgba(var(--color-map-type-material),var(--tw-bg-opacity))}.bg-primary-color{--tw-bg-opacity: 1;background-color:rgba(var(--color-primary),var(--tw-bg-opacity))}.bg-secondary-color{--tw-bg-opacity: 1;background-color:rgba(var(--color-secondary),var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-zinc-800{--tw-bg-opacity: 1;background-color:rgb(39 39 42 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.fill-primary-color{fill:rgb(var(--color-primary))}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-0{padding-left:0}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pr-0{padding-right:0}.pr-1{padding-right:.25rem}.pr-1\.5{padding-right:.375rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-7xl{font-size:4.5rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.text-base-background{--tw-text-opacity: 1;color:rgba(var(--color-base-background),var(--tw-text-opacity))}.text-base-content{--tw-text-opacity: 1;color:rgba(var(--color-base-content),var(--tw-text-opacity))}.text-base-lighter{--tw-text-opacity: 1;color:rgba(var(--color-base-lighter),var(--tw-text-opacity))}.text-base-soft{--tw-text-opacity: 1;color:rgba(var(--color-base-soft),var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity))}.text-primary-content{--tw-text-opacity: 1;color:rgba(var(--color-primary-content),var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-secondary-color{--tw-text-opacity: 1;color:rgba(var(--color-secondary),var(--tw-text-opacity))}.text-secondary-content{--tw-text-opacity: 1;color:rgba(var(--color-secondary-content),var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.text-success{--tw-text-opacity: 1;color:rgba(var(--color-success),var(--tw-text-opacity))}.text-warning{--tw-text-opacity: 1;color:rgba(var(--color-warning),var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-base-muted{--tw-shadow-color: rgb(var(--color-base-muted));--tw-shadow: var(--tw-shadow-colored)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:rgba(255,255,255,.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}:root{--map-tiles-filter: brightness(.6) invert(1) contrast(3) hue-rotate(200deg) saturate(.3) brightness(.7)}.map-point-marker{opacity:var(--color-map-marker-opacity)}.dark .map-tiles{filter:var(--map-tiles-filter, none)}::-webkit-scrollbar{width:6px;height:6px;-webkit-transition:background .3s;transition:background .3s}::-webkit-scrollbar-corner{background:0 0}::-webkit-scrollbar-thumb{border-radius:.25rem;background-color:rgb(var(--color-scrollbar-thumb))}::-webkit-scrollbar-track{background-color:rgb(var(--color-scrollbar-track))}*{box-sizing:content-box}body{--tw-bg-opacity: 1;background-color:rgba(var(--color-base-background),var(--tw-bg-opacity));font-family:Roboto,sans-serif}a{--tw-text-opacity: 1;color:rgba(var(--color-secondary),var(--tw-text-opacity))}.dark{color-scheme:dark}:is(.dark .dark\:prose-invert){--tw-prose-body: var(--tw-prose-invert-body);--tw-prose-headings: var(--tw-prose-invert-headings);--tw-prose-lead: var(--tw-prose-invert-lead);--tw-prose-links: rgb(var(--color-secondary));--tw-prose-bold: var(--tw-prose-invert-bold);--tw-prose-counters: var(--tw-prose-invert-counters);--tw-prose-bullets: var(--tw-prose-invert-bullets);--tw-prose-hr: var(--tw-prose-invert-hr);--tw-prose-quotes: var(--tw-prose-invert-quotes);--tw-prose-quote-borders: var(--tw-prose-invert-quote-borders);--tw-prose-captions: var(--tw-prose-invert-captions);--tw-prose-code: var(--tw-prose-invert-code);--tw-prose-pre-code: var(--tw-prose-invert-pre-code);--tw-prose-pre-bg: var(--tw-prose-invert-pre-bg);--tw-prose-th-borders: var(--tw-prose-invert-th-borders);--tw-prose-td-borders: var(--tw-prose-invert-td-borders)}.placeholder\:text-sm::-moz-placeholder{font-size:.875rem;line-height:1.25rem}.placeholder\:text-sm::placeholder{font-size:.875rem;line-height:1.25rem}.first\:border-t-0:first-child{border-top-width:0px}.last\:border-0:last-child{border-width:0px}.last\:border-b-0:last-child{border-bottom-width:0px}.last\:pr-0:last-child{padding-right:0}.hover\:bg-secondary-color:hover{--tw-bg-opacity: 1;background-color:rgba(var(--color-secondary),var(--tw-bg-opacity))}.hover\:bg-opacity-5:hover{--tw-bg-opacity: .05}.hover\:bg-opacity-80:hover{--tw-bg-opacity: .8}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-primary-content:hover{--tw-text-opacity: 1;color:rgba(var(--color-primary-content),var(--tw-text-opacity))}.hover\:text-slate-500:hover{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}:is(.dark .dark\:border-slate-700){--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity))}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-slate-900){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}:is(.dark .dark\:text-gray-100){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:placeholder\:text-slate-400)::-moz-placeholder{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}:is(.dark .dark\:placeholder\:text-slate-400)::placeholder{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-500:hover){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-slate-300:hover){--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:pl-0{padding-left:0}.sm\:pr-0{padding-right:0}.sm\:text-5xl{font-size:3rem;line-height:1}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\:-right-96{right:-24rem}.md\:mb-0{margin-bottom:0}.md\:ml-2{margin-left:.5rem}.md\:mr-0{margin-right:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:max-h-\[70vh\]{max-height:70vh}.md\:w-3\/4{width:75%}.md\:w-96{width:24rem}.md\:min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:p-4{padding:1rem}}@media print{.print\:hidden{display:none}.print\:flex-wrap{flex-wrap:wrap}.print\:border-0{border-width:0px}.print\:shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}:root{--color-primary: 0, 0, 0;--color-primary-content: 255, 255, 255;--color-secondary: 14, 165, 233;--color-secondary-content: 255, 255, 255;--color-base-foreground: 255, 255, 255;--color-base-background: 245, 247, 251;--color-base-muted: 226, 232, 240;--color-base-soft: 156, 163, 175;--color-base-lighter: 55, 65, 81;--color-base-border: 203, 213, 225;--color-base-content: 0, 0, 0;--color-map-georeference: 239, 68, 68;--color-map-aggregate: 3, 115, 22;--color-map-asserted: 249, 115, 22;--color-map-type-material: 51, 136, 255;--color-map-collection-object: 239, 68, 68;--color-scrollbar-thumb: 156, 163, 175;--color-scrollbar-track: 229, 231, 235;--color-map-shape-opacity: .5;--color-map-marker-opacity: .75}.dark{--color-primary: 23, 23, 23;--color-primary-content: 255, 255, 255;--color-secondary: 14, 165, 233;--color-secondary-content: 255, 255, 255;--color-base-background: 23, 23, 23;--color-base-foreground: 38,38,38;--color-base-muted: 48, 48, 48;--color-base-soft: 200, 200, 200;--color-base-lighter: 220, 220, 220;--color-base-border: 38, 38, 38;--color-base-content: 255, 255, 255;--color-scrollbar-thumb: 156, 163, 175;--color-scrollbar-track: 55, 65, 81}.cached-map-icon{right:20px;top:20px;z-index:1098}[data-v-3caf981b] .disable-zoom-out .leaflet-control-zoom-out{display:none!important}.tree[data-v-b79ba271]{list-style:none;margin:0;padding:0}.tree ul[data-v-b79ba271]{margin-left:14px}.tree li[data-v-b79ba271]{position:relative;margin:0;padding:0 6px;border-left:1px solid rgb(100,100,100)}.tree li[data-v-b79ba271]:last-child{border-left:none}.tree li[data-v-b79ba271]:before{position:relative;top:-.3em;height:1em;width:12px;color:#fff;border-bottom:1px solid rgb(100,100,100);content:"";display:inline-block;left:-6px}.tree li[data-v-b79ba271]:last-child:before{border-left:1px solid rgb(100,100,100)}.otu-synonyms[data-v-a4e98ef8]{list-style:none;border-left:1px solid rgb(100,100,100);padding-left:8px;padding-bottom:8px}.marker-icon,.marker-icon:focus{background-color:#fff;border:1px solid #3388ff;border-radius:50%;margin:-8px 0 0 -8px!important;width:14px!important;height:14px!important;outline:0;transition:opacity ease .3s}.marker-icon-middle,.marker-icon-middle:focus{opacity:.7;margin:-6px 0 0 -6px!important;width:10px!important;height:10px!important}.leaflet-pm-draggable{cursor:move!important}.cursor-marker{cursor:crosshair;pointer-events:none;opacity:0}.cursor-marker.visible{opacity:1!important}.leaflet-pm-invalid{stroke:red;transition:fill ease 0s,stroke ease 0s}.rect-style-marker,.rect-start-marker{opacity:0}.rect-style-marker.visible,.rect-start-marker.visible{opacity:1!important}.vertexmarker-disabled{opacity:.7}.pm-text-marker{width:0;height:0}.pm-textarea{background-color:#fff;color:#000;resize:none;border:none;outline:0;cursor:pointer;border-radius:3px;padding-left:7px;padding-bottom:0;padding-top:4px}.leaflet-pm-draggable .pm-textarea{cursor:move}.pm-textarea:focus,.pm-textarea:focus-within,.pm-textarea:focus-visible,.pm-textarea:active{border:2px solid #000;outline:0}.pm-textarea.pm-disabled{border:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.pm-textarea.pm-hasfocus{cursor:auto}.leaflet-pm-toolbar .leaflet-buttons-control-button{padding:5px;box-sizing:border-box;position:relative;z-index:3}.leaflet-pm-toolbar .leaflet-pm-actions-container a.leaflet-pm-action:first-child:not(.pos-right),.leaflet-pm-toolbar .leaflet-pm-actions-container a.leaflet-pm-action:last-child.pos-right{border-radius:0}.leaflet-pm-toolbar .button-container a.leaflet-buttons-control-button{border-radius:0}.leaflet-pm-toolbar .button-container:last-child a.leaflet-buttons-control-button{border-radius:0 0 2px 2px}.leaflet-pm-toolbar .button-container:first-child a.leaflet-buttons-control-button{border-radius:2px 2px 0 0}.leaflet-pm-toolbar .button-container:last-child a.leaflet-buttons-control-button{border-bottom:none}.leaflet-pm-toolbar .control-fa-icon{font-size:19px;line-height:24px}.leaflet-pm-toolbar .control-icon{width:100%;height:100%;box-sizing:border-box;background-size:contain;background-repeat:no-repeat;background-position:center center}.leaflet-pm-toolbar .leaflet-pm-icon-marker{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjUgKDY3NDY5KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5BdG9tcy9JY29ucy9Ub29scy9NYXJrZXI8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz4KICAgICAgICA8cGF0aCBkPSJNMTUuNSwyNC44NzgyOTU5IEMxNS4yOTA5MjAxLDI0Ljg3NzIyMTkgMTUuMTc0NDg1NywyNC44NDY3ODE3IDE0LjY1OTA4NjYsMjQuMjM1NDE2MyBDMTAuMjE5Njk1NSwxOS40MTE4MDU0IDgsMTUuNTAxNDM5MiA4LDEyLjUwNDMxNzcgQzgsOC4zNTk3OTc0NiAxMS4zNTc4NjQ0LDUgMTUuNSw1IEMxOS42NDIxMzU2LDUgMjMsOC4zNTk3OTc0NiAyMywxMi41MDQzMTc3IEMyMywxNyAxOC4yODc4MjE3LDIxLjkyNjgzNzggMTYuMzMzNjYwMSwyNC4yNDQwMTg2IEMxNS44MjI0NjIyLDI0Ljg1MDE4MDIgMTUuNzA5MDc5OSwyNC44NzkzNjk5IDE1LjUsMjQuODc4Mjk1OSBaIE0xNS41LDE1LjUzMjY5NDggQzE3LjI3NTIwMSwxNS41MzI2OTQ4IDE4LjcxNDI4NTcsMTQuMTE4MDAwNCAxOC43MTQyODU3LDEyLjM3Mjg4NjQgQzE4LjcxNDI4NTcsMTAuNjI3NzcyMyAxNy4yNzUyMDEsOS4yMTMwNzc5MiAxNS41LDkuMjEzMDc3OTIgQzEzLjcyNDc5OSw5LjIxMzA3NzkyIDEyLjI4NTcxNDMsMTAuNjI3NzcyMyAxMi4yODU3MTQzLDEyLjM3Mjg4NjQgQzEyLjI4NTcxNDMsMTQuMTE4MDAwNCAxMy43MjQ3OTksMTUuNTMyNjk0OCAxNS41LDE1LjUzMjY5NDggWiIgaWQ9InBhdGgtMSI+PC9wYXRoPgogICAgPC9kZWZzPgogICAgPGcgaWQ9IlN5bWJvbHMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBdG9tcy9JY29ucy9Ub29scy9NYXJrZXIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zLjAwMDAwMCwgLTMuMDAwMDAwKSI+CiAgICAgICAgICAgIDxtYXNrIGlkPSJtYXNrLTIiIGZpbGw9IndoaXRlIj4KICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgIDwvbWFzaz4KICAgICAgICAgICAgPHVzZSBpZD0iTWFzayIgZmlsbD0iIzVCNUI1QiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjcGF0aC0xIj48L3VzZT4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==)}.leaflet-pm-toolbar .leaflet-pm-icon-polygon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgPGRlZnM+CiAgICA8cGF0aCBpZD0icG9seWdvbi1hIiBkPSJNMTkuNDIwNjg5Miw5LjE2NTA5NzI1IEMxOS4xNTIzNjgxLDguNjY5OTI5MTQgMTksOC4xMDI3NTgzMSAxOSw3LjUgQzE5LDUuNTY3MDAzMzggMjAuNTY3MDAzNCw0IDIyLjUsNCBDMjQuNDMyOTk2Niw0IDI2LDUuNTY3MDAzMzggMjYsNy41IEMyNiw5LjI2MzIzNTk1IDI0LjY5NjE0NzEsMTAuNzIxOTQwNyAyMywxMC45NjQ1NTU2IEwyMywxOS4wMzU0NDQ0IEMyNC42OTYxNDcxLDE5LjI3ODA1OTMgMjYsMjAuNzM2NzY0IDI2LDIyLjUgQzI2LDI0LjQzMjk5NjYgMjQuNDMyOTk2NiwyNiAyMi41LDI2IEMyMC43MzY3NjQsMjYgMTkuMjc4MDU5MywyNC42OTYxNDcxIDE5LjAzNTQ0NDQsMjMgTDEwLjk2NDU1NTYsMjMgQzEwLjcyMTk0MDcsMjQuNjk2MTQ3MSA5LjI2MzIzNTk1LDI2IDcuNSwyNiBDNS41NjcwMDMzOCwyNiA0LDI0LjQzMjk5NjYgNCwyMi41IEM0LDIwLjU2NzAwMzQgNS41NjcwMDMzOCwxOSA3LjUsMTkgQzguMTAyNzU4MzEsMTkgOC42Njk5MjkxNCwxOS4xNTIzNjgxIDkuMTY1MDk3MjUsMTkuNDIwNjg5MiBMMTkuNDIwNjg5Miw5LjE2NTA5NzI1IFogTTIwLjgzNDkwNzMsMTAuNTc5MzA2MyBMMTAuNTc5MzEwOCwyMC44MzQ5MDI3IEMxMC42MDg2NzMxLDIwLjg4OTA4ODggMTAuNjM2NjQ2OSwyMC45NDQxMzcyIDEwLjY2MzE4NDQsMjEgTDE5LjMzNjgxNTYsMjEgQzE5LjY4MjU3NzUsMjAuMjcyMTU0IDIwLjI3MjE1NCwxOS42ODI1Nzc1IDIxLDE5LjMzNjgxNTYgTDIxLDEwLjY2MzE4NDQgQzIwLjk0NDEzNzIsMTAuNjM2NjQ2OSAyMC44ODkwODg4LDEwLjYwODY3MzEgMjAuODM0OTAyNywxMC41NzkzMTA4IFogTTIyLjUsOSBDMjMuMzI4NDI3MSw5IDI0LDguMzI4NDI3MTIgMjQsNy41IEMyNCw2LjY3MTU3Mjg4IDIzLjMyODQyNzEsNiAyMi41LDYgQzIxLjY3MTU3MjksNiAyMSw2LjY3MTU3Mjg4IDIxLDcuNSBDMjEsOC4zMjg0MjcxMiAyMS42NzE1NzI5LDkgMjIuNSw5IFogTTIyLjUsMjQgQzIzLjMyODQyNzEsMjQgMjQsMjMuMzI4NDI3MSAyNCwyMi41IEMyNCwyMS42NzE1NzI5IDIzLjMyODQyNzEsMjEgMjIuNSwyMSBDMjEuNjcxNTcyOSwyMSAyMSwyMS42NzE1NzI5IDIxLDIyLjUgQzIxLDIzLjMyODQyNzEgMjEuNjcxNTcyOSwyNCAyMi41LDI0IFogTTcuNSwyNCBDOC4zMjg0MjcxMiwyNCA5LDIzLjMyODQyNzEgOSwyMi41IEM5LDIxLjY3MTU3MjkgOC4zMjg0MjcxMiwyMSA3LjUsMjEgQzYuNjcxNTcyODgsMjEgNiwyMS42NzE1NzI5IDYsMjIuNSBDNiwyMy4zMjg0MjcxIDYuNjcxNTcyODgsMjQgNy41LDI0IFoiLz4KICA8L2RlZnM+CiAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMyAtMykiPgogICAgPG1hc2sgaWQ9InBvbHlnb24tYiIgZmlsbD0iI2ZmZiI+CiAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BvbHlnb24tYSIvPgogICAgPC9tYXNrPgogICAgPHVzZSBmaWxsPSIjNUI1QjVCIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHhsaW5rOmhyZWY9IiNwb2x5Z29uLWEiLz4KICAgIDxnIGZpbGw9IiM1QjVCNUIiIG1hc2s9InVybCgjcG9seWdvbi1iKSI+CiAgICAgIDxyZWN0IHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIvPgogICAgPC9nPgogIDwvZz4KPC9zdmc+Cg==)}.leaflet-pm-toolbar .leaflet-pm-icon-polyline{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgPGRlZnM+CiAgICA8cGF0aCBpZD0ibGluZS1hIiBkPSJNOS4xNjUwOTcyNSwxOS40MjA2ODkyIEwxOC40MjA2ODkyLDEwLjE2NTA5NzMgQzE4LjE1MjM2ODEsOS42Njk5MjkxNCAxOCw5LjEwMjc1ODMxIDE4LDguNSBDMTgsNi41NjcwMDMzOCAxOS41NjcwMDM0LDUgMjEuNSw1IEMyMy40MzI5OTY2LDUgMjUsNi41NjcwMDMzOCAyNSw4LjUgQzI1LDEwLjQzMjk5NjYgMjMuNDMyOTk2NiwxMiAyMS41LDEyIEMyMC44OTcyNDE3LDEyIDIwLjMzMDA3MDksMTEuODQ3NjMxOSAxOS44MzQ5MDI3LDExLjU3OTMxMDggTDEwLjU3OTMxMDgsMjAuODM0OTAyNyBDMTAuODQ3NjMxOSwyMS4zMzAwNzA5IDExLDIxLjg5NzI0MTcgMTEsMjIuNSBDMTEsMjQuNDMyOTk2NiA5LjQzMjk5NjYyLDI2IDcuNSwyNiBDNS41NjcwMDMzOCwyNiA0LDI0LjQzMjk5NjYgNCwyMi41IEM0LDIwLjU2NzAwMzQgNS41NjcwMDMzOCwxOSA3LjUsMTkgQzguMTAyNzU4MzEsMTkgOC42Njk5MjkxNCwxOS4xNTIzNjgxIDkuMTY1MDk3MjUsMTkuNDIwNjg5MiBaIE0yMS41LDEwIEMyMi4zMjg0MjcxLDEwIDIzLDkuMzI4NDI3MTIgMjMsOC41IEMyMyw3LjY3MTU3Mjg4IDIyLjMyODQyNzEsNyAyMS41LDcgQzIwLjY3MTU3MjksNyAyMCw3LjY3MTU3Mjg4IDIwLDguNSBDMjAsOS4zMjg0MjcxMiAyMC42NzE1NzI5LDEwIDIxLjUsMTAgWiBNNy41LDI0IEM4LjMyODQyNzEyLDI0IDksMjMuMzI4NDI3MSA5LDIyLjUgQzksMjEuNjcxNTcyOSA4LjMyODQyNzEyLDIxIDcuNSwyMSBDNi42NzE1NzI4OCwyMSA2LDIxLjY3MTU3MjkgNiwyMi41IEM2LDIzLjMyODQyNzEgNi42NzE1NzI4OCwyNCA3LjUsMjQgWiIvPgogIDwvZGVmcz4KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zIC0zKSI+CiAgICA8bWFzayBpZD0ibGluZS1iIiBmaWxsPSIjZmZmIj4KICAgICAgPHVzZSB4bGluazpocmVmPSIjbGluZS1hIi8+CiAgICA8L21hc2s+CiAgICA8dXNlIGZpbGw9IiM1QjVCNUIiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2xpbmUtYSIvPgogICAgPGcgZmlsbD0iIzVCNUI1QiIgbWFzaz0idXJsKCNsaW5lLWIpIj4KICAgICAgPHJlY3Qgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K)}.leaflet-pm-toolbar .leaflet-pm-icon-circle{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjUgKDY3NDY5KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5BdG9tcy9JY29ucy9Ub29scy9DaXJjbGU8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz4KICAgICAgICA8cGF0aCBkPSJNMTguMjg5Nzc1MSw2Ljc4NjAyMjc1IEMxOC44OTI0MTMxLDYuMjk0NjQ5ODEgMTkuNjYxNzk3LDYgMjAuNSw2IEMyMi40MzI5OTY2LDYgMjQsNy41NjcwMDMzOCAyNCw5LjUgQzI0LDEwLjMzODIwMyAyMy43MDUzNTAyLDExLjEwNzU4NjkgMjMuMjEzOTc3MiwxMS43MTAyMjQ5IEMyMy43MTk1OTksMTIuODcxMjA1MyAyNCwxNC4xNTI4NTcxIDI0LDE1LjUgQzI0LDIwLjc0NjcwNTEgMTkuNzQ2NzA1MSwyNSAxNC41LDI1IEM5LjI1MzI5NDg4LDI1IDUsMjAuNzQ2NzA1MSA1LDE1LjUgQzUsMTAuMjUzMjk0OSA5LjI1MzI5NDg4LDYgMTQuNSw2IEMxNS44NDcxNDI5LDYgMTcuMTI4Nzk0Nyw2LjI4MDQwMDk4IDE4LjI4OTc3NTEsNi43ODYwMjI3NSBaIE0xNy4xNTA0MjI4LDguNDgxNzU4NiBDMTYuMzI2MzU4MSw4LjE3MDM5MjM2IDE1LjQzMzA3NzcsOCAxNC41LDggQzEwLjM1Nzg2NDQsOCA3LDExLjM1Nzg2NDQgNywxNS41IEM3LDE5LjY0MjEzNTYgMTAuMzU3ODY0NCwyMyAxNC41LDIzIEMxOC42NDIxMzU2LDIzIDIyLDE5LjY0MjEzNTYgMjIsMTUuNSBDMjIsMTQuNTY2OTIyMyAyMS44Mjk2MDc2LDEzLjY3MzY0MTkgMjEuNTE4MjQxNCwxMi44NDk1NzcyIEMyMS4xOTYwMzgzLDEyLjk0NzM5NjggMjAuODU0MTYyMiwxMyAyMC41LDEzIEMxOC41NjcwMDM0LDEzIDE3LDExLjQzMjk5NjYgMTcsOS41IEMxNyw5LjE0NTgzNzc4IDE3LjA1MjYwMzIsOC44MDM5NjE2OSAxNy4xNTA0MjI4LDguNDgxNzU4NiBaIE0xNC41LDE3IEMxMy42NzE1NzI5LDE3IDEzLDE2LjMyODQyNzEgMTMsMTUuNSBDMTMsMTQuNjcxNTcyOSAxMy42NzE1NzI5LDE0IDE0LjUsMTQgQzE1LjMyODQyNzEsMTQgMTYsMTQuNjcxNTcyOSAxNiwxNS41IEMxNiwxNi4zMjg0MjcxIDE1LjMyODQyNzEsMTcgMTQuNSwxNyBaIE0yMC41LDExIEMyMS4zMjg0MjcxLDExIDIyLDEwLjMyODQyNzEgMjIsOS41IEMyMiw4LjY3MTU3Mjg4IDIxLjMyODQyNzEsOCAyMC41LDggQzE5LjY3MTU3MjksOCAxOSw4LjY3MTU3Mjg4IDE5LDkuNSBDMTksMTAuMzI4NDI3MSAxOS42NzE1NzI5LDExIDIwLjUsMTEgWiIgaWQ9InBhdGgtMSI+PC9wYXRoPgogICAgPC9kZWZzPgogICAgPGcgaWQ9IlN5bWJvbHMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBdG9tcy9JY29ucy9Ub29scy9DaXJjbGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zLjAwMDAwMCwgLTMuMDAwMDAwKSI+CiAgICAgICAgICAgIDxtYXNrIGlkPSJtYXNrLTIiIGZpbGw9IndoaXRlIj4KICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgIDwvbWFzaz4KICAgICAgICAgICAgPHVzZSBpZD0iTWFzayIgZmlsbD0iIzVCNUI1QiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjcGF0aC0xIj48L3VzZT4KICAgICAgICAgICAgPGcgaWQ9IkF0b21zL0NvbG9yL0dyZXkiIG1hc2s9InVybCgjbWFzay0yKSIgZmlsbD0iIzVCNUI1QiI+CiAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzAiIGhlaWdodD0iMzAiPjwvcmVjdD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.leaflet-pm-toolbar .leaflet-pm-icon-circle-marker{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KCjxzdmcgdmlld0JveD0iMCAwIDEwMCAxMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjNUI1QjVCIiBzdHJva2Utd2lkdGg9IjgiCiAgICAgZmlsbD0ibm9uZSI+CjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjM1Ii8+CiAgPGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgcj0iMyIgZmlsbD0iIzVCNUI1QiIvPgo8L3N2Zz4=)}.leaflet-pm-toolbar .leaflet-pm-icon-rectangle{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgPGRlZnM+CiAgICA8cGF0aCBpZD0icmVjdGFuZ2xlLWEiIGQ9Ik0yMywxMC45NjQ1NTU2IEwyMywxOS4wMzU0NDQ0IEMyNC42OTYxNDcxLDE5LjI3ODA1OTMgMjYsMjAuNzM2NzY0IDI2LDIyLjUgQzI2LDI0LjQzMjk5NjYgMjQuNDMyOTk2NiwyNiAyMi41LDI2IEMyMC43MzY3NjQsMjYgMTkuMjc4MDU5MywyNC42OTYxNDcxIDE5LjAzNTQ0NDQsMjMgTDEwLjk2NDU1NTYsMjMgQzEwLjcyMTk0MDcsMjQuNjk2MTQ3MSA5LjI2MzIzNTk1LDI2IDcuNSwyNiBDNS41NjcwMDMzOCwyNiA0LDI0LjQzMjk5NjYgNCwyMi41IEM0LDIwLjczNjc2NCA1LjMwMzg1MjkzLDE5LjI3ODA1OTMgNywxOS4wMzU0NDQ0IEw3LDEwLjk2NDU1NTYgQzUuMzAzODUyOTMsMTAuNzIxOTQwNyA0LDkuMjYzMjM1OTUgNCw3LjUgQzQsNS41NjcwMDMzOCA1LjU2NzAwMzM4LDQgNy41LDQgQzkuMjYzMjM1OTUsNCAxMC43MjE5NDA3LDUuMzAzODUyOTMgMTAuOTY0NTU1Niw3IEwxOS4wMzU0NDQ0LDcgQzE5LjI3ODA1OTMsNS4zMDM4NTI5MyAyMC43MzY3NjQsNCAyMi41LDQgQzI0LjQzMjk5NjYsNCAyNiw1LjU2NzAwMzM4IDI2LDcuNSBDMjYsOS4yNjMyMzU5NSAyNC42OTYxNDcxLDEwLjcyMTk0MDcgMjMsMTAuOTY0NTU1NiBaIE0yMSwxMC42NjMxODQ0IEMyMC4yNzIxNTQsMTAuMzE3NDIyNSAxOS42ODI1Nzc1LDkuNzI3ODQ1OTggMTkuMzM2ODE1Niw5IEwxMC42NjMxODQ0LDkgQzEwLjMxNzQyMjUsOS43Mjc4NDU5OCA5LjcyNzg0NTk4LDEwLjMxNzQyMjUgOSwxMC42NjMxODQ0IEw5LDE5LjMzNjgxNTYgQzkuNzI3ODQ1OTgsMTkuNjgyNTc3NSAxMC4zMTc0MjI1LDIwLjI3MjE1NCAxMC42NjMxODQ0LDIxIEwxOS4zMzY4MTU2LDIxIEMxOS42ODI1Nzc1LDIwLjI3MjE1NCAyMC4yNzIxNTQsMTkuNjgyNTc3NSAyMSwxOS4zMzY4MTU2IEwyMSwxMC42NjMxODQ0IFogTTcuNSw5IEM4LjMyODQyNzEyLDkgOSw4LjMyODQyNzEyIDksNy41IEM5LDYuNjcxNTcyODggOC4zMjg0MjcxMiw2IDcuNSw2IEM2LjY3MTU3Mjg4LDYgNiw2LjY3MTU3Mjg4IDYsNy41IEM2LDguMzI4NDI3MTIgNi42NzE1NzI4OCw5IDcuNSw5IFogTTIyLjUsOSBDMjMuMzI4NDI3MSw5IDI0LDguMzI4NDI3MTIgMjQsNy41IEMyNCw2LjY3MTU3Mjg4IDIzLjMyODQyNzEsNiAyMi41LDYgQzIxLjY3MTU3MjksNiAyMSw2LjY3MTU3Mjg4IDIxLDcuNSBDMjEsOC4zMjg0MjcxMiAyMS42NzE1NzI5LDkgMjIuNSw5IFogTTIyLjUsMjQgQzIzLjMyODQyNzEsMjQgMjQsMjMuMzI4NDI3MSAyNCwyMi41IEMyNCwyMS42NzE1NzI5IDIzLjMyODQyNzEsMjEgMjIuNSwyMSBDMjEuNjcxNTcyOSwyMSAyMSwyMS42NzE1NzI5IDIxLDIyLjUgQzIxLDIzLjMyODQyNzEgMjEuNjcxNTcyOSwyNCAyMi41LDI0IFogTTcuNSwyNCBDOC4zMjg0MjcxMiwyNCA5LDIzLjMyODQyNzEgOSwyMi41IEM5LDIxLjY3MTU3MjkgOC4zMjg0MjcxMiwyMSA3LjUsMjEgQzYuNjcxNTcyODgsMjEgNiwyMS42NzE1NzI5IDYsMjIuNSBDNiwyMy4zMjg0MjcxIDYuNjcxNTcyODgsMjQgNy41LDI0IFoiLz4KICA8L2RlZnM+CiAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMyAtMykiPgogICAgPG1hc2sgaWQ9InJlY3RhbmdsZS1iIiBmaWxsPSIjZmZmIj4KICAgICAgPHVzZSB4bGluazpocmVmPSIjcmVjdGFuZ2xlLWEiLz4KICAgIDwvbWFzaz4KICAgIDx1c2UgZmlsbD0iIzVCNUI1QiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjcmVjdGFuZ2xlLWEiLz4KICAgIDxnIGZpbGw9IiM1QjVCNUIiIG1hc2s9InVybCgjcmVjdGFuZ2xlLWIpIj4KICAgICAgPHJlY3Qgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K)}.leaflet-pm-toolbar .leaflet-pm-icon-delete{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjUgKDY3NDY5KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5BdG9tcy9JY29ucy9Ub29scy9FcmFzZXI8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz4KICAgICAgICA8cGF0aCBkPSJNMTcuNzg3NDIxOSwxOC40ODEyNTUyIEwxMS42NDgwMDc5LDEzLjM0OTgxODQgTDYuNDA0NjYwMDksMTkuMzgxNjAwMSBMMTAuNTUzOTE1NiwyMi45ODg0OTI5IEwxMy44NjkzNCwyMi45ODg0OTI5IEwxNy43ODc0MjE5LDE4LjQ4MTI1NTIgWiBNMTYuNTA3NDI1MiwyMi45ODg0OTI5IEwyNi4wMDAwMDAyLDIyLjk4ODQ5MjkgTDI2LjAwMDAwMDIsMjQuOTg4NDkyOSBMMTAuMDAwMDAwMiwyNC45ODg0OTI5IEw5LjgwNzA4MzEzLDI0Ljk4ODQ5MjkgTDUuMDkyNTQyMDQsMjAuODkxMDE5MiBDNC4yNTg5MTI4NSwyMC4xNjYzNTY0IDQuMTcwNTc4MTQsMTguOTAzMTExMiA0Ljg5NTI0MDkzLDE4LjA2OTQ4MiBMMTYuMDQ4MjQ0NCw1LjIzOTQxOTE2IEMxNi43NzI5MDcyLDQuNDA1Nzg5OTggMTguMDM2MTUyNSw0LjMxNzQ1NTI2IDE4Ljg2OTc4MTYsNS4wNDIxMTgwNiBMMjQuOTA3NDU4MywxMC4yOTA1OTAzIEMyNS43NDEwODc1LDExLjAxNTI1MzEgMjUuODI5NDIyMiwxMi4yNzg0OTgzIDI1LjEwNDc1OTQsMTMuMTEyMTI3NSBMMTYuNTA3NDI1MiwyMi45ODg0OTI5IFoiIGlkPSJwYXRoLTEiPjwvcGF0aD4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSJTeW1ib2xzIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iQXRvbXMvSWNvbnMvVG9vbHMvRXJhc2VyIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMy4wMDAwMDAsIC0zLjAwMDAwMCkiPgogICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+CiAgICAgICAgICAgICAgICA8dXNlIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L21hc2s+CiAgICAgICAgICAgIDx1c2UgaWQ9IkNvbWJpbmVkLVNoYXBlIiBmaWxsPSIjNUI1QjVCIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.leaflet-pm-toolbar .leaflet-pm-icon-edit{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgPGRlZnM+CiAgICA8cGF0aCBpZD0iZWRpdF9hbmNob3ItYSIgZD0iTTEzLjUsMTEgQzExLjU2NzAwMzQsMTEgMTAsOS40MzI5OTY2MiAxMCw3LjUgQzEwLDUuNTY3MDAzMzggMTEuNTY3MDAzNCw0IDEzLjUsNCBDMTUuNDMyOTk2Niw0IDE3LDUuNTY3MDAzMzggMTcsNy41IEMxNyw5LjQzMjk5NjYyIDE1LjQzMjk5NjYsMTEgMTMuNSwxMSBaIE0xMy41LDkgQzE0LjMyODQyNzEsOSAxNSw4LjMyODQyNzEyIDE1LDcuNSBDMTUsNi42NzE1NzI4OCAxNC4zMjg0MjcxLDYgMTMuNSw2IEMxMi42NzE1NzI5LDYgMTIsNi42NzE1NzI4OCAxMiw3LjUgQzEyLDguMzI4NDI3MTIgMTIuNjcxNTcyOSw5IDEzLjUsOSBaIE0xMi4wMDAyODg5LDcuNTI5NzM4OTMgQzEyLjAxMjU5ODMsOC4xNjI3MzY3MiAxMi40MTcwMTk3LDguNjk5NjY0MyAxMi45ODA3MTExLDguOTA3Njc5NjYgTDMsMTUgTDMsMTMgTDEyLjAwMDI4ODksNy41Mjk3Mzg5MyBaIE0xNC4yMTcyNzIyLDYuMTgyMjg0NzIgTDE5LjQ1MzEyNSwzIEwyMi42NTg5MzU1LDMgTDE0Ljk4OTEwMiw3LjY4MTczODg1IEMxNC45OTYyOTcxLDcuNjIyMTY0NTkgMTUsNy41NjE1MTQ3MiAxNSw3LjUgQzE1LDYuOTMxMzgzODEgMTQuNjgzNjA5OCw2LjQzNjY2NDUgMTQuMjE3MjcyMiw2LjE4MjI4NDcyIFogTTIzLjQ0MzQwNDIsMTkuMjg1MTczNiBMMjAuMTI4Mjc5OSwxOS4yODUxNzM2IEwyMS44NzI5OTgzLDIzLjUzNDk1MjUgQzIxLjk5NDUyOTYsMjMuODI5NTc3MyAyMS44NTU2NTQ2LDI0LjE1OTkyMDkgMjEuNTc3ODczNCwyNC4yODQ5MjA4IEwyMC4wNDE0Njc1LDI0Ljk1NDUxNDIgQzE5Ljc1NTA2MTMsMjUuMDc5NTE0MSAxOS40MzM4NzM4LDI0LjkzNjY3MDQgMTkuMzEyMzQyNiwyNC42NTA5NTE4IEwxNy42NTQ0MzY3LDIwLjYxNTQ1NDEgTDE0Ljk0NjE4NzMsMjMuNDAxMDE1MSBDMTQuNTg1MjgxMSwyMy43NzIxNzExIDE0LDIzLjQ4NjA0NjMgMTQsMjIuOTk5MjY1MyBMMTQsOS41NzE4MzUzMyBDMTQsOS4wNTkzMzU2MSAxNC42MjI1MzExLDguODA5NDkyIDE0Ljk0NjE1Niw5LjE3MDA4NTU1IEwyMy44MzQwMjkyLDE4LjMxMjAxNzkgQzI0LjE5MjUyOTEsMTguNjYxMzYxNSAyMy45Mjc5OTc5LDE5LjI4NTE3MzYgMjMuNDQzNDA0MiwxOS4yODUxNzM2IFoiLz4KICA8L2RlZnM+CiAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMyAtMykiPgogICAgPG1hc2sgaWQ9ImVkaXRfYW5jaG9yLWIiIGZpbGw9IiNmZmYiPgogICAgICA8dXNlIHhsaW5rOmhyZWY9IiNlZGl0X2FuY2hvci1hIi8+CiAgICA8L21hc2s+CiAgICA8dXNlIGZpbGw9IiM1QjVCNUIiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2VkaXRfYW5jaG9yLWEiLz4KICAgIDxnIGZpbGw9IiM1QjVCNUIiIG1hc2s9InVybCgjZWRpdF9hbmNob3ItYikiPgogICAgICA8cmVjdCB3aWR0aD0iMzAiIGhlaWdodD0iMzAiLz4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPgo=)}.leaflet-pm-toolbar .leaflet-pm-icon-drag{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgPGRlZnM+CiAgICA8cGF0aCBpZD0ibW92ZS1hIiBkPSJNMjEsMTQgTDIxLDEwIEwyNywxNSBMMjEsMjAgTDIxLDE2IEwxNiwxNiBMMTYsMjEgTDIwLDIxIEwxNSwyNyBMMTAsMjEgTDE0LDIxIEwxNCwxNiBMOSwxNiBMOSwyMCBMMywxNSBMOSwxMCBMOSwxNCBMMTQsMTQgTDE0LDkgTDEwLDkgTDE1LDMgTDIwLDkgTDE2LDkgTDE2LDE0IEwyMSwxNCBaIi8+CiAgPC9kZWZzPgogIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMgLTMpIj4KICAgIDxtYXNrIGlkPSJtb3ZlLWIiIGZpbGw9IiNmZmYiPgogICAgICA8dXNlIHhsaW5rOmhyZWY9IiNtb3ZlLWEiLz4KICAgIDwvbWFzaz4KICAgIDx1c2UgZmlsbD0iI0Q4RDhEOCIgeGxpbms6aHJlZj0iI21vdmUtYSIvPgogICAgPGcgZmlsbD0iIzVCNUI1QiIgbWFzaz0idXJsKCNtb3ZlLWIpIj4KICAgICAgPHJlY3Qgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K)}.leaflet-pm-toolbar .leaflet-pm-icon-cut{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjUgKDY3NDY5KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5BdG9tcy9JY29ucy9Ub29scy9TY2lzc29yczwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxkZWZzPgogICAgICAgIDxwYXRoIGQ9Ik0xMi45NjkxNTc0LDEzLjQ5Mzk0MzUgTDIxLjAzMTcwMzIsNS41NDE2NzAxMyBMMjMuNDY0OTQ5OSw1LjY3NzIyOTU3IEwxNy4wNDcwNzEzLDE0LjUxMDY4MTYgTDI3LjU2NjAzMzYsMTcuMTMzMzUzNSBMMjUuNzg5MTk0NCwxOC44MDEyNTg4IEwxNC41ODU0OTUxLDE3Ljg5ODc1MDYgTDEzLjY0ODc5NTUsMTkuMTg4MDA3IEMxMy43OTQ2MzksMTkuMjY1MDk1OCAxMy45MzY3OTg1LDE5LjM1MzQ0MTcgMTQuMDc0MTM3NywxOS40NTMyMjQ1IEMxNS42Mzc5NjQ4LDIwLjU4OTQxMTQgMTUuOTg0NjM1NywyMi43NzgyMDUyIDE0Ljg0ODQ0ODgsMjQuMzQyMDMyNCBDMTMuNzEyMjYxOSwyNS45MDU4NTk1IDExLjUyMzQ2ODEsMjYuMjUyNTMwNCA5Ljk1OTY0MDk2LDI1LjExNjM0MzUgQzguMzk1ODEzODQsMjMuOTgwMTU2NSA4LjA0OTE0Mjk2LDIxLjc5MTM2MjcgOS4xODUzMjk4NiwyMC4yMjc1MzU2IEM5Ljc0NTg3Mjc2LDE5LjQ1NjAxNDUgMTAuNTYyNjE4OCwxOC45ODA3NDc1IDExLjQzNDEyMTgsMTguODMzNjQwNyBMMTIuNjgwNTY1NiwxNy4xMTgwNTc5IEwxMi41MjM5NzI0LDE2LjM3NDcyMTYgTDExLjk1MDY5MzIsMTUuMzAxMjM5MSBMOS44OTMxMDY0NiwxNC43ODgyMjUxIEM5LjEzMDkzNzk2LDE1LjIzNTcyNjEgOC4xOTk3Nzg1NCwxNS4zOTY2NDQ3IDcuMjc0NDUzNTUsMTUuMTY1OTM1MiBDNS4zOTg4NzUxOSwxNC42OTgzMDEgNC4yNTc1MTA5NCwxMi43OTg3NTE5IDQuNzI1MTQ1MTUsMTAuOTIzMTczNiBDNS4xOTI3NzkzNSw5LjA0NzU5NTE5IDcuMDkyMzI4NDYsNy45MDYyMzA5NCA4Ljk2NzkwNjgyLDguMzczODY1MTUgQzEwLjg0MzQ4NTIsOC44NDE0OTkzNSAxMS45ODQ4NDk0LDEwLjc0MTA0ODUgMTEuNTE3MjE1MiwxMi42MTY2MjY4IEMxMS40NzYxNDY0LDEyLjc4MTM0NDkgMTEuNDI0MDMzNSwxMi45NDA0MDAxIDExLjM2MTg2MjcsMTMuMDkzMTk5OSBMMTIuOTY5MTU3NCwxMy40OTM5NDM1IFogTTcuNzU4Mjk3MzUsMTMuMjI1MzQzOCBDOC41NjIxMTY2NCwxMy40MjU3NTg0IDkuMzc2MjA5MTIsMTIuOTM2NjAyMyA5LjU3NjYyMzc4LDEyLjEzMjc4MyBDOS43NzcwMzg0NCwxMS4zMjg5NjM3IDkuMjg3ODgyMzMsMTAuNTE0ODcxMyA4LjQ4NDA2MzAzLDEwLjMxNDQ1NjYgQzcuNjgwMjQzNzMsMTAuMTE0MDQxOSA2Ljg2NjE1MTI2LDEwLjYwMzE5OCA2LjY2NTczNjYsMTEuNDA3MDE3MyBDNi40NjUzMjE5NCwxMi4yMTA4MzY2IDYuOTU0NDc4MDUsMTMuMDI0OTI5MSA3Ljc1ODI5NzM1LDEzLjIyNTM0MzggWiBNMTAuODAzMzYzOSwyMS40MDMxMDYxIEMxMC4zMTY0MjY2LDIyLjA3MzMxNzcgMTAuNDY0OTk5OCwyMy4wMTEzNzIyIDExLjEzNTIxMTUsMjMuNDk4MzA5NSBDMTEuODA1NDIzMSwyMy45ODUyNDY3IDEyLjc0MzQ3NzYsMjMuODM2NjczNSAxMy4yMzA0MTQ4LDIzLjE2NjQ2MTkgQzEzLjcxNzM1MjEsMjIuNDk2MjUwMiAxMy41Njg3Nzg4LDIxLjU1ODE5NTcgMTIuODk4NTY3MiwyMS4wNzEyNTg1IEMxMi4yMjgzNTU2LDIwLjU4NDMyMTIgMTEuMjkwMzAxMSwyMC43MzI4OTQ1IDEwLjgwMzM2MzksMjEuNDAzMTA2MSBaIiBpZD0icGF0aC0xIj48L3BhdGg+CiAgICA8L2RlZnM+CiAgICA8ZyBpZD0iU3ltYm9scyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkF0b21zL0ljb25zL1Rvb2xzL1NjaXNzb3JzIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMy4wMDAwMDAsIC0zLjAwMDAwMCkiPgogICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+CiAgICAgICAgICAgICAgICA8dXNlIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L21hc2s+CiAgICAgICAgICAgIDx1c2UgaWQ9Ik1hc2siIGZpbGw9IiM1QjVCNUIiIGZpbGwtcnVsZT0ibm9uemVybyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTYuMDkzMTk0LCAxNS42NjMzNTEpIHJvdGF0ZSgtMzIuMDAwMDAwKSB0cmFuc2xhdGUoLTE2LjA5MzE5NCwgLTE1LjY2MzM1MSkgIiB4bGluazpocmVmPSIjcGF0aC0xIj48L3VzZT4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==)}.leaflet-pm-toolbar .leaflet-pm-icon-snapping{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU3LjEgKDgzMDg4KSAtIGh0dHBzOi8vc2tldGNoLmNvbSAtLT4KICAgIDx0aXRsZT5BdG9tcy9JY29ucy9Ub29scy9NYWduZXQ8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz4KICAgICAgICA8cGF0aCBkPSJNMjEuOTk5NDc1OSwxMC45NDI4MTgzIEwyMS45OTk5OTg1LDE2LjM3MTA0MTcgQzIyLDE2LjY4NzIwMDcgMjIsMTcuMDA1ODI3OCAyMiwxNy4zMjY5NDExIEMyMiwyMS41NjQ2NTQ1IDE4LjY0MjEzNTYsMjUgMTQuNSwyNSBDMTAuMzU3ODY0NCwyNSA3LDIxLjU2NDY1NDUgNywxNy4zMjY5NDExIEw3LjAwMDg3NTA4LDEwLjk5MDc1MDcgTDExLjAwMjI4MDgsMTAuOTk4NDEyNSBDMTEuMDAxNzAzMywxMS42OTgwMTE0IDExLjAwMTI0NywxMi40MTY4MjQ4IDExLjAwMDg5OTIsMTMuMTU1NDg4NyBMMTEsMTcuMzI2OTQxMSBDMTEsMTkuMzc1NjgwOSAxMi41ODc2ODQxLDIxIDE0LjUsMjEgQzE2LjQxMjMxNTksMjEgMTgsMTkuMzc1NjgwOSAxOCwxNy4zMjY5NDExIEMxOCwxNS4wNzAyMDMyIDE3Ljk5OTU2OTYsMTIuOTYxOTY2OCAxNy45OTg1MzksMTAuOTkxMDAzMiBMMjEuOTk5NDc1OSwxMC45NDI4MTgzIFogTTEwLDcgQzEwLjU1MjI4NDcsNyAxMSw3LjQ0NzcxNTI1IDExLDggTDExLDEwIEw3LDEwIEw3LDggQzcsNy40NDc3MTUyNSA3LjQ0NzcxNTI1LDcgOCw3IEwxMCw3IFogTTIxLDcgQzIxLjU1MjI4NDcsNyAyMiw3LjQ0NzcxNTI1IDIyLDggTDIyLDEwIEwxOCwxMCBMMTgsOCBDMTgsNy40NDc3MTUyNSAxOC40NDc3MTUzLDcgMTksNyBMMjEsNyBaIiBpZD0icGF0aC0xIj48L3BhdGg+CiAgICA8L2RlZnM+CiAgICA8ZyBpZD0iU3ltYm9scyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkF0b21zL0ljb25zL1Rvb2xzL01hZ25ldCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMuMDAwMDAwLCAtMy4wMDAwMDApIj4KICAgICAgICAgICAgPG1hc2sgaWQ9Im1hc2stMiIgZmlsbD0id2hpdGUiPgogICAgICAgICAgICAgICAgPHVzZSB4bGluazpocmVmPSIjcGF0aC0xIj48L3VzZT4KICAgICAgICAgICAgPC9tYXNrPgogICAgICAgICAgICA8dXNlIGlkPSJNYXNrIiBmaWxsPSIjNUI1QjVCIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0LjUwMDAwMCwgMTYuMDAwMDAwKSByb3RhdGUoNDUuMDAwMDAwKSB0cmFuc2xhdGUoLTE0LjUwMDAwMCwgLTE2LjAwMDAwMCkgIiB4bGluazpocmVmPSIjcGF0aC0xIj48L3VzZT4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==)}.leaflet-pm-toolbar .leaflet-pm-icon-rotate{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZGVmcz4KICAgICAgICA8cGF0aCBpZD0icm90YXRlIiBkPSJNMjEuMiw1LjhjLTAuMS0wLjItMC4yLTAuMy0wLjMtMC41bC0wLjEtMC4yYy0wLjEtMC4yLTAuMi0wLjMtMC4zLTAuNWwtMC4xLTAuMmMtMC4xLTAuMi0wLjItMC4zLTAuNC0wLjVsLTAuMi0wLjNsMi44LTMuMUwxOCwwLjZsLTQuNiwwLjFsMC41LDQuNWwwLjUsNC41bDMuMi0zLjZ2MC4xbDAuMSwwLjJjMC4xLDAuMSwwLjEsMC4yLDAuMiwwLjJsMC4xLDAuMkMxOCw3LDE4LDcuMSwxOC4xLDcuMmMwLjMsMC43LDAuNiwxLjQsMC43LDIuMWMwLjIsMS40LDAsMi45LTAuNiw0LjJMMTgsMTMuOUwxNy45LDE0bC0wLjMsMC41bC0wLjEsMC4yYy0wLjIsMC4yLTAuNCwwLjUtMC42LDAuN2MtMC41LDAuNS0xLjEsMS0xLjcsMS4zYy0wLjYsMC40LTEuMywwLjYtMi4xLDAuOGMtMC43LDAuMS0xLjUsMC4yLTIuMiwwLjFjLTAuOC0wLjEtMS41LTAuMy0yLjItMC41Yy0wLjctMC4zLTEuMy0wLjctMS45LTEuMmwtMC40LTAuNGwtMC4yLTAuM0w2LDE1Yy0wLjEtMC4xLTAuMi0wLjItMC4yLTAuM2wtMC4zLTAuNGwtMC4xLTAuMWwtMC4yLTAuNGMwLTAuMS0wLjEtMC4xLTAuMS0wLjJsLTAuMy0wLjVsLTAuMS0wLjJjLTAuMS0wLjMtMC4yLTAuNi0wLjMtMC45Yy0wLjItMC44LTAuMy0xLjYtMC4zLTIuNGMwLTAuMiwwLTAuMywwLTAuNVY4LjljMC0wLjIsMC0wLjMsMC4xLTAuNGwwLjEtMC42bDAuMi0wLjZjMC4zLTAuOCwwLjctMS41LDEuMi0yLjJjMC41LTAuNywxLjEtMS4zLDEuOC0xLjhjMC4yLTAuMSwwLjMtMC40LDAuMS0wLjZDNy41LDIuNiw3LjQsMi41LDcuMywyLjVINy4xTDcsMi42QzYuMSwzLDUuNCwzLjYsNC43LDQuMkM0LDQuOSwzLjUsNS43LDMsNi42Yy0wLjksMS44LTEuMiwzLjgtMC44LDUuOGMwLjEsMC41LDAuMiwwLjksMC4zLDEuNGwwLjMsMC44QzIuOSwxNC43LDMsMTQuOCwzLDE1bDAuMiwwLjRjMCwwLjEsMC4xLDAuMiwwLjEsMC4ybDAuMywwLjVjMC4xLDAuMiwwLjIsMC4zLDAuMywwLjVsMC4xLDAuMmMwLjEsMC4xLDAuMiwwLjMsMC4zLDAuNEw1LDE3LjhjMC43LDAuNywxLjYsMS4zLDIuNSwxLjhjMC45LDAuNSwxLjksMC44LDMsMC45YzAuNSwwLjEsMSwwLjEsMS41LDAuMWMwLjYsMCwxLjEsMCwxLjYtMC4xYzEtMC4yLDIuMS0wLjUsMy0xbDAuMi0wLjFjMC4yLTAuMSwwLjMtMC4yLDAuNS0wLjNsMC43LTAuNGMwLjItMC4xLDAuMy0wLjIsMC40LTAuM2wwLjItMC4yYzAuMi0wLjEsMC40LTAuMywwLjUtMC41bDAuMS0wLjFjMC4zLTAuMywwLjctMC43LDAuOS0xbDAuNi0wLjlsMC40LTAuNmMxLTEuOSwxLjQtNC4xLDEuMS02LjJDMjIsNy44LDIxLjcsNi43LDIxLjIsNS44eiIvPgogICAgPC9kZWZzPgogICAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDIpIj4KICAgICAgICA8bWFzayBpZD0icm90YXRlLWIiIGZpbGw9IiNmZmYiPgogICAgICAgICAgICA8dXNlIHhsaW5rOmhyZWY9IiNyb3RhdGUiLz4KICAgICAgICA8L21hc2s+CiAgICAgICAgPHVzZSBmaWxsPSIjNUI1QjVCIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHhsaW5rOmhyZWY9IiNyb3RhdGUiLz4KICAgICAgICA8ZyBmaWxsPSIjNUI1QjVCIiBtYXNrPSJ1cmwoI3JvdGF0ZS1iKSI+CiAgICAgICAgICAgIDxyZWN0IHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIvPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+Cg==)}.leaflet-pm-toolbar .leaflet-pm-icon-text{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOm5vbmU7c3Ryb2tlOiM1YjViNWI7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS13aWR0aDoyLjVweDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPlRleHQ8L3RpdGxlPjxnIGlkPSJFYmVuZV8yIiBkYXRhLW5hbWU9IkViZW5lIDIiPjxwb2x5bGluZSBjbGFzcz0iY2xzLTEiIHBvaW50cz0iMTkuNjQgNy4yNyAxOS42NCA0IDEyIDQgMTIgMjAgMTUuOTEgMjAgOC4wOSAyMCAxMiAyMCAxMiA0IDQuMzYgNCA0LjM2IDcuMjciLz48L2c+PC9zdmc+)}.leaflet-buttons-control-button:hover,.leaflet-buttons-control-button:focus{cursor:pointer;background-color:#f4f4f4}.active>.leaflet-buttons-control-button{box-shadow:inset 0 -1px 5px 2px #514d4d4f}.leaflet-buttons-control-text-hide{display:none}.button-container{position:relative}.button-container .leaflet-pm-actions-container{z-index:2;position:absolute;top:0;left:100%;display:none;white-space:nowrap;direction:ltr}.leaflet-right .leaflet-pm-toolbar .button-container .leaflet-pm-actions-container{right:100%;left:auto}.button-container.active .leaflet-pm-actions-container{display:block}.button-container .leaflet-pm-actions-container:not(.pos-right) a.leaflet-pm-action:last-child{border-radius:0 3px 3px 0;border-right:0}.button-container .leaflet-pm-actions-container.pos-right a.leaflet-pm-action:first-child{border-radius:3px 0 0 3px}.button-container .leaflet-pm-actions-container.pos-right a.leaflet-pm-action:last-child{border-right:0}.button-container .leaflet-pm-actions-container .leaflet-pm-action{padding:0 10px;background-color:#666;color:#fff;display:inline-block;width:auto;border-right:1px solid #eee;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-bottom:none;height:29px;line-height:29px}.leaflet-pm-toolbar .button-container:first-child.pos-right.active a.leaflet-buttons-control-button{border-top-left-radius:0}.leaflet-pm-toolbar .button-container:first-child.active:not(.pos-right) a.leaflet-buttons-control-button{border-top-right-radius:0}.button-container .leaflet-pm-actions-container .leaflet-pm-action:hover,.button-container .leaflet-pm-actions-container .leaflet-pm-action:focus{cursor:pointer;background-color:#777}.leaflet-pm-toolbar.activeChild{z-index:801}.leaflet-buttons-control-button.pm-disabled{background-color:#f4f4f4}.leaflet-buttons-control-button.pm-disabled>.control-icon{filter:opacity(.6)}.autocomplete__list[data-v-c5caf34f]{display:none;padding:0}.autocomplete__item[data-v-c5caf34f]{margin:0}.autocomplete__input:focus~.autocomplete__list[data-v-c5caf34f]{display:block}.autocomplete__list[data-v-c5caf34f]:hover{display:block}.card{box-shadow:#1e293b0a 0 2px 4px;border:1px solid rgba(98,105,118,.16);transition:transform .3s ease-out,opacity .3s ease-out,box-shadow .3s ease-out}.tw-spinner[data-v-b688ef4b]{display:flex;margin:0 auto;height:auto;width:auto;align-items:center;justify-content:center}.fade-enter-active[data-v-b688ef4b],.fade-leave-active[data-v-b688ef4b]{transition:opacity .5s}.fade-enter[data-v-b688ef4b],.fade-leave-to[data-v-b688ef4b]{opacity:0}.tw-spinner-left[data-v-b688ef4b]{flex-direction:row}.tw-spinner-right[data-v-b688ef4b]{flex-direction:row-reverse}.tw-spinner-top[data-v-b688ef4b]{flex-direction:column}.tw-spinner-bottom[data-v-b688ef4b]{flex-direction:column-reverse}.box-spinner[data-v-b688ef4b]{z-index:4000}.tw-spinner[data-v-b688ef4b]{font-size:20px;overflow:hidden;width:100%;position:relative}.tw-spinner svg[data-v-b688ef4b]{display:block;position:relative;margin:0 auto}.tw-spinner #Tail[data-v-b688ef4b]{opacity:0;animation:tail-b688ef4b 2s ease infinite;fill:#41ba8d}.tw-spinner #LeftBottom[data-v-b688ef4b]{fill:#00845d;opacity:0;animation:spinner-b688ef4b 1s ease alternate infinite;animation-delay:0s}.tw-spinner #LeftMid[data-v-b688ef4b]{fill:#28221b;opacity:0;animation:spinner-b688ef4b 1s ease alternate infinite;animation-delay:.2s}.tw-spinner #LeftTop[data-v-b688ef4b]{fill:#342d25;opacity:0;animation:spinner-b688ef4b 1s ease alternate infinite;animation-delay:.4s}.tw-spinner #Head[data-v-b688ef4b]{fill:#342d25;opacity:0;animation:spinner-b688ef4b 1s ease alternate infinite;animation-delay:.6s}@keyframes spinner-b688ef4b{0%{opacity:0}30%{opacity:0}90%{opacity:1}to{opacity:1}}@keyframes tail-b688ef4b{0%{opacity:0}30%{opacity:1}50%{opacity:1}90%{opacity:0}to{opacity:0}} diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..df36fcfb72584e00488330b560ebcf34a41c64c2 GIT binary patch literal 4286 zcmds*O-Phc6o&64GDVCEQHxsW(p4>LW*W<827=Unuo8sGpRux(DN@jWP-e29Wl%wj zY84_aq9}^Am9-cWTD5GGEo#+5Fi2wX_P*bo+xO!)p*7B;iKlbFd(U~_d(U?#hLj56 zPhFkj-|A6~Qk#@g^#D^U0XT1cu=c-vu1+SElX9NR;kzAUV(q0|dl0|%h|dI$%VICy zJnu2^L*Te9JrJMGh%-P79CL0}dq92RGU6gI{v2~|)p}sG5x0U*z<8U;Ij*hB9z?ei z@g6Xq-pDoPl=MANPiR7%172VA%r)kevtV-_5H*QJKFmd;8yA$98zCxBZYXTNZ#QFk2(TX0;Y2dt&WitL#$96|gJY=3xX zpCoi|YNzgO3R`f@IiEeSmKrPSf#h#Qd<$%Ej^RIeeYfsxhPMOG`S`Pz8q``=511zm zAm)MX5AV^5xIWPyEu7u>qYs?pn$I4nL9J!=K=SGlKLXpE<5x+2cDTXq?brj?n6sp= zphe9;_JHf40^9~}9i08r{XM$7HB!`{Ys~TK0kx<}ZQng`UPvH*11|q7&l9?@FQz;8 zx!=3<4seY*%=OlbCbcae?5^V_}*K>Uo6ZWV8mTyE^B=DKy7-sdLYkR5Z?paTgK-zyIkKjIcpyO z{+uIt&YSa_$QnN_@t~L014dyK(fOOo+W*MIxbA6Ndgr=Y!f#Tokqv}n<7-9qfHkc3 z=>a|HWqcX8fzQCT=dqVbogRq!-S>H%yA{1w#2Pn;=e>JiEj7Hl;zdt-2f+j2%DeVD zsW0Ab)ZK@0cIW%W7z}H{&~yGhn~D;aiP4=;m-HCo`BEI+Kd6 z={Xwx{TKxD#iCLfl2vQGDitKtN>z|-AdCN|$jTFDg0m3O`WLD4_s#$S literal 0 HcmV?d00001 diff --git a/index.html b/index.html new file mode 100644 index 00000000..abbc8a0d --- /dev/null +++ b/index.html @@ -0,0 +1,21 @@ + + + + + + + + + + + + + +
+ + + + diff --git a/robots.txt b/robots.txt new file mode 100644 index 00000000..c2a49f4f --- /dev/null +++ b/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Allow: /