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-DLQ26N8d.js b/assets/about-DLQ26N8d.js new file mode 100644 index 00000000..71debd95 --- /dev/null +++ b/assets/about-DLQ26N8d.js @@ -0,0 +1 @@ +import{r as i,o as l,c as s,w as c,a as e,t as a,b as t}from"./index-BETIDJze.js";const h={class:"markdown-body"},d={id:"%7B%7Bfrontmatter.title%7D%7D",tabindex:"-1"},p=e("h2",{id:"dig-deeper",tabindex:"-1"},"Dig deeper",-1),u=e("p",null,"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.",-1),_=e("h2",{id:"contact",tabindex:"-1"},"Contact",-1),m=e("p",null,[t("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 "),e("a",{href:"https://github.com/our/project/tracker",rel:"noopener noreferrer",target:"_blank"},"project tracker"),t(". You can also "),e("a",{href:"https://slackservername",rel:"noopener noreferrer",target:"_blank"},"chat live with us"),t(". We can also be reached via "),e("a",{href:"mailto:%7B%7Bfrontmatter.contact_email%7D%7D",rel:"noopener noreferrer",target:"_blank"},"email"),t(".")],-1),f=e("h2",{id:"team",tabindex:"-1"},"Team",-1),b=e("p",null,[e("em",null,"Please contact us if you would like to join this effort.")],-1),g=e("p",null,"Made possible by the wonderful:",-1),k=e("ul",null,[e("li",null,"Gandalf - Technical lead"),e("li",null,"Aragorn - Outside advisor"),e("li",null,"Frodo - Lead curator"),e("li",null,"Samwise - Emotional support")],-1),x=e("h2",{id:"citing",tabindex:"-1"},"Citing",-1),w=e("li",null,"Individual taxon pages - See citation at the bottom of each page.",-1),y=e("h2",{id:"data",tabindex:"-1"},"Data",-1),v=e("p",null,[t("Data for these pages is collaboratively curated online in a "),e("a",{href:"https://taxonworks",rel:"noopener noreferrer",target:"_blank"},"TaxonWorks"),t(" project. All data behind this site served as JSON through calls to a "),e("a",{href:"https://api.taxonworks.org",rel:"noopener noreferrer",target:"_blank"},"TaxonWorks API"),t(". You can follow along by using the Console of your browser to explore the Network tab.")],-1),T=e("h2",{id:"technical",tabindex:"-1"},"Technical",-1),W=e("p",null,[t("Want to create your own site? This website is built completely on open-source software. There is a "),e("a",{href:"https://github.com/SpeciesFileGroup/%3Csomething%3E",rel:"noopener noreferrer",target:"_blank"},"site template"),t(" with more information. Data are curated in a "),e("a",{href:"https://taxonworks.org",rel:"noopener noreferrer",target:"_blank"},"TaxonWorks"),t(" project then shared via a "),e("a",{href:"https://api.taxonworks.org",rel:"noopener noreferrer",target:"_blank"},"TaxonWorks API"),t(". Come "),e("a",{href:"https://gitter.im/SpeciesFileGroup/taxonworks",rel:"noopener noreferrer",target:"_blank"},"chat"),t(" with the TaxonWorks community at any time.")],-1),C=e("h2",{id:"copyright",tabindex:"-1"},"Copyright",-1),P="About",S="user@example.com",I="All content is CC 0 so that it maybe be shared throughout the world in places like Wikipedia.",N="Project collaborative. 2022. Website title. Available at https://example.com.",F={__name:"about",setup(A,{expose:r}){const o={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."};return r({frontmatter:o}),(D,j)=>{const n=i("markdown-layout");return l(),s(n,{frontmatter:o},{default:c(()=>[e("div",h,[e("h1",d,a(o.title),1),p,u,_,m,f,b,g,k,x,e("ul",null,[e("li",null,"This website - "+a(o.citation),1),w]),y,v,T,W,C,e("p",null,[e("em",null,a(o.copyright),1)])])]),_:1})}}};export{N as citation,S as contact_email,I as copyright,F as default,P as title}; diff --git a/assets/home-C6JAyxbr.js b/assets/home-C6JAyxbr.js new file mode 100644 index 00000000..deec4fe5 --- /dev/null +++ b/assets/home-C6JAyxbr.js @@ -0,0 +1 @@ +import{r as a,o as _,c as u,w as r,a as t,t as n,b as o,d as i}from"./index-BETIDJze.js";const m={class:"markdown-body"},h={id:"%7B%7Bfrontmatter.title%7D%7D",tabindex:"-1"},p=t("h2",{id:"overview",tabindex:"-1"},"Overview",-1),f=t("a",{href:"https://taxonworks.org",rel:"noopener noreferrer",target:"_blank"},"TaxonWorks",-1),b=t("h2",{id:"get-started!",tabindex:"-1"},"Get started!",-1),w=t("h2",{id:"announcements",tabindex:"-1"},"Announcements",-1),x=t("ul",null,[t("li",null,"5/1/2022 - We’ve grown!"),t("li",null,"1/1/2022 - Our website is live!")],-1),v=t("h2",{id:"find-out-more",tabindex:"-1"},"Find out more",-1),T="The title",B="Taxa from your imagination to the web",C="Your project",D={__name:"home",setup(g,{expose:s}){const e={title:"The title",lead:"Taxa from your imagination to the web",project:"Your project"};return s({frontmatter:e}),(k,j)=>{const l=a("autocomplete-otu"),c=a("router-link"),d=a("markdown-layout");return _(),u(d,{frontmatter:e},{default:r(()=>[t("div",m,[t("h1",h,n(e.title),1),t("p",null,[t("em",null,n(e.lead),1)]),p,t("p",null,[o("Welcome to "),t("em",null,n(e.project),1),o(", a website of taxon pages generated from the "+n(e.project)+" Project, a comprehensive collaborative effort managed in ",1),f,o(".")]),b,i(l,{class:"w-80"}),w,x,v,t("p",null,[o("Learn how to collaborate with the "+n(e.title)+" project. Contact information, technical details, and more are available at ",1),i(c,{to:"/about"},{default:r(()=>[o("About")]),_:1}),o(".")])])]),_:1})}}};export{D as default,B as lead,C as project,T as title}; diff --git a/assets/index-BETIDJze.js b/assets/index-BETIDJze.js new file mode 100644 index 00000000..a6a8624d --- /dev/null +++ b/assets/index-BETIDJze.js @@ -0,0 +1,44 @@ +var S_=Object.defineProperty;var T_=(t,i,s)=>i in t?S_(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s;var ne=(t,i,s)=>T_(t,typeof i!="symbol"?i+"":i,s);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))u(p);new MutationObserver(p=>{for(const l of p)if(l.type==="childList")for(const h of l.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&u(h)}).observe(document,{childList:!0,subtree:!0});function s(p){const l={};return p.integrity&&(l.integrity=p.integrity),p.referrerPolicy&&(l.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?l.credentials="include":p.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function u(p){if(p.ep)return;p.ep=!0;const l=s(p);fetch(p.href,l)}})();/** +* @vue/shared v3.4.29 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function Bc(t,i){const s=new Set(t.split(","));return u=>s.has(u)}const Ke={},Do=[],li=()=>{},A_=()=>!1,Qs=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Sc=t=>t.startsWith("onUpdate:"),hn=Object.assign,Tc=(t,i)=>{const s=t.indexOf(i);s>-1&&t.splice(s,1)},O_=Object.prototype.hasOwnProperty,De=(t,i)=>O_.call(t,i),ue=Array.isArray,Ro=t=>Cl(t)==="[object Map]",$d=t=>Cl(t)==="[object Set]",be=t=>typeof t=="function",an=t=>typeof t=="string",Jr=t=>typeof t=="symbol",We=t=>t!==null&&typeof t=="object",Gd=t=>(We(t)||be(t))&&be(t.then)&&be(t.catch),Hd=Object.prototype.toString,Cl=t=>Hd.call(t),D_=t=>Cl(t).slice(8,-1),Ud=t=>Cl(t)==="[object Object]",Ac=t=>an(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Io=Bc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wl=t=>{const i=Object.create(null);return s=>i[s]||(i[s]=t(s))},R_=/-(\w)/g,Oi=wl(t=>t.replace(R_,(i,s)=>s?s.toUpperCase():"")),I_=/\B([A-Z])/g,Go=wl(t=>t.replace(I_,"-$1").toLowerCase()),kl=wl(t=>t.charAt(0).toUpperCase()+t.slice(1)),Iu=wl(t=>t?`on${kl(t)}`:""),vr=(t,i)=>!Object.is(t,i),nl=(t,...i)=>{for(let s=0;s{Object.defineProperty(t,i,{configurable:!0,enumerable:!1,writable:u,value:s})},nc=t=>{const i=parseFloat(t);return isNaN(i)?t:i},F_=t=>{const i=an(t)?Number(t):NaN;return isNaN(i)?t:i};let fh;const qd=()=>fh||(fh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ai(t){if(ue(t)){const i={};for(let s=0;s{if(s){const u=s.split(j_);u.length>1&&(i[u[0].trim()]=u[1].trim())}}),i}function kn(t){let i="";if(an(t))i=t;else if(ue(t))for(let s=0;san(t)?t:t==null?"":ue(t)||We(t)&&(t.toString===Hd||!be(t.toString))?JSON.stringify(t,Wd,2):String(t),Wd=(t,i)=>i&&i.__v_isRef?Wd(t,i.value):Ro(i)?{[`Map(${i.size})`]:[...i.entries()].reduce((s,[u,p],l)=>(s[Fu(u,l)+" =>"]=p,s),{})}:$d(i)?{[`Set(${i.size})`]:[...i.values()].map(s=>Fu(s))}:Jr(i)?Fu(i):We(i)&&!ue(i)&&!Ud(i)?String(i):i,Fu=(t,i="")=>{var s;return Jr(t)?`Symbol(${(s=t.description)!=null?s:i})`:t};/** +* @vue/reactivity v3.4.29 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Xn;class Jd{constructor(i=!1){this.detached=i,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Xn,!i&&Xn&&(this.index=(Xn.scopes||(Xn.scopes=[])).push(this)-1)}get active(){return this._active}run(i){if(this._active){const s=Xn;try{return Xn=this,i()}finally{Xn=s}}}on(){Xn=this}off(){Xn=this.parent}stop(i){if(this._active){let s,u;for(s=0,u=this.effects.length;s=5)break}}this._dirtyLevel===1&&(this._dirtyLevel=0),Cr()}return this._dirtyLevel>=5}set dirty(i){this._dirtyLevel=i?5:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let i=gr,s=Ur;try{return gr=!0,Ur=this,this._runnings++,_h(this),this.fn()}finally{mh(this),this._runnings--,Ur=s,gr=i}}stop(){this.active&&(_h(this),mh(this),this.onStop&&this.onStop(),this.active=!1)}}function Z_(t){return t.value}function _h(t){t._trackId++,t._depsLength=0}function mh(t){if(t.deps.length>t._depsLength){for(let i=t._depsLength;i0){u._dirtyLevel=2;continue}let p;u._dirtyLevel{const s=new Map;return s.cleanup=t,s.computed=i,s},cl=new WeakMap,Zr=Symbol(""),oc=Symbol("");function Kn(t,i,s){if(gr&&Ur){let u=cl.get(t);u||cl.set(t,u=new Map);let p=u.get(s);p||u.set(s,p=ip(()=>u.delete(s))),ep(Ur,p)}}function qi(t,i,s,u,p,l){const h=cl.get(t);if(!h)return;let _=[];if(i==="clear")_=[...h.values()];else if(s==="length"&&ue(t)){const m=Number(u);h.forEach((x,b)=>{(b==="length"||!Jr(b)&&b>=m)&&_.push(x)})}else switch(s!==void 0&&_.push(h.get(s)),i){case"add":ue(t)?Ac(s)&&_.push(h.get("length")):(_.push(h.get(Zr)),Ro(t)&&_.push(h.get(oc)));break;case"delete":ue(t)||(_.push(h.get(Zr)),Ro(t)&&_.push(h.get(oc)));break;case"set":Ro(t)&&_.push(h.get(Zr));break}Dc();for(const m of _)m&&np(m,5);Rc()}function q_(t,i){const s=cl.get(t);return s&&s.get(i)}const K_=Bc("__proto__,__v_isRef,__isVue"),rp=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Jr)),gh=W_();function W_(){const t={};return["includes","indexOf","lastIndexOf"].forEach(i=>{t[i]=function(...s){const u=Re(this);for(let l=0,h=this.length;l{t[i]=function(...s){Lr(),Dc();const u=Re(this)[i].apply(this,s);return Rc(),Cr(),u}}),t}function J_(t){Jr(t)||(t=String(t));const i=Re(this);return Kn(i,"has",t),i.hasOwnProperty(t)}class op{constructor(i=!1,s=!1){this._isReadonly=i,this._isShallow=s}get(i,s,u){const p=this._isReadonly,l=this._isShallow;if(s==="__v_isReactive")return!p;if(s==="__v_isReadonly")return p;if(s==="__v_isShallow")return l;if(s==="__v_raw")return u===(p?l?um:up:l?lp:ap).get(i)||Object.getPrototypeOf(i)===Object.getPrototypeOf(u)?i:void 0;const h=ue(i);if(!p){if(h&&De(gh,s))return Reflect.get(gh,s,u);if(s==="hasOwnProperty")return J_}const _=Reflect.get(i,s,u);return(Jr(s)?rp.has(s):K_(s))||(p||Kn(i,"get",s),l)?_:gn(_)?h&&Ac(s)?_:_.value:We(_)?p?hp(_):ta(_):_}}class sp extends op{constructor(i=!1){super(!1,i)}set(i,s,u,p){let l=i[s];if(!this._isShallow){const m=Gs(l);if(!hl(u)&&!Gs(u)&&(l=Re(l),u=Re(u)),!ue(i)&&gn(l)&&!gn(u))return m?!1:(l.value=u,!0)}const h=ue(i)&&Ac(s)?Number(s)t,Ml=t=>Reflect.getPrototypeOf(t);function qa(t,i,s=!1,u=!1){t=t.__v_raw;const p=Re(t),l=Re(i);s||(vr(i,l)&&Kn(p,"get",i),Kn(p,"get",l));const{has:h}=Ml(p),_=u?Ic:s?zc:Hs;if(h.call(p,i))return _(t.get(i));if(h.call(p,l))return _(t.get(l));t!==p&&t.get(i)}function Ka(t,i=!1){const s=this.__v_raw,u=Re(s),p=Re(t);return i||(vr(t,p)&&Kn(u,"has",t),Kn(u,"has",p)),t===p?s.has(t):s.has(t)||s.has(p)}function Wa(t,i=!1){return t=t.__v_raw,!i&&Kn(Re(t),"iterate",Zr),Reflect.get(t,"size",t)}function yh(t){t=Re(t);const i=Re(this);return Ml(i).has.call(i,t)||(i.add(t),qi(i,"add",t,t)),this}function vh(t,i){i=Re(i);const s=Re(this),{has:u,get:p}=Ml(s);let l=u.call(s,t);l||(t=Re(t),l=u.call(s,t));const h=p.call(s,t);return s.set(t,i),l?vr(i,h)&&qi(s,"set",t,i):qi(s,"add",t,i),this}function bh(t){const i=Re(this),{has:s,get:u}=Ml(i);let p=s.call(i,t);p||(t=Re(t),p=s.call(i,t)),u&&u.call(i,t);const l=i.delete(t);return p&&qi(i,"delete",t,void 0),l}function xh(){const t=Re(this),i=t.size!==0,s=t.clear();return i&&qi(t,"clear",void 0,void 0),s}function Ja(t,i){return function(u,p){const l=this,h=l.__v_raw,_=Re(h),m=i?Ic:t?zc:Hs;return!t&&Kn(_,"iterate",Zr),h.forEach((x,b)=>u.call(p,m(x),m(b),l))}}function Ya(t,i,s){return function(...u){const p=this.__v_raw,l=Re(p),h=Ro(l),_=t==="entries"||t===Symbol.iterator&&h,m=t==="keys"&&h,x=p[t](...u),b=s?Ic:i?zc:Hs;return!i&&Kn(l,"iterate",m?oc:Zr),{next(){const{value:k,done:T}=x.next();return T?{value:k,done:T}:{value:_?[b(k[0]),b(k[1])]:b(k),done:T}},[Symbol.iterator](){return this}}}}function sr(t){return function(...i){return t==="delete"?!1:t==="clear"?void 0:this}}function em(){const t={get(l){return qa(this,l)},get size(){return Wa(this)},has:Ka,add:yh,set:vh,delete:bh,clear:xh,forEach:Ja(!1,!1)},i={get(l){return qa(this,l,!1,!0)},get size(){return Wa(this)},has:Ka,add:yh,set:vh,delete:bh,clear:xh,forEach:Ja(!1,!0)},s={get(l){return qa(this,l,!0)},get size(){return Wa(this,!0)},has(l){return Ka.call(this,l,!0)},add:sr("add"),set:sr("set"),delete:sr("delete"),clear:sr("clear"),forEach:Ja(!0,!1)},u={get(l){return qa(this,l,!0,!0)},get size(){return Wa(this,!0)},has(l){return Ka.call(this,l,!0)},add:sr("add"),set:sr("set"),delete:sr("delete"),clear:sr("clear"),forEach:Ja(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{t[l]=Ya(l,!1,!1),s[l]=Ya(l,!0,!1),i[l]=Ya(l,!1,!0),u[l]=Ya(l,!0,!0)}),[t,s,i,u]}const[nm,im,rm,om]=em();function Fc(t,i){const s=i?t?om:rm:t?im:nm;return(u,p,l)=>p==="__v_isReactive"?!t:p==="__v_isReadonly"?t:p==="__v_raw"?u:Reflect.get(De(s,p)&&p in u?s:u,p,l)}const sm={get:Fc(!1,!1)},am={get:Fc(!1,!0)},lm={get:Fc(!0,!1)};const ap=new WeakMap,lp=new WeakMap,up=new WeakMap,um=new WeakMap;function cm(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function hm(t){return t.__v_skip||!Object.isExtensible(t)?0:cm(D_(t))}function ta(t){return Gs(t)?t:Nc(t,!1,X_,sm,ap)}function cp(t){return Nc(t,!1,tm,am,lp)}function hp(t){return Nc(t,!0,Q_,lm,up)}function Nc(t,i,s,u,p){if(!We(t)||t.__v_raw&&!(i&&t.__v_isReactive))return t;const l=p.get(t);if(l)return l;const h=hm(t);if(h===0)return t;const _=new Proxy(t,h===2?u:s);return p.set(t,_),_}function qr(t){return Gs(t)?qr(t.__v_raw):!!(t&&t.__v_isReactive)}function Gs(t){return!!(t&&t.__v_isReadonly)}function hl(t){return!!(t&&t.__v_isShallow)}function dp(t){return t?!!t.__v_raw:!1}function Re(t){const i=t&&t.__v_raw;return i?Re(i):t}function jc(t){return Object.isExtensible(t)&&Zd(t,"__v_skip",!0),t}const Hs=t=>We(t)?ta(t):t,zc=t=>We(t)?hp(t):t;class pp{constructor(i,s,u,p){this.getter=i,this._setter=s,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Oc(()=>i(this._value),()=>il(this,this.effect._dirtyLevel===3?3:4)),this.effect.computed=this,this.effect.active=this._cacheable=!p,this.__v_isReadonly=u}get value(){const i=Re(this);return(!i._cacheable||i.effect.dirty)&&vr(i._value,i._value=i.effect.run())&&il(i,5),fp(i),i.effect._dirtyLevel>=2&&il(i,3),i._value}set value(i){this._setter(i)}get _dirty(){return this.effect.dirty}set _dirty(i){this.effect.dirty=i}}function dm(t,i,s=!1){let u,p;const l=be(t);return l?(u=t,p=li):(u=t.get,p=t.set),new pp(u,p,l||!p,s)}function fp(t){var i;gr&&Ur&&(t=Re(t),ep(Ur,(i=t.dep)!=null?i:t.dep=ip(()=>t.dep=void 0,t instanceof pp?t:void 0)))}function il(t,i=5,s,u){t=Re(t);const p=t.dep;p&&np(p,i)}function gn(t){return!!(t&&t.__v_isRef===!0)}function Jt(t){return _p(t,!1)}function pm(t){return _p(t,!0)}function _p(t,i){return gn(t)?t:new fm(t,i)}class fm{constructor(i,s){this.__v_isShallow=s,this.dep=void 0,this.__v_isRef=!0,this._rawValue=s?i:Re(i),this._value=s?i:Hs(i)}get value(){return fp(this),this._value}set value(i){const s=this.__v_isShallow||hl(i)||Gs(i);i=s?i:Re(i),vr(i,this._rawValue)&&(this._rawValue,this._rawValue=i,this._value=s?i:Hs(i),il(this,5))}}function ee(t){return gn(t)?t.value:t}const _m={get:(t,i,s)=>ee(Reflect.get(t,i,s)),set:(t,i,s,u)=>{const p=t[i];return gn(p)&&!gn(s)?(p.value=s,!0):Reflect.set(t,i,s,u)}};function mp(t){return qr(t)?t:new Proxy(t,_m)}function mm(t){const i=ue(t)?new Array(t.length):{};for(const s in t)i[s]=ym(t,s);return i}class gm{constructor(i,s,u){this._object=i,this._key=s,this._defaultValue=u,this.__v_isRef=!0}get value(){const i=this._object[this._key];return i===void 0?this._defaultValue:i}set value(i){this._object[this._key]=i}get dep(){return q_(Re(this._object),this._key)}}function ym(t,i,s){const u=t[i];return gn(u)?u:new gm(t,i,s)}/** +* @vue/runtime-core v3.4.29 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function yr(t,i,s,u){try{return u?t(...u):t()}catch(p){El(p,i,s)}}function ui(t,i,s,u){if(be(t)){const p=yr(t,i,s,u);return p&&Gd(p)&&p.catch(l=>{El(l,i,s)}),p}if(ue(t)){const p=[];for(let l=0;l>>1,p=Tn[u],l=Zs(p);lTi&&Tn.splice(i,1)}function Lm(t){ue(t)?Fo.push(...t):(!dr||!dr.includes(t,t.allowRecurse?Gr+1:Gr))&&Fo.push(t),yp()}function Lh(t,i,s=Us?Ti+1:0){for(;sZs(s)-Zs(u));if(Fo.length=0,dr){dr.push(...i);return}for(dr=i,Gr=0;Grt.id==null?1/0:t.id,Cm=(t,i)=>{const s=Zs(t)-Zs(i);if(s===0){if(t.pre&&!i.pre)return-1;if(i.pre&&!t.pre)return 1}return s};function vp(t){sc=!1,Us=!0,Tn.sort(Cm);try{for(Ti=0;Tian(j)?j.trim():j)),k&&(p=s.map(nc))}let _,m=u[_=Iu(i)]||u[_=Iu(Oi(i))];!m&&l&&(m=u[_=Iu(Go(i))]),m&&ui(m,t,6,p);const x=u[_+"Once"];if(x){if(!t.emitted)t.emitted={};else if(t.emitted[_])return;t.emitted[_]=!0,ui(x,t,6,p)}}function bp(t,i,s=!1){const u=i.emitsCache,p=u.get(t);if(p!==void 0)return p;const l=t.emits;let h={},_=!1;if(!be(t)){const m=x=>{const b=bp(x,i,!0);b&&(_=!0,hn(h,b))};!s&&i.mixins.length&&i.mixins.forEach(m),t.extends&&m(t.extends),t.mixins&&t.mixins.forEach(m)}return!l&&!_?(We(t)&&u.set(t,null),null):(ue(l)?l.forEach(m=>h[m]=null):hn(h,l),We(t)&&u.set(t,h),h)}function Bl(t,i){return!t||!Qs(i)?!1:(i=i.slice(2).replace(/Once$/,""),De(t,i[0].toLowerCase()+i.slice(1))||De(t,Go(i))||De(t,i))}let _n=null,Sl=null;function pl(t){const i=_n;return _n=t,Sl=t&&t.type.__scopeId||null,i}function xp(t){Sl=t}function Lp(){Sl=null}function dt(t,i=_n,s){if(!i||t._n)return t;const u=(...p)=>{u._d&&Ih(-1);const l=pl(i);let h;try{h=t(...p)}finally{pl(l),u._d&&Ih(1)}return h};return u._n=!0,u._c=!0,u._d=!0,u}function Nu(t){const{type:i,vnode:s,proxy:u,withProxy:p,propsOptions:[l],slots:h,attrs:_,emit:m,render:x,renderCache:b,props:k,data:T,setupState:j,ctx:$,inheritAttrs:Y}=t,vt=pl(t);let _t,bt;try{if(s.shapeFlag&4){const ht=p||u,xt=ht;_t=yi(x.call(xt,ht,b,k,j,T,$)),bt=_}else{const ht=i;_t=yi(ht.length>1?ht(k,{attrs:_,slots:h,emit:m}):ht(k,null)),bt=i.props?_:km(_)}}catch(ht){Ns.length=0,El(ht,t,1),_t=ot(Fn)}let H=_t;if(bt&&Y!==!1){const ht=Object.keys(bt),{shapeFlag:xt}=H;ht.length&&xt&7&&(l&&ht.some(Sc)&&(bt=Mm(bt,l)),H=br(H,bt,!1,!0))}return s.dirs&&(H=br(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(s.dirs):s.dirs),s.transition&&(H.transition=s.transition),_t=H,pl(vt),_t}const km=t=>{let i;for(const s in t)(s==="class"||s==="style"||Qs(s))&&((i||(i={}))[s]=t[s]);return i},Mm=(t,i)=>{const s={};for(const u in t)(!Sc(u)||!(u.slice(9)in i))&&(s[u]=t[u]);return s};function Em(t,i,s){const{props:u,children:p,component:l}=t,{props:h,children:_,patchFlag:m}=i,x=l.emitsOptions;if(i.dirs||i.transition)return!0;if(s&&m>=0){if(m&1024)return!0;if(m&16)return u?Ch(u,h,x):!!h;if(m&8){const b=i.dynamicProps;for(let k=0;kt.__isSuspense;function kp(t,i){i&&i.pendingBranch?ue(t)?i.effects.push(...t):i.effects.push(t):Lm(t)}function Tl(t,i,s=xn,u=!1){if(s){const p=s[t]||(s[t]=[]),l=i.__weh||(i.__weh=(...h)=>{Lr();const _=na(s),m=ui(i,s,t,h);return _(),Cr(),m});return u?p.unshift(l):p.push(l),l}}const Ki=t=>(i,s=xn)=>{(!Ol||t==="sp")&&Tl(t,(...u)=>i(...u),s)},Mp=Ki("bm"),Nn=Ki("m"),Sm=Ki("bu"),Tm=Ki("u"),Wi=Ki("bum"),Yr=Ki("um"),Hc=Ki("sp"),Am=Ki("rtg"),Om=Ki("rtc");function Dm(t,i=xn){Tl("ec",t,i)}function ea(t,i){if(_n===null)return t;const s=Dl(_n),u=t.dirs||(t.dirs=[]);for(let p=0;pi(h,_,void 0,l));else{const h=Object.keys(t);p=new Array(h.length);for(let _=0,m=h.length;_!!t.type.__asyncLoader;function Ue(t,i,s={},u,p){if(_n.isCE||_n.parent&&No(_n.parent)&&_n.parent.isCE)return i!=="default"&&(s.name=i),ot("slot",s,u&&u());let l=t[i];l&&l._c&&(l._d=!1),F();const h=l&&Pp(l(s)),_=Ot(Yt,{key:s.key||h&&h.key||`_${i}`},h||(u?u():[]),h&&t._===1?64:-2);return!p&&_.scopeId&&(_.slotScopeIds=[_.scopeId+"-s"]),l&&l._c&&(l._d=!0),_}function Pp(t){return t.some(i=>gl(i)?!(i.type===Fn||i.type===Yt&&!Pp(i.children)):!0)?t:null}const ac=t=>t?Qp(t)?Dl(t):ac(t.parent):null,Is=hn(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=>ac(t.parent),$root:t=>ac(t.root),$emit:t=>t.emit,$options:t=>Uc(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,$c(t.update)}),$nextTick:t=>t.n||(t.n=Pl.bind(t.proxy)),$watch:t=>og.bind(t)}),ju=(t,i)=>t!==Ke&&!t.__isScriptSetup&&De(t,i),Rm={get({_:t},i){if(i==="__v_skip")return!0;const{ctx:s,setupState:u,data:p,props:l,accessCache:h,type:_,appContext:m}=t;let x;if(i[0]!=="$"){const j=h[i];if(j!==void 0)switch(j){case 1:return u[i];case 2:return p[i];case 4:return s[i];case 3:return l[i]}else{if(ju(u,i))return h[i]=1,u[i];if(p!==Ke&&De(p,i))return h[i]=2,p[i];if((x=t.propsOptions[0])&&De(x,i))return h[i]=3,l[i];if(s!==Ke&&De(s,i))return h[i]=4,s[i];lc&&(h[i]=0)}}const b=Is[i];let k,T;if(b)return i==="$attrs"&&Kn(t.attrs,"get",""),b(t);if((k=_.__cssModules)&&(k=k[i]))return k;if(s!==Ke&&De(s,i))return h[i]=4,s[i];if(T=m.config.globalProperties,De(T,i))return T[i]},set({_:t},i,s){const{data:u,setupState:p,ctx:l}=t;return ju(p,i)?(p[i]=s,!0):u!==Ke&&De(u,i)?(u[i]=s,!0):De(t.props,i)||i[0]==="$"&&i.slice(1)in t?!1:(l[i]=s,!0)},has({_:{data:t,setupState:i,accessCache:s,ctx:u,appContext:p,propsOptions:l}},h){let _;return!!s[h]||t!==Ke&&De(t,h)||ju(i,h)||(_=l[0])&&De(_,h)||De(u,h)||De(Is,h)||De(p.config.globalProperties,h)},defineProperty(t,i,s){return s.get!=null?t._.accessCache[i]=0:De(s,"value")&&this.set(t,i,s.value,null),Reflect.defineProperty(t,i,s)}};function Im(){return Fm().slots}function Fm(){const t=Xp();return t.setupContext||(t.setupContext=ef(t))}function kh(t){return ue(t)?t.reduce((i,s)=>(i[s]=null,i),{}):t}let lc=!0;function Nm(t){const i=Uc(t),s=t.proxy,u=t.ctx;lc=!1,i.beforeCreate&&Mh(i.beforeCreate,t,"bc");const{data:p,computed:l,methods:h,watch:_,provide:m,inject:x,created:b,beforeMount:k,mounted:T,beforeUpdate:j,updated:$,activated:Y,deactivated:vt,beforeDestroy:_t,beforeUnmount:bt,destroyed:H,unmounted:ht,render:xt,renderTracked:yt,renderTriggered:Ut,errorCaptured:Ft,serverPrefetch:Pt,expose:At,inheritAttrs:Vt,components:Bt,directives:ae,filters:Le}=i;if(x&&jm(x,u,null),h)for(const de in h){const kt=h[de];be(kt)&&(u[de]=kt.bind(s))}if(p){const de=p.call(s,s);We(de)&&(t.data=ta(de))}if(lc=!0,l)for(const de in l){const kt=l[de],Ln=be(kt)?kt.bind(s,s):be(kt.get)?kt.get.bind(s,s):li,Xt=!be(kt)&&be(kt.set)?kt.set.bind(s):li,we=he({get:Ln,set:Xt});Object.defineProperty(u,de,{enumerable:!0,configurable:!0,get:()=>we.value,set:Fe=>we.value=Fe})}if(_)for(const de in _)Bp(_[de],u,s,de);if(m){const de=be(m)?m.call(s):m;Reflect.ownKeys(de).forEach(kt=>{rl(kt,de[kt])})}b&&Mh(b,t,"c");function Rt(de,kt){ue(kt)?kt.forEach(Ln=>de(Ln.bind(s))):kt&&de(kt.bind(s))}if(Rt(Mp,k),Rt(Nn,T),Rt(Sm,j),Rt(Tm,$),Rt(sg,Y),Rt(ag,vt),Rt(Dm,Ft),Rt(Om,yt),Rt(Am,Ut),Rt(Wi,bt),Rt(Yr,ht),Rt(Hc,Pt),ue(At))if(At.length){const de=t.exposed||(t.exposed={});At.forEach(kt=>{Object.defineProperty(de,kt,{get:()=>s[kt],set:Ln=>s[kt]=Ln})})}else t.exposed||(t.exposed={});xt&&t.render===li&&(t.render=xt),Vt!=null&&(t.inheritAttrs=Vt),Bt&&(t.components=Bt),ae&&(t.directives=ae)}function jm(t,i,s=li){ue(t)&&(t=uc(t));for(const u in t){const p=t[u];let l;We(p)?"default"in p?l=ci(p.from||u,p.default,!0):l=ci(p.from||u):l=ci(p),gn(l)?Object.defineProperty(i,u,{enumerable:!0,configurable:!0,get:()=>l.value,set:h=>l.value=h}):i[u]=l}}function Mh(t,i,s){ui(ue(t)?t.map(u=>u.bind(i.proxy)):t.bind(i.proxy),i,s)}function Bp(t,i,s,u){const p=u.includes(".")?Gp(s,u):()=>s[u];if(an(t)){const l=i[t];be(l)&&mn(p,l)}else if(be(t))mn(p,t.bind(s));else if(We(t))if(ue(t))t.forEach(l=>Bp(l,i,s,u));else{const l=be(t.handler)?t.handler.bind(s):i[t.handler];be(l)&&mn(p,l,t)}}function Uc(t){const i=t.type,{mixins:s,extends:u}=i,{mixins:p,optionsCache:l,config:{optionMergeStrategies:h}}=t.appContext,_=l.get(i);let m;return _?m=_:!p.length&&!s&&!u?m=i:(m={},p.length&&p.forEach(x=>fl(m,x,h,!0)),fl(m,i,h)),We(i)&&l.set(i,m),m}function fl(t,i,s,u=!1){const{mixins:p,extends:l}=i;l&&fl(t,l,s,!0),p&&p.forEach(h=>fl(t,h,s,!0));for(const h in i)if(!(u&&h==="expose")){const _=zm[h]||s&&s[h];t[h]=_?_(t[h],i[h]):i[h]}return t}const zm={data:Eh,props:Ph,emits:Ph,methods:Ds,computed:Ds,beforeCreate:In,created:In,beforeMount:In,mounted:In,beforeUpdate:In,updated:In,beforeDestroy:In,beforeUnmount:In,destroyed:In,unmounted:In,activated:In,deactivated:In,errorCaptured:In,serverPrefetch:In,components:Ds,directives:Ds,watch:$m,provide:Eh,inject:Vm};function Eh(t,i){return i?t?function(){return hn(be(t)?t.call(this,this):t,be(i)?i.call(this,this):i)}:i:t}function Vm(t,i){return Ds(uc(t),uc(i))}function uc(t){if(ue(t)){const i={};for(let s=0;s1)return s&&be(i)?i.call(u&&u.proxy):i}}function Um(){return!!(xn||_n||jo)}const Tp={},Ap=()=>Object.create(Tp),Op=t=>Object.getPrototypeOf(t)===Tp;function Zm(t,i,s,u=!1){const p={},l=Ap();t.propsDefaults=Object.create(null),Dp(t,i,p,l);for(const h in t.propsOptions[0])h in p||(p[h]=void 0);s?t.props=u?p:cp(p):t.type.props?t.props=p:t.props=l,t.attrs=l}function qm(t,i,s,u){const{props:p,attrs:l,vnode:{patchFlag:h}}=t,_=Re(p),[m]=t.propsOptions;let x=!1;if((u||h>0)&&!(h&16)){if(h&8){const b=t.vnode.dynamicProps;for(let k=0;k{m=!0;const[T,j]=Rp(k,i,!0);hn(h,T),j&&_.push(...j)};!s&&i.mixins.length&&i.mixins.forEach(b),t.extends&&b(t.extends),t.mixins&&t.mixins.forEach(b)}if(!l&&!m)return We(t)&&u.set(t,Do),Do;if(ue(l))for(let b=0;b-1,j[1]=Y<0||$-1||De(j,"default"))&&_.push(k)}}}const x=[h,_];return We(t)&&u.set(t,x),x}function Bh(t){return t[0]!=="$"&&!Io(t)}function Sh(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function Th(t,i){return Sh(t)===Sh(i)}function Ah(t,i){return ue(i)?i.findIndex(s=>Th(s,t)):be(i)&&Th(i,t)?0:-1}const Ip=t=>t[0]==="_"||t==="$stable",Zc=t=>ue(t)?t.map(yi):[yi(t)],Km=(t,i,s)=>{if(i._n)return i;const u=dt((...p)=>Zc(i(...p)),s);return u._c=!1,u},Fp=(t,i,s)=>{const u=t._ctx;for(const p in t){if(Ip(p))continue;const l=t[p];if(be(l))i[p]=Km(p,l,u);else if(l!=null){const h=Zc(l);i[p]=()=>h}}},Np=(t,i)=>{const s=Zc(i);t.slots.default=()=>s},Wm=(t,i)=>{const s=t.slots=Ap();if(t.vnode.shapeFlag&32){const u=i._;u?(hn(s,i),Zd(s,"_",u,!0)):Fp(i,s)}else i&&Np(t,i)},Jm=(t,i,s)=>{const{vnode:u,slots:p}=t;let l=!0,h=Ke;if(u.shapeFlag&32){const _=i._;_?s&&_===1?l=!1:(hn(p,i),!s&&_===1&&delete p._):(l=!i.$stable,Fp(i,p)),h=i}else i&&(Np(t,i),h={default:1});if(l)for(const _ in p)!Ip(_)&&h[_]==null&&delete p[_]};function _l(t,i,s,u,p=!1){if(ue(t)){t.forEach((T,j)=>_l(T,i&&(ue(i)?i[j]:i),s,u,p));return}if(No(u)&&!p)return;const l=u.shapeFlag&4?Dl(u.component):u.el,h=p?null:l,{i:_,r:m}=t,x=i&&i.r,b=_.refs===Ke?_.refs={}:_.refs,k=_.setupState;if(x!=null&&x!==m&&(an(x)?(b[x]=null,De(k,x)&&(k[x]=null)):gn(x)&&(x.value=null)),be(m))yr(m,_,12,[h,b]);else{const T=an(m),j=gn(m);if(T||j){const $=()=>{if(t.f){const Y=T?De(k,m)?k[m]:b[m]:m.value;p?ue(Y)&&Tc(Y,l):ue(Y)?Y.includes(l)||Y.push(l):T?(b[m]=[l],De(k,m)&&(k[m]=b[m])):(m.value=[l],t.k&&(b[t.k]=m.value))}else T?(b[m]=h,De(k,m)&&(k[m]=h)):j&&(m.value=h,t.k&&(b[t.k]=h))};h?($.id=-1,Un($,s)):$()}}}let Oh=!1;const Po=()=>{Oh||(console.error("Hydration completed but contains mismatches."),Oh=!0)},Ym=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",Xm=t=>t.namespaceURI.includes("MathML"),Xa=t=>{if(Ym(t))return"svg";if(Xm(t))return"mathml"},Qa=t=>t.nodeType===8;function Qm(t){const{mt:i,p:s,o:{patchProp:u,createText:p,nextSibling:l,parentNode:h,remove:_,insert:m,createComment:x}}=t,b=(H,ht)=>{if(!ht.hasChildNodes()){s(null,H,ht),dl(),ht._vnode=H;return}k(ht.firstChild,H,null,null,null),dl(),ht._vnode=H},k=(H,ht,xt,yt,Ut,Ft=!1)=>{Ft=Ft||!!ht.dynamicChildren;const Pt=Qa(H)&&H.data==="[",At=()=>Y(H,ht,xt,yt,Ut,Pt),{type:Vt,ref:Bt,shapeFlag:ae,patchFlag:Le}=ht;let Ae=H.nodeType;ht.el=H,Le===-2&&(Ft=!1,ht.dynamicChildren=null);let Rt=null;switch(Vt){case zo:Ae!==3?ht.children===""?(m(ht.el=p(""),h(H),H),Rt=H):Rt=At():(H.data!==ht.children&&(Po(),H.data=ht.children),Rt=l(H));break;case Fn:bt(H)?(Rt=l(H),_t(ht.el=H.content.firstChild,H,xt)):Ae!==8||Pt?Rt=At():Rt=l(H);break;case Fs:if(Pt&&(H=l(H),Ae=H.nodeType),Ae===1||Ae===3){Rt=H;const de=!ht.children.length;for(let kt=0;kt{Ft=Ft||!!ht.dynamicChildren;const{type:Pt,props:At,patchFlag:Vt,shapeFlag:Bt,dirs:ae,transition:Le}=ht,Ae=Pt==="input"||Pt==="option";if(Ae||Vt!==-1){ae&&Si(ht,null,xt,"created");let Rt=!1;if(bt(H)){Rt=jp(yt,Le)&&xt&&xt.vnode.props&&xt.vnode.props.appear;const kt=H.content.firstChild;Rt&&Le.beforeEnter(kt),_t(kt,H,xt),ht.el=H=kt}if(Bt&16&&!(At&&(At.innerHTML||At.textContent))){let kt=j(H.firstChild,ht,H,xt,yt,Ut,Ft);for(;kt;){Po();const Ln=kt;kt=kt.nextSibling,_(Ln)}}else Bt&8&&H.textContent!==ht.children&&(Po(),H.textContent=ht.children);if(At)if(Ae||!Ft||Vt&48)for(const kt in At)(Ae&&(kt.endsWith("value")||kt==="indeterminate")||Qs(kt)&&!Io(kt)||kt[0]===".")&&u(H,kt,null,At[kt],void 0,void 0,xt);else At.onClick&&u(H,"onClick",null,At.onClick,void 0,void 0,xt);let de;(de=At&&At.onVnodeBeforeMount)&&ai(de,xt,ht),ae&&Si(ht,null,xt,"beforeMount"),((de=At&&At.onVnodeMounted)||ae||Rt)&&kp(()=>{de&&ai(de,xt,ht),Rt&&Le.enter(H),ae&&Si(ht,null,xt,"mounted")},yt)}return H.nextSibling},j=(H,ht,xt,yt,Ut,Ft,Pt)=>{Pt=Pt||!!ht.dynamicChildren;const At=ht.children,Vt=At.length;for(let Bt=0;Bt{const{slotScopeIds:Pt}=ht;Pt&&(Ut=Ut?Ut.concat(Pt):Pt);const At=h(H),Vt=j(l(H),ht,At,xt,yt,Ut,Ft);return Vt&&Qa(Vt)&&Vt.data==="]"?l(ht.anchor=Vt):(Po(),m(ht.anchor=x("]"),At,Vt),Vt)},Y=(H,ht,xt,yt,Ut,Ft)=>{if(Po(),ht.el=null,Ft){const Vt=vt(H);for(;;){const Bt=l(H);if(Bt&&Bt!==Vt)_(Bt);else break}}const Pt=l(H),At=h(H);return _(H),s(null,ht,At,Pt,xt,yt,Xa(At),Ut),Pt},vt=(H,ht="[",xt="]")=>{let yt=0;for(;H;)if(H=l(H),H&&Qa(H)&&(H.data===ht&&yt++,H.data===xt)){if(yt===0)return l(H);yt--}return H},_t=(H,ht,xt)=>{const yt=ht.parentNode;yt&&yt.replaceChild(H,ht);let Ut=xt;for(;Ut;)Ut.vnode.el===ht&&(Ut.vnode.el=Ut.subTree.el=H),Ut=Ut.parent},bt=H=>H.nodeType===1&&H.tagName.toLowerCase()==="template";return[b,k]}const Un=kp;function tg(t){return eg(t,Qm)}function eg(t,i){const s=qd();s.__VUE__=!0;const{insert:u,remove:p,patchProp:l,createElement:h,createText:_,createComment:m,setText:x,setElementText:b,parentNode:k,nextSibling:T,setScopeId:j=li,insertStaticContent:$}=t,Y=(N,U,ct,Lt=null,gt=null,St=null,Nt=void 0,Tt=null,Dt=!!U.dynamicChildren)=>{if(N===U)return;N&&!Hr(N,U)&&(Lt=mt(N),Fe(N,gt,St,!0),N=null),U.patchFlag===-2&&(Dt=!1,U.dynamicChildren=null);const{type:Et,ref:Ht,shapeFlag:ie}=U;switch(Et){case zo:vt(N,U,ct,Lt);break;case Fn:_t(N,U,ct,Lt);break;case Fs:N==null&&bt(U,ct,Lt,Nt);break;case Yt:Bt(N,U,ct,Lt,gt,St,Nt,Tt,Dt);break;default:ie&1?xt(N,U,ct,Lt,gt,St,Nt,Tt,Dt):ie&6?ae(N,U,ct,Lt,gt,St,Nt,Tt,Dt):(ie&64||ie&128)&&Et.process(N,U,ct,Lt,gt,St,Nt,Tt,Dt,Kt)}Ht!=null&>&&_l(Ht,N&&N.ref,St,U||N,!U)},vt=(N,U,ct,Lt)=>{if(N==null)u(U.el=_(U.children),ct,Lt);else{const gt=U.el=N.el;U.children!==N.children&&x(gt,U.children)}},_t=(N,U,ct,Lt)=>{N==null?u(U.el=m(U.children||""),ct,Lt):U.el=N.el},bt=(N,U,ct,Lt)=>{[N.el,N.anchor]=$(N.children,U,ct,Lt,N.el,N.anchor)},H=({el:N,anchor:U},ct,Lt)=>{let gt;for(;N&&N!==U;)gt=T(N),u(N,ct,Lt),N=gt;u(U,ct,Lt)},ht=({el:N,anchor:U})=>{let ct;for(;N&&N!==U;)ct=T(N),p(N),N=ct;p(U)},xt=(N,U,ct,Lt,gt,St,Nt,Tt,Dt)=>{U.type==="svg"?Nt="svg":U.type==="math"&&(Nt="mathml"),N==null?yt(U,ct,Lt,gt,St,Nt,Tt,Dt):Pt(N,U,gt,St,Nt,Tt,Dt)},yt=(N,U,ct,Lt,gt,St,Nt,Tt)=>{let Dt,Et;const{props:Ht,shapeFlag:ie,transition:Qt,dirs:ce}=N;if(Dt=N.el=h(N.type,St,Ht&&Ht.is,Ht),ie&8?b(Dt,N.children):ie&16&&Ft(N.children,Dt,null,Lt,gt,zu(N,St),Nt,Tt),ce&&Si(N,null,Lt,"created"),Ut(Dt,N,N.scopeId,Nt,Lt),Ht){for(const Ne in Ht)Ne!=="value"&&!Io(Ne)&&l(Dt,Ne,null,Ht[Ne],St,N.children,Lt,gt,oe);"value"in Ht&&l(Dt,"value",null,Ht.value,St),(Et=Ht.onVnodeBeforeMount)&&ai(Et,Lt,N)}ce&&Si(N,null,Lt,"beforeMount");const ye=jp(gt,Qt);ye&&Qt.beforeEnter(Dt),u(Dt,U,ct),((Et=Ht&&Ht.onVnodeMounted)||ye||ce)&&Un(()=>{Et&&ai(Et,Lt,N),ye&&Qt.enter(Dt),ce&&Si(N,null,Lt,"mounted")},gt)},Ut=(N,U,ct,Lt,gt)=>{if(ct&&j(N,ct),Lt)for(let St=0;St{for(let Et=Dt;Et{const Tt=U.el=N.el;let{patchFlag:Dt,dynamicChildren:Et,dirs:Ht}=U;Dt|=N.patchFlag&16;const ie=N.props||Ke,Qt=U.props||Ke;let ce;if(ct&&zr(ct,!1),(ce=Qt.onVnodeBeforeUpdate)&&ai(ce,ct,U,N),Ht&&Si(U,N,ct,"beforeUpdate"),ct&&zr(ct,!0),Et?At(N.dynamicChildren,Et,Tt,ct,Lt,zu(U,gt),St):Nt||kt(N,U,Tt,null,ct,Lt,zu(U,gt),St,!1),Dt>0){if(Dt&16)Vt(Tt,U,ie,Qt,ct,Lt,gt);else if(Dt&2&&ie.class!==Qt.class&&l(Tt,"class",null,Qt.class,gt),Dt&4&&l(Tt,"style",ie.style,Qt.style,gt),Dt&8){const ye=U.dynamicProps;for(let Ne=0;Ne{ce&&ai(ce,ct,U,N),Ht&&Si(U,N,ct,"updated")},Lt)},At=(N,U,ct,Lt,gt,St,Nt)=>{for(let Tt=0;Tt{if(ct!==Lt){if(ct!==Ke)for(const Tt in ct)!Io(Tt)&&!(Tt in Lt)&&l(N,Tt,ct[Tt],null,Nt,U.children,gt,St,oe);for(const Tt in Lt){if(Io(Tt))continue;const Dt=Lt[Tt],Et=ct[Tt];Dt!==Et&&Tt!=="value"&&l(N,Tt,Et,Dt,Nt,U.children,gt,St,oe)}"value"in Lt&&l(N,"value",ct.value,Lt.value,Nt)}},Bt=(N,U,ct,Lt,gt,St,Nt,Tt,Dt)=>{const Et=U.el=N?N.el:_(""),Ht=U.anchor=N?N.anchor:_("");let{patchFlag:ie,dynamicChildren:Qt,slotScopeIds:ce}=U;ce&&(Tt=Tt?Tt.concat(ce):ce),N==null?(u(Et,ct,Lt),u(Ht,ct,Lt),Ft(U.children||[],ct,Ht,gt,St,Nt,Tt,Dt)):ie>0&&ie&64&&Qt&&N.dynamicChildren?(At(N.dynamicChildren,Qt,ct,gt,St,Nt,Tt),(U.key!=null||gt&&U===gt.subTree)&&zp(N,U,!0)):kt(N,U,ct,Ht,gt,St,Nt,Tt,Dt)},ae=(N,U,ct,Lt,gt,St,Nt,Tt,Dt)=>{U.slotScopeIds=Tt,N==null?U.shapeFlag&512?gt.ctx.activate(U,ct,Lt,Nt,Dt):Le(U,ct,Lt,gt,St,Nt,Dt):Ae(N,U,Dt)},Le=(N,U,ct,Lt,gt,St,Nt)=>{const Tt=N.component=vg(N,Lt,gt);if(Al(N)&&(Tt.ctx.renderer=Kt),bg(Tt),Tt.asyncDep){if(gt&>.registerDep(Tt,Rt,Nt),!N.el){const Dt=Tt.subTree=ot(Fn);_t(null,Dt,U,ct)}}else Rt(Tt,N,U,ct,gt,St,Nt)},Ae=(N,U,ct)=>{const Lt=U.component=N.component;if(Em(N,U,ct))if(Lt.asyncDep&&!Lt.asyncResolved){de(Lt,U,ct);return}else Lt.next=U,xm(Lt.update),Lt.effect.dirty=!0,Lt.update();else U.el=N.el,Lt.vnode=U},Rt=(N,U,ct,Lt,gt,St,Nt)=>{const Tt=()=>{if(N.isMounted){let{next:Ht,bu:ie,u:Qt,parent:ce,vnode:ye}=N;{const An=Vp(N);if(An){Ht&&(Ht.el=ye.el,de(N,Ht,Nt)),An.asyncDep.then(()=>{N.isUnmounted||Tt()});return}}let Ne=Ht,Ee;zr(N,!1),Ht?(Ht.el=ye.el,de(N,Ht,Nt)):Ht=ye,ie&&nl(ie),(Ee=Ht.props&&Ht.props.onVnodeBeforeUpdate)&&ai(Ee,ce,Ht,ye),zr(N,!0);const Je=Nu(N),Mn=N.subTree;N.subTree=Je,Y(Mn,Je,k(Mn.el),mt(Mn),N,gt,St),Ht.el=Je.el,Ne===null&&Pm(N,Je.el),Qt&&Un(Qt,gt),(Ee=Ht.props&&Ht.props.onVnodeUpdated)&&Un(()=>ai(Ee,ce,Ht,ye),gt)}else{let Ht;const{el:ie,props:Qt}=U,{bm:ce,m:ye,parent:Ne}=N,Ee=No(U);if(zr(N,!1),ce&&nl(ce),!Ee&&(Ht=Qt&&Qt.onVnodeBeforeMount)&&ai(Ht,Ne,U),zr(N,!0),ie&&Ie){const Je=()=>{N.subTree=Nu(N),Ie(ie,N.subTree,N,gt,null)};Ee?U.type.__asyncLoader().then(()=>!N.isUnmounted&&Je()):Je()}else{const Je=N.subTree=Nu(N);Y(null,Je,ct,Lt,N,gt,St),U.el=Je.el}if(ye&&Un(ye,gt),!Ee&&(Ht=Qt&&Qt.onVnodeMounted)){const Je=U;Un(()=>ai(Ht,Ne,Je),gt)}(U.shapeFlag&256||Ne&&No(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&N.a&&Un(N.a,gt),N.isMounted=!0,U=ct=Lt=null}},Dt=N.effect=new Oc(Tt,li,()=>$c(Et),N.scope),Et=N.update=()=>{Dt.dirty&&Dt.run()};Et.id=N.uid,zr(N,!0),Et()},de=(N,U,ct)=>{U.component=N;const Lt=N.vnode.props;N.vnode=U,N.next=null,qm(N,U.props,Lt,ct),Jm(N,U.children,ct),Lr(),Lh(N),Cr()},kt=(N,U,ct,Lt,gt,St,Nt,Tt,Dt=!1)=>{const Et=N&&N.children,Ht=N?N.shapeFlag:0,ie=U.children,{patchFlag:Qt,shapeFlag:ce}=U;if(Qt>0){if(Qt&128){Xt(Et,ie,ct,Lt,gt,St,Nt,Tt,Dt);return}else if(Qt&256){Ln(Et,ie,ct,Lt,gt,St,Nt,Tt,Dt);return}}ce&8?(Ht&16&&oe(Et,gt,St),ie!==Et&&b(ct,ie)):Ht&16?ce&16?Xt(Et,ie,ct,Lt,gt,St,Nt,Tt,Dt):oe(Et,gt,St,!0):(Ht&8&&b(ct,""),ce&16&&Ft(ie,ct,Lt,gt,St,Nt,Tt,Dt))},Ln=(N,U,ct,Lt,gt,St,Nt,Tt,Dt)=>{N=N||Do,U=U||Do;const Et=N.length,Ht=U.length,ie=Math.min(Et,Ht);let Qt;for(Qt=0;QtHt?oe(N,gt,St,!0,!1,ie):Ft(U,ct,Lt,gt,St,Nt,Tt,Dt,ie)},Xt=(N,U,ct,Lt,gt,St,Nt,Tt,Dt)=>{let Et=0;const Ht=U.length;let ie=N.length-1,Qt=Ht-1;for(;Et<=ie&&Et<=Qt;){const ce=N[Et],ye=U[Et]=Dt?fr(U[Et]):yi(U[Et]);if(Hr(ce,ye))Y(ce,ye,ct,null,gt,St,Nt,Tt,Dt);else break;Et++}for(;Et<=ie&&Et<=Qt;){const ce=N[ie],ye=U[Qt]=Dt?fr(U[Qt]):yi(U[Qt]);if(Hr(ce,ye))Y(ce,ye,ct,null,gt,St,Nt,Tt,Dt);else break;ie--,Qt--}if(Et>ie){if(Et<=Qt){const ce=Qt+1,ye=ceQt)for(;Et<=ie;)Fe(N[Et],gt,St,!0),Et++;else{const ce=Et,ye=Et,Ne=new Map;for(Et=ye;Et<=Qt;Et++){const yn=U[Et]=Dt?fr(U[Et]):yi(U[Et]);yn.key!=null&&Ne.set(yn.key,Et)}let Ee,Je=0;const Mn=Qt-ye+1;let An=!1,wr=0;const Qn=new Array(Mn);for(Et=0;Et=Mn){Fe(yn,gt,St,!0);continue}let ln;if(yn.key!=null)ln=Ne.get(yn.key);else for(Ee=ye;Ee<=Qt;Ee++)if(Qn[Ee-ye]===0&&Hr(yn,U[Ee])){ln=Ee;break}ln===void 0?Fe(yn,gt,St,!0):(Qn[ln-ye]=Et+1,ln>=wr?wr=ln:An=!0,Y(yn,U[ln],ct,null,gt,St,Nt,Tt,Dt),Je++)}const di=An?ng(Qn):Do;for(Ee=di.length-1,Et=Mn-1;Et>=0;Et--){const yn=ye+Et,ln=U[yn],Qr=yn+1{const{el:St,type:Nt,transition:Tt,children:Dt,shapeFlag:Et}=N;if(Et&6){we(N.component.subTree,U,ct,Lt);return}if(Et&128){N.suspense.move(U,ct,Lt);return}if(Et&64){Nt.move(N,U,ct,Kt);return}if(Nt===Yt){u(St,U,ct);for(let ie=0;ieTt.enter(St),gt);else{const{leave:ie,delayLeave:Qt,afterLeave:ce}=Tt,ye=()=>u(St,U,ct),Ne=()=>{ie(St,()=>{ye(),ce&&ce()})};Qt?Qt(St,ye,Ne):Ne()}else u(St,U,ct)},Fe=(N,U,ct,Lt=!1,gt=!1)=>{const{type:St,props:Nt,ref:Tt,children:Dt,dynamicChildren:Et,shapeFlag:Ht,patchFlag:ie,dirs:Qt,memoIndex:ce}=N;if(Tt!=null&&_l(Tt,null,ct,N,!0),ce!=null&&(U.renderCache[ce]=void 0),Ht&256){U.ctx.deactivate(N);return}const ye=Ht&1&&Qt,Ne=!No(N);let Ee;if(Ne&&(Ee=Nt&&Nt.onVnodeBeforeUnmount)&&ai(Ee,U,N),Ht&6)Me(N.component,ct,Lt);else{if(Ht&128){N.suspense.unmount(ct,Lt);return}ye&&Si(N,null,U,"beforeUnmount"),Ht&64?N.type.remove(N,U,ct,gt,Kt,Lt):Et&&(St!==Yt||ie>0&&ie&64)?oe(Et,U,ct,!1,!0):(St===Yt&&ie&384||!gt&&Ht&16)&&oe(Dt,U,ct),Lt&&Xe(N)}(Ne&&(Ee=Nt&&Nt.onVnodeUnmounted)||ye)&&Un(()=>{Ee&&ai(Ee,U,N),ye&&Si(N,null,U,"unmounted")},ct)},Xe=N=>{const{type:U,el:ct,anchor:Lt,transition:gt}=N;if(U===Yt){ze(ct,Lt);return}if(U===Fs){ht(N);return}const St=()=>{p(ct),gt&&!gt.persisted&>.afterLeave&>.afterLeave()};if(N.shapeFlag&1&>&&!gt.persisted){const{leave:Nt,delayLeave:Tt}=gt,Dt=()=>Nt(ct,St);Tt?Tt(N.el,St,Dt):Dt()}else St()},ze=(N,U)=>{let ct;for(;N!==U;)ct=T(N),p(N),N=ct;p(U)},Me=(N,U,ct)=>{const{bum:Lt,scope:gt,update:St,subTree:Nt,um:Tt,m:Dt,a:Et}=N;Dh(Dt),Dh(Et),Lt&&nl(Lt),gt.stop(),St&&(St.active=!1,Fe(Nt,N,U,ct)),Tt&&Un(Tt,U),Un(()=>{N.isUnmounted=!0},U),U&&U.pendingBranch&&!U.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===U.pendingId&&(U.deps--,U.deps===0&&U.resolve())},oe=(N,U,ct,Lt=!1,gt=!1,St=0)=>{for(let Nt=St;NtN.shapeFlag&6?mt(N.component.subTree):N.shapeFlag&128?N.suspense.next():T(N.anchor||N.el);let jt=!1;const It=(N,U,ct)=>{N==null?U._vnode&&Fe(U._vnode,null,null,!0):Y(U._vnode||null,N,U,null,null,null,ct),jt||(jt=!0,Lh(),dl(),jt=!1),U._vnode=N},Kt={p:Y,um:Fe,m:we,r:Xe,mt:Le,mc:Ft,pc:kt,pbc:At,n:mt,o:t};let ke,Ie;return i&&([ke,Ie]=i(Kt)),{render:It,hydrate:ke,createApp:Hm(It,ke)}}function zu({type:t,props:i},s){return s==="svg"&&t==="foreignObject"||s==="mathml"&&t==="annotation-xml"&&i&&i.encoding&&i.encoding.includes("html")?void 0:s}function zr({effect:t,update:i},s){t.allowRecurse=i.allowRecurse=s}function jp(t,i){return(!t||t&&!t.pendingBranch)&&i&&!i.persisted}function zp(t,i,s=!1){const u=t.children,p=i.children;if(ue(u)&&ue(p))for(let l=0;l>1,t[s[_]]0&&(i[u]=s[l-1]),s[l]=u)}}for(l=s.length,h=s[l-1];l-- >0;)s[l]=h,h=i[h];return s}function Vp(t){const i=t.subTree.component;if(i)return i.asyncDep&&!i.asyncResolved?i:Vp(i)}function Dh(t){if(t)for(let i=0;ici(ig),tl={};function mn(t,i,s){return $p(t,i,s)}function $p(t,i,{immediate:s,deep:u,flush:p,once:l,onTrack:h,onTrigger:_}=Ke){if(i&&l){const yt=i;i=(...Ut)=>{yt(...Ut),xt()}}const m=xn,x=yt=>u===!0?yt:mr(yt,u===!1?1:void 0);let b,k=!1,T=!1;if(gn(t)?(b=()=>t.value,k=hl(t)):qr(t)?(b=()=>x(t),k=!0):ue(t)?(T=!0,k=t.some(yt=>qr(yt)||hl(yt)),b=()=>t.map(yt=>{if(gn(yt))return yt.value;if(qr(yt))return x(yt);if(be(yt))return yr(yt,m,2)})):be(t)?i?b=()=>yr(t,m,2):b=()=>(j&&j(),ui(t,m,3,[$])):b=li,i&&u){const yt=b;b=()=>mr(yt())}let j,$=yt=>{j=H.onStop=()=>{yr(yt,m,4),j=H.onStop=void 0}},Y;if(Ol)if($=li,i?s&&ui(i,m,3,[b(),T?[]:void 0,$]):b(),p==="sync"){const yt=rg();Y=yt.__watcherHandles||(yt.__watcherHandles=[])}else return li;let vt=T?new Array(t.length).fill(tl):tl;const _t=()=>{if(!(!H.active||!H.dirty))if(i){const yt=H.run();(u||k||(T?yt.some((Ut,Ft)=>vr(Ut,vt[Ft])):vr(yt,vt)))&&(j&&j(),ui(i,m,3,[yt,vt===tl?void 0:T&&vt[0]===tl?[]:vt,$]),vt=yt)}else H.run()};_t.allowRecurse=!!i;let bt;p==="sync"?bt=_t:p==="post"?bt=()=>Un(_t,m&&m.suspense):(_t.pre=!0,m&&(_t.id=m.uid),bt=()=>$c(_t));const H=new Oc(b,li,bt),ht=Xd(),xt=()=>{H.stop(),ht&&Tc(ht.effects,H)};return i?s?_t():vt=H.run():p==="post"?Un(H.run.bind(H),m&&m.suspense):H.run(),Y&&Y.push(xt),xt}function og(t,i,s){const u=this.proxy,p=an(t)?t.includes(".")?Gp(u,t):()=>u[t]:t.bind(u,u);let l;be(i)?l=i:(l=i.handler,s=i);const h=na(this),_=$p(p,l.bind(u),s);return h(),_}function Gp(t,i){const s=i.split(".");return()=>{let u=t;for(let p=0;p{mr(u,i,s)});else if(Ud(t)){for(const u in t)mr(t[u],i,s);for(const u of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,u)&&mr(t[u],i,s)}return t}const Al=t=>t.type.__isKeepAlive;function sg(t,i){Hp(t,"a",i)}function ag(t,i){Hp(t,"da",i)}function Hp(t,i,s=xn){const u=t.__wdc||(t.__wdc=()=>{let p=s;for(;p;){if(p.isDeactivated)return;p=p.parent}return t()});if(Tl(i,u,s),s){let p=s.parent;for(;p&&p.parent;)Al(p.parent.vnode)&&lg(u,i,s,p),p=p.parent}}function lg(t,i,s,u){const p=Tl(i,t,u,!0);Yr(()=>{Tc(u[i],p)},s)}const pr=Symbol("_leaveCb"),el=Symbol("_enterCb");function ug(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Nn(()=>{t.isMounted=!0}),Wi(()=>{t.isUnmounting=!0}),t}const si=[Function,Array],Up={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:si,onEnter:si,onAfterEnter:si,onEnterCancelled:si,onBeforeLeave:si,onLeave:si,onAfterLeave:si,onLeaveCancelled:si,onBeforeAppear:si,onAppear:si,onAfterAppear:si,onAppearCancelled:si},Zp=t=>{const i=t.subTree;return i.component?Zp(i.component):i},cg={name:"BaseTransition",props:Up,setup(t,{slots:i}){const s=Xp(),u=ug();return()=>{const p=i.default&&Kp(i.default(),!0);if(!p||!p.length)return;let l=p[0];if(p.length>1){for(const T of p)if(T.type!==Fn){l=T;break}}const h=Re(t),{mode:_}=h;if(u.isLeaving)return Vu(l);const m=Rh(l);if(!m)return Vu(l);let x=hc(m,h,u,s,T=>x=T);ml(m,x);const b=s.subTree,k=b&&Rh(b);if(k&&k.type!==Fn&&!Hr(m,k)&&Zp(s).type!==Fn){const T=hc(k,h,u,s);if(ml(k,T),_==="out-in"&&m.type!==Fn)return u.isLeaving=!0,T.afterLeave=()=>{u.isLeaving=!1,s.update.active!==!1&&(s.effect.dirty=!0,s.update())},Vu(l);_==="in-out"&&m.type!==Fn&&(T.delayLeave=(j,$,Y)=>{const vt=qp(u,k);vt[String(k.key)]=k,j[pr]=()=>{$(),j[pr]=void 0,delete x.delayedLeave},x.delayedLeave=Y})}return l}}},hg=cg;function qp(t,i){const{leavingVNodes:s}=t;let u=s.get(i.type);return u||(u=Object.create(null),s.set(i.type,u)),u}function hc(t,i,s,u,p){const{appear:l,mode:h,persisted:_=!1,onBeforeEnter:m,onEnter:x,onAfterEnter:b,onEnterCancelled:k,onBeforeLeave:T,onLeave:j,onAfterLeave:$,onLeaveCancelled:Y,onBeforeAppear:vt,onAppear:_t,onAfterAppear:bt,onAppearCancelled:H}=i,ht=String(t.key),xt=qp(s,t),yt=(Pt,At)=>{Pt&&ui(Pt,u,9,At)},Ut=(Pt,At)=>{const Vt=At[1];yt(Pt,At),ue(Pt)?Pt.every(Bt=>Bt.length<=1)&&Vt():Pt.length<=1&&Vt()},Ft={mode:h,persisted:_,beforeEnter(Pt){let At=m;if(!s.isMounted)if(l)At=vt||m;else return;Pt[pr]&&Pt[pr](!0);const Vt=xt[ht];Vt&&Hr(t,Vt)&&Vt.el[pr]&&Vt.el[pr](),yt(At,[Pt])},enter(Pt){let At=x,Vt=b,Bt=k;if(!s.isMounted)if(l)At=_t||x,Vt=bt||b,Bt=H||k;else return;let ae=!1;const Le=Pt[el]=Ae=>{ae||(ae=!0,Ae?yt(Bt,[Pt]):yt(Vt,[Pt]),Ft.delayedLeave&&Ft.delayedLeave(),Pt[el]=void 0)};At?Ut(At,[Pt,Le]):Le()},leave(Pt,At){const Vt=String(t.key);if(Pt[el]&&Pt[el](!0),s.isUnmounting)return At();yt(T,[Pt]);let Bt=!1;const ae=Pt[pr]=Le=>{Bt||(Bt=!0,At(),Le?yt(Y,[Pt]):yt($,[Pt]),Pt[pr]=void 0,xt[Vt]===t&&delete xt[Vt])};xt[Vt]=t,j?Ut(j,[Pt,ae]):ae()},clone(Pt){const At=hc(Pt,i,s,u,p);return p&&p(At),At}};return Ft}function Vu(t){if(Al(t))return t=br(t),t.children=null,t}function Rh(t){if(!Al(t))return t;const{shapeFlag:i,children:s}=t;if(s){if(i&16)return s[0];if(i&32&&be(s.default))return s.default()}}function ml(t,i){t.shapeFlag&6&&t.component?ml(t.component.subTree,i):t.shapeFlag&128?(t.ssContent.transition=i.clone(t.ssContent),t.ssFallback.transition=i.clone(t.ssFallback)):t.transition=i}function Kp(t,i=!1,s){let u=[],p=0;for(let l=0;l1)for(let l=0;lt.__isTeleport,Yt=Symbol.for("v-fgt"),zo=Symbol.for("v-txt"),Fn=Symbol.for("v-cmt"),Fs=Symbol.for("v-stc"),Ns=[];let vi=null;function F(t=!1){Ns.push(vi=t?null:[])}function pg(){Ns.pop(),vi=Ns[Ns.length-1]||null}let qs=1;function Ih(t){qs+=t}function Wp(t){return t.dynamicChildren=qs>0?vi||Do:null,pg(),qs>0&&vi&&vi.push(t),t}function tt(t,i,s,u,p,l){return Wp(Q(t,i,s,u,p,l,!0))}function Ot(t,i,s,u,p){return Wp(ot(t,i,s,u,p,!0))}function gl(t){return t?t.__v_isVNode===!0:!1}function Hr(t,i){return t.type===i.type&&t.key===i.key}const Jp=({key:t})=>t??null,ol=({ref:t,ref_key:i,ref_for:s})=>(typeof t=="number"&&(t=""+t),t!=null?an(t)||gn(t)||be(t)?{i:_n,r:t,k:i,f:!!s}:t:null);function Q(t,i=null,s=null,u=0,p=null,l=t===Yt?0:1,h=!1,_=!1){const m={__v_isVNode:!0,__v_skip:!0,type:t,props:i,key:i&&Jp(i),ref:i&&ol(i),scopeId:Sl,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:u,dynamicProps:p,dynamicChildren:null,appContext:null,ctx:_n};return _?(qc(m,s),l&128&&t.normalize(m)):s&&(m.shapeFlag|=an(s)?8:16),qs>0&&!h&&vi&&(m.patchFlag>0||l&6)&&m.patchFlag!==32&&vi.push(m),m}const ot=fg;function fg(t,i=null,s=null,u=0,p=null,l=!1){if((!t||t===Cp)&&(t=Fn),gl(t)){const _=br(t,i,!0);return s&&qc(_,s),qs>0&&!l&&vi&&(_.shapeFlag&6?vi[vi.indexOf(t)]=_:vi.push(_)),_.patchFlag=-2,_}if(wg(t)&&(t=t.__vccOpts),i){i=_g(i);let{class:_,style:m}=i;_&&!an(_)&&(i.class=kn(_)),We(m)&&(dp(m)&&!ue(m)&&(m=hn({},m)),i.style=Ai(m))}const h=an(t)?1:Bm(t)?128:dg(t)?64:We(t)?4:be(t)?2:0;return Q(t,i,s,u,p,h,l,!0)}function _g(t){return t?dp(t)||Op(t)?hn({},t):t:null}function br(t,i,s=!1,u=!1){const{props:p,ref:l,patchFlag:h,children:_,transition:m}=t,x=i?Yp(p||{},i):p,b={__v_isVNode:!0,__v_skip:!0,type:t.type,props:x,key:x&&Jp(x),ref:i&&i.ref?s&&l?ue(l)?l.concat(ol(i)):[l,ol(i)]:ol(i):l,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:_,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:i&&t.type!==Yt?h===-1?16:h|16:h,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:m,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&br(t.ssContent),ssFallback:t.ssFallback&&br(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return m&&u&&ml(b,m.clone(b)),b}function pe(t=" ",i=0){return ot(zo,null,t,i)}function mg(t,i){const s=ot(Fs,null,t);return s.staticCount=i,s}function $t(t="",i=!1){return i?(F(),Ot(Fn,null,t)):ot(Fn,null,t)}function yi(t){return t==null||typeof t=="boolean"?ot(Fn):ue(t)?ot(Yt,null,t.slice()):typeof t=="object"?fr(t):ot(zo,null,String(t))}function fr(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:br(t)}function qc(t,i){let s=0;const{shapeFlag:u}=t;if(i==null)i=null;else if(ue(i))s=16;else if(typeof i=="object")if(u&65){const p=i.default;p&&(p._c&&(p._d=!1),qc(t,p()),p._c&&(p._d=!0));return}else{s=32;const p=i._;!p&&!Op(i)?i._ctx=_n:p===3&&_n&&(_n.slots._===1?i._=1:(i._=2,t.patchFlag|=1024))}else be(i)?(i={default:i,_ctx:_n},s=32):(i=String(i),u&64?(s=16,i=[pe(i)]):s=8);t.children=i,t.shapeFlag|=s}function Yp(...t){const i={};for(let s=0;sxn||_n;let yl,dc;{const t=qd(),i=(s,u)=>{let p;return(p=t[s])||(p=t[s]=[]),p.push(u),l=>{p.length>1?p.forEach(h=>h(l)):p[0](l)}};yl=i("__VUE_INSTANCE_SETTERS__",s=>xn=s),dc=i("__VUE_SSR_SETTERS__",s=>Ol=s)}const na=t=>{const i=xn;return yl(t),t.scope.on(),()=>{t.scope.off(),yl(i)}},Fh=()=>{xn&&xn.scope.off(),yl(null)};function Qp(t){return t.vnode.shapeFlag&4}let Ol=!1;function bg(t,i=!1){i&&dc(i);const{props:s,children:u}=t.vnode,p=Qp(t);Zm(t,s,p,i),Wm(t,u);const l=p?xg(t,i):void 0;return i&&dc(!1),l}function xg(t,i){const s=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Rm);const{setup:u}=s;if(u){const p=t.setupContext=u.length>1?ef(t):null,l=na(t);Lr();const h=yr(u,t,0,[t.props,p]);if(Cr(),l(),Gd(h)){if(h.then(Fh,Fh),i)return h.then(_=>{Nh(t,_,i)}).catch(_=>{El(_,t,0)});t.asyncDep=h}else Nh(t,h,i)}else tf(t,i)}function Nh(t,i,s){be(i)?t.type.__ssrInlineRender?t.ssrRender=i:t.render=i:We(i)&&(t.setupState=mp(i)),tf(t,s)}let jh;function tf(t,i,s){const u=t.type;if(!t.render){if(!i&&jh&&!u.render){const p=u.template||Uc(t).template;if(p){const{isCustomElement:l,compilerOptions:h}=t.appContext.config,{delimiters:_,compilerOptions:m}=u,x=hn(hn({isCustomElement:l,delimiters:_},h),m);u.render=jh(p,x)}}t.render=u.render||li}{const p=na(t);Lr();try{Nm(t)}finally{Cr(),p()}}}const Lg={get(t,i){return Kn(t,"get",""),t[i]}};function ef(t){const i=s=>{t.exposed=s||{}};return{attrs:new Proxy(t.attrs,Lg),slots:t.slots,emit:t.emit,expose:i}}function Dl(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(mp(jc(t.exposed)),{get(i,s){if(s in i)return i[s];if(s in Is)return Is[s](t)},has(i,s){return s in i||s in Is}})):t.proxy}function Cg(t,i=!0){return be(t)?t.displayName||t.name:t.name||i&&t.__name}function wg(t){return be(t)&&"__vccOpts"in t}const he=(t,i)=>dm(t,i,Ol);function Kc(t,i,s){const u=arguments.length;return u===2?We(i)&&!ue(i)?gl(i)?ot(t,null,[i]):ot(t,i):ot(t,null,i):(u>3?s=Array.prototype.slice.call(arguments,2):u===3&&gl(s)&&(s=[s]),ot(t,i,s))}const kg="3.4.29";/** +* @vue/runtime-dom v3.4.29 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const Mg="http://www.w3.org/2000/svg",Eg="http://www.w3.org/1998/Math/MathML",Zi=typeof document<"u"?document:null,zh=Zi&&Zi.createElement("template"),Pg={insert:(t,i,s)=>{i.insertBefore(t,s||null)},remove:t=>{const i=t.parentNode;i&&i.removeChild(t)},createElement:(t,i,s,u)=>{const p=i==="svg"?Zi.createElementNS(Mg,t):i==="mathml"?Zi.createElementNS(Eg,t):s?Zi.createElement(t,{is:s}):Zi.createElement(t);return t==="select"&&u&&u.multiple!=null&&p.setAttribute("multiple",u.multiple),p},createText:t=>Zi.createTextNode(t),createComment:t=>Zi.createComment(t),setText:(t,i)=>{t.nodeValue=i},setElementText:(t,i)=>{t.textContent=i},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Zi.querySelector(t),setScopeId(t,i){t.setAttribute(i,"")},insertStaticContent(t,i,s,u,p,l){const h=s?s.previousSibling:i.lastChild;if(p&&(p===l||p.nextSibling))for(;i.insertBefore(p.cloneNode(!0),s),!(p===l||!(p=p.nextSibling)););else{zh.innerHTML=u==="svg"?`${t}`:u==="mathml"?`${t}`:t;const _=zh.content;if(u==="svg"||u==="mathml"){const m=_.firstChild;for(;m.firstChild;)_.appendChild(m.firstChild);_.removeChild(m)}i.insertBefore(_,s)}return[h?h.nextSibling:i.firstChild,s?s.previousSibling:i.lastChild]}},ar="transition",Ss="animation",Ks=Symbol("_vtc"),Rl=(t,{slots:i})=>Kc(hg,Bg(t),i);Rl.displayName="Transition";const nf={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};Rl.props=hn({},Up,nf);const Vr=(t,i=[])=>{ue(t)?t.forEach(s=>s(...i)):t&&t(...i)},Vh=t=>t?ue(t)?t.some(i=>i.length>1):t.length>1:!1;function Bg(t){const i={};for(const Bt in t)Bt in nf||(i[Bt]=t[Bt]);if(t.css===!1)return i;const{name:s="v",type:u,duration:p,enterFromClass:l=`${s}-enter-from`,enterActiveClass:h=`${s}-enter-active`,enterToClass:_=`${s}-enter-to`,appearFromClass:m=l,appearActiveClass:x=h,appearToClass:b=_,leaveFromClass:k=`${s}-leave-from`,leaveActiveClass:T=`${s}-leave-active`,leaveToClass:j=`${s}-leave-to`}=t,$=Sg(p),Y=$&&$[0],vt=$&&$[1],{onBeforeEnter:_t,onEnter:bt,onEnterCancelled:H,onLeave:ht,onLeaveCancelled:xt,onBeforeAppear:yt=_t,onAppear:Ut=bt,onAppearCancelled:Ft=H}=i,Pt=(Bt,ae,Le)=>{$r(Bt,ae?b:_),$r(Bt,ae?x:h),Le&&Le()},At=(Bt,ae)=>{Bt._isLeaving=!1,$r(Bt,k),$r(Bt,j),$r(Bt,T),ae&&ae()},Vt=Bt=>(ae,Le)=>{const Ae=Bt?Ut:bt,Rt=()=>Pt(ae,Bt,Le);Vr(Ae,[ae,Rt]),$h(()=>{$r(ae,Bt?m:l),lr(ae,Bt?b:_),Vh(Ae)||Gh(ae,u,Y,Rt)})};return hn(i,{onBeforeEnter(Bt){Vr(_t,[Bt]),lr(Bt,l),lr(Bt,h)},onBeforeAppear(Bt){Vr(yt,[Bt]),lr(Bt,m),lr(Bt,x)},onEnter:Vt(!1),onAppear:Vt(!0),onLeave(Bt,ae){Bt._isLeaving=!0;const Le=()=>At(Bt,ae);lr(Bt,k),lr(Bt,T),Og(),$h(()=>{Bt._isLeaving&&($r(Bt,k),lr(Bt,j),Vh(ht)||Gh(Bt,u,vt,Le))}),Vr(ht,[Bt,Le])},onEnterCancelled(Bt){Pt(Bt,!1),Vr(H,[Bt])},onAppearCancelled(Bt){Pt(Bt,!0),Vr(Ft,[Bt])},onLeaveCancelled(Bt){At(Bt),Vr(xt,[Bt])}})}function Sg(t){if(t==null)return null;if(We(t))return[$u(t.enter),$u(t.leave)];{const i=$u(t);return[i,i]}}function $u(t){return F_(t)}function lr(t,i){i.split(/\s+/).forEach(s=>s&&t.classList.add(s)),(t[Ks]||(t[Ks]=new Set)).add(i)}function $r(t,i){i.split(/\s+/).forEach(u=>u&&t.classList.remove(u));const s=t[Ks];s&&(s.delete(i),s.size||(t[Ks]=void 0))}function $h(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Tg=0;function Gh(t,i,s,u){const p=t._endId=++Tg,l=()=>{p===t._endId&&u()};if(s)return setTimeout(l,s);const{type:h,timeout:_,propCount:m}=Ag(t,i);if(!h)return u();const x=h+"end";let b=0;const k=()=>{t.removeEventListener(x,T),l()},T=j=>{j.target===t&&++b>=m&&k()};setTimeout(()=>{b(s[$]||"").split(", "),p=u(`${ar}Delay`),l=u(`${ar}Duration`),h=Hh(p,l),_=u(`${Ss}Delay`),m=u(`${Ss}Duration`),x=Hh(_,m);let b=null,k=0,T=0;i===ar?h>0&&(b=ar,k=h,T=l.length):i===Ss?x>0&&(b=Ss,k=x,T=m.length):(k=Math.max(h,x),b=k>0?h>x?ar:Ss:null,T=b?b===ar?l.length:m.length:0);const j=b===ar&&/\b(transform|all)(,|$)/.test(u(`${ar}Property`).toString());return{type:b,timeout:k,propCount:T,hasTransform:j}}function Hh(t,i){for(;t.lengthUh(s)+Uh(t[u])))}function Uh(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Og(){return document.body.offsetHeight}function Dg(t,i,s){const u=t[Ks];u&&(i=(i?[i,...u]:[...u]).join(" ")),i==null?t.removeAttribute("class"):s?t.setAttribute("class",i):t.className=i}const vl=Symbol("_vod"),rf=Symbol("_vsh"),Il={beforeMount(t,{value:i},{transition:s}){t[vl]=t.style.display==="none"?"":t.style.display,s&&i?s.beforeEnter(t):Ts(t,i)},mounted(t,{value:i},{transition:s}){s&&i&&s.enter(t)},updated(t,{value:i,oldValue:s},{transition:u}){!i!=!s&&(u?i?(u.beforeEnter(t),Ts(t,!0),u.enter(t)):u.leave(t,()=>{Ts(t,!1)}):Ts(t,i))},beforeUnmount(t,{value:i}){Ts(t,i)}};function Ts(t,i){t.style.display=i?t[vl]:"none",t[rf]=!i}const Rg=Symbol(""),Ig=/(^|;)\s*display\s*:/;function Fg(t,i,s){const u=t.style,p=an(s);let l=!1;if(s&&!p){if(i)if(an(i))for(const h of i.split(";")){const _=h.slice(0,h.indexOf(":")).trim();s[_]==null&&sl(u,_,"")}else for(const h in i)s[h]==null&&sl(u,h,"");for(const h in s)h==="display"&&(l=!0),sl(u,h,s[h])}else if(p){if(i!==s){const h=u[Rg];h&&(s+=";"+h),u.cssText=s,l=Ig.test(s)}}else i&&t.removeAttribute("style");vl in t&&(t[vl]=l?u.display:"",t[rf]&&(u.display="none"))}const Zh=/\s*!important$/;function sl(t,i,s){if(ue(s))s.forEach(u=>sl(t,i,u));else if(s==null&&(s=""),i.startsWith("--"))t.setProperty(i,s);else{const u=Ng(t,i);Zh.test(s)?t.setProperty(Go(u),s.replace(Zh,""),"important"):t[u]=s}}const qh=["Webkit","Moz","ms"],Gu={};function Ng(t,i){const s=Gu[i];if(s)return s;let u=Oi(i);if(u!=="filter"&&u in t)return Gu[i]=u;u=kl(u);for(let p=0;pHu||(Gg.then(()=>Hu=0),Hu=Date.now());function Ug(t,i){const s=u=>{if(!u._vts)u._vts=Date.now();else if(u._vts<=s.attached)return;ui(Zg(u,s.value),i,5,[u])};return s.value=t,s.attached=Hg(),s}function Zg(t,i){if(ue(i)){const s=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{s.call(t),t._stopped=!0},i.map(u=>p=>!p._stopped&&u&&u(p))}else return i}const Xh=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,qg=(t,i,s,u,p,l,h,_,m)=>{const x=p==="svg";i==="class"?Dg(t,u,x):i==="style"?Fg(t,s,u):Qs(i)?Sc(i)||Vg(t,i,s,u,h):(i[0]==="."?(i=i.slice(1),!0):i[0]==="^"?(i=i.slice(1),!1):Kg(t,i,u,x))?(jg(t,i,u,l,h,_,m),(i==="value"||i==="checked"||i==="selected")&&Wh(t,i,u,x,h,i!=="value")):(i==="true-value"?t._trueValue=u:i==="false-value"&&(t._falseValue=u),Wh(t,i,u,x))};function Kg(t,i,s,u){if(u)return!!(i==="innerHTML"||i==="textContent"||i in t&&Xh(i)&&be(s));if(i==="spellcheck"||i==="draggable"||i==="translate"||i==="form"||i==="list"&&t.tagName==="INPUT"||i==="type"&&t.tagName==="TEXTAREA")return!1;if(i==="width"||i==="height"){const p=t.tagName;if(p==="IMG"||p==="VIDEO"||p==="CANVAS"||p==="SOURCE")return!1}return Xh(i)&&an(s)?!1:i in t}const Qh=t=>{const i=t.props["onUpdate:modelValue"]||!1;return ue(i)?s=>nl(i,s):i};function Wg(t){t.target.composing=!0}function td(t){const i=t.target;i.composing&&(i.composing=!1,i.dispatchEvent(new Event("input")))}const Uu=Symbol("_assign"),Jg={created(t,{modifiers:{lazy:i,trim:s,number:u}},p){t[Uu]=Qh(p);const l=u||p.props&&p.props.type==="number";To(t,i?"change":"input",h=>{if(h.target.composing)return;let _=t.value;s&&(_=_.trim()),l&&(_=nc(_)),t[Uu](_)}),s&&To(t,"change",()=>{t.value=t.value.trim()}),i||(To(t,"compositionstart",Wg),To(t,"compositionend",td),To(t,"change",td))},mounted(t,{value:i}){t.value=i??""},beforeUpdate(t,{value:i,oldValue:s,modifiers:{lazy:u,trim:p,number:l}},h){if(t[Uu]=Qh(h),t.composing)return;const _=(l||t.type==="number")&&!/^0\d/.test(t.value)?nc(t.value):t.value,m=i??"";_!==m&&(document.activeElement===t&&t.type!=="range"&&(u&&i===s||p&&t.value.trim()===m)||(t.value=m))}},Yg=["ctrl","shift","alt","meta"],Xg={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,i)=>Yg.some(s=>t[`${s}Key`]&&!i.includes(s))},bl=(t,i)=>{const s=t._withMods||(t._withMods={}),u=i.join(".");return s[u]||(s[u]=(p,...l)=>{for(let h=0;h{const i=t0().createApp(...t),{mount:s}=i;return i.mount=u=>{const p=i0(u);if(p)return s(p,!0,n0(p))},i};function n0(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function i0(t){return an(t)?document.querySelector(t):t}let r0;function o0(){return r0}function Wc(t,i={}){const s=i.head||o0();return s==null?void 0:s.push(t,i)}const s0=["title"],a0={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"},l0=Q("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),u0=[l0],c0={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"},h0=Q("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),d0=[h0],of={__name:"SwitchTheme",setup(t){const i={dark:"dark",light:"light"},s=Jt(null);window!==void 0&&(localStorage.theme==="dark"||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?s.value="dark":s.value="light",mn(s,(p,l)=>{document.documentElement.classList.add(p),document.documentElement.classList.remove(l),localStorage.setItem("theme",p)},{immediate:!0}));const u=()=>{s.value===i.dark?s.value=i.light:s.value=i.dark};return(p,l)=>(F(),tt("button",{type:"button",onClick:u,title:s.value===i.light?"Change to dark mode":"Change to light mode"},[s.value===i.dark?(F(),tt("svg",a0,u0)):(F(),tt("svg",c0,d0))],8,s0))}};var p0={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',project_name:"My project",project_citation:null,project_url:null,project_authors:null,metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",url:null,project_token:null};const f0=["aria-expanded"],_0=Q("span",{class:"sr-only"},"Open main menu",-1),m0={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"},g0={class:"font-normal container mx-auto"},y0={class:"flex flex-col m-0 p-0 border-t border-base-border"},v0={__name:"NavbarMobile",setup(t){const{header_links:i}=p0,s=Jt(!1),u=()=>{s.value=!s.value};return(p,l)=>{const h=pt("IconClose"),_=pt("IconHamburger"),m=pt("router-link"),x=pt("ClientOnly"),b=pt("TrackerReport"),k=pt("AnimationOpacity");return F(),tt(Yt,null,[Q("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":s.value,onClick:u},[_0,s.value?(F(),Ot(h,{key:0})):(F(),Ot(_,{key:1,class:"w-6 h-6"}))],8,f0),ot(k,null,{default:dt(()=>[s.value?(F(),tt("div",m0,[Q("nav",g0,[Q("ul",y0,[(F(!0),tt(Yt,null,Se(ee(i),(T,j)=>(F(),tt("li",{key:j,class:"border-b border-base-border"},[ot(m,{to:T.link,class:"text-base-content w-full p-4 pt-3 pb-3 block box-border"},{default:dt(()=>[pe(se(T.label),1)]),_:2},1032,["to"])]))),128)),Q("li",null,[ot(x,null,{default:dt(()=>[ot(of,{class:"text-base-content w-full p-4 pt-3 pb-3 block box-border border-b border-b-base-border"})]),_:1})]),Q("li",null,[ot(b,{icon:"","button-class":"text-base-content w-full p-4 pt-3 pb-3 block box-border border-b border-b-base-border"})])])])])):$t("",!0)]),_:1})],64)}}};function b0(t){try{return new URL(t),!0}catch{return!1}}var x0={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',project_name:"My project",project_citation:null,project_url:null,project_authors:null,metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",url:null,project_token:null};const L0={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"},C0={class:"container flex flex-wrap justify-between items-center mx-auto font-medium text-secondary-content"},w0=["src","alt"],k0={class:"relative hidden md:flex items-center ml-auto"},M0={class:"text-sm leading-6 font-normal"},E0={class:"flex space-x-8"},P0={class:"flex items-center border-l ml-6 pl-6 border-base-muted border-opacity-50"},B0={class:"flex items-center ml-2 border-base-muted"},S0={__name:"LayoutHeader",setup(t){const{header_links:i,header_logo_text:s,header_logo_url:u,base_url:p,project_name:l}=x0,h=b0(u)?u:(p+u).replace("//","/");return(_,m)=>{const x=pt("RouterLink"),b=pt("router-link"),k=pt("ClientOnly"),T=pt("TrackerReport");return F(),tt("header",L0,[Q("div",C0,[ot(x,{to:"/",class:"flex items-center text-primary-content"},{default:dt(()=>[ee(u)?(F(),tt("img",{key:0,class:"mr-3 h-10",src:ee(h),alt:ee(s)},null,8,w0)):$t("",!0),Q("span",null,se(ee(s)||ee(l)),1)]),_:1}),ot(v0),Q("div",k0,[Q("nav",M0,[Q("ul",E0,[(F(!0),tt(Yt,null,Se(ee(i),(j,$)=>(F(),tt("li",{key:$},[ot(b,{to:j.link,class:"hover:text-primary-content text-primary-content"},{default:dt(()=>[pe(se(j.label),1)]),_:2},1032,["to"])]))),128))])]),Q("div",P0,[ot(k,null,{default:dt(()=>[ot(of,{class:"text-primary-content"})]),_:1})]),Q("div",B0,[ot(T,{icon:""})])])])])}}};/*! + * vue-router v4.3.3 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const Ao=typeof document<"u";function T0(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Ve=Object.assign;function qu(t,i){const s={};for(const u in i){const p=i[u];s[u]=xi(p)?p.map(t):t(p)}return s}const js=()=>{},xi=Array.isArray,sf=/#/g,A0=/&/g,O0=/\//g,D0=/=/g,R0=/\?/g,af=/\+/g,I0=/%5B/g,F0=/%5D/g,lf=/%5E/g,N0=/%60/g,uf=/%7B/g,j0=/%7C/g,cf=/%7D/g,z0=/%20/g;function Jc(t){return encodeURI(""+t).replace(j0,"|").replace(I0,"[").replace(F0,"]")}function V0(t){return Jc(t).replace(uf,"{").replace(cf,"}").replace(lf,"^")}function pc(t){return Jc(t).replace(af,"%2B").replace(z0,"+").replace(sf,"%23").replace(A0,"%26").replace(N0,"`").replace(uf,"{").replace(cf,"}").replace(lf,"^")}function $0(t){return pc(t).replace(D0,"%3D")}function G0(t){return Jc(t).replace(sf,"%23").replace(R0,"%3F")}function H0(t){return t==null?"":G0(t).replace(O0,"%2F")}function Ws(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const U0=/\/$/,Z0=t=>t.replace(U0,"");function Ku(t,i,s="/"){let u,p={},l="",h="";const _=i.indexOf("#");let m=i.indexOf("?");return _=0&&(m=-1),m>-1&&(u=i.slice(0,m),l=i.slice(m+1,_>-1?_:i.length),p=t(l)),_>-1&&(u=u||i.slice(0,_),h=i.slice(_,i.length)),u=J0(u??i,s),{fullPath:u+(l&&"?")+l+h,path:u,query:p,hash:Ws(h)}}function q0(t,i){const s=i.query?t(i.query):"";return i.path+(s&&"?")+s+(i.hash||"")}function nd(t,i){return!i||!t.toLowerCase().startsWith(i.toLowerCase())?t:t.slice(i.length)||"/"}function K0(t,i,s){const u=i.matched.length-1,p=s.matched.length-1;return u>-1&&u===p&&Vo(i.matched[u],s.matched[p])&&hf(i.params,s.params)&&t(i.query)===t(s.query)&&i.hash===s.hash}function Vo(t,i){return(t.aliasOf||t)===(i.aliasOf||i)}function hf(t,i){if(Object.keys(t).length!==Object.keys(i).length)return!1;for(const s in t)if(!W0(t[s],i[s]))return!1;return!0}function W0(t,i){return xi(t)?id(t,i):xi(i)?id(i,t):t===i}function id(t,i){return xi(i)?t.length===i.length&&t.every((s,u)=>s===i[u]):t.length===1&&t[0]===i}function J0(t,i){if(t.startsWith("/"))return t;if(!t)return i;const s=i.split("/"),u=t.split("/"),p=u[u.length-1];(p===".."||p===".")&&u.push("");let l=s.length-1,h,_;for(h=0;h1&&l--;else break;return s.slice(0,l).join("/")+"/"+u.slice(h).join("/")}var Js;(function(t){t.pop="pop",t.push="push"})(Js||(Js={}));var zs;(function(t){t.back="back",t.forward="forward",t.unknown=""})(zs||(zs={}));function Y0(t){if(!t)if(Ao){const i=document.querySelector("base");t=i&&i.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Z0(t)}const X0=/^[^#]+#/;function Q0(t,i){return t.replace(X0,"#")+i}function ty(t,i){const s=document.documentElement.getBoundingClientRect(),u=t.getBoundingClientRect();return{behavior:i.behavior,left:u.left-s.left-(i.left||0),top:u.top-s.top-(i.top||0)}}const Fl=()=>({left:window.scrollX,top:window.scrollY});function ey(t){let i;if("el"in t){const s=t.el,u=typeof s=="string"&&s.startsWith("#"),p=typeof s=="string"?u?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!p)return;i=ty(p,t)}else i=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(i):window.scrollTo(i.left!=null?i.left:window.scrollX,i.top!=null?i.top:window.scrollY)}function rd(t,i){return(history.state?history.state.position-i:-1)+t}const fc=new Map;function ny(t,i){fc.set(t,i)}function iy(t){const i=fc.get(t);return fc.delete(t),i}let ry=()=>location.protocol+"//"+location.host;function df(t,i){const{pathname:s,search:u,hash:p}=i,l=t.indexOf("#");if(l>-1){let _=p.includes(t.slice(l))?t.slice(l).length:1,m=p.slice(_);return m[0]!=="/"&&(m="/"+m),nd(m,"")}return nd(s,t)+u+p}function oy(t,i,s,u){let p=[],l=[],h=null;const _=({state:T})=>{const j=df(t,location),$=s.value,Y=i.value;let vt=0;if(T){if(s.value=j,i.value=T,h&&h===$){h=null;return}vt=Y?T.position-Y.position:0}else u(j);p.forEach(_t=>{_t(s.value,$,{delta:vt,type:Js.pop,direction:vt?vt>0?zs.forward:zs.back:zs.unknown})})};function m(){h=s.value}function x(T){p.push(T);const j=()=>{const $=p.indexOf(T);$>-1&&p.splice($,1)};return l.push(j),j}function b(){const{history:T}=window;T.state&&T.replaceState(Ve({},T.state,{scroll:Fl()}),"")}function k(){for(const T of l)T();l=[],window.removeEventListener("popstate",_),window.removeEventListener("beforeunload",b)}return window.addEventListener("popstate",_),window.addEventListener("beforeunload",b,{passive:!0}),{pauseListeners:m,listen:x,destroy:k}}function od(t,i,s,u=!1,p=!1){return{back:t,current:i,forward:s,replaced:u,position:window.history.length,scroll:p?Fl():null}}function sy(t){const{history:i,location:s}=window,u={value:df(t,s)},p={value:i.state};p.value||l(u.value,{back:null,current:u.value,forward:null,position:i.length-1,replaced:!0,scroll:null},!0);function l(m,x,b){const k=t.indexOf("#"),T=k>-1?(s.host&&document.querySelector("base")?t:t.slice(k))+m:ry()+t+m;try{i[b?"replaceState":"pushState"](x,"",T),p.value=x}catch(j){console.error(j),s[b?"replace":"assign"](T)}}function h(m,x){const b=Ve({},i.state,od(p.value.back,m,p.value.forward,!0),x,{position:p.value.position});l(m,b,!0),u.value=m}function _(m,x){const b=Ve({},p.value,i.state,{forward:m,scroll:Fl()});l(b.current,b,!0);const k=Ve({},od(u.value,m,null),{position:b.position+1},x);l(m,k,!1),u.value=m}return{location:u,state:p,push:_,replace:h}}function pf(t){t=Y0(t);const i=sy(t),s=oy(t,i.state,i.location,i.replace);function u(l,h=!0){h||s.pauseListeners(),history.go(l)}const p=Ve({location:"",base:t,go:u,createHref:Q0.bind(null,t)},i,s);return Object.defineProperty(p,"location",{enumerable:!0,get:()=>i.location.value}),Object.defineProperty(p,"state",{enumerable:!0,get:()=>i.state.value}),p}function ay(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),pf(t)}function ly(t){return typeof t=="string"||t&&typeof t=="object"}function ff(t){return typeof t=="string"||typeof t=="symbol"}const ur={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},_f=Symbol("");var sd;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(sd||(sd={}));function $o(t,i){return Ve(new Error,{type:t,[_f]:!0},i)}function Ui(t,i){return t instanceof Error&&_f in t&&(i==null||!!(t.type&i))}const ad="[^/]+?",uy={sensitive:!1,strict:!1,start:!0,end:!0},cy=/[.+*?^${}()[\]/\\]/g;function hy(t,i){const s=Ve({},uy,i),u=[];let p=s.start?"^":"";const l=[];for(const x of t){const b=x.length?[]:[90];s.strict&&!x.length&&(p+="/");for(let k=0;ki.length?i.length===1&&i[0]===80?1:-1:0}function mf(t,i){let s=0;const u=t.score,p=i.score;for(;s0&&i[i.length-1]<0}const py={type:0,value:""},fy=/[a-zA-Z0-9_]/;function _y(t){if(!t)return[[]];if(t==="/")return[[py]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function i(j){throw new Error(`ERR (${s})/"${x}": ${j}`)}let s=0,u=s;const p=[];let l;function h(){l&&p.push(l),l=[]}let _=0,m,x="",b="";function k(){x&&(s===0?l.push({type:0,value:x}):s===1||s===2||s===3?(l.length>1&&(m==="*"||m==="+")&&i(`A repeatable param (${x}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:x,regexp:b,repeatable:m==="*"||m==="+",optional:m==="*"||m==="?"})):i("Invalid state to consume buffer"),x="")}function T(){x+=m}for(;_{h(bt)}:js}function h(b){if(ff(b)){const k=u.get(b);k&&(u.delete(b),s.splice(s.indexOf(k),1),k.children.forEach(h),k.alias.forEach(h))}else{const k=s.indexOf(b);k>-1&&(s.splice(k,1),b.record.name&&u.delete(b.record.name),b.children.forEach(h),b.alias.forEach(h))}}function _(){return s}function m(b){const k=xy(b,s);s.splice(k,0,b),b.record.name&&!cd(b)&&u.set(b.record.name,b)}function x(b,k){let T,j={},$,Y;if("name"in b&&b.name){if(T=u.get(b.name),!T)throw $o(1,{location:b});Y=T.record.name,j=Ve(ud(k.params,T.keys.filter(bt=>!bt.optional).concat(T.parent?T.parent.keys.filter(bt=>bt.optional):[]).map(bt=>bt.name)),b.params&&ud(b.params,T.keys.map(bt=>bt.name))),$=T.stringify(j)}else if(b.path!=null)$=b.path,T=s.find(bt=>bt.re.test($)),T&&(j=T.parse($),Y=T.record.name);else{if(T=k.name?u.get(k.name):s.find(bt=>bt.re.test(k.path)),!T)throw $o(1,{location:b,currentLocation:k});Y=T.record.name,j=Ve({},k.params,b.params),$=T.stringify(j)}const vt=[];let _t=T;for(;_t;)vt.unshift(_t.record),_t=_t.parent;return{name:Y,path:$,params:j,matched:vt,meta:by(vt)}}return t.forEach(b=>l(b)),{addRoute:l,resolve:x,removeRoute:h,getRoutes:_,getRecordMatcher:p}}function ud(t,i){const s={};for(const u of i)u in t&&(s[u]=t[u]);return s}function yy(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:vy(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 vy(t){const i={},s=t.props||!1;if("component"in t)i.default=s;else for(const u in t.components)i[u]=typeof s=="object"?s[u]:s;return i}function cd(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function by(t){return t.reduce((i,s)=>Ve(i,s.meta),{})}function hd(t,i){const s={};for(const u in t)s[u]=u in i?i[u]:t[u];return s}function xy(t,i){let s=0,u=i.length;for(;s!==u;){const l=s+u>>1;mf(t,i[l])<0?u=l:s=l+1}const p=Ly(t);return p&&(u=i.lastIndexOf(p,u-1)),u}function Ly(t){let i=t;for(;i=i.parent;)if(gf(i)&&mf(t,i)===0)return i}function gf({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function Cy(t){const i={};if(t===""||t==="?")return i;const u=(t[0]==="?"?t.slice(1):t).split("&");for(let p=0;pl&&pc(l)):[u&&pc(u)]).forEach(l=>{l!==void 0&&(i+=(i.length?"&":"")+s,l!=null&&(i+="="+l))})}return i}function wy(t){const i={};for(const s in t){const u=t[s];u!==void 0&&(i[s]=xi(u)?u.map(p=>p==null?null:""+p):u==null?u:""+u)}return i}const ky=Symbol(""),pd=Symbol(""),Nl=Symbol(""),Yc=Symbol(""),_c=Symbol("");function As(){let t=[];function i(u){return t.push(u),()=>{const p=t.indexOf(u);p>-1&&t.splice(p,1)}}function s(){t=[]}return{add:i,list:()=>t.slice(),reset:s}}function _r(t,i,s,u,p,l=h=>h()){const h=u&&(u.enterCallbacks[p]=u.enterCallbacks[p]||[]);return()=>new Promise((_,m)=>{const x=T=>{T===!1?m($o(4,{from:s,to:i})):T instanceof Error?m(T):ly(T)?m($o(2,{from:i,to:T})):(h&&u.enterCallbacks[p]===h&&typeof T=="function"&&h.push(T),_())},b=l(()=>t.call(u&&u.instances[p],i,s,x));let k=Promise.resolve(b);t.length<3&&(k=k.then(x)),k.catch(T=>m(T))})}function Wu(t,i,s,u,p=l=>l()){const l=[];for(const h of t)for(const _ in h.components){let m=h.components[_];if(!(i!=="beforeRouteEnter"&&!h.instances[_]))if(My(m)){const b=(m.__vccOpts||m)[i];b&&l.push(_r(b,s,u,h,_,p))}else{let x=m();l.push(()=>x.then(b=>{if(!b)return Promise.reject(new Error(`Couldn't resolve component "${_}" at "${h.path}"`));const k=T0(b)?b.default:b;h.components[_]=k;const j=(k.__vccOpts||k)[i];return j&&_r(j,s,u,h,_,p)()}))}}return l}function My(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function fd(t){const i=ci(Nl),s=ci(Yc),u=he(()=>{const m=ee(t.to);return i.resolve(m)}),p=he(()=>{const{matched:m}=u.value,{length:x}=m,b=m[x-1],k=s.matched;if(!b||!k.length)return-1;const T=k.findIndex(Vo.bind(null,b));if(T>-1)return T;const j=_d(m[x-2]);return x>1&&_d(b)===j&&k[k.length-1].path!==j?k.findIndex(Vo.bind(null,m[x-2])):T}),l=he(()=>p.value>-1&&Sy(s.params,u.value.params)),h=he(()=>p.value>-1&&p.value===s.matched.length-1&&hf(s.params,u.value.params));function _(m={}){return By(m)?i[ee(t.replace)?"replace":"push"](ee(t.to)).catch(js):Promise.resolve()}return{route:u,href:he(()=>u.value.href),isActive:l,isExactActive:h,navigate:_}}const Ey=Ep({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:fd,setup(t,{slots:i}){const s=ta(fd(t)),{options:u}=ci(Nl),p=he(()=>({[md(t.activeClass,u.linkActiveClass,"router-link-active")]:s.isActive,[md(t.exactActiveClass,u.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const l=i.default&&i.default(s);return t.custom?l:Kc("a",{"aria-current":s.isExactActive?t.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:p.value},l)}}}),Py=Ey;function By(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 i=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(i))return}return t.preventDefault&&t.preventDefault(),!0}}function Sy(t,i){for(const s in i){const u=i[s],p=t[s];if(typeof u=="string"){if(u!==p)return!1}else if(!xi(p)||p.length!==u.length||u.some((l,h)=>l!==p[h]))return!1}return!0}function _d(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const md=(t,i,s)=>t??i??s,Ty=Ep({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:i,slots:s}){const u=ci(_c),p=he(()=>t.route||u.value),l=ci(pd,0),h=he(()=>{let x=ee(l);const{matched:b}=p.value;let k;for(;(k=b[x])&&!k.components;)x++;return x}),_=he(()=>p.value.matched[h.value]);rl(pd,he(()=>h.value+1)),rl(ky,_),rl(_c,p);const m=Jt();return mn(()=>[m.value,_.value,t.name],([x,b,k],[T,j,$])=>{b&&(b.instances[k]=x,j&&j!==b&&x&&x===T&&(b.leaveGuards.size||(b.leaveGuards=j.leaveGuards),b.updateGuards.size||(b.updateGuards=j.updateGuards))),x&&b&&(!j||!Vo(b,j)||!T)&&(b.enterCallbacks[k]||[]).forEach(Y=>Y(x))},{flush:"post"}),()=>{const x=p.value,b=t.name,k=_.value,T=k&&k.components[b];if(!T)return gd(s.default,{Component:T,route:x});const j=k.props[b],$=j?j===!0?x.params:typeof j=="function"?j(x):j:null,vt=Kc(T,Ve({},$,i,{onVnodeUnmounted:_t=>{_t.component.isUnmounted&&(k.instances[b]=null)},ref:m}));return gd(s.default,{Component:vt,route:x})||vt}}});function gd(t,i){if(!t)return null;const s=t(i);return s.length===1?s[0]:s}const Ay=Ty;function Oy(t){const i=gy(t.routes,t),s=t.parseQuery||Cy,u=t.stringifyQuery||dd,p=t.history,l=As(),h=As(),_=As(),m=pm(ur);let x=ur;Ao&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const b=qu.bind(null,mt=>""+mt),k=qu.bind(null,H0),T=qu.bind(null,Ws);function j(mt,jt){let It,Kt;return ff(mt)?(It=i.getRecordMatcher(mt),Kt=jt):Kt=mt,i.addRoute(Kt,It)}function $(mt){const jt=i.getRecordMatcher(mt);jt&&i.removeRoute(jt)}function Y(){return i.getRoutes().map(mt=>mt.record)}function vt(mt){return!!i.getRecordMatcher(mt)}function _t(mt,jt){if(jt=Ve({},jt||m.value),typeof mt=="string"){const U=Ku(s,mt,jt.path),ct=i.resolve({path:U.path},jt),Lt=p.createHref(U.fullPath);return Ve(U,ct,{params:T(ct.params),hash:Ws(U.hash),redirectedFrom:void 0,href:Lt})}let It;if(mt.path!=null)It=Ve({},mt,{path:Ku(s,mt.path,jt.path).path});else{const U=Ve({},mt.params);for(const ct in U)U[ct]==null&&delete U[ct];It=Ve({},mt,{params:k(U)}),jt.params=k(jt.params)}const Kt=i.resolve(It,jt),ke=mt.hash||"";Kt.params=b(T(Kt.params));const Ie=q0(u,Ve({},mt,{hash:V0(ke),path:Kt.path})),N=p.createHref(Ie);return Ve({fullPath:Ie,hash:ke,query:u===dd?wy(mt.query):mt.query||{}},Kt,{redirectedFrom:void 0,href:N})}function bt(mt){return typeof mt=="string"?Ku(s,mt,m.value.path):Ve({},mt)}function H(mt,jt){if(x!==mt)return $o(8,{from:jt,to:mt})}function ht(mt){return Ut(mt)}function xt(mt){return ht(Ve(bt(mt),{replace:!0}))}function yt(mt){const jt=mt.matched[mt.matched.length-1];if(jt&&jt.redirect){const{redirect:It}=jt;let Kt=typeof It=="function"?It(mt):It;return typeof Kt=="string"&&(Kt=Kt.includes("?")||Kt.includes("#")?Kt=bt(Kt):{path:Kt},Kt.params={}),Ve({query:mt.query,hash:mt.hash,params:Kt.path!=null?{}:mt.params},Kt)}}function Ut(mt,jt){const It=x=_t(mt),Kt=m.value,ke=mt.state,Ie=mt.force,N=mt.replace===!0,U=yt(It);if(U)return Ut(Ve(bt(U),{state:typeof U=="object"?Ve({},ke,U.state):ke,force:Ie,replace:N}),jt||It);const ct=It;ct.redirectedFrom=jt;let Lt;return!Ie&&K0(u,Kt,It)&&(Lt=$o(16,{to:ct,from:Kt}),we(Kt,Kt,!0,!1)),(Lt?Promise.resolve(Lt):At(ct,Kt)).catch(gt=>Ui(gt)?Ui(gt,2)?gt:Xt(gt):kt(gt,ct,Kt)).then(gt=>{if(gt){if(Ui(gt,2))return Ut(Ve({replace:N},bt(gt.to),{state:typeof gt.to=="object"?Ve({},ke,gt.to.state):ke,force:Ie}),jt||ct)}else gt=Bt(ct,Kt,!0,N,ke);return Vt(ct,Kt,gt),gt})}function Ft(mt,jt){const It=H(mt,jt);return It?Promise.reject(It):Promise.resolve()}function Pt(mt){const jt=ze.values().next().value;return jt&&typeof jt.runWithContext=="function"?jt.runWithContext(mt):mt()}function At(mt,jt){let It;const[Kt,ke,Ie]=Dy(mt,jt);It=Wu(Kt.reverse(),"beforeRouteLeave",mt,jt);for(const U of Kt)U.leaveGuards.forEach(ct=>{It.push(_r(ct,mt,jt))});const N=Ft.bind(null,mt,jt);return It.push(N),oe(It).then(()=>{It=[];for(const U of l.list())It.push(_r(U,mt,jt));return It.push(N),oe(It)}).then(()=>{It=Wu(ke,"beforeRouteUpdate",mt,jt);for(const U of ke)U.updateGuards.forEach(ct=>{It.push(_r(ct,mt,jt))});return It.push(N),oe(It)}).then(()=>{It=[];for(const U of Ie)if(U.beforeEnter)if(xi(U.beforeEnter))for(const ct of U.beforeEnter)It.push(_r(ct,mt,jt));else It.push(_r(U.beforeEnter,mt,jt));return It.push(N),oe(It)}).then(()=>(mt.matched.forEach(U=>U.enterCallbacks={}),It=Wu(Ie,"beforeRouteEnter",mt,jt,Pt),It.push(N),oe(It))).then(()=>{It=[];for(const U of h.list())It.push(_r(U,mt,jt));return It.push(N),oe(It)}).catch(U=>Ui(U,8)?U:Promise.reject(U))}function Vt(mt,jt,It){_.list().forEach(Kt=>Pt(()=>Kt(mt,jt,It)))}function Bt(mt,jt,It,Kt,ke){const Ie=H(mt,jt);if(Ie)return Ie;const N=jt===ur,U=Ao?history.state:{};It&&(Kt||N?p.replace(mt.fullPath,Ve({scroll:N&&U&&U.scroll},ke)):p.push(mt.fullPath,ke)),m.value=mt,we(mt,jt,It,N),Xt()}let ae;function Le(){ae||(ae=p.listen((mt,jt,It)=>{if(!Me.listening)return;const Kt=_t(mt),ke=yt(Kt);if(ke){Ut(Ve(ke,{replace:!0}),Kt).catch(js);return}x=Kt;const Ie=m.value;Ao&&ny(rd(Ie.fullPath,It.delta),Fl()),At(Kt,Ie).catch(N=>Ui(N,12)?N:Ui(N,2)?(Ut(N.to,Kt).then(U=>{Ui(U,20)&&!It.delta&&It.type===Js.pop&&p.go(-1,!1)}).catch(js),Promise.reject()):(It.delta&&p.go(-It.delta,!1),kt(N,Kt,Ie))).then(N=>{N=N||Bt(Kt,Ie,!1),N&&(It.delta&&!Ui(N,8)?p.go(-It.delta,!1):It.type===Js.pop&&Ui(N,20)&&p.go(-1,!1)),Vt(Kt,Ie,N)}).catch(js)}))}let Ae=As(),Rt=As(),de;function kt(mt,jt,It){Xt(mt);const Kt=Rt.list();return Kt.length?Kt.forEach(ke=>ke(mt,jt,It)):console.error(mt),Promise.reject(mt)}function Ln(){return de&&m.value!==ur?Promise.resolve():new Promise((mt,jt)=>{Ae.add([mt,jt])})}function Xt(mt){return de||(de=!mt,Le(),Ae.list().forEach(([jt,It])=>mt?It(mt):jt()),Ae.reset()),mt}function we(mt,jt,It,Kt){const{scrollBehavior:ke}=t;if(!Ao||!ke)return Promise.resolve();const Ie=!It&&iy(rd(mt.fullPath,0))||(Kt||!It)&&history.state&&history.state.scroll||null;return Pl().then(()=>ke(mt,jt,Ie)).then(N=>N&&ey(N)).catch(N=>kt(N,mt,jt))}const Fe=mt=>p.go(mt);let Xe;const ze=new Set,Me={currentRoute:m,listening:!0,addRoute:j,removeRoute:$,hasRoute:vt,getRoutes:Y,resolve:_t,options:t,push:ht,replace:xt,go:Fe,back:()=>Fe(-1),forward:()=>Fe(1),beforeEach:l.add,beforeResolve:h.add,afterEach:_.add,onError:Rt.add,isReady:Ln,install(mt){const jt=this;mt.component("RouterLink",Py),mt.component("RouterView",Ay),mt.config.globalProperties.$router=jt,Object.defineProperty(mt.config.globalProperties,"$route",{enumerable:!0,get:()=>ee(m)}),Ao&&!Xe&&m.value===ur&&(Xe=!0,ht(p.location).catch(ke=>{}));const It={};for(const ke in ur)Object.defineProperty(It,ke,{get:()=>m.value[ke],enumerable:!0});mt.provide(Nl,jt),mt.provide(Yc,cp(It)),mt.provide(_c,m);const Kt=mt.unmount;ze.add(mt),mt.unmount=function(){ze.delete(mt),ze.size<1&&(x=ur,ae&&ae(),ae=null,m.value=ur,Xe=!1,de=!1),Kt()}}};function oe(mt){return mt.reduce((jt,It)=>jt.then(()=>Pt(It)),Promise.resolve())}return Me}function Dy(t,i){const s=[],u=[],p=[],l=Math.max(i.matched.length,t.matched.length);for(let h=0;hVo(x,_))?u.push(_):s.push(_));const m=t.matched[h];m&&(i.matched.find(x=>Vo(x,m))||p.push(m))}return[s,u,p]}function ia(){return ci(Nl)}function jl(){return ci(Yc)}var Ry=!1;/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let yf;const zl=t=>yf=t,vf=Symbol();function mc(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Vs;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Vs||(Vs={}));function Iy(){const t=Yd(!0),i=t.run(()=>Jt({}));let s=[],u=[];const p=jc({install(l){zl(p),p._a=l,l.provide(vf,p),l.config.globalProperties.$pinia=p,u.forEach(h=>s.push(h)),u=[]},use(l){return!this._a&&!Ry?u.push(l):s.push(l),this},_p:s,_a:null,_e:t,_s:new Map,state:i});return p}const bf=()=>{};function yd(t,i,s,u=bf){t.push(i);const p=()=>{const l=t.indexOf(i);l>-1&&(t.splice(l,1),u())};return!s&&Xd()&&U_(p),p}function Bo(t,...i){t.slice().forEach(s=>{s(...i)})}const Fy=t=>t();function gc(t,i){t instanceof Map&&i instanceof Map&&i.forEach((s,u)=>t.set(u,s)),t instanceof Set&&i instanceof Set&&i.forEach(t.add,t);for(const s in i){if(!i.hasOwnProperty(s))continue;const u=i[s],p=t[s];mc(p)&&mc(u)&&t.hasOwnProperty(s)&&!gn(u)&&!qr(u)?t[s]=gc(p,u):t[s]=u}return t}const Ny=Symbol();function jy(t){return!mc(t)||!t.hasOwnProperty(Ny)}const{assign:hr}=Object;function zy(t){return!!(gn(t)&&t.effect)}function Vy(t,i,s,u){const{state:p,actions:l,getters:h}=i,_=s.state.value[t];let m;function x(){_||(s.state.value[t]=p?p():{});const b=mm(s.state.value[t]);return hr(b,l,Object.keys(h||{}).reduce((k,T)=>(k[T]=jc(he(()=>{zl(s);const j=s._s.get(t);return h[T].call(j,j)})),k),{}))}return m=xf(t,x,i,s,u,!0),m}function xf(t,i,s={},u,p,l){let h;const _=hr({actions:{}},s),m={deep:!0};let x,b,k=[],T=[],j;const $=u.state.value[t];!l&&!$&&(u.state.value[t]={}),Jt({});let Y;function vt(Ft){let Pt;x=b=!1,typeof Ft=="function"?(Ft(u.state.value[t]),Pt={type:Vs.patchFunction,storeId:t,events:j}):(gc(u.state.value[t],Ft),Pt={type:Vs.patchObject,payload:Ft,storeId:t,events:j});const At=Y=Symbol();Pl().then(()=>{Y===At&&(x=!0)}),b=!0,Bo(k,Pt,u.state.value[t])}const _t=l?function(){const{state:Pt}=s,At=Pt?Pt():{};this.$patch(Vt=>{hr(Vt,At)})}:bf;function bt(){h.stop(),k=[],T=[],u._s.delete(t)}function H(Ft,Pt){return function(){zl(u);const At=Array.from(arguments),Vt=[],Bt=[];function ae(Rt){Vt.push(Rt)}function Le(Rt){Bt.push(Rt)}Bo(T,{args:At,name:Ft,store:xt,after:ae,onError:Le});let Ae;try{Ae=Pt.apply(this&&this.$id===t?this:xt,At)}catch(Rt){throw Bo(Bt,Rt),Rt}return Ae instanceof Promise?Ae.then(Rt=>(Bo(Vt,Rt),Rt)).catch(Rt=>(Bo(Bt,Rt),Promise.reject(Rt))):(Bo(Vt,Ae),Ae)}}const ht={_p:u,$id:t,$onAction:yd.bind(null,T),$patch:vt,$reset:_t,$subscribe(Ft,Pt={}){const At=yd(k,Ft,Pt.detached,()=>Vt()),Vt=h.run(()=>mn(()=>u.state.value[t],Bt=>{(Pt.flush==="sync"?b:x)&&Ft({storeId:t,type:Vs.direct,events:j},Bt)},hr({},m,Pt)));return At},$dispose:bt},xt=ta(ht);u._s.set(t,xt);const Ut=(u._a&&u._a.runWithContext||Fy)(()=>u._e.run(()=>(h=Yd()).run(i)));for(const Ft in Ut){const Pt=Ut[Ft];if(gn(Pt)&&!zy(Pt)||qr(Pt))l||($&&jy(Pt)&&(gn(Pt)?Pt.value=$[Ft]:gc(Pt,$[Ft])),u.state.value[t][Ft]=Pt);else if(typeof Pt=="function"){const At=H(Ft,Pt);Ut[Ft]=At,_.actions[Ft]=Pt}}return hr(xt,Ut),hr(Re(xt),Ut),Object.defineProperty(xt,"$state",{get:()=>u.state.value[t],set:Ft=>{vt(Pt=>{hr(Pt,Ft)})}}),u._p.forEach(Ft=>{hr(xt,h.run(()=>Ft({store:xt,app:u._a,pinia:u,options:_})))}),$&&l&&s.hydrate&&s.hydrate(xt.$state,$),x=!0,b=!0,xt}function ra(t,i,s){let u,p;const l=typeof i=="function";typeof t=="string"?(u=t,p=l?s:i):(p=t,u=t.id);function h(_,m){const x=Um();return _=_||(x?ci(vf,null):null),_&&zl(_),_=yf,_._s.has(u)||(l?xf(u,i,p,_):Vy(u,p,_)),_._s.get(u)}return h.$id=u,h}const Xc=ra("footerStore",{state:()=>({nextAuthor:""}),actions:{async setNextAuthorText(t){this.nextAuthor=t}}});var $y={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',project_name:"My project",project_citation:null,project_url:null,project_authors:null,metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",url:null,project_token:null};const Gy={key:0},Hy={__name:"FooterAnalytics",setup(t){const i={analytics:"Google Analytics",gtm:"Google Tag Manager",pixel:"Facebook Pixel",retargeting:"VK Retargeting",linkedin:"Linkedin Insight",tongji:"Baidu Tongji",metrica:"Yandex Metrica",microsoft:"Microsoft Analytics",hotjar:"Hotjar Analytics",fullStory:"Full story Analytics",unbounce:"Unbounce conversion analytics",tiktok:"TikTok Pixel Analytics"},u=Object.keys($y.analytics_services||{}).map(p=>i[p]).filter(Boolean).join("; ");return(p,l)=>ee(u)?(F(),tt("span",Gy,"This site uses "+se(ee(u))+".",1)):$t("",!0)}};var Uy={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',project_name:"My project",project_citation:null,project_url:null,project_authors:null,metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",url:null,project_token:null};const Zy={class:"footer text-white bottom-0 border-gray-200 bg-zinc-800 pl-4 pr-4"},qy={class:"container mx-auto text-sm pt-2 pb-4"},Ky={class:"pt-4 pb-2 break-words"},Wy=["innerHTML"],Jy={key:0},Yy=["href"],Xy={class:"flex items-center text-xs gap-2"},Qy=["src"],tv=Q("hr",{class:"mt-3 mb-3 border-gray-500"},null,-1),ev={class:"flex flex-col sm:flex-row justify-between gap-4"},nv={class:"[&>*:not(:last-child)]:after:content-['|'] [&>*:not(:last-child)]:after:mx-1"},iv=Q("span",null,[pe(" Data provided by "),Q("a",{class:"text-slate-400 hover:text-slate-500 dark:hover:text-slate-300 font-medium",target:"_blank",href:"https://taxonworks.org/"}," TaxonWorks ")],-1),rv=Q("span",null,[pe(" Pages by "),Q("a",{class:"text-slate-400 hover:text-slate-500 dark:hover:text-slate-300 font-medium",target:"_blank",href:"https://github.com/SpeciesFileGroup/taxonpages"}," TaxonPages ")],-1),ov=Q("span",null,[pe(" Support (Services) by "),Q("a",{class:"text-slate-400 hover:text-slate-500 dark:hover:text-slate-300 font-medium",target:"_blank",href:"https://speciesfilegroup.org"}," Species File Group ")],-1),sv={__name:"LayoutFooter",setup(t){const{project_authors:i,project_citation:s,project_url:u,copyright_text:p,copyright_image:l,copyright_image_link:h,hash_mode:_}=Uy,m=Xc(),x=new Date().toISOString().split("T")[0],b=jl(),k=he(()=>{const T=(u||"").replace(/\/$/,"");return T.length?_?T+"/#"+b.fullPath:T+b.fullPath:""});return(T,j)=>{const $=pt("ClientOnly"),Y=pt("TrackerReport");return F(),tt("footer",Zy,[Q("div",qy,[Q("div",Ky,[pe(se(ee(i))+" ",1),ot($,null,{default:dt(()=>[Q("span",{innerHTML:ee(m).nextAuthor},null,8,Wy)]),_:1}),pe(" "+se(ee(s))+". ",1),ot($,null,{default:dt(()=>[Q("span",null,"Retrieved on "+se(ee(x)),1)]),_:1}),k.value?(F(),tt("span",Jy,[pe(" at "),Q("a",{class:"text-secondary-color",href:k.value},se(k.value),9,Yy)])):$t("",!0)]),Q("div",Xy,[(F(),Ot(Ho(ee(h)?"a":"span"),{href:ee(h),class:"min-w-fit"},{default:dt(()=>[ee(l)?(F(),tt("img",{key:0,src:ee(l),alt:"copyright"},null,8,Qy)):$t("",!0)]),_:1},8,["href"])),Q("span",null,se(ee(p)),1)]),tv,Q("div",ev,[Q("div",nv,[iv,rv,ov,ot(Hy,{class:"italic"})]),ot(Y,{icon:"",label:"Report a problem","button-class":"flex gap-2 items-center pl-0 pr-0 pt-0 pb-0 self-end"})])])])}}},av={class:"min-h-screen h-screen flex flex-col justify-between"},lv={class:"flex flex-col flex-grow"},uv={__name:"Application",setup(t){return(i,s)=>(F(),tt("div",av,[Q("div",lv,[ot(S0),Ue(i.$slots,"default")]),ot(sv)]))}};var vd={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',project_name:"My project",project_citation:null,project_url:null,project_authors:null,metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",url:null,project_token:null};const cv={__name:"App",setup(t){return Wc({title:vd.project_name,meta:vd.metadata}),(i,s)=>{const u=pt("router-view");return F(),Ot(uv,null,{default:dt(()=>[ot(u)]),_:1})}}},ge=(t,i)=>{const s=t.__vccOpts||t;for(const[u,p]of i)s[u]=p;return s},hv={},dv={class:"mx-auto"},pv=Q("div",{class:"container mx-auto flex flex-col items-center h-screen justify-center"},[Q("h1",{class:"text-4xl font-medium"}," Welcome to TaxonPages "),Q("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),fv=[pv];function _v(t,i){return F(),tt("div",dv,fv)}const mv=ge(hv,[["render",_v]]),gv={},yv={class:"container mx-auto text-center relative top-1/4"},vv=Q("h1",{class:"text-4xl sm:text-5xl text-base-lighter"}," Welcome to TaxonPages ",-1),bv=Q("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),xv=[vv,bv];function Lv(t,i){return F(),tt("div",yv,xv)}const Cv=ge(gv,[["render",Lv]]),wv=[{name:"homepage",path:"/",alias:"/home",component:Cv}],kv={},Mv={class:"container mx-auto text-center relative top-1/4"},Ev=Q("h1",{class:"text-7xl text-base-lighter"},"500",-1),Pv=Q("p",null,"Internal Server Error.",-1),Bv=Q("p",{class:"m-4 my-10 text-xl"},[pe(" Uh oh, looks like something went wrong!"),Q("br"),pe(" We track these errors automatically, but if the problem persists feel free to contact us. ")],-1),Sv=[Ev,Pv,Bv];function Tv(t,i){return F(),tt("div",Mv,Sv)}const Av=ge(kv,[["render",Tv]]),Ov={},Dv={class:"container mx-auto text-center relative top-1/4"},Rv=Q("h1",{class:"text-7xl text-base-lighter"},"404",-1),Iv=Q("p",null,"Page not found.",-1),Fv=Q("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),Nv=[Rv,Iv,Fv];function jv(t,i){return F(),tt("div",Dv,Nv)}const zv=ge(Ov,[["render",jv]]),Vv=[{path:"/500",name:"httpError500",component:Av,meta:{statusCode:500}},{path:"/:pathMatch(.*)*",name:"httpError404",component:zv,meta:{statusCode:404}}],Vl=ra("otuPageRequest",{state:()=>({requests:{}}),getters:{getRequest:t=>i=>t.requests[i],sitemap:t=>{const i=Object.keys(t.requests).sort();return Object.fromEntries(i.map(s=>[s,t.requests[s].url]))}},actions:{setRequest(t,{data:i,request:s}){var p;const u=((p=s.res)==null?void 0:p.responseUrl)||s.responseURL;this.requests[t]={url:u,data:i}}}}),$v="FamilyGroup",Gv="GenusGroup",Hv="SpeciesGroup",Uv="SpeciesAndInfraspeciesGroup",Ys={CanceledError:"CanceledError"},bd=["neotype","holotype","neolectotype","lectotype","syntype","paralectotype","paratype","paratypes"];function xr(t,i){const s=Vl(),u=i();return u.then(p=>{s.setRequest(t,p)}).catch(p=>{p.name!==Ys.CanceledError&&s.setRequest(t,p.response)}),u}function Lf(t,i){return function(){return t.apply(i,arguments)}}const{toString:Zv}=Object.prototype,{getPrototypeOf:Qc}=Object,$l=(t=>i=>{const s=Zv.call(i);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Li=t=>(t=t.toLowerCase(),i=>$l(i)===t),Gl=t=>i=>typeof i===t,{isArray:Uo}=Array,Xs=Gl("undefined");function qv(t){return t!==null&&!Xs(t)&&t.constructor!==null&&!Xs(t.constructor)&&hi(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Cf=Li("ArrayBuffer");function Kv(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&Cf(t.buffer),i}const Wv=Gl("string"),hi=Gl("function"),wf=Gl("number"),Hl=t=>t!==null&&typeof t=="object",Jv=t=>t===!0||t===!1,al=t=>{if($l(t)!=="object")return!1;const i=Qc(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Yv=Li("Date"),Xv=Li("File"),Qv=Li("Blob"),tb=Li("FileList"),eb=t=>Hl(t)&&hi(t.pipe),nb=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||hi(t.append)&&((i=$l(t))==="formdata"||i==="object"&&hi(t.toString)&&t.toString()==="[object FormData]"))},ib=Li("URLSearchParams"),[rb,ob,sb,ab]=["ReadableStream","Request","Response","Headers"].map(Li),lb=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oa(t,i,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let u,p;if(typeof t!="object"&&(t=[t]),Uo(t))for(u=0,p=t.length;u0;)if(p=s[u],i===p.toLowerCase())return p;return null}const Mf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ef=t=>!Xs(t)&&t!==Mf;function yc(){const{caseless:t}=Ef(this)&&this||{},i={},s=(u,p)=>{const l=t&&kf(i,p)||p;al(i[l])&&al(u)?i[l]=yc(i[l],u):al(u)?i[l]=yc({},u):Uo(u)?i[l]=u.slice():i[l]=u};for(let u=0,p=arguments.length;u(oa(i,(p,l)=>{s&&hi(p)?t[l]=Lf(p,s):t[l]=p},{allOwnKeys:u}),t),cb=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),hb=(t,i,s,u)=>{t.prototype=Object.create(i.prototype,u),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:i.prototype}),s&&Object.assign(t.prototype,s)},db=(t,i,s,u)=>{let p,l,h;const _={};if(i=i||{},t==null)return i;do{for(p=Object.getOwnPropertyNames(t),l=p.length;l-- >0;)h=p[l],(!u||u(h,t,i))&&!_[h]&&(i[h]=t[h],_[h]=!0);t=s!==!1&&Qc(t)}while(t&&(!s||s(t,i))&&t!==Object.prototype);return i},pb=(t,i,s)=>{t=String(t),(s===void 0||s>t.length)&&(s=t.length),s-=i.length;const u=t.indexOf(i,s);return u!==-1&&u===s},fb=t=>{if(!t)return null;if(Uo(t))return t;let i=t.length;if(!wf(i))return null;const s=new Array(i);for(;i-- >0;)s[i]=t[i];return s},_b=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&Qc(Uint8Array)),mb=(t,i)=>{const u=(t&&t[Symbol.iterator]).call(t);let p;for(;(p=u.next())&&!p.done;){const l=p.value;i.call(t,l[0],l[1])}},gb=(t,i)=>{let s;const u=[];for(;(s=t.exec(i))!==null;)u.push(s);return u},yb=Li("HTMLFormElement"),vb=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,u,p){return u.toUpperCase()+p}),xd=(({hasOwnProperty:t})=>(i,s)=>t.call(i,s))(Object.prototype),bb=Li("RegExp"),Pf=(t,i)=>{const s=Object.getOwnPropertyDescriptors(t),u={};oa(s,(p,l)=>{let h;(h=i(p,l,t))!==!1&&(u[l]=h||p)}),Object.defineProperties(t,u)},xb=t=>{Pf(t,(i,s)=>{if(hi(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const u=t[s];if(hi(u)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},Lb=(t,i)=>{const s={},u=p=>{p.forEach(l=>{s[l]=!0})};return Uo(t)?u(t):u(String(t).split(i)),s},Cb=()=>{},wb=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i,Ju="abcdefghijklmnopqrstuvwxyz",Ld="0123456789",Bf={DIGIT:Ld,ALPHA:Ju,ALPHA_DIGIT:Ju+Ju.toUpperCase()+Ld},kb=(t=16,i=Bf.ALPHA_DIGIT)=>{let s="";const{length:u}=i;for(;t--;)s+=i[Math.random()*u|0];return s};function Mb(t){return!!(t&&hi(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Eb=t=>{const i=new Array(10),s=(u,p)=>{if(Hl(u)){if(i.indexOf(u)>=0)return;if(!("toJSON"in u)){i[p]=u;const l=Uo(u)?[]:{};return oa(u,(h,_)=>{const m=s(h,p+1);!Xs(m)&&(l[_]=m)}),i[p]=void 0,l}}return u};return s(t,0)},Pb=Li("AsyncFunction"),Bb=t=>t&&(Hl(t)||hi(t))&&hi(t.then)&&hi(t.catch),ft={isArray:Uo,isArrayBuffer:Cf,isBuffer:qv,isFormData:nb,isArrayBufferView:Kv,isString:Wv,isNumber:wf,isBoolean:Jv,isObject:Hl,isPlainObject:al,isReadableStream:rb,isRequest:ob,isResponse:sb,isHeaders:ab,isUndefined:Xs,isDate:Yv,isFile:Xv,isBlob:Qv,isRegExp:bb,isFunction:hi,isStream:eb,isURLSearchParams:ib,isTypedArray:_b,isFileList:tb,forEach:oa,merge:yc,extend:ub,trim:lb,stripBOM:cb,inherits:hb,toFlatObject:db,kindOf:$l,kindOfTest:Li,endsWith:pb,toArray:fb,forEachEntry:mb,matchAll:gb,isHTMLForm:yb,hasOwnProperty:xd,hasOwnProp:xd,reduceDescriptors:Pf,freezeMethods:xb,toObjectSet:Lb,toCamelCase:vb,noop:Cb,toFiniteNumber:wb,findKey:kf,global:Mf,isContextDefined:Ef,ALPHABET:Bf,generateString:kb,isSpecCompliantForm:Mb,toJSONObject:Eb,isAsyncFn:Pb,isThenable:Bb};function ve(t,i,s,u,p){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",i&&(this.code=i),s&&(this.config=s),u&&(this.request=u),p&&(this.response=p)}ft.inherits(ve,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:ft.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Sf=ve.prototype,Tf={};["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=>{Tf[t]={value:t}});Object.defineProperties(ve,Tf);Object.defineProperty(Sf,"isAxiosError",{value:!0});ve.from=(t,i,s,u,p,l)=>{const h=Object.create(Sf);return ft.toFlatObject(t,h,function(m){return m!==Error.prototype},_=>_!=="isAxiosError"),ve.call(h,t.message,i,s,u,p),h.cause=t,h.name=t.name,l&&Object.assign(h,l),h};const Sb=null;function vc(t){return ft.isPlainObject(t)||ft.isArray(t)}function Af(t){return ft.endsWith(t,"[]")?t.slice(0,-2):t}function Cd(t,i,s){return t?t.concat(i).map(function(p,l){return p=Af(p),!s&&l?"["+p+"]":p}).join(s?".":""):i}function Tb(t){return ft.isArray(t)&&!t.some(vc)}const Ab=ft.toFlatObject(ft,{},null,function(i){return/^is[A-Z]/.test(i)});function Ul(t,i,s){if(!ft.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,s=ft.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Y,vt){return!ft.isUndefined(vt[Y])});const u=s.metaTokens,p=s.visitor||b,l=s.dots,h=s.indexes,m=(s.Blob||typeof Blob<"u"&&Blob)&&ft.isSpecCompliantForm(i);if(!ft.isFunction(p))throw new TypeError("visitor must be a function");function x($){if($===null)return"";if(ft.isDate($))return $.toISOString();if(!m&&ft.isBlob($))throw new ve("Blob is not supported. Use a Buffer instead.");return ft.isArrayBuffer($)||ft.isTypedArray($)?m&&typeof Blob=="function"?new Blob([$]):Buffer.from($):$}function b($,Y,vt){let _t=$;if($&&!vt&&typeof $=="object"){if(ft.endsWith(Y,"{}"))Y=u?Y:Y.slice(0,-2),$=JSON.stringify($);else if(ft.isArray($)&&Tb($)||(ft.isFileList($)||ft.endsWith(Y,"[]"))&&(_t=ft.toArray($)))return Y=Af(Y),_t.forEach(function(H,ht){!(ft.isUndefined(H)||H===null)&&i.append(h===!0?Cd([Y],ht,l):h===null?Y:Y+"[]",x(H))}),!1}return vc($)?!0:(i.append(Cd(vt,Y,l),x($)),!1)}const k=[],T=Object.assign(Ab,{defaultVisitor:b,convertValue:x,isVisitable:vc});function j($,Y){if(!ft.isUndefined($)){if(k.indexOf($)!==-1)throw Error("Circular reference detected in "+Y.join("."));k.push($),ft.forEach($,function(_t,bt){(!(ft.isUndefined(_t)||_t===null)&&p.call(i,_t,ft.isString(bt)?bt.trim():bt,Y,T))===!0&&j(_t,Y?Y.concat(bt):[bt])}),k.pop()}}if(!ft.isObject(t))throw new TypeError("data must be an object");return j(t),i}function wd(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(u){return i[u]})}function th(t,i){this._pairs=[],t&&Ul(t,this,i)}const Of=th.prototype;Of.append=function(i,s){this._pairs.push([i,s])};Of.toString=function(i){const s=i?function(u){return i.call(this,u,wd)}:wd;return this._pairs.map(function(p){return s(p[0])+"="+s(p[1])},"").join("&")};function Ob(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Df(t,i,s){if(!i)return t;const u=s&&s.encode||Ob,p=s&&s.serialize;let l;if(p?l=p(i,s):l=ft.isURLSearchParams(i)?i.toString():new th(i,s).toString(u),l){const h=t.indexOf("#");h!==-1&&(t=t.slice(0,h)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}class kd{constructor(){this.handlers=[]}use(i,s,u){return this.handlers.push({fulfilled:i,rejected:s,synchronous:u?u.synchronous:!1,runWhen:u?u.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){ft.forEach(this.handlers,function(u){u!==null&&i(u)})}}const Rf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Db=typeof URLSearchParams<"u"?URLSearchParams:th,Rb=typeof FormData<"u"?FormData:null,Ib=typeof Blob<"u"?Blob:null,Fb={isBrowser:!0,classes:{URLSearchParams:Db,FormData:Rb,Blob:Ib},protocols:["http","https","file","blob","url","data"]},eh=typeof window<"u"&&typeof document<"u",Nb=(t=>eh&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),jb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zb=eh&&window.location.href||"http://localhost",Vb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eh,hasStandardBrowserEnv:Nb,hasStandardBrowserWebWorkerEnv:jb,origin:zb},Symbol.toStringTag,{value:"Module"})),bi={...Vb,...Fb};function $b(t,i){return Ul(t,new bi.classes.URLSearchParams,Object.assign({visitor:function(s,u,p,l){return bi.isNode&&ft.isBuffer(s)?(this.append(u,s.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},i))}function Gb(t){return ft.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function Hb(t){const i={},s=Object.keys(t);let u;const p=s.length;let l;for(u=0;u=s.length;return h=!h&&ft.isArray(p)?p.length:h,m?(ft.hasOwnProp(p,h)?p[h]=[p[h],u]:p[h]=u,!_):((!p[h]||!ft.isObject(p[h]))&&(p[h]=[]),i(s,u,p[h],l)&&ft.isArray(p[h])&&(p[h]=Hb(p[h])),!_)}if(ft.isFormData(t)&&ft.isFunction(t.entries)){const s={};return ft.forEachEntry(t,(u,p)=>{i(Gb(u),p,s,0)}),s}return null}function Ub(t,i,s){if(ft.isString(t))try{return(i||JSON.parse)(t),ft.trim(t)}catch(u){if(u.name!=="SyntaxError")throw u}return(s||JSON.stringify)(t)}const sa={transitional:Rf,adapter:["xhr","http","fetch"],transformRequest:[function(i,s){const u=s.getContentType()||"",p=u.indexOf("application/json")>-1,l=ft.isObject(i);if(l&&ft.isHTMLForm(i)&&(i=new FormData(i)),ft.isFormData(i))return p?JSON.stringify(If(i)):i;if(ft.isArrayBuffer(i)||ft.isBuffer(i)||ft.isStream(i)||ft.isFile(i)||ft.isBlob(i)||ft.isReadableStream(i))return i;if(ft.isArrayBufferView(i))return i.buffer;if(ft.isURLSearchParams(i))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let _;if(l){if(u.indexOf("application/x-www-form-urlencoded")>-1)return $b(i,this.formSerializer).toString();if((_=ft.isFileList(i))||u.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Ul(_?{"files[]":i}:i,m&&new m,this.formSerializer)}}return l||p?(s.setContentType("application/json",!1),Ub(i)):i}],transformResponse:[function(i){const s=this.transitional||sa.transitional,u=s&&s.forcedJSONParsing,p=this.responseType==="json";if(ft.isResponse(i)||ft.isReadableStream(i))return i;if(i&&ft.isString(i)&&(u&&!this.responseType||p)){const h=!(s&&s.silentJSONParsing)&&p;try{return JSON.parse(i)}catch(_){if(h)throw _.name==="SyntaxError"?ve.from(_,ve.ERR_BAD_RESPONSE,this,null,this.response):_}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bi.classes.FormData,Blob:bi.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ft.forEach(["delete","get","head","post","put","patch"],t=>{sa.headers[t]={}});const Zb=ft.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"]),qb=t=>{const i={};let s,u,p;return t&&t.split(` +`).forEach(function(h){p=h.indexOf(":"),s=h.substring(0,p).trim().toLowerCase(),u=h.substring(p+1).trim(),!(!s||i[s]&&Zb[s])&&(s==="set-cookie"?i[s]?i[s].push(u):i[s]=[u]:i[s]=i[s]?i[s]+", "+u:u)}),i},Md=Symbol("internals");function Os(t){return t&&String(t).trim().toLowerCase()}function ll(t){return t===!1||t==null?t:ft.isArray(t)?t.map(ll):String(t)}function Kb(t){const i=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let u;for(;u=s.exec(t);)i[u[1]]=u[2];return i}const Wb=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Yu(t,i,s,u,p){if(ft.isFunction(u))return u.call(this,i,s);if(p&&(i=s),!!ft.isString(i)){if(ft.isString(u))return i.indexOf(u)!==-1;if(ft.isRegExp(u))return u.test(i)}}function Jb(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,s,u)=>s.toUpperCase()+u)}function Yb(t,i){const s=ft.toCamelCase(" "+i);["get","set","has"].forEach(u=>{Object.defineProperty(t,u+s,{value:function(p,l,h){return this[u].call(this,i,p,l,h)},configurable:!0})})}class qn{constructor(i){i&&this.set(i)}set(i,s,u){const p=this;function l(_,m,x){const b=Os(m);if(!b)throw new Error("header name must be a non-empty string");const k=ft.findKey(p,b);(!k||p[k]===void 0||x===!0||x===void 0&&p[k]!==!1)&&(p[k||m]=ll(_))}const h=(_,m)=>ft.forEach(_,(x,b)=>l(x,b,m));if(ft.isPlainObject(i)||i instanceof this.constructor)h(i,s);else if(ft.isString(i)&&(i=i.trim())&&!Wb(i))h(qb(i),s);else if(ft.isHeaders(i))for(const[_,m]of i.entries())l(m,_,u);else i!=null&&l(s,i,u);return this}get(i,s){if(i=Os(i),i){const u=ft.findKey(this,i);if(u){const p=this[u];if(!s)return p;if(s===!0)return Kb(p);if(ft.isFunction(s))return s.call(this,p,u);if(ft.isRegExp(s))return s.exec(p);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,s){if(i=Os(i),i){const u=ft.findKey(this,i);return!!(u&&this[u]!==void 0&&(!s||Yu(this,this[u],u,s)))}return!1}delete(i,s){const u=this;let p=!1;function l(h){if(h=Os(h),h){const _=ft.findKey(u,h);_&&(!s||Yu(u,u[_],_,s))&&(delete u[_],p=!0)}}return ft.isArray(i)?i.forEach(l):l(i),p}clear(i){const s=Object.keys(this);let u=s.length,p=!1;for(;u--;){const l=s[u];(!i||Yu(this,this[l],l,i,!0))&&(delete this[l],p=!0)}return p}normalize(i){const s=this,u={};return ft.forEach(this,(p,l)=>{const h=ft.findKey(u,l);if(h){s[h]=ll(p),delete s[l];return}const _=i?Jb(l):String(l).trim();_!==l&&delete s[l],s[_]=ll(p),u[_]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const s=Object.create(null);return ft.forEach(this,(u,p)=>{u!=null&&u!==!1&&(s[p]=i&&ft.isArray(u)?u.join(", "):u)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,s])=>i+": "+s).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...s){const u=new this(i);return s.forEach(p=>u.set(p)),u}static accessor(i){const u=(this[Md]=this[Md]={accessors:{}}).accessors,p=this.prototype;function l(h){const _=Os(h);u[_]||(Yb(p,h),u[_]=!0)}return ft.isArray(i)?i.forEach(l):l(i),this}}qn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ft.reduceDescriptors(qn.prototype,({value:t},i)=>{let s=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(u){this[s]=u}}});ft.freezeMethods(qn);function Xu(t,i){const s=this||sa,u=i||s,p=qn.from(u.headers);let l=u.data;return ft.forEach(t,function(_){l=_.call(s,l,p.normalize(),i?i.status:void 0)}),p.normalize(),l}function Ff(t){return!!(t&&t.__CANCEL__)}function Zo(t,i,s){ve.call(this,t??"canceled",ve.ERR_CANCELED,i,s),this.name="CanceledError"}ft.inherits(Zo,ve,{__CANCEL__:!0});function Nf(t,i,s){const u=s.config.validateStatus;!s.status||!u||u(s.status)?t(s):i(new ve("Request failed with status code "+s.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function Xb(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function Qb(t,i){t=t||10;const s=new Array(t),u=new Array(t);let p=0,l=0,h;return i=i!==void 0?i:1e3,function(m){const x=Date.now(),b=u[l];h||(h=x),s[p]=m,u[p]=x;let k=l,T=0;for(;k!==p;)T+=s[k++],k=k%t;if(p=(p+1)%t,p===l&&(l=(l+1)%t),x-hu)return p&&(clearTimeout(p),p=null),s=_,t.apply(null,arguments);p||(p=setTimeout(()=>(p=null,s=Date.now(),t.apply(null,arguments)),u-(_-s)))}}const xl=(t,i,s=3)=>{let u=0;const p=Qb(50,250);return t1(l=>{const h=l.loaded,_=l.lengthComputable?l.total:void 0,m=h-u,x=p(m),b=h<=_;u=h;const k={loaded:h,total:_,progress:_?h/_:void 0,bytes:m,rate:x||void 0,estimated:x&&_&&b?(_-h)/x:void 0,event:l,lengthComputable:_!=null};k[i?"download":"upload"]=!0,t(k)},s)},e1=bi.hasStandardBrowserEnv?function(){const i=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");let u;function p(l){let h=l;return i&&(s.setAttribute("href",h),h=s.href),s.setAttribute("href",h),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return u=p(window.location.href),function(h){const _=ft.isString(h)?p(h):h;return _.protocol===u.protocol&&_.host===u.host}}():function(){return function(){return!0}}(),n1=bi.hasStandardBrowserEnv?{write(t,i,s,u,p,l){const h=[t+"="+encodeURIComponent(i)];ft.isNumber(s)&&h.push("expires="+new Date(s).toGMTString()),ft.isString(u)&&h.push("path="+u),ft.isString(p)&&h.push("domain="+p),l===!0&&h.push("secure"),document.cookie=h.join("; ")},read(t){const i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function i1(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function r1(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function jf(t,i){return t&&!i1(i)?r1(t,i):i}const Ed=t=>t instanceof qn?{...t}:t;function Wr(t,i){i=i||{};const s={};function u(x,b,k){return ft.isPlainObject(x)&&ft.isPlainObject(b)?ft.merge.call({caseless:k},x,b):ft.isPlainObject(b)?ft.merge({},b):ft.isArray(b)?b.slice():b}function p(x,b,k){if(ft.isUndefined(b)){if(!ft.isUndefined(x))return u(void 0,x,k)}else return u(x,b,k)}function l(x,b){if(!ft.isUndefined(b))return u(void 0,b)}function h(x,b){if(ft.isUndefined(b)){if(!ft.isUndefined(x))return u(void 0,x)}else return u(void 0,b)}function _(x,b,k){if(k in i)return u(x,b);if(k in t)return u(void 0,x)}const m={url:l,method:l,data:l,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,withXSRFToken: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:_,headers:(x,b)=>p(Ed(x),Ed(b),!0)};return ft.forEach(Object.keys(Object.assign({},t,i)),function(b){const k=m[b]||p,T=k(t[b],i[b],b);ft.isUndefined(T)&&k!==_||(s[b]=T)}),s}const zf=t=>{const i=Wr({},t);let{data:s,withXSRFToken:u,xsrfHeaderName:p,xsrfCookieName:l,headers:h,auth:_}=i;i.headers=h=qn.from(h),i.url=Df(jf(i.baseURL,i.url),t.params,t.paramsSerializer),_&&h.set("Authorization","Basic "+btoa((_.username||"")+":"+(_.password?unescape(encodeURIComponent(_.password)):"")));let m;if(ft.isFormData(s)){if(bi.hasStandardBrowserEnv||bi.hasStandardBrowserWebWorkerEnv)h.setContentType(void 0);else if((m=h.getContentType())!==!1){const[x,...b]=m?m.split(";").map(k=>k.trim()).filter(Boolean):[];h.setContentType([x||"multipart/form-data",...b].join("; "))}}if(bi.hasStandardBrowserEnv&&(u&&ft.isFunction(u)&&(u=u(i)),u||u!==!1&&e1(i.url))){const x=p&&l&&n1.read(l);x&&h.set(p,x)}return i},o1=typeof XMLHttpRequest<"u",s1=o1&&function(t){return new Promise(function(s,u){const p=zf(t);let l=p.data;const h=qn.from(p.headers).normalize();let{responseType:_}=p,m;function x(){p.cancelToken&&p.cancelToken.unsubscribe(m),p.signal&&p.signal.removeEventListener("abort",m)}let b=new XMLHttpRequest;b.open(p.method.toUpperCase(),p.url,!0),b.timeout=p.timeout;function k(){if(!b)return;const j=qn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),Y={data:!_||_==="text"||_==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:j,config:t,request:b};Nf(function(_t){s(_t),x()},function(_t){u(_t),x()},Y),b=null}"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(k)},b.onabort=function(){b&&(u(new ve("Request aborted",ve.ECONNABORTED,p,b)),b=null)},b.onerror=function(){u(new ve("Network Error",ve.ERR_NETWORK,p,b)),b=null},b.ontimeout=function(){let $=p.timeout?"timeout of "+p.timeout+"ms exceeded":"timeout exceeded";const Y=p.transitional||Rf;p.timeoutErrorMessage&&($=p.timeoutErrorMessage),u(new ve($,Y.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,p,b)),b=null},l===void 0&&h.setContentType(null),"setRequestHeader"in b&&ft.forEach(h.toJSON(),function($,Y){b.setRequestHeader(Y,$)}),ft.isUndefined(p.withCredentials)||(b.withCredentials=!!p.withCredentials),_&&_!=="json"&&(b.responseType=p.responseType),typeof p.onDownloadProgress=="function"&&b.addEventListener("progress",xl(p.onDownloadProgress,!0)),typeof p.onUploadProgress=="function"&&b.upload&&b.upload.addEventListener("progress",xl(p.onUploadProgress)),(p.cancelToken||p.signal)&&(m=j=>{b&&(u(!j||j.type?new Zo(null,t,b):j),b.abort(),b=null)},p.cancelToken&&p.cancelToken.subscribe(m),p.signal&&(p.signal.aborted?m():p.signal.addEventListener("abort",m)));const T=Xb(p.url);if(T&&bi.protocols.indexOf(T)===-1){u(new ve("Unsupported protocol "+T+":",ve.ERR_BAD_REQUEST,t));return}b.send(l||null)})},a1=(t,i)=>{let s=new AbortController,u;const p=function(m){if(!u){u=!0,h();const x=m instanceof Error?m:this.reason;s.abort(x instanceof ve?x:new Zo(x instanceof Error?x.message:x))}};let l=i&&setTimeout(()=>{p(new ve(`timeout ${i} of ms exceeded`,ve.ETIMEDOUT))},i);const h=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(m=>{m&&(m.removeEventListener?m.removeEventListener("abort",p):m.unsubscribe(p))}),t=null)};t.forEach(m=>m&&m.addEventListener&&m.addEventListener("abort",p));const{signal:_}=s;return _.unsubscribe=h,[_,()=>{l&&clearTimeout(l),l=null}]},l1=function*(t,i){let s=t.byteLength;if(!i||s{const l=u1(t,i,p);let h=0;return new ReadableStream({type:"bytes",async pull(_){const{done:m,value:x}=await l.next();if(m){_.close(),u();return}let b=x.byteLength;s&&s(h+=b),_.enqueue(new Uint8Array(x))},cancel(_){return u(_),l.return()}},{highWaterMark:2})},Bd=(t,i)=>{const s=t!=null;return u=>setTimeout(()=>i({lengthComputable:s,total:t,loaded:u}))},Zl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vf=Zl&&typeof ReadableStream=="function",bc=Zl&&(typeof TextEncoder=="function"?(t=>i=>t.encode(i))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),c1=Vf&&(()=>{let t=!1;const i=new Request(bi.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!i})(),Sd=64*1024,xc=Vf&&!!(()=>{try{return ft.isReadableStream(new Response("").body)}catch{}})(),Ll={stream:xc&&(t=>t.body)};Zl&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!Ll[i]&&(Ll[i]=ft.isFunction(t[i])?s=>s[i]():(s,u)=>{throw new ve(`Response type '${i}' is not supported`,ve.ERR_NOT_SUPPORT,u)})})})(new Response);const h1=async t=>{if(t==null)return 0;if(ft.isBlob(t))return t.size;if(ft.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(ft.isArrayBufferView(t))return t.byteLength;if(ft.isURLSearchParams(t)&&(t=t+""),ft.isString(t))return(await bc(t)).byteLength},d1=async(t,i)=>{const s=ft.toFiniteNumber(t.getContentLength());return s??h1(i)},p1=Zl&&(async t=>{let{url:i,method:s,data:u,signal:p,cancelToken:l,timeout:h,onDownloadProgress:_,onUploadProgress:m,responseType:x,headers:b,withCredentials:k="same-origin",fetchOptions:T}=zf(t);x=x?(x+"").toLowerCase():"text";let[j,$]=p||l||h?a1([p,l],h):[],Y,vt;const _t=()=>{!Y&&setTimeout(()=>{j&&j.unsubscribe()}),Y=!0};let bt;try{if(m&&c1&&s!=="get"&&s!=="head"&&(bt=await d1(b,u))!==0){let yt=new Request(i,{method:"POST",body:u,duplex:"half"}),Ut;ft.isFormData(u)&&(Ut=yt.headers.get("content-type"))&&b.setContentType(Ut),yt.body&&(u=Pd(yt.body,Sd,Bd(bt,xl(m)),null,bc))}ft.isString(k)||(k=k?"cors":"omit"),vt=new Request(i,{...T,signal:j,method:s.toUpperCase(),headers:b.normalize().toJSON(),body:u,duplex:"half",withCredentials:k});let H=await fetch(vt);const ht=xc&&(x==="stream"||x==="response");if(xc&&(_||ht)){const yt={};["status","statusText","headers"].forEach(Ft=>{yt[Ft]=H[Ft]});const Ut=ft.toFiniteNumber(H.headers.get("content-length"));H=new Response(Pd(H.body,Sd,_&&Bd(Ut,xl(_,!0)),ht&&_t,bc),yt)}x=x||"text";let xt=await Ll[ft.findKey(Ll,x)||"text"](H,t);return!ht&&_t(),$&&$(),await new Promise((yt,Ut)=>{Nf(yt,Ut,{data:xt,headers:qn.from(H.headers),status:H.status,statusText:H.statusText,config:t,request:vt})})}catch(H){throw _t(),H&&H.name==="TypeError"&&/fetch/i.test(H.message)?Object.assign(new ve("Network Error",ve.ERR_NETWORK,t,vt),{cause:H.cause||H}):ve.from(H,H&&H.code,t,vt)}}),Lc={http:Sb,xhr:s1,fetch:p1};ft.forEach(Lc,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const Td=t=>`- ${t}`,f1=t=>ft.isFunction(t)||t===null||t===!1,$f={getAdapter:t=>{t=ft.isArray(t)?t:[t];const{length:i}=t;let s,u;const p={};for(let l=0;l`adapter ${_} `+(m===!1?"is not supported by the environment":"is not available in the build"));let h=i?l.length>1?`since : +`+l.map(Td).join(` +`):" "+Td(l[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+h,"ERR_NOT_SUPPORT")}return u},adapters:Lc};function Qu(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Zo(null,t)}function Ad(t){return Qu(t),t.headers=qn.from(t.headers),t.data=Xu.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),$f.getAdapter(t.adapter||sa.adapter)(t).then(function(u){return Qu(t),u.data=Xu.call(t,t.transformResponse,u),u.headers=qn.from(u.headers),u},function(u){return Ff(u)||(Qu(t),u&&u.response&&(u.response.data=Xu.call(t,t.transformResponse,u.response),u.response.headers=qn.from(u.response.headers))),Promise.reject(u)})}const Gf="1.7.2",nh={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{nh[t]=function(u){return typeof u===t||"a"+(i<1?"n ":" ")+t}});const Od={};nh.transitional=function(i,s,u){function p(l,h){return"[Axios v"+Gf+"] Transitional option '"+l+"'"+h+(u?". "+u:"")}return(l,h,_)=>{if(i===!1)throw new ve(p(h," has been removed"+(s?" in "+s:"")),ve.ERR_DEPRECATED);return s&&!Od[h]&&(Od[h]=!0,console.warn(p(h," has been deprecated since v"+s+" and will be removed in the near future"))),i?i(l,h,_):!0}};function _1(t,i,s){if(typeof t!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const u=Object.keys(t);let p=u.length;for(;p-- >0;){const l=u[p],h=i[l];if(h){const _=t[l],m=_===void 0||h(_,l,t);if(m!==!0)throw new ve("option "+l+" must be "+m,ve.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new ve("Unknown option "+l,ve.ERR_BAD_OPTION)}}const Cc={assertOptions:_1,validators:nh},cr=Cc.validators;class Kr{constructor(i){this.defaults=i,this.interceptors={request:new kd,response:new kd}}async request(i,s){try{return await this._request(i,s)}catch(u){if(u instanceof Error){let p;Error.captureStackTrace?Error.captureStackTrace(p={}):p=new Error;const l=p.stack?p.stack.replace(/^.+\n/,""):"";try{u.stack?l&&!String(u.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(u.stack+=` +`+l):u.stack=l}catch{}}throw u}}_request(i,s){typeof i=="string"?(s=s||{},s.url=i):s=i||{},s=Wr(this.defaults,s);const{transitional:u,paramsSerializer:p,headers:l}=s;u!==void 0&&Cc.assertOptions(u,{silentJSONParsing:cr.transitional(cr.boolean),forcedJSONParsing:cr.transitional(cr.boolean),clarifyTimeoutError:cr.transitional(cr.boolean)},!1),p!=null&&(ft.isFunction(p)?s.paramsSerializer={serialize:p}:Cc.assertOptions(p,{encode:cr.function,serialize:cr.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let h=l&&ft.merge(l.common,l[s.method]);l&&ft.forEach(["delete","get","head","post","put","patch","common"],$=>{delete l[$]}),s.headers=qn.concat(h,l);const _=[];let m=!0;this.interceptors.request.forEach(function(Y){typeof Y.runWhen=="function"&&Y.runWhen(s)===!1||(m=m&&Y.synchronous,_.unshift(Y.fulfilled,Y.rejected))});const x=[];this.interceptors.response.forEach(function(Y){x.push(Y.fulfilled,Y.rejected)});let b,k=0,T;if(!m){const $=[Ad.bind(this),void 0];for($.unshift.apply($,_),$.push.apply($,x),T=$.length,b=Promise.resolve(s);k{if(!u._listeners)return;let l=u._listeners.length;for(;l-- >0;)u._listeners[l](p);u._listeners=null}),this.promise.then=p=>{let l;const h=new Promise(_=>{u.subscribe(_),l=_}).then(p);return h.cancel=function(){u.unsubscribe(l)},h},i(function(l,h,_){u.reason||(u.reason=new Zo(l,h,_),s(u.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const s=this._listeners.indexOf(i);s!==-1&&this._listeners.splice(s,1)}static source(){let i;return{token:new ih(function(p){i=p}),cancel:i}}}function m1(t){return function(s){return t.apply(null,s)}}function g1(t){return ft.isObject(t)&&t.isAxiosError===!0}const wc={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(wc).forEach(([t,i])=>{wc[i]=t});function Hf(t){const i=new Kr(t),s=Lf(Kr.prototype.request,i);return ft.extend(s,Kr.prototype,i,{allOwnKeys:!0}),ft.extend(s,i,null,{allOwnKeys:!0}),s.create=function(p){return Hf(Wr(t,p))},s}const dn=Hf(sa);dn.Axios=Kr;dn.CanceledError=Zo;dn.CancelToken=ih;dn.isCancel=Ff;dn.VERSION=Gf;dn.toFormData=Ul;dn.AxiosError=ve;dn.Cancel=dn.CanceledError;dn.all=function(i){return Promise.all(i)};dn.spread=m1;dn.isAxiosError=g1;dn.mergeConfig=Wr;dn.AxiosHeaders=qn;dn.formToJSON=t=>If(ft.isHTMLForm(t)?new FormData(t):t);dn.getAdapter=$f.getAdapter;dn.HttpStatusCode=wc;dn.default=dn;var y1={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',project_name:"My project",project_citation:null,project_url:null,project_authors:null,metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",url:null,project_token:null};const{url:v1,project_token:b1}=y1,bn=dn.create({baseURL:v1,params:{project_token:b1}});class Zn{static getTaxonNameCitations(i,s){return bn.get(`/taxon_names/${i}/inventory/catalog`,s)}static getOtu(i){return bn.get(`/otus/${i}`,{params:{extend:["parents"]}})}static getOtus(i){return bn.get("/otus.json",{params:i})}static getTaxon(i,s){return bn.get(`/taxon_names/${i}`,s)}static summary(i,s){return bn.get(`/taxon_names/${i}/inventory/summary`,s)}static getTaxonTypeDesignation(i){return bn.get(`/taxon_names/${i}`,{params:{extend:["type_taxon_name_relationship"]}})}static getOtuImages(i,s){return bn.get(`/otus/${i}/inventory/images.json`,s)}static getTaxonomy(i,s){return bn.get(`/otus/${i}/inventory/taxonomy.json`,s)}static getOtuTypeMaterial(i){return bn.get(`/otus/${i}/inventory/type_material.json`)}static getOtuDistribution(i,s={}){return bn.get(`/otus/${i}/inventory/distribution.json`,s)}static getOtuGeoJSONDistribution(i){return bn.get(`/otus/${i}/inventory/distribution.geojson`)}static getCachedMap(i,s){return bn.get(`/cached_maps/${i}`,s)}static getOtuContent(i,s){return bn.get(`/otus/${i}/inventory/content`,s)}static getCachedMap(i){return bn.get(`/cached_maps/${i}`)}}const Xr=ra("otuStore",{state:()=>({otu:null,taxon:null,images:null,catalog:{sources:[],stats:{},timeline:[],isLoading:!1},taxonomy:{commonNames:[],synonyms:[]}}),actions:{async loadTaxon(t,{signal:i}){const s=Xc(),u=await Promise.all([Zn.getTaxon(t,{params:{extend:["type_taxon_name_relationship"]}}),xr("summary",()=>Zn.summary(t,{signal:i}))]);this.taxon=Object.assign({},...u.map(p=>p.data)),s.setNextAuthorText(this.taxon.full_name_tag+".")},async loadOtu(t,{signal:i}){const s=await Zn.getOtu(t,{signal:i});this.otu=s.data},async loadTaxonomy(t,{signal:i}){const{data:s}=await Zn.getTaxonomy(t,{params:{max_descendants_depth:0,extend:["common_names"]},signal:i});this.taxonomy={commonNames:s.common_names,synonyms:s.nomenclatural_synonyms}},async loadCatalog(t,{signal:i}){this.catalog.isLoading=!0;const s=await xr("taxonomy",()=>Zn.getTaxonNameCitations(t,{signal:i}));this.catalog={...s.data,sources:s.data.sources.map(({cached:u,url:p})=>u.replace(p,`${p}`)),isLoading:!1}},async loadInit({otuId:t,controller:i}){Vl().$reset();try{await this.loadOtu(t,i),await this.loadTaxon(this.otu.taxon_name_id,i),await this.loadCatalog(this.otu.taxon_name_id,i),await this.loadTaxonomy(t,i)}catch(u){return Promise.reject(u)}}}});function x1(t,i){return t||(t={}),t._resolver=i,t}function L1(t){return x1(t,"taxon")}function C1(t){return Wc({script:[{type:"application/ld+json",key:"schema-org-graph",nodes:t}]})}function kc(t,i){return!t.length||t.some(s=>i==null?void 0:i.includes(s))}function w1(t,i){return i.split("::").at(2)===t}function k1(t,i){return{type:"Feature",geometry:t,properties:{base:[{type:i}]}}}function M1(t){const i=[],s=[];return t.features.forEach(u=>{const p=u.properties.shape.id,l=u.properties.shape.type;s.includes(u.properties.base.type)||s.push(u.properties.base.type);const h=i.findIndex(_=>_.properties.shape.id===p&&_.properties.shape.type===l);if(h>-1){const _=i[h];_.properties.base.push(u.properties.base),_.properties.target.push(u.properties.target)}else{const _=structuredClone(u);_.properties.base=[_.properties.base],_.properties.target=[_.properties.target],i.push(_)}}),s.sort(),{shapeTypes:s,features:i}}function E1(t){return t.replace(/^[\s_]+|[\s_]+$/g,"").replace(/[_\s]+/g," ").replace(/^[a-z]/,i=>i.toUpperCase())}function P1(){const t=ia(),i=jl(),s=Jt();mn(i,()=>{s.value=u()},{immediate:!0});function u(){const{children:p}=t.getRoutes().find(l=>l.name==="otus-id");return p.map(({path:l,name:h,meta:_})=>({label:l&&(_.label||E1(l)),path:l,name:h,meta:_}))}return s}const So=Object.values(Object.assign({}))[0];function B1({taxon:t,otu:i}){const s=jl(),p={router:ia(),route:s,taxon:t,otu:i};return{onCreatePage:()=>So==null?void 0:So.onCreatePage(p),onSSRCreatePage:()=>So==null?void 0:So.onSSRCreatePage(p)}}const S1=Q("h3",{class:"font-medium"},"Sitemap",-1),T1={class:"p-4 pt-0"},A1=Q("p",{class:"text-sm mb-2"}," The following links provide the information present on this page in JSON format. ",-1),O1=["href"],D1={__name:"SiteMap",setup(t){const i=Jt(!1),s=Vl();return(u,p)=>{const l=pt("IconJson"),h=pt("VButton"),_=pt("VTableHeaderCell"),m=pt("VTableHeaderRow"),x=pt("VTableHeader"),b=pt("VTableBodyCell"),k=pt("VTableBodyRow"),T=pt("VTableBody"),j=pt("VTable"),$=pt("VModal");return F(),tt("div",null,[ot(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:p[0]||(p[0]=Y=>i.value=!0)},{default:dt(()=>[ot(l,{class:"w-4 h-4"}),pe(" Sitemap ")]),_:1}),i.value?(F(),Ot($,{key:0,onClose:p[1]||(p[1]=Y=>i.value=!1)},{header:dt(()=>[S1]),default:dt(()=>[Q("div",T1,[A1,ot(j,null,{default:dt(()=>[ot(x,null,{default:dt(()=>[ot(m,null,{default:dt(()=>[ot(_,null,{default:dt(()=>[pe(" Request Key ")]),_:1}),ot(_,null,{default:dt(()=>[pe(" URL ")]),_:1})]),_:1})]),_:1}),ot(T,null,{default:dt(()=>[(F(!0),tt(Yt,null,Se(ee(s).sitemap,(Y,vt)=>(F(),Ot(k,{key:vt},{default:dt(()=>[ot(b,{class:"capitalize"},{default:dt(()=>[pe(se(vt.replaceAll(":"," ")),1)]),_:2},1024),ot(b,null,{default:dt(()=>[Q("a",{href:Y},se(Y),9,O1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})])]),_:1})):$t("",!0)])}}},R1={class:"relative"},I1=Q("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"},[Q("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),F1={key:1,class:"absolute right-0 py-2 bg-white dark:bg-gray-900 rounded-md shadow-xl z-20"},N1={__name:"BreadcrumbDropdown",props:{list:{type:Array,required:!0}},setup(t){const i=Jt(!1);return(s,u)=>{const p=pt("router-link");return F(),tt("div",R1,[Q("div",null,[Q("button",{class:"inline-flex items-center text-sm hover:text-gray-900 text-primary-500 dark:hover:text-gray-500",onClick:u[0]||(u[0]=l=>i.value=!i.value)},[Ue(s.$slots,"default"),I1]),i.value?(F(),tt("div",{key:0,class:"fixed inset-0 h-full w-full z-10",onClick:u[1]||(u[1]=l=>i.value=!1)})):$t("",!0),i.value?(F(),tt("div",F1,[(F(!0),tt(Yt,null,Se(t.list,l=>(F(),Ot(p,{key:l.id,class:"block px-4 py-2 text-sm capitalize hover:bg-secondary-color hover:bg-opacity-5",to:{name:"otus-id",params:{id:l.id}}},{default:dt(()=>[pe(se(l.name||s.key),1)]),_:2},1032,["to"]))),128))])):$t("",!0)])])}}},j1={class:"inline-flex items-center flex-wrap"},z1={class:"inline-flex items-center ml-0 text-sm"},V1=["innerHTML"],$1={__name:"Breadcrumb",props:{list:{type:Object,default:()=>({})},current:{type:Object,required:!0}},setup(t){return(i,s)=>{const u=pt("IconArrowRight"),p=pt("router-link");return F(),tt("ul",j1,[(F(!0),tt(Yt,null,Se(t.list,(l,h,_)=>(F(),tt("li",{key:l.id,class:"inline-flex items-center"},[_?(F(),Ot(u,{key:0,class:"w-3 h-3 mr-0.5 ml-0.5 opacity-50"})):$t("",!0),l.length===1?(F(),Ot(p,{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:l[0].id}}},{default:dt(()=>[pe(se(h),1)]),_:2},1032,["to"])):(F(),Ot(N1,{key:2,list:l.map(m=>({...m,name:m.name||h}))},{default:dt(()=>[pe(se(h),1)]),_:2},1032,["list"]))]))),128)),Q("li",z1,[ot(u,{class:"w-3 h-3 mr-0.5 ml-0.5 opacity-50"}),Q("span",{innerHTML:t.current.full_name_tag},null,8,V1)])])}}},G1={__name:"CommonNames",setup(t){const i=Xr(),s=he(()=>i.taxonomy.commonNames.map(u=>u.name).join("; "));return(u,p)=>(F(),tt("span",null,se(s.value),1))}},H1={class:"text-1xl capitalize"},U1={class:"text-xl dark:text-gray-100"},Z1=["title","innerHTML"],q1={key:0,class:"ml-1 text-red-600",title:"Invalid"},K1={class:"text-1xl"},W1={__name:"TaxaInfo",setup(t){const i=Xr();return(s,u)=>(F(),tt("div",null,[Q("h2",H1,se(ee(i).taxon.rank||"Combination"),1),Q("h1",U1,[Q("span",null,[Q("span",{title:ee(i).taxon.short_status,innerHTML:ee(i).taxon.full_name_tag},null,8,Z1),ee(i).taxon.is_valid?$t("",!0):(F(),tt("span",q1," ✕ "))])]),Q("h2",K1,[ot(G1)])]))}};var J1={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',project_name:"My project",project_citation:null,project_url:null,project_authors:null,metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",url:null,project_token:null};const Y1={__name:"DWCDownload",props:{otu:{type:Object,required:!0}},setup(t){const{url:i,project_token:s}=J1,u=t;function p(){window.open(`${i}/otus/${u.otu.id}/inventory/dwc.csv?project_token=${s}`,"_self")}return(l,h)=>{const _=pt("IconDownload"),m=pt("VButton");return F(),Ot(m,{primary:"",class:"text-sm flex items-center",title:"Download DwC Occurrences",onClick:h[0]||(h[0]=()=>{p()})},{default:dt(()=>[ot(_,{class:"w-4 h-4 mr-1"}),pe(" DwC ")]),_:1})}}};var X1={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',project_name:"My project",project_citation:null,project_url:null,project_authors:null,metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",url:null,project_token:null};const Q1={class:"bg-base-foreground border-b border-base-muted pl-4 pr-4"},t4={class:"container mx-auto"},e4={class:"pt-6 pb-6"},n4={class:"flex flex-col-reverse md:flex-row justify-between items-start"},i4={class:"mt-8 flex justify-between items-end"},r4={class:"flex flex-row gap-2"},o4={class:"pt-3 pb-4"},s4={class:"container mx-auto box-border"},a4={__name:"Index",setup(t){const i=jl(),s=ia(),u=Jt(i.params),p=P1(),l=Xr(),h=Xc();let _=new AbortController;s.afterEach(bt=>{u.value=bt.params});const m=he(()=>l.otu),x=he(()=>l.taxon),b=he(()=>{var bt,H;return((bt=m.value)==null?void 0:bt.id)&&((H=x.value)==null?void 0:H.id)}),k=he(()=>p.value.filter(bt=>kc(bt.meta.rankGroup,x.value.rank_string))),{onCreatePage:T,onSSRCreatePage:j}=B1({taxon:x,otu:m});Hc(async()=>{await $(),await j()}),T(),mn(()=>i.params.id,async()=>{_.abort(),_=new AbortController,$()}),Nn(async()=>{var bt,H;((bt=m.value)==null?void 0:bt.id)!==Number(i.params.id)||!((H=x.value)!=null&&H.id)?await $():vt()}),Wi(()=>{l.$reset(),h.$reset()});async function $(){l.$reset(),h.$reset();try{await l.loadInit({otuId:i.params.id,controller:_}),vt()}catch(bt){bt.name!==Ys.CanceledError&&Y(bt)}}function Y(bt){var H;switch((H=bt==null?void 0:bt.response)==null?void 0:H.status){case 404:s.replace({name:"httpError404"});break;case 500:s.replace({name:"httpError500"});break}}function vt(){Wc({title:`${X1.project_name} - ${x.value.full_name}`}),C1([L1({id:i.fullPath,name:x.value.full_name,scientificName:{name:x.value.full_name,author:x.value.author,taxonRank:x.value.rank},parentTaxon:{name:x.value.parent.full_name,taxonRank:x.value.parent.rank},commonNames:l.taxonomy.commonNames,alternateName:l.taxonomy.synonyms})])}function _t({id:bt,otu_valid_id:H}){s.push({name:"otus-id-overview",params:{id:H||bt}})}return(bt,H)=>{const ht=pt("VSkeleton"),xt=pt("Autocomplete"),yt=pt("ClientOnly"),Ut=pt("TabItem"),Ft=pt("TabMenu"),Pt=pt("RouterView");return F(),tt("main",null,[Q("div",Q1,[Q("div",t4,[Q("div",e4,[Q("div",n4,[ot(ht,{class:"w-full md:w-3/4"},{default:dt(()=>{var At;return[b.value?(F(),Ot($1,{key:0,class:"w-full md:w-3/4",list:((At=m.value)==null?void 0:At.parents)||{},current:x.value},null,8,["list","current"])):$t("",!0)]}),_:1}),ot(xt,{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:_t})]),Q("div",i4,[ot(ht,{lines:2,class:"w-96"},{default:dt(()=>[b.value?(F(),Ot(W1,{key:0})):$t("",!0)]),_:1}),Q("div",r4,[ot(yt,null,{default:dt(()=>[ot(D1)]),_:1}),b.value?(F(),Ot(Y1,{key:0,otu:m.value},null,8,["otu"])):$t("",!0)])])]),b.value&&ee(p).length>1?(F(),Ot(Ft,{key:0,class:"m-[-1px] print:hidden"},{default:dt(()=>[(F(!0),tt(Yt,null,Se(k.value,({name:At,label:Vt})=>(F(),Ot(Ut,{key:At,to:{name:At}},{default:dt(()=>[pe(se(Vt),1)]),_:2},1032,["to"]))),128))]),_:1})):$t("",!0)])]),Q("div",o4,[Q("div",s4,[b.value?(F(),Ot(Pt,{key:ee(i).fullPath,"taxon-id":x.value.id,taxon:x.value,"taxon-rank":x.value.rank_string,"otu-id":m.value.id,otu:m.value},null,8,["taxon-id","taxon","taxon-rank","otu-id","otu"])):$t("",!0)])])])}}},l4=["innerHTML"],u4={__name:"PanelContentTopic",props:{title:{type:String,required:!0},textList:{type:Array,required:!0}},setup(t){return(i,s)=>{const u=pt("VCardHeader"),p=pt("VCardContent");return F(),tt(Yt,null,[ot(u,{class:"border-t border-base-muted first:border-t-0"},{default:dt(()=>[pe(se(t.title),1)]),_:1}),ot(p,{class:"panel-content-list"},{default:dt(()=>[(F(!0),tt(Yt,null,Se(t.textList,(l,h)=>(F(),tt("div",{key:h,class:"pt-1 text-sm",innerHTML:l},null,8,l4))),128))]),_:1})],64)}}},c4={__name:"PanelContent",props:{otuId:{type:Number,required:!0}},setup(t){const i=t,s=Jt([]),u=new AbortController,p=he(()=>s.value.reduce((l,h)=>(l[h.name]?l[h.name].push(h.text):l[h.name]=[h.text],l),{}));return Mp(()=>{xr("panel:content",()=>Zn.getOtuContent(i.otuId,{params:{extend:["depiction"]},signal:u.signal})).then(({data:l})=>{s.value=l}).catch(l=>{})}),Wi(()=>{u.abort()}),(l,h)=>{const _=pt("VCard");return s.value.length?(F(),Ot(_,{key:0},{default:dt(()=>[(F(!0),tt(Yt,null,Se(p.value,(m,x)=>(F(),Ot(u4,{key:x,title:x,"text-list":m},null,8,["title","text-list"]))),128))]),_:1})):$t("",!0)}}},h4={id:"panel:content",component:c4},d4={class:"synonyms"},p4=Q("span",{class:"text-orange-500 mr-1"},"=",-1),f4=["innerHTML"],_4={__name:"DescendantsSynonymList",props:{list:{type:Array,required:!0}},setup(t){const i=t;return(s,u)=>(F(),tt("ul",d4,[(F(!0),tt(Yt,null,Se(i.list,p=>(F(),tt("li",{key:p},[p4,Q("span",{innerHTML:p},null,8,f4)]))),128))]))}},m4={key:0,class:"tree"},g4={__name:"DescendantsTree",props:{taxonomy:{type:Object,required:!0},level:{type:Number,default:1}},setup(t){const i=t,s=Jt(!!i.taxonomy.descendants.length),u=Jt([...i.taxonomy.descendants]);mn(s,l=>{l&&p()});const p=()=>{u.value.length||Zn.getTaxonomy(i.taxonomy.otu_id,{params:{max_descendants_depth:1}}).then(({data:l})=>{u.value=l.descendants})};return(l,h)=>{const _=pt("button-expand"),m=pt("router-link"),x=pt("AnimationOpacity");return Object.keys(t.taxonomy).length?(F(),tt("li",{key:t.taxonomy.otu_id},[t.taxonomy.leaf_node?$t("",!0):(F(),Ot(_,{key:0,modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=b=>s.value=b),class:"absolute -left-2.5"},null,8,["modelValue"])),ot(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?(F(),Ot(_4,{key:1,class:"pb-4",list:t.taxonomy.nomenclatural_synonyms},null,8,["list"])):$t("",!0),ot(x,null,{default:dt(()=>[u.value.length?(F(),tt("ul",m4,[(F(!0),tt(Yt,null,Se(u.value,b=>(F(),Ot(x,{key:b.otu_id},{default:dt(()=>[s.value?(F(),Ot(Uf,{key:0,taxonomy:b},null,8,["taxonomy"])):$t("",!0)]),_:2},1024))),128))])):$t("",!0)]),_:1})])):$t("",!0)}}},Uf=ge(g4,[["__scopeId","data-v-b79ba271"]]),y4=Q("h3",null,"JSON Data",-1),v4={key:0,class:"p-5 font-normal"},b4={class:"pb-2 text-sm"},x4=["href"],L4={class:"relative"},C4=["innerHTML"],qo={__name:"PanelDropdown",props:{panelKey:{type:String,required:!0},menuOptions:{type:Array,default:()=>[]}},setup(t){const i=t,s=he(()=>u.getRequest(i.panelKey)),u=Vl(),p=Jt(!1),l=he(()=>[...i.menuOptions,{label:"JSON Data",action:()=>p.value=!0}]);return(h,_)=>{const m=pt("IconHamburger"),x=pt("Dropdown"),b=pt("VClipboard"),k=pt("VModal");return F(),tt(Yt,null,[ot(x,{items:l.value},{button:dt(()=>[ot(m,{class:"text-base-soft h-4"})]),_:1},8,["items"]),p.value?(F(),Ot(k,{key:0,onClose:_[0]||(_[0]=T=>p.value=!1)},{header:dt(()=>[y4]),default:dt(()=>[s.value?(F(),tt("div",v4,[Q("h3",b4,[pe(" URL: "),Q("a",{href:s.value.url},se(s.value.url),9,x4)]),Q("div",L4,[Q("p",{class:"bg-base-background p-2 text-sm font-normal whitespace-pre-wrap",innerHTML:JSON.stringify(s.value.data,null,4)},null,8,C4),ot(b,{class:"absolute right-2 top-2 opacity-75",text:JSON.stringify(s.value.data,null,2)},null,8,["text"])])])):$t("",!0)]),_:1})):$t("",!0)],64)}}},w4=t=>(xp("data-v-91511d41"),t=t(),Lp(),t),k4=w4(()=>Q("h2",{class:"text-md"},"Descendants and synonyms",-1)),M4={class:"tree ml-2"},E4={__name:"PanelDescendants",props:{otuId:{type:[String,Number],required:!0}},setup(t){const i=t,s=Jt(null),u=Jt(!1);return mn(()=>i.otuId,async()=>{i.otuId&&(u.value=!0,xr("panel:descendants",()=>Zn.getTaxonomy(i.otuId,{params:{max_descendants_depth:1}})).then(({data:p})=>{s.value=p}).finally(()=>u.value=!1))},{immediate:!0}),(p,l)=>{const h=pt("VSpinner"),_=pt("ClientOnly"),m=pt("VCardHeader"),x=pt("AnimationOpacity"),b=pt("VCardContent"),k=pt("VCard");return F(),Ot(k,null,{default:dt(()=>[ot(_,null,{default:dt(()=>[u.value?(F(),Ot(h,{key:0,"logo-class":"w-8 h-8",legend:""})):$t("",!0)]),_:1}),ot(m,{class:"flex justify-between"},{default:dt(()=>[k4,ot(qo,{"panel-key":"panel:descendants"})]),_:1}),ot(b,{class:"text-sm"},{default:dt(()=>[Q("ul",M4,[ot(x,null,{default:dt(()=>[s.value&&(s.value.nomenclatural_synonyms.length||s.value.descendants.length)?(F(),Ot(Uf,{key:0,taxonomy:s.value},null,8,["taxonomy"])):$t("",!0)]),_:1})])]),_:1})]),_:1})}}},P4=ge(E4,[["__scopeId","data-v-91511d41"]]),B4={id:"panel:descendants",component:P4};var S4={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',project_name:"My project",project_citation:null,project_url:null,project_authors:null,metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",url:null,project_token:null};const T4=ra("imageStore",{state:()=>({images:null,controller:null}),actions:{resetRequest(){var t;(t=this.controller)==null||t.abort()},async loadImages(t){const i=["image/tiff"],s={extend:["depictions","attribution","source","citations"],otu_scope:["all"]};this.controller=new AbortController;try{const u=await xr("panel:images",()=>Zn.getOtuImages(t,{params:s,signal:this.controller.signal}));this.images=u.data.map(p=>{var m;const l={...p},{url:h,project_token:_}=S4;return i.includes(l.content_type)&&p.original_png&&(l.original=`${h}/${(m=p.original_png)==null?void 0:m.substring(8)}?project_token=${_}`),l}),this.controller=null}catch(u){u.name!==Ys.CanceledError&&(this.controller=null)}}}}),A4={__name:"PanelGallery",props:{otuId:{type:[String,Number],required:!0}},setup(t){const i=t,s=T4(),u=he(()=>s.images||[]);return Hc(async()=>{await s.loadImages(i.otuId)}),Nn(()=>{s.images||s.loadImages(i.otuId)}),Wi(()=>{s.resetRequest(),s.$reset()}),(p,l)=>{const h=pt("GalleryImage"),_=pt("VCardContent"),m=pt("VCard");return u.value.length?(F(),Ot(m,{key:0},{default:dt(()=>[ot(_,null,{default:dt(()=>[ot(h,{images:u.value},null,8,["images"])]),_:1})]),_:1})):$t("",!0)}}},O4={id:"panel:gallery",component:A4,rankGroup:[]},D4=ra("distributionStore",{state:()=>({distribution:{geojson:null,errorMessage:null,currentShapeTypes:[],cachedMap:null},controller:null}),actions:{resetRequest(){var t;(t=this.controller)==null||t.abort()},loadCachedMap(t){Zn.getCachedMap(t,{signal:this.controller.signal}).then(i=>{this.distribution.cachedMap=i.data})},async getAggregateShape(t){xr("panel:map",()=>Zn.getOtuDistribution(t,{signal:this.controller.signal})).then(({data:i})=>{const s=JSON.parse(i.cached_map.geo_json);this.distribution.currentShapeTypes=["Aggregate"],this.distribution.geojson={features:[k1(s,"Aggregate")]},this.loadCachedMap(i.cached_map.id)}).catch(i=>{i.name!=Ys.CanceledError&&(this.distribution.errorMessage=i.response.data.error,this.distribution.currentShapeTypes=[],this.distribution.geojson=[])})},async loadDistribution({otuId:t,rankString:i}){const s=i&&w1("SpeciesGroup",i);this.controller=new AbortController,s?xr("panel:map",()=>Zn.getOtuGeoJSONDistribution(t,{signal:this.controller.signal})).then(({data:u})=>{if(u.request_too_large)this.distribution.geojson=null,this.distribution.errorMessage=u.message;else{const{features:p,shapeTypes:l}=M1(u);this.distribution.currentShapeTypes=l,this.distribution.geojson={features:p}}}).catch(u=>{u.name!==Ys.CanceledError&&this.getAggregateShape(t)}):this.getAggregateShape(t)}}});function Zf(t){return{html:`
${t.getChildCount()}
`,className:"leaflet-marker-icon leaflet-zoom-animated leaflet-interactive bg-map-collection-object bg-opacity-60 marker-cluster text-white",iconSize:[40,40]}}function qf(t){return{html:` +
+
+
+
+
+
+
+ + ${t.getChildCount()} + +
`,className:"leaflet-marker-icon leaflet-zoom-animated leaflet-interactive",iconSize:[40,40]}}function R4(t){return{html:`
${t.getChildCount()}
`,className:"leaflet-marker-icon leaflet-zoom-animated leaflet-interactive marker-cluster bg-map-type-material bg-opacity-60 text-white",iconSize:[40,40]}}const I4=Object.freeze(Object.defineProperty({__proto__:null,CollectionObject:Zf,Mixed:qf,TypeMaterial:R4},Symbol.toStringTag,{value:"Module"}));function F4({L:t,cluster:i}){const s=i.getAllChildMarkers().map(h=>h.feature.properties.base.map(_=>_.type)).flat(),u=[...new Set(s)],p=u.pop(),l=u.length?qf:I4[p]||Zf;return t.divIcon(l(i))}const Mc={allowEditing:!1,allowRemoval:!1,allowCutting:!1,allowRotation:!1,draggable:!1};function N4({popupElement:t,popupItem:i}){return function(){return{onEachFeature:(s,u)=>{u.pm.setOptions(Mc),u.pm.disable(),u.on("popupopen",()=>i.value=s.properties),u.on("popupclose",()=>i.value=null),u.bindPopup(t.value,{minWidth:400,maxWidth:400})}}}}function Kf({popupElement:t}){const i=Jt(null);return{geojsonOptions:he(()=>N4({popupElement:t,popupItem:i})),popupItem:i}}const j4="TypeMaterial",Wf="CollectionObject",z4="AssertedDistribution",V4="Georeference",$4="Aggregate",G4={class:"max-h-32 overflow-y-auto text-xs min-w-80"},H4={class:"py-2 last:border-0 truncate border-b",title:"label"},U4=["textContent","onClick"],Z4={key:1},Jf={__name:"MapPopup",props:{items:{type:Array,required:!0}},emits:["selected"],setup(t,{emit:i}){const s=i;return(u,p)=>(F(),tt("div",G4,[Q("ul",null,[(F(!0),tt(Yt,null,Se(t.items,l=>(F(),tt("li",H4,[l.type===ee(Wf)?(F(),tt("span",{key:0,class:"cursor-pointer text-secondary-color",textContent:se(l.label),onClick:()=>s("selected",l)},null,8,U4)):(F(),tt("span",Z4,se(l.label),1))]))),256))])]))}},q4=Q("h3",{class:"font-medium"},"Cached map",-1),K4={class:"p-4 pt-0"},W4={key:0,class:"text-success flex text-sm items-center"},J4=Q("span",{class:"ml-1"}," Map is synchronized with the latest changes * ",-1),Y4={key:1,class:"text-warning flex text-sm items-center"},X4=Q("span",{class:"ml-1"}," Map is not synchronized with the latest changes * ",-1),Q4=Q("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),tx={__name:"CachedMap",props:{cachedMap:{type:Object,required:!0}},setup(t){const i=Jt(!1);return(s,u)=>{const p=pt("IconCheck"),l=pt("IconWarning"),h=pt("VButton"),_=pt("VTableHeaderCell"),m=pt("VTableHeaderRow"),x=pt("VTableHeader"),b=pt("VTableBodyCell"),k=pt("VTableBodyRow"),T=pt("VTableBody"),j=pt("VTable"),$=pt("VModal");return F(),tt(Yt,null,[ot(h,{class:"left-2 bottom-2 !px-2 py-2 rounded-full absolute z-[1500]",primary:"",title:"Cached map",onClick:u[0]||(u[0]=Y=>i.value=!0)},{default:dt(()=>[t.cachedMap.synced?(F(),Ot(p,{key:0,class:"w-4 h-4"})):(F(),Ot(l,{key:1,class:"w-4 h-4"}))]),_:1}),i.value?(F(),Ot($,{key:0,onClose:u[1]||(u[1]=()=>i.value=!1)},{header:dt(()=>[q4]),default:dt(()=>[Q("div",K4,[ot(j,null,{default:dt(()=>[ot(x,null,{default:dt(()=>[ot(m,null,{default:dt(()=>[ot(_,null,{default:dt(()=>[pe("Data")]),_:1}),ot(_)]),_:1})]),_:1}),ot(T,null,{default:dt(()=>[ot(k,null,{default:dt(()=>[ot(b,null,{default:dt(()=>[pe(" Is synced ")]),_:1}),ot(b,null,{default:dt(()=>[t.cachedMap.synced?(F(),tt("p",W4,[ot(p,{class:"w-4 h-4"}),J4])):(F(),tt("p",Y4,[ot(l,{class:"w-4 h-4"}),X4]))]),_:1})]),_:1}),ot(k,null,{default:dt(()=>[ot(b,null,{default:dt(()=>[pe(" Last update ")]),_:1}),ot(b,null,{default:dt(()=>[pe(se(new Date(t.cachedMap.updated_at)),1)]),_:1})]),_:1})]),_:1}),ot(x,null,{default:dt(()=>[ot(m,null,{default:dt(()=>[ot(_,null,{default:dt(()=>[pe("Source")]),_:1}),ot(_,null,{default:dt(()=>[pe("Total")]),_:1})]),_:1})]),_:1}),ot(T,null,{default:dt(()=>[(F(!0),tt(Yt,null,Se(t.cachedMap.source_scope,(Y,vt)=>(F(),Ot(k,{key:vt},{default:dt(()=>[ot(b,{class:"capitalize"},{default:dt(()=>[pe(se(vt.replaceAll("_"," ")),1)]),_:2},1024),ot(b,null,{default:dt(()=>[pe(se(Y),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),Q4])]),_:1})):$t("",!0)],64)}}},ex={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"},nx=["innerHTML"],ix={__name:"SearchBar",props:{label:{type:String,required:!0}},emits:["close"],setup(t,{emit:i}){const s=i;return(u,p)=>{const l=pt("IconClose");return F(),tt("div",ex,[Q("div",null,[Q("span",{class:"ml-2",innerHTML:t.label},null,8,nx)]),ot(l,{class:"cursor-pointer",onClick:p[0]||(p[0]=()=>s("close"))})])}}},rx={key:1,class:"text-lg text-center text-base-lighter align-middle p-4"},ox={__name:"ListResults",props:{list:{type:Array,default:()=>[]}},emits:["close","close:table"],setup(t,{emit:i}){const s=i;return(u,p)=>{const l=pt("IconArrowRight"),h=pt("VTableHeaderCell"),_=pt("VTableHeaderRow"),m=pt("VTableHeader"),x=pt("RouterLink"),b=pt("VTableBodyCell"),k=pt("VTableBodyRow"),T=pt("VTableBody"),j=pt("VTable");return t.list.length?(F(),Ot(j,{key:0,class:"shadow-md"},{default:dt(()=>[ot(m,null,{default:dt(()=>[ot(_,null,{default:dt(()=>[ot(h,{class:"w-full flex justify-between box-border items-center"},{default:dt(()=>[Q("span",null,"OTU ("+se(t.list.length)+")",1),ot(l,{class:"opacity-50 cursor-pointer w-4 h-4",onClick:p[0]||(p[0]=$=>s("close:table"))})]),_:1})]),_:1})]),_:1}),ot(T,null,{default:dt(()=>[(F(!0),tt(Yt,null,Se(t.list,$=>(F(),Ot(k,{key:$.id},{default:dt(()=>[ot(b,null,{default:dt(()=>[ot(x,{innerHTML:$.object_tag,to:{name:"otus-id",params:{id:$.id}},onClick:p[1]||(p[1]=()=>s("close"))},null,8,["innerHTML","to"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):(F(),tt("div",rx," No OTUs found in this area "))}}},sx={class:"font-medium"},Yf={__name:"DwcTable",setup(t,{expose:i}){const s=Jt(!1),u=Jt(!1),p=Jt({}),l=Jt();function h({label:_,id:m}){u.value=!0,s.value=!0,p.value={},l.value=_,bn(`/collection_objects/${m}/dwc`).then(({data:x})=>{p.value=x}).catch(()=>{}).finally(()=>{s.value=!1})}return i({show:h}),(_,m)=>{const x=pt("VTableHeaderCell"),b=pt("VTableHeaderRow"),k=pt("VTableHeader"),T=pt("VTableBodyCell"),j=pt("VTableBodyRow"),$=pt("VTableBody"),Y=pt("VTable"),vt=pt("VSpinner"),_t=pt("VModal");return u.value?(F(),Ot(_t,{key:0,onClose:m[0]||(m[0]=()=>u.value=!1)},{header:dt(()=>[Q("h3",sx,se(l.value),1)]),default:dt(()=>[ot(Y,{class:"p-4 pt-0"},{default:dt(()=>[ot(k,null,{default:dt(()=>[ot(b,null,{default:dt(()=>[ot(x,null,{default:dt(()=>[pe("Field")]),_:1}),ot(x,null,{default:dt(()=>[pe("Value")]),_:1})]),_:1})]),_:1}),ot($,null,{default:dt(()=>[(F(!0),tt(Yt,null,Se(p.value,(bt,H)=>(F(),Ot(j,{key:H},{default:dt(()=>[ot(T,null,{default:dt(()=>[pe(se(H),1)]),_:2},1024),ot(T,null,{default:dt(()=>[pe(se(bt),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),s.value?(F(),Ot(vt,{key:0})):$t("",!0)]),_:1})):$t("",!0)}}},ax={class:"w-screen h-screen fixed top-0 left-0 z-[5000] flex flex-col"},lx={__name:"OtuSearch",props:{shapes:{type:Object,default:()=>[]},otu:{type:Object,default:void 0}},emits:["close"],setup(t,{emit:i}){const s=t,u=i,p=Jt(null),l=Jt(null),h=Jt(null),_=Jt([]),m=Jt(!1),x=Jt(),b=Jt(6),k=Jt(6),{popupItem:T,geojsonOptions:j}=Kf({popupElement:p}),$=he(()=>!!s.shapes&&k.value<=b.value);Nn(()=>{document.addEventListener("keyup",Y),document.body.classList.add("overflow-hidden")}),Yr(()=>{document.removeEventListener("keyup",Y),document.body.classList.remove("overflow-hidden")});const Y=({key:ht})=>{switch(ht){case"Escape":u("close");break}};function vt(ht){const xt={geo_json:ht,taxon_name_id:[s.otu.taxon_name_id],descendants:!0,per:5e3};x.value=!0,Zn.getOtus(xt).then(({data:yt})=>{_.value=yt,m.value=!0}).finally(yt=>{x.value=!1})}function _t(ht){bt(),$.value&&h.value.resizeMap()}function bt(){k.value=h.value.getMapObject().getZoom()}function H(){b.value=h.value.getMapObject().getZoom(),bt()}return(ht,xt)=>{const yt=pt("VSpinner"),Ut=pt("VMap");return F(),tt("div",ax,[x.value?(F(),Ot(yt,{key:0})):$t("",!0),ot(ix,{label:t.otu.object_tag,onClose:xt[0]||(xt[0]=()=>u("close"))},null,8,["label"]),Q("div",{class:kn(["w-full","h-full","relative",{"disable-zoom-out":$.value}])},[ot(Ut,{ref_key:"mapRef",ref:h,class:"w-full h-full",controls:"",dragging:!$.value,"zoom-bounds":b.value,geojson:t.shapes,geojsonOptions:ee(j),"onGeojson:ready":H,"onAdd:layer":xt[1]||(xt[1]=Ft=>vt(JSON.stringify(Ft.geometry))),"onEdit:layer":xt[2]||(xt[2]=Ft=>vt(JSON.stringify(Ft.geometry))),"onDrag:layer":xt[3]||(xt[3]=Ft=>vt(JSON.stringify(Ft.geometry))),"onZoom:change":_t,zoom:4},null,8,["dragging","zoom-bounds","geojson","geojsonOptions"]),Q("div",{ref_key:"popupElement",ref:p},[ee(T)?(F(),Ot(Jf,{key:0,items:ee(T).base,onSelected:l.value.show},null,8,["items","onSelected"])):$t("",!0)],512),Q("div",{class:kn(["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":!m.value,"right-0":m.value}])},[m.value?(F(),Ot(ox,{key:0,list:_.value,onClose:xt[4]||(xt[4]=()=>u("close")),"onClose:table":xt[5]||(xt[5]=()=>m.value=!1)},null,8,["list"])):$t("",!0)],2)],2),ot(Yf,{ref_key:"dwcTableRef",ref:l},null,512)])}}},ux=ge(lx,[["__scopeId","data-v-a99dffa5"]]),cx={class:"relative"},hx={key:0,class:"flex flex-row p-2 text-xs italic"},dx={key:1,class:"flex flex-row p-2 gap-2 text-xs"},px=2,fx={__name:"PanelMap",props:{otuId:{type:[String,Number],required:!0},otu:{type:Object,required:!0},taxon:{type:Object,required:!0},cluster:{type:Boolean,default:!0}},setup(t){const i=t,s=Jt(!0),u=Jt(!1),p=Jt(null),l=D4(),h=Jt(null),{popupItem:_,geojsonOptions:m}=Kf({popupElement:h}),x={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 Nn(()=>{s.value=!0,l.loadDistribution({otuId:i.otuId,rankString:i.taxon.rank_string})}),Wi(()=>{l.resetRequest(),l.$reset()}),(b,k)=>{const T=pt("VSpinner"),j=pt("VMap"),$=pt("VButton"),Y=pt("ClientOnly"),vt=pt("VCard");return F(),Ot(vt,null,{default:dt(()=>[Q("div",cx,[ot(Y,null,{default:dt(()=>[s.value?(F(),Ot(T,{key:0})):$t("",!0),ot(j,{class:"h-96 max-h-96",dragging:"",cluster:t.cluster,zoom:px,"zoom-bounds":8,geojson:ee(l).distribution.geojson,"cluster-icon-create-function":ee(F4),"geojson-options":ee(m),"onGeojson:ready":k[0]||(k[0]=()=>s.value=!1)},null,8,["cluster","geojson","cluster-icon-create-function","geojson-options"]),Q("div",{ref_key:"popupElement",ref:h},[ee(_)?(F(),Ot(Jf,{key:0,items:ee(_).base,onSelected:p.value.show},null,8,["items","onSelected"])):$t("",!0)],512),ot($,{class:"h-6 text-sm absolute right-3 top-3 z-[400]",primary:"",onClick:k[1]||(k[1]=()=>u.value=!0)},{default:dt(()=>[pe(" Search ")]),_:1}),u.value?(F(),Ot(ux,{key:1,otu:t.otu,shapes:ee(l).distribution.geojson,onClose:k[2]||(k[2]=()=>u.value=!1)},null,8,["otu","shapes"])):$t("",!0),ee(l).distribution.cachedMap?(F(),Ot(tx,{key:2,"cached-map":ee(l).distribution.cachedMap},null,8,["cached-map"])):$t("",!0)]),_:1})]),ee(l).distribution.errorMessage?(F(),tt("div",hx," * "+se(ee(l).distribution.errorMessage),1)):$t("",!0),ee(l).distribution.currentShapeTypes.length?(F(),tt("div",dx,[(F(!0),tt(Yt,null,Se(ee(l).distribution.currentShapeTypes,_t=>(F(),tt("div",{key:_t,class:"flex flex-row items-center"},[Q("div",{class:kn(["w-3","h-3","m-1","rounded-sm",x[_t].background])},null,2),Q("span",null,se(x[_t].label),1)]))),128))])):$t("",!0),ot(Yf,{ref_key:"dwcTableRef",ref:p},null,512)]),_:1})}}},_x={id:"panel:map",component:fx};function Xf(t,i){const s=t.slice(),u=s.splice(0,i),p=s.splice(-i);return{first:u,middle:s,last:p}}const mx={class:"border-b border-base-muted p-3 px-5"},gx=["title","innerHTML"],yx=["innerHTML"],tc={__name:"PanelCitationRow",props:{citation:{type:Object,required:!0}},setup(t){return(i,s)=>(F(),tt("li",mx,[Q("span",{class:"break-all block",title:t.citation.label,innerHTML:t.citation.label},null,8,gx),t.citation.type_label?(F(),tt("p",{key:0,class:"ml-4 text-base-soft",innerHTML:t.citation.type_label},null,8,yx)):$t("",!0)]))}},vx={class:"flex justify-start border-b p-3 px-4 cursor-pointer border-base-muted"},Qf={__name:"PanelNomenclatureShowMore",props:{count:{type:Number,required:!0}},setup(t){return(i,s)=>{const u=pt("IconPlusCircle");return F(),tt("li",vx,[Q("div",{class:"h-5 w-5 text-secondary-color opacity-60 mr-2 cursor-pointer",onClick:s[0]||(s[0]=()=>i.isExpanded=!i.isExpanded)},[ot(u,{class:"h-5 w-5"})]),Q("span",null,"... Show all ... ("+se(t.count)+")",1)])}}},bx={class:"text-md"},xx={class:"text-sm"},Lx={class:"text-sm"},Cx={class:"text-sm"},wx=2,kx={__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 i=Xr(),s=Jt(!1),u=he(()=>Xf(i.catalog.timeline,wx)),p=he(()=>[{label:s.value?"Show less":"Show all",action:()=>s.value=!s.value}]);return(l,h)=>{const _=pt("VSpinner"),m=pt("VCardHeader"),x=pt("AnimationOpacity"),b=pt("VCard");return F(),Ot(b,null,{default:dt(()=>[ee(i).catalog.isLoading?(F(),Ot(_,{key:0,"logo-class":"w-8 h-8",legend:""})):$t("",!0),ot(m,{class:"flex justify-between"},{default:dt(()=>[Q("h2",bx," Nomenclature ("+se(ee(i).catalog.timeline.length)+") ",1),ot(qo,{"menu-options":p.value,"panel-key":"taxonomy"},null,8,["menu-options"])]),_:1}),Q("ul",xx,[(F(!0),tt(Yt,null,Se(u.value.first,k=>(F(),Ot(tc,{key:k.label,citation:k},null,8,["citation"]))),128)),!s.value&&u.value.middle.length?(F(),Ot(Qf,{key:0,count:u.value.middle.length,onClick:h[0]||(h[0]=k=>s.value=!0)},null,8,["count"])):$t("",!0)]),ot(x,null,{default:dt(()=>[ea(Q("ul",Lx,[(F(!0),tt(Yt,null,Se(u.value.middle,k=>(F(),Ot(tc,{key:k.label,citation:k},null,8,["citation"]))),128))],512),[[Il,s.value]])]),_:1}),Q("ul",Cx,[(F(!0),tt(Yt,null,Se(u.value.last,k=>(F(),Ot(tc,{key:k.label,citation:k},null,8,["citation"]))),128))])]),_:1})}}},Mx={id:"panel:nomenclature",component:kx},Ex={class:"border-b border-base-muted p-3 px-5"},Px=["title","innerHTML"],ec={__name:"PanelReferenceRow",props:{reference:{type:String,required:!0}},setup(t){return(i,s)=>(F(),tt("li",Ex,[Q("span",{class:"[&>a]:break-all block",title:t.reference,innerHTML:t.reference},null,8,Px)]))}},Bx={class:"text-md"},Sx={class:"text-sm"},Tx=2,Ax={__name:"PanelNomenclatureReferences",setup(t){const i=Xr(),s=Jt(!1),u=he(()=>Xf(i.catalog.sources,Tx)),p=he(()=>[{label:s.value?"Show less":"Show all",action:()=>s.value=!s.value}]);return(l,h)=>{const _=pt("VSpinner"),m=pt("VCardHeader"),x=pt("AnimationOpacity"),b=pt("VCard");return F(),Ot(b,null,{default:dt(()=>[ee(i).catalog.isLoading?(F(),Ot(_,{key:0,"logo-class":"w-8 h-8",legend:""})):$t("",!0),ot(m,{class:"flex justify-between"},{default:dt(()=>[Q("h2",Bx," Nomenclature references ("+se(ee(i).catalog.sources.length)+") ",1),ot(qo,{"menu-options":p.value,"panel-key":"taxonomy"},null,8,["menu-options"])]),_:1}),Q("ul",Sx,[(F(!0),tt(Yt,null,Se(u.value.first,k=>(F(),Ot(ec,{key:k,reference:k},null,8,["reference"]))),128)),!s.value&&u.value.middle.length?(F(),Ot(Qf,{key:0,count:u.value.middle.length,onClick:h[0]||(h[0]=k=>s.value=!0)},null,8,["count"])):$t("",!0),ot(x,null,{default:dt(()=>[ea(Q("div",null,[(F(!0),tt(Yt,null,Se(u.value.middle,k=>(F(),Ot(ec,{key:k,reference:k},null,8,["reference"]))),128))],512),[[Il,s.value]])]),_:1}),(F(!0),tt(Yt,null,Se(u.value.last,k=>(F(),Ot(ec,{key:k,reference:k},null,8,["reference"]))),128))])]),_:1})}}},Ox={id:"panel:nomenclature-references",component:Ax},Dx=Q("h2",{class:"text-md"},"Stats",-1),Rx={__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 i=Xr(),s=Jt(!1),u=he(()=>[{label:s.value?"Hide taxa":"Show taxa",action:()=>s.value=!s.value}]);return(p,l)=>{const h=pt("VSpinner"),_=pt("VCardHeader"),m=pt("VTableHeaderCell"),x=pt("VTableHeaderRow"),b=pt("VTableHeader"),k=pt("VTableBodyCell"),T=pt("VTableBodyRow"),j=pt("VTableBody"),$=pt("VTable"),Y=pt("VCardContent"),vt=pt("VCard");return F(),Ot(vt,null,{default:dt(()=>[ee(i).catalog.isLoading?(F(),Ot(h,{key:0,"logo-class":"w-8 h-8",legend:""})):$t("",!0),ot(_,{class:"flex justify-between"},{default:dt(()=>[Dx,ot(qo,{"panel-key":"taxonomy","menu-options":u.value},null,8,["menu-options"])]),_:1}),ot(Y,{class:"text-sm"},{default:dt(()=>[ot($,null,{default:dt(()=>[ot(b,null,{default:dt(()=>[ot(x,null,{default:dt(()=>[ot(m,{class:"bg-base-foreground"}),s.value?(F(),Ot(m,{key:0,title:"OTUs linked to valid protonyms"},{default:dt(()=>[pe(" Taxa ")]),_:1})):$t("",!0),ot(m,{title:"Taxon names",class:"border-l border-base-border"},{default:dt(()=>[pe(" Names ")]),_:1}),ot(m,{colspan:"2",class:"bg-base-foreground"})]),_:1}),ot(x,null,{default:dt(()=>[ot(m,null,{default:dt(()=>[pe("Rank")]),_:1}),s.value?(F(),Ot(m,{key:0,title:"OTUs linked to valid protonyms"},{default:dt(()=>[pe("Total")]),_:1})):$t("",!0),ot(m,{title:"Taxon names",class:"border-l border-base-border"},{default:dt(()=>[pe(" Total ")]),_:1}),ot(m,null,{default:dt(()=>[pe(" Valid ")]),_:1}),ot(m,null,{default:dt(()=>[pe(" Invalid ")]),_:1})]),_:1})]),_:1}),ot(j,null,{default:dt(()=>[(F(!0),tt(Yt,null,Se(ee(i).catalog.stats,({rank:_t,taxa:bt,names:H})=>(F(),Ot(T,{key:_t},{default:dt(()=>[ot(k,{class:"capitalize"},{default:dt(()=>[pe(se(_t),1)]),_:2},1024),s.value?(F(),Ot(k,{key:0},{default:dt(()=>[pe(se(bt),1)]),_:2},1024)):$t("",!0),ot(k,{class:"border-l border-base-border"},{default:dt(()=>[pe(se(H.invalid+H.valid),1)]),_:2},1024),ot(k,null,{default:dt(()=>[pe(se(H.valid),1)]),_:2},1024),ot(k,null,{default:dt(()=>[pe(se(H.invalid),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})}}},Ix={id:"panel:statistics",component:Rx},Fx=Q("h2",{class:"text-md"},"Type",-1),Nx=["innerHTML"],jx={__name:"PanelTypeDesignation",props:{taxonId:{type:[String,Number],required:!0}},setup(t){const i=Xr(),s=he(()=>{var p;return((p=i.taxon)==null?void 0:p.type_taxon_name_relationship)||{}}),u=he(()=>[s.value.subject_object_tag||"",s.value.subject_status_tag||"",s.value.object_object_tag||""].join(" "));return(p,l)=>{const h=pt("VCardHeader"),_=pt("VCardContent"),m=pt("VCard");return F(),Ot(m,null,{default:dt(()=>[ot(h,{class:"flex justify-between"},{default:dt(()=>[Fx,ot(qo,{"panel-key":"panel:type"})]),_:1}),ot(_,{class:"text-sm"},{default:dt(()=>[Q("p",{innerHTML:u.value},null,8,Nx)]),_:1})]),_:1})}}},zx={id:"panel:type",component:jx,rankGroup:[$v,Gv]},Vx=Q("h2",{class:"text-md"},"Type specimen",-1),$x={__name:"PanelTypeSpecimen",props:{otuId:{type:[String,Number],required:!0}},setup(t){const i=t,s=Jt([]);return mn(()=>i.otuId,()=>{i.otuId&&xr("panel:typeMaterial",()=>Zn.getOtuTypeMaterial(i.otuId)).then(({data:u})=>{s.value=u.type_materials_catalog_labels.sort((p,l)=>bd.indexOf(p.type_type)-bd.indexOf(l.type_type))})},{immediate:!0}),(u,p)=>{const l=pt("VCardHeader"),h=pt("VCardContent"),_=pt("VCard");return s.value.length?(F(),Ot(_,{key:0},{default:dt(()=>[ot(l,{class:"flex justify-between"},{default:dt(()=>[Vx,ot(qo,{"panel-key":"panel:typeMaterial"})]),_:1}),ot(h,{class:"text-sm"},{default:dt(()=>[Q("p",null,se(s.value[0].label),1)]),_:1})]),_:1})):$t("",!0)}}},Gx={id:"panel:type-specimen",component:$x,rankGroup:[Hv,Uv]},Hx={overview:{panels:[[["panel:gallery","panel:type","panel:type-specimen","panel:nomenclature","panel:nomenclature-references"],["panel:map","panel:descendants","panel:content","panel:statistics"]]]}};var Ux={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',project_name:"My project",project_citation:null,project_url:null,project_authors:null,metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",url:null,project_token:null};const Zx=Object.values(Object.assign({"/src/modules/otus/components/Panel/PanelContent/main.js":h4,"/src/modules/otus/components/Panel/PanelDescendants/main.js":B4,"/src/modules/otus/components/Panel/PanelGallery/main.js":O4,"/src/modules/otus/components/Panel/PanelMap/main.js":_x,"/src/modules/otus/components/Panel/PanelNomenclature/main.js":Mx,"/src/modules/otus/components/Panel/PanelNomenclatureReferences/main.js":Ox,"/src/modules/otus/components/Panel/PanelStats/main.js":Ix,"/src/modules/otus/components/Panel/PanelTypeDesignation/main.js":zx,"/src/modules/otus/components/Panel/PanelTypeSpecimen/main.js":Gx})),{taxa_page:qx}=Ux,Dd=Object.assign({...Hx,...qx});function Kx(t){return t.map(i=>i.map(s=>s.map(u=>{const l=typeof u=="string"?{id:u}:{...u};return{...Zx.find(_=>_.id===l.id),...l}})))}const $s={};for(const t in Dd){const i=Dd[t];$s[t]={panels:Kx((i==null?void 0:i.panels)||{}),rankGroup:i.rank_group||[],label:i.label}}const Wx={class:"grid gap-3"},Jx={__name:"PageLayout",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){var l;const i=t,s=ia(),u=$s[s.currentRoute.value.meta.tab],p={1:["md:grid-cols-1"],2:["md:grid-cols-2"],3:["md:grid-cols-3"]};return(l=u.rankGroup)!=null&&l.length&&!kc(u.rankGroup,i.taxonRank)&&s.replace({name:"otus-id-overview"}),(h,_)=>(F(),tt("div",Wx,[(F(!0),tt(Yt,null,Se(ee(u).panels,m=>(F(),tt("div",{class:kn(["grid","grid-cols-1","gap-3",p[m.length]])},[(F(!0),tt(Yt,null,Se(m,(x,b)=>(F(),tt("div",{class:"grid grid-cols-1 gap-3 auto-rows-min",key:b},[(F(!0),tt(Yt,null,Se(x,({component:k,rankGroup:T,id:j,bind:$})=>(F(),tt(Yt,{key:j},[!T||ee(kc)(T,t.taxonRank)?(F(),Ot(Ho(k),Yp({key:0,"otu-id":t.otuId,otu:t.otu,"taxon-id":t.taxonId,taxon:t.taxon,"panel-key":j,ref_for:!0},$),null,16,["otu-id","otu","taxon-id","taxon","panel-key"])):$t("",!0)],64))),128))]))),128))],2))),256))]))}};function Yx(){return Object.keys($s||{}).map(i=>({path:i,name:`otus-id-${i}`,component:Jx,meta:{tab:i,rankGroup:$s[i].rankGroup,label:$s[i].label}}))}const Xx=[{name:"otus-id",path:"/otus/:id",component:a4,redirect:{name:"otus-id-overview"},children:Yx()}],Qx="modulepreload",tL=function(t){return"/taxonpages/"+t},Rd={},t_=function(i,s,u){let p=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),h=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));p=Promise.all(s.map(_=>{if(_=tL(_),_ in Rd)return;Rd[_]=!0;const m=_.endsWith(".css"),x=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${_}"]${x}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":Qx,m||(b.as="script",b.crossOrigin=""),b.href=_,h&&b.setAttribute("nonce",h),document.head.appendChild(b),m)return new Promise((k,T)=>{b.addEventListener("load",k),b.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${_}`)))})}))}return p.then(()=>i()).catch(l=>{const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=l,window.dispatchEvent(h),!h.defaultPrevented)throw l})},eL=()=>t_(()=>import("./home-C6JAyxbr.js"),[]),nL=()=>t_(()=>import("./about-DLQ26N8d.js"),[]),iL=[{name:"home",path:"/",component:eL,props:!0,alias:"/home"},{name:"about",path:"/about",component:nL,props:!0}];var rL={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',project_name:"My project",project_citation:null,project_url:null,project_authors:null,metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",url:null,project_token:null};const oL=Object.assign({"/src/modules/home/router/index.js":wv,"/src/modules/httpErrorPages/router/index.js":Vv,"/src/modules/otus/router/index.js":Xx}),sL=Object.assign({}),{base_url:Id,hash_mode:aL}=rL,lL=[].concat(...Object.values(oL),...Object.values(sL)),uL=[...iL,...lL];function cL(){return aL?ay(Id):pf(Id)}function hL(){return Oy({history:cL(),routes:uL,scrollBehavior(t,i,s){return t.hash?{el:t.hash}:{top:0}}})}var dL={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',project_name:"My project",project_citation:null,project_url:null,project_authors:null,metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",url:null,project_token:null};function pL({originUrl:t}){const{url:i,project_token:s}=dL,p=e0(i&&s?cv:mv),l=hL(),h=Iy();return p.use(l),p.use(h),{app:p,router:l,store:h}}var fL={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',project_name:"My project",project_citation:null,project_url:null,project_authors:null,metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",url:null,project_token:null};const{map_tile_server:_L,map_tile_attribution:mL,map_tiles:gL}=fL;function yL(t,i){return Object.fromEntries((gL||[{label:"tile",server:_L,attribution:mL}]).map(({server:u,attribution:p,label:l})=>[l,t.tileLayer(u,{...i,attribution:p})]))}var Oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vL(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ec={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,i){(function(s,u){u(i)})(Oo,function(s){var u="1.9.4";function p(e){var o,d,y,C;for(d=1,y=arguments.length;d"u"||!L||!L.Mixin)){e=H(e)?e:[e];for(var o=0;o0?Math.floor(e):Math.ceil(e)};kt.prototype={clone:function(){return new kt(this.x,this.y)},add:function(e){return this.clone()._add(Xt(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(Xt(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 kt(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new kt(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=Ln(this.x),this.y=Ln(this.y),this},distanceTo:function(e){e=Xt(e);var o=e.x-this.x,d=e.y-this.y;return Math.sqrt(o*o+d*d)},equals:function(e){return e=Xt(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=Xt(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+T(this.x)+", "+T(this.y)+")"}};function Xt(e,o,d){return e instanceof kt?e:H(e)?new kt(e[0],e[1]):e==null?e:typeof e=="object"&&"x"in e&&"y"in e?new kt(e.x,e.y):new kt(e,o,d)}function we(e,o){if(e)for(var d=o?[e,o]:e,y=0,C=d.length;y=this.min.x&&d.x<=this.max.x&&o.y>=this.min.y&&d.y<=this.max.y},intersects:function(e){e=Fe(e);var o=this.min,d=this.max,y=e.min,C=e.max,B=C.x>=o.x&&y.x<=d.x,G=C.y>=o.y&&y.y<=d.y;return B&&G},overlaps:function(e){e=Fe(e);var o=this.min,d=this.max,y=e.min,C=e.max,B=C.x>o.x&&y.xo.y&&y.y=o.lat&&C.lat<=d.lat&&y.lng>=o.lng&&C.lng<=d.lng},intersects:function(e){e=ze(e);var o=this._southWest,d=this._northEast,y=e.getSouthWest(),C=e.getNorthEast(),B=C.lat>=o.lat&&y.lat<=d.lat,G=C.lng>=o.lng&&y.lng<=d.lng;return B&&G},overlaps:function(e){e=ze(e);var o=this._southWest,d=this._northEast,y=e.getSouthWest(),C=e.getNorthEast(),B=C.lat>o.lat&&y.lato.lng&&y.lng1,Jl=function(){var e=!1;try{var o=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",k,o),window.removeEventListener("testPassiveEventSupport",k,o)}catch{}return e}(),Yl=function(){return!!document.createElement("canvas").getContext}(),Wo=!!(document.createElementNS&&ct("svg").createSVGRect),ha=!!Wo&&function(){var e=document.createElement("div");return e.innerHTML="",(e.firstChild&&e.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Xl=!Wo&&function(){try{var e=document.createElement("div");e.innerHTML='';var o=e.firstChild;return o.style.behavior="url(#default#VML)",o&&typeof o.adj=="object"}catch{return!1}}(),Ql=navigator.platform.indexOf("Mac")===0,tu=navigator.platform.indexOf("Linux")===0;function Wn(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var te={ie:St,ielt9:Nt,edge:Tt,webkit:Dt,android:Et,android23:Ht,androidStock:Qt,opera:ce,chrome:ye,gecko:Ne,safari:Ee,phantom:Je,opera12:Mn,win:An,ie3d:wr,webkit3d:Qn,gecko3d:di,any3d:yn,mobile:ln,mobileWebkit:Qr,mobileWebkit3d:ql,msPointer:Ko,pointer:aa,touch:Kl,touchNative:la,mobileOpera:Wl,mobileGecko:ua,retina:ca,passiveEvents:Jl,canvas:Yl,svg:Wo,vml:Xl,inlineSvg:ha,mac:Ql,linux:tu},da=te.msPointer?"MSPointerDown":"pointerdown",pa=te.msPointer?"MSPointerMove":"pointermove",Jo=te.msPointer?"MSPointerUp":"pointerup",fa=te.msPointer?"MSPointerCancel":"pointercancel",Yo={touchstart:da,touchmove:pa,touchend:Jo,touchcancel:fa},_a={touchstart:ou,touchmove:eo,touchend:eo,touchcancel:eo},Ji={},ma=!1;function eu(e,o,d){return o==="touchstart"&&Xo(),_a[o]?(d=_a[o].bind(this,d),e.addEventListener(Yo[o],d,!1),d):(console.warn("wrong event specified:",o),k)}function nu(e,o,d){if(!Yo[o]){console.warn("wrong event specified:",o);return}e.removeEventListener(Yo[o],d,!1)}function iu(e){Ji[e.pointerId]=e}function ru(e){Ji[e.pointerId]&&(Ji[e.pointerId]=e)}function to(e){delete Ji[e.pointerId]}function Xo(){ma||(document.addEventListener(da,iu,!0),document.addEventListener(pa,ru,!0),document.addEventListener(Jo,to,!0),document.addEventListener(fa,to,!0),ma=!0)}function eo(e,o){if(o.pointerType!==(o.MSPOINTER_TYPE_MOUSE||"mouse")){o.touches=[];for(var d in Ji)o.touches.push(Ji[d]);o.changedTouches=[o],e(o)}}function ou(e,o){o.MSPOINTER_TYPE_TOUCH&&o.pointerType===o.MSPOINTER_TYPE_TOUCH&&pn(o),eo(e,o)}function su(e){var o={},d,y;for(y in e)d=e[y],o[y]=d&&d.bind?d.bind(e):d;return e=o,o.type="dblclick",o.detail=2,o.isTrusted=!1,o._simulated=!0,o}var au=200;function lu(e,o){e.addEventListener("dblclick",o);var d=0,y;function C(B){if(B.detail!==1){y=B.detail;return}if(!(B.pointerType==="mouse"||B.sourceCapabilities&&!B.sourceCapabilities.firesTouchEvents)){var G=xa(B);if(!(G.some(function(ut){return ut instanceof HTMLLabelElement&&ut.attributes.for})&&!G.some(function(ut){return ut instanceof HTMLInputElement||ut instanceof HTMLSelectElement}))){var rt=Date.now();rt-d<=au?(y++,y===2&&o(su(B))):y=1,d=rt}}}return e.addEventListener("click",C),{dblclick:o,simDblclick:C}}function uu(e,o){e.removeEventListener("dblclick",o.dblclick),e.removeEventListener("click",o.simDblclick)}var Qo=io(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),kr=io(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ga=kr==="webkitTransition"||kr==="OTransition"?kr+"End":"transitionend";function ya(e){return typeof e=="string"?document.getElementById(e):e}function Ci(e,o){var d=e.style[o]||e.currentStyle&&e.currentStyle[o];if((!d||d==="auto")&&document.defaultView){var y=document.defaultView.getComputedStyle(e,null);d=y?y[o]:null}return d==="auto"?null:d}function Te(e,o,d){var y=document.createElement(e);return y.className=o||"",d&&d.appendChild(y),y}function Ze(e){var o=e.parentNode;o&&o.removeChild(e)}function Mr(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function Yi(e){var o=e.parentNode;o&&o.lastChild!==e&&o.appendChild(e)}function Di(e){var o=e.parentNode;o&&o.firstChild!==e&&o.insertBefore(e,o.firstChild)}function ts(e,o){if(e.classList!==void 0)return e.classList.contains(o);var d=no(e);return d.length>0&&new RegExp("(^|\\s)"+o+"(\\s|$)").test(d)}function me(e,o){if(e.classList!==void 0)for(var d=$(o),y=0,C=d.length;y0?2*window.devicePixelRatio:1;function Ca(e){return te.edge?e.wheelDeltaY/2:e.deltaY&&e.deltaMode===0?-e.deltaY/du: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 Xi(e,o){var d=o.relatedTarget;if(!d)return!0;try{for(;d&&d!==e;)d=d.parentNode}catch{return!1}return d!==e}var pu={__proto__:null,on:_e,off:$e,stopPropagation:Ni,disableScrollPropagation:cs,disableClickPropagation:Sr,preventDefault:pn,stop:ji,getPropagationPath:xa,getMousePosition:La,getWheelDelta:Ca,isExternalTarget:Xi,addListener:_e,removeListener:$e},wa=de.extend({run:function(e,o,d,y){this.stop(),this._el=e,this._inProgress=!0,this._duration=d||.25,this._easeOutPower=1/Math.max(y||.5,.2),this._startPos=Ii(e),this._offset=o.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=Vt(this._animate,this),this._step()},_step:function(e){var o=+new Date-this._startTime,d=this._duration*1e3;othis.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,o){this._enforcingBounds=!0;var d=this.getCenter(),y=this._limitCenter(d,this._zoom,ze(e));return d.equals(y)||this.panTo(y,o),this._enforcingBounds=!1,this},panInside:function(e,o){o=o||{};var d=Xt(o.paddingTopLeft||o.padding||[0,0]),y=Xt(o.paddingBottomRight||o.padding||[0,0]),C=this.project(this.getCenter()),B=this.project(e),G=this.getPixelBounds(),rt=Fe([G.min.add(d),G.max.subtract(y)]),ut=rt.getSize();if(!rt.contains(B)){this._enforcingBounds=!0;var wt=B.subtract(rt.getCenter()),Gt=rt.extend(B).getSize().subtract(ut);C.x+=wt.x<0?-Gt.x:Gt.x,C.y+=wt.y<0?-Gt.y:Gt.y,this.panTo(this.unproject(C),o),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=p({animate:!1,pan:!0},e===!0?{animate:!0}:e);var o=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var d=this.getSize(),y=o.divideBy(2).round(),C=d.divideBy(2).round(),B=y.subtract(C);return!B.x&&!B.y?this:(e.animate&&e.pan?this.panBy(B):(e.pan&&this._rawPanBy(B),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(h(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:o,newSize:d}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=p({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var o=h(this._handleGeolocationResponse,this),d=h(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(o,d,e):navigator.geolocation.getCurrentPosition(o,d,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 o=e.code,d=e.message||(o===1?"permission denied":o===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:o,message:"Geolocation error: "+d+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var o=e.coords.latitude,d=e.coords.longitude,y=new Me(o,d),C=y.toBounds(e.coords.accuracy*2),B=this._locateOptions;if(B.setView){var G=this.getBoundsZoom(C);this.setView(y,B.maxZoom?Math.min(G,B.maxZoom):G)}var rt={latlng:y,bounds:C,timestamp:e.timestamp};for(var ut in e.coords)typeof e.coords[ut]=="number"&&(rt[ut]=e.coords[ut]);this.fire("locationfound",rt)}},addHandler:function(e,o){if(!o)return this;var d=this[e]=new o(this);return this._handlers.push(d),this.options[e]&&d.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(),Ze(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Bt(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)Ze(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,o){var d="leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),y=Te("div",d,o||this._mapPane);return e&&(this._panes[e]=y),y},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(),o=this.unproject(e.getBottomLeft()),d=this.unproject(e.getTopRight());return new Xe(o,d)},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,o,d){e=ze(e),d=Xt(d||[0,0]);var y=this.getZoom()||0,C=this.getMinZoom(),B=this.getMaxZoom(),G=e.getNorthWest(),rt=e.getSouthEast(),ut=this.getSize().subtract(d),wt=Fe(this.project(rt,y),this.project(G,y)).getSize(),Gt=te.any3d?this.options.zoomSnap:1,le=ut.x/wt.x,xe=ut.y/wt.y,wn=o?Math.max(le,xe):Math.min(le,xe);return y=this.getScaleZoom(wn,y),Gt&&(y=Math.round(y/(Gt/100))*(Gt/100),y=o?Math.ceil(y/Gt)*Gt:Math.floor(y/Gt)*Gt),Math.max(C,Math.min(B,y))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new kt(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,o){var d=this._getTopLeftPoint(e,o);return new we(d,d.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,o){var d=this.options.crs;return o=o===void 0?this._zoom:o,d.scale(e)/d.scale(o)},getScaleZoom:function(e,o){var d=this.options.crs;o=o===void 0?this._zoom:o;var y=d.zoom(e*d.scale(o));return isNaN(y)?1/0:y},project:function(e,o){return o=o===void 0?this._zoom:o,this.options.crs.latLngToPoint(oe(e),o)},unproject:function(e,o){return o=o===void 0?this._zoom:o,this.options.crs.pointToLatLng(Xt(e),o)},layerPointToLatLng:function(e){var o=Xt(e).add(this.getPixelOrigin());return this.unproject(o)},latLngToLayerPoint:function(e){var o=this.project(oe(e))._round();return o._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(oe(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(ze(e))},distance:function(e,o){return this.options.crs.distance(oe(e),oe(o))},containerPointToLayerPoint:function(e){return Xt(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return Xt(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var o=this.containerPointToLayerPoint(Xt(e));return this.layerPointToLatLng(o)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(oe(e)))},mouseEventToContainerPoint:function(e){return La(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 o=this._container=ya(e);if(o){if(o._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");_e(o,"scroll",this._onScroll,this),this._containerId=m(o)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&te.any3d,me(e,"leaflet-container"+(te.touch?" leaflet-touch":"")+(te.retina?" leaflet-retina":"")+(te.ielt9?" leaflet-oldie":"")+(te.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var o=Ci(e,"position");o!=="absolute"&&o!=="relative"&&o!=="fixed"&&o!=="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),en(this._mapPane,new kt(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(me(e.markerPane,"leaflet-zoom-hide"),me(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,o,d){en(this._mapPane,new kt(0,0));var y=!this._loaded;this._loaded=!0,o=this._limitZoom(o),this.fire("viewprereset");var C=this._zoom!==o;this._moveStart(C,d)._move(e,o)._moveEnd(C),this.fire("viewreset"),y&&this.fire("load")},_moveStart:function(e,o){return e&&this.fire("zoomstart"),o||this.fire("movestart"),this},_move:function(e,o,d,y){o===void 0&&(o=this._zoom);var C=this._zoom!==o;return this._zoom=o,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),y?d&&d.pinch&&this.fire("zoom",d):((C||d&&d.pinch)&&this.fire("zoom",d),this.fire("move",d)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Bt(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){en(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 o=e?$e:_e;o(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&o(window,"resize",this._onResize,this),te.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Bt(this._resizeRequest),this._resizeRequest=Vt(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,o){for(var d=[],y,C=o==="mouseout"||o==="mouseover",B=e.target||e.srcElement,G=!1;B;){if(y=this._targets[m(B)],y&&(o==="click"||o==="preclick")&&this._draggableMoved(y)){G=!0;break}if(y&&y.listens(o,!0)&&(C&&!Xi(B,e)||(d.push(y),C))||B===this._container)break;B=B.parentNode}return!d.length&&!G&&!C&&this.listens(o,!0)&&(d=[this]),d},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var o=e.target||e.srcElement;if(!(!this._loaded||o._leaflet_disable_events||e.type==="click"&&this._isClickDisabled(o))){var d=e.type;d==="mousedown"&&ss(o),this._fireDOMEvent(e,d)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,o,d){if(e.type==="click"){var y=p({},e);y.type="preclick",this._fireDOMEvent(y,y.type,d)}var C=this._findEventTargets(e,o);if(d){for(var B=[],G=0;G0?Math.round(e-o)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(o))},_limitZoom:function(e){var o=this.getMinZoom(),d=this.getMaxZoom(),y=te.any3d?this.options.zoomSnap:1;return y&&(e=Math.round(e/y)*y),Math.max(o,Math.min(d,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Qe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,o){var d=this._getCenterOffset(e)._trunc();return(o&&o.animate)!==!0&&!this.getSize().contains(d)?!1:(this.panBy(d,o),!0)},_createAnimProxy:function(){var e=this._proxy=Te("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",function(o){var d=Qo,y=this._proxy.style[d];Ri(this._proxy,this.project(o.center,o.zoom),this.getZoomScale(o.zoom,1)),y===this._proxy.style[d]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ze(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),o=this.getZoom();Ri(this._proxy,this.project(e,o),this.getZoomScale(o,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,o,d){if(this._animatingZoom)return!0;if(d=d||{},!this._zoomAnimated||d.animate===!1||this._nothingToAnimate()||Math.abs(o-this._zoom)>this.options.zoomAnimationThreshold)return!1;var y=this.getZoomScale(o),C=this._getCenterOffset(e)._divideBy(1-1/y);return d.animate!==!0&&!this.getSize().contains(C)?!1:(Vt(function(){this._moveStart(!0,d.noMoveStart||!1)._animateZoom(e,o,!0)},this),!0)},_animateZoom:function(e,o,d,y){this._mapPane&&(d&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=o,me(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:o,noUpdate:y}),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&&Qe(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 Pe(e,o){return new Ce(e,o)}var On=Le.extend({options:{position:"topright"},initialize:function(e){Y(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var o=this._map;return o&&o.removeControl(this),this.options.position=e,o&&o.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var o=this._container=this.onAdd(e),d=this.getPosition(),y=e._controlCorners[d];return me(o,"leaflet-control"),d.indexOf("bottom")!==-1?y.insertBefore(o,y.firstChild):y.appendChild(o),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ze(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()}}),wi=function(e){return new On(e)};Ce.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},o="leaflet-",d=this._controlContainer=Te("div",o+"control-container",this._container);function y(C,B){var G=o+C+" "+o+B;e[C+B]=Te("div",G,d)}y("top","left"),y("top","right"),y("bottom","left"),y("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)Ze(this._controlCorners[e]);Ze(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ka=On.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,o,d,y){return d1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=o&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var o=this._getLayer(m(e.target)),d=o.overlay?e.type==="add"?"overlayadd":"overlayremove":e.type==="add"?"baselayerchange":null;d&&this._map.fire(d,o)},_createRadioElement:function(e,o){var d='",y=document.createElement("div");return y.innerHTML=d,y.firstChild},_addItem:function(e){var o=document.createElement("label"),d=this._map.hasLayer(e.layer),y;e.overlay?(y=document.createElement("input"),y.type="checkbox",y.className="leaflet-control-layers-selector",y.defaultChecked=d):y=this._createRadioElement("leaflet-base-layers_"+m(this),d),this._layerControlInputs.push(y),y.layerId=m(e.layer),_e(y,"click",this._onInputClick,this);var C=document.createElement("span");C.innerHTML=" "+e.name;var B=document.createElement("span");o.appendChild(B),B.appendChild(y),B.appendChild(C);var G=e.overlay?this._overlaysList:this._baseLayersList;return G.appendChild(o),this._checkDisabledLayers(),o},_onInputClick:function(){if(!this._preventClick){var e=this._layerControlInputs,o,d,y=[],C=[];this._handlingClick=!0;for(var B=e.length-1;B>=0;B--)o=e[B],d=this._getLayer(o.layerId).layer,o.checked?y.push(d):o.checked||C.push(d);for(B=0;B=0;C--)o=e[C],d=this._getLayer(o.layerId).layer,o.disabled=d.options.minZoom!==void 0&&yd.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,_e(e,"click",pn),this.expand();var o=this;setTimeout(function(){$e(e,"click",pn),o._preventClick=!1})}}),Ma=function(e,o,d){return new ka(e,o,d)},hs=On.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(e){var o="leaflet-control-zoom",d=Te("div",o+" leaflet-bar"),y=this.options;return this._zoomInButton=this._createButton(y.zoomInText,y.zoomInTitle,o+"-in",d,this._zoomIn),this._zoomOutButton=this._createButton(y.zoomOutText,y.zoomOutTitle,o+"-out",d,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),d},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,o,d,y,C){var B=Te("a",d,y);return B.innerHTML=e,B.href="#",B.title=o,B.setAttribute("role","button"),B.setAttribute("aria-label",o),Sr(B),_e(B,"click",ji),_e(B,"click",C,this),_e(B,"click",this._refocusOnMap,this),B},_updateDisabled:function(){var e=this._map,o="leaflet-disabled";Qe(this._zoomInButton,o),Qe(this._zoomOutButton,o),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(me(this._zoomOutButton,o),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(me(this._zoomInButton,o),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ce.mergeOptions({zoomControl:!0}),Ce.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new hs,this.addControl(this.zoomControl))});var ds=function(e){return new hs(e)},Tr=On.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var o="leaflet-control-scale",d=Te("div",o),y=this.options;return this._addScales(y,o+"-line",d),e.on(y.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),d},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,o,d){e.metric&&(this._mScale=Te("div",o,d)),e.imperial&&(this._iScale=Te("div",o,d))},_update:function(){var e=this._map,o=e.getSize().y/2,d=e.distance(e.containerPointToLatLng([0,o]),e.containerPointToLatLng([this.options.maxWidth,o]));this._updateScales(d)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var o=this._getRoundNum(e),d=o<1e3?o+" m":o/1e3+" km";this._updateScale(this._mScale,d,o/e)},_updateImperial:function(e){var o=e*3.2808399,d,y,C;o>5280?(d=o/5280,y=this._getRoundNum(d),this._updateScale(this._iScale,y+" mi",y/d)):(C=this._getRoundNum(o),this._updateScale(this._iScale,C+" ft",C/o))},_updateScale:function(e,o,d){e.style.width=Math.round(this.options.maxWidth*d)+"px",e.innerHTML=o},_getRoundNum:function(e){var o=Math.pow(10,(Math.floor(e)+"").length-1),d=e/o;return d=d>=10?10:d>=5?5:d>=3?3:d>=2?2:1,o*d}}),fu=function(e){return new Tr(e)},ki='',so=On.extend({options:{position:"bottomright",prefix:''+(te.inlineSvg?ki+" ":"")+"Leaflet"},initialize:function(e){Y(this,e),this._attributions={}},onAdd:function(e){e.attributionControl=this,this._container=Te("div","leaflet-control-attribution"),Sr(this._container);for(var o in e._layers)e._layers[o].getAttribution&&this.addAttribution(e._layers[o].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 o in this._attributions)this._attributions[o]&&e.push(o);var d=[];this.options.prefix&&d.push(this.options.prefix),e.length&&d.push(e.join(", ")),this._container.innerHTML=d.join(' ')}}});Ce.mergeOptions({attributionControl:!0}),Ce.addInitHook(function(){this.options.attributionControl&&new so().addTo(this)});var Qi=function(e){return new so(e)};On.Layers=ka,On.Zoom=hs,On.Scale=Tr,On.Attribution=so,wi.layers=Ma,wi.zoom=ds,wi.scale=fu,wi.attribution=Qi;var ei=Le.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}});ei.addTo=function(e,o){return e.addHandler(o,this),this};var _u={Events:Rt},Ea=te.touch?"touchstart mousedown":"mousedown",Mi=de.extend({options:{clickTolerance:3},initialize:function(e,o,d,y){Y(this,y),this._element=e,this._dragStartTarget=o||e,this._preventOutline=d},enable:function(){this._enabled||(_e(this._dragStartTarget,Ea,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Mi._dragging===this&&this.finishDrag(!0),$e(this._dragStartTarget,Ea,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!ts(this._element,"leaflet-zoom-anim"))){if(e.touches&&e.touches.length!==1){Mi._dragging===this&&this.finishDrag();return}if(!(Mi._dragging||e.shiftKey||e.which!==1&&e.button!==1&&!e.touches)&&(Mi._dragging=this,this._preventOutline&&ss(this._element),is(),Er(),!this._moving)){this.fire("down");var o=e.touches?e.touches[0]:e,d=va(this._element);this._startPoint=new kt(o.clientX,o.clientY),this._startPos=Ii(this._element),this._parentScale=as(d);var y=e.type==="mousedown";_e(document,y?"mousemove":"touchmove",this._onMove,this),_e(document,y?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1){this._moved=!0;return}var o=e.touches&&e.touches.length===1?e.touches[0]:e,d=new kt(o.clientX,o.clientY)._subtract(this._startPoint);!d.x&&!d.y||Math.abs(d.x)+Math.abs(d.y)B&&(G=rt,B=ut);B>d&&(o[G]=1,ao(e,o,d,y,G),ao(e,o,d,G,C))}function tr(e,o){for(var d=[e[0]],y=1,C=0,B=e.length;yo&&(d.push(e[y]),C=y);return Co.max.x&&(d|=2),e.yo.max.y&&(d|=8),d}function gu(e,o){var d=o.x-e.x,y=o.y-e.y;return d*d+y*y}function $i(e,o,d,y){var C=o.x,B=o.y,G=d.x-C,rt=d.y-B,ut=G*G+rt*rt,wt;return ut>0&&(wt=((e.x-C)*G+(e.y-B)*rt)/ut,wt>1?(C=d.x,B=d.y):wt>0&&(C+=G*wt,B+=rt*wt)),G=e.x-C,rt=e.y-B,y?G*G+rt*rt:new kt(C,B)}function Ye(e){return!H(e[0])||typeof e[0][0]!="object"&&typeof e[0][0]<"u"}function _s(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ye(e)}function Ar(e,o){var d,y,C,B,G,rt,ut,wt;if(!e||e.length===0)throw new Error("latlngs not passed");Ye(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var Gt=oe([0,0]),le=ze(e),xe=le.getNorthWest().distanceTo(le.getSouthWest())*le.getNorthEast().distanceTo(le.getNorthWest());xe<1700&&(Gt=ps(e));var wn=e.length,nn=[];for(d=0;dy){ut=(B-y)/C,wt=[rt.x-ut*(rt.x-G.x),rt.y-ut*(rt.y-G.y)];break}var cn=o.unproject(Xt(wt));return oe([cn.lat+Gt.lat,cn.lng+Gt.lng])}var yu={__proto__:null,simplify:fs,pointToSegmentDistance:Sa,closestPointOnSegment:fn,clipSegment:er,_getEdgeIntersection:Jn,_getBitCode:Vi,_sqClosestPointOnSegment:$i,isFlat:Ye,_flat:_s,polylineCenter:Ar},zn={project:function(e){return new kt(e.lng,e.lat)},unproject:function(e){return new Me(e.y,e.x)},bounds:new we([-180,-90],[180,90])},Vn={R:6378137,R_MINOR:6356752314245179e-9,bounds:new we([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(e){var o=Math.PI/180,d=this.R,y=e.lat*o,C=this.R_MINOR/d,B=Math.sqrt(1-C*C),G=B*Math.sin(y),rt=Math.tan(Math.PI/4-y/2)/Math.pow((1-G)/(1+G),B/2);return y=-d*Math.log(Math.max(rt,1e-10)),new kt(e.lng*o*d,y)},unproject:function(e){for(var o=180/Math.PI,d=this.R,y=this.R_MINOR/d,C=Math.sqrt(1-y*y),B=Math.exp(-e.y/d),G=Math.PI/2-2*Math.atan(B),rt=0,ut=.1,wt;rt<15&&Math.abs(ut)>1e-7;rt++)wt=C*Math.sin(G),wt=Math.pow((1-wt)/(1+wt),C/2),ut=Math.PI/2-2*Math.atan(B*wt)-G,G+=ut;return new Me(G*o,e.x*o/d)}},lo={__proto__:null,LonLat:zn,Mercator:Vn,SphericalMercator:Kt},Ta=p({},jt,{code:"EPSG:3395",projection:Vn,transformation:function(){var e=.5/(Math.PI*Vn.R);return Ie(e,.5,-e,.5)}()}),uo=p({},jt,{code:"EPSG:4326",projection:zn,transformation:Ie(1/180,1,-1/180,.5)}),Or=p({},mt,{projection:zn,transformation:Ie(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,o){var d=o.lng-e.lng,y=o.lat-e.lat;return Math.sqrt(d*d+y*y)},infinite:!0});mt.Earth=jt,mt.EPSG3395=Ta,mt.EPSG3857=N,mt.EPSG900913=U,mt.EPSG4326=uo,mt.Simple=Or;var Yn=de.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 o=e.target;if(o.hasLayer(this)){if(this._map=o,this._zoomAnimated=o._zoomAnimated,this.getEvents){var d=this.getEvents();o.on(d,this),this.once("remove",function(){o.off(d,this)},this)}this.onAdd(o),this.fire("add"),o.fire("layeradd",{layer:this})}}});Ce.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var o=m(e);return this._layers[o]?this:(this._layers[o]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e),this)},removeLayer:function(e){var o=m(e);return this._layers[o]?(this._loaded&&e.onRemove(this),delete this._layers[o],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,o){for(var d in this._layers)e.call(o,this._layers[d]);return this},_addLayers:function(e){e=e?H(e)?e:[e]:[];for(var o=0,d=e.length;othis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&o[0]instanceof Me&&o[0].equals(o[d-1])&&o.pop(),o},_setLatLngs:function(e){_i.prototype._setLatLngs.call(this,e),Ye(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ye(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,o=this.options.weight,d=new kt(o,o);if(e=new we(e.min.subtract(d),e.max.add(d)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(e))){if(this.options.noClip){this._parts=this._rings;return}for(var y=0,C=this._rings.length,B;ye.y!=C.y>e.y&&e.x<(C.x-y.x)*(e.y-y.y)/(C.y-y.y)+y.x&&(o=!o);return o||_i.prototype._containsPoint.call(this,e,!0)}});function Cu(e,o){return new ni(e,o)}var mi=pi.extend({initialize:function(e,o){Y(this,o),this._layers={},e&&this.addData(e)},addData:function(e){var o=H(e)?e:e.features,d,y,C;if(o){for(d=0,y=o.length;d0&&C.push(C[0].slice()),C}function rr(e,o){return e.feature?p({},e.feature,{geometry:o}):Ir(o)}function Ir(e){return e.type==="Feature"||e.type==="FeatureCollection"?e:{type:"Feature",properties:{},geometry:e}}var Fr={toGeoJSON:function(e){return rr(this,{type:"Point",coordinates:bs(this.getLatLng(),e)})}};co.include(Fr),fi.include(Fr),Dr.include(Fr),_i.include({toGeoJSON:function(e){var o=!Ye(this._latlngs),d=po(this._latlngs,o?1:0,!1,e);return rr(this,{type:(o?"Multi":"")+"LineString",coordinates:d})}}),ni.include({toGeoJSON:function(e){var o=!Ye(this._latlngs),d=o&&!Ye(this._latlngs[0]),y=po(this._latlngs,d?2:o?1:0,!0,e);return o||(y=[y]),rr(this,{type:(d?"Multi":"")+"Polygon",coordinates:y})}}),nr.include({toMultiPoint:function(e){var o=[];return this.eachLayer(function(d){o.push(d.toGeoJSON(e).geometry.coordinates)}),rr(this,{type:"MultiPoint",coordinates:o})},toGeoJSON:function(e){var o=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(o==="MultiPoint")return this.toMultiPoint(e);var d=o==="GeometryCollection",y=[];return this.eachLayer(function(C){if(C.toGeoJSON){var B=C.toGeoJSON(e);if(d)y.push(B.geometry);else{var G=Ir(B);G.type==="FeatureCollection"?y.push.apply(y,G.features):y.push(G)}}}),d?rr(this,{geometries:y,type:"GeometryCollection"}):{type:"FeatureCollection",features:y}}});function xs(e,o){return new mi(e,o)}var Ls=xs,fo=Yn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,o,d){this._url=e,this._bounds=ze(o),Y(this,d)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(me(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ze(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&&Yi(this._image),this},bringToBack:function(){return this._map&&Di(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=ze(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",o=this._image=e?this._url:Te("img");if(me(o,"leaflet-image-layer"),this._zoomAnimated&&me(o,"leaflet-zoom-animated"),this.options.className&&me(o,this.options.className),o.onselectstart=k,o.onmousemove=k,o.onload=h(this.fire,this,"load"),o.onerror=h(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e){this._url=o.src;return}o.src=this._url,o.alt=this.options.alt},_animateZoom:function(e){var o=this._map.getZoomScale(e.zoom),d=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;Ri(this._image,d,o)},_reset:function(){var e=this._image,o=new we(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),d=o.getSize();en(e,o.min),e.style.width=d.x+"px",e.style.height=d.y+"px"},_updateOpacity:function(){jn(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()}}),_o=function(e,o,d){return new fo(e,o,d)},Cs=fo.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e=this._url.tagName==="VIDEO",o=this._image=e?this._url:Te("video");if(me(o,"leaflet-image-layer"),this._zoomAnimated&&me(o,"leaflet-zoom-animated"),this.options.className&&me(o,this.options.className),o.onselectstart=k,o.onmousemove=k,o.onloadeddata=h(this.fire,this,"load"),e){for(var d=o.getElementsByTagName("source"),y=[],C=0;C0?y:[o.src];return}H(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(o.style,"objectFit")&&(o.style.objectFit="fill"),o.autoplay=!!this.options.autoplay,o.loop=!!this.options.loop,o.muted=!!this.options.muted,o.playsInline=!!this.options.playsInline;for(var B=0;BC?(o.height=C+"px",me(e,B)):Qe(e,B),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var o=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),d=this._getAnchor();en(this._container,o.add(d))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var e=this._map,o=parseInt(Ci(this._container,"marginBottom"),10)||0,d=this._container.offsetHeight+o,y=this._containerWidth,C=new kt(this._containerLeft,-d-this._containerBottom);C._add(Ii(this._container));var B=e.layerPointToContainerPoint(C),G=Xt(this.options.autoPanPadding),rt=Xt(this.options.autoPanPaddingTopLeft||G),ut=Xt(this.options.autoPanPaddingBottomRight||G),wt=e.getSize(),Gt=0,le=0;B.x+y+ut.x>wt.x&&(Gt=B.x+y-wt.x+ut.x),B.x-Gt-rt.x<0&&(Gt=B.x-rt.x),B.y+d+ut.y>wt.y&&(le=B.y+d-wt.y+ut.y),B.y-le-rt.y<0&&(le=B.y-rt.y),(Gt||le)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([Gt,le]))}},_getAnchor:function(){return Xt(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Mu=function(e,o){return new mo(e,o)};Ce.mergeOptions({closePopupOnClick:!0}),Ce.include({openPopup:function(e,o,d){return this._initOverlay(mo,e,o,d).openOn(this),this},closePopup:function(e){return e=arguments.length?e:this._popup,e&&e.close(),this}}),Yn.include({bindPopup:function(e,o){return this._popup=this._initOverlay(mo,this._popup,e,o),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 pi||(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)){ji(e);var o=e.layer||e.target;if(this._popup._source===o&&!(o instanceof Pn)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng);return}this._popup._source=o,this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){e.originalEvent.keyCode===13&&this._openPopup(e)}});var go=Bn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Bn.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){Bn.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=Bn.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip",o=e+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Te("div",o),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+m(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var o,d,y=this._map,C=this._container,B=y.latLngToContainerPoint(y.getCenter()),G=y.layerPointToContainerPoint(e),rt=this.options.direction,ut=C.offsetWidth,wt=C.offsetHeight,Gt=Xt(this.options.offset),le=this._getAnchor();rt==="top"?(o=ut/2,d=wt):rt==="bottom"?(o=ut/2,d=0):rt==="center"?(o=ut/2,d=wt/2):rt==="right"?(o=0,d=wt/2):rt==="left"?(o=ut,d=wt/2):G.xthis.options.maxZoom||dy?this._retainParent(C,B,G,y):!1)},_retainChildren:function(e,o,d,y){for(var C=2*e;C<2*e+2;C++)for(var B=2*o;B<2*o+2;B++){var G=new kt(C,B);G.z=d+1;var rt=this._tileCoordsToKey(G),ut=this._tiles[rt];if(ut&&ut.active){ut.retain=!0;continue}else ut&&ut.loaded&&(ut.retain=!0);d+1this.options.maxZoom||this.options.minZoom!==void 0&&C1){this._setView(e,d);return}for(var le=C.min.y;le<=C.max.y;le++)for(var xe=C.min.x;xe<=C.max.x;xe++){var wn=new kt(xe,le);if(wn.z=this._tileZoom,!!this._isValidTile(wn)){var nn=this._tiles[this._tileCoordsToKey(wn)];nn?nn.current=!0:G.push(wn)}}if(G.sort(function(cn,Pi){return cn.distanceTo(B)-Pi.distanceTo(B)}),G.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var rn=document.createDocumentFragment();for(xe=0;xed.max.x)||!o.wrapLat&&(e.yd.max.y))return!1}if(!this.options.bounds)return!0;var y=this._tileCoordsToBounds(e);return ze(this.options.bounds).overlaps(y)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var o=this._map,d=this.getTileSize(),y=e.scaleBy(d),C=y.add(d),B=o.unproject(y,e.z),G=o.unproject(C,e.z);return[B,G]},_tileCoordsToBounds:function(e){var o=this._tileCoordsToNwSe(e),d=new Xe(o[0],o[1]);return this.options.noWrap||(d=this._map.wrapLatLngBounds(d)),d},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var o=e.split(":"),d=new kt(+o[0],+o[1]);return d.z=+o[2],d},_removeTile:function(e){var o=this._tiles[e];o&&(Ze(o.el),delete this._tiles[e],this.fire("tileunload",{tile:o.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){me(e,"leaflet-tile");var o=this.getTileSize();e.style.width=o.x+"px",e.style.height=o.y+"px",e.onselectstart=k,e.onmousemove=k,te.ielt9&&this.options.opacity<1&&jn(e,this.options.opacity)},_addTile:function(e,o){var d=this._getTilePos(e),y=this._tileCoordsToKey(e),C=this.createTile(this._wrapCoords(e),h(this._tileReady,this,e));this._initTile(C),this.createTile.length<2&&Vt(h(this._tileReady,this,e,null,C)),en(C,d),this._tiles[y]={el:C,coords:e,current:!0},o.appendChild(C),this.fire("tileloadstart",{tile:C,coords:e})},_tileReady:function(e,o,d){o&&this.fire("tileerror",{error:o,tile:d,coords:e});var y=this._tileCoordsToKey(e);d=this._tiles[y],d&&(d.loaded=+new Date,this._map._fadeAnimated?(jn(d.el,0),Bt(this._fadeFrame),this._fadeFrame=Vt(this._updateOpacity,this)):(d.active=!0,this._pruneTiles()),o||(me(d.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:d.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),te.ielt9||!this._map._fadeAnimated?Vt(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 o=new kt(this._wrapX?b(e.x,this._wrapX):e.x,this._wrapY?b(e.y,this._wrapY):e.y);return o.z=e.z,o},_pxBoundsToTileRange:function(e){var o=this.getTileSize();return new we(e.min.unscaleBy(o).floor(),e.max.unscaleBy(o).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Bu(e){return new Nr(e)}var Hi=Nr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,o){this._url=e,o=Y(this,o),o.detectRetina&&te.retina&&o.maxZoom>0?(o.tileSize=Math.floor(o.tileSize/2),o.zoomReverse?(o.zoomOffset--,o.minZoom=Math.min(o.maxZoom,o.minZoom+1)):(o.zoomOffset++,o.maxZoom=Math.max(o.minZoom,o.maxZoom-1)),o.minZoom=Math.max(0,o.minZoom)):o.zoomReverse?o.minZoom=Math.min(o.maxZoom,o.minZoom):o.maxZoom=Math.max(o.minZoom,o.maxZoom),typeof o.subdomains=="string"&&(o.subdomains=o.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,o){return this._url===e&&o===void 0&&(o=!0),this._url=e,o||this.redraw(),this},createTile:function(e,o){var d=document.createElement("img");return _e(d,"load",h(this._tileOnLoad,this,o,d)),_e(d,"error",h(this._tileOnError,this,o,d)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(d.referrerPolicy=this.options.referrerPolicy),d.alt="",d.src=this.getTileUrl(e),d},getTileUrl:function(e){var o={r:te.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var d=this._globalTileRange.max.y-e.y;this.options.tms&&(o.y=d),o["-y"]=d}return bt(this._url,p(o,this.options))},_tileOnLoad:function(e,o){te.ielt9?setTimeout(h(e,this,null,o),0):e(null,o)},_tileOnError:function(e,o,d){var y=this.options.errorTileUrl;y&&o.getAttribute("src")!==y&&(o.src=y),e(d,o)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,o=this.options.maxZoom,d=this.options.zoomReverse,y=this.options.zoomOffset;return d&&(e=o-e),e+y},_getSubdomain:function(e){var o=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[o]},_abortLoading:function(){var e,o;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&(o=this._tiles[e].el,o.onload=k,o.onerror=k,!o.complete)){o.src=xt;var d=this._tiles[e].coords;Ze(o),delete this._tiles[e],this.fire("tileabort",{tile:o,coords:d})}},_removeTile:function(e){var o=this._tiles[e];if(o)return o.el.setAttribute("src",xt),Nr.prototype._removeTile.call(this,e)},_tileReady:function(e,o,d){if(!(!this._map||d&&d.getAttribute("src")===xt))return Nr.prototype._tileReady.call(this,e,o,d)}});function yo(e,o){return new Hi(e,o)}var Ia=Hi.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,o){this._url=e;var d=p({},this.defaultWmsParams);for(var y in o)y in this.options||(d[y]=o[y]);o=Y(this,o);var C=o.detectRetina&&te.retina?2:1,B=this.getTileSize();d.width=B.x*C,d.height=B.y*C,this.wmsParams=d},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var o=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[o]=this._crs.code,Hi.prototype.onAdd.call(this,e)},getTileUrl:function(e){var o=this._tileCoordsToNwSe(e),d=this._crs,y=Fe(d.project(o[0]),d.project(o[1])),C=y.min,B=y.max,G=(this._wmsVersion>=1.3&&this._crs===uo?[C.y,C.x,B.y,B.x]:[C.x,C.y,B.x,B.y]).join(","),rt=Hi.prototype.getTileUrl.call(this,e);return rt+vt(this.wmsParams,rt,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+G},setParams:function(e,o){return p(this.wmsParams,e),o||this.redraw(),this}});function Su(e,o){return new Ia(e,o)}Hi.WMS=Ia,yo.wms=Su;var ii=Yn.extend({options:{padding:.1},initialize:function(e){Y(this,e),m(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),me(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,o){var d=this._map.getZoomScale(o,this._zoom),y=this._map.getSize().multiplyBy(.5+this.options.padding),C=this._map.project(this._center,o),B=y.multiplyBy(-d).add(C).subtract(this._map._getNewPixelOrigin(e,o));te.any3d?Ri(this._container,B,d):en(this._container,B)},_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,o=this._map.getSize(),d=this._map.containerPointToLayerPoint(o.multiplyBy(-e)).round();this._bounds=new we(d,d.add(o.multiplyBy(1+e*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),vo=ii.extend({options:{tolerance:0},getEvents:function(){var e=ii.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ii.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");_e(e,"mousemove",this._onMouseMove,this),_e(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),_e(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){Bt(this._redrawRequest),delete this._ctx,Ze(this._container),$e(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var e;this._redrawBounds=null;for(var o in this._layers)e=this._layers[o],e._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ii.prototype._update.call(this);var e=this._bounds,o=this._container,d=e.getSize(),y=te.retina?2:1;en(o,e.min),o.width=y*d.x,o.height=y*d.y,o.style.width=d.x+"px",o.style.height=d.y+"px",te.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){ii.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[m(e)]=e;var o=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=o),this._drawLast=o,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var o=e._order,d=o.next,y=o.prev;d?d.prev=y:this._drawLast=y,y?y.next=d:this._drawFirst=d,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 o=e.options.dashArray.split(/[, ]+/),d=[],y,C;for(C=0;C')}}catch{}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),ws={_initContainer:function(){this._container=Te("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ii.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var o=e._container=jr("shape");me(o,"leaflet-vml-shape "+(this.options.className||"")),o.coordsize="1 1",e._path=jr("path"),o.appendChild(e._path),this._updateStyle(e),this._layers[m(e)]=e},_addPath:function(e){var o=e._container;this._container.appendChild(o),e.options.interactive&&e.addInteractiveTarget(o)},_removePath:function(e){var o=e._container;Ze(o),e.removeInteractiveTarget(o),delete this._layers[m(e)]},_updateStyle:function(e){var o=e._stroke,d=e._fill,y=e.options,C=e._container;C.stroked=!!y.stroke,C.filled=!!y.fill,y.stroke?(o||(o=e._stroke=jr("stroke")),C.appendChild(o),o.weight=y.weight+"px",o.color=y.color,o.opacity=y.opacity,y.dashArray?o.dashStyle=H(y.dashArray)?y.dashArray.join(" "):y.dashArray.replace(/( *, *)/g," "):o.dashStyle="",o.endcap=y.lineCap.replace("butt","flat"),o.joinstyle=y.lineJoin):o&&(C.removeChild(o),e._stroke=null),y.fill?(d||(d=e._fill=jr("fill")),C.appendChild(d),d.color=y.fillColor||y.color,d.opacity=y.fillOpacity):d&&(C.removeChild(d),e._fill=null)},_updateCircle:function(e){var o=e._point.round(),d=Math.round(e._radius),y=Math.round(e._radiusY||d);this._setPath(e,e._empty()?"M0 0":"AL "+o.x+","+o.y+" "+d+","+y+" 0,"+65535*360)},_setPath:function(e,o){e._path.v=o},_bringToFront:function(e){Yi(e._container)},_bringToBack:function(e){Di(e._container)}},Cn=te.vml?jr:ct,un=ii.extend({_initContainer:function(){this._container=Cn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Cn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ze(this._container),$e(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ii.prototype._update.call(this);var e=this._bounds,o=e.getSize(),d=this._container;(!this._svgSize||!this._svgSize.equals(o))&&(this._svgSize=o,d.setAttribute("width",o.x),d.setAttribute("height",o.y)),en(d,e.min),d.setAttribute("viewBox",[e.min.x,e.min.y,o.x,o.y].join(" ")),this.fire("update")}},_initPath:function(e){var o=e._path=Cn("path");e.options.className&&me(o,e.options.className),e.options.interactive&&me(o,"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){Ze(e._path),e.removeInteractiveTarget(e._path),delete this._layers[m(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var o=e._path,d=e.options;o&&(d.stroke?(o.setAttribute("stroke",d.color),o.setAttribute("stroke-opacity",d.opacity),o.setAttribute("stroke-width",d.weight),o.setAttribute("stroke-linecap",d.lineCap),o.setAttribute("stroke-linejoin",d.lineJoin),d.dashArray?o.setAttribute("stroke-dasharray",d.dashArray):o.removeAttribute("stroke-dasharray"),d.dashOffset?o.setAttribute("stroke-dashoffset",d.dashOffset):o.removeAttribute("stroke-dashoffset")):o.setAttribute("stroke","none"),d.fill?(o.setAttribute("fill",d.fillColor||d.color),o.setAttribute("fill-opacity",d.fillOpacity),o.setAttribute("fill-rule",d.fillRule||"evenodd")):o.setAttribute("fill","none"))},_updatePoly:function(e,o){this._setPath(e,Lt(e._parts,o))},_updateCircle:function(e){var o=e._point,d=Math.max(Math.round(e._radius),1),y=Math.max(Math.round(e._radiusY),1)||d,C="a"+d+","+y+" 0 1,0 ",B=e._empty()?"M0 0":"M"+(o.x-d)+","+o.y+C+d*2+",0 "+C+-d*2+",0 ";this._setPath(e,B)},_setPath:function(e,o){e._path.setAttribute("d",o)},_bringToFront:function(e){Yi(e._path)},_bringToBack:function(e){Di(e._path)}});te.vml&&un.include(ws);function ks(e){return te.svg||te.vml?new un(e):null}Ce.include({getRenderer:function(e){var o=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return o||(o=this._renderer=this._createRenderer()),this.hasLayer(o)||this.addLayer(o),o},_getPaneRenderer:function(e){if(e==="overlayPane"||e===void 0)return!1;var o=this._paneRenderers[e];return o===void 0&&(o=this._createRenderer({pane:e}),this._paneRenderers[e]=o),o},_createRenderer:function(e){return this.options.preferCanvas&&Fa(e)||ks(e)}});var $n=ni.extend({initialize:function(e,o){ni.prototype.initialize.call(this,this._boundsToLatLngs(e),o)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return e=ze(e),[e.getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function fe(e,o){return new $n(e,o)}un.create=Cn,un.pointsToPath=Lt,mi.geometryToLayer=ho,mi.coordsToLatLng=vs,mi.coordsToLatLngs=Rr,mi.latLngToCoords=bs,mi.latLngsToCoords=po,mi.getFeature=rr,mi.asFeature=Ir,Ce.mergeOptions({boxZoom:!0});var bo=ei.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(){_e(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){$e(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ze(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(),Er(),is(),this._startPoint=this._map.mouseEventToContainerPoint(e),_e(document,{contextmenu:ji,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=Te("div","leaflet-zoom-box",this._container),me(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var o=new we(this._point,this._startPoint),d=o.getSize();en(this._box,o.min),this._box.style.width=d.x+"px",this._box.style.height=d.y+"px"},_finish:function(){this._moved&&(Ze(this._box),Qe(this._container,"leaflet-crosshair")),Pr(),rs(),$e(document,{contextmenu:ji,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 o=new Xe(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(o).fire("boxzoomend",{boxZoomBounds:o})}},_onKeyDown:function(e){e.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ce.addInitHook("addHandler","boxZoom",bo),Ce.mergeOptions({doubleClickZoom:!0});var xo=ei.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var o=this._map,d=o.getZoom(),y=o.options.zoomDelta,C=e.originalEvent.shiftKey?d-y:d+y;o.options.doubleClickZoom==="center"?o.setZoom(C):o.setZoomAround(e.containerPoint,C)}});Ce.addInitHook("addHandler","doubleClickZoom",xo),Ce.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var gi=ei.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new Mi(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))}me(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Qe(this._map._container,"leaflet-grab"),Qe(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 o=ze(this._map.options.maxBounds);this._offsetLimit=Fe(this._map.latLngToContainerPoint(o.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(o.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 o=this._lastTime=+new Date,d=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(d),this._times.push(o),this._prunePositions(o)}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),o=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=o.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,o){return e-(e-o)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var e=this._draggable._newPos.subtract(this._draggable._startPos),o=this._offsetLimit;e.xo.max.x&&(e.x=this._viscousLimit(e.x,o.max.x)),e.y>o.max.y&&(e.y=this._viscousLimit(e.y,o.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,o=Math.round(e/2),d=this._initialWorldOffset,y=this._draggable._newPos.x,C=(y-o+d)%e+o-d,B=(y+o+d)%e-o-d,G=Math.abs(C+d)0?B:-B))-o;this._delta=0,this._startTime=null,G&&(e.options.scrollWheelZoom==="center"?e.setZoom(o+G):e.setZoomAround(this._lastMousePos,o+G))}});Ce.addInitHook("addHandler","scrollWheelZoom",Ms);var Gn=600;Ce.mergeOptions({tapHold:te.touchNative&&te.safari&&te.mobile,tapTolerance:15});var Dn=ei.extend({addHooks:function(){_e(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){$e(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),e.touches.length===1){var o=e.touches[0];this._startPos=this._newPos=new kt(o.clientX,o.clientY),this._holdTimeout=setTimeout(h(function(){this._cancel(),this._isTapValid()&&(_e(document,"touchend",pn),_e(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",o))},this),Gn),_e(document,"touchend touchcancel contextmenu",this._cancel,this),_e(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){$e(document,"touchend",pn),$e(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),$e(document,"touchend touchcancel contextmenu",this._cancel,this),$e(document,"touchmove",this._onMove,this)},_onMove:function(e){var o=e.touches[0];this._newPos=new kt(o.clientX,o.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,o){var d=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:o.screenX,screenY:o.screenY,clientX:o.clientX,clientY:o.clientY});d._simulated=!0,o.target.dispatchEvent(d)}});Ce.addInitHook("addHandler","tapHold",Dn),Ce.mergeOptions({touchZoom:te.touch,bounceAtZoomLimits:!0});var Ei=ei.extend({addHooks:function(){me(this._map._container,"leaflet-touch-zoom"),_e(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Qe(this._map._container,"leaflet-touch-zoom"),$e(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var o=this._map;if(!(!e.touches||e.touches.length!==2||o._animatingZoom||this._zooming)){var d=o.mouseEventToContainerPoint(e.touches[0]),y=o.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=o.getSize()._divideBy(2),this._startLatLng=o.containerPointToLatLng(this._centerPoint),o.options.touchZoom!=="center"&&(this._pinchStartLatLng=o.containerPointToLatLng(d.add(y)._divideBy(2))),this._startDist=d.distanceTo(y),this._startZoom=o.getZoom(),this._moved=!1,this._zooming=!0,o._stop(),_e(document,"touchmove",this._onTouchMove,this),_e(document,"touchend touchcancel",this._onTouchEnd,this),pn(e)}},_onTouchMove:function(e){if(!(!e.touches||e.touches.length!==2||!this._zooming)){var o=this._map,d=o.mouseEventToContainerPoint(e.touches[0]),y=o.mouseEventToContainerPoint(e.touches[1]),C=d.distanceTo(y)/this._startDist;if(this._zoom=o.getScaleZoom(C,this._startZoom),!o.options.bounceAtZoomLimits&&(this._zoomo.getMaxZoom()&&C>1)&&(this._zoom=o._limitZoom(this._zoom)),o.options.touchZoom==="center"){if(this._center=this._startLatLng,C===1)return}else{var B=d._add(y)._divideBy(2)._subtract(this._centerPoint);if(C===1&&B.x===0&&B.y===0)return;this._center=o.unproject(o.project(this._pinchStartLatLng,this._zoom).subtract(B),this._zoom)}this._moved||(o._moveStart(!0,!1),this._moved=!0),Bt(this._animRequest);var G=h(o._move,o,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Vt(G,this,!0),pn(e)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Bt(this._animRequest),$e(document,"touchmove",this._onTouchMove,this),$e(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Ce.addInitHook("addHandler","touchZoom",Ei),Ce.BoxZoom=bo,Ce.DoubleClickZoom=xo,Ce.Drag=gi,Ce.Keyboard=sn,Ce.ScrollWheelZoom=Ms,Ce.TapHold=Dn,Ce.TouchZoom=Ei,s.Bounds=we,s.Browser=te,s.CRS=mt,s.Canvas=vo,s.Circle=fi,s.CircleMarker=Dr,s.Class=Le,s.Control=On,s.DivIcon=Ra,s.DivOverlay=Bn,s.DomEvent=pu,s.DomUtil=hu,s.Draggable=Mi,s.Evented=de,s.FeatureGroup=pi,s.GeoJSON=mi,s.GridLayer=Nr,s.Handler=ei,s.Icon=ir,s.ImageOverlay=fo,s.LatLng=Me,s.LatLngBounds=Xe,s.Layer=Yn,s.LayerGroup=nr,s.LineUtil=yu,s.Map=Ce,s.Marker=co,s.Mixin=_u,s.Path=Pn,s.Point=kt,s.PolyUtil=mu,s.Polygon=ni,s.Polyline=_i,s.Popup=mo,s.PosAnimation=wa,s.Projection=lo,s.Rectangle=$n,s.Renderer=ii,s.SVG=un,s.SVGOverlay=Da,s.TileLayer=Hi,s.Tooltip=go,s.Transformation=ke,s.Util=ae,s.VideoOverlay=Cs,s.bind=h,s.bounds=Fe,s.canvas=Fa,s.circle=Lu,s.circleMarker=xu,s.control=wi,s.divIcon=Pu,s.extend=p,s.featureGroup=vu,s.geoJSON=xs,s.geoJson=Ls,s.gridLayer=Bu,s.icon=bu,s.imageOverlay=_o,s.latLng=oe,s.latLngBounds=ze,s.layerGroup=ms,s.map=Pe,s.marker=Oa,s.point=Xt,s.polygon=Cu,s.polyline=gs,s.popup=Mu,s.rectangle=fe,s.setOptions=Y,s.stamp=m,s.svg=ks,s.svgOverlay=ku,s.tileLayer=yo,s.tooltip=Eu,s.transformation=Ie,s.version=u,s.videoOverlay=wu;var qe=window.L;s.noConflict=function(){return window.L=qe,this},window.L=s})})(Ec,Ec.exports);var bL=Ec.exports;const Hn=vL(bL),xL="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==",LL="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=",CL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",wL={className:"bg-map-asserted rounded-full map-point-marker",iconSize:[8,8],iconAnchor:[4,4]},kL={className:"bg-map-collection-object rounded-full map-point-marker",iconSize:[8,8],iconAnchor:[4,4]},e_={className:"bg-map-georeference rounded-full map-point-marker",iconSize:[8,8],iconAnchor:[4,4]},ML={className:"bg-map-type-material map-point-marker rounded-full",iconSize:[8,8],iconAnchor:[4,4]},EL=Object.freeze(Object.defineProperty({__proto__:null,AssertedDistribution:wL,CollectionObject:kL,Georeference:e_,TypeMaterial:ML},Symbol.toStringTag,{value:"Module"})),PL={color:"rgb(var(--color-map-aggregate))",weight:1,dashArray:"3",dashOffset:"3",fillOpacity:"var(--color-map-shape-opacity)"},BL={color:"rgb(var(--color-map-asserted))",weight:1,dashArray:"3",dashOffset:"3",fillOpacity:"var(--color-map-shape-opacity)"},SL={color:"rgb(var(--color-map-collection-object))",weight:1,fillOpacity:"var(--color-map-shape-opacity)"},TL={color:"rgb(var(--color-map-type-material))",weight:1,fillOpacity:"var(--color-map-shape-opacity)"},Fd=Object.freeze(Object.defineProperty({__proto__:null,Aggregate:PL,AssertedDistribution:BL,CollectionObject:SL,TypeMaterial:TL},Symbol.toStringTag,{value:"Module"})),Nd=[j4,Wf,z4,V4,$4];function jd(t){const i=t.map(s=>s.type);return i.sort((s,u)=>Nd.indexOf(s)-Nd.indexOf(u)),i[0]}const AL=({L:t})=>({onEachFeature:(i,s)=>{s.pm.setOptions(Mc),s.pm.disable()},pointToLayer:(i,s)=>{const u=jd(i.properties.base),p=EL[u]||e_,l=t.marker(s,{icon:t.divIcon(p)});return l.pm.setOptions(Mc),l},style:i=>{var u;const s=jd((u=i.properties)==null?void 0:u.base);if(Fd[s])return Fd[s]}});(()=>{var dh,ph;var t=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,p=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,h=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports),_=(n,r,a,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let f of u(r))!l.call(n,f)&&f!==a&&i(n,f,{get:()=>r[f],enumerable:!(c=s(r,f))||c.enumerable});return n},m=(n,r,a)=>(a=n!=null?t(p(n)):{},_(r||!n||!n.__esModule?i(a,"default",{value:n,enumerable:!0}):a,n)),x=h((n,r)=>{function a(){this.__data__=[],this.size=0}r.exports=a}),b=h((n,r)=>{function a(c,f){return c===f||c!==c&&f!==f}r.exports=a}),k=h((n,r)=>{var a=b();function c(f,g){for(var v=f.length;v--;)if(a(f[v][0],g))return v;return-1}r.exports=c}),T=h((n,r)=>{var a=k(),c=Array.prototype,f=c.splice;function g(v){var w=this.__data__,M=a(w,v);if(M<0)return!1;var P=w.length-1;return M==P?w.pop():f.call(w,M,1),--this.size,!0}r.exports=g}),j=h((n,r)=>{var a=k();function c(f){var g=this.__data__,v=a(g,f);return v<0?void 0:g[v][1]}r.exports=c}),$=h((n,r)=>{var a=k();function c(f){return a(this.__data__,f)>-1}r.exports=c}),Y=h((n,r)=>{var a=k();function c(f,g){var v=this.__data__,w=a(v,f);return w<0?(++this.size,v.push([f,g])):v[w][1]=g,this}r.exports=c}),vt=h((n,r)=>{var a=x(),c=T(),f=j(),g=$(),v=Y();function w(M){var P=-1,V=M==null?0:M.length;for(this.clear();++P{var a=vt();function c(){this.__data__=new a,this.size=0}r.exports=c}),bt=h((n,r)=>{function a(c){var f=this.__data__,g=f.delete(c);return this.size=f.size,g}r.exports=a}),H=h((n,r)=>{function a(c){return this.__data__.get(c)}r.exports=a}),ht=h((n,r)=>{function a(c){return this.__data__.has(c)}r.exports=a}),xt=h((n,r)=>{var a=typeof Oo=="object"&&Oo&&Oo.Object===Object&&Oo;r.exports=a}),yt=h((n,r)=>{var a=xt(),c=typeof self=="object"&&self&&self.Object===Object&&self,f=a||c||Function("return this")();r.exports=f}),Ut=h((n,r)=>{var a=yt(),c=a.Symbol;r.exports=c}),Ft=h((n,r)=>{var a=Ut(),c=Object.prototype,f=c.hasOwnProperty,g=c.toString,v=a?a.toStringTag:void 0;function w(M){var P=f.call(M,v),V=M[v];try{M[v]=void 0;var I=!0}catch{}var it=g.call(M);return I&&(P?M[v]=V:delete M[v]),it}r.exports=w}),Pt=h((n,r)=>{var a=Object.prototype,c=a.toString;function f(g){return c.call(g)}r.exports=f}),At=h((n,r)=>{var a=Ut(),c=Ft(),f=Pt(),g="[object Null]",v="[object Undefined]",w=a?a.toStringTag:void 0;function M(P){return P==null?P===void 0?v:g:w&&w in Object(P)?c(P):f(P)}r.exports=M}),Vt=h((n,r)=>{function a(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}r.exports=a}),Bt=h((n,r)=>{var a=At(),c=Vt(),f="[object AsyncFunction]",g="[object Function]",v="[object GeneratorFunction]",w="[object Proxy]";function M(P){if(!c(P))return!1;var V=a(P);return V==g||V==v||V==f||V==w}r.exports=M}),ae=h((n,r)=>{var a=yt(),c=a["__core-js_shared__"];r.exports=c}),Le=h((n,r)=>{var a=ae(),c=function(){var g=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""}();function f(g){return!!c&&c in g}r.exports=f}),Ae=h((n,r)=>{var a=Function.prototype,c=a.toString;function f(g){if(g!=null){try{return c.call(g)}catch{}try{return g+""}catch{}}return""}r.exports=f}),Rt=h((n,r)=>{var a=Bt(),c=Le(),f=Vt(),g=Ae(),v=/[\\^$.*+?()[\]{}|]/g,w=/^\[object .+?Constructor\]$/,M=Function.prototype,P=Object.prototype,V=M.toString,I=P.hasOwnProperty,it=RegExp("^"+V.call(I).replace(v,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function lt(Mt){if(!f(Mt)||c(Mt))return!1;var zt=a(Mt)?it:w;return zt.test(g(Mt))}r.exports=lt}),de=h((n,r)=>{function a(c,f){return c==null?void 0:c[f]}r.exports=a}),kt=h((n,r)=>{var a=Rt(),c=de();function f(g,v){var w=c(g,v);return a(w)?w:void 0}r.exports=f}),Ln=h((n,r)=>{var a=kt(),c=yt(),f=a(c,"Map");r.exports=f}),Xt=h((n,r)=>{var a=kt(),c=a(Object,"create");r.exports=c}),we=h((n,r)=>{var a=Xt();function c(){this.__data__=a?a(null):{},this.size=0}r.exports=c}),Fe=h((n,r)=>{function a(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}r.exports=a}),Xe=h((n,r)=>{var a=Xt(),c="__lodash_hash_undefined__",f=Object.prototype,g=f.hasOwnProperty;function v(w){var M=this.__data__;if(a){var P=M[w];return P===c?void 0:P}return g.call(M,w)?M[w]:void 0}r.exports=v}),ze=h((n,r)=>{var a=Xt(),c=Object.prototype,f=c.hasOwnProperty;function g(v){var w=this.__data__;return a?w[v]!==void 0:f.call(w,v)}r.exports=g}),Me=h((n,r)=>{var a=Xt(),c="__lodash_hash_undefined__";function f(g,v){var w=this.__data__;return this.size+=this.has(g)?0:1,w[g]=a&&v===void 0?c:v,this}r.exports=f}),oe=h((n,r)=>{var a=we(),c=Fe(),f=Xe(),g=ze(),v=Me();function w(M){var P=-1,V=M==null?0:M.length;for(this.clear();++P{var a=oe(),c=vt(),f=Ln();function g(){this.size=0,this.__data__={hash:new a,map:new(f||c),string:new a}}r.exports=g}),jt=h((n,r)=>{function a(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}r.exports=a}),It=h((n,r)=>{var a=jt();function c(f,g){var v=f.__data__;return a(g)?v[typeof g=="string"?"string":"hash"]:v.map}r.exports=c}),Kt=h((n,r)=>{var a=It();function c(f){var g=a(this,f).delete(f);return this.size-=g?1:0,g}r.exports=c}),ke=h((n,r)=>{var a=It();function c(f){return a(this,f).get(f)}r.exports=c}),Ie=h((n,r)=>{var a=It();function c(f){return a(this,f).has(f)}r.exports=c}),N=h((n,r)=>{var a=It();function c(f,g){var v=a(this,f),w=v.size;return v.set(f,g),this.size+=v.size==w?0:1,this}r.exports=c}),U=h((n,r)=>{var a=mt(),c=Kt(),f=ke(),g=Ie(),v=N();function w(M){var P=-1,V=M==null?0:M.length;for(this.clear();++P{var a=vt(),c=Ln(),f=U(),g=200;function v(w,M){var P=this.__data__;if(P instanceof a){var V=P.__data__;if(!c||V.length{var a=vt(),c=_t(),f=bt(),g=H(),v=ht(),w=ct();function M(P){var V=this.__data__=new a(P);this.size=V.size}M.prototype.clear=c,M.prototype.delete=f,M.prototype.get=g,M.prototype.has=v,M.prototype.set=w,r.exports=M}),gt=h((n,r)=>{var a=kt(),c=function(){try{var f=a(Object,"defineProperty");return f({},"",{}),f}catch{}}();r.exports=c}),St=h((n,r)=>{var a=gt();function c(f,g,v){g=="__proto__"&&a?a(f,g,{configurable:!0,enumerable:!0,value:v,writable:!0}):f[g]=v}r.exports=c}),Nt=h((n,r)=>{var a=St(),c=b();function f(g,v,w){(w!==void 0&&!c(g[v],w)||w===void 0&&!(v in g))&&a(g,v,w)}r.exports=f}),Tt=h((n,r)=>{function a(c){return function(f,g,v){for(var w=-1,M=Object(f),P=v(f),V=P.length;V--;){var I=P[c?V:++w];if(g(M[I],I,M)===!1)break}return f}}r.exports=a}),Dt=h((n,r)=>{var a=Tt(),c=a();r.exports=c}),Et=h((n,r)=>{var a=yt(),c=typeof n=="object"&&n&&!n.nodeType&&n,f=c&&typeof r=="object"&&r&&!r.nodeType&&r,g=f&&f.exports===c,v=g?a.Buffer:void 0,w=v?v.allocUnsafe:void 0;function M(P,V){if(V)return P.slice();var I=P.length,it=w?w(I):new P.constructor(I);return P.copy(it),it}r.exports=M}),Ht=h((n,r)=>{var a=yt(),c=a.Uint8Array;r.exports=c}),ie=h((n,r)=>{var a=Ht();function c(f){var g=new f.constructor(f.byteLength);return new a(g).set(new a(f)),g}r.exports=c}),Qt=h((n,r)=>{var a=ie();function c(f,g){var v=g?a(f.buffer):f.buffer;return new f.constructor(v,f.byteOffset,f.length)}r.exports=c}),ce=h((n,r)=>{function a(c,f){var g=-1,v=c.length;for(f||(f=Array(v));++g{var a=Vt(),c=Object.create,f=function(){function g(){}return function(v){if(!a(v))return{};if(c)return c(v);g.prototype=v;var w=new g;return g.prototype=void 0,w}}();r.exports=f}),Ne=h((n,r)=>{function a(c,f){return function(g){return c(f(g))}}r.exports=a}),Ee=h((n,r)=>{var a=Ne(),c=a(Object.getPrototypeOf,Object);r.exports=c}),Je=h((n,r)=>{var a=Object.prototype;function c(f){var g=f&&f.constructor,v=typeof g=="function"&&g.prototype||a;return f===v}r.exports=c}),Mn=h((n,r)=>{var a=ye(),c=Ee(),f=Je();function g(v){return typeof v.constructor=="function"&&!f(v)?a(c(v)):{}}r.exports=g}),An=h((n,r)=>{function a(c){return c!=null&&typeof c=="object"}r.exports=a}),wr=h((n,r)=>{var a=At(),c=An(),f="[object Arguments]";function g(v){return c(v)&&a(v)==f}r.exports=g}),Qn=h((n,r)=>{var a=wr(),c=An(),f=Object.prototype,g=f.hasOwnProperty,v=f.propertyIsEnumerable,w=a(function(){return arguments}())?a:function(M){return c(M)&&g.call(M,"callee")&&!v.call(M,"callee")};r.exports=w}),di=h((n,r)=>{var a=Array.isArray;r.exports=a}),yn=h((n,r)=>{var a=9007199254740991;function c(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=a}r.exports=c}),ln=h((n,r)=>{var a=Bt(),c=yn();function f(g){return g!=null&&c(g.length)&&!a(g)}r.exports=f}),Qr=h((n,r)=>{var a=ln(),c=An();function f(g){return c(g)&&a(g)}r.exports=f}),ql=h((n,r)=>{function a(){return!1}r.exports=a}),Ko=h((n,r)=>{var a=yt(),c=ql(),f=typeof n=="object"&&n&&!n.nodeType&&n,g=f&&typeof r=="object"&&r&&!r.nodeType&&r,v=g&&g.exports===f,w=v?a.Buffer:void 0,M=w?w.isBuffer:void 0,P=M||c;r.exports=P}),aa=h((n,r)=>{var a=At(),c=Ee(),f=An(),g="[object Object]",v=Function.prototype,w=Object.prototype,M=v.toString,P=w.hasOwnProperty,V=M.call(Object);function I(it){if(!f(it)||a(it)!=g)return!1;var lt=c(it);if(lt===null)return!0;var Mt=P.call(lt,"constructor")&<.constructor;return typeof Mt=="function"&&Mt instanceof Mt&&M.call(Mt)==V}r.exports=I}),la=h((n,r)=>{var a=At(),c=yn(),f=An(),g="[object Arguments]",v="[object Array]",w="[object Boolean]",M="[object Date]",P="[object Error]",V="[object Function]",I="[object Map]",it="[object Number]",lt="[object Object]",Mt="[object RegExp]",zt="[object Set]",qt="[object String]",Be="[object WeakMap]",z="[object ArrayBuffer]",Z="[object DataView]",J="[object Float32Array]",at="[object Float64Array]",X="[object Int8Array]",st="[object Int16Array]",E="[object Int32Array]",S="[object Uint8Array]",O="[object Uint8ClampedArray]",A="[object Uint16Array]",D="[object Uint32Array]",R={};R[J]=R[at]=R[X]=R[st]=R[E]=R[S]=R[O]=R[A]=R[D]=!0,R[g]=R[v]=R[z]=R[w]=R[Z]=R[M]=R[P]=R[V]=R[I]=R[it]=R[lt]=R[Mt]=R[zt]=R[qt]=R[Be]=!1;function K(q){return f(q)&&c(q.length)&&!!R[a(q)]}r.exports=K}),Kl=h((n,r)=>{function a(c){return function(f){return c(f)}}r.exports=a}),Wl=h((n,r)=>{var a=xt(),c=typeof n=="object"&&n&&!n.nodeType&&n,f=c&&typeof r=="object"&&r&&!r.nodeType&&r,g=f&&f.exports===c,v=g&&a.process,w=function(){try{var M=f&&f.require&&f.require("util").types;return M||v&&v.binding&&v.binding("util")}catch{}}();r.exports=w}),ua=h((n,r)=>{var a=la(),c=Kl(),f=Wl(),g=f&&f.isTypedArray,v=g?c(g):a;r.exports=v}),ca=h((n,r)=>{function a(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}r.exports=a}),Jl=h((n,r)=>{var a=St(),c=b(),f=Object.prototype,g=f.hasOwnProperty;function v(w,M,P){var V=w[M];(!(g.call(w,M)&&c(V,P))||P===void 0&&!(M in w))&&a(w,M,P)}r.exports=v}),Yl=h((n,r)=>{var a=Jl(),c=St();function f(g,v,w,M){var P=!w;w||(w={});for(var V=-1,I=v.length;++V{function a(c,f){for(var g=-1,v=Array(c);++g{var a=9007199254740991,c=/^(?:0|[1-9]\d*)$/;function f(g,v){var w=typeof g;return v=v??a,!!v&&(w=="number"||w!="symbol"&&c.test(g))&&g>-1&&g%1==0&&g{var a=Wo(),c=Qn(),f=di(),g=Ko(),v=ha(),w=ua(),M=Object.prototype,P=M.hasOwnProperty;function V(I,it){var lt=f(I),Mt=!lt&&c(I),zt=!lt&&!Mt&&g(I),qt=!lt&&!Mt&&!zt&&w(I),Be=lt||Mt||zt||qt,z=Be?a(I.length,String):[],Z=z.length;for(var J in I)(it||P.call(I,J))&&!(Be&&(J=="length"||zt&&(J=="offset"||J=="parent")||qt&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||v(J,Z)))&&z.push(J);return z}r.exports=V}),Ql=h((n,r)=>{function a(c){var f=[];if(c!=null)for(var g in Object(c))f.push(g);return f}r.exports=a}),tu=h((n,r)=>{var a=Vt(),c=Je(),f=Ql(),g=Object.prototype,v=g.hasOwnProperty;function w(M){if(!a(M))return f(M);var P=c(M),V=[];for(var I in M)I=="constructor"&&(P||!v.call(M,I))||V.push(I);return V}r.exports=w}),Wn=h((n,r)=>{var a=Xl(),c=tu(),f=ln();function g(v){return f(v)?a(v,!0):c(v)}r.exports=g}),te=h((n,r)=>{var a=Yl(),c=Wn();function f(g){return a(g,c(g))}r.exports=f}),da=h((n,r)=>{var a=Nt(),c=Et(),f=Qt(),g=ce(),v=Mn(),w=Qn(),M=di(),P=Qr(),V=Ko(),I=Bt(),it=Vt(),lt=aa(),Mt=ua(),zt=ca(),qt=te();function Be(z,Z,J,at,X,st,E){var S=zt(z,J),O=zt(Z,J),A=E.get(O);if(A){a(z,J,A);return}var D=st?st(S,O,J+"",z,Z,E):void 0,R=D===void 0;if(R){var K=M(O),q=!K&&V(O),W=!K&&!q&&Mt(O);D=O,K||q||W?M(S)?D=S:P(S)?D=g(S):q?(R=!1,D=c(O,!0)):W?(R=!1,D=f(O,!0)):D=[]:lt(O)||w(O)?(D=S,w(S)?D=qt(S):(!it(S)||I(S))&&(D=v(O))):R=!1}R&&(E.set(O,D),X(D,O,at,st,E),E.delete(O)),a(z,J,D)}r.exports=Be}),pa=h((n,r)=>{var a=Lt(),c=Nt(),f=Dt(),g=da(),v=Vt(),w=Wn(),M=ca();function P(V,I,it,lt,Mt){V!==I&&f(I,function(zt,qt){if(Mt||(Mt=new a),v(zt))g(V,I,qt,it,P,lt,Mt);else{var Be=lt?lt(M(V,qt),zt,qt+"",V,I,Mt):void 0;Be===void 0&&(Be=zt),c(V,qt,Be)}},w)}r.exports=P}),Jo=h((n,r)=>{function a(c){return c}r.exports=a}),fa=h((n,r)=>{function a(c,f,g){switch(g.length){case 0:return c.call(f);case 1:return c.call(f,g[0]);case 2:return c.call(f,g[0],g[1]);case 3:return c.call(f,g[0],g[1],g[2])}return c.apply(f,g)}r.exports=a}),Yo=h((n,r)=>{var a=fa(),c=Math.max;function f(g,v,w){return v=c(v===void 0?g.length-1:v,0),function(){for(var M=arguments,P=-1,V=c(M.length-v,0),I=Array(V);++P{function a(c){return function(){return c}}r.exports=a}),Ji=h((n,r)=>{var a=_a(),c=gt(),f=Jo(),g=c?function(v,w){return c(v,"toString",{configurable:!0,enumerable:!1,value:a(w),writable:!0})}:f;r.exports=g}),ma=h((n,r)=>{var a=800,c=16,f=Date.now;function g(v){var w=0,M=0;return function(){var P=f(),V=c-(P-M);if(M=P,V>0){if(++w>=a)return arguments[0]}else w=0;return v.apply(void 0,arguments)}}r.exports=g}),eu=h((n,r)=>{var a=Ji(),c=ma(),f=c(a);r.exports=f}),nu=h((n,r)=>{var a=Jo(),c=Yo(),f=eu();function g(v,w){return f(c(v,w,a),v+"")}r.exports=g}),iu=h((n,r)=>{var a=b(),c=ln(),f=ha(),g=Vt();function v(w,M,P){if(!g(P))return!1;var V=typeof M;return(V=="number"?c(P)&&f(M,P.length):V=="string"&&M in P)?a(P[M],w):!1}r.exports=v}),ru=h((n,r)=>{var a=nu(),c=iu();function f(g){return a(function(v,w){var M=-1,P=w.length,V=P>1?w[P-1]:void 0,I=P>2?w[2]:void 0;for(V=g.length>3&&typeof V=="function"?(P--,V):void 0,I&&c(w[0],w[1],I)&&(V=P<3?void 0:V,P=1),v=Object(v);++M{var a=pa(),c=ru(),f=c(function(g,v,w){a(g,v,w)});r.exports=f}),Xo=h((n,r)=>{var a=At(),c=An(),f="[object Symbol]";function g(v){return typeof v=="symbol"||c(v)&&a(v)==f}r.exports=g}),eo=h((n,r)=>{var a=di(),c=Xo(),f=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/;function v(w,M){if(a(w))return!1;var P=typeof w;return P=="number"||P=="symbol"||P=="boolean"||w==null||c(w)?!0:g.test(w)||!f.test(w)||M!=null&&w in Object(M)}r.exports=v}),ou=h((n,r)=>{var a=U(),c="Expected a function";function f(g,v){if(typeof g!="function"||v!=null&&typeof v!="function")throw new TypeError(c);var w=function(){var M=arguments,P=v?v.apply(this,M):M[0],V=w.cache;if(V.has(P))return V.get(P);var I=g.apply(this,M);return w.cache=V.set(P,I)||V,I};return w.cache=new(f.Cache||a),w}f.Cache=a,r.exports=f}),su=h((n,r)=>{var a=ou(),c=500;function f(g){var v=a(g,function(M){return w.size===c&&w.clear(),M}),w=v.cache;return v}r.exports=f}),au=h((n,r)=>{var a=su(),c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,g=a(function(v){var w=[];return v.charCodeAt(0)===46&&w.push(""),v.replace(c,function(M,P,V,I){w.push(V?I.replace(f,"$1"):P||M)}),w});r.exports=g}),lu=h((n,r)=>{function a(c,f){for(var g=-1,v=c==null?0:c.length,w=Array(v);++g{var a=Ut(),c=lu(),f=di(),g=Xo(),v=1/0,w=a?a.prototype:void 0,M=w?w.toString:void 0;function P(V){if(typeof V=="string")return V;if(f(V))return c(V,P)+"";if(g(V))return M?M.call(V):"";var I=V+"";return I=="0"&&1/V==-v?"-0":I}r.exports=P}),Qo=h((n,r)=>{var a=uu();function c(f){return f==null?"":a(f)}r.exports=c}),kr=h((n,r)=>{var a=di(),c=eo(),f=au(),g=Qo();function v(w,M){return a(w)?w:c(w,M)?[w]:f(g(w))}r.exports=v}),ga=h((n,r)=>{var a=Xo(),c=1/0;function f(g){if(typeof g=="string"||a(g))return g;var v=g+"";return v=="0"&&1/g==-c?"-0":v}r.exports=f}),ya=h((n,r)=>{var a=kr(),c=ga();function f(g,v){v=a(v,g);for(var w=0,M=v.length;g!=null&&w{var a=ya();function c(f,g,v){var w=f==null?void 0:a(f,g);return w===void 0?v:w}r.exports=c}),Te=h((n,r)=>{(function(a,c){typeof n=="object"&&typeof r<"u"?r.exports=c():(a=a||self).RBush=c()})(n,function(){function a(z,Z,J,at,X){(function st(E,S,O,A,D){for(;A>O;){if(A-O>600){var R=A-O+1,K=S-O+1,q=Math.log(R),W=.5*Math.exp(2*q/3),nt=.5*Math.sqrt(q*W*(R-W)/R)*(K-R/2<0?-1:1),et=Math.max(O,Math.floor(S-K*W/R+nt)),Ct=Math.min(A,Math.floor(S+(R-K)*W/R+nt));st(E,S,et,Ct,D)}var Zt=E[S],Wt=O,re=A;for(c(E,O,S),D(E[A],Zt)>0&&c(E,O,A);Wt0;)re--}D(E[O],Zt)===0?c(E,O,re):c(E,++re,A),re<=S&&(O=re+1),S<=re&&(A=re-1)}})(z,Z,J||0,at||z.length-1,X||f)}function c(z,Z,J){var at=z[Z];z[Z]=z[J],z[J]=at}function f(z,Z){return zZ?1:0}var g=function(z){z===void 0&&(z=9),this._maxEntries=Math.max(4,z),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function v(z,Z,J){if(!J)return Z.indexOf(z);for(var at=0;at=z.minX&&Z.maxY>=z.minY}function qt(z){return{children:z,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Be(z,Z,J,at,X){for(var st=[Z,J];st.length;)if(!((J=st.pop())-(Z=st.pop())<=at)){var E=Z+Math.ceil((J-Z)/at/2)*at;a(z,E,Z,J,X),st.push(Z,E,E,J)}}return g.prototype.all=function(){return this._all(this.data,[])},g.prototype.search=function(z){var Z=this.data,J=[];if(!zt(z,Z))return J;for(var at=this.toBBox,X=[];Z;){for(var st=0;st=0&&X[Z].children.length>this._maxEntries;)this._split(X,Z),Z--;this._adjustParentBBoxes(at,X,Z)},g.prototype._split=function(z,Z){var J=z[Z],at=J.children.length,X=this._minEntries;this._chooseSplitAxis(J,X,at);var st=this._chooseSplitIndex(J,X,at),E=qt(J.children.splice(st,J.children.length-st));E.height=J.height,E.leaf=J.leaf,w(J,this.toBBox),w(E,this.toBBox),Z?z[Z-1].children.push(E):this._splitRoot(J,E)},g.prototype._splitRoot=function(z,Z){this.data=qt([z,Z]),this.data.height=z.height+1,this.data.leaf=!1,w(this.data,this.toBBox)},g.prototype._chooseSplitIndex=function(z,Z,J){for(var at,X,st,E,S,O,A,D=1/0,R=1/0,K=Z;K<=J-Z;K++){var q=M(z,0,K,this.toBBox),W=M(z,K,J,this.toBBox),nt=(X=q,st=W,E=void 0,S=void 0,O=void 0,A=void 0,E=Math.max(X.minX,st.minX),S=Math.max(X.minY,st.minY),O=Math.min(X.maxX,st.maxX),A=Math.min(X.maxY,st.maxY),Math.max(0,O-E)*Math.max(0,A-S)),et=it(q)+it(W);nt=Z;D--){var R=z.children[D];P(E,z.leaf?X(R):R),S+=lt(E)}return S},g.prototype._adjustParentBBoxes=function(z,Z,J){for(var at=J;at>=0;at--)P(Z[at],z)},g.prototype._condense=function(z){for(var Z=z.length-1,J=void 0;Z>=0;Z--)z[Z].children.length===0?Z>0?(J=z[Z-1].children).splice(J.indexOf(z[Z]),1):this.clear():w(z[Z],this.toBBox)},g})}),Ze=h(n=>{Object.defineProperty(n,"__esModule",{value:!0}),n.earthRadius=63710088e-1,n.factors={centimeters:n.earthRadius*100,centimetres:n.earthRadius*100,degrees:n.earthRadius/111325,feet:n.earthRadius*3.28084,inches:n.earthRadius*39.37,kilometers:n.earthRadius/1e3,kilometres:n.earthRadius/1e3,meters:n.earthRadius,metres:n.earthRadius,miles:n.earthRadius/1609.344,millimeters:n.earthRadius*1e3,millimetres:n.earthRadius*1e3,nauticalmiles:n.earthRadius/1852,radians:1,yards:n.earthRadius*1.0936},n.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/n.earthRadius,yards:1.0936133},n.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function r(A,D,R){R===void 0&&(R={});var K={type:"Feature"};return(R.id===0||R.id)&&(K.id=R.id),R.bbox&&(K.bbox=R.bbox),K.properties=D||{},K.geometry=A,K}n.feature=r;function a(A,D,R){switch(A){case"Point":return c(D).geometry;case"LineString":return w(D).geometry;case"Polygon":return g(D).geometry;case"MultiPoint":return I(D).geometry;case"MultiLineString":return V(D).geometry;case"MultiPolygon":return it(D).geometry;default:throw new Error(A+" is invalid")}}n.geometry=a;function c(A,D,R){if(R===void 0&&(R={}),!A)throw new Error("coordinates is required");if(!Array.isArray(A))throw new Error("coordinates must be an Array");if(A.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!st(A[0])||!st(A[1]))throw new Error("coordinates must contain numbers");var K={type:"Point",coordinates:A};return r(K,D,R)}n.point=c;function f(A,D,R){return R===void 0&&(R={}),P(A.map(function(K){return c(K,D)}),R)}n.points=f;function g(A,D,R){R===void 0&&(R={});for(var K=0,q=A;K=0))throw new Error("precision must be a positive number");var R=Math.pow(10,D||0);return Math.round(A*R)/R}n.round=Mt;function zt(A,D){D===void 0&&(D="kilometers");var R=n.factors[D];if(!R)throw new Error(D+" units is invalid");return A*R}n.radiansToLength=zt;function qt(A,D){D===void 0&&(D="kilometers");var R=n.factors[D];if(!R)throw new Error(D+" units is invalid");return A/R}n.lengthToRadians=qt;function Be(A,D){return Z(qt(A,D))}n.lengthToDegrees=Be;function z(A){var D=A%360;return D<0&&(D+=360),D}n.bearingToAzimuth=z;function Z(A){var D=A%(2*Math.PI);return D*180/Math.PI}n.radiansToDegrees=Z;function J(A){var D=A%360;return D*Math.PI/180}n.degreesToRadians=J;function at(A,D,R){if(D===void 0&&(D="kilometers"),R===void 0&&(R="kilometers"),!(A>=0))throw new Error("length must be a positive number");return zt(qt(A,D),R)}n.convertLength=at;function X(A,D,R){if(D===void 0&&(D="meters"),R===void 0&&(R="kilometers"),!(A>=0))throw new Error("area must be a positive number");var K=n.areaFactors[D];if(!K)throw new Error("invalid original units");var q=n.areaFactors[R];if(!q)throw new Error("invalid final units");return A/K*q}n.convertArea=X;function st(A){return!isNaN(A)&&A!==null&&!Array.isArray(A)}n.isNumber=st;function E(A){return!!A&&A.constructor===Object}n.isObject=E;function S(A){if(!A)throw new Error("bbox is required");if(!Array.isArray(A))throw new Error("bbox must be an Array");if(A.length!==4&&A.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");A.forEach(function(D){if(!st(D))throw new Error("bbox must only contain numbers")})}n.validateBBox=S;function O(A){if(!A)throw new Error("id is required");if(["string","number"].indexOf(typeof A)===-1)throw new Error("id must be a number or a string")}n.validateId=O}),Mr=h(n=>{Object.defineProperty(n,"__esModule",{value:!0});var r=Ze();function a(Z,J,at){if(Z!==null)for(var X,st,E,S,O,A,D,R=0,K=0,q,W=Z.type,nt=W==="FeatureCollection",et=W==="Feature",Ct=nt?Z.features.length:1,Zt=0;ZtA||nt>D||et>R){O=K,A=X,D=nt,R=et,E=0;return}var Ct=r.lineString([O,K],at.properties);if(J(Ct,X,st,et,E)===!1)return!1;E++,O=K})===!1)return!1}}})}function Mt(Z,J,at){var X=at,st=!1;return lt(Z,function(E,S,O,A,D){st===!1&&at===void 0?X=E:X=J(X,E,S,O,A,D),st=!0}),X}function zt(Z,J){if(!Z)throw new Error("geojson is required");I(Z,function(at,X,st){if(at.geometry!==null){var E=at.geometry.type,S=at.geometry.coordinates;switch(E){case"LineString":if(J(at,X,st,0,0)===!1)return!1;break;case"Polygon":for(var O=0;O{Object.defineProperty(n,"__esModule",{value:!0});var r=Mr();function a(c){var f=[1/0,1/0,-1/0,-1/0];return r.coordEach(c,function(g){f[0]>g[0]&&(f[0]=g[0]),f[1]>g[1]&&(f[1]=g[1]),f[2]{var a=Te(),c=Ze(),f=Mr(),g=Yi().default,v=f.featureEach;f.coordEach,c.polygon;var w=c.featureCollection;function M(P){var V=new a(P);return V.insert=function(I){if(I.type!=="Feature")throw new Error("invalid feature");return I.bbox=I.bbox?I.bbox:g(I),a.prototype.insert.call(this,I)},V.load=function(I){var it=[];return Array.isArray(I)?I.forEach(function(lt){if(lt.type!=="Feature")throw new Error("invalid features");lt.bbox=lt.bbox?lt.bbox:g(lt),it.push(lt)}):v(I,function(lt){if(lt.type!=="Feature")throw new Error("invalid features");lt.bbox=lt.bbox?lt.bbox:g(lt),it.push(lt)}),a.prototype.load.call(this,it)},V.remove=function(I,it){if(I.type!=="Feature")throw new Error("invalid feature");return I.bbox=I.bbox?I.bbox:g(I),a.prototype.remove.call(this,I,it)},V.clear=function(){return a.prototype.clear.call(this)},V.search=function(I){var it=a.prototype.search.call(this,this.toBBox(I));return w(it)},V.collides=function(I){return a.prototype.collides.call(this,this.toBBox(I))},V.all=function(){var I=a.prototype.all.call(this);return w(I)},V.toJSON=function(){return a.prototype.toJSON.call(this)},V.fromJSON=function(I){return a.prototype.fromJSON.call(this,I)},V.toBBox=function(I){var it;if(I.bbox)it=I.bbox;else if(Array.isArray(I)&&I.length===4)it=I;else if(Array.isArray(I)&&I.length===6)it=[I[0],I[1],I[3],I[4]];else if(I.type==="Feature")it=g(I);else if(I.type==="FeatureCollection")it=g(I);else throw new Error("invalid geojson");return{minX:it[0],minY:it[1],maxX:it[2],maxY:it[3]}},V}r.exports=M,r.exports.default=M});Array.prototype.findIndex=Array.prototype.findIndex||function(n){if(this===null)throw new TypeError("Array.prototype.findIndex called on null or undefined");if(typeof n!="function")throw new TypeError("callback must be a function");for(var r=Object(this),a=r.length>>>0,c=arguments[1],f=0;f>>0,c=arguments[1],f=0;f>>0;if(c===0)return!1;var f=r|0,g=Math.max(f>=0?f:c-Math.abs(f),0);function v(w,M){return w===M||typeof w=="number"&&typeof M=="number"&&isNaN(w)&&isNaN(M)}for(;g{this._isRelevantForEdit(a)&&a.pm.enable(r)}),this.throttledReInitEdit||(this.throttledReInitEdit=L.Util.throttle(this.handleLayerAdditionInGlobalEditMode,100,this)),this._addedLayersEdit={},this.map.on("layeradd",this._layerAddedEdit,this),this.map.on("layeradd",this.throttledReInitEdit,this),this._fireGlobalEditModeToggled(!0)},disableGlobalEditMode(){this._globalEditModeEnabled=!1,L.PM.Utils.findLayers(this.map).forEach(n=>{n.pm.disable()}),this.map.off("layeradd",this._layerAddedEdit,this),this.map.off("layeradd",this.throttledReInitEdit,this),this.Toolbar.toggleButton("editMode",this.globalEditModeEnabled()),this._fireGlobalEditModeToggled(!1)},globalEditEnabled(){return this.globalEditModeEnabled()},globalEditModeEnabled(){return this._globalEditModeEnabled},toggleGlobalEditMode(n=this.globalOptions){this.globalEditModeEnabled()?this.disableGlobalEditMode():this.enableGlobalEditMode(n)},handleLayerAdditionInGlobalEditMode(){let n=this._addedLayersEdit;if(this._addedLayersEdit={},this.globalEditModeEnabled())for(let r in n){let a=n[r];this._isRelevantForEdit(a)&&a.pm.enable({...this.globalOptions})}},_layerAddedEdit({layer:n}){this._addedLayersEdit[L.stamp(n)]=n},_isRelevantForEdit(n){return n.pm&&!(n instanceof L.LayerGroup)&&(!L.PM.optIn&&!n.options.pmIgnore||L.PM.optIn&&n.options.pmIgnore===!1)&&!n._pmTempLayer&&n.pm.options.allowEditing}},Ni=us,cs={_globalDragModeEnabled:!1,enableGlobalDragMode(){let n=L.PM.Utils.findLayers(this.map);this._globalDragModeEnabled=!0,this._addedLayersDrag={},n.forEach(r=>{this._isRelevantForDrag(r)&&r.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(){let n=L.PM.Utils.findLayers(this.map);this._globalDragModeEnabled=!1,n.forEach(r=>{r.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(){return!!this._globalDragModeEnabled},toggleGlobalDragMode(){this.globalDragModeEnabled()?this.disableGlobalDragMode():this.enableGlobalDragMode()},reinitGlobalDragMode(){let n=this._addedLayersDrag;if(this._addedLayersDrag={},this.globalDragModeEnabled())for(let r in n){let a=n[r];this._isRelevantForDrag(a)&&a.pm.enableLayerDrag()}},_layerAddedDrag({layer:n}){this._addedLayersDrag[L.stamp(n)]=n},_isRelevantForDrag(n){return n.pm&&!(n instanceof L.LayerGroup)&&(!L.PM.optIn&&!n.options.pmIgnore||L.PM.optIn&&n.options.pmIgnore===!1)&&!n._pmTempLayer&&n.pm.options.draggable}},Sr=cs,pn={_globalRemovalModeEnabled:!1,enableGlobalRemovalMode(){this._globalRemovalModeEnabled=!0,this.map.eachLayer(n=>{this._isRelevantForRemoval(n)&&(n.pm.enabled()&&n.pm.disable(),n.on("click",this.removeLayer,this))}),this.throttledReInitRemoval||(this.throttledReInitRemoval=L.Util.throttle(this.handleLayerAdditionInGlobalRemovalMode,100,this)),this._addedLayersRemoval={},this.map.on("layeradd",this._layerAddedRemoval,this),this.map.on("layeradd",this.throttledReInitRemoval,this),this.Toolbar.toggleButton("removalMode",this.globalRemovalModeEnabled()),this._fireGlobalRemovalModeToggled(!0)},disableGlobalRemovalMode(){this._globalRemovalModeEnabled=!1,this.map.eachLayer(n=>{n.off("click",this.removeLayer,this)}),this.map.off("layeradd",this._layerAddedRemoval,this),this.map.off("layeradd",this.throttledReInitRemoval,this),this.Toolbar.toggleButton("removalMode",this.globalRemovalModeEnabled()),this._fireGlobalRemovalModeToggled(!1)},globalRemovalEnabled(){return this.globalRemovalModeEnabled()},globalRemovalModeEnabled(){return!!this._globalRemovalModeEnabled},toggleGlobalRemovalMode(){this.globalRemovalModeEnabled()?this.disableGlobalRemovalMode():this.enableGlobalRemovalMode()},removeLayer(n){let r=n.target;this._isRelevantForRemoval(r)&&!r.pm.dragging()&&(r.removeFrom(this.map.pm._getContainingLayer()),r.remove(),r instanceof L.LayerGroup?(this._fireRemoveLayerGroup(r),this._fireRemoveLayerGroup(this.map,r)):(r.pm._fireRemove(r),r.pm._fireRemove(this.map,r)))},_isRelevantForRemoval(n){return n.pm&&!(n instanceof L.LayerGroup)&&(!L.PM.optIn&&!n.options.pmIgnore||L.PM.optIn&&n.options.pmIgnore===!1)&&!n._pmTempLayer&&n.pm.options.allowRemoval},handleLayerAdditionInGlobalRemovalMode(){let n=this._addedLayersRemoval;if(this._addedLayersRemoval={},this.globalRemovalModeEnabled())for(let r in n){let a=n[r];this._isRelevantForRemoval(a)&&(a.pm.enabled()&&a.pm.disable(),a.on("click",this.removeLayer,this))}},_layerAddedRemoval({layer:n}){this._addedLayersRemoval[L.stamp(n)]=n}},ji=pn,xa={_globalRotateModeEnabled:!1,enableGlobalRotateMode(){this._globalRotateModeEnabled=!0,L.PM.Utils.findLayers(this.map).filter(n=>n instanceof L.Polyline).forEach(n=>{this._isRelevantForRotate(n)&&n.pm.enableRotate()}),this.throttledReInitRotate||(this.throttledReInitRotate=L.Util.throttle(this.handleLayerAdditionInGlobalRotateMode,100,this)),this._addedLayersRotate={},this.map.on("layeradd",this._layerAddedRotate,this),this.map.on("layeradd",this.throttledReInitRotate,this),this.Toolbar.toggleButton("rotateMode",this.globalRotateModeEnabled()),this._fireGlobalRotateModeToggled()},disableGlobalRotateMode(){this._globalRotateModeEnabled=!1,L.PM.Utils.findLayers(this.map).filter(n=>n instanceof L.Polyline).forEach(n=>{n.pm.disableRotate()}),this.map.off("layeradd",this._layerAddedRotate,this),this.map.off("layeradd",this.throttledReInitRotate,this),this.Toolbar.toggleButton("rotateMode",this.globalRotateModeEnabled()),this._fireGlobalRotateModeToggled()},globalRotateModeEnabled(){return!!this._globalRotateModeEnabled},toggleGlobalRotateMode(){this.globalRotateModeEnabled()?this.disableGlobalRotateMode():this.enableGlobalRotateMode()},_isRelevantForRotate(n){return n.pm&&n instanceof L.Polyline&&!(n instanceof L.LayerGroup)&&(!L.PM.optIn&&!n.options.pmIgnore||L.PM.optIn&&n.options.pmIgnore===!1)&&!n._pmTempLayer&&n.pm.options.allowRotation},handleLayerAdditionInGlobalRotateMode(){let n=this._addedLayersRotate;if(this._addedLayersRotate={},this.globalRotateModeEnabled())for(let r in n){let a=n[r];this._isRelevantForRemoval(a)&&a.pm.enableRotate()}},_layerAddedRotate({layer:n}){this._addedLayersRotate[L.stamp(n)]=n}},La=xa,du=m(to()),Ca={_fireDrawStart(n="Draw",r={}){this.__fire(this._map,"pm:drawstart",{shape:this._shape,workingLayer:this._layer},n,r)},_fireDrawEnd(n="Draw",r={}){this.__fire(this._map,"pm:drawend",{shape:this._shape},n,r)},_fireCreate(n,r="Draw",a={}){this.__fire(this._map,"pm:create",{shape:this._shape,marker:n,layer:n},r,a)},_fireCenterPlaced(n="Draw",r={}){let a=n==="Draw"?this._layer:void 0,c=n!=="Draw"?this._layer:void 0;this.__fire(this._layer,"pm:centerplaced",{shape:this._shape,workingLayer:a,layer:c,latlng:this._layer.getLatLng()},n,r)},_fireCut(n,r,a,c="Draw",f={}){this.__fire(n,"pm:cut",{shape:this._shape,layer:r,originalLayer:a},c,f)},_fireEdit(n=this._layer,r="Edit",a={}){this.__fire(n,"pm:edit",{layer:this._layer,shape:this.getShape()},r,a)},_fireEnable(n="Edit",r={}){this.__fire(this._layer,"pm:enable",{layer:this._layer,shape:this.getShape()},n,r)},_fireDisable(n="Edit",r={}){this.__fire(this._layer,"pm:disable",{layer:this._layer,shape:this.getShape()},n,r)},_fireUpdate(n="Edit",r={}){this.__fire(this._layer,"pm:update",{layer:this._layer,shape:this.getShape()},n,r)},_fireMarkerDragStart(n,r=void 0,a="Edit",c={}){this.__fire(this._layer,"pm:markerdragstart",{layer:this._layer,markerEvent:n,shape:this.getShape(),indexPath:r},a,c)},_fireMarkerDrag(n,r=void 0,a="Edit",c={}){this.__fire(this._layer,"pm:markerdrag",{layer:this._layer,markerEvent:n,shape:this.getShape(),indexPath:r},a,c)},_fireMarkerDragEnd(n,r=void 0,a=void 0,c="Edit",f={}){this.__fire(this._layer,"pm:markerdragend",{layer:this._layer,markerEvent:n,shape:this.getShape(),indexPath:r,intersectionReset:a},c,f)},_fireDragStart(n="Edit",r={}){this.__fire(this._layer,"pm:dragstart",{layer:this._layer,shape:this.getShape()},n,r)},_fireDrag(n,r="Edit",a={}){this.__fire(this._layer,"pm:drag",{...n,shape:this.getShape()},r,a)},_fireDragEnd(n="Edit",r={}){this.__fire(this._layer,"pm:dragend",{layer:this._layer,shape:this.getShape()},n,r)},_fireDragEnable(n="Edit",r={}){this.__fire(this._layer,"pm:dragenable",{layer:this._layer,shape:this.getShape()},n,r)},_fireDragDisable(n="Edit",r={}){this.__fire(this._layer,"pm:dragdisable",{layer:this._layer,shape:this.getShape()},n,r)},_fireRemove(n,r=n,a="Edit",c={}){this.__fire(n,"pm:remove",{layer:r,shape:this.getShape()},a,c)},_fireVertexAdded(n,r,a,c="Edit",f={}){this.__fire(this._layer,"pm:vertexadded",{layer:this._layer,workingLayer:this._layer,marker:n,indexPath:r,latlng:a,shape:this.getShape()},c,f)},_fireVertexRemoved(n,r,a="Edit",c={}){this.__fire(this._layer,"pm:vertexremoved",{layer:this._layer,marker:n,indexPath:r,shape:this.getShape()},a,c)},_fireVertexClick(n,r,a="Edit",c={}){this.__fire(this._layer,"pm:vertexclick",{layer:this._layer,markerEvent:n,indexPath:r,shape:this.getShape()},a,c)},_fireIntersect(n,r=this._layer,a="Edit",c={}){this.__fire(r,"pm:intersect",{layer:this._layer,intersection:n,shape:this.getShape()},a,c)},_fireLayerReset(n,r,a="Edit",c={}){this.__fire(this._layer,"pm:layerreset",{layer:this._layer,markerEvent:n,indexPath:r,shape:this.getShape()},a,c)},_fireChange(n,r="Edit",a={}){this.__fire(this._layer,"pm:change",{layer:this._layer,latlngs:n,shape:this.getShape()},r,a)},_fireTextChange(n,r="Edit",a={}){this.__fire(this._layer,"pm:textchange",{layer:this._layer,text:n,shape:this.getShape()},r,a)},_fireTextFocus(n="Edit",r={}){this.__fire(this._layer,"pm:textfocus",{layer:this._layer,shape:this.getShape()},n,r)},_fireTextBlur(n="Edit",r={}){this.__fire(this._layer,"pm:textblur",{layer:this._layer,shape:this.getShape()},n,r)},_fireSnapDrag(n,r,a="Snapping",c={}){this.__fire(n,"pm:snapdrag",r,a,c)},_fireSnap(n,r,a="Snapping",c={}){this.__fire(n,"pm:snap",r,a,c)},_fireUnsnap(n,r,a="Snapping",c={}){this.__fire(n,"pm:unsnap",r,a,c)},_fireRotationEnable(n,r,a="Rotation",c={}){this.__fire(n,"pm:rotateenable",{layer:this._layer,helpLayer:this._rotatePoly,shape:this.getShape()},a,c)},_fireRotationDisable(n,r="Rotation",a={}){this.__fire(n,"pm:rotatedisable",{layer:this._layer,shape:this.getShape()},r,a)},_fireRotationStart(n,r,a="Rotation",c={}){this.__fire(n,"pm:rotatestart",{layer:this._rotationLayer,helpLayer:this._layer,startAngle:this._startAngle,originLatLngs:r},a,c)},_fireRotation(n,r,a,c=this._rotationLayer,f="Rotation",g={}){this.__fire(n,"pm:rotate",{layer:c,helpLayer:this._layer,startAngle:this._startAngle,angle:c.pm.getAngle(),angleDiff:r,oldLatLngs:a,newLatLngs:c.getLatLngs()},f,g)},_fireRotationEnd(n,r,a,c="Rotation",f={}){this.__fire(n,"pm:rotateend",{layer:this._rotationLayer,helpLayer:this._layer,startAngle:r,angle:this._rotationLayer.pm.getAngle(),originLatLngs:a,newLatLngs:this._rotationLayer.getLatLngs()},c,f)},_fireActionClick(n,r,a,c="Toolbar",f={}){this.__fire(this._map,"pm:actionclick",{text:n.text,action:n,btnName:r,button:a},c,f)},_fireButtonClick(n,r,a="Toolbar",c={}){this.__fire(this._map,"pm:buttonclick",{btnName:n,button:r},a,c)},_fireLangChange(n,r,a,c,f="Global",g={}){this.__fire(this.map,"pm:langchange",{oldLang:n,activeLang:r,fallback:a,translations:c},f,g)},_fireGlobalDragModeToggled(n,r="Global",a={}){this.__fire(this.map,"pm:globaldragmodetoggled",{enabled:n,map:this.map},r,a)},_fireGlobalEditModeToggled(n,r="Global",a={}){this.__fire(this.map,"pm:globaleditmodetoggled",{enabled:n,map:this.map},r,a)},_fireGlobalRemovalModeToggled(n,r="Global",a={}){this.__fire(this.map,"pm:globalremovalmodetoggled",{enabled:n,map:this.map},r,a)},_fireGlobalCutModeToggled(n="Global",r={}){this.__fire(this._map,"pm:globalcutmodetoggled",{enabled:!!this._enabled,map:this._map},n,r)},_fireGlobalDrawModeToggled(n="Global",r={}){this.__fire(this._map,"pm:globaldrawmodetoggled",{enabled:this._enabled,shape:this._shape,map:this._map},n,r)},_fireGlobalRotateModeToggled(n="Global",r={}){this.__fire(this.map,"pm:globalrotatemodetoggled",{enabled:this.globalRotateModeEnabled(),map:this.map},n,r)},_fireRemoveLayerGroup(n,r=n,a="Edit",c={}){this.__fire(n,"pm:remove",{layer:r,shape:void 0},a,c)},_fireKeyeventEvent(n,r,a,c="Global",f={}){this.__fire(this.map,"pm:keyevent",{event:n,eventType:r,focusOn:a},c,f)},__fire(n,r,a,c,f={}){a=(0,du.default)(a,f,{source:c}),L.PM.Utils._fireEvent(n,r,a)}},Xi=Ca,pu=()=>({_lastEvents:{keydown:void 0,keyup:void 0,current:void 0},_initKeyListener(n){this.map=n,L.DomEvent.on(document,"keydown keyup",this._onKeyListener,this),L.DomEvent.on(window,"blur",this._onBlur,this),n.once("unload",this._unbindKeyListenerEvents,this)},_unbindKeyListenerEvents(){L.DomEvent.off(document,"keydown keyup",this._onKeyListener,this),L.DomEvent.off(window,"blur",this._onBlur,this)},_onKeyListener(n){let r="document";this.map.getContainer().contains(n.target)&&(r="map");let a={event:n,eventType:n.type,focusOn:r};this._lastEvents[n.type]=a,this._lastEvents.current=a,this.map.pm._fireKeyeventEvent(n,n.type,r)},_onBlur(n){n.altKey=!1;let r={event:n,eventType:n.type,focusOn:"document"};this._lastEvents[n.type]=r,this._lastEvents.current=r},getLastKeyEvent(n="current"){return this._lastEvents[n]},isShiftKeyPressed(){var n;return(n=this._lastEvents.current)==null?void 0:n.event.shiftKey},isAltKeyPressed(){var n;return(n=this._lastEvents.current)==null?void 0:n.event.altKey},isCtrlKeyPressed(){var n;return(n=this._lastEvents.current)==null?void 0:n.event.ctrlKey},isMetaKeyPressed(){var n;return(n=this._lastEvents.current)==null?void 0:n.event.metaKey},getPressedKey(){var n;return(n=this._lastEvents.current)==null?void 0:n.event.key}}),wa=pu,Ce=m(Ci());function Pe(n){let r=L.PM.activeLang;return(0,Ce.default)(Fi[r],n)||(0,Ce.default)(Fi.en,n)||n}function On(n){for(let r=0;r{if(a.length!==0){let c=Array.isArray(a)?wi(a):a;Array.isArray(c)?c.length!==0&&r.push(c):r.push(c)}return r},[])}function ka(n,r,a){let c={a:L.CRS.Earth.R,b:63567523142e-4,f:.0033528106647474805},{a:f,b:g,f:v}=c,w=n.lng,M=n.lat,P=a,V=Math.PI,I=r*V/180,it=Math.sin(I),lt=Math.cos(I),Mt=(1-v)*Math.tan(M*V/180),zt=1/Math.sqrt(1+Mt*Mt),qt=Mt*zt,Be=Math.atan2(Mt,lt),z=zt*it,Z=1-z*z,J=Z*(f*f-g*g)/(g*g),at=1+J/16384*(4096+J*(-768+J*(320-175*J))),X=J/1024*(256+J*(-128+J*(74-47*J))),st=P/(g*at),E=2*Math.PI,S,O,A;for(;Math.abs(st-E)>1e-12;){S=Math.cos(2*Be+st),O=Math.sin(st),A=Math.cos(st);let Ct=X*O*(S+X/4*(A*(-1+2*S*S)-X/6*S*(-3+4*O*O)*(-3+4*S*S)));E=st,st=P/(g*at)+Ct}let D=qt*O-zt*A*lt,R=Math.atan2(qt*A+zt*O*lt,(1-v)*Math.sqrt(z*z+D*D)),K=Math.atan2(O*it,zt*A-qt*O*lt),q=v/16*Z*(4+v*(4-3*Z)),W=K-(1-q)*v*z*(st+q*O*(S+q*A*(-1+2*S*S))),nt=w+W*180/V,et=R*180/V;return L.latLng(nt,et)}function Ma(n,r,a,c,f=!0){let g,v,w,M=[];for(let P=0;P180?zt:qt,L.latLng([lt*f,Mt])}function ds(n,r,a){let c=n.latLngToContainerPoint(r),f=n.latLngToContainerPoint(a),g=Math.atan2(f.y-c.y,f.x-c.x)*180/Math.PI+90;return g+=g<0?360:0,g}function Tr(n,r,a,c){let f=ds(n,r,a);return hs(r,f,c)}function fu(n,r,a="asc"){if(!r||Object.keys(r).length===0)return(M,P)=>M-P;let c=Object.keys(r),f,g=c.length-1,v={};for(;g>=0;)f=c[g],v[f.toLowerCase()]=r[f],g-=1;function w(M){if(M instanceof L.Marker)return"Marker";if(M instanceof L.Circle)return"Circle";if(M instanceof L.CircleMarker)return"CircleMarker";if(M instanceof L.Rectangle)return"Rectangle";if(M instanceof L.Polygon)return"Polygon";if(M instanceof L.Polyline)return"Line"}return(M,P)=>{let V,I;if(V=w(M.layer).toLowerCase(),I=w(P.layer).toLowerCase(),!V||!I)return 0;let it=V in v?v[V]:Number.MAX_SAFE_INTEGER,lt=I in v?v[I]:Number.MAX_SAFE_INTEGER,Mt=0;return itlt&&(Mt=1),a==="desc"?Mt*-1:Mt}}function ki(n,r=n.getLatLngs()){return n instanceof L.Polygon?L.polygon(r).getLatLngs():L.polyline(r).getLatLngs()}function so(n,r){var a,c,f,g;if((c=(a=r.options.crs)==null?void 0:a.projection)!=null&&c.MAX_LATITUDE){let v=(g=(f=r.options.crs)==null?void 0:f.projection)==null?void 0:g.MAX_LATITUDE;n.lat=Math.max(Math.min(v,n.lat),-v)}return n}function Qi(n){return n.options.renderer||n._map&&(n._map._getPaneRenderer(n.options.pane)||n._map.options.renderer||n._map._renderer)||n._renderer}var ei=L.Class.extend({includes:[Ni,Sr,ji,La,Xi],initialize(n){this.map=n,this.Draw=new L.PM.Draw(n),this.Toolbar=new L.PM.Toolbar(n),this.Keyboard=wa(),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(n)},setLang(n="en",r,a="en"){let c=L.PM.activeLang;r&&(Fi[n]=(0,me.default)(Fi[a],r)),L.PM.activeLang=n,this.map.pm.Toolbar.reinit(),this._fireLangChange(c,n,a,Fi[n])},addControls(n){this.Toolbar.addControls(n)},removeControls(){this.Toolbar.removeControls()},toggleControls(){this.Toolbar.toggleControls()},controlsVisible(){return this.Toolbar.isVisible},enableDraw(n="Polygon",r){n==="Poly"&&(n="Polygon"),this.Draw.enable(n,r)},disableDraw(n="Polygon"){n==="Poly"&&(n="Polygon"),this.Draw.disable(n)},setPathOptions(n,r={}){let a=r.ignoreShapes||[],c=r.merge||!1;this.map.pm.Draw.shapes.forEach(f=>{a.indexOf(f)===-1&&this.map.pm.Draw[f].setPathOptions(n,c)})},getGlobalOptions(){return this.globalOptions},setGlobalOptions(n){let r=(0,me.default)(this.globalOptions,n);r.editable&&(r.resizeableCircleMarker=r.editable,delete r.editable);let a=!1;this.map.pm.Draw.CircleMarker.enabled()&&!!this.map.pm.Draw.CircleMarker.options.resizeableCircleMarker!=!!r.resizeableCircleMarker&&(this.map.pm.Draw.CircleMarker.disable(),a=!0);let c=!1;this.map.pm.Draw.Circle.enabled()&&!!this.map.pm.Draw.Circle.options.resizableCircle!=!!r.resizableCircle&&(this.map.pm.Draw.Circle.disable(),c=!0),this.map.pm.Draw.shapes.forEach(f=>{this.map.pm.Draw[f].setOptions(r)}),a&&this.map.pm.Draw.CircleMarker.enable(),c&&this.map.pm.Draw.Circle.enable(),L.PM.Utils.findLayers(this.map).forEach(f=>{f.pm.setOptions(r)}),this.map.fire("pm:globaloptionschanged"),this.globalOptions=r,this.applyGlobalOptions()},applyGlobalOptions(){L.PM.Utils.findLayers(this.map).forEach(n=>{n.pm.enabled()&&n.pm.applyOptions()})},globalDrawModeEnabled(){return!!this.Draw.getActiveShape()},globalCutModeEnabled(){return!!this.Draw.Cut.enabled()},enableGlobalCutMode(n){return this.Draw.Cut.enable(n)},toggleGlobalCutMode(n){return this.Draw.Cut.toggle(n)},disableGlobalCutMode(){return this.Draw.Cut.disable()},getGeomanLayers(n=!1){let r=L.PM.Utils.findLayers(this.map);if(!n)return r;let a=L.featureGroup();return a._pmTempLayer=!0,r.forEach(c=>{a.addLayer(c)}),a},getGeomanDrawLayers(n=!1){let r=L.PM.Utils.findLayers(this.map).filter(c=>c._drawnByGeoman===!0);if(!n)return r;let a=L.featureGroup();return a._pmTempLayer=!0,r.forEach(c=>{a.addLayer(c)}),a},_getContainingLayer(){return this.globalOptions.layerGroup&&this.globalOptions.layerGroup instanceof L.LayerGroup?this.globalOptions.layerGroup:this.map},_isCRSSimple(){return this.map.options.crs===L.CRS.Simple},_touchEventCounter:0,_addTouchEvents(n){this._touchEventCounter===0&&(L.DomEvent.on(n,"touchmove",this._canvasTouchMove,this),L.DomEvent.on(n,"touchstart touchend touchcancel",this._canvasTouchClick,this)),this._touchEventCounter+=1},_removeTouchEvents(n){this._touchEventCounter===1&&(L.DomEvent.off(n,"touchmove",this._canvasTouchMove,this),L.DomEvent.off(n,"touchstart touchend touchcancel",this._canvasTouchClick,this)),this._touchEventCounter=this._touchEventCounter<=1?0:this._touchEventCounter-1},_canvasTouchMove(n){Qi(this.map)._onMouseMove(this._createMouseEvent("mousemove",n))},_canvasTouchClick(n){let r="";n.type==="touchstart"||n.type==="pointerdown"?r="mousedown":(n.type==="touchend"||n.type==="pointerup"||n.type==="touchcancel"||n.type==="pointercancel")&&(r="mouseup"),r&&Qi(this.map)._onClick(this._createMouseEvent(r,n))},_createMouseEvent(n,r){let a,c=r.touches[0]||r.changedTouches[0];try{a=new MouseEvent(n,{bubbles:r.bubbles,cancelable:r.cancelable,view:r.view,detail:c.detail,screenX:c.screenX,screenY:c.screenY,clientX:c.clientX,clientY:c.clientY,ctrlKey:r.ctrlKey,altKey:r.altKey,shiftKey:r.shiftKey,metaKey:r.metaKey,button:r.button,relatedTarget:r.relatedTarget})}catch{a=document.createEvent("MouseEvents"),a.initMouseEvent(n,r.bubbles,r.cancelable,r.view,c.detail,c.screenX,c.screenY,c.clientX,c.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget)}return a}}),_u=ei,Ea=L.Control.extend({includes:[Xi],options:{position:"topleft",disableByOtherButtons:!0},initialize(n){this._button=L.Util.extend({},this.options,n)},onAdd(n){return this._map=n,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._renderButton(),this._container},_renderButton(){let n=this.buttonsDomNode;this.buttonsDomNode=this._makeButton(this._button),n?n.replaceWith(this.buttonsDomNode):this._container.appendChild(this.buttonsDomNode)},onRemove(){return this.buttonsDomNode.remove(),this._container},getText(){return this._button.text},getIconUrl(){return this._button.iconUrl},destroy(){this._button={},this._update()},toggle(n){return typeof n=="boolean"?this._button.toggleStatus=n:this._button.toggleStatus=!this._button.toggleStatus,this._applyStyleClasses(),this._button.toggleStatus},toggled(){return this._button.toggleStatus},onCreate(){this.toggle(!1)},disable(){this.toggle(!1),this._button.disabled=!0,this._updateDisabled()},enable(){this._button.disabled=!1,this._updateDisabled()},_triggerClick(n){n&&n.preventDefault(),!this._button.disabled&&(this._button.onClick(n,{button:this,event:n}),this._clicked(n),this._button.afterClick(n,{button:this,event:n}))},_makeButton(n){let r=this.options.position.indexOf("right")>-1?"pos-right":"",a=L.DomUtil.create("div",`button-container ${r}`,this._container);n.title&&a.setAttribute("title",n.title);let c=L.DomUtil.create("a","leaflet-buttons-control-button",a);c.setAttribute("role","button"),c.setAttribute("tabindex","0"),c.href="#";let f=L.DomUtil.create("div",`leaflet-pm-actions-container ${r}`,a),g=n.actions,v={cancel:{text:Pe("actions.cancel"),title:Pe("actions.cancel"),onClick(){this._triggerClick()}},finishMode:{text:Pe("actions.finish"),title:Pe("actions.finish"),onClick(){this._triggerClick()}},removeLastVertex:{text:Pe("actions.removeLastVertex"),title:Pe("actions.removeLastVertex"),onClick(){this._map.pm.Draw[n.jsClass]._removeLastVertex()}},finish:{text:Pe("actions.finish"),title:Pe("actions.finish"),onClick(M){this._map.pm.Draw[n.jsClass]._finishShape(M)}}};g.forEach(M=>{let P=typeof M=="string"?M:M.name,V;if(v[P])V=v[P];else if(M.text)V=M;else return;let I=L.DomUtil.create("a",`leaflet-pm-action ${r} action-${P}`,f);if(I.setAttribute("role","button"),I.setAttribute("tabindex","0"),I.href="#",V.title&&(I.title=V.title),I.innerHTML=V.text,L.DomEvent.disableClickPropagation(I),L.DomEvent.on(I,"click",L.DomEvent.stop),!n.disabled&&V.onClick){let it=lt=>{lt.preventDefault();let Mt="",{buttons:zt}=this._map.pm.Toolbar;for(let qt in zt)if(zt[qt]._button===n){Mt=qt;break}this._fireActionClick(V,Mt,n)};L.DomEvent.addListener(I,"click",it,this),L.DomEvent.addListener(I,"click",V.onClick,this)}}),n.toggleStatus&&L.DomUtil.addClass(a,"active");let w=L.DomUtil.create("div","control-icon",c);return n.iconUrl&&w.setAttribute("src",n.iconUrl),n.className&&L.DomUtil.addClass(w,n.className),L.DomEvent.disableClickPropagation(c),L.DomEvent.on(c,"click",L.DomEvent.stop),n.disabled||(L.DomEvent.addListener(c,"click",this._onBtnClick,this),L.DomEvent.addListener(c,"click",this._triggerClick,this)),n.disabled&&(L.DomUtil.addClass(c,"pm-disabled"),c.setAttribute("aria-disabled","true")),a},_applyStyleClasses(){this._container&&(!this._button.toggleStatus||this._button.cssToggle===!1?(L.DomUtil.removeClass(this.buttonsDomNode,"active"),L.DomUtil.removeClass(this._container,"activeChild")):(L.DomUtil.addClass(this.buttonsDomNode,"active"),L.DomUtil.addClass(this._container,"activeChild")))},_onBtnClick(){if(this._button.disabled)return;this._button.disableOtherButtons&&this._map.pm.Toolbar.triggerClickOnToggledButtons(this);let n="",{buttons:r}=this._map.pm.Toolbar;for(let a in r)if(r[a]._button===this._button){n=a;break}this._fireButtonClick(n,this._button)},_clicked(){this._button.doToggle&&this.toggle()},_updateDisabled(){if(!this._container)return;let n="pm-disabled",r=this.buttonsDomNode.children[0];this._button.disabled?(L.DomUtil.addClass(r,n),r.setAttribute("aria-disabled","true")):(L.DomUtil.removeClass(r,n),r.setAttribute("aria-disabled","false"))}}),Mi=Ea;L.Control.PMButton=Mi;var Pa=L.Class.extend({options:{drawMarker:!0,drawRectangle:!0,drawPolyline:!0,drawPolygon:!0,drawCircle:!0,drawCircleMarker:!0,drawText:!0,editMode:!0,dragMode:!0,cutPolygon:!0,removalMode:!0,rotateMode:!0,snappingOption:!0,drawControls:!0,editControls:!0,optionsControls:!0,customControls:!0,oneBlock:!1,position:"topleft",positions:{draw:"",edit:"",options:"",custom:""}},customButtons:[],initialize(n){this.customButtons=[],this.options.positions={draw:"",edit:"",options:"",custom:""},this.init(n)},reinit(){let n=this.isVisible;this.removeControls(),this._defineButtons(),n&&this.addControls()},init(n){this.map=n,this.buttons={},this.isVisible=!1,this.drawContainer=L.DomUtil.create("div","leaflet-pm-toolbar leaflet-pm-draw leaflet-bar leaflet-control"),this.editContainer=L.DomUtil.create("div","leaflet-pm-toolbar leaflet-pm-edit leaflet-bar leaflet-control"),this.optionsContainer=L.DomUtil.create("div","leaflet-pm-toolbar leaflet-pm-options leaflet-bar leaflet-control"),this.customContainer=L.DomUtil.create("div","leaflet-pm-toolbar leaflet-pm-custom leaflet-bar leaflet-control"),this._defineButtons()},_createContainer(n){let r=`${n}Container`;return this[r]||(this[r]=L.DomUtil.create("div",`leaflet-pm-toolbar leaflet-pm-${n} leaflet-bar leaflet-control`)),this[r]},getButtons(){return this.buttons},addControls(n=this.options){typeof n.editPolygon<"u"&&(n.editMode=n.editPolygon),typeof n.deleteLayer<"u"&&(n.removalMode=n.deleteLayer),L.Util.setOptions(this,n),this.applyIconStyle(),this.isVisible=!0,this._showHideButtons()},applyIconStyle(){let n=this.getButtons(),r={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(let a in n){let c=n[a];L.Util.setOptions(c,{className:r.geomanIcons[a]})}},removeControls(){let n=this.getButtons();for(let r in n)n[r].remove();this.isVisible=!1},toggleControls(n=this.options){this.isVisible?this.removeControls():this.addControls(n)},_addButton(n,r){return this.buttons[n]=r,this.options[n]=!!this.options[n]||!1,this.buttons[n]},triggerClickOnToggledButtons(n){for(let r in this.buttons){let a=this.buttons[r];a._button.disableByOtherButtons&&a!==n&&a.toggled()&&a._triggerClick()}},toggleButton(n,r,a=!0){return n==="editPolygon"&&(n="editMode"),n==="deleteLayer"&&(n="removalMode"),a&&this.triggerClickOnToggledButtons(this.buttons[n]),this.buttons[n]?this.buttons[n].toggle(r):!1},_defineButtons(){let n={className:"control-icon leaflet-pm-icon-marker",title:Pe("buttonTitles.drawMarkerButton"),jsClass:"Marker",onClick:()=>{},afterClick:(it,lt)=>{this.map.pm.Draw[lt.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},r={title:Pe("buttonTitles.drawPolyButton"),className:"control-icon leaflet-pm-icon-polygon",jsClass:"Polygon",onClick:()=>{},afterClick:(it,lt)=>{this.map.pm.Draw[lt.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["finish","removeLastVertex","cancel"]},a={className:"control-icon leaflet-pm-icon-polyline",title:Pe("buttonTitles.drawLineButton"),jsClass:"Line",onClick:()=>{},afterClick:(it,lt)=>{this.map.pm.Draw[lt.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["finish","removeLastVertex","cancel"]},c={title:Pe("buttonTitles.drawCircleButton"),className:"control-icon leaflet-pm-icon-circle",jsClass:"Circle",onClick:()=>{},afterClick:(it,lt)=>{this.map.pm.Draw[lt.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},f={title:Pe("buttonTitles.drawCircleMarkerButton"),className:"control-icon leaflet-pm-icon-circle-marker",jsClass:"CircleMarker",onClick:()=>{},afterClick:(it,lt)=>{this.map.pm.Draw[lt.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},g={title:Pe("buttonTitles.drawRectButton"),className:"control-icon leaflet-pm-icon-rectangle",jsClass:"Rectangle",onClick:()=>{},afterClick:(it,lt)=>{this.map.pm.Draw[lt.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},v={title:Pe("buttonTitles.editButton"),className:"control-icon leaflet-pm-icon-edit",onClick:()=>{},afterClick:()=>{this.map.pm.toggleGlobalEditMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finishMode"]},w={title:Pe("buttonTitles.dragButton"),className:"control-icon leaflet-pm-icon-drag",onClick:()=>{},afterClick:()=>{this.map.pm.toggleGlobalDragMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finishMode"]},M={title:Pe("buttonTitles.cutButton"),className:"control-icon leaflet-pm-icon-cut",jsClass:"Cut",onClick:()=>{},afterClick:(it,lt)=>{this.map.pm.Draw[lt.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"]},P={title:Pe("buttonTitles.deleteButton"),className:"control-icon leaflet-pm-icon-delete",onClick:()=>{},afterClick:()=>{this.map.pm.toggleGlobalRemovalMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finishMode"]},V={title:Pe("buttonTitles.rotateButton"),className:"control-icon leaflet-pm-icon-rotate",onClick:()=>{},afterClick:()=>{this.map.pm.toggleGlobalRotateMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finishMode"]},I={className:"control-icon leaflet-pm-icon-text",title:Pe("buttonTitles.drawTextButton"),jsClass:"Text",onClick:()=>{},afterClick:(it,lt)=>{this.map.pm.Draw[lt.button._button.jsClass].toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]};this._addButton("drawMarker",new L.Control.PMButton(n)),this._addButton("drawPolyline",new L.Control.PMButton(a)),this._addButton("drawRectangle",new L.Control.PMButton(g)),this._addButton("drawPolygon",new L.Control.PMButton(r)),this._addButton("drawCircle",new L.Control.PMButton(c)),this._addButton("drawCircleMarker",new L.Control.PMButton(f)),this._addButton("drawText",new L.Control.PMButton(I)),this._addButton("editMode",new L.Control.PMButton(v)),this._addButton("dragMode",new L.Control.PMButton(w)),this._addButton("cutPolygon",new L.Control.PMButton(M)),this._addButton("removalMode",new L.Control.PMButton(P)),this._addButton("rotateMode",new L.Control.PMButton(V))},_showHideButtons(){if(!this.isVisible)return;this.removeControls(),this.isVisible=!0;let n=this.getButtons(),r=[];this.options.drawControls===!1&&(r=r.concat(Object.keys(n).filter(a=>!n[a]._button.tool))),this.options.editControls===!1&&(r=r.concat(Object.keys(n).filter(a=>n[a]._button.tool==="edit"))),this.options.optionsControls===!1&&(r=r.concat(Object.keys(n).filter(a=>n[a]._button.tool==="options"))),this.options.customControls===!1&&(r=r.concat(Object.keys(n).filter(a=>n[a]._button.tool==="custom")));for(let a in n)if(this.options[a]&&r.indexOf(a)===-1){let c=n[a]._button.tool;c||(c="draw"),n[a].setPosition(this._getBtnPosition(c)),n[a].addTo(this.map)}},_getBtnPosition(n){return this.options.positions&&this.options.positions[n]?this.options.positions[n]:this.options.position},setBlockPosition(n,r){this.options.positions[n]=r,this._showHideButtons(),this.changeControlOrder()},getBlockPositions(){return this.options.positions},copyDrawControl(n,r){if(r)typeof r!="object"&&(r={name:r});else throw new TypeError("Button has no name");let a=this._btnNameMapping(n);if(!r.name)throw new TypeError("Button has no name");if(this.buttons[r.name])throw new TypeError("Button with this name already exists");let c=this.map.pm.Draw.createNewDrawInstance(r.name,a);r={...this.buttons[a]._button,...r};let f=this.createCustomControl(r);return{drawInstance:c,control:f}},createCustomControl(n){if(!n.name)throw new TypeError("Button has no name");if(this.buttons[n.name])throw new TypeError("Button with this name already exists");n.onClick||(n.onClick=()=>{}),n.afterClick||(n.afterClick=()=>{}),n.toggle!==!1&&(n.toggle=!0),n.block&&(n.block=n.block.toLowerCase()),(!n.block||n.block==="draw")&&(n.block=""),n.className?n.className.indexOf("control-icon")===-1&&(n.className=`control-icon ${n.className}`):n.className="control-icon";let r={tool:n.block,className:n.className,title:n.title||"",jsClass:n.name,onClick:n.onClick,afterClick:n.afterClick,doToggle:n.toggle,toggleStatus:!1,disableOtherButtons:n.disableOtherButtons??!0,disableByOtherButtons:n.disableByOtherButtons??!0,cssToggle:n.toggle,position:this.options.position,actions:n.actions||[],disabled:!!n.disabled};this.options[n.name]!==!1&&(this.options[n.name]=!0);let a=this._addButton(n.name,new L.Control.PMButton(r));return this.changeControlOrder(),a},controlExists(n){return!!this.getButton(n)},getButton(n){return this.getButtons()[n]},getButtonsInBlock(n){let r={};if(n)for(let a in this.getButtons()){let c=this.getButtons()[a];(c._button.tool===n||n==="draw"&&!c._button.tool)&&(r[a]=c)}return r},changeControlOrder(n=[]){let r=this._shapeMapping(),a=[];n.forEach(g=>{r[g]?a.push(r[g]):a.push(g)});let c=this.getButtons(),f={};a.forEach(g=>{c[g]&&(f[g]=c[g])}),Object.keys(c).filter(g=>!c[g]._button.tool).forEach(g=>{a.indexOf(g)===-1&&(f[g]=c[g])}),Object.keys(c).filter(g=>c[g]._button.tool==="edit").forEach(g=>{a.indexOf(g)===-1&&(f[g]=c[g])}),Object.keys(c).filter(g=>c[g]._button.tool==="options").forEach(g=>{a.indexOf(g)===-1&&(f[g]=c[g])}),Object.keys(c).filter(g=>c[g]._button.tool==="custom").forEach(g=>{a.indexOf(g)===-1&&(f[g]=c[g])}),Object.keys(c).forEach(g=>{a.indexOf(g)===-1&&(f[g]=c[g])}),this.map.pm.Toolbar.buttons=f,this._showHideButtons()},getControlOrder(){let n=this.getButtons(),r=[];for(let a in n)r.push(a);return r},changeActionsOfControl(n,r){let a=this._btnNameMapping(n);if(!a)throw new TypeError("No name passed");if(!r)throw new TypeError("No actions passed");if(!this.buttons[a])throw new TypeError("Button with this name not exists");this.buttons[a]._button.actions=r,this.changeControlOrder()},setButtonDisabled(n,r){let a=this._btnNameMapping(n);r?this.buttons[a].disable():this.buttons[a].enable()},_shapeMapping(){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(n){let r=this._shapeMapping();return r[n]?r[n]:n}}),Ba=Pa,ps=m(to()),mu={_initSnappableMarkers(){this.options.snapDistance=this.options.snapDistance||30,this.options.snapSegment=this.options.snapSegment===void 0?!0:this.options.snapSegment,this._assignEvents(this._markers),this._layer.off("pm:dragstart",this._unsnap,this),this._layer.on("pm:dragstart",this._unsnap,this)},_disableSnapping(){this._layer.off("pm:dragstart",this._unsnap,this)},_assignEvents(n){n.forEach(r=>{if(Array.isArray(r)){this._assignEvents(r);return}r.off("drag",this._handleSnapping,this),r.on("drag",this._handleSnapping,this),r.off("dragend",this._cleanupSnapping,this),r.on("dragend",this._cleanupSnapping,this)})},_cleanupSnapping(n){if(n){let r=n.target;r._snapped=!1}delete this._snapList,this.throttledList&&(this._map.off("layeradd",this.throttledList,this),this.throttledList=void 0),this._map.off("layerremove",this._handleSnapLayerRemoval,this),this.debugIndicatorLines&&this.debugIndicatorLines.forEach(r=>{r.remove()})},_handleThrottleSnapping(){this.throttledList&&this._createSnapList()},_handleSnapping(n){var w,M,P;let r=n.target;if(r._snapped=!1,this.throttledList||(this.throttledList=L.Util.throttle(this._handleThrottleSnapping,100,this)),((w=n==null?void 0:n.originalEvent)==null?void 0:w.altKey)||((P=(M=this._map)==null?void 0:M.pm)==null?void 0:P.Keyboard.isAltKeyPressed())||(this._snapList===void 0&&(this._createSnapList(),this._map.off("layeradd",this.throttledList,this),this._map.on("layeradd",this.throttledList,this)),this._snapList.length<=0))return!1;let a=this._calcClosestLayer(r.getLatLng(),this._snapList);if(Object.keys(a).length===0)return!1;let c=a.layer instanceof L.Marker||a.layer instanceof L.CircleMarker||!this.options.snapSegment,f;c?f=a.latlng:f=this._checkPrioritiySnapping(a);let g=this.options.snapDistance,v={marker:r,shape:this._shape,snapLatLng:f,segment:a.segment,layer:this._layer,workingLayer:this._layer,layerInteractedWith:a.layer,distance:a.distance};if(this._fireSnapDrag(v.marker,v),this._fireSnapDrag(this._layer,v),a.distance{this._snapLatLng=f,this._fireSnap(r,v),this._fireSnap(this._layer,v)},I=this._snapLatLng||{},it=f||{};(I.lat!==it.lat||I.lng!==it.lng)&&V()}else this._snapLatLng&&(this._unsnap(v),r._snapped=!1,r._snapInfo=void 0,this._fireUnsnap(v.marker,v),this._fireUnsnap(this._layer,v));return!0},_createSnapList(){let n=[],r=[],a=this._map;a.off("layerremove",this._handleSnapLayerRemoval,this),a.on("layerremove",this._handleSnapLayerRemoval,this),a.eachLayer(c=>{if((c instanceof L.Polyline||c instanceof L.Marker||c instanceof L.CircleMarker||c instanceof L.ImageOverlay)&&c.options.snapIgnore!==!0){if(c.options.snapIgnore===void 0&&(!L.PM.optIn&&c.options.pmIgnore===!0||L.PM.optIn&&c.options.pmIgnore!==!1))return;(c instanceof L.Circle||c instanceof L.CircleMarker)&&c.pm&&c.pm._hiddenPolyCircle?n.push(c.pm._hiddenPolyCircle):c instanceof L.ImageOverlay&&(c=L.rectangle(c.getBounds())),n.push(c);let f=L.polyline([],{color:"red",pmIgnore:!0});f._pmTempLayer=!0,r.push(f),(c instanceof L.Circle||c instanceof L.CircleMarker)&&r.push(f)}}),n=n.filter(c=>this._layer!==c),n=n.filter(c=>c._latlng||c._latlngs&&On(c._latlngs)),n=n.filter(c=>!c._pmTempLayer),this._otherSnapLayers?(this._otherSnapLayers.forEach(()=>{let c=L.polyline([],{color:"red",pmIgnore:!0});c._pmTempLayer=!0,r.push(c)}),this._snapList=n.concat(this._otherSnapLayers)):this._snapList=n,this.debugIndicatorLines=r},_handleSnapLayerRemoval({layer:n}){if(!n._leaflet_id)return;let r=this._snapList.findIndex(a=>a._leaflet_id===n._leaflet_id);r>-1&&this._snapList.splice(r,1)},_calcClosestLayer(n,r){return this._calcClosestLayers(n,r,1)[0]},_calcClosestLayers(n,r,a=1){let c=[],f={};r.forEach((v,w)=>{if(v._parentCopy&&v._parentCopy===this._layer)return;let M=this._calcLayerDistances(n,v);if(M.distance=Math.floor(M.distance),this.debugIndicatorLines){if(!this.debugIndicatorLines[w]){let P=L.polyline([],{color:"red",pmIgnore:!0});P._pmTempLayer=!0,this.debugIndicatorLines[w]=P}this.debugIndicatorLines[w].setLatLngs([n,M.latlng])}a===1&&(f.distance===void 0||M.distance-5<=f.distance)?(M.distance+5v.distance-w.distance)),a===-1&&(a=c.length);let g=this._getClosestLayerByPriority(c,a);return L.Util.isArray(g)?g:[g]},_calcLayerDistances(n,r){let a=this._map,c=r instanceof L.Marker||r instanceof L.CircleMarker,f=r instanceof L.Polygon,g=n;if(c){let v=r.getLatLng();return{latlng:{...v},distance:this._getDistance(a,v,g)}}return this._calcLatLngDistances(g,r.getLatLngs(),a,f)},_calcLatLngDistances(n,r,a,c=!1){let f,g,v,w=M=>{M.forEach((P,V)=>{if(Array.isArray(P)){w(P);return}if(this.options.snapSegment){let I=P,it;c?it=V+1===M.length?0:V+1:it=V+1===M.length?void 0:V+1;let lt=M[it];if(lt){let Mt=this._getDistanceToSegment(a,n,I,lt);(g===void 0||Mtv._leaflet_id-w._leaflet_id);let a=["Marker","CircleMarker","Circle","Line","Polygon","Rectangle"],c=this._map.pm.globalOptions.snappingOrder||[],f=0,g={};return c.concat(a).forEach(v=>{g[v]||(f+=1,g[v]=f)}),n.sort(fu("instanceofShape",g)),r===1?n[0]||{}:n.slice(0,r)},_checkPrioritiySnapping(n){let r=this._map,a=n.segment[0],c=n.segment[1],f=n.latlng,g=this._getDistance(r,a,f),v=this._getDistance(r,c,f),w=g{this[a]=new L.PM.Draw[a](this._map)}),this.Marker.setOptions({continueDrawing:!0}),this.CircleMarker.setOptions({continueDrawing:!0})},setPathOptions(n,r=!1){r?this.options.pathOptions=(0,ps.default)(this.options.pathOptions,n):this.options.pathOptions=n},getShapes(){return this.shapes},getShape(){return this._shape},enable(n,r){if(!n)throw new Error(`Error: Please pass a shape as a parameter. Possible shapes are: ${this.getShapes().join(",")}`);this.disable(),this[n].enable(r)},disable(){this.shapes.forEach(n=>{this[n].disable()})},addControls(){this.shapes.forEach(n=>{this[n].addButton()})},getActiveShape(){let n;return this.shapes.forEach(r=>{this[r]._enabled&&(n=r)}),n},_setGlobalDrawMode(){this._shape==="Cut"?this._fireGlobalCutModeToggled():this._fireGlobalDrawModeToggled();let n=[];this._map.eachLayer(r=>{(r instanceof L.Polyline||r instanceof L.Marker||r instanceof L.Circle||r instanceof L.CircleMarker||r instanceof L.ImageOverlay)&&(r._pmTempLayer||n.push(r))}),this._enabled?n.forEach(r=>{L.PM.Utils.disablePopup(r)}):n.forEach(r=>{L.PM.Utils.enablePopup(r)})},createNewDrawInstance(n,r){let a=this._getShapeFromBtnName(r);if(this[n])throw new TypeError("Draw Type already exists");if(!L.PM.Draw[a])throw new TypeError(`There is no class L.PM.Draw.${a}`);return this[n]=new L.PM.Draw[a](this._map),this[n].toolbarButtonName=n,this[n]._shape=n,this.shapes.push(n),this[r]&&this[n].setOptions(this[r].options),this[n].setOptions(this[n].options),this[n]},_getShapeFromBtnName(n){let r={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 r[n]?r[n]:this[n]?this[n]._shape:n},_finishLayer(n){n.pm&&(n.pm.setOptions(this.options),n.pm._shape=this._shape,n.pm._map=this._map),this._addDrawnLayerProp(n)},_addDrawnLayerProp(n){n._drawnByGeoman=!0},_setPane(n,r){r==="layerPane"?n.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.layerPane||"overlayPane":r==="vertexPane"?n.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.vertexPane||"markerPane":r==="markerPane"&&(n.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.markerPane||"markerPane")},_isFirstLayer(){return(this._map||this._layer._map).pm.getGeomanLayers().length===0}}),fn=Sa;fn.Marker=fn.extend({initialize(n){this._map=n,this._shape="Marker",this.toolbarButtonName="drawMarker"},enable(n){L.Util.setOptions(this,n),this._enabled=!0,this._map.getContainer().classList.add("geoman-draw-cursor"),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(Pe("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(r=>{this.isRelevantMarker(r)&&r.pm.enable()}),this._fireDrawStart(),this._setGlobalDrawMode()},disable(){this._enabled&&(this._enabled=!1,this._map.getContainer().classList.remove("geoman-draw-cursor"),this._map.off("click",this._createMarker,this),this._hintMarker.remove(),this._map.off("mousemove",this._syncHintMarker,this),this._map.eachLayer(n=>{this.isRelevantMarker(n)&&n.pm.disable()}),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping(),this._fireDrawEnd(),this._setGlobalDrawMode())},enabled(){return this._enabled},toggle(n){this.enabled()?this.disable():this.enable(n)},isRelevantMarker(n){return n instanceof L.Marker&&n.pm&&!n._pmTempLayer&&!n.pm._initTextMarker},_syncHintMarker(n){if(this._hintMarker.setLatLng(n.latlng),this.options.snappable){let r=n;r.target=this._hintMarker,this._handleSnapping(r)}this._fireChange(this._hintMarker.getLatLng(),"Draw")},_createMarker(n){if(!n.latlng||this.options.requireSnapToFinish&&!this._hintMarker._snapped&&!this._isFirstLayer())return;this._hintMarker._snapped||this._hintMarker.setLatLng(n.latlng);let r=this._hintMarker.getLatLng(),a=new L.Marker(r,this.options.markerStyle);this._setPane(a,"markerPane"),this._finishLayer(a),a.pm||(a.options.draggable=!1),a.addTo(this._map.pm._getContainingLayer()),a.pm&&this.options.markerEditable?a.pm.enable():a.dragging&&a.dragging.disable(),this._fireCreate(a),this._cleanupSnapping(),this.options.continueDrawing||this.disable()},setStyle(){var n,r;(n=this.options.markerStyle)!=null&&n.icon&&((r=this._hintMarker)==null||r.setIcon(this.options.markerStyle.icon))}});var En=63710088e-1,ao={centimeters:En*100,centimetres:En*100,degrees:En/111325,feet:En*3.28084,inches:En*39.37,kilometers:En/1e3,kilometres:En/1e3,meters:En,metres:En,miles:En/1609.344,millimeters:En*1e3,millimetres:En*1e3,nauticalmiles:En/1852,radians:1,yards:En*1.0936};function tr(n,r,a){a===void 0&&(a={});var c={type:"Feature"};return(a.id===0||a.id)&&(c.id=a.id),a.bbox&&(c.bbox=a.bbox),c.properties=r||{},c.geometry=n,c}function zi(n,r,a){if(a===void 0&&(a={}),!n)throw new Error("coordinates is required");if(!Array.isArray(n))throw new Error("coordinates must be an Array");if(n.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!_s(n[0])||!_s(n[1]))throw new Error("coordinates must contain numbers");var c={type:"Point",coordinates:n};return tr(c,r,a)}function er(n,r,a){if(a===void 0&&(a={}),n.length<2)throw new Error("coordinates must be an array of two or more positions");var c={type:"LineString",coordinates:n};return tr(c,r,a)}function Jn(n,r){r===void 0&&(r={});var a={type:"FeatureCollection"};return r.id&&(a.id=r.id),r.bbox&&(a.bbox=r.bbox),a.features=n,a}function Vi(n,r){r===void 0&&(r="kilometers");var a=ao[r];if(!a)throw new Error(r+" units is invalid");return n*a}function gu(n,r){r===void 0&&(r="kilometers");var a=ao[r];if(!a)throw new Error(r+" units is invalid");return n/a}function $i(n){var r=n%(2*Math.PI);return r*180/Math.PI}function Ye(n){var r=n%360;return r*Math.PI/180}function _s(n){return!isNaN(n)&&n!==null&&!Array.isArray(n)}function Ar(n){var r,a,c={type:"FeatureCollection",features:[]};if(n.type==="Feature"?a=n.geometry:a=n,a.type==="LineString")r=[a.coordinates];else if(a.type==="MultiLineString")r=a.coordinates;else if(a.type==="MultiPolygon")r=[].concat.apply([],a.coordinates);else if(a.type==="Polygon")r=a.coordinates;else throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");return r.forEach(function(f){r.forEach(function(g){for(var v=0;v=0&&P<=1&&(lt.onLine1=!0),V>=0&&V<=1&&(lt.onLine2=!0),lt.onLine1&<.onLine2?[lt.x,lt.y]:!1)}fn.Line=fn.extend({initialize(n){this._map=n,this._shape="Line",this.toolbarButtonName="drawPolyline",this._doesSelfIntersect=!1},enable(n){L.Util.setOptions(this,n),this._enabled=!0,this._markers=[],this._layerGroup=new L.FeatureGroup,this._layerGroup._pmTempLayer=!0,this._layerGroup.addTo(this._map),this._layer=L.polyline([],{...this.options.templineStyle,pmIgnore:!1}),this._setPane(this._layer,"layerPane"),this._layer._pmTempLayer=!0,this._layerGroup.addLayer(this._layer),this._hintline=L.polyline([],this.options.hintlineStyle),this._setPane(this._hintline,"layerPane"),this._hintline._pmTempLayer=!0,this._layerGroup.addLayer(this._hintline),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._layerGroup.addLayer(this._hintMarker),this.options.cursorMarker&&L.DomUtil.addClass(this._hintMarker._icon,"visible"),this.options.tooltips&&this._hintMarker.bindTooltip(Pe("tooltips.firstVertex"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this._map.getContainer().classList.add("geoman-draw-cursor"),this._map.on("click",this._createVertex,this),this.options.finishOn&&this.options.finishOn!=="snap"&&this._map.on(this.options.finishOn,this._finishShape,this),this.options.finishOn==="dblclick"&&(this.tempMapDoubleClickZoomState=this._map.doubleClickZoom._enabled,this.tempMapDoubleClickZoomState&&this._map.doubleClickZoom.disable()),this._map.on("mousemove",this._syncHintMarker,this),this._hintMarker.on("move",this._syncHintLine,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._otherSnapLayers=[],this.isRed=!1,this._fireDrawStart(),this._setGlobalDrawMode()},disable(){this._enabled&&(this._enabled=!1,this._map.getContainer().classList.remove("geoman-draw-cursor"),this._map.off("click",this._createVertex,this),this._map.off("mousemove",this._syncHintMarker,this),this.options.finishOn&&this.options.finishOn!=="snap"&&this._map.off(this.options.finishOn,this._finishShape,this),this.tempMapDoubleClickZoomState&&this._map.doubleClickZoom.enable(),this._map.removeLayer(this._layerGroup),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping(),this._fireDrawEnd(),this._setGlobalDrawMode())},enabled(){return this._enabled},toggle(n){this.enabled()?this.disable():this.enable(n)},_syncHintLine(){let n=this._layer.getLatLngs();if(n.length>0){let r=n[n.length-1];this._hintline.setLatLngs([r,this._hintMarker.getLatLng()])}},_syncHintMarker(n){if(this._hintMarker.setLatLng(n.latlng),this.options.snappable){let a=n;a.target=this._hintMarker,this._handleSnapping(a)}this.options.allowSelfIntersection||this._handleSelfIntersection(!0,this._hintMarker.getLatLng());let r=this._layer._defaultShape().slice();r.push(this._hintMarker.getLatLng()),this._change(r)},hasSelfIntersection(){return Ar(this._layer.toGeoJSON(15)).features.length>0},_handleSelfIntersection(n,r){let a=L.polyline(this._layer.getLatLngs());n&&(r||(r=this._hintMarker.getLatLng()),a.addLatLng(r));let c=Ar(a.toGeoJSON(15));this._doesSelfIntersect=c.features.length>0,this._doesSelfIntersect?this.isRed||(this.isRed=!0,this._hintline.setStyle({color:"#f00000ff"}),this._fireIntersect(c,this._map,"Draw")):this._hintline.isEmpty()||(this.isRed=!1,this._hintline.setStyle(this.options.hintlineStyle))},_createVertex(n){if(!this.options.allowSelfIntersection&&(this._handleSelfIntersection(!0,n.latlng),this._doesSelfIntersect))return;this._hintMarker._snapped||this._hintMarker.setLatLng(n.latlng);let r=this._hintMarker.getLatLng(),a=this._layer.getLatLngs(),c=a[a.length-1];if(r.equals(a[0])||a.length>0&&r.equals(c)){this._finishShape();return}this._layer._latlngInfo=this._layer._latlngInfo||[],this._layer._latlngInfo.push({latlng:r,snapInfo:this._hintMarker._snapInfo}),this._layer.addLatLng(r);let f=this._createMarker(r);this._setTooltipText(),this._setHintLineAfterNewVertex(r),this._fireVertexAdded(f,void 0,r,"Draw"),this._change(this._layer.getLatLngs()),this.options.finishOn==="snap"&&this._hintMarker._snapped&&this._finishShape(n)},_setHintLineAfterNewVertex(n){this._hintline.setLatLngs([n,n])},_removeLastVertex(){let n=this._markers;if(n.length<=1){this.disable();return}let r=this._layer.getLatLngs(),a=n[n.length-1],{indexPath:c}=L.PM.Utils.findDeepMarkerIndex(n,a);n.pop(),this._layerGroup.removeLayer(a);let f=n[n.length-1],g=r.indexOf(f.getLatLng());r=r.slice(0,g+1),this._layer.setLatLngs(r),this._layer._latlngInfo.pop(),this._syncHintLine(),this._setTooltipText(),this._fireVertexRemoved(a,c,"Draw"),this._change(this._layer.getLatLngs())},_finishShape(){if(!this.options.allowSelfIntersection&&(this._handleSelfIntersection(!1),this._doesSelfIntersect)||this.options.requireSnapToFinish&&!this._hintMarker._snapped&&!this._isFirstLayer())return;let n=this._layer.getLatLngs();if(n.length<=1)return;let r=L.polyline(n,this.options.pathOptions);this._setPane(r,"layerPane"),this._finishLayer(r),r.addTo(this._map.pm._getContainingLayer()),this._fireCreate(r),this.options.snappable&&this._cleanupSnapping(),this.disable(),this.options.continueDrawing&&this.enable()},_createMarker(n){let r=new L.Marker(n,{draggable:!1,icon:L.divIcon({className:"marker-icon"})});return this._setPane(r,"vertexPane"),r._pmTempLayer=!0,this._layerGroup.addLayer(r),this._markers.push(r),r.on("click",this._finishShape,this),r},_setTooltipText(){let{length:n}=this._layer.getLatLngs().flat(),r="";n<=1?r=Pe("tooltips.continueLine"):r=Pe("tooltips.finishLine"),this._hintMarker.setTooltipContent(r)},_change(n){this._fireChange(n,"Draw")},setStyle(){var n,r;(n=this._layer)==null||n.setStyle(this.options.templineStyle),(r=this._hintline)==null||r.setStyle(this.options.hintlineStyle)}}),fn.Polygon=fn.Line.extend({initialize(n){this._map=n,this._shape="Polygon",this.toolbarButtonName="drawPolygon"},enable(n){L.PM.Draw.Line.prototype.enable.call(this,n),this._layer.pm._shape="Polygon"},_createMarker(n){let r=new L.Marker(n,{draggable:!1,icon:L.divIcon({className:"marker-icon"})});return this._setPane(r,"vertexPane"),r._pmTempLayer=!0,this._layerGroup.addLayer(r),this._markers.push(r),this._layer.getLatLngs().flat().length===1?(r.on("click",this._finishShape,this),this._tempSnapLayerIndex=this._otherSnapLayers.push(r)-1,this.options.snappable&&this._cleanupSnapping()):r.on("click",()=>1),r},_setTooltipText(){let{length:n}=this._layer.getLatLngs().flat(),r="";n<=2?r=Pe("tooltips.continueLine"):r=Pe("tooltips.finishPoly"),this._hintMarker.setTooltipContent(r)},_finishShape(){if(!this.options.allowSelfIntersection&&(this._handleSelfIntersection(!0,this._layer.getLatLngs()[0]),this._doesSelfIntersect)||this.options.requireSnapToFinish&&!this._hintMarker._snapped&&!this._isFirstLayer())return;let n=this._layer.getLatLngs();if(n.length<=2)return;let r=L.polygon(n,this.options.pathOptions);this._setPane(r,"layerPane"),this._finishLayer(r),r.addTo(this._map.pm._getContainingLayer()),this._fireCreate(r),this._cleanupSnapping(),this._otherSnapLayers.splice(this._tempSnapLayerIndex,1),delete this._tempSnapLayerIndex,this.disable(),this.options.continueDrawing&&this.enable()}}),fn.Rectangle=fn.extend({initialize(n){this._map=n,this._shape="Rectangle",this.toolbarButtonName="drawRectangle"},enable(n){if(L.Util.setOptions(this,n),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(Pe("tooltips.firstVertex"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this.options.cursorMarker){this._styleMarkers=[];for(let r=0;r<2;r+=1){let a=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"marker-icon rect-style-marker"}),draggable:!1,zIndexOffset:100});this._setPane(a,"vertexPane"),a._pmTempLayer=!0,this._layerGroup.addLayer(a),this._styleMarkers.push(a)}}this._map.getContainer().classList.add("geoman-draw-cursor"),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(){this._enabled&&(this._enabled=!1,this._map.getContainer().classList.remove("geoman-draw-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(){return this._enabled},toggle(n){this.enabled()?this.disable():this.enable(n)},_placeStartingMarkers(n){this._hintMarker._snapped||this._hintMarker.setLatLng(n.latlng);let r=this._hintMarker.getLatLng();L.DomUtil.addClass(this._startMarker._icon,"visible"),this._startMarker.setLatLng(r),this.options.cursorMarker&&this._styleMarkers&&this._styleMarkers.forEach(a=>{L.DomUtil.addClass(a._icon,"visible"),a.setLatLng(r)}),this._map.off("click",this._placeStartingMarkers,this),this._map.on("click",this._finishShape,this),this._hintMarker.setTooltipContent(Pe("tooltips.finishRect")),this._setRectangleOrigin()},_setRectangleOrigin(){let n=this._startMarker.getLatLng();n&&(this._layerGroup.addLayer(this._layer),this._layer.setLatLngs([n,n]),this._hintMarker.on("move",this._syncRectangleSize,this))},_syncHintMarker(n){if(this._hintMarker.setLatLng(n.latlng),this.options.snappable){let a=n;a.target=this._hintMarker,this._handleSnapping(a)}let r=this._layerGroup&&this._layerGroup.hasLayer(this._layer)?this._layer.getLatLngs():[this._hintMarker.getLatLng()];this._fireChange(r,"Draw")},_syncRectangleSize(){let n=so(this._startMarker.getLatLng(),this._map),r=so(this._hintMarker.getLatLng(),this._map),a=L.PM.Utils._getRotatedRectangle(n,r,this.options.rectangleAngle||0,this._map);if(this._layer.setLatLngs(a),this.options.cursorMarker&&this._styleMarkers){let c=[];a.forEach(f=>{!f.equals(n,1e-8)&&!f.equals(r,1e-8)&&c.push(f)}),c.forEach((f,g)=>{try{this._styleMarkers[g].setLatLng(f)}catch{}})}},_findCorners(){let n=this._layer.getLatLngs()[0];return L.PM.Utils._getRotatedRectangle(n[0],n[2],this.options.rectangleAngle||0,this._map)},_finishShape(n){this._hintMarker._snapped||this._hintMarker.setLatLng(n.latlng);let r=this._hintMarker.getLatLng(),a=this._startMarker.getLatLng();if(this.options.requireSnapToFinish&&!this._hintMarker._snapped&&!this._isFirstLayer()||a.equals(r))return;let c=L.rectangle([a,r],this.options.pathOptions);if(this.options.rectangleAngle){let f=L.PM.Utils._getRotatedRectangle(a,r,this.options.rectangleAngle||0,this._map);c.setLatLngs(f),c.pm&&c.pm._setAngle(this.options.rectangleAngle||0)}this._setPane(c,"layerPane"),this._finishLayer(c),c.addTo(this._map.pm._getContainingLayer()),this._fireCreate(c),this.disable(),this.options.continueDrawing&&this.enable()},setStyle(){var n;(n=this._layer)==null||n.setStyle(this.options.pathOptions)}}),fn.CircleMarker=fn.extend({initialize(n){this._map=n,this._shape="CircleMarker",this.toolbarButtonName="drawCircleMarker",this._layerIsDragging=!1,this._BaseCircleClass=L.CircleMarker,this._minRadiusOption="minRadiusCircleMarker",this._maxRadiusOption="maxRadiusCircleMarker",this._editableOption="resizeableCircleMarker",this._defaultRadius=10},enable(n){if(L.Util.setOptions(this,n),this.options.editable&&(this.options.resizeableCircleMarker=this.options.editable,delete this.options.editable),this._enabled=!0,this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._map.getContainer().classList.add("geoman-draw-cursor"),this.options[this._editableOption]){let r={};L.extend(r,this.options.templineStyle),r.radius=0,this._layerGroup=new L.FeatureGroup,this._layerGroup._pmTempLayer=!0,this._layerGroup.addTo(this._map),this._layer=new this._BaseCircleClass(this._map.getCenter(),r),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(Pe("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)}else this._map.on("click",this._createMarker,this),this._hintMarker=new this._BaseCircleClass(this._map.getCenter(),{radius:this._defaultRadius,...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(Pe("tooltips.placeCircleMarker"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip();this._map.on("mousemove",this._syncHintMarker,this),this._extendingEnable(),this._otherSnapLayers=[],this._fireDrawStart(),this._setGlobalDrawMode()},_extendingEnable(){!this.options[this._editableOption]&&this.options.markerEditable&&this._map.eachLayer(n=>{this.isRelevantMarker(n)&&n.pm.enable()}),this._layer.bringToBack()},disable(){this._enabled&&(this._enabled=!1,this._map.getContainer().classList.remove("geoman-draw-cursor"),this.options[this._editableOption]?(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._extendingDisable(),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())},_extendingDisable(){this._map.eachLayer(n=>{this.isRelevantMarker(n)&&n.pm.disable()})},enabled(){return this._enabled},toggle(n){this.enabled()?this.disable():this.enable(n)},_placeCenterMarker(n){this._layerGroup.addLayer(this._layer),this._layerGroup.addLayer(this._centerMarker),this._hintMarker._snapped||this._hintMarker.setLatLng(n.latlng);let r=this._hintMarker.getLatLng();this._layerGroup.addLayer(this._layer),this._centerMarker.setLatLng(r),this._map.off("click",this._placeCenterMarker,this),this._map.on("click",this._finishShape,this),this._placeCircleCenter()},_placeCircleCenter(){let n=this._centerMarker.getLatLng();n&&(this._layer.setLatLng(n),this._hintMarker.on("move",this._syncHintLine,this),this._hintMarker.on("move",this._syncCircleRadius,this),this._hintMarker.setTooltipContent(Pe("tooltips.finishCircle")),this._fireCenterPlaced(),this._fireChange(this._layer.getLatLng(),"Draw"))},_syncHintLine(){let n=this._centerMarker.getLatLng(),r=this._getNewDestinationOfHintMarker();this._hintline.setLatLngs([n,r])},_syncCircleRadius(){let n=this._centerMarker.getLatLng(),r=this._hintMarker.getLatLng(),a=this._distanceCalculation(n,r);this.options[this._minRadiusOption]&&athis.options[this._maxRadiusOption]?this._layer.setRadius(this.options[this._maxRadiusOption]):this._layer.setRadius(a)},_syncHintMarker(n){if(this._hintMarker.setLatLng(n.latlng),this._hintMarker.setLatLng(this._getNewDestinationOfHintMarker()),this.options.snappable){let a=n;a.target=this._hintMarker,this._handleSnapping(a)}this._handleHintMarkerSnapping();let r=this._layerGroup&&this._layerGroup.hasLayer(this._centerMarker)?this._centerMarker.getLatLng():this._hintMarker.getLatLng();this._fireChange(r,"Draw")},isRelevantMarker(n){return n instanceof L.CircleMarker&&!(n instanceof L.Circle)&&n.pm&&!n._pmTempLayer},_createMarker(n){if(this.options.requireSnapToFinish&&!this._hintMarker._snapped&&!this._isFirstLayer()||!n.latlng||this._layerIsDragging)return;this._hintMarker._snapped||this._hintMarker.setLatLng(n.latlng);let r=this._hintMarker.getLatLng(),a=new this._BaseCircleClass(r,{radius:this._defaultRadius,...this.options.pathOptions});this._setPane(a,"layerPane"),this._finishLayer(a),a.addTo(this._map.pm._getContainingLayer()),this._extendingCreateMarker(a),this._fireCreate(a),this._cleanupSnapping(),this.options.continueDrawing||this.disable()},_extendingCreateMarker(n){n.pm&&this.options.markerEditable&&n.pm.enable()},_finishShape(n){if(this.options.requireSnapToFinish&&!this._hintMarker._snapped&&!this._isFirstLayer())return;this._hintMarker._snapped||this._hintMarker.setLatLng(n.latlng);let r=this._centerMarker.getLatLng(),a=this._defaultRadius;if(this.options[this._editableOption]){let g=this._hintMarker.getLatLng();a=this._distanceCalculation(r,g),this.options[this._minRadiusOption]&&athis.options[this._maxRadiusOption]&&(a=this.options[this._maxRadiusOption])}let c={...this.options.pathOptions,radius:a},f=new this._BaseCircleClass(r,c);this._setPane(f,"layerPane"),this._finishLayer(f),f.addTo(this._map.pm._getContainingLayer()),f.pm&&f.pm._updateHiddenPolyCircle(),this._fireCreate(f),this.disable(),this.options.continueDrawing&&this.enable()},_getNewDestinationOfHintMarker(){let n=this._hintMarker.getLatLng();if(this.options[this._editableOption]){if(!this._layerGroup.hasLayer(this._centerMarker))return n;let r=this._centerMarker.getLatLng(),a=this._distanceCalculation(r,n);this.options[this._minRadiusOption]&&athis.options[this._maxRadiusOption]&&(n=Tr(this._map,r,n,this._getMaxDistanceInMeter()))}return n},_getMinDistanceInMeter(){return L.PM.Utils.pxRadiusToMeterRadius(this.options[this._minRadiusOption],this._map,this._centerMarker.getLatLng())},_getMaxDistanceInMeter(){return L.PM.Utils.pxRadiusToMeterRadius(this.options[this._maxRadiusOption],this._map,this._centerMarker.getLatLng())},_handleHintMarkerSnapping(){if(this.options[this._editableOption]){if(this._hintMarker._snapped){let n=this._centerMarker.getLatLng(),r=this._hintMarker.getLatLng(),a=this._distanceCalculation(n,r);this._layerGroup.hasLayer(this._centerMarker)&&(this.options[this._minRadiusOption]&&athis.options[this._maxRadiusOption]&&this._hintMarker.setLatLng(this._hintMarker._orgLatLng))}this._hintMarker.setLatLng(this._getNewDestinationOfHintMarker())}},setStyle(){var r,a;let n={};L.extend(n,this.options.templineStyle),this.options[this._editableOption]&&(n.radius=0),(r=this._layer)==null||r.setStyle(n),(a=this._hintline)==null||a.setStyle(this.options.hintlineStyle)},_distanceCalculation(n,r){return this._map.project(n).distanceTo(this._map.project(r))}}),fn.Circle=fn.CircleMarker.extend({initialize(n){this._map=n,this._shape="Circle",this.toolbarButtonName="drawCircle",this._BaseCircleClass=L.Circle,this._minRadiusOption="minRadiusCircle",this._maxRadiusOption="maxRadiusCircle",this._editableOption="resizableCircle",this._defaultRadius=100},_extendingEnable(){},_extendingDisable(){},_extendingCreateMarker(){},isRelevantMarker(){},_getMinDistanceInMeter(){return this.options[this._minRadiusOption]},_getMaxDistanceInMeter(){return this.options[this._maxRadiusOption]},_distanceCalculation(n,r){return this._map.distance(n,r)}});function zn(n){if(!n)throw new Error("coord is required");if(!Array.isArray(n)){if(n.type==="Feature"&&n.geometry!==null&&n.geometry.type==="Point")return n.geometry.coordinates;if(n.type==="Point")return n.coordinates}if(Array.isArray(n)&&n.length>=2&&!Array.isArray(n[0])&&!Array.isArray(n[1]))return n;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Vn(n){if(Array.isArray(n))return n;if(n.type==="Feature"){if(n.geometry!==null)return n.geometry.coordinates}else if(n.coordinates)return n.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function lo(n){return n.type==="Feature"?n.geometry:n}function Ta(n,r){return n.type==="FeatureCollection"?"FeatureCollection":n.type==="GeometryCollection"?"GeometryCollection":n.type==="Feature"&&n.geometry!==null?n.geometry.type:n.type}function uo(n,r,a){if(n!==null)for(var c,f,g,v,w,M,P,V=0,I=0,it,lt=n.type,Mt=lt==="FeatureCollection",zt=lt==="Feature",qt=Mt?n.features.length:1,Be=0;Bef?a:f,P=c>g?c:g;return[v,w,M,P]}var Gi=pi,Aa=m(Di(),1);function co(n,r){var a={},c=[];if(n.type==="LineString"&&(n=tr(n)),r.type==="LineString"&&(r=tr(r)),n.type==="Feature"&&r.type==="Feature"&&n.geometry!==null&&r.geometry!==null&&n.geometry.type==="LineString"&&r.geometry.type==="LineString"&&n.geometry.coordinates.length===2&&r.geometry.coordinates.length===2){var f=Oa(n,r);return f&&c.push(f),Jn(c)}var g=(0,Aa.default)();return g.load(Gi(r)),Or(Gi(n),function(v){Or(g.search(v),function(w){var M=Oa(v,w);if(M){var P=Vn(M).join(",");a[P]||(a[P]=!0,c.push(M))}})}),Jn(c)}function Oa(n,r){var a=Vn(n),c=Vn(r);if(a.length!==2)throw new Error(" line1 must only contain 2 coordinates");if(c.length!==2)throw new Error(" line2 must only contain 2 coordinates");var f=a[0][0],g=a[0][1],v=a[1][0],w=a[1][1],M=c[0][0],P=c[0][1],V=c[1][0],I=c[1][1],it=(I-P)*(v-f)-(V-M)*(w-g),lt=(V-M)*(g-P)-(I-P)*(f-M),Mt=(v-f)*(g-P)-(w-g)*(f-M);if(it===0)return null;var zt=lt/it,qt=Mt/it;if(zt>=0&&zt<=1&&qt>=0&&qt<=1){var Be=f+zt*(v-f),z=g+zt*(w-g);return zi([Be,z])}return null}var Pn=co,Dr=m(Di(),1);function xu(n,r,a){a===void 0&&(a={});var c=zn(n),f=zn(r),g=Ye(f[1]-c[1]),v=Ye(f[0]-c[0]),w=Ye(c[1]),M=Ye(f[1]),P=Math.pow(Math.sin(g/2),2)+Math.pow(Math.sin(v/2),2)*Math.cos(w)*Math.cos(M);return Vi(2*Math.atan2(Math.sqrt(P),Math.sqrt(1-P)),a.units)}var fi=xu;function Lu(n){var r=n[0],a=n[1],c=n[2],f=n[3],g=fi(n.slice(0,2),[c,a]),v=fi(n.slice(0,2),[r,f]);if(g>=v){var w=(a+f)/2;return[r,w-(c-r)/2,c,w+(c-r)/2]}else{var M=(r+c)/2;return[M-(f-a)/2,a,M+(f-a)/2,f]}}var _i=Lu;function gs(n){var r=[1/0,1/0,-1/0,-1/0];return uo(n,function(a){r[0]>a[0]&&(r[0]=a[0]),r[1]>a[1]&&(r[1]=a[1]),r[2] is required");if(typeof a!="number")throw new Error(" must be a number");if(typeof c!="number")throw new Error(" must be a number");(f===!1||f===void 0)&&(n=JSON.parse(JSON.stringify(n)));var g=Math.pow(10,a);return uo(n,function(v){mi(v,g,c)}),n}function mi(n,r,a){n.length>a&&n.splice(a,n.length);for(var c=0;c0&&(qt=zt.features[0],qt.properties.dist=fi(r,qt,a),qt.properties.location=f+fi(M,qt,a)),M.properties.dist1&&a.push(er(V)),Jn(a)}function xs(n,r){if(!r.features.length)throw new Error("lines must contain features");if(r.features.length===1)return r.features[0];var a,c=1/0;return Or(r,function(f){var g=po(f,n),v=g.properties.dist;vn[1]!=P>n[1]&&n[0]<(M-v)*(n[1]-w)/(P-w)+v;I&&(c=!c)}return c}function wu(n,r){return r[0]<=n[0]&&r[1]<=n[1]&&r[2]>=n[0]&&r[3]>=n[1]}function Da(n,r,a){a===void 0&&(a={});for(var c=zn(n),f=Vn(r),g=0;g"u"?null:a.epsilon))return!0}return!1}function ku(n,r,a,c,f){var g=a[0],v=a[1],w=n[0],M=n[1],P=r[0],V=r[1],I=a[0]-w,it=a[1]-M,lt=P-w,Mt=V-M,zt=I*Mt-it*lt;if(f!==null){if(Math.abs(zt)>f)return!1}else if(zt!==0)return!1;if(c){if(c==="start")return Math.abs(lt)>=Math.abs(Mt)?lt>0?w0?M=Math.abs(Mt)?lt>0?w<=g&&g0?M<=v&&v=Math.abs(Mt)?lt>0?w0?M=Math.abs(Mt)?lt>0?w<=g&&g<=P:P<=g&&g<=w:Mt>0?M<=v&&v<=V:V<=v&&v<=M;return!1}var Bn=Da;function mo(n,r){var a=lo(n),c=lo(r),f=a.type,g=c.type,v=a.coordinates,w=c.coordinates;switch(f){case"Point":switch(g){case"Point":return yo(v,w);default:throw new Error("feature2 "+g+" geometry not supported")}case"MultiPoint":switch(g){case"Point":return Mu(a,c);case"MultiPoint":return go(a,c);default:throw new Error("feature2 "+g+" geometry not supported")}case"LineString":switch(g){case"Point":return Bn(c,a,{ignoreEndVertices:!0});case"LineString":return Pu(a,c);case"MultiPoint":return Eu(a,c);default:throw new Error("feature2 "+g+" geometry not supported")}case"Polygon":switch(g){case"Point":return _o(c,a,{ignoreBoundary:!0});case"LineString":return Nr(a,c);case"Polygon":return Bu(a,c);case"MultiPoint":return Ra(a,c);default:throw new Error("feature2 "+g+" geometry not supported")}default:throw new Error("feature1 "+f+" geometry not supported")}}function Mu(n,r){var a,c=!1;for(a=0;ar[0]||n[2]r[1]||n[3]()=>n,vo=n=>{let r=n?(a,c)=>c.minus(a).abs().isLessThanOrEqualTo(n):ii(!1);return(a,c)=>r(a,c)?0:a.comparedTo(c)};function Fa(n){let r=n?(a,c,f,g,v)=>a.exponentiatedBy(2).isLessThanOrEqualTo(g.minus(c).exponentiatedBy(2).plus(v.minus(f).exponentiatedBy(2)).times(n)):ii(!1);return(a,c,f)=>{let g=a.x,v=a.y,w=f.x,M=f.y,P=v.minus(M).times(c.x.minus(w)).minus(g.minus(w).times(c.y.minus(M)));return r(P,g,v,w,M)?0:P.comparedTo(0)}}var jr=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,ws=Math.ceil,Cn=Math.floor,un="[BigNumber Error] ",ks=un+"Number primitive has more than 15 significant digits: ",$n=1e14,fe=14,bo=9007199254740991,xo=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],gi=1e7,sn=1e9;function Ms(n){var r,a,c,f=z.prototype={constructor:z,toString:null,valueOf:null},g=new z(1),v=20,w=4,M=-7,P=21,V=-1e7,I=1e7,it=!1,lt=1,Mt=0,zt={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},qt="0123456789abcdefghijklmnopqrstuvwxyz",Be=!0;function z(E,S){var O,A,D,R,K,q,W,nt,et=this;if(!(et instanceof z))return new z(E,S);if(S==null){if(E&&E._isBigNumber===!0){et.s=E.s,!E.c||E.e>I?et.c=et.e=null:E.e=10;K/=10,R++);R>I?et.c=et.e=null:(et.e=R,et.c=[E]);return}nt=String(E)}else{if(!jr.test(nt=String(E)))return c(et,nt,q);et.s=nt.charCodeAt(0)==45?(nt=nt.slice(1),-1):1}(R=nt.indexOf("."))>-1&&(nt=nt.replace(".","")),(K=nt.search(/e/i))>0?(R<0&&(R=K),R+=+nt.slice(K+1),nt=nt.substring(0,K)):R<0&&(R=nt.length)}else{if(qe(S,2,qt.length,"Base"),S==10&&Be)return et=new z(E),X(et,v+et.e+1,w);if(nt=String(E),q=typeof E=="number"){if(E*0!=0)return c(et,nt,q,S);if(et.s=1/E<0?(nt=nt.slice(1),-1):1,z.DEBUG&&nt.replace(/^0\.0*|\./,"").length>15)throw Error(ks+E)}else et.s=nt.charCodeAt(0)===45?(nt=nt.slice(1),-1):1;for(O=qt.slice(0,S),R=K=0,W=nt.length;KR){R=W;continue}}else if(!D&&(nt==nt.toUpperCase()&&(nt=nt.toLowerCase())||nt==nt.toLowerCase()&&(nt=nt.toUpperCase()))){D=!0,K=-1,R=0;continue}return c(et,String(E),q,S)}q=!1,nt=a(nt,S,10,et.s),(R=nt.indexOf("."))>-1?nt=nt.replace(".",""):R=nt.length}for(K=0;nt.charCodeAt(K)===48;K++);for(W=nt.length;nt.charCodeAt(--W)===48;);if(nt=nt.slice(K,++W)){if(W-=K,q&&z.DEBUG&&W>15&&(E>bo||E!==Cn(E)))throw Error(ks+et.s*E);if((R=R-K-1)>I)et.c=et.e=null;else if(R=-sn&&D<=sn&&D===Cn(D)){if(A[0]===0){if(D===0&&A.length===1)return!0;break t}if(S=(D+1)%fe,S<1&&(S+=fe),String(A[0]).length==S){for(S=0;S=$n||O!==Cn(O))break t;if(O!==0)return!0}}}else if(A===null&&D===null&&(R===null||R===1||R===-1))return!0;throw Error(un+"Invalid BigNumber: "+E)},z.maximum=z.max=function(){return J(arguments,-1)},z.minimum=z.min=function(){return J(arguments,1)},z.random=function(){var E=9007199254740992,S=Math.random()*E&2097151?function(){return Cn(Math.random()*E)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(O){var A,D,R,K,q,W=0,nt=[],et=new z(g);if(O==null?O=v:qe(O,0,sn),K=ws(O/fe),it)if(crypto.getRandomValues){for(A=crypto.getRandomValues(new Uint32Array(K*=2));W>>11),q>=9e15?(D=crypto.getRandomValues(new Uint32Array(2)),A[W]=D[0],A[W+1]=D[1]):(nt.push(q%1e14),W+=2);W=K/2}else if(crypto.randomBytes){for(A=crypto.randomBytes(K*=7);W=9e15?crypto.randomBytes(7).copy(A,W):(nt.push(q%1e14),W+=7);W=K/7}else throw it=!1,Error(un+"crypto unavailable");if(!it)for(;W=10;q/=10,W++);WD-1&&(q[K+1]==null&&(q[K+1]=0),q[K+1]+=q[K]/D|0,q[K]%=D)}return q.reverse()}return function(O,A,D,R,K){var q,W,nt,et,Ct,Zt,Wt,re,je=O.indexOf("."),Ge=v,Oe=w;for(je>=0&&(et=Mt,Mt=0,O=O.replace(".",""),re=new z(A),Zt=re.pow(O.length-je),Mt=et,re.c=S(d(Dn(Zt.c),Zt.e,"0"),10,D,E),re.e=re.c.length),Wt=S(O,A,D,K?(q=qt,E):(q=E,qt)),nt=et=Wt.length;Wt[--et]==0;Wt.pop());if(!Wt[0])return q.charAt(0);if(je<0?--nt:(Zt.c=Wt,Zt.e=nt,Zt.s=R,Zt=r(Zt,re,Ge,Oe,D),Wt=Zt.c,Ct=Zt.r,nt=Zt.e),W=nt+Ge+1,je=Wt[W],et=D/2,Ct=Ct||W<0||Wt[W+1]!=null,Ct=Oe<4?(je!=null||Ct)&&(Oe==0||Oe==(Zt.s<0?3:2)):je>et||je==et&&(Oe==4||Ct||Oe==6&&Wt[W-1]&1||Oe==(Zt.s<0?8:7)),W<1||!Wt[0])O=Ct?d(q.charAt(1),-Ge,q.charAt(0)):q.charAt(0);else{if(Wt.length=W,Ct)for(--D;++Wt[--W]>D;)Wt[W]=0,W||(++nt,Wt=[1].concat(Wt));for(et=Wt.length;!Wt[--et];);for(je=0,O="";je<=et;O+=q.charAt(Wt[je++]));O=d(O,nt,q.charAt(0))}return O}}(),r=function(){function E(A,D,R){var K,q,W,nt,et=0,Ct=A.length,Zt=D%gi,Wt=D/gi|0;for(A=A.slice();Ct--;)W=A[Ct]%gi,nt=A[Ct]/gi|0,K=Wt*W+nt*Zt,q=Zt*W+K%gi*gi+et,et=(q/R|0)+(K/gi|0)+Wt*nt,A[Ct]=q%R;return et&&(A=[et].concat(A)),A}function S(A,D,R,K){var q,W;if(R!=K)W=R>K?1:-1;else for(q=W=0;qD[q]?1:-1;break}return W}function O(A,D,R,K){for(var q=0;R--;)A[R]-=q,q=A[R]1;A.splice(0,1));}return function(A,D,R,K,q){var W,nt,et,Ct,Zt,Wt,re,je,Ge,Oe,He,Sn,Za,Du,Ru,Bi,Bs,oi=A.s==D.s?1:-1,Rn=A.c,on=D.c;if(!Rn||!Rn[0]||!on||!on[0])return new z(!A.s||!D.s||(Rn?on&&Rn[0]==on[0]:!on)?NaN:Rn&&Rn[0]==0||!on?oi*0:oi/0);for(je=new z(oi),Ge=je.c=[],nt=A.e-D.e,oi=R+nt+1,q||(q=$n,nt=Gn(A.e/fe)-Gn(D.e/fe),oi=oi/fe|0),et=0;on[et]==(Rn[et]||0);et++);if(on[et]>(Rn[et]||0)&&nt--,oi<0)Ge.push(1),Ct=!0;else{for(Du=Rn.length,Bi=on.length,et=0,oi+=2,Zt=Cn(q/(on[0]+1)),Zt>1&&(on=E(on,Zt,q),Rn=E(Rn,Zt,q),Bi=on.length,Du=Rn.length),Za=Bi,Oe=Rn.slice(0,Bi),He=Oe.length;He=q/2&&Ru++;do{if(Zt=0,W=S(on,Oe,Bi,He),W<0){if(Sn=Oe[0],Bi!=He&&(Sn=Sn*q+(Oe[1]||0)),Zt=Cn(Sn/Ru),Zt>1)for(Zt>=q&&(Zt=q-1),Wt=E(on,Zt,q),re=Wt.length,He=Oe.length;S(Wt,Oe,re,He)==1;)Zt--,O(Wt,Bi=10;oi/=10,et++);X(je,R+(je.e=et+nt*fe-1)+1,K,Ct)}else je.e=nt,je.r=+Ct;return je}}();function Z(E,S,O,A){var D,R,K,q,W;if(O==null?O=w:qe(O,0,8),!E.c)return E.toString();if(D=E.c[0],K=E.e,S==null)W=Dn(E.c),W=A==1||A==2&&(K<=M||K>=P)?o(W,K):d(W,K,"0");else if(E=X(new z(E),S,O),R=E.e,W=Dn(E.c),q=W.length,A==1||A==2&&(S<=R||R<=M)){for(;qq){if(--S>0)for(W+=".";S--;W+="0");}else if(S+=R-q,S>0)for(R+1==q&&(W+=".");S--;W+="0");return E.s<0&&D?"-"+W:W}function J(E,S){for(var O,A,D=1,R=new z(E[0]);D=10;D/=10,A++);return(O=A+O*fe-1)>I?E.c=E.e=null:O=10;q/=10,D++);if(R=S-D,R<0)R+=fe,K=S,W=Ct[nt=0],et=Cn(W/Zt[D-K-1]%10);else if(nt=ws((R+1)/fe),nt>=Ct.length)if(A){for(;Ct.length<=nt;Ct.push(0));W=et=0,D=1,R%=fe,K=R-fe+1}else break t;else{for(W=q=Ct[nt],D=1;q>=10;q/=10,D++);R%=fe,K=R-fe+D,et=K<0?0:Cn(W/Zt[D-K-1]%10)}if(A=A||S<0||Ct[nt+1]!=null||(K<0?W:W%Zt[D-K-1]),A=O<4?(et||A)&&(O==0||O==(E.s<0?3:2)):et>5||et==5&&(O==4||A||O==6&&(R>0?K>0?W/Zt[D-K]:0:Ct[nt-1])%10&1||O==(E.s<0?8:7)),S<1||!Ct[0])return Ct.length=0,A?(S-=E.e+1,Ct[0]=Zt[(fe-S%fe)%fe],E.e=-S||0):Ct[0]=E.e=0,E;if(R==0?(Ct.length=nt,q=1,nt--):(Ct.length=nt+1,q=Zt[fe-R],Ct[nt]=K>0?Cn(W/Zt[D-K]%Zt[K])*q:0),A)for(;;)if(nt==0){for(R=1,K=Ct[0];K>=10;K/=10,R++);for(K=Ct[0]+=q,q=1;K>=10;K/=10,q++);R!=q&&(E.e++,Ct[0]==$n&&(Ct[0]=1));break}else{if(Ct[nt]+=q,Ct[nt]!=$n)break;Ct[nt--]=0,q=1}for(R=Ct.length;Ct[--R]===0;Ct.pop());}E.e>I?E.c=E.e=null:E.e=P?o(S,O):d(S,O,"0"),E.s<0?"-"+S:S)}return f.absoluteValue=f.abs=function(){var E=new z(this);return E.s<0&&(E.s=1),E},f.comparedTo=function(E,S){return Ei(this,new z(E,S))},f.decimalPlaces=f.dp=function(E,S){var O,A,D,R=this;if(E!=null)return qe(E,0,sn),S==null?S=w:qe(S,0,8),X(new z(R),E+R.e+1,S);if(!(O=R.c))return null;if(A=((D=O.length-1)-Gn(this.e/fe))*fe,D=O[D])for(;D%10==0;D/=10,A--);return A<0&&(A=0),A},f.dividedBy=f.div=function(E,S){return r(this,new z(E,S),v,w)},f.dividedToIntegerBy=f.idiv=function(E,S){return r(this,new z(E,S),0,1)},f.exponentiatedBy=f.pow=function(E,S){var O,A,D,R,K,q,W,nt,et,Ct=this;if(E=new z(E),E.c&&!E.isInteger())throw Error(un+"Exponent not an integer: "+st(E));if(S!=null&&(S=new z(S)),q=E.e>14,!Ct.c||!Ct.c[0]||Ct.c[0]==1&&!Ct.e&&Ct.c.length==1||!E.c||!E.c[0])return et=new z(Math.pow(+st(Ct),q?E.s*(2-e(E)):+st(E))),S?et.mod(S):et;if(W=E.s<0,S){if(S.c?!S.c[0]:!S.s)return new z(NaN);A=!W&&Ct.isInteger()&&S.isInteger(),A&&(Ct=Ct.mod(S))}else{if(E.e>9&&(Ct.e>0||Ct.e<-1||(Ct.e==0?Ct.c[0]>1||q&&Ct.c[1]>=24e7:Ct.c[0]<8e13||q&&Ct.c[0]<=9999975e7)))return R=Ct.s<0&&e(E)?-0:0,Ct.e>-1&&(R=1/R),new z(W?1/R:R);Mt&&(R=ws(Mt/fe+2))}for(q?(O=new z(.5),W&&(E.s=1),nt=e(E)):(D=Math.abs(+st(E)),nt=D%2),et=new z(g);;){if(nt){if(et=et.times(Ct),!et.c)break;R?et.c.length>R&&(et.c.length=R):A&&(et=et.mod(S))}if(D){if(D=Cn(D/2),D===0)break;nt=D%2}else if(E=E.times(O),X(E,E.e+1,1),E.e>14)nt=e(E);else{if(D=+st(E),D===0)break;nt=D%2}Ct=Ct.times(Ct),R?Ct.c&&Ct.c.length>R&&(Ct.c.length=R):A&&(Ct=Ct.mod(S))}return A?et:(W&&(et=g.div(et)),S?et.mod(S):R?X(et,Mt,w,K):et)},f.integerValue=function(E){var S=new z(this);return E==null?E=w:qe(E,0,8),X(S,S.e+1,E)},f.isEqualTo=f.eq=function(E,S){return Ei(this,new z(E,S))===0},f.isFinite=function(){return!!this.c},f.isGreaterThan=f.gt=function(E,S){return Ei(this,new z(E,S))>0},f.isGreaterThanOrEqualTo=f.gte=function(E,S){return(S=Ei(this,new z(E,S)))===1||S===0},f.isInteger=function(){return!!this.c&&Gn(this.e/fe)>this.c.length-2},f.isLessThan=f.lt=function(E,S){return Ei(this,new z(E,S))<0},f.isLessThanOrEqualTo=f.lte=function(E,S){return(S=Ei(this,new z(E,S)))===-1||S===0},f.isNaN=function(){return!this.s},f.isNegative=function(){return this.s<0},f.isPositive=function(){return this.s>0},f.isZero=function(){return!!this.c&&this.c[0]==0},f.minus=function(E,S){var O,A,D,R,K=this,q=K.s;if(E=new z(E,S),S=E.s,!q||!S)return new z(NaN);if(q!=S)return E.s=-S,K.plus(E);var W=K.e/fe,nt=E.e/fe,et=K.c,Ct=E.c;if(!W||!nt){if(!et||!Ct)return et?(E.s=-S,E):new z(Ct?K:NaN);if(!et[0]||!Ct[0])return Ct[0]?(E.s=-S,E):new z(et[0]?K:w==3?-0:0)}if(W=Gn(W),nt=Gn(nt),et=et.slice(),q=W-nt){for((R=q<0)?(q=-q,D=et):(nt=W,D=Ct),D.reverse(),S=q;S--;D.push(0));D.reverse()}else for(A=(R=(q=et.length)<(S=Ct.length))?q:S,q=S=0;S0)for(;S--;et[O++]=0);for(S=$n-1;A>q;){if(et[--A]=0;){for(O=0,Zt=Sn[D]%Ge,Wt=Sn[D]/Ge|0,K=W,R=D+K;R>D;)nt=He[--K]%Ge,et=He[K]/Ge|0,q=Wt*nt+et*Zt,nt=Zt*nt+q%Ge*Ge+re[R]+O,O=(nt/je|0)+(q/Ge|0)+Wt*et,re[R--]=nt%je;re[R]=O}return O?++A:re.splice(0,1),at(E,re,A)},f.negated=function(){var E=new z(this);return E.s=-E.s||null,E},f.plus=function(E,S){var O,A=this,D=A.s;if(E=new z(E,S),S=E.s,!D||!S)return new z(NaN);if(D!=S)return E.s=-S,A.minus(E);var R=A.e/fe,K=E.e/fe,q=A.c,W=E.c;if(!R||!K){if(!q||!W)return new z(D/0);if(!q[0]||!W[0])return W[0]?E:new z(q[0]?A:D*0)}if(R=Gn(R),K=Gn(K),q=q.slice(),D=R-K){for(D>0?(K=R,O=W):(D=-D,O=q),O.reverse();D--;O.push(0));O.reverse()}for(D=q.length,S=W.length,D-S<0&&(O=W,W=q,q=O,S=D),D=0;S;)D=(q[--S]=q[S]+W[S]+D)/$n|0,q[S]=$n===q[S]?0:q[S]%$n;return D&&(q=[D].concat(q),++K),at(E,q,K)},f.precision=f.sd=function(E,S){var O,A,D,R=this;if(E!=null&&E!==!!E)return qe(E,1,sn),S==null?S=w:qe(S,0,8),X(new z(R),E,S);if(!(O=R.c))return null;if(D=O.length-1,A=D*fe+1,D=O[D]){for(;D%10==0;D/=10,A--);for(D=O[0];D>=10;D/=10,A++);}return E&&R.e+1>A&&(A=R.e+1),A},f.shiftedBy=function(E){return qe(E,-bo,bo),this.times("1e"+E)},f.squareRoot=f.sqrt=function(){var E,S,O,A,D,R=this,K=R.c,q=R.s,W=R.e,nt=v+4,et=new z("0.5");if(q!==1||!K||!K[0])return new z(!q||q<0&&(!K||K[0])?NaN:K?R:1/0);if(q=Math.sqrt(+st(R)),q==0||q==1/0?(S=Dn(K),(S.length+W)%2==0&&(S+="0"),q=Math.sqrt(+S),W=Gn((W+1)/2)-(W<0||W%2),q==1/0?S="5e"+W:(S=q.toExponential(),S=S.slice(0,S.indexOf("e")+1)+W),O=new z(S)):O=new z(q+""),O.c[0]){for(W=O.e,q=W+nt,q<3&&(q=0);;)if(D=O,O=et.times(D.plus(r(R,D,nt,1))),Dn(D.c).slice(0,q)===(S=Dn(O.c)).slice(0,q))if(O.e0&&re>0){for(R=re%q||q,et=Wt.substr(0,R);R0&&(et+=nt+Wt.slice(R)),Zt&&(et="-"+et)}A=Ct?et+(O.decimalSeparator||"")+((W=+O.fractionGroupSize)?Ct.replace(new RegExp("\\d{"+W+"}\\B","g"),"$&"+(O.fractionGroupSeparator||"")):Ct):et}return(O.prefix||"")+A+(O.suffix||"")},f.toFraction=function(E){var S,O,A,D,R,K,q,W,nt,et,Ct,Zt,Wt=this,re=Wt.c;if(E!=null&&(q=new z(E),!q.isInteger()&&(q.c||q.s!==1)||q.lt(g)))throw Error(un+"Argument "+(q.isInteger()?"out of range: ":"not an integer: ")+st(q));if(!re)return new z(Wt);for(S=new z(g),nt=O=new z(g),A=W=new z(g),Zt=Dn(re),R=S.e=Zt.length-Wt.e-1,S.c[0]=xo[(K=R%fe)<0?fe+K:K],E=!E||q.comparedTo(S)>0?R>0?S:nt:q,K=I,I=1/0,q=new z(Zt),W.c[0]=0;et=r(q,S,0,1),D=O.plus(et.times(A)),D.comparedTo(E)!=1;)O=A,A=D,nt=W.plus(et.times(D=nt)),W=D,S=q.minus(et.times(D=S)),q=D;return D=r(E.minus(O),A,0,1),W=W.plus(D.times(nt)),O=O.plus(D.times(A)),W.s=nt.s=Wt.s,R=R*2,Ct=r(nt,A,R,w).minus(Wt).abs().comparedTo(r(W,O,R,w).minus(Wt).abs())<1?[nt,A]:[W,O],I=K,Ct},f.toNumber=function(){return+st(this)},f.toPrecision=function(E,S){return E!=null&&qe(E,1,sn),Z(this,E,S,2)},f.toString=function(E){var S,O=this,A=O.s,D=O.e;return D===null?A?(S="Infinity",A<0&&(S="-"+S)):S="NaN":(E==null?S=D<=M||D>=P?o(Dn(O.c),D):d(Dn(O.c),D,"0"):E===10&&Be?(O=X(new z(O),v+D+1,w),S=d(Dn(O.c),O.e,"0")):(qe(E,2,qt.length,"Base"),S=a(d(Dn(O.c),D,"0"),10,E,A,!0)),A<0&&O.c[0]&&(S="-"+S)),S},f.valueOf=f.toJSON=function(){return st(this)},f._isBigNumber=!0,f[Symbol.toStringTag]="BigNumber",f[Symbol.for("nodejs.util.inspect.custom")]=f.valueOf,n!=null&&z.set(n),z}function Gn(n){var r=n|0;return n>0||n===r?r:r-1}function Dn(n){for(var r,a,c=1,f=n.length,g=n[0]+"";cP^a?1:-1;for(w=(M=f.length)<(P=g.length)?M:P,v=0;vg[v]^a?1:-1;return M==P?0:M>P^a?1:-1}function qe(n,r,a,c){if(na||n!==Cn(n))throw Error(un+(c||"Argument")+(typeof n=="number"?na?" out of range: ":" not an integer: ":" not a primitive number: ")+String(n))}function e(n){var r=n.c.length-1;return Gn(n.e/fe)==r&&n.c[r]%2!=0}function o(n,r){return(n.length>1?n.charAt(0)+"."+n.slice(1):n)+(r<0?"e":"e+")+r}function d(n,r,a){var c,f;if(r<0){for(f=a+".";++r;f+=a);n=f+n}else if(c=n.length,++r>c){for(f=a,r-=c;--r;f+=a);n+=f}else r0){let P=v.left;if(P==null||(M=w(P.key,n),M>0&&(v.left=P.right,P.right=v,v=P,P=v.left,P==null)))break;a==null?c=v:a.left=v,a=v,v=P}else if(M<0){let P=v.right;if(P==null||(M=w(P.key,n),M<0&&(v.right=P.left,P.left=v,v=P,P=v.right,P==null)))break;f==null?g=v:f.right=v,f=v,v=P}else break;return f!=null&&(f.right=v.left,v.left=g),a!=null&&(a.left=v.right,v.right=c),this.root!==v&&(this.root=v,this.splayCount++),M}splayMin(n){let r=n,a=r.left;for(;a!=null;){let c=a;r.left=c.right,c.right=r,r=c,a=r.left}return r}splayMax(n){let r=n,a=r.right;for(;a!=null;){let c=a;r.right=c.left,c.left=r,r=c,a=r.right}return r}_delete(n){if(this.root==null||this.splay(n)!=0)return null;let r=this.root,a=r,c=r.left;if(this.size--,c==null)this.root=r.right;else{let f=r.right;r=this.splayMax(c),r.right=f,this.root=r}return this.modificationCount++,a}addNewRoot(n,r){this.size++,this.modificationCount++;let a=this.root;if(a==null){this.root=n;return}r<0?(n.left=a,n.right=a.right,a.right=null):(n.right=a,n.left=a.left,a.left=null),this.root=n}_first(){let n=this.root;return n==null?null:(this.root=this.splayMin(n),this.root)}_last(){let n=this.root;return n==null?null:(this.root=this.splayMax(n),this.root)}clear(){this.root=null,this.size=0,this.modificationCount++}has(n){return this.validKey(n)&&this.splay(n)==0}defaultCompare(){return(n,r)=>nr?1:0}wrap(){return{getRoot:()=>this.root,setRoot:n=>{this.root=n},getSize:()=>this.size,getModificationCount:()=>this.modificationCount,getSplayCount:()=>this.splayCount,setSplayCount:n=>{this.splayCount=n},splay:n=>this.splay(n),has:n=>this.has(n)}}},ut=class Rs extends rt{constructor(a,c){super();ne(this,"root",null);ne(this,"compare");ne(this,"validKey");ne(this,dh,"[object Set]");this.compare=a??this.defaultCompare(),this.validKey=c??(f=>f!=null&&f!=null)}delete(a){return this.validKey(a)?this._delete(a)!=null:!1}deleteAll(a){for(let c of a)this.delete(c)}forEach(a){let c=this[Symbol.iterator](),f;for(;f=c.next(),!f.done;)a(f.value,f.value,this)}add(a){let c=this.splay(a);return c!=0&&this.addNewRoot(new G(a),c),this}addAndReturn(a){let c=this.splay(a);return c!=0&&this.addNewRoot(new G(a),c),this.root.key}addAll(a){for(let c of a)this.add(c)}isEmpty(){return this.root==null}isNotEmpty(){return this.root!=null}single(){if(this.size==0)throw"Bad state: No element";if(this.size>1)throw"Bad state: Too many element";return this.root.key}first(){if(this.size==0)throw"Bad state: No element";return this._first().key}last(){if(this.size==0)throw"Bad state: No element";return this._last().key}lastBefore(a){if(a==null)throw"Invalid arguments(s)";if(this.root==null)return null;if(this.splay(a)<0)return this.root.key;let c=this.root.left;if(c==null)return null;let f=c.right;for(;f!=null;)c=f,f=c.right;return c.key}firstAfter(a){if(a==null)throw"Invalid arguments(s)";if(this.root==null)return null;if(this.splay(a)>0)return this.root.key;let c=this.root.right;if(c==null)return null;let f=c.left;for(;f!=null;)c=f,f=c.left;return c.key}retainAll(a){let c=new Rs(this.compare,this.validKey),f=this.modificationCount;for(let g of a){if(f!=this.modificationCount)throw"Concurrent modification during iteration.";this.validKey(g)&&this.splay(g)==0&&c.add(this.root.key)}c.size!=this.size&&(this.root=c.root,this.size=c.size,this.modificationCount++)}lookup(a){return!this.validKey(a)||this.splay(a)!=0?null:this.root.key}intersection(a){let c=new Rs(this.compare,this.validKey);for(let f of this)a.has(f)&&c.add(f);return c}difference(a){let c=new Rs(this.compare,this.validKey);for(let f of this)a.has(f)||c.add(f);return c}union(a){let c=this.clone();return c.addAll(a),c}clone(){let a=new Rs(this.compare,this.validKey);return a.size=this.size,a.root=this.copyNode(this.root),a}copyNode(a){if(a==null)return null;function c(g,v){let w,M;do{if(w=g.left,M=g.right,w!=null){let P=new G(w.key);v.left=P,c(w,P)}if(M!=null){let P=new G(M.key);v.right=P,g=M,v=P}}while(M!=null)}let f=new G(a.key);return c(a,f),f}toSet(){return this.clone()}entries(){return new le(this.wrap())}keys(){return this[Symbol.iterator]()}values(){return this[Symbol.iterator]()}[(ph=Symbol.iterator,dh=Symbol.toStringTag,ph)](){return new Gt(this.wrap())}},wt=class{constructor(n){ne(this,"tree");ne(this,"path",new Array);ne(this,"modificationCount",null);ne(this,"splayCount");this.tree=n,this.splayCount=n.getSplayCount()}[Symbol.iterator](){return this}next(){return this.moveNext()?{done:!1,value:this.current()}:{done:!0,value:null}}current(){if(!this.path.length)return null;let n=this.path[this.path.length-1];return this.getValue(n)}rebuildPath(n){this.path.splice(0,this.path.length),this.tree.splay(n),this.path.push(this.tree.getRoot()),this.splayCount=this.tree.getSplayCount()}findLeftMostDescendent(n){for(;n!=null;)this.path.push(n),n=n.left}moveNext(){if(this.modificationCount!=this.tree.getModificationCount()){if(this.modificationCount==null){this.modificationCount=this.tree.getModificationCount();let a=this.tree.getRoot();for(;a!=null;)this.path.push(a),a=a.left;return this.path.length>0}throw"Concurrent modification during iteration."}if(!this.path.length)return!1;this.splayCount!=this.tree.getSplayCount()&&this.rebuildPath(this.path[this.path.length-1].key);let n=this.path[this.path.length-1],r=n.right;if(r!=null){for(;r!=null;)this.path.push(r),r=r.left;return!0}for(this.path.pop();this.path.length&&this.path[this.path.length-1].right===n;)n=this.path.pop();return this.path.length>0}},Gt=class extends wt{getValue(n){return n.key}},le=class extends wt{getValue(n){return[n.key,n.key]}},xe=n=>n,wn=n=>{if(n){let r=new ut(vo(n)),a=new ut(vo(n)),c=(g,v)=>v.addAndReturn(g),f=g=>({x:c(g.x,r),y:c(g.y,a)});return f({x:new C(0),y:new C(0)}),f}return xe},nn=n=>({set:r=>{rn=nn(r)},reset:()=>nn(n),compare:vo(n),snap:wn(n),orient:Fa(n)}),rn=nn(),cn=(n,r)=>n.ll.x.isLessThanOrEqualTo(r.x)&&r.x.isLessThanOrEqualTo(n.ur.x)&&n.ll.y.isLessThanOrEqualTo(r.y)&&r.y.isLessThanOrEqualTo(n.ur.y),Pi=(n,r)=>{if(r.ur.x.isLessThan(n.ll.x)||n.ur.x.isLessThan(r.ll.x)||r.ur.y.isLessThan(n.ll.y)||n.ur.y.isLessThan(r.ll.y))return null;let a=n.ll.x.isLessThan(r.ll.x)?r.ll.x:n.ll.x,c=n.ur.x.isLessThan(r.ur.x)?n.ur.x:r.ur.x,f=n.ll.y.isLessThan(r.ll.y)?r.ll.y:n.ll.y,g=n.ur.y.isLessThan(r.ur.y)?n.ur.y:r.ur.y;return{ll:{x:a,y:f},ur:{x:c,y:g}}},Lo=(n,r)=>n.x.times(r.y).minus(n.y.times(r.x)),Na=(n,r)=>n.x.times(r.x).plus(n.y.times(r.y)),Co=n=>Na(n,n).sqrt(),ja=(n,r,a)=>{let c={x:r.x.minus(n.x),y:r.y.minus(n.y)},f={x:a.x.minus(n.x),y:a.y.minus(n.y)};return Lo(f,c).div(Co(f)).div(Co(c))},Tu=(n,r,a)=>{let c={x:r.x.minus(n.x),y:r.y.minus(n.y)},f={x:a.x.minus(n.x),y:a.y.minus(n.y)};return Na(f,c).div(Co(f)).div(Co(c))},Es=(n,r,a)=>r.y.isZero()?null:{x:n.x.plus(r.x.div(r.y).times(a.minus(n.y))),y:a},tn=(n,r,a)=>r.x.isZero()?null:{x:a,y:n.y.plus(r.y.div(r.x).times(a.minus(n.x)))},wo=(n,r,a,c)=>{if(r.x.isZero())return tn(a,c,n.x);if(c.x.isZero())return tn(n,r,a.x);if(r.y.isZero())return Es(a,c,n.y);if(c.y.isZero())return Es(n,r,a.y);let f=Lo(r,c);if(f.isZero())return null;let g={x:a.x.minus(n.x),y:a.y.minus(n.y)},v=Lo(g,r).div(f),w=Lo(g,c).div(f),M=n.x.plus(w.times(r.x)),P=a.x.plus(v.times(c.x)),V=n.y.plus(w.times(r.y)),I=a.y.plus(v.times(c.y)),it=M.plus(P).div(2),lt=V.plus(I).div(2);return{x:it,y:lt}},ri=class n_{constructor(r,a){ne(this,"point");ne(this,"isLeft");ne(this,"segment");ne(this,"otherSE");ne(this,"consumedBy");r.events===void 0?r.events=[this]:r.events.push(this),this.point=r,this.isLeft=a}static compare(r,a){let c=n_.comparePoints(r.point,a.point);return c!==0?c:(r.point!==a.point&&r.link(a),r.isLeft!==a.isLeft?r.isLeft?1:-1:ko.compare(r.segment,a.segment))}static comparePoints(r,a){return r.x.isLessThan(a.x)?-1:r.x.isGreaterThan(a.x)?1:r.y.isLessThan(a.y)?-1:r.y.isGreaterThan(a.y)?1:0}link(r){if(r.point===this.point)throw new Error("Tried to link already linked events");let a=r.point.events;for(let c=0,f=a.length;c{let g=f.otherSE;a.set(f,{sine:ja(this.point,r.point,g.point),cosine:Tu(this.point,r.point,g.point)})};return(f,g)=>{a.has(f)||c(f),a.has(g)||c(g);let{sine:v,cosine:w}=a.get(f),{sine:M,cosine:P}=a.get(g);return v.isGreaterThanOrEqualTo(0)&&M.isGreaterThanOrEqualTo(0)?w.isLessThan(P)?1:w.isGreaterThan(P)?-1:0:v.isLessThan(0)&&M.isLessThan(0)?w.isLessThan(P)?-1:w.isGreaterThan(P)?1:0:M.isLessThan(v)?-1:M.isGreaterThan(v)?1:0}}},Au=0,ko=class ul{constructor(r,a,c,f){ne(this,"id");ne(this,"leftSE");ne(this,"rightSE");ne(this,"rings");ne(this,"windings");ne(this,"ringOut");ne(this,"consumedBy");ne(this,"prev");ne(this,"_prevInResult");ne(this,"_beforeState");ne(this,"_afterState");ne(this,"_isInResult");this.id=++Au,this.leftSE=r,r.segment=this,r.otherSE=a,this.rightSE=a,a.segment=this,a.otherSE=r,this.rings=c,this.windings=f}static compare(r,a){let c=r.leftSE.point.x,f=a.leftSE.point.x,g=r.rightSE.point.x,v=a.rightSE.point.x;if(v.isLessThan(c))return 1;if(g.isLessThan(f))return-1;let w=r.leftSE.point.y,M=a.leftSE.point.y,P=r.rightSE.point.y,V=a.rightSE.point.y;if(c.isLessThan(f)){if(M.isLessThan(w)&&M.isLessThan(P))return 1;if(M.isGreaterThan(w)&&M.isGreaterThan(P))return-1;let I=r.comparePoint(a.leftSE.point);if(I<0)return 1;if(I>0)return-1;let it=a.comparePoint(r.rightSE.point);return it!==0?it:-1}if(c.isGreaterThan(f)){if(w.isLessThan(M)&&w.isLessThan(V))return-1;if(w.isGreaterThan(M)&&w.isGreaterThan(V))return 1;let I=a.comparePoint(r.leftSE.point);if(I!==0)return I;let it=r.comparePoint(a.rightSE.point);return it<0?1:it>0?-1:1}if(w.isLessThan(M))return-1;if(w.isGreaterThan(M))return 1;if(g.isLessThan(v)){let I=a.comparePoint(r.rightSE.point);if(I!==0)return I}if(g.isGreaterThan(v)){let I=r.comparePoint(a.rightSE.point);if(I<0)return 1;if(I>0)return-1}if(!g.eq(v)){let I=P.minus(w),it=g.minus(c),lt=V.minus(M),Mt=v.minus(f);if(I.isGreaterThan(it)&<.isLessThan(Mt))return 1;if(I.isLessThan(it)&<.isGreaterThan(Mt))return-1}return g.isGreaterThan(v)?1:g.isLessThan(v)||P.isLessThan(V)?-1:P.isGreaterThan(V)?1:r.ida.id?1:0}static fromRing(r,a,c){let f,g,v,w=ri.comparePoints(r,a);if(w<0)f=r,g=a,v=1;else if(w>0)f=a,g=r,v=-1;else throw new Error(`Tried to create degenerate segment at [${r.x}, ${r.y}]`);let M=new ri(f,!0),P=new ri(g,!1);return new ul(M,P,[c],[v])}replaceRightSE(r){this.rightSE=r,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}bbox(){let r=this.leftSE.point.y,a=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:r.isLessThan(a)?r:a},ur:{x:this.rightSE.point.x,y:r.isGreaterThan(a)?r:a}}}vector(){return{x:this.rightSE.point.x.minus(this.leftSE.point.x),y:this.rightSE.point.y.minus(this.leftSE.point.y)}}isAnEndpoint(r){return r.x.eq(this.leftSE.point.x)&&r.y.eq(this.leftSE.point.y)||r.x.eq(this.rightSE.point.x)&&r.y.eq(this.rightSE.point.y)}comparePoint(r){return rn.orient(this.leftSE.point,r,this.rightSE.point)}getIntersection(r){let a=this.bbox(),c=r.bbox(),f=Pi(a,c);if(f===null)return null;let g=this.leftSE.point,v=this.rightSE.point,w=r.leftSE.point,M=r.rightSE.point,P=cn(a,w)&&this.comparePoint(w)===0,V=cn(c,g)&&r.comparePoint(g)===0,I=cn(a,M)&&this.comparePoint(M)===0,it=cn(c,v)&&r.comparePoint(v)===0;if(V&&P)return it&&!I?v:!it&&I?M:null;if(V)return I&&g.x.eq(M.x)&&g.y.eq(M.y)?null:g;if(P)return it&&v.x.eq(w.x)&&v.y.eq(w.y)?null:w;if(it&&I)return null;if(it)return v;if(I)return M;let lt=wo(g,this.vector(),w,r.vector());return lt===null||!cn(f,lt)?null:rn.snap(lt)}split(r){let a=[],c=r.events!==void 0,f=new ri(r,!0),g=new ri(r,!1),v=this.rightSE;this.replaceRightSE(g),a.push(g),a.push(f);let w=new ul(f,v,this.rings.slice(),this.windings.slice());return ri.comparePoints(w.leftSE.point,w.rightSE.point)>0&&w.swapEvents(),ri.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),c&&(f.checkForConsuming(),g.checkForConsuming()),a}swapEvents(){let r=this.rightSE;this.rightSE=this.leftSE,this.leftSE=r,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(let a=0,c=this.windings.length;a0){let g=a;a=c,c=g}if(a.prev===c){let g=a;a=c,c=g}for(let g=0,v=c.rings.length;gf.length===1&&f[0].isSubject;this._isInResult=c(r)!==c(a);break}}return this._isInResult}},Mo=class{constructor(n,r,a){ne(this,"poly");ne(this,"isExterior");ne(this,"segments");ne(this,"bbox");if(!Array.isArray(n)||n.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=r,this.isExterior=a,this.segments=[],typeof n[0][0]!="number"||typeof n[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");let c=rn.snap({x:new C(n[0][0]),y:new C(n[0][1])});this.bbox={ll:{x:c.x,y:c.y},ur:{x:c.x,y:c.y}};let f=c;for(let g=1,v=n.length;g0&&(r=M)}let a=r.segment.prevInResult(),c=a?a.prevInResult():null;for(;;){if(!a)return null;if(!c)return a.ringOut;if(c.ringOut!==a.ringOut)return((f=c.ringOut)==null?void 0:f.enclosingRing())!==a.ringOut?a.ringOut:(g=a.ringOut)==null?void 0:g.enclosingRing();a=c.prevInResult(),c=a?a.prevInResult():null}}},sh=class{constructor(n){ne(this,"exteriorRing");ne(this,"interiorRings");this.exteriorRing=n,n.poly=this,this.interiorRings=[]}addInterior(n){this.interiorRings.push(n),n.poly=this}getGeom(){let n=this.exteriorRing.getGeom();if(n===null)return null;let r=[n];for(let a=0,c=this.interiorRings.length;a0?(this.tree.delete(r),a.push(n)):(this.segments.push(r),r.prev=c)}else{if(c&&f){let g=c.getIntersection(f);if(g!==null){if(!c.isAnEndpoint(g)){let v=this._splitSafely(c,g);for(let w=0,M=v.length;w$a.run("intersection",n,r),h_=(n,...r)=>$a.run("difference",n,r);rn.set;function Ga(n){let r={type:"Feature"};return r.geometry=n,r}function Ha(n){return n.type==="Feature"?n.geometry:n}function ah(n){return n&&n.geometry&&n.geometry.coordinates?n.geometry.coordinates:n}function d_(n){return Ga({type:"LineString",coordinates:n})}function p_(n){return Ga({type:"MultiLineString",coordinates:n})}function lh(n){return Ga({type:"Polygon",coordinates:n})}function uh(n){return Ga({type:"MultiPolygon",coordinates:n})}function f_(n,r){let a=Ha(n),c=Ha(r),f=c_(a.coordinates,c.coordinates);return f.length===0?null:f.length===1?lh(f[0]):uh(f)}function __(n,r){let a=Ha(n),c=Ha(r),f=h_(a.coordinates,c.coordinates);return f.length===0?null:f.length===1?lh(f[0]):uh(f)}function ch(n){return Array.isArray(n)?1+ch(n[0]):-1}function m_(n){n instanceof L.Polyline&&(n=n.toGeoJSON(15));let r=ah(n),a=ch(r),c=[];return a>1?r.forEach(f=>{c.push(d_(f))}):c.push(n),c}function g_(n){let r=[];return n.eachLayer(a=>{r.push(ah(a.toGeoJSON(15)))}),p_(r)}fn.Cut=fn.Polygon.extend({initialize(n){this._map=n,this._shape="Cut",this.toolbarButtonName="cutPolygon"},_finishShape(){if(this._editedLayers=[],!this.options.allowSelfIntersection&&(this._handleSelfIntersection(!0,this._layer.getLatLngs()[0]),this._doesSelfIntersect)||this.options.requireSnapToFinish&&!this._hintMarker._snapped&&!this._isFirstLayer())return;let n=this._layer.getLatLngs();if(n.length<=2)return;let r=L.polygon(n,this.options.pathOptions);r._latlngInfos=this._layer._latlngInfo,this.cut(r),this._cleanupSnapping(),this._otherSnapLayers.splice(this._tempSnapLayerIndex,1),delete this._tempSnapLayerIndex,this._editedLayers.forEach(({layer:a,originalLayer:c})=>{this._fireCut(c,a,c),this._fireCut(this._map,a,c),c.pm._fireEdit()}),this._editedLayers=[],this.disable(),this.options.continueDrawing&&this.enable()},cut(n){let r=this._map._layers,a=n._latlngInfos||[];Object.keys(r).map(c=>r[c]).filter(c=>c.pm).filter(c=>!c._pmTempLayer).filter(c=>!L.PM.optIn&&!c.options.pmIgnore||L.PM.optIn&&c.options.pmIgnore===!1).filter(c=>c instanceof L.Polyline).filter(c=>c!==n).filter(c=>c.pm.options.allowCutting).filter(c=>this.options.layersToCut&&L.Util.isArray(this.options.layersToCut)&&this.options.layersToCut.length>0?this.options.layersToCut.indexOf(c)>-1:!0).filter(c=>!this._layerGroup.hasLayer(c)).filter(c=>{try{let f=!!Pn(n.toGeoJSON(15),c.toGeoJSON(15)).features.length>0;return f||c instanceof L.Polyline&&!(c instanceof L.Polygon)?f:!!f_(n.toGeoJSON(15),c.toGeoJSON(15))}catch{return c instanceof L.Polygon&&console.error("You can't cut polygons with self-intersections"),!1}}).forEach(c=>{let f;if(c instanceof L.Polygon){f=L.polygon(c.getLatLngs());let M=f.getLatLngs();a.forEach(P=>{if(P&&P.snapInfo){let{latlng:V}=P,I=this._calcClosestLayer(V,[f]);if(I&&I.segment&&I.distance1?(0,Su.default)(M,Mt):M).splice(zt,0,V)}}}})}else f=c;let g=this._cutLayer(n,f),v=L.geoJSON(g,c.options);v.getLayers().length===1&&([v]=v.getLayers()),this._setPane(v,"layerPane");let w=v.addTo(this._map.pm._getContainingLayer());if(w.pm.enable(c.pm.options),w.pm.disable(),c._pmTempLayer=!0,n._pmTempLayer=!0,c.remove(),c.removeFrom(this._map.pm._getContainingLayer()),n.remove(),n.removeFrom(this._map.pm._getContainingLayer()),w.getLayers&&w.getLayers().length===0&&this._map.pm.removeLayer({target:w}),w instanceof L.LayerGroup?(w.eachLayer(M=>{this._addDrawnLayerProp(M)}),this._addDrawnLayerProp(w)):this._addDrawnLayerProp(w),this.options.layersToCut&&L.Util.isArray(this.options.layersToCut)&&this.options.layersToCut.length>0){let M=this.options.layersToCut.indexOf(c);M>-1&&this.options.layersToCut.splice(M,1)}this._editedLayers.push({layer:w,originalLayer:c})})},_cutLayer(n,r){let a=L.geoJSON(),c;if(r instanceof L.Polygon)c=__(r.toGeoJSON(15),n.toGeoJSON(15));else{let f=m_(r);f.forEach(g=>{let v=fo(g,n.toGeoJSON(15)),w;v&&v.features.length>0?w=L.geoJSON(v):w=L.geoJSON(g),w.getLayers().forEach(M=>{mo(n.toGeoJSON(15),M.toGeoJSON(15))||M.addTo(a)})}),f.length>1?c=g_(a):c=a.toGeoJSON(15)}return c},_change:L.Util.falseFn}),fn.Text=fn.extend({initialize(n){this._map=n,this._shape="Text",this.toolbarButtonName="drawText"},enable(n){L.Util.setOptions(this,n),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(Pe("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._map.getContainer().classList.add("geoman-draw-cursor"),this._fireDrawStart(),this._setGlobalDrawMode()},disable(){var n;this._enabled&&(this._enabled=!1,this._map.off("click",this._createMarker,this),(n=this._hintMarker)==null||n.remove(),this._map.getContainer().classList.remove("geoman-draw-cursor"),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(){return this._enabled},toggle(n){this.enabled()?this.disable():this.enable(n)},_syncHintMarker(n){if(this._hintMarker.setLatLng(n.latlng),this.options.snappable){let r=n;r.target=this._hintMarker,this._handleSnapping(r)}},_createMarker(n){var f,g,v,w;if(!n.latlng||this.options.requireSnapToFinish&&!this._hintMarker._snapped&&!this._isFirstLayer())return;this._hintMarker._snapped||this._hintMarker.setLatLng(n.latlng);let r=this._hintMarker.getLatLng();if(this.textArea=this._createTextArea(),(f=this.options.textOptions)==null?void 0:f.className){let M=this.options.textOptions.className.split(" ");this.textArea.classList.add(...M)}let a=this._createTextIcon(this.textArea),c=new L.Marker(r,{textMarker:!0,_textMarkerOverPM:!0,icon:a});if(this._setPane(c,"markerPane"),this._finishLayer(c),c.pm||(c.options.draggable=!1),c.addTo(this._map.pm._getContainingLayer()),c.pm){c.pm.textArea=this.textArea,L.setOptions(c.pm,{removeIfEmpty:((g=this.options.textOptions)==null?void 0:g.removeIfEmpty)??!0});let M=((v=this.options.textOptions)==null?void 0:v.focusAfterDraw)??!0;c.pm._createTextMarker(M),(w=this.options.textOptions)!=null&&w.text&&c.pm.setText(this.options.textOptions.text)}this._fireCreate(c),this._cleanupSnapping(),this.disable(),this.options.continueDrawing&&this.enable()},_createTextArea(){let n=document.createElement("textarea");return n.readOnly=!0,n.classList.add("pm-textarea","pm-disabled"),n},_createTextIcon(n){return L.divIcon({className:"pm-text-marker",html:n})}});var y_={enableLayerDrag(){if(!this.options.draggable||!this._layer._map)return;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,Qi(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;let n=this._getDOMElem();n&&(Qi(this._layer)instanceof L.Canvas?(this._layer.on("touchstart mousedown",this._dragMixinOnMouseDown,this),this._map.pm._addTouchEvents(n)):L.DomEvent.on(n,"touchstart mousedown",this._simulateMouseDownEvent,this)),this._fireDragEnable()},disableLayerDrag(){this._layerDragEnabled=!1,Qi(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();let n=this._getDOMElem();n&&(Qi(this._layer)instanceof L.Canvas?(this._layer.off("touchstart mousedown",this._dragMixinOnMouseDown,this),this._map.pm._removeTouchEvents(n)):L.DomEvent.off(n,"touchstart mousedown",this._simulateMouseDownEvent,this)),this._layerDragged&&this._fireUpdate(),this._layerDragged=!1,this._fireDragDisable()},dragging(){return this._dragging},layerDragEnabled(){return!!this._layerDragEnabled},_simulateMouseDownEvent(n){let r=n.touches?n.touches[0]:n,a={originalEvent:r,target:this._layer};return a.containerPoint=this._map.mouseEventToContainerPoint(r),a.latlng=this._map.containerPointToLatLng(a.containerPoint),this._dragMixinOnMouseDown(a),!1},_simulateMouseMoveEvent(n){let r=n.touches?n.touches[0]:n,a={originalEvent:r,target:this._layer};return a.containerPoint=this._map.mouseEventToContainerPoint(r),a.latlng=this._map.containerPointToLatLng(a.containerPoint),this._dragMixinOnMouseMove(a),!1},_simulateMouseUpEvent(n){let r={originalEvent:n.touches?n.touches[0]:n,target:this._layer};return n.type.indexOf("touch")===-1&&(r.containerPoint=this._map.mouseEventToContainerPoint(n),r.latlng=this._map.containerPointToLatLng(r.containerPoint)),this._dragMixinOnMouseUp(r),!1},_dragMixinOnMouseDown(n){if(n.originalEvent.button>0)return;this._overwriteEventIfItComesFromMarker(n);let r=n._fromLayerSync,a=this._syncLayers("_dragMixinOnMouseDown",n);if(this._layer instanceof L.Marker&&(this.options.snappable&&!r&&!a?this._initSnappableMarkers():this._disableSnapping()),this._layer instanceof L.CircleMarker){let c="resizeableCircleMarker";this._layer instanceof L.Circle&&(c="resizableCircle"),this.options.snappable&&!r&&!a?this._layer.pm.options[c]||this._initSnappableMarkersDrag():this._layer.pm.options[c]?this._layer.pm._disableSnapping():this._layer.pm._disableSnappingDrag()}this._safeToCacheDragState&&(this._originalMapDragState=this._layer._map.dragging._enabled,this._safeToCacheDragState=!1),this._tempDragCoord=n.latlng,L.DomEvent.on(this._map.getContainer(),"touchend mouseup",this._simulateMouseUpEvent,this),L.DomEvent.on(this._map.getContainer(),"touchmove mousemove",this._simulateMouseMoveEvent,this)},_dragMixinOnMouseMove(n){this._overwriteEventIfItComesFromMarker(n);let r=this._getDOMElem();this._syncLayers("_dragMixinOnMouseMove",n),this._dragging||(this._dragging=!0,L.DomUtil.addClass(r,"leaflet-pm-dragging"),this._layer instanceof L.Marker||this._layer.bringToFront(),this._originalMapDragState&&this._map.dragging.disable(),this._fireDragStart()),this._tempDragCoord||(this._tempDragCoord=n.latlng),this._onLayerDrag(n),this._layer instanceof L.CircleMarker&&this._layer.pm._updateHiddenPolyCircle()},_dragMixinOnMouseUp(n){let r=this._getDOMElem();return this._syncLayers("_dragMixinOnMouseUp",n),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(()=>{this._dragging=!1,r&&L.DomUtil.removeClass(r,"leaflet-pm-dragging"),this._fireDragEnd(),this._fireEdit(),this._layerEdited=!0},10),!0):!1},_onLayerDrag(n){let{latlng:r}=n,a={lat:r.lat-this._tempDragCoord.lat,lng:r.lng-this._tempDragCoord.lng},c=f=>f.map(g=>{if(Array.isArray(g))return c(g);let v={lat:g.lat+a.lat,lng:g.lng+a.lng};return(g.alt||g.alt===0)&&(v.alt=g.alt),v});if(this._layer instanceof L.Circle&&this._layer.options.resizableCircle||this._layer instanceof L.CircleMarker&&this._layer.options.resizeableCircleMarker){let f=c([this._layer.getLatLng()]);this._layer.setLatLng(f[0]),this._fireChange(this._layer.getLatLng(),"Edit")}else if(this._layer instanceof L.CircleMarker||this._layer instanceof L.Marker){let f=this._layer.getLatLng();this._layer._snapped&&(f=this._layer._orgLatLng);let g=c([f]);this._layer.setLatLng(g[0]),this._fireChange(this._layer.getLatLng(),"Edit")}else if(this._layer instanceof L.ImageOverlay){let f=c([this._layer.getBounds().getNorthWest(),this._layer.getBounds().getSouthEast()]);this._layer.setBounds(f),this._fireChange(this._layer.getBounds(),"Edit")}else{let f=c(this._layer.getLatLngs());this._layer.setLatLngs(f),this._fireChange(this._layer.getLatLngs(),"Edit")}this._tempDragCoord=r,n.layer=this._layer,this._fireDrag(n)},addDraggingClass(){let n=this._getDOMElem();n&&L.DomUtil.addClass(n,"leaflet-pm-draggable")},removeDraggingClass(){let n=this._getDOMElem();n&&L.DomUtil.removeClass(n,"leaflet-pm-draggable")},_getDOMElem(){let n=null;return this._layer._path?n=this._layer._path:this._layer._renderer&&this._layer._renderer._container?n=this._layer._renderer._container:this._layer._image?n=this._layer._image:this._layer._icon&&(n=this._layer._icon),n},_overwriteEventIfItComesFromMarker(n){n.target.getLatLng&&(!n.target._radius||n.target._radius<=10)&&(n.containerPoint=this._map.mouseEventToContainerPoint(n.originalEvent),n.latlng=this._map.containerPointToLatLng(n.containerPoint))},_syncLayers(n,r){if(this.enabled())return!1;if(!r._fromLayerSync&&this._layer===r.target&&this.options.syncLayersOnDrag){r._fromLayerSync=!0;let a=[];if(L.Util.isArray(this.options.syncLayersOnDrag))a=this.options.syncLayersOnDrag,this.options.syncLayersOnDrag.forEach(c=>{c instanceof L.LayerGroup&&(a=a.concat(c.pm.getLayers(!0)))});else if(this.options.syncLayersOnDrag===!0&&this._parentLayerGroup)for(let c in this._parentLayerGroup){let f=this._parentLayerGroup[c];f.pm&&(a=f.pm.getLayers(!0))}return L.Util.isArray(a)&&a.length>0&&(a=a.filter(c=>!!c.pm).filter(c=>!!c.pm.options.draggable),a.forEach(c=>{c!==this._layer&&c.pm[n]&&(c._snapped=!1,c.pm[n](r))})),a.length>0}return!1},_stopDOMImageDrag(n){return n.preventDefault(),!1}},v_=y_,b_=m(Ci());function x_(n,r,a,c){return a.unproject(r.transform(a.project(n,c)),c)}function hh(n,r,a){let c=a.getMaxZoom();if(c===1/0&&(c=a.getZoom()),L.Util.isArray(n)){let f=[];return n.forEach(g=>{f.push(hh(g,r,a))}),f}return n instanceof L.LatLng?x_(n,r,a,c):null}function Eo(n,r){r instanceof L.Layer&&(r=r.getLatLng());let a=n.getMaxZoom();return a===1/0&&(a=n.getZoom()),n.project(r,a)}function Ua(n,r){let a=n.getMaxZoom();return a===1/0&&(a=n.getZoom()),n.unproject(r,a)}var L_={_onRotateStart(n){this._preventRenderingMarkers(!0),this._rotationOriginLatLng=this._getRotationCenter().clone(),this._rotationOriginPoint=Eo(this._map,this._rotationOriginLatLng),this._rotationStartPoint=Eo(this._map,n.target.getLatLng()),this._initialRotateLatLng=ki(this._layer),this._startAngle=this.getAngle();let r=ki(this._rotationLayer,this._rotationLayer.pm._rotateOrgLatLng);this._fireRotationStart(this._rotationLayer,r),this._fireRotationStart(this._map,r)},_onRotate(n){let r=Eo(this._map,n.target.getLatLng()),a=this._rotationStartPoint,c=this._rotationOriginPoint,f=Math.atan2(r.y-c.y,r.x-c.x)-Math.atan2(a.y-c.y,a.x-c.x);this._layer.setLatLngs(this._rotateLayer(f,this._initialRotateLatLng,this._rotationOriginLatLng,L.PM.Matrix.init(),this._map));let g=this;function v(V,I=[],it=-1){if(it>-1&&I.push(it),L.Util.isArray(V[0]))V.forEach((lt,Mt)=>v(lt,I.slice(),Mt));else{let lt=(0,b_.default)(g._markers,I);V.forEach((Mt,zt)=>{lt[zt].setLatLng(Mt)})}}v(this._layer.getLatLngs());let w=ki(this._rotationLayer);this._rotationLayer.setLatLngs(this._rotateLayer(f,this._rotationLayer.pm._rotateOrgLatLng,this._rotationOriginLatLng,L.PM.Matrix.init(),this._map));let M=f*180/Math.PI;M=M<0?M+360:M;let P=M+this._startAngle;this._setAngle(P),this._rotationLayer.pm._setAngle(P),this._fireRotation(this._rotationLayer,M,w),this._fireRotation(this._map,M,w),this._rotationLayer.pm._fireChange(this._rotationLayer.getLatLngs(),"Rotation")},_onRotateEnd(){let n=this._startAngle;delete this._rotationOriginLatLng,delete this._rotationOriginPoint,delete this._rotationStartPoint,delete this._initialRotateLatLng,delete this._startAngle;let r=ki(this._rotationLayer,this._rotationLayer.pm._rotateOrgLatLng);this._rotationLayer.pm._rotateOrgLatLng=ki(this._rotationLayer),this._fireRotationEnd(this._rotationLayer,n,r),this._fireRotationEnd(this._map,n,r),this._rotationLayer.pm._fireEdit(this._rotationLayer,"Rotation"),this._preventRenderingMarkers(!1),this._layerRotated=!0},_rotateLayer(n,r,a,c,f){let g=Eo(f,a);return this._matrix=c.clone().rotate(n,g).flip(),hh(r,this._matrix,f)},_setAngle(n){n=n<0?n+360:n,this._angle=n%360},_getRotationCenter(){if(this._rotationCenter)return this._rotationCenter;let n=L.polygon(this._layer.getLatLngs(),{stroke:!1,fill:!1,pmIgnore:!0}).addTo(this._layer._map),r=n.getCenter();return n.removeFrom(this._layer._map),r},enableRotate(){if(!this.options.allowRotation){this.disableRotate();return}this.rotateEnabled()&&this.disableRotate(),this._layer instanceof L.Rectangle&&this._angle===void 0&&this.setInitAngle(ds(this._layer._map,this._layer.getLatLngs()[0][0],this._layer.getLatLngs()[0][1])||0);let n={fill:!1,stroke:!1,pmIgnore:!1,snapIgnore:!0};this._rotatePoly=L.polygon(this._layer.getLatLngs(),n),this._rotatePoly._pmTempLayer=!0,this._rotatePoly.addTo(this._layer._map),this._rotatePoly.pm._setAngle(this.getAngle()),this._rotatePoly.pm.setRotationCenter(this.getRotationCenter()),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=ki(this._layer),this._rotateEnabled=!0,this._layer.on("remove",this.disableRotate,this),this._fireRotationEnable(this._layer),this._fireRotationEnable(this._layer._map)},disableRotate(){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(){return!!this._rotateEnabled},rotateLayer(n){let r=this.getAngle(),a=this._layer.getLatLngs(),c=n*(Math.PI/180);this._layer.setLatLngs(this._rotateLayer(c,this._layer.getLatLngs(),this._getRotationCenter(),L.PM.Matrix.init(),this._layer._map)),this._rotateOrgLatLng=L.polygon(this._layer.getLatLngs()).getLatLngs(),this._setAngle(this.getAngle()+n),this.rotateEnabled()&&this._rotatePoly&&this._rotatePoly.pm.enabled()&&(this._rotatePoly.setLatLngs(this._rotateLayer(c,this._rotatePoly.getLatLngs(),this._getRotationCenter(),L.PM.Matrix.init(),this._rotatePoly._map)),this._rotatePoly.pm._initMarkers());let f=this.getAngle()-r;f=f<0?f+360:f,this._startAngle=r,this._fireRotation(this._layer,f,a,this._layer),this._fireRotation(this._map||this._layer._map,f,a,this._layer),delete this._startAngle,this._fireChange(this._layer.getLatLngs(),"Rotation")},rotateLayerToAngle(n){let r=n-this.getAngle();this.rotateLayer(r)},getAngle(){return this._angle||0},setInitAngle(n){this._setAngle(n)},getRotationCenter(){return this._getRotationCenter()},setRotationCenter(n){this._rotationCenter=n,this._rotatePoly&&this._rotatePoly.pm.setRotationCenter(n)}},C_=L_,w_=L.Class.extend({includes:[v_,fs,C_,Xi],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,resizeableCircleMarker:!1,resizableCircle:!0},setOptions(n){L.Util.setOptions(this,n)},getOptions(){return this.options},applyOptions(){},isPolygon(){return this._layer instanceof L.Polygon},getShape(){return this._shape},_setPane(n,r){r==="layerPane"?n.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.layerPane||"overlayPane":r==="vertexPane"?n.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.vertexPane||"markerPane":r==="markerPane"&&(n.options.pane=this._map.pm.globalOptions.panes&&this._map.pm.globalOptions.panes.markerPane||"markerPane")},remove(){(this._map||this._layer._map).pm.removeLayer({target:this._layer})},_vertexValidation(n,r){let a=r.target,c={layer:this._layer,marker:a,event:r},f="";return n==="move"?f="moveVertexValidation":n==="add"?f="addVertexValidation":n==="remove"&&(f="removeVertexValidation"),this.options[f]&&typeof this.options[f]=="function"&&!this.options[f](c)?(n==="move"&&(a._cancelDragEventChain=a.getLatLng()),!1):(a._cancelDragEventChain=null,!0)},_vertexValidationDrag(n){return n._cancelDragEventChain?(n._latlng=n._cancelDragEventChain,n.update(),!1):!0},_vertexValidationDragEnd(n){return n._cancelDragEventChain?(n._cancelDragEventChain=null,!1):!0}}),vn=w_;vn.LayerGroup=L.Class.extend({initialize(n){this._layerGroup=n,this._layers=this.getLayers(),this._getMap(),this._layers.forEach(c=>this._initLayer(c));let r=c=>{if(c.layer._pmTempLayer)return;this._layers=this.getLayers();let f=this._layers.filter(g=>!g.pm._parentLayerGroup||!(this._layerGroup._leaflet_id in g.pm._parentLayerGroup));f.forEach(g=>{this._initLayer(g)}),f.length>0&&this._getMap()&&this._getMap().pm.globalEditModeEnabled()&&this.enabled()&&this.enable(this.getOptions())};this._layerGroup.on("layeradd",L.Util.throttle(r,100,this),this),this._layerGroup.on("layerremove",c=>{this._removeLayerFromGroup(c.target)},this);let a=c=>{c.target._pmTempLayer||(this._layers=this.getLayers())};this._layerGroup.on("layerremove",L.Util.throttle(a,100,this),this)},enable(n,r=[]){r.length===0&&(this._layers=this.getLayers()),this._options=n,this._layers.forEach(a=>{a instanceof L.LayerGroup?r.indexOf(a._leaflet_id)===-1&&(r.push(a._leaflet_id),a.pm.enable(n,r)):a.pm.enable(n)})},disable(n=[]){n.length===0&&(this._layers=this.getLayers()),this._layers.forEach(r=>{r instanceof L.LayerGroup?n.indexOf(r._leaflet_id)===-1&&(n.push(r._leaflet_id),r.pm.disable(n)):r.pm.disable()})},enabled(n=[]){return n.length===0&&(this._layers=this.getLayers()),!!this._layers.find(r=>r instanceof L.LayerGroup?n.indexOf(r._leaflet_id)===-1?(n.push(r._leaflet_id),r.pm.enabled(n)):!1:r.pm.enabled())},toggleEdit(n,r=[]){r.length===0&&(this._layers=this.getLayers()),this._options=n,this._layers.forEach(a=>{a instanceof L.LayerGroup?r.indexOf(a._leaflet_id)===-1&&(r.push(a._leaflet_id),a.pm.toggleEdit(n,r)):a.pm.toggleEdit(n)})},_initLayer(n){let r=L.Util.stamp(this._layerGroup);n.pm._parentLayerGroup||(n.pm._parentLayerGroup={}),n.pm._parentLayerGroup[r]=this._layerGroup},_removeLayerFromGroup(n){if(n.pm&&n.pm._layerGroup){let r=L.Util.stamp(this._layerGroup);delete n.pm._layerGroup[r]}},dragging(){return this._layers=this.getLayers(),this._layers?!!this._layers.find(n=>n.pm.dragging()):!1},getOptions(){return this.options},_getMap(){var n;return this._map||((n=this._layers.find(r=>!!r._map))==null?void 0:n._map)||null},getLayers(n=!1,r=!0,a=!0,c=[]){let f=[];return n?this._layerGroup.getLayers().forEach(g=>{f.push(g),g instanceof L.LayerGroup&&c.indexOf(g._leaflet_id)===-1&&(c.push(g._leaflet_id),f=f.concat(g.pm.getLayers(!0,!0,!0,c)))}):f=this._layerGroup.getLayers(),a&&(f=f.filter(g=>!(g instanceof L.LayerGroup))),r&&(f=f.filter(g=>!!g.pm),f=f.filter(g=>!g._pmTempLayer),f=f.filter(g=>!L.PM.optIn&&!g.options.pmIgnore||L.PM.optIn&&g.options.pmIgnore===!1)),f},setOptions(n,r=[]){r.length===0&&(this._layers=this.getLayers()),this.options=n,this._layers.forEach(a=>{a.pm&&(a instanceof L.LayerGroup?r.indexOf(a._leaflet_id)===-1&&(r.push(a._leaflet_id),a.pm.setOptions(n,r)):a.pm.setOptions(n))})}}),vn.Marker=vn.extend({_shape:"Marker",initialize(n){this._layer=n,this._enabled=!1,this._layer.on("dragend",this._onDragEnd,this)},enable(n={draggable:!0}){if(L.Util.setOptions(this,n),!this.options.allowEditing||!this._layer._map){this.disable();return}this._map=this._layer._map,this.enabled()&&this.disable(),this.applyOptions(),this._layer.on("remove",this.disable,this),this._enabled=!0,this._fireEnable()},disable(){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(){return this._enabled},toggleEdit(n){this.enabled()?this.disable():this.enable(n)},applyOptions(){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(n){let r=n.target;r.remove(),this._fireRemove(r),this._fireRemove(this._map,r)},_onDragEnd(){this._fireEdit(),this._layerEdited=!0},_initSnappableMarkers(){let n=this._layer;this.options.snapDistance=this.options.snapDistance||30,this.options.snapSegment=this.options.snapSegment===void 0?!0:this.options.snapSegment,n.off("pm:drag",this._handleSnapping,this),n.on("pm:drag",this._handleSnapping,this),n.off("pm:dragend",this._cleanupSnapping,this),n.on("pm:dragend",this._cleanupSnapping,this),n.off("pm:dragstart",this._unsnap,this),n.on("pm:dragstart",this._unsnap,this)},_disableSnapping(){let n=this._layer;n.off("pm:drag",this._handleSnapping,this),n.off("pm:dragend",this._cleanupSnapping,this),n.off("pm:dragstart",this._unsnap,this)}});var or=m(Ci()),k_={filterMarkerGroup(){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._layer.on("remove",this._removeMarkerLimitEvents,this),this.options.limitMarkersToCount>-1&&(this._layer.on("pm:vertexremoved",this._initMarkers,this),this._map.on("mousemove",this.throttledApplyLimitFilters,this))},_removeMarkerLimitEvents(){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(){let n=[...this._markerGroup.getLayers(),...this.markerCache];this.markerCache=n.filter((r,a,c)=>c.indexOf(r)===a)},_removeFromCache(n){let r=this.markerCache.indexOf(n);r>-1&&this.markerCache.splice(r,1)},renderLimits(n){this.markerCache.forEach(r=>{n.includes(r)?this._markerGroup.addLayer(r):this._markerGroup.removeLayer(r)})},applyLimitFilters({latlng:n={lat:0,lng:0}}){if(this._preventRenderMarkers)return;let r=[...this._filterClosestMarkers(n)];this.renderLimits(r)},_filterClosestMarkers(n){let r=[...this.markerCache],a=this.options.limitMarkersToCount;return a===-1?r:(r.sort((c,f)=>{let g=c._latlng.distanceTo(n),v=f._latlng.distanceTo(n);return g-v}),r.filter((c,f)=>a>-1?f{if(Array.isArray(c[0]))return c.map(a,this);let f=c.map(this._createMarker,this);return this.options.hideMiddleMarkers!==!0&&c.map((g,v)=>{let w=this.isPolygon()?(v+1)%c.length:v+1;return this._createMiddleMarker(f[v],f[w])}),f};this._markers=a(r),this.filterMarkerGroup(),n.addLayer(this._markerGroup)},_createMarker(n){let r=new L.Marker(n,{draggable:!0,icon:L.divIcon({className:"marker-icon"})});return this._setPane(r,"vertexPane"),r._pmTempLayer=!0,this.options.rotate?(r.on("dragstart",this._onRotateStart,this),r.on("drag",this._onRotate,this),r.on("dragend",this._onRotateEnd,this)):(r.on("click",this._onVertexClick,this),r.on("dragstart",this._onMarkerDragStart,this),r.on("move",this._onMarkerDrag,this),r.on("dragend",this._onMarkerDragEnd,this),this.options.preventMarkerRemoval||r.on(this.options.removeVertexOn,this._removeMarker,this)),this._markerGroup.addLayer(r),r},_createMiddleMarker(n,r){if(!n||!r)return!1;let a=L.PM.Utils.calcMiddleLatLng(this._map,n.getLatLng(),r.getLatLng()),c=this._createMarker(a),f=L.divIcon({className:"marker-icon marker-icon-middle"});return c.setIcon(f),c.leftM=n,c.rightM=r,n._middleMarkerNext=c,r._middleMarkerPrev=c,c.on(this.options.addVertexOn,this._onMiddleMarkerClick,this),c.on("movestart",this._onMiddleMarkerMoveStart,this),c},_onMiddleMarkerClick(n){let r=n.target;if(!this._vertexValidation("add",n))return;let a=L.divIcon({className:"marker-icon"});r.setIcon(a),this._addMarker(r,r.leftM,r.rightM)},_onMiddleMarkerMoveStart(n){let r=n.target;if(r.on("moveend",this._onMiddleMarkerMoveEnd,this),!this._vertexValidation("add",n)){r.on("move",this._onMiddleMarkerMovePrevent,this);return}r._dragging=!0,this._addMarker(r,r.leftM,r.rightM)},_onMiddleMarkerMovePrevent(n){let r=n.target;this._vertexValidationDrag(r)},_onMiddleMarkerMoveEnd(n){let r=n.target;if(r.off("move",this._onMiddleMarkerMovePrevent,this),r.off("moveend",this._onMiddleMarkerMoveEnd,this),!this._vertexValidationDragEnd(r))return;let a=L.divIcon({className:"marker-icon"});r.setIcon(a),setTimeout(()=>{delete r._dragging},100)},_addMarker(n,r,a){n.off("movestart",this._onMiddleMarkerMoveStart,this),n.off(this.options.addVertexOn,this._onMiddleMarkerClick,this);let c=n.getLatLng(),f=this._layer._latlngs;delete n.leftM,delete n.rightM;let{indexPath:g,index:v,parentPath:w}=L.PM.Utils.findDeepMarkerIndex(this._markers,r),M=g.length>1?(0,or.default)(f,w):f,P=g.length>1?(0,or.default)(this._markers,w):this._markers;M.splice(v+1,0,c),P.splice(v+1,0,n),this._layer.setLatLngs(f),this.options.hideMiddleMarkers!==!0&&(this._createMiddleMarker(r,n),this._createMiddleMarker(n,a)),this._fireEdit(),this._layerEdited=!0,this._fireChange(this._layer.getLatLngs(),"Edit"),this._fireVertexAdded(n,L.PM.Utils.findDeepMarkerIndex(this._markers,n).indexPath,c),this.options.snappable&&this._initSnappableMarkers()},hasSelfIntersection(){return Ar(this._layer.toGeoJSON(15)).features.length>0},_handleSelfIntersectionOnVertexRemoval(){this._handleLayerStyle(!0)&&(this._layer.setLatLngs(this._coordsBeforeEdit),this._coordsBeforeEdit=null,this._initMarkers())},_handleLayerStyle(n){let r=this._layer,a,c;if(this.options.allowSelfIntersection?a=!1:(c=Ar(this._layer.toGeoJSON(15)),a=c.features.length>0),a){if(!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this._updateDisabledMarkerStyle(this._markers,!0),this.isRed)return a;n?this._flashLayer():(r.setStyle({color:"#f00000ff"}),this.isRed=!0),this._fireIntersect(c)}else r.setStyle({color:this.cachedColor}),this.isRed=!1,!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this._updateDisabledMarkerStyle(this._markers,!1);return a},_flashLayer(){this.cachedColor||(this.cachedColor=this._layer.options.color),this._layer.setStyle({color:"#f00000ff"}),this.isRed=!0,window.setTimeout(()=>{this._layer.setStyle({color:this.cachedColor}),this.isRed=!1},200)},_updateDisabledMarkerStyle(n,r){n.forEach(a=>{Array.isArray(a)?this._updateDisabledMarkerStyle(a,r):a._icon&&(r&&!this._checkMarkerAllowedToDrag(a)?L.DomUtil.addClass(a._icon,"vertexmarker-disabled"):L.DomUtil.removeClass(a._icon,"vertexmarker-disabled"))})},_removeMarker(n){let r=n.target;if(!this._vertexValidation("remove",n))return;this.options.allowSelfIntersection||(this._coordsBeforeEdit=ki(this._layer,this._layer.getLatLngs()));let a=this._layer.getLatLngs(),{indexPath:c,index:f,parentPath:g}=L.PM.Utils.findDeepMarkerIndex(this._markers,r);if(!c)return;let v=c.length>1?(0,or.default)(a,g):a,w=c.length>1?(0,or.default)(this._markers,g):this._markers;if(!this.options.removeLayerBelowMinVertexCount&&(v.length<=2||this.isPolygon()&&v.length<=3)){this._flashLayer();return}v.splice(f,1),this._layer.setLatLngs(a),this.isPolygon()&&v.length<=2&&v.splice(0,v.length);let M=!1;if(v.length<=1&&(v.splice(0,v.length),g.length>1&&c.length>1&&(a=wi(a)),this._layer.setLatLngs(a),this._initMarkers(),M=!0),On(a)||this._layer.remove(),a=wi(a),this._layer.setLatLngs(a),this._markers=wi(this._markers),!M&&(w=c.length>1?(0,or.default)(this._markers,g):this._markers,r._middleMarkerPrev&&(this._markerGroup.removeLayer(r._middleMarkerPrev),this._removeFromCache(r._middleMarkerPrev)),r._middleMarkerNext&&(this._markerGroup.removeLayer(r._middleMarkerNext),this._removeFromCache(r._middleMarkerNext)),this._markerGroup.removeLayer(r),this._removeFromCache(r),w)){let P,V;if(this.isPolygon()?(P=(f+1)%w.length,V=(f+(w.length-1))%w.length):(V=f-1<0?void 0:f-1,P=f+1>=w.length?void 0:f+1),P!==V){let I=w[V],it=w[P];this.options.hideMiddleMarkers!==!0&&this._createMiddleMarker(I,it)}w.splice(f,1)}this._fireEdit(),this._layerEdited=!0,this._fireVertexRemoved(r,c),this._fireChange(this._layer.getLatLngs(),"Edit")},updatePolygonCoordsFromMarkerDrag(n){let r=this._layer.getLatLngs(),a=n.getLatLng(),{indexPath:c,index:f,parentPath:g}=L.PM.Utils.findDeepMarkerIndex(this._markers,n);(c.length>1?(0,or.default)(r,g):r).splice(f,1,a),this._layer.setLatLngs(r)},_getNeighborMarkers(n){let{indexPath:r,index:a,parentPath:c}=L.PM.Utils.findDeepMarkerIndex(this._markers,n),f=r.length>1?(0,or.default)(this._markers,c):this._markers,g=(a+1)%f.length,v=(a+(f.length-1))%f.length,w=f[v],M=f[g];return{prevMarker:w,nextMarker:M}},_checkMarkerAllowedToDrag(n){let{prevMarker:r,nextMarker:a}=this._getNeighborMarkers(n),c=L.polyline([r.getLatLng(),n.getLatLng()]),f=L.polyline([n.getLatLng(),a.getLatLng()]),g=Pn(this._layer.toGeoJSON(15),c.toGeoJSON(15)).features.length,v=Pn(this._layer.toGeoJSON(15),f.toGeoJSON(15)).features.length;return n.getLatLng()===this._markers[0][0].getLatLng()?v+=1:n.getLatLng()===this._markers[0][this._markers[0].length-1].getLatLng()&&(g+=1),!(g<=2&&v<=2)},_onMarkerDragStart(n){let r=n.target;if(this.cachedColor||(this.cachedColor=this._layer.options.color),!this._vertexValidation("move",n))return;let{indexPath:a}=L.PM.Utils.findDeepMarkerIndex(this._markers,r);this._fireMarkerDragStart(n,a),this.options.allowSelfIntersection||(this._coordsBeforeEdit=ki(this._layer,this._layer.getLatLngs())),!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this.hasSelfIntersection()?this._markerAllowedToDrag=this._checkMarkerAllowedToDrag(r):this._markerAllowedToDrag=null},_onMarkerDrag(n){let r=n.target;if(!this._vertexValidationDrag(r))return;let{indexPath:a,index:c,parentPath:f}=L.PM.Utils.findDeepMarkerIndex(this._markers,r);if(!a)return;if(!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this.hasSelfIntersection()&&this._markerAllowedToDrag===!1){this._layer.setLatLngs(this._coordsBeforeEdit),this._initMarkers(),this._handleLayerStyle();return}this.updatePolygonCoordsFromMarkerDrag(r);let g=a.length>1?(0,or.default)(this._markers,f):this._markers,v=(c+1)%g.length,w=(c+(g.length-1))%g.length,M=r.getLatLng(),P=g[w].getLatLng(),V=g[v].getLatLng();if(r._middleMarkerNext){let I=L.PM.Utils.calcMiddleLatLng(this._map,M,V);r._middleMarkerNext.setLatLng(I)}if(r._middleMarkerPrev){let I=L.PM.Utils.calcMiddleLatLng(this._map,M,P);r._middleMarkerPrev.setLatLng(I)}this.options.allowSelfIntersection||this._handleLayerStyle(),this._fireMarkerDrag(n,a),this._fireChange(this._layer.getLatLngs(),"Edit")},_onMarkerDragEnd(n){let r=n.target;if(!this._vertexValidationDragEnd(r))return;let{indexPath:a}=L.PM.Utils.findDeepMarkerIndex(this._markers,r),c=this.hasSelfIntersection();c&&this.options.allowSelfIntersectionEdit&&this._markerAllowedToDrag&&(c=!1);let f=!this.options.allowSelfIntersection&&c;if(this._fireMarkerDragEnd(n,a,f),f){this._layer.setLatLngs(this._coordsBeforeEdit),this._coordsBeforeEdit=null,this._initMarkers(),this.options.snappable&&this._initSnappableMarkers(),this._handleLayerStyle(),this._fireLayerReset(n,a);return}!this.options.allowSelfIntersection&&this.options.allowSelfIntersectionEdit&&this._handleLayerStyle(),this._fireEdit(),this._layerEdited=!0,this._fireChange(this._layer.getLatLngs(),"Edit")},_onVertexClick(n){let r=n.target;if(r._dragging)return;let{indexPath:a}=L.PM.Utils.findDeepMarkerIndex(this._markers,r);this._fireVertexClick(n,a)}}),vn.Polygon=vn.Line.extend({_shape:"Polygon",_checkMarkerAllowedToDrag(n){let{prevMarker:r,nextMarker:a}=this._getNeighborMarkers(n),c=L.polyline([r.getLatLng(),n.getLatLng()]),f=L.polyline([n.getLatLng(),a.getLatLng()]),g=Pn(this._layer.toGeoJSON(15),c.toGeoJSON(15)).features.length,v=Pn(this._layer.toGeoJSON(15),f.toGeoJSON(15)).features.length;return!(g<=2&&v<=2)}}),vn.Rectangle=vn.Polygon.extend({_shape:"Rectangle",_initMarkers(){let n=this._map,r=this._findCorners();this._markerGroup&&this._markerGroup.clearLayers(),this._markerGroup=new L.FeatureGroup,this._markerGroup._pmTempLayer=!0,n.addLayer(this._markerGroup),this._markers=[],this._markers[0]=r.map(this._createMarker,this),[this._cornerMarkers]=this._markers,this._layer.getLatLngs()[0].forEach((a,c)=>{let f=this._cornerMarkers.find(g=>g._index===c);f&&f.setLatLng(a)})},applyOptions(){this.options.snappable?this._initSnappableMarkers():this._disableSnapping(),this._addMarkerEvents()},_createMarker(n,r){let a=new L.Marker(n,{draggable:!0,icon:L.divIcon({className:"marker-icon"})});return this._setPane(a,"vertexPane"),a._origLatLng=n,a._index=r,a._pmTempLayer=!0,a.on("click",this._onVertexClick,this),this._markerGroup.addLayer(a),a},_addMarkerEvents(){this._markers[0].forEach(n=>{n.on("dragstart",this._onMarkerDragStart,this),n.on("drag",this._onMarkerDrag,this),n.on("dragend",this._onMarkerDragEnd,this),this.options.preventMarkerRemoval||n.on("contextmenu",this._removeMarker,this)})},_removeMarker(){return null},_onMarkerDragStart(n){if(!this._vertexValidation("move",n))return;let r=n.target,a=this._cornerMarkers;r._oppositeCornerLatLng=a.find(f=>f._index===(r._index+2)%4).getLatLng(),r._snapped=!1;let{indexPath:c}=L.PM.Utils.findDeepMarkerIndex(this._markers,r);this._fireMarkerDragStart(n,c)},_onMarkerDrag(n){let r=n.target;if(!this._vertexValidationDrag(r)||r._index===void 0)return;this._adjustRectangleForMarkerMove(r);let{indexPath:a}=L.PM.Utils.findDeepMarkerIndex(this._markers,r);this._fireMarkerDrag(n,a),this._fireChange(this._layer.getLatLngs(),"Edit")},_onMarkerDragEnd(n){let r=n.target;if(!this._vertexValidationDragEnd(r))return;this._cornerMarkers.forEach(c=>{delete c._oppositeCornerLatLng});let{indexPath:a}=L.PM.Utils.findDeepMarkerIndex(this._markers,r);this._fireMarkerDragEnd(n,a),this._fireEdit(),this._layerEdited=!0,this._fireChange(this._layer.getLatLngs(),"Edit")},_adjustRectangleForMarkerMove(n){L.extend(n._origLatLng,n._latlng);let r=L.PM.Utils._getRotatedRectangle(n.getLatLng(),n._oppositeCornerLatLng,this.getAngle(),this._map);this._layer.setLatLngs(r),this._adjustAllMarkers(),this._layer.redraw()},_adjustAllMarkers(){let n=this._layer.getLatLngs()[0];n&&n.length!==4&&n.length>0?(n.forEach((r,a)=>{this._cornerMarkers[a].setLatLng(r)}),this._cornerMarkers.slice(n.length).forEach(r=>{r.setLatLng(n[0])})):!n||!n.length?console.error("The layer has no LatLngs"):this._cornerMarkers.forEach(r=>{r.setLatLng(n[r._index])})},_findCorners(){this._angle===void 0&&this.setInitAngle(ds(this._map,this._layer.getLatLngs()[0][0],this._layer.getLatLngs()[0][1])||0);let n=this._layer.getLatLngs()[0];return L.PM.Utils._getRotatedRectangle(n[0],n[2],this.getAngle(),this._map||this)}}),vn.CircleMarker=vn.extend({_shape:"CircleMarker",initialize(n){this._layer=n,this._enabled=!1,this._minRadiusOption="minRadiusCircleMarker",this._maxRadiusOption="maxRadiusCircleMarker",this._editableOption="resizeableCircleMarker",this._updateHiddenPolyCircle()},enable(n={draggable:!0,snappable:!0}){if(L.Util.setOptions(this,n),this.options.editable&&(this.options.resizeableCircleMarker=this.options.editable,delete this.options.editable),!this.options.allowEditing||!this._layer._map){this.disable();return}this._map=this._layer._map,this.enabled()&&this.disable(),this.applyOptions(),this._layer.on("remove",this.disable,this),this._enabled=!0,this._extendingEnable(),this._updateHiddenPolyCircle(),this._fireEnable()},_extendingEnable(){this._layer.on("pm:dragstart",this._onDragStart,this),this._layer.on("pm:drag",this._onMarkerDrag,this),this._layer.on("pm:dragend",this._onMarkerDragEnd,this)},disable(){this.dragging()||(this._map||(this._map=this._layer._map),this._map&&this.enabled()&&(this.layerDragEnabled()&&this.disableLayerDrag(),this.options[this._editableOption]?(this._helperLayers&&this._helperLayers.clearLayers(),this._map.off("move",this._syncMarkers,this),this._outerMarker.off("drag",this._handleOuterMarkerSnapping,this)):this._map.off("move",this._updateHiddenPolyCircle,this),this._extendingDisable(),this._layer.off("remove",this.disable,this),this._layerEdited&&this._fireUpdate(),this._layerEdited=!1,this._fireDisable(),this._enabled=!1))},_extendingDisable(){this._layer.off("contextmenu",this._removeMarker,this)},enabled(){return this._enabled},toggleEdit(n){this.enabled()?this.disable():this.enable(n)},applyOptions(){this.options[this._editableOption]?(this._initMarkers(),this._map.on("move",this._syncMarkers,this),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()):(this.options.draggable&&this.enableLayerDrag(),this._map.on("move",this._updateHiddenPolyCircle,this),this.options.snappable?this._initSnappableMarkersDrag():this._disableSnappingDrag()),this._extendingApplyOptions()},_extendingApplyOptions(){this.options.preventMarkerRemoval||this._layer.on("contextmenu",this._removeMarker,this)},_initMarkers(){let n=this._map;this._helperLayers&&this._helperLayers.clearLayers(),this._helperLayers=new L.FeatureGroup,this._helperLayers._pmTempLayer=!0,this._helperLayers.addTo(n);let r=this._layer.getLatLng(),a=this._layer._radius,c=this._getLatLngOnCircle(r,a);this._centerMarker=this._createCenterMarker(r),this._outerMarker=this._createOuterMarker(c),this._markers=[this._centerMarker,this._outerMarker],this._createHintLine(this._centerMarker,this._outerMarker)},_getLatLngOnCircle(n,r){let a=this._map.project(n),c=L.point(a.x+r,a.y);return this._map.unproject(c)},_createHintLine(n,r){let a=n.getLatLng(),c=r.getLatLng();this._hintline=L.polyline([a,c],this.options.hintlineStyle),this._setPane(this._hintline,"layerPane"),this._hintline._pmTempLayer=!0,this._helperLayers.addLayer(this._hintline)},_createCenterMarker(n){let r=this._createMarker(n);return this.options.draggable?L.DomUtil.addClass(r._icon,"leaflet-pm-draggable"):r.dragging.disable(),r},_createOuterMarker(n){let r=this._createMarker(n);return r.on("drag",this._resizeCircle,this),r},_createMarker(n){let r=new L.Marker(n,{draggable:!0,icon:L.divIcon({className:"marker-icon"})});return this._setPane(r,"vertexPane"),r._origLatLng=n,r._pmTempLayer=!0,r.on("dragstart",this._onMarkerDragStart,this),r.on("drag",this._onMarkerDrag,this),r.on("dragend",this._onMarkerDragEnd,this),r.on("click",this._onVertexClick,this),this._helperLayers.addLayer(r),r},_moveCircle(n){if(n.target._cancelDragEventChain)return;let r=this._centerMarker.getLatLng();this._layer.setLatLng(r);let a=this._layer._radius,c=this._getLatLngOnCircle(r,a);this._outerMarker._latlng=c,this._outerMarker.update(),this._syncHintLine(),this._updateHiddenPolyCircle(),this._fireCenterPlaced("Edit"),this._fireChange(this._layer.getLatLng(),"Edit")},_syncMarkers(){let n=this._layer.getLatLng(),r=this._layer._radius,a=this._getLatLngOnCircle(n,r);this._outerMarker.setLatLng(a),this._centerMarker.setLatLng(n),this._syncHintLine(),this._updateHiddenPolyCircle()},_resizeCircle(){this._outerMarker.setLatLng(this._getNewDestinationOfOuterMarker()),this._syncHintLine(),this._syncCircleRadius()},_syncCircleRadius(){let n=this._centerMarker.getLatLng(),r=this._outerMarker.getLatLng(),a=this._distanceCalculation(n,r);this.options[this._minRadiusOption]&&athis.options[this._maxRadiusOption]?this._layer.setRadius(this.options[this._maxRadiusOption]):this._layer.setRadius(a),this._updateHiddenPolyCircle(),this._fireChange(this._layer.getLatLng(),"Edit")},_syncHintLine(){let n=this._centerMarker.getLatLng(),r=this._outerMarker.getLatLng();this._hintline.setLatLngs([n,r])},_removeMarker(){this.options[this._editableOption]&&this.disable(),this._layer.remove(),this._fireRemove(this._layer),this._fireRemove(this._map,this._layer)},_onDragStart(){this._map.pm.Draw.CircleMarker._layerIsDragging=!0},_onMarkerDragStart(n){this._vertexValidation("move",n)&&this._fireMarkerDragStart(n)},_onMarkerDrag(n){let r=n.target;r instanceof L.Marker&&!this._vertexValidationDrag(r)||this._fireMarkerDrag(n)},_onMarkerDragEnd(n){this._extedingMarkerDragEnd();let r=n.target;this._vertexValidationDragEnd(r)&&(this.options[this._editableOption]&&(this._fireEdit(),this._layerEdited=!0),this._fireMarkerDragEnd(n))},_extedingMarkerDragEnd(){this._map.pm.Draw.CircleMarker._layerIsDragging=!1},_initSnappableMarkersDrag(){let n=this._layer;this.options.snapDistance=this.options.snapDistance||30,this.options.snapSegment=this.options.snapSegment===void 0?!0:this.options.snapSegment,n.off("pm:drag",this._handleSnapping,this),n.on("pm:drag",this._handleSnapping,this),n.off("pm:dragend",this._cleanupSnapping,this),n.on("pm:dragend",this._cleanupSnapping,this),n.off("pm:dragstart",this._unsnap,this),n.on("pm:dragstart",this._unsnap,this)},_disableSnappingDrag(){let n=this._layer;n.off("pm:drag",this._handleSnapping,this),n.off("pm:dragend",this._cleanupSnapping,this),n.off("pm:dragstart",this._unsnap,this)},_updateHiddenPolyCircle(){let n=this._layer._map||this._map;if(n){let r=L.PM.Utils.pxRadiusToMeterRadius(this._layer.getRadius(),n,this._layer.getLatLng()),a=L.circle(this._layer.getLatLng(),this._layer.options);a.setRadius(r);let c=n&&n.pm._isCRSSimple();this._hiddenPolyCircle?this._hiddenPolyCircle.setLatLngs(L.PM.Utils.circleToPolygon(a,200,!c).getLatLngs()):this._hiddenPolyCircle=L.PM.Utils.circleToPolygon(a,200,!c),this._hiddenPolyCircle._parentCopy||(this._hiddenPolyCircle._parentCopy=this._layer)}},_getNewDestinationOfOuterMarker(){let n=this._centerMarker.getLatLng(),r=this._outerMarker.getLatLng(),a=this._distanceCalculation(n,r);return this.options[this._minRadiusOption]&&athis.options[this._maxRadiusOption]&&(r=Tr(this._map,n,r,this._getMaxDistanceInMeter(n))),r},_handleOuterMarkerSnapping(){if(this._outerMarker._snapped){let n=this._centerMarker.getLatLng(),r=this._outerMarker.getLatLng(),a=this._distanceCalculation(n,r);this.options[this._minRadiusOption]&&athis.options[this._maxRadiusOption]&&this._outerMarker.setLatLng(this._outerMarker._orgLatLng)}this._outerMarker.setLatLng(this._getNewDestinationOfOuterMarker())},_distanceCalculation(n,r){return this._map.project(n).distanceTo(this._map.project(r))},_getMinDistanceInMeter(n){return L.PM.Utils.pxRadiusToMeterRadius(this.options[this._minRadiusOption],this._map,n)},_getMaxDistanceInMeter(n){return L.PM.Utils.pxRadiusToMeterRadius(this.options[this._maxRadiusOption],this._map,n)},_onVertexClick(n){n.target._dragging||this._fireVertexClick(n,void 0)}}),vn.Circle=vn.CircleMarker.extend({_shape:"Circle",initialize(n){this._layer=n,this._enabled=!1,this._minRadiusOption="minRadiusCircle",this._maxRadiusOption="maxRadiusCircle",this._editableOption="resizableCircle",this._updateHiddenPolyCircle()},enable(n){L.PM.Edit.CircleMarker.prototype.enable.call(this,n||{})},_extendingEnable(){},_extendingDisable(){this._layer.off("remove",this.disable,this);let n=this._layer._path?this._layer._path:this._layer._renderer._container;L.DomUtil.removeClass(n,"leaflet-pm-draggable")},_extendingApplyOptions(){},_syncMarkers(){},_removeMarker(){},_onDragStart(){},_extedingMarkerDragEnd(){},_updateHiddenPolyCircle(){let n=this._map&&this._map.pm._isCRSSimple();this._hiddenPolyCircle?this._hiddenPolyCircle.setLatLngs(L.PM.Utils.circleToPolygon(this._layer,200,!n).getLatLngs()):this._hiddenPolyCircle=L.PM.Utils.circleToPolygon(this._layer,200,!n),this._hiddenPolyCircle._parentCopy||(this._hiddenPolyCircle._parentCopy=this._layer)},_distanceCalculation(n,r){return this._map.distance(n,r)},_getMinDistanceInMeter(){return this.options[this._minRadiusOption]},_getMaxDistanceInMeter(){return this.options[this._maxRadiusOption]},_onVertexClick(n){n.target._dragging||this._fireVertexClick(n,void 0)}}),vn.ImageOverlay=vn.extend({_shape:"ImageOverlay",initialize(n){this._layer=n,this._enabled=!1},toggleEdit(n){this.enabled()?this.disable():this.enable(n)},enabled(){return this._enabled},enable(n={draggable:!0,snappable:!0}){if(L.Util.setOptions(this,n),this._map=this._layer._map,!!this._map){if(!this.options.allowEditing){this.disable();return}this.enabled()||this.disable(),this.enableLayerDrag(),this._layer.on("remove",this.disable,this),this._enabled=!0,this._otherSnapLayers=this._findCorners(),this._fireEnable()}},disable(){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(){let n=this._layer.getBounds(),r=n.getNorthWest(),a=n.getNorthEast(),c=n.getSouthEast(),f=n.getSouthWest();return[r,a,c,f]}}),vn.Text=vn.extend({_shape:"Text",initialize(n){this._layer=n,this._enabled=!1},enable(n){if(L.Util.setOptions(this,n),!!this.textArea){if(!this.options.allowEditing||!this._layer._map){this.disable();return}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()}},disable(){if(!this.enabled())return;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");let n=document.activeElement;this.textArea.focus(),this.textArea.selectionStart=0,this.textArea.selectionEnd=0,L.DomEvent.on(this.textArea,"mousedown",this._preventTextSelection),n.focus(),this._disableOnBlurActive=!1,this._layerEdited&&this._fireUpdate(),this._layerEdited=!1,this._fireDisable(),this._enabled=!1},enabled(){return this._enabled},toggleEdit(n){this.enabled()?this.disable():this.enable(n)},applyOptions(){this.options.snappable?this._initSnappableMarkers():this._disableSnapping()},_initSnappableMarkers(){let n=this._layer;this.options.snapDistance=this.options.snapDistance||30,this.options.snapSegment=this.options.snapSegment===void 0?!0:this.options.snapSegment,n.off("pm:drag",this._handleSnapping,this),n.on("pm:drag",this._handleSnapping,this),n.off("pm:dragend",this._cleanupSnapping,this),n.on("pm:dragend",this._cleanupSnapping,this),n.off("pm:dragstart",this._unsnap,this),n.on("pm:dragstart",this._unsnap,this)},_disableSnapping(){let n=this._layer;n.off("pm:drag",this._handleSnapping,this),n.off("pm:dragend",this._cleanupSnapping,this),n.off("pm:dragstart",this._unsnap,this)},_autoResize(){this.textArea.style.height="1px",this.textArea.style.width="1px";let n=this.textArea.scrollHeight>21?this.textArea.scrollHeight:21,r=this.textArea.scrollWidth>16?this.textArea.scrollWidth:16;this.textArea.style.height=`${n}px`,this.textArea.style.width=`${r}px`,this._layer.options.text=this.getText(),this._fireTextChange(this.getText())},_disableOnBlur(){this._disableOnBlurActive=!0,setTimeout(()=>{this.enabled()&&L.DomEvent.on(document,"click",this._documentClick,this)},100)},_documentClick(n){n.target!==this.textArea&&(this.disable(),!this.getText()&&this.options.removeIfEmpty&&this.remove())},_focusChange(n={}){let r=this._hasFocus;this._hasFocus=n.type==="focus",!r!=!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(){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(){this._map.dragging&&(this._originalMapDragState&&this._map.dragging.enable(),this._safeToCacheDragState=!0),this.textArea.classList.remove("pm-hasfocus")},focus(){if(!this.enabled())throw new TypeError("Layer is not enabled");this.textArea.focus()},blur(){if(!this.enabled())throw new TypeError("Layer is not enabled");this.textArea.blur(),this._disableOnBlurActive&&this.disable()},hasFocus(){return this._hasFocus},getElement(){return this.textArea},setText(n){this.textArea.value=n,this._autoResize()},getText(){return this.textArea.value},_initTextMarker(){if(this.textArea=L.PM.Draw.Text.prototype._createTextArea.call(this),this.options.className){let r=this.options.className.split(" ");this.textArea.classList.add(...r)}let n=L.PM.Draw.Text.prototype._createTextIcon.call(this,this.textArea);this._layer.setIcon(n),this._layer.once("add",this._createTextMarker,this)},_createTextMarker(n=!1){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(),n===!0&&(this.enable(),this.focus(),this._disableOnBlur())},_preventTextSelection(n){n.preventDefault()}});var Ou=function(n,r,a,c,f,g){this._matrix=[n,r,a,c,f,g]};Ou.init=()=>new L.PM.Matrix(1,0,0,1,0,0),Ou.prototype={transform(n){return this._transform(n.clone())},_transform(n){let r=this._matrix,{x:a,y:c}=n;return n.x=r[0]*a+r[1]*c+r[4],n.y=r[2]*a+r[3]*c+r[5],n},untransform(n){let r=this._matrix;return new L.Point((n.x/r[0]-r[4])/r[0],(n.y/r[2]-r[5])/r[2])},clone(){let n=this._matrix;return new L.PM.Matrix(n[0],n[1],n[2],n[3],n[4],n[5])},translate(n){if(n===void 0)return new L.Point(this._matrix[4],this._matrix[5]);let r,a;return typeof n=="number"?(r=n,a=n):(r=n.x,a=n.y),this._add(1,0,0,1,r,a)},scale(n,r){if(n===void 0)return new L.Point(this._matrix[0],this._matrix[3]);let a,c;return r=r||L.point(0,0),typeof n=="number"?(a=n,c=n):(a=n.x,c=n.y),this._add(a,0,0,c,r.x,r.y)._add(1,0,0,1,-r.x,-r.y)},rotate(n,r){let a=Math.cos(n),c=Math.sin(n);return r=r||new L.Point(0,0),this._add(a,c,-c,a,r.x,r.y)._add(1,0,0,1,-r.x,-r.y)},flip(){return this._matrix[1]*=-1,this._matrix[2]*=-1,this},_add(n,r,a,c,f,g){let v=[[],[],[]],w=this._matrix,M=[[w[0],w[2],w[4]],[w[1],w[3],w[5]],[0,0,1]],P=[[n,a,f],[r,c,g],[0,0,1]],V;n&&n instanceof L.PM.Matrix&&(w=n._matrix,P=[[w[0],w[2],w[4]],[w[1],w[3],w[5]],[0,0,1]]);for(let I=0;I<3;I+=1)for(let it=0;it<3;it+=1){V=0;for(let lt=0;lt<3;lt+=1)V+=M[I][lt]*P[lt][it];v[I][it]=V}return this._matrix=[v[0][0],v[1][0],v[0][1],v[1][1],v[0][2],v[1][2]],this}};var E_=Ou,P_={calcMiddleLatLng(n,r,a){let c=n.project(r),f=n.project(a);return n.unproject(c._add(f)._divideBy(2))},findLayers(n){let r=[];return n.eachLayer(a=>{(a instanceof L.Polyline||a instanceof L.Marker||a instanceof L.Circle||a instanceof L.CircleMarker||a instanceof L.ImageOverlay)&&r.push(a)}),r=r.filter(a=>!!a.pm),r=r.filter(a=>!a._pmTempLayer),r=r.filter(a=>!L.PM.optIn&&!a.options.pmIgnore||L.PM.optIn&&a.options.pmIgnore===!1),r},circleToPolygon(n,r=60,a=!0){let c=n.getLatLng(),f=n.getRadius(),g=Ma(c,f,r,0,a),v=[];for(let w=0;w{g.fire(r,a,c)})},getAllParentGroups(n){let r=[],a=[],c=f=>{for(let g in f._eventParents)if(r.indexOf(g)===-1){r.push(g);let v=f._eventParents[g];a.push(v),c(v)}};return!n._pmLastGroupFetch||!n._pmLastGroupFetch.time||new Date().getTime()-n._pmLastGroupFetch.time>1e3?(c(n),n._pmLastGroupFetch={time:new Date().getTime(),groups:a,groupIds:r},{groupIds:r,groups:a}):{groups:n._pmLastGroupFetch.groups,groupIds:n._pmLastGroupFetch.groupIds}},createGeodesicPolygon:Ma,getTranslation:Pe,findDeepCoordIndex(n,r,a=!0){let c,f=v=>(w,M)=>{let P=v.concat(M);if(a){if(w.lat&&w.lat===r.lat&&w.lng===r.lng)return c=P,!0}else if(w.lat&&L.latLng(w).equals(r))return c=P,!0;return Array.isArray(w)&&w.some(f(P))};n.some(f([]));let g={};return c&&(g={indexPath:c,index:c[c.length-1],parentPath:c.slice(0,c.length-1)}),g},findDeepMarkerIndex(n,r){let a,c=g=>(v,w)=>{let M=g.concat(w);return v._leaflet_id===r._leaflet_id?(a=M,!0):Array.isArray(v)&&v.some(c(M))};n.some(c([]));let f={};return a&&(f={indexPath:a,index:a[a.length-1],parentPath:a.slice(0,a.length-1)}),f},_getIndexFromSegment(n,r){if(r&&r.length===2){let a=this.findDeepCoordIndex(n,r[0]),c=this.findDeepCoordIndex(n,r[1]),f=Math.max(a.index,c.index);return(a.index===0||c.index===0)&&f!==1&&(f+=1),{indexA:a,indexB:c,newIndex:f,indexPath:a.indexPath,parentPath:a.parentPath}}return null},_getRotatedRectangle(n,r,a,c){let f=Eo(c,n),g=Eo(c,r),v=a*Math.PI/180,w=Math.cos(v),M=Math.sin(v),P=(g.x-f.x)*w+(g.y-f.y)*M,V=(g.y-f.y)*w-(g.x-f.x)*M,I=P*w+f.x,it=P*M+f.y,lt=-V*M+f.x,Mt=V*w+f.y,zt=Ua(c,f),qt=Ua(c,{x:I,y:it}),Be=Ua(c,g),z=Ua(c,{x:lt,y:Mt});return[zt,qt,Be,z]},pxRadiusToMeterRadius(n,r,a){let c=r.project(a),f=L.point(c.x+n,c.y);return r.distance(r.unproject(f),a)}},B_=P_;L.PM=L.PM||{version:ts.version,Map:_u,Toolbar:Ba,Draw:fn,Edit:vn,Utils:B_,Matrix:E_,activeLang:"en",optIn:!1,initialize(n){this.addInitHooks(n)},setOptIn(n){this.optIn=!!n},addInitHooks(){function n(){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.Map.addInitHook(n);function r(){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.LayerGroup.addInitHook(r);function a(){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.Marker.addInitHook(a);function c(){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.CircleMarker.addInitHook(c);function f(){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.Polyline.addInitHook(f);function g(){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.Polygon.addInitHook(g);function v(){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.Rectangle.addInitHook(v);function w(){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.Circle.addInitHook(w);function M(){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))}L.ImageOverlay.addInitHook(M)},reInitLayer(n){n instanceof L.LayerGroup&&n.eachLayer(r=>{this.reInitLayer(r)}),n.pm||L.PM.optIn&&n.options.pmIgnore!==!1||n.options.pmIgnore||(n instanceof L.Map?n.pm=new L.PM.Map(n):n instanceof L.Marker?n.options.textMarker?(n.pm=new L.PM.Edit.Text(n),n.pm._initTextMarker(),n.pm._createTextMarker(!1)):n.pm=new L.PM.Edit.Marker(n):n instanceof L.Circle?n.pm=new L.PM.Edit.Circle(n):n instanceof L.CircleMarker?n.pm=new L.PM.Edit.CircleMarker(n):n instanceof L.Rectangle?n.pm=new L.PM.Edit.Rectangle(n):n instanceof L.Polygon?n.pm=new L.PM.Edit.Polygon(n):n instanceof L.Polyline?n.pm=new L.PM.Edit.Line(n):n instanceof L.LayerGroup?n.pm=new L.PM.Edit.LayerGroup(n):n instanceof L.ImageOverlay&&(n.pm=new L.PM.Edit.ImageOverlay(n)))}},L.version==="1.7.1"&&L.Canvas.include({_onClick(n){let r=this._map.mouseEventToLayerPoint(n),a,c;for(let f=this._drawFirst;f;f=f.next)a=f.layer,a.options.interactive&&a._containsPoint(r)&&(!(n.type==="click"||n.type==="preclick")||!this._map._draggableMoved(a))&&(c=a);c&&(L.DomEvent.fakeStop(n),this._fireEvent([c],n))}}),L.PM.initialize()})();var zd={exports:{}};(function(t,i){(function(s,u){u(i)})(Oo,function(s){var u=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(l){L.Util.setOptions(this,l),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var h=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,h?this._withAnimation:this._noAnimation),this._markerCluster=h?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(l){if(l instanceof L.LayerGroup)return this.addLayers([l]);if(!l.getLatLng)return this._nonPointGroup.addLayer(l),this.fire("layeradd",{layer:l}),this;if(!this._map)return this._needsClustering.push(l),this.fire("layeradd",{layer:l}),this;if(this.hasLayer(l))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(l,this._maxZoom),this.fire("layeradd",{layer:l}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var h=l,_=this._zoom;if(l.__parent)for(;h.__parent._zoom>=_;)h=h.__parent;return this._currentShownBounds.contains(h.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(l,h):this._animationAddLayerNonAnimated(l,h)),this},removeLayer:function(l){return l instanceof L.LayerGroup?this.removeLayers([l]):(l.getLatLng?this._map?l.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(l)),this._removeLayer(l,!0),this.fire("layerremove",{layer:l}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),l.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(l)&&(this._featureGroup.removeLayer(l),l.clusterShow&&l.clusterShow())):(!this._arraySplice(this._needsClustering,l)&&this.hasLayer(l)&&this._needsRemoving.push({layer:l,latlng:l._latlng}),this.fire("layerremove",{layer:l})):(this._nonPointGroup.removeLayer(l),this.fire("layerremove",{layer:l})),this)},addLayers:function(l,h){if(!L.Util.isArray(l))return this.addLayer(l);var _,m=this._featureGroup,x=this._nonPointGroup,b=this.options.chunkedLoading,k=this.options.chunkInterval,T=this.options.chunkProgress,j=l.length,$=0,Y=!0;if(this._map){var vt=new Date().getTime(),_t=L.bind(function(){var H=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();$"+h+"",className:"marker-cluster"+_,iconSize:new L.Point(40,40)})},_bindEvents:function(){var l=this._map,h=this.options.spiderfyOnMaxZoom,_=this.options.showCoverageOnHover,m=this.options.zoomToBoundsOnClick,x=this.options.spiderfyOnEveryZoom;(h||m||x)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),_&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),l.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(l){var h=l.layer,_=h;if(l.type!=="clusterkeypress"||!l.originalEvent||l.originalEvent.keyCode===13){for(;_._childClusters.length===1;)_=_._childClusters[0];_._zoom===this._maxZoom&&_._childCount===h._childCount&&this.options.spiderfyOnMaxZoom?h.spiderfy():this.options.zoomToBoundsOnClick&&h.zoomToBounds(),this.options.spiderfyOnEveryZoom&&h.spiderfy(),l.originalEvent&&l.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(l){var h=this._map;this._inZoomAnimation||(this._shownPolygon&&h.removeLayer(this._shownPolygon),2j._zoom;m--)Y=new this._markerCluster(this,m,Y),x[m].addObject(Y,this._map.project(T.getLatLng(),m));return j._addChild(Y),void this._removeFromGridUnclustered(T,h)}b[h].addObject(l,_)}this._topClusterLevel._addChild(l),l.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(l){l instanceof L.MarkerCluster&&l._iconNeedsUpdate&&l._updateIcon()})},_enqueue:function(l){this._queue.push(l),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var l=0;ll?(this._animationStart(),this._animationZoomOut(this._zoom,l)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(l){var h=this._maxLat;return h!==void 0&&(l.getNorth()>=h&&(l._northEast.lat=1/0),l.getSouth()<=-h&&(l._southWest.lat=-1/0)),l},_animationAddLayerNonAnimated:function(l,h){if(h===l)this._featureGroup.addLayer(l);else if(h._childCount===2){h._addToMap();var _=h.getAllChildMarkers();this._featureGroup.removeLayer(_[0]),this._featureGroup.removeLayer(_[1])}else h._updateIcon()},_extractNonGroupLayers:function(l,h){var _,m=l.getLayers(),x=0;for(h=h||[];x_)&&(_=(k=_t).lat),(m===!1||_t.latx)&&(x=(j=_t).lng),(b===!1||_t.lng=this._circleSpiralSwitchover?this._generatePointsSpiral(h.length,_):(_.y+=10,this._generatePointsCircle(h.length,_)),this._animationSpiderfy(h,l)}},unspiderfy:function(l){this._group._inZoomAnimation||(this._animationUnspiderfy(l),this._group._spiderfied=null)},_generatePointsCircle:function(l,h){var _,m,x=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+l)/this._2PI,b=this._2PI/l,k=[];for(x=Math.max(x,35),k.length=l,_=0;_[0,0]},geojson:{type:Object,default:void 0},zoomBounds:{type:Number,default:void 0},geojsonOptions:{type:Function,default:()=>({})},prefix:{type:[String,Boolean],default:!1},cluster:{type:Boolean,default:!1},maxClusterRadius:{type:Number,default:20},clusterIconCreateFunction:{type:Function,default:void 0}},emits:["add:layer","drag:layer","draw:start","edit:layer","geojson","geojson:ready","zoom:change","zoom:start"],setup(t,{expose:i,emit:s}){delete Hn.Icon.Default.prototype._getIconUrl,Hn.Icon.Default.mergeOptions({iconRetinaUrl:xL,iconUrl:LL,shadowUrl:CL});const u=t,p=s;let l,h,_,m;const x=Jt(null),b=he(()=>({maxZoom:u.zoomBounds,zoom:{animate:u.zoomAnimate}}));mn(()=>u.geojson,H=>{m.clearLayers(),_t(H)},{deep:!0}),mn(()=>u.dragging,H=>{H?l.dragging.enable():l.dragging.disable()});function k(){const H={maxClusterRadius:u.maxClusterRadius};return u.clusterIconCreateFunction&&Object.assign(H,{iconCreateFunction:ht=>u.clusterIconCreateFunction({L:Hn,cluster:ht})}),H}Nn(()=>{const H=yL(Hn,{maxZoom:u.maxZoom,minZoom:u.minZoom,className:"map-tiles"}),[ht]=Object.values(H),xt={center:u.center,zoom:u.zoom,worldCopyJump:!0,dragging:u.dragging,maxZoom:u.maxZoom};u.disableZoom&&Object.assign(xt,{scrollWheelZoom:!1,zoomControl:!1,doubleClickZoom:!1,touchZoom:!1,boxZoom:!1}),_=new Hn.FeatureGroup,m=u.cluster?new Hn.markerClusterGroup(k()):new Hn.FeatureGroup,l=Hn.map(x.value,xt),l.attributionControl.setPrefix(u.prefix),l.pm.setGlobalOptions({layerGroup:_}),m.addTo(l),l.addLayer(_),l.addLayer(m),u.geojson&&_t(u.geojson),u.controls&&(l.pm.addControls({position:"topleft",drawText:!1,drawCircle:!1,drawPolyline:!1,drawCircleMarker:!1,drawMarker:!1,cutPolygon:!1}),l.on("pm:create",yt=>{p("geojson",T()),p("add:layer",$(yt.layer))}),_.on("pm:edit",yt=>{p("geojson",T()),p("edit:layer",$(yt.layer))}),l.on("pm:drawstart",yt=>{j(),p("draw:start",yt)}),l.on("zoom",yt=>p("zoom:change",yt)),l.on("zoomstart",yt=>p("zoom:start",yt))),ht.addTo(l),Object.keys(H).length>1&&Hn.control.layers(H,{},{position:"topleft",collapsed:!1}).addTo(l),vt()});function T(){const H=Hn.featureGroup();return _.eachLayer(ht=>{(ht instanceof Hn.Path||ht instanceof Hn.Marker)&&ht.pm&&H.addLayer(ht)}),H.toGeoJSON()}function j(){_.clearLayers()}function $(H){const ht=H.toGeoJSON();return typeof H.getRadius=="function"&&(ht.properties.radius=H.getRadius()),ht}const Y=()=>{if(!m)return;const H=m.getBounds();l.invalidateSize(),Pl(()=>{Object.keys(H).length&&l.fitBounds(H,b.value)})},vt=()=>{h=new ResizeObserver(H=>{H[0].contentRect,Y()}),h.observe(x.value)};Yr(()=>{m.clearLayers(),h==null||h.disconnect()});function _t(H){if(H){const ht={L:Hn};Hn.geoJSON(H,{...AL(ht),...u.geojsonOptions(ht)}).addTo(m);const xt=m.getBounds();xt.isValid()&&l.fitBounds(xt,b.value)}p("geojson:ready",m)}function bt(){return l}return i({clearDrawLayers:j,getMapObject:bt,resizeMap:Y}),(H,ht)=>(F(),tt("div",{ref_key:"leafletMap",ref:x,style:Ai({width:u.width,height:u.height})},null,4))}};function DL(t){RL(t,Object.assign({"/src/components/Map/VMap.client.vue":OL}))}function RL(t,i){Object.entries(i).forEach(([u,p])=>{const l=u.split("/").pop().replace(/\.client.\w+$/,"");t.component(l,p)})}const IL=["innerHTML"],FL={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"},NL=Q("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),jL=[NL],zL={key:1,class:"inline h-4 w-1"},VL=Q("circle",{cy:"calc(100% - 5px)",cx:"2.5",r:"1",fill:"currentColor"},null,-1),$L=[VL],GL=["innerHTML"],HL={__name:"AddressMaker.global",props:{items:{type:Array,required:!0}},setup(t){const i=t,s=he(()=>{const[p,...l]=i.items;return{username:p,host:l}});function u(){const[p,...l]=i.items;document.location.href=`mailto:${p}@${l.join(".")}`}return(p,l)=>(F(),tt("span",{class:"text-secondary-color cursor-pointer whitespace-nowrap",onClick:u},[Q("span",{innerHTML:s.value.username},null,8,IL),(F(!0),tt(Yt,null,Se(s.value.host,(h,_)=>(F(),tt(Yt,null,[_===0?(F(),tt("svg",FL,jL)):(F(),tt("svg",zL,$L)),Q("span",{innerHTML:h},null,8,GL)],64))),256))]))}},UL={};function ZL(t,i){return F(),Ot(Rl,{"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:dt(()=>[Ue(t.$slots,"default")]),_:3})}const qL=ge(UL,[["render",ZL]]),KL={},WL={viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"green"},JL=mg('',1),YL=[JL];function XL(t,i){return F(),tt("svg",WL,YL)}const QL=ge(KL,[["render",XL]]),tC={class:"autocomplete md:block md:mr-0 mr-3 relative w-fit"},eC={class:"flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none"},nC=["placeholder"],iC={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"},rC=["onClick"],oC=["innerHTML"],sC=500,aC={__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:i}){const s=t,u=i,p=Jt(""),l=Jt([]),h=Jt(!1),_=Jt(null);let m;mn(p,b=>{clearTimeout(m),b.length?m=setTimeout(()=>{h.value=!0,bn.get(s.url,{params:{...s.params,[s.queryParam]:p.value}}).then(({data:k})=>{h.value=!1,l.value=k})},sC):l.value=[]});const x=b=>{u("select",b),p.value=""};return Nn(()=>{s.autofocus&&_.value.focus()}),(b,k)=>{const T=pt("IconSearch");return F(),tt("div",tC,[Q("div",eC,[ot(T,{class:"w-4 h-4 text-gray-500"})]),ea(Q("input",{"onUpdate:modelValue":k[0]||(k[0]=j=>p.value=j),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:_},null,8,nC),[[Jg,p.value]]),h.value?(F(),Ot(QL,{key:0,class:"absolute top-1/2 -translate-y-1/2 right-2 h-5 w-5"})):$t("",!0),l.value.length?(F(),tt("ul",iC,[(F(!0),tt(Yt,null,Se(l.value,j=>(F(),tt("li",{key:j.id,class:"autocomplete__item px-3 py-2 border-b text-xs text-base-content cursor-pointer hover:bg-secondary-color hover:bg-opacity-5 border-base-border truncate",onClick:$=>x(j)},[Q("span",{innerHTML:j[t.label]},null,8,oC)],8,rC))),128))])):$t("",!0)])}}},i_=ge(aC,[["__scopeId","data-v-bd0dac97"]]),lC={__name:"AutocompleteOtu.global",props:{autofocus:{type:Boolean,default:!1}},setup(t){const i=ia(),s=({id:u,otu_valid_id:p})=>{i.push({name:"otus-id-overview",params:{id:p||u}})};return(u,p)=>(F(),Ot(i_,{url:"/otus/autocomplete","query-param":"term",label:"label_html",autofocus:t.autofocus,params:{having_taxon_name_only:!0},onSelect:s},null,8,["autofocus"]))}},uC=["title"],cC={__name:"ButtonExpand.global",props:{modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(t,{emit:i}){const s=t,u=i,p=he({get(){return s.modelValue},set(l){u("update:modelValue",l)}});return(l,h)=>{const _=pt("IconMinusCircle"),m=pt("IconPlusCircle");return F(),tt("button",{type:"button",title:p.value?"Close":"Expand",class:"button-expand bg-base-foreground text-secondary-color w-5 h-5",onClick:h[0]||(h[0]=x=>p.value=!p.value)},[p.value?(F(),Ot(_,{key:0,class:"w-5 h-5"})):(F(),Ot(m,{key:1,class:"w-5 h-5"}))],8,uC)}}},hC={__name:"VButton.global",props:{primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1}},setup(t){return(i,s)=>(F(),tt("button",{type:"button",class:kn(["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}])},[Ue(i.$slots,"default")],2))}},dC={},pC={class:"border-1 card border-base-muted bg-base-foreground print:shadow-none print:border-0 rounded"};function fC(t,i){return F(),tt("div",pC,[Ue(t.$slots,"default")])}const _C=ge(dC,[["render",fC]]),mC={},gC={class:"p-4 pl-5 pr-5"};function yC(t,i){return F(),tt("div",gC,[Ue(t.$slots,"default")])}const vC=ge(mC,[["render",yC]]),bC={},xC={class:"p-4 pl-5 pr-5 border-b font-medium border-base-muted"};function LC(t,i){return F(),tt("div",xC,[Ue(t.$slots,"default")])}const CC=ge(bC,[["render",LC]]),wC={__name:"VClipboard.global",props:{text:{type:String,required:!0},delay:{type:Number,default:2e3}},setup(t){const i=t,s=Jt(!1);let u;function p(){navigator.clipboard.writeText(i.text).then(()=>{s.value=!0,u=setTimeout(()=>{s.value=!1},i.delay)})}return Wi(()=>{clearTimeout(u)}),(l,h)=>{const _=pt("IconCheck"),m=pt("IconClipboard"),x=pt("VButton");return F(),Ot(x,{class:"px-2 py-2 rounded-full",primary:"",onClick:p},{default:dt(()=>[s.value?(F(),Ot(_,{key:0,class:"w-4 h-4"})):(F(),Ot(m,{key:1,class:"w-4 h-4"}))]),_:1})}}},kC={class:"relative inline"},MC=["onClick"],EC={__name:"Dropdown.global",props:{items:{type:Array,default:()=>[]}},setup(t){const i=Jt(null),s=Jt(!1),u=()=>{s.value=!s.value},p=h=>{s.value=!1,h.action()};function l(h){var _;(!h.target||!((_=i.value)!=null&&_.contains(h.target)))&&(s.value=!1)}return Nn(()=>{document.addEventListener("pointerdown",l,{passive:!0,capture:!0})}),Wi(()=>{document.removeEventListener("pointerdown",l,{capture:!0})}),(h,_)=>(F(),tt("div",kC,[Q("button",{title:"Menu",onClick:u},[Ue(h.$slots,"button")]),s.value?(F(),tt("ul",{key:0,ref_key:"element",ref:i,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"},[(F(!0),tt(Yt,null,Se(t.items,m=>(F(),tt("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:x=>p(m)},se(m.label),9,MC))),128))],512)):$t("",!0)]))}};function r_({props:t}){const i=Jt([]);function s(u){var p,l;return{id:u.id,objectId:u.depiction_object_id,objectType:u.depiction_object_type,objectLabel:u.depiction_object.label,label:u.label,imageOriginal:u.image.original,imageMedium:u.image.medium,attribution:((p=u.attribution)==null?void 0:p.label)||"",labelAttribution:[u.depiction_object.label,((l=u.attribution)==null?void 0:l.label)||""].join(" ")}}return mn(()=>t.depictionId,u=>{u.length&&bn.get("/depictions/gallery",{params:{depiction_id:u}}).then(({data:p})=>{i.value=p.map(s).sort((l,h)=>t.depictionId.indexOf(l.id)-t.depictionId.indexOf(h.id))})},{immediate:!0}),{depictions:i}}const PC=["src","alt"],BC={class:"bg-black bg-opacity-25 absolute h-full w-full"},SC={key:0,class:"z-10 text-white text-sm drop-shadow absolute bottom-2 right-0 px-4"},TC=["innerHTML"],AC={__name:"GalleryCarousel.global",props:{depictionId:{type:Array,default:()=>[]},interval:{type:Number,default:1e4},height:{type:String,default:"550px"}},setup(t){const i=t,{depictions:s}=r_({props:i}),u=Jt(0),p=he(()=>({height:i.height})),l=he(()=>s.value[u.value]||{}),h=he(()=>l.value.objectType==="Otu"),_=he(()=>[l.value.objectLabel,l.value.attribution].join(" "));let m=null;function x(){u.value=(u.value+1)%s.value.length}return mn(s,()=>{i.interval?(clearInterval(m),m=setInterval(x,i.interval)):u.value=Math.floor(Math.random()*s.value.length)}),Wi(()=>{clearInterval(m)}),(b,k)=>{const T=pt("RouterLink");return F(),tt("div",{class:"w-full relative",style:Ai(p.value)},[ot(Rl,{name:"fade"},{default:dt(()=>[l.value.imageOriginal?(F(),tt("img",{key:l.value.imageOriginal,class:"object-cover overflow-hidden h-full w-full absolute top-0 my-0",src:l.value.imageOriginal,alt:l.value.label},null,8,PC)):$t("",!0)]),_:1}),Q("div",BC,[Ue(b.$slots,"default",{},void 0,!0)]),l.value.objectId?(F(),tt("span",SC,[h.value?(F(),Ot(T,{key:0,class:"text-white decoration-transparent",to:{name:"otus-id",params:{id:l.value.objectId}},innerHTML:_.value},null,8,["to","innerHTML"])):(F(),tt("span",{key:1,innerHTML:_.value},null,8,TC))])):$t("",!0)],4)}}},OC=ge(AC,[["__scopeId","data-v-0e946aee"]]),DC=["title"],RC=["alt","src"],IC={__name:"GalleryThumbnail",props:{image:{type:Object,required:!0},title:{type:String,default:void 0}},setup(t){return(i,s)=>(F(),tt("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},[Q("img",{class:"max-h-20 max-w-24 h-20 w-24 object-contain rounded",alt:t.title,src:t.image.thumb},null,8,RC)],8,DC))}},FC={class:"flex flex-row overflow-x-auto print:flex-wrap gap-1.5"},o_={__name:"GalleryThumbnailList",props:{images:{type:Array,default:()=>[]},current:{type:Number,default:void 0}},emits:["selectIndex"],setup(t,{emit:i}){const s=i;return(u,p)=>(F(),tt("div",FC,[(F(!0),tt(Yt,null,Se(t.images,(l,h)=>{var _;return F(),tt("div",{key:l.id},[ot(IC,{image:l,class:kn({"border border-secondary-color":t.current===h}),title:(_=l.depictions)==null?void 0:_.map(m=>m.label).join(";"),onClick:m=>s("selectIndex",h)},null,8,["image","class","title","onClick"])])}),128))]))}},NC={class:"h-80 max-h-80 flex items-center justify-center"},jC=["textContent"],zC=["src","alt"],VC={__name:"GalleryMainImage",props:{image:{type:Object,required:!0}},emits:["open:viewer"],setup(t,{emit:i}){const s=t,u=i,p=Jt(!1),l=Jt(null),h=Jt(null);mn(()=>s.image,x=>{x.original&&(h.value=null,p.value=!0)});function _(x){x.preventDefault(),p.value=!1,h.value="Image was not found or format is not supported"}function m(){p.value=!1}return Nn(()=>{l.value.addEventListener("load",m),l.value.addEventListener("error",_)}),(x,b)=>{var j;const k=pt("VSpinner"),T=pt("ClientOnly");return F(),tt("div",NC,[ot(T,null,{default:dt(()=>[p.value?(F(),Ot(k,{key:0})):$t("",!0)]),_:1}),h.value?(F(),tt("span",{key:0,textContent:se(h.value)},null,8,jC)):$t("",!0),ea(Q("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:(j=t.image.depictions)==null?void 0:j.map($=>$.label).join(";"),onClick:b[0]||(b[0]=$=>u("open:viewer"))},null,8,zC),[[Il,!h.value]])])}}},$C={class:"flex flex-col"},GC={class:"flex justify-center border print:hidden bg-base-0 border-base-muted"},HC={__name:"GalleryImage.global",props:{images:{type:Array,default:()=>[]}},setup(t){const i=t,s=Jt(!1),u=Jt(0),p=he(()=>i.images[u.value]||{}),l=()=>{u.value--},h=()=>{u.value++};return mn(()=>i.images,()=>{u.value=0},{immediate:!0}),(_,m)=>{const x=pt("ImageViewer");return F(),tt(Yt,null,[Q("div",$C,[Q("div",GC,[ot(VC,{image:p.value,"onOpen:viewer":m[0]||(m[0]=()=>s.value=!0)},null,8,["image"])]),ot(o_,{class:"pt-2 pb-2",images:t.images,onSelectIndex:m[1]||(m[1]=b=>{u.value=b})},null,8,["images"])]),s.value?(F(),Ot(x,{key:0,index:u.value,images:t.images,next:u.value0,onSelectIndex:m[2]||(m[2]=b=>u.value=b),onNext:m[3]||(m[3]=b=>h()),onPrevious:m[4]||(m[4]=b=>l()),onClose:m[5]||(m[5]=b=>s.value=!1)},null,8,["index","images","next","previous"])):$t("",!0)],64)}}},UC=["src"],ZC=["innerHTML"],qC={__name:"GalleryMosaic.global",props:{depictionId:{type:Array,default:()=>[]},imageHeight:{type:String,default:"112px"},imageWidth:{type:String,default:"200px"},wrap:{type:Boolean,default:!1},label:{type:Boolean,default:!1}},setup(t){const i=t,s=he(()=>({height:i.imageHeight}));function u(l){return l.objectType==="Otu"?"RouterLink":"div"}const{depictions:p}=r_({props:i});return(l,h)=>(F(),tt("div",{class:kn(["grid","gap-2",{"grid-flow-col":!i.wrap}]),style:Ai(i.wrap&&`grid-template-columns: repeat(auto-fit, minmax(${i.imageWidth}, 1fr))`)},[(F(!0),tt(Yt,null,Se(ee(p),_=>(F(),Ot(Ho(u(_)),{key:_.id,to:{name:"otus-id",params:{id:_.objectId}}},{default:dt(()=>[Q("img",{src:_.imageMedium,style:Ai(s.value),class:"max-w-full my-0 object-cover w-full"},null,12,UC),t.label?(F(),tt("span",{key:0,class:"text-sm",innerHTML:_.labelAttribution},null,8,ZC)):$t("",!0)]),_:2},1032,["to"]))),128))],6))}},KC={},WC={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},JC=Q("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},null,-1),YC=[JC];function XC(t,i){return F(),tt("svg",WC,YC)}const QC=ge(KC,[["render",XC]]),tw={},ew={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},nw=Q("path",{class:"drop-shadow","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19l-7-7 7-7"},null,-1),iw=[nw];function rw(t,i){return F(),tt("svg",ew,iw)}const ow=ge(tw,[["render",rw]]),sw={},aw={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},lw=Q("path",{class:"drop-shadow","stroke-linecap":"round","stroke-linejoin":"round",d:"M9 5l7 7-7 7"},null,-1),uw=[lw];function cw(t,i){return F(),tt("svg",aw,uw)}const hw=ge(sw,[["render",cw]]),dw={},pw={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},fw=Q("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"},null,-1),_w=[fw];function mw(t,i){return F(),tt("svg",pw,_w)}const gw=ge(dw,[["render",mw]]),yw={},vw={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},bw=Q("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),xw=[bw];function Lw(t,i){return F(),tt("svg",vw,xw)}const Cw=ge(yw,[["render",Lw]]),ww={},kw={xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Mw=Q("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1),Ew=[Mw];function Pw(t,i){return F(),tt("svg",kw,Ew)}const Bw=ge(ww,[["render",Pw]]),Sw={},Tw={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Aw=Q("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),Ow=[Aw];function Dw(t,i){return F(),tt("svg",Tw,Ow)}const Rw=ge(Sw,[["render",Dw]]),Iw={},Fw={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Nw=Q("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),jw=[Nw];function zw(t,i){return F(),tt("svg",Fw,jw)}const Vw=ge(Iw,[["render",zw]]),$w={},Gw={viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true"},Hw=Q("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),Uw=[Hw];function Zw(t,i){return F(),tt("svg",Gw,Uw)}const qw=ge($w,[["render",Zw]]),Kw={},Ww={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Jw=Q("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 6h16M4 12h16M4 18h16"},null,-1),Yw=[Jw];function Xw(t,i){return F(),tt("svg",Ww,Yw)}const Qw=ge(Kw,[["render",Xw]]),t3={},e3={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},n3=Q("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),i3=[n3];function r3(t,i){return F(),tt("svg",e3,i3)}const o3=ge(t3,[["render",r3]]),s3={},a3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},l3=Q("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),u3=[l3];function c3(t,i){return F(),tt("svg",a3,u3)}const h3=ge(s3,[["render",c3]]),d3={},p3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},f3=Q("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),_3=[f3];function m3(t,i){return F(),tt("svg",p3,_3)}const g3=ge(d3,[["render",m3]]),y3={},v3={xmlns:"http://www.w3.org/2000/svg",class:"text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},b3=Q("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),x3=[b3];function L3(t,i){return F(),tt("svg",v3,x3)}const C3=ge(y3,[["render",L3]]),w3={},k3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},M3=Q("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),E3=[M3];function P3(t,i){return F(),tt("svg",k3,E3)}const B3=ge(w3,[["render",P3]]),S3={},T3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},A3=Q("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),O3=[A3];function D3(t,i){return F(),tt("svg",T3,O3)}const R3=ge(S3,[["render",D3]]),I3={__name:"ImageAttribution",props:{attribution:{type:Object,default:()=>({})}},setup(t){return(i,s)=>(F(),tt("div",null,[Q("p",null,se(t.attribution.label),1)]))}},F3={__name:"ImageDepictions",props:{depictions:{type:Array,default:()=>[]}},setup(t){return(i,s)=>(F(),tt("div",null,[(F(!0),tt(Yt,null,Se(t.depictions,u=>(F(),tt("div",{key:u.id},[Q("p",null,se(u.label),1)]))),128))]))}},N3=["innerHTML"],j3={__name:"ImageSource",props:{source:{type:Object,default:()=>({})}},setup(t){return(i,s)=>(F(),tt("div",null,[Q("p",{innerHTML:t.source.label},null,8,N3)]))}},z3={class:"p-2 text-black dark:text-white opacity-50"},V3={__name:"ImageViewerCounter",props:{currentImage:{type:Number,required:!0},totalImages:{type:Number,required:!0}},setup(t){return(i,s)=>(F(),tt("span",z3,se(t.currentImage+1)+"/"+se(t.totalImages),1))}},$3={},G3={type:"button",class:"p-2 cursor-pointer opacity-50 bg-base-content text-base-background",title:"Next image"};function H3(t,i){const s=pt("IconArrowRight");return F(),tt("button",G3,[ot(s,{class:"h-8 w-8"})])}const U3=ge($3,[["render",H3]]),Z3={},q3={type:"button",class:"p-2 cursor-pointer opacity-50 bg-base-content text-base-background",title:"Previous image"};function K3(t,i){const s=pt("IconArrowLeft");return F(),tt("button",q3,[ot(s,{class:"h-8 w-8"})])}const W3=ge(Z3,[["render",K3]]),J3={},Y3={class:"p-2 box-border flex justify-between"};function X3(t,i){return F(),tt("div",Y3,[Q("div",null,[Ue(t.$slots,"default")]),Q("div",null,[Ue(t.$slots,"right")])])}const Q3=ge(J3,[["render",X3]]),tk={},ek={type:"button",class:"p-2 cursor-pointer opacity-50 text-base-content"};function nk(t,i){const s=pt("IconClose");return F(),tt("button",ek,[ot(s)])}const ik=ge(tk,[["render",nk]]),rk={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"},ok={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"},sk=["textContent"],ak=["alt","src"],lk={class:"bottom-0 fixed max-w-full w-full"},uk={class:"text-base-content text-sm attributions p-6 align-middle flex justify-between flex-col text-center"},ck={class:"flex justify-center"},hk={__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:i}){const s=t,u=i,p=({key:k})=>{switch(k){case"ArrowLeft":s.previous&&u("previous");break;case"ArrowRight":s.next&&u("next");break;case"Escape":u("close");break}},l=Jt(null),h=Jt(!1),_=Jt(null),m=he(()=>s.images[s.index]);document.addEventListener("keyup",p);function x(){h.value=!1,_.value="Image was not found or format is not supported"}function b(){h.value=!1}return Nn(()=>{l.value.addEventListener("load",b),l.value.addEventListener("error",x),document.body.classList.add("overflow-hidden")}),Yr(()=>{document.removeEventListener("keyup",p),document.body.classList.remove("overflow-hidden")}),mn(()=>s.index,()=>{_.value=null,h.value=!0}),(k,T)=>{var $,Y;const j=pt("VSpinner");return F(),tt("div",rk,[Q("div",{class:"min-w-96 dark:bg-slate-900 rounded-lg shadow-sm mb-24",onClick:T[3]||(T[3]=bl(()=>{},["stop"]))},[Q("div",ok,[h.value?(F(),Ot(j,{key:0})):$t("",!0),_.value?(F(),tt("div",{key:1,class:"flex flex-col justify-center",textContent:se(_.value)},null,8,sk)):$t("",!0),ea(Q("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:(Y=($=m.value)==null?void 0:$.depictions)==null?void 0:Y.map(vt=>vt.label).join(";"),src:m.value.original,onClick:T[0]||(T[0]=vt=>u("close"))},null,8,ak),[[Il,!_.value]]),t.next?(F(),Ot(U3,{key:2,class:"right-0 absolute my-auto top-1/2 -translate-y-1/2",onClick:T[1]||(T[1]=vt=>u("next"))})):$t("",!0),t.previous?(F(),Ot(W3,{key:3,class:"left-0 absolute my-auto top-1/2 -translate-y-1/2",onClick:T[2]||(T[2]=vt=>u("previous"))})):$t("",!0)])]),Q("div",lk,[Q("div",uk,[ot(F3,{class:"my-auto",depictions:m.value.depictions},null,8,["depictions"]),ot(I3,{class:"my-auto",attribution:m.value.attribution},null,8,["attribution"]),ot(j3,{class:"my-auto",source:m.value.source},null,8,["source"])]),Q("div",ck,[ot(o_,{class:"pb-2",current:t.index,images:t.images,onSelectIndex:T[4]||(T[4]=vt=>u("selectIndex",vt)),onClick:T[5]||(T[5]=bl(()=>{},["stop"]))},null,8,["current","images"])])]),ot(Q3,{class:"w-full absolute top-0 h-12 left-0 items-center"},{right:dt(()=>[ot(ik,{onClick:T[6]||(T[6]=vt=>u("close"))})]),default:dt(()=>[ot(V3,{"current-image":t.index,"total-images":t.images.length},null,8,["current-image","total-images"])]),_:1})])}}},dk="!container mx-auto p-4 sm:px-0 prose dark:prose-invert box-border",pk={__name:"MarkdownLayout.global",props:{tag:{type:String,default:"div"},frontmatter:{type:Object,required:!0}},setup(t){const i=t,s={fullwidth:"p-4 sm:px-0 prose dark:prose-invert max-w-none",blank:"sm:px-0 prose dark:prose-invert max-w-none"},u=he(()=>s[i.frontmatter.layout]||dk);return(p,l)=>(F(),Ot(Ho(t.tag),{class:kn(u.value)},{default:dt(()=>[Ue(p.$slots,"default")]),_:3},8,["class"]))}},fk={class:"w-full p-4 md:p-4 flex flex-row box-border justify-between items-center"},_k=Q("span",null,null,-1),mk={class:"bg-base-foreground overflow-x-auto h-full md:h-auto max-h-full"},gk={__name:"VModal.global",emits:["close"],setup(t,{emit:i}){const s=i,u=p=>{p.key==="Escape"&&(p.stopPropagation(),s("close"))};return Nn(()=>{document.addEventListener("keydown",u),document.body.classList.add("overflow-hidden")}),Yr(()=>{document.removeEventListener("keydown",u),document.body.classList.remove("overflow-hidden")}),(p,l)=>{const h=pt("IconClose");return F(),tt("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]=_=>s("close")),onKey:l[3]||(l[3]=bl(_=>s("close"),["stop"]))},[Q("div",{class:"h-full md:h-auto mx-auto md:max-h-[70vh] bg-base-foreground container",onClick:l[1]||(l[1]=bl(()=>{},["stop"]))},[Q("div",fk,[Ue(p.$slots,"header",{},()=>[_k]),ot(h,{class:"w-6 h-6 cursor-pointer opacity-50",onClick:l[0]||(l[0]=()=>s("close"))})]),Q("div",mk,[Ue(p.$slots,"default")]),Q("div",null,[Ue(p.$slots,"footer")])])],32)}}},yk={"aria-disabled":"false","aria-label":"Pagination",class:"flex flex-row text-sm"},vk=["disabled"],bk={role:"presentation",class:"page-item"},xk=["disabled"],Lk={key:0,class:"border border-base-border px-2 py-1.5"},Ck={key:0,class:"page-item"},wk=["disabled","onClick"],kk={key:1,class:"border border-base-border px-2 py-1.5"},Mk={class:"page-item"},Ek=["disabled"],Pk={role:"presentation"},Bk=["disabled"],Sk={__name:"VPagination.global",props:{modelValue:{type:Number,required:!0},total:{type:Number,required:!0},per:{type:Number,required:!0},rangePages:{type:Number,default:5}},emits:["update:modelValue"],setup(t,{emit:i}){const s=t,u=i,p=he(()=>Math.ceil(s.total/s.per)),l=he({get:()=>s.modelValue,set:m=>{u("update:modelValue",m)}}),h=he(()=>s.modelValue+s.rangePages),_=he(()=>s.modelValue-s.rangePages);return(m,x)=>(F(),tt("ul",yk,[Q("li",null,[Q("button",{type:"button",disabled:l.value<2||!p.value,"aria-label":"Go to first page",class:"border border-base-border rounded-l-md px-2 py-1.5",onClick:x[0]||(x[0]=b=>l.value=1)}," « ",8,vk)]),Q("li",bk,[Q("button",{type:"button",disabled:l.value<2||!p.value,"aria-label":"Go to previous page",class:"border border-base-border px-2 py-1.5",onClick:x[1]||(x[1]=b=>l.value--)}," ‹ ",8,xk)]),t.modelValue>s.rangePages?(F(),tt("li",Lk," ... ")):$t("",!0),(F(!0),tt(Yt,null,Se(p.value,b=>(F(),tt(Yt,{key:b},[bl.value=b},se(b),11,wk)])):$t("",!0)],64))),128)),p.value-t.modelValue>=t.rangePages?(F(),tt("li",kk," ... ")):$t("",!0),Q("li",Mk,[Q("button",{type:"button","aria-label":"Go to next page",class:"border border-base-border px-2 py-1.5",disabled:l.value===p.value||!p.value,onClick:x[2]||(x[2]=()=>l.value++)}," › ",8,Ek)]),Q("li",Pk,[Q("button",{type:"button",disabled:l.value===p.value||!p.value,"aria-label":"Go to last page",class:"border border-base-border rounded-r-md px-2 py-1.5",onClick:x[3]||(x[3]=()=>l.value=p.value)}," » ",8,Bk)])]))}},Tk={__name:"ProjectStats.global",props:{data:{type:Array,default:()=>[]},tag:{type:String,default:"span"}},setup(t){const i=t,s=Jt({data:[]}),u=he(()=>i.data.map(h=>h.toLowerCase())),p=he(()=>{const h=s.value.data;return h.length?l(h):u.value.map(_=>[_,"??"])});function l(h){const _=i.data.length?h.filter(([m])=>u.value.includes(m)):h;return _.sort(([m],[x])=>u.value.indexOf(m)-u.value.indexOf(x)),_}return Nn(()=>{bn.get("/stats").then(h=>{const _=Object.entries(h.data.data).map(([m,x])=>[m.toLowerCase(),x.toLocaleString()]);s.value.data=_})}),(h,_)=>(F(),Ot(Ho(t.tag),null,{default:dt(()=>[(F(!0),tt(Yt,null,Se(p.value,([m,x],b)=>Ue(h.$slots,"default",{type:m,value:x},()=>[Q("span",null,se(m)+": "+se(x)+se(b{i.value=!0}),(s,u)=>i.value?Ue(s.$slots,"default",{key:0}):(F(),tt("div",Ak))}},Dk={class:"inline-flex items-center text-sm"},Rk={__name:"TabItem.global",props:{to:{type:[String,Object],required:!0}},setup(t){return(i,s)=>{const u=pt("router-link");return F(),tt("li",Dk,[ot(u,{class:"p-2 pb-2 block py-2 pr-4 pl-3 text-base-content border-b-2 border-transparent","active-class":"border-b-2 !border-secondary-color font-medium",to:t.to},{default:dt(()=>[Ue(i.$slots,"default")]),_:3},8,["to"])])}}},Ik={},Fk={class:"inline-flex items-center space-x-1 md:space-x-3"};function Nk(t,i){return F(),tt("ul",Fk,[Ue(t.$slots,"default")])}const jk=ge(Ik,[["render",Nk]]),zk={},Vk={class:"relative sm:rounded-lg"},$k={class:"w-full text-sm text-left text-gray-500 dark:text-gray-400"};function Gk(t,i){return F(),tt("div",Vk,[Q("table",$k,[Ue(t.$slots,"default")])])}const Hk=ge(zk,[["render",Gk]]),Uk={},Zk={class:"normal-case text-xs"};function qk(t,i){return F(),tt("tbody",Zk,[Ue(t.$slots,"default")])}const Kk=ge(Uk,[["render",qk]]),Wk={},Jk={class:"px-4 py-4"};function Yk(t,i){return F(),tt("td",Jk,[Ue(t.$slots,"default")])}const Xk=ge(Wk,[["render",Yk]]),Qk={},tM={class:"bg-base-foreground border-b border-base-border"};function eM(t,i){return F(),tt("tr",tM,[Ue(t.$slots,"default")])}const nM=ge(Qk,[["render",eM]]),iM={},rM={class:"text-xs text-base-content uppercase bg-base-background"};function oM(t,i){return F(),tt("thead",rM,[Ue(t.$slots,"default")])}const sM=ge(iM,[["render",oM]]),aM={},lM={class:"px-4 py-3"};function uM(t,i){return F(),tt("th",lM,[Ue(t.$slots,"default")])}const cM=ge(aM,[["render",uM]]),hM={};function dM(t,i){return F(),tt("tr",null,[Ue(t.$slots,"default")])}const pM=ge(hM,[["render",dM]]);var fM={base_url:"/taxonpages/",hash_mode:!0,map_tile_server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",map_tile_attribution:'© OpenStreetMap contributors',project_name:"My project",project_citation:null,project_url:null,project_authors:null,metadata:[{name:"description",content:"TaxonPages is a tool to serve taxon pages."},{name:"keywords",content:"taxonpages, species, sfg"},{name:"robots",content:"follow"}],map_tiles:[{label:"OpenStreetMap",attribution:'© OpenStreetMap contributors',server:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}],header_logo_url:null,header_logo_text:"My project",header_links:[{label:"Home",link:"/"},{label:"About",link:"/about"}],copyright_image:null,copyright_image_link:null,copyright_text:"Copyright CC0",url:null,project_token:null};const _M={key:1},mM=Q("h1",{class:"font-medium text-base px-1"},"Report a problem",-1),gM={class:"font-normal p-5 pt-0 text-base"},yM=Q("span",null,"My issue is with:",-1),vM={class:"mx-5 my-2"},bM=["href"],xM={key:0,class:"text-sm"},LM="https://github.com/SpeciesFileGroup/taxonpages/issues/new/choose",CM={__name:"TrackerReport.global",props:{buttonClass:{type:String,default:void 0},label:{type:String,default:void 0},icon:{type:Boolean,default:!1},tag:{type:String,default:"VButton"}},setup(t){const{issue_trackers:i}=fM,s=Jt(!1);function u(){i?s.value=!0:window.open(LM,"_blank")}return(p,l)=>{const h=pt("IconGithub"),_=pt("VModal");return F(),tt(Yt,null,[(F(),Ot(Ho(t.tag),{type:"button",title:"Report a problem",class:kn(t.buttonClass),onClick:u},{default:dt(()=>[t.icon?(F(),Ot(h,{key:0,class:"w-5 h-5"})):$t("",!0),t.label?(F(),tt("span",_M,se(t.label),1)):$t("",!0)]),_:1},8,["class"])),s.value?(F(),Ot(_,{key:0,class:"text-base-content",onClose:l[0]||(l[0]=m=>s.value=!1)},{header:dt(()=>[mM]),default:dt(()=>[Q("div",gM,[yM,Q("ul",vM,[(F(!0),tt(Yt,null,Se(ee(i),m=>(F(),tt("li",null,[Q("a",{href:m.url,target:"_blank"},se(m.label),9,bM),m.description?(F(),tt("span",xM," - "+se(m.description),1)):$t("",!0)]))),256))])])]),_:1})):$t("",!0)],64)}}},wM={__name:"VSkeleton.global",props:{class:{type:String,default:"w-full"},lines:{type:Number,default:1}},setup(t){const i=Im(),s=he(()=>{var l;const p=(l=i.default)==null?void 0:l.call(i);return u(p)});function u(p){if(!p)return!0;const[l]=p;let h=l.children;return l.el!==null||h!==null}return(p,l)=>(F(),tt(Yt,null,[Ue(p.$slots,"default"),s.value?(F(),tt("span",{key:0,class:kn(t.class)},[(F(!0),tt(Yt,null,Se(t.lines,h=>(F(),tt("span",{key:h,class:"inline-block w-full rounded-sm bg-base-muted leading-5 animate-pulse"}," ‌ "))),128))],2)):$t("",!0)],64))}},rh=t=>(xp("data-v-3927b18d"),t=t(),Lp(),t),kM=rh(()=>Q("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)),MM=rh(()=>Q("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)),EM=[kM,MM],PM=rh(()=>Q("span",{class:"sr-only"},"Loading...",-1)),BM=["innerHTML"],SM={__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 i={position:"fixed",width:"100vw",height:"100vh",top:"0px",left:"0px"},s=t,u=Jt(null),p=Jt({}),l=Jt(void 0);Nn(()=>{h(),s.resize&&!s.fullScreen&&m()}),Yr(()=>clearInterval(l.value));const h=()=>{const x=s.target?document.querySelector(s.target):u.value.parentNode;Object.assign(p.value,s.fullScreen?i:_(x))},_=x=>{const b=x.getBoundingClientRect(),k=window.getComputedStyle(x,null),T=parseInt(k.getPropertyValue("padding-left"),10),j=parseInt(k.getPropertyValue("padding-right"),10),$=parseInt(k.getPropertyValue("padding-top"),10),Y=parseInt(k.getPropertyValue("padding-bottom"),10);return{position:"absolute",width:b.width-T-j+"px",height:b.height-$-Y+"px"}},m=()=>{l.value=setInterval(h(),500)};return(x,b)=>(F(),tt("div",{ref_key:"spinnerElement",ref:u,class:"box-spinner mx-spinner absolute bg-base-foreground opacity-90 h-full flex items-center",style:Ai(p.value)},[Q("div",{class:kn(["tw-spinner",`tw-spinner-${t.spinnerPosition}`])},[t.showSpinner?(F(),tt("svg",{key:0,style:Ai(t.logoSize),"aria-hidden":"true",class:kn(["text-base-lighter","animate-spin fill-primary-color",t.logoClass]),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},EM,6)):$t("",!0),PM,t.legend.length?(F(),tt("div",{key:1,class:kn(["text-base-content","text-center",t.legendClass]),style:Ai(t.legendStyle)},[t.showLegend?(F(),tt("span",{key:0,innerHTML:t.legend},null,8,BM)):$t("",!0),Ue(x.$slots,"default",{},void 0,!0)],6)):$t("",!0)],2)],4))}},TM=ge(SM,[["__scopeId","data-v-3927b18d"]]);function AM(t){OM(t,Object.assign({"/src/components/AddressMaker.global.vue":HL,"/src/components/Animation/AnimationOpacity.global.vue":qL,"/src/components/Autocomplete/Autocomplete.global.vue":i_,"/src/components/Autocomplete/AutocompleteOtu.global.vue":lC,"/src/components/Button/ButtonExpand.global.vue":cC,"/src/components/Button/VButton.global.vue":hC,"/src/components/Card/VCard.global.vue":_C,"/src/components/Card/VCardContent.global.vue":vC,"/src/components/Card/VCardHeader.global.vue":CC,"/src/components/Clipboard/VClipboard.global.vue":wC,"/src/components/Dropdown/Dropdown.global.vue":EC,"/src/components/Gallery/GalleryCarousel/GalleryCarousel.global.vue":OC,"/src/components/Gallery/GalleryImage.global.vue":HC,"/src/components/Gallery/GalleryMosaic/GalleryMosaic.global.vue":qC,"/src/components/Icon/IconArrowDown.global.vue":QC,"/src/components/Icon/IconArrowLeft.global.vue":ow,"/src/components/Icon/IconArrowRight.global.vue":hw,"/src/components/Icon/IconCheck.global.vue":gw,"/src/components/Icon/IconClipboard.global.vue":Cw,"/src/components/Icon/IconClose.global.vue":Bw,"/src/components/Icon/IconDocument.global.vue":Rw,"/src/components/Icon/IconDownload.global.vue":Vw,"/src/components/Icon/IconGithub.global.vue":qw,"/src/components/Icon/IconHamburger.global.vue":Qw,"/src/components/Icon/IconJson.global.vue":o3,"/src/components/Icon/IconMinusCircle.global.vue":h3,"/src/components/Icon/IconPlusCircle.global.vue":g3,"/src/components/Icon/IconSearch.global.vue":C3,"/src/components/Icon/IconTrash.global.vue":B3,"/src/components/Icon/IconWarning.global.vue":R3,"/src/components/ImageViewer/ImageViewer.global.vue":hk,"/src/components/Markdown/MarkdownLayout.global.vue":pk,"/src/components/Modal/VModal.global.vue":gk,"/src/components/Pagination/VPagination.global.vue":Sk,"/src/components/ProjectStats.global.vue":Tk,"/src/components/Ssr/ClientOnly.global.vue":Ok,"/src/components/Tab/TabItem.global.vue":Rk,"/src/components/Tab/TabMenu.global.vue":jk,"/src/components/Table/VTable.global.vue":Hk,"/src/components/Table/VTableBody.global.vue":Kk,"/src/components/Table/VTableBodyCell.global.vue":Xk,"/src/components/Table/VTableBodyRow.global.vue":nM,"/src/components/Table/VTableHeader.global.vue":sM,"/src/components/Table/VTableHeaderCell.global.vue":cM,"/src/components/Table/VTableHeaderRow.global.vue":pM,"/src/components/TrackerReport.global.vue":CM,"/src/components/VSkeleton.global.vue":wM,"/src/components/VSpinner.global.vue":TM}))}function OM(t,i){Object.entries(i).forEach(([u,p])=>{const l=u.split("/").pop().replace(/\.client.global.\w+$/,"").replace(/\.global.\w+$/,"");t.component(l,p)})}const DM=window.location.origin,Vd=window.initialState,{app:oh,router:RM,store:IM}=pL({originUrl:DM});Vd&&(IM.state.value=Vd);DL(oh);AM(oh);RM.isReady().then(()=>{oh.mount("#app")});export{Q as a,pe as b,Ot as c,ot as d,F as o,pt as r,se as t,dt as w}; diff --git a/assets/index-DVelqgSp.css b/assets/index-DVelqgSp.css new file mode 100644 index 00000000..b8a04841 --- /dev/null +++ b/assets/index-DVelqgSp.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,:host{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,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}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-feature-settings:normal;font-variation-settings:normal;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;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\!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],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[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],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[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],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[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],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[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],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[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],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[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],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[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-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[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],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;text-align:start;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[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],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.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-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--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-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--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(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[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-1\/2{left:50%}.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-0{margin-top:0;margin-bottom:0}.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-\[5px\]{margin-left:5px}.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}.mr-\[5px\]{margin-right:5px}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.mt-\[5px\]{margin-top:5px}.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-\[30px\]{height:30px}.h-\[40px\]{height:40px}.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-\[15px\]{width:15px}.w-\[40px\]{width:40px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.min-w-80{min-width:20rem}.min-w-96{min-width:24rem}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-full{min-width:100%}.max-w-24{max-width:6rem}.max-w-full{max-width:100%}.max-w-none{max-width:none}.flex-grow{flex-grow:1}.origin-top{transform-origin:top}.origin-top-right{transform-origin:top right}.-translate-x-1\/2{--tw-translate-x: -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))}.-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}.grid-flow-col{grid-auto-flow:column}.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-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.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)))}.self-end{align-self:flex-end}.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-words{overflow-wrap:break-word}.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-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.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-secondary-color{--tw-border-opacity: 1 !important;border-color:rgba(var(--color-secondary),var(--tw-border-opacity))!important}.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-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-25{--tw-bg-opacity: .25}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-60{--tw-bg-opacity: .6}.fill-primary-color{fill:rgb(var(--color-primary))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.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-1\.5{padding-top:.375rem;padding-bottom:.375rem}.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-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-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))}.decoration-transparent{text-decoration-color:transparent}.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:#ffffff80}.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:#fffc;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:#fffc;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:#fff;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)}.leaflet-fade-anim .leaflet-popup{transition:none}.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}.dark\:prose-invert:is(.dark *){--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-kbd: var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows: var(--tw-prose-invert-kbd-shadows);--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}.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}.dark\:border-slate-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity))}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:bg-slate-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.dark\:text-gray-100:is(.dark *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:placeholder\:text-slate-400:is(.dark *)::-moz-placeholder{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.dark\:placeholder\:text-slate-400:is(.dark *)::placeholder{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.dark\:hover\:text-gray-500:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.dark\:hover\:text-slate-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:flex-row{flex-direction:row}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-0{padding-left:0;padding-right:0}.sm\:px-4{padding-left:1rem;padding-right:1rem}.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-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,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)}}.\[\&\>\*\:not\(\:last-child\)\]\:after\:mx-1>*:not(:last-child):after{content:var(--tw-content);margin-left:.25rem;margin-right:.25rem}.\[\&\>\*\:not\(\:last-child\)\]\:after\:content-\[\'\|\'\]>*:not(:last-child):after{--tw-content: "|";content:var(--tw-content)}.\[\&\>a\]\:break-all>a{word-break:break-all}: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}.panel-content-list ul{list-style:disc;margin:1rem 0 1rem 1rem}.panel-content-list ol{list-style-type:decimal;margin-left:1rem}.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-91511d41]{list-style:none;border-left:1px solid rgb(100,100,100);padding-left:8px;padding-bottom:8px}.cached-map-icon{right:20px;top:20px;z-index:1098}[data-v-a99dffa5] .disable-zoom-out .leaflet-control-zoom-out{display:none!important}.marker-icon{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{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}.geoman-draw-cursor{cursor:crosshair}.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,%0A%0A %0A Atoms/Icons/Tools/Marker%0A Created with Sketch.%0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A')}.leaflet-pm-toolbar .leaflet-pm-icon-polygon{background-image:url('data:image/svg+xml,%0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A%0A')}.leaflet-pm-toolbar .leaflet-pm-icon-polyline{background-image:url('data:image/svg+xml,%0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A%0A')}.leaflet-pm-toolbar .leaflet-pm-icon-circle{background-image:url('data:image/svg+xml,%0A%0A %0A Atoms/Icons/Tools/Circle%0A Created with Sketch.%0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A')}.leaflet-pm-toolbar .leaflet-pm-icon-circle-marker{background-image:url('data:image/svg+xml,%0A%0A%0A%0A %0A')}.leaflet-pm-toolbar .leaflet-pm-icon-rectangle{background-image:url('data:image/svg+xml,%0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A%0A')}.leaflet-pm-toolbar .leaflet-pm-icon-delete{background-image:url('data:image/svg+xml,%0A%0A %0A Atoms/Icons/Tools/Eraser%0A Created with Sketch.%0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A')}.leaflet-pm-toolbar .leaflet-pm-icon-edit{background-image:url('data:image/svg+xml,%0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A%0A')}.leaflet-pm-toolbar .leaflet-pm-icon-drag{background-image:url('data:image/svg+xml,%0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A%0A')}.leaflet-pm-toolbar .leaflet-pm-icon-cut{background-image:url('data:image/svg+xml,%0A%0A %0A Atoms/Icons/Tools/Scissors%0A Created with Sketch.%0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A')}.leaflet-pm-toolbar .leaflet-pm-icon-snapping{background-image:url('data:image/svg+xml,%0A%0A %0A Atoms/Icons/Tools/Magnet%0A Created with Sketch.%0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A')}.leaflet-pm-toolbar .leaflet-pm-icon-rotate{background-image:url('data:image/svg+xml,%0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A %0A%0A')}.leaflet-pm-toolbar .leaflet-pm-icon-text{background-image:url('data:image/svg+xml,Text')}.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;vertical-align:middle}.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)}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{transition:transform .3s ease-out,opacity .3s ease-in}.leaflet-cluster-spider-leg{transition:stroke-dashoffset .3s ease-out,stroke-opacity .3s ease-in}.marker-cluster-small{background-color:#b5e28c99}.marker-cluster-small div{background-color:#6ecc3999}.marker-cluster-medium{background-color:#f1d35799}.marker-cluster-medium div{background-color:#f0c20c99}.marker-cluster-large{background-color:#fd9c7399}.marker-cluster-large div{background-color:#f1801799}.leaflet-oldie .marker-cluster-small{background-color:#b5e28c}.leaflet-oldie .marker-cluster-small div{background-color:#6ecc39}.leaflet-oldie .marker-cluster-medium{background-color:#f1d357}.leaflet-oldie .marker-cluster-medium div{background-color:#f0c20c}.leaflet-oldie .marker-cluster-large{background-color:#fd9c73}.leaflet-oldie .marker-cluster-large div{background-color:#f18017}.marker-cluster{background-clip:padding-box;border-radius:20px}.marker-cluster div{width:30px;height:30px;margin-left:5px;margin-top:5px;text-align:center;border-radius:15px;font:12px Helvetica Neue,Arial,Helvetica,sans-serif}.marker-cluster span{line-height:30px}.autocomplete__list[data-v-bd0dac97]{display:none;padding:0}.autocomplete__item[data-v-bd0dac97]{margin:0}.autocomplete__input:focus~.autocomplete__list[data-v-bd0dac97]{display:block}.autocomplete__list[data-v-bd0dac97]: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}.fade-enter-active[data-v-0e946aee],.fade-leave-active[data-v-0e946aee]{transition:opacity 1s ease-in-out}.fade-enter-from[data-v-0e946aee]{opacity:0}.fade-enter-to[data-v-0e946aee]{opacity:1}.fade-enter[data-v-0e946aee],.fade-leave-to[data-v-0e946aee]{opacity:0}.tw-spinner[data-v-3927b18d]{display:flex;margin:0 auto;height:auto;width:auto;align-items:center;justify-content:center}.fade-enter-active[data-v-3927b18d],.fade-leave-active[data-v-3927b18d]{transition:opacity .5s}.fade-enter[data-v-3927b18d],.fade-leave-to[data-v-3927b18d]{opacity:0}.tw-spinner-left[data-v-3927b18d]{flex-direction:row}.tw-spinner-right[data-v-3927b18d]{flex-direction:row-reverse}.tw-spinner-top[data-v-3927b18d]{flex-direction:column}.tw-spinner-bottom[data-v-3927b18d]{flex-direction:column-reverse}.box-spinner[data-v-3927b18d]{z-index:4000}.tw-spinner[data-v-3927b18d]{font-size:20px;overflow:hidden;width:100%;position:relative}.tw-spinner svg[data-v-3927b18d]{display:block;position:relative;margin:0 auto}.tw-spinner #Tail[data-v-3927b18d]{opacity:0;animation:tail-3927b18d 2s ease infinite;fill:#41ba8d}.tw-spinner #LeftBottom[data-v-3927b18d]{fill:#00845d;opacity:0;animation:spinner-3927b18d 1s ease alternate infinite;animation-delay:0s}.tw-spinner #LeftMid[data-v-3927b18d]{fill:#28221b;opacity:0;animation:spinner-3927b18d 1s ease alternate infinite;animation-delay:.2s}.tw-spinner #LeftTop[data-v-3927b18d]{fill:#342d25;opacity:0;animation:spinner-3927b18d 1s ease alternate infinite;animation-delay:.4s}.tw-spinner #Head[data-v-3927b18d]{fill:#342d25;opacity:0;animation:spinner-3927b18d 1s ease alternate infinite;animation-delay:.6s}@keyframes spinner-3927b18d{0%{opacity:0}30%{opacity:0}90%{opacity:1}to{opacity:1}}@keyframes tail-3927b18d{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 00000000..df36fcfb Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 00000000..0be6078d --- /dev/null +++ b/index.html @@ -0,0 +1,20 @@ + + + + + + + + + + + + + +
+ + + 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: /