var hv=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var u2=hv(he=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function dl(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}const Jt={},Yn=[],ci=()=>{},cv=()=>!1,fv=/^on[^a-z]/,Ta=t=>fv.test(t),ml=t=>t.startsWith("onUpdate:"),ue=Object.assign,vl=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},dv=Object.prototype.hasOwnProperty,jt=(t,e)=>dv.call(t,e),Et=Array.isArray,Ds=t=>or(t)==="[object Map]",mv=t=>or(t)==="[object Set]",vv=t=>or(t)==="[object RegExp]",Rt=t=>typeof t=="function",ie=t=>typeof t=="string",_l=t=>typeof t=="symbol",Yt=t=>t!==null&&typeof t=="object",Dc=t=>Yt(t)&&Rt(t.then)&&Rt(t.catch),_v=Object.prototype.toString,or=t=>_v.call(t),pv=t=>or(t).slice(8,-1),gv=t=>or(t)==="[object Object]",pl=t=>ie(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Kr=dl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),La=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},yv=/-(\w)/g,os=La(t=>t.replace(yv,(e,n)=>n?n.toUpperCase():"")),bv=/\B([A-Z])/g,ms=La(t=>t.replace(bv,"-$1").toLowerCase()),Zc=La(t=>t.charAt(0).toUpperCase()+t.slice(1)),Mo=La(t=>t?`on${Zc(t)}`:""),Gs=(t,e)=>!Object.is(t,e),Zs=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},xv=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Mv=t=>{const e=ie(t)?Number(t):NaN;return isNaN(e)?t:e};let Qu;const Do=()=>Qu||(Qu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function lr(t){if(Et(t)){const e={};for(let n=0;n{if(n){const r=n.split(Cv);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Sa(t){let e="";if(ie(t))e=t;else if(Et(t))for(let n=0;n{const e=new Set(t);return e.w=0,e.n=0,e},Hc=t=>(t.w&nn)>0,Wc=t=>(t.n&nn)>0,Iv=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r{(v==="length"||v>=f)&&h.push(d)})}else switch(n!==void 0&&h.push(u.get(n)),e){case"add":Et(t)?pl(n)&&h.push(u.get("length")):(h.push(u.get(Mn)),Ds(t)&&h.push(u.get(jo)));break;case"delete":Et(t)||(h.push(u.get(Mn)),Ds(t)&&h.push(u.get(jo)));break;case"set":Ds(t)&&h.push(u.get(Mn));break}if(h.length===1)h[0]&&Vo(h[0]);else{const f=[];for(const d of h)d&&f.push(...d);Vo(gl(f))}}function Vo(t,e){const n=Et(t)?t:[...t];for(const r of n)r.computed&&Ju(r);for(const r of n)r.computed||Ju(r)}function Ju(t,e){(t!==ai||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function Nv(t,e){var n;return(n=ra.get(t))==null?void 0:n.get(e)}const Bv=dl("__proto__,__v_isRef,__isVue"),Kc=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(_l)),zv=bl(),qv=bl(!1,!0),Fv=bl(!0),Yu=$v();function $v(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=qt(this);for(let o=0,u=this.length;o{t[e]=function(...n){vs();const r=qt(this)[e].apply(this,n);return _s(),r}}),t}function Dv(t){const e=qt(this);return Fe(e,"has",t),e.hasOwnProperty(t)}function bl(t=!1,e=!1){return function(r,s,o){if(s==="__v_isReactive")return!t;if(s==="__v_isReadonly")return t;if(s==="__v_isShallow")return e;if(s==="__v_raw"&&o===(t?e?n_:tf:e?Yc:Jc).get(r))return r;const u=Et(r);if(!t){if(u&&jt(Yu,s))return Reflect.get(Yu,s,o);if(s==="hasOwnProperty")return Dv}const h=Reflect.get(r,s,o);return(_l(s)?Kc.has(s):Bv(s))||(t||Fe(r,"get",s),e)?h:ce(h)?u&&pl(s)?h:h.value:Yt(h)?t?ka(h):ur(h):h}}const Zv=Qc(),jv=Qc(!0);function Qc(t=!1){return function(n,r,s,o){let u=n[r];if(ls(u)&&ce(u)&&!ce(s))return!1;if(!t&&(!aa(s)&&!ls(s)&&(u=qt(u),s=qt(s)),!Et(n)&&ce(u)&&!ce(s)))return u.value=s,!0;const h=Et(n)&&pl(r)?Number(r)t,Ea=t=>Reflect.getPrototypeOf(t);function Rr(t,e,n=!1,r=!1){t=t.__v_raw;const s=qt(t),o=qt(e);n||(e!==o&&Fe(s,"get",e),Fe(s,"get",o));const{has:u}=Ea(s),h=r?xl:n?Cl:Ks;if(u.call(s,e))return h(t.get(e));if(u.call(s,o))return h(t.get(o));t!==s&&t.get(e)}function Nr(t,e=!1){const n=this.__v_raw,r=qt(n),s=qt(t);return e||(t!==s&&Fe(r,"has",t),Fe(r,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function Br(t,e=!1){return t=t.__v_raw,!e&&Fe(qt(t),"iterate",Mn),Reflect.get(t,"size",t)}function th(t){t=qt(t);const e=qt(this);return Ea(e).has.call(e,t)||(e.add(t),Ni(e,"add",t,t)),this}function eh(t,e){e=qt(e);const n=qt(this),{has:r,get:s}=Ea(n);let o=r.call(n,t);o||(t=qt(t),o=r.call(n,t));const u=s.call(n,t);return n.set(t,e),o?Gs(e,u)&&Ni(n,"set",t,e):Ni(n,"add",t,e),this}function ih(t){const e=qt(this),{has:n,get:r}=Ea(e);let s=n.call(e,t);s||(t=qt(t),s=n.call(e,t)),r&&r.call(e,t);const o=e.delete(t);return s&&Ni(e,"delete",t,void 0),o}function nh(){const t=qt(this),e=t.size!==0,n=t.clear();return e&&Ni(t,"clear",void 0,void 0),n}function zr(t,e){return function(r,s){const o=this,u=o.__v_raw,h=qt(u),f=e?xl:t?Cl:Ks;return!t&&Fe(h,"iterate",Mn),u.forEach((d,v)=>r.call(s,f(d),f(v),o))}}function qr(t,e,n){return function(...r){const s=this.__v_raw,o=qt(s),u=Ds(o),h=t==="entries"||t===Symbol.iterator&&u,f=t==="keys"&&u,d=s[t](...r),v=n?xl:e?Cl:Ks;return!e&&Fe(o,"iterate",f?jo:Mn),{next(){const{value:_,done:p}=d.next();return p?{value:_,done:p}:{value:h?[v(_[0]),v(_[1])]:v(_),done:p}},[Symbol.iterator](){return this}}}}function ji(t){return function(...e){return t==="delete"?!1:this}}function Kv(){const t={get(o){return Rr(this,o)},get size(){return Br(this)},has:Nr,add:th,set:eh,delete:ih,clear:nh,forEach:zr(!1,!1)},e={get(o){return Rr(this,o,!1,!0)},get size(){return Br(this)},has:Nr,add:th,set:eh,delete:ih,clear:nh,forEach:zr(!1,!0)},n={get(o){return Rr(this,o,!0)},get size(){return Br(this,!0)},has(o){return Nr.call(this,o,!0)},add:ji("add"),set:ji("set"),delete:ji("delete"),clear:ji("clear"),forEach:zr(!0,!1)},r={get(o){return Rr(this,o,!0,!0)},get size(){return Br(this,!0)},has(o){return Nr.call(this,o,!0)},add:ji("add"),set:ji("set"),delete:ji("delete"),clear:ji("clear"),forEach:zr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=qr(o,!1,!1),n[o]=qr(o,!0,!1),e[o]=qr(o,!1,!0),r[o]=qr(o,!0,!0)}),[t,n,e,r]}const[Qv,Xv,Jv,Yv]=Kv();function Ml(t,e){const n=e?t?Yv:Jv:t?Xv:Qv;return(r,s,o)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(jt(n,s)&&s in r?n:r,s,o)}const t_={get:Ml(!1,!1)},e_={get:Ml(!1,!0)},i_={get:Ml(!0,!1)},Jc=new WeakMap,Yc=new WeakMap,tf=new WeakMap,n_=new WeakMap;function s_(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function r_(t){return t.__v_skip||!Object.isExtensible(t)?0:s_(pv(t))}function ur(t){return ls(t)?t:wl(t,!1,Xc,t_,Jc)}function a_(t){return wl(t,!1,Gv,e_,Yc)}function ka(t){return wl(t,!0,Uv,i_,tf)}function wl(t,e,n,r,s){if(!Yt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=s.get(t);if(o)return o;const u=r_(t);if(u===0)return t;const h=new Proxy(t,u===2?r:n);return s.set(t,h),h}function ts(t){return ls(t)?ts(t.__v_raw):!!(t&&t.__v_isReactive)}function ls(t){return!!(t&&t.__v_isReadonly)}function aa(t){return!!(t&&t.__v_isShallow)}function ef(t){return ts(t)||ls(t)}function qt(t){const e=t&&t.__v_raw;return e?qt(e):t}function Aa(t){return sa(t,"__v_skip",!0),t}const Ks=t=>Yt(t)?ur(t):t,Cl=t=>Yt(t)?ka(t):t;function Pl(t){Xi&&ai&&(t=qt(t),Gc(t.dep||(t.dep=gl())))}function Oa(t,e){t=qt(t);const n=t.dep;n&&Vo(n)}function ce(t){return!!(t&&t.__v_isRef===!0)}function ft(t){return sf(t,!1)}function nf(t){return sf(t,!0)}function sf(t,e){return ce(t)?t:new o_(t,e)}class o_{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:qt(e),this._value=n?e:Ks(e)}get value(){return Pl(this),this._value}set value(e){const n=this.__v_isShallow||aa(e)||ls(e);e=n?e:qt(e),Gs(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Ks(e),Oa(this))}}function l_(t){Oa(t)}function Pi(t){return ce(t)?t.value:t}const u_={get:(t,e,n)=>Pi(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const s=t[e];return ce(s)&&!ce(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function rf(t){return ts(t)?t:new Proxy(t,u_)}class h_{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=e(()=>Pl(this),()=>Oa(this));this._get=n,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}function c_(t){return new h_(t)}class f_{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Nv(qt(this._object),this._key)}}class d_{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function m_(t,e,n){return ce(t)?t:Rt(t)?new d_(t):Yt(t)&&arguments.length>1?v_(t,e,n):ft(t)}function v_(t,e,n){const r=t[e];return ce(r)?r:new f_(t,e,n)}class __{constructor(e,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new yl(e,()=>{this._dirty||(this._dirty=!0,Oa(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const e=qt(this);return Pl(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function p_(t,e,n=!1){let r,s;const o=Rt(t);return o?(r=t,s=ci):(r=t.get,s=t.set),new __(r,s,o||!s,n)}function Ji(t,e,n,r){let s;try{s=r?t(...r):t()}catch(o){Ia(o,e,n)}return s}function ti(t,e,n,r){if(Rt(t)){const o=Ji(t,e,n,r);return o&&Dc(o)&&o.catch(u=>{Ia(u,e,n)}),o}const s=[];for(let o=0;o>>1;Xs(Se[r])xi&&Se.splice(e,1)}function x_(t){Et(t)?es.push(...t):(!Oi||!Oi.includes(t,t.allowRecurse?gn+1:gn))&&es.push(t),of()}function sh(t,e=Qs?xi+1:0){for(;eXs(n)-Xs(r)),gn=0;gnt.id==null?1/0:t.id,M_=(t,e)=>{const n=Xs(t)-Xs(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function uf(t){Ho=!1,Qs=!0,Se.sort(M_);const e=ci;try{for(xi=0;xiie(y)?y.trim():y)),_&&(s=n.map(xv))}let h,f=r[h=Mo(e)]||r[h=Mo(os(e))];!f&&o&&(f=r[h=Mo(ms(e))]),f&&ti(f,t,6,s);const d=r[h+"Once"];if(d){if(!t.emitted)t.emitted={};else if(t.emitted[h])return;t.emitted[h]=!0,ti(d,t,6,s)}}function hf(t,e,n=!1){const r=e.emitsCache,s=r.get(t);if(s!==void 0)return s;const o=t.emits;let u={},h=!1;if(!Rt(t)){const f=d=>{const v=hf(d,e,!0);v&&(h=!0,ue(u,v))};!n&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}return!o&&!h?(Yt(t)&&r.set(t,null),null):(Et(o)?o.forEach(f=>u[f]=null):ue(u,o),Yt(t)&&r.set(t,u),u)}function Ra(t,e){return!t||!Ta(e)?!1:(e=e.slice(2).replace(/Once$/,""),jt(t,e[0].toLowerCase()+e.slice(1))||jt(t,ms(e))||jt(t,e))}let Ee=null,Na=null;function oa(t){const e=Ee;return Ee=t,Na=t&&t.type.__scopeId||null,e}function C_(t){Na=t}function P_(){Na=null}function At(t,e=Ee,n){if(!e||t._n)return t;const r=(...s)=>{r._d&&_h(-1);const o=oa(e);let u;try{u=t(...s)}finally{oa(o),r._d&&_h(1)}return u};return r._n=!0,r._c=!0,r._d=!0,r}function wo(t){const{type:e,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[u],slots:h,attrs:f,emit:d,render:v,renderCache:_,data:p,setupState:y,ctx:b,inheritAttrs:x}=t;let T,R;const S=oa(t);try{if(n.shapeFlag&4){const A=s||r;T=yi(v.call(A,A,_,o,y,p,b)),R=f}else{const A=e;T=yi(A.length>1?A(o,{attrs:f,slots:h,emit:d}):A(o,null)),R=e.props?f:T_(f)}}catch(A){Hs.length=0,Ia(A,t,1),T=yt(ei)}let C=T;if(R&&x!==!1){const A=Object.keys(R),{shapeFlag:q}=C;A.length&&q&7&&(u&&A.some(ml)&&(R=L_(R,u)),C=Bi(C,R))}return n.dirs&&(C=Bi(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),T=C,oa(S),T}const T_=t=>{let e;for(const n in t)(n==="class"||n==="style"||Ta(n))&&((e||(e={}))[n]=t[n]);return e},L_=(t,e)=>{const n={};for(const r in t)(!ml(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function S_(t,e,n){const{props:r,children:s,component:o}=t,{props:u,children:h,patchFlag:f}=e,d=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return r?rh(r,u,d):!!u;if(f&8){const v=e.dynamicProps;for(let _=0;_t.__isSuspense;function k_(t,e){e&&e.pendingBranch?Et(t)?e.effects.push(...t):e.effects.push(t):x_(t)}function A_(t,e){return Sl(t,null,e)}const Fr={};function Lt(t,e,n){return Sl(t,e,n)}function Sl(t,e,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:u}=Jt){var h;const f=Vc()===((h=we)==null?void 0:h.scope)?we:null;let d,v=!1,_=!1;if(ce(t)?(d=()=>t.value,v=aa(t)):ts(t)?(d=()=>t,r=!0):Et(t)?(_=!0,v=t.some(A=>ts(A)||aa(A)),d=()=>t.map(A=>{if(ce(A))return A.value;if(ts(A))return bn(A);if(Rt(A))return Ji(A,f,2)})):Rt(t)?e?d=()=>Ji(t,f,2):d=()=>{if(!(f&&f.isUnmounted))return p&&p(),ti(t,f,3,[y])}:d=ci,e&&r){const A=d;d=()=>bn(A())}let p,y=A=>{p=S.onStop=()=>{Ji(A,f,4)}},b;if(er)if(y=ci,e?n&&ti(e,f,3,[d(),_?[]:void 0,y]):d(),s==="sync"){const A=Mp();b=A.__watcherHandles||(A.__watcherHandles=[])}else return ci;let x=_?new Array(t.length).fill(Fr):Fr;const T=()=>{if(S.active)if(e){const A=S.run();(r||v||(_?A.some((q,Z)=>Gs(q,x[Z])):Gs(A,x)))&&(p&&p(),ti(e,f,3,[A,x===Fr?void 0:_&&x[0]===Fr?[]:x,y]),x=A)}else S.run()};T.allowRecurse=!!e;let R;s==="sync"?R=T:s==="post"?R=()=>be(T,f&&f.suspense):(T.pre=!0,f&&(T.id=f.uid),R=()=>Ll(T));const S=new yl(d,R);e?n?T():x=S.run():s==="post"?be(S.run.bind(S),f&&f.suspense):S.run();const C=()=>{S.stop(),f&&f.scope&&vl(f.scope.effects,S)};return b&&b.push(C),C}function O_(t,e,n){const r=this.proxy,s=ie(t)?t.includes(".")?ff(r,t):()=>r[t]:t.bind(r,r);let o;Rt(e)?o=e:(o=e.handler,n=e);const u=we;hs(this);const h=Sl(s,o.bind(r),n);return u?hs(u):wn(),h}function ff(t,e){const n=e.split(".");return()=>{let r=t;for(let s=0;s{bn(n,e)});else if(gv(t))for(const n in t)bn(t[n],e);return t}function Ri(t,e){const n=Ee;if(n===null)return t;const r=Da(n)||n.proxy,s=t.dirs||(t.dirs=[]);for(let o=0;o{t.isMounted=!0}),ve(()=>{t.isUnmounting=!0}),t}const Ge=[Function,Array],df={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge},R_={name:"BaseTransition",props:df,setup(t,{slots:e}){const n=Gt(),r=I_();let s;return()=>{const o=e.default&&vf(e.default(),!0);if(!o||!o.length)return;let u=o[0];if(o.length>1){for(const x of o)if(x.type!==ei){u=x;break}}const h=qt(t),{mode:f}=h;if(r.isLeaving)return Co(u);const d=ah(u);if(!d)return Co(u);const v=Wo(d,h,r,n);la(d,v);const _=n.subTree,p=_&&ah(_);let y=!1;const{getTransitionKey:b}=d.type;if(b){const x=b();s===void 0?s=x:x!==s&&(s=x,y=!0)}if(p&&p.type!==ei&&(!Ki(d,p)||y)){const x=Wo(p,h,r,n);if(la(p,x),f==="out-in")return r.isLeaving=!0,x.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Co(u);f==="in-out"&&d.type!==ei&&(x.delayLeave=(T,R,S)=>{const C=mf(r,p);C[String(p.key)]=p,T._leaveCb=()=>{R(),T._leaveCb=void 0,delete v.delayedLeave},v.delayedLeave=S})}return u}}},N_=R_;function mf(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Wo(t,e,n,r){const{appear:s,mode:o,persisted:u=!1,onBeforeEnter:h,onEnter:f,onAfterEnter:d,onEnterCancelled:v,onBeforeLeave:_,onLeave:p,onAfterLeave:y,onLeaveCancelled:b,onBeforeAppear:x,onAppear:T,onAfterAppear:R,onAppearCancelled:S}=e,C=String(t.key),A=mf(n,t),q=(N,I)=>{N&&ti(N,r,9,I)},Z=(N,I)=>{const F=I[1];q(N,I),Et(N)?N.every(W=>W.length<=1)&&F():N.length<=1&&F()},V={mode:o,persisted:u,beforeEnter(N){let I=h;if(!n.isMounted)if(s)I=x||h;else return;N._leaveCb&&N._leaveCb(!0);const F=A[C];F&&Ki(t,F)&&F.el._leaveCb&&F.el._leaveCb(),q(I,[N])},enter(N){let I=f,F=d,W=v;if(!n.isMounted)if(s)I=T||f,F=R||d,W=S||v;else return;let P=!1;const $=N._enterCb=z=>{P||(P=!0,z?q(W,[N]):q(F,[N]),V.delayedLeave&&V.delayedLeave(),N._enterCb=void 0)};I?Z(I,[N,$]):$()},leave(N,I){const F=String(t.key);if(N._enterCb&&N._enterCb(!0),n.isUnmounting)return I();q(_,[N]);let W=!1;const P=N._leaveCb=$=>{W||(W=!0,I(),$?q(b,[N]):q(y,[N]),N._leaveCb=void 0,A[F]===t&&delete A[F])};A[F]=t,p?Z(p,[N,P]):P()},clone(N){return Wo(N,e,n,r)}};return V}function Co(t){if(Ba(t))return t=Bi(t),t.children=null,t}function ah(t){return Ba(t)?t.children?t.children[0]:void 0:t}function la(t,e){t.shapeFlag&6&&t.component?la(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function vf(t,e=!1,n){let r=[],s=0;for(let o=0;o1)for(let o=0;oue({name:t.name},e,{setup:t}))():t}const is=t=>!!t.type.__asyncLoader,Ba=t=>t.type.__isKeepAlive,B_={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Gt(),r=n.ctx;if(!r.renderer)return()=>{const S=e.default&&e.default();return S&&S.length===1?S[0]:S};const s=new Map,o=new Set;let u=null;const h=n.suspense,{renderer:{p:f,m:d,um:v,o:{createElement:_}}}=r,p=_("div");r.activate=(S,C,A,q,Z)=>{const V=S.component;d(S,C,A,0,h),f(V.vnode,S,C,A,V,h,q,S.slotScopeIds,Z),be(()=>{V.isDeactivated=!1,V.a&&Zs(V.a);const N=S.props&&S.props.onVnodeMounted;N&&Qe(N,V.parent,S)},h)},r.deactivate=S=>{const C=S.component;d(S,p,null,1,h),be(()=>{C.da&&Zs(C.da);const A=S.props&&S.props.onVnodeUnmounted;A&&Qe(A,C.parent,S),C.isDeactivated=!0},h)};function y(S){Po(S),v(S,n,h,!0)}function b(S){s.forEach((C,A)=>{const q=bh(C.type);q&&(!S||!S(q))&&x(A)})}function x(S){const C=s.get(S);!u||!Ki(C,u)?y(C):u&&Po(u),s.delete(S),o.delete(S)}Lt(()=>[t.include,t.exclude],([S,C])=>{S&&b(A=>Bs(S,A)),C&&b(A=>!Bs(C,A))},{flush:"post",deep:!0});let T=null;const R=()=>{T!=null&&s.set(T,To(n.subTree))};return Ce(R),yf(R),ve(()=>{s.forEach(S=>{const{subTree:C,suspense:A}=n,q=To(C);if(S.type===q.type&&S.key===q.key){Po(q);const Z=q.component.da;Z&&be(Z,A);return}y(S)})}),()=>{if(T=null,!e.default)return null;const S=e.default(),C=S[0];if(S.length>1)return u=null,S;if(!Ys(C)||!(C.shapeFlag&4)&&!(C.shapeFlag&128))return u=null,C;let A=To(C);const q=A.type,Z=bh(is(A)?A.type.__asyncResolved||{}:q),{include:V,exclude:N,max:I}=t;if(V&&(!Z||!Bs(V,Z))||N&&Z&&Bs(N,Z))return u=A,C;const F=A.key==null?q:A.key,W=s.get(F);return A.el&&(A=Bi(A),C.shapeFlag&128&&(C.ssContent=A)),T=F,W?(A.el=W.el,A.component=W.component,A.transition&&la(A,A.transition),A.shapeFlag|=512,o.delete(F),o.add(F)):(o.add(F),I&&o.size>parseInt(I,10)&&x(o.values().next().value)),A.shapeFlag|=256,u=A,cf(C.type)?C:A}}},z_=B_;function Bs(t,e){return Et(t)?t.some(n=>Bs(n,e)):ie(t)?t.split(",").includes(e):vv(t)?t.test(e):!1}function El(t,e){_f(t,"a",e)}function hr(t,e){_f(t,"da",e)}function _f(t,e,n=we){const r=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(za(e,r,n),n){let s=n.parent;for(;s&&s.parent;)Ba(s.parent.vnode)&&q_(r,e,n,s),s=s.parent}}function q_(t,e,n,r){const s=za(e,t,r,!0);qa(()=>{vl(r[e],s)},n)}function Po(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function To(t){return t.shapeFlag&128?t.ssContent:t}function za(t,e,n=we,r=!1){if(n){const s=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...u)=>{if(n.isUnmounted)return;vs(),hs(n);const h=ti(e,n,t,u);return wn(),_s(),h});return r?s.unshift(o):s.push(o),o}}const qi=t=>(e,n=we)=>(!er||t==="sp")&&za(t,(...r)=>e(...r),n),pf=qi("bm"),Ce=qi("m"),gf=qi("bu"),yf=qi("u"),ve=qi("bum"),qa=qi("um"),F_=qi("sp"),$_=qi("rtg"),D_=qi("rtc");function Z_(t,e=we){za("ec",t,e)}const j_=Symbol.for("v-ndc");function bf(t,e,n,r){let s;const o=n&&n[r];if(Et(t)||ie(t)){s=new Array(t.length);for(let u=0,h=t.length;ue(u,h,void 0,o&&o[h]));else{const u=Object.keys(t);s=new Array(u.length);for(let h=0,f=u.length;hYs(e)?!(e.type===ei||e.type===Re&&!Mf(e.children)):!0)?t:null}const Uo=t=>t?Nf(t)?Da(t)||t.proxy:Uo(t.parent):null,js=ue(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=>Uo(t.parent),$root:t=>Uo(t.root),$emit:t=>t.emit,$options:t=>kl(t),$forceUpdate:t=>t.f||(t.f=()=>Ll(t.update)),$nextTick:t=>t.n||(t.n=Me.bind(t.proxy)),$watch:t=>O_.bind(t)}),Lo=(t,e)=>t!==Jt&&!t.__isScriptSetup&&jt(t,e),V_={get({_:t},e){const{ctx:n,setupState:r,data:s,props:o,accessCache:u,type:h,appContext:f}=t;let d;if(e[0]!=="$"){const y=u[e];if(y!==void 0)switch(y){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return o[e]}else{if(Lo(r,e))return u[e]=1,r[e];if(s!==Jt&&jt(s,e))return u[e]=2,s[e];if((d=t.propsOptions[0])&&jt(d,e))return u[e]=3,o[e];if(n!==Jt&&jt(n,e))return u[e]=4,n[e];Go&&(u[e]=0)}}const v=js[e];let _,p;if(v)return e==="$attrs"&&Fe(t,"get",e),v(t);if((_=h.__cssModules)&&(_=_[e]))return _;if(n!==Jt&&jt(n,e))return u[e]=4,n[e];if(p=f.config.globalProperties,jt(p,e))return p[e]},set({_:t},e,n){const{data:r,setupState:s,ctx:o}=t;return Lo(s,e)?(s[e]=n,!0):r!==Jt&&jt(r,e)?(r[e]=n,!0):jt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,propsOptions:o}},u){let h;return!!n[u]||t!==Jt&&jt(t,u)||Lo(e,u)||(h=o[0])&&jt(h,u)||jt(r,u)||jt(js,u)||jt(s.config.globalProperties,u)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:jt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function oh(t){return Et(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Go=!0;function H_(t){const e=kl(t),n=t.proxy,r=t.ctx;Go=!1,e.beforeCreate&&lh(e.beforeCreate,t,"bc");const{data:s,computed:o,methods:u,watch:h,provide:f,inject:d,created:v,beforeMount:_,mounted:p,beforeUpdate:y,updated:b,activated:x,deactivated:T,beforeDestroy:R,beforeUnmount:S,destroyed:C,unmounted:A,render:q,renderTracked:Z,renderTriggered:V,errorCaptured:N,serverPrefetch:I,expose:F,inheritAttrs:W,components:P,directives:$,filters:z}=e;if(d&&W_(d,r,null),u)for(const U in u){const j=u[U];Rt(j)&&(r[U]=j.bind(n))}if(s){const U=s.call(n,n);Yt(U)&&(t.data=ur(U))}if(Go=!0,o)for(const U in o){const j=o[U],Bt=Rt(j)?j.bind(n,n):Rt(j.get)?j.get.bind(n,n):ci,ot=!Rt(j)&&Rt(j.set)?j.set.bind(n):ci,bt=k({get:Bt,set:ot});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>bt.value,set:G=>bt.value=G})}if(h)for(const U in h)wf(h[U],r,n,U);if(f){const U=Rt(f)?f.call(n):f;Reflect.ownKeys(U).forEach(j=>{Al(j,U[j])})}v&&lh(v,t,"c");function it(U,j){Et(j)?j.forEach(Bt=>U(Bt.bind(n))):j&&U(j.bind(n))}if(it(pf,_),it(Ce,p),it(gf,y),it(yf,b),it(El,x),it(hr,T),it(Z_,N),it(D_,Z),it($_,V),it(ve,S),it(qa,A),it(F_,I),Et(F))if(F.length){const U=t.exposed||(t.exposed={});F.forEach(j=>{Object.defineProperty(U,j,{get:()=>n[j],set:Bt=>n[j]=Bt})})}else t.exposed||(t.exposed={});q&&t.render===ci&&(t.render=q),W!=null&&(t.inheritAttrs=W),P&&(t.components=P),$&&(t.directives=$)}function W_(t,e,n=ci){Et(t)&&(t=Ko(t));for(const r in t){const s=t[r];let o;Yt(s)?"default"in s?o=Yi(s.from||r,s.default,!0):o=Yi(s.from||r):o=Yi(s),ce(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:u=>o.value=u}):e[r]=o}}function lh(t,e,n){ti(Et(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function wf(t,e,n,r){const s=r.includes(".")?ff(n,r):()=>n[r];if(ie(t)){const o=e[t];Rt(o)&&Lt(s,o)}else if(Rt(t))Lt(s,t.bind(n));else if(Yt(t))if(Et(t))t.forEach(o=>wf(o,e,n,r));else{const o=Rt(t.handler)?t.handler.bind(n):e[t.handler];Rt(o)&&Lt(s,o,t)}}function kl(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:o,config:{optionMergeStrategies:u}}=t.appContext,h=o.get(e);let f;return h?f=h:!s.length&&!n&&!r?f=e:(f={},s.length&&s.forEach(d=>ua(f,d,u,!0)),ua(f,e,u)),Yt(e)&&o.set(e,f),f}function ua(t,e,n,r=!1){const{mixins:s,extends:o}=e;o&&ua(t,o,n,!0),s&&s.forEach(u=>ua(t,u,n,!0));for(const u in e)if(!(r&&u==="expose")){const h=U_[u]||n&&n[u];t[u]=h?h(t[u],e[u]):e[u]}return t}const U_={data:uh,props:hh,emits:hh,methods:zs,computed:zs,beforeCreate:Oe,created:Oe,beforeMount:Oe,mounted:Oe,beforeUpdate:Oe,updated:Oe,beforeDestroy:Oe,beforeUnmount:Oe,destroyed:Oe,unmounted:Oe,activated:Oe,deactivated:Oe,errorCaptured:Oe,serverPrefetch:Oe,components:zs,directives:zs,watch:K_,provide:uh,inject:G_};function uh(t,e){return e?t?function(){return ue(Rt(t)?t.call(this,this):t,Rt(e)?e.call(this,this):e)}:e:t}function G_(t,e){return zs(Ko(t),Ko(e))}function Ko(t){if(Et(t)){const e={};for(let n=0;n1)return n&&Rt(e)?e.call(r&&r.proxy):e}}function J_(t,e,n,r=!1){const s={},o={};sa(o,$a,1),t.propsDefaults=Object.create(null),Pf(t,e,s,o);for(const u in t.propsOptions[0])u in s||(s[u]=void 0);n?t.props=r?s:a_(s):t.type.props?t.props=s:t.props=o,t.attrs=o}function Y_(t,e,n,r){const{props:s,attrs:o,vnode:{patchFlag:u}}=t,h=qt(s),[f]=t.propsOptions;let d=!1;if((r||u>0)&&!(u&16)){if(u&8){const v=t.vnode.dynamicProps;for(let _=0;_{f=!0;const[p,y]=Tf(_,e,!0);ue(u,p),y&&h.push(...y)};!n&&e.mixins.length&&e.mixins.forEach(v),t.extends&&v(t.extends),t.mixins&&t.mixins.forEach(v)}if(!o&&!f)return Yt(t)&&r.set(t,Yn),Yn;if(Et(o))for(let v=0;v-1,y[1]=x<0||b-1||jt(y,"default"))&&h.push(_)}}}const d=[u,h];return Yt(t)&&r.set(t,d),d}function ch(t){return t[0]!=="$"}function fh(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function dh(t,e){return fh(t)===fh(e)}function mh(t,e){return Et(e)?e.findIndex(n=>dh(n,t)):Rt(e)&&dh(e,t)?0:-1}const Lf=t=>t[0]==="_"||t==="$stable",Ol=t=>Et(t)?t.map(yi):[yi(t)],tp=(t,e,n)=>{if(e._n)return e;const r=At((...s)=>Ol(e(...s)),n);return r._c=!1,r},Sf=(t,e,n)=>{const r=t._ctx;for(const s in t){if(Lf(s))continue;const o=t[s];if(Rt(o))e[s]=tp(s,o,r);else if(o!=null){const u=Ol(o);e[s]=()=>u}}},Ef=(t,e)=>{const n=Ol(e);t.slots.default=()=>n},ep=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=qt(e),sa(e,"_",n)):Sf(e,t.slots={})}else t.slots={},e&&Ef(t,e);sa(t.slots,$a,1)},ip=(t,e,n)=>{const{vnode:r,slots:s}=t;let o=!0,u=Jt;if(r.shapeFlag&32){const h=e._;h?n&&h===1?o=!1:(ue(s,e),!n&&h===1&&delete s._):(o=!e.$stable,Sf(e,s)),u=e}else e&&(Ef(t,e),u={default:1});if(o)for(const h in s)!Lf(h)&&!(h in u)&&delete s[h]};function Xo(t,e,n,r,s=!1){if(Et(t)){t.forEach((p,y)=>Xo(p,e&&(Et(e)?e[y]:e),n,r,s));return}if(is(r)&&!s)return;const o=r.shapeFlag&4?Da(r.component)||r.component.proxy:r.el,u=s?null:o,{i:h,r:f}=t,d=e&&e.r,v=h.refs===Jt?h.refs={}:h.refs,_=h.setupState;if(d!=null&&d!==f&&(ie(d)?(v[d]=null,jt(_,d)&&(_[d]=null)):ce(d)&&(d.value=null)),Rt(f))Ji(f,h,12,[u,v]);else{const p=ie(f),y=ce(f);if(p||y){const b=()=>{if(t.f){const x=p?jt(_,f)?_[f]:v[f]:f.value;s?Et(x)&&vl(x,o):Et(x)?x.includes(o)||x.push(o):p?(v[f]=[o],jt(_,f)&&(_[f]=v[f])):(f.value=[o],t.k&&(v[t.k]=f.value))}else p?(v[f]=u,jt(_,f)&&(_[f]=u)):y&&(f.value=u,t.k&&(v[t.k]=u))};u?(b.id=-1,be(b,n)):b()}}}const be=k_;function np(t){return sp(t)}function sp(t,e){const n=Do();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:u,createText:h,createComment:f,setText:d,setElementText:v,parentNode:_,nextSibling:p,setScopeId:y=ci,insertStaticContent:b}=t,x=(M,E,H,X=null,Q=null,rt=null,ut=!1,at=null,lt=!!E.dynamicChildren)=>{if(M===E)return;M&&!Ki(M,E)&&(X=Ht(M),G(M,Q,rt,!0),M=null),E.patchFlag===-2&&(lt=!1,E.dynamicChildren=null);const{type:O,ref:K,shapeFlag:tt}=E;switch(O){case Fa:T(M,E,H,X);break;case ei:R(M,E,H,X);break;case So:M==null&&S(E,H,X,ut);break;case Re:P(M,E,H,X,Q,rt,ut,at,lt);break;default:tt&1?q(M,E,H,X,Q,rt,ut,at,lt):tt&6?$(M,E,H,X,Q,rt,ut,at,lt):(tt&64||tt&128)&&O.process(M,E,H,X,Q,rt,ut,at,lt,wt)}K!=null&&Q&&Xo(K,M&&M.ref,rt,E||M,!E)},T=(M,E,H,X)=>{if(M==null)r(E.el=h(E.children),H,X);else{const Q=E.el=M.el;E.children!==M.children&&d(Q,E.children)}},R=(M,E,H,X)=>{M==null?r(E.el=f(E.children||""),H,X):E.el=M.el},S=(M,E,H,X)=>{[M.el,M.anchor]=b(M.children,E,H,X,M.el,M.anchor)},C=({el:M,anchor:E},H,X)=>{let Q;for(;M&&M!==E;)Q=p(M),r(M,H,X),M=Q;r(E,H,X)},A=({el:M,anchor:E})=>{let H;for(;M&&M!==E;)H=p(M),s(M),M=H;s(E)},q=(M,E,H,X,Q,rt,ut,at,lt)=>{ut=ut||E.type==="svg",M==null?Z(E,H,X,Q,rt,ut,at,lt):I(M,E,Q,rt,ut,at,lt)},Z=(M,E,H,X,Q,rt,ut,at)=>{let lt,O;const{type:K,props:tt,shapeFlag:ht,transition:mt,dirs:vt}=M;if(lt=M.el=u(M.type,rt,tt&&tt.is,tt),ht&8?v(lt,M.children):ht&16&&N(M.children,lt,null,X,Q,rt&&K!=="foreignObject",ut,at),vt&&mn(M,null,X,"created"),V(lt,M,M.scopeId,ut,X),tt){for(const Pt in tt)Pt!=="value"&&!Kr(Pt)&&o(lt,Pt,null,tt[Pt],rt,M.children,X,Q,ct);"value"in tt&&o(lt,"value",null,tt.value),(O=tt.onVnodeBeforeMount)&&Qe(O,X,M)}vt&&mn(M,null,X,"beforeMount");const gt=(!Q||Q&&!Q.pendingBranch)&&mt&&!mt.persisted;gt&&mt.beforeEnter(lt),r(lt,E,H),((O=tt&&tt.onVnodeMounted)||gt||vt)&&be(()=>{O&&Qe(O,X,M),gt&&mt.enter(lt),vt&&mn(M,null,X,"mounted")},Q)},V=(M,E,H,X,Q)=>{if(H&&y(M,H),X)for(let rt=0;rt{for(let O=lt;O{const at=E.el=M.el;let{patchFlag:lt,dynamicChildren:O,dirs:K}=E;lt|=M.patchFlag&16;const tt=M.props||Jt,ht=E.props||Jt;let mt;H&&vn(H,!1),(mt=ht.onVnodeBeforeUpdate)&&Qe(mt,H,E,M),K&&mn(E,M,H,"beforeUpdate"),H&&vn(H,!0);const vt=Q&&E.type!=="foreignObject";if(O?F(M.dynamicChildren,O,at,H,X,vt,rt):ut||j(M,E,at,null,H,X,vt,rt,!1),lt>0){if(lt&16)W(at,E,tt,ht,H,X,Q);else if(lt&2&&tt.class!==ht.class&&o(at,"class",null,ht.class,Q),lt&4&&o(at,"style",tt.style,ht.style,Q),lt&8){const gt=E.dynamicProps;for(let Pt=0;Pt{mt&&Qe(mt,H,E,M),K&&mn(E,M,H,"updated")},X)},F=(M,E,H,X,Q,rt,ut)=>{for(let at=0;at{if(H!==X){if(H!==Jt)for(const at in H)!Kr(at)&&!(at in X)&&o(M,at,H[at],null,ut,E.children,Q,rt,ct);for(const at in X){if(Kr(at))continue;const lt=X[at],O=H[at];lt!==O&&at!=="value"&&o(M,at,O,lt,ut,E.children,Q,rt,ct)}"value"in X&&o(M,"value",H.value,X.value)}},P=(M,E,H,X,Q,rt,ut,at,lt)=>{const O=E.el=M?M.el:h(""),K=E.anchor=M?M.anchor:h("");let{patchFlag:tt,dynamicChildren:ht,slotScopeIds:mt}=E;mt&&(at=at?at.concat(mt):mt),M==null?(r(O,H,X),r(K,H,X),N(E.children,H,K,Q,rt,ut,at,lt)):tt>0&&tt&64&&ht&&M.dynamicChildren?(F(M.dynamicChildren,ht,H,Q,rt,ut,at),(E.key!=null||Q&&E===Q.subTree)&&Il(M,E,!0)):j(M,E,H,K,Q,rt,ut,at,lt)},$=(M,E,H,X,Q,rt,ut,at,lt)=>{E.slotScopeIds=at,M==null?E.shapeFlag&512?Q.ctx.activate(E,H,X,ut,lt):z(E,H,X,Q,rt,ut,lt):nt(M,E,lt)},z=(M,E,H,X,Q,rt,ut)=>{const at=M.component=vp(M,X,Q);if(Ba(M)&&(at.ctx.renderer=wt),_p(at),at.asyncDep){if(Q&&Q.registerDep(at,it),!M.el){const lt=at.subTree=yt(ei);R(null,lt,E,H)}return}it(at,M,E,H,Q,rt,ut)},nt=(M,E,H)=>{const X=E.component=M.component;if(S_(M,E,H))if(X.asyncDep&&!X.asyncResolved){U(X,E,H);return}else X.next=E,b_(X.update),X.update();else E.el=M.el,X.vnode=E},it=(M,E,H,X,Q,rt,ut)=>{const at=()=>{if(M.isMounted){let{next:K,bu:tt,u:ht,parent:mt,vnode:vt}=M,gt=K,Pt;vn(M,!1),K?(K.el=vt.el,U(M,K,ut)):K=vt,tt&&Zs(tt),(Pt=K.props&&K.props.onVnodeBeforeUpdate)&&Qe(Pt,mt,K,vt),vn(M,!0);const Dt=wo(M),re=M.subTree;M.subTree=Dt,x(re,Dt,_(re.el),Ht(re),M,Q,rt),K.el=Dt.el,gt===null&&E_(M,Dt.el),ht&&be(ht,Q),(Pt=K.props&&K.props.onVnodeUpdated)&&be(()=>Qe(Pt,mt,K,vt),Q)}else{let K;const{el:tt,props:ht}=E,{bm:mt,m:vt,parent:gt}=M,Pt=is(E);if(vn(M,!1),mt&&Zs(mt),!Pt&&(K=ht&&ht.onVnodeBeforeMount)&&Qe(K,gt,E),vn(M,!0),tt&&ke){const Dt=()=>{M.subTree=wo(M),ke(tt,M.subTree,M,Q,null)};Pt?E.type.__asyncLoader().then(()=>!M.isUnmounted&&Dt()):Dt()}else{const Dt=M.subTree=wo(M);x(null,Dt,H,X,M,Q,rt),E.el=Dt.el}if(vt&&be(vt,Q),!Pt&&(K=ht&&ht.onVnodeMounted)){const Dt=E;be(()=>Qe(K,gt,Dt),Q)}(E.shapeFlag&256||gt&&is(gt.vnode)&>.vnode.shapeFlag&256)&&M.a&&be(M.a,Q),M.isMounted=!0,E=H=X=null}},lt=M.effect=new yl(at,()=>Ll(O),M.scope),O=M.update=()=>lt.run();O.id=M.uid,vn(M,!0),O()},U=(M,E,H)=>{E.component=M;const X=M.vnode.props;M.vnode=E,M.next=null,Y_(M,E.props,X,H),ip(M,E.children,H),vs(),sh(),_s()},j=(M,E,H,X,Q,rt,ut,at,lt=!1)=>{const O=M&&M.children,K=M?M.shapeFlag:0,tt=E.children,{patchFlag:ht,shapeFlag:mt}=E;if(ht>0){if(ht&128){ot(O,tt,H,X,Q,rt,ut,at,lt);return}else if(ht&256){Bt(O,tt,H,X,Q,rt,ut,at,lt);return}}mt&8?(K&16&&ct(O,Q,rt),tt!==O&&v(H,tt)):K&16?mt&16?ot(O,tt,H,X,Q,rt,ut,at,lt):ct(O,Q,rt,!0):(K&8&&v(H,""),mt&16&&N(tt,H,X,Q,rt,ut,at,lt))},Bt=(M,E,H,X,Q,rt,ut,at,lt)=>{M=M||Yn,E=E||Yn;const O=M.length,K=E.length,tt=Math.min(O,K);let ht;for(ht=0;htK?ct(M,Q,rt,!0,!1,tt):N(E,H,X,Q,rt,ut,at,lt,tt)},ot=(M,E,H,X,Q,rt,ut,at,lt)=>{let O=0;const K=E.length;let tt=M.length-1,ht=K-1;for(;O<=tt&&O<=ht;){const mt=M[O],vt=E[O]=lt?Gi(E[O]):yi(E[O]);if(Ki(mt,vt))x(mt,vt,H,null,Q,rt,ut,at,lt);else break;O++}for(;O<=tt&&O<=ht;){const mt=M[tt],vt=E[ht]=lt?Gi(E[ht]):yi(E[ht]);if(Ki(mt,vt))x(mt,vt,H,null,Q,rt,ut,at,lt);else break;tt--,ht--}if(O>tt){if(O<=ht){const mt=ht+1,vt=mtht)for(;O<=tt;)G(M[O],Q,rt,!0),O++;else{const mt=O,vt=O,gt=new Map;for(O=vt;O<=ht;O++){const Ot=E[O]=lt?Gi(E[O]):yi(E[O]);Ot.key!=null&>.set(Ot.key,O)}let Pt,Dt=0;const re=ht-vt+1;let De=!1,$i=0;const et=new Array(re);for(O=0;O=re){G(Ot,Q,rt,!0);continue}let $t;if(Ot.key!=null)$t=gt.get(Ot.key);else for(Pt=vt;Pt<=ht;Pt++)if(et[Pt-vt]===0&&Ki(Ot,E[Pt])){$t=Pt;break}$t===void 0?G(Ot,Q,rt,!0):(et[$t-vt]=O+1,$t>=$i?$i=$t:De=!0,x(Ot,E[$t],H,null,Q,rt,ut,at,lt),Dt++)}const Ct=De?rp(et):Yn;for(Pt=Ct.length-1,O=re-1;O>=0;O--){const Ot=vt+O,$t=E[Ot],Xt=Ot+1{const{el:rt,type:ut,transition:at,children:lt,shapeFlag:O}=M;if(O&6){bt(M.component.subTree,E,H,X);return}if(O&128){M.suspense.move(E,H,X);return}if(O&64){ut.move(M,E,H,wt);return}if(ut===Re){r(rt,E,H);for(let tt=0;ttat.enter(rt),Q);else{const{leave:tt,delayLeave:ht,afterLeave:mt}=at,vt=()=>r(rt,E,H),gt=()=>{tt(rt,()=>{vt(),mt&&mt()})};ht?ht(rt,vt,gt):gt()}else r(rt,E,H)},G=(M,E,H,X=!1,Q=!1)=>{const{type:rt,props:ut,ref:at,children:lt,dynamicChildren:O,shapeFlag:K,patchFlag:tt,dirs:ht}=M;if(at!=null&&Xo(at,null,H,M,!0),K&256){E.ctx.deactivate(M);return}const mt=K&1&&ht,vt=!is(M);let gt;if(vt&&(gt=ut&&ut.onVnodeBeforeUnmount)&&Qe(gt,E,M),K&6)Mt(M.component,H,X);else{if(K&128){M.suspense.unmount(H,X);return}mt&&mn(M,null,E,"beforeUnmount"),K&64?M.type.remove(M,E,H,Q,wt,X):O&&(rt!==Re||tt>0&&tt&64)?ct(O,E,H,!1,!0):(rt===Re&&tt&384||!Q&&K&16)&&ct(lt,E,H),X&&St(M)}(vt&&(gt=ut&&ut.onVnodeUnmounted)||mt)&&be(()=>{gt&&Qe(gt,E,M),mt&&mn(M,null,E,"unmounted")},H)},St=M=>{const{type:E,el:H,anchor:X,transition:Q}=M;if(E===Re){zt(H,X);return}if(E===So){A(M);return}const rt=()=>{s(H),Q&&!Q.persisted&&Q.afterLeave&&Q.afterLeave()};if(M.shapeFlag&1&&Q&&!Q.persisted){const{leave:ut,delayLeave:at}=Q,lt=()=>ut(H,rt);at?at(M.el,rt,lt):lt()}else rt()},zt=(M,E)=>{let H;for(;M!==E;)H=p(M),s(M),M=H;s(E)},Mt=(M,E,H)=>{const{bum:X,scope:Q,update:rt,subTree:ut,um:at}=M;X&&Zs(X),Q.stop(),rt&&(rt.active=!1,G(ut,M,E,H)),at&&be(at,E),be(()=>{M.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},ct=(M,E,H,X=!1,Q=!1,rt=0)=>{for(let ut=rt;utM.shapeFlag&6?Ht(M.component.subTree):M.shapeFlag&128?M.suspense.next():p(M.anchor||M.el),pe=(M,E,H)=>{M==null?E._vnode&&G(E._vnode,null,null,!0):x(E._vnode||null,M,E,null,null,null,H),sh(),lf(),E._vnode=M},wt={p:x,um:G,m:bt,r:St,mt:z,mc:N,pc:j,pbc:F,n:Ht,o:t};let Pe,ke;return e&&([Pe,ke]=e(wt)),{render:pe,hydrate:Pe,createApp:X_(pe,Pe)}}function vn({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Il(t,e,n=!1){const r=t.children,s=e.children;if(Et(r)&&Et(s))for(let o=0;o>1,t[n[h]]0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,u=n[o-1];o-- >0;)n[o]=u,u=e[u];return n}const ap=t=>t.__isTeleport,Vs=t=>t&&(t.disabled||t.disabled===""),vh=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Jo=(t,e)=>{const n=t&&t.to;return ie(n)?e?e(n):null:n},op={__isTeleport:!0,process(t,e,n,r,s,o,u,h,f,d){const{mc:v,pc:_,pbc:p,o:{insert:y,querySelector:b,createText:x,createComment:T}}=d,R=Vs(e.props);let{shapeFlag:S,children:C,dynamicChildren:A}=e;if(t==null){const q=e.el=x(""),Z=e.anchor=x("");y(q,n,r),y(Z,n,r);const V=e.target=Jo(e.props,b),N=e.targetAnchor=x("");V&&(y(N,V),u=u||vh(V));const I=(F,W)=>{S&16&&v(C,F,W,s,o,u,h,f)};R?I(n,Z):V&&I(V,N)}else{e.el=t.el;const q=e.anchor=t.anchor,Z=e.target=t.target,V=e.targetAnchor=t.targetAnchor,N=Vs(t.props),I=N?n:Z,F=N?q:V;if(u=u||vh(Z),A?(p(t.dynamicChildren,A,I,s,o,u,h),Il(t,e,!0)):f||_(t,e,I,F,s,o,u,h,!1),R)N||$r(e,n,q,d,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const W=e.target=Jo(e.props,b);W&&$r(e,W,null,d,0)}else N&&$r(e,Z,V,d,1)}kf(e)},remove(t,e,n,r,{um:s,o:{remove:o}},u){const{shapeFlag:h,children:f,anchor:d,targetAnchor:v,target:_,props:p}=t;if(_&&o(v),(u||!Vs(p))&&(o(d),h&16))for(let y=0;y0?ui||Yn:null,hp(),Js>0&&ui&&ui.push(t),t}function us(t,e,n,r,s,o){return Af(tr(t,e,n,r,s,o,!0))}function Ye(t,e,n,r,s){return Af(yt(t,e,n,r,s,!0))}function Ys(t){return t?t.__v_isVNode===!0:!1}function Ki(t,e){return t.type===e.type&&t.key===e.key}const $a="__vInternal",Of=({key:t})=>t??null,Qr=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?ie(t)||ce(t)||Rt(t)?{i:Ee,r:t,k:e,f:!!n}:t:null);function tr(t,e=null,n=null,r=0,s=null,o=t===Re?0:1,u=!1,h=!1){const f={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Of(e),ref:e&&Qr(e),scopeId:Na,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ee};return h?(Rl(f,n),o&128&&t.normalize(f)):n&&(f.shapeFlag|=ie(n)?8:16),Js>0&&!u&&ui&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&ui.push(f),f}const yt=cp;function cp(t,e=null,n=null,r=0,s=null,o=!1){if((!t||t===j_)&&(t=ei),Ys(t)){const h=Bi(t,e,!0);return n&&Rl(h,n),Js>0&&!o&&ui&&(h.shapeFlag&6?ui[ui.indexOf(t)]=h:ui.push(h)),h.patchFlag|=-2,h}if(bp(t)&&(t=t.__vccOpts),e){e=fp(e);let{class:h,style:f}=e;h&&!ie(h)&&(e.class=Sa(h)),Yt(f)&&(ef(f)&&!Et(f)&&(f=ue({},f)),e.style=lr(f))}const u=ie(t)?1:cf(t)?128:ap(t)?64:Yt(t)?4:Rt(t)?2:0;return tr(t,e,n,r,s,u,o,!0)}function fp(t){return t?ef(t)||$a in t?ue({},t):t:null}function Bi(t,e,n=!1){const{props:r,ref:s,patchFlag:o,children:u}=t,h=e?Rf(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&Of(h),ref:e&&e.ref?n&&s?Et(s)?s.concat(Qr(e)):[s,Qr(e)]:Qr(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:u,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Re?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Bi(t.ssContent),ssFallback:t.ssFallback&&Bi(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Ii(t=" ",e=0){return yt(Fa,null,t,e)}function If(t="",e=!1){return e?(de(),Ye(ei,null,t)):yt(ei,null,t)}function yi(t){return t==null||typeof t=="boolean"?yt(ei):Et(t)?yt(Re,null,t.slice()):typeof t=="object"?Gi(t):yt(Fa,null,String(t))}function Gi(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Bi(t)}function Rl(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(Et(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),Rl(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!($a in e)?e._ctx=Ee:s===3&&Ee&&(Ee.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Rt(e)?(e={default:e,_ctx:Ee},n=32):(e=String(e),r&64?(n=16,e=[Ii(e)]):n=8);t.children=e,t.shapeFlag|=n}function Rf(...t){const e={};for(let n=0;nwe||Ee;let Nl,Vn,ph="__VUE_INSTANCE_SETTERS__";(Vn=Do()[ph])||(Vn=Do()[ph]=[]),Vn.push(t=>we=t),Nl=t=>{Vn.length>1?Vn.forEach(e=>e(t)):Vn[0](t)};const hs=t=>{Nl(t),t.scope.on()},wn=()=>{we&&we.scope.off(),Nl(null)};function Nf(t){return t.vnode.shapeFlag&4}let er=!1;function _p(t,e=!1){er=e;const{props:n,children:r}=t.vnode,s=Nf(t);J_(t,n,s,e),ep(t,r);const o=s?pp(t,e):void 0;return er=!1,o}function pp(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=Aa(new Proxy(t.ctx,V_));const{setup:r}=n;if(r){const s=t.setupContext=r.length>1?yp(t):null;hs(t),vs();const o=Ji(r,t,0,[t.props,s]);if(_s(),wn(),Dc(o)){if(o.then(wn,wn),e)return o.then(u=>{gh(t,u,e)}).catch(u=>{Ia(u,t,0)});t.asyncDep=o}else gh(t,o,e)}else Bf(t,e)}function gh(t,e,n){Rt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Yt(e)&&(t.setupState=rf(e)),Bf(t,n)}let yh;function Bf(t,e,n){const r=t.type;if(!t.render){if(!e&&yh&&!r.render){const s=r.template||kl(t).template;if(s){const{isCustomElement:o,compilerOptions:u}=t.appContext.config,{delimiters:h,compilerOptions:f}=r,d=ue(ue({isCustomElement:o,delimiters:h},u),f);r.render=yh(s,d)}}t.render=r.render||ci}hs(t),vs(),H_(t),_s(),wn()}function gp(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return Fe(t,"get","$attrs"),e[n]}}))}function yp(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return gp(t)},slots:t.slots,emit:t.emit,expose:e}}function Da(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(rf(Aa(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in js)return js[n](t)},has(e,n){return n in e||n in js}}))}function bh(t,e=!0){return Rt(t)?t.displayName||t.name:t.name||e&&t.__name}function bp(t){return Rt(t)&&"__vccOpts"in t}const k=(t,e)=>p_(t,e,er);function J(t,e,n){const r=arguments.length;return r===2?Yt(e)&&!Et(e)?Ys(e)?yt(t,null,[e]):yt(t,e):yt(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ys(n)&&(n=[n]),yt(t,e,n))}const xp=Symbol.for("v-scx"),Mp=()=>Yi(xp),wp="3.3.4",Cp="http://www.w3.org/2000/svg",yn=typeof document<"u"?document:null,xh=yn&&yn.createElement("template"),Pp={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const s=e?yn.createElementNS(Cp,t):yn.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:t=>yn.createTextNode(t),createComment:t=>yn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>yn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,s,o){const u=n?n.previousSibling:e.lastChild;if(s&&(s===o||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{xh.innerHTML=r?`${t}`:t;const h=xh.content;if(r){const f=h.firstChild;for(;f.firstChild;)h.appendChild(f.firstChild);h.removeChild(f)}e.insertBefore(h,n)}return[u?u.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function Tp(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function Lp(t,e,n){const r=t.style,s=ie(n);if(n&&!s){if(e&&!ie(e))for(const o in e)n[o]==null&&Yo(r,o,"");for(const o in n)Yo(r,o,n[o])}else{const o=r.display;s?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=o)}}const Mh=/\s*!important$/;function Yo(t,e,n){if(Et(n))n.forEach(r=>Yo(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=Sp(t,e);Mh.test(n)?t.setProperty(ms(r),n.replace(Mh,""),"important"):t[r]=n}}const wh=["Webkit","Moz","ms"],Eo={};function Sp(t,e){const n=Eo[e];if(n)return n;let r=os(e);if(r!=="filter"&&r in t)return Eo[e]=r;r=Zc(r);for(let s=0;sko||(Np.then(()=>ko=0),ko=Date.now());function zp(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ti(qp(r,n.value),e,5,[r])};return n.value=t,n.attached=Bp(),n}function qp(t,e){if(Et(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>s=>!s._stopped&&r&&r(s))}else return e}const Th=/^on[a-z]/,Fp=(t,e,n,r,s=!1,o,u,h,f)=>{e==="class"?Tp(t,r,s):e==="style"?Lp(t,n,r):Ta(e)?ml(e)||Ip(t,e,n,r,u):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):$p(t,e,r,s))?kp(t,e,r,o,u,h,f):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),Ep(t,e,r,s))};function $p(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&Th.test(e)&&Rt(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Th.test(e)&&ie(n)?!1:e in t}const Vi="transition",Is="animation",ps=(t,{slots:e})=>J(N_,Dp(t),e);ps.displayName="Transition";const zf={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};ps.props=ue({},df,zf);const _n=(t,e=[])=>{Et(t)?t.forEach(n=>n(...e)):t&&t(...e)},Lh=t=>t?Et(t)?t.some(e=>e.length>1):t.length>1:!1;function Dp(t){const e={};for(const P in t)P in zf||(e[P]=t[P]);if(t.css===!1)return e;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:u=`${n}-enter-active`,enterToClass:h=`${n}-enter-to`,appearFromClass:f=o,appearActiveClass:d=u,appearToClass:v=h,leaveFromClass:_=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=t,b=Zp(s),x=b&&b[0],T=b&&b[1],{onBeforeEnter:R,onEnter:S,onEnterCancelled:C,onLeave:A,onLeaveCancelled:q,onBeforeAppear:Z=R,onAppear:V=S,onAppearCancelled:N=C}=e,I=(P,$,z)=>{pn(P,$?v:h),pn(P,$?d:u),z&&z()},F=(P,$)=>{P._isLeaving=!1,pn(P,_),pn(P,y),pn(P,p),$&&$()},W=P=>($,z)=>{const nt=P?V:S,it=()=>I($,P,z);_n(nt,[$,it]),Sh(()=>{pn($,P?f:o),Hi($,P?v:h),Lh(nt)||Eh($,r,x,it)})};return ue(e,{onBeforeEnter(P){_n(R,[P]),Hi(P,o),Hi(P,u)},onBeforeAppear(P){_n(Z,[P]),Hi(P,f),Hi(P,d)},onEnter:W(!1),onAppear:W(!0),onLeave(P,$){P._isLeaving=!0;const z=()=>F(P,$);Hi(P,_),Hp(),Hi(P,p),Sh(()=>{P._isLeaving&&(pn(P,_),Hi(P,y),Lh(A)||Eh(P,r,T,z))}),_n(A,[P,z])},onEnterCancelled(P){I(P,!1),_n(C,[P])},onAppearCancelled(P){I(P,!0),_n(N,[P])},onLeaveCancelled(P){F(P),_n(q,[P])}})}function Zp(t){if(t==null)return null;if(Yt(t))return[Ao(t.enter),Ao(t.leave)];{const e=Ao(t);return[e,e]}}function Ao(t){return Mv(t)}function Hi(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function pn(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function Sh(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let jp=0;function Eh(t,e,n,r){const s=t._endId=++jp,o=()=>{s===t._endId&&r()};if(n)return setTimeout(o,n);const{type:u,timeout:h,propCount:f}=Vp(t,e);if(!u)return r();const d=u+"end";let v=0;const _=()=>{t.removeEventListener(d,p),o()},p=y=>{y.target===t&&++v>=f&&_()};setTimeout(()=>{v(n[b]||"").split(", "),s=r(`${Vi}Delay`),o=r(`${Vi}Duration`),u=kh(s,o),h=r(`${Is}Delay`),f=r(`${Is}Duration`),d=kh(h,f);let v=null,_=0,p=0;e===Vi?u>0&&(v=Vi,_=u,p=o.length):e===Is?d>0&&(v=Is,_=d,p=f.length):(_=Math.max(u,d),v=_>0?u>d?Vi:Is:null,p=v?v===Vi?o.length:f.length:0);const y=v===Vi&&/\b(transform|all)(,|$)/.test(r(`${Vi}Property`).toString());return{type:v,timeout:_,propCount:p,hasTransform:y}}function kh(t,e){for(;t.lengthAh(n)+Ah(t[r])))}function Ah(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function Hp(){return document.body.offsetHeight}const Wp=ue({patchProp:Fp},Pp);let Oh;function Up(){return Oh||(Oh=np(Wp))}const Gp=(...t)=>{const e=Up().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=Kp(r);if(!s)return;const o=e._component;!Rt(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const u=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),u},e};function Kp(t){return ie(t)?document.querySelector(t):t}const _e=t=>Aa(An(t)),Za=t=>Aa(t);function Ne(t,e){return t!==void 0&&t()||e}function Qp(t,e){if(t!==void 0){const n=t();if(n!=null)return n.slice()}return e}function Qi(t,e){return t!==void 0?e.concat(t()):e}function qf(t,e,n,r,s,o){e.key=r+s;const u=J(t,e,n);return s===!0?Ri(u,o()):u}const wi=_e({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:e}){const n=k(()=>`q-item__section column q-item__section--${t.avatar===!0||t.side===!0||t.thumbnail===!0?"side":"main"}`+(t.top===!0?" q-item__section--top justify-start":" justify-center")+(t.avatar===!0?" q-item__section--avatar":"")+(t.thumbnail===!0?" q-item__section--thumbnail":"")+(t.noWrap===!0?" q-item__section--nowrap":""));return()=>J("div",{class:n.value},Ne(e.default))}}),On={dark:{type:Boolean,default:null}};function In(t,e){return k(()=>t.dark===null?e.dark.isActive:t.dark)}function Xr(t){if(Object(t.$parent)===t.$parent)return t.$parent;let{parent:e}=t.$;for(;Object(e)===e;){if(Object(e.proxy)===e.proxy)return e.proxy;e=e.parent}}function Ff(t,e){typeof e.type=="symbol"?Array.isArray(e.children)===!0&&e.children.forEach(n=>{Ff(t,n)}):t.add(e)}function Xp(t){const e=new Set;return t.forEach(n=>{Ff(e,n)}),Array.from(e)}function $f(t){return t.appContext.config.globalProperties.$router!==void 0}function Df(t){return t.isUnmounted===!0||t.isDeactivated===!0}function Ih(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Rh(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Jp(t,e){for(const n in e){const r=e[n],s=t[n];if(typeof r=="string"){if(r!==s)return!1}else if(Array.isArray(s)===!1||s.length!==r.length||r.some((o,u)=>o!==s[u]))return!1}return!0}function Nh(t,e){return Array.isArray(e)===!0?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function Yp(t,e){return Array.isArray(t)===!0?Nh(t,e):Array.isArray(e)===!0?Nh(e,t):t===e}function tg(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(Yp(t[n],e[n])===!1)return!1;return!0}const Zf={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};function jf({fallbackTag:t,useDisableForRouterLinkProps:e=!0}={}){const n=Gt(),{props:r,proxy:s,emit:o}=n,u=$f(n),h=k(()=>r.disable!==!0&&r.href!==void 0),f=k(e===!0?()=>u===!0&&r.disable!==!0&&h.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!=="":()=>u===!0&&h.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""),d=k(()=>f.value===!0?S(r.to):null),v=k(()=>d.value!==null),_=k(()=>h.value===!0||v.value===!0),p=k(()=>r.type==="a"||_.value===!0?"a":r.tag||t||"div"),y=k(()=>h.value===!0?{href:r.href,target:r.target}:v.value===!0?{href:d.value.href,target:r.target}:{}),b=k(()=>{if(v.value===!1)return-1;const{matched:q}=d.value,{length:Z}=q,V=q[Z-1];if(V===void 0)return-1;const N=s.$route.matched;if(N.length===0)return-1;const I=N.findIndex(Rh.bind(null,V));if(I>-1)return I;const F=Ih(q[Z-2]);return Z>1&&Ih(V)===F&&N[N.length-1].path!==F?N.findIndex(Rh.bind(null,q[Z-2])):I}),x=k(()=>v.value===!0&&b.value!==-1&&Jp(s.$route.params,d.value.params)),T=k(()=>x.value===!0&&b.value===s.$route.matched.length-1&&tg(s.$route.params,d.value.params)),R=k(()=>v.value===!0?T.value===!0?` ${r.exactActiveClass} ${r.activeClass}`:r.exact===!0?"":x.value===!0?` ${r.activeClass}`:"":"");function S(q){try{return s.$router.resolve(q)}catch{}return null}function C(q,{returnRouterError:Z,to:V=r.to,replace:N=r.replace}={}){if(r.disable===!0)return q.preventDefault(),Promise.resolve(!1);if(q.metaKey||q.altKey||q.ctrlKey||q.shiftKey||q.button!==void 0&&q.button!==0||r.target==="_blank")return Promise.resolve(!1);q.preventDefault();const I=s.$router[N===!0?"replace":"push"](V);return Z===!0?I:I.then(()=>{}).catch(()=>{})}function A(q){if(v.value===!0){const Z=V=>C(q,V);o("click",q,Z),q.defaultPrevented!==!0&&Z()}else o("click",q)}return{hasRouterLink:v,hasHrefLink:h,hasLink:_,linkTag:p,resolvedLink:d,linkIsActive:x,linkIsExactActive:T,linkClass:R,linkAttrs:y,getLink:S,navigateToRouterLink:C,navigateOnClick:A}}const ii={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const t=Object.defineProperty({},"passive",{get(){Object.assign(ii,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,t),window.removeEventListener("qtest",null,t)}catch{}function sn(){}function Vf(t){return t.button===0}function rn(t){return t.touches&&t.touches[0]?t=t.touches[0]:t.changedTouches&&t.changedTouches[0]?t=t.changedTouches[0]:t.targetTouches&&t.targetTouches[0]&&(t=t.targetTouches[0]),{top:t.clientY,left:t.clientX}}function Cn(t){t.stopPropagation()}function Je(t){t.cancelable!==!1&&t.preventDefault()}function me(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function ns(t,e){if(t===void 0||e===!0&&t.__dragPrevented===!0)return;const n=e===!0?r=>{r.__dragPrevented=!0,r.addEventListener("dragstart",Je,ii.notPassiveCapture)}:r=>{delete r.__dragPrevented,r.removeEventListener("dragstart",Je,ii.notPassiveCapture)};t.querySelectorAll("a, img").forEach(n)}function hi(t,e,n){const r=`__q_${e}_evt`;t[r]=t[r]!==void 0?t[r].concat(n):n,n.forEach(s=>{s[0].addEventListener(s[1],t[s[2]],ii[s[3]])})}function tn(t,e){const n=`__q_${e}_evt`;t[n]!==void 0&&(t[n].forEach(r=>{r[0].removeEventListener(r[1],t[r[2]],ii[r[3]])}),t[n]=void 0)}let Hf=!1;function eg(t){Hf=t.isComposing===!0}function Bl(t){return Hf===!0||t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function an(t,e){return Bl(t)===!0?!1:[].concat(e).includes(t.keyCode)}const Mi=_e({name:"QItem",props:{...On,...Zf,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(t,{slots:e,emit:n}){const{proxy:{$q:r}}=Gt(),s=In(t,r),{hasLink:o,linkAttrs:u,linkClass:h,linkTag:f,navigateOnClick:d}=jf(),v=ft(null),_=ft(null),p=k(()=>t.clickable===!0||o.value===!0||t.tag==="label"),y=k(()=>t.disable!==!0&&p.value===!0),b=k(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(o.value===!0&&t.active===null?h.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(y.value===!0?" q-item--clickable q-link cursor-pointer "+(t.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(t.focused===!0?" q-manual-focusable--focused":""):"")),x=k(()=>t.insetLevel===void 0?null:{["padding"+(r.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function T(C){y.value===!0&&(_.value!==null&&(C.qKeyEvent!==!0&&document.activeElement===v.value?_.value.focus():document.activeElement===_.value&&v.value.focus()),d(C))}function R(C){if(y.value===!0&&an(C,13)===!0){me(C),C.qKeyEvent=!0;const A=new MouseEvent("click",C);A.qKeyEvent=!0,v.value.dispatchEvent(A)}n("keyup",C)}function S(){const C=Qp(e.default,[]);return y.value===!0&&C.unshift(J("div",{class:"q-focus-helper",tabindex:-1,ref:_})),C}return()=>{const C={ref:v,class:b.value,style:x.value,role:"listitem",onClick:T,onKeyup:R};return y.value===!0?(C.tabindex=t.tabindex||"0",Object.assign(C,u.value)):p.value===!0&&(C["aria-disabled"]="true"),J(f.value,C,S())}}}),ca=_e({name:"QList",props:{...On,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(t,{slots:e}){const n=Gt(),r=In(t,n.proxy.$q),s=k(()=>"q-list"+(t.bordered===!0?" q-list--bordered":"")+(t.dense===!0?" q-list--dense":"")+(t.separator===!0?" q-list--separator":"")+(r.value===!0?" q-list--dark":"")+(t.padding===!0?" q-list--padding":""));return()=>J(t.tag,{class:s.value},Ne(e.default))}});function gs(t,e,n,r){return Object.defineProperty(t,e,{get:n,set:r,enumerable:!0}),t}const zi=ft(!1);let ja;function ig(t,e){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome|crios)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(firefox|fxios)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[2]||n[4]||"0",versionNumber:n[4]||n[2]||"0",platform:e[0]||""}}function ng(t){return/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[]}const Wf="ontouchstart"in window||window.navigator.maxTouchPoints>0;function sg(t){ja={is:{...t}},delete t.mac,delete t.desktop;const e=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(t,{mobile:!0,ios:!0,platform:e,[e]:!0})}function rg(t){const e=t.toLowerCase(),n=ng(e),r=ig(e,n),s={};r.browser&&(s[r.browser]=!0,s.version=r.version,s.versionNumber=parseInt(r.versionNumber,10)),r.platform&&(s[r.platform]=!0);const o=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];return o===!0||e.indexOf("mobile")>-1?(s.mobile=!0,s.edga||s.edgios?(s.edge=!0,r.browser="edge"):s.crios?(s.chrome=!0,r.browser="chrome"):s.fxios&&(s.firefox=!0,r.browser="firefox")):s.desktop=!0,(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),(s.chrome||s.opr||s.safari||s.vivaldi||s.mobile===!0&&s.ios!==!0&&o!==!0)&&(s.webkit=!0),s.edg&&(r.browser="edgechromium",s.edgeChromium=!0),(s.safari&&s.blackberry||s.bb)&&(r.browser="blackberry",s.blackberry=!0),s.safari&&s.playbook&&(r.browser="playbook",s.playbook=!0),s.opr&&(r.browser="opera",s.opera=!0),s.safari&&s.android&&(r.browser="android",s.android=!0),s.safari&&s.kindle&&(r.browser="kindle",s.kindle=!0),s.safari&&s.silk&&(r.browser="silk",s.silk=!0),s.vivaldi&&(r.browser="vivaldi",s.vivaldi=!0),s.name=r.browser,s.platform=r.platform,e.indexOf("electron")>-1?s.electron=!0:document.location.href.indexOf("-extension://")>-1?s.bex=!0:(window.Capacitor!==void 0?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),Wf===!0&&s.mac===!0&&(s.desktop===!0&&s.safari===!0||s.nativeMobile===!0&&s.android!==!0&&s.ios!==!0&&s.ipad!==!0)&&sg(s)),s}const Bh=navigator.userAgent||navigator.vendor||window.opera,ag={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Qt={userAgent:Bh,is:rg(Bh),has:{touch:Wf},within:{iframe:window.self!==window.top}},fa={install(t){const{$q:e}=t;zi.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(e.platform,Qt),zi.value=!1,ja=void 0}),e.platform=ur(this)):e.platform=this}};{let t;gs(Qt.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Qt.is.ios===!0&&window.navigator.vendor.toLowerCase().indexOf("apple"),zi.value===!0?Object.assign(fa,Qt,ja,ag):Object.assign(fa,Qt)}function zl(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),fa.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const og={target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean};function lg({showing:t,avoidEmit:e,configureAnchorEl:n}){const{props:r,proxy:s,emit:o}=Gt(),u=ft(null);let h=null;function f(y){return u.value===null?!1:y===void 0||y.touches===void 0||y.touches.length<=1}const d={};n===void 0&&(Object.assign(d,{hide(y){s.hide(y)},toggle(y){s.toggle(y),y.qAnchorHandled=!0},toggleKey(y){an(y,13)===!0&&d.toggle(y)},contextClick(y){s.hide(y),Je(y),Me(()=>{s.show(y),y.qAnchorHandled=!0})},prevent:Je,mobileTouch(y){if(d.mobileCleanup(y),f(y)!==!0)return;s.hide(y),u.value.classList.add("non-selectable");const b=y.target;hi(d,"anchor",[[b,"touchmove","mobileCleanup","passive"],[b,"touchend","mobileCleanup","passive"],[b,"touchcancel","mobileCleanup","passive"],[u.value,"contextmenu","prevent","notPassive"]]),h=setTimeout(()=>{h=null,s.show(y),y.qAnchorHandled=!0},300)},mobileCleanup(y){u.value.classList.remove("non-selectable"),h!==null&&(clearTimeout(h),h=null),t.value===!0&&y!==void 0&&zl()}}),n=function(y=r.contextMenu){if(r.noParentEvent===!0||u.value===null)return;let b;y===!0?s.$q.platform.is.mobile===!0?b=[[u.value,"touchstart","mobileTouch","passive"]]:b=[[u.value,"mousedown","hide","passive"],[u.value,"contextmenu","contextClick","notPassive"]]:b=[[u.value,"click","toggle","passive"],[u.value,"keyup","toggleKey","passive"]],hi(d,"anchor",b)});function v(){tn(d,"anchor")}function _(y){for(u.value=y;u.value.classList.contains("q-anchor--skip");)u.value=u.value.parentNode;n()}function p(){if(r.target===!1||r.target===""||s.$el.parentNode===null)u.value=null;else if(r.target===!0)_(s.$el.parentNode);else{let y=r.target;if(typeof r.target=="string")try{y=document.querySelector(r.target)}catch{y=void 0}y!=null?(u.value=y.$el||y,n()):(u.value=null,console.error(`Anchor: target "${r.target}" not found`))}}return Lt(()=>r.contextMenu,y=>{u.value!==null&&(v(),n(y))}),Lt(()=>r.target,()=>{u.value!==null&&v(),p()}),Lt(()=>r.noParentEvent,y=>{u.value!==null&&(y===!0?v():n())}),Ce(()=>{p(),e!==!0&&r.modelValue===!0&&u.value===null&&o("update:modelValue",!1)}),ve(()=>{h!==null&&clearTimeout(h),v()}),{anchorEl:u,canShow:f,anchorEvents:d}}function ug(t,e){const n=ft(null);let r;function s(h,f){const d=`${f!==void 0?"add":"remove"}EventListener`,v=f!==void 0?f:r;h!==window&&h[d]("scroll",v,ii.passive),window[d]("scroll",v,ii.passive),r=f}function o(){n.value!==null&&(s(n.value),n.value=null)}const u=Lt(()=>t.noParentEvent,()=>{n.value!==null&&(o(),e())});return ve(u),{localScrollTarget:n,unconfigureScrollTarget:o,changeScrollEvent:s}}const hg={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},cg=["beforeShow","show","beforeHide","hide"];function fg({showing:t,canShow:e,hideOnRouteChange:n,handleShow:r,handleHide:s,processOnMount:o}){const u=Gt(),{props:h,emit:f,proxy:d}=u;let v;function _(S){t.value===!0?b(S):p(S)}function p(S){if(h.disable===!0||S!==void 0&&S.qAnchorHandled===!0||e!==void 0&&e(S)!==!0)return;const C=h["onUpdate:modelValue"]!==void 0;C===!0&&(f("update:modelValue",!0),v=S,Me(()=>{v===S&&(v=void 0)})),(h.modelValue===null||C===!1)&&y(S)}function y(S){t.value!==!0&&(t.value=!0,f("beforeShow",S),r!==void 0?r(S):f("show",S))}function b(S){if(h.disable===!0)return;const C=h["onUpdate:modelValue"]!==void 0;C===!0&&(f("update:modelValue",!1),v=S,Me(()=>{v===S&&(v=void 0)})),(h.modelValue===null||C===!1)&&x(S)}function x(S){t.value!==!1&&(t.value=!1,f("beforeHide",S),s!==void 0?s(S):f("hide",S))}function T(S){h.disable===!0&&S===!0?h["onUpdate:modelValue"]!==void 0&&f("update:modelValue",!1):S===!0!==t.value&&(S===!0?y:x)(v)}Lt(()=>h.modelValue,T),n!==void 0&&$f(u)===!0&&Lt(()=>d.$route.fullPath,()=>{n.value===!0&&t.value===!0&&b()}),o===!0&&Ce(()=>{T(h.modelValue)});const R={show:p,hide:b,toggle:_};return Object.assign(d,R),R}let xn=[],ir=[];function Uf(t){ir=ir.filter(e=>e!==t)}function dg(t){Uf(t),ir.push(t)}function zh(t){Uf(t),ir.length===0&&xn.length!==0&&(xn[xn.length-1](),xn=[])}function ql(t){ir.length===0?t():xn.push(t)}function mg(t){xn=xn.filter(e=>e!==t)}const da={};let Gf=!1;function vg(){Gf=!0}let _g=1,pg=document.body;function gg(t,e){const n=document.createElement("div");if(n.id=e!==void 0?`q-portal--${e}--${_g++}`:t,da.globalNodes!==void 0){const r=da.globalNodes.class;r!==void 0&&(n.className=r)}return pg.appendChild(n),n}function yg(t){t.remove()}const ss=[];function bg(t){return ss.find(e=>e.contentEl!==null&&e.contentEl.contains(t))}function Kf(t,e){do{if(t.$options.name==="QMenu"){if(t.hide(e),t.$props.separateClosePopup===!0)return Xr(t)}else if(t.__qPortal===!0){const n=Xr(t);return n!==void 0&&n.$options.name==="QPopupProxy"?(t.hide(e),n):t}t=Xr(t)}while(t!=null)}function xg(t,e,n){for(;n!==0&&t!==void 0&&t!==null;){if(t.__qPortal===!0){if(n--,t.$options.name==="QMenu"){t=Kf(t,e);continue}t.hide(e)}t=Xr(t)}}function Mg(t){for(t=t.parent;t!=null;){if(t.type.name==="QGlobalDialog")return!0;if(t.type.name==="QDialog"||t.type.name==="QMenu")return!1;t=t.parent}return!1}function wg(t,e,n,r){const s=ft(!1),o=ft(!1);let u=null;const h={},f=r==="dialog"&&Mg(t);function d(_){if(_===!0){zh(h),o.value=!0;return}o.value=!1,s.value===!1&&(f===!1&&u===null&&(u=gg(!1,r)),s.value=!0,ss.push(t.proxy),dg(h))}function v(_){if(o.value=!1,_!==!0)return;zh(h),s.value=!1;const p=ss.indexOf(t.proxy);p!==-1&&ss.splice(p,1),u!==null&&(yg(u),u=null)}return qa(()=>{v(!0)}),t.proxy.__qPortal=!0,gs(t.proxy,"contentEl",()=>e.value),{showPortal:d,hidePortal:v,portalIsActive:s,portalIsAccessible:o,renderPortal:()=>f===!0?n():s.value===!0?[J(up,{to:u},n())]:void 0}}const Cg={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Pg(t,e=()=>{},n=()=>{}){return{transitionProps:k(()=>{const r=`q-transition--${t.transitionShow||e()}`,s=`q-transition--${t.transitionHide||n()}`;return{appear:!0,enterFromClass:`${r}-enter-from`,enterActiveClass:`${r}-enter-active`,enterToClass:`${r}-enter-to`,leaveFromClass:`${s}-leave-from`,leaveActiveClass:`${s}-leave-active`,leaveToClass:`${s}-leave-to`}}),transitionStyle:k(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function Jr(){let t;const e=Gt();function n(){t=void 0}return hr(n),ve(n),{removeTick:n,registerTick(r){t=r,Me(()=>{t===r&&(Df(e)===!1&&t(),t=void 0)})}}}function tl(){let t=null;const e=Gt();function n(){t!==null&&(clearTimeout(t),t=null)}return hr(n),ve(n),{removeTimeout:n,registerTimeout(r,s){n(),Df(e)===!1&&(t=setTimeout(r,s))}}}function el(t,e){const n=t.style;for(const r in e)n[r]=e[r]}function Tg(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const e=Pi(t);if(e)return e.$el||e}function Lg(t,e){if(t==null||t.contains(e)===!0)return!0;for(let n=t.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(e))return!0;return!1}const Sg=[null,document,document.body,document.scrollingElement,document.documentElement];function Eg(t,e){let n=Tg(e);if(n===void 0){if(t==null)return window;n=t.closest(".scroll,.scroll-y,.overflow-auto")}return Sg.includes(n)?window:n}let Dr;function kg(){if(Dr!==void 0)return Dr;const t=document.createElement("p"),e=document.createElement("div");el(t,{width:"100%",height:"200px"}),el(e,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);const n=t.offsetWidth;e.style.overflow="scroll";let r=t.offsetWidth;return n===r&&(r=e.clientWidth),e.remove(),Dr=n-r,Dr}const Pn=[];let cs;function Ag(t){cs=t.keyCode===27}function Og(){cs===!0&&(cs=!1)}function Ig(t){cs===!0&&(cs=!1,an(t,27)===!0&&Pn[Pn.length-1](t))}function Qf(t){window[t]("keydown",Ag),window[t]("blur",Og),window[t]("keyup",Ig),cs=!1}function Rg(t){Qt.is.desktop===!0&&(Pn.push(t),Pn.length===1&&Qf("addEventListener"))}function qh(t){const e=Pn.indexOf(t);e>-1&&(Pn.splice(e,1),Pn.length===0&&Qf("removeEventListener"))}const Tn=[];function Xf(t){Tn[Tn.length-1](t)}function Ng(t){Qt.is.desktop===!0&&(Tn.push(t),Tn.length===1&&document.body.addEventListener("focusin",Xf))}function Bg(t){const e=Tn.indexOf(t);e>-1&&(Tn.splice(e,1),Tn.length===0&&document.body.removeEventListener("focusin",Xf))}const{notPassiveCapture:ma}=ii,Ln=[];function va(t){const e=t.target;if(e===void 0||e.nodeType===8||e.classList.contains("no-pointer-events")===!0)return;let n=ss.length-1;for(;n>=0;){const r=ss[n].$;if(r.type.name==="QTooltip"){n--;continue}if(r.type.name!=="QDialog")break;if(r.props.seamless!==!0)return;n--}for(let r=Ln.length-1;r>=0;r--){const s=Ln[r];if((s.anchorEl.value===null||s.anchorEl.value.contains(e)===!1)&&(e===document.body||s.innerRef.value!==null&&s.innerRef.value.contains(e)===!1))t.qClickOutside=!0,s.onClickOutside(t);else return}}function zg(t){Ln.push(t),Ln.length===1&&(document.addEventListener("mousedown",va,ma),document.addEventListener("touchstart",va,ma))}function Fh(t){const e=Ln.findIndex(n=>n===t);e>-1&&(Ln.splice(e,1),Ln.length===0&&(document.removeEventListener("mousedown",va,ma),document.removeEventListener("touchstart",va,ma)))}let $h,Dh;function Zh(t){const e=t.split(" ");return e.length!==2?!1:["top","center","bottom"].includes(e[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(e[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function qg(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const il={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{il[`${t}#ltr`]=t,il[`${t}#rtl`]=t});function jh(t,e){const n=t.split(" ");return{vertical:n[0],horizontal:il[`${n[1]}#${e===!0?"rtl":"ltr"}`]}}function Fg(t,e){let{top:n,left:r,right:s,bottom:o,width:u,height:h}=t.getBoundingClientRect();return e!==void 0&&(n-=e[1],r-=e[0],o+=e[1],s+=e[0],u+=e[0],h+=e[1]),{top:n,bottom:o,height:h,left:r,right:s,width:u,middle:r+(s-r)/2,center:n+(o-n)/2}}function $g(t,e,n){let{top:r,left:s}=t.getBoundingClientRect();return r+=e.top,s+=e.left,n!==void 0&&(r+=n[1],s+=n[0]),{top:r,bottom:r+1,height:1,left:s,right:s+1,width:1,middle:s,center:r}}function Dg(t,e){return{top:0,center:e/2,bottom:e,left:0,middle:t/2,right:t}}function Vh(t,e,n,r){return{top:t[n.vertical]-e[r.vertical],left:t[n.horizontal]-e[r.horizontal]}}function Jf(t,e=0){if(t.targetEl===null||t.anchorEl===null||e>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{Jf(t,e+1)},10);return}const{targetEl:n,offset:r,anchorEl:s,anchorOrigin:o,selfOrigin:u,absoluteOffset:h,fit:f,cover:d,maxHeight:v,maxWidth:_}=t;if(Qt.is.ios===!0&&window.visualViewport!==void 0){const Z=document.body.style,{offsetLeft:V,offsetTop:N}=window.visualViewport;V!==$h&&(Z.setProperty("--q-pe-left",V+"px"),$h=V),N!==Dh&&(Z.setProperty("--q-pe-top",N+"px"),Dh=N)}const{scrollLeft:p,scrollTop:y}=n,b=h===void 0?Fg(s,d===!0?[0,0]:r):$g(s,h,r);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:_||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:x,offsetHeight:T}=n,{elWidth:R,elHeight:S}=f===!0||d===!0?{elWidth:Math.max(b.width,x),elHeight:d===!0?Math.max(b.height,T):T}:{elWidth:x,elHeight:T};let C={maxWidth:_,maxHeight:v};(f===!0||d===!0)&&(C.minWidth=b.width+"px",d===!0&&(C.minHeight=b.height+"px")),Object.assign(n.style,C);const A=Dg(R,S);let q=Vh(b,A,o,u);if(h===void 0||r===void 0)Oo(q,b,A,o,u);else{const{top:Z,left:V}=q;Oo(q,b,A,o,u);let N=!1;if(q.top!==Z){N=!0;const I=2*r[1];b.center=b.top-=I,b.bottom-=I+2}if(q.left!==V){N=!0;const I=2*r[0];b.middle=b.left-=I,b.right-=I+2}N===!0&&(q=Vh(b,A,o,u),Oo(q,b,A,o,u))}C={top:q.top+"px",left:q.left+"px"},q.maxHeight!==void 0&&(C.maxHeight=q.maxHeight+"px",b.height>q.maxHeight&&(C.minHeight=C.maxHeight)),q.maxWidth!==void 0&&(C.maxWidth=q.maxWidth+"px",b.width>q.maxWidth&&(C.minWidth=C.maxWidth)),Object.assign(n.style,C),n.scrollTop!==y&&(n.scrollTop=y),n.scrollLeft!==p&&(n.scrollLeft=p)}function Oo(t,e,n,r,s){const o=n.bottom,u=n.right,h=kg(),f=window.innerHeight-h,d=document.body.clientWidth;if(t.top<0||t.top+o>f)if(s.vertical==="center")t.top=e[r.vertical]>f/2?Math.max(0,f-o):0,t.maxHeight=Math.min(o,f);else if(e[r.vertical]>f/2){const v=Math.min(f,r.vertical==="center"?e.center:r.vertical===s.vertical?e.bottom:e.top);t.maxHeight=Math.min(o,v),t.top=Math.max(0,v-o)}else t.top=Math.max(0,r.vertical==="center"?e.center:r.vertical===s.vertical?e.top:e.bottom),t.maxHeight=Math.min(o,f-t.top);if(t.left<0||t.left+u>d)if(t.maxWidth=Math.min(u,d),s.horizontal==="middle")t.left=e[r.horizontal]>d/2?Math.max(0,d-u):0;else if(e[r.horizontal]>d/2){const v=Math.min(d,r.horizontal==="middle"?e.middle:r.horizontal===s.horizontal?e.right:e.left);t.maxWidth=Math.min(u,v),t.left=Math.max(0,v-t.maxWidth)}else t.left=Math.max(0,r.horizontal==="middle"?e.middle:r.horizontal===s.horizontal?e.left:e.right),t.maxWidth=Math.min(u,d-t.left)}const Yf=_e({name:"QMenu",inheritAttrs:!1,props:{...og,...hg,...On,...Cg,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Zh},self:{type:String,validator:Zh},offset:{type:Array,validator:qg},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...cg,"click","escapeKey"],setup(t,{slots:e,emit:n,attrs:r}){let s=null,o,u,h;const f=Gt(),{proxy:d}=f,{$q:v}=d,_=ft(null),p=ft(!1),y=k(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),b=In(t,v),{registerTick:x,removeTick:T}=Jr(),{registerTimeout:R}=tl(),{transitionProps:S,transitionStyle:C}=Pg(t),{localScrollTarget:A,changeScrollEvent:q,unconfigureScrollTarget:Z}=ug(t,St),{anchorEl:V,canShow:N}=lg({showing:p}),{hide:I}=fg({showing:p,canShow:N,handleShow:ot,handleHide:bt,hideOnRouteChange:y,processOnMount:!0}),{showPortal:F,hidePortal:W,renderPortal:P}=wg(f,_,pe,"menu"),$={anchorEl:V,innerRef:_,onClickOutside(wt){if(t.persistent!==!0&&p.value===!0)return I(wt),(wt.type==="touchstart"||wt.target.classList.contains("q-dialog__backdrop"))&&me(wt),!0}},z=k(()=>jh(t.anchor||(t.cover===!0?"center middle":"bottom start"),v.lang.rtl)),nt=k(()=>t.cover===!0?z.value:jh(t.self||"top start",v.lang.rtl)),it=k(()=>(t.square===!0?" q-menu--square":"")+(b.value===!0?" q-menu--dark q-dark":"")),U=k(()=>t.autoClose===!0?{onClick:zt}:{}),j=k(()=>p.value===!0&&t.persistent!==!0);Lt(j,wt=>{wt===!0?(Rg(ct),zg($)):(qh(ct),Fh($))});function Bt(){ql(()=>{let wt=_.value;wt&&wt.contains(document.activeElement)!==!0&&(wt=wt.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||wt.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||wt.querySelector("[autofocus], [data-autofocus]")||wt,wt.focus({preventScroll:!0}))})}function ot(wt){if(s=t.noRefocus===!1?document.activeElement:null,Ng(Mt),F(),St(),o=void 0,wt!==void 0&&(t.touchPosition||t.contextMenu)){const Pe=rn(wt);if(Pe.left!==void 0){const{top:ke,left:M}=V.value.getBoundingClientRect();o={left:Pe.left-M,top:Pe.top-ke}}}u===void 0&&(u=Lt(()=>v.screen.width+"|"+v.screen.height+"|"+t.self+"|"+t.anchor+"|"+v.lang.rtl,Ht)),t.noFocus!==!0&&document.activeElement.blur(),x(()=>{Ht(),t.noFocus!==!0&&Bt()}),R(()=>{v.platform.is.ios===!0&&(h=t.autoClose,_.value.click()),Ht(),F(!0),n("show",wt)},t.transitionDuration)}function bt(wt){T(),W(),G(!0),s!==null&&(wt===void 0||wt.qClickOutside!==!0)&&(((wt&&wt.type.indexOf("key")===0?s.closest('[tabindex]:not([tabindex^="-"])'):void 0)||s).focus(),s=null),R(()=>{W(!0),n("hide",wt)},t.transitionDuration)}function G(wt){o=void 0,u!==void 0&&(u(),u=void 0),(wt===!0||p.value===!0)&&(Bg(Mt),Z(),Fh($),qh(ct)),wt!==!0&&(s=null)}function St(){(V.value!==null||t.scrollTarget!==void 0)&&(A.value=Eg(V.value,t.scrollTarget),q(A.value,Ht))}function zt(wt){h!==!0?(Kf(d,wt),n("click",wt)):h=!1}function Mt(wt){j.value===!0&&t.noFocus!==!0&&Lg(_.value,wt.target)!==!0&&Bt()}function ct(wt){n("escapeKey"),I(wt)}function Ht(){Jf({targetEl:_.value,offset:t.offset,anchorEl:V.value,anchorOrigin:z.value,selfOrigin:nt.value,absoluteOffset:o,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function pe(){return J(ps,S.value,()=>p.value===!0?J("div",{role:"menu",...r,ref:_,tabindex:-1,class:["q-menu q-position-engine scroll"+it.value,r.class],style:[r.style,C.value],...U.value},Ne(e.default)):null)}return ve(G),Object.assign(d,{focus:Bt,updatePosition:Ht}),P}}),nl={xs:18,sm:24,md:32,lg:38,xl:46},Fl={size:String};function $l(t,e=nl){return k(()=>t.size!==void 0?{fontSize:t.size in e?`${e[t.size]}px`:t.size}:null)}const Hh="0 0 24 24",Wh=t=>t,Io=t=>`ionicons ${t}`,td={"mdi-":t=>`mdi ${t}`,"icon-":Wh,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Io,"ion-ios":Io,"ion-logo":Io,"iconfont ":Wh,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},ed={o_:"-outlined",r_:"-round",s_:"-sharp"},id={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Zg=new RegExp("^("+Object.keys(td).join("|")+")"),jg=new RegExp("^("+Object.keys(ed).join("|")+")"),Uh=new RegExp("^("+Object.keys(id).join("|")+")"),Vg=/^[Mm]\s?[-+]?\.?\d/,Hg=/^img:/,Wg=/^svguse:/,Ug=/^ion-/,Gg=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,je=_e({name:"QIcon",props:{...Fl,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:e}){const{proxy:{$q:n}}=Gt(),r=$l(t),s=k(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),o=k(()=>{let u,h=t.name;if(h==="none"||!h)return{none:!0};if(n.iconMapFn!==null){const v=n.iconMapFn(h);if(v!==void 0)if(v.icon!==void 0){if(h=v.icon,h==="none"||!h)return{none:!0}}else return{cls:v.cls,content:v.content!==void 0?v.content:" "}}if(Vg.test(h)===!0){const[v,_=Hh]=h.split("|");return{svg:!0,viewBox:_,nodes:v.split("&&").map(p=>{const[y,b,x]=p.split("@@");return J("path",{style:b,d:y,transform:x})})}}if(Hg.test(h)===!0)return{img:!0,src:h.substring(4)};if(Wg.test(h)===!0){const[v,_=Hh]=h.split("|");return{svguse:!0,src:v.substring(7),viewBox:_}}let f=" ";const d=h.match(Zg);if(d!==null)u=td[d[1]](h);else if(Gg.test(h)===!0)u=h;else if(Ug.test(h)===!0)u=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${h.substring(3)}`;else if(Uh.test(h)===!0){u="notranslate material-symbols";const v=h.match(Uh);v!==null&&(h=h.substring(6),u+=id[v[1]]),f=h}else{u="notranslate material-icons";const v=h.match(jg);v!==null&&(h=h.substring(2),u+=ed[v[1]]),f=h}return{cls:u,content:f}});return()=>{const u={class:s.value,style:r.value,"aria-hidden":"true",role:"presentation"};return o.value.none===!0?J(t.tag,u,Ne(e.default)):o.value.img===!0?J("span",u,Qi(e.default,[J("img",{src:o.value.src})])):o.value.svg===!0?J("span",u,Qi(e.default,[J("svg",{viewBox:o.value.viewBox||"0 0 24 24"},o.value.nodes)])):o.value.svguse===!0?J("span",u,Qi(e.default,[J("svg",{viewBox:o.value.viewBox},[J("use",{"xlink:href":o.value.src})])])):(o.value.cls!==void 0&&(u.class+=" "+o.value.cls),J(t.tag,u,Qi(e.default,[o.value.content])))}}});function Kg(t,e){const n=ft(null),r=k(()=>t.disable===!0?null:J("span",{ref:n,class:"no-outline",tabindex:-1}));function s(o){const u=e.value;o!==void 0&&o.type.indexOf("key")===0?u!==null&&document.activeElement!==u&&u.contains(document.activeElement)===!0&&u.focus():n.value!==null&&(o===void 0||u!==null&&u.contains(o.target)===!0)&&n.value.focus()}return{refocusTargetEl:r,refocusTarget:s}}const Va={name:String};function Dl(t={}){return(e,n,r)=>{e[n](J("input",{class:"hidden"+(r||""),...t.value}))}}function Qg(t){return k(()=>t.name||t.for)}const Xg={xs:30,sm:35,md:40,lg:50,xl:60},Jg={...On,...Fl,...Va,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:t=>t==="tf"||t==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Yg=["update:modelValue"];function t0(t,e){const{props:n,slots:r,emit:s,proxy:o}=Gt(),{$q:u}=o,h=In(n,u),f=ft(null),{refocusTargetEl:d,refocusTarget:v}=Kg(n,f),_=$l(n,Xg),p=k(()=>n.val!==void 0&&Array.isArray(n.modelValue)),y=k(()=>{const P=qt(n.val);return p.value===!0?n.modelValue.findIndex($=>qt($)===P):-1}),b=k(()=>p.value===!0?y.value>-1:qt(n.modelValue)===qt(n.trueValue)),x=k(()=>p.value===!0?y.value===-1:qt(n.modelValue)===qt(n.falseValue)),T=k(()=>b.value===!1&&x.value===!1),R=k(()=>n.disable===!0?-1:n.tabindex||0),S=k(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(h.value===!0?` q-${t}--dark`:"")+(n.dense===!0?` q-${t}--dense`:"")+(n.leftLabel===!0?" reverse":"")),C=k(()=>{const P=b.value===!0?"truthy":x.value===!0?"falsy":"indet",$=n.color!==void 0&&(n.keepColor===!0||(t==="toggle"?b.value===!0:x.value!==!0))?` text-${n.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${P}${$}`}),A=k(()=>{const P={type:"checkbox"};return n.name!==void 0&&Object.assign(P,{".checked":b.value,"^checked":b.value===!0?"checked":void 0,name:n.name,value:p.value===!0?n.val:n.trueValue}),P}),q=Dl(A),Z=k(()=>{const P={tabindex:R.value,role:t==="toggle"?"switch":"checkbox","aria-label":n.label,"aria-checked":T.value===!0?"mixed":b.value===!0?"true":"false"};return n.disable===!0&&(P["aria-disabled"]="true"),P});function V(P){P!==void 0&&(me(P),v(P)),n.disable!==!0&&s("update:modelValue",N(),P)}function N(){if(p.value===!0){if(b.value===!0){const P=n.modelValue.slice();return P.splice(y.value,1),P}return n.modelValue.concat([n.val])}if(b.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(x.value===!0){if(n.toggleOrder==="ft"||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder!=="ft"?n.trueValue:n.falseValue;return n.indeterminateValue}function I(P){(P.keyCode===13||P.keyCode===32)&&me(P)}function F(P){(P.keyCode===13||P.keyCode===32)&&V(P)}const W=e(b,T);return Object.assign(o,{toggle:V}),()=>{const P=W();n.disable!==!0&&q(P,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const $=[J("div",{class:C.value,style:_.value,"aria-hidden":"true"},P)];d.value!==null&&$.push(d.value);const z=n.label!==void 0?Qi(r.default,[n.label]):Ne(r.default);return z!==void 0&&$.push(J("div",{class:`q-${t}__label q-anchor--skip`},z)),J("div",{ref:f,class:S.value,...Z.value,onClick:V,onKeydown:I,onKeyup:F},$)}}const Zl=_e({name:"QToggle",props:{...Jg,icon:String,iconColor:String},emits:Yg,setup(t){function e(n,r){const s=k(()=>(n.value===!0?t.checkedIcon:r.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),o=k(()=>n.value===!0?t.iconColor:null);return()=>[J("div",{class:"q-toggle__track"}),J("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},s.value!==void 0?[J(je,{name:s.value,color:o.value})]:void 0)]}return t0("toggle",e)}});function e0(t,e=250){let n=!1,r;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},e),r=t.apply(this,arguments)),r}}function Gh(t,e,n,r){n.modifiers.stop===!0&&Cn(t);const s=n.modifiers.color;let o=n.modifiers.center;o=o===!0||r===!0;const u=document.createElement("span"),h=document.createElement("span"),f=rn(t),{left:d,top:v,width:_,height:p}=e.getBoundingClientRect(),y=Math.sqrt(_*_+p*p),b=y/2,x=`${(_-y)/2}px`,T=o?x:`${f.left-d-b}px`,R=`${(p-y)/2}px`,S=o?R:`${f.top-v-b}px`;h.className="q-ripple__inner",el(h,{height:`${y}px`,width:`${y}px`,transform:`translate3d(${T},${S},0) scale3d(.2,.2,1)`,opacity:0}),u.className=`q-ripple${s?" text-"+s:""}`,u.setAttribute("dir","ltr"),u.appendChild(h),e.appendChild(u);const C=()=>{u.remove(),clearTimeout(A)};n.abort.push(C);let A=setTimeout(()=>{h.classList.add("q-ripple__inner--enter"),h.style.transform=`translate3d(${x},${R},0) scale3d(1,1,1)`,h.style.opacity=.2,A=setTimeout(()=>{h.classList.remove("q-ripple__inner--enter"),h.classList.add("q-ripple__inner--leave"),h.style.opacity=0,A=setTimeout(()=>{u.remove(),n.abort.splice(n.abort.indexOf(C),1)},275)},250)},50)}function Kh(t,{modifiers:e,value:n,arg:r}){const s=Object.assign({},t.cfg.ripple,e,n);t.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||r,keyCodes:[].concat(s.keyCodes||13)}}const jl=Za({name:"ripple",beforeMount(t,e){const n=e.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const r={cfg:n,enabled:e.value!==!1,modifiers:{},abort:[],start(s){r.enabled===!0&&s.qSkipRipple!==!0&&s.type===(r.modifiers.early===!0?"pointerdown":"click")&&Gh(s,t,r,s.qKeyEvent===!0)},keystart:e0(s=>{r.enabled===!0&&s.qSkipRipple!==!0&&an(s,r.modifiers.keyCodes)===!0&&s.type===`key${r.modifiers.early===!0?"down":"up"}`&&Gh(s,t,r,!0)},300)};Kh(r,e),t.__qripple=r,hi(r,"main",[[t,"pointerdown","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},updated(t,e){if(e.oldValue!==e.value){const n=t.__qripple;n!==void 0&&(n.enabled=e.value!==!1,n.enabled===!0&&Object(e.value)===e.value&&Kh(n,e))}},beforeUnmount(t){const e=t.__qripple;e!==void 0&&(e.abort.forEach(n=>{n()}),tn(e,"main"),delete t._qripple)}}),nd="_q_",i0="_q_fo_",sd="_q_tabs_",Ro=()=>{};let No,Zr=0;const ye=new Array(256);for(let t=0;t<256;t++)ye[t]=(t+256).toString(16).substring(1);const n0=(()=>{const t=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(t!==void 0){if(t.randomBytes!==void 0)return t.randomBytes;if(t.getRandomValues!==void 0)return e=>{const n=new Uint8Array(e);return t.getRandomValues(n),n}}return e=>{const n=[];for(let r=e;r>0;r--)n.push(Math.floor(Math.random()*256));return n}})(),Qh=4096;function rd(){(No===void 0||Zr+16>Qh)&&(Zr=0,No=n0(Qh));const t=Array.prototype.slice.call(No,Zr,Zr+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,ye[t[0]]+ye[t[1]]+ye[t[2]]+ye[t[3]]+"-"+ye[t[4]]+ye[t[5]]+"-"+ye[t[6]]+ye[t[7]]+"-"+ye[t[8]]+ye[t[9]]+"-"+ye[t[10]]+ye[t[11]]+ye[t[12]]+ye[t[13]]+ye[t[14]]+ye[t[15]]}function Yr(t,e){if(t===e)return!0;if(t!==null&&e!==null&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let n,r;if(t.constructor===Array){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(Yr(t[r],e[r])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==e.size)return!1;let o=t.entries();for(r=o.next();r.done!==!0;){if(e.has(r.value[0])!==!0)return!1;r=o.next()}for(o=t.entries(),r=o.next();r.done!==!0;){if(Yr(r.value[1],e.get(r.value[0]))!==!0)return!1;r=o.next()}return!0}if(t.constructor===Set){if(t.size!==e.size)return!1;const o=t.entries();for(r=o.next();r.done!==!0;){if(e.has(r.value[0])!==!0)return!1;r=o.next()}return!0}if(t.buffer!=null&&t.buffer.constructor===ArrayBuffer){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const s=Object.keys(t).filter(o=>t[o]!==void 0);if(n=s.length,n!==Object.keys(e).filter(o=>e[o]!==void 0).length)return!1;for(r=n;r--!==0;){const o=s[r];if(Yr(t[o],e[o])!==!0)return!1}return!0}return t!==t&&e!==e}function Ws(t){return t!==null&&typeof t=="object"&&Array.isArray(t)!==!0}function s0(t){return typeof t=="number"&&isFinite(t)}let r0=0;const a0=["click","keydown"],o0={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${r0++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function l0(t,e,n,r){const s=Yi(sd,Ro);if(s===Ro)return console.error("QTab/QRouteTab component needs to be child of QTabs"),Ro;const{proxy:o}=Gt(),u=ft(null),h=ft(null),f=ft(null),d=k(()=>t.disable===!0||t.ripple===!1?!1:Object.assign({keyCodes:[13,32],early:!0},t.ripple===!0?{}:t.ripple)),v=k(()=>s.currentModel.value===t.name),_=k(()=>"q-tab relative-position self-stretch flex flex-center text-center"+(v.value===!0?" q-tab--active"+(s.tabProps.value.activeClass?" "+s.tabProps.value.activeClass:"")+(s.tabProps.value.activeColor?` text-${s.tabProps.value.activeColor}`:"")+(s.tabProps.value.activeBgColor?` bg-${s.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(t.icon&&t.label&&s.tabProps.value.inlineLabel===!1?" q-tab--full":"")+(t.noCaps===!0||s.tabProps.value.noCaps===!0?" q-tab--no-caps":"")+(t.disable===!0?" disabled":" q-focusable q-hoverable cursor-pointer")+(r!==void 0?r.linkClass.value:"")),p=k(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(s.tabProps.value.inlineLabel===!0?"row no-wrap q-tab__content--inline":"column")+(t.contentClass!==void 0?` ${t.contentClass}`:"")),y=k(()=>t.disable===!0||s.hasFocus.value===!0||v.value===!1&&s.hasActiveTab.value===!0?-1:t.tabindex||0);function b(C,A){if(A!==!0&&u.value!==null&&u.value.focus(),t.disable===!0){r!==void 0&&r.hasRouterLink.value===!0&&me(C);return}if(r===void 0){s.updateModel({name:t.name}),n("click",C);return}if(r.hasRouterLink.value===!0){const q=(Z={})=>{let V;const N=Z.to===void 0||Yr(Z.to,t.to)===!0?s.avoidRouteWatcher=rd():null;return r.navigateToRouterLink(C,{...Z,returnRouterError:!0}).catch(I=>{V=I}).then(I=>{if(N===s.avoidRouteWatcher&&(s.avoidRouteWatcher=!1,V===void 0&&(I===void 0||I.message.startsWith("Avoided redundant navigation")===!0)&&s.updateModel({name:t.name})),Z.returnRouterError===!0)return V!==void 0?Promise.reject(V):I})};n("click",C,q),C.defaultPrevented!==!0&&q();return}n("click",C)}function x(C){an(C,[13,32])?b(C,!0):Bl(C)!==!0&&C.keyCode>=35&&C.keyCode<=40&&C.altKey!==!0&&C.metaKey!==!0&&s.onKbdNavigate(C.keyCode,o.$el)===!0&&me(C),n("keydown",C)}function T(){const C=s.tabProps.value.narrowIndicator,A=[],q=J("div",{ref:f,class:["q-tab__indicator",s.tabProps.value.indicatorClass]});t.icon!==void 0&&A.push(J(je,{class:"q-tab__icon",name:t.icon})),t.label!==void 0&&A.push(J("div",{class:"q-tab__label"},t.label)),t.alert!==!1&&A.push(t.alertIcon!==void 0?J(je,{class:"q-tab__alert-icon",color:t.alert!==!0?t.alert:void 0,name:t.alertIcon}):J("div",{class:"q-tab__alert"+(t.alert!==!0?` text-${t.alert}`:"")})),C===!0&&A.push(q);const Z=[J("div",{class:"q-focus-helper",tabindex:-1,ref:u}),J("div",{class:p.value},Qi(e.default,A))];return C===!1&&Z.push(q),Z}const R={name:k(()=>t.name),rootRef:h,tabIndicatorRef:f,routeData:r};ve(()=>{s.unregisterTab(R)}),Ce(()=>{s.registerTab(R)});function S(C,A){const q={ref:h,class:_.value,tabindex:y.value,role:"tab","aria-selected":v.value===!0?"true":"false","aria-disabled":t.disable===!0?"true":void 0,onClick:b,onKeydown:x,...A};return Ri(J(C,q,T()),[[jl,d.value]])}return{renderTab:S,$tabs:s}}const Xh=_e({name:"QTab",props:o0,emits:a0,setup(t,{slots:e,emit:n}){const{renderTab:r}=l0(t,e,n);return()=>r("div")}});function u0(){const t=ft(!zi.value);return t.value===!1&&Ce(()=>{t.value=!0}),t}const ad=typeof ResizeObserver<"u",Jh=ad===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},h0=_e({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(t,{emit:e}){let n=null,r,s={width:-1,height:-1};function o(v){v===!0||t.debounce===0||t.debounce==="0"?u():n===null&&(n=setTimeout(u,t.debounce))}function u(){if(n!==null&&(clearTimeout(n),n=null),r){const{offsetWidth:v,offsetHeight:_}=r;(v!==s.width||_!==s.height)&&(s={width:v,height:_},e("resize",s))}}const{proxy:h}=Gt();if(ad===!0){let v;const _=p=>{r=h.$el.parentNode,r?(v=new ResizeObserver(o),v.observe(r),u()):p!==!0&&Me(()=>{_(!0)})};return Ce(()=>{_()}),ve(()=>{n!==null&&clearTimeout(n),v!==void 0&&(v.disconnect!==void 0?v.disconnect():r&&v.unobserve(r))}),sn}else{let p=function(){n!==null&&(clearTimeout(n),n=null),_!==void 0&&(_.removeEventListener!==void 0&&_.removeEventListener("resize",o,ii.passive),_=void 0)},y=function(){p(),r&&r.contentDocument&&(_=r.contentDocument.defaultView,_.addEventListener("resize",o,ii.passive),u())};var f=p,d=y;const v=u0();let _;return Ce(()=>{Me(()=>{r=h.$el,r&&y()})}),ve(p),h.trigger=o,()=>{if(v.value===!0)return J("object",{style:Jh.style,tabindex:-1,type:"text/html",data:Jh.url,"aria-hidden":"true",onLoad:y})}}}});let od=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const e=document.createElement("div");Object.assign(e.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(e),t.scrollLeft=-1e3,od=t.scrollLeft>=0,t.remove()}function c0(t,e,n){const r=n===!0?["left","right"]:["top","bottom"];return`absolute-${e===!0?r[0]:r[1]}${t?` text-${t}`:""}`}const f0=["left","center","right","justify"],d0=_e({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:t=>f0.includes(t)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(t,{slots:e,emit:n}){const{proxy:r}=Gt(),{$q:s}=r,{registerTick:o}=Jr(),{registerTick:u}=Jr(),{registerTick:h}=Jr(),{registerTimeout:f,removeTimeout:d}=tl(),{registerTimeout:v,removeTimeout:_}=tl(),p=ft(null),y=ft(null),b=ft(t.modelValue),x=ft(!1),T=ft(!0),R=ft(!1),S=ft(!1),C=[],A=ft(0),q=ft(!1);let Z=null,V=null,N;const I=k(()=>({activeClass:t.activeClass,activeColor:t.activeColor,activeBgColor:t.activeBgColor,indicatorClass:c0(t.indicatorColor,t.switchIndicator,t.vertical),narrowIndicator:t.narrowIndicator,inlineLabel:t.inlineLabel,noCaps:t.noCaps})),F=k(()=>{const O=A.value,K=b.value;for(let tt=0;tt`q-tabs__content--align-${x.value===!0?"left":S.value===!0?"justify":t.align}`),P=k(()=>`q-tabs row no-wrap items-center q-tabs--${x.value===!0?"":"not-"}scrollable q-tabs--${t.vertical===!0?"vertical":"horizontal"} q-tabs__arrows--${t.outsideArrows===!0?"outside":"inside"} q-tabs--mobile-with${t.mobileArrows===!0?"":"out"}-arrows`+(t.dense===!0?" q-tabs--dense":"")+(t.shrink===!0?" col-shrink":"")+(t.stretch===!0?" self-stretch":"")),$=k(()=>"q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position "+W.value+(t.contentClass!==void 0?` ${t.contentClass}`:"")),z=k(()=>t.vertical===!0?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}),nt=k(()=>t.vertical!==!0&&s.lang.rtl===!0),it=k(()=>od===!1&&nt.value===!0);Lt(nt,G),Lt(()=>t.modelValue,O=>{U({name:O,setCurrent:!0,skipEmit:!0})}),Lt(()=>t.outsideArrows,j);function U({name:O,setCurrent:K,skipEmit:tt}){b.value!==O&&(tt!==!0&&t["onUpdate:modelValue"]!==void 0&&n("update:modelValue",O),(K===!0||t["onUpdate:modelValue"]===void 0)&&(ot(b.value,O),b.value=O))}function j(){o(()=>{Bt({width:p.value.offsetWidth,height:p.value.offsetHeight})})}function Bt(O){if(z.value===void 0||y.value===null)return;const K=O[z.value.container],tt=Math.min(y.value[z.value.scroll],Array.prototype.reduce.call(y.value.children,(mt,vt)=>mt+(vt[z.value.content]||0),0)),ht=K>0&&tt>K;x.value=ht,ht===!0&&u(G),S.value=Kmt.name.value===O):null,ht=K!=null&&K!==""?C.find(mt=>mt.name.value===K):null;if(tt&&ht){const mt=tt.tabIndicatorRef.value,vt=ht.tabIndicatorRef.value;Z!==null&&(clearTimeout(Z),Z=null),mt.style.transition="none",mt.style.transform="none",vt.style.transition="none",vt.style.transform="none";const gt=mt.getBoundingClientRect(),Pt=vt.getBoundingClientRect();vt.style.transform=t.vertical===!0?`translate3d(0,${gt.top-Pt.top}px,0) scale3d(1,${Pt.height?gt.height/Pt.height:1},1)`:`translate3d(${gt.left-Pt.left}px,0,0) scale3d(${Pt.width?gt.width/Pt.width:1},1,1)`,h(()=>{Z=setTimeout(()=>{Z=null,vt.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",vt.style.transform="none"},70)})}ht&&x.value===!0&&bt(ht.rootRef.value)}function bt(O){const{left:K,width:tt,top:ht,height:mt}=y.value.getBoundingClientRect(),vt=O.getBoundingClientRect();let gt=t.vertical===!0?vt.top-ht:vt.left-K;if(gt<0){y.value[t.vertical===!0?"scrollTop":"scrollLeft"]+=Math.floor(gt),G();return}gt+=t.vertical===!0?vt.height-mt:vt.width-tt,gt>0&&(y.value[t.vertical===!0?"scrollTop":"scrollLeft"]+=Math.ceil(gt),G())}function G(){const O=y.value;if(O===null)return;const K=O.getBoundingClientRect(),tt=t.vertical===!0?O.scrollTop:Math.abs(O.scrollLeft);nt.value===!0?(T.value=Math.ceil(tt+K.width)0):(T.value=tt>0,R.value=t.vertical===!0?Math.ceil(tt+K.height){wt(O)===!0&&ct()},5)}function zt(){St(it.value===!0?Number.MAX_SAFE_INTEGER:0)}function Mt(){St(it.value===!0?0:Number.MAX_SAFE_INTEGER)}function ct(){V!==null&&(clearInterval(V),V=null)}function Ht(O,K){const tt=Array.prototype.filter.call(y.value.children,Pt=>Pt===K||Pt.matches&&Pt.matches(".q-tab.q-focusable")===!0),ht=tt.length;if(ht===0)return;if(O===36)return bt(tt[0]),tt[0].focus(),!0;if(O===35)return bt(tt[ht-1]),tt[ht-1].focus(),!0;const mt=O===(t.vertical===!0?38:37),vt=O===(t.vertical===!0?40:39),gt=mt===!0?-1:vt===!0?1:void 0;if(gt!==void 0){const Pt=nt.value===!0?-1:1,Dt=tt.indexOf(K)+gt*Pt;return Dt>=0&&Dtit.value===!0?{get:O=>Math.abs(O.scrollLeft),set:(O,K)=>{O.scrollLeft=-K}}:t.vertical===!0?{get:O=>O.scrollTop,set:(O,K)=>{O.scrollTop=K}}:{get:O=>O.scrollLeft,set:(O,K)=>{O.scrollLeft=K}});function wt(O){const K=y.value,{get:tt,set:ht}=pe.value;let mt=!1,vt=tt(K);const gt=O=O)&&(mt=!0,vt=O),ht(K,vt),G(),mt}function Pe(O,K){for(const tt in O)if(O[tt]!==K[tt])return!1;return!0}function ke(){let O=null,K={matchedLen:0,queryDiff:9999,hrefLen:0};const tt=C.filter(gt=>gt.routeData!==void 0&>.routeData.hasRouterLink.value===!0),{hash:ht,query:mt}=r.$route,vt=Object.keys(mt).length;for(const gt of tt){const Pt=gt.routeData.exact.value===!0;if(gt.routeData[Pt===!0?"linkIsExactActive":"linkIsActive"].value!==!0)continue;const{hash:Dt,query:re,matched:De,href:$i}=gt.routeData.resolvedLink.value,et=Object.keys(re).length;if(Pt===!0){if(Dt!==ht||et!==vt||Pe(mt,re)===!1)continue;O=gt.name.value;break}if(Dt!==""&&Dt!==ht||et!==0&&Pe(re,mt)===!1)continue;const Ct={matchedLen:De.length,queryDiff:vt-et,hrefLen:$i.length-Dt.length};if(Ct.matchedLen>K.matchedLen){O=gt.name.value,K=Ct;continue}else if(Ct.matchedLen!==K.matchedLen)continue;if(Ct.queryDiffK.hrefLen&&(O=gt.name.value,K=Ct)}O===null&&C.some(gt=>gt.routeData===void 0&>.name.value===b.value)===!0||U({name:O,setCurrent:!0})}function M(O){if(d(),q.value!==!0&&p.value!==null&&O.target&&typeof O.target.closest=="function"){const K=O.target.closest(".q-tab");K&&p.value.contains(K)===!0&&(q.value=!0,x.value===!0&&bt(K))}}function E(){f(()=>{q.value=!1},30)}function H(){ut.avoidRouteWatcher===!1?v(ke):_()}function X(){if(N===void 0){const O=Lt(()=>r.$route.fullPath,H);N=()=>{O(),N=void 0}}}function Q(O){C.push(O),A.value++,j(),O.routeData===void 0||r.$route===void 0?v(()=>{if(x.value===!0){const K=b.value,tt=K!=null&&K!==""?C.find(ht=>ht.name.value===K):null;tt&&bt(tt.rootRef.value)}}):(X(),O.routeData.hasRouterLink.value===!0&&H())}function rt(O){C.splice(C.indexOf(O),1),A.value--,j(),N!==void 0&&O.routeData!==void 0&&(C.every(K=>K.routeData===void 0)===!0&&N(),H())}const ut={currentModel:b,tabProps:I,hasFocus:q,hasActiveTab:F,registerTab:Q,unregisterTab:rt,verifyRouteModel:H,updateModel:U,onKbdNavigate:Ht,avoidRouteWatcher:!1};Al(sd,ut);function at(){Z!==null&&clearTimeout(Z),ct(),N!==void 0&&N()}let lt;return ve(at),hr(()=>{lt=N!==void 0,at()}),El(()=>{lt===!0&&X(),j()}),()=>J("div",{ref:p,class:P.value,role:"tablist",onFocusin:M,onFocusout:E},[J(h0,{onResize:Bt}),J("div",{ref:y,class:$.value,onScroll:G},Ne(e.default)),J(je,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(T.value===!0?"":" q-tabs__arrow--faded"),name:t.leftIcon||s.iconSet.tabs[t.vertical===!0?"up":"left"],onMousedownPassive:zt,onTouchstartPassive:zt,onMouseupPassive:ct,onMouseleavePassive:ct,onTouchendPassive:ct}),J(je,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(R.value===!0?"":" q-tabs__arrow--faded"),name:t.rightIcon||s.iconSet.tabs[t.vertical===!0?"down":"right"],onMousedownPassive:Mt,onTouchstartPassive:Mt,onMouseupPassive:ct,onMouseleavePassive:ct,onTouchendPassive:ct})])}}),Vl={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},m0=Object.keys(Vl);Vl.all=!0;function _a(t){const e={};for(const n of m0)t[n]===!0&&(e[n]=!0);return Object.keys(e).length===0?Vl:(e.horizontal===!0?e.left=e.right=!0:e.left===!0&&e.right===!0&&(e.horizontal=!0),e.vertical===!0?e.up=e.down=!0:e.up===!0&&e.down===!0&&(e.vertical=!0),e.horizontal===!0&&e.vertical===!0&&(e.all=!0),e)}const v0=["INPUT","TEXTAREA"];function pa(t,e){return e.event===void 0&&t.target!==void 0&&t.target.draggable!==!0&&typeof e.handler=="function"&&v0.includes(t.target.nodeName.toUpperCase())===!1&&(t.qClonedBy===void 0||t.qClonedBy.indexOf(e.uid)===-1)}function _0(t){const e=[.06,6,50];return typeof t=="string"&&t.length&&t.split(":").forEach((n,r)=>{const s=parseFloat(n);s&&(e[r]=s)}),e}const p0=Za({name:"touch-swipe",beforeMount(t,{value:e,arg:n,modifiers:r}){if(r.mouse!==!0&&Qt.has.touch!==!0)return;const s=r.mouseCapture===!0?"Capture":"",o={handler:e,sensitivity:_0(n),direction:_a(r),noop:sn,mouseStart(u){pa(u,o)&&Vf(u)&&(hi(o,"temp",[[document,"mousemove","move",`notPassive${s}`],[document,"mouseup","end","notPassiveCapture"]]),o.start(u,!0))},touchStart(u){if(pa(u,o)){const h=u.target;hi(o,"temp",[[h,"touchmove","move","notPassiveCapture"],[h,"touchcancel","end","notPassiveCapture"],[h,"touchend","end","notPassiveCapture"]]),o.start(u)}},start(u,h){Qt.is.firefox===!0&&ns(t,!0);const f=rn(u);o.event={x:f.left,y:f.top,time:Date.now(),mouse:h===!0,dir:!1}},move(u){if(o.event===void 0)return;if(o.event.dir!==!1){me(u);return}const h=Date.now()-o.event.time;if(h===0)return;const f=rn(u),d=f.left-o.event.x,v=Math.abs(d),_=f.top-o.event.y,p=Math.abs(_);if(o.event.mouse!==!0){if(vo.sensitivity[0]&&(o.event.dir=_<0?"up":"down"),o.direction.horizontal===!0&&v>p&&p<100&&y>o.sensitivity[0]&&(o.event.dir=d<0?"left":"right"),o.direction.up===!0&&vo.sensitivity[0]&&(o.event.dir="up"),o.direction.down===!0&&v0&&v<100&&b>o.sensitivity[0]&&(o.event.dir="down"),o.direction.left===!0&&v>p&&d<0&&p<100&&y>o.sensitivity[0]&&(o.event.dir="left"),o.direction.right===!0&&v>p&&d>0&&p<100&&y>o.sensitivity[0]&&(o.event.dir="right"),o.event.dir!==!1?(me(u),o.event.mouse===!0&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),zl(),o.styleCleanup=x=>{o.styleCleanup=void 0,document.body.classList.remove("non-selectable");const T=()=>{document.body.classList.remove("no-pointer-events--children")};x===!0?setTimeout(T,50):T()}),o.handler({evt:u,touch:o.event.mouse!==!0,mouse:o.event.mouse,direction:o.event.dir,duration:h,distance:{x:v,y:p}})):o.end(u)},end(u){o.event!==void 0&&(tn(o,"temp"),Qt.is.firefox===!0&&ns(t,!1),o.styleCleanup!==void 0&&o.styleCleanup(!0),u!==void 0&&o.event.dir!==!1&&me(u),o.event=void 0)}};if(t.__qtouchswipe=o,r.mouse===!0){const u=r.mouseCapture===!0||r.mousecapture===!0?"Capture":"";hi(o,"main",[[t,"mousedown","mouseStart",`passive${u}`]])}Qt.has.touch===!0&&hi(o,"main",[[t,"touchstart","touchStart",`passive${r.capture===!0?"Capture":""}`],[t,"touchmove","noop","notPassiveCapture"]])},updated(t,e){const n=t.__qtouchswipe;n!==void 0&&(e.oldValue!==e.value&&(typeof e.value!="function"&&n.end(),n.handler=e.value),n.direction=_a(e.modifiers))},beforeUnmount(t){const e=t.__qtouchswipe;e!==void 0&&(tn(e,"main"),tn(e,"temp"),Qt.is.firefox===!0&&ns(t,!1),e.styleCleanup!==void 0&&e.styleCleanup(),delete t.__qtouchswipe)}});function g0(){const t=new Map;return{getCache:function(e,n){return t[e]===void 0?t[e]=n:t[e]},getCacheWithFn:function(e,n){return t[e]===void 0?t[e]=n():t[e]}}}const y0={name:{required:!0},disable:Boolean},Yh={setup(t,{slots:e}){return()=>J("div",{class:"q-panel scroll",role:"tabpanel"},Ne(e.default))}},b0={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},x0=["update:modelValue","beforeTransition","transition"];function M0(){const{props:t,emit:e,proxy:n}=Gt(),{getCacheWithFn:r}=g0();let s,o;const u=ft(null),h=ft(null);function f($){const z=t.vertical===!0?"up":"left";V((n.$q.lang.rtl===!0?-1:1)*($.direction===z?1:-1))}const d=k(()=>[[p0,f,void 0,{horizontal:t.vertical!==!0,vertical:t.vertical,mouse:!0}]]),v=k(()=>t.transitionPrev||`slide-${t.vertical===!0?"down":"right"}`),_=k(()=>t.transitionNext||`slide-${t.vertical===!0?"up":"left"}`),p=k(()=>`--q-transition-duration: ${t.transitionDuration}ms`),y=k(()=>typeof t.modelValue=="string"||typeof t.modelValue=="number"?t.modelValue:String(t.modelValue)),b=k(()=>({include:t.keepAliveInclude,exclude:t.keepAliveExclude,max:t.keepAliveMax})),x=k(()=>t.keepAliveInclude!==void 0||t.keepAliveExclude!==void 0);Lt(()=>t.modelValue,($,z)=>{const nt=C($)===!0?A($):-1;o!==!0&&Z(nt===-1?0:nt{e("transition",$,z)}))});function T(){V(1)}function R(){V(-1)}function S($){e("update:modelValue",$)}function C($){return $!=null&&$!==""}function A($){return s.findIndex(z=>z.props.name===$&&z.props.disable!==""&&z.props.disable!==!0)}function q(){return s.filter($=>$.props.disable!==""&&$.props.disable!==!0)}function Z($){const z=$!==0&&t.animated===!0&&u.value!==-1?"q-transition--"+($===-1?v.value:_.value):null;h.value!==z&&(h.value=z)}function V($,z=u.value){let nt=z+$;for(;nt>-1&&nt{o=!1});return}nt+=$}t.infinite===!0&&s.length!==0&&z!==-1&&z!==s.length&&V($,$===-1?s.length:-1)}function N(){const $=A(t.modelValue);return u.value!==$&&(u.value=$),!0}function I(){const $=C(t.modelValue)===!0&&N()&&s[u.value];return t.keepAlive===!0?[J(z_,b.value,[J(x.value===!0?r(y.value,()=>({...Yh,name:y.value})):Yh,{key:y.value,style:p.value},()=>$)])]:[J("div",{class:"q-panel scroll",style:p.value,key:y.value,role:"tabpanel"},[$])]}function F(){if(s.length!==0)return t.animated===!0?[J(ps,{name:h.value},I)]:I()}function W($){return s=Xp(Ne($.default,[])).filter(z=>z.props!==null&&z.props.slot===void 0&&C(z.props.name)===!0),s.length}function P(){return s}return Object.assign(n,{next:T,previous:R,goTo:S}),{panelIndex:u,panelDirectives:d,updatePanelsList:W,updatePanelIndex:N,getPanelContent:F,getEnabledPanels:q,getPanels:P,isValidPanelName:C,keepAliveProps:b,needsUniqueKeepAliveWrapper:x,goToPanelByOffset:V,goToPanel:S,nextPanel:T,previousPanel:R}}const tc=_e({name:"QTabPanel",props:y0,setup(t,{slots:e}){return()=>J("div",{class:"q-tab-panel",role:"tabpanel"},Ne(e.default))}}),w0=_e({name:"QTabPanels",props:{...b0,...On},emits:x0,setup(t,{slots:e}){const n=Gt(),r=In(t,n.proxy.$q),{updatePanelsList:s,getPanelContent:o,panelDirectives:u}=M0(),h=k(()=>"q-tab-panels q-panel-parent"+(r.value===!0?" q-tab-panels--dark q-dark":""));return()=>(s(e),qf("div",{class:h.value},o(),"pan",t.swipeable,()=>u.value))}});function ec(t){if(t===!1)return 0;if(t===!0||t===void 0)return 1;const e=parseInt(t,10);return isNaN(e)?0:e}const nr=Za({name:"close-popup",beforeMount(t,{value:e}){const n={depth:ec(e),handler(r){n.depth!==0&&setTimeout(()=>{const s=bg(t);s!==void 0&&xg(s,r,n.depth)})},handlerKey(r){an(r,13)===!0&&n.handler(r)}};t.__qclosepopup=n,t.addEventListener("click",n.handler),t.addEventListener("keyup",n.handlerKey)},updated(t,{value:e,oldValue:n}){e!==n&&(t.__qclosepopup.depth=ec(e))},beforeUnmount(t){const e=t.__qclosepopup;t.removeEventListener("click",e.handler),t.removeEventListener("keyup",e.handlerKey),delete t.__qclosepopup}});var C0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function P0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function T0(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){if(this instanceof r){var s=[null];s.push.apply(s,arguments);var o=Function.bind.apply(e,s);return new o}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var sl={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,e){(function(n,r){r(e)})(C0,function(n){var r="1.9.4";function s(i){var a,l,c,m;for(l=1,c=arguments.length;l"u"||!L||!L.Mixin)){i=C(i)?i:[i];for(var a=0;a0?Math.floor(i):Math.ceil(i)};j.prototype={clone:function(){return new j(this.x,this.y)},add:function(i){return this.clone()._add(ot(i))},_add:function(i){return this.x+=i.x,this.y+=i.y,this},subtract:function(i){return this.clone()._subtract(ot(i))},_subtract:function(i){return this.x-=i.x,this.y-=i.y,this},divideBy:function(i){return this.clone()._divideBy(i)},_divideBy:function(i){return this.x/=i,this.y/=i,this},multiplyBy:function(i){return this.clone()._multiplyBy(i)},_multiplyBy:function(i){return this.x*=i,this.y*=i,this},scaleBy:function(i){return new j(this.x*i.x,this.y*i.y)},unscaleBy:function(i){return new j(this.x/i.x,this.y/i.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=Bt(this.x),this.y=Bt(this.y),this},distanceTo:function(i){i=ot(i);var a=i.x-this.x,l=i.y-this.y;return Math.sqrt(a*a+l*l)},equals:function(i){return i=ot(i),i.x===this.x&&i.y===this.y},contains:function(i){return i=ot(i),Math.abs(i.x)<=Math.abs(this.x)&&Math.abs(i.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function ot(i,a,l){return i instanceof j?i:C(i)?new j(i[0],i[1]):i==null?i:typeof i=="object"&&"x"in i&&"y"in i?new j(i.x,i.y):new j(i,a,l)}function bt(i,a){if(i)for(var l=a?[i,a]:i,c=0,m=l.length;c=this.min.x&&l.x<=this.max.x&&a.y>=this.min.y&&l.y<=this.max.y},intersects:function(i){i=G(i);var a=this.min,l=this.max,c=i.min,m=i.max,g=m.x>=a.x&&c.x<=l.x,w=m.y>=a.y&&c.y<=l.y;return g&&w},overlaps:function(i){i=G(i);var a=this.min,l=this.max,c=i.min,m=i.max,g=m.x>a.x&&c.xa.y&&c.y=a.lat&&m.lat<=l.lat&&c.lng>=a.lng&&m.lng<=l.lng},intersects:function(i){i=zt(i);var a=this._southWest,l=this._northEast,c=i.getSouthWest(),m=i.getNorthEast(),g=m.lat>=a.lat&&c.lat<=l.lat,w=m.lng>=a.lng&&c.lng<=l.lng;return g&&w},overlaps:function(i){i=zt(i);var a=this._southWest,l=this._northEast,c=i.getSouthWest(),m=i.getNorthEast(),g=m.lat>a.lat&&c.lata.lng&&c.lng1,Yd=function(){var i=!1;try{var a=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("testPassiveEventSupport",_,a),window.removeEventListener("testPassiveEventSupport",_,a)}catch{}return i}(),tm=function(){return!!document.createElement("canvas").getContext}(),Ga=!!(document.createElementNS&&X("svg").createSVGRect),em=!!Ga&&function(){var i=document.createElement("div");return i.innerHTML="",(i.firstChild&&i.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),im=!Ga&&function(){try{var i=document.createElement("div");i.innerHTML='';var a=i.firstChild;return a.style.behavior="url(#default#VML)",a&&typeof a.adj=="object"}catch{return!1}}(),nm=navigator.platform.indexOf("Mac")===0,sm=navigator.platform.indexOf("Linux")===0;function mi(i){return navigator.userAgent.toLowerCase().indexOf(i)>=0}var xt={ie:ut,ielt9:at,edge:lt,webkit:O,android:K,android23:tt,androidStock:mt,opera:vt,chrome:gt,gecko:Pt,safari:Dt,phantom:re,opera12:De,win:$i,ie3d:et,webkit3d:Ct,gecko3d:Ot,any3d:$t,mobile:Xt,mobileWebkit:di,mobileWebkit3d:bs,msPointer:Rn,pointer:Yl,touch:Kd,touchNative:tu,mobileOpera:Qd,mobileGecko:Xd,retina:Jd,passiveEvents:Yd,canvas:tm,svg:Ga,vml:im,inlineSvg:em,mac:nm,linux:sm},eu=xt.msPointer?"MSPointerDown":"pointerdown",iu=xt.msPointer?"MSPointerMove":"pointermove",nu=xt.msPointer?"MSPointerUp":"pointerup",su=xt.msPointer?"MSPointerCancel":"pointercancel",Ka={touchstart:eu,touchmove:iu,touchend:nu,touchcancel:su},ru={touchstart:hm,touchmove:_r,touchend:_r,touchcancel:_r},Nn={},au=!1;function rm(i,a,l){return a==="touchstart"&&um(),ru[a]?(l=ru[a].bind(this,l),i.addEventListener(Ka[a],l,!1),l):(console.warn("wrong event specified:",a),_)}function am(i,a,l){if(!Ka[a]){console.warn("wrong event specified:",a);return}i.removeEventListener(Ka[a],l,!1)}function om(i){Nn[i.pointerId]=i}function lm(i){Nn[i.pointerId]&&(Nn[i.pointerId]=i)}function ou(i){delete Nn[i.pointerId]}function um(){au||(document.addEventListener(eu,om,!0),document.addEventListener(iu,lm,!0),document.addEventListener(nu,ou,!0),document.addEventListener(su,ou,!0),au=!0)}function _r(i,a){if(a.pointerType!==(a.MSPOINTER_TYPE_MOUSE||"mouse")){a.touches=[];for(var l in Nn)a.touches.push(Nn[l]);a.changedTouches=[a],i(a)}}function hm(i,a){a.MSPOINTER_TYPE_TOUCH&&a.pointerType===a.MSPOINTER_TYPE_TOUCH&&ge(a),_r(i,a)}function cm(i){var a={},l,c;for(c in i)l=i[c],a[c]=l&&l.bind?l.bind(i):l;return i=a,a.type="dblclick",a.detail=2,a.isTrusted=!1,a._simulated=!0,a}var fm=200;function dm(i,a){i.addEventListener("dblclick",a);var l=0,c;function m(g){if(g.detail!==1){c=g.detail;return}if(!(g.pointerType==="mouse"||g.sourceCapabilities&&!g.sourceCapabilities.firesTouchEvents)){var w=fu(g);if(!(w.some(function(D){return D instanceof HTMLLabelElement&&D.attributes.for})&&!w.some(function(D){return D instanceof HTMLInputElement||D instanceof HTMLSelectElement}))){var B=Date.now();B-l<=fm?(c++,c===2&&a(cm(g))):c=1,l=B}}}return i.addEventListener("click",m),{dblclick:a,simDblclick:m}}function mm(i,a){i.removeEventListener("dblclick",a.dblclick),i.removeEventListener("click",a.simDblclick)}var Qa=yr(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),xs=yr(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),lu=xs==="webkitTransition"||xs==="OTransition"?xs+"End":"transitionend";function uu(i){return typeof i=="string"?document.getElementById(i):i}function Ms(i,a){var l=i.style[a]||i.currentStyle&&i.currentStyle[a];if((!l||l==="auto")&&document.defaultView){var c=document.defaultView.getComputedStyle(i,null);l=c?c[a]:null}return l==="auto"?null:l}function Vt(i,a,l){var c=document.createElement(i);return c.className=a||"",l&&l.appendChild(c),c}function te(i){var a=i.parentNode;a&&a.removeChild(i)}function pr(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function Bn(i){var a=i.parentNode;a&&a.lastChild!==i&&a.appendChild(i)}function zn(i){var a=i.parentNode;a&&a.firstChild!==i&&a.insertBefore(i,a.firstChild)}function Xa(i,a){if(i.classList!==void 0)return i.classList.contains(a);var l=gr(i);return l.length>0&&new RegExp("(^|\\s)"+a+"(\\s|$)").test(l)}function Nt(i,a){if(i.classList!==void 0)for(var l=b(a),c=0,m=l.length;c0?2*window.devicePixelRatio:1;function mu(i){return xt.edge?i.wheelDeltaY/2:i.deltaY&&i.deltaMode===0?-i.deltaY/pm:i.deltaY&&i.deltaMode===1?-i.deltaY*20:i.deltaY&&i.deltaMode===2?-i.deltaY*60:i.deltaX||i.deltaZ?0:i.wheelDelta?(i.wheelDeltaY||i.wheelDelta)/2:i.detail&&Math.abs(i.detail)<32765?-i.detail*20:i.detail?i.detail/-32765*60:0}function uo(i,a){var l=a.relatedTarget;if(!l)return!0;try{for(;l&&l!==i;)l=l.parentNode}catch{return!1}return l!==i}var gm={__proto__:null,on:It,off:Kt,stopPropagation:cn,disableScrollPropagation:lo,disableClickPropagation:Ts,preventDefault:ge,stop:fn,getPropagationPath:fu,getMousePosition:du,getWheelDelta:mu,isExternalTarget:uo,addListener:It,removeListener:Kt},vu=U.extend({run:function(i,a,l,c){this.stop(),this._el=i,this._inProgress=!0,this._duration=l||.25,this._easeOutPower=1/Math.max(c||.5,.2),this._startPos=hn(i),this._offset=a.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=W(this._animate,this),this._step()},_step:function(i){var a=+new Date-this._startTime,l=this._duration*1e3;athis.options.maxZoom)?this.setZoom(i):this},panInsideBounds:function(i,a){this._enforcingBounds=!0;var l=this.getCenter(),c=this._limitCenter(l,this._zoom,zt(i));return l.equals(c)||this.panTo(c,a),this._enforcingBounds=!1,this},panInside:function(i,a){a=a||{};var l=ot(a.paddingTopLeft||a.padding||[0,0]),c=ot(a.paddingBottomRight||a.padding||[0,0]),m=this.project(this.getCenter()),g=this.project(i),w=this.getPixelBounds(),B=G([w.min.add(l),w.max.subtract(c)]),D=B.getSize();if(!B.contains(g)){this._enforcingBounds=!0;var Y=g.subtract(B.getCenter()),_t=B.extend(g).getSize().subtract(D);m.x+=Y.x<0?-_t.x:_t.x,m.y+=Y.y<0?-_t.y:_t.y,this.panTo(this.unproject(m),a),this._enforcingBounds=!1}return this},invalidateSize:function(i){if(!this._loaded)return this;i=s({animate:!1,pan:!0},i===!0?{animate:!0}:i);var a=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var l=this.getSize(),c=a.divideBy(2).round(),m=l.divideBy(2).round(),g=c.subtract(m);return!g.x&&!g.y?this:(i.animate&&i.pan?this.panBy(g):(i.pan&&this._rawPanBy(g),this.fire("move"),i.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(u(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:a,newSize:l}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(i){if(i=this._locateOptions=s({timeout:1e4,watch:!1},i),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var a=u(this._handleGeolocationResponse,this),l=u(this._handleGeolocationError,this);return i.watch?this._locationWatchId=navigator.geolocation.watchPosition(a,l,i):navigator.geolocation.getCurrentPosition(a,l,i),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(i){if(this._container._leaflet_id){var a=i.code,l=i.message||(a===1?"permission denied":a===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:a,message:"Geolocation error: "+l+"."})}},_handleGeolocationResponse:function(i){if(this._container._leaflet_id){var a=i.coords.latitude,l=i.coords.longitude,c=new Mt(a,l),m=c.toBounds(i.coords.accuracy*2),g=this._locateOptions;if(g.setView){var w=this.getBoundsZoom(m);this.setView(c,g.maxZoom?Math.min(w,g.maxZoom):w)}var B={latlng:c,bounds:m,timestamp:i.timestamp};for(var D in i.coords)typeof i.coords[D]=="number"&&(B[D]=i.coords[D]);this.fire("locationfound",B)}},addHandler:function(i,a){if(!a)return this;var l=this[i]=new a(this);return this._handlers.push(l),this.options[i]&&l.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(),te(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(P(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var i;for(i in this._layers)this._layers[i].remove();for(i in this._panes)te(this._panes[i]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(i,a){var l="leaflet-pane"+(i?" leaflet-"+i.replace("Pane","")+"-pane":""),c=Vt("div",l,a||this._mapPane);return i&&(this._panes[i]=c),c},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var i=this.getPixelBounds(),a=this.unproject(i.getBottomLeft()),l=this.unproject(i.getTopRight());return new St(a,l)},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(i,a,l){i=zt(i),l=ot(l||[0,0]);var c=this.getZoom()||0,m=this.getMinZoom(),g=this.getMaxZoom(),w=i.getNorthWest(),B=i.getSouthEast(),D=this.getSize().subtract(l),Y=G(this.project(B,c),this.project(w,c)).getSize(),_t=xt.any3d?this.options.zoomSnap:1,Tt=D.x/Y.x,Ft=D.y/Y.y,Ae=a?Math.max(Tt,Ft):Math.min(Tt,Ft);return c=this.getScaleZoom(Ae,c),_t&&(c=Math.round(c/(_t/100))*(_t/100),c=a?Math.ceil(c/_t)*_t:Math.floor(c/_t)*_t),Math.max(m,Math.min(g,c))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new j(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(i,a){var l=this._getTopLeftPoint(i,a);return new bt(l,l.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(i){return this.options.crs.getProjectedBounds(i===void 0?this.getZoom():i)},getPane:function(i){return typeof i=="string"?this._panes[i]:i},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(i,a){var l=this.options.crs;return a=a===void 0?this._zoom:a,l.scale(i)/l.scale(a)},getScaleZoom:function(i,a){var l=this.options.crs;a=a===void 0?this._zoom:a;var c=l.zoom(i*l.scale(a));return isNaN(c)?1/0:c},project:function(i,a){return a=a===void 0?this._zoom:a,this.options.crs.latLngToPoint(ct(i),a)},unproject:function(i,a){return a=a===void 0?this._zoom:a,this.options.crs.pointToLatLng(ot(i),a)},layerPointToLatLng:function(i){var a=ot(i).add(this.getPixelOrigin());return this.unproject(a)},latLngToLayerPoint:function(i){var a=this.project(ct(i))._round();return a._subtract(this.getPixelOrigin())},wrapLatLng:function(i){return this.options.crs.wrapLatLng(ct(i))},wrapLatLngBounds:function(i){return this.options.crs.wrapLatLngBounds(zt(i))},distance:function(i,a){return this.options.crs.distance(ct(i),ct(a))},containerPointToLayerPoint:function(i){return ot(i).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(i){return ot(i).add(this._getMapPanePos())},containerPointToLatLng:function(i){var a=this.containerPointToLayerPoint(ot(i));return this.layerPointToLatLng(a)},latLngToContainerPoint:function(i){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ct(i)))},mouseEventToContainerPoint:function(i){return du(i,this._container)},mouseEventToLayerPoint:function(i){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(i))},mouseEventToLatLng:function(i){return this.layerPointToLatLng(this.mouseEventToLayerPoint(i))},_initContainer:function(i){var a=this._container=uu(i);if(a){if(a._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");It(a,"scroll",this._onScroll,this),this._containerId=f(a)},_initLayout:function(){var i=this._container;this._fadeAnimated=this.options.fadeAnimation&&xt.any3d,Nt(i,"leaflet-container"+(xt.touch?" leaflet-touch":"")+(xt.retina?" leaflet-retina":"")+(xt.ielt9?" leaflet-oldie":"")+(xt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var a=Ms(i,"position");a!=="absolute"&&a!=="relative"&&a!=="fixed"&&a!=="sticky"&&(i.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var i=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ae(this._mapPane,new j(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Nt(i.markerPane,"leaflet-zoom-hide"),Nt(i.shadowPane,"leaflet-zoom-hide"))},_resetView:function(i,a,l){ae(this._mapPane,new j(0,0));var c=!this._loaded;this._loaded=!0,a=this._limitZoom(a),this.fire("viewprereset");var m=this._zoom!==a;this._moveStart(m,l)._move(i,a)._moveEnd(m),this.fire("viewreset"),c&&this.fire("load")},_moveStart:function(i,a){return i&&this.fire("zoomstart"),a||this.fire("movestart"),this},_move:function(i,a,l,c){a===void 0&&(a=this._zoom);var m=this._zoom!==a;return this._zoom=a,this._lastCenter=i,this._pixelOrigin=this._getNewPixelOrigin(i),c?l&&l.pinch&&this.fire("zoom",l):((m||l&&l.pinch)&&this.fire("zoom",l),this.fire("move",l)),this},_moveEnd:function(i){return i&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return P(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(i){ae(this._mapPane,this._getMapPanePos().subtract(i))},_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(i){this._targets={},this._targets[f(this._container)]=this;var a=i?Kt:It;a(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&a(window,"resize",this._onResize,this),xt.any3d&&this.options.transform3DLimit&&(i?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){P(this._resizeRequest),this._resizeRequest=W(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var i=this._getMapPanePos();Math.max(Math.abs(i.x),Math.abs(i.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(i,a){for(var l=[],c,m=a==="mouseout"||a==="mouseover",g=i.target||i.srcElement,w=!1;g;){if(c=this._targets[f(g)],c&&(a==="click"||a==="preclick")&&this._draggableMoved(c)){w=!0;break}if(c&&c.listens(a,!0)&&(m&&!uo(g,i)||(l.push(c),m))||g===this._container)break;g=g.parentNode}return!l.length&&!w&&!m&&this.listens(a,!0)&&(l=[this]),l},_isClickDisabled:function(i){for(;i&&i!==this._container;){if(i._leaflet_disable_click)return!0;i=i.parentNode}},_handleDOMEvent:function(i){var a=i.target||i.srcElement;if(!(!this._loaded||a._leaflet_disable_events||i.type==="click"&&this._isClickDisabled(a))){var l=i.type;l==="mousedown"&&no(a),this._fireDOMEvent(i,l)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(i,a,l){if(i.type==="click"){var c=s({},i);c.type="preclick",this._fireDOMEvent(c,c.type,l)}var m=this._findEventTargets(i,a);if(l){for(var g=[],w=0;w0?Math.round(i-a)/2:Math.max(0,Math.ceil(i))-Math.max(0,Math.floor(a))},_limitZoom:function(i){var a=this.getMinZoom(),l=this.getMaxZoom(),c=xt.any3d?this.options.zoomSnap:1;return c&&(i=Math.round(i/c)*c),Math.max(a,Math.min(l,i))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ne(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(i,a){var l=this._getCenterOffset(i)._trunc();return(a&&a.animate)!==!0&&!this.getSize().contains(l)?!1:(this.panBy(l,a),!0)},_createAnimProxy:function(){var i=this._proxy=Vt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(i),this.on("zoomanim",function(a){var l=Qa,c=this._proxy.style[l];un(this._proxy,this.project(a.center,a.zoom),this.getZoomScale(a.zoom,1)),c===this._proxy.style[l]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){te(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var i=this.getCenter(),a=this.getZoom();un(this._proxy,this.project(i,a),this.getZoomScale(a,1))},_catchTransitionEnd:function(i){this._animatingZoom&&i.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(i,a,l){if(this._animatingZoom)return!0;if(l=l||{},!this._zoomAnimated||l.animate===!1||this._nothingToAnimate()||Math.abs(a-this._zoom)>this.options.zoomAnimationThreshold)return!1;var c=this.getZoomScale(a),m=this._getCenterOffset(i)._divideBy(1-1/c);return l.animate!==!0&&!this.getSize().contains(m)?!1:(W(function(){this._moveStart(!0,l.noMoveStart||!1)._animateZoom(i,a,!0)},this),!0)},_animateZoom:function(i,a,l,c){this._mapPane&&(l&&(this._animatingZoom=!0,this._animateToCenter=i,this._animateToZoom=a,Nt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:i,zoom:a,noUpdate:c}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(u(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ne(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 ym(i,a){return new Zt(i,a)}var ni=z.extend({options:{position:"topright"},initialize:function(i){x(this,i)},getPosition:function(){return this.options.position},setPosition:function(i){var a=this._map;return a&&a.removeControl(this),this.options.position=i,a&&a.addControl(this),this},getContainer:function(){return this._container},addTo:function(i){this.remove(),this._map=i;var a=this._container=this.onAdd(i),l=this.getPosition(),c=i._controlCorners[l];return Nt(a,"leaflet-control"),l.indexOf("bottom")!==-1?c.insertBefore(a,c.firstChild):c.appendChild(a),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(te(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(i){this._map&&i&&i.screenX>0&&i.screenY>0&&this._map.getContainer().focus()}}),Ls=function(i){return new ni(i)};Zt.include({addControl:function(i){return i.addTo(this),this},removeControl:function(i){return i.remove(),this},_initControlPos:function(){var i=this._controlCorners={},a="leaflet-",l=this._controlContainer=Vt("div",a+"control-container",this._container);function c(m,g){var w=a+m+" "+a+g;i[m+g]=Vt("div",w,l)}c("top","left"),c("top","right"),c("bottom","left"),c("bottom","right")},_clearControlPos:function(){for(var i in this._controlCorners)te(this._controlCorners[i]);te(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var _u=ni.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(i,a,l,c){return l1,this._baseLayersList.style.display=i?"":"none"),this._separator.style.display=a&&i?"":"none",this},_onLayerChange:function(i){this._handlingClick||this._update();var a=this._getLayer(f(i.target)),l=a.overlay?i.type==="add"?"overlayadd":"overlayremove":i.type==="add"?"baselayerchange":null;l&&this._map.fire(l,a)},_createRadioElement:function(i,a){var l='",c=document.createElement("div");return c.innerHTML=l,c.firstChild},_addItem:function(i){var a=document.createElement("label"),l=this._map.hasLayer(i.layer),c;i.overlay?(c=document.createElement("input"),c.type="checkbox",c.className="leaflet-control-layers-selector",c.defaultChecked=l):c=this._createRadioElement("leaflet-base-layers_"+f(this),l),this._layerControlInputs.push(c),c.layerId=f(i.layer),It(c,"click",this._onInputClick,this);var m=document.createElement("span");m.innerHTML=" "+i.name;var g=document.createElement("span");a.appendChild(g),g.appendChild(c),g.appendChild(m);var w=i.overlay?this._overlaysList:this._baseLayersList;return w.appendChild(a),this._checkDisabledLayers(),a},_onInputClick:function(){if(!this._preventClick){var i=this._layerControlInputs,a,l,c=[],m=[];this._handlingClick=!0;for(var g=i.length-1;g>=0;g--)a=i[g],l=this._getLayer(a.layerId).layer,a.checked?c.push(l):a.checked||m.push(l);for(g=0;g=0;m--)a=i[m],l=this._getLayer(a.layerId).layer,a.disabled=l.options.minZoom!==void 0&&cl.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var i=this._section;this._preventClick=!0,It(i,"click",ge),this.expand();var a=this;setTimeout(function(){Kt(i,"click",ge),a._preventClick=!1})}}),bm=function(i,a,l){return new _u(i,a,l)},ho=ni.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(i){var a="leaflet-control-zoom",l=Vt("div",a+" leaflet-bar"),c=this.options;return this._zoomInButton=this._createButton(c.zoomInText,c.zoomInTitle,a+"-in",l,this._zoomIn),this._zoomOutButton=this._createButton(c.zoomOutText,c.zoomOutTitle,a+"-out",l,this._zoomOut),this._updateDisabled(),i.on("zoomend zoomlevelschange",this._updateDisabled,this),l},onRemove:function(i){i.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(i){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(i.shiftKey?3:1))},_createButton:function(i,a,l,c,m){var g=Vt("a",l,c);return g.innerHTML=i,g.href="#",g.title=a,g.setAttribute("role","button"),g.setAttribute("aria-label",a),Ts(g),It(g,"click",fn),It(g,"click",m,this),It(g,"click",this._refocusOnMap,this),g},_updateDisabled:function(){var i=this._map,a="leaflet-disabled";ne(this._zoomInButton,a),ne(this._zoomOutButton,a),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||i._zoom===i.getMinZoom())&&(Nt(this._zoomOutButton,a),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||i._zoom===i.getMaxZoom())&&(Nt(this._zoomInButton,a),this._zoomInButton.setAttribute("aria-disabled","true"))}});Zt.mergeOptions({zoomControl:!0}),Zt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ho,this.addControl(this.zoomControl))});var xm=function(i){return new ho(i)},pu=ni.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(i){var a="leaflet-control-scale",l=Vt("div",a),c=this.options;return this._addScales(c,a+"-line",l),i.on(c.updateWhenIdle?"moveend":"move",this._update,this),i.whenReady(this._update,this),l},onRemove:function(i){i.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(i,a,l){i.metric&&(this._mScale=Vt("div",a,l)),i.imperial&&(this._iScale=Vt("div",a,l))},_update:function(){var i=this._map,a=i.getSize().y/2,l=i.distance(i.containerPointToLatLng([0,a]),i.containerPointToLatLng([this.options.maxWidth,a]));this._updateScales(l)},_updateScales:function(i){this.options.metric&&i&&this._updateMetric(i),this.options.imperial&&i&&this._updateImperial(i)},_updateMetric:function(i){var a=this._getRoundNum(i),l=a<1e3?a+" m":a/1e3+" km";this._updateScale(this._mScale,l,a/i)},_updateImperial:function(i){var a=i*3.2808399,l,c,m;a>5280?(l=a/5280,c=this._getRoundNum(l),this._updateScale(this._iScale,c+" mi",c/l)):(m=this._getRoundNum(a),this._updateScale(this._iScale,m+" ft",m/a))},_updateScale:function(i,a,l){i.style.width=Math.round(this.options.maxWidth*l)+"px",i.innerHTML=a},_getRoundNum:function(i){var a=Math.pow(10,(Math.floor(i)+"").length-1),l=i/a;return l=l>=10?10:l>=5?5:l>=3?3:l>=2?2:1,a*l}}),Mm=function(i){return new pu(i)},wm='',co=ni.extend({options:{position:"bottomright",prefix:''+(xt.inlineSvg?wm+" ":"")+"Leaflet"},initialize:function(i){x(this,i),this._attributions={}},onAdd:function(i){i.attributionControl=this,this._container=Vt("div","leaflet-control-attribution"),Ts(this._container);for(var a in i._layers)i._layers[a].getAttribution&&this.addAttribution(i._layers[a].getAttribution());return this._update(),i.on("layeradd",this._addAttribution,this),this._container},onRemove:function(i){i.off("layeradd",this._addAttribution,this)},_addAttribution:function(i){i.layer.getAttribution&&(this.addAttribution(i.layer.getAttribution()),i.layer.once("remove",function(){this.removeAttribution(i.layer.getAttribution())},this))},setPrefix:function(i){return this.options.prefix=i,this._update(),this},addAttribution:function(i){return i?(this._attributions[i]||(this._attributions[i]=0),this._attributions[i]++,this._update(),this):this},removeAttribution:function(i){return i?(this._attributions[i]&&(this._attributions[i]--,this._update()),this):this},_update:function(){if(this._map){var i=[];for(var a in this._attributions)this._attributions[a]&&i.push(a);var l=[];this.options.prefix&&l.push(this.options.prefix),i.length&&l.push(i.join(", ")),this._container.innerHTML=l.join(' ')}}});Zt.mergeOptions({attributionControl:!0}),Zt.addInitHook(function(){this.options.attributionControl&&new co().addTo(this)});var Cm=function(i){return new co(i)};ni.Layers=_u,ni.Zoom=ho,ni.Scale=pu,ni.Attribution=co,Ls.layers=bm,Ls.zoom=xm,Ls.scale=Mm,Ls.attribution=Cm;var _i=z.extend({initialize:function(i){this._map=i},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}});_i.addTo=function(i,a){return i.addHandler(a,this),this};var Pm={Events:it},gu=xt.touch?"touchstart mousedown":"mousedown",Di=U.extend({options:{clickTolerance:3},initialize:function(i,a,l,c){x(this,c),this._element=i,this._dragStartTarget=a||i,this._preventOutline=l},enable:function(){this._enabled||(It(this._dragStartTarget,gu,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Di._dragging===this&&this.finishDrag(!0),Kt(this._dragStartTarget,gu,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(i){if(this._enabled&&(this._moved=!1,!Xa(this._element,"leaflet-zoom-anim"))){if(i.touches&&i.touches.length!==1){Di._dragging===this&&this.finishDrag();return}if(!(Di._dragging||i.shiftKey||i.which!==1&&i.button!==1&&!i.touches)&&(Di._dragging=this,this._preventOutline&&no(this._element),to(),ws(),!this._moving)){this.fire("down");var a=i.touches?i.touches[0]:i,l=hu(this._element);this._startPoint=new j(a.clientX,a.clientY),this._startPos=hn(this._element),this._parentScale=so(l);var c=i.type==="mousedown";It(document,c?"mousemove":"touchmove",this._onMove,this),It(document,c?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(i){if(this._enabled){if(i.touches&&i.touches.length>1){this._moved=!0;return}var a=i.touches&&i.touches.length===1?i.touches[0]:i,l=new j(a.clientX,a.clientY)._subtract(this._startPoint);!l.x&&!l.y||Math.abs(l.x)+Math.abs(l.y)g&&(w=B,g=D);g>l&&(a[w]=1,mo(i,a,l,c,w),mo(i,a,l,w,m))}function Em(i,a){for(var l=[i[0]],c=1,m=0,g=i.length;ca&&(l.push(i[c]),m=c);return ma.max.x&&(l|=2),i.ya.max.y&&(l|=8),l}function km(i,a){var l=a.x-i.x,c=a.y-i.y;return l*l+c*c}function Ss(i,a,l,c){var m=a.x,g=a.y,w=l.x-m,B=l.y-g,D=w*w+B*B,Y;return D>0&&(Y=((i.x-m)*w+(i.y-g)*B)/D,Y>1?(m=l.x,g=l.y):Y>0&&(m+=w*Y,g+=B*Y)),w=i.x-m,B=i.y-g,c?w*w+B*B:new j(m,g)}function We(i){return!C(i[0])||typeof i[0][0]!="object"&&typeof i[0][0]<"u"}function Pu(i){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),We(i)}function Tu(i,a){var l,c,m,g,w,B,D,Y;if(!i||i.length===0)throw new Error("latlngs not passed");We(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var _t=ct([0,0]),Tt=zt(i),Ft=Tt.getNorthWest().distanceTo(Tt.getSouthWest())*Tt.getNorthEast().distanceTo(Tt.getNorthWest());Ft<1700&&(_t=fo(i));var Ae=i.length,fe=[];for(l=0;lc){D=(g-c)/m,Y=[B.x-D*(B.x-w.x),B.y-D*(B.y-w.y)];break}var ze=a.unproject(ot(Y));return ct([ze.lat+_t.lat,ze.lng+_t.lng])}var Am={__proto__:null,simplify:xu,pointToSegmentDistance:Mu,closestPointOnSegment:Lm,clipSegment:Cu,_getEdgeIntersection:Mr,_getBitCode:dn,_sqClosestPointOnSegment:Ss,isFlat:We,_flat:Pu,polylineCenter:Tu},vo={project:function(i){return new j(i.lng,i.lat)},unproject:function(i){return new Mt(i.y,i.x)},bounds:new bt([-180,-90],[180,90])},_o={R:6378137,R_MINOR:6356752314245179e-9,bounds:new bt([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(i){var a=Math.PI/180,l=this.R,c=i.lat*a,m=this.R_MINOR/l,g=Math.sqrt(1-m*m),w=g*Math.sin(c),B=Math.tan(Math.PI/4-c/2)/Math.pow((1-w)/(1+w),g/2);return c=-l*Math.log(Math.max(B,1e-10)),new j(i.lng*a*l,c)},unproject:function(i){for(var a=180/Math.PI,l=this.R,c=this.R_MINOR/l,m=Math.sqrt(1-c*c),g=Math.exp(-i.y/l),w=Math.PI/2-2*Math.atan(g),B=0,D=.1,Y;B<15&&Math.abs(D)>1e-7;B++)Y=m*Math.sin(w),Y=Math.pow((1-Y)/(1+Y),m/2),D=Math.PI/2-2*Math.atan(g*Y)-w,w+=D;return new Mt(w*a,i.x*a/l)}},Om={__proto__:null,LonLat:vo,Mercator:_o,SphericalMercator:Pe},Im=s({},pe,{code:"EPSG:3395",projection:_o,transformation:function(){var i=.5/(Math.PI*_o.R);return M(i,.5,-i,.5)}()}),Lu=s({},pe,{code:"EPSG:4326",projection:vo,transformation:M(1/180,1,-1/180,.5)}),Rm=s({},Ht,{projection:vo,transformation:M(1,0,-1,0),scale:function(i){return Math.pow(2,i)},zoom:function(i){return Math.log(i)/Math.LN2},distance:function(i,a){var l=a.lng-i.lng,c=a.lat-i.lat;return Math.sqrt(l*l+c*c)},infinite:!0});Ht.Earth=pe,Ht.EPSG3395=Im,Ht.EPSG3857=E,Ht.EPSG900913=H,Ht.EPSG4326=Lu,Ht.Simple=Rm;var si=U.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(i){return i.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(i){return i&&i.removeLayer(this),this},getPane:function(i){return this._map.getPane(i?this.options[i]||i:this.options.pane)},addInteractiveTarget:function(i){return this._map._targets[f(i)]=this,this},removeInteractiveTarget:function(i){return delete this._map._targets[f(i)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(i){var a=i.target;if(a.hasLayer(this)){if(this._map=a,this._zoomAnimated=a._zoomAnimated,this.getEvents){var l=this.getEvents();a.on(l,this),this.once("remove",function(){a.off(l,this)},this)}this.onAdd(a),this.fire("add"),a.fire("layeradd",{layer:this})}}});Zt.include({addLayer:function(i){if(!i._layerAdd)throw new Error("The provided object is not a Layer.");var a=f(i);return this._layers[a]?this:(this._layers[a]=i,i._mapToAdd=this,i.beforeAdd&&i.beforeAdd(this),this.whenReady(i._layerAdd,i),this)},removeLayer:function(i){var a=f(i);return this._layers[a]?(this._loaded&&i.onRemove(this),delete this._layers[a],this._loaded&&(this.fire("layerremove",{layer:i}),i.fire("remove")),i._map=i._mapToAdd=null,this):this},hasLayer:function(i){return f(i)in this._layers},eachLayer:function(i,a){for(var l in this._layers)i.call(a,this._layers[l]);return this},_addLayers:function(i){i=i?C(i)?i:[i]:[];for(var a=0,l=i.length;athis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&a[0]instanceof Mt&&a[0].equals(a[l-1])&&a.pop(),a},_setLatLngs:function(i){Ei.prototype._setLatLngs.call(this,i),We(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return We(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var i=this._renderer._bounds,a=this.options.weight,l=new j(a,a);if(i=new bt(i.min.subtract(l),i.max.add(l)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}for(var c=0,m=this._rings.length,g;ci.y!=m.y>i.y&&i.x<(m.x-c.x)*(i.y-c.y)/(m.y-c.y)+c.x&&(a=!a);return a||Ei.prototype._containsPoint.call(this,i,!0)}});function Zm(i,a){return new $n(i,a)}var ki=Si.extend({initialize:function(i,a){x(this,a),this._layers={},i&&this.addData(i)},addData:function(i){var a=C(i)?i:i.features,l,c,m;if(a){for(l=0,c=a.length;l0&&m.push(m[0].slice()),m}function Dn(i,a){return i.feature?s({},i.feature,{geometry:a}):Sr(a)}function Sr(i){return i.type==="Feature"||i.type==="FeatureCollection"?i:{type:"Feature",properties:{},geometry:i}}var bo={toGeoJSON:function(i){return Dn(this,{type:"Point",coordinates:yo(this.getLatLng(),i)})}};wr.include(bo),po.include(bo),Cr.include(bo),Ei.include({toGeoJSON:function(i){var a=!We(this._latlngs),l=Lr(this._latlngs,a?1:0,!1,i);return Dn(this,{type:(a?"Multi":"")+"LineString",coordinates:l})}}),$n.include({toGeoJSON:function(i){var a=!We(this._latlngs),l=a&&!We(this._latlngs[0]),c=Lr(this._latlngs,l?2:a?1:0,!0,i);return a||(c=[c]),Dn(this,{type:(l?"Multi":"")+"Polygon",coordinates:c})}}),qn.include({toMultiPoint:function(i){var a=[];return this.eachLayer(function(l){a.push(l.toGeoJSON(i).geometry.coordinates)}),Dn(this,{type:"MultiPoint",coordinates:a})},toGeoJSON:function(i){var a=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(a==="MultiPoint")return this.toMultiPoint(i);var l=a==="GeometryCollection",c=[];return this.eachLayer(function(m){if(m.toGeoJSON){var g=m.toGeoJSON(i);if(l)c.push(g.geometry);else{var w=Sr(g);w.type==="FeatureCollection"?c.push.apply(c,w.features):c.push(w)}}}),l?Dn(this,{geometries:c,type:"GeometryCollection"}):{type:"FeatureCollection",features:c}}});function ku(i,a){return new ki(i,a)}var jm=ku,Er=si.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(i,a,l){this._url=i,this._bounds=zt(a),x(this,l)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Nt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){te(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(i){return this.options.opacity=i,this._image&&this._updateOpacity(),this},setStyle:function(i){return i.opacity&&this.setOpacity(i.opacity),this},bringToFront:function(){return this._map&&Bn(this._image),this},bringToBack:function(){return this._map&&zn(this._image),this},setUrl:function(i){return this._url=i,this._image&&(this._image.src=i),this},setBounds:function(i){return this._bounds=zt(i),this._map&&this._reset(),this},getEvents:function(){var i={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var i=this._url.tagName==="IMG",a=this._image=i?this._url:Vt("img");if(Nt(a,"leaflet-image-layer"),this._zoomAnimated&&Nt(a,"leaflet-zoom-animated"),this.options.className&&Nt(a,this.options.className),a.onselectstart=_,a.onmousemove=_,a.onload=u(this.fire,this,"load"),a.onerror=u(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),i){this._url=a.src;return}a.src=this._url,a.alt=this.options.alt},_animateZoom:function(i){var a=this._map.getZoomScale(i.zoom),l=this._map._latLngBoundsToNewLayerBounds(this._bounds,i.zoom,i.center).min;un(this._image,l,a)},_reset:function(){var i=this._image,a=new bt(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),l=a.getSize();ae(i,a.min),i.style.width=l.x+"px",i.style.height=l.y+"px"},_updateOpacity:function(){He(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 i=this.options.errorOverlayUrl;i&&this._url!==i&&(this._url=i,this._image.src=i)},getCenter:function(){return this._bounds.getCenter()}}),Vm=function(i,a,l){return new Er(i,a,l)},Au=Er.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var i=this._url.tagName==="VIDEO",a=this._image=i?this._url:Vt("video");if(Nt(a,"leaflet-image-layer"),this._zoomAnimated&&Nt(a,"leaflet-zoom-animated"),this.options.className&&Nt(a,this.options.className),a.onselectstart=_,a.onmousemove=_,a.onloadeddata=u(this.fire,this,"load"),i){for(var l=a.getElementsByTagName("source"),c=[],m=0;m0?c:[a.src];return}C(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(a.style,"objectFit")&&(a.style.objectFit="fill"),a.autoplay=!!this.options.autoplay,a.loop=!!this.options.loop,a.muted=!!this.options.muted,a.playsInline=!!this.options.playsInline;for(var g=0;gm?(a.height=m+"px",Nt(i,g)):ne(i,g),this._containerWidth=this._container.offsetWidth},_animateZoom:function(i){var a=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center),l=this._getAnchor();ae(this._container,a.add(l))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var i=this._map,a=parseInt(Ms(this._container,"marginBottom"),10)||0,l=this._container.offsetHeight+a,c=this._containerWidth,m=new j(this._containerLeft,-l-this._containerBottom);m._add(hn(this._container));var g=i.layerPointToContainerPoint(m),w=ot(this.options.autoPanPadding),B=ot(this.options.autoPanPaddingTopLeft||w),D=ot(this.options.autoPanPaddingBottomRight||w),Y=i.getSize(),_t=0,Tt=0;g.x+c+D.x>Y.x&&(_t=g.x+c-Y.x+D.x),g.x-_t-B.x<0&&(_t=g.x-B.x),g.y+l+D.y>Y.y&&(Tt=g.y+l-Y.y+D.y),g.y-Tt-B.y<0&&(Tt=g.y-B.y),(_t||Tt)&&(this.options.keepInView&&(this._autopanning=!0),i.fire("autopanstart").panBy([_t,Tt]))}},_getAnchor:function(){return ot(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Um=function(i,a){return new kr(i,a)};Zt.mergeOptions({closePopupOnClick:!0}),Zt.include({openPopup:function(i,a,l){return this._initOverlay(kr,i,a,l).openOn(this),this},closePopup:function(i){return i=arguments.length?i:this._popup,i&&i.close(),this}}),si.include({bindPopup:function(i,a){return this._popup=this._initOverlay(kr,this._popup,i,a),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(i){return this._popup&&(this instanceof Si||(this._popup._source=this),this._popup._prepareOpen(i||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(i){return this._popup&&this._popup.setContent(i),this},getPopup:function(){return this._popup},_openPopup:function(i){if(!(!this._popup||!this._map)){fn(i);var a=i.layer||i.target;if(this._popup._source===a&&!(a instanceof Zi)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(i.latlng);return}this._popup._source=a,this.openPopup(i.latlng)}},_movePopup:function(i){this._popup.setLatLng(i.latlng)},_onKeyPress:function(i){i.originalEvent.keyCode===13&&this._openPopup(i)}});var Ar=pi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(i){pi.prototype.onAdd.call(this,i),this.setOpacity(this.options.opacity),i.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(i){pi.prototype.onRemove.call(this,i),i.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var i=pi.prototype.getEvents.call(this);return this.options.permanent||(i.preclick=this.close),i},_initLayout:function(){var i="leaflet-tooltip",a=i+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Vt("div",a),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+f(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(i){var a,l,c=this._map,m=this._container,g=c.latLngToContainerPoint(c.getCenter()),w=c.layerPointToContainerPoint(i),B=this.options.direction,D=m.offsetWidth,Y=m.offsetHeight,_t=ot(this.options.offset),Tt=this._getAnchor();B==="top"?(a=D/2,l=Y):B==="bottom"?(a=D/2,l=0):B==="center"?(a=D/2,l=Y/2):B==="right"?(a=0,l=Y/2):B==="left"?(a=D,l=Y/2):w.xthis.options.maxZoom||lc?this._retainParent(m,g,w,c):!1)},_retainChildren:function(i,a,l,c){for(var m=2*i;m<2*i+2;m++)for(var g=2*a;g<2*a+2;g++){var w=new j(m,g);w.z=l+1;var B=this._tileCoordsToKey(w),D=this._tiles[B];if(D&&D.active){D.retain=!0;continue}else D&&D.loaded&&(D.retain=!0);l+1this.options.maxZoom||this.options.minZoom!==void 0&&m1){this._setView(i,l);return}for(var Tt=m.min.y;Tt<=m.max.y;Tt++)for(var Ft=m.min.x;Ft<=m.max.x;Ft++){var Ae=new j(Ft,Tt);if(Ae.z=this._tileZoom,!!this._isValidTile(Ae)){var fe=this._tiles[this._tileCoordsToKey(Ae)];fe?fe.current=!0:w.push(Ae)}}if(w.sort(function(ze,jn){return ze.distanceTo(g)-jn.distanceTo(g)}),w.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ue=document.createDocumentFragment();for(Ft=0;Ftl.max.x)||!a.wrapLat&&(i.yl.max.y))return!1}if(!this.options.bounds)return!0;var c=this._tileCoordsToBounds(i);return zt(this.options.bounds).overlaps(c)},_keyToBounds:function(i){return this._tileCoordsToBounds(this._keyToTileCoords(i))},_tileCoordsToNwSe:function(i){var a=this._map,l=this.getTileSize(),c=i.scaleBy(l),m=c.add(l),g=a.unproject(c,i.z),w=a.unproject(m,i.z);return[g,w]},_tileCoordsToBounds:function(i){var a=this._tileCoordsToNwSe(i),l=new St(a[0],a[1]);return this.options.noWrap||(l=this._map.wrapLatLngBounds(l)),l},_tileCoordsToKey:function(i){return i.x+":"+i.y+":"+i.z},_keyToTileCoords:function(i){var a=i.split(":"),l=new j(+a[0],+a[1]);return l.z=+a[2],l},_removeTile:function(i){var a=this._tiles[i];a&&(te(a.el),delete this._tiles[i],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(i)}))},_initTile:function(i){Nt(i,"leaflet-tile");var a=this.getTileSize();i.style.width=a.x+"px",i.style.height=a.y+"px",i.onselectstart=_,i.onmousemove=_,xt.ielt9&&this.options.opacity<1&&He(i,this.options.opacity)},_addTile:function(i,a){var l=this._getTilePos(i),c=this._tileCoordsToKey(i),m=this.createTile(this._wrapCoords(i),u(this._tileReady,this,i));this._initTile(m),this.createTile.length<2&&W(u(this._tileReady,this,i,null,m)),ae(m,l),this._tiles[c]={el:m,coords:i,current:!0},a.appendChild(m),this.fire("tileloadstart",{tile:m,coords:i})},_tileReady:function(i,a,l){a&&this.fire("tileerror",{error:a,tile:l,coords:i});var c=this._tileCoordsToKey(i);l=this._tiles[c],l&&(l.loaded=+new Date,this._map._fadeAnimated?(He(l.el,0),P(this._fadeFrame),this._fadeFrame=W(this._updateOpacity,this)):(l.active=!0,this._pruneTiles()),a||(Nt(l.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:l.el,coords:i})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),xt.ielt9||!this._map._fadeAnimated?W(this._pruneTiles,this):setTimeout(u(this._pruneTiles,this),250)))},_getTilePos:function(i){return i.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(i){var a=new j(this._wrapX?v(i.x,this._wrapX):i.x,this._wrapY?v(i.y,this._wrapY):i.y);return a.z=i.z,a},_pxBoundsToTileRange:function(i){var a=this.getTileSize();return new bt(i.min.unscaleBy(a).floor(),i.max.unscaleBy(a).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var i in this._tiles)if(!this._tiles[i].loaded)return!1;return!0}});function Qm(i){return new ks(i)}var Zn=ks.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(i,a){this._url=i,a=x(this,a),a.detectRetina&&xt.retina&&a.maxZoom>0?(a.tileSize=Math.floor(a.tileSize/2),a.zoomReverse?(a.zoomOffset--,a.minZoom=Math.min(a.maxZoom,a.minZoom+1)):(a.zoomOffset++,a.maxZoom=Math.max(a.minZoom,a.maxZoom-1)),a.minZoom=Math.max(0,a.minZoom)):a.zoomReverse?a.minZoom=Math.min(a.maxZoom,a.minZoom):a.maxZoom=Math.max(a.minZoom,a.maxZoom),typeof a.subdomains=="string"&&(a.subdomains=a.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(i,a){return this._url===i&&a===void 0&&(a=!0),this._url=i,a||this.redraw(),this},createTile:function(i,a){var l=document.createElement("img");return It(l,"load",u(this._tileOnLoad,this,a,l)),It(l,"error",u(this._tileOnError,this,a,l)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(l.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(l.referrerPolicy=this.options.referrerPolicy),l.alt="",l.src=this.getTileUrl(i),l},getTileUrl:function(i){var a={r:xt.retina?"@2x":"",s:this._getSubdomain(i),x:i.x,y:i.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var l=this._globalTileRange.max.y-i.y;this.options.tms&&(a.y=l),a["-y"]=l}return S(this._url,s(a,this.options))},_tileOnLoad:function(i,a){xt.ielt9?setTimeout(u(i,this,null,a),0):i(null,a)},_tileOnError:function(i,a,l){var c=this.options.errorTileUrl;c&&a.getAttribute("src")!==c&&(a.src=c),i(l,a)},_onTileRemove:function(i){i.tile.onload=null},_getZoomForUrl:function(){var i=this._tileZoom,a=this.options.maxZoom,l=this.options.zoomReverse,c=this.options.zoomOffset;return l&&(i=a-i),i+c},_getSubdomain:function(i){var a=Math.abs(i.x+i.y)%this.options.subdomains.length;return this.options.subdomains[a]},_abortLoading:function(){var i,a;for(i in this._tiles)if(this._tiles[i].coords.z!==this._tileZoom&&(a=this._tiles[i].el,a.onload=_,a.onerror=_,!a.complete)){a.src=q;var l=this._tiles[i].coords;te(a),delete this._tiles[i],this.fire("tileabort",{tile:a,coords:l})}},_removeTile:function(i){var a=this._tiles[i];if(a)return a.el.setAttribute("src",q),ks.prototype._removeTile.call(this,i)},_tileReady:function(i,a,l){if(!(!this._map||l&&l.getAttribute("src")===q))return ks.prototype._tileReady.call(this,i,a,l)}});function Ru(i,a){return new Zn(i,a)}var Nu=Zn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(i,a){this._url=i;var l=s({},this.defaultWmsParams);for(var c in a)c in this.options||(l[c]=a[c]);a=x(this,a);var m=a.detectRetina&&xt.retina?2:1,g=this.getTileSize();l.width=g.x*m,l.height=g.y*m,this.wmsParams=l},onAdd:function(i){this._crs=this.options.crs||i.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var a=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[a]=this._crs.code,Zn.prototype.onAdd.call(this,i)},getTileUrl:function(i){var a=this._tileCoordsToNwSe(i),l=this._crs,c=G(l.project(a[0]),l.project(a[1])),m=c.min,g=c.max,w=(this._wmsVersion>=1.3&&this._crs===Lu?[m.y,m.x,g.y,g.x]:[m.x,m.y,g.x,g.y]).join(","),B=Zn.prototype.getTileUrl.call(this,i);return B+T(this.wmsParams,B,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+w},setParams:function(i,a){return s(this.wmsParams,i),a||this.redraw(),this}});function Xm(i,a){return new Nu(i,a)}Zn.WMS=Nu,Ru.wms=Xm;var Ai=si.extend({options:{padding:.1},initialize:function(i){x(this,i),f(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Nt(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 i={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(i.zoomanim=this._onAnimZoom),i},_onAnimZoom:function(i){this._updateTransform(i.center,i.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(i,a){var l=this._map.getZoomScale(a,this._zoom),c=this._map.getSize().multiplyBy(.5+this.options.padding),m=this._map.project(this._center,a),g=c.multiplyBy(-l).add(m).subtract(this._map._getNewPixelOrigin(i,a));xt.any3d?un(this._container,g,l):ae(this._container,g)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var i in this._layers)this._layers[i]._reset()},_onZoomEnd:function(){for(var i in this._layers)this._layers[i]._project()},_updatePaths:function(){for(var i in this._layers)this._layers[i]._update()},_update:function(){var i=this.options.padding,a=this._map.getSize(),l=this._map.containerPointToLayerPoint(a.multiplyBy(-i)).round();this._bounds=new bt(l,l.add(a.multiplyBy(1+i*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Bu=Ai.extend({options:{tolerance:0},getEvents:function(){var i=Ai.prototype.getEvents.call(this);return i.viewprereset=this._onViewPreReset,i},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ai.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var i=this._container=document.createElement("canvas");It(i,"mousemove",this._onMouseMove,this),It(i,"click dblclick mousedown mouseup contextmenu",this._onClick,this),It(i,"mouseout",this._handleMouseOut,this),i._leaflet_disable_events=!0,this._ctx=i.getContext("2d")},_destroyContainer:function(){P(this._redrawRequest),delete this._ctx,te(this._container),Kt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var i;this._redrawBounds=null;for(var a in this._layers)i=this._layers[a],i._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ai.prototype._update.call(this);var i=this._bounds,a=this._container,l=i.getSize(),c=xt.retina?2:1;ae(a,i.min),a.width=c*l.x,a.height=c*l.y,a.style.width=l.x+"px",a.style.height=l.y+"px",xt.retina&&this._ctx.scale(2,2),this._ctx.translate(-i.min.x,-i.min.y),this.fire("update")}},_reset:function(){Ai.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(i){this._updateDashArray(i),this._layers[f(i)]=i;var a=i._order={layer:i,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=a),this._drawLast=a,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(i){this._requestRedraw(i)},_removePath:function(i){var a=i._order,l=a.next,c=a.prev;l?l.prev=c:this._drawLast=c,c?c.next=l:this._drawFirst=l,delete i._order,delete this._layers[f(i)],this._requestRedraw(i)},_updatePath:function(i){this._extendRedrawBounds(i),i._project(),i._update(),this._requestRedraw(i)},_updateStyle:function(i){this._updateDashArray(i),this._requestRedraw(i)},_updateDashArray:function(i){if(typeof i.options.dashArray=="string"){var a=i.options.dashArray.split(/[, ]+/),l=[],c,m;for(m=0;m')}}catch{}return function(i){return document.createElement("<"+i+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Jm={_initContainer:function(){this._container=Vt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ai.prototype._update.call(this),this.fire("update"))},_initPath:function(i){var a=i._container=As("shape");Nt(a,"leaflet-vml-shape "+(this.options.className||"")),a.coordsize="1 1",i._path=As("path"),a.appendChild(i._path),this._updateStyle(i),this._layers[f(i)]=i},_addPath:function(i){var a=i._container;this._container.appendChild(a),i.options.interactive&&i.addInteractiveTarget(a)},_removePath:function(i){var a=i._container;te(a),i.removeInteractiveTarget(a),delete this._layers[f(i)]},_updateStyle:function(i){var a=i._stroke,l=i._fill,c=i.options,m=i._container;m.stroked=!!c.stroke,m.filled=!!c.fill,c.stroke?(a||(a=i._stroke=As("stroke")),m.appendChild(a),a.weight=c.weight+"px",a.color=c.color,a.opacity=c.opacity,c.dashArray?a.dashStyle=C(c.dashArray)?c.dashArray.join(" "):c.dashArray.replace(/( *, *)/g," "):a.dashStyle="",a.endcap=c.lineCap.replace("butt","flat"),a.joinstyle=c.lineJoin):a&&(m.removeChild(a),i._stroke=null),c.fill?(l||(l=i._fill=As("fill")),m.appendChild(l),l.color=c.fillColor||c.color,l.opacity=c.fillOpacity):l&&(m.removeChild(l),i._fill=null)},_updateCircle:function(i){var a=i._point.round(),l=Math.round(i._radius),c=Math.round(i._radiusY||l);this._setPath(i,i._empty()?"M0 0":"AL "+a.x+","+a.y+" "+l+","+c+" 0,"+65535*360)},_setPath:function(i,a){i._path.v=a},_bringToFront:function(i){Bn(i._container)},_bringToBack:function(i){zn(i._container)}},Or=xt.vml?As:X,Os=Ai.extend({_initContainer:function(){this._container=Or("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Or("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){te(this._container),Kt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ai.prototype._update.call(this);var i=this._bounds,a=i.getSize(),l=this._container;(!this._svgSize||!this._svgSize.equals(a))&&(this._svgSize=a,l.setAttribute("width",a.x),l.setAttribute("height",a.y)),ae(l,i.min),l.setAttribute("viewBox",[i.min.x,i.min.y,a.x,a.y].join(" ")),this.fire("update")}},_initPath:function(i){var a=i._path=Or("path");i.options.className&&Nt(a,i.options.className),i.options.interactive&&Nt(a,"leaflet-interactive"),this._updateStyle(i),this._layers[f(i)]=i},_addPath:function(i){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(i._path),i.addInteractiveTarget(i._path)},_removePath:function(i){te(i._path),i.removeInteractiveTarget(i._path),delete this._layers[f(i)]},_updatePath:function(i){i._project(),i._update()},_updateStyle:function(i){var a=i._path,l=i.options;a&&(l.stroke?(a.setAttribute("stroke",l.color),a.setAttribute("stroke-opacity",l.opacity),a.setAttribute("stroke-width",l.weight),a.setAttribute("stroke-linecap",l.lineCap),a.setAttribute("stroke-linejoin",l.lineJoin),l.dashArray?a.setAttribute("stroke-dasharray",l.dashArray):a.removeAttribute("stroke-dasharray"),l.dashOffset?a.setAttribute("stroke-dashoffset",l.dashOffset):a.removeAttribute("stroke-dashoffset")):a.setAttribute("stroke","none"),l.fill?(a.setAttribute("fill",l.fillColor||l.color),a.setAttribute("fill-opacity",l.fillOpacity),a.setAttribute("fill-rule",l.fillRule||"evenodd")):a.setAttribute("fill","none"))},_updatePoly:function(i,a){this._setPath(i,Q(i._parts,a))},_updateCircle:function(i){var a=i._point,l=Math.max(Math.round(i._radius),1),c=Math.max(Math.round(i._radiusY),1)||l,m="a"+l+","+c+" 0 1,0 ",g=i._empty()?"M0 0":"M"+(a.x-l)+","+a.y+m+l*2+",0 "+m+-l*2+",0 ";this._setPath(i,g)},_setPath:function(i,a){i._path.setAttribute("d",a)},_bringToFront:function(i){Bn(i._path)},_bringToBack:function(i){zn(i._path)}});xt.vml&&Os.include(Jm);function qu(i){return xt.svg||xt.vml?new Os(i):null}Zt.include({getRenderer:function(i){var a=i.options.renderer||this._getPaneRenderer(i.options.pane)||this.options.renderer||this._renderer;return a||(a=this._renderer=this._createRenderer()),this.hasLayer(a)||this.addLayer(a),a},_getPaneRenderer:function(i){if(i==="overlayPane"||i===void 0)return!1;var a=this._paneRenderers[i];return a===void 0&&(a=this._createRenderer({pane:i}),this._paneRenderers[i]=a),a},_createRenderer:function(i){return this.options.preferCanvas&&zu(i)||qu(i)}});var Fu=$n.extend({initialize:function(i,a){$n.prototype.initialize.call(this,this._boundsToLatLngs(i),a)},setBounds:function(i){return this.setLatLngs(this._boundsToLatLngs(i))},_boundsToLatLngs:function(i){return i=zt(i),[i.getSouthWest(),i.getNorthWest(),i.getNorthEast(),i.getSouthEast()]}});function Ym(i,a){return new Fu(i,a)}Os.create=Or,Os.pointsToPath=Q,ki.geometryToLayer=Pr,ki.coordsToLatLng=go,ki.coordsToLatLngs=Tr,ki.latLngToCoords=yo,ki.latLngsToCoords=Lr,ki.getFeature=Dn,ki.asFeature=Sr,Zt.mergeOptions({boxZoom:!0});var $u=_i.extend({initialize:function(i){this._map=i,this._container=i._container,this._pane=i._panes.overlayPane,this._resetStateTimeout=0,i.on("unload",this._destroy,this)},addHooks:function(){It(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Kt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){te(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(i){if(!i.shiftKey||i.which!==1&&i.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),ws(),to(),this._startPoint=this._map.mouseEventToContainerPoint(i),It(document,{contextmenu:fn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(i){this._moved||(this._moved=!0,this._box=Vt("div","leaflet-zoom-box",this._container),Nt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(i);var a=new bt(this._point,this._startPoint),l=a.getSize();ae(this._box,a.min),this._box.style.width=l.x+"px",this._box.style.height=l.y+"px"},_finish:function(){this._moved&&(te(this._box),ne(this._container,"leaflet-crosshair")),Cs(),eo(),Kt(document,{contextmenu:fn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(i){if(!(i.which!==1&&i.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(u(this._resetState,this),0);var a=new St(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(a).fire("boxzoomend",{boxZoomBounds:a})}},_onKeyDown:function(i){i.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Zt.addInitHook("addHandler","boxZoom",$u),Zt.mergeOptions({doubleClickZoom:!0});var Du=_i.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(i){var a=this._map,l=a.getZoom(),c=a.options.zoomDelta,m=i.originalEvent.shiftKey?l-c:l+c;a.options.doubleClickZoom==="center"?a.setZoom(m):a.setZoomAround(i.containerPoint,m)}});Zt.addInitHook("addHandler","doubleClickZoom",Du),Zt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Zu=_i.extend({addHooks:function(){if(!this._draggable){var i=this._map;this._draggable=new Di(i._mapPane,i._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),i.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),i.on("zoomend",this._onZoomEnd,this),i.whenReady(this._onZoomEnd,this))}Nt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ne(this._map._container,"leaflet-grab"),ne(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 i=this._map;if(i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var a=zt(this._map.options.maxBounds);this._offsetLimit=G(this._map.latLngToContainerPoint(a.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(a.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(i){if(this._map.options.inertia){var a=this._lastTime=+new Date,l=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(l),this._times.push(a),this._prunePositions(a)}this._map.fire("move",i).fire("drag",i)},_prunePositions:function(i){for(;this._positions.length>1&&i-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var i=this._map.getSize().divideBy(2),a=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=a.subtract(i).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(i,a){return i-(i-a)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var i=this._draggable._newPos.subtract(this._draggable._startPos),a=this._offsetLimit;i.xa.max.x&&(i.x=this._viscousLimit(i.x,a.max.x)),i.y>a.max.y&&(i.y=this._viscousLimit(i.y,a.max.y)),this._draggable._newPos=this._draggable._startPos.add(i)}},_onPreDragWrap:function(){var i=this._worldWidth,a=Math.round(i/2),l=this._initialWorldOffset,c=this._draggable._newPos.x,m=(c-a+l)%i+a-l,g=(c+a+l)%i-a-l,w=Math.abs(m+l)0?g:-g))-a;this._delta=0,this._startTime=null,w&&(i.options.scrollWheelZoom==="center"?i.setZoom(a+w):i.setZoomAround(this._lastMousePos,a+w))}});Zt.addInitHook("addHandler","scrollWheelZoom",Vu);var tv=600;Zt.mergeOptions({tapHold:xt.touchNative&&xt.safari&&xt.mobile,tapTolerance:15});var Hu=_i.extend({addHooks:function(){It(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Kt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(i){if(clearTimeout(this._holdTimeout),i.touches.length===1){var a=i.touches[0];this._startPos=this._newPos=new j(a.clientX,a.clientY),this._holdTimeout=setTimeout(u(function(){this._cancel(),this._isTapValid()&&(It(document,"touchend",ge),It(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",a))},this),tv),It(document,"touchend touchcancel contextmenu",this._cancel,this),It(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function i(){Kt(document,"touchend",ge),Kt(document,"touchend touchcancel",i)},_cancel:function(){clearTimeout(this._holdTimeout),Kt(document,"touchend touchcancel contextmenu",this._cancel,this),Kt(document,"touchmove",this._onMove,this)},_onMove:function(i){var a=i.touches[0];this._newPos=new j(a.clientX,a.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(i,a){var l=new MouseEvent(i,{bubbles:!0,cancelable:!0,view:window,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX,clientY:a.clientY});l._simulated=!0,a.target.dispatchEvent(l)}});Zt.addInitHook("addHandler","tapHold",Hu),Zt.mergeOptions({touchZoom:xt.touch,bounceAtZoomLimits:!0});var Wu=_i.extend({addHooks:function(){Nt(this._map._container,"leaflet-touch-zoom"),It(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ne(this._map._container,"leaflet-touch-zoom"),Kt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(i){var a=this._map;if(!(!i.touches||i.touches.length!==2||a._animatingZoom||this._zooming)){var l=a.mouseEventToContainerPoint(i.touches[0]),c=a.mouseEventToContainerPoint(i.touches[1]);this._centerPoint=a.getSize()._divideBy(2),this._startLatLng=a.containerPointToLatLng(this._centerPoint),a.options.touchZoom!=="center"&&(this._pinchStartLatLng=a.containerPointToLatLng(l.add(c)._divideBy(2))),this._startDist=l.distanceTo(c),this._startZoom=a.getZoom(),this._moved=!1,this._zooming=!0,a._stop(),It(document,"touchmove",this._onTouchMove,this),It(document,"touchend touchcancel",this._onTouchEnd,this),ge(i)}},_onTouchMove:function(i){if(!(!i.touches||i.touches.length!==2||!this._zooming)){var a=this._map,l=a.mouseEventToContainerPoint(i.touches[0]),c=a.mouseEventToContainerPoint(i.touches[1]),m=l.distanceTo(c)/this._startDist;if(this._zoom=a.getScaleZoom(m,this._startZoom),!a.options.bounceAtZoomLimits&&(this._zooma.getMaxZoom()&&m>1)&&(this._zoom=a._limitZoom(this._zoom)),a.options.touchZoom==="center"){if(this._center=this._startLatLng,m===1)return}else{var g=l._add(c)._divideBy(2)._subtract(this._centerPoint);if(m===1&&g.x===0&&g.y===0)return;this._center=a.unproject(a.project(this._pinchStartLatLng,this._zoom).subtract(g),this._zoom)}this._moved||(a._moveStart(!0,!1),this._moved=!0),P(this._animRequest);var w=u(a._move,a,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=W(w,this,!0),ge(i)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,P(this._animRequest),Kt(document,"touchmove",this._onTouchMove,this),Kt(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))}});Zt.addInitHook("addHandler","touchZoom",Wu),Zt.BoxZoom=$u,Zt.DoubleClickZoom=Du,Zt.Drag=Zu,Zt.Keyboard=ju,Zt.ScrollWheelZoom=Vu,Zt.TapHold=Hu,Zt.TouchZoom=Wu,n.Bounds=bt,n.Browser=xt,n.CRS=Ht,n.Canvas=Bu,n.Circle=po,n.CircleMarker=Cr,n.Class=z,n.Control=ni,n.DivIcon=Iu,n.DivOverlay=pi,n.DomEvent=gm,n.DomUtil=_m,n.Draggable=Di,n.Evented=U,n.FeatureGroup=Si,n.GeoJSON=ki,n.GridLayer=ks,n.Handler=_i,n.Icon=Fn,n.ImageOverlay=Er,n.LatLng=Mt,n.LatLngBounds=St,n.Layer=si,n.LayerGroup=qn,n.LineUtil=Am,n.Map=Zt,n.Marker=wr,n.Mixin=Pm,n.Path=Zi,n.Point=j,n.PolyUtil=Tm,n.Polygon=$n,n.Polyline=Ei,n.Popup=kr,n.PosAnimation=vu,n.Projection=Om,n.Rectangle=Fu,n.Renderer=Ai,n.SVG=Os,n.SVGOverlay=Ou,n.TileLayer=Zn,n.Tooltip=Ar,n.Transformation=ke,n.Util=$,n.VideoOverlay=Au,n.bind=u,n.bounds=G,n.canvas=zu,n.circle=$m,n.circleMarker=Fm,n.control=Ls,n.divIcon=Km,n.extend=s,n.featureGroup=Bm,n.geoJSON=ku,n.geoJson=jm,n.gridLayer=Qm,n.icon=zm,n.imageOverlay=Vm,n.latLng=ct,n.latLngBounds=zt,n.layerGroup=Nm,n.map=ym,n.marker=qm,n.point=ot,n.polygon=Zm,n.polyline=Dm,n.popup=Um,n.rectangle=Ym,n.setOptions=x,n.stamp=f,n.svg=qu,n.svgOverlay=Wm,n.tileLayer=Ru,n.tooltip=Gm,n.transformation=M,n.version=r,n.videoOverlay=Hm;var ev=window.L;n.noConflict=function(){return window.L=ev,this},window.L=n})})(sl,sl.exports);var Hl=sl.exports;const oi=P0(Hl);function L0(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}var Sn=1,En=2,rs=3,S0=4,rl=5,ic=6378137,E0=6356752314e-3,nc=.0066943799901413165,Us=484813681109536e-20,st=Math.PI/2,k0=.16666666666666666,A0=.04722222222222222,O0=.022156084656084655,dt=1e-10,xe=.017453292519943295,Ci=57.29577951308232,Wt=Math.PI/4,sr=Math.PI*2,se=3.14159265359,$e={};$e.greenwich=0;$e.lisbon=-9.131906111111;$e.paris=2.337229166667;$e.bogota=-74.080916666667;$e.madrid=-3.687938888889;$e.rome=12.452333333333;$e.bern=7.439583333333;$e.jakarta=106.807719444444;$e.ferro=-17.666666666667;$e.brussels=4.367975;$e.stockholm=18.058277777778;$e.athens=23.7163375;$e.oslo=10.722916666667;const I0={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var sc=/[\s_\-\/\(\)]/g;function on(t,e){if(t[e])return t[e];for(var n=Object.keys(t),r=e.toLowerCase().replace(sc,""),s=-1,o,u;++s=this.text.length)return;t=this.text[this.place++]}switch(this.state){case rr:return this.neutral(t);case ld:return this.keyword(t);case ga:return this.quoted(t);case hd:return this.afterquote(t);case ud:return this.number(t);case Wl:return}};Fi.prototype.afterquote=function(t){if(t==='"'){this.word+='"',this.state=ga;return}if(Ha.test(t)){this.word=this.word.trim(),this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in afterquote yet, index '+this.place)};Fi.prototype.afterItem=function(t){if(t===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=rr;return}if(t==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=rr,this.currentObject=this.stack.pop(),this.currentObject||(this.state=Wl);return}};Fi.prototype.number=function(t){if(cd.test(t)){this.word+=t;return}if(Ha.test(t)){this.word=parseFloat(this.word),this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in number yet, index '+this.place)};Fi.prototype.quoted=function(t){if(t==='"'){this.state=hd;return}this.word+=t};Fi.prototype.keyword=function(t){if(B0.test(t)){this.word+=t;return}if(t==="["){var e=[];e.push(this.word),this.level++,this.root===null?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,this.state=rr;return}if(Ha.test(t)){this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in keyword yet, index '+this.place)};Fi.prototype.neutral=function(t){if(N0.test(t)){this.word=t,this.state=ld;return}if(t==='"'){this.word="",this.state=ga;return}if(cd.test(t)){this.word=t,this.state=ud;return}if(Ha.test(t)){this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in neutral yet, index '+this.place)};Fi.prototype.output=function(){for(;this.place0?90:-90),t.lat_ts=t.lat1):!t.lat_ts&&t.lat0&&t.projName==="Polar_Stereographic"&&(t.lat_ts=t.lat0,t.lat0=gi(t.lat0>0?90:-90))}function fd(t){var e=z0(t),n=e.shift(),r=e.shift();e.unshift(["name",r]),e.unshift(["type",n]);var s={};return Kn(e,s),$0(s),s}function Ie(t){var e=this;if(arguments.length===2){var n=arguments[1];typeof n=="string"?n.charAt(0)==="+"?Ie[t]=al(arguments[1]):Ie[t]=fd(arguments[1]):Ie[t]=n}else if(arguments.length===1){if(Array.isArray(t))return t.map(function(r){Array.isArray(r)?Ie.apply(e,r):Ie(r)});if(typeof t=="string"){if(t in Ie)return Ie[t]}else"EPSG"in t?Ie["EPSG:"+t.EPSG]=t:"ESRI"in t?Ie["ESRI:"+t.ESRI]=t:"IAU2000"in t?Ie["IAU2000:"+t.IAU2000]=t:console.log(t);return}}L0(Ie);function D0(t){return typeof t=="string"}function Z0(t){return t in Ie}var j0=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function V0(t){return j0.some(function(e){return t.indexOf(e)>-1})}var H0=["3857","900913","3785","102113"];function W0(t){var e=on(t,"authority");if(e){var n=on(e,"epsg");return n&&H0.indexOf(n)>-1}}function U0(t){var e=on(t,"extension");if(e)return on(e,"proj4")}function G0(t){return t[0]==="+"}function K0(t){if(D0(t)){if(Z0(t))return Ie[t];if(V0(t)){var e=fd(t);if(W0(e))return Ie["EPSG:3857"];var n=U0(e);return n?al(n):e}if(G0(t))return al(t)}else return t}function ac(t,e){t=t||{};var n,r;if(!e)return t;for(r in e)n=e[r],n!==void 0&&(t[r]=n);return t}function Li(t,e,n){var r=t*e;return n/Math.sqrt(1-r*r)}function cr(t){return t<0?-1:1}function pt(t){return Math.abs(t)<=se?t:t-cr(t)*sr}function fi(t,e,n){var r=t*n,s=.5*t;return r=Math.pow((1-r)/(1+r),s),Math.tan(.5*(st-e))/r}function ar(t,e){for(var n=.5*t,r,s,o=st-2*Math.atan(e),u=0;u<=15;u++)if(r=t*Math.sin(o),s=st-2*Math.atan(e*Math.pow((1-r)/(1+r),n))-o,o+=s,Math.abs(s)<=1e-10)return o;return-9999}function Q0(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=Li(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function X0(t){var e=t.x,n=t.y;if(n*Ci>90&&n*Ci<-90&&e*Ci>180&&e*Ci<-180)return null;var r,s;if(Math.abs(Math.abs(n)-st)<=dt)return null;if(this.sphere)r=this.x0+this.a*this.k0*pt(e-this.long0),s=this.y0+this.a*this.k0*Math.log(Math.tan(Wt+.5*n));else{var o=Math.sin(n),u=fi(this.e,n,o);r=this.x0+this.a*this.k0*pt(e-this.long0),s=this.y0-this.a*this.k0*Math.log(u)}return t.x=r,t.y=s,t}function J0(t){var e=t.x-this.x0,n=t.y-this.y0,r,s;if(this.sphere)s=st-2*Math.atan(Math.exp(-n/(this.a*this.k0)));else{var o=Math.exp(-n/(this.a*this.k0));if(s=ar(this.e,o),s===-9999)return null}return r=pt(this.long0+e/(this.a*this.k0)),t.x=r,t.y=s,t}var Y0=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const ty={init:Q0,forward:X0,inverse:J0,names:Y0};function ey(){}function oc(t){return t}var iy=["longlat","identity"];const ny={init:ey,forward:oc,inverse:oc,names:iy};var sy=[ty,ny],ta={},ya=[];function dd(t,e){var n=ya.length;return t.names?(ya[n]=t,t.names.forEach(function(r){ta[r.toLowerCase()]=n}),this):(console.log(e),!0)}function ry(t){if(!t)return!1;var e=t.toLowerCase();if(typeof ta[e]<"u"&&ya[ta[e]])return ya[ta[e]]}function ay(){sy.forEach(dd)}const oy={start:ay,add:dd,get:ry};var kt={};kt.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};kt.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};kt.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};kt.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};kt.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};kt.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};kt.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};kt.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};kt.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};kt.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};kt.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};kt.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};kt.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};kt.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};kt.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};kt.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"};kt.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};kt.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};kt.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};kt.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};kt.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};kt.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};kt.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};kt.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};kt.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};kt.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};kt.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};kt.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};kt.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};kt.hough={a:6378270,rf:297,ellipseName:"Hough"};kt.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};kt.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};kt.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};kt.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};kt.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};kt.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};kt.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};kt.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};kt.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};kt.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};kt.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};kt.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var ly=kt.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};kt.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function uy(t,e,n,r){var s=t*t,o=e*e,u=(s-o)/s,h=0;r?(t*=1-u*(k0+u*(A0+u*O0)),s=t*t,u=0):h=Math.sqrt(u);var f=(s-o)/o;return{es:u,e:h,ep2:f}}function hy(t,e,n,r,s){if(!t){var o=on(kt,r);o||(o=ly),t=o.a,e=o.b,n=o.rf}return n&&!e&&(e=(1-1/n)*t),(n===0||Math.abs(t-e)3&&(h.datum_params[3]!==0||h.datum_params[4]!==0||h.datum_params[5]!==0||h.datum_params[6]!==0)&&(h.datum_type=En,h.datum_params[3]*=Us,h.datum_params[4]*=Us,h.datum_params[5]*=Us,h.datum_params[6]=h.datum_params[6]/1e6+1)),u&&(h.datum_type=rs,h.grids=u),h.a=n,h.b=r,h.es=s,h.ep2=o,h}var md={};function fy(t,e){var n=new DataView(e),r=vy(n),s=_y(n,r);s.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var o=py(n,s,r),u={header:s,subgrids:o};return md[t]=u,u}function dy(t){if(t===void 0)return null;var e=t.split(",");return e.map(my)}function my(t){if(t.length===0)return null;var e=t[0]==="@";return e&&(t=t.slice(1)),t==="null"?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:md[t]||null,isNull:!1}}function Qn(t){return t/3600*Math.PI/180}function vy(t){var e=t.getInt32(8,!1);return e===11?!1:(e=t.getInt32(8,!0),e!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function _y(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:ol(t,56,56+8).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}function ol(t,e,n){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,n)))}function py(t,e,n){for(var r=176,s=[],o=0;o5e-11?!1:t.datum_type===Sn?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:t.datum_type===En?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6]:!0}function vd(t,e,n){var r=t.x,s=t.y,o=t.z?t.z:0,u,h,f,d;if(s<-st&&s>-1.001*st)s=-st;else if(s>st&&s<1.001*st)s=st;else{if(s<-st)return{x:-1/0,y:-1/0,z:t.z};if(s>st)return{x:1/0,y:1/0,z:t.z}}return r>Math.PI&&(r-=2*Math.PI),h=Math.sin(s),d=Math.cos(s),f=h*h,u=n/Math.sqrt(1-e*f),{x:(u+o)*d*Math.cos(r),y:(u+o)*d*Math.sin(r),z:(u*(1-e)+o)*h}}function _d(t,e,n,r){var s=1e-12,o=s*s,u=30,h,f,d,v,_,p,y,b,x,T,R,S,C,A=t.x,q=t.y,Z=t.z?t.z:0,V,N,I;if(h=Math.sqrt(A*A+q*q),f=Math.sqrt(A*A+q*q+Z*Z),h/no&&Cr.y||v>r.x||yh&&Math.abs(f.y)>h);if(u<0)return console.log("Inverse grid shift iterator failed to converge."),r;r.x=pt(o.x+n.ll[0]),r.y=o.y+n.ll[1]}else isNaN(o.x)||(r.x=t.x+o.x,r.y=t.y+o.y);return r}function uc(t,e){var n={x:t.x/e.del[0],y:t.y/e.del[1]},r={x:Math.floor(n.x),y:Math.floor(n.y)},s={x:n.x-1*r.x,y:n.y-1*r.y},o={x:Number.NaN,y:Number.NaN},u;if(r.x<0||r.x>=e.lim[0]||r.y<0||r.y>=e.lim[1])return o;u=r.y*e.lim[0]+r.x;var h={x:e.cvs[u][0],y:e.cvs[u][1]};u++;var f={x:e.cvs[u][0],y:e.cvs[u][1]};u+=e.lim[0];var d={x:e.cvs[u][0],y:e.cvs[u][1]};u--;var v={x:e.cvs[u][0],y:e.cvs[u][1]},_=s.x*s.y,p=s.x*(1-s.y),y=(1-s.x)*(1-s.y),b=(1-s.x)*s.y;return o.x=y*h.x+p*f.x+b*v.x+_*d.x,o.y=y*h.y+p*f.y+b*v.y+_*d.y,o}function hc(t,e,n){var r=n.x,s=n.y,o=n.z||0,u,h,f,d={};for(f=0;f<3;f++)if(!(e&&f===2&&n.z===void 0))switch(f===0?(u=r,"ew".indexOf(t.axis[f])!==-1?h="x":h="y"):f===1?(u=s,"ns".indexOf(t.axis[f])!==-1?h="y":h="x"):(u=o,h="z"),t.axis[f]){case"e":d[h]=u;break;case"w":d[h]=-u;break;case"n":d[h]=u;break;case"s":d[h]=-u;break;case"u":n[h]!==void 0&&(d.z=u);break;case"d":n[h]!==void 0&&(d.z=-u);break;default:return null}return d}function pd(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}function Ty(t){cc(t.x),cc(t.y)}function cc(t){if(typeof Number.isFinite=="function"){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if(typeof t!="number"||t!==t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function Ly(t,e){return(t.datum.datum_type===Sn||t.datum.datum_type===En||t.datum.datum_type===rs)&&e.datumCode!=="WGS84"||(e.datum.datum_type===Sn||e.datum.datum_type===En||e.datum.datum_type===rs)&&t.datumCode!=="WGS84"}function ba(t,e,n,r){var s;Array.isArray(n)?n=pd(n):n={x:n.x,y:n.y,z:n.z,m:n.m};var o=n.z!==void 0;if(Ty(n),t.datum&&e.datum&&Ly(t,e)&&(s=new Ti("WGS84"),n=ba(t,s,n,r),t=s),r&&t.axis!=="enu"&&(n=hc(t,!1,n)),t.projName==="longlat")n={x:n.x*xe,y:n.y*xe,z:n.z||0};else if(t.to_meter&&(n={x:n.x*t.to_meter,y:n.y*t.to_meter,z:n.z||0}),n=t.inverse(n),!n)return;if(t.from_greenwich&&(n.x+=t.from_greenwich),n=Cy(t.datum,e.datum,n),!!n)return e.from_greenwich&&(n={x:n.x-e.from_greenwich,y:n.y,z:n.z||0}),e.projName==="longlat"?n={x:n.x*Ci,y:n.y*Ci,z:n.z||0}:(n=e.forward(n),e.to_meter&&(n={x:n.x/e.to_meter,y:n.y/e.to_meter,z:n.z||0})),r&&e.axis!=="enu"?hc(e,!0,n):(o||delete n.z,n)}var fc=Ti("WGS84");function Bo(t,e,n,r){var s,o,u;return Array.isArray(n)?(s=ba(t,e,n,r)||{x:NaN,y:NaN},n.length>2?typeof t.name<"u"&&t.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"?typeof s.z=="number"?[s.x,s.y,s.z].concat(n.splice(3)):[s.x,s.y,n[2]].concat(n.splice(3)):[s.x,s.y].concat(n.splice(2)):[s.x,s.y]):(o=ba(t,e,n,r),u=Object.keys(n),u.length===2||u.forEach(function(h){if(typeof t.name<"u"&&t.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"){if(h==="x"||h==="y"||h==="z")return}else if(h==="x"||h==="y")return;o[h]=n[h]}),o)}function dc(t){return t instanceof Ti?t:t.oProj?t.oProj:Ti(t)}function Ve(t,e,n){t=dc(t);var r=!1,s;return typeof e>"u"?(e=t,t=fc,r=!0):(typeof e.x<"u"||Array.isArray(e))&&(n=e,e=t,t=fc,r=!0),e=dc(e),n?Bo(t,e,n):(s={forward:function(o,u){return Bo(t,e,o,u)},inverse:function(o,u){return Bo(e,t,o,u)}},r&&(s.oProj=e),s)}var mc=6,gd="AJSAJS",yd="AFAFAF",Xn=65,qe=73,Xe=79,qs=86,Fs=90;const Sy={forward:bd,inverse:Ey,toPoint:xd};function bd(t,e){return e=e||5,Oy(ky({lat:t[1],lon:t[0]}),e)}function Ey(t){var e=Ul(wd(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function xd(t){var e=Ul(wd(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function zo(t){return t*(Math.PI/180)}function vc(t){return 180*(t/Math.PI)}function ky(t){var e=t.lat,n=t.lon,r=6378137,s=.00669438,o=.9996,u,h,f,d,v,_,p,y=zo(e),b=zo(n),x,T;T=Math.floor((n+180)/6)+1,n===180&&(T=60),e>=56&&e<64&&n>=3&&n<12&&(T=32),e>=72&&e<84&&(n>=0&&n<9?T=31:n>=9&&n<21?T=33:n>=21&&n<33?T=35:n>=33&&n<42&&(T=37)),u=(T-1)*6-180+3,x=zo(u),h=s/(1-s),f=r/Math.sqrt(1-s*Math.sin(y)*Math.sin(y)),d=Math.tan(y)*Math.tan(y),v=h*Math.cos(y)*Math.cos(y),_=Math.cos(y)*(b-x),p=r*((1-s/4-3*s*s/64-5*s*s*s/256)*y-(3*s/8+3*s*s/32+45*s*s*s/1024)*Math.sin(2*y)+(15*s*s/256+45*s*s*s/1024)*Math.sin(4*y)-35*s*s*s/3072*Math.sin(6*y));var R=o*f*(_+(1-d+v)*_*_*_/6+(5-18*d+d*d+72*v-58*h)*_*_*_*_*_/120)+5e5,S=o*(p+f*Math.tan(y)*(_*_/2+(5-d+9*v+4*v*v)*_*_*_*_/24+(61-58*d+d*d+600*v-330*h)*_*_*_*_*_*_/720));return e<0&&(S+=1e7),{northing:Math.round(S),easting:Math.round(R),zoneNumber:T,zoneLetter:Ay(e)}}function Ul(t){var e=t.northing,n=t.easting,r=t.zoneLetter,s=t.zoneNumber;if(s<0||s>60)return null;var o=.9996,u=6378137,h=.00669438,f,d=(1-Math.sqrt(1-h))/(1+Math.sqrt(1-h)),v,_,p,y,b,x,T,R,S,C=n-5e5,A=e;r<"N"&&(A-=1e7),T=(s-1)*6-180+3,f=h/(1-h),x=A/o,R=x/(u*(1-h/4-3*h*h/64-5*h*h*h/256)),S=R+(3*d/2-27*d*d*d/32)*Math.sin(2*R)+(21*d*d/16-55*d*d*d*d/32)*Math.sin(4*R)+151*d*d*d/96*Math.sin(6*R),v=u/Math.sqrt(1-h*Math.sin(S)*Math.sin(S)),_=Math.tan(S)*Math.tan(S),p=f*Math.cos(S)*Math.cos(S),y=u*(1-h)/Math.pow(1-h*Math.sin(S)*Math.sin(S),1.5),b=C/(v*o);var q=S-v*Math.tan(S)/y*(b*b/2-(5+3*_+10*p-4*p*p-9*f)*b*b*b*b/24+(61+90*_+298*p+45*_*_-252*f-3*p*p)*b*b*b*b*b*b/720);q=vc(q);var Z=(b-(1+2*_+p)*b*b*b/6+(5-2*p+28*_-3*p*p+8*f+24*_*_)*b*b*b*b*b/120)/Math.cos(S);Z=T+vc(Z);var V;if(t.accuracy){var N=Ul({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});V={top:N.lat,right:N.lon,bottom:q,left:Z}}else V={lat:q,lon:Z};return V}function Ay(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function Oy(t,e){var n="00000"+t.easting,r="00000"+t.northing;return t.zoneNumber+t.zoneLetter+Iy(t.easting,t.northing,t.zoneNumber)+n.substr(n.length-5,e)+r.substr(r.length-5,e)}function Iy(t,e,n){var r=Md(n),s=Math.floor(t/1e5),o=Math.floor(e/1e5)%20;return Ry(s,o,r)}function Md(t){var e=t%mc;return e===0&&(e=mc),e}function Ry(t,e,n){var r=n-1,s=gd.charCodeAt(r),o=yd.charCodeAt(r),u=s+t-1,h=o+e,f=!1;u>Fs&&(u=u-Fs+Xn-1,f=!0),(u===qe||sqe||(u>qe||sXe||(u>Xe||sFs&&(u=u-Fs+Xn-1),h>qs?(h=h-qs+Xn-1,f=!0):f=!1,(h===qe||oqe||(h>qe||oXe||(h>Xe||oqs&&(h=h-qs+Xn-1);var d=String.fromCharCode(u)+String.fromCharCode(h);return d}function wd(t){if(t&&t.length===0)throw"MGRSPoint coverting from nothing";for(var e=t.length,n=null,r="",s,o=0;!/[A-Z]/.test(s=t.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+t;r+=s,o++}var u=parseInt(r,10);if(o===0||o+3>e)throw"MGRSPoint bad conversion from: "+t;var h=t.charAt(o++);if(h<="A"||h==="B"||h==="Y"||h>="Z"||h==="I"||h==="O")throw"MGRSPoint zone letter "+h+" not handled: "+t;n=t.substring(o,o+=2);for(var f=Md(u),d=Ny(n.charAt(0),f),v=By(n.charAt(1),f);v0&&(x=1e5/Math.pow(10,p),T=t.substring(o,o+p),y=parseFloat(T)*x,R=t.substring(o+p),b=parseFloat(R)*x),S=y+d,C=b+v,{easting:S,northing:C,zoneLetter:h,zoneNumber:u,accuracy:x}}function Ny(t,e){for(var n=gd.charCodeAt(e-1),r=1e5,s=!1;n!==t.charCodeAt(0);){if(n++,n===qe&&n++,n===Xe&&n++,n>Fs){if(s)throw"Bad character: "+t;n=Xn,s=!0}r+=1e5}return r}function By(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var n=yd.charCodeAt(e-1),r=0,s=!1;n!==t.charCodeAt(0);){if(n++,n===qe&&n++,n===Xe&&n++,n>qs){if(s)throw"Bad character: "+t;n=Xn,s=!0}r+=1e5}return r}function zy(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function fs(t,e,n){if(!(this instanceof fs))return new fs(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if(typeof t=="object")this.x=t.x,this.y=t.y,this.z=t.z||0;else if(typeof t=="string"&&typeof e>"u"){var r=t.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=t,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}fs.fromMGRS=function(t){return new fs(xd(t))};fs.prototype.toMGRS=function(t){return bd([this.x,this.y],t)};var qy=1,Fy=.25,_c=.046875,pc=.01953125,gc=.01068115234375,$y=.75,Dy=.46875,Zy=.013020833333333334,jy=.007120768229166667,Vy=.3645833333333333,Hy=.005696614583333333,Wy=.3076171875;function Cd(t){var e=[];e[0]=qy-t*(Fy+t*(_c+t*(pc+t*gc))),e[1]=t*($y-t*(_c+t*(pc+t*gc)));var n=t*t;return e[2]=n*(Dy-t*(Zy+t*jy)),n*=t,e[3]=n*(Vy-t*Hy),e[4]=n*t*Wy,e}function Wa(t,e,n,r){return n*=e,e*=e,r[0]*t-n*(r[1]+e*(r[2]+e*(r[3]+e*r[4])))}var Uy=20;function Pd(t,e,n){for(var r=1/(1-e),s=t,o=Uy;o;--o){var u=Math.sin(s),h=1-e*u*u;if(h=(Wa(s,u,Math.cos(s),n)-t)*(h*Math.sqrt(h))*r,s-=h,Math.abs(h)dt?Math.tan(n):0,x=Math.pow(b,2),T=Math.pow(x,2);s=1-this.es*Math.pow(h,2),v=v/Math.sqrt(s);var R=Wa(n,h,f,this.en);o=this.a*(this.k0*v*(1+_/6*(1-x+p+_/20*(5-18*x+T+14*p-58*x*p+_/42*(61+179*T-T*x-479*x)))))+this.x0,u=this.a*(this.k0*(R-this.ml0+h*r*v/2*(1+_/12*(5-x+9*p+4*y+_/30*(61+T-58*x+270*p-330*x*p+_/56*(1385+543*T-T*x-3111*x))))))+this.y0}else{var d=f*Math.sin(r);if(Math.abs(Math.abs(d)-1)=1){if(d-1>dt)return 93;u=0}else u=Math.acos(u);n<0&&(u=-u),u=this.a*this.k0*(u-this.lat0)+this.y0}return t.x=o,t.y=u,t}function Qy(t){var e,n,r,s,o=(t.x-this.x0)*(1/this.a),u=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+u/this.k0,n=Pd(e,this.es,this.en),Math.abs(n)dt?Math.tan(n):0,b=this.ep2*Math.pow(p,2),x=Math.pow(b,2),T=Math.pow(y,2),R=Math.pow(T,2);e=1-this.es*Math.pow(_,2);var S=o*Math.sqrt(e)/this.k0,C=Math.pow(S,2);e=e*y,r=n-e*C/(1-this.es)*.5*(1-C/12*(5+3*T-9*b*T+b-4*x-C/30*(61+90*T-252*b*T+45*R+46*b-C/56*(1385+3633*T+4095*R+1574*R*T)))),s=pt(this.long0+S*(1-C/6*(1+2*T+b-C/20*(5+28*T+24*R+8*b*T+6*b-C/42*(61+662*T+1320*R+720*R*T))))/p)}else r=st*cr(u),s=0;else{var h=Math.exp(o/this.k0),f=.5*(h-1/h),d=this.lat0+u/this.k0,v=Math.cos(d);e=Math.sqrt((1-Math.pow(v,2))/(1+Math.pow(f,2))),r=Math.asin(e),u<0&&(r=-r),f===0&&v===0?s=0:s=pt(Math.atan2(f,v)+this.long0)}return t.x=s,t.y=r,t}var Xy=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const ea={init:Gy,forward:Ky,inverse:Qy,names:Xy};function Td(t){var e=Math.exp(t);return e=(e-1/e)/2,e}function li(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),r=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(r,2))}function Jy(t){var e=1+t,n=e-1;return n===0?t:t*Math.log(e)/n}function Yy(t){var e=Math.abs(t);return e=Jy(e*(1+e/(li(1,e)+1))),t<0?-e:e}function Gl(t,e){for(var n=2*Math.cos(2*e),r=t.length-1,s=t[r],o=0,u;--r>=0;)u=-o+n*s+t[r],o=s,s=u;return e+u*Math.sin(2*e)}function t1(t,e){for(var n=2*Math.cos(e),r=t.length-1,s=t[r],o=0,u;--r>=0;)u=-o+n*s+t[r],o=s,s=u;return Math.sin(e)*u}function e1(t){var e=Math.exp(t);return e=(e+1/e)/2,e}function Ld(t,e,n){for(var r=Math.sin(e),s=Math.cos(e),o=Td(n),u=e1(n),h=2*s*u,f=-2*r*o,d=t.length-1,v=t[d],_=0,p=0,y=0,b,x;--d>=0;)b=p,x=_,p=v,_=y,v=-b+h*p-f*_+t[d],y=-x+f*p+h*_;return h=r*u,f=s*o,[h*v-f*y,h*y+f*v]}function i1(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(ea.init.apply(this),this.forward=ea.forward,this.inverse=ea.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),n=e;this.cgb[0]=e*(2+e*(-2/3+e*(-2+e*(116/45+e*(26/45+e*(-2854/675)))))),this.cbg[0]=e*(-2+e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))),n=n*e,this.cgb[1]=n*(7/3+e*(-8/5+e*(-227/45+e*(2704/315+e*(2323/945))))),this.cbg[1]=n*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),n=n*e,this.cgb[2]=n*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=n*(-26/15+e*(34/21+e*(8/5+e*(-12686/2835)))),n=n*e,this.cgb[3]=n*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=n*(1237/630+e*(-12/5+e*(-24832/14175))),n=n*e,this.cgb[4]=n*(4174/315+e*(-144838/6237)),this.cbg[4]=n*(-734/315+e*(109598/31185)),n=n*e,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=e*(-.5+e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=n*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=n*(13/48+e*(-3/5+e*(557/1440+e*(281/630+e*(-1983433/1935360))))),n=n*e,this.utg[2]=n*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=n*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),n=n*e,this.utg[3]=n*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=n*(49561/161280+e*(-179/168+e*(6601661/7257600))),n=n*e,this.utg[4]=n*(-4583/161280+e*(108847/3991680)),this.gtu[4]=n*(34729/80640+e*(-3418889/1995840)),n=n*e,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=n*(212378941/319334400);var r=Gl(this.cbg,this.lat0);this.Zb=-this.Qn*(r+t1(this.gtu,2*r))}function n1(t){var e=pt(t.x-this.long0),n=t.y;n=Gl(this.cbg,n);var r=Math.sin(n),s=Math.cos(n),o=Math.sin(e),u=Math.cos(e);n=Math.atan2(r,u*s),e=Math.atan2(o*s,li(r,s*u)),e=Yy(Math.tan(e));var h=Ld(this.gtu,2*n,2*e);n=n+h[0],e=e+h[1];var f,d;return Math.abs(e)<=2.623395162778?(f=this.a*(this.Qn*e)+this.x0,d=this.a*(this.Qn*n+this.Zb)+this.y0):(f=1/0,d=1/0),t.x=f,t.y=d,t}function s1(t){var e=(t.x-this.x0)*(1/this.a),n=(t.y-this.y0)*(1/this.a);n=(n-this.Zb)/this.Qn,e=e/this.Qn;var r,s;if(Math.abs(e)<=2.623395162778){var o=Ld(this.utg,2*n,2*e);n=n+o[0],e=e+o[1],e=Math.atan(Td(e));var u=Math.sin(n),h=Math.cos(n),f=Math.sin(e),d=Math.cos(e);n=Math.atan2(u*d,li(f,d*h)),e=Math.atan2(f,d*h),r=pt(e+this.long0),s=Gl(this.cgb,n)}else r=1/0,s=1/0;return t.x=r,t.y=s,t}var r1=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"];const ia={init:i1,forward:n1,inverse:s1,names:r1};function a1(t,e){if(t===void 0){if(t=Math.floor((pt(e)+Math.PI)*30/Math.PI)+1,t<0)return 0;if(t>60)return 60}return t}var o1="etmerc";function l1(){var t=a1(this.zone,this.long0);if(t===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*xe,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,ia.init.apply(this),this.forward=ia.forward,this.inverse=ia.inverse}var u1=["Universal Transverse Mercator System","utm"];const h1={init:l1,names:u1,dependsOn:o1};function Kl(t,e){return Math.pow((1-t)/(1+t),e)}var c1=20;function f1(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+Wt)/(Math.pow(Math.tan(.5*this.lat0+Wt),this.C)*Kl(this.e*t,this.ratexp))}function d1(t){var e=t.x,n=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+Wt),this.C)*Kl(this.e*Math.sin(n),this.ratexp))-st,t.x=this.C*e,t}function m1(t){for(var e=1e-14,n=t.x/this.C,r=t.y,s=Math.pow(Math.tan(.5*r+Wt)/this.K,1/this.C),o=c1;o>0&&(r=2*Math.atan(s*Kl(this.e*Math.sin(t.y),-.5*this.e))-st,!(Math.abs(r-t.y)0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=dt&&(this.k0=.5*this.cons*Li(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/fi(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Li(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-st,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function w1(t){var e=t.x,n=t.y,r=Math.sin(n),s=Math.cos(n),o,u,h,f,d,v,_=pt(e-this.long0);return Math.abs(Math.abs(e-this.long0)-Math.PI)<=dt&&Math.abs(n+this.lat0)<=dt?(t.x=NaN,t.y=NaN,t):this.sphere?(o=2*this.k0/(1+this.sinlat0*r+this.coslat0*s*Math.cos(_)),t.x=this.a*o*s*Math.sin(_)+this.x0,t.y=this.a*o*(this.coslat0*r-this.sinlat0*s*Math.cos(_))+this.y0,t):(u=2*Math.atan(this.ssfn_(n,r,this.e))-st,f=Math.cos(u),h=Math.sin(u),Math.abs(this.coslat0)<=dt?(d=fi(this.e,n*this.con,this.con*r),v=2*this.a*this.k0*d/this.cons,t.x=this.x0+v*Math.sin(e-this.long0),t.y=this.y0-this.con*v*Math.cos(e-this.long0),t):(Math.abs(this.sinlat0)0?e=pt(this.long0+Math.atan2(t.x,-1*t.y)):e=pt(this.long0+Math.atan2(t.x,t.y)):e=pt(this.long0+Math.atan2(t.x*Math.sin(h),u*this.coslat0*Math.cos(h)-t.y*this.sinlat0*Math.sin(h))),t.x=e,t.y=n,t)}else if(Math.abs(this.coslat0)<=dt){if(u<=dt)return n=this.lat0,e=this.long0,t.x=e,t.y=n,t;t.x*=this.con,t.y*=this.con,r=u*this.cons/(2*this.a*this.k0),n=this.con*ar(this.e,r),e=this.con*pt(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else s=2*Math.atan(u*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,u<=dt?o=this.X0:(o=Math.asin(Math.cos(s)*this.sinX0+t.y*Math.sin(s)*this.cosX0/u),e=pt(this.long0+Math.atan2(t.x*Math.sin(s),u*this.cosX0*Math.cos(s)-t.y*this.sinX0*Math.sin(s)))),n=-1*ar(this.e,Math.tan(.5*(st+o)));return t.x=e,t.y=n,t}var P1=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"];const T1={init:M1,forward:w1,inverse:C1,names:P1,ssfn_:x1};function L1(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),n=this.a,r=this.rf,s=1/r,o=2*s-Math.pow(s,2),u=this.e=Math.sqrt(o);this.R=this.k0*n*Math.sqrt(1-o)/(1-o*Math.pow(e,2)),this.alpha=Math.sqrt(1+o/(1-o)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var h=Math.log(Math.tan(Math.PI/4+this.b0/2)),f=Math.log(Math.tan(Math.PI/4+t/2)),d=Math.log((1+u*e)/(1-u*e));this.K=h-this.alpha*f+this.alpha*u/2*d}function S1(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),r=-this.alpha*(e+n)+this.K,s=2*(Math.atan(Math.exp(r))-Math.PI/4),o=this.alpha*(t.x-this.lambda0),u=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(s)+Math.cos(this.b0)*Math.cos(o))),h=Math.asin(Math.cos(this.b0)*Math.sin(s)-Math.sin(this.b0)*Math.cos(s)*Math.cos(o));return t.y=this.R/2*Math.log((1+Math.sin(h))/(1-Math.sin(h)))+this.y0,t.x=this.R*u+this.x0,t}function E1(t){for(var e=t.x-this.x0,n=t.y-this.y0,r=e/this.R,s=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(s)+Math.sin(this.b0)*Math.cos(s)*Math.cos(r)),u=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(s))),h=this.lambda0+u/this.alpha,f=0,d=o,v=-1e3,_=0;Math.abs(d-v)>1e-7;){if(++_>20)return;f=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(d))/2)),v=d,d=2*Math.atan(Math.exp(f))-Math.PI/2}return t.x=h,t.y=d,t}var k1=["somerc"];const A1={init:L1,forward:S1,inverse:E1,names:k1};var Gn=1e-7;function O1(t){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],n=typeof t.PROJECTION=="object"?Object.keys(t.PROJECTION)[0]:t.PROJECTION;return"no_uoff"in t||"no_off"in t||e.indexOf(n)!==-1}function I1(){var t,e,n,r,s,o,u,h,f,d,v=0,_,p=0,y=0,b=0,x=0,T=0,R=0;this.no_off=O1(this),this.no_rot="no_rot"in this;var S=!1;"alpha"in this&&(S=!0);var C=!1;if("rectified_grid_angle"in this&&(C=!0),S&&(R=this.alpha),C&&(v=this.rectified_grid_angle*xe),S||C)p=this.longc;else if(y=this.long1,x=this.lat1,b=this.long2,T=this.lat2,Math.abs(x-T)<=Gn||(t=Math.abs(x))<=Gn||Math.abs(t-st)<=Gn||Math.abs(Math.abs(this.lat0)-st)<=Gn||Math.abs(Math.abs(T)-st)<=Gn)throw new Error;var A=1-this.es;e=Math.sqrt(A),Math.abs(this.lat0)>dt?(h=Math.sin(this.lat0),n=Math.cos(this.lat0),t=1-this.es*h*h,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/A),this.A=this.B*this.k0*e/t,r=this.B*e/(n*Math.sqrt(t)),s=r*r-1,s<=0?s=0:(s=Math.sqrt(s),this.lat0<0&&(s=-s)),this.E=s+=r,this.E*=Math.pow(fi(this.e,this.lat0,h),this.B)):(this.B=1/e,this.A=this.k0,this.E=r=s=1),S||C?(S?(_=Math.asin(Math.sin(R)/r),C||(v=R)):(_=v,R=Math.asin(r*Math.sin(_))),this.lam0=p-Math.asin(.5*(s-1/s)*Math.tan(_))/this.B):(o=Math.pow(fi(this.e,x,Math.sin(x)),this.B),u=Math.pow(fi(this.e,T,Math.sin(T)),this.B),s=this.E/o,f=(u-o)/(u+o),d=this.E*this.E,d=(d-u*o)/(d+u*o),t=y-b,t<-Math.pi?b-=sr:t>Math.pi&&(b+=sr),this.lam0=pt(.5*(y+b)-Math.atan(d*Math.tan(.5*this.B*(y-b))/f)/this.B),_=Math.atan(2*Math.sin(this.B*pt(y-this.lam0))/(s-1/s)),v=R=Math.asin(r*Math.sin(_))),this.singam=Math.sin(_),this.cosgam=Math.cos(_),this.sinrot=Math.sin(v),this.cosrot=Math.cos(v),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A*this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(r*r-1)/Math.cos(R))),this.lat0<0&&(this.u_0=-this.u_0)),s=.5*_,this.v_pole_n=this.ArB*Math.log(Math.tan(Wt-s)),this.v_pole_s=this.ArB*Math.log(Math.tan(Wt+s))}function R1(t){var e={},n,r,s,o,u,h,f,d;if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-st)>dt){if(u=this.E/Math.pow(fi(this.e,t.y,Math.sin(t.y)),this.B),h=1/u,n=.5*(u-h),r=.5*(u+h),o=Math.sin(this.B*t.x),s=(n*this.singam-o*this.cosgam)/r,Math.abs(Math.abs(s)-1)0?this.v_pole_n:this.v_pole_s,f=this.ArB*t.y;return this.no_rot?(e.x=f,e.y=d):(f-=this.u_0,e.x=d*this.cosrot+f*this.sinrot,e.y=f*this.cosrot-d*this.sinrot),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function N1(t){var e,n,r,s,o,u,h,f={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(n=t.y,e=t.x):(n=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),r=Math.exp(-this.BrA*n),s=.5*(r-1/r),o=.5*(r+1/r),u=Math.sin(this.BrA*e),h=(u*this.cosgam+s*this.singam)/o,Math.abs(Math.abs(h)-1)dt?this.ns=Math.log(r/h)/Math.log(s/f):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=r/(this.ns*Math.pow(s,this.ns)),this.rh=this.a*this.f0*Math.pow(d,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function F1(t){var e=t.x,n=t.y;Math.abs(2*Math.abs(n)-Math.PI)<=dt&&(n=cr(n)*(st-2*dt));var r=Math.abs(Math.abs(n)-st),s,o;if(r>dt)s=fi(this.e,n,Math.sin(n)),o=this.a*this.f0*Math.pow(s,this.ns);else{if(r=n*this.ns,r<=0)return null;o=0}var u=this.ns*pt(e-this.long0);return t.x=this.k0*(o*Math.sin(u))+this.x0,t.y=this.k0*(this.rh-o*Math.cos(u))+this.y0,t}function $1(t){var e,n,r,s,o,u=(t.x-this.x0)/this.k0,h=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(u*u+h*h),n=1):(e=-Math.sqrt(u*u+h*h),n=-1);var f=0;if(e!==0&&(f=Math.atan2(n*u,n*h)),e!==0||this.ns>0){if(n=1/this.ns,r=Math.pow(e/(this.a*this.f0),n),s=ar(this.e,r),s===-9999)return null}else s=-st;return o=pt(f/this.ns+this.long0),t.x=o,t.y=s,t}var D1=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"];const Z1={init:q1,forward:F1,inverse:$1,names:D1};function j1(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function V1(t){var e,n,r,s,o,u,h,f=t.x,d=t.y,v=pt(f-this.long0);return e=Math.pow((1+this.e*Math.sin(d))/(1-this.e*Math.sin(d)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(d/2+this.s45),this.alfa)/e)-this.s45),r=-v*this.alfa,s=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),o=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(s)),u=this.n*o,h=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(s/2+this.s45),this.n),t.y=h*Math.cos(u)/1,t.x=h*Math.sin(u)/1,this.czech||(t.y*=-1,t.x*=-1),t}function H1(t){var e,n,r,s,o,u,h,f,d=t.x;t.x=t.y,t.y=d,this.czech||(t.y*=-1,t.x*=-1),u=Math.sqrt(t.x*t.x+t.y*t.y),o=Math.atan2(t.y,t.x),s=o/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/u,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(s)),n=Math.asin(Math.cos(r)*Math.sin(s)/Math.cos(e)),t.x=this.long0-n/this.alfa,h=e,f=0;var v=0;do t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.e/2))-this.s45),Math.abs(h-t.y)<1e-10&&(f=1),h=t.y,v+=1;while(f===0&&v<15);return v>=15?null:t}var W1=["Krovak","krovak"];const U1={init:j1,forward:V1,inverse:H1,names:W1};function Be(t,e,n,r,s){return t*s-e*Math.sin(2*s)+n*Math.sin(4*s)-r*Math.sin(6*s)}function fr(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function dr(t){return .375*t*(1+.25*t*(1+.46875*t))}function mr(t){return .05859375*t*t*(1+.75*t)}function vr(t){return t*t*t*(35/3072)}function ds(t,e,n){var r=e*n;return t/Math.sqrt(1-r*r)}function ys(t){return Math.abs(t)1e-7?(n=t*e,(1-t*t)*(e/(1-n*n)-.5/t*Math.log((1-n)/(1+n)))):2*e}var Y1=1,tb=2,eb=3,ib=4;function nb(){var t=Math.abs(this.lat0);if(Math.abs(t-st)0){var e;switch(this.qp=en(this.e,1),this.mmf=.5/(1-this.es),this.apa=fb(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=en(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function sb(t){var e,n,r,s,o,u,h,f,d,v,_=t.x,p=t.y;if(_=pt(_-this.long0),this.sphere){if(o=Math.sin(p),v=Math.cos(p),r=Math.cos(_),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(n=this.mode===this.EQUIT?1+v*r:1+this.sinph0*o+this.cosph0*v*r,n<=dt)return null;n=Math.sqrt(2/n),e=n*v*Math.sin(_),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*v*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(p+this.lat0)=0?(e=(d=Math.sqrt(u))*s,n=r*(this.mode===this.S_POLE?d:-d)):e=n=0;break}}return t.x=this.a*e+this.x0,t.y=this.a*n+this.y0,t}function rb(t){t.x-=this.x0,t.y-=this.y0;var e=t.x/this.a,n=t.y/this.a,r,s,o,u,h,f,d;if(this.sphere){var v=0,_,p=0;if(_=Math.sqrt(e*e+n*n),s=_*.5,s>1)return null;switch(s=2*Math.asin(s),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(p=Math.sin(s),v=Math.cos(s)),this.mode){case this.EQUIT:s=Math.abs(_)<=dt?0:Math.asin(n*p/_),e*=p,n=v*_;break;case this.OBLIQ:s=Math.abs(_)<=dt?this.lat0:Math.asin(v*this.sinph0+n*p*this.cosph0/_),e*=p*this.cosph0,n=(v-Math.sin(s)*this.sinph0)*_;break;case this.N_POLE:n=-n,s=st-s;break;case this.S_POLE:s-=st;break}r=n===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(e,n)}else{if(d=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e/=this.dd,n*=this.dd,f=Math.sqrt(e*e+n*n),f1&&(t=t>1?1:-1),Math.asin(t)}function _b(){Math.abs(this.lat1+this.lat2)dt?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function pb(t){var e=t.x,n=t.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var r=en(this.e3,this.sin_phi),s=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,o=this.ns0*pt(e-this.long0),u=s*Math.sin(o)+this.x0,h=this.rh-s*Math.cos(o)+this.y0;return t.x=u,t.y=h,t}function gb(t){var e,n,r,s,o,u;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),r=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),r=-1),s=0,e!==0&&(s=Math.atan2(r*t.x,r*t.y)),r=e*this.ns0/this.a,this.sphere?u=Math.asin((this.c-r*r)/(2*this.ns0)):(n=(this.c-r*r)/this.ns0,u=this.phi1z(this.e3,n)),o=pt(s/this.ns0+this.long0),t.x=o,t.y=u,t}function yb(t,e){var n,r,s,o,u,h=ln(.5*e);if(t0||Math.abs(u)<=dt?(h=this.x0+this.a*o*n*Math.sin(r)/u,f=this.y0+this.a*o*(this.cos_p14*e-this.sin_p14*n*s)/u):(h=this.x0+this.infinity_dist*n*Math.sin(r),f=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*n*s)),t.x=h,t.y=f,t}function Cb(t){var e,n,r,s,o,u;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(s=Math.atan2(e,this.rc),n=Math.sin(s),r=Math.cos(s),u=ln(r*this.sin_p14+t.y*n*this.cos_p14/e),o=Math.atan2(t.x*n,e*this.cos_p14*r-t.y*this.sin_p14*n),o=pt(this.long0+o)):(u=this.phic0,o=0),t.x=o,t.y=u,t}var Pb=["gnom"];const Tb={init:Mb,forward:wb,inverse:Cb,names:Pb};function Lb(t,e){var n=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*st:st;for(var r=Math.asin(.5*e),s,o,u,h,f=0;f<30;f++)if(o=Math.sin(r),u=Math.cos(r),h=t*o,s=Math.pow(1-h*h,2)/(2*u)*(e/(1-t*t)-o/(1-h*h)+.5/t*Math.log((1-h)/(1+h))),r+=s,Math.abs(s)<=1e-10)return r;return NaN}function Sb(){this.sphere||(this.k0=Li(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function Eb(t){var e=t.x,n=t.y,r,s,o=pt(e-this.long0);if(this.sphere)r=this.x0+this.a*o*Math.cos(this.lat_ts),s=this.y0+this.a*Math.sin(n)/Math.cos(this.lat_ts);else{var u=en(this.e,Math.sin(n));r=this.x0+this.a*this.k0*o,s=this.y0+this.a*u*.5/this.k0}return t.x=r,t.y=s,t}function kb(t){t.x-=this.x0,t.y-=this.y0;var e,n;return this.sphere?(e=pt(this.long0+t.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(n=Lb(this.e,2*t.y*this.k0/this.a),e=pt(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=n,t}var Ab=["cea"];const Ob={init:Sb,forward:Eb,inverse:kb,names:Ab};function Ib(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function Rb(t){var e=t.x,n=t.y,r=pt(e-this.long0),s=ys(n-this.lat0);return t.x=this.x0+this.a*r*this.rc,t.y=this.y0+this.a*s,t}function Nb(t){var e=t.x,n=t.y;return t.x=pt(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=ys(this.lat0+(n-this.y0)/this.a),t}var Bb=["Equirectangular","Equidistant_Cylindrical","eqc"];const zb={init:Ib,forward:Rb,inverse:Nb,names:Bb};var yc=20;function qb(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=fr(this.es),this.e1=dr(this.es),this.e2=mr(this.es),this.e3=vr(this.es),this.ml0=this.a*Be(this.e0,this.e1,this.e2,this.e3,this.lat0)}function Fb(t){var e=t.x,n=t.y,r,s,o,u=pt(e-this.long0);if(o=u*Math.sin(n),this.sphere)Math.abs(n)<=dt?(r=this.a*u,s=-1*this.a*this.lat0):(r=this.a*Math.sin(o)/Math.tan(n),s=this.a*(ys(n-this.lat0)+(1-Math.cos(o))/Math.tan(n)));else if(Math.abs(n)<=dt)r=this.a*u,s=-1*this.ml0;else{var h=ds(this.a,this.e,Math.sin(n))/Math.tan(n);r=h*Math.sin(o),s=this.a*Be(this.e0,this.e1,this.e2,this.e3,n)-this.ml0+h*(1-Math.cos(o))}return t.x=r+this.x0,t.y=s+this.y0,t}function $b(t){var e,n,r,s,o,u,h,f,d;if(r=t.x-this.x0,s=t.y-this.y0,this.sphere)if(Math.abs(s+this.a*this.lat0)<=dt)e=pt(r/this.a+this.long0),n=0;else{u=this.lat0+s/this.a,h=r*r/this.a/this.a+u*u,f=u;var v;for(o=yc;o;--o)if(v=Math.tan(f),d=-1*(u*(f*v+1)-f-.5*(f*f+h)*v)/((f-u)/v-1),f+=d,Math.abs(d)<=dt){n=f;break}e=pt(this.long0+Math.asin(r*Math.tan(f)/this.a)/Math.sin(n))}else if(Math.abs(s+this.ml0)<=dt)n=0,e=pt(this.long0+r/this.a);else{u=(this.ml0+s)/this.a,h=r*r/this.a/this.a+u*u,f=u;var _,p,y,b,x;for(o=yc;o;--o)if(x=this.e*Math.sin(f),_=Math.sqrt(1-x*x)*Math.tan(f),p=this.a*Be(this.e0,this.e1,this.e2,this.e3,f),y=this.e0-2*this.e1*Math.cos(2*f)+4*this.e2*Math.cos(4*f)-6*this.e3*Math.cos(6*f),b=p/this.a,d=(u*(_*b+1)-b-.5*_*(b*b+h))/(this.es*Math.sin(2*f)*(b*b+h-2*u*b)/(4*_)+(u-b)*(_*y-2/Math.sin(2*f))-y),f-=d,Math.abs(d)<=dt){n=f;break}_=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),e=pt(this.long0+Math.asin(r*_/this.a)/Math.sin(n))}return t.x=e,t.y=n,t}var Db=["Polyconic","poly"];const Zb={init:qb,forward:Fb,inverse:$b,names:Db};function jb(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function Vb(t){var e,n=t.x,r=t.y,s=r-this.lat0,o=n-this.long0,u=s/Us*1e-5,h=o,f=1,d=0;for(e=1;e<=10;e++)f=f*u,d=d+this.A[e]*f;var v=d,_=h,p=1,y=0,b,x,T=0,R=0;for(e=1;e<=6;e++)b=p*v-y*_,x=y*v+p*_,p=b,y=x,T=T+this.B_re[e]*p-this.B_im[e]*y,R=R+this.B_im[e]*p+this.B_re[e]*y;return t.x=R*this.a+this.x0,t.y=T*this.a+this.y0,t}function Hb(t){var e,n=t.x,r=t.y,s=n-this.x0,o=r-this.y0,u=o/this.a,h=s/this.a,f=1,d=0,v,_,p=0,y=0;for(e=1;e<=6;e++)v=f*u-d*h,_=d*u+f*h,f=v,d=_,p=p+this.C_re[e]*f-this.C_im[e]*d,y=y+this.C_im[e]*f+this.C_re[e]*d;for(var b=0;b.999999999999&&(n=.999999999999),e=Math.asin(n);var r=pt(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*e+Math.sin(2*e))/Math.PI,Math.abs(n)>1&&(n=1);var s=Math.asin(n);return t.x=r,t.y=s,t}var lx=["Mollweide","moll"];const ux={init:rx,forward:ax,inverse:ox,names:lx};function hx(){Math.abs(this.lat1+this.lat2)=0?(n=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(n=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var o=0;if(n!==0&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere)return s=pt(this.long0+o/this.ns),r=ys(this.g-n/this.a),t.x=s,t.y=r,t;var u=this.g-n/this.a;return r=xa(u,this.e0,this.e1,this.e2,this.e3),s=pt(this.long0+o/this.ns),t.x=s,t.y=r,t}var dx=["Equidistant_Conic","eqdc"];const mx={init:hx,forward:cx,inverse:fx,names:dx};function vx(){this.R=this.a}function _x(t){var e=t.x,n=t.y,r=pt(e-this.long0),s,o;Math.abs(n)<=dt&&(s=this.x0+this.R*r,o=this.y0);var u=ln(2*Math.abs(n/Math.PI));(Math.abs(r)<=dt||Math.abs(Math.abs(n)-st)<=dt)&&(s=this.x0,n>=0?o=this.y0+Math.PI*this.R*Math.tan(.5*u):o=this.y0+Math.PI*this.R*-Math.tan(.5*u));var h=.5*Math.abs(Math.PI/r-r/Math.PI),f=h*h,d=Math.sin(u),v=Math.cos(u),_=v/(d+v-1),p=_*_,y=_*(2/d-1),b=y*y,x=Math.PI*this.R*(h*(_-b)+Math.sqrt(f*(_-b)*(_-b)-(b+f)*(p-b)))/(b+f);r<0&&(x=-x),s=this.x0+x;var T=f+_;return x=Math.PI*this.R*(y*T-h*Math.sqrt((b+f)*(f+1)-T*T))/(b+f),n>=0?o=this.y0+x:o=this.y0-x,t.x=s,t.y=o,t}function px(t){var e,n,r,s,o,u,h,f,d,v,_,p,y;return t.x-=this.x0,t.y-=this.y0,_=Math.PI*this.R,r=t.x/_,s=t.y/_,o=r*r+s*s,u=-Math.abs(s)*(1+o),h=u-2*s*s+r*r,f=-2*u+1+2*s*s+o*o,y=s*s/f+(2*h*h*h/f/f/f-9*u*h/f/f)/27,d=(u-h*h/3/f)/f,v=2*Math.sqrt(-d/3),_=3*y/d/v,Math.abs(_)>1&&(_>=0?_=1:_=-1),p=Math.acos(_)/3,t.y>=0?n=(-v*Math.cos(p+Math.PI/3)-h/3/f)*Math.PI:n=-(-v*Math.cos(p+Math.PI/3)-h/3/f)*Math.PI,Math.abs(r)2*st*this.a?void 0:(n=e/this.a,r=Math.sin(n),s=Math.cos(n),o=this.long0,Math.abs(e)<=dt?u=this.lat0:(u=ln(s*this.sin_p12+t.y*r*this.cos_p12/e),h=Math.abs(this.lat0)-st,Math.abs(h)<=dt?this.lat0>=0?o=pt(this.long0+Math.atan2(t.x,-t.y)):o=pt(this.long0-Math.atan2(-t.x,t.y)):o=pt(this.long0+Math.atan2(t.x*r,e*this.cos_p12*s-t.y*this.sin_p12*r))),t.x=o,t.y=u,t)):(f=fr(this.es),d=dr(this.es),v=mr(this.es),_=vr(this.es),Math.abs(this.sin_p12-1)<=dt?(p=this.a*Be(f,d,v,_,st),e=Math.sqrt(t.x*t.x+t.y*t.y),y=p-e,u=xa(y/this.a,f,d,v,_),o=pt(this.long0+Math.atan2(t.x,-1*t.y)),t.x=o,t.y=u,t):Math.abs(this.sin_p12+1)<=dt?(p=this.a*Be(f,d,v,_,st),e=Math.sqrt(t.x*t.x+t.y*t.y),y=e-p,u=xa(y/this.a,f,d,v,_),o=pt(this.long0+Math.atan2(t.x,t.y)),t.x=o,t.y=u,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),T=Math.atan2(t.x,t.y),b=ds(this.a,this.e,this.sin_p12),R=Math.cos(T),S=this.e*this.cos_p12*R,C=-S*S/(1-this.es),A=3*this.es*(1-C)*this.sin_p12*this.cos_p12*R/(1-this.es),q=e/b,Z=q-C*(1+C)*Math.pow(q,3)/6-A*(1+3*C)*Math.pow(q,4)/24,V=1-C*Z*Z/2-q*Z*Z*Z/6,x=Math.asin(this.sin_p12*Math.cos(Z)+this.cos_p12*Math.sin(Z)*R),o=pt(this.long0+Math.asin(Math.sin(T)*Math.sin(Z)/Math.cos(x))),N=Math.sin(x),u=Math.atan2((N-this.es*V*this.sin_p12)*Math.tan(x),N*(1-this.es)),t.x=o,t.y=u,t))}var wx=["Azimuthal_Equidistant","aeqd"];const Cx={init:bx,forward:xx,inverse:Mx,names:wx};function Px(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function Tx(t){var e,n,r,s,o,u,h,f,d=t.x,v=t.y;return r=pt(d-this.long0),e=Math.sin(v),n=Math.cos(v),s=Math.cos(r),u=this.sin_p14*e+this.cos_p14*n*s,o=1,(u>0||Math.abs(u)<=dt)&&(h=this.a*o*n*Math.sin(r),f=this.y0+this.a*o*(this.cos_p14*e-this.sin_p14*n*s)),t.x=h,t.y=f,t}function Lx(t){var e,n,r,s,o,u,h;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),n=ln(e/this.a),r=Math.sin(n),s=Math.cos(n),u=this.long0,Math.abs(e)<=dt?(h=this.lat0,t.x=u,t.y=h,t):(h=ln(s*this.sin_p14+t.y*r*this.cos_p14/e),o=Math.abs(this.lat0)-st,Math.abs(o)<=dt?(this.lat0>=0?u=pt(this.long0+Math.atan2(t.x,-t.y)):u=pt(this.long0-Math.atan2(-t.x,t.y)),t.x=u,t.y=h,t):(u=pt(this.long0+Math.atan2(t.x*r,e*this.cos_p14*s-t.y*this.sin_p14*r)),t.x=u,t.y=h,t))}var Sx=["ortho"];const Ex={init:Px,forward:Tx,inverse:Lx,names:Sx};var ee={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},Ut={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function kx(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=st-Wt/2?this.face=ee.TOP:this.lat0<=-(st-Wt/2)?this.face=ee.BOTTOM:Math.abs(this.long0)<=Wt?this.face=ee.FRONT:Math.abs(this.long0)<=st+Wt?this.face=this.long0>0?ee.RIGHT:ee.LEFT:this.face=ee.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function Ax(t){var e={x:0,y:0},n,r,s,o,u,h,f={value:0};if(t.x-=this.long0,this.es!==0?n=Math.atan(this.one_minus_f_squared*Math.tan(t.y)):n=t.y,r=t.x,this.face===ee.TOP)o=st-n,r>=Wt&&r<=st+Wt?(f.value=Ut.AREA_0,s=r-st):r>st+Wt||r<=-(st+Wt)?(f.value=Ut.AREA_1,s=r>0?r-se:r+se):r>-(st+Wt)&&r<=-Wt?(f.value=Ut.AREA_2,s=r+st):(f.value=Ut.AREA_3,s=r);else if(this.face===ee.BOTTOM)o=st+n,r>=Wt&&r<=st+Wt?(f.value=Ut.AREA_0,s=-r+st):r=-Wt?(f.value=Ut.AREA_1,s=-r):r<-Wt&&r>=-(st+Wt)?(f.value=Ut.AREA_2,s=-r-st):(f.value=Ut.AREA_3,s=r>0?-r+se:-r-se);else{var d,v,_,p,y,b,x;this.face===ee.RIGHT?r=as(r,+st):this.face===ee.BACK?r=as(r,+se):this.face===ee.LEFT&&(r=as(r,-st)),p=Math.sin(n),y=Math.cos(n),b=Math.sin(r),x=Math.cos(r),d=y*x,v=y*b,_=p,this.face===ee.FRONT?(o=Math.acos(d),s=Vr(o,_,v,f)):this.face===ee.RIGHT?(o=Math.acos(v),s=Vr(o,_,-d,f)):this.face===ee.BACK?(o=Math.acos(-d),s=Vr(o,_,-v,f)):this.face===ee.LEFT?(o=Math.acos(-v),s=Vr(o,_,d,f)):(o=s=0,f.value=Ut.AREA_0)}return h=Math.atan(12/se*(s+Math.acos(Math.sin(s)*Math.cos(Wt))-st)),u=Math.sqrt((1-Math.cos(o))/(Math.cos(h)*Math.cos(h))/(1-Math.cos(Math.atan(1/Math.cos(s))))),f.value===Ut.AREA_1?h+=st:f.value===Ut.AREA_2?h+=se:f.value===Ut.AREA_3&&(h+=1.5*se),e.x=u*Math.cos(h),e.y=u*Math.sin(h),e.x=e.x*this.a+this.x0,e.y=e.y*this.a+this.y0,t.x=e.x,t.y=e.y,t}function Ox(t){var e={lam:0,phi:0},n,r,s,o,u,h,f,d,v,_={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,r=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),n=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?_.value=Ut.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(_.value=Ut.AREA_1,n-=st):t.x<0&&-t.x>=Math.abs(t.y)?(_.value=Ut.AREA_2,n=n<0?n+se:n-se):(_.value=Ut.AREA_3,n+=st),v=se/12*Math.tan(n),u=Math.sin(v)/(Math.cos(v)-1/Math.sqrt(2)),h=Math.atan(u),s=Math.cos(n),o=Math.tan(r),f=1-s*s*o*o*(1-Math.cos(Math.atan(1/Math.cos(h)))),f<-1?f=-1:f>1&&(f=1),this.face===ee.TOP)d=Math.acos(f),e.phi=st-d,_.value===Ut.AREA_0?e.lam=h+st:_.value===Ut.AREA_1?e.lam=h<0?h+se:h-se:_.value===Ut.AREA_2?e.lam=h-st:e.lam=h;else if(this.face===ee.BOTTOM)d=Math.acos(f),e.phi=d-st,_.value===Ut.AREA_0?e.lam=-h+st:_.value===Ut.AREA_1?e.lam=-h:_.value===Ut.AREA_2?e.lam=-h-st:e.lam=h<0?-h-se:-h+se;else{var p,y,b;p=f,v=p*p,v>=1?b=0:b=Math.sqrt(1-v)*Math.sin(h),v+=b*b,v>=1?y=0:y=Math.sqrt(1-v),_.value===Ut.AREA_1?(v=y,y=-b,b=v):_.value===Ut.AREA_2?(y=-y,b=-b):_.value===Ut.AREA_3&&(v=y,y=b,b=-v),this.face===ee.RIGHT?(v=p,p=-y,y=v):this.face===ee.BACK?(p=-p,y=-y):this.face===ee.LEFT&&(v=p,p=y,y=-v),e.phi=Math.acos(-b)-st,e.lam=Math.atan2(y,p),this.face===ee.RIGHT?e.lam=as(e.lam,-st):this.face===ee.BACK?e.lam=as(e.lam,-se):this.face===ee.LEFT&&(e.lam=as(e.lam,+st))}if(this.es!==0){var x,T,R;x=e.phi<0?1:0,T=Math.tan(e.phi),R=this.b/Math.sqrt(T*T+this.one_minus_f_squared),e.phi=Math.atan(Math.sqrt(this.a*this.a-R*R)/(this.one_minus_f*R)),x&&(e.phi=-e.phi)}return e.lam+=this.long0,t.x=e.lam,t.y=e.phi,t}function Vr(t,e,n,r){var s;return tWt&&s<=st+Wt?(r.value=Ut.AREA_1,s-=st):s>st+Wt||s<=-(st+Wt)?(r.value=Ut.AREA_2,s=s>=0?s-se:s+se):(r.value=Ut.AREA_3,s+=st)),s}function as(t,e){var n=t+e;return n<-se?n+=sr:n>+se&&(n-=sr),n}var Ix=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const Rx={init:kx,forward:Ax,inverse:Ox,names:Ix};var ll=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],$s=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Sd=.8487,Ed=1.3523,kd=Ci/5,Nx=1/kd,Jn=18,Ma=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))},Bx=function(t,e){return t[1]+e*(2*t[2]+e*3*t[3])};function zx(t,e,n,r){for(var s=e;r;--r){var o=t(s);if(s-=o,Math.abs(o)=Jn&&(r=Jn-1),n=Ci*(n-Nx*r);var s={x:Ma(ll[r],n)*e,y:Ma($s[r],n)};return t.y<0&&(s.y=-s.y),s.x=s.x*this.a*Sd+this.x0,s.y=s.y*this.a*Ed+this.y0,s}function $x(t){var e={x:(t.x-this.x0)/(this.a*Sd),y:Math.abs(t.y-this.y0)/(this.a*Ed)};if(e.y>=1)e.x/=ll[Jn][0],e.y=t.y<0?-st:st;else{var n=Math.floor(e.y*Jn);for(n<0?n=0:n>=Jn&&(n=Jn-1);;)if($s[n][0]>e.y)--n;else if($s[n+1][0]<=e.y)++n;else break;var r=$s[n],s=5*(e.y-r[0])/($s[n+1][0]-r[0]);s=zx(function(o){return(Ma(r,o)-e.y)/Bx(r,o)},s,dt,100),e.x/=Ma(ll[n],s),e.y=(5*n+s)*xe,t.y<0&&(e.y=-e.y)}return e.x=pt(e.x+this.long0),e}var Dx=["Robinson","robin"];const Zx={init:qx,forward:Fx,inverse:$x,names:Dx};function jx(){this.name="geocent"}function Vx(t){var e=vd(t,this.es,this.a);return e}function Hx(t){var e=_d(t,this.es,this.a,this.b);return e}var Wx=["Geocentric","geocentric","geocent","Geocent"];const Ux={init:jx,forward:Vx,inverse:Hx,names:Wx};var Le={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Rs={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function Gx(){if(Object.keys(Rs).forEach((function(n){if(typeof this[n]>"u")this[n]=Rs[n].def;else{if(Rs[n].num&&isNaN(this[n]))throw new Error("Invalid parameter value, must be numeric "+n+" = "+this[n]);Rs[n].num&&(this[n]=parseFloat(this[n]))}Rs[n].degrees&&(this[n]=this[n]*xe)}).bind(this)),Math.abs(Math.abs(this.lat0)-st)1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)}function Kx(t){t.x-=this.long0;var e=Math.sin(t.y),n=Math.cos(t.y),r=Math.cos(t.x),s,o;switch(this.mode){case Le.OBLIQ:o=this.sinph0*e+this.cosph0*n*r;break;case Le.EQUIT:o=n*r;break;case Le.S_POLE:o=-e;break;case Le.N_POLE:o=e;break}switch(o=this.pn1/(this.p-o),s=o*n*Math.sin(t.x),this.mode){case Le.OBLIQ:o*=this.cosph0*e-this.sinph0*n*r;break;case Le.EQUIT:o*=e;break;case Le.N_POLE:o*=-(n*r);break;case Le.S_POLE:o*=n*r;break}var u,h;return u=o*this.cg+s*this.sg,h=1/(u*this.sw*this.h1+this.cw),s=(s*this.cg-o*this.sg)*this.cw*h,o=u*h,t.x=s*this.a,t.y=o*this.a,t}function Qx(t){t.x/=this.a,t.y/=this.a;var e={x:t.x,y:t.y},n,r,s;s=1/(this.pn1-t.y*this.sw),n=this.pn1*t.x*s,r=this.pn1*t.y*this.cw*s,t.x=n*this.cg+r*this.sg,t.y=r*this.cg-n*this.sg;var o=li(t.x,t.y);if(Math.abs(o)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var t=1-this.es,e=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=e,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function tM(t){var e=t.x,n=t.y,r,s,o,u;if(e=e-this.long0,this.shape==="ellipse"){n=Math.atan(this.radius_p2*Math.tan(n));var h=this.radius_p/li(this.radius_p*Math.cos(n),Math.sin(n));if(s=h*Math.cos(e)*Math.cos(n),o=h*Math.sin(e)*Math.cos(n),u=h*Math.sin(n),(this.radius_g-s)*s-o*o-u*u*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=this.radius_g-s,this.flip_axis?(t.x=this.radius_g_1*Math.atan(o/li(u,r)),t.y=this.radius_g_1*Math.atan(u/r)):(t.x=this.radius_g_1*Math.atan(o/r),t.y=this.radius_g_1*Math.atan(u/li(o,r)))}else this.shape==="sphere"&&(r=Math.cos(n),s=Math.cos(e)*r,o=Math.sin(e)*r,u=Math.sin(n),r=this.radius_g-s,this.flip_axis?(t.x=this.radius_g_1*Math.atan(o/li(u,r)),t.y=this.radius_g_1*Math.atan(u/r)):(t.x=this.radius_g_1*Math.atan(o/r),t.y=this.radius_g_1*Math.atan(u/li(o,r))));return t.x=t.x*this.a,t.y=t.y*this.a,t}function eM(t){var e=-1,n=0,r=0,s,o,u,h;if(t.x=t.x/this.a,t.y=t.y/this.a,this.shape==="ellipse"){this.flip_axis?(r=Math.tan(t.y/this.radius_g_1),n=Math.tan(t.x/this.radius_g_1)*li(1,r)):(n=Math.tan(t.x/this.radius_g_1),r=Math.tan(t.y/this.radius_g_1)*li(1,n));var f=r/this.radius_p;if(s=n*n+f*f+e*e,o=2*this.radius_g*e,u=o*o-4*s*this.C,u<0)return t.x=Number.NaN,t.y=Number.NaN,t;h=(-o-Math.sqrt(u))/(2*s),e=this.radius_g+h*e,n*=h,r*=h,t.x=Math.atan2(n,e),t.y=Math.atan(r*Math.cos(t.x)/e),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if(this.shape==="sphere"){if(this.flip_axis?(r=Math.tan(t.y/this.radius_g_1),n=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+r*r)):(n=Math.tan(t.x/this.radius_g_1),r=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+n*n)),s=n*n+r*r+e*e,o=2*this.radius_g*e,u=o*o-4*s*this.C,u<0)return t.x=Number.NaN,t.y=Number.NaN,t;h=(-o-Math.sqrt(u))/(2*s),e=this.radius_g+h*e,n*=h,r*=h,t.x=Math.atan2(n,e),t.y=Math.atan(r*Math.cos(t.x)/e)}return t.x=t.x+this.long0,t}var iM=["Geostationary Satellite View","Geostationary_Satellite","geos"];const nM={init:Yx,forward:tM,inverse:eM,names:iM};function sM(t){t.Proj.projections.add(ea),t.Proj.projections.add(ia),t.Proj.projections.add(h1),t.Proj.projections.add(b1),t.Proj.projections.add(T1),t.Proj.projections.add(A1),t.Proj.projections.add(z1),t.Proj.projections.add(Z1),t.Proj.projections.add(U1),t.Proj.projections.add(J1),t.Proj.projections.add(vb),t.Proj.projections.add(xb),t.Proj.projections.add(Tb),t.Proj.projections.add(Ob),t.Proj.projections.add(zb),t.Proj.projections.add(Zb),t.Proj.projections.add(Ub),t.Proj.projections.add(Jb),t.Proj.projections.add(sx),t.Proj.projections.add(ux),t.Proj.projections.add(mx),t.Proj.projections.add(yx),t.Proj.projections.add(Cx),t.Proj.projections.add(Ex),t.Proj.projections.add(Rx),t.Proj.projections.add(Zx),t.Proj.projections.add(Ux),t.Proj.projections.add(Jx),t.Proj.projections.add(nM)}Ve.defaultDatum="WGS84";Ve.Proj=Ti;Ve.WGS84=new Ve.Proj("WGS84");Ve.Point=fs;Ve.toPoint=pd;Ve.defs=Ie;Ve.nadgrid=fy;Ve.transform=ba;Ve.mgrs=Sy;Ve.version="__VERSION__";sM(Ve);const rM=Object.freeze(Object.defineProperty({__proto__:null,default:Ve},Symbol.toStringTag,{value:"Module"}));var aM={exports:{}};const oM=T0(rM);(function(t){(function(e){var n,r;n=Hl,r=oM,t.exports=e(n,r)})(function(e,n){return n.__esModule&&n.default&&(n=n.default),e.Proj={},e.Proj._isProj4Obj=function(r){return typeof r.inverse<"u"&&typeof r.forward<"u"},e.Proj.Projection=e.Class.extend({initialize:function(r,s,o){var u=e.Proj._isProj4Obj(r);this._proj=u?r:this._projFromCodeDef(r,s),this.bounds=u?s:o},project:function(r){var s=this._proj.forward([r.lng,r.lat]);return new e.Point(s[0],s[1])},unproject:function(r,s){var o=this._proj.inverse([r.x,r.y]);return new e.LatLng(o[1],o[0],s)},_projFromCodeDef:function(r,s){if(s)n.defs(r,s);else if(n.defs[r]===void 0){var o=r.split(":");if(o.length>3&&(r=o[o.length-3]+":"+o[o.length-1]),n.defs[r]===void 0)throw"No projection definition for code "+r}return n(r)}}),e.Proj.CRS=e.Class.extend({includes:e.CRS,options:{transformation:new e.Transformation(1,0,-1,0)},initialize:function(r,s,o){var u,h,f,d;if(e.Proj._isProj4Obj(r)?(h=r,u=h.srsCode,d=s||{},this.projection=new e.Proj.Projection(h,d.bounds)):(u=r,f=s,d=o||{},this.projection=new e.Proj.Projection(u,f,d.bounds)),e.Util.setOptions(this,d),this.code=u,this.transformation=this.options.transformation,this.options.origin&&(this.transformation=new e.Transformation(1,-this.options.origin[0],-1,this.options.origin[1])),this.options.scales)this._scales=this.options.scales;else if(this.options.resolutions){this._scales=[];for(var v=this.options.resolutions.length-1;v>=0;v--)this.options.resolutions[v]&&(this._scales[v]=1/this.options.resolutions[v])}this.infinite=!this.options.bounds},scale:function(r){var s=Math.floor(r),o,u,h,f;return r===s?this._scales[r]:(o=this._scales[s],u=this._scales[s+1],h=u-o,f=r-s,o+h*f)},zoom:function(r){var s=this._closestElement(this._scales,r),o=this._scales.indexOf(s),u,h,f;return r===s?o:s===void 0?-1/0:(h=o+1,u=this._scales[h],u===void 0?1/0:(f=u-s,(r-s)/f+o))},distance:e.CRS.Earth.distance,R:e.CRS.Earth.R,_closestElement:function(r,s){for(var o,u=r.length;u--;)r[u]<=s&&(o===void 0||ouM[t]}function hM(t,e){const n=ce(e)?e:nf(e),r=ft(),s=ft([]),o=ft([]),u=ft([]),h=Ad();Ce(()=>{const d=n;if(!d)return;const v=bc(d.value.use),_=h(d.value.use);r.value=oi.map(t.value,{...d.value,crs:v,center:_.center});const p=oi.tileLayer(_.urlTemplate,_);p.addTo(r.value),s.value.push(p)}),Lt(n,d=>{r.value&&d&&(r.value.options.crs=bc(d.use))}),Lt(s,d=>{if(!r.value||d.length<1)return;const{hasLayer:v,addLayer:_}=r.value;d.forEach(p=>!v(p)&&_(p))}),Lt(u,d=>{const v=r.value;v&&(d.length<1||d.forEach(_=>{_.addTo(v)}))});function f(d){l_(n)}return{map:r,props:n,tileLayers:s,gridLayers:o,geoJsons:u,triggerProps:f}}function Xl(t){return Vc()?(Ov(t),!0):!1}function Jl(t){return typeof t=="function"?t():Pi(t)}const cM=typeof window<"u",Od=()=>{};function fM(t,e){function n(...r){return new Promise((s,o)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(s).catch(o)})}return n}const Id=t=>t();function dM(t=Id){const e=ft(!0);function n(){e.value=!1}function r(){e.value=!0}const s=(...o)=>{e.value&&t(...o)};return{isActive:ka(e),pause:n,resume:r,eventFilter:s}}function mM(...t){if(t.length!==1)return m_(...t);const e=t[0];return typeof e=="function"?ka(c_(()=>({get:e,set:Od}))):ft(e)}function vM(t,e=!0){Gt()?Ce(t):e?t():Me(t)}var xc=Object.getOwnPropertySymbols,_M=Object.prototype.hasOwnProperty,pM=Object.prototype.propertyIsEnumerable,gM=(t,e)=>{var n={};for(var r in t)_M.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&xc)for(var r of xc(t))e.indexOf(r)<0&&pM.call(t,r)&&(n[r]=t[r]);return n};function yM(t,e,n={}){const r=n,{eventFilter:s=Id}=r,o=gM(r,["eventFilter"]);return Lt(t,fM(s,e),o)}var bM=Object.defineProperty,xM=Object.defineProperties,MM=Object.getOwnPropertyDescriptors,wa=Object.getOwnPropertySymbols,Rd=Object.prototype.hasOwnProperty,Nd=Object.prototype.propertyIsEnumerable,Mc=(t,e,n)=>e in t?bM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,wM=(t,e)=>{for(var n in e||(e={}))Rd.call(e,n)&&Mc(t,n,e[n]);if(wa)for(var n of wa(e))Nd.call(e,n)&&Mc(t,n,e[n]);return t},CM=(t,e)=>xM(t,MM(e)),PM=(t,e)=>{var n={};for(var r in t)Rd.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&wa)for(var r of wa(t))e.indexOf(r)<0&&Nd.call(t,r)&&(n[r]=t[r]);return n};function TM(t,e,n={}){const r=n,{eventFilter:s}=r,o=PM(r,["eventFilter"]),{eventFilter:u,pause:h,resume:f,isActive:d}=dM(s);return{stop:yM(t,e,CM(wM({},o),{eventFilter:u})),pause:h,resume:f,isActive:d}}function ul(t){var e;const n=Jl(t);return(e=n==null?void 0:n.$el)!=null?e:n}const kn=cM?window:void 0;function hl(...t){let e,n,r,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,s]=t,e=kn):[e,n,r,s]=t,!e)return Od;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],u=()=>{o.forEach(v=>v()),o.length=0},h=(v,_,p,y)=>(v.addEventListener(_,p,y),()=>v.removeEventListener(_,p,y)),f=Lt(()=>[ul(e),Jl(s)],([v,_])=>{u(),v&&o.push(...n.flatMap(p=>r.map(y=>h(v,p,y,_))))},{immediate:!0,flush:"post"}),d=()=>{f(),u()};return Xl(d),d}function LM(){const t=ft(!1);return Gt()&&Ce(()=>{t.value=!0}),t}function Bd(t){const e=LM();return k(()=>(e.value,!!t()))}function SM(t,e={}){const{window:n=kn}=e,r=Bd(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const o=ft(!1),u=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",h):s.removeListener(h))},h=()=>{r.value&&(u(),s=n.matchMedia(mM(t).value),o.value=!!(s!=null&&s.matches),s&&("addEventListener"in s?s.addEventListener("change",h):s.addListener(h)))};return A_(h),Xl(()=>u()),o}const Hr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wr="__vueuse_ssr_handlers__",EM=kM();function kM(){return Wr in Hr||(Hr[Wr]=Hr[Wr]||{}),Hr[Wr]}function AM(t,e){return EM[t]||e}function OM(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}var IM=Object.defineProperty,wc=Object.getOwnPropertySymbols,RM=Object.prototype.hasOwnProperty,NM=Object.prototype.propertyIsEnumerable,Cc=(t,e,n)=>e in t?IM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Pc=(t,e)=>{for(var n in e||(e={}))RM.call(e,n)&&Cc(t,n,e[n]);if(wc)for(var n of wc(e))NM.call(e,n)&&Cc(t,n,e[n]);return t};const BM={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},Tc="vueuse-storage";function zM(t,e,n,r={}){var s;const{flush:o="pre",deep:u=!0,listenToStorageChanges:h=!0,writeDefaults:f=!0,mergeDefaults:d=!1,shallow:v,window:_=kn,eventFilter:p,onError:y=N=>{console.error(N)}}=r,b=(v?nf:ft)(e);if(!n)try{n=AM("getDefaultStorage",()=>{var N;return(N=kn)==null?void 0:N.localStorage})()}catch(N){y(N)}if(!n)return b;const x=Jl(e),T=OM(x),R=(s=r.serializer)!=null?s:BM[T],{pause:S,resume:C}=TM(b,()=>A(b.value),{flush:o,deep:u,eventFilter:p});return _&&h&&(hl(_,"storage",V),hl(_,Tc,Z)),V(),b;function A(N){try{if(N==null)n.removeItem(t);else{const I=R.write(N),F=n.getItem(t);F!==I&&(n.setItem(t,I),_&&_.dispatchEvent(new CustomEvent(Tc,{detail:{key:t,oldValue:F,newValue:I,storageArea:n}})))}}catch(I){y(I)}}function q(N){const I=N?N.newValue:n.getItem(t);if(I==null)return f&&x!==null&&n.setItem(t,R.write(x)),x;if(!N&&d){const F=R.read(I);return typeof d=="function"?d(F,x):T==="object"&&!Array.isArray(F)?Pc(Pc({},x),F):F}else return typeof I!="string"?I:R.read(I)}function Z(N){V(N.detail)}function V(N){if(!(N&&N.storageArea!==n)){if(N&&N.key==null){b.value=x;return}if(!(N&&N.key!==t)){S();try{b.value=q(N)}catch(I){y(I)}finally{N?Me(C):C()}}}}}var Lc=Object.getOwnPropertySymbols,qM=Object.prototype.hasOwnProperty,FM=Object.prototype.propertyIsEnumerable,$M=(t,e)=>{var n={};for(var r in t)qM.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Lc)for(var r of Lc(t))e.indexOf(r)<0&&FM.call(t,r)&&(n[r]=t[r]);return n};function DM(t,e,n={}){const r=n,{window:s=kn}=r,o=$M(r,["window"]);let u;const h=Bd(()=>s&&"ResizeObserver"in s),f=()=>{u&&(u.disconnect(),u=void 0)},d=k(()=>Array.isArray(t)?t.map(p=>ul(p)):[ul(t)]),v=Lt(d,p=>{if(f(),h.value&&s){u=new ResizeObserver(e);for(const y of p)y&&u.observe(y,o)}},{immediate:!0,flush:"post",deep:!0}),_=()=>{f(),v()};return Xl(_),{isSupported:h,stop:_}}function ZM(t,e,n={}){const{window:r=kn}=n;return zM(t,e,r==null?void 0:r.localStorage,n)}function jM(t={}){const{window:e=kn,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:s=!0,includeScrollbar:o=!0}=t,u=ft(n),h=ft(r),f=()=>{e&&(o?(u.value=e.innerWidth,h.value=e.innerHeight):(u.value=e.document.documentElement.clientWidth,h.value=e.document.documentElement.clientHeight))};if(f(),vM(f),hl("resize",f,{passive:!0}),s){const d=SM("(orientation: portrait)");Lt(d,()=>f())}return{width:u,height:h}}const VM=An({__name:"Map",setup(t,{expose:e}){const n=ft(),{map:r,tileLayers:s,props:o}=hM(n,{use:"gaode",zoom:13}),u=ft({contextmenu:{}}),h=ft("invert(1) grayscale(.2) saturate(0.8) brightness(1.8) opacity(1) hue-rotate(184deg) sepia(17%)");Al("map",r),Ce(()=>{var d;(d=r.value)==null||d.addEventListener("contextmenu",v=>{u.value.contextmenu=v})}),Lt({center:o.value.center},({center:d})=>{var v;return d&&((v=r.value)==null?void 0:v.flyTo(d))}),Lt({max:o.value.maxZoom||0},({max:d})=>{var v;return(v=r.value)==null?void 0:v.setMaxZoom(d)}),Lt({min:o.value.minZoom||0},({min:d})=>{var v;return(v=r.value)==null?void 0:v.setMaxZoom(d)}),Lt({url:o.value.urlTemplate},({url:d})=>d&&s.value[0].setUrl(d)),Lt({zoomSnap:o.value.zoomSnap},({zoomSnap:d})=>r.value&&(r.value.options.zoomSnap=d));function f(d){h.value=Object.entries(d).map(([v,_])=>`${v}(${_})`).join(" ")}return DM(n,()=>{var d;return(d=r.value)==null?void 0:d.invalidateSize(!0)}),e({changeMapFilter:f,setOptions:Hl.setOptions}),(d,v)=>(de(),us("div",{class:"mapContainer",ref_key:"mapContainer",ref:n,style:lr({"--mapFilter":h.value})},[Pi(r)?xf(d.$slots,"default",Lv(Rf({key:0},u.value))):If("",!0)],4))}}),zd="M4,1C2.89,1 2,1.89 2,3V7C2,8.11 2.89,9 4,9H1V11H13V9H10C11.11,9 12,8.11 12,7V3C12,1.89 11.11,1 10,1H4M4,3H10V7H4V3M3,13V18L3,20H10V18H5V13H3M14,13C12.89,13 12,13.89 12,15V19C12,20.11 12.89,21 14,21H11V23H23V21H20C21.11,21 22,20.11 22,19V15C22,13.89 21.11,13 20,13H14M14,15H20V19H14V15Z",qd="M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z",HM="M7.5,2C5.71,3.15 4.5,5.18 4.5,7.5C4.5,9.82 5.71,11.85 7.53,13C4.46,13 2,10.54 2,7.5A5.5,5.5 0 0,1 7.5,2M19.07,3.5L20.5,4.93L4.93,20.5L3.5,19.07L19.07,3.5M12.89,5.93L11.41,5L9.97,6L10.39,4.3L9,3.24L10.75,3.12L11.33,1.47L12,3.1L13.73,3.13L12.38,4.26L12.89,5.93M9.59,9.54L8.43,8.81L7.31,9.59L7.65,8.27L6.56,7.44L7.92,7.35L8.37,6.06L8.88,7.33L10.24,7.36L9.19,8.23L9.59,9.54M19,13.5A5.5,5.5 0 0,1 13.5,19C12.28,19 11.15,18.6 10.24,17.93L17.93,10.24C18.6,11.15 19,12.28 19,13.5M14.6,20.08L17.37,18.93L17.13,22.28L14.6,20.08M18.93,17.38L20.08,14.61L22.28,17.15L18.93,17.38M20.08,12.42L18.94,9.64L22.28,9.88L20.08,12.42M9.63,18.93L12.4,20.08L9.87,22.27L9.63,18.93Z",WM="M17.75,4.09L15.22,6.03L16.13,9.09L13.5,7.28L10.87,9.09L11.78,6.03L9.25,4.09L12.44,4L13.5,1L14.56,4L17.75,4.09M21.25,11L19.61,12.25L20.2,14.23L18.5,13.06L16.8,14.23L17.39,12.25L15.75,11L17.81,10.95L18.5,9L19.19,10.95L21.25,11M18.97,15.95C19.8,15.87 20.69,17.05 20.16,17.8C19.84,18.25 19.5,18.67 19.08,19.07C15.17,23 8.84,23 4.94,19.07C1.03,15.17 1.03,8.83 4.94,4.93C5.34,4.53 5.76,4.17 6.21,3.85C6.96,3.32 8.14,4.21 8.06,5.04C7.79,7.9 8.75,10.87 10.95,13.06C13.14,15.26 16.1,16.22 18.97,15.95M17.33,17.97C14.5,17.81 11.7,16.64 9.53,14.5C7.36,12.31 6.2,9.5 6.04,6.68C3.23,9.82 3.34,14.64 6.35,17.66C9.37,20.67 14.19,20.78 17.33,17.97Z",UM="M12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,2L14.39,5.42C13.65,5.15 12.84,5 12,5C11.16,5 10.35,5.15 9.61,5.42L12,2M3.34,7L7.5,6.65C6.9,7.16 6.36,7.78 5.94,8.5C5.5,9.24 5.25,10 5.11,10.79L3.34,7M3.36,17L5.12,13.23C5.26,14 5.53,14.78 5.95,15.5C6.37,16.24 6.91,16.86 7.5,17.37L3.36,17M20.65,7L18.88,10.79C18.74,10 18.47,9.23 18.05,8.5C17.63,7.78 17.1,7.15 16.5,6.64L20.65,7M20.64,17L16.5,17.36C17.09,16.85 17.62,16.22 18.04,15.5C18.46,14.77 18.73,14 18.87,13.21L20.64,17M12,22L9.59,18.56C10.33,18.83 11.14,19 12,19C12.82,19 13.63,18.83 14.37,18.56L12,22Z",GM=An({__name:"Mark",props:{latlng:Array,title:String,opacity:Number},setup(t,{expose:e}){const n=t,r=Yi("map"),s=ft(),o=ft();Lt(n,({title:h="",latlng:f=[0,0],opacity:d=1})=>{var v;s.value&&(s.value.setLatLng(oi.latLng(+f[0],+f[1])),s.value.options.title=h,s.value.setOpacity(d),(v=s.value.getTooltip())==null||v.setOpacity(d),s.value.setTooltipContent(h))}),Ce(()=>{const{latlng:h=[0,0],title:f,opacity:d=1}=n;s.value=oi.marker(oi.latLng(+h[0],+h[1]),{title:f,icon:oi.divIcon({html:o.value,className:"markInfo",iconAnchor:oi.point(12,24)})}).bindTooltip(f||"",{permanent:!!f,offset:[15,-5],direction:"right",opacity:d}).openTooltip(),s.value.setOpacity(d),r!=null&&r.value&&s.value.addTo(r.value)}),qa(()=>{var h;(h=s.value)==null||h.remove()});function u(h){var f;(f=s.value)==null||f.remove(),h()}return e({mark:s,remove:u}),(h,f)=>(de(),us("div",{ref_key:"markInfo",ref:o},[xf(h.$slots,"default",{},()=>[yt(je,{name:Pi(qd),size:"md"},null,8,["name"])])],512))}}),KM="map-marks";function QM(t=[]){return ZM(KM,t)}function XM(){return Yi(nd)}const JM={style:{width:"88px"}},YM=An({__name:"ThemeSwitch",setup(t){const e=XM(),n=ft(e.dark.mode);function r(s){return s==="auto"?HM:s?WM:UM}return Lt(n,e.dark.set),(s,o)=>(de(),us("div",JM,[yt(Zl,{"indeterminate-value":"auto",modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=u=>n.value=u),"toggle-indeterminate":""},null,8,["modelValue"]),yt(je,{name:r(n.value),size:"sm"},null,8,["name"])]))}}),tw={size:{type:[Number,String],default:"1em"},color:String};function ew(t){return{cSize:k(()=>t.size in nl?`${nl[t.size]}px`:t.size),classes:k(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const Fd=_e({name:"QSpinner",props:{...tw,thickness:{type:Number,default:5}},setup(t){const{cSize:e,classes:n}=ew(t);return()=>J("svg",{class:n.value+" q-spinner-mat",width:e.value,height:e.value,viewBox:"25 25 50 50"},[J("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}});function iw({validate:t,resetValidation:e,requiresQForm:n}){const r=Yi(i0,!1);if(r!==!1){const{props:s,proxy:o}=Gt();Object.assign(o,{validate:t,resetValidation:e}),Lt(()=>s.disable,u=>{u===!0?(typeof e=="function"&&e(),r.unbindComponent(o)):r.bindComponent(o)}),Ce(()=>{s.disable!==!0&&r.bindComponent(o)}),ve(()=>{s.disable!==!0&&r.unbindComponent(o)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const Sc=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Ec=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,kc=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Ur=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,Gr=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,qo={date:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t),time:t=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(t),fulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t),timeOrFulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(t),email:t=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t),hexColor:t=>Sc.test(t),hexaColor:t=>Ec.test(t),hexOrHexaColor:t=>kc.test(t),rgbColor:t=>Ur.test(t),rgbaColor:t=>Gr.test(t),rgbOrRgbaColor:t=>Ur.test(t)||Gr.test(t),hexOrRgbColor:t=>Sc.test(t)||Ur.test(t),hexaOrRgbaColor:t=>Ec.test(t)||Gr.test(t),anyColor:t=>kc.test(t)||Ur.test(t)||Gr.test(t)};function $d(t,e=250,n){let r=null;function s(){const o=arguments,u=()=>{r=null,n!==!0&&t.apply(this,o)};r!==null?clearTimeout(r):n===!0&&t.apply(this,o),r=setTimeout(u,e)}return s.cancel=()=>{r!==null&&clearTimeout(r)},s}const nw=[!0,!1,"ondemand"],sw={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],validator:t=>nw.includes(t)}};function rw(t,e){const{props:n,proxy:r}=Gt(),s=ft(!1),o=ft(null),u=ft(null);iw({validate:b,resetValidation:y});let h=0,f;const d=k(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),v=k(()=>n.disable!==!0&&d.value===!0),_=k(()=>n.error===!0||s.value===!0),p=k(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:o.value);Lt(()=>n.modelValue,()=>{x()}),Lt(()=>n.reactiveRules,R=>{R===!0?f===void 0&&(f=Lt(()=>n.rules,()=>{x(!0)})):f!==void 0&&(f(),f=void 0)},{immediate:!0}),Lt(t,R=>{R===!0?u.value===null&&(u.value=!1):u.value===!1&&(u.value=!0,v.value===!0&&n.lazyRules!=="ondemand"&&e.value===!1&&T())});function y(){h++,e.value=!1,u.value=null,s.value=!1,o.value=null,T.cancel()}function b(R=n.modelValue){if(v.value!==!0)return!0;const S=++h,C=e.value!==!0?()=>{u.value=!0}:()=>{},A=(Z,V)=>{Z===!0&&C(),s.value=Z,o.value=V||null,e.value=!1},q=[];for(let Z=0;Z{if(Z===void 0||Array.isArray(Z)===!1||Z.length===0)return S===h&&A(!1),!0;const V=Z.find(N=>N===!1||typeof N=="string");return S===h&&A(V!==void 0,V),V===void 0},Z=>(S===h&&(console.error(Z),A(!0)),!1)))}function x(R){v.value===!0&&n.lazyRules!=="ondemand"&&(u.value===!0||n.lazyRules!==!0&&R!==!0)&&T()}const T=$d(b,0);return ve(()=>{f!==void 0&&f(),T.cancel()}),Object.assign(r,{resetValidation:y,validate:b}),gs(r,"hasError",()=>_.value),{isDirtyModel:u,hasRules:d,hasError:_,errorMessage:p,validate:b,resetValidation:y}}const Ac=/^on[A-Z]/;function aw(t,e){const n={listeners:ft({}),attributes:ft({})};function r(){const s={},o={};for(const u in t)u!=="class"&&u!=="style"&&Ac.test(u)===!1&&(s[u]=t[u]);for(const u in e.props)Ac.test(u)===!0&&(o[u]=e.props[u]);n.attributes.value=s,n.listeners.value=o}return gf(r),r(),n}function cl(t){return t===void 0?`f_${rd()}`:t}function fl(t){return t!=null&&(""+t).length!==0}const ow={...On,...sw,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String]},lw=["update:modelValue","clear","focus","blur","popupShow","popupHide"];function uw(){const{props:t,attrs:e,proxy:n,vnode:r}=Gt();return{isDark:In(t,n.$q),editable:k(()=>t.disable!==!0&&t.readonly!==!0),innerLoading:ft(!1),focused:ft(!1),hasPopupOpen:!1,splitAttrs:aw(e,r),targetUid:ft(cl(t.for)),rootRef:ft(null),targetRef:ft(null),controlRef:ft(null)}}function hw(t){const{props:e,emit:n,slots:r,attrs:s,proxy:o}=Gt(),{$q:u}=o;let h=null;t.hasValue===void 0&&(t.hasValue=k(()=>fl(e.modelValue))),t.emitValue===void 0&&(t.emitValue=U=>{n("update:modelValue",U)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:I,onFocusout:F}),Object.assign(t,{clearValue:W,onControlFocusin:I,onControlFocusout:F,focus:V}),t.computedCounter===void 0&&(t.computedCounter=k(()=>{if(e.counter!==!1){const U=typeof e.modelValue=="string"||typeof e.modelValue=="number"?(""+e.modelValue).length:Array.isArray(e.modelValue)===!0?e.modelValue.length:0,j=e.maxlength!==void 0?e.maxlength:e.maxValues;return U+(j!==void 0?" / "+j:"")}}));const{isDirtyModel:f,hasRules:d,hasError:v,errorMessage:_,resetValidation:p}=rw(t.focused,t.innerLoading),y=t.floatingLabel!==void 0?k(()=>e.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):k(()=>e.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),b=k(()=>e.bottomSlots===!0||e.hint!==void 0||d.value===!0||e.counter===!0||e.error!==null),x=k(()=>e.filled===!0?"filled":e.outlined===!0?"outlined":e.borderless===!0?"borderless":e.standout?"standout":"standard"),T=k(()=>`q-field row no-wrap items-start q-field--${x.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(e.rounded===!0?" q-field--rounded":"")+(e.square===!0?" q-field--square":"")+(y.value===!0?" q-field--float":"")+(S.value===!0?" q-field--labeled":"")+(e.dense===!0?" q-field--dense":"")+(e.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(t.isDark.value===!0?" q-field--dark":"")+(t.getControl===void 0?" q-field--auto-height":"")+(t.focused.value===!0?" q-field--focused":"")+(v.value===!0?" q-field--error":"")+(v.value===!0||t.focused.value===!0?" q-field--highlighted":"")+(e.hideBottomSpace!==!0&&b.value===!0?" q-field--with-bottom":"")+(e.disable===!0?" q-field--disabled":e.readonly===!0?" q-field--readonly":"")),R=k(()=>"q-field__control relative-position row no-wrap"+(e.bgColor!==void 0?` bg-${e.bgColor}`:"")+(v.value===!0?" text-negative":typeof e.standout=="string"&&e.standout.length!==0&&t.focused.value===!0?` ${e.standout}`:e.color!==void 0?` text-${e.color}`:"")),S=k(()=>e.labelSlot===!0||e.label!==void 0),C=k(()=>"q-field__label no-pointer-events absolute ellipsis"+(e.labelColor!==void 0&&v.value!==!0?` text-${e.labelColor}`:"")),A=k(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:y.value,modelValue:e.modelValue,emitValue:t.emitValue})),q=k(()=>{const U={for:t.targetUid.value};return e.disable===!0?U["aria-disabled"]="true":e.readonly===!0&&(U["aria-readonly"]="true"),U});Lt(()=>e.for,U=>{t.targetUid.value=cl(U)});function Z(){const U=document.activeElement;let j=t.targetRef!==void 0&&t.targetRef.value;j&&(U===null||U.id!==t.targetUid.value)&&(j.hasAttribute("tabindex")===!0||(j=j.querySelector("[tabindex]")),j&&j!==U&&j.focus({preventScroll:!0}))}function V(){ql(Z)}function N(){mg(Z);const U=document.activeElement;U!==null&&t.rootRef.value.contains(U)&&U.blur()}function I(U){h!==null&&(clearTimeout(h),h=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,n("focus",U))}function F(U,j){h!==null&&clearTimeout(h),h=setTimeout(()=>{h=null,!(document.hasFocus()===!0&&(t.hasPopupOpen===!0||t.controlRef===void 0||t.controlRef.value===null||t.controlRef.value.contains(document.activeElement)!==!1))&&(t.focused.value===!0&&(t.focused.value=!1,n("blur",U)),j!==void 0&&j())})}function W(U){me(U),u.platform.is.mobile!==!0?(t.targetRef!==void 0&&t.targetRef.value||t.rootRef.value).focus():t.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),e.type==="file"&&(t.inputRef.value.value=null),n("update:modelValue",null),n("clear",e.modelValue),Me(()=>{p(),u.platform.is.mobile!==!0&&(f.value=!1)})}function P(){const U=[];return r.prepend!==void 0&&U.push(J("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Je},r.prepend())),U.push(J("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},$())),v.value===!0&&e.noErrorIcon===!1&&U.push(nt("error",[J(je,{name:u.iconSet.field.error,color:"negative"})])),e.loading===!0||t.innerLoading.value===!0?U.push(nt("inner-loading-append",r.loading!==void 0?r.loading():[J(Fd,{color:e.color})])):e.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&U.push(nt("inner-clearable-append",[J(je,{class:"q-field__focusable-action",tag:"button",name:e.clearIcon||u.iconSet.field.clear,tabindex:0,type:"button","aria-hidden":null,role:null,onClick:W})])),r.append!==void 0&&U.push(J("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Je},r.append())),t.getInnerAppend!==void 0&&U.push(nt("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&U.push(t.getControlChild()),U}function $(){const U=[];return e.prefix!==void 0&&e.prefix!==null&&U.push(J("div",{class:"q-field__prefix no-pointer-events row items-center"},e.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&U.push(t.getShadowControl()),t.getControl!==void 0?U.push(t.getControl()):r.rawControl!==void 0?U.push(r.rawControl()):r.control!==void 0&&U.push(J("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":e.autofocus===!0||void 0},r.control(A.value))),S.value===!0&&U.push(J("div",{class:C.value},Ne(r.label,e.label))),e.suffix!==void 0&&e.suffix!==null&&U.push(J("div",{class:"q-field__suffix no-pointer-events row items-center"},e.suffix)),U.concat(Ne(r.default))}function z(){let U,j;v.value===!0?_.value!==null?(U=[J("div",{role:"alert"},_.value)],j=`q--slot-error-${_.value}`):(U=Ne(r.error),j="q--slot-error"):(e.hideHint!==!0||t.focused.value===!0)&&(e.hint!==void 0?(U=[J("div",e.hint)],j=`q--slot-hint-${e.hint}`):(U=Ne(r.hint),j="q--slot-hint"));const Bt=e.counter===!0||r.counter!==void 0;if(e.hideBottomSpace===!0&&Bt===!1&&U===void 0)return;const ot=J("div",{key:j,class:"q-field__messages col"},U);return J("div",{class:"q-field__bottom row items-start q-field__bottom--"+(e.hideBottomSpace!==!0?"animated":"stale"),onClick:Je},[e.hideBottomSpace===!0?ot:J(ps,{name:"q-transition--field-message"},()=>ot),Bt===!0?J("div",{class:"q-field__counter"},r.counter!==void 0?r.counter():t.computedCounter.value):null])}function nt(U,j){return j===null?null:J("div",{key:U,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},j)}let it=!1;return hr(()=>{it=!0}),El(()=>{it===!0&&e.autofocus===!0&&o.focus()}),Ce(()=>{zi.value===!0&&e.for===void 0&&(t.targetUid.value=cl()),e.autofocus===!0&&o.focus()}),ve(()=>{h!==null&&clearTimeout(h)}),Object.assign(o,{focus:V,blur:N}),function(){const j=t.getControl===void 0&&r.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":e.autofocus===!0||void 0,...q.value}:q.value;return J("label",{ref:t.rootRef,class:[T.value,s.class],style:s.style,...j},[r.before!==void 0?J("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Je},r.before()):null,J("div",{class:"q-field__inner relative-position col self-stretch"},[J("div",{ref:t.controlRef,class:R.value,tabindex:-1,...t.controlEvents},P()),b.value===!0?z():null]),r.after!==void 0?J("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Je},r.after()):null])}}const Oc={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Ca={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleLowerCase()}},Dd=Object.keys(Ca);Dd.forEach(t=>{Ca[t].regex=new RegExp(Ca[t].pattern)});const cw=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Dd.join("")+"])|(.)","g"),Ic=/[.*+?^${}()|[\]\\]/g,le=String.fromCharCode(1),fw={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function dw(t,e,n,r){let s,o,u,h,f,d;const v=ft(null),_=ft(y());function p(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}Lt(()=>t.type+t.autogrow,x),Lt(()=>t.mask,I=>{if(I!==void 0)T(_.value,!0);else{const F=V(_.value);x(),t.modelValue!==F&&e("update:modelValue",F)}}),Lt(()=>t.fillMask+t.reverseFillMask,()=>{v.value===!0&&T(_.value,!0)}),Lt(()=>t.unmaskedValue,()=>{v.value===!0&&T(_.value)});function y(){if(x(),v.value===!0){const I=q(V(t.modelValue));return t.fillMask!==!1?N(I):I}return t.modelValue}function b(I){if(I-1){for(let $=I-W.length;$>0;$--)F+=le;W=W.slice(0,P)+F+W.slice(P)}return W}function x(){if(v.value=t.mask!==void 0&&t.mask.length!==0&&p(),v.value===!1){h=void 0,s="",o="";return}const I=Oc[t.mask]===void 0?t.mask:Oc[t.mask],F=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",W=F.replace(Ic,"\\$&"),P=[],$=[],z=[];let nt=t.reverseFillMask===!0,it="",U="";I.replace(cw,(bt,G,St,zt,Mt)=>{if(zt!==void 0){const ct=Ca[zt];z.push(ct),U=ct.negate,nt===!0&&($.push("(?:"+U+"+)?("+ct.pattern+"+)?(?:"+U+"+)?("+ct.pattern+"+)?"),nt=!1),$.push("(?:"+U+"+)?("+ct.pattern+")?")}else if(St!==void 0)it="\\"+(St==="\\"?"":St),z.push(St),P.push("([^"+it+"]+)?"+it+"?");else{const ct=G!==void 0?G:Mt;it=ct==="\\"?"\\\\\\\\":ct.replace(Ic,"\\\\$&"),z.push(ct),P.push("([^"+it+"]+)?"+it+"?")}});const j=new RegExp("^"+P.join("")+"("+(it===""?".":"[^"+it+"]")+"+)?"+(it===""?"":"["+it+"]*")+"$"),Bt=$.length-1,ot=$.map((bt,G)=>G===0&&t.reverseFillMask===!0?new RegExp("^"+W+"*"+bt):G===Bt?new RegExp("^"+bt+"("+(U===""?".":U)+"+)?"+(t.reverseFillMask===!0?"$":W+"*")):new RegExp("^"+bt));u=z,h=bt=>{const G=j.exec(t.reverseFillMask===!0?bt:bt.slice(0,z.length+1));G!==null&&(bt=G.slice(1).join(""));const St=[],zt=ot.length;for(let Mt=0,ct=bt;Mttypeof bt=="string"?bt:le).join(""),o=s.split(le).join(F)}function T(I,F,W){const P=r.value,$=P.selectionEnd,z=P.value.length-$,nt=V(I);F===!0&&x();const it=q(nt),U=t.fillMask!==!1?N(it):it,j=_.value!==U;P.value!==U&&(P.value=U),j===!0&&(_.value=U),document.activeElement===P&&Me(()=>{if(U===o){const ot=t.reverseFillMask===!0?o.length:0;P.setSelectionRange(ot,ot,"forward");return}if(W==="insertFromPaste"&&t.reverseFillMask!==!0){const ot=P.selectionEnd;let bt=$-1;for(let G=f;G<=bt&&G-1){const ot=t.reverseFillMask===!0?$===0?U.length>it.length?1:0:Math.max(0,U.length-(U===o?0:Math.min(it.length,z)+1))+1:$;P.setSelectionRange(ot,ot,"forward");return}if(t.reverseFillMask===!0)if(j===!0){const ot=Math.max(0,U.length-(U===o?0:Math.min(it.length,z+1)));ot===1&&$===1?P.setSelectionRange(ot,ot,"forward"):S.rightReverse(P,ot)}else{const ot=U.length-z;P.setSelectionRange(ot,ot,"backward")}else if(j===!0){const ot=Math.max(0,s.indexOf(le),Math.min(it.length,$)-1);S.right(P,ot)}else{const ot=$-1;S.right(P,ot)}});const Bt=t.unmaskedValue===!0?V(U):U;String(t.modelValue)!==Bt&&n(Bt,!0)}function R(I,F,W){const P=q(V(I.value));F=Math.max(0,s.indexOf(le),Math.min(P.length,F)),f=F,I.setSelectionRange(F,W,"forward")}const S={left(I,F){const W=s.slice(F-1).indexOf(le)===-1;let P=Math.max(0,F-1);for(;P>=0;P--)if(s[P]===le){F=P,W===!0&&F++;break}if(P<0&&s[F]!==void 0&&s[F]!==le)return S.right(I,0);F>=0&&I.setSelectionRange(F,F,"backward")},right(I,F){const W=I.value.length;let P=Math.min(W,F+1);for(;P<=W;P++)if(s[P]===le){F=P;break}else s[P-1]===le&&(F=P);if(P>W&&s[F-1]!==void 0&&s[F-1]!==le)return S.left(I,W);I.setSelectionRange(F,F,"forward")},leftReverse(I,F){const W=b(I.value.length);let P=Math.max(0,F-1);for(;P>=0;P--)if(W[P-1]===le){F=P;break}else if(W[P]===le&&(F=P,P===0))break;if(P<0&&W[F]!==void 0&&W[F]!==le)return S.rightReverse(I,0);F>=0&&I.setSelectionRange(F,F,"backward")},rightReverse(I,F){const W=I.value.length,P=b(W),$=P.slice(0,F+1).indexOf(le)===-1;let z=Math.min(W,F+1);for(;z<=W;z++)if(P[z-1]===le){F=z,F>0&&$===!0&&F--;break}if(z>W&&P[F-1]!==void 0&&P[F-1]!==le)return S.leftReverse(I,W);I.setSelectionRange(F,F,"forward")}};function C(I){e("click",I),d=void 0}function A(I){if(e("keydown",I),Bl(I)===!0)return;const F=r.value,W=F.selectionStart,P=F.selectionEnd;if(I.shiftKey||(d=void 0),I.keyCode===37||I.keyCode===39){I.shiftKey&&d===void 0&&(d=F.selectionDirection==="forward"?W:P);const $=S[(I.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(I.preventDefault(),$(F,d===W?P:W),I.shiftKey){const z=F.selectionStart;F.setSelectionRange(Math.min(d,z),Math.max(d,z),"forward")}}else I.keyCode===8&&t.reverseFillMask!==!0&&W===P?(S.left(F,W),F.setSelectionRange(F.selectionStart,P,"backward")):I.keyCode===46&&t.reverseFillMask===!0&&W===P&&(S.rightReverse(F,P),F.setSelectionRange(W,F.selectionEnd,"forward"))}function q(I){if(I==null||I==="")return"";if(t.reverseFillMask===!0)return Z(I);const F=u;let W=0,P="";for(let $=0;$=0&&P>-1;z--){const nt=F[z];let it=I[P];if(typeof nt=="string")$=nt+$,it===nt&&P--;else if(it!==void 0&&nt.regex.test(it))do $=(nt.transform!==void 0?nt.transform(it):it)+$,P--,it=I[P];while(W===z&&it!==void 0&&nt.regex.test(it));else return $}return $}function V(I){return typeof I!="string"||h===void 0?typeof I=="number"?h(""+I):I:h(I)}function N(I){return o.length-I.length<=0?I:t.reverseFillMask===!0&&I.length!==0?o.slice(0,-I.length)+I:I+o.slice(I.length)}return{innerValue:_,hasMask:v,moveCursorForPaste:R,updateMaskValue:T,onMaskedKeydown:A,onMaskedClick:C}}function mw(t,e){function n(){const r=t.modelValue;try{const s="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(r)===r&&("length"in r?Array.from(r):[r]).forEach(o=>{s.items.add(o)}),{files:s.files}}catch{return{files:void 0}}}return k(e===!0?()=>{if(t.type==="file")return n()}:n)}const vw=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,_w=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,pw=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,gw=/[a-z0-9_ -]$/i;function yw(t){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,t(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(Qt.is.firefox===!0?gw.test(n.data)===!1:vw.test(n.data)===!0||_w.test(n.data)===!0||pw.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}const na=_e({name:"QInput",inheritAttrs:!1,props:{...ow,...fw,...Va,modelValue:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...lw,"paste","change","keydown","click","animationend"],setup(t,{emit:e,attrs:n}){const{proxy:r}=Gt(),{$q:s}=r,o={};let u=NaN,h,f,d=null,v;const _=ft(null),p=Qg(t),{innerValue:y,hasMask:b,moveCursorForPaste:x,updateMaskValue:T,onMaskedKeydown:R,onMaskedClick:S}=dw(t,e,it,_),C=mw(t,!0),A=k(()=>fl(y.value)),q=yw(z),Z=uw(),V=k(()=>t.type==="textarea"||t.autogrow===!0),N=k(()=>V.value===!0||["text","search","url","tel","password"].includes(t.type)),I=k(()=>{const G={...Z.splitAttrs.listeners.value,onInput:z,onPaste:$,onChange:j,onBlur:Bt,onFocus:Cn};return G.onCompositionstart=G.onCompositionupdate=G.onCompositionend=q,b.value===!0&&(G.onKeydown=R,G.onClick=S),t.autogrow===!0&&(G.onAnimationend=nt),G}),F=k(()=>{const G={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:p.value,...Z.splitAttrs.attributes.value,id:Z.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return V.value===!1&&(G.type=t.type),t.autogrow===!0&&(G.rows=1),G});Lt(()=>t.type,()=>{_.value&&(_.value.value=t.modelValue)}),Lt(()=>t.modelValue,G=>{if(b.value===!0){if(f===!0&&(f=!1,String(G)===u))return;T(G)}else y.value!==G&&(y.value=G,t.type==="number"&&o.hasOwnProperty("value")===!0&&(h===!0?h=!1:delete o.value));t.autogrow===!0&&Me(U)}),Lt(()=>t.autogrow,G=>{G===!0?Me(U):_.value!==null&&n.rows>0&&(_.value.style.height="auto")}),Lt(()=>t.dense,()=>{t.autogrow===!0&&Me(U)});function W(){ql(()=>{const G=document.activeElement;_.value!==null&&_.value!==G&&(G===null||G.id!==Z.targetUid.value)&&_.value.focus({preventScroll:!0})})}function P(){_.value!==null&&_.value.select()}function $(G){if(b.value===!0&&t.reverseFillMask!==!0){const St=G.target;x(St,St.selectionStart,St.selectionEnd)}e("paste",G)}function z(G){if(!G||!G.target)return;if(t.type==="file"){e("update:modelValue",G.target.files);return}const St=G.target.value;if(G.target.qComposing===!0){o.value=St;return}if(b.value===!0)T(St,!1,G.inputType);else if(it(St),N.value===!0&&G.target===document.activeElement){const{selectionStart:zt,selectionEnd:Mt}=G.target;zt!==void 0&&Mt!==void 0&&Me(()=>{G.target===document.activeElement&&St.indexOf(G.target.value)===0&&G.target.setSelectionRange(zt,Mt)})}t.autogrow===!0&&U()}function nt(G){e("animationend",G),U()}function it(G,St){v=()=>{d=null,t.type!=="number"&&o.hasOwnProperty("value")===!0&&delete o.value,t.modelValue!==G&&u!==G&&(u=G,St===!0&&(f=!0),e("update:modelValue",G),Me(()=>{u===G&&(u=NaN)})),v=void 0},t.type==="number"&&(h=!0,o.value=G),t.debounce!==void 0?(d!==null&&clearTimeout(d),o.value=G,d=setTimeout(v,t.debounce)):v()}function U(){requestAnimationFrame(()=>{const G=_.value;if(G!==null){const St=G.parentNode.style,{scrollTop:zt}=G,{overflowY:Mt,maxHeight:ct}=s.platform.is.firefox===!0?{}:window.getComputedStyle(G),Ht=Mt!==void 0&&Mt!=="scroll";Ht===!0&&(G.style.overflowY="hidden"),St.marginBottom=G.scrollHeight-1+"px",G.style.height="1px",G.style.height=G.scrollHeight+"px",Ht===!0&&(G.style.overflowY=parseInt(ct,10){_.value!==null&&(_.value.value=y.value!==void 0?y.value:"")})}function ot(){return o.hasOwnProperty("value")===!0?o.value:y.value!==void 0?y.value:""}ve(()=>{Bt()}),Ce(()=>{t.autogrow===!0&&U()}),Object.assign(Z,{innerValue:y,fieldClass:k(()=>`q-${V.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:k(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:_,emitValue:it,hasValue:A,floatingLabel:k(()=>A.value===!0&&(t.type!=="number"||isNaN(y.value)===!1)||fl(t.displayValue)),getControl:()=>J(V.value===!0?"textarea":"input",{ref:_,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...F.value,...I.value,...t.type!=="file"?{value:ot()}:C.value}),getShadowControl:()=>J("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(V.value===!0?"":" text-no-wrap")},[J("span",{class:"invisible"},ot()),J("span",t.shadowText)])});const bt=hw(Z);return Object.assign(r,{focus:W,select:P,getNativeElement:()=>_.value}),gs(r,"nativeEl",()=>_.value),bt}}),bw=An({__name:"MarkMenu",props:{marks:Array},emits:["flyTo","remove"],setup(t){return(e,n)=>(de(),Ye(ca,{bordered:"",separator:""},{default:At(()=>[(de(!0),us(Re,null,bf(t.marks,(r,s)=>Ri((de(),Ye(Mi,{clickable:"",key:s},{default:At(()=>[yt(Yf,{"touch-position":"","context-menu":""},{default:At(()=>[yt(ca,{dense:"",style:{"min-width":"100px"}},{default:At(()=>[Ri((de(),Ye(Mi,{clickable:""},{default:At(()=>[yt(wi,{onClick:o=>e.$emit("flyTo",s)},{default:At(()=>[Ii("跳转")]),_:2},1032,["onClick"])]),_:2},1024)),[[nr]]),Ri((de(),Ye(Mi,{clickable:""},{default:At(()=>[yt(wi,{onClick:o=>e.$emit("remove",s)},{default:At(()=>[Ii("删除")]),_:2},1032,["onClick"])]),_:2},1024)),[[nr]])]),_:2},1024)]),_:2},1024),yt(wi,{side:""},{default:At(()=>[yt(na,{filled:"",modelValue:r.title,"onUpdate:modelValue":o=>r.title=o},{append:At(()=>[yt(je,{name:{localtion:Pi(qd),equipment:Pi(zd)}[r.type||"localtion"]},null,8,["name"])]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),yt(wi,{side:""},{default:At(()=>[yt(Zl,{color:"blue",modelValue:r.opacity,"onUpdate:modelValue":o=>r.opacity=o,"false-value":0,"true-value":1},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)),[[jl]])),128))]),_:1}))}}),Zd={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},xw=Object.keys(Zd),Mw={align:{type:String,validator:t=>xw.includes(t)}};function ww(t){return k(()=>{const e=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${Zd[e]}`})}const Rc={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Cw={xs:8,sm:10,md:14,lg:20,xl:24},Pw=["button","submit","reset"],Tw=/[^\s]\/[^\s]/,Lw=["flat","outline","push","unelevated"],jd=(t,e)=>t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":e,Sw=t=>{const e=jd(t);return e!==void 0?{[e]:!0}:{}},Ew={...Fl,...Zf,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Lw.reduce((t,e)=>(t[e]=Boolean)&&t,{}),square:Boolean,round:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Mw.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function kw(t){const e=$l(t,Cw),n=ww(t),{hasRouterLink:r,hasLink:s,linkTag:o,linkAttrs:u,navigateOnClick:h}=jf({fallbackTag:"button"}),f=k(()=>{const T=t.fab===!1&&t.fabMini===!1?e.value:{};return t.padding!==void 0?Object.assign({},T,{padding:t.padding.split(/\s+/).map(R=>R in Rc?Rc[R]+"px":R).join(" "),minWidth:"0",minHeight:"0"}):T}),d=k(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),v=k(()=>t.disable!==!0&&t.loading!==!0),_=k(()=>v.value===!0?t.tabindex||0:-1),p=k(()=>jd(t,"standard")),y=k(()=>{const T={tabindex:_.value};return s.value===!0?Object.assign(T,u.value):Pw.includes(t.type)===!0&&(T.type=t.type),o.value==="a"?(t.disable===!0?T["aria-disabled"]="true":T.href===void 0&&(T.role="button"),r.value!==!0&&Tw.test(t.type)===!0&&(T.type=t.type)):t.disable===!0&&(T.disabled="",T["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(T,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),T}),b=k(()=>{let T;t.color!==void 0?t.flat===!0||t.outline===!0?T=`text-${t.textColor||t.color}`:T=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(T=`text-${t.textColor}`);const R=t.round===!0?"round":`rectangle${d.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${p.value} q-btn--${R}`+(T!==void 0?" "+T:"")+(v.value===!0?" q-btn--actionable q-focusable q-hoverable":t.disable===!0?" disabled":"")+(t.fab===!0?" q-btn--fab":t.fabMini===!0?" q-btn--fab-mini":"")+(t.noCaps===!0?" q-btn--no-uppercase":"")+(t.dense===!0?" q-btn--dense":"")+(t.stretch===!0?" no-border-radius self-stretch":"")+(t.glossy===!0?" glossy":"")+(t.square?" q-btn--square":"")}),x=k(()=>n.value+(t.stack===!0?" column":" row")+(t.noWrap===!0?" no-wrap text-no-wrap":"")+(t.loading===!0?" q-btn__content--hidden":""));return{classes:b,style:f,innerClasses:x,attributes:y,hasLink:s,linkTag:o,navigateOnClick:h,isActionable:v}}const{passiveCapture:Ke}=ii;let Hn=null,Wn=null,Un=null;const Aw=_e({name:"QBtn",props:{...Ew,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:e,emit:n}){const{proxy:r}=Gt(),{classes:s,style:o,innerClasses:u,attributes:h,hasLink:f,linkTag:d,navigateOnClick:v,isActionable:_}=kw(t),p=ft(null),y=ft(null);let b=null,x,T=null;const R=k(()=>t.label!==void 0&&t.label!==null&&t.label!==""),S=k(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:f.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),C=k(()=>({center:t.round})),A=k(()=>{const z=Math.max(0,Math.min(100,t.percentage));return z>0?{transition:"transform 0.6s",transform:`translateX(${z-100}%)`}:{}}),q=k(()=>{if(t.loading===!0)return{onMousedown:$,onTouchstart:$,onClick:$,onKeydown:$,onKeyup:$};if(_.value===!0){const z={onClick:V,onKeydown:N,onMousedown:F};if(r.$q.platform.has.touch===!0){const nt=t.onTouchstart!==void 0?"":"Passive";z[`onTouchstart${nt}`]=I}return z}return{onClick:me}}),Z=k(()=>({ref:p,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:o.value,...h.value,...q.value}));function V(z){if(p.value!==null){if(z!==void 0){if(z.defaultPrevented===!0)return;const nt=document.activeElement;if(t.type==="submit"&&nt!==document.body&&p.value.contains(nt)===!1&&nt.contains(p.value)===!1){p.value.focus();const it=()=>{document.removeEventListener("keydown",me,!0),document.removeEventListener("keyup",it,Ke),p.value!==null&&p.value.removeEventListener("blur",it,Ke)};document.addEventListener("keydown",me,!0),document.addEventListener("keyup",it,Ke),p.value.addEventListener("blur",it,Ke)}}v(z)}}function N(z){p.value!==null&&(n("keydown",z),an(z,[13,32])===!0&&Wn!==p.value&&(Wn!==null&&P(),z.defaultPrevented!==!0&&(p.value.focus(),Wn=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("keyup",W,!0),p.value.addEventListener("blur",W,Ke)),me(z)))}function I(z){p.value!==null&&(n("touchstart",z),z.defaultPrevented!==!0&&(Hn!==p.value&&(Hn!==null&&P(),Hn=p.value,b=z.target,b.addEventListener("touchcancel",W,Ke),b.addEventListener("touchend",W,Ke)),x=!0,T!==null&&clearTimeout(T),T=setTimeout(()=>{T=null,x=!1},200)))}function F(z){p.value!==null&&(z.qSkipRipple=x===!0,n("mousedown",z),z.defaultPrevented!==!0&&Un!==p.value&&(Un!==null&&P(),Un=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("mouseup",W,Ke)))}function W(z){if(p.value!==null&&!(z!==void 0&&z.type==="blur"&&document.activeElement===p.value)){if(z!==void 0&&z.type==="keyup"){if(Wn===p.value&&an(z,[13,32])===!0){const nt=new MouseEvent("click",z);nt.qKeyEvent=!0,z.defaultPrevented===!0&&Je(nt),z.cancelBubble===!0&&Cn(nt),p.value.dispatchEvent(nt),me(z),z.qKeyEvent=!0}n("keyup",z)}P()}}function P(z){const nt=y.value;z!==!0&&(Hn===p.value||Un===p.value)&&nt!==null&&nt!==document.activeElement&&(nt.setAttribute("tabindex",-1),nt.focus()),Hn===p.value&&(b!==null&&(b.removeEventListener("touchcancel",W,Ke),b.removeEventListener("touchend",W,Ke)),Hn=b=null),Un===p.value&&(document.removeEventListener("mouseup",W,Ke),Un=null),Wn===p.value&&(document.removeEventListener("keyup",W,!0),p.value!==null&&p.value.removeEventListener("blur",W,Ke),Wn=null),p.value!==null&&p.value.classList.remove("q-btn--active")}function $(z){me(z),z.qSkipRipple=!0}return ve(()=>{P(!0)}),Object.assign(r,{click:V}),()=>{let z=[];t.icon!==void 0&&z.push(J(je,{name:t.icon,left:t.stack===!1&&R.value===!0,role:"img","aria-hidden":"true"})),R.value===!0&&z.push(J("span",{class:"block"},[t.label])),z=Qi(e.default,z),t.iconRight!==void 0&&t.round===!1&&z.push(J(je,{name:t.iconRight,right:t.stack===!1&&R.value===!0,role:"img","aria-hidden":"true"}));const nt=[J("span",{class:"q-focus-helper",ref:y})];return t.loading===!0&&t.percentage!==void 0&&nt.push(J("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[J("span",{class:"q-btn__progress-indicator fit block",style:A.value})])),nt.push(J("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+u.value},z)),t.loading!==null&&nt.push(J(ps,{name:"q-transition--fade"},()=>t.loading===!0?[J("span",{key:"loading",class:"absolute-full flex flex-center"},e.loading!==void 0?e.loading():[J(Fd)])]:null)),Ri(J(d.value,Z.value,nt),[[jl,S.value,void 0,C.value]])}}}),Vd=_e({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(t,{slots:e}){const n=k(()=>{const r=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(s=>t[s]===!0).map(s=>`q-btn-group--${s}`).join(" ");return`q-btn-group row no-wrap${r.length!==0?" "+r:""}`+(t.spread===!0?" q-btn-group--spread":" inline")});return()=>J("div",{class:n.value},Ne(e.default))}}),Ow=_e({name:"QBtnToggle",props:{...Va,modelValue:{required:!0},options:{type:Array,required:!0,validator:t=>t.every(e=>("label"in e||"icon"in e||"slot"in e)&&"value"in e)},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,padding:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,clearable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","clear","click"],setup(t,{slots:e,emit:n}){const r=k(()=>t.options.find(p=>p.value===t.modelValue)!==void 0),s=k(()=>({type:"hidden",name:t.name,value:t.modelValue})),o=Dl(s),u=k(()=>Sw(t)),h=k(()=>({rounded:t.rounded,dense:t.dense,...u.value})),f=k(()=>t.options.map((p,y)=>{const{attrs:b,value:x,slot:T,...R}=p;return{slot:T,props:{key:y,"aria-pressed":x===t.modelValue?"true":"false",...b,...R,...h.value,disable:t.disable===!0||R.disable===!0,color:x===t.modelValue?v(R,"toggleColor"):v(R,"color"),textColor:x===t.modelValue?v(R,"toggleTextColor"):v(R,"textColor"),noCaps:v(R,"noCaps")===!0,noWrap:v(R,"noWrap")===!0,size:v(R,"size"),padding:v(R,"padding"),ripple:v(R,"ripple"),stack:v(R,"stack")===!0,stretch:v(R,"stretch")===!0,onClick(S){d(x,p,S)}}}}));function d(p,y,b){t.readonly!==!0&&(t.modelValue===p?t.clearable===!0&&(n("update:modelValue",null,null),n("clear")):n("update:modelValue",p,y),n("click",b))}function v(p,y){return p[y]===void 0?t[y]:p[y]}function _(){const p=f.value.map(y=>J(Aw,y.props,y.slot!==void 0?e[y.slot]:void 0));return t.name!==void 0&&t.disable!==!0&&r.value===!0&&o(p,"push"),Qi(e.default,p)}return()=>J(Vd,{class:"q-btn-toggle",...u.value,rounded:t.rounded,stretch:t.stretch,glossy:t.glossy,spread:t.spread},_)}}),Wi=_e({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:e}){const n=k(()=>parseInt(t.lines,10)),r=k(()=>"q-item__label"+(t.overline===!0?" q-item__label--overline text-overline":"")+(t.caption===!0?" q-item__label--caption text-caption":"")+(t.header===!0?" q-item__label--header":"")+(n.value===1?" ellipsis":"")),s=k(()=>t.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>J("div",{style:s.value,class:r.value},Ne(e.default))}});function Fo(t,e,n){const r=rn(t);let s,o=r.left-e.event.x,u=r.top-e.event.y,h=Math.abs(o),f=Math.abs(u);const d=e.direction;d.horizontal===!0&&d.vertical!==!0?s=o<0?"left":"right":d.horizontal!==!0&&d.vertical===!0?s=u<0?"up":"down":d.up===!0&&u<0?(s="up",h>f&&(d.left===!0&&o<0?s="left":d.right===!0&&o>0&&(s="right"))):d.down===!0&&u>0?(s="down",h>f&&(d.left===!0&&o<0?s="left":d.right===!0&&o>0&&(s="right"))):d.left===!0&&o<0?(s="left",h0&&(s="down"))):d.right===!0&&o>0&&(s="right",h0&&(s="down")));let v=!1;if(s===void 0&&n===!1){if(e.event.isFirst===!0||e.event.lastDir===void 0)return{};s=e.event.lastDir,v=!0,s==="left"||s==="right"?(r.left-=o,h=0,o=0):(r.top-=u,f=0,u=0)}return{synthetic:v,payload:{evt:t,touch:e.event.mouse!==!0,mouse:e.event.mouse===!0,position:r,direction:s,isFirst:e.event.isFirst,isFinal:n===!0,duration:Date.now()-e.event.time,distance:{x:h,y:f},offset:{x:o,y:u},delta:{x:r.left-e.event.lastX,y:r.top-e.event.lastY}}}}let Iw=0;const Rw=Za({name:"touch-pan",beforeMount(t,{value:e,modifiers:n}){if(n.mouse!==!0&&Qt.has.touch!==!0)return;function r(o,u){n.mouse===!0&&u===!0?me(o):(n.stop===!0&&Cn(o),n.prevent===!0&&Je(o))}const s={uid:"qvtp_"+Iw++,handler:e,modifiers:n,direction:_a(n),noop:sn,mouseStart(o){pa(o,s)&&Vf(o)&&(hi(s,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),s.start(o,!0))},touchStart(o){if(pa(o,s)){const u=o.target;hi(s,"temp",[[u,"touchmove","move","notPassiveCapture"],[u,"touchcancel","end","passiveCapture"],[u,"touchend","end","passiveCapture"]]),s.start(o)}},start(o,u){if(Qt.is.firefox===!0&&ns(t,!0),s.lastEvt=o,u===!0||n.stop===!0){if(s.direction.all!==!0&&(u!==!0||s.modifiers.mouseAllDir!==!0&&s.modifiers.mousealldir!==!0)){const d=o.type.indexOf("mouse")>-1?new MouseEvent(o.type,o):new TouchEvent(o.type,o);o.defaultPrevented===!0&&Je(d),o.cancelBubble===!0&&Cn(d),Object.assign(d,{qKeyEvent:o.qKeyEvent,qClickOutside:o.qClickOutside,qAnchorHandled:o.qAnchorHandled,qClonedBy:o.qClonedBy===void 0?[s.uid]:o.qClonedBy.concat(s.uid)}),s.initialEvent={target:o.target,event:d}}Cn(o)}const{left:h,top:f}=rn(o);s.event={x:h,y:f,time:Date.now(),mouse:u===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:h,lastY:f}},move(o){if(s.event===void 0)return;const u=rn(o),h=u.left-s.event.x,f=u.top-s.event.y;if(h===0&&f===0)return;s.lastEvt=o;const d=s.event.mouse===!0,v=()=>{r(o,d);let y;n.preserveCursor!==!0&&n.preservecursor!==!0&&(y=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),d===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),zl(),s.styleCleanup=b=>{if(s.styleCleanup=void 0,y!==void 0&&(document.documentElement.style.cursor=y),document.body.classList.remove("non-selectable"),d===!0){const x=()=>{document.body.classList.remove("no-pointer-events--children")};b!==void 0?setTimeout(()=>{x(),b()},50):x()}else b!==void 0&&b()}};if(s.event.detected===!0){s.event.isFirst!==!0&&r(o,s.event.mouse);const{payload:y,synthetic:b}=Fo(o,s,!1);y!==void 0&&(s.handler(y)===!1?s.end(o):(s.styleCleanup===void 0&&s.event.isFirst===!0&&v(),s.event.lastX=y.position.left,s.event.lastY=y.position.top,s.event.lastDir=b===!0?void 0:y.direction,s.event.isFirst=!1));return}if(s.direction.all===!0||d===!0&&(s.modifiers.mouseAllDir===!0||s.modifiers.mousealldir===!0)){v(),s.event.detected=!0,s.move(o);return}const _=Math.abs(h),p=Math.abs(f);_!==p&&(s.direction.horizontal===!0&&_>p||s.direction.vertical===!0&&_0||s.direction.left===!0&&_>p&&h<0||s.direction.right===!0&&_>p&&h>0?(s.event.detected=!0,s.move(o)):s.end(o,!0))},end(o,u){if(s.event!==void 0){if(tn(s,"temp"),Qt.is.firefox===!0&&ns(t,!1),u===!0)s.styleCleanup!==void 0&&s.styleCleanup(),s.event.detected!==!0&&s.initialEvent!==void 0&&s.initialEvent.target.dispatchEvent(s.initialEvent.event);else if(s.event.detected===!0){s.event.isFirst===!0&&s.handler(Fo(o===void 0?s.lastEvt:o,s).payload);const{payload:h}=Fo(o===void 0?s.lastEvt:o,s,!0),f=()=>{s.handler(h)};s.styleCleanup!==void 0?s.styleCleanup(f):f()}s.event=void 0,s.initialEvent=void 0,s.lastEvt=void 0}}};if(t.__qtouchpan=s,n.mouse===!0){const o=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";hi(s,"main",[[t,"mousedown","mouseStart",`passive${o}`]])}Qt.has.touch===!0&&hi(s,"main",[[t,"touchstart","touchStart",`passive${n.capture===!0?"Capture":""}`],[t,"touchmove","noop","notPassiveCapture"]])},updated(t,e){const n=t.__qtouchpan;n!==void 0&&(e.oldValue!==e.value&&(typeof value!="function"&&n.end(),n.handler=e.value),n.direction=_a(e.modifiers))},beforeUnmount(t){const e=t.__qtouchpan;e!==void 0&&(e.event!==void 0&&e.end(),tn(e,"main"),tn(e,"temp"),Qt.is.firefox===!0&&ns(t,!1),e.styleCleanup!==void 0&&e.styleCleanup(),delete t.__qtouchpan)}});function bi(t,e,n){return n<=e?e:Math.min(n,Math.max(e,t))}const Nc="q-slider__marker-labels",Nw=t=>({value:t}),Bw=({marker:t})=>J("div",{key:t.value,style:t.style,class:t.classes},t.label),Hd=[34,37,40,33,39,38],zw={...On,...Va,min:{type:Number,default:0},max:{type:Number,default:100},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:t=>t>=0},snap:Boolean,vertical:Boolean,reverse:Boolean,hideSelection:Boolean,color:String,markerLabelsClass:String,label:Boolean,labelColor:String,labelTextColor:String,labelAlways:Boolean,switchLabelSide:Boolean,markers:[Boolean,Number],markerLabels:[Boolean,Array,Object,Function],switchMarkerLabelsSide:Boolean,trackImg:String,trackColor:String,innerTrackImg:String,innerTrackColor:String,selectionColor:String,selectionImg:String,thumbSize:{type:String,default:"20px"},trackSize:{type:String,default:"4px"},disable:Boolean,readonly:Boolean,dense:Boolean,tabindex:[String,Number],thumbColor:String,thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},qw=["pan","update:modelValue","change"];function Fw({updateValue:t,updatePosition:e,getDragging:n,formAttrs:r}){const{props:s,emit:o,slots:u,proxy:{$q:h}}=Gt(),f=In(s,h),d=Dl(r),v=ft(!1),_=ft(!1),p=ft(!1),y=ft(!1),b=k(()=>s.vertical===!0?"--v":"--h"),x=k(()=>"-"+(s.switchLabelSide===!0?"switched":"standard")),T=k(()=>s.vertical===!0?s.reverse===!0:s.reverse!==(h.lang.rtl===!0)),R=k(()=>isNaN(s.innerMin)===!0||s.innerMinisNaN(s.innerMax)===!0||s.innerMax>s.max?s.max:s.innerMax),C=k(()=>s.disable!==!0&&s.readonly!==!0&&R.value(String(s.step).trim().split(".")[1]||"").length),q=k(()=>s.step===0?1:s.step),Z=k(()=>C.value===!0?s.tabindex||0:-1),V=k(()=>s.max-s.min),N=k(()=>S.value-R.value),I=k(()=>ke(R.value)),F=k(()=>ke(S.value)),W=k(()=>s.vertical===!0?T.value===!0?"bottom":"top":T.value===!0?"right":"left"),P=k(()=>s.vertical===!0?"height":"width"),$=k(()=>s.vertical===!0?"width":"height"),z=k(()=>s.vertical===!0?"vertical":"horizontal"),nt=k(()=>{const et={role:"slider","aria-valuemin":R.value,"aria-valuemax":S.value,"aria-orientation":z.value,"data-step":s.step};return s.disable===!0?et["aria-disabled"]="true":s.readonly===!0&&(et["aria-readonly"]="true"),et}),it=k(()=>`q-slider q-slider${b.value} q-slider--${v.value===!0?"":"in"}active inline no-wrap `+(s.vertical===!0?"row":"column")+(s.disable===!0?" disabled":" q-slider--enabled"+(C.value===!0?" q-slider--editable":""))+(p.value==="both"?" q-slider--focus":"")+(s.label||s.labelAlways===!0?" q-slider--label":"")+(s.labelAlways===!0?" q-slider--label-always":"")+(f.value===!0?" q-slider--dark":"")+(s.dense===!0?" q-slider--dense q-slider--dense"+b.value:""));function U(et){const Ct="q-slider__"+et;return`${Ct} ${Ct}${b.value} ${Ct}${b.value}${x.value}`}function j(et){const Ct="q-slider__"+et;return`${Ct} ${Ct}${b.value}`}const Bt=k(()=>{const et=s.selectionColor||s.color;return"q-slider__selection absolute"+(et!==void 0?` text-${et}`:"")}),ot=k(()=>j("markers")+" absolute overflow-hidden"),bt=k(()=>j("track-container")),G=k(()=>U("pin")),St=k(()=>U("label")),zt=k(()=>U("text-container")),Mt=k(()=>U("marker-labels-container")+(s.markerLabelsClass!==void 0?` ${s.markerLabelsClass}`:"")),ct=k(()=>"q-slider__track relative-position no-outline"+(s.trackColor!==void 0?` bg-${s.trackColor}`:"")),Ht=k(()=>{const et={[$.value]:s.trackSize};return s.trackImg!==void 0&&(et.backgroundImage=`url(${s.trackImg}) !important`),et}),pe=k(()=>"q-slider__inner absolute"+(s.innerTrackColor!==void 0?` bg-${s.innerTrackColor}`:"")),wt=k(()=>{const et={[W.value]:`${100*I.value}%`,[P.value]:`${100*(F.value-I.value)}%`};return s.innerTrackImg!==void 0&&(et.backgroundImage=`url(${s.innerTrackImg}) !important`),et});function Pe(et){const{min:Ct,max:Ot,step:$t}=s;let Xt=Ct+et*(Ot-Ct);if($t>0){const di=(Xt-Ct)%$t;Xt+=(Math.abs(di)>=$t/2?(di<0?-1:1)*$t:0)-di}return A.value>0&&(Xt=parseFloat(Xt.toFixed(A.value))),bi(Xt,R.value,S.value)}function ke(et){return V.value===0?0:(et-s.min)/V.value}function M(et,Ct){const Ot=rn(et),$t=s.vertical===!0?bi((Ot.top-Ct.top)/Ct.height,0,1):bi((Ot.left-Ct.left)/Ct.width,0,1);return bi(T.value===!0?1-$t:$t,I.value,F.value)}const E=k(()=>s0(s.markers)===!0?s.markers:q.value),H=k(()=>{const et=[],Ct=E.value,Ot=s.max;let $t=s.min;do et.push($t),$t+=Ct;while($t{const et=` ${Nc}${b.value}-`;return Nc+`${et}${s.switchMarkerLabelsSide===!0?"switched":"standard"}${et}${T.value===!0?"rtl":"ltr"}`}),Q=k(()=>s.markerLabels===!1?null:at(s.markerLabels).map((et,Ct)=>({index:Ct,value:et.value,label:et.label||et.value,classes:X.value+(et.classes!==void 0?" "+et.classes:""),style:{...lt(et.value),...et.style||{}}}))),rt=k(()=>({markerList:Q.value,markerMap:O.value,classes:X.value,getStyle:lt})),ut=k(()=>{if(N.value!==0){const et=100*E.value/N.value;return{...wt.value,backgroundSize:s.vertical===!0?`2px ${et}%`:`${et}% 2px`}}return null});function at(et){if(et===!1)return null;if(et===!0)return H.value.map(Nw);if(typeof et=="function")return H.value.map(Ot=>{const $t=et(Ot);return Ws($t)===!0?{...$t,value:Ot}:{value:Ot,label:$t}});const Ct=({value:Ot})=>Ot>=s.min&&Ot<=s.max;return Array.isArray(et)===!0?et.map(Ot=>Ws(Ot)===!0?Ot:{value:Ot}).filter(Ct):Object.keys(et).map(Ot=>{const $t=et[Ot],Xt=Number(Ot);return Ws($t)===!0?{...$t,value:Xt}:{value:Xt,label:$t}}).filter(Ct)}function lt(et){return{[W.value]:`${100*(et-s.min)/V.value}%`}}const O=k(()=>{if(s.markerLabels===!1)return null;const et={};return Q.value.forEach(Ct=>{et[Ct.value]=Ct}),et});function K(){if(u["marker-label-group"]!==void 0)return u["marker-label-group"](rt.value);const et=u["marker-label"]||Bw;return Q.value.map(Ct=>et({marker:Ct,...rt.value}))}const tt=k(()=>[[Rw,ht,void 0,{[z.value]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]);function ht(et){et.isFinal===!0?(y.value!==void 0&&(e(et.evt),et.touch===!0&&t(!0),y.value=void 0,o("pan","end")),v.value=!1,p.value=!1):et.isFirst===!0?(y.value=n(et.evt),e(et.evt),t(),v.value=!0,o("pan","start")):(e(et.evt),t())}function mt(){p.value=!1}function vt(et){e(et,n(et)),t(),_.value=!0,v.value=!0,document.addEventListener("mouseup",gt,!0)}function gt(){_.value=!1,v.value=!1,t(!0),mt(),document.removeEventListener("mouseup",gt,!0)}function Pt(et){e(et,n(et)),t(!0)}function Dt(et){Hd.includes(et.keyCode)&&t(!0)}function re(et){if(s.vertical===!0)return null;const Ct=h.lang.rtl!==s.reverse?1-et:et;return{transform:`translateX(calc(${2*Ct-1} * ${s.thumbSize} / 2 + ${50-100*Ct}%))`}}function De(et){const Ct=k(()=>_.value===!1&&(p.value===et.focusValue||p.value==="both")?" q-slider--focus":""),Ot=k(()=>`q-slider__thumb q-slider__thumb${b.value} q-slider__thumb${b.value}-${T.value===!0?"rtl":"ltr"} absolute non-selectable`+Ct.value+(et.thumbColor.value!==void 0?` text-${et.thumbColor.value}`:"")),$t=k(()=>({width:s.thumbSize,height:s.thumbSize,[W.value]:`${100*et.ratio.value}%`,zIndex:p.value===et.focusValue?2:void 0})),Xt=k(()=>et.labelColor.value!==void 0?` text-${et.labelColor.value}`:""),di=k(()=>re(et.ratio.value)),bs=k(()=>"q-slider__text"+(et.labelTextColor.value!==void 0?` text-${et.labelTextColor.value}`:""));return()=>{const Rn=[J("svg",{class:"q-slider__thumb-shape absolute-full",viewBox:"0 0 20 20","aria-hidden":"true"},[J("path",{d:s.thumbPath})]),J("div",{class:"q-slider__focus-ring fit"})];return(s.label===!0||s.labelAlways===!0)&&(Rn.push(J("div",{class:G.value+" absolute fit no-pointer-events"+Xt.value},[J("div",{class:St.value,style:{minWidth:s.thumbSize}},[J("div",{class:zt.value,style:di.value},[J("span",{class:bs.value},et.label.value)])])])),s.name!==void 0&&s.disable!==!0&&d(Rn,"push")),J("div",{class:Ot.value,style:$t.value,...et.getNodeData()},Rn)}}function $i(et,Ct,Ot,$t){const Xt=[];s.innerTrackColor!=="transparent"&&Xt.push(J("div",{key:"inner",class:pe.value,style:wt.value})),s.selectionColor!=="transparent"&&Xt.push(J("div",{key:"selection",class:Bt.value,style:et.value})),s.markers!==!1&&Xt.push(J("div",{key:"marker",class:ot.value,style:ut.value})),$t(Xt);const di=[qf("div",{key:"trackC",class:bt.value,tabindex:Ct.value,...Ot.value},[J("div",{class:ct.value,style:Ht.value},Xt)],"slide",C.value,()=>tt.value)];if(s.markerLabels!==!1){const bs=s.switchMarkerLabelsSide===!0?"unshift":"push";di[bs](J("div",{key:"markerL",class:Mt.value},K()))}return di}return ve(()=>{document.removeEventListener("mouseup",gt,!0)}),{state:{active:v,focus:p,preventFocus:_,dragging:y,editable:C,classes:it,tabindex:Z,attributes:nt,step:q,decimals:A,trackLen:V,innerMin:R,innerMinRatio:I,innerMax:S,innerMaxRatio:F,positionProp:W,sizeProp:P,isReversed:T},methods:{onActivate:vt,onMobileClick:Pt,onBlur:mt,onKeyup:Dt,getContent:$i,getThumbRenderFn:De,convertRatioToModel:Pe,convertModelToRatio:ke,getDraggingRatio:M}}}const Ui={MIN:0,RANGE:1,MAX:2},$w=_e({name:"QRange",props:{...zw,modelValue:{type:Object,default:()=>({min:null,max:null}),validator:t=>"min"in t&&"max"in t},dragRange:Boolean,dragOnlyRange:Boolean,leftLabelColor:String,leftLabelTextColor:String,rightLabelColor:String,rightLabelTextColor:String,leftLabelValue:[String,Number],rightLabelValue:[String,Number],leftThumbColor:String,rightThumbColor:String},emits:qw,setup(t,{emit:e}){const{proxy:{$q:n}}=Gt(),{state:r,methods:s}=Fw({updateValue:N,updatePosition:F,getDragging:I,formAttrs:k(()=>({type:"hidden",name:t.name,value:`${t.modelValue.min}|${t.modelValue.max}`}))}),o=ft(null),u=ft(0),h=ft(0),f=ft({min:0,max:0});function d(){f.value.min=t.modelValue.min===null?r.innerMin.value:bi(t.modelValue.min,r.innerMin.value,r.innerMax.value),f.value.max=t.modelValue.max===null?r.innerMax.value:bi(t.modelValue.max,r.innerMin.value,r.innerMax.value)}Lt(()=>`${t.modelValue.min}|${t.modelValue.max}|${r.innerMin.value}|${r.innerMax.value}`,d),d();const v=k(()=>s.convertModelToRatio(f.value.min)),_=k(()=>s.convertModelToRatio(f.value.max)),p=k(()=>r.active.value===!0?u.value:v.value),y=k(()=>r.active.value===!0?h.value:_.value),b=k(()=>{const P={[r.positionProp.value]:`${100*p.value}%`,[r.sizeProp.value]:`${100*(y.value-p.value)}%`};return t.selectionImg!==void 0&&(P.backgroundImage=`url(${t.selectionImg}) !important`),P}),x=k(()=>{if(r.editable.value!==!0)return{};if(n.platform.is.mobile===!0)return{onClick:s.onMobileClick};const P={onMousedown:s.onActivate};return(t.dragRange===!0||t.dragOnlyRange===!0)&&Object.assign(P,{onFocus:()=>{r.focus.value="both"},onBlur:s.onBlur,onKeydown:W,onKeyup:s.onKeyup}),P});function T(P){return n.platform.is.mobile!==!0&&r.editable.value===!0&&t.dragOnlyRange!==!0?{onFocus:()=>{r.focus.value=P},onBlur:s.onBlur,onKeydown:W,onKeyup:s.onKeyup}:{}}const R=k(()=>t.dragOnlyRange!==!0?r.tabindex.value:null),S=k(()=>n.platform.is.mobile!==!0&&(t.dragRange||t.dragOnlyRange===!0)?r.tabindex.value:null),C=ft(null),A=k(()=>T("min")),q=s.getThumbRenderFn({focusValue:"min",getNodeData:()=>({ref:C,key:"tmin",...A.value,tabindex:R.value}),ratio:p,label:k(()=>t.leftLabelValue!==void 0?t.leftLabelValue:f.value.min),thumbColor:k(()=>t.leftThumbColor||t.thumbColor||t.color),labelColor:k(()=>t.leftLabelColor||t.labelColor),labelTextColor:k(()=>t.leftLabelTextColor||t.labelTextColor)}),Z=k(()=>T("max")),V=s.getThumbRenderFn({focusValue:"max",getNodeData:()=>({...Z.value,key:"tmax",tabindex:R.value}),ratio:y,label:k(()=>t.rightLabelValue!==void 0?t.rightLabelValue:f.value.max),thumbColor:k(()=>t.rightThumbColor||t.thumbColor||t.color),labelColor:k(()=>t.rightLabelColor||t.labelColor),labelTextColor:k(()=>t.rightLabelTextColor||t.labelTextColor)});function N(P){(f.value.min!==t.modelValue.min||f.value.max!==t.modelValue.max)&&e("update:modelValue",{...f.value}),P===!0&&e("change",{...f.value})}function I(P){const{left:$,top:z,width:nt,height:it}=o.value.getBoundingClientRect(),U=t.dragOnlyRange===!0?0:t.vertical===!0?C.value.offsetHeight/(2*it):C.value.offsetWidth/(2*nt),j={left:$,top:z,width:nt,height:it,valueMin:f.value.min,valueMax:f.value.max,ratioMin:v.value,ratioMax:_.value},Bt=s.getDraggingRatio(P,j);return t.dragOnlyRange!==!0&&Bt=$.ratioMin?(z={minR:$.ratioMin,maxR:nt,min:$.valueMin,max:it},r.focus.value="max"):(z={minR:nt,maxR:$.ratioMin,min:it,max:$.valueMin},r.focus.value="min");break;case Ui.RANGE:const U=nt-$.offsetRatio,j=bi($.ratioMin+U,0,1-$.rangeRatio),Bt=it-$.offsetModel,ot=bi($.valueMin+Bt,t.min,t.max-$.rangeValue);z={minR:j,maxR:j+$.rangeRatio,min:parseFloat(ot.toFixed(r.decimals.value)),max:parseFloat((ot+$.rangeValue).toFixed(r.decimals.value))},r.focus.value="both";break}f.value=f.value.min===null||f.value.max===null?{min:z.min||t.min,max:z.max||t.max}:{min:z.min,max:z.max},t.snap!==!0||t.step===0?(u.value=z.minR,h.value=z.maxR):(u.value=s.convertModelToRatio(f.value.min),h.value=s.convertModelToRatio(f.value.max))}function W(P){if(!Hd.includes(P.keyCode))return;me(P);const $=([34,33].includes(P.keyCode)?10:1)*r.step.value,z=([34,37,40].includes(P.keyCode)?-1:1)*(r.isReversed.value===!0?-1:1)*(t.vertical===!0?-1:1)*$;if(r.focus.value==="both"){const nt=f.value.max-f.value.min,it=bi(parseFloat((f.value.min+z).toFixed(r.decimals.value)),r.innerMin.value,r.innerMax.value-nt);f.value={min:it,max:parseFloat((it+nt).toFixed(r.decimals.value))}}else{if(r.focus.value===!1)return;{const nt=r.focus.value;f.value={...f.value,[nt]:bi(parseFloat((f.value[nt]+z).toFixed(r.decimals.value)),nt==="min"?r.innerMin.value:f.value.min,nt==="max"?r.innerMax.value:f.value.max)}}}N()}return()=>{const P=s.getContent(b,S,x,$=>{$.push(q(),V())});return J("div",{ref:o,class:"q-range "+r.classes.value+(t.modelValue.min===null||t.modelValue.max===null?" q-slider--no-value":""),...r.attributes.value,"aria-valuenow":t.modelValue.min+"|"+t.modelValue.max},P)}}}),Dw=An({__name:"CtrlMenu",emits:["change"],setup(t,{emit:e}){const n=Ad(),r=ft("gaode"),s=ft(n("gaode"));return Lt(r,o=>s.value=n(o)),Lt(s,o=>e("change",o),{deep:!0}),(o,u)=>(de(),Ye(ca,null,{default:At(()=>[yt(Mi,null,{default:At(()=>[yt(Vd,{push:""},{default:At(()=>[yt(Ow,{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=h=>r.value=h),"toggle-color":"primary",options:[{label:"百度",value:"baidu"},{label:"高德",value:"gaode"},{label:"高德在线",value:"gaodeLine"}]},null,8,["modelValue"])]),_:1})]),_:1}),Ri((de(),Ye(Mi,{clickable:""},{default:At(()=>[yt(wi,null,{default:At(()=>[yt(Wi,null,{default:At(()=>[Ii("缩放控制")]),_:1}),yt(Wi,{caption:""},{default:At(()=>[yt($w,{"model-value":{max:s.value.maxZoom,min:s.value.minZoom},"onUpdate:modelValue":u[1]||(u[1]=({max:h,min:f})=>{s.value.maxZoom=h,s.value.minZoom=f}),min:3,max:19,color:"deep-orange","label-always":"",markers:"","switch-label-side":""},null,8,["model-value"])]),_:1})]),_:1})]),_:1})),[[nr]]),yt(Mi,null,{default:At(()=>[yt(wi,null,{default:At(()=>[yt(Wi,null,{default:At(()=>[Ii("访问地址")]),_:1}),yt(Wi,{caption:""},{default:At(()=>[yt(na,{modelValue:s.value.urlTemplate,"onUpdate:modelValue":u[2]||(u[2]=h=>s.value.urlTemplate=h)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),yt(Mi,null,{default:At(()=>[yt(wi,null,{default:At(()=>[yt(Wi,null,{default:At(()=>[Ii("失败图片")]),_:1}),yt(Wi,{caption:""},{default:At(()=>[yt(na,{modelValue:s.value.errorTileUrl,"onUpdate:modelValue":u[3]||(u[3]=h=>s.value.errorTileUrl=h)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),yt(Mi,null,{default:At(()=>[yt(wi,null,{default:At(()=>[yt(Wi,null,{default:At(()=>[Ii("缩放倍数")]),_:1}),yt(Wi,{caption:""},{default:At(()=>[yt(na,{modelValue:s.value.zoomSnap,"onUpdate:modelValue":u[4]||(u[4]=h=>s.value.zoomSnap=h),modelModifiers:{number:!0},type:"number"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}))}}),Zw=t=>(C_("data-v-1ce28baa"),t=t(),P_(),t),jw=Zw(()=>tr("h5",{class:"logo"},"离线地图",-1)),Vw={class:"bar"},Hw={class:"left"},Ww=An({__name:"App",setup(t){const e=ft(),n=QM([{latlng:[39.926474,116.403283],title:"北京故宫",opacity:1}]),r=ft("mark"),s=ft("20em,logo"),{width:o}=jM(),u=ft();pf(()=>{s.value=o.value>600?"20em,logo":"0em,bar"});function h(p){const y=p.split(",");document.body.style.setProperty("--side",y[0]),document.body.style.setProperty("--logoOrBar",y[1])}Lt(s,h);function f(p,y){const{latlng:b}=p;n.value.push({latlng:[b.lat,b.lng],title:"新标点",opacity:1,type:y})}function d(p){n.value.splice(p,1)}function v(p){u.value.center=n.value[p].latlng}function _(p){u.value=p}return(p,y)=>(de(),us(Re,null,[jw,yt(VM,{ref_key:"map",ref:e,modelValue:u.value,"onUpdate:modelValue":y[0]||(y[0]=b=>u.value=b)},{default:At(({contextmenu:b})=>[yt(Yf,{"touch-position":"","context-menu":""},{default:At(()=>[yt(ca,{dense:"",style:{"min-width":"100px"}},{default:At(()=>[Ri((de(),Ye(Mi,{clickable:""},{default:At(()=>[yt(wi,{onClick:x=>f(b,"localtion")},{default:At(()=>[Ii("添加标点")]),_:2},1032,["onClick"])]),_:2},1024)),[[nr]]),Ri((de(),Ye(Mi,{clickable:""},{default:At(()=>[yt(wi,{onClick:x=>f(b,"equipment")},{default:At(()=>[Ii("添加设备")]),_:2},1032,["onClick"])]),_:2},1024)),[[nr]])]),_:2},1024)]),_:2},1024),(de(!0),us(Re,null,bf(Pi(n),(x,T)=>(de(),Ye(GM,{key:T,latlng:x.latlng,title:x.title,opacity:x.opacity,ref_for:!0,ref:`mark-${T}`},{default:At(()=>[x.type==="equipment"?(de(),Ye(je,{key:0,name:Pi(zd),size:"md"},null,8,["name"])):If("",!0)]),_:2},1032,["latlng","title","opacity"]))),128))]),_:1},8,["modelValue"]),tr("div",Vw,[yt(YM)]),tr("div",Hw,[yt(Zl,{class:"leftctl",modelValue:s.value,"onUpdate:modelValue":y[1]||(y[1]=b=>s.value=b),"true-value":"20em,logo","false-value":"0em,bar"},null,8,["modelValue"]),yt(d0,{modelValue:r.value,"onUpdate:modelValue":y[2]||(y[2]=b=>r.value=b),dense:"","active-color":"primary","indicator-color":"primary",align:"justify","narrow-indicator":""},{default:At(()=>[yt(Xh,{name:"mark",label:"标点"}),yt(Xh,{name:"ctrl",label:"控制"})]),_:1},8,["modelValue"]),yt(w0,{modelValue:r.value,"onUpdate:modelValue":y[3]||(y[3]=b=>r.value=b),animated:"","keep-alive":""},{default:At(()=>[yt(tc,{name:"mark"},{default:At(()=>[yt(bw,{marks:Pi(n),onFlyTo:v,onRemove:d},null,8,["marks"])]),_:1}),yt(tc,{name:"ctrl"},{default:At(()=>[yt(Dw,{onChange:_})]),_:1})]),_:1},8,["modelValue"])])],64))}}),Uw=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},Gw=Uw(Ww,[["__scopeId","data-v-1ce28baa"]]),Ua=(t,e)=>{const n=ur(t);for(const r in t)gs(e,r,()=>n[r],s=>{n[r]=s});return e},$o=["sm","md","lg","xl"],{passive:Bc}=ii,Kw=Ua({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:sn,setDebounce:sn,install({$q:t,onSSRHydrated:e}){if(t.screen=this,this.__installed===!0){t.config.screen!==void 0&&(t.config.screen.bodyClasses===!1?document.body.classList.remove(`screen--${this.name}`):this.__update(!0));return}const{visualViewport:n}=window,r=n||window,s=document.scrollingElement||document.documentElement,o=n===void 0||Qt.is.mobile===!0?()=>[Math.max(window.innerWidth,s.clientWidth),Math.max(window.innerHeight,s.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-s.clientWidth,n.height*n.scale+window.innerHeight-s.clientHeight],u=t.config.screen!==void 0&&t.config.screen.bodyClasses===!0;this.__update=_=>{const[p,y]=o();if(y!==this.height&&(this.height=y),p!==this.width)this.width=p;else if(_!==!0)return;let b=this.sizes;this.gt.xs=p>=b.sm,this.gt.sm=p>=b.md,this.gt.md=p>=b.lg,this.gt.lg=p>=b.xl,this.lt.sm=p{$o.forEach(p=>{_[p]!==void 0&&(f[p]=_[p])})},this.setDebounce=_=>{d=_};const v=()=>{const _=getComputedStyle(document.body);_.getPropertyValue("--q-size-sm")&&$o.forEach(p=>{this.sizes[p]=parseInt(_.getPropertyValue(`--q-size-${p}`),10)}),this.setSizes=p=>{$o.forEach(y=>{p[y]&&(this.sizes[y]=p[y])}),this.__update(!0)},this.setDebounce=p=>{h!==void 0&&r.removeEventListener("resize",h,Bc),h=p>0?$d(this.__update,p):this.__update,r.addEventListener("resize",h,Bc)},this.setDebounce(d),Object.keys(f).length!==0?(this.setSizes(f),f=void 0):this.__update(),u===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};zi.value===!0?e.push(v):v()}}),Te=Ua({isActive:!1,mode:!1},{__media:void 0,set(t){Te.mode=t,t==="auto"?(Te.__media===void 0&&(Te.__media=window.matchMedia("(prefers-color-scheme: dark)"),Te.__updateMedia=()=>{Te.set("auto")},Te.__media.addListener(Te.__updateMedia)),t=Te.__media.matches):Te.__media!==void 0&&(Te.__media.removeListener(Te.__updateMedia),Te.__media=void 0),Te.isActive=t===!0,document.body.classList.remove(`body--${t===!0?"light":"dark"}`),document.body.classList.add(`body--${t===!0?"dark":"light"}`)},toggle(){Te.set(Te.isActive===!1)},install({$q:t,onSSRHydrated:e,ssrContext:n}){const{dark:r}=t.config;if(t.dark=this,this.__installed===!0&&r===void 0)return;this.isActive=r===!0;const s=r!==void 0?r:!1;if(zi.value===!0){const o=h=>{this.__fromSSR=h},u=this.set;this.set=o,o(s),e.push(()=>{this.set=u,this.set(this.__fromSSR)})}else this.set(s)}}),Wd=()=>!0;function Qw(t){return typeof t=="string"&&t!==""&&t!=="/"&&t!=="#/"}function Xw(t){return t.startsWith("#")===!0&&(t=t.substring(1)),t.startsWith("/")===!1&&(t="/"+t),t.endsWith("/")===!0&&(t=t.substring(0,t.length-1)),"#"+t}function Jw(t){if(t.backButtonExit===!1)return()=>!1;if(t.backButtonExit==="*")return Wd;const e=["#/"];return Array.isArray(t.backButtonExit)===!0&&e.push(...t.backButtonExit.filter(Qw).map(Xw)),()=>e.includes(window.location.hash)}const Yw={__history:[],add:sn,remove:sn,install({$q:t}){if(this.__installed===!0)return;const{cordova:e,capacitor:n}=Qt.is;if(e!==!0&&n!==!0)return;const r=t.config[e===!0?"cordova":"capacitor"];if(r!==void 0&&r.backButton===!1||n===!0&&(window.Capacitor===void 0||window.Capacitor.Plugins.App===void 0))return;this.add=u=>{u.condition===void 0&&(u.condition=Wd),this.__history.push(u)},this.remove=u=>{const h=this.__history.indexOf(u);h>=0&&this.__history.splice(h,1)};const s=Jw(Object.assign({backButtonExit:!0},r)),o=()=>{if(this.__history.length){const u=this.__history[this.__history.length-1];u.condition()===!0&&(this.__history.pop(),u.handler())}else s()===!0?navigator.app.exitApp():window.history.back()};e===!0?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",o,!1)}):window.Capacitor.Plugins.App.addListener("backButton",o)}},zc={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:t=>t?`Expand "${t}"`:"Expand",collapse:t=>t?`Collapse "${t}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:t=>t===1?"1 record selected.":(t===0?"No":t)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(t,e,n)=>t+"-"+e+" of "+n,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function qc(){const t=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof t=="string")return t.split(/[-_]/).map((e,n)=>n===0?e.toLowerCase():n>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase()).join("-")}const ri=Ua({__langPack:{}},{getLocale:qc,set(t=zc,e){const n={...t,rtl:t.rtl===!0,getLocale:qc};{if(n.set=ri.set,ri.__langConfig===void 0||ri.__langConfig.noHtmlAttrs!==!0){const r=document.documentElement;r.setAttribute("dir",n.rtl===!0?"rtl":"ltr"),r.setAttribute("lang",n.isoName)}Object.assign(ri.__langPack,n),ri.props=n,ri.isoName=n.isoName,ri.nativeName=n.nativeName}},install({$q:t,lang:e,ssrContext:n}){t.lang=ri.__langPack,ri.__langConfig=t.config.lang,this.__installed===!0?e!==void 0&&this.set(e):this.set(e||zc)}});function t2(t,e,n=document.body){if(typeof t!="string")throw new TypeError("Expected a string as propName");if(typeof e!="string")throw new TypeError("Expected a string as value");if(!(n instanceof Element))throw new TypeError("Expected a DOM element");n.style.setProperty(`--q-${t}`,e)}function Ud(t){if(t.ios===!0)return"ios";if(t.android===!0)return"android"}function e2({is:t,has:e,within:n},r){const s=[t.desktop===!0?"desktop":"mobile",`${e.touch===!1?"no-":""}touch`];if(t.mobile===!0){const o=Ud(t);o!==void 0&&s.push("platform-"+o)}if(t.nativeMobile===!0){const o=t.nativeMobileWrapper;s.push(o),s.push("native-mobile"),t.ios===!0&&(r[o]===void 0||r[o].iosStatusBarPadding!==!1)&&s.push("q-ios-padding")}else t.electron===!0?s.push("electron"):t.bex===!0&&s.push("bex");return n.iframe===!0&&s.push("within-iframe"),s}function i2(){const{is:t}=Qt,e=document.body.className,n=new Set(e.replace(/ {2}/g," ").split(" "));if(ja!==void 0)n.delete("desktop"),n.add("platform-ios"),n.add("mobile");else if(t.nativeMobile!==!0&&t.electron!==!0&&t.bex!==!0){if(t.desktop===!0)n.delete("mobile"),n.delete("platform-ios"),n.delete("platform-android"),n.add("desktop");else if(t.mobile===!0){n.delete("desktop"),n.add("mobile");const s=Ud(t);s!==void 0?(n.add(`platform-${s}`),n.delete(`platform-${s==="ios"?"android":"ios"}`)):(n.delete("platform-ios"),n.delete("platform-android"))}}Qt.has.touch===!0&&(n.delete("no-touch"),n.add("touch")),Qt.within.iframe===!0&&n.add("within-iframe");const r=Array.from(n).join(" ");e!==r&&(document.body.className=r)}function n2(t){for(const e in t)t2(e,t[e])}const s2={install(t){if(this.__installed!==!0){if(zi.value===!0)i2();else{const{$q:e}=t;e.config.brand!==void 0&&n2(e.config.brand);const n=e2(Qt,e.config);document.body.classList.add.apply(document.body.classList,n)}Qt.is.ios===!0&&document.body.addEventListener("touchstart",sn),window.addEventListener("keydown",eg,!0)}}},r2={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},Pa=Ua({iconMapFn:null,__icons:{}},{set(t,e){const n={...t,rtl:t.rtl===!0};n.set=Pa.set,Object.assign(Pa.__icons,n)},install({$q:t,iconSet:e,ssrContext:n}){t.config.iconMapFn!==void 0&&(this.iconMapFn=t.config.iconMapFn),t.iconSet=this.__icons,gs(t,"iconMapFn",()=>this.iconMapFn,r=>{this.iconMapFn=r}),this.__installed===!0?e!==void 0&&this.set(e):this.set(e||r2)}}),Fc=[fa,s2,Te,Kw,Yw,ri,Pa];function $c(t,e){e.forEach(n=>{n.install(t),n.__installed=!0})}function a2(t,e,n){t.config.globalProperties.$q=n.$q,t.provide(nd,n.$q),$c(n,Fc),e.components!==void 0&&Object.values(e.components).forEach(r=>{Ws(r)===!0&&r.name!==void 0&&t.component(r.name,r)}),e.directives!==void 0&&Object.values(e.directives).forEach(r=>{Ws(r)===!0&&r.name!==void 0&&t.directive(r.name,r)}),e.plugins!==void 0&&$c(n,Object.values(e.plugins).filter(r=>typeof r.install=="function"&&Fc.includes(r)===!1)),zi.value===!0&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach(r=>{r()}),n.$q.onSSRHydrated=()=>{}})}const o2=function(t,e={}){const n={version:"2.12.3"};Gf===!1?(e.config!==void 0&&Object.assign(da,e.config),n.config={...da},vg()):n.config=e.config||{},a2(t,e,{parentApp:t,$q:n,lang:e.lang,iconSet:e.iconSet,onSSRHydrated:[]})},l2={version:"2.12.3",install:o2,lang:ri,iconSet:Pa},Gd=Gp(Gw);Gd.use(l2,{plugins:{}});Gd.mount("#app")});export default u2();